Mercurial > repos > bimib > cobraxy
diff COBRAxy/utils/model_utils.py @ 444:06564187fba3 draft
Uploaded
author | francesco_lapi |
---|---|
date | Thu, 11 Sep 2025 09:03:10 +0000 |
parents | f49c951c9fe6 |
children | f8b1761eee37 |
line wrap: on
line diff
--- a/COBRAxy/utils/model_utils.py Wed Sep 10 16:50:16 2025 +0000 +++ b/COBRAxy/utils/model_utils.py Thu Sep 11 09:03:10 2025 +0000 @@ -444,8 +444,6 @@ return model2 - - # ---------- Utility helpers ---------- def _normalize_colname(col: str) -> str: return col.strip().lower().replace(' ', '_') @@ -461,7 +459,7 @@ candidates = { 'ensg': ['ensg', 'ensembl_gene_id', 'ensembl'], 'hgnc_id': ['hgnc_id', 'hgnc', 'hgnc:'], - 'hgnc_symbol': ['hgnc_symbol', 'hgnc_symbol', 'symbol'], + 'hgnc_symbol': ['hgnc_symbol', 'hgnc symbol', 'symbol'], 'entrez_id': ['entrez', 'entrez_id', 'entrezgene'] } for key, names in candidates.items():