To celebrate the release of GATK 4.0, we are giving away free credits for running the GATK4 Best Practices pipelines in FireCloud, our secure online analysis portal. It’s first come first serve, so sign up now to claim your free credits worth $250. Sponsored by Google Cloud. Learn more at

Can I use htsjdk Java plugin to return a byte range of a requested chromosome on a .bam/.sam file?

I've read through this documentation:

From my very rough understanding, the index file requests information from the .bam file by using requesting the bin.

I'm attempting to request a partial file from Google Drive, the only way I can do this is to tell the Drive api a byte range that I want. Is there anything in the htsjdk library that can provide this? Is there any way that I can get a bin number, and somehow get a byte range from that?


Sign In or Register to comment.