aboutsummaryrefslogtreecommitdiff
path: root/scripts/precompute
diff options
context:
space:
mode:
authorPjotr Prins2024-07-16 16:40:41 +0200
committerPjotr Prins2024-07-16 16:40:41 +0200
commit4b2af17b1c131c7ca5c150ece88406fcf64d9fc6 (patch)
tree3d3b46c5f31fe2a85778c0d80ffa582b958f7c89 /scripts/precompute
parentb03f0ada0c3e64c16eeba4278d0b8a4470a26b10 (diff)
downloadgn-guile-4b2af17b1c131c7ca5c150ece88406fcf64d9fc6.tar.gz
run-gemma: show version/help
Diffstat (limited to 'scripts/precompute')
-rwxr-xr-xscripts/precompute/run-gemma.scm19
1 files changed, 12 insertions, 7 deletions
diff --git a/scripts/precompute/run-gemma.scm b/scripts/precompute/run-gemma.scm
index b0db622..00cc68d 100755
--- a/scripts/precompute/run-gemma.scm
+++ b/scripts/precompute/run-gemma.scm
@@ -32,14 +32,19 @@ and with some extra paths (for gemma)
(option-spec '( (version (single-char #\v) (value #f))
(help (single-char #\h) (value #f))))
(options (getopt-long args option-spec))
+ (show-version (option-ref options 'version #f))
(help-wanted (option-ref options 'help #f))]
- (display "RUNNING")
+ (if show-version
+ (begin
+ (display "run-gemma version 1.0\n")
+ (exit)))
(if help-wanted
- (format #t "list-traits-to-compute writes JSON traits files from the GN DB
-Usage: list-traits-to-compute [options...]
- -h, --help Display this help
-"))
- (let [(trait-id "115475")
+ (format #t "run-gemma
+Usage: run-gemma [options...] filename(s)
+ -v --version Display version
+ -h --help Display this help
+")
+ (let [(trait-id "115475")
(trait-fn "115475.json")
]
@@ -55,4 +60,4 @@ Usage: list-traits-to-compute [options...]
]
(write-pheno-file pheno-fn traits)
(invoke-gemma-wrapper-loco dataset-name trait-name trait-fn pheno-fn "BXD.8_geno.txt.gz")
- ))))))
+ )))))))