Mercurial > repos > artbio > sambamba
annotate sambamba.xml @ 3:de833cc76a8e draft default tip
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
author | artbio |
---|---|
date | Thu, 30 Dec 2021 17:44:31 +0000 |
parents | 7ad3484aa5db |
children |
rev | line source |
---|---|
3
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
1 <tool id="sambamba_sample_or_filter" name="Sample, Slice or Filter BAM" version="0.7.1+galaxy1"> |
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>&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 |
3
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
29 #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
|
30 |
3
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
31 #if $sambamba_options.selector == 'slice' |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
32 #if $sambamba_options.slice.slice_format == 'text' |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
33 sambamba slice -o '$outfile' input.bam $sambamba_options.slice.region |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
34 #else |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
35 sambamba slice --regions $sambamba_options.slice.bed_file -o '$outfile' input.bam |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
36 #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
|
37 #end if |
1
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
38 ]]></command> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
39 <inputs> |
2
7ad3484aa5db
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents:
1
diff
changeset
|
40 <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
|
41 <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
|
42 <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
|
43 <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
|
44 <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
|
45 <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
|
46 </param> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
47 <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
|
48 <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
|
49 <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
|
50 <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
|
51 </param> |
1
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
52 <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
|
53 <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
|
54 <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
|
55 <add value=" " /> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
56 </valid> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
57 </sanitizer> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
58 <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
|
59 <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
|
60 </param> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
61 <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
|
62 <help> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
63 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
|
64 (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
|
65 (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
|
66 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
|
67 </help> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
68 </param> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
69 </when> |
2
7ad3484aa5db
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents:
1
diff
changeset
|
70 |
7ad3484aa5db
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents:
1
diff
changeset
|
71 <when value="slice"> |
3
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
72 <conditional name="slice"> |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
73 <param name="slice_format" type="select" label="specify in text field or a bed file"> |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
74 <option value="text">Specify in the region field</option> |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
75 <option value="bed" selected="true">BED file</option> |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
76 </param> |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
77 <when value="bed"> |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
78 <param name="bed_file" type="data" format="bed" label="BED file" |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
79 help="The coordinates are 0-based. NOTE that sambamba slice only outputs BAM-format datasets."/> |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
80 </when> |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
81 <when value="text"> |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
82 <param name="region" type="text" size="40" label="Region(s) in space-separated format chr:start-end"> |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
83 <help> |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
84 Regions can be specified as 'chr2' (the whole chr2), 'chr2:1000000' |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
85 (region starting from 1,000,000bp) or 'chr2:1,000,000-2,000,000' |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
86 (region between 1,000,000 and 2,000,000bp including the end points). |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
87 The coordinates are 1-based. NOTE that sambamba slice only outputs |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
88 BAM-format datasets. |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
89 </help> |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
90 </param> |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
91 </when> |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
92 </conditional> |
2
7ad3484aa5db
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents:
1
diff
changeset
|
93 </when> |
7ad3484aa5db
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents:
1
diff
changeset
|
94 |
1
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
95 <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
|
96 <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
|
97 <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
|
98 <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
|
99 </param> |
1
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
100 <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
|
101 <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
|
102 <help> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
103 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
|
104 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
|
105 </help> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
106 </param> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
107 <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
|
108 <help> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
109 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
|
110 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
|
111 </help> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
112 </param> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
113 </when> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
114 </conditional> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
115 </inputs> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
116 <outputs> |
2
7ad3484aa5db
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents:
1
diff
changeset
|
117 <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
|
118 <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
|
119 <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
|
120 </change_format> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
121 </data> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
122 </outputs> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
123 <tests> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
124 <test> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
125 <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
|
126 <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
|
127 <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
|
128 <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
|
129 <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
|
130 <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
|
131 </test> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
132 <test> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
133 <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
|
134 <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
|
135 <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
|
136 <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
|
137 <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
|
138 <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
|
139 </test> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
140 <test> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
141 <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
|
142 <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
|
143 <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
|
144 <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
|
145 <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
|
146 <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
|
147 </test> |
2
7ad3484aa5db
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents:
1
diff
changeset
|
148 <test> |
7ad3484aa5db
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents:
1
diff
changeset
|
149 <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
|
150 <param name="selector" value="slice" /> |
3
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
151 <param name="slice_format" value="text" /> |
2
7ad3484aa5db
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit ea1ce99d707fcf2d64f6f2cd96fdd1754f344df1"
artbio
parents:
1
diff
changeset
|
152 <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
|
153 <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
|
154 <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
|
155 </test> |
3
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
156 <test> |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
157 <param name="input" value="c1215_fixmate.bam" ftype="bam" /> |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
158 <param name="selector" value="slice" /> |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
159 <param name="slice_format" value="bed" /> |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
160 <param name="query" value='' /> |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
161 <param name="bed_file" value="regions.bed" /> |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
162 <output name="outfile" file="c1215_fixmate_region-sliced.bam" ftype="bam"/> |
de833cc76a8e
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 1b6bff4ab8aaac8a247f603648f63bbadb02e1fe"
artbio
parents:
2
diff
changeset
|
163 </test> |
1
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
164 <test> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
165 <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
|
166 <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
|
167 <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
|
168 <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
|
169 <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
|
170 <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
|
171 </test> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
172 <test> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
173 <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
|
174 <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
|
175 <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
|
176 <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
|
177 <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
|
178 <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
|
179 </test> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
180 </tests> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
181 <help> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
182 Sambamba Filter Overview |
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 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
185 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
|
186 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
187 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
188 Filter Syntax |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
189 ============= |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
190 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
191 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
|
192 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
193 *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
|
194 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
195 You can use ``==,`` ``!=,`` ``>``, ``<``, ``>=``, ``<=`` 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
|
196 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
197 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
|
198 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
199 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
|
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 :: |
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 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
|
205 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
|
206 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
207 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
|
208 -------------------------- |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
209 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
210 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
|
211 * paired |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
212 * proper_pair |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
213 * unmapped |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
214 * mate_is_unmapped |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
215 * reverse_strand |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
216 * 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
|
217 * first_of_pair |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
218 * second_of_pair |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
219 * secondary_alignment |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
220 * failed_quality_control |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
221 * duplicate |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
222 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
223 Example |
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 |
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 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
|
229 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
230 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
|
231 --------------------------- |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
232 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
233 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
|
234 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
235 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
|
236 * ref_id |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
237 * position |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
238 * mapping_quality |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
239 * sequence_length |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
240 * mate_ref_id |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
241 * mate_position |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
242 * template_length |
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 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
245 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
|
246 * read_name |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
247 * sequence |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
248 * cigar |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
249 |
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 Example |
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 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
254 :: |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
255 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
256 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
|
257 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
258 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
|
259 ------------------------- |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
260 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
261 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
|
262 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
263 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
|
264 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
265 Example |
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 :: |
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 [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
|
271 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
272 Down-sampling |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
273 ============= |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
274 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
275 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
|
276 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
277 :: |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
278 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
279 sambamba view -h -t <number of Galaxy threads configured in job_conf.xml> -f <bam or sam> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
280 --subsampling-seed=<an integer> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
281 -s <a real number between 0 and 1> -o <bam or sam output> input_file |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
282 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
283 Warnings |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
284 -------- |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
285 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
286 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
|
287 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
|
288 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
289 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
|
290 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
|
291 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
|
292 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
293 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
294 .. _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
|
295 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
296 </help> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
297 <citations> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
298 <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
|
299 </citations> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
300 </tool> |