View source: R/import_data_from_r_matrices.R
create_odm_from_r_matrix | R Documentation |
odm
object from R matrixcreate_odm_from_r_matrix()
converts an R matrix (stored in standard dense format or sparse format) into an odm
object.
create_odm_from_r_matrix(
mat,
file_to_write,
chunk_size = 1000L,
compression_level = 3L
)
mat |
an R matrix of class |
file_to_write |
a fully-qualified file path specifying the location in which to write the backing |
chunk_size |
(optional; default |
compression_level |
(optional; default |
an odm
object
library(sceptredata)
data(lowmoi_example_data)
gene_matrix <- lowmoi_example_data$response_matrix
file_to_write <- paste0(tempdir(), "/gene.odm")
odm_object <- create_odm_from_r_matrix(
mat = gene_matrix,
file_to_write = file_to_write
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.