Mercurial > repos > bimib > cobraxy
diff COBRAxy/src/rps_generator.py @ 542:fcdbc81feb45 draft
Uploaded
| author | francesco_lapi |
|---|---|
| date | Sun, 26 Oct 2025 19:27:41 +0000 |
| parents | 2fb97466e404 |
| children | 5d5583dc6082 |
line wrap: on
line diff
--- a/COBRAxy/src/rps_generator.py Sat Oct 25 15:20:55 2025 +0000 +++ b/COBRAxy/src/rps_generator.py Sun Oct 26 19:27:41 2025 +0000 @@ -14,8 +14,12 @@ from typing import Optional, List, Dict -import utils.general_utils as utils -import utils.reaction_parsing as reactionUtils +try: + from .utils import general_utils as utils + from .utils import reaction_parsing as reactionUtils +except: + import utils.general_utils as utils + import utils.reaction_parsing as reactionUtils ########################## argparse ########################################## ARGS :argparse.Namespace @@ -38,9 +42,10 @@ help = "path to input file containing the reactions") parser.add_argument('-td', '--tool_dir', - type = str, - required = True, - help = 'your tool directory') + type = str, + default = os.path.dirname(os.path.abspath(__file__)), + help = 'your tool directory (default: auto-detected package location)') + parser.add_argument('-ol', '--out_log', help = "Output log") parser.add_argument('-id', '--input',
