Generalized helper function that pulls the data from an object, passes the dataframe to a Python function, and places the resulting dataframe in the appropriate slot
ReductionBridge(object, ...)
# S3 method for Seurat
ReductionBridge(
object,
reduction_use = "pca",
reduction_save,
function_use,
dims_use = NULL,
assay_use = NULL,
...
)
# S3 method for SingleCellExperiment
ReductionBridge(
object,
reduction_use = "PCA",
reduction_save,
function_use,
dims_use = NULL,
...
)
A Seurat or SingleCellExperiment object to be transformed.
Extra parameters to pass to the dimensional reduction function.
Prior dimensional reduction to use for calculations (i.e. pca, ica, cca, etc...)
Name to use for the reduction (i. e. tsne, umap, etc...)
Dimensional reduction function to call.
Dimensions of `reduction_use` to pass to `function_use`
Seurat object
SingleCellExperiment object