SPADE.driver(files, file_pattern="*.fcs", out_dir=".", cluster_cols=NULL, panels=NULL, comp=TRUE, arcsinh_cofactor=NULL, transforms=flowCore::arcsinhTransform(a=0, b=0.2), downsampling_samples=20000, downsampling_exclude_pctile=0.01, downsampling_target_pctile=0.05, k=200, clustering_samples=50000, layout=igraph:::layout.kamada.kawai, pctile_color=c(0.02,0.98))files is a director
asinh(data/arcsinh_cofactor) of data.
panels argument must be null or a list of panel descriptors, which are themselves lists containing at minimum a vector of panel files and median cols. An example minimum panels argument would be list( list(panel_files="basal.fcs", median_cols=NULL)) . panel_files is a single file name or vector of file names in the experiment. median_cols is similar to the cluster_cols argument. Each panel descriptor can optionally specifiy reference_files and columns for fold change analysis. An example full panel descriptor would be list( list(panel_files=c("basal.fcs", "stim.fcs"), median_cols=NULL, reference_files="basal.fcs", fold_cols=("p1"))) . fold_cols is similar to the cluster_cols argument. reference_files is a single file name or vector of file names in the experiment and in the panel_files for this experiment.
median_cols and fold_cols are only interpreted in the context on their panel files, and so partially overlapping panels are possible. However, all the files specified within a panel must have the cluster, median and fold change parameters specified.
# Load two-parameters sample data included in package
data_file_path = system.file(file.path("extdata","SimulatedRawData.fcs"), package = "spade")
# Run basic SPADE analyses, clustering on two parameters. Annotated graphs will be
# in output_dir. See SPADE.plot.trees to generate PDFs of annotated graphs.
output_dir <- tempdir()
SPADE.driver(data_file_path, out_dir=output_dir, cluster_cols=c("marker1","marker2"))
Run the code above in your browser using DataLab