2021-01-12 15:13:37 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-01-15 15:49:34 +00:00
|
|
|
include { STRINGTIE as STRINGTIE_FORWARD } from '../../../software/stringtie/main.nf' addParams( options: [ publish_dir:'test_stringtie_forward' ] )
|
|
|
|
include { STRINGTIE as STRINGTIE_REVERSE } from '../../../software/stringtie/main.nf' addParams( options: [ publish_dir:'test_stringtie_reverse' ] )
|
2021-01-12 15:13:37 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Test with forward strandedness
|
|
|
|
*/
|
|
|
|
workflow test_stringtie_forward {
|
|
|
|
input = [ [ id:'test', strandedness:'forward' ], // meta map
|
2021-04-09 12:47:05 +00:00
|
|
|
[ file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true) ] ]
|
|
|
|
gtf = file(params.test_data['sarscov2']['genome']['genome_gtf'], checkIfExists: true)
|
2021-03-24 09:53:41 +00:00
|
|
|
|
|
|
|
STRINGTIE_FORWARD ( input, gtf )
|
2021-01-12 15:13:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Test with reverse strandedness
|
|
|
|
*/
|
|
|
|
workflow test_stringtie_reverse {
|
|
|
|
input = [ [ id:'test', strandedness:'reverse' ], // meta map
|
2021-04-09 12:47:05 +00:00
|
|
|
[ file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true) ]
|
2021-03-24 09:53:41 +00:00
|
|
|
]
|
2021-04-09 12:47:05 +00:00
|
|
|
gtf = file(params.test_data['sarscov2']['genome']['genome_gtf'], checkIfExists: true)
|
2021-03-24 09:53:41 +00:00
|
|
|
|
|
|
|
STRINGTIE_REVERSE ( input, gtf )
|
2021-01-12 15:13:37 +00:00
|
|
|
}
|