To run the simulation code, enter simulations
and then:
- Run
lowcounts.R
to perform the low-count simulations, orbrittlesim.R
to perform the high-count simulations. - Run
standerr.R
to estimate the variance of the size factor estimates across methods. - Run
poolsim.R
to compare the variability of the estimates with and without the ring arrangement. - Run
complexity.R
to determine the time-complexity of the deconvolution method.
You can also run fewcounts.R
to see behaviour with few cells, or highcounts.R
to see behaviour at very high counts.
The moresims
directory contains additional simulations under various scenarios that were not included in the publication.
To run the real data analysis code:
- Make a
data
subdirectory and download the Zeisel et al. tables (http://linnarssonlab.org/cortex) and the Klein data (supplementary tables in GSM1599494, GSM1599499). - Enter the
realdata
directory and runZeisel.R
andKlein.R
to pre-process the data and estimate size factors for all cells in each of those two data sets. - Run
edgeR.R
to identify DE genes in each data set, andGOAnalysis.R
to perform a GO analysis on the DE genes. - Run
HVGAnalysis.R
to identify highly variable genes in each data set. - Run
switchTestedgeR.R
to perform the offset/covariate switching analysis.
Also, run plotKleinParam.R
to generate plots that justify parameter settings in the simulations.
The manuscript
directory contains all LaTeX code used to generate the manuscript.
This can be compiled with make
.