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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spatialde_modern-1.1.3.post2.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

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

spatialde_modern-1.1.3.post2-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file spatialde_modern-1.1.3.post2.tar.gz.

File metadata

  • Download URL: spatialde_modern-1.1.3.post2.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for spatialde_modern-1.1.3.post2.tar.gz
Algorithm Hash digest
SHA256 cd48d3ceba2662cf18bc6a080171d0771b24a752fd81ade85103a110da0ffcdf
MD5 df5d86e398baacc8d0635555c37e00c6
BLAKE2b-256 026892c1bf17b3bd15fe03443cd186771554a8fc20e8476933dde30eb7430eec

See more details on using hashes here.

File details

Details for the file spatialde_modern-1.1.3.post2-py3-none-any.whl.

File metadata

File hashes

Hashes for spatialde_modern-1.1.3.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 c6099c457254eac38a9a510a70a3e53ab77f6e5f248847547d926f4b0f6bd4d5
MD5 a922b443c26e88539c6861e5b1a32b30
BLAKE2b-256 bccc12c5034f8ed9f3f584237fc3b1265ed50124b75518b895e20bb088c43e47

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 Sentry Error logging StatusPage Status page