Mercurial > repos > bimib > cobraxy
comparison COBRAxy/src/flux_to_map.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 import pandas as pd | 7 import pandas as pd |
| 8 import itertools as it | 8 import itertools as it |
| 9 import scipy.stats as st | 9 import scipy.stats as st |
| 10 import lxml.etree as ET | 10 import lxml.etree as ET |
| 11 import math | 11 import math |
| 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 PIL import Image | 16 from PIL import Image |
| 14 import os | 17 import os |
| 15 import copy | 18 import copy |
| 16 import argparse | 19 import argparse |
| 17 import pyvips | 20 import pyvips |
| 38 | 41 |
| 39 #General: | 42 #General: |
| 40 parser.add_argument( | 43 parser.add_argument( |
| 41 '-td', '--tool_dir', | 44 '-td', '--tool_dir', |
| 42 type = str, | 45 type = str, |
| 43 required = True, | 46 default = os.path.dirname(os.path.abspath(__file__)), |
| 44 help = 'your tool directory') | 47 help = 'your tool directory (default: auto-detected package location)') |
| 45 | 48 |
| 46 parser.add_argument('-on', '--control', type = str) | 49 parser.add_argument('-on', '--control', type = str) |
| 47 parser.add_argument('-ol', '--out_log', help = "Output log") | 50 parser.add_argument('-ol', '--out_log', help = "Output log") |
| 48 | 51 |
| 49 #Computation details: | 52 #Computation details: |
