Skip to content

Bug in scanTabix #8

@timoast

Description

@timoast

Hi,

I came across a bug in scanTabix where no data is returned when requesting regions on double-digit chromosomes (ie >chr9). This only appears to be an issue on Windows and when the tabix file is above a certain size.

Here is a tabix file and index that will reproduce the issue. Apologies for the huge file, I tried a downsampling but the bug only seems to occur with the larger file.

Reproducible example:

library(Rsamtools)
library(GenomicRanges)
library(IRanges)

tbx.file <- "fragments.tsv.gz"
range.chr14 <- GRanges(seqnames = 'chr14', ranges = IRanges(start = 99635624, end = 99737861))
tbx <- TabixFile(file = tbx.file)
scanTabix(file = tbx, param = range.chr14)

This code will return data on macOS or linux but an empty vector on windows (I tested on Windows 7 with R 3.6.1 and the current version of Rsamtools).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions