Pattern Library

IWC-grounded workflow construction recipes.

Pattern maps are the entry points; operation and recipe pages are the concrete Galaxy authoring moves that Molds can reference and casts can condense.

Total
44
Maps
3

Pattern Maps

/ start here

Browse By Topic

/ tag rollups

Collection

/ 11 implementation patterns
draft operation

Collection: build named bundle

Use BUILD_LIST to assemble named outputs into a collection bundle for publishing or downstream fan-in.

rev2 revised2026-05-03
draft operation

Collection: flatten after fan-out

Use FLATTEN to collapse nested collection outputs to a flat list once the outer axis no longer matters.

rev2 revised2026-05-03
draft operation

Collection: unbox singleton

Use __EXTRACT_DATASET__ with which: first when a one-element collection must become a dataset.

rev2 revised2026-05-03

Conditional

/ 4 implementation patterns
draft recipe

Conditional: gate on non-empty result

Derive a boolean from empty or non-empty data, then use when to skip reporting or export steps.

target/galaxy
rev3 revised2026-05-03
draft operation

Conditional: run optional step

Use a workflow boolean connected as inputs.when to skip an optional Galaxy step or branch.

target/galaxy
rev4 revised2026-05-03
draft operation

Conditional: transform or pass through

Gate an optional transform, then use pick_value to pass transformed data when present or original data otherwise.

target/galaxy
rev2 revised2026-05-03

General

/ 8 implementation patterns
draft recipe

Cleanup, sync, and publish non-empty results

Clean sparse mapped outputs, keep sibling collections aligned, then gate report publishing on non-empty results.

target/galaxytopic/galaxy-transformtopic/collection-transform
rev1 revised2026-05-04
draft recipe

Fan-in bundle, consume, and flatten

Bundle parallel outputs into a collection consumer, then flatten nested results for pooled downstream processing.

target/galaxytopic/galaxy-transformtopic/collection-transform
rev1 revised2026-05-04
draft recipe

Manifest to mapped collection lifecycle

Use a manifest or table to build a collection, map a tool per row, then relabel or reshape outputs.

target/galaxytopic/galaxy-transformtopic/collection-transform
rev1 revised2026-05-04
draft operation

nf-core meta-map → Galaxy params

Promote nf-core meta-map keys to Galaxy <param>s only when they drive script behavior; drop identity-only keys; pull naming from $input.element_identifier.

target/galaxy
rev2 revised2026-05-10
draft recipe

Reshape, relabel, and remap by collection axis

Use Apply Rules and deterministic relabeling when domain fan-out creates the wrong map-over axis.

target/galaxytopic/galaxy-transformtopic/collection-transform
rev1 revised2026-05-04

nf-core stub

/ 1 implementation pattern

Parameter

/ 3 implementation patterns
draft operation

Parameter: derive from file

Read a one-value dataset with param_value_from_file, including count recipes that feed typed parameters.

target/galaxy
rev3 revised2026-05-03

Tabular

/ 14 implementation patterns
draft operation

Tabular: compute a new column

Use column_maker (Add_a_column1) with strict error_handling to insert/replace a computed column. Per-expression-kind auto_col_types rule.

target/galaxy
rev3 revised2026-05-03
draft operation

Tabular: concatenate collection to table

Use collapse_dataset to row-bind a collection of tabulars into one table, with optional element IDs and header dedupe.

target/galaxy
rev2 revised2026-05-03
draft operation

Tabular: cut and reorder columns

Use Cut1 with a comma-separated cN list to project — and reorder — columns. Listing out of order is the canonical reorder idiom.

target/galaxy
rev2 revised2026-05-03
draft operation

Tabular: filter rows by column value

Use Filter1 with a Python expression over cN columns to drop rows. Highest-frequency tabular row filter in IWC.

target/galaxy
rev2 revised2026-05-03
draft operation

Tabular: filter rows by regex

Use tp_grep_tool for whole-line regex row filters on tabular input. Grep1 is the legacy alternative.

target/galaxy
rev2 revised2026-05-03
draft operation

Tabular: group and aggregate

Use datamash_ops for grouped tabular aggregation: multi-column grouping, collapse, countunique, min/max, and reductions.

target/galaxy
rev2 revised2026-05-03
draft operation

Tabular: join on key

Use tp_easyjoin_tool for two-tabular key joins; use tp_multijoin_tool for many files and query_tabular for SQL joins.

target/galaxy
rev2 revised2026-05-03
draft operation

Tabular: pivot collection to wide

Use collection_column_join to outer-join a collection of 2-column id/value tables into one wide table.

target/galaxy
rev2 revised2026-05-03
draft operation

Tabular: prepend header

Use tp_awk_tool to prepend a constant header line, optionally skipping or reformatting an existing first row.

target/galaxy
rev2 revised2026-05-03
draft operation

Tabular: relabel by row counter

Use tp_awk_tool to replace each row or label with deterministic sample_N values from awk NR.

target/galaxy
rev2 revised2026-05-03
draft operation

Tabular: split taxonomy string

Use tp_awk_tool to split semicolon-delimited taxonomy strings into explicit rank columns with missing-rank handling.

target/galaxy
rev2 revised2026-05-03
draft operation

Tabular: SQL query

Use query_tabular when SQL semantics justify it: windows, joins, anti-joins, or fused project+compute over tabulars.

target/galaxy
rev2 revised2026-05-03
draft operation

Tabular: to collection by row

Use split_file_to_collection split_by:col to fan a tabular into collection elements by row/key.

rev2 revised2026-05-03