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

[ENH] QA for GLM should show the included voxel #568

Open
1 task done
Remi-Gau opened this issue May 13, 2022 · 1 comment · May be fixed by #1316
Open
1 task done

[ENH] QA for GLM should show the included voxel #568

Remi-Gau opened this issue May 13, 2022 · 1 comment · May be fixed by #1316

Comments

@Remi-Gau
Copy link
Contributor

Remi-Gau commented May 13, 2022

Is there an existing issue for this?

  • I have searched the existing issues

New feature

GLM should print a figure of the brain anatomical masked by the GLM mask to show what voxels are included.

When running GLM with unsmoothed data it is easy to drop voxels that users may wanna keep

Unclear documentation

No response

@Remi-Gau
Copy link
Contributor Author

code example to draw mask on image

base_dir = '/home/remi/github/bidspm/demos/openneuro/outputs/derivatives/'

pth = 'bidspm-preproc/sub-292/ses-postop/func'
file = 'sub-292_ses-postop_task-es_run-01_space-MNI152NLin2009cAsym_desc-preproc_bold.nii,1'
spm_check_registration(fullfile(base_dir,pth,file))

stats = 'bidspm-stats/sub-292/task-es_space-MNI152NLin2009cAsym_FWHM-6'
mask = 'mask.nii'
spm_orthviews('addcolouredimage',1,fullfile(base_dir,stats,mask),[1 0 0])

spm_orthviews('redraw', 1)

@Remi-Gau Remi-Gau linked a pull request Sep 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant