Question: what is pysam in python?
Answer: Pysam is a python module for reading, manipulating and writing genomic data sets. Pysam is a 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.