Skip to content
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: Add fnirs and snirf support to report #9443

Merged
merged 6 commits into from
Jun 6, 2021

Conversation

rob-luke
Copy link
Member

@rob-luke rob-luke commented Jun 3, 2021

This is an issue as a PR, I have opened this for discussion.

What does this implement/fix?

Allows

report = mne.Report()
report.parse_folder(path)

to read fNIRS files stored with the pattern *-nirs.snirf as defined in the draft BIDS standard https://bids-specification--802.org.readthedocs.build/en/802/04-modality-specific-files/10-functional-near-infrared-spectroscopy.html#fnirs-recording-data

Additional information

It seems report is currently used with fiff files, are we open to extending it to other file types?

Allowing the file pattern above will facilitate reading files in the BIDS format. The fNIRS BIDS specification has moved from a community feedback stage to draft proposal: bids-standard/bids-specification#802 However, its not finalised (as I am the BEP lead it is extremely unlikely this file pattern will change, but I am trying to think of all possible issues here).

@larsoner
Copy link
Member

larsoner commented Jun 3, 2021

It seems report is currently used with fiff files, are we open to extending it to other file types?

Seems reasonable to me

@rob-luke
Copy link
Member Author

rob-luke commented Jun 5, 2021

Seems reasonable to me

Well in that case, @larsoner @agramfort could you please review? Maybe relevant to @hoechenberger too.

@rob-luke rob-luke changed the title WIP: Add fnirs and snirf support to report MRG: Add fnirs and snirf support to report Jun 5, 2021
Copy link
Member

@larsoner larsoner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs latest.inc update, otherwise LGTM

Copy link
Member

@agramfort agramfort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx @rob-luke

@agramfort agramfort merged commit 04fd78b into mne-tools:main Jun 6, 2021
@hoechenberger
Copy link
Member

Thanks!!

@rob-luke rob-luke deleted the nirsreport branch June 6, 2021 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants