comparison idpQonvertEmbedder.xml @ 3:d1f7b2395bc2 draft

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/bumbershoot/idpqonvert commit 0be0fd3f899ce64aa53e44117931fe1a7d8c52ab
author galaxyp
date Thu, 15 Dec 2016 17:20:57 -0500
parents
children aec819a9068b
comparison
equal deleted inserted replaced
2:e39c5664b04a 3:d1f7b2395bc2
1 <?xml version="1.0"?>
2 <tool id="idpqonvertEmbedder" name="idpEmbedder" version="@VERSION@.0">
3 <description>Embed human/mouse gene metadata into IDPicker files</description>
4 <macros>
5 <import>macros.xml</import>
6 </macros>
7 <expand macro="requirements" />
8 <stdio>
9 <exit_code range="1:" level="fatal" description="Job Failed" />
10 <regex match="\nError:.*\n" source="both" level="fatal" />
11 </stdio>
12 <command>
13 <![CDATA[
14 #set $input_name = $input.display_name
15 cp '$input' output &&
16 ln -s output output.idpDB &&
17 ln -s \$(dirname \$(which idpQonvert))/gene2protein.db3 gene2protein.db3 &&
18
19 #if $use_raw_data_condition.use_raw_data
20 #for $i in $use_raw_data_condition.input_raw
21 ln -s '${i.file_name}' '${i.display_name}' &&
22 #end for
23 #end if
24
25 idpQonvert
26 -EmbedOnly true
27 -EmbedGeneMetadata $EmbedGeneMetadata
28 #if $use_raw_data_condition.use_raw_data
29 -EmbedSpectrumScanTimes $use_raw_data_condition.EmbedSpectrumScanTimes
30 -EmbedSpectrumSources $use_raw_data_condition.EmbedSpectrumSources
31 -QuantitationMethod $use_raw_data_condition.QuantitationMethod
32 #end if
33 output.idpDB
34 ]]>
35 </command>
36 <inputs>
37 <param name="input" type="data" format="idpdb" label="Input idpDB file" />
38 <param argument="-EmbedGeneMetadata" type="boolean" value="true" label="Embed Gene Metadata?" help="Allows gene-centric analysis in IDPicker. The gene metadata embedding only works for human/mouse proteins from a RefSeq database. For best results, run idpQonvert with RefSeq no matter what database was used for the search: idpQonvert always remap the peptides anyway. Non-human/mouse proteins and any unmappable human/mouse proteins will get gene ids like &quot;Unmapped_&lt;protein accession&gt;&quot;. This option, run by itself, is very fast." />
39 <conditional name="use_raw_data_condition">
40 <param name="use_raw_data" type="boolean" label="Do you have the raw data (spectra)?" help="More embed options are available if the raw spectra are available." />
41 <when value="false"></when>
42 <when value="true">
43 <param name="input_raw" type="data" format="mzml,mzxml,mgf,ms2,mz5" label="Input raw MS files" multiple="true" />
44 <param argument="-EmbedSpectrumSources" type="boolean" value="false" label="Embed Spectrum Sources?" help="Allows visualizing peptide-spectrum-matches without downloading the raw data. Embedding spectra will greatly increase the size of the database, even though only spectra that passed the import FDR filter will be included. This option can take a LONG time to run." />
45 <param argument="-EmbedSpectrumScanTimes" type="boolean" value="false" label="Embed Spectrum Scan Times?" help="If the pepXML/mzIdentML file did not contain scan time (retention time) information, this will look up that information in the raw data. This option, run by itself, will take some time (it has to open every raw file)." />
46 <param argument="-QuantitationMethod" type="select" label="Quantitation Method" help="Enables quantitation methods other than spectral counting. For isobaric isotope labelling quantitation (iTRAQ/TMT) or intensity-based label-free quantitation (XIC), select the appropriate QuantitationMethod here. You have to keep iTRAQ/TMT and label-free data separate since you can only specify a single QuantitationMethod for the entire assembly. Like embedding spectrum sources, this option can take a LONG time to run, although not quite as long.">
47 <option value="None" selected="true">None</option>
48 <option value="LabelFree">Label-free (XIC)</option>
49 <option value="ITRAQ4plex">iTRAQ 4-plex</option>
50 <option value="ITRAQ8plex">iTRAQ 8-plex</option>
51 <option value="TMT2plex">TMT 2-plex</option>
52 <option value="TMT6plex">TMT 6-plex</option>
53 <option value="TMT10plex">TMT 10-plex</option>
54 </param>
55 </when>
56 </conditional>
57 </inputs>
58 <outputs>
59 <data format="idpdb" name="output" from_work_dir="output" />
60 </outputs>
61 <tests>
62 <test>
63 <param name="input" value="input/201208-378803.idpDB" />
64 <param name="EmbedGeneMetadata" value="false" />
65 <output name="output" file="input/201208-378803.idpDB" compare="sim_size" delta="500000" />
66 </test>
67 <test>
68 <param name="input" value="input/201208-378803.idpDB" />
69 <param name="EmbedGeneMetadata" value="true" />
70 <output name="output" file="201208-378803-embeddedGenes.idpDB" compare="sim_size" delta="500000" />
71 </test>
72 <test>
73 <param name="input" value="input/201208-378803.idpDB" />
74 <param name="EmbedGeneMetadata" value="true" />
75 <param name="use_raw_data" value="true" />
76 <param name="input_raw" value="input/201208-378803.mzML" />
77 <param name="EmbedSpectrumSources" value="false" />
78 <param name="EmbedSpectrumScanTimes" value="true" />
79 <param name="QuantitationMethod" value="None" />
80 <output name="output" file="201208-378803-embeddedGenesAndScanTimes.idpDB" compare="sim_size" delta="500000" />
81 </test>
82 <test>
83 <param name="input" value="input/201208-378803.idpDB" />
84 <param name="EmbedGeneMetadata" value="true" />
85 <param name="use_raw_data" value="true" />
86 <param name="input_raw" value="input/201208-378803.mzML" />
87 <param name="EmbedSpectrumSources" value="true" />
88 <param name="EmbedSpectrumScanTimes" value="false" />
89 <param name="QuantitationMethod" value="None" />
90 <output name="output" file="201208-378803-embeddedGenesAndSpectra.idpDB" compare="sim_size" delta="500000" />
91 </test>
92 <test>
93 <param name="input" value="input/201208-378803.idpDB" />
94 <param name="EmbedGeneMetadata" value="true" />
95 <param name="use_raw_data" value="true" />
96 <param name="input_raw" value="input/201208-378803.mzML" />
97 <param name="EmbedSpectrumSources" value="false" />
98 <param name="EmbedSpectrumScanTimes" value="true" />
99 <param name="QuantitationMethod" value="ITRAQ4plex" />
100 <output name="output" file="201208-378803-embeddedGenesAndQuantitation.idpDB" compare="sim_size" delta="500000" />
101 </test>
102 </tests>
103 <help>
104 <![CDATA[
105 **What it does**
106
107 Embeds optional data and metadata into the IDPicker 3 idpDB files. This should be run after all idpDB files have been merged together (e.g. after idpAssemble).
108 ]]>
109 </help>
110 <citations>
111 <citation type="doi">10.1021/pr900360j</citation>
112 <citation type="bibtex">@misc{toolsGalaxyP, author = {Chilton, J, Chambers MC, et al.}, title = {Galaxy Proteomics Tools}, publisher = {GitHub}, journal = {GitHub repository},
113 year = {2015}, url = {https://github.com/galaxyproteomics/tools-galaxyp}}</citation> <!-- TODO: fix substitution of commit ", commit = {$sha1$}" -->
114 </citations>
115 </tool>