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

Fix the montage rereference #131

Open
christian-oreilly opened this issue Jun 6, 2023 · 5 comments
Open

Fix the montage rereference #131

christian-oreilly opened this issue Jun 6, 2023 · 5 comments
Labels
enhancement New feature or request
Milestone

Comments

@christian-oreilly
Copy link
Collaborator

Currently the pipeline function wrap_locs appears not be used anywhere. Similarly, self.config['replace_string']['montage_info'] is used only in wrap_locs. I also think we did not implemented the referencing on a common surface. We need to fix these things.

@christian-oreilly christian-oreilly added the enhancement New feature or request label Jun 6, 2023
@christian-oreilly christian-oreilly modified the milestones: 0.02, 0.03 Jun 6, 2023
@scott-huberty
Copy link
Member

self.config['replace_string'] definitely sounds like a hold over from the MATLAB config, If I recall correctly.

I also think we did not implemented the referencing on a common surface.

True. But we never decided on whether it's worth the effort?

@christian-oreilly
Copy link
Collaborator Author

True. But we never decided on whether it's worth the effort?

Indeed. That is the point... we should decide and act on it (i.e., remove wrap_locs if not, implement it if yes). Following the previous exchange with @jadesjardins I tend to lean on the side that it is relevant to do something... particularly for the pooling of dataset recording with different systems and having a different coverage of the head (e.g., EGI including the lower back of the head vs a 10-20 montage that did not) since this coverage difference can bias the reference.

self.config['replace_string'] definitely sounds like a hold over from the MATLAB config, If I recall correctly.

Yes, but I am not so much reference to the 'replace_string' of that code but the 'montage_info' and the fact that we currently have two place where the montage can be specified.

@scott-huberty
Copy link
Member

Indeed. That is the point... we should decide and act on it (i.e., remove wrap_locs if not, implement it if yes). Following the previous exchange with @jadesjardins I tend to lean on the side that it is relevant to do something...

Agreed. Now we just have to find someone to do the job ;)

@Andesha
Copy link
Contributor

Andesha commented Jun 26, 2023

I'm happy to take a stab at something like this. I'm about to push a minor montage fix so it's good timing.

Can you point me to the MNE functions that would do something like warp_locs to a standard surface sort of thing?

@scott-huberty
Copy link
Member

@Andesha I haven't looked at dyour comment/PR Yet but yeah the co-registration to the 10-20 surface (to be used for robust average referencing) is something we want to implement but it's a bit complex so never finished it.

If you look at the warp_locs code you'll see what mne function is called, and you can check the imports to see what module it is coming from.

The MNE site will definitely have an API documentation and probably a tutorial for it.

Ping us with any questions, we're happy to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants