Obtain dimensional reduction data

getDimRedData(object, of_sample = "", method_dr = c("UMAP", "TSNE"))

getUmapData(object, of_sample = "")

getTsneData(object, of_sample = "")

Arguments

object

A valid spata-object.

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.

method_dr

Character value. The dimensional reduction method of interest specified as a single character value. (Currently either 'UMAP' or 'TSNE').

Value

A data.frame that contains the unique identifiers (keys): barcodes, sample and:.

  • getTsneData(): tsne1, tsne2

  • getUmapData(): umap1, umap2