-
Notifications
You must be signed in to change notification settings - Fork 9
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
[MRG] adding snakemake --profile
#33
base: latest
Are you sure you want to change the base?
Conversation
thanks Mo! It would be really great to provide an example snakemake rule where you set I have some examples over here if you want to just swipe: http://bluegenes.github.io/hpc-snakemake-tips/
|
One more thought -- I see the default options: default |
A little trick that worked for me is using Of course you will have to set As a bonus, you can use this function to automate which partition snakemake should submit your job to:
And then in rule definition:
In my profile, I set following default resources:
|
Thanks, @bluegenes for the suggestions. I have edited the default parameters for |
That's a cool workaround, thanks for sharing! I think controlling the default parameters for each partition separately can also work using Python functions with the partition name as input. |
As I've used it,
This sounds like an excellent workaround. If we can set limits for med, high partitions by default and no limits for low, that would be really helpful. Of course for rare cases (deadlines, huge jobs, etc), users can override the limits by setting different ones on the command line with, e.g. |
this is all greek to me. Maybe we need (or could use) a lab meeting tutorial/demo on cool farm/snakemake hacks... |
😂 I ran an ILLO on farm/snakemake (w/profiles and resource limitation hacks!) back in Aug 2020, but we could do another/up-to-date one? @mr-eyes, interested in doing this with me? Partition-specific allocation using this profile is already making my life better! @SichongP, I would also love your feedback on what we come up with if you have time, in case you have more/different tricks you use. Back when profiles were newer, the hard part was figuring out how to introduce them without leaving folks behind who are newer to snakemake. But now I think profile setup is something we should just help everyone do as soon as possible, since it makes so many things easier (and doesn't add much complication, aside from setup). ILLO from 8/24/2020 - http://bluegenes.github.io/hpc-snakemake-tips/ |
Sure! |
Nice! Thanks, Tessa! Co-authored-by: Tessa Pierce Ward <[email protected]>
Resolves #32