cocoatree.visualization.add_sector_sequences_to_tree¶
- cocoatree.visualization.add_sector_sequences_to_tree(tree_style, tree_ete3, sector_id, sector_seq, column_start=0)[source]¶
Add sector sequence to ETE3’s tree style
Parameters¶
tree_style : ETE3’s tree_style object
- tree_ete3ete3’s tree object,
as imported by io.load_tree_ete3()
- sector_idlist of sector identifiers, as imported by io.load_msa()
the ids must match with the tree’s leaves id
- sector_seqcorresponding list of sector sequences to display,
as imported by io.load_msa()
- column_startint, optional, default0
the column on which to start plotting
Returns¶
tree_style : TreeStyle class from ete3
- column_endint, the number of columns after the tree. If you want to
plot anything else alongside the tree, the column number should be equal to this value.