Skip to content

Commit

Permalink
Merge pull request #2104 from merenlab/sra_download_disk_quota
Browse files Browse the repository at this point in the history
Snakemake SRA_download workflow writes files in lieu of written fastq
  • Loading branch information
meren authored Aug 15, 2023
2 parents 7fd9d28 + 0e78fee commit c3afbc0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions anvio/workflows/sra_download/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ rule fasterq_dump:
run:
shell("fasterq-dump {params.SRA_INPUT_DIR} -t FASTERQDUMP_TEMP --outdir {params.OUTPUT_DIR} --split-files --verbose --progress --threads {threads} >> {log} 2>&1")

# Check if fasterq-dump encountered a Disk quota exceeded error
error_message = "Disk quota exceeded"
log_path = str(log)
with open(log_path, "r") as log_file:
log_contents = log_file.read()
if error_message in log_contents:
raise Exception("fasterq-dump encountered a Disk quota exceeded when processing {wildcards.accession}")


rule pigz:
"""Compress FASTQ files using pigz in parallel!
Expand Down

0 comments on commit c3afbc0

Please sign in to comment.