unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] Add preseq.
@ 2015-06-23 11:02 Ricardo Wurmus
  2015-06-25 13:23 ` Ricardo Wurmus
  0 siblings, 1 reply; 12+ messages in thread
From: Ricardo Wurmus @ 2015-06-23 11:02 UTC (permalink / raw)
  To: guix-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-gnu-Add-preseq.patch --]
[-- Type: text/x-patch, Size: 2973 bytes --]

From 7e0352fad776f1c491882647ee3ad5f5319e1164 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Tue, 23 Jun 2015 10:54:00 +0200
Subject: [PATCH] gnu: Add preseq.

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

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 09534a8..3d36120 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -2004,6 +2004,57 @@ Databases are stored in a portable image within the file system, and can be
 accessed/downloaded on demand across HTTP.")
     (license license:public-domain)))
 
+(define-public preseq
+  (package
+    (name "preseq")
+    (version "1.0.2")
+    (source (origin
+              (method url-fetch)
+              (uri
+               (string-append "http://smithlabresearch.org/downloads/preseq-"
+                              version ".tar.bz2"))
+              (sha256
+               (base32 "0r7sw07p6nv8ygvc17gd78lisbw5336v3vhs86b5wv8mw3pwqksc"))
+              (modules '((guix build utils)))
+              (snippet
+               ;; Remove bundled samtools.
+               ;; FIXME: Without samtools sources "bam2mr" is not built.
+               '(delete-file-recursively "preseq-master/samtools"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f ;no "check" target
+       #:phases
+       (modify-phases %standard-phases
+         (add-after
+          'unpack 'enter-dir
+          (lambda _
+            (chdir "preseq-master")
+            #t))
+         (replace 'configure
+                  (lambda* (#:key inputs #:allow-other-keys)
+                    ;; Fix install target
+                    (substitute* "Makefile"
+                      (("\\$\\(ROOT\\)/bin") "$(PREFIX)/bin"))
+                    #t)))
+       #:make-flags (list (string-append "PREFIX="
+                                         (assoc-ref %outputs "out"))
+                          ;; Do not attempt to link samtools objects
+                          "SAMTOOLS_DIR=")))
+    (inputs
+     `(("gsl" ,gsl)
+       ("zlib" ,zlib)))
+    (home-page "http://smithlabresearch.org/software/preseq/")
+    (synopsis "Program for analyzing library complexity")
+    (description
+     "The preseq package is aimed at predicting and estimating the complexity
+of a genomic sequencing library, equivalent to predicting and estimating the
+number of redundant reads from a given sequencing depth and how many will be
+expected from additional sequencing using an initial sequencing experiment.
+The estimates can then be used to examine the utility of further sequencing,
+optimize the sequencing depth, or to screen multiple libraries to avoid low
+complexity samples.")
+    (license license:gpl3+)))
+
 (define-public sra-tools
   (package
     (name "sra-tools")
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-07-10  7:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-23 11:02 [PATCH] Add preseq Ricardo Wurmus
2015-06-25 13:23 ` Ricardo Wurmus
2015-07-01 13:30   ` Ludovic Courtès
2015-07-01 13:33     ` Ricardo Wurmus
2015-07-01 15:00       ` Ludovic Courtès
2015-07-07 12:45         ` Ricardo Wurmus
2015-07-08 12:59           ` Ludovic Courtès
2015-07-08 22:37             ` Mark H Weaver
2015-07-09 10:16               ` Ricardo Wurmus
2015-07-09 15:55                 ` Mark H Weaver
2015-07-10  7:10                   ` Ricardo Wurmus
2015-07-01 13:30   ` Ricardo Wurmus

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).