nf-core_modules/tests/modules/metaphlan3/mergemetaphlantables/main.nf
James A. Fellows Yates 36bcd675ae
Update METAPHLAN3/MERGEMETAPHLANTABLES (#2041)
* Update main.nf

* Update meta.yml

* Re-add logos as not staged in a way that works with MultiQC config files

* Add meta to mergemetaphlan3 tables

* Actually combine the data together
2022-09-13 14:37:46 +02:00

22 lines
1 KiB
Text

#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { UNTAR } from '../../../../modules/untar/main.nf'
include { METAPHLAN3 } from '../../../../modules/metaphlan3/metaphlan3/main.nf'
include { METAPHLAN3_MERGEMETAPHLANTABLES } from '../../../../modules/metaphlan3/mergemetaphlantables/main.nf'
workflow test_metaphlan3_mergemetaphlantables {
input = Channel.of(
[[ id:'test', single_end:true ], [ file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true) ]],
[[ id:'test2', single_end:true ], [ file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true) ]]
)
db = [ [], file('https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/delete_me/metaphlan_database.tar.gz', checkIfExists: true) ]
UNTAR ( db )
METAPHLAN3 ( input, UNTAR.out.untar.map{ it[1] } )
METAPHLAN3_MERGEMETAPHLANTABLES ( METAPHLAN3.out.profile.map{ [[id:"test"], it[1]] }.groupTuple() )
}