Description Usage Arguments Value Examples
A function that calculates the optimum dimensionality from an elbow plot. Involves calculating slopes between two consecutive points. The optimum dimensionality will be determined as the point at which slopes no longer change or no visible change occurs to the slopes thereafter. In this function, a dimension is determined optimal when a slope connecting that point to another is flatter than 10 times the flattest slope in the plot and the stdev at that point is proximal to the lower limit. The plot data must be plotted by dims (x-axis) and stdev (y-axis).
1 | determine_dimensionality(plot_data, cutoff)
|
plot_data |
An elbow plot data used for detemining dimensionality, generated by calling ElbowPlot() on a Seurat object. |
cutoff |
The cutoff that indicates how much data/variance is covered. |
Returns an integer that represents the optimal dimensionality that was determined by calculation.
1 2 | library(Seurat)
determine_dimensionality(elbow_plot_data, 0.95)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.