joshuak94 / BAMIntervalTree

BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Write and read the resulting interval tree. #11

Closed joshuak94 closed 3 years ago

joshuak94 commented 3 years ago

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