HTSJDK SamLocusIterator / SamReader pass bamindex file
I don't know if it's the right place to ask this question but I'm developing some small stuff with the HTSJDK package and need to somehow tell SamLocusIterator/SamReaderFactory where it can find the BAM-index file. For now the file has to be in the same folder and the filetype needs to be ".bai".
Is there a possibility to pass an individual location of the index file which I maybe missed?
Thanks in advance.