wsx_get_popstats.Rd
Flowjo wsp files contain many information like gated event counts, statistics and keywords from FCS files. These may be accessed without a dongle and can be read completely independent of the respective FCS files once the gating has been conducted.
wsx_get_popstats(ws, groups = NULL, return_stats = T, lapply_fun = lapply, ...)
path to flowjo workspace or a parsed xml-document (xml2::read_xml(ws))
which flowjo groups to include
return statistics next to cells counts
function name without quotes; lapply, pbapply::pblapply or parallel::mclapply are suggested
additional argument to the lapply function; mainly mc.cores when parallel::mclapply is chosen
data frame with cells counts or a list with counts and statistics if return_stats = T
if (FALSE) {
# When the script is saved to R_scripts in the experiment folder,
# get the absolute path to the folder
wd <- dirname(dirname(rstudioapi::getActiveDocumentContext()$path))
# find workspaces
ws <- list.files(path = wd, pattern = '\\.wsp$', recursive = T, full.names = T)
# import the population counts:
wsx_get_popstats(ws = ws[[1]])
}