kharchenkolab / Baysor

Bayesian Segmentation of Spatial Transcriptomics Data
https://kharchenkolab.github.io/Baysor/
MIT License
155 stars 31 forks source link
bayesian segmentation spatial-transcriptomics xenium

Baysor

Bayesian segmentation of imaging-based spatial transcriptomics data

News ([0.7.0] — 2024-09-13)

Warning: the current version isn't compatible with Julia 1.11. See how to set up Julia 1.10 here.

See the changelog for more detalis.

Overview

Baysor is a tool for performing cell segmentation on imaging-based spatial transcriptomics data. It optimizes segmentation considering the likelihood of transcriptional composition, size and shape of the cell. The approach can take into account nuclear or cytoplasm staining, however, can also perform segmentation based on the detected molecules alone. The details of the method are described in the paper, or pre-print (old version of the text). To reproduce the analysis from the paper see BaysorAnalysis repo.

Usage

See the documentation for usage instructions.

Installation

For more details and alternative ways of installation see the documentation

Binary download

The easiest way to install Baysor on Linux is to download a binary from the release section (see Assets). There, you can use bin/baysor executable. For other platforms, "Install as a Julia package" is a recommended way.

Install as a Julia package

Install Julia:

curl -fsSL https://install.julialang.org | sh

Install Baysor:

julia -e 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/kharchenkolab/Baysor.git")); Pkg.build()'

Citation

If you find Baysor useful for your publication, please cite:

Petukhov V, Xu RJ, Soldatov RA, Cadinu P, Khodosevich K, Moffitt JR & Kharchenko PV.
Cell segmentation in imaging-based spatial transcriptomics.
Nat Biotechnol (2021). https://doi.org/10.1038/s41587-021-01044-w