Description Usage Arguments Details Value Author(s) References See Also Examples
The main function to drive the cytofkit workflow.
1 2 3 4 5 6 7 8 9 10 | cytofkit(fcsFiles = getwd(), markers = "parameter.txt",
projectName = "cytofkit", ifCompensation = FALSE,
transformMethod = c("autoLgcl", "cytofAsinh", "logicle", "arcsinh", "none"),
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, ...)
|
fcsFiles |
It can be either the path where stores your FCS files or a vector of FCS file names. |
markers |
It can be either a text file where contains the makers to be used for analysis or a vector of the marker names. |
projectName |
A prefix that will be added to the names of all result files. |
ifCompensation |
Either boolean value tells if do compensation (compensation matrix contained in FCS), or a compensation matrix to be applied. |
transformMethod |
Data Transformation method, including |
mergeMethod |
When multiple fcs files are selected, cells can be combined using
one of the four different methods including |
fixedNum |
The fixed number of cells to be extracted from each FCS file. |
dimReductionMethod |
The method used for dimensionality reduction, including |
clusterMethods |
The clustering method(s) used for subpopulation detection, including |
visualizationMethods |
The method(s) used for visualize the cluster data, including |
progressionMethod |
Use the first ordination score of |
FlowSOM_k |
Number of clusters for meta clustering in FlowSOM. |
clusterSampleSize |
The uniform size of each cluster. |
resultDir |
The directory where result files will be generated. |
saveResults |
If save the results, and the post-processing results including scatter plot, heatmap, and statistical results. |
saveObject |
Save the resutls into RData objects for loading back to R for further analysis |
... |
Other arguments passed to |
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
.
a list containing expressionData
, dimReductionMethod
, visualizationMethods
, dimReducedRes
, clusterRes
, progressionRes
, projectName
, rawFCSdir
and resultDir
. If choose 'saveResults = TRUE', results will be saved into files under resultDir
.
Hao Chen, Jinmiao Chen
http://signbioinfo.github.io/cytofkit/
cytofkit
, cytofkit_GUI
, cytofkitShinyAPP
1 2 3 4 5 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.