-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplot_orf_method_comparison.slurm
More file actions
45 lines (39 loc) · 1.24 KB
/
Copy pathplot_orf_method_comparison.slurm
File metadata and controls
45 lines (39 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
#SBATCH --job-name=plot_orf
#SBATCH --output=logs/plot_orf_%j.out
#SBATCH --error=logs/plot_orf_%j.err
#SBATCH --time=00:30:00
#SBATCH --mem=8G
#SBATCH --cpus-per-task=1
#SBATCH --partition=ada
#SBATCH --account=oceanography
#SBATCH --mail-type=FAIL
#==============================================================================
# ggplot panel from compare_orf_prediction_singlebest_dual outputs.
#
# mkdir -p logs
# sbatch plot_orf_method_comparison.slurm
#
# Uses BASE_DIR and SAMPLE_ID from 00_config.sh.
#==============================================================================
set -eo pipefail
cd "${SLURM_SUBMIT_DIR:-.}"
mkdir -p logs
source ./00_config.sh
if [ -n "${R_MODULE:-}" ]; then
module load "${R_MODULE}"
fi
BASE_PLOT="${BASE_DIR}/orf_method_comparison/${SAMPLE_ID}_td_singlebest"
RSCRIPT="${SLURM_SUBMIT_DIR}/plot_orf_method_comparison.R"
if [ ! -f "${RSCRIPT}" ]; then
echo "ERROR: ${RSCRIPT} not found"
exit 1
fi
if [ ! -d "${BASE_PLOT}/complete" ] || [ ! -d "${BASE_PLOT}/with_partials" ]; then
echo "ERROR: Expected dual-compare outputs under ${BASE_PLOT}"
echo "Run: sbatch compare_orf_prediction_singlebest_dual.slurm"
exit 1
fi
echo "Plotting: ${BASE_PLOT}"
Rscript "${RSCRIPT}" "${BASE_PLOT}"
echo "Done."