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.