Mercurial > repos > bimib > cobraxy
comparison COBRAxy/src/marea.py @ 542:fcdbc81feb45 draft
Uploaded
| author | francesco_lapi |
|---|---|
| date | Sun, 26 Oct 2025 19:27:41 +0000 |
| parents | 2fb97466e404 |
| children |
comparison
equal
deleted
inserted
replaced
| 541:fa93040a75af | 542:fcdbc81feb45 |
|---|---|
| 14 import pandas as pd | 14 import pandas as pd |
| 15 import itertools as it | 15 import itertools as it |
| 16 import scipy.stats as st | 16 import scipy.stats as st |
| 17 import lxml.etree as ET | 17 import lxml.etree as ET |
| 18 import math | 18 import math |
| 19 import utils.general_utils as utils | 19 try: |
| 20 from .utils import general_utils as utils | |
| 21 except: | |
| 22 import utils.general_utils as utils | |
| 20 from PIL import Image | 23 from PIL import Image |
| 21 import os | 24 import os |
| 22 import argparse | 25 import argparse |
| 23 import pyvips | 26 import pyvips |
| 24 from typing import Tuple, Union, Optional, List, Dict | 27 from typing import Tuple, Union, Optional, List, Dict |
| 47 | 50 |
| 48 #General: | 51 #General: |
| 49 parser.add_argument( | 52 parser.add_argument( |
| 50 '-td', '--tool_dir', | 53 '-td', '--tool_dir', |
| 51 type = str, | 54 type = str, |
| 52 required = True, | 55 default = os.path.dirname(os.path.abspath(__file__)), |
| 53 help = 'your tool directory') | 56 help = 'your tool directory (default: auto-detected package location)') |
| 54 | 57 |
| 55 parser.add_argument('-on', '--control', type = str) | 58 parser.add_argument('-on', '--control', type = str) |
| 56 parser.add_argument('-ol', '--out_log', help = "Output log") | 59 parser.add_argument('-ol', '--out_log', help = "Output log") |
| 57 | 60 |
| 58 #Computation details: | 61 #Computation details: |
