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.2.tar.gz (46.6 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.2-py3-none-any.whl (58.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for novae-0.2.2.tar.gz
Algorithm Hash digest
SHA256 c043ebfd36d9818566d91d681ad076f899b8715f9d7cf6b6dd0cdaab1a3dfb96
MD5 a5a8697c1a123913e4813800c1dc3e0b
BLAKE2b-256 17bb15f95373e65ef861ab99083f4ef27d50515303f9aedee0fcc92a8adb8a1e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for novae-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 77cab4906060f2f2f7e7ea84ac2d0df525ecd6f6f523a0ae4925525a7e968441
MD5 3486035049545fef7c562a634a69fb1d
BLAKE2b-256 a8333189a3014408375774305dccc36111089a8c7887b20ceea825fc490282af

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