comparison matchms_networking_wrapper.py @ 8:0fd1e5d4ca3c draft

planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit 13f4f7af12ec694a5f4ab7b3e52f46a4f67a245e
author recetox
date Sun, 19 Nov 2023 14:40:18 +0000
parents 8147d93d372d
children
comparison
equal deleted inserted replaced
7:d8e937f335b8 8:0fd1e5d4ca3c
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