Skip to main content
  • Description
  • Conversion tool for Spike2 files (.son, .smr) to ELAN EEG format.

  • Usage
  • spike2_2eeg infile.smr [outfile.eeg file.par [+v]]

    with :

    • infile.smr : Spike2 file to convert (with extension).
      If no output and parameter file is specified, the Spike2 file is read and info about it are displayed. No conversion is done.
    • outfile.eeg : output EEG file (with extension).
    • file.par : conversion parameter file (with extension). It provides channel names and numbers in elec.dat
    • option :
      +v : verbose mode on (default is off).


  • Fields of parameter file and example
  • electrodes
    LFP1.-1
    LFP2.-1
    event1.-1
    Output channel name list :

    Names and numbers corresponding to elec.dat definition for converted channels, or name and -1 if the channel is not defined in elec.dat.

    The order should be the same as in the input Spike2 file.


  • Example

  • Comments
    1. ADC, event and real wave channels (kind 1, 2, 3, 4, 9) are converted to ELAN data channels.
    2. Marker, ADC marker, real marker and text marker channels (kind 5, 6, 7, 8) are converted to ELAN events.
    3. WARNING : channel kind 2, 3, 4 (event channels), 6 (ADC marker), 7 (real marker), 8 (text marker) and 9 (real wave channel) have not been tested. Please provide us a file to test it if you want to convert this kind of data (see Contact us section).


  • Current version
  • 1.03 19-03-2012

  • History
    • 1.00 20-05-2011 (PEA) : 1st version.
    • 1.01 12-03-2012 (PEA) : minor modification (checks for positive block size before reading).
    • 1.02 13-03-2012 (PEA) : minor modification (displays an error and exits when a problem occurs reading data header blocks).
    • 1.03 19-03-2012 (PEA) : adds partial support to SON library V9 (unsupported feature : LUTable).


  • Files
  • $ELANPATH/bin/spike2_2eeg

  • See also