laurenpmarazzi / PhysiPKPD

a module template for drug treatment in PhysiCell
1 stars 7 forks source link

Makefiles and Julia Loop #23

Closed drbergman closed 3 years ago

drbergman commented 3 years ago

Makefiles

Make recipes can now allow you to easily switch between MOAs and run as simple as:

make reset
make moa_proliferation
make
./project ./config/mymodel.xml

Editing the config file and want that change to be saved for the next time you want to run the proliferation example? Edit the PhysiPKPD_examples/moa_proliferation/config/mymodel.xml file directly, then call make rc (reconfigure) and you'll have the new config file ready to run.

Editing the custom_modules files? Edit those in PhysiPKPD_examples/moa_proliferation/custom_modules and then run make redo to bring those changes into the right places and make the project again.

Automatically loop through all the doses you want

In src/run_pars.jl you can run all the parameter values you want and it will save the output. Follow these steps to get started with Julia in VS Cod

  1. Follow the instructions here to download Julia and VS Code and integrate them: https://github.com/julia-vscode/julia-vscode#installing-juliavs-codevs-code-julia-extension
  2. Download the packages at the top of the script (all the names following using). Enter the following in the terminal in VS Code
    using Pkg
    Pkg.add("DataFrames")
  3. Run the script!