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

Đang mở
#1,167 4 bình luận 0 reaction 2 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@annmoel đang làm issue này rồi.

Từ ngày 8/10/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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

Ngôn ngữ chính
Python
Star
362
Fork
73
Merge trung bình
1 ngày 21 giờ
Pull request đã merge (30 ngày)
25

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của scverse/pertpy

Tất cả issue của scverse/pertpy

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.