aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-10-17 14:37:26 -0500
committerFrederick Muriuki Muriithi2024-10-17 14:39:44 -0500
commite3a62548c816f5348e4d91a6328783a73d1ecbf0 (patch)
tree8968ab577f726c65bba40ef59eb3cdaa2790d07e
parent13024b6bd1e7a84abc0d6b7b4aafadff75064168 (diff)
downloadgn-uploader-e3a62548c816f5348e4d91a6328783a73d1ecbf0.tar.gz
Cleanup: Delete all extracted files after processing.
-rw-r--r--scripts/rqtl2/phenotypes_qc.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/rqtl2/phenotypes_qc.py b/scripts/rqtl2/phenotypes_qc.py
index b2b02ed..76ef7bf 100644
--- a/scripts/rqtl2/phenotypes_qc.py
+++ b/scripts/rqtl2/phenotypes_qc.py
@@ -1,5 +1,6 @@
"""Run quality control on phenotypes-specific files in the bundle."""
import sys
+import shutil
import tempfile
from pathlib import Path
from zipfile import ZipFile
@@ -167,6 +168,9 @@ def run_qc(# pylint: disable=[too-many-arguments]
# - Check the 3 checks above for phenose and phenonum values too
# qc_phenose_files(…)
# qc_phenonum_files(…)
+
+ # - Delete all extracted files
+ shutil.rmtree(extractiondir)
raise NotImplementedError("WIP!")