1
0
Fork 0
mirror of https://github.com/MillironX/taxprofiler.git synced 2024-11-22 10:09:55 +00:00

Only supply single input channel to profiling, as these are merged into single input channel at run_merging

This commit is contained in:
James Fellows Yates 2022-04-12 10:12:17 +02:00
parent 967b1f7d6e
commit 9f221f84cc

View file

@ -9,8 +9,7 @@ include { METAPHLAN3 } from '../../modules/nf-core/modules/meta
workflow PROFILING {
take:
shortreads // [ [ meta ], [ reads ] ]
longreads // [ [ meta ], [ reads ] ]
reads // [ [ meta ], [ reads ] ]
databases // [ [ meta ], path ]
main:
@ -22,9 +21,9 @@ workflow PROFILING {
*/
// e.g. output [DUMP: reads_plus_db] [['id':'2612', 'run_accession':'combined', 'instrument_platform':'ILLUMINA', 'single_end':1], <reads_path>/2612.merged.fastq.gz, ['tool':'malt', 'db_name':'mal95', 'db_params':'"-id 90"'], <db_path>/malt90]
ch_input_for_profiling = shortreads
.mix( longreads )
ch_input_for_profiling = reads
.combine(databases)
.dump(tag: "combined_withdbs")
.branch {
malt: it[2]['tool'] == 'malt'
kraken2: it[2]['tool'] == 'kraken2'