nf-core_modules/tests/modules/damageprofiler/main.nf
James A. Fellows Yates 97fe899f79
fix: reduce number of required input files for damage profiler (#612)
* Reduce number of required input files for damage profiler

* Remove rebugging

* Add optional species list file.

* Working pending updated test-dataset update

* Add genome header to config
2021-10-20 10:02:30 +02:00

39 lines
1.5 KiB
Text

#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { DAMAGEPROFILER } from '../../../modules/damageprofiler/main.nf' addParams( options: [:] )
workflow test_damageprofiler {
input = [ [ id:'test', single_end:false ], // meta map
[ file(params.test_data['homo_sapiens']['illumina']['test_paired_end_markduplicates_sorted_bam'], checkIfExists: true) ] ]
fasta = []
fai = []
species_list = []
DAMAGEPROFILER ( input, fasta, fai, species_list )
}
workflow test_damageprofiler_reference {
input = [ [ id:'test', single_end:false ], // meta map
[ file(params.test_data['homo_sapiens']['illumina']['test_paired_end_markduplicates_sorted_bam'], checkIfExists: true) ] ]
fasta = file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
fai = file(params.test_data['homo_sapiens']['genome']['genome_fasta_fai'], checkIfExists: true)
species_list = []
DAMAGEPROFILER ( input, fasta, fai, species_list )
}
workflow test_damageprofiler_specieslist {
input = [ [ id:'test', single_end:false ], // meta map
[ file(params.test_data['homo_sapiens']['illumina']['test_paired_end_markduplicates_sorted_bam'], checkIfExists: true) ] ]
fasta = []
fai = []
species_list = file(params.test_data['homo_sapiens']['genome']['genome_header'], checkIfExists: true)
DAMAGEPROFILER ( input, fasta, fai, species_list )
}