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 carry.

Total
54
Maps
5

Pattern Maps

/ start here

Browse By Topic

/ tag rollups

Collection

/ 11 implementation patterns
draft operation

Collection: build list paired with Apply Rules

Use Apply Rules to promote identifier columns into a list:paired collection, with optional cleanup first.

target/galaxytopic/galaxy-transformtopic/collection-transform
rev2 revised2026-05-03
draft operation

Collection: build named bundle

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

target/galaxytopic/galaxy-transformtopic/collection-transform
rev3 revised2026-09-14
draft operation

Collection: cleanup after map-over failure

Use FILTER_EMPTY or FILTER_FAILED after map-over when bad elements would break downstream collection steps.

target/galaxytopic/galaxy-transformtopic/collection-transform
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.

target/galaxytopic/galaxy-transformtopic/collection-transform
rev3 revised2026-09-13
draft operation

Collection: regex relabel via tabular

Derive collection element identifiers in a tabular mapping, then apply them with RELABEL_FROM_FILE.

target/galaxytopic/galaxy-transformtopic/collection-transform
rev2 revised2026-05-03
draft recipe

Collection: relabel via rules and find/replace

Use Apply Rules, identifier extraction, find/replace, and relabeling for structural fan-out cleanup.

target/galaxytopic/galaxy-transformtopic/collection-transform
rev2 revised2026-05-03
draft operation

Collection: split identifier via rules

Use Apply Rules regex columns to split one collection identifier into nested list identifiers.

target/galaxytopic/galaxy-transformtopic/collection-transform
rev3 revised2026-09-15
draft operation

Collection: swap nesting with Apply Rules

Use Apply Rules to regroup a list:list collection by swapping outer and inner identifier columns.

target/galaxytopic/galaxy-transformtopic/collection-transform
rev3 revised2026-09-13
draft operation

Collection: sync collections by identifier

Use collection_element_identifiers with FILTER_FROM_FILE or RELABEL_FROM_FILE to align sibling collections.

target/galaxytopic/galaxy-transformtopic/collection-transform
rev3 revised2026-09-15
draft operation

Collection: unbox singleton

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

target/galaxytopic/galaxy-transformtopic/collection-transform
rev3 revised2026-09-13

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

/ 4 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 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

Interval

/ 7 implementation patterns
draft recipe

Interval: build a mask by set algebra

Compute regions from regions: concatenate candidate intervals, merge into non-overlapping spans, then subtract the set to keep. The gops_* set-algebra recipe.

target/galaxytopic/galaxy-transformtopic/interval-transform
rev1 revised2026-06-10
draft operation

Interval: compute coverage

Two coverage modes: genome-wide depth as a bedgraph (genomecoveragebed) and reads counted in given regions (coveragebed). Same family, different question.

target/galaxytopic/galaxy-transformtopic/interval-transform
rev1 revised2026-06-10
draft recipe

Interval: consensus regions by multi-intersect

Find features reproducible across replicates: multi-intersect per-replicate sets, threshold by replicate count, then intersect back against the merged call.

target/galaxytopic/galaxy-transformtopic/interval-transformtopic/collection-transform
rev1 revised2026-06-10
draft operation

Interval: filter or annotate by overlap

Keep, drop, or annotate coordinate features by overlap with a second feature set; bedtools intersect (BED) or vcfvcfintersect (VCF), mapped over a collection.

target/galaxytopic/galaxy-transformtopic/interval-transform
rev1 revised2026-06-10
draft operation

Interval: merge overlapping features

Collapse overlapping or book-ended intervals within one set into single spans; bedtools mergebed or the gops_merge Operate-on-Genomic-Intervals tool.

target/galaxytopic/galaxy-transformtopic/interval-transform
rev1 revised2026-06-10
draft operation

Interval: window or flank features

Extend features by a fixed or fractional amount to build neighborhood windows, clamped to chromosome ends; bedtools slopbed with a genome file.

target/galaxytopic/galaxy-transformtopic/interval-transform
rev1 revised2026-06-10
draft recipe

Interval: windowed coverage around features

Quantify signal in fixed neighborhoods around point features: window the features (slop), collapse overlaps (merge), then count reads in each window (coverage).

target/galaxytopic/galaxy-transformtopic/interval-transform
rev1 revised2026-06-10

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

Sequence

/ 6 implementation patterns
draft operation

Sequence: compute record lengths

Emit a (id, length) table from a FASTA so downstream tabular steps can filter, sort, or threshold records by length; fasta_compute_length.

target/galaxytopic/galaxy-transformtopic/sequence-transform
rev1 revised2026-06-10
draft operation

Sequence: extract or mask by region

Turn coordinates into sequence: extract FASTA at BED intervals (getfasta), mask regions by BED (maskfasta), or extract transcripts from a GFF (gffread).

target/galaxytopic/galaxy-transformtopic/sequence-transform
rev1 revised2026-06-10
draft operation

Sequence: interconvert FASTA and tabular

Move sequence records between FASTA and a (header, sequence) table so tabular tools can edit them; fasta2tab one way, tab2fasta back.

target/galaxytopic/galaxy-transformtopic/sequence-transform
rev1 revised2026-06-10
draft operation

Sequence: merge FASTA and filter unique

Concatenate several FASTA files into one and drop duplicate records by sequence identity in a single step; fasta_merge_files_and_filter_unique_sequences.

target/galaxytopic/galaxy-transformtopic/sequence-transform
rev1 revised2026-06-10
draft operation

Sequence: reformat FASTA line width

Rewrap FASTA records to a fixed sequence-line width so downstream tools and viewers get canonical 60/70/80-column output; cshl_fasta_formatter.

target/galaxytopic/galaxy-transformtopic/sequence-transform
rev1 revised2026-06-10
draft recipe

Sequence: relabel FASTA headers via tabular

Edit FASTA headers you cannot easily regex in place: fasta2tab, rewrite column 1 with find/replace, then tab2fasta back. The high-value sequence recipe.

target/galaxytopic/galaxy-transformtopic/sequence-transform
rev1 revised2026-06-10

Tabular

/ 14 implementation patterns
draft operation

Tabular: compute a new column

Append, insert, or replace computed columns with column_maker (Add_a_column1), using a shared input-typing policy and explicit failure handling.

target/galaxy
rev5 revised2026-09-28
draft operation

Tabular: concatenate collection to table

Stack compatible tabular collection elements into one dataset, with one header and a sample column when needed.

target/galaxy
rev3 revised2026-09-30
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
rev3 revised2026-09-14
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
rev3 revised2026-09-13
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
rev3 revised2026-09-15
draft operation

Tabular: group and aggregate

Group tabular rows by one-based key columns, sort when needed, and choose Datamash operations and header settings from the intended result.

target/galaxy
rev3 revised2026-09-29
draft operation

Tabular: join on key

Join tabular files by key with explicit matched-row, missing-value, header, and duplicate-key policies.

target/galaxy
rev3 revised2026-09-28
draft operation

Tabular: pivot collection to wide

Join a collection of keyed tabular datasets into a wide table, choosing missing-cell fill and output headers to fit the data.

target/galaxy
rev3 revised2026-09-30
draft operation

Tabular: prepend header

Add a fixed first line with tp_awk_tool, choosing whether to keep or replace the input's first row and whether to rewrite its fields.

target/galaxy
rev3 revised2026-09-30
draft operation

Tabular: relabel by row counter

Use tp_awk_tool and awk NR to replace each input line with a row-order label, with explicit header and numbering choices.

target/galaxy
rev3 revised2026-09-30
draft operation

Tabular: split into collection by key

Split a tabular file into a list collection by column value, grouping rows that share an identifier.

target/galaxytopic/galaxy-transformtopic/collection-transformtopic/tabular-transform
rev4 revised2026-10-07
draft operation

Tabular: split taxonomy string

Expand a prefixed taxonomy lineage into fixed rank columns with tp_awk_tool, preserving row identity and handling absent ranks.

target/galaxy
rev3 revised2026-10-01
draft operation

Tabular: SQL query

Load tabular datasets into Query Tabular for SQL joins, window calculations, and queries that combine several tabular operations.

target/galaxy
rev3 revised2026-10-01
draft operation

Tabular: synthesize BED from 3-column input

Convert one-based inclusive chromosome/start/end rows to six-column BED with awk, after checking the source coordinate convention.

target/galaxy
rev3 revised2026-10-04