nf-core_modules/tests/modules/megan/daa2info/main.nf
James A. Fellows Yates 6702d2e145
Add MEGAN/DAA2INFO (#1848)
* Add daa2info

* Add right flag in the config

* Fix config

* Apply suggestions from code review

Co-authored-by: Jose Espinosa-Carrasco <kadomu@gmail.com>

Co-authored-by: Jose Espinosa-Carrasco <kadomu@gmail.com>
2022-07-05 09:36:22 +02:00

20 lines
810 B
Text

#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { DIAMOND_MAKEDB } from '../../../../modules/diamond/makedb/main.nf'
include { DIAMOND_BLASTX } from '../../../../modules/diamond/blastx/main.nf'
include { MEGAN_DAA2INFO } from '../../../../modules/megan/daa2info/main.nf'
workflow test_megan_daa2info {
db = [ file(params.test_data['candidatus_portiera_aleyrodidarum']['genome']['proteome_fasta'], checkIfExists: true) ]
fasta = [ file(params.test_data['candidatus_portiera_aleyrodidarum']['genome']['genome_fasta'], checkIfExists: true) ]
out_ext = 'daa'
blast_columns = []
megan_summary = true
DIAMOND_MAKEDB ( db )
DIAMOND_BLASTX ( [ [id:'test'], fasta ], DIAMOND_MAKEDB.out.db, out_ext, blast_columns )
MEGAN_DAA2INFO ( DIAMOND_BLASTX.out.daa, megan_summary )
}