README.md 1.31 KB
Newer Older
peguerin's avatar
peguerin committed
1
# WFGD : a webserver for Worldmap of Fish Genetic Diversity
peguerin's avatar
peguerin committed
2

peguerin's avatar
peguerin committed
3
Pierre-Edouard **GUERIN**
peguerin's avatar
peguerin committed
4

peguerin's avatar
peguerin committed
5
6
7
Montpellier, 2017-2019

___________________________________________________
peguerin's avatar
peguerin committed
8
9
10
11
12
13
14
15
16

# Installation

## Prerequisites

### CONDA

* miniconda

peguerin's avatar
peguerin committed
17
Instructions to install CONDA are [here](https://docs.conda.io/projects/conda/en/latest/user-guide/install/linux.html)
peguerin's avatar
peguerin committed
18

peguerin's avatar
peguerin committed
19
* CONDA environement with R and [shiny](https://anaconda.org/r/r-shiny)
peguerin's avatar
peguerin committed
20
21
22
23
24
25

```
conda env create -f environment.yml
conda activate rshiny
```

peguerin's avatar
peguerin committed
26
To quit conda environment:
peguerin's avatar
peguerin committed
27
```
peguerin's avatar
peguerin committed
28
conda deactivate
peguerin's avatar
peguerin committed
29
30
31
32
33
```

To remove this environment:
```
conda remove --name rshiny --all
peguerin's avatar
peguerin committed
34
35
36
37
38
```

Check CONDA environments
```
conda info --envs
peguerin's avatar
peguerin committed
39
40
41
```


peguerin's avatar
peguerin committed
42
# Display the web-app
peguerin's avatar
peguerin committed
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


First, download this repository.

```bash
git clone https://gitlab.mbb.univ-montp2.fr/reservebenefit/webapp_marine_worldmap_bold.git
cd webapp_marine_worldmap_bold
```

Then activate CONDA environment

```bash
## create the environment the first time
conda env create -f environment.yml
## activate rshiny environment to get R with all required dependencies
conda activate rshiny
```

Finally, run a R session

```bash
R
```

Inside your R session, load `shiny` and then, run the web-app in local

```R
## load shiny library
library('shiny')
## define web browser to use
options(browser="/usr/bin/firefox")
## run shiny web app
runApp(launch.browser=TRUE)
peguerin's avatar
peguerin committed
76
```