aboutsummaryrefslogtreecommitdiff
path: root/scripts/rqtl2
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-01-11 02:01:31 +0300
committerFrederick Muriuki Muriithi2024-01-11 02:01:31 +0300
commit242491b97183203a77b5b8634f6e8825c8b101fa (patch)
tree2d0eb489e534b2721e8939ec99f87dd626883a30 /scripts/rqtl2
parenta4313e2cc0f8548946186838a4ce67e358e46bbe (diff)
downloadgn-uploader-242491b97183203a77b5b8634f6e8825c8b101fa.tar.gz
CLI: Require datasetid as an argument.
Diffstat (limited to 'scripts/rqtl2')
-rw-r--r--scripts/rqtl2/install_genotypes.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/rqtl2/install_genotypes.py b/scripts/rqtl2/install_genotypes.py
index 6ae3788..3b9e987 100644
--- a/scripts/rqtl2/install_genotypes.py
+++ b/scripts/rqtl2/install_genotypes.py
@@ -121,6 +121,7 @@ def cross_reference_genotypes(dbconn: mdb.Connection,
def install_genotypes(dbconn: mdb.Connection,
speciesid: int,
populationid: int,
+ datasetid: int,
rqtl2bundle: Path) -> int:
"""Load any existing genotypes into the database."""
count = 0
@@ -190,6 +191,8 @@ if __name__ == "__main__":
help="Species to which bundle relates.")
parser.add_argument("populationid",
help="Population to group data under")
+ parser.add_argument("datasetid",
+ help="The dataset to which the data belongs.")
parser.add_argument("rqtl2bundle",
help="Path to R/qtl2 bundle zip file.",
type=Path)
@@ -226,6 +229,7 @@ if __name__ == "__main__":
return install_genotypes(dbconn,
args.speciesid,
args.populationid,
+ args.datasetid,
args.rqtl2bundle)
sys.exit(main())