View source: R/gen-functions.R
makeGatingSet | R Documentation |
Read in FCS files and put them together in a gating set.
makeGatingSet( patt = NULL, comp = ".", fn = ".", tx = ".", channel = ".", fcsRepair = FALSE, verbose = "." )
patt |
A regular expression defining a possible subset of FCS files
residing in the directory specified by |
comp |
Logical. If compensation should be applied or not. If left at the default '.', the value as defined in the settings file (key 'dV_comp') will be used. |
fn |
Character length one. The name of the folder where FCS files should be read from. If left at the default '.', the folder name as defined in the settings file (key: 'foN_fcsFiles') will be used. |
tx |
Character length one. The transformation applied to *all* channels within the individual flow sets. If left at the default '.', the value as defined in the settings file (key 'dV_tx') will be used. (Currently only 'fjbiex' is implemented.) |
channel |
A regular expression indicating which channels, i.e. which
columns to keep from the original flowFrames; is passed down to argument
|
fcsRepair |
Logical. If set to TRUE, fcs-files in the folder
specified at argument 'fn' will be checked for multiplied entries in the
keywords, as after some testing the author came to the humble conclusion that
these multiplied keywords can be the reason for the error message: |
verbose |
Logical. If status messages should be displayed. If left at the default '.', the value as defined in the settings file (key 'dV_verbose') will be used. |
If no folder name is specified, FCS files are being read in from the default FCS-files folder.
A gating set as produced by GatingSet
.
Due to the circumstances when developing this code, it was never required to apply any kind of compensation. The functionality to apply compensation was therefore never tested or verified. It is strongly advised to use caution when applying compensation. It might well be necessary to modify the source code of this function (fork from https://github.com/bpollner/flowdex) in order to achieve correct compensation results.
Other Extraction functions:
addGates()
,
makeAddGatingSet()
,
makefdmat()
td <- tempdir() data_source <- "https://github.com/bpollner/data/raw/main/flowdex_examples/flowdex_examples.zip" check_download_data(td, data_source) exp_home <- paste0(td, "/flowdex_examples") old_wd <- getwd() setwd(exp_home) # assign("get_settings_from_flowdex_package_root", TRUE, pos=.GlobalEnv) # only required to make the examples run automatically # you should not call 'assign' if you run the examples manually # the effect of setting 'get_settings_from_flowdex_package_root' to TRUE # is that the file 'flowdex_settings.R' in 'root' of the installed package # 'flowdex' will be sourced instead of the one in the user-defined location. # gs1 <- makeGatingSet() gs2 <- makeGatingSet(patt="T4") # setwd(old_wd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.