wsphillips / Conductor.jl

Choo-choo
MIT License
61 stars 12 forks source link

Easily specify connections between neurons / networks #17

Open Antomek opened 2 years ago

Antomek commented 2 years ago

Would be great if we had functions to easily connect neurons directly, by specifying the dynamics of the synapse and (in the case of phenomenological models) specifying to which compartment the synapse goes.

For Networks this could be extended so that one can use an adjacency matrix / probability of connection presence, or loop over all the neurons and specify the connection between individual pairs.

wsphillips commented 2 years ago

NetworkSystem ought to solve this when it's done.

I've thought about the subcompartment addressing--we can solve this by adding metadata to network nodes which hold "parent_id" and "subindex". Directed edges then run from output (index 0) to target compartments.

wsphillips commented 1 year ago

There is API support for specifying connections between neurons but we should have better support for taking an adjacency matrix as input. The performance scaling of add_synapse! is rather poor, too.