In [1]:
import pyparanoid.genomeplot as gplot
%matplotlib inline
In [3]:
## Using the match_seqs function, or some other method you may have a list of groups
## you want to see mapped over a tree. For example...
!head ../src/all_groups.txt
In [2]:
hm = gplot.plot_multigene_presence("../src/all_groups.txt","../../data/Pseudo" \
,"../src/exp_strains.rerooted.tre",outfile="test")
In [4]:
## This heatmap is ordered from top to bottom based on the branching pattern of the tree.
## Thus, you can combine the heatmap with a tree to make a publication-quality image in Illustrator.