python - Phylogenetic Tree Coloring -
python - Phylogenetic Tree Coloring -
i have created phylogenetic tree of bunch on enzyme sequences have. have in simple format scores displayed , no coloring. sequences have restriction enzymes , each of them have motif
. want color enzyme branches having similar motifs
. spent improve part of yesterday looking @ different softwares help me ended confused. i wanted know tool takes trees either in newick
format or takes in alignment
information. , allow me impart color based on similar motifs.
i came across tool : http://etetoolkit.org/ , requires big number of dependent libraries in turn have dependencies little or no documentation of installation errors.
i used phylo
class biopython
library develop trees. used next command generate tree scores:
phylo.draw(tree,branch_labels=lambda c: c.branch_length)
figtree (http://tree.bio.ed.ac.uk/software/figtree/) phylogenetic tree viewer allows customizable coloring.
it's not clear me how know enzyme has motif. if info isn't built in, may need annotate each sequence before building tree, can search in figtree , color label.
(note if want show enzyme name, no motif, can still take approach , manually edit .nwk file afterward, leaving in color info stripping out annotations.)
python biopython phylogeny
Comments
Post a Comment