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