Skip to content

Morphospace library produced as a collaboration between Allen Discovery Center at Tufts University and California Institute of Machine Consciousness

Notifications You must be signed in to change notification settings

fractastical/morpholib

Repository files navigation

Infinite Morphospace

This repository presents a chronological exploration of morphogenesis and theoretical biology, from early mathematical models to modern computational approaches. The scripts demonstrate key concepts in reaction-diffusion systems, procedural shape generation, and classic models from the field.

Chronological Examples

Utilities to read a local PlanformDB SQLite/EDB file and extract yearly time series:

  • Experiments per year (via Experiment → Publication.Year)
  • Publications per year
  • Distinct morphologies observed per year (frequency > 0)

Produces a merged, gap-filled pandas.DataFrame and a quick matplotlib plot. Set DB_PATH at the top of the script to your .edb file path and run the script to print summary rows and show the timeline.

The parser produces a timeline like this (experiments/year, publications/year, and cumulative morphologies):

PlanformDB timeline: experiments, publications, and cumulative morphologies

A demonstration of D'Arcy Thompson's theory of transformations from On Growth and Form (1917), showing how one shape can be deformed into another through mathematical transformations. This classic work established the foundation for mathematical biology and the study of biological form.

A simulation of the Gray-Scott reaction-diffusion model, implementing Alan Turing's groundbreaking theory from "The Chemical Basis of Morphogenesis" (1952). This model generates classic Turing patterns like spots and stripes, demonstrating how simple chemical reactions can produce complex biological patterns.

Turing patterns (Gray–Scott)

Implements David Raup's classic model of shell coiling from "Geometric Analysis of Shell Coiling" (1966). This parametric model generates a variety of 3D shell forms by controlling whorl expansion rate (W), distance from coiling axis (D), translation rate (T), and generating curve shape (S). The model demonstrates how three core parameters can generate the vast diversity of mollusk shell morphologies observed in nature.

Raup shell coiling animation

Run python create_raup_animations.py to generate:

  • Animated GIF showing shells morphing through parameter space
  • Parameter space visualization exploring W, D, and T
  • Comparison with empirical shell forms (Nautilus, Turritella, Ammonite, etc.)

A reaction-diffusion demo inspired by Cervera–Levin–Mafe (2021), exploring morphogen antagonism and its effect on pattern formation. The model includes:

  • Antagonistic morphogens (m1, m2) on an antero-posterior axis with mutual annihilation
  • Independent morphogen (m3) on a lateral axis
  • Gap-junction blocking effects modeled through diffusion reduction
  • 3D morphospace visualization of mean expressions

Analysis Tools

A complete pipeline for detecting and tracking Ca²⁺ signaling waves in time-lapse microscopy images of embryos. Processes multi-page TIFF images to detect bright spark events, track them across frames, segment embryos, and generate comprehensive analysis outputs. Includes visualization tools and supports 16-bit scientific imaging data.

See wave-vector-analysis/README.md for full documentation.

Visualization Example

Flow field visualization showing spatial vector fields of Ca²⁺ wave propagation:

Ca²⁺ Wave Flow Field

Spatial vector field showing wave propagation directions and speeds. This visualization complements standard analysis tools by providing spatial flow patterns not available in direction distribution plots.

Nanopublication-related files including wave files (.trig format), hypothesis mappings, and scripts for processing and canonicalizing nanopublications. These tools enable structured representation and sharing of scientific findings in a machine-readable format.

See nanopubs/README.md for details.

About

Morphospace library produced as a collaboration between Allen Discovery Center at Tufts University and California Institute of Machine Consciousness

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published