snakemake / snakemake

This is the development home of the workflow management system Snakemake. For general information, see
https://snakemake.github.io
MIT License
2.24k stars 545 forks source link

lambda functions for priority #2560

Open ning-y opened 8 months ago

ning-y commented 8 months ago

Is your feature request related to a problem? Please describe. When many long-running jobs need to be run, some jobs can be of more interest than others. For example, in genome-scale analyses for multiple species, there can be one or two really interesting species, which you'd like to see first.

Describe the solution you'd like The priority field for a rule should accept a lambda function as input.

Describe alternatives you've considered Splitting the many long-running jobs into several batches, and first running one batch that contains all the jobs of interest that you'd like to see first. This is okay but not ideal, since batching results in some under-utilized resources at the end of each batch's execution.

Additional context Currently, providing a lambda function to the priority field results in a RuleException with message "Priority values have to be numeric."

github-actions[bot] commented 2 months ago

This issue was marked as stale because it has been open for 6 months with no activity.