-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add funloc dataset to test support for session-specific anat #1039
Open
drammock
wants to merge
9
commits into
mne-tools:main
Choose a base branch
from
drammock:add-funloc
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
Changes from 5 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
b14cd4d
add skeleton for funloc testing dataset
drammock 50b5be3
allow .tar.gz downloads; adjust dataset name; add URL and hash
drammock c385f96
add dataset to circleCI and docs
drammock bf013cf
saner config
drammock 69f37f1
add test that monkeypatches funloc to emulate session-specific MRIs
drammock 4757cb6
refactor _has_session_specific_anat to shared helper
drammock 8fc7155
WIP fix for make_bem_surfaces
drammock cdc81e1
DRY; add comments [ci skip]
drammock f6d2e6e
use --root-dir instead of extra_config
drammock 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 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 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 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 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 @@ | ||
"""Funloc data.""" | ||
|
||
from pathlib import Path | ||
|
||
data_root = Path("~/mne_data").expanduser().resolve() | ||
bids_root = data_root / "MNE-funloc-data" | ||
deriv_root = data_root / "derivatives" / "mne-bids-pipeline" / "MNE-funloc-data" | ||
subjects_dir = bids_root / "derivatives" / "freesurfer" / "subjects" | ||
task = "funloc" | ||
ch_types = ["meg", "eeg"] | ||
data_type = "meg" | ||
|
||
# filter | ||
l_freq = None | ||
h_freq = 50.0 | ||
# maxfilter | ||
use_maxwell_filter: bool = True | ||
mf_st_duration = 60.0 | ||
# SSP | ||
n_proj_eog = dict(n_mag=1, n_grad=1, n_eeg=2) | ||
n_proj_ecg = dict(n_mag=1, n_grad=1, n_eeg=0) | ||
|
||
# Epochs | ||
epochs_tmin = -0.2 | ||
epochs_tmax = 0.5 | ||
epochs_t_adjust = -4.0e-3 # TODO is there a way to do this in MBP? | ||
epochs_decim = 5 # 1000 -> 200 Hz | ||
baseline = (None, 0) | ||
conditions = [ | ||
"auditory/standard", | ||
"auditory/deviant", | ||
"visual/standard", | ||
"visual/deviant", | ||
] | ||
# contrasts | ||
contrasts = [("auditory", "visual")] |
This file contains 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@larsoner does MBP have a way of doing what
t_adjust
does in mnefun?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this should be fixed/adjusted when bidsifying the dataset I think (the timings, event types, etc. in there should be as accurate as possible and not require fixing)