See also

@merge

@merge ( tasks_or_file_names, output_file, [extra_parameters,...] )

Purpose:

Merges multiple input files into a single output.

Only out of date tasks (comparing input and output files) will be run

Example:

@merge(previous_task, 'all.summary')
def summarize(infiles, summary_file):
    pass

Parameters:

  • tasks_or_file_names

    can be a:

    1. Task / list of tasks (as in the example above).

      File names are taken from the output of the specified task(s)

    2. (Nested) list of file name strings.
      File names containing *[]? will be expanded as a glob.

      E.g.:"a.*" => "a.1", "a.2"

  • output_file

    Specifies the resulting output file name(s).

  • extra_parameters, ...

    Any optional extra parameters are passed verbatim to the task function

See here for more advanced uses of merging.