Skip to content

Add TAU Community Detection - #381

Merged
flying-sheep merged 1 commit into
scverse:mainfrom
HillelCharbit:add-tau-community-detection
Jul 21, 2026
Merged

Add TAU Community Detection#381
flying-sheep merged 1 commit into
scverse:mainfrom
HillelCharbit:add-tau-community-detection

Conversation

@HillelCharbit

Copy link
Copy Markdown
Contributor

Package submission

Name: TAU Community Detection

TAU is an evolutionary graph community-detection algorithm combining genetic
search with Leiden refinement. It provides native support for clustering
Scanpy neighbor graphs stored in AnnData.

Use of scverse data structures

TAU reads graph connectivities from AnnData.obsp, including Scanpy's default
neighbor graph, custom obsp keys, and graphs selected through
neighbors_key.

It stores categorical cluster assignments in AnnData.obs and records
clustering parameters and modularity in AnnData.uns.

Mandatory checklist

  • Publicly available under an OSI-approved license
  • Provides versioned releases
  • Installable from PyPI
  • Includes automated tests
  • Includes continuous integration
  • Public API documentation is available in the README
  • Uses AnnData where appropriate
  • I am an author and maintainer and agree to the package being listed

Links

Scanpy integration

Installation:

pip install "tau-community-detection[scanpy]==1.4.7"

Example:

import scanpy as sc
from tau_community_detection.tl import tau

sc.pp.neighbors(adata)
tau(
    adata,
    key_added="tau",
    resolution=1.0,
    random_state=42,
)

The integration is tested for graph selection, weighted and unweighted
clustering, reproducibility, isolated vertices, copy and in-place behavior,
multiple resolutions, and comparisons with Leiden and Louvain.

@flying-sheep flying-sheep left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, this looks great!

@flying-sheep
flying-sheep merged commit 100d915 into scverse:main Jul 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants