Skip to the content.

Commands and Options

COMMANDS

fast5toslow5 (or f2s)

slow5tools fast5toslow5 [OPTIONS] fast5_dir1 -d output_dir
slow5tools fast5toslow5 [OPTIONS] fast5_dir1 fast5_dir2 ... -d output_dir
slow5tools fast5toslow5 [OPTIONS] file1.fast5 file2.fast5 ... -d output_dir
slow5tools fast5toslow5 [OPTIONS] file.fast5 -o output.blow5
slow5tools fast5toslow5 [OPTIONS] file.fast5 -o output.slow5

Converts FAST5 files to SLOW5/BLOW5 format. The input can be a single FAST5 file, a list of FAST5 files, a directory containing multiple FAST5 files, or a list of directories. If a directory is provided, the tool recursively searches within for FAST5 files (.fast5 extension) and converts them to SLOW5/BLOW5. For each multi-FAST5 file in the input directories, a SLOW5/BLOW5 file with the same file name will be created inside the output directory (specified with -d). If single-FAST5 files are provided as input, a single SLOW5/BLOW5 file will be created for each process used during conversion (specified with -p).

Note: it is not recommended to run f2s on a mixture of both multi-FAST5 and single-FAST5 files in a single command.

merge

slow5tools merge [OPTIONS] file1.blow5 file2.blow5  -o output.blow5
slow5tools merge [OPTIONS] blow5_dir1  -o output.blow5
slow5tools merge [OPTIONS] blow5_dir1 blow5_dir2  -o output.blow5

Merges multiple SLOW5/BLOW5 files to a single file. The input can be a list of SLOW5/BLOW5 files, a directory containing multiple SLOW5/BLOW5 files, or a list of directories. If a directory is provided, the tool recursively searches within for SLOW5/BLOW5 files (.slow5/blow5 extension) and merges their contents. If multiple samples (different run ids) are detected, the header and the read_group field will be modified accordingly, with each run id assigned a separate read_group.

cat

slow5tools cat file1.blow5 file2.blow5  -o output.blow5
slow5tools cat blow5_dir1 -o output.blow5

Quickly concatenate SLOW5/BLOW5 files of same type (same header, extension, compression). Note: This subtool is is much faster than merge, but performs minimal input validation. Use with caution.

index

slow5tools index file1.blow5

Creates an index for a SLOW5/BLOW5 file. Input file can be in SLOW5 ASCII or SLOW5 binary (BLOW5) and can be compressed or uncompressed.

view

View the contents of a SLOW5/BLOW5 file. This tool is also used to convert between ASCII SLOW5 and binary BLOW5 formats, or between compressed and uncompressed BLOW5 files.

slow5tools view [OPTIONS] file.blow5

get

Retrieves records for specified read IDs from a SLOW5/BLOW5 file.

slow5tools get [OPTIONS] file1.blow5 readid1 readid2 ....
slow5tools get [OPTIONS] file1.blow5 --list readids.txt

split

slow5tools split [OPTIONS] file1.blow5 -d out_dir
slow5tools split [OPTIONS] blow5_dir1 -d out_dir

Splits a single a SLOW5/BLOW5 file into multiple separate files. This tool is useful for parallelising across array jobs / distributed systems.

slow5tofast5 (or s2f)

slow5tools slow5tofast5 [OPTIONS] file1.blow5 -o output.fast5
slow5tools slow5tofast5 [OPTIONS] blow5_dir1 -d fast5_dir
slow5tools slow5tofast5 [OPTIONS] file1.blow5 file2.blow5 ... -d fast5_dir
slow5tools slow5tofast5 [OPTIONS] blow5_dir1 blow5_dir2 ... -d fast5_dir

Converts SLOW5/BLOW5 files to FAST5 format. The input can be a list of SLOW5/BLOW5 files, a directory containing multiple SLOW5/BLOW5 files, or a list of directories. If a directory is provided, the tool recursively searches within for SLOW5/BLOW5 files (.slow5/blow5 extension) and converts them to FAST5. Note: Before converting a SLOW5 file having multiple read groups, split the file into groups using split.

stats

slow5tools stats file1.slow5/file1.blow5 slow5tools stats

Prints summary statistics describing a SLOW5/BLOW5 file such as:

If no argument is given, details about slow5tools is printed.

quickcheck

Performs a quick check if a SLOW5/BLOW5 file is intact: checks if the file begins with a valid header (SLOW5 or BLOW5), attempt to decode the first SLOW5 record and then seeks to the end of the file and checks if proper EOF exists (BLOW5 only). If the file is intact, the commands exits with 0. Otherwise it exits with a non-zero error code.

skim

Skims through components in a SLOW5/BLOW5 file requested by user (using options) and prints to standard out. If no options are provided, all the SLOW5 fields except the raw signal will be printed to standard out. enum data types are printed as strings. This subprogramme is available form slow5tools v0.7.0 onwards.

slow5tools skim [OPTIONS] file.blow5

degrade

Irreversibly degrade and convert a SLOW5/BLOW5 file. This tool is equivalent to view except that it first degrades the data using the chosen lossy compression algorithm.

slow5tools degrade [OPTIONS] file.blow5

See below for documentation on degrade-specific options. For documentation on all other options see the view subtool.

GLOBAL OPTIONS