annotate xmsannotator_simple.xml @ 2:041052875af0 draft

"planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit de75adf885d616bbe94c8087d3208a2b5039418e"
author recetox
date Thu, 08 Oct 2020 00:41:12 +0000
parents 97d1619ff23e
children 412d8bb4b54d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
1 <tool id="xmsannotator_simple" name="xMSannotator (simple)" version="@TOOL_VERSION@+galaxy0">
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
2 <macros>
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
3 <import>xmsannotator_macros.xml</import>
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
4 </macros>
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
5
2
041052875af0 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit de75adf885d616bbe94c8087d3208a2b5039418e"
recetox
parents: 0
diff changeset
6 <requirements>
041052875af0 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit de75adf885d616bbe94c8087d3208a2b5039418e"
recetox
parents: 0
diff changeset
7 <container type="docker">@DOCKER_IMAGE@</container>
041052875af0 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit de75adf885d616bbe94c8087d3208a2b5039418e"
recetox
parents: 0
diff changeset
8 </requirements>
0
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
9
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
10 <command detect_errors="aggressive"><![CDATA[
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
11 Rscript -e 'annotation <- xmsannotator::simple_annotation(
2
041052875af0 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit de75adf885d616bbe94c8087d3208a2b5039418e"
recetox
parents: 0
diff changeset
12 peaks = xmsannotator::load_hdf("$peaks", "peaks"),
041052875af0 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit de75adf885d616bbe94c8087d3208a2b5039418e"
recetox
parents: 0
diff changeset
13 adducts = xmsannotator::load_hdf("$adducts", "adducts"),
041052875af0 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit de75adf885d616bbe94c8087d3208a2b5039418e"
recetox
parents: 0
diff changeset
14 compounds = xmsannotator::load_hdf("$compounds", "compounds"),
041052875af0 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit de75adf885d616bbe94c8087d3208a2b5039418e"
recetox
parents: 0
diff changeset
15 mass_tolerance = 1e-6 * $mz_tolerance_ppm
0
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
16 )'
2
041052875af0 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit de75adf885d616bbe94c8087d3208a2b5039418e"
recetox
parents: 0
diff changeset
17 -e 'xmsannotator::save_hdf("$annotation", "annotation", annotation)'
0
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
18 ]]></command>
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
19
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
20 <inputs>
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
21 <expand macro="annotation"/>
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
22 </inputs>
2
041052875af0 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit de75adf885d616bbe94c8087d3208a2b5039418e"
recetox
parents: 0
diff changeset
23
0
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
24 <outputs>
2
041052875af0 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit de75adf885d616bbe94c8087d3208a2b5039418e"
recetox
parents: 0
diff changeset
25 <data format="h5" name="annotation"/>
0
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
26 </outputs>
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
27
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
28 <help><![CDATA[
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
29 Annotate the peak intensity table (such as outputted from apLCMS) with metabolites from the metabolite database.
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
30
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
31 The annotation process generates all possible metabolite-adduct pairs from the metabolite and adduct databases and matches those pairs to the measured peaks.
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
32 A metabolite-adduct pair is pronounced as a match to the peak when the difference of their masses are withing some tolerance.
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
33 ]]></help>
2
041052875af0 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit de75adf885d616bbe94c8087d3208a2b5039418e"
recetox
parents: 0
diff changeset
34
0
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
35 <expand macro="citations"/>
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
36 </tool>