Learn R Programming

MAIT (version 1.6.0)

getScoresTable: Returns a list with the peak scores, masses, retention time and other information

Description

Function getScoresTable takes an MAIT-class object and returns a list with the scores of the features in the samples. Additionally, it returns the spectral ID of the peak and (optionally) a table containing the peak information (mass, retention time and annotation).

Usage

getScoresTable(MAIT.object = NULL, getSpectra = TRUE, getExtendedTable = FALSE)

Arguments

MAIT.object
A MAIT-class object where significant features have already been found.
getSpectra
If it is set to TRUE, an element of the returned list will contain the spectra ID of each feature.
getExtendedTable
If it is set to TRUE, an element of the returned list will contain a table with peak information (mass, retention time, annotation, intensity per sample)

Value

A list containing:
  • scores: The intensity of each feature per sample
  • spectraID: A numeric with the correspondence between peaks and spectral ID
  • extendedTable: a data frame containg detailed peak information (mass, retention time, annotation, intensity per sample).

See Also

spectralTStudent spectralAnova

Examples

Run this code
data(MAIT_sample)
MAIT<-spectralSigFeatures(MAIT,p.adj="fdr",parametric=TRUE)
getScoresTable(MAIT,getExtendedTable=TRUE)

Run the code above in your browser using DataLab