Add developer guidelines and CLAUDE.md#2144
Open
FriederikeHanssen wants to merge 6 commits intodevfrom
Open
Conversation
Comprehensive reference covering code style (Harshil alignment, strict syntax, channel naming), channel operations and gotchas, meta map handling, module/subworkflow patterns, configuration, testing with nf-test, documentation requirements, and PR checklist. Intended for both human developers and AI agents working on sarek. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Move DEVELOPER_GUIDELINES.md to docs/DEVELOPER_GUIDELINES.md - Add topic channels section (migrating versions collection etc.) - Remove deprecated if(params.tools) guards from config examples Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add contributing principles, git workflow, and changelog conventions to DEVELOPER_GUIDELINES.md so it serves both humans and agents - Slim CLAUDE.md to a pointer to the guidelines plus agent-only rules Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Member
|
Warning Newer version of the nf-core template is available. Your pipeline is using an old version of the nf-core template: 3.5.1. For more documentation on how to update your pipeline, please see the nf-core documentation and Synchronisation documentation. |
|
Document the 6 locations that must be updated when adding a new variant caller (schema, dispatcher subworkflows, post_variantcalling lists, individual subworkflow metadata). Missing any of these causes silent bugs — especially the small_variantcallers list in post_variantcalling which silently excludes callers from normalization/filtering/consensus. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Replace vague topic channel guidance with actionable instruction: check if installed/updated modules use topics for versions/multiqc, and remove explicit .mix() wiring if so - Add one-PR-one-feature to contributing principles Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add pre-commit requirement to PR checklist in developer guidelines - Add nf-core conda env and don't-ask-for-confirmation rules to CLAUDE.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
heuermh
reviewed
Feb 20, 2026
| │ ├── local/ # Pipeline-specific modules | ||
| │ └── nf-core/ # Imported nf-core modules (120+) | ||
| ├── subworkflows/ | ||
| │ ├── local/ # Pipeline-specific subworkflows (66) |
Contributor
There was a problem hiding this comment.
Probably not worth using actual numbers here, will easily get out of sync
| // CORRECT | ||
| channel.map({ meta, file -> [meta, file] }) | ||
|
|
||
| // ALSO CORRECT (trailing closure) |
Contributor
There was a problem hiding this comment.
Suggest dropping this example, even if also correct, since it breaks rule 2 above.
Alternatively, since most .map {, .branch {, .filter {, .set { etc. calls in examples below do not use parentheses, consider dropping this rule
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.
Summary
docs/DEVELOPER_GUIDELINES.md— comprehensive reference for contributing to sarek, covering code style (Harshil alignment, strict syntax, topic channels), channel operations, meta map handling, module/subworkflow patterns, configuration, testing, documentation requirements, and PR checklistCLAUDE.mdat repo root pointing to the guidelines, plus agent-specific rulesDetails
The guidelines document covers:
origin/dev, naming conventions, PR targetsXXXplaceholderif (params.tools...)guards in config filesTest plan
🤖 Generated with Claude Code