These functions add dimensional reduction results in form of additional variables to the provided spata data.frame.

joinWithPca(
  object,
  spata_df,
  n_pcs = NULL,
  verbose = NULL,
  force = FALSE,
  of_sample = NA
)

joinWithTsne(object, spata_df, verbose = NULL, force = FALSE, of_sample = NA)

joinWithUmap(object, spata_df, verbose = NULL, force = FALSE, of_sample = NA)

Arguments

object

An object of class spata2.

verbose

Logical. If set to TRUE informative messages regarding the computational progress will be printed.

(Warning messages will always be printed.)

force

Logical. Only relevant if the spata data.frame provided already contains the variables that would be added with the function. If set to TRUE, the variables are added anyway.

of_sample

This argument is currently inactive. It might be reactivated when spata-objects can store more than one sample.

...

Addtional arguments given to dplyr::left_join().

Value

The input data.frame with the additional dimensional reduction variables