Greengenes provides a file each OTU a full taxonomic designation. This
    method parses that file into a map with (key,val) = (OTU, taxonomy).

    :type idtaxFNH: file or str
    :param idtaxFNH: Either the full path to the map file or an open file handle

    :rtype: dict
    :return: A map associating each OTU ID with the taxonomic specifier. An OrderedDict
             is used so the returned map is guaranteed to have the same order as the input
             file.

def parse_taxonomy_table(idtaxFNH):
    """
    Greengenes provides a file each OTU a full taxonomic designation. This
    method parses that file into a map with (key,val) = (OTU, taxonomy).

    :type idtaxFNH: file or str
    :param idtaxFNH: Either the full path to the map file or an open file handle

    :rtype: dict
    :return: A map associating each OTU ID with the taxonomic specifier. An OrderedDict
             is used so the returned map is guaranteed to have the same order as the input
             file.
    """
    idtax = OrderedDict()
    with file_handle(idtaxFNH) as idtxF:
        for line in idtxF:
            ID, tax = line.strip().split("\t")[:2]
            idtax[ID] = tax

    return idtax