To run the simulation code, enter simulations and then:
- Run
lowcounts.Rto perform the low-count simulations, orbrittlesim.Rto perform the high-count simulations. - Run
standerr.Rto estimate the variance of the size factor estimates across methods. - Run
poolsim.Rto compare the variability of the estimates with and without the ring arrangement. - Run
complexity.Rto 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
datasubdirectory and download the Zeisel et al. tables (http://linnarssonlab.org/cortex) and the Klein data (supplementary tables in GSM1599494, GSM1599499). - Enter the
realdatadirectory and runZeisel.RandKlein.Rto pre-process the data and estimate size factors for all cells in each of those two data sets. - Run
edgeR.Rto identify DE genes in each data set, andGOAnalysis.Rto perform a GO analysis on the DE genes. - Run
HVGAnalysis.Rto identify highly variable genes in each data set. - Run
switchTestedgeR.Rto 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.