2021-05-03 05:18:51 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-11-26 07:58:40 +00:00
|
|
|
include { STRINGTIE } from '../../../../modules/stringtie/stringtie/main.nf'
|
|
|
|
include { STRINGTIE_MERGE } from '../../../../modules/stringtie/merge/main.nf'
|
2021-09-28 05:56:27 +00:00
|
|
|
|
2021-05-03 05:18:51 +00:00
|
|
|
/*
|
|
|
|
* Test with forward strandedness
|
|
|
|
*/
|
|
|
|
workflow test_stringtie_forward_merge {
|
2021-09-28 05:56:27 +00: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 05:18:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Test with reverse strandedness
|
|
|
|
*/
|
|
|
|
workflow test_stringtie_reverse_merge {
|
2021-09-28 05:56:27 +00: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 05:18:51 +00:00
|
|
|
}
|