Closed segarka closed 5 months ago
Hi @segarka
Biostrings's Github issues are intended for questions, bug reports, and feature requests related to the Biostrings package--plot.phylo
and the phylo
object are all provided as part of the ape
package, which is not maintained by the contributors of this repository. I'd recommend asking your question on the Bioconductor slack channel or on StackOverflow for more assistance.
I used the msa and Biostings packages to generate a phylogenetic tree plotting different viruses. Now, I would like to color the virus names by their genus. This is the code I have so far that works to generate the tree (sorry for the lengthy-ness):
I tried adding the tip.color() command to color by the genus but the color blocking is (I think) instead being applied sequentially. So, whatever virus is first in the df is assigned green coloring, whatever virus is second in the df is assigned red, and so on.
What I am seeing with this command...not sure what the other black/red/green colors refer to (I think it has to do with branching) but they are also not by genus. I would like to be able to assign colors based on the values in the Genus column of the original data frame (fas) and also have a legend.