Skip to main content

Geometry-aware network motif analysis for neocortical microcircuits

Project description

neuromotifs

Python tools to load neuronal microcircuit geometry, generate geometry-aware null models, and quantify over/under-expression of 3-node motifs.

Paper: Neuron Morphological Asymmetry Explains Fundamental Network Stereotypy Across Neocortex (Gal et al.)

Install

pip install neuromotifs
# or, for dev
pip install -e .[dev]

Highlights

  • Motif counting for directed triplets (#1-#13)
  • Geometry-driven random graph generators (1st-5th order) mirroring the paper’s models
  • Reproducibility notebooks for Figures 1-4
  • Simple CLI: neuromotifs motifs, neuromotifs generate, neuromotifs fit

Quickstart

import pandas as pd
from neuromotifs import MotifCounter, GeometricGenerator

edges = pd.read_csv('data/sample/l5_ttcps_edges.csv')      # u,v directed
pos   = pd.read_csv('data/sample/l5_ttcps_positions.csv')  # id,x,y,z

counter = MotifCounter.from_edges(edges)
counts = counter.count_triplets()
print(counts)

G = GeometricGenerator.from_positions(pos)
G2 = G.generate(order=3, p_mean=0.025)

Data

  • data/sample/ contains tiny demonstrators only.
  • For full datasets, see data/README.md for scripted download instructions.

Citing

Please cite the paper and this package (see CITATION.cff).

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

neuromotifs-0.1.0a0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

neuromotifs-0.1.0a0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file neuromotifs-0.1.0a0.tar.gz.

File metadata

  • Download URL: neuromotifs-0.1.0a0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for neuromotifs-0.1.0a0.tar.gz
Algorithm Hash digest
SHA256 c3e9b2b78d8fcb2ca3d5f7a76f9d64db4f44f81fa96063ff8dd558ac66430412
MD5 eb79019c2d4d1b63c56b50737c4e71d6
BLAKE2b-256 ff58e4613307ce421b38b964092252f239ed05b79c8a5fe9434c2bd361f7a8c9

See more details on using hashes here.

File details

Details for the file neuromotifs-0.1.0a0-py3-none-any.whl.

File metadata

  • Download URL: neuromotifs-0.1.0a0-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for neuromotifs-0.1.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 9e32577cc744daa9d61646d6863f0601f80bd1671fc789958e550fa1539ddc74
MD5 a0077fa306c4cccadba14786cf25cd1b
BLAKE2b-256 ce5bd91bf6d8c5251a8b999ee235f58ea9525b1ce2e73da09148348e74469c82

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