calcknncorrWithinQuery | R Documentation |
Calculates the k-NN correlation within the query cells only, which measures how well the sorted ordering of k nearest query neighbors in a query de novo PCA embedding correlate with the ordering for the cells in the reference mapping embedding.
calcknncorrWithinQuery( query, var = NULL, k = 100, topn = 2000, d = 20, distance = "euclidean" )
query |
Query object (returned from mapQuery) |
var |
Query metadata batch variable (PCA is calculated within each batch separately); if NULL, do not split by batch |
k |
Number of neighbors to use for kNN-correlation calculation |
topn |
number of variable genes to calculate within each query batch for query PCA |
d |
number of dimensions for query PCA within each query batch |
distance |
either 'euclidean' or 'cosine' |
Vector of within-query k-NN correlations for query cells
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.