setPcaDf.Rd
Safely adds data.frames containing the barcode-spot embedding of different dimensional reduction techniques. Cell embedding variables must be named as follows:
pca_df
: PC1, PC2, PC3, ...
tsne_df
: tsne1, tsne2, ...
umap_df
: umap1, umap2, ...
setPcaDf(object, pca_df, of_sample = "", fdb_fn = "stop")
setTsneDf(object, tsne_df, of_sample = "")
setUmapDf(object, umap_df, of_sample = "")
A valid spata-object.
The data.frame composed of the variables barcodes, sample and the variables containing the barcode- spot embedding.
This argument is currently inactive. It might be reactivated when spata-objects can store more than one sample.
A spata object containing the set input.
All set*()
-functions offer a save way to set certain
slots of your spata-object. They do check the input for validity but
effectively overwrite everything that is occupying the slot to be set -
use with caution.