compute PCA for super-cell data (sample-weighted data)
supercell_prcomp(
X,
genes.use = NULL,
genes.exclude = NULL,
supercell_size = NULL,
k = 20,
do.scale = TRUE,
do.center = TRUE,
fast.pca = TRUE,
seed = 12345
)
the same object as prcomp result
super-cell transposed gene expression matrix (! where rows represent super-cells and cols represent genes)
genes to use for dimensionality reduction
genes to exclude from dimensionaloty reduction
a vector with supercell sizes (ordered the same way as in X)
number of components to compute
scale data before PCA
center data before PCA
whether to run fast PCA (works for datasets with |super-cells| > 50)
a seed to use for set.seed