Ideally, the constructed interval tree can be written to and read from a (binary) file.
This can probably be done efficiently via Cereal?
The original idea was to use pseudobins available in the bam index, but this might not work because a lot of programs might expect exactly 1 pseudobin per reference sequence.
Space considerations:
Records need to store start (int32_t), end (int32_t), ref_id (int32_t) and
Ideally, the constructed interval tree can be written to and read from a (binary) file.
This can probably be done efficiently via Cereal?
The original idea was to use pseudobins available in the bam index, but this might not work because a lot of programs might expect exactly 1 pseudobin per reference sequence.
Space considerations: Records need to store start (int32_t), end (int32_t), ref_id (int32_t) and