Skip to content

Commit

Permalink
Merge pull request #137 from mskcc/bugfix/sort_meta_map_values
Browse files Browse the repository at this point in the history
sort read_group and fastq_pair_id values before concatenation
  • Loading branch information
anoronh4 authored Feb 3, 2025
2 parents c3b1e72 + 80af011 commit be76669
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- [#132](https://github.com/mskcc/forte/pull/132) - fix generate cff split/span logic for fusioncatcher and arriba

- [#135](https://github.com/mskcc/forte/pull/135) - sort read_group and fastq_pair_id values before concatenation

### `Dependencies`

### `Deprecated`
Expand Down
2 changes: 1 addition & 1 deletion subworkflows/local/group_reads.nf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ workflow GROUP_READS {
[groupKey(meta_clone,meta.fq_num), reads, read_group, fastq_pair_id]
}.groupTuple(by:[0])
.map{ meta, reads, read_group, fastq_pair_id ->
meta = meta + [read_group:read_group.join(','), fastq_pair_id:fastq_pair_id.join(',')]
meta = meta + [read_group:read_group.sort().join(','), fastq_pair_id:fastq_pair_id.sort().join(',')]
[meta, reads.flatten()]
}

Expand Down

0 comments on commit be76669

Please sign in to comment.