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.
If you are using the "get_query_sequences" function from the "pileupcolumn" class, you cannot display the output in the Samtools mpileup format if you select all boolean options to be true.
I think this is an issue with the following part of the function call (line 3091)
if mark_matches and self.reference_sequence != NULL:
From what I can tell, the pileupcolumn class does not have the self.reference_sequence as a defined property.
a small snippet of code that shows this error is the following:
If you are using the "get_query_sequences" function from the "pileupcolumn" class, you cannot display the output in the Samtools mpileup format if you select all boolean options to be true.
I think this is an issue with the following part of the function call (line 3091) if mark_matches and self.reference_sequence != NULL:
From what I can tell, the pileupcolumn class does not have the self.reference_sequence as a defined property.
a small snippet of code that shows this error is the following:
The final two lines will produce the exact same output.