This repository contains all code that is necessary to reproduce results shown in Wirth et al., 2023.
Further, it includes an analysis pipeline to compute the digital gene expression matrix from Dbit-seq or xDbit experiments. This part is partially based on the Split-seq toolbox: https://github.com/RebekkaWegmann/splitseq_toolbox.
If you have questions or suggestions, please feel free to open an issue or contact me directly.
v1.0
:- Initial version. Works for RNA reads only.
v2.0
:- ReadsToCounts:
- Fixed very important bug in
xDbit_run_batch.py
. - Analysis of feature reads along with RNA reads.
- Fixed very important bug in
- ReadsToCounts:
v2.1
:- Version for reproducing results of final publication. Includes all changes and new notebooks that have been added during the review process.
- ReadsToCounts:
- Optional analysis of interaction reads added (this feature has barely been tested).
2.2
:- Fixed circular import error and other bugs.
The main
branch corresponds to the latest version (currently v2.1
).
All Jupyter notebooks of the analyses performed in the publication can be found here.
xDbit allows the spatial barcoding (X, Y) of 9 tissue sections (Z) on one object slide.
The preprocessing pipeline of the xDbit toolbox consists of two steps to convert raw sequencing reads into a spot/gene count matrix with aligned images:
Both pipelines and more detailed instructions can be found in the linked folders.
Installed Anaconda or Miniconda Python distribution.
Further, the pipeline uses a bash script, custom Python scripts, and many tools from the Drop-seq toolbox (Mc Caroll lab, Harvard Medical school) as well as Picard (Broad institute), which are all included in this toolbox. It was created in a Linux server environment and the STAR alignment step requires more than 30 GB RAM.
git clone https://github.com/jwrth/xDbit_toolbox.git
# make drop seq toolbox executable
cd /path/to/repo/xDbit_toolbox
chmod u=rwx,g=r,o=r ./ReadsToCounts/external_tools/Drop-seq_tools-2.1.0/*
# install environment from file
conda env create -f environment_xdbit.yml python=3
# activate environment
conda activate xdbit
# to access parts of the pipeline in a Jupyter notebook install a kernel for this environment
conda install -c anaconda ipykernel
python -m ipykernel install --user --name xdbit --display-name "xdbit_kernel"
To load the xDbit_toolbox
as module run following code.
## Import the custom library
import os
import sys
# add xDbit toolbox path to path variable
module_path = os.path.abspath("../../")
if module_path not in sys.path:
sys.path.append(module_path)
import xdbit_funcs as db
The study was published in Nature Communications.
Spatially resolved transcriptomics of tissue sections enables advances in fundamental and applied biomedical research. Here, we present Multiplexed Deterministic Barcoding in Tissue (xDBiT) to acquire spatially resolved transcriptomes of nine tissue sections in parallel. New microfluidic chips were developed to spatially encode mRNAs over a total tissue area of 1.17 cm2 with a 50 µm resolution. Optimization of the biochemical protocol increased read and gene counts per spot by one order of magnitude compared to previous reports. Furthermore, the introduction of alignment markers allowed seamless registration of images and spatial transcriptomic spots. Together with technological advances, we provide an open-source computational pipeline to prepare raw sequencing data for downstream analysis. The functionality of xDBiT was demonstrated by acquiring 16 spatially resolved transcriptomic datasets from five different murine organs, including the cerebellum, liver, kidney, spleen, and heart. Factor analysis and deconvolution of spatial transcriptomes allowed for in-depth characterization of the murine kidney.
Wirth, J., Huber, N., Yin, K. et al. Spatial transcriptomics using multiplexed deterministic barcoding in tissue. Nat Commun 14, 1523 (2023). https://doi.org/10.1038/s41467-023-37111-w