filter_data: Filters raw metabolomic data.

Description Usage Arguments Author(s)

View source: R/filter_data.R

Description

This function filters the raw metabolomic data. For each isotopologue, values are changed to zero if less than half of a specific condition's replicates have values and no other condition for that isotopologue has more than half of its samples have values.

Usage

1
filter_data(data, info, type = "QC")

Arguments

data

a dataframe containing raw metabolomic data. Each row is one isotopologue with the metabolite and isotopologue in the first column and the rest of the columns being samples.

info

The sample info sheet with the conditions in a column titled 'Condition'.

type

An optional parameter. The default outputs a dataframe with the corrected values. If set to 'QC', a vector of isotopologues to be filtered is outputted instead.

Author(s)

Jordan Uyeki


juyeki/MetabR documentation built on Aug. 6, 2020, 3:32 a.m.