Nextflow workflows can output thousands of files, making it difficult for users to find the most relevant output files. To help users navigate these outputs, Latch provides a results page that displays the outputs of a Nextflow workflow in a user-friendly interface.

To expose specific outputs to users, developers can explicitly define a list of subpaths for any output directory defined in latch_metadata/parameters.py. For example, the following code snippet exposes shortcuts for the workflows publishDir and execution report:

parameters = {
  'outdir': NextflowParameter(
    type=LatchDir,
    results_paths=[
      Path("/"),
      Path("/pipeline_info/execution_report.html")
    ]
  )
}

Nextflow Results GUI