Multivariate Pattern Analysis in Python |
Bases: mvpa.misc.io.base.DataReader
Read-access to binary EEP files.
EEP files are used by eeprobe a software for analysing even-related potentials (ERP), which was developed at the Max-Planck Institute for Cognitive Neuroscience in Leipzig, Germany.
EEP files consist of a plain text header and a binary data block in a single file. The header starts with a line of the form
‘;%d %d %d %g %g’ % (Nchannels, Nsamples, Ntrials, t0, dt)
where Nchannels, Nsamples, Ntrials are the numbers of channels, samples per trial and trials respectively. t0 is the time of the first sample of a trial relative to the stimulus onset and dt is the sampling interval.
The binary data block consists of single precision floats arranged in the following way:
<trial1,channel1,sample1>,<trial1,channel1,sample2>,...
<trial1,channel2,sample1>,<trial1,channel2,sample2>,...
.
<trial2,channel1,sample1>,<trial2,channel1,sample2>,...
<trial2,channel2,sample1>,<trial2,channel2,sample2>,...
Read EEP file and store header and data.
Parameters: | source (str) – Filename. |
---|
List of channel names
Time difference between two adjacent samples
Number of channels
Number of trials/samples
Number of data timepoints
Relative start time of sampling interval