-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbenchmark.sh
30 lines (28 loc) · 965 Bytes
/
benchmark.sh
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
#!/bin/bash
#$ -P simpsonlab
#$ -N chrom_minigraph_benchmark
#$ -cwd
#$ -l h_vmem=64G
#$ -l h_rt=144000
#$ -m eas
#$ -M [email protected]
CMG_FOLDER=/u/jgao/jgao/code/chrom_mini_graph
CMG=/u/jgao/jgao/code/chrom_mini_graph/target/debug/chrom_mini_graph
GENERATED_FILE=/u/jgao/jgao/code/chrom_mini_graph/serialized_mini_graph.bin
BAM_FILE=/u/jgao/jgao/code/chrom_mini_graph/output.bam
SORTED_BAM=/u/jgao/jgao/code/chrom_mini_graph/sorted_output.bam
SIZES=(100000 250000 500000 1000000 2500000 10000000 25000000)
#SIZES=(100000 1000000)
PYTHON3=/u/jgao/miniconda3/bin/python3
SAMTOOLS=/.mounts/labs/simpsonlab/sw/samtools/1.17/bin/samtools
QSUB=/opt/uge-8.6/bin/lx-amd64/qsub
SIM_FOLDER=/u/jgao/jgao/projects/chrom_minigraph/sim
for i in ${SIZES[@]}
do
# create folder
mkdir -p $CMG_FOLDER/report/$i
# cd into report folder
cd $CMG_FOLDER/report/$i
# submit benchmark jobs
$QSUB -N benchmark_size_$i $CMG_FOLDER/benchmark_given_size.sh $i
done