def __init__(self, tree, taxonomy, seqinfo=None):
self.encountered_nodes = {}<EOL>self.encountered_taxonomies = set()<EOL>self.tree = tree<EOL>logging.info("<STR_LIT>")<EOL>if seqinfo:<EOL><INDENT>logging.info("<STR_LIT>" % (taxonomy, seqinfo))<EOL>gtns = Getaxnseq()<EOL>self.taxonomy =  gtns.read_taxtastic_taxonomy_and_seqinfo(open(taxonomy), open(seqinfo))<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>logging.info("<STR_LIT>")<EOL>self.taxonomy = GreenGenesTaxonomy.read_file(taxonomy).taxonomy<EOL><DEDENT>except MalformedGreenGenesTaxonomyException:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT><DEDENT>
Parameters
----------
tree        : dendropy.Tree

    dendropy.Tree object
taxonomy    : string
    Path to a file containing taxonomy information about the tree,
    either in Greengenes or taxtastic format (seqinfo file must also
    be provided if taxonomy is in taxtastic format).
seqinfo     : string
    Path to a seqinfo file. This is a .csv file with the first column
    denoting the sequence name, and the second column, its most resolved
    taxonomic rank.