merge_plate_outputs {SerolyzeR}R Documentation

Merge Normalised Data from Multiple Plates

Description

This function merges normalised data from a list of Plate objects into a single data.frame. It supports different normalisation types and handles column mismatches based on the specified strategy.

Usage

merge_plate_outputs(
  plates,
  normalisation_type,
  column_collision_strategy = "intersection",
  verbose = TRUE,
  ...
)

Arguments

plates

A named list of Plate objects, typically returned by process_dir() with parameter return_plates = TRUE.

normalisation_type

(character(1)) The type of normalisation to merge. Options: "MFI", "RAU", "nMFI".

column_collision_strategy

(character(1), default = "intersection")

  • Determines how to handle mismatched columns across plates.

  • Options: "intersection" (only shared columns), "union" (include all columns).

verbose

(logical(1), default = TRUE) Whether to print verbose output.

...

Additional arguments passed to process_plate(), such as sample_type_filter = "TEST" to include only certain sample types in the merged result.

Value

A merged data.frame containing normalised data across all plates.

Examples

# creating temporary directory for the example
output_dir <- tempdir(check = TRUE)

dir_with_luminex_files <- system.file("extdata", "multiplate_reallife_reduced",
  package = "SerolyzeR", mustWork = TRUE
)
list_of_plates <- process_dir(dir_with_luminex_files,
  return_plates = TRUE, format = "xPONENT", output_dir = output_dir
)

df <- merge_plate_outputs(list_of_plates, "RAU", sample_type_filter = c("TEST", "STANDARD CURVE"))


[Package SerolyzeR version 1.3.0 Index]