Replies: 3 comments 6 replies
-
|
Hi Ian, what you are doing with the synapses already sounds about right. You just select the pre and post compartments based on their xyz locations, i.e. via something like . # 1) connect to appropriate comps
net.compute_compartment_centers()
comp_centers = net.nodes[["x", "y", "z"]].values
pre_dists = scipy.spatial.distance.cdist(comp_centers, synapse_locs_pre)
pre_inds = np.argmin(pre_dists, axis=1)
post_dists = scipy.spatial.distance.cdist(comp_centers, synapse_locs_post)
post_inds = np.argmin(post_dists, axis=1)
jx.connect(net.select(pre_inds), net.select(post_inds), SomeSynapse())and then stimulate or clamp the upstream neurons with # 2) set upstream neuron to fire according to some pattern
net.select(pre).stimulate(some_stimulus) # this would stimulate all upstream comps, if you only want to stimulate the soma of the upstream neuron, then you'd have to filter for the cells, i.e. net.select(pre).soma.stimulate(some_stimulus)if you want the upstream voltage to behave according to some function then instead of using stimulate you just clamp the voltage with I did not run the code above, but schematically, this should work :) Lemme know if that answers your question / if this does what you intended, otherwise don't hesitate to follow up. Jonas |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
If I have a lot of neurons upstream (about 800 with 15K synapses) using the |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Hey there!
Very cool library. I've got a neuron morphology that I'm loading in via the SWC and I've got synapse (x,y,z) locations. I'd like to "attach" them to the network. I have some code that would allow me to map these synapses to specific compartment indices. How might I: 1) "attach" these to the appropriate compartments and 2) set specific upstream neurons to fire according to some pattern(s)? I don't really care about the biophysical simulation of these upstream neurons - just that all synapses belonging to one of the upstream ones fire at the same time
Direction
I see that there is assembling-cells-into-a-network but it's not quite what I'm looking for (I don't think)
I also see jaxley.connect.connect, which I think might work? but the impression I get is that I need to define an actual network there
Would Jaxley work for my usecase?
Beta Was this translation helpful? Give feedback.
All reactions