Pay close attention to uppercase and lowercase characters when creating pipelines.
Select Projects > your_project > Flow > Pipelines. From the Pipelines view, click the +Create pipeline > Nextflow> JSON based button to start creating a Nextflow pipeline.
In the Details tab, add values for the required Code (unique pipeline name) and Description fields. Nextflow Version and Storage size defaults to preassigned values.
Nextflow files
split.nf
First, we present the individual processes. Select Nextflow files > + Create file and label the file split.nf. Copy and paste the following definition.
Edit the main.nf file by navigating to the Nextflow files > main.nf tab and copying and pasting the following definition.
nextflow.enable.dsl=2include { sort } from './sort.nf'include { split } from './split.nf'include { merge } from './merge.nf'params.myinput ="test.test"workflow { input_ch =Channel.fromPath(params.myinput) split(input_ch) sort(split.out.flatten()) merge(sort.out.collect())}
Here, the operators flatten and collect are used to transform the emitting channels. The Flatten operator transforms a channel in such a way that every item of type Collection or Array is flattened so that each single entry is emitted separately by the resulting channel. The collect operator collects all the items emitted by a channel to a List and return the resulting object as a sole emission.
Inputform files
On the Inputform files tab, edit the inputForm.json to allow selection of a file.