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 11 12 | 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("umap", "tsne", "pca",
"isomap"), umap_neighbor = 30, umap_min_dist = 0.3,
clusterMethods = c("Rphenograph", "ClusterX", "DensVM", "FlowSOM",
"NULL"), visualizationMethods = c("umap", "tsne", "pca", "isomap",
"NULL"), progressionMethod = c("NULL", "diffusionmap", "isomap"),
Rphenograph_k = 30, FlowSOM_k = 40, seed = NULL,
clusterSampleSize = 500, resultDir = getwd(), saveResults = TRUE,
saveObject = TRUE, openShinyAPP = FALSE, ...)
|
fcsFiles |
It can be either the path where your FCS files are stored or a vector of FCS file names. |
markers |
It can be either a text file that containing markers 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 |
Boolean value, to apply compensation contained in FCS, or a compensation matrix. |
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 |
Rphenograph_k |
Integer number of nearest neighbours to pass to Rphenograph. |
FlowSOM_k |
Number of clusters for meta clustering in FlowSOM. |
seed |
Integer to set a seed for reproducible results. |
clusterSampleSize |
The uniform size of each cluster. |
resultDir |
The directory where result files will be generated. |
saveResults |
Save the results, and the post-processing results including scatter plot, heatmap, and statistical results. |
saveObject |
Save the results into RData objects for loading back to R for further analysis |
openShinyAPP |
Opens the shinyAPP automatically when the analysis was done, default FALSE. |
... |
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
https://github.com/JinmiaoChenLab/cytofkit
cytofkit
, cytofkit_GUI
, cytofkitShinyAPP
1 2 3 4 5 | dir <- system.file('extdata',package='cytofkit2')
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.