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

Put map in the rigt place

This commit is contained in:
James Fellows Yates 2022-04-12 10:51:27 +02:00
parent 8d68914192
commit a15c45b00c

View file

@ -22,7 +22,6 @@ 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 = reads
.combine(databases)
.map {
meta, reads ->
def meta_new = meta.clone()
@ -30,6 +29,7 @@ workflow PROFILING {
meta_new['id'] = meta_new['id'] + pairtype
[meta_new, reads]
}
.combine(databases)
.branch {
malt: it[2]['tool'] == 'malt'
kraken2: it[2]['tool'] == 'kraken2'