comparison matchms_networking_wrapper.py @ 13:3dad3f53402f draft

planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 13f4f7af12ec694a5f4ab7b3e52f46a4f67a245e
author recetox
date Sun, 19 Nov 2023 14:36:56 +0000
parents 1b09315a3f87
children
comparison
equal deleted inserted replaced
12:1e58bf51a0e5 13:3dad3f53402f
25 top_n=args.top_n, 25 top_n=args.top_n,
26 max_links=args.max_links, 26 max_links=args.max_links,
27 score_cutoff=args.score_cutoff, 27 score_cutoff=args.score_cutoff,
28 link_method=args.link_method, 28 link_method=args.link_method,
29 keep_unconnected_nodes=args.keep_unconnected_nodes) 29 keep_unconnected_nodes=args.keep_unconnected_nodes)
30 score_name = next((s for s in scores.score_names if args.score_name in s and "score" in s), None)
31 if score_name is None:
32 raise ValueError(f"Could not find any score name containing '{args.score_name}'.")
30 33
31 network.create_network(scores, args.score_name) 34 network.create_network(scores, score_name)
32 network.export_to_file(filename=args.output_filename, graph_format=args.graph_format) 35 network.export_to_file(filename=args.output_filename, graph_format=args.graph_format)
33 36
34 return 0 37 return 0
35 38
36 39