Hi Tom,
if you replace the last line of your example with the following two:
——
rno = marsbar('get_region', region_name(mY));
Y = region_data(mY, rho);,
——
I think you will get what you are after.
Hope this helps,
Scott
On 26 Oct 2014, at 11:43, Tom alderson <tho...@ho...<mailto:tho...@ho...>> wrote:
Apologies if this has been covered but...
how do I extract raw time courses for all the voxels in a ROI using a script?
All the examples in the FAQ only produce the mean of the data (see below):
roi_files = spm_get(Inf,'*roi.mat', 'Select ROI files');
P = spm_get(Inf,'*.img','Select images');
rois = maroi('load_cell', roi_files); % make maroi ROI objects
mY = get_marsy(rois{:}, P, 'mean'); % extract data into marsy data object
y = summary_data(mY); % get summary time course(s)
How do I replicate the GUI procedure:
1. Extract ROI data (full options).
2. Select ROI file.
3. Use SPM Design => No.
4. Modality => Other.
5. # Subjects => 1.
6. Select img files.
7. Scaling => Raw data.
8. Grand Mean => 0.
9. Data => Export Data.
10. Extract SAMPLE time courses.
11. Export to text file.
Best regards,
Tom.
------------------------------------------------------------------------------
_______________________________________________
Marsbar-users mailing list
Mar...@li...<mailto:Mar...@li...>
https://lists.sourceforge.net/lists/listinfo/marsbar-users
|