So I had problems running nanopolish and decided to build it from the docker image provided at https://quay.io/repository/biocontainers/nanopolish?tab=tags&tag= just to finnaly get it to work. Running nanopolish polya still resulted in an error. So I figured it must be something to do with the nanopolish index and found these errors to confirm it:
#006: H5FDsec2.c line 352 in H5FD__sec2_open(): unable to open file: name = 'results/workspace//FAV19784_a1ccb5ce_052bbeb2_97.fast5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0 major: File accessibility minor: Unable to open file
It turns out running nanopolish index -d path/to/fast5/ -s path/to/sequencing_summary.txt smthn.fastq
Produces this path with double forward slashes that then breaks nanopolish polya even though nanopolish index finishes successfully. Maybe you could somehow check for this in nanopolish index function.
So I had problems running nanopolish and decided to build it from the docker image provided at https://quay.io/repository/biocontainers/nanopolish?tab=tags&tag= just to finnaly get it to work. Running nanopolish polya still resulted in an error. So I figured it must be something to do with the nanopolish index and found these errors to confirm it:
#006: H5FDsec2.c line 352 in H5FD__sec2_open(): unable to open file: name = 'results/workspace//FAV19784_a1ccb5ce_052bbeb2_97.fast5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0 major: File accessibility minor: Unable to open file
It turns out running
nanopolish index -d path/to/fast5/ -s path/to/sequencing_summary.txt smthn.fastq
Produces this path with double forward slashes that then breaks nanopolish polya even though nanopolish index finishes successfully. Maybe you could somehow check for this in nanopolish index function.