diff options
author | Pjotr Prins | 2023-11-18 11:33:24 +0100 |
---|---|---|
committer | Pjotr Prins | 2023-11-18 11:33:24 +0100 |
commit | 06f941636a99904671c89916e17f28de4b2cd07e (patch) | |
tree | f9e8e84312bf17a8369af9843cb62b4b285e6285 /gn/data | |
parent | 71c8e03b77dc094567c3b522909d7aa6995585f4 (diff) | |
download | gn-guile-06f941636a99904671c89916e17f28de4b2cd07e.tar.gz |
Reorganize DB handler and fetch first dataset
Diffstat (limited to 'gn/data')
-rw-r--r-- | gn/data/hits.scm | 15 | ||||
-rw-r--r-- | gn/data/strains.scm | 5 |
2 files changed, 18 insertions, 2 deletions
diff --git a/gn/data/hits.scm b/gn/data/hits.scm new file mode 100644 index 0000000..91be81f --- /dev/null +++ b/gn/data/hits.scm @@ -0,0 +1,15 @@ +(define-module (gn data hits) + #:use-module (json) + #:use-module (ice-9 match) + #:use-module (ice-9 format) + #:use-module (ice-9 iconv) + #:use-module (ice-9 receive) + #:use-module (ice-9 string-fun) + ;; #:use-module (gn db sparql) + #:use-module (dbi dbi) + #:use-module (gn db mysql) + #:use-module (gn data group) + #:use-module (web gn-uri) + + #:export ( + )) diff --git a/gn/data/strains.scm b/gn/data/strains.scm index b3e6744..241ecda 100644 --- a/gn/data/strains.scm +++ b/gn/data/strains.scm @@ -17,9 +17,10 @@ )) (define* (strain-id-names inbred-set #:key (map? #f)) - "Return assoc list of tuples of strain id+names, e.g. - + "Return assoc list of tuples of strain id+names: ((4 . BXD1) (5 . BXD2) (6 . BXD5) (7 . BXD6)... + +map? will say whether the strains/individuals are used for mapping. " (call-with-db (lambda (db) |