filter_ambient_date: Filter on ratios between samples and controls by date

View source: R/filter_ambient_date.R

filter_ambient_dateR Documentation

Filter on ratios between samples and controls by date

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 on a particular date.

Usage

filter_ambient_date(
  chemtable,
  sampletable,
  metadata,
  ratio = 3,
  prop_dates = 0.5
)

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 the ambient sample on that collection date

prop_dates

the minimum proportion of dates a compound must pass the ratio test to pass overall

Examples

data(GCMSfloral)
chemtable <- filter_ambient_date(chemtable, sampletable, metadata, ratio=4, prop_dates=0.2)

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