comparison DecoyDatabase.xml @ 11:622bb8ee4942 draft

"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 020906fb54bde7fc143c356f41975c378a741315"
author galaxyp
date Wed, 09 Sep 2020 20:11:37 +0000
parents 2e19b070f997
children 71a6c870aa48
comparison
equal deleted inserted replaced
10:1742dc757444 11:622bb8ee4942
1 <?xml version='1.0' encoding='UTF-8'?> 1 <?xml version='1.0' encoding='UTF-8'?>
2 <!--This is a configuration file for the integration of a tools into Galaxy (https://galaxyproject.org/). This file was automatically generated using CTDConverter.--> 2 <!--This is a configuration file for the integration of a tools into Galaxy (https://galaxyproject.org/). This file was automatically generated using CTDConverter.-->
3 <!--Proposed Tool Section: [Utilities]--> 3 <!--Proposed Tool Section: [Utilities]-->
4 <tool id="DecoyDatabase" name="DecoyDatabase" version="2.3.0"> 4 <tool id="DecoyDatabase" name="DecoyDatabase" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05">
5 <description>Create decoy protein DB from forward protein DB.</description> 5 <description>Create decoy sequence database from forward sequence database.</description>
6 <macros> 6 <macros>
7 <token name="@EXECUTABLE@">DecoyDatabase</token> 7 <token name="@EXECUTABLE@">DecoyDatabase</token>
8 <import>macros.xml</import> 8 <import>macros.xml</import>
9 <import>macros_autotest.xml</import>
10 <import>macros_test.xml</import>
9 </macros> 11 </macros>
10 <expand macro="references"/> 12 <expand macro="requirements"/>
11 <expand macro="stdio"/> 13 <expand macro="stdio"/>
12 <expand macro="requirements"/> 14 <command detect_errors="exit_code"><![CDATA[@QUOTE_FOO@
13 <command detect_errors="aggressive"><![CDATA[DecoyDatabase 15 @EXT_FOO@
16 #import re
14 17
18 ## Preprocessing
19 mkdir in &&
20 ${ ' '.join(["ln -s '%s' 'in/%s.%s' &&" % (_, re.sub('[^\w\-_]', '_', _.element_identifier), $gxy2omsext(_.ext)) for _ in $in if _]) }
21 mkdir out &&
22
23 ## Main program call
24
25 set -o pipefail &&
26 @EXECUTABLE@ -write_ctd ./ &&
27 python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' &&
28 @EXECUTABLE@ -ini @EXECUTABLE@.ctd
15 -in 29 -in
16 #for token in $param_in: 30 ${' '.join(["'in/%s.%s'"%(re.sub('[^\w\-_]', '_', _.element_identifier), $gxy2omsext(_.ext)) for _ in $in if _])}
17 $token 31 -out
18 #end for 32 'out/output.${gxy2omsext("fasta")}'
19 #if $param_out: 33
20 -out $param_out 34 ## Postprocessing
21 #end if 35 && mv 'out/output.${gxy2omsext("fasta")}' '$out'
22 #if $param_decoy_string: 36 #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS
23 -decoy_string "$param_decoy_string" 37 && mv '@EXECUTABLE@.ctd' '$ctd_out'
24 #end if 38 #end if]]></command>
25 #if $param_decoy_string_position: 39 <configfiles>
26 -decoy_string_position 40 <inputs name="args_json" data_style="paths"/>
27 #if " " in str($param_decoy_string_position): 41 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile>
28 "$param_decoy_string_position" 42 </configfiles>
29 #else
30 $param_decoy_string_position
31 #end if
32 #end if
33 #if $param_only_decoy:
34 -only_decoy
35 #end if
36 #if $param_method:
37 -method
38 #if " " in str($param_method):
39 "$param_method"
40 #else
41 $param_method
42 #end if
43 #end if
44 #if $adv_opts.adv_opts_selector=='advanced':
45 #if $adv_opts.param_force:
46 -force
47 #end if
48 #end if
49 ]]></command>
50 <inputs> 43 <inputs>
51 <param name="param_in" type="data" format="fasta" multiple="true" optional="False" size="30" label="Input FASTA file(s), each containing a database" help="(-in) It is recommended to include a contaminant database as well"> 44 <param name="in" argument="-in" type="data" format="fasta" multiple="true" optional="false" label="Input FASTA file(s), each containing a database" help="It is recommended to include a contaminant database as well select fasta data sets(s)"/>
52 <sanitizer> 45 <param name="decoy_string" argument="-decoy_string" type="text" optional="true" value="DECOY_" label="String that is combined with the accession of the protein identifier to indicate a decoy protein" help="">
53 <valid initial="string.printable"> 46 <expand macro="list_string_san"/>
54 <remove value="'"/>
55 <remove value="&quot;"/>
56 </valid>
57 </sanitizer>
58 </param> 47 </param>
59 <param name="param_decoy_string" type="text" size="30" value="DECOY_" label="String that is combined with the accession of the protein identifier to indicate a decoy protein" help="(-decoy_string) "> 48 <param name="decoy_string_position" argument="-decoy_string_position" display="radio" type="select" optional="false" label="Should the 'decoy_string' be prepended (prefix) or appended (suffix) to the protein accession?" help="">
60 <sanitizer>
61 <valid initial="string.printable">
62 <remove value="'"/>
63 <remove value="&quot;"/>
64 </valid>
65 </sanitizer>
66 </param>
67 <param name="param_decoy_string_position" display="radio" type="select" optional="False" value="prefix" label="Should the 'decoy_string' be prepended (prefix) or appended (suffix) to the protein accession?" help="(-decoy_string_position) ">
68 <option value="prefix" selected="true">prefix</option> 49 <option value="prefix" selected="true">prefix</option>
69 <option value="suffix">suffix</option> 50 <option value="suffix">suffix</option>
51 <expand macro="list_string_san"/>
70 </param> 52 </param>
71 <param name="param_only_decoy" display="radio" type="boolean" truevalue="-only_decoy" falsevalue="" checked="false" optional="True" label="Write only decoy proteins to the output database instead of a combined database" help="(-only_decoy) "/> 53 <param name="only_decoy" argument="-only_decoy" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Write only decoy proteins to the output database instead of a combined database" help=""/>
72 <param name="param_method" display="radio" type="select" optional="False" value="reverse" label="Method by which decoy sequences are generated from target sequences" help="(-method) "> 54 <param name="type" argument="-type" display="radio" type="select" optional="false" label="Type of sequence" help="RNA sequences may contain modification codes, which will be handled correctly if this is set to 'RNA'">
55 <option value="protein" selected="true">protein</option>
56 <option value="RNA">RNA</option>
57 <expand macro="list_string_san"/>
58 </param>
59 <param name="method" argument="-method" display="radio" type="select" optional="false" label="Method by which decoy sequences are generated from target sequences" help="Note that all sequences are shuffled using the same random seed, ensuring that identical sequences produce the same shuffled decoy sequences. Shuffled sequences that produce highly similar output sequences are shuffled again (see shuffle_sequence_identity_threshold)">
73 <option value="reverse" selected="true">reverse</option> 60 <option value="reverse" selected="true">reverse</option>
74 <option value="shuffle">shuffle</option> 61 <option value="shuffle">shuffle</option>
62 <expand macro="list_string_san"/>
75 </param> 63 </param>
76 <expand macro="advanced_options"> 64 <param name="enzyme" argument="-enzyme" type="select" optional="false" label="Enzyme used for the digestion of the sample" help="Only applicable if parameter 'type' is 'protein'">
77 <param name="param_force" display="radio" type="boolean" truevalue="-force" falsevalue="" checked="false" optional="True" label="Overwrite tool specific checks" help="(-force) "/> 65 <option value="Asp-N">Asp-N</option>
66 <option value="Asp-N/B">Asp-N/B</option>
67 <option value="Asp-N_ambic">Asp-N_ambic</option>
68 <option value="glutamyl endopeptidase">glutamyl endopeptidase</option>
69 <option value="Alpha-lytic protease">Alpha-lytic protease</option>
70 <option value="Glu-C+P">Glu-C+P</option>
71 <option value="PepsinA + P">PepsinA + P</option>
72 <option value="cyanogen-bromide">cyanogen-bromide</option>
73 <option value="Clostripain/P">Clostripain/P</option>
74 <option value="elastase-trypsin-chymotrypsin">elastase-trypsin-chymotrypsin</option>
75 <option value="Chymotrypsin">Chymotrypsin</option>
76 <option value="Chymotrypsin/P">Chymotrypsin/P</option>
77 <option value="CNBr">CNBr</option>
78 <option value="Formic_acid">Formic_acid</option>
79 <option value="Lys-C">Lys-C</option>
80 <option value="Lys-N">Lys-N</option>
81 <option value="Lys-C/P">Lys-C/P</option>
82 <option value="PepsinA">PepsinA</option>
83 <option value="TrypChymo">TrypChymo</option>
84 <option value="Trypsin/P">Trypsin/P</option>
85 <option value="V8-DE">V8-DE</option>
86 <option value="V8-E">V8-E</option>
87 <option value="leukocyte elastase">leukocyte elastase</option>
88 <option value="proline endopeptidase">proline endopeptidase</option>
89 <option value="no cleavage">no cleavage</option>
90 <option value="unspecific cleavage">unspecific cleavage</option>
91 <option value="Arg-C">Arg-C</option>
92 <option value="Arg-C/P">Arg-C/P</option>
93 <option value="2-iodobenzoate">2-iodobenzoate</option>
94 <option value="iodosobenzoate">iodosobenzoate</option>
95 <option value="staphylococcal protease/D">staphylococcal protease/D</option>
96 <option value="proline-endopeptidase/HKR">proline-endopeptidase/HKR</option>
97 <option value="Trypsin" selected="true">Trypsin</option>
98 <expand macro="list_string_san"/>
99 </param>
100 <section name="Decoy" title="Decoy parameters section" help="" expanded="false">
101 <param name="non_shuffle_pattern" argument="-Decoy:non_shuffle_pattern" type="text" optional="true" value="" label="Residues to not shuffle (keep at a constant position when shuffling)" help="Separate by comma, e.g. use 'K,P,R' here">
102 <expand macro="list_string_san"/>
103 </param>
104 <param name="keepPeptideNTerm" argument="-Decoy:keepPeptideNTerm" type="boolean" truevalue="true" falsevalue="false" checked="true" label="Whether to keep peptide N terminus constant when shuffling / reversing" help=""/>
105 <param name="keepPeptideCTerm" argument="-Decoy:keepPeptideCTerm" type="boolean" truevalue="true" falsevalue="false" checked="true" label="Whether to keep peptide C terminus constant when shuffling / reversing" help=""/>
106 </section>
107 <expand macro="adv_opts_macro">
108 <param name="shuffle_max_attempts" argument="-shuffle_max_attempts" type="integer" optional="true" value="30" label="shuffle: maximum attempts to lower the amino acid sequence identity between target and decoy for the shuffle algorithm" help=""/>
109 <param name="shuffle_sequence_identity_threshold" argument="-shuffle_sequence_identity_threshold" type="float" optional="true" value="0.5" label="shuffle: target-decoy amino acid sequence identity threshold for the shuffle algorithm" help="If the sequence identity is above this threshold, shuffling is repeated. In case of repeated failure, individual amino acids are 'mutated' to produce a different amino acid sequence"/>
110 <param name="seed" argument="-seed" type="text" optional="true" value="1" label="Random number seed (use 'time' for system time)" help="">
111 <expand macro="list_string_san"/>
112 </param>
113 <param name="force" argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overwrite tool specific checks" help=""/>
114 <param name="test" argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help="">
115 <expand macro="list_string_san"/>
116 </param>
78 </expand> 117 </expand>
118 <param name="OPTIONAL_OUTPUTS" type="select" multiple="true" label="Optional outputs" optional="true">
119 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option>
120 </param>
79 </inputs> 121 </inputs>
80 <outputs> 122 <outputs>
81 <data name="param_out" format="fasta"/> 123 <data name="out" label="${tool.name} on ${on_string}: out" format="fasta"/>
124 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd">
125 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter>
126 </data>
82 </outputs> 127 </outputs>
83 <tests> 128 <tests>
84 <test> 129 <expand macro="autotest_DecoyDatabase"/>
85 <param name="param_in" value="DecoyDatabase_input.fasta"/> 130 <expand macro="manutest_DecoyDatabase"/>
86 <output name="param_out" file="DecoyDatabase_output.fasta"/>
87 </test>
88 </tests> 131 </tests>
89 <help>Create decoy protein DB from forward protein DB. 132 <help><![CDATA[Create decoy sequence database from forward sequence database.
90 133
91 134
92 For more information, visit https://abibuilder.informatik.uni-tuebingen.de/archive/openms/Documentation/release/2.3.0/html/UTILS_DecoyDatabase.html</help> 135 For more information, visit http://www.openms.de/documentation/UTILS_DecoyDatabase.html]]></help>
136 <expand macro="references"/>
93 </tool> 137 </tool>