Mondo mapping
map_disease_id(disease_identifier, mondo_mapping_table)
Map a disease identifier to MONDO ID using the Mondo SSSOM mapping. Args: disease_identifier (str): The disease identifier to map to MONDO. mondo_mapping_table (pl.DataFrame): The Mondo SSSOM table. Returns: str: The MONDO ID.
Source code in src/pheval/post_processing/mondo_mapping.py
23 24 25 26 27 28 29 30 31 32 33 34 35 | |
parse_mondo_mapping_table()
Parse the Mondo SSSOM table. Returns: pl.DataFrame: Mondo SSSOM table.
Source code in src/pheval/post_processing/mondo_mapping.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | |