Changes

Jump to: navigation, search

Using Snakemake on the HPC Cluster

199 bytes added, 16 May
Changed to code tags
* Install snakemake via mamba/conda (see https://snakemake.readthedocs.io/en/stable/getting_started/installation.html)
* In the working folder create a snakemake environment with <precode>mamba activate snakemake</precpde>* Install the cluster-generic tool to submit snakemake files to a cluster from pip with <code>pip install snakemake-executor-plugin-cluster-generic</code>
* Create a generic profile in ~/.config/snakemake/testprofile/config.yaml such as:
<precode>
executor: slurm
jobs: 100
myrule:
mem_mb: attempt * 200
</precode== Executing a Snakefile Workflow ==
* Create a Snakefile (see
** You can over-ride resources with that flag otherwise it will use the values in testprofile
* Run the Snakefile with this command <precode>snakemake --profile testprofile -j 1 --executor cluster-generic --cluster-generic-submit-cmd "batch" ... </precode>

Navigation menu