addOutlierInfo: A function to determine whether specific metabolite...

View source: R/addOutlierInfo.R

addOutlierInfoR Documentation

A function to determine whether specific metabolite observations are outliers.

Description

This function adds a column to a dataframe of metabolite abundance values indicating whether a observations for a specific metabolite are outliers.

Usage

addOutlierInfo(metab.col, in.data, outlier.sd.thresh=2)

Arguments

metab.col

A character value indicating the name of the variable in the input data set that corresponds to metabolite abundance.

in.data

A data frame containing the variables specified in metab.col.

outlier.sd.thresh

The number of standard deviations from the mean a point must be to be considered an outlier. This argument defaults to 2.

Details

This function adds a column to a dataframe of metabolite abundance values indicating whether a observations for a specific metabolite are outliers.

Value

Returns a dataframe.

Author(s)

Michael Nodzenski

References

Nodzenski M, Muehlbauer MJ, Bain JR, Reisetter AC, Lowe WL Jr, Scholtens DM. Metabomxtr: an R package for mixture-model analysis of non-targeted metabolomics data. Bioinformatics. 2014 Nov 15;30(22):3287-8.

Examples

data(euMetabCData)
outlier.data<-addOutlierInfo("pyruvic_acid",  euMetabCData, outlier.sd.thresh=2)
              

mnodzenski/metabomxtr documentation built on Aug. 24, 2022, 1:40 p.m.