Mercurial > repos > bimib > cobraxy
diff COBRAxy/src/utils/model_utils.py @ 542:fcdbc81feb45 draft
Uploaded
| author | francesco_lapi |
|---|---|
| date | Sun, 26 Oct 2025 19:27:41 +0000 |
| parents | 2fb97466e404 |
| children |
line wrap: on
line diff
--- a/COBRAxy/src/utils/model_utils.py Sat Oct 25 15:20:55 2025 +0000 +++ b/COBRAxy/src/utils/model_utils.py Sun Oct 26 19:27:41 2025 +0000 @@ -15,11 +15,16 @@ import logging from typing import Optional, Tuple, Union, List, Dict, Set from collections import defaultdict -import utils.rule_parsing as rulesUtils -import utils.reaction_parsing as reactionUtils from cobra import Model as cobraModel, Reaction, Metabolite import sys +try: + from . import rule_parsing as rulesUtils + from . import reaction_parsing as reactionUtils +except: + import rule_parsing as rulesUtils + import reaction_parsing as reactionUtils + ############################ check_methods #################################### def gene_type(l :str, name :str) -> str:
