deeptools / pyBigWig

A python extension for quick access to bigWig and bigBed files
MIT License
216 stars 48 forks source link

Open bw file for appending? #118

Closed tncowart closed 3 years ago

tncowart commented 3 years ago

I'd like to open an existing bigWig file and write new data to it without deleting the old data, but looking through the code I see that it's not supported. Is there a technical reason for this?

Thank you!

dpryan79 commented 3 years ago

The format itself doesn't allow appending, unfortunately. The format is structured such that there are blocks of internal indices that would have to grow if you appended to a file, but they would then start overwriting data.

tncowart commented 3 years ago

Ah, bummer. Thank you for answering my question!