File: pysam_test_stdin.py

package info (click to toggle)
python-pysam 0.10.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 14,196 kB
  • ctags: 10,087
  • sloc: ansic: 79,627; python: 8,569; sh: 282; makefile: 215; perl: 41
file content (10 lines) | stat: -rw-r--r-- 210 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
# usage: cat pysam_ex1.bam | python pysam_test_stdin.pyx

import pysam

samfile = pysam.Samfile( "-", "rb" )

# set up the modifying iterators
l = list(samfile.fetch( until_eof = True ))
assert len(l) == 3270