Skip to content

Commit

Permalink
update sratools/fasterqdump to handle 10X data (#3336)
Browse files Browse the repository at this point in the history
CHORES: update sratools/fasterqdump

Co-authored-by: Harshil Patel <[email protected]>
  • Loading branch information
maxulysse and drpatelh authored Apr 26, 2023
1 parent 443d681 commit 10cb20f
Showing 1 changed file with 2 additions and 7 deletions.
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.
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

0 comments on commit 10cb20f

Please sign in to comment.