-
Notifications
You must be signed in to change notification settings - Fork 148
[ENH] BEP020 examples #514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
julia-pfarr
wants to merge
19
commits into
bids-standard:master
Choose a base branch
from
julia-pfarr:bep020-examples
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 15 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
088a070
enh: add first dataset (ds004158)
oesteban 43af44e
enh: add second dataset (natImSac)
oesteban 895839d
enh: leave only two participants per example
oesteban 23bed6a
fix: point schema to BEP020's version
oesteban ad78dd8
modify examples according to new BEP020 updates
julia-pfarr 39da7f1
resolve validator issues
julia-pfarr d005d7b
fix participants.tsv
julia-pfarr 80b9098
Merge remote-tracking branch 'upstream/master' into bep020-examples
effigies c90a32f
chore: Skip eyetracking on older validators
effigies 10ea5fa
Fix JSON schema complaints
effigies 32ada92
Fix JSON schema complaints
effigies 7f8acab
Add gzip headers to tsv.gz files
effigies 4d4ea71
chore(ci): Install BEP020 branch of validator
effigies 163e25f
add missing ScreenOrigin
julia-pfarr 07dc0dc
change openneuro reference
julia-pfarr 3226fc7
Apply suggestions from code review
julia-pfarr b594918
correct screen distance and delete EnvironmentCoordinates
julia-pfarr 9a9f4bf
Merge branch 'bep020-examples' of https://github.com/julia-pfarr/bids…
julia-pfarr 9b7d052
Merge branch 'bids-standard:master' into bep020-examples
julia-pfarr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Example BIDS Physio-EyeTracking Dataset - Binocular Recordings | ||
|
||
## Data descriptor | ||
|
||
Authors: Martin SZINTE, Guillaume Masson, Jason Samonds & Nicholas Priebe | ||
BIDS-Conversion: Julia-Katharina Pfarr, Rémi Gau | ||
BIDS-Example: Julia-Katharina Pfarr, Oscar Esteban | ||
Project: natImSac | ||
Version: 1.0 | ||
|
||
## Data | ||
|
||
This example corresponds to the structure of the "natImSac" project, adapted to demonstrate BEP020. | ||
This example does not contain any eye-tracking data, it just shows the BIDS organization of an experiment with an eye-tracker. | ||
For the full example preserving the actual eye-tracker recordings, please access the DataLad dataset at https://github.com/julia-pfarr/natImSac_BIDSexample.git. | ||
|
||
The original source data is found at https://github.com/mszinte/natImSac. | ||
The natImSac involved an experiment in which human participant free view natural images to determine saccade and fixation statistics. | ||
Full description of the project is found in the following [publication](https://doi.org/10.1523/ENEURO.0287-23.2023). | ||
Only the eye-tracking data of the original dataset and a subset of participants and runs thereof were kept for this example dataset. | ||
|
||
## Methods (BIDS Conversion) | ||
|
||
Sourcedata was converted to raw data according to the BIDS Physio-EyeTracking specification using the [eye2bids](https://github.com/bids-standard/eye2bids) converter tool. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"Name": "natImSac", | ||
"BIDSVersion": "1.10.0-dev", | ||
"DatasetType": "raw", | ||
"License": "CCBY4", | ||
"Authors": [ | ||
"Martin Szinte", | ||
"Guillaume Masson", | ||
"Jason Samonds", | ||
"Nicholas Priebe" | ||
], | ||
"HowToAcknowledge": "Please cite this paper: https://doi.org/10.1523/ENEURO.0287-23.2023", | ||
"Funding": [ | ||
"This research was funded by Agence Nationale de la Recherche ANR-20NEUC-0002 (G.S.M.) and National Institutes of Health NIH-R01NS120562 (N.J.P.), NIH-R01EY025102 (N.J.P.), and NIH-R01EY034092 (J.M.S.)." | ||
], | ||
"GeneratedBy": [ | ||
{ | ||
"Name": "eye2bids", | ||
"CodeURL": "https://github.com/bids-standard/eye2bids" | ||
} | ||
], | ||
"SourceDatasets": [ | ||
{ | ||
"URL": "https://github.com/mszinte/natImSac", | ||
"Version": "October 2020" | ||
} | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"participant_id": { | ||
"LongName": "patient idnetification", | ||
"Description": "anonymized, BIDS compatible identification" | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
participant_id | ||
sub-01 |
10 changes: 10 additions & 0 deletions
10
eyetracking_binocular/sub-01/beh/sub-01_task-FreeView_run-01_events.tsv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
onset duration run_number trial_number image_blank_size image_blank_num | ||
1785.302201 32.0600146 1 1 2 77 | ||
1817.506034 31.9947156 1 2 1 16 | ||
1849.675358 32.0047486 1 3 1 50 | ||
1881.846792 31.9950453 1 4 1 70 | ||
1914.00865 32.0089389 1 5 1 33 | ||
1946.145349 31.9961995 1 6 1 81 | ||
1978.265709 31.9956032 1 7 2 57 | ||
2010.394642 31.995466 1 8 2 26 | ||
2042.549024 29.9995082 1 9 1 76 |
9 changes: 9 additions & 0 deletions
9
eyetracking_binocular/sub-01/beh/sub-01_task-FreeView_run-01_recording-eye1_physio.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"StartTime": 1648407, | ||
"StopTime": 1993390, | ||
"CalibrationCount": 1, | ||
"CalibrationType": "HV13", | ||
"RecordedEye": "left", | ||
"AverageCalibrationError": 0.29, | ||
"MaximalCalibrationError": 0.61 | ||
} |
Binary file added
BIN
+20 Bytes
eyetracking_binocular/sub-01/beh/sub-01_task-FreeView_run-01_recording-eye1_physio.tsv.gz
Binary file not shown.
Binary file added
BIN
+20 Bytes
...cking_binocular/sub-01/beh/sub-01_task-FreeView_run-01_recording-eye1_physioevents.tsv.gz
Binary file not shown.
9 changes: 9 additions & 0 deletions
9
eyetracking_binocular/sub-01/beh/sub-01_task-FreeView_run-01_recording-eye2_physio.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"StartTime": 1648407, | ||
"StopTime": 1993390, | ||
"CalibrationCount": 1, | ||
"CalibrationType": "HV13", | ||
"RecordedEye": "right", | ||
"AverageCalibrationError": 0.3, | ||
"MaximalCalibrationError": 0.65 | ||
} |
Binary file added
BIN
+20 Bytes
eyetracking_binocular/sub-01/beh/sub-01_task-FreeView_run-01_recording-eye2_physio.tsv.gz
Binary file not shown.
Binary file added
BIN
+20 Bytes
...cking_binocular/sub-01/beh/sub-01_task-FreeView_run-01_recording-eye2_physioevents.tsv.gz
Binary file not shown.
10 changes: 10 additions & 0 deletions
10
eyetracking_binocular/sub-01/beh/sub-01_task-FreeView_run-02_events.tsv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
onset duration run_number trial_number image_blank_size image_blank_num | ||
2169.998589 32.008892 2 10 2 79 | ||
2202.127506 31.9959166 2 11 2 68 | ||
2234.231261 31.9961381 2 12 2 83 | ||
2266.418559 31.9962044 2 13 1 32 | ||
2298.574443 31.9991934 2 14 2 13 | ||
2330.768193 31.9959178 2 15 1 51 | ||
2362.913755 31.999576 2 16 2 1 | ||
2395.109372 32.0043407 2 17 1 39 | ||
2427.254733 29.9965816 2 18 1 30 |
9 changes: 9 additions & 0 deletions
9
eyetracking_binocular/sub-01/beh/sub-01_task-FreeView_run-02_recording-eye1_physio.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"StartTime": 2078643, | ||
"StopTime": 2378110, | ||
"CalibrationCount": 1, | ||
"CalibrationType": "HV13", | ||
"RecordedEye": "left", | ||
"AverageCalibrationError": 0.51, | ||
"MaximalCalibrationError": 2.54 | ||
} |
Binary file added
BIN
+20 Bytes
eyetracking_binocular/sub-01/beh/sub-01_task-FreeView_run-02_recording-eye1_physio.tsv.gz
Binary file not shown.
Binary file added
BIN
+20 Bytes
...cking_binocular/sub-01/beh/sub-01_task-FreeView_run-02_recording-eye1_physioevents.tsv.gz
Binary file not shown.
9 changes: 9 additions & 0 deletions
9
eyetracking_binocular/sub-01/beh/sub-01_task-FreeView_run-02_recording-eye2_physio.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"StartTime": 2078643, | ||
"StopTime": 2378110, | ||
"CalibrationCount": 1, | ||
"CalibrationType": "HV13", | ||
"RecordedEye": "right", | ||
"AverageCalibrationError": 0.51, | ||
"MaximalCalibrationError": 3.53 | ||
} |
Binary file added
BIN
+20 Bytes
eyetracking_binocular/sub-01/beh/sub-01_task-FreeView_run-02_recording-eye2_physio.tsv.gz
Binary file not shown.
Binary file added
BIN
+20 Bytes
...cking_binocular/sub-01/beh/sub-01_task-FreeView_run-02_recording-eye2_physioevents.tsv.gz
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"Columns": [ | ||
"onset", | ||
"duration", | ||
"run_number", | ||
"trial_number", | ||
"image_blank_size", | ||
"image_blank_num" | ||
], | ||
"Description": "Timing and other properties of events recorded during a run.", | ||
"ForeignIndexColumn": "timestamp", | ||
"onset": { | ||
"Description": "Onset (in seconds) of the event, measured from the beginning of the acquisition of the first data point stored in the corresponding task data file." | ||
}, | ||
"duration": { | ||
"Description": "Duration of the event (measured from onset) in seconds." | ||
}, | ||
"run_number": { | ||
"Description": "Number of run according to run-<index> specification." | ||
}, | ||
"trial_number": { | ||
"Description": "Number of trial within one session." | ||
}, | ||
"image_blank_size": { | ||
"Description": "Size of the image displayed, where 1 = 583.7x465.83 pixel and 2 = 1204.87 x 950.44 pixel" | ||
}, | ||
"image_blank_num": { | ||
"Description": "Index number of the image displayed from https://github.com/mszinte/natImSac/tree/main/stim." | ||
}, | ||
"TaskName": "FreeView", | ||
"EnvironmentCoordinates": "top-left", | ||
"InstitutionAddress": "27 Bd Jean Moulin, 13005 Marseille, France", | ||
"InstitutionName": "Institut de Neurosciences de la Timone", | ||
"StimulusPresentation": { | ||
"ScreenDistance": 60, | ||
"ScreenOrigin": ["top", "left"], | ||
"ScreenRefreshRate": 120, | ||
"ScreenSize": [ | ||
0.696, | ||
0.391 | ||
], | ||
"ScreenResolution": [ | ||
1919, | ||
1079 | ||
], | ||
"Code": "https://github.com/mszinte/natImSac/tree/main/trials" | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"Manufacturer": "SR-Research", | ||
"PhysioType": "eyetrack", | ||
"Columns": [ | ||
"timestamp", | ||
"x_coordinate", | ||
"y_coordinate", | ||
"pupil_size" | ||
], | ||
"timestamp": { | ||
"Description": "a continuously increasing identifier of the sampling time registered by the device", | ||
"Units": "ms", | ||
"Origin": "SystemStartup" | ||
|
||
}, | ||
"x_coordinate": { | ||
"LongName": "Gaze position (x)", | ||
"Description": "Gaze position x-coordinate of the recorded eye, in the coordinate units specified in the corresponding metadata sidecar.", | ||
"Units": "pixel" | ||
}, | ||
"y_coordinate": { | ||
"LongName": "Gaze position (y)", | ||
"Description": "Gaze position y-coordinate of the recorded eye, in the coordinate units specified in the corresponding metadata sidecar.", | ||
"Units": "pixel" | ||
}, | ||
"pupil_size": { | ||
"Description": "Pupil area of the recorded eye as calculated by the eye-tracker in arbitrary units (see EyeLink's documentation for conversion).", | ||
"Units": "a.u." | ||
}, | ||
"SampleCoordinateSystem": "gaze-on-screen", | ||
"ManufacturersModelName": "EYELINK II CL v5.12 May 12 2017", | ||
"DeviceSerialNumber": "CLG-BAF38", | ||
"PupilFitMethod": "CENTROID", | ||
"SamplingFrequency": 1000, | ||
"EyeTrackingMethod": "P-CR" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"Columns": [ | ||
"onset", | ||
"duration", | ||
"trial_type", | ||
"blink", | ||
"message" | ||
], | ||
"Description": "Messages logged by the measurement device", | ||
"ForeignIndexColumn": "timestamp", | ||
julia-pfarr marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
"blink": { | ||
"Description": "Gives status of the eye.", | ||
"Levels": { | ||
"0": "Indicates if the eye was open.", | ||
"1": "Indicates if the eye was closed." | ||
} | ||
}, | ||
"message": { | ||
"Description": "String messages logged by the eye-tracker." | ||
}, | ||
"trial_type": { | ||
"Description": "Event type as identified by the eye-tracker's model.", | ||
"Levels": { | ||
"fixation": "Indicates a fixation.", | ||
"saccade": "Indicates a saccade." | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
2.0.6 2025-05-09 | ||
- updated jsons according to new BEP020 updates |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Eye-tracking example for BEP020 from OpenNeuro's ds004158 REST_EYE | ||
|
||
Sourcedata by : Martin Szinte, Anna Montagnini & Guillaume Masson<br/> | ||
Sourcedata: https://openneuro.org/datasets/ds004158 | ||
|
||
Curated-by: Julia-Katharina Pfarr, Oscar Esteban | ||
|
||
## Methods (BIDS Conversion) | ||
|
||
Sourcedata was converted to raw data according to the BIDS Physio-EyeTracking specification using the [eye2bids](https://github.com/bids-standard/eye2bids) converter tool. | ||
|
||
Please refer to the source dataset to learn more about the original | ||
experiment, or to access the full dataset. | ||
|
||
## Experiment description | ||
|
||
Participants where told to let their mind wonder while keeping fixation to a fixation dot at the screen | ||
center.<br/> | ||
Participants where told to let their mind wonder while keeping fixation to a fixation dot at the screen | ||
These data are here use to provide an example of BIDS eyetracking data together with fMRI.<br/> | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"Name": "rest_eye", | ||
"BIDSVersion": "1.1.1", | ||
"Authors": [ | ||
"Martin Szinte", | ||
"Anna Montagnini", | ||
"Guillaume Masson" | ||
], | ||
"Note": "These data are part of a larger dataset and presented here only to provide an example to BIDS eyetracking modality", | ||
"DatasetDOI": "doi:10.18112/openneuro.ds004158.v2.0.6", | ||
"License": "CC0" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"participant_id": { | ||
"LongName": "patient idnetification", | ||
"Description": "anonymized, BIDS compatible identification" | ||
}, | ||
"sex": { | ||
"Levels": { | ||
"M" : "Male", | ||
"F" : "Female" | ||
} | ||
}, | ||
"age": { | ||
"Description" : "Age of the subject at time of scan with 3 digits" | ||
}, | ||
"GUID": { | ||
"Description" : "Unique participant ID as set in the INT" | ||
}, | ||
"eTIV": { | ||
"LongName": "EstimatedTotalIntraCranialVol", | ||
"Description" : "Estimated total intracranial volume as measured with 'mri_segstats' function of Freesurfer (mri_segstats --subject subjid --etiv-only)", | ||
"Units": "mm3" | ||
} | ||
|
||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
participant_id sex age GUID eTIV | ||
sub-01 M 35 19B10ABE8F9F 1775498 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.