diff options
author | Frederick Muriuki Muriithi | 2024-10-17 14:15:03 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-10-17 14:39:41 -0500 |
commit | db196d5ea2dd2ffbb6d9ff4b9fcc5dd2b2d66678 (patch) | |
tree | e85ecfd9d2122c1f9fb7623674a778a21b3b32d0 /scripts | |
parent | 427f73fcc3435b20cc5fb8b70fac16f251bbac3d (diff) | |
download | gn-uploader-db196d5ea2dd2ffbb6d9ff4b9fcc5dd2b2d66678.tar.gz |
Add the working directory argument to the script.
Add a `--working-dir` argument to allow passing a directory where the
script process the files within. If not provided, it defaults to a
directory within the systems temporary directory.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/rqtl2/phenotypes_qc.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/rqtl2/phenotypes_qc.py b/scripts/rqtl2/phenotypes_qc.py index be57513..9d58137 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 tempfile from pathlib import Path from argparse import ArgumentParser from zipfile import ZipFile @@ -128,6 +129,12 @@ if __name__ == "__main__": program="PhenotypesQC", description=( "Perform Quality Control checks on a phenotypes bundle file"))) + parser.add_argument( + "--working-dir", + default=f"{tempfile.gettempdir()}/phenotypes_qc", + help=("The directory where this script will put its intermediate " + "files."), + type=Path) return parser.parse_args() _logger = getLogger("phenotypes_qc") |