-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile.R
135 lines (76 loc) · 3.25 KB
/
makefile.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# Master script for the project ################################
library(rmarkdown)
options(brms.backend = "cmdstanr")
## Barcoding: PV indiv & Pbird -> Pvisit.sp
# Madroñas
render("code/Barcoding_PV_indiv_bird.Rmd",
output_file = "Barcoding_PV_indiv_bird_Madronas.md",
params = list(site = "Madronas"))
# Puntal
render("code/Barcoding_PV_indiv_bird.Rmd",
output_file = "Barcoding_PV_indiv_bird_Puntal.md",
params = list(site = "Puntal"))
## Barcoding: PV site
render("code/Barcoding_PV_site_after.Rmd")
## Videos (only Puntal)
render("code/Videos_PV_indiv_bird.Rmd")
## Puntal: merge barcoding + Videos
render("code/PV_merge_Puntal.Rmd")
#### Pfeed
render("code/Prob_consumption_visit.Rmd")
#### Nfruits/visit
render("code/Number_fruits_visit.Rmd")
#### Prob. escape from seed predators
render("code/Prob_escape_seed_predators.Rmd")
## SDE QTY: multiply everything
render("code/SDE_QTY.Rmd")
##### SDE QUALITY #####
## Probability of dispersal to each Microhabitat by each bird species
render("code/Prob_MH_use.Rmd")
## Probability of emergence and surviving 1st summer
render("code/mh_emergence.Rmd")
## Probability of escaping seed predation
render("code/mh_seed_predation.Rmd")
## SDE-QLTY total
render("code/SDE_QLTY.Rmd")
## DATA COMBINATION ############################################
#### Effectiveness calculations
render("code/calc_effectiveness.Rmd")
#### Calculate effectiveness for individual plants (grouping all birds consumption)
render("code/calc_effectiveness_plants.Rmd")
## EFFECTIVENESS ANALYSES #####################################
#### Figure 3. Effectiveness landscape
render("code/Fig.3_Effectiveness_landscapes.Rmd")
#### QTC and QLC components variance partitioning
render("code/variance_partitioning.Rmd")
#### Plant trait effects on fruit consumption (GLM)
render("code/GLM_effectiveness.Rmd")
## RECIPROCITY ANALYSES #######################################
#### RPE~SDE model
render("code/effectiveness_correlation_distribution.Rmd")
#### Figure 4. RPE~SDE correlation
render("code/Fig.4_RPE_SDE_cor.Rmd")
## ASYMMETRY ANALYSES #########################################
#### Calculation of dependence and asymmetry
render("code/prep_dependencies_unique_interactions.Rmd")
#### Figure 5. Dependence and Asymmetry distribution
render("code/Fig.5_Asymmetry.Rmd")
#### Asymmetry Null model - matrix dimension
render("code/Null_models_dim.Rmd")
#### Asymmetry Null model - significance
render("code/Null_model_asym_sig.Rmd")
## OTHER #######################################################
#### Suppl. Mat. Fig - Probability of bird visit (barcoding - Madroñas)
source("code/figscode/Fig_Madronas_Pvisit_bc.R")
#### Suppl. Mat. Fig - Probability of bird visit (barcoding & cameras - Puntal)
source("code/figscode/Fig_Puntal_Pvisit_bc_cam.R")
#### Suppl. Mat. Fig - Probability of feeding per visit
source("code/figscode/Fig_Pfeed.R")
#### Suppl. Mat. Fig - Number of fruits consumed per visit
source("code/figscode/Fig_Nfruits_visit.R")
#### Suppl. Mat. Fig - Postdispersal predation
source("code/figscode/Fig_postdispersal_predation.R")
#### Suppl. Mat. Fig - Postdispersal predation
source("code/figscode/Fig_seedling_survival.R")
#### Suppl. Mat. Fig - SDE Quality
source("code/figscode/Fig_SDE_QLTY.R")