def _get_percent_by_rank_by_taxid(self, genome_id_to_lineage, genome_id_to_percent):
    '\n        Return the percentage for each taxid of a list of default ranks\n\n        @param genome_id_to_lineage: Mapping from genome id to a lineage (list)\n        @type genome_id_to_lineage: dict[str|unicode, list[None|str|unicode]]\n        @param genome_id_to_percent: Mapping from genome id to percentage\n        @type genome_id_to_percent: dict[str|unicode, float]\n\n        @return: Percentage for each taxid of a list of default ranks as dictionary of dictionaries\n        @rtype: dict[str|unicode, dict[str|unicode, float]]\n        '
    percent_by_rank_by_taxid = {}
    for rank in self._ranks:
        percent_by_rank_by_taxid[rank] = dict()
    for (rank_index, rank) in enumerate(self._ranks):
        for genome_id in genome_id_to_lineage:
            tax_id = genome_id_to_lineage[genome_id][rank_index]
            if (tax_id is None):
                continue
            percent = genome_id_to_percent[genome_id]
            if (tax_id not in percent_by_rank_by_taxid[rank]):
                percent_by_rank_by_taxid[rank][tax_id] = 0
            percent_by_rank_by_taxid[rank][tax_id] += percent
    return percent_by_rank_by_taxid
Return the percentage for each taxid of a list of default ranks

@param genome_id_to_lineage: Mapping from genome id to a lineage (list)
@type genome_id_to_lineage: dict[str|unicode, list[None|str|unicode]]
@param genome_id_to_percent: Mapping from genome id to percentage
@type genome_id_to_percent: dict[str|unicode, float]

@return: Percentage for each taxid of a list of default ranks as dictionary of dictionaries
@rtype: dict[str|unicode, dict[str|unicode, float]]
def _get_percent_by_rank_by_taxid(self, genome_id_to_lineage, genome_id_to_percent):
    '\n        Return the percentage for each taxid of a list of default ranks\n\n        @param genome_id_to_lineage: Mapping from genome id to a lineage (list)\n        @type genome_id_to_lineage: dict[str|unicode, list[None|str|unicode]]\n        @param genome_id_to_percent: Mapping from genome id to percentage\n        @type genome_id_to_percent: dict[str|unicode, float]\n\n        @return: Percentage for each taxid of a list of default ranks as dictionary of dictionaries\n        @rtype: dict[str|unicode, dict[str|unicode, float]]\n        '
    percent_by_rank_by_taxid = {}
    for rank in self._ranks:
        percent_by_rank_by_taxid[rank] = dict()
    for (rank_index, rank) in enumerate(self._ranks):
        for genome_id in genome_id_to_lineage:
            tax_id = genome_id_to_lineage[genome_id][rank_index]
            if (tax_id is None):
                continue
            percent = genome_id_to_percent[genome_id]
            if (tax_id not in percent_by_rank_by_taxid[rank]):
                percent_by_rank_by_taxid[rank][tax_id] = 0
            percent_by_rank_by_taxid[rank][tax_id] += percent
    return percent_by_rank_by_taxid