Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gzrt to v0.9.1 #7241

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
894df53
Add module gzrt (#6918)
mazzalab Nov 21, 2024
83cf8d1
fixed environment.yml
mazzalab Nov 21, 2024
948dda3
Merge branch 'master' into gzrt
mazzalab Nov 22, 2024
af2f9f5
Reply to review
tm4zza Nov 27, 2024
c3eae12
gzrecover and gzip oneliner
tm4zza Nov 27, 2024
94b33af
gzrt uses a named pipe to avoid temp files
tm4zza Nov 27, 2024
20f2a78
Updated test file URL
mazzalab Dec 15, 2024
478bae4
Merge branch 'master' into gzrt
mazzalab Dec 15, 2024
790fd2e
Merge branch 'nf-core:master' into gzrt
mazzalab Dec 17, 2024
9f06739
Merge branch 'gzrt' of https://github.com/mazzalab/nf-core_modules in…
mazzalab Dec 17, 2024
4b578d0
Improved syntax of prefixes in gzrt
mazzalab Dec 17, 2024
0bd2532
Updated gzrt to 0.9.1 version
mazzalab Dec 18, 2024
540bec9
corrected name clash control in stub as well
tm4zza Dec 18, 2024
3f2a52b
Merge branch 'nf-core:master' into gzrt
mazzalab Dec 19, 2024
6304d06
Merge branch 'nf-core:master' into gzrt
mazzalab Dec 19, 2024
67e5d21
updated biocontainers and singularity links
mazzalab Dec 19, 2024
2d58367
updated gzrt module
mazzalab Dec 19, 2024
960f26e
Fixed gzrt through named pipe
mazzalab Dec 19, 2024
6e53740
gzrt update snapshot
mazzalab Dec 19, 2024
902fb4f
updated tests for gzrt
mazzalab Dec 22, 2024
cf7605d
updated environment.yml
mazzalab Dec 22, 2024
22983bd
gzrt - updated snapshots
mazzalab Dec 22, 2024
4c771de
gzrt alpha - pre-release
mazzalab Dec 23, 2024
e87b963
Add args in command line - gzrt
mazzalab Dec 23, 2024
723b6cc
gzrt - update snapshots and test dataset
mazzalab Dec 24, 2024
1fd8f74
should have not change it
mazzalab Dec 24, 2024
bc082ab
Merge branch 'master' into gzrt
mazzalab Dec 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/nf-core/gzrt/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ channels:
- conda-forge
- bioconda
dependencies:
- "bioconda::gzrt=0.8"
- "bioconda::gzrt=0.9.1"
19 changes: 10 additions & 9 deletions modules/nf-core/gzrt/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ process GZRT {

conda "${moduleDir}/environment.yml"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/gzrt:0.8--he4a0461_0':
'biocontainers/gzrt:0.8--he4a0461_0' }"
'https://depot.galaxyproject.org/singularity/gzrt:0.9.1--h577a1d6_0':
'biocontainers/gzrt:0.9.1--h577a1d6_0' }"

input:
tuple val(meta), path(fastqgz)

output:
tuple val(meta), path("*_recovered.fastq.gz"), emit: fastqrecovered
path "versions.yml" , emit: versions
tuple val(meta), path("${prefix}.fastq.gz"), emit: recovered
path "versions.yml" , emit: versions

when:
task.ext.when == null || task.ext.when
Expand All @@ -22,10 +22,10 @@ process GZRT {
error "GZRT works with .gz files only."
}

def prefix = task.ext.prefix ?: "${meta.id}"
prefix = task.ext.prefix ?: "${meta.id}_recovered"
if ("${fastqgz}" == "${prefix}.fastq.gz") error "Input and output names are the same, set prefix in module configuration to disambiguate!"
GallVp marked this conversation as resolved.
Show resolved Hide resolved
"""
gzrecover -o ${prefix}_recovered.fastq ${fastqgz}
gzip ${prefix}_recovered.fastq
gzrecover -p ${fastqgz} | gzip > ${prefix}.fastq.gz

soft_line="${task.process}"
ver_line="gzrt: \$(gzrecover -V |& sed '1!d ; s/gzrecover //')"
Expand All @@ -36,9 +36,10 @@ process GZRT {
"""

stub:
def prefix = task.ext.prefix ?: "${meta.id}"
prefix = task.ext.prefix ?: "${meta.id}_recovered"
if ("${fastqgz}" == "${prefix}.fastq.gz") error "Input and output names are the same, set prefix in module configuration to disambiguate!"
"""
echo "" | gzip > ${prefix}_recovered.fastq.gz
echo "" | gzip > ${prefix}.fastq.gz

soft_line="${task.process}"
ver_line="gzrt: \$(gzrecover -V |& sed '1!d ; s/gzrecover //')"
Expand Down
4 changes: 2 additions & 2 deletions modules/nf-core/gzrt/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ input:
- edam: "http://edamontology.org/format_3989"

output:
- fastqrecovered:
- recovered:
- meta:
type: map
description: |
Groovy Map containing sample information
e.g. `[ id:'sample1', single_end:false ]`
- "*_recovered.fastq.gz":
- "${prefix}.fastq.gz":
type: file
description: Recovered FASTQ.gz file
pattern: "*.{gz}"
Expand Down
Loading