Refactor conditional rules structure with enabled() helper and consolidated prepare_trimmed rule#16
Draft
Headonpillow with Copilot wants to merge 4 commits into
Draft
Refactor conditional rules structure with enabled() helper and consolidated prepare_trimmed rule#16Headonpillow with Copilot wants to merge 4 commits into
Headonpillow with Copilot wants to merge 4 commits into
Conversation
…l rules Co-authored-by: Headonpillow <85705350+Headonpillow@users.noreply.github.com>
…er naming Co-authored-by: Headonpillow <85705350+Headonpillow@users.noreply.github.com>
Co-authored-by: Headonpillow <85705350+Headonpillow@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Refactor conditional rules structure for Trimmed rules
Refactor conditional rules structure with enabled() helper and consolidated prepare_trimmed rule
Dec 9, 2025
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.
Replaces ad-hoc conditional logic with a structured approach: helper functions for config evaluation and target generation, plus a single branching rule instead of mutually-exclusive trimming rules.
Changes
Helper functions
enabled(key): Handles YAML booleans and string values ("yes","y","true","1") for backward compatibilityall_targets(): Dynamically builds target list based on config flags; replaces manualmyoutputlist constructionConsolidated trimming
Config template
config_templates/basic.yamlto use YAML booleans (preprocess: true) instead of strings (preprocess: "yes")DAG behavior
preprocess=true, phylogeny=true: 13 jobs (all optional rules included)preprocess=false, phylogeny=false: 7 jobs (core analysis only)Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.