Description Usage Arguments Value
Takes a pre-computed dimensional reduction (typically calculated on a subset of genes) and projects this onto the entire dataset (all genes). Note that the cell loadings will remain unchanged, but now there are gene loadings for all genes.
1 2 3 | ProjectDim(object, reduction.type = "pca", dims.print = 1:5,
dims.store = 30, genes.print = 30, replace.dim = FALSE,
do.center = FALSE, do.print = TRUE, assay.type = "RNA")
|
object |
Seurat object |
reduction.type |
Reduction to use |
dims.print |
Number of dims to print genes for |
dims.store |
Number of dims to store (default is 30) |
genes.print |
Number of genes with highest/lowest loadings to print for each PC |
replace.dim |
Replace the existing data (overwrite object@dr$XXX@gene.loadings), not done by default. |
do.center |
Center the dataset prior to projection (should be set to TRUE) |
do.print |
Print top genes associated with the projected dimensions |
assay.type |
Data type, RNA by default. Can be changed for multimodal datasets (i.e. project a PCA done on RNA, onto CITE-seq data) |
Returns Seurat object with the projected values in object@dr$XXX@gene.loadings.full
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.