comparison cofold.xml @ 0:65fff071414e draft

Uploaded
author rnateam
date Wed, 14 Jan 2015 08:56:58 -0500
parents
children 33a17b2a199a
comparison
equal deleted inserted replaced
-1:000000000000 0:65fff071414e
1 <tool id="cofold" name="Cofold" version="0.0.1">
2 <description>An RNA secondary structure prediction method that takes co-transcriptional folding into account</description>
3 <requirements>
4 <requirement type="package" version="0.0.1"></requirement>
5 </requirements>
6 <version_command>CoFold --version</version_command>
7 <stdio>
8 <exit_code range="1:" />
9 <exit_code range=":-1" />
10 <regex match="Error:" />
11 <regex match="Exception:" />
12 </stdio>
13 <command interpreter="python">
14 <![CDATA[
15 cofold.py
16 -i $infile
17 -o1 $tabularFile
18 --parameters " -T$temperature -d$dangling
19 -P $energy_parameter
20 --distAlpha $distAlpha
21 --distTau $distTau
22 #if $advancedOptions.advancedSelector == 'yes':
23 $advancedOptions.constraint
24 $advancedOptions.noconversion
25 $advancedOptions.nolp
26 $advancedOptions.nogu
27 $advancedOptions.noclosinggu
28 $advancedOptions.notetra
29 $advancedOptions.circular
30 #end if
31 ";
32 count=`ls -l *.ps | wc -l`;
33 echo '#RNA structures: '\$count > $report;
34 ]]>
35 </command>
36 <inputs>
37 <param format="fasta" name="infile" type="data" label="FASTA file"/>
38 <param name="distAlpha" type="float" value="0.5" label="temperature [°C]" help="(--distAlpha)"/>
39 <param name="distTau" type="float" value="640.0" label="temperature [°C]" help="(--distTau)"/>
40 <param name="temperature" size="6" type="float" value="37.0" label="temperature [°C]" help="(-T)"/>
41 <param name="energy_parameter" type="select" label="Thermodynamic energy parameters" help="(-P)">
42 <option value="rna_turner1999.par" selected="True">Turner 1999</option>
43 <option value="rna_turner2004.par">Turner 2004</option>
44 <option value="rna_andronescu2007.par">Andronescu 2007</option>
45 </param>
46 <param name="dangling" type="select" label="how to treat dangling end energies" help="(-d)">
47 <option value="0">0: ignore dangling ends</option>
48 <option value="1">1: unpaired bases participate in one dangling end only</option>
49 <option value="2" selected="True">2: unpaired bases participate in all dangling ends</option>
50 <option value="3">3: allow coaxial stacking</option>
51 </param>
52 <conditional name="advancedOptions">
53 <param name="advancedSelector" type="select" label="Advanced Options">
54 <option value="no">no</option>
55 <option value="yes">yes</option>
56 </param>
57 <when value="yes">
58 <param name="constraint" type="boolean" truevalue="--constraint" falsevalue="" checked="false"
59 label="Calculate structures subject to constraints" help="(--constraint)"/>
60 <param name="noconversion" type="boolean" truevalue="--noconv" falsevalue="" checked="false"
61 label="No conversion" help="Do not convert thymine to uracile (T -> U). (--noconv)"/>
62 <param name="nolp" type="boolean" truevalue="--noLP" falsevalue="" checked="false"
63 label="No lonely pairs" help="--noLP don't allow lonely pairs. (--noLP)"/>
64 <param name="nogu" type="boolean" truevalue="--noGU" falsevalue="" checked="false"
65 label="No GU pairing" help="Don't allow pairing of G and U. (--noGU)"/>
66 <param name="noclosinggu" type="boolean" truevalue="--noClosingGU" falsevalue="" checked="false"
67 label="No GU pairing at the ends" help="Don't allow pairing of G and U at the ends of helices. (--noClosingGU)"/>
68 <param name="notetra" type="boolean" truevalue="--noTetra" falsevalue="" checked="false"
69 label="No stabilization for loops, hairpins etc." help="(--noTetra)"/>
70 <param name="circular" type="boolean" truevalue="--circ" falsevalue="" checked="false"
71 label="Assume circular RNA structure" help="(--circ)"/>
72 <param name="noPS" type="boolean" truevalue="--noPS" falsevalue="" checked="false"
73 label="Don't generate PS files" help="(--noPS)"/>
74 </when>
75 <when value="no" />
76 </conditional>
77 </inputs>
78 <outputs>
79 <data name="tabularFile" format="tabular" label="Tabular File"/>
80 <data name="report" format="txt" label="RNA PS File" hidden="true">
81 <discover_datasets pattern="(?P&lt;designation&gt;.+)\.ps" ext="rna_eps" visible="true"/>
82 </data>
83 </outputs>
84 <tests>
85 <test>
86 <param name="infile" value="cofold1.fasta" ftype="fasta"/>
87 <param name="noPS" value="--noPS"/>
88 <output name="tabularFile" file="colfold_results1.tabular" ftype="tabular" />
89 </test>
90 <test>
91 <param name="infile" value="cofold1.fasta" ftype="fasta"/>
92 <param name="noPS" value="--noPS"/>
93 <param name="energy_parameter" value="rna_andronescu2007.par"/>
94 <param name="dangling" value="1"/>
95 <param name="advancedSelector" value="yes"/>
96 <output name="tabularFile" file="colfold_results2.tabular" ftype="tabular" />
97 </test>
98 <test>
99 <param name="infile" value="cofold1.fasta" ftype="fasta"/>
100 <param name="noPS" value=""/>
101 <output name="tabularFile" file="colfold_results3.tabular" ftype="tabular" />
102 <output name="report">
103 <assert_contents>
104 <has_line_matching expression="#RNA structures.*" />
105 </assert_contents>
106 <discovered_dataset designation="example1_ss" file="example1_ss.ps" compare="sim_size" delta="100" ftype="rna_eps"/>
107 </output>
108 </test>
109 </tests>
110 <help>
111 <![CDATA[
112 **CoFold**
113
114 A tool for prediction of RNA secondary structure that takes co-transcriptional folding into account
115
116 **Input format**
117
118 CoFold requires one input file in FASTA format.
119
120 ------
121
122 **Outputs**
123
124 - Tab-seperated file
125 - 1st column: header line of FASTA input
126 - 2nd column: sequence
127 - 3rd column: dot-bracket notation
128 - 4th column: free energy
129
130 ]]>
131 </help>
132 <citations>
133 <citation type="doi">doi:10.1093/nar/gkt174</citation>
134 <citation type="doi">doi:10.1093/nar/gks241</citation>
135 </citations>
136 </tool>