Phasic← Overview

Sample data

Phasic ships a fixture generator, so you can open a real recording without having one. The files are synthetic but structurally genuine: they are written through Phasic’s own writers and read back through its own readers, in the same formats as instrument data.

cargo run --example gen_fixtures -- list          # list every fixture
cargo run --example gen_fixtures -- all           # generate all of them into ./fixtures
cargo run --example gen_fixtures -- <name> [dir]  # generate one
cargo run --example gen_fixtures -- verify [dir]  # open them all through the readers

Then start Phasic and use Open File….

Every fixture is deterministic — no random number generation — so regenerating produces byte-identical files, and a result that changes means the code changed.

The fixtures

Core formats

Name Contents
eeg-standard 19-channel 10-20 montage, 256 Hz, 60 s. Broadband background, posterior alpha, frontal blinks. The canonical file
eeg-hd 64-channel 10-10 layout, 512 Hz, 30 s, written as 24-bit BDF
eeg-events 19-channel, 240 s, with sleep-stage annotations every 30 s and spindles during N2
xdf-multistream Three streams on one session clock: 8-channel EEG at 256 Hz, 6-axis IMU at 52 Hz, and a marker stream
bids-dataset A BIDS folder with a BDF recording plus _channels.tsv, _events.tsv and _eeg.json sidecars

Modality coverage

Name Contents
psg-no-eeg Polysomnography with no EEG at all — ECG, airflow, thorax, abdomen, snore, SpO2, position, temperature, at rates from 1 Hz to 256 Hz
psg-full A complete clinical PSG montage — EEG, EOG, EMG, ECG, respiration and SpO2, 10 minutes, using real EEG C3-M2 naming
mixed-clinical EEG alongside EOG, ECG, EMG and respiration at 256 Hz
imu-motion Accelerometer, gyroscope, magnetometer and fused orientation quaternion at 104 Hz
units-zoo One channel per physical unit — µV, mV, V, %, °C, g, dps

Signal content for the analyses

Name Contents
rhythms Eyes-closed alpha for 30 s, then eyes-open with alpha suppressed. For the spectrum and spectrogram
erp-paradigm ~100 stimulus events with a P300-like evoked response peaking parietally. For the ERP pane
artifacts Blinks, muscle bursts, 50 Hz line noise and electrode pops. For filters, ASR and ICA
bad-channels 19 channels with three planted faults — one flat, one railed, one noisy. For detection and interpolation

Edge cases

Name Contents
nonstandard-names Labels matching no 10-20 position, for channel-type inference and graceful topomap degradation
resample-rates The same signal captured at 250, 500 and 1000 Hz
degenerate Single-channel, zero-variance and single-record files, for load robustness
large-long 64 channels at 512 Hz for 10 minutes, roughly 150 MB, for performance

Choosing a fixture

psg-no-eeg and psg-full are worth knowing about as a pair. The first contains no brain signal at all and must still load as a first-class recording, with the EEG-only panes correctly unavailable. The second contains everything. Together they demonstrate that no modality is assumed.

The examples/README.md file in the repository documents what each fixture should look like on open and which features it is meant to exercise.