Skip to main content
  • Description
  • Conversion tool for CTF MEG files to Elan evoked potential format (.p).

  • Usage
  • ctf2eeg myctfdirectory.ds myparfile myepfile [+v]

    with :

    • myctfdirectory.ds : CTF dataset directory (with extension).
    • myparfile : text file containing conversion parameters (electrode names and numbers in elec.dat, flag for channel conversion).
    • myepfile : output evoked potential file (no extension).
    • option :
      +v : verbose mode. If omitted, verbose mode is off.


  • Fields of parameter file and example
  • channels
    STIM.-1 0
    BG1.-1 0
    BG2.-1 0
    BG3.-1 0
    MLC11.785 1
    MLC12.786 1
    MLC13.787 1
    MLC14.788 1
    MLC15.789 1
    MLC21.790 1
    MLC22.791 1
    MLC23.792 1
    Output channel name list :

    The format is "name.number conversion_code", where :
    name is the name of the channel in elec.dat
    number is the rank of the channel in elec.dat
    conversion_code indicates whether to convert the channel or not. Possible values are :
    0 channel is ignored
    1 is stored
    2 is stored and data is set to 0

    The order and number of channels should be the same as in the input CTF res4 file.


  • Examples
    • Example 1 – To create an *.p file with MEG channels only
      Example of parameter file with channel specifications :
      channels
      STIM.-1 0
      BG1.-1 0
      BG2.-1 0
      BG3.-1 0
      BP1.-1 0
      BP2.-1 0
      P22.-1 0

      R13.-1 0
      R22.-1 0
      R23.-1 0
      MLC11.785 1
      MLC12.786 1
      MLC13.787 1
      MLC14.788 1
      MLC15.789 1
      MLC21.790 1
      MLC22.791 1

      MZO01.932 1
      MZO02.933 1
      MZP01.934 1
      MZP02.935 1
      FP1.18 0
      FPZ.39 0
      FP2.19 0
      F7.13 0
      F3.14 0
      FZ.15 0
      F4.16 0

      P5.20 0
      P6.23 0
      CZ.10 0

    • Example 2 – To create an *.p file with EEG channels only
      Example of parameter file with channel specifications

      channels
      STIM.-1 0
      BG1.-1 0
      BG2.-1 0
      BG3.-1 0
      BP1.-1 0
      BP2.-1 0
      P22.-1 0

      R13.-1 0
      R22.-1 0
      R23.-1 0
      MLC11.785 0
      MLC12.786 0
      MLC13.787 0
      MLC14.788 0
      MLC15.789 0
      MLC21.790 0
      MLC22.791 0

      MZO01.932 0
      MZO02.933 0
      MZP01.934 0
      MZP02.935 0
      FP1.18 1
      FPZ.39 1
      FP2.19 1
      F7.13 1
      F3.14 1
      FZ.15 1
      F4.16 1

      P5.20 1
      P6.23 1
      CZ.10 1


  • Comments

  • Current version
  • 1.08 23-11-2009

  • History
    • 1.04 10-08-2005 (PEA) : new CTF file definition (MEG42).
    • 1.05 11-10-2005 (PEA) : corrections for file size > 2 GB.
    • 1.07 10-09-2009 (PEA) : correction of type definition in MegDefs.h for 64 bits compilation.
    • 1.08 23-11-2010 (PEA) : correction in rchmpl (addition of maximum length line) in libgen.


  • Files
  • $ELANPATH/bin/ctf2ep
    $ELANPATH/bin64/ctf2ep

  • See also
  • ctf2eeg, ctfmrk2pos, pos2ctfmrk