mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-14 21:53:10 +00:00
Add tests for kreport2krona
This commit is contained in:
parent
4d4e0c1994
commit
d1a7dd2c72
4 changed files with 37 additions and 0 deletions
|
@ -1146,6 +1146,10 @@ kraken2/kraken2:
|
||||||
- modules/untar/**
|
- modules/untar/**
|
||||||
- tests/modules/kraken2/kraken2/**
|
- tests/modules/kraken2/kraken2/**
|
||||||
|
|
||||||
|
krakentools/kreport2krona:
|
||||||
|
- modules/krakentools/kreport2krona/**
|
||||||
|
- tests/modules/krakentools/kreport2krona/**
|
||||||
|
|
||||||
krona/kronadb:
|
krona/kronadb:
|
||||||
- modules/krona/kronadb/**
|
- modules/krona/kronadb/**
|
||||||
- tests/modules/krona/kronadb/**
|
- tests/modules/krona/kronadb/**
|
||||||
|
|
20
tests/modules/krakentools/kreport2krona/main.nf
Normal file
20
tests/modules/krakentools/kreport2krona/main.nf
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
#!/usr/bin/env nextflow
|
||||||
|
|
||||||
|
nextflow.enable.dsl = 2
|
||||||
|
|
||||||
|
include { UNTAR } from '../../../../modules/untar/main'
|
||||||
|
include { KRAKEN2_KRAKEN2 } from '../../../../modules/kraken2/kraken2/main'
|
||||||
|
include { KRAKENTOOLS_KREPORT2KRONA } from '../../../../modules/krakentools/kreport2krona/main'
|
||||||
|
|
||||||
|
workflow test_krakentools_kreport2krona {
|
||||||
|
|
||||||
|
input = Channel.of([ [ id:'test', single_end:false ], // meta map
|
||||||
|
[ file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true),
|
||||||
|
file(params.test_data['sarscov2']['illumina']['test_2_fastq_gz'], checkIfExists: true) ]
|
||||||
|
])
|
||||||
|
db = [ [], file(params.test_data['sarscov2']['genome']['kraken2_tar_gz'], checkIfExists: true) ]
|
||||||
|
|
||||||
|
UNTAR ( db )
|
||||||
|
KRAKEN2_KRAKEN2 ( input, UNTAR.out.untar.map{ it[1] }, false, false )
|
||||||
|
KRAKENTOOLS_KREPORT2KRONA ( KRAKEN2_KRAKEN2.out.report )
|
||||||
|
}
|
5
tests/modules/krakentools/kreport2krona/nextflow.config
Normal file
5
tests/modules/krakentools/kreport2krona/nextflow.config
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
process {
|
||||||
|
|
||||||
|
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }
|
||||||
|
|
||||||
|
}
|
8
tests/modules/krakentools/kreport2krona/test.yml
Normal file
8
tests/modules/krakentools/kreport2krona/test.yml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
- name: krakentools kreport2krona test_krakentools_kreport2krona
|
||||||
|
command: nextflow run ./tests/modules/krakentools/kreport2krona -entry test_krakentools_kreport2krona -c ./tests/config/nextflow.config -c ./tests/modules/krakentools/kreport2krona/nextflow.config
|
||||||
|
tags:
|
||||||
|
- krakentools/kreport2krona
|
||||||
|
- krakentools
|
||||||
|
files:
|
||||||
|
- path: output/krakentools/test.txt
|
||||||
|
md5sum: c89a9db7acbdba9dea0fe246bcaa85c1
|
Loading…
Reference in a new issue