This repository holds the code needed to reproduce the analyses and figures presented in Lause et al. (2024). The code for the earlier version of the preprint from August 2023 can be found under the v1 release.
Some of the notebooks depend on each other.
All plots based on the Tasic 2018 dataset require 01_prepare_tasic to run first. Then,
- to reproduce Figures for the homogeneous within-cluster data (Figure 2, S1, S2, S4), run notebook
02 - to reproduce Figures for the full Tasic data (Figure 3, S5, S6, S8), run notebook
03to compute t-SNEs etc. and notebook04to make the figures - to reproduce Figure S7 for the Census/qUMI comparison, run Census and qUMI with
05_compute_tasic_qumis_census.R(using our separate R environment, see below for setup instructions), and then run notebooks06-08to load the data, process and plot - to reproduce Figure S9 for the Tasic-like simulated data, use notebooks
09-11to simulate, process and plot - to reproduce Figure 6, run notebook
16to prepare simulated data and notebook17to plot
All plots based on the reads-per-UMI tables from the Ziegenhain/Hagemann-Jensen datasets requires 12_prepare_ziegenhain to run first. Then,
- to reproduce the main Figures 4 and 5, run notebook
13 - to reproduce Figure S3 on Pseudogenes, run notebook
14 - to reproduce Figure S10 and S11 on per-cell amplification parameter estimates, run notebook
15
- Download the reads-per-UMI tables from zenodo and save them to
.data/reads_per_umi_tables/. R code to obtain the same tables from the public raw data is available indata/reads_per_umi_tables/prepare_data.R. - Download the Tasic raw count data from brain-map.org via the
Gene-level (exonic and intronic) read count values for all samples (zip)link. From these*.zipfiles, extract themouse_ALM_2018-06-14_exon-matrix.csvandmouse_VISp_2018-06-14_exon-matrix.csvto.data/tasic/. - All required metadata tables are contained in this repository for convenience.
We ran all notebooks in Python 3.8.10 on an Ubuntu machine with 40 CPUs and 440 GB RAM. The following package versions were used:
scanpy 1.9.0anndata 0.8.0sklearn 1.0.2numpy 1.21.5matplotlib 3.5.1openTSNE 0.6.0pandas 1.4.1seaborn 0.11.2mygene 3.2.2.scipy 1.8.0
Census and qUMI where run in a separate R conda environment specified in r41_env.yml. To install it, create the environment from that file with
conda env create -f r41_env.yml
Then, to install qUMI, activate the environment with conda activate r41_env_full, start R and run
remotes::install_github("willtownes/quminorm")