Mercurial > repos > bimib > cobraxy
comparison COBRAxy/src/ras_generator.py @ 542:fcdbc81feb45 draft
Uploaded
| author | francesco_lapi |
|---|---|
| date | Sun, 26 Oct 2025 19:27:41 +0000 |
| parents | 2fb97466e404 |
| children | 5d5583dc6082 |
comparison
equal
deleted
inserted
replaced
| 541:fa93040a75af | 542:fcdbc81feb45 |
|---|---|
| 7 from __future__ import division | 7 from __future__ import division |
| 8 import sys | 8 import sys |
| 9 import argparse | 9 import argparse |
| 10 import pandas as pd | 10 import pandas as pd |
| 11 import numpy as np | 11 import numpy as np |
| 12 import utils.general_utils as utils | 12 try: |
| 13 from .utils import general_utils as utils | |
| 14 except: | |
| 15 import utils.general_utils as utils | |
| 13 from typing import List, Dict | 16 from typing import List, Dict |
| 14 import ast | 17 import ast |
| 15 | 18 |
| 16 # Optional imports for AnnData mode (not used in ras_generator.py) | 19 # Optional imports for AnnData mode (not used in ras_generator.py) |
| 17 try: | 20 try: |
| 51 help = 'compute Nan values') | 54 help = 'compute Nan values') |
| 52 | 55 |
| 53 parser.add_argument( | 56 parser.add_argument( |
| 54 '-td', '--tool_dir', | 57 '-td', '--tool_dir', |
| 55 type = str, | 58 type = str, |
| 56 required = True, help = 'your tool directory') | 59 default = os.path.dirname(os.path.abspath(__file__)), |
| 60 help = 'your tool directory (default: auto-detected package location)') | |
| 57 | 61 |
| 58 parser.add_argument( | 62 parser.add_argument( |
| 59 '-ol', '--out_log', | 63 '-ol', '--out_log', |
| 60 type = str, | 64 type = str, |
| 61 help = "Output log") | 65 help = "Output log") |
