Mercurial > repos > bgruening > infernal
comparison cmalign.xml @ 13:ffa96097e5b2 draft
Uploaded
author | bgruening |
---|---|
date | Fri, 13 Feb 2015 03:12:04 -0500 |
parents | c17ed5a530d2 |
children |
comparison
equal
deleted
inserted
replaced
12:c17ed5a530d2 | 13:ffa96097e5b2 |
---|---|
2 <description>against a sequence database (cmsearch)</description> | 2 <description>against a sequence database (cmsearch)</description> |
3 <parallelism method="multi" split_inputs="seqdb" split_mode="to_size" split_size="100" shared_inputs="" merge_outputs="outfile,multiple_alignment_output"></parallelism> | 3 <parallelism method="multi" split_inputs="seqdb" split_mode="to_size" split_size="100" shared_inputs="" merge_outputs="outfile,multiple_alignment_output"></parallelism> |
4 <requirements> | 4 <requirements> |
5 <requirement type="package">infernal</requirement> | 5 <requirement type="package">infernal</requirement> |
6 <requirement type="package" version="1.1">infernal</requirement> | 6 <requirement type="package" version="1.1">infernal</requirement> |
7 <requirement type="package" version="8.21">gnu_coreutils</requirement> | 7 <requirement type="package" version="8.22">gnu_coreutils</requirement> |
8 </requirements> | 8 </requirements> |
9 <command> | 9 <command> |
10 <![CDATA[ | |
10 ## a temp file is needed, because the standard tabular output from infernal is not usefull in Galaxy | 11 ## a temp file is needed, because the standard tabular output from infernal is not usefull in Galaxy |
11 ## it will be converted to a tab delimited file and piped to Galaxy | 12 ## it will be converted to a tab delimited file and piped to Galaxy |
12 temp_tabular_output=\$(mktemp); | 13 temp_tabular_output=\$(mktemp); |
13 | 14 |
14 cmsearch | 15 cmsearch |
15 ## Infernal Options | 16 ## Infernal Options |
16 --cpu "\${GALAXY_SLOTS:-12}" | 17 --cpu "\${GALAXY_SLOTS:-12}" |
17 -o /dev/null | 18 -o /dev/null |
18 --tformat $seqdb.ext ##target format: fasta, embl, genbank, ddbj, stockholm, pfam, a2m, afa, clustal, and phylip | 19 --tformat $seqdb.ext ##target format: fasta, embl, genbank, ddbj, stockholm, pfam, a2m, afa, clustal, and phylip |
19 $bottomonly | 20 $bottomonly |
20 $toponly | 21 $toponly |
21 $cyk | 22 $cyk |
22 $notrunc | 23 $notrunc |
23 $max | 24 $max |
50 $cm_opts.cmfile | 51 $cm_opts.cmfile |
51 #end if | 52 #end if |
52 | 53 |
53 ## sequence file | 54 ## sequence file |
54 $seqdb | 55 $seqdb |
55 2>&1 | 56 2>&1 |
56 ; | 57 ; |
57 | 58 |
58 ## 1. replace all lines starting # (comment lines) | 59 ## 1. replace all lines starting # (comment lines) |
59 ## 2. replace the first 18 spaces with tabs, 18th field is a free text field (can contain spaces) | 60 ## 2. replace the first 18 spaces with tabs, 18th field is a free text field (can contain spaces) |
60 sed -e 's/#.*$//' -e '/^$/d' -e 's/ /\t/g' -e 's/\t/ /18g' \$temp_tabular_output > $outfile | 61 sed -e 's/#.*$//' -e '/^$/d' -e 's/ /\t/g' -e 's/\t/ /18g' \$temp_tabular_output > $outfile |
61 | 62 |
63 ]]> | |
62 </command> | 64 </command> |
63 <inputs> | 65 <inputs> |
64 | 66 |
65 <param name="seqdb" type="data" format="fasta" label="Sequence database"/> | 67 <param name="seqdb" type="data" format="fasta" label="Sequence database"/> |
66 <conditional name="cm_opts"> | 68 <conditional name="cm_opts"> |
80 <when value="histdb"> | 82 <when value="histdb"> |
81 <param name="cmfile" type="data" format="txt" label="Covariance models file from the history."/> | 83 <param name="cmfile" type="data" format="txt" label="Covariance models file from the history."/> |
82 </when> | 84 </when> |
83 </conditional> | 85 </conditional> |
84 | 86 |
85 <param name="g" truevalue="-g" falsevalue="" checked="False" type="boolean" | 87 <param name="g" truevalue="-g" falsevalue="" checked="False" type="boolean" |
86 label="Turn on the glocal alignment algorithm" help="... global with respect to the query model and local with respect to the target database."/> | 88 label="Turn on the glocal alignment algorithm" help="... global with respect to the query model and local with respect to the target database."/> |
87 | 89 |
88 <param name="bottomonly" truevalue="--bottomonly" falsevalue="" checked="False" type="boolean" | 90 <param name="bottomonly" truevalue="--bottomonly" falsevalue="" checked="False" type="boolean" |
89 label="Only search the bottom (Crick) strand of target sequences" help="in the sequence database"/> | 91 label="Only search the bottom (Crick) strand of target sequences" help="in the sequence database"/> |
90 <param name="toponly" truevalue="--toponly" falsevalue="" checked="False" type="boolean" | 92 <param name="toponly" truevalue="--toponly" falsevalue="" checked="False" type="boolean" |
91 label="Only search the top (Watson) strand of target sequences" help="in the sequence database"/> | 93 label="Only search the top (Watson) strand of target sequences" help="in the sequence database"/> |
92 | 94 |
93 <param name="cyk" truevalue="--cyk" falsevalue="" checked="False" type="boolean" | 95 <param name="cyk" truevalue="--cyk" falsevalue="" checked="False" type="boolean" |
94 label="Use the CYK algorithm, not Inside, to determine the final score of all hits" help=""/> | 96 label="Use the CYK algorithm, not Inside, to determine the final score of all hits" help=""/> |
95 <param name="--acyk" truevalue="--cyk" falsevalue="" checked="False" type="boolean" | 97 <param name="--acyk" truevalue="--cyk" falsevalue="" checked="False" type="boolean" |
96 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."/> | 98 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."/> |
97 | 99 |
98 <param name="notrunc" truevalue="--notrunc" falsevalue="" checked="False" type="boolean" | 100 <param name="notrunc" truevalue="--notrunc" falsevalue="" checked="False" type="boolean" |
99 label="Turn off truncated hit detection" help=""/> | 101 label="Turn off truncated hit detection" help=""/> |
100 | 102 |
101 <!-- accelleration pipeline --> | 103 <!-- accelleration pipeline --> |
102 | 104 |
103 <param name="max" truevalue="--max" falsevalue="" checked="False" type="boolean" | 105 <param name="max" truevalue="--max" falsevalue="" checked="False" type="boolean" |
104 label="Turn off all filters, and run non-banded Inside on every full-length target sequence" help="This | 106 label="Turn off all filters, and run non-banded Inside on every full-length target sequence" help="This |
105 increases sensitivity somewhat, at an extremely large cost in speed."/> | 107 increases sensitivity somewhat, at an extremely large cost in speed."/> |
106 | 108 |
107 <param name="nohmm" truevalue="--nohmm" falsevalue="" checked="False" type="boolean" | 109 <param name="nohmm" truevalue="--nohmm" falsevalue="" checked="False" type="boolean" |
108 label="Turn off all HMM filter stages " help=""/> | 110 label="Turn off all HMM filter stages " help=""/> |
109 | 111 |
110 <param name="mid" truevalue="--mid" falsevalue="" checked="False" type="boolean" | 112 <param name="mid" truevalue="--mid" falsevalue="" checked="False" type="boolean" |
111 label="Turn off the HMM SSV and Viterbi filter stages" help=""/> | 113 label="Turn off the HMM SSV and Viterbi filter stages" help=""/> |
112 | 114 |
113 | 115 |
114 <!-- Options for model-specific score thresholding --> | 116 <!-- Options for model-specific score thresholding --> |
115 <!-- | 117 <!-- |
179 </sanitizer> | 181 </sanitizer> |
180 </param> | 182 </param> |
181 </when> | 183 </when> |
182 </conditional> | 184 </conditional> |
183 | 185 |
184 <param name="A" truevalue="-A" falsevalue="" checked="False" type="boolean" | 186 <param name="A" truevalue="-A" falsevalue="" checked="False" type="boolean" |
185 label="Save a multiple alignment of all significant hits" help="... those satisfying inclusion thresholds"/> | 187 label="Save a multiple alignment of all significant hits" help="... those satisfying inclusion thresholds"/> |
186 | 188 |
187 </inputs> | 189 </inputs> |
188 <outputs> | 190 <outputs> |
189 | 191 |
192 <filter>A is True</filter> | 194 <filter>A is True</filter> |
193 </data> | 195 </data> |
194 | 196 |
195 </outputs> | 197 </outputs> |
196 <help> | 198 <help> |
199 <![CDATA[ | |
197 | 200 |
198 | 201 |
199 **What it does** | 202 **What it does** |
200 | 203 |
201 cmalign aligns the RNA sequences in <seqfile> to the covariance model (CM) in <cmfile>. The new alignment is | 204 cmalign aligns the RNA sequences in <seqfile> to the covariance model (CM) in <cmfile>. The new alignment is |
343 (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. | 346 (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. |
344 (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. | 347 (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. |
345 (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. | 348 (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. |
346 (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. | 349 (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. |
347 (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. | 350 (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. |
348 (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. | 351 (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. |
349 (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 ’-’. | 352 (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 ’-’. |
350 (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. | 353 (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. |
351 (13) gc: Fraction of G and C nucleotides in the hit. | 354 (13) gc: Fraction of G and C nucleotides in the hit. |
352 (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). | 355 (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). |
353 (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). | 356 (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). |
354 (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. | 357 (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. |
362 | 365 |
363 | 366 |
364 How do I cite Infernal? | 367 How do I cite Infernal? |
365 ----------------------- | 368 ----------------------- |
366 | 369 |
367 The Infernal 1.0 paper (Nawrocki et al., 2009) is the best paper to reference. | 370 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). |
368 If you’re writing for an enlightened (url-friendly) journal, you may want to cite the webpage | |
369 http://infernal.janelia.org/ because it is kept up-to-date. We hope to publish a paper related to | |
370 Infernal version 1.1 soon. | |
371 | 371 |
372 **Galaxy Wrapper Author**:: | 372 **Galaxy Wrapper Author**:: |
373 | 373 |
374 * Bjoern Gruening, University of Freiburg | 374 * Bjoern Gruening, University of Freiburg |
375 | 375 |
376 ]]> | |
376 </help> | 377 </help> |
377 </tool> | 378 </tool> |