perform.pca.Rd
Performs PCA reduction on defined method-assays. Data should be HVG subset, normalised and scaled (in the norm.scaled assay)
perform.pca(
object,
assay,
slot = "norm.scaled",
n.pcs = 50,
reduction.save = "PCA",
print.variance = FALSE,
verbose = FALSE,
seed = 1234,
...
)
IBRAP S4 class object
Character. String containing indicating which assay to use
Character. String indicating which slot within the assay should be sourced
Numerical. How many principal components should be produced. Default = 50
Character. What should this reduction be saved as in computation_reduction. Default = 'pca'
Logical. Should the plot be printed to the console
Arguments to be passed to PCAtools::pca
PCA reductions contained within the computational_reduction list in the defined assays
object <- perform.pca(object = object,
assay = c('SCT', 'SCRAN', 'SCANPY'),
n.pcs = 50,
reduction.save = 'pca')
#> Error in is(object = object, class2 = "IBRAP"): object 'object' not found