[,odm,ANY,missing,missing-method | R Documentation |
odm
object into memoryThe operator [
loads a specified row of an odm
object into memory. The odm
object can be indexed either by integer or feature ID.
## S4 method for signature 'odm,ANY,missing,missing'
x[i, j, drop]
x |
an object of class |
i |
the index of the row to load into memory. |
j |
not used |
drop |
not used |
an expression vector (of class numeric
)
library(sceptredata)
directories_to_load <- paste0(
system.file("extdata", package = "sceptredata"),
"/highmoi_example/gem_group_", c(1, 2)
)
directory_to_write <- tempdir()
out_list <- create_odm_from_cellranger(
directories_to_load = directories_to_load,
directory_to_write = directory_to_write,
)
gene_odm <- out_list$gene
# extract rows into memory by index and ID
v1 <- gene_odm[10L,]
v2 <- gene_odm["ENSG00000173825",]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.