3dPval doesn't work on the output from 3ddelay

Hi,
I try to derive p-value and z-scores from the output of 3ddelay using the following command line:

3dPval -zscore -prefix out delay+orig’[2]’

However, the computation hangs and nothing comes out. Did I miss anything?

Kindly advise.
Phoebe.

Phoebe,

What kind of values do you have in the sub-brick #2 of the file delay+orig? Could you share the output of the following command?

3dinfo delay+orig’[2]’

Hi Gang,

Please find the following 3dinfo output of delay+orig:

Identifier Code: XYZ_61LjPrXLO5R5xxxE6TSsgA Creation Date: Sun May 17 05:16:18 2020
Template Space: ORIG
Dataset Type: Func-Bucket (-fbuc)
Byte Order: LSB_FIRST [this CPU native = LSB_FIRST]
Storage Mode: BRIK
Storage Space: 786,432 (786 thousand) bytes
Geometry String: “MATRIX(3.4375,0,0,-109.9644,0,3.4375,0,-138.4606,0,0,5.999999,-60.7794):64,64,24”
Data Axes Tilt: Plumb
Data Axes Orientation:
first (x) = Right-to-Left
second (y) = Anterior-to-Posterior
third (z) = Inferior-to-Superior [-orient RAI]
R-to-L extent: -109.964 [R] -to- 106.598 [L] -step- 3.438 mm [ 64 voxels]
A-to-P extent: -138.461 [A] -to- 78.102 [P] -step- 3.438 mm [ 64 voxels]
I-to-S extent: -60.779 [I] -to- 77.221 [S] -step- 6.000 mm [ 24 voxels]
Number of values stored at each pixel = 4
– At sub-brick #0 ‘Delay’ datum type is short: 0 to 32767 [internal]
[* 0.00279275] 0 to 91.5102 [scaled]
– At sub-brick #1 ‘Covariance’ datum type is short: -1 to 32767 [internal]
[* 0.0226562] -0.0226562 to 742.375 [scaled]
– At sub-brick #2 ‘Corr. Coef.’ datum type is short: -310 to 32767 [internal]
[* 2.69115e-05] -0.00834257 to 0.881809 [scaled]
statcode = fico; statpar = 422 2 0
– At sub-brick #3 ‘Variance’ datum type is short: 0 to 32767 [internal]
[* 1.14719] 0 to 37589.8 [scaled]

THanks,
Phoebe

Phoebe,

Sub-brick #2 is not p-value, but correlation coefficient instead. Are you trying to perform Fisher Z-transformation? If so, do

3dcalc -a delay+orig’[2]’ -expr ‘log((1+a)/(1-a))/2’ -prefix zscore

or

3dcalc -a delay+orig’[2]’ -expr ‘atanh(a)’ -prefix zscore