Jobscript
Below is a job script used for testing application installation:
#!/bin/bash
#SBATCH --job-name=lrbinner_0.1_test
#SBATCH --mail-type=NONE
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=32
#SBATCH --mem-per-cpu=4gb
#SBATCH --gpus=1
#SBATCH --time=24:00:00
#SBATCH --output=lrbinner_0.1_test.log
echo "Setting up test environment..."
TEST_PWD=/data/apps/tests/lrbinner/0.1
TEST_DATADIR=${TEST_PWD}/example_data
TEST_WORKDIR=${TEST_PWD}/test_output
cd ${TEST_PWD}
module load lrbinner/0.1
# Remove any previous test results and re-create a working directory
if [ -d ${TEST_WORKDIR} ]; then rm -rf ${TEST_WORKDIR}/; fi
mkdir ${TEST_WORKDIR}
echo "Starting test run at $(date) on $(hostname)..."
# Based on https://github.com/anuradhawick/LRBinner#test-run-data
###################################
LRBinner \
reads \
-r ${TEST_DATADIR}/reads.fasta \
-bc 10 \
-bs 32 \
-o ${TEST_WORKDIR}/lrb \
--cuda \
-mbs 5000 \
--ae-dims 4 \
--ae-epochs 200 \
-bit 0 \
-t ${SLURM_JOB_CPUS_PER_NODE:-4}
# Evaluate results:
eval.py \
--truth ${TEST_DATADIR}/ids.txt \
--bins ${TEST_WORKDIR}/lrb/bins.txt \
--print
###################################
echo "Test complete at $(date)."