Mercurial > repos > bimib > cobraxy
diff COBRAxy/utils/model_utils.py @ 538:fd53d42348bd draft default tip
Uploaded
| author | francesco_lapi |
|---|---|
| date | Sat, 25 Oct 2025 11:39:03 +0000 |
| parents | ca98c149ec61 |
| children |
line wrap: on
line diff
--- a/COBRAxy/utils/model_utils.py Sat Oct 25 11:05:14 2025 +0000 +++ b/COBRAxy/utils/model_utils.py Sat Oct 25 11:39:03 2025 +0000 @@ -31,17 +31,17 @@ name (str): The name of the dataset, used in error messages. Returns: - str: The type of gene ID ('hugo_id', 'ensembl_gene_id', 'symbol', or 'entrez_id'). + str: The type of gene ID ('HGNC_ID', 'ENSG', 'HGNC_symbol', or 'entrez_id'). Raises: sys.exit: If the gene ID type is not supported, the execution is aborted. """ if check_hgnc(l): - return 'hugo_id' + return 'HGNC_ID' elif check_ensembl(l): - return 'ensembl_gene_id' + return 'ENSG' elif check_symbol(l): - return 'symbol' + return 'HGNC_symbol' elif check_entrez(l): return 'entrez_id' else:
