For the complete documentation index, see llms.txt. This page is also available as Markdown.

JSON-Based input forms

Introduction

Pipelines defined using the "Code" mode require an XML or JSON-based input form to define the fields shown on the launch view in the user interface (UI).

To create a JSON-based Nextflow (or CWL) pipeline, go to Projects > your_project > Flow > Pipelines > +Create > Nextflow (or CWL) > JSON-based.

Fields

A JSON input form consists of a list of fields which will be displayed as a vertical list.

  • Each field requires a type attribute which determines what type of field it is such as a textbox, radio button, number,....

  • Each field has a mandatory unique id which serves as the key for passing the value to the underlying nextflow or cwl script and identifies the field.

  • Fields can have a number of optional attributes which are listed here to hide them or limit their possible input values.

Files

The files listed here, located on the inputform files tab, work together for evaluating and presenting JSON-based input.

  • inputForm.json contains the actual input form which is rendered when starting the pipeline run.

  • onRender.js is triggered when a value is changed.

  • onSubmit.js is triggered when starting a pipeline via the GUI or API.

  • onFinish.js (optional, not automatically created) is triggered once the pipeline analysis has been completed

Actions when editing

Use + Create to add additional files and Simulate to test your inputForms.

Scripting execution supports crossfield validation of the values, hiding fields, making them required, .... based on value changes.

Last updated

Was this helpful?