-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.Rmd
More file actions
125 lines (70 loc) · 3.73 KB
/
index.Rmd
File metadata and controls
125 lines (70 loc) · 3.73 KB
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
---
title: "Probabilistic models for networks"
output:
html_document:
toc: false
logo: img/LogoINRAE-MIA.jpg
number_sections: false
highlight: tango
css: style.css
includes:
before_body: extlogo.html
bibliography: TP_SBM/references.bib
link-citations: true
---
<img src="img/sophie_donnet_profil2022.png" alt="Ecological network" width = "240px" align="center"> </img>
<br>
You will find here all the material I use for my 3 hours class on **probabilistic models for network analysis**.
<br>
<br>
<img src="img/NetworkImage.png" alt="Ecological network" width = "240px" align="right"> </img>
<br>
### **Introduction**
Ecological networks are made up of nodes, representing biological entities of interest and edges representing the interaction being studied. Stochastic block models (SBMs) and their extension to bipartite networks are convenient tools to modelize heterogeneity in (ecological) networks by introducing blocks of nodes sharing the same pattern of connection. This short-course presents SBMs for unipartite, bipartite or more complex networks and illustrates their flexibility.
<br>
### **Material for the theoretical part**
Here are the slides of the course
- The first part is an **Introduction to block models** [Part 1](Slides_SBM_LBM/part1_SMB_LBM_donnet.pdf)
- The second part will adress the **Modelling of a collection of networks** [Part 2](Slides_Col_SBM/part3_ColSBM.pdf). This part is based on @chabert2022, available on [arxiv](https://arxiv.org/pdf/2206.00560.pdf). This second part will be dealt with only if we have time.
Additional material on Stochastic Block Models can be found the book Chapter 6 *Using Latent Block Models to Detect Structure in Ecological Networks* in @AubertChap6.
<br>
### **R-tutorial**
This class will include an R-tutorial session available [here](TP_SBM/TutorialBM.html).
You can download the `TutorialBM.qmd` file [here](TP_SBM/TutorialBM.qmd)
It is mainly based on the R-package [`sbm`](https://cran.r-project.org/web/packages/sbm/index.html). Please find informations [here](https://grosssbm.github.io/sbm/).
Some additional R packages are needed.
```{r, eval = FALSE, echo = TRUE }
install.packages("sbm")
install.packages("GGally") # To plot networks
install.packages('network')
install.packages('RColorBrewer') # to have nice colors
install.packages('knitr') # to plot nice tables
```
<br>
Note that a shiny application is also proposed. You should install the last version on your machine
```{r install shiny, eval = FALSE}
remotes::install_github("Jo-Theo/shinySbm")
shinySbm::run_app()
```
It can also be used online [here](https://shiny.migale.inrae.fr/app/ShinySBM) (not always the latest version).
<br>
In case we have anough time, the second part of the tutorial will deal with collection of networks and we will use the R package `colSBM` available on [Github](https://rdrr.io/github/Chabert-Liddell/colSBM/f/README.Rmd).
```{r install colSBM, eval = FALSE}
remotes::install_github("Chabert-Liddell/colSBM")
```
The tutorial on `colSBM` is available at [this link](https://chabert-liddell.github.io/colSBM/articles/tutorial.html)
<br>
<br>
### **Data sets**
- The first part of the tutorial will rely on the fungus-tree interaction network studied by @tree_fungus_network, available with the package `sbm`.
- We may also analyze the multipartite ecological network collected by @Dattilo (also available in `sbm`)
- Finally, we will maybe use the dataset of @thompson2003impacts provided in the `colSBM` package
```{r data , eval = FALSE}
library(sbm)
data("fungusTreeNetwork")
data("multipartiteEcologicalNetwork")
library(colSBM)
data("foodwebs")
```
<br>
### **References**