From cd79b7175e0dcd3d88d934ddfbe4480a63640d66 Mon Sep 17 00:00:00 2001 From: Carson J Miller Date: Mon, 25 Mar 2024 22:30:03 +0000 Subject: [PATCH] Changed sort method to file name --- .../nf-core/fastq_taxonomic_profile_metaphlan/main.nf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/subworkflows/nf-core/fastq_taxonomic_profile_metaphlan/main.nf b/subworkflows/nf-core/fastq_taxonomic_profile_metaphlan/main.nf index 4c7bbb1f054..c033dbae56f 100644 --- a/subworkflows/nf-core/fastq_taxonomic_profile_metaphlan/main.nf +++ b/subworkflows/nf-core/fastq_taxonomic_profile_metaphlan/main.nf @@ -18,12 +18,11 @@ workflow FASTQ_TAXONOMIC_PROFILE_METAPHLAN { METAPHLAN_METAPHLAN ( ch_fastq, METAPHLAN_MAKEDB.out.db ) ch_versions = ch_versions.mix(METAPHLAN_METAPHLAN.out.versions.first()) - METAPHLAN_MERGEMETAPHLANTABLES ( METAPHLAN_METAPHLAN.out.profile.map{ [ [id:'all_samples'], it[1] ] }.groupTuple( sort: "deep") ) + metaphlan_merged_profiles_txt = METAPHLAN_MERGEMETAPHLANTABLES ( METAPHLAN_METAPHLAN.out.profile.map{ [ [id:'all_samples'], it[1] ] }.groupTuple( sort: { it.getName() } ) ).txt ch_versions = ch_versions.mix(METAPHLAN_MERGEMETAPHLANTABLES.out.versions.first()) emit: - merged_taxa = METAPHLAN_MERGEMETAPHLANTABLES.out.txt - + merged_taxa = metaphlan_merged_profiles_txt versions = ch_versions }