diff options
author | Pjotr Prins | 2023-11-21 11:26:07 +0100 |
---|---|---|
committer | Pjotr Prins | 2023-11-21 11:26:07 +0100 |
commit | e4cb959730ed5d89c8f5e96de2ddbd405fcf2cc9 (patch) | |
tree | e8475ebb93605cd81edd6b3d12fc4a80ca24093e /scripts/precompute | |
parent | f65cada4f70d7449f38f1fef5164d7c52283a0e9 (diff) | |
download | gn-guile-e4cb959730ed5d89c8f5e96de2ddbd405fcf2cc9.tar.gz |
Adding GEMMA
Diffstat (limited to 'scripts/precompute')
-rwxr-xr-x | scripts/precompute/precompute-hits.scm | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/scripts/precompute/precompute-hits.scm b/scripts/precompute/precompute-hits.scm index d8170db..0bce8d7 100755 --- a/scripts/precompute/precompute-hits.scm +++ b/scripts/precompute/precompute-hits.scm @@ -10,6 +10,7 @@ (gn data hits) (gn data strains) (gn util convert) + (gn runner gemma) (rnrs base) (ice-9 match) (srfi srfi-1) @@ -54,7 +55,7 @@ ) (define (run-precompute db prev-id) - (let* [(hit (get-next-hit-for-precompute db prev-id)) + (let* [(hit (get-precompute-hit db prev-id)) (data-id (assoc-ref hit "DataId")) (data-id-str (int-to-string data-id)) (probesetfreeze-id (assoc-ref hit "ProbeSetFreezeId")) @@ -81,16 +82,14 @@ '() traits)) - (if (= 0 (length non-bxd)) + ;; (if (= 0 (length non-bxd)) + (if (eq? non-bxd '()) (begin - (if name - (display (string-append "WE HAVE OUR BXD DATASET " name " and trait " trait-name " for precompute!\n"))) - (display data-id) - (display traits) - (newline) - - )) - (run-precompute db data-id) + (set-precompute-hit-status! db data-id-str "GEMMA-START") + (run-gemma data-id name trait-name traits))) + ;; disable precompute if non-bxd, for now, so it won't try again + (set-precompute-hit-status! db data-id-str "NON-BXD") + ;;(run-precompute db data-id) )) (run-precompute db 0) ))) |