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