Mercurial > repos > devteam > bamtools_filter
annotate bamtools-filter.xml @ 15:ab1de07c641b draft default tip
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/bamtools/bamtools_filter commit 8d5ae1d04c43988fdcc458f4f08376a15e72db8e"
author | iuc |
---|---|
date | Thu, 20 Feb 2020 22:22:59 +0000 |
parents | ab0a7a622ff6 |
children |
rev | line source |
---|---|
11
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
1 <tool id="bamFilter" name="Filter" version="2.4.1"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
2 <description>BAM datasets on a variety of attributes</description> |
12
ce5482dfe8bd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/bamtools/bamtools_filter commit 08b8fbdbce3ec7ccc8eb93d8c6b7a5234459cca9
iuc
parents:
11
diff
changeset
|
3 <macros> |
ce5482dfe8bd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/bamtools/bamtools_filter commit 08b8fbdbce3ec7ccc8eb93d8c6b7a5234459cca9
iuc
parents:
11
diff
changeset
|
4 <import>macros.xml</import> |
ce5482dfe8bd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/bamtools/bamtools_filter commit 08b8fbdbce3ec7ccc8eb93d8c6b7a5234459cca9
iuc
parents:
11
diff
changeset
|
5 </macros> |
ce5482dfe8bd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/bamtools/bamtools_filter commit 08b8fbdbce3ec7ccc8eb93d8c6b7a5234459cca9
iuc
parents:
11
diff
changeset
|
6 <expand macro="requirements" /> |
ce5482dfe8bd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/bamtools/bamtools_filter commit 08b8fbdbce3ec7ccc8eb93d8c6b7a5234459cca9
iuc
parents:
11
diff
changeset
|
7 <command detect_errors="exit_code"> |
11
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
8 <![CDATA[ |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
9 cp '$script_file' '$out_file2' && |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
10 ln -s '${input_bam}' localbam.bam && |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
11 ln -s '${input_bam.metadata.bam_index}' localbam.bam.bai && |
14
ab0a7a622ff6
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/bamtools/bamtools_filter commit c72d58cbe6a99bc8f9fde26fdde45b0c222890df
iuc
parents:
13
diff
changeset
|
12 cat '$script_file' && |
11
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
13 bamtools filter -script '$script_file' -in localbam.bam -out '$out_file1' |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
14 ]]> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
15 </command> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
16 <configfiles> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
17 <configfile name="script_file"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
18 <![CDATA[ |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
19 <% import json %> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
20 #set $config = dict() |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
21 #if $conditions: |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
22 #set $config[ 'filters' ] = [] |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
23 #for $i, $condition in enumerate( $conditions, start=1 ): |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
24 #set $filter = dict( id=str( $i ) ) |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
25 #for $j, $s in enumerate( $condition.filters, start=1 ): |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
26 #set $filter[ $str( s[ 'bam_property' ][ 'bam_property_selector' ] ) ] = $str( s[ 'bam_property' ][ 'bam_property_value' ] ) |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
27 #end for |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
28 $(config[ 'filters' ].append( $filter )) |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
29 #end for |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
30 #if str( $rule_configuration.rules_selector ) == "true": |
13
9d8b309a7265
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/bamtools/bamtools_filter commit 36169ce65193faaace8e8b999f83adf0c3d5aeba
iuc
parents:
12
diff
changeset
|
31 #set $config[ 'rule' ] = str( $rule_configuration.rules ) |
11
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
32 #end if |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
33 #end if |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
34 $json.dumps( $config, indent=4 ) |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
35 ]]> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
36 </configfile> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
37 </configfiles> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
38 <inputs> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
39 <param name="input_bam" type="data" format="bam" label="BAM dataset(s) to filter" /> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
40 <repeat name="conditions" title="Condition" min="1"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
41 <repeat name="filters" title="Filter" min="1"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
42 <conditional name="bam_property"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
43 <param name="bam_property_selector" type="select" label="Select BAM property to filter on"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
44 <option value="alignmentFlag"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
45 <option value="cigar"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
46 <option value="insertSize"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
47 <option value="isDuplicate"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
48 <option value="isFailedQC"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
49 <option value="isFirstMate"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
50 <option value="isMapped"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
51 <option value="isMateMapped"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
52 <option value="isMateReverseStrand"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
53 <option value="isPaired"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
54 <option value="isPrimaryAlignment"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
55 <option value="isProperPair"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
56 <option value="isReverseStrand"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
57 <option value="isSecondMate"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
58 <option selected="True" value="mapQuality"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
59 <option value="matePosition"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
60 <option value="mateReference"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
61 <option value="name"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
62 <option value="position"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
63 <option value="queryBases"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
64 <option value="reference"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
65 <option value="tag"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
66 </param> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
67 <!-- would be fanstastic to have AND and OR constructs in when statements --> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
68 <when value="alignmentFlag"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
69 <param name="bam_property_value" type="integer" value="3" label="Filter on this alignment flag" help="Default (3) is for a paired read mapped in a proper pair"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
70 </when> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
71 <when value="cigar"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
72 <param name="bam_property_value" type="text" value="101M" label="Filter on this CIGAR string" help="Default (101M) is for 101 continuously matched bases"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
73 </when> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
74 <when value="insertSize"> |
12
ce5482dfe8bd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/bamtools/bamtools_filter commit 08b8fbdbce3ec7ccc8eb93d8c6b7a5234459cca9
iuc
parents:
11
diff
changeset
|
75 <param name="bam_property_value" type="text" value=">=250" label="Filter on insert size" help="You can use >, <, =, and ! (not) in your expression. E.g., to select pairs with insert size above 250 nt use ">=250""> |
11
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
76 <sanitizer invalid_char=""> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
77 <valid initial="string.letters,string.digits"><add value=">"/><add value="<"/><add value="!="/><add value="-"/></valid> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
78 </sanitizer> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
79 </param> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
80 </when> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
81 <when value="isDuplicate"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
82 <param name="bam_property_value" type="boolean" truevalue="true" falsevalue="false" label="Select reads makwed as duplicates" help="Checked = Read IS Duplicate, Empty = Read is NOT Duplicate" /> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
83 </when> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
84 <when value="isFailedQC"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
85 <param name="bam_property_value" type="boolean" truevalue="true" falsevalue="false" label="Select reads failing QC" help="Checked = Failed QC, Empty = Passed QC"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
86 </when> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
87 <when value="isFirstMate"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
88 <param name="bam_property_value" type="boolean" truevalue="true" falsevalue="false" label="Select first mate in a read pair" help="Checked = is first mate, Empty = is NOT first mate"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
89 </when> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
90 <when value="isMapped"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
91 <param name="bam_property_value" type="boolean" truevalue="true" falsevalue="false" label="Selected mapped reads" help="Checked = Mapped, Empty = NOT mapped"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
92 </when> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
93 <when value="isMateMapped"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
94 <param name="bam_property_value" type="boolean" truevalue="true" falsevalue="false" label="Select reads with mapped mate" help="Checked = Mate IS mapped Empty = Mate is NOT mapped"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
95 </when> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
96 <when value="isMateReverseStrand"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
97 <param name="bam_property_value" type="boolean" truevalue="true" falsevalue="false" label="Select reads with mate on the reverse strand" help="Checked = Mate IS on reverse strand, Empty = Mate is NOT on the reverse strand"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
98 </when> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
99 <when value="isPaired"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
100 <param name="bam_property_value" type="boolean" truevalue="true" falsevalue="false" label="Select paired reads" help="Checked = Read IS paired, Empty = Read is NOT paired"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
101 </when> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
102 <when value="isPrimaryAlignment"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
103 <param name="bam_property_value" type="boolean" truevalue="true" falsevalue="false" label="Select BAM records for primary alignments" help="Checked = Alignment IS primary, Empty = Alignment is NOT primary"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
104 </when> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
105 <when value="isProperPair"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
106 <param name="bam_property_value" type="boolean" truevalue="true" falsevalue="false" label="Select properly paired reads" help="Checked = Read IS in proper pair, Empty = Read is NOT in the proper pair"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
107 </when> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
108 <when value="isReverseStrand"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
109 <param name="bam_property_value" type="boolean" truevalue="true" falsevalue="false" label="Select reads in the reverse strand only" help="Checked = Read IS on the reverse strand, Empty = Read is NOT on the reverse strand"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
110 </when> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
111 <when value="isSecondMate"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
112 <param name="bam_property_value" type="boolean" truevalue="true" falsevalue="false" label="Select second mate in a read pair" help="Checked = Read IS second mate, Empty = Read is NOT second mate"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
113 </when> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
114 <when value="mapQuality"> |
12
ce5482dfe8bd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/bamtools/bamtools_filter commit 08b8fbdbce3ec7ccc8eb93d8c6b7a5234459cca9
iuc
parents:
11
diff
changeset
|
115 <param name="bam_property_value" type="text" value="20" label="Filter on read mapping quality (phred scale)" help="You can use >, <, =, and ! (not) in your expression. E.g., to select reads with mapping quality of at least 30 use ">=30""> |
11
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
116 <sanitizer invalid_char=""> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
117 <valid initial="string.letters,string.digits"><add value=">"/><add value="<"/><add value="!="/></valid> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
118 </sanitizer> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
119 </param> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
120 </when> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
121 <when value="matePosition"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
122 <param name="bam_property_value" type="text" value="1000000" label="Filter on the position of the mate" help="You can use >, <, =, and ! (not) in your expression. E.g., to select reads with mate (second end) mapping after position 1,000,000 use ">1000000""> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
123 <sanitizer invalid_char=""> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
124 <valid initial="string.letters,string.digits"><add value=">"/><add value="<"/><add value="!="/></valid> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
125 </sanitizer> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
126 </param> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
127 </when> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
128 <when value="mateReference"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
129 <param name="bam_property_value" type="text" value="chr22" label="Filter on reference name for the mate" help="You can use = and ! (not) in your expression. E.g., to select reads with mates mapping to chrM use "chr22""> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
130 <sanitizer invalid_char=""> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
131 <valid initial="string.letters,string.digits"><add value=">"/><add value="<"/><add value="!="/></valid> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
132 </sanitizer> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
133 </param> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
134 </when> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
135 <when value="name"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
136 <param name="bam_property_value" type="text" label="Filter on read name" help="You can use = and ! (not) in your expression."> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
137 <sanitizer invalid_char=""> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
138 <valid initial="string.letters,string.digits"><add value=">"/><add value="<"/><add value="!="/></valid> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
139 </sanitizer> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
140 </param> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
141 </when> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
142 <when value="position"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
143 <param name="bam_property_value" type="text" value="500000" label="Filter on the position of the read" help="You can use >, <, =, and ! (not) in your expression. E.g., to select reads mapping after position 5,000 use ">5000""> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
144 <sanitizer invalid_char=""> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
145 <valid initial="string.letters,string.digits"><add value=">"/><add value="<"/><add value="!="/></valid> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
146 </sanitizer> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
147 </param> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
148 </when> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
149 <when value="queryBases"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
150 <param name="bam_property_value" type="text" value="ttagggttagg" label="Filter on a sequence motif" help="You can use ! (not) in your expression"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
151 <sanitizer invalid_char=""> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
152 <valid initial="string.letters,string.digits"><add value=">"/><add value="<"/><add value="!="/></valid> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
153 </sanitizer> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
154 </param> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
155 </when> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
156 <when value="reference"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
157 <param name="bam_property_value" type="text" value="chr22" label="Filter on the reference name for the read" help="You can use ! (not) in your expression"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
158 <sanitizer invalid_char=""> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
159 <valid initial="string.letters,string.digits"><add value=">"/><add value="<"/><add value="!="/></valid> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
160 </sanitizer> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
161 </param> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
162 </when> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
163 <when value="tag"> |
12
ce5482dfe8bd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/bamtools/bamtools_filter commit 08b8fbdbce3ec7ccc8eb93d8c6b7a5234459cca9
iuc
parents:
11
diff
changeset
|
164 <param name="bam_property_value" type="text" value="NM:>1" label="Filter on a particular tag" help="You can use +, -, >, <, =, and ! (not). Tag name and its value must be separated by ":". E.g., to obtain reads with at least one mismatch use "NM:>1""> |
11
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
165 <sanitizer invalid_char=""> |
12
ce5482dfe8bd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/bamtools/bamtools_filter commit 08b8fbdbce3ec7ccc8eb93d8c6b7a5234459cca9
iuc
parents:
11
diff
changeset
|
166 <valid initial="string.letters,string.digits"><add value=">"/><add value="<"/><add value=":!=+-"/></valid> |
11
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
167 </sanitizer> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
168 </param> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
169 </when> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
170 </conditional> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
171 </repeat> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
172 </repeat> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
173 <conditional name="rule_configuration"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
174 <param name="rules_selector" type="boolean" truevalue="true" falsevalue="false" label="Would you like to set rules?" help="Allows complex logical constructs. See Example 4 below." /> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
175 <when value="false"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
176 <when value="true"> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
177 <param name="rules" type="text" label="Enter rules here" help="This option can only be used with at least two conditions. Read help below (Example 4) to understand how it works." > |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
178 <sanitizer invalid_char=""> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
179 <valid initial="string.printable"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
180 </sanitizer> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
181 </param> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
182 </when> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
183 </conditional> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
184 </inputs> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
185 <outputs> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
186 <data format="txt" name="out_file2" label="${tool.name} on ${on_string}: JSON filter rules" /> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
187 <data name="out_file1" format="bam" label="${tool.name} on ${on_string}: Filtered BAM" /> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
188 </outputs> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
189 <tests> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
190 <test> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
191 <param name="input_bam" ftype="bam" value="bamtools-input1.bam"/> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
192 <param name="bam_property_selector" value="mapQuality"/> |
12
ce5482dfe8bd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/bamtools/bamtools_filter commit 08b8fbdbce3ec7ccc8eb93d8c6b7a5234459cca9
iuc
parents:
11
diff
changeset
|
193 <param name="bam_property_value" value=">20"/> |
11
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
194 <output name="out_file1" ftype="bam" file="bamtools-test1.bam" /> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
195 </test> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
196 </tests> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
197 <help> |
12
ce5482dfe8bd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/bamtools/bamtools_filter commit 08b8fbdbce3ec7ccc8eb93d8c6b7a5234459cca9
iuc
parents:
11
diff
changeset
|
198 <![CDATA[ |
11
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
199 **What is does** |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
200 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
201 BAMTools filter is a very powerful utility to perform complex filtering of BAM files. It is based on BAMtools suite of tools by Derek Barnett (https://github.com/pezmaster31/bamtools). |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
202 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
203 ----- |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
204 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
205 **How it works** |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
206 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
207 The tool use logic relies on the three concepts: (1) input BAM, (2) groups, and (3) filters. |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
208 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
209 *Input BAM(s)* |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
210 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
211 The input BAM is self-explanatory. This is the dataset you will be filtering. The tool can accept just one or multiple BAM files. To filter on multiple BAMs just add them by clicking **Add new BAM dataset(s) to filter** |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
212 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
213 *Conditions and Filters* |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
214 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
215 Conditions for filtering BAM files can be arranged in **Groups and Filters**. While it can be confusing at first this is what gives ultimate power to this tools. So try to look at the examples we are supplying below. |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
216 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
217 ----- |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
218 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
219 **Example 1. Using a single filter** |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
220 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
221 When filtering on a single condition there is no need to worry about filters and conditions. Just choose a filter from the **Select BAM property to filter on:** dropdown and enter a value (or click a checkbox for binary filters). |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
222 For example, for retaining reads with mapping quality of at least 20 one would set the tool interface as shown below: |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
223 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
224 .. image:: single-filter.png |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
225 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
226 ----- |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
227 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
228 **Example 2. Using multiple filters** |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
229 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
230 Now suppose one needs to extract reads that (1) have mapping quality of at least 20, (2) contain at least 1 mismatch, and (3) are mapping onto forward strand only. |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
231 To do so we will use three filters as shown below (multiple filters are added to the interface by clicking on the **Add new Filter** button): |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
232 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
233 .. image:: multiple-filters.png |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
234 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
235 In this case (you can see that the three filters are grouped within a single Condition - **Condition 1**) the filter too use logical **AND** to perform filtering. |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
236 In other words only reads that (1) have mapping quality of at least 20 **AND** (2) contain at least 1 mismatch **AND** are mapping onto forward strand will be returned in this example. |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
237 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
238 ----- |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
239 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
240 **Example 3. Complex filtering with multiple conditions** |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
241 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
242 Suppose now you would like to select **either** reads that (**1**) have (*1.1*) no mismatches and (*1.2*) are on the forward strand **OR** (**2**) reads that have (*2.1*) |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
243 at least one mismatch and (*2.2*) are on the reverse strand. In this scenario we have to set up two conditions: (**1**) and (**2**) each with two filters: *1.1* and *1.2* as well as *2.1* and *2.2*. |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
244 The following screenshot expalins how this can be done: |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
245 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
246 .. image:: complex-filters.png |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
247 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
248 ----- |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
249 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
250 **Example 4. Even more complex filtering with Rules** |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
251 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
252 In the above example we have used two conditions (Condition 1 and Condition 2). Using multiple conditions allows to combine them and a variety of ways to enable even more powerful filtering. |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
253 For example, suppose get all reads that (**1**) do NOT map to mitochondria and either (**2**) have mapping quality over 20, or (**3**) are in properly mapped pairs. The logical rule to enable such |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
254 filtering will look like this:: |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
255 |
12
ce5482dfe8bd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/bamtools/bamtools_filter commit 08b8fbdbce3ec7ccc8eb93d8c6b7a5234459cca9
iuc
parents:
11
diff
changeset
|
256 !(1) & (2 | 3) |
11
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
257 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
258 Here, numbers 1, 2, and 3 represent conditions. The following screenshot illustrates how to do this in Galaxy: |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
259 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
260 .. image:: rule.png |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
261 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
262 There are three conditions here, each with a single filter. A text entry area that can be opened by clicking on the **Would you like to set rules?** checkbox enables you to enter a rule. |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
263 Here numbers correspond to numbers of conditions as they are shown in the interface. E.g., 1 corresponds to condition 1, 2 to condition 2 and so on... In human language this means:: |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
264 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
265 NOT condition 1 AND (condition 2 OR condition 3) |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
266 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
267 ----- |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
268 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
269 **JSON script file** |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
270 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
271 This tool produces two outputs. One of the them is a BAM file containing filtered reads. The other is a JSONified script. It can help you to see how your instructions are sent to BAMTools. |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
272 For instance, the example 4 looks like this in the JSON form:: |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
273 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
274 { |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
275 "filters": |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
276 [ |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
277 { "id": "1", |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
278 "tag":"NM:=0", |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
279 "isReverseStrand":"false" |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
280 }, |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
281 { "id": "2", |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
282 "tag":"NM:>0", |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
283 "isReverseStrand":"true" |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
284 } |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
285 ] |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
286 } |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
287 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
288 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
289 ----- |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
290 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
291 **More information** |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
292 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
293 .. class:: infomark |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
294 |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
295 Additional information about BAMtools can be found at https://github.com/pezmaster31/bamtools/wiki |
12
ce5482dfe8bd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/bamtools/bamtools_filter commit 08b8fbdbce3ec7ccc8eb93d8c6b7a5234459cca9
iuc
parents:
11
diff
changeset
|
296 ]]> |
11
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
297 </help> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
298 <citations> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
299 <citation type="doi">10.1093/bioinformatics/btr174</citation> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
300 </citations> |
6fae66d050a7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 53f2eeca99efda354323295a0ebfb5e7f21f2fd4
devteam
parents:
10
diff
changeset
|
301 </tool> |