Inputs and outputs (typed)
Typed processes require the nextflow.enable.types feature flag to be enabled in every script that uses them.
Stage directives
The following directives can be used in the Declares an environment variable with the specified name and value in the task environment. Stages a file into the task directory under the given alias. Stages a collection of files into the task directory under the given alias. Stages the given value as the standard input (i.e., stage: section of a typed process:env( name: String, String value )stageAs( value: Path, filePattern: String )stageAs( value: Iterable<Path>, filePattern: String )stdin( value: String )stdin) to the task script.
Outputs
The following functions are available in the Returns the value of an environment variable from the task environment. Returns the standard output of the specified command, which is executed in the task environment after the task script completes. Returns a file from the task environment that matches the specified pattern. Available options: When When When When Maximum number of directory levels to visit (default: no limit). When Type of paths returned, either Returns files from the task environment that match the given pattern. Supports the same options as Returns the standard output of the task script.output: and topic: sections of a typed process:env( name: String ) -> Stringeval( command: String ) -> Stringfile( pattern: String, [options] ) -> PathfollowLinks: Booleantrue, target files are returned in place of any matching symlink (default: true).glob: Booleantrue, the file name is interpreted as a glob pattern (default: true).hidden: Booleantrue, hidden files are included in the matching output files (default: false).includeInputs: Booleantrue and the file name is a glob pattern, any input files matching the pattern are also included in the output (default: false).maxDepth: Integeroptional: Booleantrue, the task will not fail if the given file is missing (default: false).type: Stringfile, dir or any (default: any, or file if the given file name contains a double star (**)).files( pattern: String, [options] ) -> Set<Path>file() (except for optional).stdout() -> String