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.0.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.0-py3-none-any.whl (57.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: novae-0.2.0.tar.gz
  • Upload date:
  • Size: 46.6 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.0.tar.gz
Algorithm Hash digest
SHA256 84671a972e94dce1e149ad99ec174f33c28f939b7352cc3d60d44c2c9d106dd9
MD5 96e70de7c2e46747ff26ae7e57fc5b97
BLAKE2b-256 e10e050a89270b32bd488f8004b57fd78b329992e67bad01e890d9442b563b54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: novae-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 57.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d00d731db48a14ab534d7d66c5dbde4fc9112ea473434e44f50d08eb004b593
MD5 47acfd6a665bd19b5d938407aefd9635
BLAKE2b-256 a3a87663ea7a6271f0a5b52525748abc932df1be3a8ea3e3243345a6444d4411

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