Skip to main content
  • Description
  • Finds, replaces a sequence of event codes in a .pos file, and writes to a new file.
    Default is to work with accepted events only. But it can treat all events (accepted and rejected).


  • Usage
  • poschseq file_in.pos file_out.pos [+all_events]
    with :

    • file_in.pos : input event file to process (with extension).
    • file_out.pos : output event file to create (with extension).
    • option :
      +all_events : works on all events (accepted and rejected) instead of accepted events only (default).

    This program uses an interactive input. The questions are as follows (questions (program) are italic, answers (user) are bold):
    number of events in the sequence to find:
    3
    event 1 of the sequence to find:
    1
    event 2 of the sequence to find:
    2
    event 3 of the sequence to find:
    100
    event 1 of the new sequence:
    1
    event 2 of the new sequence:
    21
    event 3 of the new sequence:
    100


  • Fields of parameter file and examples

  • Example
    • In the example above, all sequences of successive events 1 – 2 – 100 will be replaced by the sequence 1 – 21 – 100. This can be useful to recode correct behavioral reponses; for instance: 1 is the warning stimulus, 2 the target stimulus and 100 the subject's response. In the new pos file, the target stimuli followed by a correct answer is now coded as 21 :
      file_in.pos file_out.pos
      7824 1 0 7824 1 0
      8009 2 0 8009 21 0
      8867 100 0 8867 100 0
      9087 1 0 9087 1 0
      9699 2 0 9699 2 0
      9840 1 0 9840 1 0


  • Comments


  • Current version
  • 1.06 16-09-2011

  • History
    • 1.03 13-08-2007 (PEA) : 1st documented version.
    • 1.04 05-01-2011 (PEA) : update to use cmake and free release of Elan.
    • 1.05 27-07-2011 (PEA) : adds +all_events flag to work on all events (accepted and rejected). Removes static allocations.
    • 1.06 16-09-2011 (PEA) : fixes error without +all_events option (input parameter test).


  • Files
  • $ELANPATH/bin/poschseq

  • See also
  • poscheve, pos_change_eve_fromfile