aboutsummaryrefslogtreecommitdiff
path: root/gn/packages/genenetwork.scm
diff options
context:
space:
mode:
authorpjotrp2016-02-25 09:29:13 +0000
committerpjotrp2016-02-25 09:29:13 +0000
commit0660647c4bf43114a087337fa11131313afc7b9a (patch)
treeef3257fa66d63da848b5d1e8c312151e9f0d8718 /gn/packages/genenetwork.scm
parent362952ac8741a7f44b8176de3e7b15fbb8fae0b1 (diff)
downloadguix-bioinformatics-0660647c4bf43114a087337fa11131313afc7b9a.tar.gz
Small GN database
Diffstat (limited to 'gn/packages/genenetwork.scm')
-rw-r--r--gn/packages/genenetwork.scm34
1 files changed, 33 insertions, 1 deletions
diff --git a/gn/packages/genenetwork.scm b/gn/packages/genenetwork.scm
index 2f755a6..dea6eae 100644
--- a/gn/packages/genenetwork.scm
+++ b/gn/packages/genenetwork.scm
@@ -178,7 +178,7 @@
("python2-pandas" ,python2-pandas)
("python2-parallel" ,python2-parallel)
("python2-passlib" ,python2-passlib)
- ("python2-piddle" ,python2-piddle)
+ ("python2-piddle-gn2" ,python2-piddle-gn2)
("python2-redis" ,python2-redis)
("python2-requests" ,python2-requests)
("python2-rpy2" ,python2-rpy2)
@@ -202,3 +202,35 @@
;; ./pre-inst-env guix download http://files.genenetwork.org/raw_database/db_webqtl_s.zip
;; 0sscjh0wml2lx0mb43vf4chg9gpbfi7abpjxb34n3kyny9ll557x
+
+(define-public genenetwork2-database-small
+ (let ((md5 "93e745e9c"))
+ (package
+ (name "genenetwork2-database-small")
+ (version "1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri "http://files.genenetwork.org/raw_database/db_webqtl_s.zip")
+ (file-name (string-append name "-" md5))
+ (sha256
+ (base32 "0sscjh0wml2lx0mb43vf4chg9gpbfi7abpjxb34n3kyny9ll557x"))))
+ (build-system trivial-build-system)
+ (native-inputs `(("unzip" ,unzip)
+ ("source" ,source)))
+
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder (begin
+ (use-modules (guix build utils))
+ (let ((source (assoc-ref %build-inputs "source"))
+ (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip"))
+ )
+ (and (mkdir "db")
+ (zero? (system* unzip source "-d" "db"))
+ (chdir "db"))))))
+ (home-page "http://genenetwork.org/")
+ (synopsis "Small database to run on genenetwork")
+ (description "Genenetwork installation + database.")
+ (license license:agpl3+))))
+