# HG changeset patch # User Jim Johnson # Date 1364831836 18000 # Node ID f2e4e81f3639c7d3c4d47b141f380d7dba67e1f1 # Parent 5dcbce4f597165df0642c439646e7bcc5246bce5 Add tool_dependencies.xml and test-data diff -r 5dcbce4f5971 -r f2e4e81f3639 README --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README Mon Apr 01 10:57:16 2013 -0500 @@ -0,0 +1,29 @@ +**What it does** + +This tool uses the samtools view command in SAMTools toolkit to filter a SAM or BAM file on the MAPQ (mapping quality), FLAG bits, Read Group, Library, or region. + +**Input** + +Input is either a SAM or BAM file. + +**Output** + +The output file will be of the same format a the Input file, filtered by the selected options. + +**Options** + +Filtering by read group or library requires headers in the input SAM or BAM file. + +If regions are specified, only alignments overlapping the specified regions will be output. An alignment may be given multiple times if it is overlapping several regions. +A region can be presented, for example, in the following format + + chr2 (the whole chr2) + chr2:1000000 (region starting from 1,000,000bp) + chr2:1,000,000-2,000,000 (region between 1,000,000 and 2,000,000bp including the end points). + +Note: The coordinate is 1-based. + +Multiple regions may be specified, separated by a space character + + chr2:1000000-2000000 chr2:1,000,000-2,000,000 chrX + diff -r 5dcbce4f5971 -r f2e4e81f3639 samtools_filter.xml --- a/samtools_filter.xml Fri Mar 30 16:36:54 2012 -0400 +++ b/samtools_filter.xml Mon Apr 01 10:57:16 2013 -0500 @@ -1,7 +1,7 @@ - + files on FLAG MAPQ RG LN or by region - samtools + samtools