Extracts the specified feature variables from the feature data.

getFeatureVariables(
  object,
  features,
  of_sample = "",
  return = "data.frame",
  unique = "deprecated"
)

Arguments

object

A valid spata-object.

features

The features of interest specified as a character vector.

of_sample

The sample(s) of interest specified as a single character value or vector. If set to "" (the default) the first sample is chosen.

return

Character value. One of 'vector', 'data.frame' or 'list'. In order to return a vector input of features must be of length one.

unique

Deprecated.

Value

A data.frame or a vector.