nanoporetech / ont_fast5_api

Oxford Nanopore Technologies fast5 API software
Other
145 stars 28 forks source link

read_id does not exists in single fast5 reads #31

Closed usamec closed 4 years ago

usamec commented 4 years ago

Following example from README:

with get_fast5_file(fast5_filepath, mode="r") as f5:
        for read in f5.get_reads():
            raw_data = read.get_raw_data()
            print(read.read_id, raw_data)

I get an error AttributeError: 'Fast5File' object has no attribute 'read_id'

Turns out get_read_id() is correct way in both cases.

fbrennen commented 4 years ago

Hi @usamec -- thanks very much for that; it's not clear how it slipped into the documentation, but we have an update coming that should make it work the way it's described.

davidnewman02 commented 4 years ago

This has been fixed in v3.0