Skip to content
Garrett Mc edited this page Jan 4, 2017 · 2 revisions

Importing

The idea is that eventually the toolbox will be able to import from multiple sources into its own Matlab data structure, and export back in an equally trouble-free manner. For now, only the AFNI import process works.

It's worth noting that AFNI is free, multi-platform and supports the NIfTI-1 data format, which is intended to facilitate this kind of thing. You might be able to use AFNI as a kind of bridge from your analysis software to Matlab.

See also: exporting

From AFNI

See ''load_afni_pattern.m'' and ''load_afni_mask.m'', which rely on Ziad Saad's AFNI-Matlab library.

In short, the above scripts create a pattern or mask object and fill it with the contents of a BRIK file (or multiple BRIKs for patterns). They save the header information in the object's header field. Then, you're ready to go.

There is no facility for directly loading in 1D files, but Matlab's own ''load'' command should probably be sufficient. Just create an object of the right type (with ''init_object.m'''') ''and use ''set_mat.m'' to insert the loaded-in contents.

We are also working on a set of internal functions that call AFNI shell scripts from within Matlab to make certain things easier, e.g. convolving your regressors separately for each condition and run, or running n-minus-one 3dDeconvolve.

Let us know if there's any extra functionality you need.

From BrainVoyager

We have a partial implementation of the BrainVoyager import process ' if it would be useful for you, please contact us and we can talk about pushing this forward.

From SPM

We're some way towards an SPM import route, so if it would be useful for you, please contact us and we can talk about pushing this forward.

Clone this wiki locally