Skip to content

Commit

Permalink
Channel updates and bug fix for #178
Browse files Browse the repository at this point in the history
  • Loading branch information
DLBPointon committed Nov 23, 2023
1 parent dcf727e commit febaeba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
7 changes: 7 additions & 0 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,13 @@ process {
ext.args = { "-k2,2 -nr -S${task.memory.mega - 100}M -T ." }
}

//
// KMER
//
withName: CAT_CAT {
ext.prefix = { "${meta.id}_merged.fasta.gz" }
}

withName: FASTK_FASTK {
ext.args = "-k31 -t -P."
}
Expand Down
10 changes: 1 addition & 9 deletions subworkflows/local/kmer.nf
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,9 @@ workflow KMER {
ch_versions = ch_versions.mix( CAT_CAT.out.versions.first() )

//
// LOGIC: PRODUCE MERGED READS
//
CAT_CAT.out.file_out
.map{ meta, reads ->
reads.getName().endsWith('gz') ? [meta, reads.getParent().toString() + '/' + reads.getBaseName().toString() + '.fa.gz'] : [meta, reads.getParent().toString() + '/' + reads.getBaseName().toString() + '.fa']
}
.set{ ch_reads_merged }

// MODULE: COUNT KMERS
//
FASTK_FASTK( ch_reads_merged )
FASTK_FASTK( CAT_CAT.out.file_out )
ch_versions = ch_versions.mix( FASTK_FASTK.out.versions.first() )

//
Expand Down

0 comments on commit febaeba

Please sign in to comment.