utils

Utility functions for pod5 tools

is_disable_pbar() bool[source]

Check if POD5_PBAR is set returning true if PBAR should be disabled

is_pod5_debug() bool[source]

Check if POD5_DEBUG is set

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.