mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-23 11:38:17 +00:00
6d88f2da8c
* Rename process from STRINGTIE to STRINGTIE_STRINGTIE * Bump Stringtie version to 2.2.1 and remove empty files in tests * Fix tests for stringtie/merge Co-authored-by: Júlia Mir Pedrol <mirp.julia@gmail.com>
46 lines
1.4 KiB
Text
46 lines
1.4 KiB
Text
#!/usr/bin/env nextflow
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
include { STRINGTIE_STRINGTIE } from '../../../../modules/stringtie/stringtie/main.nf'
|
|
include { STRINGTIE_MERGE } from '../../../../modules/stringtie/merge/main.nf'
|
|
|
|
/*
|
|
* Test with forward strandedness
|
|
*/
|
|
workflow test_stringtie_forward_merge {
|
|
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_STRINGTIE ( input, annotation_gtf )
|
|
STRINGTIE_STRINGTIE
|
|
.out
|
|
.transcript_gtf
|
|
.map { it -> it[1] }
|
|
.set { stringtie_gtf }
|
|
|
|
STRINGTIE_MERGE ( stringtie_gtf, annotation_gtf )
|
|
}
|
|
|
|
/*
|
|
* Test with reverse strandedness
|
|
*/
|
|
workflow test_stringtie_reverse_merge {
|
|
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_STRINGTIE ( input, annotation_gtf )
|
|
STRINGTIE_STRINGTIE
|
|
.out
|
|
.transcript_gtf
|
|
.map { it -> it[1] }
|
|
.set { stringtie_gtf }
|
|
|
|
STRINGTIE_MERGE ( stringtie_gtf, annotation_gtf )
|
|
}
|