Skip to content

Commit

Permalink
Add chr1/2 examples + update version
Browse files Browse the repository at this point in the history
  • Loading branch information
karel-brinda committed Feb 26, 2018
1 parent 4dcb6ef commit 44eef16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ Getting started
samsift -i tests/test.bam -f 'random.random()<0.25' -0 'random.seed(42)'
# filtering: keep only alignments of reads specified in tests/qnames.txt
samsift -i tests/test.bam -0 'q=open("tests/qnames.txt").read().splitlines()' -f 'QNAME in q'
# filtering: keep only first 5000 reads from chr1 and 5000 reads from chr2
samsift -i tests/test.bam -0 'c={"chr1":5000,"chr2":5000}' -f 'c[RNAME]>0' -c 'c[RNAME]-=1' -m nonstop-remove
# tagging: add tags 'ln' with sequence length and 'ab' with average base quality
samsift -i tests/test.bam -c 'ln=len(SEQ);ab=1.0*sum(QUALa)/ln'
# tagging: add a tag 'ii' with the number of the current alignment
Expand Down Expand Up @@ -91,7 +93,7 @@ Command-line parameters
.. code-block::
Program: samsift (advanced filtering and tagging of SAM/BAM alignments using Python expressions)
Version: 0.2.4
Version: 0.2.5
Author: Karel Brinda <kbrinda@hsph.harvard.edu>
Usage: samsift.py [-i FILE] [-o FILE] [-f PY_EXPR] [-c PY_CODE] [-m STR]
Expand Down
2 changes: 1 addition & 1 deletion samsift/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION="0.2.4"
VERSION="0.2.5"

0 comments on commit 44eef16

Please sign in to comment.