Skip to contents

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

Usage

# S4 method for 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,
)
#> Round 1/2 processing of the input files.
#> 	Processing file 1 of 2.
#> 	Processing file 2 of 2.
#> Round 2/2 processing of the input files.
#> 	Processing file 1 of 2. Computing cellwise covariates. Writing to disk.
#> 	Processing file 2 of 2. Computing cellwise covariates. Writing to disk.
gene_odm <- out_list$gene
# return the rownames
rownames(gene_odm) |> head()
#> [1] "ENSG00000069275" "ENSG00000117222" "ENSG00000117266" "ENSG00000117280"
#> [5] "ENSG00000133059" "ENSG00000133065"