Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

KeyError: "Can't open attribute #23

@690645258

Description

@690645258

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions