blachlylab / dhtslib

D bindings and OOP wrappers for htslib
MIT License
7 stars 1 forks source link

Bai index warning sometimes unnecessary #100

Closed charlesgregory closed 3 years ago

charlesgregory commented 3 years ago

This warning is reported anytime a SAMReader is opened on a sam file or a bam file without an index. We should consider only retrieving an index when the query methods are used. So that this error is not issued when a index is not being used.

[E::idx_find_and_load] Could not retrieve index file for 'test.bam'
jblachly commented 3 years ago

agree; plus it should be a warning not an error