2021-10-12 13:20:58 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
|
|
|
include { UNTAR } from '../../../../modules/untar/main.nf'
|
2021-11-26 07:58:40 +00:00
|
|
|
include { SRATOOLS_FASTERQDUMP } from '../../../../modules/sratools/fasterqdump/main.nf'
|
2021-10-12 13:20:58 +00:00
|
|
|
|
|
|
|
workflow test_sratools_fasterqdump_single_end {
|
|
|
|
|
2022-03-21 13:49:28 +00:00
|
|
|
archive = [ [], file(params.test_data['sarscov2']['illumina']['SRR13255544_tar_gz'], checkIfExists: true) ]
|
2021-10-12 13:20:58 +00:00
|
|
|
UNTAR ( archive )
|
|
|
|
|
|
|
|
def input = Channel.of([ id:'test_single_end', single_end:true ])
|
2022-03-21 13:49:28 +00:00
|
|
|
.combine(UNTAR.out.untar.map{ it[1] })
|
2021-10-12 13:20:58 +00:00
|
|
|
|
|
|
|
SRATOOLS_FASTERQDUMP ( input )
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_sratools_fasterqdump_paired_end {
|
|
|
|
|
2022-03-21 13:49:28 +00:00
|
|
|
archive = [ [], file(params.test_data['sarscov2']['illumina']['SRR11140744_tar_gz'], checkIfExists: true) ]
|
2021-10-12 13:20:58 +00:00
|
|
|
UNTAR ( archive )
|
|
|
|
|
|
|
|
def input = Channel.of([ id:'test_paired_end', single_end:false ])
|
2022-03-21 13:49:28 +00:00
|
|
|
.combine(UNTAR.out.untar.map{ it[1] })
|
2021-10-12 13:20:58 +00:00
|
|
|
|
|
|
|
SRATOOLS_FASTERQDUMP ( input )
|
|
|
|
}
|