원클릭으로
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