cytofkit(fcsFiles = getwd(), markers = "parameter.txt", projectName = "cytofkit", ifCompensation = FALSE, transformMethod = c("cytofAsinh", "autoLgcl", "logicle", "arcsinh"), mergeMethod = c("ceil", "all", "min", "fixed"), fixedNum = 10000, dimReductionMethod = c("tsne", "pca", "isomap"), clusterMethods = c("Rphenograph", "ClusterX", "DensVM", "FlowSOM", "NULL"), visualizationMethods = c("tsne", "pca", "isomap", "NULL"), progressionMethod = c("NULL", "diffusionmap", "isomap"), FlowSOM_k = 40, clusterSampleSize = 500, resultDir = getwd(), saveResults = TRUE, saveObject = TRUE, ...)
cytofAsinh
(suggest for CyTOF data), autoLgcl
(suggest for FCM data), logicle
and arcsinh
.ceil
, all
, min
, fixed
.
The default option is ceil
, up to a fixed number (specified by fixedNum
) of cells are sampled
without replacement from each fcs file and combined for analysis.
all
: all cells from each fcs file are combined for analysis.
min
: The minimum number of cells among all the selected fcs files are sampled from each fcs file and combined for analysis.
fixed
: a fixed num (specified by fixedNum) of cells are sampled (with replacement when the total number of cell is less than
fixedNum) from each fcs file and combined for analysis.tsne
, pca
and isomap
.DensVM
, ClusterX
, Rphenograph
and FlowSOM
. Multiple selection are accepted.tsne
, pca
and isomap
. Multiple selection are accepted.isomap
to estimated the preogression order of cells, choose NULL
to ignore.cytof_exprsExtract
expressionData
, dimReductionMethod
, visualizationMethods
, dimReducedRes
, clusterRes
, progressionRes
, projectName
, rawFCSdir
and resultDir
. If choose 'saveResults = TRUE', results will be saved into files under resultDir
.
cytofkit
works as the main funciton to perform the analysis of one or multiple FCS files.
The workflow contains data merging from multiple FCS file, expression data transformation,
dimensionality reduction with PCA
, isomap
or tsne
(default), clustering
analysis with methods includes DensVM
, ClusterX
, Rphenograph)
and FlowSOM
for
subpopulation detection, and estimation of cellular progression using isomap
. The analysis
results can be visualized using scatter plot, heatmap plot or progression plot. Dimension reduced
data and cluster labels will be saved back to new copies of FCS files. By default the analysis
results will be automatically saved under resultDir
for further annotation. Moreover An
interactive web application is provided for interactive exploration of the analysis results,
see cytofkitShinyAPP
.
cytofkit
, cytofkit_GUI
, cytofkitShinyAPP
dir <- system.file('extdata',package='cytofkit')
file <- list.files(dir, pattern='.fcs$', full=TRUE)
parameters <- list.files(dir, pattern='.txt$', full=TRUE)
## remove the hash symbol to run the following command
#cytofkit(fcsFile = file, markers = parameters)
Run the code above in your browser using DataLab