Closed antonylebechec closed 1 year ago
pysam.sort()
is really a shorthand for pysam.samtools.sort()
.
There is also pysam.bcftools.sort()
, which is what you're looking for. You'll need to add import pysam.bcftools
too.
Thanks a lot! I'm new in pysam... Great tool!!!
Hi!
I would like to sort a VCF/BCF file, especially before tabix. However, pysam.sort is exclusively for SAM/BAM.
Is there a way to sort a VCF file with pysam?
Thanks a lot!
Best,