Skip to main content
  • Description
  • Conversion tool for Alpha-Map files to .eeg format.

  • Usage
  • alphamap2eeg myAlphaMapfile.map [myeegfile myparfile]

    with :

    • myAlphaMapfile.map : Alpha-Map file to convert (with extension).
    • myeegfile : output .eeg file (no extension).
    • myparfile : text file containing conversion parameters.


  • Fields of parameter file and example
  • channel_type_nb 4 Number of types of data defined below.

    channel_type_list
    SPK 1
    LFP 0
    ANC 0
    DIG 2
    CH 3


    Data types list : sequence of labels and codes.

    Labels correspond to the prefixes of the channel names used for conversion (in Alpha-Map file). Digital channels (DIG) are used for event creation but are not converted.

    The following codes are used :
    0 : continuous signal channel (LFP, sEEG, ...).
    1 : spike channel. These channels are converted to continuous channels and the spikes are averaged along time.
    2 : trigger channel (events).
    3 : digital channel to convert to analog channel.


    In this example, channels beginning with SPK are considered as spike channels.
    Channels beginning with LFP and ANC are used as continuous signal channels.
    Channels beginning with CH are transformed to analog channels.
    Channels beginning with DIG are used for events conversion, but are not stored in output file.
    The other channels are ignored.
    electrodes
    SPK1.-1
    SPK2.-1
    SPK3.-1
    SPK4.-1
    LFP1.-1
    LFP2.-1
    LFP3.-1
    LFP4.-1
    ANC1.-1
    ANC2.-1
    CH2_T1.-1
    CH2_T2.-1
    CH2_T3.-1
    CH3_T1.-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 Alpha-Map file.


  • Example
  • Reading information about a file A2209004.map :
    alphamap2eeg A2209004.map

    Output to screen :
    ALPHAMAP2EEG : V1.04 14-03-2008
    File conversion from the Alpha-Map format to ELAN eeg format.

    Reading Alpha-Map file
    A2209004.map...
    Alpha-Map file version : 85
    #chan name    #Alpha  type  f(kHz)   Gain    #samples  duration (s)
    1       2-AI001  20001   0     12.500  5.000   66501      5.320080
    2       2-AI008  20008   0     12.500  5.000   66501      5.320080
    3       2-AI017  20017   0     12.500  5.000   66501      5.320080
    4       2-AI024  20024   0     12.500  5.000   66501      5.320080
    done.
    ALPHAMAP2EEG done.

  • Comments
    • If myeegfile and myparfile are omitted, the Alpha-Map file is read. The information about all channels are displayed.
    • The output sampling frequency is the same for all channels. It is the highest sampling frequency of the input continuous channels.


  • Current version
  • 1.06 05-04-2016

  • History
    • 1.00 10-08-2005 (PEA) : 1st version.
    • 1.04 14-03-2008 (PEA) : conversion of digital channels to analog channels added (type 3).
    • 1.05 06-06-2008 (PEA) : better use data dynamic (physical maximum and minimum).
    • 1.06 05-04-2016 (PEA) : new HDF5 ELAN file format.


  • Files
  • $ELANPATH/bin/alphamap2eeg

  • See also