API

Import PegasusIO to Python environment by:

import pegasusio as io

Read and Write

infer_file_type(input_file)

Infer file format from input_file name This function infer file type by inspecting the file name.

read_input(input_file[, file_type, mode, ...])

Load data into memory.

write_output(data, output_file[, file_type, ...])

Write data back to disk.

aggregate_matrices(csv_file[, restrictions, ...])

Aggregate channel-specific count matrices into one big count matrix.