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 sratools/fasterqdump to handle 10X data #3336

Merged
merged 2 commits into from
Apr 26, 2023
Merged
Changes from all commits
Commits
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
9 changes: 2 additions & 7 deletions modules/nf-core/sratools/fasterqdump/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ process SRATOOLS_FASTERQDUMP {
path ncbi_settings

output:
tuple val(meta), path(fastq), emit: reads
path "versions.yml" , emit: versions
tuple val(meta), path('*.fastq.gz'), emit: reads
path "versions.yml" , emit: versions

when:
task.ext.when == null || task.ext.when
Expand All @@ -22,11 +22,6 @@ process SRATOOLS_FASTERQDUMP {
def args = task.ext.args ?: ''
def args2 = task.ext.args2 ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"

// WARNING: Paired-end data extracted by fasterq-dump (--split-3 the default)
// always creates *_1.fastq *_2.fastq files but sometimes also
// an additional *.fastq file for unpaired reads which we ignore here.
pinin4fjords marked this conversation as resolved.
Show resolved Hide resolved
fastq = meta.single_end ? '*.fastq.gz' : '*_{1,2}.fastq.gz'
def outfile = meta.single_end ? "${prefix}.fastq" : prefix
"""
export NCBI_SETTINGS="\$PWD/${ncbi_settings}"
Expand Down