forked from abbywlsn/miniphylotrees
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNullModelSBATCH.sb
More file actions
64 lines (48 loc) · 2.42 KB
/
Copy pathNullModelSBATCH.sb
File metadata and controls
64 lines (48 loc) · 2.42 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/sh
## This file runs one experimental condition (i.e. a group of jobs
## that are the same except for their random seed)
## Make sure to replace dolsonem with your HPCC username
module load GNU/8.2.0-2.31.1
## Email settings
#SBATCH --mail-type=ALL
#SBATCH --mail-user=f0102665@msu.edu
## Job name settings
#SBATCH --job-name=Normalization_Null_Model_10
#SBATCH -o Normalization_Null_Model_10_%A_%a.out
## Time requirement in hours and minutes. You might need to make this
## longer, but try to keep it under 4 hours if possible
#SBATCH --time=0-4:00
## Memory requirement in megabytes. You might need to make this bigger.
#SBATCH --mem-per-cpu=4gb
## Launch an array of jobs. This is convenient for running replicates
## that differ only by their random seed. One easy option is to use the array
## index (given by ${SLURM_ARRAY_TASK_ID}) as the random seed, but if you
## do make sure to use different ranges of numbers for each condition.
## This specific command will launch 10 jobs, with array indices
## 990, 991, 992, 993, 994, 995, 996, 997, 998, and 999.
## SBATCH --array=990-999
## We're running this on scratch because that's what ICER prefers
## Remember to copy your results to your home directory once they're
## done so that they don't get deleted
cd /mnt/scratch/f0102665/miniphylotrees/data
## Make a directory for this condition
## (this line will throw an error once the directory exists, but
## that's harmless)
mkdir Normalization_Null_Model_10
cd Normalization_Null_Model_10
## Make a directory for this random seed
## mkdir ${SLURM_ARRAY_TASK_ID}
## cd ${SLURM_ARRAY_TASK_ID}
## If your program needs any additional files present to run,
## make sure to copy them to your current directory.
## Often it's safest to copy the executable to the the current directory
## but if you're confident that you're never going to change the
## executable over the course of this project it's okay to have a single
## copy of it that you always reference.
## Really, though, what are the odds you're never going to change it?
cp /mnt/scratch/f0102665/miniphylotrees/NullModelExec .
## cp /mnt/scratch/f0102665/my_executable_directory/my_config_file .
## Actually run your program. Set the random seed to the array id
## and make sure to set whatever other command-line arguments are necessary
./NullModelExec -RANDOM_SEED 10 > run.log
## If you need to do anything after your run, it can go here.