Home Pattern

Galaxy: tabular patterns

Use this MOC to choose corpus-grounded Galaxy tabular transformation patterns.

Revised
2026-09-22
Rev
2

Galaxy: tabular patterns

Choose by the shape of the input and the result you need. These patterns treat table columns as values, even when a column contains coordinates or sequence text. For coordinate-aware operations use galaxy-interval-patterns, and for FASTA records use galaxy-sequence-patterns. Open the linked operation page for tool parameters and examples. iwc-tabular-operations-survey records the IWC evidence behind the choices.

Rows and columns in one table

  • tabular-filter-by-column-value — use Filter1 for a Python predicate over column positions (c1, c2, …), such as a status comparison. Set its header handling for the input.
  • tabular-filter-by-regex — use tp_grep_tool to keep or drop whole lines by regex, including comment lines. It does not distinguish columns or preserve a header independently of the match. The page covers Grep1 when header preservation is needed.
  • tabular-cut-and-reorder-columns — use Cut1 to select existing columns and put them in output order. It does not calculate values.
  • tabular-compute-new-column — use column_maker for a row-wise expression that inserts, replaces, or appends a column.

Combine or summarize tables

  • tabular-join-on-key — align two tables by key with tp_easyjoin_tool. For many same-shaped key/value files, the page covers tp_multijoin_tool. Choose the missing-value fill to match downstream meaning.
  • tabular-group-and-aggregate-with-datamash — reduce rows by one or more keys with datamash_ops, or reduce the whole file without keys. Check whether input order already groups the keys.
  • tabular-sql-query — use query_tabular when the operation needs SQL semantics such as a window function, anti-join, named multi-table join, or a combined projection, computation, and filter. Use the simpler operations above for a single predicate, cut, or computed column.

Text-processing recipes

Between tables and collections

  • tabular-to-collection-by-row — split a manifest or table by row/key into collection elements so the next tool can run over them. Choose a stable, unique identifier column.
  • tabular-concatenate-collection-to-table — stack rows from a collection of tables into one table. Decide whether to retain element identifiers as row provenance and keep only one header.
  • tabular-pivot-collection-to-wide — align a collection of two-column (id, value) tables by id into a wide table, with one value column per element. Choose what missing cells mean. For two ordinary tables, use tabular-join-on-key instead.

See also

Incoming References (8)

  • Sequence: relabel FASTA headers via tabular related pattern — Edit FASTA headers you cannot easily regex in place: fasta2tab, rewrite column 1 with find/replace, then tab2fasta back. The high-value sequence recipe.
  • Sequence: compute record lengths related pattern — Emit a (id, length) table from a FASTA so downstream tabular steps can filter, sort, or threshold records by length; fasta_compute_length.
  • Sequence: interconvert FASTA and tabular related pattern — Move sequence records between FASTA and a (header, sequence) table so tabular tools can edit them; fasta2tab one way, tab2fasta back.
  • Iwc Interval Operations Survey related note — IWC corpus survey of coordinate-aware genomic interval operations; sizing and candidate boundaries for a galaxy-interval-patterns MOC, with hold-if-thin gate.
  • Iwc Map Over Lifecycle Survey related pattern — Survey of IWC map-over lifecycle recipes, with a Nextflow-to-Galaxy crosswalk for collection construction, cleanup, reshape, reduce, and publish phases.
  • Iwc Sequence Operations Survey related note — IWC survey of record-level FASTA manipulation (interconversion, reformat, merge/dedup, subset, extract-at-intervals); sizes a galaxy-sequence-patterns MOC.
  • Iwc Tabular Operations Survey related note — Corpus survey of tabular tools and operations across IWC workflows; map for the operation pattern hierarchy on row/column data manipulation.
  • Nextflow: source pattern map implemented_by_patterns — Use this source-pattern map to route recurring Nextflow channel and operator idioms to Galaxy implementation patterns.