6 seeds=[$(shell seq -s, 1 250)]
9 srun=srun -A comdata -p compute-bigmem --time=10:00:00 --mem 4G -c 1
11 example_1_jobs: 01_two_covariates.R
12 grid_sweep.py --command "Rscript 01_two_covariates.R" --arg_dict '{"N":${Ns},"m":${ms}, "seed":${seeds}, "outfile":["example_1.feather"]}' --outfile example_1_jobs
14 example_1.feather: example_1_jobs
15 rm -f example_1.feather
16 sbatch --wait --verbose --array=1-3000 run_simulation.sbatch 0 example_1_jobs
17 sbatch --wait --verbose --array=3001-6001 run_simulation.sbatch 0 example_1_jobs
19 example_2_jobs: example_2.R
20 grid_sweep.py --command "Rscript 02_indep_differential.R" --arg_dict '{"N":${Ns},"m":${ms}, "seed":${seeds}, "outfile":["example_2.feather"]}' --outfile example_2_jobs
22 example_2.feather: example_2_jobs
23 rm -f example_2.feather
24 sbatch --wait --verbose --array=1-3000 run_simulation.sbatch 0 example_2_jobs
25 sbatch --wait --verbose --array=3001-6001 run_simulation.sbatch 0 example_2_jobs
27 # example_2_B_jobs: example_2_B.R
28 # grid_sweep.py --command "Rscript example_2_B.R" --arg_dict '{"N":${Ns},"m":${ms}, "seed":${seeds}, "outfile":["example_2_B.feather"]}' --outfile example_2_B_jobs
30 # example_2_B.feather: example_2_B_jobs
31 # rm -f example_2_B.feather
32 # sbatch --wait --verbose --array=1-3000 run_simulation.sbatch 0 example_2_B_jobs
34 example_3_jobs: 03_depvar_differential.R
35 grid_sweep.py --command "Rscript 03_depvar_differential.R" --arg_dict '{"N":${Ns},"m":${ms}, "seed":${seeds}, "outfile":["example_3.feather"]}' --outfile example_3_jobs
37 example_3.feather: example_3_jobs
38 rm -f example_3.feather
39 sbatch --wait --verbose --array=1-3000 run_simulation.sbatch 0 example_3_jobs
40 sbatch --wait --verbose --array=3001-6000 run_simulation.sbatch 0 example_3_jobs
42 remembr.RDS:example_1.feather example_2.feather example_3.feather
43 ${srun} Rscript plot_example.R --infile example_1.feather --name "plot.df.example.1"
44 ${srun} Rscript plot_example.R --infile example_2.feather --name "plot.df.example.2"
45 ${srun} Rscript plot_dv_example.R --infile example_3.feather --name "plot.df.example.3"
51 # sbatch --wait --verbose --array=3001-6001 run_simulation.sbatch 0 example_2_B_jobs
53 # example_2_B_mecor_jobs:
54 # grid_sweep.py --command "Rscript example_2_B_mecor.R" --arg_dict '{"N":${Ns},"m":${ms}, "seed":${seeds}, "outfile":["example_2_B_mecor.feather"]}' --outfile example_2_B_mecor_jobs
56 # example_2_B_mecor.feather:example_2_B_mecor.R example_2_B_mecor_jobs
57 # rm -f example_2_B_mecor.feather
58 # sbatch --wait --verbose --array=1-3000 run_simulation.sbatch 0 example_2_B_mecor_jobs
59 # sbatch --wait --verbose --array=3001-6001 run_simulation.sbatch 0 example_2_B_mecor_jobs