Skip to content

Commit

Permalink
updated archive check
Browse files Browse the repository at this point in the history
  • Loading branch information
explodecomputer committed Oct 22, 2024
1 parent a779367 commit 1259f7e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions utils/archive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@ if [ ! $step -eq "04" ]; then
fi
fi

if [ $step -eq "04" ]; then

nphen=`cat ${phenotype_processed_dir}/phenolist | wc -l`
nsuccess=`tail -n 1 ${results_dir}/04/logfile* | grep -i "Success" | wc -l`
if [ "${nphen}" = "${nsuccess}" ]; then
echo "GWAS completed successfully for all ${nphen} phenotypes"
else
echo "Problem: only ${nsuccess} of ${nphen} expected phenotypes completed. Please check logs in ${results_dir}/04"
exit 1
fi
fi

echo "Tarballing results for step $step"

## Check that $cohort_name is alphanumeric with no spaces etc
Expand Down

0 comments on commit 1259f7e

Please sign in to comment.