unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: guix-devel@gnu.org
Subject: [PATCH 02/16] gnu: Add hisat2.
Date: Tue, 17 Jan 2017 15:11:27 +0100	[thread overview]
Message-ID: <20170117141141.11694-3-rekado@elephly.net> (raw)
In-Reply-To: <20170117141141.11694-1-rekado@elephly.net>

* gnu/packages/bioinformatics.scm (hisat2): New variable.
---
 gnu/packages/bioinformatics.scm | 63 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index b14b7d4ca..b3aedec63 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -2722,6 +2722,69 @@ several alignment strategies enable effective alignment of RNA-seq reads, in
 particular, reads spanning multiple exons.")
     (license license:gpl3+)))
 
+(define-public hisat2
+  (package
+    (name "hisat2")
+    (version "2.0.5")
+    (source
+     (origin
+       (method url-fetch)
+       ;; FIXME: a better source URL is
+       ;; (string-append "ftp://ftp.ccb.jhu.edu/pub/infphilo/hisat2"
+       ;;                "/downloads/hisat2-" version "-source.zip")
+       ;; with hash "0lywnr8kijwsc2aw10dwxic0n0yvip6fl3rjlvc8zzwahamy4x7g"
+       ;; but it is currently unavailable.
+       (uri "https://github.com/infphilo/hisat2/archive/cba6e8cb.tar.gz")
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1mf2hdsyv7cd97xm9mp9a4qws02yrj95y6w6f6cdwnq0klp81r50"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f                      ; no check target
+       #:make-flags (list "CC=gcc" "CXX=g++" "allall")
+       #:modules ((guix build gnu-build-system)
+                  (guix build utils)
+                  (srfi srfi-26))
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'make-deterministic
+           (lambda _
+             (substitute* "Makefile"
+               (("`date`") "0"))
+             #t))
+         (delete 'configure)
+         (replace 'install
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (bin (string-append out "/bin/"))
+                    (doc (string-append out "/share/doc/hisat2/")))
+               (for-each
+                (cut install-file <> bin)
+                (find-files "."
+                            "hisat2(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))
+               (mkdir-p doc)
+               (install-file "doc/manual.inc.html" doc))
+             #t)))))
+    (native-inputs
+     `(("unzip" ,unzip)                 ; needed for archive from ftp
+       ("perl" ,perl)
+       ("pandoc" ,ghc-pandoc)))         ; for documentation
+    (home-page "http://ccb.jhu.edu/software/hisat2/index.shtml")
+    (synopsis "Graph-based alignment of genomic sequencing reads")
+    (description "HISAT2 is a fast and sensitive alignment program for mapping
+next-generation sequencing reads (both DNA and RNA) to a population of human
+genomes (as well as to a single reference genome).  In addition to using one
+global @dfn{graph FM} (GFM) index that represents a population of human
+genomes, HISAT2 uses a large set of small GFM indexes that collectively cover
+the whole genome.  These small indexes, combined with several alignment
+strategies, enable rapid and accurate alignment of sequencing reads.  This new
+indexing scheme is called a @dfn{Hierarchical Graph FM index} (HGFM).")
+    ;; HISAT2 contains files from Bowtie2, which is released under
+    ;; GPLv2 or later.  The HISAT2 source files are released under
+    ;; GPLv3 or later.
+    (license license:gpl3+)))
+
 (define-public hmmer
   (package
     (name "hmmer")
-- 
2.11.0

  parent reply	other threads:[~2017-01-17 14:12 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-17 14:11 [PATCH 00/16] Bioinfo stuff Ricardo Wurmus
2017-01-17 14:11 ` [PATCH 01/16] gnu: Add python-argparse Ricardo Wurmus
2017-01-17 14:49   ` Hartmut Goebel
2017-01-17 15:26     ` Ricardo Wurmus
2017-01-17 18:48       ` Alex Kost
2017-01-17 18:47   ` Alex Kost
2017-01-17 14:11 ` Ricardo Wurmus [this message]
2017-01-17 20:36   ` [PATCH 02/16] gnu: Add hisat2 Leo Famulari
2017-01-17 20:49     ` Ricardo Wurmus
2017-01-17 14:11 ` [PATCH 03/16] gnu: Add ribodiff Ricardo Wurmus
2017-01-17 14:11 ` [PATCH 04/16] gnu: Add r-compquadform Ricardo Wurmus
2017-01-17 14:11 ` [PATCH 05/16] gnu: Add r-seqminer Ricardo Wurmus
2017-01-17 14:11 ` [PATCH 06/16] gnu: Add r-raremetals2 Ricardo Wurmus
2017-01-20 13:16   ` Ludovic Courtès
2017-01-20 14:18     ` Ricardo Wurmus
2017-01-20 21:26       ` Ludovic Courtès
2017-01-17 14:11 ` [PATCH 07/16] gnu: Add r-maldiquant Ricardo Wurmus
2017-01-17 14:11 ` [PATCH 08/16] gnu: Add r-protgenerics Ricardo Wurmus
2017-01-17 14:11 ` [PATCH 09/16] gnu: Add r-mzr Ricardo Wurmus
2017-01-17 14:11 ` [PATCH 10/16] gnu: Add r-affyio Ricardo Wurmus
2017-01-17 14:11 ` [PATCH 11/16] gnu: Add r-affy Ricardo Wurmus
2017-01-17 14:11 ` [PATCH 12/16] gnu: Add r-vsn Ricardo Wurmus
2017-01-17 14:11 ` [PATCH 13/16] gnu: Add r-mzid Ricardo Wurmus
2017-01-17 14:11 ` [PATCH 14/16] gnu: Add r-pcamethods Ricardo Wurmus
2017-01-17 14:11 ` [PATCH 15/16] gnu: Add r-msnbase Ricardo Wurmus
2017-01-20 13:17   ` Ludovic Courtès
2017-01-20 13:18   ` Ludovic Courtès
2017-01-17 14:11 ` [PATCH 16/16] gnu: Add r-msnid Ricardo Wurmus

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=20170117141141.11694-3-rekado@elephly.net \
    --to=rekado@elephly.net \
    --cc=guix-devel@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).