
Last chance! 50% off unlimited learning
Sale ends in
Perform PCA, identify significant dimensions, and reverse the rotation using only significant dimensions.
smooth_via_pca(
x,
elbow_th = 0.025,
dims_use = NULL,
max_pc = 100,
do_plot = FALSE,
scale. = FALSE
)
Smoothed data
A data matrix with genes as rows and cells as columns
The fraction of PC sdev drop that is considered significant; low values will lead to more PCs being used
Directly specify PCs to use, e.g. 1:10
Maximum number of PCs computed
Plot PC sdev and sdev drop
Boolean indicating whether genes should be divided by standard deviation after centering and prior to PCA
# \donttest{
vst_out <- vst(pbmc)
y_smooth <- smooth_via_pca(vst_out$y, do_plot = TRUE)
# }
Run the code above in your browser using DataLab