BIDS datasets
Reads: dataset structure + sidecar metadata; recordings in EDF and BDF
Writes: nothing — Phasic does not produce BIDS datasets
Requires: (no feature flag)
Applies to: all channel kinds
Point Phasic at a BIDS folder — or at any file inside one — and it finds the dataset root, enumerates the recordings, and enriches each one with the metadata its sidecars carry.
BIDS support resolves paths and metadata. The recordings themselves are read by the ordinary BDF and EDF reader.
What can be opened
Recordings are enumerated when their suffix is eeg and their extension is one of .edf,
.bdf, .vhdr or .set.
Only EDF and BDF can actually be opened. BrainVision (.vhdr) and EEGLAB (.set)
recordings are listed in the browser and marked unsupported; there is no reader for either
format. The batch runner skips them.
Companion files — BrainVision’s .vmrk and .eeg, EEGLAB’s .fdt — are deliberately not
listed as separate recordings.
What is not searched
derivatives/,sourcedata/,code/andstimuli/directories- Any directory whose name begins with a dot
- Anything more than six levels below the dataset root
A recording outside those bounds is invisible to the browser rather than reported as an error.
BIDS-EEG permits XDF recordings. Phasic does not enumerate them.
Sidecar metadata
Sidecars are resolved by the BIDS inheritance principle: a sidecar applies to a recording when it sits in an ancestor directory and its entities are a subset of the recording’s, with an omitted entity acting as a wildcard.
For TSV and coordinate sidecars the single most specific match wins; they are not merged.
For _eeg.json, every applicable file is applied from least to most specific, so a nearer
file overrides a more distant one field by field.
| Sidecar | Used for |
|---|---|
channels.tsv |
Channel display names, types and units |
events.tsv |
Annotations |
electrodes.tsv |
Measured electrode positions for the topomap |
participants.tsv |
Subject metadata |
dataset_description.json |
Dataset name and BIDS version |
_eeg.json |
Sampling frequency, power line frequency, reference, task name |
coordsystem.json |
Informational only |
Only those four fields are read from _eeg.json; anything else in the file is ignored.
Coordinate system declarations are read but not applied — scalp positions are normalised
regardless of the declared units.
events.tsv replaces in-file annotations
When a recording carries both an events.tsv sidecar and its own EDF+/BDF+ annotation
channel, the sidecar wins and the embedded annotations are never read.
This is usually what you want, since the sidecar is the curated version. It does mean that annotations visible in another tool may be absent in Phasic, and the file itself is not at fault.
In events.tsv, onset is required and must be numeric; a row without it is skipped. A
missing duration is treated as zero. The event’s text is taken from trial_type, then
value, falling back to the literal event.
Malformed sidecars never block a recording
Every sidecar parser is deliberately lenient. A missing file, a missing column, an n/a
cell, or JSON that does not parse yields an empty result rather than an error — a bad
sidecar should never stop a recording from opening.
The practical consequence is that sidecar problems are silent. If channel types or events are not what you expect, check that the sidecar parsed rather than assuming it was applied.
The TSV reader splits on tab characters only. It does not handle quoting, escaping, comments,
or gzip-compressed .tsv.gz sidecars — a compressed sidecar reads as text and yields
nothing. Column lookup is case-insensitive, and both empty cells and n/a count as absent.
channels.tsv is matched to the recording by row order, not by name.
How metadata is applied
Sidecar metadata forms the document’s baseline. It is not an undoable edit and does not mark the document as modified — it describes what the recording is, rather than a change you made to it.