Skip to content

Commit

Permalink
add interactive progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
jiang548 committed May 4, 2022
1 parent 7fdea14 commit 08a7757
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/network/bts1gensub.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash

#testing runtime and memeory
echo -e "Begin testing on the first bootstrap data with the first 10 genes\n"

Expand Down Expand Up @@ -76,6 +75,8 @@ perl -pe 's/XXX/'$CHUNK'/g' < $SIGNET_SCRIPT_ROOT/network/template.sub > sub$CHU
echo "sbatch -W sub$CHUNK.sh &" >> qsub1.sh
fi

walltime_s=$(echo $walltime | awk -F: '{ print (3600 * $1) + (60 * $2) + $3 }')
echo "progress_bar $walltime_s 100 40 params $NJOBS slurm" >> qsub1.sh
echo "wait" >> qsub1.sh

#tmpqueue=($(slist|grep $queue))
Expand Down
2 changes: 2 additions & 0 deletions script/network/bts2gensub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ perl -pe 's/XXX/'$CHUNK'/g' < $SIGNET_SCRIPT_ROOT/network/template.sub > sub$CHU
echo "sbatch -W sub$CHUNK.sh &" >> qsub2.sh
fi

walltime_s=$(echo $walltime | awk -F: '{ print (3600 * $1) + (60 * $2) + $3 }')
echo "progress_bar $walltime_s 100 40 params $NJOBS slurm" >> qsub2.sh
echo "wait" >> qsub2.sh

#tmpqueue=($(slist|grep $queue))
Expand Down

0 comments on commit 08a7757

Please sign in to comment.