YuLab-SMU/ggmsa

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

cms72 opened this issue · 2 comments

cms72 commented

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 commented

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

cms72 commented

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!