about summary refs log tree commit diff
diff options
context:
space:
mode:
authorjgart2024-07-31 14:39:01 -0500
committerjgart2024-07-31 14:39:51 -0500
commit3c7e6101384e78232a62cd471ac8fd83c8fca3f5 (patch)
tree15e4233e591140d30b854f6844e22585254bd162
parentfc66a23d84935889ccf2c030e860d6ce7ab9bcb7 (diff)
downloadguix-bioinformatics-3c7e6101384e78232a62cd471ac8fd83c8fca3f5.tar.gz
mouse-longevity-app: extract the pubmed archive in the package
-rw-r--r--gn/packages/genecup.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/gn/packages/genecup.scm b/gn/packages/genecup.scm
index 844e10c..d0689e6 100644
--- a/gn/packages/genecup.scm
+++ b/gn/packages/genecup.scm
@@ -7,7 +7,9 @@
   #:use-module (guix git-download)
   #:use-module (guix build-system python)
   #:use-module (gnu packages admin)
+  #:use-module (gnu packages base)
   #:use-module (gnu packages bioinformatics)
+  #:use-module (gnu packages compression)
   #:use-module (gnu packages javascript)
   #:use-module (gnu packages machine-learning)
   #:use-module (gnu packages python)
@@ -179,6 +181,10 @@ if __name__ == '__main__':
                  (("https.*1.12.9/umd/popper.min.js.*\\\">") "/static/popper.min.js\">"))
                (substitute* "ratspub.py"
                  (("hostname") (string-append inetutils "/bin/hostname"))))))
+         (add-after 'unpack 'extract-pubmed-archive
+           (lambda _
+             (invoke "gzip" "-d" "minipubmed.tgz")
+             (invoke "tar" "xvf" "minipubmed.tar")))
          (replace 'install
            (lambda* (#:key outputs #:allow-other-keys)
              (let ((out (assoc-ref outputs "out")))
@@ -230,6 +236,8 @@ if __name__ == '__main__':
     (inputs
      `(("edirect" ,edirect)
        ("inetutils" ,inetutils)
+       ("gzip" ,gzip)
+       ("tar" ,tar)
        ("python-bcrypt" ,python-bcrypt)
        ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)
        ("python-keras" ,python-keras-no-tests)