addUmapData.Rd
Adds or replaces dimensional reduction data. If the object contains several sample the sample-variable of the input data.frame denotes the sample belonging.
addUmapData(object, umap_df, overwrite = FALSE) addTsneData(object, tsne_df, overwrite = FALSE)
object | A valid spata-object. |
---|---|
umap_df | A data.frame containing the character variables barcodes, sample and the numeric variables umap1, umap2. |
overwrite | Logical. Must be set to TRUE in order to overwrite already existing data. |
tsne_df | A data.frame containing the character variables barcodes, sample and the numeric variables tsne1, tsne2. |
An updated spata-object.