Skip to main content

Types

The Nextflow standard library defines the types that are available in a pipeline. You can use these types to annotate pipeline parameters, process inputs and outputs, and workflow inputs and outputs. See Static typing for an overview.

Primitive types

PageDescription
Booleantrue or false.
FloatA floating-point number.
IntegerA whole number.
StringAn immutable sequence of characters.

Collection types

PageDescription
Bag<E>An unordered collection of values.
Iterable<E>The trait implemented by collection types that support iteration.
List<E>An ordered collection of values.
Set<E>An unordered collection of unique values.

Composite types

PageDescription
Map<K,V>A mapping of key-value pairs.
RecordAn immutable map of fields to values, where each value can have its own type.
TupleA fixed sequence of values, where each value can have its own type.

Dataflow types

PageDescription
Channel<E>An asynchronous sequence of values.
Value<V>An asynchronous value.

Other types

PageDescription
DurationA duration of time.
MemoryUnitA quantity of bytes.
PathA handle for files, directories, and URLs.
VersionNumberA semantic or calendar version number.

See also

  • Namespaces: The constants and functions that return these types.
  • Semantics: How Nextflow evaluates values and expressions that use these types.