So I have a csv file where each line represents hierarchical data in the form: 'Phylum','Class','Order','Family','Genus','Species','Subspecies','unique_gi'
I would like to convert this to the classic Newick tree format sans distances. Either a novel method or a python package would be amazing. Thank you!
You could use some simple Python to build out a tree from the CSV, and then write it out to a Newick tree. Not sure if this is what you're trying to do or not.
Example output:
Also, this library seems cool, and lets you visualize your trees: http://biopython.org/wiki/Phylo