nf-core_modules/tests/modules/stringtie/merge/main.nf
Harshil Patel e937c7950a
Rename software/ directory to modules/ to re-organise module structure (#567)
* Update README

* Rename pytest_software.yml to pytest_modules.yml

* Rename main software directory to modules

* Remove deprecated modules

* Rename tests software to modules

* Replace paths for tests in pytest_modules.yml

* Replace software with modules in Github Actions

* Replace software with modules in main.nf tests

* Rename software to modules in test.yml
2021-07-07 10:10:18 +01:00

38 lines
1.9 KiB
Text

#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { STRINGTIE as STRINGTIE_FORWARD } from '../../../../modules/stringtie/stringtie/main.nf' addParams( options: [ publish_dir:'test_stringtie_forward' ] )
include { STRINGTIE as STRINGTIE_REVERSE } from '../../../../modules/stringtie/stringtie/main.nf' addParams( options: [ publish_dir:'test_stringtie_reverse' ] )
include { STRINGTIE_MERGE as STRINGTIE_FORWARD_MERGE} from '../../../../modules/stringtie/merge/main.nf' addParams( options: [ publish_dir:'test_stringtie_forward_merge'] )
include { STRINGTIE_MERGE as STRINGTIE_REVERSE_MERGE} from '../../../../modules/stringtie/merge/main.nf' addParams( options: [ publish_dir:'test_stringtie_reverse_merge'] )
/*
* 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_FORWARD ( input, annotation_gtf )
STRINGTIE_FORWARD.out.transcript_gtf
.map { it -> it[1] }
.set { stringtie_gtf }
STRINGTIE_FORWARD_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_REVERSE ( input, annotation_gtf )
STRINGTIE_REVERSE.out.transcript_gtf
.map { it -> it[1] }
.set { stringtie_gtf }
STRINGTIE_REVERSE_MERGE ( stringtie_gtf, annotation_gtf )
}