read_size: Reads dimension of every matrix in npz file.

Description Usage Arguments Value Examples

Description

Reads dimension of every matrix in npz file.

Usage

1
read_size(path, mtx.names = "all")

Arguments

path

character, string specifying path to npz file

mtx.names

character vector specyfing subset of matrices names to read from npz dict like file; by default all matrices are loaded

Value

matrix where row names are names of matrices from npz file and columns are rows and cols; each cell of the matrix contains number of rows and columns respectively that contact map with given name consits of

Examples

1
2
3
4
# get sample npz file name
mtx.fname <- system.file("extdata", "MSC-HindIII-1_40kb-raw.npz", package = "DIADEM", mustWork = TRUE)
sizes <- read_size(mtx.fname)
print(sizes)

rz6/CopulaHiC documentation built on Dec. 31, 2019, 9:19 a.m.