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

Coregistration for CTF data without headshape points + Improvements #292

Merged
merged 21 commits into from
May 15, 2024

Conversation

cgohil8
Copy link
Collaborator

@cgohil8 cgohil8 commented May 14, 2024

We sometimes have sMRI fiducials we've recorded. We want to match these to the MEG HPI fiducials rather than using the hardcoded landmark sMRI fiducials.

Changes:

  • Options to read HPI fiducials from fif info when you have CTF data.
  • Option to specify MNI fiducials.
  • Added function to extract polhemus data from pos files.
  • Suppressed warnings when saving coreg.html.
  • Added warning if _trans in preproc filename to let the user know the coreg plot might be incorrect.
  • Updated examples.
  • Refactored code.

Example usage for saving MNI fiducials:

from osl import source_recon

config = """
    source_recon:   
    - extract_polhemus_from_info: {}
    - save_mni_fiducials:
        filepath: data/fiducials/{subject}_smri_fid.txt
    - compute_surfaces:
        include_nose: False    
    - coregister:
        use_nose: False
        use_headshape: False
"""

source_recon.run_src_batch(
    config,
    src_dir=src_dir,
    subjects=subjects,
    preproc_files=preproc_files,
    smri_files=smri_files,
)

@cgohil8 cgohil8 marked this pull request as ready for review May 14, 2024 20:34
@cgohil8 cgohil8 linked an issue May 14, 2024 that may be closed by this pull request
@cgohil8 cgohil8 changed the title Coregistration for CTF data without headshape points Coregistration for CTF data without headshape points + Improvements May 14, 2024
@cgohil8 cgohil8 force-pushed the std_fids branch 4 times, most recently from ecddb19 to 841b1e9 Compare May 14, 2024 21:34
@cgohil8 cgohil8 force-pushed the std_fids branch 2 times, most recently from 00ac6c5 to 07675ca Compare May 14, 2024 22:34
@cgohil8 cgohil8 merged commit a9644f3 into main May 15, 2024
1 check passed
@cgohil8 cgohil8 deleted the std_fids branch May 15, 2024 09:08
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.

Using -trans in maxfilter affects coregistration
1 participant