When I read a bam file with pysam I get a lot of these warnings...
[W::hts_idx_load2] The index file is older than the data file: /path/to/bam.bai
I know the solution is to update the bam index but this data is on a cloud server that I have no read write access on. Also I'm querying thousands of bam files. A more practical solution would be to suppress this warning. Is there something I can set in pysam that would get rid of these?
or just
if you are sure that the bai is the correct index.