filter_ambient_ratio: Filter on ratios between samples and controls

View source: R/filter_ambient_ratio.R

filter_ambient_ratioR Documentation

Filter on ratios between samples and controls

Description

This function allows you to filter compounds based on a threshold ratio of a compound's mean area in floral samples vs. ambient samples

Usage

filter_ambient_ratio(chemtable, sampletable, metadata, ratio = 3)

Arguments

chemtable

the data frame of the data about the compounds

sampletable

the wide data frame with samples in rows and compound names in columns, containing peak areas

metadata

the data frame that contains meta data about the group, type, and other attributes of each sample

ratio

the minimum ratio of mean areas from floral to ambient samples

Examples

data(GCMSfloral)
chemtable <- filter_ambient_ratio(chemtable, sampletable, metadata, ratio=10)

jmpowers/bouquet documentation built on Feb. 12, 2023, 12:11 a.m.