pysam - a python module for reading, manipulating and writing genomic data sets.
pysam is a lightweight wrapper of the htslib C-API and provides facilities to read and write SAM/BAM/VCF/BCF/BED/GFF/GTF/FASTA/FASTQ files as well as access to the command line functionality of the samtools and bcftools packages. The module supports compression and random access through indexing.
This module provides a low-level wrapper around the htslib C-API as using cython and a high-level API for convenient access to the data within standard genomic file formats.
See:
pip install pysam
pip install pysam==0.9.1
pip install https://github.com/pysam-developers/pysam/archive/master.zip
conda install -c bioconda pysam
REF
https://pypi.org/project/pysam/
https://github.com/pysam-developers/pysam
原文:https://www.cnblogs.com/emanlee/p/13576349.html