Description Usage Arguments See Also Examples
This function requires python and numpy.
1 | read_dense(path, mtx.names = "all")
|
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 |
https://www.python.org/ for python, https://www.numpy.org/ for numpy
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.