Trying to get times of reads in fail file
I am trying to use the times function on the fail folder created by Metrichor, but I get an error that the 'template' is not found (as seen below). The function works perfectly with the pass reads folder though.
For my most recent R9 run, this got through 369 records in the fail file before running into the error. Can you put support into the times function so it skips error reads and it doesn't stop the function?
=> poretools times fail/ > fail.tsv Traceback (most recent call last): File "/data/weinstocklab/local/Python-2.7.12/bin/poretools", line 11, in <module> sys.exit(main()) File "/data/weinstocklab/local/Python-2.7.12/lib/python2.7/site-packages/poretools/poretools_main.py", line 533, in main args.func(parser, args) File "/data/weinstocklab/local/Python-2.7.12/lib/python2.7/site-packages/poretools/poretools_main.py", line 55, in run_subtool submodule.run(parser, args) File "/data/weinstocklab/local/Python-2.7.12/lib/python2.7/site-packages/poretools/times.py", line 20, in run start_time = fast5.get_start_time() File "/data/weinstocklab/local/Python-2.7.12/lib/python2.7/site-packages/poretools/Fast5File.py", line 541, in get_start_time node = self.find_event_timing_block() File "/data/weinstocklab/local/Python-2.7.12/lib/python2.7/site-packages/poretools/Fast5File.py", line 507, in find_event_timing_block path = fastq_paths[self.version]['template'] % (self.group) KeyError: 'template'
Same issue here. I tried readstats subcommand $ poretools readstats -q <<data_file_directory>> and encountered the same issue as follows:
Traceback (most recent call last):
File "/home/ytanigaw/.local/bin/poretools", line 9, in <module>
load_entry_point('poretools==0.6.0', 'console_scripts', 'poretools')()
File "/home/ytanigaw/.local/lib/python2.7/site-packages/poretools-0.6.0-py2.7.egg/poretools/poretools_main.py", line 533, in main
args.func(parser, args)
File "/home/ytanigaw/.local/lib/python2.7/site-packages/poretools-0.6.0-py2.7.egg/poretools/poretools_main.py", line 55, in run_subtool
submodule.run(parser, args)
File "/home/ytanigaw/.local/lib/python2.7/site-packages/poretools-0.6.0-py2.7.egg/poretools/readstats.py", line 9, in run
start_time = fast5.get_start_time()
File "/home/ytanigaw/.local/lib/python2.7/site-packages/poretools-0.6.0-py2.7.egg/poretools/Fast5File.py", line 541, in get_start_time
node = self.find_event_timing_block()
File "/home/ytanigaw/.local/lib/python2.7/site-packages/poretools-0.6.0-py2.7.egg/poretools/Fast5File.py", line 507, in find_event_timing_block
path = fastq_paths[self.version]['template'] % (self.group)
KeyError: 'template'