Harness voxelwise fc-function of DPABI to calculate own connectivity measure

Hi,

I'm trying to calculate a voxelwise connectivity measure which is not included in DPABI and I was wondering if it is possible to "harness" the voxelwise fc functions of DPABI somehow? In other words I want to just replace the part where the functional voxelwise connectivity is calculated by a function I wrote myself but still use the very handy rest of the DPABI-functions like reading the masks, creating z-maps,  and so forth :). Is this possible without major changes of the code somehow?

Hi,

Just replace the following:

FC=SeedSeries(:,iROI)'*AllVolume/(nDimTimePoints-1);
    FC=(FC./AllVolumeSTD)/SeedSeriesSTD(iROI);
    
    FCBrain=zeros(size(MaskDataOneDim));
    FCBrain(1,MaskIndex)=FC;
    FCBrain=reshape(FCBrain,nDim1, nDim2, nDim3);
    
    %Also produce the results after Fisher's r to z transformation
    zFCBrain = (0.5 * log((1 + FCBrain)./(1 - FCBrain))) .* (MaskData~=0);

Best,

Chao-Gna

Thank you! Can you tell me the name of the file where I can find this code? Not sure where to find it. 

Hi, it's y_SCA.m

Best,

Chao-Gan