Skip to content

filter

Tool for subsetting pod5 files into one or more outputs using a list of read ids

filter_pod5

filter_pod5(
    inputs: List[Path],
    output: Path,
    ids: Path,
    missing_ok: bool = False,
    duplicate_ok: bool = False,
    force_overwrite: bool = False,
    recursive: bool = False,
    threads: int = DEFAULT_THREADS,
) -> None

Prepare the pod5 filter mapping and run the repacker

filter_reads

filter_reads(dest: Path, sources: DataFrame, duplicate_ok: bool) -> None

Copy the reads in sources into a new pod5 file at dest

main

main()

pod5 filter main

parse_read_id_targets

parse_read_id_targets(ids: Path, output: Path) -> LazyFrame

Parse the list of read_ids checking all are valid uuids