scUMAP | R Documentation |
The UMAP is calculated based on the eigenvectors of single cell dataset, and the user can select the eigenvectors manually. Of note, the selected eigenvectors directly affect UMAP values. For the integrated data (the result of "scMultiIntegrate" funciton), RISC utilizes the PCR output "PLS" to calculate the UMAP, therefore, the user has to input "PLS" in "use = ", instead of the default parameter "PCA".
scUMAP(
object,
npc = 20,
embedding = 2,
use = "PCA",
neighbors = 15,
dist = 0.1,
seed = 123,
...
)
object |
RISC object: a framework dataset. |
npc |
The number of the PCs (or the PLS) using for UMAP, the default is 20, but need to be modified by the users. The PCA for individual dataset, while PLS for the integrated data. |
embedding |
The number of components UMAP output. |
use |
What components used for UMAP: PCA or PLS. |
neighbors |
The n_neighbors parameter of UMAP. |
dist |
The min_dist parameter of UMAP. |
seed |
The random seed to keep tSNE result consistent. |
RISC single cell dataset, the DimReduction slot.
Becht et al., Nature Biotech. (2018)
# RISC object
obj0 = raw.mat[[3]]
obj0 = scPCA(obj0, npc = 10)
obj0 = scUMAP(obj0, npc = 3)
DimPlot(obj0, slot = "cell.umap", colFactor = 'Group', size = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.