Pysam is a Python module for reading and manipulating SAM/BAM/VCF/BCF files. It's a lightweight wrapper of the htslib C-API, the same one that powers samtools, bcftools, and tabix.
C Python Makefile Groff C++ Shell Other
Latest commit c244e99 Dec 19, 2016 @AndreasHeger AndreasHeger committed on GitHub Merge pull request #385 from bioinformed/more-bcf-fixes
More bcf fixes
Permalink
Failed to load latest commit information.
bcftools Fix spelling/grammar issues found using Debian QA tools Jul 24, 2016
benchmark {AH} move flagstat scripts to benchmark dir Aug 22, 2016
ci Merge pull request #234 from kyleabeauchamp/osx2 Feb 28, 2016
doc {AH} update release notes Jun 14, 2016
htslib {AH} upgrade to htslib 1.3.2 Nov 5, 2016
pysam Merge pull request #385 from bioinformed/more-bcf-fixes Dec 19, 2016
samtools {AH} remap stdout to file Jun 6, 2016
save Fix various spelling errors Jun 10, 2015
tests Improve callable proxy object Dec 11, 2016
win32 moved windows-specific includes into win32 folder Feb 28, 2011
.gitignore add missing configure scripts to MANIFEST.in Feb 1, 2016
.travis.yml Don't use sudo in travis, possibly enabling container infrastructure Oct 28, 2016
AUTHORS added text about cbcf.pyx Feb 15, 2015
COPYING fixed distribution Oct 16, 2009
INSTALL Update INSTALL Jun 15, 2016
MANIFEST.in {AH} add htslib_vars.mk to tarball Jul 18, 2016
README.rst Cleanup link Jun 19, 2016
buildwheels.sh Script for building manylinux1 wheels Nov 15, 2016
cy_build.py Fix Python 3 build on Darwin Dec 11, 2016
import.py {AH} remap stdout to file Jun 6, 2016
pysam.py removed byte strings Nov 8, 2014
requirements.txt Update to use official @property syntax, since the old Cython syntax … Sep 1, 2016
run_tests_travis.sh {AH} turn of confirmation query for conda remove Oct 31, 2016
setup.py Issue #316, #360: Rename all Cython modules to have lib as a prefix Oct 27, 2016

README.rst

Pysam

build status Documentation Status

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 created by next-generation sequencing methods.

Pysam is a 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

If you are using the conda packaging manager (e.g. miniconda or anaconda), you can install pysam from the bioconda channel:

conda config --add channels r

conda config --add channels bioconda

conda 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