comparison msgfplus.xml @ 2:058a2ab1d462 draft

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msgfplus commit b4871f9659a924a68430aed3a93f4f9bad733fd6
author galaxyp
date Wed, 07 Dec 2016 16:43:17 -0500
parents 797c755b9e74
children b4ccaf21855d
comparison
equal deleted inserted replaced
1:797c755b9e74 2:058a2ab1d462
1 <tool id="msgfplus" name="MS-GF+" version="0.1"> 1 <tool id="msgfplus" name="MS-GF+" version="0.1">
2 <description> 2 <description>
3 Identifies peptides in tandem mass spectra using the MS-GF+ search engine. 3 Identifies peptides in tandem mass spectra using the MS-GF+ search engine.
4 </description> 4 </description>
5 <requirements> 5 <requirements>
6 <requirement type="package" version="v10089">msgfplus</requirement> 6 <requirement type="package" version="2016.10.26">msgf_plus</requirement>
7 <environment_variable name="LC_ALL" action="set_to">C</environment_variable> 7 <environment_variable name="LC_ALL" action="set_to">C</environment_variable>
8 </requirements> 8 </requirements>
9 <stdio> 9 <stdio>
10 <exit_code range="1:" level="fatal" description="Job Failed" /> 10 <exit_code range="1:" level="fatal" description="Job Failed" />
11 <regex match="java.*Exception" level="fatal" description="Java Exception"/> 11 <regex match="java.*Exception" level="fatal" description="Java Exception"/>
12 <regex match="Could not create the Java virtual machine" level="fatal" description="JVM Error"/> 12 <regex match="Could not create the Java virtual machine" level="fatal" description="JVM Error"/>
13 </stdio> 13 </stdio>
14 <command> 14 <command>
15
15 <![CDATA[ 16 <![CDATA[
16 #set $db_name = $d.display_name.replace(".fasta", "") + ".fasta" 17 #if $msgf_input.intype_selector == "single"
17 #set $input_name = $s.display_name 18 #set $db_name = $msgf_input.d.display_name.replace(".fasta", "") + ".fasta"
19 #set $input_name = $msgf_input.s.display_name
20 ln -s '$msgf_input.s' '${input_name}' &&
21 ln -s '$msgf_input.d' '${db_name}' &&
22 #else if $msgf_input.intype_selector == "fractions"
23 #set $db_name = $msgf_input.db_spectra.reverse.display_name.replace(".fasta", "") + ".fasta"
24 #set $input_name = $msgf_input.db_spectra.forward.display_name
25 ln -s '$msgf_input.db_spectra.forward' '${input_name}' &&
26 ln -s '$msgf_input.db_spectra.reverse' '${db_name}' &&
27 #end if
18 #set $output_name = $input_name.replace(".mzML", "") + ".mzid" 28 #set $output_name = $input_name.replace(".mzML", "") + ".mzid"
19 ln -s '$s' '${input_name}' &&
20 ln -s '$d' '${db_name}' &&
21 29
22 echo \\#Mods > Mods.txt && 30 echo \\#Mods > Mods.txt &&
23 #set $common_mods = str($common_fixed_modifications) + "," + str($common_variable_modifications) 31 #set $common_mods = str($common_fixed_modifications) + "," + str($common_variable_modifications)
24 #for $mod in $common_mods.split(",") 32 #for $mod in $common_mods.split(",")
25 echo '$mod.replace("_", ",")' >> Mods.txt && 33 echo '$mod.replace("_", ",")' >> Mods.txt &&
27 35
28 #for $mod in $custom_mods 36 #for $mod in $custom_mods
29 echo '${mod.formula_or_mass},${mod.aa_specificity},${mod.fix_or_opt},${mod.position_specificity},${mod.mod_name}' >> Mods.txt && 37 echo '${mod.formula_or_mass},${mod.aa_specificity},${mod.fix_or_opt},${mod.position_specificity},${mod.mod_name}' >> Mods.txt &&
30 #end for 38 #end for
31 39
32 msgfjar=\$(which MSGFPlus.jar) && 40 msgf_plus
33 ( [ -f "\$msgfjar" ] || (echo MSGFPlus.jar not found && exit 1)) &&
34
35 java -jar \$msgfjar
36 -s '$input_name' 41 -s '$input_name'
37 -d '$db_name' 42 -d '$db_name'
38 -thread \${GALAXY_SLOTS:-1} 43 -thread \${GALAXY_SLOTS:-1}
39 -mod Mods.txt 44 -mod Mods.txt
40 -tda $tda 45 -tda $tda
54 && 59 &&
55 mv '$output_name' output 60 mv '$output_name' output
56 ]]> 61 ]]>
57 </command> 62 </command>
58 <inputs> 63 <inputs>
59 <param argument="-s" type="data" format="mzml" label="Input Raw MS File(s)"/> 64 <conditional name="msgf_input">
60 <param argument="-d" type="data" format="fasta" label="Protein Database" help="Select FASTA database from history"/> 65 <param name="intype_selector" type="select" label="Type of MSGF+ analysis">
66 <option value="single">Single database</option>
67 <option value="fractions">Prefractionated database</option>
68 </param>
69 <when value="single">
70 <param argument="-s" type="data" format="mzml" label="Input Raw MS File(s)"/>
71 <param argument="-d" type="data" format="fasta" label="Protein Database" help="Select FASTA database from history"/>
72 </when>
73 <when value="fractions">
74 <param name="db_spectra" type="data_collection" collection_type="paired"
75 label="Collection: Pairs of FASTA database (forward) and spectra (reverse)"/>
76 </when>
77 </conditional>
61 <param argument="-tda" type="boolean" truevalue="1" falsevalue="0" checked="true" label="Search with on-the-fly decoy database?" help="MSGF+ uses XXX_ as an accession prefix to indicate a decoy hit" /> 78 <param argument="-tda" type="boolean" truevalue="1" falsevalue="0" checked="true" label="Search with on-the-fly decoy database?" help="MSGF+ uses XXX_ as an accession prefix to indicate a decoy hit" />
62 <param argument="-t" type="float" value="10" label="Precursor mass tolerance" help="Error tolerance for matching peptide mass to precursor ion mass"/> 79 <param argument="-t" type="float" value="10" label="Precursor mass tolerance" help="Error tolerance for matching peptide mass to precursor ion mass"/>
63 <param name="precursor_ion_tol_units" type="select" label="Precursor mass tolerance units" help="Daltons are common for low-res instruments, ppm for high-res instruments"> 80 <param name="precursor_ion_tol_units" type="select" label="Precursor mass tolerance units" help="Daltons are common for low-res instruments, ppm for high-res instruments">
64 <option value="ppm" selected="true">Parts per million (ppm)</option> 81 <option value="ppm" selected="true">Parts per million (ppm)</option>
65 <option value="Da">Daltons</option> 82 <option value="Da">Daltons</option>
201 <outputs> 218 <outputs>
202 <data name="output" format="mzid" from_work_dir="output" /> 219 <data name="output" format="mzid" from_work_dir="output" />
203 </outputs> 220 </outputs>
204 <tests> 221 <tests>
205 <test> 222 <test>
206 <param name="s" value="input/201208-378803.mzML" /> 223 <param name="msgf_input.intype_selector" value="single" />
207 <param name="d" value="input/cow.protein.PRG2012-subset.fasta" /> 224 <param name="msgf_input.s" value="input/201208-378803.mzML" />
225 <param name="msgf_input.d" value="input/cow.protein.PRG2012-subset.fasta" />
226 <param name="tda" value="1" />
227 <param name="ntt" value="1" />
228 <param name="t" value="50" />
229 <param name="precursor_ion_tol_units" value="ppm" />
230 <param name="common_fixed_modifications" value="" />
231 <param name="common_variable_modifications" value="" />
232 <output name="output" file="201208-378803-msgf_20161026-50ppm-semitryptic-no_mods.mzid" compare="sim_size" delta="20" />
233 </test>
234 <test>
235 <param name="msgf_input.intype_selector" value="fractions" />
236 <param name="msgf_input.db_spectra.forward" value="input/201208-378803.mzML" />
237 <param name="msgf_input.db_spectra.reverse" value="input/cow.protein.PRG2012-subset.fasta" />
208 <param name="tda" value="1" /> 238 <param name="tda" value="1" />
209 <param name="ntt" value="1" /> 239 <param name="ntt" value="1" />
210 <param name="t" value="50" /> 240 <param name="t" value="50" />
211 <param name="precursor_ion_tol_units" value="ppm" /> 241 <param name="precursor_ion_tol_units" value="ppm" />
212 <param name="common_fixed_modifications" value="" /> 242 <param name="common_fixed_modifications" value="" />
213 <param name="common_variable_modifications" value="" /> 243 <param name="common_variable_modifications" value="" />
214 <output name="output" file="201208-378803-msgf-50ppm-semitryptic-no_mods.mzid" lines_diff="6" /> 244 <output name="output" file="201208-378803-msgf-50ppm-semitryptic-no_mods.mzid" lines_diff="6" />
215 </test> 245 </test>
216 <test> 246 <test>
217 <param name="s" value="input/201208-378803.mzML" /> 247 <param name="msgf_input.intype_selector" value="single" />
218 <param name="d" value="input/cow.protein.PRG2012-subset.fasta" /> 248 <param name="msgf_input.s" value="input/201208-378803.mzML" />
249 <param name="msgf_input.d" value="input/cow.protein.PRG2012-subset.fasta" />
219 <param name="tda" value="1" /> 250 <param name="tda" value="1" />
220 <param name="t" value="0.02" /> 251 <param name="t" value="0.02" />
221 <param name="precursor_ion_tol_units" value="Da" /> 252 <param name="precursor_ion_tol_units" value="Da" />
222 <param name="isotope_low" value="-1" /> 253 <param name="isotope_low" value="-1" />
223 <param name="isotope_high" value="0" /> 254 <param name="isotope_high" value="0" />
240 <param name="custom_mods_0|fix_or_opt" value="opt" /> 271 <param name="custom_mods_0|fix_or_opt" value="opt" />
241 <param name="custom_mods_0|position_specificity" value="c-term" /> 272 <param name="custom_mods_0|position_specificity" value="c-term" />
242 <param name="custom_mods_0|mod_name" value="Gly-loss+Amide" /> 273 <param name="custom_mods_0|mod_name" value="Gly-loss+Amide" />
243 274
244 <param name="custom_mods_1|formula_or_mass" value="C10H10N5O7P" /> 275 <param name="custom_mods_1|formula_or_mass" value="C10H10N5O7P" />
245 <param name="custom_mods_1|aa_specificity" value="CS" /> 276 <param name="custom_mods_1|aa_specificity" value="C,S" />
246 <param name="custom_mods_1|fix_or_opt" value="opt" /> 277 <param name="custom_mods_1|fix_or_opt" value="opt" />
247 <param name="custom_mods_1|position_specificity" value="any" /> 278 <param name="custom_mods_1|position_specificity" value="any" />
248 <param name="custom_mods_1|mod_name" value="cGMP" /> 279 <param name="custom_mods_1|mod_name" value="cGMP" />
249 280
250 <output name="output" file="201208-378803-msgf-2mmu-tryptic-many_mods.mzid" lines_diff="6" /> 281 <output name="output" file="201208-378803-msgf_20161026-2mmu-tryptic-many_mods.mzid" lines_diff="6" />
251 </test> 282 </test>
252 </tests> 283 </tests>
253 <help> 284 <help>
254 **What it does** 285 **What it does**
255 286