[pymvpa] load raw 'not nifti' data
Yaroslav Halchenko
debian at onerussian.com
Wed Oct 5 02:02:09 UTC 2011
another possible (haven't tried... unfortunately I am still ignorant in
FreeSurfer ;) ) way is
sudo apt-get install python-surfer
and then in python
from surfer.io import read_morph_data
x = read_morph_data(filename)
and then combined them into dataset as Per mentioned.
On Tue, 04 Oct 2011, Per B. Sederberg wrote:
> Hi Greg:
> You can save out that big matrix to a mat file from matlab (say the
> matrix is named mymat and you save it to mymatrix.mat) and then read
> it in with:
> import scipy.io
> x = scipy.io.loadmat('mymatrix.mat')['mymat']
> Then in pymvpa (depending on the version you are using) you can get it
> ready for business with:
> from mvpa.suite import *
> dat = dataset_wizard(x, targets=cov_of_interest, chunks=range(len(x)))
> Then you can can start analyzing away...
> Best,
> Per
--
=------------------------------------------------------------------=
Keep in touch www.onerussian.com
Yaroslav Halchenko www.ohloh.net/accounts/yarikoptic
More information about the Pkg-ExpPsy-PyMVPA
mailing list