Skip to content

Commit

Permalink
added writing to log
Browse files Browse the repository at this point in the history
  • Loading branch information
erinyoung committed Jan 16, 2025
1 parent 9f00e5c commit 6c07173
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/local/ena.nf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ process ENA_DOWNLOAD {

output:
tuple val(SRR), file("reads/${SRR}_{1,2}.fastq.gz"), emit: fastq
path "logs/${task.process}/*.log", emit: log
path "logs/*/*.log", emit: log
path "versions.yml", emit: versions

when:
Expand All @@ -19,7 +19,10 @@ process ENA_DOWNLOAD {
mkdir -p reads logs/${task.process}
log_file=logs/${task.process}/${SRR}.${workflow.sessionId}.log
enaDataGet -f fastq ${SRR}
enaDataGet \
-f fastq \
${SRR} \
| tee -a \$log_file
mv */*fastq.gz reads/.
Expand Down

0 comments on commit 6c07173

Please sign in to comment.