check_picked_and_vendor_peaks: check_picked_and_vendor_peaks: function that checks peak...

View source: R/MLMSfunctions.R

check_picked_and_vendor_peaksR Documentation

check_picked_and_vendor_peaks: function that checks peak times and numbers from vendor table against picked peaks

Description

check_picked_and_vendor_peaks: function that checks peak times and numbers from vendor table against picked peaks

Usage

check_picked_and_vendor_peaks(
  vend.df,
  int.mat,
  time.vec,
  z.thresh = 5,
  graphLab,
  timeThresh = 2,
  expPeaks = c(15, 16)
)

Arguments

vend.df

dataframe of vendor data

int.mat

1-col matrix of intensity values

time.vec

numeric vector of time values

z.thresh

z-value threshold for ThresholdingAlgo

graphLab

label for graph of picked times

timeThresh

threshold for time differences between picked and vendor peaks

expPeaks

vector containg two values for expected numbers of peaks

Value

list of 3 elements: [1] dataframe indicating whether the number of peaks in vendor table match number picked; [2] dataframe containing number of vendor peaks and picked peaks; [3] dataframe of peak times for vendor and picked peaks

Examples

Usage Example
int.mat<-matrix(v44,ncol=1) # for ThresholdingAlgo
time.vec<-time.s
graphLab<-"170525_NaHCO3 L + NaCl L"
numPeakCheck<-check_picked_and_vendor_peaks(vend1.df,int.mat,time.s,5,graphLab,2)

lilyacb/MLMS documentation built on July 21, 2023, 4:12 a.m.