Snakemake-Profiles / slurm

Cookiecutter for snakemake slurm profile
MIT License
126 stars 44 forks source link

Add "partition" to resource mapping #78

Closed tdido closed 2 years ago

tdido commented 3 years ago

I'm adding this PR instead of asking about this on an issue since it's just a single line.

We'd like to be able to specify different partitions/queues per rule, and this seems like a very straightforward way to do it. I guess that strictly speaking a queue is not a resource, so I was wondering if there's a better way to do it?

jdblischak commented 3 years ago

We'd like to be able to specify different partitions/queues per rule

As an alternative, I created a simple profile, smk-simple-slurm, that enables you to easily specify different partitions/queues per rule. Essentially any value that gets passed to sbatch can be configured per rule.

percyfal commented 2 years ago

Hi @tdido, sorry for the delay. This makes perfect sense to include.

tdido commented 2 years ago

Fantastic. Thank you for the merge!