Description

Scatters inputted BED files by the amount specified. The configuration in nextflow.config should be added to your modules.config for the subworkflow to work.

Input

name:type
description
pattern

ch_bed

The input channel containing the BED file and an integer stating the amount of files it should be split into
Structure: [ val(meta), path(bed), val(scatter_count) ]

Output

name:type
description
pattern

scattered_beds

One channel entry per scattered BED file (all BED files from the same source are transposed but contain the same meta)
Structure: [ val(meta), path(bed), val(scatter_count) ]

versions

Files containing software versions
Structure: [ path(versions.yml) ]