Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to only highlight/colour unconserved regions? #42

Open
cms72 opened this issue Jun 5, 2022 · 2 comments
Open

Is there a way to only highlight/colour unconserved regions? #42

cms72 opened this issue Jun 5, 2022 · 2 comments

Comments

@cms72
Copy link

cms72 commented Jun 5, 2022

Hi! First, thank you for your tool!

Background: I have an MSA alignment of a single gene coming from multiple sources.

I have managed to produce a tree and combine MSA alignment [ggtree() + geom_facet(geom = geom_msa)] into one image, but I only wanted to highlight/colour regions that aren't conserved. Is there a way to do this?

I also found the geom_msaBar useful to highlight unconserved regions, but I am unable to incorporate it into geom_facet.

Thank you!

@cms72
Copy link
Author

cms72 commented Jun 5, 2022

I also noticed that the colour="Clustal" doesn't work when using position_highlight to highlight AA differences

@cms72
Copy link
Author

cms72 commented Jun 5, 2022

Other things I noticed:

  1. "by_conservation = T" works but "by_conservation = F" comes up with an error and you need to type "by_conservation = FALSE".

  2. Setting "by_conservation = FALSE" - I was thinking it would do the opposite of "by_conservation = T" by highlighting non-conserved regions.

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant