annotate sambamba.xml @ 2:7ad3484aa5db draft

"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
author artbio
date Thu, 30 Dec 2021 02:06:08 +0000
parents 6195f15d4541
children de833cc76a8e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
1 <tool id="sambamba_sample_or_filter" name="Sample or Filter BAM" version="0.7.1+galaxy0">
1
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
2 <description>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
3 on flags, fields, and tags using Sambamba
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
4 </description>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
5 <requirements>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
6 <requirement type="package" version="0.7.1">sambamba</requirement>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
7 </requirements>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
8 <stdio>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
9 <exit_code range="1:" level="fatal" description="Error occured" />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
10 </stdio>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
11 <!-- <version_command>sambamba 2>&amp;1 | grep "sambamba v" | sed 's/^sambamba v\(.*\)/\1/'</version_command> -->
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
12 <command detect_errors="exit_code"><![CDATA[
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
13 ln -s $input input.bam &&
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
14 ln -s $input.metadata.bam_index input.bai &&
2
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
15
1
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
16 #if $sambamba_options.selector == 'filter'
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
17 sambamba view -h -t \${GALAXY_SLOTS:-4}
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
18 #if $sambamba_options.query != '':
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
19 --filter='$sambamba_options.query'
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
20 #end if
2
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
21 -f '$sambamba_options.format'
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
22 -o $outfile input.bam $sambamba_options.region
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
23
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
24 #else if $sambamba_options.selector == 'sample'
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
25 sambamba view -h -t \${GALAXY_SLOTS:-4} -f '$sambamba_options.format'
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
26 --subsampling-seed='$sambamba_options.seed'
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
27 -s '$sambamba_options.fraction'
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
28 -o '$outfile' input.bam
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
29
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
30 #else
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
31 sambamba slice -o '$outfile' input.bam $sambamba_options.region
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
32 #end if
1
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
33 ]]></command>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
34 <inputs>
2
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
35 <param name="input" type="data" format="bam" label="BAM or SAM input file(s)"/>
1
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
36 <conditional name="sambamba_options">
2
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
37 <param name="selector" type="select" label="Filter, Down-sample or slice alignments">
1
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
38 <option value="sample">Down-sample bam or sam alignments</option>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
39 <option value="filter" selected="true">Filter bam or sam alignements</option>
2
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
40 <option value="slice">Slice bam or sam alignements by chromosome or chromosome region</option>
1
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
41 </param>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
42 <when value="filter">
2
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
43 <param name="format" type="select" label="format of the tool output">
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
44 <option value="bam">BAM</option>
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
45 <option value="sam">SAM</option>
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
46 </param>
1
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
47 <param name="query" type="text" size="80">
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
48 <sanitizer invalid_char="X">
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
49 <valid initial="string.ascii_letters,string.digits, string.punctuation">
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
50 <add value=" " />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
51 </valid>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
52 </sanitizer>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
53 <label>Filter expression</label>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
54 <help>See below for query syntax.</help>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
55 </param>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
56 <param name="region" type="text" size="40" label="Region in format chr:beg-end">
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
57 <help>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
58 Regions can be specified as 'chr2' (the whole chr2), 'chr2:1000000'
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
59 (region starting from 1,000,000bp) or 'chr2:1,000,000-2,000,000'
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
60 (region between 1,000,000 and 2,000,000bp including the end points).
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
61 The coordinates are 1-based.
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
62 </help>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
63 </param>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
64 </when>
2
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
65
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
66 <when value="slice">
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
67 <param name="region" type="text" size="40" label="Region in format chr:beg-end">
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
68 <help>
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
69 Regions can be specified as 'chr2' (the whole chr2), 'chr2:1000000'
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
70 (region starting from 1,000,000bp) or 'chr2:1,000,000-2,000,000'
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
71 (region between 1,000,000 and 2,000,000bp including the end points).
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
72 The coordinates are 1-based. NOTE that sambamba slice only outputs
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
73 BAM-format datasets.
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
74 </help>
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
75 </param>
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
76 </when>
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
77
1
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
78 <when value="sample">
2
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
79 <param name="format" type="select" label="format of the tool output">
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
80 <option value="bam">BAM</option>
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
81 <option value="sam">SAM</option>
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
82 </param>
1
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
83 <param name="seed" type="integer" value="123" size="10">
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
84 <label>Seed value for randomisation</label>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
85 <help>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
86 Be careful at selecting different seed values if you
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
87 re-subsample a subsample output of this tool
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
88 </help>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
89 </param>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
90 <param name="fraction" type="float" value="0.1" max="1" size="10" label="fraction to retrieve after subsampling">
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
91 <help>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
92 Use a real number between 0 and 1 to indicate the relative size of
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
93 the fraction you wish to retrieve
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
94 </help>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
95 </param>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
96 </when>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
97 </conditional>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
98 </inputs>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
99 <outputs>
2
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
100 <data name="outfile" format="bam" label="Filter, slice or sample on ${on_string}">
1
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
101 <change_format>
2
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
102 <when input="sambamba_options['format']" value="sam" format="sam" />
1
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
103 </change_format>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
104 </data>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
105 </outputs>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
106 <tests>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
107 <test>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
108 <param name="input" value="ex1_header.sam" ftype="sam" />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
109 <param name="selector" value="filter" />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
110 <param name="query" value="[H0] == 1 and read_name =~ /^EAS51_62/" />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
111 <param name="format" value="bam" />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
112 <param name="region" value="" />
2
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
113 <output name="outfile" file="ex1_header_filtered.bam" ftype="bam" lines_diff="2"/>
1
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
114 </test>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
115 <test>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
116 <param name="input" value="c1215_fixmate.bam" ftype="bam" />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
117 <param name="selector" value="filter" />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
118 <param name="query" value="[MD] =~ /^\d+T\d+A\d+/ and first_of_pair" />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
119 <param name="format" value="sam" />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
120 <param name="region" value="AL096846:1000-5000" />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
121 <output name="outfile" file="c1215_fixmate_filtered.sam" ftype="sam" lines_diff="2"/>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
122 </test>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
123 <test>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
124 <param name="input" value="c1215_fixmate.bam" ftype="bam" />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
125 <param name="selector" value="filter" />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
126 <param name="query" value='' />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
127 <param name="format" value="sam" />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
128 <param name="region" value="AL096846:1000-5000" />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
129 <output name="outfile" file="c1215_fixmate_region-filtered.sam" ftype="sam" lines_diff="2"/>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
130 </test>
2
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
131 <test>
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
132 <param name="input" value="c1215_fixmate.bam" ftype="bam" />
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
133 <param name="selector" value="slice" />
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
134 <param name="query" value='' />
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
135 <param name="region" value="AL096846:1000-2000 AL096846:4000-5000" />
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
136 <output name="outfile" file="c1215_fixmate_region-sliced.bam" ftype="bam"/>
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
137 </test>
1
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
138 <test>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
139 <param name="input" value="ex1_header.sam" ftype="sam" />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
140 <param name="selector" value="sample" />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
141 <param name="seed" value="123" />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
142 <param name="fraction" value="0.1" />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
143 <param name="format" value="bam" />
2
7ad3484aa5db "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents: 1
diff changeset
144 <output name="outfile" file="ex1_header_sampled.bam" ftype="bam" lines_diff="2"/>
1
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
145 </test>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
146 <test>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
147 <param name="input" value="c1215_fixmate.bam" ftype="bam" />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
148 <param name="selector" value="sample" />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
149 <param name="seed" value="123" />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
150 <param name="fraction" value="0.1" />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
151 <param name="format" value="sam" />
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
152 <output name="outfile" file="c1215_fixmate_sampled.sam" ftype="sam" lines_diff="2"/>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
153 </test>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
154 </tests>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
155 <help>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
156 Sambamba Filter Overview
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
157 ========================
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
158
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
159 This tool uses the sambamba_ ``view`` command to filter BAM/SAM on flags, fields, tags, and region. Input is SAM or BAM file.
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
160
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
161
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
162 Filter Syntax
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
163 =============
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
164
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
165 A *filter expression* is a number of *basic conditions* linked by ``and``, ``or``, ``not`` logical operators, and enclosed in parentheses where needed.
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
166
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
167 *Basic condition* is a one for a single record field, tag, or flag.
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
168
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
169 You can use ``==,`` ``!=,`` ``&gt;``, ``&lt;``, ``&gt;=``, ``&lt;=`` comparison operators for both integers and strings.
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
170
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
171 Strings are delimited by single quotes, if you need a single quote inside a string, escape it with ``\\``.
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
172
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
173 Examples of filter expressions
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
174 ------------------------------
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
175
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
176 ::
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
177
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
178 mapping_quality >= 30 and ([RG] =~ /^abcd/ or [NM] == 7)
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
179 read_name == 'abc\'def'
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
180
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
181 Basic conditions for flags
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
182 --------------------------
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
183
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
184 The following flag names are recognized:
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
185 * paired
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
186 * proper_pair
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
187 * unmapped
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
188 * mate_is_unmapped
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
189 * reverse_strand
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
190 * mate_is_reverse_strand
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
191 * first_of_pair
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
192 * second_of_pair
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
193 * secondary_alignment
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
194 * failed_quality_control
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
195 * duplicate
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
196
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
197 Example
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
198 ~~~~~~~
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
199
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
200 ::
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
201
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
202 not (unmapped or mate_is_unmapped) and first_of_pair
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
203
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
204 Basic conditions for fields
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
205 ---------------------------
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
206
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
207 Conditions for integer and string fields are supported.
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
208
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
209 List of integer fields:
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
210 * ref_id
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
211 * position
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
212 * mapping_quality
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
213 * sequence_length
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
214 * mate_ref_id
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
215 * mate_position
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
216 * template_length
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
217
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
218
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
219 List of string fields:
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
220 * read_name
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
221 * sequence
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
222 * cigar
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
223
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
224
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
225 Example
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
226 ~~~~~~~
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
227
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
228 ::
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
229
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
230 ref_id == 3 and mapping_quality >= 50 and sequence_length >= 80
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
231
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
232 Basic conditions for tags
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
233 -------------------------
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
234
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
235 Tags are denoted by their names in square brackets, for instance, ``[RG]`` or ``[Q2].`` They support conditions for both integers and strings, i.e. the tag must also hold value of the corresponding type.
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
236
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
237 In order to do filtering based on the presence of a particular tag, you can use special ``null`` value.
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
238
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
239 Example
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
240 ~~~~~~~
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
241
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
242 ::
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
243
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
244 [RG] != null and [AM] == 37
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
245
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
246 Down-sampling
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
247 =============
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
248
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
249 The tool is using the following sambamba command line for sampling:
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
250
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
251 ::
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
252
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
253 sambamba view -h -t &lt;number of Galaxy threads configured in job_conf.xml&gt; -f &lt;bam or sam&gt;
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
254 --subsampling-seed=&lt;an integer&gt;
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
255 -s &lt;a real number between 0 and 1&gt; -o &lt;bam or sam output&gt; input_file
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
256
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
257 Warnings
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
258 --------
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
259
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
260 The tool does not down-sample at a user given **number of lines**, because sambamba does not
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
261 expose this functionality. For tool performances, we decided not to add it in this wrapper.
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
262
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
263 If you down-sample a dataset that has been *already down-sampled* with this tool, it is
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
264 important that you choose **another seed** for randomisation. Otherwise, the new subsampling
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
265 was reported not to conform the indicated fraction.
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
266
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
267
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
268 .. _sambamba: http://github.com/lomereiter/sambamba
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
269
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
270 </help>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
271 <citations>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
272 <citation type="doi">10.1093/bioinformatics/btv098</citation>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
273 </citations>
6195f15d4541 "planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff changeset
274 </tool>