View source: R/flowCytometryFunctions.R
process_fcs_dir | R Documentation |
process_fcs_dir
uses mixture models to cluster bacteria from
background debris and fits a linear model to SSC-H vs SSC-A to remove doublets.
process_fcs_dir(
dir_path,
pattern = "*.fcs",
flu_channels = c("BL1-H"),
do_plot = F,
pre_cleaned = F,
neg_fcs = NA,
calibrate = F,
mef_peaks = NA,
bead_dens_bw = 0.025,
manual_peaks = NA
)
dir_path |
a directory path containing the .fcs files to be parsed or folders to be recursed through. |
pattern |
a regex pattern to match particular .fcs files. Default is
|
flu_channels |
a vector of strings of the fluorescence channels to keep in the processed data and plotting. Defaults to "BL1-H". |
do_plot |
a Boolean flag to determine whether to produce plots showing
the trimming of each |
pre_cleaned |
have you pre removed background debris |
neg_fcs |
filename of .fcs file for a negative control used for fluorescence normalisation. |
calibrate |
a Boolean flag to determine whether to convert fluorescence
to MEF values. Requires an .fcs file with named |
mef_peaks |
a list of lists in the form |
bead_dens_bw |
the bandwidth for the kernel density of the bead peak data. Default = 0.025. Increase if erroneous peaks are being found, decrease if not enough peaks are found. |
manual_peaks |
if bead peaks are not being found by the EM algorithm,
one can manually specify the positions of the bead peaks (on a log10 scale).
A list of lists in the form
|
nothing is returned. A new folder is created with the processed .fcs
files and plot if do_plot = TRUE
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.