nipreps / fmriprep

fMRIPrep is a robust and easy-to-use pipeline for preprocessing of diverse fMRI data. The transparent workflow dispenses of manual intervention, thereby ensuring the reproducibility of the results.
https://fmriprep.org
Apache License 2.0
634 stars 293 forks source link

Generate CIFTI derivatives #794

Closed oesteban closed 6 years ago

oesteban commented 7 years ago

@satra said (#658)

  • saving to CIFTI

@effigies:

This seems reasonable, but out of my experience so far. If you have example code that converts the type of data you'd be interested in, that would be useful. (I assume CIFTI can handle either structural or functional data, as standard NIfTI can...)

This issue propose storing derivatives to CIFTI format.

effigies commented 6 years ago

Just a bump on this, at @satra's request. This is pretty high priority for their group.

We have a couple options:

Satra says his group can contribute some effort, so just as a guess, ccing @mgxd.

mgxd commented 6 years ago

Quick question - is there a labels atlas for the MNI template fmriprep uses - MNI152NLin2009cAsym, similar to mindboggle's OASIS-TRT-20 joint fusion atlas?

oesteban commented 6 years ago

We could map that one into MNI if you'd need it

On Feb 6, 2018 11:45, "Mathias Goncalves" notifications@github.com wrote:

Quick question - is there a labels atlas for the MNI template fmriprep uses - MNI152NLin2009cAsym, similar to mindboggle's OASIS-TRT-20 joint fusion atlas https://osf.io/d2cmy/?action=download&version=1?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/poldracklab/fmriprep/issues/794#issuecomment-363542394, or mute the thread https://github.com/notifications/unsubscribe-auth/AAkhxjuH_DzLqTM2wcssIOqLRUgWboXEks5tSKvugaJpZM4QGhHW .

chrisgorgo commented 6 years ago

What's the role of such labels in context of CIFTI files?

mgxd commented 6 years ago

@oesteban @chrisfilo we could use the labels to generate the corresponding brain structure label and ijk coordinates

chrisgorgo commented 6 years ago

I see - thanks for clarifying. It might be worth splitting this task to cover different CIFTI outputs in separate PRs.

mgxd commented 6 years ago

we should always have the output CIFTI's subcortical structures in the same space as the template - as more are added (#487) we'll have to generate new labels for that template, so I agree this should be broken up in separate PRs. I'm hoping to add support for common space (fsaverage5 surf, MNI152NLin2009cAsym vols) and hopefully subject space (piggybacking once #957 is merged) in the initial add.

@oesteban how would we go about doing this mapping?

oesteban commented 6 years ago

The first I'd do is running a registration using: niworkflows.interfaces.mni.RobustMNINormalization. Default settings should be pretty good. I assume the template comes with a good brain mask, so everything should be pretty straightforward.

Then we would resample the template, and keep the transform somewhere (maybe in niworkflows?). It'll be extremely useful :)

oesteban commented 6 years ago

Closed via #1001