mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-26 15:38:17 -05:00
e937c7950a
* 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
38 lines
1.9 KiB
Text
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 )
|
|
}
|