To use the code for each of the chapters detailed below the following packages need to be installed. The code below will install, where needed, and load all of the required packages.
# Install CRAN packages
pkgs <- c('ggplot2', 'grid', 'reshape', 'scales', 'bmp',
'RColorBrewer', 'SDMTools', 'stargazer', 'devtools',
'rpart', 'rattle', 'rpart.plot')
pkgs_not_installed <- pkgs[!(pkgs %in% installed.packages())]
for (pkg in pkgs_not_installed) {
install.packages(pkg, dependencies = TRUE,
character.only = TRUE, type = 'binary')
}
# Install FlowClust
devtools::install_bioc('flowClust', type = 'binary')
# Load all packages
lapply(c(pkgs, 'flowClust'), library, character.only = TRUE)
Additionally, to remove scientific notation of the numeric display values run:
options(scipen = 9999)
Produces a plot which displays:
- Rituximab data;
- Subjective Manual Gating;
- FlowClust Gating;
- Lattice Structure of data;
- Probability Map using Multi-Resolution Analysis;
- Clusters using Multi-Resolution Analysis.
Produces plots of flowClust
clustering on the Rituximab and GvHD Control
cytometry datasets.
Introduces the Generalised Binomial distribution with functions to compute PDF, CDF, quantiles and random samples. Generates plots which display:
- properties of the Generalised Binomial Distribution;
- statistical properties of the distribution for given sized structures;
- compare analytical and simulation results;
Note: the code in this file will take considerable time to run since the simulations are considerably large.
Using MCMC methods, and the methodology derived in Chapter 3 to clean and segment two image files.
Implementing multi-resolution components on top of the core methodology of Chapter 3 and the adapted MCMC approach of Chapter 4.
Applies the methods discussed and shown in Chapters 3, 4, and 5 to the rituximab and GvHD positive and control flow cyotometry samples. A comparison to the methods of Lo et al. is also included.