utils
Utility functions for pod5 tools
- iterate_inputs(input_items: Iterable[Path], recursive: bool, file_pattern: str) Generator[Path, None, None][source]
Returns a generator of file Paths which match the given glob-style file_pattern (e.g. .pod5).
If an input item is a directory this will be globbed (optionally recursively). If the input item is a file then it must also match the given file_pattern.