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

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
# return the rownames
rownames(gene_odm) |> head()

Timothy-Barry/ondisc documentation built on April 15, 2024, 2:45 a.m.