@@ -71,6 +71,9 @@ def main():
71
71
parser_gf .add_argument ('-p' , '--pvalue-threshold' , default = 0.01 , type = float , required = True ,
72
72
help = "Threshold for p-value." )
73
73
74
+ parser_gf .add_argument ('-o' , '--positive' , action = "store_true" ,
75
+ help = "Use positive correlation only otherwise use both positive and negative correlation." )
76
+
74
77
parser_gf .add_argument ('-g' , '--gml-file' , type = str , required = True ,
75
78
help = "Write graph to GraphML format." )
76
79
@@ -237,7 +240,7 @@ def main():
237
240
df = in_out .combine_peaklist_matrix (args .peaklist , args .intensity_matrix )
238
241
graph = grouping .group_features (df , db_out = args .db , max_rt_diff = args .max_rt_diff ,
239
242
coeff_thres = args .coeff_threshold , pvalue_thres = args .pvalue_threshold ,
240
- method = args .method , ncpus = args .ncpus )
243
+ method = args .method , positive = args . positive , ncpus = args .ncpus )
241
244
nx .write_gml (graph , str (args .gml_file ))
242
245
243
246
if args .step == "annotate-peak-patterns" :
@@ -274,7 +277,7 @@ def main():
274
277
path = 'data/neutral_losses.txt'
275
278
p = os .path .join (os .path .dirname (os .path .abspath (__file__ )), path )
276
279
lib = in_out .read_neutral_losses (p )
277
- annotation .neutral_losses (inp , db_out = args .db , ppm = args .ppm , lib = lib )
280
+ annotation .annotate_neutral_losses (inp , db_out = args .db , ppm = args .ppm , lib = lib )
278
281
279
282
if args .oligomers :
280
283
if args .adducts_library :
0 commit comments