Mercurial > repos > computational-metabolomics > mspurity_averagefragspectra
comparison averageFragSpectra.xml @ 0:50eedf5ad217 draft
"planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit cb903cd93f9378cfb5eeb68512a54178dcea7bbc-dirty"
author | computational-metabolomics |
---|---|
date | Wed, 27 Nov 2019 13:35:22 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:50eedf5ad217 |
---|---|
1 <tool id="mspurity_averagefragspectra" name="msPurity.averageFragSpectra" version="@TOOL_VERSION@+galaxy@GALAXY_TOOL_VERSION@"> | |
2 <description>Average and filter LC-MS/MS fragmentation spectra (Inter, Intra or All)</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements"/> | |
7 <command detect_errors="exit_code"><![CDATA[ | |
8 Rscript '$__tool_directory__/averageFragSpectra.R' | |
9 --out_rdata='$averageFragSpectra_output_rdata' | |
10 --out_peaklist='$averageFragSpectra_output_tsv' | |
11 --pa='$pa' | |
12 --av_level=$av_level | |
13 --cores=\${GALAXY_SLOTS:-4} | |
14 --minfrac=$minfrac | |
15 --minnum=$minnum | |
16 --ppm=$ppm | |
17 --snr=$snr | |
18 --ra=$ra | |
19 --av=$av | |
20 $sumi | |
21 $rmp | |
22 ]]></command> | |
23 <inputs> | |
24 <param argument="--pa" type="data" label="purityA object" format="rdata" | |
25 help="purityA object saved as 'pa' in a RData file (output from frag4feature tool)"/> | |
26 | |
27 | |
28 <param argument="--av_level" type="select" label="Average and filter fragmentation spectra for each XCMS feature" help=""> | |
29 <option value="intra" selected="true">within a MS data file</option> | |
30 <option value="inter">across MS data files</option> | |
31 <option value="all">within and across MS data files (ignoring intra and inter relationships)</option> | |
32 </param> | |
33 | |
34 | |
35 <param argument="--snr" type="float" min="0.0" value="0.0" label="Signal-to-noise threshold after averaging or summing" help="" /> | |
36 <param argument="--ra" type="float" min="0.0" max="1.0" value="0.0" label="Relative abundance threshold after averaging or summing" help="" /> | |
37 <param argument="--minfrac" type="float" min="0.0" max="1.0" value="0.5" label="Minimum fraction (i.e. percentage) of (averaged) scans a fragment peak has to be present in." help="" /> | |
38 <param argument="--minnum" type="integer" min="1" value="1" label="Minimum number of (averaged) fragmentation scans for a fragmentation event (precursor)." help="" /> | |
39 <param argument="--ppm" type="float" min="0.0" value="5.0" label="Ppm error tolerance" help="Maximum tolerated m/z deviation in parts per million." /> | |
40 <param argument="--sumi" type="boolean" checked="false" truevalue="--sumi" falsevalue="" label="Sum intensities across (averaged) scans?" help="" /> | |
41 <param argument="--av" type="select" label="Function to calculate the average intensity, m/z and SNR values across (averaged) scans after filtering." help="This is ignored for intensities when intensities are summed." > | |
42 <option value="median" selected="true">median</option> | |
43 <option value="mean">mean</option> | |
44 </param> | |
45 | |
46 <param argument="--rmp" type="boolean" checked="true" truevalue="--rmp" falsevalue="" label="Remove peaks that do not meet the filtering criteria. Otherwise peaks will be flagged instead." | |
47 help="" /> | |
48 </inputs> | |
49 <outputs> | |
50 <data name="averageFragSpectra_output_rdata" format="rdata" label="${tool.name} (${av_level}) on ${on_string}: RData" /> | |
51 <data name="averageFragSpectra_output_tsv" format="tsv" label="${tool.name} (${av_level}) on ${on_string}: peaklist" /> | |
52 </outputs> | |
53 <tests> | |
54 <test> | |
55 <param name="av_level" value="intra" /> | |
56 <param name="pa" value="filterFragSpectra_output.RData" /> | |
57 <output name="averageFragSpectra_output_rdata" file="averageFragSpectra_output_intra.RData" ftype="rdata" compare="sim_size" /> | |
58 <output name="averageFragSpectra_output_tsv" file="averageFragSpectra_output_intra.tsv" ftype="tsv" /> | |
59 </test> | |
60 <test> | |
61 <param name="av_level" value="inter" /> | |
62 <param name="pa" value="averageFragSpectra_output_intra.RData" /> | |
63 <output name="averageFragSpectra_output_rdata" file="averageFragSpectra_output_inter.RData" ftype="rdata" compare="sim_size" /> | |
64 <output name="averageFragSpectra_output_tsv" file="averageFragSpectra_output_inter.tsv" ftype="tsv" /> | |
65 </test> | |
66 <test> | |
67 <param name="av_level" value="all" /> | |
68 <param name="pa" value="frag4feature_output.RData" /> | |
69 <output name="averageFragSpectra_output_rdata" file="averageFragSpectra_output_all_only.RData" ftype="rdata" compare="sim_size" /> | |
70 <output name="averageFragSpectra_output_tsv" file="averageFragSpectra_output_all_only.tsv" ftype="tsv" /> | |
71 </test> | |
72 <test> | |
73 <param name="av_level" value="all" /> | |
74 <param name="pa" value="averageFragSpectra_output_inter.RData" /> | |
75 <output name="averageFragSpectra_output_rdata" file="averageFragSpectra_output_all.RData" ftype="rdata" compare="sim_size" /> | |
76 <output name="averageFragSpectra_output_tsv" file="averageFragSpectra_output_all.tsv" ftype="tsv" /> | |
77 | |
78 </test> | |
79 </tests> | |
80 | |
81 <help><![CDATA[ | |
82 ============================================================= | |
83 Average Fragmentation Spectra | |
84 ============================================================= | |
85 ----------- | |
86 Description | |
87 ----------- | |
88 | |
89 Average and filter fragmentation spectra for each XCMS feature using an msPurity purityA object. | |
90 | |
91 The tool uses the msPurity functions averageAllFragSpectra, averageIntraFragSpectra and | |
92 averageInterFragSpectra. | |
93 | |
94 The fragmentation spectra can be averaged in multiple ways; intra will average fragmentation | |
95 spectra within an mzML file, inter will average fragmentation spectra across mzML files | |
96 (requires intra to be run first) and all will average all spectra ignoring the intra and | |
97 inter relationships. | |
98 | |
99 The averaging is performed using hierarchical clustering of the m/z values of each peaks, | |
100 where m/z values within a set ppm tolerance will be clustered. The clustered peaks are then | |
101 averaged (or summed). | |
102 | |
103 The fragmentation can be filtered on the averaged spectra (with the arguments snr, rsd, minfrac, ra) | |
104 | |
105 | |
106 See Bioconductor documentation for more details, functions: | |
107 msPurity::averageIntraFragSpectra() | |
108 msPurity::averageInterFragSpectra() | |
109 msPurity::averageAllFragSpectra() | |
110 | |
111 ----------- | |
112 Outputs | |
113 ----------- | |
114 * average_x_fragmentation_spectra_rdata | |
115 | |
116 ]]></help> | |
117 | |
118 <expand macro="citations" /> | |
119 | |
120 </tool> |