gnu: metabat: Update to 2.11.3.
[jackhill/guix/guix.git] / gnu / packages / bioinformatics.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
3 ;;; Copyright © 2015, 2016, 2017 Ben Woodcroft <donttrustben@gmail.com>
4 ;;; Copyright © 2015, 2016 Pjotr Prins <pjotr.guix@thebird.nl>
5 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
6 ;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
7 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
8 ;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
9 ;;; Copyright © 2016 Raoul Bonnal <ilpuccio.febo@gmail.com>
10 ;;;
11 ;;; This file is part of GNU Guix.
12 ;;;
13 ;;; GNU Guix is free software; you can redistribute it and/or modify it
14 ;;; under the terms of the GNU General Public License as published by
15 ;;; the Free Software Foundation; either version 3 of the License, or (at
16 ;;; your option) any later version.
17 ;;;
18 ;;; GNU Guix is distributed in the hope that it will be useful, but
19 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ;;; GNU General Public License for more details.
22 ;;;
23 ;;; You should have received a copy of the GNU General Public License
24 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
25
26 (define-module (gnu packages bioinformatics)
27 #:use-module ((guix licenses) #:prefix license:)
28 #:use-module (guix packages)
29 #:use-module (guix utils)
30 #:use-module (guix download)
31 #:use-module (guix git-download)
32 #:use-module (guix hg-download)
33 #:use-module (guix build-system ant)
34 #:use-module (guix build-system gnu)
35 #:use-module (guix build-system cmake)
36 #:use-module (guix build-system ocaml)
37 #:use-module (guix build-system perl)
38 #:use-module (guix build-system python)
39 #:use-module (guix build-system r)
40 #:use-module (guix build-system ruby)
41 #:use-module (guix build-system trivial)
42 #:use-module (gnu packages)
43 #:use-module (gnu packages autotools)
44 #:use-module (gnu packages algebra)
45 #:use-module (gnu packages base)
46 #:use-module (gnu packages bash)
47 #:use-module (gnu packages bison)
48 #:use-module (gnu packages boost)
49 #:use-module (gnu packages compression)
50 #:use-module (gnu packages cpio)
51 #:use-module (gnu packages cran)
52 #:use-module (gnu packages curl)
53 #:use-module (gnu packages documentation)
54 #:use-module (gnu packages databases)
55 #:use-module (gnu packages datastructures)
56 #:use-module (gnu packages file)
57 #:use-module (gnu packages flex)
58 #:use-module (gnu packages gawk)
59 #:use-module (gnu packages gcc)
60 #:use-module (gnu packages gd)
61 #:use-module (gnu packages gtk)
62 #:use-module (gnu packages glib)
63 #:use-module (gnu packages graph)
64 #:use-module (gnu packages groff)
65 #:use-module (gnu packages guile)
66 #:use-module (gnu packages haskell)
67 #:use-module (gnu packages image)
68 #:use-module (gnu packages imagemagick)
69 #:use-module (gnu packages java)
70 #:use-module (gnu packages ldc)
71 #:use-module (gnu packages linux)
72 #:use-module (gnu packages logging)
73 #:use-module (gnu packages machine-learning)
74 #:use-module (gnu packages man)
75 #:use-module (gnu packages maths)
76 #:use-module (gnu packages mpi)
77 #:use-module (gnu packages ncurses)
78 #:use-module (gnu packages ocaml)
79 #:use-module (gnu packages pcre)
80 #:use-module (gnu packages parallel)
81 #:use-module (gnu packages pdf)
82 #:use-module (gnu packages perl)
83 #:use-module (gnu packages pkg-config)
84 #:use-module (gnu packages popt)
85 #:use-module (gnu packages protobuf)
86 #:use-module (gnu packages python)
87 #:use-module (gnu packages readline)
88 #:use-module (gnu packages ruby)
89 #:use-module (gnu packages serialization)
90 #:use-module (gnu packages shells)
91 #:use-module (gnu packages statistics)
92 #:use-module (gnu packages swig)
93 #:use-module (gnu packages tbb)
94 #:use-module (gnu packages tex)
95 #:use-module (gnu packages texinfo)
96 #:use-module (gnu packages textutils)
97 #:use-module (gnu packages time)
98 #:use-module (gnu packages tls)
99 #:use-module (gnu packages vim)
100 #:use-module (gnu packages web)
101 #:use-module (gnu packages xml)
102 #:use-module (gnu packages xorg)
103 #:use-module (srfi srfi-1)
104 #:use-module (ice-9 match))
105
106 (define-public r-ape
107 (package
108 (name "r-ape")
109 (version "4.1")
110 (source
111 (origin
112 (method url-fetch)
113 (uri (cran-uri "ape" version))
114 (sha256
115 (base32
116 "0959fiiy11rzfzrzaknmgrx64bhszj02l0ycz79k5a6bmpfzanlk"))))
117 (build-system r-build-system)
118 (propagated-inputs
119 `(("r-lattice" ,r-lattice)
120 ("r-nlme" ,r-nlme)))
121 (home-page "http://ape-package.ird.fr/")
122 (synopsis "Analyses of phylogenetics and evolution")
123 (description
124 "This package provides functions for reading, writing, plotting, and
125 manipulating phylogenetic trees, analyses of comparative data in a
126 phylogenetic framework, ancestral character analyses, analyses of
127 diversification and macroevolution, computing distances from DNA sequences,
128 and several other tools.")
129 (license license:gpl2+)))
130
131 (define-public aragorn
132 (package
133 (name "aragorn")
134 (version "1.2.38")
135 (source (origin
136 (method url-fetch)
137 (uri (string-append
138 "http://mbio-serv2.mbioekol.lu.se/ARAGORN/Downloads/aragorn"
139 version ".tgz"))
140 (sha256
141 (base32
142 "09i1rg716smlbnixfm7q1ml2mfpaa2fpn3hwjg625ysmfwwy712b"))))
143 (build-system gnu-build-system)
144 (arguments
145 `(#:tests? #f ; there are no tests
146 #:phases
147 (modify-phases %standard-phases
148 (delete 'configure)
149 (replace 'build
150 (lambda _
151 (zero? (system* "gcc"
152 "-O3"
153 "-ffast-math"
154 "-finline-functions"
155 "-o"
156 "aragorn"
157 (string-append "aragorn" ,version ".c")))))
158 (replace 'install
159 (lambda* (#:key outputs #:allow-other-keys)
160 (let* ((out (assoc-ref outputs "out"))
161 (bin (string-append out "/bin"))
162 (man (string-append out "/share/man/man1")))
163 (mkdir-p bin)
164 (install-file "aragorn" bin)
165 (mkdir-p man)
166 (install-file "aragorn.1" man))
167 #t)))))
168 (home-page "http://mbio-serv2.mbioekol.lu.se/ARAGORN")
169 (synopsis "Detect tRNA, mtRNA and tmRNA genes in nucleotide sequences")
170 (description
171 "Aragorn identifies transfer RNA, mitochondrial RNA and
172 transfer-messenger RNA from nucleotide sequences, based on homology to known
173 tRNA consensus sequences and RNA structure. It also outputs the secondary
174 structure of the predicted RNA.")
175 (license license:gpl2)))
176
177 (define-public bamm
178 (package
179 (name "bamm")
180 (version "1.7.3")
181 (source (origin
182 (method url-fetch)
183 ;; BamM is not available on pypi.
184 (uri (string-append
185 "https://github.com/Ecogenomics/BamM/archive/"
186 version ".tar.gz"))
187 (file-name (string-append name "-" version ".tar.gz"))
188 (sha256
189 (base32
190 "1f35yxp4pc8aadsvbpg6r4kg2jh4fkjci0iby4iyljm6980sac0s"))
191 (modules '((guix build utils)))
192 (snippet
193 `(begin
194 ;; Delete bundled htslib.
195 (delete-file-recursively "c/htslib-1.3.1")
196 #t))))
197 (build-system python-build-system)
198 (arguments
199 `(#:python ,python-2 ; BamM is Python 2 only.
200 ;; Do not use bundled libhts. Do use the bundled libcfu because it has
201 ;; been modified from its original form.
202 #:configure-flags
203 (let ((htslib (assoc-ref %build-inputs "htslib")))
204 (list "--with-libhts-lib" (string-append htslib "/lib")
205 "--with-libhts-inc" (string-append htslib "/include/htslib")))
206 #:phases
207 (modify-phases %standard-phases
208 (add-after 'unpack 'autogen
209 (lambda _
210 (with-directory-excursion "c"
211 (let ((sh (which "sh")))
212 ;; Use autogen so that 'configure' works.
213 (substitute* "autogen.sh" (("/bin/sh") sh))
214 (setenv "CONFIG_SHELL" sh)
215 (substitute* "configure" (("/bin/sh") sh))
216 (zero? (system* "./autogen.sh"))))))
217 (delete 'build)
218 ;; Run tests after installation so compilation only happens once.
219 (delete 'check)
220 (add-after 'install 'wrap-executable
221 (lambda* (#:key outputs #:allow-other-keys)
222 (let* ((out (assoc-ref outputs "out"))
223 (path (getenv "PATH")))
224 (wrap-program (string-append out "/bin/bamm")
225 `("PATH" ":" prefix (,path))))
226 #t))
227 (add-after 'wrap-executable 'post-install-check
228 (lambda* (#:key inputs outputs #:allow-other-keys)
229 (setenv "PATH"
230 (string-append (assoc-ref outputs "out")
231 "/bin:"
232 (getenv "PATH")))
233 (setenv "PYTHONPATH"
234 (string-append
235 (assoc-ref outputs "out")
236 "/lib/python"
237 (string-take (string-take-right
238 (assoc-ref inputs "python") 5) 3)
239 "/site-packages:"
240 (getenv "PYTHONPATH")))
241 ;; There are 2 errors printed, but they are safe to ignore:
242 ;; 1) [E::hts_open_format] fail to open file ...
243 ;; 2) samtools view: failed to open ...
244 (zero? (system* "nosetests")))))))
245 (native-inputs
246 `(("autoconf" ,autoconf)
247 ("automake" ,automake)
248 ("libtool" ,libtool)
249 ("zlib" ,zlib)
250 ("python-nose" ,python2-nose)
251 ("python-pysam" ,python2-pysam)))
252 (inputs
253 `(("htslib" ,htslib-1.3) ; At least one test fails on htslib-1.4+.
254 ("samtools" ,samtools)
255 ("bwa" ,bwa)
256 ("grep" ,grep)
257 ("sed" ,sed)
258 ("coreutils" ,coreutils)))
259 (propagated-inputs
260 `(("python-numpy" ,python2-numpy)))
261 (home-page "http://ecogenomics.github.io/BamM/")
262 (synopsis "Metagenomics-focused BAM file manipulator")
263 (description
264 "BamM is a C library, wrapped in python, to efficiently generate and
265 parse BAM files, specifically for the analysis of metagenomic data. For
266 instance, it implements several methods to assess contig-wise read coverage.")
267 (license license:lgpl3+)))
268
269 (define-public bamtools
270 (package
271 (name "bamtools")
272 (version "2.4.1")
273 (source (origin
274 (method url-fetch)
275 (uri (string-append
276 "https://github.com/pezmaster31/bamtools/archive/v"
277 version ".tar.gz"))
278 (file-name (string-append name "-" version ".tar.gz"))
279 (sha256
280 (base32
281 "0jr024kcrhjb82cm69i7p5fcg5375zlc1h3qh2n1v368hcd0qflk"))))
282 (build-system cmake-build-system)
283 (arguments
284 `(#:tests? #f ;no "check" target
285 #:phases
286 (modify-phases %standard-phases
287 (add-before
288 'configure 'set-ldflags
289 (lambda* (#:key outputs #:allow-other-keys)
290 (setenv "LDFLAGS"
291 (string-append
292 "-Wl,-rpath="
293 (assoc-ref outputs "out") "/lib/bamtools")))))))
294 (inputs `(("zlib" ,zlib)))
295 (home-page "https://github.com/pezmaster31/bamtools")
296 (synopsis "C++ API and command-line toolkit for working with BAM data")
297 (description
298 "BamTools provides both a C++ API and a command-line toolkit for handling
299 BAM files.")
300 (license license:expat)))
301
302 (define-public bcftools
303 (package
304 (name "bcftools")
305 (version "1.5")
306 (source (origin
307 (method url-fetch)
308 (uri (string-append
309 "https://github.com/samtools/bcftools/releases/download/"
310 version "/bcftools-" version ".tar.bz2"))
311 (sha256
312 (base32
313 "0093hkkvxmbwfaa7905s6185jymynvg42kq6sxv7fili11l5mxwz"))
314 (patches (search-patches "bcftools-regidx-unsigned-char.patch"))
315 (modules '((guix build utils)))
316 (snippet
317 ;; Delete bundled htslib.
318 '(delete-file-recursively "htslib-1.5"))))
319 (build-system gnu-build-system)
320 (arguments
321 `(#:test-target "test"
322 #:configure-flags (list "--with-htslib=system")
323 #:make-flags
324 (list
325 "USE_GPL=1"
326 "LIBS=-lgsl -lgslcblas"
327 (string-append "prefix=" (assoc-ref %outputs "out"))
328 (string-append "HTSDIR=" (assoc-ref %build-inputs "htslib") "/include")
329 (string-append "HTSLIB=" (assoc-ref %build-inputs "htslib") "/lib/libhts.so")
330 (string-append "BGZIP=" (assoc-ref %build-inputs "htslib") "/bin/bgzip")
331 (string-append "TABIX=" (assoc-ref %build-inputs "htslib") "/bin/tabix")
332 (string-append "PACKAGE_VERSION=" ,version))
333 #:phases
334 (modify-phases %standard-phases
335 (add-before 'check 'patch-tests
336 (lambda _
337 (substitute* "test/test.pl"
338 (("/bin/bash") (which "bash")))
339 #t)))))
340 (native-inputs
341 `(("htslib" ,htslib)
342 ("perl" ,perl)))
343 (inputs
344 `(("gsl" ,gsl)
345 ("zlib" ,zlib)))
346 (home-page "https://samtools.github.io/bcftools/")
347 (synopsis "Utilities for variant calling and manipulating VCFs and BCFs")
348 (description
349 "BCFtools is a set of utilities that manipulate variant calls in the
350 Variant Call Format (VCF) and its binary counterpart BCF. All commands work
351 transparently with both VCFs and BCFs, both uncompressed and BGZF-compressed.")
352 ;; The sources are dual MIT/GPL, but becomes GPL-only when USE_GPL=1.
353 (license (list license:gpl3+ license:expat))))
354
355 (define-public bedops
356 (package
357 (name "bedops")
358 (version "2.4.14")
359 (source (origin
360 (method url-fetch)
361 (uri (string-append "https://github.com/bedops/bedops/archive/v"
362 version ".tar.gz"))
363 (file-name (string-append name "-" version ".tar.gz"))
364 (sha256
365 (base32
366 "1kqbac547wyqma81cyky9n7mkgikjpsfd3nnmcm6hpqwanqgh10v"))))
367 (build-system gnu-build-system)
368 (arguments
369 '(#:tests? #f
370 #:make-flags (list (string-append "BINDIR=" %output "/bin"))
371 #:phases
372 (alist-cons-after
373 'unpack 'unpack-tarballs
374 (lambda _
375 ;; FIXME: Bedops includes tarballs of minimally patched upstream
376 ;; libraries jansson, zlib, and bzip2. We cannot just use stock
377 ;; libraries because at least one of the libraries (zlib) is
378 ;; patched to add a C++ function definition (deflateInit2cpp).
379 ;; Until the Bedops developers offer a way to link against system
380 ;; libraries we have to build the in-tree copies of these three
381 ;; libraries.
382
383 ;; See upstream discussion:
384 ;; https://github.com/bedops/bedops/issues/124
385
386 ;; Unpack the tarballs to benefit from shebang patching.
387 (with-directory-excursion "third-party"
388 (and (zero? (system* "tar" "xvf" "jansson-2.6.tar.bz2"))
389 (zero? (system* "tar" "xvf" "zlib-1.2.7.tar.bz2"))
390 (zero? (system* "tar" "xvf" "bzip2-1.0.6.tar.bz2"))))
391 ;; Disable unpacking of tarballs in Makefile.
392 (substitute* "system.mk/Makefile.linux"
393 (("^\tbzcat .*") "\t@echo \"not unpacking\"\n")
394 (("\\./configure") "CONFIG_SHELL=bash ./configure"))
395 (substitute* "third-party/zlib-1.2.7/Makefile.in"
396 (("^SHELL=.*$") "SHELL=bash\n")))
397 (alist-delete 'configure %standard-phases))))
398 (home-page "https://github.com/bedops/bedops")
399 (synopsis "Tools for high-performance genomic feature operations")
400 (description
401 "BEDOPS is a suite of tools to address common questions raised in genomic
402 studies---mostly with regard to overlap and proximity relationships between
403 data sets. It aims to be scalable and flexible, facilitating the efficient
404 and accurate analysis and management of large-scale genomic data.
405
406 BEDOPS provides tools that perform highly efficient and scalable Boolean and
407 other set operations, statistical calculations, archiving, conversion and
408 other management of genomic data of arbitrary scale. Tasks can be easily
409 split by chromosome for distributing whole-genome analyses across a
410 computational cluster.")
411 (license license:gpl2+)))
412
413 (define-public bedtools
414 (package
415 (name "bedtools")
416 (version "2.26.0")
417 (source (origin
418 (method url-fetch)
419 (uri (string-append "https://github.com/arq5x/bedtools2/archive/v"
420 version ".tar.gz"))
421 (file-name (string-append name "-" version ".tar.gz"))
422 (sha256
423 (base32
424 "0xvri5hnp2iim1cx6mcd5d9f102p5ql41x69rd6106x1c17pinqm"))))
425 (build-system gnu-build-system)
426 (native-inputs `(("python" ,python-2)))
427 (inputs `(("samtools" ,samtools)
428 ("zlib" ,zlib)))
429 (arguments
430 '(#:test-target "test"
431 #:phases
432 (modify-phases %standard-phases
433 (delete 'configure)
434 (replace 'install
435 (lambda* (#:key outputs #:allow-other-keys)
436 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
437 (for-each (lambda (file)
438 (install-file file bin))
439 (find-files "bin" ".*")))
440 #t)))))
441 (home-page "https://github.com/arq5x/bedtools2")
442 (synopsis "Tools for genome analysis and arithmetic")
443 (description
444 "Collectively, the bedtools utilities are a swiss-army knife of tools for
445 a wide-range of genomics analysis tasks. The most widely-used tools enable
446 genome arithmetic: that is, set theory on the genome. For example, bedtools
447 allows one to intersect, merge, count, complement, and shuffle genomic
448 intervals from multiple files in widely-used genomic file formats such as BAM,
449 BED, GFF/GTF, VCF.")
450 (license license:gpl2)))
451
452 ;; Later releases of bedtools produce files with more columns than
453 ;; what Ribotaper expects.
454 (define-public bedtools-2.18
455 (package (inherit bedtools)
456 (name "bedtools")
457 (version "2.18.0")
458 (source (origin
459 (method url-fetch)
460 (uri (string-append "https://github.com/arq5x/bedtools2/"
461 "archive/v" version ".tar.gz"))
462 (file-name (string-append name "-" version ".tar.gz"))
463 (sha256
464 (base32
465 "05vrnr8yp7swfagshzpgqmzk1blnwnq8pq5pckzi1m26w98d63vf"))))))
466
467 (define-public ribotaper
468 (package
469 (name "ribotaper")
470 (version "1.3.1")
471 (source (origin
472 (method url-fetch)
473 (uri (string-append "https://ohlerlab.mdc-berlin.de/"
474 "files/RiboTaper/RiboTaper_Version_"
475 version ".tar.gz"))
476 (sha256
477 (base32
478 "0ykjbps1y3z3085q94npw8i9x5gldc6shy8vlc08v76zljsm07hv"))))
479 (build-system gnu-build-system)
480 (inputs
481 `(("bedtools" ,bedtools-2.18)
482 ("samtools" ,samtools-0.1)
483 ("r-minimal" ,r-minimal)
484 ("r-foreach" ,r-foreach)
485 ("r-xnomial" ,r-xnomial)
486 ("r-domc" ,r-domc)
487 ("r-multitaper" ,r-multitaper)
488 ("r-seqinr" ,r-seqinr)))
489 (home-page "https://ohlerlab.mdc-berlin.de/software/RiboTaper_126/")
490 (synopsis "Define translated ORFs using ribosome profiling data")
491 (description
492 "Ribotaper is a method for defining translated @dfn{open reading
493 frames} (ORFs) using ribosome profiling (ribo-seq) data. This package
494 provides the Ribotaper pipeline.")
495 (license license:gpl3+)))
496
497 (define-public ribodiff
498 (package
499 (name "ribodiff")
500 (version "0.2.2")
501 (source
502 (origin
503 (method url-fetch)
504 (uri (string-append "https://github.com/ratschlab/RiboDiff/"
505 "archive/v" version ".tar.gz"))
506 (file-name (string-append name "-" version ".tar.gz"))
507 (sha256
508 (base32
509 "0wpbwmfv05wdjxv7ikm664f7s7p7cqr8jnw99zrda0q67rl50aaj"))))
510 (build-system python-build-system)
511 (arguments
512 `(#:python ,python-2
513 #:phases
514 (modify-phases %standard-phases
515 ;; Generate an installable executable script wrapper.
516 (add-after 'unpack 'patch-setup.py
517 (lambda _
518 (substitute* "setup.py"
519 (("^(.*)packages=.*" line prefix)
520 (string-append line "\n"
521 prefix "scripts=['scripts/TE.py'],\n")))
522 #t)))))
523 (inputs
524 `(("python-numpy" ,python2-numpy)
525 ("python-matplotlib" ,python2-matplotlib)
526 ("python-scipy" ,python2-scipy)
527 ("python-statsmodels" ,python2-statsmodels)))
528 (native-inputs
529 `(("python-mock" ,python2-mock)
530 ("python-nose" ,python2-nose)))
531 (home-page "http://public.bmi.inf.ethz.ch/user/zhongy/RiboDiff/")
532 (synopsis "Detect translation efficiency changes from ribosome footprints")
533 (description "RiboDiff is a statistical tool that detects the protein
534 translational efficiency change from Ribo-Seq (ribosome footprinting) and
535 RNA-Seq data. It uses a generalized linear model to detect genes showing
536 difference in translational profile taking mRNA abundance into account. It
537 facilitates us to decipher the translational regulation that behave
538 independently with transcriptional regulation.")
539 (license license:gpl3+)))
540
541 (define-public bioawk
542 (package
543 (name "bioawk")
544 (version "1.0")
545 (source (origin
546 (method url-fetch)
547 (uri (string-append "https://github.com/lh3/bioawk/archive/v"
548 version ".tar.gz"))
549 (file-name (string-append name "-" version ".tar.gz"))
550 (sha256
551 (base32 "1daizxsk17ahi9n58fj8vpgwyhzrzh54bzqhanjanp88kgrz7gjw"))))
552 (build-system gnu-build-system)
553 (inputs
554 `(("zlib" ,zlib)))
555 (native-inputs
556 `(("bison" ,bison)))
557 (arguments
558 `(#:tests? #f ; There are no tests to run.
559 ;; Bison must generate files, before other targets can build.
560 #:parallel-build? #f
561 #:phases
562 (modify-phases %standard-phases
563 (delete 'configure) ; There is no configure phase.
564 (replace 'install
565 (lambda* (#:key outputs #:allow-other-keys)
566 (let* ((out (assoc-ref outputs "out"))
567 (bin (string-append out "/bin"))
568 (man (string-append out "/share/man/man1")))
569 (mkdir-p man)
570 (copy-file "awk.1" (string-append man "/bioawk.1"))
571 (install-file "bioawk" bin)))))))
572 (home-page "https://github.com/lh3/bioawk")
573 (synopsis "AWK with bioinformatics extensions")
574 (description "Bioawk is an extension to Brian Kernighan's awk, adding the
575 support of several common biological data formats, including optionally gzip'ed
576 BED, GFF, SAM, VCF, FASTA/Q and TAB-delimited formats with column names. It
577 also adds a few built-in functions and a command line option to use TAB as the
578 input/output delimiter. When the new functionality is not used, bioawk is
579 intended to behave exactly the same as the original BWK awk.")
580 (license license:x11)))
581
582 (define-public python2-pybedtools
583 (package
584 (name "python2-pybedtools")
585 (version "0.6.9")
586 (source (origin
587 (method url-fetch)
588 (uri (string-append
589 "https://pypi.python.org/packages/source/p/pybedtools/pybedtools-"
590 version ".tar.gz"))
591 (sha256
592 (base32
593 "1ldzdxw1p4y3g2ignmggsdypvqkcwqwzhdha4rbgpih048z5p4an"))))
594 (build-system python-build-system)
595 (arguments `(#:python ,python-2)) ; no Python 3 support
596 (inputs
597 `(("python-matplotlib" ,python2-matplotlib)))
598 (propagated-inputs
599 `(("bedtools" ,bedtools)
600 ("samtools" ,samtools)))
601 (native-inputs
602 `(("python-cython" ,python2-cython)
603 ("python-pyyaml" ,python2-pyyaml)
604 ("python-nose" ,python2-nose)))
605 (home-page "https://pythonhosted.org/pybedtools/")
606 (synopsis "Python wrapper for BEDtools programs")
607 (description
608 "pybedtools is a Python wrapper for Aaron Quinlan's BEDtools programs,
609 which are widely used for genomic interval manipulation or \"genome algebra\".
610 pybedtools extends BEDTools by offering feature-level manipulations from with
611 Python.")
612 (license license:gpl2+)))
613
614 (define-public python-biom-format
615 (package
616 (name "python-biom-format")
617 (version "2.1.6")
618 (source
619 (origin
620 (method url-fetch)
621 ;; Use GitHub as source because PyPI distribution does not contain
622 ;; test data: https://github.com/biocore/biom-format/issues/693
623 (uri (string-append "https://github.com/biocore/biom-format/archive/"
624 version ".tar.gz"))
625 (file-name (string-append name "-" version ".tar.gz"))
626 (sha256
627 (base32
628 "08cr7wpahk6zb31h4bs7jmzpvxcqv9s13xz40h6y2h656jvdvnpj"))))
629 (build-system python-build-system)
630 (propagated-inputs
631 `(("python-numpy" ,python-numpy)
632 ("python-scipy" ,python-scipy)
633 ("python-future" ,python-future)
634 ("python-click" ,python-click)
635 ("python-h5py" ,python-h5py)
636 ("python-pandas" ,python-pandas)))
637 (native-inputs
638 `(("python-nose" ,python-nose)))
639 (home-page "http://www.biom-format.org")
640 (synopsis "Biological Observation Matrix (BIOM) format utilities")
641 (description
642 "The BIOM file format is designed to be a general-use format for
643 representing counts of observations e.g. operational taxonomic units, KEGG
644 orthology groups or lipid types, in one or more biological samples
645 e.g. microbiome samples, genomes, metagenomes.")
646 (license license:bsd-3)
647 (properties `((python2-variant . ,(delay python2-biom-format))))))
648
649 (define-public python2-biom-format
650 (let ((base (package-with-python2 (strip-python2-variant python-biom-format))))
651 (package
652 (inherit base)
653 (arguments
654 `(#:phases
655 (modify-phases %standard-phases
656 ;; Do not require the unmaintained pyqi library.
657 (add-after 'unpack 'remove-pyqi
658 (lambda _
659 (substitute* "setup.py"
660 (("install_requires.append\\(\"pyqi\"\\)") "pass"))
661 #t)))
662 ,@(package-arguments base))))))
663
664 (define-public bioperl-minimal
665 (let* ((inputs `(("perl-module-build" ,perl-module-build)
666 ("perl-data-stag" ,perl-data-stag)
667 ("perl-libwww" ,perl-libwww)
668 ("perl-uri" ,perl-uri)))
669 (transitive-inputs
670 (map (compose package-name cadr)
671 (delete-duplicates
672 (concatenate
673 (map (compose package-transitive-target-inputs cadr) inputs))))))
674 (package
675 (name "bioperl-minimal")
676 (version "1.7.0")
677 (source
678 (origin
679 (method url-fetch)
680 (uri (string-append "https://github.com/bioperl/bioperl-live/"
681 "archive/release-"
682 (string-map (lambda (c)
683 (if (char=? c #\.)
684 #\- c)) version)
685 ".tar.gz"))
686 (sha256
687 (base32
688 "12phgpxwgkqflkwfb9dcqg7a31dpjlfhar8wcgv0aj5ln4akfz06"))))
689 (build-system perl-build-system)
690 (arguments
691 `(#:phases
692 (modify-phases %standard-phases
693 (add-after
694 'install 'wrap-programs
695 (lambda* (#:key outputs #:allow-other-keys)
696 ;; Make sure all executables in "bin" find the required Perl
697 ;; modules at runtime. As the PERL5LIB variable contains also
698 ;; the paths of native inputs, we pick the transitive target
699 ;; inputs from %build-inputs.
700 (let* ((out (assoc-ref outputs "out"))
701 (bin (string-append out "/bin/"))
702 (path (string-join
703 (cons (string-append out "/lib/perl5/site_perl")
704 (map (lambda (name)
705 (assoc-ref %build-inputs name))
706 ',transitive-inputs))
707 ":")))
708 (for-each (lambda (file)
709 (wrap-program file
710 `("PERL5LIB" ":" prefix (,path))))
711 (find-files bin "\\.pl$"))
712 #t))))))
713 (inputs inputs)
714 (native-inputs
715 `(("perl-test-most" ,perl-test-most)))
716 (home-page "http://search.cpan.org/dist/BioPerl")
717 (synopsis "Bioinformatics toolkit")
718 (description
719 "BioPerl is the product of a community effort to produce Perl code which
720 is useful in biology. Examples include Sequence objects, Alignment objects
721 and database searching objects. These objects not only do what they are
722 advertised to do in the documentation, but they also interact - Alignment
723 objects are made from the Sequence objects, Sequence objects have access to
724 Annotation and SeqFeature objects and databases, Blast objects can be
725 converted to Alignment objects, and so on. This means that the objects
726 provide a coordinated and extensible framework to do computational biology.")
727 (license license:perl-license))))
728
729 (define-public python-biopython
730 (package
731 (name "python-biopython")
732 (version "1.68")
733 (source (origin
734 (method url-fetch)
735 ;; use PyPi rather than biopython.org to ease updating
736 (uri (pypi-uri "biopython" version))
737 (sha256
738 (base32
739 "07qc7nz0k77y8hf8s18rscvibvm91zw0kkq7ylrhisf8vp8hkp6i"))))
740 (build-system python-build-system)
741 (arguments
742 `(#:phases
743 (modify-phases %standard-phases
744 (add-before 'check 'set-home
745 ;; Some tests require a home directory to be set.
746 (lambda _ (setenv "HOME" "/tmp") #t)))))
747 (propagated-inputs
748 `(("python-numpy" ,python-numpy)))
749 (home-page "http://biopython.org/")
750 (synopsis "Tools for biological computation in Python")
751 (description
752 "Biopython is a set of tools for biological computation including parsers
753 for bioinformatics files into Python data structures; interfaces to common
754 bioinformatics programs; a standard sequence class and tools for performing
755 common operations on them; code to perform data classification; code for
756 dealing with alignments; code making it easy to split up parallelizable tasks
757 into separate processes; and more.")
758 (license (license:non-copyleft "http://www.biopython.org/DIST/LICENSE"))))
759
760 (define-public python2-biopython
761 (package-with-python2 python-biopython))
762
763 ;; An outdated version of biopython is required for seqmagick, see
764 ;; https://github.com/fhcrc/seqmagick/issues/59
765 ;; When that issue has been resolved this package should be removed.
766 (define python2-biopython-1.66
767 (package
768 (inherit python2-biopython)
769 (version "1.66")
770 (source (origin
771 (method url-fetch)
772 (uri (pypi-uri "biopython" version))
773 (sha256
774 (base32
775 "1gdv92593klimg22icf5j9by7xiq86jnwzkpz4abaa05ylkdf6hp"))))))
776
777 (define-public bpp-core
778 ;; The last release was in 2014 and the recommended way to install from source
779 ;; is to clone the git repository, so we do this.
780 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
781 (let ((commit "7d8bced0d1a87291ea8dd7046b7fb5ff9c35c582"))
782 (package
783 (name "bpp-core")
784 (version (string-append "2.2.0-1." (string-take commit 7)))
785 (source (origin
786 (method git-fetch)
787 (uri (git-reference
788 (url "http://biopp.univ-montp2.fr/git/bpp-core")
789 (commit commit)))
790 (file-name (string-append name "-" version "-checkout"))
791 (sha256
792 (base32
793 "10djsq5vlnkilv436gnmh4irpk49v29pa69r6xiryg32xmvn909j"))))
794 (build-system cmake-build-system)
795 (arguments
796 `(#:parallel-build? #f))
797 (inputs
798 `(("gcc" ,gcc-5))) ; Compilation of bpp-phyl fails with GCC 4.9 so we
799 ; compile all of the bpp packages with GCC 5.
800 (home-page "http://biopp.univ-montp2.fr")
801 (synopsis "C++ libraries for Bioinformatics")
802 (description
803 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
804 analysis, phylogenetics, molecular evolution and population genetics. It is
805 Object Oriented and is designed to be both easy to use and computer efficient.
806 Bio++ intends to help programmers to write computer expensive programs, by
807 providing them a set of re-usable tools.")
808 (license license:cecill-c))))
809
810 (define-public bpp-phyl
811 ;; The last release was in 2014 and the recommended way to install from source
812 ;; is to clone the git repository, so we do this.
813 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
814 (let ((commit "0c07167b629f68b569bf274d1ad0c4af83276ae2"))
815 (package
816 (name "bpp-phyl")
817 (version (string-append "2.2.0-1." (string-take commit 7)))
818 (source (origin
819 (method git-fetch)
820 (uri (git-reference
821 (url "http://biopp.univ-montp2.fr/git/bpp-phyl")
822 (commit commit)))
823 (file-name (string-append name "-" version "-checkout"))
824 (sha256
825 (base32
826 "1ssjgchzwj3iai26kyly7gwkdv8sk59nqhkb1wpap3sf5m6kyllh"))))
827 (build-system cmake-build-system)
828 (arguments
829 `(#:parallel-build? #f
830 ;; If out-of-source, test data is not copied into the build directory
831 ;; so the tests fail.
832 #:out-of-source? #f))
833 (inputs
834 `(("bpp-core" ,bpp-core)
835 ("bpp-seq" ,bpp-seq)
836 ;; GCC 4.8 fails due to an 'internal compiler error', so we use a more
837 ;; modern GCC.
838 ("gcc" ,gcc-5)))
839 (home-page "http://biopp.univ-montp2.fr")
840 (synopsis "Bio++ phylogenetic Library")
841 (description
842 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
843 analysis, phylogenetics, molecular evolution and population genetics. This
844 library provides phylogenetics-related modules.")
845 (license license:cecill-c))))
846
847 (define-public bpp-popgen
848 ;; The last release was in 2014 and the recommended way to install from source
849 ;; is to clone the git repository, so we do this.
850 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
851 (let ((commit "e472bac9b1a148803895d747cd6d0c5904f85d9f"))
852 (package
853 (name "bpp-popgen")
854 (version (string-append "2.2.0-1." (string-take commit 7)))
855 (source (origin
856 (method git-fetch)
857 (uri (git-reference
858 (url "http://biopp.univ-montp2.fr/git/bpp-popgen")
859 (commit commit)))
860 (file-name (string-append name "-" version "-checkout"))
861 (sha256
862 (base32
863 "0yn82dzn1n5629nzja68xfrhi655709rjanyryb36vzkmymy6dw5"))))
864 (build-system cmake-build-system)
865 (arguments
866 `(#:parallel-build? #f
867 #:tests? #f)) ; There are no tests.
868 (inputs
869 `(("bpp-core" ,bpp-core)
870 ("bpp-seq" ,bpp-seq)
871 ("gcc" ,gcc-5)))
872 (home-page "http://biopp.univ-montp2.fr")
873 (synopsis "Bio++ population genetics library")
874 (description
875 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
876 analysis, phylogenetics, molecular evolution and population genetics. This
877 library provides population genetics-related modules.")
878 (license license:cecill-c))))
879
880 (define-public bpp-seq
881 ;; The last release was in 2014 and the recommended way to install from source
882 ;; is to clone the git repository, so we do this.
883 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
884 (let ((commit "6cfa07965ce152e5598a89df2fa80a75973bfa33"))
885 (package
886 (name "bpp-seq")
887 (version (string-append "2.2.0-1." (string-take commit 7)))
888 (source (origin
889 (method git-fetch)
890 (uri (git-reference
891 (url "http://biopp.univ-montp2.fr/git/bpp-seq")
892 (commit commit)))
893 (file-name (string-append name "-" version "-checkout"))
894 (sha256
895 (base32
896 "1nys5jq7jqvdg40d91wsmj3q2yzy4276cp7sp44n67p468f27zf2"))))
897 (build-system cmake-build-system)
898 (arguments
899 `(#:parallel-build? #f
900 ;; If out-of-source, test data is not copied into the build directory
901 ;; so the tests fail.
902 #:out-of-source? #f))
903 (inputs
904 `(("bpp-core" ,bpp-core)
905 ("gcc" ,gcc-5))) ; Use GCC 5 as per 'bpp-core'.
906 (home-page "http://biopp.univ-montp2.fr")
907 (synopsis "Bio++ sequence library")
908 (description
909 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
910 analysis, phylogenetics, molecular evolution and population genetics. This
911 library provides sequence-related modules.")
912 (license license:cecill-c))))
913
914 (define-public bppsuite
915 ;; The last release was in 2014 and the recommended way to install from source
916 ;; is to clone the git repository, so we do this.
917 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
918 (let ((commit "c516147f57aa50961121cd505bed52cd7603698b"))
919 (package
920 (name "bppsuite")
921 (version (string-append "2.2.0-1." (string-take commit 7)))
922 (source (origin
923 (method git-fetch)
924 (uri (git-reference
925 (url "http://biopp.univ-montp2.fr/git/bppsuite")
926 (commit commit)))
927 (file-name (string-append name "-" version "-checkout"))
928 (sha256
929 (base32
930 "1y87pxvw0jxjizhq2dr9g2r91md45k1p9ih2sl1yy1y3p934l2kb"))))
931 (build-system cmake-build-system)
932 (arguments
933 `(#:parallel-build? #f
934 #:tests? #f)) ; There are no tests.
935 (native-inputs
936 `(("groff" ,groff)
937 ("man-db" ,man-db)
938 ("texinfo" ,texinfo)))
939 (inputs
940 `(("bpp-core" ,bpp-core)
941 ("bpp-seq" ,bpp-seq)
942 ("bpp-phyl" ,bpp-phyl)
943 ("bpp-phyl" ,bpp-popgen)
944 ("gcc" ,gcc-5)))
945 (home-page "http://biopp.univ-montp2.fr")
946 (synopsis "Bioinformatics tools written with the Bio++ libraries")
947 (description
948 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
949 analysis, phylogenetics, molecular evolution and population genetics. This
950 package provides command line tools using the Bio++ library.")
951 (license license:cecill-c))))
952
953 (define-public blast+
954 (package
955 (name "blast+")
956 (version "2.6.0")
957 (source (origin
958 (method url-fetch)
959 (uri (string-append
960 "ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/"
961 version "/ncbi-blast-" version "+-src.tar.gz"))
962 (sha256
963 (base32
964 "15n937pw5aqmyfjb6l387d18grqbb96l63d5xj4l7yyh0zbf2405"))
965 (patches (search-patches "blast+-fix-makefile.patch"))
966 (modules '((guix build utils)))
967 (snippet
968 '(begin
969 ;; Remove bundled bzip2, zlib and pcre.
970 (delete-file-recursively "c++/src/util/compress/bzip2")
971 (delete-file-recursively "c++/src/util/compress/zlib")
972 (delete-file-recursively "c++/src/util/regexp")
973 (substitute* "c++/src/util/compress/Makefile.in"
974 (("bzip2 zlib api") "api"))
975 ;; Remove useless msbuild directory
976 (delete-file-recursively
977 "c++/src/build-system/project_tree_builder/msbuild")
978 #t))))
979 (build-system gnu-build-system)
980 (arguments
981 `(;; There are two(!) tests for this massive library, and both fail with
982 ;; "unparsable timing stats".
983 ;; ERR [127] -- [serial/datatool] datatool.sh (unparsable timing stats)
984 ;; ERR [127] -- [serial/datatool] datatool_xml.sh (unparsable timing stats)
985 #:tests? #f
986 #:out-of-source? #t
987 #:parallel-build? #f ; not supported
988 #:phases
989 (modify-phases %standard-phases
990 (add-before
991 'configure 'set-HOME
992 ;; $HOME needs to be set at some point during the configure phase
993 (lambda _ (setenv "HOME" "/tmp") #t))
994 (add-after
995 'unpack 'enter-dir
996 (lambda _ (chdir "c++") #t))
997 (add-after
998 'enter-dir 'fix-build-system
999 (lambda _
1000 (define (which* cmd)
1001 (cond ((string=? cmd "date")
1002 ;; make call to "date" deterministic
1003 "date -d @0")
1004 ((which cmd)
1005 => identity)
1006 (else
1007 (format (current-error-port)
1008 "WARNING: Unable to find absolute path for ~s~%"
1009 cmd)
1010 #f)))
1011
1012 ;; Rewrite hardcoded paths to various tools
1013 (substitute* (append '("src/build-system/configure.ac"
1014 "src/build-system/configure"
1015 "src/build-system/helpers/run_with_lock.c"
1016 "scripts/common/impl/if_diff.sh"
1017 "scripts/common/impl/run_with_lock.sh"
1018 "src/build-system/Makefile.configurables.real"
1019 "src/build-system/Makefile.in.top"
1020 "src/build-system/Makefile.meta.gmake=no"
1021 "src/build-system/Makefile.meta.in"
1022 "src/build-system/Makefile.meta_l"
1023 "src/build-system/Makefile.meta_p"
1024 "src/build-system/Makefile.meta_r"
1025 "src/build-system/Makefile.mk.in"
1026 "src/build-system/Makefile.requirements"
1027 "src/build-system/Makefile.rules_with_autodep.in")
1028 (find-files "scripts/common/check" "\\.sh$"))
1029 (("(/usr/bin/|/bin/)([a-z][-_.a-z]*)" all dir cmd)
1030 (or (which* cmd) all)))
1031
1032 (substitute* (find-files "src/build-system" "^config.*")
1033 (("LN_S=/bin/\\$LN_S") (string-append "LN_S=" (which "ln")))
1034 (("^PATH=.*") ""))
1035
1036 ;; rewrite "/var/tmp" in check script
1037 (substitute* "scripts/common/check/check_make_unix.sh"
1038 (("/var/tmp") "/tmp"))
1039
1040 ;; do not reset PATH
1041 (substitute* (find-files "scripts/common/impl/" "\\.sh$")
1042 (("^ *PATH=.*") "")
1043 (("action=/bin/") "action=")
1044 (("export PATH") ":"))
1045 #t))
1046 (replace
1047 'configure
1048 (lambda* (#:key inputs outputs #:allow-other-keys)
1049 (let ((out (assoc-ref outputs "out"))
1050 (lib (string-append (assoc-ref outputs "lib") "/lib"))
1051 (include (string-append (assoc-ref outputs "include")
1052 "/include/ncbi-tools++")))
1053 ;; The 'configure' script doesn't recognize things like
1054 ;; '--enable-fast-install'.
1055 (zero? (system* "./configure.orig"
1056 (string-append "--with-build-root=" (getcwd) "/build")
1057 (string-append "--prefix=" out)
1058 (string-append "--libdir=" lib)
1059 (string-append "--includedir=" include)
1060 (string-append "--with-bz2="
1061 (assoc-ref inputs "bzip2"))
1062 (string-append "--with-z="
1063 (assoc-ref inputs "zlib"))
1064 (string-append "--with-pcre="
1065 (assoc-ref inputs "pcre"))
1066 ;; Each library is built twice by default, once
1067 ;; with "-static" in its name, and again
1068 ;; without.
1069 "--without-static"
1070 "--with-dll"))))))))
1071 (outputs '("out" ; 21 MB
1072 "lib" ; 226 MB
1073 "include")) ; 33 MB
1074 (inputs
1075 `(("bzip2" ,bzip2)
1076 ("zlib" ,zlib)
1077 ("pcre" ,pcre)
1078 ("perl" ,perl)
1079 ("python" ,python-wrapper)))
1080 (native-inputs
1081 `(("cpio" ,cpio)))
1082 (home-page "http://blast.ncbi.nlm.nih.gov")
1083 (synopsis "Basic local alignment search tool")
1084 (description
1085 "BLAST is a popular method of performing a DNA or protein sequence
1086 similarity search, using heuristics to produce results quickly. It also
1087 calculates an “expect value” that estimates how many matches would have
1088 occurred at a given score by chance, which can aid a user in judging how much
1089 confidence to have in an alignment.")
1090 ;; Most of the sources are in the public domain, with the following
1091 ;; exceptions:
1092 ;; * Expat:
1093 ;; * ./c++/include/util/bitset/
1094 ;; * ./c++/src/html/ncbi_menu*.js
1095 ;; * Boost license:
1096 ;; * ./c++/include/util/impl/floating_point_comparison.hpp
1097 ;; * LGPL 2+:
1098 ;; * ./c++/include/dbapi/driver/odbc/unix_odbc/
1099 ;; * ASL 2.0:
1100 ;; * ./c++/src/corelib/teamcity_*
1101 (license (list license:public-domain
1102 license:expat
1103 license:boost1.0
1104 license:lgpl2.0+
1105 license:asl2.0))))
1106
1107 (define-public bless
1108 (package
1109 (name "bless")
1110 (version "1p02")
1111 (source (origin
1112 (method url-fetch)
1113 (uri (string-append "mirror://sourceforge/bless-ec/bless.v"
1114 version ".tgz"))
1115 (sha256
1116 (base32
1117 "0rm0gw2s18dqwzzpl3c2x1z05ni2v0xz5dmfk3d33j6g4cgrlrdd"))
1118 (modules '((guix build utils)))
1119 (snippet
1120 `(begin
1121 ;; Remove bundled boost, pigz, zlib, and .git directory
1122 ;; FIXME: also remove bundled sources for murmurhash3 and
1123 ;; kmc once packaged.
1124 (delete-file-recursively "boost")
1125 (delete-file-recursively "pigz")
1126 (delete-file-recursively "google-sparsehash")
1127 (delete-file-recursively "zlib")
1128 (delete-file-recursively ".git")
1129 #t))))
1130 (build-system gnu-build-system)
1131 (arguments
1132 '(#:tests? #f ;no "check" target
1133 #:make-flags
1134 (list (string-append "ZLIB="
1135 (assoc-ref %build-inputs "zlib")
1136 "/lib/libz.a")
1137 (string-append "LDFLAGS="
1138 (string-join '("-lboost_filesystem"
1139 "-lboost_system"
1140 "-lboost_iostreams"
1141 "-lz"
1142 "-fopenmp"
1143 "-std=c++11"))))
1144 #:phases
1145 (modify-phases %standard-phases
1146 (add-after 'unpack 'do-not-build-bundled-pigz
1147 (lambda* (#:key inputs outputs #:allow-other-keys)
1148 (substitute* "Makefile"
1149 (("cd pigz/pigz-2.3.3; make") ""))
1150 #t))
1151 (add-after 'unpack 'patch-paths-to-executables
1152 (lambda* (#:key inputs outputs #:allow-other-keys)
1153 (substitute* "parse_args.cpp"
1154 (("kmc_binary = .*")
1155 (string-append "kmc_binary = \""
1156 (assoc-ref outputs "out")
1157 "/bin/kmc\";"))
1158 (("pigz_binary = .*")
1159 (string-append "pigz_binary = \""
1160 (assoc-ref inputs "pigz")
1161 "/bin/pigz\";")))
1162 #t))
1163 (replace 'install
1164 (lambda* (#:key outputs #:allow-other-keys)
1165 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
1166 (for-each (lambda (file)
1167 (install-file file bin))
1168 '("bless" "kmc/bin/kmc"))
1169 #t)))
1170 (delete 'configure))))
1171 (native-inputs
1172 `(("perl" ,perl)))
1173 (inputs
1174 `(("openmpi" ,openmpi)
1175 ("boost" ,boost)
1176 ("sparsehash" ,sparsehash)
1177 ("pigz" ,pigz)
1178 ("zlib" ,zlib)))
1179 (supported-systems '("x86_64-linux"))
1180 (home-page "https://sourceforge.net/p/bless-ec/wiki/Home/")
1181 (synopsis "Bloom-filter-based error correction tool for NGS reads")
1182 (description
1183 "@dfn{Bloom-filter-based error correction solution for high-throughput
1184 sequencing reads} (BLESS) uses a single minimum-sized bloom filter is a
1185 correction tool for genomic reads produced by @dfn{Next-generation
1186 sequencing} (NGS). BLESS produces accurate correction results with much less
1187 memory compared with previous solutions and is also able to tolerate a higher
1188 false-positive rate. BLESS can extend reads like DNA assemblers to correct
1189 errors at the end of reads.")
1190 (license license:gpl3+)))
1191
1192 (define-public bowtie
1193 (package
1194 (name "bowtie")
1195 (version "2.3.2")
1196 (source (origin
1197 (method url-fetch)
1198 (uri (string-append "https://github.com/BenLangmead/bowtie2/archive/v"
1199 version ".tar.gz"))
1200 (file-name (string-append name "-" version ".tar.gz"))
1201 (sha256
1202 (base32
1203 "0hwa5r9qbglppb7sz5z79rlmmddr3n51n468jb3wh8rwjgn3yr90"))
1204 (modules '((guix build utils)))
1205 (snippet
1206 '(substitute* "Makefile"
1207 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1208 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1209 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\"")))))
1210 (build-system gnu-build-system)
1211 (inputs
1212 `(("perl" ,perl)
1213 ("perl-clone" ,perl-clone)
1214 ("perl-test-deep" ,perl-test-deep)
1215 ("perl-test-simple" ,perl-test-simple)
1216 ("python" ,python-2)
1217 ("tbb" ,tbb)
1218 ("zlib" ,zlib)))
1219 (arguments
1220 '(#:make-flags
1221 (list "allall"
1222 "WITH_TBB=1"
1223 (string-append "prefix=" (assoc-ref %outputs "out")))
1224 #:phases
1225 (modify-phases %standard-phases
1226 (delete 'configure)
1227 (replace 'check
1228 (lambda* (#:key outputs #:allow-other-keys)
1229 (zero? (system* "perl"
1230 "scripts/test/simple_tests.pl"
1231 "--bowtie2=./bowtie2"
1232 "--bowtie2-build=./bowtie2-build")))))))
1233 (home-page "http://bowtie-bio.sourceforge.net/bowtie2/index.shtml")
1234 (synopsis "Fast and sensitive nucleotide sequence read aligner")
1235 (description
1236 "Bowtie 2 is a fast and memory-efficient tool for aligning sequencing
1237 reads to long reference sequences. It is particularly good at aligning reads
1238 of about 50 up to 100s or 1,000s of characters, and particularly good at
1239 aligning to relatively long (e.g. mammalian) genomes. Bowtie 2 indexes the
1240 genome with an FM Index to keep its memory footprint small: for the human
1241 genome, its memory footprint is typically around 3.2 GB. Bowtie 2 supports
1242 gapped, local, and paired-end alignment modes.")
1243 (supported-systems '("x86_64-linux"))
1244 (license license:gpl3+)))
1245
1246 (define-public tophat
1247 (package
1248 (name "tophat")
1249 (version "2.1.0")
1250 (source (origin
1251 (method url-fetch)
1252 (uri (string-append
1253 "http://ccb.jhu.edu/software/tophat/downloads/tophat-"
1254 version ".tar.gz"))
1255 (sha256
1256 (base32
1257 "168zlzykq622zbgkh90a90f1bdgsxkscq2zxzbj8brq80hbjpyp7"))
1258 (patches (search-patches "tophat-build-with-later-seqan.patch"))
1259 (modules '((guix build utils)))
1260 (snippet
1261 '(begin
1262 ;; Remove bundled SeqAn and samtools
1263 (delete-file-recursively "src/SeqAn-1.3")
1264 (delete-file-recursively "src/samtools-0.1.18")
1265 #t))))
1266 (build-system gnu-build-system)
1267 (arguments
1268 '(#:parallel-build? #f ; not supported
1269 #:phases
1270 (modify-phases %standard-phases
1271 (add-after 'unpack 'use-system-samtools
1272 (lambda* (#:key inputs #:allow-other-keys)
1273 (substitute* "src/Makefile.in"
1274 (("(noinst_LIBRARIES = )\\$\\(SAMLIB\\)" _ prefix) prefix)
1275 (("\\$\\(SAMPROG\\): \\$\\(SAMLIB\\)") "")
1276 (("SAMPROG = samtools_0\\.1\\.18") "")
1277 (("\\$\\(samtools_0_1_18_SOURCES\\)") "")
1278 (("am__EXEEXT_1 = samtools_0\\.1\\.18\\$\\(EXEEXT\\)") ""))
1279 (substitute* '("src/common.cpp"
1280 "src/tophat.py")
1281 (("samtools_0.1.18") (which "samtools")))
1282 (substitute* '("src/common.h"
1283 "src/bam2fastx.cpp")
1284 (("#include \"bam.h\"") "#include <samtools/bam.h>")
1285 (("#include \"sam.h\"") "#include <samtools/sam.h>"))
1286 (substitute* '("src/bwt_map.h"
1287 "src/map2gtf.h"
1288 "src/align_status.h")
1289 (("#include <bam.h>") "#include <samtools/bam.h>")
1290 (("#include <sam.h>") "#include <samtools/sam.h>"))
1291 #t)))))
1292 (inputs
1293 `(("boost" ,boost)
1294 ("bowtie" ,bowtie)
1295 ("samtools" ,samtools-0.1)
1296 ("ncurses" ,ncurses)
1297 ("python" ,python-2)
1298 ("perl" ,perl)
1299 ("zlib" ,zlib)
1300 ("seqan" ,seqan)))
1301 (home-page "http://ccb.jhu.edu/software/tophat/index.shtml")
1302 (synopsis "Spliced read mapper for RNA-Seq data")
1303 (description
1304 "TopHat is a fast splice junction mapper for nucleotide sequence
1305 reads produced by the RNA-Seq method. It aligns RNA-Seq reads to
1306 mammalian-sized genomes using the ultra high-throughput short read
1307 aligner Bowtie, and then analyzes the mapping results to identify
1308 splice junctions between exons.")
1309 ;; TopHat is released under the Boost Software License, Version 1.0
1310 ;; See https://github.com/infphilo/tophat/issues/11#issuecomment-121589893
1311 (license license:boost1.0)))
1312
1313 (define-public bwa
1314 (package
1315 (name "bwa")
1316 (version "0.7.15")
1317 (source (origin
1318 (method url-fetch)
1319 (uri (string-append "mirror://sourceforge/bio-bwa/bwa-"
1320 version ".tar.bz2"))
1321 (sha256
1322 (base32
1323 "0585ikg0gv0mpyw9iq0bq9n0hr95867bbv8jbzs9pk4slkpsymig"))))
1324 (build-system gnu-build-system)
1325 (arguments
1326 '(#:tests? #f ;no "check" target
1327 #:phases
1328 (alist-replace
1329 'install
1330 (lambda* (#:key outputs #:allow-other-keys)
1331 (let ((bin (string-append
1332 (assoc-ref outputs "out") "/bin"))
1333 (doc (string-append
1334 (assoc-ref outputs "out") "/share/doc/bwa"))
1335 (man (string-append
1336 (assoc-ref outputs "out") "/share/man/man1")))
1337 (install-file "bwa" bin)
1338 (install-file "README.md" doc)
1339 (install-file "bwa.1" man)))
1340 ;; no "configure" script
1341 (alist-delete 'configure %standard-phases))))
1342 (inputs `(("zlib" ,zlib)))
1343 ;; Non-portable SSE instructions are used so building fails on platforms
1344 ;; other than x86_64.
1345 (supported-systems '("x86_64-linux"))
1346 (home-page "http://bio-bwa.sourceforge.net/")
1347 (synopsis "Burrows-Wheeler sequence aligner")
1348 (description
1349 "BWA is a software package for mapping low-divergent sequences against a
1350 large reference genome, such as the human genome. It consists of three
1351 algorithms: BWA-backtrack, BWA-SW and BWA-MEM. The first algorithm is
1352 designed for Illumina sequence reads up to 100bp, while the rest two for
1353 longer sequences ranged from 70bp to 1Mbp. BWA-MEM and BWA-SW share similar
1354 features such as long-read support and split alignment, but BWA-MEM, which is
1355 the latest, is generally recommended for high-quality queries as it is faster
1356 and more accurate. BWA-MEM also has better performance than BWA-backtrack for
1357 70-100bp Illumina reads.")
1358 (license license:gpl3+)))
1359
1360 (define-public bwa-pssm
1361 (package (inherit bwa)
1362 (name "bwa-pssm")
1363 (version "0.5.11")
1364 (source (origin
1365 (method url-fetch)
1366 (uri (string-append "https://github.com/pkerpedjiev/bwa-pssm/"
1367 "archive/" version ".tar.gz"))
1368 (file-name (string-append name "-" version ".tar.gz"))
1369 (sha256
1370 (base32
1371 "02p7mpbs4mlxmn84g2x4ghak638vbj4lqix2ipx5g84pz9bhdavg"))))
1372 (build-system gnu-build-system)
1373 (inputs
1374 `(("gdsl" ,gdsl)
1375 ("zlib" ,zlib)
1376 ("perl" ,perl)))
1377 (home-page "http://bwa-pssm.binf.ku.dk/")
1378 (synopsis "Burrows-Wheeler transform-based probabilistic short read mapper")
1379 (description
1380 "BWA-PSSM is a probabilistic short genomic sequence read aligner based on
1381 the use of @dfn{position specific scoring matrices} (PSSM). Like many of the
1382 existing aligners it is fast and sensitive. Unlike most other aligners,
1383 however, it is also adaptible in the sense that one can direct the alignment
1384 based on known biases within the data set. It is coded as a modification of
1385 the original BWA alignment program and shares the genome index structure as
1386 well as many of the command line options.")
1387 (license license:gpl3+)))
1388
1389 (define-public python2-bx-python
1390 (package
1391 (name "python2-bx-python")
1392 (version "0.7.3")
1393 (source (origin
1394 (method url-fetch)
1395 (uri (pypi-uri "bx-python" version))
1396 (sha256
1397 (base32
1398 "15z2w3bvnc0n4qmb9bd6d8ylc2h2nj883x2w9iixf4x3vki9b22i"))
1399 (modules '((guix build utils)))
1400 (snippet
1401 '(substitute* "setup.py"
1402 ;; remove dependency on outdated "distribute" module
1403 (("^from distribute_setup import use_setuptools") "")
1404 (("^use_setuptools\\(\\)") "")))))
1405 (build-system python-build-system)
1406 (arguments
1407 `(#:tests? #f ;tests fail because test data are not included
1408 #:python ,python-2))
1409 (inputs
1410 `(("python-numpy" ,python2-numpy)
1411 ("zlib" ,zlib)))
1412 (native-inputs
1413 `(("python-nose" ,python2-nose)))
1414 (home-page "http://bitbucket.org/james_taylor/bx-python/")
1415 (synopsis "Tools for manipulating biological data")
1416 (description
1417 "bx-python provides tools for manipulating biological data, particularly
1418 multiple sequence alignments.")
1419 (license license:expat)))
1420
1421 (define-public python-pysam
1422 (package
1423 (name "python-pysam")
1424 (version "0.11.2.2")
1425 (source (origin
1426 (method url-fetch)
1427 ;; Test data is missing on PyPi.
1428 (uri (string-append
1429 "https://github.com/pysam-developers/pysam/archive/v"
1430 version ".tar.gz"))
1431 (file-name (string-append name "-" version ".tar.gz"))
1432 (sha256
1433 (base32
1434 "1cfqdxsqs3xhacns9n0271ck6wkc76px66ddjm91wfw2jxxfklvc"))
1435 (modules '((guix build utils)))
1436 (snippet
1437 ;; Drop bundled htslib. TODO: Also remove samtools and bcftools.
1438 '(delete-file-recursively "htslib"))))
1439 (build-system python-build-system)
1440 (arguments
1441 `(#:modules ((ice-9 ftw)
1442 (srfi srfi-26)
1443 (guix build python-build-system)
1444 (guix build utils))
1445 #:phases
1446 (modify-phases %standard-phases
1447 (add-before 'build 'set-flags
1448 (lambda* (#:key inputs #:allow-other-keys)
1449 (setenv "HTSLIB_MODE" "external")
1450 (setenv "HTSLIB_LIBRARY_DIR"
1451 (string-append (assoc-ref inputs "htslib") "/lib"))
1452 (setenv "HTSLIB_INCLUDE_DIR"
1453 (string-append (assoc-ref inputs "htslib") "/include"))
1454 (setenv "LDFLAGS" "-lncurses")
1455 (setenv "CFLAGS" "-D_CURSES_LIB=1")
1456 #t))
1457 (replace 'check
1458 (lambda* (#:key inputs outputs #:allow-other-keys)
1459 ;; Add first subdirectory of "build" directory to PYTHONPATH.
1460 (setenv "PYTHONPATH"
1461 (string-append
1462 (getenv "PYTHONPATH")
1463 ":" (getcwd) "/build/"
1464 (car (scandir "build"
1465 (negate (cut string-prefix? "." <>))))))
1466 ;; Step out of source dir so python does not import from CWD.
1467 (with-directory-excursion "tests"
1468 (setenv "HOME" "/tmp")
1469 (and (zero? (system* "make" "-C" "pysam_data"))
1470 (zero? (system* "make" "-C" "cbcf_data"))
1471 ;; Running nosetests without explicitly asking for a
1472 ;; single process leads to a crash. Running with multiple
1473 ;; processes fails because the tests are not designed to
1474 ;; run in parallel.
1475
1476 ;; FIXME: tests keep timing out on some systems.
1477 ;; (zero? (system* "nosetests" "-v"
1478 ;; "--processes" "1"))
1479 )))))))
1480 (propagated-inputs
1481 `(("htslib" ,htslib))) ; Included from installed header files.
1482 (inputs
1483 `(("ncurses" ,ncurses)
1484 ("zlib" ,zlib)))
1485 (native-inputs
1486 `(("python-cython" ,python-cython)
1487 ;; Dependencies below are are for tests only.
1488 ("samtools" ,samtools)
1489 ("bcftools" ,bcftools)
1490 ("python-nose" ,python-nose)))
1491 (home-page "https://github.com/pysam-developers/pysam")
1492 (synopsis "Python bindings to the SAMtools C API")
1493 (description
1494 "Pysam is a Python module for reading and manipulating files in the
1495 SAM/BAM format. Pysam is a lightweight wrapper of the SAMtools C API. It
1496 also includes an interface for tabix.")
1497 (license license:expat)))
1498
1499 (define-public python2-pysam
1500 (package-with-python2 python-pysam))
1501
1502 (define-public python-twobitreader
1503 (package
1504 (name "python-twobitreader")
1505 (version "3.1.4")
1506 (source (origin
1507 (method url-fetch)
1508 (uri (pypi-uri "twobitreader" version))
1509 (sha256
1510 (base32
1511 "1q8wnj2kga9nz1lwc4w7qv52smfm536hp6mc8w6s53lhyj0mpi22"))))
1512 (build-system python-build-system)
1513 (arguments
1514 '(;; Tests are not distributed in the PyPi release.
1515 ;; TODO Try building from the Git repo or asking the upstream maintainer
1516 ;; to distribute the tests on PyPi.
1517 #:tests? #f))
1518 (native-inputs
1519 `(("python-sphinx" ,python-sphinx)))
1520 (home-page "https://github.com/benjschiller/twobitreader")
1521 (synopsis "Python library for reading .2bit files")
1522 (description
1523 "twobitreader is a Python library for reading .2bit files as used by the
1524 UCSC genome browser.")
1525 (license license:artistic2.0)))
1526
1527 (define-public python2-twobitreader
1528 (package-with-python2 python-twobitreader))
1529
1530 (define-public python-plastid
1531 (package
1532 (name "python-plastid")
1533 (version "0.4.8")
1534 (source (origin
1535 (method url-fetch)
1536 (uri (pypi-uri "plastid" version))
1537 (sha256
1538 (base32
1539 "0l24dd3q66if8yj042m4s0g95n6acn7im1imqd3p6h8ns43kxhj8"))))
1540 (build-system python-build-system)
1541 (arguments
1542 ;; Some test files are not included.
1543 `(#:tests? #f))
1544 (propagated-inputs
1545 `(("python-numpy" ,python-numpy)
1546 ("python-scipy" ,python-scipy)
1547 ("python-pandas" ,python-pandas)
1548 ("python-pysam" ,python-pysam)
1549 ("python-matplotlib" ,python-matplotlib)
1550 ("python-biopython" ,python-biopython)
1551 ("python-twobitreader" ,python-twobitreader)
1552 ("python-termcolor" ,python-termcolor)))
1553 (native-inputs
1554 `(("python-cython" ,python-cython)
1555 ("python-nose" ,python-nose)))
1556 (home-page "https://github.com/joshuagryphon/plastid")
1557 (synopsis "Python library for genomic analysis")
1558 (description
1559 "plastid is a Python library for genomic analysis – in particular,
1560 high-throughput sequencing data – with an emphasis on simplicity.")
1561 (license license:bsd-3)))
1562
1563 (define-public python2-plastid
1564 (package-with-python2 python-plastid))
1565
1566 (define-public cd-hit
1567 (package
1568 (name "cd-hit")
1569 (version "4.6.8")
1570 (source (origin
1571 (method url-fetch)
1572 (uri (string-append "https://github.com/weizhongli/cdhit"
1573 "/releases/download/V" version
1574 "/cd-hit-v" version
1575 "-2017-0621-source.tar.gz"))
1576 (sha256
1577 (base32
1578 "1386dg2npx8p62wmv08mjzsd2z3waknb9j1gg3gkvblcy57hymnn"))))
1579 (build-system gnu-build-system)
1580 (arguments
1581 `(#:tests? #f ; there are no tests
1582 #:make-flags
1583 ;; Executables are copied directly to the PREFIX.
1584 (list (string-append "PREFIX=" (assoc-ref %outputs "out") "/bin"))
1585 #:phases
1586 (modify-phases %standard-phases
1587 ;; No "configure" script
1588 (delete 'configure)
1589 ;; Remove sources of non-determinism
1590 (add-after 'unpack 'be-timeless
1591 (lambda _
1592 (substitute* "cdhit-utility.c++"
1593 ((" \\(built on \" __DATE__ \"\\)") ""))
1594 (substitute* "cdhit-common.c++"
1595 (("__DATE__") "\"0\"")
1596 (("\", %s, \" __TIME__ \"\\\\n\", date") ""))
1597 #t))
1598 ;; The "install" target does not create the target directory.
1599 (add-before 'install 'create-target-dir
1600 (lambda* (#:key outputs #:allow-other-keys)
1601 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
1602 #t)))))
1603 (inputs
1604 `(("perl" ,perl)))
1605 (home-page "http://weizhongli-lab.org/cd-hit/")
1606 (synopsis "Cluster and compare protein or nucleotide sequences")
1607 (description
1608 "CD-HIT is a program for clustering and comparing protein or nucleotide
1609 sequences. CD-HIT is designed to be fast and handle extremely large
1610 databases.")
1611 ;; The manual says: "It can be copied under the GNU General Public License
1612 ;; version 2 (GPLv2)."
1613 (license license:gpl2)))
1614
1615 (define-public clipper
1616 (package
1617 (name "clipper")
1618 (version "1.1")
1619 (source (origin
1620 (method url-fetch)
1621 (uri (string-append
1622 "https://github.com/YeoLab/clipper/archive/"
1623 version ".tar.gz"))
1624 (file-name (string-append name "-" version ".tar.gz"))
1625 (sha256
1626 (base32
1627 "0pflmsvhbf8izbgwhbhj1i7349sw1f55qpqj8ljmapp16hb0p0qi"))
1628 (modules '((guix build utils)))
1629 (snippet
1630 '(begin
1631 ;; remove unnecessary setup dependency
1632 (substitute* "setup.py"
1633 (("setup_requires = .*") ""))
1634 (for-each delete-file
1635 '("clipper/src/peaks.so"
1636 "clipper/src/readsToWiggle.so"))
1637 (delete-file-recursively "dist/")
1638 #t))))
1639 (build-system python-build-system)
1640 (arguments `(#:python ,python-2)) ; only Python 2 is supported
1641 (inputs
1642 `(("htseq" ,python2-htseq)
1643 ("python-pybedtools" ,python2-pybedtools)
1644 ("python-cython" ,python2-cython)
1645 ("python-scikit-learn" ,python2-scikit-learn)
1646 ("python-matplotlib" ,python2-matplotlib)
1647 ("python-pandas" ,python2-pandas)
1648 ("python-pysam" ,python2-pysam)
1649 ("python-numpy" ,python2-numpy)
1650 ("python-scipy" ,python2-scipy)))
1651 (native-inputs
1652 `(("python-mock" ,python2-mock) ; for tests
1653 ("python-nose" ,python2-nose) ; for tests
1654 ("python-pytz" ,python2-pytz))) ; for tests
1655 (home-page "https://github.com/YeoLab/clipper")
1656 (synopsis "CLIP peak enrichment recognition")
1657 (description
1658 "CLIPper is a tool to define peaks in CLIP-seq datasets.")
1659 (license license:gpl2)))
1660
1661 (define-public codingquarry
1662 (package
1663 (name "codingquarry")
1664 (version "2.0")
1665 (source (origin
1666 (method url-fetch)
1667 (uri (string-append
1668 "mirror://sourceforge/codingquarry/CodingQuarry_v"
1669 version ".tar.gz"))
1670 (sha256
1671 (base32
1672 "0115hkjflsnfzn36xppwf9h9avfxlavr43djqmshkkzbgjzsz60i"))))
1673 (build-system gnu-build-system)
1674 (arguments
1675 '(#:tests? #f ; no "check" target
1676 #:phases
1677 (modify-phases %standard-phases
1678 (delete 'configure)
1679 (replace 'install
1680 (lambda* (#:key outputs #:allow-other-keys)
1681 (let* ((out (assoc-ref outputs "out"))
1682 (bin (string-append out "/bin"))
1683 (doc (string-append out "/share/doc/codingquarry")))
1684 (install-file "INSTRUCTIONS.pdf" doc)
1685 (copy-recursively "QuarryFiles"
1686 (string-append out "/QuarryFiles"))
1687 (install-file "CodingQuarry" bin)
1688 (install-file "CufflinksGTF_to_CodingQuarryGFF3.py" bin)))))))
1689 (inputs `(("openmpi" ,openmpi)))
1690 (native-search-paths
1691 (list (search-path-specification
1692 (variable "QUARRY_PATH")
1693 (files '("QuarryFiles")))))
1694 (native-inputs `(("python" ,python-2))) ; Only Python 2 is supported
1695 (synopsis "Fungal gene predictor")
1696 (description "CodingQuarry is a highly accurate, self-training GHMM fungal
1697 gene predictor designed to work with assembled, aligned RNA-seq transcripts.")
1698 (home-page "https://sourceforge.net/projects/codingquarry/")
1699 (license license:gpl3+)))
1700
1701 (define-public couger
1702 (package
1703 (name "couger")
1704 (version "1.8.2")
1705 (source (origin
1706 (method url-fetch)
1707 (uri (string-append
1708 "http://couger.oit.duke.edu/static/assets/COUGER"
1709 version ".zip"))
1710 (sha256
1711 (base32
1712 "04p2b14nmhzxw5h72mpzdhalv21bx4w9b87z0wpw0xzxpysyncmq"))))
1713 (build-system gnu-build-system)
1714 (arguments
1715 `(#:tests? #f
1716 #:phases
1717 (modify-phases %standard-phases
1718 (delete 'configure)
1719 (delete 'build)
1720 (replace
1721 'install
1722 (lambda* (#:key outputs #:allow-other-keys)
1723 (let* ((out (assoc-ref outputs "out"))
1724 (bin (string-append out "/bin")))
1725 (copy-recursively "src" (string-append out "/src"))
1726 (mkdir bin)
1727 ;; Add "src" directory to module lookup path.
1728 (substitute* "couger"
1729 (("from argparse")
1730 (string-append "import sys\nsys.path.append(\""
1731 out "\")\nfrom argparse")))
1732 (install-file "couger" bin))
1733 #t))
1734 (add-after
1735 'install 'wrap-program
1736 (lambda* (#:key inputs outputs #:allow-other-keys)
1737 ;; Make sure 'couger' runs with the correct PYTHONPATH.
1738 (let* ((out (assoc-ref outputs "out"))
1739 (path (getenv "PYTHONPATH")))
1740 (wrap-program (string-append out "/bin/couger")
1741 `("PYTHONPATH" ":" prefix (,path))))
1742 #t)))))
1743 (inputs
1744 `(("python" ,python-2)
1745 ("python2-pillow" ,python2-pillow)
1746 ("python2-numpy" ,python2-numpy)
1747 ("python2-scipy" ,python2-scipy)
1748 ("python2-matplotlib" ,python2-matplotlib)))
1749 (propagated-inputs
1750 `(("r-minimal" ,r-minimal)
1751 ("libsvm" ,libsvm)
1752 ("randomjungle" ,randomjungle)))
1753 (native-inputs
1754 `(("unzip" ,unzip)))
1755 (home-page "http://couger.oit.duke.edu")
1756 (synopsis "Identify co-factors in sets of genomic regions")
1757 (description
1758 "COUGER can be applied to any two sets of genomic regions bound by
1759 paralogous TFs (e.g., regions derived from ChIP-seq experiments) to identify
1760 putative co-factors that provide specificity to each TF. The framework
1761 determines the genomic targets uniquely-bound by each TF, and identifies a
1762 small set of co-factors that best explain the in vivo binding differences
1763 between the two TFs.
1764
1765 COUGER uses classification algorithms (support vector machines and random
1766 forests) with features that reflect the DNA binding specificities of putative
1767 co-factors. The features are generated either from high-throughput TF-DNA
1768 binding data (from protein binding microarray experiments), or from large
1769 collections of DNA motifs.")
1770 (license license:gpl3+)))
1771
1772 (define-public clustal-omega
1773 (package
1774 (name "clustal-omega")
1775 (version "1.2.1")
1776 (source (origin
1777 (method url-fetch)
1778 (uri (string-append
1779 "http://www.clustal.org/omega/clustal-omega-"
1780 version ".tar.gz"))
1781 (sha256
1782 (base32
1783 "02ibkx0m0iwz8nscg998bh41gg251y56cgh86bvyrii5m8kjgwqf"))))
1784 (build-system gnu-build-system)
1785 (inputs
1786 `(("argtable" ,argtable)))
1787 (home-page "http://www.clustal.org/omega/")
1788 (synopsis "Multiple sequence aligner for protein and DNA/RNA")
1789 (description
1790 "Clustal-Omega is a general purpose multiple sequence alignment (MSA)
1791 program for protein and DNA/RNA. It produces high quality MSAs and is capable
1792 of handling data-sets of hundreds of thousands of sequences in reasonable
1793 time.")
1794 (license license:gpl2+)))
1795
1796 (define-public crossmap
1797 (package
1798 (name "crossmap")
1799 (version "0.2.1")
1800 (source (origin
1801 (method url-fetch)
1802 (uri (string-append "mirror://sourceforge/crossmap/CrossMap-"
1803 version ".tar.gz"))
1804 (sha256
1805 (base32
1806 "07y179f63d7qnzdvkqcziwk9bs3k4zhp81q392fp1hwszjdvy22f"))
1807 ;; This patch has been sent upstream already and is available
1808 ;; for download from Sourceforge, but it has not been merged.
1809 (patches (search-patches "crossmap-allow-system-pysam.patch"))
1810 (modules '((guix build utils)))
1811 ;; remove bundled copy of pysam
1812 (snippet
1813 '(delete-file-recursively "lib/pysam"))))
1814 (build-system python-build-system)
1815 (arguments
1816 `(#:python ,python-2
1817 #:phases
1818 (alist-cons-after
1819 'unpack 'set-env
1820 (lambda _ (setenv "CROSSMAP_USE_SYSTEM_PYSAM" "1"))
1821 %standard-phases)))
1822 (inputs
1823 `(("python-numpy" ,python2-numpy)
1824 ("python-pysam" ,python2-pysam)
1825 ("zlib" ,zlib)))
1826 (native-inputs
1827 `(("python-cython" ,python2-cython)
1828 ("python-nose" ,python2-nose)))
1829 (home-page "http://crossmap.sourceforge.net/")
1830 (synopsis "Convert genome coordinates between assemblies")
1831 (description
1832 "CrossMap is a program for conversion of genome coordinates or annotation
1833 files between different genome assemblies. It supports most commonly used
1834 file formats including SAM/BAM, Wiggle/BigWig, BED, GFF/GTF, VCF.")
1835 (license license:gpl2+)))
1836
1837 (define-public cufflinks
1838 (package
1839 (name "cufflinks")
1840 (version "2.2.1")
1841 (source (origin
1842 (method url-fetch)
1843 (uri (string-append "http://cole-trapnell-lab.github.io/"
1844 "cufflinks/assets/downloads/cufflinks-"
1845 version ".tar.gz"))
1846 (sha256
1847 (base32
1848 "1bnm10p8m7zq4qiipjhjqb24csiqdm1pwc8c795z253r2xk6ncg8"))))
1849 (build-system gnu-build-system)
1850 (arguments
1851 `(#:make-flags
1852 (list
1853 ;; The includes for "eigen" are located in a subdirectory.
1854 (string-append "EIGEN_CPPFLAGS="
1855 "-I" (assoc-ref %build-inputs "eigen")
1856 "/include/eigen3/")
1857 ;; Cufflinks must be linked with various boost libraries.
1858 (string-append "LDFLAGS="
1859 (string-join '("-lboost_system"
1860 "-lboost_serialization"
1861 "-lboost_thread"))))
1862 #:phases
1863 (modify-phases %standard-phases
1864 (add-after 'unpack 'fix-search-for-bam
1865 (lambda _
1866 (substitute* '("ax_bam.m4"
1867 "configure"
1868 "src/hits.h")
1869 (("<bam/sam\\.h>") "<samtools/sam.h>")
1870 (("<bam/bam\\.h>") "<samtools/bam.h>")
1871 (("<bam/version\\.hpp>") "<samtools/version.h>"))
1872 #t)))
1873 #:configure-flags
1874 (list (string-append "--with-bam="
1875 (assoc-ref %build-inputs "samtools")))))
1876 (inputs
1877 `(("eigen" ,eigen)
1878 ("samtools" ,samtools-0.1)
1879 ("htslib" ,htslib)
1880 ("boost" ,boost)
1881 ("python" ,python-2)
1882 ("zlib" ,zlib)))
1883 (home-page "http://cole-trapnell-lab.github.io/cufflinks/")
1884 (synopsis "Transcriptome assembly and RNA-Seq expression analysis")
1885 (description
1886 "Cufflinks assembles RNA transcripts, estimates their abundances,
1887 and tests for differential expression and regulation in RNA-Seq
1888 samples. It accepts aligned RNA-Seq reads and assembles the
1889 alignments into a parsimonious set of transcripts. Cufflinks then
1890 estimates the relative abundances of these transcripts based on how
1891 many reads support each one, taking into account biases in library
1892 preparation protocols.")
1893 (license license:boost1.0)))
1894
1895 (define-public cutadapt
1896 (package
1897 (name "cutadapt")
1898 (version "1.12")
1899 (source (origin
1900 (method url-fetch)
1901 (uri (string-append
1902 "https://github.com/marcelm/cutadapt/archive/v"
1903 version ".tar.gz"))
1904 (file-name (string-append name "-" version ".tar.gz"))
1905 (sha256
1906 (base32
1907 "19smhh6444ikn4jlmyhvffw4m5aw7yg07rqsk7arg8dkwyga1i4v"))))
1908 (build-system python-build-system)
1909 (arguments
1910 `(#:phases
1911 (modify-phases %standard-phases
1912 ;; The tests must be run after installation.
1913 (delete 'check)
1914 (add-after 'install 'check
1915 (lambda* (#:key inputs outputs #:allow-other-keys)
1916 (setenv "PYTHONPATH"
1917 (string-append
1918 (getenv "PYTHONPATH")
1919 ":" (assoc-ref outputs "out")
1920 "/lib/python"
1921 (string-take (string-take-right
1922 (assoc-ref inputs "python") 5) 3)
1923 "/site-packages"))
1924 (zero? (system* "nosetests" "-P" "tests")))))))
1925 (inputs
1926 `(("python-xopen" ,python-xopen)))
1927 (native-inputs
1928 `(("python-cython" ,python-cython)
1929 ("python-nose" ,python-nose)))
1930 (home-page "https://cutadapt.readthedocs.io/en/stable/")
1931 (synopsis "Remove adapter sequences from nucleotide sequencing reads")
1932 (description
1933 "Cutadapt finds and removes adapter sequences, primers, poly-A tails and
1934 other types of unwanted sequence from high-throughput sequencing reads.")
1935 (license license:expat)))
1936
1937 (define-public libbigwig
1938 (package
1939 (name "libbigwig")
1940 (version "0.1.4")
1941 (source (origin
1942 (method url-fetch)
1943 (uri (string-append "https://github.com/dpryan79/libBigWig/"
1944 "archive/" version ".tar.gz"))
1945 (file-name (string-append name "-" version ".tar.gz"))
1946 (sha256
1947 (base32
1948 "098rjh35pi4a9q83n8wiwvyzykjqj6l8q189p1xgfw4ghywdlvw1"))))
1949 (build-system gnu-build-system)
1950 (arguments
1951 `(#:test-target "test"
1952 #:make-flags
1953 (list "CC=gcc"
1954 (string-append "prefix=" (assoc-ref %outputs "out")))
1955 #:phases
1956 (modify-phases %standard-phases
1957 (delete 'configure)
1958 (add-before 'check 'disable-curl-test
1959 (lambda _
1960 (substitute* "Makefile"
1961 (("./test/testRemote.*") ""))
1962 #t))
1963 ;; This has been fixed with the upstream commit 4ff6959cd8a0, but
1964 ;; there has not yet been a release containing this change.
1965 (add-before 'install 'create-target-dirs
1966 (lambda* (#:key outputs #:allow-other-keys)
1967 (let ((out (assoc-ref outputs "out")))
1968 (mkdir-p (string-append out "/lib"))
1969 (mkdir-p (string-append out "/include"))
1970 #t))))))
1971 (inputs
1972 `(("zlib" ,zlib)
1973 ("curl" ,curl)))
1974 (native-inputs
1975 `(("doxygen" ,doxygen)))
1976 (home-page "https://github.com/dpryan79/libBigWig")
1977 (synopsis "C library for handling bigWig files")
1978 (description
1979 "This package provides a C library for parsing local and remote BigWig
1980 files.")
1981 (license license:expat)))
1982
1983 (define-public python-pybigwig
1984 (package
1985 (name "python-pybigwig")
1986 (version "0.2.5")
1987 (source (origin
1988 (method url-fetch)
1989 (uri (pypi-uri "pyBigWig" version))
1990 (sha256
1991 (base32
1992 "0yrpdxg3y0sny25x4w22lv1k47jzccqjmg7j4bp0hywklvp0hg7d"))
1993 (modules '((guix build utils)))
1994 (snippet
1995 '(begin
1996 ;; Delete bundled libBigWig sources
1997 (delete-file-recursively "libBigWig")))))
1998 (build-system python-build-system)
1999 (arguments
2000 `(#:phases
2001 (modify-phases %standard-phases
2002 (add-after 'unpack 'link-with-libBigWig
2003 (lambda* (#:key inputs #:allow-other-keys)
2004 (substitute* "setup.py"
2005 (("libs=\\[") "libs=[\"BigWig\", "))
2006 #t)))))
2007 (inputs
2008 `(("libbigwig" ,libbigwig)
2009 ("zlib" ,zlib)
2010 ("curl" ,curl)))
2011 (home-page "https://github.com/dpryan79/pyBigWig")
2012 (synopsis "Access bigWig files in Python using libBigWig")
2013 (description
2014 "This package provides Python bindings to the libBigWig library for
2015 accessing bigWig files.")
2016 (license license:expat)))
2017
2018 (define-public python2-pybigwig
2019 (package-with-python2 python-pybigwig))
2020
2021 (define-public python-dendropy
2022 (package
2023 (name "python-dendropy")
2024 (version "4.2.0")
2025 (source
2026 (origin
2027 (method url-fetch)
2028 (uri (pypi-uri "DendroPy" version))
2029 (sha256
2030 (base32
2031 "15c7s3d5gf19ljsxvq5advaa752wfi7pwrdjyhzmg85hccyvp47p"))
2032 (patches (search-patches "python-dendropy-fix-tests.patch"))))
2033 (build-system python-build-system)
2034 (home-page "http://packages.python.org/DendroPy/")
2035 (synopsis "Library for phylogenetics and phylogenetic computing")
2036 (description
2037 "DendroPy is a library for phylogenetics and phylogenetic computing: reading,
2038 writing, simulation, processing and manipulation of phylogenetic
2039 trees (phylogenies) and characters.")
2040 (license license:bsd-3)
2041 (properties `((python2-variant . ,(delay python2-dendropy))))))
2042
2043 (define-public python2-dendropy
2044 (let ((base (package-with-python2 (strip-python2-variant python-dendropy))))
2045 (package
2046 (inherit base)
2047 (arguments
2048 `(#:python ,python-2
2049 #:phases
2050 (modify-phases %standard-phases
2051 (replace 'check
2052 ;; There is currently a test failure that only happens on some
2053 ;; systems, and only using "setup.py test"
2054 (lambda _ (zero? (system* "nosetests")))))))
2055 (native-inputs `(("python2-nose" ,python2-nose)
2056 ,@(package-native-inputs base))))))
2057
2058 (define-public python-py2bit
2059 (package
2060 (name "python-py2bit")
2061 (version "0.2.1")
2062 (source
2063 (origin
2064 (method url-fetch)
2065 (uri (pypi-uri "py2bit" version))
2066 (sha256
2067 (base32
2068 "1cdf4qlmgwsh1f4k0wdv2sr8x9qn4366p0k3614vbd0fpqiarxrl"))))
2069 (build-system python-build-system)
2070 (home-page "https://github.com/dpryan79/py2bit")
2071 (synopsis "Access 2bit files using lib2bit")
2072 (description
2073 "This package provides Python bindings for lib2bit to access 2bit files
2074 with Python.")
2075 (license license:expat)))
2076
2077 (define-public deeptools
2078 (package
2079 (name "deeptools")
2080 (version "2.5.1")
2081 (source (origin
2082 (method url-fetch)
2083 (uri (string-append "https://github.com/fidelram/deepTools/"
2084 "archive/" version ".tar.gz"))
2085 (file-name (string-append name "-" version ".tar.gz"))
2086 (sha256
2087 (base32
2088 "1q8i12l2gvk4n2s8lhyzwhh9g4qbc8lrk5l7maz00yvd5g6z5540"))))
2089 (build-system python-build-system)
2090 (inputs
2091 `(("python-scipy" ,python-scipy)
2092 ("python-numpy" ,python-numpy)
2093 ("python-numpydoc" ,python-numpydoc)
2094 ("python-matplotlib" ,python-matplotlib)
2095 ("python-pysam" ,python-pysam)
2096 ("python-py2bit" ,python-py2bit)
2097 ("python-pybigwig" ,python-pybigwig)))
2098 (native-inputs
2099 `(("python-mock" ,python-mock) ;for tests
2100 ("python-nose" ,python-nose) ;for tests
2101 ("python-pytz" ,python-pytz))) ;for tests
2102 (home-page "https://github.com/fidelram/deepTools")
2103 (synopsis "Tools for normalizing and visualizing deep-sequencing data")
2104 (description
2105 "DeepTools addresses the challenge of handling the large amounts of data
2106 that are now routinely generated from DNA sequencing centers. To do so,
2107 deepTools contains useful modules to process the mapped reads data to create
2108 coverage files in standard bedGraph and bigWig file formats. By doing so,
2109 deepTools allows the creation of normalized coverage files or the comparison
2110 between two files (for example, treatment and control). Finally, using such
2111 normalized and standardized files, multiple visualizations can be created to
2112 identify enrichments with functional annotations of the genome.")
2113 (license license:gpl3+)))
2114
2115 (define-public diamond
2116 (package
2117 (name "diamond")
2118 (version "0.9.10")
2119 (source (origin
2120 (method url-fetch)
2121 (uri (string-append
2122 "https://github.com/bbuchfink/diamond/archive/v"
2123 version ".tar.gz"))
2124 (file-name (string-append name "-" version ".tar.gz"))
2125 (sha256
2126 (base32
2127 "13qqzwg54n5dqh8pm5n3v8x6gqbczzakphwwjix63qv60hcd5bqd"))))
2128 (build-system cmake-build-system)
2129 (arguments
2130 '(#:tests? #f ; no "check" target
2131 #:phases
2132 (modify-phases %standard-phases
2133 (add-after 'unpack 'remove-native-compilation
2134 (lambda _
2135 (substitute* "CMakeLists.txt" (("-march=native") ""))
2136 #t)))))
2137 (inputs
2138 `(("zlib" ,zlib)))
2139 (home-page "https://github.com/bbuchfink/diamond")
2140 (synopsis "Accelerated BLAST compatible local sequence aligner")
2141 (description
2142 "DIAMOND is a BLAST-compatible local aligner for mapping protein and
2143 translated DNA query sequences against a protein reference database (BLASTP
2144 and BLASTX alignment mode). The speedup over BLAST is up to 20,000 on short
2145 reads at a typical sensitivity of 90-99% relative to BLAST depending on the
2146 data and settings.")
2147 (license license:agpl3+)))
2148
2149 (define-public discrover
2150 (package
2151 (name "discrover")
2152 (version "1.6.0")
2153 (source
2154 (origin
2155 (method url-fetch)
2156 (uri (string-append "https://github.com/maaskola/discrover/archive/"
2157 version ".tar.gz"))
2158 (file-name (string-append name "-" version ".tar.gz"))
2159 (sha256
2160 (base32
2161 "0rah9ja4m0rl5mldd6vag9rwrivw1zrqxssfq8qx64m7961fp68k"))))
2162 (build-system cmake-build-system)
2163 (arguments
2164 `(#:tests? #f ; there are no tests
2165 #:phases
2166 (modify-phases %standard-phases
2167 (add-after 'unpack 'add-missing-includes
2168 (lambda _
2169 (substitute* "src/executioninformation.hpp"
2170 (("#define EXECUTIONINFORMATION_HPP" line)
2171 (string-append line "\n#include <random>")))
2172 (substitute* "src/plasma/fasta.hpp"
2173 (("#define FASTA_HPP" line)
2174 (string-append line "\n#include <random>")))
2175 #t)))))
2176 (inputs
2177 `(("boost" ,boost)
2178 ("cairo" ,cairo)))
2179 (native-inputs
2180 `(("texlive" ,texlive)
2181 ("imagemagick" ,imagemagick)))
2182 (home-page "http://dorina.mdc-berlin.de/public/rajewsky/discrover/")
2183 (synopsis "Discover discriminative nucleotide sequence motifs")
2184 (description "Discrover is a motif discovery method to find binding sites
2185 of nucleic acid binding proteins.")
2186 (license license:gpl3+)))
2187
2188 (define-public eigensoft
2189 (let ((revision "1")
2190 (commit "b14d1e202e21e532536ff8004f0419cd5e259dc7"))
2191 (package
2192 (name "eigensoft")
2193 (version (string-append "6.1.2-"
2194 revision "."
2195 (string-take commit 9)))
2196 (source
2197 (origin
2198 (method git-fetch)
2199 (uri (git-reference
2200 (url "https://github.com/DReichLab/EIG.git")
2201 (commit commit)))
2202 (file-name (string-append "eigensoft-" commit "-checkout"))
2203 (sha256
2204 (base32
2205 "0f5m6k2j5c16xc3xbywcs989xyc26ncy1zfzp9j9n55n9r4xcaiq"))
2206 (modules '((guix build utils)))
2207 ;; Remove pre-built binaries.
2208 (snippet '(begin
2209 (delete-file-recursively "bin")
2210 (mkdir "bin")
2211 #t))))
2212 (build-system gnu-build-system)
2213 (arguments
2214 `(#:tests? #f ; There are no tests.
2215 #:make-flags '("CC=gcc")
2216 #:phases
2217 (modify-phases %standard-phases
2218 ;; There is no configure phase, but the Makefile is in a
2219 ;; sub-directory.
2220 (replace 'configure
2221 (lambda _
2222 (chdir "src")
2223 ;; The link flags are incomplete.
2224 (substitute* "Makefile"
2225 (("-lgsl") "-lgsl -lm -llapack -llapacke -lpthread"))
2226 #t))
2227 ;; The provided install target only copies executables to
2228 ;; the "bin" directory in the build root.
2229 (add-after 'install 'actually-install
2230 (lambda* (#:key outputs #:allow-other-keys)
2231 (let* ((out (assoc-ref outputs "out"))
2232 (bin (string-append out "/bin")))
2233 (for-each (lambda (file)
2234 (install-file file bin))
2235 (find-files "../bin" ".*"))
2236 #t))))))
2237 (inputs
2238 `(("gsl" ,gsl)
2239 ("lapack" ,lapack)
2240 ("openblas" ,openblas)
2241 ("perl" ,perl)
2242 ("gfortran" ,gfortran "lib")))
2243 (home-page "https://github.com/DReichLab/EIG")
2244 (synopsis "Tools for population genetics")
2245 (description "The EIGENSOFT package provides tools for population
2246 genetics and stratification correction. EIGENSOFT implements methods commonly
2247 used in population genetics analyses such as PCA, computation of Tracy-Widom
2248 statistics, and finding related individuals in structured populations. It
2249 comes with a built-in plotting script and supports multiple file formats and
2250 quantitative phenotypes.")
2251 ;; The license of the eigensoft tools is Expat, but since it's
2252 ;; linking with the GNU Scientific Library (GSL) the effective
2253 ;; license is the GPL.
2254 (license license:gpl3+))))
2255
2256 (define-public edirect
2257 (package
2258 (name "edirect")
2259 (version "4.10")
2260 (source (origin
2261 (method url-fetch)
2262 (uri (string-append "ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/"
2263 "versions/2016-05-03/edirect.tar.gz"))
2264 (sha256
2265 (base32
2266 "15zsprak5yh8c1yrz4r1knmb5s8qcmdid4xdhkh3lqcv64l60hli"))))
2267 (build-system perl-build-system)
2268 (arguments
2269 `(#:tests? #f ;no "check" target
2270 #:phases
2271 (modify-phases %standard-phases
2272 (delete 'configure)
2273 (delete 'build)
2274 (replace 'install
2275 (lambda* (#:key outputs #:allow-other-keys)
2276 (let ((target (string-append (assoc-ref outputs "out")
2277 "/bin")))
2278 (mkdir-p target)
2279 (install-file "edirect.pl" target)
2280 #t)))
2281 (add-after
2282 'install 'wrap-program
2283 (lambda* (#:key inputs outputs #:allow-other-keys)
2284 ;; Make sure 'edirect.pl' finds all perl inputs at runtime.
2285 (let* ((out (assoc-ref outputs "out"))
2286 (path (getenv "PERL5LIB")))
2287 (wrap-program (string-append out "/bin/edirect.pl")
2288 `("PERL5LIB" ":" prefix (,path)))))))))
2289 (inputs
2290 `(("perl-html-parser" ,perl-html-parser)
2291 ("perl-encode-locale" ,perl-encode-locale)
2292 ("perl-file-listing" ,perl-file-listing)
2293 ("perl-html-tagset" ,perl-html-tagset)
2294 ("perl-html-tree" ,perl-html-tree)
2295 ("perl-http-cookies" ,perl-http-cookies)
2296 ("perl-http-date" ,perl-http-date)
2297 ("perl-http-message" ,perl-http-message)
2298 ("perl-http-negotiate" ,perl-http-negotiate)
2299 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
2300 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
2301 ("perl-net-http" ,perl-net-http)
2302 ("perl-uri" ,perl-uri)
2303 ("perl-www-robotrules" ,perl-www-robotrules)
2304 ("perl" ,perl)))
2305 (home-page "http://www.ncbi.nlm.nih.gov/books/NBK179288/")
2306 (synopsis "Tools for accessing the NCBI's set of databases")
2307 (description
2308 "Entrez Direct (EDirect) is a method for accessing the National Center
2309 for Biotechnology Information's (NCBI) set of interconnected
2310 databases (publication, sequence, structure, gene, variation, expression,
2311 etc.) from a terminal. Functions take search terms from command-line
2312 arguments. Individual operations are combined to build multi-step queries.
2313 Record retrieval and formatting normally complete the process.
2314
2315 EDirect also provides an argument-driven function that simplifies the
2316 extraction of data from document summaries or other results that are returned
2317 in structured XML format. This can eliminate the need for writing custom
2318 software to answer ad hoc questions.")
2319 (license license:public-domain)))
2320
2321 (define-public exonerate
2322 (package
2323 (name "exonerate")
2324 (version "2.4.0")
2325 (source
2326 (origin
2327 (method url-fetch)
2328 (uri
2329 (string-append
2330 "http://ftp.ebi.ac.uk/pub/software/vertebrategenomics/exonerate/"
2331 "exonerate-" version ".tar.gz"))
2332 (sha256
2333 (base32
2334 "0hj0m9xygiqsdxvbg79wq579kbrx1mdrabi2bzqz2zn9qwfjcjgq"))))
2335 (build-system gnu-build-system)
2336 (arguments
2337 `(#:parallel-build? #f)) ; Building in parallel fails on some machines.
2338 (native-inputs
2339 `(("pkg-config" ,pkg-config)))
2340 (inputs
2341 `(("glib" ,glib)))
2342 (home-page
2343 "https://www.ebi.ac.uk/about/vertebrate-genomics/software/exonerate")
2344 (synopsis "Generic tool for biological sequence alignment")
2345 (description
2346 "Exonerate is a generic tool for pairwise sequence comparison. It allows
2347 the alignment of sequences using a many alignment models, either exhaustive
2348 dynamic programming or a variety of heuristics.")
2349 (license license:gpl3)))
2350
2351 (define-public express
2352 (package
2353 (name "express")
2354 (version "1.5.1")
2355 (source (origin
2356 (method url-fetch)
2357 (uri
2358 (string-append
2359 "http://bio.math.berkeley.edu/eXpress/downloads/express-"
2360 version "/express-" version "-src.tgz"))
2361 (sha256
2362 (base32
2363 "03rczxd0gjp2l1jxcmjfmf5j94j77zqyxa6x063zsc585nj40n0c"))))
2364 (build-system cmake-build-system)
2365 (arguments
2366 `(#:tests? #f ;no "check" target
2367 #:phases
2368 (alist-cons-after
2369 'unpack 'use-shared-boost-libs-and-set-bamtools-paths
2370 (lambda* (#:key inputs #:allow-other-keys)
2371 (substitute* "CMakeLists.txt"
2372 (("set\\(Boost_USE_STATIC_LIBS ON\\)")
2373 "set(Boost_USE_STATIC_LIBS OFF)")
2374 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/bamtools/include")
2375 (string-append (assoc-ref inputs "bamtools") "/include/bamtools")))
2376 (substitute* "src/CMakeLists.txt"
2377 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/\\.\\./bamtools/lib")
2378 (string-append (assoc-ref inputs "bamtools") "/lib/bamtools")))
2379 #t)
2380 %standard-phases)))
2381 (inputs
2382 `(("boost" ,boost)
2383 ("bamtools" ,bamtools)
2384 ("protobuf" ,protobuf)
2385 ("zlib" ,zlib)))
2386 (home-page "http://bio.math.berkeley.edu/eXpress")
2387 (synopsis "Streaming quantification for high-throughput genomic sequencing")
2388 (description
2389 "eXpress is a streaming tool for quantifying the abundances of a set of
2390 target sequences from sampled subsequences. Example applications include
2391 transcript-level RNA-Seq quantification, allele-specific/haplotype expression
2392 analysis (from RNA-Seq), transcription factor binding quantification in
2393 ChIP-Seq, and analysis of metagenomic data.")
2394 (license license:artistic2.0)))
2395
2396 (define-public express-beta-diversity
2397 (package
2398 (name "express-beta-diversity")
2399 (version "1.0.7")
2400 (source (origin
2401 (method url-fetch)
2402 (uri
2403 (string-append
2404 "https://github.com/dparks1134/ExpressBetaDiversity/archive/v"
2405 version ".tar.gz"))
2406 (file-name (string-append name "-" version ".tar.gz"))
2407 (sha256
2408 (base32
2409 "1djvdlmqvjf6h0zq7w36y8cl5cli6rgj86x65znl48agnwmzxfxr"))))
2410 (build-system gnu-build-system)
2411 (arguments
2412 `(#:phases
2413 (modify-phases %standard-phases
2414 (delete 'configure)
2415 (add-before 'build 'enter-source (lambda _ (chdir "source") #t))
2416 (replace 'check
2417 (lambda _ (zero? (system* "../bin/ExpressBetaDiversity"
2418 "-u"))))
2419 (add-after 'check 'exit-source (lambda _ (chdir "..") #t))
2420 (replace 'install
2421 (lambda* (#:key outputs #:allow-other-keys)
2422 (let ((bin (string-append (assoc-ref outputs "out")
2423 "/bin")))
2424 (mkdir-p bin)
2425 (install-file "scripts/convertToEBD.py" bin)
2426 (install-file "bin/ExpressBetaDiversity" bin)
2427 #t))))))
2428 (inputs
2429 `(("python" ,python-2)))
2430 (home-page "http://kiwi.cs.dal.ca/Software/ExpressBetaDiversity")
2431 (synopsis "Taxon- and phylogenetic-based beta diversity measures")
2432 (description
2433 "Express Beta Diversity (EBD) calculates ecological beta diversity
2434 (dissimilarity) measures between biological communities. EBD implements a
2435 variety of diversity measures including those that make use of phylogenetic
2436 similarity of community members.")
2437 (license license:gpl3+)))
2438
2439 (define-public fasttree
2440 (package
2441 (name "fasttree")
2442 (version "2.1.10")
2443 (source (origin
2444 (method url-fetch)
2445 (uri (string-append
2446 "http://www.microbesonline.org/fasttree/FastTree-"
2447 version ".c"))
2448 (sha256
2449 (base32
2450 "0vcjdvy1j4m702vmak4svbfkrpcw63k7wymfksjp9a982zy8kjsl"))))
2451 (build-system gnu-build-system)
2452 (arguments
2453 `(#:tests? #f ; no "check" target
2454 #:phases
2455 (modify-phases %standard-phases
2456 (delete 'unpack)
2457 (delete 'configure)
2458 (replace 'build
2459 (lambda* (#:key source #:allow-other-keys)
2460 (and (zero? (system* "gcc"
2461 "-O3"
2462 "-finline-functions"
2463 "-funroll-loops"
2464 "-Wall"
2465 "-o"
2466 "FastTree"
2467 source
2468 "-lm"))
2469 (zero? (system* "gcc"
2470 "-DOPENMP"
2471 "-fopenmp"
2472 "-O3"
2473 "-finline-functions"
2474 "-funroll-loops"
2475 "-Wall"
2476 "-o"
2477 "FastTreeMP"
2478 source
2479 "-lm")))))
2480 (replace 'install
2481 (lambda* (#:key outputs #:allow-other-keys)
2482 (let ((bin (string-append (assoc-ref outputs "out")
2483 "/bin")))
2484 (mkdir-p bin)
2485 (install-file "FastTree" bin)
2486 (install-file "FastTreeMP" bin)
2487 #t))))))
2488 (home-page "http://www.microbesonline.org/fasttree")
2489 (synopsis "Infers approximately-maximum-likelihood phylogenetic trees")
2490 (description
2491 "FastTree can handle alignments with up to a million of sequences in a
2492 reasonable amount of time and memory. For large alignments, FastTree is
2493 100-1,000 times faster than PhyML 3.0 or RAxML 7.")
2494 (license license:gpl2+)))
2495
2496 (define-public fastx-toolkit
2497 (package
2498 (name "fastx-toolkit")
2499 (version "0.0.14")
2500 (source (origin
2501 (method url-fetch)
2502 (uri
2503 (string-append
2504 "https://github.com/agordon/fastx_toolkit/releases/download/"
2505 version "/fastx_toolkit-" version ".tar.bz2"))
2506 (sha256
2507 (base32
2508 "01jqzw386873sr0pjp1wr4rn8fsga2vxs1qfmicvx1pjr72007wy"))))
2509 (build-system gnu-build-system)
2510 (inputs
2511 `(("libgtextutils" ,libgtextutils)))
2512 (native-inputs
2513 `(("pkg-config" ,pkg-config)))
2514 (home-page "http://hannonlab.cshl.edu/fastx_toolkit/")
2515 (synopsis "Tools for FASTA/FASTQ file preprocessing")
2516 (description
2517 "The FASTX-Toolkit is a collection of command line tools for Short-Reads
2518 FASTA/FASTQ files preprocessing.
2519
2520 Next-Generation sequencing machines usually produce FASTA or FASTQ files,
2521 containing multiple short-reads sequences. The main processing of such
2522 FASTA/FASTQ files is mapping the sequences to reference genomes. However, it
2523 is sometimes more productive to preprocess the files before mapping the
2524 sequences to the genome---manipulating the sequences to produce better mapping
2525 results. The FASTX-Toolkit tools perform some of these preprocessing tasks.")
2526 (license license:agpl3+)))
2527
2528 (define-public flexbar
2529 (package
2530 (name "flexbar")
2531 (version "2.5")
2532 (source (origin
2533 (method url-fetch)
2534 (uri
2535 (string-append "mirror://sourceforge/flexbar/"
2536 version "/flexbar_v" version "_src.tgz"))
2537 (sha256
2538 (base32
2539 "13jaykc3y1x8y5nn9j8ljnb79s5y51kyxz46hdmvvjj6qhyympmf"))))
2540 (build-system cmake-build-system)
2541 (arguments
2542 `(#:configure-flags (list
2543 (string-append "-DFLEXBAR_BINARY_DIR="
2544 (assoc-ref %outputs "out")
2545 "/bin/"))
2546 #:phases
2547 (alist-replace
2548 'check
2549 (lambda* (#:key outputs #:allow-other-keys)
2550 (setenv "PATH" (string-append
2551 (assoc-ref outputs "out") "/bin:"
2552 (getenv "PATH")))
2553 (chdir "../flexbar_v2.5_src/test")
2554 (zero? (system* "bash" "flexbar_validate.sh")))
2555 (alist-delete 'install %standard-phases))))
2556 (inputs
2557 `(("tbb" ,tbb)
2558 ("zlib" ,zlib)))
2559 (native-inputs
2560 `(("pkg-config" ,pkg-config)
2561 ("seqan" ,seqan)))
2562 (home-page "http://flexbar.sourceforge.net")
2563 (synopsis "Barcode and adapter removal tool for sequencing platforms")
2564 (description
2565 "Flexbar preprocesses high-throughput nucleotide sequencing data
2566 efficiently. It demultiplexes barcoded runs and removes adapter sequences.
2567 Moreover, trimming and filtering features are provided. Flexbar increases
2568 read mapping rates and improves genome and transcriptome assemblies. It
2569 supports next-generation sequencing data in fasta/q and csfasta/q format from
2570 Illumina, Roche 454, and the SOLiD platform.")
2571 (license license:gpl3)))
2572
2573 (define-public fraggenescan
2574 (package
2575 (name "fraggenescan")
2576 (version "1.30")
2577 (source
2578 (origin
2579 (method url-fetch)
2580 (uri
2581 (string-append "mirror://sourceforge/fraggenescan/"
2582 "FragGeneScan" version ".tar.gz"))
2583 (sha256
2584 (base32 "158dcnwczgcyhwm4qlx19sanrwgdpzf6bn2y57mbpx55lkgz1mzj"))))
2585 (build-system gnu-build-system)
2586 (arguments
2587 `(#:phases
2588 (modify-phases %standard-phases
2589 (delete 'configure)
2590 (add-before 'build 'patch-paths
2591 (lambda* (#:key outputs #:allow-other-keys)
2592 (let* ((out (string-append (assoc-ref outputs "out")))
2593 (share (string-append out "/share/fraggenescan/")))
2594 (substitute* "run_FragGeneScan.pl"
2595 (("system\\(\"rm")
2596 (string-append "system(\"" (which "rm")))
2597 (("system\\(\"mv")
2598 (string-append "system(\"" (which "mv")))
2599 (("\\\"awk") (string-append "\"" (which "awk")))
2600 ;; This script and other programs expect the training files
2601 ;; to be in the non-standard location bin/train/XXX. Change
2602 ;; this to be share/fraggenescan/train/XXX instead.
2603 (("^\\$train.file = \\$dir.*")
2604 (string-append "$train_file = \""
2605 share
2606 "train/\".$FGS_train_file;")))
2607 (substitute* "run_hmm.c"
2608 (("^ strcat\\(train_dir, \\\"train/\\\"\\);")
2609 (string-append " strcpy(train_dir, \"" share "/train/\");"))))
2610 #t))
2611 (replace 'build
2612 (lambda _ (and (zero? (system* "make" "clean"))
2613 (zero? (system* "make" "fgs")))))
2614 (replace 'install
2615 (lambda* (#:key outputs #:allow-other-keys)
2616 (let* ((out (string-append (assoc-ref outputs "out")))
2617 (bin (string-append out "/bin/"))
2618 (share (string-append out "/share/fraggenescan/train")))
2619 (install-file "run_FragGeneScan.pl" bin)
2620 (install-file "FragGeneScan" bin)
2621 (copy-recursively "train" share))))
2622 (delete 'check)
2623 (add-after 'install 'post-install-check
2624 ;; In lieu of 'make check', run one of the examples and check the
2625 ;; output files gets created.
2626 (lambda* (#:key outputs #:allow-other-keys)
2627 (let* ((out (string-append (assoc-ref outputs "out")))
2628 (bin (string-append out "/bin/"))
2629 (frag (string-append bin "run_FragGeneScan.pl")))
2630 (and (zero? (system* frag ; Test complete genome.
2631 "-genome=./example/NC_000913.fna"
2632 "-out=./test2"
2633 "-complete=1"
2634 "-train=complete"))
2635 (file-exists? "test2.faa")
2636 (file-exists? "test2.ffn")
2637 (file-exists? "test2.gff")
2638 (file-exists? "test2.out")
2639 (zero? (system* ; Test incomplete sequences.
2640 frag
2641 "-genome=./example/NC_000913-fgs.ffn"
2642 "-out=out"
2643 "-complete=0"
2644 "-train=454_30")))))))))
2645 (inputs
2646 `(("perl" ,perl)
2647 ("python" ,python-2))) ;not compatible with python 3.
2648 (home-page "https://sourceforge.net/projects/fraggenescan/")
2649 (synopsis "Finds potentially fragmented genes in short reads")
2650 (description
2651 "FragGeneScan is a program for predicting bacterial and archaeal genes in
2652 short and error-prone DNA sequencing reads. It can also be applied to predict
2653 genes in incomplete assemblies or complete genomes.")
2654 ;; GPL3+ according to private correspondense with the authors.
2655 (license license:gpl3+)))
2656
2657 (define-public fxtract
2658 (let ((util-commit "776ca85a18a47492af3794745efcb4a905113115"))
2659 (package
2660 (name "fxtract")
2661 (version "2.3")
2662 (source
2663 (origin
2664 (method url-fetch)
2665 (uri (string-append
2666 "https://github.com/ctSkennerton/fxtract/archive/"
2667 version ".tar.gz"))
2668 (file-name (string-append "ctstennerton-util-"
2669 (string-take util-commit 7)
2670 "-checkout"))
2671 (sha256
2672 (base32
2673 "0275cfdhis8517hm01is62062swmi06fxzifq7mr3knbbxjlaiwj"))))
2674 (build-system gnu-build-system)
2675 (arguments
2676 `(#:make-flags (list
2677 (string-append "PREFIX=" (assoc-ref %outputs "out"))
2678 "CC=gcc")
2679 #:test-target "fxtract_test"
2680 #:phases
2681 (modify-phases %standard-phases
2682 (delete 'configure)
2683 (add-before 'build 'copy-util
2684 (lambda* (#:key inputs #:allow-other-keys)
2685 (rmdir "util")
2686 (copy-recursively (assoc-ref inputs "ctskennerton-util") "util")
2687 #t))
2688 ;; Do not use make install as this requires additional dependencies.
2689 (replace 'install
2690 (lambda* (#:key outputs #:allow-other-keys)
2691 (let* ((out (assoc-ref outputs "out"))
2692 (bin (string-append out"/bin")))
2693 (install-file "fxtract" bin)
2694 #t))))))
2695 (inputs
2696 `(("pcre" ,pcre)
2697 ("zlib" ,zlib)))
2698 (native-inputs
2699 ;; ctskennerton-util is licensed under GPL2.
2700 `(("ctskennerton-util"
2701 ,(origin
2702 (method git-fetch)
2703 (uri (git-reference
2704 (url "https://github.com/ctSkennerton/util.git")
2705 (commit util-commit)))
2706 (file-name (string-append
2707 "ctstennerton-util-" util-commit "-checkout"))
2708 (sha256
2709 (base32
2710 "0cls1hd4vgj3f36fpzzg4xc77d6f3hpc60cbpfmn2gdr7ykzzad7"))))))
2711 (home-page "https://github.com/ctSkennerton/fxtract")
2712 (synopsis "Extract sequences from FASTA and FASTQ files")
2713 (description
2714 "Fxtract extracts sequences from a protein or nucleotide fastx (FASTA
2715 or FASTQ) file given a subsequence. It uses a simple substring search for
2716 basic tasks but can change to using POSIX regular expressions, PCRE, hash
2717 lookups or multi-pattern searching as required. By default fxtract looks in
2718 the sequence of each record but can also be told to look in the header,
2719 comment or quality sections.")
2720 ;; 'util' requires SSE instructions.
2721 (supported-systems '("x86_64-linux"))
2722 (license license:expat))))
2723
2724 (define-public gemma
2725 (package
2726 (name "gemma")
2727 (version "0.96")
2728 (source (origin
2729 (method url-fetch)
2730 (uri (string-append "https://github.com/xiangzhou/GEMMA/archive/v"
2731 version ".tar.gz"))
2732 (file-name (string-append name "-" version ".tar.gz"))
2733 (sha256
2734 (base32
2735 "055ynn16gd12pf78n4vr2a9jlwsbwzajpdnf2y2yilg1krfff222"))
2736 (patches (search-patches "gemma-intel-compat.patch"))))
2737 (inputs
2738 `(("gsl" ,gsl)
2739 ("lapack" ,lapack)
2740 ("zlib" ,zlib)))
2741 (build-system gnu-build-system)
2742 (arguments
2743 `(#:make-flags
2744 '(,@(match (%current-system)
2745 ("x86_64-linux"
2746 '("FORCE_DYNAMIC=1"))
2747 ("i686-linux"
2748 '("FORCE_DYNAMIC=1" "FORCE_32BIT=1"))
2749 (_
2750 '("FORCE_DYNAMIC=1" "NO_INTEL_COMPAT=1"))))
2751 #:phases
2752 (modify-phases %standard-phases
2753 (delete 'configure)
2754 (add-before 'build 'bin-mkdir
2755 (lambda _
2756 (mkdir-p "bin")
2757 #t))
2758 (replace 'install
2759 (lambda* (#:key outputs #:allow-other-keys)
2760 (let ((out (assoc-ref outputs "out")))
2761 (install-file "bin/gemma"
2762 (string-append
2763 out "/bin")))
2764 #t)))
2765 #:tests? #f)) ; no tests included yet
2766 (home-page "https://github.com/xiangzhou/GEMMA")
2767 (synopsis "Tool for genome-wide efficient mixed model association")
2768 (description
2769 "Genome-wide Efficient Mixed Model Association (GEMMA) provides a
2770 standard linear mixed model resolver with application in genome-wide
2771 association studies (GWAS).")
2772 (license license:gpl3)))
2773
2774 (define-public grit
2775 (package
2776 (name "grit")
2777 (version "2.0.2")
2778 (source (origin
2779 (method url-fetch)
2780 (uri (string-append
2781 "https://github.com/nboley/grit/archive/"
2782 version ".tar.gz"))
2783 (file-name (string-append name "-" version ".tar.gz"))
2784 (sha256
2785 (base32
2786 "157in84dj70wimbind3x7sy1whs3h57qfgcnj2s6lrd38fbrb7mj"))))
2787 (build-system python-build-system)
2788 (arguments
2789 `(#:python ,python-2
2790 #:phases
2791 (alist-cons-after
2792 'unpack 'generate-from-cython-sources
2793 (lambda* (#:key inputs outputs #:allow-other-keys)
2794 ;; Delete these C files to force fresh generation from pyx sources.
2795 (delete-file "grit/sparsify_support_fns.c")
2796 (delete-file "grit/call_peaks_support_fns.c")
2797 (substitute* "setup.py"
2798 (("Cython.Setup") "Cython.Build")
2799 ;; Add numpy include path to fix compilation
2800 (("pyx\", \\]")
2801 (string-append "pyx\", ], include_dirs = ['"
2802 (assoc-ref inputs "python-numpy")
2803 "/lib/python2.7/site-packages/numpy/core/include/"
2804 "']"))) #t)
2805 %standard-phases)))
2806 (inputs
2807 `(("python-scipy" ,python2-scipy)
2808 ("python-numpy" ,python2-numpy)
2809 ("python-pysam" ,python2-pysam)
2810 ("python-networkx" ,python2-networkx)))
2811 (native-inputs
2812 `(("python-cython" ,python2-cython)))
2813 (home-page "http://grit-bio.org")
2814 (synopsis "Tool for integrative analysis of RNA-seq type assays")
2815 (description
2816 "GRIT is designed to use RNA-seq, TES, and TSS data to build and quantify
2817 full length transcript models. When none of these data sources are available,
2818 GRIT can be run by providing a candidate set of TES or TSS sites. In
2819 addition, GRIT can merge in reference junctions and gene boundaries. GRIT can
2820 also be run in quantification mode, where it uses a provided GTF file and just
2821 estimates transcript expression.")
2822 (license license:gpl3+)))
2823
2824 (define-public hisat
2825 (package
2826 (name "hisat")
2827 (version "0.1.4")
2828 (source (origin
2829 (method url-fetch)
2830 (uri (string-append
2831 "http://ccb.jhu.edu/software/hisat/downloads/hisat-"
2832 version "-beta-source.zip"))
2833 (sha256
2834 (base32
2835 "1k381ydranqxp09yf2y7w1d0chz5d59vb6jchi89hbb0prq19lk5"))))
2836 (build-system gnu-build-system)
2837 (arguments
2838 `(#:tests? #f ;no check target
2839 #:make-flags '("allall"
2840 ;; Disable unsupported `popcnt' instructions on
2841 ;; architectures other than x86_64
2842 ,@(if (string-prefix? "x86_64"
2843 (or (%current-target-system)
2844 (%current-system)))
2845 '()
2846 '("POPCNT_CAPABILITY=0")))
2847 #:phases
2848 (alist-cons-after
2849 'unpack 'patch-sources
2850 (lambda _
2851 ;; XXX Cannot use snippet because zip files are not supported
2852 (substitute* "Makefile"
2853 (("^CC = .*$") "CC = gcc")
2854 (("^CPP = .*$") "CPP = g++")
2855 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
2856 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
2857 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
2858 (substitute* '("hisat-build" "hisat-inspect")
2859 (("/usr/bin/env") (which "env"))))
2860 (alist-replace
2861 'install
2862 (lambda* (#:key outputs #:allow-other-keys)
2863 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
2864 (for-each (lambda (file)
2865 (install-file file bin))
2866 (find-files
2867 "."
2868 "hisat(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))))
2869 (alist-delete 'configure %standard-phases)))))
2870 (native-inputs
2871 `(("unzip" ,unzip)))
2872 (inputs
2873 `(("perl" ,perl)
2874 ("python" ,python)
2875 ("zlib" ,zlib)))
2876 ;; Non-portable SSE instructions are used so building fails on platforms
2877 ;; other than x86_64.
2878 (supported-systems '("x86_64-linux"))
2879 (home-page "http://ccb.jhu.edu/software/hisat/index.shtml")
2880 (synopsis "Hierarchical indexing for spliced alignment of transcripts")
2881 (description
2882 "HISAT is a fast and sensitive spliced alignment program for mapping
2883 RNA-seq reads. In addition to one global FM index that represents a whole
2884 genome, HISAT uses a large set of small FM indexes that collectively cover the
2885 whole genome. These small indexes (called local indexes) combined with
2886 several alignment strategies enable effective alignment of RNA-seq reads, in
2887 particular, reads spanning multiple exons.")
2888 (license license:gpl3+)))
2889
2890 (define-public hisat2
2891 (package
2892 (name "hisat2")
2893 (version "2.0.5")
2894 (source
2895 (origin
2896 (method url-fetch)
2897 ;; FIXME: a better source URL is
2898 ;; (string-append "ftp://ftp.ccb.jhu.edu/pub/infphilo/hisat2"
2899 ;; "/downloads/hisat2-" version "-source.zip")
2900 ;; with hash "0lywnr8kijwsc2aw10dwxic0n0yvip6fl3rjlvc8zzwahamy4x7g"
2901 ;; but it is currently unavailable.
2902 (uri "https://github.com/infphilo/hisat2/archive/cba6e8cb.tar.gz")
2903 (file-name (string-append name "-" version ".tar.gz"))
2904 (sha256
2905 (base32
2906 "1mf2hdsyv7cd97xm9mp9a4qws02yrj95y6w6f6cdwnq0klp81r50"))))
2907 (build-system gnu-build-system)
2908 (arguments
2909 `(#:tests? #f ; no check target
2910 #:make-flags (list "CC=gcc" "CXX=g++" "allall")
2911 #:modules ((guix build gnu-build-system)
2912 (guix build utils)
2913 (srfi srfi-26))
2914 #:phases
2915 (modify-phases %standard-phases
2916 (add-after 'unpack 'make-deterministic
2917 (lambda _
2918 (substitute* "Makefile"
2919 (("`date`") "0"))
2920 #t))
2921 (delete 'configure)
2922 (replace 'install
2923 (lambda* (#:key outputs #:allow-other-keys)
2924 (let* ((out (assoc-ref outputs "out"))
2925 (bin (string-append out "/bin/"))
2926 (doc (string-append out "/share/doc/hisat2/")))
2927 (for-each
2928 (cut install-file <> bin)
2929 (find-files "."
2930 "hisat2(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))
2931 (mkdir-p doc)
2932 (install-file "doc/manual.inc.html" doc))
2933 #t)))))
2934 (native-inputs
2935 `(("unzip" ,unzip) ; needed for archive from ftp
2936 ("perl" ,perl)
2937 ("pandoc" ,ghc-pandoc))) ; for documentation
2938 (home-page "http://ccb.jhu.edu/software/hisat2/index.shtml")
2939 (synopsis "Graph-based alignment of genomic sequencing reads")
2940 (description "HISAT2 is a fast and sensitive alignment program for mapping
2941 next-generation sequencing reads (both DNA and RNA) to a population of human
2942 genomes (as well as to a single reference genome). In addition to using one
2943 global @dfn{graph FM} (GFM) index that represents a population of human
2944 genomes, HISAT2 uses a large set of small GFM indexes that collectively cover
2945 the whole genome. These small indexes, combined with several alignment
2946 strategies, enable rapid and accurate alignment of sequencing reads. This new
2947 indexing scheme is called a @dfn{Hierarchical Graph FM index} (HGFM).")
2948 ;; HISAT2 contains files from Bowtie2, which is released under
2949 ;; GPLv2 or later. The HISAT2 source files are released under
2950 ;; GPLv3 or later.
2951 (license license:gpl3+)))
2952
2953 (define-public hmmer
2954 (package
2955 (name "hmmer")
2956 (version "3.1b2")
2957 (source
2958 (origin
2959 (method url-fetch)
2960 (uri (string-append
2961 "http://eddylab.org/software/hmmer"
2962 (version-prefix version 1) "/"
2963 version "/hmmer-" version ".tar.gz"))
2964 (sha256
2965 (base32
2966 "0djmgc0pfli0jilfx8hql1axhwhqxqb8rxg2r5rg07aw73sfs5nx"))
2967 (patches (search-patches "hmmer-remove-cpu-specificity.patch"))))
2968 (build-system gnu-build-system)
2969 (native-inputs `(("perl" ,perl)))
2970 (home-page "http://hmmer.org/")
2971 (synopsis "Biosequence analysis using profile hidden Markov models")
2972 (description
2973 "HMMER is used for searching sequence databases for homologs of protein
2974 sequences, and for making protein sequence alignments. It implements methods
2975 using probabilistic models called profile hidden Markov models (profile
2976 HMMs).")
2977 (license (list license:gpl3+
2978 ;; The bundled library 'easel' is distributed
2979 ;; under The Janelia Farm Software License.
2980 (license:non-copyleft
2981 "file://easel/LICENSE"
2982 "See easel/LICENSE in the distribution.")))))
2983
2984 (define-public htseq
2985 (package
2986 (name "htseq")
2987 (version "0.9.1")
2988 (source (origin
2989 (method url-fetch)
2990 (uri (pypi-uri "HTSeq" version))
2991 (sha256
2992 (base32
2993 "11flgb1381xdhk43bzbfm3vhnszkpqg6jk76rpa5xd1zbrvvlnxg"))))
2994 (build-system python-build-system)
2995 (native-inputs
2996 `(("python-cython" ,python-cython)))
2997 ;; Numpy needs to be propagated when htseq is used as a Python library.
2998 (propagated-inputs
2999 `(("python-numpy" ,python-numpy)))
3000 (inputs
3001 `(("python-pysam" ,python-pysam)
3002 ("python-matplotlib" ,python-matplotlib)))
3003 (home-page "http://www-huber.embl.de/users/anders/HTSeq/")
3004 (synopsis "Analysing high-throughput sequencing data with Python")
3005 (description
3006 "HTSeq is a Python package that provides infrastructure to process data
3007 from high-throughput sequencing assays.")
3008 (license license:gpl3+)))
3009
3010 (define-public python2-htseq
3011 (package-with-python2 htseq))
3012
3013 (define-public java-htsjdk
3014 (package
3015 (name "java-htsjdk")
3016 (version "1.129")
3017 (source (origin
3018 (method url-fetch)
3019 (uri (string-append
3020 "https://github.com/samtools/htsjdk/archive/"
3021 version ".tar.gz"))
3022 (file-name (string-append name "-" version ".tar.gz"))
3023 (sha256
3024 (base32
3025 "0asdk9b8jx2ij7yd6apg9qx03li8q7z3ml0qy2r2qczkra79y6fw"))
3026 (modules '((guix build utils)))
3027 ;; remove build dependency on git
3028 (snippet '(substitute* "build.xml"
3029 (("failifexecutionfails=\"true\"")
3030 "failifexecutionfails=\"false\"")))))
3031 (build-system ant-build-system)
3032 (arguments
3033 `(#:tests? #f ; test require Internet access
3034 #:make-flags
3035 (list (string-append "-Ddist=" (assoc-ref %outputs "out")
3036 "/share/java/htsjdk/"))
3037 #:build-target "all"
3038 #:phases
3039 (modify-phases %standard-phases
3040 ;; The build phase also installs the jars
3041 (delete 'install))))
3042 (home-page "http://samtools.github.io/htsjdk/")
3043 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3044 (description
3045 "HTSJDK is an implementation of a unified Java library for accessing
3046 common file formats, such as SAM and VCF, used for high-throughput
3047 sequencing (HTS) data. There are also an number of useful utilities for
3048 manipulating HTS data.")
3049 (license license:expat)))
3050
3051 (define-public htslib
3052 (package
3053 (name "htslib")
3054 (version "1.5")
3055 (source (origin
3056 (method url-fetch)
3057 (uri (string-append
3058 "https://github.com/samtools/htslib/releases/download/"
3059 version "/htslib-" version ".tar.bz2"))
3060 (sha256
3061 (base32
3062 "0bcjmnbwp2bib1z1bkrp95w9v2syzdwdfqww10mkb1hxlmg52ax0"))))
3063 (build-system gnu-build-system)
3064 (arguments
3065 `(#:phases
3066 (modify-phases %standard-phases
3067 (add-after
3068 'unpack 'patch-tests
3069 (lambda _
3070 (substitute* "test/test.pl"
3071 (("/bin/bash") (which "bash")))
3072 #t)))))
3073 (inputs
3074 `(("openssl" ,openssl)
3075 ("curl" ,curl)
3076 ("zlib" ,zlib)))
3077 (native-inputs
3078 `(("perl" ,perl)))
3079 (home-page "http://www.htslib.org")
3080 (synopsis "C library for reading/writing high-throughput sequencing data")
3081 (description
3082 "HTSlib is a C library for reading/writing high-throughput sequencing
3083 data. It also provides the bgzip, htsfile, and tabix utilities.")
3084 ;; Files under cram/ are released under the modified BSD license;
3085 ;; the rest is released under the Expat license
3086 (license (list license:expat license:bsd-3))))
3087
3088 ;; This package should be removed once no packages rely upon it.
3089 (define htslib-1.3
3090 (package
3091 (inherit htslib)
3092 (version "1.3.1")
3093 (source (origin
3094 (method url-fetch)
3095 (uri (string-append
3096 "https://github.com/samtools/htslib/releases/download/"
3097 version "/htslib-" version ".tar.bz2"))
3098 (sha256
3099 (base32
3100 "1rja282fwdc25ql6izkhdyh8ppw8x2fs0w0js78zgkmqjlikmma9"))))))
3101
3102 (define-public idr
3103 (package
3104 (name "idr")
3105 (version "2.0.0")
3106 (source (origin
3107 (method url-fetch)
3108 (uri (string-append
3109 "https://github.com/nboley/idr/archive/"
3110 version ".tar.gz"))
3111 (file-name (string-append name "-" version ".tar.gz"))
3112 (sha256
3113 (base32
3114 "1k3x44biak00aiv3hpm1yd6nn4hhp7n0qnbs3zh2q9sw7qr1qj5r"))))
3115 (build-system python-build-system)
3116 (arguments
3117 `(#:tests? #f)) ; FIXME: "ImportError: No module named 'utility'"
3118 (propagated-inputs
3119 `(("python-scipy" ,python-scipy)
3120 ("python-sympy" ,python-sympy)
3121 ("python-numpy" ,python-numpy)
3122 ("python-matplotlib" ,python-matplotlib)))
3123 (native-inputs
3124 `(("python-cython" ,python-cython)))
3125 (home-page "https://github.com/nboley/idr")
3126 (synopsis "Tool to measure the irreproducible discovery rate (IDR)")
3127 (description
3128 "The IDR (Irreproducible Discovery Rate) framework is a unified approach
3129 to measure the reproducibility of findings identified from replicate
3130 experiments and provide highly stable thresholds based on reproducibility.")
3131 (license license:gpl3+)))
3132
3133 (define-public jellyfish
3134 (package
3135 (name "jellyfish")
3136 (version "2.2.4")
3137 (source (origin
3138 (method url-fetch)
3139 (uri (string-append "https://github.com/gmarcais/Jellyfish/"
3140 "releases/download/v" version
3141 "/jellyfish-" version ".tar.gz"))
3142 (sha256
3143 (base32
3144 "0a6xnynqy2ibfbfz86b9g2m2dgm7f1469pmymkpam333gi3p26nk"))))
3145 (build-system gnu-build-system)
3146 (outputs '("out" ;for library
3147 "ruby" ;for Ruby bindings
3148 "python")) ;for Python bindings
3149 (arguments
3150 `(#:configure-flags
3151 (list (string-append "--enable-ruby-binding="
3152 (assoc-ref %outputs "ruby"))
3153 (string-append "--enable-python-binding="
3154 (assoc-ref %outputs "python")))
3155 #:phases
3156 (modify-phases %standard-phases
3157 (add-before 'check 'set-SHELL-variable
3158 (lambda _
3159 ;; generator_manager.hpp either uses /bin/sh or $SHELL
3160 ;; to run tests.
3161 (setenv "SHELL" (which "bash"))
3162 #t)))))
3163 (native-inputs
3164 `(("bc" ,bc)
3165 ("time" ,time)
3166 ("ruby" ,ruby)
3167 ("python" ,python-2)))
3168 (synopsis "Tool for fast counting of k-mers in DNA")
3169 (description
3170 "Jellyfish is a tool for fast, memory-efficient counting of k-mers in
3171 DNA. A k-mer is a substring of length k, and counting the occurrences of all
3172 such substrings is a central step in many analyses of DNA sequence. Jellyfish
3173 is a command-line program that reads FASTA and multi-FASTA files containing
3174 DNA sequences. It outputs its k-mer counts in a binary format, which can be
3175 translated into a human-readable text format using the @code{jellyfish dump}
3176 command, or queried for specific k-mers with @code{jellyfish query}.")
3177 (home-page "http://www.genome.umd.edu/jellyfish.html")
3178 ;; From their website: JELLYFISH runs on 64-bit Intel-compatible processors
3179 (supported-systems '("x86_64-linux"))
3180 ;; The combined work is published under the GPLv3 or later. Individual
3181 ;; files such as lib/jsoncpp.cpp are released under the Expat license.
3182 (license (list license:gpl3+ license:expat))))
3183
3184 (define-public khmer
3185 (package
3186 (name "khmer")
3187 (version "2.0")
3188 (source
3189 (origin
3190 (method url-fetch)
3191 (uri (pypi-uri "khmer" version))
3192 (sha256
3193 (base32
3194 "0wb05shqh77v00256qlm68vbbx3kl76fyzihszbz5nhanl4ni33a"))
3195 (patches (search-patches "khmer-use-libraries.patch"))))
3196 (build-system python-build-system)
3197 (arguments
3198 `(#:phases
3199 (modify-phases %standard-phases
3200 (add-after 'unpack 'set-paths
3201 (lambda* (#:key inputs outputs #:allow-other-keys)
3202 ;; Delete bundled libraries.
3203 (delete-file-recursively "third-party/zlib")
3204 (delete-file-recursively "third-party/bzip2")
3205 ;; Replace bundled seqan.
3206 (let* ((seqan-all "third-party/seqan")
3207 (seqan-include (string-append
3208 seqan-all "/core/include")))
3209 (delete-file-recursively seqan-all)
3210 (copy-recursively (string-append (assoc-ref inputs "seqan")
3211 "/include/seqan")
3212 (string-append seqan-include "/seqan")))
3213 ;; We do not replace the bundled MurmurHash as the canonical
3214 ;; repository for this code 'SMHasher' is unsuitable for
3215 ;; providing a library. See
3216 ;; https://lists.gnu.org/archive/html/guix-devel/2016-06/msg00977.html
3217 #t))
3218 (add-after 'unpack 'set-cc
3219 (lambda _
3220 (setenv "CC" "gcc")
3221 #t))
3222 ;; It is simpler to test after installation.
3223 (delete 'check)
3224 (add-after 'install 'post-install-check
3225 (lambda* (#:key inputs outputs #:allow-other-keys)
3226 (let ((out (assoc-ref outputs "out")))
3227 (setenv "PATH"
3228 (string-append
3229 (getenv "PATH")
3230 ":"
3231 (assoc-ref outputs "out")
3232 "/bin"))
3233 (setenv "PYTHONPATH"
3234 (string-append
3235 (getenv "PYTHONPATH")
3236 ":"
3237 out
3238 "/lib/python"
3239 (string-take (string-take-right
3240 (assoc-ref inputs "python") 5) 3)
3241 "/site-packages"))
3242 (with-directory-excursion "build"
3243 (zero? (system* "nosetests" "khmer" "--attr"
3244 "!known_failing")))))))))
3245 (native-inputs
3246 `(("seqan" ,seqan)
3247 ("python-nose" ,python-nose)))
3248 (inputs
3249 `(("zlib" ,zlib)
3250 ("bzip2" ,bzip2)
3251 ("python-screed" ,python-screed)
3252 ("python-bz2file" ,python-bz2file)
3253 ;; Tests fail when gcc-5 is used for compilation. Use gcc-4.9 at least
3254 ;; until the next version of khmer (likely 2.1) is released.
3255 ("gcc" ,gcc-4.9)))
3256 (home-page "https://khmer.readthedocs.org/")
3257 (synopsis "K-mer counting, filtering and graph traversal library")
3258 (description "The khmer software is a set of command-line tools for
3259 working with DNA shotgun sequencing data from genomes, transcriptomes,
3260 metagenomes and single cells. Khmer can make de novo assemblies faster, and
3261 sometimes better. Khmer can also identify and fix problems with shotgun
3262 data.")
3263 ;; When building on i686, armhf and mips64el, we get the following error:
3264 ;; error: ['khmer', 'khmer.tests', 'oxli'] require 64-bit operating system
3265 (supported-systems '("x86_64-linux"))
3266 (license license:bsd-3)))
3267
3268 (define-public kaiju
3269 (package
3270 (name "kaiju")
3271 (version "1.5.0")
3272 (source (origin
3273 (method url-fetch)
3274 (uri (string-append
3275 "https://github.com/bioinformatics-centre/kaiju/archive/v"
3276 version ".tar.gz"))
3277 (file-name (string-append name "-" version ".tar.gz"))
3278 (sha256
3279 (base32
3280 "0afbfalfw9y39bkwnqjrh9bghs118ws1pzj5h8l0nblgn3mbjdks"))))
3281 (build-system gnu-build-system)
3282 (arguments
3283 `(#:tests? #f ; There are no tests.
3284 #:phases
3285 (modify-phases %standard-phases
3286 (delete 'configure)
3287 (add-before 'build 'move-to-src-dir
3288 (lambda _ (chdir "src") #t))
3289 (replace 'install
3290 (lambda* (#:key inputs outputs #:allow-other-keys)
3291 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
3292 (mkdir-p bin)
3293 (chdir "..")
3294 (copy-recursively "bin" bin)
3295 (copy-recursively "util" bin))
3296 #t)))))
3297 (inputs
3298 `(("perl" ,perl)))
3299 (home-page "http://kaiju.binf.ku.dk/")
3300 (synopsis "Fast and sensitive taxonomic classification for metagenomics")
3301 (description "Kaiju is a program for sensitive taxonomic classification
3302 of high-throughput sequencing reads from metagenomic whole genome sequencing
3303 experiments.")
3304 (license license:gpl3+)))
3305
3306 (define-public macs
3307 (package
3308 (name "macs")
3309 (version "2.1.0.20151222")
3310 (source (origin
3311 (method url-fetch)
3312 (uri (pypi-uri "MACS2" version))
3313 (sha256
3314 (base32
3315 "1r2hcz6irhcq7lwbafjks98jbn34hv05avgbdjnp6w6mlfjkf8x5"))))
3316 (build-system python-build-system)
3317 (arguments
3318 `(#:python ,python-2 ; only compatible with Python 2.7
3319 #:tests? #f)) ; no test target
3320 (inputs
3321 `(("python-numpy" ,python2-numpy)))
3322 (home-page "https://github.com/taoliu/MACS/")
3323 (synopsis "Model based analysis for ChIP-Seq data")
3324 (description
3325 "MACS is an implementation of a ChIP-Seq analysis algorithm for
3326 identifying transcript factor binding sites named Model-based Analysis of
3327 ChIP-Seq (MACS). MACS captures the influence of genome complexity to evaluate
3328 the significance of enriched ChIP regions and it improves the spatial
3329 resolution of binding sites through combining the information of both
3330 sequencing tag position and orientation.")
3331 (license license:bsd-3)))
3332
3333 (define-public mafft
3334 (package
3335 (name "mafft")
3336 (version "7.310")
3337 (source (origin
3338 (method url-fetch)
3339 (uri (string-append
3340 "http://mafft.cbrc.jp/alignment/software/mafft-" version
3341 "-without-extensions-src.tgz"))
3342 (file-name (string-append name "-" version ".tgz"))
3343 (sha256
3344 (base32
3345 "0gbsaz6z2qa307kd7wfb06c3y4ikmv1hsdvlns11f6zq4w1z9pwc"))))
3346 (build-system gnu-build-system)
3347 (arguments
3348 `(#:tests? #f ; no automated tests, though there are tests in the read me
3349 #:make-flags (let ((out (assoc-ref %outputs "out")))
3350 (list (string-append "PREFIX=" out)
3351 (string-append "BINDIR="
3352 (string-append out "/bin"))))
3353 #:phases
3354 (modify-phases %standard-phases
3355 (add-after 'unpack 'enter-dir
3356 (lambda _ (chdir "core") #t))
3357 (add-after 'enter-dir 'patch-makefile
3358 (lambda _
3359 ;; on advice from the MAFFT authors, there is no need to
3360 ;; distribute mafft-profile, mafft-distance, or
3361 ;; mafft-homologs.rb as they are too "specialised".
3362 (substitute* "Makefile"
3363 ;; remove mafft-homologs.rb from SCRIPTS
3364 (("^SCRIPTS = mafft mafft-homologs.rb")
3365 "SCRIPTS = mafft")
3366 ;; remove mafft-homologs from MANPAGES
3367 (("^MANPAGES = mafft.1 mafft-homologs.1")
3368 "MANPAGES = mafft.1")
3369 ;; remove mafft-distance from PROGS
3370 (("^PROGS = dvtditr dndfast7 dndblast sextet5 mafft-distance")
3371 "PROGS = dvtditr dndfast7 dndblast sextet5")
3372 ;; remove mafft-profile from PROGS
3373 (("splittbfast disttbfast tbfast mafft-profile 2cl mccaskillwrap")
3374 "splittbfast disttbfast tbfast f2cl mccaskillwrap")
3375 (("^rm -f mafft-profile mafft-profile.exe") "#")
3376 (("^rm -f mafft-distance mafft-distance.exe") ")#")
3377 ;; do not install MAN pages in libexec folder
3378 (("^\t\\$\\(INSTALL\\) -m 644 \\$\\(MANPAGES\\) \
3379 \\$\\(DESTDIR\\)\\$\\(LIBDIR\\)") "#"))
3380 #t))
3381 (add-after 'enter-dir 'patch-paths
3382 (lambda* (#:key inputs #:allow-other-keys)
3383 (substitute* '("pairash.c"
3384 "mafft.tmpl")
3385 (("perl") (which "perl"))
3386 (("([\"`| ])awk" _ prefix)
3387 (string-append prefix (which "awk")))
3388 (("grep") (which "grep")))
3389 #t))
3390 (delete 'configure)
3391 (add-after 'install 'wrap-programs
3392 (lambda* (#:key outputs #:allow-other-keys)
3393 (let* ((out (assoc-ref outputs "out"))
3394 (bin (string-append out "/bin"))
3395 (path (string-append
3396 (assoc-ref %build-inputs "coreutils") "/bin:")))
3397 (for-each (lambda (file)
3398 (wrap-program file
3399 `("PATH" ":" prefix (,path))))
3400 (find-files bin)))
3401 #t)))))
3402 (inputs
3403 `(("perl" ,perl)
3404 ("ruby" ,ruby)
3405 ("gawk" ,gawk)
3406 ("grep" ,grep)
3407 ("coreutils" ,coreutils)))
3408 (home-page "http://mafft.cbrc.jp/alignment/software/")
3409 (synopsis "Multiple sequence alignment program")
3410 (description
3411 "MAFFT offers a range of multiple alignment methods for nucleotide and
3412 protein sequences. For instance, it offers L-INS-i (accurate; for alignment
3413 of <~200 sequences) and FFT-NS-2 (fast; for alignment of <~30,000
3414 sequences).")
3415 (license (license:non-copyleft
3416 "http://mafft.cbrc.jp/alignment/software/license.txt"
3417 "BSD-3 with different formatting"))))
3418
3419 (define-public mash
3420 (package
3421 (name "mash")
3422 (version "1.1.1")
3423 (source (origin
3424 (method url-fetch)
3425 (uri (string-append
3426 "https://github.com/marbl/mash/archive/v"
3427 version ".tar.gz"))
3428 (file-name (string-append name "-" version ".tar.gz"))
3429 (sha256
3430 (base32
3431 "08znbvqq5xknfhmpp3wcj574zvi4p7i8zifi67c9qw9a6ikp42fj"))
3432 (modules '((guix build utils)))
3433 (snippet
3434 ;; Delete bundled kseq.
3435 ;; TODO: Also delete bundled murmurhash and open bloom filter.
3436 '(delete-file "src/mash/kseq.h"))))
3437 (build-system gnu-build-system)
3438 (arguments
3439 `(#:tests? #f ; No tests.
3440 #:configure-flags
3441 (list
3442 (string-append "--with-capnp=" (assoc-ref %build-inputs "capnproto"))
3443 (string-append "--with-gsl=" (assoc-ref %build-inputs "gsl")))
3444 #:make-flags (list "CC=gcc")
3445 #:phases
3446 (modify-phases %standard-phases
3447 (add-after 'unpack 'fix-includes
3448 (lambda _
3449 (substitute* '("src/mash/Sketch.cpp" "src/mash/CommandFind.cpp")
3450 (("^#include \"kseq\\.h\"")
3451 "#include \"htslib/kseq.h\""))
3452 #t))
3453 (add-before 'configure 'autoconf
3454 (lambda _ (zero? (system* "autoconf")))))))
3455 (native-inputs
3456 `(("autoconf" ,autoconf)
3457 ;; Capnproto and htslib are statically embedded in the final
3458 ;; application. Therefore we also list their licenses, below.
3459 ("capnproto" ,capnproto)
3460 ("htslib" ,htslib)))
3461 (inputs
3462 `(("gsl" ,gsl)
3463 ("zlib" ,zlib)))
3464 (supported-systems '("x86_64-linux"))
3465 (home-page "https://mash.readthedocs.io")
3466 (synopsis "Fast genome and metagenome distance estimation using MinHash")
3467 (description "Mash is a fast sequence distance estimator that uses the
3468 MinHash algorithm and is designed to work with genomes and metagenomes in the
3469 form of assemblies or reads.")
3470 (license (list license:bsd-3 ; Mash
3471 license:expat ; HTSlib and capnproto
3472 license:public-domain ; MurmurHash 3
3473 license:cpl1.0)))) ; Open Bloom Filter
3474
3475 (define-public metabat
3476 (package
3477 (name "metabat")
3478 (version "2.11.3")
3479 (source
3480 (origin
3481 (method git-fetch)
3482 (uri (git-reference
3483 (url "https://bitbucket.org/berkeleylab/metabat.git")
3484 (commit "d0ad65367ffc8e08d1a9dd1388d6170daa047e5c")))
3485 (file-name (string-append name "-" version "-checkout"))
3486 (sha256
3487 (base32
3488 "1rlsrkz8iq8xah65222p055kzv5i3szz8bwysnvnh0pv72wvv6ww"))
3489 (patches (search-patches "metabat-remove-compilation-date.patch"
3490 "metabat-fix-compilation.patch"))))
3491 (build-system gnu-build-system)
3492 (arguments
3493 `(#:phases
3494 (modify-phases %standard-phases
3495 (add-after 'unpack 'fix-includes
3496 (lambda _
3497 (substitute* "src/BamUtils.h"
3498 (("^#include \"bam/bam\\.h\"")
3499 "#include \"samtools/bam.h\"")
3500 (("^#include \"bam/sam\\.h\"")
3501 "#include \"samtools/sam.h\""))
3502 (substitute* "src/KseqReader.h"
3503 (("^#include \"bam/kseq\\.h\"")
3504 "#include \"htslib/kseq.h\""))
3505 #t))
3506 (add-after 'unpack 'fix-scons
3507 (lambda* (#:key inputs #:allow-other-keys)
3508 (substitute* "SConstruct"
3509 (("^htslib_dir += 'samtools'")
3510 (string-append "htslib_dir = '"
3511 (assoc-ref inputs "htslib")
3512 "'"))
3513 (("^samtools_dir = 'samtools'")
3514 (string-append "samtools_dir = '"
3515 (assoc-ref inputs "samtools")
3516 "'"))
3517 (("^findStaticOrShared\\('bam', hts_lib")
3518 (string-append "findStaticOrShared('bam', '"
3519 (assoc-ref inputs "samtools")
3520 "/lib'"))
3521 ;; Do not distribute README.
3522 (("^env\\.Install\\(idir_prefix, 'README\\.md'\\)") ""))
3523 #t))
3524 (delete 'configure)
3525 (replace 'build
3526 (lambda* (#:key inputs outputs #:allow-other-keys)
3527 (mkdir (assoc-ref outputs "out"))
3528 (zero? (system* "scons"
3529 (string-append
3530 "PREFIX="
3531 (assoc-ref outputs "out"))
3532 (string-append
3533 "BOOST_ROOT="
3534 (assoc-ref inputs "boost"))
3535 "install"))))
3536 ;; Check and install are carried out during build phase.
3537 (delete 'check)
3538 (delete 'install))))
3539 (inputs
3540 `(("zlib" ,zlib)
3541 ("perl" ,perl)
3542 ("samtools" ,samtools)
3543 ("htslib" ,htslib)
3544 ("boost" ,boost)))
3545 (native-inputs
3546 `(("scons" ,scons)))
3547 (home-page "https://bitbucket.org/berkeleylab/metabat")
3548 (synopsis
3549 "Reconstruction of single genomes from complex microbial communities")
3550 (description
3551 "Grouping large genomic fragments assembled from shotgun metagenomic
3552 sequences to deconvolute complex microbial communities, or metagenome binning,
3553 enables the study of individual organisms and their interactions. MetaBAT is
3554 an automated metagenome binning software, which integrates empirical
3555 probabilistic distances of genome abundance and tetranucleotide frequency.")
3556 ;; The source code contains inline assembly.
3557 (supported-systems '("x86_64-linux" "i686-linux"))
3558 (license (license:non-copyleft "file://license.txt"
3559 "See license.txt in the distribution."))))
3560
3561 (define-public minced
3562 (package
3563 (name "minced")
3564 (version "0.2.0")
3565 (source (origin
3566 (method url-fetch)
3567 (uri (string-append
3568 "https://github.com/ctSkennerton/minced/archive/"
3569 version ".tar.gz"))
3570 (file-name (string-append name "-" version ".tar.gz"))
3571 (sha256
3572 (base32
3573 "0wxmlsapxfpxfd3ps9636h7i2xy6la8i42mwh0j2lsky63h63jp1"))))
3574 (build-system gnu-build-system)
3575 (arguments
3576 `(#:test-target "test"
3577 #:phases
3578 (modify-phases %standard-phases
3579 (delete 'configure)
3580 (add-before 'check 'fix-test
3581 (lambda _
3582 ;; Fix test for latest version.
3583 (substitute* "t/Aquifex_aeolicus_VF5.expected"
3584 (("minced:0.1.6") "minced:0.2.0"))
3585 #t))
3586 (replace 'install ; No install target.
3587 (lambda* (#:key inputs outputs #:allow-other-keys)
3588 (let* ((out (assoc-ref outputs "out"))
3589 (bin (string-append out "/bin"))
3590 (wrapper (string-append bin "/minced")))
3591 ;; Minced comes with a wrapper script that tries to figure out where
3592 ;; it is located before running the JAR. Since these paths are known
3593 ;; to us, we build our own wrapper to avoid coreutils dependency.
3594 (install-file "minced.jar" bin)
3595 (with-output-to-file wrapper
3596 (lambda _
3597 (display
3598 (string-append
3599 "#!" (assoc-ref inputs "bash") "/bin/sh\n\n"
3600 (assoc-ref inputs "jre") "/bin/java -jar "
3601 bin "/minced.jar \"$@\"\n"))))
3602 (chmod wrapper #o555)))))))
3603 (native-inputs
3604 `(("jdk" ,icedtea "jdk")))
3605 (inputs
3606 `(("bash" ,bash)
3607 ("jre" ,icedtea "out")))
3608 (home-page "https://github.com/ctSkennerton/minced")
3609 (synopsis "Mining CRISPRs in Environmental Datasets")
3610 (description
3611 "MinCED is a program to find Clustered Regularly Interspaced Short
3612 Palindromic Repeats (CRISPRs) in DNA sequences. It can be used for
3613 unassembled metagenomic reads, but is mainly designed for full genomes and
3614 assembled metagenomic sequence.")
3615 (license license:gpl3+)))
3616
3617 (define-public miso
3618 (package
3619 (name "miso")
3620 (version "0.5.3")
3621 (source (origin
3622 (method url-fetch)
3623 (uri (string-append
3624 "https://pypi.python.org/packages/source/m/misopy/misopy-"
3625 version ".tar.gz"))
3626 (sha256
3627 (base32
3628 "0x446867az8ir0z8c1vjqffkp0ma37wm4sylixnkhgawllzx8v5w"))
3629 (modules '((guix build utils)))
3630 (snippet
3631 '(substitute* "setup.py"
3632 ;; Use setuptools, or else the executables are not
3633 ;; installed.
3634 (("distutils.core") "setuptools")
3635 ;; use "gcc" instead of "cc" for compilation
3636 (("^defines")
3637 "cc.set_executables(
3638 compiler='gcc',
3639 compiler_so='gcc',
3640 linker_exe='gcc',
3641 linker_so='gcc -shared'); defines")))))
3642 (build-system python-build-system)
3643 (arguments
3644 `(#:python ,python-2 ; only Python 2 is supported
3645 #:tests? #f)) ; no "test" target
3646 (inputs
3647 `(("samtools" ,samtools)
3648 ("python-numpy" ,python2-numpy)
3649 ("python-pysam" ,python2-pysam)
3650 ("python-scipy" ,python2-scipy)
3651 ("python-matplotlib" ,python2-matplotlib)))
3652 (native-inputs
3653 `(("python-mock" ,python2-mock) ;for tests
3654 ("python-pytz" ,python2-pytz))) ;for tests
3655 (home-page "http://genes.mit.edu/burgelab/miso/index.html")
3656 (synopsis "Mixture of Isoforms model for RNA-Seq isoform quantitation")
3657 (description
3658 "MISO (Mixture-of-Isoforms) is a probabilistic framework that quantitates
3659 the expression level of alternatively spliced genes from RNA-Seq data, and
3660 identifies differentially regulated isoforms or exons across samples. By
3661 modeling the generative process by which reads are produced from isoforms in
3662 RNA-Seq, the MISO model uses Bayesian inference to compute the probability
3663 that a read originated from a particular isoform.")
3664 (license license:gpl2)))
3665
3666 (define-public muscle
3667 (package
3668 (name "muscle")
3669 (version "3.8.1551")
3670 (source (origin
3671 (method url-fetch/tarbomb)
3672 (uri (string-append
3673 "http://www.drive5.com/muscle/muscle_src_"
3674 version ".tar.gz"))
3675 (sha256
3676 (base32
3677 "0bj8kj7sdizy3987zx6w7axihk40fk8rn76mpbqqjcnd64i5a367"))))
3678 (build-system gnu-build-system)
3679 (arguments
3680 `(#:make-flags (list "LDLIBS = -lm")
3681 #:phases
3682 (modify-phases %standard-phases
3683 (delete 'configure)
3684 (replace 'check
3685 ;; There are no tests, so just test if it runs.
3686 (lambda _ (zero? (system* "./muscle" "-version"))))
3687 (replace 'install
3688 (lambda* (#:key outputs #:allow-other-keys)
3689 (let* ((out (assoc-ref outputs "out"))
3690 (bin (string-append out "/bin")))
3691 (install-file "muscle" bin)))))))
3692 (home-page "http://www.drive5.com/muscle")
3693 (synopsis "Multiple sequence alignment program")
3694 (description
3695 "MUSCLE aims to be a fast and accurate multiple sequence alignment
3696 program for nucleotide and protein sequences.")
3697 ;; License information found in 'muscle -h' and usage.cpp.
3698 (license license:public-domain)))
3699
3700 (define-public newick-utils
3701 ;; There are no recent releases so we package from git.
3702 (let ((commit "da121155a977197cab9fbb15953ca1b40b11eb87"))
3703 (package
3704 (name "newick-utils")
3705 (version (string-append "1.6-1." (string-take commit 8)))
3706 (source (origin
3707 (method git-fetch)
3708 (uri (git-reference
3709 (url "https://github.com/tjunier/newick_utils.git")
3710 (commit commit)))
3711 (file-name (string-append name "-" version "-checkout"))
3712 (sha256
3713 (base32
3714 "1hkw21rq1mwf7xp0rmbb2gqc0i6p11108m69i7mr7xcjl268pxnb"))))
3715 (build-system gnu-build-system)
3716 (arguments
3717 `(#:phases
3718 (modify-phases %standard-phases
3719 (add-after 'unpack 'autoconf
3720 (lambda _ (zero? (system* "autoreconf" "-vif")))))))
3721 (inputs
3722 ;; XXX: TODO: Enable Lua and Guile bindings.
3723 ;; https://github.com/tjunier/newick_utils/issues/13
3724 `(("libxml2" ,libxml2)
3725 ("flex" ,flex)
3726 ("bison" ,bison)))
3727 (native-inputs
3728 `(("autoconf" ,autoconf)
3729 ("automake" ,automake)
3730 ("libtool" ,libtool)))
3731 (synopsis "Programs for working with newick format phylogenetic trees")
3732 (description
3733 "Newick-utils is a suite of utilities for processing phylogenetic trees
3734 in Newick format. Functions include re-rooting, extracting subtrees,
3735 trimming, pruning, condensing, drawing (ASCII graphics or SVG).")
3736 (home-page "https://github.com/tjunier/newick_utils")
3737 (license license:bsd-3))))
3738
3739 (define-public orfm
3740 (package
3741 (name "orfm")
3742 (version "0.7.1")
3743 (source (origin
3744 (method url-fetch)
3745 (uri (string-append
3746 "https://github.com/wwood/OrfM/releases/download/v"
3747 version "/orfm-" version ".tar.gz"))
3748 (sha256
3749 (base32
3750 "16iigyr2gd8x0imzkk1dr3k5xsds9bpmwg31ayvjg0f4pir9rwqr"))))
3751 (build-system gnu-build-system)
3752 (inputs `(("zlib" ,zlib)))
3753 (native-inputs
3754 `(("ruby-bio-commandeer" ,ruby-bio-commandeer)
3755 ("ruby-rspec" ,ruby-rspec)
3756 ("ruby" ,ruby)))
3757 (synopsis "Simple and not slow open reading frame (ORF) caller")
3758 (description
3759 "An ORF caller finds stretches of DNA that, when translated, are not
3760 interrupted by stop codons. OrfM finds and prints these ORFs.")
3761 (home-page "https://github.com/wwood/OrfM")
3762 (license license:lgpl3+)))
3763
3764 (define-public pplacer
3765 (let ((commit "g807f6f3"))
3766 (package
3767 (name "pplacer")
3768 ;; The commit should be updated with each version change.
3769 (version "1.1.alpha19")
3770 (source
3771 (origin
3772 (method url-fetch)
3773 (uri (string-append "https://github.com/matsen/pplacer/archive/v"
3774 version ".tar.gz"))
3775 (file-name (string-append name "-" version ".tar.gz"))
3776 (sha256
3777 (base32 "0z1lnd2s8sh6kpzg106wzbh2szw7h0hvq8syd5a6wv4rmyyz6x0f"))))
3778 (build-system ocaml-build-system)
3779 (arguments
3780 `(#:ocaml ,ocaml-4.01
3781 #:findlib ,ocaml4.01-findlib
3782 #:modules ((guix build ocaml-build-system)
3783 (guix build utils)
3784 (ice-9 ftw))
3785 #:phases
3786 (modify-phases %standard-phases
3787 (delete 'configure)
3788 (add-after 'unpack 'replace-bundled-cddlib
3789 (lambda* (#:key inputs #:allow-other-keys)
3790 (let* ((cddlib-src (assoc-ref inputs "cddlib-src"))
3791 (local-dir "cddlib_guix"))
3792 (mkdir local-dir)
3793 (with-directory-excursion local-dir
3794 (system* "tar" "xvf" cddlib-src))
3795 (let ((cddlib-src-folder
3796 (string-append local-dir "/"
3797 (list-ref (scandir local-dir) 2)
3798 "/lib-src")))
3799 (for-each
3800 (lambda (file)
3801 (copy-file file
3802 (string-append "cdd_src/" (basename file))))
3803 (find-files cddlib-src-folder ".*[ch]$")))
3804 #t)))
3805 (add-after 'unpack 'fix-makefile
3806 (lambda _
3807 ;; Remove system calls to 'git'.
3808 (substitute* "Makefile"
3809 (("^DESCRIPT:=pplacer-.*")
3810 (string-append
3811 "DESCRIPT:=pplacer-$(shell uname)-v" ,version "\n")))
3812 (substitute* "myocamlbuild.ml"
3813 (("git describe --tags --long .*\\\" with")
3814 (string-append
3815 "echo -n v" ,version "-" ,commit "\" with")))
3816 #t))
3817 (replace 'install
3818 (lambda* (#:key outputs #:allow-other-keys)
3819 (let* ((out (assoc-ref outputs "out"))
3820 (bin (string-append out "/bin")))
3821 (copy-recursively "bin" bin))
3822 #t)))))
3823 (native-inputs
3824 `(("zlib" ,zlib)
3825 ("gsl" ,gsl)
3826 ("ocaml-ounit" ,ocaml4.01-ounit)
3827 ("ocaml-batteries" ,ocaml4.01-batteries)
3828 ("ocaml-camlzip" ,ocaml4.01-camlzip)
3829 ("ocaml-csv" ,ocaml4.01-csv)
3830 ("ocaml-sqlite3" ,ocaml4.01-sqlite3)
3831 ("ocaml-xmlm" ,ocaml4.01-xmlm)
3832 ("ocaml-mcl" ,ocaml4.01-mcl)
3833 ("ocaml-gsl" ,ocaml4.01-gsl)
3834 ("cddlib-src" ,(package-source cddlib))))
3835 (propagated-inputs
3836 `(("pplacer-scripts" ,pplacer-scripts)))
3837 (synopsis "Phylogenetic placement of biological sequences")
3838 (description
3839 "Pplacer places query sequences on a fixed reference phylogenetic tree
3840 to maximize phylogenetic likelihood or posterior probability according to a
3841 reference alignment. Pplacer is designed to be fast, to give useful
3842 information about uncertainty, and to offer advanced visualization and
3843 downstream analysis.")
3844 (home-page "http://matsen.fhcrc.org/pplacer")
3845 (license license:gpl3))))
3846
3847 ;; This package is installed alongside 'pplacer'. It is a separate package so
3848 ;; that it can use the python-build-system for the scripts that are
3849 ;; distributed alongside the main OCaml binaries.
3850 (define pplacer-scripts
3851 (package
3852 (inherit pplacer)
3853 (name "pplacer-scripts")
3854 (build-system python-build-system)
3855 (arguments
3856 `(#:python ,python-2
3857 #:phases
3858 (modify-phases %standard-phases
3859 (add-after 'unpack 'enter-scripts-dir
3860 (lambda _ (chdir "scripts")))
3861 (replace 'check
3862 (lambda _
3863 (zero? (system* "python" "-m" "unittest" "discover" "-v"))))
3864 (add-after 'install 'wrap-executables
3865 (lambda* (#:key inputs outputs #:allow-other-keys)
3866 (let* ((out (assoc-ref outputs "out"))
3867 (bin (string-append out "/bin")))
3868 (let ((path (string-append
3869 (assoc-ref inputs "hmmer") "/bin:"
3870 (assoc-ref inputs "infernal") "/bin")))
3871 (display path)
3872 (wrap-program (string-append bin "/refpkg_align.py")
3873 `("PATH" ":" prefix (,path))))
3874 (let ((path (string-append
3875 (assoc-ref inputs "hmmer") "/bin")))
3876 (wrap-program (string-append bin "/hrefpkg_query.py")
3877 `("PATH" ":" prefix (,path)))))
3878 #t)))))
3879 (inputs
3880 `(("infernal" ,infernal)
3881 ("hmmer" ,hmmer)))
3882 (propagated-inputs
3883 `(("python-biopython" ,python2-biopython)
3884 ("taxtastic" ,taxtastic)))
3885 (synopsis "Pplacer Python scripts")))
3886
3887 (define-public python2-pbcore
3888 (package
3889 (name "python2-pbcore")
3890 (version "1.2.10")
3891 (source (origin
3892 (method url-fetch)
3893 (uri (pypi-uri "pbcore" version))
3894 (sha256
3895 (base32
3896 "1kjmv891d6qbpp4shhhvkl02ff4q5xlpnls2513sm2cjcrs52f1i"))))
3897 (build-system python-build-system)
3898 (arguments `(#:python ,python-2)) ; pbcore requires Python 2.7
3899 (propagated-inputs
3900 `(("python-cython" ,python2-cython)
3901 ("python-numpy" ,python2-numpy)
3902 ("python-pysam" ,python2-pysam)
3903 ("python-h5py" ,python2-h5py)))
3904 (native-inputs
3905 `(("python-nose" ,python2-nose)
3906 ("python-sphinx" ,python2-sphinx)
3907 ("python-pyxb" ,python2-pyxb)))
3908 (home-page "http://pacificbiosciences.github.io/pbcore/")
3909 (synopsis "Library for reading and writing PacBio data files")
3910 (description
3911 "The pbcore package provides Python APIs for interacting with PacBio data
3912 files and writing bioinformatics applications.")
3913 (license license:bsd-3)))
3914
3915 (define-public python2-warpedlmm
3916 (package
3917 (name "python2-warpedlmm")
3918 (version "0.21")
3919 (source
3920 (origin
3921 (method url-fetch)
3922 (uri (string-append
3923 "https://pypi.python.org/packages/source/W/WarpedLMM/WarpedLMM-"
3924 version ".zip"))
3925 (sha256
3926 (base32
3927 "1agfz6zqa8nc6cw47yh0s3y14gkpa9wqazwcj7mwwj3ffnw39p3j"))))
3928 (build-system python-build-system)
3929 (arguments
3930 `(#:python ,python-2)) ; requires Python 2.7
3931 (propagated-inputs
3932 `(("python-scipy" ,python2-scipy)
3933 ("python-numpy" ,python2-numpy)
3934 ("python-matplotlib" ,python2-matplotlib)
3935 ("python-fastlmm" ,python2-fastlmm)
3936 ("python-pandas" ,python2-pandas)
3937 ("python-pysnptools" ,python2-pysnptools)))
3938 (native-inputs
3939 `(("python-mock" ,python2-mock)
3940 ("python-nose" ,python2-nose)
3941 ("unzip" ,unzip)))
3942 (home-page "https://github.com/PMBio/warpedLMM")
3943 (synopsis "Implementation of warped linear mixed models")
3944 (description
3945 "WarpedLMM is a Python implementation of the warped linear mixed model,
3946 which automatically learns an optimal warping function (or transformation) for
3947 the phenotype as it models the data.")
3948 (license license:asl2.0)))
3949
3950 (define-public pbtranscript-tofu
3951 (let ((commit "8f5467fe6a4472bcfb4226c8720993c8507adfe4"))
3952 (package
3953 (name "pbtranscript-tofu")
3954 (version (string-append "2.2.3." (string-take commit 7)))
3955 (source (origin
3956 (method git-fetch)
3957 (uri (git-reference
3958 (url "https://github.com/PacificBiosciences/cDNA_primer.git")
3959 (commit commit)))
3960 (file-name (string-append name "-" version "-checkout"))
3961 (sha256
3962 (base32
3963 "1lgnpi35ihay42qx0b6yl3kkgra723i413j33kvs0kvs61h82w0f"))
3964 (modules '((guix build utils)))
3965 (snippet
3966 '(begin
3967 ;; remove bundled Cython sources
3968 (delete-file "pbtranscript-tofu/pbtranscript/Cython-0.20.1.tar.gz")
3969 #t))))
3970 (build-system python-build-system)
3971 (arguments
3972 `(#:python ,python-2
3973 ;; FIXME: Tests fail with "No such file or directory:
3974 ;; pbtools/pbtranscript/modified_bx_intervals/intersection_unique.so"
3975 #:tests? #f
3976 #:phases
3977 (modify-phases %standard-phases
3978 (add-after 'unpack 'enter-directory
3979 (lambda _
3980 (chdir "pbtranscript-tofu/pbtranscript/")
3981 #t))
3982 ;; With setuptools version 18.0 and later this setup.py hack causes
3983 ;; a build error, so we disable it.
3984 (add-after 'enter-directory 'patch-setuppy
3985 (lambda _
3986 (substitute* "setup.py"
3987 (("if 'setuptools.extension' in sys.modules:")
3988 "if False:"))
3989 #t)))))
3990 (inputs
3991 `(("python-numpy" ,python2-numpy)
3992 ("python-bx-python" ,python2-bx-python)
3993 ("python-networkx" ,python2-networkx)
3994 ("python-scipy" ,python2-scipy)
3995 ("python-pbcore" ,python2-pbcore)
3996 ("python-h5py" ,python2-h5py)))
3997 (native-inputs
3998 `(("python-cython" ,python2-cython)
3999 ("python-nose" ,python2-nose)))
4000 (home-page "https://github.com/PacificBiosciences/cDNA_primer")
4001 (synopsis "Analyze transcriptome data generated with the Iso-Seq protocol")
4002 (description
4003 "pbtranscript-tofu contains scripts to analyze transcriptome data
4004 generated using the PacBio Iso-Seq protocol.")
4005 (license license:bsd-3))))
4006
4007 (define-public prank
4008 (package
4009 (name "prank")
4010 (version "150803")
4011 (source (origin
4012 (method url-fetch)
4013 (uri (string-append
4014 "http://wasabiapp.org/download/prank/prank.source."
4015 version ".tgz"))
4016 (sha256
4017 (base32
4018 "0am4z94fs3w2n5xpfls9zda61vq7qqz4q2i7b9hlsxz5q4j3kfm4"))))
4019 (build-system gnu-build-system)
4020 (arguments
4021 `(#:phases
4022 (modify-phases %standard-phases
4023 (add-after 'unpack 'enter-src-dir
4024 (lambda _
4025 (chdir "src")
4026 #t))
4027 (add-after 'unpack 'remove-m64-flag
4028 ;; Prank will build with the correct 'bit-ness' without this flag
4029 ;; and this allows building on 32-bit machines.
4030 (lambda _ (substitute* "src/Makefile"
4031 (("-m64") ""))
4032 #t))
4033 (delete 'configure)
4034 (replace 'install
4035 (lambda* (#:key outputs #:allow-other-keys)
4036 (let* ((out (assoc-ref outputs "out"))
4037 (bin (string-append out "/bin"))
4038 (man (string-append out "/share/man/man1"))
4039 (path (string-append
4040 (assoc-ref %build-inputs "mafft") "/bin:"
4041 (assoc-ref %build-inputs "exonerate") "/bin:"
4042 (assoc-ref %build-inputs "bppsuite") "/bin")))
4043 (install-file "prank" bin)
4044 (wrap-program (string-append bin "/prank")
4045 `("PATH" ":" prefix (,path)))
4046 (install-file "prank.1" man))
4047 #t)))))
4048 (inputs
4049 `(("mafft" ,mafft)
4050 ("exonerate" ,exonerate)
4051 ("bppsuite" ,bppsuite)))
4052 (home-page "http://wasabiapp.org/software/prank/")
4053 (synopsis "Probabilistic multiple sequence alignment program")
4054 (description
4055 "PRANK is a probabilistic multiple sequence alignment program for DNA,
4056 codon and amino-acid sequences. It is based on a novel algorithm that treats
4057 insertions correctly and avoids over-estimation of the number of deletion
4058 events. In addition, PRANK borrows ideas from maximum likelihood methods used
4059 in phylogenetics and correctly takes into account the evolutionary distances
4060 between sequences. Lastly, PRANK allows for defining a potential structure
4061 for sequences to be aligned and then, simultaneously with the alignment,
4062 predicts the locations of structural units in the sequences.")
4063 (license license:gpl2+)))
4064
4065 (define-public proteinortho
4066 (package
4067 (name "proteinortho")
4068 (version "5.16")
4069 (source
4070 (origin
4071 (method url-fetch)
4072 (uri
4073 (string-append
4074 "http://www.bioinf.uni-leipzig.de/Software/proteinortho/proteinortho_v"
4075 version "_src.tar.gz"))
4076 (sha256
4077 (base32
4078 "0z4f5cg0cs8ai62hfvp4q6w66q2phcc55nhs4xj5cyhxxivjv2ai"))))
4079 (build-system gnu-build-system)
4080 (arguments
4081 `(#:test-target "test"
4082 #:phases
4083 (modify-phases %standard-phases
4084 (replace 'configure
4085 ;; There is no configure script, so we modify the Makefile directly.
4086 (lambda* (#:key outputs #:allow-other-keys)
4087 (substitute* "Makefile"
4088 (("INSTALLDIR=.*")
4089 (string-append
4090 "INSTALLDIR=" (assoc-ref outputs "out") "/bin\n")))
4091 #t))
4092 (add-before 'install 'make-install-directory
4093 ;; The install directory is not created during 'make install'.
4094 (lambda* (#:key outputs #:allow-other-keys)
4095 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
4096 #t))
4097 (add-after 'install 'wrap-programs
4098 (lambda* (#:key inputs outputs #:allow-other-keys)
4099 (let* ((path (getenv "PATH"))
4100 (out (assoc-ref outputs "out"))
4101 (binary (string-append out "/bin/proteinortho5.pl")))
4102 (wrap-program binary `("PATH" ":" prefix (,path))))
4103 #t)))))
4104 (inputs
4105 `(("perl" ,perl)
4106 ("python" ,python-2)
4107 ("blast+" ,blast+)))
4108 (home-page "http://www.bioinf.uni-leipzig.de/Software/proteinortho")
4109 (synopsis "Detect orthologous genes across species")
4110 (description
4111 "Proteinortho is a tool to detect orthologous genes across different
4112 species. For doing so, it compares similarities of given gene sequences and
4113 clusters them to find significant groups. The algorithm was designed to handle
4114 large-scale data and can be applied to hundreds of species at once.")
4115 (license license:gpl2+)))
4116
4117 (define-public pyicoteo
4118 (package
4119 (name "pyicoteo")
4120 (version "2.0.7")
4121 (source
4122 (origin
4123 (method url-fetch)
4124 (uri (string-append "https://bitbucket.org/regulatorygenomicsupf/"
4125 "pyicoteo/get/v" version ".tar.bz2"))
4126 (file-name (string-append name "-" version ".tar.bz2"))
4127 (sha256
4128 (base32
4129 "0d6087f29xp8wxwlj111c3sylli98n0l8ry58c51ixzq0zfm50wa"))))
4130 (build-system python-build-system)
4131 (arguments
4132 `(#:python ,python-2 ; does not work with Python 3
4133 #:tests? #f)) ; there are no tests
4134 (inputs
4135 `(("python2-matplotlib" ,python2-matplotlib)))
4136 (home-page "https://bitbucket.org/regulatorygenomicsupf/pyicoteo")
4137 (synopsis "Analyze high-throughput genetic sequencing data")
4138 (description
4139 "Pyicoteo is a suite of tools for the analysis of high-throughput genetic
4140 sequencing data. It works with genomic coordinates. There are currently six
4141 different command-line tools:
4142
4143 @enumerate
4144 @item pyicoregion: for generating exploratory regions automatically;
4145 @item pyicoenrich: for differential enrichment between two conditions;
4146 @item pyicoclip: for calling CLIP-Seq peaks without a control;
4147 @item pyicos: for genomic coordinates manipulation;
4148 @item pyicoller: for peak calling on punctuated ChIP-Seq;
4149 @item pyicount: to count how many reads from N experiment files overlap in a
4150 region file;
4151 @item pyicotrocol: to combine operations from pyicoteo.
4152 @end enumerate\n")
4153 (license license:gpl3+)))
4154
4155 (define-public prodigal
4156 (package
4157 (name "prodigal")
4158 (version "2.6.3")
4159 (source (origin
4160 (method url-fetch)
4161 (uri (string-append
4162 "https://github.com/hyattpd/Prodigal/archive/v"
4163 version ".tar.gz"))
4164 (file-name (string-append name "-" version ".tar.gz"))
4165 (sha256
4166 (base32
4167 "17srxkqd3jc77xk15pfbgg1a9xahqg7337w95mrsia7mpza4l2c9"))))
4168 (build-system gnu-build-system)
4169 (arguments
4170 `(#:tests? #f ;no check target
4171 #:make-flags (list (string-append "INSTALLDIR="
4172 (assoc-ref %outputs "out")
4173 "/bin"))
4174 #:phases
4175 (modify-phases %standard-phases
4176 (delete 'configure))))
4177 (home-page "http://prodigal.ornl.gov")
4178 (synopsis "Protein-coding gene prediction for Archaea and Bacteria")
4179 (description
4180 "Prodigal runs smoothly on finished genomes, draft genomes, and
4181 metagenomes, providing gene predictions in GFF3, Genbank, or Sequin table
4182 format. It runs quickly, in an unsupervised fashion, handles gaps, handles
4183 partial genes, and identifies translation initiation sites.")
4184 (license license:gpl3+)))
4185
4186 (define-public roary
4187 (package
4188 (name "roary")
4189 (version "3.8.2")
4190 (source
4191 (origin
4192 (method url-fetch)
4193 (uri (string-append
4194 "mirror://cpan/authors/id/A/AJ/AJPAGE/Bio-Roary-"
4195 version ".tar.gz"))
4196 (sha256
4197 (base32
4198 "03dfr2cd5fp80bcr65923zpdzrasvcxl7c2vgh8373v25a1yfap7"))))
4199 (build-system perl-build-system)
4200 (arguments
4201 `(#:phases
4202 (modify-phases %standard-phases
4203 (delete 'configure)
4204 (delete 'build)
4205 (replace 'check
4206 (lambda _
4207 ;; The tests are not run by default, so we run each test file
4208 ;; directly.
4209 (setenv "PATH" (string-append (getcwd) "/bin" ":"
4210 (getenv "PATH")))
4211 (setenv "PERL5LIB" (string-append (getcwd) "/lib" ":"
4212 (getenv "PERL5LIB")))
4213 (zero? (length (filter (lambda (file)
4214 (display file)(display "\n")
4215 (not (zero? (system* "perl" file))))
4216 (find-files "t" ".*\\.t$"))))))
4217 (replace 'install
4218 ;; There is no 'install' target in the Makefile.
4219 (lambda* (#:key outputs #:allow-other-keys)
4220 (let* ((out (assoc-ref outputs "out"))
4221 (bin (string-append out "/bin"))
4222 (perl (string-append out "/lib/perl5/site_perl"))
4223 (roary-plots "contrib/roary_plots"))
4224 (mkdir-p bin)
4225 (mkdir-p perl)
4226 (copy-recursively "bin" bin)
4227 (copy-recursively "lib" perl)
4228 #t)))
4229 (add-after 'install 'wrap-programs
4230 (lambda* (#:key inputs outputs #:allow-other-keys)
4231 (let* ((out (assoc-ref outputs "out"))
4232 (perl5lib (getenv "PERL5LIB"))
4233 (path (getenv "PATH")))
4234 (for-each (lambda (prog)
4235 (let ((binary (string-append out "/" prog)))
4236 (wrap-program binary
4237 `("PERL5LIB" ":" prefix
4238 (,(string-append perl5lib ":" out
4239 "/lib/perl5/site_perl"))))
4240 (wrap-program binary
4241 `("PATH" ":" prefix
4242 (,(string-append path ":" out "/bin"))))))
4243 (find-files "bin" ".*[^R]$"))
4244 (let ((file
4245 (string-append out "/bin/roary-create_pan_genome_plots.R"))
4246 (r-site-lib (getenv "R_LIBS_SITE"))
4247 (coreutils-path
4248 (string-append (assoc-ref inputs "coreutils") "/bin")))
4249 (wrap-program file
4250 `("R_LIBS_SITE" ":" prefix
4251 (,(string-append r-site-lib ":" out "/site-library/"))))
4252 (wrap-program file
4253 `("PATH" ":" prefix
4254 (,(string-append coreutils-path ":" out "/bin"))))))
4255 #t)))))
4256 (native-inputs
4257 `(("perl-env-path" ,perl-env-path)
4258 ("perl-test-files" ,perl-test-files)
4259 ("perl-test-most" ,perl-test-most)
4260 ("perl-test-output" ,perl-test-output)))
4261 (inputs
4262 `(("perl-array-utils" ,perl-array-utils)
4263 ("bioperl" ,bioperl-minimal)
4264 ("perl-exception-class" ,perl-exception-class)
4265 ("perl-file-find-rule" ,perl-file-find-rule)
4266 ("perl-file-grep" ,perl-file-grep)
4267 ("perl-file-slurper" ,perl-file-slurper)
4268 ("perl-file-which" ,perl-file-which)
4269 ("perl-graph" ,perl-graph)
4270 ("perl-graph-readwrite" ,perl-graph-readwrite)
4271 ("perl-log-log4perl" ,perl-log-log4perl)
4272 ("perl-moose" ,perl-moose)
4273 ("perl-perlio-utf8_strict" ,perl-perlio-utf8_strict)
4274 ("perl-text-csv" ,perl-text-csv)
4275 ("bedtools" ,bedtools)
4276 ("cd-hit" ,cd-hit)
4277 ("blast+" ,blast+)
4278 ("mcl" ,mcl)
4279 ("parallel" ,parallel)
4280 ("prank" ,prank)
4281 ("mafft" ,mafft)
4282 ("fasttree" ,fasttree)
4283 ("grep" ,grep)
4284 ("sed" ,sed)
4285 ("gawk" ,gawk)
4286 ("r-minimal" ,r-minimal)
4287 ("r-ggplot2" ,r-ggplot2)
4288 ("coreutils" ,coreutils)))
4289 (home-page "http://sanger-pathogens.github.io/Roary")
4290 (synopsis "High speed stand-alone pan genome pipeline")
4291 (description
4292 "Roary is a high speed stand alone pan genome pipeline, which takes
4293 annotated assemblies in GFF3 format (produced by the Prokka program) and
4294 calculates the pan genome. Using a standard desktop PC, it can analyse
4295 datasets with thousands of samples, without compromising the quality of the
4296 results. 128 samples can be analysed in under 1 hour using 1 GB of RAM and a
4297 single processor. Roary is not intended for metagenomics or for comparing
4298 extremely diverse sets of genomes.")
4299 (license license:gpl3)))
4300
4301 (define-public raxml
4302 (package
4303 (name "raxml")
4304 (version "8.2.10")
4305 (source
4306 (origin
4307 (method url-fetch)
4308 (uri
4309 (string-append
4310 "https://github.com/stamatak/standard-RAxML/archive/v"
4311 version ".tar.gz"))
4312 (file-name (string-append name "-" version ".tar.gz"))
4313 (sha256
4314 (base32
4315 "13s7aspfdcfr6asynwdg1x6vznys6pzap5f8wsffbnnwpkkg9ya8"))))
4316 (build-system gnu-build-system)
4317 (arguments
4318 `(#:tests? #f ; There are no tests.
4319 ;; Use 'standard' Makefile rather than SSE or AVX ones.
4320 #:make-flags (list "-f" "Makefile.HYBRID.gcc")
4321 #:phases
4322 (modify-phases %standard-phases
4323 (delete 'configure)
4324 (replace 'install
4325 (lambda* (#:key outputs #:allow-other-keys)
4326 (let* ((out (assoc-ref outputs "out"))
4327 (bin (string-append out "/bin"))
4328 (executable "raxmlHPC-HYBRID"))
4329 (install-file executable bin)
4330 (symlink (string-append bin "/" executable) "raxml"))
4331 #t)))))
4332 (inputs
4333 `(("openmpi" ,openmpi)))
4334 (home-page "http://sco.h-its.org/exelixis/web/software/raxml/index.html")
4335 (synopsis "Randomized Axelerated Maximum Likelihood phylogenetic trees")
4336 (description
4337 "RAxML is a tool for phylogenetic analysis and post-analysis of large
4338 phylogenies.")
4339 ;; The source includes x86 specific code
4340 (supported-systems '("x86_64-linux" "i686-linux"))
4341 (license license:gpl2+)))
4342
4343 (define-public rsem
4344 (package
4345 (name "rsem")
4346 (version "1.2.20")
4347 (source
4348 (origin
4349 (method url-fetch)
4350 (uri
4351 (string-append "http://deweylab.biostat.wisc.edu/rsem/src/rsem-"
4352 version ".tar.gz"))
4353 (sha256
4354 (base32 "0nzdc0j0hjllhsd5f2xli95dafm3nawskigs140xzvjk67xh0r9q"))
4355 (patches (search-patches "rsem-makefile.patch"))
4356 (modules '((guix build utils)))
4357 (snippet
4358 '(begin
4359 ;; remove bundled copy of boost
4360 (delete-file-recursively "boost")
4361 #t))))
4362 (build-system gnu-build-system)
4363 (arguments
4364 `(#:tests? #f ;no "check" target
4365 #:phases
4366 (modify-phases %standard-phases
4367 ;; No "configure" script.
4368 ;; Do not build bundled samtools library.
4369 (replace 'configure
4370 (lambda _
4371 (substitute* "Makefile"
4372 (("^all : sam/libbam.a") "all : "))
4373 #t))
4374 (replace 'install
4375 (lambda* (#:key outputs #:allow-other-keys)
4376 (let* ((out (string-append (assoc-ref outputs "out")))
4377 (bin (string-append out "/bin/"))
4378 (perl (string-append out "/lib/perl5/site_perl")))
4379 (mkdir-p bin)
4380 (mkdir-p perl)
4381 (for-each (lambda (file)
4382 (install-file file bin))
4383 (find-files "." "rsem-.*"))
4384 (install-file "rsem_perl_utils.pm" perl))
4385 #t))
4386 (add-after
4387 'install 'wrap-program
4388 (lambda* (#:key outputs #:allow-other-keys)
4389 (let ((out (assoc-ref outputs "out")))
4390 (for-each (lambda (prog)
4391 (wrap-program (string-append out "/bin/" prog)
4392 `("PERL5LIB" ":" prefix
4393 (,(string-append out "/lib/perl5/site_perl")))))
4394 '("rsem-plot-transcript-wiggles"
4395 "rsem-calculate-expression"
4396 "rsem-generate-ngvector"
4397 "rsem-run-ebseq"
4398 "rsem-prepare-reference")))
4399 #t)))))
4400 (inputs
4401 `(("boost" ,boost)
4402 ("ncurses" ,ncurses)
4403 ("r-minimal" ,r-minimal)
4404 ("perl" ,perl)
4405 ("samtools" ,samtools-0.1)
4406 ("zlib" ,zlib)))
4407 (home-page "http://deweylab.biostat.wisc.edu/rsem/")
4408 (synopsis "Estimate gene expression levels from RNA-Seq data")
4409 (description
4410 "RSEM is a software package for estimating gene and isoform expression
4411 levels from RNA-Seq data. The RSEM package provides a user-friendly
4412 interface, supports threads for parallel computation of the EM algorithm,
4413 single-end and paired-end read data, quality scores, variable-length reads and
4414 RSPD estimation. In addition, it provides posterior mean and 95% credibility
4415 interval estimates for expression levels. For visualization, it can generate
4416 BAM and Wiggle files in both transcript-coordinate and genomic-coordinate.")
4417 (license license:gpl3+)))
4418
4419 (define-public rseqc
4420 (package
4421 (name "rseqc")
4422 (version "2.6.1")
4423 (source
4424 (origin
4425 (method url-fetch)
4426 (uri
4427 (string-append "mirror://sourceforge/rseqc/"
4428 "RSeQC-" version ".tar.gz"))
4429 (sha256
4430 (base32 "15ly0254yi032qzkdplg00q144qfdsd986gh62829rl5bkxhj330"))
4431 (modules '((guix build utils)))
4432 (snippet
4433 '(begin
4434 ;; remove bundled copy of pysam
4435 (delete-file-recursively "lib/pysam")
4436 (substitute* "setup.py"
4437 ;; remove dependency on outdated "distribute" module
4438 (("^from distribute_setup import use_setuptools") "")
4439 (("^use_setuptools\\(\\)") "")
4440 ;; do not use bundled copy of pysam
4441 (("^have_pysam = False") "have_pysam = True"))))))
4442 (build-system python-build-system)
4443 (arguments `(#:python ,python-2))
4444 (inputs
4445 `(("python-cython" ,python2-cython)
4446 ("python-pysam" ,python2-pysam)
4447 ("python-numpy" ,python2-numpy)
4448 ("zlib" ,zlib)))
4449 (native-inputs
4450 `(("python-nose" ,python2-nose)))
4451 (home-page "http://rseqc.sourceforge.net/")
4452 (synopsis "RNA-seq quality control package")
4453 (description
4454 "RSeQC provides a number of modules that can comprehensively evaluate
4455 high throughput sequence data, especially RNA-seq data. Some basic modules
4456 inspect sequence quality, nucleotide composition bias, PCR bias and GC bias,
4457 while RNA-seq specific modules evaluate sequencing saturation, mapped reads
4458 distribution, coverage uniformity, strand specificity, etc.")
4459 (license license:gpl3+)))
4460
4461 (define-public seek
4462 ;; There are no release tarballs. According to the installation
4463 ;; instructions at http://seek.princeton.edu/installation.jsp, the latest
4464 ;; stable release is identified by this changeset ID.
4465 (let ((changeset "2329130")
4466 (revision "1"))
4467 (package
4468 (name "seek")
4469 (version (string-append "0-" revision "." changeset))
4470 (source (origin
4471 (method hg-fetch)
4472 (uri (hg-reference
4473 (url "https://bitbucket.org/libsleipnir/sleipnir")
4474 (changeset changeset)))
4475 (sha256
4476 (base32
4477 "0qrvilwh18dpbhkf92qvxbmay0j75ra3jg2wrhz67gf538zzphsx"))))
4478 (build-system gnu-build-system)
4479 (arguments
4480 `(#:modules ((srfi srfi-1)
4481 (guix build gnu-build-system)
4482 (guix build utils))
4483 #:phases
4484 (let ((dirs '("SeekMiner"
4485 "SeekEvaluator"
4486 "SeekPrep"
4487 "Distancer"
4488 "Data2DB"
4489 "PCL2Bin")))
4490 (modify-phases %standard-phases
4491 (add-before 'configure 'bootstrap
4492 (lambda _
4493 (zero? (system* "bash" "gen_auto"))))
4494 (add-after 'build 'build-additional-tools
4495 (lambda* (#:key make-flags #:allow-other-keys)
4496 (every (lambda (dir)
4497 (with-directory-excursion (string-append "tools/" dir)
4498 (zero? (apply system* "make" make-flags))))
4499 dirs)))
4500 (add-after 'install 'install-additional-tools
4501 (lambda* (#:key make-flags #:allow-other-keys)
4502 (fold (lambda (dir result)
4503 (with-directory-excursion (string-append "tools/" dir)
4504 (and result
4505 (zero? (apply system*
4506 `("make" ,@make-flags "install"))))))
4507 #t dirs)))))))
4508 (inputs
4509 `(("gsl" ,gsl)
4510 ("boost" ,boost)
4511 ("libsvm" ,libsvm)
4512 ("readline" ,readline)
4513 ("gengetopt" ,gengetopt)
4514 ("log4cpp" ,log4cpp)))
4515 (native-inputs
4516 `(("autoconf" ,autoconf)
4517 ("automake" ,automake)
4518 ("perl" ,perl)))
4519 (home-page "http://seek.princeton.edu")
4520 (synopsis "Gene co-expression search engine")
4521 (description
4522 "SEEK is a computational gene co-expression search engine. SEEK provides
4523 biologists with a way to navigate the massive human expression compendium that
4524 now contains thousands of expression datasets. SEEK returns a robust ranking
4525 of co-expressed genes in the biological area of interest defined by the user's
4526 query genes. It also prioritizes thousands of expression datasets according
4527 to the user's query of interest.")
4528 (license license:cc-by3.0))))
4529
4530 (define-public samtools
4531 (package
4532 (name "samtools")
4533 (version "1.5")
4534 (source
4535 (origin
4536 (method url-fetch)
4537 (uri
4538 (string-append "mirror://sourceforge/samtools/samtools/"
4539 version "/samtools-" version ".tar.bz2"))
4540 (sha256
4541 (base32
4542 "1xidmv0jmfy7l0kb32hdnlshcxgzi1hmygvig0cqrq1fhckdlhl5"))))
4543 (build-system gnu-build-system)
4544 (arguments
4545 `(#:modules ((ice-9 ftw)
4546 (ice-9 regex)
4547 (guix build gnu-build-system)
4548 (guix build utils))
4549 #:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
4550 #:configure-flags (list "--with-ncurses" "--with-htslib=system")
4551 #:phases
4552 (modify-phases %standard-phases
4553 (add-after 'unpack 'patch-tests
4554 (lambda _
4555 (substitute* "test/test.pl"
4556 ;; The test script calls out to /bin/bash
4557 (("/bin/bash") (which "bash")))
4558 #t))
4559 (add-after 'install 'install-library
4560 (lambda* (#:key outputs #:allow-other-keys)
4561 (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
4562 (install-file "libbam.a" lib)
4563 #t)))
4564 (add-after 'install 'install-headers
4565 (lambda* (#:key outputs #:allow-other-keys)
4566 (let ((include (string-append (assoc-ref outputs "out")
4567 "/include/samtools/")))
4568 (for-each (lambda (file)
4569 (install-file file include))
4570 (scandir "." (lambda (name) (string-match "\\.h$" name))))
4571 #t))))))
4572 (native-inputs `(("pkg-config" ,pkg-config)))
4573 (inputs
4574 `(("htslib" ,htslib)
4575 ("ncurses" ,ncurses)
4576 ("perl" ,perl)
4577 ("python" ,python)
4578 ("zlib" ,zlib)))
4579 (home-page "http://samtools.sourceforge.net")
4580 (synopsis "Utilities to efficiently manipulate nucleotide sequence alignments")
4581 (description
4582 "Samtools implements various utilities for post-processing nucleotide
4583 sequence alignments in the SAM, BAM, and CRAM formats, including indexing,
4584 variant calling (in conjunction with bcftools), and a simple alignment
4585 viewer.")
4586 (license license:expat)))
4587
4588 (define-public samtools-0.1
4589 ;; This is the most recent version of the 0.1 line of samtools. The input
4590 ;; and output formats differ greatly from that used and produced by samtools
4591 ;; 1.x and is still used in many bioinformatics pipelines.
4592 (package (inherit samtools)
4593 (version "0.1.19")
4594 (source
4595 (origin
4596 (method url-fetch)
4597 (uri
4598 (string-append "mirror://sourceforge/samtools/samtools/"
4599 version "/samtools-" version ".tar.bz2"))
4600 (sha256
4601 (base32 "1m33xsfwz0s8qi45lylagfllqg7fphf4dr0780rsvw75av9wk06h"))))
4602 (arguments
4603 `(#:tests? #f ;no "check" target
4604 ,@(substitute-keyword-arguments (package-arguments samtools)
4605 ((#:make-flags flags)
4606 `(cons "LIBCURSES=-lncurses" ,flags))
4607 ((#:phases phases)
4608 `(modify-phases ,phases
4609 (replace 'install
4610 (lambda* (#:key outputs #:allow-other-keys)
4611 (let ((bin (string-append
4612 (assoc-ref outputs "out") "/bin")))
4613 (mkdir-p bin)
4614 (install-file "samtools" bin)
4615 #t)))
4616 (delete 'patch-tests)
4617 (delete 'configure))))))))
4618
4619 (define-public mosaik
4620 (let ((commit "5c25216d3522d6a33e53875cd76a6d65001e4e67"))
4621 (package
4622 (name "mosaik")
4623 (version "2.2.30")
4624 (source (origin
4625 ;; There are no release tarballs nor tags.
4626 (method git-fetch)
4627 (uri (git-reference
4628 (url "https://github.com/wanpinglee/MOSAIK.git")
4629 (commit commit)))
4630 (file-name (string-append name "-" version))
4631 (sha256
4632 (base32
4633 "17gj3s07cm77r41z92awh0bim7w7q7fbn0sf5nkqmcm1vw052qgw"))))
4634 (build-system gnu-build-system)
4635 (arguments
4636 `(#:tests? #f ; no tests
4637 #:make-flags (list "CC=gcc")
4638 #:phases
4639 (modify-phases %standard-phases
4640 (replace 'configure
4641 (lambda _ (chdir "src") #t))
4642 (replace 'install
4643 (lambda* (#:key outputs #:allow-other-keys)
4644 (let ((bin (string-append (assoc-ref outputs "out")
4645 "/bin")))
4646 (mkdir-p bin)
4647 (copy-recursively "../bin" bin)
4648 #t))))))
4649 (inputs
4650 `(("perl" ,perl)
4651 ("zlib" ,zlib)))
4652 (supported-systems '("x86_64-linux"))
4653 (home-page "https://github.com/wanpinglee/MOSAIK")
4654 (synopsis "Map nucleotide sequence reads to reference genomes")
4655 (description
4656 "MOSAIK is a program for mapping second and third-generation sequencing
4657 reads to a reference genome. MOSAIK can align reads generated by all the
4658 major sequencing technologies, including Illumina, Applied Biosystems SOLiD,
4659 Roche 454, Ion Torrent and Pacific BioSciences SMRT.")
4660 ;; MOSAIK is released under the GPLv2+ with the exception of third-party
4661 ;; code released into the public domain:
4662 ;; 1. fastlz by Ariya Hidayat - http://www.fastlz.org/
4663 ;; 2. MD5 implementation - RSA Data Security, RFC 1321
4664 (license (list license:gpl2+ license:public-domain)))))
4665
4666 (define-public ngs-sdk
4667 (package
4668 (name "ngs-sdk")
4669 (version "1.3.0")
4670 (source
4671 (origin
4672 (method url-fetch)
4673 (uri
4674 (string-append "https://github.com/ncbi/ngs/archive/"
4675 version ".tar.gz"))
4676 (file-name (string-append name "-" version ".tar.gz"))
4677 (sha256
4678 (base32
4679 "1wiyf4c6nm2j87pv015cbi0qny5byf3pbvcw3likifz5dl56ag40"))))
4680 (build-system gnu-build-system)
4681 (arguments
4682 `(#:parallel-build? #f ; not supported
4683 #:tests? #f ; no "check" target
4684 #:phases
4685 (alist-replace
4686 'configure
4687 (lambda* (#:key outputs #:allow-other-keys)
4688 (let ((out (assoc-ref outputs "out")))
4689 ;; Allow 'konfigure.perl' to find 'package.prl'.
4690 (setenv "PERL5LIB"
4691 (string-append ".:" (getenv "PERL5LIB")))
4692
4693 ;; The 'configure' script doesn't recognize things like
4694 ;; '--enable-fast-install'.
4695 (zero? (system* "./configure"
4696 (string-append "--build-prefix=" (getcwd) "/build")
4697 (string-append "--prefix=" out)))))
4698 (alist-cons-after
4699 'unpack 'enter-dir
4700 (lambda _ (chdir "ngs-sdk") #t)
4701 %standard-phases))))
4702 (native-inputs `(("perl" ,perl)))
4703 ;; According to the test
4704 ;; unless ($MARCH =~ /x86_64/i || $MARCH =~ /i?86/i)
4705 ;; in ngs-sdk/setup/konfigure.perl
4706 (supported-systems '("i686-linux" "x86_64-linux"))
4707 (home-page "https://github.com/ncbi/ngs")
4708 (synopsis "API for accessing Next Generation Sequencing data")
4709 (description
4710 "NGS is a domain-specific API for accessing reads, alignments and pileups
4711 produced from Next Generation Sequencing. The API itself is independent from
4712 any particular back-end implementation, and supports use of multiple back-ends
4713 simultaneously.")
4714 (license license:public-domain)))
4715
4716 (define-public java-ngs
4717 (package (inherit ngs-sdk)
4718 (name "java-ngs")
4719 (arguments
4720 `(,@(substitute-keyword-arguments
4721 `(#:modules ((guix build gnu-build-system)
4722 (guix build utils)
4723 (srfi srfi-1)
4724 (srfi srfi-26))
4725 ,@(package-arguments ngs-sdk))
4726 ((#:phases phases)
4727 `(modify-phases ,phases
4728 (replace 'enter-dir (lambda _ (chdir "ngs-java") #t)))))))
4729 (inputs
4730 `(("jdk" ,icedtea "jdk")
4731 ("ngs-sdk" ,ngs-sdk)))
4732 (synopsis "Java bindings for NGS SDK")))
4733
4734 (define-public ncbi-vdb
4735 (package
4736 (name "ncbi-vdb")
4737 (version "2.8.2")
4738 (source
4739 (origin
4740 (method url-fetch)
4741 (uri
4742 (string-append "https://github.com/ncbi/ncbi-vdb/archive/"
4743 version ".tar.gz"))
4744 (file-name (string-append name "-" version ".tar.gz"))
4745 (sha256
4746 (base32
4747 "1acn4bv81mfl137qnbn9995mjjhwd36pm0b7qli1iw5skrxa9j8m"))))
4748 (build-system gnu-build-system)
4749 (arguments
4750 `(#:parallel-build? #f ; not supported
4751 #:tests? #f ; no "check" target
4752 #:phases
4753 (modify-phases %standard-phases
4754 (replace 'configure
4755 (lambda* (#:key inputs outputs #:allow-other-keys)
4756 (let ((out (assoc-ref outputs "out")))
4757 ;; Override include path for libmagic
4758 (substitute* "setup/package.prl"
4759 (("name => 'magic', Include => '/usr/include'")
4760 (string-append "name=> 'magic', Include => '"
4761 (assoc-ref inputs "libmagic")
4762 "/include" "'")))
4763
4764 ;; Install kdf5 library (needed by sra-tools)
4765 (substitute* "build/Makefile.install"
4766 (("LIBRARIES_TO_INSTALL =")
4767 "LIBRARIES_TO_INSTALL = kdf5.$(VERSION_LIBX) kdf5.$(VERSION_SHLX)"))
4768
4769 (substitute* "build/Makefile.env"
4770 (("CFLAGS =" prefix)
4771 (string-append prefix "-msse2 ")))
4772
4773 ;; Override search path for ngs-java
4774 (substitute* "setup/package.prl"
4775 (("/usr/local/ngs/ngs-java")
4776 (assoc-ref inputs "java-ngs")))
4777
4778 ;; The 'configure' script doesn't recognize things like
4779 ;; '--enable-fast-install'.
4780 (zero? (system*
4781 "./configure"
4782 (string-append "--build-prefix=" (getcwd) "/build")
4783 (string-append "--prefix=" (assoc-ref outputs "out"))
4784 (string-append "--debug")
4785 (string-append "--with-xml2-prefix="
4786 (assoc-ref inputs "libxml2"))
4787 (string-append "--with-ngs-sdk-prefix="
4788 (assoc-ref inputs "ngs-sdk"))
4789 (string-append "--with-hdf5-prefix="
4790 (assoc-ref inputs "hdf5")))))))
4791 (add-after 'install 'install-interfaces
4792 (lambda* (#:key outputs #:allow-other-keys)
4793 ;; Install interface libraries. On i686 the interface libraries
4794 ;; are installed to "linux/gcc/i386", so we need to use the Linux
4795 ;; architecture name ("i386") instead of the target system prefix
4796 ;; ("i686").
4797 (mkdir (string-append (assoc-ref outputs "out") "/ilib"))
4798 (copy-recursively (string-append "build/ncbi-vdb/linux/gcc/"
4799 ,(system->linux-architecture
4800 (or (%current-target-system)
4801 (%current-system)))
4802 "/rel/ilib")
4803 (string-append (assoc-ref outputs "out")
4804 "/ilib"))
4805 ;; Install interface headers
4806 (copy-recursively "interfaces"
4807 (string-append (assoc-ref outputs "out")
4808 "/include"))
4809 #t))
4810 ;; These files are needed by sra-tools.
4811 (add-after 'install 'install-configuration-files
4812 (lambda* (#:key outputs #:allow-other-keys)
4813 (let ((target (string-append (assoc-ref outputs "out") "/kfg")))
4814 (mkdir target)
4815 (install-file "libs/kfg/default.kfg" target)
4816 (install-file "libs/kfg/certs.kfg" target))
4817 #t)))))
4818 (inputs
4819 `(("libxml2" ,libxml2)
4820 ("ngs-sdk" ,ngs-sdk)
4821 ("java-ngs" ,java-ngs)
4822 ("libmagic" ,file)
4823 ("hdf5" ,hdf5)))
4824 (native-inputs `(("perl" ,perl)))
4825 ;; NCBI-VDB requires SSE capability.
4826 (supported-systems '("i686-linux" "x86_64-linux"))
4827 (home-page "https://github.com/ncbi/ncbi-vdb")
4828 (synopsis "Database engine for genetic information")
4829 (description
4830 "The NCBI-VDB library implements a highly compressed columnar data
4831 warehousing engine that is most often used to store genetic information.
4832 Databases are stored in a portable image within the file system, and can be
4833 accessed/downloaded on demand across HTTP.")
4834 (license license:public-domain)))
4835
4836 (define-public plink
4837 (package
4838 (name "plink")
4839 (version "1.07")
4840 (source
4841 (origin
4842 (method url-fetch)
4843 (uri (string-append
4844 "http://pngu.mgh.harvard.edu/~purcell/plink/dist/plink-"
4845 version "-src.zip"))
4846 (sha256
4847 (base32 "0as8gxm4pjyc8dxmm1sl873rrd7wn5qs0l29nqfnl31x8i467xaa"))
4848 (patches (search-patches "plink-1.07-unclobber-i.patch"
4849 "plink-endian-detection.patch"))))
4850 (build-system gnu-build-system)
4851 (arguments
4852 '(#:tests? #f ;no "check" target
4853 #:make-flags (list (string-append "LIB_LAPACK="
4854 (assoc-ref %build-inputs "lapack")
4855 "/lib/liblapack.so")
4856 "WITH_LAPACK=1"
4857 "FORCE_DYNAMIC=1"
4858 ;; disable phoning home
4859 "WITH_WEBCHECK=")
4860 #:phases
4861 (modify-phases %standard-phases
4862 ;; no "configure" script
4863 (delete 'configure)
4864 (replace 'install
4865 (lambda* (#:key outputs #:allow-other-keys)
4866 (let ((bin (string-append (assoc-ref outputs "out")
4867 "/bin/")))
4868 (install-file "plink" bin)
4869 #t))))))
4870 (inputs
4871 `(("zlib" ,zlib)
4872 ("lapack" ,lapack)))
4873 (native-inputs
4874 `(("unzip" ,unzip)))
4875 (home-page "http://pngu.mgh.harvard.edu/~purcell/plink/")
4876 (synopsis "Whole genome association analysis toolset")
4877 (description
4878 "PLINK is a whole genome association analysis toolset, designed to
4879 perform a range of basic, large-scale analyses in a computationally efficient
4880 manner. The focus of PLINK is purely on analysis of genotype/phenotype data,
4881 so there is no support for steps prior to this (e.g. study design and
4882 planning, generating genotype or CNV calls from raw data). Through
4883 integration with gPLINK and Haploview, there is some support for the
4884 subsequent visualization, annotation and storage of results.")
4885 ;; Code is released under GPLv2, except for fisher.h, which is under
4886 ;; LGPLv2.1+
4887 (license (list license:gpl2 license:lgpl2.1+))))
4888
4889 (define-public smithlab-cpp
4890 (let ((revision "1")
4891 (commit "728a097bec88c6f4b8528b685932049e660eff2e"))
4892 (package
4893 (name "smithlab-cpp")
4894 (version (string-append "0." revision "." (string-take commit 7)))
4895 (source (origin
4896 (method git-fetch)
4897 (uri (git-reference
4898 (url "https://github.com/smithlabcode/smithlab_cpp.git")
4899 (commit commit)))
4900 (file-name (string-append name "-" version "-checkout"))
4901 (sha256
4902 (base32
4903 "0d476lmj312xk77kr9fzrv7z1bv96yfyx0w7y62ycmnfbx32ll74"))))
4904 (build-system gnu-build-system)
4905 (arguments
4906 `(#:modules ((guix build gnu-build-system)
4907 (guix build utils)
4908 (srfi srfi-26))
4909 #:tests? #f ;no "check" target
4910 #:phases
4911 (modify-phases %standard-phases
4912 (add-after 'unpack 'use-samtools-headers
4913 (lambda _
4914 (substitute* '("SAM.cpp"
4915 "SAM.hpp")
4916 (("sam.h") "samtools/sam.h"))
4917 #t))
4918 (replace 'install
4919 (lambda* (#:key outputs #:allow-other-keys)
4920 (let* ((out (assoc-ref outputs "out"))
4921 (lib (string-append out "/lib"))
4922 (include (string-append out "/include/smithlab-cpp")))
4923 (mkdir-p lib)
4924 (mkdir-p include)
4925 (for-each (cut install-file <> lib)
4926 (find-files "." "\\.o$"))
4927 (for-each (cut install-file <> include)
4928 (find-files "." "\\.hpp$")))
4929 #t))
4930 (delete 'configure))))
4931 (inputs
4932 `(("samtools" ,samtools-0.1)
4933 ("zlib" ,zlib)))
4934 (home-page "https://github.com/smithlabcode/smithlab_cpp")
4935 (synopsis "C++ helper library for functions used in Smith lab projects")
4936 (description
4937 "Smithlab CPP is a C++ library that includes functions used in many of
4938 the Smith lab bioinformatics projects, such as a wrapper around Samtools data
4939 structures, classes for genomic regions, mapped sequencing reads, etc.")
4940 (license license:gpl3+))))
4941
4942 (define-public preseq
4943 (package
4944 (name "preseq")
4945 (version "2.0")
4946 (source (origin
4947 (method url-fetch)
4948 (uri (string-append "https://github.com/smithlabcode/"
4949 "preseq/archive/v" version ".tar.gz"))
4950 (file-name (string-append name "-" version ".tar.gz"))
4951 (sha256
4952 (base32 "08r684l50pnxjpvmhzjgqq56yv9rfw90k8vx0nsrnrzk8mf9hsdq"))
4953 (modules '((guix build utils)))
4954 (snippet
4955 ;; Remove bundled samtools.
4956 '(delete-file-recursively "samtools"))))
4957 (build-system gnu-build-system)
4958 (arguments
4959 `(#:tests? #f ;no "check" target
4960 #:phases
4961 (modify-phases %standard-phases
4962 (delete 'configure))
4963 #:make-flags
4964 (list (string-append "PREFIX="
4965 (assoc-ref %outputs "out"))
4966 (string-append "LIBBAM="
4967 (assoc-ref %build-inputs "samtools")
4968 "/lib/libbam.a")
4969 (string-append "SMITHLAB_CPP="
4970 (assoc-ref %build-inputs "smithlab-cpp")
4971 "/lib")
4972 "PROGS=preseq"
4973 "INCLUDEDIRS=$(SMITHLAB_CPP)/../include/smithlab-cpp $(SAMTOOLS_DIR)")))
4974 (inputs
4975 `(("gsl" ,gsl)
4976 ("samtools" ,samtools-0.1)
4977 ("smithlab-cpp" ,smithlab-cpp)
4978 ("zlib" ,zlib)))
4979 (home-page "http://smithlabresearch.org/software/preseq/")
4980 (synopsis "Program for analyzing library complexity")
4981 (description
4982 "The preseq package is aimed at predicting and estimating the complexity
4983 of a genomic sequencing library, equivalent to predicting and estimating the
4984 number of redundant reads from a given sequencing depth and how many will be
4985 expected from additional sequencing using an initial sequencing experiment.
4986 The estimates can then be used to examine the utility of further sequencing,
4987 optimize the sequencing depth, or to screen multiple libraries to avoid low
4988 complexity samples.")
4989 (license license:gpl3+)))
4990
4991 (define-public python-screed
4992 (package
4993 (name "python-screed")
4994 (version "0.9")
4995 (source
4996 (origin
4997 (method url-fetch)
4998 (uri (pypi-uri "screed" version))
4999 (sha256
5000 (base32
5001 "18czszp9fkx3j6jr7y5kp6dfialscgddk05mw1zkhh2zhn0jd8i0"))))
5002 (build-system python-build-system)
5003 (arguments
5004 `(#:phases
5005 (modify-phases %standard-phases
5006 (replace 'check
5007 (lambda _
5008 (setenv "PYTHONPATH"
5009 (string-append (getenv "PYTHONPATH") ":."))
5010 (zero? (system* "nosetests" "--attr" "!known_failing")))))))
5011 (native-inputs
5012 `(("python-nose" ,python-nose)))
5013 (inputs
5014 `(("python-bz2file" ,python-bz2file)))
5015 (home-page "https://github.com/dib-lab/screed/")
5016 (synopsis "Short read sequence database utilities")
5017 (description "Screed parses FASTA and FASTQ files and generates databases.
5018 Values such as sequence name, sequence description, sequence quality and the
5019 sequence itself can be retrieved from these databases.")
5020 (license license:bsd-3)))
5021
5022 (define-public python2-screed
5023 (package-with-python2 python-screed))
5024
5025 (define-public sra-tools
5026 (package
5027 (name "sra-tools")
5028 (version "2.8.2-1")
5029 (source
5030 (origin
5031 (method url-fetch)
5032 (uri
5033 (string-append "https://github.com/ncbi/sra-tools/archive/"
5034 version ".tar.gz"))
5035 (file-name (string-append name "-" version ".tar.gz"))
5036 (sha256
5037 (base32
5038 "1camsijmvv2s45mb4iyf44ghl4gkd4rl0viphpcgl3ccchy32a0g"))))
5039 (build-system gnu-build-system)
5040 (arguments
5041 `(#:parallel-build? #f ; not supported
5042 #:tests? #f ; no "check" target
5043 #:make-flags
5044 (list (string-append "DEFAULT_CRT="
5045 (assoc-ref %build-inputs "ncbi-vdb")
5046 "/kfg/certs.kfg")
5047 (string-append "DEFAULT_KFG="
5048 (assoc-ref %build-inputs "ncbi-vdb")
5049 "/kfg/default.kfg")
5050 (string-append "VDB_LIBDIR="
5051 (assoc-ref %build-inputs "ncbi-vdb")
5052 ,(if (string-prefix? "x86_64"
5053 (or (%current-target-system)
5054 (%current-system)))
5055 "/lib64"
5056 "/lib32")))
5057 #:phases
5058 (modify-phases %standard-phases
5059 (replace 'configure
5060 (lambda* (#:key inputs outputs #:allow-other-keys)
5061 ;; The build system expects a directory containing the sources and
5062 ;; raw build output of ncbi-vdb, including files that are not
5063 ;; installed. Since we are building against an installed version of
5064 ;; ncbi-vdb, the following modifications are needed.
5065 (substitute* "setup/konfigure.perl"
5066 ;; Make the configure script look for the "ilib" directory of
5067 ;; "ncbi-vdb" without first checking for the existence of a
5068 ;; matching library in its "lib" directory.
5069 (("^ my \\$f = File::Spec->catdir\\(\\$libdir, \\$lib\\);")
5070 "my $f = File::Spec->catdir($ilibdir, $ilib);")
5071 ;; Look for interface libraries in ncbi-vdb's "ilib" directory.
5072 (("my \\$ilibdir = File::Spec->catdir\\(\\$builddir, 'ilib'\\);")
5073 "my $ilibdir = File::Spec->catdir($dir, 'ilib');"))
5074
5075 ;; Dynamic linking
5076 (substitute* "tools/copycat/Makefile"
5077 (("smagic-static") "lmagic"))
5078
5079 ;; The 'configure' script doesn't recognize things like
5080 ;; '--enable-fast-install'.
5081 (zero? (system*
5082 "./configure"
5083 (string-append "--build-prefix=" (getcwd) "/build")
5084 (string-append "--prefix=" (assoc-ref outputs "out"))
5085 (string-append "--debug")
5086 (string-append "--with-fuse-prefix="
5087 (assoc-ref inputs "fuse"))
5088 (string-append "--with-magic-prefix="
5089 (assoc-ref inputs "libmagic"))
5090 ;; TODO: building with libxml2 fails with linker errors
5091 ;; (string-append "--with-xml2-prefix="
5092 ;; (assoc-ref inputs "libxml2"))
5093 (string-append "--with-ncbi-vdb-sources="
5094 (assoc-ref inputs "ncbi-vdb"))
5095 (string-append "--with-ncbi-vdb-build="
5096 (assoc-ref inputs "ncbi-vdb"))
5097 (string-append "--with-ngs-sdk-prefix="
5098 (assoc-ref inputs "ngs-sdk"))
5099 (string-append "--with-hdf5-prefix="
5100 (assoc-ref inputs "hdf5"))))))
5101 ;; This version of sra-tools fails to build with glibc because of a
5102 ;; naming conflict. glibc-2.25/include/bits/mathcalls.h already
5103 ;; contains a definition of "canonicalize", so we rename it.
5104 ;;
5105 ;; See upstream bug report:
5106 ;; https://github.com/ncbi/sra-tools/issues/67
5107 (add-after 'unpack 'patch-away-glibc-conflict
5108 (lambda _
5109 (substitute* "tools/bam-loader/bam.c"
5110 (("canonicalize\\(" line)
5111 (string-append "sra_tools_" line)))
5112 #t)))))
5113 (native-inputs `(("perl" ,perl)))
5114 (inputs
5115 `(("ngs-sdk" ,ngs-sdk)
5116 ("ncbi-vdb" ,ncbi-vdb)
5117 ("libmagic" ,file)
5118 ("fuse" ,fuse)
5119 ("hdf5" ,hdf5)
5120 ("zlib" ,zlib)))
5121 (home-page "http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software")
5122 (synopsis "Tools and libraries for reading and writing sequencing data")
5123 (description
5124 "The SRA Toolkit from NCBI is a collection of tools and libraries for
5125 reading of sequencing files from the Sequence Read Archive (SRA) database and
5126 writing files into the .sra format.")
5127 (license license:public-domain)))
5128
5129 (define-public seqan
5130 (package
5131 (name "seqan")
5132 (version "1.4.2")
5133 (source (origin
5134 (method url-fetch)
5135 (uri (string-append "http://packages.seqan.de/seqan-library/"
5136 "seqan-library-" version ".tar.bz2"))
5137 (sha256
5138 (base32
5139 "05s3wrrwn50f81aklfm65i4a749zag1vr8z03k21xm0pdxy47yvp"))))
5140 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
5141 ;; makes sense to split the outputs.
5142 (outputs '("out" "doc"))
5143 (build-system trivial-build-system)
5144 (arguments
5145 `(#:modules ((guix build utils))
5146 #:builder
5147 (begin
5148 (use-modules (guix build utils))
5149 (let ((tar (assoc-ref %build-inputs "tar"))
5150 (bzip (assoc-ref %build-inputs "bzip2"))
5151 (out (assoc-ref %outputs "out"))
5152 (doc (assoc-ref %outputs "doc")))
5153 (setenv "PATH" (string-append tar "/bin:" bzip "/bin"))
5154 (system* "tar" "xvf" (assoc-ref %build-inputs "source"))
5155 (chdir (string-append "seqan-library-" ,version))
5156 (copy-recursively "include" (string-append out "/include"))
5157 (copy-recursively "share" (string-append doc "/share"))))))
5158 (native-inputs
5159 `(("source" ,source)
5160 ("tar" ,tar)
5161 ("bzip2" ,bzip2)))
5162 (home-page "http://www.seqan.de")
5163 (synopsis "Library for nucleotide sequence analysis")
5164 (description
5165 "SeqAn is a C++ library of efficient algorithms and data structures for
5166 the analysis of sequences with the focus on biological data. It contains
5167 algorithms and data structures for string representation and their
5168 manipulation, online and indexed string search, efficient I/O of
5169 bioinformatics file formats, sequence alignment, and more.")
5170 (license license:bsd-3)))
5171
5172 (define-public seqmagick
5173 (package
5174 (name "seqmagick")
5175 (version "0.6.1")
5176 (source
5177 (origin
5178 (method url-fetch)
5179 (uri (string-append
5180 "https://pypi.python.org/packages/source/s/seqmagick/seqmagick-"
5181 version ".tar.gz"))
5182 (sha256
5183 (base32
5184 "0cgn477n74gsl4qdaakrrhi953kcsd4q3ivk2lr18x74s3g4ma1d"))))
5185 (build-system python-build-system)
5186 (arguments
5187 ;; python2 only, see https://github.com/fhcrc/seqmagick/issues/56
5188 `(#:python ,python-2
5189 #:phases
5190 (modify-phases %standard-phases
5191 ;; Current test in setup.py does not work as of 0.6.1,
5192 ;; so use nose to run tests instead for now. See
5193 ;; https://github.com/fhcrc/seqmagick/issues/55
5194 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
5195 (inputs
5196 ;; biopython-1.66 is required due to
5197 ;; https://github.com/fhcrc/seqmagick/issues/59
5198 ;; When that issue is resolved the 'python2-biopython-1.66' package
5199 ;; should be removed.
5200 `(("python-biopython" ,python2-biopython-1.66)))
5201 (native-inputs
5202 `(("python-nose" ,python2-nose)))
5203 (home-page "https://github.com/fhcrc/seqmagick")
5204 (synopsis "Tools for converting and modifying sequence files")
5205 (description
5206 "Bioinformaticians often have to convert sequence files between formats
5207 and do little manipulations on them, and it's not worth writing scripts for
5208 that. Seqmagick is a utility to expose the file format conversion in
5209 BioPython in a convenient way. Instead of having a big mess of scripts, there
5210 is one that takes arguments.")
5211 (license license:gpl3)))
5212
5213 (define-public seqtk
5214 (package
5215 (name "seqtk")
5216 (version "1.2")
5217 (source (origin
5218 (method url-fetch)
5219 (uri (string-append
5220 "https://github.com/lh3/seqtk/archive/v"
5221 version ".tar.gz"))
5222 (file-name (string-append name "-" version ".tar.gz"))
5223 (sha256
5224 (base32
5225 "0ywdyzpmfiz2wp6ampbzqg4y8bj450nfgqarpamg045b8mk32lxx"))
5226 (modules '((guix build utils)))
5227 (snippet
5228 '(begin
5229 ;; Remove extraneous header files, as is done in the seqtk
5230 ;; master branch.
5231 (for-each (lambda (file) (delete-file file))
5232 (list "ksort.h" "kstring.h" "kvec.h"))
5233 #t))))
5234 (build-system gnu-build-system)
5235 (arguments
5236 `(#:phases
5237 (modify-phases %standard-phases
5238 (delete 'configure)
5239 (replace 'check
5240 ;; There are no tests, so we just run a sanity check.
5241 (lambda _ (zero? (system* "./seqtk" "seq"))))
5242 (replace 'install
5243 (lambda* (#:key outputs #:allow-other-keys)
5244 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5245 (install-file "seqtk" bin)))))))
5246 (inputs
5247 `(("zlib" ,zlib)))
5248 (home-page "https://github.com/lh3/seqtk")
5249 (synopsis "Toolkit for processing biological sequences in FASTA/Q format")
5250 (description
5251 "Seqtk is a fast and lightweight tool for processing sequences in the
5252 FASTA or FASTQ format. It parses both FASTA and FASTQ files which can be
5253 optionally compressed by gzip.")
5254 (license license:expat)))
5255
5256 (define-public snap-aligner
5257 (package
5258 (name "snap-aligner")
5259 (version "1.0beta.18")
5260 (source (origin
5261 (method url-fetch)
5262 (uri (string-append
5263 "https://github.com/amplab/snap/archive/v"
5264 version ".tar.gz"))
5265 (file-name (string-append name "-" version ".tar.gz"))
5266 (sha256
5267 (base32
5268 "1vnsjwv007k1fl1q7d681kbwn6bc66cgw6h16hym6gvyy71qv2ly"))))
5269 (build-system gnu-build-system)
5270 (arguments
5271 '(#:phases
5272 (modify-phases %standard-phases
5273 (delete 'configure)
5274 (replace 'check (lambda _ (zero? (system* "./unit_tests"))))
5275 (replace 'install
5276 (lambda* (#:key outputs #:allow-other-keys)
5277 (let* ((out (assoc-ref outputs "out"))
5278 (bin (string-append out "/bin")))
5279 (install-file "snap-aligner" bin)
5280 (install-file "SNAPCommand" bin)
5281 #t))))))
5282 (native-inputs
5283 `(("zlib" ,zlib)))
5284 (home-page "http://snap.cs.berkeley.edu/")
5285 (synopsis "Short read DNA sequence aligner")
5286 (description
5287 "SNAP is a fast and accurate aligner for short DNA reads. It is
5288 optimized for modern read lengths of 100 bases or higher, and takes advantage
5289 of these reads to align data quickly through a hash-based indexing scheme.")
5290 ;; 32-bit systems are not supported by the unpatched code.
5291 ;; Following the bug reports https://github.com/amplab/snap/issues/68 and
5292 ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812378 we see that
5293 ;; systems without a lot of memory cannot make good use of this program.
5294 (supported-systems '("x86_64-linux"))
5295 (license license:asl2.0)))
5296
5297 (define-public sortmerna
5298 (package
5299 (name "sortmerna")
5300 (version "2.1b")
5301 (source
5302 (origin
5303 (method url-fetch)
5304 (uri (string-append
5305 "https://github.com/biocore/sortmerna/archive/"
5306 version ".tar.gz"))
5307 (file-name (string-append name "-" version ".tar.gz"))
5308 (sha256
5309 (base32
5310 "1ghaghvd82af9j5adavxh77g7hm247d1r69m3fbi6f1jdivj5ldk"))))
5311 (build-system gnu-build-system)
5312 (outputs '("out" ;for binaries
5313 "db")) ;for sequence databases
5314 (arguments
5315 `(#:phases
5316 (modify-phases %standard-phases
5317 (replace 'install
5318 (lambda* (#:key outputs #:allow-other-keys)
5319 (let* ((out (assoc-ref outputs "out"))
5320 (bin (string-append out "/bin"))
5321 (db (assoc-ref outputs "db"))
5322 (share
5323 (string-append db "/share/sortmerna/rRNA_databases")))
5324 (install-file "sortmerna" bin)
5325 (install-file "indexdb_rna" bin)
5326 (for-each (lambda (file)
5327 (install-file file share))
5328 (find-files "rRNA_databases" ".*fasta"))
5329 #t))))))
5330 (inputs
5331 `(("zlib" ,zlib)))
5332 (home-page "http://bioinfo.lifl.fr/RNA/sortmerna")
5333 (synopsis "Biological sequence analysis tool for NGS reads")
5334 (description
5335 "SortMeRNA is a biological sequence analysis tool for filtering, mapping
5336 and operational taxonomic unit (OTU) picking of next generation
5337 sequencing (NGS) reads. The core algorithm is based on approximate seeds and
5338 allows for fast and sensitive analyses of nucleotide sequences. The main
5339 application of SortMeRNA is filtering rRNA from metatranscriptomic data.")
5340 ;; The source includes x86 specific code
5341 (supported-systems '("x86_64-linux" "i686-linux"))
5342 (license license:lgpl3)))
5343
5344 (define-public star
5345 (package
5346 (name "star")
5347 (version "2.5.3a")
5348 (source (origin
5349 (method url-fetch)
5350 (uri (string-append "https://github.com/alexdobin/STAR/archive/"
5351 version ".tar.gz"))
5352 (file-name (string-append name "-" version ".tar.gz"))
5353 (sha256
5354 (base32
5355 "013wirlz8lllgjyagl48l75n1isxyabqb3sj7qlsl0x1rmvqw99a"))
5356 (modules '((guix build utils)))
5357 (snippet
5358 '(begin
5359 (substitute* "source/Makefile"
5360 (("/bin/rm") "rm"))
5361 ;; Remove pre-built binaries and bundled htslib sources.
5362 (delete-file-recursively "bin/MacOSX_x86_64")
5363 (delete-file-recursively "bin/Linux_x86_64")
5364 (delete-file-recursively "bin/Linux_x86_64_static")
5365 (delete-file-recursively "source/htslib")
5366 #t))))
5367 (build-system gnu-build-system)
5368 (arguments
5369 '(#:tests? #f ;no check target
5370 #:make-flags '("STAR")
5371 #:phases
5372 (modify-phases %standard-phases
5373 (add-after 'unpack 'enter-source-dir
5374 (lambda _ (chdir "source") #t))
5375 (add-after 'enter-source-dir 'do-not-use-bundled-htslib
5376 (lambda _
5377 (substitute* "Makefile"
5378 (("(Depend.list: \\$\\(SOURCES\\) parametersDefault\\.xxd) htslib"
5379 _ prefix) prefix))
5380 (substitute* '("BAMfunctions.cpp"
5381 "signalFromBAM.h"
5382 "bam_cat.h"
5383 "bam_cat.c"
5384 "STAR.cpp"
5385 "bamRemoveDuplicates.cpp")
5386 (("#include \"htslib/([^\"]+\\.h)\"" _ header)
5387 (string-append "#include <" header ">")))
5388 (substitute* "IncludeDefine.h"
5389 (("\"htslib/(htslib/[^\"]+.h)\"" _ header)
5390 (string-append "<" header ">")))
5391 #t))
5392 (replace 'install
5393 (lambda* (#:key outputs #:allow-other-keys)
5394 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5395 (install-file "STAR" bin))
5396 #t))
5397 (delete 'configure))))
5398 (native-inputs
5399 `(("vim" ,vim))) ; for xxd
5400 (inputs
5401 `(("htslib" ,htslib)
5402 ("zlib" ,zlib)))
5403 (home-page "https://github.com/alexdobin/STAR")
5404 (synopsis "Universal RNA-seq aligner")
5405 (description
5406 "The Spliced Transcripts Alignment to a Reference (STAR) software is
5407 based on a previously undescribed RNA-seq alignment algorithm that uses
5408 sequential maximum mappable seed search in uncompressed suffix arrays followed
5409 by seed clustering and stitching procedure. In addition to unbiased de novo
5410 detection of canonical junctions, STAR can discover non-canonical splices and
5411 chimeric (fusion) transcripts, and is also capable of mapping full-length RNA
5412 sequences.")
5413 ;; Only 64-bit systems are supported according to the README.
5414 (supported-systems '("x86_64-linux" "mips64el-linux"))
5415 ;; STAR is licensed under GPLv3 or later; htslib is MIT-licensed.
5416 (license license:gpl3+)))
5417
5418 (define-public subread
5419 (package
5420 (name "subread")
5421 (version "1.5.1")
5422 (source (origin
5423 (method url-fetch)
5424 (uri (string-append "mirror://sourceforge/subread/subread-"
5425 version "/subread-" version "-source.tar.gz"))
5426 (sha256
5427 (base32
5428 "0gn5zhbvllks0mmdg3qlmsbg91p2mpdc2wixwfqpi85yzfrh8hcy"))))
5429 (build-system gnu-build-system)
5430 (arguments
5431 `(#:tests? #f ;no "check" target
5432 ;; The CC and CCFLAGS variables are set to contain a lot of x86_64
5433 ;; optimizations by default, so we override these flags such that x86_64
5434 ;; flags are only added when the build target is an x86_64 system.
5435 #:make-flags
5436 (list (let ((system ,(or (%current-target-system)
5437 (%current-system)))
5438 (flags '("-ggdb" "-fomit-frame-pointer"
5439 "-ffast-math" "-funroll-loops"
5440 "-fmessage-length=0"
5441 "-O9" "-Wall" "-DMAKE_FOR_EXON"
5442 "-DMAKE_STANDALONE"
5443 "-DSUBREAD_VERSION=\\\"${SUBREAD_VERSION}\\\""))
5444 (flags64 '("-mmmx" "-msse" "-msse2" "-msse3")))
5445 (if (string-prefix? "x86_64" system)
5446 (string-append "CCFLAGS=" (string-join (append flags flags64)))
5447 (string-append "CCFLAGS=" (string-join flags))))
5448 "-f" "Makefile.Linux"
5449 "CC=gcc ${CCFLAGS}")
5450 #:phases
5451 (alist-cons-after
5452 'unpack 'enter-dir
5453 (lambda _ (chdir "src") #t)
5454 (alist-replace
5455 'install
5456 (lambda* (#:key outputs #:allow-other-keys)
5457 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5458 (mkdir-p bin)
5459 (copy-recursively "../bin" bin)))
5460 ;; no "configure" script
5461 (alist-delete 'configure %standard-phases)))))
5462 (inputs `(("zlib" ,zlib)))
5463 (home-page "http://bioinf.wehi.edu.au/subread-package/")
5464 (synopsis "Tool kit for processing next-gen sequencing data")
5465 (description
5466 "The subread package contains the following tools: subread aligner, a
5467 general-purpose read aligner; subjunc aligner: detecting exon-exon junctions
5468 and mapping RNA-seq reads; featureCounts: counting mapped reads for genomic
5469 features; exactSNP: a SNP caller that discovers SNPs by testing signals
5470 against local background noises.")
5471 (license license:gpl3+)))
5472
5473 (define-public stringtie
5474 (package
5475 (name "stringtie")
5476 (version "1.2.1")
5477 (source (origin
5478 (method url-fetch)
5479 (uri (string-append "http://ccb.jhu.edu/software/stringtie/dl/"
5480 "stringtie-" version ".tar.gz"))
5481 (sha256
5482 (base32
5483 "1cqllsc1maq4kh92isi8yadgzbmnf042hlnalpk3y59aph1z3bfz"))
5484 (modules '((guix build utils)))
5485 (snippet
5486 '(begin
5487 (delete-file-recursively "samtools-0.1.18")
5488 #t))))
5489 (build-system gnu-build-system)
5490 (arguments
5491 `(#:tests? #f ;no test suite
5492 #:phases
5493 (modify-phases %standard-phases
5494 ;; no configure script
5495 (delete 'configure)
5496 (add-before 'build 'use-system-samtools
5497 (lambda _
5498 (substitute* "Makefile"
5499 (("stringtie: \\$\\{BAM\\}/libbam\\.a")
5500 "stringtie: "))
5501 (substitute* '("gclib/GBam.h"
5502 "gclib/GBam.cpp")
5503 (("#include \"(bam|sam|kstring).h\"" _ header)
5504 (string-append "#include <samtools/" header ".h>")))
5505 #t))
5506 (add-after 'unpack 'remove-duplicate-typedef
5507 (lambda _
5508 ;; This typedef conflicts with the typedef in
5509 ;; glibc-2.25/include/bits/types.h
5510 (substitute* "gclib/GThreads.h"
5511 (("typedef long long __intmax_t;") ""))
5512 #t))
5513 (replace 'install
5514 (lambda* (#:key outputs #:allow-other-keys)
5515 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5516 (install-file "stringtie" bin)
5517 #t))))))
5518 (inputs
5519 `(("samtools" ,samtools-0.1)
5520 ("zlib" ,zlib)))
5521 (home-page "http://ccb.jhu.edu/software/stringtie/")
5522 (synopsis "Transcript assembly and quantification for RNA-Seq data")
5523 (description
5524 "StringTie is a fast and efficient assembler of RNA-Seq sequence
5525 alignments into potential transcripts. It uses a novel network flow algorithm
5526 as well as an optional de novo assembly step to assemble and quantitate
5527 full-length transcripts representing multiple splice variants for each gene
5528 locus. Its input can include not only the alignments of raw reads used by
5529 other transcript assemblers, but also alignments of longer sequences that have
5530 been assembled from those reads. To identify differentially expressed genes
5531 between experiments, StringTie's output can be processed either by the
5532 Cuffdiff or Ballgown programs.")
5533 (license license:artistic2.0)))
5534
5535 (define-public taxtastic
5536 (package
5537 (name "taxtastic")
5538 (version "0.6.4")
5539 (source (origin
5540 (method url-fetch)
5541 (uri (pypi-uri "taxtastic" version))
5542 (sha256
5543 (base32
5544 "0s79z8kfl853x7l4h8ms05k31q87aw62nrchlk20w9n227j35929"))))
5545 (build-system python-build-system)
5546 (arguments
5547 `(#:python ,python-2
5548 #:phases
5549 (modify-phases %standard-phases
5550 (replace 'check
5551 (lambda _
5552 (zero? (system* "python" "-m" "unittest" "discover" "-v")))))))
5553 (propagated-inputs
5554 `(("python-sqlalchemy" ,python2-sqlalchemy)
5555 ("python-decorator" ,python2-decorator)
5556 ("python-biopython" ,python2-biopython)
5557 ("python-pandas" ,python2-pandas)))
5558 (home-page "https://github.com/fhcrc/taxtastic")
5559 (synopsis "Tools for taxonomic naming and annotation")
5560 (description
5561 "Taxtastic is software written in python used to build and maintain
5562 reference packages i.e. collections of reference trees, reference alignments,
5563 profiles, and associated taxonomic information.")
5564 (license license:gpl3+)))
5565
5566 (define-public vcftools
5567 (package
5568 (name "vcftools")
5569 (version "0.1.15")
5570 (source (origin
5571 (method url-fetch)
5572 (uri (string-append
5573 "https://github.com/vcftools/vcftools/releases/download/v"
5574 version "/vcftools-" version ".tar.gz"))
5575 (sha256
5576 (base32
5577 "1qw30c45wihgy632rbz4rh3njnwj4msj46l1rsgdhyg6bgypmr1i"))))
5578 (build-system gnu-build-system)
5579 (arguments
5580 `(#:tests? #f ; no "check" target
5581 #:make-flags (list
5582 "CFLAGS=-O2" ; override "-m64" flag
5583 (string-append "PREFIX=" (assoc-ref %outputs "out"))
5584 (string-append "MANDIR=" (assoc-ref %outputs "out")
5585 "/share/man/man1"))))
5586 (native-inputs
5587 `(("pkg-config" ,pkg-config)))
5588 (inputs
5589 `(("perl" ,perl)
5590 ("zlib" ,zlib)))
5591 (home-page "https://vcftools.github.io/")
5592 (synopsis "Tools for working with VCF files")
5593 (description
5594 "VCFtools is a program package designed for working with VCF files, such
5595 as those generated by the 1000 Genomes Project. The aim of VCFtools is to
5596 provide easily accessible methods for working with complex genetic variation
5597 data in the form of VCF files.")
5598 ;; The license is declared as LGPLv3 in the README and
5599 ;; at https://vcftools.github.io/license.html
5600 (license license:lgpl3)))
5601
5602 (define-public infernal
5603 (package
5604 (name "infernal")
5605 (version "1.1.2")
5606 (source (origin
5607 (method url-fetch)
5608 (uri (string-append "http://eddylab.org/software/infernal/"
5609 "infernal-" version ".tar.gz"))
5610 (sha256
5611 (base32
5612 "0sr2hiz3qxfwqpz3whxr6n82p3x27336v3f34iqznp10hks2935c"))))
5613 (build-system gnu-build-system)
5614 (native-inputs
5615 `(("perl" ,perl))) ; for tests
5616 (home-page "http://eddylab.org/infernal/")
5617 (synopsis "Inference of RNA alignments")
5618 (description "Infernal (\"INFERence of RNA ALignment\") is a tool for
5619 searching DNA sequence databases for RNA structure and sequence similarities.
5620 It is an implementation of a special case of profile stochastic context-free
5621 grammars called @dfn{covariance models} (CMs). A CM is like a sequence
5622 profile, but it scores a combination of sequence consensus and RNA secondary
5623 structure consensus, so in many cases, it is more capable of identifying RNA
5624 homologs that conserve their secondary structure more than their primary
5625 sequence.")
5626 ;; Infernal 1.1.2 requires VMX or SSE capability for parallel instructions.
5627 (supported-systems '("i686-linux" "x86_64-linux"))
5628 (license license:bsd-3)))
5629
5630 (define-public r-centipede
5631 (package
5632 (name "r-centipede")
5633 (version "1.2")
5634 (source (origin
5635 (method url-fetch)
5636 (uri (string-append "http://download.r-forge.r-project.org/"
5637 "src/contrib/CENTIPEDE_" version ".tar.gz"))
5638 (sha256
5639 (base32
5640 "1hsx6qgwr0i67fhy9257zj7s0ppncph2hjgbia5nn6nfmj0ax6l9"))))
5641 (build-system r-build-system)
5642 (home-page "http://centipede.uchicago.edu/")
5643 (synopsis "Predict transcription factor binding sites")
5644 (description
5645 "CENTIPEDE applies a hierarchical Bayesian mixture model to infer regions
5646 of the genome that are bound by particular transcription factors. It starts
5647 by identifying a set of candidate binding sites, and then aims to classify the
5648 sites according to whether each site is bound or not bound by a transcription
5649 factor. CENTIPEDE is an unsupervised learning algorithm that discriminates
5650 between two different types of motif instances using as much relevant
5651 information as possible.")
5652 (license (list license:gpl2+ license:gpl3+))))
5653
5654 (define-public r-vegan
5655 (package
5656 (name "r-vegan")
5657 (version "2.4-3")
5658 (source
5659 (origin
5660 (method url-fetch)
5661 (uri (cran-uri "vegan" version))
5662 (sha256
5663 (base32
5664 "15zcxfix2d854897k1lr0sfmj2n00339nlsppcr3zrb238lb2mi5"))))
5665 (build-system r-build-system)
5666 (native-inputs
5667 `(("gfortran" ,gfortran)
5668 ("r-knitr" ,r-knitr)))
5669 (propagated-inputs
5670 `(("r-cluster" ,r-cluster)
5671 ("r-lattice" ,r-lattice)
5672 ("r-mass" ,r-mass)
5673 ("r-mgcv" ,r-mgcv)
5674 ("r-permute" ,r-permute)))
5675 (home-page "https://cran.r-project.org/web/packages/vegan")
5676 (synopsis "Functions for community ecology")
5677 (description
5678 "The vegan package provides tools for descriptive community ecology. It
5679 has most basic functions of diversity analysis, community ordination and
5680 dissimilarity analysis. Most of its multivariate tools can be used for other
5681 data types as well.")
5682 (license license:gpl2+)))
5683
5684 (define-public r-annotate
5685 (package
5686 (name "r-annotate")
5687 (version "1.54.0")
5688 (source
5689 (origin
5690 (method url-fetch)
5691 (uri (bioconductor-uri "annotate" version))
5692 (sha256
5693 (base32
5694 "03hmbvp3i6lvd307fqdg7akxi2qp322rlky3bzw0zccgm0i0221g"))))
5695 (build-system r-build-system)
5696 (propagated-inputs
5697 `(("r-annotationdbi" ,r-annotationdbi)
5698 ("r-biobase" ,r-biobase)
5699 ("r-biocgenerics" ,r-biocgenerics)
5700 ("r-dbi" ,r-dbi)
5701 ("r-rcurl" ,r-rcurl)
5702 ("r-xml" ,r-xml)
5703 ("r-xtable" ,r-xtable)))
5704 (home-page
5705 "http://bioconductor.org/packages/annotate")
5706 (synopsis "Annotation for microarrays")
5707 (description "This package provides R environments for the annotation of
5708 microarrays.")
5709 (license license:artistic2.0)))
5710
5711 (define-public r-geneplotter
5712 (package
5713 (name "r-geneplotter")
5714 (version "1.54.0")
5715 (source
5716 (origin
5717 (method url-fetch)
5718 (uri (bioconductor-uri "geneplotter" version))
5719 (sha256
5720 (base32
5721 "0a0ajns21db5rrjl16bq6wawggsnxr00fg184pc38nmfghv4z4b6"))))
5722 (build-system r-build-system)
5723 (propagated-inputs
5724 `(("r-annotate" ,r-annotate)
5725 ("r-annotationdbi" ,r-annotationdbi)
5726 ("r-biobase" ,r-biobase)
5727 ("r-biocgenerics" ,r-biocgenerics)
5728 ("r-lattice" ,r-lattice)
5729 ("r-rcolorbrewer" ,r-rcolorbrewer)))
5730 (home-page "http://bioconductor.org/packages/geneplotter")
5731 (synopsis "Graphics functions for genomic data")
5732 (description
5733 "This package provides functions for plotting genomic data.")
5734 (license license:artistic2.0)))
5735
5736 (define-public r-genefilter
5737 (package
5738 (name "r-genefilter")
5739 (version "1.58.0")
5740 (source
5741 (origin
5742 (method url-fetch)
5743 (uri (bioconductor-uri "genefilter" version))
5744 (sha256
5745 (base32
5746 "0sf2hdi9nv6r83vn1y65m4jiba8pffddpj46d6yjn5rlsixplmqg"))))
5747 (build-system r-build-system)
5748 (native-inputs
5749 `(("gfortran" ,gfortran)))
5750 (propagated-inputs
5751 `(("r-annotate" ,r-annotate)
5752 ("r-annotationdbi" ,r-annotationdbi)
5753 ("r-biobase" ,r-biobase)
5754 ("r-s4vectors" ,r-s4vectors)
5755 ("r-survival" ,r-survival)))
5756 (home-page "http://bioconductor.org/packages/genefilter")
5757 (synopsis "Filter genes from high-throughput experiments")
5758 (description
5759 "This package provides basic functions for filtering genes from
5760 high-throughput sequencing experiments.")
5761 (license license:artistic2.0)))
5762
5763 (define-public r-deseq2
5764 (package
5765 (name "r-deseq2")
5766 (version "1.16.1")
5767 (source
5768 (origin
5769 (method url-fetch)
5770 (uri (bioconductor-uri "DESeq2" version))
5771 (sha256
5772 (base32
5773 "01pvyljxkwazxl510v7h0971nx65iqd2bdkbdhw3xzind0n9pdvq"))))
5774 (properties `((upstream-name . "DESeq2")))
5775 (build-system r-build-system)
5776 (propagated-inputs
5777 `(("r-biobase" ,r-biobase)
5778 ("r-biocgenerics" ,r-biocgenerics)
5779 ("r-biocparallel" ,r-biocparallel)
5780 ("r-genefilter" ,r-genefilter)
5781 ("r-geneplotter" ,r-geneplotter)
5782 ("r-genomicranges" ,r-genomicranges)
5783 ("r-ggplot2" ,r-ggplot2)
5784 ("r-hmisc" ,r-hmisc)
5785 ("r-iranges" ,r-iranges)
5786 ("r-locfit" ,r-locfit)
5787 ("r-rcpp" ,r-rcpp)
5788 ("r-rcpparmadillo" ,r-rcpparmadillo)
5789 ("r-s4vectors" ,r-s4vectors)
5790 ("r-summarizedexperiment" ,r-summarizedexperiment)))
5791 (home-page "http://bioconductor.org/packages/DESeq2")
5792 (synopsis "Differential gene expression analysis")
5793 (description
5794 "This package provides functions to estimate variance-mean dependence in
5795 count data from high-throughput nucleotide sequencing assays and test for
5796 differential expression based on a model using the negative binomial
5797 distribution.")
5798 (license license:lgpl3+)))
5799
5800 (define-public r-dexseq
5801 (package
5802 (name "r-dexseq")
5803 (version "1.22.0")
5804 (source
5805 (origin
5806 (method url-fetch)
5807 (uri (bioconductor-uri "DEXSeq" version))
5808 (sha256
5809 (base32
5810 "085aqk1wlzzqcqcqhvz74y099kr2ln5dwdxd3rl6zan806mgwahg"))))
5811 (properties `((upstream-name . "DEXSeq")))
5812 (build-system r-build-system)
5813 (propagated-inputs
5814 `(("r-annotationdbi" ,r-annotationdbi)
5815 ("r-biobase" ,r-biobase)
5816 ("r-biocgenerics" ,r-biocgenerics)
5817 ("r-biocparallel" ,r-biocparallel)
5818 ("r-biomart" ,r-biomart)
5819 ("r-deseq2" ,r-deseq2)
5820 ("r-genefilter" ,r-genefilter)
5821 ("r-geneplotter" ,r-geneplotter)
5822 ("r-genomicranges" ,r-genomicranges)
5823 ("r-hwriter" ,r-hwriter)
5824 ("r-iranges" ,r-iranges)
5825 ("r-rcolorbrewer" ,r-rcolorbrewer)
5826 ("r-rsamtools" ,r-rsamtools)
5827 ("r-s4vectors" ,r-s4vectors)
5828 ("r-statmod" ,r-statmod)
5829 ("r-stringr" ,r-stringr)
5830 ("r-summarizedexperiment" ,r-summarizedexperiment)))
5831 (home-page "http://bioconductor.org/packages/DEXSeq")
5832 (synopsis "Inference of differential exon usage in RNA-Seq")
5833 (description
5834 "This package is focused on finding differential exon usage using RNA-seq
5835 exon counts between samples with different experimental designs. It provides
5836 functions that allows the user to make the necessary statistical tests based
5837 on a model that uses the negative binomial distribution to estimate the
5838 variance between biological replicates and generalized linear models for
5839 testing. The package also provides functions for the visualization and
5840 exploration of the results.")
5841 (license license:gpl3+)))
5842
5843 (define-public r-annotationforge
5844 (package
5845 (name "r-annotationforge")
5846 (version "1.18.1")
5847 (source
5848 (origin
5849 (method url-fetch)
5850 (uri (bioconductor-uri "AnnotationForge" version))
5851 (sha256
5852 (base32
5853 "1366qvykd9cpcvwgc5g9mm9adw9rxw6p4814dd6l5fyb0pwpmysx"))))
5854 (properties
5855 `((upstream-name . "AnnotationForge")))
5856 (build-system r-build-system)
5857 (propagated-inputs
5858 `(("r-annotationdbi" ,r-annotationdbi)
5859 ("r-biobase" ,r-biobase)
5860 ("r-biocgenerics" ,r-biocgenerics)
5861 ("r-dbi" ,r-dbi)
5862 ("r-rcurl" ,r-rcurl)
5863 ("r-rsqlite" ,r-rsqlite)
5864 ("r-s4vectors" ,r-s4vectors)
5865 ("r-xml" ,r-xml)))
5866 (home-page "http://bioconductor.org/packages/AnnotationForge")
5867 (synopsis "Code for building annotation database packages")
5868 (description
5869 "This package provides code for generating Annotation packages and their
5870 databases. Packages produced are intended to be used with AnnotationDbi.")
5871 (license license:artistic2.0)))
5872
5873 (define-public r-rbgl
5874 (package
5875 (name "r-rbgl")
5876 (version "1.52.0")
5877 (source
5878 (origin
5879 (method url-fetch)
5880 (uri (bioconductor-uri "RBGL" version))
5881 (sha256
5882 (base32
5883 "11db6kvz453ypj9ds3xpjqzwrrjck84ijn4wlhkfyz2dzdgd5ryv"))))
5884 (properties `((upstream-name . "RBGL")))
5885 (build-system r-build-system)
5886 (propagated-inputs `(("r-graph" ,r-graph)))
5887 (home-page "http://www.bioconductor.org/packages/RBGL")
5888 (synopsis "Interface to the Boost graph library")
5889 (description
5890 "This package provides a fairly extensive and comprehensive interface to
5891 the graph algorithms contained in the Boost library.")
5892 (license license:artistic2.0)))
5893
5894 (define-public r-gseabase
5895 (package
5896 (name "r-gseabase")
5897 (version "1.38.0")
5898 (source
5899 (origin
5900 (method url-fetch)
5901 (uri (bioconductor-uri "GSEABase" version))
5902 (sha256
5903 (base32
5904 "1c6i6g4fj3b8wjyxyygr7i3v8sxrq1ffb2bbicya5ah2gdaclfad"))))
5905 (properties `((upstream-name . "GSEABase")))
5906 (build-system r-build-system)
5907 (propagated-inputs
5908 `(("r-annotate" ,r-annotate)
5909 ("r-annotationdbi" ,r-annotationdbi)
5910 ("r-biobase" ,r-biobase)
5911 ("r-biocgenerics" ,r-biocgenerics)
5912 ("r-graph" ,r-graph)
5913 ("r-xml" ,r-xml)))
5914 (home-page "http://bioconductor.org/packages/GSEABase")
5915 (synopsis "Gene set enrichment data structures and methods")
5916 (description
5917 "This package provides classes and methods to support @dfn{Gene Set
5918 Enrichment Analysis} (GSEA).")
5919 (license license:artistic2.0)))
5920
5921 (define-public r-category
5922 (package
5923 (name "r-category")
5924 (version "2.42.1")
5925 (source
5926 (origin
5927 (method url-fetch)
5928 (uri (bioconductor-uri "Category" version))
5929 (sha256
5930 (base32
5931 "1w186nhc85bglcgmbcrsdbb8l6rph21pl5kdwjqwkp0jnr9z0ifn"))))
5932 (properties `((upstream-name . "Category")))
5933 (build-system r-build-system)
5934 (propagated-inputs
5935 `(("r-annotate" ,r-annotate)
5936 ("r-annotationdbi" ,r-annotationdbi)
5937 ("r-biobase" ,r-biobase)
5938 ("r-biocgenerics" ,r-biocgenerics)
5939 ("r-genefilter" ,r-genefilter)
5940 ("r-graph" ,r-graph)
5941 ("r-gseabase" ,r-gseabase)
5942 ("r-matrix" ,r-matrix)
5943 ("r-rbgl" ,r-rbgl)
5944 ("r-rsqlite" ,r-rsqlite)))
5945 (home-page "http://bioconductor.org/packages/Category")
5946 (synopsis "Category analysis")
5947 (description
5948 "This package provides a collection of tools for performing category
5949 analysis.")
5950 (license license:artistic2.0)))
5951
5952 (define-public r-gostats
5953 (package
5954 (name "r-gostats")
5955 (version "2.42.0")
5956 (source
5957 (origin
5958 (method url-fetch)
5959 (uri (bioconductor-uri "GOstats" version))
5960 (sha256
5961 (base32
5962 "0qvqjgfnd9ap4rikvyxa9p4dhcnccvkw8phzv88vghh6pq463d62"))))
5963 (properties `((upstream-name . "GOstats")))
5964 (build-system r-build-system)
5965 (propagated-inputs
5966 `(("r-annotate" ,r-annotate)
5967 ("r-annotationdbi" ,r-annotationdbi)
5968 ("r-annotationforge" ,r-annotationforge)
5969 ("r-biobase" ,r-biobase)
5970 ("r-category" ,r-category)
5971 ("r-go-db" ,r-go-db)
5972 ("r-graph" ,r-graph)
5973 ("r-rbgl" ,r-rbgl)))
5974 (home-page "http://bioconductor.org/packages/GOstats")
5975 (synopsis "Tools for manipulating GO and microarrays")
5976 (description
5977 "This package provides a set of tools for interacting with GO and
5978 microarray data. A variety of basic manipulation tools for graphs, hypothesis
5979 testing and other simple calculations.")
5980 (license license:artistic2.0)))
5981
5982 (define-public r-shortread
5983 (package
5984 (name "r-shortread")
5985 (version "1.34.0")
5986 (source
5987 (origin
5988 (method url-fetch)
5989 (uri (bioconductor-uri "ShortRead" version))
5990 (sha256
5991 (base32
5992 "0ayk3d5625ymb5g2gycq6banzqmyd642xrwjzhdshz2dwid7kly8"))))
5993 (properties `((upstream-name . "ShortRead")))
5994 (build-system r-build-system)
5995 (inputs
5996 `(("zlib" ,zlib)))
5997 (propagated-inputs
5998 `(("r-biobase" ,r-biobase)
5999 ("r-biocgenerics" ,r-biocgenerics)
6000 ("r-biocparallel" ,r-biocparallel)
6001 ("r-biostrings" ,r-biostrings)
6002 ("r-genomeinfodb" ,r-genomeinfodb)
6003 ("r-genomicalignments" ,r-genomicalignments)
6004 ("r-genomicranges" ,r-genomicranges)
6005 ("r-hwriter" ,r-hwriter)
6006 ("r-iranges" ,r-iranges)
6007 ("r-lattice" ,r-lattice)
6008 ("r-latticeextra" ,r-latticeextra)
6009 ("r-rsamtools" ,r-rsamtools)
6010 ("r-s4vectors" ,r-s4vectors)
6011 ("r-xvector" ,r-xvector)
6012 ("r-zlibbioc" ,r-zlibbioc)))
6013 (home-page "http://bioconductor.org/packages/ShortRead")
6014 (synopsis "FASTQ input and manipulation tools")
6015 (description
6016 "This package implements sampling, iteration, and input of FASTQ files.
6017 It includes functions for filtering and trimming reads, and for generating a
6018 quality assessment report. Data are represented as
6019 @code{DNAStringSet}-derived objects, and easily manipulated for a diversity of
6020 purposes. The package also contains legacy support for early single-end,
6021 ungapped alignment formats.")
6022 (license license:artistic2.0)))
6023
6024 (define-public r-systempiper
6025 (package
6026 (name "r-systempiper")
6027 (version "1.10.0")
6028 (source
6029 (origin
6030 (method url-fetch)
6031 (uri (bioconductor-uri "systemPipeR" version))
6032 (sha256
6033 (base32
6034 "0c3m5rq63ypv15yca97yag5d4vgd7xj9by2a4sd8z0pcmpajz0hw"))))
6035 (properties `((upstream-name . "systemPipeR")))
6036 (build-system r-build-system)
6037 (propagated-inputs
6038 `(("r-annotate" ,r-annotate)
6039 ("r-batchjobs" ,r-batchjobs)
6040 ("r-biocgenerics" ,r-biocgenerics)
6041 ("r-biostrings" ,r-biostrings)
6042 ("r-deseq2" ,r-deseq2)
6043 ("r-edger" ,r-edger)
6044 ("r-genomicfeatures" ,r-genomicfeatures)
6045 ("r-genomicranges" ,r-genomicranges)
6046 ("r-ggplot2" ,r-ggplot2)
6047 ("r-go-db" ,r-go-db)
6048 ("r-gostats" ,r-gostats)
6049 ("r-limma" ,r-limma)
6050 ("r-pheatmap" ,r-pheatmap)
6051 ("r-rjson" ,r-rjson)
6052 ("r-rsamtools" ,r-rsamtools)
6053 ("r-shortread" ,r-shortread)
6054 ("r-summarizedexperiment" ,r-summarizedexperiment)
6055 ("r-variantannotation" ,r-variantannotation)))
6056 (home-page "https://github.com/tgirke/systemPipeR")
6057 (synopsis "Next generation sequencing workflow and reporting environment")
6058 (description
6059 "This R package provides tools for building and running automated
6060 end-to-end analysis workflows for a wide range of @dfn{next generation
6061 sequence} (NGS) applications such as RNA-Seq, ChIP-Seq, VAR-Seq and Ribo-Seq.
6062 Important features include a uniform workflow interface across different NGS
6063 applications, automated report generation, and support for running both R and
6064 command-line software, such as NGS aligners or peak/variant callers, on local
6065 computers or compute clusters. Efficient handling of complex sample sets and
6066 experimental designs is facilitated by a consistently implemented sample
6067 annotation infrastructure.")
6068 (license license:artistic2.0)))
6069
6070 (define-public r-grohmm
6071 (package
6072 (name "r-grohmm")
6073 (version "1.10.0")
6074 (source
6075 (origin
6076 (method url-fetch)
6077 (uri (bioconductor-uri "groHMM" version))
6078 (sha256
6079 (base32
6080 "16k1kp4sbhh0vp7dzywafq52csq42ksqfrqfy4bdv1qbd7536dpd"))))
6081 (properties `((upstream-name . "groHMM")))
6082 (build-system r-build-system)
6083 (propagated-inputs
6084 `(("r-genomeinfodb" ,r-genomeinfodb)
6085 ("r-genomicalignments" ,r-genomicalignments)
6086 ("r-genomicranges" ,r-genomicranges)
6087 ("r-iranges" ,r-iranges)
6088 ("r-mass" ,r-mass)
6089 ("r-rtracklayer" ,r-rtracklayer)
6090 ("r-s4vectors" ,r-s4vectors)))
6091 (home-page "https://github.com/Kraus-Lab/groHMM")
6092 (synopsis "GRO-seq analysis pipeline")
6093 (description
6094 "This package provides a pipeline for the analysis of GRO-seq data.")
6095 (license license:gpl3+)))
6096
6097 (define-public r-txdb-hsapiens-ucsc-hg19-knowngene
6098 (package
6099 (name "r-txdb-hsapiens-ucsc-hg19-knowngene")
6100 (version "3.2.2")
6101 (source (origin
6102 (method url-fetch)
6103 ;; We cannot use bioconductor-uri here because this tarball is
6104 ;; located under "data/annotation/" instead of "bioc/".
6105 (uri (string-append "http://bioconductor.org/packages/"
6106 "release/data/annotation/src/contrib"
6107 "/TxDb.Hsapiens.UCSC.hg19.knownGene_"
6108 version ".tar.gz"))
6109 (sha256
6110 (base32
6111 "1sajhcqqwazgz2lqbik7rd935i7kpnh08zxbp2ra10j72yqy4g86"))))
6112 (properties
6113 `((upstream-name . "TxDb.Hsapiens.UCSC.hg19.knownGene")))
6114 (build-system r-build-system)
6115 ;; As this package provides little more than a very large data file it
6116 ;; doesn't make sense to build substitutes.
6117 (arguments `(#:substitutable? #f))
6118 (propagated-inputs
6119 `(("r-genomicfeatures" ,r-genomicfeatures)))
6120 (home-page
6121 "http://bioconductor.org/packages/TxDb.Hsapiens.UCSC.hg19.knownGene/")
6122 (synopsis "Annotation package for human genome in TxDb format")
6123 (description
6124 "This package provides an annotation database of Homo sapiens genome
6125 data. It is derived from the UCSC hg19 genome and based on the \"knownGene\"
6126 track. The database is exposed as a @code{TxDb} object.")
6127 (license license:artistic2.0)))
6128
6129 (define-public vsearch
6130 (package
6131 (name "vsearch")
6132 (version "2.4.3")
6133 (source
6134 (origin
6135 (method url-fetch)
6136 (uri (string-append
6137 "https://github.com/torognes/vsearch/archive/v"
6138 version ".tar.gz"))
6139 (file-name (string-append name "-" version ".tar.gz"))
6140 (sha256
6141 (base32
6142 "0hc110ycqpa54nr6x173qg7190hk08qp7yz7zzqxlsypqnpc5zzp"))
6143 (patches (search-patches "vsearch-unbundle-cityhash.patch"))
6144 (snippet
6145 '(begin
6146 ;; Remove bundled cityhash sources. The vsearch source is adjusted
6147 ;; for this in the patch.
6148 (delete-file "src/city.h")
6149 (delete-file "src/citycrc.h")
6150 (delete-file "src/city.cc")
6151 #t))))
6152 (build-system gnu-build-system)
6153 (arguments
6154 `(#:phases
6155 (modify-phases %standard-phases
6156 (add-before 'configure 'autogen
6157 (lambda _ (zero? (system* "autoreconf" "-vif")))))))
6158 (inputs
6159 `(("zlib" ,zlib)
6160 ("bzip2" ,bzip2)
6161 ("cityhash" ,cityhash)))
6162 (native-inputs
6163 `(("autoconf" ,autoconf)
6164 ("automake" ,automake)))
6165 (synopsis "Sequence search tools for metagenomics")
6166 (description
6167 "VSEARCH supports DNA sequence searching, clustering, chimera detection,
6168 dereplication, pairwise alignment, shuffling, subsampling, sorting and
6169 masking. The tool takes advantage of parallelism in the form of SIMD
6170 vectorization as well as multiple threads to perform accurate alignments at
6171 high speed. VSEARCH uses an optimal global aligner (full dynamic programming
6172 Needleman-Wunsch).")
6173 (home-page "https://github.com/torognes/vsearch")
6174 ;; vsearch uses non-portable SSE intrinsics so building fails on other
6175 ;; platforms.
6176 (supported-systems '("x86_64-linux"))
6177 ;; Dual licensed; also includes public domain source.
6178 (license (list license:gpl3 license:bsd-2))))
6179
6180 (define-public pardre
6181 (package
6182 (name "pardre")
6183 ;; The source of 1.1.5 changed in place, so we append "-1" to the version.
6184 (version "1.1.5-1")
6185 (source
6186 (origin
6187 (method url-fetch)
6188 (uri (string-append "mirror://sourceforge/pardre/ParDRe-rel"
6189 "1.1.5" ".tar.gz"))
6190 (sha256
6191 (base32
6192 "17j73nc0viq4f6qj50nrndsrif5d6b71q8fl87m54psiv0ilns2b"))))
6193 (build-system gnu-build-system)
6194 (arguments
6195 `(#:tests? #f ; no tests included
6196 #:phases
6197 (modify-phases %standard-phases
6198 (delete 'configure)
6199 (replace 'install
6200 (lambda* (#:key outputs #:allow-other-keys)
6201 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
6202 (install-file "ParDRe" bin)
6203 #t))))))
6204 (inputs
6205 `(("openmpi" ,openmpi)
6206 ("zlib" ,zlib)))
6207 (synopsis "Parallel tool to remove duplicate DNA reads")
6208 (description
6209 "ParDRe is a parallel tool to remove duplicate genetic sequence reads.
6210 Duplicate reads can be seen as identical or nearly identical sequences with
6211 some mismatches. This tool lets users avoid the analysis of unnecessary
6212 reads, reducing the time of subsequent procedures with the
6213 dataset (e.g. assemblies, mappings, etc.). The tool is implemented with MPI
6214 in order to exploit the parallel capabilities of multicore clusters. It is
6215 faster than multithreaded counterparts (end of 2015) for the same number of
6216 cores and, thanks to the message-passing technology, it can be executed on
6217 clusters.")
6218 (home-page "https://sourceforge.net/projects/pardre/")
6219 (license license:gpl3+)))
6220
6221 (define-public ruby-bio-kseq
6222 (package
6223 (name "ruby-bio-kseq")
6224 (version "0.0.2")
6225 (source
6226 (origin
6227 (method url-fetch)
6228 (uri (rubygems-uri "bio-kseq" version))
6229 (sha256
6230 (base32
6231 "1xyaha46khb5jc6wzkbf7040jagac49jbimn0vcrzid0j8jdikrz"))))
6232 (build-system ruby-build-system)
6233 (arguments
6234 `(#:test-target "spec"))
6235 (native-inputs
6236 `(("bundler" ,bundler)
6237 ("ruby-rspec" ,ruby-rspec)
6238 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6239 (inputs
6240 `(("zlib" ,zlib)))
6241 (synopsis "Ruby bindings for the kseq.h FASTA/Q parser")
6242 (description
6243 "@code{Bio::Kseq} provides ruby bindings to the @code{kseq.h} FASTA and
6244 FASTQ parsing code. It provides a fast iterator over sequences and their
6245 quality scores.")
6246 (home-page "https://github.com/gusevfe/bio-kseq")
6247 (license license:expat)))
6248
6249 (define-public bio-locus
6250 (package
6251 (name "bio-locus")
6252 (version "0.0.7")
6253 (source
6254 (origin
6255 (method url-fetch)
6256 (uri (rubygems-uri "bio-locus" version))
6257 (sha256
6258 (base32
6259 "02vmrxyimkj9sahsp4zhfhnmbvz6dbbqz1y01vglf8cbwvkajfl0"))))
6260 (build-system ruby-build-system)
6261 (native-inputs
6262 `(("ruby-rspec" ,ruby-rspec)))
6263 (synopsis "Tool for fast querying of genome locations")
6264 (description
6265 "Bio-locus is a tabix-like tool for fast querying of genome
6266 locations. Many file formats in bioinformatics contain records that
6267 start with a chromosome name and a position for a SNP, or a start-end
6268 position for indels. Bio-locus allows users to store this chr+pos or
6269 chr+pos+alt information in a database.")
6270 (home-page "https://github.com/pjotrp/bio-locus")
6271 (license license:expat)))
6272
6273 (define-public bio-blastxmlparser
6274 (package
6275 (name "bio-blastxmlparser")
6276 (version "2.0.4")
6277 (source (origin
6278 (method url-fetch)
6279 (uri (rubygems-uri "bio-blastxmlparser" version))
6280 (sha256
6281 (base32
6282 "1wf4qygcmdjgcqm6flmvsagfr1gs9lf63mj32qv3z1f481zc5692"))))
6283 (build-system ruby-build-system)
6284 (propagated-inputs
6285 `(("ruby-bio-logger" ,ruby-bio-logger)
6286 ("ruby-nokogiri" ,ruby-nokogiri)))
6287 (inputs
6288 `(("ruby-rspec" ,ruby-rspec)))
6289 (synopsis "Fast big data BLAST XML parser and library")
6290 (description
6291 "Very fast parallel big-data BLAST XML file parser which can be used as
6292 command line utility. Use blastxmlparser to: Parse BLAST XML; filter output;
6293 generate FASTA, JSON, YAML, RDF, JSON-LD, HTML, CSV, tabular output etc.")
6294 (home-page "https://github.com/pjotrp/blastxmlparser")
6295 (license license:expat)))
6296
6297 (define-public bioruby
6298 (package
6299 (name "bioruby")
6300 (version "1.5.1")
6301 (source
6302 (origin
6303 (method url-fetch)
6304 (uri (rubygems-uri "bio" version))
6305 (sha256
6306 (base32
6307 "0hdl0789c9n4mprnx5pgd46bfwl8d000rqpamj5h6kkjgspijv49"))))
6308 (build-system ruby-build-system)
6309 (propagated-inputs
6310 `(("ruby-libxml" ,ruby-libxml)))
6311 (native-inputs
6312 `(("which" ,which))) ; required for test phase
6313 (arguments
6314 `(#:phases
6315 (modify-phases %standard-phases
6316 (add-before 'build 'patch-test-command
6317 (lambda _
6318 (substitute* '("test/functional/bio/test_command.rb")
6319 (("/bin/sh") (which "sh")))
6320 (substitute* '("test/functional/bio/test_command.rb")
6321 (("/bin/ls") (which "ls")))
6322 (substitute* '("test/functional/bio/test_command.rb")
6323 (("which") (which "which")))
6324 (substitute* '("test/functional/bio/test_command.rb",
6325 "test/data/command/echoarg2.sh")
6326 (("/bin/echo") (which "echo")))
6327 #t)))))
6328 (synopsis "Ruby library, shell and utilities for bioinformatics")
6329 (description "BioRuby comes with a comprehensive set of Ruby development
6330 tools and libraries for bioinformatics and molecular biology. BioRuby has
6331 components for sequence analysis, pathway analysis, protein modelling and
6332 phylogenetic analysis; it supports many widely used data formats and provides
6333 easy access to databases, external programs and public web services, including
6334 BLAST, KEGG, GenBank, MEDLINE and GO.")
6335 (home-page "http://bioruby.org/")
6336 ;; Code is released under Ruby license, except for setup
6337 ;; (LGPLv2.1+) and scripts in samples (which have GPL2 and GPL2+)
6338 (license (list license:ruby license:lgpl2.1+ license:gpl2+ ))))
6339
6340 (define-public r-acsnminer
6341 (package
6342 (name "r-acsnminer")
6343 (version "0.16.8.25")
6344 (source (origin
6345 (method url-fetch)
6346 (uri (cran-uri "ACSNMineR" version))
6347 (sha256
6348 (base32
6349 "0gh604s8qall6zfjlwcg2ilxjvz08dplf9k5g47idhv43scm748l"))))
6350 (properties `((upstream-name . "ACSNMineR")))
6351 (build-system r-build-system)
6352 (propagated-inputs
6353 `(("r-ggplot2" ,r-ggplot2)
6354 ("r-gridextra" ,r-gridextra)))
6355 (home-page "http://cran.r-project.org/web/packages/ACSNMineR")
6356 (synopsis "Gene enrichment analysis")
6357 (description
6358 "This package provides tools to compute and represent gene set enrichment
6359 or depletion from your data based on pre-saved maps from the @dfn{Atlas of
6360 Cancer Signalling Networks} (ACSN) or user imported maps. The gene set
6361 enrichment can be run with hypergeometric test or Fisher exact test, and can
6362 use multiple corrections. Visualization of data can be done either by
6363 barplots or heatmaps.")
6364 (license license:gpl2+)))
6365
6366 (define-public r-biocgenerics
6367 (package
6368 (name "r-biocgenerics")
6369 (version "0.22.0")
6370 (source (origin
6371 (method url-fetch)
6372 (uri (bioconductor-uri "BiocGenerics" version))
6373 (sha256
6374 (base32
6375 "0qbmz2qxwwi30xpxpvp2h1h7l494rbbz5d9pls5cfhqdv3wnpzsv"))))
6376 (properties
6377 `((upstream-name . "BiocGenerics")))
6378 (build-system r-build-system)
6379 (home-page "http://bioconductor.org/packages/BiocGenerics")
6380 (synopsis "S4 generic functions for Bioconductor")
6381 (description
6382 "This package provides S4 generic functions needed by many Bioconductor
6383 packages.")
6384 (license license:artistic2.0)))
6385
6386 (define-public r-biocinstaller
6387 (package
6388 (name "r-biocinstaller")
6389 (version "1.26.0")
6390 (source (origin
6391 (method url-fetch)
6392 (uri (bioconductor-uri "BiocInstaller" version))
6393 (sha256
6394 (base32
6395 "0njw2q3lq1rrjx8qzw5d2130l72bmd3g2z8qlxqmkdcbmmgliyj2"))))
6396 (properties
6397 `((upstream-name . "BiocInstaller")))
6398 (build-system r-build-system)
6399 (home-page "http://bioconductor.org/packages/BiocInstaller")
6400 (synopsis "Install Bioconductor packages")
6401 (description "This package is used to install and update R packages from
6402 Bioconductor, CRAN, and Github.")
6403 (license license:artistic2.0)))
6404
6405 (define-public r-biocviews
6406 (package
6407 (name "r-biocviews")
6408 (version "1.44.0")
6409 (source (origin
6410 (method url-fetch)
6411 (uri (bioconductor-uri "biocViews" version))
6412 (sha256
6413 (base32
6414 "17hi8w0w63f5yc43kid5pbld3ca78sj6n8x9dmkbl8h48818xbga"))))
6415 (properties
6416 `((upstream-name . "biocViews")))
6417 (build-system r-build-system)
6418 (propagated-inputs
6419 `(("r-biobase" ,r-biobase)
6420 ("r-graph" ,r-graph)
6421 ("r-rbgl" ,r-rbgl)
6422 ("r-rcurl" ,r-rcurl)
6423 ("r-xml" ,r-xml)
6424 ("r-knitr" ,r-knitr)
6425 ("r-runit" ,r-runit)))
6426 (home-page "http://bioconductor.org/packages/biocViews")
6427 (synopsis "Bioconductor package categorization helper")
6428 (description "The purpose of biocViews is to create HTML pages that
6429 categorize packages in a Bioconductor package repository according to keywords,
6430 also known as views, in a controlled vocabulary.")
6431 (license license:artistic2.0)))
6432
6433 (define-public r-bookdown
6434 (package
6435 (name "r-bookdown")
6436 (version "0.4")
6437 (source (origin
6438 (method url-fetch)
6439 (uri (cran-uri "bookdown" version))
6440 (sha256
6441 (base32
6442 "1fp1k7hivrb7s2dwgrsqy9s7xg6pk9hczhrc149y1dwh901j6qvv"))))
6443 (build-system r-build-system)
6444 (propagated-inputs
6445 `(("r-htmltools" ,r-htmltools)
6446 ("r-knitr" ,r-knitr)
6447 ("r-rmarkdown" ,r-rmarkdown)
6448 ("r-yaml" ,r-yaml)))
6449 (home-page "https://github.com/rstudio/bookdown")
6450 (synopsis "Authoring books and technical documents with R markdown")
6451 (description "This package provides output formats and utilities for
6452 authoring books and technical documents with R Markdown.")
6453 (license license:gpl3)))
6454
6455 (define-public r-biocstyle
6456 (package
6457 (name "r-biocstyle")
6458 (version "2.4.1")
6459 (source (origin
6460 (method url-fetch)
6461 (uri (bioconductor-uri "BiocStyle" version))
6462 (sha256
6463 (base32
6464 "0bmgmsfll923v573g0kyzlmjd7gly5jwgd8vkrcwvbam1gz75f2c"))))
6465 (properties
6466 `((upstream-name . "BiocStyle")))
6467 (build-system r-build-system)
6468 (propagated-inputs
6469 `(("r-bookdown" ,r-bookdown)
6470 ("r-knitr" ,r-knitr)
6471 ("r-rmarkdown" ,r-rmarkdown)
6472 ("r-yaml" ,r-yaml)))
6473 (home-page "http://bioconductor.org/packages/BiocStyle")
6474 (synopsis "Bioconductor formatting styles")
6475 (description "This package provides standard formatting styles for
6476 Bioconductor PDF and HTML documents. Package vignettes illustrate use and
6477 functionality.")
6478 (license license:artistic2.0)))
6479
6480 (define-public r-bioccheck
6481 (package
6482 (name "r-bioccheck")
6483 (version "1.12.0")
6484 (source (origin
6485 (method url-fetch)
6486 (uri (bioconductor-uri "BiocCheck" version))
6487 (sha256
6488 (base32
6489 "01zkw5hggzvn0wj4msac71k1mknq4h2inn1c2hwqgw4cy1675wl0"))))
6490 (properties
6491 `((upstream-name . "BiocCheck")))
6492 (build-system r-build-system)
6493 (arguments
6494 '(#:phases
6495 (modify-phases %standard-phases
6496 ;; This package can be used by calling BiocCheck(<package>) from
6497 ;; within R, or by running R CMD BiocCheck <package>. This phase
6498 ;; makes sure the latter works. For this to work, the BiocCheck
6499 ;; script must be somewhere on the PATH (not the R bin directory).
6500 (add-after 'install 'install-bioccheck-subcommand
6501 (lambda* (#:key outputs #:allow-other-keys)
6502 (let* ((out (assoc-ref outputs "out"))
6503 (dest-dir (string-append out "/bin"))
6504 (script-dir
6505 (string-append out "/site-library/BiocCheck/script/")))
6506 (mkdir-p dest-dir)
6507 (symlink (string-append script-dir "/checkBadDeps.R")
6508 (string-append dest-dir "/checkBadDeps.R"))
6509 (symlink (string-append script-dir "/BiocCheck")
6510 (string-append dest-dir "/BiocCheck")))
6511 #t)))))
6512 (native-inputs
6513 `(("which" ,which)))
6514 (propagated-inputs
6515 `(("r-codetools" ,r-codetools)
6516 ("r-graph" ,r-graph)
6517 ("r-httr" ,r-httr)
6518 ("r-optparse" ,r-optparse)
6519 ("r-biocinstaller" ,r-biocinstaller)
6520 ("r-biocviews" ,r-biocviews)))
6521 (home-page "http://bioconductor.org/packages/BiocCheck")
6522 (synopsis "Executes Bioconductor-specific package checks")
6523 (description "This package contains tools to perform additional quality
6524 checks on R packages that are to be submitted to the Bioconductor repository.")
6525 (license license:artistic2.0)))
6526
6527 (define-public r-getopt
6528 (package
6529 (name "r-getopt")
6530 (version "1.20.0")
6531 (source
6532 (origin
6533 (method url-fetch)
6534 (uri (cran-uri "getopt" version))
6535 (sha256
6536 (base32
6537 "00f57vgnzmg7cz80rjmjz1556xqcmx8nhrlbbhaq4w7gl2ibl87r"))))
6538 (build-system r-build-system)
6539 (home-page "https://github.com/trevorld/getopt")
6540 (synopsis "Command-line option processor for R")
6541 (description
6542 "This package is designed to be used with Rscript to write shebang
6543 scripts that accept short and long options. Many users will prefer to
6544 use the packages @code{optparse} or @code{argparse} which add extra
6545 features like automatically generated help options and usage texts,
6546 support for default values, positional argument support, etc.")
6547 (license license:gpl2+)))
6548
6549 (define-public r-optparse
6550 (package
6551 (name "r-optparse")
6552 (version "1.4.4")
6553 (source
6554 (origin
6555 (method url-fetch)
6556 (uri (cran-uri "optparse" version))
6557 (sha256
6558 (base32
6559 "1ff4wmsszrb3spwfp7ynfs8w11qpy1sdzfxm1wk8dqqvdwris7qb"))))
6560 (build-system r-build-system)
6561 (propagated-inputs
6562 `(("r-getopt" ,r-getopt)))
6563 (home-page
6564 "https://github.com/trevorld/optparse")
6565 (synopsis "Command line option parser")
6566 (description
6567 "This package provides a command line parser inspired by Python's
6568 @code{optparse} library to be used with Rscript to write shebang scripts
6569 that accept short and long options.")
6570 (license license:gpl2+)))
6571
6572 (define-public r-dnacopy
6573 (package
6574 (name "r-dnacopy")
6575 (version "1.50.1")
6576 (source (origin
6577 (method url-fetch)
6578 (uri (bioconductor-uri "DNAcopy" version))
6579 (sha256
6580 (base32
6581 "0f0x83db7rm5xf9fg5pjhvs4i165qqaf01lbwb8kj13fsqpwx15p"))))
6582 (properties
6583 `((upstream-name . "DNAcopy")))
6584 (build-system r-build-system)
6585 (inputs
6586 `(("gfortran" ,gfortran)))
6587 (home-page "https://bioconductor.org/packages/DNAcopy")
6588 (synopsis "Implementation of a circular binary segmentation algorithm")
6589 (description "This package implements the circular binary segmentation (CBS)
6590 algorithm to segment DNA copy number data and identify genomic regions with
6591 abnormal copy number.")
6592 (license license:gpl2+)))
6593
6594 (define-public r-s4vectors
6595 (package
6596 (name "r-s4vectors")
6597 (version "0.14.3")
6598 (source (origin
6599 (method url-fetch)
6600 (uri (bioconductor-uri "S4Vectors" version))
6601 (sha256
6602 (base32
6603 "1r7s4pfw026qazzic090mhk8d9m39j2nwl87dyqcpdylyq7gq5qs"))))
6604 (properties
6605 `((upstream-name . "S4Vectors")))
6606 (build-system r-build-system)
6607 (propagated-inputs
6608 `(("r-biocgenerics" ,r-biocgenerics)))
6609 (home-page "http://bioconductor.org/packages/S4Vectors")
6610 (synopsis "S4 implementation of vectors and lists")
6611 (description
6612 "The S4Vectors package defines the @code{Vector} and @code{List} virtual
6613 classes and a set of generic functions that extend the semantic of ordinary
6614 vectors and lists in R. Package developers can easily implement vector-like
6615 or list-like objects as concrete subclasses of @code{Vector} or @code{List}.
6616 In addition, a few low-level concrete subclasses of general interest (e.g.
6617 @code{DataFrame}, @code{Rle}, and @code{Hits}) are implemented in the
6618 S4Vectors package itself.")
6619 (license license:artistic2.0)))
6620
6621 (define-public r-seqinr
6622 (package
6623 (name "r-seqinr")
6624 (version "3.4-5")
6625 (source
6626 (origin
6627 (method url-fetch)
6628 (uri (cran-uri "seqinr" version))
6629 (sha256
6630 (base32
6631 "17zv0n5cji17izwmwg0jcbxbjl3w5rls91w15svcnlpxjms38ahn"))))
6632 (build-system r-build-system)
6633 (propagated-inputs
6634 `(("r-ade4" ,r-ade4)
6635 ("r-segmented" ,r-segmented)))
6636 (inputs
6637 `(("zlib" ,zlib)))
6638 (home-page "http://seqinr.r-forge.r-project.org/")
6639 (synopsis "Biological sequences retrieval and analysis")
6640 (description
6641 "This package provides tools for exploratory data analysis and data
6642 visualization of biological sequence (DNA and protein) data. It also includes
6643 utilities for sequence data management under the ACNUC system.")
6644 (license license:gpl2+)))
6645
6646 (define-public r-iranges
6647 (package
6648 (name "r-iranges")
6649 (version "2.10.2")
6650 (source (origin
6651 (method url-fetch)
6652 (uri (bioconductor-uri "IRanges" version))
6653 (sha256
6654 (base32
6655 "1brmzs3rsf97gymridrh9c9r3vws8b3rpghaanxnniw36lmcajfy"))))
6656 (properties
6657 `((upstream-name . "IRanges")))
6658 (build-system r-build-system)
6659 (propagated-inputs
6660 `(("r-biocgenerics" ,r-biocgenerics)
6661 ("r-s4vectors" ,r-s4vectors)))
6662 (home-page "http://bioconductor.org/packages/IRanges")
6663 (synopsis "Infrastructure for manipulating intervals on sequences")
6664 (description
6665 "This package provides efficient low-level and highly reusable S4 classes
6666 for storing ranges of integers, RLE vectors (Run-Length Encoding), and, more
6667 generally, data that can be organized sequentially (formally defined as
6668 @code{Vector} objects), as well as views on these @code{Vector} objects.
6669 Efficient list-like classes are also provided for storing big collections of
6670 instances of the basic classes. All classes in the package use consistent
6671 naming and share the same rich and consistent \"Vector API\" as much as
6672 possible.")
6673 (license license:artistic2.0)))
6674
6675 (define-public r-genomeinfodbdata
6676 (package
6677 (name "r-genomeinfodbdata")
6678 (version "0.99.0")
6679 (source (origin
6680 (method url-fetch)
6681 ;; We cannot use bioconductor-uri here because this tarball is
6682 ;; located under "data/annotation/" instead of "bioc/".
6683 (uri (string-append "https://bioconductor.org/packages/release/"
6684 "data/annotation/src/contrib/GenomeInfoDbData_"
6685 version ".tar.gz"))
6686 (sha256
6687 (base32
6688 "120qvhb0pvkzd65lsgja62vyrgc37si6fh68q4cg4w5x9f04jw25"))))
6689 (properties
6690 `((upstream-name . "GenomeInfoDbData")))
6691 (build-system r-build-system)
6692 (home-page "http://bioconductor.org/packages/GenomeInfoDbData")
6693 (synopsis "Species and taxonomy ID look up tables for GenomeInfoDb")
6694 (description "This package contains data for mapping between NCBI taxonomy
6695 ID and species. It is used by functions in the GenomeInfoDb package.")
6696 (license license:artistic2.0)))
6697
6698 (define-public r-genomeinfodb
6699 (package
6700 (name "r-genomeinfodb")
6701 (version "1.12.2")
6702 (source (origin
6703 (method url-fetch)
6704 (uri (bioconductor-uri "GenomeInfoDb" version))
6705 (sha256
6706 (base32
6707 "1hjxgmcnrngp1307ipqaq9hgxz4j0ldn7d46knhzs30k2r4qnrfp"))))
6708 (properties
6709 `((upstream-name . "GenomeInfoDb")))
6710 (build-system r-build-system)
6711 (propagated-inputs
6712 `(("r-biocgenerics" ,r-biocgenerics)
6713 ("r-genomeinfodbdata" ,r-genomeinfodbdata)
6714 ("r-iranges" ,r-iranges)
6715 ("r-rcurl" ,r-rcurl)
6716 ("r-s4vectors" ,r-s4vectors)))
6717 (home-page "http://bioconductor.org/packages/GenomeInfoDb")
6718 (synopsis "Utilities for manipulating chromosome identifiers")
6719 (description
6720 "This package contains data and functions that define and allow
6721 translation between different chromosome sequence naming conventions (e.g.,
6722 \"chr1\" versus \"1\"), including a function that attempts to place sequence
6723 names in their natural, rather than lexicographic, order.")
6724 (license license:artistic2.0)))
6725
6726 (define-public r-edger
6727 (package
6728 (name "r-edger")
6729 (version "3.18.0")
6730 (source (origin
6731 (method url-fetch)
6732 (uri (bioconductor-uri "edgeR" version))
6733 (sha256
6734 (base32
6735 "02l17i6xh33dv10swwvyfxrmv5kp23iv278iwvkfq2mnipasfnb9"))))
6736 (properties `((upstream-name . "edgeR")))
6737 (build-system r-build-system)
6738 (propagated-inputs
6739 `(("r-limma" ,r-limma)
6740 ("r-locfit" ,r-locfit)
6741 ("r-statmod" ,r-statmod))) ;for estimateDisp
6742 (home-page "http://bioinf.wehi.edu.au/edgeR")
6743 (synopsis "EdgeR does empirical analysis of digital gene expression data")
6744 (description "This package can do differential expression analysis of
6745 RNA-seq expression profiles with biological replication. It implements a range
6746 of statistical methodology based on the negative binomial distributions,
6747 including empirical Bayes estimation, exact tests, generalized linear models
6748 and quasi-likelihood tests. It be applied to differential signal analysis of
6749 other types of genomic data that produce counts, including ChIP-seq, SAGE and
6750 CAGE.")
6751 (license license:gpl2+)))
6752
6753 (define-public r-variantannotation
6754 (package
6755 (name "r-variantannotation")
6756 (version "1.22.3")
6757 (source (origin
6758 (method url-fetch)
6759 (uri (bioconductor-uri "VariantAnnotation" version))
6760 (sha256
6761 (base32
6762 "0sr3vdn85x5zdxh80cfwlpfdpi2hmjy3fwi00ac3jya4v145vawr"))))
6763 (properties
6764 `((upstream-name . "VariantAnnotation")))
6765 (inputs
6766 `(("zlib" ,zlib)))
6767 (propagated-inputs
6768 `(("r-annotationdbi" ,r-annotationdbi)
6769 ("r-biobase" ,r-biobase)
6770 ("r-biocgenerics" ,r-biocgenerics)
6771 ("r-biostrings" ,r-biostrings)
6772 ("r-bsgenome" ,r-bsgenome)
6773 ("r-dbi" ,r-dbi)
6774 ("r-genomeinfodb" ,r-genomeinfodb)
6775 ("r-genomicfeatures" ,r-genomicfeatures)
6776 ("r-genomicranges" ,r-genomicranges)
6777 ("r-iranges" ,r-iranges)
6778 ("r-summarizedexperiment" ,r-summarizedexperiment)
6779 ("r-rsamtools" ,r-rsamtools)
6780 ("r-rtracklayer" ,r-rtracklayer)
6781 ("r-s4vectors" ,r-s4vectors)
6782 ("r-xvector" ,r-xvector)
6783 ("r-zlibbioc" ,r-zlibbioc)))
6784 (build-system r-build-system)
6785 (home-page "https://bioconductor.org/packages/VariantAnnotation")
6786 (synopsis "Package for annotation of genetic variants")
6787 (description "This R package can annotate variants, compute amino acid
6788 coding changes and predict coding outcomes.")
6789 (license license:artistic2.0)))
6790
6791 (define-public r-limma
6792 (package
6793 (name "r-limma")
6794 (version "3.32.5")
6795 (source (origin
6796 (method url-fetch)
6797 (uri (bioconductor-uri "limma" version))
6798 (sha256
6799 (base32
6800 "0p2ayha9g9w5r8s7pgdf16mkmdbqwh6f35jh07g3b8gyra48gwiw"))))
6801 (build-system r-build-system)
6802 (home-page "http://bioinf.wehi.edu.au/limma")
6803 (synopsis "Package for linear models for microarray and RNA-seq data")
6804 (description "This package can be used for the analysis of gene expression
6805 studies, especially the use of linear models for analysing designed experiments
6806 and the assessment of differential expression. The analysis methods apply to
6807 different technologies, including microarrays, RNA-seq, and quantitative PCR.")
6808 (license license:gpl2+)))
6809
6810 (define-public r-xvector
6811 (package
6812 (name "r-xvector")
6813 (version "0.16.0")
6814 (source (origin
6815 (method url-fetch)
6816 (uri (bioconductor-uri "XVector" version))
6817 (sha256
6818 (base32
6819 "01n09f4jdm60684lzikp02zf9gjan8bdrjx740vggr21q9fa69wn"))))
6820 (properties
6821 `((upstream-name . "XVector")))
6822 (build-system r-build-system)
6823 (arguments
6824 `(#:phases
6825 (modify-phases %standard-phases
6826 (add-after 'unpack 'use-system-zlib
6827 (lambda _
6828 (substitute* "DESCRIPTION"
6829 (("zlibbioc, ") ""))
6830 (substitute* "NAMESPACE"
6831 (("import\\(zlibbioc\\)") ""))
6832 #t)))))
6833 (inputs
6834 `(("zlib" ,zlib)))
6835 (propagated-inputs
6836 `(("r-biocgenerics" ,r-biocgenerics)
6837 ("r-iranges" ,r-iranges)
6838 ("r-s4vectors" ,r-s4vectors)))
6839 (home-page "http://bioconductor.org/packages/XVector")
6840 (synopsis "Representation and manpulation of external sequences")
6841 (description
6842 "This package provides memory efficient S4 classes for storing sequences
6843 \"externally\" (behind an R external pointer, or on disk).")
6844 (license license:artistic2.0)))
6845
6846 (define-public r-genomicranges
6847 (package
6848 (name "r-genomicranges")
6849 (version "1.28.4")
6850 (source (origin
6851 (method url-fetch)
6852 (uri (bioconductor-uri "GenomicRanges" version))
6853 (sha256
6854 (base32
6855 "1y15kg1q81h8rmga83ljiwr8whkajcargfjiljr212d6if17ys1z"))))
6856 (properties
6857 `((upstream-name . "GenomicRanges")))
6858 (build-system r-build-system)
6859 (propagated-inputs
6860 `(("r-biocgenerics" ,r-biocgenerics)
6861 ("r-genomeinfodb" ,r-genomeinfodb)
6862 ("r-iranges" ,r-iranges)
6863 ("r-s4vectors" ,r-s4vectors)
6864 ("r-xvector" ,r-xvector)))
6865 (home-page "http://bioconductor.org/packages/GenomicRanges")
6866 (synopsis "Representation and manipulation of genomic intervals")
6867 (description
6868 "This package provides tools to efficiently represent and manipulate
6869 genomic annotations and alignments is playing a central role when it comes to
6870 analyzing high-throughput sequencing data (a.k.a. NGS data). The
6871 GenomicRanges package defines general purpose containers for storing and
6872 manipulating genomic intervals and variables defined along a genome.")
6873 (license license:artistic2.0)))
6874
6875 (define-public r-biobase
6876 (package
6877 (name "r-biobase")
6878 (version "2.36.2")
6879 (source (origin
6880 (method url-fetch)
6881 (uri (bioconductor-uri "Biobase" version))
6882 (sha256
6883 (base32
6884 "0sr48nqx5bqid4g6lr9zr9286xh842w717yvmssvddb5xxynib6f"))))
6885 (properties
6886 `((upstream-name . "Biobase")))
6887 (build-system r-build-system)
6888 (propagated-inputs
6889 `(("r-biocgenerics" ,r-biocgenerics)))
6890 (home-page "http://bioconductor.org/packages/Biobase")
6891 (synopsis "Base functions for Bioconductor")
6892 (description
6893 "This package provides functions that are needed by many other packages
6894 on Bioconductor or which replace R functions.")
6895 (license license:artistic2.0)))
6896
6897 (define-public r-annotationdbi
6898 (package
6899 (name "r-annotationdbi")
6900 (version "1.38.2")
6901 (source (origin
6902 (method url-fetch)
6903 (uri (bioconductor-uri "AnnotationDbi" version))
6904 (sha256
6905 (base32
6906 "1lsamnbf07zzsy5asy5hn97n2a4layv58w2bzd90ikcdx0gmzarj"))))
6907 (properties
6908 `((upstream-name . "AnnotationDbi")))
6909 (build-system r-build-system)
6910 (propagated-inputs
6911 `(("r-biobase" ,r-biobase)
6912 ("r-biocgenerics" ,r-biocgenerics)
6913 ("r-dbi" ,r-dbi)
6914 ("r-iranges" ,r-iranges)
6915 ("r-rsqlite" ,r-rsqlite)
6916 ("r-s4vectors" ,r-s4vectors)))
6917 (home-page "http://bioconductor.org/packages/AnnotationDbi")
6918 (synopsis "Annotation database interface")
6919 (description
6920 "This package provides user interface and database connection code for
6921 annotation data packages using SQLite data storage.")
6922 (license license:artistic2.0)))
6923
6924 (define-public r-biomart
6925 (package
6926 (name "r-biomart")
6927 (version "2.32.1")
6928 (source (origin
6929 (method url-fetch)
6930 (uri (bioconductor-uri "biomaRt" version))
6931 (sha256
6932 (base32
6933 "0fhpbjlsgbqxrpj6nzhhk9q3ph81n5x4p7mmd097xjjn6b05w1d8"))))
6934 (properties
6935 `((upstream-name . "biomaRt")))
6936 (build-system r-build-system)
6937 (propagated-inputs
6938 `(("r-annotationdbi" ,r-annotationdbi)
6939 ("r-rcurl" ,r-rcurl)
6940 ("r-xml" ,r-xml)))
6941 (home-page "http://bioconductor.org/packages/biomaRt")
6942 (synopsis "Interface to BioMart databases")
6943 (description
6944 "biomaRt provides an interface to a growing collection of databases
6945 implementing the @url{BioMart software suite, http://www.biomart.org}. The
6946 package enables retrieval of large amounts of data in a uniform way without
6947 the need to know the underlying database schemas or write complex SQL queries.
6948 Examples of BioMart databases are Ensembl, COSMIC, Uniprot, HGNC, Gramene,
6949 Wormbase and dbSNP mapped to Ensembl. These major databases give biomaRt
6950 users direct access to a diverse set of data and enable a wide range of
6951 powerful online queries from gene annotation to database mining.")
6952 (license license:artistic2.0)))
6953
6954 (define-public r-biocparallel
6955 (package
6956 (name "r-biocparallel")
6957 (version "1.10.1")
6958 (source (origin
6959 (method url-fetch)
6960 (uri (bioconductor-uri "BiocParallel" version))
6961 (sha256
6962 (base32
6963 "08mdfxyk9nwz77v0xhlvs19p2wj0phgm5c5b25vm0xh3749njsp0"))))
6964 (properties
6965 `((upstream-name . "BiocParallel")))
6966 (build-system r-build-system)
6967 (propagated-inputs
6968 `(("r-futile-logger" ,r-futile-logger)
6969 ("r-snow" ,r-snow)))
6970 (home-page "http://bioconductor.org/packages/BiocParallel")
6971 (synopsis "Bioconductor facilities for parallel evaluation")
6972 (description
6973 "This package provides modified versions and novel implementation of
6974 functions for parallel evaluation, tailored to use with Bioconductor
6975 objects.")
6976 (license (list license:gpl2+ license:gpl3+))))
6977
6978 (define-public r-biostrings
6979 (package
6980 (name "r-biostrings")
6981 (version "2.44.2")
6982 (source (origin
6983 (method url-fetch)
6984 (uri (bioconductor-uri "Biostrings" version))
6985 (sha256
6986 (base32
6987 "12c5abgshwq86357jr0r9039y6vl4d6ngysy89rsnr23ldnsirjp"))))
6988 (properties
6989 `((upstream-name . "Biostrings")))
6990 (build-system r-build-system)
6991 (propagated-inputs
6992 `(("r-biocgenerics" ,r-biocgenerics)
6993 ("r-iranges" ,r-iranges)
6994 ("r-s4vectors" ,r-s4vectors)
6995 ("r-xvector" ,r-xvector)))
6996 (home-page "http://bioconductor.org/packages/Biostrings")
6997 (synopsis "String objects and algorithms for biological sequences")
6998 (description
6999 "This package provides memory efficient string containers, string
7000 matching algorithms, and other utilities, for fast manipulation of large
7001 biological sequences or sets of sequences.")
7002 (license license:artistic2.0)))
7003
7004 (define-public r-rsamtools
7005 (package
7006 (name "r-rsamtools")
7007 (version "1.28.0")
7008 (source (origin
7009 (method url-fetch)
7010 (uri (bioconductor-uri "Rsamtools" version))
7011 (sha256
7012 (base32
7013 "1zx6vhdz3lksbfy98jj3qzl7cxgspigm2pbsd5835b12r6mc5w6d"))))
7014 (properties
7015 `((upstream-name . "Rsamtools")))
7016 (build-system r-build-system)
7017 (arguments
7018 `(#:phases
7019 (modify-phases %standard-phases
7020 (add-after 'unpack 'use-system-zlib
7021 (lambda _
7022 (substitute* "DESCRIPTION"
7023 (("zlibbioc, ") ""))
7024 (substitute* "NAMESPACE"
7025 (("import\\(zlibbioc\\)") ""))
7026 #t)))))
7027 (inputs
7028 `(("zlib" ,zlib)))
7029 (propagated-inputs
7030 `(("r-biocgenerics" ,r-biocgenerics)
7031 ("r-biocparallel" ,r-biocparallel)
7032 ("r-biostrings" ,r-biostrings)
7033 ("r-bitops" ,r-bitops)
7034 ("r-genomeinfodb" ,r-genomeinfodb)
7035 ("r-genomicranges" ,r-genomicranges)
7036 ("r-iranges" ,r-iranges)
7037 ("r-s4vectors" ,r-s4vectors)
7038 ("r-xvector" ,r-xvector)))
7039 (home-page "http://bioconductor.org/packages/release/bioc/html/Rsamtools.html")
7040 (synopsis "Interface to samtools, bcftools, and tabix")
7041 (description
7042 "This package provides an interface to the 'samtools', 'bcftools', and
7043 'tabix' utilities for manipulating SAM (Sequence Alignment / Map), FASTA,
7044 binary variant call (BCF) and compressed indexed tab-delimited (tabix)
7045 files.")
7046 (license license:expat)))
7047
7048 (define-public r-delayedarray
7049 (package
7050 (name "r-delayedarray")
7051 (version "0.2.7")
7052 (source (origin
7053 (method url-fetch)
7054 (uri (bioconductor-uri "DelayedArray" version))
7055 (sha256
7056 (base32
7057 "02dfqp4md9xaqjj712ijc3jswghmipr5hwkd5hr0x1xi6l2fb69g"))))
7058 (properties
7059 `((upstream-name . "DelayedArray")))
7060 (build-system r-build-system)
7061 (propagated-inputs
7062 `(("r-biocgenerics" ,r-biocgenerics)
7063 ("r-s4vectors" ,r-s4vectors)
7064 ("r-iranges" ,r-iranges)
7065 ("r-matrixstats" ,r-matrixstats)))
7066 (home-page "http://bioconductor.org/packages/DelayedArray")
7067 (synopsis "Delayed operations on array-like objects")
7068 (description
7069 "Wrapping an array-like object (typically an on-disk object) in a
7070 @code{DelayedArray} object allows one to perform common array operations on it
7071 without loading the object in memory. In order to reduce memory usage and
7072 optimize performance, operations on the object are either delayed or executed
7073 using a block processing mechanism. Note that this also works on in-memory
7074 array-like objects like @code{DataFrame} objects (typically with Rle columns),
7075 @code{Matrix} objects, and ordinary arrays and data frames.")
7076 (license license:artistic2.0)))
7077
7078 (define-public r-summarizedexperiment
7079 (package
7080 (name "r-summarizedexperiment")
7081 (version "1.6.3")
7082 (source (origin
7083 (method url-fetch)
7084 (uri (bioconductor-uri "SummarizedExperiment" version))
7085 (sha256
7086 (base32
7087 "0j7xn7pk52d383fb1wplcggacl2586c4zi0alkgfc3wz7qq9w13s"))))
7088 (properties
7089 `((upstream-name . "SummarizedExperiment")))
7090 (build-system r-build-system)
7091 (propagated-inputs
7092 `(("r-biobase" ,r-biobase)
7093 ("r-biocgenerics" ,r-biocgenerics)
7094 ("r-delayedarray" ,r-delayedarray)
7095 ("r-genomeinfodb" ,r-genomeinfodb)
7096 ("r-genomicranges" ,r-genomicranges)
7097 ("r-iranges" ,r-iranges)
7098 ("r-matrix" ,r-matrix)
7099 ("r-s4vectors" ,r-s4vectors)))
7100 (home-page "http://bioconductor.org/packages/SummarizedExperiment")
7101 (synopsis "Container for representing genomic ranges by sample")
7102 (description
7103 "The SummarizedExperiment container contains one or more assays, each
7104 represented by a matrix-like object of numeric or other mode. The rows
7105 typically represent genomic ranges of interest and the columns represent
7106 samples.")
7107 (license license:artistic2.0)))
7108
7109 (define-public r-genomicalignments
7110 (package
7111 (name "r-genomicalignments")
7112 (version "1.12.1")
7113 (source (origin
7114 (method url-fetch)
7115 (uri (bioconductor-uri "GenomicAlignments" version))
7116 (sha256
7117 (base32
7118 "127690sys4i5q3l4vxnjg4xg8q19qlw2258vgs5d1156w9ypp04h"))))
7119 (properties
7120 `((upstream-name . "GenomicAlignments")))
7121 (build-system r-build-system)
7122 (propagated-inputs
7123 `(("r-biocgenerics" ,r-biocgenerics)
7124 ("r-biocparallel" ,r-biocparallel)
7125 ("r-biostrings" ,r-biostrings)
7126 ("r-genomeinfodb" ,r-genomeinfodb)
7127 ("r-genomicranges" ,r-genomicranges)
7128 ("r-iranges" ,r-iranges)
7129 ("r-rsamtools" ,r-rsamtools)
7130 ("r-s4vectors" ,r-s4vectors)
7131 ("r-summarizedexperiment" ,r-summarizedexperiment)))
7132 (home-page "http://bioconductor.org/packages/GenomicAlignments")
7133 (synopsis "Representation and manipulation of short genomic alignments")
7134 (description
7135 "This package provides efficient containers for storing and manipulating
7136 short genomic alignments (typically obtained by aligning short reads to a
7137 reference genome). This includes read counting, computing the coverage,
7138 junction detection, and working with the nucleotide content of the
7139 alignments.")
7140 (license license:artistic2.0)))
7141
7142 (define-public r-rtracklayer
7143 (package
7144 (name "r-rtracklayer")
7145 (version "1.36.4")
7146 (source (origin
7147 (method url-fetch)
7148 (uri (bioconductor-uri "rtracklayer" version))
7149 (sha256
7150 (base32
7151 "050q1rv04w31168ljr975vxva31n9lqdx84rnmsk6zcr6p640ffp"))))
7152 (build-system r-build-system)
7153 (arguments
7154 `(#:phases
7155 (modify-phases %standard-phases
7156 (add-after 'unpack 'use-system-zlib
7157 (lambda _
7158 (substitute* "DESCRIPTION"
7159 (("zlibbioc, ") ""))
7160 (substitute* "NAMESPACE"
7161 (("import\\(zlibbioc\\)") ""))
7162 #t)))))
7163 (inputs
7164 `(("zlib" ,zlib)))
7165 (propagated-inputs
7166 `(("r-biocgenerics" ,r-biocgenerics)
7167 ("r-biostrings" ,r-biostrings)
7168 ("r-genomeinfodb" ,r-genomeinfodb)
7169 ("r-genomicalignments" ,r-genomicalignments)
7170 ("r-genomicranges" ,r-genomicranges)
7171 ("r-iranges" ,r-iranges)
7172 ("r-rcurl" ,r-rcurl)
7173 ("r-rsamtools" ,r-rsamtools)
7174 ("r-s4vectors" ,r-s4vectors)
7175 ("r-xml" ,r-xml)
7176 ("r-xvector" ,r-xvector)))
7177 (home-page "http://bioconductor.org/packages/rtracklayer")
7178 (synopsis "R interface to genome browsers and their annotation tracks")
7179 (description
7180 "rtracklayer is an extensible framework for interacting with multiple
7181 genome browsers (currently UCSC built-in) and manipulating annotation tracks
7182 in various formats (currently GFF, BED, bedGraph, BED15, WIG, BigWig and 2bit
7183 built-in). The user may export/import tracks to/from the supported browsers,
7184 as well as query and modify the browser state, such as the current viewport.")
7185 (license license:artistic2.0)))
7186
7187 (define-public r-genomicfeatures
7188 (package
7189 (name "r-genomicfeatures")
7190 (version "1.28.4")
7191 (source (origin
7192 (method url-fetch)
7193 (uri (bioconductor-uri "GenomicFeatures" version))
7194 (sha256
7195 (base32
7196 "01ylvg275iy0cvsbxkbfxcf9pi9al597v5wnlqi2xdpmrcxyc3q0"))))
7197 (properties
7198 `((upstream-name . "GenomicFeatures")))
7199 (build-system r-build-system)
7200 (propagated-inputs
7201 `(("r-annotationdbi" ,r-annotationdbi)
7202 ("r-biobase" ,r-biobase)
7203 ("r-biocgenerics" ,r-biocgenerics)
7204 ("r-biomart" ,r-biomart)
7205 ("r-biostrings" ,r-biostrings)
7206 ("r-dbi" ,r-dbi)
7207 ("r-genomeinfodb" ,r-genomeinfodb)
7208 ("r-genomicranges" ,r-genomicranges)
7209 ("r-iranges" ,r-iranges)
7210 ("r-rcurl" ,r-rcurl)
7211 ("r-rsqlite" ,r-rsqlite)
7212 ("r-rtracklayer" ,r-rtracklayer)
7213 ("r-s4vectors" ,r-s4vectors)
7214 ("r-xvector" ,r-xvector)))
7215 (home-page "http://bioconductor.org/packages/GenomicFeatures")
7216 (synopsis "Tools for working with transcript centric annotations")
7217 (description
7218 "This package provides a set of tools and methods for making and
7219 manipulating transcript centric annotations. With these tools the user can
7220 easily download the genomic locations of the transcripts, exons and cds of a
7221 given organism, from either the UCSC Genome Browser or a BioMart
7222 database (more sources will be supported in the future). This information is
7223 then stored in a local database that keeps track of the relationship between
7224 transcripts, exons, cds and genes. Flexible methods are provided for
7225 extracting the desired features in a convenient format.")
7226 (license license:artistic2.0)))
7227
7228 (define-public r-go-db
7229 (package
7230 (name "r-go-db")
7231 (version "3.4.0")
7232 (source (origin
7233 (method url-fetch)
7234 (uri (string-append "http://www.bioconductor.org/packages/"
7235 "release/data/annotation/src/contrib/GO.db_"
7236 version ".tar.gz"))
7237 (sha256
7238 (base32
7239 "02cj8kqi5w39jwcs8gp1dgj08sah262ppxnkz4h3qd0w191y8yyl"))))
7240 (properties
7241 `((upstream-name . "GO.db")))
7242 (build-system r-build-system)
7243 (propagated-inputs
7244 `(("r-annotationdbi" ,r-annotationdbi)))
7245 (home-page "http://bioconductor.org/packages/GO.db")
7246 (synopsis "Annotation maps describing the entire Gene Ontology")
7247 (description
7248 "The purpose of this GO.db annotation package is to provide detailed
7249 information about the latest version of the Gene Ontologies.")
7250 (license license:artistic2.0)))
7251
7252 (define-public r-graph
7253 (package
7254 (name "r-graph")
7255 (version "1.54.0")
7256 (source (origin
7257 (method url-fetch)
7258 (uri (bioconductor-uri "graph" version))
7259 (sha256
7260 (base32
7261 "0hx9wslnrci7c5i1gd1zlpjmgrkdnx9gabfgmzzwfnykk1mdvvna"))))
7262 (build-system r-build-system)
7263 (propagated-inputs
7264 `(("r-biocgenerics" ,r-biocgenerics)))
7265 (home-page "http://bioconductor.org/packages/graph")
7266 (synopsis "Handle graph data structures in R")
7267 (description
7268 "This package implements some simple graph handling capabilities for R.")
7269 (license license:artistic2.0)))
7270
7271 (define-public r-topgo
7272 (package
7273 (name "r-topgo")
7274 (version "2.28.0")
7275 (source (origin
7276 (method url-fetch)
7277 (uri (bioconductor-uri "topGO" version))
7278 (sha256
7279 (base32
7280 "04kvxz9qsxfz0np7wlrzp4r95nykz94x7mqpyyk76f90g6m66vcc"))))
7281 (properties
7282 `((upstream-name . "topGO")))
7283 (build-system r-build-system)
7284 (propagated-inputs
7285 `(("r-annotationdbi" ,r-annotationdbi)
7286 ("r-dbi" ,r-dbi)
7287 ("r-biobase" ,r-biobase)
7288 ("r-biocgenerics" ,r-biocgenerics)
7289 ("r-go-db" ,r-go-db)
7290 ("r-graph" ,r-graph)
7291 ("r-lattice" ,r-lattice)
7292 ("r-matrixstats" ,r-matrixstats)
7293 ("r-sparsem" ,r-sparsem)))
7294 (home-page "http://bioconductor.org/packages/topGO")
7295 (synopsis "Enrichment analysis for gene ontology")
7296 (description
7297 "The topGO package provides tools for testing @dfn{gene ontology} (GO)
7298 terms while accounting for the topology of the GO graph. Different test
7299 statistics and different methods for eliminating local similarities and
7300 dependencies between GO terms can be implemented and applied.")
7301 ;; Any version of the LGPL applies.
7302 (license license:lgpl2.1+)))
7303
7304 (define-public r-bsgenome
7305 (package
7306 (name "r-bsgenome")
7307 (version "1.44.0")
7308 (source (origin
7309 (method url-fetch)
7310 (uri (bioconductor-uri "BSgenome" version))
7311 (sha256
7312 (base32
7313 "18dlknwk3xvi52hamxf9pl5bjc5806mpw98xwvx5xajn8mrxiy5h"))))
7314 (properties
7315 `((upstream-name . "BSgenome")))
7316 (build-system r-build-system)
7317 (propagated-inputs
7318 `(("r-biocgenerics" ,r-biocgenerics)
7319 ("r-biostrings" ,r-biostrings)
7320 ("r-genomeinfodb" ,r-genomeinfodb)
7321 ("r-genomicranges" ,r-genomicranges)
7322 ("r-iranges" ,r-iranges)
7323 ("r-rsamtools" ,r-rsamtools)
7324 ("r-rtracklayer" ,r-rtracklayer)
7325 ("r-s4vectors" ,r-s4vectors)
7326 ("r-xvector" ,r-xvector)))
7327 (home-page "http://bioconductor.org/packages/BSgenome")
7328 (synopsis "Infrastructure for Biostrings-based genome data packages")
7329 (description
7330 "This package provides infrastructure shared by all Biostrings-based
7331 genome data packages and support for efficient SNP representation.")
7332 (license license:artistic2.0)))
7333
7334 (define-public r-bsgenome-hsapiens-1000genomes-hs37d5
7335 (package
7336 (name "r-bsgenome-hsapiens-1000genomes-hs37d5")
7337 (version "0.99.1")
7338 (source (origin
7339 (method url-fetch)
7340 ;; We cannot use bioconductor-uri here because this tarball is
7341 ;; located under "data/annotation/" instead of "bioc/".
7342 (uri (string-append "http://www.bioconductor.org/packages/"
7343 "release/data/annotation/src/contrib/"
7344 "BSgenome.Hsapiens.1000genomes.hs37d5_"
7345 version ".tar.gz"))
7346 (sha256
7347 (base32
7348 "1cg0g5fqmsvwyw2p9hp2yy4ilk21jkbbrnpgqvb5c36ihjwvc7sr"))))
7349 (properties
7350 `((upstream-name . "BSgenome.Hsapiens.1000genomes.hs37d5")))
7351 (build-system r-build-system)
7352 ;; As this package provides little more than a very large data file it
7353 ;; doesn't make sense to build substitutes.
7354 (arguments `(#:substitutable? #f))
7355 (propagated-inputs
7356 `(("r-bsgenome" ,r-bsgenome)))
7357 (home-page
7358 "http://www.bioconductor.org/packages/BSgenome.Hsapiens.1000genomes.hs37d5/")
7359 (synopsis "Full genome sequences for Homo sapiens")
7360 (description
7361 "This package provides full genome sequences for Homo sapiens from
7362 1000genomes phase2 reference genome sequence (hs37d5), based on NCBI GRCh37.")
7363 (license license:artistic2.0)))
7364
7365 (define-public r-impute
7366 (package
7367 (name "r-impute")
7368 (version "1.50.0")
7369 (source (origin
7370 (method url-fetch)
7371 (uri (bioconductor-uri "impute" version))
7372 (sha256
7373 (base32
7374 "0va45vfixy3np549md87h3b3rbavm54gfnmnjhpr9hf02lll6zxs"))))
7375 (inputs
7376 `(("gfortran" ,gfortran)))
7377 (build-system r-build-system)
7378 (home-page "http://bioconductor.org/packages/impute")
7379 (synopsis "Imputation for microarray data")
7380 (description
7381 "This package provides a function to impute missing gene expression
7382 microarray data, using nearest neighbor averaging.")
7383 (license license:gpl2+)))
7384
7385 (define-public r-seqpattern
7386 (package
7387 (name "r-seqpattern")
7388 (version "1.8.0")
7389 (source (origin
7390 (method url-fetch)
7391 (uri (bioconductor-uri "seqPattern" version))
7392 (sha256
7393 (base32
7394 "0yw5251sirv3283xgmfmfbf900xp8dwvqfk88mr945s3by5hx99v"))))
7395 (properties
7396 `((upstream-name . "seqPattern")))
7397 (build-system r-build-system)
7398 (propagated-inputs
7399 `(("r-biostrings" ,r-biostrings)
7400 ("r-genomicranges" ,r-genomicranges)
7401 ("r-iranges" ,r-iranges)
7402 ("r-kernsmooth" ,r-kernsmooth)
7403 ("r-plotrix" ,r-plotrix)))
7404 (home-page "http://bioconductor.org/packages/seqPattern")
7405 (synopsis "Visualising oligonucleotide patterns and motif occurrences")
7406 (description
7407 "This package provides tools to visualize oligonucleotide patterns and
7408 sequence motif occurrences across a large set of sequences centred at a common
7409 reference point and sorted by a user defined feature.")
7410 (license license:gpl3+)))
7411
7412 (define-public r-genomation
7413 (package
7414 (name "r-genomation")
7415 (version "1.8.0")
7416 (source (origin
7417 (method url-fetch)
7418 (uri (bioconductor-uri "genomation" version))
7419 (sha256
7420 (base32
7421 "0r71nf8p3aq3yffqxg4yir1zmm7rar5a57nmy1kpqpn8kaf2svjl"))))
7422 (build-system r-build-system)
7423 (propagated-inputs
7424 `(("r-biostrings" ,r-biostrings)
7425 ("r-bsgenome" ,r-bsgenome)
7426 ("r-data-table" ,r-data-table)
7427 ("r-genomeinfodb" ,r-genomeinfodb)
7428 ("r-genomicalignments" ,r-genomicalignments)
7429 ("r-genomicranges" ,r-genomicranges)
7430 ("r-ggplot2" ,r-ggplot2)
7431 ("r-gridbase" ,r-gridbase)
7432 ("r-impute" ,r-impute)
7433 ("r-iranges" ,r-iranges)
7434 ("r-matrixstats" ,r-matrixstats)
7435 ("r-plotrix" ,r-plotrix)
7436 ("r-plyr" ,r-plyr)
7437 ("r-rcpp" ,r-rcpp)
7438 ("r-readr" ,r-readr)
7439 ("r-reshape2" ,r-reshape2)
7440 ("r-rhtslib" ,r-rhtslib)
7441 ("r-rsamtools" ,r-rsamtools)
7442 ("r-rtracklayer" ,r-rtracklayer)
7443 ("r-runit" ,r-runit)
7444 ("r-s4vectors" ,r-s4vectors)
7445 ("r-seqpattern" ,r-seqpattern)))
7446 (inputs
7447 `(("zlib" ,zlib)))
7448 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
7449 (synopsis "Summary, annotation and visualization of genomic data")
7450 (description
7451 "This package provides a package for summary and annotation of genomic
7452 intervals. Users can visualize and quantify genomic intervals over
7453 pre-defined functional regions, such as promoters, exons, introns, etc. The
7454 genomic intervals represent regions with a defined chromosome position, which
7455 may be associated with a score, such as aligned reads from HT-seq experiments,
7456 TF binding sites, methylation scores, etc. The package can use any tabular
7457 genomic feature data as long as it has minimal information on the locations of
7458 genomic intervals. In addition, it can use BAM or BigWig files as input.")
7459 (license license:artistic2.0)))
7460
7461 (define-public r-genomationdata
7462 (package
7463 (name "r-genomationdata")
7464 (version "1.6.0")
7465 (source (origin
7466 (method url-fetch)
7467 ;; We cannot use bioconductor-uri here because this tarball is
7468 ;; located under "data/annotation/" instead of "bioc/".
7469 (uri (string-append "https://bioconductor.org/packages/"
7470 "release/data/experiment/src/contrib/"
7471 "genomationData_" version ".tar.gz"))
7472 (sha256
7473 (base32
7474 "16dqwb7wx1igx77zdbcskx5m1hs4g4gp2hl56zzm70hcagnlkz8y"))))
7475 (build-system r-build-system)
7476 ;; As this package provides little more than large data files, it doesn't
7477 ;; make sense to build substitutes.
7478 (arguments `(#:substitutable? #f))
7479 (native-inputs
7480 `(("r-knitr" ,r-knitr)))
7481 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
7482 (synopsis "Experimental data for use with the genomation package")
7483 (description
7484 "This package contains experimental genetic data for use with the
7485 genomation package. Included are Chip Seq, Methylation and Cage data,
7486 downloaded from Encode.")
7487 (license license:gpl3+)))
7488
7489 (define-public r-org-hs-eg-db
7490 (package
7491 (name "r-org-hs-eg-db")
7492 (version "3.4.0")
7493 (source (origin
7494 (method url-fetch)
7495 ;; We cannot use bioconductor-uri here because this tarball is
7496 ;; located under "data/annotation/" instead of "bioc/".
7497 (uri (string-append "http://www.bioconductor.org/packages/"
7498 "release/data/annotation/src/contrib/"
7499 "org.Hs.eg.db_" version ".tar.gz"))
7500 (sha256
7501 (base32
7502 "19mg64pw8zcvb9yxzzyf7caz1kvdrkfsj1hd84bzq7crrh8kc4y6"))))
7503 (properties
7504 `((upstream-name . "org.Hs.eg.db")))
7505 (build-system r-build-system)
7506 (propagated-inputs
7507 `(("r-annotationdbi" ,r-annotationdbi)))
7508 (home-page "http://www.bioconductor.org/packages/org.Hs.eg.db/")
7509 (synopsis "Genome wide annotation for Human")
7510 (description
7511 "This package provides mappings from Entrez gene identifiers to various
7512 annotations for the human genome.")
7513 (license license:artistic2.0)))
7514
7515 (define-public r-org-ce-eg-db
7516 (package
7517 (name "r-org-ce-eg-db")
7518 (version "3.4.0")
7519 (source (origin
7520 (method url-fetch)
7521 ;; We cannot use bioconductor-uri here because this tarball is
7522 ;; located under "data/annotation/" instead of "bioc/".
7523 (uri (string-append "http://www.bioconductor.org/packages/"
7524 "release/data/annotation/src/contrib/"
7525 "org.Ce.eg.db_" version ".tar.gz"))
7526 (sha256
7527 (base32
7528 "12llfzrrc09kj2wzbisdspv38qzkzgpsbn8kv7qkwg746k3pq436"))))
7529 (properties
7530 `((upstream-name . "org.Ce.eg.db")))
7531 (build-system r-build-system)
7532 (propagated-inputs
7533 `(("r-annotationdbi" ,r-annotationdbi)))
7534 (home-page "http://www.bioconductor.org/packages/org.Ce.eg.db/")
7535 (synopsis "Genome wide annotation for Worm")
7536 (description
7537 "This package provides mappings from Entrez gene identifiers to various
7538 annotations for the genome of the model worm Caenorhabditis elegans.")
7539 (license license:artistic2.0)))
7540
7541 (define-public r-org-dm-eg-db
7542 (package
7543 (name "r-org-dm-eg-db")
7544 (version "3.4.0")
7545 (source (origin
7546 (method url-fetch)
7547 ;; We cannot use bioconductor-uri here because this tarball is
7548 ;; located under "data/annotation/" instead of "bioc/".
7549 (uri (string-append "http://www.bioconductor.org/packages/"
7550 "release/data/annotation/src/contrib/"
7551 "org.Dm.eg.db_" version ".tar.gz"))
7552 (sha256
7553 (base32
7554 "1vzbphbrh1cf7xi5cksia9xy9a9l42js2z2qsajvjxvddiphrb7j"))))
7555 (properties
7556 `((upstream-name . "org.Dm.eg.db")))
7557 (build-system r-build-system)
7558 (propagated-inputs
7559 `(("r-annotationdbi" ,r-annotationdbi)))
7560 (home-page "http://www.bioconductor.org/packages/org.Dm.eg.db/")
7561 (synopsis "Genome wide annotation for Fly")
7562 (description
7563 "This package provides mappings from Entrez gene identifiers to various
7564 annotations for the genome of the model fruit fly Drosophila melanogaster.")
7565 (license license:artistic2.0)))
7566
7567 (define-public r-org-mm-eg-db
7568 (package
7569 (name "r-org-mm-eg-db")
7570 (version "3.4.0")
7571 (source (origin
7572 (method url-fetch)
7573 ;; We cannot use bioconductor-uri here because this tarball is
7574 ;; located under "data/annotation/" instead of "bioc/".
7575 (uri (string-append "http://www.bioconductor.org/packages/"
7576 "release/data/annotation/src/contrib/"
7577 "org.Mm.eg.db_" version ".tar.gz"))
7578 (sha256
7579 (base32
7580 "1lykjqjaf01fmgg3cvfcvwd5xjq6zc5vbxnm5r4l32fzvl89q50c"))))
7581 (properties
7582 `((upstream-name . "org.Mm.eg.db")))
7583 (build-system r-build-system)
7584 (propagated-inputs
7585 `(("r-annotationdbi" ,r-annotationdbi)))
7586 (home-page "http://www.bioconductor.org/packages/org.Mm.eg.db/")
7587 (synopsis "Genome wide annotation for Mouse")
7588 (description
7589 "This package provides mappings from Entrez gene identifiers to various
7590 annotations for the genome of the model mouse Mus musculus.")
7591 (license license:artistic2.0)))
7592
7593 (define-public r-seqlogo
7594 (package
7595 (name "r-seqlogo")
7596 (version "1.42.0")
7597 (source
7598 (origin
7599 (method url-fetch)
7600 (uri (bioconductor-uri "seqLogo" version))
7601 (sha256
7602 (base32
7603 "19d5zmy7m8svljwgbmrb4vxkq18slq0f3all6k2ayv42b8w44h6q"))))
7604 (properties `((upstream-name . "seqLogo")))
7605 (build-system r-build-system)
7606 (home-page "http://bioconductor.org/packages/seqLogo")
7607 (synopsis "Sequence logos for DNA sequence alignments")
7608 (description
7609 "seqLogo takes the position weight matrix of a DNA sequence motif and
7610 plots the corresponding sequence logo as introduced by Schneider and
7611 Stephens (1990).")
7612 (license license:lgpl2.0+)))
7613
7614 (define-public r-bsgenome-hsapiens-ucsc-hg19
7615 (package
7616 (name "r-bsgenome-hsapiens-ucsc-hg19")
7617 (version "1.4.0")
7618 (source (origin
7619 (method url-fetch)
7620 ;; We cannot use bioconductor-uri here because this tarball is
7621 ;; located under "data/annotation/" instead of "bioc/".
7622 (uri (string-append "http://www.bioconductor.org/packages/"
7623 "release/data/annotation/src/contrib/"
7624 "BSgenome.Hsapiens.UCSC.hg19_"
7625 version ".tar.gz"))
7626 (sha256
7627 (base32
7628 "1y0nqpk8cw5a34sd9hmin3z4v7iqm6hf6l22cl81vlbxqbjibxc8"))))
7629 (properties
7630 `((upstream-name . "BSgenome.Hsapiens.UCSC.hg19")))
7631 (build-system r-build-system)
7632 ;; As this package provides little more than a very large data file it
7633 ;; doesn't make sense to build substitutes.
7634 (arguments `(#:substitutable? #f))
7635 (propagated-inputs
7636 `(("r-bsgenome" ,r-bsgenome)))
7637 (home-page
7638 "http://www.bioconductor.org/packages/BSgenome.Hsapiens.UCSC.hg19/")
7639 (synopsis "Full genome sequences for Homo sapiens")
7640 (description
7641 "This package provides full genome sequences for Homo sapiens as provided
7642 by UCSC (hg19, February 2009) and stored in Biostrings objects.")
7643 (license license:artistic2.0)))
7644
7645 (define-public r-bsgenome-mmusculus-ucsc-mm9
7646 (package
7647 (name "r-bsgenome-mmusculus-ucsc-mm9")
7648 (version "1.4.0")
7649 (source (origin
7650 (method url-fetch)
7651 ;; We cannot use bioconductor-uri here because this tarball is
7652 ;; located under "data/annotation/" instead of "bioc/".
7653 (uri (string-append "http://www.bioconductor.org/packages/"
7654 "release/data/annotation/src/contrib/"
7655 "BSgenome.Mmusculus.UCSC.mm9_"
7656 version ".tar.gz"))
7657 (sha256
7658 (base32
7659 "1birqw30g2azimxpnjfzmkphan7x131yy8b9h85lfz5fjdg7841i"))))
7660 (properties
7661 `((upstream-name . "BSgenome.Mmusculus.UCSC.mm9")))
7662 (build-system r-build-system)
7663 ;; As this package provides little more than a very large data file it
7664 ;; doesn't make sense to build substitutes.
7665 (arguments `(#:substitutable? #f))
7666 (propagated-inputs
7667 `(("r-bsgenome" ,r-bsgenome)))
7668 (home-page
7669 "http://www.bioconductor.org/packages/BSgenome.Mmusculus.UCSC.mm9/")
7670 (synopsis "Full genome sequences for Mouse")
7671 (description
7672 "This package provides full genome sequences for Mus musculus (Mouse) as
7673 provided by UCSC (mm9, July 2007) and stored in Biostrings objects.")
7674 (license license:artistic2.0)))
7675
7676 (define-public r-bsgenome-mmusculus-ucsc-mm10
7677 (package
7678 (name "r-bsgenome-mmusculus-ucsc-mm10")
7679 (version "1.4.0")
7680 (source (origin
7681 (method url-fetch)
7682 ;; We cannot use bioconductor-uri here because this tarball is
7683 ;; located under "data/annotation/" instead of "bioc/".
7684 (uri (string-append "http://www.bioconductor.org/packages/"
7685 "release/data/annotation/src/contrib/"
7686 "BSgenome.Mmusculus.UCSC.mm10_"
7687 version ".tar.gz"))
7688 (sha256
7689 (base32
7690 "12s0nm2na9brjad4rn9l7d3db2aj8qa1xvz0y1k7gk08wayb6bkf"))))
7691 (properties
7692 `((upstream-name . "BSgenome.Mmusculus.UCSC.mm10")))
7693 (build-system r-build-system)
7694 ;; As this package provides little more than a very large data file it
7695 ;; doesn't make sense to build substitutes.
7696 (arguments `(#:substitutable? #f))
7697 (propagated-inputs
7698 `(("r-bsgenome" ,r-bsgenome)))
7699 (home-page
7700 "http://www.bioconductor.org/packages/BSgenome.Mmusculus.UCSC.mm10/")
7701 (synopsis "Full genome sequences for Mouse")
7702 (description
7703 "This package provides full genome sequences for Mus
7704 musculus (Mouse) as provided by UCSC (mm10, December 2011) and stored
7705 in Biostrings objects.")
7706 (license license:artistic2.0)))
7707
7708 (define-public r-txdb-mmusculus-ucsc-mm10-knowngene
7709 (package
7710 (name "r-txdb-mmusculus-ucsc-mm10-knowngene")
7711 (version "3.4.0")
7712 (source (origin
7713 (method url-fetch)
7714 ;; We cannot use bioconductor-uri here because this tarball is
7715 ;; located under "data/annotation/" instead of "bioc/".
7716 (uri (string-append "http://www.bioconductor.org/packages/"
7717 "release/data/annotation/src/contrib/"
7718 "TxDb.Mmusculus.UCSC.mm10.knownGene_"
7719 version ".tar.gz"))
7720 (sha256
7721 (base32
7722 "08gava9wsvpcqz51k2sni3pj03n5155v32d9riqbf305nbirqbkb"))))
7723 (properties
7724 `((upstream-name . "TxDb.Mmusculus.UCSC.mm10.knownGene")))
7725 (build-system r-build-system)
7726 ;; As this package provides little more than a very large data file it
7727 ;; doesn't make sense to build substitutes.
7728 (arguments `(#:substitutable? #f))
7729 (propagated-inputs
7730 `(("r-bsgenome" ,r-bsgenome)
7731 ("r-genomicfeatures" ,r-genomicfeatures)
7732 ("r-annotationdbi" ,r-annotationdbi)))
7733 (home-page
7734 "http://bioconductor.org/packages/TxDb.Mmusculus.UCSC.mm10.knownGene/")
7735 (synopsis "Annotation package for TxDb knownGene object(s) for Mouse")
7736 (description
7737 "This package loads a TxDb object, which is an R interface to
7738 prefabricated databases contained in this package. This package provides
7739 the TxDb object of Mouse data as provided by UCSC (mm10, December 2011)
7740 based on the knownGene track.")
7741 (license license:artistic2.0)))
7742
7743 (define-public r-bsgenome-celegans-ucsc-ce6
7744 (package
7745 (name "r-bsgenome-celegans-ucsc-ce6")
7746 (version "1.4.0")
7747 (source (origin
7748 (method url-fetch)
7749 ;; We cannot use bioconductor-uri here because this tarball is
7750 ;; located under "data/annotation/" instead of "bioc/".
7751 (uri (string-append "http://www.bioconductor.org/packages/"
7752 "release/data/annotation/src/contrib/"
7753 "BSgenome.Celegans.UCSC.ce6_"
7754 version ".tar.gz"))
7755 (sha256
7756 (base32
7757 "0mqzb353xv2c3m3vkb315dkmnxkgczp7ndnknyhpgjlybyf715v9"))))
7758 (properties
7759 `((upstream-name . "BSgenome.Celegans.UCSC.ce6")))
7760 (build-system r-build-system)
7761 ;; As this package provides little more than a very large data file it
7762 ;; doesn't make sense to build substitutes.
7763 (arguments `(#:substitutable? #f))
7764 (propagated-inputs
7765 `(("r-bsgenome" ,r-bsgenome)))
7766 (home-page
7767 "http://www.bioconductor.org/packages/BSgenome.Celegans.UCSC.ce6/")
7768 (synopsis "Full genome sequences for Worm")
7769 (description
7770 "This package provides full genome sequences for Caenorhabditis
7771 elegans (Worm) as provided by UCSC (ce6, May 2008) and stored in Biostrings
7772 objects.")
7773 (license license:artistic2.0)))
7774
7775 (define-public r-bsgenome-celegans-ucsc-ce10
7776 (package
7777 (name "r-bsgenome-celegans-ucsc-ce10")
7778 (version "1.4.0")
7779 (source (origin
7780 (method url-fetch)
7781 ;; We cannot use bioconductor-uri here because this tarball is
7782 ;; located under "data/annotation/" instead of "bioc/".
7783 (uri (string-append "http://www.bioconductor.org/packages/"
7784 "release/data/annotation/src/contrib/"
7785 "BSgenome.Celegans.UCSC.ce10_"
7786 version ".tar.gz"))
7787 (sha256
7788 (base32
7789 "1zaym97jk4npxk14ifvwz2rvhm4zx9xgs33r9vvx9rlynp0gydrk"))))
7790 (properties
7791 `((upstream-name . "BSgenome.Celegans.UCSC.ce10")))
7792 (build-system r-build-system)
7793 ;; As this package provides little more than a very large data file it
7794 ;; doesn't make sense to build substitutes.
7795 (arguments `(#:substitutable? #f))
7796 (propagated-inputs
7797 `(("r-bsgenome" ,r-bsgenome)))
7798 (home-page
7799 "http://www.bioconductor.org/packages/BSgenome.Celegans.UCSC.ce10/")
7800 (synopsis "Full genome sequences for Worm")
7801 (description
7802 "This package provides full genome sequences for Caenorhabditis
7803 elegans (Worm) as provided by UCSC (ce10, Oct 2010) and stored in Biostrings
7804 objects.")
7805 (license license:artistic2.0)))
7806
7807 (define-public r-bsgenome-dmelanogaster-ucsc-dm3
7808 (package
7809 (name "r-bsgenome-dmelanogaster-ucsc-dm3")
7810 (version "1.4.0")
7811 (source (origin
7812 (method url-fetch)
7813 ;; We cannot use bioconductor-uri here because this tarball is
7814 ;; located under "data/annotation/" instead of "bioc/".
7815 (uri (string-append "http://www.bioconductor.org/packages/"
7816 "release/data/annotation/src/contrib/"
7817 "BSgenome.Dmelanogaster.UCSC.dm3_"
7818 version ".tar.gz"))
7819 (sha256
7820 (base32
7821 "19bm3lkhhkag3gnwp419211fh0cnr0x6fa0r1lr0ycwrikxdxsv8"))))
7822 (properties
7823 `((upstream-name . "BSgenome.Dmelanogaster.UCSC.dm3")))
7824 (build-system r-build-system)
7825 ;; As this package provides little more than a very large data file it
7826 ;; doesn't make sense to build substitutes.
7827 (arguments `(#:substitutable? #f))
7828 (propagated-inputs
7829 `(("r-bsgenome" ,r-bsgenome)))
7830 (home-page
7831 "http://www.bioconductor.org/packages/BSgenome.Dmelanogaster.UCSC.dm3/")
7832 (synopsis "Full genome sequences for Fly")
7833 (description
7834 "This package provides full genome sequences for Drosophila
7835 melanogaster (Fly) as provided by UCSC (dm3, April 2006) and stored in
7836 Biostrings objects.")
7837 (license license:artistic2.0)))
7838
7839 (define-public r-motifrg
7840 (package
7841 (name "r-motifrg")
7842 (version "1.20.0")
7843 (source
7844 (origin
7845 (method url-fetch)
7846 (uri (bioconductor-uri "motifRG" version))
7847 (sha256
7848 (base32
7849 "0lxxpqyljiyk73vyq6ss46q13g81pm24q87mkzdsqlr5zx427ch6"))))
7850 (properties `((upstream-name . "motifRG")))
7851 (build-system r-build-system)
7852 (propagated-inputs
7853 `(("r-biostrings" ,r-biostrings)
7854 ("r-bsgenome" ,r-bsgenome)
7855 ("r-bsgenome.hsapiens.ucsc.hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
7856 ("r-iranges" ,r-iranges)
7857 ("r-seqlogo" ,r-seqlogo)
7858 ("r-xvector" ,r-xvector)))
7859 (home-page "http://bioconductor.org/packages/motifRG")
7860 (synopsis "Discover motifs in high throughput sequencing data")
7861 (description
7862 "This package provides tools for discriminative motif discovery in high
7863 throughput genetic sequencing data sets using regression methods.")
7864 (license license:artistic2.0)))
7865
7866 (define-public r-qtl
7867 (package
7868 (name "r-qtl")
7869 (version "1.41-6")
7870 (source
7871 (origin
7872 (method url-fetch)
7873 (uri (string-append "mirror://cran/src/contrib/qtl_"
7874 version ".tar.gz"))
7875 (sha256
7876 (base32
7877 "067az4v432zxp6lxck8d7vlh9w4r13r0mvw5zsglyaqwsh3d9sad"))))
7878 (build-system r-build-system)
7879 (home-page "http://rqtl.org/")
7880 (synopsis "R package for analyzing QTL experiments in genetics")
7881 (description "R/qtl is an extension library for the R statistics
7882 system. It is used to analyze experimental crosses for identifying
7883 genes contributing to variation in quantitative traits (so-called
7884 quantitative trait loci, QTLs).
7885
7886 Using a hidden Markov model, R/qtl allows to estimate genetic maps, to
7887 identify genotyping errors, and to perform single-QTL and two-QTL,
7888 two-dimensional genome scans.")
7889 (license license:gpl3)))
7890
7891 (define-public r-zlibbioc
7892 (package
7893 (name "r-zlibbioc")
7894 (version "1.22.0")
7895 (source (origin
7896 (method url-fetch)
7897 (uri (bioconductor-uri "zlibbioc" version))
7898 (sha256
7899 (base32
7900 "1kdgwwlh39mgwzj3zq71za4iv40sq625ghnyrndv5wrivrcr2igv"))))
7901 (properties
7902 `((upstream-name . "zlibbioc")))
7903 (build-system r-build-system)
7904 (home-page "https://bioconductor.org/packages/zlibbioc")
7905 (synopsis "Provider for zlib-1.2.5 to R packages")
7906 (description "This package uses the source code of zlib-1.2.5 to create
7907 libraries for systems that do not have these available via other means.")
7908 (license license:artistic2.0)))
7909
7910 (define-public r-r4rna
7911 (package
7912 (name "r-r4rna")
7913 (version "0.1.4")
7914 (source
7915 (origin
7916 (method url-fetch)
7917 (uri (string-append "http://www.e-rna.org/r-chie/files/R4RNA_"
7918 version ".tar.gz"))
7919 (sha256
7920 (base32
7921 "1p0i78wh76jfgmn9jphbwwaz6yy6pipzfg08xs54cxavxg2j81p5"))))
7922 (build-system r-build-system)
7923 (propagated-inputs
7924 `(("r-optparse" ,r-optparse)
7925 ("r-rcolorbrewer" ,r-rcolorbrewer)))
7926 (home-page "http://www.e-rna.org/r-chie/index.cgi")
7927 (synopsis "Analysis framework for RNA secondary structure")
7928 (description
7929 "The R4RNA package aims to be a general framework for the analysis of RNA
7930 secondary structure and comparative analysis in R.")
7931 (license license:gpl3+)))
7932
7933 (define-public r-rhtslib
7934 (package
7935 (name "r-rhtslib")
7936 (version "1.8.0")
7937 (source
7938 (origin
7939 (method url-fetch)
7940 (uri (bioconductor-uri "Rhtslib" version))
7941 (sha256
7942 (base32
7943 "0jj5h81z5gyf4j3lp2l3zsm6pgbmalgrngr8qdpygc20phndpp0b"))))
7944 (properties `((upstream-name . "Rhtslib")))
7945 (build-system r-build-system)
7946 (propagated-inputs
7947 `(("r-zlibbioc" ,r-zlibbioc)))
7948 (inputs
7949 `(("zlib" ,zlib)))
7950 (native-inputs
7951 `(("autoconf" ,autoconf)))
7952 (home-page "https://github.com/nhayden/Rhtslib")
7953 (synopsis "High-throughput sequencing library as an R package")
7954 (description
7955 "This package provides the HTSlib C library for high-throughput
7956 nucleotide sequence analysis. The package is primarily useful to developers
7957 of other R packages who wish to make use of HTSlib.")
7958 (license license:lgpl2.0+)))
7959
7960 (define-public r-bamsignals
7961 (package
7962 (name "r-bamsignals")
7963 (version "1.8.0")
7964 (source
7965 (origin
7966 (method url-fetch)
7967 (uri (bioconductor-uri "bamsignals" version))
7968 (sha256
7969 (base32
7970 "0knx69zzdaak2sjim8k9mygmcjxpa705m8013ld5zwpgi8dag9mc"))))
7971 (build-system r-build-system)
7972 (propagated-inputs
7973 `(("r-biocgenerics" ,r-biocgenerics)
7974 ("r-genomicranges" ,r-genomicranges)
7975 ("r-iranges" ,r-iranges)
7976 ("r-rcpp" ,r-rcpp)
7977 ("r-rhtslib" ,r-rhtslib)
7978 ("r-zlibbioc" ,r-zlibbioc)))
7979 (inputs
7980 `(("zlib" ,zlib)))
7981 (home-page "http://bioconductor.org/packages/bamsignals")
7982 (synopsis "Extract read count signals from bam files")
7983 (description
7984 "This package allows to efficiently obtain count vectors from indexed bam
7985 files. It counts the number of nucleotide sequence reads in given genomic
7986 ranges and it computes reads profiles and coverage profiles. It also handles
7987 paired-end data.")
7988 (license license:gpl2+)))
7989
7990 (define-public r-rcas
7991 (package
7992 (name "r-rcas")
7993 (version "1.1.1")
7994 (source (origin
7995 (method url-fetch)
7996 (uri (string-append "https://github.com/BIMSBbioinfo/RCAS/archive/v"
7997 version ".tar.gz"))
7998 (file-name (string-append name "-" version ".tar.gz"))
7999 (sha256
8000 (base32
8001 "1hd0r66556bxbdd82ksjklq7nfli36l4k6y88ic7kkg9873wa1nw"))))
8002 (build-system r-build-system)
8003 (native-inputs
8004 `(("r-knitr" ,r-knitr)
8005 ("r-testthat" ,r-testthat)
8006 ;; During vignette building knitr checks that "pandoc-citeproc"
8007 ;; is in the PATH.
8008 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)))
8009 (propagated-inputs
8010 `(("r-data-table" ,r-data-table)
8011 ("r-biomart" ,r-biomart)
8012 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
8013 ("r-org-ce-eg-db" ,r-org-ce-eg-db)
8014 ("r-org-dm-eg-db" ,r-org-dm-eg-db)
8015 ("r-org-mm-eg-db" ,r-org-mm-eg-db)
8016 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8017 ("r-bsgenome-mmusculus-ucsc-mm9" ,r-bsgenome-mmusculus-ucsc-mm9)
8018 ("r-bsgenome-celegans-ucsc-ce10" ,r-bsgenome-celegans-ucsc-ce10)
8019 ("r-bsgenome-dmelanogaster-ucsc-dm3" ,r-bsgenome-dmelanogaster-ucsc-dm3)
8020 ("r-topgo" ,r-topgo)
8021 ("r-dt" ,r-dt)
8022 ("r-plotly" ,r-plotly)
8023 ("r-plotrix" ,r-plotrix)
8024 ("r-motifrg" ,r-motifrg)
8025 ("r-genomation" ,r-genomation)
8026 ("r-genomicfeatures" ,r-genomicfeatures)
8027 ("r-rtracklayer" ,r-rtracklayer)
8028 ("r-rmarkdown" ,r-rmarkdown)))
8029 (synopsis "RNA-centric annotation system")
8030 (description
8031 "RCAS aims to be a standalone RNA-centric annotation system that provides
8032 intuitive reports and publication-ready graphics. This package provides the R
8033 library implementing most of the pipeline's features.")
8034 (home-page "https://github.com/BIMSBbioinfo/RCAS")
8035 (license license:expat)))
8036
8037 (define-public rcas-web
8038 (package
8039 (name "rcas-web")
8040 (version "0.0.3")
8041 (source
8042 (origin
8043 (method url-fetch)
8044 (uri (string-append "https://github.com/BIMSBbioinfo/rcas-web/"
8045 "releases/download/v" version
8046 "/rcas-web-" version ".tar.gz"))
8047 (sha256
8048 (base32
8049 "0d3my0g8i7js59n184zzzjdki7hgmhpi4rhfvk7i6jsw01ba04qq"))))
8050 (build-system gnu-build-system)
8051 (arguments
8052 `(#:phases
8053 (modify-phases %standard-phases
8054 (add-after 'install 'wrap-executable
8055 (lambda* (#:key inputs outputs #:allow-other-keys)
8056 (let* ((out (assoc-ref outputs "out"))
8057 (json (assoc-ref inputs "guile-json"))
8058 (redis (assoc-ref inputs "guile-redis"))
8059 (path (string-append
8060 json "/share/guile/site/2.2:"
8061 redis "/share/guile/site/2.2")))
8062 (wrap-program (string-append out "/bin/rcas-web")
8063 `("GUILE_LOAD_PATH" ":" = (,path))
8064 `("GUILE_LOAD_COMPILED_PATH" ":" = (,path))
8065 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
8066 #t)))))
8067 (inputs
8068 `(("r-minimal" ,r-minimal)
8069 ("r-rcas" ,r-rcas)
8070 ("guile-next" ,guile-2.2)
8071 ("guile-json" ,guile-json)
8072 ("guile-redis" ,guile2.2-redis)))
8073 (native-inputs
8074 `(("pkg-config" ,pkg-config)))
8075 (home-page "https://github.com/BIMSBbioinfo/rcas-web")
8076 (synopsis "Web interface for RNA-centric annotation system (RCAS)")
8077 (description "This package provides a simple web interface for the
8078 @dfn{RNA-centric annotation system} (RCAS).")
8079 (license license:agpl3+)))
8080
8081 (define-public r-mutationalpatterns
8082 (package
8083 (name "r-mutationalpatterns")
8084 (version "1.2.1")
8085 (source
8086 (origin
8087 (method url-fetch)
8088 (uri (bioconductor-uri "MutationalPatterns" version))
8089 (sha256
8090 (base32
8091 "1s50diwh1j6vg3mgahh6bczvq74mfdbmwjrad4d5lh723gnc5pjg"))))
8092 (build-system r-build-system)
8093 (propagated-inputs
8094 `(("r-biocgenerics" ,r-biocgenerics)
8095 ("r-biostrings" ,r-biostrings)
8096 ("r-bsgenome-hsapiens-1000g" ,r-bsgenome-hsapiens-1000genomes-hs37d5)
8097 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8098 ("r-genomicranges" ,r-genomicranges)
8099 ("r-genomeinfodb" ,r-genomeinfodb)
8100 ("r-ggplot2" ,r-ggplot2)
8101 ("r-gridextra" ,r-gridextra)
8102 ("r-iranges" ,r-iranges)
8103 ("r-nmf" ,r-nmf)
8104 ("r-plyr" ,r-plyr)
8105 ("r-pracma" ,r-pracma)
8106 ("r-reshape2" ,r-reshape2)
8107 ("r-summarizedexperiment" ,r-summarizedexperiment)
8108 ("r-variantannotation" ,r-variantannotation)))
8109 (home-page "http://bioconductor.org/packages/MutationalPatterns/")
8110 (synopsis "Extract and visualize mutational patterns in genomic data")
8111 (description "This package provides an extensive toolset for the
8112 characterization and visualization of a wide range of mutational patterns
8113 in SNV base substitution data.")
8114 (license license:expat)))
8115
8116 (define-public r-wgcna
8117 (package
8118 (name "r-wgcna")
8119 (version "1.61")
8120 (source
8121 (origin
8122 (method url-fetch)
8123 (uri (cran-uri "WGCNA" version))
8124 (sha256
8125 (base32
8126 "1vrc2k33a196hrrl7k0z534fp96vv0shmigcr65ny1q0v6lq0h6i"))))
8127 (properties `((upstream-name . "WGCNA")))
8128 (build-system r-build-system)
8129 (propagated-inputs
8130 `(("r-annotationdbi" ,r-annotationdbi)
8131 ("r-doparallel" ,r-doparallel)
8132 ("r-dynamictreecut" ,r-dynamictreecut)
8133 ("r-fastcluster" ,r-fastcluster)
8134 ("r-foreach" ,r-foreach)
8135 ("r-go-db" ,r-go-db)
8136 ("r-hmisc" ,r-hmisc)
8137 ("r-impute" ,r-impute)
8138 ("r-rcpp" ,r-rcpp)
8139 ("r-robust" ,r-robust)
8140 ("r-survival" ,r-survival)
8141 ("r-matrixstats" ,r-matrixstats)
8142 ("r-preprocesscore" ,r-preprocesscore)))
8143 (home-page
8144 "http://www.genetics.ucla.edu/labs/horvath/CoexpressionNetwork/Rpackages/WGCNA/")
8145 (synopsis "Weighted correlation network analysis")
8146 (description
8147 "This package provides functions necessary to perform Weighted
8148 Correlation Network Analysis on high-dimensional data. It includes functions
8149 for rudimentary data cleaning, construction and summarization of correlation
8150 networks, module identification and functions for relating both variables and
8151 modules to sample traits. It also includes a number of utility functions for
8152 data manipulation and visualization.")
8153 (license license:gpl2+)))
8154
8155 (define-public r-chipkernels
8156 (let ((commit "c9cfcacb626b1221094fb3490ea7bac0fd625372")
8157 (revision "1"))
8158 (package
8159 (name "r-chipkernels")
8160 (version (string-append "1.1-" revision "." (string-take commit 9)))
8161 (source
8162 (origin
8163 (method git-fetch)
8164 (uri (git-reference
8165 (url "https://github.com/ManuSetty/ChIPKernels.git")
8166 (commit commit)))
8167 (file-name (string-append name "-" version))
8168 (sha256
8169 (base32
8170 "14bj5qhjm1hsm9ay561nfbqi9wxsa7y487df2idsaaf6z10nw4v0"))))
8171 (build-system r-build-system)
8172 (propagated-inputs
8173 `(("r-iranges" ,r-iranges)
8174 ("r-xvector" ,r-xvector)
8175 ("r-biostrings" ,r-biostrings)
8176 ("r-bsgenome" ,r-bsgenome)
8177 ("r-gtools" ,r-gtools)
8178 ("r-genomicranges" ,r-genomicranges)
8179 ("r-sfsmisc" ,r-sfsmisc)
8180 ("r-kernlab" ,r-kernlab)
8181 ("r-s4vectors" ,r-s4vectors)
8182 ("r-biocgenerics" ,r-biocgenerics)))
8183 (home-page "https://github.com/ManuSetty/ChIPKernels")
8184 (synopsis "Build string kernels for DNA Sequence analysis")
8185 (description "ChIPKernels is an R package for building different string
8186 kernels used for DNA Sequence analysis. A dictionary of the desired kernel
8187 must be built and this dictionary can be used for determining kernels for DNA
8188 Sequences.")
8189 (license license:gpl2+))))
8190
8191 (define-public r-seqgl
8192 (package
8193 (name "r-seqgl")
8194 (version "1.1.4")
8195 (source
8196 (origin
8197 (method url-fetch)
8198 (uri (string-append "https://github.com/ManuSetty/SeqGL/"
8199 "archive/" version ".tar.gz"))
8200 (file-name (string-append name "-" version ".tar.gz"))
8201 (sha256
8202 (base32
8203 "0pnk1p3sci5yipyc8xnb6jbmydpl80fld927xgnbcv104hy8h8yh"))))
8204 (build-system r-build-system)
8205 (propagated-inputs
8206 `(("r-biostrings" ,r-biostrings)
8207 ("r-chipkernels" ,r-chipkernels)
8208 ("r-genomicranges" ,r-genomicranges)
8209 ("r-spams" ,r-spams)
8210 ("r-wgcna" ,r-wgcna)
8211 ("r-fastcluster" ,r-fastcluster)))
8212 (home-page "https://github.com/ManuSetty/SeqGL")
8213 (synopsis "Group lasso for Dnase/ChIP-seq data")
8214 (description "SeqGL is a group lasso based algorithm to extract
8215 transcription factor sequence signals from ChIP, DNase and ATAC-seq profiles.
8216 This package presents a method which uses group lasso to discriminate between
8217 bound and non bound genomic regions to accurately identify transcription
8218 factors bound at the specific regions.")
8219 (license license:gpl2+)))
8220
8221 (define-public r-gkmsvm
8222 (package
8223 (name "r-gkmsvm")
8224 (version "0.71.0")
8225 (source
8226 (origin
8227 (method url-fetch)
8228 (uri (cran-uri "gkmSVM" version))
8229 (sha256
8230 (base32
8231 "1zpxgxmf2nd5j5wn00ps6kfxr8wxh7d1swr1rr4spq7sj5z5z0k0"))))
8232 (properties `((upstream-name . "gkmSVM")))
8233 (build-system r-build-system)
8234 (propagated-inputs
8235 `(("r-biocgenerics" ,r-biocgenerics)
8236 ("r-biostrings" ,r-biostrings)
8237 ("r-genomeinfodb" ,r-genomeinfodb)
8238 ("r-genomicranges" ,r-genomicranges)
8239 ("r-iranges" ,r-iranges)
8240 ("r-kernlab" ,r-kernlab)
8241 ("r-rcpp" ,r-rcpp)
8242 ("r-rocr" ,r-rocr)
8243 ("r-rtracklayer" ,r-rtracklayer)
8244 ("r-s4vectors" ,r-s4vectors)
8245 ("r-seqinr" ,r-seqinr)))
8246 (home-page "http://cran.r-project.org/web/packages/gkmSVM")
8247 (synopsis "Gapped-kmer support vector machine")
8248 (description
8249 "This R package provides tools for training gapped-kmer SVM classifiers
8250 for DNA and protein sequences. This package supports several sequence
8251 kernels, including: gkmSVM, kmer-SVM, mismatch kernel and wildcard kernel.")
8252 (license license:gpl2+)))
8253
8254 (define-public r-tximport
8255 (package
8256 (name "r-tximport")
8257 (version "1.4.0")
8258 (source (origin
8259 (method url-fetch)
8260 (uri (bioconductor-uri "tximport" version))
8261 (sha256
8262 (base32
8263 "1mklb02bj4gnbjlmb7vv6k4lr3w9fp3pzli9rddbrwd0y5n8fcpx"))))
8264 (build-system r-build-system)
8265 (home-page "http://bioconductor.org/packages/tximport")
8266 (synopsis "Import and summarize transcript-level estimates for gene-level analysis")
8267 (description
8268 "This package provides tools to import transcript-level abundance,
8269 estimated counts and transcript lengths, and to summarize them into matrices
8270 for use with downstream gene-level analysis packages. Average transcript
8271 length, weighted by sample-specific transcript abundance estimates, is
8272 provided as a matrix which can be used as an offset for different expression
8273 of gene-level counts.")
8274 (license license:gpl2+)))
8275
8276 (define-public r-rhdf5
8277 (package
8278 (name "r-rhdf5")
8279 (version "2.20.0")
8280 (source (origin
8281 (method url-fetch)
8282 (uri (bioconductor-uri "rhdf5" version))
8283 (sha256
8284 (base32
8285 "1p6f5i6l44phl772a38x9cav2sya37bkqbkjzdc4pmyfzkv1j6hy"))))
8286 (build-system r-build-system)
8287 (arguments
8288 `(#:phases
8289 (modify-phases %standard-phases
8290 (add-after 'unpack 'unpack-smallhdf5
8291 (lambda* (#:key outputs #:allow-other-keys)
8292 (system* "tar" "-xzvf"
8293 "src/hdf5source/hdf5small.tgz" "-C" "src/" )
8294 (substitute* "src/Makevars"
8295 (("^.*cd hdf5source &&.*$") "")
8296 (("^.*gunzip -dc hdf5small.tgz.*$") "")
8297 (("^.*rm -rf hdf5.*$") "")
8298 (("^.*mv hdf5source/hdf5 ..*$") ""))
8299 (substitute* "src/hdf5/configure"
8300 (("/bin/mv") "mv"))
8301 #t)))))
8302 (propagated-inputs
8303 `(("r-zlibbioc" ,r-zlibbioc)))
8304 (inputs
8305 `(("perl" ,perl)
8306 ("zlib" ,zlib)))
8307 (home-page "http://bioconductor.org/packages/rhdf5")
8308 (synopsis "HDF5 interface to R")
8309 (description
8310 "This R/Bioconductor package provides an interface between HDF5 and R.
8311 HDF5's main features are the ability to store and access very large and/or
8312 complex datasets and a wide variety of metadata on mass storage (disk) through
8313 a completely portable file format. The rhdf5 package is thus suited for the
8314 exchange of large and/or complex datasets between R and other software
8315 package, and for letting R applications work on datasets that are larger than
8316 the available RAM.")
8317 (license license:artistic2.0)))
8318
8319 (define-public r-annotationfilter
8320 (package
8321 (name "r-annotationfilter")
8322 (version "1.0.0")
8323 (source (origin
8324 (method url-fetch)
8325 (uri (bioconductor-uri "AnnotationFilter" version))
8326 (sha256
8327 (base32
8328 "0pxvswjzwibdfmrkdragxmzcl844z73pmkn82z92wahwa6gjfyi7"))))
8329 (properties
8330 `((upstream-name . "AnnotationFilter")))
8331 (build-system r-build-system)
8332 (propagated-inputs
8333 `(("r-genomicranges" ,r-genomicranges)
8334 ("r-lazyeval" ,r-lazyeval)))
8335 (home-page "https://github.com/Bioconductor/AnnotationFilter")
8336 (synopsis "Facilities for filtering Bioconductor annotation resources")
8337 (description
8338 "This package provides classes and other infrastructure to implement
8339 filters for manipulating Bioconductor annotation resources. The filters are
8340 used by @code{ensembldb}, @code{Organism.dplyr}, and other packages.")
8341 (license license:artistic2.0)))
8342
8343 (define-public emboss
8344 (package
8345 (name "emboss")
8346 (version "6.5.7")
8347 (source (origin
8348 (method url-fetch)
8349 (uri (string-append "ftp://emboss.open-bio.org/pub/EMBOSS/old/"
8350 (version-major+minor version) ".0/"
8351 "EMBOSS-" version ".tar.gz"))
8352 (sha256
8353 (base32
8354 "0vsmz96gc411yj2iyzdrsmg4l2n1nhgmp7vrgzlxx3xixv9xbf0q"))))
8355 (build-system gnu-build-system)
8356 (arguments
8357 `(#:configure-flags
8358 (list (string-append "--with-hpdf="
8359 (assoc-ref %build-inputs "libharu")))
8360 #:phases
8361 (modify-phases %standard-phases
8362 (add-after 'unpack 'fix-checks
8363 (lambda _
8364 ;; The PNGDRIVER tests check for the presence of libgd, libpng
8365 ;; and zlib, but assume that they are all found at the same
8366 ;; prefix.
8367 (substitute* "configure.in"
8368 (("CHECK_PNGDRIVER")
8369 "LIBS=\"$LIBS -lgd -lpng -lz -lm\"
8370 AC_DEFINE([PLD_png], [1], [Define to 1 if PNG support is available])
8371 AM_CONDITIONAL(AMPNG, true)"))
8372 #t))
8373 (add-after 'unpack 'disable-update-check
8374 (lambda _
8375 ;; At build time there is no connection to the Internet, so
8376 ;; looking for updates will not work.
8377 (substitute* "Makefile.am"
8378 (("\\$\\(bindir\\)/embossupdate") ""))
8379 #t))
8380 (add-before 'configure 'autogen
8381 (lambda _ (zero? (system* "autoreconf" "-vif")))))))
8382 (inputs
8383 `(("perl" ,perl)
8384 ("libpng" ,libpng)
8385 ("gd" ,gd)
8386 ("libx11" ,libx11)
8387 ("libharu" ,libharu)
8388 ("zlib" ,zlib)))
8389 (native-inputs
8390 `(("autoconf" ,autoconf)
8391 ("automake" ,automake)
8392 ("libtool" ,libtool)
8393 ("pkg-config" ,pkg-config)))
8394 (home-page "http://emboss.sourceforge.net")
8395 (synopsis "Molecular biology analysis suite")
8396 (description "EMBOSS is the \"European Molecular Biology Open Software
8397 Suite\". EMBOSS is an analysis package specially developed for the needs of
8398 the molecular biology (e.g. EMBnet) user community. The software
8399 automatically copes with data in a variety of formats and even allows
8400 transparent retrieval of sequence data from the web. It also provides a
8401 number of libraries for the development of software in the field of molecular
8402 biology. EMBOSS also integrates a range of currently available packages and
8403 tools for sequence analysis into a seamless whole.")
8404 (license license:gpl2+)))
8405
8406 (define-public bits
8407 (let ((revision "1")
8408 (commit "3cc4567896d9d6442923da944beb704750a08d2d"))
8409 (package
8410 (name "bits")
8411 ;; The version is 2.13.0 even though no release archives have been
8412 ;; published as yet.
8413 (version (string-append "2.13.0-" revision "." (string-take commit 9)))
8414 (source (origin
8415 (method git-fetch)
8416 (uri (git-reference
8417 (url "https://github.com/arq5x/bits.git")
8418 (commit commit)))
8419 (file-name (string-append name "-" version "-checkout"))
8420 (sha256
8421 (base32
8422 "17n2kffk4kmhivd8c98g2vr6y1s23vbg4sxlxs689wni66797hbs"))))
8423 (build-system gnu-build-system)
8424 (arguments
8425 `(#:tests? #f ;no tests included
8426 #:phases
8427 (modify-phases %standard-phases
8428 (delete 'configure)
8429 (add-after 'unpack 'remove-cuda
8430 (lambda _
8431 (substitute* "Makefile"
8432 ((".*_cuda") "")
8433 (("(bits_test_intersections) \\\\" _ match) match))
8434 #t))
8435 (replace 'install
8436 (lambda* (#:key outputs #:allow-other-keys)
8437 (copy-recursively
8438 "bin" (string-append (assoc-ref outputs "out") "/bin"))
8439 #t)))))
8440 (inputs
8441 `(("gsl" ,gsl)
8442 ("zlib" ,zlib)))
8443 (home-page "https://github.com/arq5x/bits")
8444 (synopsis "Implementation of binary interval search algorithm")
8445 (description "This package provides an implementation of the
8446 BITS (Binary Interval Search) algorithm, an approach to interval set
8447 intersection. It is especially suited for the comparison of diverse genomic
8448 datasets and the exploration of large datasets of genome
8449 intervals (e.g. genes, sequence alignments).")
8450 (license license:gpl2))))
8451
8452 (define-public piranha
8453 ;; There is no release tarball for the latest version. The latest commit is
8454 ;; older than one year at the time of this writing.
8455 (let ((revision "1")
8456 (commit "0466d364b71117d01e4471b74c514436cc281233"))
8457 (package
8458 (name "piranha")
8459 (version (string-append "1.2.1-" revision "." (string-take commit 9)))
8460 (source (origin
8461 (method git-fetch)
8462 (uri (git-reference
8463 (url "https://github.com/smithlabcode/piranha.git")
8464 (commit commit)))
8465 (sha256
8466 (base32
8467 "117dc0zf20c61jam69sk4abl57ah6yi6i7qra7d7y5zrbgk12q5n"))))
8468 (build-system gnu-build-system)
8469 (arguments
8470 `(#:test-target "test"
8471 #:phases
8472 (modify-phases %standard-phases
8473 (add-after 'unpack 'copy-smithlab-cpp
8474 (lambda* (#:key inputs #:allow-other-keys)
8475 (for-each (lambda (file)
8476 (install-file file "./src/smithlab_cpp/"))
8477 (find-files (assoc-ref inputs "smithlab-cpp")))
8478 #t))
8479 (add-after 'install 'install-to-store
8480 (lambda* (#:key outputs #:allow-other-keys)
8481 (let* ((out (assoc-ref outputs "out"))
8482 (bin (string-append out "/bin")))
8483 (for-each (lambda (file)
8484 (install-file file bin))
8485 (find-files "bin" ".*")))
8486 #t)))
8487 #:configure-flags
8488 (list (string-append "--with-bam_tools_headers="
8489 (assoc-ref %build-inputs "bamtools") "/include/bamtools")
8490 (string-append "--with-bam_tools_library="
8491 (assoc-ref %build-inputs "bamtools") "/lib/bamtools"))))
8492 (inputs
8493 `(("bamtools" ,bamtools)
8494 ("samtools" ,samtools-0.1)
8495 ("gsl" ,gsl)
8496 ("smithlab-cpp"
8497 ,(let ((commit "3723e2db438c51501d0423429ff396c3035ba46a"))
8498 (origin
8499 (method git-fetch)
8500 (uri (git-reference
8501 (url "https://github.com/smithlabcode/smithlab_cpp.git")
8502 (commit commit)))
8503 (file-name (string-append "smithlab_cpp-" commit "-checkout"))
8504 (sha256
8505 (base32
8506 "0l4gvbwslw5ngziskja41c00x1r06l3yidv7y0xw9djibhykzy0g")))))))
8507 (native-inputs
8508 `(("python" ,python-2)))
8509 (home-page "https://github.com/smithlabcode/piranha")
8510 (synopsis "Peak-caller for CLIP-seq and RIP-seq data")
8511 (description
8512 "Piranha is a peak-caller for genomic data produced by CLIP-seq and
8513 RIP-seq experiments. It takes input in BED or BAM format and identifies
8514 regions of statistically significant read enrichment. Additional covariates
8515 may optionally be provided to further inform the peak-calling process.")
8516 (license license:gpl3+))))
8517
8518 (define-public pepr
8519 (package
8520 (name "pepr")
8521 (version "1.0.9")
8522 (source (origin
8523 (method url-fetch)
8524 (uri (string-append "https://pypi.python.org/packages/source/P"
8525 "/PePr/PePr-" version ".tar.gz"))
8526 (sha256
8527 (base32
8528 "0qxjfdpl1b1y53nccws2d85f6k74zwmx8y8sd9rszcqhfayx6gdx"))))
8529 (build-system python-build-system)
8530 (arguments
8531 `(#:python ,python-2 ; python2 only
8532 #:tests? #f)) ; no tests included
8533 (propagated-inputs
8534 `(("python2-numpy" ,python2-numpy)
8535 ("python2-scipy" ,python2-scipy)
8536 ("python2-pysam" ,python2-pysam)))
8537 (home-page "https://github.com/shawnzhangyx/PePr")
8538 (synopsis "Peak-calling and prioritization pipeline for ChIP-Seq data")
8539 (description
8540 "PePr is a ChIP-Seq peak calling or differential binding analysis tool
8541 that is primarily designed for data with biological replicates. It uses a
8542 negative binomial distribution to model the read counts among the samples in
8543 the same group, and look for consistent differences between ChIP and control
8544 group or two ChIP groups run under different conditions.")
8545 (license license:gpl3+)))
8546
8547 (define-public filevercmp
8548 (let ((commit "1a9b779b93d0b244040274794d402106907b71b7"))
8549 (package
8550 (name "filevercmp")
8551 (version (string-append "0-1." (string-take commit 7)))
8552 (source (origin
8553 (method url-fetch)
8554 (uri (string-append "https://github.com/ekg/filevercmp/archive/"
8555 commit ".tar.gz"))
8556 (file-name (string-append name "-" version ".tar.gz"))
8557 (sha256
8558 (base32 "0yp5jswf5j2pqc6517x277s4s6h1ss99v57kxw9gy0jkfl3yh450"))))
8559 (build-system gnu-build-system)
8560 (arguments
8561 `(#:tests? #f ; There are no tests to run.
8562 #:phases
8563 (modify-phases %standard-phases
8564 (delete 'configure) ; There is no configure phase.
8565 (replace 'install
8566 (lambda* (#:key outputs #:allow-other-keys)
8567 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
8568 (install-file "filevercmp" bin)))))))
8569 (home-page "https://github.com/ekg/filevercmp")
8570 (synopsis "This program compares version strings")
8571 (description "This program compares version strings. It intends to be a
8572 replacement for strverscmp.")
8573 (license license:gpl3+))))
8574
8575 (define-public multiqc
8576 (package
8577 (name "multiqc")
8578 (version "1.2")
8579 (source
8580 (origin
8581 (method url-fetch)
8582 (uri (pypi-uri "multiqc" version))
8583 (sha256
8584 (base32
8585 "032svgym67k2ds7wp0cxzv79gi30yrdl45zbqn74lni3dk04qm33"))))
8586 (build-system python-build-system)
8587 (propagated-inputs
8588 `(("python-jinja2" ,python-jinja2)
8589 ("python-simplejson" ,python-simplejson)
8590 ("python-pyyaml" ,python-pyyaml)
8591 ("python-click" ,python-click)
8592 ("python-spectra" ,python-spectra)
8593 ("python-requests" ,python-requests)
8594 ("python-markdown" ,python-markdown)
8595 ("python-lzstring" ,python-lzstring)
8596 ("python-matplotlib" ,python-matplotlib)
8597 ("python-numpy" ,python-numpy)
8598 ;; MultQC checks for the presence of nose at runtime.
8599 ("python-nose" ,python-nose)))
8600 (home-page "http://multiqc.info")
8601 (synopsis "Aggregate bioinformatics analysis reports")
8602 (description
8603 "MultiQC is a tool to aggregate bioinformatics results across many
8604 samples into a single report. It contains modules for a large number of
8605 common bioinformatics tools.")
8606 (license license:gpl3)))
8607
8608 (define-public r-chipseq
8609 (package
8610 (name "r-chipseq")
8611 (version "1.26.0")
8612 (source
8613 (origin
8614 (method url-fetch)
8615 (uri (bioconductor-uri "chipseq" version))
8616 (sha256
8617 (base32
8618 "1hahyqiwb2ch8214xqpw0c3jpiwkmyf3dwz0xc87jx6cdnzipj3i"))))
8619 (build-system r-build-system)
8620 (propagated-inputs
8621 `(("r-biocgenerics" ,r-biocgenerics)
8622 ("r-genomicranges" ,r-genomicranges)
8623 ("r-iranges" ,r-iranges)
8624 ("r-s4vectors" ,r-s4vectors)
8625 ("r-shortread" ,r-shortread)))
8626 (home-page "http://bioconductor.org/packages/chipseq")
8627 (synopsis "Package for analyzing ChIPseq data")
8628 (description
8629 "This package provides tools for processing short read data from ChIPseq
8630 experiments.")
8631 (license license:artistic2.0)))
8632
8633 (define-public r-copyhelper
8634 (package
8635 (name "r-copyhelper")
8636 (version "1.6.0")
8637 (source
8638 (origin
8639 (method url-fetch)
8640 (uri (string-append "http://bioconductor.org/packages/release/"
8641 "data/experiment/src/contrib/CopyhelpeR_"
8642 version ".tar.gz"))
8643 (sha256
8644 (base32
8645 "0x7cyynjmxls9as2gg0iyp9x5fpalxmdjq914ss7i84i9zyk5bhq"))))
8646 (properties `((upstream-name . "CopyhelpeR")))
8647 (build-system r-build-system)
8648 (home-page "http://bioconductor.org/packages/CopyhelpeR/")
8649 (synopsis "Helper files for CopywriteR")
8650 (description
8651 "This package contains the helper files that are required to run the
8652 Bioconductor package CopywriteR. It contains pre-assembled 1kb bin GC-content
8653 and mappability files for the reference genomes hg18, hg19, hg38, mm9 and
8654 mm10. In addition, it contains a blacklist filter to remove regions that
8655 display copy number variation. Files are stored as GRanges objects from the
8656 GenomicRanges Bioconductor package.")
8657 (license license:gpl2)))
8658
8659 (define-public r-copywriter
8660 (package
8661 (name "r-copywriter")
8662 (version "2.8.1")
8663 (source
8664 (origin
8665 (method url-fetch)
8666 (uri (bioconductor-uri "CopywriteR" version))
8667 (sha256
8668 (base32
8669 "0xgqnq5v5213b3nzvlmjysjb7w1bc0iblqpmzbjqn7n0ib0qyhbm"))))
8670 (properties `((upstream-name . "CopywriteR")))
8671 (build-system r-build-system)
8672 (propagated-inputs
8673 `(("r-biocparallel" ,r-biocparallel)
8674 ("r-chipseq" ,r-chipseq)
8675 ("r-copyhelper" ,r-copyhelper)
8676 ("r-data-table" ,r-data-table)
8677 ("r-dnacopy" ,r-dnacopy)
8678 ("r-futile-logger" ,r-futile-logger)
8679 ("r-genomeinfodb" ,r-genomeinfodb)
8680 ("r-genomicalignments" ,r-genomicalignments)
8681 ("r-genomicranges" ,r-genomicranges)
8682 ("r-gtools" ,r-gtools)
8683 ("r-iranges" ,r-iranges)
8684 ("r-matrixstats" ,r-matrixstats)
8685 ("r-rsamtools" ,r-rsamtools)
8686 ("r-s4vectors" ,r-s4vectors)))
8687 (home-page "https://github.com/PeeperLab/CopywriteR")
8688 (synopsis "Copy number information from targeted sequencing")
8689 (description
8690 "CopywriteR extracts DNA copy number information from targeted sequencing
8691 by utilizing off-target reads. It allows for extracting uniformly distributed
8692 copy number information, can be used without reference, and can be applied to
8693 sequencing data obtained from various techniques including chromatin
8694 immunoprecipitation and target enrichment on small gene panels. Thereby,
8695 CopywriteR constitutes a widely applicable alternative to available copy
8696 number detection tools.")
8697 (license license:gpl2)))
8698
8699 (define-public r-methylkit
8700 (package
8701 (name "r-methylkit")
8702 (version "1.2.0")
8703 (source (origin
8704 (method url-fetch)
8705 (uri (bioconductor-uri "methylKit" version))
8706 (sha256
8707 (base32
8708 "02acdjf6jl0c1glymin84pdna4farn4vv0gb6107d9iqz3y3gkmm"))))
8709 (properties `((upstream-name . "methylKit")))
8710 (build-system r-build-system)
8711 (propagated-inputs
8712 `(("r-data-table" ,r-data-table)
8713 ("r-emdbook" ,r-emdbook)
8714 ("r-fastseg" ,r-fastseg)
8715 ("r-genomeinfodb" ,r-genomeinfodb)
8716 ("r-genomicranges" ,r-genomicranges)
8717 ("r-gtools" ,r-gtools)
8718 ("r-iranges" ,r-iranges)
8719 ("r-kernsmooth" ,r-kernsmooth)
8720 ("r-limma" ,r-limma)
8721 ("r-mclust" ,r-mclust)
8722 ("r-qvalue" ,r-qvalue)
8723 ("r-r-utils" ,r-r-utils)
8724 ("r-rcpp" ,r-rcpp)
8725 ("r-rhtslib" ,r-rhtslib)
8726 ("r-rsamtools" ,r-rsamtools)
8727 ("r-rtracklayer" ,r-rtracklayer)
8728 ("r-s4vectors" ,r-s4vectors)
8729 ("r-zlibbioc" ,r-zlibbioc)))
8730 (inputs
8731 `(("zlib" ,zlib)))
8732 (home-page "http://code.google.com/p/methylkit/")
8733 (synopsis
8734 "DNA methylation analysis from high-throughput bisulfite sequencing results")
8735 (description
8736 "MethylKit is an R package for DNA methylation analysis and annotation
8737 from high-throughput bisulfite sequencing. The package is designed to deal
8738 with sequencing data from @dfn{Reduced representation bisulfite
8739 sequencing} (RRBS) and its variants, but also target-capture methods and whole
8740 genome bisulfite sequencing. It also has functions to analyze base-pair
8741 resolution 5hmC data from experimental protocols such as oxBS-Seq and
8742 TAB-Seq.")
8743 (license license:artistic2.0)))
8744
8745 (define-public r-sva
8746 (package
8747 (name "r-sva")
8748 (version "3.24.4")
8749 (source
8750 (origin
8751 (method url-fetch)
8752 (uri (bioconductor-uri "sva" version))
8753 (sha256
8754 (base32
8755 "0wcway4ai9im81xnrzb1vij2iidq5pw24qhjfgacmhxvx3dzhbsc"))))
8756 (build-system r-build-system)
8757 (propagated-inputs
8758 `(("r-genefilter" ,r-genefilter)
8759 ("r-mgcv" ,r-mgcv)
8760 ("r-biocparallel" ,r-biocparallel)
8761 ("r-matrixstats" ,r-matrixstats)
8762 ("r-limma" ,r-limma)))
8763 (home-page "http://bioconductor.org/packages/sva")
8764 (synopsis "Surrogate variable analysis")
8765 (description
8766 "This package contains functions for removing batch effects and other
8767 unwanted variation in high-throughput experiment. It also contains functions
8768 for identifying and building surrogate variables for high-dimensional data
8769 sets. Surrogate variables are covariates constructed directly from
8770 high-dimensional data like gene expression/RNA sequencing/methylation/brain
8771 imaging data that can be used in subsequent analyses to adjust for unknown,
8772 unmodeled, or latent sources of noise.")
8773 (license license:artistic2.0)))
8774
8775 (define-public r-seqminer
8776 (package
8777 (name "r-seqminer")
8778 (version "6.0")
8779 (source
8780 (origin
8781 (method url-fetch)
8782 (uri (cran-uri "seqminer" version))
8783 (sha256
8784 (base32
8785 "057j1l6dip35l1aivilapl2zv9db677b3di2pb3sfgq2sxg0ps3l"))))
8786 (build-system r-build-system)
8787 (inputs
8788 `(("zlib" ,zlib)))
8789 (home-page "http://seqminer.genomic.codes")
8790 (synopsis "Read nucleotide sequence data (VCF, BCF, and METAL formats)")
8791 (description
8792 "This package provides tools to integrate nucleotide sequencing
8793 data (variant call format, e.g. VCF or BCF) or meta-analysis results in R.")
8794 ;; Any version of the GPL is acceptable
8795 (license (list license:gpl2+ license:gpl3+))))
8796
8797 (define-public r-raremetals2
8798 (package
8799 (name "r-raremetals2")
8800 (version "0.1")
8801 (source
8802 (origin
8803 (method url-fetch)
8804 (uri (string-append "http://genome.sph.umich.edu/w/images/"
8805 "b/b7/RareMETALS2_" version ".tar.gz"))
8806 (sha256
8807 (base32
8808 "0z5ljcgvnm06ja9lm85a3cniq7slxcy37aqqkxrdidr79an5fs4s"))))
8809 (properties `((upstream-name . "RareMETALS2")))
8810 (build-system r-build-system)
8811 (propagated-inputs
8812 `(("r-seqminer" ,r-seqminer)
8813 ("r-mvtnorm" ,r-mvtnorm)
8814 ("r-mass" ,r-mass)
8815 ("r-compquadform" ,r-compquadform)
8816 ("r-getopt" ,r-getopt)))
8817 (home-page "http://genome.sph.umich.edu/wiki/RareMETALS2")
8818 (synopsis "Analyze gene-level association tests for binary trait")
8819 (description
8820 "The R package rareMETALS2 is an extension of the R package rareMETALS.
8821 It was designed to meta-analyze gene-level association tests for binary trait.
8822 While rareMETALS offers a near-complete solution for meta-analysis of
8823 gene-level tests for quantitative trait, it does not offer the optimal
8824 solution for binary trait. The package rareMETALS2 offers improved features
8825 for analyzing gene-level association tests in meta-analyses for binary
8826 trait.")
8827 (license license:gpl3)))
8828
8829 (define-public r-maldiquant
8830 (package
8831 (name "r-maldiquant")
8832 (version "1.16.2")
8833 (source
8834 (origin
8835 (method url-fetch)
8836 (uri (cran-uri "MALDIquant" version))
8837 (sha256
8838 (base32
8839 "0z5srzsfgsgi4bssr4chls4ry6d18y2g9143znqmraylppwrrqzr"))))
8840 (properties `((upstream-name . "MALDIquant")))
8841 (build-system r-build-system)
8842 (home-page "http://cran.r-project.org/web/packages/MALDIquant")
8843 (synopsis "Quantitative analysis of mass spectrometry data")
8844 (description
8845 "This package provides a complete analysis pipeline for matrix-assisted
8846 laser desorption/ionization-time-of-flight (MALDI-TOF) and other
8847 two-dimensional mass spectrometry data. In addition to commonly used plotting
8848 and processing methods it includes distinctive features, namely baseline
8849 subtraction methods such as morphological filters (TopHat) or the
8850 statistics-sensitive non-linear iterative peak-clipping algorithm (SNIP), peak
8851 alignment using warping functions, handling of replicated measurements as well
8852 as allowing spectra with different resolutions.")
8853 (license license:gpl3+)))
8854
8855 (define-public r-protgenerics
8856 (package
8857 (name "r-protgenerics")
8858 (version "1.8.0")
8859 (source
8860 (origin
8861 (method url-fetch)
8862 (uri (bioconductor-uri "ProtGenerics" version))
8863 (sha256
8864 (base32
8865 "08idb3rvxn4fl7rd66jasyqz47cb76dbc3968r1g26jr2ci3w1pl"))))
8866 (properties `((upstream-name . "ProtGenerics")))
8867 (build-system r-build-system)
8868 (home-page "https://github.com/lgatto/ProtGenerics")
8869 (synopsis "S4 generic functions for proteomics infrastructure")
8870 (description
8871 "This package provides S4 generic functions needed by Bioconductor
8872 proteomics packages.")
8873 (license license:artistic2.0)))
8874
8875 (define-public r-mzr
8876 (package
8877 (name "r-mzr")
8878 (version "2.10.0")
8879 (source
8880 (origin
8881 (method url-fetch)
8882 (uri (bioconductor-uri "mzR" version))
8883 (sha256
8884 (base32
8885 "1zir46h320n2vbrky6q3m8l221f3wdjlfsnx4ak9xca5min24xm7"))))
8886 (properties `((upstream-name . "mzR")))
8887 (build-system r-build-system)
8888 (inputs
8889 `(("boost" ,boost)
8890 ("netcdf" ,netcdf)))
8891 (propagated-inputs
8892 `(("r-biobase" ,r-biobase)
8893 ("r-biocgenerics" ,r-biocgenerics)
8894 ("r-protgenerics" ,r-protgenerics)
8895 ("r-rcpp" ,r-rcpp)
8896 ("r-zlibbioc" ,r-zlibbioc)))
8897 (home-page "https://github.com/sneumann/mzR/")
8898 (synopsis "Parser for mass spectrometry data files")
8899 (description
8900 "The mzR package provides a unified API to the common file formats and
8901 parsers available for mass spectrometry data. It comes with a wrapper for the
8902 ISB random access parser for mass spectrometry mzXML, mzData and mzML files.
8903 The package contains the original code written by the ISB, and a subset of the
8904 proteowizard library for mzML and mzIdentML. The netCDF reading code has
8905 previously been used in XCMS.")
8906 (license license:artistic2.0)))
8907
8908 (define-public r-affyio
8909 (package
8910 (name "r-affyio")
8911 (version "1.46.0")
8912 (source
8913 (origin
8914 (method url-fetch)
8915 (uri (bioconductor-uri "affyio" version))
8916 (sha256
8917 (base32
8918 "13w6al9296q916w0w6ngbsk25b21ahla1b6n40fcqhbvhyfii6sj"))))
8919 (build-system r-build-system)
8920 (propagated-inputs
8921 `(("r-zlibbioc" ,r-zlibbioc)))
8922 (inputs
8923 `(("zlib" ,zlib)))
8924 (home-page "https://github.com/bmbolstad/affyio")
8925 (synopsis "Tools for parsing Affymetrix data files")
8926 (description
8927 "This package provides routines for parsing Affymetrix data files based
8928 upon file format information. The primary focus is on accessing the CEL and
8929 CDF file formats.")
8930 (license license:lgpl2.0+)))
8931
8932 (define-public r-affy
8933 (package
8934 (name "r-affy")
8935 (version "1.54.0")
8936 (source
8937 (origin
8938 (method url-fetch)
8939 (uri (bioconductor-uri "affy" version))
8940 (sha256
8941 (base32
8942 "0azwg2qxzgflr1rjvbdln5i5rbcr9gs36kqlacd9cwl1szb9ad3m"))))
8943 (build-system r-build-system)
8944 (propagated-inputs
8945 `(("r-affyio" ,r-affyio)
8946 ("r-biobase" ,r-biobase)
8947 ("r-biocgenerics" ,r-biocgenerics)
8948 ("r-biocinstaller" ,r-biocinstaller)
8949 ("r-preprocesscore" ,r-preprocesscore)
8950 ("r-zlibbioc" ,r-zlibbioc)))
8951 (home-page "http://bioconductor.org/packages/affy")
8952 (synopsis "Methods for affymetrix oligonucleotide arrays")
8953 (description
8954 "This package contains functions for exploratory oligonucleotide array
8955 analysis.")
8956 (license license:lgpl2.0+)))
8957
8958 (define-public r-vsn
8959 (package
8960 (name "r-vsn")
8961 (version "3.44.0")
8962 (source
8963 (origin
8964 (method url-fetch)
8965 (uri (bioconductor-uri "vsn" version))
8966 (sha256
8967 (base32
8968 "0qhg3a4sc62pfdxcpvmk831rk138xh4zx4f1s39jhxpqqhmr7jvk"))))
8969 (build-system r-build-system)
8970 (propagated-inputs
8971 `(("r-affy" ,r-affy)
8972 ("r-biobase" ,r-biobase)
8973 ("r-ggplot2" ,r-ggplot2)
8974 ("r-hexbin" ,r-hexbin)
8975 ("r-lattice" ,r-lattice)
8976 ("r-limma" ,r-limma)))
8977 (home-page "http://bioconductor.org/packages/release/bioc/html/vsn.html")
8978 (synopsis "Variance stabilization and calibration for microarray data")
8979 (description
8980 "The package implements a method for normalising microarray intensities,
8981 and works for single- and multiple-color arrays. It can also be used for data
8982 from other technologies, as long as they have similar format. The method uses
8983 a robust variant of the maximum-likelihood estimator for an
8984 additive-multiplicative error model and affine calibration. The model
8985 incorporates data calibration step (a.k.a. normalization), a model for the
8986 dependence of the variance on the mean intensity and a variance stabilizing
8987 data transformation. Differences between transformed intensities are
8988 analogous to \"normalized log-ratios\". However, in contrast to the latter,
8989 their variance is independent of the mean, and they are usually more sensitive
8990 and specific in detecting differential transcription.")
8991 (license license:artistic2.0)))
8992
8993 (define-public r-mzid
8994 (package
8995 (name "r-mzid")
8996 (version "1.14.0")
8997 (source
8998 (origin
8999 (method url-fetch)
9000 (uri (bioconductor-uri "mzID" version))
9001 (sha256
9002 (base32
9003 "11xnild02jz24vbsfy92lb7jlqqwnrswg66a7r4rsw8d2ibrbk33"))))
9004 (properties `((upstream-name . "mzID")))
9005 (build-system r-build-system)
9006 (propagated-inputs
9007 `(("r-doparallel" ,r-doparallel)
9008 ("r-foreach" ,r-foreach)
9009 ("r-iterators" ,r-iterators)
9010 ("r-plyr" ,r-plyr)
9011 ("r-protgenerics" ,r-protgenerics)
9012 ("r-rcpp" ,r-rcpp)
9013 ("r-xml" ,r-xml)))
9014 (home-page "http://bioconductor.org/packages/mzID")
9015 (synopsis "Parser for mzIdentML files")
9016 (description
9017 "This package provides a parser for mzIdentML files implemented using the
9018 XML package. The parser tries to be general and able to handle all types of
9019 mzIdentML files with the drawback of having less pretty output than a vendor
9020 specific parser.")
9021 (license license:gpl2+)))
9022
9023 (define-public r-pcamethods
9024 (package
9025 (name "r-pcamethods")
9026 (version "1.68.0")
9027 (source
9028 (origin
9029 (method url-fetch)
9030 (uri (bioconductor-uri "pcaMethods" version))
9031 (sha256
9032 (base32
9033 "0c4lphqyzj577ws4s172391cgv00s5nhy152zp18k2k4diyhq6n0"))))
9034 (properties `((upstream-name . "pcaMethods")))
9035 (build-system r-build-system)
9036 (propagated-inputs
9037 `(("r-biobase" ,r-biobase)
9038 ("r-biocgenerics" ,r-biocgenerics)
9039 ("r-mass" ,r-mass)
9040 ("r-rcpp" ,r-rcpp)))
9041 (home-page "https://github.com/hredestig/pcamethods")
9042 (synopsis "Collection of PCA methods")
9043 (description
9044 "This package provides Bayesian PCA, Probabilistic PCA, Nipals PCA,
9045 Inverse Non-Linear PCA and the conventional SVD PCA. A cluster based method
9046 for missing value estimation is included for comparison. BPCA, PPCA and
9047 NipalsPCA may be used to perform PCA on incomplete data as well as for
9048 accurate missing value estimation. A set of methods for printing and plotting
9049 the results is also provided. All PCA methods make use of the same data
9050 structure (pcaRes) to provide a common interface to the PCA results.")
9051 (license license:gpl3+)))
9052
9053 (define-public r-msnbase
9054 (package
9055 (name "r-msnbase")
9056 (version "2.2.0")
9057 (source
9058 (origin
9059 (method url-fetch)
9060 (uri (bioconductor-uri "MSnbase" version))
9061 (sha256
9062 (base32
9063 "1n9bbdlp8d8bx2mqby0c4yylz1yil42scbkxqgyrfr9s5sn6dqff"))))
9064 (properties `((upstream-name . "MSnbase")))
9065 (build-system r-build-system)
9066 (propagated-inputs
9067 `(("r-affy" ,r-affy)
9068 ("r-biobase" ,r-biobase)
9069 ("r-biocgenerics" ,r-biocgenerics)
9070 ("r-biocparallel" ,r-biocparallel)
9071 ("r-digest" ,r-digest)
9072 ("r-ggplot2" ,r-ggplot2)
9073 ("r-impute" ,r-impute)
9074 ("r-iranges" ,r-iranges)
9075 ("r-maldiquant" ,r-maldiquant)
9076 ("r-mzid" ,r-mzid)
9077 ("r-mzr" ,r-mzr)
9078 ("r-pcamethods" ,r-pcamethods)
9079 ("r-plyr" ,r-plyr)
9080 ("r-preprocesscore" ,r-preprocesscore)
9081 ("r-protgenerics" ,r-protgenerics)
9082 ("r-rcpp" ,r-rcpp)
9083 ("r-reshape2" ,r-reshape2)
9084 ("r-s4vectors" ,r-s4vectors)
9085 ("r-vsn" ,r-vsn)
9086 ("r-xml" ,r-xml)))
9087 (home-page "https://github.com/lgatto/MSnbase")
9088 (synopsis "Base functions and classes for MS-based proteomics")
9089 (description
9090 "This package provides basic plotting, data manipulation and processing
9091 of mass spectrometry based proteomics data.")
9092 (license license:artistic2.0)))
9093
9094 (define-public r-msnid
9095 (package
9096 (name "r-msnid")
9097 (version "1.10.0")
9098 (source
9099 (origin
9100 (method url-fetch)
9101 (uri (bioconductor-uri "MSnID" version))
9102 (sha256
9103 (base32
9104 "0pjwargi5lif8q53fd43ql67p3yk9w10jychafd9qgbaw5k3f68k"))))
9105 (properties `((upstream-name . "MSnID")))
9106 (build-system r-build-system)
9107 (propagated-inputs
9108 `(("r-biobase" ,r-biobase)
9109 ("r-data-table" ,r-data-table)
9110 ("r-doparallel" ,r-doparallel)
9111 ("r-dplyr" ,r-dplyr)
9112 ("r-foreach" ,r-foreach)
9113 ("r-iterators" ,r-iterators)
9114 ("r-msnbase" ,r-msnbase)
9115 ("r-mzid" ,r-mzid)
9116 ("r-mzr" ,r-mzr)
9117 ("r-protgenerics" ,r-protgenerics)
9118 ("r-r-cache" ,r-r-cache)
9119 ("r-rcpp" ,r-rcpp)
9120 ("r-reshape2" ,r-reshape2)))
9121 (home-page "http://bioconductor.org/packages/MSnID")
9122 (synopsis "Utilities for LC-MSn proteomics identifications")
9123 (description
9124 "This package extracts @dfn{tandem mass spectrometry} (MS/MS) ID data
9125 from mzIdentML (leveraging the mzID package) or text files. After collating
9126 the search results from multiple datasets it assesses their identification
9127 quality and optimize filtering criteria to achieve the maximum number of
9128 identifications while not exceeding a specified false discovery rate. It also
9129 contains a number of utilities to explore the MS/MS results and assess missed
9130 and irregular enzymatic cleavages, mass measurement accuracy, etc.")
9131 (license license:artistic2.0)))
9132
9133 (define-public r-seurat
9134 ;; Source releases are only made for new x.0 versions. All newer versions
9135 ;; are only released as pre-built binaries. At the time of this writing the
9136 ;; latest binary release is 1.4.0.12, which is equivalent to this commit.
9137 (let ((commit "fccb77d1452c35ee47e47ebf8e87bddb59f3b08d")
9138 (revision "1"))
9139 (package
9140 (name "r-seurat")
9141 (version (string-append "1.4.0.12-" revision "." (string-take commit 7)))
9142 (source (origin
9143 (method git-fetch)
9144 (uri (git-reference
9145 (url "https://github.com/satijalab/seurat")
9146 (commit commit)))
9147 (file-name (string-append name "-" version "-checkout"))
9148 (sha256
9149 (base32
9150 "101wq3aqrdmbfi3lqmq4iivk9iwbf10d4z216ss25hf7n9091cyl"))
9151 ;; Delete pre-built jar.
9152 (snippet
9153 '(begin (delete-file "inst/java/ModularityOptimizer.jar")
9154 #t))))
9155 (build-system r-build-system)
9156 (arguments
9157 `(#:phases
9158 (modify-phases %standard-phases
9159 (add-after 'unpack 'build-jar
9160 (lambda* (#:key inputs #:allow-other-keys)
9161 (let ((classesdir "tmp-classes"))
9162 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
9163 (mkdir classesdir)
9164 (and (zero? (apply system* `("javac" "-d" ,classesdir
9165 ,@(find-files "java" "\\.java$"))))
9166 (zero? (system* "jar"
9167 "-cf" "inst/java/ModularityOptimizer.jar"
9168 "-C" classesdir ".")))))))))
9169 (native-inputs
9170 `(("jdk" ,icedtea "jdk")))
9171 (propagated-inputs
9172 `(("r-ape" ,r-ape)
9173 ("r-caret" ,r-caret)
9174 ("r-cowplot" ,r-cowplot)
9175 ("r-dplyr" ,r-dplyr)
9176 ("r-fastica" ,r-fastica)
9177 ("r-fnn" ,r-fnn)
9178 ("r-fpc" ,r-fpc)
9179 ("r-gdata" ,r-gdata)
9180 ("r-ggplot2" ,r-ggplot2)
9181 ("r-gplots" ,r-gplots)
9182 ("r-gridextra" ,r-gridextra)
9183 ("r-igraph" ,r-igraph)
9184 ("r-irlba" ,r-irlba)
9185 ("r-lars" ,r-lars)
9186 ("r-mixtools" ,r-mixtools)
9187 ("r-pbapply" ,r-pbapply)
9188 ("r-plyr" ,r-plyr)
9189 ("r-ranger" ,r-ranger)
9190 ("r-rcolorbrewer" ,r-rcolorbrewer)
9191 ("r-rcpp" ,r-rcpp)
9192 ("r-rcppeigen" ,r-rcppeigen)
9193 ("r-rcppprogress" ,r-rcppprogress)
9194 ("r-reshape2" ,r-reshape2)
9195 ("r-rocr" ,r-rocr)
9196 ("r-rtsne" ,r-rtsne)
9197 ("r-stringr" ,r-stringr)
9198 ("r-tclust" ,r-tclust)
9199 ("r-tsne" ,r-tsne)
9200 ("r-vgam" ,r-vgam)))
9201 (home-page "http://www.satijalab.org/seurat")
9202 (synopsis "Seurat is an R toolkit for single cell genomics")
9203 (description
9204 "This package is an R package designed for QC, analysis, and
9205 exploration of single cell RNA-seq data. It easily enables widely-used
9206 analytical techniques, including the identification of highly variable genes,
9207 dimensionality reduction; PCA, ICA, t-SNE, standard unsupervised clustering
9208 algorithms; density clustering, hierarchical clustering, k-means, and the
9209 discovery of differentially expressed genes and markers.")
9210 (license license:gpl3))))
9211
9212 (define-public r-aroma-light
9213 (package
9214 (name "r-aroma-light")
9215 (version "3.6.0")
9216 (source
9217 (origin
9218 (method url-fetch)
9219 (uri (bioconductor-uri "aroma.light" version))
9220 (sha256
9221 (base32
9222 "10snykmmx36qaymyf5s1n1km8hsscyzpykcpf0mzsrcv8ml9rp8a"))))
9223 (properties `((upstream-name . "aroma.light")))
9224 (build-system r-build-system)
9225 (propagated-inputs
9226 `(("r-matrixstats" ,r-matrixstats)
9227 ("r-r-methodss3" ,r-r-methodss3)
9228 ("r-r-oo" ,r-r-oo)
9229 ("r-r-utils" ,r-r-utils)))
9230 (home-page "https://github.com/HenrikBengtsson/aroma.light")
9231 (synopsis "Methods for normalization and visualization of microarray data")
9232 (description
9233 "This package provides methods for microarray analysis that take basic
9234 data types such as matrices and lists of vectors. These methods can be used
9235 standalone, be utilized in other packages, or be wrapped up in higher-level
9236 classes.")
9237 (license license:gpl2+)))
9238
9239 (define-public r-deseq
9240 (package
9241 (name "r-deseq")
9242 (version "1.28.0")
9243 (source
9244 (origin
9245 (method url-fetch)
9246 (uri (bioconductor-uri "DESeq" version))
9247 (sha256
9248 (base32
9249 "0j3dgcxd64m9qknmlcbdzvg4xhp981xd6nbwsvnqjfn6yypslgyw"))))
9250 (properties `((upstream-name . "DESeq")))
9251 (build-system r-build-system)
9252 (propagated-inputs
9253 `(("r-biobase" ,r-biobase)
9254 ("r-biocgenerics" ,r-biocgenerics)
9255 ("r-genefilter" ,r-genefilter)
9256 ("r-geneplotter" ,r-geneplotter)
9257 ("r-lattice" ,r-lattice)
9258 ("r-locfit" ,r-locfit)
9259 ("r-mass" ,r-mass)
9260 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9261 (home-page "http://www-huber.embl.de/users/anders/DESeq")
9262 (synopsis "Differential gene expression analysis")
9263 (description
9264 "This package provides tools for estimating variance-mean dependence in
9265 count data from high-throughput genetic sequencing assays and for testing for
9266 differential expression based on a model using the negative binomial
9267 distribution.")
9268 (license license:gpl3+)))
9269
9270 (define-public r-edaseq
9271 (package
9272 (name "r-edaseq")
9273 (version "2.10.0")
9274 (source
9275 (origin
9276 (method url-fetch)
9277 (uri (bioconductor-uri "EDASeq" version))
9278 (sha256
9279 (base32
9280 "0f25dfc8hdii9fjm3bf89vy9jkxv23sa62fkcga5b4gkipwrvm9a"))))
9281 (properties `((upstream-name . "EDASeq")))
9282 (build-system r-build-system)
9283 (propagated-inputs
9284 `(("r-annotationdbi" ,r-annotationdbi)
9285 ("r-aroma-light" ,r-aroma-light)
9286 ("r-biobase" ,r-biobase)
9287 ("r-biocgenerics" ,r-biocgenerics)
9288 ("r-biomart" ,r-biomart)
9289 ("r-biostrings" ,r-biostrings)
9290 ("r-deseq" ,r-deseq)
9291 ("r-genomicfeatures" ,r-genomicfeatures)
9292 ("r-genomicranges" ,r-genomicranges)
9293 ("r-iranges" ,r-iranges)
9294 ("r-rsamtools" ,r-rsamtools)
9295 ("r-shortread" ,r-shortread)))
9296 (home-page "https://github.com/drisso/EDASeq")
9297 (synopsis "Exploratory data analysis and normalization for RNA-Seq")
9298 (description
9299 "This package provides support for numerical and graphical summaries of
9300 RNA-Seq genomic read data. Provided within-lane normalization procedures to
9301 adjust for GC-content effect (or other gene-level effects) on read counts:
9302 loess robust local regression, global-scaling, and full-quantile
9303 normalization. Between-lane normalization procedures to adjust for
9304 distributional differences between lanes (e.g., sequencing depth):
9305 global-scaling and full-quantile normalization.")
9306 (license license:artistic2.0)))
9307
9308 (define-public r-interactivedisplaybase
9309 (package
9310 (name "r-interactivedisplaybase")
9311 (version "1.14.0")
9312 (source
9313 (origin
9314 (method url-fetch)
9315 (uri (bioconductor-uri "interactiveDisplayBase" version))
9316 (sha256
9317 (base32
9318 "12f6ap4bl3h2iwwhg8i3r9a7yyd28d8i5lb3fj1vnfvjs762r7r7"))))
9319 (properties
9320 `((upstream-name . "interactiveDisplayBase")))
9321 (build-system r-build-system)
9322 (propagated-inputs
9323 `(("r-biocgenerics" ,r-biocgenerics)
9324 ("r-shiny" ,r-shiny)))
9325 (home-page "http://bioconductor.org/packages/interactiveDisplayBase")
9326 (synopsis "Base package for web displays of Bioconductor objects")
9327 (description
9328 "This package contains the basic methods needed to generate interactive
9329 Shiny-based display methods for Bioconductor objects.")
9330 (license license:artistic2.0)))
9331
9332 (define-public r-annotationhub
9333 (package
9334 (name "r-annotationhub")
9335 (version "2.8.2")
9336 (source
9337 (origin
9338 (method url-fetch)
9339 (uri (bioconductor-uri "AnnotationHub" version))
9340 (sha256
9341 (base32
9342 "1nh5si3j1nv37jcg4260582ayjg18851np47cskrm54prnvhwd9r"))))
9343 (properties `((upstream-name . "AnnotationHub")))
9344 (build-system r-build-system)
9345 (propagated-inputs
9346 `(("r-annotationdbi" ,r-annotationdbi)
9347 ("r-biocgenerics" ,r-biocgenerics)
9348 ("r-biocinstaller" ,r-biocinstaller)
9349 ("r-httr" ,r-httr)
9350 ("r-interactivedisplaybase" ,r-interactivedisplaybase)
9351 ("r-rsqlite" ,r-rsqlite)
9352 ("r-s4vectors" ,r-s4vectors)
9353 ("r-yaml" ,r-yaml)))
9354 (home-page "http://bioconductor.org/packages/AnnotationHub")
9355 (synopsis "Client to access AnnotationHub resources")
9356 (description
9357 "This package provides a client for the Bioconductor AnnotationHub web
9358 resource. The AnnotationHub web resource provides a central location where
9359 genomic files (e.g. VCF, bed, wig) and other resources from standard
9360 locations (e.g. UCSC, Ensembl) can be discovered. The resource includes
9361 metadata about each resource, e.g., a textual description, tags, and date of
9362 modification. The client creates and manages a local cache of files retrieved
9363 by the user, helping with quick and reproducible access.")
9364 (license license:artistic2.0)))
9365
9366 (define-public r-fastseg
9367 (package
9368 (name "r-fastseg")
9369 (version "1.22.0")
9370 (source
9371 (origin
9372 (method url-fetch)
9373 (uri (bioconductor-uri "fastseg" version))
9374 (sha256
9375 (base32
9376 "083wiz03q9mynwchs9frlpp6c84dncri5ncibx6h82p228cpja6h"))))
9377 (build-system r-build-system)
9378 (propagated-inputs
9379 `(("r-biobase" ,r-biobase)
9380 ("r-biocgenerics" ,r-biocgenerics)
9381 ("r-genomicranges" ,r-genomicranges)
9382 ("r-iranges" ,r-iranges)
9383 ("r-s4vectors" ,r-s4vectors)))
9384 (home-page "http://www.bioinf.jku.at/software/fastseg/index.html")
9385 (synopsis "Fast segmentation algorithm for genetic sequencing data")
9386 (description
9387 "Fastseg implements a very fast and efficient segmentation algorithm.
9388 It can segment data from DNA microarrays and data from next generation
9389 sequencing for example to detect copy number segments. Further it can segment
9390 data from RNA microarrays like tiling arrays to identify transcripts. Most
9391 generally, it can segment data given as a matrix or as a vector. Various data
9392 formats can be used as input to fastseg like expression set objects for
9393 microarrays or GRanges for sequencing data.")
9394 (license license:lgpl2.0+)))
9395
9396 (define-public r-qvalue
9397 (package
9398 (name "r-qvalue")
9399 (version "2.8.0")
9400 (source
9401 (origin
9402 (method url-fetch)
9403 (uri (bioconductor-uri "qvalue" version))
9404 (sha256
9405 (base32
9406 "1dxdwa767a9r8n61r272ypi09qblcdfpzzwkmri74y5mbp1r3y4i"))))
9407 (build-system r-build-system)
9408 (propagated-inputs
9409 `(("r-ggplot2" ,r-ggplot2)
9410 ("r-reshape2" ,r-reshape2)))
9411 (home-page "http://github.com/jdstorey/qvalue")
9412 (synopsis "Q-value estimation for false discovery rate control")
9413 (description
9414 "This package takes a list of p-values resulting from the simultaneous
9415 testing of many hypotheses and estimates their q-values and local @dfn{false
9416 discovery rate} (FDR) values. The q-value of a test measures the proportion
9417 of false positives incurred when that particular test is called significant.
9418 The local FDR measures the posterior probability the null hypothesis is true
9419 given the test's p-value. Various plots are automatically generated, allowing
9420 one to make sensible significance cut-offs. The software can be applied to
9421 problems in genomics, brain imaging, astrophysics, and data mining.")
9422 ;; Any version of the LGPL.
9423 (license license:lgpl3+)))
9424
9425 (define htslib-for-sambamba
9426 (let ((commit "2f3c3ea7b301f9b45737a793c0b2dcf0240e5ee5"))
9427 (package
9428 (inherit htslib)
9429 (name "htslib-for-sambamba")
9430 (version (string-append "1.3.1-1." (string-take commit 9)))
9431 (source
9432 (origin
9433 (method git-fetch)
9434 (uri (git-reference
9435 (url "https://github.com/lomereiter/htslib.git")
9436 (commit commit)))
9437 (file-name (string-append "htslib-" version "-checkout"))
9438 (sha256
9439 (base32
9440 "0g38g8s3npr0gjm9fahlbhiskyfws9l5i0x1ml3rakzj7az5l9c9"))))
9441 (arguments
9442 (substitute-keyword-arguments (package-arguments htslib)
9443 ((#:phases phases)
9444 `(modify-phases ,phases
9445 (add-before 'configure 'bootstrap
9446 (lambda _
9447 (zero? (system* "autoreconf" "-vif"))))))))
9448 (native-inputs
9449 `(("autoconf" ,autoconf)
9450 ("automake" ,automake)
9451 ,@(package-native-inputs htslib))))))
9452
9453 (define-public sambamba
9454 (package
9455 (name "sambamba")
9456 (version "0.6.5")
9457 (source
9458 (origin
9459 (method url-fetch)
9460 (uri (string-append "https://github.com/lomereiter/sambamba/"
9461 "archive/v" version ".tar.gz"))
9462 (file-name (string-append name "-" version ".tar.gz"))
9463 (sha256
9464 (base32
9465 "17076gijd65a3f07zns2gvbgahiz5lriwsa6dq353ss3jl85d8vy"))))
9466 (build-system gnu-build-system)
9467 (arguments
9468 `(#:tests? #f ; there is no test target
9469 #:make-flags
9470 '("D_COMPILER=ldc2"
9471 ;; Override "--compiler" flag only.
9472 "D_FLAGS=--compiler=ldc2 -IBioD -g -d"
9473 "sambamba-ldmd2-64")
9474 #:phases
9475 (modify-phases %standard-phases
9476 (delete 'configure)
9477 (add-after 'unpack 'place-biod
9478 (lambda* (#:key inputs #:allow-other-keys)
9479 (copy-recursively (assoc-ref inputs "biod") "BioD")
9480 #t))
9481 (add-after 'unpack 'unbundle-prerequisites
9482 (lambda _
9483 (substitute* "Makefile"
9484 ((" htslib-static lz4-static") ""))
9485 #t))
9486 (replace 'install
9487 (lambda* (#:key outputs #:allow-other-keys)
9488 (let* ((out (assoc-ref outputs "out"))
9489 (bin (string-append out "/bin")))
9490 (mkdir-p bin)
9491 (install-file "build/sambamba" bin)
9492 #t))))))
9493 (native-inputs
9494 `(("ldc" ,ldc)
9495 ("rdmd" ,rdmd)
9496 ("biod"
9497 ,(let ((commit "1248586b54af4bd4dfb28ebfebfc6bf012e7a587"))
9498 (origin
9499 (method git-fetch)
9500 (uri (git-reference
9501 (url "https://github.com/biod/BioD.git")
9502 (commit commit)))
9503 (file-name (string-append "biod-"
9504 (string-take commit 9)
9505 "-checkout"))
9506 (sha256
9507 (base32
9508 "1m8hi1n7x0ri4l6s9i0x6jg4z4v94xrfdzp7mbizdipfag0m17g3")))))))
9509 (inputs
9510 `(("lz4" ,lz4)
9511 ("htslib" ,htslib-for-sambamba)))
9512 (home-page "http://lomereiter.github.io/sambamba")
9513 (synopsis "Tools for working with SAM/BAM data")
9514 (description "Sambamba is a high performance modern robust and
9515 fast tool (and library), written in the D programming language, for
9516 working with SAM and BAM files. Current parallelised functionality is
9517 an important subset of samtools functionality, including view, index,
9518 sort, markdup, and depth.")
9519 (license license:gpl2+)))
9520
9521 (define-public ritornello
9522 (package
9523 (name "ritornello")
9524 (version "1.0.0")
9525 (source (origin
9526 (method url-fetch)
9527 (uri (string-append "https://github.com/KlugerLab/"
9528 "Ritornello/archive/v"
9529 version ".tar.gz"))
9530 (file-name (string-append name "-" version ".tar.gz"))
9531 (sha256
9532 (base32
9533 "02nik86gq9ljjriv6pamwlmqnfky3ads1fpklx6mc3hx6k40pg38"))))
9534 (build-system gnu-build-system)
9535 (arguments
9536 `(#:tests? #f ; there are no tests
9537 #:phases
9538 (modify-phases %standard-phases
9539 (add-after 'unpack 'patch-samtools-references
9540 (lambda* (#:key inputs #:allow-other-keys)
9541 (substitute* '("src/SamStream.h"
9542 "src/BufferedGenomeReader.h")
9543 (("<sam.h>") "<samtools/sam.h>"))
9544 #t))
9545 (delete 'configure)
9546 (replace 'install
9547 (lambda* (#:key inputs outputs #:allow-other-keys)
9548 (let* ((out (assoc-ref outputs "out"))
9549 (bin (string-append out "/bin/")))
9550 (mkdir-p bin)
9551 (install-file "bin/Ritornello" bin)
9552 #t))))))
9553 (inputs
9554 `(("samtools" ,samtools-0.1)
9555 ("fftw" ,fftw)
9556 ("boost" ,boost)
9557 ("zlib" ,zlib)))
9558 (home-page "https://github.com/KlugerLab/Ritornello")
9559 (synopsis "Control-free peak caller for ChIP-seq data")
9560 (description "Ritornello is a ChIP-seq peak calling algorithm based on
9561 signal processing that can accurately call binding events without the need to
9562 do a pair total DNA input or IgG control sample. It has been tested for use
9563 with narrow binding events such as transcription factor ChIP-seq.")
9564 (license license:gpl3+)))
9565
9566 (define-public trim-galore
9567 (package
9568 (name "trim-galore")
9569 (version "0.4.2")
9570 (source
9571 (origin
9572 (method url-fetch)
9573 (uri (string-append "http://www.bioinformatics.babraham.ac.uk/"
9574 "projects/trim_galore/trim_galore_v"
9575 version ".zip"))
9576 (sha256
9577 (base32
9578 "0b9qdxi4521gsrjvbhgky8g7kry9b5nx3byzaxkgxz7p4k8bn1mn"))))
9579 (build-system gnu-build-system)
9580 (arguments
9581 `(#:tests? #f ; no tests
9582 #:phases
9583 (modify-phases %standard-phases
9584 ;; The archive contains plain files.
9585 (replace 'unpack
9586 (lambda* (#:key source #:allow-other-keys)
9587 (zero? (system* "unzip" source))))
9588 (delete 'configure)
9589 (delete 'build)
9590 (add-after 'unpack 'hardcode-tool-references
9591 (lambda* (#:key inputs #:allow-other-keys)
9592 (substitute* "trim_galore"
9593 (("\\$path_to_cutadapt = 'cutadapt'")
9594 (string-append "$path_to_cutadapt = '"
9595 (assoc-ref inputs "cutadapt")
9596 "/bin/cutadapt'"))
9597 (("\\| gzip")
9598 (string-append "| "
9599 (assoc-ref inputs "gzip")
9600 "/bin/gzip"))
9601 (("\"gunzip")
9602 (string-append "\""
9603 (assoc-ref inputs "gzip")
9604 "/bin/gunzip")))
9605 #t))
9606 (replace 'install
9607 (lambda* (#:key outputs #:allow-other-keys)
9608 (let ((bin (string-append (assoc-ref outputs "out")
9609 "/bin")))
9610 (mkdir-p bin)
9611 (install-file "trim_galore" bin)
9612 #t))))))
9613 (inputs
9614 `(("gzip" ,gzip)
9615 ("perl" ,perl)
9616 ("cutadapt" ,cutadapt)))
9617 (native-inputs
9618 `(("unzip" ,unzip)))
9619 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/trim_galore/")
9620 (synopsis "Wrapper around Cutadapt and FastQC")
9621 (description "Trim Galore! is a wrapper script to automate quality and
9622 adapter trimming as well as quality control, with some added functionality to
9623 remove biased methylation positions for RRBS sequence files.")
9624 (license license:gpl3+)))
9625
9626 (define-public gess
9627 (package
9628 (name "gess")
9629 (version "1.0")
9630 (source (origin
9631 (method url-fetch)
9632 (uri (string-append "http://compbio.uthscsa.edu/"
9633 "GESS_Web/files/"
9634 "gess-" version ".src.tar.gz"))
9635 (sha256
9636 (base32
9637 "0hyk403kxscclzfs24pvdgiv0wm03kjcziqdrp5w46cb049gz0d7"))))
9638 (build-system gnu-build-system)
9639 (arguments
9640 `(#:tests? #f ; no tests
9641 #:phases
9642 (modify-phases %standard-phases
9643 (delete 'configure)
9644 (delete 'build)
9645 (replace 'install
9646 (lambda* (#:key inputs outputs #:allow-other-keys)
9647 (let* ((python (assoc-ref inputs "python"))
9648 (out (assoc-ref outputs "out"))
9649 (bin (string-append out "/bin/"))
9650 (target (string-append
9651 out "/lib/python2.7/site-packages/gess/")))
9652 (mkdir-p target)
9653 (copy-recursively "." target)
9654 ;; Make GESS.py executable
9655 (chmod (string-append target "GESS.py") #o555)
9656 ;; Add Python shebang to the top and make Matplotlib
9657 ;; usable.
9658 (substitute* (string-append target "GESS.py")
9659 (("\"\"\"Description:" line)
9660 (string-append "#!" (which "python") "
9661 import matplotlib
9662 matplotlib.use('Agg')
9663 " line)))
9664 ;; Make sure GESS has all modules in its path
9665 (wrap-program (string-append target "GESS.py")
9666 `("PYTHONPATH" ":" prefix (,target ,(getenv "PYTHONPATH"))))
9667 (mkdir-p bin)
9668 (symlink (string-append target "GESS.py")
9669 (string-append bin "GESS.py"))
9670 #t))))))
9671 (inputs
9672 `(("python" ,python-2)
9673 ("python2-pysam" ,python2-pysam)
9674 ("python2-scipy" ,python2-scipy)
9675 ("python2-numpy" ,python2-numpy)
9676 ("python2-networkx" ,python2-networkx)
9677 ("python2-biopython" ,python2-biopython)))
9678 (home-page "http://compbio.uthscsa.edu/GESS_Web/")
9679 (synopsis "Detect exon-skipping events from raw RNA-seq data")
9680 (description
9681 "GESS is an implementation of a novel computational method to detect de
9682 novo exon-skipping events directly from raw RNA-seq data without the prior
9683 knowledge of gene annotation information. GESS stands for the graph-based
9684 exon-skipping scanner detection scheme.")
9685 (license license:bsd-3)))
9686
9687 (define-public phylip
9688 (package
9689 (name "phylip")
9690 (version "3.696")
9691 (source
9692 (origin
9693 (method url-fetch)
9694 (uri (string-append "http://evolution.gs.washington.edu/phylip/"
9695 "download/phylip-" version ".tar.gz"))
9696 (sha256
9697 (base32
9698 "01jar1rayhr2gba2pgbw49m56rc5z4p5wn3ds0m188hrlln4a2nd"))))
9699 (build-system gnu-build-system)
9700 (arguments
9701 `(#:tests? #f ; no check target
9702 #:make-flags (list "-f" "Makefile.unx" "install")
9703 #:parallel-build? #f ; not supported
9704 #:phases
9705 (modify-phases %standard-phases
9706 (add-after 'unpack 'enter-dir
9707 (lambda _ (chdir "src") #t))
9708 (delete 'configure)
9709 (replace 'install
9710 (lambda* (#:key inputs outputs #:allow-other-keys)
9711 (let ((target (string-append (assoc-ref outputs "out")
9712 "/bin")))
9713 (mkdir-p target)
9714 (for-each (lambda (file)
9715 (install-file file target))
9716 (find-files "../exe" ".*")))
9717 #t)))))
9718 (home-page "http://evolution.genetics.washington.edu/phylip/")
9719 (synopsis "Tools for inferring phylogenies")
9720 (description "PHYLIP (the PHYLogeny Inference Package) is a package of
9721 programs for inferring phylogenies (evolutionary trees).")
9722 (license license:bsd-2)))
9723
9724 (define-public imp
9725 (package
9726 (name "imp")
9727 (version "2.6.2")
9728 (source
9729 (origin
9730 (method url-fetch)
9731 (uri (string-append "https://integrativemodeling.org/"
9732 version "/download/imp-" version ".tar.gz"))
9733 (sha256
9734 (base32
9735 "0lxqx7vh79d771svr611dkilp6sn30qrbw8zvscbrm37v38d2j6h"))))
9736 (build-system cmake-build-system)
9737 (arguments
9738 `(;; FIXME: Some tests fail because they produce warnings, others fail
9739 ;; because the PYTHONPATH does not include the modeller's directory.
9740 #:tests? #f
9741 ;; Do not place libraries in an architecture-specific directory.
9742 #:configure-flags
9743 (list "-DCMAKE_INSTALL_LIBDIR=lib")))
9744 (inputs
9745 `(("boost" ,boost)
9746 ("gsl" ,gsl)
9747 ("swig" ,swig)
9748 ("hdf5" ,hdf5)
9749 ("fftw" ,fftw)
9750 ("python" ,python-2)))
9751 (propagated-inputs
9752 `(("python2-numpy" ,python2-numpy)
9753 ("python2-scipy" ,python2-scipy)
9754 ("python2-pandas" ,python2-pandas)
9755 ("python2-scikit-learn" ,python2-scikit-learn)
9756 ("python2-networkx" ,python2-networkx)))
9757 (home-page "https://integrativemodeling.org")
9758 (synopsis "Integrative modeling platform")
9759 (description "IMP's broad goal is to contribute to a comprehensive
9760 structural characterization of biomolecules ranging in size and complexity
9761 from small peptides to large macromolecular assemblies, by integrating data
9762 from diverse biochemical and biophysical experiments. IMP provides a C++ and
9763 Python toolbox for solving complex modeling problems, and a number of
9764 applications for tackling some common problems in a user-friendly way.")
9765 ;; IMP is largely available under the GNU Lesser GPL; see the file
9766 ;; COPYING.LGPL for the full text of this license. Some IMP modules are
9767 ;; available under the GNU GPL (see the file COPYING.GPL).
9768 (license (list license:lgpl2.1+
9769 license:gpl3+))))
9770
9771 (define-public tadbit
9772 (package
9773 (name "tadbit")
9774 (version "0.2")
9775 (source (origin
9776 (method url-fetch)
9777 (uri (string-append "https://github.com/3DGenomes/TADbit/"
9778 "archive/v" version ".tar.gz"))
9779 (file-name (string-append name "-" version ".tar.gz"))
9780 (sha256
9781 (base32
9782 "1cnfqrl4685zar4nnw94j94nhvl2h29jm448nadqi1h05z6fdk4f"))))
9783 (build-system python-build-system)
9784 (arguments
9785 `(;; Tests are included and must be run after installation, but
9786 ;; they are incomplete and thus cannot be run.
9787 #:tests? #f
9788 #:python ,python-2
9789 #:phases
9790 (modify-phases %standard-phases
9791 (add-after 'unpack 'fix-problems-with-setup.py
9792 (lambda* (#:key outputs #:allow-other-keys)
9793 ;; setup.py opens these files for writing
9794 (chmod "_pytadbit/_version.py" #o664)
9795 (chmod "README.rst" #o664)
9796
9797 ;; Don't attempt to install the bash completions to
9798 ;; the home directory.
9799 (rename-file "extras/.bash_completion"
9800 "extras/tadbit")
9801 (substitute* "setup.py"
9802 (("\\(path.expanduser\\('~'\\)")
9803 (string-append "(\""
9804 (assoc-ref outputs "out")
9805 "/etc/bash_completion.d\""))
9806 (("extras/\\.bash_completion")
9807 "extras/tadbit"))
9808 #t)))))
9809 (inputs
9810 ;; TODO: add Chimera for visualization
9811 `(("imp" ,imp)
9812 ("mcl" ,mcl)
9813 ("python2-scipy" ,python2-scipy)
9814 ("python2-numpy" ,python2-numpy)
9815 ("python2-matplotlib" ,python2-matplotlib)
9816 ("python2-pysam" ,python2-pysam)))
9817 (home-page "http://3dgenomes.github.io/TADbit/")
9818 (synopsis "Analyze, model, and explore 3C-based data")
9819 (description
9820 "TADbit is a complete Python library to deal with all steps to analyze,
9821 model, and explore 3C-based data. With TADbit the user can map FASTQ files to
9822 obtain raw interaction binned matrices (Hi-C like matrices), normalize and
9823 correct interaction matrices, identify and compare the so-called
9824 @dfn{Topologically Associating Domains} (TADs), build 3D models from the
9825 interaction matrices, and finally, extract structural properties from the
9826 models. TADbit is complemented by TADkit for visualizing 3D models.")
9827 (license license:gpl3+)))
9828
9829 (define-public kentutils
9830 (package
9831 (name "kentutils")
9832 ;; 302.1.0 is out, but the only difference is the inclusion of
9833 ;; pre-built binaries.
9834 (version "302.0.0")
9835 (source
9836 (origin
9837 (method url-fetch)
9838 (uri (string-append "https://github.com/ENCODE-DCC/kentUtils/"
9839 "archive/v" version ".tar.gz"))
9840 (file-name (string-append name "-" version ".tar.gz"))
9841 (sha256
9842 (base32
9843 "134aja3k1cj32kbk1nnw0q9gxjb2krr15q6sga8qldzvc0585rmm"))
9844 (modules '((guix build utils)
9845 (srfi srfi-26)
9846 (ice-9 ftw)))
9847 (snippet
9848 '(begin
9849 ;; Only the contents of the specified directories are free
9850 ;; for all uses, so we remove the rest. "hg/autoSql" and
9851 ;; "hg/autoXml" are nominally free, but they depend on a
9852 ;; library that is built from the sources in "hg/lib",
9853 ;; which is nonfree.
9854 (let ((free (list "." ".."
9855 "utils" "lib" "inc" "tagStorm"
9856 "parasol" "htslib"))
9857 (directory? (lambda (file)
9858 (eq? 'directory (stat:type (stat file))))))
9859 (for-each (lambda (file)
9860 (and (directory? file)
9861 (delete-file-recursively file)))
9862 (map (cut string-append "src/" <>)
9863 (scandir "src"
9864 (lambda (file)
9865 (not (member file free)))))))
9866 ;; Only make the utils target, not the userApps target,
9867 ;; because that requires libraries we won't build.
9868 (substitute* "Makefile"
9869 ((" userApps") " utils"))
9870 ;; Only build libraries that are free.
9871 (substitute* "src/makefile"
9872 (("DIRS =.*") "DIRS =\n")
9873 (("cd jkOwnLib.*") "")
9874 ((" hgLib") "")
9875 (("cd hg.*") ""))
9876 (substitute* "src/utils/makefile"
9877 ;; These tools depend on "jkhgap.a", which is part of the
9878 ;; nonfree "src/hg/lib" directory.
9879 (("raSqlQuery") "")
9880 (("pslLiftSubrangeBlat") "")
9881
9882 ;; Do not build UCSC tools, which may require nonfree
9883 ;; components.
9884 (("ALL_APPS =.*") "ALL_APPS = $(UTILS_APPLIST)\n"))
9885 #t))))
9886 (build-system gnu-build-system)
9887 (arguments
9888 `( ;; There is no global test target and the test target for
9889 ;; individual tools depends on input files that are not
9890 ;; included.
9891 #:tests? #f
9892 #:phases
9893 (modify-phases %standard-phases
9894 (add-after 'unpack 'fix-paths
9895 (lambda _
9896 (substitute* "Makefile"
9897 (("/bin/echo") (which "echo")))
9898 #t))
9899 (add-after 'unpack 'prepare-samtabix
9900 (lambda* (#:key inputs #:allow-other-keys)
9901 (copy-recursively (assoc-ref inputs "samtabix")
9902 "samtabix")
9903 #t))
9904 (delete 'configure)
9905 (replace 'install
9906 (lambda* (#:key outputs #:allow-other-keys)
9907 (let ((bin (string-append (assoc-ref outputs "out")
9908 "/bin")))
9909 (copy-recursively "bin" bin))
9910 #t)))))
9911 (native-inputs
9912 `(("samtabix"
9913 ,(origin
9914 (method git-fetch)
9915 (uri (git-reference
9916 (url "http://genome-source.cse.ucsc.edu/samtabix.git")
9917 (commit "10fd107909c1ac4d679299908be4262a012965ba")))
9918 (sha256
9919 (base32
9920 "0c1nj64l42v395sa84n7az43xiap4i6f9n9dfz4058aqiwkhkmma"))))))
9921 (inputs
9922 `(("zlib" ,zlib)
9923 ("tcsh" ,tcsh)
9924 ("perl" ,perl)
9925 ("libpng" ,libpng)
9926 ("mysql" ,mysql)
9927 ("openssl" ,openssl)))
9928 (home-page "http://genome.cse.ucsc.edu/index.html")
9929 (synopsis "Assorted bioinformatics utilities")
9930 (description "This package provides the kentUtils, a selection of
9931 bioinformatics utilities used in combination with the UCSC genome
9932 browser.")
9933 ;; Only a subset of the sources are released under a non-copyleft
9934 ;; free software license. All other sources are removed in a
9935 ;; snippet. See this bug report for an explanation of how the
9936 ;; license statements apply:
9937 ;; https://github.com/ENCODE-DCC/kentUtils/issues/12
9938 (license (license:non-copyleft
9939 "http://genome.ucsc.edu/license/"
9940 "The contents of this package are free for all uses."))))
9941
9942 (define-public f-seq
9943 (let ((commit "6ccded34cff38cf432deed8503648b4a66953f9b")
9944 (revision "1"))
9945 (package
9946 (name "f-seq")
9947 (version (string-append "1.1-" revision "." commit))
9948 (source (origin
9949 (method git-fetch)
9950 (uri (git-reference
9951 (url "https://github.com/aboyle/F-seq.git")
9952 (commit commit)))
9953 (file-name (string-append name "-" version))
9954 (sha256
9955 (base32
9956 "1nk33k0yajg2id4g59bc4szr58r2q6pdq42vgcw054m8ip9wv26h"))
9957 (modules '((guix build utils)))
9958 ;; Remove bundled Java library archives.
9959 (snippet
9960 '(begin
9961 (for-each delete-file (find-files "lib" ".*"))
9962 #t))))
9963 (build-system ant-build-system)
9964 (arguments
9965 `(#:tests? #f ; no tests included
9966 #:phases
9967 (modify-phases %standard-phases
9968 (replace 'install
9969 (lambda* (#:key outputs #:allow-other-keys)
9970 (let* ((target (assoc-ref outputs "out"))
9971 (doc (string-append target "/share/doc/f-seq/")))
9972 (mkdir-p target)
9973 (mkdir-p doc)
9974 (substitute* "bin/linux/fseq"
9975 (("java") (which "java")))
9976 (install-file "README.txt" doc)
9977 (install-file "bin/linux/fseq" (string-append target "/bin"))
9978 (install-file "build~/fseq.jar" (string-append target "/lib"))
9979 (copy-recursively "lib" (string-append target "/lib"))
9980 #t))))))
9981 (inputs
9982 `(("perl" ,perl)
9983 ("java-commons-cli" ,java-commons-cli)))
9984 (home-page "http://fureylab.web.unc.edu/software/fseq/")
9985 (synopsis "Feature density estimator for high-throughput sequence tags")
9986 (description
9987 "F-Seq is a software package that generates a continuous tag sequence
9988 density estimation allowing identification of biologically meaningful sites
9989 such as transcription factor binding sites (ChIP-seq) or regions of open
9990 chromatin (DNase-seq). Output can be displayed directly in the UCSC Genome
9991 Browser.")
9992 (license license:gpl3+))))
9993
9994 (define-public bismark
9995 (package
9996 (name "bismark")
9997 (version "0.16.3")
9998 (source
9999 (origin
10000 (method url-fetch)
10001 (uri (string-append "https://github.com/FelixKrueger/Bismark/"
10002 "archive/" version ".tar.gz"))
10003 (file-name (string-append name "-" version ".tar.gz"))
10004 (sha256
10005 (base32
10006 "1204i0pa02ll2jn5pnxypkclnskvv7a2nwh5nxhagmhxk9wfv9sq"))))
10007 (build-system perl-build-system)
10008 (arguments
10009 `(#:tests? #f ; there are no tests
10010 #:phases
10011 (modify-phases %standard-phases
10012 (delete 'configure)
10013 (delete 'build)
10014 (replace 'install
10015 (lambda* (#:key outputs #:allow-other-keys)
10016 (let ((bin (string-append (assoc-ref outputs "out")
10017 "/bin"))
10018 (docdir (string-append (assoc-ref outputs "out")
10019 "/share/doc/bismark"))
10020 (docs '("Bismark_User_Guide.pdf"
10021 "RELEASE_NOTES.txt"))
10022 (scripts '("bismark"
10023 "bismark_genome_preparation"
10024 "bismark_methylation_extractor"
10025 "bismark2bedGraph"
10026 "bismark2report"
10027 "coverage2cytosine"
10028 "deduplicate_bismark"
10029 "bismark_sitrep.tpl"
10030 "bam2nuc"
10031 "bismark2summary")))
10032 (mkdir-p docdir)
10033 (mkdir-p bin)
10034 (for-each (lambda (file) (install-file file bin))
10035 scripts)
10036 (for-each (lambda (file) (install-file file docdir))
10037 docs)
10038 #t))))))
10039 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/bismark/")
10040 (synopsis "Map bisulfite treated sequence reads and analyze methylation")
10041 (description "Bismark is a program to map bisulfite treated sequencing
10042 reads to a genome of interest and perform methylation calls in a single step.
10043 The output can be easily imported into a genome viewer, such as SeqMonk, and
10044 enables a researcher to analyse the methylation levels of their samples
10045 straight away. Its main features are:
10046
10047 @itemize
10048 @item Bisulfite mapping and methylation calling in one single step
10049 @item Supports single-end and paired-end read alignments
10050 @item Supports ungapped and gapped alignments
10051 @item Alignment seed length, number of mismatches etc are adjustable
10052 @item Output discriminates between cytosine methylation in CpG, CHG
10053 and CHH context
10054 @end itemize\n")
10055 (license license:gpl3+)))