read_dense: Reads given npz file and returns list with dense matrices.

Description Usage Arguments See Also Examples

Description

This function requires python and numpy.

Usage

1
read_dense(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

See Also

https://www.python.org/ for python, https://www.numpy.org/ for numpy

Examples

1
2
3
4
5
# get sample npz file name
mtx.fname <- system.file("extdata", "MSC-HindIII-1_40kb-raw.npz", package = "DIADEM", mustWork = TRUE)
mtx.dense.list <- read_dense(mtx.fname) # reads all chromosomes
# limiting number of chromosomes
mtx.dense.sublist <- read_dense(mtx.fname, mtx.names = c("18","19")) # only read chromosome 18 and 19

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