Home Pattern

Galaxy: conditionals patterns

Use this MOC to choose corpus-grounded Galaxy when and pick_value conditional patterns.

Revised
2026-05-02
Rev
1

Galaxy: conditionals patterns

This is the runtime-facing map for Galaxy conditional workflow choices. Use it before loading raw survey notes. The survey remains evidence backing; the operation and recipe pages are the actionable references.

Direct Gates

  • conditional-run-optional-step — expose or derive a boolean, connect it as inputs.when, and use when: $(inputs.when) to skip optional steps.
  • conditional-gate-on-nonempty-result — compute a boolean from empty/non-empty dataset or collection state before gating downstream reporting/export. The MGnify recipe is corpus-backed but clunky pending verified-pattern workflow work.

Routes and Fallbacks

Not Conditionals

  • collection-cleanup-after-mapover-failure — use collection filters when empty or failed mapped elements should be dropped or replaced. This is collection-state cleanup, not a when gate.
  • __FILTER_NULL__ — catalog capability for null outputs after conditional steps, but no IWC-backed pattern candidate in the conditionals survey. Zero uptake is not itself an anti-pattern call.

See Also

Incoming References (5)

  • Iwc Conditionals Surveyrelated note— Corpus survey of Galaxy conditional step usage in IWC, covering when-gates, boolean shims, and routed output selection.
  • Iwc Conditionals Surveyrelated pattern— Corpus survey of Galaxy conditional step usage in IWC, covering when-gates, boolean shims, and routed output selection.
  • Iwc Map Over Lifecycle Surveyrelated pattern— Survey of IWC map-over lifecycle recipes, with a Nextflow-to-Galaxy crosswalk for collection construction, cleanup, reshape, reduce, and publish phases.
  • Nextflow: branch, filter, and ifEmpty to Galaxy filters and gatesimplemented_by_patterns— Route Nextflow branch, filter, and ifEmpty channel idioms to Galaxy collection cleanup, identifier filters, when gates, or review.
  • Nextflow: source pattern mapimplemented_by_patterns— Use this source-pattern map to route recurring Nextflow channel and operator idioms to Galaxy implementation patterns.