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

Extracting volume info from structural MRIs #124

Open
cgohil8 opened this issue Nov 18, 2022 · 0 comments
Open

Extracting volume info from structural MRIs #124

cgohil8 opened this issue Nov 18, 2022 · 0 comments
Assignees
Labels
bug Something isn't working souce recon

Comments

@cgohil8
Copy link
Collaborator

cgohil8 commented Nov 18, 2022

In osl:

  • We use this function to extract the dimensions from a nifti file: osl.source_recon.rhino.utils._get_vol_info_from_nii.
  • Note, mri_depth=dims[2] in this function.
  • This is used in the forward modelling to setup the source space grid in the function osl.source_recon.rhino.forward_model.setup_volume_source_space.
  • The vol_info is passed to the MNE function mne.source_space._make_volume_source_space here: https://github.com/OHBA-analysis/osl/blob/main/osl/source_recon/rhino/forward_model.py#L375.

Links:

In MNE:

  • There is an equivalent function for setting up the source space grid: mne.source_space.setup_volume_source_space.
  • It too calls mne.source_space._make_volume_source_space here: https://github.com/mne-tools/mne-python/blob/main/mne/source_space.py#L1746.
  • However, the vol_info passed to _make_volume_source_space is created here using mne._freesurfer._get_mri_info_data.
  • Note, mri_depth=dims[1].

Links:

So the question is what should be used for the vol_info passed to mne.source_space._make_volume_source_space?

Note:

An example of a nifti file where the volume dimensions do not have mri_depth=mri_height is any of the structurals in the Wakeman-Henson dataset.

@cgohil8 cgohil8 added the bug Something isn't working label Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working souce recon
Projects
None yet
Development

No branches or pull requests

2 participants