# WormBrain source

`weights.js` contains the connectome weight table adapted from [WormBrain](https://github.com/leparlon/WormBrain), commit `9cd6480f6b74f4edb18dfd3cb058aaab8142bc6f`, by leparlon. Its MIT license is included in [WORMBRAIN_LICENSE.txt](WORMBRAIN_LICENSE.txt).

`brain.js` is a browser adaptation of WormBrain's threshold propagation, sensory neuron groups, and motor-class readout. Its steering also uses the activity difference in paired interneurons. The potential decay follows [worm-sim](https://github.com/heyseth/worm-sim), which WormBrain credits as its foundation.

Worm Lab adds explicit direct-current inputs (normalized strength 1 maps to 30 arbitrary units), stable readout/update phases, cell and connection interventions, immutable telemetry, complete checkpoints and deterministic paired experiments. `simulation.js` maps the neural readout to schematic movement with separately reported odor assistance and boundary correction. These are application-level adaptations, not claims made by the source project. The model and rendering do not claim biological accuracy; potential is not expressed in millivolts and displayed muscle activity is not calibrated force.
