diff options
author | Frederick Muriuki Muriithi | 2024-10-17 14:19:01 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-10-17 14:39:42 -0500 |
commit | 35b8a52071390bdce17453cd6b197b18b349b5e9 (patch) | |
tree | 10e3744cfe8b94a9e4db87f5beffe1a0259117b6 /scripts | |
parent | 0f434659f79da67d3d440c5fb0cb9ea8a1ec5cbd (diff) | |
download | gn-uploader-35b8a52071390bdce17453cd6b197b18b349b5e9.tar.gz |
Pass new arguments to QC function.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/rqtl2/phenotypes_qc.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/scripts/rqtl2/phenotypes_qc.py b/scripts/rqtl2/phenotypes_qc.py index f602681..438d4da 100644 --- a/scripts/rqtl2/phenotypes_qc.py +++ b/scripts/rqtl2/phenotypes_qc.py @@ -98,6 +98,14 @@ def extract_bundle(bundle: Path, workdir: Path) -> tuple[Path, tuple[Path, ...]] extractiondir = workdir.joinpath( f"{sha256_digest_over_file(bundle)}_phenotype_qc_{bundle.name}") return extractiondir, rqtl2.extract(zfile, extractiondir) +def run_qc(# pylint: disable=[too-many-arguments] + dbconn: mdb.Connection, + phenobundle: Path, + workingdir: Path, + speciesid: int, + populationid: int, + logger: Logger +) -> int: """Run quality control checks on the bundle.""" results = check_for_averages_files( **check_for_mandatory_pheno_keys( @@ -141,8 +149,12 @@ if __name__ == "__main__": main = build_main( cli_args(), - lambda dbconn, args: run_qc(dbconn, args.rqtl2bundle, _logger), + lambda dbconn, args: run_qc(dbconn, + args.rqtl2bundle, + args.working_dir, + args.speciesid, + args.populationid, + _logger), _logger, "DEBUG") sys.exit(main()) - |