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

Group grey matter template cover voxels with no signal for a subject #46

Open
htwangtw opened this issue Oct 2, 2023 · 0 comments
Open

Comments

@htwangtw
Copy link
Collaborator

htwangtw commented Oct 2, 2023

When using a group grey matter template, it's possible that the mask cover voxels with no signal for a subject. In that case, the inverse transform function of NiftiMasker will fail.

https://github.com/SIMEXP/giga_connectome/blob/916e15533c59e8e8bf2e5cd54077b7ea677d2e52/giga_connectome/denoise.py#L133

Two potential solutions:

  1. fill NaN values in with zeros so when reconstructing the nifti, the voxel will be treated as background.
  2. Skip this subject and keep with workflow running - if going for this option, this should also apply to other known issues (cosine and compcor labelling related issues)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant