diff options
author | Pjotr Prins | 2023-08-06 10:08:36 +0200 |
---|---|---|
committer | Pjotr Prins | 2023-08-06 10:08:36 +0200 |
commit | 0ce6478df5680a3e54a002a9eb70543e06422bf5 (patch) | |
tree | 724af5f00c39992c689bc188f22448bfeb0aea66 | |
parent | 99a7a89619ca3c511b8e2cd5550482758eba8f29 (diff) | |
download | genenetwork3-0ce6478df5680a3e54a002a9eb70543e06422bf5.tar.gz |
Added commentgn-guile
-rwxr-xr-x | gn3-guile/web/webserver.scm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gn3-guile/web/webserver.scm b/gn3-guile/web/webserver.scm index a04fd37..ce754d8 100755 --- a/gn3-guile/web/webserver.scm +++ b/gn3-guile/web/webserver.scm @@ -27,6 +27,8 @@ (web uri) (fibers web server)) +;; basically lifted from https://lispdreams.wordpress.com/2016/04/08/lisp-memoization-techniques/ + (define (memoize f) "Simple memoize just uses alists at this point and does not expire" (let ((result-table '())) @@ -323,6 +325,11 @@ SELECT ?species ?p ?o WHERE { (string-replace-substring str " " "_") ) +(define (get-expanded-taxon id) + "Get information on a specific species, e.g. mouse" + #f + ) + (define (get-expanded-species) "Here we add information related to each species" (map (lambda (rec) |