Skip to content

Commit 19e08bb

Browse files
author
Kevin Cazelles
committed
📝 edit guidelines
1 parent 77e6418 commit 19e08bb

17 files changed

Lines changed: 46 additions & 75937 deletions

README.md

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## Installation
66

7-
Simulation are implemented in [Julia](https://julialang.org/), a recent version of Julia is required to reproduce this analysis (note that the code was only tested for Julia v1.6.0) along with the following packages (note that they can be installed using `src/install_packages.jl` in this repository, see below):
7+
Simulations are implemented in [Julia](https://julialang.org/), a recent version of Julia is required to reproduce the analysis (note that the code was only tested for Julia v1.7.0) along with the following packages (note that they can be installed using `src/install_packages.jl` in this repository, see below):
88

99
|Package | Links |
1010
|:--------------------|:-------------------------------------------------------|
@@ -27,8 +27,7 @@ Then, clone this repository using [git](https://git-scm.com/):
2727
git clone https://github.com/McCannLab/Labmnivory.git
2828
```
2929

30-
or downloaded the [zip file](https://github.com/McCannLab/Labmnivory/archive/refs/heads/master.zip). If you haven't yet installed the packages, you can actually
31-
use `src/install_packages.jl` in this repository. To do so, in a terminal, set your working directory at the root of the freshly cloned/downloaded repository, then use the following command line :
30+
or downloaded the [zip file](https://github.com/McCannLab/Labmnivory/archive/refs/heads/master.zip). If you haven't yet installed the packages, you can actually use `src/install_packages.jl` in this repository. To do so, in a terminal, set your working directory at the root of the freshly cloned/downloaded repository, then use the following command line :
3231

3332
```julia
3433
julia src/install_packages.jl
@@ -39,16 +38,37 @@ You should now be ready to reproduce the analysis.
3938

4039
## Structure of this repository
4140

42-
- `src`: source code
43-
- `src/figs`: folder where figures are exported
44-
- `figs/final`: final figure (after ediation with [Inkscape](https://inkscape.org/))
41+
## General structure
4542

43+
- `src`: include source code.
44+
- `fig/`: where figures are exported to.
45+
- `fig/final`: final figures (after edition with [Inkscape](https://inkscape.org/)), available as SVG (`/svg/`) and EPS (`/eps/`).
4646

47-
## How to reproduce the analysis
4847

49-
In a terminal, assuming the working directory is set to be the the root of the freshly cloned/downloaded repository, use the following command line :
48+
## Scripts (content of `/scr/`)
49+
50+
- `install_packages.jl`: contains code to install packages required;
51+
- `basic_omnivory_module.jl`: includes all basic building blocs including the basic set of ODEs (`model!()`) and the functions to compute the different metrics (e.g. `overshoot()`);
52+
- `pulse.jl`: functions to run pulse analysis;
53+
- `press.jl`: functions to run press analysis;
54+
- `fig_press.jl`: script to create pulse figures (Figs. 3 (a-c), 4 (a-c), S3 (a-c), S4 (a-c));
55+
- `fig_pulse.jl`: script to create press figures (Figs. 3 (d-f), 4 (d-f), S3 (d-f), S4 (d-f));
56+
- `fig_S1.jl`: script to create figure S1;
57+
- `fig_S2.jl`: script to create figure S2.
58+
- `pipeline.jl`: orchestrate the different scripts to reproduce the analysis.
59+
60+
61+
## How to reproduce the analysis locally
62+
63+
In a terminal, assuming the working directory is the root of the freshly cloned/downloaded repository, use the following command line to reproduce the analysis.
5064

5165
```julia
5266
julia src/pipeline.jl
5367
```
5468

69+
70+
71+
## Questions
72+
73+
Script have been commented for ease of comprehension but if you still have some questions regarding the numerical implementation, do not hesitate to open an issue.
74+

figs/.gitkeep

Whitespace-only changes.

figs/final/eps/fig3_vf.eps

Lines changed: 0 additions & 5349 deletions
This file was deleted.

figs/final/eps/fig4_v4.eps

Lines changed: 0 additions & 2610 deletions
This file was deleted.

figs/final/eps/figS1_v3.eps

Lines changed: 0 additions & 4653 deletions
This file was deleted.

figs/final/eps/figS2_vf.eps

Lines changed: 0 additions & 4605 deletions
This file was deleted.

figs/final/eps/figS3_vf.eps

Lines changed: 0 additions & 6305 deletions
This file was deleted.

figs/final/eps/figS4_vf.eps

Lines changed: 0 additions & 2875 deletions
This file was deleted.

figs/final/svg/fig3_vf.svg

Lines changed: 0 additions & 9380 deletions
This file was deleted.

figs/final/svg/fig4_v4.svg

Lines changed: 0 additions & 7379 deletions
This file was deleted.

0 commit comments

Comments
 (0)