findSpectrum {CellTrails} | R Documentation |
Identifies the dimensionality of the latent space
findSpectrum(x, frac = 100)
x |
A numeric vector with eigenvalues |
frac |
Fraction or number (if |
Similar to a scree plot, this method generates a simple line segement plot showing the lagged differences between ordered eigenvalues (eigengaps). A linear fit is calucated on a fraction of top ranked values to identify informative eigenvectors.
A numeric
vector with indices of relevant dimensions
Daniel C. Ellwanger
pca
embedSamples
# Example data data(exSCE) # Embedding res <- embedSamples(exSCE) # Find spectrum d <- findSpectrum(res$eigenvalues, frac=30) d