-
Notifications
You must be signed in to change notification settings - Fork 98
Bug/ieeg/coords #1051
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
timonmerk
wants to merge
12
commits into
mne-tools:main
Choose a base branch
from
timonmerk:bug/ieeg/coords
base: main
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
Bug/ieeg/coords #1051
Changes from 5 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
9746713
add test for montage coord_frame
timonmerk 6e4be6e
dummy data for ECOG localization
JojoVh 431792c
add test for montage coord_frame
timonmerk 1986d0b
simplify testing
agramfort c4aac22
Apply suggestions from code review
timonmerk 8edcbd7
add test for ieeg bids data montage coord frame
timonmerk e9b80d0
fix import
timonmerk abc2009
Update mne_bids/tests/test_read.py
sappelhoff a699e01
Merge branch 'main' into bug/ieeg/coords
sappelhoff aebcdae
Merge pull request #1 from JonathanVHoecke/main
timonmerk 1362c18
Revert "dummy data for ECOG localization"
timonmerk e35f3ad
Merge pull request #2 from timonmerk/revert-1-main
timonmerk 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| References | ||
| ---------- | ||
| Appelhoff, S., Sanderson, M., Brooks, T., Vliet, M., Quentin, R., Holdgraf, C., Chaumon, M., Mikulan, E., Tavabi, K., Höchenberger, R., Welke, D., Brunner, C., Rockhill, A., Larson, E., Gramfort, A. and Jas, M. (2019). MNE-BIDS: Organizing electrophysiological data into the BIDS format and facilitating their analysis. Journal of Open Source Software 4: (1896). https://doi.org/10.21105/joss.01896 | ||
|
|
||
| Holdgraf, C., Appelhoff, S., Bickel, S., Bouchard, K., D'Ambrosio, S., David, O., … Hermes, D. (2019). iEEG-BIDS, extending the Brain Imaging Data Structure specification to human intracranial electrophysiology. Scientific Data, 6, 102. https://doi.org/10.1038/s41597-019-0105-7 | ||
|
|
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,8 @@ | ||
| { | ||
| "Name": " ", | ||
| "BIDSVersion": "1.6.0", | ||
| "DatasetType": "raw", | ||
| "Authors": [ | ||
| "[Unspecified]" | ||
| ] | ||
| } |
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": { | ||
| "Description": "Unique participant identifier" | ||
| }, | ||
| "age": { | ||
| "Description": "Age of the participant at time of testing", | ||
| "Units": "years" | ||
| }, | ||
| "sex": { | ||
| "Description": "Biological sex of the participant", | ||
| "Levels": { | ||
| "F": "female", | ||
| "M": "male" | ||
| } | ||
| }, | ||
| "hand": { | ||
| "Description": "Handedness of the participant", | ||
| "Levels": { | ||
| "R": "right", | ||
| "L": "left", | ||
| "A": "ambidextrous" | ||
| } | ||
| } | ||
| } |
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 age sex hand | ||
| sub-01 n/a n/a n/a |
5 changes: 5 additions & 0 deletions
5
...ata/ieeg_bids/sub-01/ses-01/ieeg/sub-01_ses-01_space-MNI152NLin2009bAsym_coordsystem.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,5 @@ | ||
| { | ||
| "iEEGCoordinateSystem": "MNI152NLin2009bAsym", | ||
| "iEEGCoordinateSystemDescription": "mni", | ||
| "iEEGCoordinateUnits": "mm" | ||
| } |
11 changes: 11 additions & 0 deletions
11
.../data/ieeg_bids/sub-01/ses-01/ieeg/sub-01_ses-01_space-MNI152NLin2009bAsym_electrodes.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,11 @@ | ||
| name x y z type | ||
| ECOG_0 22.5 -38.5 83.0 ECOG | ||
| ECOG_1 28.0 -29.0 81.5 ECOG | ||
| ECOG_2 32.0 -19.5 78.0 ECOG | ||
| ECOG_3 37.0 -10.5 73.5 ECOG | ||
| ECOG_4 40.5 -2.0 69.5 ECOG | ||
| ECOG_5 42.5 6.5 63.0 ECOG | ||
| ECOG_6 45.5 13.5 55.5 ECOG | ||
| ECOG_7 48.0 22.5 48.5 ECOG | ||
| ECOG_8 45.5 13.5 55.5 ECOG | ||
| ECOG_9 48.0 22.5 48.5 ECOG |
11 changes: 11 additions & 0 deletions
11
...ests/data/ieeg_bids/sub-01/ses-01/ieeg/sub-01_ses-01_task-audiovisual_run-01_channels.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,11 @@ | ||
| name type units low_cutoff high_cutoff description sampling_frequency status status_description | ||
| ECOG_0 ECOG µV 0.0 500.0 Electrocorticography 1000.0 good n/a | ||
| ECOG_1 ECOG µV 0.0 500.0 Electrocorticography 1000.0 good n/a | ||
| ECOG_2 ECOG µV 0.0 500.0 Electrocorticography 1000.0 good n/a | ||
| ECOG_3 ECOG µV 0.0 500.0 Electrocorticography 1000.0 good n/a | ||
| ECOG_4 ECOG µV 0.0 500.0 Electrocorticography 1000.0 good n/a | ||
| ECOG_5 ECOG µV 0.0 500.0 Electrocorticography 1000.0 good n/a | ||
| ECOG_6 ECOG µV 0.0 500.0 Electrocorticography 1000.0 good n/a | ||
| ECOG_7 ECOG µV 0.0 500.0 Electrocorticography 1000.0 good n/a | ||
| ECOG_8 ECOG µV 0.0 500.0 Electrocorticography 1000.0 good n/a | ||
| ECOG_9 ECOG µV 0.0 500.0 Electrocorticography 1000.0 good n/a |
Binary file added
BIN
+39.1 KB
...ds/tests/data/ieeg_bids/sub-01/ses-01/ieeg/sub-01_ses-01_task-audiovisual_run-01_ieeg.eeg
Binary file not shown.
18 changes: 18 additions & 0 deletions
18
...s/tests/data/ieeg_bids/sub-01/ses-01/ieeg/sub-01_ses-01_task-audiovisual_run-01_ieeg.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,18 @@ | ||
| { | ||
| "TaskName": "audiovisual", | ||
| "Manufacturer": "BrainProducts", | ||
| "PowerLineFrequency": "n/a", | ||
| "SamplingFrequency": 1000.0, | ||
| "SoftwareFilters": "n/a", | ||
| "RecordingDuration": 0.999, | ||
| "RecordingType": "continuous", | ||
| "iEEGReference": "n/a", | ||
| "ECOGChannelCount": 10, | ||
| "SEEGChannelCount": 0, | ||
| "EEGChannelCount": 0, | ||
| "EOGChannelCount": 0, | ||
| "ECGChannelCount": 0, | ||
| "EMGChannelCount": 0, | ||
| "MiscChannelCount": 0, | ||
| "TriggerChannelCount": 0 | ||
| } |
35 changes: 35 additions & 0 deletions
35
...s/tests/data/ieeg_bids/sub-01/ses-01/ieeg/sub-01_ses-01_task-audiovisual_run-01_ieeg.vhdr
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,35 @@ | ||
| Brain Vision Data Exchange Header File Version 1.0 | ||
| ; Written using pybv 0.6.0 | ||
|
|
||
| [Common Infos] | ||
| Codepage=UTF-8 | ||
| DataFile=sub-01_ses-01_task-audiovisual_run-01_ieeg.eeg | ||
| MarkerFile=sub-01_ses-01_task-audiovisual_run-01_ieeg.vmrk | ||
| DataFormat=BINARY | ||
| ; Data orientation: MULTIPLEXED=ch1,pt1, ch2,pt1 ... | ||
| DataOrientation=MULTIPLEXED | ||
| NumberOfChannels=10 | ||
| ; Sampling interval in microseconds | ||
| SamplingInterval=1000.0 | ||
|
|
||
| [Binary Infos] | ||
| BinaryFormat=IEEE_FLOAT_32 | ||
|
|
||
| [Channel Infos] | ||
| ; Each entry: Ch<Channel number>=<Name>,<Reference channel name>, | ||
| ; <Resolution in "Unit">,<Unit>, Future extensions.. | ||
| ; Fields are delimited by commas, some fields might be omitted (empty). | ||
| ; Commas in channel names are coded as "\1". | ||
| Ch1=ECOG_0,,0.1,µV | ||
| Ch2=ECOG_1,,0.1,µV | ||
| Ch3=ECOG_2,,0.1,µV | ||
| Ch4=ECOG_3,,0.1,µV | ||
| Ch5=ECOG_4,,0.1,µV | ||
| Ch6=ECOG_5,,0.1,µV | ||
| Ch7=ECOG_6,,0.1,µV | ||
| Ch8=ECOG_7,,0.1,µV | ||
| Ch9=ECOG_8,,0.1,µV | ||
| Ch10=ECOG_9,,0.1,µV | ||
|
|
||
| [Comment] | ||
|
|
13 changes: 13 additions & 0 deletions
13
...s/tests/data/ieeg_bids/sub-01/ses-01/ieeg/sub-01_ses-01_task-audiovisual_run-01_ieeg.vmrk
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,13 @@ | ||
| Brain Vision Data Exchange Marker File, Version 1.0 | ||
| ;Exported using pybv 0.6.0 | ||
|
|
||
| [Common Infos] | ||
| Codepage=UTF-8 | ||
| DataFile=sub-01_ses-01_task-audiovisual_run-01_ieeg.eeg | ||
|
|
||
| [Marker Infos] | ||
| ; Each entry: Mk<Marker number>=<Type>,<Description>,<Position in data points>, | ||
| ; <Size in data points>, <Channel number (0 = marker is related to all channels)> | ||
| ; <Date (YYYYMMDDhhmmssuuuuuu)> | ||
| ; Fields are delimited by commas, some fields might be omitted (empty). | ||
| ; Commas in type or description text are coded as "\1". |
2 changes: 2 additions & 0 deletions
2
mne_bids/tests/data/ieeg_bids/sub-01/ses-01/sub-01_ses-01_scans.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,2 @@ | ||
| filename acq_time | ||
| ieeg/sub-01_ses-01_task-audiovisual_run-01_ieeg.vhdr n/a |
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
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.