Pysam is a Python package for reading, manipulating, and writing genomics data such as SAM/BAM/CRAM and VCF/BCF files. It's a lightweight wrapper of the HTSlib API, the same one that powers samtools, bcftools, and tabix.
The enum constants representing CIGAR operations are documented are documented as having names like BAM_CMATCH, BAMCINS etc. But the actual constants in the pysam module are named pysam.CMATCH, pysam.CINS etc, without the BAM prefix.
The enum constants representing CIGAR operations are documented are documented as having names like BAM_CMATCH, BAMCINS etc. But the actual constants in the pysam module are named pysam.CMATCH, pysam.CINS etc, without the BAM prefix.