[pymvpa] How do people get the preprocessed .nii.gz before throwing it into the pyMVPA?
Dylan David Wagner
dylan.d.wagner at dartmouth.edu
Fri Dec 26 21:56:51 UTC 2008
I think it's been mentioned on here before, but the simplest trick I
found was to simply use fslmerge. You can go from a large amount of 3D
img/hdr files to a single 4D nifti.gz file.
As I wrote on our dbic wiki
(http://dbic.dartmouth.edu/wiki/index.php/Imaging_Data_Formats) for each
run of your preprocessed data use the fslmerge command as follows:
fslmerge -t swuabold1 swuabold1*.img
change swuabold1 to whatever prefix is used for your files (e.g. if you
don't smooth then obviously it's wuabold1... etc.)
The output is swuabold1.nii.gz Compact and ready to plug into pymvpa. As
it's been mentioned you can concat from the img/hdr files within python,
but I found it simpler to start fresh with 4D nifti files. Makes for
less files.
FYI: the fsl tools are command line tools available on the Dartmouth
DBIC afs system. Just type that into a terminal and you're done. No gui,
no matlab.If you want to run fsl locally on your computer then use
vmware and follow the instructions on the fsl website.
More information about the Pkg-ExpPsy-PyMVPA
mailing list