Skip to content
This repository was archived by the owner on Nov 29, 2021. It is now read-only.
tdayris-perso edited this page Mar 6, 2020 · 1 revision

Usage

Local usage

Here is your command line:

snakemake

Yes. Nothing more as long as you have [Snpeff, and SnpSift in you PATH.

However, conda provides an efficient way to dynamically build virtual environments and to double check your tool versions, that's why we recommend:

snakemake --use-conda

And if you want to be sure that your OS is not interfering with your run, then use:

snakemake --use-conda --singularity

I won't detail more of the Snakemake possibilities, please see their documentation. However, many users like the following:

snakemake --use-conda --singularity --reason --printshellcmds

With these supplementary arguments, you will have the executed command lines printed to your STDOUT, and each rule will give you the reason why it is being executed. Nice, isn't it ?

PBS Torque

In addition to the previous arguments, one might want to use this pipeline on a PBS Torque cluster.

snakemake --cluster " qsub -l walltime=00:{resources.time_min}:00,nodes=1:ppn={threads},mem={resources.mem_mb}mb -V " --use-conda --singularity --reason --printshellcmds --jobs 20  --restart-times 3

Slurm

In addition to the previous arguments, one might want to use this pipeline on a Slurm cluster.

snakemake --cluster " sbatch --mem={resources.mem_mb}M --cpus-per-task={threads} --time={resources.time_min} " --use-conda --singularity --reason --printshellcmds --jobs 20  --restart-times 3

Profiles

Use the Snakemake profiles if you have one that suits you:

snakemake --profile <your_profile>
Clone this wiki locally