Thanks a lot for bringing that to my attention! I actually tried it before and didn't work but it totally works now. I guess it didn't work before because of other parts of my code. Thanks again!
Is there equivalent of bgzip in Python?
Hello,
I want to use bgzip in Python and index it with tabix. I figured out tabix part with pysam.tabix_index but I don't know how to create gz file. I've tried gzip module from Python itself but pysam.tabix_index was unhappy about it.
Does anyone know how to do it?
• 5,475 views
•
link
2 answers
If you're already using pysam anyway, the function you are looking for is pysam.tabix_compress.
• 0 views
•
link
• 0 views
•
link
Log in to answer this question.