-
Notifications
You must be signed in to change notification settings - Fork 92
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
MRG: Initial support for NIRS data #406
Conversation
@rob-luke is the bids validator working already with fNIRS? if not I would start there |
No it's not. Im working on that now too. Will focus my efforts there first then. |
cross link: https://github.com/bids-standard/bids-validator/pull/952 👍 good idea to open PRs for this early @rob-luke |
You will need the validator for testing in |
but you can use your own bids-validator fork for testing in this mne-bids PR ... that way you get your own experimental bids-validator nirs support for the changes you want to introduce here. You'd have to change this line: Lines 38 to 39 in 1ce1717
and this one, to point to your fork: Line 69 in 1ce1717
and similarly in Appveyor. PS: But of course we can only merge here, once your validator PR is merged. (So this PR will probably also have to be rebased regularly) |
Absolutely. Thanks
This is some dark git magic. Love it, thanks for the pointer. |
Ok I will get back to this soon, and looks like I will need to rebase. I think most of the behind the scenes work for snirf is now completed at mne-tools/mne-python#8079 and mne-tools/mne-nirs#151 and mne-tools/mne-python#7972 |
sounds good! |
Codecov Report
@@ Coverage Diff @@
## master #406 +/- ##
==========================================
- Coverage 93.98% 92.27% -1.71%
==========================================
Files 23 23
Lines 2791 2860 +69
==========================================
+ Hits 2623 2639 +16
- Misses 168 221 +53
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## main #406 +/- ##
==========================================
+ Coverage 94.63% 94.74% +0.10%
==========================================
Files 25 25
Lines 3600 3672 +72
==========================================
+ Hits 3407 3479 +72
Misses 193 193
Continue to review full report at Codecov.
|
@rob-luke can we move forward with this somehow? One option is that when reading fNIRS files we emit a warning that it's experimental. I think it "just" needs a rebase or -- maybe easier -- merge with |
Getting this merged will save me a headache and simplify the tutorials in MNE-NIRS too!! That would be fantastic if we can merge this before the spec is accepted (from early comments above I got the impression this was not acceptable). I will rebase then you can add whatever warnings you'd expect. |
It looks like this PR has been open for a year and a half, any additional arguments you can make in its favor based on that to persuade folks? Like it's needed to read data from some studies with public data in the wild, has been pretty stable, etc.? At some point it seems like merging something experimental might be worth it if the spec expansion is moving very slowly, but not expected to deviate much from what this PR does. But I am far from a BIDS expert, so I might be way off on this... |
I think we want to get this merged because the spec is stable (we are just writing the manuscript now), has been implemented as is in the other toolboxes (Homer), is used for several publicly available studies. But I am having a hard time rebasing. I might just make a new branch from main and copy the changes. Its a mess for such old PRs :( Unless you have another tip? |
Rebasing 43 commits is a nightmare. I would |
... but sometimes copy-paste is easy enough. Since this is just Either way, though, you could force-push here rather than opening a separate PR. For example:
Then this PR just sees your one new commit, but preserves the conversation. |
I started adding some tests, but we will need to wait for mne-tools/mne-testing-data#91 to be merged first. |
Great! The first test is passing on |
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.
I have a minimal example running. But I did not have time to write the associated text yet, I will do that in the coming days. In the meantime, I had one question about how to download the data correctly.
@rob-luke Could you please make it such that the originally downloaded and the created BIDS files end up in |
Co-authored-by: Eric Larson <[email protected]>
Thanks for the feedback, you can see the latest render of the example at https://6055-89170358-gh.circle-artifacts.com/0/dev/auto_examples/convert_nirs_to_bids.html |
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.
LGTM!
Thanks @rob-luke! |
Thank you @hoechenberger! |
PR Description
This PR adds support for fNIRS. There is a BEP in progress for NIRS support here... bids-standard/bids-specification#438
This is a work in progress of a work in progress document. It should not be relied upon for storage of data.
I am maintaining this PR to stay up to date with the BEP. The plan is to use this PR to test what works and doesn't in the document, and iterate accordingly.
Merge checklist
Maintainer, please confirm the following before merging: