diff options
author | Frederick Muriuki Muriithi | 2024-10-17 14:37:26 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-10-17 14:39:44 -0500 |
commit | e3a62548c816f5348e4d91a6328783a73d1ecbf0 (patch) | |
tree | 8968ab577f726c65bba40ef59eb3cdaa2790d07e | |
parent | 13024b6bd1e7a84abc0d6b7b4aafadff75064168 (diff) | |
download | gn-uploader-e3a62548c816f5348e4d91a6328783a73d1ecbf0.tar.gz |
Cleanup: Delete all extracted files after processing.
-rw-r--r-- | scripts/rqtl2/phenotypes_qc.py | 4 |
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!") |