Mercurial > repos > recetox > matchms
diff matchms_similarity_wrapper.py @ 2:67ed0d4f3724 draft
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/matchms commit b974ff354fa375975050026482e1b6ded8005682
author | recetox |
---|---|
date | Thu, 08 Sep 2022 14:48:21 +0000 |
parents | f680068b7863 |
children | 9f8532c99845 |
line wrap: on
line diff
--- a/matchms_similarity_wrapper.py Fri Jul 22 16:48:21 2022 +0000 +++ b/matchms_similarity_wrapper.py Thu Sep 08 14:48:21 2022 +0000 @@ -82,7 +82,7 @@ if args.ri_tolerance is not None: print("RI filtering with tolerance ", args.ri_tolerance) ri_matches = calculate_scores(reference_spectra, queries_spectra, MetadataMatch("retention_index", "difference", args.ri_tolerance)).scores - scores.scores["score"] = np.where(ri_matches, scores.scores["score"], 0.0) + scores._scores["score"] = np.where(ri_matches, scores.scores["score"], 0.0) write_outputs(args, scores) return 0