Mercurial > repos > rnateam > sortmerna
comparison sortmerna.xml @ 8:65c38d020fea draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/rna_tools/sortmerna commit 1739cab238d13107d96acd9f87700869fa9d3193-dirty
author | rnateam |
---|---|
date | Sun, 24 Sep 2017 14:28:47 -0400 |
parents | 1eafcc450052 |
children | eb35257d2e29 |
comparison
equal
deleted
inserted
replaced
7:1eafcc450052 | 8:65c38d020fea |
---|---|
1 <tool id="bg_sortmerna" name="Filter with SortMeRNA" version="@VERSION@.4"> | 1 <tool id="bg_sortmerna" name="Filter with SortMeRNA" version="@VERSION@.5"> |
2 <description>Fast and accurate filtering of ribosomal RNAs in metatranscriptomic data</description> | 2 <description>of ribosomal RNAs in metatranscriptomic data</description> |
3 <macros> | 3 <macros> |
4 <import>macros.xml</import> | 4 <import>macros.xml</import> |
5 </macros> | 5 </macros> |
6 <requirements> | 6 <requirements> |
7 <requirement type="package" version="@VERSION@">sortmerna</requirement> | 7 <requirement type="package" version="@VERSION@">sortmerna</requirement> |
8 <requirement type="package" version="1.5">samtools</requirement> | |
8 </requirements> | 9 </requirements> |
9 <stdio> | 10 <stdio> |
10 <regex match="This program builds a Burst trie on an input rRNA database" | 11 <regex match="This program builds a Burst trie on an input rRNA database" |
11 source="both" | 12 source="both" |
12 level="fatal" | 13 level="fatal" |
44 #set $ref += $sep + $db + ',' + $os.path.splitext($db)[0] | 45 #set $ref += $sep + $db + ',' + $os.path.splitext($db)[0] |
45 #set $sep = ':' | 46 #set $sep = ':' |
46 #end for | 47 #end for |
47 #end if | 48 #end if |
48 | 49 |
49 #if str( $databases_type.databases_selector ) != 'cached': | 50 #if str( $databases_type.databases_selector ) != 'cached' |
50 indexdb_rna | 51 indexdb_rna |
51 --ref $ref | 52 --ref $ref |
52 -L $databases_type.seed_length | 53 -L $databases_type.seed_length |
53 --max_pos $databases_type.max_pos | 54 --max_pos $databases_type.max_pos |
54 && | 55 && |
55 #end if | 56 #end if |
56 | 57 |
58 #if str( $sequencing_type.sequencing_type_selector ) == 'paired' | |
59 merge-paired-reads.sh | |
60 '$sequencing_type.forward_reads' | |
61 '$sequencing_type.reverse_reads' | |
62 merged-reads.fastq | |
63 && | |
64 #end if | |
65 | |
57 sortmerna | 66 sortmerna |
58 --ref $ref | 67 --ref $ref |
59 --reads $input_reads | 68 --aligned aligned |
60 --aligned aligned | 69 #if str( $sequencing_type.sequencing_type_selector ) == 'paired' |
61 | 70 --reads merged-reads.fastq |
62 #if str( $sequencing_type.sequencing_type_selector ) == 'paired' | 71 $sequencing_type.paired_type |
63 $sequencing_type.paired_type | 72 #else |
64 #end if | 73 --reads '$sequencing_type.reads' |
65 | 74 #end if |
66 $strand_search | 75 $strand_search |
67 $aligned_fastx.aligned_fastx_selector | 76 $log |
68 #if $aligned_fastx.aligned_fastx_selector == '--fastx' | 77 $aligned_fastx.aligned_fastx_selector |
69 #if $aligned_fastx.other | 78 #if $aligned_fastx.aligned_fastx_selector == '--fastx' |
70 --other other_file | 79 #if $aligned_fastx.other |
71 #end if | 80 --other unaligned |
72 #end if | 81 #end if |
73 $aligned_sam.aligned_sam_selector | 82 #end if |
74 #if $aligned_sam.aligned_sam_selector == '--sam' | |
75 $aligned_sam.sq | |
76 #end if | |
77 #if $aligned_blast.aligned_blast_selector == '--blast' | |
78 --blast "$aligned_blast.aligned_blast_format" | |
79 #end if | |
80 | |
81 $log | |
82 | |
83 #if $report.report_type == 'best' | 83 #if $report.report_type == 'best' |
84 @ALIGNMENTS@ | |
85 #if $report.otu.otu_map == 'True' | |
86 --otu_map | |
87 --id '$report.otu.id' | |
88 --coverage '$report.otu.coverage' | |
89 $report.otu.de_novo_otu | |
90 #end if | |
84 #if $report.report_best.report_best_type == '1' | 91 #if $report.report_best.report_best_type == '1' |
85 --best 1 | 92 --best 1 |
86 --min_lis $report.report_best.report_best_min_lis | 93 --min_lis '$report.report_best.report_best_min_lis' |
87 #else | 94 #else |
88 --best $report.report_best.report_best_value | 95 --best '$report.report_best.report_best_value' |
89 --min_lis $report.report_best.report_best_min_lis | 96 --min_lis '$report.report_best.report_best_min_lis' |
90 #end if | 97 #end if |
91 #else | 98 #elif $report.report_type == 'num_alignments' |
99 @ALIGNMENTS@ | |
92 #if $report.report_num_alignments.report_num_alignments_type == 'other_value' | 100 #if $report.report_num_alignments.report_num_alignments_type == 'other_value' |
93 --num_alignments $report.report_num_alignments.report_num_alignments_value | 101 --num_alignments '$report.report_num_alignments.report_num_alignments_value' |
94 #else | 102 #else |
95 --num_alignments $report.report_num_alignments.report_num_alignments_type | 103 --num_alignments '$report.report_num_alignments.report_num_alignments_type' |
96 #end if | 104 #end if |
97 #end if | 105 #end if |
98 | 106 -e '$e_value' |
99 -e $e_value | 107 --match '$match' |
100 --match $match | 108 --mismatch '$mismatch' |
101 --mismatch $mismatch | 109 --gap_open '$gap_open' |
102 --gap_open $gap_open | 110 --gap_ext '$gap_ext' |
103 --gap_ext $gap_ext | |
104 -N $ambiguous_letter | 111 -N $ambiguous_letter |
105 -a \${GALAXY_SLOTS:-1} | 112 -a \${GALAXY_SLOTS:-1} |
113 #if $report.report_type != 'None' | |
114 && | |
115 samtools view -@ "\${GALAXY_SLOTS:-4}" -u aligned.sam | samtools sort -@ "\${GALAXY_SLOTS:-4}" -T tmp -O bam -o '$output_bam' | |
116 #end if | |
117 | |
118 #if str( $sequencing_type.sequencing_type_selector ) == 'paired' and $sequencing_type.paired_type != '' and $aligned_fastx.aligned_fastx_selector == '--fastx' | |
119 && | |
120 unmerge-paired-reads.sh | |
121 aligned.fastq | |
122 '$aligned_forward' | |
123 '$aligned_reverse' | |
124 #if $aligned_fastx.other | |
125 && | |
126 unmerge-paired-reads.sh | |
127 unaligned.fastq | |
128 '$unaligned_forward' | |
129 '$unaligned_reverse' | |
130 #end if | |
131 #end if | |
106 ]]> | 132 ]]> |
107 </command> | 133 </command> |
108 <inputs> | 134 <inputs> |
109 <param format="fasta,fastq" name="input_reads" type="data" label="Querying sequences" help="In FASTA or FASTQ format (--reads)"/> | |
110 <conditional name="sequencing_type"> | 135 <conditional name="sequencing_type"> |
111 <param name="sequencing_type_selector" type="select" label="Sequencing type"> | 136 <param name="sequencing_type_selector" type="select" label="Sequencing type"> |
112 <option value="not_paired">Reads are not paired</option> | 137 <option value="not_paired">Reads are not paired</option> |
113 <option value="paired">Reads are paired</option> | 138 <option value="paired">Reads are paired</option> |
114 </param> | 139 </param> |
115 <when value="not_paired" /> | 140 <when value="not_paired"> |
141 <param argument="--reads" type="data" format="fasta,fastq" label="Querying sequences"/> | |
142 </when> | |
116 <when value="paired"> | 143 <when value="paired"> |
144 <param name="forward_reads" type="data" format="fastq" label="Forward reads"/> | |
145 <param name="reverse_reads" type="data" format="fastq" label="Reverse reads"/> | |
117 <param name="paired_type" type="select" display="radio" label="If one of the paired-end reads aligns and the other one does not"> | 146 <param name="paired_type" type="select" display="radio" label="If one of the paired-end reads aligns and the other one does not"> |
118 <option value="">leave the reads split between aligned and rejected files</option> | 147 <option value="">Leave the reads split between aligned and rejected files</option> |
119 <option value="--paired_in">output both reads to aligned file (--paired_in)</option> | 148 <option value="--paired_in">Output both reads to aligned file (--paired_in)</option> |
120 <option value="--paired_out">output both reads to rejected file (--paired_out)</option> | 149 <option value="--paired_out">Output both reads to rejected file (--paired_out)</option> |
121 </param> | 150 </param> |
122 </when> | 151 </when> |
123 </conditional> | 152 </conditional> |
124 | |
125 <param name="strand_search" type="select" label="Which strands to search"> | 153 <param name="strand_search" type="select" label="Which strands to search"> |
126 <option value="">Search both strands</option> | 154 <option value="">Search both strands</option> |
127 <option value="-F">Search only the forward strand (-F)</option> | 155 <option value="-F">Search only the forward strand (-F)</option> |
128 <option value="-R">Search only the reverse-complementary strand (-R)</option> | 156 <option value="-R">Search only the reverse-complementary strand (-R)</option> |
129 </param> | 157 </param> |
130 | |
131 <conditional name="databases_type"> | 158 <conditional name="databases_type"> |
132 <param name="databases_selector" type="select" label="Databases to query" | 159 <param name="databases_selector" type="select" label="Databases to query" |
133 help="Public rRNA databases provided with SortMeRNA have been indexed. | 160 help="Public rRNA databases provided with SortMeRNA have been indexed. On the contrary, personal databases must be indexed each time SortMeRNA is launched. Please be patient, this may take some time depending on the size of the given database."> |
134 On the contrary, personal databases must be indexed each time SortMeRNA is launched. | |
135 Please be patient, this may take some time depending on the size of the given database."> | |
136 <option value="cached" selected="true">Public pre-indexed ribosomal databases</option> | 161 <option value="cached" selected="true">Public pre-indexed ribosomal databases</option> |
137 <option value="cached_to_index">Public ribosomal databases to index with non default parameters</option> | 162 <option value="cached_to_index">Public ribosomal databases to index with non default parameters</option> |
138 <option value="history">Databases from your history</option> | 163 <option value="history">Databases from your history</option> |
139 </param> | 164 </param> |
140 <when value="cached"> | 165 <when value="cached"> |
146 <when value="cached_to_index"> | 171 <when value="cached_to_index"> |
147 <param name="input_databases" label="rRNA databases" type="select" display="checkboxes" multiple="true"> | 172 <param name="input_databases" label="rRNA databases" type="select" display="checkboxes" multiple="true"> |
148 <options from_data_table="rRNA_databases" /> | 173 <options from_data_table="rRNA_databases" /> |
149 <validator type="no_options" message="Select at least one database"/> | 174 <validator type="no_options" message="Select at least one database"/> |
150 </param> | 175 </param> |
151 <param name="seed_length" type="integer" min="0" max="100" value="18" label="Seed length for database indexing" help="(-L)"/> | 176 <expand macro="db_prep"/> |
152 <param name="max_pos" type="integer" min="0" max="100000" value="10000" label="Maximum number of positions to store for each k-mer for database indexing" help="With 0, all positions are stored (--max_pos)"/> | |
153 </when> | 177 </when> |
154 <when value="history"> | 178 <when value="history"> |
155 <param name="database_name" type="data" format="fasta" multiple="true" label="rRNA databases" | 179 <param name="database_name" type="data" format="fasta" multiple="true" label="rRNA databases" help="Your databases will be indexed first, which may take up to several minutes."/> |
156 help="Your databases will be indexed first, which may take up to several minutes."/> | 180 <expand macro="db_prep"/> |
157 <param name="seed_length" type="integer" min="0" max="100" value="18" label="Seed length for database indexing" help="(-L)"/> | |
158 <param name="max_pos" type="integer" min="0" max="100000" value="10000" label="Maximum number of positions to store for each k-mer for database indexing" help="With 0, all positions are stored (--max_pos)"/> | |
159 </when> | 181 </when> |
160 </conditional> | 182 </conditional> |
161 | |
162 <!-- Outputs --> | 183 <!-- Outputs --> |
163 <conditional name="aligned_fastx"> | 184 <conditional name="aligned_fastx"> |
164 <param name="aligned_fastx_selector" type="select" label="Include aligned reads in FASTA/FASTQ format?"> | 185 <param name="aligned_fastx_selector" type="select" label="Include aligned reads in FASTA/FASTQ format?"> |
165 <option value="--fastx">Yes (--fastx)</option> | 186 <option value="--fastx">Yes (--fastx)</option> |
166 <option value="">No</option> | 187 <option value="">No</option> |
167 </param> | 188 </param> |
168 <when value="--fastx"> | 189 <when value="--fastx"> |
169 <param name="other" type="boolean" label="Include rejected reads file?" help="(--other)" /> | 190 <param argument="--other" type="boolean" truevalue="True" falsevalue="False" label="Include rejected reads file?"/> |
170 </when> | 191 </when> |
171 <when value="" /> | 192 <when value=""/> |
172 </conditional> | 193 </conditional> |
173 <conditional name="aligned_sam"> | 194 <param argument="--log" type="boolean" checked="false" truevalue="--log" falsevalue="" label="Generate statistics file" help="Generates statistics for the rRNA content of reads, as well as rRNA subunit distribution"> |
174 <param name="aligned_sam_selector" type="select" label="Include alignments in SAM format?"> | |
175 <option value="--sam">Yes (--sam)</option> | |
176 <option value="">No</option> | |
177 </param> | |
178 <when value="--sam"> | |
179 <param name="sq" type="boolean" truevalue="--SQ" falsevalue="" label="Add SQ tags to the SAM file" help="(--SQ)" /> | |
180 </when> | |
181 <when value="" /> | |
182 </conditional> | |
183 <conditional name="aligned_blast"> | |
184 <param name="aligned_blast_selector" type="select" label="Include alignments in BLAST-like format?"> | |
185 <option value="--blast">Yes</option> | |
186 <option value="" selected="true">No</option> | |
187 </param> | |
188 <when value="--blast"> | |
189 <param name="aligned_blast_format" type="select" label="BLAST-like format?"> | |
190 <option value="0">pairwise (--blast '0')</option> | |
191 <option value="1">tabular BLAST -m 8 format (--blast '1')</option> | |
192 <option value="1 cigar">tabular + column for CIGAR (--blast '1 cigar')</option> | |
193 <option value="1 cigar qcov">tabular + columns for CIGAR and query coverage (--blast '1 cigar qcov')</option> | |
194 <option value="1 cigar qcov qstrand">tabular + columns for CIGAR, query coverage and strand (--blast '1 cigar qcov qstrand')</option> | |
195 </param> | |
196 </when> | |
197 <when value="" /> | |
198 </conditional> | |
199 <param name="log" type="boolean" checked="false" truevalue="--log" falsevalue="" label="Generate statistics file" | |
200 help="Generates statistics for the rRNA content of reads, as well as rRNA subunit distribution. (--log)"> | |
201 </param> | 195 </param> |
202 <conditional name="report"> | 196 <conditional name="report"> |
203 <param name="report_type" type="select" label="Parameters for filtering and read mapping" help=""> | 197 <param name="report_type" type="select" label="Alignment report"> |
204 <option value="best" selected="true">Report best alignments per read reaching E-value</option> | 198 <option value="None">Do not report alignments</option> |
199 <option value="best">Report best alignments per read reaching E-value</option> | |
205 <option value="num_alignments">Report first alignements per read reaching E-value</option> | 200 <option value="num_alignments">Report first alignements per read reaching E-value</option> |
206 </param> | 201 </param> |
202 <when value="None"/> | |
207 <when value="best"> | 203 <when value="best"> |
204 <expand macro="output_alignments"/> | |
205 <conditional name="otu"> | |
206 <param name="otu_map" type="select" label="Pick OTUs?"> | |
207 <option value="True">Yes</option> | |
208 <option value="False" selected="true">No</option> | |
209 </param> | |
210 <when value="True"> | |
211 <param argument="--id" type="float" value="0.97" label="Percentage id similarity threshold" help="The alignment must still pass the E-value threshold" /> | |
212 <param argument="--coverage" type="float" value="0.97" label="Percentage query coverage threshold" help="The alignment must still pass the E-value threshold" /> | |
213 <param name="de_novo_otu" type="boolean" truevalue="--de_novo_otu" falsevalue="" label="FASTA/FASTQ file for reads matching database below percentage id" help="--de_novo_otu" /> | |
214 </when> | |
215 <when value="False"/> | |
216 </conditional> | |
208 <conditional name="report_best"> | 217 <conditional name="report_best"> |
209 <param name="report_best_type" type="select" label="Number of searched alignments" help="Only the best alignment is reported (--best)"> | 218 <param argument="report_best_type" type="select" label="Number of searched alignments" help="Only the best alignment is reported (--best)"> |
210 <option value="1" selected="true">Only one high-candidate reference sequence is searched for alignments (fast). The high-candidate sequences are determined heuristically using a LIS of seed matches)</option> | 219 <option value="1" selected="true">Only one high-candidate reference sequence is searched for alignments (fast). The high-candidate sequences are determined heuristically using a LIS of seed matches)</option> |
211 <option value="other_value">A custom number of reference sequences are searched for alignments (speed decrease for high value)</option> | 220 <option value="other_value">A custom number of reference sequences are searched for alignments (speed decrease for high value)</option> |
212 </param> | 221 </param> |
213 <when value="1"> | 222 <when value="1"> |
214 <param name="report_best_min_lis" type="integer" min="0" max="100" value="2" label="Number of longest LIS an alignement needs to be searched" help="The alignements having the first INT longest LIS. LIS stands for Longest Increasing Subsequence, it is computed using seeds' positions to expand hits into longer matches prior to Smith-Waterman alignment. (--min_lis)"/> | 223 <param name="report_best_min_lis" type="integer" min="0" max="100" value="2" label="Number of longest LIS an alignement needs to be searched" help="The alignements having the first INT longest LIS. LIS stands for Longest Increasing Subsequence, it is computed using seeds' positions to expand hits into longer matches prior to Smith-Waterman alignment. (--min_lis)"/> |
218 <param name="report_best_min_lis" type="integer" min="0" max="100" value="2" label="Number of longest LIS an alignement needs to be searched" help="The alignements having the first INT longest LIS. LIS stands for Longest Increasing Subsequence, it is computed using seeds' positions to expand hits into longer matches prior to Smith-Waterman alignment. (--min_lis)"/> | 227 <param name="report_best_min_lis" type="integer" min="0" max="100" value="2" label="Number of longest LIS an alignement needs to be searched" help="The alignements having the first INT longest LIS. LIS stands for Longest Increasing Subsequence, it is computed using seeds' positions to expand hits into longer matches prior to Smith-Waterman alignment. (--min_lis)"/> |
219 </when> | 228 </when> |
220 </conditional> | 229 </conditional> |
221 </when> | 230 </when> |
222 <when value="num_alignments"> | 231 <when value="num_alignments"> |
232 <expand macro="output_alignments"/> | |
223 <conditional name="report_num_alignments"> | 233 <conditional name="report_num_alignments"> |
224 <param name="report_num_alignments_type" type="select" label="Number of output alignments" help="(--num_alignments)"> | 234 <param name="report_num_alignments_type" type="select" label="Number of output alignments" help="(--num_alignments)"> |
225 <option value="0">All alignments reaching the E-value threshold are reported (very slow, this option is not suggested for high similarity rRNA databases)</option> | 235 <option value="0">All alignments reaching the E-value threshold are reported (very slow, this option is not suggested for high similarity rRNA databases)</option> |
226 <option value="1" selected="true">The first alignment passing E-value threshold are reported (very fast, best choice if only filtering is needed)</option> | 236 <option value="1" selected="true">The first alignment passing E-value threshold are reported (very fast, best choice if only filtering is needed)</option> |
227 <option value="other_value">A custom number of alignments are made and reported (speed decrease for high value)</option> | 237 <option value="other_value">A custom number of alignments are made and reported (speed decrease for high value)</option> |
232 <param name="report_num_alignments_value" type="integer" min="0" max="100" value="1" label="Number of alignments to be made and reported" help=""/> | 242 <param name="report_num_alignments_value" type="integer" min="0" max="100" value="1" label="Number of alignments to be made and reported" help=""/> |
233 </when> | 243 </when> |
234 </conditional> | 244 </conditional> |
235 </when> | 245 </when> |
236 </conditional> | 246 </conditional> |
237 | |
238 <param name="e_value" type="float" min="0" max="10" value="1" label="E-value threshold" help="(-e)"/> | 247 <param name="e_value" type="float" min="0" max="10" value="1" label="E-value threshold" help="(-e)"/> |
239 <param name="match" type="integer" min="0" max="10" value="2" label="SW score for a match" help="(--match)"/> | 248 <param argument="--match" type="integer" min="0" max="10" value="2" label="SW score for a match"/> |
240 <param name="mismatch" type="integer" min="-10" max="0" value="-3" label="SW penalty for a mismatch" help="(--mismatch)"/> | 249 <param argument="--mismatch" type="integer" min="-10" max="0" value="-3" label="SW penalty for a mismatch"/> |
241 <param name="gap_open" type="integer" min="0" max="10" value="5" label="SW penalty for introducing a gap" help="(--gap_open)"/> | 250 <param name="gap_open" type="integer" min="0" max="10" value="5" label="SW penalty for introducing a gap" help="(--gap_open)"/> |
242 <param name="gap_ext" type="integer" min="0" max="10" value="2" label="SW penalty for extending a gap" help="(--gap_ext)"/> | 251 <param name="gap_ext" type="integer" min="0" max="10" value="2" label="SW penalty for extending a gap" help="(--gap_ext)"/> |
243 <param name="ambiguous_letter" type="integer" min="-10" max="0" value="-3" label="SW penalty for ambiguous letters (N's)" help="(-N)"/> | 252 <param name="ambiguous_letter" type="integer" min="-10" max="0" value="-3" label="SW penalty for ambiguous letters (N's)" help="(-N)"/> |
244 </inputs> | 253 </inputs> |
245 <outputs> | 254 <outputs> |
246 <data format_source="input_reads" name="output_fastx" from_work_dir="aligned.dat" | 255 <data name="output_fastx" format_source="reads" from_work_dir="aligned.dat" label="${tool.name} on ${on_string}: Aligned reads"> |
247 label="Aligned reads on ${on_string} (${input_reads.datatype.file_ext})"> | 256 <filter>aligned_fastx['aligned_fastx_selector'] != '' and sequencing_type['sequencing_type_selector'] != 'paired'</filter> |
248 <filter>aligned_fastx['aligned_fastx_selector']</filter> | 257 </data> |
249 </data> | 258 <data name="output_paired_fastx" format="fastq" from_work_dir="aligned.fastq" label="${tool.name} on ${on_string}: Aligned reads"> |
250 <data format_source="input_reads" name="output_other" from_work_dir="other_file.dat" | 259 <filter>aligned_fastx['aligned_fastx_selector'] != '' and sequencing_type['sequencing_type_selector'] == 'paired' and sequencing_type['paired_type'] == ''</filter> |
251 label="Rejected reads on ${on_string} (${input_reads.datatype.file_ext})"> | 260 </data> |
252 <filter>aligned_fastx['aligned_fastx_selector'] and aligned_fastx['other']</filter> | 261 <data name="aligned_forward" format="fastq" label="${tool.name} on ${on_string}: Aligned forward reads"> |
253 </data> | 262 <filter>aligned_fastx['aligned_fastx_selector'] != '' and sequencing_type['sequencing_type_selector'] == 'paired' and sequencing_type['paired_type'] != ''</filter> |
254 <data format="sam" name="output_sam" from_work_dir="aligned.sam" | 263 </data> |
255 label="Alignments on ${on_string} (SAM)"> | 264 <data name="aligned_reverse" format="fastq" label="${tool.name} on ${on_string}: Aligned reverse reads"> |
256 <filter>aligned_sam['aligned_sam_selector']</filter> | 265 <filter>aligned_fastx['aligned_fastx_selector'] != '' and sequencing_type['sequencing_type_selector'] == 'paired' and sequencing_type['paired_type'] != ''</filter> |
257 </data> | 266 </data> |
258 <data format="tabular" name="output_blast" from_work_dir="aligned.blast" | 267 <data name="output_other" format_source="reads" from_work_dir="unaligned.dat" label="${tool.name} on ${on_string}: Unaligned reads"> |
259 label="Alignments on ${on_string} (BLAST)"> | 268 <filter>aligned_fastx['aligned_fastx_selector'] != '' and aligned_fastx['other'] == True and sequencing_type['sequencing_type_selector'] == 'not_paired'</filter> |
260 <filter>aligned_blast['aligned_blast_selector']</filter> | 269 </data> |
270 <data name="output_paired_other" format="fastq" from_work_dir="unaligned.fastq" label="${tool.name} on ${on_string}: Unaligned reads"> | |
271 <filter>aligned_fastx['aligned_fastx_selector'] != '' and aligned_fastx['other'] == True and sequencing_type['sequencing_type_selector'] == 'paired' and sequencing_type['paired_type'] == ''</filter> | |
272 </data> | |
273 <data name="unaligned_forward" format="fastq" label="${tool.name} on ${on_string}: Unaligned forward reads"> | |
274 <filter>aligned_fastx['aligned_fastx_selector'] != '' and aligned_fastx['other'] == True and sequencing_type['sequencing_type_selector'] == 'paired' and sequencing_type['paired_type'] != ''</filter> | |
275 </data> | |
276 <data name="unaligned_reverse" format="fastq" label="${tool.name} on ${on_string}: Unaligned reverse reads"> | |
277 <filter>aligned_fastx['aligned_fastx_selector'] != '' and aligned_fastx['other'] == True and sequencing_type['sequencing_type_selector'] == 'paired' and sequencing_type['paired_type'] != ''</filter> | |
278 </data> | |
279 <data name="output_bam" format="bam" label="${tool.name} on ${on_string}: Alignments"> | |
280 <filter>report['report_type'] != 'None'</filter> | |
281 </data> | |
282 <data name="output_blast" format="tabular" from_work_dir="aligned.blast" label="${tool.name} on ${on_string}: BLAST report"> | |
283 <filter>report['report_type'] != 'None' and report['blast']['blast_output'] == 'True'</filter> | |
261 <change_format> | 284 <change_format> |
262 <when input="aligned_blast.aligned_blast_format" value="0" format="txt" /> | 285 <when input="aligned_blast.aligned_blast_format" value="0" format="txt" /> |
263 </change_format> | 286 </change_format> |
264 </data> | 287 </data> |
265 <data format="txt" name="output_log" label="${tool.name} statistics (txt)" from_work_dir="aligned.log"> | 288 <data name="output_biom" format="txt" from_work_dir="aligned_otus.txt" label="${tool.name} on ${on_string}: OTU map"> |
266 <filter>log</filter> | 289 <filter>report['report_type'] != 'None' and report['report_type'] == 'best' and report['otu']['otu_map'] == 'True'</filter> |
290 </data> | |
291 <data name="output_de_novo" format_source="reads" from_work_dir="aligned_denovo.dat" label="${tool.name} on ${on_string}: De novo reads matching database"> | |
292 <filter>report['report_type'] != 'None' and report['report_type'] == 'best' and report['otu']['otu_map'] == 'True' and report['otu']['de_novo_otu'] == True</filter> | |
293 </data> | |
294 <data name="output_log" format="txt" label="${tool.name} on ${on_string}: Log" from_work_dir="aligned.log"> | |
295 <filter>log == True</filter> | |
267 </data> | 296 </data> |
268 </outputs> | 297 </outputs> |
269 <tests> | 298 <tests> |
270 <test> | 299 <test> |
271 <param name="input_reads" value="read_small.fastq" /> | 300 <conditional name="sequencing_type"> |
272 <param name="sequencing_type_selector" value="not_paired" /> | 301 <param name="sequencing_type_selector" value="not_paired" /> |
302 <param name="reads" value="read_small.fastq" /> | |
303 </conditional> | |
273 <param name="strand_search" value="" /> | 304 <param name="strand_search" value="" /> |
274 <param name="databases_selector" value="history" /> | 305 <conditional name="databases_type"> |
275 <param name="database_name" value="ref_small.fasta" /> | 306 <param name="databases_selector" value="history" /> |
276 <param name="aligned_fastx_selector" value="--fastx" /> | 307 <param name="database_name" value="ref_small.fasta" /> |
277 <param name="other" value="True" /> | 308 </conditional> |
278 <param name="aligned_sam_selector" value="--sam" /> | 309 <conditional name="aligned_fastx"> |
279 <param name="aligned_blast_selector" value="--blast"/> | 310 <param name="aligned_fastx_selector" value="--fastx" /> |
280 <param name="aligned_blast_format" value="1 cigar qcov" /> | 311 <param name="other" value="True" /> |
281 <param name="log" value="" /> | 312 </conditional> |
282 <param name="report_type" value="best" /> | 313 <param name="log" value="False" /> |
283 <param name="report_best_type" value="1" /> | 314 <conditional name="report"> |
315 <param name="report_type" value="num_alignments" /> | |
316 <param name="report_best_type" value="1" /> | |
317 <param name="print_all_reads" value="False" /> | |
318 <conditional name="blast"> | |
319 <param name="blast_output" value="True"/> | |
320 <param name="blast_format" value="1 cigar qcov"/> | |
321 </conditional> | |
322 <conditional name="otu"> | |
323 <param name="otu_map" value="False"/> | |
324 </conditional> | |
325 </conditional> | |
284 <param name="e_value" value="1"/> | 326 <param name="e_value" value="1"/> |
285 <param name="match" value="2"/> | 327 <param name="match" value="2"/> |
286 <param name="mismatch" value="-3" /> | 328 <param name="mismatch" value="-3" /> |
287 <param name="gap_open" value="5"/> | 329 <param name="gap_open" value="5"/> |
288 <param name="gap_ext" value="2"/> | 330 <param name="gap_ext" value="2"/> |
289 <param name="ambiguous_letter" value="-3"/> | 331 <param name="ambiguous_letter" value="-3"/> |
290 <output name="output_fastx" file="sortmerna_wrapper_accept1.fastq" /> | 332 <output name="output_fastx" file="test1_aligned.fastq" /> |
291 <output name="output_other" file="sortmerna_wrapper_other1.fastq" /> | 333 <output name="output_other" file="test1_other.fastq" /> |
292 <output name="output_sam" file="sortmerna_wrapper_sam1.sam" lines_diff="2" /> | 334 <output name="output_bam" file="test1_bam.bam" compare="sim_size" delta="200" /> |
335 <output name="output_blast" file="test1_blast.tabular"/> | |
293 </test> | 336 </test> |
294 <test> | 337 <test> |
295 <param name="input_reads" value="read_small.fasta" /> | 338 <conditional name="sequencing_type"> |
296 <param name="sequencing_type_selector" value="not_paired" /> | 339 <param name="sequencing_type_selector" value="not_paired" /> |
340 <param name="reads" value="read_small.fasta" /> | |
341 </conditional> | |
297 <param name="strand_search" value="" /> | 342 <param name="strand_search" value="" /> |
298 <param name="databases_selector" value="history" /> | 343 <conditional name="databases_type"> |
299 <param name="database_name" value="ref_small.fasta" /> | 344 <param name="databases_selector" value="history" /> |
300 <param name="aligned_fastx_selector" value="--fastx" /> | 345 <param name="database_name" value="ref_small.fasta" /> |
301 <param name="other" value="True" /> | 346 </conditional> |
302 <param name="aligned_sam_selector" value="--sam" /> | 347 <conditional name="aligned_fastx"> |
303 <param name="aligned_blast" value="" /> | 348 <param name="aligned_fastx_selector" value="--fastx" /> |
304 <param name="log" value="" /> | 349 <param name="other" value="False" /> |
305 <param name="report_type" value="best" /> | 350 </conditional> |
306 <param name="report_best_type" value="1" /> | 351 <param name="log" value="True" /> |
307 <param name="report_type" value="best" /> | 352 <conditional name="report"> |
308 <param name="report_best_type" value="1" /> | 353 <param name="report_type" value="None" /> |
354 </conditional> | |
309 <param name="e_value" value="1"/> | 355 <param name="e_value" value="1"/> |
310 <param name="match" value="2"/> | 356 <param name="match" value="2"/> |
311 <param name="mismatch" value="-3" /> | 357 <param name="mismatch" value="-3" /> |
312 <param name="gap_open" value="5"/> | 358 <param name="gap_open" value="5"/> |
313 <param name="gap_ext" value="2"/> | 359 <param name="gap_ext" value="2"/> |
314 <param name="ambiguous_letter" value="-3"/> | 360 <param name="ambiguous_letter" value="-3"/> |
315 <output name="output_fastx" file="sortmerna_wrapper_accept2.fasta" /> | 361 <output name="output_fastx" file="test2_aligned.fasta" /> |
316 <output name="output_other" file="sortmerna_wrapper_other2.fasta" /> | 362 <output name="output_log" file="test2_log.txt" compare="sim_size" /> |
317 <output name="output_sam" file="sortmerna_wrapper_sam2.sam" lines_diff="2" /> | 363 </test> |
364 <test> | |
365 <conditional name="sequencing_type"> | |
366 <param name="sequencing_type_selector" value="paired" /> | |
367 <param name="forward_reads" value="forward_reads.fastq" /> | |
368 <param name="reverse_reads" value="reverse_reads.fastq" /> | |
369 <param name="paired_type" value="--paired_in"/> | |
370 </conditional> | |
371 <param name="strand_search" value="" /> | |
372 <conditional name="databases_type"> | |
373 <param name="databases_selector" value="history" /> | |
374 <param name="database_name" value="ref_small.fasta" /> | |
375 <param name="seed_length" value="18" /> | |
376 <param name="max_pos" value="100000"/> | |
377 </conditional> | |
378 <conditional name="aligned_fastx"> | |
379 <param name="aligned_fastx_selector" value="--fastx" /> | |
380 <param name="other" value="True" /> | |
381 </conditional> | |
382 <param name="log" value="False" /> | |
383 <conditional name="report"> | |
384 <param name="report_type" value="best" /> | |
385 <param name="report_num_alignments_type" value="1"/> | |
386 <param name="print_all_reads" value="False" /> | |
387 <conditional name="blast"> | |
388 <param name="blast_output" value="False"/> | |
389 </conditional> | |
390 <conditional name="otu"> | |
391 <param name="otu_map" value="False"/> | |
392 </conditional> | |
393 </conditional> | |
394 <param name="e_value" value="1"/> | |
395 <param name="match" value="2"/> | |
396 <param name="mismatch" value="-3" /> | |
397 <param name="gap_open" value="5"/> | |
398 <param name="gap_ext" value="2"/> | |
399 <param name="ambiguous_letter" value="-3"/> | |
400 <output name="aligned_forward" file="test3_aligned_forward.fastq" /> | |
401 <output name="aligned_reverse" file="test3_aligned_reverse.fastq" /> | |
402 <output name="unaligned_forward" file="test3_unaligned_forward.fastq" /> | |
403 <output name="unaligned_reverse" file="test3_unaligned_reverse.fastq" /> | |
404 <output name="output_bam" file="test3_bam.bam" compare="sim_size" delta="200" /> | |
405 </test> | |
406 <test> | |
407 <conditional name="sequencing_type"> | |
408 <param name="sequencing_type_selector" value="not_paired" /> | |
409 <param name="reads" value="test4_input.fasta" /> | |
410 </conditional> | |
411 <param name="strand_search" value="" /> | |
412 <conditional name="databases_type"> | |
413 <param name="databases_selector" value="history" /> | |
414 <param name="database_name" value="ref_small.fasta" /> | |
415 <param name="seed_length" value="18" /> | |
416 <param name="max_pos" value="100000"/> | |
417 </conditional> | |
418 <conditional name="aligned_fastx"> | |
419 <param name="aligned_fastx_selector" value="" /> | |
420 </conditional> | |
421 <param name="log" value="False" /> | |
422 <conditional name="report"> | |
423 <param name="report_type" value="best" /> | |
424 <param name="report_num_alignments_type" value="1"/> | |
425 <param name="print_all_reads" value="False" /> | |
426 <conditional name="blast"> | |
427 <param name="blast_output" value="False"/> | |
428 </conditional> | |
429 <conditional name="otu"> | |
430 <param name="otu_map" value="True"/> | |
431 <param name="id" value="0.97"/> | |
432 <param name="coverage" value="0.97" /> | |
433 <param name="de_novo_otu" value="True"/> | |
434 </conditional> | |
435 </conditional> | |
436 <param name="e_value" value="1"/> | |
437 <param name="match" value="2"/> | |
438 <param name="mismatch" value="-3" /> | |
439 <param name="gap_open" value="5"/> | |
440 <param name="gap_ext" value="2"/> | |
441 <param name="ambiguous_letter" value="-3"/> | |
442 <output name="output_bam" file="test4_bam.bam" compare="sim_size" delta="200" /> | |
443 <output name="output_biom" file="test4_biom.txt"/> | |
444 <output name="output_de_novo" file="test4_de_novo.fasta"/> | |
318 </test> | 445 </test> |
319 </tests> | 446 </tests> |
320 <help> | 447 <help> |
321 <![CDATA[ | 448 <![CDATA[ |
322 **What it does** | 449 **What it does** |