All code available at https://github.com/SchlossLab/ipython-mothurmagic
mothur must be installed on your system and either in your path or in the directory where IPython is running. See http://www.mothur.org/wiki/Download_mothur to download a copy of mothur.
In [1]:
%install_ext https://raw.githubusercontent.com/SchlossLab/ipython-mothurmagic/master/mothurmagic.py
In [2]:
%load_ext mothurmagic
Example using data from http://www.mothur.org/w/images/3/37/AmazonData.zip A unique log file will be generated each time a %%mothur cell is executed.
In [3]:
%%mothur
cluster(phylip=AmazonData/98_sq_phylip_amazon.dist, cutoff=0.1)
collect.single()
rarefaction.single()
In [3]: