annotate xmsannotator_simple.xml @ 5:9540eaefa2f1 draft default tip

"planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit e547915248546657de13b91f28e5f4488ae8f7e0"
author recetox
date Thu, 12 Aug 2021 11:13:26 +0000
parents cd0729b7c3dc
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
cd0729b7c3dc "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit b99706e26938905c4d75763e3041f69fba4bff71"
recetox
parents: 3
diff changeset
1 <tool id="xmsannotator_simple" name="xMSannotator (simple)" version="@TOOL_VERSION@+galaxy3">
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>
5
9540eaefa2f1 "planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/xmsannotator commit e547915248546657de13b91f28e5f4488ae8f7e0"
recetox
parents: 4
diff changeset
5 <expand macro="creator"/>
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>