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

Samples as input

Input form

Type
purpose

data

Data such as files and samples. The optional nameFilter is a data filename filter pattern for parts of the expected filename.

To accept sample identifiers, add "sampleMetaDataIncluded": true.

Attribute
purpose

sampleMetaDataIncluded

Indicates that the sampleMetaData for selected data is to be included for this field. Only available when type is data.

General JSON Schema

Usage

inputform.json

The data input field supports samples by setting "sampleMetaDataIncluded": true as shown in the example below. The minValues and maxValues determine the amount of files as input for the pipeline, not the amount of samples.

The resulting value in the input form when selecting samples or files will look like this:

The sampleMetaData object will be available in the input objects to onRender.js, onSubmit.js, genomeviewer.js and onFinish.js as a map with as key the field id, and as value an expanded object such as the example below:

Runtime

The chosen values are transformed when building the input object which is provided to Nextflow/CWL when the analysis runs. In the example below, there are 5 fastq files and the structure shows in which samples these are used.

Last updated

Was this helpful?