brokilon.core.taxon_map_utils module

brokilon.core.taxon_map_utils.change_taxon_map(input_nexus, output_nexus, new_map)[source]
brokilon.core.taxon_map_utils.get_mapping_dict(file: str) dict[source]

Returns the taxon mapping of the nexus file as a dictionary

Parameters:

file (str) – A nexus file path

Returns:

Dictionary containing the mapping of taxa(values) to int(keys)

Return type:

dict {int –> str}