Using a deconvolution matrix, created through rl_calc_decon_matrix()
,
adjust the values in the col_value
column to take into account
bleed-through from surrounding wells.
rl_adjust_plate(data, value, mat_decon, time = "time", well = "well")
A data frame that contains the experimental data.
The name of the column containing the values (i.e. 'lum').
A deconvolution matrix created through
rl_calc_decon_matrix()
The name of the column containing the time values (i.e. 'time')
Name of the column with the well ID information.
A dataframe with the specified column having been deconvoluted, using the supplied deconvolution matrix.
fl <- system.file(
"extdata",
"calibrate_tecan",
"calTecan1.xlsx",
package = "reluxr"
)
dat <- plate_read_tecan(fl)
mat_d_best <- dat |>
dplyr::filter(signal != "OD600") |>
dplyr::filter(time_s > 500) |>
rl_calc_decon_matrix(value, time_s, ref_well = "E05", b_noise = 30)
dat |>
dplyr::summarise(value = mean(value), .by = well) |>
rl_plot_plate(value, trans = log10) +
ggplot2::scale_fill_viridis_c(
limits = c(1, NA)
)
#> Scale for fill is already present.
#> Adding another scale for fill, which will replace the existing scale.
dat |>
dplyr::filter(signal == "LUMI") |>
rl_adjust_plate(value, mat_d_best, time = time_s) |>
dplyr::summarise(value = mean(value), .by = well) |>
rl_plot_plate(value, trans = log10) +
ggplot2::scale_fill_viridis_c(
limits = c(1, NA)
)
#> Scale for fill is already present.
#> Adding another scale for fill, which will replace the existing scale.
#> Warning: NaNs produced