Error: reading '/dev/shm/pore-load.ghitty.tmp/LomanLabz_E.coli_MG1655_3311_1_ch495_file5_strand.fast5'
Traceback (most recent call last):
File "pore-load.py", line 176, in ReadFast5Data
rslt.readno = f5.get_read_number()
File "/home/durbrowk/.local/lib/python2.7/site-packages/poretools-0.5.1-py2.7.egg/poretools/Fast5File.py", line 363, in get_read_number
node = self.find_read_number_block()
File "/home/durbrowk/.local/lib/python2.7/site-packages/poretools-0.5.1-py2.7.egg/poretools/Fast5File.py", line 343, in find_read_number_block
newpath = "/" + "/".join(path.path.split("/")[:-1])
AttributeError: 'NoneType' object has no attribute 'path'
I don't mind the error, but perhaps it would be cleaner to catch it inside of poretools and return None for the read number.
It would be nice if there was a documented way to determine if a .fast5 file contains any usable data at all. I currently first use h5py to see if the .fast5 file is actually HDF5 at all (sometimes it's HTML containing an error message), and then I try to pull the data from it using poretools inside of a try block and assume that any error I get is because the file was bad.
By the way, h5dump can't read that file either.
h5dump /dev/shm/pore-load.ghitty.tmp/LomanLabz_E.coli_MG1655_3311_1_ch495_file5_strand.fast5
h5dump error: internal error (file /home/hdftest/snapshots-bin-hdf5_1_8_10/current/tools/h5dump/h5dump.c:line 1539)
HDF5: infinite loop closing library
D,G,T,F,FD,P,FD,P,FD,P,E,E,SL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL,FL