Skip to main content

Graph-based foundation model for spatial transcriptomics data

Project description

novae_banner

PyPI Downloads Docs Build License codecov uv Ruff

💫 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.

[!NOTE] Novae was developed by the authors of sopa and is part of the scverse ecosystem. Read our article here.

[!TIP] Recent updates:

  1. We added a new improved model, check the corresponding tutorial here.
  2. We also added a tutorial for automated labeling.

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

novae can be installed from PyPI on all OS, for any Python version >=3.11.

pip install novae

[!NOTE] See this installation section for more details about extras and other installations modes.

Usage

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

import novae

# compute cell neighbors
novae.spatial_neighbors(adata)

# load a pre-trained model
model = novae.Novae.from_pretrained("prism-oncology/novae-human-0")

# compute spatial domains
model.compute_representations(adata, zero_shot=True)
model.assign_domains(adata)

Cite us

Our article is published in Nature Methods. You can cite Novae as below:

Blampey, Q., Benkirane, H., Bercovici, N. et al. Novae: a graph-based foundation model for spatial transcriptomics data.
Nat Methods (2025). https://doi.org/10.1038/s41592-025-02899-6

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-1.1.0.tar.gz (59.3 kB view details)

Uploaded Source

Built Distribution

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

novae-1.1.0-py3-none-any.whl (77.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: novae-1.1.0.tar.gz
  • Upload date:
  • Size: 59.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.20

File hashes

Hashes for novae-1.1.0.tar.gz
Algorithm Hash digest
SHA256 1c551cc801c120930b343ebba533d40e086c576dd08aa6aef5500e57f70a5561
MD5 53b10edf0962ba10bfcc3bc13b6a15ac
BLAKE2b-256 ad850b36cc6e6302e9a784fe2a1da9b7610738e19edfb4e95f48f8c0f03197ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: novae-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 77.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.20

File hashes

Hashes for novae-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bfa0cc7e19a039cda296cd99a4bf97da00c4a6b61888ab1d05616ed602e55bf7
MD5 712f881a2e992621a7e95964229ec01c
BLAKE2b-256 d4f4a14f5aba3edb1d91f129a6c242d18e43d0ef8da3c1224e4c8580d0214b8c

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