Skip to content

Commit 7834f94

Browse files
authored
Nextflow lint subworkflows fix (nf-core#10123)
Fix index
1 parent fdcc397 commit 7834f94

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

  • subworkflows/nf-core

subworkflows/nf-core/fastq_taxonomic_profile_metaphlan/main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ workflow FASTQ_TAXONOMIC_PROFILE_METAPHLAN {
1818
ch_versions = ch_versions.mix(METAPHLAN_METAPHLAN.out.versions.first())
1919

2020
metaphlan_merged_profiles_txt = METAPHLAN_MERGEMETAPHLANTABLES(METAPHLAN_METAPHLAN.out.profile
21-
.map { meta, profile -> [[id: 'all_samples'], profile] }
21+
.map { _meta, profile -> [[id: 'all_samples'], profile] }
2222
.groupTuple(sort: { profile -> profile.getName() }))
2323
.txt
2424
ch_versions = ch_versions.mix(METAPHLAN_MERGEMETAPHLANTABLES.out.versions.first())

subworkflows/nf-core/quantify_rsem/main.nf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@ workflow QUANTIFY_RSEM {
4343
// Merge counts across samples
4444
//
4545
CUSTOM_RSEMMERGECOUNTS (
46-
ch_counts_gene.collect{ index -> index[1] }.map { results -> [ ['id': 'all_samples'], results ] },
47-
ch_counts_transcript.collect{ index -> index[1] }
46+
ch_counts_gene
47+
.collect{ _meta, genes_count -> genes_count }
48+
.map { genes_count -> [ ['id': 'all_samples'], genes_count ] },
49+
ch_counts_transcript
50+
.collect{ _meta, transcripts_count -> transcripts_count }
4851
)
4952

5053
//

0 commit comments

Comments
 (0)