A Snakemake executor plugin for submitting jobs to an AWS Parallel Cluster (pcluster) SLURM cluster.
Project description
Snakemake executor plugin: pcluster-slurm v_0.0.7_
the core of this plugin was lifted from the official slurm pluging, via this fork.
Snakemake Executor Plugins (generally)
Snakemake plugin catalog docs.
pcluster-slurm
plugin
AWS Parallel Cluster, pcluster
slurm
AWS Parallel Cluster is a framework to deploy and manage dynamically scalable HPC clusters on AWS, running SLURM as the batch system, and pcluster
manages all of the creating, configuring, and deleting of the cluster compute nodes. Nodes may be spot or dedicated. note, the AWS Parallel Cluster
port of slurm has a few small, but critical differences from the standard slurm distribution. This plugin enables using slurm from pcluster head and compute nodes via snakemake >=v8.*
.
Daylily Bfx Framework
Daylily is a bioinformatics framework that automates and standardizes all aspects of creating a self-scaling ephemeral cluster which can grow from 1 head node to many thousands of as-needed compute spot instances (modulo your quotas and budget). This is accomplished by using AWS Parallel Cluster to manage the cluster, and snakemake to manage the bfx workflows. In this context, slurm
is the intermediary between snakemake and the cluster resource management. The pcluster
slurm variant does not play nicely with vanilla slurm, and to date, the slurm snakemake executor has not worked with pcluster
slurm. This plugin is a bridge between snakemake and pcluster-slurm
.
Pre-requisites
Snakemake >=8.*
Conda
conda create -n snakemake -c conda-forge -c bioconda snakemake==8.20.6
conda activate snakemake
Installation (pip)
from an environment with snakemake and pip installed
pip install snakemake-executor-plugin-pcluster-slurm
Example Usage daylily cluster headnode
mkdir -p /fsx/resources/environments/containers/ubuntu/cache/
export SNAKEMAKE_OUTPUT_CACHE=/fsx/resources/environments/containers/ubuntu/cache/
snakemake --use-conda --use-singularity -j 10 --singularity-prefix /fsx/resources/environments/containers/ubuntu/ip-10-0-0-240/ --singularity-args " -B /tmp:/tmp -B /fsx:/fsx -B /home/$USER:/home/$USER -B $PWD/:$PWD" --conda-prefix /fsx/resources/environments/containers/ubuntu/ip-10-0-0-240/ --executor pcluster-slurm --default-resources slurm_partition='i64,i128,i192' --cache --verbose -k
More Documentation Pending For:
How slurm uses --comment
to tag resources created by the autoscaling cluster to tracke and mnage budgets.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for snakemake_executor_plugin_pcluster_slurm-0.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09ff94f96cf9e1d037f5806ef055ad2baf6eaa6fabc3b22271ec50ee940c704d |
|
MD5 | 10d02741d990abd08dafc57b04f42a75 |
|
BLAKE2b-256 | 79feea00b5a287a6d4262dc174a060301e9e917a78b766fdbd0a58d81f30ddef |
Hashes for snakemake_executor_plugin_pcluster_slurm-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c45de4e3bc58c40c189ee5852fcbc761f9f493c94accea2fd340dd3ee15c972 |
|
MD5 | 656d52e245d17a045a4d67582af290bb |
|
BLAKE2b-256 | e50704964fa0d85ca63694f0fd48cc960a154c83806854a9551d001029b63942 |