Skip to main content

Standard library

The Nextflow standard library defines the constants, functions, and types that are available to every Nextflow script. Namespaces group the constants and functions that Nextflow makes available at runtime, while types describe the values that flow through a pipeline.

Standard library reference

PageDescription
NamespacesThe built-in namespaces, including the global namespace and the channel, log, nextflow, and workflow namespaces.
TypesThe standard types, including primitive types, collections, records, and dataflow types.
Groovy and Java classesThe Groovy and Java classes that are available to Nextflow at runtime.

See also

  • Semantics: How Nextflow evaluates values, operators, and expressions that use these types.
  • Static typing: How to annotate pipeline code with standard types so that the language server can validate it.
  • Syntax reference: The formal grammar for type annotations.