2021-05-03 01:18:51 -04:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-09-28 01:56:27 -04:00
|
|
|
include { STRINGTIE } from '../../../../modules/stringtie/stringtie/main.nf' addParams( options: [:] )
|
|
|
|
include { STRINGTIE_MERGE } from '../../../../modules/stringtie/merge/main.nf' addParams( options: [:] )
|
|
|
|
|
2021-05-03 01:18:51 -04:00
|
|
|
/*
|
|
|
|
* Test with forward strandedness
|
|
|
|
*/
|
|
|
|
workflow test_stringtie_forward_merge {
|
2021-09-28 01:56:27 -04:00
|
|
|
input = [
|
|
|
|
[ id:'test', strandedness:'forward' ], // meta map
|
|
|
|
[ file(params.test_data['homo_sapiens']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true) ]
|
|
|
|
]
|
|
|
|
annotation_gtf = file(params.test_data['homo_sapiens']['genome']['genome_gtf'], checkIfExists: true)
|
|
|
|
|
|
|
|
STRINGTIE ( input, annotation_gtf )
|
|
|
|
STRINGTIE
|
|
|
|
.out
|
|
|
|
.transcript_gtf
|
|
|
|
.map { it -> it[1] }
|
|
|
|
.set { stringtie_gtf }
|
|
|
|
|
|
|
|
STRINGTIE_MERGE ( stringtie_gtf, annotation_gtf )
|
2021-05-03 01:18:51 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Test with reverse strandedness
|
|
|
|
*/
|
|
|
|
workflow test_stringtie_reverse_merge {
|
2021-09-28 01:56:27 -04:00
|
|
|
input = [
|
|
|
|
[ id:'test', strandedness:'reverse' ], // meta map
|
|
|
|
[ file(params.test_data['homo_sapiens']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true) ]
|
|
|
|
]
|
|
|
|
annotation_gtf = file(params.test_data['homo_sapiens']['genome']['genome_gtf'], checkIfExists: true)
|
|
|
|
|
|
|
|
STRINGTIE ( input, annotation_gtf )
|
|
|
|
STRINGTIE
|
|
|
|
.out
|
|
|
|
.transcript_gtf
|
|
|
|
.map { it -> it[1] }
|
|
|
|
.set { stringtie_gtf }
|
|
|
|
|
|
|
|
STRINGTIE_MERGE ( stringtie_gtf, annotation_gtf )
|
2021-05-03 01:18:51 -04:00
|
|
|
}
|