Galaxy: collection patterns
Choose a Galaxy collection operation or map-over recipe from the current and required data shapes.
Pattern maps are the entry points; operation and recipe pages are the concrete Galaxy authoring moves that Molds can reference and casts can carry.
Choose a Galaxy collection operation or map-over recipe from the current and required data shapes.
Choose a Galaxy when gate, routed output, fallback, or collection cleanup by what must change downstream.
Use this MOC to choose corpus-grounded Galaxy genomic interval operations and recipes on coordinate features.
Use this MOC to choose corpus-grounded Galaxy operations on sequence records (FASTA) — interconvert, reformat, merge, length, extract/mask by region.
Use this MOC to choose corpus-grounded Galaxy tabular transformation patterns.
Use Apply Rules to promote identifier columns into a list:paired collection, with optional cleanup first.
Use BUILD_LIST to assemble named outputs into a collection bundle for publishing or downstream fan-in.
Use FILTER_EMPTY or FILTER_FAILED after map-over when bad elements would break downstream collection steps.
Use FLATTEN to collapse nested collection outputs to a flat list once the outer axis no longer matters.
Use SORTLIST with sort_type:file to reorder one collection by another collection's identifiers.
Derive collection element identifiers in a tabular mapping, then apply them with RELABEL_FROM_FILE.
Use Apply Rules, identifier extraction, find/replace, and relabeling for structural fan-out cleanup.
Use Apply Rules regex columns to split one collection identifier into nested list identifiers.
Use Apply Rules to regroup a list:list collection by swapping outer and inner identifier columns.
Use collection_element_identifiers with FILTER_FROM_FILE or RELABEL_FROM_FILE to align sibling collections.
Use __EXTRACT_DATASET__ with which: first when a one-element collection must become a dataset.
Derive a boolean from empty or non-empty data, then use when to skip reporting or export steps.
Use when-gated alternatives plus pick_value to merge binary or one-of-N routes into one downstream value.
Use a workflow boolean connected as inputs.when to skip an optional Galaxy step or branch.
Gate an optional transform, then use pick_value to pass transformed data when present or original data otherwise.
Clean sparse mapped outputs, keep sibling collections aligned, then gate report publishing on non-empty results.
Bundle parallel outputs into a collection consumer, then flatten nested results for pooled downstream processing.
Use a manifest or table to build a collection, map a tool per row, then relabel or reshape outputs.
Use Apply Rules and deterministic relabeling when domain fan-out creates the wrong map-over axis.
Compute regions from regions: concatenate candidate intervals, merge into non-overlapping spans, then subtract the set to keep. The gops_* set-algebra recipe.
Two coverage modes: genome-wide depth as a bedgraph (genomecoveragebed) and reads counted in given regions (coveragebed). Same family, different question.
Find features reproducible across replicates: multi-intersect per-replicate sets, threshold by replicate count, then intersect back against the merged call.
Keep, drop, or annotate coordinate features by overlap with a second feature set; bedtools intersect (BED) or vcfvcfintersect (VCF), mapped over a collection.
Collapse overlapping or book-ended intervals within one set into single spans; bedtools mergebed or the gops_merge Operate-on-Genomic-Intervals tool.
Extend features by a fixed or fractional amount to build neighborhood windows, clamped to chromosome ends; bedtools slopbed with a genome file.
Quantify signal in fixed neighborhoods around point features: window the features (slop), collapse overlaps (merge), then count reads in each window (coverage).
Use compose_text_param to build connected text expressions from constants plus runtime scalar values.
Read a one-value dataset with param_value_from_file, including count recipes that feed typed parameters.
Use map_param_value to translate workflow enum values into downstream tool codes, flags, or snippets.
Emit a (id, length) table from a FASTA so downstream tabular steps can filter, sort, or threshold records by length; fasta_compute_length.
Turn coordinates into sequence: extract FASTA at BED intervals (getfasta), mask regions by BED (maskfasta), or extract transcripts from a GFF (gffread).
Move sequence records between FASTA and a (header, sequence) table so tabular tools can edit them; fasta2tab one way, tab2fasta back.
Concatenate several FASTA files into one and drop duplicate records by sequence identity in a single step; fasta_merge_files_and_filter_unique_sequences.
Rewrap FASTA records to a fixed sequence-line width so downstream tools and viewers get canonical 60/70/80-column output; cshl_fasta_formatter.
Edit FASTA headers you cannot easily regex in place: fasta2tab, rewrite column 1 with find/replace, then tab2fasta back. The high-value sequence recipe.
Append, insert, or replace computed columns with column_maker (Add_a_column1), using a shared input-typing policy and explicit failure handling.
Stack compatible tabular collection elements into one dataset, with one header and a sample column when needed.
Use Cut1 with a comma-separated cN list to project — and reorder — columns. Listing out of order is the canonical reorder idiom.
Use Filter1 with a Python expression over cN columns to drop rows. Highest-frequency tabular row filter in IWC.
Use tp_grep_tool for whole-line regex row filters on tabular input. Grep1 is the legacy alternative.
Group tabular rows by one-based key columns, sort when needed, and choose Datamash operations and header settings from the intended result.
Join tabular files by key with explicit matched-row, missing-value, header, and duplicate-key policies.
Join a collection of keyed tabular datasets into a wide table, choosing missing-cell fill and output headers to fit the data.
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.
Use tp_awk_tool and awk NR to replace each input line with a row-order label, with explicit header and numbering choices.
Split a tabular file into a list collection by column value, grouping rows that share an identifier.
Expand a prefixed taxonomy lineage into fixed rank columns with tp_awk_tool, preserving row identity and handling absent ranks.
Load tabular datasets into Query Tabular for SQL joins, window calculations, and queries that combine several tabular operations.
Convert one-based inclusive chromosome/start/end rows to six-column BED with awk, after checking the source coordinate convention.