Skip to main content

NicheEnergy

NicheEnergy is a disentanglement-based self-supervised framework for identifying spatial niches. It learns intrinsic and niche states within a variational autoencoder using disentangled representation learning and state-modulated Dirichlet energy. NicheEnergy provides label-free niche identification across tissues and modalities and is implemented with scvi-tools and PyTorch.

NicheEnergy overview

System requirements

OS requirements

The tutorial uses an NVIDIA GPU and has been run on Linux x86_64 with Python 3.10.14 and PyTorch 2.5.1.

Dependencies

See setup.cfg for package dependencies and config.txt for the pinned package versions.

Installation

NicheEnergy requires Python 3.10. Install with:

pip install nicheenergy

See the installation guide for GPU setup and installation from source.

Documentation

The MERFISH tutorial shows training loss, z/s UMAPs colored by cell type, reference cortical layers and batch, spatial niche identification, state-modulated Dirichlet energy, and saving results. Dataset preparation and the study analyses are in the companion NicheEnergy_reproducibility repository.

Usage

For detailed usage, follow our tutorial:

Data and preparation:

Metadata

Release files for nicheenergy 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nicheenergy 0.1.0
File Size Uploaded Provenance Actions
nicheenergy-0.1.0.tar.gz 29.0 kB With provenance Details for nicheenergy-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nicheenergy 0.1.0
File Interpreter ABI Platform Actions
nicheenergy-0.1.0-py3-none-any.whl Python 3 none any Details for nicheenergy-0.1.0-py3-none-any.whl

Total release size: 57.7 kB

Release files / nicheenergy-0.1.0.tar.gz

Download URL nicheenergy-0.1.0.tar.gz
Size 29.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9fce6fac5dd2c785b021ca46da6cca354f6484a9a80b8c0dcf5961784372f476
BLAKE2b-256 checksum
How to use checksums
a647e9733b73695c8b6a40552c3000790a388e76e5d6fe6d4c2d6204b9eb84ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Release files / nicheenergy-0.1.0-py3-none-any.whl

Download URL nicheenergy-0.1.0-py3-none-any.whl
Size 28.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44d85df67e5817de7cdc64a8154a57b4474e858a03d49ddec46d21d28df05c5d
BLAKE2b-256 checksum
How to use checksums
7e87227a91ddca09774216557e71971f3e9435bf9a6aad9826428285e3bb75b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Security for nicheenergy 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nicheenergy-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page