Skip to content

Commit

Permalink
🐛 Handle no z-score case for #1787
Browse files Browse the repository at this point in the history
  • Loading branch information
shnizzedy committed Mar 29, 2023
1 parent b4f007f commit 7bd4afa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CPAC/cwas/cwas.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,11 @@ def merge_cwas_batches(cwas_batches, mask_file, z_score, permutations):
if 1 in z_score:
zvals = pval_to_zval(p_set, permutations)
z_file = zstat_image(zvals, mask_file)

else:
z_file = None

return F_file, p_file, log_p_file, one_p_file, z_file

def zstat_image(zvals, mask_file):
mask_image = nb.load(mask_file)

Expand Down

0 comments on commit 7bd4afa

Please sign in to comment.