Saving the data of a spikeplot figure to external file

Moderator: wwlytton

Post Reply
Sherif
Posts: 27
Joined: Thu Oct 13, 2005 4:32 pm

Saving the data of a spikeplot figure to external file

Post by Sherif »

Hi,

I have a network of 50 cells whose output is displayed as a raster of spikes in a Spikeplot graph. I want to save these data to an external .dat file. I found that when I use the "pick vector" tool it selects only the raster of one cell, not all cells. Is there a way to save these data for all cells in the spikeplot graph to an external file?

-Sherif
ted
Site Admin
Posts: 6299
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Saving the data of a spikeplot figure to external file

Post by ted »

The best way to deal with network spike data is to use the NetCon class's record() method (see http://www.neuron.yale.edu/neuron/stati ... tml#record) to capture spike times and cell ID numbers (think "gids") to a pair of Vectors. Then spiketimevec.x[i-1] and cellidvec.x[i-1] will be the time at which the i+1th spike occurred and the identity of the cell that fired it; these Vectors can then be written to an output file after the end of a simulation. For examples with network models designed to be run on serial and parallel hardware see http://senselab.med.yale.edu/modeldb/Sh ... odel=96444.

I suppose it might be possible that the Print & File Window Manager could be used to print spike times from a spike plot GUI tool--select just that tool, then in the PFWM click on Print / Ascii. But I would still prefer to use the method described above, because it's easy to automate.
Post Reply