Skip to main content

SpatialDE Modern

spatialde-modern is a maintained fork of SpatialDE, a method for identifying genes whose expression depends on spatial or temporal coordinates.

The distribution keeps the original SpatialDE import package and numerical API while supporting current Python, NumPy, pandas, and SciPy releases. It is published under a distinct distribution name so it cannot be confused with an official release from the original authors.

Installation

pip install spatialde-modern

The import name remains unchanged:

import SpatialDE

Minimal example

import pandas as pd
import SpatialDE

coordinates = pd.DataFrame({"x": [0, 0, 1, 1], "y": [0, 1, 0, 1]})
expression = pd.DataFrame(
    {
        "gene_a": [0.1, 0.2, 1.1, 1.2],
        "gene_b": [0.5, 0.4, 0.6, 0.5],
    }
)

results = SpatialDE.run(coordinates, expression)

Maintenance scope

This repository contains only the maintained Python distribution. The original paper analyses, datasets, notebooks, R implementation, and historical Stan experiments remain available in the upstream repository. They are not runtime dependencies and are intentionally excluded here.

Compatibility fixes in this fork include:

  • replacement of the removed scipy.misc.derivative API;
  • conversion of removed top-level SciPy array aliases to NumPy;
  • support for current pandas array semantics;
  • built-in stabilize and regress_out preprocessing, replacing the separate NaiveDE runtime dependency used by the original command-line workflow;
  • modern PEP 517/621 packaging with complete runtime dependencies;
  • isolated wheel builds and real numerical smoke tests in CI.

Attribution and license

SpatialDE was created by Valentine Svensson and collaborators. This maintained fork preserves the original MIT license and records its upstream base in NOTICE.md.

Metadata

Release files for spatialde-modern 1.1.3.post2

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

Source distribution (sdist)

Source distribution for spatialde-modern 1.1.3.post2
File Size Uploaded
spatialde_modern-1.1.3.post2.tar.gz 16.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spatialde-modern 1.1.3.post2
File Interpreter ABI Platform
spatialde_modern-1.1.3.post2-py3-none-any.whl Python 3 none any Details

Total release size: 35.1 kB

Release files / spatialde_modern-1.1.3.post2.tar.gz

Download URL spatialde_modern-1.1.3.post2.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
cd48d3ceba2662cf18bc6a080171d0771b24a752fd81ade85103a110da0ffcdf
BLAKE2b-256 checksum
How to use checksums
026892c1bf17b3bd15fe03443cd186771554a8fc20e8476933dde30eb7430eec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / spatialde_modern-1.1.3.post2-py3-none-any.whl

Download URL spatialde_modern-1.1.3.post2-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6099c457254eac38a9a510a70a3e53ab77f6e5f248847547d926f4b0f6bd4d5
BLAKE2b-256 checksum
How to use checksums
bccc12c5034f8ed9f3f584237fc3b1265ed50124b75518b895e20bb088c43e47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release history Release notifications | RSS feed

This release

1.1.3.post2 This release

2 release files

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