2022-04-21 13:39:22 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
|
|
|
include { BCLCONVERT } from '../../../modules/bclconvert/main.nf'
|
2022-06-16 13:03:13 +00:00
|
|
|
include { UNTAR } from '../../../modules/untar/main.nf'
|
2022-04-21 13:39:22 +00:00
|
|
|
|
2022-06-16 13:03:13 +00:00
|
|
|
workflow test_bclconvert {
|
|
|
|
ch_flowcell = Channel.value([
|
|
|
|
[id:'test', lane:1 ], // meta map
|
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test_flowcell_samplesheet'], checkIfExists: true),
|
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test_flowcell'], checkIfExists: true)])
|
2022-04-21 13:39:22 +00:00
|
|
|
|
2022-06-16 13:03:13 +00:00
|
|
|
ch_flowcell
|
|
|
|
.multiMap { meta, ss, run ->
|
|
|
|
samplesheet: [meta, ss]
|
|
|
|
tar: [meta, run]
|
|
|
|
}.set{ ch_fc_split }
|
2022-04-21 13:39:22 +00:00
|
|
|
|
2022-06-16 13:03:13 +00:00
|
|
|
ch_flowcell_untar = ch_fc_split.samplesheet.join( UNTAR ( ch_fc_split.tar ).untar )
|
|
|
|
|
|
|
|
BCLCONVERT (ch_flowcell_untar)
|
2022-04-21 13:39:22 +00:00
|
|
|
}
|