Skip to content

Analysis pipeline for multiplexed Deterministic Barcoding in Tissue (xDBiT)

License

Notifications You must be signed in to change notification settings

jwrth/xDBiT_toolbox

Repository files navigation

DOI

xDBiT_toolbox

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.

Versions

  • 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.
  • 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).

Contents

  1. Introduction

  2. Get started

  3. Preprint

All Jupyter notebooks of the analyses performed in the publication can be found here.

Introduction

Barcoding layout

xDbit allows the spatial barcoding (X, Y) of 9 tissue sections (Z) on one object slide.

layout

Read structure

readstructure

xDbit toolbox preprocessing pipeline

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:

  1. ReadsToCounts
  2. CountsToAnndata

Both pipelines and more detailed instructions can be found in the linked folders.

Get started

Requirements

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.

Installation

Clone repository

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 python environment

# 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"

Use toolbox as python module

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

Publication

Spatial Transcriptomics Using Multiplexed Deterministic Barcoding in Tissue

The study was published in Nature Communications.

Abstract

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.

How to Cite

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

About

Analysis pipeline for multiplexed Deterministic Barcoding in Tissue (xDBiT)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages