----------------------------------------------------------------------------- EEP 3.1 Max-Planck-Institute of Cognitive Neuroscience 1996-99 xavr 3.45 (OSF1 V4.0 alpha) Wed Sep 15 13:30:19 1999 ----------------------------------------------------------------------------- xavr <cfg> [<cfg> ...] [<avr in> ...] [options] options: -p [<dir>] create an average file list from <dir> and its subdirs if <dir> is omitted, the current directory is used -G <gav cfg> create an average file matrix from the avraverage cfg -f <fir file> enable FIR filtering of the displayed averages -r <reref cfg> enable referencing of the displayed averages -e display ERP (default if nothing of [-edvs] is set) -d display difference signal -v display standard deviation band -s display significance -t display standard error of mean -D <dat file> sensor positions for potential maps -N <number> number of mesh control points for map interpolation -P <ps file> write PostScript file(A4-Landscape) and exit -w don't popup dialog windows at startup -S slave mode, honor remote control requests
xavr
is the interactive exploration tool for ERP study data generated by
EEP or, in other words, a powerful viewer for .avr files.
Specifically, xavr
can
xavr
configuration file is a layout
description of one page of graphic objects, suitable for generating
screen(Xlib) and PostScript output,
and is described seperately.
Look at the files xavr*.cfg in the
EEP configuration directory. Use one
to start xavr
, do your modifications and save your own version
(Edit - Configuration...)
app-defaults/Xavr
Some more permanent dialog settings (current size/position, entered values)
can be saved from within xavr (Options - Save Settings). They are stored
as standard X resource lines in ~/.eep/xavr.resources
.
For xrdb gurus: these resources are written with full qualifiers and read after all
other resources with lowest priority.
xavr
needs a list or a matrix of average files which it can
offer for processing or drawing.
There are several possibilities to build up the list/matrix
They are located in the command line and in the
File menu:To prepare a list of files:
xavr xavr.cfg su23/avr1/su23{c1,c2,c3}.avr
-p
command line switch. All files found are collected in the
list; nothing is displayed. Be careful with this option. It can take
a while to scan a huge project tree in a remote directory and in most
cases you certainly don't want to see a few hundred ERP's in one session.
-p
command line switch.
If the list would become very
large, the filenames can be filtered using a regular
expression - typically one would use the subject code or the name of the
subdirectory where the interesting averages reside.
avraverage
configuration file
via the -G
command line switch. In opposition to
avraverage
it is not an error if
a listed file is not found. Maybe it's a good idea to have a "maximal"
configuration file containing all subjects and conditions you
expect to have and let xavr
remove the currently incomplete
rows/columns from this matrix.
avraverage
configuration file via
File - Load Average Groups - Grand Average
Configuration. See the previous point.
The preparation of an average list/matrix has no effect to the display. Its only purpose is to give you access to the average files in a convenient way (without the need to surf up and down in the project directory tree). You have to use the selection dialogs to bring the data in the drawing.
For example, if your find an ERP too noisy and want to compare it with a low-pass filtered version, you could toggle Deferred Processing on, and load a .fir file. If you now Add the same file again in the selection dialog, the filtered ERP is displayed too. With Deferred Processing off, the displayed ERP is filtered immediately. This way is faster but gives no chance to compare different processing states of one file.
One should use the processing functions with care. For example, it might lead to some confusion if a rereferenced average file is rereferenced by the viewer again. For this reason, the processing options cannot be stored elsewhere, but few of them can be requested in the command line.
avrreref
configuration file.
cntaverage
.
xavr
with
some shortcuts:
ref: rereference bsl: baseline gav: grand average fir: FIR filterThe data processing steps are always performed in the following order
load -> [ref] -> [bsl] -> [gav] -> [fir] -> drawNote that no variance/significance information is available after rereferencing, baseline correction or filtering.
xavr
is capable to create contour plots of the spatial field strength
distribution at a spheric surface(map). The sphere is unwrapped into the plane to
allow 2D plots with acceptable distortions. To create a map you have to include
map objects and the required template data in your
configuration file. The avrinterpol
docu page contains examples.
Normally, the maps are an optional aside. The most information is still
in the time series view. And this view usually fills the whole page
- no space is left to include map objects. Mainly to solve this problem,
xavr
supports multiple pages. You add pages via
File - Open, where you must load a configuration file. You toggle between
the different pages via the Window menu or with [Shift]+Ctrl+Tab.
The .dat file may contain valid sensor positions for channels whose data are not available or not sufficient for generating potential maps. You have to remove these channels from the .dat file or your maps will become ugly! (i.e. bipolar EOG channels, shorted reserve channels...)
It is possible to request additional control points where the amplitude data
come from a spheric spline interpolation. This results in
smoother contours but costs some computation time.
The number of points controls the map interpolation as follows
(n is the number you enter and ndat is
the number of valid sensor positions in the .dat file):
xavr
can load the spatial informations via the
command line switches -D and -N
and in the File - Load Sensor Positions dialog.
xavr
shows this dialog automatically if a map must be drawn but no mesh
is prepared.
Button 1 pans the drawing - imagine you grab the sheet clicking onto it and move it below a frame. Keyboard scrolling is possible with cursor keys, Home, End, PageUp, PageDown.
xavr
automatically assigns different dash patterns
to signal traces with the same color.)
xavr
PostScript output, error and status
output is catched by xavr.
There are some prepared print and preview
commands available(configurable via resource file). Note that not each of this
commands works at each machine. Note also that xavr
is blocked until the
shell subprocess terminates.
A special print command is avrps
. This is a shell script which
is intended to generate an A4 landscape PostScript screen preview at
each machine. This script is also
used as the File - Print Preview menu command.
The Current View option in the dialog allows to print
the current content of the xavr
window, scaled
to fit in the output media. This option is useful
if you need a selected piece of the drawing as enlarged plot or
as EPS illustration for later use - just zoom/move/resize your
window to show the desired area and send it out.