mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 19:18:17 +00:00
be798861c6
* add module for abricate * rename abricate/abricate to abricate/run * Update test.yml Co-authored-by: Sateesh <33637490+sateeshperi@users.noreply.github.com>
21 lines
784 B
Text
21 lines
784 B
Text
#!/usr/bin/env nextflow
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
include { ABRICATE_RUN } from '../../../../modules/abricate/run/main.nf'
|
|
include { ABRICATE_SUMMARY } from '../../../../modules/abricate/summary/main.nf'
|
|
|
|
workflow test_abricate_summary {
|
|
|
|
inputs = [
|
|
tuple([ id:'test1', single_end:false ], // meta map
|
|
file(params.test_data['bacteroides_fragilis']['genome']['genome_fna_gz'], checkIfExists: true)),
|
|
tuple([ id:'test2', single_end:false ],
|
|
file(params.test_data['haemophilus_influenzae']['genome']['genome_fna_gz'], checkIfExists: true))
|
|
]
|
|
|
|
ABRICATE_RUN ( Channel.fromList(inputs) )
|
|
ABRICATE_SUMMARY (
|
|
ABRICATE_RUN.out.report.collect{ meta, report -> report }.map{ report -> [[ id: 'test_summary'], report]}
|
|
)
|
|
}
|