-
Notifications
You must be signed in to change notification settings - Fork 44
feat: add profile info #20
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
Merged
Merged
Changes from 9 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
d0a8ea2
feat: added profiles directory with a README.txt
cmeesters a1b6b49
feat: included information to the profiles directory
cmeesters 73e9dc2
Update profiles/README.txt
cmeesters 04f13c0
Update README.md
cmeesters 014867f
fix: added missing content section
cmeesters 3964fc0
docs: update README.md heading for profiles
dlaehnemann afe48a5
docs: adjust README heading for profiles
dlaehnemann 95755e5
docs: shorten profiles section in main README.md, link to `profiles/R…
dlaehnemann c5b50b5
docs: rework profiles/README.txt
dlaehnemann ee3604c
docs: Rename README.txt to README.md
dlaehnemann 988611e
docs: apply suggestion from @coderabbitai[bot]
dlaehnemann fef8a70
docs: correct hyphenation for `workflow-specific` in README.md
dlaehnemann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| The `profiles/` directory can contain any number of subdirectories, each containing a `config.yaml` file with a [workflow specific profile](https://snakemake.readthedocs.io/en/stable/executing/cli.html#profiles): | ||
|
|
||
| `profiles/<specific_profile_name>/config.yaml` | ||
|
|
||
| The profile `profiles/default/config.yaml` will automatically be used by snakemake whenever you don't provide a workflow-specific profile via `--workflow-profile`. | ||
| This means that any resources or other (command line) arguments specified there, will implicitly be used when running this workflow. | ||
| Thus, as a workflow developer, only put configurations there that you expect to work in most environments, but which the users might want to tweak. | ||
| And for rule-specific resource setting, preferably provide generally applicable settings right in the rule definition, if necessary via [dynamic resource](https://snakemake.readthedocs.io/en/stable/snakefiles/rules.html#dynamic-resources) specification---users can always override those in a profile, if they need to. | ||
|
|
||
| For any more specific profiles, use separate and clearly named subdirectories. | ||
| For example use `profiles/slurm/config.yaml` for a slurm-specific profile, or even something like `profiles/slurm_uni_xyz/config.yaml` for a particular institutional slurm compute cluster. | ||
|
|
||
| It is also good practice to add clear documentation comments for each entry in a (workflow) profile. | ||
| This should explain the respective entry, indicate what kind of values can be used and why a particular value or setting were chosen. | ||
| To this end, it is often helpful to provide links to relevant documentation pages, either from snakemake, a snakemake plugin or a specific cluster environment. | ||
|
|
||
| In general, we welcome pull requests for 3rd-party workflows you are working with to include such a profile for your specific compute environment. |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.