mirror of
https://github.com/MillironX/taxprofiler.git
synced 2024-11-25 23:09:55 +00:00
Re-add pairment attachment
This commit is contained in:
parent
2ef21c6ef3
commit
26399718b2
1 changed files with 6 additions and 0 deletions
|
@ -23,6 +23,12 @@ 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]
|
// 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
|
ch_input_for_profiling = reads
|
||||||
.combine(databases)
|
.combine(databases)
|
||||||
|
meta, reads ->
|
||||||
|
def meta_new = meta.clone()
|
||||||
|
pairtype = meta_new['single_end'] ? '_se' : '_pe'
|
||||||
|
meta_new['id'] = meta_new['id'] + pairtype
|
||||||
|
[meta_new, reads]
|
||||||
|
}
|
||||||
.branch {
|
.branch {
|
||||||
malt: it[2]['tool'] == 'malt'
|
malt: it[2]['tool'] == 'malt'
|
||||||
kraken2: it[2]['tool'] == 'kraken2'
|
kraken2: it[2]['tool'] == 'kraken2'
|
||||||
|
|
Loading…
Reference in a new issue