Newer
Older
[](https://snakemake.readthedocs.io)
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
[](https://www.python.org/)
[](https://pypi.org/project/psycopg2/)
## Source code
```bash
$ git clone git@forgemia.inra.fr:omnicrobe/omnicrobe-database.git
```
## Creation of database tables
```bash
$ psql -h [database host server] -U [database username] -d [database name] -f create.sql
```
*To clean an existing database:*
```bash
$ python scripts/cleaning.py [database name] [database host server] [database password] [database username]
```
## How to use the workflow?
### Configuration file
Before running the Snakemake pipeline, it is necessary to modify the `config.yaml` configuration file (database connection information, file locations, versions).
### Execution environment
```bash
$ conda env create -f environment.yml
```
```bash
$ conda activate env_omnicrobe
```
### Workflow execution
```bash
(env_omnicrobe) $ snakemake --cluster "qsub -V -S /bin/bash -cwd -N OMNICROBE -b y -q {params.queue}" -j 1 --latency-wait 60
```