Takes Before After QC .fcs files of QC beads run on assay settings, returns the gains and average measurement in a data.frame to allow for plotting to assess stability over time.
Source:R/QC_GainMonitoring.R
QC_GainMonitoring.Rd
Takes Before After QC .fcs files of QC beads run on assay settings, returns the gains and average measurement in a data.frame to allow for plotting to assess stability over time.
Examples
library(dplyr)
library(purrr)
library(flowWorkspace)
File_Location <- system.file("extdata", package = "Luciernaga")
FCS_Pattern <- ".fcs$"
FCS_Files <- list.files(path = File_Location, pattern = FCS_Pattern,
full.names = TRUE, recursive = FALSE)
QCBeads <- FCS_Files[grep("Before|After", FCS_Files)]
BeforeAfter_CS <- load_cytoset_from_fcs(files=QCBeads,
transformation=FALSE, truncate_max_range = FALSE)
BeforeAfter <- map(.x=BeforeAfter_CS[1:2], .f=QC_GainMonitoring,
sample.name = "TUBENAME", stats="median") %>% bind_rows()