
Check if the provided directory contains Fast5 files in the correct format
Source:R/ninetails_misc_helper_functions.R
check_fast5_filetype.RdAnalyzes the structure of the first Fast5 file in the given directory and checks whether it fulfills the analysis requirements: the file must be a multi-Fast5, basecalled by Guppy basecaller, and contain the provided basecall group and RNA reads. Otherwise the function throws a descriptive error.
Value
Prints to console: data type (RNA), Fast5 file type (multi-Fast5), basecaller used, basecaller version, and basecalling model. Called for its side effect; returns invisibly.
Acknowledgements
This lookup function is inspired by adnaniazi's
explore-basecaller-and-fast5type.R from tailfindr:
https://github.com/adnaniazi/tailfindr/blob/master/R/explore-basecaller-and-fast5type.R.
See also
is_multifast5 for the multi-Fast5 format check,
is_RNA for the RNA content check,
check_tails_guppy where this function is called during
pipeline initialization