annotate bbmap.xml @ 3:8157a81f511c draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 425671870866660485ef6a35c94d3736f5c1df97"
author iuc
date Tue, 01 Feb 2022 23:01:08 +0000
parents e0ca2ec4f5d9
children 6d44c9f1a42b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
1 <tool id="bbtools_bbmap" name="BBTools: BBMap" version="@WRAPPER_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
2 <description>short-read aligner</description>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
3 <macros>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
4 <import>macros.xml</import>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
5 </macros>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
6 <expand macro="requirements"/>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
8 #import os
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
9 #import re
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
10
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
11 #if str($ref_source_cond.ref_source) == 'cached'
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
12 #set ref = str($ref_source_cond.reference.fields.path)
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
13 #else:
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
14 #set ref = $ref_source_cond.reference
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
15 #end if
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
16
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
17 #if str($input_type_cond.input_type) in ['single', 'pair']:
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
18 #set read1 = $input_type_cond.read1
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
19 ## bbmap uses the file extension to determine the input format.
3
8157a81f511c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 425671870866660485ef6a35c94d3736f5c1df97"
iuc
parents: 2
diff changeset
20 #set ext = '.fastq'
0
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
21 #if $read1.ext.endswith('.gz'):
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
22 #set ext = $ext + '.gz'
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
23 #end if
3
8157a81f511c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 425671870866660485ef6a35c94d3736f5c1df97"
iuc
parents: 2
diff changeset
24 #set read1_file = 'forward' + $ext
0
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
25 ln -s '${read1}' '${read1_file}' &&
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
26 #if str($input_type_cond.input_type) == 'pair':
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
27 #set read2 = $input_type_cond.read2
3
8157a81f511c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 425671870866660485ef6a35c94d3736f5c1df97"
iuc
parents: 2
diff changeset
28 #set read2_file = 'reverse' + $ext
0
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
29 ln -s '${read2}' '${read2_file}' &&
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
30 #end if
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
31 #else:
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
32 #set read1 = $input_type_cond.reads_collection['forward']
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
33 #set read1_identifier = re.sub('[^\s\w\-]', '_', str($read1.name))
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
34 ## bbmap uses the file extension to determine the input format.
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
35 #set ext = $read1_identifier + '.fastq'
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
36 #if $read1.ext.endswith('.gz'):
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
37 #set ext = $ext + '.gz'
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
38 #end if
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
39 #set read1_file = $read1_identifier + $ext
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
40 ln -s '${read1}' '${read1_file}' &&
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
41 #set read2 = $input_type_cond.reads_collection['reverse']
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
42 #set read2_identifier = re.sub('[^\s\w\-]', '_', str($read2.name))
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
43 #set read2_file = $read2_identifier + $ext
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
44 ln -s '${read2}' '${read2_file}' &&
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
45 #end if
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
46
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
47 bbmap.sh t=\${GALAXY_SLOTS:-4} ref='${ref}'
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
48 #if str($input_type_cond.input_type) == 'single':
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
49 in='${read1_file}'
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
50 #else:
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
51 in1='${read1_file}' in2='${read2_file}'
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
52 #end if
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
53 #if str($output_sort) == 'coordinate':
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
54 out='mapped.bam'; samtools sort -@\${GALAXY_SLOTS:-4} -T "\${TMPDIR:-.}" -O bam -o '$output' 'mapped.bam'
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
55 #elif str($output_sort) == 'name':
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
56 out='mapped.bam'; samtools sort -n -@\${GALAXY_SLOTS:-4} -T '\${TMPDIR:-.}' -O bam -o '$output' 'mapped.bam'
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
57 #else:
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
58 out='mapped.bam' && mv 'mapped.bam' '$output'
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
59 #end if
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
60 ]]></command>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
61 <inputs>
2
e0ca2ec4f5d9 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit ae31a678eb5c04fb74b94161db95705d597990ad"
iuc
parents: 0
diff changeset
62 <expand macro="input_type_cond"/>
0
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
63 <expand macro="reference_source_cond"/>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
64 <param name="output_sort" type="select" label="BAM sorting mode" help="The 'Not sorted' option can significantly extend the run time of the tool (it runs using a single thread).">
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
65 <option value="coordinate" selected="True">Sort by chromosomal coordinates</option>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
66 <option value="name">Sort by read names</option>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
67 <option value="unsorted">Not sorted (sorted as input)</option>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
68 </param>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
69 </inputs>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
70 <outputs>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
71 <data format="bam" name="output" label="${tool.name} on ${on_string} (mapped reads in BAM format)">
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
72 <expand macro="dbKeyActionsBBMap"/>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
73 <change_format>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
74 <when input="output_sort" value="name" format="qname_sorted.bam" />
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
75 <when input="output_sort" value="unsorted" format="qname_input_sorted.bam" />
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
76 </change_format>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
77 </data>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
78 </outputs>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
79 <tests>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
80 <!-- Single file, cached reference, output coordinate sorted -->
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
81 <test expect_num_outputs="1">
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
82 <param name="input_type" value="single"/>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
83 <param name="read1" value="13-1941-6_S4_L001_R1_600000.fastq.gz"/>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
84 <output name="output" file="output1.bam" ftype="bam" lines_diff="4">
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
85 <metadata name="dbkey" value="89" />
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
86 </output>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
87 </test>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
88 <!-- Paired reads in separate datasets, cached reference, output name sorted -->
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
89 <test expect_num_outputs="1">
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
90 <param name="input_type" value="pair"/>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
91 <param name="read1" value="13-1941-6_S4_L001_R1_600000.fastq.gz"/>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
92 <param name="read2" value="13-1941-6_S4_L001_R2_600000.fastq.gz"/>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
93 <param name="output_sort" value="name"/>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
94 <output name="output" file="output2.bam" ftype="qname_sorted.bam" lines_diff="4">
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
95 <metadata name="dbkey" value="89" />
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
96 </output>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
97 </test>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
98 <!-- Collection of Paired reads, history reference, output unsorted -->
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
99 <test expect_num_outputs="1">
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
100 <param name="input_type" value="paired"/>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
101 <param name="reads_collection">
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
102 <collection type="paired">
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
103 <element name="forward" value="13-1941-6_S4_L001_R1_600000.fastq.gz"/>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
104 <element name="reverse" value="13-1941-6_S4_L001_R2_600000.fastq.gz"/>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
105 </collection>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
106 </param>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
107 <param name="ref_source" value="history"/>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
108 <param name="reference" value="NC_002945v4.fasta" dbkey="89" ftype="fasta"/>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
109 <param name="output_sort" value="unsorted"/>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
110 <output name="output" file="output3.bam" ftype="qname_input_sorted.bam" lines_diff="4">
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
111 <metadata name="dbkey" value="89" />
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
112 </output>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
113 </test>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
114 </tests>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
115 <help>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
116 **What it does**
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
117
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
118 BBMap is a splice-aware global aligner for DNA and RNA sequencing reads. It is fast and extremely accurate, particularly
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
119 with highly mutated genomes or reads with long indels, even whole-gene deletions over 100kbp long. It has no upper limit
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
120 to genome size or number of contigs and has been successfully used for mapping to an 85 gigabase soil metagenome with over
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
121 200 million contigs. the indexing phase is very fast compared to other aligners.
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
122
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
123 BBMap can output many different statistics files; an empirical read quality histogram, insert-size distribution, and genome
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
124 coverage with or without generating a sam file. It is useful in quality control of libraries and sequencing runs or
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
125 evaluating new sequencing platforms.
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
126
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
127 **Options**
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
128
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
129 *Bam sorting mode* - the generated bam files can be sorted according to three criteria: coordinates, names and input order.
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
130
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
131 * Sort by chromosomal coordinates - the file is sorted by coordinates (i.e., the reads from the beginning of the first
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
132 chromosome are first in the file.
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
133 * Sort by read names - the file is sorted by the reference ID (i.e., the QNAME field).
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
134 * Not sorted (sorted as input) - the file is sorted in the order of the reads in the input file.
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
135
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
136 </help>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
137 <expand macro="citations"/>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
138 </tool>
07a6e49c7d74 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bbtools commit 3682ff4e2e47438e975fc04f92469eca7814fcfa"
iuc
parents:
diff changeset
139