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

Using surface data #73

Open
jaysonjeg opened this issue Oct 24, 2023 · 2 comments
Open

Using surface data #73

jaysonjeg opened this issue Oct 24, 2023 · 2 comments

Comments

@jaysonjeg
Copy link

Currently, the code takes Niimg-like objects. PairwiseAlignment also takes as input a mask (also Niimg-like object). How can we straightforwardly use surface space data with fmralign?

One idea: Make the input images numpy arrays (ntimepoints/ncontrasts x nvertices). 'clustering' could also become an array (nvertices,) This puts the onus on the user to convert any data format to numpy array before using fmralign. Ther user would also have to generate 'clustering' and mask the data before using fmralign. It improves usability without restricting to particular inputs data formats. One disadvantage of this is that passing full arrays to fmralign may consume too much memory, especially when doing many subjects in parallel.

@emdupre
Copy link
Collaborator

emdupre commented Oct 24, 2023

With the release of nilearn 0.10.2, we now have increased surface support; see, for example, this short demo of the current features.

The current plan is to continue improving support towards a full SurfaceMasker over the next couple of months. Since PairwiseAlignment heavily builds on NiftiMasker, my preference would be to wait until we can pull this functionality directly from Nilearn.

@emdupre
Copy link
Collaborator

emdupre commented Oct 24, 2023

This is, though, absolutely a feature that we should add !

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

No branches or pull requests

2 participants