all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Raoul Jean Piere Bonnal <science.raoul.bonnal@gmail.com>
To: 60726@debbugs.gnu.org
Cc: Raoul Jean Piere Bonnal <science.raoul.bonnal@gmail.com>
Subject: [bug#60726] [PATCH] gnu: Add Eagle.
Date: Sat,  7 Jan 2023 15:39:20 +0100	[thread overview]
Message-ID: <46f5cd81bff5fdde4a3a086c76cd2e2b41bfac36.1673102355.git.science.raoul.bonnal@gmail.com> (raw)

---
 gnu/packages/bioinformatics.scm | 57 +++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 6e909773a7..3b9c135c2e 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -3547,6 +3547,63 @@ (define-public discrover
 of nucleic acid binding proteins.")
     (license license:gpl3+)))
 
+(define-public eagle
+  (let ((commit "b8b3ae205d5f9faf99f231fe7d02ae51eaca2f8b")
+        (revision "1"))
+    (package
+      (name "eagle")
+      (version "2.4.1")
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/poruloh/Eagle")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "1pylmn3yqimq85fnqw7m702zqp4bw4bw60b2pf0xm2yh1w9grzss"))
+          (modules '((guix build utils)))
+          (snippet
+           '(begin
+              (substitute* "src/Makefile"
+                ;; replace BUILD_HOST and BUILD_TIME for deterministic build
+                (("BLAS_DIR = .*") "")
+                (("BOOST_INSTALL_DIR = .*") "")
+                (("HTSLIB_DIR = .*") "")
+                (("ZLIB_STATIC_DIR = .*") "")
+                (("LIBSTDCXX_STATIC_DIR = .*") "")
+                (("GLIBC_STATIC_DIR = .*") ""))))))
+      (properties `((upstream-name . "Eagle")))
+      (build-system gnu-build-system)
+      (arguments
+       `(#:tests? #f
+         #:parallel-build? #f
+         #:make-flags ,#~(list (string-append "-C" "src/"))
+         #:phases
+         (modify-phases %standard-phases
+           (delete 'configure)
+           (replace 'install
+             (lambda* (#:key outputs #:allow-other-keys)
+               ;; The package's Makefile doesn't provide and "install"
+               ;; rule so di it by ourselves.
+               (let ((bin (string-append (assoc-ref outputs "out")
+                                         "/bin")))
+                 (install-file "src/eagle" bin)))))))
+      (inputs
+       (list boost
+             openblas
+             htslib))
+      (home-page "https://alkesgroup.broadinstitute.org/Eagle/")
+      (synopsis "Statistical estimation of haplotypes from genotype data")
+      (description "Eagle estimates haplotype phase either within a genotyped
+cohort or using a phased reference panel.  It uses a very fast HMM-based algorithm
+that improves speed and accuracy over existing methods via two key ideas: a new data
+structure based on the positional Burrows-Wheeler transform and a rapid search
+algorithm that explores only the most relevant paths through the HMM.  It supports
+phasing sequence data with or without a reference and also supports phasing chrX.")
+      (license license:gpl3+))))
+
 (define-public eigensoft
   (package
     (name "eigensoft")

base-commit: 24ad9a9a48ca4f51505912224217a2a9688c7fa0
-- 
2.38.1





                 reply	other threads:[~2023-01-11 13:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46f5cd81bff5fdde4a3a086c76cd2e2b41bfac36.1673102355.git.science.raoul.bonnal@gmail.com \
    --to=science.raoul.bonnal@gmail.com \
    --cc=60726@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.