Skip to content

The iEEG spatial view

An intracranial electroencephalography (iEEG) recording on a dataset page of NEMAR, the Neuroelectromagnetic Data Archive and Tools Resource, can show where its electrode contacts sit. The Brain toggle in the signal viewer opens a panel that draws the contacts at the positions the dataset gives, in the coordinate frame the dataset declares. Where that frame is a standard template frame, the panel also draws a template brain behind them, carries the positions onto it only by the transform its label names, and says so. Where it is not, the panel draws the contacts alone and says why there is no brain.

NEMAR draws what the dataset recorded. It does not localize electrodes, correct positions, or decide what a position means. Where a limit applies to what is drawn, the panel says so there: in the template label, in the frame and unit sentences, and in each refusal.

This page covers:

Open an iEEG recording in the signal viewer, on a dataset page or in an embedded viewer, and press Brain. The toggle appears only for an iEEG channel group. It is enabled once at least one channel of the recording resolves to a contact that has a position. It is also enabled when reading the dataset’s files failed in a way that may pass, so that the panel can offer Retry, and when the channel names join no contact, so that the panel can show both lists of names. When it is disabled, its title says why in one plain sentence; see When there is nothing to draw.

The panel reads two files from the dataset itself, through the same public data service the rest of the page uses: the recording’s _electrodes.tsv (a tab-separated values table of contact names, positions and sizes) and its _coordsystem.json. They are found by the Brain Imaging Data Structure (BIDS) inheritance rules, with the space entity treated as the choice of a coordinate frame and not as the choice of a recording. No frame, unit or name is taken from a description or a guess.

From top to bottom:

  • A frame selector, when the dataset declares more than one coordinate frame for the recording. A frame that cannot be shown is listed as unavailable and says why when chosen. The panel opens on the first frame that can be shown and is a template frame, else the first that can be shown; it never silently picks a frame for you beyond that default, and the status line always names the frame in use.
  • The contacts, as spheres in three dimensions (3D) that you can orbit, zoom, and snap to the six standard views. A sphere’s size comes from the size column when the file has one, within a minimum and maximum drawn size.
  • A status line: how many of the recording’s channels were located, the frame, and the words “positions as declared by the dataset”.
  • The Activity switch, off by default, with its measure, band and color bar; see Activity.
  • A contact list, which is also the keyboard path to every contact: arrow keys, Home, End and Enter move through it.
  • The credit link in the corner of the picture; see Credits and licenses.

Clicking a trace or its label in the signal viewer selects its contact or contacts in the panel while the panel is open, and selecting a contact highlights its trace. Shift-clicking a label still marks the channel bad, as without the panel. Only the contacts that the recording’s channels use are drawn: a contact with no channel has no trace to link to and no activity to show.

Each contact row shows the recorded contact name first, with the recording’s own channel name beside it when the two differ. Under it, the recorded location is the file’s own text, unchanged, with the file’s own unit word and the declared frame: -7.589096499647889e-05 stays written that way, and -5.0 is not turned into -5. When the contact is drawn on a template brain, the template position follows in smaller type and is marked approximate. A bipolar channel such as LAF1-LAF2 marks both of its contacts, and is selected as “contacts LAF1, LAF2; midpoint”.

Contacts are drawn at the positions the dataset gives, carried onto a template only by the transform its label names. A contact at exactly 0, 0, 0 is drawn there, as written, with a note telling you to treat it as suspect. Contacts that together span more than a head are drawn as written, with a note that the units may be wrong.

When the browser lacks Web Graphics Library version 2 (WebGL2), or when you choose 2D views (two-dimensional views), the panel draws the contacts in three flat views (left, top, and front) with the same words around them. On a template frame the flat views draw the template’s outline in each view, not the surface. Each dot has a title carrying its contact name, channel, recorded location, and, on a template, its template position. Save PNG and Save SVG write a figure of what is on screen, as a Portable Network Graphics (PNG) file or a Scalable Vector Graphics (SVG) file. The SVG file always holds the three flat views, because a vector file cannot hold the 3D picture. The PNG file holds the current 3D frame, or the flat views if that is what is on screen. Both files carry the same labels the screen shows, the credit, and, when a template brain is drawn, the template notice.

A recording’s channels are named in the recording; its contacts are named in the electrodes file. The two do not always agree, so the panel joins them by an ordered set of rules and labels every join that is not an exact match.

Kind of join What the channel name does Shown as
Exact It is the contact’s own name. no tag
Bipolar pair It is two contact names joined by a hyphen, such as LAF1-LAF2. exact; drawn at the midpoint of the two contacts
Normalized match Whitespace inside the name (LENT 1 for LENT1); a leading type word and one space (POL A3); a leading type word and a bipolar pair (POL A1-A2, drawn at the midpoint); or index digits written with other leading zeros (LSF1 for LSF01). “normalized match” tag, with the rule’s words
Suffix match One trailing reference token: a hyphen and REF with or without a number (O1-REF1); a hyphen and AV (A1-AV); or a hyphen and four or more digits (LTP1-20000). “suffix match” tag, with the rule’s words

Some rules chain, and a chain that ends in a suffix rule is a suffix match: a type word followed by -AV (POL A1-AV) or by a reference name (EEG A1-Ref). The sentences describe what the name does, not what it means: no dataset states what a reference token stands for, and the panel does not claim to know.

Three things keep the join honest:

  • Ambiguity refuses. A name that could mean two contacts joins neither, and the panel lists both candidates. It does not take the first, and it does not fall back to a looser rule.
  • An exact name keeps its contact. A channel that would reach the same contact through a looser rule is refused, and the channel with the exact name keeps the contact. Two differently written names that reach one contact through the same looser rule are both refused. A derived copy of a channel, such as an _rms copy beside the channel it came from, is not joined.
  • Only surveyed patterns join. Each rule exists because the pattern occurs in real recordings. A pattern that was seen but has no safe reading stays unlocated: channels numbered by position against contacts named by shaft, names that differ only in letter case when the counting starts at a different number, a bare index with no shaft, a prime standing for a side, and a name for several contacts at once.

Channels that do not join are listed by their original names, each with its cause. A contact that the file lists with n/a for x, y or z is unlocated, with the cause “the contact’s position is not given”. Signals that are not contacts, such as a heartbeat trace, a trigger, or a scalp lead recorded alongside, are simply not on the brain.

A refusal says what it saw and what it did not do.

Situation What the panel says or does
No electrodes file “This recording has no electrodes file, so its contact positions are not known.” The toggle is disabled.
An electrodes file with no usable positions (every position n/a) “The electrodes file lists no usable x, y and z positions.” The toggle is disabled.
Every position is 0, 0, 0 “Every position in the electrodes file is 0, 0, 0, so none can be drawn.” The toggle is disabled.
More than one electrodes file applies and nothing says which “More than one electrodes file applies to this recording and nothing says which one to use.” The panel does not choose.
A file that could not be read, or a file list that could not be fetched The toggle stays enabled, because the failure may pass; the panel says what failed and offers Retry. It never treats the failure as permanent.
No channel is located, and at least one channel names a contact that has no position “None of this recording’s channels match a contact in the electrodes file.” The toggle is disabled. This is a missing-position refusal, not the case below.
More than 2,000 located contacts “This recording uses N located contacts; the 3D view draws at most 2000.” This refusal comes before the choice between 3D and the flat views, so the flat views refuse too.
The channel names join no contact, and none of the channels names a contact without a position The toggle is enabled and opens a refusal that shows the first 12 channel names beside the first 12 contact names, each exactly as the dataset wrote them, with their counts, then “No rule joined these names; nothing was guessed.” Nothing is drawn and no signal is read.
The declared unit disagrees with the numbers See Units that disagree with the numbers.

Every refusal still carries the credit link.

The declared frame decides what the panel does, and nothing else does. A frame counts as a standard template frame only when the dataset’s iEEGCoordinateSystem equals an identifier in the standard template table of the BIDS coordinate systems appendix, ignoring letter case. A description, a prefix, a partial match, or numbers that look like a template never promote a frame.

The template brain is one surface of the Montreal Neurological Institute (MNI) and International Consortium for Brain Mapping (ICBM) 2009c nonlinear asymmetric template, MNI152NLin2009cAsym, built from the gray matter and white matter probability maps of its TemplateFlow release. It is a simplified tissue surface of the cerebrum and cerebellum at the 0.5 probability level, smoothed and reduced to at most 15,000 vertices per half, and it includes whatever brainstem tissue the two maps contain. It is split at the midline and open there; it is not a cortical surface and it is not any subject’s anatomy. The browser fetches it only when a template frame is shown, and never for any other frame.

Frame class What is drawn Label shown
MNI152NLin2009cAsym, the surface’s own frame Contacts on the template brain, at the positions the file gives. “Template brain (MNI152NLin2009cAsym), not this subject’s anatomy”
The other MNI152 identifiers (MNI152Lin, MNI152NLin2009aSym, MNI152NLin2009bSym, MNI152NLin2009cSym, MNI152NLin2009aAsym, MNI152NLin2009bAsym, MNI152NLin6Sym, MNI152NLin6ASym) and IXI549Space Contacts on the template brain, at the positions the file gives, with no transform. The label above, plus “approximate: MNI template variants differ by a few millimeters”
MNI305, fsaverage, fsaverageSym Contacts on the template brain, after the published MNI305 to MNI152 affine transform of FreeSurfer. The label above, plus “approximate: MNI305 to MNI152 affine”
Talairach Contacts on the template brain, after the inverse of the Talairach to ICBM 152 transform of Lancaster and colleagues. The label above, plus “approximate: Talairach to MNI affine”
Eight standard identifiers with no placement yet: MNIColin27, ICBM452AirSpace, ICBM452Warp5Space, fsLR, NIHPD, OASIS30AntsOASISAnts, OASIS30Atropos, UNCInfant Contacts only, in the dataset’s own frame, with no brain. “No template placement yet for IDENTIFIER: positions are shown in the dataset’s own frame”
ACPC (anterior commissure to posterior commissure), ScanRAS, Other, Pixels, a label that is not a standard identifier (mni, MNI, MNI152), and a missing frame Contacts only, in the dataset’s own frame, with no brain. “No template placement for FRAME: positions are shown in the dataset’s own frame”
Any template frame whose units are not declared Contacts only, as written, with no brain. The “No template placement” sentence, and “units not declared”

Some details that belong to the table:

  • Units. A declared unit of meters, centimeters or millimeters is converted to millimeters (mm) before drawing. A frame in pixels is reported as “Units: pixels, as written.” Anything else, including n/a and a unit that is not a length unit this view converts, leaves the numbers as written with no scale claim, and such a frame is not placed on the template: a scale nobody declared cannot be moved onto a brain. The unit is never inferred from the numbers.
  • Other frames stay in their own frame. When a dataset gives a description of an Other frame, the panel shows the description exactly as written and does nothing else with it. A description that names a template does not turn the frame into one.
  • A frame the file does not settle is never placed. When a space entity in the file name differs from the declared label, the frame is unknown and the panel shows it as the declared label followed by “(the file name says” and the entity. A label that is no standard identifier is shown as “(not a standard identifier)”. When the file writes a standard identifier in another letter case, the panel notes the spelling the file used. A frame with no coordinate system file is shown as “not declared”.
  • Nothing is snapped. A contact is drawn where its position puts it, which can be inside the brain or outside it. No contact is moved onto, or projected onto, the surface.
  • The label’s wording is fixed. The words “Template brain … not this subject’s anatomy” appear with the surface on screen and in every saved figure that draws it. If the surface cannot be fetched, the panel says so, shows the contacts in the dataset’s own frame, and draws no label.
  • Several frames. When a recording offers more than one frame, the panel lists them all and prefers none beyond its opening default.

“Approximate” means what its label says and nothing more.

  • MNI template variants differ by a few millimeters. The identifiers in the second row of the table name different MNI templates. The panel draws their positions unchanged on the 2009c surface, because nothing cited gives a better map, and the label says the variants are not identical. IXI549Space takes the same treatment as an exception: the standard table describes it as linearly transformed to a different template, ICBM 452, whose relation to MNI152 the panel does not model, so its placement is a labeled approximation and not a derived one.
  • MNI305 to MNI152 affine. FreeSurfer publishes a linear map between its MNI305 volume and the MNI152 template, with a worked example. The panel applies it. FreeSurfer’s page uses a template file of the FMRIB Software Library (FSL) in its example, not the 2009c surface drawn here, so the surface is a further few millimeters from the template that page describes. The standard table says that fsaverage and fsaverageSym use a FreeSurfer variant of MNI305, and both are placed the same way; fsaverageSym is a symmetric variant, so its relation is approximate too.
  • Talairach to MNI affine. Lancaster and colleagues fitted a group-level linear model of the bias between Talairach and MNI coordinates on 100 brains normalized with two software packages. The panel applies the inverse of their pooled fit. It is approximate by construction: it models a group, not a person, and a dataset’s own Talairach frame may come from another pipeline, such as the one FreeSurfer uses, which this transform does not model. The paper reports landmark residuals only for its per-package fits, not for the pooled fit applied here, so there is no stated error for this transform.

NEMAR makes no claim about the accuracy of any contact’s position on the template brain. The template is not the subject’s brain, so a contact drawn inside it is not thereby shown to lie in the subject’s cortex. The only claim is the narrow one the label makes: the numbers were carried from the declared frame to the template’s frame by the named transform, and the declared frame and unit are the dataset’s.

Some datasets declare a unit that the numbers contradict. When a declared non-millimeter unit is converted to millimeters and every drawn contact then lies more than 300 millimeters from the origin, a banner appears on the panel and in every saved figure. It reads, for example, “Declared unit m, but the values look millimeter-sized (largest distance X mm from the origin). Positions are shown as declared and are not placed on any template.” Nothing is rescaled and no unit is inferred. The contacts are drawn as declared, in the flat views, and no template brain is placed. A line under the banner gives the views’ scale: “Scale: the three views share one scale, and the drawn contacts span N mm along the widest axis.” A contact at exactly 0, 0, 0 is left out of the test, because real files put unlocated contacts there as a placeholder, so one placeholder does not hide a file whose real contacts are all far out.

The Activity switch colors each contact by a number computed from the recording’s signal. It is off by default. While it is off, and while the panel is closed, the panel reads no signal samples at all.

When you turn it on, the browser reads the full-rate samples of the window currently on screen in the signal viewer, for the located channels, and computes one value per channel in your browser. The full-rate samples are the ones the viewer serves for iEEG, at 1,000 Hz. Nothing is precomputed on NEMAR’s side. Changing the window, the recording, the channel group or the frame, closing the panel, or turning the switch off stops any read in progress.

The measures are the root mean square (RMS) with the mean removed, line length, band power, and band power relative to the channel’s own power in decibels (dB). Frequencies are in hertz (Hz). Voltage channels are shown in microvolts: RMS in µV, line length in µV per second, and band power in µV², with relative band power in dB. Channels recorded in teslas keep teslas.

Measure What is computed, per channel, over exactly the samples in the window
RMS (mean removed) The square root of the mean squared sample, after subtracting the window’s mean.
Line length The mean absolute difference between consecutive samples, times the sampling rate.
Band power Power in a chosen band by Welch’s method.
Band power, relative (dB) The same band power in decibels against the channel’s own power from 1 Hz up to the lesser of 150 Hz and 0.45 times the sampling rate.

The bands are delta (1 to 4 Hz), theta (4 to 8), alpha (8 to 13), beta (13 to 30), low gamma (30 to 70) and high gamma (70 to 150). Welch’s method here uses a Hann window, segments of one second rounded to a power of two in samples, 50 percent overlap, and the mean removed from each segment. A trailing partial segment is dropped, so the values describe the seconds actually analyzed, which can be fewer than the window shows. The panel prints a one-line summary of what it computed, including the segment count; below six segments it says the values are noisy. Band power needs a window of at least one and a half segments, which is 1,536 samples at 1,000 Hz; RMS and line length need at least two samples.

Values map onto a sequential color scale with a color bar that shows both ends and the unit. The scale runs over the values of the contacts in the current window. A contact reached by several channels takes the mean of their values. The ends of the scale are the 2nd and 98th percentiles of the contacts’ values; values beyond them take the end colors. The scale therefore belongs to the window on screen: the same color can stand for different values in two windows or two recordings, and the color bar is the only key. A bipolar channel colors both of its contacts with the one value. Gray contacts have no value, and the contact list says why.

  • The window is too wide. Above 4,000,000 samples (located channels times samples in the window) the panel says “Zoom in to compute activity” and returns the contacts to the neutral color.
  • The band is too high. A band whose upper edge is above 0.45 times the sampling rate cannot be measured, and its choice is disabled. A channel whose own acquisition rate puts the band edge above 0.45 times that rate gets no value, with the reason “this channel’s own sampling rate is too low for the band”.
  • The window is too short for the chosen measure. The panel says how many seconds to show.
  • The window is a summary. When the viewer is zoomed out far enough that it shows a min/max summary and not samples, the panel asks you to zoom in; it never computes from a summary.
  • A channel has a sample that is not a number. That channel gets no value, for every measure.
  • The result is undefined. A channel whose relative band power is undefined, for example because a power is not positive, gets no value, with the reason “the result is undefined”.
  • The channels mix voltage and field units, or have units the panel cannot compare. It says so and computes nothing.

Activity describes the window you are looking at. It does not test, average over trials, or relate the signal to any event.

  • No localization. The panel does not compute, estimate, correct or refine where an electrode is. It shows the positions the dataset recorded, and it names no brain region or atlas label.
  • No snapping or projection. Contacts are never moved onto the surface, pulled inside it, or projected from outside it.
  • No inference from descriptions, magnitudes or names. It does not read a coordinate frame from the free-text description of an Other frame. It does not decide a frame because the numbers look like MNI coordinates. It does not decide a unit because the numbers look like millimeters or meters. It does not match a channel to a contact by order, by similarity, or by a guess; the rules above are the only ways a name joins, and ambiguity refuses.
  • Subject anatomy only from NEMAR’s geometry index. The brain, where there is one, is a template. The panel does not read a subject’s scan, and it draws the subject’s own cortical surfaces only when the dataset has NEMAR’s geometry index beside its Zarr copy. See NEMAR-computed iEEG geometry.
  • No placement for other frames. ACPC, ScanRAS, Other, Pixels, non-standard labels, missing frames, the eight standard identifiers with no placement yet, and frames with undeclared units are drawn in their own frame with no brain.
  • No accuracy claim. See What “approximate” means.
  • No analysis beyond the window. Activity is one number per channel for the samples on screen, computed in your browser.
  • No changes to the dataset. The panel only reads; it writes nothing to a dataset.

How much of NEMAR’s iEEG data can be drawn depends on what each dataset’s authors recorded in their electrodes and coordinate system files. The numbers below are a snapshot: one run of the panel’s own resolver over every public dataset of modality iEEG on November 17, 2026. Datasets are added and revised, so the figures describe that day, not today. They count recordings the panel can place, not channels the panel can join.

On that day the catalog held 167 iEEG datasets. 157 of them held at least one recording, 35,818 recordings in all.

Class of recording Recordings Share Meaning
Template 6,316 17.6% A standard template frame with declared units; the panel draws the template brain.
Own frame 10,806 30.2% Positions in the dataset’s own frame, with no brain.
Nothing to draw 18,696 52.2% The panel refuses and says why.

Counted by the best class any recording of the dataset reaches, 36 datasets are template, 57 own-frame, 64 nothing to draw, and 10 have no recordings the panel counts. Most datasets are all one class: only 12 of the 157 mix classes.

Why the 18,696 recordings cannot be drawn:

Reason Datasets Recordings
The electrodes file lists no usable positions (every position n/a) 64 17,898
No electrodes file 10 756
Every position is 0, 0, 0 1 38
The electrodes file could not be read 1 4

Half of all recordings, then, cannot be drawn, almost always because the dataset records no positions. The refusal is the most common state of the panel, not an edge case.

The frames the datasets declare, counted per frame over every space found (a recording with two spaces counts under both, and a recording refused for want of positions still has its frame):

Declared frame Datasets Recordings
Other 90 20,640
ACPC 15 6,771
Talairach 14 571
MNI152NLin6ASym 12 2,923
No coordinate system file 11 1,197
fsaverage 6 703
MNI152NLin2009cAsym 3 1,326

The rest are frames declared by five datasets or fewer (MNI152Lin, MNI152NLin2009aSym, ScanRAS, IXI549Space, MNI152NLin2009bAsym, MNI152NLin6Sym) and two datasets whose space label disagrees with the declared frame. Five datasets offer two frames for some recording. None of the eight standard identifiers with no placement yet appeared in any dataset that day. The two most common frames, Other and ACPC, are drawn without a brain.

A second survey, on November 18, 2026, read 328 recordings in 93 of the datasets above that can be drawn (the 36 template and 57 own-frame datasets) and compared their channel names with their contact names: 33,834 channels. Before the matching rules above, 26,271 of those channels (77.6 percent) joined by exact name or exact bipolar pair. The rules join a further 4,311 channels (12.7 percent) in 18 datasets, and in 14 datasets the sampled recordings had no channel the exact join could place and now have some, so their Brain toggle opens. 1,272 channels (3.8 percent) have a naming pattern that the panel does not join, and 1,980 (5.9 percent) are not contacts or have no row in the electrodes file. In five datasets no sampled channel joined. The survey is a sample: a pattern absent from it is not shown to be absent from the other recordings.

NEMAR credits the Reproducible Analysis and Visualization of iEEG (RAVE) project, whose viewer set the visual vocabulary of a translucent brain, contacts as spheres, and a value overlay, with this line on every panel:

Electrode view inspired by RAVE

That sentence, with that link, is on every panel, refusals and embedded viewers included, and is written inside every saved figure. NEMAR draws the contacts with its own renderer and ships no RAVE code or data, so no license asks for this credit; it is NEMAR’s acknowledgment. The wording says “inspired by” and means it: RAVE did not render, and does not power, what the panel shows. RAVE asks that publications using its viewer cite its paper:

Magnotti, Wang and Beauchamp, NeuroImage (2020). doi:10.1016/j.neuroimage.2020.117341

The paper’s digital object identifier is in the credit link’s title, and its address is in the metadata of every saved SVG file.

The template brain is derived from the TemplateFlow template tpl-MNI152NLin2009cAsym. The template’s reference is:

Fonov V, Evans AC, Botteron K, Almli CR, McKinstry RC, Collins DL, Brain Development Cooperative Group. Unbiased average age-appropriate atlases for pediatric studies. NeuroImage 54(1), 313-327 (2011). doi:10.1016/j.neuroimage.2010.07.033

The Montreal Neurological Institute asks that its copyright notice appear in all copies of the template, so the notice travels with the surface, is linked from the panel as “MNI copyright notice”, and is reproduced here in full:

Copyright (C) 1993–2004 Louis Collins, McConnell Brain Imaging Centre, Montreal Neurological Institute, McGill University. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies. The authors and McGill University make no representations about the suitability of this software for any purpose. It is provided “as is” without express or implied warranty. The authors are not responsible for any data loss, equipment damage, property loss, or injury to subjects or patients resulting from the use or misuse of this software package.

The two transforms are published work as well:

  • The MNI305 to MNI152 affine is the one printed in FreeSurfer’s coordinate systems documentation.
  • The Talairach to MNI affine is the inverse of Eq. (3) of the following paper: Lancaster JL, Tordesillas-Gutierrez D, Martinez M, Salinas F, Evans A, Zilles K, Mazziotta JC, Fox PT. Bias between MNI and Talairach coordinates analyzed using the ICBM-152 brain template. Human Brain Mapping 28(11), 1194-1205 (2007). doi:10.1002/hbm.20345

If you use a figure from this panel in a paper, state which frame the dataset declared and, where a template brain is drawn, that it is a template and that its placement is labeled approximate where its label says so.