comparison rnacode.xml @ 3:d49b9759e294 draft default tip

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/rna_tools/rnacode commit 3abc213e109bb564de7dee75d71d90eb1bf78c7e
author rnateam
date Thu, 15 Nov 2018 01:24:06 -0500
parents 434332033e82
children
comparison
equal deleted inserted replaced
2:434332033e82 3:d49b9759e294
1 <tool id="rbc_rnacode" name="RNAcode" version="0.3.1"> 1 <tool id="rbc_rnacode" name="RNAcode" version="0.3.2">
2 <description>Analyze the protein coding potential in MSA.</description> 2 <description>Analyze the protein coding potential in MSA.</description>
3 <requirements> 3 <requirements>
4 <requirement type="package" version="0.3">rnacode</requirement> 4 <requirement type="package" version="0.3">rnacode</requirement>
5 <requirement type="package" version="9.22">ghostscript</requirement>
5 </requirements> 6 </requirements>
6 <version_command>RNAcode --version</version_command> 7 <version_command>RNAcode --version</version_command>
7 <command detect_errors="exit_code"> 8 <command detect_errors="exit_code">
8 <![CDATA[ 9 <![CDATA[
9 #if $cond_breakmaf.select_breakmaf == 'breakmaf' 10 #if $cond_breakmaf.select_breakmaf == 'breakmaf'
50 #if $outputFormat.value == '--tabular' 51 #if $outputFormat.value == '--tabular'
51 --outfile $outFileDefault 52 --outfile $outFileDefault
52 #elif $outputFormat.value == '--gtf' 53 #elif $outputFormat.value == '--gtf'
53 --outfile $outFileGTF 54 --outfile $outFileGTF
54 #end if 55 #end if
55 56
57 ## add missing header
58 #if $cond_breakmaf.select_breakmaf != 'breakmaf' and $outputFormat.value == '--tabular':
59 && sed -i -e "1 i\HSS #\tStrand\tFrame\tLength\tFrom\tTo\tName\tStart\tEnd\tScore\tP" $outFileDefault #end if
60
61 #if $cond_generateEPS.generateEPS == 'create'
62 #if $cond_generateEPS.imgoutfmt == 'zipeps'
63 && tar -czf '$out_eps_zip' eps
64 #else if $cond_generateEPS.imgoutfmt == 'eps'
65 && gs -sDEVICE=eps2write -dNOPAUSE -dBATCH -dSAFER -sOutputFile='$out_eps_mp' `ls -v eps/*.eps`
66 #end if
67 #end if
56 ]]> 68 ]]>
57 </command> 69 </command>
58 <inputs> 70 <inputs>
59 <param name="alignment" type="data" format="clustal,maf" label="Multiple Alignment" help="Alignment needs to be formatted in ClustalW or MAF format"/> 71 <param name="alignment" type="data" format="maf" label="Multiple Alignment" help="Alignment needs to be formatted in ClustalW or MAF format"/>
60 <conditional name="cond_breakmaf"> 72 <conditional name="cond_breakmaf">
61 <param name="select_breakmaf" type="select" label="Break long alignment blocks" help="If your alignments contain blocks of long genomic regions it is usually not reasonable to score these long regions as a whole."> 73 <param name="select_breakmaf" type="select" label="Break long alignment blocks" help="If your alignments contain blocks of long genomic regions it is usually not reasonable to score these long regions as a whole.">
62 <option value="keepmaf" selected="true">Process original alignment</option> 74 <option value="keepmaf" selected="true">Process original alignment</option>
63 <option value="breakmaf">Break long alignment blocks</option> 75 <option value="breakmaf">Break long alignment blocks</option>
64 </param> 76 </param>
83 <when value="custom"> 95 <when value="custom">
84 <param argument="--pars" name="pars" type="text" label="Scoring parameters as comma separated string:'DELTA,OMEGA,omega,stop_penalty'" help="See the appendix of the Paper for an explanation for the meaning of these parameters. Default: '-10.0,-4.0,-2.0,-8.0'"/> 96 <param argument="--pars" name="pars" type="text" label="Scoring parameters as comma separated string:'DELTA,OMEGA,omega,stop_penalty'" help="See the appendix of the Paper for an explanation for the meaning of these parameters. Default: '-10.0,-4.0,-2.0,-8.0'"/>
85 </when> 97 </when>
86 </conditional> 98 </conditional>
87 <conditional name="cond_generateEPS"> 99 <conditional name="cond_generateEPS">
88 <param name="generateEPS" type="select" label="Create colored plots in EPS format" help="The generated plots are resolution independent vector graphics that can be included in any graphics software. For each high scoring segment below a given cutoff (see --eps-cutoff) a file named hss-N.eps is created (N is the running number of the high scoring segment)"> 100 <param name="generateEPS" type="select" label="Create plots" help="The generated plots are resolution independent vector graphics that can be included in any graphics software. For each high scoring segment below a given cutoff (see --eps-cutoff) a file named hss-N.eps is created (N is the running number of the high scoring segment)">
89 <option value="create" selected="true">Create Plots</option> 101 <option value="create">Create Plots</option>
90 <option value="nocreate">Do not generate EPS plots</option> 102 <option value="nocreate" selected="true">Do not generate EPS plots</option>
91 </param> 103 </param>
92 <when value="create"> 104 <when value="create">
93 <param argument="--eps_cutoff" name="eps_cutoff" type="float" optional="true" value="0.05" label="Create plots only for high scoring segments with p better than:" help=""/> 105 <param argument="--eps_cutoff" name="eps_cutoff" type="float" optional="true" value="0.05" label="Create plots only for high scoring segments with p better than:" help=""/>
94 </when> 106 <param name="imgoutfmt" type="select" label="Output format" help="For larger numbers of high scoring segments output to a collection can be slow. Choose zipped or single page eps in this case.">
107 <option value="sepeps" selected="true">separate eps in collection</option>
108 <option value="zipeps">zipped eps</option>
109 <option value="eps">multi page eps</option>
110 </param>
111 </when>
95 <when value="nocreate"/> 112 <when value="nocreate"/>
96 </conditional> 113 </conditional>
97 114
98 <param name="outputFormat" type="select" label="Output format"> 115 <param name="outputFormat" type="select" label="Output format">
99 <option value="--tabular" selected="true">Default</option> 116 <option value="--tabular" selected="true">Default</option>
105 <filter>outputFormat == '--tabular'</filter> 122 <filter>outputFormat == '--tabular'</filter>
106 </data> 123 </data>
107 <data name="outFileGTF" format="gtf" label="${tool.name} on ${on_string}"> 124 <data name="outFileGTF" format="gtf" label="${tool.name} on ${on_string}">
108 <filter>outputFormat == '--gtf'</filter> 125 <filter>outputFormat == '--gtf'</filter>
109 </data> 126 </data>
110 <collection name="output_eps" type="list" label="Plots for ${tool.name} on ${on_string}"> 127 <collection name="output_eps" type="list" label="Plots for ${tool.name} on ${on_string} (plots)">
111 <filter>cond_generateEPS['generateEPS'] == "create"</filter> 128 <filter>cond_generateEPS['generateEPS'] == "create" and cond_generateEPS['imgoutfmt'] == "sepeps"</filter>
112 <discover_datasets pattern="(?P&lt;designation&gt;.*)\.eps" directory="eps" ext="eps"/> 129 <discover_datasets pattern="(?P&lt;designation&gt;.*)\.eps" directory="eps" ext="eps"/>
113 </collection> 130 </collection>
131 <data name="out_eps_zip" format="zip" label="${tool.name} on ${on_string} (plots)">
132 <filter>cond_generateEPS['generateEPS'] == "create" and cond_generateEPS['imgoutfmt'] == "zipeps"</filter>
133 </data>
134 <data name="out_eps_mp" format="eps" label="${tool.name} on ${on_string} (plots)">
135 <filter>cond_generateEPS['generateEPS'] == "create" and cond_generateEPS['imgoutfmt'] == "eps"</filter>
136 </data>
114 </outputs> 137 </outputs>
115 <tests> 138 <tests>
116 <test> 139 <test>
117 <param name="alignment" value="coding.aln"/> 140 <param name="alignment" value="coding.aln"/>
118 <param name="generateEPS" value="nocreate"/>
119 <param name="outputFormat" value="--tabular"/> 141 <param name="outputFormat" value="--tabular"/>
120 <output name="outFileDefault" ftype="tabular" file="rnacode_result1.tabular" compare="sim_size"/> 142 <output name="outFileDefault" ftype="tabular" file="rnacode_result1.tabular" compare="sim_size"/>
143 <conditional name="cond_generateEPS">
144 <param name="generateEPS" value="create"/>
145 <param name="eps_cutoff" value="0.05"/>
146 <param name="imgoutfmt" value="sepeps" />
147 </conditional>
148 <output_collection name="output_eps" type="list" count="2">
149 <element name="hss-0" file="hss-0.eps" ftype="eps" compare="sim_size" delta="50000"/>
150 <element name="hss-1" file="hss-1.eps" ftype="eps" compare="sim_size" delta="50000"/>
151 </output_collection>
121 <!-- sim_size is needed due to rnacode using random sampling: result files differ, better tests should be implemented --> 152 <!-- sim_size is needed due to rnacode using random sampling: result files differ, better tests should be implemented -->
122 </test> 153 </test>
123 <test> 154 <test>
124 <param name="alignment" value="coding.aln"/> 155 <param name="alignment" value="coding.aln"/>
125 <param name="generateEPS" value="nocreate"/> 156 <conditional name="cond_generateEPS">
157 <param name="generateEPS" value="create"/>
158 <param name="eps_cutoff" value="0.05"/>
159 <param name="imgoutfmt" value="zipeps" />
160 </conditional>
126 <param name="outputFormat" value="--tabular"/> 161 <param name="outputFormat" value="--tabular"/>
127 <output name="outFileDefault" ftype="tabular" file="rnacode_result1.tabular" compare="sim_size"/> 162 <output name="outFileDefault" ftype="tabular" file="rnacode_result1.tabular" compare="sim_size"/>
163 <output name="out_eps_zip" ftype="zip" file="eps.tar.gz" compare="sim_size" delta="50000"/>
128 <!-- sim_size is needed due to rnacode using random sampling: result files differ, better tests should be implemented --> 164 <!-- sim_size is needed due to rnacode using random sampling: result files differ, better tests should be implemented -->
129 </test> 165 </test>
130 <test> 166 <test>
131 <param name="alignment" value="coding.maf"/> 167 <param name="alignment" value="coding.maf"/>
132 <conditional name="cond_breakmaf"> 168 <conditional name="cond_breakmaf">
133 <param name="select_breakmaf" value="breakmaf"/> 169 <param name="select_breakmaf" value="breakmaf"/>
134 </conditional> 170 </conditional>
135 <param name="generateEPS" value="nocreate"/> 171 <conditional name="cond_generateEPS">
172 <param name="generateEPS" value="create"/>
173 <param name="eps_cutoff" value="0.05"/>
174 <param name="imgoutfmt" value="eps" />
175 </conditional>
136 <param name="outputFormat" value="--gtf"/> 176 <param name="outputFormat" value="--gtf"/>
137 <output name="outFileGTF" ftype="gtf" file="rnacode_result2.gtf" compare="sim_size"/> 177 <output name="outFileGTF" ftype="gtf" file="rnacode_result2.gtf" compare="sim_size"/>
178 <output name="out_eps_mp" ftype="eps" file="eps.eps" compare="sim_size" delta="50000"/>
138 <!-- sim_size is needed due to rnacode using random sampling: result files differ, better tests should be implemented --> 179 <!-- sim_size is needed due to rnacode using random sampling: result files differ, better tests should be implemented -->
139 </test> 180 </test>
140 <test> 181 <test>
141 <param name="alignment" value="coding.maf"/> 182 <param name="alignment" value="coding.maf"/>
142 <conditional name="cond_breakmaf"> 183 <conditional name="cond_breakmaf">