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.3.0.tar.gz (6.4 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.3.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: syntropy_phi_c-0.3.0.tar.gz
  • Upload date:
  • Size: 6.4 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.3.0.tar.gz
Algorithm Hash digest
SHA256 d08a190e3e1012a3a7b07892c0bafe519424afb7f60b18814a6a7313ec0027e3
MD5 050f95724658d4e5aa8a9aa7a84e661c
BLAKE2b-256 d74acba14b3dc5b4e3be9e073daa244e04668c2950c5c58ef025d4d75001a5b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: syntropy_phi_c-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 12934cfc144bde8042808a386407fb68492886c2a1c99dfe0e18bfed6d68635d
MD5 fad480123da6095a937af114e8567b90
BLAKE2b-256 5f08134005b9f7ae3159b6d323400df6c4fb61b0e73a7f2ba5b97ab6aa79a3ca

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