-
Notifications
You must be signed in to change notification settings - Fork 14
KeyError: "Can't open attribute #23
Description
Hi,
I just tried demultiplexing a run with the following command:
poreplex -i fast5_pass -o demultiplexed --trim-adapter --barcoding --fast5
Which failed due to an unknown error according to the output:
`==== Result Summary ====
BC1 BC2 BC3 BC4 undetermined
Processing failed
- File could not be opened due to unknown error 8554 30492 819 33735 22579
- Signal is too short 0 0 0 0 318
- Signal scaling QC failed 0 0 0 0 3`
Looking at the log files, the following error is coming up for each read:
2020-02-27 18:20:43,004 [signal_analyzer.py:114] (FAL30205_pass_2b4b39c4_108.fast5#0076af39-aa83-4ff6-8a27-ef145447359b) Unhandled exception KeyError: "Can't open attribute (can't locate attribute: 'num_events_template')" Traceback (most recent call last): File "/Users/yan/opt/miniconda3/lib/python3.7/site-packages/poreplex/signal_analyzer.py", line 114, in process siganal.process() File "/Users/yan/opt/miniconda3/lib/python3.7/site-packages/poreplex/signal_analyzer.py", line 259, in process events = self.load_events() File "/Users/yan/opt/miniconda3/lib/python3.7/site-packages/poreplex/signal_analyzer.py", line 315, in load_events events = self.npread.load_fast5_events() File "/Users/yan/opt/miniconda3/lib/python3.7/site-packages/poreplex/signal_loader.py", line 265, in load_fast5_events bcall = self.fast5.get_basecall() File "/Users/yan/opt/miniconda3/lib/python3.7/site-packages/poreplex/fast5_file.py", line 142, in get_basecall summary['num_events'] = int(segattrs['num_events_template']) File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "/Users/yan/opt/miniconda3/lib/python3.7/site-packages/h5py/_hl/attrs.py", line 60, in __getitem__ attr = h5a.open(self._id, self._e(name)) File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "h5py/h5a.pyx", line 77, in h5py.h5a.open KeyError: "Can't open attribute (can't locate attribute: 'num_events_template')"
Any ideas on what went wrong or have oxford changed the fast5 file structure and broke poreplex because of it?