@@ -598,8 +598,7 @@ def _make_matlab_command(self, _):
598
598
else
599
599
if use_topo_fdr
600
600
V2R = 1/prod(FWHM(stat_map_vol.dim > 1));
601
- [uc,Pc,ue] = spm_uc_clusterFDR(cluster_extent_p_fdr_thr,df,\
602
- STAT,R,n,Z,XYZ,V2R,cluster_forming_thr);
601
+ [uc,Pc,ue] = spm_uc_clusterFDR(cluster_extent_p_fdr_thr,df,STAT,R,n,Z,XYZ,V2R,cluster_forming_thr);
603
602
end
604
603
605
604
voxel_labels = spm_clusters(XYZth);
@@ -610,10 +609,8 @@ def _make_matlab_command(self, _):
610
609
611
610
for i = 1:nclusters
612
611
cluster_size = sum(voxel_labels==i);
613
- if cluster_size > extent_threshold && (~use_topo_fdr || \
614
- (cluster_size - uc) > -1)
615
- thresholded_XYZ = cat(2, thresholded_XYZ, \
616
- XYZth(:,voxel_labels == i));
612
+ if cluster_size > extent_threshold && (~use_topo_fdr || (cluster_size - uc) > -1)
613
+ thresholded_XYZ = cat(2, thresholded_XYZ, XYZth(:,voxel_labels == i));
617
614
thresholded_Z = cat(2, thresholded_Z, Zth(voxel_labels == i));
618
615
th_nclusters = th_nclusters + 1;
619
616
end
@@ -749,8 +746,7 @@ def _make_matlab_command(self, _):
749
746
voxelwise_P_uncor = (1-spm_Ncdf(cluster_forming_thr)).^n
750
747
case 'T'
751
748
VPs = (1 - spm_Tcdf(Zum,df(2))).^n;
752
- voxelwise_P_uncor = \
753
- (1 - spm_Tcdf(cluster_forming_thr,df(2))).^n
749
+ voxelwise_P_uncor = (1 - spm_Tcdf(cluster_forming_thr,df(2))).^n
754
750
case 'X'
755
751
VPs = (1-spm_Xcdf(Zum,df(2))).^n;
756
752
voxelwise_P_uncor = (1-spm_Xcdf(cluster_forming_thr,df(2))).^n
@@ -764,17 +760,14 @@ def _make_matlab_command(self, _):
764
760
765
761
V2R = 1/prod(FWHM(stat_map_vol.dim > 1));
766
762
767
- clusterwise_P_RF = \
768
- spm_P_RF(1,extent_threshold*V2R,cluster_forming_thr,df,STAT,R,n)
763
+ clusterwise_P_RF = spm_P_RF(1,extent_threshold*V2R,cluster_forming_thr,df,STAT,R,n)
769
764
770
765
[x,y,z] = ind2sub(size(stat_map_data),(1:numel(stat_map_data))');
771
766
XYZ = cat(1, x', y', z');
772
767
773
- [u, CPs, ue] = \
774
- spm_uc_clusterFDR(0.05,df,STAT,R,n,Z,XYZ,V2R,cluster_forming_thr);
768
+ [u, CPs, ue] = spm_uc_clusterFDR(0.05,df,STAT,R,n,Z,XYZ,V2R,cluster_forming_thr);
775
769
776
- clusterwise_P_FDR = \
777
- spm_P_clusterFDR(extent_threshold*V2R,df,STAT,R,n,cluster_forming_thr,CPs')
770
+ clusterwise_P_FDR = spm_P_clusterFDR(extent_threshold*V2R,df,STAT,R,n,cluster_forming_thr,CPs')
778
771
"""
779
772
return script
780
773
@@ -980,8 +973,7 @@ class PairedTTestDesign(FactorialDesign):
980
973
--------
981
974
982
975
>>> pttest = PairedTTestDesign()
983
- >>> pttest.inputs.paired_files = [['cont1.nii','cont1a.nii'],\
984
- ['cont2.nii','cont2a.nii']]
976
+ >>> pttest.inputs.paired_files = [['cont1.nii','cont1a.nii'],['cont2.nii','cont2a.nii']]
985
977
>>> pttest.run() # doctest: +SKIP
986
978
"""
987
979
0 commit comments