Hi Fabian, list,
in spm5, the matlab command to obtain a string holding a filename (nothing more) is spm_select instead of spm_get as it used to be in spm2. Be aware that more stuff changed in spm5 when using it from the command line or in scripts as I found out, especially regarding nifti spaces of volumes are handled differently.
For time course extraction, try the functions spm_vol(filename) for a volume handle, and spm_get_data to obtain the raw volume (or only some voxels) as tensors in your matlab workspace.
Try 'help <functionname>' for each of these function for detailed syntax.
Rumour has it that by using marsbar you can do similar things a little less 'on foot', but I never used it (will try soon I think, sounds promising).
Regards,
Bas
--------------------------------------------------
Dr. S.F.W. Neggers
Division of Brain Research
Rudolf Magnus Institute for Neuroscience
Utrecht University Medical Center
Visiting : Heidelberglaan 100, 3584 CX Utrecht
Room A.00.1.24
Mail : Huispost A.01.126, P.O. Box
3508 GA Utrecht, the Netherlands
Tel : +31 (0)30 2503386
Fax : +31 (0)30 2505443
E-mail : [log in to unmask]
Web : http://www.fmri.nl/people/bas.html
--------------------------------------------------
-----Oorspronkelijk bericht-----
Van: SPM (Statistical Parametric Mapping) namens Fabian Grabenhorst
Verzonden: ma 28-5-2007 19:14
Aan: [log in to unmask]
Onderwerp: [SPM] SPM5 raw data timecourse
We have an fMRI trial design at which different events happen at different
times in a trial. We would like to plot the timecourse of the BOLD signal
from the beginning of the trial until the end of the trial. We think we need
an unweighted or "raw" form of the BOLD signal, for the values that appear
in the array y depend on the details of the scan number within a trial that
is provided when calculating a contrast.
Assuming that we need a raw timecourse, we tried the approach suggested by
John Ashburner for SPM2 in item 006199 from the SPM discussion group, but
could not get it working for SPM5, which does not support spm_get(.).
We would be very grateful for advice.
Fabian Grabenhorst
|