Skip to main content

Graph-based foundation model for spatial transcriptomics data

Project description

novae_banner

PyPI Downloads Docs Build Code Style License Imports: isort codecov

💫 Graph-based foundation model for spatial transcriptomics data

Novae is a deep learning model for spatial domain assignments of spatial transcriptomics data (at both single-cell or spot resolution). It works across multiple gene panels, tissues, and technologies. Novae offers several additional features, including: (i) native batch-effect correction, (ii) analysis of spatially variable genes and pathways, and (iii) architecture analysis of tissue slides.

Documentation

Check Novae's documentation to get started. It contains installation explanations, API details, and tutorials.

Overview

novae_overview

(a) Novae was trained on a large dataset, and is shared on Hugging Face Hub. (b) Illustration of the main tasks and properties of Novae. (c) Illustration of the method behind Novae (self-supervision on graphs, adapted from SwAV).

Installation

PyPI

novae can be installed via PyPI on all OS, for python>=3.10.

pip install novae

Editable mode

To install novae in editable mode (e.g., to contribute), clone the repository and choose among the options below.

pip install -e .                 # pip, minimal dependencies
pip install -e '.[dev]'          # pip, all extras
poetry install                   # poetry, minimal dependencies
poetry install --all-extras      # poetry, all extras

Usage

Here is a minimal usage example. For more details, refer to the documentation.

import novae

model = novae.Novae.from_pretrained("MICS-Lab/novae-human-0")

model.compute_representations(adata, zero_shot=True)
model.assign_domains(adata)

Cite us

You can cite our preprint as below:

@article{blampeyNovae2024,
  title = {Novae: A Graph-Based Foundation Model for Spatial Transcriptomics Data},
  author = {Blampey, Quentin and Benkirane, Hakim and Bercovici, Nadege and Andre, Fabrice and Cournede, Paul-Henry},
  year = {2024},
  pages = {2024.09.09.612009},
  publisher = {bioRxiv},
  doi = {10.1101/2024.09.09.612009},
}

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

novae-0.2.1.tar.gz (47.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

novae-0.2.1-py3-none-any.whl (58.8 kB view details)

Uploaded Python 3

File details

Details for the file novae-0.2.1.tar.gz.

File metadata

  • Download URL: novae-0.2.1.tar.gz
  • Upload date:
  • Size: 47.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.11 Linux/6.5.0-1025-azure

File hashes

Hashes for novae-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b067f031191b993f82dc14b77f5ca1256db3007c6476e37173c348c708ecdeb2
MD5 ae3e65e0f0727eef0d7dd2a166431aa2
BLAKE2b-256 9f93923bb791e853c745c631f43ca39f260038505a6bda9d4dcd9f142cb3cf6d

See more details on using hashes here.

File details

Details for the file novae-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: novae-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 58.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.11 Linux/6.5.0-1025-azure

File hashes

Hashes for novae-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9903442f01d77a299ba7ee9599d07403d39494338091881a32b3bfcbacca2854
MD5 21305e033778e7ede6ed28d74ec5b938
BLAKE2b-256 45ffadbba64934a2017921731b5e4f1404548ed74f42184a3625aef374ed6d53

See more details on using hashes here.

Supported by

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