ivy.treebase module¶
Functions to get trees and character data from treebase
- 
ivy.treebase.fetch_study(study_id, format=u'nexml')[source]¶ Get a study from treebase in one of various formats
Parameters: Returns: Str representing a nexus file (if format = “nexus”)
OR
An lxml etree object
- 
ivy.treebase.parse_nexml(doc)[source]¶ Parse an etree ElementTree
Parameters: doc – An etree ElementTree or a file that can be parsed into an etree ElementTree with etree.parse Returns: - An ivy Storage object containing all the information from the
 - nexml file: Characters, metadata, OTUs, and trees.