The auto_cpo.fastq.estimate_read_length method may fail with the following error:
Traceback (most recent call last):
File "auto-cpo/bin/auto-cpo", line 33, in <module>
sys.exit(load_entry_point('auto-cpo', 'console_scripts', 'auto-cpo')())
File "auto-cpo/auto_cpo/__main__.py", line 60, in main
core.analyze_run(config, run, "short")
File "auto-cpo/auto_cpo/core.py", line 206, in analyze_run
read_length = fastq.estimate_read_length(fastq.get_first_n_reads(first_fastq, 100))
File "auto-cpo/auto_cpo/fastq.py", line 17, in get_first_n_reads
header = next(f).strip()
StopIteration
The
auto_cpo.fastq.estimate_read_length
method may fail with the following error:https://github.com/BCCDC-PHL/auto-cpo/blob/3a7485c5be1281f23bbb9dc97955fb91dcaf34d8/auto_cpo/fastq.py#L33-L53