Description Usage Arguments Value See Also Examples
Reads npz file with matrices and converts them sparse matrices.
1 |
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 |
sparse.format |
logical if FALSE then this function is equivalent to |
list with matrices in sparse format
dense2sparse
for conversion of dense matrix to sparse format, read_dense
on reading npz files
1 2 3 4 | # get sample npz file name
mtx.fname <- system.file("extdata", "MSC-HindIII-1_40kb-raw.npz", package = "DIADEM", mustWork = TRUE)
mtx.sparse.list <- read_npz(mtx.fname) # reads all chromosomes
mtx.sparse.sublist <- read_npz(mtx.fname, mtx.names = c("18","19")) # only read chromosome 18 and 19
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.