Open rulixxx opened 2 years ago
Are you able to open a PR with seqid === nothing
and contribute some unit tests? If there were a hotfix for this issue, it would get merged into the v0.1 branch.
Regarding the return type, I suspect the motivation for the current behaviour was to adopt Base's iterator interface and other finding patterns. This return behaviour could be revisited for v0.3 after we get CodecBGZF up and running.
Currently looking up a chromosome not found in the index of a file croaks with an error in
Indexes.overlapchunks
becauseseqid
has a value ofNothing
. Error is not captured with if condition:Suggest to change handling of this situation altogether. In a situation where the chromosome is not found in the tabix.name function should return an empty list of chunks. This would be useful when handling sex chromosomes in a more natural way (just like tabix utility does).