@@ -11,7 +11,7 @@ documentation, please refer to [CASISIM wiki](https://github.com/CAMI-challenge/
...
@@ -11,7 +11,7 @@ documentation, please refer to [CASISIM wiki](https://github.com/CAMI-challenge/
CAMISIM contains a lot of dependencies and the list can be found [Here](https://github.com/CAMI-challenge/CAMISIM/wiki/User-manual#installation).
CAMISIM contains a lot of dependencies and the list can be found [Here](https://github.com/CAMI-challenge/CAMISIM/wiki/User-manual#installation).
However, we recommand the use of the docker image `cami/camisim:latest` or the singularity one (WIP).
However, we recommand the use of the docker image `cami/camisim:latest` or the singularity one ([here](https://gitlab.pasteur.fr/metagenomics/singularity/tree/master/tools/camisim), only from docker for the moment).
## Run de novo metagenomes simulation
## Run de novo metagenomes simulation
...
@@ -32,7 +32,21 @@ mkdir output
...
@@ -32,7 +32,21 @@ mkdir output
docker run -it-v"/path/to/folder/example/:/input:rw"-v"/path/to/folder/output/:/output:rw" cami/camisim:latest metagenomesimulation.py /input/config.ini
docker run -it-v"/path/to/folder/example/:/input:rw"-v"/path/to/folder/output/:/output:rw" cami/camisim:latest metagenomesimulation.py /input/config.ini
```
```
### With singularity
### With singularity on TARS
You can build the singularity image from the docker one. A recipe doing that is
available [here](https://gitlab.pasteur.fr/metagenomics/singularity/tree/master/tools/camisim).
You will probably need to mount also a tmp directory since the one by default from
singularity seems to be too small for the tool.
```bash
module load singularity
mkdir output tmp
singularity run --bind /path/to/folder/example:/input,/path/to/folder/tmp:/tmp,/path/to/folder/output:/output /path/to/singularity.simg /input/config.ini
```
> **WARNING**: This process can require at least 12Gb of RAM
### Configuration file
### Configuration file
...
@@ -42,6 +56,9 @@ You can here set the different parameters for your simulation. The customed file
...
@@ -42,6 +56,9 @@ You can here set the different parameters for your simulation. The customed file
We will quickly go through the different part of this config file. You can find the
We will quickly go through the different part of this config file. You can find the
complete description on the [Documentation](https://github.com/CAMI-challenge/CAMISIM/wiki/Configuration-File-Options).
complete description on the [Documentation](https://github.com/CAMI-challenge/CAMISIM/wiki/Configuration-File-Options).
By default path can be kept by default. However, it is easier to use absolute path
instead of relative one (by default) for singularity.
#### Main
#### Main
```ini
```ini
...
@@ -65,9 +82,9 @@ Since we do not need the data for a challenge, we can switch off the anonymous p
...
@@ -65,9 +82,9 @@ Since we do not need the data for a challenge, we can switch off the anonymous p
```ini
```ini
[ReadSimulator]
[ReadSimulator]
readsim=tools/art_illumina-2.3.6/art_illumina # leave by default since we are in a container
readsim=/usr/local/bin/tools/art_illumina-2.3.6/art_illumina # leave by default since we are in a container
error_profiles=tools/art_illumina-2.3.6/profiles # leave by default
error_profiles=/usr/local/bin/tools/art_illumina-2.3.6/profiles # leave by default
samtools=tools/samtools-1.3/samtools # leave by default
samtools=/usr/local/bin/tools/samtools-1.3/samtools # leave by default
profile=mbarc # choose for ART: mi/hi/hi150/mbarc
profile=mbarc # choose for ART: mi/hi/hi150/mbarc
size=0.1 # size of a single sample in Gigabasepairs (Gbp)
size=0.1 # size of a single sample in Gigabasepairs (Gbp)
type=art # simulation tool
type=art # simulation tool
...
@@ -84,7 +101,7 @@ that `mbarc` is recommended for bacterial communities.
...
@@ -84,7 +101,7 @@ that `mbarc` is recommended for bacterial communities.