#!/usr/bin/env nextflow nextflow.enable.types = true process TOUCH { input: id: String output: record( id: id, fastq_1: file('*_1.fastq'), fastq_2: file('*_2.fastq') ) script: """ touch ${id}_1.fastq touch ${id}_2.fastq """ } process FASTQC { input: record( id: String, fastq_1: Path, fastq_2: Path ) output: record( id: id, html: file('*.html'), zip: file('*.zip') ) script: """ touch ${id}.html touch ${id}.zip """ } workflow { ch_samples = TOUCH( channel.of('a', 'b', 'c') ) ch_fastqc = FASTQC(ch_samples) ch_fastqc.view() }