cv_estimation: cv_estimation

View source: R/cv_estimation_tag_functions.R

cv_estimationR Documentation

cv_estimation

Description

A function to calculate the CV for the technical lab replicates. The default values are set as per the object names generated by machine

Usage

cv_estimation(
  dataC,
  lab_replicates,
  sampleID_var = "sampleID",
  antigen_var = "antigen",
  replicate_var = "replicate",
  mfi_var = "FMedianBG_correct",
  cv_cut_off = 20
)

Arguments

dataC

A dataset a data frame with feature variables to be used

lab_replicates

A numeric value indicating the number of lab replicates

sampleID_var

A character string containing the name of the sample identifier variable. Default set to 'sampleID'

antigen_var

A character string containing the name of the features/protein variable. Default to 'antigen'

replicate_var

A character string containing the name of the replicate variable. Default to 'replicate'

mfi_var

A character string containing the name of the variable with MFI value.Assuming background correction is done already. Default to 'FMedianBG_correct'

cv_cut_off

Optional value indicating the cut off of flagging CV's. Default set at 20.

Details

Coefficient of Variation

Value

A data frame where CV's of the replicates have been calculated

Examples

dataC <- readr::read_csv(system.file("extdata", 
"dataC.csv", package="protGear"))
## this file has 3 lab replicates and the default names
cv_estimation(dataC  ,lab_replicates=3)

Keniajin/protGear documentation built on Feb. 6, 2023, 6:28 p.m.