Pysam is a python module for reading and manipulating files in the SAM/BAM format. The SAM/BAM format is a way to store efficiently large numbers of alignments (Li 2009), such as those routinely are created by next-generation sequencing methods.
pysam lightweight wrapper of the samtools C-API. Pysam also includes an interface for tabix.
The latest version is available through pypi. To install, simply type:
pip install pysam .
Pysam documentation is available through https://readthedocs.org/ from here
Questions and comments are very welcome and should be sent to the pysam user group