comparison sortmerna.xml @ 9:eb35257d2e29 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/rna_tools/sortmerna commit d83142dbe2432fcb0f56dcd6311a05c061628ecc
author rnateam
date Wed, 20 Mar 2019 03:03:08 -0400
parents 65c38d020fea
children 10b84b577117
comparison
equal deleted inserted replaced
8:65c38d020fea 9:eb35257d2e29
1 <tool id="bg_sortmerna" name="Filter with SortMeRNA" version="@VERSION@.5"> 1 <tool id="bg_sortmerna" name="Filter with SortMeRNA" version="@VERSION@.6">
2 <description>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 <token name="@VERSION@">2.1b</token>
5 <xml name="db_prep">
6 <param name="seed_length" type="integer" min="0" max="100" value="18" label="Seed length for database indexing" help="(-L)"/>
7 <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)"/>
8 </xml>
9 <xml name="output_alignments">
10 <param name="print_all_reads" type="boolean" checked="false" truevalue="--print_all_reads" falsevalue="" label="Output null alignment strings for non-aligned reads"/>
11 <conditional name="blast">
12 <param name="blast_output" type="select" label="Output BLAST report?">
13 <option value="True">Yes</option>
14 <option value="False" selected="True">No</option>
15 </param>
16 <when value="True">
17 <param name="blast_format" type="select" label="BLAST-like format?">
18 <option value="0">pairwise (--blast '0')</option>
19 <option value="1">tabular BLAST -m 8 format (--blast '1')</option>
20 <option value="1 cigar">tabular + column for CIGAR (--blast '1 cigar')</option>
21 <option value="1 cigar qcov">tabular + columns for CIGAR and query coverage (--blast '1 cigar qcov')</option>
22 <option value="1 cigar qcov qstrand">tabular + columns for CIGAR, query coverage and strand (--blast '1 cigar qcov qstrand')</option>
23 </param>
24 </when>
25 <when value="False"/>
26 </conditional>
27 </xml>
28 <token name="@ALIGNMENTS@">
29 $report.print_all_reads
30 --sam
31 --SQ
32 #if $report.blast.blast_output == 'True'
33 --blast '$report.blast.blast_format'
34 #end if
35 </token>
5 </macros> 36 </macros>
6 <requirements> 37 <requirements>
7 <requirement type="package" version="@VERSION@">sortmerna</requirement> 38 <requirement type="package" version="@VERSION@">sortmerna</requirement>
8 <requirement type="package" version="1.5">samtools</requirement> 39 <requirement type="package" version="1.5">samtools</requirement>
9 </requirements> 40 </requirements>
47 #end for 78 #end for
48 #end if 79 #end if
49 80
50 #if str( $databases_type.databases_selector ) != 'cached' 81 #if str( $databases_type.databases_selector ) != 'cached'
51 indexdb_rna 82 indexdb_rna
52 --ref $ref 83 --ref '$ref'
53 -L $databases_type.seed_length 84 -L '$databases_type.seed_length'
54 --max_pos $databases_type.max_pos 85 --max_pos '$databases_type.max_pos'
55 && 86 &&
56 #end if 87 #end if
57 88
58 #if str( $sequencing_type.sequencing_type_selector ) == 'paired' 89 #if str( $sequencing_type.sequencing_type_selector ) == 'paired'
59 merge-paired-reads.sh 90 merge-paired-reads.sh
60 '$sequencing_type.forward_reads' 91 '$sequencing_type.forward_reads'
61 '$sequencing_type.reverse_reads' 92 '$sequencing_type.reverse_reads'
62 merged-reads.fastq 93 merged-reads
63 && 94 &&
64 #end if 95 #end if
65 96
66 sortmerna 97 sortmerna
67 --ref $ref 98 --ref '$ref'
68 --aligned aligned 99 --aligned 'aligned'
69 #if str( $sequencing_type.sequencing_type_selector ) == 'paired' 100 #if str( $sequencing_type.sequencing_type_selector ) == 'paired'
70 --reads merged-reads.fastq 101 --reads 'merged-reads'
71 $sequencing_type.paired_type 102 $sequencing_type.paired_type
72 #else 103 #else
73 --reads '$sequencing_type.reads' 104 --reads '$sequencing_type.reads'
74 #end if 105 #end if
75 $strand_search 106 $strand_search
76 $log 107 $log
77 $aligned_fastx.aligned_fastx_selector 108 $aligned_fastx.aligned_fastx_selector
78 #if $aligned_fastx.aligned_fastx_selector == '--fastx' 109 #if $aligned_fastx.aligned_fastx_selector == '--fastx'
79 #if $aligned_fastx.other 110 #if $aligned_fastx.other
80 --other unaligned 111 --other 'unaligned'
81 #end if 112 #end if
82 #end if 113 #end if
83 #if $report.report_type == 'best' 114 #if $report.report_type == 'best'
84 @ALIGNMENTS@ 115 @ALIGNMENTS@
85 #if $report.otu.otu_map == 'True' 116 #if $report.otu.otu_map == 'True'
106 -e '$e_value' 137 -e '$e_value'
107 --match '$match' 138 --match '$match'
108 --mismatch '$mismatch' 139 --mismatch '$mismatch'
109 --gap_open '$gap_open' 140 --gap_open '$gap_open'
110 --gap_ext '$gap_ext' 141 --gap_ext '$gap_ext'
111 -N $ambiguous_letter 142 -N '$ambiguous_letter'
112 -a \${GALAXY_SLOTS:-1} 143 -a \${GALAXY_SLOTS:-1}
113 #if $report.report_type != 'None' 144 #if $report.report_type != 'None'
114 && 145 &&
115 samtools view -@ "\${GALAXY_SLOTS:-4}" -u aligned.sam | samtools sort -@ "\${GALAXY_SLOTS:-4}" -T tmp -O bam -o '$output_bam' 146 samtools view -@ "\${GALAXY_SLOTS:-4}" -u aligned.sam | samtools sort -@ "\${GALAXY_SLOTS:-4}" -T tmp -O bam -o '$output_bam'
116 #end if 147 #end if
117 148
118 #if str( $sequencing_type.sequencing_type_selector ) == 'paired' and $sequencing_type.paired_type != '' and $aligned_fastx.aligned_fastx_selector == '--fastx' 149 #if $aligned_fastx.aligned_fastx_selector == '--fastx' and str($sequencing_type.sequencing_type_selector) == 'paired'
119 && 150 #if str($sequencing_type.paired_type) != ''
120 unmerge-paired-reads.sh
121 aligned.fastq
122 '$aligned_forward'
123 '$aligned_reverse'
124 #if $aligned_fastx.other
125 && 151 &&
126 unmerge-paired-reads.sh 152 unmerge-paired-reads.sh
127 unaligned.fastq 153 aligned.fast*
128 '$unaligned_forward' 154 '$aligned_forward'
129 '$unaligned_reverse' 155 '$aligned_reverse'
156 #if $aligned_fastx.other
157 &&
158 unmerge-paired-reads.sh
159 unaligned.fast*
160 '$unaligned_forward'
161 '$unaligned_reverse'
162 #end if
163 #else
164 &&
165 mv aligned.fast* '$aligned_paired'
166 #if $aligned_fastx.other
167 &&
168 mv unaligned.fast* '$unaligned_paired'
169 #end if
130 #end if 170 #end if
131 #end if 171 #end if
132 ]]> 172 ]]>
133 </command> 173 </command>
134 <inputs> 174 <inputs>
139 </param> 179 </param>
140 <when value="not_paired"> 180 <when value="not_paired">
141 <param argument="--reads" type="data" format="fasta,fastq" label="Querying sequences"/> 181 <param argument="--reads" type="data" format="fasta,fastq" label="Querying sequences"/>
142 </when> 182 </when>
143 <when value="paired"> 183 <when value="paired">
144 <param name="forward_reads" type="data" format="fastq" label="Forward reads"/> 184 <param name="forward_reads" type="data" format="fasta,fastq" label="Forward reads"/>
145 <param name="reverse_reads" type="data" format="fastq" label="Reverse reads"/> 185 <param name="reverse_reads" type="data" format="fasta,fastq" label="Reverse reads"/>
146 <param name="paired_type" type="select" display="radio" label="If one of the paired-end reads aligns and the other one does not"> 186 <param name="paired_type" type="select" display="radio" label="If one of the paired-end reads aligns and the other one does not">
147 <option value="">Leave the reads split between aligned and rejected files</option> 187 <option value="">Leave the reads split between aligned and rejected files</option>
148 <option value="--paired_in">Output both reads to aligned file (--paired_in)</option> 188 <option value="--paired_in">Output both reads to aligned file (--paired_in)</option>
149 <option value="--paired_out">Output both reads to rejected file (--paired_out)</option> 189 <option value="--paired_out">Output both reads to rejected file (--paired_out)</option>
150 </param> 190 </param>
253 </inputs> 293 </inputs>
254 <outputs> 294 <outputs>
255 <data name="output_fastx" format_source="reads" from_work_dir="aligned.dat" label="${tool.name} on ${on_string}: Aligned reads"> 295 <data name="output_fastx" format_source="reads" from_work_dir="aligned.dat" label="${tool.name} on ${on_string}: Aligned reads">
256 <filter>aligned_fastx['aligned_fastx_selector'] != '' and sequencing_type['sequencing_type_selector'] != 'paired'</filter> 296 <filter>aligned_fastx['aligned_fastx_selector'] != '' and sequencing_type['sequencing_type_selector'] != 'paired'</filter>
257 </data> 297 </data>
258 <data name="output_paired_fastx" format="fastq" from_work_dir="aligned.fastq" label="${tool.name} on ${on_string}: Aligned reads"> 298 <data name="aligned_paired" format_source="forward_reads" label="${tool.name} on ${on_string}: Aligned reads">
259 <filter>aligned_fastx['aligned_fastx_selector'] != '' and sequencing_type['sequencing_type_selector'] == 'paired' and sequencing_type['paired_type'] == ''</filter> 299 <filter>aligned_fastx['aligned_fastx_selector'] != '' and sequencing_type['sequencing_type_selector'] == 'paired' and sequencing_type['paired_type'] == ''</filter>
260 </data> 300 </data>
261 <data name="aligned_forward" format="fastq" label="${tool.name} on ${on_string}: Aligned forward reads"> 301 <data name="aligned_forward" format_source="forward_reads" label="${tool.name} on ${on_string}: Aligned forward reads">
262 <filter>aligned_fastx['aligned_fastx_selector'] != '' and sequencing_type['sequencing_type_selector'] == 'paired' and sequencing_type['paired_type'] != ''</filter> 302 <filter>aligned_fastx['aligned_fastx_selector'] != '' and sequencing_type['sequencing_type_selector'] == 'paired' and sequencing_type['paired_type'] != ''</filter>
263 </data> 303 </data>
264 <data name="aligned_reverse" format="fastq" label="${tool.name} on ${on_string}: Aligned reverse reads"> 304 <data name="aligned_reverse" format_source="reverse_reads" label="${tool.name} on ${on_string}: Aligned reverse reads">
265 <filter>aligned_fastx['aligned_fastx_selector'] != '' and sequencing_type['sequencing_type_selector'] == 'paired' and sequencing_type['paired_type'] != ''</filter> 305 <filter>aligned_fastx['aligned_fastx_selector'] != '' and sequencing_type['sequencing_type_selector'] == 'paired' and sequencing_type['paired_type'] != ''</filter>
266 </data> 306 </data>
267 <data name="output_other" format_source="reads" from_work_dir="unaligned.dat" label="${tool.name} on ${on_string}: Unaligned reads"> 307 <data name="output_other" format_source="reads" from_work_dir="unaligned.dat" label="${tool.name} on ${on_string}: Unaligned reads">
268 <filter>aligned_fastx['aligned_fastx_selector'] != '' and aligned_fastx['other'] == True and sequencing_type['sequencing_type_selector'] == 'not_paired'</filter> 308 <filter>aligned_fastx['aligned_fastx_selector'] != '' and aligned_fastx['other'] == True and sequencing_type['sequencing_type_selector'] != 'paired'</filter>
269 </data> 309 </data>
270 <data name="output_paired_other" format="fastq" from_work_dir="unaligned.fastq" label="${tool.name} on ${on_string}: Unaligned reads"> 310 <data name="unaligned_paired" format_source="forward_reads" 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> 311 <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> 312 </data>
273 <data name="unaligned_forward" format="fastq" label="${tool.name} on ${on_string}: Unaligned forward reads"> 313 <data name="unaligned_forward" format_source="forward_reads" 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> 314 <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> 315 </data>
276 <data name="unaligned_reverse" format="fastq" label="${tool.name} on ${on_string}: Unaligned reverse reads"> 316 <data name="unaligned_reverse" format_source="reverse_reads" 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> 317 <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> 318 </data>
279 <data name="output_bam" format="bam" label="${tool.name} on ${on_string}: Alignments"> 319 <data name="output_bam" format="bam" label="${tool.name} on ${on_string}: Alignments">
280 <filter>report['report_type'] != 'None'</filter> 320 <filter>report['report_type'] != 'None'</filter>
281 </data> 321 </data>
441 <param name="ambiguous_letter" value="-3"/> 481 <param name="ambiguous_letter" value="-3"/>
442 <output name="output_bam" file="test4_bam.bam" compare="sim_size" delta="200" /> 482 <output name="output_bam" file="test4_bam.bam" compare="sim_size" delta="200" />
443 <output name="output_biom" file="test4_biom.txt"/> 483 <output name="output_biom" file="test4_biom.txt"/>
444 <output name="output_de_novo" file="test4_de_novo.fasta"/> 484 <output name="output_de_novo" file="test4_de_novo.fasta"/>
445 </test> 485 </test>
486 <test>
487 <conditional name="sequencing_type">
488 <param name="sequencing_type_selector" value="paired" />
489 <param name="forward_reads" value="forward_reads.fasta" />
490 <param name="reverse_reads" value="reverse_reads.fasta" />
491 <param name="paired_type" value=""/>
492 </conditional>
493 <param name="strand_search" value="" />
494 <conditional name="databases_type">
495 <param name="databases_selector" value="history" />
496 <param name="database_name" value="ref_small.fasta" />
497 <param name="seed_length" value="18" />
498 <param name="max_pos" value="100000"/>
499 </conditional>
500 <conditional name="aligned_fastx">
501 <param name="aligned_fastx_selector" value="--fastx" />
502 <param name="other" value="True" />
503 </conditional>
504 <param name="log" value="False" />
505 <conditional name="report">
506 <param name="report_type" value="best" />
507 <param name="report_num_alignments_type" value="1"/>
508 <param name="print_all_reads" value="False" />
509 <conditional name="blast">
510 <param name="blast_output" value="False"/>
511 </conditional>
512 <conditional name="otu">
513 <param name="otu_map" value="False"/>
514 </conditional>
515 </conditional>
516 <param name="e_value" value="1"/>
517 <param name="match" value="2"/>
518 <param name="mismatch" value="-3" />
519 <param name="gap_open" value="5"/>
520 <param name="gap_ext" value="2"/>
521 <param name="ambiguous_letter" value="-3"/>
522 <output name="aligned_paired" file="test5_aligned.fasta" />
523 <output name="unaligned_paired" file="test5_unaligned.fasta" />
524 </test>
525 <test>
526 <conditional name="sequencing_type">
527 <param name="sequencing_type_selector" value="paired" />
528 <param name="forward_reads" value="forward_reads.fasta" />
529 <param name="reverse_reads" value="reverse_reads.fasta" />
530 <param name="paired_type" value="--paired_out"/>
531 </conditional>
532 <param name="strand_search" value="" />
533 <conditional name="databases_type">
534 <param name="databases_selector" value="history" />
535 <param name="database_name" value="ref_small.fasta" />
536 <param name="seed_length" value="18" />
537 <param name="max_pos" value="100000"/>
538 </conditional>
539 <conditional name="aligned_fastx">
540 <param name="aligned_fastx_selector" value="--fastx" />
541 <param name="other" value="True" />
542 </conditional>
543 <param name="log" value="False" />
544 <conditional name="report">
545 <param name="report_type" value="best" />
546 <param name="report_num_alignments_type" value="1"/>
547 <param name="print_all_reads" value="False" />
548 <conditional name="blast">
549 <param name="blast_output" value="False"/>
550 </conditional>
551 <conditional name="otu">
552 <param name="otu_map" value="False"/>
553 </conditional>
554 </conditional>
555 <param name="e_value" value="1"/>
556 <param name="match" value="2"/>
557 <param name="mismatch" value="-3" />
558 <param name="gap_open" value="5"/>
559 <param name="gap_ext" value="2"/>
560 <param name="ambiguous_letter" value="-3"/>
561 <output name="aligned_forward" file="test6_aligned_forward.fasta" />
562 <output name="aligned_reverse" file="test6_aligned_reverse.fasta" />
563 <output name="unaligned_forward" file="test6_unaligned_forward.fasta" />
564 <output name="unaligned_reverse" file="test6_unaligned_reverse.fasta" />
565 </test>
446 </tests> 566 </tests>
447 <help> 567 <help>
448 <![CDATA[ 568 <![CDATA[
449 **What it does** 569 **What it does**
450 570