gnu: htseq: Use PyPI URI.
[jackhill/guix/guix.git] / gnu / packages / bioinformatics.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
3 ;;; Copyright © 2015, 2016, 2017 Ben Woodcroft <donttrustben@gmail.com>
4 ;;; Copyright © 2015, 2016 Pjotr Prins <pjotr.guix@thebird.nl>
5 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
6 ;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
7 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
8 ;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
9 ;;; Copyright © 2016 Raoul Bonnal <ilpuccio.febo@gmail.com>
10 ;;;
11 ;;; This file is part of GNU Guix.
12 ;;;
13 ;;; GNU Guix is free software; you can redistribute it and/or modify it
14 ;;; under the terms of the GNU General Public License as published by
15 ;;; the Free Software Foundation; either version 3 of the License, or (at
16 ;;; your option) any later version.
17 ;;;
18 ;;; GNU Guix is distributed in the hope that it will be useful, but
19 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ;;; GNU General Public License for more details.
22 ;;;
23 ;;; You should have received a copy of the GNU General Public License
24 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
25
26 (define-module (gnu packages bioinformatics)
27 #:use-module ((guix licenses) #:prefix license:)
28 #:use-module (guix packages)
29 #:use-module (guix utils)
30 #:use-module (guix download)
31 #:use-module (guix git-download)
32 #:use-module (guix hg-download)
33 #:use-module (guix build-system ant)
34 #:use-module (guix build-system gnu)
35 #:use-module (guix build-system cmake)
36 #:use-module (guix build-system ocaml)
37 #:use-module (guix build-system perl)
38 #:use-module (guix build-system python)
39 #:use-module (guix build-system r)
40 #:use-module (guix build-system ruby)
41 #:use-module (guix build-system trivial)
42 #:use-module (gnu packages)
43 #:use-module (gnu packages autotools)
44 #:use-module (gnu packages algebra)
45 #:use-module (gnu packages base)
46 #:use-module (gnu packages bash)
47 #:use-module (gnu packages bison)
48 #:use-module (gnu packages boost)
49 #:use-module (gnu packages compression)
50 #:use-module (gnu packages cpio)
51 #:use-module (gnu packages curl)
52 #:use-module (gnu packages documentation)
53 #:use-module (gnu packages databases)
54 #:use-module (gnu packages datastructures)
55 #:use-module (gnu packages file)
56 #:use-module (gnu packages flex)
57 #:use-module (gnu packages gawk)
58 #:use-module (gnu packages gcc)
59 #:use-module (gnu packages gd)
60 #:use-module (gnu packages gtk)
61 #:use-module (gnu packages glib)
62 #:use-module (gnu packages groff)
63 #:use-module (gnu packages guile)
64 #:use-module (gnu packages haskell)
65 #:use-module (gnu packages image)
66 #:use-module (gnu packages imagemagick)
67 #:use-module (gnu packages java)
68 #:use-module (gnu packages ldc)
69 #:use-module (gnu packages linux)
70 #:use-module (gnu packages logging)
71 #:use-module (gnu packages machine-learning)
72 #:use-module (gnu packages man)
73 #:use-module (gnu packages maths)
74 #:use-module (gnu packages mpi)
75 #:use-module (gnu packages ncurses)
76 #:use-module (gnu packages ocaml)
77 #:use-module (gnu packages pcre)
78 #:use-module (gnu packages parallel)
79 #:use-module (gnu packages pdf)
80 #:use-module (gnu packages perl)
81 #:use-module (gnu packages pkg-config)
82 #:use-module (gnu packages popt)
83 #:use-module (gnu packages protobuf)
84 #:use-module (gnu packages python)
85 #:use-module (gnu packages readline)
86 #:use-module (gnu packages ruby)
87 #:use-module (gnu packages serialization)
88 #:use-module (gnu packages shells)
89 #:use-module (gnu packages statistics)
90 #:use-module (gnu packages swig)
91 #:use-module (gnu packages tbb)
92 #:use-module (gnu packages tex)
93 #:use-module (gnu packages texinfo)
94 #:use-module (gnu packages textutils)
95 #:use-module (gnu packages time)
96 #:use-module (gnu packages tls)
97 #:use-module (gnu packages vim)
98 #:use-module (gnu packages web)
99 #:use-module (gnu packages xml)
100 #:use-module (gnu packages xorg)
101 #:use-module (srfi srfi-1)
102 #:use-module (ice-9 match))
103
104 (define-public r-ape
105 (package
106 (name "r-ape")
107 (version "4.1")
108 (source
109 (origin
110 (method url-fetch)
111 (uri (cran-uri "ape" version))
112 (sha256
113 (base32
114 "0959fiiy11rzfzrzaknmgrx64bhszj02l0ycz79k5a6bmpfzanlk"))))
115 (build-system r-build-system)
116 (propagated-inputs
117 `(("r-lattice" ,r-lattice)
118 ("r-nlme" ,r-nlme)))
119 (home-page "http://ape-package.ird.fr/")
120 (synopsis "Analyses of phylogenetics and evolution")
121 (description
122 "This package provides functions for reading, writing, plotting, and
123 manipulating phylogenetic trees, analyses of comparative data in a
124 phylogenetic framework, ancestral character analyses, analyses of
125 diversification and macroevolution, computing distances from DNA sequences,
126 and several other tools.")
127 (license license:gpl2+)))
128
129 (define-public aragorn
130 (package
131 (name "aragorn")
132 (version "1.2.38")
133 (source (origin
134 (method url-fetch)
135 (uri (string-append
136 "http://mbio-serv2.mbioekol.lu.se/ARAGORN/Downloads/aragorn"
137 version ".tgz"))
138 (sha256
139 (base32
140 "09i1rg716smlbnixfm7q1ml2mfpaa2fpn3hwjg625ysmfwwy712b"))))
141 (build-system gnu-build-system)
142 (arguments
143 `(#:tests? #f ; there are no tests
144 #:phases
145 (modify-phases %standard-phases
146 (delete 'configure)
147 (replace 'build
148 (lambda _
149 (zero? (system* "gcc"
150 "-O3"
151 "-ffast-math"
152 "-finline-functions"
153 "-o"
154 "aragorn"
155 (string-append "aragorn" ,version ".c")))))
156 (replace 'install
157 (lambda* (#:key outputs #:allow-other-keys)
158 (let* ((out (assoc-ref outputs "out"))
159 (bin (string-append out "/bin"))
160 (man (string-append out "/share/man/man1")))
161 (mkdir-p bin)
162 (install-file "aragorn" bin)
163 (mkdir-p man)
164 (install-file "aragorn.1" man))
165 #t)))))
166 (home-page "http://mbio-serv2.mbioekol.lu.se/ARAGORN")
167 (synopsis "Detect tRNA, mtRNA and tmRNA genes in nucleotide sequences")
168 (description
169 "Aragorn identifies transfer RNA, mitochondrial RNA and
170 transfer-messenger RNA from nucleotide sequences, based on homology to known
171 tRNA consensus sequences and RNA structure. It also outputs the secondary
172 structure of the predicted RNA.")
173 (license license:gpl2)))
174
175 (define-public bamm
176 (package
177 (name "bamm")
178 (version "1.7.3")
179 (source (origin
180 (method url-fetch)
181 ;; BamM is not available on pypi.
182 (uri (string-append
183 "https://github.com/Ecogenomics/BamM/archive/"
184 version ".tar.gz"))
185 (file-name (string-append name "-" version ".tar.gz"))
186 (sha256
187 (base32
188 "1f35yxp4pc8aadsvbpg6r4kg2jh4fkjci0iby4iyljm6980sac0s"))
189 (modules '((guix build utils)))
190 (snippet
191 `(begin
192 ;; Delete bundled htslib.
193 (delete-file-recursively "c/htslib-1.3.1")
194 #t))))
195 (build-system python-build-system)
196 (arguments
197 `(#:python ,python-2 ; BamM is Python 2 only.
198 ;; Do not use bundled libhts. Do use the bundled libcfu because it has
199 ;; been modified from its original form.
200 #:configure-flags
201 (let ((htslib (assoc-ref %build-inputs "htslib")))
202 (list "--with-libhts-lib" (string-append htslib "/lib")
203 "--with-libhts-inc" (string-append htslib "/include/htslib")))
204 #:phases
205 (modify-phases %standard-phases
206 (add-after 'unpack 'autogen
207 (lambda _
208 (with-directory-excursion "c"
209 (let ((sh (which "sh")))
210 ;; Use autogen so that 'configure' works.
211 (substitute* "autogen.sh" (("/bin/sh") sh))
212 (setenv "CONFIG_SHELL" sh)
213 (substitute* "configure" (("/bin/sh") sh))
214 (zero? (system* "./autogen.sh"))))))
215 (delete 'build)
216 ;; Run tests after installation so compilation only happens once.
217 (delete 'check)
218 (add-after 'install 'wrap-executable
219 (lambda* (#:key outputs #:allow-other-keys)
220 (let* ((out (assoc-ref outputs "out"))
221 (path (getenv "PATH")))
222 (wrap-program (string-append out "/bin/bamm")
223 `("PATH" ":" prefix (,path))))
224 #t))
225 (add-after 'wrap-executable 'post-install-check
226 (lambda* (#:key inputs outputs #:allow-other-keys)
227 (setenv "PATH"
228 (string-append (assoc-ref outputs "out")
229 "/bin:"
230 (getenv "PATH")))
231 (setenv "PYTHONPATH"
232 (string-append
233 (assoc-ref outputs "out")
234 "/lib/python"
235 (string-take (string-take-right
236 (assoc-ref inputs "python") 5) 3)
237 "/site-packages:"
238 (getenv "PYTHONPATH")))
239 ;; There are 2 errors printed, but they are safe to ignore:
240 ;; 1) [E::hts_open_format] fail to open file ...
241 ;; 2) samtools view: failed to open ...
242 (zero? (system* "nosetests")))))))
243 (native-inputs
244 `(("autoconf" ,autoconf)
245 ("automake" ,automake)
246 ("libtool" ,libtool)
247 ("zlib" ,zlib)
248 ("python-nose" ,python2-nose)
249 ("python-pysam" ,python2-pysam)))
250 (inputs
251 `(("htslib" ,htslib-1.3) ; At least one test fails on htslib-1.4+.
252 ("samtools" ,samtools)
253 ("bwa" ,bwa)
254 ("grep" ,grep)
255 ("sed" ,sed)
256 ("coreutils" ,coreutils)))
257 (propagated-inputs
258 `(("python-numpy" ,python2-numpy)))
259 (home-page "http://ecogenomics.github.io/BamM/")
260 (synopsis "Metagenomics-focused BAM file manipulator")
261 (description
262 "BamM is a C library, wrapped in python, to efficiently generate and
263 parse BAM files, specifically for the analysis of metagenomic data. For
264 instance, it implements several methods to assess contig-wise read coverage.")
265 (license license:lgpl3+)))
266
267 (define-public bamtools
268 (package
269 (name "bamtools")
270 (version "2.4.1")
271 (source (origin
272 (method url-fetch)
273 (uri (string-append
274 "https://github.com/pezmaster31/bamtools/archive/v"
275 version ".tar.gz"))
276 (file-name (string-append name "-" version ".tar.gz"))
277 (sha256
278 (base32
279 "0jr024kcrhjb82cm69i7p5fcg5375zlc1h3qh2n1v368hcd0qflk"))))
280 (build-system cmake-build-system)
281 (arguments
282 `(#:tests? #f ;no "check" target
283 #:phases
284 (modify-phases %standard-phases
285 (add-before
286 'configure 'set-ldflags
287 (lambda* (#:key outputs #:allow-other-keys)
288 (setenv "LDFLAGS"
289 (string-append
290 "-Wl,-rpath="
291 (assoc-ref outputs "out") "/lib/bamtools")))))))
292 (inputs `(("zlib" ,zlib)))
293 (home-page "https://github.com/pezmaster31/bamtools")
294 (synopsis "C++ API and command-line toolkit for working with BAM data")
295 (description
296 "BamTools provides both a C++ API and a command-line toolkit for handling
297 BAM files.")
298 (license license:expat)))
299
300 (define-public bcftools
301 (package
302 (name "bcftools")
303 (version "1.5")
304 (source (origin
305 (method url-fetch)
306 (uri (string-append
307 "https://github.com/samtools/bcftools/releases/download/"
308 version "/bcftools-" version ".tar.bz2"))
309 (sha256
310 (base32
311 "0093hkkvxmbwfaa7905s6185jymynvg42kq6sxv7fili11l5mxwz"))
312 (modules '((guix build utils)))
313 (snippet
314 ;; Delete bundled htslib.
315 '(delete-file-recursively "htslib-1.5"))))
316 (build-system gnu-build-system)
317 (arguments
318 `(#:test-target "test"
319 #:configure-flags (list "--with-htslib=system")
320 #:make-flags
321 (list
322 "USE_GPL=1"
323 "LIBS=-lgsl -lgslcblas"
324 (string-append "prefix=" (assoc-ref %outputs "out"))
325 (string-append "HTSDIR=" (assoc-ref %build-inputs "htslib") "/include")
326 (string-append "HTSLIB=" (assoc-ref %build-inputs "htslib") "/lib/libhts.so")
327 (string-append "BGZIP=" (assoc-ref %build-inputs "htslib") "/bin/bgzip")
328 (string-append "TABIX=" (assoc-ref %build-inputs "htslib") "/bin/tabix")
329 (string-append "PACKAGE_VERSION=" ,version))
330 #:phases
331 (modify-phases %standard-phases
332 (add-before 'check 'patch-tests
333 (lambda _
334 (substitute* "test/test.pl"
335 (("/bin/bash") (which "bash")))
336 #t)))))
337 (native-inputs
338 `(("htslib" ,htslib)
339 ("perl" ,perl)))
340 (inputs
341 `(("gsl" ,gsl)
342 ("zlib" ,zlib)))
343 (home-page "https://samtools.github.io/bcftools/")
344 (synopsis "Utilities for variant calling and manipulating VCFs and BCFs")
345 (description
346 "BCFtools is a set of utilities that manipulate variant calls in the
347 Variant Call Format (VCF) and its binary counterpart BCF. All commands work
348 transparently with both VCFs and BCFs, both uncompressed and BGZF-compressed.")
349 ;; The sources are dual MIT/GPL, but becomes GPL-only when USE_GPL=1.
350 (license (list license:gpl3+ license:expat))))
351
352 (define-public bedops
353 (package
354 (name "bedops")
355 (version "2.4.14")
356 (source (origin
357 (method url-fetch)
358 (uri (string-append "https://github.com/bedops/bedops/archive/v"
359 version ".tar.gz"))
360 (file-name (string-append name "-" version ".tar.gz"))
361 (sha256
362 (base32
363 "1kqbac547wyqma81cyky9n7mkgikjpsfd3nnmcm6hpqwanqgh10v"))))
364 (build-system gnu-build-system)
365 (arguments
366 '(#:tests? #f
367 #:make-flags (list (string-append "BINDIR=" %output "/bin"))
368 #:phases
369 (alist-cons-after
370 'unpack 'unpack-tarballs
371 (lambda _
372 ;; FIXME: Bedops includes tarballs of minimally patched upstream
373 ;; libraries jansson, zlib, and bzip2. We cannot just use stock
374 ;; libraries because at least one of the libraries (zlib) is
375 ;; patched to add a C++ function definition (deflateInit2cpp).
376 ;; Until the Bedops developers offer a way to link against system
377 ;; libraries we have to build the in-tree copies of these three
378 ;; libraries.
379
380 ;; See upstream discussion:
381 ;; https://github.com/bedops/bedops/issues/124
382
383 ;; Unpack the tarballs to benefit from shebang patching.
384 (with-directory-excursion "third-party"
385 (and (zero? (system* "tar" "xvf" "jansson-2.6.tar.bz2"))
386 (zero? (system* "tar" "xvf" "zlib-1.2.7.tar.bz2"))
387 (zero? (system* "tar" "xvf" "bzip2-1.0.6.tar.bz2"))))
388 ;; Disable unpacking of tarballs in Makefile.
389 (substitute* "system.mk/Makefile.linux"
390 (("^\tbzcat .*") "\t@echo \"not unpacking\"\n")
391 (("\\./configure") "CONFIG_SHELL=bash ./configure"))
392 (substitute* "third-party/zlib-1.2.7/Makefile.in"
393 (("^SHELL=.*$") "SHELL=bash\n")))
394 (alist-delete 'configure %standard-phases))))
395 (home-page "https://github.com/bedops/bedops")
396 (synopsis "Tools for high-performance genomic feature operations")
397 (description
398 "BEDOPS is a suite of tools to address common questions raised in genomic
399 studies---mostly with regard to overlap and proximity relationships between
400 data sets. It aims to be scalable and flexible, facilitating the efficient
401 and accurate analysis and management of large-scale genomic data.
402
403 BEDOPS provides tools that perform highly efficient and scalable Boolean and
404 other set operations, statistical calculations, archiving, conversion and
405 other management of genomic data of arbitrary scale. Tasks can be easily
406 split by chromosome for distributing whole-genome analyses across a
407 computational cluster.")
408 (license license:gpl2+)))
409
410 (define-public bedtools
411 (package
412 (name "bedtools")
413 (version "2.26.0")
414 (source (origin
415 (method url-fetch)
416 (uri (string-append "https://github.com/arq5x/bedtools2/archive/v"
417 version ".tar.gz"))
418 (file-name (string-append name "-" version ".tar.gz"))
419 (sha256
420 (base32
421 "0xvri5hnp2iim1cx6mcd5d9f102p5ql41x69rd6106x1c17pinqm"))))
422 (build-system gnu-build-system)
423 (native-inputs `(("python" ,python-2)))
424 (inputs `(("samtools" ,samtools)
425 ("zlib" ,zlib)))
426 (arguments
427 '(#:test-target "test"
428 #:phases
429 (modify-phases %standard-phases
430 (delete 'configure)
431 (replace 'install
432 (lambda* (#:key outputs #:allow-other-keys)
433 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
434 (for-each (lambda (file)
435 (install-file file bin))
436 (find-files "bin" ".*")))
437 #t)))))
438 (home-page "https://github.com/arq5x/bedtools2")
439 (synopsis "Tools for genome analysis and arithmetic")
440 (description
441 "Collectively, the bedtools utilities are a swiss-army knife of tools for
442 a wide-range of genomics analysis tasks. The most widely-used tools enable
443 genome arithmetic: that is, set theory on the genome. For example, bedtools
444 allows one to intersect, merge, count, complement, and shuffle genomic
445 intervals from multiple files in widely-used genomic file formats such as BAM,
446 BED, GFF/GTF, VCF.")
447 (license license:gpl2)))
448
449 ;; Later releases of bedtools produce files with more columns than
450 ;; what Ribotaper expects.
451 (define-public bedtools-2.18
452 (package (inherit bedtools)
453 (name "bedtools")
454 (version "2.18.0")
455 (source (origin
456 (method url-fetch)
457 (uri (string-append "https://github.com/arq5x/bedtools2/"
458 "archive/v" version ".tar.gz"))
459 (file-name (string-append name "-" version ".tar.gz"))
460 (sha256
461 (base32
462 "05vrnr8yp7swfagshzpgqmzk1blnwnq8pq5pckzi1m26w98d63vf"))))))
463
464 (define-public ribotaper
465 (package
466 (name "ribotaper")
467 (version "1.3.1")
468 (source (origin
469 (method url-fetch)
470 (uri (string-append "https://ohlerlab.mdc-berlin.de/"
471 "files/RiboTaper/RiboTaper_Version_"
472 version ".tar.gz"))
473 (sha256
474 (base32
475 "0ykjbps1y3z3085q94npw8i9x5gldc6shy8vlc08v76zljsm07hv"))))
476 (build-system gnu-build-system)
477 (inputs
478 `(("bedtools" ,bedtools-2.18)
479 ("samtools" ,samtools-0.1)
480 ("r-minimal" ,r-minimal)
481 ("r-foreach" ,r-foreach)
482 ("r-xnomial" ,r-xnomial)
483 ("r-domc" ,r-domc)
484 ("r-multitaper" ,r-multitaper)
485 ("r-seqinr" ,r-seqinr)))
486 (home-page "https://ohlerlab.mdc-berlin.de/software/RiboTaper_126/")
487 (synopsis "Define translated ORFs using ribosome profiling data")
488 (description
489 "Ribotaper is a method for defining translated @dfn{open reading
490 frames} (ORFs) using ribosome profiling (ribo-seq) data. This package
491 provides the Ribotaper pipeline.")
492 (license license:gpl3+)))
493
494 (define-public ribodiff
495 (package
496 (name "ribodiff")
497 (version "0.2.2")
498 (source
499 (origin
500 (method url-fetch)
501 (uri (string-append "https://github.com/ratschlab/RiboDiff/"
502 "archive/v" version ".tar.gz"))
503 (file-name (string-append name "-" version ".tar.gz"))
504 (sha256
505 (base32
506 "0wpbwmfv05wdjxv7ikm664f7s7p7cqr8jnw99zrda0q67rl50aaj"))))
507 (build-system python-build-system)
508 (arguments
509 `(#:python ,python-2
510 #:phases
511 (modify-phases %standard-phases
512 ;; Generate an installable executable script wrapper.
513 (add-after 'unpack 'patch-setup.py
514 (lambda _
515 (substitute* "setup.py"
516 (("^(.*)packages=.*" line prefix)
517 (string-append line "\n"
518 prefix "scripts=['scripts/TE.py'],\n")))
519 #t)))))
520 (inputs
521 `(("python-numpy" ,python2-numpy)
522 ("python-matplotlib" ,python2-matplotlib)
523 ("python-scipy" ,python2-scipy)
524 ("python-statsmodels" ,python2-statsmodels)))
525 (native-inputs
526 `(("python-mock" ,python2-mock)
527 ("python-nose" ,python2-nose)))
528 (home-page "http://public.bmi.inf.ethz.ch/user/zhongy/RiboDiff/")
529 (synopsis "Detect translation efficiency changes from ribosome footprints")
530 (description "RiboDiff is a statistical tool that detects the protein
531 translational efficiency change from Ribo-Seq (ribosome footprinting) and
532 RNA-Seq data. It uses a generalized linear model to detect genes showing
533 difference in translational profile taking mRNA abundance into account. It
534 facilitates us to decipher the translational regulation that behave
535 independently with transcriptional regulation.")
536 (license license:gpl3+)))
537
538 (define-public bioawk
539 (package
540 (name "bioawk")
541 (version "1.0")
542 (source (origin
543 (method url-fetch)
544 (uri (string-append "https://github.com/lh3/bioawk/archive/v"
545 version ".tar.gz"))
546 (file-name (string-append name "-" version ".tar.gz"))
547 (sha256
548 (base32 "1daizxsk17ahi9n58fj8vpgwyhzrzh54bzqhanjanp88kgrz7gjw"))))
549 (build-system gnu-build-system)
550 (inputs
551 `(("zlib" ,zlib)))
552 (native-inputs
553 `(("bison" ,bison)))
554 (arguments
555 `(#:tests? #f ; There are no tests to run.
556 ;; Bison must generate files, before other targets can build.
557 #:parallel-build? #f
558 #:phases
559 (modify-phases %standard-phases
560 (delete 'configure) ; There is no configure phase.
561 (replace 'install
562 (lambda* (#:key outputs #:allow-other-keys)
563 (let* ((out (assoc-ref outputs "out"))
564 (bin (string-append out "/bin"))
565 (man (string-append out "/share/man/man1")))
566 (mkdir-p man)
567 (copy-file "awk.1" (string-append man "/bioawk.1"))
568 (install-file "bioawk" bin)))))))
569 (home-page "https://github.com/lh3/bioawk")
570 (synopsis "AWK with bioinformatics extensions")
571 (description "Bioawk is an extension to Brian Kernighan's awk, adding the
572 support of several common biological data formats, including optionally gzip'ed
573 BED, GFF, SAM, VCF, FASTA/Q and TAB-delimited formats with column names. It
574 also adds a few built-in functions and a command line option to use TAB as the
575 input/output delimiter. When the new functionality is not used, bioawk is
576 intended to behave exactly the same as the original BWK awk.")
577 (license license:x11)))
578
579 (define-public python2-pybedtools
580 (package
581 (name "python2-pybedtools")
582 (version "0.6.9")
583 (source (origin
584 (method url-fetch)
585 (uri (string-append
586 "https://pypi.python.org/packages/source/p/pybedtools/pybedtools-"
587 version ".tar.gz"))
588 (sha256
589 (base32
590 "1ldzdxw1p4y3g2ignmggsdypvqkcwqwzhdha4rbgpih048z5p4an"))))
591 (build-system python-build-system)
592 (arguments `(#:python ,python-2)) ; no Python 3 support
593 (inputs
594 `(("python-matplotlib" ,python2-matplotlib)))
595 (propagated-inputs
596 `(("bedtools" ,bedtools)
597 ("samtools" ,samtools)))
598 (native-inputs
599 `(("python-cython" ,python2-cython)
600 ("python-pyyaml" ,python2-pyyaml)
601 ("python-nose" ,python2-nose)))
602 (home-page "https://pythonhosted.org/pybedtools/")
603 (synopsis "Python wrapper for BEDtools programs")
604 (description
605 "pybedtools is a Python wrapper for Aaron Quinlan's BEDtools programs,
606 which are widely used for genomic interval manipulation or \"genome algebra\".
607 pybedtools extends BEDTools by offering feature-level manipulations from with
608 Python.")
609 (license license:gpl2+)))
610
611 (define-public python-biom-format
612 (package
613 (name "python-biom-format")
614 (version "2.1.6")
615 (source
616 (origin
617 (method url-fetch)
618 ;; Use GitHub as source because PyPI distribution does not contain
619 ;; test data: https://github.com/biocore/biom-format/issues/693
620 (uri (string-append "https://github.com/biocore/biom-format/archive/"
621 version ".tar.gz"))
622 (file-name (string-append name "-" version ".tar.gz"))
623 (sha256
624 (base32
625 "08cr7wpahk6zb31h4bs7jmzpvxcqv9s13xz40h6y2h656jvdvnpj"))))
626 (build-system python-build-system)
627 (propagated-inputs
628 `(("python-numpy" ,python-numpy)
629 ("python-scipy" ,python-scipy)
630 ("python-future" ,python-future)
631 ("python-click" ,python-click)
632 ("python-h5py" ,python-h5py)
633 ("python-pandas" ,python-pandas)))
634 (native-inputs
635 `(("python-nose" ,python-nose)))
636 (home-page "http://www.biom-format.org")
637 (synopsis "Biological Observation Matrix (BIOM) format utilities")
638 (description
639 "The BIOM file format is designed to be a general-use format for
640 representing counts of observations e.g. operational taxonomic units, KEGG
641 orthology groups or lipid types, in one or more biological samples
642 e.g. microbiome samples, genomes, metagenomes.")
643 (license license:bsd-3)
644 (properties `((python2-variant . ,(delay python2-biom-format))))))
645
646 (define-public python2-biom-format
647 (let ((base (package-with-python2 (strip-python2-variant python-biom-format))))
648 (package
649 (inherit base)
650 (arguments
651 `(#:phases
652 (modify-phases %standard-phases
653 ;; Do not require the unmaintained pyqi library.
654 (add-after 'unpack 'remove-pyqi
655 (lambda _
656 (substitute* "setup.py"
657 (("install_requires.append\\(\"pyqi\"\\)") "pass"))
658 #t)))
659 ,@(package-arguments base))))))
660
661 (define-public bioperl-minimal
662 (let* ((inputs `(("perl-module-build" ,perl-module-build)
663 ("perl-data-stag" ,perl-data-stag)
664 ("perl-libwww" ,perl-libwww)
665 ("perl-uri" ,perl-uri)))
666 (transitive-inputs
667 (map (compose package-name cadr)
668 (delete-duplicates
669 (concatenate
670 (map (compose package-transitive-target-inputs cadr) inputs))))))
671 (package
672 (name "bioperl-minimal")
673 (version "1.7.0")
674 (source
675 (origin
676 (method url-fetch)
677 (uri (string-append "https://github.com/bioperl/bioperl-live/"
678 "archive/release-"
679 (string-map (lambda (c)
680 (if (char=? c #\.)
681 #\- c)) version)
682 ".tar.gz"))
683 (sha256
684 (base32
685 "12phgpxwgkqflkwfb9dcqg7a31dpjlfhar8wcgv0aj5ln4akfz06"))))
686 (build-system perl-build-system)
687 (arguments
688 `(#:phases
689 (modify-phases %standard-phases
690 (add-after
691 'install 'wrap-programs
692 (lambda* (#:key outputs #:allow-other-keys)
693 ;; Make sure all executables in "bin" find the required Perl
694 ;; modules at runtime. As the PERL5LIB variable contains also
695 ;; the paths of native inputs, we pick the transitive target
696 ;; inputs from %build-inputs.
697 (let* ((out (assoc-ref outputs "out"))
698 (bin (string-append out "/bin/"))
699 (path (string-join
700 (cons (string-append out "/lib/perl5/site_perl")
701 (map (lambda (name)
702 (assoc-ref %build-inputs name))
703 ',transitive-inputs))
704 ":")))
705 (for-each (lambda (file)
706 (wrap-program file
707 `("PERL5LIB" ":" prefix (,path))))
708 (find-files bin "\\.pl$"))
709 #t))))))
710 (inputs inputs)
711 (native-inputs
712 `(("perl-test-most" ,perl-test-most)))
713 (home-page "http://search.cpan.org/dist/BioPerl")
714 (synopsis "Bioinformatics toolkit")
715 (description
716 "BioPerl is the product of a community effort to produce Perl code which
717 is useful in biology. Examples include Sequence objects, Alignment objects
718 and database searching objects. These objects not only do what they are
719 advertised to do in the documentation, but they also interact - Alignment
720 objects are made from the Sequence objects, Sequence objects have access to
721 Annotation and SeqFeature objects and databases, Blast objects can be
722 converted to Alignment objects, and so on. This means that the objects
723 provide a coordinated and extensible framework to do computational biology.")
724 (license license:perl-license))))
725
726 (define-public python-biopython
727 (package
728 (name "python-biopython")
729 (version "1.68")
730 (source (origin
731 (method url-fetch)
732 ;; use PyPi rather than biopython.org to ease updating
733 (uri (pypi-uri "biopython" version))
734 (sha256
735 (base32
736 "07qc7nz0k77y8hf8s18rscvibvm91zw0kkq7ylrhisf8vp8hkp6i"))))
737 (build-system python-build-system)
738 (arguments
739 `(#:phases
740 (modify-phases %standard-phases
741 (add-before 'check 'set-home
742 ;; Some tests require a home directory to be set.
743 (lambda _ (setenv "HOME" "/tmp") #t)))))
744 (propagated-inputs
745 `(("python-numpy" ,python-numpy)))
746 (home-page "http://biopython.org/")
747 (synopsis "Tools for biological computation in Python")
748 (description
749 "Biopython is a set of tools for biological computation including parsers
750 for bioinformatics files into Python data structures; interfaces to common
751 bioinformatics programs; a standard sequence class and tools for performing
752 common operations on them; code to perform data classification; code for
753 dealing with alignments; code making it easy to split up parallelizable tasks
754 into separate processes; and more.")
755 (license (license:non-copyleft "http://www.biopython.org/DIST/LICENSE"))))
756
757 (define-public python2-biopython
758 (package-with-python2 python-biopython))
759
760 ;; An outdated version of biopython is required for seqmagick, see
761 ;; https://github.com/fhcrc/seqmagick/issues/59
762 ;; When that issue has been resolved this package should be removed.
763 (define python2-biopython-1.66
764 (package
765 (inherit python2-biopython)
766 (version "1.66")
767 (source (origin
768 (method url-fetch)
769 (uri (pypi-uri "biopython" version))
770 (sha256
771 (base32
772 "1gdv92593klimg22icf5j9by7xiq86jnwzkpz4abaa05ylkdf6hp"))))))
773
774 (define-public bpp-core
775 ;; The last release was in 2014 and the recommended way to install from source
776 ;; is to clone the git repository, so we do this.
777 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
778 (let ((commit "7d8bced0d1a87291ea8dd7046b7fb5ff9c35c582"))
779 (package
780 (name "bpp-core")
781 (version (string-append "2.2.0-1." (string-take commit 7)))
782 (source (origin
783 (method git-fetch)
784 (uri (git-reference
785 (url "http://biopp.univ-montp2.fr/git/bpp-core")
786 (commit commit)))
787 (file-name (string-append name "-" version "-checkout"))
788 (sha256
789 (base32
790 "10djsq5vlnkilv436gnmh4irpk49v29pa69r6xiryg32xmvn909j"))))
791 (build-system cmake-build-system)
792 (arguments
793 `(#:parallel-build? #f))
794 (inputs
795 `(("gcc" ,gcc-5))) ; Compilation of bpp-phyl fails with GCC 4.9 so we
796 ; compile all of the bpp packages with GCC 5.
797 (home-page "http://biopp.univ-montp2.fr")
798 (synopsis "C++ libraries for Bioinformatics")
799 (description
800 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
801 analysis, phylogenetics, molecular evolution and population genetics. It is
802 Object Oriented and is designed to be both easy to use and computer efficient.
803 Bio++ intends to help programmers to write computer expensive programs, by
804 providing them a set of re-usable tools.")
805 (license license:cecill-c))))
806
807 (define-public bpp-phyl
808 ;; The last release was in 2014 and the recommended way to install from source
809 ;; is to clone the git repository, so we do this.
810 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
811 (let ((commit "0c07167b629f68b569bf274d1ad0c4af83276ae2"))
812 (package
813 (name "bpp-phyl")
814 (version (string-append "2.2.0-1." (string-take commit 7)))
815 (source (origin
816 (method git-fetch)
817 (uri (git-reference
818 (url "http://biopp.univ-montp2.fr/git/bpp-phyl")
819 (commit commit)))
820 (file-name (string-append name "-" version "-checkout"))
821 (sha256
822 (base32
823 "1ssjgchzwj3iai26kyly7gwkdv8sk59nqhkb1wpap3sf5m6kyllh"))))
824 (build-system cmake-build-system)
825 (arguments
826 `(#:parallel-build? #f
827 ;; If out-of-source, test data is not copied into the build directory
828 ;; so the tests fail.
829 #:out-of-source? #f))
830 (inputs
831 `(("bpp-core" ,bpp-core)
832 ("bpp-seq" ,bpp-seq)
833 ;; GCC 4.8 fails due to an 'internal compiler error', so we use a more
834 ;; modern GCC.
835 ("gcc" ,gcc-5)))
836 (home-page "http://biopp.univ-montp2.fr")
837 (synopsis "Bio++ phylogenetic Library")
838 (description
839 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
840 analysis, phylogenetics, molecular evolution and population genetics. This
841 library provides phylogenetics-related modules.")
842 (license license:cecill-c))))
843
844 (define-public bpp-popgen
845 ;; The last release was in 2014 and the recommended way to install from source
846 ;; is to clone the git repository, so we do this.
847 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
848 (let ((commit "e472bac9b1a148803895d747cd6d0c5904f85d9f"))
849 (package
850 (name "bpp-popgen")
851 (version (string-append "2.2.0-1." (string-take commit 7)))
852 (source (origin
853 (method git-fetch)
854 (uri (git-reference
855 (url "http://biopp.univ-montp2.fr/git/bpp-popgen")
856 (commit commit)))
857 (file-name (string-append name "-" version "-checkout"))
858 (sha256
859 (base32
860 "0yn82dzn1n5629nzja68xfrhi655709rjanyryb36vzkmymy6dw5"))))
861 (build-system cmake-build-system)
862 (arguments
863 `(#:parallel-build? #f
864 #:tests? #f)) ; There are no tests.
865 (inputs
866 `(("bpp-core" ,bpp-core)
867 ("bpp-seq" ,bpp-seq)
868 ("gcc" ,gcc-5)))
869 (home-page "http://biopp.univ-montp2.fr")
870 (synopsis "Bio++ population genetics library")
871 (description
872 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
873 analysis, phylogenetics, molecular evolution and population genetics. This
874 library provides population genetics-related modules.")
875 (license license:cecill-c))))
876
877 (define-public bpp-seq
878 ;; The last release was in 2014 and the recommended way to install from source
879 ;; is to clone the git repository, so we do this.
880 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
881 (let ((commit "6cfa07965ce152e5598a89df2fa80a75973bfa33"))
882 (package
883 (name "bpp-seq")
884 (version (string-append "2.2.0-1." (string-take commit 7)))
885 (source (origin
886 (method git-fetch)
887 (uri (git-reference
888 (url "http://biopp.univ-montp2.fr/git/bpp-seq")
889 (commit commit)))
890 (file-name (string-append name "-" version "-checkout"))
891 (sha256
892 (base32
893 "1nys5jq7jqvdg40d91wsmj3q2yzy4276cp7sp44n67p468f27zf2"))))
894 (build-system cmake-build-system)
895 (arguments
896 `(#:parallel-build? #f
897 ;; If out-of-source, test data is not copied into the build directory
898 ;; so the tests fail.
899 #:out-of-source? #f))
900 (inputs
901 `(("bpp-core" ,bpp-core)
902 ("gcc" ,gcc-5))) ; Use GCC 5 as per 'bpp-core'.
903 (home-page "http://biopp.univ-montp2.fr")
904 (synopsis "Bio++ sequence library")
905 (description
906 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
907 analysis, phylogenetics, molecular evolution and population genetics. This
908 library provides sequence-related modules.")
909 (license license:cecill-c))))
910
911 (define-public bppsuite
912 ;; The last release was in 2014 and the recommended way to install from source
913 ;; is to clone the git repository, so we do this.
914 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
915 (let ((commit "c516147f57aa50961121cd505bed52cd7603698b"))
916 (package
917 (name "bppsuite")
918 (version (string-append "2.2.0-1." (string-take commit 7)))
919 (source (origin
920 (method git-fetch)
921 (uri (git-reference
922 (url "http://biopp.univ-montp2.fr/git/bppsuite")
923 (commit commit)))
924 (file-name (string-append name "-" version "-checkout"))
925 (sha256
926 (base32
927 "1y87pxvw0jxjizhq2dr9g2r91md45k1p9ih2sl1yy1y3p934l2kb"))))
928 (build-system cmake-build-system)
929 (arguments
930 `(#:parallel-build? #f
931 #:tests? #f)) ; There are no tests.
932 (native-inputs
933 `(("groff" ,groff)
934 ("man-db" ,man-db)
935 ("texinfo" ,texinfo)))
936 (inputs
937 `(("bpp-core" ,bpp-core)
938 ("bpp-seq" ,bpp-seq)
939 ("bpp-phyl" ,bpp-phyl)
940 ("bpp-phyl" ,bpp-popgen)
941 ("gcc" ,gcc-5)))
942 (home-page "http://biopp.univ-montp2.fr")
943 (synopsis "Bioinformatics tools written with the Bio++ libraries")
944 (description
945 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
946 analysis, phylogenetics, molecular evolution and population genetics. This
947 package provides command line tools using the Bio++ library.")
948 (license license:cecill-c))))
949
950 (define-public blast+
951 (package
952 (name "blast+")
953 (version "2.6.0")
954 (source (origin
955 (method url-fetch)
956 (uri (string-append
957 "ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/"
958 version "/ncbi-blast-" version "+-src.tar.gz"))
959 (sha256
960 (base32
961 "15n937pw5aqmyfjb6l387d18grqbb96l63d5xj4l7yyh0zbf2405"))
962 (patches (search-patches "blast+-fix-makefile.patch"))
963 (modules '((guix build utils)))
964 (snippet
965 '(begin
966 ;; Remove bundled bzip2, zlib and pcre.
967 (delete-file-recursively "c++/src/util/compress/bzip2")
968 (delete-file-recursively "c++/src/util/compress/zlib")
969 (delete-file-recursively "c++/src/util/regexp")
970 (substitute* "c++/src/util/compress/Makefile.in"
971 (("bzip2 zlib api") "api"))
972 ;; Remove useless msbuild directory
973 (delete-file-recursively
974 "c++/src/build-system/project_tree_builder/msbuild")
975 #t))))
976 (build-system gnu-build-system)
977 (arguments
978 `(;; There are two(!) tests for this massive library, and both fail with
979 ;; "unparsable timing stats".
980 ;; ERR [127] -- [serial/datatool] datatool.sh (unparsable timing stats)
981 ;; ERR [127] -- [serial/datatool] datatool_xml.sh (unparsable timing stats)
982 #:tests? #f
983 #:out-of-source? #t
984 #:parallel-build? #f ; not supported
985 #:phases
986 (modify-phases %standard-phases
987 (add-before
988 'configure 'set-HOME
989 ;; $HOME needs to be set at some point during the configure phase
990 (lambda _ (setenv "HOME" "/tmp") #t))
991 (add-after
992 'unpack 'enter-dir
993 (lambda _ (chdir "c++") #t))
994 (add-after
995 'enter-dir 'fix-build-system
996 (lambda _
997 (define (which* cmd)
998 (cond ((string=? cmd "date")
999 ;; make call to "date" deterministic
1000 "date -d @0")
1001 ((which cmd)
1002 => identity)
1003 (else
1004 (format (current-error-port)
1005 "WARNING: Unable to find absolute path for ~s~%"
1006 cmd)
1007 #f)))
1008
1009 ;; Rewrite hardcoded paths to various tools
1010 (substitute* (append '("src/build-system/configure.ac"
1011 "src/build-system/configure"
1012 "src/build-system/helpers/run_with_lock.c"
1013 "scripts/common/impl/if_diff.sh"
1014 "scripts/common/impl/run_with_lock.sh"
1015 "src/build-system/Makefile.configurables.real"
1016 "src/build-system/Makefile.in.top"
1017 "src/build-system/Makefile.meta.gmake=no"
1018 "src/build-system/Makefile.meta.in"
1019 "src/build-system/Makefile.meta_l"
1020 "src/build-system/Makefile.meta_p"
1021 "src/build-system/Makefile.meta_r"
1022 "src/build-system/Makefile.mk.in"
1023 "src/build-system/Makefile.requirements"
1024 "src/build-system/Makefile.rules_with_autodep.in")
1025 (find-files "scripts/common/check" "\\.sh$"))
1026 (("(/usr/bin/|/bin/)([a-z][-_.a-z]*)" all dir cmd)
1027 (or (which* cmd) all)))
1028
1029 (substitute* (find-files "src/build-system" "^config.*")
1030 (("LN_S=/bin/\\$LN_S") (string-append "LN_S=" (which "ln")))
1031 (("^PATH=.*") ""))
1032
1033 ;; rewrite "/var/tmp" in check script
1034 (substitute* "scripts/common/check/check_make_unix.sh"
1035 (("/var/tmp") "/tmp"))
1036
1037 ;; do not reset PATH
1038 (substitute* (find-files "scripts/common/impl/" "\\.sh$")
1039 (("^ *PATH=.*") "")
1040 (("action=/bin/") "action=")
1041 (("export PATH") ":"))
1042 #t))
1043 (replace
1044 'configure
1045 (lambda* (#:key inputs outputs #:allow-other-keys)
1046 (let ((out (assoc-ref outputs "out"))
1047 (lib (string-append (assoc-ref outputs "lib") "/lib"))
1048 (include (string-append (assoc-ref outputs "include")
1049 "/include/ncbi-tools++")))
1050 ;; The 'configure' script doesn't recognize things like
1051 ;; '--enable-fast-install'.
1052 (zero? (system* "./configure.orig"
1053 (string-append "--with-build-root=" (getcwd) "/build")
1054 (string-append "--prefix=" out)
1055 (string-append "--libdir=" lib)
1056 (string-append "--includedir=" include)
1057 (string-append "--with-bz2="
1058 (assoc-ref inputs "bzip2"))
1059 (string-append "--with-z="
1060 (assoc-ref inputs "zlib"))
1061 (string-append "--with-pcre="
1062 (assoc-ref inputs "pcre"))
1063 ;; Each library is built twice by default, once
1064 ;; with "-static" in its name, and again
1065 ;; without.
1066 "--without-static"
1067 "--with-dll"))))))))
1068 (outputs '("out" ; 21 MB
1069 "lib" ; 226 MB
1070 "include")) ; 33 MB
1071 (inputs
1072 `(("bzip2" ,bzip2)
1073 ("zlib" ,zlib)
1074 ("pcre" ,pcre)
1075 ("perl" ,perl)
1076 ("python" ,python-wrapper)))
1077 (native-inputs
1078 `(("cpio" ,cpio)))
1079 (home-page "http://blast.ncbi.nlm.nih.gov")
1080 (synopsis "Basic local alignment search tool")
1081 (description
1082 "BLAST is a popular method of performing a DNA or protein sequence
1083 similarity search, using heuristics to produce results quickly. It also
1084 calculates an “expect value” that estimates how many matches would have
1085 occurred at a given score by chance, which can aid a user in judging how much
1086 confidence to have in an alignment.")
1087 ;; Most of the sources are in the public domain, with the following
1088 ;; exceptions:
1089 ;; * Expat:
1090 ;; * ./c++/include/util/bitset/
1091 ;; * ./c++/src/html/ncbi_menu*.js
1092 ;; * Boost license:
1093 ;; * ./c++/include/util/impl/floating_point_comparison.hpp
1094 ;; * LGPL 2+:
1095 ;; * ./c++/include/dbapi/driver/odbc/unix_odbc/
1096 ;; * ASL 2.0:
1097 ;; * ./c++/src/corelib/teamcity_*
1098 (license (list license:public-domain
1099 license:expat
1100 license:boost1.0
1101 license:lgpl2.0+
1102 license:asl2.0))))
1103
1104 (define-public bless
1105 (package
1106 (name "bless")
1107 (version "1p02")
1108 (source (origin
1109 (method url-fetch)
1110 (uri (string-append "mirror://sourceforge/bless-ec/bless.v"
1111 version ".tgz"))
1112 (sha256
1113 (base32
1114 "0rm0gw2s18dqwzzpl3c2x1z05ni2v0xz5dmfk3d33j6g4cgrlrdd"))
1115 (modules '((guix build utils)))
1116 (snippet
1117 `(begin
1118 ;; Remove bundled boost, pigz, zlib, and .git directory
1119 ;; FIXME: also remove bundled sources for murmurhash3 and
1120 ;; kmc once packaged.
1121 (delete-file-recursively "boost")
1122 (delete-file-recursively "pigz")
1123 (delete-file-recursively "google-sparsehash")
1124 (delete-file-recursively "zlib")
1125 (delete-file-recursively ".git")
1126 #t))))
1127 (build-system gnu-build-system)
1128 (arguments
1129 '(#:tests? #f ;no "check" target
1130 #:make-flags
1131 (list (string-append "ZLIB="
1132 (assoc-ref %build-inputs "zlib")
1133 "/lib/libz.a")
1134 (string-append "LDFLAGS="
1135 (string-join '("-lboost_filesystem"
1136 "-lboost_system"
1137 "-lboost_iostreams"
1138 "-lz"
1139 "-fopenmp"
1140 "-std=c++11"))))
1141 #:phases
1142 (modify-phases %standard-phases
1143 (add-after 'unpack 'do-not-build-bundled-pigz
1144 (lambda* (#:key inputs outputs #:allow-other-keys)
1145 (substitute* "Makefile"
1146 (("cd pigz/pigz-2.3.3; make") ""))
1147 #t))
1148 (add-after 'unpack 'patch-paths-to-executables
1149 (lambda* (#:key inputs outputs #:allow-other-keys)
1150 (substitute* "parse_args.cpp"
1151 (("kmc_binary = .*")
1152 (string-append "kmc_binary = \""
1153 (assoc-ref outputs "out")
1154 "/bin/kmc\";"))
1155 (("pigz_binary = .*")
1156 (string-append "pigz_binary = \""
1157 (assoc-ref inputs "pigz")
1158 "/bin/pigz\";")))
1159 #t))
1160 (replace 'install
1161 (lambda* (#:key outputs #:allow-other-keys)
1162 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
1163 (for-each (lambda (file)
1164 (install-file file bin))
1165 '("bless" "kmc/bin/kmc"))
1166 #t)))
1167 (delete 'configure))))
1168 (native-inputs
1169 `(("perl" ,perl)))
1170 (inputs
1171 `(("openmpi" ,openmpi)
1172 ("boost" ,boost)
1173 ("sparsehash" ,sparsehash)
1174 ("pigz" ,pigz)
1175 ("zlib" ,zlib)))
1176 (supported-systems '("x86_64-linux"))
1177 (home-page "https://sourceforge.net/p/bless-ec/wiki/Home/")
1178 (synopsis "Bloom-filter-based error correction tool for NGS reads")
1179 (description
1180 "@dfn{Bloom-filter-based error correction solution for high-throughput
1181 sequencing reads} (BLESS) uses a single minimum-sized bloom filter is a
1182 correction tool for genomic reads produced by @dfn{Next-generation
1183 sequencing} (NGS). BLESS produces accurate correction results with much less
1184 memory compared with previous solutions and is also able to tolerate a higher
1185 false-positive rate. BLESS can extend reads like DNA assemblers to correct
1186 errors at the end of reads.")
1187 (license license:gpl3+)))
1188
1189 (define-public bowtie
1190 (package
1191 (name "bowtie")
1192 (version "2.3.2")
1193 (source (origin
1194 (method url-fetch)
1195 (uri (string-append "https://github.com/BenLangmead/bowtie2/archive/v"
1196 version ".tar.gz"))
1197 (file-name (string-append name "-" version ".tar.gz"))
1198 (sha256
1199 (base32
1200 "0hwa5r9qbglppb7sz5z79rlmmddr3n51n468jb3wh8rwjgn3yr90"))
1201 (modules '((guix build utils)))
1202 (snippet
1203 '(substitute* "Makefile"
1204 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1205 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1206 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\"")))))
1207 (build-system gnu-build-system)
1208 (inputs
1209 `(("perl" ,perl)
1210 ("perl-clone" ,perl-clone)
1211 ("perl-test-deep" ,perl-test-deep)
1212 ("perl-test-simple" ,perl-test-simple)
1213 ("python" ,python-2)
1214 ("tbb" ,tbb)
1215 ("zlib" ,zlib)))
1216 (arguments
1217 '(#:make-flags
1218 (list "allall"
1219 "WITH_TBB=1"
1220 (string-append "prefix=" (assoc-ref %outputs "out")))
1221 #:phases
1222 (modify-phases %standard-phases
1223 (delete 'configure)
1224 (replace 'check
1225 (lambda* (#:key outputs #:allow-other-keys)
1226 (zero? (system* "perl"
1227 "scripts/test/simple_tests.pl"
1228 "--bowtie2=./bowtie2"
1229 "--bowtie2-build=./bowtie2-build")))))))
1230 (home-page "http://bowtie-bio.sourceforge.net/bowtie2/index.shtml")
1231 (synopsis "Fast and sensitive nucleotide sequence read aligner")
1232 (description
1233 "Bowtie 2 is a fast and memory-efficient tool for aligning sequencing
1234 reads to long reference sequences. It is particularly good at aligning reads
1235 of about 50 up to 100s or 1,000s of characters, and particularly good at
1236 aligning to relatively long (e.g. mammalian) genomes. Bowtie 2 indexes the
1237 genome with an FM Index to keep its memory footprint small: for the human
1238 genome, its memory footprint is typically around 3.2 GB. Bowtie 2 supports
1239 gapped, local, and paired-end alignment modes.")
1240 (supported-systems '("x86_64-linux"))
1241 (license license:gpl3+)))
1242
1243 (define-public tophat
1244 (package
1245 (name "tophat")
1246 (version "2.1.0")
1247 (source (origin
1248 (method url-fetch)
1249 (uri (string-append
1250 "http://ccb.jhu.edu/software/tophat/downloads/tophat-"
1251 version ".tar.gz"))
1252 (sha256
1253 (base32
1254 "168zlzykq622zbgkh90a90f1bdgsxkscq2zxzbj8brq80hbjpyp7"))
1255 (patches (search-patches "tophat-build-with-later-seqan.patch"))
1256 (modules '((guix build utils)))
1257 (snippet
1258 '(begin
1259 ;; Remove bundled SeqAn and samtools
1260 (delete-file-recursively "src/SeqAn-1.3")
1261 (delete-file-recursively "src/samtools-0.1.18")
1262 #t))))
1263 (build-system gnu-build-system)
1264 (arguments
1265 '(#:parallel-build? #f ; not supported
1266 #:phases
1267 (modify-phases %standard-phases
1268 (add-after 'unpack 'use-system-samtools
1269 (lambda* (#:key inputs #:allow-other-keys)
1270 (substitute* "src/Makefile.in"
1271 (("(noinst_LIBRARIES = )\\$\\(SAMLIB\\)" _ prefix) prefix)
1272 (("\\$\\(SAMPROG\\): \\$\\(SAMLIB\\)") "")
1273 (("SAMPROG = samtools_0\\.1\\.18") "")
1274 (("\\$\\(samtools_0_1_18_SOURCES\\)") "")
1275 (("am__EXEEXT_1 = samtools_0\\.1\\.18\\$\\(EXEEXT\\)") ""))
1276 (substitute* '("src/common.cpp"
1277 "src/tophat.py")
1278 (("samtools_0.1.18") (which "samtools")))
1279 (substitute* '("src/common.h"
1280 "src/bam2fastx.cpp")
1281 (("#include \"bam.h\"") "#include <samtools/bam.h>")
1282 (("#include \"sam.h\"") "#include <samtools/sam.h>"))
1283 (substitute* '("src/bwt_map.h"
1284 "src/map2gtf.h"
1285 "src/align_status.h")
1286 (("#include <bam.h>") "#include <samtools/bam.h>")
1287 (("#include <sam.h>") "#include <samtools/sam.h>"))
1288 #t)))))
1289 (inputs
1290 `(("boost" ,boost)
1291 ("bowtie" ,bowtie)
1292 ("samtools" ,samtools-0.1)
1293 ("ncurses" ,ncurses)
1294 ("python" ,python-2)
1295 ("perl" ,perl)
1296 ("zlib" ,zlib)
1297 ("seqan" ,seqan)))
1298 (home-page "http://ccb.jhu.edu/software/tophat/index.shtml")
1299 (synopsis "Spliced read mapper for RNA-Seq data")
1300 (description
1301 "TopHat is a fast splice junction mapper for nucleotide sequence
1302 reads produced by the RNA-Seq method. It aligns RNA-Seq reads to
1303 mammalian-sized genomes using the ultra high-throughput short read
1304 aligner Bowtie, and then analyzes the mapping results to identify
1305 splice junctions between exons.")
1306 ;; TopHat is released under the Boost Software License, Version 1.0
1307 ;; See https://github.com/infphilo/tophat/issues/11#issuecomment-121589893
1308 (license license:boost1.0)))
1309
1310 (define-public bwa
1311 (package
1312 (name "bwa")
1313 (version "0.7.15")
1314 (source (origin
1315 (method url-fetch)
1316 (uri (string-append "mirror://sourceforge/bio-bwa/bwa-"
1317 version ".tar.bz2"))
1318 (sha256
1319 (base32
1320 "0585ikg0gv0mpyw9iq0bq9n0hr95867bbv8jbzs9pk4slkpsymig"))))
1321 (build-system gnu-build-system)
1322 (arguments
1323 '(#:tests? #f ;no "check" target
1324 #:phases
1325 (alist-replace
1326 'install
1327 (lambda* (#:key outputs #:allow-other-keys)
1328 (let ((bin (string-append
1329 (assoc-ref outputs "out") "/bin"))
1330 (doc (string-append
1331 (assoc-ref outputs "out") "/share/doc/bwa"))
1332 (man (string-append
1333 (assoc-ref outputs "out") "/share/man/man1")))
1334 (install-file "bwa" bin)
1335 (install-file "README.md" doc)
1336 (install-file "bwa.1" man)))
1337 ;; no "configure" script
1338 (alist-delete 'configure %standard-phases))))
1339 (inputs `(("zlib" ,zlib)))
1340 ;; Non-portable SSE instructions are used so building fails on platforms
1341 ;; other than x86_64.
1342 (supported-systems '("x86_64-linux"))
1343 (home-page "http://bio-bwa.sourceforge.net/")
1344 (synopsis "Burrows-Wheeler sequence aligner")
1345 (description
1346 "BWA is a software package for mapping low-divergent sequences against a
1347 large reference genome, such as the human genome. It consists of three
1348 algorithms: BWA-backtrack, BWA-SW and BWA-MEM. The first algorithm is
1349 designed for Illumina sequence reads up to 100bp, while the rest two for
1350 longer sequences ranged from 70bp to 1Mbp. BWA-MEM and BWA-SW share similar
1351 features such as long-read support and split alignment, but BWA-MEM, which is
1352 the latest, is generally recommended for high-quality queries as it is faster
1353 and more accurate. BWA-MEM also has better performance than BWA-backtrack for
1354 70-100bp Illumina reads.")
1355 (license license:gpl3+)))
1356
1357 (define-public bwa-pssm
1358 (package (inherit bwa)
1359 (name "bwa-pssm")
1360 (version "0.5.11")
1361 (source (origin
1362 (method url-fetch)
1363 (uri (string-append "https://github.com/pkerpedjiev/bwa-pssm/"
1364 "archive/" version ".tar.gz"))
1365 (file-name (string-append name "-" version ".tar.gz"))
1366 (sha256
1367 (base32
1368 "02p7mpbs4mlxmn84g2x4ghak638vbj4lqix2ipx5g84pz9bhdavg"))))
1369 (build-system gnu-build-system)
1370 (inputs
1371 `(("gdsl" ,gdsl)
1372 ("zlib" ,zlib)
1373 ("perl" ,perl)))
1374 (home-page "http://bwa-pssm.binf.ku.dk/")
1375 (synopsis "Burrows-Wheeler transform-based probabilistic short read mapper")
1376 (description
1377 "BWA-PSSM is a probabilistic short genomic sequence read aligner based on
1378 the use of @dfn{position specific scoring matrices} (PSSM). Like many of the
1379 existing aligners it is fast and sensitive. Unlike most other aligners,
1380 however, it is also adaptible in the sense that one can direct the alignment
1381 based on known biases within the data set. It is coded as a modification of
1382 the original BWA alignment program and shares the genome index structure as
1383 well as many of the command line options.")
1384 (license license:gpl3+)))
1385
1386 (define-public python2-bx-python
1387 (package
1388 (name "python2-bx-python")
1389 (version "0.7.3")
1390 (source (origin
1391 (method url-fetch)
1392 (uri (pypi-uri "bx-python" version))
1393 (sha256
1394 (base32
1395 "15z2w3bvnc0n4qmb9bd6d8ylc2h2nj883x2w9iixf4x3vki9b22i"))
1396 (modules '((guix build utils)))
1397 (snippet
1398 '(substitute* "setup.py"
1399 ;; remove dependency on outdated "distribute" module
1400 (("^from distribute_setup import use_setuptools") "")
1401 (("^use_setuptools\\(\\)") "")))))
1402 (build-system python-build-system)
1403 (arguments
1404 `(#:tests? #f ;tests fail because test data are not included
1405 #:python ,python-2))
1406 (inputs
1407 `(("python-numpy" ,python2-numpy)
1408 ("zlib" ,zlib)))
1409 (native-inputs
1410 `(("python-nose" ,python2-nose)))
1411 (home-page "http://bitbucket.org/james_taylor/bx-python/")
1412 (synopsis "Tools for manipulating biological data")
1413 (description
1414 "bx-python provides tools for manipulating biological data, particularly
1415 multiple sequence alignments.")
1416 (license license:expat)))
1417
1418 (define-public python-pysam
1419 (package
1420 (name "python-pysam")
1421 (version "0.11.2.2")
1422 (source (origin
1423 (method url-fetch)
1424 ;; Test data is missing on PyPi.
1425 (uri (string-append
1426 "https://github.com/pysam-developers/pysam/archive/v"
1427 version ".tar.gz"))
1428 (file-name (string-append name "-" version ".tar.gz"))
1429 (sha256
1430 (base32
1431 "1cfqdxsqs3xhacns9n0271ck6wkc76px66ddjm91wfw2jxxfklvc"))
1432 (modules '((guix build utils)))
1433 (snippet
1434 ;; Drop bundled htslib. TODO: Also remove samtools and bcftools.
1435 '(delete-file-recursively "htslib"))))
1436 (build-system python-build-system)
1437 (arguments
1438 `(#:modules ((ice-9 ftw)
1439 (srfi srfi-26)
1440 (guix build python-build-system)
1441 (guix build utils))
1442 #:phases
1443 (modify-phases %standard-phases
1444 (add-before 'build 'set-flags
1445 (lambda* (#:key inputs #:allow-other-keys)
1446 (setenv "HTSLIB_MODE" "external")
1447 (setenv "HTSLIB_LIBRARY_DIR"
1448 (string-append (assoc-ref inputs "htslib") "/lib"))
1449 (setenv "HTSLIB_INCLUDE_DIR"
1450 (string-append (assoc-ref inputs "htslib") "/include"))
1451 (setenv "LDFLAGS" "-lncurses")
1452 (setenv "CFLAGS" "-D_CURSES_LIB=1")
1453 #t))
1454 (replace 'check
1455 (lambda* (#:key inputs outputs #:allow-other-keys)
1456 ;; Add first subdirectory of "build" directory to PYTHONPATH.
1457 (setenv "PYTHONPATH"
1458 (string-append
1459 (getenv "PYTHONPATH")
1460 ":" (getcwd) "/build/"
1461 (car (scandir "build"
1462 (negate (cut string-prefix? "." <>))))))
1463 ;; Step out of source dir so python does not import from CWD.
1464 (with-directory-excursion "tests"
1465 (setenv "HOME" "/tmp")
1466 (and (zero? (system* "make" "-C" "pysam_data"))
1467 (zero? (system* "make" "-C" "cbcf_data"))
1468 ;; Running nosetests without explicitly asking for a
1469 ;; single process leads to a crash. Running with multiple
1470 ;; processes fails because the tests are not designed to
1471 ;; run in parallel.
1472
1473 ;; FIXME: tests keep timing out on some systems.
1474 ;; (zero? (system* "nosetests" "-v"
1475 ;; "--processes" "1"))
1476 )))))))
1477 (propagated-inputs
1478 `(("htslib" ,htslib))) ; Included from installed header files.
1479 (inputs
1480 `(("ncurses" ,ncurses)
1481 ("zlib" ,zlib)))
1482 (native-inputs
1483 `(("python-cython" ,python-cython)
1484 ;; Dependencies below are are for tests only.
1485 ("samtools" ,samtools)
1486 ("bcftools" ,bcftools)
1487 ("python-nose" ,python-nose)))
1488 (home-page "https://github.com/pysam-developers/pysam")
1489 (synopsis "Python bindings to the SAMtools C API")
1490 (description
1491 "Pysam is a Python module for reading and manipulating files in the
1492 SAM/BAM format. Pysam is a lightweight wrapper of the SAMtools C API. It
1493 also includes an interface for tabix.")
1494 (license license:expat)))
1495
1496 (define-public python2-pysam
1497 (package-with-python2 python-pysam))
1498
1499 (define-public python-twobitreader
1500 (package
1501 (name "python-twobitreader")
1502 (version "3.1.4")
1503 (source (origin
1504 (method url-fetch)
1505 (uri (pypi-uri "twobitreader" version))
1506 (sha256
1507 (base32
1508 "1q8wnj2kga9nz1lwc4w7qv52smfm536hp6mc8w6s53lhyj0mpi22"))))
1509 (build-system python-build-system)
1510 (arguments
1511 '(;; Tests are not distributed in the PyPi release.
1512 ;; TODO Try building from the Git repo or asking the upstream maintainer
1513 ;; to distribute the tests on PyPi.
1514 #:tests? #f))
1515 (native-inputs
1516 `(("python-sphinx" ,python-sphinx)))
1517 (home-page "https://github.com/benjschiller/twobitreader")
1518 (synopsis "Python library for reading .2bit files")
1519 (description
1520 "twobitreader is a Python library for reading .2bit files as used by the
1521 UCSC genome browser.")
1522 (license license:artistic2.0)))
1523
1524 (define-public python2-twobitreader
1525 (package-with-python2 python-twobitreader))
1526
1527 (define-public python-plastid
1528 (package
1529 (name "python-plastid")
1530 (version "0.4.8")
1531 (source (origin
1532 (method url-fetch)
1533 (uri (pypi-uri "plastid" version))
1534 (sha256
1535 (base32
1536 "0l24dd3q66if8yj042m4s0g95n6acn7im1imqd3p6h8ns43kxhj8"))))
1537 (build-system python-build-system)
1538 (arguments
1539 ;; Some test files are not included.
1540 `(#:tests? #f))
1541 (propagated-inputs
1542 `(("python-numpy" ,python-numpy)
1543 ("python-scipy" ,python-scipy)
1544 ("python-pandas" ,python-pandas)
1545 ("python-pysam" ,python-pysam)
1546 ("python-matplotlib" ,python-matplotlib)
1547 ("python-biopython" ,python-biopython)
1548 ("python-twobitreader" ,python-twobitreader)
1549 ("python-termcolor" ,python-termcolor)))
1550 (native-inputs
1551 `(("python-cython" ,python-cython)
1552 ("python-nose" ,python-nose)))
1553 (home-page "https://github.com/joshuagryphon/plastid")
1554 (synopsis "Python library for genomic analysis")
1555 (description
1556 "plastid is a Python library for genomic analysis – in particular,
1557 high-throughput sequencing data – with an emphasis on simplicity.")
1558 (license license:bsd-3)))
1559
1560 (define-public python2-plastid
1561 (package-with-python2 python-plastid))
1562
1563 (define-public cd-hit
1564 (package
1565 (name "cd-hit")
1566 (version "4.6.8")
1567 (source (origin
1568 (method url-fetch)
1569 (uri (string-append "https://github.com/weizhongli/cdhit"
1570 "/releases/download/V" version
1571 "/cd-hit-v" version
1572 "-2017-0621-source.tar.gz"))
1573 (sha256
1574 (base32
1575 "1386dg2npx8p62wmv08mjzsd2z3waknb9j1gg3gkvblcy57hymnn"))))
1576 (build-system gnu-build-system)
1577 (arguments
1578 `(#:tests? #f ; there are no tests
1579 #:make-flags
1580 ;; Executables are copied directly to the PREFIX.
1581 (list (string-append "PREFIX=" (assoc-ref %outputs "out") "/bin"))
1582 #:phases
1583 (modify-phases %standard-phases
1584 ;; No "configure" script
1585 (delete 'configure)
1586 ;; Remove sources of non-determinism
1587 (add-after 'unpack 'be-timeless
1588 (lambda _
1589 (substitute* "cdhit-utility.c++"
1590 ((" \\(built on \" __DATE__ \"\\)") ""))
1591 (substitute* "cdhit-common.c++"
1592 (("__DATE__") "\"0\"")
1593 (("\", %s, \" __TIME__ \"\\\\n\", date") ""))
1594 #t))
1595 ;; The "install" target does not create the target directory.
1596 (add-before 'install 'create-target-dir
1597 (lambda* (#:key outputs #:allow-other-keys)
1598 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
1599 #t)))))
1600 (inputs
1601 `(("perl" ,perl)))
1602 (home-page "http://weizhongli-lab.org/cd-hit/")
1603 (synopsis "Cluster and compare protein or nucleotide sequences")
1604 (description
1605 "CD-HIT is a program for clustering and comparing protein or nucleotide
1606 sequences. CD-HIT is designed to be fast and handle extremely large
1607 databases.")
1608 ;; The manual says: "It can be copied under the GNU General Public License
1609 ;; version 2 (GPLv2)."
1610 (license license:gpl2)))
1611
1612 (define-public clipper
1613 (package
1614 (name "clipper")
1615 (version "1.1")
1616 (source (origin
1617 (method url-fetch)
1618 (uri (string-append
1619 "https://github.com/YeoLab/clipper/archive/"
1620 version ".tar.gz"))
1621 (file-name (string-append name "-" version ".tar.gz"))
1622 (sha256
1623 (base32
1624 "0pflmsvhbf8izbgwhbhj1i7349sw1f55qpqj8ljmapp16hb0p0qi"))
1625 (modules '((guix build utils)))
1626 (snippet
1627 '(begin
1628 ;; remove unnecessary setup dependency
1629 (substitute* "setup.py"
1630 (("setup_requires = .*") ""))
1631 (for-each delete-file
1632 '("clipper/src/peaks.so"
1633 "clipper/src/readsToWiggle.so"))
1634 (delete-file-recursively "dist/")
1635 #t))))
1636 (build-system python-build-system)
1637 (arguments `(#:python ,python-2)) ; only Python 2 is supported
1638 (inputs
1639 `(("htseq" ,python2-htseq)
1640 ("python-pybedtools" ,python2-pybedtools)
1641 ("python-cython" ,python2-cython)
1642 ("python-scikit-learn" ,python2-scikit-learn)
1643 ("python-matplotlib" ,python2-matplotlib)
1644 ("python-pandas" ,python2-pandas)
1645 ("python-pysam" ,python2-pysam)
1646 ("python-numpy" ,python2-numpy)
1647 ("python-scipy" ,python2-scipy)))
1648 (native-inputs
1649 `(("python-mock" ,python2-mock) ; for tests
1650 ("python-nose" ,python2-nose) ; for tests
1651 ("python-pytz" ,python2-pytz))) ; for tests
1652 (home-page "https://github.com/YeoLab/clipper")
1653 (synopsis "CLIP peak enrichment recognition")
1654 (description
1655 "CLIPper is a tool to define peaks in CLIP-seq datasets.")
1656 (license license:gpl2)))
1657
1658 (define-public codingquarry
1659 (package
1660 (name "codingquarry")
1661 (version "2.0")
1662 (source (origin
1663 (method url-fetch)
1664 (uri (string-append
1665 "mirror://sourceforge/codingquarry/CodingQuarry_v"
1666 version ".tar.gz"))
1667 (sha256
1668 (base32
1669 "0115hkjflsnfzn36xppwf9h9avfxlavr43djqmshkkzbgjzsz60i"))))
1670 (build-system gnu-build-system)
1671 (arguments
1672 '(#:tests? #f ; no "check" target
1673 #:phases
1674 (modify-phases %standard-phases
1675 (delete 'configure)
1676 (replace 'install
1677 (lambda* (#:key outputs #:allow-other-keys)
1678 (let* ((out (assoc-ref outputs "out"))
1679 (bin (string-append out "/bin"))
1680 (doc (string-append out "/share/doc/codingquarry")))
1681 (install-file "INSTRUCTIONS.pdf" doc)
1682 (copy-recursively "QuarryFiles"
1683 (string-append out "/QuarryFiles"))
1684 (install-file "CodingQuarry" bin)
1685 (install-file "CufflinksGTF_to_CodingQuarryGFF3.py" bin)))))))
1686 (inputs `(("openmpi" ,openmpi)))
1687 (native-search-paths
1688 (list (search-path-specification
1689 (variable "QUARRY_PATH")
1690 (files '("QuarryFiles")))))
1691 (native-inputs `(("python" ,python-2))) ; Only Python 2 is supported
1692 (synopsis "Fungal gene predictor")
1693 (description "CodingQuarry is a highly accurate, self-training GHMM fungal
1694 gene predictor designed to work with assembled, aligned RNA-seq transcripts.")
1695 (home-page "https://sourceforge.net/projects/codingquarry/")
1696 (license license:gpl3+)))
1697
1698 (define-public couger
1699 (package
1700 (name "couger")
1701 (version "1.8.2")
1702 (source (origin
1703 (method url-fetch)
1704 (uri (string-append
1705 "http://couger.oit.duke.edu/static/assets/COUGER"
1706 version ".zip"))
1707 (sha256
1708 (base32
1709 "04p2b14nmhzxw5h72mpzdhalv21bx4w9b87z0wpw0xzxpysyncmq"))))
1710 (build-system gnu-build-system)
1711 (arguments
1712 `(#:tests? #f
1713 #:phases
1714 (modify-phases %standard-phases
1715 (delete 'configure)
1716 (delete 'build)
1717 (replace
1718 'install
1719 (lambda* (#:key outputs #:allow-other-keys)
1720 (let* ((out (assoc-ref outputs "out"))
1721 (bin (string-append out "/bin")))
1722 (copy-recursively "src" (string-append out "/src"))
1723 (mkdir bin)
1724 ;; Add "src" directory to module lookup path.
1725 (substitute* "couger"
1726 (("from argparse")
1727 (string-append "import sys\nsys.path.append(\""
1728 out "\")\nfrom argparse")))
1729 (install-file "couger" bin))
1730 #t))
1731 (add-after
1732 'install 'wrap-program
1733 (lambda* (#:key inputs outputs #:allow-other-keys)
1734 ;; Make sure 'couger' runs with the correct PYTHONPATH.
1735 (let* ((out (assoc-ref outputs "out"))
1736 (path (getenv "PYTHONPATH")))
1737 (wrap-program (string-append out "/bin/couger")
1738 `("PYTHONPATH" ":" prefix (,path))))
1739 #t)))))
1740 (inputs
1741 `(("python" ,python-2)
1742 ("python2-pillow" ,python2-pillow)
1743 ("python2-numpy" ,python2-numpy)
1744 ("python2-scipy" ,python2-scipy)
1745 ("python2-matplotlib" ,python2-matplotlib)))
1746 (propagated-inputs
1747 `(("r-minimal" ,r-minimal)
1748 ("libsvm" ,libsvm)
1749 ("randomjungle" ,randomjungle)))
1750 (native-inputs
1751 `(("unzip" ,unzip)))
1752 (home-page "http://couger.oit.duke.edu")
1753 (synopsis "Identify co-factors in sets of genomic regions")
1754 (description
1755 "COUGER can be applied to any two sets of genomic regions bound by
1756 paralogous TFs (e.g., regions derived from ChIP-seq experiments) to identify
1757 putative co-factors that provide specificity to each TF. The framework
1758 determines the genomic targets uniquely-bound by each TF, and identifies a
1759 small set of co-factors that best explain the in vivo binding differences
1760 between the two TFs.
1761
1762 COUGER uses classification algorithms (support vector machines and random
1763 forests) with features that reflect the DNA binding specificities of putative
1764 co-factors. The features are generated either from high-throughput TF-DNA
1765 binding data (from protein binding microarray experiments), or from large
1766 collections of DNA motifs.")
1767 (license license:gpl3+)))
1768
1769 (define-public clustal-omega
1770 (package
1771 (name "clustal-omega")
1772 (version "1.2.1")
1773 (source (origin
1774 (method url-fetch)
1775 (uri (string-append
1776 "http://www.clustal.org/omega/clustal-omega-"
1777 version ".tar.gz"))
1778 (sha256
1779 (base32
1780 "02ibkx0m0iwz8nscg998bh41gg251y56cgh86bvyrii5m8kjgwqf"))))
1781 (build-system gnu-build-system)
1782 (inputs
1783 `(("argtable" ,argtable)))
1784 (home-page "http://www.clustal.org/omega/")
1785 (synopsis "Multiple sequence aligner for protein and DNA/RNA")
1786 (description
1787 "Clustal-Omega is a general purpose multiple sequence alignment (MSA)
1788 program for protein and DNA/RNA. It produces high quality MSAs and is capable
1789 of handling data-sets of hundreds of thousands of sequences in reasonable
1790 time.")
1791 (license license:gpl2+)))
1792
1793 (define-public crossmap
1794 (package
1795 (name "crossmap")
1796 (version "0.2.1")
1797 (source (origin
1798 (method url-fetch)
1799 (uri (string-append "mirror://sourceforge/crossmap/CrossMap-"
1800 version ".tar.gz"))
1801 (sha256
1802 (base32
1803 "07y179f63d7qnzdvkqcziwk9bs3k4zhp81q392fp1hwszjdvy22f"))
1804 ;; This patch has been sent upstream already and is available
1805 ;; for download from Sourceforge, but it has not been merged.
1806 (patches (search-patches "crossmap-allow-system-pysam.patch"))
1807 (modules '((guix build utils)))
1808 ;; remove bundled copy of pysam
1809 (snippet
1810 '(delete-file-recursively "lib/pysam"))))
1811 (build-system python-build-system)
1812 (arguments
1813 `(#:python ,python-2
1814 #:phases
1815 (alist-cons-after
1816 'unpack 'set-env
1817 (lambda _ (setenv "CROSSMAP_USE_SYSTEM_PYSAM" "1"))
1818 %standard-phases)))
1819 (inputs
1820 `(("python-numpy" ,python2-numpy)
1821 ("python-pysam" ,python2-pysam)
1822 ("zlib" ,zlib)))
1823 (native-inputs
1824 `(("python-cython" ,python2-cython)
1825 ("python-nose" ,python2-nose)))
1826 (home-page "http://crossmap.sourceforge.net/")
1827 (synopsis "Convert genome coordinates between assemblies")
1828 (description
1829 "CrossMap is a program for conversion of genome coordinates or annotation
1830 files between different genome assemblies. It supports most commonly used
1831 file formats including SAM/BAM, Wiggle/BigWig, BED, GFF/GTF, VCF.")
1832 (license license:gpl2+)))
1833
1834 (define-public cufflinks
1835 (package
1836 (name "cufflinks")
1837 (version "2.2.1")
1838 (source (origin
1839 (method url-fetch)
1840 (uri (string-append "http://cole-trapnell-lab.github.io/"
1841 "cufflinks/assets/downloads/cufflinks-"
1842 version ".tar.gz"))
1843 (sha256
1844 (base32
1845 "1bnm10p8m7zq4qiipjhjqb24csiqdm1pwc8c795z253r2xk6ncg8"))))
1846 (build-system gnu-build-system)
1847 (arguments
1848 `(#:make-flags
1849 (list
1850 ;; The includes for "eigen" are located in a subdirectory.
1851 (string-append "EIGEN_CPPFLAGS="
1852 "-I" (assoc-ref %build-inputs "eigen")
1853 "/include/eigen3/")
1854 ;; Cufflinks must be linked with various boost libraries.
1855 (string-append "LDFLAGS="
1856 (string-join '("-lboost_system"
1857 "-lboost_serialization"
1858 "-lboost_thread"))))
1859 #:phases
1860 (modify-phases %standard-phases
1861 (add-after 'unpack 'fix-search-for-bam
1862 (lambda _
1863 (substitute* '("ax_bam.m4"
1864 "configure"
1865 "src/hits.h")
1866 (("<bam/sam\\.h>") "<samtools/sam.h>")
1867 (("<bam/bam\\.h>") "<samtools/bam.h>")
1868 (("<bam/version\\.hpp>") "<samtools/version.h>"))
1869 #t)))
1870 #:configure-flags
1871 (list (string-append "--with-bam="
1872 (assoc-ref %build-inputs "samtools")))))
1873 (inputs
1874 `(("eigen" ,eigen)
1875 ("samtools" ,samtools-0.1)
1876 ("htslib" ,htslib)
1877 ("boost" ,boost)
1878 ("python" ,python-2)
1879 ("zlib" ,zlib)))
1880 (home-page "http://cole-trapnell-lab.github.io/cufflinks/")
1881 (synopsis "Transcriptome assembly and RNA-Seq expression analysis")
1882 (description
1883 "Cufflinks assembles RNA transcripts, estimates their abundances,
1884 and tests for differential expression and regulation in RNA-Seq
1885 samples. It accepts aligned RNA-Seq reads and assembles the
1886 alignments into a parsimonious set of transcripts. Cufflinks then
1887 estimates the relative abundances of these transcripts based on how
1888 many reads support each one, taking into account biases in library
1889 preparation protocols.")
1890 (license license:boost1.0)))
1891
1892 (define-public cutadapt
1893 (package
1894 (name "cutadapt")
1895 (version "1.12")
1896 (source (origin
1897 (method url-fetch)
1898 (uri (string-append
1899 "https://github.com/marcelm/cutadapt/archive/v"
1900 version ".tar.gz"))
1901 (file-name (string-append name "-" version ".tar.gz"))
1902 (sha256
1903 (base32
1904 "19smhh6444ikn4jlmyhvffw4m5aw7yg07rqsk7arg8dkwyga1i4v"))))
1905 (build-system python-build-system)
1906 (arguments
1907 `(#:phases
1908 (modify-phases %standard-phases
1909 ;; The tests must be run after installation.
1910 (delete 'check)
1911 (add-after 'install 'check
1912 (lambda* (#:key inputs outputs #:allow-other-keys)
1913 (setenv "PYTHONPATH"
1914 (string-append
1915 (getenv "PYTHONPATH")
1916 ":" (assoc-ref outputs "out")
1917 "/lib/python"
1918 (string-take (string-take-right
1919 (assoc-ref inputs "python") 5) 3)
1920 "/site-packages"))
1921 (zero? (system* "nosetests" "-P" "tests")))))))
1922 (inputs
1923 `(("python-xopen" ,python-xopen)))
1924 (native-inputs
1925 `(("python-cython" ,python-cython)
1926 ("python-nose" ,python-nose)))
1927 (home-page "https://cutadapt.readthedocs.io/en/stable/")
1928 (synopsis "Remove adapter sequences from nucleotide sequencing reads")
1929 (description
1930 "Cutadapt finds and removes adapter sequences, primers, poly-A tails and
1931 other types of unwanted sequence from high-throughput sequencing reads.")
1932 (license license:expat)))
1933
1934 (define-public libbigwig
1935 (package
1936 (name "libbigwig")
1937 (version "0.1.4")
1938 (source (origin
1939 (method url-fetch)
1940 (uri (string-append "https://github.com/dpryan79/libBigWig/"
1941 "archive/" version ".tar.gz"))
1942 (file-name (string-append name "-" version ".tar.gz"))
1943 (sha256
1944 (base32
1945 "098rjh35pi4a9q83n8wiwvyzykjqj6l8q189p1xgfw4ghywdlvw1"))))
1946 (build-system gnu-build-system)
1947 (arguments
1948 `(#:test-target "test"
1949 #:make-flags
1950 (list "CC=gcc"
1951 (string-append "prefix=" (assoc-ref %outputs "out")))
1952 #:phases
1953 (modify-phases %standard-phases
1954 (delete 'configure)
1955 (add-before 'check 'disable-curl-test
1956 (lambda _
1957 (substitute* "Makefile"
1958 (("./test/testRemote.*") ""))
1959 #t))
1960 ;; This has been fixed with the upstream commit 4ff6959cd8a0, but
1961 ;; there has not yet been a release containing this change.
1962 (add-before 'install 'create-target-dirs
1963 (lambda* (#:key outputs #:allow-other-keys)
1964 (let ((out (assoc-ref outputs "out")))
1965 (mkdir-p (string-append out "/lib"))
1966 (mkdir-p (string-append out "/include"))
1967 #t))))))
1968 (inputs
1969 `(("zlib" ,zlib)
1970 ("curl" ,curl)))
1971 (native-inputs
1972 `(("doxygen" ,doxygen)))
1973 (home-page "https://github.com/dpryan79/libBigWig")
1974 (synopsis "C library for handling bigWig files")
1975 (description
1976 "This package provides a C library for parsing local and remote BigWig
1977 files.")
1978 (license license:expat)))
1979
1980 (define-public python-pybigwig
1981 (package
1982 (name "python-pybigwig")
1983 (version "0.2.5")
1984 (source (origin
1985 (method url-fetch)
1986 (uri (pypi-uri "pyBigWig" version))
1987 (sha256
1988 (base32
1989 "0yrpdxg3y0sny25x4w22lv1k47jzccqjmg7j4bp0hywklvp0hg7d"))
1990 (modules '((guix build utils)))
1991 (snippet
1992 '(begin
1993 ;; Delete bundled libBigWig sources
1994 (delete-file-recursively "libBigWig")))))
1995 (build-system python-build-system)
1996 (arguments
1997 `(#:phases
1998 (modify-phases %standard-phases
1999 (add-after 'unpack 'link-with-libBigWig
2000 (lambda* (#:key inputs #:allow-other-keys)
2001 (substitute* "setup.py"
2002 (("libs=\\[") "libs=[\"BigWig\", "))
2003 #t)))))
2004 (inputs
2005 `(("libbigwig" ,libbigwig)
2006 ("zlib" ,zlib)
2007 ("curl" ,curl)))
2008 (home-page "https://github.com/dpryan79/pyBigWig")
2009 (synopsis "Access bigWig files in Python using libBigWig")
2010 (description
2011 "This package provides Python bindings to the libBigWig library for
2012 accessing bigWig files.")
2013 (license license:expat)))
2014
2015 (define-public python2-pybigwig
2016 (package-with-python2 python-pybigwig))
2017
2018 (define-public python-dendropy
2019 (package
2020 (name "python-dendropy")
2021 (version "4.2.0")
2022 (source
2023 (origin
2024 (method url-fetch)
2025 (uri (pypi-uri "DendroPy" version))
2026 (sha256
2027 (base32
2028 "15c7s3d5gf19ljsxvq5advaa752wfi7pwrdjyhzmg85hccyvp47p"))
2029 (patches (search-patches "python-dendropy-fix-tests.patch"))))
2030 (build-system python-build-system)
2031 (home-page "http://packages.python.org/DendroPy/")
2032 (synopsis "Library for phylogenetics and phylogenetic computing")
2033 (description
2034 "DendroPy is a library for phylogenetics and phylogenetic computing: reading,
2035 writing, simulation, processing and manipulation of phylogenetic
2036 trees (phylogenies) and characters.")
2037 (license license:bsd-3)
2038 (properties `((python2-variant . ,(delay python2-dendropy))))))
2039
2040 (define-public python2-dendropy
2041 (let ((base (package-with-python2 (strip-python2-variant python-dendropy))))
2042 (package
2043 (inherit base)
2044 (arguments
2045 `(#:python ,python-2
2046 #:phases
2047 (modify-phases %standard-phases
2048 (replace 'check
2049 ;; There is currently a test failure that only happens on some
2050 ;; systems, and only using "setup.py test"
2051 (lambda _ (zero? (system* "nosetests")))))))
2052 (native-inputs `(("python2-nose" ,python2-nose)
2053 ,@(package-native-inputs base))))))
2054
2055 (define-public python-py2bit
2056 (package
2057 (name "python-py2bit")
2058 (version "0.2.1")
2059 (source
2060 (origin
2061 (method url-fetch)
2062 (uri (pypi-uri "py2bit" version))
2063 (sha256
2064 (base32
2065 "1cdf4qlmgwsh1f4k0wdv2sr8x9qn4366p0k3614vbd0fpqiarxrl"))))
2066 (build-system python-build-system)
2067 (home-page "https://github.com/dpryan79/py2bit")
2068 (synopsis "Access 2bit files using lib2bit")
2069 (description
2070 "This package provides Python bindings for lib2bit to access 2bit files
2071 with Python.")
2072 (license license:expat)))
2073
2074 (define-public deeptools
2075 (package
2076 (name "deeptools")
2077 (version "2.5.1")
2078 (source (origin
2079 (method url-fetch)
2080 (uri (string-append "https://github.com/fidelram/deepTools/"
2081 "archive/" version ".tar.gz"))
2082 (file-name (string-append name "-" version ".tar.gz"))
2083 (sha256
2084 (base32
2085 "1q8i12l2gvk4n2s8lhyzwhh9g4qbc8lrk5l7maz00yvd5g6z5540"))))
2086 (build-system python-build-system)
2087 (inputs
2088 `(("python-scipy" ,python-scipy)
2089 ("python-numpy" ,python-numpy)
2090 ("python-numpydoc" ,python-numpydoc)
2091 ("python-matplotlib" ,python-matplotlib)
2092 ("python-pysam" ,python-pysam)
2093 ("python-py2bit" ,python-py2bit)
2094 ("python-pybigwig" ,python-pybigwig)))
2095 (native-inputs
2096 `(("python-mock" ,python-mock) ;for tests
2097 ("python-nose" ,python-nose) ;for tests
2098 ("python-pytz" ,python-pytz))) ;for tests
2099 (home-page "https://github.com/fidelram/deepTools")
2100 (synopsis "Tools for normalizing and visualizing deep-sequencing data")
2101 (description
2102 "DeepTools addresses the challenge of handling the large amounts of data
2103 that are now routinely generated from DNA sequencing centers. To do so,
2104 deepTools contains useful modules to process the mapped reads data to create
2105 coverage files in standard bedGraph and bigWig file formats. By doing so,
2106 deepTools allows the creation of normalized coverage files or the comparison
2107 between two files (for example, treatment and control). Finally, using such
2108 normalized and standardized files, multiple visualizations can be created to
2109 identify enrichments with functional annotations of the genome.")
2110 (license license:gpl3+)))
2111
2112 (define-public diamond
2113 (package
2114 (name "diamond")
2115 (version "0.9.9")
2116 (source (origin
2117 (method url-fetch)
2118 (uri (string-append
2119 "https://github.com/bbuchfink/diamond/archive/v"
2120 version ".tar.gz"))
2121 (file-name (string-append name "-" version ".tar.gz"))
2122 (sha256
2123 (base32
2124 "04i03046g3l2vk9722z47r1p7j415g97vvz6d76ywmbawyiihcb1"))))
2125 (build-system cmake-build-system)
2126 (arguments
2127 '(#:tests? #f ; no "check" target
2128 #:phases
2129 (modify-phases %standard-phases
2130 (add-after 'unpack 'remove-native-compilation
2131 (lambda _
2132 (substitute* "CMakeLists.txt" (("-march=native") ""))
2133 #t)))))
2134 (inputs
2135 `(("zlib" ,zlib)))
2136 (home-page "https://github.com/bbuchfink/diamond")
2137 (synopsis "Accelerated BLAST compatible local sequence aligner")
2138 (description
2139 "DIAMOND is a BLAST-compatible local aligner for mapping protein and
2140 translated DNA query sequences against a protein reference database (BLASTP
2141 and BLASTX alignment mode). The speedup over BLAST is up to 20,000 on short
2142 reads at a typical sensitivity of 90-99% relative to BLAST depending on the
2143 data and settings.")
2144 (license license:agpl3+)))
2145
2146 (define-public discrover
2147 (package
2148 (name "discrover")
2149 (version "1.6.0")
2150 (source
2151 (origin
2152 (method url-fetch)
2153 (uri (string-append "https://github.com/maaskola/discrover/archive/"
2154 version ".tar.gz"))
2155 (file-name (string-append name "-" version ".tar.gz"))
2156 (sha256
2157 (base32
2158 "0rah9ja4m0rl5mldd6vag9rwrivw1zrqxssfq8qx64m7961fp68k"))))
2159 (build-system cmake-build-system)
2160 (arguments
2161 `(#:tests? #f ; there are no tests
2162 #:phases
2163 (modify-phases %standard-phases
2164 (add-after 'unpack 'add-missing-includes
2165 (lambda _
2166 (substitute* "src/executioninformation.hpp"
2167 (("#define EXECUTIONINFORMATION_HPP" line)
2168 (string-append line "\n#include <random>")))
2169 (substitute* "src/plasma/fasta.hpp"
2170 (("#define FASTA_HPP" line)
2171 (string-append line "\n#include <random>")))
2172 #t)))))
2173 (inputs
2174 `(("boost" ,boost)
2175 ("cairo" ,cairo)))
2176 (native-inputs
2177 `(("texlive" ,texlive)
2178 ("imagemagick" ,imagemagick)))
2179 (home-page "http://dorina.mdc-berlin.de/public/rajewsky/discrover/")
2180 (synopsis "Discover discriminative nucleotide sequence motifs")
2181 (description "Discrover is a motif discovery method to find binding sites
2182 of nucleic acid binding proteins.")
2183 (license license:gpl3+)))
2184
2185 (define-public eigensoft
2186 (let ((revision "1")
2187 (commit "b14d1e202e21e532536ff8004f0419cd5e259dc7"))
2188 (package
2189 (name "eigensoft")
2190 (version (string-append "6.1.2-"
2191 revision "."
2192 (string-take commit 9)))
2193 (source
2194 (origin
2195 (method git-fetch)
2196 (uri (git-reference
2197 (url "https://github.com/DReichLab/EIG.git")
2198 (commit commit)))
2199 (file-name (string-append "eigensoft-" commit "-checkout"))
2200 (sha256
2201 (base32
2202 "0f5m6k2j5c16xc3xbywcs989xyc26ncy1zfzp9j9n55n9r4xcaiq"))
2203 (modules '((guix build utils)))
2204 ;; Remove pre-built binaries.
2205 (snippet '(begin
2206 (delete-file-recursively "bin")
2207 (mkdir "bin")
2208 #t))))
2209 (build-system gnu-build-system)
2210 (arguments
2211 `(#:tests? #f ; There are no tests.
2212 #:make-flags '("CC=gcc")
2213 #:phases
2214 (modify-phases %standard-phases
2215 ;; There is no configure phase, but the Makefile is in a
2216 ;; sub-directory.
2217 (replace 'configure
2218 (lambda _
2219 (chdir "src")
2220 ;; The link flags are incomplete.
2221 (substitute* "Makefile"
2222 (("-lgsl") "-lgsl -lm -llapack -llapacke -lpthread"))
2223 #t))
2224 ;; The provided install target only copies executables to
2225 ;; the "bin" directory in the build root.
2226 (add-after 'install 'actually-install
2227 (lambda* (#:key outputs #:allow-other-keys)
2228 (let* ((out (assoc-ref outputs "out"))
2229 (bin (string-append out "/bin")))
2230 (for-each (lambda (file)
2231 (install-file file bin))
2232 (find-files "../bin" ".*"))
2233 #t))))))
2234 (inputs
2235 `(("gsl" ,gsl)
2236 ("lapack" ,lapack)
2237 ("openblas" ,openblas)
2238 ("perl" ,perl)
2239 ("gfortran" ,gfortran "lib")))
2240 (home-page "https://github.com/DReichLab/EIG")
2241 (synopsis "Tools for population genetics")
2242 (description "The EIGENSOFT package provides tools for population
2243 genetics and stratification correction. EIGENSOFT implements methods commonly
2244 used in population genetics analyses such as PCA, computation of Tracy-Widom
2245 statistics, and finding related individuals in structured populations. It
2246 comes with a built-in plotting script and supports multiple file formats and
2247 quantitative phenotypes.")
2248 ;; The license of the eigensoft tools is Expat, but since it's
2249 ;; linking with the GNU Scientific Library (GSL) the effective
2250 ;; license is the GPL.
2251 (license license:gpl3+))))
2252
2253 (define-public edirect
2254 (package
2255 (name "edirect")
2256 (version "4.10")
2257 (source (origin
2258 (method url-fetch)
2259 (uri (string-append "ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/"
2260 "versions/2016-05-03/edirect.tar.gz"))
2261 (sha256
2262 (base32
2263 "15zsprak5yh8c1yrz4r1knmb5s8qcmdid4xdhkh3lqcv64l60hli"))))
2264 (build-system perl-build-system)
2265 (arguments
2266 `(#:tests? #f ;no "check" target
2267 #:phases
2268 (modify-phases %standard-phases
2269 (delete 'configure)
2270 (delete 'build)
2271 (replace 'install
2272 (lambda* (#:key outputs #:allow-other-keys)
2273 (let ((target (string-append (assoc-ref outputs "out")
2274 "/bin")))
2275 (mkdir-p target)
2276 (install-file "edirect.pl" target)
2277 #t)))
2278 (add-after
2279 'install 'wrap-program
2280 (lambda* (#:key inputs outputs #:allow-other-keys)
2281 ;; Make sure 'edirect.pl' finds all perl inputs at runtime.
2282 (let* ((out (assoc-ref outputs "out"))
2283 (path (getenv "PERL5LIB")))
2284 (wrap-program (string-append out "/bin/edirect.pl")
2285 `("PERL5LIB" ":" prefix (,path)))))))))
2286 (inputs
2287 `(("perl-html-parser" ,perl-html-parser)
2288 ("perl-encode-locale" ,perl-encode-locale)
2289 ("perl-file-listing" ,perl-file-listing)
2290 ("perl-html-tagset" ,perl-html-tagset)
2291 ("perl-html-tree" ,perl-html-tree)
2292 ("perl-http-cookies" ,perl-http-cookies)
2293 ("perl-http-date" ,perl-http-date)
2294 ("perl-http-message" ,perl-http-message)
2295 ("perl-http-negotiate" ,perl-http-negotiate)
2296 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
2297 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
2298 ("perl-net-http" ,perl-net-http)
2299 ("perl-uri" ,perl-uri)
2300 ("perl-www-robotrules" ,perl-www-robotrules)
2301 ("perl" ,perl)))
2302 (home-page "http://www.ncbi.nlm.nih.gov/books/NBK179288/")
2303 (synopsis "Tools for accessing the NCBI's set of databases")
2304 (description
2305 "Entrez Direct (EDirect) is a method for accessing the National Center
2306 for Biotechnology Information's (NCBI) set of interconnected
2307 databases (publication, sequence, structure, gene, variation, expression,
2308 etc.) from a terminal. Functions take search terms from command-line
2309 arguments. Individual operations are combined to build multi-step queries.
2310 Record retrieval and formatting normally complete the process.
2311
2312 EDirect also provides an argument-driven function that simplifies the
2313 extraction of data from document summaries or other results that are returned
2314 in structured XML format. This can eliminate the need for writing custom
2315 software to answer ad hoc questions.")
2316 (license license:public-domain)))
2317
2318 (define-public exonerate
2319 (package
2320 (name "exonerate")
2321 (version "2.4.0")
2322 (source
2323 (origin
2324 (method url-fetch)
2325 (uri
2326 (string-append
2327 "http://ftp.ebi.ac.uk/pub/software/vertebrategenomics/exonerate/"
2328 "exonerate-" version ".tar.gz"))
2329 (sha256
2330 (base32
2331 "0hj0m9xygiqsdxvbg79wq579kbrx1mdrabi2bzqz2zn9qwfjcjgq"))))
2332 (build-system gnu-build-system)
2333 (arguments
2334 `(#:parallel-build? #f)) ; Building in parallel fails on some machines.
2335 (native-inputs
2336 `(("pkg-config" ,pkg-config)))
2337 (inputs
2338 `(("glib" ,glib)))
2339 (home-page
2340 "https://www.ebi.ac.uk/about/vertebrate-genomics/software/exonerate")
2341 (synopsis "Generic tool for biological sequence alignment")
2342 (description
2343 "Exonerate is a generic tool for pairwise sequence comparison. It allows
2344 the alignment of sequences using a many alignment models, either exhaustive
2345 dynamic programming or a variety of heuristics.")
2346 (license license:gpl3)))
2347
2348 (define-public express
2349 (package
2350 (name "express")
2351 (version "1.5.1")
2352 (source (origin
2353 (method url-fetch)
2354 (uri
2355 (string-append
2356 "http://bio.math.berkeley.edu/eXpress/downloads/express-"
2357 version "/express-" version "-src.tgz"))
2358 (sha256
2359 (base32
2360 "03rczxd0gjp2l1jxcmjfmf5j94j77zqyxa6x063zsc585nj40n0c"))))
2361 (build-system cmake-build-system)
2362 (arguments
2363 `(#:tests? #f ;no "check" target
2364 #:phases
2365 (alist-cons-after
2366 'unpack 'use-shared-boost-libs-and-set-bamtools-paths
2367 (lambda* (#:key inputs #:allow-other-keys)
2368 (substitute* "CMakeLists.txt"
2369 (("set\\(Boost_USE_STATIC_LIBS ON\\)")
2370 "set(Boost_USE_STATIC_LIBS OFF)")
2371 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/bamtools/include")
2372 (string-append (assoc-ref inputs "bamtools") "/include/bamtools")))
2373 (substitute* "src/CMakeLists.txt"
2374 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/\\.\\./bamtools/lib")
2375 (string-append (assoc-ref inputs "bamtools") "/lib/bamtools")))
2376 #t)
2377 %standard-phases)))
2378 (inputs
2379 `(("boost" ,boost)
2380 ("bamtools" ,bamtools)
2381 ("protobuf" ,protobuf)
2382 ("zlib" ,zlib)))
2383 (home-page "http://bio.math.berkeley.edu/eXpress")
2384 (synopsis "Streaming quantification for high-throughput genomic sequencing")
2385 (description
2386 "eXpress is a streaming tool for quantifying the abundances of a set of
2387 target sequences from sampled subsequences. Example applications include
2388 transcript-level RNA-Seq quantification, allele-specific/haplotype expression
2389 analysis (from RNA-Seq), transcription factor binding quantification in
2390 ChIP-Seq, and analysis of metagenomic data.")
2391 (license license:artistic2.0)))
2392
2393 (define-public express-beta-diversity
2394 (package
2395 (name "express-beta-diversity")
2396 (version "1.0.7")
2397 (source (origin
2398 (method url-fetch)
2399 (uri
2400 (string-append
2401 "https://github.com/dparks1134/ExpressBetaDiversity/archive/v"
2402 version ".tar.gz"))
2403 (file-name (string-append name "-" version ".tar.gz"))
2404 (sha256
2405 (base32
2406 "1djvdlmqvjf6h0zq7w36y8cl5cli6rgj86x65znl48agnwmzxfxr"))))
2407 (build-system gnu-build-system)
2408 (arguments
2409 `(#:phases
2410 (modify-phases %standard-phases
2411 (delete 'configure)
2412 (add-before 'build 'enter-source (lambda _ (chdir "source") #t))
2413 (replace 'check
2414 (lambda _ (zero? (system* "../bin/ExpressBetaDiversity"
2415 "-u"))))
2416 (add-after 'check 'exit-source (lambda _ (chdir "..") #t))
2417 (replace 'install
2418 (lambda* (#:key outputs #:allow-other-keys)
2419 (let ((bin (string-append (assoc-ref outputs "out")
2420 "/bin")))
2421 (mkdir-p bin)
2422 (install-file "scripts/convertToEBD.py" bin)
2423 (install-file "bin/ExpressBetaDiversity" bin)
2424 #t))))))
2425 (inputs
2426 `(("python" ,python-2)))
2427 (home-page "http://kiwi.cs.dal.ca/Software/ExpressBetaDiversity")
2428 (synopsis "Taxon- and phylogenetic-based beta diversity measures")
2429 (description
2430 "Express Beta Diversity (EBD) calculates ecological beta diversity
2431 (dissimilarity) measures between biological communities. EBD implements a
2432 variety of diversity measures including those that make use of phylogenetic
2433 similarity of community members.")
2434 (license license:gpl3+)))
2435
2436 (define-public fasttree
2437 (package
2438 (name "fasttree")
2439 (version "2.1.10")
2440 (source (origin
2441 (method url-fetch)
2442 (uri (string-append
2443 "http://www.microbesonline.org/fasttree/FastTree-"
2444 version ".c"))
2445 (sha256
2446 (base32
2447 "0vcjdvy1j4m702vmak4svbfkrpcw63k7wymfksjp9a982zy8kjsl"))))
2448 (build-system gnu-build-system)
2449 (arguments
2450 `(#:tests? #f ; no "check" target
2451 #:phases
2452 (modify-phases %standard-phases
2453 (delete 'unpack)
2454 (delete 'configure)
2455 (replace 'build
2456 (lambda* (#:key source #:allow-other-keys)
2457 (and (zero? (system* "gcc"
2458 "-O3"
2459 "-finline-functions"
2460 "-funroll-loops"
2461 "-Wall"
2462 "-o"
2463 "FastTree"
2464 source
2465 "-lm"))
2466 (zero? (system* "gcc"
2467 "-DOPENMP"
2468 "-fopenmp"
2469 "-O3"
2470 "-finline-functions"
2471 "-funroll-loops"
2472 "-Wall"
2473 "-o"
2474 "FastTreeMP"
2475 source
2476 "-lm")))))
2477 (replace 'install
2478 (lambda* (#:key outputs #:allow-other-keys)
2479 (let ((bin (string-append (assoc-ref outputs "out")
2480 "/bin")))
2481 (mkdir-p bin)
2482 (install-file "FastTree" bin)
2483 (install-file "FastTreeMP" bin)
2484 #t))))))
2485 (home-page "http://www.microbesonline.org/fasttree")
2486 (synopsis "Infers approximately-maximum-likelihood phylogenetic trees")
2487 (description
2488 "FastTree can handle alignments with up to a million of sequences in a
2489 reasonable amount of time and memory. For large alignments, FastTree is
2490 100-1,000 times faster than PhyML 3.0 or RAxML 7.")
2491 (license license:gpl2+)))
2492
2493 (define-public fastx-toolkit
2494 (package
2495 (name "fastx-toolkit")
2496 (version "0.0.14")
2497 (source (origin
2498 (method url-fetch)
2499 (uri
2500 (string-append
2501 "https://github.com/agordon/fastx_toolkit/releases/download/"
2502 version "/fastx_toolkit-" version ".tar.bz2"))
2503 (sha256
2504 (base32
2505 "01jqzw386873sr0pjp1wr4rn8fsga2vxs1qfmicvx1pjr72007wy"))))
2506 (build-system gnu-build-system)
2507 (inputs
2508 `(("libgtextutils" ,libgtextutils)))
2509 (native-inputs
2510 `(("pkg-config" ,pkg-config)))
2511 (home-page "http://hannonlab.cshl.edu/fastx_toolkit/")
2512 (synopsis "Tools for FASTA/FASTQ file preprocessing")
2513 (description
2514 "The FASTX-Toolkit is a collection of command line tools for Short-Reads
2515 FASTA/FASTQ files preprocessing.
2516
2517 Next-Generation sequencing machines usually produce FASTA or FASTQ files,
2518 containing multiple short-reads sequences. The main processing of such
2519 FASTA/FASTQ files is mapping the sequences to reference genomes. However, it
2520 is sometimes more productive to preprocess the files before mapping the
2521 sequences to the genome---manipulating the sequences to produce better mapping
2522 results. The FASTX-Toolkit tools perform some of these preprocessing tasks.")
2523 (license license:agpl3+)))
2524
2525 (define-public flexbar
2526 (package
2527 (name "flexbar")
2528 (version "2.5")
2529 (source (origin
2530 (method url-fetch)
2531 (uri
2532 (string-append "mirror://sourceforge/flexbar/"
2533 version "/flexbar_v" version "_src.tgz"))
2534 (sha256
2535 (base32
2536 "13jaykc3y1x8y5nn9j8ljnb79s5y51kyxz46hdmvvjj6qhyympmf"))))
2537 (build-system cmake-build-system)
2538 (arguments
2539 `(#:configure-flags (list
2540 (string-append "-DFLEXBAR_BINARY_DIR="
2541 (assoc-ref %outputs "out")
2542 "/bin/"))
2543 #:phases
2544 (alist-replace
2545 'check
2546 (lambda* (#:key outputs #:allow-other-keys)
2547 (setenv "PATH" (string-append
2548 (assoc-ref outputs "out") "/bin:"
2549 (getenv "PATH")))
2550 (chdir "../flexbar_v2.5_src/test")
2551 (zero? (system* "bash" "flexbar_validate.sh")))
2552 (alist-delete 'install %standard-phases))))
2553 (inputs
2554 `(("tbb" ,tbb)
2555 ("zlib" ,zlib)))
2556 (native-inputs
2557 `(("pkg-config" ,pkg-config)
2558 ("seqan" ,seqan)))
2559 (home-page "http://flexbar.sourceforge.net")
2560 (synopsis "Barcode and adapter removal tool for sequencing platforms")
2561 (description
2562 "Flexbar preprocesses high-throughput nucleotide sequencing data
2563 efficiently. It demultiplexes barcoded runs and removes adapter sequences.
2564 Moreover, trimming and filtering features are provided. Flexbar increases
2565 read mapping rates and improves genome and transcriptome assemblies. It
2566 supports next-generation sequencing data in fasta/q and csfasta/q format from
2567 Illumina, Roche 454, and the SOLiD platform.")
2568 (license license:gpl3)))
2569
2570 (define-public fraggenescan
2571 (package
2572 (name "fraggenescan")
2573 (version "1.30")
2574 (source
2575 (origin
2576 (method url-fetch)
2577 (uri
2578 (string-append "mirror://sourceforge/fraggenescan/"
2579 "FragGeneScan" version ".tar.gz"))
2580 (sha256
2581 (base32 "158dcnwczgcyhwm4qlx19sanrwgdpzf6bn2y57mbpx55lkgz1mzj"))))
2582 (build-system gnu-build-system)
2583 (arguments
2584 `(#:phases
2585 (modify-phases %standard-phases
2586 (delete 'configure)
2587 (add-before 'build 'patch-paths
2588 (lambda* (#:key outputs #:allow-other-keys)
2589 (let* ((out (string-append (assoc-ref outputs "out")))
2590 (share (string-append out "/share/fraggenescan/")))
2591 (substitute* "run_FragGeneScan.pl"
2592 (("system\\(\"rm")
2593 (string-append "system(\"" (which "rm")))
2594 (("system\\(\"mv")
2595 (string-append "system(\"" (which "mv")))
2596 (("\\\"awk") (string-append "\"" (which "awk")))
2597 ;; This script and other programs expect the training files
2598 ;; to be in the non-standard location bin/train/XXX. Change
2599 ;; this to be share/fraggenescan/train/XXX instead.
2600 (("^\\$train.file = \\$dir.*")
2601 (string-append "$train_file = \""
2602 share
2603 "train/\".$FGS_train_file;")))
2604 (substitute* "run_hmm.c"
2605 (("^ strcat\\(train_dir, \\\"train/\\\"\\);")
2606 (string-append " strcpy(train_dir, \"" share "/train/\");"))))
2607 #t))
2608 (replace 'build
2609 (lambda _ (and (zero? (system* "make" "clean"))
2610 (zero? (system* "make" "fgs")))))
2611 (replace 'install
2612 (lambda* (#:key outputs #:allow-other-keys)
2613 (let* ((out (string-append (assoc-ref outputs "out")))
2614 (bin (string-append out "/bin/"))
2615 (share (string-append out "/share/fraggenescan/train")))
2616 (install-file "run_FragGeneScan.pl" bin)
2617 (install-file "FragGeneScan" bin)
2618 (copy-recursively "train" share))))
2619 (delete 'check)
2620 (add-after 'install 'post-install-check
2621 ;; In lieu of 'make check', run one of the examples and check the
2622 ;; output files gets created.
2623 (lambda* (#:key outputs #:allow-other-keys)
2624 (let* ((out (string-append (assoc-ref outputs "out")))
2625 (bin (string-append out "/bin/"))
2626 (frag (string-append bin "run_FragGeneScan.pl")))
2627 (and (zero? (system* frag ; Test complete genome.
2628 "-genome=./example/NC_000913.fna"
2629 "-out=./test2"
2630 "-complete=1"
2631 "-train=complete"))
2632 (file-exists? "test2.faa")
2633 (file-exists? "test2.ffn")
2634 (file-exists? "test2.gff")
2635 (file-exists? "test2.out")
2636 (zero? (system* ; Test incomplete sequences.
2637 frag
2638 "-genome=./example/NC_000913-fgs.ffn"
2639 "-out=out"
2640 "-complete=0"
2641 "-train=454_30")))))))))
2642 (inputs
2643 `(("perl" ,perl)
2644 ("python" ,python-2))) ;not compatible with python 3.
2645 (home-page "https://sourceforge.net/projects/fraggenescan/")
2646 (synopsis "Finds potentially fragmented genes in short reads")
2647 (description
2648 "FragGeneScan is a program for predicting bacterial and archaeal genes in
2649 short and error-prone DNA sequencing reads. It can also be applied to predict
2650 genes in incomplete assemblies or complete genomes.")
2651 ;; GPL3+ according to private correspondense with the authors.
2652 (license license:gpl3+)))
2653
2654 (define-public fxtract
2655 (let ((util-commit "776ca85a18a47492af3794745efcb4a905113115"))
2656 (package
2657 (name "fxtract")
2658 (version "2.3")
2659 (source
2660 (origin
2661 (method url-fetch)
2662 (uri (string-append
2663 "https://github.com/ctSkennerton/fxtract/archive/"
2664 version ".tar.gz"))
2665 (file-name (string-append "ctstennerton-util-"
2666 (string-take util-commit 7)
2667 "-checkout"))
2668 (sha256
2669 (base32
2670 "0275cfdhis8517hm01is62062swmi06fxzifq7mr3knbbxjlaiwj"))))
2671 (build-system gnu-build-system)
2672 (arguments
2673 `(#:make-flags (list
2674 (string-append "PREFIX=" (assoc-ref %outputs "out"))
2675 "CC=gcc")
2676 #:test-target "fxtract_test"
2677 #:phases
2678 (modify-phases %standard-phases
2679 (delete 'configure)
2680 (add-before 'build 'copy-util
2681 (lambda* (#:key inputs #:allow-other-keys)
2682 (rmdir "util")
2683 (copy-recursively (assoc-ref inputs "ctskennerton-util") "util")
2684 #t))
2685 ;; Do not use make install as this requires additional dependencies.
2686 (replace 'install
2687 (lambda* (#:key outputs #:allow-other-keys)
2688 (let* ((out (assoc-ref outputs "out"))
2689 (bin (string-append out"/bin")))
2690 (install-file "fxtract" bin)
2691 #t))))))
2692 (inputs
2693 `(("pcre" ,pcre)
2694 ("zlib" ,zlib)))
2695 (native-inputs
2696 ;; ctskennerton-util is licensed under GPL2.
2697 `(("ctskennerton-util"
2698 ,(origin
2699 (method git-fetch)
2700 (uri (git-reference
2701 (url "https://github.com/ctSkennerton/util.git")
2702 (commit util-commit)))
2703 (file-name (string-append
2704 "ctstennerton-util-" util-commit "-checkout"))
2705 (sha256
2706 (base32
2707 "0cls1hd4vgj3f36fpzzg4xc77d6f3hpc60cbpfmn2gdr7ykzzad7"))))))
2708 (home-page "https://github.com/ctSkennerton/fxtract")
2709 (synopsis "Extract sequences from FASTA and FASTQ files")
2710 (description
2711 "Fxtract extracts sequences from a protein or nucleotide fastx (FASTA
2712 or FASTQ) file given a subsequence. It uses a simple substring search for
2713 basic tasks but can change to using POSIX regular expressions, PCRE, hash
2714 lookups or multi-pattern searching as required. By default fxtract looks in
2715 the sequence of each record but can also be told to look in the header,
2716 comment or quality sections.")
2717 ;; 'util' requires SSE instructions.
2718 (supported-systems '("x86_64-linux"))
2719 (license license:expat))))
2720
2721 (define-public gemma
2722 (package
2723 (name "gemma")
2724 (version "0.96")
2725 (source (origin
2726 (method url-fetch)
2727 (uri (string-append "https://github.com/xiangzhou/GEMMA/archive/v"
2728 version ".tar.gz"))
2729 (file-name (string-append name "-" version ".tar.gz"))
2730 (sha256
2731 (base32
2732 "055ynn16gd12pf78n4vr2a9jlwsbwzajpdnf2y2yilg1krfff222"))
2733 (patches (search-patches "gemma-intel-compat.patch"))))
2734 (inputs
2735 `(("gsl" ,gsl)
2736 ("lapack" ,lapack)
2737 ("zlib" ,zlib)))
2738 (build-system gnu-build-system)
2739 (arguments
2740 `(#:make-flags
2741 '(,@(match (%current-system)
2742 ("x86_64-linux"
2743 '("FORCE_DYNAMIC=1"))
2744 ("i686-linux"
2745 '("FORCE_DYNAMIC=1" "FORCE_32BIT=1"))
2746 (_
2747 '("FORCE_DYNAMIC=1" "NO_INTEL_COMPAT=1"))))
2748 #:phases
2749 (modify-phases %standard-phases
2750 (delete 'configure)
2751 (add-before 'build 'bin-mkdir
2752 (lambda _
2753 (mkdir-p "bin")
2754 #t))
2755 (replace 'install
2756 (lambda* (#:key outputs #:allow-other-keys)
2757 (let ((out (assoc-ref outputs "out")))
2758 (install-file "bin/gemma"
2759 (string-append
2760 out "/bin")))
2761 #t)))
2762 #:tests? #f)) ; no tests included yet
2763 (home-page "https://github.com/xiangzhou/GEMMA")
2764 (synopsis "Tool for genome-wide efficient mixed model association")
2765 (description
2766 "Genome-wide Efficient Mixed Model Association (GEMMA) provides a
2767 standard linear mixed model resolver with application in genome-wide
2768 association studies (GWAS).")
2769 (license license:gpl3)))
2770
2771 (define-public grit
2772 (package
2773 (name "grit")
2774 (version "2.0.2")
2775 (source (origin
2776 (method url-fetch)
2777 (uri (string-append
2778 "https://github.com/nboley/grit/archive/"
2779 version ".tar.gz"))
2780 (file-name (string-append name "-" version ".tar.gz"))
2781 (sha256
2782 (base32
2783 "157in84dj70wimbind3x7sy1whs3h57qfgcnj2s6lrd38fbrb7mj"))))
2784 (build-system python-build-system)
2785 (arguments
2786 `(#:python ,python-2
2787 #:phases
2788 (alist-cons-after
2789 'unpack 'generate-from-cython-sources
2790 (lambda* (#:key inputs outputs #:allow-other-keys)
2791 ;; Delete these C files to force fresh generation from pyx sources.
2792 (delete-file "grit/sparsify_support_fns.c")
2793 (delete-file "grit/call_peaks_support_fns.c")
2794 (substitute* "setup.py"
2795 (("Cython.Setup") "Cython.Build")
2796 ;; Add numpy include path to fix compilation
2797 (("pyx\", \\]")
2798 (string-append "pyx\", ], include_dirs = ['"
2799 (assoc-ref inputs "python-numpy")
2800 "/lib/python2.7/site-packages/numpy/core/include/"
2801 "']"))) #t)
2802 %standard-phases)))
2803 (inputs
2804 `(("python-scipy" ,python2-scipy)
2805 ("python-numpy" ,python2-numpy)
2806 ("python-pysam" ,python2-pysam)
2807 ("python-networkx" ,python2-networkx)))
2808 (native-inputs
2809 `(("python-cython" ,python2-cython)))
2810 (home-page "http://grit-bio.org")
2811 (synopsis "Tool for integrative analysis of RNA-seq type assays")
2812 (description
2813 "GRIT is designed to use RNA-seq, TES, and TSS data to build and quantify
2814 full length transcript models. When none of these data sources are available,
2815 GRIT can be run by providing a candidate set of TES or TSS sites. In
2816 addition, GRIT can merge in reference junctions and gene boundaries. GRIT can
2817 also be run in quantification mode, where it uses a provided GTF file and just
2818 estimates transcript expression.")
2819 (license license:gpl3+)))
2820
2821 (define-public hisat
2822 (package
2823 (name "hisat")
2824 (version "0.1.4")
2825 (source (origin
2826 (method url-fetch)
2827 (uri (string-append
2828 "http://ccb.jhu.edu/software/hisat/downloads/hisat-"
2829 version "-beta-source.zip"))
2830 (sha256
2831 (base32
2832 "1k381ydranqxp09yf2y7w1d0chz5d59vb6jchi89hbb0prq19lk5"))))
2833 (build-system gnu-build-system)
2834 (arguments
2835 `(#:tests? #f ;no check target
2836 #:make-flags '("allall"
2837 ;; Disable unsupported `popcnt' instructions on
2838 ;; architectures other than x86_64
2839 ,@(if (string-prefix? "x86_64"
2840 (or (%current-target-system)
2841 (%current-system)))
2842 '()
2843 '("POPCNT_CAPABILITY=0")))
2844 #:phases
2845 (alist-cons-after
2846 'unpack 'patch-sources
2847 (lambda _
2848 ;; XXX Cannot use snippet because zip files are not supported
2849 (substitute* "Makefile"
2850 (("^CC = .*$") "CC = gcc")
2851 (("^CPP = .*$") "CPP = g++")
2852 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
2853 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
2854 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
2855 (substitute* '("hisat-build" "hisat-inspect")
2856 (("/usr/bin/env") (which "env"))))
2857 (alist-replace
2858 'install
2859 (lambda* (#:key outputs #:allow-other-keys)
2860 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
2861 (for-each (lambda (file)
2862 (install-file file bin))
2863 (find-files
2864 "."
2865 "hisat(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))))
2866 (alist-delete 'configure %standard-phases)))))
2867 (native-inputs
2868 `(("unzip" ,unzip)))
2869 (inputs
2870 `(("perl" ,perl)
2871 ("python" ,python)
2872 ("zlib" ,zlib)))
2873 ;; Non-portable SSE instructions are used so building fails on platforms
2874 ;; other than x86_64.
2875 (supported-systems '("x86_64-linux"))
2876 (home-page "http://ccb.jhu.edu/software/hisat/index.shtml")
2877 (synopsis "Hierarchical indexing for spliced alignment of transcripts")
2878 (description
2879 "HISAT is a fast and sensitive spliced alignment program for mapping
2880 RNA-seq reads. In addition to one global FM index that represents a whole
2881 genome, HISAT uses a large set of small FM indexes that collectively cover the
2882 whole genome. These small indexes (called local indexes) combined with
2883 several alignment strategies enable effective alignment of RNA-seq reads, in
2884 particular, reads spanning multiple exons.")
2885 (license license:gpl3+)))
2886
2887 (define-public hisat2
2888 (package
2889 (name "hisat2")
2890 (version "2.0.5")
2891 (source
2892 (origin
2893 (method url-fetch)
2894 ;; FIXME: a better source URL is
2895 ;; (string-append "ftp://ftp.ccb.jhu.edu/pub/infphilo/hisat2"
2896 ;; "/downloads/hisat2-" version "-source.zip")
2897 ;; with hash "0lywnr8kijwsc2aw10dwxic0n0yvip6fl3rjlvc8zzwahamy4x7g"
2898 ;; but it is currently unavailable.
2899 (uri "https://github.com/infphilo/hisat2/archive/cba6e8cb.tar.gz")
2900 (file-name (string-append name "-" version ".tar.gz"))
2901 (sha256
2902 (base32
2903 "1mf2hdsyv7cd97xm9mp9a4qws02yrj95y6w6f6cdwnq0klp81r50"))))
2904 (build-system gnu-build-system)
2905 (arguments
2906 `(#:tests? #f ; no check target
2907 #:make-flags (list "CC=gcc" "CXX=g++" "allall")
2908 #:modules ((guix build gnu-build-system)
2909 (guix build utils)
2910 (srfi srfi-26))
2911 #:phases
2912 (modify-phases %standard-phases
2913 (add-after 'unpack 'make-deterministic
2914 (lambda _
2915 (substitute* "Makefile"
2916 (("`date`") "0"))
2917 #t))
2918 (delete 'configure)
2919 (replace 'install
2920 (lambda* (#:key outputs #:allow-other-keys)
2921 (let* ((out (assoc-ref outputs "out"))
2922 (bin (string-append out "/bin/"))
2923 (doc (string-append out "/share/doc/hisat2/")))
2924 (for-each
2925 (cut install-file <> bin)
2926 (find-files "."
2927 "hisat2(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))
2928 (mkdir-p doc)
2929 (install-file "doc/manual.inc.html" doc))
2930 #t)))))
2931 (native-inputs
2932 `(("unzip" ,unzip) ; needed for archive from ftp
2933 ("perl" ,perl)
2934 ("pandoc" ,ghc-pandoc))) ; for documentation
2935 (home-page "http://ccb.jhu.edu/software/hisat2/index.shtml")
2936 (synopsis "Graph-based alignment of genomic sequencing reads")
2937 (description "HISAT2 is a fast and sensitive alignment program for mapping
2938 next-generation sequencing reads (both DNA and RNA) to a population of human
2939 genomes (as well as to a single reference genome). In addition to using one
2940 global @dfn{graph FM} (GFM) index that represents a population of human
2941 genomes, HISAT2 uses a large set of small GFM indexes that collectively cover
2942 the whole genome. These small indexes, combined with several alignment
2943 strategies, enable rapid and accurate alignment of sequencing reads. This new
2944 indexing scheme is called a @dfn{Hierarchical Graph FM index} (HGFM).")
2945 ;; HISAT2 contains files from Bowtie2, which is released under
2946 ;; GPLv2 or later. The HISAT2 source files are released under
2947 ;; GPLv3 or later.
2948 (license license:gpl3+)))
2949
2950 (define-public hmmer
2951 (package
2952 (name "hmmer")
2953 (version "3.1b2")
2954 (source
2955 (origin
2956 (method url-fetch)
2957 (uri (string-append
2958 "http://eddylab.org/software/hmmer"
2959 (version-prefix version 1) "/"
2960 version "/hmmer-" version ".tar.gz"))
2961 (sha256
2962 (base32
2963 "0djmgc0pfli0jilfx8hql1axhwhqxqb8rxg2r5rg07aw73sfs5nx"))
2964 (patches (search-patches "hmmer-remove-cpu-specificity.patch"))))
2965 (build-system gnu-build-system)
2966 (native-inputs `(("perl" ,perl)))
2967 (home-page "http://hmmer.org/")
2968 (synopsis "Biosequence analysis using profile hidden Markov models")
2969 (description
2970 "HMMER is used for searching sequence databases for homologs of protein
2971 sequences, and for making protein sequence alignments. It implements methods
2972 using probabilistic models called profile hidden Markov models (profile
2973 HMMs).")
2974 (license (list license:gpl3+
2975 ;; The bundled library 'easel' is distributed
2976 ;; under The Janelia Farm Software License.
2977 (license:non-copyleft
2978 "file://easel/LICENSE"
2979 "See easel/LICENSE in the distribution.")))))
2980
2981 (define-public htseq
2982 (package
2983 (name "htseq")
2984 (version "0.9.1")
2985 (source (origin
2986 (method url-fetch)
2987 (uri (pypi-uri "HTSeq" version))
2988 (sha256
2989 (base32
2990 "11flgb1381xdhk43bzbfm3vhnszkpqg6jk76rpa5xd1zbrvvlnxg"))))
2991 (build-system python-build-system)
2992 (native-inputs
2993 `(("python-cython" ,python-cython)))
2994 ;; Numpy needs to be propagated when htseq is used as a Python library.
2995 (propagated-inputs
2996 `(("python-numpy" ,python-numpy)))
2997 (inputs
2998 `(("python-pysam" ,python-pysam)
2999 ("python-matplotlib" ,python-matplotlib)))
3000 (home-page "http://www-huber.embl.de/users/anders/HTSeq/")
3001 (synopsis "Analysing high-throughput sequencing data with Python")
3002 (description
3003 "HTSeq is a Python package that provides infrastructure to process data
3004 from high-throughput sequencing assays.")
3005 (license license:gpl3+)))
3006
3007 (define-public python2-htseq
3008 (package-with-python2 htseq))
3009
3010 (define-public java-htsjdk
3011 (package
3012 (name "java-htsjdk")
3013 (version "1.129")
3014 (source (origin
3015 (method url-fetch)
3016 (uri (string-append
3017 "https://github.com/samtools/htsjdk/archive/"
3018 version ".tar.gz"))
3019 (file-name (string-append name "-" version ".tar.gz"))
3020 (sha256
3021 (base32
3022 "0asdk9b8jx2ij7yd6apg9qx03li8q7z3ml0qy2r2qczkra79y6fw"))
3023 (modules '((guix build utils)))
3024 ;; remove build dependency on git
3025 (snippet '(substitute* "build.xml"
3026 (("failifexecutionfails=\"true\"")
3027 "failifexecutionfails=\"false\"")))))
3028 (build-system ant-build-system)
3029 (arguments
3030 `(#:tests? #f ; test require Internet access
3031 #:make-flags
3032 (list (string-append "-Ddist=" (assoc-ref %outputs "out")
3033 "/share/java/htsjdk/"))
3034 #:build-target "all"
3035 #:phases
3036 (modify-phases %standard-phases
3037 ;; The build phase also installs the jars
3038 (delete 'install))))
3039 (home-page "http://samtools.github.io/htsjdk/")
3040 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3041 (description
3042 "HTSJDK is an implementation of a unified Java library for accessing
3043 common file formats, such as SAM and VCF, used for high-throughput
3044 sequencing (HTS) data. There are also an number of useful utilities for
3045 manipulating HTS data.")
3046 (license license:expat)))
3047
3048 (define-public htslib
3049 (package
3050 (name "htslib")
3051 (version "1.5")
3052 (source (origin
3053 (method url-fetch)
3054 (uri (string-append
3055 "https://github.com/samtools/htslib/releases/download/"
3056 version "/htslib-" version ".tar.bz2"))
3057 (sha256
3058 (base32
3059 "0bcjmnbwp2bib1z1bkrp95w9v2syzdwdfqww10mkb1hxlmg52ax0"))))
3060 (build-system gnu-build-system)
3061 (arguments
3062 `(#:phases
3063 (modify-phases %standard-phases
3064 (add-after
3065 'unpack 'patch-tests
3066 (lambda _
3067 (substitute* "test/test.pl"
3068 (("/bin/bash") (which "bash")))
3069 #t)))))
3070 (inputs
3071 `(("openssl" ,openssl)
3072 ("curl" ,curl)
3073 ("zlib" ,zlib)))
3074 (native-inputs
3075 `(("perl" ,perl)))
3076 (home-page "http://www.htslib.org")
3077 (synopsis "C library for reading/writing high-throughput sequencing data")
3078 (description
3079 "HTSlib is a C library for reading/writing high-throughput sequencing
3080 data. It also provides the bgzip, htsfile, and tabix utilities.")
3081 ;; Files under cram/ are released under the modified BSD license;
3082 ;; the rest is released under the Expat license
3083 (license (list license:expat license:bsd-3))))
3084
3085 ;; This package should be removed once no packages rely upon it.
3086 (define htslib-1.3
3087 (package
3088 (inherit htslib)
3089 (version "1.3.1")
3090 (source (origin
3091 (method url-fetch)
3092 (uri (string-append
3093 "https://github.com/samtools/htslib/releases/download/"
3094 version "/htslib-" version ".tar.bz2"))
3095 (sha256
3096 (base32
3097 "1rja282fwdc25ql6izkhdyh8ppw8x2fs0w0js78zgkmqjlikmma9"))))))
3098
3099 (define-public idr
3100 (package
3101 (name "idr")
3102 (version "2.0.0")
3103 (source (origin
3104 (method url-fetch)
3105 (uri (string-append
3106 "https://github.com/nboley/idr/archive/"
3107 version ".tar.gz"))
3108 (file-name (string-append name "-" version ".tar.gz"))
3109 (sha256
3110 (base32
3111 "1k3x44biak00aiv3hpm1yd6nn4hhp7n0qnbs3zh2q9sw7qr1qj5r"))))
3112 (build-system python-build-system)
3113 (arguments
3114 `(#:tests? #f)) ; FIXME: "ImportError: No module named 'utility'"
3115 (propagated-inputs
3116 `(("python-scipy" ,python-scipy)
3117 ("python-sympy" ,python-sympy)
3118 ("python-numpy" ,python-numpy)
3119 ("python-matplotlib" ,python-matplotlib)))
3120 (native-inputs
3121 `(("python-cython" ,python-cython)))
3122 (home-page "https://github.com/nboley/idr")
3123 (synopsis "Tool to measure the irreproducible discovery rate (IDR)")
3124 (description
3125 "The IDR (Irreproducible Discovery Rate) framework is a unified approach
3126 to measure the reproducibility of findings identified from replicate
3127 experiments and provide highly stable thresholds based on reproducibility.")
3128 (license license:gpl3+)))
3129
3130 (define-public jellyfish
3131 (package
3132 (name "jellyfish")
3133 (version "2.2.4")
3134 (source (origin
3135 (method url-fetch)
3136 (uri (string-append "https://github.com/gmarcais/Jellyfish/"
3137 "releases/download/v" version
3138 "/jellyfish-" version ".tar.gz"))
3139 (sha256
3140 (base32
3141 "0a6xnynqy2ibfbfz86b9g2m2dgm7f1469pmymkpam333gi3p26nk"))))
3142 (build-system gnu-build-system)
3143 (outputs '("out" ;for library
3144 "ruby" ;for Ruby bindings
3145 "python")) ;for Python bindings
3146 (arguments
3147 `(#:configure-flags
3148 (list (string-append "--enable-ruby-binding="
3149 (assoc-ref %outputs "ruby"))
3150 (string-append "--enable-python-binding="
3151 (assoc-ref %outputs "python")))
3152 #:phases
3153 (modify-phases %standard-phases
3154 (add-before 'check 'set-SHELL-variable
3155 (lambda _
3156 ;; generator_manager.hpp either uses /bin/sh or $SHELL
3157 ;; to run tests.
3158 (setenv "SHELL" (which "bash"))
3159 #t)))))
3160 (native-inputs
3161 `(("bc" ,bc)
3162 ("time" ,time)
3163 ("ruby" ,ruby)
3164 ("python" ,python-2)))
3165 (synopsis "Tool for fast counting of k-mers in DNA")
3166 (description
3167 "Jellyfish is a tool for fast, memory-efficient counting of k-mers in
3168 DNA. A k-mer is a substring of length k, and counting the occurrences of all
3169 such substrings is a central step in many analyses of DNA sequence. Jellyfish
3170 is a command-line program that reads FASTA and multi-FASTA files containing
3171 DNA sequences. It outputs its k-mer counts in a binary format, which can be
3172 translated into a human-readable text format using the @code{jellyfish dump}
3173 command, or queried for specific k-mers with @code{jellyfish query}.")
3174 (home-page "http://www.genome.umd.edu/jellyfish.html")
3175 ;; From their website: JELLYFISH runs on 64-bit Intel-compatible processors
3176 (supported-systems '("x86_64-linux"))
3177 ;; The combined work is published under the GPLv3 or later. Individual
3178 ;; files such as lib/jsoncpp.cpp are released under the Expat license.
3179 (license (list license:gpl3+ license:expat))))
3180
3181 (define-public khmer
3182 (package
3183 (name "khmer")
3184 (version "2.0")
3185 (source
3186 (origin
3187 (method url-fetch)
3188 (uri (pypi-uri "khmer" version))
3189 (sha256
3190 (base32
3191 "0wb05shqh77v00256qlm68vbbx3kl76fyzihszbz5nhanl4ni33a"))
3192 (patches (search-patches "khmer-use-libraries.patch"))))
3193 (build-system python-build-system)
3194 (arguments
3195 `(#:phases
3196 (modify-phases %standard-phases
3197 (add-after 'unpack 'set-paths
3198 (lambda* (#:key inputs outputs #:allow-other-keys)
3199 ;; Delete bundled libraries.
3200 (delete-file-recursively "third-party/zlib")
3201 (delete-file-recursively "third-party/bzip2")
3202 ;; Replace bundled seqan.
3203 (let* ((seqan-all "third-party/seqan")
3204 (seqan-include (string-append
3205 seqan-all "/core/include")))
3206 (delete-file-recursively seqan-all)
3207 (copy-recursively (string-append (assoc-ref inputs "seqan")
3208 "/include/seqan")
3209 (string-append seqan-include "/seqan")))
3210 ;; We do not replace the bundled MurmurHash as the canonical
3211 ;; repository for this code 'SMHasher' is unsuitable for
3212 ;; providing a library. See
3213 ;; https://lists.gnu.org/archive/html/guix-devel/2016-06/msg00977.html
3214 #t))
3215 (add-after 'unpack 'set-cc
3216 (lambda _
3217 (setenv "CC" "gcc")
3218 #t))
3219 ;; It is simpler to test after installation.
3220 (delete 'check)
3221 (add-after 'install 'post-install-check
3222 (lambda* (#:key inputs outputs #:allow-other-keys)
3223 (let ((out (assoc-ref outputs "out")))
3224 (setenv "PATH"
3225 (string-append
3226 (getenv "PATH")
3227 ":"
3228 (assoc-ref outputs "out")
3229 "/bin"))
3230 (setenv "PYTHONPATH"
3231 (string-append
3232 (getenv "PYTHONPATH")
3233 ":"
3234 out
3235 "/lib/python"
3236 (string-take (string-take-right
3237 (assoc-ref inputs "python") 5) 3)
3238 "/site-packages"))
3239 (with-directory-excursion "build"
3240 (zero? (system* "nosetests" "khmer" "--attr"
3241 "!known_failing")))))))))
3242 (native-inputs
3243 `(("seqan" ,seqan)
3244 ("python-nose" ,python-nose)))
3245 (inputs
3246 `(("zlib" ,zlib)
3247 ("bzip2" ,bzip2)
3248 ("python-screed" ,python-screed)
3249 ("python-bz2file" ,python-bz2file)
3250 ;; Tests fail when gcc-5 is used for compilation. Use gcc-4.9 at least
3251 ;; until the next version of khmer (likely 2.1) is released.
3252 ("gcc" ,gcc-4.9)))
3253 (home-page "https://khmer.readthedocs.org/")
3254 (synopsis "K-mer counting, filtering and graph traversal library")
3255 (description "The khmer software is a set of command-line tools for
3256 working with DNA shotgun sequencing data from genomes, transcriptomes,
3257 metagenomes and single cells. Khmer can make de novo assemblies faster, and
3258 sometimes better. Khmer can also identify and fix problems with shotgun
3259 data.")
3260 ;; When building on i686, armhf and mips64el, we get the following error:
3261 ;; error: ['khmer', 'khmer.tests', 'oxli'] require 64-bit operating system
3262 (supported-systems '("x86_64-linux"))
3263 (license license:bsd-3)))
3264
3265 (define-public kaiju
3266 (package
3267 (name "kaiju")
3268 (version "1.5.0")
3269 (source (origin
3270 (method url-fetch)
3271 (uri (string-append
3272 "https://github.com/bioinformatics-centre/kaiju/archive/v"
3273 version ".tar.gz"))
3274 (file-name (string-append name "-" version ".tar.gz"))
3275 (sha256
3276 (base32
3277 "0afbfalfw9y39bkwnqjrh9bghs118ws1pzj5h8l0nblgn3mbjdks"))))
3278 (build-system gnu-build-system)
3279 (arguments
3280 `(#:tests? #f ; There are no tests.
3281 #:phases
3282 (modify-phases %standard-phases
3283 (delete 'configure)
3284 (add-before 'build 'move-to-src-dir
3285 (lambda _ (chdir "src") #t))
3286 (replace 'install
3287 (lambda* (#:key inputs outputs #:allow-other-keys)
3288 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
3289 (mkdir-p bin)
3290 (chdir "..")
3291 (copy-recursively "bin" bin)
3292 (copy-recursively "util" bin))
3293 #t)))))
3294 (inputs
3295 `(("perl" ,perl)))
3296 (home-page "http://kaiju.binf.ku.dk/")
3297 (synopsis "Fast and sensitive taxonomic classification for metagenomics")
3298 (description "Kaiju is a program for sensitive taxonomic classification
3299 of high-throughput sequencing reads from metagenomic whole genome sequencing
3300 experiments.")
3301 (license license:gpl3+)))
3302
3303 (define-public macs
3304 (package
3305 (name "macs")
3306 (version "2.1.0.20151222")
3307 (source (origin
3308 (method url-fetch)
3309 (uri (pypi-uri "MACS2" version))
3310 (sha256
3311 (base32
3312 "1r2hcz6irhcq7lwbafjks98jbn34hv05avgbdjnp6w6mlfjkf8x5"))))
3313 (build-system python-build-system)
3314 (arguments
3315 `(#:python ,python-2 ; only compatible with Python 2.7
3316 #:tests? #f)) ; no test target
3317 (inputs
3318 `(("python-numpy" ,python2-numpy)))
3319 (home-page "https://github.com/taoliu/MACS/")
3320 (synopsis "Model based analysis for ChIP-Seq data")
3321 (description
3322 "MACS is an implementation of a ChIP-Seq analysis algorithm for
3323 identifying transcript factor binding sites named Model-based Analysis of
3324 ChIP-Seq (MACS). MACS captures the influence of genome complexity to evaluate
3325 the significance of enriched ChIP regions and it improves the spatial
3326 resolution of binding sites through combining the information of both
3327 sequencing tag position and orientation.")
3328 (license license:bsd-3)))
3329
3330 (define-public mafft
3331 (package
3332 (name "mafft")
3333 (version "7.310")
3334 (source (origin
3335 (method url-fetch)
3336 (uri (string-append
3337 "http://mafft.cbrc.jp/alignment/software/mafft-" version
3338 "-without-extensions-src.tgz"))
3339 (file-name (string-append name "-" version ".tgz"))
3340 (sha256
3341 (base32
3342 "0gbsaz6z2qa307kd7wfb06c3y4ikmv1hsdvlns11f6zq4w1z9pwc"))))
3343 (build-system gnu-build-system)
3344 (arguments
3345 `(#:tests? #f ; no automated tests, though there are tests in the read me
3346 #:make-flags (let ((out (assoc-ref %outputs "out")))
3347 (list (string-append "PREFIX=" out)
3348 (string-append "BINDIR="
3349 (string-append out "/bin"))))
3350 #:phases
3351 (modify-phases %standard-phases
3352 (add-after 'unpack 'enter-dir
3353 (lambda _ (chdir "core") #t))
3354 (add-after 'enter-dir 'patch-makefile
3355 (lambda _
3356 ;; on advice from the MAFFT authors, there is no need to
3357 ;; distribute mafft-profile, mafft-distance, or
3358 ;; mafft-homologs.rb as they are too "specialised".
3359 (substitute* "Makefile"
3360 ;; remove mafft-homologs.rb from SCRIPTS
3361 (("^SCRIPTS = mafft mafft-homologs.rb")
3362 "SCRIPTS = mafft")
3363 ;; remove mafft-homologs from MANPAGES
3364 (("^MANPAGES = mafft.1 mafft-homologs.1")
3365 "MANPAGES = mafft.1")
3366 ;; remove mafft-distance from PROGS
3367 (("^PROGS = dvtditr dndfast7 dndblast sextet5 mafft-distance")
3368 "PROGS = dvtditr dndfast7 dndblast sextet5")
3369 ;; remove mafft-profile from PROGS
3370 (("splittbfast disttbfast tbfast mafft-profile 2cl mccaskillwrap")
3371 "splittbfast disttbfast tbfast f2cl mccaskillwrap")
3372 (("^rm -f mafft-profile mafft-profile.exe") "#")
3373 (("^rm -f mafft-distance mafft-distance.exe") ")#")
3374 ;; do not install MAN pages in libexec folder
3375 (("^\t\\$\\(INSTALL\\) -m 644 \\$\\(MANPAGES\\) \
3376 \\$\\(DESTDIR\\)\\$\\(LIBDIR\\)") "#"))
3377 #t))
3378 (add-after 'enter-dir 'patch-paths
3379 (lambda* (#:key inputs #:allow-other-keys)
3380 (substitute* '("pairash.c"
3381 "mafft.tmpl")
3382 (("perl") (which "perl"))
3383 (("([\"`| ])awk" _ prefix)
3384 (string-append prefix (which "awk")))
3385 (("grep") (which "grep")))
3386 #t))
3387 (delete 'configure)
3388 (add-after 'install 'wrap-programs
3389 (lambda* (#:key outputs #:allow-other-keys)
3390 (let* ((out (assoc-ref outputs "out"))
3391 (bin (string-append out "/bin"))
3392 (path (string-append
3393 (assoc-ref %build-inputs "coreutils") "/bin:")))
3394 (for-each (lambda (file)
3395 (wrap-program file
3396 `("PATH" ":" prefix (,path))))
3397 (find-files bin)))
3398 #t)))))
3399 (inputs
3400 `(("perl" ,perl)
3401 ("ruby" ,ruby)
3402 ("gawk" ,gawk)
3403 ("grep" ,grep)
3404 ("coreutils" ,coreutils)))
3405 (home-page "http://mafft.cbrc.jp/alignment/software/")
3406 (synopsis "Multiple sequence alignment program")
3407 (description
3408 "MAFFT offers a range of multiple alignment methods for nucleotide and
3409 protein sequences. For instance, it offers L-INS-i (accurate; for alignment
3410 of <~200 sequences) and FFT-NS-2 (fast; for alignment of <~30,000
3411 sequences).")
3412 (license (license:non-copyleft
3413 "http://mafft.cbrc.jp/alignment/software/license.txt"
3414 "BSD-3 with different formatting"))))
3415
3416 (define-public mash
3417 (package
3418 (name "mash")
3419 (version "1.1.1")
3420 (source (origin
3421 (method url-fetch)
3422 (uri (string-append
3423 "https://github.com/marbl/mash/archive/v"
3424 version ".tar.gz"))
3425 (file-name (string-append name "-" version ".tar.gz"))
3426 (sha256
3427 (base32
3428 "08znbvqq5xknfhmpp3wcj574zvi4p7i8zifi67c9qw9a6ikp42fj"))
3429 (modules '((guix build utils)))
3430 (snippet
3431 ;; Delete bundled kseq.
3432 ;; TODO: Also delete bundled murmurhash and open bloom filter.
3433 '(delete-file "src/mash/kseq.h"))))
3434 (build-system gnu-build-system)
3435 (arguments
3436 `(#:tests? #f ; No tests.
3437 #:configure-flags
3438 (list
3439 (string-append "--with-capnp=" (assoc-ref %build-inputs "capnproto"))
3440 (string-append "--with-gsl=" (assoc-ref %build-inputs "gsl")))
3441 #:make-flags (list "CC=gcc")
3442 #:phases
3443 (modify-phases %standard-phases
3444 (add-after 'unpack 'fix-includes
3445 (lambda _
3446 (substitute* '("src/mash/Sketch.cpp" "src/mash/CommandFind.cpp")
3447 (("^#include \"kseq\\.h\"")
3448 "#include \"htslib/kseq.h\""))
3449 #t))
3450 (add-before 'configure 'autoconf
3451 (lambda _ (zero? (system* "autoconf")))))))
3452 (native-inputs
3453 `(("autoconf" ,autoconf)
3454 ;; Capnproto and htslib are statically embedded in the final
3455 ;; application. Therefore we also list their licenses, below.
3456 ("capnproto" ,capnproto)
3457 ("htslib" ,htslib)))
3458 (inputs
3459 `(("gsl" ,gsl)
3460 ("zlib" ,zlib)))
3461 (supported-systems '("x86_64-linux"))
3462 (home-page "https://mash.readthedocs.io")
3463 (synopsis "Fast genome and metagenome distance estimation using MinHash")
3464 (description "Mash is a fast sequence distance estimator that uses the
3465 MinHash algorithm and is designed to work with genomes and metagenomes in the
3466 form of assemblies or reads.")
3467 (license (list license:bsd-3 ; Mash
3468 license:expat ; HTSlib and capnproto
3469 license:public-domain ; MurmurHash 3
3470 license:cpl1.0)))) ; Open Bloom Filter
3471
3472 (define-public metabat
3473 (package
3474 (name "metabat")
3475 (version "2.11.2")
3476 (source
3477 (origin
3478 (method url-fetch)
3479 (uri (string-append "https://bitbucket.org/berkeleylab/metabat/get/v"
3480 version ".tar.gz"))
3481 (file-name (string-append name "-" version ".tar.gz"))
3482 (sha256
3483 (base32
3484 "0rws9r1ziv6way8cf49jg8bzj7x2131kfqkhj8byf0z5hnrq3bwv"))
3485 (patches (search-patches "metabat-remove-compilation-date.patch"
3486 "metabat-fix-compilation.patch"))))
3487 (build-system gnu-build-system)
3488 (arguments
3489 `(#:phases
3490 (modify-phases %standard-phases
3491 (add-after 'unpack 'fix-includes
3492 (lambda _
3493 (substitute* "src/BamUtils.h"
3494 (("^#include \"bam/bam\\.h\"")
3495 "#include \"samtools/bam.h\"")
3496 (("^#include \"bam/sam\\.h\"")
3497 "#include \"samtools/sam.h\""))
3498 (substitute* "src/KseqReader.h"
3499 (("^#include \"bam/kseq\\.h\"")
3500 "#include \"htslib/kseq.h\""))
3501 #t))
3502 (add-after 'unpack 'fix-scons
3503 (lambda* (#:key inputs #:allow-other-keys)
3504 (substitute* "SConstruct"
3505 (("^htslib_dir += 'samtools'")
3506 (string-append "htslib_dir = '"
3507 (assoc-ref inputs "htslib")
3508 "'"))
3509 (("^samtools_dir = 'samtools'")
3510 (string-append "samtools_dir = '"
3511 (assoc-ref inputs "samtools")
3512 "'"))
3513 (("^findStaticOrShared\\('bam', hts_lib")
3514 (string-append "findStaticOrShared('bam', '"
3515 (assoc-ref inputs "samtools")
3516 "/lib'"))
3517 ;; Do not distribute README.
3518 (("^env\\.Install\\(idir_prefix, 'README\\.md'\\)") ""))
3519 #t))
3520 (delete 'configure)
3521 (replace 'build
3522 (lambda* (#:key inputs outputs #:allow-other-keys)
3523 (mkdir (assoc-ref outputs "out"))
3524 (zero? (system* "scons"
3525 (string-append
3526 "PREFIX="
3527 (assoc-ref outputs "out"))
3528 (string-append
3529 "BOOST_ROOT="
3530 (assoc-ref inputs "boost"))
3531 "install"))))
3532 ;; Check and install are carried out during build phase.
3533 (delete 'check)
3534 (delete 'install))))
3535 (inputs
3536 `(("zlib" ,zlib)
3537 ("perl" ,perl)
3538 ("samtools" ,samtools)
3539 ("htslib" ,htslib)
3540 ("boost" ,boost)))
3541 (native-inputs
3542 `(("scons" ,scons)))
3543 (home-page "https://bitbucket.org/berkeleylab/metabat")
3544 (synopsis
3545 "Reconstruction of single genomes from complex microbial communities")
3546 (description
3547 "Grouping large genomic fragments assembled from shotgun metagenomic
3548 sequences to deconvolute complex microbial communities, or metagenome binning,
3549 enables the study of individual organisms and their interactions. MetaBAT is
3550 an automated metagenome binning software, which integrates empirical
3551 probabilistic distances of genome abundance and tetranucleotide frequency.")
3552 ;; The source code contains inline assembly.
3553 (supported-systems '("x86_64-linux" "i686-linux"))
3554 (license (license:non-copyleft "file://license.txt"
3555 "See license.txt in the distribution."))))
3556
3557 (define-public minced
3558 (package
3559 (name "minced")
3560 (version "0.2.0")
3561 (source (origin
3562 (method url-fetch)
3563 (uri (string-append
3564 "https://github.com/ctSkennerton/minced/archive/"
3565 version ".tar.gz"))
3566 (file-name (string-append name "-" version ".tar.gz"))
3567 (sha256
3568 (base32
3569 "0wxmlsapxfpxfd3ps9636h7i2xy6la8i42mwh0j2lsky63h63jp1"))))
3570 (build-system gnu-build-system)
3571 (arguments
3572 `(#:test-target "test"
3573 #:phases
3574 (modify-phases %standard-phases
3575 (delete 'configure)
3576 (add-before 'check 'fix-test
3577 (lambda _
3578 ;; Fix test for latest version.
3579 (substitute* "t/Aquifex_aeolicus_VF5.expected"
3580 (("minced:0.1.6") "minced:0.2.0"))
3581 #t))
3582 (replace 'install ; No install target.
3583 (lambda* (#:key inputs outputs #:allow-other-keys)
3584 (let* ((out (assoc-ref outputs "out"))
3585 (bin (string-append out "/bin"))
3586 (wrapper (string-append bin "/minced")))
3587 ;; Minced comes with a wrapper script that tries to figure out where
3588 ;; it is located before running the JAR. Since these paths are known
3589 ;; to us, we build our own wrapper to avoid coreutils dependency.
3590 (install-file "minced.jar" bin)
3591 (with-output-to-file wrapper
3592 (lambda _
3593 (display
3594 (string-append
3595 "#!" (assoc-ref inputs "bash") "/bin/sh\n\n"
3596 (assoc-ref inputs "jre") "/bin/java -jar "
3597 bin "/minced.jar \"$@\"\n"))))
3598 (chmod wrapper #o555)))))))
3599 (native-inputs
3600 `(("jdk" ,icedtea "jdk")))
3601 (inputs
3602 `(("bash" ,bash)
3603 ("jre" ,icedtea "out")))
3604 (home-page "https://github.com/ctSkennerton/minced")
3605 (synopsis "Mining CRISPRs in Environmental Datasets")
3606 (description
3607 "MinCED is a program to find Clustered Regularly Interspaced Short
3608 Palindromic Repeats (CRISPRs) in DNA sequences. It can be used for
3609 unassembled metagenomic reads, but is mainly designed for full genomes and
3610 assembled metagenomic sequence.")
3611 (license license:gpl3+)))
3612
3613 (define-public miso
3614 (package
3615 (name "miso")
3616 (version "0.5.3")
3617 (source (origin
3618 (method url-fetch)
3619 (uri (string-append
3620 "https://pypi.python.org/packages/source/m/misopy/misopy-"
3621 version ".tar.gz"))
3622 (sha256
3623 (base32
3624 "0x446867az8ir0z8c1vjqffkp0ma37wm4sylixnkhgawllzx8v5w"))
3625 (modules '((guix build utils)))
3626 (snippet
3627 '(substitute* "setup.py"
3628 ;; Use setuptools, or else the executables are not
3629 ;; installed.
3630 (("distutils.core") "setuptools")
3631 ;; use "gcc" instead of "cc" for compilation
3632 (("^defines")
3633 "cc.set_executables(
3634 compiler='gcc',
3635 compiler_so='gcc',
3636 linker_exe='gcc',
3637 linker_so='gcc -shared'); defines")))))
3638 (build-system python-build-system)
3639 (arguments
3640 `(#:python ,python-2 ; only Python 2 is supported
3641 #:tests? #f)) ; no "test" target
3642 (inputs
3643 `(("samtools" ,samtools)
3644 ("python-numpy" ,python2-numpy)
3645 ("python-pysam" ,python2-pysam)
3646 ("python-scipy" ,python2-scipy)
3647 ("python-matplotlib" ,python2-matplotlib)))
3648 (native-inputs
3649 `(("python-mock" ,python2-mock) ;for tests
3650 ("python-pytz" ,python2-pytz))) ;for tests
3651 (home-page "http://genes.mit.edu/burgelab/miso/index.html")
3652 (synopsis "Mixture of Isoforms model for RNA-Seq isoform quantitation")
3653 (description
3654 "MISO (Mixture-of-Isoforms) is a probabilistic framework that quantitates
3655 the expression level of alternatively spliced genes from RNA-Seq data, and
3656 identifies differentially regulated isoforms or exons across samples. By
3657 modeling the generative process by which reads are produced from isoforms in
3658 RNA-Seq, the MISO model uses Bayesian inference to compute the probability
3659 that a read originated from a particular isoform.")
3660 (license license:gpl2)))
3661
3662 (define-public muscle
3663 (package
3664 (name "muscle")
3665 (version "3.8.1551")
3666 (source (origin
3667 (method url-fetch/tarbomb)
3668 (uri (string-append
3669 "http://www.drive5.com/muscle/muscle_src_"
3670 version ".tar.gz"))
3671 (sha256
3672 (base32
3673 "0bj8kj7sdizy3987zx6w7axihk40fk8rn76mpbqqjcnd64i5a367"))))
3674 (build-system gnu-build-system)
3675 (arguments
3676 `(#:make-flags (list "LDLIBS = -lm")
3677 #:phases
3678 (modify-phases %standard-phases
3679 (delete 'configure)
3680 (replace 'check
3681 ;; There are no tests, so just test if it runs.
3682 (lambda _ (zero? (system* "./muscle" "-version"))))
3683 (replace 'install
3684 (lambda* (#:key outputs #:allow-other-keys)
3685 (let* ((out (assoc-ref outputs "out"))
3686 (bin (string-append out "/bin")))
3687 (install-file "muscle" bin)))))))
3688 (home-page "http://www.drive5.com/muscle")
3689 (synopsis "Multiple sequence alignment program")
3690 (description
3691 "MUSCLE aims to be a fast and accurate multiple sequence alignment
3692 program for nucleotide and protein sequences.")
3693 ;; License information found in 'muscle -h' and usage.cpp.
3694 (license license:public-domain)))
3695
3696 (define-public newick-utils
3697 ;; There are no recent releases so we package from git.
3698 (let ((commit "da121155a977197cab9fbb15953ca1b40b11eb87"))
3699 (package
3700 (name "newick-utils")
3701 (version (string-append "1.6-1." (string-take commit 8)))
3702 (source (origin
3703 (method git-fetch)
3704 (uri (git-reference
3705 (url "https://github.com/tjunier/newick_utils.git")
3706 (commit commit)))
3707 (file-name (string-append name "-" version "-checkout"))
3708 (sha256
3709 (base32
3710 "1hkw21rq1mwf7xp0rmbb2gqc0i6p11108m69i7mr7xcjl268pxnb"))))
3711 (build-system gnu-build-system)
3712 (arguments
3713 `(#:phases
3714 (modify-phases %standard-phases
3715 (add-after 'unpack 'autoconf
3716 (lambda _ (zero? (system* "autoreconf" "-vif")))))))
3717 (inputs
3718 ;; XXX: TODO: Enable Lua and Guile bindings.
3719 ;; https://github.com/tjunier/newick_utils/issues/13
3720 `(("libxml2" ,libxml2)
3721 ("flex" ,flex)
3722 ("bison" ,bison)))
3723 (native-inputs
3724 `(("autoconf" ,autoconf)
3725 ("automake" ,automake)
3726 ("libtool" ,libtool)))
3727 (synopsis "Programs for working with newick format phylogenetic trees")
3728 (description
3729 "Newick-utils is a suite of utilities for processing phylogenetic trees
3730 in Newick format. Functions include re-rooting, extracting subtrees,
3731 trimming, pruning, condensing, drawing (ASCII graphics or SVG).")
3732 (home-page "https://github.com/tjunier/newick_utils")
3733 (license license:bsd-3))))
3734
3735 (define-public orfm
3736 (package
3737 (name "orfm")
3738 (version "0.7.1")
3739 (source (origin
3740 (method url-fetch)
3741 (uri (string-append
3742 "https://github.com/wwood/OrfM/releases/download/v"
3743 version "/orfm-" version ".tar.gz"))
3744 (sha256
3745 (base32
3746 "16iigyr2gd8x0imzkk1dr3k5xsds9bpmwg31ayvjg0f4pir9rwqr"))))
3747 (build-system gnu-build-system)
3748 (inputs `(("zlib" ,zlib)))
3749 (native-inputs
3750 `(("ruby-bio-commandeer" ,ruby-bio-commandeer)
3751 ("ruby-rspec" ,ruby-rspec)
3752 ("ruby" ,ruby)))
3753 (synopsis "Simple and not slow open reading frame (ORF) caller")
3754 (description
3755 "An ORF caller finds stretches of DNA that, when translated, are not
3756 interrupted by stop codons. OrfM finds and prints these ORFs.")
3757 (home-page "https://github.com/wwood/OrfM")
3758 (license license:lgpl3+)))
3759
3760 (define-public pplacer
3761 (let ((commit "g807f6f3"))
3762 (package
3763 (name "pplacer")
3764 ;; The commit should be updated with each version change.
3765 (version "1.1.alpha19")
3766 (source
3767 (origin
3768 (method url-fetch)
3769 (uri (string-append "https://github.com/matsen/pplacer/archive/v"
3770 version ".tar.gz"))
3771 (file-name (string-append name "-" version ".tar.gz"))
3772 (sha256
3773 (base32 "0z1lnd2s8sh6kpzg106wzbh2szw7h0hvq8syd5a6wv4rmyyz6x0f"))))
3774 (build-system ocaml-build-system)
3775 (arguments
3776 `(#:ocaml ,ocaml-4.01
3777 #:findlib ,ocaml4.01-findlib
3778 #:modules ((guix build ocaml-build-system)
3779 (guix build utils)
3780 (ice-9 ftw))
3781 #:phases
3782 (modify-phases %standard-phases
3783 (delete 'configure)
3784 (add-after 'unpack 'replace-bundled-cddlib
3785 (lambda* (#:key inputs #:allow-other-keys)
3786 (let* ((cddlib-src (assoc-ref inputs "cddlib-src"))
3787 (local-dir "cddlib_guix"))
3788 (mkdir local-dir)
3789 (with-directory-excursion local-dir
3790 (system* "tar" "xvf" cddlib-src))
3791 (let ((cddlib-src-folder
3792 (string-append local-dir "/"
3793 (list-ref (scandir local-dir) 2)
3794 "/lib-src")))
3795 (for-each
3796 (lambda (file)
3797 (copy-file file
3798 (string-append "cdd_src/" (basename file))))
3799 (find-files cddlib-src-folder ".*[ch]$")))
3800 #t)))
3801 (add-after 'unpack 'fix-makefile
3802 (lambda _
3803 ;; Remove system calls to 'git'.
3804 (substitute* "Makefile"
3805 (("^DESCRIPT:=pplacer-.*")
3806 (string-append
3807 "DESCRIPT:=pplacer-$(shell uname)-v" ,version "\n")))
3808 (substitute* "myocamlbuild.ml"
3809 (("git describe --tags --long .*\\\" with")
3810 (string-append
3811 "echo -n v" ,version "-" ,commit "\" with")))
3812 #t))
3813 (replace 'install
3814 (lambda* (#:key outputs #:allow-other-keys)
3815 (let* ((out (assoc-ref outputs "out"))
3816 (bin (string-append out "/bin")))
3817 (copy-recursively "bin" bin))
3818 #t)))))
3819 (native-inputs
3820 `(("zlib" ,zlib)
3821 ("gsl" ,gsl)
3822 ("ocaml-ounit" ,ocaml4.01-ounit)
3823 ("ocaml-batteries" ,ocaml4.01-batteries)
3824 ("ocaml-camlzip" ,ocaml4.01-camlzip)
3825 ("ocaml-csv" ,ocaml4.01-csv)
3826 ("ocaml-sqlite3" ,ocaml4.01-sqlite3)
3827 ("ocaml-xmlm" ,ocaml4.01-xmlm)
3828 ("ocaml-mcl" ,ocaml4.01-mcl)
3829 ("ocaml-gsl" ,ocaml4.01-gsl)
3830 ("cddlib-src" ,(package-source cddlib))))
3831 (propagated-inputs
3832 `(("pplacer-scripts" ,pplacer-scripts)))
3833 (synopsis "Phylogenetic placement of biological sequences")
3834 (description
3835 "Pplacer places query sequences on a fixed reference phylogenetic tree
3836 to maximize phylogenetic likelihood or posterior probability according to a
3837 reference alignment. Pplacer is designed to be fast, to give useful
3838 information about uncertainty, and to offer advanced visualization and
3839 downstream analysis.")
3840 (home-page "http://matsen.fhcrc.org/pplacer")
3841 (license license:gpl3))))
3842
3843 ;; This package is installed alongside 'pplacer'. It is a separate package so
3844 ;; that it can use the python-build-system for the scripts that are
3845 ;; distributed alongside the main OCaml binaries.
3846 (define pplacer-scripts
3847 (package
3848 (inherit pplacer)
3849 (name "pplacer-scripts")
3850 (build-system python-build-system)
3851 (arguments
3852 `(#:python ,python-2
3853 #:phases
3854 (modify-phases %standard-phases
3855 (add-after 'unpack 'enter-scripts-dir
3856 (lambda _ (chdir "scripts")))
3857 (replace 'check
3858 (lambda _
3859 (zero? (system* "python" "-m" "unittest" "discover" "-v"))))
3860 (add-after 'install 'wrap-executables
3861 (lambda* (#:key inputs outputs #:allow-other-keys)
3862 (let* ((out (assoc-ref outputs "out"))
3863 (bin (string-append out "/bin")))
3864 (let ((path (string-append
3865 (assoc-ref inputs "hmmer") "/bin:"
3866 (assoc-ref inputs "infernal") "/bin")))
3867 (display path)
3868 (wrap-program (string-append bin "/refpkg_align.py")
3869 `("PATH" ":" prefix (,path))))
3870 (let ((path (string-append
3871 (assoc-ref inputs "hmmer") "/bin")))
3872 (wrap-program (string-append bin "/hrefpkg_query.py")
3873 `("PATH" ":" prefix (,path)))))
3874 #t)))))
3875 (inputs
3876 `(("infernal" ,infernal)
3877 ("hmmer" ,hmmer)))
3878 (propagated-inputs
3879 `(("python-biopython" ,python2-biopython)
3880 ("taxtastic" ,taxtastic)))
3881 (synopsis "Pplacer Python scripts")))
3882
3883 (define-public python2-pbcore
3884 (package
3885 (name "python2-pbcore")
3886 (version "1.2.10")
3887 (source (origin
3888 (method url-fetch)
3889 (uri (pypi-uri "pbcore" version))
3890 (sha256
3891 (base32
3892 "1kjmv891d6qbpp4shhhvkl02ff4q5xlpnls2513sm2cjcrs52f1i"))))
3893 (build-system python-build-system)
3894 (arguments `(#:python ,python-2)) ; pbcore requires Python 2.7
3895 (propagated-inputs
3896 `(("python-cython" ,python2-cython)
3897 ("python-numpy" ,python2-numpy)
3898 ("python-pysam" ,python2-pysam)
3899 ("python-h5py" ,python2-h5py)))
3900 (native-inputs
3901 `(("python-nose" ,python2-nose)
3902 ("python-sphinx" ,python2-sphinx)
3903 ("python-pyxb" ,python2-pyxb)))
3904 (home-page "http://pacificbiosciences.github.io/pbcore/")
3905 (synopsis "Library for reading and writing PacBio data files")
3906 (description
3907 "The pbcore package provides Python APIs for interacting with PacBio data
3908 files and writing bioinformatics applications.")
3909 (license license:bsd-3)))
3910
3911 (define-public python2-warpedlmm
3912 (package
3913 (name "python2-warpedlmm")
3914 (version "0.21")
3915 (source
3916 (origin
3917 (method url-fetch)
3918 (uri (string-append
3919 "https://pypi.python.org/packages/source/W/WarpedLMM/WarpedLMM-"
3920 version ".zip"))
3921 (sha256
3922 (base32
3923 "1agfz6zqa8nc6cw47yh0s3y14gkpa9wqazwcj7mwwj3ffnw39p3j"))))
3924 (build-system python-build-system)
3925 (arguments
3926 `(#:python ,python-2)) ; requires Python 2.7
3927 (propagated-inputs
3928 `(("python-scipy" ,python2-scipy)
3929 ("python-numpy" ,python2-numpy)
3930 ("python-matplotlib" ,python2-matplotlib)
3931 ("python-fastlmm" ,python2-fastlmm)
3932 ("python-pandas" ,python2-pandas)
3933 ("python-pysnptools" ,python2-pysnptools)))
3934 (native-inputs
3935 `(("python-mock" ,python2-mock)
3936 ("python-nose" ,python2-nose)
3937 ("unzip" ,unzip)))
3938 (home-page "https://github.com/PMBio/warpedLMM")
3939 (synopsis "Implementation of warped linear mixed models")
3940 (description
3941 "WarpedLMM is a Python implementation of the warped linear mixed model,
3942 which automatically learns an optimal warping function (or transformation) for
3943 the phenotype as it models the data.")
3944 (license license:asl2.0)))
3945
3946 (define-public pbtranscript-tofu
3947 (let ((commit "8f5467fe6a4472bcfb4226c8720993c8507adfe4"))
3948 (package
3949 (name "pbtranscript-tofu")
3950 (version (string-append "2.2.3." (string-take commit 7)))
3951 (source (origin
3952 (method git-fetch)
3953 (uri (git-reference
3954 (url "https://github.com/PacificBiosciences/cDNA_primer.git")
3955 (commit commit)))
3956 (file-name (string-append name "-" version "-checkout"))
3957 (sha256
3958 (base32
3959 "1lgnpi35ihay42qx0b6yl3kkgra723i413j33kvs0kvs61h82w0f"))
3960 (modules '((guix build utils)))
3961 (snippet
3962 '(begin
3963 ;; remove bundled Cython sources
3964 (delete-file "pbtranscript-tofu/pbtranscript/Cython-0.20.1.tar.gz")
3965 #t))))
3966 (build-system python-build-system)
3967 (arguments
3968 `(#:python ,python-2
3969 ;; FIXME: Tests fail with "No such file or directory:
3970 ;; pbtools/pbtranscript/modified_bx_intervals/intersection_unique.so"
3971 #:tests? #f
3972 #:phases
3973 (modify-phases %standard-phases
3974 (add-after 'unpack 'enter-directory
3975 (lambda _
3976 (chdir "pbtranscript-tofu/pbtranscript/")
3977 #t))
3978 ;; With setuptools version 18.0 and later this setup.py hack causes
3979 ;; a build error, so we disable it.
3980 (add-after 'enter-directory 'patch-setuppy
3981 (lambda _
3982 (substitute* "setup.py"
3983 (("if 'setuptools.extension' in sys.modules:")
3984 "if False:"))
3985 #t)))))
3986 (inputs
3987 `(("python-numpy" ,python2-numpy)
3988 ("python-bx-python" ,python2-bx-python)
3989 ("python-networkx" ,python2-networkx)
3990 ("python-scipy" ,python2-scipy)
3991 ("python-pbcore" ,python2-pbcore)
3992 ("python-h5py" ,python2-h5py)))
3993 (native-inputs
3994 `(("python-cython" ,python2-cython)
3995 ("python-nose" ,python2-nose)))
3996 (home-page "https://github.com/PacificBiosciences/cDNA_primer")
3997 (synopsis "Analyze transcriptome data generated with the Iso-Seq protocol")
3998 (description
3999 "pbtranscript-tofu contains scripts to analyze transcriptome data
4000 generated using the PacBio Iso-Seq protocol.")
4001 (license license:bsd-3))))
4002
4003 (define-public prank
4004 (package
4005 (name "prank")
4006 (version "150803")
4007 (source (origin
4008 (method url-fetch)
4009 (uri (string-append
4010 "http://wasabiapp.org/download/prank/prank.source."
4011 version ".tgz"))
4012 (sha256
4013 (base32
4014 "0am4z94fs3w2n5xpfls9zda61vq7qqz4q2i7b9hlsxz5q4j3kfm4"))))
4015 (build-system gnu-build-system)
4016 (arguments
4017 `(#:phases
4018 (modify-phases %standard-phases
4019 (add-after 'unpack 'enter-src-dir
4020 (lambda _
4021 (chdir "src")
4022 #t))
4023 (add-after 'unpack 'remove-m64-flag
4024 ;; Prank will build with the correct 'bit-ness' without this flag
4025 ;; and this allows building on 32-bit machines.
4026 (lambda _ (substitute* "src/Makefile"
4027 (("-m64") ""))
4028 #t))
4029 (delete 'configure)
4030 (replace 'install
4031 (lambda* (#:key outputs #:allow-other-keys)
4032 (let* ((out (assoc-ref outputs "out"))
4033 (bin (string-append out "/bin"))
4034 (man (string-append out "/share/man/man1"))
4035 (path (string-append
4036 (assoc-ref %build-inputs "mafft") "/bin:"
4037 (assoc-ref %build-inputs "exonerate") "/bin:"
4038 (assoc-ref %build-inputs "bppsuite") "/bin")))
4039 (install-file "prank" bin)
4040 (wrap-program (string-append bin "/prank")
4041 `("PATH" ":" prefix (,path)))
4042 (install-file "prank.1" man))
4043 #t)))))
4044 (inputs
4045 `(("mafft" ,mafft)
4046 ("exonerate" ,exonerate)
4047 ("bppsuite" ,bppsuite)))
4048 (home-page "http://wasabiapp.org/software/prank/")
4049 (synopsis "Probabilistic multiple sequence alignment program")
4050 (description
4051 "PRANK is a probabilistic multiple sequence alignment program for DNA,
4052 codon and amino-acid sequences. It is based on a novel algorithm that treats
4053 insertions correctly and avoids over-estimation of the number of deletion
4054 events. In addition, PRANK borrows ideas from maximum likelihood methods used
4055 in phylogenetics and correctly takes into account the evolutionary distances
4056 between sequences. Lastly, PRANK allows for defining a potential structure
4057 for sequences to be aligned and then, simultaneously with the alignment,
4058 predicts the locations of structural units in the sequences.")
4059 (license license:gpl2+)))
4060
4061 (define-public proteinortho
4062 (package
4063 (name "proteinortho")
4064 (version "5.16")
4065 (source
4066 (origin
4067 (method url-fetch)
4068 (uri
4069 (string-append
4070 "http://www.bioinf.uni-leipzig.de/Software/proteinortho/proteinortho_v"
4071 version "_src.tar.gz"))
4072 (sha256
4073 (base32
4074 "0z4f5cg0cs8ai62hfvp4q6w66q2phcc55nhs4xj5cyhxxivjv2ai"))))
4075 (build-system gnu-build-system)
4076 (arguments
4077 `(#:test-target "test"
4078 #:phases
4079 (modify-phases %standard-phases
4080 (replace 'configure
4081 ;; There is no configure script, so we modify the Makefile directly.
4082 (lambda* (#:key outputs #:allow-other-keys)
4083 (substitute* "Makefile"
4084 (("INSTALLDIR=.*")
4085 (string-append
4086 "INSTALLDIR=" (assoc-ref outputs "out") "/bin\n")))
4087 #t))
4088 (add-before 'install 'make-install-directory
4089 ;; The install directory is not created during 'make install'.
4090 (lambda* (#:key outputs #:allow-other-keys)
4091 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
4092 #t))
4093 (add-after 'install 'wrap-programs
4094 (lambda* (#:key inputs outputs #:allow-other-keys)
4095 (let* ((path (getenv "PATH"))
4096 (out (assoc-ref outputs "out"))
4097 (binary (string-append out "/bin/proteinortho5.pl")))
4098 (wrap-program binary `("PATH" ":" prefix (,path))))
4099 #t)))))
4100 (inputs
4101 `(("perl" ,perl)
4102 ("python" ,python-2)
4103 ("blast+" ,blast+)))
4104 (home-page "http://www.bioinf.uni-leipzig.de/Software/proteinortho")
4105 (synopsis "Detect orthologous genes across species")
4106 (description
4107 "Proteinortho is a tool to detect orthologous genes across different
4108 species. For doing so, it compares similarities of given gene sequences and
4109 clusters them to find significant groups. The algorithm was designed to handle
4110 large-scale data and can be applied to hundreds of species at once.")
4111 (license license:gpl2+)))
4112
4113 (define-public pyicoteo
4114 (package
4115 (name "pyicoteo")
4116 (version "2.0.7")
4117 (source
4118 (origin
4119 (method url-fetch)
4120 (uri (string-append "https://bitbucket.org/regulatorygenomicsupf/"
4121 "pyicoteo/get/v" version ".tar.bz2"))
4122 (file-name (string-append name "-" version ".tar.bz2"))
4123 (sha256
4124 (base32
4125 "0d6087f29xp8wxwlj111c3sylli98n0l8ry58c51ixzq0zfm50wa"))))
4126 (build-system python-build-system)
4127 (arguments
4128 `(#:python ,python-2 ; does not work with Python 3
4129 #:tests? #f)) ; there are no tests
4130 (inputs
4131 `(("python2-matplotlib" ,python2-matplotlib)))
4132 (home-page "https://bitbucket.org/regulatorygenomicsupf/pyicoteo")
4133 (synopsis "Analyze high-throughput genetic sequencing data")
4134 (description
4135 "Pyicoteo is a suite of tools for the analysis of high-throughput genetic
4136 sequencing data. It works with genomic coordinates. There are currently six
4137 different command-line tools:
4138
4139 @enumerate
4140 @item pyicoregion: for generating exploratory regions automatically;
4141 @item pyicoenrich: for differential enrichment between two conditions;
4142 @item pyicoclip: for calling CLIP-Seq peaks without a control;
4143 @item pyicos: for genomic coordinates manipulation;
4144 @item pyicoller: for peak calling on punctuated ChIP-Seq;
4145 @item pyicount: to count how many reads from N experiment files overlap in a
4146 region file;
4147 @item pyicotrocol: to combine operations from pyicoteo.
4148 @end enumerate\n")
4149 (license license:gpl3+)))
4150
4151 (define-public prodigal
4152 (package
4153 (name "prodigal")
4154 (version "2.6.3")
4155 (source (origin
4156 (method url-fetch)
4157 (uri (string-append
4158 "https://github.com/hyattpd/Prodigal/archive/v"
4159 version ".tar.gz"))
4160 (file-name (string-append name "-" version ".tar.gz"))
4161 (sha256
4162 (base32
4163 "17srxkqd3jc77xk15pfbgg1a9xahqg7337w95mrsia7mpza4l2c9"))))
4164 (build-system gnu-build-system)
4165 (arguments
4166 `(#:tests? #f ;no check target
4167 #:make-flags (list (string-append "INSTALLDIR="
4168 (assoc-ref %outputs "out")
4169 "/bin"))
4170 #:phases
4171 (modify-phases %standard-phases
4172 (delete 'configure))))
4173 (home-page "http://prodigal.ornl.gov")
4174 (synopsis "Protein-coding gene prediction for Archaea and Bacteria")
4175 (description
4176 "Prodigal runs smoothly on finished genomes, draft genomes, and
4177 metagenomes, providing gene predictions in GFF3, Genbank, or Sequin table
4178 format. It runs quickly, in an unsupervised fashion, handles gaps, handles
4179 partial genes, and identifies translation initiation sites.")
4180 (license license:gpl3+)))
4181
4182 (define-public roary
4183 (package
4184 (name "roary")
4185 (version "3.8.2")
4186 (source
4187 (origin
4188 (method url-fetch)
4189 (uri (string-append
4190 "mirror://cpan/authors/id/A/AJ/AJPAGE/Bio-Roary-"
4191 version ".tar.gz"))
4192 (sha256
4193 (base32
4194 "03dfr2cd5fp80bcr65923zpdzrasvcxl7c2vgh8373v25a1yfap7"))))
4195 (build-system perl-build-system)
4196 (arguments
4197 `(#:phases
4198 (modify-phases %standard-phases
4199 (delete 'configure)
4200 (delete 'build)
4201 (replace 'check
4202 (lambda _
4203 ;; The tests are not run by default, so we run each test file
4204 ;; directly.
4205 (setenv "PATH" (string-append (getcwd) "/bin" ":"
4206 (getenv "PATH")))
4207 (setenv "PERL5LIB" (string-append (getcwd) "/lib" ":"
4208 (getenv "PERL5LIB")))
4209 (zero? (length (filter (lambda (file)
4210 (display file)(display "\n")
4211 (not (zero? (system* "perl" file))))
4212 (find-files "t" ".*\\.t$"))))))
4213 (replace 'install
4214 ;; There is no 'install' target in the Makefile.
4215 (lambda* (#:key outputs #:allow-other-keys)
4216 (let* ((out (assoc-ref outputs "out"))
4217 (bin (string-append out "/bin"))
4218 (perl (string-append out "/lib/perl5/site_perl"))
4219 (roary-plots "contrib/roary_plots"))
4220 (mkdir-p bin)
4221 (mkdir-p perl)
4222 (copy-recursively "bin" bin)
4223 (copy-recursively "lib" perl)
4224 #t)))
4225 (add-after 'install 'wrap-programs
4226 (lambda* (#:key inputs outputs #:allow-other-keys)
4227 (let* ((out (assoc-ref outputs "out"))
4228 (perl5lib (getenv "PERL5LIB"))
4229 (path (getenv "PATH")))
4230 (for-each (lambda (prog)
4231 (let ((binary (string-append out "/" prog)))
4232 (wrap-program binary
4233 `("PERL5LIB" ":" prefix
4234 (,(string-append perl5lib ":" out
4235 "/lib/perl5/site_perl"))))
4236 (wrap-program binary
4237 `("PATH" ":" prefix
4238 (,(string-append path ":" out "/bin"))))))
4239 (find-files "bin" ".*[^R]$"))
4240 (let ((file
4241 (string-append out "/bin/roary-create_pan_genome_plots.R"))
4242 (r-site-lib (getenv "R_LIBS_SITE"))
4243 (coreutils-path
4244 (string-append (assoc-ref inputs "coreutils") "/bin")))
4245 (wrap-program file
4246 `("R_LIBS_SITE" ":" prefix
4247 (,(string-append r-site-lib ":" out "/site-library/"))))
4248 (wrap-program file
4249 `("PATH" ":" prefix
4250 (,(string-append coreutils-path ":" out "/bin"))))))
4251 #t)))))
4252 (native-inputs
4253 `(("perl-env-path" ,perl-env-path)
4254 ("perl-test-files" ,perl-test-files)
4255 ("perl-test-most" ,perl-test-most)
4256 ("perl-test-output" ,perl-test-output)))
4257 (inputs
4258 `(("perl-array-utils" ,perl-array-utils)
4259 ("bioperl" ,bioperl-minimal)
4260 ("perl-exception-class" ,perl-exception-class)
4261 ("perl-file-find-rule" ,perl-file-find-rule)
4262 ("perl-file-grep" ,perl-file-grep)
4263 ("perl-file-slurper" ,perl-file-slurper)
4264 ("perl-file-which" ,perl-file-which)
4265 ("perl-graph" ,perl-graph)
4266 ("perl-graph-readwrite" ,perl-graph-readwrite)
4267 ("perl-log-log4perl" ,perl-log-log4perl)
4268 ("perl-moose" ,perl-moose)
4269 ("perl-perlio-utf8_strict" ,perl-perlio-utf8_strict)
4270 ("perl-text-csv" ,perl-text-csv)
4271 ("bedtools" ,bedtools)
4272 ("cd-hit" ,cd-hit)
4273 ("blast+" ,blast+)
4274 ("mcl" ,mcl)
4275 ("parallel" ,parallel)
4276 ("prank" ,prank)
4277 ("mafft" ,mafft)
4278 ("fasttree" ,fasttree)
4279 ("grep" ,grep)
4280 ("sed" ,sed)
4281 ("gawk" ,gawk)
4282 ("r-minimal" ,r-minimal)
4283 ("r-ggplot2" ,r-ggplot2)
4284 ("coreutils" ,coreutils)))
4285 (home-page "http://sanger-pathogens.github.io/Roary")
4286 (synopsis "High speed stand-alone pan genome pipeline")
4287 (description
4288 "Roary is a high speed stand alone pan genome pipeline, which takes
4289 annotated assemblies in GFF3 format (produced by the Prokka program) and
4290 calculates the pan genome. Using a standard desktop PC, it can analyse
4291 datasets with thousands of samples, without compromising the quality of the
4292 results. 128 samples can be analysed in under 1 hour using 1 GB of RAM and a
4293 single processor. Roary is not intended for metagenomics or for comparing
4294 extremely diverse sets of genomes.")
4295 (license license:gpl3)))
4296
4297 (define-public raxml
4298 (package
4299 (name "raxml")
4300 (version "8.2.10")
4301 (source
4302 (origin
4303 (method url-fetch)
4304 (uri
4305 (string-append
4306 "https://github.com/stamatak/standard-RAxML/archive/v"
4307 version ".tar.gz"))
4308 (file-name (string-append name "-" version ".tar.gz"))
4309 (sha256
4310 (base32
4311 "13s7aspfdcfr6asynwdg1x6vznys6pzap5f8wsffbnnwpkkg9ya8"))))
4312 (build-system gnu-build-system)
4313 (arguments
4314 `(#:tests? #f ; There are no tests.
4315 ;; Use 'standard' Makefile rather than SSE or AVX ones.
4316 #:make-flags (list "-f" "Makefile.HYBRID.gcc")
4317 #:phases
4318 (modify-phases %standard-phases
4319 (delete 'configure)
4320 (replace 'install
4321 (lambda* (#:key outputs #:allow-other-keys)
4322 (let* ((out (assoc-ref outputs "out"))
4323 (bin (string-append out "/bin"))
4324 (executable "raxmlHPC-HYBRID"))
4325 (install-file executable bin)
4326 (symlink (string-append bin "/" executable) "raxml"))
4327 #t)))))
4328 (inputs
4329 `(("openmpi" ,openmpi)))
4330 (home-page "http://sco.h-its.org/exelixis/web/software/raxml/index.html")
4331 (synopsis "Randomized Axelerated Maximum Likelihood phylogenetic trees")
4332 (description
4333 "RAxML is a tool for phylogenetic analysis and post-analysis of large
4334 phylogenies.")
4335 ;; The source includes x86 specific code
4336 (supported-systems '("x86_64-linux" "i686-linux"))
4337 (license license:gpl2+)))
4338
4339 (define-public rsem
4340 (package
4341 (name "rsem")
4342 (version "1.2.20")
4343 (source
4344 (origin
4345 (method url-fetch)
4346 (uri
4347 (string-append "http://deweylab.biostat.wisc.edu/rsem/src/rsem-"
4348 version ".tar.gz"))
4349 (sha256
4350 (base32 "0nzdc0j0hjllhsd5f2xli95dafm3nawskigs140xzvjk67xh0r9q"))
4351 (patches (search-patches "rsem-makefile.patch"))
4352 (modules '((guix build utils)))
4353 (snippet
4354 '(begin
4355 ;; remove bundled copy of boost
4356 (delete-file-recursively "boost")
4357 #t))))
4358 (build-system gnu-build-system)
4359 (arguments
4360 `(#:tests? #f ;no "check" target
4361 #:phases
4362 (modify-phases %standard-phases
4363 ;; No "configure" script.
4364 ;; Do not build bundled samtools library.
4365 (replace 'configure
4366 (lambda _
4367 (substitute* "Makefile"
4368 (("^all : sam/libbam.a") "all : "))
4369 #t))
4370 (replace 'install
4371 (lambda* (#:key outputs #:allow-other-keys)
4372 (let* ((out (string-append (assoc-ref outputs "out")))
4373 (bin (string-append out "/bin/"))
4374 (perl (string-append out "/lib/perl5/site_perl")))
4375 (mkdir-p bin)
4376 (mkdir-p perl)
4377 (for-each (lambda (file)
4378 (install-file file bin))
4379 (find-files "." "rsem-.*"))
4380 (install-file "rsem_perl_utils.pm" perl))
4381 #t))
4382 (add-after
4383 'install 'wrap-program
4384 (lambda* (#:key outputs #:allow-other-keys)
4385 (let ((out (assoc-ref outputs "out")))
4386 (for-each (lambda (prog)
4387 (wrap-program (string-append out "/bin/" prog)
4388 `("PERL5LIB" ":" prefix
4389 (,(string-append out "/lib/perl5/site_perl")))))
4390 '("rsem-plot-transcript-wiggles"
4391 "rsem-calculate-expression"
4392 "rsem-generate-ngvector"
4393 "rsem-run-ebseq"
4394 "rsem-prepare-reference")))
4395 #t)))))
4396 (inputs
4397 `(("boost" ,boost)
4398 ("ncurses" ,ncurses)
4399 ("r-minimal" ,r-minimal)
4400 ("perl" ,perl)
4401 ("samtools" ,samtools-0.1)
4402 ("zlib" ,zlib)))
4403 (home-page "http://deweylab.biostat.wisc.edu/rsem/")
4404 (synopsis "Estimate gene expression levels from RNA-Seq data")
4405 (description
4406 "RSEM is a software package for estimating gene and isoform expression
4407 levels from RNA-Seq data. The RSEM package provides a user-friendly
4408 interface, supports threads for parallel computation of the EM algorithm,
4409 single-end and paired-end read data, quality scores, variable-length reads and
4410 RSPD estimation. In addition, it provides posterior mean and 95% credibility
4411 interval estimates for expression levels. For visualization, it can generate
4412 BAM and Wiggle files in both transcript-coordinate and genomic-coordinate.")
4413 (license license:gpl3+)))
4414
4415 (define-public rseqc
4416 (package
4417 (name "rseqc")
4418 (version "2.6.1")
4419 (source
4420 (origin
4421 (method url-fetch)
4422 (uri
4423 (string-append "mirror://sourceforge/rseqc/"
4424 "RSeQC-" version ".tar.gz"))
4425 (sha256
4426 (base32 "15ly0254yi032qzkdplg00q144qfdsd986gh62829rl5bkxhj330"))
4427 (modules '((guix build utils)))
4428 (snippet
4429 '(begin
4430 ;; remove bundled copy of pysam
4431 (delete-file-recursively "lib/pysam")
4432 (substitute* "setup.py"
4433 ;; remove dependency on outdated "distribute" module
4434 (("^from distribute_setup import use_setuptools") "")
4435 (("^use_setuptools\\(\\)") "")
4436 ;; do not use bundled copy of pysam
4437 (("^have_pysam = False") "have_pysam = True"))))))
4438 (build-system python-build-system)
4439 (arguments `(#:python ,python-2))
4440 (inputs
4441 `(("python-cython" ,python2-cython)
4442 ("python-pysam" ,python2-pysam)
4443 ("python-numpy" ,python2-numpy)
4444 ("zlib" ,zlib)))
4445 (native-inputs
4446 `(("python-nose" ,python2-nose)))
4447 (home-page "http://rseqc.sourceforge.net/")
4448 (synopsis "RNA-seq quality control package")
4449 (description
4450 "RSeQC provides a number of modules that can comprehensively evaluate
4451 high throughput sequence data, especially RNA-seq data. Some basic modules
4452 inspect sequence quality, nucleotide composition bias, PCR bias and GC bias,
4453 while RNA-seq specific modules evaluate sequencing saturation, mapped reads
4454 distribution, coverage uniformity, strand specificity, etc.")
4455 (license license:gpl3+)))
4456
4457 (define-public seek
4458 ;; There are no release tarballs. According to the installation
4459 ;; instructions at http://seek.princeton.edu/installation.jsp, the latest
4460 ;; stable release is identified by this changeset ID.
4461 (let ((changeset "2329130")
4462 (revision "1"))
4463 (package
4464 (name "seek")
4465 (version (string-append "0-" revision "." changeset))
4466 (source (origin
4467 (method hg-fetch)
4468 (uri (hg-reference
4469 (url "https://bitbucket.org/libsleipnir/sleipnir")
4470 (changeset changeset)))
4471 (sha256
4472 (base32
4473 "0qrvilwh18dpbhkf92qvxbmay0j75ra3jg2wrhz67gf538zzphsx"))))
4474 (build-system gnu-build-system)
4475 (arguments
4476 `(#:modules ((srfi srfi-1)
4477 (guix build gnu-build-system)
4478 (guix build utils))
4479 #:phases
4480 (let ((dirs '("SeekMiner"
4481 "SeekEvaluator"
4482 "SeekPrep"
4483 "Distancer"
4484 "Data2DB"
4485 "PCL2Bin")))
4486 (modify-phases %standard-phases
4487 (add-before 'configure 'bootstrap
4488 (lambda _
4489 (zero? (system* "bash" "gen_auto"))))
4490 (add-after 'build 'build-additional-tools
4491 (lambda* (#:key make-flags #:allow-other-keys)
4492 (every (lambda (dir)
4493 (with-directory-excursion (string-append "tools/" dir)
4494 (zero? (apply system* "make" make-flags))))
4495 dirs)))
4496 (add-after 'install 'install-additional-tools
4497 (lambda* (#:key make-flags #:allow-other-keys)
4498 (fold (lambda (dir result)
4499 (with-directory-excursion (string-append "tools/" dir)
4500 (and result
4501 (zero? (apply system*
4502 `("make" ,@make-flags "install"))))))
4503 #t dirs)))))))
4504 (inputs
4505 `(("gsl" ,gsl)
4506 ("boost" ,boost)
4507 ("libsvm" ,libsvm)
4508 ("readline" ,readline)
4509 ("gengetopt" ,gengetopt)
4510 ("log4cpp" ,log4cpp)))
4511 (native-inputs
4512 `(("autoconf" ,autoconf)
4513 ("automake" ,automake)
4514 ("perl" ,perl)))
4515 (home-page "http://seek.princeton.edu")
4516 (synopsis "Gene co-expression search engine")
4517 (description
4518 "SEEK is a computational gene co-expression search engine. SEEK provides
4519 biologists with a way to navigate the massive human expression compendium that
4520 now contains thousands of expression datasets. SEEK returns a robust ranking
4521 of co-expressed genes in the biological area of interest defined by the user's
4522 query genes. It also prioritizes thousands of expression datasets according
4523 to the user's query of interest.")
4524 (license license:cc-by3.0))))
4525
4526 (define-public samtools
4527 (package
4528 (name "samtools")
4529 (version "1.5")
4530 (source
4531 (origin
4532 (method url-fetch)
4533 (uri
4534 (string-append "mirror://sourceforge/samtools/samtools/"
4535 version "/samtools-" version ".tar.bz2"))
4536 (sha256
4537 (base32
4538 "1xidmv0jmfy7l0kb32hdnlshcxgzi1hmygvig0cqrq1fhckdlhl5"))))
4539 (build-system gnu-build-system)
4540 (arguments
4541 `(#:modules ((ice-9 ftw)
4542 (ice-9 regex)
4543 (guix build gnu-build-system)
4544 (guix build utils))
4545 #:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
4546 #:configure-flags (list "--with-ncurses" "--with-htslib=system")
4547 #:phases
4548 (modify-phases %standard-phases
4549 (add-after 'unpack 'patch-tests
4550 (lambda _
4551 (substitute* "test/test.pl"
4552 ;; The test script calls out to /bin/bash
4553 (("/bin/bash") (which "bash")))
4554 #t))
4555 (add-after 'install 'install-library
4556 (lambda* (#:key outputs #:allow-other-keys)
4557 (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
4558 (install-file "libbam.a" lib)
4559 #t)))
4560 (add-after 'install 'install-headers
4561 (lambda* (#:key outputs #:allow-other-keys)
4562 (let ((include (string-append (assoc-ref outputs "out")
4563 "/include/samtools/")))
4564 (for-each (lambda (file)
4565 (install-file file include))
4566 (scandir "." (lambda (name) (string-match "\\.h$" name))))
4567 #t))))))
4568 (native-inputs `(("pkg-config" ,pkg-config)))
4569 (inputs
4570 `(("htslib" ,htslib)
4571 ("ncurses" ,ncurses)
4572 ("perl" ,perl)
4573 ("python" ,python)
4574 ("zlib" ,zlib)))
4575 (home-page "http://samtools.sourceforge.net")
4576 (synopsis "Utilities to efficiently manipulate nucleotide sequence alignments")
4577 (description
4578 "Samtools implements various utilities for post-processing nucleotide
4579 sequence alignments in the SAM, BAM, and CRAM formats, including indexing,
4580 variant calling (in conjunction with bcftools), and a simple alignment
4581 viewer.")
4582 (license license:expat)))
4583
4584 (define-public samtools-0.1
4585 ;; This is the most recent version of the 0.1 line of samtools. The input
4586 ;; and output formats differ greatly from that used and produced by samtools
4587 ;; 1.x and is still used in many bioinformatics pipelines.
4588 (package (inherit samtools)
4589 (version "0.1.19")
4590 (source
4591 (origin
4592 (method url-fetch)
4593 (uri
4594 (string-append "mirror://sourceforge/samtools/samtools/"
4595 version "/samtools-" version ".tar.bz2"))
4596 (sha256
4597 (base32 "1m33xsfwz0s8qi45lylagfllqg7fphf4dr0780rsvw75av9wk06h"))))
4598 (arguments
4599 `(#:tests? #f ;no "check" target
4600 ,@(substitute-keyword-arguments (package-arguments samtools)
4601 ((#:make-flags flags)
4602 `(cons "LIBCURSES=-lncurses" ,flags))
4603 ((#:phases phases)
4604 `(modify-phases ,phases
4605 (replace 'install
4606 (lambda* (#:key outputs #:allow-other-keys)
4607 (let ((bin (string-append
4608 (assoc-ref outputs "out") "/bin")))
4609 (mkdir-p bin)
4610 (install-file "samtools" bin)
4611 #t)))
4612 (delete 'patch-tests)
4613 (delete 'configure))))))))
4614
4615 (define-public mosaik
4616 (let ((commit "5c25216d3522d6a33e53875cd76a6d65001e4e67"))
4617 (package
4618 (name "mosaik")
4619 (version "2.2.30")
4620 (source (origin
4621 ;; There are no release tarballs nor tags.
4622 (method git-fetch)
4623 (uri (git-reference
4624 (url "https://github.com/wanpinglee/MOSAIK.git")
4625 (commit commit)))
4626 (file-name (string-append name "-" version))
4627 (sha256
4628 (base32
4629 "17gj3s07cm77r41z92awh0bim7w7q7fbn0sf5nkqmcm1vw052qgw"))))
4630 (build-system gnu-build-system)
4631 (arguments
4632 `(#:tests? #f ; no tests
4633 #:make-flags (list "CC=gcc")
4634 #:phases
4635 (modify-phases %standard-phases
4636 (replace 'configure
4637 (lambda _ (chdir "src") #t))
4638 (replace 'install
4639 (lambda* (#:key outputs #:allow-other-keys)
4640 (let ((bin (string-append (assoc-ref outputs "out")
4641 "/bin")))
4642 (mkdir-p bin)
4643 (copy-recursively "../bin" bin)
4644 #t))))))
4645 (inputs
4646 `(("perl" ,perl)
4647 ("zlib" ,zlib)))
4648 (supported-systems '("x86_64-linux"))
4649 (home-page "https://github.com/wanpinglee/MOSAIK")
4650 (synopsis "Map nucleotide sequence reads to reference genomes")
4651 (description
4652 "MOSAIK is a program for mapping second and third-generation sequencing
4653 reads to a reference genome. MOSAIK can align reads generated by all the
4654 major sequencing technologies, including Illumina, Applied Biosystems SOLiD,
4655 Roche 454, Ion Torrent and Pacific BioSciences SMRT.")
4656 ;; MOSAIK is released under the GPLv2+ with the exception of third-party
4657 ;; code released into the public domain:
4658 ;; 1. fastlz by Ariya Hidayat - http://www.fastlz.org/
4659 ;; 2. MD5 implementation - RSA Data Security, RFC 1321
4660 (license (list license:gpl2+ license:public-domain)))))
4661
4662 (define-public ngs-sdk
4663 (package
4664 (name "ngs-sdk")
4665 (version "1.3.0")
4666 (source
4667 (origin
4668 (method url-fetch)
4669 (uri
4670 (string-append "https://github.com/ncbi/ngs/archive/"
4671 version ".tar.gz"))
4672 (file-name (string-append name "-" version ".tar.gz"))
4673 (sha256
4674 (base32
4675 "1wiyf4c6nm2j87pv015cbi0qny5byf3pbvcw3likifz5dl56ag40"))))
4676 (build-system gnu-build-system)
4677 (arguments
4678 `(#:parallel-build? #f ; not supported
4679 #:tests? #f ; no "check" target
4680 #:phases
4681 (alist-replace
4682 'configure
4683 (lambda* (#:key outputs #:allow-other-keys)
4684 (let ((out (assoc-ref outputs "out")))
4685 ;; The 'configure' script doesn't recognize things like
4686 ;; '--enable-fast-install'.
4687 (zero? (system* "./configure"
4688 (string-append "--build-prefix=" (getcwd) "/build")
4689 (string-append "--prefix=" out)))))
4690 (alist-cons-after
4691 'unpack 'enter-dir
4692 (lambda _ (chdir "ngs-sdk") #t)
4693 %standard-phases))))
4694 (native-inputs `(("perl" ,perl)))
4695 ;; According to the test
4696 ;; unless ($MARCH =~ /x86_64/i || $MARCH =~ /i?86/i)
4697 ;; in ngs-sdk/setup/konfigure.perl
4698 (supported-systems '("i686-linux" "x86_64-linux"))
4699 (home-page "https://github.com/ncbi/ngs")
4700 (synopsis "API for accessing Next Generation Sequencing data")
4701 (description
4702 "NGS is a domain-specific API for accessing reads, alignments and pileups
4703 produced from Next Generation Sequencing. The API itself is independent from
4704 any particular back-end implementation, and supports use of multiple back-ends
4705 simultaneously.")
4706 (license license:public-domain)))
4707
4708 (define-public java-ngs
4709 (package (inherit ngs-sdk)
4710 (name "java-ngs")
4711 (arguments
4712 `(,@(substitute-keyword-arguments
4713 `(#:modules ((guix build gnu-build-system)
4714 (guix build utils)
4715 (srfi srfi-1)
4716 (srfi srfi-26))
4717 ,@(package-arguments ngs-sdk))
4718 ((#:phases phases)
4719 `(modify-phases ,phases
4720 (replace 'enter-dir (lambda _ (chdir "ngs-java") #t)))))))
4721 (inputs
4722 `(("jdk" ,icedtea "jdk")
4723 ("ngs-sdk" ,ngs-sdk)))
4724 (synopsis "Java bindings for NGS SDK")))
4725
4726 (define-public ncbi-vdb
4727 (package
4728 (name "ncbi-vdb")
4729 (version "2.8.2")
4730 (source
4731 (origin
4732 (method url-fetch)
4733 (uri
4734 (string-append "https://github.com/ncbi/ncbi-vdb/archive/"
4735 version ".tar.gz"))
4736 (file-name (string-append name "-" version ".tar.gz"))
4737 (sha256
4738 (base32
4739 "1acn4bv81mfl137qnbn9995mjjhwd36pm0b7qli1iw5skrxa9j8m"))))
4740 (build-system gnu-build-system)
4741 (arguments
4742 `(#:parallel-build? #f ; not supported
4743 #:tests? #f ; no "check" target
4744 #:phases
4745 (modify-phases %standard-phases
4746 (replace 'configure
4747 (lambda* (#:key inputs outputs #:allow-other-keys)
4748 (let ((out (assoc-ref outputs "out")))
4749 ;; Override include path for libmagic
4750 (substitute* "setup/package.prl"
4751 (("name => 'magic', Include => '/usr/include'")
4752 (string-append "name=> 'magic', Include => '"
4753 (assoc-ref inputs "libmagic")
4754 "/include" "'")))
4755
4756 ;; Install kdf5 library (needed by sra-tools)
4757 (substitute* "build/Makefile.install"
4758 (("LIBRARIES_TO_INSTALL =")
4759 "LIBRARIES_TO_INSTALL = kdf5.$(VERSION_LIBX) kdf5.$(VERSION_SHLX)"))
4760
4761 (substitute* "build/Makefile.env"
4762 (("CFLAGS =" prefix)
4763 (string-append prefix "-msse2 ")))
4764
4765 ;; Override search path for ngs-java
4766 (substitute* "setup/package.prl"
4767 (("/usr/local/ngs/ngs-java")
4768 (assoc-ref inputs "java-ngs")))
4769
4770 ;; The 'configure' script doesn't recognize things like
4771 ;; '--enable-fast-install'.
4772 (zero? (system*
4773 "./configure"
4774 (string-append "--build-prefix=" (getcwd) "/build")
4775 (string-append "--prefix=" (assoc-ref outputs "out"))
4776 (string-append "--debug")
4777 (string-append "--with-xml2-prefix="
4778 (assoc-ref inputs "libxml2"))
4779 (string-append "--with-ngs-sdk-prefix="
4780 (assoc-ref inputs "ngs-sdk"))
4781 (string-append "--with-hdf5-prefix="
4782 (assoc-ref inputs "hdf5")))))))
4783 (add-after 'install 'install-interfaces
4784 (lambda* (#:key outputs #:allow-other-keys)
4785 ;; Install interface libraries. On i686 the interface libraries
4786 ;; are installed to "linux/gcc/i386", so we need to use the Linux
4787 ;; architecture name ("i386") instead of the target system prefix
4788 ;; ("i686").
4789 (mkdir (string-append (assoc-ref outputs "out") "/ilib"))
4790 (copy-recursively (string-append "build/ncbi-vdb/linux/gcc/"
4791 ,(system->linux-architecture
4792 (or (%current-target-system)
4793 (%current-system)))
4794 "/rel/ilib")
4795 (string-append (assoc-ref outputs "out")
4796 "/ilib"))
4797 ;; Install interface headers
4798 (copy-recursively "interfaces"
4799 (string-append (assoc-ref outputs "out")
4800 "/include"))
4801 #t))
4802 ;; These files are needed by sra-tools.
4803 (add-after 'install 'install-configuration-files
4804 (lambda* (#:key outputs #:allow-other-keys)
4805 (let ((target (string-append (assoc-ref outputs "out") "/kfg")))
4806 (mkdir target)
4807 (install-file "libs/kfg/default.kfg" target)
4808 (install-file "libs/kfg/certs.kfg" target))
4809 #t)))))
4810 (inputs
4811 `(("libxml2" ,libxml2)
4812 ("ngs-sdk" ,ngs-sdk)
4813 ("java-ngs" ,java-ngs)
4814 ("libmagic" ,file)
4815 ("hdf5" ,hdf5)))
4816 (native-inputs `(("perl" ,perl)))
4817 ;; NCBI-VDB requires SSE capability.
4818 (supported-systems '("i686-linux" "x86_64-linux"))
4819 (home-page "https://github.com/ncbi/ncbi-vdb")
4820 (synopsis "Database engine for genetic information")
4821 (description
4822 "The NCBI-VDB library implements a highly compressed columnar data
4823 warehousing engine that is most often used to store genetic information.
4824 Databases are stored in a portable image within the file system, and can be
4825 accessed/downloaded on demand across HTTP.")
4826 (license license:public-domain)))
4827
4828 (define-public plink
4829 (package
4830 (name "plink")
4831 (version "1.07")
4832 (source
4833 (origin
4834 (method url-fetch)
4835 (uri (string-append
4836 "http://pngu.mgh.harvard.edu/~purcell/plink/dist/plink-"
4837 version "-src.zip"))
4838 (sha256
4839 (base32 "0as8gxm4pjyc8dxmm1sl873rrd7wn5qs0l29nqfnl31x8i467xaa"))
4840 (patches (search-patches "plink-1.07-unclobber-i.patch"
4841 "plink-endian-detection.patch"))))
4842 (build-system gnu-build-system)
4843 (arguments
4844 '(#:tests? #f ;no "check" target
4845 #:make-flags (list (string-append "LIB_LAPACK="
4846 (assoc-ref %build-inputs "lapack")
4847 "/lib/liblapack.so")
4848 "WITH_LAPACK=1"
4849 "FORCE_DYNAMIC=1"
4850 ;; disable phoning home
4851 "WITH_WEBCHECK=")
4852 #:phases
4853 (modify-phases %standard-phases
4854 ;; no "configure" script
4855 (delete 'configure)
4856 (replace 'install
4857 (lambda* (#:key outputs #:allow-other-keys)
4858 (let ((bin (string-append (assoc-ref outputs "out")
4859 "/bin/")))
4860 (install-file "plink" bin)
4861 #t))))))
4862 (inputs
4863 `(("zlib" ,zlib)
4864 ("lapack" ,lapack)))
4865 (native-inputs
4866 `(("unzip" ,unzip)))
4867 (home-page "http://pngu.mgh.harvard.edu/~purcell/plink/")
4868 (synopsis "Whole genome association analysis toolset")
4869 (description
4870 "PLINK is a whole genome association analysis toolset, designed to
4871 perform a range of basic, large-scale analyses in a computationally efficient
4872 manner. The focus of PLINK is purely on analysis of genotype/phenotype data,
4873 so there is no support for steps prior to this (e.g. study design and
4874 planning, generating genotype or CNV calls from raw data). Through
4875 integration with gPLINK and Haploview, there is some support for the
4876 subsequent visualization, annotation and storage of results.")
4877 ;; Code is released under GPLv2, except for fisher.h, which is under
4878 ;; LGPLv2.1+
4879 (license (list license:gpl2 license:lgpl2.1+))))
4880
4881 (define-public smithlab-cpp
4882 (let ((revision "1")
4883 (commit "728a097bec88c6f4b8528b685932049e660eff2e"))
4884 (package
4885 (name "smithlab-cpp")
4886 (version (string-append "0." revision "." (string-take commit 7)))
4887 (source (origin
4888 (method git-fetch)
4889 (uri (git-reference
4890 (url "https://github.com/smithlabcode/smithlab_cpp.git")
4891 (commit commit)))
4892 (file-name (string-append name "-" version "-checkout"))
4893 (sha256
4894 (base32
4895 "0d476lmj312xk77kr9fzrv7z1bv96yfyx0w7y62ycmnfbx32ll74"))))
4896 (build-system gnu-build-system)
4897 (arguments
4898 `(#:modules ((guix build gnu-build-system)
4899 (guix build utils)
4900 (srfi srfi-26))
4901 #:tests? #f ;no "check" target
4902 #:phases
4903 (modify-phases %standard-phases
4904 (add-after 'unpack 'use-samtools-headers
4905 (lambda _
4906 (substitute* '("SAM.cpp"
4907 "SAM.hpp")
4908 (("sam.h") "samtools/sam.h"))
4909 #t))
4910 (replace 'install
4911 (lambda* (#:key outputs #:allow-other-keys)
4912 (let* ((out (assoc-ref outputs "out"))
4913 (lib (string-append out "/lib"))
4914 (include (string-append out "/include/smithlab-cpp")))
4915 (mkdir-p lib)
4916 (mkdir-p include)
4917 (for-each (cut install-file <> lib)
4918 (find-files "." "\\.o$"))
4919 (for-each (cut install-file <> include)
4920 (find-files "." "\\.hpp$")))
4921 #t))
4922 (delete 'configure))))
4923 (inputs
4924 `(("samtools" ,samtools-0.1)
4925 ("zlib" ,zlib)))
4926 (home-page "https://github.com/smithlabcode/smithlab_cpp")
4927 (synopsis "C++ helper library for functions used in Smith lab projects")
4928 (description
4929 "Smithlab CPP is a C++ library that includes functions used in many of
4930 the Smith lab bioinformatics projects, such as a wrapper around Samtools data
4931 structures, classes for genomic regions, mapped sequencing reads, etc.")
4932 (license license:gpl3+))))
4933
4934 (define-public preseq
4935 (package
4936 (name "preseq")
4937 (version "2.0")
4938 (source (origin
4939 (method url-fetch)
4940 (uri (string-append "https://github.com/smithlabcode/"
4941 "preseq/archive/v" version ".tar.gz"))
4942 (file-name (string-append name "-" version ".tar.gz"))
4943 (sha256
4944 (base32 "08r684l50pnxjpvmhzjgqq56yv9rfw90k8vx0nsrnrzk8mf9hsdq"))
4945 (modules '((guix build utils)))
4946 (snippet
4947 ;; Remove bundled samtools.
4948 '(delete-file-recursively "samtools"))))
4949 (build-system gnu-build-system)
4950 (arguments
4951 `(#:tests? #f ;no "check" target
4952 #:phases
4953 (modify-phases %standard-phases
4954 (delete 'configure))
4955 #:make-flags
4956 (list (string-append "PREFIX="
4957 (assoc-ref %outputs "out"))
4958 (string-append "LIBBAM="
4959 (assoc-ref %build-inputs "samtools")
4960 "/lib/libbam.a")
4961 (string-append "SMITHLAB_CPP="
4962 (assoc-ref %build-inputs "smithlab-cpp")
4963 "/lib")
4964 "PROGS=preseq"
4965 "INCLUDEDIRS=$(SMITHLAB_CPP)/../include/smithlab-cpp $(SAMTOOLS_DIR)")))
4966 (inputs
4967 `(("gsl" ,gsl)
4968 ("samtools" ,samtools-0.1)
4969 ("smithlab-cpp" ,smithlab-cpp)
4970 ("zlib" ,zlib)))
4971 (home-page "http://smithlabresearch.org/software/preseq/")
4972 (synopsis "Program for analyzing library complexity")
4973 (description
4974 "The preseq package is aimed at predicting and estimating the complexity
4975 of a genomic sequencing library, equivalent to predicting and estimating the
4976 number of redundant reads from a given sequencing depth and how many will be
4977 expected from additional sequencing using an initial sequencing experiment.
4978 The estimates can then be used to examine the utility of further sequencing,
4979 optimize the sequencing depth, or to screen multiple libraries to avoid low
4980 complexity samples.")
4981 (license license:gpl3+)))
4982
4983 (define-public python-screed
4984 (package
4985 (name "python-screed")
4986 (version "0.9")
4987 (source
4988 (origin
4989 (method url-fetch)
4990 (uri (pypi-uri "screed" version))
4991 (sha256
4992 (base32
4993 "18czszp9fkx3j6jr7y5kp6dfialscgddk05mw1zkhh2zhn0jd8i0"))))
4994 (build-system python-build-system)
4995 (arguments
4996 `(#:phases
4997 (modify-phases %standard-phases
4998 (replace 'check
4999 (lambda _
5000 (setenv "PYTHONPATH"
5001 (string-append (getenv "PYTHONPATH") ":."))
5002 (zero? (system* "nosetests" "--attr" "!known_failing")))))))
5003 (native-inputs
5004 `(("python-nose" ,python-nose)))
5005 (inputs
5006 `(("python-bz2file" ,python-bz2file)))
5007 (home-page "https://github.com/dib-lab/screed/")
5008 (synopsis "Short read sequence database utilities")
5009 (description "Screed parses FASTA and FASTQ files and generates databases.
5010 Values such as sequence name, sequence description, sequence quality and the
5011 sequence itself can be retrieved from these databases.")
5012 (license license:bsd-3)))
5013
5014 (define-public python2-screed
5015 (package-with-python2 python-screed))
5016
5017 (define-public sra-tools
5018 (package
5019 (name "sra-tools")
5020 (version "2.8.2-1")
5021 (source
5022 (origin
5023 (method url-fetch)
5024 (uri
5025 (string-append "https://github.com/ncbi/sra-tools/archive/"
5026 version ".tar.gz"))
5027 (file-name (string-append name "-" version ".tar.gz"))
5028 (sha256
5029 (base32
5030 "1camsijmvv2s45mb4iyf44ghl4gkd4rl0viphpcgl3ccchy32a0g"))))
5031 (build-system gnu-build-system)
5032 (arguments
5033 `(#:parallel-build? #f ; not supported
5034 #:tests? #f ; no "check" target
5035 #:make-flags
5036 (list (string-append "DEFAULT_CRT="
5037 (assoc-ref %build-inputs "ncbi-vdb")
5038 "/kfg/certs.kfg")
5039 (string-append "DEFAULT_KFG="
5040 (assoc-ref %build-inputs "ncbi-vdb")
5041 "/kfg/default.kfg")
5042 (string-append "VDB_LIBDIR="
5043 (assoc-ref %build-inputs "ncbi-vdb")
5044 ,(if (string-prefix? "x86_64"
5045 (or (%current-target-system)
5046 (%current-system)))
5047 "/lib64"
5048 "/lib32")))
5049 #:phases
5050 (modify-phases %standard-phases
5051 (replace 'configure
5052 (lambda* (#:key inputs outputs #:allow-other-keys)
5053 ;; The build system expects a directory containing the sources and
5054 ;; raw build output of ncbi-vdb, including files that are not
5055 ;; installed. Since we are building against an installed version of
5056 ;; ncbi-vdb, the following modifications are needed.
5057 (substitute* "setup/konfigure.perl"
5058 ;; Make the configure script look for the "ilib" directory of
5059 ;; "ncbi-vdb" without first checking for the existence of a
5060 ;; matching library in its "lib" directory.
5061 (("^ my \\$f = File::Spec->catdir\\(\\$libdir, \\$lib\\);")
5062 "my $f = File::Spec->catdir($ilibdir, $ilib);")
5063 ;; Look for interface libraries in ncbi-vdb's "ilib" directory.
5064 (("my \\$ilibdir = File::Spec->catdir\\(\\$builddir, 'ilib'\\);")
5065 "my $ilibdir = File::Spec->catdir($dir, 'ilib');"))
5066
5067 ;; Dynamic linking
5068 (substitute* "tools/copycat/Makefile"
5069 (("smagic-static") "lmagic"))
5070
5071 ;; The 'configure' script doesn't recognize things like
5072 ;; '--enable-fast-install'.
5073 (zero? (system*
5074 "./configure"
5075 (string-append "--build-prefix=" (getcwd) "/build")
5076 (string-append "--prefix=" (assoc-ref outputs "out"))
5077 (string-append "--debug")
5078 (string-append "--with-fuse-prefix="
5079 (assoc-ref inputs "fuse"))
5080 (string-append "--with-magic-prefix="
5081 (assoc-ref inputs "libmagic"))
5082 ;; TODO: building with libxml2 fails with linker errors
5083 ;; (string-append "--with-xml2-prefix="
5084 ;; (assoc-ref inputs "libxml2"))
5085 (string-append "--with-ncbi-vdb-sources="
5086 (assoc-ref inputs "ncbi-vdb"))
5087 (string-append "--with-ncbi-vdb-build="
5088 (assoc-ref inputs "ncbi-vdb"))
5089 (string-append "--with-ngs-sdk-prefix="
5090 (assoc-ref inputs "ngs-sdk"))
5091 (string-append "--with-hdf5-prefix="
5092 (assoc-ref inputs "hdf5"))))))
5093 ;; This version of sra-tools fails to build with glibc because of a
5094 ;; naming conflict. glibc-2.25/include/bits/mathcalls.h already
5095 ;; contains a definition of "canonicalize", so we rename it.
5096 ;;
5097 ;; See upstream bug report:
5098 ;; https://github.com/ncbi/sra-tools/issues/67
5099 (add-after 'unpack 'patch-away-glibc-conflict
5100 (lambda _
5101 (substitute* "tools/bam-loader/bam.c"
5102 (("canonicalize\\(" line)
5103 (string-append "sra_tools_" line)))
5104 #t)))))
5105 (native-inputs `(("perl" ,perl)))
5106 (inputs
5107 `(("ngs-sdk" ,ngs-sdk)
5108 ("ncbi-vdb" ,ncbi-vdb)
5109 ("libmagic" ,file)
5110 ("fuse" ,fuse)
5111 ("hdf5" ,hdf5)
5112 ("zlib" ,zlib)))
5113 (home-page "http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software")
5114 (synopsis "Tools and libraries for reading and writing sequencing data")
5115 (description
5116 "The SRA Toolkit from NCBI is a collection of tools and libraries for
5117 reading of sequencing files from the Sequence Read Archive (SRA) database and
5118 writing files into the .sra format.")
5119 (license license:public-domain)))
5120
5121 (define-public seqan
5122 (package
5123 (name "seqan")
5124 (version "1.4.2")
5125 (source (origin
5126 (method url-fetch)
5127 (uri (string-append "http://packages.seqan.de/seqan-library/"
5128 "seqan-library-" version ".tar.bz2"))
5129 (sha256
5130 (base32
5131 "05s3wrrwn50f81aklfm65i4a749zag1vr8z03k21xm0pdxy47yvp"))))
5132 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
5133 ;; makes sense to split the outputs.
5134 (outputs '("out" "doc"))
5135 (build-system trivial-build-system)
5136 (arguments
5137 `(#:modules ((guix build utils))
5138 #:builder
5139 (begin
5140 (use-modules (guix build utils))
5141 (let ((tar (assoc-ref %build-inputs "tar"))
5142 (bzip (assoc-ref %build-inputs "bzip2"))
5143 (out (assoc-ref %outputs "out"))
5144 (doc (assoc-ref %outputs "doc")))
5145 (setenv "PATH" (string-append tar "/bin:" bzip "/bin"))
5146 (system* "tar" "xvf" (assoc-ref %build-inputs "source"))
5147 (chdir (string-append "seqan-library-" ,version))
5148 (copy-recursively "include" (string-append out "/include"))
5149 (copy-recursively "share" (string-append doc "/share"))))))
5150 (native-inputs
5151 `(("source" ,source)
5152 ("tar" ,tar)
5153 ("bzip2" ,bzip2)))
5154 (home-page "http://www.seqan.de")
5155 (synopsis "Library for nucleotide sequence analysis")
5156 (description
5157 "SeqAn is a C++ library of efficient algorithms and data structures for
5158 the analysis of sequences with the focus on biological data. It contains
5159 algorithms and data structures for string representation and their
5160 manipulation, online and indexed string search, efficient I/O of
5161 bioinformatics file formats, sequence alignment, and more.")
5162 (license license:bsd-3)))
5163
5164 (define-public seqmagick
5165 (package
5166 (name "seqmagick")
5167 (version "0.6.1")
5168 (source
5169 (origin
5170 (method url-fetch)
5171 (uri (string-append
5172 "https://pypi.python.org/packages/source/s/seqmagick/seqmagick-"
5173 version ".tar.gz"))
5174 (sha256
5175 (base32
5176 "0cgn477n74gsl4qdaakrrhi953kcsd4q3ivk2lr18x74s3g4ma1d"))))
5177 (build-system python-build-system)
5178 (arguments
5179 ;; python2 only, see https://github.com/fhcrc/seqmagick/issues/56
5180 `(#:python ,python-2
5181 #:phases
5182 (modify-phases %standard-phases
5183 ;; Current test in setup.py does not work as of 0.6.1,
5184 ;; so use nose to run tests instead for now. See
5185 ;; https://github.com/fhcrc/seqmagick/issues/55
5186 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
5187 (inputs
5188 ;; biopython-1.66 is required due to
5189 ;; https://github.com/fhcrc/seqmagick/issues/59
5190 ;; When that issue is resolved the 'python2-biopython-1.66' package
5191 ;; should be removed.
5192 `(("python-biopython" ,python2-biopython-1.66)))
5193 (native-inputs
5194 `(("python-nose" ,python2-nose)))
5195 (home-page "https://github.com/fhcrc/seqmagick")
5196 (synopsis "Tools for converting and modifying sequence files")
5197 (description
5198 "Bioinformaticians often have to convert sequence files between formats
5199 and do little manipulations on them, and it's not worth writing scripts for
5200 that. Seqmagick is a utility to expose the file format conversion in
5201 BioPython in a convenient way. Instead of having a big mess of scripts, there
5202 is one that takes arguments.")
5203 (license license:gpl3)))
5204
5205 (define-public seqtk
5206 (package
5207 (name "seqtk")
5208 (version "1.2")
5209 (source (origin
5210 (method url-fetch)
5211 (uri (string-append
5212 "https://github.com/lh3/seqtk/archive/v"
5213 version ".tar.gz"))
5214 (file-name (string-append name "-" version ".tar.gz"))
5215 (sha256
5216 (base32
5217 "0ywdyzpmfiz2wp6ampbzqg4y8bj450nfgqarpamg045b8mk32lxx"))
5218 (modules '((guix build utils)))
5219 (snippet
5220 '(begin
5221 ;; Remove extraneous header files, as is done in the seqtk
5222 ;; master branch.
5223 (for-each (lambda (file) (delete-file file))
5224 (list "ksort.h" "kstring.h" "kvec.h"))
5225 #t))))
5226 (build-system gnu-build-system)
5227 (arguments
5228 `(#:phases
5229 (modify-phases %standard-phases
5230 (delete 'configure)
5231 (replace 'check
5232 ;; There are no tests, so we just run a sanity check.
5233 (lambda _ (zero? (system* "./seqtk" "seq"))))
5234 (replace 'install
5235 (lambda* (#:key outputs #:allow-other-keys)
5236 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5237 (install-file "seqtk" bin)))))))
5238 (inputs
5239 `(("zlib" ,zlib)))
5240 (home-page "https://github.com/lh3/seqtk")
5241 (synopsis "Toolkit for processing biological sequences in FASTA/Q format")
5242 (description
5243 "Seqtk is a fast and lightweight tool for processing sequences in the
5244 FASTA or FASTQ format. It parses both FASTA and FASTQ files which can be
5245 optionally compressed by gzip.")
5246 (license license:expat)))
5247
5248 (define-public snap-aligner
5249 (package
5250 (name "snap-aligner")
5251 (version "1.0beta.18")
5252 (source (origin
5253 (method url-fetch)
5254 (uri (string-append
5255 "https://github.com/amplab/snap/archive/v"
5256 version ".tar.gz"))
5257 (file-name (string-append name "-" version ".tar.gz"))
5258 (sha256
5259 (base32
5260 "1vnsjwv007k1fl1q7d681kbwn6bc66cgw6h16hym6gvyy71qv2ly"))))
5261 (build-system gnu-build-system)
5262 (arguments
5263 '(#:phases
5264 (modify-phases %standard-phases
5265 (delete 'configure)
5266 (replace 'check (lambda _ (zero? (system* "./unit_tests"))))
5267 (replace 'install
5268 (lambda* (#:key outputs #:allow-other-keys)
5269 (let* ((out (assoc-ref outputs "out"))
5270 (bin (string-append out "/bin")))
5271 (install-file "snap-aligner" bin)
5272 (install-file "SNAPCommand" bin)
5273 #t))))))
5274 (native-inputs
5275 `(("zlib" ,zlib)))
5276 (home-page "http://snap.cs.berkeley.edu/")
5277 (synopsis "Short read DNA sequence aligner")
5278 (description
5279 "SNAP is a fast and accurate aligner for short DNA reads. It is
5280 optimized for modern read lengths of 100 bases or higher, and takes advantage
5281 of these reads to align data quickly through a hash-based indexing scheme.")
5282 ;; 32-bit systems are not supported by the unpatched code.
5283 ;; Following the bug reports https://github.com/amplab/snap/issues/68 and
5284 ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812378 we see that
5285 ;; systems without a lot of memory cannot make good use of this program.
5286 (supported-systems '("x86_64-linux"))
5287 (license license:asl2.0)))
5288
5289 (define-public sortmerna
5290 (package
5291 (name "sortmerna")
5292 (version "2.1b")
5293 (source
5294 (origin
5295 (method url-fetch)
5296 (uri (string-append
5297 "https://github.com/biocore/sortmerna/archive/"
5298 version ".tar.gz"))
5299 (file-name (string-append name "-" version ".tar.gz"))
5300 (sha256
5301 (base32
5302 "1ghaghvd82af9j5adavxh77g7hm247d1r69m3fbi6f1jdivj5ldk"))))
5303 (build-system gnu-build-system)
5304 (outputs '("out" ;for binaries
5305 "db")) ;for sequence databases
5306 (arguments
5307 `(#:phases
5308 (modify-phases %standard-phases
5309 (replace 'install
5310 (lambda* (#:key outputs #:allow-other-keys)
5311 (let* ((out (assoc-ref outputs "out"))
5312 (bin (string-append out "/bin"))
5313 (db (assoc-ref outputs "db"))
5314 (share
5315 (string-append db "/share/sortmerna/rRNA_databases")))
5316 (install-file "sortmerna" bin)
5317 (install-file "indexdb_rna" bin)
5318 (for-each (lambda (file)
5319 (install-file file share))
5320 (find-files "rRNA_databases" ".*fasta"))
5321 #t))))))
5322 (inputs
5323 `(("zlib" ,zlib)))
5324 (home-page "http://bioinfo.lifl.fr/RNA/sortmerna")
5325 (synopsis "Biological sequence analysis tool for NGS reads")
5326 (description
5327 "SortMeRNA is a biological sequence analysis tool for filtering, mapping
5328 and operational taxonomic unit (OTU) picking of next generation
5329 sequencing (NGS) reads. The core algorithm is based on approximate seeds and
5330 allows for fast and sensitive analyses of nucleotide sequences. The main
5331 application of SortMeRNA is filtering rRNA from metatranscriptomic data.")
5332 ;; The source includes x86 specific code
5333 (supported-systems '("x86_64-linux" "i686-linux"))
5334 (license license:lgpl3)))
5335
5336 (define-public star
5337 (package
5338 (name "star")
5339 (version "2.5.3a")
5340 (source (origin
5341 (method url-fetch)
5342 (uri (string-append "https://github.com/alexdobin/STAR/archive/"
5343 version ".tar.gz"))
5344 (file-name (string-append name "-" version ".tar.gz"))
5345 (sha256
5346 (base32
5347 "013wirlz8lllgjyagl48l75n1isxyabqb3sj7qlsl0x1rmvqw99a"))
5348 (modules '((guix build utils)))
5349 (snippet
5350 '(begin
5351 (substitute* "source/Makefile"
5352 (("/bin/rm") "rm"))
5353 ;; Remove pre-built binaries and bundled htslib sources.
5354 (delete-file-recursively "bin/MacOSX_x86_64")
5355 (delete-file-recursively "bin/Linux_x86_64")
5356 (delete-file-recursively "bin/Linux_x86_64_static")
5357 (delete-file-recursively "source/htslib")
5358 #t))))
5359 (build-system gnu-build-system)
5360 (arguments
5361 '(#:tests? #f ;no check target
5362 #:make-flags '("STAR")
5363 #:phases
5364 (modify-phases %standard-phases
5365 (add-after 'unpack 'enter-source-dir
5366 (lambda _ (chdir "source") #t))
5367 (add-after 'enter-source-dir 'do-not-use-bundled-htslib
5368 (lambda _
5369 (substitute* "Makefile"
5370 (("(Depend.list: \\$\\(SOURCES\\) parametersDefault\\.xxd) htslib"
5371 _ prefix) prefix))
5372 (substitute* '("BAMfunctions.cpp"
5373 "signalFromBAM.h"
5374 "bam_cat.h"
5375 "bam_cat.c"
5376 "STAR.cpp"
5377 "bamRemoveDuplicates.cpp")
5378 (("#include \"htslib/([^\"]+\\.h)\"" _ header)
5379 (string-append "#include <" header ">")))
5380 (substitute* "IncludeDefine.h"
5381 (("\"htslib/(htslib/[^\"]+.h)\"" _ header)
5382 (string-append "<" header ">")))
5383 #t))
5384 (replace 'install
5385 (lambda* (#:key outputs #:allow-other-keys)
5386 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5387 (install-file "STAR" bin))
5388 #t))
5389 (delete 'configure))))
5390 (native-inputs
5391 `(("vim" ,vim))) ; for xxd
5392 (inputs
5393 `(("htslib" ,htslib)
5394 ("zlib" ,zlib)))
5395 (home-page "https://github.com/alexdobin/STAR")
5396 (synopsis "Universal RNA-seq aligner")
5397 (description
5398 "The Spliced Transcripts Alignment to a Reference (STAR) software is
5399 based on a previously undescribed RNA-seq alignment algorithm that uses
5400 sequential maximum mappable seed search in uncompressed suffix arrays followed
5401 by seed clustering and stitching procedure. In addition to unbiased de novo
5402 detection of canonical junctions, STAR can discover non-canonical splices and
5403 chimeric (fusion) transcripts, and is also capable of mapping full-length RNA
5404 sequences.")
5405 ;; Only 64-bit systems are supported according to the README.
5406 (supported-systems '("x86_64-linux" "mips64el-linux"))
5407 ;; STAR is licensed under GPLv3 or later; htslib is MIT-licensed.
5408 (license license:gpl3+)))
5409
5410 (define-public subread
5411 (package
5412 (name "subread")
5413 (version "1.5.1")
5414 (source (origin
5415 (method url-fetch)
5416 (uri (string-append "mirror://sourceforge/subread/subread-"
5417 version "/subread-" version "-source.tar.gz"))
5418 (sha256
5419 (base32
5420 "0gn5zhbvllks0mmdg3qlmsbg91p2mpdc2wixwfqpi85yzfrh8hcy"))))
5421 (build-system gnu-build-system)
5422 (arguments
5423 `(#:tests? #f ;no "check" target
5424 ;; The CC and CCFLAGS variables are set to contain a lot of x86_64
5425 ;; optimizations by default, so we override these flags such that x86_64
5426 ;; flags are only added when the build target is an x86_64 system.
5427 #:make-flags
5428 (list (let ((system ,(or (%current-target-system)
5429 (%current-system)))
5430 (flags '("-ggdb" "-fomit-frame-pointer"
5431 "-ffast-math" "-funroll-loops"
5432 "-fmessage-length=0"
5433 "-O9" "-Wall" "-DMAKE_FOR_EXON"
5434 "-DMAKE_STANDALONE"
5435 "-DSUBREAD_VERSION=\\\"${SUBREAD_VERSION}\\\""))
5436 (flags64 '("-mmmx" "-msse" "-msse2" "-msse3")))
5437 (if (string-prefix? "x86_64" system)
5438 (string-append "CCFLAGS=" (string-join (append flags flags64)))
5439 (string-append "CCFLAGS=" (string-join flags))))
5440 "-f" "Makefile.Linux"
5441 "CC=gcc ${CCFLAGS}")
5442 #:phases
5443 (alist-cons-after
5444 'unpack 'enter-dir
5445 (lambda _ (chdir "src") #t)
5446 (alist-replace
5447 'install
5448 (lambda* (#:key outputs #:allow-other-keys)
5449 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5450 (mkdir-p bin)
5451 (copy-recursively "../bin" bin)))
5452 ;; no "configure" script
5453 (alist-delete 'configure %standard-phases)))))
5454 (inputs `(("zlib" ,zlib)))
5455 (home-page "http://bioinf.wehi.edu.au/subread-package/")
5456 (synopsis "Tool kit for processing next-gen sequencing data")
5457 (description
5458 "The subread package contains the following tools: subread aligner, a
5459 general-purpose read aligner; subjunc aligner: detecting exon-exon junctions
5460 and mapping RNA-seq reads; featureCounts: counting mapped reads for genomic
5461 features; exactSNP: a SNP caller that discovers SNPs by testing signals
5462 against local background noises.")
5463 (license license:gpl3+)))
5464
5465 (define-public stringtie
5466 (package
5467 (name "stringtie")
5468 (version "1.2.1")
5469 (source (origin
5470 (method url-fetch)
5471 (uri (string-append "http://ccb.jhu.edu/software/stringtie/dl/"
5472 "stringtie-" version ".tar.gz"))
5473 (sha256
5474 (base32
5475 "1cqllsc1maq4kh92isi8yadgzbmnf042hlnalpk3y59aph1z3bfz"))
5476 (modules '((guix build utils)))
5477 (snippet
5478 '(begin
5479 (delete-file-recursively "samtools-0.1.18")
5480 #t))))
5481 (build-system gnu-build-system)
5482 (arguments
5483 `(#:tests? #f ;no test suite
5484 #:phases
5485 (modify-phases %standard-phases
5486 ;; no configure script
5487 (delete 'configure)
5488 (add-before 'build 'use-system-samtools
5489 (lambda _
5490 (substitute* "Makefile"
5491 (("stringtie: \\$\\{BAM\\}/libbam\\.a")
5492 "stringtie: "))
5493 (substitute* '("gclib/GBam.h"
5494 "gclib/GBam.cpp")
5495 (("#include \"(bam|sam|kstring).h\"" _ header)
5496 (string-append "#include <samtools/" header ".h>")))
5497 #t))
5498 (add-after 'unpack 'remove-duplicate-typedef
5499 (lambda _
5500 ;; This typedef conflicts with the typedef in
5501 ;; glibc-2.25/include/bits/types.h
5502 (substitute* "gclib/GThreads.h"
5503 (("typedef long long __intmax_t;") ""))
5504 #t))
5505 (replace 'install
5506 (lambda* (#:key outputs #:allow-other-keys)
5507 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5508 (install-file "stringtie" bin)
5509 #t))))))
5510 (inputs
5511 `(("samtools" ,samtools-0.1)
5512 ("zlib" ,zlib)))
5513 (home-page "http://ccb.jhu.edu/software/stringtie/")
5514 (synopsis "Transcript assembly and quantification for RNA-Seq data")
5515 (description
5516 "StringTie is a fast and efficient assembler of RNA-Seq sequence
5517 alignments into potential transcripts. It uses a novel network flow algorithm
5518 as well as an optional de novo assembly step to assemble and quantitate
5519 full-length transcripts representing multiple splice variants for each gene
5520 locus. Its input can include not only the alignments of raw reads used by
5521 other transcript assemblers, but also alignments of longer sequences that have
5522 been assembled from those reads. To identify differentially expressed genes
5523 between experiments, StringTie's output can be processed either by the
5524 Cuffdiff or Ballgown programs.")
5525 (license license:artistic2.0)))
5526
5527 (define-public taxtastic
5528 (package
5529 (name "taxtastic")
5530 (version "0.6.4")
5531 (source (origin
5532 (method url-fetch)
5533 (uri (pypi-uri "taxtastic" version))
5534 (sha256
5535 (base32
5536 "0s79z8kfl853x7l4h8ms05k31q87aw62nrchlk20w9n227j35929"))))
5537 (build-system python-build-system)
5538 (arguments
5539 `(#:python ,python-2
5540 #:phases
5541 (modify-phases %standard-phases
5542 (replace 'check
5543 (lambda _
5544 (zero? (system* "python" "-m" "unittest" "discover" "-v")))))))
5545 (propagated-inputs
5546 `(("python-sqlalchemy" ,python2-sqlalchemy)
5547 ("python-decorator" ,python2-decorator)
5548 ("python-biopython" ,python2-biopython)
5549 ("python-pandas" ,python2-pandas)))
5550 (home-page "https://github.com/fhcrc/taxtastic")
5551 (synopsis "Tools for taxonomic naming and annotation")
5552 (description
5553 "Taxtastic is software written in python used to build and maintain
5554 reference packages i.e. collections of reference trees, reference alignments,
5555 profiles, and associated taxonomic information.")
5556 (license license:gpl3+)))
5557
5558 (define-public vcftools
5559 (package
5560 (name "vcftools")
5561 (version "0.1.15")
5562 (source (origin
5563 (method url-fetch)
5564 (uri (string-append
5565 "https://github.com/vcftools/vcftools/releases/download/v"
5566 version "/vcftools-" version ".tar.gz"))
5567 (sha256
5568 (base32
5569 "1qw30c45wihgy632rbz4rh3njnwj4msj46l1rsgdhyg6bgypmr1i"))))
5570 (build-system gnu-build-system)
5571 (arguments
5572 `(#:tests? #f ; no "check" target
5573 #:make-flags (list
5574 "CFLAGS=-O2" ; override "-m64" flag
5575 (string-append "PREFIX=" (assoc-ref %outputs "out"))
5576 (string-append "MANDIR=" (assoc-ref %outputs "out")
5577 "/share/man/man1"))))
5578 (native-inputs
5579 `(("pkg-config" ,pkg-config)))
5580 (inputs
5581 `(("perl" ,perl)
5582 ("zlib" ,zlib)))
5583 (home-page "https://vcftools.github.io/")
5584 (synopsis "Tools for working with VCF files")
5585 (description
5586 "VCFtools is a program package designed for working with VCF files, such
5587 as those generated by the 1000 Genomes Project. The aim of VCFtools is to
5588 provide easily accessible methods for working with complex genetic variation
5589 data in the form of VCF files.")
5590 ;; The license is declared as LGPLv3 in the README and
5591 ;; at https://vcftools.github.io/license.html
5592 (license license:lgpl3)))
5593
5594 (define-public infernal
5595 (package
5596 (name "infernal")
5597 (version "1.1.2")
5598 (source (origin
5599 (method url-fetch)
5600 (uri (string-append "http://eddylab.org/software/infernal/"
5601 "infernal-" version ".tar.gz"))
5602 (sha256
5603 (base32
5604 "0sr2hiz3qxfwqpz3whxr6n82p3x27336v3f34iqznp10hks2935c"))))
5605 (build-system gnu-build-system)
5606 (native-inputs
5607 `(("perl" ,perl))) ; for tests
5608 (home-page "http://eddylab.org/infernal/")
5609 (synopsis "Inference of RNA alignments")
5610 (description "Infernal (\"INFERence of RNA ALignment\") is a tool for
5611 searching DNA sequence databases for RNA structure and sequence similarities.
5612 It is an implementation of a special case of profile stochastic context-free
5613 grammars called @dfn{covariance models} (CMs). A CM is like a sequence
5614 profile, but it scores a combination of sequence consensus and RNA secondary
5615 structure consensus, so in many cases, it is more capable of identifying RNA
5616 homologs that conserve their secondary structure more than their primary
5617 sequence.")
5618 ;; Infernal 1.1.2 requires VMX or SSE capability for parallel instructions.
5619 (supported-systems '("i686-linux" "x86_64-linux"))
5620 (license license:bsd-3)))
5621
5622 (define-public r-centipede
5623 (package
5624 (name "r-centipede")
5625 (version "1.2")
5626 (source (origin
5627 (method url-fetch)
5628 (uri (string-append "http://download.r-forge.r-project.org/"
5629 "src/contrib/CENTIPEDE_" version ".tar.gz"))
5630 (sha256
5631 (base32
5632 "1hsx6qgwr0i67fhy9257zj7s0ppncph2hjgbia5nn6nfmj0ax6l9"))))
5633 (build-system r-build-system)
5634 (home-page "http://centipede.uchicago.edu/")
5635 (synopsis "Predict transcription factor binding sites")
5636 (description
5637 "CENTIPEDE applies a hierarchical Bayesian mixture model to infer regions
5638 of the genome that are bound by particular transcription factors. It starts
5639 by identifying a set of candidate binding sites, and then aims to classify the
5640 sites according to whether each site is bound or not bound by a transcription
5641 factor. CENTIPEDE is an unsupervised learning algorithm that discriminates
5642 between two different types of motif instances using as much relevant
5643 information as possible.")
5644 (license (list license:gpl2+ license:gpl3+))))
5645
5646 (define-public r-vegan
5647 (package
5648 (name "r-vegan")
5649 (version "2.4-3")
5650 (source
5651 (origin
5652 (method url-fetch)
5653 (uri (cran-uri "vegan" version))
5654 (sha256
5655 (base32
5656 "15zcxfix2d854897k1lr0sfmj2n00339nlsppcr3zrb238lb2mi5"))))
5657 (build-system r-build-system)
5658 (native-inputs
5659 `(("gfortran" ,gfortran)
5660 ("r-knitr" ,r-knitr)))
5661 (propagated-inputs
5662 `(("r-cluster" ,r-cluster)
5663 ("r-lattice" ,r-lattice)
5664 ("r-mass" ,r-mass)
5665 ("r-mgcv" ,r-mgcv)
5666 ("r-permute" ,r-permute)))
5667 (home-page "https://cran.r-project.org/web/packages/vegan")
5668 (synopsis "Functions for community ecology")
5669 (description
5670 "The vegan package provides tools for descriptive community ecology. It
5671 has most basic functions of diversity analysis, community ordination and
5672 dissimilarity analysis. Most of its multivariate tools can be used for other
5673 data types as well.")
5674 (license license:gpl2+)))
5675
5676 (define-public r-annotate
5677 (package
5678 (name "r-annotate")
5679 (version "1.54.0")
5680 (source
5681 (origin
5682 (method url-fetch)
5683 (uri (bioconductor-uri "annotate" version))
5684 (sha256
5685 (base32
5686 "03hmbvp3i6lvd307fqdg7akxi2qp322rlky3bzw0zccgm0i0221g"))))
5687 (build-system r-build-system)
5688 (propagated-inputs
5689 `(("r-annotationdbi" ,r-annotationdbi)
5690 ("r-biobase" ,r-biobase)
5691 ("r-biocgenerics" ,r-biocgenerics)
5692 ("r-dbi" ,r-dbi)
5693 ("r-rcurl" ,r-rcurl)
5694 ("r-xml" ,r-xml)
5695 ("r-xtable" ,r-xtable)))
5696 (home-page
5697 "http://bioconductor.org/packages/annotate")
5698 (synopsis "Annotation for microarrays")
5699 (description "This package provides R environments for the annotation of
5700 microarrays.")
5701 (license license:artistic2.0)))
5702
5703 (define-public r-geneplotter
5704 (package
5705 (name "r-geneplotter")
5706 (version "1.54.0")
5707 (source
5708 (origin
5709 (method url-fetch)
5710 (uri (bioconductor-uri "geneplotter" version))
5711 (sha256
5712 (base32
5713 "0a0ajns21db5rrjl16bq6wawggsnxr00fg184pc38nmfghv4z4b6"))))
5714 (build-system r-build-system)
5715 (propagated-inputs
5716 `(("r-annotate" ,r-annotate)
5717 ("r-annotationdbi" ,r-annotationdbi)
5718 ("r-biobase" ,r-biobase)
5719 ("r-biocgenerics" ,r-biocgenerics)
5720 ("r-lattice" ,r-lattice)
5721 ("r-rcolorbrewer" ,r-rcolorbrewer)))
5722 (home-page "http://bioconductor.org/packages/geneplotter")
5723 (synopsis "Graphics functions for genomic data")
5724 (description
5725 "This package provides functions for plotting genomic data.")
5726 (license license:artistic2.0)))
5727
5728 (define-public r-genefilter
5729 (package
5730 (name "r-genefilter")
5731 (version "1.58.0")
5732 (source
5733 (origin
5734 (method url-fetch)
5735 (uri (bioconductor-uri "genefilter" version))
5736 (sha256
5737 (base32
5738 "0sf2hdi9nv6r83vn1y65m4jiba8pffddpj46d6yjn5rlsixplmqg"))))
5739 (build-system r-build-system)
5740 (native-inputs
5741 `(("gfortran" ,gfortran)))
5742 (propagated-inputs
5743 `(("r-annotate" ,r-annotate)
5744 ("r-annotationdbi" ,r-annotationdbi)
5745 ("r-biobase" ,r-biobase)
5746 ("r-s4vectors" ,r-s4vectors)
5747 ("r-survival" ,r-survival)))
5748 (home-page "http://bioconductor.org/packages/genefilter")
5749 (synopsis "Filter genes from high-throughput experiments")
5750 (description
5751 "This package provides basic functions for filtering genes from
5752 high-throughput sequencing experiments.")
5753 (license license:artistic2.0)))
5754
5755 (define-public r-deseq2
5756 (package
5757 (name "r-deseq2")
5758 (version "1.16.1")
5759 (source
5760 (origin
5761 (method url-fetch)
5762 (uri (bioconductor-uri "DESeq2" version))
5763 (sha256
5764 (base32
5765 "01pvyljxkwazxl510v7h0971nx65iqd2bdkbdhw3xzind0n9pdvq"))))
5766 (properties `((upstream-name . "DESeq2")))
5767 (build-system r-build-system)
5768 (propagated-inputs
5769 `(("r-biobase" ,r-biobase)
5770 ("r-biocgenerics" ,r-biocgenerics)
5771 ("r-biocparallel" ,r-biocparallel)
5772 ("r-genefilter" ,r-genefilter)
5773 ("r-geneplotter" ,r-geneplotter)
5774 ("r-genomicranges" ,r-genomicranges)
5775 ("r-ggplot2" ,r-ggplot2)
5776 ("r-hmisc" ,r-hmisc)
5777 ("r-iranges" ,r-iranges)
5778 ("r-locfit" ,r-locfit)
5779 ("r-rcpp" ,r-rcpp)
5780 ("r-rcpparmadillo" ,r-rcpparmadillo)
5781 ("r-s4vectors" ,r-s4vectors)
5782 ("r-summarizedexperiment" ,r-summarizedexperiment)))
5783 (home-page "http://bioconductor.org/packages/DESeq2")
5784 (synopsis "Differential gene expression analysis")
5785 (description
5786 "This package provides functions to estimate variance-mean dependence in
5787 count data from high-throughput nucleotide sequencing assays and test for
5788 differential expression based on a model using the negative binomial
5789 distribution.")
5790 (license license:lgpl3+)))
5791
5792 (define-public r-annotationforge
5793 (package
5794 (name "r-annotationforge")
5795 (version "1.18.1")
5796 (source
5797 (origin
5798 (method url-fetch)
5799 (uri (bioconductor-uri "AnnotationForge" version))
5800 (sha256
5801 (base32
5802 "1366qvykd9cpcvwgc5g9mm9adw9rxw6p4814dd6l5fyb0pwpmysx"))))
5803 (properties
5804 `((upstream-name . "AnnotationForge")))
5805 (build-system r-build-system)
5806 (propagated-inputs
5807 `(("r-annotationdbi" ,r-annotationdbi)
5808 ("r-biobase" ,r-biobase)
5809 ("r-biocgenerics" ,r-biocgenerics)
5810 ("r-dbi" ,r-dbi)
5811 ("r-rcurl" ,r-rcurl)
5812 ("r-rsqlite" ,r-rsqlite)
5813 ("r-s4vectors" ,r-s4vectors)
5814 ("r-xml" ,r-xml)))
5815 (home-page "http://bioconductor.org/packages/AnnotationForge")
5816 (synopsis "Code for building annotation database packages")
5817 (description
5818 "This package provides code for generating Annotation packages and their
5819 databases. Packages produced are intended to be used with AnnotationDbi.")
5820 (license license:artistic2.0)))
5821
5822 (define-public r-rbgl
5823 (package
5824 (name "r-rbgl")
5825 (version "1.52.0")
5826 (source
5827 (origin
5828 (method url-fetch)
5829 (uri (bioconductor-uri "RBGL" version))
5830 (sha256
5831 (base32
5832 "11db6kvz453ypj9ds3xpjqzwrrjck84ijn4wlhkfyz2dzdgd5ryv"))))
5833 (properties `((upstream-name . "RBGL")))
5834 (build-system r-build-system)
5835 (propagated-inputs `(("r-graph" ,r-graph)))
5836 (home-page "http://www.bioconductor.org/packages/RBGL")
5837 (synopsis "Interface to the Boost graph library")
5838 (description
5839 "This package provides a fairly extensive and comprehensive interface to
5840 the graph algorithms contained in the Boost library.")
5841 (license license:artistic2.0)))
5842
5843 (define-public r-gseabase
5844 (package
5845 (name "r-gseabase")
5846 (version "1.38.0")
5847 (source
5848 (origin
5849 (method url-fetch)
5850 (uri (bioconductor-uri "GSEABase" version))
5851 (sha256
5852 (base32
5853 "1c6i6g4fj3b8wjyxyygr7i3v8sxrq1ffb2bbicya5ah2gdaclfad"))))
5854 (properties `((upstream-name . "GSEABase")))
5855 (build-system r-build-system)
5856 (propagated-inputs
5857 `(("r-annotate" ,r-annotate)
5858 ("r-annotationdbi" ,r-annotationdbi)
5859 ("r-biobase" ,r-biobase)
5860 ("r-biocgenerics" ,r-biocgenerics)
5861 ("r-graph" ,r-graph)
5862 ("r-xml" ,r-xml)))
5863 (home-page "http://bioconductor.org/packages/GSEABase")
5864 (synopsis "Gene set enrichment data structures and methods")
5865 (description
5866 "This package provides classes and methods to support @dfn{Gene Set
5867 Enrichment Analysis} (GSEA).")
5868 (license license:artistic2.0)))
5869
5870 (define-public r-category
5871 (package
5872 (name "r-category")
5873 (version "2.42.1")
5874 (source
5875 (origin
5876 (method url-fetch)
5877 (uri (bioconductor-uri "Category" version))
5878 (sha256
5879 (base32
5880 "1w186nhc85bglcgmbcrsdbb8l6rph21pl5kdwjqwkp0jnr9z0ifn"))))
5881 (properties `((upstream-name . "Category")))
5882 (build-system r-build-system)
5883 (propagated-inputs
5884 `(("r-annotate" ,r-annotate)
5885 ("r-annotationdbi" ,r-annotationdbi)
5886 ("r-biobase" ,r-biobase)
5887 ("r-biocgenerics" ,r-biocgenerics)
5888 ("r-genefilter" ,r-genefilter)
5889 ("r-graph" ,r-graph)
5890 ("r-gseabase" ,r-gseabase)
5891 ("r-matrix" ,r-matrix)
5892 ("r-rbgl" ,r-rbgl)
5893 ("r-rsqlite" ,r-rsqlite)))
5894 (home-page "http://bioconductor.org/packages/Category")
5895 (synopsis "Category analysis")
5896 (description
5897 "This package provides a collection of tools for performing category
5898 analysis.")
5899 (license license:artistic2.0)))
5900
5901 (define-public r-gostats
5902 (package
5903 (name "r-gostats")
5904 (version "2.42.0")
5905 (source
5906 (origin
5907 (method url-fetch)
5908 (uri (bioconductor-uri "GOstats" version))
5909 (sha256
5910 (base32
5911 "0qvqjgfnd9ap4rikvyxa9p4dhcnccvkw8phzv88vghh6pq463d62"))))
5912 (properties `((upstream-name . "GOstats")))
5913 (build-system r-build-system)
5914 (propagated-inputs
5915 `(("r-annotate" ,r-annotate)
5916 ("r-annotationdbi" ,r-annotationdbi)
5917 ("r-annotationforge" ,r-annotationforge)
5918 ("r-biobase" ,r-biobase)
5919 ("r-category" ,r-category)
5920 ("r-go-db" ,r-go-db)
5921 ("r-graph" ,r-graph)
5922 ("r-rbgl" ,r-rbgl)))
5923 (home-page "http://bioconductor.org/packages/GOstats")
5924 (synopsis "Tools for manipulating GO and microarrays")
5925 (description
5926 "This package provides a set of tools for interacting with GO and
5927 microarray data. A variety of basic manipulation tools for graphs, hypothesis
5928 testing and other simple calculations.")
5929 (license license:artistic2.0)))
5930
5931 (define-public r-shortread
5932 (package
5933 (name "r-shortread")
5934 (version "1.34.0")
5935 (source
5936 (origin
5937 (method url-fetch)
5938 (uri (bioconductor-uri "ShortRead" version))
5939 (sha256
5940 (base32
5941 "0ayk3d5625ymb5g2gycq6banzqmyd642xrwjzhdshz2dwid7kly8"))))
5942 (properties `((upstream-name . "ShortRead")))
5943 (build-system r-build-system)
5944 (inputs
5945 `(("zlib" ,zlib)))
5946 (propagated-inputs
5947 `(("r-biobase" ,r-biobase)
5948 ("r-biocgenerics" ,r-biocgenerics)
5949 ("r-biocparallel" ,r-biocparallel)
5950 ("r-biostrings" ,r-biostrings)
5951 ("r-genomeinfodb" ,r-genomeinfodb)
5952 ("r-genomicalignments" ,r-genomicalignments)
5953 ("r-genomicranges" ,r-genomicranges)
5954 ("r-hwriter" ,r-hwriter)
5955 ("r-iranges" ,r-iranges)
5956 ("r-lattice" ,r-lattice)
5957 ("r-latticeextra" ,r-latticeextra)
5958 ("r-rsamtools" ,r-rsamtools)
5959 ("r-s4vectors" ,r-s4vectors)
5960 ("r-xvector" ,r-xvector)
5961 ("r-zlibbioc" ,r-zlibbioc)))
5962 (home-page "http://bioconductor.org/packages/ShortRead")
5963 (synopsis "FASTQ input and manipulation tools")
5964 (description
5965 "This package implements sampling, iteration, and input of FASTQ files.
5966 It includes functions for filtering and trimming reads, and for generating a
5967 quality assessment report. Data are represented as
5968 @code{DNAStringSet}-derived objects, and easily manipulated for a diversity of
5969 purposes. The package also contains legacy support for early single-end,
5970 ungapped alignment formats.")
5971 (license license:artistic2.0)))
5972
5973 (define-public r-systempiper
5974 (package
5975 (name "r-systempiper")
5976 (version "1.10.0")
5977 (source
5978 (origin
5979 (method url-fetch)
5980 (uri (bioconductor-uri "systemPipeR" version))
5981 (sha256
5982 (base32
5983 "0c3m5rq63ypv15yca97yag5d4vgd7xj9by2a4sd8z0pcmpajz0hw"))))
5984 (properties `((upstream-name . "systemPipeR")))
5985 (build-system r-build-system)
5986 (propagated-inputs
5987 `(("r-annotate" ,r-annotate)
5988 ("r-batchjobs" ,r-batchjobs)
5989 ("r-biocgenerics" ,r-biocgenerics)
5990 ("r-biostrings" ,r-biostrings)
5991 ("r-deseq2" ,r-deseq2)
5992 ("r-edger" ,r-edger)
5993 ("r-genomicfeatures" ,r-genomicfeatures)
5994 ("r-genomicranges" ,r-genomicranges)
5995 ("r-ggplot2" ,r-ggplot2)
5996 ("r-go-db" ,r-go-db)
5997 ("r-gostats" ,r-gostats)
5998 ("r-limma" ,r-limma)
5999 ("r-pheatmap" ,r-pheatmap)
6000 ("r-rjson" ,r-rjson)
6001 ("r-rsamtools" ,r-rsamtools)
6002 ("r-shortread" ,r-shortread)
6003 ("r-summarizedexperiment" ,r-summarizedexperiment)
6004 ("r-variantannotation" ,r-variantannotation)))
6005 (home-page "https://github.com/tgirke/systemPipeR")
6006 (synopsis "Next generation sequencing workflow and reporting environment")
6007 (description
6008 "This R package provides tools for building and running automated
6009 end-to-end analysis workflows for a wide range of @dfn{next generation
6010 sequence} (NGS) applications such as RNA-Seq, ChIP-Seq, VAR-Seq and Ribo-Seq.
6011 Important features include a uniform workflow interface across different NGS
6012 applications, automated report generation, and support for running both R and
6013 command-line software, such as NGS aligners or peak/variant callers, on local
6014 computers or compute clusters. Efficient handling of complex sample sets and
6015 experimental designs is facilitated by a consistently implemented sample
6016 annotation infrastructure.")
6017 (license license:artistic2.0)))
6018
6019 (define-public r-grohmm
6020 (package
6021 (name "r-grohmm")
6022 (version "1.10.0")
6023 (source
6024 (origin
6025 (method url-fetch)
6026 (uri (bioconductor-uri "groHMM" version))
6027 (sha256
6028 (base32
6029 "16k1kp4sbhh0vp7dzywafq52csq42ksqfrqfy4bdv1qbd7536dpd"))))
6030 (properties `((upstream-name . "groHMM")))
6031 (build-system r-build-system)
6032 (propagated-inputs
6033 `(("r-genomeinfodb" ,r-genomeinfodb)
6034 ("r-genomicalignments" ,r-genomicalignments)
6035 ("r-genomicranges" ,r-genomicranges)
6036 ("r-iranges" ,r-iranges)
6037 ("r-mass" ,r-mass)
6038 ("r-rtracklayer" ,r-rtracklayer)
6039 ("r-s4vectors" ,r-s4vectors)))
6040 (home-page "https://github.com/Kraus-Lab/groHMM")
6041 (synopsis "GRO-seq analysis pipeline")
6042 (description
6043 "This package provides a pipeline for the analysis of GRO-seq data.")
6044 (license license:gpl3+)))
6045
6046 (define-public r-txdb-hsapiens-ucsc-hg19-knowngene
6047 (package
6048 (name "r-txdb-hsapiens-ucsc-hg19-knowngene")
6049 (version "3.2.2")
6050 (source (origin
6051 (method url-fetch)
6052 ;; We cannot use bioconductor-uri here because this tarball is
6053 ;; located under "data/annotation/" instead of "bioc/".
6054 (uri (string-append "http://bioconductor.org/packages/"
6055 "release/data/annotation/src/contrib"
6056 "/TxDb.Hsapiens.UCSC.hg19.knownGene_"
6057 version ".tar.gz"))
6058 (sha256
6059 (base32
6060 "1sajhcqqwazgz2lqbik7rd935i7kpnh08zxbp2ra10j72yqy4g86"))))
6061 (properties
6062 `((upstream-name . "TxDb.Hsapiens.UCSC.hg19.knownGene")))
6063 (build-system r-build-system)
6064 ;; As this package provides little more than a very large data file it
6065 ;; doesn't make sense to build substitutes.
6066 (arguments `(#:substitutable? #f))
6067 (propagated-inputs
6068 `(("r-genomicfeatures" ,r-genomicfeatures)))
6069 (home-page
6070 "http://bioconductor.org/packages/TxDb.Hsapiens.UCSC.hg19.knownGene/")
6071 (synopsis "Annotation package for human genome in TxDb format")
6072 (description
6073 "This package provides an annotation database of Homo sapiens genome
6074 data. It is derived from the UCSC hg19 genome and based on the \"knownGene\"
6075 track. The database is exposed as a @code{TxDb} object.")
6076 (license license:artistic2.0)))
6077
6078 (define-public vsearch
6079 (package
6080 (name "vsearch")
6081 (version "2.4.3")
6082 (source
6083 (origin
6084 (method url-fetch)
6085 (uri (string-append
6086 "https://github.com/torognes/vsearch/archive/v"
6087 version ".tar.gz"))
6088 (file-name (string-append name "-" version ".tar.gz"))
6089 (sha256
6090 (base32
6091 "0hc110ycqpa54nr6x173qg7190hk08qp7yz7zzqxlsypqnpc5zzp"))
6092 (patches (search-patches "vsearch-unbundle-cityhash.patch"))
6093 (snippet
6094 '(begin
6095 ;; Remove bundled cityhash sources. The vsearch source is adjusted
6096 ;; for this in the patch.
6097 (delete-file "src/city.h")
6098 (delete-file "src/citycrc.h")
6099 (delete-file "src/city.cc")
6100 #t))))
6101 (build-system gnu-build-system)
6102 (arguments
6103 `(#:phases
6104 (modify-phases %standard-phases
6105 (add-before 'configure 'autogen
6106 (lambda _ (zero? (system* "autoreconf" "-vif")))))))
6107 (inputs
6108 `(("zlib" ,zlib)
6109 ("bzip2" ,bzip2)
6110 ("cityhash" ,cityhash)))
6111 (native-inputs
6112 `(("autoconf" ,autoconf)
6113 ("automake" ,automake)))
6114 (synopsis "Sequence search tools for metagenomics")
6115 (description
6116 "VSEARCH supports DNA sequence searching, clustering, chimera detection,
6117 dereplication, pairwise alignment, shuffling, subsampling, sorting and
6118 masking. The tool takes advantage of parallelism in the form of SIMD
6119 vectorization as well as multiple threads to perform accurate alignments at
6120 high speed. VSEARCH uses an optimal global aligner (full dynamic programming
6121 Needleman-Wunsch).")
6122 (home-page "https://github.com/torognes/vsearch")
6123 ;; vsearch uses non-portable SSE intrinsics so building fails on other
6124 ;; platforms.
6125 (supported-systems '("x86_64-linux"))
6126 ;; Dual licensed; also includes public domain source.
6127 (license (list license:gpl3 license:bsd-2))))
6128
6129 (define-public pardre
6130 (package
6131 (name "pardre")
6132 ;; The source of 1.1.5 changed in place, so we append "-1" to the version.
6133 (version "1.1.5-1")
6134 (source
6135 (origin
6136 (method url-fetch)
6137 (uri (string-append "mirror://sourceforge/pardre/ParDRe-rel"
6138 "1.1.5" ".tar.gz"))
6139 (sha256
6140 (base32
6141 "17j73nc0viq4f6qj50nrndsrif5d6b71q8fl87m54psiv0ilns2b"))))
6142 (build-system gnu-build-system)
6143 (arguments
6144 `(#:tests? #f ; no tests included
6145 #:phases
6146 (modify-phases %standard-phases
6147 (delete 'configure)
6148 (replace 'install
6149 (lambda* (#:key outputs #:allow-other-keys)
6150 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
6151 (install-file "ParDRe" bin)
6152 #t))))))
6153 (inputs
6154 `(("openmpi" ,openmpi)
6155 ("zlib" ,zlib)))
6156 (synopsis "Parallel tool to remove duplicate DNA reads")
6157 (description
6158 "ParDRe is a parallel tool to remove duplicate genetic sequence reads.
6159 Duplicate reads can be seen as identical or nearly identical sequences with
6160 some mismatches. This tool lets users avoid the analysis of unnecessary
6161 reads, reducing the time of subsequent procedures with the
6162 dataset (e.g. assemblies, mappings, etc.). The tool is implemented with MPI
6163 in order to exploit the parallel capabilities of multicore clusters. It is
6164 faster than multithreaded counterparts (end of 2015) for the same number of
6165 cores and, thanks to the message-passing technology, it can be executed on
6166 clusters.")
6167 (home-page "https://sourceforge.net/projects/pardre/")
6168 (license license:gpl3+)))
6169
6170 (define-public ruby-bio-kseq
6171 (package
6172 (name "ruby-bio-kseq")
6173 (version "0.0.2")
6174 (source
6175 (origin
6176 (method url-fetch)
6177 (uri (rubygems-uri "bio-kseq" version))
6178 (sha256
6179 (base32
6180 "1xyaha46khb5jc6wzkbf7040jagac49jbimn0vcrzid0j8jdikrz"))))
6181 (build-system ruby-build-system)
6182 (arguments
6183 `(#:test-target "spec"))
6184 (native-inputs
6185 `(("bundler" ,bundler)
6186 ("ruby-rspec" ,ruby-rspec)
6187 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6188 (inputs
6189 `(("zlib" ,zlib)))
6190 (synopsis "Ruby bindings for the kseq.h FASTA/Q parser")
6191 (description
6192 "@code{Bio::Kseq} provides ruby bindings to the @code{kseq.h} FASTA and
6193 FASTQ parsing code. It provides a fast iterator over sequences and their
6194 quality scores.")
6195 (home-page "https://github.com/gusevfe/bio-kseq")
6196 (license license:expat)))
6197
6198 (define-public bio-locus
6199 (package
6200 (name "bio-locus")
6201 (version "0.0.7")
6202 (source
6203 (origin
6204 (method url-fetch)
6205 (uri (rubygems-uri "bio-locus" version))
6206 (sha256
6207 (base32
6208 "02vmrxyimkj9sahsp4zhfhnmbvz6dbbqz1y01vglf8cbwvkajfl0"))))
6209 (build-system ruby-build-system)
6210 (native-inputs
6211 `(("ruby-rspec" ,ruby-rspec)))
6212 (synopsis "Tool for fast querying of genome locations")
6213 (description
6214 "Bio-locus is a tabix-like tool for fast querying of genome
6215 locations. Many file formats in bioinformatics contain records that
6216 start with a chromosome name and a position for a SNP, or a start-end
6217 position for indels. Bio-locus allows users to store this chr+pos or
6218 chr+pos+alt information in a database.")
6219 (home-page "https://github.com/pjotrp/bio-locus")
6220 (license license:expat)))
6221
6222 (define-public bio-blastxmlparser
6223 (package
6224 (name "bio-blastxmlparser")
6225 (version "2.0.4")
6226 (source (origin
6227 (method url-fetch)
6228 (uri (rubygems-uri "bio-blastxmlparser" version))
6229 (sha256
6230 (base32
6231 "1wf4qygcmdjgcqm6flmvsagfr1gs9lf63mj32qv3z1f481zc5692"))))
6232 (build-system ruby-build-system)
6233 (propagated-inputs
6234 `(("ruby-bio-logger" ,ruby-bio-logger)
6235 ("ruby-nokogiri" ,ruby-nokogiri)))
6236 (inputs
6237 `(("ruby-rspec" ,ruby-rspec)))
6238 (synopsis "Fast big data BLAST XML parser and library")
6239 (description
6240 "Very fast parallel big-data BLAST XML file parser which can be used as
6241 command line utility. Use blastxmlparser to: Parse BLAST XML; filter output;
6242 generate FASTA, JSON, YAML, RDF, JSON-LD, HTML, CSV, tabular output etc.")
6243 (home-page "https://github.com/pjotrp/blastxmlparser")
6244 (license license:expat)))
6245
6246 (define-public bioruby
6247 (package
6248 (name "bioruby")
6249 (version "1.5.1")
6250 (source
6251 (origin
6252 (method url-fetch)
6253 (uri (rubygems-uri "bio" version))
6254 (sha256
6255 (base32
6256 "0hdl0789c9n4mprnx5pgd46bfwl8d000rqpamj5h6kkjgspijv49"))))
6257 (build-system ruby-build-system)
6258 (propagated-inputs
6259 `(("ruby-libxml" ,ruby-libxml)))
6260 (native-inputs
6261 `(("which" ,which))) ; required for test phase
6262 (arguments
6263 `(#:phases
6264 (modify-phases %standard-phases
6265 (add-before 'build 'patch-test-command
6266 (lambda _
6267 (substitute* '("test/functional/bio/test_command.rb")
6268 (("/bin/sh") (which "sh")))
6269 (substitute* '("test/functional/bio/test_command.rb")
6270 (("/bin/ls") (which "ls")))
6271 (substitute* '("test/functional/bio/test_command.rb")
6272 (("which") (which "which")))
6273 (substitute* '("test/functional/bio/test_command.rb",
6274 "test/data/command/echoarg2.sh")
6275 (("/bin/echo") (which "echo")))
6276 #t)))))
6277 (synopsis "Ruby library, shell and utilities for bioinformatics")
6278 (description "BioRuby comes with a comprehensive set of Ruby development
6279 tools and libraries for bioinformatics and molecular biology. BioRuby has
6280 components for sequence analysis, pathway analysis, protein modelling and
6281 phylogenetic analysis; it supports many widely used data formats and provides
6282 easy access to databases, external programs and public web services, including
6283 BLAST, KEGG, GenBank, MEDLINE and GO.")
6284 (home-page "http://bioruby.org/")
6285 ;; Code is released under Ruby license, except for setup
6286 ;; (LGPLv2.1+) and scripts in samples (which have GPL2 and GPL2+)
6287 (license (list license:ruby license:lgpl2.1+ license:gpl2+ ))))
6288
6289 (define-public r-acsnminer
6290 (package
6291 (name "r-acsnminer")
6292 (version "0.16.8.25")
6293 (source (origin
6294 (method url-fetch)
6295 (uri (cran-uri "ACSNMineR" version))
6296 (sha256
6297 (base32
6298 "0gh604s8qall6zfjlwcg2ilxjvz08dplf9k5g47idhv43scm748l"))))
6299 (properties `((upstream-name . "ACSNMineR")))
6300 (build-system r-build-system)
6301 (propagated-inputs
6302 `(("r-ggplot2" ,r-ggplot2)
6303 ("r-gridextra" ,r-gridextra)))
6304 (home-page "http://cran.r-project.org/web/packages/ACSNMineR")
6305 (synopsis "Gene enrichment analysis")
6306 (description
6307 "This package provides tools to compute and represent gene set enrichment
6308 or depletion from your data based on pre-saved maps from the @dfn{Atlas of
6309 Cancer Signalling Networks} (ACSN) or user imported maps. The gene set
6310 enrichment can be run with hypergeometric test or Fisher exact test, and can
6311 use multiple corrections. Visualization of data can be done either by
6312 barplots or heatmaps.")
6313 (license license:gpl2+)))
6314
6315 (define-public r-biocgenerics
6316 (package
6317 (name "r-biocgenerics")
6318 (version "0.22.0")
6319 (source (origin
6320 (method url-fetch)
6321 (uri (bioconductor-uri "BiocGenerics" version))
6322 (sha256
6323 (base32
6324 "0qbmz2qxwwi30xpxpvp2h1h7l494rbbz5d9pls5cfhqdv3wnpzsv"))))
6325 (properties
6326 `((upstream-name . "BiocGenerics")))
6327 (build-system r-build-system)
6328 (home-page "http://bioconductor.org/packages/BiocGenerics")
6329 (synopsis "S4 generic functions for Bioconductor")
6330 (description
6331 "This package provides S4 generic functions needed by many Bioconductor
6332 packages.")
6333 (license license:artistic2.0)))
6334
6335 (define-public r-biocinstaller
6336 (package
6337 (name "r-biocinstaller")
6338 (version "1.26.0")
6339 (source (origin
6340 (method url-fetch)
6341 (uri (bioconductor-uri "BiocInstaller" version))
6342 (sha256
6343 (base32
6344 "0njw2q3lq1rrjx8qzw5d2130l72bmd3g2z8qlxqmkdcbmmgliyj2"))))
6345 (properties
6346 `((upstream-name . "BiocInstaller")))
6347 (build-system r-build-system)
6348 (home-page "http://bioconductor.org/packages/BiocInstaller")
6349 (synopsis "Install Bioconductor packages")
6350 (description "This package is used to install and update R packages from
6351 Bioconductor, CRAN, and Github.")
6352 (license license:artistic2.0)))
6353
6354 (define-public r-biocviews
6355 (package
6356 (name "r-biocviews")
6357 (version "1.44.0")
6358 (source (origin
6359 (method url-fetch)
6360 (uri (bioconductor-uri "biocViews" version))
6361 (sha256
6362 (base32
6363 "17hi8w0w63f5yc43kid5pbld3ca78sj6n8x9dmkbl8h48818xbga"))))
6364 (properties
6365 `((upstream-name . "biocViews")))
6366 (build-system r-build-system)
6367 (propagated-inputs
6368 `(("r-biobase" ,r-biobase)
6369 ("r-graph" ,r-graph)
6370 ("r-rbgl" ,r-rbgl)
6371 ("r-rcurl" ,r-rcurl)
6372 ("r-xml" ,r-xml)
6373 ("r-knitr" ,r-knitr)
6374 ("r-runit" ,r-runit)))
6375 (home-page "http://bioconductor.org/packages/biocViews")
6376 (synopsis "Bioconductor package categorization helper")
6377 (description "The purpose of biocViews is to create HTML pages that
6378 categorize packages in a Bioconductor package repository according to keywords,
6379 also known as views, in a controlled vocabulary.")
6380 (license license:artistic2.0)))
6381
6382 (define-public r-bookdown
6383 (package
6384 (name "r-bookdown")
6385 (version "0.3")
6386 (source (origin
6387 (method url-fetch)
6388 (uri (cran-uri "bookdown" version))
6389 (sha256
6390 (base32
6391 "0r9bchzg7im6psc3jphvshzbidc5bv5xaih1qg7b5518jy4iyvb9"))))
6392 (build-system r-build-system)
6393 (propagated-inputs
6394 `(("r-htmltools" ,r-htmltools)
6395 ("r-knitr" ,r-knitr)
6396 ("r-rmarkdown" ,r-rmarkdown)
6397 ("r-yaml" ,r-yaml)))
6398 (home-page "https://github.com/rstudio/bookdown")
6399 (synopsis "Authoring books and technical documents with R markdown")
6400 (description "This package provides output formats and utilities for
6401 authoring books and technical documents with R Markdown.")
6402 (license license:gpl3)))
6403
6404 (define-public r-biocstyle
6405 (package
6406 (name "r-biocstyle")
6407 (version "2.4.1")
6408 (source (origin
6409 (method url-fetch)
6410 (uri (bioconductor-uri "BiocStyle" version))
6411 (sha256
6412 (base32
6413 "0bmgmsfll923v573g0kyzlmjd7gly5jwgd8vkrcwvbam1gz75f2c"))))
6414 (properties
6415 `((upstream-name . "BiocStyle")))
6416 (build-system r-build-system)
6417 (propagated-inputs
6418 `(("r-bookdown" ,r-bookdown)
6419 ("r-knitr" ,r-knitr)
6420 ("r-rmarkdown" ,r-rmarkdown)
6421 ("r-yaml" ,r-yaml)))
6422 (home-page "http://bioconductor.org/packages/BiocStyle")
6423 (synopsis "Bioconductor formatting styles")
6424 (description "This package provides standard formatting styles for
6425 Bioconductor PDF and HTML documents. Package vignettes illustrate use and
6426 functionality.")
6427 (license license:artistic2.0)))
6428
6429 (define-public r-bioccheck
6430 (package
6431 (name "r-bioccheck")
6432 (version "1.12.0")
6433 (source (origin
6434 (method url-fetch)
6435 (uri (bioconductor-uri "BiocCheck" version))
6436 (sha256
6437 (base32
6438 "01zkw5hggzvn0wj4msac71k1mknq4h2inn1c2hwqgw4cy1675wl0"))))
6439 (properties
6440 `((upstream-name . "BiocCheck")))
6441 (build-system r-build-system)
6442 (arguments
6443 '(#:phases
6444 (modify-phases %standard-phases
6445 ;; This package can be used by calling BiocCheck(<package>) from
6446 ;; within R, or by running R CMD BiocCheck <package>. This phase
6447 ;; makes sure the latter works. For this to work, the BiocCheck
6448 ;; script must be somewhere on the PATH (not the R bin directory).
6449 (add-after 'install 'install-bioccheck-subcommand
6450 (lambda* (#:key outputs #:allow-other-keys)
6451 (let* ((out (assoc-ref outputs "out"))
6452 (dest-dir (string-append out "/bin"))
6453 (script-dir
6454 (string-append out "/site-library/BiocCheck/script/")))
6455 (mkdir-p dest-dir)
6456 (symlink (string-append script-dir "/checkBadDeps.R")
6457 (string-append dest-dir "/checkBadDeps.R"))
6458 (symlink (string-append script-dir "/BiocCheck")
6459 (string-append dest-dir "/BiocCheck")))
6460 #t)))))
6461 (native-inputs
6462 `(("which" ,which)))
6463 (propagated-inputs
6464 `(("r-codetools" ,r-codetools)
6465 ("r-graph" ,r-graph)
6466 ("r-httr" ,r-httr)
6467 ("r-optparse" ,r-optparse)
6468 ("r-biocinstaller" ,r-biocinstaller)
6469 ("r-biocviews" ,r-biocviews)))
6470 (home-page "http://bioconductor.org/packages/BiocCheck")
6471 (synopsis "Executes Bioconductor-specific package checks")
6472 (description "This package contains tools to perform additional quality
6473 checks on R packages that are to be submitted to the Bioconductor repository.")
6474 (license license:artistic2.0)))
6475
6476 (define-public r-getopt
6477 (package
6478 (name "r-getopt")
6479 (version "1.20.0")
6480 (source
6481 (origin
6482 (method url-fetch)
6483 (uri (cran-uri "getopt" version))
6484 (sha256
6485 (base32
6486 "00f57vgnzmg7cz80rjmjz1556xqcmx8nhrlbbhaq4w7gl2ibl87r"))))
6487 (build-system r-build-system)
6488 (home-page "https://github.com/trevorld/getopt")
6489 (synopsis "Command-line option processor for R")
6490 (description
6491 "This package is designed to be used with Rscript to write shebang
6492 scripts that accept short and long options. Many users will prefer to
6493 use the packages @code{optparse} or @code{argparse} which add extra
6494 features like automatically generated help options and usage texts,
6495 support for default values, positional argument support, etc.")
6496 (license license:gpl2+)))
6497
6498 (define-public r-optparse
6499 (package
6500 (name "r-optparse")
6501 (version "1.3.2")
6502 (source
6503 (origin
6504 (method url-fetch)
6505 (uri (cran-uri "optparse" version))
6506 (sha256
6507 (base32
6508 "1g8as89r91xxi5j5azsd6vrfrhg84mnfx2683j7pacdp8s33radw"))))
6509 (build-system r-build-system)
6510 (propagated-inputs
6511 `(("r-getopt" ,r-getopt)))
6512 (home-page
6513 "https://github.com/trevorld/optparse")
6514 (synopsis "Command line option parser")
6515 (description
6516 "This package provides a command line parser inspired by Python's
6517 @code{optparse} library to be used with Rscript to write shebang scripts
6518 that accept short and long options.")
6519 (license license:gpl2+)))
6520
6521 (define-public r-dnacopy
6522 (package
6523 (name "r-dnacopy")
6524 (version "1.50.1")
6525 (source (origin
6526 (method url-fetch)
6527 (uri (bioconductor-uri "DNAcopy" version))
6528 (sha256
6529 (base32
6530 "0f0x83db7rm5xf9fg5pjhvs4i165qqaf01lbwb8kj13fsqpwx15p"))))
6531 (properties
6532 `((upstream-name . "DNAcopy")))
6533 (build-system r-build-system)
6534 (inputs
6535 `(("gfortran" ,gfortran)))
6536 (home-page "https://bioconductor.org/packages/DNAcopy")
6537 (synopsis "Implementation of a circular binary segmentation algorithm")
6538 (description "This package implements the circular binary segmentation (CBS)
6539 algorithm to segment DNA copy number data and identify genomic regions with
6540 abnormal copy number.")
6541 (license license:gpl2+)))
6542
6543 (define-public r-s4vectors
6544 (package
6545 (name "r-s4vectors")
6546 (version "0.14.3")
6547 (source (origin
6548 (method url-fetch)
6549 (uri (bioconductor-uri "S4Vectors" version))
6550 (sha256
6551 (base32
6552 "1r7s4pfw026qazzic090mhk8d9m39j2nwl87dyqcpdylyq7gq5qs"))))
6553 (properties
6554 `((upstream-name . "S4Vectors")))
6555 (build-system r-build-system)
6556 (propagated-inputs
6557 `(("r-biocgenerics" ,r-biocgenerics)))
6558 (home-page "http://bioconductor.org/packages/S4Vectors")
6559 (synopsis "S4 implementation of vectors and lists")
6560 (description
6561 "The S4Vectors package defines the @code{Vector} and @code{List} virtual
6562 classes and a set of generic functions that extend the semantic of ordinary
6563 vectors and lists in R. Package developers can easily implement vector-like
6564 or list-like objects as concrete subclasses of @code{Vector} or @code{List}.
6565 In addition, a few low-level concrete subclasses of general interest (e.g.
6566 @code{DataFrame}, @code{Rle}, and @code{Hits}) are implemented in the
6567 S4Vectors package itself.")
6568 (license license:artistic2.0)))
6569
6570 (define-public r-seqinr
6571 (package
6572 (name "r-seqinr")
6573 (version "3.3-6")
6574 (source
6575 (origin
6576 (method url-fetch)
6577 (uri (cran-uri "seqinr" version))
6578 (sha256
6579 (base32
6580 "13d0qxm2244wgdl2dy2s8vnrnf5fx4n47if9gkb49dqx6c0sx8s2"))))
6581 (build-system r-build-system)
6582 (propagated-inputs
6583 `(("r-ade4" ,r-ade4)
6584 ("r-segmented" ,r-segmented)))
6585 (inputs
6586 `(("zlib" ,zlib)))
6587 (home-page "http://seqinr.r-forge.r-project.org/")
6588 (synopsis "Biological sequences retrieval and analysis")
6589 (description
6590 "This package provides tools for exploratory data analysis and data
6591 visualization of biological sequence (DNA and protein) data. It also includes
6592 utilities for sequence data management under the ACNUC system.")
6593 (license license:gpl2+)))
6594
6595 (define-public r-iranges
6596 (package
6597 (name "r-iranges")
6598 (version "2.10.2")
6599 (source (origin
6600 (method url-fetch)
6601 (uri (bioconductor-uri "IRanges" version))
6602 (sha256
6603 (base32
6604 "1brmzs3rsf97gymridrh9c9r3vws8b3rpghaanxnniw36lmcajfy"))))
6605 (properties
6606 `((upstream-name . "IRanges")))
6607 (build-system r-build-system)
6608 (propagated-inputs
6609 `(("r-biocgenerics" ,r-biocgenerics)
6610 ("r-s4vectors" ,r-s4vectors)))
6611 (home-page "http://bioconductor.org/packages/IRanges")
6612 (synopsis "Infrastructure for manipulating intervals on sequences")
6613 (description
6614 "This package provides efficient low-level and highly reusable S4 classes
6615 for storing ranges of integers, RLE vectors (Run-Length Encoding), and, more
6616 generally, data that can be organized sequentially (formally defined as
6617 @code{Vector} objects), as well as views on these @code{Vector} objects.
6618 Efficient list-like classes are also provided for storing big collections of
6619 instances of the basic classes. All classes in the package use consistent
6620 naming and share the same rich and consistent \"Vector API\" as much as
6621 possible.")
6622 (license license:artistic2.0)))
6623
6624 (define-public r-genomeinfodbdata
6625 (package
6626 (name "r-genomeinfodbdata")
6627 (version "0.99.0")
6628 (source (origin
6629 (method url-fetch)
6630 ;; We cannot use bioconductor-uri here because this tarball is
6631 ;; located under "data/annotation/" instead of "bioc/".
6632 (uri (string-append "https://bioconductor.org/packages/release/"
6633 "data/annotation/src/contrib/GenomeInfoDbData_"
6634 version ".tar.gz"))
6635 (sha256
6636 (base32
6637 "120qvhb0pvkzd65lsgja62vyrgc37si6fh68q4cg4w5x9f04jw25"))))
6638 (properties
6639 `((upstream-name . "GenomeInfoDbData")))
6640 (build-system r-build-system)
6641 (home-page "http://bioconductor.org/packages/GenomeInfoDbData")
6642 (synopsis "Species and taxonomy ID look up tables for GenomeInfoDb")
6643 (description "This package contains data for mapping between NCBI taxonomy
6644 ID and species. It is used by functions in the GenomeInfoDb package.")
6645 (license license:artistic2.0)))
6646
6647 (define-public r-genomeinfodb
6648 (package
6649 (name "r-genomeinfodb")
6650 (version "1.12.2")
6651 (source (origin
6652 (method url-fetch)
6653 (uri (bioconductor-uri "GenomeInfoDb" version))
6654 (sha256
6655 (base32
6656 "1hjxgmcnrngp1307ipqaq9hgxz4j0ldn7d46knhzs30k2r4qnrfp"))))
6657 (properties
6658 `((upstream-name . "GenomeInfoDb")))
6659 (build-system r-build-system)
6660 (propagated-inputs
6661 `(("r-biocgenerics" ,r-biocgenerics)
6662 ("r-genomeinfodbdata" ,r-genomeinfodbdata)
6663 ("r-iranges" ,r-iranges)
6664 ("r-rcurl" ,r-rcurl)
6665 ("r-s4vectors" ,r-s4vectors)))
6666 (home-page "http://bioconductor.org/packages/GenomeInfoDb")
6667 (synopsis "Utilities for manipulating chromosome identifiers")
6668 (description
6669 "This package contains data and functions that define and allow
6670 translation between different chromosome sequence naming conventions (e.g.,
6671 \"chr1\" versus \"1\"), including a function that attempts to place sequence
6672 names in their natural, rather than lexicographic, order.")
6673 (license license:artistic2.0)))
6674
6675 (define-public r-edger
6676 (package
6677 (name "r-edger")
6678 (version "3.18.0")
6679 (source (origin
6680 (method url-fetch)
6681 (uri (bioconductor-uri "edgeR" version))
6682 (sha256
6683 (base32
6684 "02l17i6xh33dv10swwvyfxrmv5kp23iv278iwvkfq2mnipasfnb9"))))
6685 (properties `((upstream-name . "edgeR")))
6686 (build-system r-build-system)
6687 (propagated-inputs
6688 `(("r-limma" ,r-limma)
6689 ("r-locfit" ,r-locfit)
6690 ("r-statmod" ,r-statmod))) ;for estimateDisp
6691 (home-page "http://bioinf.wehi.edu.au/edgeR")
6692 (synopsis "EdgeR does empirical analysis of digital gene expression data")
6693 (description "This package can do differential expression analysis of
6694 RNA-seq expression profiles with biological replication. It implements a range
6695 of statistical methodology based on the negative binomial distributions,
6696 including empirical Bayes estimation, exact tests, generalized linear models
6697 and quasi-likelihood tests. It be applied to differential signal analysis of
6698 other types of genomic data that produce counts, including ChIP-seq, SAGE and
6699 CAGE.")
6700 (license license:gpl2+)))
6701
6702 (define-public r-variantannotation
6703 (package
6704 (name "r-variantannotation")
6705 (version "1.22.3")
6706 (source (origin
6707 (method url-fetch)
6708 (uri (bioconductor-uri "VariantAnnotation" version))
6709 (sha256
6710 (base32
6711 "0sr3vdn85x5zdxh80cfwlpfdpi2hmjy3fwi00ac3jya4v145vawr"))))
6712 (properties
6713 `((upstream-name . "VariantAnnotation")))
6714 (inputs
6715 `(("zlib" ,zlib)))
6716 (propagated-inputs
6717 `(("r-annotationdbi" ,r-annotationdbi)
6718 ("r-biobase" ,r-biobase)
6719 ("r-biocgenerics" ,r-biocgenerics)
6720 ("r-biostrings" ,r-biostrings)
6721 ("r-bsgenome" ,r-bsgenome)
6722 ("r-dbi" ,r-dbi)
6723 ("r-genomeinfodb" ,r-genomeinfodb)
6724 ("r-genomicfeatures" ,r-genomicfeatures)
6725 ("r-genomicranges" ,r-genomicranges)
6726 ("r-iranges" ,r-iranges)
6727 ("r-summarizedexperiment" ,r-summarizedexperiment)
6728 ("r-rsamtools" ,r-rsamtools)
6729 ("r-rtracklayer" ,r-rtracklayer)
6730 ("r-s4vectors" ,r-s4vectors)
6731 ("r-xvector" ,r-xvector)
6732 ("r-zlibbioc" ,r-zlibbioc)))
6733 (build-system r-build-system)
6734 (home-page "https://bioconductor.org/packages/VariantAnnotation")
6735 (synopsis "Package for annotation of genetic variants")
6736 (description "This R package can annotate variants, compute amino acid
6737 coding changes and predict coding outcomes.")
6738 (license license:artistic2.0)))
6739
6740 (define-public r-limma
6741 (package
6742 (name "r-limma")
6743 (version "3.32.5")
6744 (source (origin
6745 (method url-fetch)
6746 (uri (bioconductor-uri "limma" version))
6747 (sha256
6748 (base32
6749 "0p2ayha9g9w5r8s7pgdf16mkmdbqwh6f35jh07g3b8gyra48gwiw"))))
6750 (build-system r-build-system)
6751 (home-page "http://bioinf.wehi.edu.au/limma")
6752 (synopsis "Package for linear models for microarray and RNA-seq data")
6753 (description "This package can be used for the analysis of gene expression
6754 studies, especially the use of linear models for analysing designed experiments
6755 and the assessment of differential expression. The analysis methods apply to
6756 different technologies, including microarrays, RNA-seq, and quantitative PCR.")
6757 (license license:gpl2+)))
6758
6759 (define-public r-xvector
6760 (package
6761 (name "r-xvector")
6762 (version "0.16.0")
6763 (source (origin
6764 (method url-fetch)
6765 (uri (bioconductor-uri "XVector" version))
6766 (sha256
6767 (base32
6768 "01n09f4jdm60684lzikp02zf9gjan8bdrjx740vggr21q9fa69wn"))))
6769 (properties
6770 `((upstream-name . "XVector")))
6771 (build-system r-build-system)
6772 (arguments
6773 `(#:phases
6774 (modify-phases %standard-phases
6775 (add-after 'unpack 'use-system-zlib
6776 (lambda _
6777 (substitute* "DESCRIPTION"
6778 (("zlibbioc, ") ""))
6779 (substitute* "NAMESPACE"
6780 (("import\\(zlibbioc\\)") ""))
6781 #t)))))
6782 (inputs
6783 `(("zlib" ,zlib)))
6784 (propagated-inputs
6785 `(("r-biocgenerics" ,r-biocgenerics)
6786 ("r-iranges" ,r-iranges)
6787 ("r-s4vectors" ,r-s4vectors)))
6788 (home-page "http://bioconductor.org/packages/XVector")
6789 (synopsis "Representation and manpulation of external sequences")
6790 (description
6791 "This package provides memory efficient S4 classes for storing sequences
6792 \"externally\" (behind an R external pointer, or on disk).")
6793 (license license:artistic2.0)))
6794
6795 (define-public r-genomicranges
6796 (package
6797 (name "r-genomicranges")
6798 (version "1.28.4")
6799 (source (origin
6800 (method url-fetch)
6801 (uri (bioconductor-uri "GenomicRanges" version))
6802 (sha256
6803 (base32
6804 "1y15kg1q81h8rmga83ljiwr8whkajcargfjiljr212d6if17ys1z"))))
6805 (properties
6806 `((upstream-name . "GenomicRanges")))
6807 (build-system r-build-system)
6808 (propagated-inputs
6809 `(("r-biocgenerics" ,r-biocgenerics)
6810 ("r-genomeinfodb" ,r-genomeinfodb)
6811 ("r-iranges" ,r-iranges)
6812 ("r-s4vectors" ,r-s4vectors)
6813 ("r-xvector" ,r-xvector)))
6814 (home-page "http://bioconductor.org/packages/GenomicRanges")
6815 (synopsis "Representation and manipulation of genomic intervals")
6816 (description
6817 "This package provides tools to efficiently represent and manipulate
6818 genomic annotations and alignments is playing a central role when it comes to
6819 analyzing high-throughput sequencing data (a.k.a. NGS data). The
6820 GenomicRanges package defines general purpose containers for storing and
6821 manipulating genomic intervals and variables defined along a genome.")
6822 (license license:artistic2.0)))
6823
6824 (define-public r-biobase
6825 (package
6826 (name "r-biobase")
6827 (version "2.36.2")
6828 (source (origin
6829 (method url-fetch)
6830 (uri (bioconductor-uri "Biobase" version))
6831 (sha256
6832 (base32
6833 "0sr48nqx5bqid4g6lr9zr9286xh842w717yvmssvddb5xxynib6f"))))
6834 (properties
6835 `((upstream-name . "Biobase")))
6836 (build-system r-build-system)
6837 (propagated-inputs
6838 `(("r-biocgenerics" ,r-biocgenerics)))
6839 (home-page "http://bioconductor.org/packages/Biobase")
6840 (synopsis "Base functions for Bioconductor")
6841 (description
6842 "This package provides functions that are needed by many other packages
6843 on Bioconductor or which replace R functions.")
6844 (license license:artistic2.0)))
6845
6846 (define-public r-annotationdbi
6847 (package
6848 (name "r-annotationdbi")
6849 (version "1.38.2")
6850 (source (origin
6851 (method url-fetch)
6852 (uri (bioconductor-uri "AnnotationDbi" version))
6853 (sha256
6854 (base32
6855 "1lsamnbf07zzsy5asy5hn97n2a4layv58w2bzd90ikcdx0gmzarj"))))
6856 (properties
6857 `((upstream-name . "AnnotationDbi")))
6858 (build-system r-build-system)
6859 (propagated-inputs
6860 `(("r-biobase" ,r-biobase)
6861 ("r-biocgenerics" ,r-biocgenerics)
6862 ("r-dbi" ,r-dbi)
6863 ("r-iranges" ,r-iranges)
6864 ("r-rsqlite" ,r-rsqlite)
6865 ("r-s4vectors" ,r-s4vectors)))
6866 (home-page "http://bioconductor.org/packages/AnnotationDbi")
6867 (synopsis "Annotation database interface")
6868 (description
6869 "This package provides user interface and database connection code for
6870 annotation data packages using SQLite data storage.")
6871 (license license:artistic2.0)))
6872
6873 (define-public r-biomart
6874 (package
6875 (name "r-biomart")
6876 (version "2.32.1")
6877 (source (origin
6878 (method url-fetch)
6879 (uri (bioconductor-uri "biomaRt" version))
6880 (sha256
6881 (base32
6882 "0fhpbjlsgbqxrpj6nzhhk9q3ph81n5x4p7mmd097xjjn6b05w1d8"))))
6883 (properties
6884 `((upstream-name . "biomaRt")))
6885 (build-system r-build-system)
6886 (propagated-inputs
6887 `(("r-annotationdbi" ,r-annotationdbi)
6888 ("r-rcurl" ,r-rcurl)
6889 ("r-xml" ,r-xml)))
6890 (home-page "http://bioconductor.org/packages/biomaRt")
6891 (synopsis "Interface to BioMart databases")
6892 (description
6893 "biomaRt provides an interface to a growing collection of databases
6894 implementing the @url{BioMart software suite, http://www.biomart.org}. The
6895 package enables retrieval of large amounts of data in a uniform way without
6896 the need to know the underlying database schemas or write complex SQL queries.
6897 Examples of BioMart databases are Ensembl, COSMIC, Uniprot, HGNC, Gramene,
6898 Wormbase and dbSNP mapped to Ensembl. These major databases give biomaRt
6899 users direct access to a diverse set of data and enable a wide range of
6900 powerful online queries from gene annotation to database mining.")
6901 (license license:artistic2.0)))
6902
6903 (define-public r-biocparallel
6904 (package
6905 (name "r-biocparallel")
6906 (version "1.10.1")
6907 (source (origin
6908 (method url-fetch)
6909 (uri (bioconductor-uri "BiocParallel" version))
6910 (sha256
6911 (base32
6912 "08mdfxyk9nwz77v0xhlvs19p2wj0phgm5c5b25vm0xh3749njsp0"))))
6913 (properties
6914 `((upstream-name . "BiocParallel")))
6915 (build-system r-build-system)
6916 (propagated-inputs
6917 `(("r-futile-logger" ,r-futile-logger)
6918 ("r-snow" ,r-snow)))
6919 (home-page "http://bioconductor.org/packages/BiocParallel")
6920 (synopsis "Bioconductor facilities for parallel evaluation")
6921 (description
6922 "This package provides modified versions and novel implementation of
6923 functions for parallel evaluation, tailored to use with Bioconductor
6924 objects.")
6925 (license (list license:gpl2+ license:gpl3+))))
6926
6927 (define-public r-biostrings
6928 (package
6929 (name "r-biostrings")
6930 (version "2.44.2")
6931 (source (origin
6932 (method url-fetch)
6933 (uri (bioconductor-uri "Biostrings" version))
6934 (sha256
6935 (base32
6936 "12c5abgshwq86357jr0r9039y6vl4d6ngysy89rsnr23ldnsirjp"))))
6937 (properties
6938 `((upstream-name . "Biostrings")))
6939 (build-system r-build-system)
6940 (propagated-inputs
6941 `(("r-biocgenerics" ,r-biocgenerics)
6942 ("r-iranges" ,r-iranges)
6943 ("r-s4vectors" ,r-s4vectors)
6944 ("r-xvector" ,r-xvector)))
6945 (home-page "http://bioconductor.org/packages/Biostrings")
6946 (synopsis "String objects and algorithms for biological sequences")
6947 (description
6948 "This package provides memory efficient string containers, string
6949 matching algorithms, and other utilities, for fast manipulation of large
6950 biological sequences or sets of sequences.")
6951 (license license:artistic2.0)))
6952
6953 (define-public r-rsamtools
6954 (package
6955 (name "r-rsamtools")
6956 (version "1.28.0")
6957 (source (origin
6958 (method url-fetch)
6959 (uri (bioconductor-uri "Rsamtools" version))
6960 (sha256
6961 (base32
6962 "1zx6vhdz3lksbfy98jj3qzl7cxgspigm2pbsd5835b12r6mc5w6d"))))
6963 (properties
6964 `((upstream-name . "Rsamtools")))
6965 (build-system r-build-system)
6966 (arguments
6967 `(#:phases
6968 (modify-phases %standard-phases
6969 (add-after 'unpack 'use-system-zlib
6970 (lambda _
6971 (substitute* "DESCRIPTION"
6972 (("zlibbioc, ") ""))
6973 (substitute* "NAMESPACE"
6974 (("import\\(zlibbioc\\)") ""))
6975 #t)))))
6976 (inputs
6977 `(("zlib" ,zlib)))
6978 (propagated-inputs
6979 `(("r-biocgenerics" ,r-biocgenerics)
6980 ("r-biocparallel" ,r-biocparallel)
6981 ("r-biostrings" ,r-biostrings)
6982 ("r-bitops" ,r-bitops)
6983 ("r-genomeinfodb" ,r-genomeinfodb)
6984 ("r-genomicranges" ,r-genomicranges)
6985 ("r-iranges" ,r-iranges)
6986 ("r-s4vectors" ,r-s4vectors)
6987 ("r-xvector" ,r-xvector)))
6988 (home-page "http://bioconductor.org/packages/release/bioc/html/Rsamtools.html")
6989 (synopsis "Interface to samtools, bcftools, and tabix")
6990 (description
6991 "This package provides an interface to the 'samtools', 'bcftools', and
6992 'tabix' utilities for manipulating SAM (Sequence Alignment / Map), FASTA,
6993 binary variant call (BCF) and compressed indexed tab-delimited (tabix)
6994 files.")
6995 (license license:expat)))
6996
6997 (define-public r-delayedarray
6998 (package
6999 (name "r-delayedarray")
7000 (version "0.2.7")
7001 (source (origin
7002 (method url-fetch)
7003 (uri (bioconductor-uri "DelayedArray" version))
7004 (sha256
7005 (base32
7006 "02dfqp4md9xaqjj712ijc3jswghmipr5hwkd5hr0x1xi6l2fb69g"))))
7007 (properties
7008 `((upstream-name . "DelayedArray")))
7009 (build-system r-build-system)
7010 (propagated-inputs
7011 `(("r-biocgenerics" ,r-biocgenerics)
7012 ("r-s4vectors" ,r-s4vectors)
7013 ("r-iranges" ,r-iranges)
7014 ("r-matrixstats" ,r-matrixstats)))
7015 (home-page "http://bioconductor.org/packages/DelayedArray")
7016 (synopsis "Delayed operations on array-like objects")
7017 (description
7018 "Wrapping an array-like object (typically an on-disk object) in a
7019 @code{DelayedArray} object allows one to perform common array operations on it
7020 without loading the object in memory. In order to reduce memory usage and
7021 optimize performance, operations on the object are either delayed or executed
7022 using a block processing mechanism. Note that this also works on in-memory
7023 array-like objects like @code{DataFrame} objects (typically with Rle columns),
7024 @code{Matrix} objects, and ordinary arrays and data frames.")
7025 (license license:artistic2.0)))
7026
7027 (define-public r-summarizedexperiment
7028 (package
7029 (name "r-summarizedexperiment")
7030 (version "1.6.3")
7031 (source (origin
7032 (method url-fetch)
7033 (uri (bioconductor-uri "SummarizedExperiment" version))
7034 (sha256
7035 (base32
7036 "0j7xn7pk52d383fb1wplcggacl2586c4zi0alkgfc3wz7qq9w13s"))))
7037 (properties
7038 `((upstream-name . "SummarizedExperiment")))
7039 (build-system r-build-system)
7040 (propagated-inputs
7041 `(("r-biobase" ,r-biobase)
7042 ("r-biocgenerics" ,r-biocgenerics)
7043 ("r-delayedarray" ,r-delayedarray)
7044 ("r-genomeinfodb" ,r-genomeinfodb)
7045 ("r-genomicranges" ,r-genomicranges)
7046 ("r-iranges" ,r-iranges)
7047 ("r-matrix" ,r-matrix)
7048 ("r-s4vectors" ,r-s4vectors)))
7049 (home-page "http://bioconductor.org/packages/SummarizedExperiment")
7050 (synopsis "Container for representing genomic ranges by sample")
7051 (description
7052 "The SummarizedExperiment container contains one or more assays, each
7053 represented by a matrix-like object of numeric or other mode. The rows
7054 typically represent genomic ranges of interest and the columns represent
7055 samples.")
7056 (license license:artistic2.0)))
7057
7058 (define-public r-genomicalignments
7059 (package
7060 (name "r-genomicalignments")
7061 (version "1.12.1")
7062 (source (origin
7063 (method url-fetch)
7064 (uri (bioconductor-uri "GenomicAlignments" version))
7065 (sha256
7066 (base32
7067 "127690sys4i5q3l4vxnjg4xg8q19qlw2258vgs5d1156w9ypp04h"))))
7068 (properties
7069 `((upstream-name . "GenomicAlignments")))
7070 (build-system r-build-system)
7071 (propagated-inputs
7072 `(("r-biocgenerics" ,r-biocgenerics)
7073 ("r-biocparallel" ,r-biocparallel)
7074 ("r-biostrings" ,r-biostrings)
7075 ("r-genomeinfodb" ,r-genomeinfodb)
7076 ("r-genomicranges" ,r-genomicranges)
7077 ("r-iranges" ,r-iranges)
7078 ("r-rsamtools" ,r-rsamtools)
7079 ("r-s4vectors" ,r-s4vectors)
7080 ("r-summarizedexperiment" ,r-summarizedexperiment)))
7081 (home-page "http://bioconductor.org/packages/GenomicAlignments")
7082 (synopsis "Representation and manipulation of short genomic alignments")
7083 (description
7084 "This package provides efficient containers for storing and manipulating
7085 short genomic alignments (typically obtained by aligning short reads to a
7086 reference genome). This includes read counting, computing the coverage,
7087 junction detection, and working with the nucleotide content of the
7088 alignments.")
7089 (license license:artistic2.0)))
7090
7091 (define-public r-rtracklayer
7092 (package
7093 (name "r-rtracklayer")
7094 (version "1.36.4")
7095 (source (origin
7096 (method url-fetch)
7097 (uri (bioconductor-uri "rtracklayer" version))
7098 (sha256
7099 (base32
7100 "050q1rv04w31168ljr975vxva31n9lqdx84rnmsk6zcr6p640ffp"))))
7101 (build-system r-build-system)
7102 (arguments
7103 `(#:phases
7104 (modify-phases %standard-phases
7105 (add-after 'unpack 'use-system-zlib
7106 (lambda _
7107 (substitute* "DESCRIPTION"
7108 (("zlibbioc, ") ""))
7109 (substitute* "NAMESPACE"
7110 (("import\\(zlibbioc\\)") ""))
7111 #t)))))
7112 (inputs
7113 `(("zlib" ,zlib)))
7114 (propagated-inputs
7115 `(("r-biocgenerics" ,r-biocgenerics)
7116 ("r-biostrings" ,r-biostrings)
7117 ("r-genomeinfodb" ,r-genomeinfodb)
7118 ("r-genomicalignments" ,r-genomicalignments)
7119 ("r-genomicranges" ,r-genomicranges)
7120 ("r-iranges" ,r-iranges)
7121 ("r-rcurl" ,r-rcurl)
7122 ("r-rsamtools" ,r-rsamtools)
7123 ("r-s4vectors" ,r-s4vectors)
7124 ("r-xml" ,r-xml)
7125 ("r-xvector" ,r-xvector)))
7126 (home-page "http://bioconductor.org/packages/rtracklayer")
7127 (synopsis "R interface to genome browsers and their annotation tracks")
7128 (description
7129 "rtracklayer is an extensible framework for interacting with multiple
7130 genome browsers (currently UCSC built-in) and manipulating annotation tracks
7131 in various formats (currently GFF, BED, bedGraph, BED15, WIG, BigWig and 2bit
7132 built-in). The user may export/import tracks to/from the supported browsers,
7133 as well as query and modify the browser state, such as the current viewport.")
7134 (license license:artistic2.0)))
7135
7136 (define-public r-genomicfeatures
7137 (package
7138 (name "r-genomicfeatures")
7139 (version "1.28.4")
7140 (source (origin
7141 (method url-fetch)
7142 (uri (bioconductor-uri "GenomicFeatures" version))
7143 (sha256
7144 (base32
7145 "01ylvg275iy0cvsbxkbfxcf9pi9al597v5wnlqi2xdpmrcxyc3q0"))))
7146 (properties
7147 `((upstream-name . "GenomicFeatures")))
7148 (build-system r-build-system)
7149 (propagated-inputs
7150 `(("r-annotationdbi" ,r-annotationdbi)
7151 ("r-biobase" ,r-biobase)
7152 ("r-biocgenerics" ,r-biocgenerics)
7153 ("r-biomart" ,r-biomart)
7154 ("r-biostrings" ,r-biostrings)
7155 ("r-dbi" ,r-dbi)
7156 ("r-genomeinfodb" ,r-genomeinfodb)
7157 ("r-genomicranges" ,r-genomicranges)
7158 ("r-iranges" ,r-iranges)
7159 ("r-rcurl" ,r-rcurl)
7160 ("r-rsqlite" ,r-rsqlite)
7161 ("r-rtracklayer" ,r-rtracklayer)
7162 ("r-s4vectors" ,r-s4vectors)
7163 ("r-xvector" ,r-xvector)))
7164 (home-page "http://bioconductor.org/packages/GenomicFeatures")
7165 (synopsis "Tools for working with transcript centric annotations")
7166 (description
7167 "This package provides a set of tools and methods for making and
7168 manipulating transcript centric annotations. With these tools the user can
7169 easily download the genomic locations of the transcripts, exons and cds of a
7170 given organism, from either the UCSC Genome Browser or a BioMart
7171 database (more sources will be supported in the future). This information is
7172 then stored in a local database that keeps track of the relationship between
7173 transcripts, exons, cds and genes. Flexible methods are provided for
7174 extracting the desired features in a convenient format.")
7175 (license license:artistic2.0)))
7176
7177 (define-public r-go-db
7178 (package
7179 (name "r-go-db")
7180 (version "3.4.0")
7181 (source (origin
7182 (method url-fetch)
7183 (uri (string-append "http://www.bioconductor.org/packages/"
7184 "release/data/annotation/src/contrib/GO.db_"
7185 version ".tar.gz"))
7186 (sha256
7187 (base32
7188 "02cj8kqi5w39jwcs8gp1dgj08sah262ppxnkz4h3qd0w191y8yyl"))))
7189 (properties
7190 `((upstream-name . "GO.db")))
7191 (build-system r-build-system)
7192 (propagated-inputs
7193 `(("r-annotationdbi" ,r-annotationdbi)))
7194 (home-page "http://bioconductor.org/packages/GO.db")
7195 (synopsis "Annotation maps describing the entire Gene Ontology")
7196 (description
7197 "The purpose of this GO.db annotation package is to provide detailed
7198 information about the latest version of the Gene Ontologies.")
7199 (license license:artistic2.0)))
7200
7201 (define-public r-graph
7202 (package
7203 (name "r-graph")
7204 (version "1.54.0")
7205 (source (origin
7206 (method url-fetch)
7207 (uri (bioconductor-uri "graph" version))
7208 (sha256
7209 (base32
7210 "0hx9wslnrci7c5i1gd1zlpjmgrkdnx9gabfgmzzwfnykk1mdvvna"))))
7211 (build-system r-build-system)
7212 (propagated-inputs
7213 `(("r-biocgenerics" ,r-biocgenerics)))
7214 (home-page "http://bioconductor.org/packages/graph")
7215 (synopsis "Handle graph data structures in R")
7216 (description
7217 "This package implements some simple graph handling capabilities for R.")
7218 (license license:artistic2.0)))
7219
7220 (define-public r-topgo
7221 (package
7222 (name "r-topgo")
7223 (version "2.28.0")
7224 (source (origin
7225 (method url-fetch)
7226 (uri (bioconductor-uri "topGO" version))
7227 (sha256
7228 (base32
7229 "04kvxz9qsxfz0np7wlrzp4r95nykz94x7mqpyyk76f90g6m66vcc"))))
7230 (properties
7231 `((upstream-name . "topGO")))
7232 (build-system r-build-system)
7233 (propagated-inputs
7234 `(("r-annotationdbi" ,r-annotationdbi)
7235 ("r-dbi" ,r-dbi)
7236 ("r-biobase" ,r-biobase)
7237 ("r-biocgenerics" ,r-biocgenerics)
7238 ("r-go-db" ,r-go-db)
7239 ("r-graph" ,r-graph)
7240 ("r-lattice" ,r-lattice)
7241 ("r-matrixstats" ,r-matrixstats)
7242 ("r-sparsem" ,r-sparsem)))
7243 (home-page "http://bioconductor.org/packages/topGO")
7244 (synopsis "Enrichment analysis for gene ontology")
7245 (description
7246 "The topGO package provides tools for testing @dfn{gene ontology} (GO)
7247 terms while accounting for the topology of the GO graph. Different test
7248 statistics and different methods for eliminating local similarities and
7249 dependencies between GO terms can be implemented and applied.")
7250 ;; Any version of the LGPL applies.
7251 (license license:lgpl2.1+)))
7252
7253 (define-public r-bsgenome
7254 (package
7255 (name "r-bsgenome")
7256 (version "1.44.0")
7257 (source (origin
7258 (method url-fetch)
7259 (uri (bioconductor-uri "BSgenome" version))
7260 (sha256
7261 (base32
7262 "18dlknwk3xvi52hamxf9pl5bjc5806mpw98xwvx5xajn8mrxiy5h"))))
7263 (properties
7264 `((upstream-name . "BSgenome")))
7265 (build-system r-build-system)
7266 (propagated-inputs
7267 `(("r-biocgenerics" ,r-biocgenerics)
7268 ("r-biostrings" ,r-biostrings)
7269 ("r-genomeinfodb" ,r-genomeinfodb)
7270 ("r-genomicranges" ,r-genomicranges)
7271 ("r-iranges" ,r-iranges)
7272 ("r-rsamtools" ,r-rsamtools)
7273 ("r-rtracklayer" ,r-rtracklayer)
7274 ("r-s4vectors" ,r-s4vectors)
7275 ("r-xvector" ,r-xvector)))
7276 (home-page "http://bioconductor.org/packages/BSgenome")
7277 (synopsis "Infrastructure for Biostrings-based genome data packages")
7278 (description
7279 "This package provides infrastructure shared by all Biostrings-based
7280 genome data packages and support for efficient SNP representation.")
7281 (license license:artistic2.0)))
7282
7283 (define-public r-bsgenome-hsapiens-1000genomes-hs37d5
7284 (package
7285 (name "r-bsgenome-hsapiens-1000genomes-hs37d5")
7286 (version "0.99.1")
7287 (source (origin
7288 (method url-fetch)
7289 ;; We cannot use bioconductor-uri here because this tarball is
7290 ;; located under "data/annotation/" instead of "bioc/".
7291 (uri (string-append "http://www.bioconductor.org/packages/"
7292 "release/data/annotation/src/contrib/"
7293 "BSgenome.Hsapiens.1000genomes.hs37d5_"
7294 version ".tar.gz"))
7295 (sha256
7296 (base32
7297 "1cg0g5fqmsvwyw2p9hp2yy4ilk21jkbbrnpgqvb5c36ihjwvc7sr"))))
7298 (properties
7299 `((upstream-name . "BSgenome.Hsapiens.1000genomes.hs37d5")))
7300 (build-system r-build-system)
7301 ;; As this package provides little more than a very large data file it
7302 ;; doesn't make sense to build substitutes.
7303 (arguments `(#:substitutable? #f))
7304 (propagated-inputs
7305 `(("r-bsgenome" ,r-bsgenome)))
7306 (home-page
7307 "http://www.bioconductor.org/packages/BSgenome.Hsapiens.1000genomes.hs37d5/")
7308 (synopsis "Full genome sequences for Homo sapiens")
7309 (description
7310 "This package provides full genome sequences for Homo sapiens from
7311 1000genomes phase2 reference genome sequence (hs37d5), based on NCBI GRCh37.")
7312 (license license:artistic2.0)))
7313
7314 (define-public r-impute
7315 (package
7316 (name "r-impute")
7317 (version "1.50.0")
7318 (source (origin
7319 (method url-fetch)
7320 (uri (bioconductor-uri "impute" version))
7321 (sha256
7322 (base32
7323 "0va45vfixy3np549md87h3b3rbavm54gfnmnjhpr9hf02lll6zxs"))))
7324 (inputs
7325 `(("gfortran" ,gfortran)))
7326 (build-system r-build-system)
7327 (home-page "http://bioconductor.org/packages/impute")
7328 (synopsis "Imputation for microarray data")
7329 (description
7330 "This package provides a function to impute missing gene expression
7331 microarray data, using nearest neighbor averaging.")
7332 (license license:gpl2+)))
7333
7334 (define-public r-seqpattern
7335 (package
7336 (name "r-seqpattern")
7337 (version "1.8.0")
7338 (source (origin
7339 (method url-fetch)
7340 (uri (bioconductor-uri "seqPattern" version))
7341 (sha256
7342 (base32
7343 "0yw5251sirv3283xgmfmfbf900xp8dwvqfk88mr945s3by5hx99v"))))
7344 (properties
7345 `((upstream-name . "seqPattern")))
7346 (build-system r-build-system)
7347 (propagated-inputs
7348 `(("r-biostrings" ,r-biostrings)
7349 ("r-genomicranges" ,r-genomicranges)
7350 ("r-iranges" ,r-iranges)
7351 ("r-kernsmooth" ,r-kernsmooth)
7352 ("r-plotrix" ,r-plotrix)))
7353 (home-page "http://bioconductor.org/packages/seqPattern")
7354 (synopsis "Visualising oligonucleotide patterns and motif occurrences")
7355 (description
7356 "This package provides tools to visualize oligonucleotide patterns and
7357 sequence motif occurrences across a large set of sequences centred at a common
7358 reference point and sorted by a user defined feature.")
7359 (license license:gpl3+)))
7360
7361 (define-public r-genomation
7362 (package
7363 (name "r-genomation")
7364 (version "1.8.0")
7365 (source (origin
7366 (method url-fetch)
7367 (uri (bioconductor-uri "genomation" version))
7368 (sha256
7369 (base32
7370 "0r71nf8p3aq3yffqxg4yir1zmm7rar5a57nmy1kpqpn8kaf2svjl"))))
7371 (build-system r-build-system)
7372 (propagated-inputs
7373 `(("r-biostrings" ,r-biostrings)
7374 ("r-bsgenome" ,r-bsgenome)
7375 ("r-data-table" ,r-data-table)
7376 ("r-genomeinfodb" ,r-genomeinfodb)
7377 ("r-genomicalignments" ,r-genomicalignments)
7378 ("r-genomicranges" ,r-genomicranges)
7379 ("r-ggplot2" ,r-ggplot2)
7380 ("r-gridbase" ,r-gridbase)
7381 ("r-impute" ,r-impute)
7382 ("r-iranges" ,r-iranges)
7383 ("r-matrixstats" ,r-matrixstats)
7384 ("r-plotrix" ,r-plotrix)
7385 ("r-plyr" ,r-plyr)
7386 ("r-rcpp" ,r-rcpp)
7387 ("r-readr" ,r-readr)
7388 ("r-reshape2" ,r-reshape2)
7389 ("r-rhtslib" ,r-rhtslib)
7390 ("r-rsamtools" ,r-rsamtools)
7391 ("r-rtracklayer" ,r-rtracklayer)
7392 ("r-runit" ,r-runit)
7393 ("r-s4vectors" ,r-s4vectors)
7394 ("r-seqpattern" ,r-seqpattern)))
7395 (inputs
7396 `(("zlib" ,zlib)))
7397 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
7398 (synopsis "Summary, annotation and visualization of genomic data")
7399 (description
7400 "This package provides a package for summary and annotation of genomic
7401 intervals. Users can visualize and quantify genomic intervals over
7402 pre-defined functional regions, such as promoters, exons, introns, etc. The
7403 genomic intervals represent regions with a defined chromosome position, which
7404 may be associated with a score, such as aligned reads from HT-seq experiments,
7405 TF binding sites, methylation scores, etc. The package can use any tabular
7406 genomic feature data as long as it has minimal information on the locations of
7407 genomic intervals. In addition, it can use BAM or BigWig files as input.")
7408 (license license:artistic2.0)))
7409
7410 (define-public r-genomationdata
7411 (package
7412 (name "r-genomationdata")
7413 (version "1.6.0")
7414 (source (origin
7415 (method url-fetch)
7416 ;; We cannot use bioconductor-uri here because this tarball is
7417 ;; located under "data/annotation/" instead of "bioc/".
7418 (uri (string-append "https://bioconductor.org/packages/"
7419 "release/data/experiment/src/contrib/"
7420 "genomationData_" version ".tar.gz"))
7421 (sha256
7422 (base32
7423 "16dqwb7wx1igx77zdbcskx5m1hs4g4gp2hl56zzm70hcagnlkz8y"))))
7424 (build-system r-build-system)
7425 ;; As this package provides little more than large data files, it doesn't
7426 ;; make sense to build substitutes.
7427 (arguments `(#:substitutable? #f))
7428 (native-inputs
7429 `(("r-knitr" ,r-knitr)))
7430 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
7431 (synopsis "Experimental data for use with the genomation package")
7432 (description
7433 "This package contains experimental genetic data for use with the
7434 genomation package. Included are Chip Seq, Methylation and Cage data,
7435 downloaded from Encode.")
7436 (license license:gpl3+)))
7437
7438 (define-public r-org-hs-eg-db
7439 (package
7440 (name "r-org-hs-eg-db")
7441 (version "3.4.0")
7442 (source (origin
7443 (method url-fetch)
7444 ;; We cannot use bioconductor-uri here because this tarball is
7445 ;; located under "data/annotation/" instead of "bioc/".
7446 (uri (string-append "http://www.bioconductor.org/packages/"
7447 "release/data/annotation/src/contrib/"
7448 "org.Hs.eg.db_" version ".tar.gz"))
7449 (sha256
7450 (base32
7451 "19mg64pw8zcvb9yxzzyf7caz1kvdrkfsj1hd84bzq7crrh8kc4y6"))))
7452 (properties
7453 `((upstream-name . "org.Hs.eg.db")))
7454 (build-system r-build-system)
7455 (propagated-inputs
7456 `(("r-annotationdbi" ,r-annotationdbi)))
7457 (home-page "http://www.bioconductor.org/packages/org.Hs.eg.db/")
7458 (synopsis "Genome wide annotation for Human")
7459 (description
7460 "This package provides mappings from Entrez gene identifiers to various
7461 annotations for the human genome.")
7462 (license license:artistic2.0)))
7463
7464 (define-public r-org-ce-eg-db
7465 (package
7466 (name "r-org-ce-eg-db")
7467 (version "3.4.0")
7468 (source (origin
7469 (method url-fetch)
7470 ;; We cannot use bioconductor-uri here because this tarball is
7471 ;; located under "data/annotation/" instead of "bioc/".
7472 (uri (string-append "http://www.bioconductor.org/packages/"
7473 "release/data/annotation/src/contrib/"
7474 "org.Ce.eg.db_" version ".tar.gz"))
7475 (sha256
7476 (base32
7477 "12llfzrrc09kj2wzbisdspv38qzkzgpsbn8kv7qkwg746k3pq436"))))
7478 (properties
7479 `((upstream-name . "org.Ce.eg.db")))
7480 (build-system r-build-system)
7481 (propagated-inputs
7482 `(("r-annotationdbi" ,r-annotationdbi)))
7483 (home-page "http://www.bioconductor.org/packages/org.Ce.eg.db/")
7484 (synopsis "Genome wide annotation for Worm")
7485 (description
7486 "This package provides mappings from Entrez gene identifiers to various
7487 annotations for the genome of the model worm Caenorhabditis elegans.")
7488 (license license:artistic2.0)))
7489
7490 (define-public r-org-dm-eg-db
7491 (package
7492 (name "r-org-dm-eg-db")
7493 (version "3.4.0")
7494 (source (origin
7495 (method url-fetch)
7496 ;; We cannot use bioconductor-uri here because this tarball is
7497 ;; located under "data/annotation/" instead of "bioc/".
7498 (uri (string-append "http://www.bioconductor.org/packages/"
7499 "release/data/annotation/src/contrib/"
7500 "org.Dm.eg.db_" version ".tar.gz"))
7501 (sha256
7502 (base32
7503 "1vzbphbrh1cf7xi5cksia9xy9a9l42js2z2qsajvjxvddiphrb7j"))))
7504 (properties
7505 `((upstream-name . "org.Dm.eg.db")))
7506 (build-system r-build-system)
7507 (propagated-inputs
7508 `(("r-annotationdbi" ,r-annotationdbi)))
7509 (home-page "http://www.bioconductor.org/packages/org.Dm.eg.db/")
7510 (synopsis "Genome wide annotation for Fly")
7511 (description
7512 "This package provides mappings from Entrez gene identifiers to various
7513 annotations for the genome of the model fruit fly Drosophila melanogaster.")
7514 (license license:artistic2.0)))
7515
7516 (define-public r-org-mm-eg-db
7517 (package
7518 (name "r-org-mm-eg-db")
7519 (version "3.4.0")
7520 (source (origin
7521 (method url-fetch)
7522 ;; We cannot use bioconductor-uri here because this tarball is
7523 ;; located under "data/annotation/" instead of "bioc/".
7524 (uri (string-append "http://www.bioconductor.org/packages/"
7525 "release/data/annotation/src/contrib/"
7526 "org.Mm.eg.db_" version ".tar.gz"))
7527 (sha256
7528 (base32
7529 "1lykjqjaf01fmgg3cvfcvwd5xjq6zc5vbxnm5r4l32fzvl89q50c"))))
7530 (properties
7531 `((upstream-name . "org.Mm.eg.db")))
7532 (build-system r-build-system)
7533 (propagated-inputs
7534 `(("r-annotationdbi" ,r-annotationdbi)))
7535 (home-page "http://www.bioconductor.org/packages/org.Mm.eg.db/")
7536 (synopsis "Genome wide annotation for Mouse")
7537 (description
7538 "This package provides mappings from Entrez gene identifiers to various
7539 annotations for the genome of the model mouse Mus musculus.")
7540 (license license:artistic2.0)))
7541
7542 (define-public r-seqlogo
7543 (package
7544 (name "r-seqlogo")
7545 (version "1.42.0")
7546 (source
7547 (origin
7548 (method url-fetch)
7549 (uri (bioconductor-uri "seqLogo" version))
7550 (sha256
7551 (base32
7552 "19d5zmy7m8svljwgbmrb4vxkq18slq0f3all6k2ayv42b8w44h6q"))))
7553 (properties `((upstream-name . "seqLogo")))
7554 (build-system r-build-system)
7555 (home-page "http://bioconductor.org/packages/seqLogo")
7556 (synopsis "Sequence logos for DNA sequence alignments")
7557 (description
7558 "seqLogo takes the position weight matrix of a DNA sequence motif and
7559 plots the corresponding sequence logo as introduced by Schneider and
7560 Stephens (1990).")
7561 (license license:lgpl2.0+)))
7562
7563 (define-public r-bsgenome-hsapiens-ucsc-hg19
7564 (package
7565 (name "r-bsgenome-hsapiens-ucsc-hg19")
7566 (version "1.4.0")
7567 (source (origin
7568 (method url-fetch)
7569 ;; We cannot use bioconductor-uri here because this tarball is
7570 ;; located under "data/annotation/" instead of "bioc/".
7571 (uri (string-append "http://www.bioconductor.org/packages/"
7572 "release/data/annotation/src/contrib/"
7573 "BSgenome.Hsapiens.UCSC.hg19_"
7574 version ".tar.gz"))
7575 (sha256
7576 (base32
7577 "0479qx4bapgcp5chj10a63chk0s28x9cx1gamz3f5m3yd7jzwcf2"))))
7578 (properties
7579 `((upstream-name . "BSgenome.Hsapiens.UCSC.hg19")))
7580 (build-system r-build-system)
7581 ;; As this package provides little more than a very large data file it
7582 ;; doesn't make sense to build substitutes.
7583 (arguments `(#:substitutable? #f))
7584 (propagated-inputs
7585 `(("r-bsgenome" ,r-bsgenome)))
7586 (home-page
7587 "http://www.bioconductor.org/packages/BSgenome.Hsapiens.UCSC.hg19/")
7588 (synopsis "Full genome sequences for Homo sapiens")
7589 (description
7590 "This package provides full genome sequences for Homo sapiens as provided
7591 by UCSC (hg19, February 2009) and stored in Biostrings objects.")
7592 (license license:artistic2.0)))
7593
7594 (define-public r-bsgenome-mmusculus-ucsc-mm9
7595 (package
7596 (name "r-bsgenome-mmusculus-ucsc-mm9")
7597 (version "1.4.0")
7598 (source (origin
7599 (method url-fetch)
7600 ;; We cannot use bioconductor-uri here because this tarball is
7601 ;; located under "data/annotation/" instead of "bioc/".
7602 (uri (string-append "http://www.bioconductor.org/packages/"
7603 "release/data/annotation/src/contrib/"
7604 "BSgenome.Mmusculus.UCSC.mm9_"
7605 version ".tar.gz"))
7606 (sha256
7607 (base32
7608 "1birqw30g2azimxpnjfzmkphan7x131yy8b9h85lfz5fjdg7841i"))))
7609 (properties
7610 `((upstream-name . "BSgenome.Mmusculus.UCSC.mm9")))
7611 (build-system r-build-system)
7612 ;; As this package provides little more than a very large data file it
7613 ;; doesn't make sense to build substitutes.
7614 (arguments `(#:substitutable? #f))
7615 (propagated-inputs
7616 `(("r-bsgenome" ,r-bsgenome)))
7617 (home-page
7618 "http://www.bioconductor.org/packages/BSgenome.Mmusculus.UCSC.mm9/")
7619 (synopsis "Full genome sequences for Mouse")
7620 (description
7621 "This package provides full genome sequences for Mus musculus (Mouse) as
7622 provided by UCSC (mm9, July 2007) and stored in Biostrings objects.")
7623 (license license:artistic2.0)))
7624
7625 (define-public r-bsgenome-mmusculus-ucsc-mm10
7626 (package
7627 (name "r-bsgenome-mmusculus-ucsc-mm10")
7628 (version "1.4.0")
7629 (source (origin
7630 (method url-fetch)
7631 ;; We cannot use bioconductor-uri here because this tarball is
7632 ;; located under "data/annotation/" instead of "bioc/".
7633 (uri (string-append "http://www.bioconductor.org/packages/"
7634 "release/data/annotation/src/contrib/"
7635 "BSgenome.Mmusculus.UCSC.mm10_"
7636 version ".tar.gz"))
7637 (sha256
7638 (base32
7639 "12s0nm2na9brjad4rn9l7d3db2aj8qa1xvz0y1k7gk08wayb6bkf"))))
7640 (properties
7641 `((upstream-name . "BSgenome.Mmusculus.UCSC.mm10")))
7642 (build-system r-build-system)
7643 ;; As this package provides little more than a very large data file it
7644 ;; doesn't make sense to build substitutes.
7645 (arguments `(#:substitutable? #f))
7646 (propagated-inputs
7647 `(("r-bsgenome" ,r-bsgenome)))
7648 (home-page
7649 "http://www.bioconductor.org/packages/BSgenome.Mmusculus.UCSC.mm10/")
7650 (synopsis "Full genome sequences for Mouse")
7651 (description
7652 "This package provides full genome sequences for Mus
7653 musculus (Mouse) as provided by UCSC (mm10, December 2011) and stored
7654 in Biostrings objects.")
7655 (license license:artistic2.0)))
7656
7657 (define-public r-txdb-mmusculus-ucsc-mm10-knowngene
7658 (package
7659 (name "r-txdb-mmusculus-ucsc-mm10-knowngene")
7660 (version "3.4.0")
7661 (source (origin
7662 (method url-fetch)
7663 ;; We cannot use bioconductor-uri here because this tarball is
7664 ;; located under "data/annotation/" instead of "bioc/".
7665 (uri (string-append "http://www.bioconductor.org/packages/"
7666 "release/data/annotation/src/contrib/"
7667 "TxDb.Mmusculus.UCSC.mm10.knownGene_"
7668 version ".tar.gz"))
7669 (sha256
7670 (base32
7671 "08gava9wsvpcqz51k2sni3pj03n5155v32d9riqbf305nbirqbkb"))))
7672 (properties
7673 `((upstream-name . "TxDb.Mmusculus.UCSC.mm10.knownGene")))
7674 (build-system r-build-system)
7675 ;; As this package provides little more than a very large data file it
7676 ;; doesn't make sense to build substitutes.
7677 (arguments `(#:substitutable? #f))
7678 (propagated-inputs
7679 `(("r-bsgenome" ,r-bsgenome)
7680 ("r-genomicfeatures" ,r-genomicfeatures)
7681 ("r-annotationdbi" ,r-annotationdbi)))
7682 (home-page
7683 "http://bioconductor.org/packages/TxDb.Mmusculus.UCSC.mm10.knownGene/")
7684 (synopsis "Annotation package for TxDb knownGene object(s) for Mouse")
7685 (description
7686 "This package loads a TxDb object, which is an R interface to
7687 prefabricated databases contained in this package. This package provides
7688 the TxDb object of Mouse data as provided by UCSC (mm10, December 2011)
7689 based on the knownGene track.")
7690 (license license:artistic2.0)))
7691
7692 (define-public r-bsgenome-celegans-ucsc-ce6
7693 (package
7694 (name "r-bsgenome-celegans-ucsc-ce6")
7695 (version "1.4.0")
7696 (source (origin
7697 (method url-fetch)
7698 ;; We cannot use bioconductor-uri here because this tarball is
7699 ;; located under "data/annotation/" instead of "bioc/".
7700 (uri (string-append "http://www.bioconductor.org/packages/"
7701 "release/data/annotation/src/contrib/"
7702 "BSgenome.Celegans.UCSC.ce6_"
7703 version ".tar.gz"))
7704 (sha256
7705 (base32
7706 "0mqzb353xv2c3m3vkb315dkmnxkgczp7ndnknyhpgjlybyf715v9"))))
7707 (properties
7708 `((upstream-name . "BSgenome.Celegans.UCSC.ce6")))
7709 (build-system r-build-system)
7710 ;; As this package provides little more than a very large data file it
7711 ;; doesn't make sense to build substitutes.
7712 (arguments `(#:substitutable? #f))
7713 (propagated-inputs
7714 `(("r-bsgenome" ,r-bsgenome)))
7715 (home-page
7716 "http://www.bioconductor.org/packages/BSgenome.Celegans.UCSC.ce6/")
7717 (synopsis "Full genome sequences for Worm")
7718 (description
7719 "This package provides full genome sequences for Caenorhabditis
7720 elegans (Worm) as provided by UCSC (ce6, May 2008) and stored in Biostrings
7721 objects.")
7722 (license license:artistic2.0)))
7723
7724 (define-public r-bsgenome-celegans-ucsc-ce10
7725 (package
7726 (name "r-bsgenome-celegans-ucsc-ce10")
7727 (version "1.4.0")
7728 (source (origin
7729 (method url-fetch)
7730 ;; We cannot use bioconductor-uri here because this tarball is
7731 ;; located under "data/annotation/" instead of "bioc/".
7732 (uri (string-append "http://www.bioconductor.org/packages/"
7733 "release/data/annotation/src/contrib/"
7734 "BSgenome.Celegans.UCSC.ce10_"
7735 version ".tar.gz"))
7736 (sha256
7737 (base32
7738 "1zaym97jk4npxk14ifvwz2rvhm4zx9xgs33r9vvx9rlynp0gydrk"))))
7739 (properties
7740 `((upstream-name . "BSgenome.Celegans.UCSC.ce10")))
7741 (build-system r-build-system)
7742 ;; As this package provides little more than a very large data file it
7743 ;; doesn't make sense to build substitutes.
7744 (arguments `(#:substitutable? #f))
7745 (propagated-inputs
7746 `(("r-bsgenome" ,r-bsgenome)))
7747 (home-page
7748 "http://www.bioconductor.org/packages/BSgenome.Celegans.UCSC.ce10/")
7749 (synopsis "Full genome sequences for Worm")
7750 (description
7751 "This package provides full genome sequences for Caenorhabditis
7752 elegans (Worm) as provided by UCSC (ce10, Oct 2010) and stored in Biostrings
7753 objects.")
7754 (license license:artistic2.0)))
7755
7756 (define-public r-bsgenome-dmelanogaster-ucsc-dm3
7757 (package
7758 (name "r-bsgenome-dmelanogaster-ucsc-dm3")
7759 (version "1.4.0")
7760 (source (origin
7761 (method url-fetch)
7762 ;; We cannot use bioconductor-uri here because this tarball is
7763 ;; located under "data/annotation/" instead of "bioc/".
7764 (uri (string-append "http://www.bioconductor.org/packages/"
7765 "release/data/annotation/src/contrib/"
7766 "BSgenome.Dmelanogaster.UCSC.dm3_"
7767 version ".tar.gz"))
7768 (sha256
7769 (base32
7770 "19bm3lkhhkag3gnwp419211fh0cnr0x6fa0r1lr0ycwrikxdxsv8"))))
7771 (properties
7772 `((upstream-name . "BSgenome.Dmelanogaster.UCSC.dm3")))
7773 (build-system r-build-system)
7774 ;; As this package provides little more than a very large data file it
7775 ;; doesn't make sense to build substitutes.
7776 (arguments `(#:substitutable? #f))
7777 (propagated-inputs
7778 `(("r-bsgenome" ,r-bsgenome)))
7779 (home-page
7780 "http://www.bioconductor.org/packages/BSgenome.Dmelanogaster.UCSC.dm3/")
7781 (synopsis "Full genome sequences for Fly")
7782 (description
7783 "This package provides full genome sequences for Drosophila
7784 melanogaster (Fly) as provided by UCSC (dm3, April 2006) and stored in
7785 Biostrings objects.")
7786 (license license:artistic2.0)))
7787
7788 (define-public r-motifrg
7789 (package
7790 (name "r-motifrg")
7791 (version "1.20.0")
7792 (source
7793 (origin
7794 (method url-fetch)
7795 (uri (bioconductor-uri "motifRG" version))
7796 (sha256
7797 (base32
7798 "0lxxpqyljiyk73vyq6ss46q13g81pm24q87mkzdsqlr5zx427ch6"))))
7799 (properties `((upstream-name . "motifRG")))
7800 (build-system r-build-system)
7801 (propagated-inputs
7802 `(("r-biostrings" ,r-biostrings)
7803 ("r-bsgenome" ,r-bsgenome)
7804 ("r-bsgenome.hsapiens.ucsc.hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
7805 ("r-iranges" ,r-iranges)
7806 ("r-seqlogo" ,r-seqlogo)
7807 ("r-xvector" ,r-xvector)))
7808 (home-page "http://bioconductor.org/packages/motifRG")
7809 (synopsis "Discover motifs in high throughput sequencing data")
7810 (description
7811 "This package provides tools for discriminative motif discovery in high
7812 throughput genetic sequencing data sets using regression methods.")
7813 (license license:artistic2.0)))
7814
7815 (define-public r-qtl
7816 (package
7817 (name "r-qtl")
7818 (version "1.40-8")
7819 (source
7820 (origin
7821 (method url-fetch)
7822 (uri (string-append "mirror://cran/src/contrib/qtl_"
7823 version ".tar.gz"))
7824 (sha256
7825 (base32
7826 "05bj1x2ry0i7yqiydlswb3d2h4pxg70z8w1072az1mrv1m54k8sp"))))
7827 (build-system r-build-system)
7828 (home-page "http://rqtl.org/")
7829 (synopsis "R package for analyzing QTL experiments in genetics")
7830 (description "R/qtl is an extension library for the R statistics
7831 system. It is used to analyze experimental crosses for identifying
7832 genes contributing to variation in quantitative traits (so-called
7833 quantitative trait loci, QTLs).
7834
7835 Using a hidden Markov model, R/qtl allows to estimate genetic maps, to
7836 identify genotyping errors, and to perform single-QTL and two-QTL,
7837 two-dimensional genome scans.")
7838 (license license:gpl3)))
7839
7840 (define-public r-zlibbioc
7841 (package
7842 (name "r-zlibbioc")
7843 (version "1.22.0")
7844 (source (origin
7845 (method url-fetch)
7846 (uri (bioconductor-uri "zlibbioc" version))
7847 (sha256
7848 (base32
7849 "1kdgwwlh39mgwzj3zq71za4iv40sq625ghnyrndv5wrivrcr2igv"))))
7850 (properties
7851 `((upstream-name . "zlibbioc")))
7852 (build-system r-build-system)
7853 (home-page "https://bioconductor.org/packages/zlibbioc")
7854 (synopsis "Provider for zlib-1.2.5 to R packages")
7855 (description "This package uses the source code of zlib-1.2.5 to create
7856 libraries for systems that do not have these available via other means.")
7857 (license license:artistic2.0)))
7858
7859 (define-public r-r4rna
7860 (package
7861 (name "r-r4rna")
7862 (version "0.1.4")
7863 (source
7864 (origin
7865 (method url-fetch)
7866 (uri (string-append "http://www.e-rna.org/r-chie/files/R4RNA_"
7867 version ".tar.gz"))
7868 (sha256
7869 (base32
7870 "1p0i78wh76jfgmn9jphbwwaz6yy6pipzfg08xs54cxavxg2j81p5"))))
7871 (build-system r-build-system)
7872 (propagated-inputs
7873 `(("r-optparse" ,r-optparse)
7874 ("r-rcolorbrewer" ,r-rcolorbrewer)))
7875 (home-page "http://www.e-rna.org/r-chie/index.cgi")
7876 (synopsis "Analysis framework for RNA secondary structure")
7877 (description
7878 "The R4RNA package aims to be a general framework for the analysis of RNA
7879 secondary structure and comparative analysis in R.")
7880 (license license:gpl3+)))
7881
7882 (define-public r-rhtslib
7883 (package
7884 (name "r-rhtslib")
7885 (version "1.8.0")
7886 (source
7887 (origin
7888 (method url-fetch)
7889 (uri (bioconductor-uri "Rhtslib" version))
7890 (sha256
7891 (base32
7892 "0jj5h81z5gyf4j3lp2l3zsm6pgbmalgrngr8qdpygc20phndpp0b"))))
7893 (properties `((upstream-name . "Rhtslib")))
7894 (build-system r-build-system)
7895 (propagated-inputs
7896 `(("r-zlibbioc" ,r-zlibbioc)))
7897 (inputs
7898 `(("zlib" ,zlib)))
7899 (native-inputs
7900 `(("autoconf" ,autoconf)))
7901 (home-page "https://github.com/nhayden/Rhtslib")
7902 (synopsis "High-throughput sequencing library as an R package")
7903 (description
7904 "This package provides the HTSlib C library for high-throughput
7905 nucleotide sequence analysis. The package is primarily useful to developers
7906 of other R packages who wish to make use of HTSlib.")
7907 (license license:lgpl2.0+)))
7908
7909 (define-public r-bamsignals
7910 (package
7911 (name "r-bamsignals")
7912 (version "1.8.0")
7913 (source
7914 (origin
7915 (method url-fetch)
7916 (uri (bioconductor-uri "bamsignals" version))
7917 (sha256
7918 (base32
7919 "0knx69zzdaak2sjim8k9mygmcjxpa705m8013ld5zwpgi8dag9mc"))))
7920 (build-system r-build-system)
7921 (propagated-inputs
7922 `(("r-biocgenerics" ,r-biocgenerics)
7923 ("r-genomicranges" ,r-genomicranges)
7924 ("r-iranges" ,r-iranges)
7925 ("r-rcpp" ,r-rcpp)
7926 ("r-rhtslib" ,r-rhtslib)
7927 ("r-zlibbioc" ,r-zlibbioc)))
7928 (inputs
7929 `(("zlib" ,zlib)))
7930 (home-page "http://bioconductor.org/packages/bamsignals")
7931 (synopsis "Extract read count signals from bam files")
7932 (description
7933 "This package allows to efficiently obtain count vectors from indexed bam
7934 files. It counts the number of nucleotide sequence reads in given genomic
7935 ranges and it computes reads profiles and coverage profiles. It also handles
7936 paired-end data.")
7937 (license license:gpl2+)))
7938
7939 (define-public r-rcas
7940 (package
7941 (name "r-rcas")
7942 (version "1.1.1")
7943 (source (origin
7944 (method url-fetch)
7945 (uri (string-append "https://github.com/BIMSBbioinfo/RCAS/archive/v"
7946 version ".tar.gz"))
7947 (file-name (string-append name "-" version ".tar.gz"))
7948 (sha256
7949 (base32
7950 "1hd0r66556bxbdd82ksjklq7nfli36l4k6y88ic7kkg9873wa1nw"))))
7951 (build-system r-build-system)
7952 (native-inputs
7953 `(("r-knitr" ,r-knitr)
7954 ("r-testthat" ,r-testthat)
7955 ;; During vignette building knitr checks that "pandoc-citeproc"
7956 ;; is in the PATH.
7957 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)))
7958 (propagated-inputs
7959 `(("r-data-table" ,r-data-table)
7960 ("r-biomart" ,r-biomart)
7961 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
7962 ("r-org-ce-eg-db" ,r-org-ce-eg-db)
7963 ("r-org-dm-eg-db" ,r-org-dm-eg-db)
7964 ("r-org-mm-eg-db" ,r-org-mm-eg-db)
7965 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
7966 ("r-bsgenome-mmusculus-ucsc-mm9" ,r-bsgenome-mmusculus-ucsc-mm9)
7967 ("r-bsgenome-celegans-ucsc-ce10" ,r-bsgenome-celegans-ucsc-ce10)
7968 ("r-bsgenome-dmelanogaster-ucsc-dm3" ,r-bsgenome-dmelanogaster-ucsc-dm3)
7969 ("r-topgo" ,r-topgo)
7970 ("r-dt" ,r-dt)
7971 ("r-plotly" ,r-plotly)
7972 ("r-plotrix" ,r-plotrix)
7973 ("r-motifrg" ,r-motifrg)
7974 ("r-genomation" ,r-genomation)
7975 ("r-genomicfeatures" ,r-genomicfeatures)
7976 ("r-rtracklayer" ,r-rtracklayer)
7977 ("r-rmarkdown" ,r-rmarkdown)))
7978 (synopsis "RNA-centric annotation system")
7979 (description
7980 "RCAS aims to be a standalone RNA-centric annotation system that provides
7981 intuitive reports and publication-ready graphics. This package provides the R
7982 library implementing most of the pipeline's features.")
7983 (home-page "https://github.com/BIMSBbioinfo/RCAS")
7984 (license license:expat)))
7985
7986 (define-public rcas-web
7987 (package
7988 (name "rcas-web")
7989 (version "0.0.3")
7990 (source
7991 (origin
7992 (method url-fetch)
7993 (uri (string-append "https://github.com/BIMSBbioinfo/rcas-web/"
7994 "releases/download/v" version
7995 "/rcas-web-" version ".tar.gz"))
7996 (sha256
7997 (base32
7998 "0d3my0g8i7js59n184zzzjdki7hgmhpi4rhfvk7i6jsw01ba04qq"))))
7999 (build-system gnu-build-system)
8000 (arguments
8001 `(#:phases
8002 (modify-phases %standard-phases
8003 (add-after 'install 'wrap-executable
8004 (lambda* (#:key inputs outputs #:allow-other-keys)
8005 (let* ((out (assoc-ref outputs "out"))
8006 (json (assoc-ref inputs "guile-json"))
8007 (redis (assoc-ref inputs "guile-redis"))
8008 (path (string-append
8009 json "/share/guile/site/2.2:"
8010 redis "/share/guile/site/2.2")))
8011 (wrap-program (string-append out "/bin/rcas-web")
8012 `("GUILE_LOAD_PATH" ":" = (,path))
8013 `("GUILE_LOAD_COMPILED_PATH" ":" = (,path))
8014 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
8015 #t)))))
8016 (inputs
8017 `(("r-minimal" ,r-minimal)
8018 ("r-rcas" ,r-rcas)
8019 ("guile-next" ,guile-2.2)
8020 ("guile-json" ,guile-json)
8021 ("guile-redis" ,guile2.2-redis)))
8022 (native-inputs
8023 `(("pkg-config" ,pkg-config)))
8024 (home-page "https://github.com/BIMSBbioinfo/rcas-web")
8025 (synopsis "Web interface for RNA-centric annotation system (RCAS)")
8026 (description "This package provides a simple web interface for the
8027 @dfn{RNA-centric annotation system} (RCAS).")
8028 (license license:agpl3+)))
8029
8030 (define-public r-mutationalpatterns
8031 (package
8032 (name "r-mutationalpatterns")
8033 (version "1.2.1")
8034 (source
8035 (origin
8036 (method url-fetch)
8037 (uri (bioconductor-uri "MutationalPatterns" version))
8038 (sha256
8039 (base32
8040 "1s50diwh1j6vg3mgahh6bczvq74mfdbmwjrad4d5lh723gnc5pjg"))))
8041 (build-system r-build-system)
8042 (propagated-inputs
8043 `(("r-biocgenerics" ,r-biocgenerics)
8044 ("r-biostrings" ,r-biostrings)
8045 ("r-bsgenome-hsapiens-1000g" ,r-bsgenome-hsapiens-1000genomes-hs37d5)
8046 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8047 ("r-genomicranges" ,r-genomicranges)
8048 ("r-genomeinfodb" ,r-genomeinfodb)
8049 ("r-ggplot2" ,r-ggplot2)
8050 ("r-gridextra" ,r-gridextra)
8051 ("r-iranges" ,r-iranges)
8052 ("r-nmf" ,r-nmf)
8053 ("r-plyr" ,r-plyr)
8054 ("r-pracma" ,r-pracma)
8055 ("r-reshape2" ,r-reshape2)
8056 ("r-summarizedexperiment" ,r-summarizedexperiment)
8057 ("r-variantannotation" ,r-variantannotation)))
8058 (home-page "http://bioconductor.org/packages/MutationalPatterns/")
8059 (synopsis "Extract and visualize mutational patterns in genomic data")
8060 (description "This package provides an extensive toolset for the
8061 characterization and visualization of a wide range of mutational patterns
8062 in SNV base substitution data.")
8063 (license license:expat)))
8064
8065 (define-public r-wgcna
8066 (package
8067 (name "r-wgcna")
8068 (version "1.51")
8069 (source
8070 (origin
8071 (method url-fetch)
8072 (uri (cran-uri "WGCNA" version))
8073 (sha256
8074 (base32
8075 "0hzvnhw76vwg8bl8x368f0c5szpwb8323bmrb3bir93i5bmfjsxx"))))
8076 (properties `((upstream-name . "WGCNA")))
8077 (build-system r-build-system)
8078 (propagated-inputs
8079 `(("r-annotationdbi" ,r-annotationdbi)
8080 ("r-doparallel" ,r-doparallel)
8081 ("r-dynamictreecut" ,r-dynamictreecut)
8082 ("r-fastcluster" ,r-fastcluster)
8083 ("r-foreach" ,r-foreach)
8084 ("r-go-db" ,r-go-db)
8085 ("r-hmisc" ,r-hmisc)
8086 ("r-impute" ,r-impute)
8087 ("r-matrixstats" ,r-matrixstats)
8088 ("r-preprocesscore" ,r-preprocesscore)))
8089 (home-page
8090 "http://www.genetics.ucla.edu/labs/horvath/CoexpressionNetwork/Rpackages/WGCNA/")
8091 (synopsis "Weighted correlation network analysis")
8092 (description
8093 "This package provides functions necessary to perform Weighted
8094 Correlation Network Analysis on high-dimensional data. It includes functions
8095 for rudimentary data cleaning, construction and summarization of correlation
8096 networks, module identification and functions for relating both variables and
8097 modules to sample traits. It also includes a number of utility functions for
8098 data manipulation and visualization.")
8099 (license license:gpl2+)))
8100
8101 (define-public r-chipkernels
8102 (let ((commit "c9cfcacb626b1221094fb3490ea7bac0fd625372")
8103 (revision "1"))
8104 (package
8105 (name "r-chipkernels")
8106 (version (string-append "1.1-" revision "." (string-take commit 9)))
8107 (source
8108 (origin
8109 (method git-fetch)
8110 (uri (git-reference
8111 (url "https://github.com/ManuSetty/ChIPKernels.git")
8112 (commit commit)))
8113 (file-name (string-append name "-" version))
8114 (sha256
8115 (base32
8116 "14bj5qhjm1hsm9ay561nfbqi9wxsa7y487df2idsaaf6z10nw4v0"))))
8117 (build-system r-build-system)
8118 (propagated-inputs
8119 `(("r-iranges" ,r-iranges)
8120 ("r-xvector" ,r-xvector)
8121 ("r-biostrings" ,r-biostrings)
8122 ("r-bsgenome" ,r-bsgenome)
8123 ("r-gtools" ,r-gtools)
8124 ("r-genomicranges" ,r-genomicranges)
8125 ("r-sfsmisc" ,r-sfsmisc)
8126 ("r-kernlab" ,r-kernlab)
8127 ("r-s4vectors" ,r-s4vectors)
8128 ("r-biocgenerics" ,r-biocgenerics)))
8129 (home-page "https://github.com/ManuSetty/ChIPKernels")
8130 (synopsis "Build string kernels for DNA Sequence analysis")
8131 (description "ChIPKernels is an R package for building different string
8132 kernels used for DNA Sequence analysis. A dictionary of the desired kernel
8133 must be built and this dictionary can be used for determining kernels for DNA
8134 Sequences.")
8135 (license license:gpl2+))))
8136
8137 (define-public r-seqgl
8138 (package
8139 (name "r-seqgl")
8140 (version "1.1.4")
8141 (source
8142 (origin
8143 (method url-fetch)
8144 (uri (string-append "https://github.com/ManuSetty/SeqGL/"
8145 "archive/" version ".tar.gz"))
8146 (file-name (string-append name "-" version ".tar.gz"))
8147 (sha256
8148 (base32
8149 "0pnk1p3sci5yipyc8xnb6jbmydpl80fld927xgnbcv104hy8h8yh"))))
8150 (build-system r-build-system)
8151 (propagated-inputs
8152 `(("r-biostrings" ,r-biostrings)
8153 ("r-chipkernels" ,r-chipkernels)
8154 ("r-genomicranges" ,r-genomicranges)
8155 ("r-spams" ,r-spams)
8156 ("r-wgcna" ,r-wgcna)
8157 ("r-fastcluster" ,r-fastcluster)))
8158 (home-page "https://github.com/ManuSetty/SeqGL")
8159 (synopsis "Group lasso for Dnase/ChIP-seq data")
8160 (description "SeqGL is a group lasso based algorithm to extract
8161 transcription factor sequence signals from ChIP, DNase and ATAC-seq profiles.
8162 This package presents a method which uses group lasso to discriminate between
8163 bound and non bound genomic regions to accurately identify transcription
8164 factors bound at the specific regions.")
8165 (license license:gpl2+)))
8166
8167 (define-public r-gkmsvm
8168 (package
8169 (name "r-gkmsvm")
8170 (version "0.71.0")
8171 (source
8172 (origin
8173 (method url-fetch)
8174 (uri (cran-uri "gkmSVM" version))
8175 (sha256
8176 (base32
8177 "1zpxgxmf2nd5j5wn00ps6kfxr8wxh7d1swr1rr4spq7sj5z5z0k0"))))
8178 (properties `((upstream-name . "gkmSVM")))
8179 (build-system r-build-system)
8180 (propagated-inputs
8181 `(("r-biocgenerics" ,r-biocgenerics)
8182 ("r-biostrings" ,r-biostrings)
8183 ("r-genomeinfodb" ,r-genomeinfodb)
8184 ("r-genomicranges" ,r-genomicranges)
8185 ("r-iranges" ,r-iranges)
8186 ("r-kernlab" ,r-kernlab)
8187 ("r-rcpp" ,r-rcpp)
8188 ("r-rocr" ,r-rocr)
8189 ("r-rtracklayer" ,r-rtracklayer)
8190 ("r-s4vectors" ,r-s4vectors)
8191 ("r-seqinr" ,r-seqinr)))
8192 (home-page "http://cran.r-project.org/web/packages/gkmSVM")
8193 (synopsis "Gapped-kmer support vector machine")
8194 (description
8195 "This R package provides tools for training gapped-kmer SVM classifiers
8196 for DNA and protein sequences. This package supports several sequence
8197 kernels, including: gkmSVM, kmer-SVM, mismatch kernel and wildcard kernel.")
8198 (license license:gpl2+)))
8199
8200 (define-public r-tximport
8201 (package
8202 (name "r-tximport")
8203 (version "1.4.0")
8204 (source (origin
8205 (method url-fetch)
8206 (uri (bioconductor-uri "tximport" version))
8207 (sha256
8208 (base32
8209 "1mklb02bj4gnbjlmb7vv6k4lr3w9fp3pzli9rddbrwd0y5n8fcpx"))))
8210 (build-system r-build-system)
8211 (home-page "http://bioconductor.org/packages/tximport")
8212 (synopsis "Import and summarize transcript-level estimates for gene-level analysis")
8213 (description
8214 "This package provides tools to import transcript-level abundance,
8215 estimated counts and transcript lengths, and to summarize them into matrices
8216 for use with downstream gene-level analysis packages. Average transcript
8217 length, weighted by sample-specific transcript abundance estimates, is
8218 provided as a matrix which can be used as an offset for different expression
8219 of gene-level counts.")
8220 (license license:gpl2+)))
8221
8222 (define-public r-rhdf5
8223 (package
8224 (name "r-rhdf5")
8225 (version "2.20.0")
8226 (source (origin
8227 (method url-fetch)
8228 (uri (bioconductor-uri "rhdf5" version))
8229 (sha256
8230 (base32
8231 "1p6f5i6l44phl772a38x9cav2sya37bkqbkjzdc4pmyfzkv1j6hy"))))
8232 (build-system r-build-system)
8233 (arguments
8234 `(#:phases
8235 (modify-phases %standard-phases
8236 (add-after 'unpack 'unpack-smallhdf5
8237 (lambda* (#:key outputs #:allow-other-keys)
8238 (system* "tar" "-xzvf"
8239 "src/hdf5source/hdf5small.tgz" "-C" "src/" )
8240 (substitute* "src/Makevars"
8241 (("^.*cd hdf5source &&.*$") "")
8242 (("^.*gunzip -dc hdf5small.tgz.*$") "")
8243 (("^.*rm -rf hdf5.*$") "")
8244 (("^.*mv hdf5source/hdf5 ..*$") ""))
8245 (substitute* "src/hdf5/configure"
8246 (("/bin/mv") "mv"))
8247 #t)))))
8248 (propagated-inputs
8249 `(("r-zlibbioc" ,r-zlibbioc)))
8250 (inputs
8251 `(("perl" ,perl)
8252 ("zlib" ,zlib)))
8253 (home-page "http://bioconductor.org/packages/rhdf5")
8254 (synopsis "HDF5 interface to R")
8255 (description
8256 "This R/Bioconductor package provides an interface between HDF5 and R.
8257 HDF5's main features are the ability to store and access very large and/or
8258 complex datasets and a wide variety of metadata on mass storage (disk) through
8259 a completely portable file format. The rhdf5 package is thus suited for the
8260 exchange of large and/or complex datasets between R and other software
8261 package, and for letting R applications work on datasets that are larger than
8262 the available RAM.")
8263 (license license:artistic2.0)))
8264
8265 (define-public emboss
8266 (package
8267 (name "emboss")
8268 (version "6.5.7")
8269 (source (origin
8270 (method url-fetch)
8271 (uri (string-append "ftp://emboss.open-bio.org/pub/EMBOSS/old/"
8272 (version-major+minor version) ".0/"
8273 "EMBOSS-" version ".tar.gz"))
8274 (sha256
8275 (base32
8276 "0vsmz96gc411yj2iyzdrsmg4l2n1nhgmp7vrgzlxx3xixv9xbf0q"))))
8277 (build-system gnu-build-system)
8278 (arguments
8279 `(#:configure-flags
8280 (list (string-append "--with-hpdf="
8281 (assoc-ref %build-inputs "libharu")))
8282 #:phases
8283 (modify-phases %standard-phases
8284 (add-after 'unpack 'fix-checks
8285 (lambda _
8286 ;; The PNGDRIVER tests check for the presence of libgd, libpng
8287 ;; and zlib, but assume that they are all found at the same
8288 ;; prefix.
8289 (substitute* "configure.in"
8290 (("CHECK_PNGDRIVER")
8291 "LIBS=\"$LIBS -lgd -lpng -lz -lm\"
8292 AC_DEFINE([PLD_png], [1], [Define to 1 if PNG support is available])
8293 AM_CONDITIONAL(AMPNG, true)"))
8294 #t))
8295 (add-after 'unpack 'disable-update-check
8296 (lambda _
8297 ;; At build time there is no connection to the Internet, so
8298 ;; looking for updates will not work.
8299 (substitute* "Makefile.am"
8300 (("\\$\\(bindir\\)/embossupdate") ""))
8301 #t))
8302 (add-before 'configure 'autogen
8303 (lambda _ (zero? (system* "autoreconf" "-vif")))))))
8304 (inputs
8305 `(("perl" ,perl)
8306 ("libpng" ,libpng)
8307 ("gd" ,gd)
8308 ("libx11" ,libx11)
8309 ("libharu" ,libharu)
8310 ("zlib" ,zlib)))
8311 (native-inputs
8312 `(("autoconf" ,autoconf)
8313 ("automake" ,automake)
8314 ("libtool" ,libtool)
8315 ("pkg-config" ,pkg-config)))
8316 (home-page "http://emboss.sourceforge.net")
8317 (synopsis "Molecular biology analysis suite")
8318 (description "EMBOSS is the \"European Molecular Biology Open Software
8319 Suite\". EMBOSS is an analysis package specially developed for the needs of
8320 the molecular biology (e.g. EMBnet) user community. The software
8321 automatically copes with data in a variety of formats and even allows
8322 transparent retrieval of sequence data from the web. It also provides a
8323 number of libraries for the development of software in the field of molecular
8324 biology. EMBOSS also integrates a range of currently available packages and
8325 tools for sequence analysis into a seamless whole.")
8326 (license license:gpl2+)))
8327
8328 (define-public bits
8329 (let ((revision "1")
8330 (commit "3cc4567896d9d6442923da944beb704750a08d2d"))
8331 (package
8332 (name "bits")
8333 ;; The version is 2.13.0 even though no release archives have been
8334 ;; published as yet.
8335 (version (string-append "2.13.0-" revision "." (string-take commit 9)))
8336 (source (origin
8337 (method git-fetch)
8338 (uri (git-reference
8339 (url "https://github.com/arq5x/bits.git")
8340 (commit commit)))
8341 (file-name (string-append name "-" version "-checkout"))
8342 (sha256
8343 (base32
8344 "17n2kffk4kmhivd8c98g2vr6y1s23vbg4sxlxs689wni66797hbs"))))
8345 (build-system gnu-build-system)
8346 (arguments
8347 `(#:tests? #f ;no tests included
8348 #:phases
8349 (modify-phases %standard-phases
8350 (delete 'configure)
8351 (add-after 'unpack 'remove-cuda
8352 (lambda _
8353 (substitute* "Makefile"
8354 ((".*_cuda") "")
8355 (("(bits_test_intersections) \\\\" _ match) match))
8356 #t))
8357 (replace 'install
8358 (lambda* (#:key outputs #:allow-other-keys)
8359 (copy-recursively
8360 "bin" (string-append (assoc-ref outputs "out") "/bin"))
8361 #t)))))
8362 (inputs
8363 `(("gsl" ,gsl)
8364 ("zlib" ,zlib)))
8365 (home-page "https://github.com/arq5x/bits")
8366 (synopsis "Implementation of binary interval search algorithm")
8367 (description "This package provides an implementation of the
8368 BITS (Binary Interval Search) algorithm, an approach to interval set
8369 intersection. It is especially suited for the comparison of diverse genomic
8370 datasets and the exploration of large datasets of genome
8371 intervals (e.g. genes, sequence alignments).")
8372 (license license:gpl2))))
8373
8374 (define-public piranha
8375 ;; There is no release tarball for the latest version. The latest commit is
8376 ;; older than one year at the time of this writing.
8377 (let ((revision "1")
8378 (commit "0466d364b71117d01e4471b74c514436cc281233"))
8379 (package
8380 (name "piranha")
8381 (version (string-append "1.2.1-" revision "." (string-take commit 9)))
8382 (source (origin
8383 (method git-fetch)
8384 (uri (git-reference
8385 (url "https://github.com/smithlabcode/piranha.git")
8386 (commit commit)))
8387 (sha256
8388 (base32
8389 "117dc0zf20c61jam69sk4abl57ah6yi6i7qra7d7y5zrbgk12q5n"))))
8390 (build-system gnu-build-system)
8391 (arguments
8392 `(#:test-target "test"
8393 #:phases
8394 (modify-phases %standard-phases
8395 (add-after 'unpack 'copy-smithlab-cpp
8396 (lambda* (#:key inputs #:allow-other-keys)
8397 (for-each (lambda (file)
8398 (install-file file "./src/smithlab_cpp/"))
8399 (find-files (assoc-ref inputs "smithlab-cpp")))
8400 #t))
8401 (add-after 'install 'install-to-store
8402 (lambda* (#:key outputs #:allow-other-keys)
8403 (let* ((out (assoc-ref outputs "out"))
8404 (bin (string-append out "/bin")))
8405 (for-each (lambda (file)
8406 (install-file file bin))
8407 (find-files "bin" ".*")))
8408 #t)))
8409 #:configure-flags
8410 (list (string-append "--with-bam_tools_headers="
8411 (assoc-ref %build-inputs "bamtools") "/include/bamtools")
8412 (string-append "--with-bam_tools_library="
8413 (assoc-ref %build-inputs "bamtools") "/lib/bamtools"))))
8414 (inputs
8415 `(("bamtools" ,bamtools)
8416 ("samtools" ,samtools-0.1)
8417 ("gsl" ,gsl)
8418 ("smithlab-cpp"
8419 ,(let ((commit "3723e2db438c51501d0423429ff396c3035ba46a"))
8420 (origin
8421 (method git-fetch)
8422 (uri (git-reference
8423 (url "https://github.com/smithlabcode/smithlab_cpp.git")
8424 (commit commit)))
8425 (file-name (string-append "smithlab_cpp-" commit "-checkout"))
8426 (sha256
8427 (base32
8428 "0l4gvbwslw5ngziskja41c00x1r06l3yidv7y0xw9djibhykzy0g")))))))
8429 (native-inputs
8430 `(("python" ,python-2)))
8431 (home-page "https://github.com/smithlabcode/piranha")
8432 (synopsis "Peak-caller for CLIP-seq and RIP-seq data")
8433 (description
8434 "Piranha is a peak-caller for genomic data produced by CLIP-seq and
8435 RIP-seq experiments. It takes input in BED or BAM format and identifies
8436 regions of statistically significant read enrichment. Additional covariates
8437 may optionally be provided to further inform the peak-calling process.")
8438 (license license:gpl3+))))
8439
8440 (define-public pepr
8441 (package
8442 (name "pepr")
8443 (version "1.0.9")
8444 (source (origin
8445 (method url-fetch)
8446 (uri (string-append "https://pypi.python.org/packages/source/P"
8447 "/PePr/PePr-" version ".tar.gz"))
8448 (sha256
8449 (base32
8450 "0qxjfdpl1b1y53nccws2d85f6k74zwmx8y8sd9rszcqhfayx6gdx"))))
8451 (build-system python-build-system)
8452 (arguments
8453 `(#:python ,python-2 ; python2 only
8454 #:tests? #f)) ; no tests included
8455 (propagated-inputs
8456 `(("python2-numpy" ,python2-numpy)
8457 ("python2-scipy" ,python2-scipy)
8458 ("python2-pysam" ,python2-pysam)))
8459 (home-page "https://github.com/shawnzhangyx/PePr")
8460 (synopsis "Peak-calling and prioritization pipeline for ChIP-Seq data")
8461 (description
8462 "PePr is a ChIP-Seq peak calling or differential binding analysis tool
8463 that is primarily designed for data with biological replicates. It uses a
8464 negative binomial distribution to model the read counts among the samples in
8465 the same group, and look for consistent differences between ChIP and control
8466 group or two ChIP groups run under different conditions.")
8467 (license license:gpl3+)))
8468
8469 (define-public filevercmp
8470 (let ((commit "1a9b779b93d0b244040274794d402106907b71b7"))
8471 (package
8472 (name "filevercmp")
8473 (version (string-append "0-1." (string-take commit 7)))
8474 (source (origin
8475 (method url-fetch)
8476 (uri (string-append "https://github.com/ekg/filevercmp/archive/"
8477 commit ".tar.gz"))
8478 (file-name (string-append name "-" version ".tar.gz"))
8479 (sha256
8480 (base32 "0yp5jswf5j2pqc6517x277s4s6h1ss99v57kxw9gy0jkfl3yh450"))))
8481 (build-system gnu-build-system)
8482 (arguments
8483 `(#:tests? #f ; There are no tests to run.
8484 #:phases
8485 (modify-phases %standard-phases
8486 (delete 'configure) ; There is no configure phase.
8487 (replace 'install
8488 (lambda* (#:key outputs #:allow-other-keys)
8489 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
8490 (install-file "filevercmp" bin)))))))
8491 (home-page "https://github.com/ekg/filevercmp")
8492 (synopsis "This program compares version strings")
8493 (description "This program compares version strings. It intends to be a
8494 replacement for strverscmp.")
8495 (license license:gpl3+))))
8496
8497 (define-public multiqc
8498 (package
8499 (name "multiqc")
8500 (version "0.9")
8501 (source
8502 (origin
8503 (method url-fetch)
8504 (uri (pypi-uri "multiqc" version))
8505 (sha256
8506 (base32
8507 "12gs1jw2jrxrij529rnl5kaqxfcqn15yzcsggxkfhdx634ml0cny"))
8508 (patches (search-patches "multiqc-fix-git-subprocess-error.patch"))))
8509 (build-system python-build-system)
8510 (arguments
8511 ;; Tests are to be introduced in the next version, see
8512 ;; https://github.com/ewels/MultiQC/issues/376
8513 `(#:tests? #f))
8514 (propagated-inputs
8515 `(("python-jinja2" ,python-jinja2)
8516 ("python-simplejson" ,python-simplejson)
8517 ("python-pyyaml" ,python-pyyaml)
8518 ("python-click" ,python-click)
8519 ("python-matplotlib" ,python-matplotlib)
8520 ("python-numpy" ,python-numpy)
8521 ;; MultQC checks for the presence of nose at runtime.
8522 ("python-nose" ,python-nose)))
8523 (home-page "http://multiqc.info")
8524 (synopsis "Aggregate bioinformatics analysis reports")
8525 (description
8526 "MultiQC is a tool to aggregate bioinformatics results across many
8527 samples into a single report. It contains modules for a large number of
8528 common bioinformatics tools.")
8529 (license license:gpl3)))
8530
8531 (define-public r-chipseq
8532 (package
8533 (name "r-chipseq")
8534 (version "1.26.0")
8535 (source
8536 (origin
8537 (method url-fetch)
8538 (uri (bioconductor-uri "chipseq" version))
8539 (sha256
8540 (base32
8541 "1hahyqiwb2ch8214xqpw0c3jpiwkmyf3dwz0xc87jx6cdnzipj3i"))))
8542 (build-system r-build-system)
8543 (propagated-inputs
8544 `(("r-biocgenerics" ,r-biocgenerics)
8545 ("r-genomicranges" ,r-genomicranges)
8546 ("r-iranges" ,r-iranges)
8547 ("r-s4vectors" ,r-s4vectors)
8548 ("r-shortread" ,r-shortread)))
8549 (home-page "http://bioconductor.org/packages/chipseq")
8550 (synopsis "Package for analyzing ChIPseq data")
8551 (description
8552 "This package provides tools for processing short read data from ChIPseq
8553 experiments.")
8554 (license license:artistic2.0)))
8555
8556 (define-public r-copyhelper
8557 (package
8558 (name "r-copyhelper")
8559 (version "1.6.0")
8560 (source
8561 (origin
8562 (method url-fetch)
8563 (uri (string-append "http://bioconductor.org/packages/release/"
8564 "data/experiment/src/contrib/CopyhelpeR_"
8565 version ".tar.gz"))
8566 (sha256
8567 (base32
8568 "0x7cyynjmxls9as2gg0iyp9x5fpalxmdjq914ss7i84i9zyk5bhq"))))
8569 (properties `((upstream-name . "CopyhelpeR")))
8570 (build-system r-build-system)
8571 (home-page "http://bioconductor.org/packages/CopyhelpeR/")
8572 (synopsis "Helper files for CopywriteR")
8573 (description
8574 "This package contains the helper files that are required to run the
8575 Bioconductor package CopywriteR. It contains pre-assembled 1kb bin GC-content
8576 and mappability files for the reference genomes hg18, hg19, hg38, mm9 and
8577 mm10. In addition, it contains a blacklist filter to remove regions that
8578 display copy number variation. Files are stored as GRanges objects from the
8579 GenomicRanges Bioconductor package.")
8580 (license license:gpl2)))
8581
8582 (define-public r-copywriter
8583 (package
8584 (name "r-copywriter")
8585 (version "2.8.1")
8586 (source
8587 (origin
8588 (method url-fetch)
8589 (uri (bioconductor-uri "CopywriteR" version))
8590 (sha256
8591 (base32
8592 "0xgqnq5v5213b3nzvlmjysjb7w1bc0iblqpmzbjqn7n0ib0qyhbm"))))
8593 (properties `((upstream-name . "CopywriteR")))
8594 (build-system r-build-system)
8595 (propagated-inputs
8596 `(("r-biocparallel" ,r-biocparallel)
8597 ("r-chipseq" ,r-chipseq)
8598 ("r-copyhelper" ,r-copyhelper)
8599 ("r-data-table" ,r-data-table)
8600 ("r-dnacopy" ,r-dnacopy)
8601 ("r-futile-logger" ,r-futile-logger)
8602 ("r-genomeinfodb" ,r-genomeinfodb)
8603 ("r-genomicalignments" ,r-genomicalignments)
8604 ("r-genomicranges" ,r-genomicranges)
8605 ("r-gtools" ,r-gtools)
8606 ("r-iranges" ,r-iranges)
8607 ("r-matrixstats" ,r-matrixstats)
8608 ("r-rsamtools" ,r-rsamtools)
8609 ("r-s4vectors" ,r-s4vectors)))
8610 (home-page "https://github.com/PeeperLab/CopywriteR")
8611 (synopsis "Copy number information from targeted sequencing")
8612 (description
8613 "CopywriteR extracts DNA copy number information from targeted sequencing
8614 by utilizing off-target reads. It allows for extracting uniformly distributed
8615 copy number information, can be used without reference, and can be applied to
8616 sequencing data obtained from various techniques including chromatin
8617 immunoprecipitation and target enrichment on small gene panels. Thereby,
8618 CopywriteR constitutes a widely applicable alternative to available copy
8619 number detection tools.")
8620 (license license:gpl2)))
8621
8622 (define-public r-sva
8623 (package
8624 (name "r-sva")
8625 (version "3.24.4")
8626 (source
8627 (origin
8628 (method url-fetch)
8629 (uri (bioconductor-uri "sva" version))
8630 (sha256
8631 (base32
8632 "0wcway4ai9im81xnrzb1vij2iidq5pw24qhjfgacmhxvx3dzhbsc"))))
8633 (build-system r-build-system)
8634 (propagated-inputs
8635 `(("r-genefilter" ,r-genefilter)
8636 ("r-mgcv" ,r-mgcv)
8637 ("r-biocparallel" ,r-biocparallel)
8638 ("r-matrixstats" ,r-matrixstats)
8639 ("r-limma" ,r-limma)))
8640 (home-page "http://bioconductor.org/packages/sva")
8641 (synopsis "Surrogate variable analysis")
8642 (description
8643 "This package contains functions for removing batch effects and other
8644 unwanted variation in high-throughput experiment. It also contains functions
8645 for identifying and building surrogate variables for high-dimensional data
8646 sets. Surrogate variables are covariates constructed directly from
8647 high-dimensional data like gene expression/RNA sequencing/methylation/brain
8648 imaging data that can be used in subsequent analyses to adjust for unknown,
8649 unmodeled, or latent sources of noise.")
8650 (license license:artistic2.0)))
8651
8652 (define-public r-seqminer
8653 (package
8654 (name "r-seqminer")
8655 (version "5.9")
8656 (source
8657 (origin
8658 (method url-fetch)
8659 (uri (cran-uri "seqminer" version))
8660 (sha256
8661 (base32
8662 "0sfkxrc9gy5a8fadzyzfzh7l5grasm8cj6cd2nnpv85ws6mqr6qd"))))
8663 (build-system r-build-system)
8664 (inputs
8665 `(("zlib" ,zlib)))
8666 (home-page "http://seqminer.genomic.codes")
8667 (synopsis "Read nucleotide sequence data (VCF, BCF, and METAL formats)")
8668 (description
8669 "This package provides tools to integrate nucleotide sequencing
8670 data (variant call format, e.g. VCF or BCF) or meta-analysis results in R.")
8671 ;; Any version of the GPL is acceptable
8672 (license (list license:gpl2+ license:gpl3+))))
8673
8674 (define-public r-raremetals2
8675 (package
8676 (name "r-raremetals2")
8677 (version "0.1")
8678 (source
8679 (origin
8680 (method url-fetch)
8681 (uri (string-append "http://genome.sph.umich.edu/w/images/"
8682 "b/b7/RareMETALS2_" version ".tar.gz"))
8683 (sha256
8684 (base32
8685 "0z5ljcgvnm06ja9lm85a3cniq7slxcy37aqqkxrdidr79an5fs4s"))))
8686 (properties `((upstream-name . "RareMETALS2")))
8687 (build-system r-build-system)
8688 (propagated-inputs
8689 `(("r-seqminer" ,r-seqminer)
8690 ("r-mvtnorm" ,r-mvtnorm)
8691 ("r-mass" ,r-mass)
8692 ("r-compquadform" ,r-compquadform)
8693 ("r-getopt" ,r-getopt)))
8694 (home-page "http://genome.sph.umich.edu/wiki/RareMETALS2")
8695 (synopsis "Analyze gene-level association tests for binary trait")
8696 (description
8697 "The R package rareMETALS2 is an extension of the R package rareMETALS.
8698 It was designed to meta-analyze gene-level association tests for binary trait.
8699 While rareMETALS offers a near-complete solution for meta-analysis of
8700 gene-level tests for quantitative trait, it does not offer the optimal
8701 solution for binary trait. The package rareMETALS2 offers improved features
8702 for analyzing gene-level association tests in meta-analyses for binary
8703 trait.")
8704 (license license:gpl3)))
8705
8706 (define-public r-maldiquant
8707 (package
8708 (name "r-maldiquant")
8709 (version "1.16.2")
8710 (source
8711 (origin
8712 (method url-fetch)
8713 (uri (cran-uri "MALDIquant" version))
8714 (sha256
8715 (base32
8716 "0z5srzsfgsgi4bssr4chls4ry6d18y2g9143znqmraylppwrrqzr"))))
8717 (properties `((upstream-name . "MALDIquant")))
8718 (build-system r-build-system)
8719 (home-page "http://cran.r-project.org/web/packages/MALDIquant")
8720 (synopsis "Quantitative analysis of mass spectrometry data")
8721 (description
8722 "This package provides a complete analysis pipeline for matrix-assisted
8723 laser desorption/ionization-time-of-flight (MALDI-TOF) and other
8724 two-dimensional mass spectrometry data. In addition to commonly used plotting
8725 and processing methods it includes distinctive features, namely baseline
8726 subtraction methods such as morphological filters (TopHat) or the
8727 statistics-sensitive non-linear iterative peak-clipping algorithm (SNIP), peak
8728 alignment using warping functions, handling of replicated measurements as well
8729 as allowing spectra with different resolutions.")
8730 (license license:gpl3+)))
8731
8732 (define-public r-protgenerics
8733 (package
8734 (name "r-protgenerics")
8735 (version "1.8.0")
8736 (source
8737 (origin
8738 (method url-fetch)
8739 (uri (bioconductor-uri "ProtGenerics" version))
8740 (sha256
8741 (base32
8742 "08idb3rvxn4fl7rd66jasyqz47cb76dbc3968r1g26jr2ci3w1pl"))))
8743 (properties `((upstream-name . "ProtGenerics")))
8744 (build-system r-build-system)
8745 (home-page "https://github.com/lgatto/ProtGenerics")
8746 (synopsis "S4 generic functions for proteomics infrastructure")
8747 (description
8748 "This package provides S4 generic functions needed by Bioconductor
8749 proteomics packages.")
8750 (license license:artistic2.0)))
8751
8752 (define-public r-mzr
8753 (package
8754 (name "r-mzr")
8755 (version "2.10.0")
8756 (source
8757 (origin
8758 (method url-fetch)
8759 (uri (bioconductor-uri "mzR" version))
8760 (sha256
8761 (base32
8762 "1zir46h320n2vbrky6q3m8l221f3wdjlfsnx4ak9xca5min24xm7"))))
8763 (properties `((upstream-name . "mzR")))
8764 (build-system r-build-system)
8765 (inputs
8766 `(("netcdf" ,netcdf)))
8767 (propagated-inputs
8768 `(("r-biobase" ,r-biobase)
8769 ("r-biocgenerics" ,r-biocgenerics)
8770 ("r-protgenerics" ,r-protgenerics)
8771 ("r-rcpp" ,r-rcpp)
8772 ("r-zlibbioc" ,r-zlibbioc)))
8773 (home-page "https://github.com/sneumann/mzR/")
8774 (synopsis "Parser for mass spectrometry data files")
8775 (description
8776 "The mzR package provides a unified API to the common file formats and
8777 parsers available for mass spectrometry data. It comes with a wrapper for the
8778 ISB random access parser for mass spectrometry mzXML, mzData and mzML files.
8779 The package contains the original code written by the ISB, and a subset of the
8780 proteowizard library for mzML and mzIdentML. The netCDF reading code has
8781 previously been used in XCMS.")
8782 (license license:artistic2.0)))
8783
8784 (define-public r-affyio
8785 (package
8786 (name "r-affyio")
8787 (version "1.46.0")
8788 (source
8789 (origin
8790 (method url-fetch)
8791 (uri (bioconductor-uri "affyio" version))
8792 (sha256
8793 (base32
8794 "13w6al9296q916w0w6ngbsk25b21ahla1b6n40fcqhbvhyfii6sj"))))
8795 (build-system r-build-system)
8796 (propagated-inputs
8797 `(("r-zlibbioc" ,r-zlibbioc)))
8798 (inputs
8799 `(("zlib" ,zlib)))
8800 (home-page "https://github.com/bmbolstad/affyio")
8801 (synopsis "Tools for parsing Affymetrix data files")
8802 (description
8803 "This package provides routines for parsing Affymetrix data files based
8804 upon file format information. The primary focus is on accessing the CEL and
8805 CDF file formats.")
8806 (license license:lgpl2.0+)))
8807
8808 (define-public r-affy
8809 (package
8810 (name "r-affy")
8811 (version "1.54.0")
8812 (source
8813 (origin
8814 (method url-fetch)
8815 (uri (bioconductor-uri "affy" version))
8816 (sha256
8817 (base32
8818 "0azwg2qxzgflr1rjvbdln5i5rbcr9gs36kqlacd9cwl1szb9ad3m"))))
8819 (build-system r-build-system)
8820 (propagated-inputs
8821 `(("r-affyio" ,r-affyio)
8822 ("r-biobase" ,r-biobase)
8823 ("r-biocgenerics" ,r-biocgenerics)
8824 ("r-biocinstaller" ,r-biocinstaller)
8825 ("r-preprocesscore" ,r-preprocesscore)
8826 ("r-zlibbioc" ,r-zlibbioc)))
8827 (home-page "http://bioconductor.org/packages/affy")
8828 (synopsis "Methods for affymetrix oligonucleotide arrays")
8829 (description
8830 "This package contains functions for exploratory oligonucleotide array
8831 analysis.")
8832 (license license:lgpl2.0+)))
8833
8834 (define-public r-vsn
8835 (package
8836 (name "r-vsn")
8837 (version "3.44.0")
8838 (source
8839 (origin
8840 (method url-fetch)
8841 (uri (bioconductor-uri "vsn" version))
8842 (sha256
8843 (base32
8844 "0qhg3a4sc62pfdxcpvmk831rk138xh4zx4f1s39jhxpqqhmr7jvk"))))
8845 (build-system r-build-system)
8846 (propagated-inputs
8847 `(("r-affy" ,r-affy)
8848 ("r-biobase" ,r-biobase)
8849 ("r-ggplot2" ,r-ggplot2)
8850 ("r-hexbin" ,r-hexbin)
8851 ("r-lattice" ,r-lattice)
8852 ("r-limma" ,r-limma)))
8853 (home-page "http://bioconductor.org/packages/release/bioc/html/vsn.html")
8854 (synopsis "Variance stabilization and calibration for microarray data")
8855 (description
8856 "The package implements a method for normalising microarray intensities,
8857 and works for single- and multiple-color arrays. It can also be used for data
8858 from other technologies, as long as they have similar format. The method uses
8859 a robust variant of the maximum-likelihood estimator for an
8860 additive-multiplicative error model and affine calibration. The model
8861 incorporates data calibration step (a.k.a. normalization), a model for the
8862 dependence of the variance on the mean intensity and a variance stabilizing
8863 data transformation. Differences between transformed intensities are
8864 analogous to \"normalized log-ratios\". However, in contrast to the latter,
8865 their variance is independent of the mean, and they are usually more sensitive
8866 and specific in detecting differential transcription.")
8867 (license license:artistic2.0)))
8868
8869 (define-public r-mzid
8870 (package
8871 (name "r-mzid")
8872 (version "1.14.0")
8873 (source
8874 (origin
8875 (method url-fetch)
8876 (uri (bioconductor-uri "mzID" version))
8877 (sha256
8878 (base32
8879 "11xnild02jz24vbsfy92lb7jlqqwnrswg66a7r4rsw8d2ibrbk33"))))
8880 (properties `((upstream-name . "mzID")))
8881 (build-system r-build-system)
8882 (propagated-inputs
8883 `(("r-doparallel" ,r-doparallel)
8884 ("r-foreach" ,r-foreach)
8885 ("r-iterators" ,r-iterators)
8886 ("r-plyr" ,r-plyr)
8887 ("r-protgenerics" ,r-protgenerics)
8888 ("r-rcpp" ,r-rcpp)
8889 ("r-xml" ,r-xml)))
8890 (home-page "http://bioconductor.org/packages/mzID")
8891 (synopsis "Parser for mzIdentML files")
8892 (description
8893 "This package provides a parser for mzIdentML files implemented using the
8894 XML package. The parser tries to be general and able to handle all types of
8895 mzIdentML files with the drawback of having less pretty output than a vendor
8896 specific parser.")
8897 (license license:gpl2+)))
8898
8899 (define-public r-pcamethods
8900 (package
8901 (name "r-pcamethods")
8902 (version "1.68.0")
8903 (source
8904 (origin
8905 (method url-fetch)
8906 (uri (bioconductor-uri "pcaMethods" version))
8907 (sha256
8908 (base32
8909 "0c4lphqyzj577ws4s172391cgv00s5nhy152zp18k2k4diyhq6n0"))))
8910 (properties `((upstream-name . "pcaMethods")))
8911 (build-system r-build-system)
8912 (propagated-inputs
8913 `(("r-biobase" ,r-biobase)
8914 ("r-biocgenerics" ,r-biocgenerics)
8915 ("r-mass" ,r-mass)
8916 ("r-rcpp" ,r-rcpp)))
8917 (home-page "https://github.com/hredestig/pcamethods")
8918 (synopsis "Collection of PCA methods")
8919 (description
8920 "This package provides Bayesian PCA, Probabilistic PCA, Nipals PCA,
8921 Inverse Non-Linear PCA and the conventional SVD PCA. A cluster based method
8922 for missing value estimation is included for comparison. BPCA, PPCA and
8923 NipalsPCA may be used to perform PCA on incomplete data as well as for
8924 accurate missing value estimation. A set of methods for printing and plotting
8925 the results is also provided. All PCA methods make use of the same data
8926 structure (pcaRes) to provide a common interface to the PCA results.")
8927 (license license:gpl3+)))
8928
8929 (define-public r-msnbase
8930 (package
8931 (name "r-msnbase")
8932 (version "2.2.0")
8933 (source
8934 (origin
8935 (method url-fetch)
8936 (uri (bioconductor-uri "MSnbase" version))
8937 (sha256
8938 (base32
8939 "1n9bbdlp8d8bx2mqby0c4yylz1yil42scbkxqgyrfr9s5sn6dqff"))))
8940 (properties `((upstream-name . "MSnbase")))
8941 (build-system r-build-system)
8942 (propagated-inputs
8943 `(("r-affy" ,r-affy)
8944 ("r-biobase" ,r-biobase)
8945 ("r-biocgenerics" ,r-biocgenerics)
8946 ("r-biocparallel" ,r-biocparallel)
8947 ("r-digest" ,r-digest)
8948 ("r-ggplot2" ,r-ggplot2)
8949 ("r-impute" ,r-impute)
8950 ("r-iranges" ,r-iranges)
8951 ("r-maldiquant" ,r-maldiquant)
8952 ("r-mzid" ,r-mzid)
8953 ("r-mzr" ,r-mzr)
8954 ("r-pcamethods" ,r-pcamethods)
8955 ("r-plyr" ,r-plyr)
8956 ("r-preprocesscore" ,r-preprocesscore)
8957 ("r-protgenerics" ,r-protgenerics)
8958 ("r-rcpp" ,r-rcpp)
8959 ("r-reshape2" ,r-reshape2)
8960 ("r-s4vectors" ,r-s4vectors)
8961 ("r-vsn" ,r-vsn)
8962 ("r-xml" ,r-xml)))
8963 (home-page "https://github.com/lgatto/MSnbase")
8964 (synopsis "Base functions and classes for MS-based proteomics")
8965 (description
8966 "This package provides basic plotting, data manipulation and processing
8967 of mass spectrometry based proteomics data.")
8968 (license license:artistic2.0)))
8969
8970 (define-public r-msnid
8971 (package
8972 (name "r-msnid")
8973 (version "1.10.0")
8974 (source
8975 (origin
8976 (method url-fetch)
8977 (uri (bioconductor-uri "MSnID" version))
8978 (sha256
8979 (base32
8980 "0pjwargi5lif8q53fd43ql67p3yk9w10jychafd9qgbaw5k3f68k"))))
8981 (properties `((upstream-name . "MSnID")))
8982 (build-system r-build-system)
8983 (propagated-inputs
8984 `(("r-biobase" ,r-biobase)
8985 ("r-data-table" ,r-data-table)
8986 ("r-doparallel" ,r-doparallel)
8987 ("r-dplyr" ,r-dplyr)
8988 ("r-foreach" ,r-foreach)
8989 ("r-iterators" ,r-iterators)
8990 ("r-msnbase" ,r-msnbase)
8991 ("r-mzid" ,r-mzid)
8992 ("r-mzr" ,r-mzr)
8993 ("r-protgenerics" ,r-protgenerics)
8994 ("r-r-cache" ,r-r-cache)
8995 ("r-rcpp" ,r-rcpp)
8996 ("r-reshape2" ,r-reshape2)))
8997 (home-page "http://bioconductor.org/packages/MSnID")
8998 (synopsis "Utilities for LC-MSn proteomics identifications")
8999 (description
9000 "This package extracts @dfn{tandem mass spectrometry} (MS/MS) ID data
9001 from mzIdentML (leveraging the mzID package) or text files. After collating
9002 the search results from multiple datasets it assesses their identification
9003 quality and optimize filtering criteria to achieve the maximum number of
9004 identifications while not exceeding a specified false discovery rate. It also
9005 contains a number of utilities to explore the MS/MS results and assess missed
9006 and irregular enzymatic cleavages, mass measurement accuracy, etc.")
9007 (license license:artistic2.0)))
9008
9009 (define-public r-seurat
9010 ;; Source releases are only made for new x.0 versions. All newer versions
9011 ;; are only released as pre-built binaries. At the time of this writing the
9012 ;; latest binary release is 1.4.0.12, which is equivalent to this commit.
9013 (let ((commit "fccb77d1452c35ee47e47ebf8e87bddb59f3b08d")
9014 (revision "1"))
9015 (package
9016 (name "r-seurat")
9017 (version (string-append "1.4.0.12-" revision "." (string-take commit 7)))
9018 (source (origin
9019 (method git-fetch)
9020 (uri (git-reference
9021 (url "https://github.com/satijalab/seurat")
9022 (commit commit)))
9023 (file-name (string-append name "-" version "-checkout"))
9024 (sha256
9025 (base32
9026 "101wq3aqrdmbfi3lqmq4iivk9iwbf10d4z216ss25hf7n9091cyl"))
9027 ;; Delete pre-built jar.
9028 (snippet
9029 '(begin (delete-file "inst/java/ModularityOptimizer.jar")
9030 #t))))
9031 (build-system r-build-system)
9032 (arguments
9033 `(#:phases
9034 (modify-phases %standard-phases
9035 (add-after 'unpack 'build-jar
9036 (lambda* (#:key inputs #:allow-other-keys)
9037 (let ((classesdir "tmp-classes"))
9038 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
9039 (mkdir classesdir)
9040 (and (zero? (apply system* `("javac" "-d" ,classesdir
9041 ,@(find-files "java" "\\.java$"))))
9042 (zero? (system* "jar"
9043 "-cf" "inst/java/ModularityOptimizer.jar"
9044 "-C" classesdir ".")))))))))
9045 (native-inputs
9046 `(("jdk" ,icedtea "jdk")))
9047 (propagated-inputs
9048 `(("r-ape" ,r-ape)
9049 ("r-caret" ,r-caret)
9050 ("r-cowplot" ,r-cowplot)
9051 ("r-dplyr" ,r-dplyr)
9052 ("r-fastica" ,r-fastica)
9053 ("r-fnn" ,r-fnn)
9054 ("r-fpc" ,r-fpc)
9055 ("r-gdata" ,r-gdata)
9056 ("r-ggplot2" ,r-ggplot2)
9057 ("r-gplots" ,r-gplots)
9058 ("r-gridextra" ,r-gridextra)
9059 ("r-igraph" ,r-igraph)
9060 ("r-irlba" ,r-irlba)
9061 ("r-lars" ,r-lars)
9062 ("r-mixtools" ,r-mixtools)
9063 ("r-pbapply" ,r-pbapply)
9064 ("r-plyr" ,r-plyr)
9065 ("r-ranger" ,r-ranger)
9066 ("r-rcolorbrewer" ,r-rcolorbrewer)
9067 ("r-rcpp" ,r-rcpp)
9068 ("r-rcppeigen" ,r-rcppeigen)
9069 ("r-rcppprogress" ,r-rcppprogress)
9070 ("r-reshape2" ,r-reshape2)
9071 ("r-rocr" ,r-rocr)
9072 ("r-rtsne" ,r-rtsne)
9073 ("r-stringr" ,r-stringr)
9074 ("r-tclust" ,r-tclust)
9075 ("r-tsne" ,r-tsne)
9076 ("r-vgam" ,r-vgam)))
9077 (home-page "http://www.satijalab.org/seurat")
9078 (synopsis "Seurat is an R toolkit for single cell genomics")
9079 (description
9080 "This package is an R package designed for QC, analysis, and
9081 exploration of single cell RNA-seq data. It easily enables widely-used
9082 analytical techniques, including the identification of highly variable genes,
9083 dimensionality reduction; PCA, ICA, t-SNE, standard unsupervised clustering
9084 algorithms; density clustering, hierarchical clustering, k-means, and the
9085 discovery of differentially expressed genes and markers.")
9086 (license license:gpl3))))
9087
9088 (define-public r-aroma-light
9089 (package
9090 (name "r-aroma-light")
9091 (version "3.6.0")
9092 (source
9093 (origin
9094 (method url-fetch)
9095 (uri (bioconductor-uri "aroma.light" version))
9096 (sha256
9097 (base32
9098 "10snykmmx36qaymyf5s1n1km8hsscyzpykcpf0mzsrcv8ml9rp8a"))))
9099 (properties `((upstream-name . "aroma.light")))
9100 (build-system r-build-system)
9101 (propagated-inputs
9102 `(("r-matrixstats" ,r-matrixstats)
9103 ("r-r-methodss3" ,r-r-methodss3)
9104 ("r-r-oo" ,r-r-oo)
9105 ("r-r-utils" ,r-r-utils)))
9106 (home-page "https://github.com/HenrikBengtsson/aroma.light")
9107 (synopsis "Methods for normalization and visualization of microarray data")
9108 (description
9109 "This package provides methods for microarray analysis that take basic
9110 data types such as matrices and lists of vectors. These methods can be used
9111 standalone, be utilized in other packages, or be wrapped up in higher-level
9112 classes.")
9113 (license license:gpl2+)))
9114
9115 (define-public r-deseq
9116 (package
9117 (name "r-deseq")
9118 (version "1.28.0")
9119 (source
9120 (origin
9121 (method url-fetch)
9122 (uri (bioconductor-uri "DESeq" version))
9123 (sha256
9124 (base32
9125 "0j3dgcxd64m9qknmlcbdzvg4xhp981xd6nbwsvnqjfn6yypslgyw"))))
9126 (properties `((upstream-name . "DESeq")))
9127 (build-system r-build-system)
9128 (propagated-inputs
9129 `(("r-biobase" ,r-biobase)
9130 ("r-biocgenerics" ,r-biocgenerics)
9131 ("r-genefilter" ,r-genefilter)
9132 ("r-geneplotter" ,r-geneplotter)
9133 ("r-lattice" ,r-lattice)
9134 ("r-locfit" ,r-locfit)
9135 ("r-mass" ,r-mass)
9136 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9137 (home-page "http://www-huber.embl.de/users/anders/DESeq")
9138 (synopsis "Differential gene expression analysis")
9139 (description
9140 "This package provides tools for estimating variance-mean dependence in
9141 count data from high-throughput genetic sequencing assays and for testing for
9142 differential expression based on a model using the negative binomial
9143 distribution.")
9144 (license license:gpl3+)))
9145
9146 (define-public r-edaseq
9147 (package
9148 (name "r-edaseq")
9149 (version "2.10.0")
9150 (source
9151 (origin
9152 (method url-fetch)
9153 (uri (bioconductor-uri "EDASeq" version))
9154 (sha256
9155 (base32
9156 "0f25dfc8hdii9fjm3bf89vy9jkxv23sa62fkcga5b4gkipwrvm9a"))))
9157 (properties `((upstream-name . "EDASeq")))
9158 (build-system r-build-system)
9159 (propagated-inputs
9160 `(("r-annotationdbi" ,r-annotationdbi)
9161 ("r-aroma-light" ,r-aroma-light)
9162 ("r-biobase" ,r-biobase)
9163 ("r-biocgenerics" ,r-biocgenerics)
9164 ("r-biomart" ,r-biomart)
9165 ("r-biostrings" ,r-biostrings)
9166 ("r-deseq" ,r-deseq)
9167 ("r-genomicfeatures" ,r-genomicfeatures)
9168 ("r-genomicranges" ,r-genomicranges)
9169 ("r-iranges" ,r-iranges)
9170 ("r-rsamtools" ,r-rsamtools)
9171 ("r-shortread" ,r-shortread)))
9172 (home-page "https://github.com/drisso/EDASeq")
9173 (synopsis "Exploratory data analysis and normalization for RNA-Seq")
9174 (description
9175 "This package provides support for numerical and graphical summaries of
9176 RNA-Seq genomic read data. Provided within-lane normalization procedures to
9177 adjust for GC-content effect (or other gene-level effects) on read counts:
9178 loess robust local regression, global-scaling, and full-quantile
9179 normalization. Between-lane normalization procedures to adjust for
9180 distributional differences between lanes (e.g., sequencing depth):
9181 global-scaling and full-quantile normalization.")
9182 (license license:artistic2.0)))
9183
9184 (define htslib-for-sambamba
9185 (let ((commit "2f3c3ea7b301f9b45737a793c0b2dcf0240e5ee5"))
9186 (package
9187 (inherit htslib)
9188 (name "htslib-for-sambamba")
9189 (version (string-append "1.3.1-1." (string-take commit 9)))
9190 (source
9191 (origin
9192 (method git-fetch)
9193 (uri (git-reference
9194 (url "https://github.com/lomereiter/htslib.git")
9195 (commit commit)))
9196 (file-name (string-append "htslib-" version "-checkout"))
9197 (sha256
9198 (base32
9199 "0g38g8s3npr0gjm9fahlbhiskyfws9l5i0x1ml3rakzj7az5l9c9"))))
9200 (arguments
9201 (substitute-keyword-arguments (package-arguments htslib)
9202 ((#:phases phases)
9203 `(modify-phases ,phases
9204 (add-before 'configure 'bootstrap
9205 (lambda _
9206 (zero? (system* "autoreconf" "-vif"))))))))
9207 (native-inputs
9208 `(("autoconf" ,autoconf)
9209 ("automake" ,automake)
9210 ,@(package-native-inputs htslib))))))
9211
9212 (define-public sambamba
9213 (package
9214 (name "sambamba")
9215 (version "0.6.5")
9216 (source
9217 (origin
9218 (method url-fetch)
9219 (uri (string-append "https://github.com/lomereiter/sambamba/"
9220 "archive/v" version ".tar.gz"))
9221 (file-name (string-append name "-" version ".tar.gz"))
9222 (sha256
9223 (base32
9224 "17076gijd65a3f07zns2gvbgahiz5lriwsa6dq353ss3jl85d8vy"))))
9225 (build-system gnu-build-system)
9226 (arguments
9227 `(#:tests? #f ; there is no test target
9228 #:make-flags
9229 '("D_COMPILER=ldc2"
9230 ;; Override "--compiler" flag only.
9231 "D_FLAGS=--compiler=ldc2 -IBioD -g -d"
9232 "sambamba-ldmd2-64")
9233 #:phases
9234 (modify-phases %standard-phases
9235 (delete 'configure)
9236 (add-after 'unpack 'place-biod
9237 (lambda* (#:key inputs #:allow-other-keys)
9238 (copy-recursively (assoc-ref inputs "biod") "BioD")
9239 #t))
9240 (add-after 'unpack 'unbundle-prerequisites
9241 (lambda _
9242 (substitute* "Makefile"
9243 ((" htslib-static lz4-static") ""))
9244 #t))
9245 (replace 'install
9246 (lambda* (#:key outputs #:allow-other-keys)
9247 (let* ((out (assoc-ref outputs "out"))
9248 (bin (string-append out "/bin")))
9249 (mkdir-p bin)
9250 (install-file "build/sambamba" bin)
9251 #t))))))
9252 (native-inputs
9253 `(("ldc" ,ldc)
9254 ("rdmd" ,rdmd)
9255 ("biod"
9256 ,(let ((commit "1248586b54af4bd4dfb28ebfebfc6bf012e7a587"))
9257 (origin
9258 (method git-fetch)
9259 (uri (git-reference
9260 (url "https://github.com/biod/BioD.git")
9261 (commit commit)))
9262 (file-name (string-append "biod-"
9263 (string-take commit 9)
9264 "-checkout"))
9265 (sha256
9266 (base32
9267 "1m8hi1n7x0ri4l6s9i0x6jg4z4v94xrfdzp7mbizdipfag0m17g3")))))))
9268 (inputs
9269 `(("lz4" ,lz4)
9270 ("htslib" ,htslib-for-sambamba)))
9271 (home-page "http://lomereiter.github.io/sambamba")
9272 (synopsis "Tools for working with SAM/BAM data")
9273 (description "Sambamba is a high performance modern robust and
9274 fast tool (and library), written in the D programming language, for
9275 working with SAM and BAM files. Current parallelised functionality is
9276 an important subset of samtools functionality, including view, index,
9277 sort, markdup, and depth.")
9278 (license license:gpl2+)))
9279
9280 (define-public ritornello
9281 (package
9282 (name "ritornello")
9283 (version "1.0.0")
9284 (source (origin
9285 (method url-fetch)
9286 (uri (string-append "https://github.com/KlugerLab/"
9287 "Ritornello/archive/v"
9288 version ".tar.gz"))
9289 (file-name (string-append name "-" version ".tar.gz"))
9290 (sha256
9291 (base32
9292 "02nik86gq9ljjriv6pamwlmqnfky3ads1fpklx6mc3hx6k40pg38"))))
9293 (build-system gnu-build-system)
9294 (arguments
9295 `(#:tests? #f ; there are no tests
9296 #:phases
9297 (modify-phases %standard-phases
9298 (add-after 'unpack 'patch-samtools-references
9299 (lambda* (#:key inputs #:allow-other-keys)
9300 (substitute* '("src/SamStream.h"
9301 "src/BufferedGenomeReader.h")
9302 (("<sam.h>") "<samtools/sam.h>"))
9303 #t))
9304 (delete 'configure)
9305 (replace 'install
9306 (lambda* (#:key inputs outputs #:allow-other-keys)
9307 (let* ((out (assoc-ref outputs "out"))
9308 (bin (string-append out "/bin/")))
9309 (mkdir-p bin)
9310 (install-file "bin/Ritornello" bin)
9311 #t))))))
9312 (inputs
9313 `(("samtools" ,samtools-0.1)
9314 ("fftw" ,fftw)
9315 ("boost" ,boost)
9316 ("zlib" ,zlib)))
9317 (home-page "https://github.com/KlugerLab/Ritornello")
9318 (synopsis "Control-free peak caller for ChIP-seq data")
9319 (description "Ritornello is a ChIP-seq peak calling algorithm based on
9320 signal processing that can accurately call binding events without the need to
9321 do a pair total DNA input or IgG control sample. It has been tested for use
9322 with narrow binding events such as transcription factor ChIP-seq.")
9323 (license license:gpl3+)))
9324
9325 (define-public trim-galore
9326 (package
9327 (name "trim-galore")
9328 (version "0.4.2")
9329 (source
9330 (origin
9331 (method url-fetch)
9332 (uri (string-append "http://www.bioinformatics.babraham.ac.uk/"
9333 "projects/trim_galore/trim_galore_v"
9334 version ".zip"))
9335 (sha256
9336 (base32
9337 "0b9qdxi4521gsrjvbhgky8g7kry9b5nx3byzaxkgxz7p4k8bn1mn"))))
9338 (build-system gnu-build-system)
9339 (arguments
9340 `(#:tests? #f ; no tests
9341 #:phases
9342 (modify-phases %standard-phases
9343 ;; The archive contains plain files.
9344 (replace 'unpack
9345 (lambda* (#:key source #:allow-other-keys)
9346 (zero? (system* "unzip" source))))
9347 (delete 'configure)
9348 (delete 'build)
9349 (add-after 'unpack 'hardcode-tool-references
9350 (lambda* (#:key inputs #:allow-other-keys)
9351 (substitute* "trim_galore"
9352 (("\\$path_to_cutadapt = 'cutadapt'")
9353 (string-append "$path_to_cutadapt = '"
9354 (assoc-ref inputs "cutadapt")
9355 "/bin/cutadapt'"))
9356 (("\\| gzip")
9357 (string-append "| "
9358 (assoc-ref inputs "gzip")
9359 "/bin/gzip"))
9360 (("\"gunzip")
9361 (string-append "\""
9362 (assoc-ref inputs "gzip")
9363 "/bin/gunzip")))
9364 #t))
9365 (replace 'install
9366 (lambda* (#:key outputs #:allow-other-keys)
9367 (let ((bin (string-append (assoc-ref outputs "out")
9368 "/bin")))
9369 (mkdir-p bin)
9370 (install-file "trim_galore" bin)
9371 #t))))))
9372 (inputs
9373 `(("gzip" ,gzip)
9374 ("perl" ,perl)
9375 ("cutadapt" ,cutadapt)))
9376 (native-inputs
9377 `(("unzip" ,unzip)))
9378 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/trim_galore/")
9379 (synopsis "Wrapper around Cutadapt and FastQC")
9380 (description "Trim Galore! is a wrapper script to automate quality and
9381 adapter trimming as well as quality control, with some added functionality to
9382 remove biased methylation positions for RRBS sequence files.")
9383 (license license:gpl3+)))
9384
9385 (define-public gess
9386 (package
9387 (name "gess")
9388 (version "1.0")
9389 (source (origin
9390 (method url-fetch)
9391 (uri (string-append "http://compbio.uthscsa.edu/"
9392 "GESS_Web/files/"
9393 "gess-" version ".src.tar.gz"))
9394 (sha256
9395 (base32
9396 "0hyk403kxscclzfs24pvdgiv0wm03kjcziqdrp5w46cb049gz0d7"))))
9397 (build-system gnu-build-system)
9398 (arguments
9399 `(#:tests? #f ; no tests
9400 #:phases
9401 (modify-phases %standard-phases
9402 (delete 'configure)
9403 (delete 'build)
9404 (replace 'install
9405 (lambda* (#:key inputs outputs #:allow-other-keys)
9406 (let* ((python (assoc-ref inputs "python"))
9407 (out (assoc-ref outputs "out"))
9408 (bin (string-append out "/bin/"))
9409 (target (string-append
9410 out "/lib/python2.7/site-packages/gess/")))
9411 (mkdir-p target)
9412 (copy-recursively "." target)
9413 ;; Make GESS.py executable
9414 (chmod (string-append target "GESS.py") #o555)
9415 ;; Add Python shebang to the top and make Matplotlib
9416 ;; usable.
9417 (substitute* (string-append target "GESS.py")
9418 (("\"\"\"Description:" line)
9419 (string-append "#!" (which "python") "
9420 import matplotlib
9421 matplotlib.use('Agg')
9422 " line)))
9423 ;; Make sure GESS has all modules in its path
9424 (wrap-program (string-append target "GESS.py")
9425 `("PYTHONPATH" ":" prefix (,target ,(getenv "PYTHONPATH"))))
9426 (mkdir-p bin)
9427 (symlink (string-append target "GESS.py")
9428 (string-append bin "GESS.py"))
9429 #t))))))
9430 (inputs
9431 `(("python" ,python-2)
9432 ("python2-pysam" ,python2-pysam)
9433 ("python2-scipy" ,python2-scipy)
9434 ("python2-numpy" ,python2-numpy)
9435 ("python2-networkx" ,python2-networkx)
9436 ("python2-biopython" ,python2-biopython)))
9437 (home-page "http://compbio.uthscsa.edu/GESS_Web/")
9438 (synopsis "Detect exon-skipping events from raw RNA-seq data")
9439 (description
9440 "GESS is an implementation of a novel computational method to detect de
9441 novo exon-skipping events directly from raw RNA-seq data without the prior
9442 knowledge of gene annotation information. GESS stands for the graph-based
9443 exon-skipping scanner detection scheme.")
9444 (license license:bsd-3)))
9445
9446 (define-public phylip
9447 (package
9448 (name "phylip")
9449 (version "3.696")
9450 (source
9451 (origin
9452 (method url-fetch)
9453 (uri (string-append "http://evolution.gs.washington.edu/phylip/"
9454 "download/phylip-" version ".tar.gz"))
9455 (sha256
9456 (base32
9457 "01jar1rayhr2gba2pgbw49m56rc5z4p5wn3ds0m188hrlln4a2nd"))))
9458 (build-system gnu-build-system)
9459 (arguments
9460 `(#:tests? #f ; no check target
9461 #:make-flags (list "-f" "Makefile.unx" "install")
9462 #:parallel-build? #f ; not supported
9463 #:phases
9464 (modify-phases %standard-phases
9465 (add-after 'unpack 'enter-dir
9466 (lambda _ (chdir "src") #t))
9467 (delete 'configure)
9468 (replace 'install
9469 (lambda* (#:key inputs outputs #:allow-other-keys)
9470 (let ((target (string-append (assoc-ref outputs "out")
9471 "/bin")))
9472 (mkdir-p target)
9473 (for-each (lambda (file)
9474 (install-file file target))
9475 (find-files "../exe" ".*")))
9476 #t)))))
9477 (home-page "http://evolution.genetics.washington.edu/phylip/")
9478 (synopsis "Tools for inferring phylogenies")
9479 (description "PHYLIP (the PHYLogeny Inference Package) is a package of
9480 programs for inferring phylogenies (evolutionary trees).")
9481 (license license:bsd-2)))
9482
9483 (define-public imp
9484 (package
9485 (name "imp")
9486 (version "2.6.2")
9487 (source
9488 (origin
9489 (method url-fetch)
9490 (uri (string-append "https://integrativemodeling.org/"
9491 version "/download/imp-" version ".tar.gz"))
9492 (sha256
9493 (base32
9494 "0lxqx7vh79d771svr611dkilp6sn30qrbw8zvscbrm37v38d2j6h"))))
9495 (build-system cmake-build-system)
9496 (arguments
9497 `(;; FIXME: Some tests fail because they produce warnings, others fail
9498 ;; because the PYTHONPATH does not include the modeller's directory.
9499 #:tests? #f
9500 ;; Do not place libraries in an architecture-specific directory.
9501 #:configure-flags
9502 (list "-DCMAKE_INSTALL_LIBDIR=lib")))
9503 (inputs
9504 `(("boost" ,boost)
9505 ("gsl" ,gsl)
9506 ("swig" ,swig)
9507 ("hdf5" ,hdf5)
9508 ("fftw" ,fftw)
9509 ("python" ,python-2)))
9510 (propagated-inputs
9511 `(("python2-numpy" ,python2-numpy)
9512 ("python2-scipy" ,python2-scipy)
9513 ("python2-pandas" ,python2-pandas)
9514 ("python2-scikit-learn" ,python2-scikit-learn)
9515 ("python2-networkx" ,python2-networkx)))
9516 (home-page "https://integrativemodeling.org")
9517 (synopsis "Integrative modeling platform")
9518 (description "IMP's broad goal is to contribute to a comprehensive
9519 structural characterization of biomolecules ranging in size and complexity
9520 from small peptides to large macromolecular assemblies, by integrating data
9521 from diverse biochemical and biophysical experiments. IMP provides a C++ and
9522 Python toolbox for solving complex modeling problems, and a number of
9523 applications for tackling some common problems in a user-friendly way.")
9524 ;; IMP is largely available under the GNU Lesser GPL; see the file
9525 ;; COPYING.LGPL for the full text of this license. Some IMP modules are
9526 ;; available under the GNU GPL (see the file COPYING.GPL).
9527 (license (list license:lgpl2.1+
9528 license:gpl3+))))
9529
9530 (define-public tadbit
9531 (package
9532 (name "tadbit")
9533 (version "0.2")
9534 (source (origin
9535 (method url-fetch)
9536 (uri (string-append "https://github.com/3DGenomes/TADbit/"
9537 "archive/v" version ".tar.gz"))
9538 (file-name (string-append name "-" version ".tar.gz"))
9539 (sha256
9540 (base32
9541 "1cnfqrl4685zar4nnw94j94nhvl2h29jm448nadqi1h05z6fdk4f"))))
9542 (build-system python-build-system)
9543 (arguments
9544 `(;; Tests are included and must be run after installation, but
9545 ;; they are incomplete and thus cannot be run.
9546 #:tests? #f
9547 #:python ,python-2
9548 #:phases
9549 (modify-phases %standard-phases
9550 (add-after 'unpack 'fix-problems-with-setup.py
9551 (lambda* (#:key outputs #:allow-other-keys)
9552 ;; setup.py opens these files for writing
9553 (chmod "_pytadbit/_version.py" #o664)
9554 (chmod "README.rst" #o664)
9555
9556 ;; Don't attempt to install the bash completions to
9557 ;; the home directory.
9558 (rename-file "extras/.bash_completion"
9559 "extras/tadbit")
9560 (substitute* "setup.py"
9561 (("\\(path.expanduser\\('~'\\)")
9562 (string-append "(\""
9563 (assoc-ref outputs "out")
9564 "/etc/bash_completion.d\""))
9565 (("extras/\\.bash_completion")
9566 "extras/tadbit"))
9567 #t)))))
9568 (inputs
9569 ;; TODO: add Chimera for visualization
9570 `(("imp" ,imp)
9571 ("mcl" ,mcl)
9572 ("python2-scipy" ,python2-scipy)
9573 ("python2-numpy" ,python2-numpy)
9574 ("python2-matplotlib" ,python2-matplotlib)
9575 ("python2-pysam" ,python2-pysam)))
9576 (home-page "http://3dgenomes.github.io/TADbit/")
9577 (synopsis "Analyze, model, and explore 3C-based data")
9578 (description
9579 "TADbit is a complete Python library to deal with all steps to analyze,
9580 model, and explore 3C-based data. With TADbit the user can map FASTQ files to
9581 obtain raw interaction binned matrices (Hi-C like matrices), normalize and
9582 correct interaction matrices, identify and compare the so-called
9583 @dfn{Topologically Associating Domains} (TADs), build 3D models from the
9584 interaction matrices, and finally, extract structural properties from the
9585 models. TADbit is complemented by TADkit for visualizing 3D models.")
9586 (license license:gpl3+)))
9587
9588 (define-public kentutils
9589 (package
9590 (name "kentutils")
9591 ;; 302.1.0 is out, but the only difference is the inclusion of
9592 ;; pre-built binaries.
9593 (version "302.0.0")
9594 (source
9595 (origin
9596 (method url-fetch)
9597 (uri (string-append "https://github.com/ENCODE-DCC/kentUtils/"
9598 "archive/v" version ".tar.gz"))
9599 (file-name (string-append name "-" version ".tar.gz"))
9600 (sha256
9601 (base32
9602 "134aja3k1cj32kbk1nnw0q9gxjb2krr15q6sga8qldzvc0585rmm"))
9603 (modules '((guix build utils)
9604 (srfi srfi-26)
9605 (ice-9 ftw)))
9606 (snippet
9607 '(begin
9608 ;; Only the contents of the specified directories are free
9609 ;; for all uses, so we remove the rest. "hg/autoSql" and
9610 ;; "hg/autoXml" are nominally free, but they depend on a
9611 ;; library that is built from the sources in "hg/lib",
9612 ;; which is nonfree.
9613 (let ((free (list "." ".."
9614 "utils" "lib" "inc" "tagStorm"
9615 "parasol" "htslib"))
9616 (directory? (lambda (file)
9617 (eq? 'directory (stat:type (stat file))))))
9618 (for-each (lambda (file)
9619 (and (directory? file)
9620 (delete-file-recursively file)))
9621 (map (cut string-append "src/" <>)
9622 (scandir "src"
9623 (lambda (file)
9624 (not (member file free)))))))
9625 ;; Only make the utils target, not the userApps target,
9626 ;; because that requires libraries we won't build.
9627 (substitute* "Makefile"
9628 ((" userApps") " utils"))
9629 ;; Only build libraries that are free.
9630 (substitute* "src/makefile"
9631 (("DIRS =.*") "DIRS =\n")
9632 (("cd jkOwnLib.*") "")
9633 ((" hgLib") "")
9634 (("cd hg.*") ""))
9635 (substitute* "src/utils/makefile"
9636 ;; These tools depend on "jkhgap.a", which is part of the
9637 ;; nonfree "src/hg/lib" directory.
9638 (("raSqlQuery") "")
9639 (("pslLiftSubrangeBlat") "")
9640
9641 ;; Do not build UCSC tools, which may require nonfree
9642 ;; components.
9643 (("ALL_APPS =.*") "ALL_APPS = $(UTILS_APPLIST)\n"))
9644 #t))))
9645 (build-system gnu-build-system)
9646 (arguments
9647 `( ;; There is no global test target and the test target for
9648 ;; individual tools depends on input files that are not
9649 ;; included.
9650 #:tests? #f
9651 #:phases
9652 (modify-phases %standard-phases
9653 (add-after 'unpack 'fix-paths
9654 (lambda _
9655 (substitute* "Makefile"
9656 (("/bin/echo") (which "echo")))
9657 #t))
9658 (add-after 'unpack 'prepare-samtabix
9659 (lambda* (#:key inputs #:allow-other-keys)
9660 (copy-recursively (assoc-ref inputs "samtabix")
9661 "samtabix")
9662 #t))
9663 (delete 'configure)
9664 (replace 'install
9665 (lambda* (#:key outputs #:allow-other-keys)
9666 (let ((bin (string-append (assoc-ref outputs "out")
9667 "/bin")))
9668 (copy-recursively "bin" bin))
9669 #t)))))
9670 (native-inputs
9671 `(("samtabix"
9672 ,(origin
9673 (method git-fetch)
9674 (uri (git-reference
9675 (url "http://genome-source.cse.ucsc.edu/samtabix.git")
9676 (commit "10fd107909c1ac4d679299908be4262a012965ba")))
9677 (sha256
9678 (base32
9679 "0c1nj64l42v395sa84n7az43xiap4i6f9n9dfz4058aqiwkhkmma"))))))
9680 (inputs
9681 `(("zlib" ,zlib)
9682 ("tcsh" ,tcsh)
9683 ("perl" ,perl)
9684 ("libpng" ,libpng)
9685 ("mysql" ,mysql)
9686 ("openssl" ,openssl)))
9687 (home-page "http://genome.cse.ucsc.edu/index.html")
9688 (synopsis "Assorted bioinformatics utilities")
9689 (description "This package provides the kentUtils, a selection of
9690 bioinformatics utilities used in combination with the UCSC genome
9691 browser.")
9692 ;; Only a subset of the sources are released under a non-copyleft
9693 ;; free software license. All other sources are removed in a
9694 ;; snippet. See this bug report for an explanation of how the
9695 ;; license statements apply:
9696 ;; https://github.com/ENCODE-DCC/kentUtils/issues/12
9697 (license (license:non-copyleft
9698 "http://genome.ucsc.edu/license/"
9699 "The contents of this package are free for all uses."))))
9700
9701 (define-public f-seq
9702 (let ((commit "6ccded34cff38cf432deed8503648b4a66953f9b")
9703 (revision "1"))
9704 (package
9705 (name "f-seq")
9706 (version (string-append "1.1-" revision "." commit))
9707 (source (origin
9708 (method git-fetch)
9709 (uri (git-reference
9710 (url "https://github.com/aboyle/F-seq.git")
9711 (commit commit)))
9712 (file-name (string-append name "-" version))
9713 (sha256
9714 (base32
9715 "1nk33k0yajg2id4g59bc4szr58r2q6pdq42vgcw054m8ip9wv26h"))
9716 (modules '((guix build utils)))
9717 ;; Remove bundled Java library archives.
9718 (snippet
9719 '(begin
9720 (for-each delete-file (find-files "lib" ".*"))
9721 #t))))
9722 (build-system ant-build-system)
9723 (arguments
9724 `(#:tests? #f ; no tests included
9725 #:phases
9726 (modify-phases %standard-phases
9727 (replace 'install
9728 (lambda* (#:key outputs #:allow-other-keys)
9729 (let* ((target (assoc-ref outputs "out"))
9730 (doc (string-append target "/share/doc/f-seq/")))
9731 (mkdir-p target)
9732 (mkdir-p doc)
9733 (substitute* "bin/linux/fseq"
9734 (("java") (which "java")))
9735 (install-file "README.txt" doc)
9736 (install-file "bin/linux/fseq" (string-append target "/bin"))
9737 (install-file "build~/fseq.jar" (string-append target "/lib"))
9738 (copy-recursively "lib" (string-append target "/lib"))
9739 #t))))))
9740 (inputs
9741 `(("perl" ,perl)
9742 ("java-commons-cli" ,java-commons-cli)))
9743 (home-page "http://fureylab.web.unc.edu/software/fseq/")
9744 (synopsis "Feature density estimator for high-throughput sequence tags")
9745 (description
9746 "F-Seq is a software package that generates a continuous tag sequence
9747 density estimation allowing identification of biologically meaningful sites
9748 such as transcription factor binding sites (ChIP-seq) or regions of open
9749 chromatin (DNase-seq). Output can be displayed directly in the UCSC Genome
9750 Browser.")
9751 (license license:gpl3+))))