Skip to content

Commit

Permalink
Remove no longer needed meta.id formatting
Browse files Browse the repository at this point in the history
Co-authored-by: Matthieu Muffato <[email protected]>
  • Loading branch information
tkchafin and muffato authored Jun 27, 2024
1 parent b1958d8 commit 01d5dd4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions subworkflows/local/prepare_header.nf
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ workflow PREPARE_HEADER {
main:
ch_versions = Channel.empty()

// Normalize the dict ID by removing .masked.ncbi if present and join
dict_mapped = dict.map { meta, path ->
def id = meta.id.replace('.masked.ncbi', '')
[id, [meta, path]]
}
// The meta maps differ, so join the channels by meta.id
dict_mapped = dict.map { meta, path -> [id, [meta, path]] }
report_mapped = report.map { meta, path -> [meta.id, path] }
source_mapped = source.map { meta, path -> [meta.id, path] }

Expand Down

0 comments on commit 01d5dd4

Please sign in to comment.