annotate ms2deepscore_similarity.xml @ 0:58c95171a0d3 draft default tip

planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
author recetox
date Mon, 02 Sep 2024 12:12:18 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
1 <tool id="ms2deepscore_similarity" name="MS2DeepScore Similarity" version="@TOOL_VERSION@+galaxy0">
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
2 <description>Compute similarity scores using a pre-trained MS2DeepScore model</description>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
3 <macros>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
4 <import>macros.xml</import>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
5 </macros>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
6 <expand macro="creator"/>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
7 <expand macro="edam" />
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
8
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
9 <requirements>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
10 <requirement type="package" version="@TOOL_VERSION@">ms2deepscore</requirement>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
11 <requirement type="package" version="@ONNX_VERSION@">onnx</requirement>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
12 </requirements>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
13
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
14 <command detect_errors="exit_code"><![CDATA[
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
15 python3 ${python_wrapper}
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
16 ]]></command>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
17 <configfiles>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
18 <configfile name="python_wrapper">
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
19 @init_logger@
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
20
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
21 import onnx
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
22 import torch
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
23 from ms2deepscore import MS2DeepScore
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
24 from matchms import calculate_scores
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
25 from matchms.importing import load_from_msp, scores_from_json
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
26 from ms2deepscore.models.SiameseSpectralModel import SiameseSpectralModel
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
27 from ms2deepscore.SettingsMS2Deepscore import SettingsMS2Deepscore
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
28
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
29 onnx_model = onnx.load("$model")
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
30
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
31 # Extract the initializers (weights and biases)
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
32 initializers = {init.name: onnx.numpy_helper.to_array(init) for init in onnx_model.graph.initializer}
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
33
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
34 # Convert NumPy arrays to PyTorch tensors
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
35 state_dict = {name: torch.tensor(np_array) for name, np_array in initializers.items()}
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
36
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
37 @json_load@
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
38
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
39 model = SiameseSpectralModel(settings=SettingsMS2Deepscore(**model_params))
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
40 model.load_state_dict(state_dict)
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
41 model.eval()
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
42
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
43 #if $scores.use_scores == "True"
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
44 scores_in = scores_from_json("${scores_in}")
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
45 references=scores_in.references
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
46 queries=scores_in.queries
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
47 #else
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
48 references=list(load_from_msp("$references"))
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
49 queries=list(load_from_msp("$queries"))
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
50 #end if
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
51
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
52 similarity = MS2DeepScore(model)
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
53 scores = calculate_scores(references, queries, similarity)
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
54
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
55 #if $scores.use_scores == "True"
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
56 scores_in._scores.add_dense_matrix(scores.to_array(), "MS2DeepScore")
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
57 scores_in.to_json("$similarity_scores")
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
58 #else
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
59 scores.to_json("$similarity_scores")
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
60 #end if
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
61 </configfile>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
62 </configfiles>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
63
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
64 <inputs>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
65 <expand macro="input_param" />
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
66 </inputs>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
67
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
68 <outputs>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
69 <data label="ms2deepscore scores of ${on_string}" name="similarity_scores" format="json"/>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
70 </outputs>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
71
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
72 <tests>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
73 <test expect_num_outputs="1">
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
74 <param name="use_scores" value="False"/>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
75 <param name="references" value="inp_filtered_library.msp" ftype="msp"/>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
76 <param name="queries" value="inp_filtered_spectra.msp" ftype="msp"/>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
77 <param name="model" value="Trained_model.onnx" ftype="onnx"/>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
78 <param name="model_param" value="Model_Parameter_JSON.json" ftype="json"/>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
79 <output name="similarity_scores" value="msp_json_score_out.json" ftype="json" compare="sim_size" />
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
80 </test>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
81 <test expect_num_outputs="1">
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
82 <param name="use_scores" value="True"/>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
83 <param name="scores_in" value="ri_match_60.json" ftype="json"/>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
84 <param name="model" value="Trained_model.onnx" ftype="onnx"/>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
85 <param name="model_param" value="Model_Parameter_JSON.json" ftype="json"/>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
86 <output name="similarity_scores" value="usescore_json_score_out.json" ftype="json" compare="sim_size" />
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
87 </test>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
88 </tests>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
89
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
90 <help>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
91 <![CDATA[
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
92 Info
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
93 ====
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
94 Use a MS2DeepScore model for spectral similarity calculation.
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
95 For security reasons, only ONNX models are supported to be used.
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
96 If you want to use your own model, you can convert it to ONNX using the code contained in the 'MS2DeepScore Model Training' tool.
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
97
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
98 About
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
99 =====
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
100 @HELP@
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
101 ]]>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
102 </help>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
103 <expand macro="citations"/>
58c95171a0d3 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ms2deepscore commit 4bd610e0cbbcbed51a6bfb880179777fc8034fd6
recetox
parents:
diff changeset
104 </tool>