42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
.ONESHELL:
|
|
SHELL=bash
|
|
|
|
Ns=[1000, 5000, 10000]
|
|
ms=[100, 200, 400]
|
|
seeds=[$(shell seq -s, 1 500)]
|
|
explained_variances=[0.1]
|
|
|
|
all:main
|
|
main:remembr.RDS
|
|
|
|
srun=sbatch --wait --verbose skx_1.sbatch
|
|
skx_pylauncher_limit=40
|
|
|
|
joblists:example_1_jobs example_2_jobs example_3_jobs
|
|
|
|
grid_sweep_script=../simulations/grid_sweep.py
|
|
|
|
example_1_jobs: 01_indep_differential.R simulation_base.R ${grid_sweep_script} skx_1.sbatch ../misclassificationmodels
|
|
${srun} ${grid_sweep_script} --command "Rscript 01_indep_differential.R" --arg_dict '{"N":${Ns},"m":${ms}, "seed":${seeds}, "outfile":["example_1.feather"], "y_explained_variance":${explained_variances}, "Bzx":[1]}' --outfile example_1_jobs
|
|
|
|
example_1.feather: example_1_jobs my_pylauncher.py
|
|
sbatch -J "multiple iv measerr correction" skx_1.sbatch my_pylauncher.py $< --cores 1
|
|
|
|
remembr.RDS:example_1.feather
|
|
# rm -f remembr.RDS
|
|
# ${srun} Rscript plot_example.R --infile example_1.feather --name "plot.df.example.1"
|
|
|
|
|
|
clean_main:
|
|
rm -f example_1_jobs
|
|
rm -f example_1.feather
|
|
#
|
|
clean_all: clean_main
|
|
rm *.feather
|
|
rm -f remembr.RDS
|
|
rm -f remembr*.RDS
|
|
rm -f robustness*.RDS
|
|
rm -f example_*_jobs
|
|
rm -f robustness_*_jobs_*
|
|
|