pysam-developers / pysam

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.
https://pysam.readthedocs.io/en/latest/
MIT License
773 stars 274 forks source link

fix(libcalignmentfile.pyi): update IteratorColumn with missing import + correct _iter_ object #1296

Open mshunjan opened 1 month ago

mshunjan commented 1 month ago

According to the v0.22.1 docs, you can iterate over data in a SAM file using the pileup method, which should return an IteratorColumn PileupColumn. However, it instead returns an Iterator AlignedSegment. This is due to a missing import for the PileupColumn and an incorrect iter call.