]> code.communitydata.science - ml_measurement_error_public.git/blob - simulations/Makefile
2b18fea4acb0a7bfb60a7281fbc0ebdd42c1a05b
[ml_measurement_error_public.git] / simulations / Makefile
1
2 SHELL=bash
3
4 Ns=[500,1000,10000]
5 ms=[50, 100, 250, 500]
6 seeds=[$(shell seq -s, 1 250)]
7 all:remembr.RDS
8
9 srun=srun -A comdata -p compute-bigmem --time=10:00:00 --mem 4G -c 1
10
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
13
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
18
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
21
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
26
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
29
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
33
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
36
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
41
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"
46
47 clean:
48         rm *.feather
49         rm remembr.RDS
50
51 #       sbatch --wait --verbose --array=3001-6001 run_simulation.sbatch 0 example_2_B_jobs
52
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
55
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
60
61
62

Community Data Science Collective || Want to submit a patch?