about summary refs log tree commit diff
path: root/guix.scm
diff options
context:
space:
mode:
authorPjotr Prins2026-04-05 11:01:21 +0200
committerPjotr Prins2026-04-05 11:01:21 +0200
commit45be8b7f1e4bc046fd2e5b1a6bdf4c6db4057788 (patch)
tree96c20267b28a546defc98509bdae5a1caee0e90c /guix.scm
parent867e2a6c1d99f503ef388c2417bfffaa83de7754 (diff)
downloadgenecup-45be8b7f1e4bc046fd2e5b1a6bdf4c6db4057788.tar.gz
Use the short fetch-pubmed -path /path/to/archive → xfetch -db pubmed replacement instead!
Diffstat (limited to 'guix.scm')
-rw-r--r--guix.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/guix.scm b/guix.scm
index a67e737..905f1ac 100644
--- a/guix.scm
+++ b/guix.scm
@@ -116,8 +116,8 @@ detection tokenizer (tab format), used by NLTK's sent_tokenize function.")
                                         "/share/minipubmed")))
                 ;; Generate test.xml from pmid.list
                 (with-directory-excursion "minipubmed"
-                  ;; Generate test.xml by looking up PMIDs in the local archive
-                  (system "for uid in $(cat pmid.list); do p=$(printf '%.2s/%.2s/%.2s' \"$uid\" \"${uid#??}\" \"${uid#????}\"); f=PubMed/Archive/${p}/${uid}.xml.gz; [ -f \"$f\" ] && zcat \"$f\"; done > test.xml"))
+                  ;; Generate test.xml from pmid.list using xfetch
+                  (system "cat pmid.list | xfetch -db pubmed > test.xml"))
                 (mkdir-p out)
                 (copy-recursively "minipubmed" out)))))))
     (inputs (list edirect-25))