4 Ns=[500,1000,10000,25000]
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 simulation_base.R grid_sweep.py
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: example_3.R
35 grid_sweep.py --command "Rscript example_3.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
42 remembr.RDS:example_2_B.feather 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_example.R --infile example_2_B.feather --name "plot.df.example.2B"
46 ${srun} Rscript plot_example.R --infile example_3.feather --name "plot.df.example.3"
50 # sbatch --wait --verbose --array=3001-6001 run_simulation.sbatch 0 example_2_B_jobs
52 # example_2_B_mecor_jobs:
53 # 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
55 # example_2_B_mecor.feather:example_2_B_mecor.R example_2_B_mecor_jobs
56 # rm -f example_2_B_mecor.feather
57 # sbatch --wait --verbose --array=1-3000 run_simulation.sbatch 0 example_2_B_mecor_jobs
58 # sbatch --wait --verbose --array=3001-6001 run_simulation.sbatch 0 example_2_B_mecor_jobs