Repository navigation
Description
Tabix is used in genomics as a way to index into large files of deflated blocks, such that individual blocks can be inflated without inflating the entire file.
To support the Tabix use case, we need a way to provide the offsets of deflated blocks within the context of a larger file. The larger file is simply a series of concatenated deflated blocks. We do not need to support anything Tabix specific, just the ability to inflate specific blocks from within a larger file of concatenated blocks. Tabix will provide the offsets, read_text will consume those offsets and be able to deflate the block at that offset. We should also provide the ability to specify a series of blocks to be inflated one after another.
From multibyte_split's perspective, nothing changes. It will continue to call get_next_chunk, which will provide uncompressed bytes. Under the hood, get_next_chunk will be implemented as a data_chunk_source and a new data chunk reader decorator. The data_chunk_source will read the compressed file as usual, but will need to be updated to support random access. The data chunk reader decorator will be given the series of chunk offsets and iterate through them one at a time as required to provide multibyte_split with the requested number of uncompressed bytes. To do this, it will need to deflate and cache each chunk in succession. For deflation, we can probably use the existing gpuinflate code we use for orc, avro, and parquet. For those readers, the blocks are wrapped in metadata. In this case, the metadata comes from the Tabix block offsets. Because we are deflating individual blocks, it is likely not worth waiting for nvcomp's full-file inflate algorithm.
Activity
cwharris commentedon Mar 20, 2022
@randerzander fyi
[-][FEA] Need ability to read Tabix indexed files in read_text[/-][+][FEA] Read Tabix indexed files in read_text[/+]github-actions commentedon Apr 21, 2022
This issue has been labeled
inactive-30ddue to no recent activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be labeledinactive-90dif there is no activity in the next 60 days.Add BGZIP `data_chunk_reader` (#11652)