View source: R/process-plate.R
| process_plate | R Documentation | 
This function processes a plate and computes normalised values based on the specified normalisation_type.
The function supports three types of normalisation:
RAU (Relative Antibody Units) - Default normalisation type.
nMFI (Normalised Median Fluorescence Intensity).
MFI (Median Fluorescence Intensity, blank-adjusted raw MFI values).
Depending on the chosen normalisation type, the function:
 Adjusts for blanks (if blank_adjustment = TRUE).
Computes the relevant normalised values for each analyte in the plate.
Aggregates computed values into a single data frame.
Optionally writes the results to a CSV file.
RAU Normalisation Workflow:
Blank adjustment (if enabled).
Fit standard curve models for each analyte.
Compute RAU values based on the fitted models.
Aggregate RAU values into a data frame.
Save the results to a CSV file.
nMFI Normalisation Workflow:
Blank adjustment (if enabled).
Compute nMFI values using the target dilution.
Aggregate nMFI values into a data frame.
Save the results to a CSV file.
MFI Normalisation Workflow:
Blank adjustment (if enabled).
Save the adjusted MFI values to a CSV file.
If the plate is already blank-adjusted, setting blank_adjustment = TRUE has no effect.
More details on the normalisation methods can be found in:
RAU: create_standard_curve_model_analyte.
nMFI: get_nmfi.
process_plate(
  plate,
  filename = NULL,
  output_dir = "normalised_data",
  write_output = TRUE,
  normalisation_type = "RAU",
  data_type = "Median",
  blank_adjustment = FALSE,
  verbose = TRUE,
  reference_dilution = 1/400,
  ...
)
| plate | ( | 
| filename | ( 
 | 
| output_dir | ( 
 | 
| write_output | ( | 
| normalisation_type | ( 
 | 
| data_type | ( | 
| blank_adjustment | ( | 
| verbose | ( | 
| reference_dilution | ( 
 | 
| ... | Additional arguments passed to the model fitting function ( | 
A data frame containing the computed normalised values.
plate_file <- system.file("extdata", "CovidOISExPONTENT_CO_reduced.csv", package = "SerolyzeR")
layout_file <- system.file("extdata", "CovidOISExPONTENT_CO_layout.xlsx", package = "SerolyzeR")
plate <- read_luminex_data(plate_file, layout_file, verbose = FALSE)
example_dir <- tempdir(check = TRUE)
# Process plate with default settings (RAU normalisation)
process_plate(plate, output_dir = example_dir)
# Process plate without blank adjustment, custom filename
process_plate(plate,
  filename = "plate_no_blank_adjustment.csv",
  output_dir = example_dir, blank_adjustment = FALSE
)
# Process plate with nMFI normalisation
process_plate(plate,
  output_dir = example_dir, normalisation_type = "nMFI",
  reference_dilution = 1 / 400
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.