BIDS MEG CTF importer - #1463
Open
MaximeBICMTL wants to merge 1 commit into
Open
Conversation
MaximeBICMTL
force-pushed
the
bids-meg-ctf-importer
branch
4 times, most recently
from
July 19, 2026 07:11
82445bc to
abe4d5a
Compare
MaximeBICMTL
force-pushed
the
bids-meg-ctf-importer
branch
from
July 21, 2026 05:25
abe4d5a to
b463f53
Compare
MaximeBICMTL
force-pushed
the
bids-meg-ctf-importer
branch
2 times, most recently
from
August 11, 2026 14:05
602bff2 to
61978a8
Compare
MaximeBICMTL
force-pushed
the
bids-meg-ctf-importer
branch
from
August 11, 2026 14:14
61978a8 to
f9db852
Compare
MaximeBICMTL
marked this pull request as ready for review
August 11, 2026 14:15
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Extracted from #1397
Builds on #1462
Description
This PR adds support for MEG CTF import to the BIDS LORIS importer.
Thanks to previously merged PRs, no SQL patch is required to test the importer and view its data in the LORIS electrophysiology browser. However, note that this visualization may look incomplete (flat-looking signals and no sensor map). As there are still some PRs needed in the front-end to adapt the LORIS electrophysiology browser front-end to MEG data.
A MEG CTF acquisition is not a file but actually a directory. Unfortunately the renaming of CTF acquisitions is non-trivial and there does not seem to be a reliable code or tool to do so in Python (there is a function in
mne-bidsbut it is obviously incomplete/incorrect). As such, the feature to rename BIDS CTF directories is added in the LORIS BIDS utilities, the code to do so being copied from Matlab.Testing
This PR has been tested with the Brainstorm data sample (public data) and the MPN dataset (private data). Integration tests are to be added later.
Here is the output for the Brainstorm data sample. Note that the data sample is not used as-is, the subject label and
participants.tsvfile need to be modified to match the LORIS candidate identifier format.