run_kdist | R Documentation |
Run K-distance with CellTrek(Seurat) object and add a metadata column
run_kdist( celltrek_inp, grp_col = "cell_type", ref = NULL, ref_type = "all", que = NULL, k = 10, new_name = "kdist", keep_nn = F )
celltrek_inp |
SChart seurat input |
grp_col |
Column name in meta data for reference and query groups |
ref |
Reference groups |
ref_type |
'all' or 'each' |
que |
Query groups |
k |
The number of nearest neighbors |
new_name |
New name for kdist |
keep_nn |
Keep Nearest Neighboor id matrix? |
SChart seurat output
celltrek_test <- run_kdist(celltrek_inp=celltrek_inp, grp_col='cell_type', ref=c('A', 'B'), ref_type='each', que=unique(test_df$cell_names), k=10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.