Skip to main content

GASTON: interpretable deep learning model for spatial transcriptomics

Project description

GASTON

GASTON is an interpretable deep learning model for learning a topographic map of a tissue slice from spatially resolved transcriptomics (SRT) data. Specifically, GASTON models gene expression topography by learning the isodepth, a 1-D coordinate that smoothly varies across a tissue slice.

The isodepth and topographic map learned by GASTON have many downstream applications including

  • identifying spatial domains,
  • inferring continuous gradients and discontinuous jumps in gene expression,
  • deriving maps of spatial variation in cell type organization,
  • analyzing continuous gradients in the tumor microenvironment

Installation

First install conda environment from environment.yml file:

cd GASTON
conda env create -f environment.yml

Then install GASTON using pip.

conda activate gaston-package
pip install -e .

Installation should take <10 minutes. We will add GASTON to PyPI and Bioconda soon!

Getting started

Check out our readthedocs, which includes tutorials for four analyses:

  • mouse cerebellum (Slide-SeqV2)
  • human colorectal tumor (10x Visium)
  • human breast cancer tumor (10x Xenium)
  • mouse cortex (MERFISH).

Training GASTON by following the tutorials should take <1 hour.

GASTON requires an NxG gene expression matrix (e.g. UMI counts) and an Nx2 spatial location matrix, which can be provided or read from Space Ranger output.

The data to run the tutorials is located in docs/notebooks/tutorials/. Note that due to Github size constraints, you have to download the counts matrices for both analyses from Google Drive.

Software dependencies

  • torch (=2.0.0)
  • matplotlib (=3.8.0)
  • pandas (=2.1.1)
  • scikit-learn (=1.3.1)
  • numpy (=1.23.4)
  • jupyterlab (=4.0.6)
  • seaborn (=0.12.2)
  • tqdm (=4.66.1)
  • scipy (=1.11.2)
  • scanpy (=1.9.5)
  • squidpy (=1.3.1)

See full list in environment.yml file. GASTON can be run on CPU or GPU.

Citations

The GASTON manuscript is available on bioRxiv. If you use GASTON for your work, please cite our paper.

@article {Chitra2023,
	author = {Uthsav Chitra and Brian J. Arnold and Hirak Sarkar and Cong Ma and Sereno Lopez-Darwin and Kohei Sanno and Benjamin J. Raphael},
	title = {Mapping the topography of spatial gene expression with interpretable deep learning},
	elocation-id = {2023.10.10.561757},
	year = {2023},
	doi = {10.1101/2023.10.10.561757},
	publisher = {Cold Spring Harbor Laboratory},
	URL = {https://www.biorxiv.org/content/early/2023/10/13/2023.10.10.561757},
	eprint = {https://www.biorxiv.org/content/early/2023/10/13/2023.10.10.561757.full.pdf},
	journal = {bioRxiv}
}

Support

For questions or comments, please file a Github issue and/or email Uthsav Chitra (uchitra@princeton.edu).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gaston_spatial-0.0.1.tar.gz (29.5 kB view details)

Uploaded Source

Built Distribution

gaston_spatial-0.0.1-py3-none-any.whl (31.2 kB view details)

Uploaded Python 3

File details

Details for the file gaston_spatial-0.0.1.tar.gz.

File metadata

  • Download URL: gaston_spatial-0.0.1.tar.gz
  • Upload date:
  • Size: 29.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for gaston_spatial-0.0.1.tar.gz
Algorithm Hash digest
SHA256 84a1871f7f908939e18e3b821d0b148ae8955fd2df1a27858a389bb12992d74d
MD5 24944f6b64a49f886733991cbcbf34f1
BLAKE2b-256 00ff792e1c180289227861e910abdaf5abfda4fdd733660aac3132cc74d92ef0

See more details on using hashes here.

File details

Details for the file gaston_spatial-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for gaston_spatial-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 005c1e786acddf82e96350214d174f5a06cc712eed39d32bc04b889f6558317d
MD5 a5ad96267d67be369c50ce7eade57616
BLAKE2b-256 c3323a5791390068bd9d5506da60b7ed4472db41ba8c6c3deb2a66e2095f9120

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page