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

Submitted by David on

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?

YAN Chao-Gan

Mon, 10/12/2015 - 01:23

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