View source: R/density_computation.R
dens_univ | R Documentation |
Compute KDE and JSD Compute kernel density estimate (KDE) of a marker expression using the function, dens_univ, compute Jensen Shannon Distance (JSD) between two computed KDEs using the function, jensen_shannon_dist, compute the KDE of all the patients of the dataset using the function, Array_KDE, and compute Jensen Shannon Distance matrix between all the patients using the function, JSD_matrix.
dens_univ(x, ngrids = 1024, min_coef = 0, max_coef = 1)
x |
is a list of marker expression values in different cells of a patient |
ngrids |
is the number of grids used in KDE, default is m = 1024 |
px |
is the KDE of first marker |
py |
is the KDE of second marker |
Data |
is the dataset having one column named "SampleID" with the patient IDs and one column with marker expression values |
The function, dens_univ returns KDE and the grid-points as a list, the function, jensen_shannon_dist returns the JSD between two densities the function, Array_KDE returns KDE (and the grid-points) of all the patients in a form of a 3d array, and the function, JSD_matrix returns the JSD distance between all the images in a matrix form.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.