hasindu2008 / slow5lib

slow5lib is a software library for reading & writing SLOW5 files.
https://hasindu2008.github.io/slow5lib
MIT License
41 stars 4 forks source link

pyslow5: assign s5.header.num_read_groups to readable value #72

Closed Psy-Fer closed 4 months ago

Psy-Fer commented 1 year ago

Currently there isn't a way to know the number of read_groups in a file without either monitoring read_group as you loop or doing a try/except on the get_all_headers(read_group=i) call.

I should create a static value within the API that stores the s5.header.num_read_groups value for the user to know this right after opening the file.

Psy-Fer commented 1 year ago

This was added in https://github.com/hasindu2008/slow5lib/commit/b729ad4b22541d4d87ee551e9ce84a2f0ab014c5