open2c / pairtools

Extract 3D contacts (.pairs) from sequencing alignments
MIT License
104 stars 32 forks source link

new get_header returns remainder of instream #49

Closed sergpolly closed 7 years ago

sergpolly commented 7 years ago

new get_header function is fully compatible with the previous implementation, but instead of returning an iterator for the remaining lines, it returns a file-like object/stream in a text-mode. This is needed to potentially replace existing parsing with pandas parsing and beyond.

golobor commented 7 years ago

this is really, really nice, thank you!