celltrek_dist | R Documentation |
Calculate the RF-distance between sc and st
celltrek_dist( st_sc_int, int_assay = "traint", reduction = "pca", intp = T, intp_pnt = 10000, intp_lin = F, nPCs = 30, ntree = 1000, keep_model = T )
st_sc_int |
Seurat traint object |
int_assay |
Name of integration assay |
reduction |
Dimension reduction method used, usually pca |
intp |
If TRUE, do interpolation |
intp_pnt |
Interpolation point number |
intp_lin |
If TRUE, use linear interpolation |
nPCs |
Number of PCs used for CellTrek |
ntree |
Number of trees in random forest |
keep_model |
If TRUE, return the trained random forest model |
A list of 1. celltrek_distance matrix; 2. trained random forest model (optional)
dist_test <- celltrek_dist(st_sc_int=st_sc_int, int_assay='traint', reduction='pca', intp = T, intp_pnt=10000, intp_lin=F, nPCs=30, ntree=1000, keep_model=T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.