findSpectrum {CellTrails} | R Documentation

## Determine number of informative latent dimensions

### Description

Identifies the dimensionality of the latent space

### Usage

    findSpectrum(x, frac = 100)

### Arguments

`x` | A numeric vector with eigenvalues
`frac` | Fraction or number (if `frac > 1`) of eigengaps used to perform linear fit. (default: 100)

### Details

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.

### Value

A `numeric` vector with indices of relevant dimensions

### Author(s)

Daniel C. Ellwanger

### See Also

`pca` `embedSamples`

### Examples

    # Example data
    data(exSCE)

    # Embedding
    res <- embedSamples(exSCE)

    # Find spectrum
    d <- findSpectrum(res$eigenvalues, frac=30)
    d

[Package CellTrails version 1.4.0 Index]