[pymvpa] >what does 405X 42696 in the dataset mean?

Michael Hanke michael.hanke at gmail.com
Mon Dec 29 16:01:25 UTC 2008


On Mon, Dec 29, 2008 at 10:37:43AM -0500, Yune Lee wrote:
> Hi, Michael
> 
> Here is the code for defining my dataset.
> -----------------------------------------------------------------------
> import numpy as N
> from nifti import *
> from mvpa.suite import *
Tiny note: The last line implies the first two -- but it doesn't hurt ;-)

> #load nifti dataset
> attr = SampleAttributes('post_AvB_onsets.txt')
> dataset = NiftiDataset(samples='wrbold_25jun08MG.nii.gz',
> labels=attr.labels, chunks=attr.chunks, mask='mask_25jun08MG.nii.gz')
> -----------------------------------------------------------------------------------------------------------------------
> I'm not sure what you mean by header after the file name in
> nifti.NiftiImage(<PUT FILENAME OF YOUR INPUT NIFTI HERE>).header
> I tried 'nii.gz', 'nii', and 'hdr' but they didn't work.
> Let me know. Thanks.
Just execute this code:


  >>> import nifti
  >>> nifti.NiftiImage('wrbold_25jun08MG.nii.gz').header

Michael


-- 
GPG key:  1024D/3144BE0F Michael Hanke
http://apsy.gse.uni-magdeburg.de/hanke
ICQ: 48230050



More information about the Pkg-ExpPsy-PyMVPA mailing list