rotifer.db.ncbi.utils.ipgs_to_dicts#
- rotifer.db.ncbi.utils.ipgs_to_dicts(ipgs)[source]#
Split IPG rows into assembly based and nucleotide based maps.
IPGs that name at least one genome assembly are grouped by assembly accession; the remaining IPGs are grouped by nucleotide accession.
- Parameters:
- ipgspandas.DataFrame
Identical protein group reports.
- Returns:
- tuple of dict
A pair
(assemblies, nucleotides). In both dictionaries each key maps to a dictionary from protein accession (pid) to IPG representative.