annotate xmsannotator_simple.xml @ 3:412d8bb4b54d draft

"planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
author recetox
date Mon, 14 Dec 2020 03:33:21 +0000
parents 041052875af0
children cd0729b7c3dc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
1 <tool id="xmsannotator_simple" name="xMSannotator (simple)" version="@TOOL_VERSION@+galaxy2">
0
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[
3
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
11 Rscript $wrapper
0
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
12 ]]></command>
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
13
3
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
14 <configfiles>
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
15 <configfile name="wrapper"><![CDATA[
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
16 library(xmsannotator)
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
17
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
18 annotation <- simple_annotation(
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
19 #if $peak_table.is_of_type("h5")
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
20 peak_table = load_peak_table_hdf("${peak_table}"),
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
21 #elif $peak_table.is_of_type("parquet")
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
22 peak_table = load_peak_table_parquet("${peak_table}"),
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
23 #end if
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
24 adduct_table = load_adduct_table_parquet("${adduct_table}"),
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
25 compound_table = load_compound_table_parquet("${compound_table}"),
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
26 mass_tolerance = 1e-6 * ${mass_tolerance_ppm}
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
27 )
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
28
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
29 save_parquet(data = annotation, file = "${annotation_parquet}")
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
30 ]]></configfile>
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
31 </configfiles>
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
32
0
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
33 <inputs>
3
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
34 <expand macro="inputs"/>
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
35 <expand macro="tolerance"/>
0
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
36 </inputs>
2
041052875af0 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit de75adf885d616bbe94c8087d3208a2b5039418e"
recetox
parents: 0
diff changeset
37
0
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
38 <outputs>
3
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
39 <expand macro="outputs"/>
0
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
40 </outputs>
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
41
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
42 <help><![CDATA[
3
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
43 Annotate the peak intensity table (such as outputted from apLCMS) with compounds from the compounds database.
0
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
44
3
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
45 The annotation process generates all possible compound-adduct pairs and matches those pairs to the measured
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
46 peaks. A compound-adduct pair is pronounced as a match to a certain peak when the difference of their masses are
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
47 withing some tolerance.
0
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
48 ]]></help>
2
041052875af0 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit de75adf885d616bbe94c8087d3208a2b5039418e"
recetox
parents: 0
diff changeset
49
3
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
50 <citations>
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
51 <expand macro="citations"/>
412d8bb4b54d "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 339f3b1b1243f353dd3ed115ac66320fdd2d2b68"
recetox
parents: 2
diff changeset
52 </citations>
0
97d1619ff23e "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit 9c62378416ff3634935e7da4aa97b05d3356d1b5"
recetox
parents:
diff changeset
53 </tool>