save_npz: Saves list with dense matrices to npz compressed file.

Description Usage Arguments Value See Also Examples

Description

Saves list with dense matrices to npz compressed file.

Usage

1
save_npz(mtx.list, path)

Arguments

mtx.list

list containg dense matrices, list should have names

path

character string specifying path together with filename to save matrices

Value

None

See Also

https://docs.scipy.org/doc/numpy-1.15.0/reference/generated/numpy.savez_compressed.html for python numpy method used to save matrices in npz compressed file

Examples

1
2
3
4
5
6
7
8
9
# get sample npz file name
mtx.fname <- system.file("extdata", "MSC-HindIII-1_40kb-raw.npz", package = "DIADEM", mustWork = TRUE)
mtx.dense.sublist <- read_dense(mtx.fname, mtx.names = c("18","19"))
print(names(mtx.dense.sublist))
print(typeof(mtx.dense.sublist))
print(typeof(mtx.dense.sublist[["18"]]))
print(dim(mtx.dense.sublist[["18"]]))
# save
save_npz(mtx.dense.sublist, "example.npz")

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