Animation of synapse activation
Posted: Fri Aug 17, 2018 7:31 am
Hi all,
I have a model with a detailed morphology that I drive with synaptic input (of Exp2syn type).
I would now like to visualize the synaptic activation in a animation/movie, i.e. map the synaptic current onto the morphology over time.
Is there a best practice for this?
I have made a clumsy quick fix using a custom made mechanism, spikeMonitor, that maps the point process nature of the synapse onto a range variable (using pointers). I can then capture the state of this range variable, during the simulation using PlotShape().
Another idea is to add a marker indicating the approximate location of the synapse on top of the morphology and change the color of this to indicate activation.
What would you recommend? Or even better is there a ready a solution for this?
I have a model with a detailed morphology that I drive with synaptic input (of Exp2syn type).
I would now like to visualize the synaptic activation in a animation/movie, i.e. map the synaptic current onto the morphology over time.
Is there a best practice for this?
I have made a clumsy quick fix using a custom made mechanism, spikeMonitor, that maps the point process nature of the synapse onto a range variable (using pointers). I can then capture the state of this range variable, during the simulation using PlotShape().
Code: Select all
COMMENT
Spike detection mechanism for visualization of synaptic input onto the morphology
ENDCOMMENT
NEURON {
THREADSAFE
SUFFIX spikeMonitor
RANGE spike, fake
POINTER I
}
PARAMETER {
fake = 0
}
ASSIGNED {
I
spike
}
INITIAL {
I = 0
spike = 0
}
BREAKPOINT {
spike = I
}
What would you recommend? Or even better is there a ready a solution for this?