process_plate {PvSTATEM}R Documentation

Process a plate and save computed dilutions to a CSV

Description

The behavior can be summarized as follows:

  1. Adjust blanks if not already done.

  2. Fit a model to each analyte using standard curve samples.

  3. Compute dilutions for each analyte using the corresponding model.

  4. Aggregate computed dilutions into a single data frame.

  5. Save the computed dilutions to a CSV file.

Usage

process_plate(
  plate,
  output_path = NULL,
  data_type = "Median",
  adjust_blanks = FALSE,
  verbose = TRUE,
  ...
)

Arguments

plate

(Plate()) a plate object

output_path

(character(1)) path to save the computed dilutions. If not provided the file will be saved in the working directory with the name ⁠dilutions_{plate_name}.csv⁠. Where the {plate_name} is the name of the plate.

data_type

(character(1)) type of data to use for the computation. Median is the default

adjust_blanks

(logical(1)) adjust blanks before computing dilutions. Default is FALSE

verbose

(logical(1)) print additional information. Default is TRUE

...

Additional arguments to be passed to the fit model function (create_standard_curve_model_analyte)

Examples


plate_file <- system.file("extdata", "CovidOISExPONTENT.csv", package = "PvSTATEM")
layout_file <- system.file("extdata", "CovidOISExPONTENT_layout.csv", package = "PvSTATEM")

plate <- read_luminex_data(plate_file, layout_file)

tmp_dir <- tempdir(check = TRUE)
temporary_filepath <- file.path(tmp_dir, "output.csv")
process_plate(plate, output_path = temporary_filepath) 
# create and save dataframe with computed dilutions



[Package PvSTATEM version 0.0.4 Index]