{"data":{"_id":"6ac93487c2d31e627c370afc","acknowledgements":"Stolk et al. (2018), Acknowledgments: \"The authors thank the patient for participation and Christopher R. Holdgraf, Vinitha Rangarajan, Colin W. Hoy, Julia Kam, Ludovic Bellier, Randolph Helfrich, Richard Jimenez, Edden Gerber, Alejandro Blenkmann, Jamie Lubell, and Michael Pereira for fruitful discussions. The authors are also grateful to the present and former FieldTrip core developers as well as the greater FieldTrip community for contributing code, documentation and expertise that have made this protocol possible.\" Data record doi:10.5281/zenodo.1201560 (v1.0, 2018-03-21). BIDS packaging for NEMAR by Bruno Aristimunha's iEEG-NEMAR campaign.","associated_paper_doi":null,"authors":["Arjen Stolk","Sandon Griffin","Roemer van der Meij","Callum Dewar","Ignacio Saez","Jack J. Lin","Giovanni Piantoni","Jan-Mathijs Schoffelen","Robert T. Knight","Robert Oostenveld"],"bad_channels_info":null,"bids_version":"1.10.0","canonical_name":null,"computed_title":"Stolk et al. 2018 FieldTrip iEEG protocol dataset (SubjectUCI29): authors' preprocessed ECoG+SEEG epochs","contact_info":null,"contributing_labs":null,"data_processed":false,"dataset_doi":"10.82901/nemar.nm000355","dataset_id":"nm000355","datatypes":["ieeg"],"demographics":{"age_max":null,"age_mean":null,"age_min":null,"ages":[],"handedness_distribution":null,"sex_distribution":null,"species":null,"subjects_count":1},"ethics_approvals":["Office for the Protection of Human Subjects, University of California, Berkeley; the subject gave informed consent (as stated by the authors)"],"experimental_modalities":null,"external_links":{"github_url":null,"osf_url":null,"paper_url":null,"source_url":"https://nemar.org/dataexplorer/detail/nm000355"},"funding":["European Commission H2020 grant 641652 (ChildBrain)","European Commission H2020 grant 658868 (MUSIC)","NWO Rubicon grant 446-14-007 (A.S.)","European Union Marie Sklodowska-Curie Global Fellowship 658868 (A.S.)","NIMH R01 MH095984-03S1 (R.vd.M.)","NWO VIDI 864-14-011 (J-M.S.)","NINDS R37NS21135 (R.T.K.)","EC Marie Curie Actions H2020-MSCA-ITN-2014 (R.O.)"],"generated_by":[{"CodeURL":"https://www.fieldtriptoolbox.org/tutorial/intracranial/human_ecog/","Description":"Stolk et al. 2018 protocol steps 35-36: trials defined from trigger value 4 (-0.4 to 0.9 s), demeaned over the whole trial, low-pass 200 Hz, band-stop 59-61/119-121/179-181 Hz (order 3), 2 s data padding. Performed by the authors before release; the raw recording was not shared.","Name":"FieldTrip ft_preprocessing (authors' preprocessing)"},{"Description":"BIDS packaging only (no signal processing): the 26 stored epochs are written back to back to one BrainVision float32 file (RecordingType epoched); channel, event, electrode and coordinate metadata are transcribed from the authors' FieldTrip structures; non-imaging source files copied byte-identically to sourcedata/.","Name":"laneD_convert.py"}],"how_to_acknowledge":"Cite Stolk A, Griffin S, van der Meij R, et al. (2018) Integrated analysis of anatomical and electrophysiological human intracranial data. Nature Protocols 13:1699-1723, doi:10.1038/s41596-018-0009-6, and the data record doi:10.5281/zenodo.1201560. Share adaptations under CC-BY-SA-4.0.","ingestion_fingerprint":"0c6597ac9e98b2e0b039b701b1844db6cfcf7165d1cf2131597110eeb29020e3","license":"CC-BY-SA-4.0","n_contributing_labs":null,"n_records":1,"name":"Stolk et al. 2018 FieldTrip iEEG protocol dataset (SubjectUCI29): authors' preprocessed ECoG+SEEG epochs","nchans_counts":[{"count":1,"val":152}],"readme":"[![DOI](https://img.shields.io/badge/DOI-10.82901%2Fnemar.nm000355-blue)](https://doi.org/10.82901/nemar.nm000355)\n# Stolk et al. 2018 FieldTrip iEEG protocol dataset (SubjectUCI29): the authors' preprocessed epochs\n## Overview\n**These are not raw recordings.** This dataset is a BIDS packaging of the *preprocessed* intracranial EEG released\nwith the FieldTrip human intracranial analysis protocol (Stolk et al., 2018, Nature Protocols). The authors did not share the\nraw recording: \"Raw recording files are not shared, in order to protect the subject's identity.\" What they released, and\nwhat is packaged here, is the output of protocol steps 35-36: 26 trials of 152 channels at 5000 Hz, cut from -0.4 to\n0.9002 s around tone onset, demeaned, low-pass filtered at 200 Hz and band-stop filtered at 59-61, 119-121 and\n179-181 Hz. `dataset_description.json` therefore declares `DatasetType: derivative`, with `GeneratedBy` and\n`SourceDatasets` pointing at the authors' Zenodo record (doi:10.5281/zenodo.1201560, v1.0, CC-BY-SA-4.0).\n## Cohort and recording\n- One adult patient with medication-refractory epilepsy (`sub-UCI29`, source ID `SubjectUCI29`), recorded at the\n  University of California, Irvine Medical Center. Study approved by the Office for the Protection of Human Subjects of\n  the University of California, Berkeley; the subject gave informed consent (as stated by the authors). Age, sex and\n  handedness are not given in the release.\n- Electrodes: 56 SEEG contacts on 7 depth leads (RAM/LAM amygdala, RHH/LHH hippocampal head, RTH/LTH hippocampal tail,\n  ROC right occipital) and 96 ECoG contacts (LPG 64-contact left parietal grid, LTG 32-contact left temporal grid).\n  `SubjectUCI29_grids.png` in `sourcedata/` is the authors' schematic of the grid numbering.\n- Task: the patient pressed a button with the right hand on hearing a target tone. Trials are aligned to tone onset\n  (trigger value 4).\nAdditional acquisition details (Stolk et al. 2018, \"Materials\" and \"Experimental design\"; PMC6548463):\n- Implant: grids LPG (64 contacts, 8 x 8, left parietal) and LTG (32 contacts, 4 x 8, left temporal), Integra,\n  10 mm inter-electrode spacing; depth leads LAM, LHH, LTH, RAM, RHH, RTH and ROC, 8 contacts each, Ad-Tech, 5 mm\n  inter-electrode spacing. Implanted \"as part of the preparation for the epilepsy surgery\".\n- Amplifier: \"All neural recordings were acquired using a Nihon Kohden recording system with a JE-120A amplifier\n  (Nihon Kohden Corporation, Tokyo, Japan), analogfiltered above 0.01 Hz, and digitally sampled at 5 KHz\".\n- Reference: the acquisition reference electrode is not stated for this recording (see `iEEGReference`).\n- Anatomical imaging used by the authors (not redistributed here): pre-implant T1 MRI (Siemens 3T TrioTim),\n  post-implant CT (Philips iCT 256), post-implant T1 MRI (Siemens 1.5T Avanto).\n## Task / paradigm and timing\n\"The neural data were recorded in the context of an experiment that required the patient to press a button with\nthe right hand when hearing a target tone\" (Stolk et al. 2018). The authors defined trials from trigger value 4\n(tone onset) in the recording's trigger channel, from 400 ms before to 900 ms after the tone (protocol step 34:\n`cfg.trialdef.eventvalue = 4; prestim = 0.4; poststim = 0.9`), giving the \"experiment's twenty-six trials\" (step 36).\nButton-press times are not in the release as events; the meaning of `trialinfo` is not documented (see\n`_events.json`).\n## Files\n- `sub-UCI29/ieeg/sub-UCI29_task-tonedetection_ieeg.vhdr/.vmrk/.eeg`: BrainVision, 152 channels, 5000 Hz, IEEE float32.\n  The 26 epochs (6502 samples each) are stored **back to back**. The sidecar says `RecordingType: epoched` and\n  `EpochLength: 1.3004`, and the marker file has a `New Segment` at each epoch start. The file's time axis is\n  not the original recording's time axis. Do not filter across epoch boundaries as if the data were continuous.\n  To get epochs, split the file every 6502 samples. Inside each epoch, sample 2000 (0-based) is tone onset (t = 0).\n  `mne_bids.read_raw_bids` refuses epoched recordings. You can read the file with `mne.io.read_raw_brainvision` and\n  then reshape it.\n- `..._events.tsv`: one `epoch` row and one `tone` row per trial. The rows also carry the authors' `data.trialinfo`\n  value, which the release does not explain, and `data.sampleinfo`, the epoch's begin and end sample in the original\n  unshared recording. Use `sampleinfo` to recover the original spacing between trials.\n- `..._channels.tsv`: channel type (SEEG/ECOG), lead group and filter settings. **Units:** the FieldTrip structure has\n  no unit field. The stored amplitudes (median |x| ≈ 49, max |x| ≈ 1398) are only plausible as microvolts, so µV is\n  used here. The numbers are the authors' values.\n- `sub-UCI29_space-ACPC_electrodes.tsv` + `_coordsystem.json`: x/y/z are `elec_acpc_fr`, the subject-ACPC positions\n  the authors attached to the data (CT-MRI fusion, then brain-shift compensation of the grids). Further columns give\n  `elec_acpc_f` (before brain-shift compensation), `elec_mni_frv` (volume-based MNI normalisation; the template\n  variant is not stated by the authors) and `elec_fsavg_frs` (fsaverage, grids only). All are in mm, as stored.\n- `sourcedata/zenodo-1201560/`: the authors' non-imaging files, byte-identical, with SHA-256 in\n  `sourcedata/sourcedata_provenance.json`. These are the FieldTrip data (`_data.mat`, float64), header, the four\n  electrode structures, the electrode table, the time-frequency result `_freq.mat` (a further derivative computed after\n  re-montage) and the left cortical hull mesh.\n## Preprocessing already applied by the source\nProtocol step 35 (Stolk et al. 2018), applied by the authors before release with FieldTrip `ft_preprocessing`:\n`cfg.demean = 'yes'; cfg.baselinewindow = 'all'; cfg.lpfilter = 'yes'; cfg.lpfreq = 200; cfg.padding = 2;\ncfg.padtype = 'data'; cfg.bsfilter = 'yes'; cfg.bsfiltord = 3; cfg.bsfreq = [59 61; 119 121; 179 181]`.\nThe later protocol steps (bad-segment rejection, re-montage to common average for grids and bipolar for depths,\ntime-frequency analysis) were not applied to the packaged signals; `SubjectUCI29_freq.mat` in `sourcedata/` is the\nauthors' time-frequency result from those later steps. Hardware filtering: analog high-pass above 0.01 Hz\n(`low_cutoff` in `_channels.tsv`).\n## Known caveats\n- Not raw data: authors' preprocessed epochs only (see Overview).\n- Epochs are stored back to back; the file time axis is not the recording time axis (see Files).\n- Units (µV) are inferred from amplitudes, not stated by the source (see Files).\n- `trialinfo` is undocumented by the authors.\n- Head imaging is not redistributed (see \"What is not included, and why\").\n### Precision\nThe source stores float64 and BrainVision float32. The largest absolute difference between the BrainVision samples and\nthe source values is reported in the conversion summary. It is below 1e-4 µV, against a signal of tens of µV. For\nbit-exact values, use `sourcedata/zenodo-1201560/SubjectUCI29_data.mat`.\n### What is not included, and why\nThe record's head imaging is not redistributed here. That covers the pre-implant MRI, the post-implant MRI, the CT, the\nCT/MRI overlay figure and `freesurfer.zip`, whose subject directory contains whole-head T1/orig/rawavg volumes. The\nauthors state the imaging was defaced with `ft_defacevolume`, and our low-resolution renders show rectangular defacing\nmasks. We did not run an independent full-resolution identifiability review. These files remain available from the\nauthors at https://zenodo.org/records/1201560. The same data are also archived at the Donders Repository\n(hdl:11633/di.dccn.DSC_3015000.00_734; Zenodo marks it as identical).\n## How to load\n`mne_bids.read_raw_bids` refuses epoched recordings, so read the BrainVision file directly and cut it into the\n26 epochs of 6502 samples (tone onset at sample 2000 of each epoch):\n```python\nimport mne\nimport numpy as np\nraw = mne.io.read_raw_brainvision(\n    \"sub-UCI29/ieeg/sub-UCI29_task-tonedetection_ieeg.vhdr\", preload=True)\ndata = raw.get_data()                      # (152, 26 * 6502)\nepochs = data.reshape(152, 26, 6502).transpose(1, 0, 2)\ntimes = (np.arange(6502) - 2000) / raw.info[\"sfreq\"]   # -0.4 ... 0.9002 s\n```\nThe signal files are stored with git-annex on NEMAR; fetch them first (for example `git annex get sub-UCI29`).\nElectrode positions are in `sub-UCI29_space-ACPC_electrodes.tsv` (subject ACPC, mm).\n## Licence and citation\nCC-BY-SA-4.0 (from the Zenodo record), so adaptations must be shared under the same licence. Please cite Stolk et al.\n(2018), doi:10.1038/s41596-018-0009-6, and the data record doi:10.5281/zenodo.1201560.\n## Source and provenance\n- Data record: Zenodo doi:10.5281/zenodo.1201560 (v1.0, published 2018-03-21; identical copy at the Donders\n  Repository, hdl:11633/di.dccn.DSC_3015000.00_734).\n- Article: Stolk et al. (2018) Nature Protocols 13:1699-1723, doi:10.1038/s41596-018-0009-6 (author manuscript\n  PMC6548463; preprint doi:10.1101/230912). Acquisition, implant and funding details above were read from the PMC\n  full text on 2026-10-06.\n- Packaging: `laneD_convert.py` (iEEG-NEMAR campaign); see `GeneratedBy` in `dataset_description.json` and\n  SHA-256 checksums in `sourcedata/sourcedata_provenance.json`.","recording_modality":["ieeg"],"references_and_links":["https://doi.org/10.5281/zenodo.1201560","https://doi.org/10.1038/s41596-018-0009-6","https://doi.org/10.1101/230912","https://www.fieldtriptoolbox.org/tutorial/intracranial/human_ecog/","https://hdl.handle.net/11633/di.dccn.DSC_3015000.00_734","https://pmc.ncbi.nlm.nih.gov/articles/PMC6548463/","https://www.fieldtriptoolbox.org"],"senior_author":"Robert Oostenveld","sessions":[],"sfreq_counts":[{"count":1,"val":5000.0}],"size_bytes":309726524,"source":"nemar","source_datasets":[{"DOI":"doi:10.5281/zenodo.1201560","URL":"https://zenodo.org/records/1201560","Version":"v1.0"}],"stats_computed_at":"2026-10-09T18:38:05.207330+00:00","storage":{"backend":"nemar","base":"s3://nemar/nm000355","dep_keys":["CHANGES","LICENSE","README.md","participants.json","participants.tsv"],"raw_key":"dataset_description.json"},"study_design":null,"study_domain":null,"tagger_meta":{"config_hash":"39931253008fe2df","model":"gpt-6-sol","source":"eegdash-llm-tagger","tagged_at":"2026-10-10T13:18:15Z","taxonomy":"v2"},"tags":{"confidence":{"modality":0.9,"pathology":0.9,"type":0.8},"modality":["Auditory"],"pathology":["Epilepsy"],"reasoning":{"decision_summary":"Pathology top two: Epilepsy versus Healthy. The explicit patient diagnosis and surgical motivation outweigh Healthy; confidence 0.9 is supported by those two quotes and the clinical-cohort few-shot match. Modality top two: Auditory versus No stimulus. \"Hearing a target tone,\" \"tone onset,\" and \"tonedetection\" establish an auditory stimulus; confidence 0.9. Type top two: Perception versus Clinical. \"Tonedetection\" and the instruction to respond upon hearing the tone support sensory detection; the diagnosis alone does not establish a clinical research aim. Perception wins with confidence 0.8. No metadata fact was overridden by a few-shot pattern.","evidence_alignment_check":"Pathology: Metadata says \"medication-refractory epilepsy\" and \"epilepsy surgery.\" The clinical-cohort few-shot pattern suggests the recruited condition, not Healthy. ALIGN; Epilepsy wins. Modality: Metadata says \"hearing a target tone\" and \"tone onset.\" Auditory-stimulus examples suggest Auditory. ALIGN; the button press is a response, not a stimulus modality. Type: Metadata says \"tonedetection\" and describes responding \"when hearing a target tone.\" The sensory-discrimination few-shot pattern suggests Perception; the clinical oddball example makes Clinical a secondary possibility. PARTIAL ALIGN: unlike that example, the metadata does not describe studying epilepsy or attentional oddball effects.","few_shot_analysis":"The schizophrenia visual-discrimination example labels stimulus detection or discrimination as Perception despite a choice response. The auditory music-and-speech example likewise maps responses to sounds to Auditory and Perception. The TBI auditory-oddball example supports labeling a recruited clinical condition as the pathology, but its Clinical + Attention type reflects a patient-focused oddball study rather than this tone-detection task.","metadata_analysis":"The cohort is explicitly described as \"One adult patient with medication-refractory epilepsy\" and the electrodes were implanted \"as part of the preparation for the epilepsy surgery.\" The task required the patient \"to press a button with the right hand when hearing a target tone\"; trials were cut \"around tone onset\" and the task is named \"tonedetection.\" No visual or tactile stimulus is described.","paper_abstract_analysis":"No useful paper information."},"type":["Perception"]},"tasks":["tonedetection"],"timestamps":{"dataset_created_at":null,"dataset_modified_at":"2026-10-08 05:51:24","digested_at":"2026-10-08T08:47:12.936427+00:00"},"total_duration_s":33.8104,"total_files":1},"database":"eegdash","success":true}