Fslselectvols alternative in nipype?


fslselectvols does not appear to be wrapped in nipype yet. Is equivalent functionality available with a different tool/interface?


Nilearn has a function called index_img that does pretty much the same thing. It returns a Nifti1Image, so you’ll need to save that to a file with img.to_filename to match fslselectvols, I think.

1 Like

Thanks for the tip! I ended up writing a simple wrapper around fslselectvols. It needs polishing, if I get time to do that I’ll open a PR.

1 Like