annotate samtool_filter2.xml @ 17:3263a2b5d9f0 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
author iuc
date Wed, 06 Jun 2018 18:43:15 -0400
parents 160964255888
children a201937caf2e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
1 <tool id="samtool_filter2" name="Filter SAM or BAM, output SAM or BAM" version="1.8">
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
2 <description>files on FLAG MAPQ RG LN or by region</description>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
3 <requirements>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
4 <requirement type="package" version="1.8">samtools</requirement>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
5 </requirements>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
6 <command detect_errors="exit_code"><![CDATA[
7
5b175699dd41 Uploaded
devteam
parents:
diff changeset
7 ##set up input files, regions requires input.bam and input.bai
15
1ea3b8a4c2fe planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/samtool_filter2 commit 94a7407227beb0139c49d92c7f922499dc7f0cd1
devteam
parents: 14
diff changeset
8 #if $input1.is_of_type('bam')
17
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
9 #set $input = 'input.bam'
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
10 ln -s '$input1' $input &&
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
11 ln -s '$input1.metadata.bam_index' input.bai &&
15
1ea3b8a4c2fe planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/samtool_filter2 commit 94a7407227beb0139c49d92c7f922499dc7f0cd1
devteam
parents: 14
diff changeset
12 #elif $input1.is_of_type('sam')
17
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
13 #set $input = 'input.sam'
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
14 ln -s '$input1' $input &&
7
5b175699dd41 Uploaded
devteam
parents:
diff changeset
15 #end if
17
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
16 samtools view
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
17 $possibly_select_inverse '$output1'
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
18 $header
12
543405859e60 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 11
diff changeset
19
17
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
20 #if $input1.is_of_type('sam')
7
5b175699dd41 Uploaded
devteam
parents:
diff changeset
21 -S
17
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
22 #end if
7
5b175699dd41 Uploaded
devteam
parents:
diff changeset
23
17
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
24 #if str($outputtype) == 'bam'
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
25 -b
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
26 #end if
12
543405859e60 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 11
diff changeset
27
17
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
28 #if str($mapq)
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
29 -q $mapq
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
30 #end if
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
31 #if $flag.filter == 'yes'
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
32 #if str($flag.reqBits) != 'None'
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
33 #set $reqs = str($flag.reqBits).split(',')
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
34 #set $reqFlag = 0
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
35 #for $xn in $reqs:
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
36 #set $reqFlag += int($xn, 16)
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
37 #end for
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
38 -f $hex($reqFlag)
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
39 #end if
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
40 #if str($flag.skipBits) != 'None'
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
41 #set $skips = str($flag.skipBits).split(',')
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
42 #set $skipFlag = 0
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
43 #for $xn in $skips:
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
44 #set $skipFlag += int(xn,16)
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
45 #end for
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
46 -F $hex($skipFlag)
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
47 #end if
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
48 #end if
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
49 #if str($read_group).strip()
15
1ea3b8a4c2fe planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/samtool_filter2 commit 94a7407227beb0139c49d92c7f922499dc7f0cd1
devteam
parents: 14
diff changeset
50 -r '$read_group'
17
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
51 #end if
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
52 #if str($library).strip()
15
1ea3b8a4c2fe planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/samtool_filter2 commit 94a7407227beb0139c49d92c7f922499dc7f0cd1
devteam
parents: 14
diff changeset
53 -l '$library'
17
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
54 #end if
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
55 #if $bed_file
15
1ea3b8a4c2fe planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/samtool_filter2 commit 94a7407227beb0139c49d92c7f922499dc7f0cd1
devteam
parents: 14
diff changeset
56 -L '$bed_file'
17
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
57 #end if
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
58 $input
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
59 #if str($regions).strip() and $input1.is_of_type('bam')
16
160964255888 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/samtool_filter2 commit a97efd3ee05c6e27ff8294f66ea975445966d9c4
devteam
parents: 15
diff changeset
60 #for region in str($regions).split():
17
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
61 '$region'
16
160964255888 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/samtool_filter2 commit a97efd3ee05c6e27ff8294f66ea975445966d9c4
devteam
parents: 15
diff changeset
62 #end for
17
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
63 #end if
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
64 ]]></command>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
65 <inputs>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
66 <param name="input1" type="data" format="sam,bam" label="SAM or BAM file to filter" />
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
67 <param name="header" type="select" label="Header in output">
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
68 <option value="-h">Include header</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
69 <option value="">Exclude header</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
70 <option value="-H">Only the header</option>
7
5b175699dd41 Uploaded
devteam
parents:
diff changeset
71 </param>
17
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
72 <param name="mapq" type="integer" min="0" value="" optional="true" label="Minimum MAPQ quality score" help="(-q)" />
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
73 <conditional name="flag">
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
74 <param name="filter" type="select" label="Filter on bitwise flag">
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
75 <option value="no">no</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
76 <option value="yes">yes</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
77 </param>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
78 <when value="no"/>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
79 <when value="yes">
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
80 <param name="reqBits" type="select" multiple="true" display="checkboxes" label="Only output alignments with all of these flag bits set" help="(-f)">
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
81 <option value="0x0001">Read is paired</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
82 <option value="0x0002">Read is mapped in a proper pair</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
83 <option value="0x0004">The read is unmapped</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
84 <option value="0x0008">The mate is unmapped</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
85 <option value="0x0010">Read strand</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
86 <option value="0x0020">Mate strand</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
87 <option value="0x0040">Read is the first in a pair</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
88 <option value="0x0080">Read is the second in a pair</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
89 <option value="0x0100">The alignment or this read is not primary</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
90 <option value="0x0200">The read fails platform/vendor quality checks</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
91 <option value="0x0400">The read is a PCR or optical duplicate</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
92 <option value="0x0800">Supplementary alignment</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
93 </param>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
94 <param name="skipBits" type="select" multiple="true" display="checkboxes" label="Skip alignments with any of these flag bits set" help="(-F)">
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
95 <option value="0x0001">Read is paired</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
96 <option value="0x0002">Read is mapped in a proper pair</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
97 <option value="0x0004">The read is unmapped</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
98 <option value="0x0008">The mate is unmapped</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
99 <option value="0x0010">Read strand</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
100 <option value="0x0020">Mate strand</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
101 <option value="0x0040">Read is the first in a pair</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
102 <option value="0x0080">Read is the second in a pair</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
103 <option value="0x0100">The alignment or this read is not primary</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
104 <option value="0x0200">The read fails platform/vendor quality checks</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
105 <option value="0x0400">The read is a PCR or optical duplicate</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
106 <option value="0x0800">Supplementary alignment</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
107 </param>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
108 </when>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
109 </conditional>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
110 <param name="library" type="text" value="" label="Select alignments from Library"
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
111 help="(-l) Requires headers in the input SAM or BAM, otherwise no alignments will be output"/>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
112 <param name="read_group" type="text" value="" label="Select alignments from Read Group"
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
113 help="(-r) Requires headers in the input SAM or BAM, otherwise no alignments will be output"/>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
114 <param name="bed_file" type="data" format="bed" optional="true" label="Output alignments overlapping the regions in the BED file" help="(-L)"/>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
115 <param name="possibly_select_inverse" type="boolean" truevalue="-U" falsevalue="-o" checked="false" label="Use inverse selection" help="Select the opposite of the listed chromosomes" />
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
116 <param name="regions" type="text" value="" label="Select regions (only used when the input is in BAM format)"
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
117 help="region should be presented in one of the following formats: `chr1', `chr2:1,000' and `chr3:1000-2,000'"/>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
118 <param name="outputtype" type="select" label="Select the output format">
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
119 <option value="bam">BAM (-b)</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
120 <option value="sam">SAM</option>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
121 </param>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
122 </inputs>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
123 <outputs>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
124 <data name="output1" format="sam" label="${tool.name} on ${on_string}: ${outputtype}">
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
125 <change_format>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
126 <when input="outputtype" value="bam" format="bam" />
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
127 </change_format>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
128 </data>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
129 </outputs>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
130 <tests>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
131 <test>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
132 <param name="input1" value="bam_to_sam_in2.sam" ftype="sam" />
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
133 <param name="header" value=""/>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
134 <param name="filter" value="yes"/>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
135 <param name="reqBits" value="0x0080"/>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
136 <param name="outputtype" value="sam"/>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
137 <output name="output1">
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
138 <assert_contents>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
139 <has_text text="141" />
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
140 <not_has_text text="77" />
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
141 </assert_contents>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
142 </output>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
143 </test>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
144 <test>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
145 <param name="input1" value="bam_to_sam_in2.sam" ftype="sam" />
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
146 <param name="header" value=""/>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
147 <param name="filter" value="no"/>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
148 <param name="read_group" value="rg1"/>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
149 <param name="outputtype" value="sam"/>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
150 <output name="output1">
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
151 <assert_contents>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
152 <has_text text="rg1" />
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
153 <not_has_text text="rg2" />
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
154 </assert_contents>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
155 </output>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
156 </test>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
157 <test>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
158 <param name="input1" value="bam_to_sam_in1.sam" ftype="sam" />
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
159 <param name="header" value=""/>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
160 <param name="filter" value="yes"/>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
161 <param name="skipBits" value="0x0008"/>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
162 <param name="mapq" value="250"/>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
163 <param name="outputtype" value="sam"/>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
164 <output name="output1">
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
165 <assert_contents>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
166 <has_text text="both_reads_align_clip_marked" />
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
167 <not_has_text text="both_reads_present_only_first_aligns" />
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
168 </assert_contents>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
169 </output>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
170 </test>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
171 </tests>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
172 <help><![CDATA[
7
5b175699dd41 Uploaded
devteam
parents:
diff changeset
173 **What it does**
5b175699dd41 Uploaded
devteam
parents:
diff changeset
174
12
543405859e60 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 11
diff changeset
175 This tool uses the samtools view command in SAMtools_ toolkit to filter a SAM or BAM file on the MAPQ (mapping quality), FLAG bits, Read Group, Library, or region.
7
5b175699dd41 Uploaded
devteam
parents:
diff changeset
176
5b175699dd41 Uploaded
devteam
parents:
diff changeset
177 **Input**
5b175699dd41 Uploaded
devteam
parents:
diff changeset
178
5b175699dd41 Uploaded
devteam
parents:
diff changeset
179 Input is either a SAM or BAM file.
5b175699dd41 Uploaded
devteam
parents:
diff changeset
180
5b175699dd41 Uploaded
devteam
parents:
diff changeset
181 **Output**
5b175699dd41 Uploaded
devteam
parents:
diff changeset
182
5b175699dd41 Uploaded
devteam
parents:
diff changeset
183 The output file will be SAM or BAM (depending on the chosen option), filtered by the selected options.
5b175699dd41 Uploaded
devteam
parents:
diff changeset
184
5b175699dd41 Uploaded
devteam
parents:
diff changeset
185 **Options**
5b175699dd41 Uploaded
devteam
parents:
diff changeset
186
12
543405859e60 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 11
diff changeset
187 Filtering by read group or library requires headers in the input SAM or BAM file.
7
5b175699dd41 Uploaded
devteam
parents:
diff changeset
188
12
543405859e60 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 11
diff changeset
189 If regions are specified, only alignments overlapping the specified regions will be output. An alignment may be given multiple times if it is overlapping several regions.
7
5b175699dd41 Uploaded
devteam
parents:
diff changeset
190 A region can be presented, for example, in the following format::
5b175699dd41 Uploaded
devteam
parents:
diff changeset
191
5b175699dd41 Uploaded
devteam
parents:
diff changeset
192 chr2 (the whole chr2)
12
543405859e60 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 11
diff changeset
193 chr2:1000000 (region starting from 1,000,000bp)
543405859e60 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 11
diff changeset
194 chr2:1,000,000-2,000,000 (region between 1,000,000 and 2,000,000bp including the end points).
7
5b175699dd41 Uploaded
devteam
parents:
diff changeset
195
5b175699dd41 Uploaded
devteam
parents:
diff changeset
196 Note: The coordinate is 1-based.
5b175699dd41 Uploaded
devteam
parents:
diff changeset
197
5b175699dd41 Uploaded
devteam
parents:
diff changeset
198 Multiple regions may be specified, separated by a space character::
5b175699dd41 Uploaded
devteam
parents:
diff changeset
199
5b175699dd41 Uploaded
devteam
parents:
diff changeset
200 chr2:1000000-2000000 chr2:1,000,000-2,000,000 chrX
5b175699dd41 Uploaded
devteam
parents:
diff changeset
201
15
1ea3b8a4c2fe planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/samtool_filter2 commit 94a7407227beb0139c49d92c7f922499dc7f0cd1
devteam
parents: 14
diff changeset
202 .. _SAMtools: http://www.htslib.org/
17
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
203 ]]></help>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
204 <citations>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
205 <citation type="doi">10.1093/bioinformatics/btp352</citation>
3263a2b5d9f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/samtool_filter2 commit 24d5defd0880276f60d3d2f6abed9a00fa57eb0e
iuc
parents: 16
diff changeset
206 </citations>
7
5b175699dd41 Uploaded
devteam
parents:
diff changeset
207 </tool>