A Fast Topological Heuristic for Connectome Pacemakers
Project description
Phi-C ($\Phi_C$): Topological Connectome Pacemaker
Phi-C is a high-performance Python library designed to rapidly identify Central Pattern Generators (CPGs) and rhythmic pacemakers in massive biological connectomes using algebraic topology.
Developed by the Syntropy Project (Alex Lopes da Silva).
🧠 The Problem
Finding autonomous oscillating regions in a brain (like the ones controlling breathing or locomotion) usually requires simulating the entire dynamic chemistry of the network, which becomes computationally intractable $O(2^N)$ in large mammalian brains.
Furthermore, naive structural density metrics often fall into the "Cerebellar Trap": flagging massive, dense, but purely feed-forward structures (like the cerebellum) as pacemakers.
⚡ The Solution
phi-c acts as a structural $O(N)$ pre-filter. We combine two mathematical concepts:
- Simplicial Nerve Scaling: A fast approximation of topological integration space using local clustering and eigenvector centrality.
- Motif Discriminator: A strict graph-theoretic filter that penalizes unidirectional cliques and actively seeks reciprocal feedback loops ($A \rightleftharpoons B$).
By crossing these two metrics, the library instantly filters out false-positives and returns the absolute topological anatomical hotspots driving the network rhythm.
📦 Installation
(Pending PyPI release)
pip install syntropy-phi-c
🚀 Quick Start
The library takes any standard directed graph (like a connectome exported from Electron Microscopy data) and returns the top pacemaker nodes.
import networkx as nx
from phi_c.pacemaker import find_pacemaker
# 1. Load a brain connectome (e.g., C. elegans)
connectome = nx.read_graphml("worm_brain.graphml")
# 2. Extract the top 5 Central Pattern Generators in milliseconds
cpg_hotspots = find_pacemaker(connectome, top_k=5)
# 3. View the results
for rank, (neuron, score) in enumerate(cpg_hotspots, 1):
print(f"#{rank} - Neuron: {neuron} | Phi-C Score: {score:.2f}")
📜 License
This project is dual-licensed:
- Open Source: GNU AGPLv3 (Free for academic research and non-commercial public use).
- Commercial License: For enterprise usage in proprietary medical software or SaaS APIs without AGPL obligations, please contact the author.
Copyright (C) 2026 Syntropy Project (Alex Lopes da Silva) and Contributors.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file syntropy_phi_c-0.2.0.tar.gz.
File metadata
- Download URL: syntropy_phi_c-0.2.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c87f34e8de4a8c215790dbd6325dc59a9bc2548d24f2c88fb84a1e231ea27dc5
|
|
| MD5 |
01041e79a5d2c10af2c35bfe02cc9efc
|
|
| BLAKE2b-256 |
8a2cfaba81e503c7cf064eefbfefa413fdfcc4bbf16b30159385d3b94c29607c
|
File details
Details for the file syntropy_phi_c-0.2.0-py3-none-any.whl.
File metadata
- Download URL: syntropy_phi_c-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb32e1920027ed2c99807f207db052adf17d43767b520ee35356d8edb1e4dc9b
|
|
| MD5 |
6b0250ad15be81ff4b39c5979f687f39
|
|
| BLAKE2b-256 |
2c7369edebebd109c87f1023dd4dbd2b8715734b0c26e5c7d03120df943d6740
|