Home Source Pattern

Nextflow: mix and collect to report aggregation

Route Nextflow mix, collect, toList, and collectFile report fan-in idioms to Galaxy aggregation and bundle patterns.

Revised
2026-05-04
Rev
1
Review Triggers
  • mix combines incompatible file or report types into one channel.
  • mix relies on ordering of emitted values.
  • collect or toList feeds a tool expecting tuple metadata not preserved as identifiers.
  • collectFile content concatenation has no existing Galaxy tool equivalent.
  • Aggregation should skip empty mapped outputs before report generation.
  • publishDir path or layout semantics are user-visible.

Nextflow: mix and collect to report aggregation

Use this when Nextflow report, version, or QC channels converge before final reporting or publication.

Source idioms

  • mix(...) merges report, version, or QC channels.
  • collect() and toList() reduce many emitted values into one downstream invocation.
  • collectFile(...) materializes one file from channel values.

Galaxy translation

Operator-specific decisions

mix

Usually this is Galaxy wiring or bundle construction. Review if order, duplicate identifiers, or mixed file types matter.

collect and toList

Usually this becomes one downstream Galaxy tool invocation over a collection. Pick row-bind, wide-pivot, bundle, or flatten based on the downstream consumer shape.

collectFile

Treat this as one materialized file. Prefer an explicit Galaxy tool or report output. Do not model it as collection assembly unless the downstream object remains a collection.

Evidence posture

This page is grounded in existing Foundry source-shape and lifecycle notes. Direct Nextflow fixture evidence was not regenerated during authoring.

Incoming References (1)

  • Nextflow: source pattern maprelated note— Use this source-pattern map to route recurring Nextflow channel and operator idioms to Galaxy implementation patterns.