aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/bioinformatics.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2015-03-05 10:24:12 +0100
committerRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2015-03-10 11:46:49 +0100
commit15a3c3d4f1e45f40f7a40722726c41b902ddb316 (patch)
tree5f3256c8a4fd4924a1a6d06787e8e5fd5cafc067 /gnu/packages/bioinformatics.scm
parenta79112079e7f233f24a5cb09e03bbfff6e8b9a9b (diff)
downloadpatches-15a3c3d4f1e45f40f7a40722726c41b902ddb316.tar
patches-15a3c3d4f1e45f40f7a40722726c41b902ddb316.tar.gz
gnu: Add htsjdk.
* gnu/packages/bioinformatics.scm (htsjdk): New variable.
Diffstat (limited to 'gnu/packages/bioinformatics.scm')
-rw-r--r--gnu/packages/bioinformatics.scm46
1 files changed, 46 insertions, 0 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 8ed871003a..d3b891996d 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -27,6 +27,7 @@
#:use-module (gnu packages)
#:use-module (gnu packages base)
#:use-module (gnu packages compression)
+ #:use-module (gnu packages java)
#:use-module (gnu packages ncurses)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
@@ -446,6 +447,51 @@ particular, reads spanning multiple exons.")
from high-throughput sequencing assays.")
(license license:gpl3+)))
+(define-public htsjdk
+ (package
+ (name "htsjdk")
+ (version "1.129")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://github.com/samtools/htsjdk/archive/"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0asdk9b8jx2ij7yd6apg9qx03li8q7z3ml0qy2r2qczkra79y6fw"))
+ (modules '((guix build utils)))
+ ;; remove build dependency on git
+ (snippet '(substitute* "build.xml"
+ (("failifexecutionfails=\"true\"")
+ "failifexecutionfails=\"false\"")))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:modules ((srfi srfi-1)
+ (guix build gnu-build-system)
+ (guix build utils))
+ #:phases (alist-replace
+ 'build
+ (lambda _
+ (setenv "JAVA_HOME" (assoc-ref %build-inputs "jdk"))
+ (zero? (system* "ant" "all"
+ (string-append "-Ddist="
+ (assoc-ref %outputs "out")
+ "/share/java/htsjdk/"))))
+ (fold alist-delete %standard-phases
+ '(configure install check)))))
+ (native-inputs
+ `(("ant" ,ant)
+ ("jdk" ,icedtea6 "jdk")))
+ (home-page "http://samtools.github.io/htsjdk/")
+ (synopsis "Java API for high-throughput sequencing data (HTS) formats")
+ (description
+ "HTSJDK is an implementation of a unified Java library for accessing
+common file formats, such as SAM and VCF, used for high-throughput
+sequencing (HTS) data. There are also an number of useful utilities for
+manipulating HTS data.")
+ (license license:expat)))
+
(define-public macs
(package
(name "macs")