ProjectSNN | R Documentation |
Calculates shared nearest neighbors between samples (columns) in a test matrix and samples in a training matrix Adapted from Seurat
ProjectSNN(
test.data,
train.data,
n.pcs = NULL,
features.use = NULL,
k = 30,
k.scale = 10,
prune.SNN = 1/15,
print.output = T
)
test.data |
Test data |
train.data |
Training data |
features.use |
Subset of features to use (default is all features) |
k |
Number of nearest neighbors |
k.scale |
k*k.scale is the number of nearest neighbors to calculate shared nearest neighbors for |
prune.SNN |
Minimum fraction of shared nearest neighbors |
print.output |
Prints progress bar if true |
pcs.use |
If not null, run PCA on training data and project test data before computing SNN |
A n.test x n.train matrix with the shared nearest neighbors between test and training data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.