diff --git a/modules/nf-core/gstama/polyacleanup/main.nf b/modules/nf-core/gstama/polyacleanup/main.nf index 61b98b076544..20a33d05b52c 100644 --- a/modules/nf-core/gstama/polyacleanup/main.nf +++ b/modules/nf-core/gstama/polyacleanup/main.nf @@ -11,7 +11,7 @@ process GSTAMA_POLYACLEANUP { tuple val(meta), path(fasta) output: - tuple val(meta), path("*.fa.gz") , emit: fasta + tuple val(meta), path("*_seq.fa.gz") , emit: seq tuple val(meta), path("*_polya_flnc_report.txt.gz"), emit: report tuple val(meta), path("*_tails.fa.gz") , emit: tails tuple val("${task.process}"), val('gstama'), eval("tama_collapse.py -version | sed -n 's/tc_version_date_//p'"), emit: versions_gstama, topic: versions @@ -28,7 +28,10 @@ process GSTAMA_POLYACLEANUP { -f $fasta \\ -p ${prefix} \\ $args - gzip ${prefix}.fa + + mv ${prefix}.fa ${prefix}_seq.fa + + gzip ${prefix}_seq.fa gzip ${prefix}_polya_flnc_report.txt gzip ${prefix}_tails.fa """ @@ -36,7 +39,7 @@ process GSTAMA_POLYACLEANUP { stub: def prefix = task.ext.prefix ?: "${meta.id}" """ - echo "" | gzip > ${prefix}.fa.gz + echo "" | gzip > ${prefix}_seq.fa.gz echo "" | gzip > ${prefix}_polya_flnc_report.txt.gz echo "" | gzip > ${prefix}_tails.fa.gz """ diff --git a/modules/nf-core/gstama/polyacleanup/meta.yml b/modules/nf-core/gstama/polyacleanup/meta.yml index 598c4be6029d..76e59bcb5394 100644 --- a/modules/nf-core/gstama/polyacleanup/meta.yml +++ b/modules/nf-core/gstama/polyacleanup/meta.yml @@ -31,13 +31,13 @@ input: pattern: "*.{fa,fasta}" ontologies: [] output: - fasta: + seq: - - meta: type: map description: | Groovy Map containing sample information e.g. [ id:'test', single_end:false ] - - "*.fa.gz": + - "*_seq.fa.gz": type: file description: The Full Length Non Chimeric reads cleaned from remaining polyA tails. The sequences are in FASTA format compressed with gzip. diff --git a/modules/nf-core/gstama/polyacleanup/tests/main.nf.test.snap b/modules/nf-core/gstama/polyacleanup/tests/main.nf.test.snap index e2227103f00d..5546752c0bb0 100644 --- a/modules/nf-core/gstama/polyacleanup/tests/main.nf.test.snap +++ b/modules/nf-core/gstama/polyacleanup/tests/main.nf.test.snap @@ -2,23 +2,20 @@ "test-gstama-polyacleanup": { "content": [ { - "fasta": [ + "report": [ [ { "id": "test" }, - [ - "test.fa.gz:md5,f0a2c3ca8f19d2197c6b5b273093ebf0", - "test_tails.fa.gz:md5,20a02db3d29cc45b39880e1ad5ee243b" - ] + "test_polya_flnc_report.txt.gz:md5,83ba9d11a59ff516f45dd45c78613206" ] ], - "report": [ + "seq": [ [ { "id": "test" }, - "test_polya_flnc_report.txt.gz:md5,83ba9d11a59ff516f45dd45c78613206" + "test_seq.fa.gz:md5,f0a2c3ca8f19d2197c6b5b273093ebf0" ] ], "tails": [ @@ -38,32 +35,29 @@ ] } ], - "timestamp": "2026-05-11T23:18:48.341014322", "meta": { - "nf-test": "0.9.5", - "nextflow": "26.03.2" - } + "nf-test": "0.9.3", + "nextflow": "26.04.4" + }, + "timestamp": "2026-07-03T08:49:26.133692481" }, "test-gstama-polyacleanup -- stub": { "content": [ { - "fasta": [ + "report": [ [ { "id": "test" }, - [ - "test.fa.gz:md5,68b329da9893e34099c7d8ad5cb9c940", - "test_tails.fa.gz:md5,68b329da9893e34099c7d8ad5cb9c940" - ] + "test_polya_flnc_report.txt.gz:md5,68b329da9893e34099c7d8ad5cb9c940" ] ], - "report": [ + "seq": [ [ { "id": "test" }, - "test_polya_flnc_report.txt.gz:md5,68b329da9893e34099c7d8ad5cb9c940" + "test_seq.fa.gz:md5,68b329da9893e34099c7d8ad5cb9c940" ] ], "tails": [ @@ -83,10 +77,10 @@ ] } ], - "timestamp": "2026-05-11T23:18:56.653882224", "meta": { - "nf-test": "0.9.5", - "nextflow": "26.03.2" - } + "nf-test": "0.9.3", + "nextflow": "26.04.4" + }, + "timestamp": "2026-07-03T08:49:31.508481265" } } \ No newline at end of file