Skip to content

Commit

Permalink
use accession in pigz compression
Browse files Browse the repository at this point in the history
  • Loading branch information
rpetit3 committed Feb 8, 2023
1 parent 9bafcfd commit 98d2310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastq-dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def sra_download(accession, outdir, cpus=1, max_attempts=10):
if outcome == SRA_FAILED:
return outcome
else:
execute(f"pigz --force -p {cpus} -n --fast *.fastq", directory=outdir)
execute(f"pigz --force -p {cpus} -n {accession}*.fastq", directory=outdir)

if os.path.exists(f"{outdir}/{accession}_2.fastq.gz"):
# Paired end
Expand Down

0 comments on commit 98d2310

Please sign in to comment.