comparison createDatabase.xml @ 0:f075f67c7416 draft

planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 2948ce35fa7fffe5a64711cb30be971031e79019-dirty
author tomnl
date Fri, 24 May 2019 08:59:45 -0400
parents
children 6ed8168e4736
comparison
equal deleted inserted replaced
-1:000000000000 0:f075f67c7416
1 <tool id="mspurity_createdatabase" name="msPurity.createDatabase" version="0.2.0">
2 <description>
3 Create and SQLite database of an LC-MS(/MS) experiment
4 </description>
5 <macros>
6 <import>macros.xml</import>
7 </macros>
8 <expand macro="requirements">
9 </expand>
10 <stdio>
11 <exit_code range="1:" />
12 </stdio>
13 <command interpreter="Rscript"><![CDATA[
14 createDatabase.R
15 --outDir=.
16 --xset_xa=$xset_xa
17 --pa=$pa
18 --xcms_camera_option=$camera_xcms
19 --cores=\${GALAXY_SLOTS:-4}
20 #if $file_load_conditional.file_load_select=="yes"
21 --mzML_files='
22 #for $i in $file_load_conditional.input
23 $i,
24 #end for
25 '
26 --galaxy_names='
27 #for $i in $file_load_conditional.input
28 $i.name,
29 #end for
30 '
31 #end if
32
33 #if $eic
34 --eic
35 #end if
36 #if $raw_rt_columns
37 --raw_rt_columns
38 #end if
39 #if $grp_peaklist_opt.grp_peaklist_opt=="yes"
40 --grp_peaklist=$grp_peaklist
41 #end if
42
43 ]]></command>
44 <inputs>
45 <param type="data" name="xset_xa" label="xcmsSet or CAMERA object"
46 help="Either xcmsSet object saved as 'xset' or CAMERA 'xa' object in an RData file.
47 Please specify which to use below"
48 format="rdata.xcms.raw,rdata.xcms.group,rdata.xcms.retcor,rdata.xcms.fillpeaks,rdata.camera.quick,rdata.camera.positive,rdata.camera.negative,rdata"/>
49 <expand macro="camera_xcms" />
50 <param type="data" name="pa" label="purityA object (frag4feature output)" format="rdata"
51 help="purityA object saved as 'pa' in a RData file (output from frag4feature)"/>
52 <param name="eic" type="boolean" label="Include EIC data?"
53 help="The Extracted Ion Chromatogram can be calculated for each peak and stored in
54 the database. Note, this will take considerable time for large datasets and
55 the resulting SQLite database can be large"/>
56 <param name="raw_rt_columns" type="boolean" label="Use user defined Raw RT columns?"
57 help="Only use if the track_rt_raw tool has been used"/>
58 <expand macro="grp_peaklist" />
59 <expand macro="fileload" />
60 </inputs>
61 <outputs>
62 <data name="createDatabase_output_sqlite" format="sqlite"
63 label="${tool.name} on ${on_string}: LC-MS(/MS) data SQLite db"
64 from_work_dir="createDatabase_output.sqlite" />
65
66 </outputs>
67 <tests>
68 <test>
69 <conditional name="file_load_conditional">
70 <param name="file_load_select" value="yes"/>
71 <param name="input" >
72 <collection type="list">
73 <element name="LCMS_1.mzML" value="LCMS_1.mzML"/>
74 <element name="LCMS_2.mzML" value="LCMS_2.mzML"/>
75 <element name="LCMSMS_1.mzML" value="LCMSMS_1.mzML"/>
76 <element name="LCMSMS_2.mzML" value="LCMSMS_2.mzML"/>
77 </collection>
78 </param>
79 </conditional>
80 <param name="camera_xcms" value="xcms"/>
81 <param name="xset_xa" value="xset_group_LCMS_1_LCMS_2_LCMSMS_1_LCMSMS_2.RData"/>
82 <param name="pa" value="averageFragSpectra_output_all.RData"/>
83 <output name="createDatabase_output_sqlite" value="createDatabase_output.sqlite" ftype="sqlite" compare="sim_size"/>
84 </test>
85 </tests>
86
87 <help><![CDATA[
88 =============================================================
89 Create SQLite database for LC-MS(/MS) dataset
90 =============================================================
91 ** General **
92
93 Create and SQLite database of an LC-MS(/MS) experiment (replaces the create_database function).
94
95 Schema details can be found [here](https://bioconductor.org/packages/release/bioc/vignettes/msPurity/inst/doc/msPurity-spectral-datatabase-schema.html).
96
97 **Example LC-MS/MS processing workflow**
98
99 * Purity assessments
100 + (mzML files) -> purityA -> (pa)
101 * XCMS processing
102 + (mzML files) -> xcms.xcmsSet -> xcms.merge -> xcms.group -> xcms.retcor -> xcms.group -> (xset)
103 * Fragmentation processing
104 + (xset, pa) -> frag4feature -> filterFragSpectra -> averageAllFragSpectra -> **createDatabase** -> spectralMatching -> (sqlite spectral database)
105
106
107 -----------
108 Output
109 -----------
110 * lcms_sqlite: An SQLite database of the LC-MS(/MS) data (including fragmentation scans)
111
112 ]]></help>
113 <expand macro="citations" />
114 </tool>