Description Usage Arguments Details Value See Also
Calculates the Local Density Factor as implemented in the DDoutlier
package with a predefined knn neighbourhood.
1 |
dataset |
Matrix with cell embeddings with cells as rows and reduced dimensions as cloumns. Subspace to determine LDF in. |
knn_object |
List with k-nearest neighbours (knn) as provided by
|
k |
Numeric. Number of knn used. Should correspond to |
h |
Numeric. Bandwidth for kernel functions. The greater the bandwidth, the smoother kernels and lesser weight are put on outliers. Default is 1 |
c |
Scaling constant for comparison of LDE to neighboring observations. Default is 1. |
LDF fuction modified from the DDoutlier
package.
Calculates a Local Density Estimate (LDE) and Local Density Factor (LDF) with
a gaussian kernel. Modified to use a predefined knn neighbourhood.
For ldfSce
this is essential to determine LDF after data
integration on the same set of cells.
List with two elements "LDE" and "LDF".
Other helper functions:
.cmsCell()
,
.defineSubspace()
,
.filterKnn()
,
.filterLocMin()
,
.smoothCms()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.