about summary refs log tree commit diff
path: root/gn/data
diff options
context:
space:
mode:
authorPjotr Prins2025-08-02 13:31:43 +0200
committerPjotr Prins2025-08-02 13:31:43 +0200
commit6e1e275813fb55c9a53e37b004262f3070ef42b3 (patch)
tree104712bdd7b9e490dfc02ff2efa1ab6758c5ee74 /gn/data
parentf5ec159d3c14bd12f410ca2fa64560121308f25b (diff)
downloadgn-guile-6e1e275813fb55c9a53e37b004262f3070ef42b3.tar.gz
API: endpoint gets trait values for BXD in GEMMA format
Diffstat (limited to 'gn/data')
-rw-r--r--gn/data/dataset.scm26
1 files changed, 0 insertions, 26 deletions
diff --git a/gn/data/dataset.scm b/gn/data/dataset.scm
index f099171..b552b21 100644
--- a/gn/data/dataset.scm
+++ b/gn/data/dataset.scm
@@ -18,7 +18,6 @@
             get-bxd-publish-list
             get-bxd-publish-values-list
             get-bxd-publish-name-value-dict
-            write-pheno-file
             ))
 
 (define (get-dataset db probesetfreeze-id)
@@ -71,28 +70,3 @@
                                                `(,(assoc-ref r "Name") . ,(assoc-ref r "value"))
                                                ) '())))
            )))))
-
-
-(define (write-pheno-file fn traits)
-  (define bxd-inds (geno-inds-bxd (pk "BXD.json")))
-  (assert (= 235 (length bxd-inds)))
-  (display bxd-inds)
-  (call-with-output-file fn
-    (lambda (port)
-      (for-each
-       (lambda (ind)
-         (begin
-           (let* [(value (assoc-ref traits ind))
-                  (outvalue (if value
-                                value
-                                "NA"))]
-             (if value
-                 (begin
-                   (format #t "~s ~s" ind outvalue)
-                   (newline)))
-             (display outvalue port)
-             (newline port))))
-       bxd-inds)
-      (close port)
-      ))
-)