Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using --cluster parameter to run jobs #283

Open
ccbaumler opened this issue Jun 10, 2023 · 1 comment
Open

Using --cluster parameter to run jobs #283

ccbaumler opened this issue Jun 10, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers

Comments

@ccbaumler
Copy link

ccbaumler commented Jun 10, 2023

Attempted to run --cluster "sbatch -t {resources.runtime_min} -J gristing-p bmm -n 1 -N 1 -c {threads} --mem={resources.mem_mb}"

Met this error:

RuleException in rule download_sra_wc  in line 495 of /home/baumlerc/miniconda3/envs/grist/lib/python3.9/site-packages/genome_grist/conf/Snakefile:
AttributeError: 'Resources' object has no attribute 'runtime_min', when formatting the following:
sbatch -t {resources.runtime_min} -J gristing -p bmm -n 1 -N 1 -c {threads} --mem={resources.mem_mb}

A straight forward solution would be to include the resources: block and resource parameters to each rule. Could include this as an option in documentation as well. Thoughts?

Supp: https://snakemake.readthedocs.io/en/stable/executing/cli.html#cluster

@ctb
Copy link
Member

ctb commented Jun 10, 2023

that'd be great!

can you start up a PR? I can help define the specific parameters. any documentation/walkthrough of running things on cluster would be most welcome as well.

@ccbaumler ccbaumler added documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers labels Jun 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants