annotate bamtools-filter.xml @ 10:4089f1be1a71 draft

planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
author devteam
date Wed, 18 Jan 2017 11:46:59 -0500
parents c20a4a4acf3f
children 6fae66d050a7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
1 <tool id="bamFilter" name="Filter" version="2.4.0">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
2 <description>BAM datasets on a variety of attributes</description>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
3 <requirements>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
4 <requirement type="package" version="2.4.0">bamtools</requirement>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
5 </requirements>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
6 <command>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
7 <![CDATA[
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
8 cat $script_file > $out_file2;
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
9 #for $bam_count, $input_bam in enumerate( $input_bams ):
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
10 ln -s "${input_bam}" "localbam_${bam_count}.bam" &&
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
11 ln -s "${input_bam.metadata.bam_index}" "localbam_${bam_count}.bam.bai" &&
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
12 #end for
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
13 bamtools
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
14 filter
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
15 -script $script_file
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
16 #for $bam_count, $input_bam in enumerate( $input_bams ):
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
17 -in "localbam_${bam_count}.bam"
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
18 #end for
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
19 -out $out_file1
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
20 ]]>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
21 </command>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
22 <configfiles>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
23 <configfile name="script_file">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
24 ##Sets up a json configfile for bamtools filter
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
25 ##If there is more than one condition prints brackets and "filters:"
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
26 #if len( $conditions ) > 1
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
27 {
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
28 "filters":
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
29 [
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
30 #end if
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
31 #for $i, $c in enumerate( $conditions, start=1 )
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
32 { "id": "$i",
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
33 #for $j, $s in enumerate( $c.filters, start=1 )
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
34 ##The if below takes care of the comma at the end of last condition within group
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
35 #if $j != len( $c.filters)
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
36 "${s.bam_property.bam_property_selector}":"${s.bam_property.bam_property_value}",
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
37 #else
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
38 "${s.bam_property.bam_property_selector}":"${s.bam_property.bam_property_value}"
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
39 #end if
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
40 #end for
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
41 ##The if below takes care of the comma at the end of last condition within group
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
42 #if $i != len( $conditions )
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
43 },
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
44 #else
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
45 }
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
46 #end if
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
47 #end for
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
48 #if len( $conditions ) > 1
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
49 #if str( $rule_configuration.rules_selector ) == "True":
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
50 ],
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
51 "rule" : "${rule_configuration.rules}"
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
52 #else
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
53 ]
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
54 #end if
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
55 }
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
56 #end if
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
57 </configfile>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
58 </configfiles>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
59 <inputs>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
60 <param name="input_bams" type="data" format="bam" label="BAM dataset(s) to filter" min="1" multiple="True"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
61 <repeat name="conditions" title="Condition" min="1">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
62 <repeat name="filters" title="Filter" min="1">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
63 <conditional name="bam_property">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
64 <param name="bam_property_selector" type="select" label="Select BAM property to filter on">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
65 <option value="alignmentFlag"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
66 <option value="cigar"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
67 <option value="insertSize"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
68 <option value="isDuplicate"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
69 <option value="isFailedQC"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
70 <option value="isFirstMate"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
71 <option value="isMapped"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
72 <option value="isMateMapped"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
73 <option value="isMateReverseStrand"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
74 <option value="isPaired"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
75 <option value="isPrimaryAlignment"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
76 <option value="isProperPair"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
77 <option value="isReverseStrand"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
78 <option value="isSecondMate"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
79 <option selected="True" value="mapQuality"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
80 <option value="matePosition"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
81 <option value="mateReference"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
82 <option value="name"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
83 <option value="position"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
84 <option value="queryBases"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
85 <option value="reference"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
86 <option value="tag"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
87 </param>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
88 <!-- would be fanstastic to have AND and OR constructs in when statements -->
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
89 <when value="alignmentFlag">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
90 <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"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
91 </when>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
92 <when value="cigar">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
93 <param name="bam_property_value" type="text" value="101M" label="Filter on this CIGAR string" help="Default (101M) is for 101 continuously matched bases"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
94 </when>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
95 <when value="insertSize">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
96 <param name="bam_property_value" type="text" value=">=250" label="Filter on insert size" help="You can use &gt;, &lt;, =, and ! (not) in your expression. E.g., to select pairs with insert size above 250 nt use &quot;>=250&quot;">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
97 <sanitizer invalid_char="">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
98 <valid initial="string.letters,string.digits"><add value="&gt;"/><add value="&lt;"/><add value="!="/><add value="-"/></valid>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
99 </sanitizer>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
100 </param>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
101 </when>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
102 <when value="isDuplicate">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
103 <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" />
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
104 </when>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
105 <when value="isFailedQC">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
106 <param name="bam_property_value" type="boolean" truevalue="true" falsevalue="false" label="Select reads failing QC" help="Checked = Failed QC, Empty = Passed QC"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
107 </when>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
108 <when value="isFirstMate">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
109 <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"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
110 </when>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
111 <when value="isMapped">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
112 <param name="bam_property_value" type="boolean" truevalue="true" falsevalue="false" label="Selected mapped reads" help="Checked = Mapped, Empty = NOT mapped"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
113 </when>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
114 <when value="isMateMapped">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
115 <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"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
116 </when>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
117 <when value="isMateReverseStrand">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
118 <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"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
119 </when>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
120 <when value="isPaired">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
121 <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"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
122 </when>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
123 <when value="isPrimaryAlignment">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
124 <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"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
125 </when>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
126 <when value="isProperPair">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
127 <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"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
128 </when>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
129 <when value="isReverseStrand">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
130 <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"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
131 </when>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
132 <when value="isSecondMate">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
133 <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"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
134 </when>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
135 <when value="mapQuality">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
136 <param name="bam_property_value" type="text" value="20" label="Filter on read mapping quality (phred scale)" help="You can use &gt;, &lt;, =, and ! (not) in your expression. E.g., to select reads with mapping quality of at least 30 use &quot;>=30&quot;">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
137 <sanitizer invalid_char="">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
138 <valid initial="string.letters,string.digits"><add value="&gt;"/><add value="&lt;"/><add value="!="/></valid>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
139 </sanitizer>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
140 </param>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
141 </when>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
142 <when value="matePosition">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
143 <param name="bam_property_value" type="text" value="1000000" label="Filter on the position of the mate" help="You can use &gt;, &lt;, =, and ! (not) in your expression. E.g., to select reads with mate (second end) mapping after position 1,000,000 use &quot;&gt;1000000&quot;">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
144 <sanitizer invalid_char="">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
145 <valid initial="string.letters,string.digits"><add value="&gt;"/><add value="&lt;"/><add value="!="/></valid>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
146 </sanitizer>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
147 </param>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
148 </when>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
149 <when value="mateReference">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
150 <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 &quot;chr22&quot;">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
151 <sanitizer invalid_char="">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
152 <valid initial="string.letters,string.digits"><add value="&gt;"/><add value="&lt;"/><add value="!="/></valid>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
153 </sanitizer>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
154 </param>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
155 </when>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
156 <when value="name">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
157 <param name="bam_property_value" type="text" label="Filter on read name" help="You can use = and ! (not) in your expression.">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
158 <sanitizer invalid_char="">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
159 <valid initial="string.letters,string.digits"><add value="&gt;"/><add value="&lt;"/><add value="!="/></valid>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
160 </sanitizer>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
161 </param>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
162 </when>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
163 <when value="position">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
164 <param name="bam_property_value" type="text" value="500000" label="Filter on the position of the read" help="You can use &gt;, &lt;, =, and ! (not) in your expression. E.g., to select reads mapping after position 5,000 use &quot;&gt;5000&quot;">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
165 <sanitizer invalid_char="">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
166 <valid initial="string.letters,string.digits"><add value="&gt;"/><add value="&lt;"/><add value="!="/></valid>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
167 </sanitizer>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
168 </param>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
169 </when>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
170 <when value="queryBases">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
171 <param name="bam_property_value" type="text" value="ttagggttagg" label="Filter on a sequence motif" help="You can use ! (not) in your expression">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
172 <sanitizer invalid_char="">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
173 <valid initial="string.letters,string.digits"><add value="&gt;"/><add value="&lt;"/><add value="!="/></valid>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
174 </sanitizer>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
175 </param>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
176 </when>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
177 <when value="reference">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
178 <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">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
179 <sanitizer invalid_char="">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
180 <valid initial="string.letters,string.digits"><add value="&gt;"/><add value="&lt;"/><add value="!="/></valid>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
181 </sanitizer>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
182 </param>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
183 </when>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
184 <when value="tag">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
185 <param name="bam_property_value" type="text" value="NM:&gt;1" label="Filter on a particular tag" help="You can use &gt;, &lt;, =, and ! (not). Tag name and its value must be separated by &quot;:&quot;. E.g., to obtain reads with at least one mismatch use &quot;NM:&gt;1&quot;">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
186 <sanitizer invalid_char="">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
187 <valid initial="string.letters,string.digits"><add value="&gt;"/><add value="&lt;"/><add value=":!="/></valid>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
188 </sanitizer>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
189 </param>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
190 </when>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
191 </conditional>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
192 </repeat>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
193 </repeat>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
194 <conditional name="rule_configuration">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
195 <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." />
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
196 <when value="false"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
197 <when value="true">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
198 <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." >
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
199 <sanitizer invalid_char="">
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
200 <valid initial="string.printable"/>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
201 </sanitizer>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
202 </param>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
203 </when>
0
db10554eaad9 Uploaded
devteam
parents:
diff changeset
204 </conditional>
10
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
205 </inputs>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
206 <outputs>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
207 <data format="txt" name="out_file2" />
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
208 <data format="bam" name="out_file1" />
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
209 </outputs>
0
db10554eaad9 Uploaded
devteam
parents:
diff changeset
210 <tests>
db10554eaad9 Uploaded
devteam
parents:
diff changeset
211 <test>
9
c20a4a4acf3f planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents: 8
diff changeset
212 <param name="input_bams" ftype="bam" value="bamtools-input1.bam"/>
0
db10554eaad9 Uploaded
devteam
parents:
diff changeset
213 <param name="bam_property_selector" value="mapQuality"/>
db10554eaad9 Uploaded
devteam
parents:
diff changeset
214 <param name="bam_property_value" value=">20"/>
9
c20a4a4acf3f planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents: 8
diff changeset
215 <output name="out_file1" file="bamtools-test1.bam" ftype="bam"/>
0
db10554eaad9 Uploaded
devteam
parents:
diff changeset
216 </test>
db10554eaad9 Uploaded
devteam
parents:
diff changeset
217 </tests>
10
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
218 <help>
0
db10554eaad9 Uploaded
devteam
parents:
diff changeset
219 **What is does**
db10554eaad9 Uploaded
devteam
parents:
diff changeset
220
db10554eaad9 Uploaded
devteam
parents:
diff changeset
221 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).
db10554eaad9 Uploaded
devteam
parents:
diff changeset
222
db10554eaad9 Uploaded
devteam
parents:
diff changeset
223 -----
db10554eaad9 Uploaded
devteam
parents:
diff changeset
224
db10554eaad9 Uploaded
devteam
parents:
diff changeset
225 **How it works**
db10554eaad9 Uploaded
devteam
parents:
diff changeset
226
db10554eaad9 Uploaded
devteam
parents:
diff changeset
227 The tool use logic relies on the three concepts: (1) input BAM, (2) groups, and (3) filters.
db10554eaad9 Uploaded
devteam
parents:
diff changeset
228
db10554eaad9 Uploaded
devteam
parents:
diff changeset
229 *Input BAM(s)*
db10554eaad9 Uploaded
devteam
parents:
diff changeset
230
db10554eaad9 Uploaded
devteam
parents:
diff changeset
231 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**
db10554eaad9 Uploaded
devteam
parents:
diff changeset
232
db10554eaad9 Uploaded
devteam
parents:
diff changeset
233 *Conditions and Filters*
db10554eaad9 Uploaded
devteam
parents:
diff changeset
234
db10554eaad9 Uploaded
devteam
parents:
diff changeset
235 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.
db10554eaad9 Uploaded
devteam
parents:
diff changeset
236
db10554eaad9 Uploaded
devteam
parents:
diff changeset
237 -----
db10554eaad9 Uploaded
devteam
parents:
diff changeset
238
db10554eaad9 Uploaded
devteam
parents:
diff changeset
239 **Example 1. Using a single filter**
db10554eaad9 Uploaded
devteam
parents:
diff changeset
240
db10554eaad9 Uploaded
devteam
parents:
diff changeset
241 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).
db10554eaad9 Uploaded
devteam
parents:
diff changeset
242 For example, for retaining reads with mapping quality of at least 20 one would set the tool interface as shown below:
db10554eaad9 Uploaded
devteam
parents:
diff changeset
243
5
23a1c1f66b47 planemo upload commit 5ad726dc73203a704666033cd3bf70b82575978f-dirty
devteam
parents: 4
diff changeset
244 .. image:: single-filter.png
0
db10554eaad9 Uploaded
devteam
parents:
diff changeset
245
db10554eaad9 Uploaded
devteam
parents:
diff changeset
246 -----
db10554eaad9 Uploaded
devteam
parents:
diff changeset
247
db10554eaad9 Uploaded
devteam
parents:
diff changeset
248 **Example 2. Using multiple filters**
db10554eaad9 Uploaded
devteam
parents:
diff changeset
249
db10554eaad9 Uploaded
devteam
parents:
diff changeset
250 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.
db10554eaad9 Uploaded
devteam
parents:
diff changeset
251 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):
db10554eaad9 Uploaded
devteam
parents:
diff changeset
252
5
23a1c1f66b47 planemo upload commit 5ad726dc73203a704666033cd3bf70b82575978f-dirty
devteam
parents: 4
diff changeset
253 .. image:: multiple-filters.png
0
db10554eaad9 Uploaded
devteam
parents:
diff changeset
254
db10554eaad9 Uploaded
devteam
parents:
diff changeset
255 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.
db10554eaad9 Uploaded
devteam
parents:
diff changeset
256 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.
db10554eaad9 Uploaded
devteam
parents:
diff changeset
257
db10554eaad9 Uploaded
devteam
parents:
diff changeset
258 -----
db10554eaad9 Uploaded
devteam
parents:
diff changeset
259
db10554eaad9 Uploaded
devteam
parents:
diff changeset
260 **Example 3. Complex filtering with multiple conditions**
db10554eaad9 Uploaded
devteam
parents:
diff changeset
261
9
c20a4a4acf3f planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents: 8
diff changeset
262 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*)
c20a4a4acf3f planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents: 8
diff changeset
263 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*.
0
db10554eaad9 Uploaded
devteam
parents:
diff changeset
264 The following screenshot expalins how this can be done:
db10554eaad9 Uploaded
devteam
parents:
diff changeset
265
5
23a1c1f66b47 planemo upload commit 5ad726dc73203a704666033cd3bf70b82575978f-dirty
devteam
parents: 4
diff changeset
266 .. image:: complex-filters.png
0
db10554eaad9 Uploaded
devteam
parents:
diff changeset
267
db10554eaad9 Uploaded
devteam
parents:
diff changeset
268 -----
db10554eaad9 Uploaded
devteam
parents:
diff changeset
269
db10554eaad9 Uploaded
devteam
parents:
diff changeset
270 **Example 4. Even more complex filtering with Rules**
db10554eaad9 Uploaded
devteam
parents:
diff changeset
271
db10554eaad9 Uploaded
devteam
parents:
diff changeset
272 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.
db10554eaad9 Uploaded
devteam
parents:
diff changeset
273 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
db10554eaad9 Uploaded
devteam
parents:
diff changeset
274 filtering will look like this::
db10554eaad9 Uploaded
devteam
parents:
diff changeset
275
db10554eaad9 Uploaded
devteam
parents:
diff changeset
276 !(1) &amp; (2 | 3)
9
c20a4a4acf3f planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit 5a4e0ca9992af3a6e5ed2b533f04bb82ce761e0b
devteam
parents: 8
diff changeset
277
0
db10554eaad9 Uploaded
devteam
parents:
diff changeset
278 Here, numbers 1, 2, and 3 represent conditions. The following screenshot illustrates how to do this in Galaxy:
db10554eaad9 Uploaded
devteam
parents:
diff changeset
279
5
23a1c1f66b47 planemo upload commit 5ad726dc73203a704666033cd3bf70b82575978f-dirty
devteam
parents: 4
diff changeset
280 .. image:: rule.png
0
db10554eaad9 Uploaded
devteam
parents:
diff changeset
281
db10554eaad9 Uploaded
devteam
parents:
diff changeset
282 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.
db10554eaad9 Uploaded
devteam
parents:
diff changeset
283 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::
db10554eaad9 Uploaded
devteam
parents:
diff changeset
284
db10554eaad9 Uploaded
devteam
parents:
diff changeset
285 NOT condition 1 AND (condition 2 OR condition 3)
db10554eaad9 Uploaded
devteam
parents:
diff changeset
286
db10554eaad9 Uploaded
devteam
parents:
diff changeset
287 -----
db10554eaad9 Uploaded
devteam
parents:
diff changeset
288
db10554eaad9 Uploaded
devteam
parents:
diff changeset
289 **JSON script file**
db10554eaad9 Uploaded
devteam
parents:
diff changeset
290
db10554eaad9 Uploaded
devteam
parents:
diff changeset
291 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.
db10554eaad9 Uploaded
devteam
parents:
diff changeset
292 For instance, the example 4 looks like this in the JSON form::
db10554eaad9 Uploaded
devteam
parents:
diff changeset
293
db10554eaad9 Uploaded
devteam
parents:
diff changeset
294 {
db10554eaad9 Uploaded
devteam
parents:
diff changeset
295 "filters":
db10554eaad9 Uploaded
devteam
parents:
diff changeset
296 [
db10554eaad9 Uploaded
devteam
parents:
diff changeset
297 { "id": "1",
db10554eaad9 Uploaded
devteam
parents:
diff changeset
298 "tag":"NM:=0",
db10554eaad9 Uploaded
devteam
parents:
diff changeset
299 "isReverseStrand":"false"
db10554eaad9 Uploaded
devteam
parents:
diff changeset
300 },
db10554eaad9 Uploaded
devteam
parents:
diff changeset
301 { "id": "2",
db10554eaad9 Uploaded
devteam
parents:
diff changeset
302 "tag":"NM:>0",
db10554eaad9 Uploaded
devteam
parents:
diff changeset
303 "isReverseStrand":"true"
db10554eaad9 Uploaded
devteam
parents:
diff changeset
304 }
db10554eaad9 Uploaded
devteam
parents:
diff changeset
305 ]
db10554eaad9 Uploaded
devteam
parents:
diff changeset
306 }
1
5e2fe70292a7 planemo upload commit 5ad726dc73203a704666033cd3bf70b82575978f-dirty
devteam
parents: 0
diff changeset
307
0
db10554eaad9 Uploaded
devteam
parents:
diff changeset
308
db10554eaad9 Uploaded
devteam
parents:
diff changeset
309 -----
db10554eaad9 Uploaded
devteam
parents:
diff changeset
310
db10554eaad9 Uploaded
devteam
parents:
diff changeset
311 **More information**
db10554eaad9 Uploaded
devteam
parents:
diff changeset
312
db10554eaad9 Uploaded
devteam
parents:
diff changeset
313 .. class:: infomark
db10554eaad9 Uploaded
devteam
parents:
diff changeset
314
db10554eaad9 Uploaded
devteam
parents:
diff changeset
315 Additional information about BAMtools can be found at https://github.com/pezmaster31/bamtools/wiki
db10554eaad9 Uploaded
devteam
parents:
diff changeset
316
db10554eaad9 Uploaded
devteam
parents:
diff changeset
317
10
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
318 </help>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
319 <citations>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
320 <citation type="doi">10.1093/bioinformatics/btr174</citation>
4089f1be1a71 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/bamtools/bamtools_filter commit ddee21fa767f3234a4e5a9acfeeabdded32e7d01
devteam
parents: 9
diff changeset
321 </citations>
0
db10554eaad9 Uploaded
devteam
parents:
diff changeset
322 </tool>