Commit 0559a7e9 authored by Christian Meesters's avatar Christian Meesters

more on self-documentation

parent e40a498b
......@@ -502,16 +502,6 @@ handle.close()
EOF
)
#### Self-Documentation
echo "You are using $0, version $SCRIPT_VERSION"
echo
echo "Self-Documentation:"
[[ $_arg_test == "on" ]] && echo " - This is a test-run, only"
echo " - The query input is '$FASTA'"
echo " - The database is '$DATABASE'"
BLASTVERSION=$($BLASTEXE -version | head -n1 | cut -f2 -d' ')
echo " - The executable is '$BLASTEXE', version: $BLASTVERSION"
### check if this script is on node by checking env-variable $SLURM_JOB_ID, else send it to SLURM with given parameters and exit
if [ -z "$SLURM_JOB_ID" ]; then
submit_call="sbatch --no-requeue -o ${JOBTAG}_%j.out -J $JOBTAG -p $_arg_queue -A $_arg_assoc -t $_arg_runlimit -N $_arg_nodes -n $((64 * $_arg_nodes)) --gres=ramdisk:$_arg_ramdisk -c $_arg_blast_threads $SCRIPT --partition $_arg_queue --account $_arg_assoc --nodes $_arg_nodes --time $_arg_runlimit --blastmem $_arg_blastmem --ramdisk $_arg_ramdisk --threads $_arg_blast_threads --splitup $_arg_splitup_per_queryfile --executable=$_arg_executable $FASTA $DATABASE $BLASTPARAMS"
......@@ -527,6 +517,17 @@ if [ -z "$SLURM_JOB_ID" ]; then
exit
fi
#### Self-Documentation
echo "You are using $0, version $SCRIPT_VERSION"
echo
echo "Self-Documentation (on $(date))"
[[ $_arg_test == "on" ]] && echo " - This is a test-run, only"
echo " - The query input is '$FASTA'"
echo " - The database is '$DATABASE'"
BLASTVERSION=$($BLASTEXE -version | head -n1 | cut -f2 -d' ')
echo " - The executable is '$BLASTEXE', version: $BLASTVERSION"
echo " - Parameters to your call are: $BLASTPARAMS"
### set variables for lokal (node side) directories (working & ramdisk)
JOBDIR=/localscratch/$SLURM_JOB_ID
RAMDISK=$JOBDIR/ramdisk
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment