Description Usage Arguments Value References Examples
spRing
takes a matrix of samples X features and computes a
per-sample distance vector before selecting the k nearest neighbors.
This is done iteratively in Rcpp
to minimize the memory
footprint while optimizing speed. Force directed layout is implemented
from igraphs layout_with_drl
function. If either/both knngraph
or igraph is TRUE, this function will return an S3 object (list) with
the coordinates and either/both of these objects. Otherwise, a
two dimensional vector specifying the coordinates will be returned.
1 |
x |
Data matrix |
k |
= 10 |
method |
= "pearson" The distance metric for the data. |
knngraph |
= FALSE Return knn graph generated by the data? |
igraph |
= FALSE Return igraph network associated with knn graph? |
One or more outputs. See above
Adapted from https://github.com/caleblareau, based on Weinreb et. al. \ Bioinformatics, Volume 34, Issue 7, 01 April 2018, Pages 1246–1248.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.