Skip to contents

Sample identifiers of a dataset

Usage

sample_id(x, ...)

Arguments

x

A `gifter_dataset`.

...

Unused.

Value

A character vector of sample identifiers, in the order the abundance matrix names them.

Examples

donor <- evaluate_gifts(data.frame(
  gene_id = "g1", namespace = "KO", accession = "K01198"
))
catalogue <- gifter_community(donor = donor)
dataset <- gifter_dataset(catalogue, matrix(
  1, nrow = 1, dimnames = list("donor", "gut")
))
sample_id(dataset)
#> [1] "gut"