0
|
1 <tool id="infernal_cmsearch" name="Search covariance model(s)" version="1.1.0.2">
|
|
2 <description>against a sequence database (cmsearch)</description>
|
2
|
3 <parallelism method="multi" split_inputs="seqdb" split_mode="to_size" split_size="500" shared_inputs="" merge_outputs="outfile,multiple_alignment_output"></parallelism>
|
0
|
4 <requirements>
|
|
5 <requirement type="package">infernal</requirement>
|
|
6 <requirement type="package" version="1.1">infernal</requirement>
|
2
|
7 <requirement type="package" version="8.22">gnu_coreutils</requirement>
|
0
|
8 </requirements>
|
|
9 <command>
|
2
|
10 <![CDATA[
|
0
|
11 ## a temp file is needed, because the standard tabular output from infernal is not usefull in Galaxy
|
|
12 ## it will be converted to a tab delimited file and piped to Galaxy
|
|
13 temp_tabular_output=\$(mktemp);
|
|
14
|
2
|
15 cmsearch
|
0
|
16 ## Infernal Options
|
|
17 --cpu "\${GALAXY_SLOTS:-12}"
|
|
18 -o /dev/null
|
2
|
19 --tformat $seqdb.ext ##target format: fasta, embl, genbank, ddbj, stockholm, pfam, a2m, afa, clustal, and phylip
|
0
|
20 $bottomonly
|
|
21 $toponly
|
|
22 $cyk
|
|
23 $notrunc
|
|
24 $max
|
|
25 $nohmm
|
|
26 $mid
|
|
27 ##$bitscore_thresholds
|
|
28 --tblout \$temp_tabular_output
|
|
29 $g
|
|
30 #if $A:
|
|
31 $A $multiple_alignment_output
|
|
32 #end if
|
|
33
|
|
34 #if str($inclusion_thresholds_opts.inclusion_thresholds_selector) == "--incE":
|
|
35 --incE $inclusion_thresholds_opts.incE
|
|
36 #elif str($inclusion_thresholds_opts.inclusion_thresholds_selector) == "--incT":
|
|
37 --incT $inclusion_thresholds_opts.incT
|
|
38 #end if
|
|
39
|
|
40 #if str($reporting_thresholds_opts.reporting_thresholds_selector) == "-E":
|
|
41 -E $reporting_thresholds_opts.E
|
|
42 #elif str($reporting_thresholds_opts.reporting_thresholds_selector) == "-T":
|
|
43 -T $reporting_thresholds_opts.T
|
|
44 #end if
|
|
45
|
|
46 ## CM file from the history or stored as database on disc
|
|
47
|
|
48 #if str($cm_opts.cm_opts_selector) == "db":
|
|
49 $cm_opts.database.fields.path
|
|
50 #else:
|
|
51 $cm_opts.cmfile
|
|
52 #end if
|
|
53
|
|
54 ## sequence file
|
|
55 $seqdb
|
2
|
56 2>&1
|
0
|
57 ;
|
|
58
|
|
59 ## 1. replace all lines starting # (comment lines)
|
|
60 ## 2. replace the first 18 spaces with tabs, 18th field is a free text field (can contain spaces)
|
1
|
61 sed -e 's/#.*$//' -e '/^$/d' -e 's/\s\+/\t/g' -e 's/\t/ /18g' \$temp_tabular_output > $outfile
|
0
|
62
|
2
|
63 ]]>
|
0
|
64 </command>
|
|
65 <inputs>
|
|
66
|
|
67 <param name="seqdb" type="data" format="fasta" label="Sequence database"/>
|
|
68
|
|
69 <conditional name="cm_opts">
|
|
70 <param name="cm_opts_selector" type="select" label="Subject covariance models">
|
|
71 <option value="db" selected="True">Locally installed covariance models</option>
|
|
72 <option value="histdb">Covariance model from your history</option>
|
|
73 </param>
|
|
74 <when value="db">
|
|
75 <param name="database" type="select" label="Covariance models">
|
|
76 <options from_file="infernal.loc">
|
|
77 <column name="value" index="0"/>
|
|
78 <column name="name" index="1"/>
|
|
79 <column name="path" index="2"/>
|
|
80 </options>
|
|
81 </param>
|
|
82 </when>
|
|
83 <when value="histdb">
|
|
84 <param name="cmfile" type="data" format="cm" label="Covariance models file from the history."/>
|
|
85 </when>
|
|
86 </conditional>
|
|
87
|
2
|
88 <param name="g" truevalue="-g" falsevalue="" checked="False" type="boolean"
|
0
|
89 label="Turn on the glocal alignment algorithm" help="... global with respect to the query model and local with respect to the target database."/>
|
|
90
|
2
|
91 <param name="bottomonly" truevalue="--bottomonly" falsevalue="" checked="False" type="boolean"
|
0
|
92 label="Only search the bottom (Crick) strand of target sequences" help="in the sequence database"/>
|
2
|
93 <param name="toponly" truevalue="--toponly" falsevalue="" checked="False" type="boolean"
|
0
|
94 label="Only search the top (Watson) strand of target sequences" help="in the sequence database"/>
|
|
95
|
2
|
96 <param name="cyk" truevalue="--cyk" falsevalue="" checked="False" type="boolean"
|
0
|
97 label="Use the CYK algorithm, not Inside, to determine the final score of all hits" help=""/>
|
2
|
98 <param name="--acyk" truevalue="--cyk" falsevalue="" checked="False" type="boolean"
|
0
|
99 label="Use the CYK algorithm to align hits" help="By default, the Durbin/Holmes optimal accuracy algorithm is used, which finds the alignment that maximizes the expected accuracy of all aligned residues."/>
|
|
100
|
2
|
101 <param name="notrunc" truevalue="--notrunc" falsevalue="" checked="False" type="boolean"
|
0
|
102 label="Turn off truncated hit detection" help=""/>
|
|
103
|
|
104 <!-- accelleration pipeline -->
|
|
105
|
2
|
106 <param name="max" truevalue="--max" falsevalue="" checked="False" type="boolean"
|
0
|
107 label="Turn off all filters, and run non-banded Inside on every full-length target sequence" help="This
|
|
108 increases sensitivity somewhat, at an extremely large cost in speed."/>
|
|
109
|
2
|
110 <param name="nohmm" truevalue="--nohmm" falsevalue="" checked="False" type="boolean"
|
0
|
111 label="Turn off all HMM filter stages " help=""/>
|
|
112
|
2
|
113 <param name="mid" truevalue="--mid" falsevalue="" checked="False" type="boolean"
|
0
|
114 label="Turn off the HMM SSV and Viterbi filter stages" help=""/>
|
|
115
|
|
116
|
|
117 <!-- Options for model-specific score thresholding -->
|
|
118 <!--
|
|
119 <param name="bitscore_thresholds" type="select" label="Bit score thresholds" help="Curated CM databases may define specific bit score thresholds for each CM, superseding any thresholding based on statistical significance alone.">
|
|
120 <option value="" selected="true">None</option>
|
|
121 <option value=" - -cut_ga">GA (gathering) bit scores</option>
|
|
122 <option value=" - -cut_nc">NC (noise cutoff) bit score</option>
|
|
123 <option value=" - -cut_tc">TC (trusted cutoff) bit score</option>
|
|
124 </param>
|
|
125 -->
|
|
126 <!-- Options for inclusion thresholds -->
|
|
127
|
|
128
|
|
129 <conditional name="inclusion_thresholds_opts">
|
|
130 <param name="inclusion_thresholds_selector" type="select" label="Inclusion thresholds"
|
|
131 help="Inclusion thresholds are stricter than reporting thresholds. Inclusion thresholds control which hits are considered to be reliable enough to be included in an output alignment or in a possible subsequent search round, or marked as significant (”!”) as opposed to questionable (”?”) in hit output.">
|
|
132 <option value="" selected="true">default</option>
|
|
133 <option value="--incE">Use E-value</option>
|
|
134 <option value="--incT">Use bit score</option>
|
|
135 </param>
|
|
136 <when value=""/>
|
|
137 <when value="--incE">
|
|
138 <param name="incE" type="float" value="0.01" size="5" label="Use E-value" help="of <= X as the hit inclusion threshold.">
|
|
139 <sanitizer>
|
|
140 <valid initial="string.printable">
|
|
141 <remove value="'"/>
|
|
142 </valid>
|
|
143 </sanitizer>
|
|
144 </param>
|
|
145 </when>
|
|
146 <when value="--incT">
|
|
147 <param name="incT" type="integer" size="5" value="0" label="Use bit score" help="of >= X as the hit inclusion threshold.">
|
|
148 <sanitizer>
|
|
149 <valid initial="string.printable">
|
|
150 <remove value="'"/>
|
|
151 </valid>
|
|
152 </sanitizer>
|
|
153 </param>
|
|
154 </when>
|
|
155 </conditional>
|
|
156
|
|
157 <!-- Options controlling reporting thresholds -->
|
|
158
|
|
159 <conditional name="reporting_thresholds_opts">
|
|
160 <param name="reporting_thresholds_selector" type="select" label="reporting thresholds"
|
|
161 help="Reporting thresholds control which hits are reported in output files">
|
|
162 <option value="" selected="true">default</option>
|
|
163 <option value="-E">Use E-value</option>
|
|
164 <option value="-T">Use bit score</option>
|
|
165 </param>
|
|
166 <when value=""/>
|
|
167 <when value="-E">
|
|
168 <param name="E" type="float" value="10.0" size="5" label="Use E-value" help="of <= X as the hit reporting threshold. The default is 10.0, meaning that on average, about 10 false positives will be reported per query, so you can see the top of the noise and decide for yourself if it’s really noise.">
|
|
169 <sanitizer>
|
|
170 <valid initial="string.printable">
|
|
171 <remove value="'"/>
|
|
172 </valid>
|
|
173 </sanitizer>
|
|
174 </param>
|
|
175 </when>
|
|
176 <when value="-T">
|
|
177 <param name="T" type="integer" size="5" value="0" label="Use bit score" help="of >= X as the hit reporting threshold.">
|
|
178 <sanitizer>
|
|
179 <valid initial="string.printable">
|
|
180 <remove value="'"/>
|
|
181 </valid>
|
|
182 </sanitizer>
|
|
183 </param>
|
|
184 </when>
|
|
185 </conditional>
|
|
186
|
2
|
187 <param name="A" truevalue="-A" falsevalue="" checked="False" type="boolean"
|
0
|
188 label="Save a multiple alignment of all significant hits" help="... those satisfying inclusion thresholds"/>
|
|
189
|
|
190 </inputs>
|
|
191 <outputs>
|
|
192
|
|
193 <data format="tabular" name="outfile" label="cmsearch on ${on_string}"/>
|
|
194 <data format="tabular" name="multiple_alignment_output" label="cmsearch on ${on_string} (multi alignment)">
|
|
195 <filter>A is True</filter>
|
|
196 </data>
|
|
197
|
|
198 </outputs>
|
|
199 <help>
|
2
|
200 <![CDATA[
|
0
|
201
|
|
202
|
|
203 **What it does**
|
|
204
|
|
205 Infernal is used to search sequence databases for homologs of structural RNA sequences, and to make
|
|
206 sequence- and structure-based RNA sequence alignments. Infernal needs a profile from a structurally
|
2
|
207 annotated multiple sequence alignment of an RNA family with a position-specific scoring system for substitutions,
|
0
|
208 insertions, and deletions. Positions in the profile that are basepaired in the consensus secondary
|
|
209 structure of the alignment are modeled as dependent on one another, allowing Infernal’s scoring system to
|
|
210 consider the secondary structure, in addition to the primary sequence, of the family being modeled. Infernal
|
|
211 profiles are probabilistic models called “covariance models”, a specialized type of stochastic context-free
|
|
212 grammar (SCFG) (Lari and Young, 1990).
|
|
213
|
|
214 Compared to other alignment and database search tools based only on sequence comparison, Infernal
|
2
|
215 aims to be significantly more accurate and more able to detect remote homologs because it models sequence
|
0
|
216 and structure.
|
|
217
|
|
218
|
|
219 Output format
|
|
220 -------------
|
|
221
|
|
222 (1) target name: The name of the target sequence or profile.
|
|
223 (2) accession: The accession of the target sequence or profile, or ’-’ if none.
|
|
224 (3) query name: The name of the query sequence or profile.
|
|
225 (4) accession: The accession of the query sequence or profile, or ’-’ if none.
|
|
226 (5) mdl (model): Which type of model was used to compute the final score. Either ’cm’ or ’hmm’. A CM is used to compute the final hit scores unless the model has zero basepairs or the --hmmonly option is used, in which case a HMM will be used.
|
|
227 (6) mdl from (model coord): The start of the alignment of this hit with respect to the profile (CM or HMM), numbered 1..N for a profile of N consensus positions.
|
|
228 (7) mdl to (model coord): The end of the alignment of this hit with respect to the profile (CM or HMM), numbered 1..N for a profile of N consensus positions.
|
|
229 (8) seq from (ali coord): The start of the alignment of this hit with respect to the sequence, numbered 1..L for a sequence of L residues.
|
|
230 (9) seq to (ali coord): The end of the alignment of this hit with respect to the sequence, numbered 1..L for a sequence of L residues.
|
2
|
231 (10) strand: The strand on which the hit occurs on the sequence. ’+’ if the hit is on the top (Watson) strand, ’-’ if the hit is on the bottom (Crick) strand. If on the top strand, the “seq from” value will be less than or equal to the “seq to” value, else it will be greater than or equal to it.
|
|
232 (11) trunc: Indicates if this is predicted to be a truncated CM hit or not. This will be “no” if it is a CM hit that is not predicted to be truncated by the end of the sequence, “5’ ” or “3’ ” if the hit is predicted to have one or more 5’ or 3’ residues missing due to a artificial truncation of the sequence, or “5’&3”’ if the hit is predicted to have one or more 5’ residues missing and one or more 3’ residues missing. If the hit is an HMM hit, this will always be ’-’.
|
0
|
233 (12) pass: Indicates what “pass” of the pipeline the hit was detected on. This is probably only useful for testing and debugging. Non-truncated hits are found on the first pass, truncated hits are found on successive passes.
|
|
234 (13) gc: Fraction of G and C nucleotides in the hit.
|
|
235 (14) bias: The biased-composition correction: the bit score difference contributed by the null3 model for CM hits, or the null2 model for HMM hits. High bias scores may be a red flag for a false positive. It is difficult to correct for all possible ways in which a nonrandom but nonhomologous biological sequences can appear to be similar, such as short-period tandem repeats, so there are cases where the bias correction is not strong enough (creating false positives).
|
|
236 (15) score: The score (in bits) for this target/query comparison. It includes the biased-composition cor-rection (the “null3” model for CM hits, or the “null2” model for HMM hits).
|
|
237 (16) E-value: The expectation value (statistical significance) of the target. This is a per query E-value; i.e. calculated as the expected number of false positives achieving this comparison’s score for a single query against the search space Z. For cmsearch Z is defined as the total number of nucleotides in the target dataset multiplied by 2 because both strands are searched. For cmscan Z is the total number of nucleotides in the query sequence multiplied by 2 because both strands are searched and multiplied by the number of models in the target database. If you search with multiple queries and if you want to control the overall false positive rate of that search rather than the false positive rate per query, you will want to multiply this per-query E-value by how many queries you’re doing.
|
|
238 (17) inc: Indicates whether or not this hit achieves the inclusion threshold: ’!’ if it does, ’?’ if it does not (and rather only achieves the reporting threshold). By default, the inclusion threshold is an E-value of 0.01 and the reporting threshold is an E-value of 10.0, but these can be changed with command line options as described in the manual pages.
|
|
239 (18) description of target: The remainder of the line is the target’s description line, as free text.
|
|
240
|
|
241
|
|
242 For further questions please refere to the Infernal Userguide_.
|
|
243
|
|
244 .. _Userguide: http://selab.janelia.org/software/infernal/Userguide.pdf
|
|
245
|
|
246
|
|
247 How do I cite Infernal?
|
|
248 -----------------------
|
|
249
|
2
|
250 The recommended citation for using Infernal 1.1 is E. P. Nawrocki and S. R. Eddy, Infernal 1.1: 100-fold faster RNA homology searches , Bioinformatics 29:2933-2935 (2013).
|
0
|
251
|
|
252 **Galaxy Wrapper Author**::
|
|
253
|
|
254 * Bjoern Gruening, University of Freiburg
|
|
255
|
2
|
256 ]]>
|
0
|
257 </help>
|
|
258 </tool>
|