Skip to content

Commit

Permalink
Update bts1gensub.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangdb authored May 20, 2022
1 parent 905bdee commit 2e3a445
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions script/network/bts1gensub.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#testing runtime and memeory
echo -e "Begin testing on the first bootstrap data with the first 10 genes\n"
echo -e "Testing on the first bootstrap data with the first 10 genes...\n"

singularity exec $sif Rscript $SIGNET_SCRIPT_ROOT/network/bstest1.r "ncores='$ncores'" "memory='$memory'" "walltime='$walltime'"

Expand Down Expand Up @@ -98,23 +98,23 @@ fi

time sh qsub1.sh | tee submit1_log

echo -e "Checking the number of files\n"
echo -e "Checking the number of files...\n"

nresult=$(find ypre* | wc -l )

if [ $nresult -eq $NJOBS ]
then
echo -e "All the jobs are finished !!\n"
email_note $email "Stage 1" "Completed !!!"
echo -e "All the jobs are completed!\n"
email_note $email "Stage 1" "Completed!"
else
echo -e "Please notice that some of the jobs are unfinished. Program will stop and please try to find the problem. \n"
email_note $email "Stage 1" "Failed ..."
echo -e "Warning: Some jobs are incomplete! Find the problem and retry...\n"
email_note $email "Stage 1" "Failed..."
grep -Eo '[0-9]+$' submit1_log | xargs scancel
kill -10 $job_id
exit -1
fi

echo -e "Stage 1 finished!!! Summarizing the results...\n"
echo -e "Stage 1 is completed! Summarizing the results...\n"

if [ ! -d "output" ]; then
mkdir output
Expand Down

0 comments on commit 2e3a445

Please sign in to comment.