Dear Jana,
this bit of code is not really batch enabled... If you are using SPM5,
you may be able to batch spm_getSPM (this module is called "Results
report" in the job manager), which would return SPM and xSPM structs.
But then, you still are stuck with spm_graph or spm_regions. I have
got some modified spm_graph and spm_regions code, but it is not ready
to be released yet.
Volkmar
Quoting Jana Schaich Borg 02 <[log in to unmask]>:
> Dear SPMers,
>
> I'm trying to extract adjusted data for a subset of voxels without
> going through the gui. Both SPM proper and Marsbar use the
> spm_graph function via a gui to get adjusted data, and the
> description of the function is included below. However, I'm having
> a hard time interpreting the description successfully enough to
> enter the right data in the right format at the command line or in a
> batch file. Can anyone give any guidance about what the inputs for
> this function are supposed to look like and what they are supposed
> to include? For example, what are the "filtering details" and
> "generic details" required by xSPM and SPM, respectively? And what
> is the MIP register? Alternatively, is there a better function to
> use to get adjusted data?
>
> Thank you in advance for your help!
> Jana
>
>
> [Y y beta Bcov] = spm_graph(xSPM,SPM,hReg)
>
> xSPM = structure containing SPM and filtering details
> SPM = structure containing generic details about the analysis
> hReg = handle of MIP register
> Y = fitted data for the selected voxel
> Y = adjusted data for the selected voxel
> Beta = parameter estimates
> Bcov = covariance of parameter estimates
>
|