gnu: Add r-annotationfilter.
[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 cran)
52 #:use-module (gnu packages curl)
53 #:use-module (gnu packages documentation)
54 #:use-module (gnu packages databases)
55 #:use-module (gnu packages datastructures)
56 #:use-module (gnu packages file)
57 #:use-module (gnu packages flex)
58 #:use-module (gnu packages gawk)
59 #:use-module (gnu packages gcc)
60 #:use-module (gnu packages gd)
61 #:use-module (gnu packages gtk)
62 #:use-module (gnu packages glib)
63 #:use-module (gnu packages graph)
64 #:use-module (gnu packages groff)
65 #:use-module (gnu packages guile)
66 #:use-module (gnu packages haskell)
67 #:use-module (gnu packages image)
68 #:use-module (gnu packages imagemagick)
69 #:use-module (gnu packages java)
70 #:use-module (gnu packages ldc)
71 #:use-module (gnu packages linux)
72 #:use-module (gnu packages logging)
73 #:use-module (gnu packages machine-learning)
74 #:use-module (gnu packages man)
75 #:use-module (gnu packages maths)
76 #:use-module (gnu packages mpi)
77 #:use-module (gnu packages ncurses)
78 #:use-module (gnu packages ocaml)
79 #:use-module (gnu packages pcre)
80 #:use-module (gnu packages parallel)
81 #:use-module (gnu packages pdf)
82 #:use-module (gnu packages perl)
83 #:use-module (gnu packages pkg-config)
84 #:use-module (gnu packages popt)
85 #:use-module (gnu packages protobuf)
86 #:use-module (gnu packages python)
87 #:use-module (gnu packages readline)
88 #:use-module (gnu packages ruby)
89 #:use-module (gnu packages serialization)
90 #:use-module (gnu packages shells)
91 #:use-module (gnu packages statistics)
92 #:use-module (gnu packages swig)
93 #:use-module (gnu packages tbb)
94 #:use-module (gnu packages tex)
95 #:use-module (gnu packages texinfo)
96 #:use-module (gnu packages textutils)
97 #:use-module (gnu packages time)
98 #:use-module (gnu packages tls)
99 #:use-module (gnu packages vim)
100 #:use-module (gnu packages web)
101 #:use-module (gnu packages xml)
102 #:use-module (gnu packages xorg)
103 #:use-module (srfi srfi-1)
104 #:use-module (ice-9 match))
105
106 (define-public r-ape
107 (package
108 (name "r-ape")
109 (version "4.1")
110 (source
111 (origin
112 (method url-fetch)
113 (uri (cran-uri "ape" version))
114 (sha256
115 (base32
116 "0959fiiy11rzfzrzaknmgrx64bhszj02l0ycz79k5a6bmpfzanlk"))))
117 (build-system r-build-system)
118 (propagated-inputs
119 `(("r-lattice" ,r-lattice)
120 ("r-nlme" ,r-nlme)))
121 (home-page "http://ape-package.ird.fr/")
122 (synopsis "Analyses of phylogenetics and evolution")
123 (description
124 "This package provides functions for reading, writing, plotting, and
125 manipulating phylogenetic trees, analyses of comparative data in a
126 phylogenetic framework, ancestral character analyses, analyses of
127 diversification and macroevolution, computing distances from DNA sequences,
128 and several other tools.")
129 (license license:gpl2+)))
130
131 (define-public aragorn
132 (package
133 (name "aragorn")
134 (version "1.2.38")
135 (source (origin
136 (method url-fetch)
137 (uri (string-append
138 "http://mbio-serv2.mbioekol.lu.se/ARAGORN/Downloads/aragorn"
139 version ".tgz"))
140 (sha256
141 (base32
142 "09i1rg716smlbnixfm7q1ml2mfpaa2fpn3hwjg625ysmfwwy712b"))))
143 (build-system gnu-build-system)
144 (arguments
145 `(#:tests? #f ; there are no tests
146 #:phases
147 (modify-phases %standard-phases
148 (delete 'configure)
149 (replace 'build
150 (lambda _
151 (zero? (system* "gcc"
152 "-O3"
153 "-ffast-math"
154 "-finline-functions"
155 "-o"
156 "aragorn"
157 (string-append "aragorn" ,version ".c")))))
158 (replace 'install
159 (lambda* (#:key outputs #:allow-other-keys)
160 (let* ((out (assoc-ref outputs "out"))
161 (bin (string-append out "/bin"))
162 (man (string-append out "/share/man/man1")))
163 (mkdir-p bin)
164 (install-file "aragorn" bin)
165 (mkdir-p man)
166 (install-file "aragorn.1" man))
167 #t)))))
168 (home-page "http://mbio-serv2.mbioekol.lu.se/ARAGORN")
169 (synopsis "Detect tRNA, mtRNA and tmRNA genes in nucleotide sequences")
170 (description
171 "Aragorn identifies transfer RNA, mitochondrial RNA and
172 transfer-messenger RNA from nucleotide sequences, based on homology to known
173 tRNA consensus sequences and RNA structure. It also outputs the secondary
174 structure of the predicted RNA.")
175 (license license:gpl2)))
176
177 (define-public bamm
178 (package
179 (name "bamm")
180 (version "1.7.3")
181 (source (origin
182 (method url-fetch)
183 ;; BamM is not available on pypi.
184 (uri (string-append
185 "https://github.com/Ecogenomics/BamM/archive/"
186 version ".tar.gz"))
187 (file-name (string-append name "-" version ".tar.gz"))
188 (sha256
189 (base32
190 "1f35yxp4pc8aadsvbpg6r4kg2jh4fkjci0iby4iyljm6980sac0s"))
191 (modules '((guix build utils)))
192 (snippet
193 `(begin
194 ;; Delete bundled htslib.
195 (delete-file-recursively "c/htslib-1.3.1")
196 #t))))
197 (build-system python-build-system)
198 (arguments
199 `(#:python ,python-2 ; BamM is Python 2 only.
200 ;; Do not use bundled libhts. Do use the bundled libcfu because it has
201 ;; been modified from its original form.
202 #:configure-flags
203 (let ((htslib (assoc-ref %build-inputs "htslib")))
204 (list "--with-libhts-lib" (string-append htslib "/lib")
205 "--with-libhts-inc" (string-append htslib "/include/htslib")))
206 #:phases
207 (modify-phases %standard-phases
208 (add-after 'unpack 'autogen
209 (lambda _
210 (with-directory-excursion "c"
211 (let ((sh (which "sh")))
212 ;; Use autogen so that 'configure' works.
213 (substitute* "autogen.sh" (("/bin/sh") sh))
214 (setenv "CONFIG_SHELL" sh)
215 (substitute* "configure" (("/bin/sh") sh))
216 (zero? (system* "./autogen.sh"))))))
217 (delete 'build)
218 ;; Run tests after installation so compilation only happens once.
219 (delete 'check)
220 (add-after 'install 'wrap-executable
221 (lambda* (#:key outputs #:allow-other-keys)
222 (let* ((out (assoc-ref outputs "out"))
223 (path (getenv "PATH")))
224 (wrap-program (string-append out "/bin/bamm")
225 `("PATH" ":" prefix (,path))))
226 #t))
227 (add-after 'wrap-executable 'post-install-check
228 (lambda* (#:key inputs outputs #:allow-other-keys)
229 (setenv "PATH"
230 (string-append (assoc-ref outputs "out")
231 "/bin:"
232 (getenv "PATH")))
233 (setenv "PYTHONPATH"
234 (string-append
235 (assoc-ref outputs "out")
236 "/lib/python"
237 (string-take (string-take-right
238 (assoc-ref inputs "python") 5) 3)
239 "/site-packages:"
240 (getenv "PYTHONPATH")))
241 ;; There are 2 errors printed, but they are safe to ignore:
242 ;; 1) [E::hts_open_format] fail to open file ...
243 ;; 2) samtools view: failed to open ...
244 (zero? (system* "nosetests")))))))
245 (native-inputs
246 `(("autoconf" ,autoconf)
247 ("automake" ,automake)
248 ("libtool" ,libtool)
249 ("zlib" ,zlib)
250 ("python-nose" ,python2-nose)
251 ("python-pysam" ,python2-pysam)))
252 (inputs
253 `(("htslib" ,htslib-1.3) ; At least one test fails on htslib-1.4+.
254 ("samtools" ,samtools)
255 ("bwa" ,bwa)
256 ("grep" ,grep)
257 ("sed" ,sed)
258 ("coreutils" ,coreutils)))
259 (propagated-inputs
260 `(("python-numpy" ,python2-numpy)))
261 (home-page "http://ecogenomics.github.io/BamM/")
262 (synopsis "Metagenomics-focused BAM file manipulator")
263 (description
264 "BamM is a C library, wrapped in python, to efficiently generate and
265 parse BAM files, specifically for the analysis of metagenomic data. For
266 instance, it implements several methods to assess contig-wise read coverage.")
267 (license license:lgpl3+)))
268
269 (define-public bamtools
270 (package
271 (name "bamtools")
272 (version "2.4.1")
273 (source (origin
274 (method url-fetch)
275 (uri (string-append
276 "https://github.com/pezmaster31/bamtools/archive/v"
277 version ".tar.gz"))
278 (file-name (string-append name "-" version ".tar.gz"))
279 (sha256
280 (base32
281 "0jr024kcrhjb82cm69i7p5fcg5375zlc1h3qh2n1v368hcd0qflk"))))
282 (build-system cmake-build-system)
283 (arguments
284 `(#:tests? #f ;no "check" target
285 #:phases
286 (modify-phases %standard-phases
287 (add-before
288 'configure 'set-ldflags
289 (lambda* (#:key outputs #:allow-other-keys)
290 (setenv "LDFLAGS"
291 (string-append
292 "-Wl,-rpath="
293 (assoc-ref outputs "out") "/lib/bamtools")))))))
294 (inputs `(("zlib" ,zlib)))
295 (home-page "https://github.com/pezmaster31/bamtools")
296 (synopsis "C++ API and command-line toolkit for working with BAM data")
297 (description
298 "BamTools provides both a C++ API and a command-line toolkit for handling
299 BAM files.")
300 (license license:expat)))
301
302 (define-public bcftools
303 (package
304 (name "bcftools")
305 (version "1.5")
306 (source (origin
307 (method url-fetch)
308 (uri (string-append
309 "https://github.com/samtools/bcftools/releases/download/"
310 version "/bcftools-" version ".tar.bz2"))
311 (sha256
312 (base32
313 "0093hkkvxmbwfaa7905s6185jymynvg42kq6sxv7fili11l5mxwz"))
314 (patches (search-patches "bcftools-regidx-unsigned-char.patch"))
315 (modules '((guix build utils)))
316 (snippet
317 ;; Delete bundled htslib.
318 '(delete-file-recursively "htslib-1.5"))))
319 (build-system gnu-build-system)
320 (arguments
321 `(#:test-target "test"
322 #:configure-flags (list "--with-htslib=system")
323 #:make-flags
324 (list
325 "USE_GPL=1"
326 "LIBS=-lgsl -lgslcblas"
327 (string-append "prefix=" (assoc-ref %outputs "out"))
328 (string-append "HTSDIR=" (assoc-ref %build-inputs "htslib") "/include")
329 (string-append "HTSLIB=" (assoc-ref %build-inputs "htslib") "/lib/libhts.so")
330 (string-append "BGZIP=" (assoc-ref %build-inputs "htslib") "/bin/bgzip")
331 (string-append "TABIX=" (assoc-ref %build-inputs "htslib") "/bin/tabix")
332 (string-append "PACKAGE_VERSION=" ,version))
333 #:phases
334 (modify-phases %standard-phases
335 (add-before 'check 'patch-tests
336 (lambda _
337 (substitute* "test/test.pl"
338 (("/bin/bash") (which "bash")))
339 #t)))))
340 (native-inputs
341 `(("htslib" ,htslib)
342 ("perl" ,perl)))
343 (inputs
344 `(("gsl" ,gsl)
345 ("zlib" ,zlib)))
346 (home-page "https://samtools.github.io/bcftools/")
347 (synopsis "Utilities for variant calling and manipulating VCFs and BCFs")
348 (description
349 "BCFtools is a set of utilities that manipulate variant calls in the
350 Variant Call Format (VCF) and its binary counterpart BCF. All commands work
351 transparently with both VCFs and BCFs, both uncompressed and BGZF-compressed.")
352 ;; The sources are dual MIT/GPL, but becomes GPL-only when USE_GPL=1.
353 (license (list license:gpl3+ license:expat))))
354
355 (define-public bedops
356 (package
357 (name "bedops")
358 (version "2.4.14")
359 (source (origin
360 (method url-fetch)
361 (uri (string-append "https://github.com/bedops/bedops/archive/v"
362 version ".tar.gz"))
363 (file-name (string-append name "-" version ".tar.gz"))
364 (sha256
365 (base32
366 "1kqbac547wyqma81cyky9n7mkgikjpsfd3nnmcm6hpqwanqgh10v"))))
367 (build-system gnu-build-system)
368 (arguments
369 '(#:tests? #f
370 #:make-flags (list (string-append "BINDIR=" %output "/bin"))
371 #:phases
372 (alist-cons-after
373 'unpack 'unpack-tarballs
374 (lambda _
375 ;; FIXME: Bedops includes tarballs of minimally patched upstream
376 ;; libraries jansson, zlib, and bzip2. We cannot just use stock
377 ;; libraries because at least one of the libraries (zlib) is
378 ;; patched to add a C++ function definition (deflateInit2cpp).
379 ;; Until the Bedops developers offer a way to link against system
380 ;; libraries we have to build the in-tree copies of these three
381 ;; libraries.
382
383 ;; See upstream discussion:
384 ;; https://github.com/bedops/bedops/issues/124
385
386 ;; Unpack the tarballs to benefit from shebang patching.
387 (with-directory-excursion "third-party"
388 (and (zero? (system* "tar" "xvf" "jansson-2.6.tar.bz2"))
389 (zero? (system* "tar" "xvf" "zlib-1.2.7.tar.bz2"))
390 (zero? (system* "tar" "xvf" "bzip2-1.0.6.tar.bz2"))))
391 ;; Disable unpacking of tarballs in Makefile.
392 (substitute* "system.mk/Makefile.linux"
393 (("^\tbzcat .*") "\t@echo \"not unpacking\"\n")
394 (("\\./configure") "CONFIG_SHELL=bash ./configure"))
395 (substitute* "third-party/zlib-1.2.7/Makefile.in"
396 (("^SHELL=.*$") "SHELL=bash\n")))
397 (alist-delete 'configure %standard-phases))))
398 (home-page "https://github.com/bedops/bedops")
399 (synopsis "Tools for high-performance genomic feature operations")
400 (description
401 "BEDOPS is a suite of tools to address common questions raised in genomic
402 studies---mostly with regard to overlap and proximity relationships between
403 data sets. It aims to be scalable and flexible, facilitating the efficient
404 and accurate analysis and management of large-scale genomic data.
405
406 BEDOPS provides tools that perform highly efficient and scalable Boolean and
407 other set operations, statistical calculations, archiving, conversion and
408 other management of genomic data of arbitrary scale. Tasks can be easily
409 split by chromosome for distributing whole-genome analyses across a
410 computational cluster.")
411 (license license:gpl2+)))
412
413 (define-public bedtools
414 (package
415 (name "bedtools")
416 (version "2.26.0")
417 (source (origin
418 (method url-fetch)
419 (uri (string-append "https://github.com/arq5x/bedtools2/archive/v"
420 version ".tar.gz"))
421 (file-name (string-append name "-" version ".tar.gz"))
422 (sha256
423 (base32
424 "0xvri5hnp2iim1cx6mcd5d9f102p5ql41x69rd6106x1c17pinqm"))))
425 (build-system gnu-build-system)
426 (native-inputs `(("python" ,python-2)))
427 (inputs `(("samtools" ,samtools)
428 ("zlib" ,zlib)))
429 (arguments
430 '(#:test-target "test"
431 #:phases
432 (modify-phases %standard-phases
433 (delete 'configure)
434 (replace 'install
435 (lambda* (#:key outputs #:allow-other-keys)
436 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
437 (for-each (lambda (file)
438 (install-file file bin))
439 (find-files "bin" ".*")))
440 #t)))))
441 (home-page "https://github.com/arq5x/bedtools2")
442 (synopsis "Tools for genome analysis and arithmetic")
443 (description
444 "Collectively, the bedtools utilities are a swiss-army knife of tools for
445 a wide-range of genomics analysis tasks. The most widely-used tools enable
446 genome arithmetic: that is, set theory on the genome. For example, bedtools
447 allows one to intersect, merge, count, complement, and shuffle genomic
448 intervals from multiple files in widely-used genomic file formats such as BAM,
449 BED, GFF/GTF, VCF.")
450 (license license:gpl2)))
451
452 ;; Later releases of bedtools produce files with more columns than
453 ;; what Ribotaper expects.
454 (define-public bedtools-2.18
455 (package (inherit bedtools)
456 (name "bedtools")
457 (version "2.18.0")
458 (source (origin
459 (method url-fetch)
460 (uri (string-append "https://github.com/arq5x/bedtools2/"
461 "archive/v" version ".tar.gz"))
462 (file-name (string-append name "-" version ".tar.gz"))
463 (sha256
464 (base32
465 "05vrnr8yp7swfagshzpgqmzk1blnwnq8pq5pckzi1m26w98d63vf"))))))
466
467 (define-public ribotaper
468 (package
469 (name "ribotaper")
470 (version "1.3.1")
471 (source (origin
472 (method url-fetch)
473 (uri (string-append "https://ohlerlab.mdc-berlin.de/"
474 "files/RiboTaper/RiboTaper_Version_"
475 version ".tar.gz"))
476 (sha256
477 (base32
478 "0ykjbps1y3z3085q94npw8i9x5gldc6shy8vlc08v76zljsm07hv"))))
479 (build-system gnu-build-system)
480 (inputs
481 `(("bedtools" ,bedtools-2.18)
482 ("samtools" ,samtools-0.1)
483 ("r-minimal" ,r-minimal)
484 ("r-foreach" ,r-foreach)
485 ("r-xnomial" ,r-xnomial)
486 ("r-domc" ,r-domc)
487 ("r-multitaper" ,r-multitaper)
488 ("r-seqinr" ,r-seqinr)))
489 (home-page "https://ohlerlab.mdc-berlin.de/software/RiboTaper_126/")
490 (synopsis "Define translated ORFs using ribosome profiling data")
491 (description
492 "Ribotaper is a method for defining translated @dfn{open reading
493 frames} (ORFs) using ribosome profiling (ribo-seq) data. This package
494 provides the Ribotaper pipeline.")
495 (license license:gpl3+)))
496
497 (define-public ribodiff
498 (package
499 (name "ribodiff")
500 (version "0.2.2")
501 (source
502 (origin
503 (method url-fetch)
504 (uri (string-append "https://github.com/ratschlab/RiboDiff/"
505 "archive/v" version ".tar.gz"))
506 (file-name (string-append name "-" version ".tar.gz"))
507 (sha256
508 (base32
509 "0wpbwmfv05wdjxv7ikm664f7s7p7cqr8jnw99zrda0q67rl50aaj"))))
510 (build-system python-build-system)
511 (arguments
512 `(#:python ,python-2
513 #:phases
514 (modify-phases %standard-phases
515 ;; Generate an installable executable script wrapper.
516 (add-after 'unpack 'patch-setup.py
517 (lambda _
518 (substitute* "setup.py"
519 (("^(.*)packages=.*" line prefix)
520 (string-append line "\n"
521 prefix "scripts=['scripts/TE.py'],\n")))
522 #t)))))
523 (inputs
524 `(("python-numpy" ,python2-numpy)
525 ("python-matplotlib" ,python2-matplotlib)
526 ("python-scipy" ,python2-scipy)
527 ("python-statsmodels" ,python2-statsmodels)))
528 (native-inputs
529 `(("python-mock" ,python2-mock)
530 ("python-nose" ,python2-nose)))
531 (home-page "http://public.bmi.inf.ethz.ch/user/zhongy/RiboDiff/")
532 (synopsis "Detect translation efficiency changes from ribosome footprints")
533 (description "RiboDiff is a statistical tool that detects the protein
534 translational efficiency change from Ribo-Seq (ribosome footprinting) and
535 RNA-Seq data. It uses a generalized linear model to detect genes showing
536 difference in translational profile taking mRNA abundance into account. It
537 facilitates us to decipher the translational regulation that behave
538 independently with transcriptional regulation.")
539 (license license:gpl3+)))
540
541 (define-public bioawk
542 (package
543 (name "bioawk")
544 (version "1.0")
545 (source (origin
546 (method url-fetch)
547 (uri (string-append "https://github.com/lh3/bioawk/archive/v"
548 version ".tar.gz"))
549 (file-name (string-append name "-" version ".tar.gz"))
550 (sha256
551 (base32 "1daizxsk17ahi9n58fj8vpgwyhzrzh54bzqhanjanp88kgrz7gjw"))))
552 (build-system gnu-build-system)
553 (inputs
554 `(("zlib" ,zlib)))
555 (native-inputs
556 `(("bison" ,bison)))
557 (arguments
558 `(#:tests? #f ; There are no tests to run.
559 ;; Bison must generate files, before other targets can build.
560 #:parallel-build? #f
561 #:phases
562 (modify-phases %standard-phases
563 (delete 'configure) ; There is no configure phase.
564 (replace 'install
565 (lambda* (#:key outputs #:allow-other-keys)
566 (let* ((out (assoc-ref outputs "out"))
567 (bin (string-append out "/bin"))
568 (man (string-append out "/share/man/man1")))
569 (mkdir-p man)
570 (copy-file "awk.1" (string-append man "/bioawk.1"))
571 (install-file "bioawk" bin)))))))
572 (home-page "https://github.com/lh3/bioawk")
573 (synopsis "AWK with bioinformatics extensions")
574 (description "Bioawk is an extension to Brian Kernighan's awk, adding the
575 support of several common biological data formats, including optionally gzip'ed
576 BED, GFF, SAM, VCF, FASTA/Q and TAB-delimited formats with column names. It
577 also adds a few built-in functions and a command line option to use TAB as the
578 input/output delimiter. When the new functionality is not used, bioawk is
579 intended to behave exactly the same as the original BWK awk.")
580 (license license:x11)))
581
582 (define-public python2-pybedtools
583 (package
584 (name "python2-pybedtools")
585 (version "0.6.9")
586 (source (origin
587 (method url-fetch)
588 (uri (string-append
589 "https://pypi.python.org/packages/source/p/pybedtools/pybedtools-"
590 version ".tar.gz"))
591 (sha256
592 (base32
593 "1ldzdxw1p4y3g2ignmggsdypvqkcwqwzhdha4rbgpih048z5p4an"))))
594 (build-system python-build-system)
595 (arguments `(#:python ,python-2)) ; no Python 3 support
596 (inputs
597 `(("python-matplotlib" ,python2-matplotlib)))
598 (propagated-inputs
599 `(("bedtools" ,bedtools)
600 ("samtools" ,samtools)))
601 (native-inputs
602 `(("python-cython" ,python2-cython)
603 ("python-pyyaml" ,python2-pyyaml)
604 ("python-nose" ,python2-nose)))
605 (home-page "https://pythonhosted.org/pybedtools/")
606 (synopsis "Python wrapper for BEDtools programs")
607 (description
608 "pybedtools is a Python wrapper for Aaron Quinlan's BEDtools programs,
609 which are widely used for genomic interval manipulation or \"genome algebra\".
610 pybedtools extends BEDTools by offering feature-level manipulations from with
611 Python.")
612 (license license:gpl2+)))
613
614 (define-public python-biom-format
615 (package
616 (name "python-biom-format")
617 (version "2.1.6")
618 (source
619 (origin
620 (method url-fetch)
621 ;; Use GitHub as source because PyPI distribution does not contain
622 ;; test data: https://github.com/biocore/biom-format/issues/693
623 (uri (string-append "https://github.com/biocore/biom-format/archive/"
624 version ".tar.gz"))
625 (file-name (string-append name "-" version ".tar.gz"))
626 (sha256
627 (base32
628 "08cr7wpahk6zb31h4bs7jmzpvxcqv9s13xz40h6y2h656jvdvnpj"))))
629 (build-system python-build-system)
630 (propagated-inputs
631 `(("python-numpy" ,python-numpy)
632 ("python-scipy" ,python-scipy)
633 ("python-future" ,python-future)
634 ("python-click" ,python-click)
635 ("python-h5py" ,python-h5py)
636 ("python-pandas" ,python-pandas)))
637 (native-inputs
638 `(("python-nose" ,python-nose)))
639 (home-page "http://www.biom-format.org")
640 (synopsis "Biological Observation Matrix (BIOM) format utilities")
641 (description
642 "The BIOM file format is designed to be a general-use format for
643 representing counts of observations e.g. operational taxonomic units, KEGG
644 orthology groups or lipid types, in one or more biological samples
645 e.g. microbiome samples, genomes, metagenomes.")
646 (license license:bsd-3)
647 (properties `((python2-variant . ,(delay python2-biom-format))))))
648
649 (define-public python2-biom-format
650 (let ((base (package-with-python2 (strip-python2-variant python-biom-format))))
651 (package
652 (inherit base)
653 (arguments
654 `(#:phases
655 (modify-phases %standard-phases
656 ;; Do not require the unmaintained pyqi library.
657 (add-after 'unpack 'remove-pyqi
658 (lambda _
659 (substitute* "setup.py"
660 (("install_requires.append\\(\"pyqi\"\\)") "pass"))
661 #t)))
662 ,@(package-arguments base))))))
663
664 (define-public bioperl-minimal
665 (let* ((inputs `(("perl-module-build" ,perl-module-build)
666 ("perl-data-stag" ,perl-data-stag)
667 ("perl-libwww" ,perl-libwww)
668 ("perl-uri" ,perl-uri)))
669 (transitive-inputs
670 (map (compose package-name cadr)
671 (delete-duplicates
672 (concatenate
673 (map (compose package-transitive-target-inputs cadr) inputs))))))
674 (package
675 (name "bioperl-minimal")
676 (version "1.7.0")
677 (source
678 (origin
679 (method url-fetch)
680 (uri (string-append "https://github.com/bioperl/bioperl-live/"
681 "archive/release-"
682 (string-map (lambda (c)
683 (if (char=? c #\.)
684 #\- c)) version)
685 ".tar.gz"))
686 (sha256
687 (base32
688 "12phgpxwgkqflkwfb9dcqg7a31dpjlfhar8wcgv0aj5ln4akfz06"))))
689 (build-system perl-build-system)
690 (arguments
691 `(#:phases
692 (modify-phases %standard-phases
693 (add-after
694 'install 'wrap-programs
695 (lambda* (#:key outputs #:allow-other-keys)
696 ;; Make sure all executables in "bin" find the required Perl
697 ;; modules at runtime. As the PERL5LIB variable contains also
698 ;; the paths of native inputs, we pick the transitive target
699 ;; inputs from %build-inputs.
700 (let* ((out (assoc-ref outputs "out"))
701 (bin (string-append out "/bin/"))
702 (path (string-join
703 (cons (string-append out "/lib/perl5/site_perl")
704 (map (lambda (name)
705 (assoc-ref %build-inputs name))
706 ',transitive-inputs))
707 ":")))
708 (for-each (lambda (file)
709 (wrap-program file
710 `("PERL5LIB" ":" prefix (,path))))
711 (find-files bin "\\.pl$"))
712 #t))))))
713 (inputs inputs)
714 (native-inputs
715 `(("perl-test-most" ,perl-test-most)))
716 (home-page "http://search.cpan.org/dist/BioPerl")
717 (synopsis "Bioinformatics toolkit")
718 (description
719 "BioPerl is the product of a community effort to produce Perl code which
720 is useful in biology. Examples include Sequence objects, Alignment objects
721 and database searching objects. These objects not only do what they are
722 advertised to do in the documentation, but they also interact - Alignment
723 objects are made from the Sequence objects, Sequence objects have access to
724 Annotation and SeqFeature objects and databases, Blast objects can be
725 converted to Alignment objects, and so on. This means that the objects
726 provide a coordinated and extensible framework to do computational biology.")
727 (license license:perl-license))))
728
729 (define-public python-biopython
730 (package
731 (name "python-biopython")
732 (version "1.68")
733 (source (origin
734 (method url-fetch)
735 ;; use PyPi rather than biopython.org to ease updating
736 (uri (pypi-uri "biopython" version))
737 (sha256
738 (base32
739 "07qc7nz0k77y8hf8s18rscvibvm91zw0kkq7ylrhisf8vp8hkp6i"))))
740 (build-system python-build-system)
741 (arguments
742 `(#:phases
743 (modify-phases %standard-phases
744 (add-before 'check 'set-home
745 ;; Some tests require a home directory to be set.
746 (lambda _ (setenv "HOME" "/tmp") #t)))))
747 (propagated-inputs
748 `(("python-numpy" ,python-numpy)))
749 (home-page "http://biopython.org/")
750 (synopsis "Tools for biological computation in Python")
751 (description
752 "Biopython is a set of tools for biological computation including parsers
753 for bioinformatics files into Python data structures; interfaces to common
754 bioinformatics programs; a standard sequence class and tools for performing
755 common operations on them; code to perform data classification; code for
756 dealing with alignments; code making it easy to split up parallelizable tasks
757 into separate processes; and more.")
758 (license (license:non-copyleft "http://www.biopython.org/DIST/LICENSE"))))
759
760 (define-public python2-biopython
761 (package-with-python2 python-biopython))
762
763 ;; An outdated version of biopython is required for seqmagick, see
764 ;; https://github.com/fhcrc/seqmagick/issues/59
765 ;; When that issue has been resolved this package should be removed.
766 (define python2-biopython-1.66
767 (package
768 (inherit python2-biopython)
769 (version "1.66")
770 (source (origin
771 (method url-fetch)
772 (uri (pypi-uri "biopython" version))
773 (sha256
774 (base32
775 "1gdv92593klimg22icf5j9by7xiq86jnwzkpz4abaa05ylkdf6hp"))))))
776
777 (define-public bpp-core
778 ;; The last release was in 2014 and the recommended way to install from source
779 ;; is to clone the git repository, so we do this.
780 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
781 (let ((commit "7d8bced0d1a87291ea8dd7046b7fb5ff9c35c582"))
782 (package
783 (name "bpp-core")
784 (version (string-append "2.2.0-1." (string-take commit 7)))
785 (source (origin
786 (method git-fetch)
787 (uri (git-reference
788 (url "http://biopp.univ-montp2.fr/git/bpp-core")
789 (commit commit)))
790 (file-name (string-append name "-" version "-checkout"))
791 (sha256
792 (base32
793 "10djsq5vlnkilv436gnmh4irpk49v29pa69r6xiryg32xmvn909j"))))
794 (build-system cmake-build-system)
795 (arguments
796 `(#:parallel-build? #f))
797 (inputs
798 `(("gcc" ,gcc-5))) ; Compilation of bpp-phyl fails with GCC 4.9 so we
799 ; compile all of the bpp packages with GCC 5.
800 (home-page "http://biopp.univ-montp2.fr")
801 (synopsis "C++ libraries for Bioinformatics")
802 (description
803 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
804 analysis, phylogenetics, molecular evolution and population genetics. It is
805 Object Oriented and is designed to be both easy to use and computer efficient.
806 Bio++ intends to help programmers to write computer expensive programs, by
807 providing them a set of re-usable tools.")
808 (license license:cecill-c))))
809
810 (define-public bpp-phyl
811 ;; The last release was in 2014 and the recommended way to install from source
812 ;; is to clone the git repository, so we do this.
813 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
814 (let ((commit "0c07167b629f68b569bf274d1ad0c4af83276ae2"))
815 (package
816 (name "bpp-phyl")
817 (version (string-append "2.2.0-1." (string-take commit 7)))
818 (source (origin
819 (method git-fetch)
820 (uri (git-reference
821 (url "http://biopp.univ-montp2.fr/git/bpp-phyl")
822 (commit commit)))
823 (file-name (string-append name "-" version "-checkout"))
824 (sha256
825 (base32
826 "1ssjgchzwj3iai26kyly7gwkdv8sk59nqhkb1wpap3sf5m6kyllh"))))
827 (build-system cmake-build-system)
828 (arguments
829 `(#:parallel-build? #f
830 ;; If out-of-source, test data is not copied into the build directory
831 ;; so the tests fail.
832 #:out-of-source? #f))
833 (inputs
834 `(("bpp-core" ,bpp-core)
835 ("bpp-seq" ,bpp-seq)
836 ;; GCC 4.8 fails due to an 'internal compiler error', so we use a more
837 ;; modern GCC.
838 ("gcc" ,gcc-5)))
839 (home-page "http://biopp.univ-montp2.fr")
840 (synopsis "Bio++ phylogenetic Library")
841 (description
842 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
843 analysis, phylogenetics, molecular evolution and population genetics. This
844 library provides phylogenetics-related modules.")
845 (license license:cecill-c))))
846
847 (define-public bpp-popgen
848 ;; The last release was in 2014 and the recommended way to install from source
849 ;; is to clone the git repository, so we do this.
850 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
851 (let ((commit "e472bac9b1a148803895d747cd6d0c5904f85d9f"))
852 (package
853 (name "bpp-popgen")
854 (version (string-append "2.2.0-1." (string-take commit 7)))
855 (source (origin
856 (method git-fetch)
857 (uri (git-reference
858 (url "http://biopp.univ-montp2.fr/git/bpp-popgen")
859 (commit commit)))
860 (file-name (string-append name "-" version "-checkout"))
861 (sha256
862 (base32
863 "0yn82dzn1n5629nzja68xfrhi655709rjanyryb36vzkmymy6dw5"))))
864 (build-system cmake-build-system)
865 (arguments
866 `(#:parallel-build? #f
867 #:tests? #f)) ; There are no tests.
868 (inputs
869 `(("bpp-core" ,bpp-core)
870 ("bpp-seq" ,bpp-seq)
871 ("gcc" ,gcc-5)))
872 (home-page "http://biopp.univ-montp2.fr")
873 (synopsis "Bio++ population genetics library")
874 (description
875 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
876 analysis, phylogenetics, molecular evolution and population genetics. This
877 library provides population genetics-related modules.")
878 (license license:cecill-c))))
879
880 (define-public bpp-seq
881 ;; The last release was in 2014 and the recommended way to install from source
882 ;; is to clone the git repository, so we do this.
883 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
884 (let ((commit "6cfa07965ce152e5598a89df2fa80a75973bfa33"))
885 (package
886 (name "bpp-seq")
887 (version (string-append "2.2.0-1." (string-take commit 7)))
888 (source (origin
889 (method git-fetch)
890 (uri (git-reference
891 (url "http://biopp.univ-montp2.fr/git/bpp-seq")
892 (commit commit)))
893 (file-name (string-append name "-" version "-checkout"))
894 (sha256
895 (base32
896 "1nys5jq7jqvdg40d91wsmj3q2yzy4276cp7sp44n67p468f27zf2"))))
897 (build-system cmake-build-system)
898 (arguments
899 `(#:parallel-build? #f
900 ;; If out-of-source, test data is not copied into the build directory
901 ;; so the tests fail.
902 #:out-of-source? #f))
903 (inputs
904 `(("bpp-core" ,bpp-core)
905 ("gcc" ,gcc-5))) ; Use GCC 5 as per 'bpp-core'.
906 (home-page "http://biopp.univ-montp2.fr")
907 (synopsis "Bio++ sequence library")
908 (description
909 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
910 analysis, phylogenetics, molecular evolution and population genetics. This
911 library provides sequence-related modules.")
912 (license license:cecill-c))))
913
914 (define-public bppsuite
915 ;; The last release was in 2014 and the recommended way to install from source
916 ;; is to clone the git repository, so we do this.
917 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
918 (let ((commit "c516147f57aa50961121cd505bed52cd7603698b"))
919 (package
920 (name "bppsuite")
921 (version (string-append "2.2.0-1." (string-take commit 7)))
922 (source (origin
923 (method git-fetch)
924 (uri (git-reference
925 (url "http://biopp.univ-montp2.fr/git/bppsuite")
926 (commit commit)))
927 (file-name (string-append name "-" version "-checkout"))
928 (sha256
929 (base32
930 "1y87pxvw0jxjizhq2dr9g2r91md45k1p9ih2sl1yy1y3p934l2kb"))))
931 (build-system cmake-build-system)
932 (arguments
933 `(#:parallel-build? #f
934 #:tests? #f)) ; There are no tests.
935 (native-inputs
936 `(("groff" ,groff)
937 ("man-db" ,man-db)
938 ("texinfo" ,texinfo)))
939 (inputs
940 `(("bpp-core" ,bpp-core)
941 ("bpp-seq" ,bpp-seq)
942 ("bpp-phyl" ,bpp-phyl)
943 ("bpp-phyl" ,bpp-popgen)
944 ("gcc" ,gcc-5)))
945 (home-page "http://biopp.univ-montp2.fr")
946 (synopsis "Bioinformatics tools written with the Bio++ libraries")
947 (description
948 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
949 analysis, phylogenetics, molecular evolution and population genetics. This
950 package provides command line tools using the Bio++ library.")
951 (license license:cecill-c))))
952
953 (define-public blast+
954 (package
955 (name "blast+")
956 (version "2.6.0")
957 (source (origin
958 (method url-fetch)
959 (uri (string-append
960 "ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/"
961 version "/ncbi-blast-" version "+-src.tar.gz"))
962 (sha256
963 (base32
964 "15n937pw5aqmyfjb6l387d18grqbb96l63d5xj4l7yyh0zbf2405"))
965 (patches (search-patches "blast+-fix-makefile.patch"))
966 (modules '((guix build utils)))
967 (snippet
968 '(begin
969 ;; Remove bundled bzip2, zlib and pcre.
970 (delete-file-recursively "c++/src/util/compress/bzip2")
971 (delete-file-recursively "c++/src/util/compress/zlib")
972 (delete-file-recursively "c++/src/util/regexp")
973 (substitute* "c++/src/util/compress/Makefile.in"
974 (("bzip2 zlib api") "api"))
975 ;; Remove useless msbuild directory
976 (delete-file-recursively
977 "c++/src/build-system/project_tree_builder/msbuild")
978 #t))))
979 (build-system gnu-build-system)
980 (arguments
981 `(;; There are two(!) tests for this massive library, and both fail with
982 ;; "unparsable timing stats".
983 ;; ERR [127] -- [serial/datatool] datatool.sh (unparsable timing stats)
984 ;; ERR [127] -- [serial/datatool] datatool_xml.sh (unparsable timing stats)
985 #:tests? #f
986 #:out-of-source? #t
987 #:parallel-build? #f ; not supported
988 #:phases
989 (modify-phases %standard-phases
990 (add-before
991 'configure 'set-HOME
992 ;; $HOME needs to be set at some point during the configure phase
993 (lambda _ (setenv "HOME" "/tmp") #t))
994 (add-after
995 'unpack 'enter-dir
996 (lambda _ (chdir "c++") #t))
997 (add-after
998 'enter-dir 'fix-build-system
999 (lambda _
1000 (define (which* cmd)
1001 (cond ((string=? cmd "date")
1002 ;; make call to "date" deterministic
1003 "date -d @0")
1004 ((which cmd)
1005 => identity)
1006 (else
1007 (format (current-error-port)
1008 "WARNING: Unable to find absolute path for ~s~%"
1009 cmd)
1010 #f)))
1011
1012 ;; Rewrite hardcoded paths to various tools
1013 (substitute* (append '("src/build-system/configure.ac"
1014 "src/build-system/configure"
1015 "src/build-system/helpers/run_with_lock.c"
1016 "scripts/common/impl/if_diff.sh"
1017 "scripts/common/impl/run_with_lock.sh"
1018 "src/build-system/Makefile.configurables.real"
1019 "src/build-system/Makefile.in.top"
1020 "src/build-system/Makefile.meta.gmake=no"
1021 "src/build-system/Makefile.meta.in"
1022 "src/build-system/Makefile.meta_l"
1023 "src/build-system/Makefile.meta_p"
1024 "src/build-system/Makefile.meta_r"
1025 "src/build-system/Makefile.mk.in"
1026 "src/build-system/Makefile.requirements"
1027 "src/build-system/Makefile.rules_with_autodep.in")
1028 (find-files "scripts/common/check" "\\.sh$"))
1029 (("(/usr/bin/|/bin/)([a-z][-_.a-z]*)" all dir cmd)
1030 (or (which* cmd) all)))
1031
1032 (substitute* (find-files "src/build-system" "^config.*")
1033 (("LN_S=/bin/\\$LN_S") (string-append "LN_S=" (which "ln")))
1034 (("^PATH=.*") ""))
1035
1036 ;; rewrite "/var/tmp" in check script
1037 (substitute* "scripts/common/check/check_make_unix.sh"
1038 (("/var/tmp") "/tmp"))
1039
1040 ;; do not reset PATH
1041 (substitute* (find-files "scripts/common/impl/" "\\.sh$")
1042 (("^ *PATH=.*") "")
1043 (("action=/bin/") "action=")
1044 (("export PATH") ":"))
1045 #t))
1046 (replace
1047 'configure
1048 (lambda* (#:key inputs outputs #:allow-other-keys)
1049 (let ((out (assoc-ref outputs "out"))
1050 (lib (string-append (assoc-ref outputs "lib") "/lib"))
1051 (include (string-append (assoc-ref outputs "include")
1052 "/include/ncbi-tools++")))
1053 ;; The 'configure' script doesn't recognize things like
1054 ;; '--enable-fast-install'.
1055 (zero? (system* "./configure.orig"
1056 (string-append "--with-build-root=" (getcwd) "/build")
1057 (string-append "--prefix=" out)
1058 (string-append "--libdir=" lib)
1059 (string-append "--includedir=" include)
1060 (string-append "--with-bz2="
1061 (assoc-ref inputs "bzip2"))
1062 (string-append "--with-z="
1063 (assoc-ref inputs "zlib"))
1064 (string-append "--with-pcre="
1065 (assoc-ref inputs "pcre"))
1066 ;; Each library is built twice by default, once
1067 ;; with "-static" in its name, and again
1068 ;; without.
1069 "--without-static"
1070 "--with-dll"))))))))
1071 (outputs '("out" ; 21 MB
1072 "lib" ; 226 MB
1073 "include")) ; 33 MB
1074 (inputs
1075 `(("bzip2" ,bzip2)
1076 ("zlib" ,zlib)
1077 ("pcre" ,pcre)
1078 ("perl" ,perl)
1079 ("python" ,python-wrapper)))
1080 (native-inputs
1081 `(("cpio" ,cpio)))
1082 (home-page "http://blast.ncbi.nlm.nih.gov")
1083 (synopsis "Basic local alignment search tool")
1084 (description
1085 "BLAST is a popular method of performing a DNA or protein sequence
1086 similarity search, using heuristics to produce results quickly. It also
1087 calculates an “expect value” that estimates how many matches would have
1088 occurred at a given score by chance, which can aid a user in judging how much
1089 confidence to have in an alignment.")
1090 ;; Most of the sources are in the public domain, with the following
1091 ;; exceptions:
1092 ;; * Expat:
1093 ;; * ./c++/include/util/bitset/
1094 ;; * ./c++/src/html/ncbi_menu*.js
1095 ;; * Boost license:
1096 ;; * ./c++/include/util/impl/floating_point_comparison.hpp
1097 ;; * LGPL 2+:
1098 ;; * ./c++/include/dbapi/driver/odbc/unix_odbc/
1099 ;; * ASL 2.0:
1100 ;; * ./c++/src/corelib/teamcity_*
1101 (license (list license:public-domain
1102 license:expat
1103 license:boost1.0
1104 license:lgpl2.0+
1105 license:asl2.0))))
1106
1107 (define-public bless
1108 (package
1109 (name "bless")
1110 (version "1p02")
1111 (source (origin
1112 (method url-fetch)
1113 (uri (string-append "mirror://sourceforge/bless-ec/bless.v"
1114 version ".tgz"))
1115 (sha256
1116 (base32
1117 "0rm0gw2s18dqwzzpl3c2x1z05ni2v0xz5dmfk3d33j6g4cgrlrdd"))
1118 (modules '((guix build utils)))
1119 (snippet
1120 `(begin
1121 ;; Remove bundled boost, pigz, zlib, and .git directory
1122 ;; FIXME: also remove bundled sources for murmurhash3 and
1123 ;; kmc once packaged.
1124 (delete-file-recursively "boost")
1125 (delete-file-recursively "pigz")
1126 (delete-file-recursively "google-sparsehash")
1127 (delete-file-recursively "zlib")
1128 (delete-file-recursively ".git")
1129 #t))))
1130 (build-system gnu-build-system)
1131 (arguments
1132 '(#:tests? #f ;no "check" target
1133 #:make-flags
1134 (list (string-append "ZLIB="
1135 (assoc-ref %build-inputs "zlib")
1136 "/lib/libz.a")
1137 (string-append "LDFLAGS="
1138 (string-join '("-lboost_filesystem"
1139 "-lboost_system"
1140 "-lboost_iostreams"
1141 "-lz"
1142 "-fopenmp"
1143 "-std=c++11"))))
1144 #:phases
1145 (modify-phases %standard-phases
1146 (add-after 'unpack 'do-not-build-bundled-pigz
1147 (lambda* (#:key inputs outputs #:allow-other-keys)
1148 (substitute* "Makefile"
1149 (("cd pigz/pigz-2.3.3; make") ""))
1150 #t))
1151 (add-after 'unpack 'patch-paths-to-executables
1152 (lambda* (#:key inputs outputs #:allow-other-keys)
1153 (substitute* "parse_args.cpp"
1154 (("kmc_binary = .*")
1155 (string-append "kmc_binary = \""
1156 (assoc-ref outputs "out")
1157 "/bin/kmc\";"))
1158 (("pigz_binary = .*")
1159 (string-append "pigz_binary = \""
1160 (assoc-ref inputs "pigz")
1161 "/bin/pigz\";")))
1162 #t))
1163 (replace 'install
1164 (lambda* (#:key outputs #:allow-other-keys)
1165 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
1166 (for-each (lambda (file)
1167 (install-file file bin))
1168 '("bless" "kmc/bin/kmc"))
1169 #t)))
1170 (delete 'configure))))
1171 (native-inputs
1172 `(("perl" ,perl)))
1173 (inputs
1174 `(("openmpi" ,openmpi)
1175 ("boost" ,boost)
1176 ("sparsehash" ,sparsehash)
1177 ("pigz" ,pigz)
1178 ("zlib" ,zlib)))
1179 (supported-systems '("x86_64-linux"))
1180 (home-page "https://sourceforge.net/p/bless-ec/wiki/Home/")
1181 (synopsis "Bloom-filter-based error correction tool for NGS reads")
1182 (description
1183 "@dfn{Bloom-filter-based error correction solution for high-throughput
1184 sequencing reads} (BLESS) uses a single minimum-sized bloom filter is a
1185 correction tool for genomic reads produced by @dfn{Next-generation
1186 sequencing} (NGS). BLESS produces accurate correction results with much less
1187 memory compared with previous solutions and is also able to tolerate a higher
1188 false-positive rate. BLESS can extend reads like DNA assemblers to correct
1189 errors at the end of reads.")
1190 (license license:gpl3+)))
1191
1192 (define-public bowtie
1193 (package
1194 (name "bowtie")
1195 (version "2.3.2")
1196 (source (origin
1197 (method url-fetch)
1198 (uri (string-append "https://github.com/BenLangmead/bowtie2/archive/v"
1199 version ".tar.gz"))
1200 (file-name (string-append name "-" version ".tar.gz"))
1201 (sha256
1202 (base32
1203 "0hwa5r9qbglppb7sz5z79rlmmddr3n51n468jb3wh8rwjgn3yr90"))
1204 (modules '((guix build utils)))
1205 (snippet
1206 '(substitute* "Makefile"
1207 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1208 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1209 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\"")))))
1210 (build-system gnu-build-system)
1211 (inputs
1212 `(("perl" ,perl)
1213 ("perl-clone" ,perl-clone)
1214 ("perl-test-deep" ,perl-test-deep)
1215 ("perl-test-simple" ,perl-test-simple)
1216 ("python" ,python-2)
1217 ("tbb" ,tbb)
1218 ("zlib" ,zlib)))
1219 (arguments
1220 '(#:make-flags
1221 (list "allall"
1222 "WITH_TBB=1"
1223 (string-append "prefix=" (assoc-ref %outputs "out")))
1224 #:phases
1225 (modify-phases %standard-phases
1226 (delete 'configure)
1227 (replace 'check
1228 (lambda* (#:key outputs #:allow-other-keys)
1229 (zero? (system* "perl"
1230 "scripts/test/simple_tests.pl"
1231 "--bowtie2=./bowtie2"
1232 "--bowtie2-build=./bowtie2-build")))))))
1233 (home-page "http://bowtie-bio.sourceforge.net/bowtie2/index.shtml")
1234 (synopsis "Fast and sensitive nucleotide sequence read aligner")
1235 (description
1236 "Bowtie 2 is a fast and memory-efficient tool for aligning sequencing
1237 reads to long reference sequences. It is particularly good at aligning reads
1238 of about 50 up to 100s or 1,000s of characters, and particularly good at
1239 aligning to relatively long (e.g. mammalian) genomes. Bowtie 2 indexes the
1240 genome with an FM Index to keep its memory footprint small: for the human
1241 genome, its memory footprint is typically around 3.2 GB. Bowtie 2 supports
1242 gapped, local, and paired-end alignment modes.")
1243 (supported-systems '("x86_64-linux"))
1244 (license license:gpl3+)))
1245
1246 (define-public tophat
1247 (package
1248 (name "tophat")
1249 (version "2.1.0")
1250 (source (origin
1251 (method url-fetch)
1252 (uri (string-append
1253 "http://ccb.jhu.edu/software/tophat/downloads/tophat-"
1254 version ".tar.gz"))
1255 (sha256
1256 (base32
1257 "168zlzykq622zbgkh90a90f1bdgsxkscq2zxzbj8brq80hbjpyp7"))
1258 (patches (search-patches "tophat-build-with-later-seqan.patch"))
1259 (modules '((guix build utils)))
1260 (snippet
1261 '(begin
1262 ;; Remove bundled SeqAn and samtools
1263 (delete-file-recursively "src/SeqAn-1.3")
1264 (delete-file-recursively "src/samtools-0.1.18")
1265 #t))))
1266 (build-system gnu-build-system)
1267 (arguments
1268 '(#:parallel-build? #f ; not supported
1269 #:phases
1270 (modify-phases %standard-phases
1271 (add-after 'unpack 'use-system-samtools
1272 (lambda* (#:key inputs #:allow-other-keys)
1273 (substitute* "src/Makefile.in"
1274 (("(noinst_LIBRARIES = )\\$\\(SAMLIB\\)" _ prefix) prefix)
1275 (("\\$\\(SAMPROG\\): \\$\\(SAMLIB\\)") "")
1276 (("SAMPROG = samtools_0\\.1\\.18") "")
1277 (("\\$\\(samtools_0_1_18_SOURCES\\)") "")
1278 (("am__EXEEXT_1 = samtools_0\\.1\\.18\\$\\(EXEEXT\\)") ""))
1279 (substitute* '("src/common.cpp"
1280 "src/tophat.py")
1281 (("samtools_0.1.18") (which "samtools")))
1282 (substitute* '("src/common.h"
1283 "src/bam2fastx.cpp")
1284 (("#include \"bam.h\"") "#include <samtools/bam.h>")
1285 (("#include \"sam.h\"") "#include <samtools/sam.h>"))
1286 (substitute* '("src/bwt_map.h"
1287 "src/map2gtf.h"
1288 "src/align_status.h")
1289 (("#include <bam.h>") "#include <samtools/bam.h>")
1290 (("#include <sam.h>") "#include <samtools/sam.h>"))
1291 #t)))))
1292 (inputs
1293 `(("boost" ,boost)
1294 ("bowtie" ,bowtie)
1295 ("samtools" ,samtools-0.1)
1296 ("ncurses" ,ncurses)
1297 ("python" ,python-2)
1298 ("perl" ,perl)
1299 ("zlib" ,zlib)
1300 ("seqan" ,seqan)))
1301 (home-page "http://ccb.jhu.edu/software/tophat/index.shtml")
1302 (synopsis "Spliced read mapper for RNA-Seq data")
1303 (description
1304 "TopHat is a fast splice junction mapper for nucleotide sequence
1305 reads produced by the RNA-Seq method. It aligns RNA-Seq reads to
1306 mammalian-sized genomes using the ultra high-throughput short read
1307 aligner Bowtie, and then analyzes the mapping results to identify
1308 splice junctions between exons.")
1309 ;; TopHat is released under the Boost Software License, Version 1.0
1310 ;; See https://github.com/infphilo/tophat/issues/11#issuecomment-121589893
1311 (license license:boost1.0)))
1312
1313 (define-public bwa
1314 (package
1315 (name "bwa")
1316 (version "0.7.15")
1317 (source (origin
1318 (method url-fetch)
1319 (uri (string-append "mirror://sourceforge/bio-bwa/bwa-"
1320 version ".tar.bz2"))
1321 (sha256
1322 (base32
1323 "0585ikg0gv0mpyw9iq0bq9n0hr95867bbv8jbzs9pk4slkpsymig"))))
1324 (build-system gnu-build-system)
1325 (arguments
1326 '(#:tests? #f ;no "check" target
1327 #:phases
1328 (alist-replace
1329 'install
1330 (lambda* (#:key outputs #:allow-other-keys)
1331 (let ((bin (string-append
1332 (assoc-ref outputs "out") "/bin"))
1333 (doc (string-append
1334 (assoc-ref outputs "out") "/share/doc/bwa"))
1335 (man (string-append
1336 (assoc-ref outputs "out") "/share/man/man1")))
1337 (install-file "bwa" bin)
1338 (install-file "README.md" doc)
1339 (install-file "bwa.1" man)))
1340 ;; no "configure" script
1341 (alist-delete 'configure %standard-phases))))
1342 (inputs `(("zlib" ,zlib)))
1343 ;; Non-portable SSE instructions are used so building fails on platforms
1344 ;; other than x86_64.
1345 (supported-systems '("x86_64-linux"))
1346 (home-page "http://bio-bwa.sourceforge.net/")
1347 (synopsis "Burrows-Wheeler sequence aligner")
1348 (description
1349 "BWA is a software package for mapping low-divergent sequences against a
1350 large reference genome, such as the human genome. It consists of three
1351 algorithms: BWA-backtrack, BWA-SW and BWA-MEM. The first algorithm is
1352 designed for Illumina sequence reads up to 100bp, while the rest two for
1353 longer sequences ranged from 70bp to 1Mbp. BWA-MEM and BWA-SW share similar
1354 features such as long-read support and split alignment, but BWA-MEM, which is
1355 the latest, is generally recommended for high-quality queries as it is faster
1356 and more accurate. BWA-MEM also has better performance than BWA-backtrack for
1357 70-100bp Illumina reads.")
1358 (license license:gpl3+)))
1359
1360 (define-public bwa-pssm
1361 (package (inherit bwa)
1362 (name "bwa-pssm")
1363 (version "0.5.11")
1364 (source (origin
1365 (method url-fetch)
1366 (uri (string-append "https://github.com/pkerpedjiev/bwa-pssm/"
1367 "archive/" version ".tar.gz"))
1368 (file-name (string-append name "-" version ".tar.gz"))
1369 (sha256
1370 (base32
1371 "02p7mpbs4mlxmn84g2x4ghak638vbj4lqix2ipx5g84pz9bhdavg"))))
1372 (build-system gnu-build-system)
1373 (inputs
1374 `(("gdsl" ,gdsl)
1375 ("zlib" ,zlib)
1376 ("perl" ,perl)))
1377 (home-page "http://bwa-pssm.binf.ku.dk/")
1378 (synopsis "Burrows-Wheeler transform-based probabilistic short read mapper")
1379 (description
1380 "BWA-PSSM is a probabilistic short genomic sequence read aligner based on
1381 the use of @dfn{position specific scoring matrices} (PSSM). Like many of the
1382 existing aligners it is fast and sensitive. Unlike most other aligners,
1383 however, it is also adaptible in the sense that one can direct the alignment
1384 based on known biases within the data set. It is coded as a modification of
1385 the original BWA alignment program and shares the genome index structure as
1386 well as many of the command line options.")
1387 (license license:gpl3+)))
1388
1389 (define-public python2-bx-python
1390 (package
1391 (name "python2-bx-python")
1392 (version "0.7.3")
1393 (source (origin
1394 (method url-fetch)
1395 (uri (pypi-uri "bx-python" version))
1396 (sha256
1397 (base32
1398 "15z2w3bvnc0n4qmb9bd6d8ylc2h2nj883x2w9iixf4x3vki9b22i"))
1399 (modules '((guix build utils)))
1400 (snippet
1401 '(substitute* "setup.py"
1402 ;; remove dependency on outdated "distribute" module
1403 (("^from distribute_setup import use_setuptools") "")
1404 (("^use_setuptools\\(\\)") "")))))
1405 (build-system python-build-system)
1406 (arguments
1407 `(#:tests? #f ;tests fail because test data are not included
1408 #:python ,python-2))
1409 (inputs
1410 `(("python-numpy" ,python2-numpy)
1411 ("zlib" ,zlib)))
1412 (native-inputs
1413 `(("python-nose" ,python2-nose)))
1414 (home-page "http://bitbucket.org/james_taylor/bx-python/")
1415 (synopsis "Tools for manipulating biological data")
1416 (description
1417 "bx-python provides tools for manipulating biological data, particularly
1418 multiple sequence alignments.")
1419 (license license:expat)))
1420
1421 (define-public python-pysam
1422 (package
1423 (name "python-pysam")
1424 (version "0.11.2.2")
1425 (source (origin
1426 (method url-fetch)
1427 ;; Test data is missing on PyPi.
1428 (uri (string-append
1429 "https://github.com/pysam-developers/pysam/archive/v"
1430 version ".tar.gz"))
1431 (file-name (string-append name "-" version ".tar.gz"))
1432 (sha256
1433 (base32
1434 "1cfqdxsqs3xhacns9n0271ck6wkc76px66ddjm91wfw2jxxfklvc"))
1435 (modules '((guix build utils)))
1436 (snippet
1437 ;; Drop bundled htslib. TODO: Also remove samtools and bcftools.
1438 '(delete-file-recursively "htslib"))))
1439 (build-system python-build-system)
1440 (arguments
1441 `(#:modules ((ice-9 ftw)
1442 (srfi srfi-26)
1443 (guix build python-build-system)
1444 (guix build utils))
1445 #:phases
1446 (modify-phases %standard-phases
1447 (add-before 'build 'set-flags
1448 (lambda* (#:key inputs #:allow-other-keys)
1449 (setenv "HTSLIB_MODE" "external")
1450 (setenv "HTSLIB_LIBRARY_DIR"
1451 (string-append (assoc-ref inputs "htslib") "/lib"))
1452 (setenv "HTSLIB_INCLUDE_DIR"
1453 (string-append (assoc-ref inputs "htslib") "/include"))
1454 (setenv "LDFLAGS" "-lncurses")
1455 (setenv "CFLAGS" "-D_CURSES_LIB=1")
1456 #t))
1457 (replace 'check
1458 (lambda* (#:key inputs outputs #:allow-other-keys)
1459 ;; Add first subdirectory of "build" directory to PYTHONPATH.
1460 (setenv "PYTHONPATH"
1461 (string-append
1462 (getenv "PYTHONPATH")
1463 ":" (getcwd) "/build/"
1464 (car (scandir "build"
1465 (negate (cut string-prefix? "." <>))))))
1466 ;; Step out of source dir so python does not import from CWD.
1467 (with-directory-excursion "tests"
1468 (setenv "HOME" "/tmp")
1469 (and (zero? (system* "make" "-C" "pysam_data"))
1470 (zero? (system* "make" "-C" "cbcf_data"))
1471 ;; Running nosetests without explicitly asking for a
1472 ;; single process leads to a crash. Running with multiple
1473 ;; processes fails because the tests are not designed to
1474 ;; run in parallel.
1475
1476 ;; FIXME: tests keep timing out on some systems.
1477 ;; (zero? (system* "nosetests" "-v"
1478 ;; "--processes" "1"))
1479 )))))))
1480 (propagated-inputs
1481 `(("htslib" ,htslib))) ; Included from installed header files.
1482 (inputs
1483 `(("ncurses" ,ncurses)
1484 ("zlib" ,zlib)))
1485 (native-inputs
1486 `(("python-cython" ,python-cython)
1487 ;; Dependencies below are are for tests only.
1488 ("samtools" ,samtools)
1489 ("bcftools" ,bcftools)
1490 ("python-nose" ,python-nose)))
1491 (home-page "https://github.com/pysam-developers/pysam")
1492 (synopsis "Python bindings to the SAMtools C API")
1493 (description
1494 "Pysam is a Python module for reading and manipulating files in the
1495 SAM/BAM format. Pysam is a lightweight wrapper of the SAMtools C API. It
1496 also includes an interface for tabix.")
1497 (license license:expat)))
1498
1499 (define-public python2-pysam
1500 (package-with-python2 python-pysam))
1501
1502 (define-public python-twobitreader
1503 (package
1504 (name "python-twobitreader")
1505 (version "3.1.4")
1506 (source (origin
1507 (method url-fetch)
1508 (uri (pypi-uri "twobitreader" version))
1509 (sha256
1510 (base32
1511 "1q8wnj2kga9nz1lwc4w7qv52smfm536hp6mc8w6s53lhyj0mpi22"))))
1512 (build-system python-build-system)
1513 (arguments
1514 '(;; Tests are not distributed in the PyPi release.
1515 ;; TODO Try building from the Git repo or asking the upstream maintainer
1516 ;; to distribute the tests on PyPi.
1517 #:tests? #f))
1518 (native-inputs
1519 `(("python-sphinx" ,python-sphinx)))
1520 (home-page "https://github.com/benjschiller/twobitreader")
1521 (synopsis "Python library for reading .2bit files")
1522 (description
1523 "twobitreader is a Python library for reading .2bit files as used by the
1524 UCSC genome browser.")
1525 (license license:artistic2.0)))
1526
1527 (define-public python2-twobitreader
1528 (package-with-python2 python-twobitreader))
1529
1530 (define-public python-plastid
1531 (package
1532 (name "python-plastid")
1533 (version "0.4.8")
1534 (source (origin
1535 (method url-fetch)
1536 (uri (pypi-uri "plastid" version))
1537 (sha256
1538 (base32
1539 "0l24dd3q66if8yj042m4s0g95n6acn7im1imqd3p6h8ns43kxhj8"))))
1540 (build-system python-build-system)
1541 (arguments
1542 ;; Some test files are not included.
1543 `(#:tests? #f))
1544 (propagated-inputs
1545 `(("python-numpy" ,python-numpy)
1546 ("python-scipy" ,python-scipy)
1547 ("python-pandas" ,python-pandas)
1548 ("python-pysam" ,python-pysam)
1549 ("python-matplotlib" ,python-matplotlib)
1550 ("python-biopython" ,python-biopython)
1551 ("python-twobitreader" ,python-twobitreader)
1552 ("python-termcolor" ,python-termcolor)))
1553 (native-inputs
1554 `(("python-cython" ,python-cython)
1555 ("python-nose" ,python-nose)))
1556 (home-page "https://github.com/joshuagryphon/plastid")
1557 (synopsis "Python library for genomic analysis")
1558 (description
1559 "plastid is a Python library for genomic analysis – in particular,
1560 high-throughput sequencing data – with an emphasis on simplicity.")
1561 (license license:bsd-3)))
1562
1563 (define-public python2-plastid
1564 (package-with-python2 python-plastid))
1565
1566 (define-public cd-hit
1567 (package
1568 (name "cd-hit")
1569 (version "4.6.8")
1570 (source (origin
1571 (method url-fetch)
1572 (uri (string-append "https://github.com/weizhongli/cdhit"
1573 "/releases/download/V" version
1574 "/cd-hit-v" version
1575 "-2017-0621-source.tar.gz"))
1576 (sha256
1577 (base32
1578 "1386dg2npx8p62wmv08mjzsd2z3waknb9j1gg3gkvblcy57hymnn"))))
1579 (build-system gnu-build-system)
1580 (arguments
1581 `(#:tests? #f ; there are no tests
1582 #:make-flags
1583 ;; Executables are copied directly to the PREFIX.
1584 (list (string-append "PREFIX=" (assoc-ref %outputs "out") "/bin"))
1585 #:phases
1586 (modify-phases %standard-phases
1587 ;; No "configure" script
1588 (delete 'configure)
1589 ;; Remove sources of non-determinism
1590 (add-after 'unpack 'be-timeless
1591 (lambda _
1592 (substitute* "cdhit-utility.c++"
1593 ((" \\(built on \" __DATE__ \"\\)") ""))
1594 (substitute* "cdhit-common.c++"
1595 (("__DATE__") "\"0\"")
1596 (("\", %s, \" __TIME__ \"\\\\n\", date") ""))
1597 #t))
1598 ;; The "install" target does not create the target directory.
1599 (add-before 'install 'create-target-dir
1600 (lambda* (#:key outputs #:allow-other-keys)
1601 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
1602 #t)))))
1603 (inputs
1604 `(("perl" ,perl)))
1605 (home-page "http://weizhongli-lab.org/cd-hit/")
1606 (synopsis "Cluster and compare protein or nucleotide sequences")
1607 (description
1608 "CD-HIT is a program for clustering and comparing protein or nucleotide
1609 sequences. CD-HIT is designed to be fast and handle extremely large
1610 databases.")
1611 ;; The manual says: "It can be copied under the GNU General Public License
1612 ;; version 2 (GPLv2)."
1613 (license license:gpl2)))
1614
1615 (define-public clipper
1616 (package
1617 (name "clipper")
1618 (version "1.1")
1619 (source (origin
1620 (method url-fetch)
1621 (uri (string-append
1622 "https://github.com/YeoLab/clipper/archive/"
1623 version ".tar.gz"))
1624 (file-name (string-append name "-" version ".tar.gz"))
1625 (sha256
1626 (base32
1627 "0pflmsvhbf8izbgwhbhj1i7349sw1f55qpqj8ljmapp16hb0p0qi"))
1628 (modules '((guix build utils)))
1629 (snippet
1630 '(begin
1631 ;; remove unnecessary setup dependency
1632 (substitute* "setup.py"
1633 (("setup_requires = .*") ""))
1634 (for-each delete-file
1635 '("clipper/src/peaks.so"
1636 "clipper/src/readsToWiggle.so"))
1637 (delete-file-recursively "dist/")
1638 #t))))
1639 (build-system python-build-system)
1640 (arguments `(#:python ,python-2)) ; only Python 2 is supported
1641 (inputs
1642 `(("htseq" ,python2-htseq)
1643 ("python-pybedtools" ,python2-pybedtools)
1644 ("python-cython" ,python2-cython)
1645 ("python-scikit-learn" ,python2-scikit-learn)
1646 ("python-matplotlib" ,python2-matplotlib)
1647 ("python-pandas" ,python2-pandas)
1648 ("python-pysam" ,python2-pysam)
1649 ("python-numpy" ,python2-numpy)
1650 ("python-scipy" ,python2-scipy)))
1651 (native-inputs
1652 `(("python-mock" ,python2-mock) ; for tests
1653 ("python-nose" ,python2-nose) ; for tests
1654 ("python-pytz" ,python2-pytz))) ; for tests
1655 (home-page "https://github.com/YeoLab/clipper")
1656 (synopsis "CLIP peak enrichment recognition")
1657 (description
1658 "CLIPper is a tool to define peaks in CLIP-seq datasets.")
1659 (license license:gpl2)))
1660
1661 (define-public codingquarry
1662 (package
1663 (name "codingquarry")
1664 (version "2.0")
1665 (source (origin
1666 (method url-fetch)
1667 (uri (string-append
1668 "mirror://sourceforge/codingquarry/CodingQuarry_v"
1669 version ".tar.gz"))
1670 (sha256
1671 (base32
1672 "0115hkjflsnfzn36xppwf9h9avfxlavr43djqmshkkzbgjzsz60i"))))
1673 (build-system gnu-build-system)
1674 (arguments
1675 '(#:tests? #f ; no "check" target
1676 #:phases
1677 (modify-phases %standard-phases
1678 (delete 'configure)
1679 (replace 'install
1680 (lambda* (#:key outputs #:allow-other-keys)
1681 (let* ((out (assoc-ref outputs "out"))
1682 (bin (string-append out "/bin"))
1683 (doc (string-append out "/share/doc/codingquarry")))
1684 (install-file "INSTRUCTIONS.pdf" doc)
1685 (copy-recursively "QuarryFiles"
1686 (string-append out "/QuarryFiles"))
1687 (install-file "CodingQuarry" bin)
1688 (install-file "CufflinksGTF_to_CodingQuarryGFF3.py" bin)))))))
1689 (inputs `(("openmpi" ,openmpi)))
1690 (native-search-paths
1691 (list (search-path-specification
1692 (variable "QUARRY_PATH")
1693 (files '("QuarryFiles")))))
1694 (native-inputs `(("python" ,python-2))) ; Only Python 2 is supported
1695 (synopsis "Fungal gene predictor")
1696 (description "CodingQuarry is a highly accurate, self-training GHMM fungal
1697 gene predictor designed to work with assembled, aligned RNA-seq transcripts.")
1698 (home-page "https://sourceforge.net/projects/codingquarry/")
1699 (license license:gpl3+)))
1700
1701 (define-public couger
1702 (package
1703 (name "couger")
1704 (version "1.8.2")
1705 (source (origin
1706 (method url-fetch)
1707 (uri (string-append
1708 "http://couger.oit.duke.edu/static/assets/COUGER"
1709 version ".zip"))
1710 (sha256
1711 (base32
1712 "04p2b14nmhzxw5h72mpzdhalv21bx4w9b87z0wpw0xzxpysyncmq"))))
1713 (build-system gnu-build-system)
1714 (arguments
1715 `(#:tests? #f
1716 #:phases
1717 (modify-phases %standard-phases
1718 (delete 'configure)
1719 (delete 'build)
1720 (replace
1721 'install
1722 (lambda* (#:key outputs #:allow-other-keys)
1723 (let* ((out (assoc-ref outputs "out"))
1724 (bin (string-append out "/bin")))
1725 (copy-recursively "src" (string-append out "/src"))
1726 (mkdir bin)
1727 ;; Add "src" directory to module lookup path.
1728 (substitute* "couger"
1729 (("from argparse")
1730 (string-append "import sys\nsys.path.append(\""
1731 out "\")\nfrom argparse")))
1732 (install-file "couger" bin))
1733 #t))
1734 (add-after
1735 'install 'wrap-program
1736 (lambda* (#:key inputs outputs #:allow-other-keys)
1737 ;; Make sure 'couger' runs with the correct PYTHONPATH.
1738 (let* ((out (assoc-ref outputs "out"))
1739 (path (getenv "PYTHONPATH")))
1740 (wrap-program (string-append out "/bin/couger")
1741 `("PYTHONPATH" ":" prefix (,path))))
1742 #t)))))
1743 (inputs
1744 `(("python" ,python-2)
1745 ("python2-pillow" ,python2-pillow)
1746 ("python2-numpy" ,python2-numpy)
1747 ("python2-scipy" ,python2-scipy)
1748 ("python2-matplotlib" ,python2-matplotlib)))
1749 (propagated-inputs
1750 `(("r-minimal" ,r-minimal)
1751 ("libsvm" ,libsvm)
1752 ("randomjungle" ,randomjungle)))
1753 (native-inputs
1754 `(("unzip" ,unzip)))
1755 (home-page "http://couger.oit.duke.edu")
1756 (synopsis "Identify co-factors in sets of genomic regions")
1757 (description
1758 "COUGER can be applied to any two sets of genomic regions bound by
1759 paralogous TFs (e.g., regions derived from ChIP-seq experiments) to identify
1760 putative co-factors that provide specificity to each TF. The framework
1761 determines the genomic targets uniquely-bound by each TF, and identifies a
1762 small set of co-factors that best explain the in vivo binding differences
1763 between the two TFs.
1764
1765 COUGER uses classification algorithms (support vector machines and random
1766 forests) with features that reflect the DNA binding specificities of putative
1767 co-factors. The features are generated either from high-throughput TF-DNA
1768 binding data (from protein binding microarray experiments), or from large
1769 collections of DNA motifs.")
1770 (license license:gpl3+)))
1771
1772 (define-public clustal-omega
1773 (package
1774 (name "clustal-omega")
1775 (version "1.2.1")
1776 (source (origin
1777 (method url-fetch)
1778 (uri (string-append
1779 "http://www.clustal.org/omega/clustal-omega-"
1780 version ".tar.gz"))
1781 (sha256
1782 (base32
1783 "02ibkx0m0iwz8nscg998bh41gg251y56cgh86bvyrii5m8kjgwqf"))))
1784 (build-system gnu-build-system)
1785 (inputs
1786 `(("argtable" ,argtable)))
1787 (home-page "http://www.clustal.org/omega/")
1788 (synopsis "Multiple sequence aligner for protein and DNA/RNA")
1789 (description
1790 "Clustal-Omega is a general purpose multiple sequence alignment (MSA)
1791 program for protein and DNA/RNA. It produces high quality MSAs and is capable
1792 of handling data-sets of hundreds of thousands of sequences in reasonable
1793 time.")
1794 (license license:gpl2+)))
1795
1796 (define-public crossmap
1797 (package
1798 (name "crossmap")
1799 (version "0.2.1")
1800 (source (origin
1801 (method url-fetch)
1802 (uri (string-append "mirror://sourceforge/crossmap/CrossMap-"
1803 version ".tar.gz"))
1804 (sha256
1805 (base32
1806 "07y179f63d7qnzdvkqcziwk9bs3k4zhp81q392fp1hwszjdvy22f"))
1807 ;; This patch has been sent upstream already and is available
1808 ;; for download from Sourceforge, but it has not been merged.
1809 (patches (search-patches "crossmap-allow-system-pysam.patch"))
1810 (modules '((guix build utils)))
1811 ;; remove bundled copy of pysam
1812 (snippet
1813 '(delete-file-recursively "lib/pysam"))))
1814 (build-system python-build-system)
1815 (arguments
1816 `(#:python ,python-2
1817 #:phases
1818 (alist-cons-after
1819 'unpack 'set-env
1820 (lambda _ (setenv "CROSSMAP_USE_SYSTEM_PYSAM" "1"))
1821 %standard-phases)))
1822 (inputs
1823 `(("python-numpy" ,python2-numpy)
1824 ("python-pysam" ,python2-pysam)
1825 ("zlib" ,zlib)))
1826 (native-inputs
1827 `(("python-cython" ,python2-cython)
1828 ("python-nose" ,python2-nose)))
1829 (home-page "http://crossmap.sourceforge.net/")
1830 (synopsis "Convert genome coordinates between assemblies")
1831 (description
1832 "CrossMap is a program for conversion of genome coordinates or annotation
1833 files between different genome assemblies. It supports most commonly used
1834 file formats including SAM/BAM, Wiggle/BigWig, BED, GFF/GTF, VCF.")
1835 (license license:gpl2+)))
1836
1837 (define-public cufflinks
1838 (package
1839 (name "cufflinks")
1840 (version "2.2.1")
1841 (source (origin
1842 (method url-fetch)
1843 (uri (string-append "http://cole-trapnell-lab.github.io/"
1844 "cufflinks/assets/downloads/cufflinks-"
1845 version ".tar.gz"))
1846 (sha256
1847 (base32
1848 "1bnm10p8m7zq4qiipjhjqb24csiqdm1pwc8c795z253r2xk6ncg8"))))
1849 (build-system gnu-build-system)
1850 (arguments
1851 `(#:make-flags
1852 (list
1853 ;; The includes for "eigen" are located in a subdirectory.
1854 (string-append "EIGEN_CPPFLAGS="
1855 "-I" (assoc-ref %build-inputs "eigen")
1856 "/include/eigen3/")
1857 ;; Cufflinks must be linked with various boost libraries.
1858 (string-append "LDFLAGS="
1859 (string-join '("-lboost_system"
1860 "-lboost_serialization"
1861 "-lboost_thread"))))
1862 #:phases
1863 (modify-phases %standard-phases
1864 (add-after 'unpack 'fix-search-for-bam
1865 (lambda _
1866 (substitute* '("ax_bam.m4"
1867 "configure"
1868 "src/hits.h")
1869 (("<bam/sam\\.h>") "<samtools/sam.h>")
1870 (("<bam/bam\\.h>") "<samtools/bam.h>")
1871 (("<bam/version\\.hpp>") "<samtools/version.h>"))
1872 #t)))
1873 #:configure-flags
1874 (list (string-append "--with-bam="
1875 (assoc-ref %build-inputs "samtools")))))
1876 (inputs
1877 `(("eigen" ,eigen)
1878 ("samtools" ,samtools-0.1)
1879 ("htslib" ,htslib)
1880 ("boost" ,boost)
1881 ("python" ,python-2)
1882 ("zlib" ,zlib)))
1883 (home-page "http://cole-trapnell-lab.github.io/cufflinks/")
1884 (synopsis "Transcriptome assembly and RNA-Seq expression analysis")
1885 (description
1886 "Cufflinks assembles RNA transcripts, estimates their abundances,
1887 and tests for differential expression and regulation in RNA-Seq
1888 samples. It accepts aligned RNA-Seq reads and assembles the
1889 alignments into a parsimonious set of transcripts. Cufflinks then
1890 estimates the relative abundances of these transcripts based on how
1891 many reads support each one, taking into account biases in library
1892 preparation protocols.")
1893 (license license:boost1.0)))
1894
1895 (define-public cutadapt
1896 (package
1897 (name "cutadapt")
1898 (version "1.12")
1899 (source (origin
1900 (method url-fetch)
1901 (uri (string-append
1902 "https://github.com/marcelm/cutadapt/archive/v"
1903 version ".tar.gz"))
1904 (file-name (string-append name "-" version ".tar.gz"))
1905 (sha256
1906 (base32
1907 "19smhh6444ikn4jlmyhvffw4m5aw7yg07rqsk7arg8dkwyga1i4v"))))
1908 (build-system python-build-system)
1909 (arguments
1910 `(#:phases
1911 (modify-phases %standard-phases
1912 ;; The tests must be run after installation.
1913 (delete 'check)
1914 (add-after 'install 'check
1915 (lambda* (#:key inputs outputs #:allow-other-keys)
1916 (setenv "PYTHONPATH"
1917 (string-append
1918 (getenv "PYTHONPATH")
1919 ":" (assoc-ref outputs "out")
1920 "/lib/python"
1921 (string-take (string-take-right
1922 (assoc-ref inputs "python") 5) 3)
1923 "/site-packages"))
1924 (zero? (system* "nosetests" "-P" "tests")))))))
1925 (inputs
1926 `(("python-xopen" ,python-xopen)))
1927 (native-inputs
1928 `(("python-cython" ,python-cython)
1929 ("python-nose" ,python-nose)))
1930 (home-page "https://cutadapt.readthedocs.io/en/stable/")
1931 (synopsis "Remove adapter sequences from nucleotide sequencing reads")
1932 (description
1933 "Cutadapt finds and removes adapter sequences, primers, poly-A tails and
1934 other types of unwanted sequence from high-throughput sequencing reads.")
1935 (license license:expat)))
1936
1937 (define-public libbigwig
1938 (package
1939 (name "libbigwig")
1940 (version "0.1.4")
1941 (source (origin
1942 (method url-fetch)
1943 (uri (string-append "https://github.com/dpryan79/libBigWig/"
1944 "archive/" version ".tar.gz"))
1945 (file-name (string-append name "-" version ".tar.gz"))
1946 (sha256
1947 (base32
1948 "098rjh35pi4a9q83n8wiwvyzykjqj6l8q189p1xgfw4ghywdlvw1"))))
1949 (build-system gnu-build-system)
1950 (arguments
1951 `(#:test-target "test"
1952 #:make-flags
1953 (list "CC=gcc"
1954 (string-append "prefix=" (assoc-ref %outputs "out")))
1955 #:phases
1956 (modify-phases %standard-phases
1957 (delete 'configure)
1958 (add-before 'check 'disable-curl-test
1959 (lambda _
1960 (substitute* "Makefile"
1961 (("./test/testRemote.*") ""))
1962 #t))
1963 ;; This has been fixed with the upstream commit 4ff6959cd8a0, but
1964 ;; there has not yet been a release containing this change.
1965 (add-before 'install 'create-target-dirs
1966 (lambda* (#:key outputs #:allow-other-keys)
1967 (let ((out (assoc-ref outputs "out")))
1968 (mkdir-p (string-append out "/lib"))
1969 (mkdir-p (string-append out "/include"))
1970 #t))))))
1971 (inputs
1972 `(("zlib" ,zlib)
1973 ("curl" ,curl)))
1974 (native-inputs
1975 `(("doxygen" ,doxygen)))
1976 (home-page "https://github.com/dpryan79/libBigWig")
1977 (synopsis "C library for handling bigWig files")
1978 (description
1979 "This package provides a C library for parsing local and remote BigWig
1980 files.")
1981 (license license:expat)))
1982
1983 (define-public python-pybigwig
1984 (package
1985 (name "python-pybigwig")
1986 (version "0.2.5")
1987 (source (origin
1988 (method url-fetch)
1989 (uri (pypi-uri "pyBigWig" version))
1990 (sha256
1991 (base32
1992 "0yrpdxg3y0sny25x4w22lv1k47jzccqjmg7j4bp0hywklvp0hg7d"))
1993 (modules '((guix build utils)))
1994 (snippet
1995 '(begin
1996 ;; Delete bundled libBigWig sources
1997 (delete-file-recursively "libBigWig")))))
1998 (build-system python-build-system)
1999 (arguments
2000 `(#:phases
2001 (modify-phases %standard-phases
2002 (add-after 'unpack 'link-with-libBigWig
2003 (lambda* (#:key inputs #:allow-other-keys)
2004 (substitute* "setup.py"
2005 (("libs=\\[") "libs=[\"BigWig\", "))
2006 #t)))))
2007 (inputs
2008 `(("libbigwig" ,libbigwig)
2009 ("zlib" ,zlib)
2010 ("curl" ,curl)))
2011 (home-page "https://github.com/dpryan79/pyBigWig")
2012 (synopsis "Access bigWig files in Python using libBigWig")
2013 (description
2014 "This package provides Python bindings to the libBigWig library for
2015 accessing bigWig files.")
2016 (license license:expat)))
2017
2018 (define-public python2-pybigwig
2019 (package-with-python2 python-pybigwig))
2020
2021 (define-public python-dendropy
2022 (package
2023 (name "python-dendropy")
2024 (version "4.2.0")
2025 (source
2026 (origin
2027 (method url-fetch)
2028 (uri (pypi-uri "DendroPy" version))
2029 (sha256
2030 (base32
2031 "15c7s3d5gf19ljsxvq5advaa752wfi7pwrdjyhzmg85hccyvp47p"))
2032 (patches (search-patches "python-dendropy-fix-tests.patch"))))
2033 (build-system python-build-system)
2034 (home-page "http://packages.python.org/DendroPy/")
2035 (synopsis "Library for phylogenetics and phylogenetic computing")
2036 (description
2037 "DendroPy is a library for phylogenetics and phylogenetic computing: reading,
2038 writing, simulation, processing and manipulation of phylogenetic
2039 trees (phylogenies) and characters.")
2040 (license license:bsd-3)
2041 (properties `((python2-variant . ,(delay python2-dendropy))))))
2042
2043 (define-public python2-dendropy
2044 (let ((base (package-with-python2 (strip-python2-variant python-dendropy))))
2045 (package
2046 (inherit base)
2047 (arguments
2048 `(#:python ,python-2
2049 #:phases
2050 (modify-phases %standard-phases
2051 (replace 'check
2052 ;; There is currently a test failure that only happens on some
2053 ;; systems, and only using "setup.py test"
2054 (lambda _ (zero? (system* "nosetests")))))))
2055 (native-inputs `(("python2-nose" ,python2-nose)
2056 ,@(package-native-inputs base))))))
2057
2058 (define-public python-py2bit
2059 (package
2060 (name "python-py2bit")
2061 (version "0.2.1")
2062 (source
2063 (origin
2064 (method url-fetch)
2065 (uri (pypi-uri "py2bit" version))
2066 (sha256
2067 (base32
2068 "1cdf4qlmgwsh1f4k0wdv2sr8x9qn4366p0k3614vbd0fpqiarxrl"))))
2069 (build-system python-build-system)
2070 (home-page "https://github.com/dpryan79/py2bit")
2071 (synopsis "Access 2bit files using lib2bit")
2072 (description
2073 "This package provides Python bindings for lib2bit to access 2bit files
2074 with Python.")
2075 (license license:expat)))
2076
2077 (define-public deeptools
2078 (package
2079 (name "deeptools")
2080 (version "2.5.1")
2081 (source (origin
2082 (method url-fetch)
2083 (uri (string-append "https://github.com/fidelram/deepTools/"
2084 "archive/" version ".tar.gz"))
2085 (file-name (string-append name "-" version ".tar.gz"))
2086 (sha256
2087 (base32
2088 "1q8i12l2gvk4n2s8lhyzwhh9g4qbc8lrk5l7maz00yvd5g6z5540"))))
2089 (build-system python-build-system)
2090 (inputs
2091 `(("python-scipy" ,python-scipy)
2092 ("python-numpy" ,python-numpy)
2093 ("python-numpydoc" ,python-numpydoc)
2094 ("python-matplotlib" ,python-matplotlib)
2095 ("python-pysam" ,python-pysam)
2096 ("python-py2bit" ,python-py2bit)
2097 ("python-pybigwig" ,python-pybigwig)))
2098 (native-inputs
2099 `(("python-mock" ,python-mock) ;for tests
2100 ("python-nose" ,python-nose) ;for tests
2101 ("python-pytz" ,python-pytz))) ;for tests
2102 (home-page "https://github.com/fidelram/deepTools")
2103 (synopsis "Tools for normalizing and visualizing deep-sequencing data")
2104 (description
2105 "DeepTools addresses the challenge of handling the large amounts of data
2106 that are now routinely generated from DNA sequencing centers. To do so,
2107 deepTools contains useful modules to process the mapped reads data to create
2108 coverage files in standard bedGraph and bigWig file formats. By doing so,
2109 deepTools allows the creation of normalized coverage files or the comparison
2110 between two files (for example, treatment and control). Finally, using such
2111 normalized and standardized files, multiple visualizations can be created to
2112 identify enrichments with functional annotations of the genome.")
2113 (license license:gpl3+)))
2114
2115 (define-public diamond
2116 (package
2117 (name "diamond")
2118 (version "0.9.10")
2119 (source (origin
2120 (method url-fetch)
2121 (uri (string-append
2122 "https://github.com/bbuchfink/diamond/archive/v"
2123 version ".tar.gz"))
2124 (file-name (string-append name "-" version ".tar.gz"))
2125 (sha256
2126 (base32
2127 "13qqzwg54n5dqh8pm5n3v8x6gqbczzakphwwjix63qv60hcd5bqd"))))
2128 (build-system cmake-build-system)
2129 (arguments
2130 '(#:tests? #f ; no "check" target
2131 #:phases
2132 (modify-phases %standard-phases
2133 (add-after 'unpack 'remove-native-compilation
2134 (lambda _
2135 (substitute* "CMakeLists.txt" (("-march=native") ""))
2136 #t)))))
2137 (inputs
2138 `(("zlib" ,zlib)))
2139 (home-page "https://github.com/bbuchfink/diamond")
2140 (synopsis "Accelerated BLAST compatible local sequence aligner")
2141 (description
2142 "DIAMOND is a BLAST-compatible local aligner for mapping protein and
2143 translated DNA query sequences against a protein reference database (BLASTP
2144 and BLASTX alignment mode). The speedup over BLAST is up to 20,000 on short
2145 reads at a typical sensitivity of 90-99% relative to BLAST depending on the
2146 data and settings.")
2147 (license license:agpl3+)))
2148
2149 (define-public discrover
2150 (package
2151 (name "discrover")
2152 (version "1.6.0")
2153 (source
2154 (origin
2155 (method url-fetch)
2156 (uri (string-append "https://github.com/maaskola/discrover/archive/"
2157 version ".tar.gz"))
2158 (file-name (string-append name "-" version ".tar.gz"))
2159 (sha256
2160 (base32
2161 "0rah9ja4m0rl5mldd6vag9rwrivw1zrqxssfq8qx64m7961fp68k"))))
2162 (build-system cmake-build-system)
2163 (arguments
2164 `(#:tests? #f ; there are no tests
2165 #:phases
2166 (modify-phases %standard-phases
2167 (add-after 'unpack 'add-missing-includes
2168 (lambda _
2169 (substitute* "src/executioninformation.hpp"
2170 (("#define EXECUTIONINFORMATION_HPP" line)
2171 (string-append line "\n#include <random>")))
2172 (substitute* "src/plasma/fasta.hpp"
2173 (("#define FASTA_HPP" line)
2174 (string-append line "\n#include <random>")))
2175 #t)))))
2176 (inputs
2177 `(("boost" ,boost)
2178 ("cairo" ,cairo)))
2179 (native-inputs
2180 `(("texlive" ,texlive)
2181 ("imagemagick" ,imagemagick)))
2182 (home-page "http://dorina.mdc-berlin.de/public/rajewsky/discrover/")
2183 (synopsis "Discover discriminative nucleotide sequence motifs")
2184 (description "Discrover is a motif discovery method to find binding sites
2185 of nucleic acid binding proteins.")
2186 (license license:gpl3+)))
2187
2188 (define-public eigensoft
2189 (let ((revision "1")
2190 (commit "b14d1e202e21e532536ff8004f0419cd5e259dc7"))
2191 (package
2192 (name "eigensoft")
2193 (version (string-append "6.1.2-"
2194 revision "."
2195 (string-take commit 9)))
2196 (source
2197 (origin
2198 (method git-fetch)
2199 (uri (git-reference
2200 (url "https://github.com/DReichLab/EIG.git")
2201 (commit commit)))
2202 (file-name (string-append "eigensoft-" commit "-checkout"))
2203 (sha256
2204 (base32
2205 "0f5m6k2j5c16xc3xbywcs989xyc26ncy1zfzp9j9n55n9r4xcaiq"))
2206 (modules '((guix build utils)))
2207 ;; Remove pre-built binaries.
2208 (snippet '(begin
2209 (delete-file-recursively "bin")
2210 (mkdir "bin")
2211 #t))))
2212 (build-system gnu-build-system)
2213 (arguments
2214 `(#:tests? #f ; There are no tests.
2215 #:make-flags '("CC=gcc")
2216 #:phases
2217 (modify-phases %standard-phases
2218 ;; There is no configure phase, but the Makefile is in a
2219 ;; sub-directory.
2220 (replace 'configure
2221 (lambda _
2222 (chdir "src")
2223 ;; The link flags are incomplete.
2224 (substitute* "Makefile"
2225 (("-lgsl") "-lgsl -lm -llapack -llapacke -lpthread"))
2226 #t))
2227 ;; The provided install target only copies executables to
2228 ;; the "bin" directory in the build root.
2229 (add-after 'install 'actually-install
2230 (lambda* (#:key outputs #:allow-other-keys)
2231 (let* ((out (assoc-ref outputs "out"))
2232 (bin (string-append out "/bin")))
2233 (for-each (lambda (file)
2234 (install-file file bin))
2235 (find-files "../bin" ".*"))
2236 #t))))))
2237 (inputs
2238 `(("gsl" ,gsl)
2239 ("lapack" ,lapack)
2240 ("openblas" ,openblas)
2241 ("perl" ,perl)
2242 ("gfortran" ,gfortran "lib")))
2243 (home-page "https://github.com/DReichLab/EIG")
2244 (synopsis "Tools for population genetics")
2245 (description "The EIGENSOFT package provides tools for population
2246 genetics and stratification correction. EIGENSOFT implements methods commonly
2247 used in population genetics analyses such as PCA, computation of Tracy-Widom
2248 statistics, and finding related individuals in structured populations. It
2249 comes with a built-in plotting script and supports multiple file formats and
2250 quantitative phenotypes.")
2251 ;; The license of the eigensoft tools is Expat, but since it's
2252 ;; linking with the GNU Scientific Library (GSL) the effective
2253 ;; license is the GPL.
2254 (license license:gpl3+))))
2255
2256 (define-public edirect
2257 (package
2258 (name "edirect")
2259 (version "4.10")
2260 (source (origin
2261 (method url-fetch)
2262 (uri (string-append "ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/"
2263 "versions/2016-05-03/edirect.tar.gz"))
2264 (sha256
2265 (base32
2266 "15zsprak5yh8c1yrz4r1knmb5s8qcmdid4xdhkh3lqcv64l60hli"))))
2267 (build-system perl-build-system)
2268 (arguments
2269 `(#:tests? #f ;no "check" target
2270 #:phases
2271 (modify-phases %standard-phases
2272 (delete 'configure)
2273 (delete 'build)
2274 (replace 'install
2275 (lambda* (#:key outputs #:allow-other-keys)
2276 (let ((target (string-append (assoc-ref outputs "out")
2277 "/bin")))
2278 (mkdir-p target)
2279 (install-file "edirect.pl" target)
2280 #t)))
2281 (add-after
2282 'install 'wrap-program
2283 (lambda* (#:key inputs outputs #:allow-other-keys)
2284 ;; Make sure 'edirect.pl' finds all perl inputs at runtime.
2285 (let* ((out (assoc-ref outputs "out"))
2286 (path (getenv "PERL5LIB")))
2287 (wrap-program (string-append out "/bin/edirect.pl")
2288 `("PERL5LIB" ":" prefix (,path)))))))))
2289 (inputs
2290 `(("perl-html-parser" ,perl-html-parser)
2291 ("perl-encode-locale" ,perl-encode-locale)
2292 ("perl-file-listing" ,perl-file-listing)
2293 ("perl-html-tagset" ,perl-html-tagset)
2294 ("perl-html-tree" ,perl-html-tree)
2295 ("perl-http-cookies" ,perl-http-cookies)
2296 ("perl-http-date" ,perl-http-date)
2297 ("perl-http-message" ,perl-http-message)
2298 ("perl-http-negotiate" ,perl-http-negotiate)
2299 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
2300 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
2301 ("perl-net-http" ,perl-net-http)
2302 ("perl-uri" ,perl-uri)
2303 ("perl-www-robotrules" ,perl-www-robotrules)
2304 ("perl" ,perl)))
2305 (home-page "http://www.ncbi.nlm.nih.gov/books/NBK179288/")
2306 (synopsis "Tools for accessing the NCBI's set of databases")
2307 (description
2308 "Entrez Direct (EDirect) is a method for accessing the National Center
2309 for Biotechnology Information's (NCBI) set of interconnected
2310 databases (publication, sequence, structure, gene, variation, expression,
2311 etc.) from a terminal. Functions take search terms from command-line
2312 arguments. Individual operations are combined to build multi-step queries.
2313 Record retrieval and formatting normally complete the process.
2314
2315 EDirect also provides an argument-driven function that simplifies the
2316 extraction of data from document summaries or other results that are returned
2317 in structured XML format. This can eliminate the need for writing custom
2318 software to answer ad hoc questions.")
2319 (license license:public-domain)))
2320
2321 (define-public exonerate
2322 (package
2323 (name "exonerate")
2324 (version "2.4.0")
2325 (source
2326 (origin
2327 (method url-fetch)
2328 (uri
2329 (string-append
2330 "http://ftp.ebi.ac.uk/pub/software/vertebrategenomics/exonerate/"
2331 "exonerate-" version ".tar.gz"))
2332 (sha256
2333 (base32
2334 "0hj0m9xygiqsdxvbg79wq579kbrx1mdrabi2bzqz2zn9qwfjcjgq"))))
2335 (build-system gnu-build-system)
2336 (arguments
2337 `(#:parallel-build? #f)) ; Building in parallel fails on some machines.
2338 (native-inputs
2339 `(("pkg-config" ,pkg-config)))
2340 (inputs
2341 `(("glib" ,glib)))
2342 (home-page
2343 "https://www.ebi.ac.uk/about/vertebrate-genomics/software/exonerate")
2344 (synopsis "Generic tool for biological sequence alignment")
2345 (description
2346 "Exonerate is a generic tool for pairwise sequence comparison. It allows
2347 the alignment of sequences using a many alignment models, either exhaustive
2348 dynamic programming or a variety of heuristics.")
2349 (license license:gpl3)))
2350
2351 (define-public express
2352 (package
2353 (name "express")
2354 (version "1.5.1")
2355 (source (origin
2356 (method url-fetch)
2357 (uri
2358 (string-append
2359 "http://bio.math.berkeley.edu/eXpress/downloads/express-"
2360 version "/express-" version "-src.tgz"))
2361 (sha256
2362 (base32
2363 "03rczxd0gjp2l1jxcmjfmf5j94j77zqyxa6x063zsc585nj40n0c"))))
2364 (build-system cmake-build-system)
2365 (arguments
2366 `(#:tests? #f ;no "check" target
2367 #:phases
2368 (alist-cons-after
2369 'unpack 'use-shared-boost-libs-and-set-bamtools-paths
2370 (lambda* (#:key inputs #:allow-other-keys)
2371 (substitute* "CMakeLists.txt"
2372 (("set\\(Boost_USE_STATIC_LIBS ON\\)")
2373 "set(Boost_USE_STATIC_LIBS OFF)")
2374 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/bamtools/include")
2375 (string-append (assoc-ref inputs "bamtools") "/include/bamtools")))
2376 (substitute* "src/CMakeLists.txt"
2377 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/\\.\\./bamtools/lib")
2378 (string-append (assoc-ref inputs "bamtools") "/lib/bamtools")))
2379 #t)
2380 %standard-phases)))
2381 (inputs
2382 `(("boost" ,boost)
2383 ("bamtools" ,bamtools)
2384 ("protobuf" ,protobuf)
2385 ("zlib" ,zlib)))
2386 (home-page "http://bio.math.berkeley.edu/eXpress")
2387 (synopsis "Streaming quantification for high-throughput genomic sequencing")
2388 (description
2389 "eXpress is a streaming tool for quantifying the abundances of a set of
2390 target sequences from sampled subsequences. Example applications include
2391 transcript-level RNA-Seq quantification, allele-specific/haplotype expression
2392 analysis (from RNA-Seq), transcription factor binding quantification in
2393 ChIP-Seq, and analysis of metagenomic data.")
2394 (license license:artistic2.0)))
2395
2396 (define-public express-beta-diversity
2397 (package
2398 (name "express-beta-diversity")
2399 (version "1.0.7")
2400 (source (origin
2401 (method url-fetch)
2402 (uri
2403 (string-append
2404 "https://github.com/dparks1134/ExpressBetaDiversity/archive/v"
2405 version ".tar.gz"))
2406 (file-name (string-append name "-" version ".tar.gz"))
2407 (sha256
2408 (base32
2409 "1djvdlmqvjf6h0zq7w36y8cl5cli6rgj86x65znl48agnwmzxfxr"))))
2410 (build-system gnu-build-system)
2411 (arguments
2412 `(#:phases
2413 (modify-phases %standard-phases
2414 (delete 'configure)
2415 (add-before 'build 'enter-source (lambda _ (chdir "source") #t))
2416 (replace 'check
2417 (lambda _ (zero? (system* "../bin/ExpressBetaDiversity"
2418 "-u"))))
2419 (add-after 'check 'exit-source (lambda _ (chdir "..") #t))
2420 (replace 'install
2421 (lambda* (#:key outputs #:allow-other-keys)
2422 (let ((bin (string-append (assoc-ref outputs "out")
2423 "/bin")))
2424 (mkdir-p bin)
2425 (install-file "scripts/convertToEBD.py" bin)
2426 (install-file "bin/ExpressBetaDiversity" bin)
2427 #t))))))
2428 (inputs
2429 `(("python" ,python-2)))
2430 (home-page "http://kiwi.cs.dal.ca/Software/ExpressBetaDiversity")
2431 (synopsis "Taxon- and phylogenetic-based beta diversity measures")
2432 (description
2433 "Express Beta Diversity (EBD) calculates ecological beta diversity
2434 (dissimilarity) measures between biological communities. EBD implements a
2435 variety of diversity measures including those that make use of phylogenetic
2436 similarity of community members.")
2437 (license license:gpl3+)))
2438
2439 (define-public fasttree
2440 (package
2441 (name "fasttree")
2442 (version "2.1.10")
2443 (source (origin
2444 (method url-fetch)
2445 (uri (string-append
2446 "http://www.microbesonline.org/fasttree/FastTree-"
2447 version ".c"))
2448 (sha256
2449 (base32
2450 "0vcjdvy1j4m702vmak4svbfkrpcw63k7wymfksjp9a982zy8kjsl"))))
2451 (build-system gnu-build-system)
2452 (arguments
2453 `(#:tests? #f ; no "check" target
2454 #:phases
2455 (modify-phases %standard-phases
2456 (delete 'unpack)
2457 (delete 'configure)
2458 (replace 'build
2459 (lambda* (#:key source #:allow-other-keys)
2460 (and (zero? (system* "gcc"
2461 "-O3"
2462 "-finline-functions"
2463 "-funroll-loops"
2464 "-Wall"
2465 "-o"
2466 "FastTree"
2467 source
2468 "-lm"))
2469 (zero? (system* "gcc"
2470 "-DOPENMP"
2471 "-fopenmp"
2472 "-O3"
2473 "-finline-functions"
2474 "-funroll-loops"
2475 "-Wall"
2476 "-o"
2477 "FastTreeMP"
2478 source
2479 "-lm")))))
2480 (replace 'install
2481 (lambda* (#:key outputs #:allow-other-keys)
2482 (let ((bin (string-append (assoc-ref outputs "out")
2483 "/bin")))
2484 (mkdir-p bin)
2485 (install-file "FastTree" bin)
2486 (install-file "FastTreeMP" bin)
2487 #t))))))
2488 (home-page "http://www.microbesonline.org/fasttree")
2489 (synopsis "Infers approximately-maximum-likelihood phylogenetic trees")
2490 (description
2491 "FastTree can handle alignments with up to a million of sequences in a
2492 reasonable amount of time and memory. For large alignments, FastTree is
2493 100-1,000 times faster than PhyML 3.0 or RAxML 7.")
2494 (license license:gpl2+)))
2495
2496 (define-public fastx-toolkit
2497 (package
2498 (name "fastx-toolkit")
2499 (version "0.0.14")
2500 (source (origin
2501 (method url-fetch)
2502 (uri
2503 (string-append
2504 "https://github.com/agordon/fastx_toolkit/releases/download/"
2505 version "/fastx_toolkit-" version ".tar.bz2"))
2506 (sha256
2507 (base32
2508 "01jqzw386873sr0pjp1wr4rn8fsga2vxs1qfmicvx1pjr72007wy"))))
2509 (build-system gnu-build-system)
2510 (inputs
2511 `(("libgtextutils" ,libgtextutils)))
2512 (native-inputs
2513 `(("pkg-config" ,pkg-config)))
2514 (home-page "http://hannonlab.cshl.edu/fastx_toolkit/")
2515 (synopsis "Tools for FASTA/FASTQ file preprocessing")
2516 (description
2517 "The FASTX-Toolkit is a collection of command line tools for Short-Reads
2518 FASTA/FASTQ files preprocessing.
2519
2520 Next-Generation sequencing machines usually produce FASTA or FASTQ files,
2521 containing multiple short-reads sequences. The main processing of such
2522 FASTA/FASTQ files is mapping the sequences to reference genomes. However, it
2523 is sometimes more productive to preprocess the files before mapping the
2524 sequences to the genome---manipulating the sequences to produce better mapping
2525 results. The FASTX-Toolkit tools perform some of these preprocessing tasks.")
2526 (license license:agpl3+)))
2527
2528 (define-public flexbar
2529 (package
2530 (name "flexbar")
2531 (version "2.5")
2532 (source (origin
2533 (method url-fetch)
2534 (uri
2535 (string-append "mirror://sourceforge/flexbar/"
2536 version "/flexbar_v" version "_src.tgz"))
2537 (sha256
2538 (base32
2539 "13jaykc3y1x8y5nn9j8ljnb79s5y51kyxz46hdmvvjj6qhyympmf"))))
2540 (build-system cmake-build-system)
2541 (arguments
2542 `(#:configure-flags (list
2543 (string-append "-DFLEXBAR_BINARY_DIR="
2544 (assoc-ref %outputs "out")
2545 "/bin/"))
2546 #:phases
2547 (alist-replace
2548 'check
2549 (lambda* (#:key outputs #:allow-other-keys)
2550 (setenv "PATH" (string-append
2551 (assoc-ref outputs "out") "/bin:"
2552 (getenv "PATH")))
2553 (chdir "../flexbar_v2.5_src/test")
2554 (zero? (system* "bash" "flexbar_validate.sh")))
2555 (alist-delete 'install %standard-phases))))
2556 (inputs
2557 `(("tbb" ,tbb)
2558 ("zlib" ,zlib)))
2559 (native-inputs
2560 `(("pkg-config" ,pkg-config)
2561 ("seqan" ,seqan)))
2562 (home-page "http://flexbar.sourceforge.net")
2563 (synopsis "Barcode and adapter removal tool for sequencing platforms")
2564 (description
2565 "Flexbar preprocesses high-throughput nucleotide sequencing data
2566 efficiently. It demultiplexes barcoded runs and removes adapter sequences.
2567 Moreover, trimming and filtering features are provided. Flexbar increases
2568 read mapping rates and improves genome and transcriptome assemblies. It
2569 supports next-generation sequencing data in fasta/q and csfasta/q format from
2570 Illumina, Roche 454, and the SOLiD platform.")
2571 (license license:gpl3)))
2572
2573 (define-public fraggenescan
2574 (package
2575 (name "fraggenescan")
2576 (version "1.30")
2577 (source
2578 (origin
2579 (method url-fetch)
2580 (uri
2581 (string-append "mirror://sourceforge/fraggenescan/"
2582 "FragGeneScan" version ".tar.gz"))
2583 (sha256
2584 (base32 "158dcnwczgcyhwm4qlx19sanrwgdpzf6bn2y57mbpx55lkgz1mzj"))))
2585 (build-system gnu-build-system)
2586 (arguments
2587 `(#:phases
2588 (modify-phases %standard-phases
2589 (delete 'configure)
2590 (add-before 'build 'patch-paths
2591 (lambda* (#:key outputs #:allow-other-keys)
2592 (let* ((out (string-append (assoc-ref outputs "out")))
2593 (share (string-append out "/share/fraggenescan/")))
2594 (substitute* "run_FragGeneScan.pl"
2595 (("system\\(\"rm")
2596 (string-append "system(\"" (which "rm")))
2597 (("system\\(\"mv")
2598 (string-append "system(\"" (which "mv")))
2599 (("\\\"awk") (string-append "\"" (which "awk")))
2600 ;; This script and other programs expect the training files
2601 ;; to be in the non-standard location bin/train/XXX. Change
2602 ;; this to be share/fraggenescan/train/XXX instead.
2603 (("^\\$train.file = \\$dir.*")
2604 (string-append "$train_file = \""
2605 share
2606 "train/\".$FGS_train_file;")))
2607 (substitute* "run_hmm.c"
2608 (("^ strcat\\(train_dir, \\\"train/\\\"\\);")
2609 (string-append " strcpy(train_dir, \"" share "/train/\");"))))
2610 #t))
2611 (replace 'build
2612 (lambda _ (and (zero? (system* "make" "clean"))
2613 (zero? (system* "make" "fgs")))))
2614 (replace 'install
2615 (lambda* (#:key outputs #:allow-other-keys)
2616 (let* ((out (string-append (assoc-ref outputs "out")))
2617 (bin (string-append out "/bin/"))
2618 (share (string-append out "/share/fraggenescan/train")))
2619 (install-file "run_FragGeneScan.pl" bin)
2620 (install-file "FragGeneScan" bin)
2621 (copy-recursively "train" share))))
2622 (delete 'check)
2623 (add-after 'install 'post-install-check
2624 ;; In lieu of 'make check', run one of the examples and check the
2625 ;; output files gets created.
2626 (lambda* (#:key outputs #:allow-other-keys)
2627 (let* ((out (string-append (assoc-ref outputs "out")))
2628 (bin (string-append out "/bin/"))
2629 (frag (string-append bin "run_FragGeneScan.pl")))
2630 (and (zero? (system* frag ; Test complete genome.
2631 "-genome=./example/NC_000913.fna"
2632 "-out=./test2"
2633 "-complete=1"
2634 "-train=complete"))
2635 (file-exists? "test2.faa")
2636 (file-exists? "test2.ffn")
2637 (file-exists? "test2.gff")
2638 (file-exists? "test2.out")
2639 (zero? (system* ; Test incomplete sequences.
2640 frag
2641 "-genome=./example/NC_000913-fgs.ffn"
2642 "-out=out"
2643 "-complete=0"
2644 "-train=454_30")))))))))
2645 (inputs
2646 `(("perl" ,perl)
2647 ("python" ,python-2))) ;not compatible with python 3.
2648 (home-page "https://sourceforge.net/projects/fraggenescan/")
2649 (synopsis "Finds potentially fragmented genes in short reads")
2650 (description
2651 "FragGeneScan is a program for predicting bacterial and archaeal genes in
2652 short and error-prone DNA sequencing reads. It can also be applied to predict
2653 genes in incomplete assemblies or complete genomes.")
2654 ;; GPL3+ according to private correspondense with the authors.
2655 (license license:gpl3+)))
2656
2657 (define-public fxtract
2658 (let ((util-commit "776ca85a18a47492af3794745efcb4a905113115"))
2659 (package
2660 (name "fxtract")
2661 (version "2.3")
2662 (source
2663 (origin
2664 (method url-fetch)
2665 (uri (string-append
2666 "https://github.com/ctSkennerton/fxtract/archive/"
2667 version ".tar.gz"))
2668 (file-name (string-append "ctstennerton-util-"
2669 (string-take util-commit 7)
2670 "-checkout"))
2671 (sha256
2672 (base32
2673 "0275cfdhis8517hm01is62062swmi06fxzifq7mr3knbbxjlaiwj"))))
2674 (build-system gnu-build-system)
2675 (arguments
2676 `(#:make-flags (list
2677 (string-append "PREFIX=" (assoc-ref %outputs "out"))
2678 "CC=gcc")
2679 #:test-target "fxtract_test"
2680 #:phases
2681 (modify-phases %standard-phases
2682 (delete 'configure)
2683 (add-before 'build 'copy-util
2684 (lambda* (#:key inputs #:allow-other-keys)
2685 (rmdir "util")
2686 (copy-recursively (assoc-ref inputs "ctskennerton-util") "util")
2687 #t))
2688 ;; Do not use make install as this requires additional dependencies.
2689 (replace 'install
2690 (lambda* (#:key outputs #:allow-other-keys)
2691 (let* ((out (assoc-ref outputs "out"))
2692 (bin (string-append out"/bin")))
2693 (install-file "fxtract" bin)
2694 #t))))))
2695 (inputs
2696 `(("pcre" ,pcre)
2697 ("zlib" ,zlib)))
2698 (native-inputs
2699 ;; ctskennerton-util is licensed under GPL2.
2700 `(("ctskennerton-util"
2701 ,(origin
2702 (method git-fetch)
2703 (uri (git-reference
2704 (url "https://github.com/ctSkennerton/util.git")
2705 (commit util-commit)))
2706 (file-name (string-append
2707 "ctstennerton-util-" util-commit "-checkout"))
2708 (sha256
2709 (base32
2710 "0cls1hd4vgj3f36fpzzg4xc77d6f3hpc60cbpfmn2gdr7ykzzad7"))))))
2711 (home-page "https://github.com/ctSkennerton/fxtract")
2712 (synopsis "Extract sequences from FASTA and FASTQ files")
2713 (description
2714 "Fxtract extracts sequences from a protein or nucleotide fastx (FASTA
2715 or FASTQ) file given a subsequence. It uses a simple substring search for
2716 basic tasks but can change to using POSIX regular expressions, PCRE, hash
2717 lookups or multi-pattern searching as required. By default fxtract looks in
2718 the sequence of each record but can also be told to look in the header,
2719 comment or quality sections.")
2720 ;; 'util' requires SSE instructions.
2721 (supported-systems '("x86_64-linux"))
2722 (license license:expat))))
2723
2724 (define-public gemma
2725 (package
2726 (name "gemma")
2727 (version "0.96")
2728 (source (origin
2729 (method url-fetch)
2730 (uri (string-append "https://github.com/xiangzhou/GEMMA/archive/v"
2731 version ".tar.gz"))
2732 (file-name (string-append name "-" version ".tar.gz"))
2733 (sha256
2734 (base32
2735 "055ynn16gd12pf78n4vr2a9jlwsbwzajpdnf2y2yilg1krfff222"))
2736 (patches (search-patches "gemma-intel-compat.patch"))))
2737 (inputs
2738 `(("gsl" ,gsl)
2739 ("lapack" ,lapack)
2740 ("zlib" ,zlib)))
2741 (build-system gnu-build-system)
2742 (arguments
2743 `(#:make-flags
2744 '(,@(match (%current-system)
2745 ("x86_64-linux"
2746 '("FORCE_DYNAMIC=1"))
2747 ("i686-linux"
2748 '("FORCE_DYNAMIC=1" "FORCE_32BIT=1"))
2749 (_
2750 '("FORCE_DYNAMIC=1" "NO_INTEL_COMPAT=1"))))
2751 #:phases
2752 (modify-phases %standard-phases
2753 (delete 'configure)
2754 (add-before 'build 'bin-mkdir
2755 (lambda _
2756 (mkdir-p "bin")
2757 #t))
2758 (replace 'install
2759 (lambda* (#:key outputs #:allow-other-keys)
2760 (let ((out (assoc-ref outputs "out")))
2761 (install-file "bin/gemma"
2762 (string-append
2763 out "/bin")))
2764 #t)))
2765 #:tests? #f)) ; no tests included yet
2766 (home-page "https://github.com/xiangzhou/GEMMA")
2767 (synopsis "Tool for genome-wide efficient mixed model association")
2768 (description
2769 "Genome-wide Efficient Mixed Model Association (GEMMA) provides a
2770 standard linear mixed model resolver with application in genome-wide
2771 association studies (GWAS).")
2772 (license license:gpl3)))
2773
2774 (define-public grit
2775 (package
2776 (name "grit")
2777 (version "2.0.2")
2778 (source (origin
2779 (method url-fetch)
2780 (uri (string-append
2781 "https://github.com/nboley/grit/archive/"
2782 version ".tar.gz"))
2783 (file-name (string-append name "-" version ".tar.gz"))
2784 (sha256
2785 (base32
2786 "157in84dj70wimbind3x7sy1whs3h57qfgcnj2s6lrd38fbrb7mj"))))
2787 (build-system python-build-system)
2788 (arguments
2789 `(#:python ,python-2
2790 #:phases
2791 (alist-cons-after
2792 'unpack 'generate-from-cython-sources
2793 (lambda* (#:key inputs outputs #:allow-other-keys)
2794 ;; Delete these C files to force fresh generation from pyx sources.
2795 (delete-file "grit/sparsify_support_fns.c")
2796 (delete-file "grit/call_peaks_support_fns.c")
2797 (substitute* "setup.py"
2798 (("Cython.Setup") "Cython.Build")
2799 ;; Add numpy include path to fix compilation
2800 (("pyx\", \\]")
2801 (string-append "pyx\", ], include_dirs = ['"
2802 (assoc-ref inputs "python-numpy")
2803 "/lib/python2.7/site-packages/numpy/core/include/"
2804 "']"))) #t)
2805 %standard-phases)))
2806 (inputs
2807 `(("python-scipy" ,python2-scipy)
2808 ("python-numpy" ,python2-numpy)
2809 ("python-pysam" ,python2-pysam)
2810 ("python-networkx" ,python2-networkx)))
2811 (native-inputs
2812 `(("python-cython" ,python2-cython)))
2813 (home-page "http://grit-bio.org")
2814 (synopsis "Tool for integrative analysis of RNA-seq type assays")
2815 (description
2816 "GRIT is designed to use RNA-seq, TES, and TSS data to build and quantify
2817 full length transcript models. When none of these data sources are available,
2818 GRIT can be run by providing a candidate set of TES or TSS sites. In
2819 addition, GRIT can merge in reference junctions and gene boundaries. GRIT can
2820 also be run in quantification mode, where it uses a provided GTF file and just
2821 estimates transcript expression.")
2822 (license license:gpl3+)))
2823
2824 (define-public hisat
2825 (package
2826 (name "hisat")
2827 (version "0.1.4")
2828 (source (origin
2829 (method url-fetch)
2830 (uri (string-append
2831 "http://ccb.jhu.edu/software/hisat/downloads/hisat-"
2832 version "-beta-source.zip"))
2833 (sha256
2834 (base32
2835 "1k381ydranqxp09yf2y7w1d0chz5d59vb6jchi89hbb0prq19lk5"))))
2836 (build-system gnu-build-system)
2837 (arguments
2838 `(#:tests? #f ;no check target
2839 #:make-flags '("allall"
2840 ;; Disable unsupported `popcnt' instructions on
2841 ;; architectures other than x86_64
2842 ,@(if (string-prefix? "x86_64"
2843 (or (%current-target-system)
2844 (%current-system)))
2845 '()
2846 '("POPCNT_CAPABILITY=0")))
2847 #:phases
2848 (alist-cons-after
2849 'unpack 'patch-sources
2850 (lambda _
2851 ;; XXX Cannot use snippet because zip files are not supported
2852 (substitute* "Makefile"
2853 (("^CC = .*$") "CC = gcc")
2854 (("^CPP = .*$") "CPP = g++")
2855 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
2856 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
2857 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
2858 (substitute* '("hisat-build" "hisat-inspect")
2859 (("/usr/bin/env") (which "env"))))
2860 (alist-replace
2861 'install
2862 (lambda* (#:key outputs #:allow-other-keys)
2863 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
2864 (for-each (lambda (file)
2865 (install-file file bin))
2866 (find-files
2867 "."
2868 "hisat(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))))
2869 (alist-delete 'configure %standard-phases)))))
2870 (native-inputs
2871 `(("unzip" ,unzip)))
2872 (inputs
2873 `(("perl" ,perl)
2874 ("python" ,python)
2875 ("zlib" ,zlib)))
2876 ;; Non-portable SSE instructions are used so building fails on platforms
2877 ;; other than x86_64.
2878 (supported-systems '("x86_64-linux"))
2879 (home-page "http://ccb.jhu.edu/software/hisat/index.shtml")
2880 (synopsis "Hierarchical indexing for spliced alignment of transcripts")
2881 (description
2882 "HISAT is a fast and sensitive spliced alignment program for mapping
2883 RNA-seq reads. In addition to one global FM index that represents a whole
2884 genome, HISAT uses a large set of small FM indexes that collectively cover the
2885 whole genome. These small indexes (called local indexes) combined with
2886 several alignment strategies enable effective alignment of RNA-seq reads, in
2887 particular, reads spanning multiple exons.")
2888 (license license:gpl3+)))
2889
2890 (define-public hisat2
2891 (package
2892 (name "hisat2")
2893 (version "2.0.5")
2894 (source
2895 (origin
2896 (method url-fetch)
2897 ;; FIXME: a better source URL is
2898 ;; (string-append "ftp://ftp.ccb.jhu.edu/pub/infphilo/hisat2"
2899 ;; "/downloads/hisat2-" version "-source.zip")
2900 ;; with hash "0lywnr8kijwsc2aw10dwxic0n0yvip6fl3rjlvc8zzwahamy4x7g"
2901 ;; but it is currently unavailable.
2902 (uri "https://github.com/infphilo/hisat2/archive/cba6e8cb.tar.gz")
2903 (file-name (string-append name "-" version ".tar.gz"))
2904 (sha256
2905 (base32
2906 "1mf2hdsyv7cd97xm9mp9a4qws02yrj95y6w6f6cdwnq0klp81r50"))))
2907 (build-system gnu-build-system)
2908 (arguments
2909 `(#:tests? #f ; no check target
2910 #:make-flags (list "CC=gcc" "CXX=g++" "allall")
2911 #:modules ((guix build gnu-build-system)
2912 (guix build utils)
2913 (srfi srfi-26))
2914 #:phases
2915 (modify-phases %standard-phases
2916 (add-after 'unpack 'make-deterministic
2917 (lambda _
2918 (substitute* "Makefile"
2919 (("`date`") "0"))
2920 #t))
2921 (delete 'configure)
2922 (replace 'install
2923 (lambda* (#:key outputs #:allow-other-keys)
2924 (let* ((out (assoc-ref outputs "out"))
2925 (bin (string-append out "/bin/"))
2926 (doc (string-append out "/share/doc/hisat2/")))
2927 (for-each
2928 (cut install-file <> bin)
2929 (find-files "."
2930 "hisat2(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))
2931 (mkdir-p doc)
2932 (install-file "doc/manual.inc.html" doc))
2933 #t)))))
2934 (native-inputs
2935 `(("unzip" ,unzip) ; needed for archive from ftp
2936 ("perl" ,perl)
2937 ("pandoc" ,ghc-pandoc))) ; for documentation
2938 (home-page "http://ccb.jhu.edu/software/hisat2/index.shtml")
2939 (synopsis "Graph-based alignment of genomic sequencing reads")
2940 (description "HISAT2 is a fast and sensitive alignment program for mapping
2941 next-generation sequencing reads (both DNA and RNA) to a population of human
2942 genomes (as well as to a single reference genome). In addition to using one
2943 global @dfn{graph FM} (GFM) index that represents a population of human
2944 genomes, HISAT2 uses a large set of small GFM indexes that collectively cover
2945 the whole genome. These small indexes, combined with several alignment
2946 strategies, enable rapid and accurate alignment of sequencing reads. This new
2947 indexing scheme is called a @dfn{Hierarchical Graph FM index} (HGFM).")
2948 ;; HISAT2 contains files from Bowtie2, which is released under
2949 ;; GPLv2 or later. The HISAT2 source files are released under
2950 ;; GPLv3 or later.
2951 (license license:gpl3+)))
2952
2953 (define-public hmmer
2954 (package
2955 (name "hmmer")
2956 (version "3.1b2")
2957 (source
2958 (origin
2959 (method url-fetch)
2960 (uri (string-append
2961 "http://eddylab.org/software/hmmer"
2962 (version-prefix version 1) "/"
2963 version "/hmmer-" version ".tar.gz"))
2964 (sha256
2965 (base32
2966 "0djmgc0pfli0jilfx8hql1axhwhqxqb8rxg2r5rg07aw73sfs5nx"))
2967 (patches (search-patches "hmmer-remove-cpu-specificity.patch"))))
2968 (build-system gnu-build-system)
2969 (native-inputs `(("perl" ,perl)))
2970 (home-page "http://hmmer.org/")
2971 (synopsis "Biosequence analysis using profile hidden Markov models")
2972 (description
2973 "HMMER is used for searching sequence databases for homologs of protein
2974 sequences, and for making protein sequence alignments. It implements methods
2975 using probabilistic models called profile hidden Markov models (profile
2976 HMMs).")
2977 (license (list license:gpl3+
2978 ;; The bundled library 'easel' is distributed
2979 ;; under The Janelia Farm Software License.
2980 (license:non-copyleft
2981 "file://easel/LICENSE"
2982 "See easel/LICENSE in the distribution.")))))
2983
2984 (define-public htseq
2985 (package
2986 (name "htseq")
2987 (version "0.9.1")
2988 (source (origin
2989 (method url-fetch)
2990 (uri (pypi-uri "HTSeq" version))
2991 (sha256
2992 (base32
2993 "11flgb1381xdhk43bzbfm3vhnszkpqg6jk76rpa5xd1zbrvvlnxg"))))
2994 (build-system python-build-system)
2995 (native-inputs
2996 `(("python-cython" ,python-cython)))
2997 ;; Numpy needs to be propagated when htseq is used as a Python library.
2998 (propagated-inputs
2999 `(("python-numpy" ,python-numpy)))
3000 (inputs
3001 `(("python-pysam" ,python-pysam)
3002 ("python-matplotlib" ,python-matplotlib)))
3003 (home-page "http://www-huber.embl.de/users/anders/HTSeq/")
3004 (synopsis "Analysing high-throughput sequencing data with Python")
3005 (description
3006 "HTSeq is a Python package that provides infrastructure to process data
3007 from high-throughput sequencing assays.")
3008 (license license:gpl3+)))
3009
3010 (define-public python2-htseq
3011 (package-with-python2 htseq))
3012
3013 (define-public java-htsjdk
3014 (package
3015 (name "java-htsjdk")
3016 (version "1.129")
3017 (source (origin
3018 (method url-fetch)
3019 (uri (string-append
3020 "https://github.com/samtools/htsjdk/archive/"
3021 version ".tar.gz"))
3022 (file-name (string-append name "-" version ".tar.gz"))
3023 (sha256
3024 (base32
3025 "0asdk9b8jx2ij7yd6apg9qx03li8q7z3ml0qy2r2qczkra79y6fw"))
3026 (modules '((guix build utils)))
3027 ;; remove build dependency on git
3028 (snippet '(substitute* "build.xml"
3029 (("failifexecutionfails=\"true\"")
3030 "failifexecutionfails=\"false\"")))))
3031 (build-system ant-build-system)
3032 (arguments
3033 `(#:tests? #f ; test require Internet access
3034 #:make-flags
3035 (list (string-append "-Ddist=" (assoc-ref %outputs "out")
3036 "/share/java/htsjdk/"))
3037 #:build-target "all"
3038 #:phases
3039 (modify-phases %standard-phases
3040 ;; The build phase also installs the jars
3041 (delete 'install))))
3042 (home-page "http://samtools.github.io/htsjdk/")
3043 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3044 (description
3045 "HTSJDK is an implementation of a unified Java library for accessing
3046 common file formats, such as SAM and VCF, used for high-throughput
3047 sequencing (HTS) data. There are also an number of useful utilities for
3048 manipulating HTS data.")
3049 (license license:expat)))
3050
3051 (define-public htslib
3052 (package
3053 (name "htslib")
3054 (version "1.5")
3055 (source (origin
3056 (method url-fetch)
3057 (uri (string-append
3058 "https://github.com/samtools/htslib/releases/download/"
3059 version "/htslib-" version ".tar.bz2"))
3060 (sha256
3061 (base32
3062 "0bcjmnbwp2bib1z1bkrp95w9v2syzdwdfqww10mkb1hxlmg52ax0"))))
3063 (build-system gnu-build-system)
3064 (arguments
3065 `(#:phases
3066 (modify-phases %standard-phases
3067 (add-after
3068 'unpack 'patch-tests
3069 (lambda _
3070 (substitute* "test/test.pl"
3071 (("/bin/bash") (which "bash")))
3072 #t)))))
3073 (inputs
3074 `(("openssl" ,openssl)
3075 ("curl" ,curl)
3076 ("zlib" ,zlib)))
3077 (native-inputs
3078 `(("perl" ,perl)))
3079 (home-page "http://www.htslib.org")
3080 (synopsis "C library for reading/writing high-throughput sequencing data")
3081 (description
3082 "HTSlib is a C library for reading/writing high-throughput sequencing
3083 data. It also provides the bgzip, htsfile, and tabix utilities.")
3084 ;; Files under cram/ are released under the modified BSD license;
3085 ;; the rest is released under the Expat license
3086 (license (list license:expat license:bsd-3))))
3087
3088 ;; This package should be removed once no packages rely upon it.
3089 (define htslib-1.3
3090 (package
3091 (inherit htslib)
3092 (version "1.3.1")
3093 (source (origin
3094 (method url-fetch)
3095 (uri (string-append
3096 "https://github.com/samtools/htslib/releases/download/"
3097 version "/htslib-" version ".tar.bz2"))
3098 (sha256
3099 (base32
3100 "1rja282fwdc25ql6izkhdyh8ppw8x2fs0w0js78zgkmqjlikmma9"))))))
3101
3102 (define-public idr
3103 (package
3104 (name "idr")
3105 (version "2.0.0")
3106 (source (origin
3107 (method url-fetch)
3108 (uri (string-append
3109 "https://github.com/nboley/idr/archive/"
3110 version ".tar.gz"))
3111 (file-name (string-append name "-" version ".tar.gz"))
3112 (sha256
3113 (base32
3114 "1k3x44biak00aiv3hpm1yd6nn4hhp7n0qnbs3zh2q9sw7qr1qj5r"))))
3115 (build-system python-build-system)
3116 (arguments
3117 `(#:tests? #f)) ; FIXME: "ImportError: No module named 'utility'"
3118 (propagated-inputs
3119 `(("python-scipy" ,python-scipy)
3120 ("python-sympy" ,python-sympy)
3121 ("python-numpy" ,python-numpy)
3122 ("python-matplotlib" ,python-matplotlib)))
3123 (native-inputs
3124 `(("python-cython" ,python-cython)))
3125 (home-page "https://github.com/nboley/idr")
3126 (synopsis "Tool to measure the irreproducible discovery rate (IDR)")
3127 (description
3128 "The IDR (Irreproducible Discovery Rate) framework is a unified approach
3129 to measure the reproducibility of findings identified from replicate
3130 experiments and provide highly stable thresholds based on reproducibility.")
3131 (license license:gpl3+)))
3132
3133 (define-public jellyfish
3134 (package
3135 (name "jellyfish")
3136 (version "2.2.4")
3137 (source (origin
3138 (method url-fetch)
3139 (uri (string-append "https://github.com/gmarcais/Jellyfish/"
3140 "releases/download/v" version
3141 "/jellyfish-" version ".tar.gz"))
3142 (sha256
3143 (base32
3144 "0a6xnynqy2ibfbfz86b9g2m2dgm7f1469pmymkpam333gi3p26nk"))))
3145 (build-system gnu-build-system)
3146 (outputs '("out" ;for library
3147 "ruby" ;for Ruby bindings
3148 "python")) ;for Python bindings
3149 (arguments
3150 `(#:configure-flags
3151 (list (string-append "--enable-ruby-binding="
3152 (assoc-ref %outputs "ruby"))
3153 (string-append "--enable-python-binding="
3154 (assoc-ref %outputs "python")))
3155 #:phases
3156 (modify-phases %standard-phases
3157 (add-before 'check 'set-SHELL-variable
3158 (lambda _
3159 ;; generator_manager.hpp either uses /bin/sh or $SHELL
3160 ;; to run tests.
3161 (setenv "SHELL" (which "bash"))
3162 #t)))))
3163 (native-inputs
3164 `(("bc" ,bc)
3165 ("time" ,time)
3166 ("ruby" ,ruby)
3167 ("python" ,python-2)))
3168 (synopsis "Tool for fast counting of k-mers in DNA")
3169 (description
3170 "Jellyfish is a tool for fast, memory-efficient counting of k-mers in
3171 DNA. A k-mer is a substring of length k, and counting the occurrences of all
3172 such substrings is a central step in many analyses of DNA sequence. Jellyfish
3173 is a command-line program that reads FASTA and multi-FASTA files containing
3174 DNA sequences. It outputs its k-mer counts in a binary format, which can be
3175 translated into a human-readable text format using the @code{jellyfish dump}
3176 command, or queried for specific k-mers with @code{jellyfish query}.")
3177 (home-page "http://www.genome.umd.edu/jellyfish.html")
3178 ;; From their website: JELLYFISH runs on 64-bit Intel-compatible processors
3179 (supported-systems '("x86_64-linux"))
3180 ;; The combined work is published under the GPLv3 or later. Individual
3181 ;; files such as lib/jsoncpp.cpp are released under the Expat license.
3182 (license (list license:gpl3+ license:expat))))
3183
3184 (define-public khmer
3185 (package
3186 (name "khmer")
3187 (version "2.0")
3188 (source
3189 (origin
3190 (method url-fetch)
3191 (uri (pypi-uri "khmer" version))
3192 (sha256
3193 (base32
3194 "0wb05shqh77v00256qlm68vbbx3kl76fyzihszbz5nhanl4ni33a"))
3195 (patches (search-patches "khmer-use-libraries.patch"))))
3196 (build-system python-build-system)
3197 (arguments
3198 `(#:phases
3199 (modify-phases %standard-phases
3200 (add-after 'unpack 'set-paths
3201 (lambda* (#:key inputs outputs #:allow-other-keys)
3202 ;; Delete bundled libraries.
3203 (delete-file-recursively "third-party/zlib")
3204 (delete-file-recursively "third-party/bzip2")
3205 ;; Replace bundled seqan.
3206 (let* ((seqan-all "third-party/seqan")
3207 (seqan-include (string-append
3208 seqan-all "/core/include")))
3209 (delete-file-recursively seqan-all)
3210 (copy-recursively (string-append (assoc-ref inputs "seqan")
3211 "/include/seqan")
3212 (string-append seqan-include "/seqan")))
3213 ;; We do not replace the bundled MurmurHash as the canonical
3214 ;; repository for this code 'SMHasher' is unsuitable for
3215 ;; providing a library. See
3216 ;; https://lists.gnu.org/archive/html/guix-devel/2016-06/msg00977.html
3217 #t))
3218 (add-after 'unpack 'set-cc
3219 (lambda _
3220 (setenv "CC" "gcc")
3221 #t))
3222 ;; It is simpler to test after installation.
3223 (delete 'check)
3224 (add-after 'install 'post-install-check
3225 (lambda* (#:key inputs outputs #:allow-other-keys)
3226 (let ((out (assoc-ref outputs "out")))
3227 (setenv "PATH"
3228 (string-append
3229 (getenv "PATH")
3230 ":"
3231 (assoc-ref outputs "out")
3232 "/bin"))
3233 (setenv "PYTHONPATH"
3234 (string-append
3235 (getenv "PYTHONPATH")
3236 ":"
3237 out
3238 "/lib/python"
3239 (string-take (string-take-right
3240 (assoc-ref inputs "python") 5) 3)
3241 "/site-packages"))
3242 (with-directory-excursion "build"
3243 (zero? (system* "nosetests" "khmer" "--attr"
3244 "!known_failing")))))))))
3245 (native-inputs
3246 `(("seqan" ,seqan)
3247 ("python-nose" ,python-nose)))
3248 (inputs
3249 `(("zlib" ,zlib)
3250 ("bzip2" ,bzip2)
3251 ("python-screed" ,python-screed)
3252 ("python-bz2file" ,python-bz2file)
3253 ;; Tests fail when gcc-5 is used for compilation. Use gcc-4.9 at least
3254 ;; until the next version of khmer (likely 2.1) is released.
3255 ("gcc" ,gcc-4.9)))
3256 (home-page "https://khmer.readthedocs.org/")
3257 (synopsis "K-mer counting, filtering and graph traversal library")
3258 (description "The khmer software is a set of command-line tools for
3259 working with DNA shotgun sequencing data from genomes, transcriptomes,
3260 metagenomes and single cells. Khmer can make de novo assemblies faster, and
3261 sometimes better. Khmer can also identify and fix problems with shotgun
3262 data.")
3263 ;; When building on i686, armhf and mips64el, we get the following error:
3264 ;; error: ['khmer', 'khmer.tests', 'oxli'] require 64-bit operating system
3265 (supported-systems '("x86_64-linux"))
3266 (license license:bsd-3)))
3267
3268 (define-public kaiju
3269 (package
3270 (name "kaiju")
3271 (version "1.5.0")
3272 (source (origin
3273 (method url-fetch)
3274 (uri (string-append
3275 "https://github.com/bioinformatics-centre/kaiju/archive/v"
3276 version ".tar.gz"))
3277 (file-name (string-append name "-" version ".tar.gz"))
3278 (sha256
3279 (base32
3280 "0afbfalfw9y39bkwnqjrh9bghs118ws1pzj5h8l0nblgn3mbjdks"))))
3281 (build-system gnu-build-system)
3282 (arguments
3283 `(#:tests? #f ; There are no tests.
3284 #:phases
3285 (modify-phases %standard-phases
3286 (delete 'configure)
3287 (add-before 'build 'move-to-src-dir
3288 (lambda _ (chdir "src") #t))
3289 (replace 'install
3290 (lambda* (#:key inputs outputs #:allow-other-keys)
3291 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
3292 (mkdir-p bin)
3293 (chdir "..")
3294 (copy-recursively "bin" bin)
3295 (copy-recursively "util" bin))
3296 #t)))))
3297 (inputs
3298 `(("perl" ,perl)))
3299 (home-page "http://kaiju.binf.ku.dk/")
3300 (synopsis "Fast and sensitive taxonomic classification for metagenomics")
3301 (description "Kaiju is a program for sensitive taxonomic classification
3302 of high-throughput sequencing reads from metagenomic whole genome sequencing
3303 experiments.")
3304 (license license:gpl3+)))
3305
3306 (define-public macs
3307 (package
3308 (name "macs")
3309 (version "2.1.0.20151222")
3310 (source (origin
3311 (method url-fetch)
3312 (uri (pypi-uri "MACS2" version))
3313 (sha256
3314 (base32
3315 "1r2hcz6irhcq7lwbafjks98jbn34hv05avgbdjnp6w6mlfjkf8x5"))))
3316 (build-system python-build-system)
3317 (arguments
3318 `(#:python ,python-2 ; only compatible with Python 2.7
3319 #:tests? #f)) ; no test target
3320 (inputs
3321 `(("python-numpy" ,python2-numpy)))
3322 (home-page "https://github.com/taoliu/MACS/")
3323 (synopsis "Model based analysis for ChIP-Seq data")
3324 (description
3325 "MACS is an implementation of a ChIP-Seq analysis algorithm for
3326 identifying transcript factor binding sites named Model-based Analysis of
3327 ChIP-Seq (MACS). MACS captures the influence of genome complexity to evaluate
3328 the significance of enriched ChIP regions and it improves the spatial
3329 resolution of binding sites through combining the information of both
3330 sequencing tag position and orientation.")
3331 (license license:bsd-3)))
3332
3333 (define-public mafft
3334 (package
3335 (name "mafft")
3336 (version "7.310")
3337 (source (origin
3338 (method url-fetch)
3339 (uri (string-append
3340 "http://mafft.cbrc.jp/alignment/software/mafft-" version
3341 "-without-extensions-src.tgz"))
3342 (file-name (string-append name "-" version ".tgz"))
3343 (sha256
3344 (base32
3345 "0gbsaz6z2qa307kd7wfb06c3y4ikmv1hsdvlns11f6zq4w1z9pwc"))))
3346 (build-system gnu-build-system)
3347 (arguments
3348 `(#:tests? #f ; no automated tests, though there are tests in the read me
3349 #:make-flags (let ((out (assoc-ref %outputs "out")))
3350 (list (string-append "PREFIX=" out)
3351 (string-append "BINDIR="
3352 (string-append out "/bin"))))
3353 #:phases
3354 (modify-phases %standard-phases
3355 (add-after 'unpack 'enter-dir
3356 (lambda _ (chdir "core") #t))
3357 (add-after 'enter-dir 'patch-makefile
3358 (lambda _
3359 ;; on advice from the MAFFT authors, there is no need to
3360 ;; distribute mafft-profile, mafft-distance, or
3361 ;; mafft-homologs.rb as they are too "specialised".
3362 (substitute* "Makefile"
3363 ;; remove mafft-homologs.rb from SCRIPTS
3364 (("^SCRIPTS = mafft mafft-homologs.rb")
3365 "SCRIPTS = mafft")
3366 ;; remove mafft-homologs from MANPAGES
3367 (("^MANPAGES = mafft.1 mafft-homologs.1")
3368 "MANPAGES = mafft.1")
3369 ;; remove mafft-distance from PROGS
3370 (("^PROGS = dvtditr dndfast7 dndblast sextet5 mafft-distance")
3371 "PROGS = dvtditr dndfast7 dndblast sextet5")
3372 ;; remove mafft-profile from PROGS
3373 (("splittbfast disttbfast tbfast mafft-profile 2cl mccaskillwrap")
3374 "splittbfast disttbfast tbfast f2cl mccaskillwrap")
3375 (("^rm -f mafft-profile mafft-profile.exe") "#")
3376 (("^rm -f mafft-distance mafft-distance.exe") ")#")
3377 ;; do not install MAN pages in libexec folder
3378 (("^\t\\$\\(INSTALL\\) -m 644 \\$\\(MANPAGES\\) \
3379 \\$\\(DESTDIR\\)\\$\\(LIBDIR\\)") "#"))
3380 #t))
3381 (add-after 'enter-dir 'patch-paths
3382 (lambda* (#:key inputs #:allow-other-keys)
3383 (substitute* '("pairash.c"
3384 "mafft.tmpl")
3385 (("perl") (which "perl"))
3386 (("([\"`| ])awk" _ prefix)
3387 (string-append prefix (which "awk")))
3388 (("grep") (which "grep")))
3389 #t))
3390 (delete 'configure)
3391 (add-after 'install 'wrap-programs
3392 (lambda* (#:key outputs #:allow-other-keys)
3393 (let* ((out (assoc-ref outputs "out"))
3394 (bin (string-append out "/bin"))
3395 (path (string-append
3396 (assoc-ref %build-inputs "coreutils") "/bin:")))
3397 (for-each (lambda (file)
3398 (wrap-program file
3399 `("PATH" ":" prefix (,path))))
3400 (find-files bin)))
3401 #t)))))
3402 (inputs
3403 `(("perl" ,perl)
3404 ("ruby" ,ruby)
3405 ("gawk" ,gawk)
3406 ("grep" ,grep)
3407 ("coreutils" ,coreutils)))
3408 (home-page "http://mafft.cbrc.jp/alignment/software/")
3409 (synopsis "Multiple sequence alignment program")
3410 (description
3411 "MAFFT offers a range of multiple alignment methods for nucleotide and
3412 protein sequences. For instance, it offers L-INS-i (accurate; for alignment
3413 of <~200 sequences) and FFT-NS-2 (fast; for alignment of <~30,000
3414 sequences).")
3415 (license (license:non-copyleft
3416 "http://mafft.cbrc.jp/alignment/software/license.txt"
3417 "BSD-3 with different formatting"))))
3418
3419 (define-public mash
3420 (package
3421 (name "mash")
3422 (version "1.1.1")
3423 (source (origin
3424 (method url-fetch)
3425 (uri (string-append
3426 "https://github.com/marbl/mash/archive/v"
3427 version ".tar.gz"))
3428 (file-name (string-append name "-" version ".tar.gz"))
3429 (sha256
3430 (base32
3431 "08znbvqq5xknfhmpp3wcj574zvi4p7i8zifi67c9qw9a6ikp42fj"))
3432 (modules '((guix build utils)))
3433 (snippet
3434 ;; Delete bundled kseq.
3435 ;; TODO: Also delete bundled murmurhash and open bloom filter.
3436 '(delete-file "src/mash/kseq.h"))))
3437 (build-system gnu-build-system)
3438 (arguments
3439 `(#:tests? #f ; No tests.
3440 #:configure-flags
3441 (list
3442 (string-append "--with-capnp=" (assoc-ref %build-inputs "capnproto"))
3443 (string-append "--with-gsl=" (assoc-ref %build-inputs "gsl")))
3444 #:make-flags (list "CC=gcc")
3445 #:phases
3446 (modify-phases %standard-phases
3447 (add-after 'unpack 'fix-includes
3448 (lambda _
3449 (substitute* '("src/mash/Sketch.cpp" "src/mash/CommandFind.cpp")
3450 (("^#include \"kseq\\.h\"")
3451 "#include \"htslib/kseq.h\""))
3452 #t))
3453 (add-before 'configure 'autoconf
3454 (lambda _ (zero? (system* "autoconf")))))))
3455 (native-inputs
3456 `(("autoconf" ,autoconf)
3457 ;; Capnproto and htslib are statically embedded in the final
3458 ;; application. Therefore we also list their licenses, below.
3459 ("capnproto" ,capnproto)
3460 ("htslib" ,htslib)))
3461 (inputs
3462 `(("gsl" ,gsl)
3463 ("zlib" ,zlib)))
3464 (supported-systems '("x86_64-linux"))
3465 (home-page "https://mash.readthedocs.io")
3466 (synopsis "Fast genome and metagenome distance estimation using MinHash")
3467 (description "Mash is a fast sequence distance estimator that uses the
3468 MinHash algorithm and is designed to work with genomes and metagenomes in the
3469 form of assemblies or reads.")
3470 (license (list license:bsd-3 ; Mash
3471 license:expat ; HTSlib and capnproto
3472 license:public-domain ; MurmurHash 3
3473 license:cpl1.0)))) ; Open Bloom Filter
3474
3475 (define-public metabat
3476 (package
3477 (name "metabat")
3478 (version "2.11.2")
3479 (source
3480 (origin
3481 (method url-fetch)
3482 (uri (string-append "https://bitbucket.org/berkeleylab/metabat/get/v"
3483 version ".tar.gz"))
3484 (file-name (string-append name "-" version ".tar.gz"))
3485 (sha256
3486 (base32
3487 "0rws9r1ziv6way8cf49jg8bzj7x2131kfqkhj8byf0z5hnrq3bwv"))
3488 (patches (search-patches "metabat-remove-compilation-date.patch"
3489 "metabat-fix-compilation.patch"))))
3490 (build-system gnu-build-system)
3491 (arguments
3492 `(#:phases
3493 (modify-phases %standard-phases
3494 (add-after 'unpack 'fix-includes
3495 (lambda _
3496 (substitute* "src/BamUtils.h"
3497 (("^#include \"bam/bam\\.h\"")
3498 "#include \"samtools/bam.h\"")
3499 (("^#include \"bam/sam\\.h\"")
3500 "#include \"samtools/sam.h\""))
3501 (substitute* "src/KseqReader.h"
3502 (("^#include \"bam/kseq\\.h\"")
3503 "#include \"htslib/kseq.h\""))
3504 #t))
3505 (add-after 'unpack 'fix-scons
3506 (lambda* (#:key inputs #:allow-other-keys)
3507 (substitute* "SConstruct"
3508 (("^htslib_dir += 'samtools'")
3509 (string-append "htslib_dir = '"
3510 (assoc-ref inputs "htslib")
3511 "'"))
3512 (("^samtools_dir = 'samtools'")
3513 (string-append "samtools_dir = '"
3514 (assoc-ref inputs "samtools")
3515 "'"))
3516 (("^findStaticOrShared\\('bam', hts_lib")
3517 (string-append "findStaticOrShared('bam', '"
3518 (assoc-ref inputs "samtools")
3519 "/lib'"))
3520 ;; Do not distribute README.
3521 (("^env\\.Install\\(idir_prefix, 'README\\.md'\\)") ""))
3522 #t))
3523 (delete 'configure)
3524 (replace 'build
3525 (lambda* (#:key inputs outputs #:allow-other-keys)
3526 (mkdir (assoc-ref outputs "out"))
3527 (zero? (system* "scons"
3528 (string-append
3529 "PREFIX="
3530 (assoc-ref outputs "out"))
3531 (string-append
3532 "BOOST_ROOT="
3533 (assoc-ref inputs "boost"))
3534 "install"))))
3535 ;; Check and install are carried out during build phase.
3536 (delete 'check)
3537 (delete 'install))))
3538 (inputs
3539 `(("zlib" ,zlib)
3540 ("perl" ,perl)
3541 ("samtools" ,samtools)
3542 ("htslib" ,htslib)
3543 ("boost" ,boost)))
3544 (native-inputs
3545 `(("scons" ,scons)))
3546 (home-page "https://bitbucket.org/berkeleylab/metabat")
3547 (synopsis
3548 "Reconstruction of single genomes from complex microbial communities")
3549 (description
3550 "Grouping large genomic fragments assembled from shotgun metagenomic
3551 sequences to deconvolute complex microbial communities, or metagenome binning,
3552 enables the study of individual organisms and their interactions. MetaBAT is
3553 an automated metagenome binning software, which integrates empirical
3554 probabilistic distances of genome abundance and tetranucleotide frequency.")
3555 ;; The source code contains inline assembly.
3556 (supported-systems '("x86_64-linux" "i686-linux"))
3557 (license (license:non-copyleft "file://license.txt"
3558 "See license.txt in the distribution."))))
3559
3560 (define-public minced
3561 (package
3562 (name "minced")
3563 (version "0.2.0")
3564 (source (origin
3565 (method url-fetch)
3566 (uri (string-append
3567 "https://github.com/ctSkennerton/minced/archive/"
3568 version ".tar.gz"))
3569 (file-name (string-append name "-" version ".tar.gz"))
3570 (sha256
3571 (base32
3572 "0wxmlsapxfpxfd3ps9636h7i2xy6la8i42mwh0j2lsky63h63jp1"))))
3573 (build-system gnu-build-system)
3574 (arguments
3575 `(#:test-target "test"
3576 #:phases
3577 (modify-phases %standard-phases
3578 (delete 'configure)
3579 (add-before 'check 'fix-test
3580 (lambda _
3581 ;; Fix test for latest version.
3582 (substitute* "t/Aquifex_aeolicus_VF5.expected"
3583 (("minced:0.1.6") "minced:0.2.0"))
3584 #t))
3585 (replace 'install ; No install target.
3586 (lambda* (#:key inputs outputs #:allow-other-keys)
3587 (let* ((out (assoc-ref outputs "out"))
3588 (bin (string-append out "/bin"))
3589 (wrapper (string-append bin "/minced")))
3590 ;; Minced comes with a wrapper script that tries to figure out where
3591 ;; it is located before running the JAR. Since these paths are known
3592 ;; to us, we build our own wrapper to avoid coreutils dependency.
3593 (install-file "minced.jar" bin)
3594 (with-output-to-file wrapper
3595 (lambda _
3596 (display
3597 (string-append
3598 "#!" (assoc-ref inputs "bash") "/bin/sh\n\n"
3599 (assoc-ref inputs "jre") "/bin/java -jar "
3600 bin "/minced.jar \"$@\"\n"))))
3601 (chmod wrapper #o555)))))))
3602 (native-inputs
3603 `(("jdk" ,icedtea "jdk")))
3604 (inputs
3605 `(("bash" ,bash)
3606 ("jre" ,icedtea "out")))
3607 (home-page "https://github.com/ctSkennerton/minced")
3608 (synopsis "Mining CRISPRs in Environmental Datasets")
3609 (description
3610 "MinCED is a program to find Clustered Regularly Interspaced Short
3611 Palindromic Repeats (CRISPRs) in DNA sequences. It can be used for
3612 unassembled metagenomic reads, but is mainly designed for full genomes and
3613 assembled metagenomic sequence.")
3614 (license license:gpl3+)))
3615
3616 (define-public miso
3617 (package
3618 (name "miso")
3619 (version "0.5.3")
3620 (source (origin
3621 (method url-fetch)
3622 (uri (string-append
3623 "https://pypi.python.org/packages/source/m/misopy/misopy-"
3624 version ".tar.gz"))
3625 (sha256
3626 (base32
3627 "0x446867az8ir0z8c1vjqffkp0ma37wm4sylixnkhgawllzx8v5w"))
3628 (modules '((guix build utils)))
3629 (snippet
3630 '(substitute* "setup.py"
3631 ;; Use setuptools, or else the executables are not
3632 ;; installed.
3633 (("distutils.core") "setuptools")
3634 ;; use "gcc" instead of "cc" for compilation
3635 (("^defines")
3636 "cc.set_executables(
3637 compiler='gcc',
3638 compiler_so='gcc',
3639 linker_exe='gcc',
3640 linker_so='gcc -shared'); defines")))))
3641 (build-system python-build-system)
3642 (arguments
3643 `(#:python ,python-2 ; only Python 2 is supported
3644 #:tests? #f)) ; no "test" target
3645 (inputs
3646 `(("samtools" ,samtools)
3647 ("python-numpy" ,python2-numpy)
3648 ("python-pysam" ,python2-pysam)
3649 ("python-scipy" ,python2-scipy)
3650 ("python-matplotlib" ,python2-matplotlib)))
3651 (native-inputs
3652 `(("python-mock" ,python2-mock) ;for tests
3653 ("python-pytz" ,python2-pytz))) ;for tests
3654 (home-page "http://genes.mit.edu/burgelab/miso/index.html")
3655 (synopsis "Mixture of Isoforms model for RNA-Seq isoform quantitation")
3656 (description
3657 "MISO (Mixture-of-Isoforms) is a probabilistic framework that quantitates
3658 the expression level of alternatively spliced genes from RNA-Seq data, and
3659 identifies differentially regulated isoforms or exons across samples. By
3660 modeling the generative process by which reads are produced from isoforms in
3661 RNA-Seq, the MISO model uses Bayesian inference to compute the probability
3662 that a read originated from a particular isoform.")
3663 (license license:gpl2)))
3664
3665 (define-public muscle
3666 (package
3667 (name "muscle")
3668 (version "3.8.1551")
3669 (source (origin
3670 (method url-fetch/tarbomb)
3671 (uri (string-append
3672 "http://www.drive5.com/muscle/muscle_src_"
3673 version ".tar.gz"))
3674 (sha256
3675 (base32
3676 "0bj8kj7sdizy3987zx6w7axihk40fk8rn76mpbqqjcnd64i5a367"))))
3677 (build-system gnu-build-system)
3678 (arguments
3679 `(#:make-flags (list "LDLIBS = -lm")
3680 #:phases
3681 (modify-phases %standard-phases
3682 (delete 'configure)
3683 (replace 'check
3684 ;; There are no tests, so just test if it runs.
3685 (lambda _ (zero? (system* "./muscle" "-version"))))
3686 (replace 'install
3687 (lambda* (#:key outputs #:allow-other-keys)
3688 (let* ((out (assoc-ref outputs "out"))
3689 (bin (string-append out "/bin")))
3690 (install-file "muscle" bin)))))))
3691 (home-page "http://www.drive5.com/muscle")
3692 (synopsis "Multiple sequence alignment program")
3693 (description
3694 "MUSCLE aims to be a fast and accurate multiple sequence alignment
3695 program for nucleotide and protein sequences.")
3696 ;; License information found in 'muscle -h' and usage.cpp.
3697 (license license:public-domain)))
3698
3699 (define-public newick-utils
3700 ;; There are no recent releases so we package from git.
3701 (let ((commit "da121155a977197cab9fbb15953ca1b40b11eb87"))
3702 (package
3703 (name "newick-utils")
3704 (version (string-append "1.6-1." (string-take commit 8)))
3705 (source (origin
3706 (method git-fetch)
3707 (uri (git-reference
3708 (url "https://github.com/tjunier/newick_utils.git")
3709 (commit commit)))
3710 (file-name (string-append name "-" version "-checkout"))
3711 (sha256
3712 (base32
3713 "1hkw21rq1mwf7xp0rmbb2gqc0i6p11108m69i7mr7xcjl268pxnb"))))
3714 (build-system gnu-build-system)
3715 (arguments
3716 `(#:phases
3717 (modify-phases %standard-phases
3718 (add-after 'unpack 'autoconf
3719 (lambda _ (zero? (system* "autoreconf" "-vif")))))))
3720 (inputs
3721 ;; XXX: TODO: Enable Lua and Guile bindings.
3722 ;; https://github.com/tjunier/newick_utils/issues/13
3723 `(("libxml2" ,libxml2)
3724 ("flex" ,flex)
3725 ("bison" ,bison)))
3726 (native-inputs
3727 `(("autoconf" ,autoconf)
3728 ("automake" ,automake)
3729 ("libtool" ,libtool)))
3730 (synopsis "Programs for working with newick format phylogenetic trees")
3731 (description
3732 "Newick-utils is a suite of utilities for processing phylogenetic trees
3733 in Newick format. Functions include re-rooting, extracting subtrees,
3734 trimming, pruning, condensing, drawing (ASCII graphics or SVG).")
3735 (home-page "https://github.com/tjunier/newick_utils")
3736 (license license:bsd-3))))
3737
3738 (define-public orfm
3739 (package
3740 (name "orfm")
3741 (version "0.7.1")
3742 (source (origin
3743 (method url-fetch)
3744 (uri (string-append
3745 "https://github.com/wwood/OrfM/releases/download/v"
3746 version "/orfm-" version ".tar.gz"))
3747 (sha256
3748 (base32
3749 "16iigyr2gd8x0imzkk1dr3k5xsds9bpmwg31ayvjg0f4pir9rwqr"))))
3750 (build-system gnu-build-system)
3751 (inputs `(("zlib" ,zlib)))
3752 (native-inputs
3753 `(("ruby-bio-commandeer" ,ruby-bio-commandeer)
3754 ("ruby-rspec" ,ruby-rspec)
3755 ("ruby" ,ruby)))
3756 (synopsis "Simple and not slow open reading frame (ORF) caller")
3757 (description
3758 "An ORF caller finds stretches of DNA that, when translated, are not
3759 interrupted by stop codons. OrfM finds and prints these ORFs.")
3760 (home-page "https://github.com/wwood/OrfM")
3761 (license license:lgpl3+)))
3762
3763 (define-public pplacer
3764 (let ((commit "g807f6f3"))
3765 (package
3766 (name "pplacer")
3767 ;; The commit should be updated with each version change.
3768 (version "1.1.alpha19")
3769 (source
3770 (origin
3771 (method url-fetch)
3772 (uri (string-append "https://github.com/matsen/pplacer/archive/v"
3773 version ".tar.gz"))
3774 (file-name (string-append name "-" version ".tar.gz"))
3775 (sha256
3776 (base32 "0z1lnd2s8sh6kpzg106wzbh2szw7h0hvq8syd5a6wv4rmyyz6x0f"))))
3777 (build-system ocaml-build-system)
3778 (arguments
3779 `(#:ocaml ,ocaml-4.01
3780 #:findlib ,ocaml4.01-findlib
3781 #:modules ((guix build ocaml-build-system)
3782 (guix build utils)
3783 (ice-9 ftw))
3784 #:phases
3785 (modify-phases %standard-phases
3786 (delete 'configure)
3787 (add-after 'unpack 'replace-bundled-cddlib
3788 (lambda* (#:key inputs #:allow-other-keys)
3789 (let* ((cddlib-src (assoc-ref inputs "cddlib-src"))
3790 (local-dir "cddlib_guix"))
3791 (mkdir local-dir)
3792 (with-directory-excursion local-dir
3793 (system* "tar" "xvf" cddlib-src))
3794 (let ((cddlib-src-folder
3795 (string-append local-dir "/"
3796 (list-ref (scandir local-dir) 2)
3797 "/lib-src")))
3798 (for-each
3799 (lambda (file)
3800 (copy-file file
3801 (string-append "cdd_src/" (basename file))))
3802 (find-files cddlib-src-folder ".*[ch]$")))
3803 #t)))
3804 (add-after 'unpack 'fix-makefile
3805 (lambda _
3806 ;; Remove system calls to 'git'.
3807 (substitute* "Makefile"
3808 (("^DESCRIPT:=pplacer-.*")
3809 (string-append
3810 "DESCRIPT:=pplacer-$(shell uname)-v" ,version "\n")))
3811 (substitute* "myocamlbuild.ml"
3812 (("git describe --tags --long .*\\\" with")
3813 (string-append
3814 "echo -n v" ,version "-" ,commit "\" with")))
3815 #t))
3816 (replace 'install
3817 (lambda* (#:key outputs #:allow-other-keys)
3818 (let* ((out (assoc-ref outputs "out"))
3819 (bin (string-append out "/bin")))
3820 (copy-recursively "bin" bin))
3821 #t)))))
3822 (native-inputs
3823 `(("zlib" ,zlib)
3824 ("gsl" ,gsl)
3825 ("ocaml-ounit" ,ocaml4.01-ounit)
3826 ("ocaml-batteries" ,ocaml4.01-batteries)
3827 ("ocaml-camlzip" ,ocaml4.01-camlzip)
3828 ("ocaml-csv" ,ocaml4.01-csv)
3829 ("ocaml-sqlite3" ,ocaml4.01-sqlite3)
3830 ("ocaml-xmlm" ,ocaml4.01-xmlm)
3831 ("ocaml-mcl" ,ocaml4.01-mcl)
3832 ("ocaml-gsl" ,ocaml4.01-gsl)
3833 ("cddlib-src" ,(package-source cddlib))))
3834 (propagated-inputs
3835 `(("pplacer-scripts" ,pplacer-scripts)))
3836 (synopsis "Phylogenetic placement of biological sequences")
3837 (description
3838 "Pplacer places query sequences on a fixed reference phylogenetic tree
3839 to maximize phylogenetic likelihood or posterior probability according to a
3840 reference alignment. Pplacer is designed to be fast, to give useful
3841 information about uncertainty, and to offer advanced visualization and
3842 downstream analysis.")
3843 (home-page "http://matsen.fhcrc.org/pplacer")
3844 (license license:gpl3))))
3845
3846 ;; This package is installed alongside 'pplacer'. It is a separate package so
3847 ;; that it can use the python-build-system for the scripts that are
3848 ;; distributed alongside the main OCaml binaries.
3849 (define pplacer-scripts
3850 (package
3851 (inherit pplacer)
3852 (name "pplacer-scripts")
3853 (build-system python-build-system)
3854 (arguments
3855 `(#:python ,python-2
3856 #:phases
3857 (modify-phases %standard-phases
3858 (add-after 'unpack 'enter-scripts-dir
3859 (lambda _ (chdir "scripts")))
3860 (replace 'check
3861 (lambda _
3862 (zero? (system* "python" "-m" "unittest" "discover" "-v"))))
3863 (add-after 'install 'wrap-executables
3864 (lambda* (#:key inputs outputs #:allow-other-keys)
3865 (let* ((out (assoc-ref outputs "out"))
3866 (bin (string-append out "/bin")))
3867 (let ((path (string-append
3868 (assoc-ref inputs "hmmer") "/bin:"
3869 (assoc-ref inputs "infernal") "/bin")))
3870 (display path)
3871 (wrap-program (string-append bin "/refpkg_align.py")
3872 `("PATH" ":" prefix (,path))))
3873 (let ((path (string-append
3874 (assoc-ref inputs "hmmer") "/bin")))
3875 (wrap-program (string-append bin "/hrefpkg_query.py")
3876 `("PATH" ":" prefix (,path)))))
3877 #t)))))
3878 (inputs
3879 `(("infernal" ,infernal)
3880 ("hmmer" ,hmmer)))
3881 (propagated-inputs
3882 `(("python-biopython" ,python2-biopython)
3883 ("taxtastic" ,taxtastic)))
3884 (synopsis "Pplacer Python scripts")))
3885
3886 (define-public python2-pbcore
3887 (package
3888 (name "python2-pbcore")
3889 (version "1.2.10")
3890 (source (origin
3891 (method url-fetch)
3892 (uri (pypi-uri "pbcore" version))
3893 (sha256
3894 (base32
3895 "1kjmv891d6qbpp4shhhvkl02ff4q5xlpnls2513sm2cjcrs52f1i"))))
3896 (build-system python-build-system)
3897 (arguments `(#:python ,python-2)) ; pbcore requires Python 2.7
3898 (propagated-inputs
3899 `(("python-cython" ,python2-cython)
3900 ("python-numpy" ,python2-numpy)
3901 ("python-pysam" ,python2-pysam)
3902 ("python-h5py" ,python2-h5py)))
3903 (native-inputs
3904 `(("python-nose" ,python2-nose)
3905 ("python-sphinx" ,python2-sphinx)
3906 ("python-pyxb" ,python2-pyxb)))
3907 (home-page "http://pacificbiosciences.github.io/pbcore/")
3908 (synopsis "Library for reading and writing PacBio data files")
3909 (description
3910 "The pbcore package provides Python APIs for interacting with PacBio data
3911 files and writing bioinformatics applications.")
3912 (license license:bsd-3)))
3913
3914 (define-public python2-warpedlmm
3915 (package
3916 (name "python2-warpedlmm")
3917 (version "0.21")
3918 (source
3919 (origin
3920 (method url-fetch)
3921 (uri (string-append
3922 "https://pypi.python.org/packages/source/W/WarpedLMM/WarpedLMM-"
3923 version ".zip"))
3924 (sha256
3925 (base32
3926 "1agfz6zqa8nc6cw47yh0s3y14gkpa9wqazwcj7mwwj3ffnw39p3j"))))
3927 (build-system python-build-system)
3928 (arguments
3929 `(#:python ,python-2)) ; requires Python 2.7
3930 (propagated-inputs
3931 `(("python-scipy" ,python2-scipy)
3932 ("python-numpy" ,python2-numpy)
3933 ("python-matplotlib" ,python2-matplotlib)
3934 ("python-fastlmm" ,python2-fastlmm)
3935 ("python-pandas" ,python2-pandas)
3936 ("python-pysnptools" ,python2-pysnptools)))
3937 (native-inputs
3938 `(("python-mock" ,python2-mock)
3939 ("python-nose" ,python2-nose)
3940 ("unzip" ,unzip)))
3941 (home-page "https://github.com/PMBio/warpedLMM")
3942 (synopsis "Implementation of warped linear mixed models")
3943 (description
3944 "WarpedLMM is a Python implementation of the warped linear mixed model,
3945 which automatically learns an optimal warping function (or transformation) for
3946 the phenotype as it models the data.")
3947 (license license:asl2.0)))
3948
3949 (define-public pbtranscript-tofu
3950 (let ((commit "8f5467fe6a4472bcfb4226c8720993c8507adfe4"))
3951 (package
3952 (name "pbtranscript-tofu")
3953 (version (string-append "2.2.3." (string-take commit 7)))
3954 (source (origin
3955 (method git-fetch)
3956 (uri (git-reference
3957 (url "https://github.com/PacificBiosciences/cDNA_primer.git")
3958 (commit commit)))
3959 (file-name (string-append name "-" version "-checkout"))
3960 (sha256
3961 (base32
3962 "1lgnpi35ihay42qx0b6yl3kkgra723i413j33kvs0kvs61h82w0f"))
3963 (modules '((guix build utils)))
3964 (snippet
3965 '(begin
3966 ;; remove bundled Cython sources
3967 (delete-file "pbtranscript-tofu/pbtranscript/Cython-0.20.1.tar.gz")
3968 #t))))
3969 (build-system python-build-system)
3970 (arguments
3971 `(#:python ,python-2
3972 ;; FIXME: Tests fail with "No such file or directory:
3973 ;; pbtools/pbtranscript/modified_bx_intervals/intersection_unique.so"
3974 #:tests? #f
3975 #:phases
3976 (modify-phases %standard-phases
3977 (add-after 'unpack 'enter-directory
3978 (lambda _
3979 (chdir "pbtranscript-tofu/pbtranscript/")
3980 #t))
3981 ;; With setuptools version 18.0 and later this setup.py hack causes
3982 ;; a build error, so we disable it.
3983 (add-after 'enter-directory 'patch-setuppy
3984 (lambda _
3985 (substitute* "setup.py"
3986 (("if 'setuptools.extension' in sys.modules:")
3987 "if False:"))
3988 #t)))))
3989 (inputs
3990 `(("python-numpy" ,python2-numpy)
3991 ("python-bx-python" ,python2-bx-python)
3992 ("python-networkx" ,python2-networkx)
3993 ("python-scipy" ,python2-scipy)
3994 ("python-pbcore" ,python2-pbcore)
3995 ("python-h5py" ,python2-h5py)))
3996 (native-inputs
3997 `(("python-cython" ,python2-cython)
3998 ("python-nose" ,python2-nose)))
3999 (home-page "https://github.com/PacificBiosciences/cDNA_primer")
4000 (synopsis "Analyze transcriptome data generated with the Iso-Seq protocol")
4001 (description
4002 "pbtranscript-tofu contains scripts to analyze transcriptome data
4003 generated using the PacBio Iso-Seq protocol.")
4004 (license license:bsd-3))))
4005
4006 (define-public prank
4007 (package
4008 (name "prank")
4009 (version "150803")
4010 (source (origin
4011 (method url-fetch)
4012 (uri (string-append
4013 "http://wasabiapp.org/download/prank/prank.source."
4014 version ".tgz"))
4015 (sha256
4016 (base32
4017 "0am4z94fs3w2n5xpfls9zda61vq7qqz4q2i7b9hlsxz5q4j3kfm4"))))
4018 (build-system gnu-build-system)
4019 (arguments
4020 `(#:phases
4021 (modify-phases %standard-phases
4022 (add-after 'unpack 'enter-src-dir
4023 (lambda _
4024 (chdir "src")
4025 #t))
4026 (add-after 'unpack 'remove-m64-flag
4027 ;; Prank will build with the correct 'bit-ness' without this flag
4028 ;; and this allows building on 32-bit machines.
4029 (lambda _ (substitute* "src/Makefile"
4030 (("-m64") ""))
4031 #t))
4032 (delete 'configure)
4033 (replace 'install
4034 (lambda* (#:key outputs #:allow-other-keys)
4035 (let* ((out (assoc-ref outputs "out"))
4036 (bin (string-append out "/bin"))
4037 (man (string-append out "/share/man/man1"))
4038 (path (string-append
4039 (assoc-ref %build-inputs "mafft") "/bin:"
4040 (assoc-ref %build-inputs "exonerate") "/bin:"
4041 (assoc-ref %build-inputs "bppsuite") "/bin")))
4042 (install-file "prank" bin)
4043 (wrap-program (string-append bin "/prank")
4044 `("PATH" ":" prefix (,path)))
4045 (install-file "prank.1" man))
4046 #t)))))
4047 (inputs
4048 `(("mafft" ,mafft)
4049 ("exonerate" ,exonerate)
4050 ("bppsuite" ,bppsuite)))
4051 (home-page "http://wasabiapp.org/software/prank/")
4052 (synopsis "Probabilistic multiple sequence alignment program")
4053 (description
4054 "PRANK is a probabilistic multiple sequence alignment program for DNA,
4055 codon and amino-acid sequences. It is based on a novel algorithm that treats
4056 insertions correctly and avoids over-estimation of the number of deletion
4057 events. In addition, PRANK borrows ideas from maximum likelihood methods used
4058 in phylogenetics and correctly takes into account the evolutionary distances
4059 between sequences. Lastly, PRANK allows for defining a potential structure
4060 for sequences to be aligned and then, simultaneously with the alignment,
4061 predicts the locations of structural units in the sequences.")
4062 (license license:gpl2+)))
4063
4064 (define-public proteinortho
4065 (package
4066 (name "proteinortho")
4067 (version "5.16")
4068 (source
4069 (origin
4070 (method url-fetch)
4071 (uri
4072 (string-append
4073 "http://www.bioinf.uni-leipzig.de/Software/proteinortho/proteinortho_v"
4074 version "_src.tar.gz"))
4075 (sha256
4076 (base32
4077 "0z4f5cg0cs8ai62hfvp4q6w66q2phcc55nhs4xj5cyhxxivjv2ai"))))
4078 (build-system gnu-build-system)
4079 (arguments
4080 `(#:test-target "test"
4081 #:phases
4082 (modify-phases %standard-phases
4083 (replace 'configure
4084 ;; There is no configure script, so we modify the Makefile directly.
4085 (lambda* (#:key outputs #:allow-other-keys)
4086 (substitute* "Makefile"
4087 (("INSTALLDIR=.*")
4088 (string-append
4089 "INSTALLDIR=" (assoc-ref outputs "out") "/bin\n")))
4090 #t))
4091 (add-before 'install 'make-install-directory
4092 ;; The install directory is not created during 'make install'.
4093 (lambda* (#:key outputs #:allow-other-keys)
4094 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
4095 #t))
4096 (add-after 'install 'wrap-programs
4097 (lambda* (#:key inputs outputs #:allow-other-keys)
4098 (let* ((path (getenv "PATH"))
4099 (out (assoc-ref outputs "out"))
4100 (binary (string-append out "/bin/proteinortho5.pl")))
4101 (wrap-program binary `("PATH" ":" prefix (,path))))
4102 #t)))))
4103 (inputs
4104 `(("perl" ,perl)
4105 ("python" ,python-2)
4106 ("blast+" ,blast+)))
4107 (home-page "http://www.bioinf.uni-leipzig.de/Software/proteinortho")
4108 (synopsis "Detect orthologous genes across species")
4109 (description
4110 "Proteinortho is a tool to detect orthologous genes across different
4111 species. For doing so, it compares similarities of given gene sequences and
4112 clusters them to find significant groups. The algorithm was designed to handle
4113 large-scale data and can be applied to hundreds of species at once.")
4114 (license license:gpl2+)))
4115
4116 (define-public pyicoteo
4117 (package
4118 (name "pyicoteo")
4119 (version "2.0.7")
4120 (source
4121 (origin
4122 (method url-fetch)
4123 (uri (string-append "https://bitbucket.org/regulatorygenomicsupf/"
4124 "pyicoteo/get/v" version ".tar.bz2"))
4125 (file-name (string-append name "-" version ".tar.bz2"))
4126 (sha256
4127 (base32
4128 "0d6087f29xp8wxwlj111c3sylli98n0l8ry58c51ixzq0zfm50wa"))))
4129 (build-system python-build-system)
4130 (arguments
4131 `(#:python ,python-2 ; does not work with Python 3
4132 #:tests? #f)) ; there are no tests
4133 (inputs
4134 `(("python2-matplotlib" ,python2-matplotlib)))
4135 (home-page "https://bitbucket.org/regulatorygenomicsupf/pyicoteo")
4136 (synopsis "Analyze high-throughput genetic sequencing data")
4137 (description
4138 "Pyicoteo is a suite of tools for the analysis of high-throughput genetic
4139 sequencing data. It works with genomic coordinates. There are currently six
4140 different command-line tools:
4141
4142 @enumerate
4143 @item pyicoregion: for generating exploratory regions automatically;
4144 @item pyicoenrich: for differential enrichment between two conditions;
4145 @item pyicoclip: for calling CLIP-Seq peaks without a control;
4146 @item pyicos: for genomic coordinates manipulation;
4147 @item pyicoller: for peak calling on punctuated ChIP-Seq;
4148 @item pyicount: to count how many reads from N experiment files overlap in a
4149 region file;
4150 @item pyicotrocol: to combine operations from pyicoteo.
4151 @end enumerate\n")
4152 (license license:gpl3+)))
4153
4154 (define-public prodigal
4155 (package
4156 (name "prodigal")
4157 (version "2.6.3")
4158 (source (origin
4159 (method url-fetch)
4160 (uri (string-append
4161 "https://github.com/hyattpd/Prodigal/archive/v"
4162 version ".tar.gz"))
4163 (file-name (string-append name "-" version ".tar.gz"))
4164 (sha256
4165 (base32
4166 "17srxkqd3jc77xk15pfbgg1a9xahqg7337w95mrsia7mpza4l2c9"))))
4167 (build-system gnu-build-system)
4168 (arguments
4169 `(#:tests? #f ;no check target
4170 #:make-flags (list (string-append "INSTALLDIR="
4171 (assoc-ref %outputs "out")
4172 "/bin"))
4173 #:phases
4174 (modify-phases %standard-phases
4175 (delete 'configure))))
4176 (home-page "http://prodigal.ornl.gov")
4177 (synopsis "Protein-coding gene prediction for Archaea and Bacteria")
4178 (description
4179 "Prodigal runs smoothly on finished genomes, draft genomes, and
4180 metagenomes, providing gene predictions in GFF3, Genbank, or Sequin table
4181 format. It runs quickly, in an unsupervised fashion, handles gaps, handles
4182 partial genes, and identifies translation initiation sites.")
4183 (license license:gpl3+)))
4184
4185 (define-public roary
4186 (package
4187 (name "roary")
4188 (version "3.8.2")
4189 (source
4190 (origin
4191 (method url-fetch)
4192 (uri (string-append
4193 "mirror://cpan/authors/id/A/AJ/AJPAGE/Bio-Roary-"
4194 version ".tar.gz"))
4195 (sha256
4196 (base32
4197 "03dfr2cd5fp80bcr65923zpdzrasvcxl7c2vgh8373v25a1yfap7"))))
4198 (build-system perl-build-system)
4199 (arguments
4200 `(#:phases
4201 (modify-phases %standard-phases
4202 (delete 'configure)
4203 (delete 'build)
4204 (replace 'check
4205 (lambda _
4206 ;; The tests are not run by default, so we run each test file
4207 ;; directly.
4208 (setenv "PATH" (string-append (getcwd) "/bin" ":"
4209 (getenv "PATH")))
4210 (setenv "PERL5LIB" (string-append (getcwd) "/lib" ":"
4211 (getenv "PERL5LIB")))
4212 (zero? (length (filter (lambda (file)
4213 (display file)(display "\n")
4214 (not (zero? (system* "perl" file))))
4215 (find-files "t" ".*\\.t$"))))))
4216 (replace 'install
4217 ;; There is no 'install' target in the Makefile.
4218 (lambda* (#:key outputs #:allow-other-keys)
4219 (let* ((out (assoc-ref outputs "out"))
4220 (bin (string-append out "/bin"))
4221 (perl (string-append out "/lib/perl5/site_perl"))
4222 (roary-plots "contrib/roary_plots"))
4223 (mkdir-p bin)
4224 (mkdir-p perl)
4225 (copy-recursively "bin" bin)
4226 (copy-recursively "lib" perl)
4227 #t)))
4228 (add-after 'install 'wrap-programs
4229 (lambda* (#:key inputs outputs #:allow-other-keys)
4230 (let* ((out (assoc-ref outputs "out"))
4231 (perl5lib (getenv "PERL5LIB"))
4232 (path (getenv "PATH")))
4233 (for-each (lambda (prog)
4234 (let ((binary (string-append out "/" prog)))
4235 (wrap-program binary
4236 `("PERL5LIB" ":" prefix
4237 (,(string-append perl5lib ":" out
4238 "/lib/perl5/site_perl"))))
4239 (wrap-program binary
4240 `("PATH" ":" prefix
4241 (,(string-append path ":" out "/bin"))))))
4242 (find-files "bin" ".*[^R]$"))
4243 (let ((file
4244 (string-append out "/bin/roary-create_pan_genome_plots.R"))
4245 (r-site-lib (getenv "R_LIBS_SITE"))
4246 (coreutils-path
4247 (string-append (assoc-ref inputs "coreutils") "/bin")))
4248 (wrap-program file
4249 `("R_LIBS_SITE" ":" prefix
4250 (,(string-append r-site-lib ":" out "/site-library/"))))
4251 (wrap-program file
4252 `("PATH" ":" prefix
4253 (,(string-append coreutils-path ":" out "/bin"))))))
4254 #t)))))
4255 (native-inputs
4256 `(("perl-env-path" ,perl-env-path)
4257 ("perl-test-files" ,perl-test-files)
4258 ("perl-test-most" ,perl-test-most)
4259 ("perl-test-output" ,perl-test-output)))
4260 (inputs
4261 `(("perl-array-utils" ,perl-array-utils)
4262 ("bioperl" ,bioperl-minimal)
4263 ("perl-exception-class" ,perl-exception-class)
4264 ("perl-file-find-rule" ,perl-file-find-rule)
4265 ("perl-file-grep" ,perl-file-grep)
4266 ("perl-file-slurper" ,perl-file-slurper)
4267 ("perl-file-which" ,perl-file-which)
4268 ("perl-graph" ,perl-graph)
4269 ("perl-graph-readwrite" ,perl-graph-readwrite)
4270 ("perl-log-log4perl" ,perl-log-log4perl)
4271 ("perl-moose" ,perl-moose)
4272 ("perl-perlio-utf8_strict" ,perl-perlio-utf8_strict)
4273 ("perl-text-csv" ,perl-text-csv)
4274 ("bedtools" ,bedtools)
4275 ("cd-hit" ,cd-hit)
4276 ("blast+" ,blast+)
4277 ("mcl" ,mcl)
4278 ("parallel" ,parallel)
4279 ("prank" ,prank)
4280 ("mafft" ,mafft)
4281 ("fasttree" ,fasttree)
4282 ("grep" ,grep)
4283 ("sed" ,sed)
4284 ("gawk" ,gawk)
4285 ("r-minimal" ,r-minimal)
4286 ("r-ggplot2" ,r-ggplot2)
4287 ("coreutils" ,coreutils)))
4288 (home-page "http://sanger-pathogens.github.io/Roary")
4289 (synopsis "High speed stand-alone pan genome pipeline")
4290 (description
4291 "Roary is a high speed stand alone pan genome pipeline, which takes
4292 annotated assemblies in GFF3 format (produced by the Prokka program) and
4293 calculates the pan genome. Using a standard desktop PC, it can analyse
4294 datasets with thousands of samples, without compromising the quality of the
4295 results. 128 samples can be analysed in under 1 hour using 1 GB of RAM and a
4296 single processor. Roary is not intended for metagenomics or for comparing
4297 extremely diverse sets of genomes.")
4298 (license license:gpl3)))
4299
4300 (define-public raxml
4301 (package
4302 (name "raxml")
4303 (version "8.2.10")
4304 (source
4305 (origin
4306 (method url-fetch)
4307 (uri
4308 (string-append
4309 "https://github.com/stamatak/standard-RAxML/archive/v"
4310 version ".tar.gz"))
4311 (file-name (string-append name "-" version ".tar.gz"))
4312 (sha256
4313 (base32
4314 "13s7aspfdcfr6asynwdg1x6vznys6pzap5f8wsffbnnwpkkg9ya8"))))
4315 (build-system gnu-build-system)
4316 (arguments
4317 `(#:tests? #f ; There are no tests.
4318 ;; Use 'standard' Makefile rather than SSE or AVX ones.
4319 #:make-flags (list "-f" "Makefile.HYBRID.gcc")
4320 #:phases
4321 (modify-phases %standard-phases
4322 (delete 'configure)
4323 (replace 'install
4324 (lambda* (#:key outputs #:allow-other-keys)
4325 (let* ((out (assoc-ref outputs "out"))
4326 (bin (string-append out "/bin"))
4327 (executable "raxmlHPC-HYBRID"))
4328 (install-file executable bin)
4329 (symlink (string-append bin "/" executable) "raxml"))
4330 #t)))))
4331 (inputs
4332 `(("openmpi" ,openmpi)))
4333 (home-page "http://sco.h-its.org/exelixis/web/software/raxml/index.html")
4334 (synopsis "Randomized Axelerated Maximum Likelihood phylogenetic trees")
4335 (description
4336 "RAxML is a tool for phylogenetic analysis and post-analysis of large
4337 phylogenies.")
4338 ;; The source includes x86 specific code
4339 (supported-systems '("x86_64-linux" "i686-linux"))
4340 (license license:gpl2+)))
4341
4342 (define-public rsem
4343 (package
4344 (name "rsem")
4345 (version "1.2.20")
4346 (source
4347 (origin
4348 (method url-fetch)
4349 (uri
4350 (string-append "http://deweylab.biostat.wisc.edu/rsem/src/rsem-"
4351 version ".tar.gz"))
4352 (sha256
4353 (base32 "0nzdc0j0hjllhsd5f2xli95dafm3nawskigs140xzvjk67xh0r9q"))
4354 (patches (search-patches "rsem-makefile.patch"))
4355 (modules '((guix build utils)))
4356 (snippet
4357 '(begin
4358 ;; remove bundled copy of boost
4359 (delete-file-recursively "boost")
4360 #t))))
4361 (build-system gnu-build-system)
4362 (arguments
4363 `(#:tests? #f ;no "check" target
4364 #:phases
4365 (modify-phases %standard-phases
4366 ;; No "configure" script.
4367 ;; Do not build bundled samtools library.
4368 (replace 'configure
4369 (lambda _
4370 (substitute* "Makefile"
4371 (("^all : sam/libbam.a") "all : "))
4372 #t))
4373 (replace 'install
4374 (lambda* (#:key outputs #:allow-other-keys)
4375 (let* ((out (string-append (assoc-ref outputs "out")))
4376 (bin (string-append out "/bin/"))
4377 (perl (string-append out "/lib/perl5/site_perl")))
4378 (mkdir-p bin)
4379 (mkdir-p perl)
4380 (for-each (lambda (file)
4381 (install-file file bin))
4382 (find-files "." "rsem-.*"))
4383 (install-file "rsem_perl_utils.pm" perl))
4384 #t))
4385 (add-after
4386 'install 'wrap-program
4387 (lambda* (#:key outputs #:allow-other-keys)
4388 (let ((out (assoc-ref outputs "out")))
4389 (for-each (lambda (prog)
4390 (wrap-program (string-append out "/bin/" prog)
4391 `("PERL5LIB" ":" prefix
4392 (,(string-append out "/lib/perl5/site_perl")))))
4393 '("rsem-plot-transcript-wiggles"
4394 "rsem-calculate-expression"
4395 "rsem-generate-ngvector"
4396 "rsem-run-ebseq"
4397 "rsem-prepare-reference")))
4398 #t)))))
4399 (inputs
4400 `(("boost" ,boost)
4401 ("ncurses" ,ncurses)
4402 ("r-minimal" ,r-minimal)
4403 ("perl" ,perl)
4404 ("samtools" ,samtools-0.1)
4405 ("zlib" ,zlib)))
4406 (home-page "http://deweylab.biostat.wisc.edu/rsem/")
4407 (synopsis "Estimate gene expression levels from RNA-Seq data")
4408 (description
4409 "RSEM is a software package for estimating gene and isoform expression
4410 levels from RNA-Seq data. The RSEM package provides a user-friendly
4411 interface, supports threads for parallel computation of the EM algorithm,
4412 single-end and paired-end read data, quality scores, variable-length reads and
4413 RSPD estimation. In addition, it provides posterior mean and 95% credibility
4414 interval estimates for expression levels. For visualization, it can generate
4415 BAM and Wiggle files in both transcript-coordinate and genomic-coordinate.")
4416 (license license:gpl3+)))
4417
4418 (define-public rseqc
4419 (package
4420 (name "rseqc")
4421 (version "2.6.1")
4422 (source
4423 (origin
4424 (method url-fetch)
4425 (uri
4426 (string-append "mirror://sourceforge/rseqc/"
4427 "RSeQC-" version ".tar.gz"))
4428 (sha256
4429 (base32 "15ly0254yi032qzkdplg00q144qfdsd986gh62829rl5bkxhj330"))
4430 (modules '((guix build utils)))
4431 (snippet
4432 '(begin
4433 ;; remove bundled copy of pysam
4434 (delete-file-recursively "lib/pysam")
4435 (substitute* "setup.py"
4436 ;; remove dependency on outdated "distribute" module
4437 (("^from distribute_setup import use_setuptools") "")
4438 (("^use_setuptools\\(\\)") "")
4439 ;; do not use bundled copy of pysam
4440 (("^have_pysam = False") "have_pysam = True"))))))
4441 (build-system python-build-system)
4442 (arguments `(#:python ,python-2))
4443 (inputs
4444 `(("python-cython" ,python2-cython)
4445 ("python-pysam" ,python2-pysam)
4446 ("python-numpy" ,python2-numpy)
4447 ("zlib" ,zlib)))
4448 (native-inputs
4449 `(("python-nose" ,python2-nose)))
4450 (home-page "http://rseqc.sourceforge.net/")
4451 (synopsis "RNA-seq quality control package")
4452 (description
4453 "RSeQC provides a number of modules that can comprehensively evaluate
4454 high throughput sequence data, especially RNA-seq data. Some basic modules
4455 inspect sequence quality, nucleotide composition bias, PCR bias and GC bias,
4456 while RNA-seq specific modules evaluate sequencing saturation, mapped reads
4457 distribution, coverage uniformity, strand specificity, etc.")
4458 (license license:gpl3+)))
4459
4460 (define-public seek
4461 ;; There are no release tarballs. According to the installation
4462 ;; instructions at http://seek.princeton.edu/installation.jsp, the latest
4463 ;; stable release is identified by this changeset ID.
4464 (let ((changeset "2329130")
4465 (revision "1"))
4466 (package
4467 (name "seek")
4468 (version (string-append "0-" revision "." changeset))
4469 (source (origin
4470 (method hg-fetch)
4471 (uri (hg-reference
4472 (url "https://bitbucket.org/libsleipnir/sleipnir")
4473 (changeset changeset)))
4474 (sha256
4475 (base32
4476 "0qrvilwh18dpbhkf92qvxbmay0j75ra3jg2wrhz67gf538zzphsx"))))
4477 (build-system gnu-build-system)
4478 (arguments
4479 `(#:modules ((srfi srfi-1)
4480 (guix build gnu-build-system)
4481 (guix build utils))
4482 #:phases
4483 (let ((dirs '("SeekMiner"
4484 "SeekEvaluator"
4485 "SeekPrep"
4486 "Distancer"
4487 "Data2DB"
4488 "PCL2Bin")))
4489 (modify-phases %standard-phases
4490 (add-before 'configure 'bootstrap
4491 (lambda _
4492 (zero? (system* "bash" "gen_auto"))))
4493 (add-after 'build 'build-additional-tools
4494 (lambda* (#:key make-flags #:allow-other-keys)
4495 (every (lambda (dir)
4496 (with-directory-excursion (string-append "tools/" dir)
4497 (zero? (apply system* "make" make-flags))))
4498 dirs)))
4499 (add-after 'install 'install-additional-tools
4500 (lambda* (#:key make-flags #:allow-other-keys)
4501 (fold (lambda (dir result)
4502 (with-directory-excursion (string-append "tools/" dir)
4503 (and result
4504 (zero? (apply system*
4505 `("make" ,@make-flags "install"))))))
4506 #t dirs)))))))
4507 (inputs
4508 `(("gsl" ,gsl)
4509 ("boost" ,boost)
4510 ("libsvm" ,libsvm)
4511 ("readline" ,readline)
4512 ("gengetopt" ,gengetopt)
4513 ("log4cpp" ,log4cpp)))
4514 (native-inputs
4515 `(("autoconf" ,autoconf)
4516 ("automake" ,automake)
4517 ("perl" ,perl)))
4518 (home-page "http://seek.princeton.edu")
4519 (synopsis "Gene co-expression search engine")
4520 (description
4521 "SEEK is a computational gene co-expression search engine. SEEK provides
4522 biologists with a way to navigate the massive human expression compendium that
4523 now contains thousands of expression datasets. SEEK returns a robust ranking
4524 of co-expressed genes in the biological area of interest defined by the user's
4525 query genes. It also prioritizes thousands of expression datasets according
4526 to the user's query of interest.")
4527 (license license:cc-by3.0))))
4528
4529 (define-public samtools
4530 (package
4531 (name "samtools")
4532 (version "1.5")
4533 (source
4534 (origin
4535 (method url-fetch)
4536 (uri
4537 (string-append "mirror://sourceforge/samtools/samtools/"
4538 version "/samtools-" version ".tar.bz2"))
4539 (sha256
4540 (base32
4541 "1xidmv0jmfy7l0kb32hdnlshcxgzi1hmygvig0cqrq1fhckdlhl5"))))
4542 (build-system gnu-build-system)
4543 (arguments
4544 `(#:modules ((ice-9 ftw)
4545 (ice-9 regex)
4546 (guix build gnu-build-system)
4547 (guix build utils))
4548 #:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
4549 #:configure-flags (list "--with-ncurses" "--with-htslib=system")
4550 #:phases
4551 (modify-phases %standard-phases
4552 (add-after 'unpack 'patch-tests
4553 (lambda _
4554 (substitute* "test/test.pl"
4555 ;; The test script calls out to /bin/bash
4556 (("/bin/bash") (which "bash")))
4557 #t))
4558 (add-after 'install 'install-library
4559 (lambda* (#:key outputs #:allow-other-keys)
4560 (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
4561 (install-file "libbam.a" lib)
4562 #t)))
4563 (add-after 'install 'install-headers
4564 (lambda* (#:key outputs #:allow-other-keys)
4565 (let ((include (string-append (assoc-ref outputs "out")
4566 "/include/samtools/")))
4567 (for-each (lambda (file)
4568 (install-file file include))
4569 (scandir "." (lambda (name) (string-match "\\.h$" name))))
4570 #t))))))
4571 (native-inputs `(("pkg-config" ,pkg-config)))
4572 (inputs
4573 `(("htslib" ,htslib)
4574 ("ncurses" ,ncurses)
4575 ("perl" ,perl)
4576 ("python" ,python)
4577 ("zlib" ,zlib)))
4578 (home-page "http://samtools.sourceforge.net")
4579 (synopsis "Utilities to efficiently manipulate nucleotide sequence alignments")
4580 (description
4581 "Samtools implements various utilities for post-processing nucleotide
4582 sequence alignments in the SAM, BAM, and CRAM formats, including indexing,
4583 variant calling (in conjunction with bcftools), and a simple alignment
4584 viewer.")
4585 (license license:expat)))
4586
4587 (define-public samtools-0.1
4588 ;; This is the most recent version of the 0.1 line of samtools. The input
4589 ;; and output formats differ greatly from that used and produced by samtools
4590 ;; 1.x and is still used in many bioinformatics pipelines.
4591 (package (inherit samtools)
4592 (version "0.1.19")
4593 (source
4594 (origin
4595 (method url-fetch)
4596 (uri
4597 (string-append "mirror://sourceforge/samtools/samtools/"
4598 version "/samtools-" version ".tar.bz2"))
4599 (sha256
4600 (base32 "1m33xsfwz0s8qi45lylagfllqg7fphf4dr0780rsvw75av9wk06h"))))
4601 (arguments
4602 `(#:tests? #f ;no "check" target
4603 ,@(substitute-keyword-arguments (package-arguments samtools)
4604 ((#:make-flags flags)
4605 `(cons "LIBCURSES=-lncurses" ,flags))
4606 ((#:phases phases)
4607 `(modify-phases ,phases
4608 (replace 'install
4609 (lambda* (#:key outputs #:allow-other-keys)
4610 (let ((bin (string-append
4611 (assoc-ref outputs "out") "/bin")))
4612 (mkdir-p bin)
4613 (install-file "samtools" bin)
4614 #t)))
4615 (delete 'patch-tests)
4616 (delete 'configure))))))))
4617
4618 (define-public mosaik
4619 (let ((commit "5c25216d3522d6a33e53875cd76a6d65001e4e67"))
4620 (package
4621 (name "mosaik")
4622 (version "2.2.30")
4623 (source (origin
4624 ;; There are no release tarballs nor tags.
4625 (method git-fetch)
4626 (uri (git-reference
4627 (url "https://github.com/wanpinglee/MOSAIK.git")
4628 (commit commit)))
4629 (file-name (string-append name "-" version))
4630 (sha256
4631 (base32
4632 "17gj3s07cm77r41z92awh0bim7w7q7fbn0sf5nkqmcm1vw052qgw"))))
4633 (build-system gnu-build-system)
4634 (arguments
4635 `(#:tests? #f ; no tests
4636 #:make-flags (list "CC=gcc")
4637 #:phases
4638 (modify-phases %standard-phases
4639 (replace 'configure
4640 (lambda _ (chdir "src") #t))
4641 (replace 'install
4642 (lambda* (#:key outputs #:allow-other-keys)
4643 (let ((bin (string-append (assoc-ref outputs "out")
4644 "/bin")))
4645 (mkdir-p bin)
4646 (copy-recursively "../bin" bin)
4647 #t))))))
4648 (inputs
4649 `(("perl" ,perl)
4650 ("zlib" ,zlib)))
4651 (supported-systems '("x86_64-linux"))
4652 (home-page "https://github.com/wanpinglee/MOSAIK")
4653 (synopsis "Map nucleotide sequence reads to reference genomes")
4654 (description
4655 "MOSAIK is a program for mapping second and third-generation sequencing
4656 reads to a reference genome. MOSAIK can align reads generated by all the
4657 major sequencing technologies, including Illumina, Applied Biosystems SOLiD,
4658 Roche 454, Ion Torrent and Pacific BioSciences SMRT.")
4659 ;; MOSAIK is released under the GPLv2+ with the exception of third-party
4660 ;; code released into the public domain:
4661 ;; 1. fastlz by Ariya Hidayat - http://www.fastlz.org/
4662 ;; 2. MD5 implementation - RSA Data Security, RFC 1321
4663 (license (list license:gpl2+ license:public-domain)))))
4664
4665 (define-public ngs-sdk
4666 (package
4667 (name "ngs-sdk")
4668 (version "1.3.0")
4669 (source
4670 (origin
4671 (method url-fetch)
4672 (uri
4673 (string-append "https://github.com/ncbi/ngs/archive/"
4674 version ".tar.gz"))
4675 (file-name (string-append name "-" version ".tar.gz"))
4676 (sha256
4677 (base32
4678 "1wiyf4c6nm2j87pv015cbi0qny5byf3pbvcw3likifz5dl56ag40"))))
4679 (build-system gnu-build-system)
4680 (arguments
4681 `(#:parallel-build? #f ; not supported
4682 #:tests? #f ; no "check" target
4683 #:phases
4684 (alist-replace
4685 'configure
4686 (lambda* (#:key outputs #:allow-other-keys)
4687 (let ((out (assoc-ref outputs "out")))
4688 ;; The 'configure' script doesn't recognize things like
4689 ;; '--enable-fast-install'.
4690 (zero? (system* "./configure"
4691 (string-append "--build-prefix=" (getcwd) "/build")
4692 (string-append "--prefix=" out)))))
4693 (alist-cons-after
4694 'unpack 'enter-dir
4695 (lambda _ (chdir "ngs-sdk") #t)
4696 %standard-phases))))
4697 (native-inputs `(("perl" ,perl)))
4698 ;; According to the test
4699 ;; unless ($MARCH =~ /x86_64/i || $MARCH =~ /i?86/i)
4700 ;; in ngs-sdk/setup/konfigure.perl
4701 (supported-systems '("i686-linux" "x86_64-linux"))
4702 (home-page "https://github.com/ncbi/ngs")
4703 (synopsis "API for accessing Next Generation Sequencing data")
4704 (description
4705 "NGS is a domain-specific API for accessing reads, alignments and pileups
4706 produced from Next Generation Sequencing. The API itself is independent from
4707 any particular back-end implementation, and supports use of multiple back-ends
4708 simultaneously.")
4709 (license license:public-domain)))
4710
4711 (define-public java-ngs
4712 (package (inherit ngs-sdk)
4713 (name "java-ngs")
4714 (arguments
4715 `(,@(substitute-keyword-arguments
4716 `(#:modules ((guix build gnu-build-system)
4717 (guix build utils)
4718 (srfi srfi-1)
4719 (srfi srfi-26))
4720 ,@(package-arguments ngs-sdk))
4721 ((#:phases phases)
4722 `(modify-phases ,phases
4723 (replace 'enter-dir (lambda _ (chdir "ngs-java") #t)))))))
4724 (inputs
4725 `(("jdk" ,icedtea "jdk")
4726 ("ngs-sdk" ,ngs-sdk)))
4727 (synopsis "Java bindings for NGS SDK")))
4728
4729 (define-public ncbi-vdb
4730 (package
4731 (name "ncbi-vdb")
4732 (version "2.8.2")
4733 (source
4734 (origin
4735 (method url-fetch)
4736 (uri
4737 (string-append "https://github.com/ncbi/ncbi-vdb/archive/"
4738 version ".tar.gz"))
4739 (file-name (string-append name "-" version ".tar.gz"))
4740 (sha256
4741 (base32
4742 "1acn4bv81mfl137qnbn9995mjjhwd36pm0b7qli1iw5skrxa9j8m"))))
4743 (build-system gnu-build-system)
4744 (arguments
4745 `(#:parallel-build? #f ; not supported
4746 #:tests? #f ; no "check" target
4747 #:phases
4748 (modify-phases %standard-phases
4749 (replace 'configure
4750 (lambda* (#:key inputs outputs #:allow-other-keys)
4751 (let ((out (assoc-ref outputs "out")))
4752 ;; Override include path for libmagic
4753 (substitute* "setup/package.prl"
4754 (("name => 'magic', Include => '/usr/include'")
4755 (string-append "name=> 'magic', Include => '"
4756 (assoc-ref inputs "libmagic")
4757 "/include" "'")))
4758
4759 ;; Install kdf5 library (needed by sra-tools)
4760 (substitute* "build/Makefile.install"
4761 (("LIBRARIES_TO_INSTALL =")
4762 "LIBRARIES_TO_INSTALL = kdf5.$(VERSION_LIBX) kdf5.$(VERSION_SHLX)"))
4763
4764 (substitute* "build/Makefile.env"
4765 (("CFLAGS =" prefix)
4766 (string-append prefix "-msse2 ")))
4767
4768 ;; Override search path for ngs-java
4769 (substitute* "setup/package.prl"
4770 (("/usr/local/ngs/ngs-java")
4771 (assoc-ref inputs "java-ngs")))
4772
4773 ;; The 'configure' script doesn't recognize things like
4774 ;; '--enable-fast-install'.
4775 (zero? (system*
4776 "./configure"
4777 (string-append "--build-prefix=" (getcwd) "/build")
4778 (string-append "--prefix=" (assoc-ref outputs "out"))
4779 (string-append "--debug")
4780 (string-append "--with-xml2-prefix="
4781 (assoc-ref inputs "libxml2"))
4782 (string-append "--with-ngs-sdk-prefix="
4783 (assoc-ref inputs "ngs-sdk"))
4784 (string-append "--with-hdf5-prefix="
4785 (assoc-ref inputs "hdf5")))))))
4786 (add-after 'install 'install-interfaces
4787 (lambda* (#:key outputs #:allow-other-keys)
4788 ;; Install interface libraries. On i686 the interface libraries
4789 ;; are installed to "linux/gcc/i386", so we need to use the Linux
4790 ;; architecture name ("i386") instead of the target system prefix
4791 ;; ("i686").
4792 (mkdir (string-append (assoc-ref outputs "out") "/ilib"))
4793 (copy-recursively (string-append "build/ncbi-vdb/linux/gcc/"
4794 ,(system->linux-architecture
4795 (or (%current-target-system)
4796 (%current-system)))
4797 "/rel/ilib")
4798 (string-append (assoc-ref outputs "out")
4799 "/ilib"))
4800 ;; Install interface headers
4801 (copy-recursively "interfaces"
4802 (string-append (assoc-ref outputs "out")
4803 "/include"))
4804 #t))
4805 ;; These files are needed by sra-tools.
4806 (add-after 'install 'install-configuration-files
4807 (lambda* (#:key outputs #:allow-other-keys)
4808 (let ((target (string-append (assoc-ref outputs "out") "/kfg")))
4809 (mkdir target)
4810 (install-file "libs/kfg/default.kfg" target)
4811 (install-file "libs/kfg/certs.kfg" target))
4812 #t)))))
4813 (inputs
4814 `(("libxml2" ,libxml2)
4815 ("ngs-sdk" ,ngs-sdk)
4816 ("java-ngs" ,java-ngs)
4817 ("libmagic" ,file)
4818 ("hdf5" ,hdf5)))
4819 (native-inputs `(("perl" ,perl)))
4820 ;; NCBI-VDB requires SSE capability.
4821 (supported-systems '("i686-linux" "x86_64-linux"))
4822 (home-page "https://github.com/ncbi/ncbi-vdb")
4823 (synopsis "Database engine for genetic information")
4824 (description
4825 "The NCBI-VDB library implements a highly compressed columnar data
4826 warehousing engine that is most often used to store genetic information.
4827 Databases are stored in a portable image within the file system, and can be
4828 accessed/downloaded on demand across HTTP.")
4829 (license license:public-domain)))
4830
4831 (define-public plink
4832 (package
4833 (name "plink")
4834 (version "1.07")
4835 (source
4836 (origin
4837 (method url-fetch)
4838 (uri (string-append
4839 "http://pngu.mgh.harvard.edu/~purcell/plink/dist/plink-"
4840 version "-src.zip"))
4841 (sha256
4842 (base32 "0as8gxm4pjyc8dxmm1sl873rrd7wn5qs0l29nqfnl31x8i467xaa"))
4843 (patches (search-patches "plink-1.07-unclobber-i.patch"
4844 "plink-endian-detection.patch"))))
4845 (build-system gnu-build-system)
4846 (arguments
4847 '(#:tests? #f ;no "check" target
4848 #:make-flags (list (string-append "LIB_LAPACK="
4849 (assoc-ref %build-inputs "lapack")
4850 "/lib/liblapack.so")
4851 "WITH_LAPACK=1"
4852 "FORCE_DYNAMIC=1"
4853 ;; disable phoning home
4854 "WITH_WEBCHECK=")
4855 #:phases
4856 (modify-phases %standard-phases
4857 ;; no "configure" script
4858 (delete 'configure)
4859 (replace 'install
4860 (lambda* (#:key outputs #:allow-other-keys)
4861 (let ((bin (string-append (assoc-ref outputs "out")
4862 "/bin/")))
4863 (install-file "plink" bin)
4864 #t))))))
4865 (inputs
4866 `(("zlib" ,zlib)
4867 ("lapack" ,lapack)))
4868 (native-inputs
4869 `(("unzip" ,unzip)))
4870 (home-page "http://pngu.mgh.harvard.edu/~purcell/plink/")
4871 (synopsis "Whole genome association analysis toolset")
4872 (description
4873 "PLINK is a whole genome association analysis toolset, designed to
4874 perform a range of basic, large-scale analyses in a computationally efficient
4875 manner. The focus of PLINK is purely on analysis of genotype/phenotype data,
4876 so there is no support for steps prior to this (e.g. study design and
4877 planning, generating genotype or CNV calls from raw data). Through
4878 integration with gPLINK and Haploview, there is some support for the
4879 subsequent visualization, annotation and storage of results.")
4880 ;; Code is released under GPLv2, except for fisher.h, which is under
4881 ;; LGPLv2.1+
4882 (license (list license:gpl2 license:lgpl2.1+))))
4883
4884 (define-public smithlab-cpp
4885 (let ((revision "1")
4886 (commit "728a097bec88c6f4b8528b685932049e660eff2e"))
4887 (package
4888 (name "smithlab-cpp")
4889 (version (string-append "0." revision "." (string-take commit 7)))
4890 (source (origin
4891 (method git-fetch)
4892 (uri (git-reference
4893 (url "https://github.com/smithlabcode/smithlab_cpp.git")
4894 (commit commit)))
4895 (file-name (string-append name "-" version "-checkout"))
4896 (sha256
4897 (base32
4898 "0d476lmj312xk77kr9fzrv7z1bv96yfyx0w7y62ycmnfbx32ll74"))))
4899 (build-system gnu-build-system)
4900 (arguments
4901 `(#:modules ((guix build gnu-build-system)
4902 (guix build utils)
4903 (srfi srfi-26))
4904 #:tests? #f ;no "check" target
4905 #:phases
4906 (modify-phases %standard-phases
4907 (add-after 'unpack 'use-samtools-headers
4908 (lambda _
4909 (substitute* '("SAM.cpp"
4910 "SAM.hpp")
4911 (("sam.h") "samtools/sam.h"))
4912 #t))
4913 (replace 'install
4914 (lambda* (#:key outputs #:allow-other-keys)
4915 (let* ((out (assoc-ref outputs "out"))
4916 (lib (string-append out "/lib"))
4917 (include (string-append out "/include/smithlab-cpp")))
4918 (mkdir-p lib)
4919 (mkdir-p include)
4920 (for-each (cut install-file <> lib)
4921 (find-files "." "\\.o$"))
4922 (for-each (cut install-file <> include)
4923 (find-files "." "\\.hpp$")))
4924 #t))
4925 (delete 'configure))))
4926 (inputs
4927 `(("samtools" ,samtools-0.1)
4928 ("zlib" ,zlib)))
4929 (home-page "https://github.com/smithlabcode/smithlab_cpp")
4930 (synopsis "C++ helper library for functions used in Smith lab projects")
4931 (description
4932 "Smithlab CPP is a C++ library that includes functions used in many of
4933 the Smith lab bioinformatics projects, such as a wrapper around Samtools data
4934 structures, classes for genomic regions, mapped sequencing reads, etc.")
4935 (license license:gpl3+))))
4936
4937 (define-public preseq
4938 (package
4939 (name "preseq")
4940 (version "2.0")
4941 (source (origin
4942 (method url-fetch)
4943 (uri (string-append "https://github.com/smithlabcode/"
4944 "preseq/archive/v" version ".tar.gz"))
4945 (file-name (string-append name "-" version ".tar.gz"))
4946 (sha256
4947 (base32 "08r684l50pnxjpvmhzjgqq56yv9rfw90k8vx0nsrnrzk8mf9hsdq"))
4948 (modules '((guix build utils)))
4949 (snippet
4950 ;; Remove bundled samtools.
4951 '(delete-file-recursively "samtools"))))
4952 (build-system gnu-build-system)
4953 (arguments
4954 `(#:tests? #f ;no "check" target
4955 #:phases
4956 (modify-phases %standard-phases
4957 (delete 'configure))
4958 #:make-flags
4959 (list (string-append "PREFIX="
4960 (assoc-ref %outputs "out"))
4961 (string-append "LIBBAM="
4962 (assoc-ref %build-inputs "samtools")
4963 "/lib/libbam.a")
4964 (string-append "SMITHLAB_CPP="
4965 (assoc-ref %build-inputs "smithlab-cpp")
4966 "/lib")
4967 "PROGS=preseq"
4968 "INCLUDEDIRS=$(SMITHLAB_CPP)/../include/smithlab-cpp $(SAMTOOLS_DIR)")))
4969 (inputs
4970 `(("gsl" ,gsl)
4971 ("samtools" ,samtools-0.1)
4972 ("smithlab-cpp" ,smithlab-cpp)
4973 ("zlib" ,zlib)))
4974 (home-page "http://smithlabresearch.org/software/preseq/")
4975 (synopsis "Program for analyzing library complexity")
4976 (description
4977 "The preseq package is aimed at predicting and estimating the complexity
4978 of a genomic sequencing library, equivalent to predicting and estimating the
4979 number of redundant reads from a given sequencing depth and how many will be
4980 expected from additional sequencing using an initial sequencing experiment.
4981 The estimates can then be used to examine the utility of further sequencing,
4982 optimize the sequencing depth, or to screen multiple libraries to avoid low
4983 complexity samples.")
4984 (license license:gpl3+)))
4985
4986 (define-public python-screed
4987 (package
4988 (name "python-screed")
4989 (version "0.9")
4990 (source
4991 (origin
4992 (method url-fetch)
4993 (uri (pypi-uri "screed" version))
4994 (sha256
4995 (base32
4996 "18czszp9fkx3j6jr7y5kp6dfialscgddk05mw1zkhh2zhn0jd8i0"))))
4997 (build-system python-build-system)
4998 (arguments
4999 `(#:phases
5000 (modify-phases %standard-phases
5001 (replace 'check
5002 (lambda _
5003 (setenv "PYTHONPATH"
5004 (string-append (getenv "PYTHONPATH") ":."))
5005 (zero? (system* "nosetests" "--attr" "!known_failing")))))))
5006 (native-inputs
5007 `(("python-nose" ,python-nose)))
5008 (inputs
5009 `(("python-bz2file" ,python-bz2file)))
5010 (home-page "https://github.com/dib-lab/screed/")
5011 (synopsis "Short read sequence database utilities")
5012 (description "Screed parses FASTA and FASTQ files and generates databases.
5013 Values such as sequence name, sequence description, sequence quality and the
5014 sequence itself can be retrieved from these databases.")
5015 (license license:bsd-3)))
5016
5017 (define-public python2-screed
5018 (package-with-python2 python-screed))
5019
5020 (define-public sra-tools
5021 (package
5022 (name "sra-tools")
5023 (version "2.8.2-1")
5024 (source
5025 (origin
5026 (method url-fetch)
5027 (uri
5028 (string-append "https://github.com/ncbi/sra-tools/archive/"
5029 version ".tar.gz"))
5030 (file-name (string-append name "-" version ".tar.gz"))
5031 (sha256
5032 (base32
5033 "1camsijmvv2s45mb4iyf44ghl4gkd4rl0viphpcgl3ccchy32a0g"))))
5034 (build-system gnu-build-system)
5035 (arguments
5036 `(#:parallel-build? #f ; not supported
5037 #:tests? #f ; no "check" target
5038 #:make-flags
5039 (list (string-append "DEFAULT_CRT="
5040 (assoc-ref %build-inputs "ncbi-vdb")
5041 "/kfg/certs.kfg")
5042 (string-append "DEFAULT_KFG="
5043 (assoc-ref %build-inputs "ncbi-vdb")
5044 "/kfg/default.kfg")
5045 (string-append "VDB_LIBDIR="
5046 (assoc-ref %build-inputs "ncbi-vdb")
5047 ,(if (string-prefix? "x86_64"
5048 (or (%current-target-system)
5049 (%current-system)))
5050 "/lib64"
5051 "/lib32")))
5052 #:phases
5053 (modify-phases %standard-phases
5054 (replace 'configure
5055 (lambda* (#:key inputs outputs #:allow-other-keys)
5056 ;; The build system expects a directory containing the sources and
5057 ;; raw build output of ncbi-vdb, including files that are not
5058 ;; installed. Since we are building against an installed version of
5059 ;; ncbi-vdb, the following modifications are needed.
5060 (substitute* "setup/konfigure.perl"
5061 ;; Make the configure script look for the "ilib" directory of
5062 ;; "ncbi-vdb" without first checking for the existence of a
5063 ;; matching library in its "lib" directory.
5064 (("^ my \\$f = File::Spec->catdir\\(\\$libdir, \\$lib\\);")
5065 "my $f = File::Spec->catdir($ilibdir, $ilib);")
5066 ;; Look for interface libraries in ncbi-vdb's "ilib" directory.
5067 (("my \\$ilibdir = File::Spec->catdir\\(\\$builddir, 'ilib'\\);")
5068 "my $ilibdir = File::Spec->catdir($dir, 'ilib');"))
5069
5070 ;; Dynamic linking
5071 (substitute* "tools/copycat/Makefile"
5072 (("smagic-static") "lmagic"))
5073
5074 ;; The 'configure' script doesn't recognize things like
5075 ;; '--enable-fast-install'.
5076 (zero? (system*
5077 "./configure"
5078 (string-append "--build-prefix=" (getcwd) "/build")
5079 (string-append "--prefix=" (assoc-ref outputs "out"))
5080 (string-append "--debug")
5081 (string-append "--with-fuse-prefix="
5082 (assoc-ref inputs "fuse"))
5083 (string-append "--with-magic-prefix="
5084 (assoc-ref inputs "libmagic"))
5085 ;; TODO: building with libxml2 fails with linker errors
5086 ;; (string-append "--with-xml2-prefix="
5087 ;; (assoc-ref inputs "libxml2"))
5088 (string-append "--with-ncbi-vdb-sources="
5089 (assoc-ref inputs "ncbi-vdb"))
5090 (string-append "--with-ncbi-vdb-build="
5091 (assoc-ref inputs "ncbi-vdb"))
5092 (string-append "--with-ngs-sdk-prefix="
5093 (assoc-ref inputs "ngs-sdk"))
5094 (string-append "--with-hdf5-prefix="
5095 (assoc-ref inputs "hdf5"))))))
5096 ;; This version of sra-tools fails to build with glibc because of a
5097 ;; naming conflict. glibc-2.25/include/bits/mathcalls.h already
5098 ;; contains a definition of "canonicalize", so we rename it.
5099 ;;
5100 ;; See upstream bug report:
5101 ;; https://github.com/ncbi/sra-tools/issues/67
5102 (add-after 'unpack 'patch-away-glibc-conflict
5103 (lambda _
5104 (substitute* "tools/bam-loader/bam.c"
5105 (("canonicalize\\(" line)
5106 (string-append "sra_tools_" line)))
5107 #t)))))
5108 (native-inputs `(("perl" ,perl)))
5109 (inputs
5110 `(("ngs-sdk" ,ngs-sdk)
5111 ("ncbi-vdb" ,ncbi-vdb)
5112 ("libmagic" ,file)
5113 ("fuse" ,fuse)
5114 ("hdf5" ,hdf5)
5115 ("zlib" ,zlib)))
5116 (home-page "http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software")
5117 (synopsis "Tools and libraries for reading and writing sequencing data")
5118 (description
5119 "The SRA Toolkit from NCBI is a collection of tools and libraries for
5120 reading of sequencing files from the Sequence Read Archive (SRA) database and
5121 writing files into the .sra format.")
5122 (license license:public-domain)))
5123
5124 (define-public seqan
5125 (package
5126 (name "seqan")
5127 (version "1.4.2")
5128 (source (origin
5129 (method url-fetch)
5130 (uri (string-append "http://packages.seqan.de/seqan-library/"
5131 "seqan-library-" version ".tar.bz2"))
5132 (sha256
5133 (base32
5134 "05s3wrrwn50f81aklfm65i4a749zag1vr8z03k21xm0pdxy47yvp"))))
5135 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
5136 ;; makes sense to split the outputs.
5137 (outputs '("out" "doc"))
5138 (build-system trivial-build-system)
5139 (arguments
5140 `(#:modules ((guix build utils))
5141 #:builder
5142 (begin
5143 (use-modules (guix build utils))
5144 (let ((tar (assoc-ref %build-inputs "tar"))
5145 (bzip (assoc-ref %build-inputs "bzip2"))
5146 (out (assoc-ref %outputs "out"))
5147 (doc (assoc-ref %outputs "doc")))
5148 (setenv "PATH" (string-append tar "/bin:" bzip "/bin"))
5149 (system* "tar" "xvf" (assoc-ref %build-inputs "source"))
5150 (chdir (string-append "seqan-library-" ,version))
5151 (copy-recursively "include" (string-append out "/include"))
5152 (copy-recursively "share" (string-append doc "/share"))))))
5153 (native-inputs
5154 `(("source" ,source)
5155 ("tar" ,tar)
5156 ("bzip2" ,bzip2)))
5157 (home-page "http://www.seqan.de")
5158 (synopsis "Library for nucleotide sequence analysis")
5159 (description
5160 "SeqAn is a C++ library of efficient algorithms and data structures for
5161 the analysis of sequences with the focus on biological data. It contains
5162 algorithms and data structures for string representation and their
5163 manipulation, online and indexed string search, efficient I/O of
5164 bioinformatics file formats, sequence alignment, and more.")
5165 (license license:bsd-3)))
5166
5167 (define-public seqmagick
5168 (package
5169 (name "seqmagick")
5170 (version "0.6.1")
5171 (source
5172 (origin
5173 (method url-fetch)
5174 (uri (string-append
5175 "https://pypi.python.org/packages/source/s/seqmagick/seqmagick-"
5176 version ".tar.gz"))
5177 (sha256
5178 (base32
5179 "0cgn477n74gsl4qdaakrrhi953kcsd4q3ivk2lr18x74s3g4ma1d"))))
5180 (build-system python-build-system)
5181 (arguments
5182 ;; python2 only, see https://github.com/fhcrc/seqmagick/issues/56
5183 `(#:python ,python-2
5184 #:phases
5185 (modify-phases %standard-phases
5186 ;; Current test in setup.py does not work as of 0.6.1,
5187 ;; so use nose to run tests instead for now. See
5188 ;; https://github.com/fhcrc/seqmagick/issues/55
5189 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
5190 (inputs
5191 ;; biopython-1.66 is required due to
5192 ;; https://github.com/fhcrc/seqmagick/issues/59
5193 ;; When that issue is resolved the 'python2-biopython-1.66' package
5194 ;; should be removed.
5195 `(("python-biopython" ,python2-biopython-1.66)))
5196 (native-inputs
5197 `(("python-nose" ,python2-nose)))
5198 (home-page "https://github.com/fhcrc/seqmagick")
5199 (synopsis "Tools for converting and modifying sequence files")
5200 (description
5201 "Bioinformaticians often have to convert sequence files between formats
5202 and do little manipulations on them, and it's not worth writing scripts for
5203 that. Seqmagick is a utility to expose the file format conversion in
5204 BioPython in a convenient way. Instead of having a big mess of scripts, there
5205 is one that takes arguments.")
5206 (license license:gpl3)))
5207
5208 (define-public seqtk
5209 (package
5210 (name "seqtk")
5211 (version "1.2")
5212 (source (origin
5213 (method url-fetch)
5214 (uri (string-append
5215 "https://github.com/lh3/seqtk/archive/v"
5216 version ".tar.gz"))
5217 (file-name (string-append name "-" version ".tar.gz"))
5218 (sha256
5219 (base32
5220 "0ywdyzpmfiz2wp6ampbzqg4y8bj450nfgqarpamg045b8mk32lxx"))
5221 (modules '((guix build utils)))
5222 (snippet
5223 '(begin
5224 ;; Remove extraneous header files, as is done in the seqtk
5225 ;; master branch.
5226 (for-each (lambda (file) (delete-file file))
5227 (list "ksort.h" "kstring.h" "kvec.h"))
5228 #t))))
5229 (build-system gnu-build-system)
5230 (arguments
5231 `(#:phases
5232 (modify-phases %standard-phases
5233 (delete 'configure)
5234 (replace 'check
5235 ;; There are no tests, so we just run a sanity check.
5236 (lambda _ (zero? (system* "./seqtk" "seq"))))
5237 (replace 'install
5238 (lambda* (#:key outputs #:allow-other-keys)
5239 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5240 (install-file "seqtk" bin)))))))
5241 (inputs
5242 `(("zlib" ,zlib)))
5243 (home-page "https://github.com/lh3/seqtk")
5244 (synopsis "Toolkit for processing biological sequences in FASTA/Q format")
5245 (description
5246 "Seqtk is a fast and lightweight tool for processing sequences in the
5247 FASTA or FASTQ format. It parses both FASTA and FASTQ files which can be
5248 optionally compressed by gzip.")
5249 (license license:expat)))
5250
5251 (define-public snap-aligner
5252 (package
5253 (name "snap-aligner")
5254 (version "1.0beta.18")
5255 (source (origin
5256 (method url-fetch)
5257 (uri (string-append
5258 "https://github.com/amplab/snap/archive/v"
5259 version ".tar.gz"))
5260 (file-name (string-append name "-" version ".tar.gz"))
5261 (sha256
5262 (base32
5263 "1vnsjwv007k1fl1q7d681kbwn6bc66cgw6h16hym6gvyy71qv2ly"))))
5264 (build-system gnu-build-system)
5265 (arguments
5266 '(#:phases
5267 (modify-phases %standard-phases
5268 (delete 'configure)
5269 (replace 'check (lambda _ (zero? (system* "./unit_tests"))))
5270 (replace 'install
5271 (lambda* (#:key outputs #:allow-other-keys)
5272 (let* ((out (assoc-ref outputs "out"))
5273 (bin (string-append out "/bin")))
5274 (install-file "snap-aligner" bin)
5275 (install-file "SNAPCommand" bin)
5276 #t))))))
5277 (native-inputs
5278 `(("zlib" ,zlib)))
5279 (home-page "http://snap.cs.berkeley.edu/")
5280 (synopsis "Short read DNA sequence aligner")
5281 (description
5282 "SNAP is a fast and accurate aligner for short DNA reads. It is
5283 optimized for modern read lengths of 100 bases or higher, and takes advantage
5284 of these reads to align data quickly through a hash-based indexing scheme.")
5285 ;; 32-bit systems are not supported by the unpatched code.
5286 ;; Following the bug reports https://github.com/amplab/snap/issues/68 and
5287 ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812378 we see that
5288 ;; systems without a lot of memory cannot make good use of this program.
5289 (supported-systems '("x86_64-linux"))
5290 (license license:asl2.0)))
5291
5292 (define-public sortmerna
5293 (package
5294 (name "sortmerna")
5295 (version "2.1b")
5296 (source
5297 (origin
5298 (method url-fetch)
5299 (uri (string-append
5300 "https://github.com/biocore/sortmerna/archive/"
5301 version ".tar.gz"))
5302 (file-name (string-append name "-" version ".tar.gz"))
5303 (sha256
5304 (base32
5305 "1ghaghvd82af9j5adavxh77g7hm247d1r69m3fbi6f1jdivj5ldk"))))
5306 (build-system gnu-build-system)
5307 (outputs '("out" ;for binaries
5308 "db")) ;for sequence databases
5309 (arguments
5310 `(#:phases
5311 (modify-phases %standard-phases
5312 (replace 'install
5313 (lambda* (#:key outputs #:allow-other-keys)
5314 (let* ((out (assoc-ref outputs "out"))
5315 (bin (string-append out "/bin"))
5316 (db (assoc-ref outputs "db"))
5317 (share
5318 (string-append db "/share/sortmerna/rRNA_databases")))
5319 (install-file "sortmerna" bin)
5320 (install-file "indexdb_rna" bin)
5321 (for-each (lambda (file)
5322 (install-file file share))
5323 (find-files "rRNA_databases" ".*fasta"))
5324 #t))))))
5325 (inputs
5326 `(("zlib" ,zlib)))
5327 (home-page "http://bioinfo.lifl.fr/RNA/sortmerna")
5328 (synopsis "Biological sequence analysis tool for NGS reads")
5329 (description
5330 "SortMeRNA is a biological sequence analysis tool for filtering, mapping
5331 and operational taxonomic unit (OTU) picking of next generation
5332 sequencing (NGS) reads. The core algorithm is based on approximate seeds and
5333 allows for fast and sensitive analyses of nucleotide sequences. The main
5334 application of SortMeRNA is filtering rRNA from metatranscriptomic data.")
5335 ;; The source includes x86 specific code
5336 (supported-systems '("x86_64-linux" "i686-linux"))
5337 (license license:lgpl3)))
5338
5339 (define-public star
5340 (package
5341 (name "star")
5342 (version "2.5.3a")
5343 (source (origin
5344 (method url-fetch)
5345 (uri (string-append "https://github.com/alexdobin/STAR/archive/"
5346 version ".tar.gz"))
5347 (file-name (string-append name "-" version ".tar.gz"))
5348 (sha256
5349 (base32
5350 "013wirlz8lllgjyagl48l75n1isxyabqb3sj7qlsl0x1rmvqw99a"))
5351 (modules '((guix build utils)))
5352 (snippet
5353 '(begin
5354 (substitute* "source/Makefile"
5355 (("/bin/rm") "rm"))
5356 ;; Remove pre-built binaries and bundled htslib sources.
5357 (delete-file-recursively "bin/MacOSX_x86_64")
5358 (delete-file-recursively "bin/Linux_x86_64")
5359 (delete-file-recursively "bin/Linux_x86_64_static")
5360 (delete-file-recursively "source/htslib")
5361 #t))))
5362 (build-system gnu-build-system)
5363 (arguments
5364 '(#:tests? #f ;no check target
5365 #:make-flags '("STAR")
5366 #:phases
5367 (modify-phases %standard-phases
5368 (add-after 'unpack 'enter-source-dir
5369 (lambda _ (chdir "source") #t))
5370 (add-after 'enter-source-dir 'do-not-use-bundled-htslib
5371 (lambda _
5372 (substitute* "Makefile"
5373 (("(Depend.list: \\$\\(SOURCES\\) parametersDefault\\.xxd) htslib"
5374 _ prefix) prefix))
5375 (substitute* '("BAMfunctions.cpp"
5376 "signalFromBAM.h"
5377 "bam_cat.h"
5378 "bam_cat.c"
5379 "STAR.cpp"
5380 "bamRemoveDuplicates.cpp")
5381 (("#include \"htslib/([^\"]+\\.h)\"" _ header)
5382 (string-append "#include <" header ">")))
5383 (substitute* "IncludeDefine.h"
5384 (("\"htslib/(htslib/[^\"]+.h)\"" _ header)
5385 (string-append "<" header ">")))
5386 #t))
5387 (replace 'install
5388 (lambda* (#:key outputs #:allow-other-keys)
5389 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5390 (install-file "STAR" bin))
5391 #t))
5392 (delete 'configure))))
5393 (native-inputs
5394 `(("vim" ,vim))) ; for xxd
5395 (inputs
5396 `(("htslib" ,htslib)
5397 ("zlib" ,zlib)))
5398 (home-page "https://github.com/alexdobin/STAR")
5399 (synopsis "Universal RNA-seq aligner")
5400 (description
5401 "The Spliced Transcripts Alignment to a Reference (STAR) software is
5402 based on a previously undescribed RNA-seq alignment algorithm that uses
5403 sequential maximum mappable seed search in uncompressed suffix arrays followed
5404 by seed clustering and stitching procedure. In addition to unbiased de novo
5405 detection of canonical junctions, STAR can discover non-canonical splices and
5406 chimeric (fusion) transcripts, and is also capable of mapping full-length RNA
5407 sequences.")
5408 ;; Only 64-bit systems are supported according to the README.
5409 (supported-systems '("x86_64-linux" "mips64el-linux"))
5410 ;; STAR is licensed under GPLv3 or later; htslib is MIT-licensed.
5411 (license license:gpl3+)))
5412
5413 (define-public subread
5414 (package
5415 (name "subread")
5416 (version "1.5.1")
5417 (source (origin
5418 (method url-fetch)
5419 (uri (string-append "mirror://sourceforge/subread/subread-"
5420 version "/subread-" version "-source.tar.gz"))
5421 (sha256
5422 (base32
5423 "0gn5zhbvllks0mmdg3qlmsbg91p2mpdc2wixwfqpi85yzfrh8hcy"))))
5424 (build-system gnu-build-system)
5425 (arguments
5426 `(#:tests? #f ;no "check" target
5427 ;; The CC and CCFLAGS variables are set to contain a lot of x86_64
5428 ;; optimizations by default, so we override these flags such that x86_64
5429 ;; flags are only added when the build target is an x86_64 system.
5430 #:make-flags
5431 (list (let ((system ,(or (%current-target-system)
5432 (%current-system)))
5433 (flags '("-ggdb" "-fomit-frame-pointer"
5434 "-ffast-math" "-funroll-loops"
5435 "-fmessage-length=0"
5436 "-O9" "-Wall" "-DMAKE_FOR_EXON"
5437 "-DMAKE_STANDALONE"
5438 "-DSUBREAD_VERSION=\\\"${SUBREAD_VERSION}\\\""))
5439 (flags64 '("-mmmx" "-msse" "-msse2" "-msse3")))
5440 (if (string-prefix? "x86_64" system)
5441 (string-append "CCFLAGS=" (string-join (append flags flags64)))
5442 (string-append "CCFLAGS=" (string-join flags))))
5443 "-f" "Makefile.Linux"
5444 "CC=gcc ${CCFLAGS}")
5445 #:phases
5446 (alist-cons-after
5447 'unpack 'enter-dir
5448 (lambda _ (chdir "src") #t)
5449 (alist-replace
5450 'install
5451 (lambda* (#:key outputs #:allow-other-keys)
5452 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5453 (mkdir-p bin)
5454 (copy-recursively "../bin" bin)))
5455 ;; no "configure" script
5456 (alist-delete 'configure %standard-phases)))))
5457 (inputs `(("zlib" ,zlib)))
5458 (home-page "http://bioinf.wehi.edu.au/subread-package/")
5459 (synopsis "Tool kit for processing next-gen sequencing data")
5460 (description
5461 "The subread package contains the following tools: subread aligner, a
5462 general-purpose read aligner; subjunc aligner: detecting exon-exon junctions
5463 and mapping RNA-seq reads; featureCounts: counting mapped reads for genomic
5464 features; exactSNP: a SNP caller that discovers SNPs by testing signals
5465 against local background noises.")
5466 (license license:gpl3+)))
5467
5468 (define-public stringtie
5469 (package
5470 (name "stringtie")
5471 (version "1.2.1")
5472 (source (origin
5473 (method url-fetch)
5474 (uri (string-append "http://ccb.jhu.edu/software/stringtie/dl/"
5475 "stringtie-" version ".tar.gz"))
5476 (sha256
5477 (base32
5478 "1cqllsc1maq4kh92isi8yadgzbmnf042hlnalpk3y59aph1z3bfz"))
5479 (modules '((guix build utils)))
5480 (snippet
5481 '(begin
5482 (delete-file-recursively "samtools-0.1.18")
5483 #t))))
5484 (build-system gnu-build-system)
5485 (arguments
5486 `(#:tests? #f ;no test suite
5487 #:phases
5488 (modify-phases %standard-phases
5489 ;; no configure script
5490 (delete 'configure)
5491 (add-before 'build 'use-system-samtools
5492 (lambda _
5493 (substitute* "Makefile"
5494 (("stringtie: \\$\\{BAM\\}/libbam\\.a")
5495 "stringtie: "))
5496 (substitute* '("gclib/GBam.h"
5497 "gclib/GBam.cpp")
5498 (("#include \"(bam|sam|kstring).h\"" _ header)
5499 (string-append "#include <samtools/" header ".h>")))
5500 #t))
5501 (add-after 'unpack 'remove-duplicate-typedef
5502 (lambda _
5503 ;; This typedef conflicts with the typedef in
5504 ;; glibc-2.25/include/bits/types.h
5505 (substitute* "gclib/GThreads.h"
5506 (("typedef long long __intmax_t;") ""))
5507 #t))
5508 (replace 'install
5509 (lambda* (#:key outputs #:allow-other-keys)
5510 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5511 (install-file "stringtie" bin)
5512 #t))))))
5513 (inputs
5514 `(("samtools" ,samtools-0.1)
5515 ("zlib" ,zlib)))
5516 (home-page "http://ccb.jhu.edu/software/stringtie/")
5517 (synopsis "Transcript assembly and quantification for RNA-Seq data")
5518 (description
5519 "StringTie is a fast and efficient assembler of RNA-Seq sequence
5520 alignments into potential transcripts. It uses a novel network flow algorithm
5521 as well as an optional de novo assembly step to assemble and quantitate
5522 full-length transcripts representing multiple splice variants for each gene
5523 locus. Its input can include not only the alignments of raw reads used by
5524 other transcript assemblers, but also alignments of longer sequences that have
5525 been assembled from those reads. To identify differentially expressed genes
5526 between experiments, StringTie's output can be processed either by the
5527 Cuffdiff or Ballgown programs.")
5528 (license license:artistic2.0)))
5529
5530 (define-public taxtastic
5531 (package
5532 (name "taxtastic")
5533 (version "0.6.4")
5534 (source (origin
5535 (method url-fetch)
5536 (uri (pypi-uri "taxtastic" version))
5537 (sha256
5538 (base32
5539 "0s79z8kfl853x7l4h8ms05k31q87aw62nrchlk20w9n227j35929"))))
5540 (build-system python-build-system)
5541 (arguments
5542 `(#:python ,python-2
5543 #:phases
5544 (modify-phases %standard-phases
5545 (replace 'check
5546 (lambda _
5547 (zero? (system* "python" "-m" "unittest" "discover" "-v")))))))
5548 (propagated-inputs
5549 `(("python-sqlalchemy" ,python2-sqlalchemy)
5550 ("python-decorator" ,python2-decorator)
5551 ("python-biopython" ,python2-biopython)
5552 ("python-pandas" ,python2-pandas)))
5553 (home-page "https://github.com/fhcrc/taxtastic")
5554 (synopsis "Tools for taxonomic naming and annotation")
5555 (description
5556 "Taxtastic is software written in python used to build and maintain
5557 reference packages i.e. collections of reference trees, reference alignments,
5558 profiles, and associated taxonomic information.")
5559 (license license:gpl3+)))
5560
5561 (define-public vcftools
5562 (package
5563 (name "vcftools")
5564 (version "0.1.15")
5565 (source (origin
5566 (method url-fetch)
5567 (uri (string-append
5568 "https://github.com/vcftools/vcftools/releases/download/v"
5569 version "/vcftools-" version ".tar.gz"))
5570 (sha256
5571 (base32
5572 "1qw30c45wihgy632rbz4rh3njnwj4msj46l1rsgdhyg6bgypmr1i"))))
5573 (build-system gnu-build-system)
5574 (arguments
5575 `(#:tests? #f ; no "check" target
5576 #:make-flags (list
5577 "CFLAGS=-O2" ; override "-m64" flag
5578 (string-append "PREFIX=" (assoc-ref %outputs "out"))
5579 (string-append "MANDIR=" (assoc-ref %outputs "out")
5580 "/share/man/man1"))))
5581 (native-inputs
5582 `(("pkg-config" ,pkg-config)))
5583 (inputs
5584 `(("perl" ,perl)
5585 ("zlib" ,zlib)))
5586 (home-page "https://vcftools.github.io/")
5587 (synopsis "Tools for working with VCF files")
5588 (description
5589 "VCFtools is a program package designed for working with VCF files, such
5590 as those generated by the 1000 Genomes Project. The aim of VCFtools is to
5591 provide easily accessible methods for working with complex genetic variation
5592 data in the form of VCF files.")
5593 ;; The license is declared as LGPLv3 in the README and
5594 ;; at https://vcftools.github.io/license.html
5595 (license license:lgpl3)))
5596
5597 (define-public infernal
5598 (package
5599 (name "infernal")
5600 (version "1.1.2")
5601 (source (origin
5602 (method url-fetch)
5603 (uri (string-append "http://eddylab.org/software/infernal/"
5604 "infernal-" version ".tar.gz"))
5605 (sha256
5606 (base32
5607 "0sr2hiz3qxfwqpz3whxr6n82p3x27336v3f34iqznp10hks2935c"))))
5608 (build-system gnu-build-system)
5609 (native-inputs
5610 `(("perl" ,perl))) ; for tests
5611 (home-page "http://eddylab.org/infernal/")
5612 (synopsis "Inference of RNA alignments")
5613 (description "Infernal (\"INFERence of RNA ALignment\") is a tool for
5614 searching DNA sequence databases for RNA structure and sequence similarities.
5615 It is an implementation of a special case of profile stochastic context-free
5616 grammars called @dfn{covariance models} (CMs). A CM is like a sequence
5617 profile, but it scores a combination of sequence consensus and RNA secondary
5618 structure consensus, so in many cases, it is more capable of identifying RNA
5619 homologs that conserve their secondary structure more than their primary
5620 sequence.")
5621 ;; Infernal 1.1.2 requires VMX or SSE capability for parallel instructions.
5622 (supported-systems '("i686-linux" "x86_64-linux"))
5623 (license license:bsd-3)))
5624
5625 (define-public r-centipede
5626 (package
5627 (name "r-centipede")
5628 (version "1.2")
5629 (source (origin
5630 (method url-fetch)
5631 (uri (string-append "http://download.r-forge.r-project.org/"
5632 "src/contrib/CENTIPEDE_" version ".tar.gz"))
5633 (sha256
5634 (base32
5635 "1hsx6qgwr0i67fhy9257zj7s0ppncph2hjgbia5nn6nfmj0ax6l9"))))
5636 (build-system r-build-system)
5637 (home-page "http://centipede.uchicago.edu/")
5638 (synopsis "Predict transcription factor binding sites")
5639 (description
5640 "CENTIPEDE applies a hierarchical Bayesian mixture model to infer regions
5641 of the genome that are bound by particular transcription factors. It starts
5642 by identifying a set of candidate binding sites, and then aims to classify the
5643 sites according to whether each site is bound or not bound by a transcription
5644 factor. CENTIPEDE is an unsupervised learning algorithm that discriminates
5645 between two different types of motif instances using as much relevant
5646 information as possible.")
5647 (license (list license:gpl2+ license:gpl3+))))
5648
5649 (define-public r-vegan
5650 (package
5651 (name "r-vegan")
5652 (version "2.4-3")
5653 (source
5654 (origin
5655 (method url-fetch)
5656 (uri (cran-uri "vegan" version))
5657 (sha256
5658 (base32
5659 "15zcxfix2d854897k1lr0sfmj2n00339nlsppcr3zrb238lb2mi5"))))
5660 (build-system r-build-system)
5661 (native-inputs
5662 `(("gfortran" ,gfortran)
5663 ("r-knitr" ,r-knitr)))
5664 (propagated-inputs
5665 `(("r-cluster" ,r-cluster)
5666 ("r-lattice" ,r-lattice)
5667 ("r-mass" ,r-mass)
5668 ("r-mgcv" ,r-mgcv)
5669 ("r-permute" ,r-permute)))
5670 (home-page "https://cran.r-project.org/web/packages/vegan")
5671 (synopsis "Functions for community ecology")
5672 (description
5673 "The vegan package provides tools for descriptive community ecology. It
5674 has most basic functions of diversity analysis, community ordination and
5675 dissimilarity analysis. Most of its multivariate tools can be used for other
5676 data types as well.")
5677 (license license:gpl2+)))
5678
5679 (define-public r-annotate
5680 (package
5681 (name "r-annotate")
5682 (version "1.54.0")
5683 (source
5684 (origin
5685 (method url-fetch)
5686 (uri (bioconductor-uri "annotate" version))
5687 (sha256
5688 (base32
5689 "03hmbvp3i6lvd307fqdg7akxi2qp322rlky3bzw0zccgm0i0221g"))))
5690 (build-system r-build-system)
5691 (propagated-inputs
5692 `(("r-annotationdbi" ,r-annotationdbi)
5693 ("r-biobase" ,r-biobase)
5694 ("r-biocgenerics" ,r-biocgenerics)
5695 ("r-dbi" ,r-dbi)
5696 ("r-rcurl" ,r-rcurl)
5697 ("r-xml" ,r-xml)
5698 ("r-xtable" ,r-xtable)))
5699 (home-page
5700 "http://bioconductor.org/packages/annotate")
5701 (synopsis "Annotation for microarrays")
5702 (description "This package provides R environments for the annotation of
5703 microarrays.")
5704 (license license:artistic2.0)))
5705
5706 (define-public r-geneplotter
5707 (package
5708 (name "r-geneplotter")
5709 (version "1.54.0")
5710 (source
5711 (origin
5712 (method url-fetch)
5713 (uri (bioconductor-uri "geneplotter" version))
5714 (sha256
5715 (base32
5716 "0a0ajns21db5rrjl16bq6wawggsnxr00fg184pc38nmfghv4z4b6"))))
5717 (build-system r-build-system)
5718 (propagated-inputs
5719 `(("r-annotate" ,r-annotate)
5720 ("r-annotationdbi" ,r-annotationdbi)
5721 ("r-biobase" ,r-biobase)
5722 ("r-biocgenerics" ,r-biocgenerics)
5723 ("r-lattice" ,r-lattice)
5724 ("r-rcolorbrewer" ,r-rcolorbrewer)))
5725 (home-page "http://bioconductor.org/packages/geneplotter")
5726 (synopsis "Graphics functions for genomic data")
5727 (description
5728 "This package provides functions for plotting genomic data.")
5729 (license license:artistic2.0)))
5730
5731 (define-public r-genefilter
5732 (package
5733 (name "r-genefilter")
5734 (version "1.58.0")
5735 (source
5736 (origin
5737 (method url-fetch)
5738 (uri (bioconductor-uri "genefilter" version))
5739 (sha256
5740 (base32
5741 "0sf2hdi9nv6r83vn1y65m4jiba8pffddpj46d6yjn5rlsixplmqg"))))
5742 (build-system r-build-system)
5743 (native-inputs
5744 `(("gfortran" ,gfortran)))
5745 (propagated-inputs
5746 `(("r-annotate" ,r-annotate)
5747 ("r-annotationdbi" ,r-annotationdbi)
5748 ("r-biobase" ,r-biobase)
5749 ("r-s4vectors" ,r-s4vectors)
5750 ("r-survival" ,r-survival)))
5751 (home-page "http://bioconductor.org/packages/genefilter")
5752 (synopsis "Filter genes from high-throughput experiments")
5753 (description
5754 "This package provides basic functions for filtering genes from
5755 high-throughput sequencing experiments.")
5756 (license license:artistic2.0)))
5757
5758 (define-public r-deseq2
5759 (package
5760 (name "r-deseq2")
5761 (version "1.16.1")
5762 (source
5763 (origin
5764 (method url-fetch)
5765 (uri (bioconductor-uri "DESeq2" version))
5766 (sha256
5767 (base32
5768 "01pvyljxkwazxl510v7h0971nx65iqd2bdkbdhw3xzind0n9pdvq"))))
5769 (properties `((upstream-name . "DESeq2")))
5770 (build-system r-build-system)
5771 (propagated-inputs
5772 `(("r-biobase" ,r-biobase)
5773 ("r-biocgenerics" ,r-biocgenerics)
5774 ("r-biocparallel" ,r-biocparallel)
5775 ("r-genefilter" ,r-genefilter)
5776 ("r-geneplotter" ,r-geneplotter)
5777 ("r-genomicranges" ,r-genomicranges)
5778 ("r-ggplot2" ,r-ggplot2)
5779 ("r-hmisc" ,r-hmisc)
5780 ("r-iranges" ,r-iranges)
5781 ("r-locfit" ,r-locfit)
5782 ("r-rcpp" ,r-rcpp)
5783 ("r-rcpparmadillo" ,r-rcpparmadillo)
5784 ("r-s4vectors" ,r-s4vectors)
5785 ("r-summarizedexperiment" ,r-summarizedexperiment)))
5786 (home-page "http://bioconductor.org/packages/DESeq2")
5787 (synopsis "Differential gene expression analysis")
5788 (description
5789 "This package provides functions to estimate variance-mean dependence in
5790 count data from high-throughput nucleotide sequencing assays and test for
5791 differential expression based on a model using the negative binomial
5792 distribution.")
5793 (license license:lgpl3+)))
5794
5795 (define-public r-dexseq
5796 (package
5797 (name "r-dexseq")
5798 (version "1.22.0")
5799 (source
5800 (origin
5801 (method url-fetch)
5802 (uri (bioconductor-uri "DEXSeq" version))
5803 (sha256
5804 (base32
5805 "085aqk1wlzzqcqcqhvz74y099kr2ln5dwdxd3rl6zan806mgwahg"))))
5806 (properties `((upstream-name . "DEXSeq")))
5807 (build-system r-build-system)
5808 (propagated-inputs
5809 `(("r-annotationdbi" ,r-annotationdbi)
5810 ("r-biobase" ,r-biobase)
5811 ("r-biocgenerics" ,r-biocgenerics)
5812 ("r-biocparallel" ,r-biocparallel)
5813 ("r-biomart" ,r-biomart)
5814 ("r-deseq2" ,r-deseq2)
5815 ("r-genefilter" ,r-genefilter)
5816 ("r-geneplotter" ,r-geneplotter)
5817 ("r-genomicranges" ,r-genomicranges)
5818 ("r-hwriter" ,r-hwriter)
5819 ("r-iranges" ,r-iranges)
5820 ("r-rcolorbrewer" ,r-rcolorbrewer)
5821 ("r-rsamtools" ,r-rsamtools)
5822 ("r-s4vectors" ,r-s4vectors)
5823 ("r-statmod" ,r-statmod)
5824 ("r-stringr" ,r-stringr)
5825 ("r-summarizedexperiment" ,r-summarizedexperiment)))
5826 (home-page "http://bioconductor.org/packages/DEXSeq")
5827 (synopsis "Inference of differential exon usage in RNA-Seq")
5828 (description
5829 "This package is focused on finding differential exon usage using RNA-seq
5830 exon counts between samples with different experimental designs. It provides
5831 functions that allows the user to make the necessary statistical tests based
5832 on a model that uses the negative binomial distribution to estimate the
5833 variance between biological replicates and generalized linear models for
5834 testing. The package also provides functions for the visualization and
5835 exploration of the results.")
5836 (license license:gpl3+)))
5837
5838 (define-public r-annotationforge
5839 (package
5840 (name "r-annotationforge")
5841 (version "1.18.1")
5842 (source
5843 (origin
5844 (method url-fetch)
5845 (uri (bioconductor-uri "AnnotationForge" version))
5846 (sha256
5847 (base32
5848 "1366qvykd9cpcvwgc5g9mm9adw9rxw6p4814dd6l5fyb0pwpmysx"))))
5849 (properties
5850 `((upstream-name . "AnnotationForge")))
5851 (build-system r-build-system)
5852 (propagated-inputs
5853 `(("r-annotationdbi" ,r-annotationdbi)
5854 ("r-biobase" ,r-biobase)
5855 ("r-biocgenerics" ,r-biocgenerics)
5856 ("r-dbi" ,r-dbi)
5857 ("r-rcurl" ,r-rcurl)
5858 ("r-rsqlite" ,r-rsqlite)
5859 ("r-s4vectors" ,r-s4vectors)
5860 ("r-xml" ,r-xml)))
5861 (home-page "http://bioconductor.org/packages/AnnotationForge")
5862 (synopsis "Code for building annotation database packages")
5863 (description
5864 "This package provides code for generating Annotation packages and their
5865 databases. Packages produced are intended to be used with AnnotationDbi.")
5866 (license license:artistic2.0)))
5867
5868 (define-public r-rbgl
5869 (package
5870 (name "r-rbgl")
5871 (version "1.52.0")
5872 (source
5873 (origin
5874 (method url-fetch)
5875 (uri (bioconductor-uri "RBGL" version))
5876 (sha256
5877 (base32
5878 "11db6kvz453ypj9ds3xpjqzwrrjck84ijn4wlhkfyz2dzdgd5ryv"))))
5879 (properties `((upstream-name . "RBGL")))
5880 (build-system r-build-system)
5881 (propagated-inputs `(("r-graph" ,r-graph)))
5882 (home-page "http://www.bioconductor.org/packages/RBGL")
5883 (synopsis "Interface to the Boost graph library")
5884 (description
5885 "This package provides a fairly extensive and comprehensive interface to
5886 the graph algorithms contained in the Boost library.")
5887 (license license:artistic2.0)))
5888
5889 (define-public r-gseabase
5890 (package
5891 (name "r-gseabase")
5892 (version "1.38.0")
5893 (source
5894 (origin
5895 (method url-fetch)
5896 (uri (bioconductor-uri "GSEABase" version))
5897 (sha256
5898 (base32
5899 "1c6i6g4fj3b8wjyxyygr7i3v8sxrq1ffb2bbicya5ah2gdaclfad"))))
5900 (properties `((upstream-name . "GSEABase")))
5901 (build-system r-build-system)
5902 (propagated-inputs
5903 `(("r-annotate" ,r-annotate)
5904 ("r-annotationdbi" ,r-annotationdbi)
5905 ("r-biobase" ,r-biobase)
5906 ("r-biocgenerics" ,r-biocgenerics)
5907 ("r-graph" ,r-graph)
5908 ("r-xml" ,r-xml)))
5909 (home-page "http://bioconductor.org/packages/GSEABase")
5910 (synopsis "Gene set enrichment data structures and methods")
5911 (description
5912 "This package provides classes and methods to support @dfn{Gene Set
5913 Enrichment Analysis} (GSEA).")
5914 (license license:artistic2.0)))
5915
5916 (define-public r-category
5917 (package
5918 (name "r-category")
5919 (version "2.42.1")
5920 (source
5921 (origin
5922 (method url-fetch)
5923 (uri (bioconductor-uri "Category" version))
5924 (sha256
5925 (base32
5926 "1w186nhc85bglcgmbcrsdbb8l6rph21pl5kdwjqwkp0jnr9z0ifn"))))
5927 (properties `((upstream-name . "Category")))
5928 (build-system r-build-system)
5929 (propagated-inputs
5930 `(("r-annotate" ,r-annotate)
5931 ("r-annotationdbi" ,r-annotationdbi)
5932 ("r-biobase" ,r-biobase)
5933 ("r-biocgenerics" ,r-biocgenerics)
5934 ("r-genefilter" ,r-genefilter)
5935 ("r-graph" ,r-graph)
5936 ("r-gseabase" ,r-gseabase)
5937 ("r-matrix" ,r-matrix)
5938 ("r-rbgl" ,r-rbgl)
5939 ("r-rsqlite" ,r-rsqlite)))
5940 (home-page "http://bioconductor.org/packages/Category")
5941 (synopsis "Category analysis")
5942 (description
5943 "This package provides a collection of tools for performing category
5944 analysis.")
5945 (license license:artistic2.0)))
5946
5947 (define-public r-gostats
5948 (package
5949 (name "r-gostats")
5950 (version "2.42.0")
5951 (source
5952 (origin
5953 (method url-fetch)
5954 (uri (bioconductor-uri "GOstats" version))
5955 (sha256
5956 (base32
5957 "0qvqjgfnd9ap4rikvyxa9p4dhcnccvkw8phzv88vghh6pq463d62"))))
5958 (properties `((upstream-name . "GOstats")))
5959 (build-system r-build-system)
5960 (propagated-inputs
5961 `(("r-annotate" ,r-annotate)
5962 ("r-annotationdbi" ,r-annotationdbi)
5963 ("r-annotationforge" ,r-annotationforge)
5964 ("r-biobase" ,r-biobase)
5965 ("r-category" ,r-category)
5966 ("r-go-db" ,r-go-db)
5967 ("r-graph" ,r-graph)
5968 ("r-rbgl" ,r-rbgl)))
5969 (home-page "http://bioconductor.org/packages/GOstats")
5970 (synopsis "Tools for manipulating GO and microarrays")
5971 (description
5972 "This package provides a set of tools for interacting with GO and
5973 microarray data. A variety of basic manipulation tools for graphs, hypothesis
5974 testing and other simple calculations.")
5975 (license license:artistic2.0)))
5976
5977 (define-public r-shortread
5978 (package
5979 (name "r-shortread")
5980 (version "1.34.0")
5981 (source
5982 (origin
5983 (method url-fetch)
5984 (uri (bioconductor-uri "ShortRead" version))
5985 (sha256
5986 (base32
5987 "0ayk3d5625ymb5g2gycq6banzqmyd642xrwjzhdshz2dwid7kly8"))))
5988 (properties `((upstream-name . "ShortRead")))
5989 (build-system r-build-system)
5990 (inputs
5991 `(("zlib" ,zlib)))
5992 (propagated-inputs
5993 `(("r-biobase" ,r-biobase)
5994 ("r-biocgenerics" ,r-biocgenerics)
5995 ("r-biocparallel" ,r-biocparallel)
5996 ("r-biostrings" ,r-biostrings)
5997 ("r-genomeinfodb" ,r-genomeinfodb)
5998 ("r-genomicalignments" ,r-genomicalignments)
5999 ("r-genomicranges" ,r-genomicranges)
6000 ("r-hwriter" ,r-hwriter)
6001 ("r-iranges" ,r-iranges)
6002 ("r-lattice" ,r-lattice)
6003 ("r-latticeextra" ,r-latticeextra)
6004 ("r-rsamtools" ,r-rsamtools)
6005 ("r-s4vectors" ,r-s4vectors)
6006 ("r-xvector" ,r-xvector)
6007 ("r-zlibbioc" ,r-zlibbioc)))
6008 (home-page "http://bioconductor.org/packages/ShortRead")
6009 (synopsis "FASTQ input and manipulation tools")
6010 (description
6011 "This package implements sampling, iteration, and input of FASTQ files.
6012 It includes functions for filtering and trimming reads, and for generating a
6013 quality assessment report. Data are represented as
6014 @code{DNAStringSet}-derived objects, and easily manipulated for a diversity of
6015 purposes. The package also contains legacy support for early single-end,
6016 ungapped alignment formats.")
6017 (license license:artistic2.0)))
6018
6019 (define-public r-systempiper
6020 (package
6021 (name "r-systempiper")
6022 (version "1.10.0")
6023 (source
6024 (origin
6025 (method url-fetch)
6026 (uri (bioconductor-uri "systemPipeR" version))
6027 (sha256
6028 (base32
6029 "0c3m5rq63ypv15yca97yag5d4vgd7xj9by2a4sd8z0pcmpajz0hw"))))
6030 (properties `((upstream-name . "systemPipeR")))
6031 (build-system r-build-system)
6032 (propagated-inputs
6033 `(("r-annotate" ,r-annotate)
6034 ("r-batchjobs" ,r-batchjobs)
6035 ("r-biocgenerics" ,r-biocgenerics)
6036 ("r-biostrings" ,r-biostrings)
6037 ("r-deseq2" ,r-deseq2)
6038 ("r-edger" ,r-edger)
6039 ("r-genomicfeatures" ,r-genomicfeatures)
6040 ("r-genomicranges" ,r-genomicranges)
6041 ("r-ggplot2" ,r-ggplot2)
6042 ("r-go-db" ,r-go-db)
6043 ("r-gostats" ,r-gostats)
6044 ("r-limma" ,r-limma)
6045 ("r-pheatmap" ,r-pheatmap)
6046 ("r-rjson" ,r-rjson)
6047 ("r-rsamtools" ,r-rsamtools)
6048 ("r-shortread" ,r-shortread)
6049 ("r-summarizedexperiment" ,r-summarizedexperiment)
6050 ("r-variantannotation" ,r-variantannotation)))
6051 (home-page "https://github.com/tgirke/systemPipeR")
6052 (synopsis "Next generation sequencing workflow and reporting environment")
6053 (description
6054 "This R package provides tools for building and running automated
6055 end-to-end analysis workflows for a wide range of @dfn{next generation
6056 sequence} (NGS) applications such as RNA-Seq, ChIP-Seq, VAR-Seq and Ribo-Seq.
6057 Important features include a uniform workflow interface across different NGS
6058 applications, automated report generation, and support for running both R and
6059 command-line software, such as NGS aligners or peak/variant callers, on local
6060 computers or compute clusters. Efficient handling of complex sample sets and
6061 experimental designs is facilitated by a consistently implemented sample
6062 annotation infrastructure.")
6063 (license license:artistic2.0)))
6064
6065 (define-public r-grohmm
6066 (package
6067 (name "r-grohmm")
6068 (version "1.10.0")
6069 (source
6070 (origin
6071 (method url-fetch)
6072 (uri (bioconductor-uri "groHMM" version))
6073 (sha256
6074 (base32
6075 "16k1kp4sbhh0vp7dzywafq52csq42ksqfrqfy4bdv1qbd7536dpd"))))
6076 (properties `((upstream-name . "groHMM")))
6077 (build-system r-build-system)
6078 (propagated-inputs
6079 `(("r-genomeinfodb" ,r-genomeinfodb)
6080 ("r-genomicalignments" ,r-genomicalignments)
6081 ("r-genomicranges" ,r-genomicranges)
6082 ("r-iranges" ,r-iranges)
6083 ("r-mass" ,r-mass)
6084 ("r-rtracklayer" ,r-rtracklayer)
6085 ("r-s4vectors" ,r-s4vectors)))
6086 (home-page "https://github.com/Kraus-Lab/groHMM")
6087 (synopsis "GRO-seq analysis pipeline")
6088 (description
6089 "This package provides a pipeline for the analysis of GRO-seq data.")
6090 (license license:gpl3+)))
6091
6092 (define-public r-txdb-hsapiens-ucsc-hg19-knowngene
6093 (package
6094 (name "r-txdb-hsapiens-ucsc-hg19-knowngene")
6095 (version "3.2.2")
6096 (source (origin
6097 (method url-fetch)
6098 ;; We cannot use bioconductor-uri here because this tarball is
6099 ;; located under "data/annotation/" instead of "bioc/".
6100 (uri (string-append "http://bioconductor.org/packages/"
6101 "release/data/annotation/src/contrib"
6102 "/TxDb.Hsapiens.UCSC.hg19.knownGene_"
6103 version ".tar.gz"))
6104 (sha256
6105 (base32
6106 "1sajhcqqwazgz2lqbik7rd935i7kpnh08zxbp2ra10j72yqy4g86"))))
6107 (properties
6108 `((upstream-name . "TxDb.Hsapiens.UCSC.hg19.knownGene")))
6109 (build-system r-build-system)
6110 ;; As this package provides little more than a very large data file it
6111 ;; doesn't make sense to build substitutes.
6112 (arguments `(#:substitutable? #f))
6113 (propagated-inputs
6114 `(("r-genomicfeatures" ,r-genomicfeatures)))
6115 (home-page
6116 "http://bioconductor.org/packages/TxDb.Hsapiens.UCSC.hg19.knownGene/")
6117 (synopsis "Annotation package for human genome in TxDb format")
6118 (description
6119 "This package provides an annotation database of Homo sapiens genome
6120 data. It is derived from the UCSC hg19 genome and based on the \"knownGene\"
6121 track. The database is exposed as a @code{TxDb} object.")
6122 (license license:artistic2.0)))
6123
6124 (define-public vsearch
6125 (package
6126 (name "vsearch")
6127 (version "2.4.3")
6128 (source
6129 (origin
6130 (method url-fetch)
6131 (uri (string-append
6132 "https://github.com/torognes/vsearch/archive/v"
6133 version ".tar.gz"))
6134 (file-name (string-append name "-" version ".tar.gz"))
6135 (sha256
6136 (base32
6137 "0hc110ycqpa54nr6x173qg7190hk08qp7yz7zzqxlsypqnpc5zzp"))
6138 (patches (search-patches "vsearch-unbundle-cityhash.patch"))
6139 (snippet
6140 '(begin
6141 ;; Remove bundled cityhash sources. The vsearch source is adjusted
6142 ;; for this in the patch.
6143 (delete-file "src/city.h")
6144 (delete-file "src/citycrc.h")
6145 (delete-file "src/city.cc")
6146 #t))))
6147 (build-system gnu-build-system)
6148 (arguments
6149 `(#:phases
6150 (modify-phases %standard-phases
6151 (add-before 'configure 'autogen
6152 (lambda _ (zero? (system* "autoreconf" "-vif")))))))
6153 (inputs
6154 `(("zlib" ,zlib)
6155 ("bzip2" ,bzip2)
6156 ("cityhash" ,cityhash)))
6157 (native-inputs
6158 `(("autoconf" ,autoconf)
6159 ("automake" ,automake)))
6160 (synopsis "Sequence search tools for metagenomics")
6161 (description
6162 "VSEARCH supports DNA sequence searching, clustering, chimera detection,
6163 dereplication, pairwise alignment, shuffling, subsampling, sorting and
6164 masking. The tool takes advantage of parallelism in the form of SIMD
6165 vectorization as well as multiple threads to perform accurate alignments at
6166 high speed. VSEARCH uses an optimal global aligner (full dynamic programming
6167 Needleman-Wunsch).")
6168 (home-page "https://github.com/torognes/vsearch")
6169 ;; vsearch uses non-portable SSE intrinsics so building fails on other
6170 ;; platforms.
6171 (supported-systems '("x86_64-linux"))
6172 ;; Dual licensed; also includes public domain source.
6173 (license (list license:gpl3 license:bsd-2))))
6174
6175 (define-public pardre
6176 (package
6177 (name "pardre")
6178 ;; The source of 1.1.5 changed in place, so we append "-1" to the version.
6179 (version "1.1.5-1")
6180 (source
6181 (origin
6182 (method url-fetch)
6183 (uri (string-append "mirror://sourceforge/pardre/ParDRe-rel"
6184 "1.1.5" ".tar.gz"))
6185 (sha256
6186 (base32
6187 "17j73nc0viq4f6qj50nrndsrif5d6b71q8fl87m54psiv0ilns2b"))))
6188 (build-system gnu-build-system)
6189 (arguments
6190 `(#:tests? #f ; no tests included
6191 #:phases
6192 (modify-phases %standard-phases
6193 (delete 'configure)
6194 (replace 'install
6195 (lambda* (#:key outputs #:allow-other-keys)
6196 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
6197 (install-file "ParDRe" bin)
6198 #t))))))
6199 (inputs
6200 `(("openmpi" ,openmpi)
6201 ("zlib" ,zlib)))
6202 (synopsis "Parallel tool to remove duplicate DNA reads")
6203 (description
6204 "ParDRe is a parallel tool to remove duplicate genetic sequence reads.
6205 Duplicate reads can be seen as identical or nearly identical sequences with
6206 some mismatches. This tool lets users avoid the analysis of unnecessary
6207 reads, reducing the time of subsequent procedures with the
6208 dataset (e.g. assemblies, mappings, etc.). The tool is implemented with MPI
6209 in order to exploit the parallel capabilities of multicore clusters. It is
6210 faster than multithreaded counterparts (end of 2015) for the same number of
6211 cores and, thanks to the message-passing technology, it can be executed on
6212 clusters.")
6213 (home-page "https://sourceforge.net/projects/pardre/")
6214 (license license:gpl3+)))
6215
6216 (define-public ruby-bio-kseq
6217 (package
6218 (name "ruby-bio-kseq")
6219 (version "0.0.2")
6220 (source
6221 (origin
6222 (method url-fetch)
6223 (uri (rubygems-uri "bio-kseq" version))
6224 (sha256
6225 (base32
6226 "1xyaha46khb5jc6wzkbf7040jagac49jbimn0vcrzid0j8jdikrz"))))
6227 (build-system ruby-build-system)
6228 (arguments
6229 `(#:test-target "spec"))
6230 (native-inputs
6231 `(("bundler" ,bundler)
6232 ("ruby-rspec" ,ruby-rspec)
6233 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6234 (inputs
6235 `(("zlib" ,zlib)))
6236 (synopsis "Ruby bindings for the kseq.h FASTA/Q parser")
6237 (description
6238 "@code{Bio::Kseq} provides ruby bindings to the @code{kseq.h} FASTA and
6239 FASTQ parsing code. It provides a fast iterator over sequences and their
6240 quality scores.")
6241 (home-page "https://github.com/gusevfe/bio-kseq")
6242 (license license:expat)))
6243
6244 (define-public bio-locus
6245 (package
6246 (name "bio-locus")
6247 (version "0.0.7")
6248 (source
6249 (origin
6250 (method url-fetch)
6251 (uri (rubygems-uri "bio-locus" version))
6252 (sha256
6253 (base32
6254 "02vmrxyimkj9sahsp4zhfhnmbvz6dbbqz1y01vglf8cbwvkajfl0"))))
6255 (build-system ruby-build-system)
6256 (native-inputs
6257 `(("ruby-rspec" ,ruby-rspec)))
6258 (synopsis "Tool for fast querying of genome locations")
6259 (description
6260 "Bio-locus is a tabix-like tool for fast querying of genome
6261 locations. Many file formats in bioinformatics contain records that
6262 start with a chromosome name and a position for a SNP, or a start-end
6263 position for indels. Bio-locus allows users to store this chr+pos or
6264 chr+pos+alt information in a database.")
6265 (home-page "https://github.com/pjotrp/bio-locus")
6266 (license license:expat)))
6267
6268 (define-public bio-blastxmlparser
6269 (package
6270 (name "bio-blastxmlparser")
6271 (version "2.0.4")
6272 (source (origin
6273 (method url-fetch)
6274 (uri (rubygems-uri "bio-blastxmlparser" version))
6275 (sha256
6276 (base32
6277 "1wf4qygcmdjgcqm6flmvsagfr1gs9lf63mj32qv3z1f481zc5692"))))
6278 (build-system ruby-build-system)
6279 (propagated-inputs
6280 `(("ruby-bio-logger" ,ruby-bio-logger)
6281 ("ruby-nokogiri" ,ruby-nokogiri)))
6282 (inputs
6283 `(("ruby-rspec" ,ruby-rspec)))
6284 (synopsis "Fast big data BLAST XML parser and library")
6285 (description
6286 "Very fast parallel big-data BLAST XML file parser which can be used as
6287 command line utility. Use blastxmlparser to: Parse BLAST XML; filter output;
6288 generate FASTA, JSON, YAML, RDF, JSON-LD, HTML, CSV, tabular output etc.")
6289 (home-page "https://github.com/pjotrp/blastxmlparser")
6290 (license license:expat)))
6291
6292 (define-public bioruby
6293 (package
6294 (name "bioruby")
6295 (version "1.5.1")
6296 (source
6297 (origin
6298 (method url-fetch)
6299 (uri (rubygems-uri "bio" version))
6300 (sha256
6301 (base32
6302 "0hdl0789c9n4mprnx5pgd46bfwl8d000rqpamj5h6kkjgspijv49"))))
6303 (build-system ruby-build-system)
6304 (propagated-inputs
6305 `(("ruby-libxml" ,ruby-libxml)))
6306 (native-inputs
6307 `(("which" ,which))) ; required for test phase
6308 (arguments
6309 `(#:phases
6310 (modify-phases %standard-phases
6311 (add-before 'build 'patch-test-command
6312 (lambda _
6313 (substitute* '("test/functional/bio/test_command.rb")
6314 (("/bin/sh") (which "sh")))
6315 (substitute* '("test/functional/bio/test_command.rb")
6316 (("/bin/ls") (which "ls")))
6317 (substitute* '("test/functional/bio/test_command.rb")
6318 (("which") (which "which")))
6319 (substitute* '("test/functional/bio/test_command.rb",
6320 "test/data/command/echoarg2.sh")
6321 (("/bin/echo") (which "echo")))
6322 #t)))))
6323 (synopsis "Ruby library, shell and utilities for bioinformatics")
6324 (description "BioRuby comes with a comprehensive set of Ruby development
6325 tools and libraries for bioinformatics and molecular biology. BioRuby has
6326 components for sequence analysis, pathway analysis, protein modelling and
6327 phylogenetic analysis; it supports many widely used data formats and provides
6328 easy access to databases, external programs and public web services, including
6329 BLAST, KEGG, GenBank, MEDLINE and GO.")
6330 (home-page "http://bioruby.org/")
6331 ;; Code is released under Ruby license, except for setup
6332 ;; (LGPLv2.1+) and scripts in samples (which have GPL2 and GPL2+)
6333 (license (list license:ruby license:lgpl2.1+ license:gpl2+ ))))
6334
6335 (define-public r-acsnminer
6336 (package
6337 (name "r-acsnminer")
6338 (version "0.16.8.25")
6339 (source (origin
6340 (method url-fetch)
6341 (uri (cran-uri "ACSNMineR" version))
6342 (sha256
6343 (base32
6344 "0gh604s8qall6zfjlwcg2ilxjvz08dplf9k5g47idhv43scm748l"))))
6345 (properties `((upstream-name . "ACSNMineR")))
6346 (build-system r-build-system)
6347 (propagated-inputs
6348 `(("r-ggplot2" ,r-ggplot2)
6349 ("r-gridextra" ,r-gridextra)))
6350 (home-page "http://cran.r-project.org/web/packages/ACSNMineR")
6351 (synopsis "Gene enrichment analysis")
6352 (description
6353 "This package provides tools to compute and represent gene set enrichment
6354 or depletion from your data based on pre-saved maps from the @dfn{Atlas of
6355 Cancer Signalling Networks} (ACSN) or user imported maps. The gene set
6356 enrichment can be run with hypergeometric test or Fisher exact test, and can
6357 use multiple corrections. Visualization of data can be done either by
6358 barplots or heatmaps.")
6359 (license license:gpl2+)))
6360
6361 (define-public r-biocgenerics
6362 (package
6363 (name "r-biocgenerics")
6364 (version "0.22.0")
6365 (source (origin
6366 (method url-fetch)
6367 (uri (bioconductor-uri "BiocGenerics" version))
6368 (sha256
6369 (base32
6370 "0qbmz2qxwwi30xpxpvp2h1h7l494rbbz5d9pls5cfhqdv3wnpzsv"))))
6371 (properties
6372 `((upstream-name . "BiocGenerics")))
6373 (build-system r-build-system)
6374 (home-page "http://bioconductor.org/packages/BiocGenerics")
6375 (synopsis "S4 generic functions for Bioconductor")
6376 (description
6377 "This package provides S4 generic functions needed by many Bioconductor
6378 packages.")
6379 (license license:artistic2.0)))
6380
6381 (define-public r-biocinstaller
6382 (package
6383 (name "r-biocinstaller")
6384 (version "1.26.0")
6385 (source (origin
6386 (method url-fetch)
6387 (uri (bioconductor-uri "BiocInstaller" version))
6388 (sha256
6389 (base32
6390 "0njw2q3lq1rrjx8qzw5d2130l72bmd3g2z8qlxqmkdcbmmgliyj2"))))
6391 (properties
6392 `((upstream-name . "BiocInstaller")))
6393 (build-system r-build-system)
6394 (home-page "http://bioconductor.org/packages/BiocInstaller")
6395 (synopsis "Install Bioconductor packages")
6396 (description "This package is used to install and update R packages from
6397 Bioconductor, CRAN, and Github.")
6398 (license license:artistic2.0)))
6399
6400 (define-public r-biocviews
6401 (package
6402 (name "r-biocviews")
6403 (version "1.44.0")
6404 (source (origin
6405 (method url-fetch)
6406 (uri (bioconductor-uri "biocViews" version))
6407 (sha256
6408 (base32
6409 "17hi8w0w63f5yc43kid5pbld3ca78sj6n8x9dmkbl8h48818xbga"))))
6410 (properties
6411 `((upstream-name . "biocViews")))
6412 (build-system r-build-system)
6413 (propagated-inputs
6414 `(("r-biobase" ,r-biobase)
6415 ("r-graph" ,r-graph)
6416 ("r-rbgl" ,r-rbgl)
6417 ("r-rcurl" ,r-rcurl)
6418 ("r-xml" ,r-xml)
6419 ("r-knitr" ,r-knitr)
6420 ("r-runit" ,r-runit)))
6421 (home-page "http://bioconductor.org/packages/biocViews")
6422 (synopsis "Bioconductor package categorization helper")
6423 (description "The purpose of biocViews is to create HTML pages that
6424 categorize packages in a Bioconductor package repository according to keywords,
6425 also known as views, in a controlled vocabulary.")
6426 (license license:artistic2.0)))
6427
6428 (define-public r-bookdown
6429 (package
6430 (name "r-bookdown")
6431 (version "0.4")
6432 (source (origin
6433 (method url-fetch)
6434 (uri (cran-uri "bookdown" version))
6435 (sha256
6436 (base32
6437 "1fp1k7hivrb7s2dwgrsqy9s7xg6pk9hczhrc149y1dwh901j6qvv"))))
6438 (build-system r-build-system)
6439 (propagated-inputs
6440 `(("r-htmltools" ,r-htmltools)
6441 ("r-knitr" ,r-knitr)
6442 ("r-rmarkdown" ,r-rmarkdown)
6443 ("r-yaml" ,r-yaml)))
6444 (home-page "https://github.com/rstudio/bookdown")
6445 (synopsis "Authoring books and technical documents with R markdown")
6446 (description "This package provides output formats and utilities for
6447 authoring books and technical documents with R Markdown.")
6448 (license license:gpl3)))
6449
6450 (define-public r-biocstyle
6451 (package
6452 (name "r-biocstyle")
6453 (version "2.4.1")
6454 (source (origin
6455 (method url-fetch)
6456 (uri (bioconductor-uri "BiocStyle" version))
6457 (sha256
6458 (base32
6459 "0bmgmsfll923v573g0kyzlmjd7gly5jwgd8vkrcwvbam1gz75f2c"))))
6460 (properties
6461 `((upstream-name . "BiocStyle")))
6462 (build-system r-build-system)
6463 (propagated-inputs
6464 `(("r-bookdown" ,r-bookdown)
6465 ("r-knitr" ,r-knitr)
6466 ("r-rmarkdown" ,r-rmarkdown)
6467 ("r-yaml" ,r-yaml)))
6468 (home-page "http://bioconductor.org/packages/BiocStyle")
6469 (synopsis "Bioconductor formatting styles")
6470 (description "This package provides standard formatting styles for
6471 Bioconductor PDF and HTML documents. Package vignettes illustrate use and
6472 functionality.")
6473 (license license:artistic2.0)))
6474
6475 (define-public r-bioccheck
6476 (package
6477 (name "r-bioccheck")
6478 (version "1.12.0")
6479 (source (origin
6480 (method url-fetch)
6481 (uri (bioconductor-uri "BiocCheck" version))
6482 (sha256
6483 (base32
6484 "01zkw5hggzvn0wj4msac71k1mknq4h2inn1c2hwqgw4cy1675wl0"))))
6485 (properties
6486 `((upstream-name . "BiocCheck")))
6487 (build-system r-build-system)
6488 (arguments
6489 '(#:phases
6490 (modify-phases %standard-phases
6491 ;; This package can be used by calling BiocCheck(<package>) from
6492 ;; within R, or by running R CMD BiocCheck <package>. This phase
6493 ;; makes sure the latter works. For this to work, the BiocCheck
6494 ;; script must be somewhere on the PATH (not the R bin directory).
6495 (add-after 'install 'install-bioccheck-subcommand
6496 (lambda* (#:key outputs #:allow-other-keys)
6497 (let* ((out (assoc-ref outputs "out"))
6498 (dest-dir (string-append out "/bin"))
6499 (script-dir
6500 (string-append out "/site-library/BiocCheck/script/")))
6501 (mkdir-p dest-dir)
6502 (symlink (string-append script-dir "/checkBadDeps.R")
6503 (string-append dest-dir "/checkBadDeps.R"))
6504 (symlink (string-append script-dir "/BiocCheck")
6505 (string-append dest-dir "/BiocCheck")))
6506 #t)))))
6507 (native-inputs
6508 `(("which" ,which)))
6509 (propagated-inputs
6510 `(("r-codetools" ,r-codetools)
6511 ("r-graph" ,r-graph)
6512 ("r-httr" ,r-httr)
6513 ("r-optparse" ,r-optparse)
6514 ("r-biocinstaller" ,r-biocinstaller)
6515 ("r-biocviews" ,r-biocviews)))
6516 (home-page "http://bioconductor.org/packages/BiocCheck")
6517 (synopsis "Executes Bioconductor-specific package checks")
6518 (description "This package contains tools to perform additional quality
6519 checks on R packages that are to be submitted to the Bioconductor repository.")
6520 (license license:artistic2.0)))
6521
6522 (define-public r-getopt
6523 (package
6524 (name "r-getopt")
6525 (version "1.20.0")
6526 (source
6527 (origin
6528 (method url-fetch)
6529 (uri (cran-uri "getopt" version))
6530 (sha256
6531 (base32
6532 "00f57vgnzmg7cz80rjmjz1556xqcmx8nhrlbbhaq4w7gl2ibl87r"))))
6533 (build-system r-build-system)
6534 (home-page "https://github.com/trevorld/getopt")
6535 (synopsis "Command-line option processor for R")
6536 (description
6537 "This package is designed to be used with Rscript to write shebang
6538 scripts that accept short and long options. Many users will prefer to
6539 use the packages @code{optparse} or @code{argparse} which add extra
6540 features like automatically generated help options and usage texts,
6541 support for default values, positional argument support, etc.")
6542 (license license:gpl2+)))
6543
6544 (define-public r-optparse
6545 (package
6546 (name "r-optparse")
6547 (version "1.4.4")
6548 (source
6549 (origin
6550 (method url-fetch)
6551 (uri (cran-uri "optparse" version))
6552 (sha256
6553 (base32
6554 "1ff4wmsszrb3spwfp7ynfs8w11qpy1sdzfxm1wk8dqqvdwris7qb"))))
6555 (build-system r-build-system)
6556 (propagated-inputs
6557 `(("r-getopt" ,r-getopt)))
6558 (home-page
6559 "https://github.com/trevorld/optparse")
6560 (synopsis "Command line option parser")
6561 (description
6562 "This package provides a command line parser inspired by Python's
6563 @code{optparse} library to be used with Rscript to write shebang scripts
6564 that accept short and long options.")
6565 (license license:gpl2+)))
6566
6567 (define-public r-dnacopy
6568 (package
6569 (name "r-dnacopy")
6570 (version "1.50.1")
6571 (source (origin
6572 (method url-fetch)
6573 (uri (bioconductor-uri "DNAcopy" version))
6574 (sha256
6575 (base32
6576 "0f0x83db7rm5xf9fg5pjhvs4i165qqaf01lbwb8kj13fsqpwx15p"))))
6577 (properties
6578 `((upstream-name . "DNAcopy")))
6579 (build-system r-build-system)
6580 (inputs
6581 `(("gfortran" ,gfortran)))
6582 (home-page "https://bioconductor.org/packages/DNAcopy")
6583 (synopsis "Implementation of a circular binary segmentation algorithm")
6584 (description "This package implements the circular binary segmentation (CBS)
6585 algorithm to segment DNA copy number data and identify genomic regions with
6586 abnormal copy number.")
6587 (license license:gpl2+)))
6588
6589 (define-public r-s4vectors
6590 (package
6591 (name "r-s4vectors")
6592 (version "0.14.3")
6593 (source (origin
6594 (method url-fetch)
6595 (uri (bioconductor-uri "S4Vectors" version))
6596 (sha256
6597 (base32
6598 "1r7s4pfw026qazzic090mhk8d9m39j2nwl87dyqcpdylyq7gq5qs"))))
6599 (properties
6600 `((upstream-name . "S4Vectors")))
6601 (build-system r-build-system)
6602 (propagated-inputs
6603 `(("r-biocgenerics" ,r-biocgenerics)))
6604 (home-page "http://bioconductor.org/packages/S4Vectors")
6605 (synopsis "S4 implementation of vectors and lists")
6606 (description
6607 "The S4Vectors package defines the @code{Vector} and @code{List} virtual
6608 classes and a set of generic functions that extend the semantic of ordinary
6609 vectors and lists in R. Package developers can easily implement vector-like
6610 or list-like objects as concrete subclasses of @code{Vector} or @code{List}.
6611 In addition, a few low-level concrete subclasses of general interest (e.g.
6612 @code{DataFrame}, @code{Rle}, and @code{Hits}) are implemented in the
6613 S4Vectors package itself.")
6614 (license license:artistic2.0)))
6615
6616 (define-public r-seqinr
6617 (package
6618 (name "r-seqinr")
6619 (version "3.4-5")
6620 (source
6621 (origin
6622 (method url-fetch)
6623 (uri (cran-uri "seqinr" version))
6624 (sha256
6625 (base32
6626 "17zv0n5cji17izwmwg0jcbxbjl3w5rls91w15svcnlpxjms38ahn"))))
6627 (build-system r-build-system)
6628 (propagated-inputs
6629 `(("r-ade4" ,r-ade4)
6630 ("r-segmented" ,r-segmented)))
6631 (inputs
6632 `(("zlib" ,zlib)))
6633 (home-page "http://seqinr.r-forge.r-project.org/")
6634 (synopsis "Biological sequences retrieval and analysis")
6635 (description
6636 "This package provides tools for exploratory data analysis and data
6637 visualization of biological sequence (DNA and protein) data. It also includes
6638 utilities for sequence data management under the ACNUC system.")
6639 (license license:gpl2+)))
6640
6641 (define-public r-iranges
6642 (package
6643 (name "r-iranges")
6644 (version "2.10.2")
6645 (source (origin
6646 (method url-fetch)
6647 (uri (bioconductor-uri "IRanges" version))
6648 (sha256
6649 (base32
6650 "1brmzs3rsf97gymridrh9c9r3vws8b3rpghaanxnniw36lmcajfy"))))
6651 (properties
6652 `((upstream-name . "IRanges")))
6653 (build-system r-build-system)
6654 (propagated-inputs
6655 `(("r-biocgenerics" ,r-biocgenerics)
6656 ("r-s4vectors" ,r-s4vectors)))
6657 (home-page "http://bioconductor.org/packages/IRanges")
6658 (synopsis "Infrastructure for manipulating intervals on sequences")
6659 (description
6660 "This package provides efficient low-level and highly reusable S4 classes
6661 for storing ranges of integers, RLE vectors (Run-Length Encoding), and, more
6662 generally, data that can be organized sequentially (formally defined as
6663 @code{Vector} objects), as well as views on these @code{Vector} objects.
6664 Efficient list-like classes are also provided for storing big collections of
6665 instances of the basic classes. All classes in the package use consistent
6666 naming and share the same rich and consistent \"Vector API\" as much as
6667 possible.")
6668 (license license:artistic2.0)))
6669
6670 (define-public r-genomeinfodbdata
6671 (package
6672 (name "r-genomeinfodbdata")
6673 (version "0.99.0")
6674 (source (origin
6675 (method url-fetch)
6676 ;; We cannot use bioconductor-uri here because this tarball is
6677 ;; located under "data/annotation/" instead of "bioc/".
6678 (uri (string-append "https://bioconductor.org/packages/release/"
6679 "data/annotation/src/contrib/GenomeInfoDbData_"
6680 version ".tar.gz"))
6681 (sha256
6682 (base32
6683 "120qvhb0pvkzd65lsgja62vyrgc37si6fh68q4cg4w5x9f04jw25"))))
6684 (properties
6685 `((upstream-name . "GenomeInfoDbData")))
6686 (build-system r-build-system)
6687 (home-page "http://bioconductor.org/packages/GenomeInfoDbData")
6688 (synopsis "Species and taxonomy ID look up tables for GenomeInfoDb")
6689 (description "This package contains data for mapping between NCBI taxonomy
6690 ID and species. It is used by functions in the GenomeInfoDb package.")
6691 (license license:artistic2.0)))
6692
6693 (define-public r-genomeinfodb
6694 (package
6695 (name "r-genomeinfodb")
6696 (version "1.12.2")
6697 (source (origin
6698 (method url-fetch)
6699 (uri (bioconductor-uri "GenomeInfoDb" version))
6700 (sha256
6701 (base32
6702 "1hjxgmcnrngp1307ipqaq9hgxz4j0ldn7d46knhzs30k2r4qnrfp"))))
6703 (properties
6704 `((upstream-name . "GenomeInfoDb")))
6705 (build-system r-build-system)
6706 (propagated-inputs
6707 `(("r-biocgenerics" ,r-biocgenerics)
6708 ("r-genomeinfodbdata" ,r-genomeinfodbdata)
6709 ("r-iranges" ,r-iranges)
6710 ("r-rcurl" ,r-rcurl)
6711 ("r-s4vectors" ,r-s4vectors)))
6712 (home-page "http://bioconductor.org/packages/GenomeInfoDb")
6713 (synopsis "Utilities for manipulating chromosome identifiers")
6714 (description
6715 "This package contains data and functions that define and allow
6716 translation between different chromosome sequence naming conventions (e.g.,
6717 \"chr1\" versus \"1\"), including a function that attempts to place sequence
6718 names in their natural, rather than lexicographic, order.")
6719 (license license:artistic2.0)))
6720
6721 (define-public r-edger
6722 (package
6723 (name "r-edger")
6724 (version "3.18.0")
6725 (source (origin
6726 (method url-fetch)
6727 (uri (bioconductor-uri "edgeR" version))
6728 (sha256
6729 (base32
6730 "02l17i6xh33dv10swwvyfxrmv5kp23iv278iwvkfq2mnipasfnb9"))))
6731 (properties `((upstream-name . "edgeR")))
6732 (build-system r-build-system)
6733 (propagated-inputs
6734 `(("r-limma" ,r-limma)
6735 ("r-locfit" ,r-locfit)
6736 ("r-statmod" ,r-statmod))) ;for estimateDisp
6737 (home-page "http://bioinf.wehi.edu.au/edgeR")
6738 (synopsis "EdgeR does empirical analysis of digital gene expression data")
6739 (description "This package can do differential expression analysis of
6740 RNA-seq expression profiles with biological replication. It implements a range
6741 of statistical methodology based on the negative binomial distributions,
6742 including empirical Bayes estimation, exact tests, generalized linear models
6743 and quasi-likelihood tests. It be applied to differential signal analysis of
6744 other types of genomic data that produce counts, including ChIP-seq, SAGE and
6745 CAGE.")
6746 (license license:gpl2+)))
6747
6748 (define-public r-variantannotation
6749 (package
6750 (name "r-variantannotation")
6751 (version "1.22.3")
6752 (source (origin
6753 (method url-fetch)
6754 (uri (bioconductor-uri "VariantAnnotation" version))
6755 (sha256
6756 (base32
6757 "0sr3vdn85x5zdxh80cfwlpfdpi2hmjy3fwi00ac3jya4v145vawr"))))
6758 (properties
6759 `((upstream-name . "VariantAnnotation")))
6760 (inputs
6761 `(("zlib" ,zlib)))
6762 (propagated-inputs
6763 `(("r-annotationdbi" ,r-annotationdbi)
6764 ("r-biobase" ,r-biobase)
6765 ("r-biocgenerics" ,r-biocgenerics)
6766 ("r-biostrings" ,r-biostrings)
6767 ("r-bsgenome" ,r-bsgenome)
6768 ("r-dbi" ,r-dbi)
6769 ("r-genomeinfodb" ,r-genomeinfodb)
6770 ("r-genomicfeatures" ,r-genomicfeatures)
6771 ("r-genomicranges" ,r-genomicranges)
6772 ("r-iranges" ,r-iranges)
6773 ("r-summarizedexperiment" ,r-summarizedexperiment)
6774 ("r-rsamtools" ,r-rsamtools)
6775 ("r-rtracklayer" ,r-rtracklayer)
6776 ("r-s4vectors" ,r-s4vectors)
6777 ("r-xvector" ,r-xvector)
6778 ("r-zlibbioc" ,r-zlibbioc)))
6779 (build-system r-build-system)
6780 (home-page "https://bioconductor.org/packages/VariantAnnotation")
6781 (synopsis "Package for annotation of genetic variants")
6782 (description "This R package can annotate variants, compute amino acid
6783 coding changes and predict coding outcomes.")
6784 (license license:artistic2.0)))
6785
6786 (define-public r-limma
6787 (package
6788 (name "r-limma")
6789 (version "3.32.5")
6790 (source (origin
6791 (method url-fetch)
6792 (uri (bioconductor-uri "limma" version))
6793 (sha256
6794 (base32
6795 "0p2ayha9g9w5r8s7pgdf16mkmdbqwh6f35jh07g3b8gyra48gwiw"))))
6796 (build-system r-build-system)
6797 (home-page "http://bioinf.wehi.edu.au/limma")
6798 (synopsis "Package for linear models for microarray and RNA-seq data")
6799 (description "This package can be used for the analysis of gene expression
6800 studies, especially the use of linear models for analysing designed experiments
6801 and the assessment of differential expression. The analysis methods apply to
6802 different technologies, including microarrays, RNA-seq, and quantitative PCR.")
6803 (license license:gpl2+)))
6804
6805 (define-public r-xvector
6806 (package
6807 (name "r-xvector")
6808 (version "0.16.0")
6809 (source (origin
6810 (method url-fetch)
6811 (uri (bioconductor-uri "XVector" version))
6812 (sha256
6813 (base32
6814 "01n09f4jdm60684lzikp02zf9gjan8bdrjx740vggr21q9fa69wn"))))
6815 (properties
6816 `((upstream-name . "XVector")))
6817 (build-system r-build-system)
6818 (arguments
6819 `(#:phases
6820 (modify-phases %standard-phases
6821 (add-after 'unpack 'use-system-zlib
6822 (lambda _
6823 (substitute* "DESCRIPTION"
6824 (("zlibbioc, ") ""))
6825 (substitute* "NAMESPACE"
6826 (("import\\(zlibbioc\\)") ""))
6827 #t)))))
6828 (inputs
6829 `(("zlib" ,zlib)))
6830 (propagated-inputs
6831 `(("r-biocgenerics" ,r-biocgenerics)
6832 ("r-iranges" ,r-iranges)
6833 ("r-s4vectors" ,r-s4vectors)))
6834 (home-page "http://bioconductor.org/packages/XVector")
6835 (synopsis "Representation and manpulation of external sequences")
6836 (description
6837 "This package provides memory efficient S4 classes for storing sequences
6838 \"externally\" (behind an R external pointer, or on disk).")
6839 (license license:artistic2.0)))
6840
6841 (define-public r-genomicranges
6842 (package
6843 (name "r-genomicranges")
6844 (version "1.28.4")
6845 (source (origin
6846 (method url-fetch)
6847 (uri (bioconductor-uri "GenomicRanges" version))
6848 (sha256
6849 (base32
6850 "1y15kg1q81h8rmga83ljiwr8whkajcargfjiljr212d6if17ys1z"))))
6851 (properties
6852 `((upstream-name . "GenomicRanges")))
6853 (build-system r-build-system)
6854 (propagated-inputs
6855 `(("r-biocgenerics" ,r-biocgenerics)
6856 ("r-genomeinfodb" ,r-genomeinfodb)
6857 ("r-iranges" ,r-iranges)
6858 ("r-s4vectors" ,r-s4vectors)
6859 ("r-xvector" ,r-xvector)))
6860 (home-page "http://bioconductor.org/packages/GenomicRanges")
6861 (synopsis "Representation and manipulation of genomic intervals")
6862 (description
6863 "This package provides tools to efficiently represent and manipulate
6864 genomic annotations and alignments is playing a central role when it comes to
6865 analyzing high-throughput sequencing data (a.k.a. NGS data). The
6866 GenomicRanges package defines general purpose containers for storing and
6867 manipulating genomic intervals and variables defined along a genome.")
6868 (license license:artistic2.0)))
6869
6870 (define-public r-biobase
6871 (package
6872 (name "r-biobase")
6873 (version "2.36.2")
6874 (source (origin
6875 (method url-fetch)
6876 (uri (bioconductor-uri "Biobase" version))
6877 (sha256
6878 (base32
6879 "0sr48nqx5bqid4g6lr9zr9286xh842w717yvmssvddb5xxynib6f"))))
6880 (properties
6881 `((upstream-name . "Biobase")))
6882 (build-system r-build-system)
6883 (propagated-inputs
6884 `(("r-biocgenerics" ,r-biocgenerics)))
6885 (home-page "http://bioconductor.org/packages/Biobase")
6886 (synopsis "Base functions for Bioconductor")
6887 (description
6888 "This package provides functions that are needed by many other packages
6889 on Bioconductor or which replace R functions.")
6890 (license license:artistic2.0)))
6891
6892 (define-public r-annotationdbi
6893 (package
6894 (name "r-annotationdbi")
6895 (version "1.38.2")
6896 (source (origin
6897 (method url-fetch)
6898 (uri (bioconductor-uri "AnnotationDbi" version))
6899 (sha256
6900 (base32
6901 "1lsamnbf07zzsy5asy5hn97n2a4layv58w2bzd90ikcdx0gmzarj"))))
6902 (properties
6903 `((upstream-name . "AnnotationDbi")))
6904 (build-system r-build-system)
6905 (propagated-inputs
6906 `(("r-biobase" ,r-biobase)
6907 ("r-biocgenerics" ,r-biocgenerics)
6908 ("r-dbi" ,r-dbi)
6909 ("r-iranges" ,r-iranges)
6910 ("r-rsqlite" ,r-rsqlite)
6911 ("r-s4vectors" ,r-s4vectors)))
6912 (home-page "http://bioconductor.org/packages/AnnotationDbi")
6913 (synopsis "Annotation database interface")
6914 (description
6915 "This package provides user interface and database connection code for
6916 annotation data packages using SQLite data storage.")
6917 (license license:artistic2.0)))
6918
6919 (define-public r-biomart
6920 (package
6921 (name "r-biomart")
6922 (version "2.32.1")
6923 (source (origin
6924 (method url-fetch)
6925 (uri (bioconductor-uri "biomaRt" version))
6926 (sha256
6927 (base32
6928 "0fhpbjlsgbqxrpj6nzhhk9q3ph81n5x4p7mmd097xjjn6b05w1d8"))))
6929 (properties
6930 `((upstream-name . "biomaRt")))
6931 (build-system r-build-system)
6932 (propagated-inputs
6933 `(("r-annotationdbi" ,r-annotationdbi)
6934 ("r-rcurl" ,r-rcurl)
6935 ("r-xml" ,r-xml)))
6936 (home-page "http://bioconductor.org/packages/biomaRt")
6937 (synopsis "Interface to BioMart databases")
6938 (description
6939 "biomaRt provides an interface to a growing collection of databases
6940 implementing the @url{BioMart software suite, http://www.biomart.org}. The
6941 package enables retrieval of large amounts of data in a uniform way without
6942 the need to know the underlying database schemas or write complex SQL queries.
6943 Examples of BioMart databases are Ensembl, COSMIC, Uniprot, HGNC, Gramene,
6944 Wormbase and dbSNP mapped to Ensembl. These major databases give biomaRt
6945 users direct access to a diverse set of data and enable a wide range of
6946 powerful online queries from gene annotation to database mining.")
6947 (license license:artistic2.0)))
6948
6949 (define-public r-biocparallel
6950 (package
6951 (name "r-biocparallel")
6952 (version "1.10.1")
6953 (source (origin
6954 (method url-fetch)
6955 (uri (bioconductor-uri "BiocParallel" version))
6956 (sha256
6957 (base32
6958 "08mdfxyk9nwz77v0xhlvs19p2wj0phgm5c5b25vm0xh3749njsp0"))))
6959 (properties
6960 `((upstream-name . "BiocParallel")))
6961 (build-system r-build-system)
6962 (propagated-inputs
6963 `(("r-futile-logger" ,r-futile-logger)
6964 ("r-snow" ,r-snow)))
6965 (home-page "http://bioconductor.org/packages/BiocParallel")
6966 (synopsis "Bioconductor facilities for parallel evaluation")
6967 (description
6968 "This package provides modified versions and novel implementation of
6969 functions for parallel evaluation, tailored to use with Bioconductor
6970 objects.")
6971 (license (list license:gpl2+ license:gpl3+))))
6972
6973 (define-public r-biostrings
6974 (package
6975 (name "r-biostrings")
6976 (version "2.44.2")
6977 (source (origin
6978 (method url-fetch)
6979 (uri (bioconductor-uri "Biostrings" version))
6980 (sha256
6981 (base32
6982 "12c5abgshwq86357jr0r9039y6vl4d6ngysy89rsnr23ldnsirjp"))))
6983 (properties
6984 `((upstream-name . "Biostrings")))
6985 (build-system r-build-system)
6986 (propagated-inputs
6987 `(("r-biocgenerics" ,r-biocgenerics)
6988 ("r-iranges" ,r-iranges)
6989 ("r-s4vectors" ,r-s4vectors)
6990 ("r-xvector" ,r-xvector)))
6991 (home-page "http://bioconductor.org/packages/Biostrings")
6992 (synopsis "String objects and algorithms for biological sequences")
6993 (description
6994 "This package provides memory efficient string containers, string
6995 matching algorithms, and other utilities, for fast manipulation of large
6996 biological sequences or sets of sequences.")
6997 (license license:artistic2.0)))
6998
6999 (define-public r-rsamtools
7000 (package
7001 (name "r-rsamtools")
7002 (version "1.28.0")
7003 (source (origin
7004 (method url-fetch)
7005 (uri (bioconductor-uri "Rsamtools" version))
7006 (sha256
7007 (base32
7008 "1zx6vhdz3lksbfy98jj3qzl7cxgspigm2pbsd5835b12r6mc5w6d"))))
7009 (properties
7010 `((upstream-name . "Rsamtools")))
7011 (build-system r-build-system)
7012 (arguments
7013 `(#:phases
7014 (modify-phases %standard-phases
7015 (add-after 'unpack 'use-system-zlib
7016 (lambda _
7017 (substitute* "DESCRIPTION"
7018 (("zlibbioc, ") ""))
7019 (substitute* "NAMESPACE"
7020 (("import\\(zlibbioc\\)") ""))
7021 #t)))))
7022 (inputs
7023 `(("zlib" ,zlib)))
7024 (propagated-inputs
7025 `(("r-biocgenerics" ,r-biocgenerics)
7026 ("r-biocparallel" ,r-biocparallel)
7027 ("r-biostrings" ,r-biostrings)
7028 ("r-bitops" ,r-bitops)
7029 ("r-genomeinfodb" ,r-genomeinfodb)
7030 ("r-genomicranges" ,r-genomicranges)
7031 ("r-iranges" ,r-iranges)
7032 ("r-s4vectors" ,r-s4vectors)
7033 ("r-xvector" ,r-xvector)))
7034 (home-page "http://bioconductor.org/packages/release/bioc/html/Rsamtools.html")
7035 (synopsis "Interface to samtools, bcftools, and tabix")
7036 (description
7037 "This package provides an interface to the 'samtools', 'bcftools', and
7038 'tabix' utilities for manipulating SAM (Sequence Alignment / Map), FASTA,
7039 binary variant call (BCF) and compressed indexed tab-delimited (tabix)
7040 files.")
7041 (license license:expat)))
7042
7043 (define-public r-delayedarray
7044 (package
7045 (name "r-delayedarray")
7046 (version "0.2.7")
7047 (source (origin
7048 (method url-fetch)
7049 (uri (bioconductor-uri "DelayedArray" version))
7050 (sha256
7051 (base32
7052 "02dfqp4md9xaqjj712ijc3jswghmipr5hwkd5hr0x1xi6l2fb69g"))))
7053 (properties
7054 `((upstream-name . "DelayedArray")))
7055 (build-system r-build-system)
7056 (propagated-inputs
7057 `(("r-biocgenerics" ,r-biocgenerics)
7058 ("r-s4vectors" ,r-s4vectors)
7059 ("r-iranges" ,r-iranges)
7060 ("r-matrixstats" ,r-matrixstats)))
7061 (home-page "http://bioconductor.org/packages/DelayedArray")
7062 (synopsis "Delayed operations on array-like objects")
7063 (description
7064 "Wrapping an array-like object (typically an on-disk object) in a
7065 @code{DelayedArray} object allows one to perform common array operations on it
7066 without loading the object in memory. In order to reduce memory usage and
7067 optimize performance, operations on the object are either delayed or executed
7068 using a block processing mechanism. Note that this also works on in-memory
7069 array-like objects like @code{DataFrame} objects (typically with Rle columns),
7070 @code{Matrix} objects, and ordinary arrays and data frames.")
7071 (license license:artistic2.0)))
7072
7073 (define-public r-summarizedexperiment
7074 (package
7075 (name "r-summarizedexperiment")
7076 (version "1.6.3")
7077 (source (origin
7078 (method url-fetch)
7079 (uri (bioconductor-uri "SummarizedExperiment" version))
7080 (sha256
7081 (base32
7082 "0j7xn7pk52d383fb1wplcggacl2586c4zi0alkgfc3wz7qq9w13s"))))
7083 (properties
7084 `((upstream-name . "SummarizedExperiment")))
7085 (build-system r-build-system)
7086 (propagated-inputs
7087 `(("r-biobase" ,r-biobase)
7088 ("r-biocgenerics" ,r-biocgenerics)
7089 ("r-delayedarray" ,r-delayedarray)
7090 ("r-genomeinfodb" ,r-genomeinfodb)
7091 ("r-genomicranges" ,r-genomicranges)
7092 ("r-iranges" ,r-iranges)
7093 ("r-matrix" ,r-matrix)
7094 ("r-s4vectors" ,r-s4vectors)))
7095 (home-page "http://bioconductor.org/packages/SummarizedExperiment")
7096 (synopsis "Container for representing genomic ranges by sample")
7097 (description
7098 "The SummarizedExperiment container contains one or more assays, each
7099 represented by a matrix-like object of numeric or other mode. The rows
7100 typically represent genomic ranges of interest and the columns represent
7101 samples.")
7102 (license license:artistic2.0)))
7103
7104 (define-public r-genomicalignments
7105 (package
7106 (name "r-genomicalignments")
7107 (version "1.12.1")
7108 (source (origin
7109 (method url-fetch)
7110 (uri (bioconductor-uri "GenomicAlignments" version))
7111 (sha256
7112 (base32
7113 "127690sys4i5q3l4vxnjg4xg8q19qlw2258vgs5d1156w9ypp04h"))))
7114 (properties
7115 `((upstream-name . "GenomicAlignments")))
7116 (build-system r-build-system)
7117 (propagated-inputs
7118 `(("r-biocgenerics" ,r-biocgenerics)
7119 ("r-biocparallel" ,r-biocparallel)
7120 ("r-biostrings" ,r-biostrings)
7121 ("r-genomeinfodb" ,r-genomeinfodb)
7122 ("r-genomicranges" ,r-genomicranges)
7123 ("r-iranges" ,r-iranges)
7124 ("r-rsamtools" ,r-rsamtools)
7125 ("r-s4vectors" ,r-s4vectors)
7126 ("r-summarizedexperiment" ,r-summarizedexperiment)))
7127 (home-page "http://bioconductor.org/packages/GenomicAlignments")
7128 (synopsis "Representation and manipulation of short genomic alignments")
7129 (description
7130 "This package provides efficient containers for storing and manipulating
7131 short genomic alignments (typically obtained by aligning short reads to a
7132 reference genome). This includes read counting, computing the coverage,
7133 junction detection, and working with the nucleotide content of the
7134 alignments.")
7135 (license license:artistic2.0)))
7136
7137 (define-public r-rtracklayer
7138 (package
7139 (name "r-rtracklayer")
7140 (version "1.36.4")
7141 (source (origin
7142 (method url-fetch)
7143 (uri (bioconductor-uri "rtracklayer" version))
7144 (sha256
7145 (base32
7146 "050q1rv04w31168ljr975vxva31n9lqdx84rnmsk6zcr6p640ffp"))))
7147 (build-system r-build-system)
7148 (arguments
7149 `(#:phases
7150 (modify-phases %standard-phases
7151 (add-after 'unpack 'use-system-zlib
7152 (lambda _
7153 (substitute* "DESCRIPTION"
7154 (("zlibbioc, ") ""))
7155 (substitute* "NAMESPACE"
7156 (("import\\(zlibbioc\\)") ""))
7157 #t)))))
7158 (inputs
7159 `(("zlib" ,zlib)))
7160 (propagated-inputs
7161 `(("r-biocgenerics" ,r-biocgenerics)
7162 ("r-biostrings" ,r-biostrings)
7163 ("r-genomeinfodb" ,r-genomeinfodb)
7164 ("r-genomicalignments" ,r-genomicalignments)
7165 ("r-genomicranges" ,r-genomicranges)
7166 ("r-iranges" ,r-iranges)
7167 ("r-rcurl" ,r-rcurl)
7168 ("r-rsamtools" ,r-rsamtools)
7169 ("r-s4vectors" ,r-s4vectors)
7170 ("r-xml" ,r-xml)
7171 ("r-xvector" ,r-xvector)))
7172 (home-page "http://bioconductor.org/packages/rtracklayer")
7173 (synopsis "R interface to genome browsers and their annotation tracks")
7174 (description
7175 "rtracklayer is an extensible framework for interacting with multiple
7176 genome browsers (currently UCSC built-in) and manipulating annotation tracks
7177 in various formats (currently GFF, BED, bedGraph, BED15, WIG, BigWig and 2bit
7178 built-in). The user may export/import tracks to/from the supported browsers,
7179 as well as query and modify the browser state, such as the current viewport.")
7180 (license license:artistic2.0)))
7181
7182 (define-public r-genomicfeatures
7183 (package
7184 (name "r-genomicfeatures")
7185 (version "1.28.4")
7186 (source (origin
7187 (method url-fetch)
7188 (uri (bioconductor-uri "GenomicFeatures" version))
7189 (sha256
7190 (base32
7191 "01ylvg275iy0cvsbxkbfxcf9pi9al597v5wnlqi2xdpmrcxyc3q0"))))
7192 (properties
7193 `((upstream-name . "GenomicFeatures")))
7194 (build-system r-build-system)
7195 (propagated-inputs
7196 `(("r-annotationdbi" ,r-annotationdbi)
7197 ("r-biobase" ,r-biobase)
7198 ("r-biocgenerics" ,r-biocgenerics)
7199 ("r-biomart" ,r-biomart)
7200 ("r-biostrings" ,r-biostrings)
7201 ("r-dbi" ,r-dbi)
7202 ("r-genomeinfodb" ,r-genomeinfodb)
7203 ("r-genomicranges" ,r-genomicranges)
7204 ("r-iranges" ,r-iranges)
7205 ("r-rcurl" ,r-rcurl)
7206 ("r-rsqlite" ,r-rsqlite)
7207 ("r-rtracklayer" ,r-rtracklayer)
7208 ("r-s4vectors" ,r-s4vectors)
7209 ("r-xvector" ,r-xvector)))
7210 (home-page "http://bioconductor.org/packages/GenomicFeatures")
7211 (synopsis "Tools for working with transcript centric annotations")
7212 (description
7213 "This package provides a set of tools and methods for making and
7214 manipulating transcript centric annotations. With these tools the user can
7215 easily download the genomic locations of the transcripts, exons and cds of a
7216 given organism, from either the UCSC Genome Browser or a BioMart
7217 database (more sources will be supported in the future). This information is
7218 then stored in a local database that keeps track of the relationship between
7219 transcripts, exons, cds and genes. Flexible methods are provided for
7220 extracting the desired features in a convenient format.")
7221 (license license:artistic2.0)))
7222
7223 (define-public r-go-db
7224 (package
7225 (name "r-go-db")
7226 (version "3.4.0")
7227 (source (origin
7228 (method url-fetch)
7229 (uri (string-append "http://www.bioconductor.org/packages/"
7230 "release/data/annotation/src/contrib/GO.db_"
7231 version ".tar.gz"))
7232 (sha256
7233 (base32
7234 "02cj8kqi5w39jwcs8gp1dgj08sah262ppxnkz4h3qd0w191y8yyl"))))
7235 (properties
7236 `((upstream-name . "GO.db")))
7237 (build-system r-build-system)
7238 (propagated-inputs
7239 `(("r-annotationdbi" ,r-annotationdbi)))
7240 (home-page "http://bioconductor.org/packages/GO.db")
7241 (synopsis "Annotation maps describing the entire Gene Ontology")
7242 (description
7243 "The purpose of this GO.db annotation package is to provide detailed
7244 information about the latest version of the Gene Ontologies.")
7245 (license license:artistic2.0)))
7246
7247 (define-public r-graph
7248 (package
7249 (name "r-graph")
7250 (version "1.54.0")
7251 (source (origin
7252 (method url-fetch)
7253 (uri (bioconductor-uri "graph" version))
7254 (sha256
7255 (base32
7256 "0hx9wslnrci7c5i1gd1zlpjmgrkdnx9gabfgmzzwfnykk1mdvvna"))))
7257 (build-system r-build-system)
7258 (propagated-inputs
7259 `(("r-biocgenerics" ,r-biocgenerics)))
7260 (home-page "http://bioconductor.org/packages/graph")
7261 (synopsis "Handle graph data structures in R")
7262 (description
7263 "This package implements some simple graph handling capabilities for R.")
7264 (license license:artistic2.0)))
7265
7266 (define-public r-topgo
7267 (package
7268 (name "r-topgo")
7269 (version "2.28.0")
7270 (source (origin
7271 (method url-fetch)
7272 (uri (bioconductor-uri "topGO" version))
7273 (sha256
7274 (base32
7275 "04kvxz9qsxfz0np7wlrzp4r95nykz94x7mqpyyk76f90g6m66vcc"))))
7276 (properties
7277 `((upstream-name . "topGO")))
7278 (build-system r-build-system)
7279 (propagated-inputs
7280 `(("r-annotationdbi" ,r-annotationdbi)
7281 ("r-dbi" ,r-dbi)
7282 ("r-biobase" ,r-biobase)
7283 ("r-biocgenerics" ,r-biocgenerics)
7284 ("r-go-db" ,r-go-db)
7285 ("r-graph" ,r-graph)
7286 ("r-lattice" ,r-lattice)
7287 ("r-matrixstats" ,r-matrixstats)
7288 ("r-sparsem" ,r-sparsem)))
7289 (home-page "http://bioconductor.org/packages/topGO")
7290 (synopsis "Enrichment analysis for gene ontology")
7291 (description
7292 "The topGO package provides tools for testing @dfn{gene ontology} (GO)
7293 terms while accounting for the topology of the GO graph. Different test
7294 statistics and different methods for eliminating local similarities and
7295 dependencies between GO terms can be implemented and applied.")
7296 ;; Any version of the LGPL applies.
7297 (license license:lgpl2.1+)))
7298
7299 (define-public r-bsgenome
7300 (package
7301 (name "r-bsgenome")
7302 (version "1.44.0")
7303 (source (origin
7304 (method url-fetch)
7305 (uri (bioconductor-uri "BSgenome" version))
7306 (sha256
7307 (base32
7308 "18dlknwk3xvi52hamxf9pl5bjc5806mpw98xwvx5xajn8mrxiy5h"))))
7309 (properties
7310 `((upstream-name . "BSgenome")))
7311 (build-system r-build-system)
7312 (propagated-inputs
7313 `(("r-biocgenerics" ,r-biocgenerics)
7314 ("r-biostrings" ,r-biostrings)
7315 ("r-genomeinfodb" ,r-genomeinfodb)
7316 ("r-genomicranges" ,r-genomicranges)
7317 ("r-iranges" ,r-iranges)
7318 ("r-rsamtools" ,r-rsamtools)
7319 ("r-rtracklayer" ,r-rtracklayer)
7320 ("r-s4vectors" ,r-s4vectors)
7321 ("r-xvector" ,r-xvector)))
7322 (home-page "http://bioconductor.org/packages/BSgenome")
7323 (synopsis "Infrastructure for Biostrings-based genome data packages")
7324 (description
7325 "This package provides infrastructure shared by all Biostrings-based
7326 genome data packages and support for efficient SNP representation.")
7327 (license license:artistic2.0)))
7328
7329 (define-public r-bsgenome-hsapiens-1000genomes-hs37d5
7330 (package
7331 (name "r-bsgenome-hsapiens-1000genomes-hs37d5")
7332 (version "0.99.1")
7333 (source (origin
7334 (method url-fetch)
7335 ;; We cannot use bioconductor-uri here because this tarball is
7336 ;; located under "data/annotation/" instead of "bioc/".
7337 (uri (string-append "http://www.bioconductor.org/packages/"
7338 "release/data/annotation/src/contrib/"
7339 "BSgenome.Hsapiens.1000genomes.hs37d5_"
7340 version ".tar.gz"))
7341 (sha256
7342 (base32
7343 "1cg0g5fqmsvwyw2p9hp2yy4ilk21jkbbrnpgqvb5c36ihjwvc7sr"))))
7344 (properties
7345 `((upstream-name . "BSgenome.Hsapiens.1000genomes.hs37d5")))
7346 (build-system r-build-system)
7347 ;; As this package provides little more than a very large data file it
7348 ;; doesn't make sense to build substitutes.
7349 (arguments `(#:substitutable? #f))
7350 (propagated-inputs
7351 `(("r-bsgenome" ,r-bsgenome)))
7352 (home-page
7353 "http://www.bioconductor.org/packages/BSgenome.Hsapiens.1000genomes.hs37d5/")
7354 (synopsis "Full genome sequences for Homo sapiens")
7355 (description
7356 "This package provides full genome sequences for Homo sapiens from
7357 1000genomes phase2 reference genome sequence (hs37d5), based on NCBI GRCh37.")
7358 (license license:artistic2.0)))
7359
7360 (define-public r-impute
7361 (package
7362 (name "r-impute")
7363 (version "1.50.0")
7364 (source (origin
7365 (method url-fetch)
7366 (uri (bioconductor-uri "impute" version))
7367 (sha256
7368 (base32
7369 "0va45vfixy3np549md87h3b3rbavm54gfnmnjhpr9hf02lll6zxs"))))
7370 (inputs
7371 `(("gfortran" ,gfortran)))
7372 (build-system r-build-system)
7373 (home-page "http://bioconductor.org/packages/impute")
7374 (synopsis "Imputation for microarray data")
7375 (description
7376 "This package provides a function to impute missing gene expression
7377 microarray data, using nearest neighbor averaging.")
7378 (license license:gpl2+)))
7379
7380 (define-public r-seqpattern
7381 (package
7382 (name "r-seqpattern")
7383 (version "1.8.0")
7384 (source (origin
7385 (method url-fetch)
7386 (uri (bioconductor-uri "seqPattern" version))
7387 (sha256
7388 (base32
7389 "0yw5251sirv3283xgmfmfbf900xp8dwvqfk88mr945s3by5hx99v"))))
7390 (properties
7391 `((upstream-name . "seqPattern")))
7392 (build-system r-build-system)
7393 (propagated-inputs
7394 `(("r-biostrings" ,r-biostrings)
7395 ("r-genomicranges" ,r-genomicranges)
7396 ("r-iranges" ,r-iranges)
7397 ("r-kernsmooth" ,r-kernsmooth)
7398 ("r-plotrix" ,r-plotrix)))
7399 (home-page "http://bioconductor.org/packages/seqPattern")
7400 (synopsis "Visualising oligonucleotide patterns and motif occurrences")
7401 (description
7402 "This package provides tools to visualize oligonucleotide patterns and
7403 sequence motif occurrences across a large set of sequences centred at a common
7404 reference point and sorted by a user defined feature.")
7405 (license license:gpl3+)))
7406
7407 (define-public r-genomation
7408 (package
7409 (name "r-genomation")
7410 (version "1.8.0")
7411 (source (origin
7412 (method url-fetch)
7413 (uri (bioconductor-uri "genomation" version))
7414 (sha256
7415 (base32
7416 "0r71nf8p3aq3yffqxg4yir1zmm7rar5a57nmy1kpqpn8kaf2svjl"))))
7417 (build-system r-build-system)
7418 (propagated-inputs
7419 `(("r-biostrings" ,r-biostrings)
7420 ("r-bsgenome" ,r-bsgenome)
7421 ("r-data-table" ,r-data-table)
7422 ("r-genomeinfodb" ,r-genomeinfodb)
7423 ("r-genomicalignments" ,r-genomicalignments)
7424 ("r-genomicranges" ,r-genomicranges)
7425 ("r-ggplot2" ,r-ggplot2)
7426 ("r-gridbase" ,r-gridbase)
7427 ("r-impute" ,r-impute)
7428 ("r-iranges" ,r-iranges)
7429 ("r-matrixstats" ,r-matrixstats)
7430 ("r-plotrix" ,r-plotrix)
7431 ("r-plyr" ,r-plyr)
7432 ("r-rcpp" ,r-rcpp)
7433 ("r-readr" ,r-readr)
7434 ("r-reshape2" ,r-reshape2)
7435 ("r-rhtslib" ,r-rhtslib)
7436 ("r-rsamtools" ,r-rsamtools)
7437 ("r-rtracklayer" ,r-rtracklayer)
7438 ("r-runit" ,r-runit)
7439 ("r-s4vectors" ,r-s4vectors)
7440 ("r-seqpattern" ,r-seqpattern)))
7441 (inputs
7442 `(("zlib" ,zlib)))
7443 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
7444 (synopsis "Summary, annotation and visualization of genomic data")
7445 (description
7446 "This package provides a package for summary and annotation of genomic
7447 intervals. Users can visualize and quantify genomic intervals over
7448 pre-defined functional regions, such as promoters, exons, introns, etc. The
7449 genomic intervals represent regions with a defined chromosome position, which
7450 may be associated with a score, such as aligned reads from HT-seq experiments,
7451 TF binding sites, methylation scores, etc. The package can use any tabular
7452 genomic feature data as long as it has minimal information on the locations of
7453 genomic intervals. In addition, it can use BAM or BigWig files as input.")
7454 (license license:artistic2.0)))
7455
7456 (define-public r-genomationdata
7457 (package
7458 (name "r-genomationdata")
7459 (version "1.6.0")
7460 (source (origin
7461 (method url-fetch)
7462 ;; We cannot use bioconductor-uri here because this tarball is
7463 ;; located under "data/annotation/" instead of "bioc/".
7464 (uri (string-append "https://bioconductor.org/packages/"
7465 "release/data/experiment/src/contrib/"
7466 "genomationData_" version ".tar.gz"))
7467 (sha256
7468 (base32
7469 "16dqwb7wx1igx77zdbcskx5m1hs4g4gp2hl56zzm70hcagnlkz8y"))))
7470 (build-system r-build-system)
7471 ;; As this package provides little more than large data files, it doesn't
7472 ;; make sense to build substitutes.
7473 (arguments `(#:substitutable? #f))
7474 (native-inputs
7475 `(("r-knitr" ,r-knitr)))
7476 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
7477 (synopsis "Experimental data for use with the genomation package")
7478 (description
7479 "This package contains experimental genetic data for use with the
7480 genomation package. Included are Chip Seq, Methylation and Cage data,
7481 downloaded from Encode.")
7482 (license license:gpl3+)))
7483
7484 (define-public r-org-hs-eg-db
7485 (package
7486 (name "r-org-hs-eg-db")
7487 (version "3.4.0")
7488 (source (origin
7489 (method url-fetch)
7490 ;; We cannot use bioconductor-uri here because this tarball is
7491 ;; located under "data/annotation/" instead of "bioc/".
7492 (uri (string-append "http://www.bioconductor.org/packages/"
7493 "release/data/annotation/src/contrib/"
7494 "org.Hs.eg.db_" version ".tar.gz"))
7495 (sha256
7496 (base32
7497 "19mg64pw8zcvb9yxzzyf7caz1kvdrkfsj1hd84bzq7crrh8kc4y6"))))
7498 (properties
7499 `((upstream-name . "org.Hs.eg.db")))
7500 (build-system r-build-system)
7501 (propagated-inputs
7502 `(("r-annotationdbi" ,r-annotationdbi)))
7503 (home-page "http://www.bioconductor.org/packages/org.Hs.eg.db/")
7504 (synopsis "Genome wide annotation for Human")
7505 (description
7506 "This package provides mappings from Entrez gene identifiers to various
7507 annotations for the human genome.")
7508 (license license:artistic2.0)))
7509
7510 (define-public r-org-ce-eg-db
7511 (package
7512 (name "r-org-ce-eg-db")
7513 (version "3.4.0")
7514 (source (origin
7515 (method url-fetch)
7516 ;; We cannot use bioconductor-uri here because this tarball is
7517 ;; located under "data/annotation/" instead of "bioc/".
7518 (uri (string-append "http://www.bioconductor.org/packages/"
7519 "release/data/annotation/src/contrib/"
7520 "org.Ce.eg.db_" version ".tar.gz"))
7521 (sha256
7522 (base32
7523 "12llfzrrc09kj2wzbisdspv38qzkzgpsbn8kv7qkwg746k3pq436"))))
7524 (properties
7525 `((upstream-name . "org.Ce.eg.db")))
7526 (build-system r-build-system)
7527 (propagated-inputs
7528 `(("r-annotationdbi" ,r-annotationdbi)))
7529 (home-page "http://www.bioconductor.org/packages/org.Ce.eg.db/")
7530 (synopsis "Genome wide annotation for Worm")
7531 (description
7532 "This package provides mappings from Entrez gene identifiers to various
7533 annotations for the genome of the model worm Caenorhabditis elegans.")
7534 (license license:artistic2.0)))
7535
7536 (define-public r-org-dm-eg-db
7537 (package
7538 (name "r-org-dm-eg-db")
7539 (version "3.4.0")
7540 (source (origin
7541 (method url-fetch)
7542 ;; We cannot use bioconductor-uri here because this tarball is
7543 ;; located under "data/annotation/" instead of "bioc/".
7544 (uri (string-append "http://www.bioconductor.org/packages/"
7545 "release/data/annotation/src/contrib/"
7546 "org.Dm.eg.db_" version ".tar.gz"))
7547 (sha256
7548 (base32
7549 "1vzbphbrh1cf7xi5cksia9xy9a9l42js2z2qsajvjxvddiphrb7j"))))
7550 (properties
7551 `((upstream-name . "org.Dm.eg.db")))
7552 (build-system r-build-system)
7553 (propagated-inputs
7554 `(("r-annotationdbi" ,r-annotationdbi)))
7555 (home-page "http://www.bioconductor.org/packages/org.Dm.eg.db/")
7556 (synopsis "Genome wide annotation for Fly")
7557 (description
7558 "This package provides mappings from Entrez gene identifiers to various
7559 annotations for the genome of the model fruit fly Drosophila melanogaster.")
7560 (license license:artistic2.0)))
7561
7562 (define-public r-org-mm-eg-db
7563 (package
7564 (name "r-org-mm-eg-db")
7565 (version "3.4.0")
7566 (source (origin
7567 (method url-fetch)
7568 ;; We cannot use bioconductor-uri here because this tarball is
7569 ;; located under "data/annotation/" instead of "bioc/".
7570 (uri (string-append "http://www.bioconductor.org/packages/"
7571 "release/data/annotation/src/contrib/"
7572 "org.Mm.eg.db_" version ".tar.gz"))
7573 (sha256
7574 (base32
7575 "1lykjqjaf01fmgg3cvfcvwd5xjq6zc5vbxnm5r4l32fzvl89q50c"))))
7576 (properties
7577 `((upstream-name . "org.Mm.eg.db")))
7578 (build-system r-build-system)
7579 (propagated-inputs
7580 `(("r-annotationdbi" ,r-annotationdbi)))
7581 (home-page "http://www.bioconductor.org/packages/org.Mm.eg.db/")
7582 (synopsis "Genome wide annotation for Mouse")
7583 (description
7584 "This package provides mappings from Entrez gene identifiers to various
7585 annotations for the genome of the model mouse Mus musculus.")
7586 (license license:artistic2.0)))
7587
7588 (define-public r-seqlogo
7589 (package
7590 (name "r-seqlogo")
7591 (version "1.42.0")
7592 (source
7593 (origin
7594 (method url-fetch)
7595 (uri (bioconductor-uri "seqLogo" version))
7596 (sha256
7597 (base32
7598 "19d5zmy7m8svljwgbmrb4vxkq18slq0f3all6k2ayv42b8w44h6q"))))
7599 (properties `((upstream-name . "seqLogo")))
7600 (build-system r-build-system)
7601 (home-page "http://bioconductor.org/packages/seqLogo")
7602 (synopsis "Sequence logos for DNA sequence alignments")
7603 (description
7604 "seqLogo takes the position weight matrix of a DNA sequence motif and
7605 plots the corresponding sequence logo as introduced by Schneider and
7606 Stephens (1990).")
7607 (license license:lgpl2.0+)))
7608
7609 (define-public r-bsgenome-hsapiens-ucsc-hg19
7610 (package
7611 (name "r-bsgenome-hsapiens-ucsc-hg19")
7612 (version "1.4.0")
7613 (source (origin
7614 (method url-fetch)
7615 ;; We cannot use bioconductor-uri here because this tarball is
7616 ;; located under "data/annotation/" instead of "bioc/".
7617 (uri (string-append "http://www.bioconductor.org/packages/"
7618 "release/data/annotation/src/contrib/"
7619 "BSgenome.Hsapiens.UCSC.hg19_"
7620 version ".tar.gz"))
7621 (sha256
7622 (base32
7623 "1y0nqpk8cw5a34sd9hmin3z4v7iqm6hf6l22cl81vlbxqbjibxc8"))))
7624 (properties
7625 `((upstream-name . "BSgenome.Hsapiens.UCSC.hg19")))
7626 (build-system r-build-system)
7627 ;; As this package provides little more than a very large data file it
7628 ;; doesn't make sense to build substitutes.
7629 (arguments `(#:substitutable? #f))
7630 (propagated-inputs
7631 `(("r-bsgenome" ,r-bsgenome)))
7632 (home-page
7633 "http://www.bioconductor.org/packages/BSgenome.Hsapiens.UCSC.hg19/")
7634 (synopsis "Full genome sequences for Homo sapiens")
7635 (description
7636 "This package provides full genome sequences for Homo sapiens as provided
7637 by UCSC (hg19, February 2009) and stored in Biostrings objects.")
7638 (license license:artistic2.0)))
7639
7640 (define-public r-bsgenome-mmusculus-ucsc-mm9
7641 (package
7642 (name "r-bsgenome-mmusculus-ucsc-mm9")
7643 (version "1.4.0")
7644 (source (origin
7645 (method url-fetch)
7646 ;; We cannot use bioconductor-uri here because this tarball is
7647 ;; located under "data/annotation/" instead of "bioc/".
7648 (uri (string-append "http://www.bioconductor.org/packages/"
7649 "release/data/annotation/src/contrib/"
7650 "BSgenome.Mmusculus.UCSC.mm9_"
7651 version ".tar.gz"))
7652 (sha256
7653 (base32
7654 "1birqw30g2azimxpnjfzmkphan7x131yy8b9h85lfz5fjdg7841i"))))
7655 (properties
7656 `((upstream-name . "BSgenome.Mmusculus.UCSC.mm9")))
7657 (build-system r-build-system)
7658 ;; As this package provides little more than a very large data file it
7659 ;; doesn't make sense to build substitutes.
7660 (arguments `(#:substitutable? #f))
7661 (propagated-inputs
7662 `(("r-bsgenome" ,r-bsgenome)))
7663 (home-page
7664 "http://www.bioconductor.org/packages/BSgenome.Mmusculus.UCSC.mm9/")
7665 (synopsis "Full genome sequences for Mouse")
7666 (description
7667 "This package provides full genome sequences for Mus musculus (Mouse) as
7668 provided by UCSC (mm9, July 2007) and stored in Biostrings objects.")
7669 (license license:artistic2.0)))
7670
7671 (define-public r-bsgenome-mmusculus-ucsc-mm10
7672 (package
7673 (name "r-bsgenome-mmusculus-ucsc-mm10")
7674 (version "1.4.0")
7675 (source (origin
7676 (method url-fetch)
7677 ;; We cannot use bioconductor-uri here because this tarball is
7678 ;; located under "data/annotation/" instead of "bioc/".
7679 (uri (string-append "http://www.bioconductor.org/packages/"
7680 "release/data/annotation/src/contrib/"
7681 "BSgenome.Mmusculus.UCSC.mm10_"
7682 version ".tar.gz"))
7683 (sha256
7684 (base32
7685 "12s0nm2na9brjad4rn9l7d3db2aj8qa1xvz0y1k7gk08wayb6bkf"))))
7686 (properties
7687 `((upstream-name . "BSgenome.Mmusculus.UCSC.mm10")))
7688 (build-system r-build-system)
7689 ;; As this package provides little more than a very large data file it
7690 ;; doesn't make sense to build substitutes.
7691 (arguments `(#:substitutable? #f))
7692 (propagated-inputs
7693 `(("r-bsgenome" ,r-bsgenome)))
7694 (home-page
7695 "http://www.bioconductor.org/packages/BSgenome.Mmusculus.UCSC.mm10/")
7696 (synopsis "Full genome sequences for Mouse")
7697 (description
7698 "This package provides full genome sequences for Mus
7699 musculus (Mouse) as provided by UCSC (mm10, December 2011) and stored
7700 in Biostrings objects.")
7701 (license license:artistic2.0)))
7702
7703 (define-public r-txdb-mmusculus-ucsc-mm10-knowngene
7704 (package
7705 (name "r-txdb-mmusculus-ucsc-mm10-knowngene")
7706 (version "3.4.0")
7707 (source (origin
7708 (method url-fetch)
7709 ;; We cannot use bioconductor-uri here because this tarball is
7710 ;; located under "data/annotation/" instead of "bioc/".
7711 (uri (string-append "http://www.bioconductor.org/packages/"
7712 "release/data/annotation/src/contrib/"
7713 "TxDb.Mmusculus.UCSC.mm10.knownGene_"
7714 version ".tar.gz"))
7715 (sha256
7716 (base32
7717 "08gava9wsvpcqz51k2sni3pj03n5155v32d9riqbf305nbirqbkb"))))
7718 (properties
7719 `((upstream-name . "TxDb.Mmusculus.UCSC.mm10.knownGene")))
7720 (build-system r-build-system)
7721 ;; As this package provides little more than a very large data file it
7722 ;; doesn't make sense to build substitutes.
7723 (arguments `(#:substitutable? #f))
7724 (propagated-inputs
7725 `(("r-bsgenome" ,r-bsgenome)
7726 ("r-genomicfeatures" ,r-genomicfeatures)
7727 ("r-annotationdbi" ,r-annotationdbi)))
7728 (home-page
7729 "http://bioconductor.org/packages/TxDb.Mmusculus.UCSC.mm10.knownGene/")
7730 (synopsis "Annotation package for TxDb knownGene object(s) for Mouse")
7731 (description
7732 "This package loads a TxDb object, which is an R interface to
7733 prefabricated databases contained in this package. This package provides
7734 the TxDb object of Mouse data as provided by UCSC (mm10, December 2011)
7735 based on the knownGene track.")
7736 (license license:artistic2.0)))
7737
7738 (define-public r-bsgenome-celegans-ucsc-ce6
7739 (package
7740 (name "r-bsgenome-celegans-ucsc-ce6")
7741 (version "1.4.0")
7742 (source (origin
7743 (method url-fetch)
7744 ;; We cannot use bioconductor-uri here because this tarball is
7745 ;; located under "data/annotation/" instead of "bioc/".
7746 (uri (string-append "http://www.bioconductor.org/packages/"
7747 "release/data/annotation/src/contrib/"
7748 "BSgenome.Celegans.UCSC.ce6_"
7749 version ".tar.gz"))
7750 (sha256
7751 (base32
7752 "0mqzb353xv2c3m3vkb315dkmnxkgczp7ndnknyhpgjlybyf715v9"))))
7753 (properties
7754 `((upstream-name . "BSgenome.Celegans.UCSC.ce6")))
7755 (build-system r-build-system)
7756 ;; As this package provides little more than a very large data file it
7757 ;; doesn't make sense to build substitutes.
7758 (arguments `(#:substitutable? #f))
7759 (propagated-inputs
7760 `(("r-bsgenome" ,r-bsgenome)))
7761 (home-page
7762 "http://www.bioconductor.org/packages/BSgenome.Celegans.UCSC.ce6/")
7763 (synopsis "Full genome sequences for Worm")
7764 (description
7765 "This package provides full genome sequences for Caenorhabditis
7766 elegans (Worm) as provided by UCSC (ce6, May 2008) and stored in Biostrings
7767 objects.")
7768 (license license:artistic2.0)))
7769
7770 (define-public r-bsgenome-celegans-ucsc-ce10
7771 (package
7772 (name "r-bsgenome-celegans-ucsc-ce10")
7773 (version "1.4.0")
7774 (source (origin
7775 (method url-fetch)
7776 ;; We cannot use bioconductor-uri here because this tarball is
7777 ;; located under "data/annotation/" instead of "bioc/".
7778 (uri (string-append "http://www.bioconductor.org/packages/"
7779 "release/data/annotation/src/contrib/"
7780 "BSgenome.Celegans.UCSC.ce10_"
7781 version ".tar.gz"))
7782 (sha256
7783 (base32
7784 "1zaym97jk4npxk14ifvwz2rvhm4zx9xgs33r9vvx9rlynp0gydrk"))))
7785 (properties
7786 `((upstream-name . "BSgenome.Celegans.UCSC.ce10")))
7787 (build-system r-build-system)
7788 ;; As this package provides little more than a very large data file it
7789 ;; doesn't make sense to build substitutes.
7790 (arguments `(#:substitutable? #f))
7791 (propagated-inputs
7792 `(("r-bsgenome" ,r-bsgenome)))
7793 (home-page
7794 "http://www.bioconductor.org/packages/BSgenome.Celegans.UCSC.ce10/")
7795 (synopsis "Full genome sequences for Worm")
7796 (description
7797 "This package provides full genome sequences for Caenorhabditis
7798 elegans (Worm) as provided by UCSC (ce10, Oct 2010) and stored in Biostrings
7799 objects.")
7800 (license license:artistic2.0)))
7801
7802 (define-public r-bsgenome-dmelanogaster-ucsc-dm3
7803 (package
7804 (name "r-bsgenome-dmelanogaster-ucsc-dm3")
7805 (version "1.4.0")
7806 (source (origin
7807 (method url-fetch)
7808 ;; We cannot use bioconductor-uri here because this tarball is
7809 ;; located under "data/annotation/" instead of "bioc/".
7810 (uri (string-append "http://www.bioconductor.org/packages/"
7811 "release/data/annotation/src/contrib/"
7812 "BSgenome.Dmelanogaster.UCSC.dm3_"
7813 version ".tar.gz"))
7814 (sha256
7815 (base32
7816 "19bm3lkhhkag3gnwp419211fh0cnr0x6fa0r1lr0ycwrikxdxsv8"))))
7817 (properties
7818 `((upstream-name . "BSgenome.Dmelanogaster.UCSC.dm3")))
7819 (build-system r-build-system)
7820 ;; As this package provides little more than a very large data file it
7821 ;; doesn't make sense to build substitutes.
7822 (arguments `(#:substitutable? #f))
7823 (propagated-inputs
7824 `(("r-bsgenome" ,r-bsgenome)))
7825 (home-page
7826 "http://www.bioconductor.org/packages/BSgenome.Dmelanogaster.UCSC.dm3/")
7827 (synopsis "Full genome sequences for Fly")
7828 (description
7829 "This package provides full genome sequences for Drosophila
7830 melanogaster (Fly) as provided by UCSC (dm3, April 2006) and stored in
7831 Biostrings objects.")
7832 (license license:artistic2.0)))
7833
7834 (define-public r-motifrg
7835 (package
7836 (name "r-motifrg")
7837 (version "1.20.0")
7838 (source
7839 (origin
7840 (method url-fetch)
7841 (uri (bioconductor-uri "motifRG" version))
7842 (sha256
7843 (base32
7844 "0lxxpqyljiyk73vyq6ss46q13g81pm24q87mkzdsqlr5zx427ch6"))))
7845 (properties `((upstream-name . "motifRG")))
7846 (build-system r-build-system)
7847 (propagated-inputs
7848 `(("r-biostrings" ,r-biostrings)
7849 ("r-bsgenome" ,r-bsgenome)
7850 ("r-bsgenome.hsapiens.ucsc.hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
7851 ("r-iranges" ,r-iranges)
7852 ("r-seqlogo" ,r-seqlogo)
7853 ("r-xvector" ,r-xvector)))
7854 (home-page "http://bioconductor.org/packages/motifRG")
7855 (synopsis "Discover motifs in high throughput sequencing data")
7856 (description
7857 "This package provides tools for discriminative motif discovery in high
7858 throughput genetic sequencing data sets using regression methods.")
7859 (license license:artistic2.0)))
7860
7861 (define-public r-qtl
7862 (package
7863 (name "r-qtl")
7864 (version "1.41-6")
7865 (source
7866 (origin
7867 (method url-fetch)
7868 (uri (string-append "mirror://cran/src/contrib/qtl_"
7869 version ".tar.gz"))
7870 (sha256
7871 (base32
7872 "067az4v432zxp6lxck8d7vlh9w4r13r0mvw5zsglyaqwsh3d9sad"))))
7873 (build-system r-build-system)
7874 (home-page "http://rqtl.org/")
7875 (synopsis "R package for analyzing QTL experiments in genetics")
7876 (description "R/qtl is an extension library for the R statistics
7877 system. It is used to analyze experimental crosses for identifying
7878 genes contributing to variation in quantitative traits (so-called
7879 quantitative trait loci, QTLs).
7880
7881 Using a hidden Markov model, R/qtl allows to estimate genetic maps, to
7882 identify genotyping errors, and to perform single-QTL and two-QTL,
7883 two-dimensional genome scans.")
7884 (license license:gpl3)))
7885
7886 (define-public r-zlibbioc
7887 (package
7888 (name "r-zlibbioc")
7889 (version "1.22.0")
7890 (source (origin
7891 (method url-fetch)
7892 (uri (bioconductor-uri "zlibbioc" version))
7893 (sha256
7894 (base32
7895 "1kdgwwlh39mgwzj3zq71za4iv40sq625ghnyrndv5wrivrcr2igv"))))
7896 (properties
7897 `((upstream-name . "zlibbioc")))
7898 (build-system r-build-system)
7899 (home-page "https://bioconductor.org/packages/zlibbioc")
7900 (synopsis "Provider for zlib-1.2.5 to R packages")
7901 (description "This package uses the source code of zlib-1.2.5 to create
7902 libraries for systems that do not have these available via other means.")
7903 (license license:artistic2.0)))
7904
7905 (define-public r-r4rna
7906 (package
7907 (name "r-r4rna")
7908 (version "0.1.4")
7909 (source
7910 (origin
7911 (method url-fetch)
7912 (uri (string-append "http://www.e-rna.org/r-chie/files/R4RNA_"
7913 version ".tar.gz"))
7914 (sha256
7915 (base32
7916 "1p0i78wh76jfgmn9jphbwwaz6yy6pipzfg08xs54cxavxg2j81p5"))))
7917 (build-system r-build-system)
7918 (propagated-inputs
7919 `(("r-optparse" ,r-optparse)
7920 ("r-rcolorbrewer" ,r-rcolorbrewer)))
7921 (home-page "http://www.e-rna.org/r-chie/index.cgi")
7922 (synopsis "Analysis framework for RNA secondary structure")
7923 (description
7924 "The R4RNA package aims to be a general framework for the analysis of RNA
7925 secondary structure and comparative analysis in R.")
7926 (license license:gpl3+)))
7927
7928 (define-public r-rhtslib
7929 (package
7930 (name "r-rhtslib")
7931 (version "1.8.0")
7932 (source
7933 (origin
7934 (method url-fetch)
7935 (uri (bioconductor-uri "Rhtslib" version))
7936 (sha256
7937 (base32
7938 "0jj5h81z5gyf4j3lp2l3zsm6pgbmalgrngr8qdpygc20phndpp0b"))))
7939 (properties `((upstream-name . "Rhtslib")))
7940 (build-system r-build-system)
7941 (propagated-inputs
7942 `(("r-zlibbioc" ,r-zlibbioc)))
7943 (inputs
7944 `(("zlib" ,zlib)))
7945 (native-inputs
7946 `(("autoconf" ,autoconf)))
7947 (home-page "https://github.com/nhayden/Rhtslib")
7948 (synopsis "High-throughput sequencing library as an R package")
7949 (description
7950 "This package provides the HTSlib C library for high-throughput
7951 nucleotide sequence analysis. The package is primarily useful to developers
7952 of other R packages who wish to make use of HTSlib.")
7953 (license license:lgpl2.0+)))
7954
7955 (define-public r-bamsignals
7956 (package
7957 (name "r-bamsignals")
7958 (version "1.8.0")
7959 (source
7960 (origin
7961 (method url-fetch)
7962 (uri (bioconductor-uri "bamsignals" version))
7963 (sha256
7964 (base32
7965 "0knx69zzdaak2sjim8k9mygmcjxpa705m8013ld5zwpgi8dag9mc"))))
7966 (build-system r-build-system)
7967 (propagated-inputs
7968 `(("r-biocgenerics" ,r-biocgenerics)
7969 ("r-genomicranges" ,r-genomicranges)
7970 ("r-iranges" ,r-iranges)
7971 ("r-rcpp" ,r-rcpp)
7972 ("r-rhtslib" ,r-rhtslib)
7973 ("r-zlibbioc" ,r-zlibbioc)))
7974 (inputs
7975 `(("zlib" ,zlib)))
7976 (home-page "http://bioconductor.org/packages/bamsignals")
7977 (synopsis "Extract read count signals from bam files")
7978 (description
7979 "This package allows to efficiently obtain count vectors from indexed bam
7980 files. It counts the number of nucleotide sequence reads in given genomic
7981 ranges and it computes reads profiles and coverage profiles. It also handles
7982 paired-end data.")
7983 (license license:gpl2+)))
7984
7985 (define-public r-rcas
7986 (package
7987 (name "r-rcas")
7988 (version "1.1.1")
7989 (source (origin
7990 (method url-fetch)
7991 (uri (string-append "https://github.com/BIMSBbioinfo/RCAS/archive/v"
7992 version ".tar.gz"))
7993 (file-name (string-append name "-" version ".tar.gz"))
7994 (sha256
7995 (base32
7996 "1hd0r66556bxbdd82ksjklq7nfli36l4k6y88ic7kkg9873wa1nw"))))
7997 (build-system r-build-system)
7998 (native-inputs
7999 `(("r-knitr" ,r-knitr)
8000 ("r-testthat" ,r-testthat)
8001 ;; During vignette building knitr checks that "pandoc-citeproc"
8002 ;; is in the PATH.
8003 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)))
8004 (propagated-inputs
8005 `(("r-data-table" ,r-data-table)
8006 ("r-biomart" ,r-biomart)
8007 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
8008 ("r-org-ce-eg-db" ,r-org-ce-eg-db)
8009 ("r-org-dm-eg-db" ,r-org-dm-eg-db)
8010 ("r-org-mm-eg-db" ,r-org-mm-eg-db)
8011 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8012 ("r-bsgenome-mmusculus-ucsc-mm9" ,r-bsgenome-mmusculus-ucsc-mm9)
8013 ("r-bsgenome-celegans-ucsc-ce10" ,r-bsgenome-celegans-ucsc-ce10)
8014 ("r-bsgenome-dmelanogaster-ucsc-dm3" ,r-bsgenome-dmelanogaster-ucsc-dm3)
8015 ("r-topgo" ,r-topgo)
8016 ("r-dt" ,r-dt)
8017 ("r-plotly" ,r-plotly)
8018 ("r-plotrix" ,r-plotrix)
8019 ("r-motifrg" ,r-motifrg)
8020 ("r-genomation" ,r-genomation)
8021 ("r-genomicfeatures" ,r-genomicfeatures)
8022 ("r-rtracklayer" ,r-rtracklayer)
8023 ("r-rmarkdown" ,r-rmarkdown)))
8024 (synopsis "RNA-centric annotation system")
8025 (description
8026 "RCAS aims to be a standalone RNA-centric annotation system that provides
8027 intuitive reports and publication-ready graphics. This package provides the R
8028 library implementing most of the pipeline's features.")
8029 (home-page "https://github.com/BIMSBbioinfo/RCAS")
8030 (license license:expat)))
8031
8032 (define-public rcas-web
8033 (package
8034 (name "rcas-web")
8035 (version "0.0.3")
8036 (source
8037 (origin
8038 (method url-fetch)
8039 (uri (string-append "https://github.com/BIMSBbioinfo/rcas-web/"
8040 "releases/download/v" version
8041 "/rcas-web-" version ".tar.gz"))
8042 (sha256
8043 (base32
8044 "0d3my0g8i7js59n184zzzjdki7hgmhpi4rhfvk7i6jsw01ba04qq"))))
8045 (build-system gnu-build-system)
8046 (arguments
8047 `(#:phases
8048 (modify-phases %standard-phases
8049 (add-after 'install 'wrap-executable
8050 (lambda* (#:key inputs outputs #:allow-other-keys)
8051 (let* ((out (assoc-ref outputs "out"))
8052 (json (assoc-ref inputs "guile-json"))
8053 (redis (assoc-ref inputs "guile-redis"))
8054 (path (string-append
8055 json "/share/guile/site/2.2:"
8056 redis "/share/guile/site/2.2")))
8057 (wrap-program (string-append out "/bin/rcas-web")
8058 `("GUILE_LOAD_PATH" ":" = (,path))
8059 `("GUILE_LOAD_COMPILED_PATH" ":" = (,path))
8060 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
8061 #t)))))
8062 (inputs
8063 `(("r-minimal" ,r-minimal)
8064 ("r-rcas" ,r-rcas)
8065 ("guile-next" ,guile-2.2)
8066 ("guile-json" ,guile-json)
8067 ("guile-redis" ,guile2.2-redis)))
8068 (native-inputs
8069 `(("pkg-config" ,pkg-config)))
8070 (home-page "https://github.com/BIMSBbioinfo/rcas-web")
8071 (synopsis "Web interface for RNA-centric annotation system (RCAS)")
8072 (description "This package provides a simple web interface for the
8073 @dfn{RNA-centric annotation system} (RCAS).")
8074 (license license:agpl3+)))
8075
8076 (define-public r-mutationalpatterns
8077 (package
8078 (name "r-mutationalpatterns")
8079 (version "1.2.1")
8080 (source
8081 (origin
8082 (method url-fetch)
8083 (uri (bioconductor-uri "MutationalPatterns" version))
8084 (sha256
8085 (base32
8086 "1s50diwh1j6vg3mgahh6bczvq74mfdbmwjrad4d5lh723gnc5pjg"))))
8087 (build-system r-build-system)
8088 (propagated-inputs
8089 `(("r-biocgenerics" ,r-biocgenerics)
8090 ("r-biostrings" ,r-biostrings)
8091 ("r-bsgenome-hsapiens-1000g" ,r-bsgenome-hsapiens-1000genomes-hs37d5)
8092 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8093 ("r-genomicranges" ,r-genomicranges)
8094 ("r-genomeinfodb" ,r-genomeinfodb)
8095 ("r-ggplot2" ,r-ggplot2)
8096 ("r-gridextra" ,r-gridextra)
8097 ("r-iranges" ,r-iranges)
8098 ("r-nmf" ,r-nmf)
8099 ("r-plyr" ,r-plyr)
8100 ("r-pracma" ,r-pracma)
8101 ("r-reshape2" ,r-reshape2)
8102 ("r-summarizedexperiment" ,r-summarizedexperiment)
8103 ("r-variantannotation" ,r-variantannotation)))
8104 (home-page "http://bioconductor.org/packages/MutationalPatterns/")
8105 (synopsis "Extract and visualize mutational patterns in genomic data")
8106 (description "This package provides an extensive toolset for the
8107 characterization and visualization of a wide range of mutational patterns
8108 in SNV base substitution data.")
8109 (license license:expat)))
8110
8111 (define-public r-wgcna
8112 (package
8113 (name "r-wgcna")
8114 (version "1.61")
8115 (source
8116 (origin
8117 (method url-fetch)
8118 (uri (cran-uri "WGCNA" version))
8119 (sha256
8120 (base32
8121 "1vrc2k33a196hrrl7k0z534fp96vv0shmigcr65ny1q0v6lq0h6i"))))
8122 (properties `((upstream-name . "WGCNA")))
8123 (build-system r-build-system)
8124 (propagated-inputs
8125 `(("r-annotationdbi" ,r-annotationdbi)
8126 ("r-doparallel" ,r-doparallel)
8127 ("r-dynamictreecut" ,r-dynamictreecut)
8128 ("r-fastcluster" ,r-fastcluster)
8129 ("r-foreach" ,r-foreach)
8130 ("r-go-db" ,r-go-db)
8131 ("r-hmisc" ,r-hmisc)
8132 ("r-impute" ,r-impute)
8133 ("r-rcpp" ,r-rcpp)
8134 ("r-robust" ,r-robust)
8135 ("r-survival" ,r-survival)
8136 ("r-matrixstats" ,r-matrixstats)
8137 ("r-preprocesscore" ,r-preprocesscore)))
8138 (home-page
8139 "http://www.genetics.ucla.edu/labs/horvath/CoexpressionNetwork/Rpackages/WGCNA/")
8140 (synopsis "Weighted correlation network analysis")
8141 (description
8142 "This package provides functions necessary to perform Weighted
8143 Correlation Network Analysis on high-dimensional data. It includes functions
8144 for rudimentary data cleaning, construction and summarization of correlation
8145 networks, module identification and functions for relating both variables and
8146 modules to sample traits. It also includes a number of utility functions for
8147 data manipulation and visualization.")
8148 (license license:gpl2+)))
8149
8150 (define-public r-chipkernels
8151 (let ((commit "c9cfcacb626b1221094fb3490ea7bac0fd625372")
8152 (revision "1"))
8153 (package
8154 (name "r-chipkernels")
8155 (version (string-append "1.1-" revision "." (string-take commit 9)))
8156 (source
8157 (origin
8158 (method git-fetch)
8159 (uri (git-reference
8160 (url "https://github.com/ManuSetty/ChIPKernels.git")
8161 (commit commit)))
8162 (file-name (string-append name "-" version))
8163 (sha256
8164 (base32
8165 "14bj5qhjm1hsm9ay561nfbqi9wxsa7y487df2idsaaf6z10nw4v0"))))
8166 (build-system r-build-system)
8167 (propagated-inputs
8168 `(("r-iranges" ,r-iranges)
8169 ("r-xvector" ,r-xvector)
8170 ("r-biostrings" ,r-biostrings)
8171 ("r-bsgenome" ,r-bsgenome)
8172 ("r-gtools" ,r-gtools)
8173 ("r-genomicranges" ,r-genomicranges)
8174 ("r-sfsmisc" ,r-sfsmisc)
8175 ("r-kernlab" ,r-kernlab)
8176 ("r-s4vectors" ,r-s4vectors)
8177 ("r-biocgenerics" ,r-biocgenerics)))
8178 (home-page "https://github.com/ManuSetty/ChIPKernels")
8179 (synopsis "Build string kernels for DNA Sequence analysis")
8180 (description "ChIPKernels is an R package for building different string
8181 kernels used for DNA Sequence analysis. A dictionary of the desired kernel
8182 must be built and this dictionary can be used for determining kernels for DNA
8183 Sequences.")
8184 (license license:gpl2+))))
8185
8186 (define-public r-seqgl
8187 (package
8188 (name "r-seqgl")
8189 (version "1.1.4")
8190 (source
8191 (origin
8192 (method url-fetch)
8193 (uri (string-append "https://github.com/ManuSetty/SeqGL/"
8194 "archive/" version ".tar.gz"))
8195 (file-name (string-append name "-" version ".tar.gz"))
8196 (sha256
8197 (base32
8198 "0pnk1p3sci5yipyc8xnb6jbmydpl80fld927xgnbcv104hy8h8yh"))))
8199 (build-system r-build-system)
8200 (propagated-inputs
8201 `(("r-biostrings" ,r-biostrings)
8202 ("r-chipkernels" ,r-chipkernels)
8203 ("r-genomicranges" ,r-genomicranges)
8204 ("r-spams" ,r-spams)
8205 ("r-wgcna" ,r-wgcna)
8206 ("r-fastcluster" ,r-fastcluster)))
8207 (home-page "https://github.com/ManuSetty/SeqGL")
8208 (synopsis "Group lasso for Dnase/ChIP-seq data")
8209 (description "SeqGL is a group lasso based algorithm to extract
8210 transcription factor sequence signals from ChIP, DNase and ATAC-seq profiles.
8211 This package presents a method which uses group lasso to discriminate between
8212 bound and non bound genomic regions to accurately identify transcription
8213 factors bound at the specific regions.")
8214 (license license:gpl2+)))
8215
8216 (define-public r-gkmsvm
8217 (package
8218 (name "r-gkmsvm")
8219 (version "0.71.0")
8220 (source
8221 (origin
8222 (method url-fetch)
8223 (uri (cran-uri "gkmSVM" version))
8224 (sha256
8225 (base32
8226 "1zpxgxmf2nd5j5wn00ps6kfxr8wxh7d1swr1rr4spq7sj5z5z0k0"))))
8227 (properties `((upstream-name . "gkmSVM")))
8228 (build-system r-build-system)
8229 (propagated-inputs
8230 `(("r-biocgenerics" ,r-biocgenerics)
8231 ("r-biostrings" ,r-biostrings)
8232 ("r-genomeinfodb" ,r-genomeinfodb)
8233 ("r-genomicranges" ,r-genomicranges)
8234 ("r-iranges" ,r-iranges)
8235 ("r-kernlab" ,r-kernlab)
8236 ("r-rcpp" ,r-rcpp)
8237 ("r-rocr" ,r-rocr)
8238 ("r-rtracklayer" ,r-rtracklayer)
8239 ("r-s4vectors" ,r-s4vectors)
8240 ("r-seqinr" ,r-seqinr)))
8241 (home-page "http://cran.r-project.org/web/packages/gkmSVM")
8242 (synopsis "Gapped-kmer support vector machine")
8243 (description
8244 "This R package provides tools for training gapped-kmer SVM classifiers
8245 for DNA and protein sequences. This package supports several sequence
8246 kernels, including: gkmSVM, kmer-SVM, mismatch kernel and wildcard kernel.")
8247 (license license:gpl2+)))
8248
8249 (define-public r-tximport
8250 (package
8251 (name "r-tximport")
8252 (version "1.4.0")
8253 (source (origin
8254 (method url-fetch)
8255 (uri (bioconductor-uri "tximport" version))
8256 (sha256
8257 (base32
8258 "1mklb02bj4gnbjlmb7vv6k4lr3w9fp3pzli9rddbrwd0y5n8fcpx"))))
8259 (build-system r-build-system)
8260 (home-page "http://bioconductor.org/packages/tximport")
8261 (synopsis "Import and summarize transcript-level estimates for gene-level analysis")
8262 (description
8263 "This package provides tools to import transcript-level abundance,
8264 estimated counts and transcript lengths, and to summarize them into matrices
8265 for use with downstream gene-level analysis packages. Average transcript
8266 length, weighted by sample-specific transcript abundance estimates, is
8267 provided as a matrix which can be used as an offset for different expression
8268 of gene-level counts.")
8269 (license license:gpl2+)))
8270
8271 (define-public r-rhdf5
8272 (package
8273 (name "r-rhdf5")
8274 (version "2.20.0")
8275 (source (origin
8276 (method url-fetch)
8277 (uri (bioconductor-uri "rhdf5" version))
8278 (sha256
8279 (base32
8280 "1p6f5i6l44phl772a38x9cav2sya37bkqbkjzdc4pmyfzkv1j6hy"))))
8281 (build-system r-build-system)
8282 (arguments
8283 `(#:phases
8284 (modify-phases %standard-phases
8285 (add-after 'unpack 'unpack-smallhdf5
8286 (lambda* (#:key outputs #:allow-other-keys)
8287 (system* "tar" "-xzvf"
8288 "src/hdf5source/hdf5small.tgz" "-C" "src/" )
8289 (substitute* "src/Makevars"
8290 (("^.*cd hdf5source &&.*$") "")
8291 (("^.*gunzip -dc hdf5small.tgz.*$") "")
8292 (("^.*rm -rf hdf5.*$") "")
8293 (("^.*mv hdf5source/hdf5 ..*$") ""))
8294 (substitute* "src/hdf5/configure"
8295 (("/bin/mv") "mv"))
8296 #t)))))
8297 (propagated-inputs
8298 `(("r-zlibbioc" ,r-zlibbioc)))
8299 (inputs
8300 `(("perl" ,perl)
8301 ("zlib" ,zlib)))
8302 (home-page "http://bioconductor.org/packages/rhdf5")
8303 (synopsis "HDF5 interface to R")
8304 (description
8305 "This R/Bioconductor package provides an interface between HDF5 and R.
8306 HDF5's main features are the ability to store and access very large and/or
8307 complex datasets and a wide variety of metadata on mass storage (disk) through
8308 a completely portable file format. The rhdf5 package is thus suited for the
8309 exchange of large and/or complex datasets between R and other software
8310 package, and for letting R applications work on datasets that are larger than
8311 the available RAM.")
8312 (license license:artistic2.0)))
8313
8314 (define-public r-annotationfilter
8315 (package
8316 (name "r-annotationfilter")
8317 (version "1.0.0")
8318 (source (origin
8319 (method url-fetch)
8320 (uri (bioconductor-uri "AnnotationFilter" version))
8321 (sha256
8322 (base32
8323 "0pxvswjzwibdfmrkdragxmzcl844z73pmkn82z92wahwa6gjfyi7"))))
8324 (properties
8325 `((upstream-name . "AnnotationFilter")))
8326 (build-system r-build-system)
8327 (propagated-inputs
8328 `(("r-genomicranges" ,r-genomicranges)
8329 ("r-lazyeval" ,r-lazyeval)))
8330 (home-page "https://github.com/Bioconductor/AnnotationFilter")
8331 (synopsis "Facilities for filtering Bioconductor annotation resources")
8332 (description
8333 "This package provides classes and other infrastructure to implement
8334 filters for manipulating Bioconductor annotation resources. The filters are
8335 used by @code{ensembldb}, @code{Organism.dplyr}, and other packages.")
8336 (license license:artistic2.0)))
8337
8338 (define-public emboss
8339 (package
8340 (name "emboss")
8341 (version "6.5.7")
8342 (source (origin
8343 (method url-fetch)
8344 (uri (string-append "ftp://emboss.open-bio.org/pub/EMBOSS/old/"
8345 (version-major+minor version) ".0/"
8346 "EMBOSS-" version ".tar.gz"))
8347 (sha256
8348 (base32
8349 "0vsmz96gc411yj2iyzdrsmg4l2n1nhgmp7vrgzlxx3xixv9xbf0q"))))
8350 (build-system gnu-build-system)
8351 (arguments
8352 `(#:configure-flags
8353 (list (string-append "--with-hpdf="
8354 (assoc-ref %build-inputs "libharu")))
8355 #:phases
8356 (modify-phases %standard-phases
8357 (add-after 'unpack 'fix-checks
8358 (lambda _
8359 ;; The PNGDRIVER tests check for the presence of libgd, libpng
8360 ;; and zlib, but assume that they are all found at the same
8361 ;; prefix.
8362 (substitute* "configure.in"
8363 (("CHECK_PNGDRIVER")
8364 "LIBS=\"$LIBS -lgd -lpng -lz -lm\"
8365 AC_DEFINE([PLD_png], [1], [Define to 1 if PNG support is available])
8366 AM_CONDITIONAL(AMPNG, true)"))
8367 #t))
8368 (add-after 'unpack 'disable-update-check
8369 (lambda _
8370 ;; At build time there is no connection to the Internet, so
8371 ;; looking for updates will not work.
8372 (substitute* "Makefile.am"
8373 (("\\$\\(bindir\\)/embossupdate") ""))
8374 #t))
8375 (add-before 'configure 'autogen
8376 (lambda _ (zero? (system* "autoreconf" "-vif")))))))
8377 (inputs
8378 `(("perl" ,perl)
8379 ("libpng" ,libpng)
8380 ("gd" ,gd)
8381 ("libx11" ,libx11)
8382 ("libharu" ,libharu)
8383 ("zlib" ,zlib)))
8384 (native-inputs
8385 `(("autoconf" ,autoconf)
8386 ("automake" ,automake)
8387 ("libtool" ,libtool)
8388 ("pkg-config" ,pkg-config)))
8389 (home-page "http://emboss.sourceforge.net")
8390 (synopsis "Molecular biology analysis suite")
8391 (description "EMBOSS is the \"European Molecular Biology Open Software
8392 Suite\". EMBOSS is an analysis package specially developed for the needs of
8393 the molecular biology (e.g. EMBnet) user community. The software
8394 automatically copes with data in a variety of formats and even allows
8395 transparent retrieval of sequence data from the web. It also provides a
8396 number of libraries for the development of software in the field of molecular
8397 biology. EMBOSS also integrates a range of currently available packages and
8398 tools for sequence analysis into a seamless whole.")
8399 (license license:gpl2+)))
8400
8401 (define-public bits
8402 (let ((revision "1")
8403 (commit "3cc4567896d9d6442923da944beb704750a08d2d"))
8404 (package
8405 (name "bits")
8406 ;; The version is 2.13.0 even though no release archives have been
8407 ;; published as yet.
8408 (version (string-append "2.13.0-" revision "." (string-take commit 9)))
8409 (source (origin
8410 (method git-fetch)
8411 (uri (git-reference
8412 (url "https://github.com/arq5x/bits.git")
8413 (commit commit)))
8414 (file-name (string-append name "-" version "-checkout"))
8415 (sha256
8416 (base32
8417 "17n2kffk4kmhivd8c98g2vr6y1s23vbg4sxlxs689wni66797hbs"))))
8418 (build-system gnu-build-system)
8419 (arguments
8420 `(#:tests? #f ;no tests included
8421 #:phases
8422 (modify-phases %standard-phases
8423 (delete 'configure)
8424 (add-after 'unpack 'remove-cuda
8425 (lambda _
8426 (substitute* "Makefile"
8427 ((".*_cuda") "")
8428 (("(bits_test_intersections) \\\\" _ match) match))
8429 #t))
8430 (replace 'install
8431 (lambda* (#:key outputs #:allow-other-keys)
8432 (copy-recursively
8433 "bin" (string-append (assoc-ref outputs "out") "/bin"))
8434 #t)))))
8435 (inputs
8436 `(("gsl" ,gsl)
8437 ("zlib" ,zlib)))
8438 (home-page "https://github.com/arq5x/bits")
8439 (synopsis "Implementation of binary interval search algorithm")
8440 (description "This package provides an implementation of the
8441 BITS (Binary Interval Search) algorithm, an approach to interval set
8442 intersection. It is especially suited for the comparison of diverse genomic
8443 datasets and the exploration of large datasets of genome
8444 intervals (e.g. genes, sequence alignments).")
8445 (license license:gpl2))))
8446
8447 (define-public piranha
8448 ;; There is no release tarball for the latest version. The latest commit is
8449 ;; older than one year at the time of this writing.
8450 (let ((revision "1")
8451 (commit "0466d364b71117d01e4471b74c514436cc281233"))
8452 (package
8453 (name "piranha")
8454 (version (string-append "1.2.1-" revision "." (string-take commit 9)))
8455 (source (origin
8456 (method git-fetch)
8457 (uri (git-reference
8458 (url "https://github.com/smithlabcode/piranha.git")
8459 (commit commit)))
8460 (sha256
8461 (base32
8462 "117dc0zf20c61jam69sk4abl57ah6yi6i7qra7d7y5zrbgk12q5n"))))
8463 (build-system gnu-build-system)
8464 (arguments
8465 `(#:test-target "test"
8466 #:phases
8467 (modify-phases %standard-phases
8468 (add-after 'unpack 'copy-smithlab-cpp
8469 (lambda* (#:key inputs #:allow-other-keys)
8470 (for-each (lambda (file)
8471 (install-file file "./src/smithlab_cpp/"))
8472 (find-files (assoc-ref inputs "smithlab-cpp")))
8473 #t))
8474 (add-after 'install 'install-to-store
8475 (lambda* (#:key outputs #:allow-other-keys)
8476 (let* ((out (assoc-ref outputs "out"))
8477 (bin (string-append out "/bin")))
8478 (for-each (lambda (file)
8479 (install-file file bin))
8480 (find-files "bin" ".*")))
8481 #t)))
8482 #:configure-flags
8483 (list (string-append "--with-bam_tools_headers="
8484 (assoc-ref %build-inputs "bamtools") "/include/bamtools")
8485 (string-append "--with-bam_tools_library="
8486 (assoc-ref %build-inputs "bamtools") "/lib/bamtools"))))
8487 (inputs
8488 `(("bamtools" ,bamtools)
8489 ("samtools" ,samtools-0.1)
8490 ("gsl" ,gsl)
8491 ("smithlab-cpp"
8492 ,(let ((commit "3723e2db438c51501d0423429ff396c3035ba46a"))
8493 (origin
8494 (method git-fetch)
8495 (uri (git-reference
8496 (url "https://github.com/smithlabcode/smithlab_cpp.git")
8497 (commit commit)))
8498 (file-name (string-append "smithlab_cpp-" commit "-checkout"))
8499 (sha256
8500 (base32
8501 "0l4gvbwslw5ngziskja41c00x1r06l3yidv7y0xw9djibhykzy0g")))))))
8502 (native-inputs
8503 `(("python" ,python-2)))
8504 (home-page "https://github.com/smithlabcode/piranha")
8505 (synopsis "Peak-caller for CLIP-seq and RIP-seq data")
8506 (description
8507 "Piranha is a peak-caller for genomic data produced by CLIP-seq and
8508 RIP-seq experiments. It takes input in BED or BAM format and identifies
8509 regions of statistically significant read enrichment. Additional covariates
8510 may optionally be provided to further inform the peak-calling process.")
8511 (license license:gpl3+))))
8512
8513 (define-public pepr
8514 (package
8515 (name "pepr")
8516 (version "1.0.9")
8517 (source (origin
8518 (method url-fetch)
8519 (uri (string-append "https://pypi.python.org/packages/source/P"
8520 "/PePr/PePr-" version ".tar.gz"))
8521 (sha256
8522 (base32
8523 "0qxjfdpl1b1y53nccws2d85f6k74zwmx8y8sd9rszcqhfayx6gdx"))))
8524 (build-system python-build-system)
8525 (arguments
8526 `(#:python ,python-2 ; python2 only
8527 #:tests? #f)) ; no tests included
8528 (propagated-inputs
8529 `(("python2-numpy" ,python2-numpy)
8530 ("python2-scipy" ,python2-scipy)
8531 ("python2-pysam" ,python2-pysam)))
8532 (home-page "https://github.com/shawnzhangyx/PePr")
8533 (synopsis "Peak-calling and prioritization pipeline for ChIP-Seq data")
8534 (description
8535 "PePr is a ChIP-Seq peak calling or differential binding analysis tool
8536 that is primarily designed for data with biological replicates. It uses a
8537 negative binomial distribution to model the read counts among the samples in
8538 the same group, and look for consistent differences between ChIP and control
8539 group or two ChIP groups run under different conditions.")
8540 (license license:gpl3+)))
8541
8542 (define-public filevercmp
8543 (let ((commit "1a9b779b93d0b244040274794d402106907b71b7"))
8544 (package
8545 (name "filevercmp")
8546 (version (string-append "0-1." (string-take commit 7)))
8547 (source (origin
8548 (method url-fetch)
8549 (uri (string-append "https://github.com/ekg/filevercmp/archive/"
8550 commit ".tar.gz"))
8551 (file-name (string-append name "-" version ".tar.gz"))
8552 (sha256
8553 (base32 "0yp5jswf5j2pqc6517x277s4s6h1ss99v57kxw9gy0jkfl3yh450"))))
8554 (build-system gnu-build-system)
8555 (arguments
8556 `(#:tests? #f ; There are no tests to run.
8557 #:phases
8558 (modify-phases %standard-phases
8559 (delete 'configure) ; There is no configure phase.
8560 (replace 'install
8561 (lambda* (#:key outputs #:allow-other-keys)
8562 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
8563 (install-file "filevercmp" bin)))))))
8564 (home-page "https://github.com/ekg/filevercmp")
8565 (synopsis "This program compares version strings")
8566 (description "This program compares version strings. It intends to be a
8567 replacement for strverscmp.")
8568 (license license:gpl3+))))
8569
8570 (define-public multiqc
8571 (package
8572 (name "multiqc")
8573 (version "0.9")
8574 (source
8575 (origin
8576 (method url-fetch)
8577 (uri (pypi-uri "multiqc" version))
8578 (sha256
8579 (base32
8580 "12gs1jw2jrxrij529rnl5kaqxfcqn15yzcsggxkfhdx634ml0cny"))
8581 (patches (search-patches "multiqc-fix-git-subprocess-error.patch"))))
8582 (build-system python-build-system)
8583 (arguments
8584 ;; Tests are to be introduced in the next version, see
8585 ;; https://github.com/ewels/MultiQC/issues/376
8586 `(#:tests? #f))
8587 (propagated-inputs
8588 `(("python-jinja2" ,python-jinja2)
8589 ("python-simplejson" ,python-simplejson)
8590 ("python-pyyaml" ,python-pyyaml)
8591 ("python-click" ,python-click)
8592 ("python-matplotlib" ,python-matplotlib)
8593 ("python-numpy" ,python-numpy)
8594 ;; MultQC checks for the presence of nose at runtime.
8595 ("python-nose" ,python-nose)))
8596 (home-page "http://multiqc.info")
8597 (synopsis "Aggregate bioinformatics analysis reports")
8598 (description
8599 "MultiQC is a tool to aggregate bioinformatics results across many
8600 samples into a single report. It contains modules for a large number of
8601 common bioinformatics tools.")
8602 (license license:gpl3)))
8603
8604 (define-public r-chipseq
8605 (package
8606 (name "r-chipseq")
8607 (version "1.26.0")
8608 (source
8609 (origin
8610 (method url-fetch)
8611 (uri (bioconductor-uri "chipseq" version))
8612 (sha256
8613 (base32
8614 "1hahyqiwb2ch8214xqpw0c3jpiwkmyf3dwz0xc87jx6cdnzipj3i"))))
8615 (build-system r-build-system)
8616 (propagated-inputs
8617 `(("r-biocgenerics" ,r-biocgenerics)
8618 ("r-genomicranges" ,r-genomicranges)
8619 ("r-iranges" ,r-iranges)
8620 ("r-s4vectors" ,r-s4vectors)
8621 ("r-shortread" ,r-shortread)))
8622 (home-page "http://bioconductor.org/packages/chipseq")
8623 (synopsis "Package for analyzing ChIPseq data")
8624 (description
8625 "This package provides tools for processing short read data from ChIPseq
8626 experiments.")
8627 (license license:artistic2.0)))
8628
8629 (define-public r-copyhelper
8630 (package
8631 (name "r-copyhelper")
8632 (version "1.6.0")
8633 (source
8634 (origin
8635 (method url-fetch)
8636 (uri (string-append "http://bioconductor.org/packages/release/"
8637 "data/experiment/src/contrib/CopyhelpeR_"
8638 version ".tar.gz"))
8639 (sha256
8640 (base32
8641 "0x7cyynjmxls9as2gg0iyp9x5fpalxmdjq914ss7i84i9zyk5bhq"))))
8642 (properties `((upstream-name . "CopyhelpeR")))
8643 (build-system r-build-system)
8644 (home-page "http://bioconductor.org/packages/CopyhelpeR/")
8645 (synopsis "Helper files for CopywriteR")
8646 (description
8647 "This package contains the helper files that are required to run the
8648 Bioconductor package CopywriteR. It contains pre-assembled 1kb bin GC-content
8649 and mappability files for the reference genomes hg18, hg19, hg38, mm9 and
8650 mm10. In addition, it contains a blacklist filter to remove regions that
8651 display copy number variation. Files are stored as GRanges objects from the
8652 GenomicRanges Bioconductor package.")
8653 (license license:gpl2)))
8654
8655 (define-public r-copywriter
8656 (package
8657 (name "r-copywriter")
8658 (version "2.8.1")
8659 (source
8660 (origin
8661 (method url-fetch)
8662 (uri (bioconductor-uri "CopywriteR" version))
8663 (sha256
8664 (base32
8665 "0xgqnq5v5213b3nzvlmjysjb7w1bc0iblqpmzbjqn7n0ib0qyhbm"))))
8666 (properties `((upstream-name . "CopywriteR")))
8667 (build-system r-build-system)
8668 (propagated-inputs
8669 `(("r-biocparallel" ,r-biocparallel)
8670 ("r-chipseq" ,r-chipseq)
8671 ("r-copyhelper" ,r-copyhelper)
8672 ("r-data-table" ,r-data-table)
8673 ("r-dnacopy" ,r-dnacopy)
8674 ("r-futile-logger" ,r-futile-logger)
8675 ("r-genomeinfodb" ,r-genomeinfodb)
8676 ("r-genomicalignments" ,r-genomicalignments)
8677 ("r-genomicranges" ,r-genomicranges)
8678 ("r-gtools" ,r-gtools)
8679 ("r-iranges" ,r-iranges)
8680 ("r-matrixstats" ,r-matrixstats)
8681 ("r-rsamtools" ,r-rsamtools)
8682 ("r-s4vectors" ,r-s4vectors)))
8683 (home-page "https://github.com/PeeperLab/CopywriteR")
8684 (synopsis "Copy number information from targeted sequencing")
8685 (description
8686 "CopywriteR extracts DNA copy number information from targeted sequencing
8687 by utilizing off-target reads. It allows for extracting uniformly distributed
8688 copy number information, can be used without reference, and can be applied to
8689 sequencing data obtained from various techniques including chromatin
8690 immunoprecipitation and target enrichment on small gene panels. Thereby,
8691 CopywriteR constitutes a widely applicable alternative to available copy
8692 number detection tools.")
8693 (license license:gpl2)))
8694
8695 (define-public r-methylkit
8696 (package
8697 (name "r-methylkit")
8698 (version "1.2.0")
8699 (source (origin
8700 (method url-fetch)
8701 (uri (bioconductor-uri "methylKit" version))
8702 (sha256
8703 (base32
8704 "02acdjf6jl0c1glymin84pdna4farn4vv0gb6107d9iqz3y3gkmm"))))
8705 (properties `((upstream-name . "methylKit")))
8706 (build-system r-build-system)
8707 (propagated-inputs
8708 `(("r-data-table" ,r-data-table)
8709 ("r-emdbook" ,r-emdbook)
8710 ("r-fastseg" ,r-fastseg)
8711 ("r-genomeinfodb" ,r-genomeinfodb)
8712 ("r-genomicranges" ,r-genomicranges)
8713 ("r-gtools" ,r-gtools)
8714 ("r-iranges" ,r-iranges)
8715 ("r-kernsmooth" ,r-kernsmooth)
8716 ("r-limma" ,r-limma)
8717 ("r-mclust" ,r-mclust)
8718 ("r-qvalue" ,r-qvalue)
8719 ("r-r-utils" ,r-r-utils)
8720 ("r-rcpp" ,r-rcpp)
8721 ("r-rhtslib" ,r-rhtslib)
8722 ("r-rsamtools" ,r-rsamtools)
8723 ("r-rtracklayer" ,r-rtracklayer)
8724 ("r-s4vectors" ,r-s4vectors)
8725 ("r-zlibbioc" ,r-zlibbioc)))
8726 (inputs
8727 `(("zlib" ,zlib)))
8728 (home-page "http://code.google.com/p/methylkit/")
8729 (synopsis
8730 "DNA methylation analysis from high-throughput bisulfite sequencing results")
8731 (description
8732 "MethylKit is an R package for DNA methylation analysis and annotation
8733 from high-throughput bisulfite sequencing. The package is designed to deal
8734 with sequencing data from @dfn{Reduced representation bisulfite
8735 sequencing} (RRBS) and its variants, but also target-capture methods and whole
8736 genome bisulfite sequencing. It also has functions to analyze base-pair
8737 resolution 5hmC data from experimental protocols such as oxBS-Seq and
8738 TAB-Seq.")
8739 (license license:artistic2.0)))
8740
8741 (define-public r-sva
8742 (package
8743 (name "r-sva")
8744 (version "3.24.4")
8745 (source
8746 (origin
8747 (method url-fetch)
8748 (uri (bioconductor-uri "sva" version))
8749 (sha256
8750 (base32
8751 "0wcway4ai9im81xnrzb1vij2iidq5pw24qhjfgacmhxvx3dzhbsc"))))
8752 (build-system r-build-system)
8753 (propagated-inputs
8754 `(("r-genefilter" ,r-genefilter)
8755 ("r-mgcv" ,r-mgcv)
8756 ("r-biocparallel" ,r-biocparallel)
8757 ("r-matrixstats" ,r-matrixstats)
8758 ("r-limma" ,r-limma)))
8759 (home-page "http://bioconductor.org/packages/sva")
8760 (synopsis "Surrogate variable analysis")
8761 (description
8762 "This package contains functions for removing batch effects and other
8763 unwanted variation in high-throughput experiment. It also contains functions
8764 for identifying and building surrogate variables for high-dimensional data
8765 sets. Surrogate variables are covariates constructed directly from
8766 high-dimensional data like gene expression/RNA sequencing/methylation/brain
8767 imaging data that can be used in subsequent analyses to adjust for unknown,
8768 unmodeled, or latent sources of noise.")
8769 (license license:artistic2.0)))
8770
8771 (define-public r-seqminer
8772 (package
8773 (name "r-seqminer")
8774 (version "6.0")
8775 (source
8776 (origin
8777 (method url-fetch)
8778 (uri (cran-uri "seqminer" version))
8779 (sha256
8780 (base32
8781 "057j1l6dip35l1aivilapl2zv9db677b3di2pb3sfgq2sxg0ps3l"))))
8782 (build-system r-build-system)
8783 (inputs
8784 `(("zlib" ,zlib)))
8785 (home-page "http://seqminer.genomic.codes")
8786 (synopsis "Read nucleotide sequence data (VCF, BCF, and METAL formats)")
8787 (description
8788 "This package provides tools to integrate nucleotide sequencing
8789 data (variant call format, e.g. VCF or BCF) or meta-analysis results in R.")
8790 ;; Any version of the GPL is acceptable
8791 (license (list license:gpl2+ license:gpl3+))))
8792
8793 (define-public r-raremetals2
8794 (package
8795 (name "r-raremetals2")
8796 (version "0.1")
8797 (source
8798 (origin
8799 (method url-fetch)
8800 (uri (string-append "http://genome.sph.umich.edu/w/images/"
8801 "b/b7/RareMETALS2_" version ".tar.gz"))
8802 (sha256
8803 (base32
8804 "0z5ljcgvnm06ja9lm85a3cniq7slxcy37aqqkxrdidr79an5fs4s"))))
8805 (properties `((upstream-name . "RareMETALS2")))
8806 (build-system r-build-system)
8807 (propagated-inputs
8808 `(("r-seqminer" ,r-seqminer)
8809 ("r-mvtnorm" ,r-mvtnorm)
8810 ("r-mass" ,r-mass)
8811 ("r-compquadform" ,r-compquadform)
8812 ("r-getopt" ,r-getopt)))
8813 (home-page "http://genome.sph.umich.edu/wiki/RareMETALS2")
8814 (synopsis "Analyze gene-level association tests for binary trait")
8815 (description
8816 "The R package rareMETALS2 is an extension of the R package rareMETALS.
8817 It was designed to meta-analyze gene-level association tests for binary trait.
8818 While rareMETALS offers a near-complete solution for meta-analysis of
8819 gene-level tests for quantitative trait, it does not offer the optimal
8820 solution for binary trait. The package rareMETALS2 offers improved features
8821 for analyzing gene-level association tests in meta-analyses for binary
8822 trait.")
8823 (license license:gpl3)))
8824
8825 (define-public r-maldiquant
8826 (package
8827 (name "r-maldiquant")
8828 (version "1.16.2")
8829 (source
8830 (origin
8831 (method url-fetch)
8832 (uri (cran-uri "MALDIquant" version))
8833 (sha256
8834 (base32
8835 "0z5srzsfgsgi4bssr4chls4ry6d18y2g9143znqmraylppwrrqzr"))))
8836 (properties `((upstream-name . "MALDIquant")))
8837 (build-system r-build-system)
8838 (home-page "http://cran.r-project.org/web/packages/MALDIquant")
8839 (synopsis "Quantitative analysis of mass spectrometry data")
8840 (description
8841 "This package provides a complete analysis pipeline for matrix-assisted
8842 laser desorption/ionization-time-of-flight (MALDI-TOF) and other
8843 two-dimensional mass spectrometry data. In addition to commonly used plotting
8844 and processing methods it includes distinctive features, namely baseline
8845 subtraction methods such as morphological filters (TopHat) or the
8846 statistics-sensitive non-linear iterative peak-clipping algorithm (SNIP), peak
8847 alignment using warping functions, handling of replicated measurements as well
8848 as allowing spectra with different resolutions.")
8849 (license license:gpl3+)))
8850
8851 (define-public r-protgenerics
8852 (package
8853 (name "r-protgenerics")
8854 (version "1.8.0")
8855 (source
8856 (origin
8857 (method url-fetch)
8858 (uri (bioconductor-uri "ProtGenerics" version))
8859 (sha256
8860 (base32
8861 "08idb3rvxn4fl7rd66jasyqz47cb76dbc3968r1g26jr2ci3w1pl"))))
8862 (properties `((upstream-name . "ProtGenerics")))
8863 (build-system r-build-system)
8864 (home-page "https://github.com/lgatto/ProtGenerics")
8865 (synopsis "S4 generic functions for proteomics infrastructure")
8866 (description
8867 "This package provides S4 generic functions needed by Bioconductor
8868 proteomics packages.")
8869 (license license:artistic2.0)))
8870
8871 (define-public r-mzr
8872 (package
8873 (name "r-mzr")
8874 (version "2.10.0")
8875 (source
8876 (origin
8877 (method url-fetch)
8878 (uri (bioconductor-uri "mzR" version))
8879 (sha256
8880 (base32
8881 "1zir46h320n2vbrky6q3m8l221f3wdjlfsnx4ak9xca5min24xm7"))))
8882 (properties `((upstream-name . "mzR")))
8883 (build-system r-build-system)
8884 (inputs
8885 `(("boost" ,boost)
8886 ("netcdf" ,netcdf)))
8887 (propagated-inputs
8888 `(("r-biobase" ,r-biobase)
8889 ("r-biocgenerics" ,r-biocgenerics)
8890 ("r-protgenerics" ,r-protgenerics)
8891 ("r-rcpp" ,r-rcpp)
8892 ("r-zlibbioc" ,r-zlibbioc)))
8893 (home-page "https://github.com/sneumann/mzR/")
8894 (synopsis "Parser for mass spectrometry data files")
8895 (description
8896 "The mzR package provides a unified API to the common file formats and
8897 parsers available for mass spectrometry data. It comes with a wrapper for the
8898 ISB random access parser for mass spectrometry mzXML, mzData and mzML files.
8899 The package contains the original code written by the ISB, and a subset of the
8900 proteowizard library for mzML and mzIdentML. The netCDF reading code has
8901 previously been used in XCMS.")
8902 (license license:artistic2.0)))
8903
8904 (define-public r-affyio
8905 (package
8906 (name "r-affyio")
8907 (version "1.46.0")
8908 (source
8909 (origin
8910 (method url-fetch)
8911 (uri (bioconductor-uri "affyio" version))
8912 (sha256
8913 (base32
8914 "13w6al9296q916w0w6ngbsk25b21ahla1b6n40fcqhbvhyfii6sj"))))
8915 (build-system r-build-system)
8916 (propagated-inputs
8917 `(("r-zlibbioc" ,r-zlibbioc)))
8918 (inputs
8919 `(("zlib" ,zlib)))
8920 (home-page "https://github.com/bmbolstad/affyio")
8921 (synopsis "Tools for parsing Affymetrix data files")
8922 (description
8923 "This package provides routines for parsing Affymetrix data files based
8924 upon file format information. The primary focus is on accessing the CEL and
8925 CDF file formats.")
8926 (license license:lgpl2.0+)))
8927
8928 (define-public r-affy
8929 (package
8930 (name "r-affy")
8931 (version "1.54.0")
8932 (source
8933 (origin
8934 (method url-fetch)
8935 (uri (bioconductor-uri "affy" version))
8936 (sha256
8937 (base32
8938 "0azwg2qxzgflr1rjvbdln5i5rbcr9gs36kqlacd9cwl1szb9ad3m"))))
8939 (build-system r-build-system)
8940 (propagated-inputs
8941 `(("r-affyio" ,r-affyio)
8942 ("r-biobase" ,r-biobase)
8943 ("r-biocgenerics" ,r-biocgenerics)
8944 ("r-biocinstaller" ,r-biocinstaller)
8945 ("r-preprocesscore" ,r-preprocesscore)
8946 ("r-zlibbioc" ,r-zlibbioc)))
8947 (home-page "http://bioconductor.org/packages/affy")
8948 (synopsis "Methods for affymetrix oligonucleotide arrays")
8949 (description
8950 "This package contains functions for exploratory oligonucleotide array
8951 analysis.")
8952 (license license:lgpl2.0+)))
8953
8954 (define-public r-vsn
8955 (package
8956 (name "r-vsn")
8957 (version "3.44.0")
8958 (source
8959 (origin
8960 (method url-fetch)
8961 (uri (bioconductor-uri "vsn" version))
8962 (sha256
8963 (base32
8964 "0qhg3a4sc62pfdxcpvmk831rk138xh4zx4f1s39jhxpqqhmr7jvk"))))
8965 (build-system r-build-system)
8966 (propagated-inputs
8967 `(("r-affy" ,r-affy)
8968 ("r-biobase" ,r-biobase)
8969 ("r-ggplot2" ,r-ggplot2)
8970 ("r-hexbin" ,r-hexbin)
8971 ("r-lattice" ,r-lattice)
8972 ("r-limma" ,r-limma)))
8973 (home-page "http://bioconductor.org/packages/release/bioc/html/vsn.html")
8974 (synopsis "Variance stabilization and calibration for microarray data")
8975 (description
8976 "The package implements a method for normalising microarray intensities,
8977 and works for single- and multiple-color arrays. It can also be used for data
8978 from other technologies, as long as they have similar format. The method uses
8979 a robust variant of the maximum-likelihood estimator for an
8980 additive-multiplicative error model and affine calibration. The model
8981 incorporates data calibration step (a.k.a. normalization), a model for the
8982 dependence of the variance on the mean intensity and a variance stabilizing
8983 data transformation. Differences between transformed intensities are
8984 analogous to \"normalized log-ratios\". However, in contrast to the latter,
8985 their variance is independent of the mean, and they are usually more sensitive
8986 and specific in detecting differential transcription.")
8987 (license license:artistic2.0)))
8988
8989 (define-public r-mzid
8990 (package
8991 (name "r-mzid")
8992 (version "1.14.0")
8993 (source
8994 (origin
8995 (method url-fetch)
8996 (uri (bioconductor-uri "mzID" version))
8997 (sha256
8998 (base32
8999 "11xnild02jz24vbsfy92lb7jlqqwnrswg66a7r4rsw8d2ibrbk33"))))
9000 (properties `((upstream-name . "mzID")))
9001 (build-system r-build-system)
9002 (propagated-inputs
9003 `(("r-doparallel" ,r-doparallel)
9004 ("r-foreach" ,r-foreach)
9005 ("r-iterators" ,r-iterators)
9006 ("r-plyr" ,r-plyr)
9007 ("r-protgenerics" ,r-protgenerics)
9008 ("r-rcpp" ,r-rcpp)
9009 ("r-xml" ,r-xml)))
9010 (home-page "http://bioconductor.org/packages/mzID")
9011 (synopsis "Parser for mzIdentML files")
9012 (description
9013 "This package provides a parser for mzIdentML files implemented using the
9014 XML package. The parser tries to be general and able to handle all types of
9015 mzIdentML files with the drawback of having less pretty output than a vendor
9016 specific parser.")
9017 (license license:gpl2+)))
9018
9019 (define-public r-pcamethods
9020 (package
9021 (name "r-pcamethods")
9022 (version "1.68.0")
9023 (source
9024 (origin
9025 (method url-fetch)
9026 (uri (bioconductor-uri "pcaMethods" version))
9027 (sha256
9028 (base32
9029 "0c4lphqyzj577ws4s172391cgv00s5nhy152zp18k2k4diyhq6n0"))))
9030 (properties `((upstream-name . "pcaMethods")))
9031 (build-system r-build-system)
9032 (propagated-inputs
9033 `(("r-biobase" ,r-biobase)
9034 ("r-biocgenerics" ,r-biocgenerics)
9035 ("r-mass" ,r-mass)
9036 ("r-rcpp" ,r-rcpp)))
9037 (home-page "https://github.com/hredestig/pcamethods")
9038 (synopsis "Collection of PCA methods")
9039 (description
9040 "This package provides Bayesian PCA, Probabilistic PCA, Nipals PCA,
9041 Inverse Non-Linear PCA and the conventional SVD PCA. A cluster based method
9042 for missing value estimation is included for comparison. BPCA, PPCA and
9043 NipalsPCA may be used to perform PCA on incomplete data as well as for
9044 accurate missing value estimation. A set of methods for printing and plotting
9045 the results is also provided. All PCA methods make use of the same data
9046 structure (pcaRes) to provide a common interface to the PCA results.")
9047 (license license:gpl3+)))
9048
9049 (define-public r-msnbase
9050 (package
9051 (name "r-msnbase")
9052 (version "2.2.0")
9053 (source
9054 (origin
9055 (method url-fetch)
9056 (uri (bioconductor-uri "MSnbase" version))
9057 (sha256
9058 (base32
9059 "1n9bbdlp8d8bx2mqby0c4yylz1yil42scbkxqgyrfr9s5sn6dqff"))))
9060 (properties `((upstream-name . "MSnbase")))
9061 (build-system r-build-system)
9062 (propagated-inputs
9063 `(("r-affy" ,r-affy)
9064 ("r-biobase" ,r-biobase)
9065 ("r-biocgenerics" ,r-biocgenerics)
9066 ("r-biocparallel" ,r-biocparallel)
9067 ("r-digest" ,r-digest)
9068 ("r-ggplot2" ,r-ggplot2)
9069 ("r-impute" ,r-impute)
9070 ("r-iranges" ,r-iranges)
9071 ("r-maldiquant" ,r-maldiquant)
9072 ("r-mzid" ,r-mzid)
9073 ("r-mzr" ,r-mzr)
9074 ("r-pcamethods" ,r-pcamethods)
9075 ("r-plyr" ,r-plyr)
9076 ("r-preprocesscore" ,r-preprocesscore)
9077 ("r-protgenerics" ,r-protgenerics)
9078 ("r-rcpp" ,r-rcpp)
9079 ("r-reshape2" ,r-reshape2)
9080 ("r-s4vectors" ,r-s4vectors)
9081 ("r-vsn" ,r-vsn)
9082 ("r-xml" ,r-xml)))
9083 (home-page "https://github.com/lgatto/MSnbase")
9084 (synopsis "Base functions and classes for MS-based proteomics")
9085 (description
9086 "This package provides basic plotting, data manipulation and processing
9087 of mass spectrometry based proteomics data.")
9088 (license license:artistic2.0)))
9089
9090 (define-public r-msnid
9091 (package
9092 (name "r-msnid")
9093 (version "1.10.0")
9094 (source
9095 (origin
9096 (method url-fetch)
9097 (uri (bioconductor-uri "MSnID" version))
9098 (sha256
9099 (base32
9100 "0pjwargi5lif8q53fd43ql67p3yk9w10jychafd9qgbaw5k3f68k"))))
9101 (properties `((upstream-name . "MSnID")))
9102 (build-system r-build-system)
9103 (propagated-inputs
9104 `(("r-biobase" ,r-biobase)
9105 ("r-data-table" ,r-data-table)
9106 ("r-doparallel" ,r-doparallel)
9107 ("r-dplyr" ,r-dplyr)
9108 ("r-foreach" ,r-foreach)
9109 ("r-iterators" ,r-iterators)
9110 ("r-msnbase" ,r-msnbase)
9111 ("r-mzid" ,r-mzid)
9112 ("r-mzr" ,r-mzr)
9113 ("r-protgenerics" ,r-protgenerics)
9114 ("r-r-cache" ,r-r-cache)
9115 ("r-rcpp" ,r-rcpp)
9116 ("r-reshape2" ,r-reshape2)))
9117 (home-page "http://bioconductor.org/packages/MSnID")
9118 (synopsis "Utilities for LC-MSn proteomics identifications")
9119 (description
9120 "This package extracts @dfn{tandem mass spectrometry} (MS/MS) ID data
9121 from mzIdentML (leveraging the mzID package) or text files. After collating
9122 the search results from multiple datasets it assesses their identification
9123 quality and optimize filtering criteria to achieve the maximum number of
9124 identifications while not exceeding a specified false discovery rate. It also
9125 contains a number of utilities to explore the MS/MS results and assess missed
9126 and irregular enzymatic cleavages, mass measurement accuracy, etc.")
9127 (license license:artistic2.0)))
9128
9129 (define-public r-seurat
9130 ;; Source releases are only made for new x.0 versions. All newer versions
9131 ;; are only released as pre-built binaries. At the time of this writing the
9132 ;; latest binary release is 1.4.0.12, which is equivalent to this commit.
9133 (let ((commit "fccb77d1452c35ee47e47ebf8e87bddb59f3b08d")
9134 (revision "1"))
9135 (package
9136 (name "r-seurat")
9137 (version (string-append "1.4.0.12-" revision "." (string-take commit 7)))
9138 (source (origin
9139 (method git-fetch)
9140 (uri (git-reference
9141 (url "https://github.com/satijalab/seurat")
9142 (commit commit)))
9143 (file-name (string-append name "-" version "-checkout"))
9144 (sha256
9145 (base32
9146 "101wq3aqrdmbfi3lqmq4iivk9iwbf10d4z216ss25hf7n9091cyl"))
9147 ;; Delete pre-built jar.
9148 (snippet
9149 '(begin (delete-file "inst/java/ModularityOptimizer.jar")
9150 #t))))
9151 (build-system r-build-system)
9152 (arguments
9153 `(#:phases
9154 (modify-phases %standard-phases
9155 (add-after 'unpack 'build-jar
9156 (lambda* (#:key inputs #:allow-other-keys)
9157 (let ((classesdir "tmp-classes"))
9158 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
9159 (mkdir classesdir)
9160 (and (zero? (apply system* `("javac" "-d" ,classesdir
9161 ,@(find-files "java" "\\.java$"))))
9162 (zero? (system* "jar"
9163 "-cf" "inst/java/ModularityOptimizer.jar"
9164 "-C" classesdir ".")))))))))
9165 (native-inputs
9166 `(("jdk" ,icedtea "jdk")))
9167 (propagated-inputs
9168 `(("r-ape" ,r-ape)
9169 ("r-caret" ,r-caret)
9170 ("r-cowplot" ,r-cowplot)
9171 ("r-dplyr" ,r-dplyr)
9172 ("r-fastica" ,r-fastica)
9173 ("r-fnn" ,r-fnn)
9174 ("r-fpc" ,r-fpc)
9175 ("r-gdata" ,r-gdata)
9176 ("r-ggplot2" ,r-ggplot2)
9177 ("r-gplots" ,r-gplots)
9178 ("r-gridextra" ,r-gridextra)
9179 ("r-igraph" ,r-igraph)
9180 ("r-irlba" ,r-irlba)
9181 ("r-lars" ,r-lars)
9182 ("r-mixtools" ,r-mixtools)
9183 ("r-pbapply" ,r-pbapply)
9184 ("r-plyr" ,r-plyr)
9185 ("r-ranger" ,r-ranger)
9186 ("r-rcolorbrewer" ,r-rcolorbrewer)
9187 ("r-rcpp" ,r-rcpp)
9188 ("r-rcppeigen" ,r-rcppeigen)
9189 ("r-rcppprogress" ,r-rcppprogress)
9190 ("r-reshape2" ,r-reshape2)
9191 ("r-rocr" ,r-rocr)
9192 ("r-rtsne" ,r-rtsne)
9193 ("r-stringr" ,r-stringr)
9194 ("r-tclust" ,r-tclust)
9195 ("r-tsne" ,r-tsne)
9196 ("r-vgam" ,r-vgam)))
9197 (home-page "http://www.satijalab.org/seurat")
9198 (synopsis "Seurat is an R toolkit for single cell genomics")
9199 (description
9200 "This package is an R package designed for QC, analysis, and
9201 exploration of single cell RNA-seq data. It easily enables widely-used
9202 analytical techniques, including the identification of highly variable genes,
9203 dimensionality reduction; PCA, ICA, t-SNE, standard unsupervised clustering
9204 algorithms; density clustering, hierarchical clustering, k-means, and the
9205 discovery of differentially expressed genes and markers.")
9206 (license license:gpl3))))
9207
9208 (define-public r-aroma-light
9209 (package
9210 (name "r-aroma-light")
9211 (version "3.6.0")
9212 (source
9213 (origin
9214 (method url-fetch)
9215 (uri (bioconductor-uri "aroma.light" version))
9216 (sha256
9217 (base32
9218 "10snykmmx36qaymyf5s1n1km8hsscyzpykcpf0mzsrcv8ml9rp8a"))))
9219 (properties `((upstream-name . "aroma.light")))
9220 (build-system r-build-system)
9221 (propagated-inputs
9222 `(("r-matrixstats" ,r-matrixstats)
9223 ("r-r-methodss3" ,r-r-methodss3)
9224 ("r-r-oo" ,r-r-oo)
9225 ("r-r-utils" ,r-r-utils)))
9226 (home-page "https://github.com/HenrikBengtsson/aroma.light")
9227 (synopsis "Methods for normalization and visualization of microarray data")
9228 (description
9229 "This package provides methods for microarray analysis that take basic
9230 data types such as matrices and lists of vectors. These methods can be used
9231 standalone, be utilized in other packages, or be wrapped up in higher-level
9232 classes.")
9233 (license license:gpl2+)))
9234
9235 (define-public r-deseq
9236 (package
9237 (name "r-deseq")
9238 (version "1.28.0")
9239 (source
9240 (origin
9241 (method url-fetch)
9242 (uri (bioconductor-uri "DESeq" version))
9243 (sha256
9244 (base32
9245 "0j3dgcxd64m9qknmlcbdzvg4xhp981xd6nbwsvnqjfn6yypslgyw"))))
9246 (properties `((upstream-name . "DESeq")))
9247 (build-system r-build-system)
9248 (propagated-inputs
9249 `(("r-biobase" ,r-biobase)
9250 ("r-biocgenerics" ,r-biocgenerics)
9251 ("r-genefilter" ,r-genefilter)
9252 ("r-geneplotter" ,r-geneplotter)
9253 ("r-lattice" ,r-lattice)
9254 ("r-locfit" ,r-locfit)
9255 ("r-mass" ,r-mass)
9256 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9257 (home-page "http://www-huber.embl.de/users/anders/DESeq")
9258 (synopsis "Differential gene expression analysis")
9259 (description
9260 "This package provides tools for estimating variance-mean dependence in
9261 count data from high-throughput genetic sequencing assays and for testing for
9262 differential expression based on a model using the negative binomial
9263 distribution.")
9264 (license license:gpl3+)))
9265
9266 (define-public r-edaseq
9267 (package
9268 (name "r-edaseq")
9269 (version "2.10.0")
9270 (source
9271 (origin
9272 (method url-fetch)
9273 (uri (bioconductor-uri "EDASeq" version))
9274 (sha256
9275 (base32
9276 "0f25dfc8hdii9fjm3bf89vy9jkxv23sa62fkcga5b4gkipwrvm9a"))))
9277 (properties `((upstream-name . "EDASeq")))
9278 (build-system r-build-system)
9279 (propagated-inputs
9280 `(("r-annotationdbi" ,r-annotationdbi)
9281 ("r-aroma-light" ,r-aroma-light)
9282 ("r-biobase" ,r-biobase)
9283 ("r-biocgenerics" ,r-biocgenerics)
9284 ("r-biomart" ,r-biomart)
9285 ("r-biostrings" ,r-biostrings)
9286 ("r-deseq" ,r-deseq)
9287 ("r-genomicfeatures" ,r-genomicfeatures)
9288 ("r-genomicranges" ,r-genomicranges)
9289 ("r-iranges" ,r-iranges)
9290 ("r-rsamtools" ,r-rsamtools)
9291 ("r-shortread" ,r-shortread)))
9292 (home-page "https://github.com/drisso/EDASeq")
9293 (synopsis "Exploratory data analysis and normalization for RNA-Seq")
9294 (description
9295 "This package provides support for numerical and graphical summaries of
9296 RNA-Seq genomic read data. Provided within-lane normalization procedures to
9297 adjust for GC-content effect (or other gene-level effects) on read counts:
9298 loess robust local regression, global-scaling, and full-quantile
9299 normalization. Between-lane normalization procedures to adjust for
9300 distributional differences between lanes (e.g., sequencing depth):
9301 global-scaling and full-quantile normalization.")
9302 (license license:artistic2.0)))
9303
9304 (define-public r-interactivedisplaybase
9305 (package
9306 (name "r-interactivedisplaybase")
9307 (version "1.14.0")
9308 (source
9309 (origin
9310 (method url-fetch)
9311 (uri (bioconductor-uri "interactiveDisplayBase" version))
9312 (sha256
9313 (base32
9314 "12f6ap4bl3h2iwwhg8i3r9a7yyd28d8i5lb3fj1vnfvjs762r7r7"))))
9315 (properties
9316 `((upstream-name . "interactiveDisplayBase")))
9317 (build-system r-build-system)
9318 (propagated-inputs
9319 `(("r-biocgenerics" ,r-biocgenerics)
9320 ("r-shiny" ,r-shiny)))
9321 (home-page "http://bioconductor.org/packages/interactiveDisplayBase")
9322 (synopsis "Base package for web displays of Bioconductor objects")
9323 (description
9324 "This package contains the basic methods needed to generate interactive
9325 Shiny-based display methods for Bioconductor objects.")
9326 (license license:artistic2.0)))
9327
9328 (define-public r-annotationhub
9329 (package
9330 (name "r-annotationhub")
9331 (version "2.8.2")
9332 (source
9333 (origin
9334 (method url-fetch)
9335 (uri (bioconductor-uri "AnnotationHub" version))
9336 (sha256
9337 (base32
9338 "1nh5si3j1nv37jcg4260582ayjg18851np47cskrm54prnvhwd9r"))))
9339 (properties `((upstream-name . "AnnotationHub")))
9340 (build-system r-build-system)
9341 (propagated-inputs
9342 `(("r-annotationdbi" ,r-annotationdbi)
9343 ("r-biocgenerics" ,r-biocgenerics)
9344 ("r-biocinstaller" ,r-biocinstaller)
9345 ("r-httr" ,r-httr)
9346 ("r-interactivedisplaybase" ,r-interactivedisplaybase)
9347 ("r-rsqlite" ,r-rsqlite)
9348 ("r-s4vectors" ,r-s4vectors)
9349 ("r-yaml" ,r-yaml)))
9350 (home-page "http://bioconductor.org/packages/AnnotationHub")
9351 (synopsis "Client to access AnnotationHub resources")
9352 (description
9353 "This package provides a client for the Bioconductor AnnotationHub web
9354 resource. The AnnotationHub web resource provides a central location where
9355 genomic files (e.g. VCF, bed, wig) and other resources from standard
9356 locations (e.g. UCSC, Ensembl) can be discovered. The resource includes
9357 metadata about each resource, e.g., a textual description, tags, and date of
9358 modification. The client creates and manages a local cache of files retrieved
9359 by the user, helping with quick and reproducible access.")
9360 (license license:artistic2.0)))
9361
9362 (define-public r-fastseg
9363 (package
9364 (name "r-fastseg")
9365 (version "1.22.0")
9366 (source
9367 (origin
9368 (method url-fetch)
9369 (uri (bioconductor-uri "fastseg" version))
9370 (sha256
9371 (base32
9372 "083wiz03q9mynwchs9frlpp6c84dncri5ncibx6h82p228cpja6h"))))
9373 (build-system r-build-system)
9374 (propagated-inputs
9375 `(("r-biobase" ,r-biobase)
9376 ("r-biocgenerics" ,r-biocgenerics)
9377 ("r-genomicranges" ,r-genomicranges)
9378 ("r-iranges" ,r-iranges)
9379 ("r-s4vectors" ,r-s4vectors)))
9380 (home-page "http://www.bioinf.jku.at/software/fastseg/index.html")
9381 (synopsis "Fast segmentation algorithm for genetic sequencing data")
9382 (description
9383 "Fastseg implements a very fast and efficient segmentation algorithm.
9384 It can segment data from DNA microarrays and data from next generation
9385 sequencing for example to detect copy number segments. Further it can segment
9386 data from RNA microarrays like tiling arrays to identify transcripts. Most
9387 generally, it can segment data given as a matrix or as a vector. Various data
9388 formats can be used as input to fastseg like expression set objects for
9389 microarrays or GRanges for sequencing data.")
9390 (license license:lgpl2.0+)))
9391
9392 (define-public r-qvalue
9393 (package
9394 (name "r-qvalue")
9395 (version "2.8.0")
9396 (source
9397 (origin
9398 (method url-fetch)
9399 (uri (bioconductor-uri "qvalue" version))
9400 (sha256
9401 (base32
9402 "1dxdwa767a9r8n61r272ypi09qblcdfpzzwkmri74y5mbp1r3y4i"))))
9403 (build-system r-build-system)
9404 (propagated-inputs
9405 `(("r-ggplot2" ,r-ggplot2)
9406 ("r-reshape2" ,r-reshape2)))
9407 (home-page "http://github.com/jdstorey/qvalue")
9408 (synopsis "Q-value estimation for false discovery rate control")
9409 (description
9410 "This package takes a list of p-values resulting from the simultaneous
9411 testing of many hypotheses and estimates their q-values and local @dfn{false
9412 discovery rate} (FDR) values. The q-value of a test measures the proportion
9413 of false positives incurred when that particular test is called significant.
9414 The local FDR measures the posterior probability the null hypothesis is true
9415 given the test's p-value. Various plots are automatically generated, allowing
9416 one to make sensible significance cut-offs. The software can be applied to
9417 problems in genomics, brain imaging, astrophysics, and data mining.")
9418 ;; Any version of the LGPL.
9419 (license license:lgpl3+)))
9420
9421 (define htslib-for-sambamba
9422 (let ((commit "2f3c3ea7b301f9b45737a793c0b2dcf0240e5ee5"))
9423 (package
9424 (inherit htslib)
9425 (name "htslib-for-sambamba")
9426 (version (string-append "1.3.1-1." (string-take commit 9)))
9427 (source
9428 (origin
9429 (method git-fetch)
9430 (uri (git-reference
9431 (url "https://github.com/lomereiter/htslib.git")
9432 (commit commit)))
9433 (file-name (string-append "htslib-" version "-checkout"))
9434 (sha256
9435 (base32
9436 "0g38g8s3npr0gjm9fahlbhiskyfws9l5i0x1ml3rakzj7az5l9c9"))))
9437 (arguments
9438 (substitute-keyword-arguments (package-arguments htslib)
9439 ((#:phases phases)
9440 `(modify-phases ,phases
9441 (add-before 'configure 'bootstrap
9442 (lambda _
9443 (zero? (system* "autoreconf" "-vif"))))))))
9444 (native-inputs
9445 `(("autoconf" ,autoconf)
9446 ("automake" ,automake)
9447 ,@(package-native-inputs htslib))))))
9448
9449 (define-public sambamba
9450 (package
9451 (name "sambamba")
9452 (version "0.6.5")
9453 (source
9454 (origin
9455 (method url-fetch)
9456 (uri (string-append "https://github.com/lomereiter/sambamba/"
9457 "archive/v" version ".tar.gz"))
9458 (file-name (string-append name "-" version ".tar.gz"))
9459 (sha256
9460 (base32
9461 "17076gijd65a3f07zns2gvbgahiz5lriwsa6dq353ss3jl85d8vy"))))
9462 (build-system gnu-build-system)
9463 (arguments
9464 `(#:tests? #f ; there is no test target
9465 #:make-flags
9466 '("D_COMPILER=ldc2"
9467 ;; Override "--compiler" flag only.
9468 "D_FLAGS=--compiler=ldc2 -IBioD -g -d"
9469 "sambamba-ldmd2-64")
9470 #:phases
9471 (modify-phases %standard-phases
9472 (delete 'configure)
9473 (add-after 'unpack 'place-biod
9474 (lambda* (#:key inputs #:allow-other-keys)
9475 (copy-recursively (assoc-ref inputs "biod") "BioD")
9476 #t))
9477 (add-after 'unpack 'unbundle-prerequisites
9478 (lambda _
9479 (substitute* "Makefile"
9480 ((" htslib-static lz4-static") ""))
9481 #t))
9482 (replace 'install
9483 (lambda* (#:key outputs #:allow-other-keys)
9484 (let* ((out (assoc-ref outputs "out"))
9485 (bin (string-append out "/bin")))
9486 (mkdir-p bin)
9487 (install-file "build/sambamba" bin)
9488 #t))))))
9489 (native-inputs
9490 `(("ldc" ,ldc)
9491 ("rdmd" ,rdmd)
9492 ("biod"
9493 ,(let ((commit "1248586b54af4bd4dfb28ebfebfc6bf012e7a587"))
9494 (origin
9495 (method git-fetch)
9496 (uri (git-reference
9497 (url "https://github.com/biod/BioD.git")
9498 (commit commit)))
9499 (file-name (string-append "biod-"
9500 (string-take commit 9)
9501 "-checkout"))
9502 (sha256
9503 (base32
9504 "1m8hi1n7x0ri4l6s9i0x6jg4z4v94xrfdzp7mbizdipfag0m17g3")))))))
9505 (inputs
9506 `(("lz4" ,lz4)
9507 ("htslib" ,htslib-for-sambamba)))
9508 (home-page "http://lomereiter.github.io/sambamba")
9509 (synopsis "Tools for working with SAM/BAM data")
9510 (description "Sambamba is a high performance modern robust and
9511 fast tool (and library), written in the D programming language, for
9512 working with SAM and BAM files. Current parallelised functionality is
9513 an important subset of samtools functionality, including view, index,
9514 sort, markdup, and depth.")
9515 (license license:gpl2+)))
9516
9517 (define-public ritornello
9518 (package
9519 (name "ritornello")
9520 (version "1.0.0")
9521 (source (origin
9522 (method url-fetch)
9523 (uri (string-append "https://github.com/KlugerLab/"
9524 "Ritornello/archive/v"
9525 version ".tar.gz"))
9526 (file-name (string-append name "-" version ".tar.gz"))
9527 (sha256
9528 (base32
9529 "02nik86gq9ljjriv6pamwlmqnfky3ads1fpklx6mc3hx6k40pg38"))))
9530 (build-system gnu-build-system)
9531 (arguments
9532 `(#:tests? #f ; there are no tests
9533 #:phases
9534 (modify-phases %standard-phases
9535 (add-after 'unpack 'patch-samtools-references
9536 (lambda* (#:key inputs #:allow-other-keys)
9537 (substitute* '("src/SamStream.h"
9538 "src/BufferedGenomeReader.h")
9539 (("<sam.h>") "<samtools/sam.h>"))
9540 #t))
9541 (delete 'configure)
9542 (replace 'install
9543 (lambda* (#:key inputs outputs #:allow-other-keys)
9544 (let* ((out (assoc-ref outputs "out"))
9545 (bin (string-append out "/bin/")))
9546 (mkdir-p bin)
9547 (install-file "bin/Ritornello" bin)
9548 #t))))))
9549 (inputs
9550 `(("samtools" ,samtools-0.1)
9551 ("fftw" ,fftw)
9552 ("boost" ,boost)
9553 ("zlib" ,zlib)))
9554 (home-page "https://github.com/KlugerLab/Ritornello")
9555 (synopsis "Control-free peak caller for ChIP-seq data")
9556 (description "Ritornello is a ChIP-seq peak calling algorithm based on
9557 signal processing that can accurately call binding events without the need to
9558 do a pair total DNA input or IgG control sample. It has been tested for use
9559 with narrow binding events such as transcription factor ChIP-seq.")
9560 (license license:gpl3+)))
9561
9562 (define-public trim-galore
9563 (package
9564 (name "trim-galore")
9565 (version "0.4.2")
9566 (source
9567 (origin
9568 (method url-fetch)
9569 (uri (string-append "http://www.bioinformatics.babraham.ac.uk/"
9570 "projects/trim_galore/trim_galore_v"
9571 version ".zip"))
9572 (sha256
9573 (base32
9574 "0b9qdxi4521gsrjvbhgky8g7kry9b5nx3byzaxkgxz7p4k8bn1mn"))))
9575 (build-system gnu-build-system)
9576 (arguments
9577 `(#:tests? #f ; no tests
9578 #:phases
9579 (modify-phases %standard-phases
9580 ;; The archive contains plain files.
9581 (replace 'unpack
9582 (lambda* (#:key source #:allow-other-keys)
9583 (zero? (system* "unzip" source))))
9584 (delete 'configure)
9585 (delete 'build)
9586 (add-after 'unpack 'hardcode-tool-references
9587 (lambda* (#:key inputs #:allow-other-keys)
9588 (substitute* "trim_galore"
9589 (("\\$path_to_cutadapt = 'cutadapt'")
9590 (string-append "$path_to_cutadapt = '"
9591 (assoc-ref inputs "cutadapt")
9592 "/bin/cutadapt'"))
9593 (("\\| gzip")
9594 (string-append "| "
9595 (assoc-ref inputs "gzip")
9596 "/bin/gzip"))
9597 (("\"gunzip")
9598 (string-append "\""
9599 (assoc-ref inputs "gzip")
9600 "/bin/gunzip")))
9601 #t))
9602 (replace 'install
9603 (lambda* (#:key outputs #:allow-other-keys)
9604 (let ((bin (string-append (assoc-ref outputs "out")
9605 "/bin")))
9606 (mkdir-p bin)
9607 (install-file "trim_galore" bin)
9608 #t))))))
9609 (inputs
9610 `(("gzip" ,gzip)
9611 ("perl" ,perl)
9612 ("cutadapt" ,cutadapt)))
9613 (native-inputs
9614 `(("unzip" ,unzip)))
9615 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/trim_galore/")
9616 (synopsis "Wrapper around Cutadapt and FastQC")
9617 (description "Trim Galore! is a wrapper script to automate quality and
9618 adapter trimming as well as quality control, with some added functionality to
9619 remove biased methylation positions for RRBS sequence files.")
9620 (license license:gpl3+)))
9621
9622 (define-public gess
9623 (package
9624 (name "gess")
9625 (version "1.0")
9626 (source (origin
9627 (method url-fetch)
9628 (uri (string-append "http://compbio.uthscsa.edu/"
9629 "GESS_Web/files/"
9630 "gess-" version ".src.tar.gz"))
9631 (sha256
9632 (base32
9633 "0hyk403kxscclzfs24pvdgiv0wm03kjcziqdrp5w46cb049gz0d7"))))
9634 (build-system gnu-build-system)
9635 (arguments
9636 `(#:tests? #f ; no tests
9637 #:phases
9638 (modify-phases %standard-phases
9639 (delete 'configure)
9640 (delete 'build)
9641 (replace 'install
9642 (lambda* (#:key inputs outputs #:allow-other-keys)
9643 (let* ((python (assoc-ref inputs "python"))
9644 (out (assoc-ref outputs "out"))
9645 (bin (string-append out "/bin/"))
9646 (target (string-append
9647 out "/lib/python2.7/site-packages/gess/")))
9648 (mkdir-p target)
9649 (copy-recursively "." target)
9650 ;; Make GESS.py executable
9651 (chmod (string-append target "GESS.py") #o555)
9652 ;; Add Python shebang to the top and make Matplotlib
9653 ;; usable.
9654 (substitute* (string-append target "GESS.py")
9655 (("\"\"\"Description:" line)
9656 (string-append "#!" (which "python") "
9657 import matplotlib
9658 matplotlib.use('Agg')
9659 " line)))
9660 ;; Make sure GESS has all modules in its path
9661 (wrap-program (string-append target "GESS.py")
9662 `("PYTHONPATH" ":" prefix (,target ,(getenv "PYTHONPATH"))))
9663 (mkdir-p bin)
9664 (symlink (string-append target "GESS.py")
9665 (string-append bin "GESS.py"))
9666 #t))))))
9667 (inputs
9668 `(("python" ,python-2)
9669 ("python2-pysam" ,python2-pysam)
9670 ("python2-scipy" ,python2-scipy)
9671 ("python2-numpy" ,python2-numpy)
9672 ("python2-networkx" ,python2-networkx)
9673 ("python2-biopython" ,python2-biopython)))
9674 (home-page "http://compbio.uthscsa.edu/GESS_Web/")
9675 (synopsis "Detect exon-skipping events from raw RNA-seq data")
9676 (description
9677 "GESS is an implementation of a novel computational method to detect de
9678 novo exon-skipping events directly from raw RNA-seq data without the prior
9679 knowledge of gene annotation information. GESS stands for the graph-based
9680 exon-skipping scanner detection scheme.")
9681 (license license:bsd-3)))
9682
9683 (define-public phylip
9684 (package
9685 (name "phylip")
9686 (version "3.696")
9687 (source
9688 (origin
9689 (method url-fetch)
9690 (uri (string-append "http://evolution.gs.washington.edu/phylip/"
9691 "download/phylip-" version ".tar.gz"))
9692 (sha256
9693 (base32
9694 "01jar1rayhr2gba2pgbw49m56rc5z4p5wn3ds0m188hrlln4a2nd"))))
9695 (build-system gnu-build-system)
9696 (arguments
9697 `(#:tests? #f ; no check target
9698 #:make-flags (list "-f" "Makefile.unx" "install")
9699 #:parallel-build? #f ; not supported
9700 #:phases
9701 (modify-phases %standard-phases
9702 (add-after 'unpack 'enter-dir
9703 (lambda _ (chdir "src") #t))
9704 (delete 'configure)
9705 (replace 'install
9706 (lambda* (#:key inputs outputs #:allow-other-keys)
9707 (let ((target (string-append (assoc-ref outputs "out")
9708 "/bin")))
9709 (mkdir-p target)
9710 (for-each (lambda (file)
9711 (install-file file target))
9712 (find-files "../exe" ".*")))
9713 #t)))))
9714 (home-page "http://evolution.genetics.washington.edu/phylip/")
9715 (synopsis "Tools for inferring phylogenies")
9716 (description "PHYLIP (the PHYLogeny Inference Package) is a package of
9717 programs for inferring phylogenies (evolutionary trees).")
9718 (license license:bsd-2)))
9719
9720 (define-public imp
9721 (package
9722 (name "imp")
9723 (version "2.6.2")
9724 (source
9725 (origin
9726 (method url-fetch)
9727 (uri (string-append "https://integrativemodeling.org/"
9728 version "/download/imp-" version ".tar.gz"))
9729 (sha256
9730 (base32
9731 "0lxqx7vh79d771svr611dkilp6sn30qrbw8zvscbrm37v38d2j6h"))))
9732 (build-system cmake-build-system)
9733 (arguments
9734 `(;; FIXME: Some tests fail because they produce warnings, others fail
9735 ;; because the PYTHONPATH does not include the modeller's directory.
9736 #:tests? #f
9737 ;; Do not place libraries in an architecture-specific directory.
9738 #:configure-flags
9739 (list "-DCMAKE_INSTALL_LIBDIR=lib")))
9740 (inputs
9741 `(("boost" ,boost)
9742 ("gsl" ,gsl)
9743 ("swig" ,swig)
9744 ("hdf5" ,hdf5)
9745 ("fftw" ,fftw)
9746 ("python" ,python-2)))
9747 (propagated-inputs
9748 `(("python2-numpy" ,python2-numpy)
9749 ("python2-scipy" ,python2-scipy)
9750 ("python2-pandas" ,python2-pandas)
9751 ("python2-scikit-learn" ,python2-scikit-learn)
9752 ("python2-networkx" ,python2-networkx)))
9753 (home-page "https://integrativemodeling.org")
9754 (synopsis "Integrative modeling platform")
9755 (description "IMP's broad goal is to contribute to a comprehensive
9756 structural characterization of biomolecules ranging in size and complexity
9757 from small peptides to large macromolecular assemblies, by integrating data
9758 from diverse biochemical and biophysical experiments. IMP provides a C++ and
9759 Python toolbox for solving complex modeling problems, and a number of
9760 applications for tackling some common problems in a user-friendly way.")
9761 ;; IMP is largely available under the GNU Lesser GPL; see the file
9762 ;; COPYING.LGPL for the full text of this license. Some IMP modules are
9763 ;; available under the GNU GPL (see the file COPYING.GPL).
9764 (license (list license:lgpl2.1+
9765 license:gpl3+))))
9766
9767 (define-public tadbit
9768 (package
9769 (name "tadbit")
9770 (version "0.2")
9771 (source (origin
9772 (method url-fetch)
9773 (uri (string-append "https://github.com/3DGenomes/TADbit/"
9774 "archive/v" version ".tar.gz"))
9775 (file-name (string-append name "-" version ".tar.gz"))
9776 (sha256
9777 (base32
9778 "1cnfqrl4685zar4nnw94j94nhvl2h29jm448nadqi1h05z6fdk4f"))))
9779 (build-system python-build-system)
9780 (arguments
9781 `(;; Tests are included and must be run after installation, but
9782 ;; they are incomplete and thus cannot be run.
9783 #:tests? #f
9784 #:python ,python-2
9785 #:phases
9786 (modify-phases %standard-phases
9787 (add-after 'unpack 'fix-problems-with-setup.py
9788 (lambda* (#:key outputs #:allow-other-keys)
9789 ;; setup.py opens these files for writing
9790 (chmod "_pytadbit/_version.py" #o664)
9791 (chmod "README.rst" #o664)
9792
9793 ;; Don't attempt to install the bash completions to
9794 ;; the home directory.
9795 (rename-file "extras/.bash_completion"
9796 "extras/tadbit")
9797 (substitute* "setup.py"
9798 (("\\(path.expanduser\\('~'\\)")
9799 (string-append "(\""
9800 (assoc-ref outputs "out")
9801 "/etc/bash_completion.d\""))
9802 (("extras/\\.bash_completion")
9803 "extras/tadbit"))
9804 #t)))))
9805 (inputs
9806 ;; TODO: add Chimera for visualization
9807 `(("imp" ,imp)
9808 ("mcl" ,mcl)
9809 ("python2-scipy" ,python2-scipy)
9810 ("python2-numpy" ,python2-numpy)
9811 ("python2-matplotlib" ,python2-matplotlib)
9812 ("python2-pysam" ,python2-pysam)))
9813 (home-page "http://3dgenomes.github.io/TADbit/")
9814 (synopsis "Analyze, model, and explore 3C-based data")
9815 (description
9816 "TADbit is a complete Python library to deal with all steps to analyze,
9817 model, and explore 3C-based data. With TADbit the user can map FASTQ files to
9818 obtain raw interaction binned matrices (Hi-C like matrices), normalize and
9819 correct interaction matrices, identify and compare the so-called
9820 @dfn{Topologically Associating Domains} (TADs), build 3D models from the
9821 interaction matrices, and finally, extract structural properties from the
9822 models. TADbit is complemented by TADkit for visualizing 3D models.")
9823 (license license:gpl3+)))
9824
9825 (define-public kentutils
9826 (package
9827 (name "kentutils")
9828 ;; 302.1.0 is out, but the only difference is the inclusion of
9829 ;; pre-built binaries.
9830 (version "302.0.0")
9831 (source
9832 (origin
9833 (method url-fetch)
9834 (uri (string-append "https://github.com/ENCODE-DCC/kentUtils/"
9835 "archive/v" version ".tar.gz"))
9836 (file-name (string-append name "-" version ".tar.gz"))
9837 (sha256
9838 (base32
9839 "134aja3k1cj32kbk1nnw0q9gxjb2krr15q6sga8qldzvc0585rmm"))
9840 (modules '((guix build utils)
9841 (srfi srfi-26)
9842 (ice-9 ftw)))
9843 (snippet
9844 '(begin
9845 ;; Only the contents of the specified directories are free
9846 ;; for all uses, so we remove the rest. "hg/autoSql" and
9847 ;; "hg/autoXml" are nominally free, but they depend on a
9848 ;; library that is built from the sources in "hg/lib",
9849 ;; which is nonfree.
9850 (let ((free (list "." ".."
9851 "utils" "lib" "inc" "tagStorm"
9852 "parasol" "htslib"))
9853 (directory? (lambda (file)
9854 (eq? 'directory (stat:type (stat file))))))
9855 (for-each (lambda (file)
9856 (and (directory? file)
9857 (delete-file-recursively file)))
9858 (map (cut string-append "src/" <>)
9859 (scandir "src"
9860 (lambda (file)
9861 (not (member file free)))))))
9862 ;; Only make the utils target, not the userApps target,
9863 ;; because that requires libraries we won't build.
9864 (substitute* "Makefile"
9865 ((" userApps") " utils"))
9866 ;; Only build libraries that are free.
9867 (substitute* "src/makefile"
9868 (("DIRS =.*") "DIRS =\n")
9869 (("cd jkOwnLib.*") "")
9870 ((" hgLib") "")
9871 (("cd hg.*") ""))
9872 (substitute* "src/utils/makefile"
9873 ;; These tools depend on "jkhgap.a", which is part of the
9874 ;; nonfree "src/hg/lib" directory.
9875 (("raSqlQuery") "")
9876 (("pslLiftSubrangeBlat") "")
9877
9878 ;; Do not build UCSC tools, which may require nonfree
9879 ;; components.
9880 (("ALL_APPS =.*") "ALL_APPS = $(UTILS_APPLIST)\n"))
9881 #t))))
9882 (build-system gnu-build-system)
9883 (arguments
9884 `( ;; There is no global test target and the test target for
9885 ;; individual tools depends on input files that are not
9886 ;; included.
9887 #:tests? #f
9888 #:phases
9889 (modify-phases %standard-phases
9890 (add-after 'unpack 'fix-paths
9891 (lambda _
9892 (substitute* "Makefile"
9893 (("/bin/echo") (which "echo")))
9894 #t))
9895 (add-after 'unpack 'prepare-samtabix
9896 (lambda* (#:key inputs #:allow-other-keys)
9897 (copy-recursively (assoc-ref inputs "samtabix")
9898 "samtabix")
9899 #t))
9900 (delete 'configure)
9901 (replace 'install
9902 (lambda* (#:key outputs #:allow-other-keys)
9903 (let ((bin (string-append (assoc-ref outputs "out")
9904 "/bin")))
9905 (copy-recursively "bin" bin))
9906 #t)))))
9907 (native-inputs
9908 `(("samtabix"
9909 ,(origin
9910 (method git-fetch)
9911 (uri (git-reference
9912 (url "http://genome-source.cse.ucsc.edu/samtabix.git")
9913 (commit "10fd107909c1ac4d679299908be4262a012965ba")))
9914 (sha256
9915 (base32
9916 "0c1nj64l42v395sa84n7az43xiap4i6f9n9dfz4058aqiwkhkmma"))))))
9917 (inputs
9918 `(("zlib" ,zlib)
9919 ("tcsh" ,tcsh)
9920 ("perl" ,perl)
9921 ("libpng" ,libpng)
9922 ("mysql" ,mysql)
9923 ("openssl" ,openssl)))
9924 (home-page "http://genome.cse.ucsc.edu/index.html")
9925 (synopsis "Assorted bioinformatics utilities")
9926 (description "This package provides the kentUtils, a selection of
9927 bioinformatics utilities used in combination with the UCSC genome
9928 browser.")
9929 ;; Only a subset of the sources are released under a non-copyleft
9930 ;; free software license. All other sources are removed in a
9931 ;; snippet. See this bug report for an explanation of how the
9932 ;; license statements apply:
9933 ;; https://github.com/ENCODE-DCC/kentUtils/issues/12
9934 (license (license:non-copyleft
9935 "http://genome.ucsc.edu/license/"
9936 "The contents of this package are free for all uses."))))
9937
9938 (define-public f-seq
9939 (let ((commit "6ccded34cff38cf432deed8503648b4a66953f9b")
9940 (revision "1"))
9941 (package
9942 (name "f-seq")
9943 (version (string-append "1.1-" revision "." commit))
9944 (source (origin
9945 (method git-fetch)
9946 (uri (git-reference
9947 (url "https://github.com/aboyle/F-seq.git")
9948 (commit commit)))
9949 (file-name (string-append name "-" version))
9950 (sha256
9951 (base32
9952 "1nk33k0yajg2id4g59bc4szr58r2q6pdq42vgcw054m8ip9wv26h"))
9953 (modules '((guix build utils)))
9954 ;; Remove bundled Java library archives.
9955 (snippet
9956 '(begin
9957 (for-each delete-file (find-files "lib" ".*"))
9958 #t))))
9959 (build-system ant-build-system)
9960 (arguments
9961 `(#:tests? #f ; no tests included
9962 #:phases
9963 (modify-phases %standard-phases
9964 (replace 'install
9965 (lambda* (#:key outputs #:allow-other-keys)
9966 (let* ((target (assoc-ref outputs "out"))
9967 (doc (string-append target "/share/doc/f-seq/")))
9968 (mkdir-p target)
9969 (mkdir-p doc)
9970 (substitute* "bin/linux/fseq"
9971 (("java") (which "java")))
9972 (install-file "README.txt" doc)
9973 (install-file "bin/linux/fseq" (string-append target "/bin"))
9974 (install-file "build~/fseq.jar" (string-append target "/lib"))
9975 (copy-recursively "lib" (string-append target "/lib"))
9976 #t))))))
9977 (inputs
9978 `(("perl" ,perl)
9979 ("java-commons-cli" ,java-commons-cli)))
9980 (home-page "http://fureylab.web.unc.edu/software/fseq/")
9981 (synopsis "Feature density estimator for high-throughput sequence tags")
9982 (description
9983 "F-Seq is a software package that generates a continuous tag sequence
9984 density estimation allowing identification of biologically meaningful sites
9985 such as transcription factor binding sites (ChIP-seq) or regions of open
9986 chromatin (DNase-seq). Output can be displayed directly in the UCSC Genome
9987 Browser.")
9988 (license license:gpl3+))))
9989
9990 (define-public bismark
9991 (package
9992 (name "bismark")
9993 (version "0.16.3")
9994 (source
9995 (origin
9996 (method url-fetch)
9997 (uri (string-append "https://github.com/FelixKrueger/Bismark/"
9998 "archive/" version ".tar.gz"))
9999 (file-name (string-append name "-" version ".tar.gz"))
10000 (sha256
10001 (base32
10002 "1204i0pa02ll2jn5pnxypkclnskvv7a2nwh5nxhagmhxk9wfv9sq"))))
10003 (build-system perl-build-system)
10004 (arguments
10005 `(#:tests? #f ; there are no tests
10006 #:phases
10007 (modify-phases %standard-phases
10008 (delete 'configure)
10009 (delete 'build)
10010 (replace 'install
10011 (lambda* (#:key outputs #:allow-other-keys)
10012 (let ((bin (string-append (assoc-ref outputs "out")
10013 "/bin"))
10014 (docdir (string-append (assoc-ref outputs "out")
10015 "/share/doc/bismark"))
10016 (docs '("Bismark_User_Guide.pdf"
10017 "RELEASE_NOTES.txt"))
10018 (scripts '("bismark"
10019 "bismark_genome_preparation"
10020 "bismark_methylation_extractor"
10021 "bismark2bedGraph"
10022 "bismark2report"
10023 "coverage2cytosine"
10024 "deduplicate_bismark"
10025 "bismark_sitrep.tpl"
10026 "bam2nuc"
10027 "bismark2summary")))
10028 (mkdir-p docdir)
10029 (mkdir-p bin)
10030 (for-each (lambda (file) (install-file file bin))
10031 scripts)
10032 (for-each (lambda (file) (install-file file docdir))
10033 docs)
10034 #t))))))
10035 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/bismark/")
10036 (synopsis "Map bisulfite treated sequence reads and analyze methylation")
10037 (description "Bismark is a program to map bisulfite treated sequencing
10038 reads to a genome of interest and perform methylation calls in a single step.
10039 The output can be easily imported into a genome viewer, such as SeqMonk, and
10040 enables a researcher to analyse the methylation levels of their samples
10041 straight away. Its main features are:
10042
10043 @itemize
10044 @item Bisulfite mapping and methylation calling in one single step
10045 @item Supports single-end and paired-end read alignments
10046 @item Supports ungapped and gapped alignments
10047 @item Alignment seed length, number of mismatches etc are adjustable
10048 @item Output discriminates between cytosine methylation in CpG, CHG
10049 and CHH context
10050 @end itemize\n")
10051 (license license:gpl3+)))