2019-12-05 14:57:32 +00:00
|
|
|
#!/usr/bin/env nextflow
|
2019-12-05 21:11:12 +00:00
|
|
|
nextflow.preview.dsl = 2
|
2020-03-16 14:17:38 +00:00
|
|
|
|
|
|
|
params.outdir = "." // gets set in nextflow.config file (as './results/fastqc')
|
|
|
|
params.fastqc_args = ''
|
|
|
|
params.verbose = false
|
|
|
|
|
|
|
|
// TODO: check the output files in some way
|
2020-07-11 12:33:12 +00:00
|
|
|
// include '../../../tests/functions/check_process_outputs.nf'
|
2020-03-16 14:17:38 +00:00
|
|
|
include '../main.nf'
|
2019-12-05 14:57:32 +00:00
|
|
|
|
2019-12-05 21:11:12 +00:00
|
|
|
// Define input channels
|
2020-03-16 14:17:38 +00:00
|
|
|
ch_read_files = Channel
|
|
|
|
.fromFilePairs('../../../test-datasets/test*{1,2}.fastq.gz',size:-1)
|
|
|
|
// .view() // to check whether the input channel works
|
2019-12-05 14:57:32 +00:00
|
|
|
|
2019-12-05 21:11:12 +00:00
|
|
|
// Run the workflow
|
|
|
|
workflow {
|
2020-03-16 14:17:38 +00:00
|
|
|
FASTQC (ch_read_files, params.outdir, params.fastqc_args, params.verbose)
|
2019-12-05 21:11:12 +00:00
|
|
|
// .check_output()
|
2019-12-05 14:57:32 +00:00
|
|
|
}
|