JBA_corDistribution {MWASTools} | R Documentation

## Setting the ct threshold for JBA

### Description

This function compares the distribution of correlations between st adjacent variables in a spectral region dominated by noise and a spectral region dominated by metabolic signals. This function can be used to set the ct threshold for JBA binning.

### Usage

    JBA_corDistribution(NMR_data, st = 4, cm = "pearson", metabo_range = c(3.50, 3.96),
                        noise_range = c(0.40, 0.67))

### Arguments

`NMR_data` | numeric matrix containing the NMR data (i.e. NMR peak intensities). The columns of the matrix must correspond to the metabolic variables (chemical shifts) and the rows to the samples. Column and row names must contain the metabolite IDs (i.e chemical shifts) and the sample IDs, respectively.
`st` | numeric value indicating the minimum bin size.
`cm` | character vector specifying the correlation method ("pearson" or "spearman").
`metabo_range` | numeric vector indicating the limits of a spectral region dominated by metabolic signals.
`noise_range` | numeric vector indicating the limits of a spectral region dominated by noise.

### Value

A plot comparing the distribution of average correlations between st adjacent variables in a spectral region dominated by metabolic signals (metabo_range) and in a spectral region dominated by electronic noise (noise_range.)

### Examples

    ## Not available.

[Package MWASTools version 1.4.0 Index]