This repository contains notebooks and scripts to reproduce analyses benchmarking the use of resolVI for spatial transcriptomics. Raw data is available at the vendor webpage for all commercial assays and on dryad for the MERFISH data. Processed data will be made available on dryad and can be shared upon reasonable request from AWS.
We recommend reviewing the scvi-tools documentation to get started.
We provide here all notebooks to reproduce the results (notebooks with all outputs are managed by lfs).
-
analysis notebooks and scripts:
figure1.ipynb
- notebook to recreate molecule displays in figure 1figure2_final.ipynb
- notebook to recreate benchmarking in Figure 2 on Xenium brain data.figure3_vizgen.ipynb
- notebook to recreate figure 3 with benchmarking different segmentation on the liver cancer Vizgen MERSCOPE data.figure4_nanostring.ipynb
- notebook to recreate figure 4 highlighting spatial niches in human liver cancer using Nanostring CosMx data.figure4_suppl_stereoseq.ipynb
- notebook to recreate analysis of Stereo-SEQ brain data.figure5_ibd.ipynb
- notebook to recreate figure 5 analyzing DSS colitis using MERFISH.figure5_ibd_abundance.ipynb
- notebook to recreate most of the differential abundance analysis in DSS colitis (rest infigure5_ibd.ipynb
).
-
segmentation scripts We store all scripts necessary to segment and annotate the raw data in the folder
notebooks_segmentation
, which contains files to segment and annotate Nanostring CosMx, Vizgen MERSCOPE and 10X Xenium data. For Nanostring CosMx, we show here diverse segmentation strategies (including ProSeg), while in the manuscript we only discuss the results after Baysor segmentation. -
training scripts We store all scripts necessary to retrain all models in
training_scripts
, which contains files with commands to initialize training, marker genes used for initial double-positive calculcation andtraining_scripts/run_model.py
which takes shell inputs, trains the model and generates a diverse set of evaluation metrics.
For any questions, please post an issue or reach out on discourse.