glyco.outliers: Discover outliers in glycan data

Description Usage Arguments Details Value Author(s) Examples

View source: R/glyco.outliers.R

Description

Returns outliers within every glycan structure

Usage

1
glyco.outliers(data, group = NULL, outlier.function = NULL, alpha = 1.5)

Arguments

data

data frame in long format containing glycan measurements

group

a possible grouping parameter on which stratification of data should be conducted. It should be a name of one of the columns in dataframe data and of type factor.

outlier.function

a function that checks for outliers in a vector. Receives one parameter representing a vector and returns logical vector indicating outliers.

alpha

If outlier.function parameter is set to NULL outliers are calculated as those points that are greater than upper quartile + alpha * IQR (interquartile range) or lower than lower quartile - alpha * IQR (interquartile range). If parameter outlier.function is not NULL parameter alpha is not used.

Details

Input data frame should have at least the following three columns:
- gid - representing a unique name of a sample
- glycan - representing glycan names
- value - representing measured values

Value

Returns a data.frame with outliers

Author(s)

Ivo Ugrina

Examples

1
2
3
4
5
6
data(mpiu)

glyco.outliers(mpiu)

# outliers per plate
glyco.outliers(mpiu, group="Plate")

iugrina/glycanr documentation built on March 31, 2021, 9:50 a.m.