|
1 | 1 | function mni = get_ROI_Coordinates |
2 | 2 | % This function gets the individual subject coordniates of the highest peak |
3 | | - % within a specified Region of interest (usually coming from the group level univariate analysis) |
4 | | - |
| 3 | + % within a specified Region of interest (usually coming |
| 4 | + % from the group level univariate analysis) |
| 5 | + % |
5 | 6 | % Critical t-value for each experimental condition or mask file |
6 | | - CriticalTs = 1; % Critical t-value for visual condition in L-V5 and R-V5 and bilateral PT |
| 7 | + % Critical t-value for visual condition in L-V5 and R-V5 and bilateral PT |
| 8 | + % |
| 9 | + % (C) Copyright 2021 CPP ROI developers |
| 10 | + |
| 11 | + CriticalTs = 1; |
7 | 12 |
|
8 | 13 | %% load the data structure |
9 | 14 | WD = pwd; |
|
52 | 57 | %% the first 4 masks are for the FACE condition, the other 4 |
53 | 58 | % are from the SCENE condition |
54 | 59 | if iMask <= 2 |
55 | | - result_file = [data_path, '/', SubName, '/stats/ffx_visMotion/ffx_', smoothing, '/spmT_0013.nii']; % HUMAN > BIG_ENV |
| 60 | + result_file = [data_path, '/', ... |
| 61 | + SubName, ... |
| 62 | + '/stats/ffx_visMotion/ffx_', ... |
| 63 | + smoothing, ... |
| 64 | + '/spmT_0013.nii']; % HUMAN > BIG_ENV |
56 | 65 | else |
57 | | - result_file = [data_path, '/', SubName, '/stats/ffx_audMotion/ffx_', smoothing, '/spmT_0014.nii']; % BIG_ENV > HUMAN |
| 66 | + result_file = [data_path, '/', ... |
| 67 | + SubName, ... |
| 68 | + '/stats/ffx_audMotion/ffx_', ... |
| 69 | + smoothing, ... |
| 70 | + '/spmT_0014.nii']; % BIG_ENV > HUMAN |
58 | 71 | end |
59 | 72 |
|
60 | 73 | %% |
|
78 | 91 |
|
79 | 92 | % convert space from slice number to mni |
80 | 93 | mni{1, iMask}(subCounter, :) = cor2mni([x y z], mask_path); |
81 | | - % mni{1,iMask}(iSub,1) = mni{1,iMask}(iSub,1)* -1; % If masks created from AFNI or FSL, |
82 | | - % the x coordinate could be flipped (multiplied x -1). If this is the case, multiply x with -1. |
| 94 | + |
| 95 | + % mni{1,iMask}(iSub,1) = mni{1,iMask}(iSub,1)* -1; |
| 96 | + % If masks created from AFNI or FSL, |
| 97 | + % the x coordinate could be flipped (multiplied x -1). |
| 98 | + % If this is the case, multiply x with -1. |
83 | 99 |
|
84 | 100 | mni{1, iMask}(subCounter, :); |
85 | 101 |
|
|
0 commit comments