Add scXMatch to tools (statistical test for global distribution shifts)

Abierto
#1,167 4 comentarios 0 reacciones 2 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@annmoel ya está trabajando en esto.

Desde el 8/10/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

enhancement
Description of feature

Hello @Zethson and fellow pertpy people,

first of all thank you for all your work, it has really made my life easier in many aspects. Most recently for the validation and benchmarking of scXMatch, a statistical test for multivariate data that has just been published in Bioinformatics (paper: https://academic.oup.com/bioinformatics/article/42/10/btag706/8860685, code: https://github.com/bionetslab/scxmatch). The test is non-parametric, does not assume an underlying distribution, works on any data for which a suitable distance measure is available (we validated on scRNA-seq, scATAC-seq, and morphology data), and scales nicely to realistically sized experiments. It's already part of the scverse ecosystem.

We were thinking that this might be a good addition to Pertpy.Tools. Unfortunately, the current (very fast) implementation is based on graph-tool with C++ dependencies (not pip-installable). To get around this, we would suggest that the matching step happens backend-agnostic, with networkx as default (pure python, lightweight, but slower on large datasets), while graph-tool stays available as optional backend. If someone requests it without having it installed, they would get a message explaining that it has to be installed via conda or pixi.

Are you generally open to this? If so, I would prepare the PR with both backends adding pertpy.Tools.scXMatch and keep things analogous to pertpy.Tools.Distance.

Looking forward to hearing what you think!

Best regards,
Anna

Lenguaje dominante
Python
Estrellas
362
Forks
73
Merge medio
1 d 21 h
PR fusionados (30 d)
25

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de scverse/pertpy

Todos los issues de scverse/pertpy

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.