بنقرة واحدة
interpolate-bads
Spherical spline interpolation to reconstruct bad channel data from neighbors
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Spherical spline interpolation to reconstruct bad channel data from neighbors
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Neurodata Without Borders (.nwb) — the de-facto standard for in-vivo electrophysiology (Neuropixels / AIBS / DANDI / IBL)
Index of L0 data-format loader skills by family
Index of all L2 paradigm skills by group + analysis_goal → paradigm matrix
Two-phase BCI data preprocessing pipeline: deep-inspect → plan → propose → user confirm → automated code/execute/QC/export
BIDS-iEEG sidecar (*_channels.tsv / *_electrodes.tsv / *_coordsystem.json / *_ieeg.json) — clinical sEEG / ECoG standard
Multiscale Electrophysiology Format v3 (Mayo Clinic) — long-duration encrypted sEEG
| name | interpolate_bads |
| description | Spherical spline interpolation to reconstruct bad channel data from neighbors |
| layer | L3 |
| group | channel |
| metadata | {"tags":["operator","channels","interpolation","repair","spline"],"modalities":["eeg","ecog"],"step_string":"interpolate_bads","analysis_goal_allowed":["classification","source_localization","feature_extraction","clinical_screening","exploratory","generic","connectivity","phase_amplitude_coupling","online_inference"],"analysis_goal_forbidden":[]} |
Reconstructs data for bad channels using spherical spline interpolation from neighboring good channels. Preserves total channel count while replacing corrupted data with estimated values.
interpolate_bads — No parameters. Operates on channels marked as bad in metadata.
meta.bads or raw.info["bads"]drop_bads (simpler)car (interpolated channels should contribute to average)ica (prevents wasting components on bad channel noise)import mne
import numpy as np
info = mne.create_info(ch_names, sfreq, ch_types='eeg')
raw = mne.io.RawArray(data, info, verbose=False)
raw.info['bads'] = bad_channels # e.g. ['Fp1', 'T8']
raw.interpolate_bads(reset_bads=True, verbose=False)
data = raw.get_data().astype(np.float32)
raw.info['bads'] = [...] — mark channels as badraw.interpolate_bads(reset_bads=True, verbose=False) — spherical spline interpolationreset_bads=True clears the bads list after interpolation