selectRefSp {mQTL.NMR} | R Documentation

## Automated selection of a reference spectrum

### Description

The selection of reference spectrum among all spectrums is based on the highest similarity to all other spectra

### Usage

    selectRefSp(X, step)

### Arguments

`X` | matrix of spectra
`step` | a numerical parameter used to scale spectral regions down to specific bin size

### Value

returns the index of selected spectrum

### Author(s)

Lyamine Hedjazi

### See Also

`alignSp`

### Examples

    # Data

    Sp=matrix(rnorm(10*5000,mean=0,sd=1), nrow=10,ncol=5000)

    # Reference spectrum selection

    step=0.02 # Recursion step (default 0.02)
    index<-selectRefSp(Sp,step)

[Package mQTL.NMR version 1.14.0 Index]