add the name_override directive to allow names to be programmatical…#811
Merged
johanneskoester merged 4 commits intosnakemake:masterfrom Dec 21, 2020
Merged
Conversation
johanneskoester
requested changes
Dec 18, 2020
Contributor
johanneskoester
left a comment
There was a problem hiding this comment.
brilliant idea! Just one thing.
tests/test_name_override/Snakefile
Outdated
| some_var = 'generate_out' | ||
|
|
||
| rule: | ||
| name_override: some_var |
Contributor
There was a problem hiding this comment.
I think I'd just call this name:.
0bdb8d6 to
99505ca
Compare
Contributor
Author
|
@johanneskoester made it work with |
|
Kudos, SonarCloud Quality Gate passed!
|
johanneskoester
approved these changes
Dec 21, 2020
Contributor
|
Thank you so much! |
2 tasks
johanneskoester
pushed a commit
that referenced
this pull request
Dec 6, 2023
### Description The `name` directive (#811) is super helpful but I felt it wasn't very obvious in the docs. I added an example usage based on my own usage of it as I think a lot of others use it in the same manner. ### QC <!-- Make sure that you can tick the boxes below. --> * [ ] The PR contains a test case for the changes or the changes are already covered by an existing test case. * [x] The documentation (`docs/`) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ly set