ftadel / IntrAnat

sEEG software
GNU General Public License v3.0
2 stars 1 forks source link

Import/Export BIDS database #4

Closed ftadel closed 3 years ago

ftadel commented 3 years ago

Import from BIDS-manager database:

Export to BIDS-database:

Reference: https://bids-specification.readthedocs.io/en/stable/04-modality-specific-files/04-intracranial-electroencephalography.html#electrode-description-_electrodestsv

Modifications to ImageImport:

ftadel commented 3 years ago

CHUGA BIDS database – data description

Directory tree

root/
.. dataset_description.json
.. participants.tsv 
.. sourcedata/
.. derivatives/
.. code/
.. sub-<chuga_id>/
…. ses-<inclusion_year>/ 
…. sub-<chuga_id>_ses-<inclusion_year >_scans.tsv
...... ieeg/
…….. sub-<chuga_id>_ses-<inclusion_year >_task-<ieeg_task>_acq-<ieeg_acquisition>_run-<run>_proc-<ieeg_proc>_ieeg.vhdr
…….. sub-<chuga_id>_ses-<inclusion_year >_task-<ieeg_task>_acq-<ieeg_acquisition>_run-<run>_proc-<ieeg_proc>_ieeg.vmrk
…….. sub-<chuga_id>_ses-<inclusion_year >_task-<ieeg_task>_acq-<ieeg_acquisition>_run-<run>_proc-<ieeg_proc>_ieeg.eeg
…….. sub-<chuga_id>_ses-<inclusion_year >_task-<ieeg_task>_acq-<ieeg_acquisition>_run-<run>_proc-<ieeg_proc>_ieeg.json
…….. sub-<chuga_id>_ses-<inclusion_year >_task-<ieeg_task>_acq-<ieeg_acquisition>_run-<run>_proc-<ieeg_proc>_events.tsv
…….. sub-<chuga_id>_ses-<inclusion_year >_task-<ieeg_task>_acq-<ieeg_acquisition>_run-<run>_proc-<ieeg_proc>_channels.tsv
…… anat/
…….. sub-<chuga_id>_ses-<inclusion_year>_acq-<imaging_acquisition>_run-<run>_T1w.nii
…….. sub-<chuga_id>_ses-<inclusion_year>_acq-<imaging_acquisition>_run-<run>_T2w.nii
…….. sub-<chuga_id>_ses-<inclusion_year>_acq-<imaging_acquisition>_run-<run>_FLAIR.nii
…….. sub-<chuga_id>_ses-<inclusion_year>_acq-<imaging_acquisition>_run-<run>_CT.nii
…… pet/
…….. sub-<chuga_id>_ses-<inclusion_year>_acq-<imaging_acquisition>_run-<run>_PET.nii

Complementary information on file formats and file-internal data structures: • Tab-Separted Value format (tsv): labels in first row; data of same type in columns • JavaScript Object Notation (json): 1D (non-nested) key-value pairs • Neuroimaging Informatics Technology Initiative (nii): native space, unprocessed data • Brain Vision (vhdr, vmrk, eeg): unprocessed SEEG data

Directory Description
sub-/ BIDS subject. Subject directory
ses-/ BIDS session. Session directory
sourcedata/ BIDS sourcedata. Contains raw/source data. Follows BIDS folder structure (Empty)
derivatives/ BIDS derivatives. Processing pipeline outputs. Follows BIDS folder structure (Empty)
code/ BIDS code. Source code of scripts used to prepare the data (Empty)

Files

File Description
dataset_description.json short description of the dataset
participants.tsv subjects clinical/demographic data
*._scans.tsv subject/session file listing with acquisition time
*._ieeg.vhdr Brain Vision. text file. header
*._ieeg.vmrk Brain Vision. text file. events
*._ieeg.eeg Brain Vision. binary file. voltage values
*._ieeg.json BIDS acquisition infos. e.g. task, stimulation parameters, recording mode
*._events.tsv BIDS event infos. e.g. onset, duration, type
*._channels.tsv BIDS channel infos. e.g. name, type, sampling frequency
*._T1w.nii T1 weighted MRI
*._T2w.nii T2 weighted MRI
*._FLAIR.nii FLAIR MRI
*._CT.nii Computerized tomography
*._PET.nii Positron emission tomography

BIDS entities/pairs

Key Values
Unique subject identifier
2000, 2001, 2003…
_ CCEP1Hz, Interictal, Seizure, ConfiDecid, Localizer, Switch
preRFTC, postRFTC, sleepPreRFTC, awakePreRFTC, sleepPostRFTC, awakePostRFTC, bloc, stim, training, arfa, audi, comp, lec2, mcse, visu
Unique. Only apply to ConfiDecid iEEG task.
post, postop, pre
01, 02, 03…
ftadel commented 3 years ago

@AnthonyUGA FYI

ftadel commented 3 years ago

Updated to-do list:

sub-test_electrodes.tsv: Patient space based on the T1 (equivalent de space-scanner)

sub-test_space-IXI549Space_electrodes.tsv: SPM12 MNI space

Reference: https://bids-specification.readthedocs.io/en/stable/99-appendices/08-coordinate-systems.html

ftadel commented 3 years ago

Import BIDS: DONE

ftadel commented 3 years ago

Export as BIDS TSV: https://github.com/ftadel/IntrAnat/commit/1899aa7700b4284676e53ca8fe6088f4e181875e https://github.com/ftadel/IntrAnat/commit/c4be735390253dab96a4bd5e9faa85ef2b78a554

Examples of files generated: ieeg_electrodes_tsv.zip