Skip to content

Commit 9c34bdc

Browse files
committed
fixed connection handling
1 parent 2d6ea01 commit 9c34bdc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tools/ipapy2/ipapy2_compute_bio.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ def main(
2222
annotations = None
2323

2424
if biochemical_mode == "connections" and connection_list:
25-
connections = connection_list
25+
connections = connection_list.split(",")
2626
else:
27-
raise ValueError(
28-
"biochemical_mode must be 'connections' and connection_list must be provided."
29-
)
27+
connections = []
3028

3129
Bio = ipa.Compute_Bio(
3230
input_dataset_database,
@@ -69,7 +67,7 @@ def main(
6967
based on the list of connections provided). Default 'reactions'. """,
7068
)
7169
parser.add_argument(
72-
"--connection_list", type=str, help="intensity mode. Default 'max' or 'ave'."
70+
"--connection_list", type=str, help="list of connections"
7371
)
7472
parser.add_argument(
7573
"--ncores",

0 commit comments

Comments
 (0)