-
Notifications
You must be signed in to change notification settings - Fork 3
Execution
Stephan Reichl edited this page Aug 7, 2024
·
3 revisions
Run the {module} from within the Snakemake conda environment and the module's root directory.
- activate the snakemake conda environment (Snakemake commands only work from within the snakemake conda environment)
conda activate snakemake - enter the
{module}directory (always execute from within the top level of the module directory)cd {module} - execute the module, while using conda to install and manage the required software
-
local execution with one core
snakemake --use-conda --cores 1 -
vanilla cluster execution with 32 jobs for cluster engines that support shell scripts and have access to a common filesystem, (e.g. the Sun Grid Engine), see Snakemake Cluster Execution documentation
snakemake --use-conda --cluster qsub --jobs 32 -
configured cluster execution by using --profile (not necessary if you set it as an environment variable before)
snakemake --use-conda --profile path/to/cluster_profile
-
local execution with one core
Note
Snakemake cluster profiles are the interface between an OS-agnostic Snakemake workflow and the system it is executed on (e.g., SLURM HPC). If you are working on another cluster engine get your cluster execution profile here: The Snakemake-Profiles project