get_nmfi | R Documentation |
The function calculates the normalised MFI (nMFI) values for each of the analytes in the plate.
The nMFI values are calculated as the ratio of the test samples' MFI values to the standard curve samples with the target dilution.
When nMFI could be used? In general, it is preferred to use Relative Antibody Unit (RAU) values for any analysis. However, it is sometimes impossible to fit a model to the standard curve samples. This may happen if the MFI values of test samples are much higher than the MFI of standard curve samples. Then, the prediction would require significant data extrapolation, which could lead to unreliable results.
In such cases, the nMFI values could be used as a proxy for RAU values if we want, for instance, to account for plate-to-plate variation.
get_nmfi(
plate,
reference_dilution = 1/400,
data_type = "Median",
verbose = TRUE
)
plate |
( |
reference_dilution |
( |
data_type |
( |
verbose |
( |
nmfi (data.frame
) a data frame with normalised MFI values for each analyte in the plate and all test samples.
# read the plate
plate_file <- system.file("extdata", "CovidOISExPONTENT.csv", package = "SerolyzeR")
layout_file <- system.file("extdata", "CovidOISExPONTENT_layout.csv", package = "SerolyzeR")
plate <- read_luminex_data(plate_file, layout_file)
# artificially bump up the MFI values of the test samples (the Median data type is default one)
plate$data[["Median"]][plate$sample_types == "TEST", ] <-
plate$data[["Median"]][plate$sample_types == "TEST", ] * 10
# calculate the nMFI values
nmfi <- get_nmfi(plate, reference_dilution = 1 / 400)
# we don't do any extrapolation and the values should be comparable across plates
head(nmfi)
# different params
nmfi <- get_nmfi(plate, reference_dilution = "1/50")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.