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

Description Usage Arguments Details Value Author(s) References Examples

View source: R/addOutlierInfo.R

Description

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

Usage

1
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

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

metabomxtr documentation built on Nov. 8, 2020, 6:50 p.m.