Skip to main content

A Fast Topological Heuristic for Connectome Pacemakers

Project description

Phi-C ($\Phi_C$): Topological Connectome Pacemaker

Version License: AGPL v3 Python

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:

  1. Simplicial Nerve Scaling: A fast approximation of topological integration space using local clustering and eigenvector centrality.
  2. 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:

  1. Open Source: GNU AGPLv3 (Free for academic research and non-commercial public use).
  2. 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

syntropy_phi_c-0.1.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

syntropy_phi_c-0.1.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file syntropy_phi_c-0.1.1.tar.gz.

File metadata

  • Download URL: syntropy_phi_c-0.1.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for syntropy_phi_c-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b7f34769a776526e47ff7ef3787fcd193080c5ea759ce2fc02727397e80b9ff7
MD5 7319c639d43a519bf4ddf1a952e54bab
BLAKE2b-256 b6d14a1d49c454616fe9525f4f6eea312fdbb7fc4a09eb63ebba9795bd43c5a2

See more details on using hashes here.

File details

Details for the file syntropy_phi_c-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: syntropy_phi_c-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for syntropy_phi_c-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 036f1168dd55d76cc2a6f0aebb75f0c37883fb49bf4a9c456e8933da93b06ea9
MD5 e56cfbbd2e223a3e31f51f0a71624cba
BLAKE2b-256 3ae5c6c49f80d806cdcf201fccb27238a9035092b7d2ad36304de985a1158002

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