[pymvpa] How to create bold.nii.gz?

Yaroslav Halchenko debian at onerussian.com
Fri Dec 26 17:37:01 UTC 2008


> >    or can I also load the individual .img/.hdr (total 925files) in the
> >    python given it also supports analyze format?
> if you are running released version (0.4.0), then you would need either to load
> them manually in the loop and concatenate to provide into Dataset.
;-)) or just load each volume into separate dataset and add them up
like

ds = NiftiDataset(samples='file1.nii.gz', ...)
ds += NiftiDataset(samples='file2.nii.gz', ...)
...

-- 
Yaroslav Halchenko
Research Assistant, Psychology Department, Rutgers-Newark
Student  Ph.D. @ CS Dept. NJIT
Office: (973) 353-1412 | FWD: 82823 | Fax: (973) 353-1171
        101 Warren Str, Smith Hall, Rm 4-105, Newark NJ 07102
WWW:     http://www.linkedin.com/in/yarik        



More information about the Pkg-ExpPsy-PyMVPA mailing list