Mercurial > repos > bimib > cobraxy
comparison COBRAxy/utils/model_utils.py @ 492:4ed95023af20 draft
Uploaded
author | francesco_lapi |
---|---|
date | Tue, 30 Sep 2025 14:02:17 +0000 |
parents | c6ea189ea7e9 |
children | a92d21f92956 |
comparison
equal
deleted
inserted
replaced
491:7a413a5ec566 | 492:4ed95023af20 |
---|---|
690 | 690 |
691 except Exception: | 691 except Exception: |
692 # If anything goes wrong, return the original expression | 692 # If anything goes wrong, return the original expression |
693 return expr | 693 return expr |
694 | 694 |
695 # ---------- Main public function ---------- | 695 |
696 def translate_model_genes(model: 'cobra.Model', | 696 def translate_model_genes(model: 'cobra.Model', |
697 mapping_df: 'pd.DataFrame', | 697 mapping_df: 'pd.DataFrame', |
698 target_nomenclature: str, | 698 target_nomenclature: str, |
699 source_nomenclature: str = 'hgnc_id', | 699 source_nomenclature: str = 'hgnc_id', |
700 allow_many_to_one: bool = False, | 700 allow_many_to_one: bool = False, |