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.
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 theget_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.