runDiffusionMaps | R Documentation |
This function takes a snap obj as input and runs diffusion maps for dimentionality reduction.
runDiffusionMaps(obj, input.mat = c("bmat", "pmat"), num.eigs = 20)
obj |
A snap obj |
input.mat |
Input matrix c("bmat", "pmat"). |
num.eigs |
Number of eigenvectors to be computed [20]. |
Diffusion Maps algorithm, a nonlinear dimensionality reduction technique that discovers low dimensional manifolds within high-dimensional datasets by performing harmonic analysis of a random walk constructed over the data to identify nonlinear collective variables containing the predominance of the variance in the data. We choose diffusion maps because it is highly robust to noise and perturbation, making it particuarly suited for analyzing sparse scATAC-seq dataset.
data(demo.sp); demo.sp = makeBinary(demo.sp); demo.sp = runDiffusionMaps( obj=demo.sp, input.mat="bmat", num.eigs=20 );
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.