Mercurial > repos > artbio > sambamba
annotate sambamba.xml @ 1:6195f15d4541 draft
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
author | artbio |
---|---|
date | Mon, 25 May 2020 17:10:17 -0400 |
parents | |
children | 7ad3484aa5db |
rev | line source |
---|---|
1
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
1 <tool id="sambamba_sample_or_filter" name="Sample or Filter BAM" version="0.6"> |
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 && |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
15 #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
|
16 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
|
17 #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
|
18 --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
|
19 #end if |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
20 -f '$format' -o $outfile input.bam $sambamba_options.region |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
21 #else |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
22 sambamba view -h -t \${GALAXY_SLOTS:-4} -f '$format' |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
23 --subsampling-seed='$sambamba_options.seed' |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
24 -s '$sambamba_options.fraction' -o '$outfile' input.bam |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
25 #end if |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
26 ]]></command> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
27 <inputs> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
28 <param name="input" type="data" format="bam" label="BAM or SAM file to filter"/> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
29 <param name="format" type="select" label="format of the tool output"> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
30 <option value="bam">BAM</option> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
31 <option value="sam">SAM</option> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
32 </param> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
33 <conditional name="sambamba_options"> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
34 <param name="selector" type="select" label="Filter or Down-sample alignments"> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
35 <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
|
36 <option value="filter" selected="true">Filter bam or sam alignements</option> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
37 </param> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
38 <when value="filter"> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
39 <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
|
40 <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
|
41 <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
|
42 <add value=" " /> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
43 </valid> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
44 </sanitizer> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
45 <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
|
46 <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
|
47 </param> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
48 <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
|
49 <help> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
50 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
|
51 (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
|
52 (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
|
53 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
|
54 </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 </when> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
57 <when value="sample"> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
58 <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
|
59 <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
|
60 <help> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
61 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
|
62 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
|
63 </help> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
64 </param> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
65 <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
|
66 <help> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
67 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
|
68 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
|
69 </help> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
70 </param> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
71 </when> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
72 </conditional> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
73 </inputs> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
74 <outputs> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
75 <data name="outfile" format="bam"> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
76 <change_format> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
77 <when input="format" value="sam" format="sam" /> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
78 </change_format> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
79 </data> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
80 </outputs> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
81 <tests> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
82 <test> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
83 <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
|
84 <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
|
85 <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
|
86 <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
|
87 <param name="region" value="" /> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
88 <output name="outfile" file="ex1_header_filtered.bam" ftype="bam" /> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
89 </test> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
90 <test> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
91 <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
|
92 <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
|
93 <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
|
94 <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
|
95 <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
|
96 <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
|
97 </test> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
98 <test> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
99 <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
|
100 <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
|
101 <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
|
102 <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
|
103 <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
|
104 <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
|
105 </test> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
106 <test> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
107 <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
|
108 <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
|
109 <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
|
110 <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
|
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 <output name="outfile" file="ex1_header_sampled.bam" ftype="bam" /> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
113 </test> |
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 <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
|
116 <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
|
117 <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
|
118 <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
|
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 <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
|
121 </test> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
122 </tests> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
123 <help> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
124 Sambamba Filter Overview |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
125 ======================== |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
126 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
127 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
|
128 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
129 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
130 Filter Syntax |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
131 ============= |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
132 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
133 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
|
134 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
135 *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
|
136 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
137 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
|
138 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
139 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
|
140 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
141 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
|
142 ------------------------------ |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
143 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
144 :: |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
145 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
146 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
|
147 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
|
148 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
149 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
|
150 -------------------------- |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
151 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
152 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
|
153 * paired |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
154 * proper_pair |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
155 * unmapped |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
156 * mate_is_unmapped |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
157 * reverse_strand |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
158 * 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
|
159 * first_of_pair |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
160 * second_of_pair |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
161 * secondary_alignment |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
162 * failed_quality_control |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
163 * duplicate |
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 Example |
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 |
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 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
170 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
|
171 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
172 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
|
173 --------------------------- |
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 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
|
176 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
177 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
|
178 * ref_id |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
179 * position |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
180 * mapping_quality |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
181 * sequence_length |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
182 * mate_ref_id |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
183 * mate_position |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
184 * template_length |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
185 |
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 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
|
188 * read_name |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
189 * sequence |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
190 * cigar |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
191 |
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 Example |
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 |
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 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
198 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
|
199 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
200 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
|
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 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
|
204 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
205 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
|
206 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
207 Example |
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 :: |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
211 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
212 [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
|
213 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
214 Down-sampling |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
215 ============= |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
216 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
217 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
|
218 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
219 :: |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
220 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
221 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
|
222 --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
|
223 -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
|
224 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
225 Warnings |
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 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
|
229 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
|
230 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
231 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
|
232 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
|
233 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
|
234 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
235 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
236 .. _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
|
237 |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
238 </help> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
239 <citations> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
240 <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
|
241 </citations> |
6195f15d4541
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/sambamba commit 516e8d55d6d45e6f2266805b78eb25a711621321"
artbio
parents:
diff
changeset
|
242 </tool> |