View source: R/cell-workflow.R
| cuda_cell_pca | R Documentation |
Run PCA on highly variable single-cell features
cuda_cell_pca(
counts,
n_components = 30L,
n_hvg = 2000L,
scale. = TRUE,
device = c("auto", "cuda", "cpu"),
scale_factor = 10000,
log1p = TRUE,
min_mean = 0
)
counts |
Feature-by-cell matrix. |
n_components |
Number of principal components. |
n_hvg |
Number of highly variable features. |
scale. |
Whether to scale selected features before PCA. |
device |
Device passed to |
scale_factor |
Target library size used during normalization. |
log1p |
Whether to apply |
min_mean |
Minimum feature mean used during highly variable feature selection. |
A cuda_pca object with an additional features element. Cell
names label PCA score rows and selected feature names label loadings.
set.seed(2)
counts <- matrix(rpois(30 * 20, lambda = 2), 30, 20)
cuda_cell_pca(counts, n_components = 3, n_hvg = 10, device = "cpu")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.