Skip to content

Commit

Permalink
priors is a directory, no matter what
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVCaron committed Jan 9, 2024
1 parent 2869fac commit ca3b4fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/nf-scil/reconst/diffusivitypriors/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ process RECONST_DIFFUSIVITYPRIORS {
def roi_radius = task.ext.roi_radius ? "--roi_radius " + task.ext.roi_radius : ""

"""
if [ ! -z "$priors" ]
if [ -d "$priors" ]
then
cat $priors/*__para_diff.txt > all_para_diff.txt
awk '{ total += \$1; count++ } END { print total/count }' all_para_diff.txt > mean_para_diff.txt
Expand Down

0 comments on commit ca3b4fe

Please sign in to comment.