rownames-odm-method: Return the rownames of an 'odm' object

dimnames,odm-methodR Documentation

Return the rownames of an odm object

Description

rownames() returns the rownames (i.e., feature IDs) of an odm object.

Usage

## S4 method for signature 'odm'
dimnames(x)

Arguments

x

an object of class odm

Value

the rownames of an odm object

Examples

directories_to_load <- file.path(
 system.file("extdata", "highmoi_example", package = "ondisc"),
 paste0("gem_group_", c(1, 2))
)
directory_to_write <- tempdir()
# Set data.table threads to 1 to pass CRAN example timing checks.
old_threads <- data.table::setDTthreads(1L)
out_list <- create_odm_from_cellranger(
  directories_to_load = directories_to_load,
  directory_to_write = directory_to_write,
)
data.table::setDTthreads(old_threads)
gene_odm <- out_list$gene
# return the rownames
rownames(gene_odm) |> head()

ondisc documentation built on June 17, 2026, 5:06 p.m.