gnu: seek: Declare a source file-name.
[jackhill/guix/guix.git] / gnu / packages / bioinformatics.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015, 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
3 ;;; Copyright © 2015, 2016, 2017, 2018 Ben Woodcroft <donttrustben@gmail.com>
4 ;;; Copyright © 2015, 2016 Pjotr Prins <pjotr.guix@thebird.nl>
5 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
6 ;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
7 ;;; Copyright © 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
8 ;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
9 ;;; Copyright © 2016, 2018 Raoul Bonnal <ilpuccio.febo@gmail.com>
10 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
11 ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
12 ;;;
13 ;;; This file is part of GNU Guix.
14 ;;;
15 ;;; GNU Guix is free software; you can redistribute it and/or modify it
16 ;;; under the terms of the GNU General Public License as published by
17 ;;; the Free Software Foundation; either version 3 of the License, or (at
18 ;;; your option) any later version.
19 ;;;
20 ;;; GNU Guix is distributed in the hope that it will be useful, but
21 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
22 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 ;;; GNU General Public License for more details.
24 ;;;
25 ;;; You should have received a copy of the GNU General Public License
26 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
27
28 (define-module (gnu packages bioinformatics)
29 #:use-module ((guix licenses) #:prefix license:)
30 #:use-module (guix packages)
31 #:use-module (guix utils)
32 #:use-module (guix download)
33 #:use-module (guix git-download)
34 #:use-module (guix hg-download)
35 #:use-module (guix build-system ant)
36 #:use-module (guix build-system gnu)
37 #:use-module (guix build-system cmake)
38 #:use-module (guix build-system ocaml)
39 #:use-module (guix build-system perl)
40 #:use-module (guix build-system python)
41 #:use-module (guix build-system r)
42 #:use-module (guix build-system ruby)
43 #:use-module (guix build-system scons)
44 #:use-module (guix build-system trivial)
45 #:use-module (gnu packages)
46 #:use-module (gnu packages autotools)
47 #:use-module (gnu packages algebra)
48 #:use-module (gnu packages base)
49 #:use-module (gnu packages bash)
50 #:use-module (gnu packages bison)
51 #:use-module (gnu packages boost)
52 #:use-module (gnu packages check)
53 #:use-module (gnu packages compression)
54 #:use-module (gnu packages cpio)
55 #:use-module (gnu packages cran)
56 #:use-module (gnu packages curl)
57 #:use-module (gnu packages documentation)
58 #:use-module (gnu packages databases)
59 #:use-module (gnu packages datastructures)
60 #:use-module (gnu packages file)
61 #:use-module (gnu packages flex)
62 #:use-module (gnu packages gawk)
63 #:use-module (gnu packages gcc)
64 #:use-module (gnu packages gd)
65 #:use-module (gnu packages gtk)
66 #:use-module (gnu packages glib)
67 #:use-module (gnu packages graph)
68 #:use-module (gnu packages groff)
69 #:use-module (gnu packages guile)
70 #:use-module (gnu packages haskell)
71 #:use-module (gnu packages image)
72 #:use-module (gnu packages imagemagick)
73 #:use-module (gnu packages java)
74 #:use-module (gnu packages jemalloc)
75 #:use-module (gnu packages ldc)
76 #:use-module (gnu packages linux)
77 #:use-module (gnu packages logging)
78 #:use-module (gnu packages machine-learning)
79 #:use-module (gnu packages man)
80 #:use-module (gnu packages maths)
81 #:use-module (gnu packages mpi)
82 #:use-module (gnu packages ncurses)
83 #:use-module (gnu packages ocaml)
84 #:use-module (gnu packages pcre)
85 #:use-module (gnu packages parallel)
86 #:use-module (gnu packages pdf)
87 #:use-module (gnu packages perl)
88 #:use-module (gnu packages perl-check)
89 #:use-module (gnu packages pkg-config)
90 #:use-module (gnu packages popt)
91 #:use-module (gnu packages protobuf)
92 #:use-module (gnu packages python)
93 #:use-module (gnu packages python-web)
94 #:use-module (gnu packages readline)
95 #:use-module (gnu packages ruby)
96 #:use-module (gnu packages serialization)
97 #:use-module (gnu packages shells)
98 #:use-module (gnu packages statistics)
99 #:use-module (gnu packages swig)
100 #:use-module (gnu packages tbb)
101 #:use-module (gnu packages tex)
102 #:use-module (gnu packages texinfo)
103 #:use-module (gnu packages textutils)
104 #:use-module (gnu packages time)
105 #:use-module (gnu packages tls)
106 #:use-module (gnu packages vim)
107 #:use-module (gnu packages web)
108 #:use-module (gnu packages xml)
109 #:use-module (gnu packages xorg)
110 #:use-module (srfi srfi-1)
111 #:use-module (ice-9 match))
112
113 (define-public r-ape
114 (package
115 (name "r-ape")
116 (version "5.0")
117 (source
118 (origin
119 (method url-fetch)
120 (uri (cran-uri "ape" version))
121 (sha256
122 (base32
123 "0q59pmxawz498cb9mv5m49lhiwxib8ak94yyydz7qg8b6lpd4bn3"))))
124 (build-system r-build-system)
125 (propagated-inputs
126 `(("r-lattice" ,r-lattice)
127 ("r-nlme" ,r-nlme)
128 ("r-rcpp" ,r-rcpp)))
129 (home-page "http://ape-package.ird.fr/")
130 (synopsis "Analyses of phylogenetics and evolution")
131 (description
132 "This package provides functions for reading, writing, plotting, and
133 manipulating phylogenetic trees, analyses of comparative data in a
134 phylogenetic framework, ancestral character analyses, analyses of
135 diversification and macroevolution, computing distances from DNA sequences,
136 and several other tools.")
137 (license license:gpl2+)))
138
139 (define-public aragorn
140 (package
141 (name "aragorn")
142 (version "1.2.38")
143 (source (origin
144 (method url-fetch)
145 (uri (string-append
146 "http://mbio-serv2.mbioekol.lu.se/ARAGORN/Downloads/aragorn"
147 version ".tgz"))
148 (sha256
149 (base32
150 "09i1rg716smlbnixfm7q1ml2mfpaa2fpn3hwjg625ysmfwwy712b"))))
151 (build-system gnu-build-system)
152 (arguments
153 `(#:tests? #f ; there are no tests
154 #:phases
155 (modify-phases %standard-phases
156 (delete 'configure)
157 (replace 'build
158 (lambda _
159 (zero? (system* "gcc"
160 "-O3"
161 "-ffast-math"
162 "-finline-functions"
163 "-o"
164 "aragorn"
165 (string-append "aragorn" ,version ".c")))))
166 (replace 'install
167 (lambda* (#:key outputs #:allow-other-keys)
168 (let* ((out (assoc-ref outputs "out"))
169 (bin (string-append out "/bin"))
170 (man (string-append out "/share/man/man1")))
171 (mkdir-p bin)
172 (install-file "aragorn" bin)
173 (mkdir-p man)
174 (install-file "aragorn.1" man))
175 #t)))))
176 (home-page "http://mbio-serv2.mbioekol.lu.se/ARAGORN")
177 (synopsis "Detect tRNA, mtRNA and tmRNA genes in nucleotide sequences")
178 (description
179 "Aragorn identifies transfer RNA, mitochondrial RNA and
180 transfer-messenger RNA from nucleotide sequences, based on homology to known
181 tRNA consensus sequences and RNA structure. It also outputs the secondary
182 structure of the predicted RNA.")
183 (license license:gpl2)))
184
185 (define-public bamm
186 (package
187 (name "bamm")
188 (version "1.7.3")
189 (source (origin
190 (method url-fetch)
191 ;; BamM is not available on pypi.
192 (uri (string-append
193 "https://github.com/Ecogenomics/BamM/archive/"
194 version ".tar.gz"))
195 (file-name (string-append name "-" version ".tar.gz"))
196 (sha256
197 (base32
198 "1f35yxp4pc8aadsvbpg6r4kg2jh4fkjci0iby4iyljm6980sac0s"))
199 (modules '((guix build utils)))
200 (snippet
201 `(begin
202 ;; Delete bundled htslib.
203 (delete-file-recursively "c/htslib-1.3.1")
204 #t))))
205 (build-system python-build-system)
206 (arguments
207 `(#:python ,python-2 ; BamM is Python 2 only.
208 ;; Do not use bundled libhts. Do use the bundled libcfu because it has
209 ;; been modified from its original form.
210 #:configure-flags
211 (let ((htslib (assoc-ref %build-inputs "htslib")))
212 (list "--with-libhts-lib" (string-append htslib "/lib")
213 "--with-libhts-inc" (string-append htslib "/include/htslib")))
214 #:phases
215 (modify-phases %standard-phases
216 (add-after 'unpack 'autogen
217 (lambda _
218 (with-directory-excursion "c"
219 (let ((sh (which "sh")))
220 ;; Use autogen so that 'configure' works.
221 (substitute* "autogen.sh" (("/bin/sh") sh))
222 (setenv "CONFIG_SHELL" sh)
223 (substitute* "configure" (("/bin/sh") sh))
224 (zero? (system* "./autogen.sh"))))))
225 (delete 'build)
226 ;; Run tests after installation so compilation only happens once.
227 (delete 'check)
228 (add-after 'install 'wrap-executable
229 (lambda* (#:key outputs #:allow-other-keys)
230 (let* ((out (assoc-ref outputs "out"))
231 (path (getenv "PATH")))
232 (wrap-program (string-append out "/bin/bamm")
233 `("PATH" ":" prefix (,path))))
234 #t))
235 (add-after 'wrap-executable 'post-install-check
236 (lambda* (#:key inputs outputs #:allow-other-keys)
237 (setenv "PATH"
238 (string-append (assoc-ref outputs "out")
239 "/bin:"
240 (getenv "PATH")))
241 (setenv "PYTHONPATH"
242 (string-append
243 (assoc-ref outputs "out")
244 "/lib/python"
245 (string-take (string-take-right
246 (assoc-ref inputs "python") 5) 3)
247 "/site-packages:"
248 (getenv "PYTHONPATH")))
249 ;; There are 2 errors printed, but they are safe to ignore:
250 ;; 1) [E::hts_open_format] fail to open file ...
251 ;; 2) samtools view: failed to open ...
252 (zero? (system* "nosetests")))))))
253 (native-inputs
254 `(("autoconf" ,autoconf)
255 ("automake" ,automake)
256 ("libtool" ,libtool)
257 ("zlib" ,zlib)
258 ("python-nose" ,python2-nose)
259 ("python-pysam" ,python2-pysam)))
260 (inputs
261 `(("htslib" ,htslib-1.3) ; At least one test fails on htslib-1.4+.
262 ("samtools" ,samtools)
263 ("bwa" ,bwa)
264 ("grep" ,grep)
265 ("sed" ,sed)
266 ("coreutils" ,coreutils)))
267 (propagated-inputs
268 `(("python-numpy" ,python2-numpy)))
269 (home-page "http://ecogenomics.github.io/BamM/")
270 (synopsis "Metagenomics-focused BAM file manipulator")
271 (description
272 "BamM is a C library, wrapped in python, to efficiently generate and
273 parse BAM files, specifically for the analysis of metagenomic data. For
274 instance, it implements several methods to assess contig-wise read coverage.")
275 (license license:lgpl3+)))
276
277 (define-public bamtools
278 (package
279 (name "bamtools")
280 (version "2.4.1")
281 (source (origin
282 (method url-fetch)
283 (uri (string-append
284 "https://github.com/pezmaster31/bamtools/archive/v"
285 version ".tar.gz"))
286 (file-name (string-append name "-" version ".tar.gz"))
287 (sha256
288 (base32
289 "0jr024kcrhjb82cm69i7p5fcg5375zlc1h3qh2n1v368hcd0qflk"))))
290 (build-system cmake-build-system)
291 (arguments
292 `(#:tests? #f ;no "check" target
293 #:phases
294 (modify-phases %standard-phases
295 (add-before
296 'configure 'set-ldflags
297 (lambda* (#:key outputs #:allow-other-keys)
298 (setenv "LDFLAGS"
299 (string-append
300 "-Wl,-rpath="
301 (assoc-ref outputs "out") "/lib/bamtools")))))))
302 (inputs `(("zlib" ,zlib)))
303 (home-page "https://github.com/pezmaster31/bamtools")
304 (synopsis "C++ API and command-line toolkit for working with BAM data")
305 (description
306 "BamTools provides both a C++ API and a command-line toolkit for handling
307 BAM files.")
308 (license license:expat)))
309
310 (define-public bcftools
311 (package
312 (name "bcftools")
313 (version "1.5")
314 (source (origin
315 (method url-fetch)
316 (uri (string-append
317 "https://github.com/samtools/bcftools/releases/download/"
318 version "/bcftools-" version ".tar.bz2"))
319 (sha256
320 (base32
321 "0093hkkvxmbwfaa7905s6185jymynvg42kq6sxv7fili11l5mxwz"))
322 (patches (search-patches "bcftools-regidx-unsigned-char.patch"))
323 (modules '((guix build utils)))
324 (snippet
325 ;; Delete bundled htslib.
326 '(delete-file-recursively "htslib-1.5"))))
327 (build-system gnu-build-system)
328 (arguments
329 `(#:test-target "test"
330 #:configure-flags (list "--with-htslib=system")
331 #:make-flags
332 (list
333 "USE_GPL=1"
334 "LIBS=-lgsl -lgslcblas"
335 (string-append "prefix=" (assoc-ref %outputs "out"))
336 (string-append "HTSDIR=" (assoc-ref %build-inputs "htslib") "/include")
337 (string-append "HTSLIB=" (assoc-ref %build-inputs "htslib") "/lib/libhts.so")
338 (string-append "BGZIP=" (assoc-ref %build-inputs "htslib") "/bin/bgzip")
339 (string-append "TABIX=" (assoc-ref %build-inputs "htslib") "/bin/tabix")
340 (string-append "PACKAGE_VERSION=" ,version))
341 #:phases
342 (modify-phases %standard-phases
343 (add-before 'check 'patch-tests
344 (lambda _
345 (substitute* "test/test.pl"
346 (("/bin/bash") (which "bash")))
347 #t)))))
348 (native-inputs
349 `(("htslib" ,htslib)
350 ("perl" ,perl)))
351 (inputs
352 `(("gsl" ,gsl)
353 ("zlib" ,zlib)))
354 (home-page "https://samtools.github.io/bcftools/")
355 (synopsis "Utilities for variant calling and manipulating VCFs and BCFs")
356 (description
357 "BCFtools is a set of utilities that manipulate variant calls in the
358 Variant Call Format (VCF) and its binary counterpart BCF. All commands work
359 transparently with both VCFs and BCFs, both uncompressed and BGZF-compressed.")
360 ;; The sources are dual MIT/GPL, but becomes GPL-only when USE_GPL=1.
361 (license (list license:gpl3+ license:expat))))
362
363 (define-public bedops
364 (package
365 (name "bedops")
366 (version "2.4.14")
367 (source (origin
368 (method url-fetch)
369 (uri (string-append "https://github.com/bedops/bedops/archive/v"
370 version ".tar.gz"))
371 (file-name (string-append name "-" version ".tar.gz"))
372 (sha256
373 (base32
374 "1kqbac547wyqma81cyky9n7mkgikjpsfd3nnmcm6hpqwanqgh10v"))))
375 (build-system gnu-build-system)
376 (arguments
377 '(#:tests? #f
378 #:make-flags (list (string-append "BINDIR=" %output "/bin"))
379 #:phases
380 (modify-phases %standard-phases
381 (add-after 'unpack 'unpack-tarballs
382 (lambda _
383 ;; FIXME: Bedops includes tarballs of minimally patched upstream
384 ;; libraries jansson, zlib, and bzip2. We cannot just use stock
385 ;; libraries because at least one of the libraries (zlib) is
386 ;; patched to add a C++ function definition (deflateInit2cpp).
387 ;; Until the Bedops developers offer a way to link against system
388 ;; libraries we have to build the in-tree copies of these three
389 ;; libraries.
390
391 ;; See upstream discussion:
392 ;; https://github.com/bedops/bedops/issues/124
393
394 ;; Unpack the tarballs to benefit from shebang patching.
395 (with-directory-excursion "third-party"
396 (and (zero? (system* "tar" "xvf" "jansson-2.6.tar.bz2"))
397 (zero? (system* "tar" "xvf" "zlib-1.2.7.tar.bz2"))
398 (zero? (system* "tar" "xvf" "bzip2-1.0.6.tar.bz2"))))
399 ;; Disable unpacking of tarballs in Makefile.
400 (substitute* "system.mk/Makefile.linux"
401 (("^\tbzcat .*") "\t@echo \"not unpacking\"\n")
402 (("\\./configure") "CONFIG_SHELL=bash ./configure"))
403 (substitute* "third-party/zlib-1.2.7/Makefile.in"
404 (("^SHELL=.*$") "SHELL=bash\n"))
405 #t))
406 (delete 'configure))))
407 (home-page "https://github.com/bedops/bedops")
408 (synopsis "Tools for high-performance genomic feature operations")
409 (description
410 "BEDOPS is a suite of tools to address common questions raised in genomic
411 studies---mostly with regard to overlap and proximity relationships between
412 data sets. It aims to be scalable and flexible, facilitating the efficient
413 and accurate analysis and management of large-scale genomic data.
414
415 BEDOPS provides tools that perform highly efficient and scalable Boolean and
416 other set operations, statistical calculations, archiving, conversion and
417 other management of genomic data of arbitrary scale. Tasks can be easily
418 split by chromosome for distributing whole-genome analyses across a
419 computational cluster.")
420 (license license:gpl2+)))
421
422 (define-public bedtools
423 (package
424 (name "bedtools")
425 (version "2.27.1")
426 (source (origin
427 (method url-fetch)
428 (uri (string-append "https://github.com/arq5x/bedtools2/releases/"
429 "download/v" version "/"
430 "bedtools-" version ".tar.gz"))
431 (sha256
432 (base32
433 "1ndg5yknrxl4djx8ddzgk12rrbiidfpmkkg5z3f95jzryfxarhn8"))))
434 (build-system gnu-build-system)
435 (arguments
436 '(#:test-target "test"
437 #:make-flags
438 (list (string-append "prefix=" (assoc-ref %outputs "out")))
439 #:phases
440 (modify-phases %standard-phases
441 (delete 'configure))))
442 (native-inputs `(("python" ,python-2)))
443 (inputs
444 `(("samtools" ,samtools)
445 ("zlib" ,zlib)))
446 (home-page "https://github.com/arq5x/bedtools2")
447 (synopsis "Tools for genome analysis and arithmetic")
448 (description
449 "Collectively, the bedtools utilities are a swiss-army knife of tools for
450 a wide-range of genomics analysis tasks. The most widely-used tools enable
451 genome arithmetic: that is, set theory on the genome. For example, bedtools
452 allows one to intersect, merge, count, complement, and shuffle genomic
453 intervals from multiple files in widely-used genomic file formats such as BAM,
454 BED, GFF/GTF, VCF.")
455 (license license:gpl2)))
456
457 ;; Later releases of bedtools produce files with more columns than
458 ;; what Ribotaper expects.
459 (define-public bedtools-2.18
460 (package (inherit bedtools)
461 (name "bedtools")
462 (version "2.18.0")
463 (source (origin
464 (method url-fetch)
465 (uri (string-append "https://github.com/arq5x/bedtools2/"
466 "archive/v" version ".tar.gz"))
467 (file-name (string-append name "-" version ".tar.gz"))
468 (sha256
469 (base32
470 "05vrnr8yp7swfagshzpgqmzk1blnwnq8pq5pckzi1m26w98d63vf"))))
471 (arguments
472 '(#:test-target "test"
473 #:phases
474 (modify-phases %standard-phases
475 (delete 'configure)
476 (replace 'install
477 (lambda* (#:key outputs #:allow-other-keys)
478 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
479 (for-each (lambda (file)
480 (install-file file bin))
481 (find-files "bin" ".*")))
482 #t)))))))
483
484 (define-public ribotaper
485 (package
486 (name "ribotaper")
487 (version "1.3.1")
488 (source (origin
489 (method url-fetch)
490 (uri (string-append "https://ohlerlab.mdc-berlin.de/"
491 "files/RiboTaper/RiboTaper_Version_"
492 version ".tar.gz"))
493 (sha256
494 (base32
495 "0ykjbps1y3z3085q94npw8i9x5gldc6shy8vlc08v76zljsm07hv"))))
496 (build-system gnu-build-system)
497 (arguments
498 `(#:phases
499 (modify-phases %standard-phases
500 (add-after 'install 'wrap-executables
501 (lambda* (#:key inputs outputs #:allow-other-keys)
502 (let* ((out (assoc-ref outputs "out")))
503 (for-each
504 (lambda (script)
505 (wrap-program (string-append out "/bin/" script)
506 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
507 '("create_annotations_files.bash"
508 "create_metaplots.bash"
509 "Ribotaper_ORF_find.sh"
510 "Ribotaper.sh"))))))))
511 (inputs
512 `(("bedtools" ,bedtools-2.18)
513 ("samtools" ,samtools-0.1)
514 ("r-minimal" ,r-minimal)
515 ("r-foreach" ,r-foreach)
516 ("r-xnomial" ,r-xnomial)
517 ("r-domc" ,r-domc)
518 ("r-multitaper" ,r-multitaper)
519 ("r-seqinr" ,r-seqinr)))
520 (home-page "https://ohlerlab.mdc-berlin.de/software/RiboTaper_126/")
521 (synopsis "Define translated ORFs using ribosome profiling data")
522 (description
523 "Ribotaper is a method for defining translated @dfn{open reading
524 frames} (ORFs) using ribosome profiling (ribo-seq) data. This package
525 provides the Ribotaper pipeline.")
526 (license license:gpl3+)))
527
528 (define-public ribodiff
529 (package
530 (name "ribodiff")
531 (version "0.2.2")
532 (source
533 (origin
534 (method url-fetch)
535 (uri (string-append "https://github.com/ratschlab/RiboDiff/"
536 "archive/v" version ".tar.gz"))
537 (file-name (string-append name "-" version ".tar.gz"))
538 (sha256
539 (base32
540 "0wpbwmfv05wdjxv7ikm664f7s7p7cqr8jnw99zrda0q67rl50aaj"))))
541 (build-system python-build-system)
542 (arguments
543 `(#:python ,python-2
544 #:phases
545 (modify-phases %standard-phases
546 ;; Generate an installable executable script wrapper.
547 (add-after 'unpack 'patch-setup.py
548 (lambda _
549 (substitute* "setup.py"
550 (("^(.*)packages=.*" line prefix)
551 (string-append line "\n"
552 prefix "scripts=['scripts/TE.py'],\n")))
553 #t)))))
554 (inputs
555 `(("python-numpy" ,python2-numpy)
556 ("python-matplotlib" ,python2-matplotlib)
557 ("python-scipy" ,python2-scipy)
558 ("python-statsmodels" ,python2-statsmodels)))
559 (native-inputs
560 `(("python-mock" ,python2-mock)
561 ("python-nose" ,python2-nose)))
562 (home-page "http://public.bmi.inf.ethz.ch/user/zhongy/RiboDiff/")
563 (synopsis "Detect translation efficiency changes from ribosome footprints")
564 (description "RiboDiff is a statistical tool that detects the protein
565 translational efficiency change from Ribo-Seq (ribosome footprinting) and
566 RNA-Seq data. It uses a generalized linear model to detect genes showing
567 difference in translational profile taking mRNA abundance into account. It
568 facilitates us to decipher the translational regulation that behave
569 independently with transcriptional regulation.")
570 (license license:gpl3+)))
571
572 (define-public bioawk
573 (package
574 (name "bioawk")
575 (version "1.0")
576 (source (origin
577 (method url-fetch)
578 (uri (string-append "https://github.com/lh3/bioawk/archive/v"
579 version ".tar.gz"))
580 (file-name (string-append name "-" version ".tar.gz"))
581 (sha256
582 (base32 "1daizxsk17ahi9n58fj8vpgwyhzrzh54bzqhanjanp88kgrz7gjw"))))
583 (build-system gnu-build-system)
584 (inputs
585 `(("zlib" ,zlib)))
586 (native-inputs
587 `(("bison" ,bison)))
588 (arguments
589 `(#:tests? #f ; There are no tests to run.
590 ;; Bison must generate files, before other targets can build.
591 #:parallel-build? #f
592 #:phases
593 (modify-phases %standard-phases
594 (delete 'configure) ; There is no configure phase.
595 (replace 'install
596 (lambda* (#:key outputs #:allow-other-keys)
597 (let* ((out (assoc-ref outputs "out"))
598 (bin (string-append out "/bin"))
599 (man (string-append out "/share/man/man1")))
600 (mkdir-p man)
601 (copy-file "awk.1" (string-append man "/bioawk.1"))
602 (install-file "bioawk" bin)))))))
603 (home-page "https://github.com/lh3/bioawk")
604 (synopsis "AWK with bioinformatics extensions")
605 (description "Bioawk is an extension to Brian Kernighan's awk, adding the
606 support of several common biological data formats, including optionally gzip'ed
607 BED, GFF, SAM, VCF, FASTA/Q and TAB-delimited formats with column names. It
608 also adds a few built-in functions and a command line option to use TAB as the
609 input/output delimiter. When the new functionality is not used, bioawk is
610 intended to behave exactly the same as the original BWK awk.")
611 (license license:x11)))
612
613 (define-public python2-pybedtools
614 (package
615 (name "python2-pybedtools")
616 (version "0.6.9")
617 (source (origin
618 (method url-fetch)
619 (uri (string-append
620 "https://pypi.python.org/packages/source/p/pybedtools/pybedtools-"
621 version ".tar.gz"))
622 (sha256
623 (base32
624 "1ldzdxw1p4y3g2ignmggsdypvqkcwqwzhdha4rbgpih048z5p4an"))))
625 (build-system python-build-system)
626 (arguments `(#:python ,python-2)) ; no Python 3 support
627 (inputs
628 `(("python-matplotlib" ,python2-matplotlib)))
629 (propagated-inputs
630 `(("bedtools" ,bedtools)
631 ("samtools" ,samtools)))
632 (native-inputs
633 `(("python-cython" ,python2-cython)
634 ("python-pyyaml" ,python2-pyyaml)
635 ("python-nose" ,python2-nose)))
636 (home-page "https://pythonhosted.org/pybedtools/")
637 (synopsis "Python wrapper for BEDtools programs")
638 (description
639 "pybedtools is a Python wrapper for Aaron Quinlan's BEDtools programs,
640 which are widely used for genomic interval manipulation or \"genome algebra\".
641 pybedtools extends BEDTools by offering feature-level manipulations from with
642 Python.")
643 (license license:gpl2+)))
644
645 (define-public python-biom-format
646 (package
647 (name "python-biom-format")
648 (version "2.1.6")
649 (source
650 (origin
651 (method url-fetch)
652 ;; Use GitHub as source because PyPI distribution does not contain
653 ;; test data: https://github.com/biocore/biom-format/issues/693
654 (uri (string-append "https://github.com/biocore/biom-format/archive/"
655 version ".tar.gz"))
656 (file-name (string-append name "-" version ".tar.gz"))
657 (sha256
658 (base32
659 "08cr7wpahk6zb31h4bs7jmzpvxcqv9s13xz40h6y2h656jvdvnpj"))))
660 (build-system python-build-system)
661 (propagated-inputs
662 `(("python-numpy" ,python-numpy)
663 ("python-scipy" ,python-scipy)
664 ("python-future" ,python-future)
665 ("python-click" ,python-click)
666 ("python-h5py" ,python-h5py)
667 ("python-pandas" ,python-pandas)))
668 (native-inputs
669 `(("python-nose" ,python-nose)))
670 (home-page "http://www.biom-format.org")
671 (synopsis "Biological Observation Matrix (BIOM) format utilities")
672 (description
673 "The BIOM file format is designed to be a general-use format for
674 representing counts of observations e.g. operational taxonomic units, KEGG
675 orthology groups or lipid types, in one or more biological samples
676 e.g. microbiome samples, genomes, metagenomes.")
677 (license license:bsd-3)
678 (properties `((python2-variant . ,(delay python2-biom-format))))))
679
680 (define-public python2-biom-format
681 (let ((base (package-with-python2 (strip-python2-variant python-biom-format))))
682 (package
683 (inherit base)
684 (arguments
685 `(#:phases
686 (modify-phases %standard-phases
687 ;; Do not require the unmaintained pyqi library.
688 (add-after 'unpack 'remove-pyqi
689 (lambda _
690 (substitute* "setup.py"
691 (("install_requires.append\\(\"pyqi\"\\)") "pass"))
692 #t)))
693 ,@(package-arguments base))))))
694
695 (define-public bioperl-minimal
696 (let* ((inputs `(("perl-module-build" ,perl-module-build)
697 ("perl-data-stag" ,perl-data-stag)
698 ("perl-libwww" ,perl-libwww)
699 ("perl-uri" ,perl-uri)))
700 (transitive-inputs
701 (map (compose package-name cadr)
702 (delete-duplicates
703 (concatenate
704 (map (compose package-transitive-target-inputs cadr) inputs))))))
705 (package
706 (name "bioperl-minimal")
707 (version "1.7.0")
708 (source
709 (origin
710 (method url-fetch)
711 (uri (string-append "https://github.com/bioperl/bioperl-live/"
712 "archive/release-"
713 (string-map (lambda (c)
714 (if (char=? c #\.)
715 #\- c)) version)
716 ".tar.gz"))
717 (sha256
718 (base32
719 "12phgpxwgkqflkwfb9dcqg7a31dpjlfhar8wcgv0aj5ln4akfz06"))))
720 (build-system perl-build-system)
721 (arguments
722 `(#:phases
723 (modify-phases %standard-phases
724 (add-after
725 'install 'wrap-programs
726 (lambda* (#:key outputs #:allow-other-keys)
727 ;; Make sure all executables in "bin" find the required Perl
728 ;; modules at runtime. As the PERL5LIB variable contains also
729 ;; the paths of native inputs, we pick the transitive target
730 ;; inputs from %build-inputs.
731 (let* ((out (assoc-ref outputs "out"))
732 (bin (string-append out "/bin/"))
733 (path (string-join
734 (cons (string-append out "/lib/perl5/site_perl")
735 (map (lambda (name)
736 (assoc-ref %build-inputs name))
737 ',transitive-inputs))
738 ":")))
739 (for-each (lambda (file)
740 (wrap-program file
741 `("PERL5LIB" ":" prefix (,path))))
742 (find-files bin "\\.pl$"))
743 #t))))))
744 (inputs inputs)
745 (native-inputs
746 `(("perl-test-most" ,perl-test-most)))
747 (home-page "http://search.cpan.org/dist/BioPerl")
748 (synopsis "Bioinformatics toolkit")
749 (description
750 "BioPerl is the product of a community effort to produce Perl code which
751 is useful in biology. Examples include Sequence objects, Alignment objects
752 and database searching objects. These objects not only do what they are
753 advertised to do in the documentation, but they also interact - Alignment
754 objects are made from the Sequence objects, Sequence objects have access to
755 Annotation and SeqFeature objects and databases, Blast objects can be
756 converted to Alignment objects, and so on. This means that the objects
757 provide a coordinated and extensible framework to do computational biology.")
758 (license license:perl-license))))
759
760 (define-public python-biopython
761 (package
762 (name "python-biopython")
763 (version "1.70")
764 (source (origin
765 (method url-fetch)
766 ;; use PyPi rather than biopython.org to ease updating
767 (uri (pypi-uri "biopython" version))
768 (sha256
769 (base32
770 "0nz4n9d2y2dg849gn1z0vjlkwcpzzkzy3fij7x94a6ixy2c54z2a"))))
771 (build-system python-build-system)
772 (arguments
773 `(#:phases
774 (modify-phases %standard-phases
775 (add-before 'check 'set-home
776 ;; Some tests require a home directory to be set.
777 (lambda _ (setenv "HOME" "/tmp") #t)))))
778 (propagated-inputs
779 `(("python-numpy" ,python-numpy)))
780 (home-page "http://biopython.org/")
781 (synopsis "Tools for biological computation in Python")
782 (description
783 "Biopython is a set of tools for biological computation including parsers
784 for bioinformatics files into Python data structures; interfaces to common
785 bioinformatics programs; a standard sequence class and tools for performing
786 common operations on them; code to perform data classification; code for
787 dealing with alignments; code making it easy to split up parallelizable tasks
788 into separate processes; and more.")
789 (license (license:non-copyleft "http://www.biopython.org/DIST/LICENSE"))))
790
791 (define-public python2-biopython
792 (package-with-python2 python-biopython))
793
794 (define-public bpp-core
795 ;; The last release was in 2014 and the recommended way to install from source
796 ;; is to clone the git repository, so we do this.
797 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
798 (let ((commit "7d8bced0d1a87291ea8dd7046b7fb5ff9c35c582"))
799 (package
800 (name "bpp-core")
801 (version (string-append "2.2.0-1." (string-take commit 7)))
802 (source (origin
803 (method git-fetch)
804 (uri (git-reference
805 (url "http://biopp.univ-montp2.fr/git/bpp-core")
806 (commit commit)))
807 (file-name (string-append name "-" version "-checkout"))
808 (sha256
809 (base32
810 "10djsq5vlnkilv436gnmh4irpk49v29pa69r6xiryg32xmvn909j"))))
811 (build-system cmake-build-system)
812 (arguments
813 `(#:parallel-build? #f))
814 (inputs
815 `(("gcc" ,gcc-5))) ; Compilation of bpp-phyl fails with GCC 4.9 so we
816 ; compile all of the bpp packages with GCC 5.
817 (home-page "http://biopp.univ-montp2.fr")
818 (synopsis "C++ libraries for Bioinformatics")
819 (description
820 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
821 analysis, phylogenetics, molecular evolution and population genetics. It is
822 Object Oriented and is designed to be both easy to use and computer efficient.
823 Bio++ intends to help programmers to write computer expensive programs, by
824 providing them a set of re-usable tools.")
825 (license license:cecill-c))))
826
827 (define-public bpp-phyl
828 ;; The last release was in 2014 and the recommended way to install from source
829 ;; is to clone the git repository, so we do this.
830 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
831 (let ((commit "0c07167b629f68b569bf274d1ad0c4af83276ae2"))
832 (package
833 (name "bpp-phyl")
834 (version (string-append "2.2.0-1." (string-take commit 7)))
835 (source (origin
836 (method git-fetch)
837 (uri (git-reference
838 (url "http://biopp.univ-montp2.fr/git/bpp-phyl")
839 (commit commit)))
840 (file-name (string-append name "-" version "-checkout"))
841 (sha256
842 (base32
843 "1ssjgchzwj3iai26kyly7gwkdv8sk59nqhkb1wpap3sf5m6kyllh"))))
844 (build-system cmake-build-system)
845 (arguments
846 `(#:parallel-build? #f
847 ;; If out-of-source, test data is not copied into the build directory
848 ;; so the tests fail.
849 #:out-of-source? #f))
850 (inputs
851 `(("bpp-core" ,bpp-core)
852 ("bpp-seq" ,bpp-seq)
853 ;; GCC 4.8 fails due to an 'internal compiler error', so we use a more
854 ;; modern GCC.
855 ("gcc" ,gcc-5)))
856 (home-page "http://biopp.univ-montp2.fr")
857 (synopsis "Bio++ phylogenetic Library")
858 (description
859 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
860 analysis, phylogenetics, molecular evolution and population genetics. This
861 library provides phylogenetics-related modules.")
862 (license license:cecill-c))))
863
864 (define-public bpp-popgen
865 ;; The last release was in 2014 and the recommended way to install from source
866 ;; is to clone the git repository, so we do this.
867 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
868 (let ((commit "e472bac9b1a148803895d747cd6d0c5904f85d9f"))
869 (package
870 (name "bpp-popgen")
871 (version (string-append "2.2.0-1." (string-take commit 7)))
872 (source (origin
873 (method git-fetch)
874 (uri (git-reference
875 (url "http://biopp.univ-montp2.fr/git/bpp-popgen")
876 (commit commit)))
877 (file-name (string-append name "-" version "-checkout"))
878 (sha256
879 (base32
880 "0yn82dzn1n5629nzja68xfrhi655709rjanyryb36vzkmymy6dw5"))))
881 (build-system cmake-build-system)
882 (arguments
883 `(#:parallel-build? #f
884 #:tests? #f)) ; There are no tests.
885 (inputs
886 `(("bpp-core" ,bpp-core)
887 ("bpp-seq" ,bpp-seq)
888 ("gcc" ,gcc-5)))
889 (home-page "http://biopp.univ-montp2.fr")
890 (synopsis "Bio++ population genetics library")
891 (description
892 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
893 analysis, phylogenetics, molecular evolution and population genetics. This
894 library provides population genetics-related modules.")
895 (license license:cecill-c))))
896
897 (define-public bpp-seq
898 ;; The last release was in 2014 and the recommended way to install from source
899 ;; is to clone the git repository, so we do this.
900 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
901 (let ((commit "6cfa07965ce152e5598a89df2fa80a75973bfa33"))
902 (package
903 (name "bpp-seq")
904 (version (string-append "2.2.0-1." (string-take commit 7)))
905 (source (origin
906 (method git-fetch)
907 (uri (git-reference
908 (url "http://biopp.univ-montp2.fr/git/bpp-seq")
909 (commit commit)))
910 (file-name (string-append name "-" version "-checkout"))
911 (sha256
912 (base32
913 "1nys5jq7jqvdg40d91wsmj3q2yzy4276cp7sp44n67p468f27zf2"))))
914 (build-system cmake-build-system)
915 (arguments
916 `(#:parallel-build? #f
917 ;; If out-of-source, test data is not copied into the build directory
918 ;; so the tests fail.
919 #:out-of-source? #f))
920 (inputs
921 `(("bpp-core" ,bpp-core)
922 ("gcc" ,gcc-5))) ; Use GCC 5 as per 'bpp-core'.
923 (home-page "http://biopp.univ-montp2.fr")
924 (synopsis "Bio++ sequence library")
925 (description
926 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
927 analysis, phylogenetics, molecular evolution and population genetics. This
928 library provides sequence-related modules.")
929 (license license:cecill-c))))
930
931 (define-public bppsuite
932 ;; The last release was in 2014 and the recommended way to install from source
933 ;; is to clone the git repository, so we do this.
934 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
935 (let ((commit "c516147f57aa50961121cd505bed52cd7603698b"))
936 (package
937 (name "bppsuite")
938 (version (string-append "2.2.0-1." (string-take commit 7)))
939 (source (origin
940 (method git-fetch)
941 (uri (git-reference
942 (url "http://biopp.univ-montp2.fr/git/bppsuite")
943 (commit commit)))
944 (file-name (string-append name "-" version "-checkout"))
945 (sha256
946 (base32
947 "1y87pxvw0jxjizhq2dr9g2r91md45k1p9ih2sl1yy1y3p934l2kb"))))
948 (build-system cmake-build-system)
949 (arguments
950 `(#:parallel-build? #f
951 #:tests? #f)) ; There are no tests.
952 (native-inputs
953 `(("groff" ,groff)
954 ("man-db" ,man-db)
955 ("texinfo" ,texinfo)))
956 (inputs
957 `(("bpp-core" ,bpp-core)
958 ("bpp-seq" ,bpp-seq)
959 ("bpp-phyl" ,bpp-phyl)
960 ("bpp-phyl" ,bpp-popgen)
961 ("gcc" ,gcc-5)))
962 (home-page "http://biopp.univ-montp2.fr")
963 (synopsis "Bioinformatics tools written with the Bio++ libraries")
964 (description
965 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
966 analysis, phylogenetics, molecular evolution and population genetics. This
967 package provides command line tools using the Bio++ library.")
968 (license license:cecill-c))))
969
970 (define-public blast+
971 (package
972 (name "blast+")
973 (version "2.6.0")
974 (source (origin
975 (method url-fetch)
976 (uri (string-append
977 "ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/"
978 version "/ncbi-blast-" version "+-src.tar.gz"))
979 (sha256
980 (base32
981 "15n937pw5aqmyfjb6l387d18grqbb96l63d5xj4l7yyh0zbf2405"))
982 (patches (search-patches "blast+-fix-makefile.patch"))
983 (modules '((guix build utils)))
984 (snippet
985 '(begin
986 ;; Remove bundled bzip2, zlib and pcre.
987 (delete-file-recursively "c++/src/util/compress/bzip2")
988 (delete-file-recursively "c++/src/util/compress/zlib")
989 (delete-file-recursively "c++/src/util/regexp")
990 (substitute* "c++/src/util/compress/Makefile.in"
991 (("bzip2 zlib api") "api"))
992 ;; Remove useless msbuild directory
993 (delete-file-recursively
994 "c++/src/build-system/project_tree_builder/msbuild")
995 #t))))
996 (build-system gnu-build-system)
997 (arguments
998 `(;; There are two(!) tests for this massive library, and both fail with
999 ;; "unparsable timing stats".
1000 ;; ERR [127] -- [serial/datatool] datatool.sh (unparsable timing stats)
1001 ;; ERR [127] -- [serial/datatool] datatool_xml.sh (unparsable timing stats)
1002 #:tests? #f
1003 #:out-of-source? #t
1004 #:parallel-build? #f ; not supported
1005 #:phases
1006 (modify-phases %standard-phases
1007 (add-before
1008 'configure 'set-HOME
1009 ;; $HOME needs to be set at some point during the configure phase
1010 (lambda _ (setenv "HOME" "/tmp") #t))
1011 (add-after
1012 'unpack 'enter-dir
1013 (lambda _ (chdir "c++") #t))
1014 (add-after
1015 'enter-dir 'fix-build-system
1016 (lambda _
1017 (define (which* cmd)
1018 (cond ((string=? cmd "date")
1019 ;; make call to "date" deterministic
1020 "date -d @0")
1021 ((which cmd)
1022 => identity)
1023 (else
1024 (format (current-error-port)
1025 "WARNING: Unable to find absolute path for ~s~%"
1026 cmd)
1027 #f)))
1028
1029 ;; Rewrite hardcoded paths to various tools
1030 (substitute* (append '("src/build-system/configure.ac"
1031 "src/build-system/configure"
1032 "src/build-system/helpers/run_with_lock.c"
1033 "scripts/common/impl/if_diff.sh"
1034 "scripts/common/impl/run_with_lock.sh"
1035 "src/build-system/Makefile.configurables.real"
1036 "src/build-system/Makefile.in.top"
1037 "src/build-system/Makefile.meta.gmake=no"
1038 "src/build-system/Makefile.meta.in"
1039 "src/build-system/Makefile.meta_l"
1040 "src/build-system/Makefile.meta_p"
1041 "src/build-system/Makefile.meta_r"
1042 "src/build-system/Makefile.mk.in"
1043 "src/build-system/Makefile.requirements"
1044 "src/build-system/Makefile.rules_with_autodep.in")
1045 (find-files "scripts/common/check" "\\.sh$"))
1046 (("(/usr/bin/|/bin/)([a-z][-_.a-z]*)" all dir cmd)
1047 (or (which* cmd) all)))
1048
1049 (substitute* (find-files "src/build-system" "^config.*")
1050 (("LN_S=/bin/\\$LN_S") (string-append "LN_S=" (which "ln")))
1051 (("^PATH=.*") ""))
1052
1053 ;; rewrite "/var/tmp" in check script
1054 (substitute* "scripts/common/check/check_make_unix.sh"
1055 (("/var/tmp") "/tmp"))
1056
1057 ;; do not reset PATH
1058 (substitute* (find-files "scripts/common/impl/" "\\.sh$")
1059 (("^ *PATH=.*") "")
1060 (("action=/bin/") "action=")
1061 (("export PATH") ":"))
1062 #t))
1063 (replace
1064 'configure
1065 (lambda* (#:key inputs outputs #:allow-other-keys)
1066 (let ((out (assoc-ref outputs "out"))
1067 (lib (string-append (assoc-ref outputs "lib") "/lib"))
1068 (include (string-append (assoc-ref outputs "include")
1069 "/include/ncbi-tools++")))
1070 ;; The 'configure' script doesn't recognize things like
1071 ;; '--enable-fast-install'.
1072 (zero? (system* "./configure.orig"
1073 (string-append "--with-build-root=" (getcwd) "/build")
1074 (string-append "--prefix=" out)
1075 (string-append "--libdir=" lib)
1076 (string-append "--includedir=" include)
1077 (string-append "--with-bz2="
1078 (assoc-ref inputs "bzip2"))
1079 (string-append "--with-z="
1080 (assoc-ref inputs "zlib"))
1081 (string-append "--with-pcre="
1082 (assoc-ref inputs "pcre"))
1083 ;; Each library is built twice by default, once
1084 ;; with "-static" in its name, and again
1085 ;; without.
1086 "--without-static"
1087 "--with-dll"))))))))
1088 (outputs '("out" ; 21 MB
1089 "lib" ; 226 MB
1090 "include")) ; 33 MB
1091 (inputs
1092 `(("bzip2" ,bzip2)
1093 ("zlib" ,zlib)
1094 ("pcre" ,pcre)
1095 ("perl" ,perl)
1096 ("python" ,python-wrapper)))
1097 (native-inputs
1098 `(("cpio" ,cpio)))
1099 (home-page "http://blast.ncbi.nlm.nih.gov")
1100 (synopsis "Basic local alignment search tool")
1101 (description
1102 "BLAST is a popular method of performing a DNA or protein sequence
1103 similarity search, using heuristics to produce results quickly. It also
1104 calculates an “expect value” that estimates how many matches would have
1105 occurred at a given score by chance, which can aid a user in judging how much
1106 confidence to have in an alignment.")
1107 ;; Most of the sources are in the public domain, with the following
1108 ;; exceptions:
1109 ;; * Expat:
1110 ;; * ./c++/include/util/bitset/
1111 ;; * ./c++/src/html/ncbi_menu*.js
1112 ;; * Boost license:
1113 ;; * ./c++/include/util/impl/floating_point_comparison.hpp
1114 ;; * LGPL 2+:
1115 ;; * ./c++/include/dbapi/driver/odbc/unix_odbc/
1116 ;; * ASL 2.0:
1117 ;; * ./c++/src/corelib/teamcity_*
1118 (license (list license:public-domain
1119 license:expat
1120 license:boost1.0
1121 license:lgpl2.0+
1122 license:asl2.0))))
1123
1124 (define-public bless
1125 (package
1126 (name "bless")
1127 (version "1p02")
1128 (source (origin
1129 (method url-fetch)
1130 (uri (string-append "mirror://sourceforge/bless-ec/bless.v"
1131 version ".tgz"))
1132 (sha256
1133 (base32
1134 "0rm0gw2s18dqwzzpl3c2x1z05ni2v0xz5dmfk3d33j6g4cgrlrdd"))
1135 (modules '((guix build utils)))
1136 (snippet
1137 `(begin
1138 ;; Remove bundled boost, pigz, zlib, and .git directory
1139 ;; FIXME: also remove bundled sources for murmurhash3 and
1140 ;; kmc once packaged.
1141 (delete-file-recursively "boost")
1142 (delete-file-recursively "pigz")
1143 (delete-file-recursively "google-sparsehash")
1144 (delete-file-recursively "zlib")
1145 (delete-file-recursively ".git")
1146 #t))))
1147 (build-system gnu-build-system)
1148 (arguments
1149 '(#:tests? #f ;no "check" target
1150 #:make-flags
1151 (list (string-append "ZLIB="
1152 (assoc-ref %build-inputs "zlib")
1153 "/lib/libz.a")
1154 (string-append "LDFLAGS="
1155 (string-join '("-lboost_filesystem"
1156 "-lboost_system"
1157 "-lboost_iostreams"
1158 "-lz"
1159 "-fopenmp"
1160 "-std=c++11"))))
1161 #:phases
1162 (modify-phases %standard-phases
1163 (add-after 'unpack 'do-not-build-bundled-pigz
1164 (lambda* (#:key inputs outputs #:allow-other-keys)
1165 (substitute* "Makefile"
1166 (("cd pigz/pigz-2.3.3; make") ""))
1167 #t))
1168 (add-after 'unpack 'patch-paths-to-executables
1169 (lambda* (#:key inputs outputs #:allow-other-keys)
1170 (substitute* "parse_args.cpp"
1171 (("kmc_binary = .*")
1172 (string-append "kmc_binary = \""
1173 (assoc-ref outputs "out")
1174 "/bin/kmc\";"))
1175 (("pigz_binary = .*")
1176 (string-append "pigz_binary = \""
1177 (assoc-ref inputs "pigz")
1178 "/bin/pigz\";")))
1179 #t))
1180 (replace 'install
1181 (lambda* (#:key outputs #:allow-other-keys)
1182 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
1183 (for-each (lambda (file)
1184 (install-file file bin))
1185 '("bless" "kmc/bin/kmc"))
1186 #t)))
1187 (delete 'configure))))
1188 (native-inputs
1189 `(("perl" ,perl)))
1190 (inputs
1191 `(("openmpi" ,openmpi)
1192 ("boost" ,boost)
1193 ("sparsehash" ,sparsehash)
1194 ("pigz" ,pigz)
1195 ("zlib" ,zlib)))
1196 (supported-systems '("x86_64-linux"))
1197 (home-page "https://sourceforge.net/p/bless-ec/wiki/Home/")
1198 (synopsis "Bloom-filter-based error correction tool for NGS reads")
1199 (description
1200 "@dfn{Bloom-filter-based error correction solution for high-throughput
1201 sequencing reads} (BLESS) uses a single minimum-sized bloom filter is a
1202 correction tool for genomic reads produced by @dfn{Next-generation
1203 sequencing} (NGS). BLESS produces accurate correction results with much less
1204 memory compared with previous solutions and is also able to tolerate a higher
1205 false-positive rate. BLESS can extend reads like DNA assemblers to correct
1206 errors at the end of reads.")
1207 (license license:gpl3+)))
1208
1209 (define-public bowtie
1210 (package
1211 (name "bowtie")
1212 (version "2.3.2")
1213 (source (origin
1214 (method url-fetch)
1215 (uri (string-append "https://github.com/BenLangmead/bowtie2/archive/v"
1216 version ".tar.gz"))
1217 (file-name (string-append name "-" version ".tar.gz"))
1218 (sha256
1219 (base32
1220 "0hwa5r9qbglppb7sz5z79rlmmddr3n51n468jb3wh8rwjgn3yr90"))
1221 (modules '((guix build utils)))
1222 (snippet
1223 '(substitute* "Makefile"
1224 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1225 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1226 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\"")))))
1227 (build-system gnu-build-system)
1228 (inputs
1229 `(("perl" ,perl)
1230 ("perl-clone" ,perl-clone)
1231 ("perl-test-deep" ,perl-test-deep)
1232 ("perl-test-simple" ,perl-test-simple)
1233 ("python" ,python-2)
1234 ("tbb" ,tbb)
1235 ("zlib" ,zlib)))
1236 (arguments
1237 '(#:make-flags
1238 (list "allall"
1239 "WITH_TBB=1"
1240 (string-append "prefix=" (assoc-ref %outputs "out")))
1241 #:phases
1242 (modify-phases %standard-phases
1243 (delete 'configure)
1244 (replace 'check
1245 (lambda* (#:key outputs #:allow-other-keys)
1246 (zero? (system* "perl"
1247 "scripts/test/simple_tests.pl"
1248 "--bowtie2=./bowtie2"
1249 "--bowtie2-build=./bowtie2-build")))))))
1250 (home-page "http://bowtie-bio.sourceforge.net/bowtie2/index.shtml")
1251 (synopsis "Fast and sensitive nucleotide sequence read aligner")
1252 (description
1253 "Bowtie 2 is a fast and memory-efficient tool for aligning sequencing
1254 reads to long reference sequences. It is particularly good at aligning reads
1255 of about 50 up to 100s or 1,000s of characters, and particularly good at
1256 aligning to relatively long (e.g. mammalian) genomes. Bowtie 2 indexes the
1257 genome with an FM Index to keep its memory footprint small: for the human
1258 genome, its memory footprint is typically around 3.2 GB. Bowtie 2 supports
1259 gapped, local, and paired-end alignment modes.")
1260 (supported-systems '("x86_64-linux"))
1261 (license license:gpl3+)))
1262
1263 (define-public tophat
1264 (package
1265 (name "tophat")
1266 (version "2.1.0")
1267 (source (origin
1268 (method url-fetch)
1269 (uri (string-append
1270 "http://ccb.jhu.edu/software/tophat/downloads/tophat-"
1271 version ".tar.gz"))
1272 (sha256
1273 (base32
1274 "168zlzykq622zbgkh90a90f1bdgsxkscq2zxzbj8brq80hbjpyp7"))
1275 (patches (search-patches "tophat-build-with-later-seqan.patch"))
1276 (modules '((guix build utils)))
1277 (snippet
1278 '(begin
1279 ;; Remove bundled SeqAn and samtools
1280 (delete-file-recursively "src/SeqAn-1.3")
1281 (delete-file-recursively "src/samtools-0.1.18")
1282 #t))))
1283 (build-system gnu-build-system)
1284 (arguments
1285 '(#:parallel-build? #f ; not supported
1286 #:phases
1287 (modify-phases %standard-phases
1288 (add-after 'unpack 'use-system-samtools
1289 (lambda* (#:key inputs #:allow-other-keys)
1290 (substitute* "src/Makefile.in"
1291 (("(noinst_LIBRARIES = )\\$\\(SAMLIB\\)" _ prefix) prefix)
1292 (("\\$\\(SAMPROG\\): \\$\\(SAMLIB\\)") "")
1293 (("SAMPROG = samtools_0\\.1\\.18") "")
1294 (("\\$\\(samtools_0_1_18_SOURCES\\)") "")
1295 (("am__EXEEXT_1 = samtools_0\\.1\\.18\\$\\(EXEEXT\\)") ""))
1296 (substitute* '("src/common.cpp"
1297 "src/tophat.py")
1298 (("samtools_0.1.18") (which "samtools")))
1299 (substitute* '("src/common.h"
1300 "src/bam2fastx.cpp")
1301 (("#include \"bam.h\"") "#include <samtools/bam.h>")
1302 (("#include \"sam.h\"") "#include <samtools/sam.h>"))
1303 (substitute* '("src/bwt_map.h"
1304 "src/map2gtf.h"
1305 "src/align_status.h")
1306 (("#include <bam.h>") "#include <samtools/bam.h>")
1307 (("#include <sam.h>") "#include <samtools/sam.h>"))
1308 #t)))))
1309 (inputs
1310 `(("boost" ,boost)
1311 ("bowtie" ,bowtie)
1312 ("samtools" ,samtools-0.1)
1313 ("ncurses" ,ncurses)
1314 ("python" ,python-2)
1315 ("perl" ,perl)
1316 ("zlib" ,zlib)
1317 ("seqan" ,seqan)))
1318 (home-page "http://ccb.jhu.edu/software/tophat/index.shtml")
1319 (synopsis "Spliced read mapper for RNA-Seq data")
1320 (description
1321 "TopHat is a fast splice junction mapper for nucleotide sequence
1322 reads produced by the RNA-Seq method. It aligns RNA-Seq reads to
1323 mammalian-sized genomes using the ultra high-throughput short read
1324 aligner Bowtie, and then analyzes the mapping results to identify
1325 splice junctions between exons.")
1326 ;; TopHat is released under the Boost Software License, Version 1.0
1327 ;; See https://github.com/infphilo/tophat/issues/11#issuecomment-121589893
1328 (license license:boost1.0)))
1329
1330 (define-public bwa
1331 (package
1332 (name "bwa")
1333 (version "0.7.17")
1334 (source (origin
1335 (method url-fetch)
1336 (uri (string-append
1337 "https://github.com/lh3/bwa/releases/download/v"
1338 version "/bwa-" version ".tar.bz2"))
1339 (sha256
1340 (base32
1341 "1zfhv2zg9v1icdlq4p9ssc8k01mca5d1bd87w71py2swfi74s6yy"))))
1342 (build-system gnu-build-system)
1343 (arguments
1344 '(#:tests? #f ;no "check" target
1345 #:phases
1346 (modify-phases %standard-phases
1347 (replace 'install
1348 (lambda* (#:key outputs #:allow-other-keys)
1349 (let ((bin (string-append
1350 (assoc-ref outputs "out") "/bin"))
1351 (doc (string-append
1352 (assoc-ref outputs "out") "/share/doc/bwa"))
1353 (man (string-append
1354 (assoc-ref outputs "out") "/share/man/man1")))
1355 (install-file "bwa" bin)
1356 (install-file "README.md" doc)
1357 (install-file "bwa.1" man))
1358 #t))
1359 ;; no "configure" script
1360 (delete 'configure))))
1361 (inputs `(("zlib" ,zlib)))
1362 ;; Non-portable SSE instructions are used so building fails on platforms
1363 ;; other than x86_64.
1364 (supported-systems '("x86_64-linux"))
1365 (home-page "http://bio-bwa.sourceforge.net/")
1366 (synopsis "Burrows-Wheeler sequence aligner")
1367 (description
1368 "BWA is a software package for mapping low-divergent sequences against a
1369 large reference genome, such as the human genome. It consists of three
1370 algorithms: BWA-backtrack, BWA-SW and BWA-MEM. The first algorithm is
1371 designed for Illumina sequence reads up to 100bp, while the rest two for
1372 longer sequences ranged from 70bp to 1Mbp. BWA-MEM and BWA-SW share similar
1373 features such as long-read support and split alignment, but BWA-MEM, which is
1374 the latest, is generally recommended for high-quality queries as it is faster
1375 and more accurate. BWA-MEM also has better performance than BWA-backtrack for
1376 70-100bp Illumina reads.")
1377 (license license:gpl3+)))
1378
1379 (define-public bwa-pssm
1380 (package (inherit bwa)
1381 (name "bwa-pssm")
1382 (version "0.5.11")
1383 (source (origin
1384 (method url-fetch)
1385 (uri (string-append "https://github.com/pkerpedjiev/bwa-pssm/"
1386 "archive/" version ".tar.gz"))
1387 (file-name (string-append name "-" version ".tar.gz"))
1388 (sha256
1389 (base32
1390 "02p7mpbs4mlxmn84g2x4ghak638vbj4lqix2ipx5g84pz9bhdavg"))))
1391 (build-system gnu-build-system)
1392 (inputs
1393 `(("gdsl" ,gdsl)
1394 ("zlib" ,zlib)
1395 ("perl" ,perl)))
1396 (home-page "http://bwa-pssm.binf.ku.dk/")
1397 (synopsis "Burrows-Wheeler transform-based probabilistic short read mapper")
1398 (description
1399 "BWA-PSSM is a probabilistic short genomic sequence read aligner based on
1400 the use of @dfn{position specific scoring matrices} (PSSM). Like many of the
1401 existing aligners it is fast and sensitive. Unlike most other aligners,
1402 however, it is also adaptible in the sense that one can direct the alignment
1403 based on known biases within the data set. It is coded as a modification of
1404 the original BWA alignment program and shares the genome index structure as
1405 well as many of the command line options.")
1406 (license license:gpl3+)))
1407
1408 (define-public python2-bx-python
1409 (package
1410 (name "python2-bx-python")
1411 (version "0.7.3")
1412 (source (origin
1413 (method url-fetch)
1414 (uri (pypi-uri "bx-python" version))
1415 (sha256
1416 (base32
1417 "15z2w3bvnc0n4qmb9bd6d8ylc2h2nj883x2w9iixf4x3vki9b22i"))
1418 (modules '((guix build utils)))
1419 (snippet
1420 '(substitute* "setup.py"
1421 ;; remove dependency on outdated "distribute" module
1422 (("^from distribute_setup import use_setuptools") "")
1423 (("^use_setuptools\\(\\)") "")))))
1424 (build-system python-build-system)
1425 (arguments
1426 `(#:tests? #f ;tests fail because test data are not included
1427 #:python ,python-2))
1428 (inputs
1429 `(("python-numpy" ,python2-numpy)
1430 ("zlib" ,zlib)))
1431 (native-inputs
1432 `(("python-nose" ,python2-nose)))
1433 (home-page "http://bitbucket.org/james_taylor/bx-python/")
1434 (synopsis "Tools for manipulating biological data")
1435 (description
1436 "bx-python provides tools for manipulating biological data, particularly
1437 multiple sequence alignments.")
1438 (license license:expat)))
1439
1440 (define-public python-pysam
1441 (package
1442 (name "python-pysam")
1443 (version "0.13.0")
1444 (source (origin
1445 (method url-fetch)
1446 ;; Test data is missing on PyPi.
1447 (uri (string-append
1448 "https://github.com/pysam-developers/pysam/archive/v"
1449 version ".tar.gz"))
1450 (file-name (string-append name "-" version ".tar.gz"))
1451 (sha256
1452 (base32
1453 "0dzap2axin9cbbl0d825w294bpn00zagfm1sigamm4v2pm5bj9lp"))
1454 (modules '((guix build utils)))
1455 (snippet
1456 ;; Drop bundled htslib. TODO: Also remove samtools and bcftools.
1457 '(delete-file-recursively "htslib"))))
1458 (build-system python-build-system)
1459 (arguments
1460 `(#:modules ((ice-9 ftw)
1461 (srfi srfi-26)
1462 (guix build python-build-system)
1463 (guix build utils))
1464 #:phases
1465 (modify-phases %standard-phases
1466 (add-before 'build 'set-flags
1467 (lambda* (#:key inputs #:allow-other-keys)
1468 (setenv "HTSLIB_MODE" "external")
1469 (setenv "HTSLIB_LIBRARY_DIR"
1470 (string-append (assoc-ref inputs "htslib") "/lib"))
1471 (setenv "HTSLIB_INCLUDE_DIR"
1472 (string-append (assoc-ref inputs "htslib") "/include"))
1473 (setenv "LDFLAGS" "-lncurses")
1474 (setenv "CFLAGS" "-D_CURSES_LIB=1")
1475 #t))
1476 (replace 'check
1477 (lambda* (#:key inputs outputs #:allow-other-keys)
1478 ;; Add first subdirectory of "build" directory to PYTHONPATH.
1479 (setenv "PYTHONPATH"
1480 (string-append
1481 (getenv "PYTHONPATH")
1482 ":" (getcwd) "/build/"
1483 (car (scandir "build"
1484 (negate (cut string-prefix? "." <>))))))
1485 ;; Step out of source dir so python does not import from CWD.
1486 (with-directory-excursion "tests"
1487 (setenv "HOME" "/tmp")
1488 (and (zero? (system* "make" "-C" "pysam_data"))
1489 (zero? (system* "make" "-C" "cbcf_data"))
1490 ;; Running nosetests without explicitly asking for a
1491 ;; single process leads to a crash. Running with multiple
1492 ;; processes fails because the tests are not designed to
1493 ;; run in parallel.
1494
1495 ;; FIXME: tests keep timing out on some systems.
1496 ;; (zero? (system* "nosetests" "-v"
1497 ;; "--processes" "1"))
1498 )))))))
1499 (propagated-inputs
1500 `(("htslib" ,htslib))) ; Included from installed header files.
1501 (inputs
1502 `(("ncurses" ,ncurses)
1503 ("zlib" ,zlib)))
1504 (native-inputs
1505 `(("python-cython" ,python-cython)
1506 ;; Dependencies below are are for tests only.
1507 ("samtools" ,samtools)
1508 ("bcftools" ,bcftools)
1509 ("python-nose" ,python-nose)))
1510 (home-page "https://github.com/pysam-developers/pysam")
1511 (synopsis "Python bindings to the SAMtools C API")
1512 (description
1513 "Pysam is a Python module for reading and manipulating files in the
1514 SAM/BAM format. Pysam is a lightweight wrapper of the SAMtools C API. It
1515 also includes an interface for tabix.")
1516 (license license:expat)))
1517
1518 (define-public python2-pysam
1519 (package-with-python2 python-pysam))
1520
1521 (define-public python-twobitreader
1522 (package
1523 (name "python-twobitreader")
1524 (version "3.1.4")
1525 (source (origin
1526 (method url-fetch)
1527 (uri (pypi-uri "twobitreader" version))
1528 (sha256
1529 (base32
1530 "1q8wnj2kga9nz1lwc4w7qv52smfm536hp6mc8w6s53lhyj0mpi22"))))
1531 (build-system python-build-system)
1532 (arguments
1533 '(;; Tests are not distributed in the PyPi release.
1534 ;; TODO Try building from the Git repo or asking the upstream maintainer
1535 ;; to distribute the tests on PyPi.
1536 #:tests? #f))
1537 (native-inputs
1538 `(("python-sphinx" ,python-sphinx)))
1539 (home-page "https://github.com/benjschiller/twobitreader")
1540 (synopsis "Python library for reading .2bit files")
1541 (description
1542 "twobitreader is a Python library for reading .2bit files as used by the
1543 UCSC genome browser.")
1544 (license license:artistic2.0)))
1545
1546 (define-public python2-twobitreader
1547 (package-with-python2 python-twobitreader))
1548
1549 (define-public python-plastid
1550 (package
1551 (name "python-plastid")
1552 (version "0.4.8")
1553 (source (origin
1554 (method url-fetch)
1555 (uri (pypi-uri "plastid" version))
1556 (sha256
1557 (base32
1558 "0l24dd3q66if8yj042m4s0g95n6acn7im1imqd3p6h8ns43kxhj8"))))
1559 (build-system python-build-system)
1560 (arguments
1561 ;; Some test files are not included.
1562 `(#:tests? #f))
1563 (propagated-inputs
1564 `(("python-numpy" ,python-numpy)
1565 ("python-scipy" ,python-scipy)
1566 ("python-pandas" ,python-pandas)
1567 ("python-pysam" ,python-pysam)
1568 ("python-matplotlib" ,python-matplotlib)
1569 ("python-biopython" ,python-biopython)
1570 ("python-twobitreader" ,python-twobitreader)
1571 ("python-termcolor" ,python-termcolor)))
1572 (native-inputs
1573 `(("python-cython" ,python-cython)
1574 ("python-nose" ,python-nose)))
1575 (home-page "https://github.com/joshuagryphon/plastid")
1576 (synopsis "Python library for genomic analysis")
1577 (description
1578 "plastid is a Python library for genomic analysis – in particular,
1579 high-throughput sequencing data – with an emphasis on simplicity.")
1580 (license license:bsd-3)))
1581
1582 (define-public python2-plastid
1583 (package-with-python2 python-plastid))
1584
1585 (define-public cd-hit
1586 (package
1587 (name "cd-hit")
1588 (version "4.6.8")
1589 (source (origin
1590 (method url-fetch)
1591 (uri (string-append "https://github.com/weizhongli/cdhit"
1592 "/releases/download/V" version
1593 "/cd-hit-v" version
1594 "-2017-0621-source.tar.gz"))
1595 (sha256
1596 (base32
1597 "1b4mwm2520ixjbw57sil20f9iixzw4bkdqqwgg1fc3pzm6rz4zmn"))))
1598 (build-system gnu-build-system)
1599 (arguments
1600 `(#:tests? #f ; there are no tests
1601 #:make-flags
1602 ;; Executables are copied directly to the PREFIX.
1603 (list (string-append "PREFIX=" (assoc-ref %outputs "out") "/bin"))
1604 #:phases
1605 (modify-phases %standard-phases
1606 ;; No "configure" script
1607 (delete 'configure)
1608 ;; Remove sources of non-determinism
1609 (add-after 'unpack 'be-timeless
1610 (lambda _
1611 (substitute* "cdhit-utility.c++"
1612 ((" \\(built on \" __DATE__ \"\\)") ""))
1613 (substitute* "cdhit-common.c++"
1614 (("__DATE__") "\"0\"")
1615 (("\", %s, \" __TIME__ \"\\\\n\", date") ""))
1616 #t))
1617 ;; The "install" target does not create the target directory.
1618 (add-before 'install 'create-target-dir
1619 (lambda* (#:key outputs #:allow-other-keys)
1620 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
1621 #t)))))
1622 (inputs
1623 `(("perl" ,perl)))
1624 (home-page "http://weizhongli-lab.org/cd-hit/")
1625 (synopsis "Cluster and compare protein or nucleotide sequences")
1626 (description
1627 "CD-HIT is a program for clustering and comparing protein or nucleotide
1628 sequences. CD-HIT is designed to be fast and handle extremely large
1629 databases.")
1630 ;; The manual says: "It can be copied under the GNU General Public License
1631 ;; version 2 (GPLv2)."
1632 (license license:gpl2)))
1633
1634 (define-public clipper
1635 (package
1636 (name "clipper")
1637 (version "1.1")
1638 (source (origin
1639 (method url-fetch)
1640 (uri (string-append
1641 "https://github.com/YeoLab/clipper/archive/"
1642 version ".tar.gz"))
1643 (file-name (string-append name "-" version ".tar.gz"))
1644 (sha256
1645 (base32
1646 "0pflmsvhbf8izbgwhbhj1i7349sw1f55qpqj8ljmapp16hb0p0qi"))
1647 (modules '((guix build utils)))
1648 (snippet
1649 '(begin
1650 ;; remove unnecessary setup dependency
1651 (substitute* "setup.py"
1652 (("setup_requires = .*") ""))
1653 (for-each delete-file
1654 '("clipper/src/peaks.so"
1655 "clipper/src/readsToWiggle.so"))
1656 (delete-file-recursively "dist/")
1657 #t))))
1658 (build-system python-build-system)
1659 (arguments `(#:python ,python-2)) ; only Python 2 is supported
1660 (inputs
1661 `(("htseq" ,python2-htseq)
1662 ("python-pybedtools" ,python2-pybedtools)
1663 ("python-cython" ,python2-cython)
1664 ("python-scikit-learn" ,python2-scikit-learn)
1665 ("python-matplotlib" ,python2-matplotlib)
1666 ("python-pandas" ,python2-pandas)
1667 ("python-pysam" ,python2-pysam)
1668 ("python-numpy" ,python2-numpy)
1669 ("python-scipy" ,python2-scipy)))
1670 (native-inputs
1671 `(("python-mock" ,python2-mock) ; for tests
1672 ("python-nose" ,python2-nose) ; for tests
1673 ("python-pytz" ,python2-pytz))) ; for tests
1674 (home-page "https://github.com/YeoLab/clipper")
1675 (synopsis "CLIP peak enrichment recognition")
1676 (description
1677 "CLIPper is a tool to define peaks in CLIP-seq datasets.")
1678 (license license:gpl2)))
1679
1680 (define-public codingquarry
1681 (package
1682 (name "codingquarry")
1683 (version "2.0")
1684 (source (origin
1685 (method url-fetch)
1686 (uri (string-append
1687 "mirror://sourceforge/codingquarry/CodingQuarry_v"
1688 version ".tar.gz"))
1689 (sha256
1690 (base32
1691 "0115hkjflsnfzn36xppwf9h9avfxlavr43djqmshkkzbgjzsz60i"))))
1692 (build-system gnu-build-system)
1693 (arguments
1694 '(#:tests? #f ; no "check" target
1695 #:phases
1696 (modify-phases %standard-phases
1697 (delete 'configure)
1698 (replace 'install
1699 (lambda* (#:key outputs #:allow-other-keys)
1700 (let* ((out (assoc-ref outputs "out"))
1701 (bin (string-append out "/bin"))
1702 (doc (string-append out "/share/doc/codingquarry")))
1703 (install-file "INSTRUCTIONS.pdf" doc)
1704 (copy-recursively "QuarryFiles"
1705 (string-append out "/QuarryFiles"))
1706 (install-file "CodingQuarry" bin)
1707 (install-file "CufflinksGTF_to_CodingQuarryGFF3.py" bin)))))))
1708 (inputs `(("openmpi" ,openmpi)))
1709 (native-search-paths
1710 (list (search-path-specification
1711 (variable "QUARRY_PATH")
1712 (files '("QuarryFiles")))))
1713 (native-inputs `(("python" ,python-2))) ; Only Python 2 is supported
1714 (synopsis "Fungal gene predictor")
1715 (description "CodingQuarry is a highly accurate, self-training GHMM fungal
1716 gene predictor designed to work with assembled, aligned RNA-seq transcripts.")
1717 (home-page "https://sourceforge.net/projects/codingquarry/")
1718 (license license:gpl3+)))
1719
1720 (define-public couger
1721 (package
1722 (name "couger")
1723 (version "1.8.2")
1724 (source (origin
1725 (method url-fetch)
1726 (uri (string-append
1727 "http://couger.oit.duke.edu/static/assets/COUGER"
1728 version ".zip"))
1729 (sha256
1730 (base32
1731 "04p2b14nmhzxw5h72mpzdhalv21bx4w9b87z0wpw0xzxpysyncmq"))))
1732 (build-system gnu-build-system)
1733 (arguments
1734 `(#:tests? #f
1735 #:phases
1736 (modify-phases %standard-phases
1737 (delete 'configure)
1738 (delete 'build)
1739 (replace
1740 'install
1741 (lambda* (#:key outputs #:allow-other-keys)
1742 (let* ((out (assoc-ref outputs "out"))
1743 (bin (string-append out "/bin")))
1744 (copy-recursively "src" (string-append out "/src"))
1745 (mkdir bin)
1746 ;; Add "src" directory to module lookup path.
1747 (substitute* "couger"
1748 (("from argparse")
1749 (string-append "import sys\nsys.path.append(\""
1750 out "\")\nfrom argparse")))
1751 (install-file "couger" bin))
1752 #t))
1753 (add-after
1754 'install 'wrap-program
1755 (lambda* (#:key inputs outputs #:allow-other-keys)
1756 ;; Make sure 'couger' runs with the correct PYTHONPATH.
1757 (let* ((out (assoc-ref outputs "out"))
1758 (path (getenv "PYTHONPATH")))
1759 (wrap-program (string-append out "/bin/couger")
1760 `("PYTHONPATH" ":" prefix (,path))))
1761 #t)))))
1762 (inputs
1763 `(("python" ,python-2)
1764 ("python2-pillow" ,python2-pillow)
1765 ("python2-numpy" ,python2-numpy)
1766 ("python2-scipy" ,python2-scipy)
1767 ("python2-matplotlib" ,python2-matplotlib)))
1768 (propagated-inputs
1769 `(("r-minimal" ,r-minimal)
1770 ("libsvm" ,libsvm)
1771 ("randomjungle" ,randomjungle)))
1772 (native-inputs
1773 `(("unzip" ,unzip)))
1774 (home-page "http://couger.oit.duke.edu")
1775 (synopsis "Identify co-factors in sets of genomic regions")
1776 (description
1777 "COUGER can be applied to any two sets of genomic regions bound by
1778 paralogous TFs (e.g., regions derived from ChIP-seq experiments) to identify
1779 putative co-factors that provide specificity to each TF. The framework
1780 determines the genomic targets uniquely-bound by each TF, and identifies a
1781 small set of co-factors that best explain the in vivo binding differences
1782 between the two TFs.
1783
1784 COUGER uses classification algorithms (support vector machines and random
1785 forests) with features that reflect the DNA binding specificities of putative
1786 co-factors. The features are generated either from high-throughput TF-DNA
1787 binding data (from protein binding microarray experiments), or from large
1788 collections of DNA motifs.")
1789 (license license:gpl3+)))
1790
1791 (define-public clustal-omega
1792 (package
1793 (name "clustal-omega")
1794 (version "1.2.4")
1795 (source (origin
1796 (method url-fetch)
1797 (uri (string-append "http://www.clustal.org/omega/clustal-omega-"
1798 version ".tar.gz"))
1799 (sha256
1800 (base32
1801 "1vm30mzncwdv881vrcwg11vzvrsmwy4wg80j5i0lcfk6dlld50w6"))))
1802 (build-system gnu-build-system)
1803 (inputs
1804 `(("argtable" ,argtable)))
1805 (home-page "http://www.clustal.org/omega/")
1806 (synopsis "Multiple sequence aligner for protein and DNA/RNA")
1807 (description
1808 "Clustal-Omega is a general purpose multiple sequence alignment (MSA)
1809 program for protein and DNA/RNA. It produces high quality MSAs and is capable
1810 of handling data-sets of hundreds of thousands of sequences in reasonable
1811 time.")
1812 (license license:gpl2+)))
1813
1814 (define-public crossmap
1815 (package
1816 (name "crossmap")
1817 (version "0.2.1")
1818 (source (origin
1819 (method url-fetch)
1820 (uri (string-append "mirror://sourceforge/crossmap/CrossMap-"
1821 version ".tar.gz"))
1822 (sha256
1823 (base32
1824 "07y179f63d7qnzdvkqcziwk9bs3k4zhp81q392fp1hwszjdvy22f"))
1825 ;; This patch has been sent upstream already and is available
1826 ;; for download from Sourceforge, but it has not been merged.
1827 (patches (search-patches "crossmap-allow-system-pysam.patch"))
1828 (modules '((guix build utils)))
1829 ;; remove bundled copy of pysam
1830 (snippet
1831 '(delete-file-recursively "lib/pysam"))))
1832 (build-system python-build-system)
1833 (arguments
1834 `(#:python ,python-2
1835 #:phases
1836 (modify-phases %standard-phases
1837 (add-after 'unpack 'set-env
1838 (lambda _ (setenv "CROSSMAP_USE_SYSTEM_PYSAM" "1") #t)))))
1839 (inputs
1840 `(("python-numpy" ,python2-numpy)
1841 ("python-pysam" ,python2-pysam)
1842 ("zlib" ,zlib)))
1843 (native-inputs
1844 `(("python-cython" ,python2-cython)
1845 ("python-nose" ,python2-nose)))
1846 (home-page "http://crossmap.sourceforge.net/")
1847 (synopsis "Convert genome coordinates between assemblies")
1848 (description
1849 "CrossMap is a program for conversion of genome coordinates or annotation
1850 files between different genome assemblies. It supports most commonly used
1851 file formats including SAM/BAM, Wiggle/BigWig, BED, GFF/GTF, VCF.")
1852 (license license:gpl2+)))
1853
1854 (define-public cutadapt
1855 (package
1856 (name "cutadapt")
1857 (version "1.16")
1858 (source (origin
1859 (method git-fetch)
1860 (uri (git-reference
1861 (url "https://github.com/marcelm/cutadapt.git")
1862 (commit (string-append "v" version))))
1863 (file-name (string-append name "-" version "-checkout"))
1864 (sha256
1865 (base32
1866 "09pr02067jiks19nc0aby4xp70hhgvb554i2y1c04rv1m401w7q8"))))
1867 (build-system python-build-system)
1868 (inputs
1869 `(("python-xopen" ,python-xopen)))
1870 (native-inputs
1871 `(("python-cython" ,python-cython)
1872 ("python-pytest" ,python-pytest)))
1873 (home-page "https://cutadapt.readthedocs.io/en/stable/")
1874 (synopsis "Remove adapter sequences from nucleotide sequencing reads")
1875 (description
1876 "Cutadapt finds and removes adapter sequences, primers, poly-A tails and
1877 other types of unwanted sequence from high-throughput sequencing reads.")
1878 (license license:expat)))
1879
1880 (define-public libbigwig
1881 (package
1882 (name "libbigwig")
1883 (version "0.1.4")
1884 (source (origin
1885 (method url-fetch)
1886 (uri (string-append "https://github.com/dpryan79/libBigWig/"
1887 "archive/" version ".tar.gz"))
1888 (file-name (string-append name "-" version ".tar.gz"))
1889 (sha256
1890 (base32
1891 "098rjh35pi4a9q83n8wiwvyzykjqj6l8q189p1xgfw4ghywdlvw1"))))
1892 (build-system gnu-build-system)
1893 (arguments
1894 `(#:test-target "test"
1895 #:make-flags
1896 (list "CC=gcc"
1897 (string-append "prefix=" (assoc-ref %outputs "out")))
1898 #:phases
1899 (modify-phases %standard-phases
1900 (delete 'configure)
1901 (add-before 'check 'disable-curl-test
1902 (lambda _
1903 (substitute* "Makefile"
1904 (("./test/testRemote.*") ""))
1905 #t))
1906 ;; This has been fixed with the upstream commit 4ff6959cd8a0, but
1907 ;; there has not yet been a release containing this change.
1908 (add-before 'install 'create-target-dirs
1909 (lambda* (#:key outputs #:allow-other-keys)
1910 (let ((out (assoc-ref outputs "out")))
1911 (mkdir-p (string-append out "/lib"))
1912 (mkdir-p (string-append out "/include"))
1913 #t))))))
1914 (inputs
1915 `(("zlib" ,zlib)
1916 ("curl" ,curl)))
1917 (native-inputs
1918 `(("doxygen" ,doxygen)))
1919 (home-page "https://github.com/dpryan79/libBigWig")
1920 (synopsis "C library for handling bigWig files")
1921 (description
1922 "This package provides a C library for parsing local and remote BigWig
1923 files.")
1924 (license license:expat)))
1925
1926 (define-public python-pybigwig
1927 (package
1928 (name "python-pybigwig")
1929 (version "0.2.5")
1930 (source (origin
1931 (method url-fetch)
1932 (uri (pypi-uri "pyBigWig" version))
1933 (sha256
1934 (base32
1935 "0yrpdxg3y0sny25x4w22lv1k47jzccqjmg7j4bp0hywklvp0hg7d"))
1936 (modules '((guix build utils)))
1937 (snippet
1938 '(begin
1939 ;; Delete bundled libBigWig sources
1940 (delete-file-recursively "libBigWig")))))
1941 (build-system python-build-system)
1942 (arguments
1943 `(#:phases
1944 (modify-phases %standard-phases
1945 (add-after 'unpack 'link-with-libBigWig
1946 (lambda* (#:key inputs #:allow-other-keys)
1947 (substitute* "setup.py"
1948 (("libs=\\[") "libs=[\"BigWig\", "))
1949 #t)))))
1950 (inputs
1951 `(("libbigwig" ,libbigwig)
1952 ("zlib" ,zlib)
1953 ("curl" ,curl)))
1954 (home-page "https://github.com/dpryan79/pyBigWig")
1955 (synopsis "Access bigWig files in Python using libBigWig")
1956 (description
1957 "This package provides Python bindings to the libBigWig library for
1958 accessing bigWig files.")
1959 (license license:expat)))
1960
1961 (define-public python2-pybigwig
1962 (package-with-python2 python-pybigwig))
1963
1964 (define-public python-dendropy
1965 (package
1966 (name "python-dendropy")
1967 (version "4.2.0")
1968 (source
1969 (origin
1970 (method url-fetch)
1971 (uri (pypi-uri "DendroPy" version))
1972 (sha256
1973 (base32
1974 "15c7s3d5gf19ljsxvq5advaa752wfi7pwrdjyhzmg85hccyvp47p"))
1975 (patches (search-patches "python-dendropy-fix-tests.patch"))))
1976 (build-system python-build-system)
1977 (home-page "http://packages.python.org/DendroPy/")
1978 (synopsis "Library for phylogenetics and phylogenetic computing")
1979 (description
1980 "DendroPy is a library for phylogenetics and phylogenetic computing: reading,
1981 writing, simulation, processing and manipulation of phylogenetic
1982 trees (phylogenies) and characters.")
1983 (license license:bsd-3)
1984 (properties `((python2-variant . ,(delay python2-dendropy))))))
1985
1986 (define-public python2-dendropy
1987 (let ((base (package-with-python2 (strip-python2-variant python-dendropy))))
1988 (package
1989 (inherit base)
1990 (arguments
1991 `(#:python ,python-2
1992 #:phases
1993 (modify-phases %standard-phases
1994 (replace 'check
1995 ;; There is currently a test failure that only happens on some
1996 ;; systems, and only using "setup.py test"
1997 (lambda _ (zero? (system* "nosetests")))))))
1998 (native-inputs `(("python2-nose" ,python2-nose)
1999 ,@(package-native-inputs base))))))
2000
2001 (define-public python-py2bit
2002 (package
2003 (name "python-py2bit")
2004 (version "0.2.1")
2005 (source
2006 (origin
2007 (method url-fetch)
2008 (uri (pypi-uri "py2bit" version))
2009 (sha256
2010 (base32
2011 "1cdf4qlmgwsh1f4k0wdv2sr8x9qn4366p0k3614vbd0fpqiarxrl"))))
2012 (build-system python-build-system)
2013 (home-page "https://github.com/dpryan79/py2bit")
2014 (synopsis "Access 2bit files using lib2bit")
2015 (description
2016 "This package provides Python bindings for lib2bit to access 2bit files
2017 with Python.")
2018 (license license:expat)))
2019
2020 (define-public deeptools
2021 (package
2022 (name "deeptools")
2023 (version "2.5.1")
2024 (source (origin
2025 (method url-fetch)
2026 (uri (string-append "https://github.com/deeptools/deepTools/"
2027 "archive/" version ".tar.gz"))
2028 (file-name (string-append name "-" version ".tar.gz"))
2029 (sha256
2030 (base32
2031 "1q8i12l2gvk4n2s8lhyzwhh9g4qbc8lrk5l7maz00yvd5g6z5540"))))
2032 (build-system python-build-system)
2033 (inputs
2034 `(("python-scipy" ,python-scipy)
2035 ("python-numpy" ,python-numpy)
2036 ("python-numpydoc" ,python-numpydoc)
2037 ("python-matplotlib" ,python-matplotlib)
2038 ("python-pysam" ,python-pysam)
2039 ("python-py2bit" ,python-py2bit)
2040 ("python-pybigwig" ,python-pybigwig)))
2041 (native-inputs
2042 `(("python-mock" ,python-mock) ;for tests
2043 ("python-nose" ,python-nose) ;for tests
2044 ("python-pytz" ,python-pytz))) ;for tests
2045 (home-page "https://github.com/deeptools/deepTools")
2046 (synopsis "Tools for normalizing and visualizing deep-sequencing data")
2047 (description
2048 "DeepTools addresses the challenge of handling the large amounts of data
2049 that are now routinely generated from DNA sequencing centers. To do so,
2050 deepTools contains useful modules to process the mapped reads data to create
2051 coverage files in standard bedGraph and bigWig file formats. By doing so,
2052 deepTools allows the creation of normalized coverage files or the comparison
2053 between two files (for example, treatment and control). Finally, using such
2054 normalized and standardized files, multiple visualizations can be created to
2055 identify enrichments with functional annotations of the genome.")
2056 (license license:gpl3+)))
2057
2058 (define-public diamond
2059 (package
2060 (name "diamond")
2061 (version "0.9.18")
2062 (source (origin
2063 (method url-fetch)
2064 (uri (string-append
2065 "https://github.com/bbuchfink/diamond/archive/v"
2066 version ".tar.gz"))
2067 (file-name (string-append name "-" version ".tar.gz"))
2068 (sha256
2069 (base32
2070 "1vi2nddmy7knrv8gsprwqp6a40k63n3f2dfvx22ipjhrg9xir96f"))))
2071 (build-system cmake-build-system)
2072 (arguments
2073 '(#:tests? #f ; no "check" target
2074 #:phases
2075 (modify-phases %standard-phases
2076 (add-after 'unpack 'remove-native-compilation
2077 (lambda _
2078 (substitute* "CMakeLists.txt" (("-march=native") ""))
2079 #t)))))
2080 (inputs
2081 `(("zlib" ,zlib)))
2082 (home-page "https://github.com/bbuchfink/diamond")
2083 (synopsis "Accelerated BLAST compatible local sequence aligner")
2084 (description
2085 "DIAMOND is a BLAST-compatible local aligner for mapping protein and
2086 translated DNA query sequences against a protein reference database (BLASTP
2087 and BLASTX alignment mode). The speedup over BLAST is up to 20,000 on short
2088 reads at a typical sensitivity of 90-99% relative to BLAST depending on the
2089 data and settings.")
2090 (license license:agpl3+)))
2091
2092 (define-public discrover
2093 (package
2094 (name "discrover")
2095 (version "1.6.0")
2096 (source
2097 (origin
2098 (method url-fetch)
2099 (uri (string-append "https://github.com/maaskola/discrover/archive/"
2100 version ".tar.gz"))
2101 (file-name (string-append name "-" version ".tar.gz"))
2102 (sha256
2103 (base32
2104 "0rah9ja4m0rl5mldd6vag9rwrivw1zrqxssfq8qx64m7961fp68k"))))
2105 (build-system cmake-build-system)
2106 (arguments
2107 `(#:tests? #f ; there are no tests
2108 #:phases
2109 (modify-phases %standard-phases
2110 (add-after 'unpack 'add-missing-includes
2111 (lambda _
2112 (substitute* "src/executioninformation.hpp"
2113 (("#define EXECUTIONINFORMATION_HPP" line)
2114 (string-append line "\n#include <random>")))
2115 (substitute* "src/plasma/fasta.hpp"
2116 (("#define FASTA_HPP" line)
2117 (string-append line "\n#include <random>")))
2118 #t)))))
2119 (inputs
2120 `(("boost" ,boost)
2121 ("cairo" ,cairo)))
2122 (native-inputs
2123 `(("texlive" ,texlive)
2124 ("imagemagick" ,imagemagick)))
2125 (home-page "http://dorina.mdc-berlin.de/public/rajewsky/discrover/")
2126 (synopsis "Discover discriminative nucleotide sequence motifs")
2127 (description "Discrover is a motif discovery method to find binding sites
2128 of nucleic acid binding proteins.")
2129 (license license:gpl3+)))
2130
2131 (define-public eigensoft
2132 (let ((revision "1")
2133 (commit "b14d1e202e21e532536ff8004f0419cd5e259dc7"))
2134 (package
2135 (name "eigensoft")
2136 (version (string-append "6.1.2-"
2137 revision "."
2138 (string-take commit 9)))
2139 (source
2140 (origin
2141 (method git-fetch)
2142 (uri (git-reference
2143 (url "https://github.com/DReichLab/EIG.git")
2144 (commit commit)))
2145 (file-name (string-append "eigensoft-" commit "-checkout"))
2146 (sha256
2147 (base32
2148 "0f5m6k2j5c16xc3xbywcs989xyc26ncy1zfzp9j9n55n9r4xcaiq"))
2149 (modules '((guix build utils)))
2150 ;; Remove pre-built binaries.
2151 (snippet '(begin
2152 (delete-file-recursively "bin")
2153 (mkdir "bin")
2154 #t))))
2155 (build-system gnu-build-system)
2156 (arguments
2157 `(#:tests? #f ; There are no tests.
2158 #:make-flags '("CC=gcc")
2159 #:phases
2160 (modify-phases %standard-phases
2161 ;; There is no configure phase, but the Makefile is in a
2162 ;; sub-directory.
2163 (replace 'configure
2164 (lambda _
2165 (chdir "src")
2166 ;; The link flags are incomplete.
2167 (substitute* "Makefile"
2168 (("-lgsl") "-lgsl -lm -llapack -llapacke -lpthread"))
2169 #t))
2170 ;; The provided install target only copies executables to
2171 ;; the "bin" directory in the build root.
2172 (add-after 'install 'actually-install
2173 (lambda* (#:key outputs #:allow-other-keys)
2174 (let* ((out (assoc-ref outputs "out"))
2175 (bin (string-append out "/bin")))
2176 (for-each (lambda (file)
2177 (install-file file bin))
2178 (find-files "../bin" ".*"))
2179 #t))))))
2180 (inputs
2181 `(("gsl" ,gsl)
2182 ("lapack" ,lapack)
2183 ("openblas" ,openblas)
2184 ("perl" ,perl)
2185 ("gfortran" ,gfortran "lib")))
2186 (home-page "https://github.com/DReichLab/EIG")
2187 (synopsis "Tools for population genetics")
2188 (description "The EIGENSOFT package provides tools for population
2189 genetics and stratification correction. EIGENSOFT implements methods commonly
2190 used in population genetics analyses such as PCA, computation of Tracy-Widom
2191 statistics, and finding related individuals in structured populations. It
2192 comes with a built-in plotting script and supports multiple file formats and
2193 quantitative phenotypes.")
2194 ;; The license of the eigensoft tools is Expat, but since it's
2195 ;; linking with the GNU Scientific Library (GSL) the effective
2196 ;; license is the GPL.
2197 (license license:gpl3+))))
2198
2199 (define-public edirect
2200 (package
2201 (name "edirect")
2202 (version "4.10")
2203 (source (origin
2204 (method url-fetch)
2205 (uri (string-append "ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/"
2206 "versions/2016-05-03/edirect.tar.gz"))
2207 (sha256
2208 (base32
2209 "15zsprak5yh8c1yrz4r1knmb5s8qcmdid4xdhkh3lqcv64l60hli"))))
2210 (build-system perl-build-system)
2211 (arguments
2212 `(#:tests? #f ;no "check" target
2213 #:phases
2214 (modify-phases %standard-phases
2215 (delete 'configure)
2216 (delete 'build)
2217 (replace 'install
2218 (lambda* (#:key outputs #:allow-other-keys)
2219 (let ((target (string-append (assoc-ref outputs "out")
2220 "/bin")))
2221 (mkdir-p target)
2222 (install-file "edirect.pl" target)
2223 #t)))
2224 (add-after
2225 'install 'wrap-program
2226 (lambda* (#:key inputs outputs #:allow-other-keys)
2227 ;; Make sure 'edirect.pl' finds all perl inputs at runtime.
2228 (let* ((out (assoc-ref outputs "out"))
2229 (path (getenv "PERL5LIB")))
2230 (wrap-program (string-append out "/bin/edirect.pl")
2231 `("PERL5LIB" ":" prefix (,path)))))))))
2232 (inputs
2233 `(("perl-html-parser" ,perl-html-parser)
2234 ("perl-encode-locale" ,perl-encode-locale)
2235 ("perl-file-listing" ,perl-file-listing)
2236 ("perl-html-tagset" ,perl-html-tagset)
2237 ("perl-html-tree" ,perl-html-tree)
2238 ("perl-http-cookies" ,perl-http-cookies)
2239 ("perl-http-date" ,perl-http-date)
2240 ("perl-http-message" ,perl-http-message)
2241 ("perl-http-negotiate" ,perl-http-negotiate)
2242 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
2243 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
2244 ("perl-net-http" ,perl-net-http)
2245 ("perl-uri" ,perl-uri)
2246 ("perl-www-robotrules" ,perl-www-robotrules)
2247 ("perl" ,perl)))
2248 (home-page "http://www.ncbi.nlm.nih.gov/books/NBK179288/")
2249 (synopsis "Tools for accessing the NCBI's set of databases")
2250 (description
2251 "Entrez Direct (EDirect) is a method for accessing the National Center
2252 for Biotechnology Information's (NCBI) set of interconnected
2253 databases (publication, sequence, structure, gene, variation, expression,
2254 etc.) from a terminal. Functions take search terms from command-line
2255 arguments. Individual operations are combined to build multi-step queries.
2256 Record retrieval and formatting normally complete the process.
2257
2258 EDirect also provides an argument-driven function that simplifies the
2259 extraction of data from document summaries or other results that are returned
2260 in structured XML format. This can eliminate the need for writing custom
2261 software to answer ad hoc questions.")
2262 (license license:public-domain)))
2263
2264 (define-public exonerate
2265 (package
2266 (name "exonerate")
2267 (version "2.4.0")
2268 (source
2269 (origin
2270 (method url-fetch)
2271 (uri
2272 (string-append
2273 "http://ftp.ebi.ac.uk/pub/software/vertebrategenomics/exonerate/"
2274 "exonerate-" version ".tar.gz"))
2275 (sha256
2276 (base32
2277 "0hj0m9xygiqsdxvbg79wq579kbrx1mdrabi2bzqz2zn9qwfjcjgq"))))
2278 (build-system gnu-build-system)
2279 (arguments
2280 `(#:parallel-build? #f)) ; Building in parallel fails on some machines.
2281 (native-inputs
2282 `(("pkg-config" ,pkg-config)))
2283 (inputs
2284 `(("glib" ,glib)))
2285 (home-page
2286 "https://www.ebi.ac.uk/about/vertebrate-genomics/software/exonerate")
2287 (synopsis "Generic tool for biological sequence alignment")
2288 (description
2289 "Exonerate is a generic tool for pairwise sequence comparison. It allows
2290 the alignment of sequences using a many alignment models, either exhaustive
2291 dynamic programming or a variety of heuristics.")
2292 (license license:gpl3)))
2293
2294 (define-public express
2295 (package
2296 (name "express")
2297 (version "1.5.1")
2298 (source (origin
2299 (method url-fetch)
2300 (uri
2301 (string-append
2302 "http://bio.math.berkeley.edu/eXpress/downloads/express-"
2303 version "/express-" version "-src.tgz"))
2304 (sha256
2305 (base32
2306 "03rczxd0gjp2l1jxcmjfmf5j94j77zqyxa6x063zsc585nj40n0c"))))
2307 (build-system cmake-build-system)
2308 (arguments
2309 `(#:tests? #f ;no "check" target
2310 #:phases
2311 (modify-phases %standard-phases
2312 (add-after 'unpack 'use-shared-boost-libs-and-set-bamtools-paths
2313 (lambda* (#:key inputs #:allow-other-keys)
2314 (substitute* "CMakeLists.txt"
2315 (("set\\(Boost_USE_STATIC_LIBS ON\\)")
2316 "set(Boost_USE_STATIC_LIBS OFF)")
2317 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/bamtools/include")
2318 (string-append (assoc-ref inputs "bamtools") "/include/bamtools")))
2319 (substitute* "src/CMakeLists.txt"
2320 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/\\.\\./bamtools/lib")
2321 (string-append (assoc-ref inputs "bamtools") "/lib/bamtools")))
2322 #t)))))
2323 (inputs
2324 `(("boost" ,boost)
2325 ("bamtools" ,bamtools)
2326 ("protobuf" ,protobuf)
2327 ("zlib" ,zlib)))
2328 (home-page "http://bio.math.berkeley.edu/eXpress")
2329 (synopsis "Streaming quantification for high-throughput genomic sequencing")
2330 (description
2331 "eXpress is a streaming tool for quantifying the abundances of a set of
2332 target sequences from sampled subsequences. Example applications include
2333 transcript-level RNA-Seq quantification, allele-specific/haplotype expression
2334 analysis (from RNA-Seq), transcription factor binding quantification in
2335 ChIP-Seq, and analysis of metagenomic data.")
2336 (license license:artistic2.0)))
2337
2338 (define-public express-beta-diversity
2339 (package
2340 (name "express-beta-diversity")
2341 (version "1.0.7")
2342 (source (origin
2343 (method url-fetch)
2344 (uri
2345 (string-append
2346 "https://github.com/dparks1134/ExpressBetaDiversity/archive/v"
2347 version ".tar.gz"))
2348 (file-name (string-append name "-" version ".tar.gz"))
2349 (sha256
2350 (base32
2351 "1djvdlmqvjf6h0zq7w36y8cl5cli6rgj86x65znl48agnwmzxfxr"))))
2352 (build-system gnu-build-system)
2353 (arguments
2354 `(#:phases
2355 (modify-phases %standard-phases
2356 (delete 'configure)
2357 (add-before 'build 'enter-source (lambda _ (chdir "source") #t))
2358 (replace 'check
2359 (lambda _ (zero? (system* "../bin/ExpressBetaDiversity"
2360 "-u"))))
2361 (add-after 'check 'exit-source (lambda _ (chdir "..") #t))
2362 (replace 'install
2363 (lambda* (#:key outputs #:allow-other-keys)
2364 (let ((bin (string-append (assoc-ref outputs "out")
2365 "/bin")))
2366 (mkdir-p bin)
2367 (install-file "scripts/convertToEBD.py" bin)
2368 (install-file "bin/ExpressBetaDiversity" bin)
2369 #t))))))
2370 (inputs
2371 `(("python" ,python-2)))
2372 (home-page "http://kiwi.cs.dal.ca/Software/ExpressBetaDiversity")
2373 (synopsis "Taxon- and phylogenetic-based beta diversity measures")
2374 (description
2375 "Express Beta Diversity (EBD) calculates ecological beta diversity
2376 (dissimilarity) measures between biological communities. EBD implements a
2377 variety of diversity measures including those that make use of phylogenetic
2378 similarity of community members.")
2379 (license license:gpl3+)))
2380
2381 (define-public fasttree
2382 (package
2383 (name "fasttree")
2384 (version "2.1.10")
2385 (source (origin
2386 (method url-fetch)
2387 (uri (string-append
2388 "http://www.microbesonline.org/fasttree/FastTree-"
2389 version ".c"))
2390 (sha256
2391 (base32
2392 "0vcjdvy1j4m702vmak4svbfkrpcw63k7wymfksjp9a982zy8kjsl"))))
2393 (build-system gnu-build-system)
2394 (arguments
2395 `(#:tests? #f ; no "check" target
2396 #:phases
2397 (modify-phases %standard-phases
2398 (delete 'unpack)
2399 (delete 'configure)
2400 (replace 'build
2401 (lambda* (#:key source #:allow-other-keys)
2402 (and (zero? (system* "gcc"
2403 "-O3"
2404 "-finline-functions"
2405 "-funroll-loops"
2406 "-Wall"
2407 "-o"
2408 "FastTree"
2409 source
2410 "-lm"))
2411 (zero? (system* "gcc"
2412 "-DOPENMP"
2413 "-fopenmp"
2414 "-O3"
2415 "-finline-functions"
2416 "-funroll-loops"
2417 "-Wall"
2418 "-o"
2419 "FastTreeMP"
2420 source
2421 "-lm")))))
2422 (replace 'install
2423 (lambda* (#:key outputs #:allow-other-keys)
2424 (let ((bin (string-append (assoc-ref outputs "out")
2425 "/bin")))
2426 (mkdir-p bin)
2427 (install-file "FastTree" bin)
2428 (install-file "FastTreeMP" bin)
2429 #t))))))
2430 (home-page "http://www.microbesonline.org/fasttree")
2431 (synopsis "Infers approximately-maximum-likelihood phylogenetic trees")
2432 (description
2433 "FastTree can handle alignments with up to a million of sequences in a
2434 reasonable amount of time and memory. For large alignments, FastTree is
2435 100-1,000 times faster than PhyML 3.0 or RAxML 7.")
2436 (license license:gpl2+)))
2437
2438 (define-public fastx-toolkit
2439 (package
2440 (name "fastx-toolkit")
2441 (version "0.0.14")
2442 (source (origin
2443 (method url-fetch)
2444 (uri
2445 (string-append
2446 "https://github.com/agordon/fastx_toolkit/releases/download/"
2447 version "/fastx_toolkit-" version ".tar.bz2"))
2448 (sha256
2449 (base32
2450 "01jqzw386873sr0pjp1wr4rn8fsga2vxs1qfmicvx1pjr72007wy"))))
2451 (build-system gnu-build-system)
2452 (inputs
2453 `(("libgtextutils" ,libgtextutils)))
2454 (native-inputs
2455 `(("pkg-config" ,pkg-config)))
2456 (home-page "http://hannonlab.cshl.edu/fastx_toolkit/")
2457 (synopsis "Tools for FASTA/FASTQ file preprocessing")
2458 (description
2459 "The FASTX-Toolkit is a collection of command line tools for Short-Reads
2460 FASTA/FASTQ files preprocessing.
2461
2462 Next-Generation sequencing machines usually produce FASTA or FASTQ files,
2463 containing multiple short-reads sequences. The main processing of such
2464 FASTA/FASTQ files is mapping the sequences to reference genomes. However, it
2465 is sometimes more productive to preprocess the files before mapping the
2466 sequences to the genome---manipulating the sequences to produce better mapping
2467 results. The FASTX-Toolkit tools perform some of these preprocessing tasks.")
2468 (license license:agpl3+)))
2469
2470 (define-public flexbar
2471 (package
2472 (name "flexbar")
2473 (version "2.5")
2474 (source (origin
2475 (method url-fetch)
2476 (uri
2477 (string-append "mirror://sourceforge/flexbar/"
2478 version "/flexbar_v" version "_src.tgz"))
2479 (sha256
2480 (base32
2481 "13jaykc3y1x8y5nn9j8ljnb79s5y51kyxz46hdmvvjj6qhyympmf"))))
2482 (build-system cmake-build-system)
2483 (arguments
2484 `(#:configure-flags (list
2485 (string-append "-DFLEXBAR_BINARY_DIR="
2486 (assoc-ref %outputs "out")
2487 "/bin/"))
2488 #:phases
2489 (modify-phases %standard-phases
2490 (replace 'check
2491 (lambda* (#:key outputs #:allow-other-keys)
2492 (setenv "PATH" (string-append
2493 (assoc-ref outputs "out") "/bin:"
2494 (getenv "PATH")))
2495 (chdir "../flexbar_v2.5_src/test")
2496 (zero? (system* "bash" "flexbar_validate.sh"))))
2497 (delete 'install))))
2498 (inputs
2499 `(("tbb" ,tbb)
2500 ("zlib" ,zlib)))
2501 (native-inputs
2502 `(("pkg-config" ,pkg-config)
2503 ("seqan" ,seqan)))
2504 (home-page "http://flexbar.sourceforge.net")
2505 (synopsis "Barcode and adapter removal tool for sequencing platforms")
2506 (description
2507 "Flexbar preprocesses high-throughput nucleotide sequencing data
2508 efficiently. It demultiplexes barcoded runs and removes adapter sequences.
2509 Moreover, trimming and filtering features are provided. Flexbar increases
2510 read mapping rates and improves genome and transcriptome assemblies. It
2511 supports next-generation sequencing data in fasta/q and csfasta/q format from
2512 Illumina, Roche 454, and the SOLiD platform.")
2513 (license license:gpl3)))
2514
2515 (define-public fraggenescan
2516 (package
2517 (name "fraggenescan")
2518 (version "1.30")
2519 (source
2520 (origin
2521 (method url-fetch)
2522 (uri
2523 (string-append "mirror://sourceforge/fraggenescan/"
2524 "FragGeneScan" version ".tar.gz"))
2525 (sha256
2526 (base32 "158dcnwczgcyhwm4qlx19sanrwgdpzf6bn2y57mbpx55lkgz1mzj"))))
2527 (build-system gnu-build-system)
2528 (arguments
2529 `(#:phases
2530 (modify-phases %standard-phases
2531 (delete 'configure)
2532 (add-before 'build 'patch-paths
2533 (lambda* (#:key outputs #:allow-other-keys)
2534 (let* ((out (string-append (assoc-ref outputs "out")))
2535 (share (string-append out "/share/fraggenescan/")))
2536 (substitute* "run_FragGeneScan.pl"
2537 (("system\\(\"rm")
2538 (string-append "system(\"" (which "rm")))
2539 (("system\\(\"mv")
2540 (string-append "system(\"" (which "mv")))
2541 (("\\\"awk") (string-append "\"" (which "awk")))
2542 ;; This script and other programs expect the training files
2543 ;; to be in the non-standard location bin/train/XXX. Change
2544 ;; this to be share/fraggenescan/train/XXX instead.
2545 (("^\\$train.file = \\$dir.*")
2546 (string-append "$train_file = \""
2547 share
2548 "train/\".$FGS_train_file;")))
2549 (substitute* "run_hmm.c"
2550 (("^ strcat\\(train_dir, \\\"train/\\\"\\);")
2551 (string-append " strcpy(train_dir, \"" share "/train/\");"))))
2552 #t))
2553 (replace 'build
2554 (lambda _ (and (zero? (system* "make" "clean"))
2555 (zero? (system* "make" "fgs")))))
2556 (replace 'install
2557 (lambda* (#:key outputs #:allow-other-keys)
2558 (let* ((out (string-append (assoc-ref outputs "out")))
2559 (bin (string-append out "/bin/"))
2560 (share (string-append out "/share/fraggenescan/train")))
2561 (install-file "run_FragGeneScan.pl" bin)
2562 (install-file "FragGeneScan" bin)
2563 (copy-recursively "train" share))))
2564 (delete 'check)
2565 (add-after 'install 'post-install-check
2566 ;; In lieu of 'make check', run one of the examples and check the
2567 ;; output files gets created.
2568 (lambda* (#:key outputs #:allow-other-keys)
2569 (let* ((out (string-append (assoc-ref outputs "out")))
2570 (bin (string-append out "/bin/"))
2571 (frag (string-append bin "run_FragGeneScan.pl")))
2572 (and (zero? (system* frag ; Test complete genome.
2573 "-genome=./example/NC_000913.fna"
2574 "-out=./test2"
2575 "-complete=1"
2576 "-train=complete"))
2577 (file-exists? "test2.faa")
2578 (file-exists? "test2.ffn")
2579 (file-exists? "test2.gff")
2580 (file-exists? "test2.out")
2581 (zero? (system* ; Test incomplete sequences.
2582 frag
2583 "-genome=./example/NC_000913-fgs.ffn"
2584 "-out=out"
2585 "-complete=0"
2586 "-train=454_30")))))))))
2587 (inputs
2588 `(("perl" ,perl)
2589 ("python" ,python-2))) ;not compatible with python 3.
2590 (home-page "https://sourceforge.net/projects/fraggenescan/")
2591 (synopsis "Finds potentially fragmented genes in short reads")
2592 (description
2593 "FragGeneScan is a program for predicting bacterial and archaeal genes in
2594 short and error-prone DNA sequencing reads. It can also be applied to predict
2595 genes in incomplete assemblies or complete genomes.")
2596 ;; GPL3+ according to private correspondense with the authors.
2597 (license license:gpl3+)))
2598
2599 (define-public fxtract
2600 (let ((util-commit "776ca85a18a47492af3794745efcb4a905113115"))
2601 (package
2602 (name "fxtract")
2603 (version "2.3")
2604 (source
2605 (origin
2606 (method url-fetch)
2607 (uri (string-append
2608 "https://github.com/ctSkennerton/fxtract/archive/"
2609 version ".tar.gz"))
2610 (file-name (string-append "ctstennerton-util-"
2611 (string-take util-commit 7)
2612 "-checkout"))
2613 (sha256
2614 (base32
2615 "0275cfdhis8517hm01is62062swmi06fxzifq7mr3knbbxjlaiwj"))))
2616 (build-system gnu-build-system)
2617 (arguments
2618 `(#:make-flags (list
2619 (string-append "PREFIX=" (assoc-ref %outputs "out"))
2620 "CC=gcc")
2621 #:test-target "fxtract_test"
2622 #:phases
2623 (modify-phases %standard-phases
2624 (delete 'configure)
2625 (add-before 'build 'copy-util
2626 (lambda* (#:key inputs #:allow-other-keys)
2627 (rmdir "util")
2628 (copy-recursively (assoc-ref inputs "ctskennerton-util") "util")
2629 #t))
2630 ;; Do not use make install as this requires additional dependencies.
2631 (replace 'install
2632 (lambda* (#:key outputs #:allow-other-keys)
2633 (let* ((out (assoc-ref outputs "out"))
2634 (bin (string-append out"/bin")))
2635 (install-file "fxtract" bin)
2636 #t))))))
2637 (inputs
2638 `(("pcre" ,pcre)
2639 ("zlib" ,zlib)))
2640 (native-inputs
2641 ;; ctskennerton-util is licensed under GPL2.
2642 `(("ctskennerton-util"
2643 ,(origin
2644 (method git-fetch)
2645 (uri (git-reference
2646 (url "https://github.com/ctSkennerton/util.git")
2647 (commit util-commit)))
2648 (file-name (string-append
2649 "ctstennerton-util-" util-commit "-checkout"))
2650 (sha256
2651 (base32
2652 "0cls1hd4vgj3f36fpzzg4xc77d6f3hpc60cbpfmn2gdr7ykzzad7"))))))
2653 (home-page "https://github.com/ctSkennerton/fxtract")
2654 (synopsis "Extract sequences from FASTA and FASTQ files")
2655 (description
2656 "Fxtract extracts sequences from a protein or nucleotide fastx (FASTA
2657 or FASTQ) file given a subsequence. It uses a simple substring search for
2658 basic tasks but can change to using POSIX regular expressions, PCRE, hash
2659 lookups or multi-pattern searching as required. By default fxtract looks in
2660 the sequence of each record but can also be told to look in the header,
2661 comment or quality sections.")
2662 ;; 'util' requires SSE instructions.
2663 (supported-systems '("x86_64-linux"))
2664 (license license:expat))))
2665
2666 (define-public gemma
2667 (package
2668 (name "gemma")
2669 (version "0.96")
2670 (source (origin
2671 (method url-fetch)
2672 (uri (string-append "https://github.com/xiangzhou/GEMMA/archive/v"
2673 version ".tar.gz"))
2674 (file-name (string-append name "-" version ".tar.gz"))
2675 (sha256
2676 (base32
2677 "055ynn16gd12pf78n4vr2a9jlwsbwzajpdnf2y2yilg1krfff222"))
2678 (patches (search-patches "gemma-intel-compat.patch"))))
2679 (inputs
2680 `(("gsl" ,gsl)
2681 ("lapack" ,lapack)
2682 ("zlib" ,zlib)))
2683 (build-system gnu-build-system)
2684 (arguments
2685 `(#:make-flags
2686 '(,@(match (%current-system)
2687 ("x86_64-linux"
2688 '("FORCE_DYNAMIC=1"))
2689 ("i686-linux"
2690 '("FORCE_DYNAMIC=1" "FORCE_32BIT=1"))
2691 (_
2692 '("FORCE_DYNAMIC=1" "NO_INTEL_COMPAT=1"))))
2693 #:phases
2694 (modify-phases %standard-phases
2695 (delete 'configure)
2696 (add-before 'build 'bin-mkdir
2697 (lambda _
2698 (mkdir-p "bin")
2699 #t))
2700 (replace 'install
2701 (lambda* (#:key outputs #:allow-other-keys)
2702 (let ((out (assoc-ref outputs "out")))
2703 (install-file "bin/gemma"
2704 (string-append
2705 out "/bin")))
2706 #t)))
2707 #:tests? #f)) ; no tests included yet
2708 (home-page "https://github.com/xiangzhou/GEMMA")
2709 (synopsis "Tool for genome-wide efficient mixed model association")
2710 (description
2711 "Genome-wide Efficient Mixed Model Association (GEMMA) provides a
2712 standard linear mixed model resolver with application in genome-wide
2713 association studies (GWAS).")
2714 (license license:gpl3)))
2715
2716 (define-public grit
2717 (package
2718 (name "grit")
2719 (version "2.0.2")
2720 (source (origin
2721 (method url-fetch)
2722 (uri (string-append
2723 "https://github.com/nboley/grit/archive/"
2724 version ".tar.gz"))
2725 (file-name (string-append name "-" version ".tar.gz"))
2726 (sha256
2727 (base32
2728 "157in84dj70wimbind3x7sy1whs3h57qfgcnj2s6lrd38fbrb7mj"))))
2729 (build-system python-build-system)
2730 (arguments
2731 `(#:python ,python-2
2732 #:phases
2733 (modify-phases %standard-phases
2734 (add-after 'unpack 'generate-from-cython-sources
2735 (lambda* (#:key inputs outputs #:allow-other-keys)
2736 ;; Delete these C files to force fresh generation from pyx sources.
2737 (delete-file "grit/sparsify_support_fns.c")
2738 (delete-file "grit/call_peaks_support_fns.c")
2739 (substitute* "setup.py"
2740 (("Cython.Setup") "Cython.Build")
2741 ;; Add numpy include path to fix compilation
2742 (("pyx\", \\]")
2743 (string-append "pyx\", ], include_dirs = ['"
2744 (assoc-ref inputs "python-numpy")
2745 "/lib/python2.7/site-packages/numpy/core/include/"
2746 "']")))
2747 #t)))))
2748 (inputs
2749 `(("python-scipy" ,python2-scipy)
2750 ("python-numpy" ,python2-numpy)
2751 ("python-pysam" ,python2-pysam)
2752 ("python-networkx" ,python2-networkx)))
2753 (native-inputs
2754 `(("python-cython" ,python2-cython)))
2755 (home-page "http://grit-bio.org")
2756 (synopsis "Tool for integrative analysis of RNA-seq type assays")
2757 (description
2758 "GRIT is designed to use RNA-seq, TES, and TSS data to build and quantify
2759 full length transcript models. When none of these data sources are available,
2760 GRIT can be run by providing a candidate set of TES or TSS sites. In
2761 addition, GRIT can merge in reference junctions and gene boundaries. GRIT can
2762 also be run in quantification mode, where it uses a provided GTF file and just
2763 estimates transcript expression.")
2764 (license license:gpl3+)))
2765
2766 (define-public hisat
2767 (package
2768 (name "hisat")
2769 (version "0.1.4")
2770 (source (origin
2771 (method url-fetch)
2772 (uri (string-append
2773 "http://ccb.jhu.edu/software/hisat/downloads/hisat-"
2774 version "-beta-source.zip"))
2775 (sha256
2776 (base32
2777 "1k381ydranqxp09yf2y7w1d0chz5d59vb6jchi89hbb0prq19lk5"))))
2778 (build-system gnu-build-system)
2779 (arguments
2780 `(#:tests? #f ;no check target
2781 #:make-flags '("allall"
2782 ;; Disable unsupported `popcnt' instructions on
2783 ;; architectures other than x86_64
2784 ,@(if (string-prefix? "x86_64"
2785 (or (%current-target-system)
2786 (%current-system)))
2787 '()
2788 '("POPCNT_CAPABILITY=0")))
2789 #:phases
2790 (modify-phases %standard-phases
2791 (add-after 'unpack 'patch-sources
2792 (lambda _
2793 ;; XXX Cannot use snippet because zip files are not supported
2794 (substitute* "Makefile"
2795 (("^CC = .*$") "CC = gcc")
2796 (("^CPP = .*$") "CPP = g++")
2797 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
2798 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
2799 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
2800 (substitute* '("hisat-build" "hisat-inspect")
2801 (("/usr/bin/env") (which "env")))
2802 #t))
2803 (replace 'install
2804 (lambda* (#:key outputs #:allow-other-keys)
2805 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
2806 (for-each (lambda (file)
2807 (install-file file bin))
2808 (find-files
2809 "."
2810 "hisat(-(build|align|inspect)(-(s|l)(-debug)*)*)*$")))
2811 #t))
2812 (delete 'configure))))
2813 (native-inputs
2814 `(("unzip" ,unzip)))
2815 (inputs
2816 `(("perl" ,perl)
2817 ("python" ,python)
2818 ("zlib" ,zlib)))
2819 ;; Non-portable SSE instructions are used so building fails on platforms
2820 ;; other than x86_64.
2821 (supported-systems '("x86_64-linux"))
2822 (home-page "http://ccb.jhu.edu/software/hisat/index.shtml")
2823 (synopsis "Hierarchical indexing for spliced alignment of transcripts")
2824 (description
2825 "HISAT is a fast and sensitive spliced alignment program for mapping
2826 RNA-seq reads. In addition to one global FM index that represents a whole
2827 genome, HISAT uses a large set of small FM indexes that collectively cover the
2828 whole genome. These small indexes (called local indexes) combined with
2829 several alignment strategies enable effective alignment of RNA-seq reads, in
2830 particular, reads spanning multiple exons.")
2831 (license license:gpl3+)))
2832
2833 (define-public hisat2
2834 (package
2835 (name "hisat2")
2836 (version "2.0.5")
2837 (source
2838 (origin
2839 (method url-fetch)
2840 ;; FIXME: a better source URL is
2841 ;; (string-append "ftp://ftp.ccb.jhu.edu/pub/infphilo/hisat2"
2842 ;; "/downloads/hisat2-" version "-source.zip")
2843 ;; with hash "0lywnr8kijwsc2aw10dwxic0n0yvip6fl3rjlvc8zzwahamy4x7g"
2844 ;; but it is currently unavailable.
2845 (uri "https://github.com/infphilo/hisat2/archive/cba6e8cb.tar.gz")
2846 (file-name (string-append name "-" version ".tar.gz"))
2847 (sha256
2848 (base32
2849 "1mf2hdsyv7cd97xm9mp9a4qws02yrj95y6w6f6cdwnq0klp81r50"))))
2850 (build-system gnu-build-system)
2851 (arguments
2852 `(#:tests? #f ; no check target
2853 #:make-flags (list "CC=gcc" "CXX=g++" "allall")
2854 #:modules ((guix build gnu-build-system)
2855 (guix build utils)
2856 (srfi srfi-26))
2857 #:phases
2858 (modify-phases %standard-phases
2859 (add-after 'unpack 'make-deterministic
2860 (lambda _
2861 (substitute* "Makefile"
2862 (("`date`") "0"))
2863 #t))
2864 (delete 'configure)
2865 (replace 'install
2866 (lambda* (#:key outputs #:allow-other-keys)
2867 (let* ((out (assoc-ref outputs "out"))
2868 (bin (string-append out "/bin/"))
2869 (doc (string-append out "/share/doc/hisat2/")))
2870 (for-each
2871 (cut install-file <> bin)
2872 (find-files "."
2873 "hisat2(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))
2874 (mkdir-p doc)
2875 (install-file "doc/manual.inc.html" doc))
2876 #t)))))
2877 (native-inputs
2878 `(("unzip" ,unzip) ; needed for archive from ftp
2879 ("perl" ,perl)
2880 ("pandoc" ,ghc-pandoc))) ; for documentation
2881 (home-page "http://ccb.jhu.edu/software/hisat2/index.shtml")
2882 (synopsis "Graph-based alignment of genomic sequencing reads")
2883 (description "HISAT2 is a fast and sensitive alignment program for mapping
2884 next-generation sequencing reads (both DNA and RNA) to a population of human
2885 genomes (as well as to a single reference genome). In addition to using one
2886 global @dfn{graph FM} (GFM) index that represents a population of human
2887 genomes, HISAT2 uses a large set of small GFM indexes that collectively cover
2888 the whole genome. These small indexes, combined with several alignment
2889 strategies, enable rapid and accurate alignment of sequencing reads. This new
2890 indexing scheme is called a @dfn{Hierarchical Graph FM index} (HGFM).")
2891 ;; HISAT2 contains files from Bowtie2, which is released under
2892 ;; GPLv2 or later. The HISAT2 source files are released under
2893 ;; GPLv3 or later.
2894 (license license:gpl3+)))
2895
2896 (define-public hmmer
2897 (package
2898 (name "hmmer")
2899 (version "3.1b2")
2900 (source
2901 (origin
2902 (method url-fetch)
2903 (uri (string-append
2904 "http://eddylab.org/software/hmmer"
2905 (version-major version) "/"
2906 version "/hmmer-" version ".tar.gz"))
2907 (sha256
2908 (base32
2909 "0djmgc0pfli0jilfx8hql1axhwhqxqb8rxg2r5rg07aw73sfs5nx"))
2910 (patches (search-patches "hmmer-remove-cpu-specificity.patch"))))
2911 (build-system gnu-build-system)
2912 (native-inputs `(("perl" ,perl)))
2913 (home-page "http://hmmer.org/")
2914 (synopsis "Biosequence analysis using profile hidden Markov models")
2915 (description
2916 "HMMER is used for searching sequence databases for homologs of protein
2917 sequences, and for making protein sequence alignments. It implements methods
2918 using probabilistic models called profile hidden Markov models (profile
2919 HMMs).")
2920 (license (list license:gpl3+
2921 ;; The bundled library 'easel' is distributed
2922 ;; under The Janelia Farm Software License.
2923 (license:non-copyleft
2924 "file://easel/LICENSE"
2925 "See easel/LICENSE in the distribution.")))))
2926
2927 (define-public htseq
2928 (package
2929 (name "htseq")
2930 (version "0.9.1")
2931 (source (origin
2932 (method url-fetch)
2933 (uri (pypi-uri "HTSeq" version))
2934 (sha256
2935 (base32
2936 "11flgb1381xdhk43bzbfm3vhnszkpqg6jk76rpa5xd1zbrvvlnxg"))))
2937 (build-system python-build-system)
2938 (native-inputs
2939 `(("python-cython" ,python-cython)))
2940 ;; Numpy needs to be propagated when htseq is used as a Python library.
2941 (propagated-inputs
2942 `(("python-numpy" ,python-numpy)))
2943 (inputs
2944 `(("python-pysam" ,python-pysam)
2945 ("python-matplotlib" ,python-matplotlib)))
2946 (home-page "http://www-huber.embl.de/users/anders/HTSeq/")
2947 (synopsis "Analysing high-throughput sequencing data with Python")
2948 (description
2949 "HTSeq is a Python package that provides infrastructure to process data
2950 from high-throughput sequencing assays.")
2951 (license license:gpl3+)))
2952
2953 (define-public python2-htseq
2954 (package-with-python2 htseq))
2955
2956 (define-public java-htsjdk
2957 (package
2958 (name "java-htsjdk")
2959 (version "2.3.0") ; last version without build dependency on gradle
2960 (source (origin
2961 (method url-fetch)
2962 (uri (string-append
2963 "https://github.com/samtools/htsjdk/archive/"
2964 version ".tar.gz"))
2965 (file-name (string-append name "-" version ".tar.gz"))
2966 (sha256
2967 (base32
2968 "1ibhzzxsfc38nqyk9r8zqj6blfc1kh26iirypd4q6n90hs2m6nyq"))
2969 (modules '((guix build utils)))
2970 (snippet
2971 ;; Delete pre-built binaries
2972 '(begin
2973 (delete-file-recursively "lib")
2974 (mkdir-p "lib")
2975 #t))))
2976 (build-system ant-build-system)
2977 (arguments
2978 `(#:tests? #f ; test require Internet access
2979 #:jdk ,icedtea-8
2980 #:make-flags
2981 (list (string-append "-Ddist=" (assoc-ref %outputs "out")
2982 "/share/java/htsjdk/"))
2983 #:build-target "all"
2984 #:phases
2985 (modify-phases %standard-phases
2986 ;; The build phase also installs the jars
2987 (delete 'install))))
2988 (inputs
2989 `(("java-ngs" ,java-ngs)
2990 ("java-snappy-1" ,java-snappy-1)
2991 ("java-commons-compress" ,java-commons-compress)
2992 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
2993 ("java-commons-jexl-2" ,java-commons-jexl-2)
2994 ("java-xz" ,java-xz)))
2995 (native-inputs
2996 `(("java-testng" ,java-testng)))
2997 (home-page "http://samtools.github.io/htsjdk/")
2998 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
2999 (description
3000 "HTSJDK is an implementation of a unified Java library for accessing
3001 common file formats, such as SAM and VCF, used for high-throughput
3002 sequencing (HTS) data. There are also an number of useful utilities for
3003 manipulating HTS data.")
3004 (license license:expat)))
3005
3006 (define-public java-htsjdk-latest
3007 (package
3008 (name "java-htsjdk")
3009 (version "2.14.3")
3010 (source (origin
3011 (method git-fetch)
3012 (uri (git-reference
3013 (url "https://github.com/samtools/htsjdk.git")
3014 (commit version)))
3015 (file-name (string-append name "-" version "-checkout"))
3016 (sha256
3017 (base32
3018 "1lmya1fdjy03mz6zmdmd86j9v9vfhqb3952mqq075navx1i6g4bc"))))
3019 (build-system ant-build-system)
3020 (arguments
3021 `(#:tests? #f ; test require Scala
3022 #:jdk ,icedtea-8
3023 #:jar-name "htsjdk.jar"
3024 #:phases
3025 (modify-phases %standard-phases
3026 (add-after 'unpack 'remove-useless-build.xml
3027 (lambda _ (delete-file "build.xml") #t))
3028 ;; The tests require the scalatest package.
3029 (add-after 'unpack 'remove-tests
3030 (lambda _ (delete-file-recursively "src/test") #t)))))
3031 (inputs
3032 `(("java-ngs" ,java-ngs)
3033 ("java-snappy-1" ,java-snappy-1)
3034 ("java-commons-compress" ,java-commons-compress)
3035 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
3036 ("java-commons-jexl-2" ,java-commons-jexl-2)
3037 ("java-xz" ,java-xz)))
3038 (native-inputs
3039 `(("java-junit" ,java-junit)))
3040 (home-page "http://samtools.github.io/htsjdk/")
3041 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3042 (description
3043 "HTSJDK is an implementation of a unified Java library for accessing
3044 common file formats, such as SAM and VCF, used for high-throughput
3045 sequencing (HTS) data. There are also an number of useful utilities for
3046 manipulating HTS data.")
3047 (license license:expat)))
3048
3049 ;; This is needed for picard 2.10.3
3050 (define-public java-htsjdk-2.10.1
3051 (package (inherit java-htsjdk-latest)
3052 (name "java-htsjdk")
3053 (version "2.10.1")
3054 (source (origin
3055 (method git-fetch)
3056 (uri (git-reference
3057 (url "https://github.com/samtools/htsjdk.git")
3058 (commit version)))
3059 (file-name (string-append name "-" version "-checkout"))
3060 (sha256
3061 (base32
3062 "1kxh7slm2pm3x9p6jxa1wqsq9a31dhiiflhxnxqcisan4k3rwia2"))))
3063 (build-system ant-build-system)
3064 (arguments
3065 `(#:tests? #f ; tests require Scala
3066 #:jdk ,icedtea-8
3067 #:jar-name "htsjdk.jar"
3068 #:phases
3069 (modify-phases %standard-phases
3070 (add-after 'unpack 'remove-useless-build.xml
3071 (lambda _ (delete-file "build.xml") #t))
3072 ;; The tests require the scalatest package.
3073 (add-after 'unpack 'remove-tests
3074 (lambda _ (delete-file-recursively "src/test") #t)))))))
3075
3076 ;; This version matches java-htsjdk 2.3.0. Later versions also require a more
3077 ;; recent version of java-htsjdk, which depends on gradle.
3078 (define-public java-picard
3079 (package
3080 (name "java-picard")
3081 (version "2.3.0")
3082 (source (origin
3083 (method git-fetch)
3084 (uri (git-reference
3085 (url "https://github.com/broadinstitute/picard.git")
3086 (commit version)))
3087 (file-name (string-append "java-picard-" version "-checkout"))
3088 (sha256
3089 (base32
3090 "1ll7mf4r3by92w2nhlmpa591xd1f46xlkwh59mq6fvbb5pdwzvx6"))
3091 (modules '((guix build utils)))
3092 (snippet
3093 '(begin
3094 ;; Delete pre-built binaries.
3095 (delete-file-recursively "lib")
3096 (mkdir-p "lib")
3097 (substitute* "build.xml"
3098 ;; Remove build-time dependency on git.
3099 (("failifexecutionfails=\"true\"")
3100 "failifexecutionfails=\"false\"")
3101 ;; Use our htsjdk.
3102 (("depends=\"compile-htsjdk, ")
3103 "depends=\"")
3104 (("depends=\"compile-htsjdk-tests, ")
3105 "depends=\"")
3106 ;; Build picard-lib.jar before building picard.jar
3107 (("name=\"picard-jar\" depends=\"" line)
3108 (string-append line "picard-lib-jar, ")))
3109 #t))))
3110 (build-system ant-build-system)
3111 (arguments
3112 `(#:build-target "picard-jar"
3113 #:test-target "test"
3114 ;; Tests require jacoco:coverage.
3115 #:tests? #f
3116 #:make-flags
3117 (list (string-append "-Dhtsjdk_lib_dir="
3118 (assoc-ref %build-inputs "java-htsjdk")
3119 "/share/java/htsjdk/")
3120 "-Dhtsjdk-classes=dist/tmp"
3121 (string-append "-Dhtsjdk-version="
3122 ,(package-version java-htsjdk)))
3123 #:jdk ,icedtea-8
3124 #:phases
3125 (modify-phases %standard-phases
3126 (add-after 'unpack 'use-our-htsjdk
3127 (lambda* (#:key inputs #:allow-other-keys)
3128 (substitute* "build.xml"
3129 (("\\$\\{htsjdk\\}/lib")
3130 (string-append (assoc-ref inputs "java-htsjdk")
3131 "/share/java/htsjdk/")))
3132 #t))
3133 (add-after 'unpack 'make-test-target-independent
3134 (lambda* (#:key inputs #:allow-other-keys)
3135 (substitute* "build.xml"
3136 (("name=\"test\" depends=\"compile, ")
3137 "name=\"test\" depends=\""))
3138 #t))
3139 (replace 'install (install-jars "dist")))))
3140 (inputs
3141 `(("java-htsjdk" ,java-htsjdk)
3142 ("java-guava" ,java-guava)))
3143 (native-inputs
3144 `(("java-testng" ,java-testng)))
3145 (home-page "http://broadinstitute.github.io/picard/")
3146 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
3147 (description "Picard is a set of Java command line tools for manipulating
3148 high-throughput sequencing (HTS) data and formats. Picard is implemented
3149 using the HTSJDK Java library to support accessing file formats that are
3150 commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
3151 VCF.")
3152 (license license:expat)))
3153
3154 ;; This is needed for dropseq-tools
3155 (define-public java-picard-2.10.3
3156 (package
3157 (name "java-picard")
3158 (version "2.10.3")
3159 (source (origin
3160 (method git-fetch)
3161 (uri (git-reference
3162 (url "https://github.com/broadinstitute/picard.git")
3163 (commit version)))
3164 (file-name (string-append "java-picard-" version "-checkout"))
3165 (sha256
3166 (base32
3167 "1ajlx31l6i1k3y2rhnmgq07sz99g2czqfqgkr9mihmdjp3gwjhvi"))))
3168 (build-system ant-build-system)
3169 (arguments
3170 `(#:jar-name "picard.jar"
3171 ;; Tests require jacoco:coverage.
3172 #:tests? #f
3173 #:jdk ,icedtea-8
3174 #:main-class "picard.cmdline.PicardCommandLine"
3175 #:modules ((guix build ant-build-system)
3176 (guix build utils)
3177 (guix build java-utils)
3178 (sxml simple)
3179 (sxml transform)
3180 (sxml xpath))
3181 #:phases
3182 (modify-phases %standard-phases
3183 (add-after 'unpack 'remove-useless-build.xml
3184 (lambda _ (delete-file "build.xml") #t))
3185 ;; This is necessary to ensure that htsjdk is found when using
3186 ;; picard.jar as an executable.
3187 (add-before 'build 'edit-classpath-in-manifest
3188 (lambda* (#:key inputs #:allow-other-keys)
3189 (chmod "build.xml" #o664)
3190 (call-with-output-file "build.xml.new"
3191 (lambda (port)
3192 (sxml->xml
3193 (pre-post-order
3194 (with-input-from-file "build.xml"
3195 (lambda _ (xml->sxml #:trim-whitespace? #t)))
3196 `((target . ,(lambda (tag . kids)
3197 (let ((name ((sxpath '(name *text*))
3198 (car kids)))
3199 ;; FIXME: We're breaking the line
3200 ;; early with a dummy path to
3201 ;; ensure that the store reference
3202 ;; isn't broken apart and can still
3203 ;; be found by the reference
3204 ;; scanner.
3205 (msg (format #f
3206 "\
3207 Class-Path: /~a \
3208 ~a/share/java/htsjdk.jar${line.separator}"
3209 ;; maximum line length is 70
3210 (string-tabulate (const #\b) 57)
3211 (assoc-ref inputs "java-htsjdk"))))
3212 (if (member "manifest" name)
3213 `(,tag ,@kids
3214 (echo
3215 (@ (message ,msg)
3216 (file "${manifest.file}")
3217 (append "true"))))
3218 `(,tag ,@kids)))))
3219 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
3220 (*text* . ,(lambda (_ txt) txt))))
3221 port)))
3222 (rename-file "build.xml.new" "build.xml")
3223 #t)))))
3224 (propagated-inputs
3225 `(("java-htsjdk" ,java-htsjdk-2.10.1)))
3226 (native-inputs
3227 `(("java-testng" ,java-testng)
3228 ("java-guava" ,java-guava)))
3229 (home-page "http://broadinstitute.github.io/picard/")
3230 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
3231 (description "Picard is a set of Java command line tools for manipulating
3232 high-throughput sequencing (HTS) data and formats. Picard is implemented
3233 using the HTSJDK Java library to support accessing file formats that are
3234 commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
3235 VCF.")
3236 (license license:expat)))
3237
3238 ;; This is the last version of Picard to provide net.sf.samtools
3239 (define-public java-picard-1.113
3240 (package (inherit java-picard)
3241 (name "java-picard")
3242 (version "1.113")
3243 (source (origin
3244 (method git-fetch)
3245 (uri (git-reference
3246 (url "https://github.com/broadinstitute/picard.git")
3247 (commit version)))
3248 (file-name (string-append "java-picard-" version "-checkout"))
3249 (sha256
3250 (base32
3251 "0lkpvin2fz3hhly4l02kk56fqy8lmlgyzr9kmvljk6ry6l1hw973"))
3252 (modules '((guix build utils)))
3253 (snippet
3254 '(begin
3255 ;; Delete pre-built binaries.
3256 (delete-file-recursively "lib")
3257 (mkdir-p "lib")
3258 #t))))
3259 (build-system ant-build-system)
3260 (arguments
3261 `(#:build-target "picard-jar"
3262 #:test-target "test"
3263 ;; FIXME: the class path at test time is wrong.
3264 ;; [testng] Error: A JNI error has occurred, please check your installation and try again
3265 ;; [testng] Exception in thread "main" java.lang.NoClassDefFoundError: com/beust/jcommander/ParameterException
3266 #:tests? #f
3267 #:jdk ,icedtea-8
3268 ;; This is only used for tests.
3269 #:make-flags
3270 (list "-Dsamjdk.intel_deflater_so_path=lib/jni/libIntelDeflater.so")
3271 #:phases
3272 (modify-phases %standard-phases
3273 ;; Do not use bundled ant bzip2.
3274 (add-after 'unpack 'use-ant-bzip
3275 (lambda* (#:key inputs #:allow-other-keys)
3276 (substitute* "build.xml"
3277 (("\\$\\{lib\\}/apache-ant-1.8.2-bzip2.jar")
3278 (string-append (assoc-ref inputs "ant")
3279 "/lib/ant.jar")))
3280 #t))
3281 (add-after 'unpack 'make-test-target-independent
3282 (lambda* (#:key inputs #:allow-other-keys)
3283 (substitute* "build.xml"
3284 (("name=\"test\" depends=\"compile, ")
3285 "name=\"test\" depends=\"compile-tests, ")
3286 (("name=\"compile\" depends=\"compile-src, compile-tests\"")
3287 "name=\"compile\" depends=\"compile-src\""))
3288 #t))
3289 (add-after 'unpack 'fix-deflater-path
3290 (lambda* (#:key outputs #:allow-other-keys)
3291 (substitute* "src/java/net/sf/samtools/Defaults.java"
3292 (("getStringProperty\\(\"intel_deflater_so_path\", null\\)")
3293 (string-append "getStringProperty(\"intel_deflater_so_path\", \""
3294 (assoc-ref outputs "out")
3295 "/lib/jni/libIntelDeflater.so"
3296 "\")")))
3297 #t))
3298 ;; Build the deflater library, because we've previously deleted the
3299 ;; pre-built one. This can only be built with access to the JDK
3300 ;; sources.
3301 (add-after 'build 'build-jni
3302 (lambda* (#:key inputs #:allow-other-keys)
3303 (mkdir-p "lib/jni")
3304 (mkdir-p "jdk-src")
3305 (and (zero? (system* "tar" "--strip-components=1" "-C" "jdk-src"
3306 "-xf" (assoc-ref inputs "jdk-src")))
3307 (zero? (system* "javah" "-jni"
3308 "-classpath" "classes"
3309 "-d" "lib/"
3310 "net.sf.samtools.util.zip.IntelDeflater"))
3311 (with-directory-excursion "src/c/inteldeflater"
3312 (zero? (system* "gcc" "-I../../../lib" "-I."
3313 (string-append "-I" (assoc-ref inputs "jdk")
3314 "/include/linux")
3315 "-I../../../jdk-src/src/share/native/common/"
3316 "-I../../../jdk-src/src/solaris/native/common/"
3317 "-c" "-O3" "-fPIC" "IntelDeflater.c"))
3318 (zero? (system* "gcc" "-shared"
3319 "-o" "../../../lib/jni/libIntelDeflater.so"
3320 "IntelDeflater.o" "-lz" "-lstdc++"))))))
3321 ;; We can only build everything else after building the JNI library.
3322 (add-after 'build-jni 'build-rest
3323 (lambda* (#:key make-flags #:allow-other-keys)
3324 (zero? (apply system* `("ant" "all" ,@make-flags)))))
3325 (add-before 'build 'set-JAVA6_HOME
3326 (lambda _
3327 (setenv "JAVA6_HOME" (getenv "JAVA_HOME"))
3328 #t))
3329 (replace 'install (install-jars "dist"))
3330 (add-after 'install 'install-jni-lib
3331 (lambda* (#:key outputs #:allow-other-keys)
3332 (let ((jni (string-append (assoc-ref outputs "out")
3333 "/lib/jni")))
3334 (mkdir-p jni)
3335 (install-file "lib/jni/libIntelDeflater.so" jni)
3336 #t))))))
3337 (inputs
3338 `(("java-snappy-1" ,java-snappy-1)
3339 ("java-commons-jexl-2" ,java-commons-jexl-2)
3340 ("java-cofoja" ,java-cofoja)
3341 ("ant" ,ant) ; for bzip2 support at runtime
3342 ("zlib" ,zlib)))
3343 (native-inputs
3344 `(("ant-apache-bcel" ,ant-apache-bcel)
3345 ("ant-junit" ,ant-junit)
3346 ("java-testng" ,java-testng)
3347 ("java-commons-bcel" ,java-commons-bcel)
3348 ("java-jcommander" ,java-jcommander)
3349 ("jdk" ,icedtea-8 "jdk")
3350 ("jdk-src" ,(car (assoc-ref (package-native-inputs icedtea-8) "jdk-drop")))))))
3351
3352 (define-public fastqc
3353 (package
3354 (name "fastqc")
3355 (version "0.11.5")
3356 (source
3357 (origin
3358 (method url-fetch)
3359 (uri (string-append "http://www.bioinformatics.babraham.ac.uk/"
3360 "projects/fastqc/fastqc_v"
3361 version "_source.zip"))
3362 (sha256
3363 (base32
3364 "18rrlkhcrxvvvlapch4dpj6xc6mpayzys8qfppybi8jrpgx5cc5f"))))
3365 (build-system ant-build-system)
3366 (arguments
3367 `(#:tests? #f ; there are no tests
3368 #:build-target "build"
3369 #:phases
3370 (modify-phases %standard-phases
3371 (add-after 'unpack 'fix-dependencies
3372 (lambda* (#:key inputs #:allow-other-keys)
3373 (substitute* "build.xml"
3374 (("jbzip2-0.9.jar")
3375 (string-append (assoc-ref inputs "java-jbzip2")
3376 "/share/java/jbzip2.jar"))
3377 (("sam-1.103.jar")
3378 (string-append (assoc-ref inputs "java-picard-1.113")
3379 "/share/java/sam-1.112.jar"))
3380 (("cisd-jhdf5.jar")
3381 (string-append (assoc-ref inputs "java-cisd-jhdf5")
3382 "/share/java/sis-jhdf5.jar")))
3383 #t))
3384 ;; There is no installation target
3385 (replace 'install
3386 (lambda* (#:key inputs outputs #:allow-other-keys)
3387 (let* ((out (assoc-ref outputs "out"))
3388 (bin (string-append out "/bin"))
3389 (share (string-append out "/share/fastqc/"))
3390 (exe (string-append share "/fastqc")))
3391 (for-each mkdir-p (list bin share))
3392 (copy-recursively "bin" share)
3393 (substitute* exe
3394 (("my \\$java_bin = 'java';")
3395 (string-append "my $java_bin = '"
3396 (assoc-ref inputs "java")
3397 "/bin/java';")))
3398 (chmod exe #o555)
3399 (symlink exe (string-append bin "/fastqc"))
3400 #t))))))
3401 (inputs
3402 `(("java" ,icedtea)
3403 ("perl" ,perl) ; needed for the wrapper script
3404 ("java-cisd-jhdf5" ,java-cisd-jhdf5)
3405 ("java-picard-1.113" ,java-picard-1.113)
3406 ("java-jbzip2" ,java-jbzip2)))
3407 (native-inputs
3408 `(("unzip" ,unzip)))
3409 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/fastqc/")
3410 (synopsis "Quality control tool for high throughput sequence data")
3411 (description
3412 "FastQC aims to provide a simple way to do some quality control
3413 checks on raw sequence data coming from high throughput sequencing
3414 pipelines. It provides a modular set of analyses which you can use to
3415 give a quick impression of whether your data has any problems of which
3416 you should be aware before doing any further analysis.
3417
3418 The main functions of FastQC are:
3419
3420 @itemize
3421 @item Import of data from BAM, SAM or FastQ files (any variant);
3422 @item Providing a quick overview to tell you in which areas there may
3423 be problems;
3424 @item Summary graphs and tables to quickly assess your data;
3425 @item Export of results to an HTML based permanent report;
3426 @item Offline operation to allow automated generation of reports
3427 without running the interactive application.
3428 @end itemize\n")
3429 (license license:gpl3+)))
3430
3431 (define-public htslib
3432 (package
3433 (name "htslib")
3434 (version "1.6")
3435 (source (origin
3436 (method url-fetch)
3437 (uri (string-append
3438 "https://github.com/samtools/htslib/releases/download/"
3439 version "/htslib-" version ".tar.bz2"))
3440 (sha256
3441 (base32
3442 "1jsca3hg4rbr6iqq6imkj4lsvgl8g9768bcmny3hlff2w25vx24m"))))
3443 (build-system gnu-build-system)
3444 (arguments
3445 `(#:phases
3446 (modify-phases %standard-phases
3447 (add-after
3448 'unpack 'patch-tests
3449 (lambda _
3450 (substitute* "test/test.pl"
3451 (("/bin/bash") (which "bash")))
3452 #t)))))
3453 (inputs
3454 `(("openssl" ,openssl)
3455 ("curl" ,curl)
3456 ("zlib" ,zlib)))
3457 (native-inputs
3458 `(("perl" ,perl)))
3459 (home-page "http://www.htslib.org")
3460 (synopsis "C library for reading/writing high-throughput sequencing data")
3461 (description
3462 "HTSlib is a C library for reading/writing high-throughput sequencing
3463 data. It also provides the @command{bgzip}, @command{htsfile}, and
3464 @command{tabix} utilities.")
3465 ;; Files under cram/ are released under the modified BSD license;
3466 ;; the rest is released under the Expat license
3467 (license (list license:expat license:bsd-3))))
3468
3469 ;; This package should be removed once no packages rely upon it.
3470 (define htslib-1.3
3471 (package
3472 (inherit htslib)
3473 (version "1.3.1")
3474 (source (origin
3475 (method url-fetch)
3476 (uri (string-append
3477 "https://github.com/samtools/htslib/releases/download/"
3478 version "/htslib-" version ".tar.bz2"))
3479 (sha256
3480 (base32
3481 "1rja282fwdc25ql6izkhdyh8ppw8x2fs0w0js78zgkmqjlikmma9"))))))
3482
3483 (define-public idr
3484 (package
3485 (name "idr")
3486 (version "2.0.3")
3487 (source (origin
3488 (method url-fetch)
3489 (uri (string-append
3490 "https://github.com/nboley/idr/archive/"
3491 version ".tar.gz"))
3492 (file-name (string-append name "-" version ".tar.gz"))
3493 (sha256
3494 (base32
3495 "1rjdly6daslw66r43g9md8znizlscn1sphycqyldzsidkc4vxqv3"))
3496 ;; Delete generated C code.
3497 (snippet
3498 '(begin (delete-file "idr/inv_cdf.c") #t))))
3499 (build-system python-build-system)
3500 ;; There is only one test ("test_inv_cdf.py") and it tests features that
3501 ;; are no longer part of this package. It also asserts False, which
3502 ;; causes the tests to always fail.
3503 (arguments `(#:tests? #f))
3504 (propagated-inputs
3505 `(("python-scipy" ,python-scipy)
3506 ("python-sympy" ,python-sympy)
3507 ("python-numpy" ,python-numpy)
3508 ("python-matplotlib" ,python-matplotlib)))
3509 (native-inputs
3510 `(("python-cython" ,python-cython)))
3511 (home-page "https://github.com/nboley/idr")
3512 (synopsis "Tool to measure the irreproducible discovery rate (IDR)")
3513 (description
3514 "The IDR (Irreproducible Discovery Rate) framework is a unified approach
3515 to measure the reproducibility of findings identified from replicate
3516 experiments and provide highly stable thresholds based on reproducibility.")
3517 (license license:gpl2+)))
3518
3519 (define-public jellyfish
3520 (package
3521 (name "jellyfish")
3522 (version "2.2.7")
3523 (source (origin
3524 (method url-fetch)
3525 (uri (string-append "https://github.com/gmarcais/Jellyfish/"
3526 "releases/download/v" version
3527 "/jellyfish-" version ".tar.gz"))
3528 (sha256
3529 (base32
3530 "1a1iwq9pq54k2m9ypvwl5s0bqfl64gwh9dx5af9i382ajas2016q"))))
3531 (build-system gnu-build-system)
3532 (outputs '("out" ;for library
3533 "ruby" ;for Ruby bindings
3534 "python")) ;for Python bindings
3535 (arguments
3536 `(#:configure-flags
3537 (list (string-append "--enable-ruby-binding="
3538 (assoc-ref %outputs "ruby"))
3539 (string-append "--enable-python-binding="
3540 (assoc-ref %outputs "python")))
3541 #:phases
3542 (modify-phases %standard-phases
3543 (add-before 'check 'set-SHELL-variable
3544 (lambda _
3545 ;; generator_manager.hpp either uses /bin/sh or $SHELL
3546 ;; to run tests.
3547 (setenv "SHELL" (which "bash"))
3548 #t)))))
3549 (native-inputs
3550 `(("bc" ,bc)
3551 ("time" ,time)
3552 ("ruby" ,ruby)
3553 ("python" ,python-2)
3554 ("pkg-config" ,pkg-config)))
3555 (inputs
3556 `(("htslib" ,htslib)))
3557 (synopsis "Tool for fast counting of k-mers in DNA")
3558 (description
3559 "Jellyfish is a tool for fast, memory-efficient counting of k-mers in
3560 DNA. A k-mer is a substring of length k, and counting the occurrences of all
3561 such substrings is a central step in many analyses of DNA sequence. Jellyfish
3562 is a command-line program that reads FASTA and multi-FASTA files containing
3563 DNA sequences. It outputs its k-mer counts in a binary format, which can be
3564 translated into a human-readable text format using the @code{jellyfish dump}
3565 command, or queried for specific k-mers with @code{jellyfish query}.")
3566 (home-page "http://www.genome.umd.edu/jellyfish.html")
3567 ;; From their website: JELLYFISH runs on 64-bit Intel-compatible processors
3568 (supported-systems '("x86_64-linux"))
3569 ;; The combined work is published under the GPLv3 or later. Individual
3570 ;; files such as lib/jsoncpp.cpp are released under the Expat license.
3571 (license (list license:gpl3+ license:expat))))
3572
3573 (define-public khmer
3574 (package
3575 (name "khmer")
3576 (version "2.0")
3577 (source
3578 (origin
3579 (method url-fetch)
3580 (uri (pypi-uri "khmer" version))
3581 (sha256
3582 (base32
3583 "0wb05shqh77v00256qlm68vbbx3kl76fyzihszbz5nhanl4ni33a"))
3584 (patches (search-patches "khmer-use-libraries.patch"))))
3585 (build-system python-build-system)
3586 (arguments
3587 `(#:phases
3588 (modify-phases %standard-phases
3589 (add-after 'unpack 'set-paths
3590 (lambda* (#:key inputs outputs #:allow-other-keys)
3591 ;; Delete bundled libraries.
3592 (delete-file-recursively "third-party/zlib")
3593 (delete-file-recursively "third-party/bzip2")
3594 ;; Replace bundled seqan.
3595 (let* ((seqan-all "third-party/seqan")
3596 (seqan-include (string-append
3597 seqan-all "/core/include")))
3598 (delete-file-recursively seqan-all)
3599 (copy-recursively (string-append (assoc-ref inputs "seqan")
3600 "/include/seqan")
3601 (string-append seqan-include "/seqan")))
3602 ;; We do not replace the bundled MurmurHash as the canonical
3603 ;; repository for this code 'SMHasher' is unsuitable for
3604 ;; providing a library. See
3605 ;; https://lists.gnu.org/archive/html/guix-devel/2016-06/msg00977.html
3606 #t))
3607 (add-after 'unpack 'set-cc
3608 (lambda _
3609 (setenv "CC" "gcc")
3610 #t))
3611 ;; It is simpler to test after installation.
3612 (delete 'check)
3613 (add-after 'install 'post-install-check
3614 (lambda* (#:key inputs outputs #:allow-other-keys)
3615 (let ((out (assoc-ref outputs "out")))
3616 (setenv "PATH"
3617 (string-append
3618 (getenv "PATH")
3619 ":"
3620 (assoc-ref outputs "out")
3621 "/bin"))
3622 (setenv "PYTHONPATH"
3623 (string-append
3624 (getenv "PYTHONPATH")
3625 ":"
3626 out
3627 "/lib/python"
3628 (string-take (string-take-right
3629 (assoc-ref inputs "python") 5) 3)
3630 "/site-packages"))
3631 (with-directory-excursion "build"
3632 (zero? (system* "nosetests" "khmer" "--attr"
3633 "!known_failing")))))))))
3634 (native-inputs
3635 `(("seqan" ,seqan)
3636 ("python-nose" ,python-nose)))
3637 (inputs
3638 `(("zlib" ,zlib)
3639 ("bzip2" ,bzip2)
3640 ("python-screed" ,python-screed)
3641 ("python-bz2file" ,python-bz2file)
3642 ;; Tests fail when gcc-5 is used for compilation. Use gcc-4.9 at least
3643 ;; until the next version of khmer (likely 2.1) is released.
3644 ("gcc" ,gcc-4.9)))
3645 (home-page "https://khmer.readthedocs.org/")
3646 (synopsis "K-mer counting, filtering and graph traversal library")
3647 (description "The khmer software is a set of command-line tools for
3648 working with DNA shotgun sequencing data from genomes, transcriptomes,
3649 metagenomes and single cells. Khmer can make de novo assemblies faster, and
3650 sometimes better. Khmer can also identify and fix problems with shotgun
3651 data.")
3652 ;; When building on i686, armhf and mips64el, we get the following error:
3653 ;; error: ['khmer', 'khmer.tests', 'oxli'] require 64-bit operating system
3654 (supported-systems '("x86_64-linux" "aarch64-linux"))
3655 (license license:bsd-3)))
3656
3657 (define-public kaiju
3658 (package
3659 (name "kaiju")
3660 (version "1.5.0")
3661 (source (origin
3662 (method url-fetch)
3663 (uri (string-append
3664 "https://github.com/bioinformatics-centre/kaiju/archive/v"
3665 version ".tar.gz"))
3666 (file-name (string-append name "-" version ".tar.gz"))
3667 (sha256
3668 (base32
3669 "0afbfalfw9y39bkwnqjrh9bghs118ws1pzj5h8l0nblgn3mbjdks"))))
3670 (build-system gnu-build-system)
3671 (arguments
3672 `(#:tests? #f ; There are no tests.
3673 #:phases
3674 (modify-phases %standard-phases
3675 (delete 'configure)
3676 (add-before 'build 'move-to-src-dir
3677 (lambda _ (chdir "src") #t))
3678 (replace 'install
3679 (lambda* (#:key inputs outputs #:allow-other-keys)
3680 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
3681 (mkdir-p bin)
3682 (chdir "..")
3683 (copy-recursively "bin" bin)
3684 (copy-recursively "util" bin))
3685 #t)))))
3686 (inputs
3687 `(("perl" ,perl)))
3688 (home-page "http://kaiju.binf.ku.dk/")
3689 (synopsis "Fast and sensitive taxonomic classification for metagenomics")
3690 (description "Kaiju is a program for sensitive taxonomic classification
3691 of high-throughput sequencing reads from metagenomic whole genome sequencing
3692 experiments.")
3693 (license license:gpl3+)))
3694
3695 (define-public macs
3696 (package
3697 (name "macs")
3698 (version "2.1.0.20151222")
3699 (source (origin
3700 (method url-fetch)
3701 (uri (pypi-uri "MACS2" version))
3702 (sha256
3703 (base32
3704 "1r2hcz6irhcq7lwbafjks98jbn34hv05avgbdjnp6w6mlfjkf8x5"))))
3705 (build-system python-build-system)
3706 (arguments
3707 `(#:python ,python-2 ; only compatible with Python 2.7
3708 #:tests? #f)) ; no test target
3709 (inputs
3710 `(("python-numpy" ,python2-numpy)))
3711 (home-page "https://github.com/taoliu/MACS/")
3712 (synopsis "Model based analysis for ChIP-Seq data")
3713 (description
3714 "MACS is an implementation of a ChIP-Seq analysis algorithm for
3715 identifying transcript factor binding sites named Model-based Analysis of
3716 ChIP-Seq (MACS). MACS captures the influence of genome complexity to evaluate
3717 the significance of enriched ChIP regions and it improves the spatial
3718 resolution of binding sites through combining the information of both
3719 sequencing tag position and orientation.")
3720 (license license:bsd-3)))
3721
3722 (define-public mafft
3723 (package
3724 (name "mafft")
3725 (version "7.313")
3726 (source (origin
3727 (method url-fetch)
3728 (uri (string-append
3729 "https://mafft.cbrc.jp/alignment/software/mafft-" version
3730 "-without-extensions-src.tgz"))
3731 (file-name (string-append name "-" version ".tgz"))
3732 (sha256
3733 (base32
3734 "0r83qmg2if8mi6jyx3xdf8ar2gcxl7r9nmj98jr7lxym97v61a2k"))))
3735 (build-system gnu-build-system)
3736 (arguments
3737 `(#:tests? #f ; no automated tests, though there are tests in the read me
3738 #:make-flags (let ((out (assoc-ref %outputs "out")))
3739 (list (string-append "PREFIX=" out)
3740 (string-append "BINDIR="
3741 (string-append out "/bin"))))
3742 #:phases
3743 (modify-phases %standard-phases
3744 (add-after 'unpack 'enter-dir
3745 (lambda _ (chdir "core") #t))
3746 (add-after 'enter-dir 'patch-makefile
3747 (lambda _
3748 ;; on advice from the MAFFT authors, there is no need to
3749 ;; distribute mafft-profile, mafft-distance, or
3750 ;; mafft-homologs.rb as they are too "specialised".
3751 (substitute* "Makefile"
3752 ;; remove mafft-homologs.rb from SCRIPTS
3753 (("^SCRIPTS = mafft mafft-homologs.rb")
3754 "SCRIPTS = mafft")
3755 ;; remove mafft-homologs from MANPAGES
3756 (("^MANPAGES = mafft.1 mafft-homologs.1")
3757 "MANPAGES = mafft.1")
3758 ;; remove mafft-distance from PROGS
3759 (("^PROGS = dvtditr dndfast7 dndblast sextet5 mafft-distance")
3760 "PROGS = dvtditr dndfast7 dndblast sextet5")
3761 ;; remove mafft-profile from PROGS
3762 (("splittbfast disttbfast tbfast mafft-profile 2cl mccaskillwrap")
3763 "splittbfast disttbfast tbfast f2cl mccaskillwrap")
3764 (("^rm -f mafft-profile mafft-profile.exe") "#")
3765 (("^rm -f mafft-distance mafft-distance.exe") ")#")
3766 ;; do not install MAN pages in libexec folder
3767 (("^\t\\$\\(INSTALL\\) -m 644 \\$\\(MANPAGES\\) \
3768 \\$\\(DESTDIR\\)\\$\\(LIBDIR\\)") "#"))
3769 #t))
3770 (add-after 'enter-dir 'patch-paths
3771 (lambda* (#:key inputs #:allow-other-keys)
3772 (substitute* '("pairash.c"
3773 "mafft.tmpl")
3774 (("perl") (which "perl"))
3775 (("([\"`| ])awk" _ prefix)
3776 (string-append prefix (which "awk")))
3777 (("grep") (which "grep")))
3778 #t))
3779 (delete 'configure)
3780 (add-after 'install 'wrap-programs
3781 (lambda* (#:key outputs #:allow-other-keys)
3782 (let* ((out (assoc-ref outputs "out"))
3783 (bin (string-append out "/bin"))
3784 (path (string-append
3785 (assoc-ref %build-inputs "coreutils") "/bin:")))
3786 (for-each (lambda (file)
3787 (wrap-program file
3788 `("PATH" ":" prefix (,path))))
3789 (find-files bin)))
3790 #t)))))
3791 (inputs
3792 `(("perl" ,perl)
3793 ("ruby" ,ruby)
3794 ("gawk" ,gawk)
3795 ("grep" ,grep)
3796 ("coreutils" ,coreutils)))
3797 (home-page "http://mafft.cbrc.jp/alignment/software/")
3798 (synopsis "Multiple sequence alignment program")
3799 (description
3800 "MAFFT offers a range of multiple alignment methods for nucleotide and
3801 protein sequences. For instance, it offers L-INS-i (accurate; for alignment
3802 of <~200 sequences) and FFT-NS-2 (fast; for alignment of <~30,000
3803 sequences).")
3804 (license (license:non-copyleft
3805 "http://mafft.cbrc.jp/alignment/software/license.txt"
3806 "BSD-3 with different formatting"))))
3807
3808 (define-public mash
3809 (package
3810 (name "mash")
3811 (version "1.1.1")
3812 (source (origin
3813 (method url-fetch)
3814 (uri (string-append
3815 "https://github.com/marbl/mash/archive/v"
3816 version ".tar.gz"))
3817 (file-name (string-append name "-" version ".tar.gz"))
3818 (sha256
3819 (base32
3820 "08znbvqq5xknfhmpp3wcj574zvi4p7i8zifi67c9qw9a6ikp42fj"))
3821 (modules '((guix build utils)))
3822 (snippet
3823 ;; Delete bundled kseq.
3824 ;; TODO: Also delete bundled murmurhash and open bloom filter.
3825 '(delete-file "src/mash/kseq.h"))))
3826 (build-system gnu-build-system)
3827 (arguments
3828 `(#:tests? #f ; No tests.
3829 #:configure-flags
3830 (list
3831 (string-append "--with-capnp=" (assoc-ref %build-inputs "capnproto"))
3832 (string-append "--with-gsl=" (assoc-ref %build-inputs "gsl")))
3833 #:make-flags (list "CC=gcc")
3834 #:phases
3835 (modify-phases %standard-phases
3836 (add-after 'unpack 'fix-includes
3837 (lambda _
3838 (substitute* '("src/mash/Sketch.cpp" "src/mash/CommandFind.cpp")
3839 (("^#include \"kseq\\.h\"")
3840 "#include \"htslib/kseq.h\""))
3841 #t))
3842 (add-after 'fix-includes 'autoconf
3843 (lambda _ (zero? (system* "autoconf")))))))
3844 (native-inputs
3845 `(("autoconf" ,autoconf)
3846 ;; Capnproto and htslib are statically embedded in the final
3847 ;; application. Therefore we also list their licenses, below.
3848 ("capnproto" ,capnproto)
3849 ("htslib" ,htslib)))
3850 (inputs
3851 `(("gsl" ,gsl)
3852 ("zlib" ,zlib)))
3853 (supported-systems '("x86_64-linux"))
3854 (home-page "https://mash.readthedocs.io")
3855 (synopsis "Fast genome and metagenome distance estimation using MinHash")
3856 (description "Mash is a fast sequence distance estimator that uses the
3857 MinHash algorithm and is designed to work with genomes and metagenomes in the
3858 form of assemblies or reads.")
3859 (license (list license:bsd-3 ; Mash
3860 license:expat ; HTSlib and capnproto
3861 license:public-domain ; MurmurHash 3
3862 license:cpl1.0)))) ; Open Bloom Filter
3863
3864 (define-public metabat
3865 (package
3866 (name "metabat")
3867 (version "2.12.1")
3868 (source
3869 (origin
3870 (method url-fetch)
3871 (uri (string-append "https://bitbucket.org/berkeleylab/metabat/get/v"
3872 version ".tar.gz"))
3873 (file-name (string-append name "-" version ".tar.gz"))
3874 (sha256
3875 (base32
3876 "1hmvdalz3zj5sqqklg0l4npjdv37cv2hsdi1al9iby2ndxjs1b73"))
3877 (patches (search-patches "metabat-fix-compilation.patch"))))
3878 (build-system scons-build-system)
3879 (arguments
3880 `(#:scons ,scons-python2
3881 #:scons-flags
3882 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3883 (string-append "BOOST_ROOT=" (assoc-ref %build-inputs "boost")))
3884 #:tests? #f ;; Tests are run during the build phase.
3885 #:phases
3886 (modify-phases %standard-phases
3887 (add-after 'unpack 'fix-includes
3888 (lambda _
3889 (substitute* "src/BamUtils.h"
3890 (("^#include \"bam/bam\\.h\"")
3891 "#include \"samtools/bam.h\"")
3892 (("^#include \"bam/sam\\.h\"")
3893 "#include \"samtools/sam.h\""))
3894 (substitute* "src/KseqReader.h"
3895 (("^#include \"bam/kseq\\.h\"")
3896 "#include \"htslib/kseq.h\""))
3897 #t))
3898 (add-after 'unpack 'fix-scons
3899 (lambda* (#:key inputs #:allow-other-keys)
3900 (substitute* "SConstruct"
3901 (("^htslib_dir += 'samtools'")
3902 (string-append "htslib_dir = '"
3903 (assoc-ref inputs "htslib")
3904 "'"))
3905 (("^samtools_dir = 'samtools'")
3906 (string-append "samtools_dir = '"
3907 (assoc-ref inputs "samtools")
3908 "'"))
3909 (("^findStaticOrShared\\('bam', hts_lib")
3910 (string-append "findStaticOrShared('bam', '"
3911 (assoc-ref inputs "samtools")
3912 "/lib'"))
3913 ;; Do not distribute README.
3914 (("^env\\.Install\\(idir_prefix, 'README\\.md'\\)") ""))
3915 #t)))))
3916 (inputs
3917 `(("zlib" ,zlib)
3918 ("perl" ,perl)
3919 ("samtools" ,samtools)
3920 ("htslib" ,htslib)
3921 ("boost" ,boost)))
3922 (home-page "https://bitbucket.org/berkeleylab/metabat")
3923 (synopsis
3924 "Reconstruction of single genomes from complex microbial communities")
3925 (description
3926 "Grouping large genomic fragments assembled from shotgun metagenomic
3927 sequences to deconvolute complex microbial communities, or metagenome binning,
3928 enables the study of individual organisms and their interactions. MetaBAT is
3929 an automated metagenome binning software, which integrates empirical
3930 probabilistic distances of genome abundance and tetranucleotide frequency.")
3931 ;; The source code contains inline assembly.
3932 (supported-systems '("x86_64-linux" "i686-linux"))
3933 (license (license:non-copyleft "file://license.txt"
3934 "See license.txt in the distribution."))))
3935
3936 (define-public minced
3937 (package
3938 (name "minced")
3939 (version "0.2.0")
3940 (source (origin
3941 (method url-fetch)
3942 (uri (string-append
3943 "https://github.com/ctSkennerton/minced/archive/"
3944 version ".tar.gz"))
3945 (file-name (string-append name "-" version ".tar.gz"))
3946 (sha256
3947 (base32
3948 "0wxmlsapxfpxfd3ps9636h7i2xy6la8i42mwh0j2lsky63h63jp1"))))
3949 (build-system gnu-build-system)
3950 (arguments
3951 `(#:test-target "test"
3952 #:phases
3953 (modify-phases %standard-phases
3954 (delete 'configure)
3955 (add-before 'check 'fix-test
3956 (lambda _
3957 ;; Fix test for latest version.
3958 (substitute* "t/Aquifex_aeolicus_VF5.expected"
3959 (("minced:0.1.6") "minced:0.2.0"))
3960 #t))
3961 (replace 'install ; No install target.
3962 (lambda* (#:key inputs outputs #:allow-other-keys)
3963 (let* ((out (assoc-ref outputs "out"))
3964 (bin (string-append out "/bin"))
3965 (wrapper (string-append bin "/minced")))
3966 ;; Minced comes with a wrapper script that tries to figure out where
3967 ;; it is located before running the JAR. Since these paths are known
3968 ;; to us, we build our own wrapper to avoid coreutils dependency.
3969 (install-file "minced.jar" bin)
3970 (with-output-to-file wrapper
3971 (lambda _
3972 (display
3973 (string-append
3974 "#!" (assoc-ref inputs "bash") "/bin/sh\n\n"
3975 (assoc-ref inputs "jre") "/bin/java -jar "
3976 bin "/minced.jar \"$@\"\n"))))
3977 (chmod wrapper #o555)))))))
3978 (native-inputs
3979 `(("jdk" ,icedtea "jdk")))
3980 (inputs
3981 `(("bash" ,bash)
3982 ("jre" ,icedtea "out")))
3983 (home-page "https://github.com/ctSkennerton/minced")
3984 (synopsis "Mining CRISPRs in Environmental Datasets")
3985 (description
3986 "MinCED is a program to find Clustered Regularly Interspaced Short
3987 Palindromic Repeats (CRISPRs) in DNA sequences. It can be used for
3988 unassembled metagenomic reads, but is mainly designed for full genomes and
3989 assembled metagenomic sequence.")
3990 (license license:gpl3+)))
3991
3992 (define-public miso
3993 (package
3994 (name "miso")
3995 (version "0.5.4")
3996 (source (origin
3997 (method url-fetch)
3998 (uri (pypi-uri "misopy" version))
3999 (sha256
4000 (base32
4001 "1z3x0vd8ma7pdrnywj7i3kgwl89sdkwrrn62zl7r5calqaq2hyip"))
4002 (modules '((guix build utils)))
4003 (snippet
4004 '(substitute* "setup.py"
4005 ;; Use setuptools, or else the executables are not
4006 ;; installed.
4007 (("distutils.core") "setuptools")
4008 ;; use "gcc" instead of "cc" for compilation
4009 (("^defines")
4010 "cc.set_executables(
4011 compiler='gcc',
4012 compiler_so='gcc',
4013 linker_exe='gcc',
4014 linker_so='gcc -shared'); defines")))))
4015 (build-system python-build-system)
4016 (arguments
4017 `(#:python ,python-2 ; only Python 2 is supported
4018 #:tests? #f)) ; no "test" target
4019 (inputs
4020 `(("samtools" ,samtools)
4021 ("python-numpy" ,python2-numpy)
4022 ("python-pysam" ,python2-pysam)
4023 ("python-scipy" ,python2-scipy)
4024 ("python-matplotlib" ,python2-matplotlib)))
4025 (native-inputs
4026 `(("python-mock" ,python2-mock) ;for tests
4027 ("python-pytz" ,python2-pytz))) ;for tests
4028 (home-page "http://genes.mit.edu/burgelab/miso/index.html")
4029 (synopsis "Mixture of Isoforms model for RNA-Seq isoform quantitation")
4030 (description
4031 "MISO (Mixture-of-Isoforms) is a probabilistic framework that quantitates
4032 the expression level of alternatively spliced genes from RNA-Seq data, and
4033 identifies differentially regulated isoforms or exons across samples. By
4034 modeling the generative process by which reads are produced from isoforms in
4035 RNA-Seq, the MISO model uses Bayesian inference to compute the probability
4036 that a read originated from a particular isoform.")
4037 (license license:gpl2)))
4038
4039 (define-public muscle
4040 (package
4041 (name "muscle")
4042 (version "3.8.1551")
4043 (source (origin
4044 (method url-fetch/tarbomb)
4045 (uri (string-append
4046 "http://www.drive5.com/muscle/muscle_src_"
4047 version ".tar.gz"))
4048 (sha256
4049 (base32
4050 "0bj8kj7sdizy3987zx6w7axihk40fk8rn76mpbqqjcnd64i5a367"))))
4051 (build-system gnu-build-system)
4052 (arguments
4053 `(#:make-flags (list "LDLIBS = -lm")
4054 #:phases
4055 (modify-phases %standard-phases
4056 (delete 'configure)
4057 (replace 'check
4058 ;; There are no tests, so just test if it runs.
4059 (lambda _ (zero? (system* "./muscle" "-version"))))
4060 (replace 'install
4061 (lambda* (#:key outputs #:allow-other-keys)
4062 (let* ((out (assoc-ref outputs "out"))
4063 (bin (string-append out "/bin")))
4064 (install-file "muscle" bin)))))))
4065 (home-page "http://www.drive5.com/muscle")
4066 (synopsis "Multiple sequence alignment program")
4067 (description
4068 "MUSCLE aims to be a fast and accurate multiple sequence alignment
4069 program for nucleotide and protein sequences.")
4070 ;; License information found in 'muscle -h' and usage.cpp.
4071 (license license:public-domain)))
4072
4073 (define-public newick-utils
4074 ;; There are no recent releases so we package from git.
4075 (let ((commit "da121155a977197cab9fbb15953ca1b40b11eb87"))
4076 (package
4077 (name "newick-utils")
4078 (version (string-append "1.6-1." (string-take commit 8)))
4079 (source (origin
4080 (method git-fetch)
4081 (uri (git-reference
4082 (url "https://github.com/tjunier/newick_utils.git")
4083 (commit commit)))
4084 (file-name (string-append name "-" version "-checkout"))
4085 (sha256
4086 (base32
4087 "1hkw21rq1mwf7xp0rmbb2gqc0i6p11108m69i7mr7xcjl268pxnb"))))
4088 (build-system gnu-build-system)
4089 (arguments
4090 `(#:phases
4091 (modify-phases %standard-phases
4092 (add-after 'unpack 'autoconf
4093 (lambda _ (zero? (system* "autoreconf" "-vif")))))))
4094 (inputs
4095 ;; XXX: TODO: Enable Lua and Guile bindings.
4096 ;; https://github.com/tjunier/newick_utils/issues/13
4097 `(("libxml2" ,libxml2)
4098 ("flex" ,flex)
4099 ("bison" ,bison)))
4100 (native-inputs
4101 `(("autoconf" ,autoconf)
4102 ("automake" ,automake)
4103 ("libtool" ,libtool)))
4104 (synopsis "Programs for working with newick format phylogenetic trees")
4105 (description
4106 "Newick-utils is a suite of utilities for processing phylogenetic trees
4107 in Newick format. Functions include re-rooting, extracting subtrees,
4108 trimming, pruning, condensing, drawing (ASCII graphics or SVG).")
4109 (home-page "https://github.com/tjunier/newick_utils")
4110 (license license:bsd-3))))
4111
4112 (define-public orfm
4113 (package
4114 (name "orfm")
4115 (version "0.7.1")
4116 (source (origin
4117 (method url-fetch)
4118 (uri (string-append
4119 "https://github.com/wwood/OrfM/releases/download/v"
4120 version "/orfm-" version ".tar.gz"))
4121 (sha256
4122 (base32
4123 "16iigyr2gd8x0imzkk1dr3k5xsds9bpmwg31ayvjg0f4pir9rwqr"))))
4124 (build-system gnu-build-system)
4125 (inputs `(("zlib" ,zlib)))
4126 (native-inputs
4127 `(("ruby-bio-commandeer" ,ruby-bio-commandeer)
4128 ("ruby-rspec" ,ruby-rspec)
4129 ("ruby" ,ruby)))
4130 (synopsis "Simple and not slow open reading frame (ORF) caller")
4131 (description
4132 "An ORF caller finds stretches of DNA that, when translated, are not
4133 interrupted by stop codons. OrfM finds and prints these ORFs.")
4134 (home-page "https://github.com/wwood/OrfM")
4135 (license license:lgpl3+)))
4136
4137 (define-public pplacer
4138 (let ((commit "g807f6f3"))
4139 (package
4140 (name "pplacer")
4141 ;; The commit should be updated with each version change.
4142 (version "1.1.alpha19")
4143 (source
4144 (origin
4145 (method url-fetch)
4146 (uri (string-append "https://github.com/matsen/pplacer/archive/v"
4147 version ".tar.gz"))
4148 (file-name (string-append name "-" version ".tar.gz"))
4149 (sha256
4150 (base32 "0z1lnd2s8sh6kpzg106wzbh2szw7h0hvq8syd5a6wv4rmyyz6x0f"))))
4151 (build-system ocaml-build-system)
4152 (arguments
4153 `(#:ocaml ,ocaml-4.01
4154 #:findlib ,ocaml4.01-findlib
4155 #:modules ((guix build ocaml-build-system)
4156 (guix build utils)
4157 (ice-9 ftw))
4158 #:phases
4159 (modify-phases %standard-phases
4160 (delete 'configure)
4161 (add-after 'unpack 'replace-bundled-cddlib
4162 (lambda* (#:key inputs #:allow-other-keys)
4163 (let* ((cddlib-src (assoc-ref inputs "cddlib-src"))
4164 (local-dir "cddlib_guix"))
4165 (mkdir local-dir)
4166 (with-directory-excursion local-dir
4167 (system* "tar" "xvf" cddlib-src))
4168 (let ((cddlib-src-folder
4169 (string-append local-dir "/"
4170 (list-ref (scandir local-dir) 2)
4171 "/lib-src")))
4172 (for-each
4173 (lambda (file)
4174 (copy-file file
4175 (string-append "cdd_src/" (basename file))))
4176 (find-files cddlib-src-folder ".*[ch]$")))
4177 #t)))
4178 (add-after 'unpack 'fix-makefile
4179 (lambda _
4180 ;; Remove system calls to 'git'.
4181 (substitute* "Makefile"
4182 (("^DESCRIPT:=pplacer-.*")
4183 (string-append
4184 "DESCRIPT:=pplacer-$(shell uname)-v" ,version "\n")))
4185 (substitute* "myocamlbuild.ml"
4186 (("git describe --tags --long .*\\\" with")
4187 (string-append
4188 "echo -n v" ,version "-" ,commit "\" with")))
4189 #t))
4190 (replace 'install
4191 (lambda* (#:key outputs #:allow-other-keys)
4192 (let* ((out (assoc-ref outputs "out"))
4193 (bin (string-append out "/bin")))
4194 (copy-recursively "bin" bin))
4195 #t)))))
4196 (native-inputs
4197 `(("zlib" ,zlib)
4198 ("gsl" ,gsl)
4199 ("ocaml-ounit" ,ocaml4.01-ounit)
4200 ("ocaml-batteries" ,ocaml4.01-batteries)
4201 ("ocaml-camlzip" ,ocaml4.01-camlzip)
4202 ("ocaml-csv" ,ocaml4.01-csv)
4203 ("ocaml-sqlite3" ,ocaml4.01-sqlite3)
4204 ("ocaml-xmlm" ,ocaml4.01-xmlm)
4205 ("ocaml-mcl" ,ocaml4.01-mcl)
4206 ("ocaml-gsl" ,ocaml4.01-gsl)
4207 ("cddlib-src" ,(package-source cddlib))))
4208 (propagated-inputs
4209 `(("pplacer-scripts" ,pplacer-scripts)))
4210 (synopsis "Phylogenetic placement of biological sequences")
4211 (description
4212 "Pplacer places query sequences on a fixed reference phylogenetic tree
4213 to maximize phylogenetic likelihood or posterior probability according to a
4214 reference alignment. Pplacer is designed to be fast, to give useful
4215 information about uncertainty, and to offer advanced visualization and
4216 downstream analysis.")
4217 (home-page "http://matsen.fhcrc.org/pplacer")
4218 (license license:gpl3))))
4219
4220 ;; This package is installed alongside 'pplacer'. It is a separate package so
4221 ;; that it can use the python-build-system for the scripts that are
4222 ;; distributed alongside the main OCaml binaries.
4223 (define pplacer-scripts
4224 (package
4225 (inherit pplacer)
4226 (name "pplacer-scripts")
4227 (build-system python-build-system)
4228 (arguments
4229 `(#:python ,python-2
4230 #:phases
4231 (modify-phases %standard-phases
4232 (add-after 'unpack 'enter-scripts-dir
4233 (lambda _ (chdir "scripts")))
4234 (replace 'check
4235 (lambda _
4236 (zero? (system* "python" "-m" "unittest" "discover" "-v"))))
4237 (add-after 'install 'wrap-executables
4238 (lambda* (#:key inputs outputs #:allow-other-keys)
4239 (let* ((out (assoc-ref outputs "out"))
4240 (bin (string-append out "/bin")))
4241 (let ((path (string-append
4242 (assoc-ref inputs "hmmer") "/bin:"
4243 (assoc-ref inputs "infernal") "/bin")))
4244 (display path)
4245 (wrap-program (string-append bin "/refpkg_align.py")
4246 `("PATH" ":" prefix (,path))))
4247 (let ((path (string-append
4248 (assoc-ref inputs "hmmer") "/bin")))
4249 (wrap-program (string-append bin "/hrefpkg_query.py")
4250 `("PATH" ":" prefix (,path)))))
4251 #t)))))
4252 (inputs
4253 `(("infernal" ,infernal)
4254 ("hmmer" ,hmmer)))
4255 (propagated-inputs
4256 `(("python-biopython" ,python2-biopython)
4257 ("taxtastic" ,taxtastic)))
4258 (synopsis "Pplacer Python scripts")))
4259
4260 (define-public python2-pbcore
4261 (package
4262 (name "python2-pbcore")
4263 (version "1.2.10")
4264 (source (origin
4265 (method url-fetch)
4266 (uri (pypi-uri "pbcore" version))
4267 (sha256
4268 (base32
4269 "1kjmv891d6qbpp4shhhvkl02ff4q5xlpnls2513sm2cjcrs52f1i"))))
4270 (build-system python-build-system)
4271 (arguments `(#:python ,python-2)) ; pbcore requires Python 2.7
4272 (propagated-inputs
4273 `(("python-cython" ,python2-cython)
4274 ("python-numpy" ,python2-numpy)
4275 ("python-pysam" ,python2-pysam)
4276 ("python-h5py" ,python2-h5py)))
4277 (native-inputs
4278 `(("python-nose" ,python2-nose)
4279 ("python-sphinx" ,python2-sphinx)
4280 ("python-pyxb" ,python2-pyxb)))
4281 (home-page "http://pacificbiosciences.github.io/pbcore/")
4282 (synopsis "Library for reading and writing PacBio data files")
4283 (description
4284 "The pbcore package provides Python APIs for interacting with PacBio data
4285 files and writing bioinformatics applications.")
4286 (license license:bsd-3)))
4287
4288 (define-public python2-warpedlmm
4289 (package
4290 (name "python2-warpedlmm")
4291 (version "0.21")
4292 (source
4293 (origin
4294 (method url-fetch)
4295 (uri (string-append
4296 "https://pypi.python.org/packages/source/W/WarpedLMM/WarpedLMM-"
4297 version ".zip"))
4298 (sha256
4299 (base32
4300 "1agfz6zqa8nc6cw47yh0s3y14gkpa9wqazwcj7mwwj3ffnw39p3j"))))
4301 (build-system python-build-system)
4302 (arguments
4303 `(#:python ,python-2)) ; requires Python 2.7
4304 (propagated-inputs
4305 `(("python-scipy" ,python2-scipy)
4306 ("python-numpy" ,python2-numpy)
4307 ("python-matplotlib" ,python2-matplotlib)
4308 ("python-fastlmm" ,python2-fastlmm)
4309 ("python-pandas" ,python2-pandas)
4310 ("python-pysnptools" ,python2-pysnptools)))
4311 (native-inputs
4312 `(("python-mock" ,python2-mock)
4313 ("python-nose" ,python2-nose)
4314 ("unzip" ,unzip)))
4315 (home-page "https://github.com/PMBio/warpedLMM")
4316 (synopsis "Implementation of warped linear mixed models")
4317 (description
4318 "WarpedLMM is a Python implementation of the warped linear mixed model,
4319 which automatically learns an optimal warping function (or transformation) for
4320 the phenotype as it models the data.")
4321 (license license:asl2.0)))
4322
4323 (define-public pbtranscript-tofu
4324 (let ((commit "8f5467fe6a4472bcfb4226c8720993c8507adfe4"))
4325 (package
4326 (name "pbtranscript-tofu")
4327 (version (string-append "2.2.3." (string-take commit 7)))
4328 (source (origin
4329 (method git-fetch)
4330 (uri (git-reference
4331 (url "https://github.com/PacificBiosciences/cDNA_primer.git")
4332 (commit commit)))
4333 (file-name (string-append name "-" version "-checkout"))
4334 (sha256
4335 (base32
4336 "1lgnpi35ihay42qx0b6yl3kkgra723i413j33kvs0kvs61h82w0f"))
4337 (modules '((guix build utils)))
4338 (snippet
4339 '(begin
4340 ;; remove bundled Cython sources
4341 (delete-file "pbtranscript-tofu/pbtranscript/Cython-0.20.1.tar.gz")
4342 #t))))
4343 (build-system python-build-system)
4344 (arguments
4345 `(#:python ,python-2
4346 ;; FIXME: Tests fail with "No such file or directory:
4347 ;; pbtools/pbtranscript/modified_bx_intervals/intersection_unique.so"
4348 #:tests? #f
4349 #:phases
4350 (modify-phases %standard-phases
4351 (add-after 'unpack 'enter-directory
4352 (lambda _
4353 (chdir "pbtranscript-tofu/pbtranscript/")
4354 #t))
4355 ;; With setuptools version 18.0 and later this setup.py hack causes
4356 ;; a build error, so we disable it.
4357 (add-after 'enter-directory 'patch-setuppy
4358 (lambda _
4359 (substitute* "setup.py"
4360 (("if 'setuptools.extension' in sys.modules:")
4361 "if False:"))
4362 #t)))))
4363 (inputs
4364 `(("python-numpy" ,python2-numpy)
4365 ("python-bx-python" ,python2-bx-python)
4366 ("python-networkx" ,python2-networkx)
4367 ("python-scipy" ,python2-scipy)
4368 ("python-pbcore" ,python2-pbcore)
4369 ("python-h5py" ,python2-h5py)))
4370 (native-inputs
4371 `(("python-cython" ,python2-cython)
4372 ("python-nose" ,python2-nose)))
4373 (home-page "https://github.com/PacificBiosciences/cDNA_primer")
4374 (synopsis "Analyze transcriptome data generated with the Iso-Seq protocol")
4375 (description
4376 "pbtranscript-tofu contains scripts to analyze transcriptome data
4377 generated using the PacBio Iso-Seq protocol.")
4378 (license license:bsd-3))))
4379
4380 (define-public prank
4381 (package
4382 (name "prank")
4383 (version "150803")
4384 (source (origin
4385 (method url-fetch)
4386 (uri (string-append
4387 "http://wasabiapp.org/download/prank/prank.source."
4388 version ".tgz"))
4389 (sha256
4390 (base32
4391 "0am4z94fs3w2n5xpfls9zda61vq7qqz4q2i7b9hlsxz5q4j3kfm4"))))
4392 (build-system gnu-build-system)
4393 (arguments
4394 `(#:phases
4395 (modify-phases %standard-phases
4396 (add-after 'unpack 'enter-src-dir
4397 (lambda _
4398 (chdir "src")
4399 #t))
4400 (add-after 'unpack 'remove-m64-flag
4401 ;; Prank will build with the correct 'bit-ness' without this flag
4402 ;; and this allows building on 32-bit machines.
4403 (lambda _ (substitute* "src/Makefile"
4404 (("-m64") ""))
4405 #t))
4406 (delete 'configure)
4407 (replace 'install
4408 (lambda* (#:key outputs #:allow-other-keys)
4409 (let* ((out (assoc-ref outputs "out"))
4410 (bin (string-append out "/bin"))
4411 (man (string-append out "/share/man/man1"))
4412 (path (string-append
4413 (assoc-ref %build-inputs "mafft") "/bin:"
4414 (assoc-ref %build-inputs "exonerate") "/bin:"
4415 (assoc-ref %build-inputs "bppsuite") "/bin")))
4416 (install-file "prank" bin)
4417 (wrap-program (string-append bin "/prank")
4418 `("PATH" ":" prefix (,path)))
4419 (install-file "prank.1" man))
4420 #t)))))
4421 (inputs
4422 `(("mafft" ,mafft)
4423 ("exonerate" ,exonerate)
4424 ("bppsuite" ,bppsuite)))
4425 (home-page "http://wasabiapp.org/software/prank/")
4426 (synopsis "Probabilistic multiple sequence alignment program")
4427 (description
4428 "PRANK is a probabilistic multiple sequence alignment program for DNA,
4429 codon and amino-acid sequences. It is based on a novel algorithm that treats
4430 insertions correctly and avoids over-estimation of the number of deletion
4431 events. In addition, PRANK borrows ideas from maximum likelihood methods used
4432 in phylogenetics and correctly takes into account the evolutionary distances
4433 between sequences. Lastly, PRANK allows for defining a potential structure
4434 for sequences to be aligned and then, simultaneously with the alignment,
4435 predicts the locations of structural units in the sequences.")
4436 (license license:gpl2+)))
4437
4438 (define-public proteinortho
4439 (package
4440 (name "proteinortho")
4441 (version "5.16b")
4442 (source
4443 (origin
4444 (method url-fetch)
4445 (uri
4446 (string-append
4447 "http://www.bioinf.uni-leipzig.de/Software/proteinortho/proteinortho_v"
4448 version "_src.tar.gz"))
4449 (sha256
4450 (base32
4451 "1wl0dawpssqwfjvr651r4wlww8hhjin8nba6xh71ks7sbypx886j"))))
4452 (build-system gnu-build-system)
4453 (arguments
4454 `(#:test-target "test"
4455 #:phases
4456 (modify-phases %standard-phases
4457 (replace 'configure
4458 ;; There is no configure script, so we modify the Makefile directly.
4459 (lambda* (#:key outputs #:allow-other-keys)
4460 (substitute* "Makefile"
4461 (("INSTALLDIR=.*")
4462 (string-append
4463 "INSTALLDIR=" (assoc-ref outputs "out") "/bin\n")))
4464 #t))
4465 (add-before 'install 'make-install-directory
4466 ;; The install directory is not created during 'make install'.
4467 (lambda* (#:key outputs #:allow-other-keys)
4468 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
4469 #t))
4470 (add-after 'install 'wrap-programs
4471 (lambda* (#:key inputs outputs #:allow-other-keys)
4472 (let* ((path (getenv "PATH"))
4473 (out (assoc-ref outputs "out"))
4474 (binary (string-append out "/bin/proteinortho5.pl")))
4475 (wrap-program binary `("PATH" ":" prefix (,path))))
4476 #t)))))
4477 (inputs
4478 `(("perl" ,perl)
4479 ("python" ,python-2)
4480 ("blast+" ,blast+)))
4481 (home-page "http://www.bioinf.uni-leipzig.de/Software/proteinortho")
4482 (synopsis "Detect orthologous genes across species")
4483 (description
4484 "Proteinortho is a tool to detect orthologous genes across different
4485 species. For doing so, it compares similarities of given gene sequences and
4486 clusters them to find significant groups. The algorithm was designed to handle
4487 large-scale data and can be applied to hundreds of species at once.")
4488 (license license:gpl2+)))
4489
4490 (define-public pyicoteo
4491 (package
4492 (name "pyicoteo")
4493 (version "2.0.7")
4494 (source
4495 (origin
4496 (method url-fetch)
4497 (uri (string-append "https://bitbucket.org/regulatorygenomicsupf/"
4498 "pyicoteo/get/v" version ".tar.bz2"))
4499 (file-name (string-append name "-" version ".tar.bz2"))
4500 (sha256
4501 (base32
4502 "0d6087f29xp8wxwlj111c3sylli98n0l8ry58c51ixzq0zfm50wa"))))
4503 (build-system python-build-system)
4504 (arguments
4505 `(#:python ,python-2 ; does not work with Python 3
4506 #:tests? #f)) ; there are no tests
4507 (inputs
4508 `(("python2-matplotlib" ,python2-matplotlib)))
4509 (home-page "https://bitbucket.org/regulatorygenomicsupf/pyicoteo")
4510 (synopsis "Analyze high-throughput genetic sequencing data")
4511 (description
4512 "Pyicoteo is a suite of tools for the analysis of high-throughput genetic
4513 sequencing data. It works with genomic coordinates. There are currently six
4514 different command-line tools:
4515
4516 @enumerate
4517 @item pyicoregion: for generating exploratory regions automatically;
4518 @item pyicoenrich: for differential enrichment between two conditions;
4519 @item pyicoclip: for calling CLIP-Seq peaks without a control;
4520 @item pyicos: for genomic coordinates manipulation;
4521 @item pyicoller: for peak calling on punctuated ChIP-Seq;
4522 @item pyicount: to count how many reads from N experiment files overlap in a
4523 region file;
4524 @item pyicotrocol: to combine operations from pyicoteo.
4525 @end enumerate\n")
4526 (license license:gpl3+)))
4527
4528 (define-public prodigal
4529 (package
4530 (name "prodigal")
4531 (version "2.6.3")
4532 (source (origin
4533 (method url-fetch)
4534 (uri (string-append
4535 "https://github.com/hyattpd/Prodigal/archive/v"
4536 version ".tar.gz"))
4537 (file-name (string-append name "-" version ".tar.gz"))
4538 (sha256
4539 (base32
4540 "17srxkqd3jc77xk15pfbgg1a9xahqg7337w95mrsia7mpza4l2c9"))))
4541 (build-system gnu-build-system)
4542 (arguments
4543 `(#:tests? #f ;no check target
4544 #:make-flags (list (string-append "INSTALLDIR="
4545 (assoc-ref %outputs "out")
4546 "/bin"))
4547 #:phases
4548 (modify-phases %standard-phases
4549 (delete 'configure))))
4550 (home-page "http://prodigal.ornl.gov")
4551 (synopsis "Protein-coding gene prediction for Archaea and Bacteria")
4552 (description
4553 "Prodigal runs smoothly on finished genomes, draft genomes, and
4554 metagenomes, providing gene predictions in GFF3, Genbank, or Sequin table
4555 format. It runs quickly, in an unsupervised fashion, handles gaps, handles
4556 partial genes, and identifies translation initiation sites.")
4557 (license license:gpl3+)))
4558
4559 (define-public roary
4560 (package
4561 (name "roary")
4562 (version "3.11.0")
4563 (source
4564 (origin
4565 (method url-fetch)
4566 (uri (string-append
4567 "mirror://cpan/authors/id/A/AJ/AJPAGE/Bio-Roary-"
4568 version ".tar.gz"))
4569 (sha256
4570 (base32
4571 "10lw78x1xzvn7xzvnmh4bm3cak3ah5cssapl0yidvhaj1f44h29i"))))
4572 (build-system perl-build-system)
4573 (arguments
4574 `(#:phases
4575 (modify-phases %standard-phases
4576 (delete 'configure)
4577 (delete 'build)
4578 (replace 'check
4579 (lambda _
4580 ;; The tests are not run by default, so we run each test file
4581 ;; directly.
4582 (setenv "PATH" (string-append (getcwd) "/bin" ":"
4583 (getenv "PATH")))
4584 (setenv "PERL5LIB" (string-append (getcwd) "/lib" ":"
4585 (getenv "PERL5LIB")))
4586 (zero? (length (filter (lambda (file)
4587 (display file)(display "\n")
4588 (not (zero? (system* "perl" file))))
4589 (find-files "t" ".*\\.t$"))))))
4590 (replace 'install
4591 ;; There is no 'install' target in the Makefile.
4592 (lambda* (#:key outputs #:allow-other-keys)
4593 (let* ((out (assoc-ref outputs "out"))
4594 (bin (string-append out "/bin"))
4595 (perl (string-append out "/lib/perl5/site_perl"))
4596 (roary-plots "contrib/roary_plots"))
4597 (mkdir-p bin)
4598 (mkdir-p perl)
4599 (copy-recursively "bin" bin)
4600 (copy-recursively "lib" perl)
4601 #t)))
4602 (add-after 'install 'wrap-programs
4603 (lambda* (#:key inputs outputs #:allow-other-keys)
4604 (let* ((out (assoc-ref outputs "out"))
4605 (perl5lib (getenv "PERL5LIB"))
4606 (path (getenv "PATH")))
4607 (for-each (lambda (prog)
4608 (let ((binary (string-append out "/" prog)))
4609 (wrap-program binary
4610 `("PERL5LIB" ":" prefix
4611 (,(string-append perl5lib ":" out
4612 "/lib/perl5/site_perl"))))
4613 (wrap-program binary
4614 `("PATH" ":" prefix
4615 (,(string-append path ":" out "/bin"))))))
4616 (find-files "bin" ".*[^R]$"))
4617 (let ((file
4618 (string-append out "/bin/roary-create_pan_genome_plots.R"))
4619 (r-site-lib (getenv "R_LIBS_SITE"))
4620 (coreutils-path
4621 (string-append (assoc-ref inputs "coreutils") "/bin")))
4622 (wrap-program file
4623 `("R_LIBS_SITE" ":" prefix
4624 (,(string-append r-site-lib ":" out "/site-library/"))))
4625 (wrap-program file
4626 `("PATH" ":" prefix
4627 (,(string-append coreutils-path ":" out "/bin"))))))
4628 #t)))))
4629 (native-inputs
4630 `(("perl-env-path" ,perl-env-path)
4631 ("perl-test-files" ,perl-test-files)
4632 ("perl-test-most" ,perl-test-most)
4633 ("perl-test-output" ,perl-test-output)))
4634 (inputs
4635 `(("perl-array-utils" ,perl-array-utils)
4636 ("bioperl" ,bioperl-minimal)
4637 ("perl-digest-md5-file" ,perl-digest-md5-file)
4638 ("perl-exception-class" ,perl-exception-class)
4639 ("perl-file-find-rule" ,perl-file-find-rule)
4640 ("perl-file-grep" ,perl-file-grep)
4641 ("perl-file-slurper" ,perl-file-slurper)
4642 ("perl-file-which" ,perl-file-which)
4643 ("perl-graph" ,perl-graph)
4644 ("perl-graph-readwrite" ,perl-graph-readwrite)
4645 ("perl-log-log4perl" ,perl-log-log4perl)
4646 ("perl-moose" ,perl-moose)
4647 ("perl-perlio-utf8_strict" ,perl-perlio-utf8_strict)
4648 ("perl-text-csv" ,perl-text-csv)
4649 ("bedtools" ,bedtools)
4650 ("cd-hit" ,cd-hit)
4651 ("blast+" ,blast+)
4652 ("mcl" ,mcl)
4653 ("parallel" ,parallel)
4654 ("prank" ,prank)
4655 ("mafft" ,mafft)
4656 ("fasttree" ,fasttree)
4657 ("grep" ,grep)
4658 ("sed" ,sed)
4659 ("gawk" ,gawk)
4660 ("r-minimal" ,r-minimal)
4661 ("r-ggplot2" ,r-ggplot2)
4662 ("coreutils" ,coreutils)))
4663 (home-page "http://sanger-pathogens.github.io/Roary")
4664 (synopsis "High speed stand-alone pan genome pipeline")
4665 (description
4666 "Roary is a high speed stand alone pan genome pipeline, which takes
4667 annotated assemblies in GFF3 format (produced by the Prokka program) and
4668 calculates the pan genome. Using a standard desktop PC, it can analyse
4669 datasets with thousands of samples, without compromising the quality of the
4670 results. 128 samples can be analysed in under 1 hour using 1 GB of RAM and a
4671 single processor. Roary is not intended for metagenomics or for comparing
4672 extremely diverse sets of genomes.")
4673 (license license:gpl3)))
4674
4675 (define-public raxml
4676 (package
4677 (name "raxml")
4678 (version "8.2.10")
4679 (source
4680 (origin
4681 (method url-fetch)
4682 (uri
4683 (string-append
4684 "https://github.com/stamatak/standard-RAxML/archive/v"
4685 version ".tar.gz"))
4686 (file-name (string-append name "-" version ".tar.gz"))
4687 (sha256
4688 (base32
4689 "13s7aspfdcfr6asynwdg1x6vznys6pzap5f8wsffbnnwpkkg9ya8"))))
4690 (build-system gnu-build-system)
4691 (arguments
4692 `(#:tests? #f ; There are no tests.
4693 ;; Use 'standard' Makefile rather than SSE or AVX ones.
4694 #:make-flags (list "-f" "Makefile.HYBRID.gcc")
4695 #:phases
4696 (modify-phases %standard-phases
4697 (delete 'configure)
4698 (replace 'install
4699 (lambda* (#:key outputs #:allow-other-keys)
4700 (let* ((out (assoc-ref outputs "out"))
4701 (bin (string-append out "/bin"))
4702 (executable "raxmlHPC-HYBRID"))
4703 (install-file executable bin)
4704 (symlink (string-append bin "/" executable) "raxml"))
4705 #t)))))
4706 (inputs
4707 `(("openmpi" ,openmpi)))
4708 (home-page "http://sco.h-its.org/exelixis/web/software/raxml/index.html")
4709 (synopsis "Randomized Axelerated Maximum Likelihood phylogenetic trees")
4710 (description
4711 "RAxML is a tool for phylogenetic analysis and post-analysis of large
4712 phylogenies.")
4713 ;; The source includes x86 specific code
4714 (supported-systems '("x86_64-linux" "i686-linux"))
4715 (license license:gpl2+)))
4716
4717 (define-public rsem
4718 (package
4719 (name "rsem")
4720 (version "1.2.20")
4721 (source
4722 (origin
4723 (method url-fetch)
4724 (uri
4725 (string-append "http://deweylab.biostat.wisc.edu/rsem/src/rsem-"
4726 version ".tar.gz"))
4727 (sha256
4728 (base32 "0nzdc0j0hjllhsd5f2xli95dafm3nawskigs140xzvjk67xh0r9q"))
4729 (patches (search-patches "rsem-makefile.patch"))
4730 (modules '((guix build utils)))
4731 (snippet
4732 '(begin
4733 ;; remove bundled copy of boost
4734 (delete-file-recursively "boost")
4735 #t))))
4736 (build-system gnu-build-system)
4737 (arguments
4738 `(#:tests? #f ;no "check" target
4739 #:phases
4740 (modify-phases %standard-phases
4741 ;; No "configure" script.
4742 ;; Do not build bundled samtools library.
4743 (replace 'configure
4744 (lambda _
4745 (substitute* "Makefile"
4746 (("^all : sam/libbam.a") "all : "))
4747 #t))
4748 (replace 'install
4749 (lambda* (#:key outputs #:allow-other-keys)
4750 (let* ((out (string-append (assoc-ref outputs "out")))
4751 (bin (string-append out "/bin/"))
4752 (perl (string-append out "/lib/perl5/site_perl")))
4753 (mkdir-p bin)
4754 (mkdir-p perl)
4755 (for-each (lambda (file)
4756 (install-file file bin))
4757 (find-files "." "rsem-.*"))
4758 (install-file "rsem_perl_utils.pm" perl))
4759 #t))
4760 (add-after
4761 'install 'wrap-program
4762 (lambda* (#:key outputs #:allow-other-keys)
4763 (let ((out (assoc-ref outputs "out")))
4764 (for-each (lambda (prog)
4765 (wrap-program (string-append out "/bin/" prog)
4766 `("PERL5LIB" ":" prefix
4767 (,(string-append out "/lib/perl5/site_perl")))))
4768 '("rsem-plot-transcript-wiggles"
4769 "rsem-calculate-expression"
4770 "rsem-generate-ngvector"
4771 "rsem-run-ebseq"
4772 "rsem-prepare-reference")))
4773 #t)))))
4774 (inputs
4775 `(("boost" ,boost)
4776 ("ncurses" ,ncurses)
4777 ("r-minimal" ,r-minimal)
4778 ("perl" ,perl)
4779 ("samtools" ,samtools-0.1)
4780 ("zlib" ,zlib)))
4781 (home-page "http://deweylab.biostat.wisc.edu/rsem/")
4782 (synopsis "Estimate gene expression levels from RNA-Seq data")
4783 (description
4784 "RSEM is a software package for estimating gene and isoform expression
4785 levels from RNA-Seq data. The RSEM package provides a user-friendly
4786 interface, supports threads for parallel computation of the EM algorithm,
4787 single-end and paired-end read data, quality scores, variable-length reads and
4788 RSPD estimation. In addition, it provides posterior mean and 95% credibility
4789 interval estimates for expression levels. For visualization, it can generate
4790 BAM and Wiggle files in both transcript-coordinate and genomic-coordinate.")
4791 (license license:gpl3+)))
4792
4793 (define-public rseqc
4794 (package
4795 (name "rseqc")
4796 (version "2.6.1")
4797 (source
4798 (origin
4799 (method url-fetch)
4800 (uri
4801 (string-append "mirror://sourceforge/rseqc/"
4802 "RSeQC-" version ".tar.gz"))
4803 (sha256
4804 (base32 "15ly0254yi032qzkdplg00q144qfdsd986gh62829rl5bkxhj330"))
4805 (modules '((guix build utils)))
4806 (snippet
4807 '(begin
4808 ;; remove bundled copy of pysam
4809 (delete-file-recursively "lib/pysam")
4810 (substitute* "setup.py"
4811 ;; remove dependency on outdated "distribute" module
4812 (("^from distribute_setup import use_setuptools") "")
4813 (("^use_setuptools\\(\\)") "")
4814 ;; do not use bundled copy of pysam
4815 (("^have_pysam = False") "have_pysam = True"))))))
4816 (build-system python-build-system)
4817 (arguments `(#:python ,python-2))
4818 (inputs
4819 `(("python-cython" ,python2-cython)
4820 ("python-pysam" ,python2-pysam)
4821 ("python-numpy" ,python2-numpy)
4822 ("zlib" ,zlib)))
4823 (native-inputs
4824 `(("python-nose" ,python2-nose)))
4825 (home-page "http://rseqc.sourceforge.net/")
4826 (synopsis "RNA-seq quality control package")
4827 (description
4828 "RSeQC provides a number of modules that can comprehensively evaluate
4829 high throughput sequence data, especially RNA-seq data. Some basic modules
4830 inspect sequence quality, nucleotide composition bias, PCR bias and GC bias,
4831 while RNA-seq specific modules evaluate sequencing saturation, mapped reads
4832 distribution, coverage uniformity, strand specificity, etc.")
4833 (license license:gpl3+)))
4834
4835 (define-public seek
4836 ;; There are no release tarballs. According to the installation
4837 ;; instructions at http://seek.princeton.edu/installation.jsp, the latest
4838 ;; stable release is identified by this changeset ID.
4839 (let ((changeset "2329130")
4840 (revision "1"))
4841 (package
4842 (name "seek")
4843 (version (string-append "0-" revision "." changeset))
4844 (source (origin
4845 (method hg-fetch)
4846 (uri (hg-reference
4847 (url "https://bitbucket.org/libsleipnir/sleipnir")
4848 (changeset changeset)))
4849 (file-name (string-append name "-" version "-checkout"))
4850 (sha256
4851 (base32
4852 "0qrvilwh18dpbhkf92qvxbmay0j75ra3jg2wrhz67gf538zzphsx"))))
4853 (build-system gnu-build-system)
4854 (arguments
4855 `(#:modules ((srfi srfi-1)
4856 (guix build gnu-build-system)
4857 (guix build utils))
4858 #:phases
4859 (let ((dirs '("SeekMiner"
4860 "SeekEvaluator"
4861 "SeekPrep"
4862 "Distancer"
4863 "Data2DB"
4864 "PCL2Bin")))
4865 (modify-phases %standard-phases
4866 (add-before 'configure 'bootstrap
4867 (lambda _
4868 (zero? (system* "bash" "gen_auto"))))
4869 (add-after 'build 'build-additional-tools
4870 (lambda* (#:key make-flags #:allow-other-keys)
4871 (every (lambda (dir)
4872 (with-directory-excursion (string-append "tools/" dir)
4873 (zero? (apply system* "make" make-flags))))
4874 dirs)))
4875 (add-after 'install 'install-additional-tools
4876 (lambda* (#:key make-flags #:allow-other-keys)
4877 (fold (lambda (dir result)
4878 (with-directory-excursion (string-append "tools/" dir)
4879 (and result
4880 (zero? (apply system*
4881 `("make" ,@make-flags "install"))))))
4882 #t dirs)))))))
4883 (inputs
4884 `(("gsl" ,gsl)
4885 ("boost" ,boost)
4886 ("libsvm" ,libsvm)
4887 ("readline" ,readline)
4888 ("gengetopt" ,gengetopt)
4889 ("log4cpp" ,log4cpp)))
4890 (native-inputs
4891 `(("autoconf" ,autoconf)
4892 ("automake" ,automake)
4893 ("perl" ,perl)))
4894 (home-page "http://seek.princeton.edu")
4895 (synopsis "Gene co-expression search engine")
4896 (description
4897 "SEEK is a computational gene co-expression search engine. SEEK provides
4898 biologists with a way to navigate the massive human expression compendium that
4899 now contains thousands of expression datasets. SEEK returns a robust ranking
4900 of co-expressed genes in the biological area of interest defined by the user's
4901 query genes. It also prioritizes thousands of expression datasets according
4902 to the user's query of interest.")
4903 (license license:cc-by3.0))))
4904
4905 (define-public samtools
4906 (package
4907 (name "samtools")
4908 (version "1.5")
4909 (source
4910 (origin
4911 (method url-fetch)
4912 (uri
4913 (string-append "mirror://sourceforge/samtools/samtools/"
4914 version "/samtools-" version ".tar.bz2"))
4915 (sha256
4916 (base32
4917 "1xidmv0jmfy7l0kb32hdnlshcxgzi1hmygvig0cqrq1fhckdlhl5"))))
4918 (build-system gnu-build-system)
4919 (arguments
4920 `(#:modules ((ice-9 ftw)
4921 (ice-9 regex)
4922 (guix build gnu-build-system)
4923 (guix build utils))
4924 #:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
4925 #:configure-flags (list "--with-ncurses" "--with-htslib=system")
4926 #:phases
4927 (modify-phases %standard-phases
4928 (add-after 'unpack 'patch-tests
4929 (lambda _
4930 (substitute* "test/test.pl"
4931 ;; The test script calls out to /bin/bash
4932 (("/bin/bash") (which "bash")))
4933 #t))
4934 (add-after 'install 'install-library
4935 (lambda* (#:key outputs #:allow-other-keys)
4936 (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
4937 (install-file "libbam.a" lib)
4938 #t)))
4939 (add-after 'install 'install-headers
4940 (lambda* (#:key outputs #:allow-other-keys)
4941 (let ((include (string-append (assoc-ref outputs "out")
4942 "/include/samtools/")))
4943 (for-each (lambda (file)
4944 (install-file file include))
4945 (scandir "." (lambda (name) (string-match "\\.h$" name))))
4946 #t))))))
4947 (native-inputs `(("pkg-config" ,pkg-config)))
4948 (inputs
4949 `(("htslib" ,htslib)
4950 ("ncurses" ,ncurses)
4951 ("perl" ,perl)
4952 ("python" ,python)
4953 ("zlib" ,zlib)))
4954 (home-page "http://samtools.sourceforge.net")
4955 (synopsis "Utilities to efficiently manipulate nucleotide sequence alignments")
4956 (description
4957 "Samtools implements various utilities for post-processing nucleotide
4958 sequence alignments in the SAM, BAM, and CRAM formats, including indexing,
4959 variant calling (in conjunction with bcftools), and a simple alignment
4960 viewer.")
4961 (license license:expat)))
4962
4963 (define-public samtools-0.1
4964 ;; This is the most recent version of the 0.1 line of samtools. The input
4965 ;; and output formats differ greatly from that used and produced by samtools
4966 ;; 1.x and is still used in many bioinformatics pipelines.
4967 (package (inherit samtools)
4968 (version "0.1.19")
4969 (source
4970 (origin
4971 (method url-fetch)
4972 (uri
4973 (string-append "mirror://sourceforge/samtools/samtools/"
4974 version "/samtools-" version ".tar.bz2"))
4975 (sha256
4976 (base32 "1m33xsfwz0s8qi45lylagfllqg7fphf4dr0780rsvw75av9wk06h"))))
4977 (arguments
4978 `(#:tests? #f ;no "check" target
4979 ,@(substitute-keyword-arguments (package-arguments samtools)
4980 ((#:make-flags flags)
4981 `(cons "LIBCURSES=-lncurses" ,flags))
4982 ((#:phases phases)
4983 `(modify-phases ,phases
4984 (replace 'install
4985 (lambda* (#:key outputs #:allow-other-keys)
4986 (let ((bin (string-append
4987 (assoc-ref outputs "out") "/bin")))
4988 (mkdir-p bin)
4989 (install-file "samtools" bin)
4990 #t)))
4991 (delete 'patch-tests)
4992 (delete 'configure))))))))
4993
4994 (define-public mosaik
4995 (let ((commit "5c25216d3522d6a33e53875cd76a6d65001e4e67"))
4996 (package
4997 (name "mosaik")
4998 (version "2.2.30")
4999 (source (origin
5000 ;; There are no release tarballs nor tags.
5001 (method git-fetch)
5002 (uri (git-reference
5003 (url "https://github.com/wanpinglee/MOSAIK.git")
5004 (commit commit)))
5005 (file-name (string-append name "-" version))
5006 (sha256
5007 (base32
5008 "17gj3s07cm77r41z92awh0bim7w7q7fbn0sf5nkqmcm1vw052qgw"))))
5009 (build-system gnu-build-system)
5010 (arguments
5011 `(#:tests? #f ; no tests
5012 #:make-flags (list "CC=gcc")
5013 #:phases
5014 (modify-phases %standard-phases
5015 (replace 'configure
5016 (lambda _ (chdir "src") #t))
5017 (replace 'install
5018 (lambda* (#:key outputs #:allow-other-keys)
5019 (let ((bin (string-append (assoc-ref outputs "out")
5020 "/bin")))
5021 (mkdir-p bin)
5022 (copy-recursively "../bin" bin)
5023 #t))))))
5024 (inputs
5025 `(("perl" ,perl)
5026 ("zlib" ,zlib)))
5027 (supported-systems '("x86_64-linux"))
5028 (home-page "https://github.com/wanpinglee/MOSAIK")
5029 (synopsis "Map nucleotide sequence reads to reference genomes")
5030 (description
5031 "MOSAIK is a program for mapping second and third-generation sequencing
5032 reads to a reference genome. MOSAIK can align reads generated by all the
5033 major sequencing technologies, including Illumina, Applied Biosystems SOLiD,
5034 Roche 454, Ion Torrent and Pacific BioSciences SMRT.")
5035 ;; MOSAIK is released under the GPLv2+ with the exception of third-party
5036 ;; code released into the public domain:
5037 ;; 1. fastlz by Ariya Hidayat - http://www.fastlz.org/
5038 ;; 2. MD5 implementation - RSA Data Security, RFC 1321
5039 (license (list license:gpl2+ license:public-domain)))))
5040
5041 (define-public ngs-sdk
5042 (package
5043 (name "ngs-sdk")
5044 (version "1.3.0")
5045 (source
5046 (origin
5047 (method url-fetch)
5048 (uri
5049 (string-append "https://github.com/ncbi/ngs/archive/"
5050 version ".tar.gz"))
5051 (file-name (string-append name "-" version ".tar.gz"))
5052 (sha256
5053 (base32
5054 "1wiyf4c6nm2j87pv015cbi0qny5byf3pbvcw3likifz5dl56ag40"))))
5055 (build-system gnu-build-system)
5056 (arguments
5057 `(#:parallel-build? #f ; not supported
5058 #:tests? #f ; no "check" target
5059 #:phases
5060 (modify-phases %standard-phases
5061 (replace 'configure
5062 (lambda* (#:key outputs #:allow-other-keys)
5063 (let ((out (assoc-ref outputs "out")))
5064 ;; Allow 'konfigure.perl' to find 'package.prl'.
5065 (setenv "PERL5LIB"
5066 (string-append ".:" (getenv "PERL5LIB")))
5067
5068 ;; The 'configure' script doesn't recognize things like
5069 ;; '--enable-fast-install'.
5070 (zero? (system* "./configure"
5071 (string-append "--build-prefix=" (getcwd) "/build")
5072 (string-append "--prefix=" out))))))
5073 (add-after 'unpack 'enter-dir
5074 (lambda _ (chdir "ngs-sdk") #t)))))
5075 (native-inputs `(("perl" ,perl)))
5076 ;; According to the test
5077 ;; unless ($MARCH =~ /x86_64/i || $MARCH =~ /i?86/i)
5078 ;; in ngs-sdk/setup/konfigure.perl
5079 (supported-systems '("i686-linux" "x86_64-linux"))
5080 (home-page "https://github.com/ncbi/ngs")
5081 (synopsis "API for accessing Next Generation Sequencing data")
5082 (description
5083 "NGS is a domain-specific API for accessing reads, alignments and pileups
5084 produced from Next Generation Sequencing. The API itself is independent from
5085 any particular back-end implementation, and supports use of multiple back-ends
5086 simultaneously.")
5087 (license license:public-domain)))
5088
5089 (define-public java-ngs
5090 (package (inherit ngs-sdk)
5091 (name "java-ngs")
5092 (arguments
5093 `(,@(substitute-keyword-arguments
5094 `(#:modules ((guix build gnu-build-system)
5095 (guix build utils)
5096 (srfi srfi-1)
5097 (srfi srfi-26))
5098 ,@(package-arguments ngs-sdk))
5099 ((#:phases phases)
5100 `(modify-phases ,phases
5101 (replace 'enter-dir (lambda _ (chdir "ngs-java") #t)))))))
5102 (inputs
5103 `(("jdk" ,icedtea "jdk")
5104 ("ngs-sdk" ,ngs-sdk)))
5105 (synopsis "Java bindings for NGS SDK")))
5106
5107 (define-public ncbi-vdb
5108 (package
5109 (name "ncbi-vdb")
5110 (version "2.8.2")
5111 (source
5112 (origin
5113 (method url-fetch)
5114 (uri
5115 (string-append "https://github.com/ncbi/ncbi-vdb/archive/"
5116 version ".tar.gz"))
5117 (file-name (string-append name "-" version ".tar.gz"))
5118 (sha256
5119 (base32
5120 "1acn4bv81mfl137qnbn9995mjjhwd36pm0b7qli1iw5skrxa9j8m"))))
5121 (build-system gnu-build-system)
5122 (arguments
5123 `(#:parallel-build? #f ; not supported
5124 #:tests? #f ; no "check" target
5125 #:phases
5126 (modify-phases %standard-phases
5127 (add-before 'configure 'set-perl-search-path
5128 (lambda _
5129 ;; Work around "dotless @INC" build failure.
5130 (setenv "PERL5LIB"
5131 (string-append (getcwd) "/setup:"
5132 (getenv "PERL5LIB")))
5133 #t))
5134 (replace 'configure
5135 (lambda* (#:key inputs outputs #:allow-other-keys)
5136 (let ((out (assoc-ref outputs "out")))
5137 ;; Override include path for libmagic
5138 (substitute* "setup/package.prl"
5139 (("name => 'magic', Include => '/usr/include'")
5140 (string-append "name=> 'magic', Include => '"
5141 (assoc-ref inputs "libmagic")
5142 "/include" "'")))
5143
5144 ;; Install kdf5 library (needed by sra-tools)
5145 (substitute* "build/Makefile.install"
5146 (("LIBRARIES_TO_INSTALL =")
5147 "LIBRARIES_TO_INSTALL = kdf5.$(VERSION_LIBX) kdf5.$(VERSION_SHLX)"))
5148
5149 (substitute* "build/Makefile.env"
5150 (("CFLAGS =" prefix)
5151 (string-append prefix "-msse2 ")))
5152
5153 ;; Override search path for ngs-java
5154 (substitute* "setup/package.prl"
5155 (("/usr/local/ngs/ngs-java")
5156 (assoc-ref inputs "java-ngs")))
5157
5158 ;; The 'configure' script doesn't recognize things like
5159 ;; '--enable-fast-install'.
5160 (zero? (system*
5161 "./configure"
5162 (string-append "--build-prefix=" (getcwd) "/build")
5163 (string-append "--prefix=" (assoc-ref outputs "out"))
5164 (string-append "--debug")
5165 (string-append "--with-xml2-prefix="
5166 (assoc-ref inputs "libxml2"))
5167 (string-append "--with-ngs-sdk-prefix="
5168 (assoc-ref inputs "ngs-sdk"))
5169 (string-append "--with-hdf5-prefix="
5170 (assoc-ref inputs "hdf5")))))))
5171 (add-after 'install 'install-interfaces
5172 (lambda* (#:key outputs #:allow-other-keys)
5173 ;; Install interface libraries. On i686 the interface libraries
5174 ;; are installed to "linux/gcc/i386", so we need to use the Linux
5175 ;; architecture name ("i386") instead of the target system prefix
5176 ;; ("i686").
5177 (mkdir (string-append (assoc-ref outputs "out") "/ilib"))
5178 (copy-recursively (string-append "build/ncbi-vdb/linux/gcc/"
5179 ,(system->linux-architecture
5180 (or (%current-target-system)
5181 (%current-system)))
5182 "/rel/ilib")
5183 (string-append (assoc-ref outputs "out")
5184 "/ilib"))
5185 ;; Install interface headers
5186 (copy-recursively "interfaces"
5187 (string-append (assoc-ref outputs "out")
5188 "/include"))
5189 #t))
5190 ;; These files are needed by sra-tools.
5191 (add-after 'install 'install-configuration-files
5192 (lambda* (#:key outputs #:allow-other-keys)
5193 (let ((target (string-append (assoc-ref outputs "out") "/kfg")))
5194 (mkdir target)
5195 (install-file "libs/kfg/default.kfg" target)
5196 (install-file "libs/kfg/certs.kfg" target))
5197 #t)))))
5198 (inputs
5199 `(("libxml2" ,libxml2)
5200 ("ngs-sdk" ,ngs-sdk)
5201 ("java-ngs" ,java-ngs)
5202 ("libmagic" ,file)
5203 ("hdf5" ,hdf5)))
5204 (native-inputs `(("perl" ,perl)))
5205 ;; NCBI-VDB requires SSE capability.
5206 (supported-systems '("i686-linux" "x86_64-linux"))
5207 (home-page "https://github.com/ncbi/ncbi-vdb")
5208 (synopsis "Database engine for genetic information")
5209 (description
5210 "The NCBI-VDB library implements a highly compressed columnar data
5211 warehousing engine that is most often used to store genetic information.
5212 Databases are stored in a portable image within the file system, and can be
5213 accessed/downloaded on demand across HTTP.")
5214 (license license:public-domain)))
5215
5216 (define-public plink
5217 (package
5218 (name "plink")
5219 (version "1.07")
5220 (source
5221 (origin
5222 (method url-fetch)
5223 (uri (string-append
5224 "http://pngu.mgh.harvard.edu/~purcell/plink/dist/plink-"
5225 version "-src.zip"))
5226 (sha256
5227 (base32 "0as8gxm4pjyc8dxmm1sl873rrd7wn5qs0l29nqfnl31x8i467xaa"))
5228 (patches (search-patches "plink-1.07-unclobber-i.patch"
5229 "plink-endian-detection.patch"))))
5230 (build-system gnu-build-system)
5231 (arguments
5232 '(#:tests? #f ;no "check" target
5233 #:make-flags (list (string-append "LIB_LAPACK="
5234 (assoc-ref %build-inputs "lapack")
5235 "/lib/liblapack.so")
5236 "WITH_LAPACK=1"
5237 "FORCE_DYNAMIC=1"
5238 ;; disable phoning home
5239 "WITH_WEBCHECK=")
5240 #:phases
5241 (modify-phases %standard-phases
5242 ;; no "configure" script
5243 (delete 'configure)
5244 (replace 'install
5245 (lambda* (#:key outputs #:allow-other-keys)
5246 (let ((bin (string-append (assoc-ref outputs "out")
5247 "/bin/")))
5248 (install-file "plink" bin)
5249 #t))))))
5250 (inputs
5251 `(("zlib" ,zlib)
5252 ("lapack" ,lapack)))
5253 (native-inputs
5254 `(("unzip" ,unzip)))
5255 (home-page "http://pngu.mgh.harvard.edu/~purcell/plink/")
5256 (synopsis "Whole genome association analysis toolset")
5257 (description
5258 "PLINK is a whole genome association analysis toolset, designed to
5259 perform a range of basic, large-scale analyses in a computationally efficient
5260 manner. The focus of PLINK is purely on analysis of genotype/phenotype data,
5261 so there is no support for steps prior to this (e.g. study design and
5262 planning, generating genotype or CNV calls from raw data). Through
5263 integration with gPLINK and Haploview, there is some support for the
5264 subsequent visualization, annotation and storage of results.")
5265 ;; Code is released under GPLv2, except for fisher.h, which is under
5266 ;; LGPLv2.1+
5267 (license (list license:gpl2 license:lgpl2.1+))))
5268
5269 (define-public plink-ng
5270 (package (inherit plink)
5271 (name "plink-ng")
5272 (version "1.90b4")
5273 (source
5274 (origin
5275 (method url-fetch)
5276 (uri (string-append "https://github.com/chrchang/plink-ng/archive/v"
5277 version ".tar.gz"))
5278 (file-name (string-append name "-" version ".tar.gz"))
5279 (sha256
5280 (base32 "09ixrds009aczjswxr2alcb774mksq5g0v78dgjjn1h4dky0kf9a"))))
5281 (build-system gnu-build-system)
5282 (arguments
5283 '(#:tests? #f ;no "check" target
5284 #:make-flags (list "BLASFLAGS=-llapack -lopenblas"
5285 "CFLAGS=-Wall -O2 -DDYNAMIC_ZLIB=1"
5286 "ZLIB=-lz"
5287 "-f" "Makefile.std")
5288 #:phases
5289 (modify-phases %standard-phases
5290 (add-after 'unpack 'chdir
5291 (lambda _ (chdir "1.9") #t))
5292 (delete 'configure) ; no "configure" script
5293 (replace 'install
5294 (lambda* (#:key outputs #:allow-other-keys)
5295 (let ((bin (string-append (assoc-ref outputs "out")
5296 "/bin/")))
5297 (install-file "plink" bin)
5298 #t))))))
5299 (inputs
5300 `(("zlib" ,zlib)
5301 ("lapack" ,lapack)
5302 ("openblas" ,openblas)))
5303 (home-page "https://www.cog-genomics.org/plink/")
5304 (license license:gpl3+)))
5305
5306 (define-public smithlab-cpp
5307 (let ((revision "1")
5308 (commit "728a097bec88c6f4b8528b685932049e660eff2e"))
5309 (package
5310 (name "smithlab-cpp")
5311 (version (string-append "0." revision "." (string-take commit 7)))
5312 (source (origin
5313 (method git-fetch)
5314 (uri (git-reference
5315 (url "https://github.com/smithlabcode/smithlab_cpp.git")
5316 (commit commit)))
5317 (file-name (string-append name "-" version "-checkout"))
5318 (sha256
5319 (base32
5320 "0d476lmj312xk77kr9fzrv7z1bv96yfyx0w7y62ycmnfbx32ll74"))))
5321 (build-system gnu-build-system)
5322 (arguments
5323 `(#:modules ((guix build gnu-build-system)
5324 (guix build utils)
5325 (srfi srfi-26))
5326 #:tests? #f ;no "check" target
5327 #:phases
5328 (modify-phases %standard-phases
5329 (add-after 'unpack 'use-samtools-headers
5330 (lambda _
5331 (substitute* '("SAM.cpp"
5332 "SAM.hpp")
5333 (("sam.h") "samtools/sam.h"))
5334 #t))
5335 (replace 'install
5336 (lambda* (#:key outputs #:allow-other-keys)
5337 (let* ((out (assoc-ref outputs "out"))
5338 (lib (string-append out "/lib"))
5339 (include (string-append out "/include/smithlab-cpp")))
5340 (mkdir-p lib)
5341 (mkdir-p include)
5342 (for-each (cut install-file <> lib)
5343 (find-files "." "\\.o$"))
5344 (for-each (cut install-file <> include)
5345 (find-files "." "\\.hpp$")))
5346 #t))
5347 (delete 'configure))))
5348 (inputs
5349 `(("samtools" ,samtools-0.1)
5350 ("zlib" ,zlib)))
5351 (home-page "https://github.com/smithlabcode/smithlab_cpp")
5352 (synopsis "C++ helper library for functions used in Smith lab projects")
5353 (description
5354 "Smithlab CPP is a C++ library that includes functions used in many of
5355 the Smith lab bioinformatics projects, such as a wrapper around Samtools data
5356 structures, classes for genomic regions, mapped sequencing reads, etc.")
5357 (license license:gpl3+))))
5358
5359 (define-public preseq
5360 (package
5361 (name "preseq")
5362 (version "2.0")
5363 (source (origin
5364 (method url-fetch)
5365 (uri (string-append "https://github.com/smithlabcode/"
5366 "preseq/archive/v" version ".tar.gz"))
5367 (file-name (string-append name "-" version ".tar.gz"))
5368 (sha256
5369 (base32 "08r684l50pnxjpvmhzjgqq56yv9rfw90k8vx0nsrnrzk8mf9hsdq"))
5370 (modules '((guix build utils)))
5371 (snippet
5372 ;; Remove bundled samtools.
5373 '(delete-file-recursively "samtools"))))
5374 (build-system gnu-build-system)
5375 (arguments
5376 `(#:tests? #f ;no "check" target
5377 #:phases
5378 (modify-phases %standard-phases
5379 (delete 'configure))
5380 #:make-flags
5381 (list (string-append "PREFIX="
5382 (assoc-ref %outputs "out"))
5383 (string-append "LIBBAM="
5384 (assoc-ref %build-inputs "samtools")
5385 "/lib/libbam.a")
5386 (string-append "SMITHLAB_CPP="
5387 (assoc-ref %build-inputs "smithlab-cpp")
5388 "/lib")
5389 "PROGS=preseq"
5390 "INCLUDEDIRS=$(SMITHLAB_CPP)/../include/smithlab-cpp $(SAMTOOLS_DIR)")))
5391 (inputs
5392 `(("gsl" ,gsl)
5393 ("samtools" ,samtools-0.1)
5394 ("smithlab-cpp" ,smithlab-cpp)
5395 ("zlib" ,zlib)))
5396 (home-page "http://smithlabresearch.org/software/preseq/")
5397 (synopsis "Program for analyzing library complexity")
5398 (description
5399 "The preseq package is aimed at predicting and estimating the complexity
5400 of a genomic sequencing library, equivalent to predicting and estimating the
5401 number of redundant reads from a given sequencing depth and how many will be
5402 expected from additional sequencing using an initial sequencing experiment.
5403 The estimates can then be used to examine the utility of further sequencing,
5404 optimize the sequencing depth, or to screen multiple libraries to avoid low
5405 complexity samples.")
5406 (license license:gpl3+)))
5407
5408 (define-public python-screed
5409 (package
5410 (name "python-screed")
5411 (version "0.9")
5412 (source
5413 (origin
5414 (method url-fetch)
5415 (uri (pypi-uri "screed" version))
5416 (sha256
5417 (base32
5418 "18czszp9fkx3j6jr7y5kp6dfialscgddk05mw1zkhh2zhn0jd8i0"))))
5419 (build-system python-build-system)
5420 (arguments
5421 `(#:phases
5422 (modify-phases %standard-phases
5423 (replace 'check
5424 (lambda _
5425 (setenv "PYTHONPATH"
5426 (string-append (getenv "PYTHONPATH") ":."))
5427 (zero? (system* "nosetests" "--attr" "!known_failing")))))))
5428 (native-inputs
5429 `(("python-nose" ,python-nose)))
5430 (inputs
5431 `(("python-bz2file" ,python-bz2file)))
5432 (home-page "https://github.com/dib-lab/screed/")
5433 (synopsis "Short read sequence database utilities")
5434 (description "Screed parses FASTA and FASTQ files and generates databases.
5435 Values such as sequence name, sequence description, sequence quality and the
5436 sequence itself can be retrieved from these databases.")
5437 (license license:bsd-3)))
5438
5439 (define-public python2-screed
5440 (package-with-python2 python-screed))
5441
5442 (define-public sra-tools
5443 (package
5444 (name "sra-tools")
5445 (version "2.8.2-1")
5446 (source
5447 (origin
5448 (method url-fetch)
5449 (uri
5450 (string-append "https://github.com/ncbi/sra-tools/archive/"
5451 version ".tar.gz"))
5452 (file-name (string-append name "-" version ".tar.gz"))
5453 (sha256
5454 (base32
5455 "1camsijmvv2s45mb4iyf44ghl4gkd4rl0viphpcgl3ccchy32a0g"))))
5456 (build-system gnu-build-system)
5457 (arguments
5458 `(#:parallel-build? #f ; not supported
5459 #:tests? #f ; no "check" target
5460 #:make-flags
5461 (list (string-append "DEFAULT_CRT="
5462 (assoc-ref %build-inputs "ncbi-vdb")
5463 "/kfg/certs.kfg")
5464 (string-append "DEFAULT_KFG="
5465 (assoc-ref %build-inputs "ncbi-vdb")
5466 "/kfg/default.kfg")
5467 (string-append "VDB_LIBDIR="
5468 (assoc-ref %build-inputs "ncbi-vdb")
5469 ,(if (string-prefix? "x86_64"
5470 (or (%current-target-system)
5471 (%current-system)))
5472 "/lib64"
5473 "/lib32")))
5474 #:phases
5475 (modify-phases %standard-phases
5476 (add-before 'configure 'set-perl-search-path
5477 (lambda _
5478 ;; Work around "dotless @INC" build failure.
5479 (setenv "PERL5LIB"
5480 (string-append (getcwd) "/setup:"
5481 (getenv "PERL5LIB")))
5482 #t))
5483 (replace 'configure
5484 (lambda* (#:key inputs outputs #:allow-other-keys)
5485 ;; The build system expects a directory containing the sources and
5486 ;; raw build output of ncbi-vdb, including files that are not
5487 ;; installed. Since we are building against an installed version of
5488 ;; ncbi-vdb, the following modifications are needed.
5489 (substitute* "setup/konfigure.perl"
5490 ;; Make the configure script look for the "ilib" directory of
5491 ;; "ncbi-vdb" without first checking for the existence of a
5492 ;; matching library in its "lib" directory.
5493 (("^ my \\$f = File::Spec->catdir\\(\\$libdir, \\$lib\\);")
5494 "my $f = File::Spec->catdir($ilibdir, $ilib);")
5495 ;; Look for interface libraries in ncbi-vdb's "ilib" directory.
5496 (("my \\$ilibdir = File::Spec->catdir\\(\\$builddir, 'ilib'\\);")
5497 "my $ilibdir = File::Spec->catdir($dir, 'ilib');"))
5498
5499 ;; Dynamic linking
5500 (substitute* "tools/copycat/Makefile"
5501 (("smagic-static") "lmagic"))
5502
5503 ;; The 'configure' script doesn't recognize things like
5504 ;; '--enable-fast-install'.
5505 (zero? (system*
5506 "./configure"
5507 (string-append "--build-prefix=" (getcwd) "/build")
5508 (string-append "--prefix=" (assoc-ref outputs "out"))
5509 (string-append "--debug")
5510 (string-append "--with-fuse-prefix="
5511 (assoc-ref inputs "fuse"))
5512 (string-append "--with-magic-prefix="
5513 (assoc-ref inputs "libmagic"))
5514 ;; TODO: building with libxml2 fails with linker errors
5515 ;; (string-append "--with-xml2-prefix="
5516 ;; (assoc-ref inputs "libxml2"))
5517 (string-append "--with-ncbi-vdb-sources="
5518 (assoc-ref inputs "ncbi-vdb"))
5519 (string-append "--with-ncbi-vdb-build="
5520 (assoc-ref inputs "ncbi-vdb"))
5521 (string-append "--with-ngs-sdk-prefix="
5522 (assoc-ref inputs "ngs-sdk"))
5523 (string-append "--with-hdf5-prefix="
5524 (assoc-ref inputs "hdf5"))))))
5525 ;; This version of sra-tools fails to build with glibc because of a
5526 ;; naming conflict. glibc-2.25/include/bits/mathcalls.h already
5527 ;; contains a definition of "canonicalize", so we rename it.
5528 ;;
5529 ;; See upstream bug report:
5530 ;; https://github.com/ncbi/sra-tools/issues/67
5531 (add-after 'unpack 'patch-away-glibc-conflict
5532 (lambda _
5533 (substitute* "tools/bam-loader/bam.c"
5534 (("canonicalize\\(" line)
5535 (string-append "sra_tools_" line)))
5536 #t)))))
5537 (native-inputs `(("perl" ,perl)))
5538 (inputs
5539 `(("ngs-sdk" ,ngs-sdk)
5540 ("ncbi-vdb" ,ncbi-vdb)
5541 ("libmagic" ,file)
5542 ("fuse" ,fuse)
5543 ("hdf5" ,hdf5)
5544 ("zlib" ,zlib)))
5545 (home-page "http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software")
5546 (synopsis "Tools and libraries for reading and writing sequencing data")
5547 (description
5548 "The SRA Toolkit from NCBI is a collection of tools and libraries for
5549 reading of sequencing files from the Sequence Read Archive (SRA) database and
5550 writing files into the .sra format.")
5551 (license license:public-domain)))
5552
5553 (define-public seqan
5554 (package
5555 (name "seqan")
5556 (version "1.4.2")
5557 (source (origin
5558 (method url-fetch)
5559 (uri (string-append "http://packages.seqan.de/seqan-library/"
5560 "seqan-library-" version ".tar.bz2"))
5561 (sha256
5562 (base32
5563 "05s3wrrwn50f81aklfm65i4a749zag1vr8z03k21xm0pdxy47yvp"))))
5564 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
5565 ;; makes sense to split the outputs.
5566 (outputs '("out" "doc"))
5567 (build-system trivial-build-system)
5568 (arguments
5569 `(#:modules ((guix build utils))
5570 #:builder
5571 (begin
5572 (use-modules (guix build utils))
5573 (let ((tar (assoc-ref %build-inputs "tar"))
5574 (bzip (assoc-ref %build-inputs "bzip2"))
5575 (out (assoc-ref %outputs "out"))
5576 (doc (assoc-ref %outputs "doc")))
5577 (setenv "PATH" (string-append tar "/bin:" bzip "/bin"))
5578 (system* "tar" "xvf" (assoc-ref %build-inputs "source"))
5579 (chdir (string-append "seqan-library-" ,version))
5580 (copy-recursively "include" (string-append out "/include"))
5581 (copy-recursively "share" (string-append doc "/share"))))))
5582 (native-inputs
5583 `(("source" ,source)
5584 ("tar" ,tar)
5585 ("bzip2" ,bzip2)))
5586 (home-page "http://www.seqan.de")
5587 (synopsis "Library for nucleotide sequence analysis")
5588 (description
5589 "SeqAn is a C++ library of efficient algorithms and data structures for
5590 the analysis of sequences with the focus on biological data. It contains
5591 algorithms and data structures for string representation and their
5592 manipulation, online and indexed string search, efficient I/O of
5593 bioinformatics file formats, sequence alignment, and more.")
5594 (license license:bsd-3)))
5595
5596 (define-public seqmagick
5597 (package
5598 (name "seqmagick")
5599 (version "0.7.0")
5600 (source
5601 (origin
5602 (method url-fetch)
5603 (uri (pypi-uri "seqmagick" version))
5604 (sha256
5605 (base32
5606 "12bfyp8nqi0hd36rmj450aygafp01qy3hkbvlwn3bk39pyjjkgg5"))))
5607 (build-system python-build-system)
5608 (inputs
5609 `(("python-biopython" ,python-biopython)))
5610 (native-inputs
5611 `(("python-nose" ,python-nose)))
5612 (home-page "https://github.com/fhcrc/seqmagick")
5613 (synopsis "Tools for converting and modifying sequence files")
5614 (description
5615 "Bioinformaticians often have to convert sequence files between formats
5616 and do little manipulations on them, and it's not worth writing scripts for
5617 that. Seqmagick is a utility to expose the file format conversion in
5618 BioPython in a convenient way. Instead of having a big mess of scripts, there
5619 is one that takes arguments.")
5620 (license license:gpl3)))
5621
5622 (define-public seqtk
5623 (package
5624 (name "seqtk")
5625 (version "1.2")
5626 (source (origin
5627 (method url-fetch)
5628 (uri (string-append
5629 "https://github.com/lh3/seqtk/archive/v"
5630 version ".tar.gz"))
5631 (file-name (string-append name "-" version ".tar.gz"))
5632 (sha256
5633 (base32
5634 "0ywdyzpmfiz2wp6ampbzqg4y8bj450nfgqarpamg045b8mk32lxx"))
5635 (modules '((guix build utils)))
5636 (snippet
5637 '(begin
5638 ;; Remove extraneous header files, as is done in the seqtk
5639 ;; master branch.
5640 (for-each (lambda (file) (delete-file file))
5641 (list "ksort.h" "kstring.h" "kvec.h"))
5642 #t))))
5643 (build-system gnu-build-system)
5644 (arguments
5645 `(#:phases
5646 (modify-phases %standard-phases
5647 (delete 'configure)
5648 (replace 'check
5649 ;; There are no tests, so we just run a sanity check.
5650 (lambda _ (zero? (system* "./seqtk" "seq"))))
5651 (replace 'install
5652 (lambda* (#:key outputs #:allow-other-keys)
5653 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5654 (install-file "seqtk" bin)))))))
5655 (inputs
5656 `(("zlib" ,zlib)))
5657 (home-page "https://github.com/lh3/seqtk")
5658 (synopsis "Toolkit for processing biological sequences in FASTA/Q format")
5659 (description
5660 "Seqtk is a fast and lightweight tool for processing sequences in the
5661 FASTA or FASTQ format. It parses both FASTA and FASTQ files which can be
5662 optionally compressed by gzip.")
5663 (license license:expat)))
5664
5665 (define-public snap-aligner
5666 (package
5667 (name "snap-aligner")
5668 (version "1.0beta.18")
5669 (source (origin
5670 (method url-fetch)
5671 (uri (string-append
5672 "https://github.com/amplab/snap/archive/v"
5673 version ".tar.gz"))
5674 (file-name (string-append name "-" version ".tar.gz"))
5675 (sha256
5676 (base32
5677 "1vnsjwv007k1fl1q7d681kbwn6bc66cgw6h16hym6gvyy71qv2ly"))))
5678 (build-system gnu-build-system)
5679 (arguments
5680 '(#:phases
5681 (modify-phases %standard-phases
5682 (delete 'configure)
5683 (replace 'check (lambda _ (zero? (system* "./unit_tests"))))
5684 (replace 'install
5685 (lambda* (#:key outputs #:allow-other-keys)
5686 (let* ((out (assoc-ref outputs "out"))
5687 (bin (string-append out "/bin")))
5688 (install-file "snap-aligner" bin)
5689 (install-file "SNAPCommand" bin)
5690 #t))))))
5691 (native-inputs
5692 `(("zlib" ,zlib)))
5693 (home-page "http://snap.cs.berkeley.edu/")
5694 (synopsis "Short read DNA sequence aligner")
5695 (description
5696 "SNAP is a fast and accurate aligner for short DNA reads. It is
5697 optimized for modern read lengths of 100 bases or higher, and takes advantage
5698 of these reads to align data quickly through a hash-based indexing scheme.")
5699 ;; 32-bit systems are not supported by the unpatched code.
5700 ;; Following the bug reports https://github.com/amplab/snap/issues/68 and
5701 ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812378 we see that
5702 ;; systems without a lot of memory cannot make good use of this program.
5703 (supported-systems '("x86_64-linux"))
5704 (license license:asl2.0)))
5705
5706 (define-public sortmerna
5707 (package
5708 (name "sortmerna")
5709 (version "2.1b")
5710 (source
5711 (origin
5712 (method url-fetch)
5713 (uri (string-append
5714 "https://github.com/biocore/sortmerna/archive/"
5715 version ".tar.gz"))
5716 (file-name (string-append name "-" version ".tar.gz"))
5717 (sha256
5718 (base32
5719 "1ghaghvd82af9j5adavxh77g7hm247d1r69m3fbi6f1jdivj5ldk"))))
5720 (build-system gnu-build-system)
5721 (outputs '("out" ;for binaries
5722 "db")) ;for sequence databases
5723 (arguments
5724 `(#:phases
5725 (modify-phases %standard-phases
5726 (replace 'install
5727 (lambda* (#:key outputs #:allow-other-keys)
5728 (let* ((out (assoc-ref outputs "out"))
5729 (bin (string-append out "/bin"))
5730 (db (assoc-ref outputs "db"))
5731 (share
5732 (string-append db "/share/sortmerna/rRNA_databases")))
5733 (install-file "sortmerna" bin)
5734 (install-file "indexdb_rna" bin)
5735 (for-each (lambda (file)
5736 (install-file file share))
5737 (find-files "rRNA_databases" ".*fasta"))
5738 #t))))))
5739 (inputs
5740 `(("zlib" ,zlib)))
5741 (home-page "http://bioinfo.lifl.fr/RNA/sortmerna")
5742 (synopsis "Biological sequence analysis tool for NGS reads")
5743 (description
5744 "SortMeRNA is a biological sequence analysis tool for filtering, mapping
5745 and operational taxonomic unit (OTU) picking of next generation
5746 sequencing (NGS) reads. The core algorithm is based on approximate seeds and
5747 allows for fast and sensitive analyses of nucleotide sequences. The main
5748 application of SortMeRNA is filtering rRNA from metatranscriptomic data.")
5749 ;; The source includes x86 specific code
5750 (supported-systems '("x86_64-linux" "i686-linux"))
5751 (license license:lgpl3)))
5752
5753 (define-public star
5754 (package
5755 (name "star")
5756 (version "2.5.3a")
5757 (source (origin
5758 (method url-fetch)
5759 (uri (string-append "https://github.com/alexdobin/STAR/archive/"
5760 version ".tar.gz"))
5761 (file-name (string-append name "-" version ".tar.gz"))
5762 (sha256
5763 (base32
5764 "013wirlz8lllgjyagl48l75n1isxyabqb3sj7qlsl0x1rmvqw99a"))
5765 (modules '((guix build utils)))
5766 (snippet
5767 '(begin
5768 (substitute* "source/Makefile"
5769 (("/bin/rm") "rm"))
5770 ;; Remove pre-built binaries and bundled htslib sources.
5771 (delete-file-recursively "bin/MacOSX_x86_64")
5772 (delete-file-recursively "bin/Linux_x86_64")
5773 (delete-file-recursively "bin/Linux_x86_64_static")
5774 (delete-file-recursively "source/htslib")
5775 #t))))
5776 (build-system gnu-build-system)
5777 (arguments
5778 '(#:tests? #f ;no check target
5779 #:make-flags '("STAR")
5780 #:phases
5781 (modify-phases %standard-phases
5782 (add-after 'unpack 'enter-source-dir
5783 (lambda _ (chdir "source") #t))
5784 (add-after 'enter-source-dir 'make-reproducible
5785 (lambda _
5786 (substitute* "Makefile"
5787 (("(COMPILATION_TIME_PLACE=\")(.*)(\")" _ pre mid post)
5788 (string-append pre "Built with Guix" post)))))
5789 (add-after 'enter-source-dir 'do-not-use-bundled-htslib
5790 (lambda _
5791 (substitute* "Makefile"
5792 (("(Depend.list: \\$\\(SOURCES\\) parametersDefault\\.xxd) htslib"
5793 _ prefix) prefix))
5794 (substitute* '("BAMfunctions.cpp"
5795 "signalFromBAM.h"
5796 "bam_cat.h"
5797 "bam_cat.c"
5798 "STAR.cpp"
5799 "bamRemoveDuplicates.cpp")
5800 (("#include \"htslib/([^\"]+\\.h)\"" _ header)
5801 (string-append "#include <" header ">")))
5802 (substitute* "IncludeDefine.h"
5803 (("\"htslib/(htslib/[^\"]+.h)\"" _ header)
5804 (string-append "<" header ">")))
5805 #t))
5806 (replace 'install
5807 (lambda* (#:key outputs #:allow-other-keys)
5808 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5809 (install-file "STAR" bin))
5810 #t))
5811 (delete 'configure))))
5812 (native-inputs
5813 `(("xxd" ,xxd)))
5814 (inputs
5815 `(("htslib" ,htslib)
5816 ("zlib" ,zlib)))
5817 (home-page "https://github.com/alexdobin/STAR")
5818 (synopsis "Universal RNA-seq aligner")
5819 (description
5820 "The Spliced Transcripts Alignment to a Reference (STAR) software is
5821 based on a previously undescribed RNA-seq alignment algorithm that uses
5822 sequential maximum mappable seed search in uncompressed suffix arrays followed
5823 by seed clustering and stitching procedure. In addition to unbiased de novo
5824 detection of canonical junctions, STAR can discover non-canonical splices and
5825 chimeric (fusion) transcripts, and is also capable of mapping full-length RNA
5826 sequences.")
5827 ;; Only 64-bit systems are supported according to the README.
5828 (supported-systems '("x86_64-linux" "mips64el-linux"))
5829 ;; STAR is licensed under GPLv3 or later; htslib is MIT-licensed.
5830 (license license:gpl3+)))
5831
5832 (define-public subread
5833 (package
5834 (name "subread")
5835 (version "1.6.0")
5836 (source (origin
5837 (method url-fetch)
5838 (uri (string-append "mirror://sourceforge/subread/subread-"
5839 version "/subread-" version "-source.tar.gz"))
5840 (sha256
5841 (base32
5842 "0ah0n4jx6ksk2m2j7xk385x2qzmk1y4rfc6a4mfrdqrlq721w99i"))))
5843 (build-system gnu-build-system)
5844 (arguments
5845 `(#:tests? #f ;no "check" target
5846 ;; The CC and CCFLAGS variables are set to contain a lot of x86_64
5847 ;; optimizations by default, so we override these flags such that x86_64
5848 ;; flags are only added when the build target is an x86_64 system.
5849 #:make-flags
5850 (list (let ((system ,(or (%current-target-system)
5851 (%current-system)))
5852 (flags '("-ggdb" "-fomit-frame-pointer"
5853 "-ffast-math" "-funroll-loops"
5854 "-fmessage-length=0"
5855 "-O9" "-Wall" "-DMAKE_FOR_EXON"
5856 "-DMAKE_STANDALONE"
5857 "-DSUBREAD_VERSION=\\\"${SUBREAD_VERSION}\\\""))
5858 (flags64 '("-mmmx" "-msse" "-msse2" "-msse3")))
5859 (if (string-prefix? "x86_64" system)
5860 (string-append "CCFLAGS=" (string-join (append flags flags64)))
5861 (string-append "CCFLAGS=" (string-join flags))))
5862 "-f" "Makefile.Linux"
5863 "CC=gcc ${CCFLAGS}")
5864 #:phases
5865 (modify-phases %standard-phases
5866 (add-after 'unpack 'enter-dir
5867 (lambda _ (chdir "src") #t))
5868 (replace 'install
5869 (lambda* (#:key outputs #:allow-other-keys)
5870 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5871 (mkdir-p bin)
5872 (copy-recursively "../bin" bin))))
5873 ;; no "configure" script
5874 (delete 'configure))))
5875 (inputs `(("zlib" ,zlib)))
5876 (home-page "http://bioinf.wehi.edu.au/subread-package/")
5877 (synopsis "Tool kit for processing next-gen sequencing data")
5878 (description
5879 "The subread package contains the following tools: subread aligner, a
5880 general-purpose read aligner; subjunc aligner: detecting exon-exon junctions
5881 and mapping RNA-seq reads; featureCounts: counting mapped reads for genomic
5882 features; exactSNP: a SNP caller that discovers SNPs by testing signals
5883 against local background noises.")
5884 (license license:gpl3+)))
5885
5886 (define-public stringtie
5887 (package
5888 (name "stringtie")
5889 (version "1.2.1")
5890 (source (origin
5891 (method url-fetch)
5892 (uri (string-append "http://ccb.jhu.edu/software/stringtie/dl/"
5893 "stringtie-" version ".tar.gz"))
5894 (sha256
5895 (base32
5896 "1cqllsc1maq4kh92isi8yadgzbmnf042hlnalpk3y59aph1z3bfz"))
5897 (modules '((guix build utils)))
5898 (snippet
5899 '(begin
5900 (delete-file-recursively "samtools-0.1.18")
5901 #t))))
5902 (build-system gnu-build-system)
5903 (arguments
5904 `(#:tests? #f ;no test suite
5905 #:phases
5906 (modify-phases %standard-phases
5907 ;; no configure script
5908 (delete 'configure)
5909 (add-before 'build 'use-system-samtools
5910 (lambda _
5911 (substitute* "Makefile"
5912 (("stringtie: \\$\\{BAM\\}/libbam\\.a")
5913 "stringtie: "))
5914 (substitute* '("gclib/GBam.h"
5915 "gclib/GBam.cpp")
5916 (("#include \"(bam|sam|kstring).h\"" _ header)
5917 (string-append "#include <samtools/" header ".h>")))
5918 #t))
5919 (add-after 'unpack 'remove-duplicate-typedef
5920 (lambda _
5921 ;; This typedef conflicts with the typedef in
5922 ;; glibc-2.25/include/bits/types.h
5923 (substitute* "gclib/GThreads.h"
5924 (("typedef long long __intmax_t;") ""))
5925 #t))
5926 (replace 'install
5927 (lambda* (#:key outputs #:allow-other-keys)
5928 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5929 (install-file "stringtie" bin)
5930 #t))))))
5931 (inputs
5932 `(("samtools" ,samtools-0.1)
5933 ("zlib" ,zlib)))
5934 (home-page "http://ccb.jhu.edu/software/stringtie/")
5935 (synopsis "Transcript assembly and quantification for RNA-Seq data")
5936 (description
5937 "StringTie is a fast and efficient assembler of RNA-Seq sequence
5938 alignments into potential transcripts. It uses a novel network flow algorithm
5939 as well as an optional de novo assembly step to assemble and quantitate
5940 full-length transcripts representing multiple splice variants for each gene
5941 locus. Its input can include not only the alignments of raw reads used by
5942 other transcript assemblers, but also alignments of longer sequences that have
5943 been assembled from those reads. To identify differentially expressed genes
5944 between experiments, StringTie's output can be processed either by the
5945 Cuffdiff or Ballgown programs.")
5946 (license license:artistic2.0)))
5947
5948 (define-public taxtastic
5949 (package
5950 (name "taxtastic")
5951 (version "0.6.4")
5952 (source (origin
5953 (method url-fetch)
5954 (uri (pypi-uri "taxtastic" version))
5955 (sha256
5956 (base32
5957 "0s79z8kfl853x7l4h8ms05k31q87aw62nrchlk20w9n227j35929"))))
5958 (build-system python-build-system)
5959 (arguments
5960 `(#:python ,python-2
5961 #:phases
5962 (modify-phases %standard-phases
5963 (replace 'check
5964 (lambda _
5965 (zero? (system* "python" "-m" "unittest" "discover" "-v")))))))
5966 (propagated-inputs
5967 `(("python-sqlalchemy" ,python2-sqlalchemy)
5968 ("python-decorator" ,python2-decorator)
5969 ("python-biopython" ,python2-biopython)
5970 ("python-pandas" ,python2-pandas)))
5971 (home-page "https://github.com/fhcrc/taxtastic")
5972 (synopsis "Tools for taxonomic naming and annotation")
5973 (description
5974 "Taxtastic is software written in python used to build and maintain
5975 reference packages i.e. collections of reference trees, reference alignments,
5976 profiles, and associated taxonomic information.")
5977 (license license:gpl3+)))
5978
5979 (define-public vcftools
5980 (package
5981 (name "vcftools")
5982 (version "0.1.15")
5983 (source (origin
5984 (method url-fetch)
5985 (uri (string-append
5986 "https://github.com/vcftools/vcftools/releases/download/v"
5987 version "/vcftools-" version ".tar.gz"))
5988 (sha256
5989 (base32
5990 "1qw30c45wihgy632rbz4rh3njnwj4msj46l1rsgdhyg6bgypmr1i"))))
5991 (build-system gnu-build-system)
5992 (arguments
5993 `(#:tests? #f ; no "check" target
5994 #:make-flags (list
5995 "CFLAGS=-O2" ; override "-m64" flag
5996 (string-append "PREFIX=" (assoc-ref %outputs "out"))
5997 (string-append "MANDIR=" (assoc-ref %outputs "out")
5998 "/share/man/man1"))))
5999 (native-inputs
6000 `(("pkg-config" ,pkg-config)))
6001 (inputs
6002 `(("perl" ,perl)
6003 ("zlib" ,zlib)))
6004 (home-page "https://vcftools.github.io/")
6005 (synopsis "Tools for working with VCF files")
6006 (description
6007 "VCFtools is a program package designed for working with VCF files, such
6008 as those generated by the 1000 Genomes Project. The aim of VCFtools is to
6009 provide easily accessible methods for working with complex genetic variation
6010 data in the form of VCF files.")
6011 ;; The license is declared as LGPLv3 in the README and
6012 ;; at https://vcftools.github.io/license.html
6013 (license license:lgpl3)))
6014
6015 (define-public infernal
6016 (package
6017 (name "infernal")
6018 (version "1.1.2")
6019 (source (origin
6020 (method url-fetch)
6021 (uri (string-append "http://eddylab.org/software/infernal/"
6022 "infernal-" version ".tar.gz"))
6023 (sha256
6024 (base32
6025 "0sr2hiz3qxfwqpz3whxr6n82p3x27336v3f34iqznp10hks2935c"))))
6026 (build-system gnu-build-system)
6027 (native-inputs
6028 `(("perl" ,perl))) ; for tests
6029 (home-page "http://eddylab.org/infernal/")
6030 (synopsis "Inference of RNA alignments")
6031 (description "Infernal (\"INFERence of RNA ALignment\") is a tool for
6032 searching DNA sequence databases for RNA structure and sequence similarities.
6033 It is an implementation of a special case of profile stochastic context-free
6034 grammars called @dfn{covariance models} (CMs). A CM is like a sequence
6035 profile, but it scores a combination of sequence consensus and RNA secondary
6036 structure consensus, so in many cases, it is more capable of identifying RNA
6037 homologs that conserve their secondary structure more than their primary
6038 sequence.")
6039 ;; Infernal 1.1.2 requires VMX or SSE capability for parallel instructions.
6040 (supported-systems '("i686-linux" "x86_64-linux"))
6041 (license license:bsd-3)))
6042
6043 (define-public r-centipede
6044 (package
6045 (name "r-centipede")
6046 (version "1.2")
6047 (source (origin
6048 (method url-fetch)
6049 (uri (string-append "http://download.r-forge.r-project.org/"
6050 "src/contrib/CENTIPEDE_" version ".tar.gz"))
6051 (sha256
6052 (base32
6053 "1hsx6qgwr0i67fhy9257zj7s0ppncph2hjgbia5nn6nfmj0ax6l9"))))
6054 (build-system r-build-system)
6055 (home-page "http://centipede.uchicago.edu/")
6056 (synopsis "Predict transcription factor binding sites")
6057 (description
6058 "CENTIPEDE applies a hierarchical Bayesian mixture model to infer regions
6059 of the genome that are bound by particular transcription factors. It starts
6060 by identifying a set of candidate binding sites, and then aims to classify the
6061 sites according to whether each site is bound or not bound by a transcription
6062 factor. CENTIPEDE is an unsupervised learning algorithm that discriminates
6063 between two different types of motif instances using as much relevant
6064 information as possible.")
6065 (license (list license:gpl2+ license:gpl3+))))
6066
6067 (define-public r-vegan
6068 (package
6069 (name "r-vegan")
6070 (version "2.4-6")
6071 (source
6072 (origin
6073 (method url-fetch)
6074 (uri (cran-uri "vegan" version))
6075 (sha256
6076 (base32
6077 "175mqr42mmxy98gpf3rky8alnkw3w1k90ggdw3cispl36841p76w"))))
6078 (build-system r-build-system)
6079 (native-inputs
6080 `(("gfortran" ,gfortran)))
6081 (propagated-inputs
6082 `(("r-cluster" ,r-cluster)
6083 ("r-lattice" ,r-lattice)
6084 ("r-mass" ,r-mass)
6085 ("r-mgcv" ,r-mgcv)
6086 ("r-permute" ,r-permute)))
6087 (home-page "https://cran.r-project.org/web/packages/vegan")
6088 (synopsis "Functions for community ecology")
6089 (description
6090 "The vegan package provides tools for descriptive community ecology. It
6091 has most basic functions of diversity analysis, community ordination and
6092 dissimilarity analysis. Most of its multivariate tools can be used for other
6093 data types as well.")
6094 (license license:gpl2+)))
6095
6096 (define-public r-annotate
6097 (package
6098 (name "r-annotate")
6099 (version "1.56.1")
6100 (source
6101 (origin
6102 (method url-fetch)
6103 (uri (bioconductor-uri "annotate" version))
6104 (sha256
6105 (base32
6106 "14c5xd9kasvcwg5gbjys2c1vizxhlqlzxakqc2kml0kw97hmx0rq"))))
6107 (build-system r-build-system)
6108 (propagated-inputs
6109 `(("r-annotationdbi" ,r-annotationdbi)
6110 ("r-biobase" ,r-biobase)
6111 ("r-biocgenerics" ,r-biocgenerics)
6112 ("r-dbi" ,r-dbi)
6113 ("r-rcurl" ,r-rcurl)
6114 ("r-xml" ,r-xml)
6115 ("r-xtable" ,r-xtable)))
6116 (home-page
6117 "https://bioconductor.org/packages/annotate")
6118 (synopsis "Annotation for microarrays")
6119 (description "This package provides R environments for the annotation of
6120 microarrays.")
6121 (license license:artistic2.0)))
6122
6123 (define-public r-copynumber
6124 (package
6125 (name "r-copynumber")
6126 (version "1.18.0")
6127 (source (origin
6128 (method url-fetch)
6129 (uri (bioconductor-uri "copynumber" version))
6130 (sha256
6131 (base32
6132 "01kcwzl485yjrkgyg8117b1il957ss0v6rq4bbxf4ksd5fzcjmyx"))))
6133 (build-system r-build-system)
6134 (propagated-inputs
6135 `(("r-s4vectors" ,r-s4vectors)
6136 ("r-iranges" ,r-iranges)
6137 ("r-genomicranges" ,r-genomicranges)
6138 ("r-biocgenerics" ,r-biocgenerics)))
6139 (home-page "https://bioconductor.org/packages/copynumber")
6140 (synopsis "Segmentation of single- and multi-track copy number data")
6141 (description
6142 "This package segments single- and multi-track copy number data by a
6143 penalized least squares regression method.")
6144 (license license:artistic2.0)))
6145
6146 (define-public r-geneplotter
6147 (package
6148 (name "r-geneplotter")
6149 (version "1.56.0")
6150 (source
6151 (origin
6152 (method url-fetch)
6153 (uri (bioconductor-uri "geneplotter" version))
6154 (sha256
6155 (base32
6156 "1z3g7frc1iviwrsv2dlm4nqvkc0685h4va0388yfxn102ln8wwma"))))
6157 (build-system r-build-system)
6158 (propagated-inputs
6159 `(("r-annotate" ,r-annotate)
6160 ("r-annotationdbi" ,r-annotationdbi)
6161 ("r-biobase" ,r-biobase)
6162 ("r-biocgenerics" ,r-biocgenerics)
6163 ("r-lattice" ,r-lattice)
6164 ("r-rcolorbrewer" ,r-rcolorbrewer)))
6165 (home-page "https://bioconductor.org/packages/geneplotter")
6166 (synopsis "Graphics functions for genomic data")
6167 (description
6168 "This package provides functions for plotting genomic data.")
6169 (license license:artistic2.0)))
6170
6171 (define-public r-genefilter
6172 (package
6173 (name "r-genefilter")
6174 (version "1.60.0")
6175 (source
6176 (origin
6177 (method url-fetch)
6178 (uri (bioconductor-uri "genefilter" version))
6179 (sha256
6180 (base32
6181 "173swlg6gj4kdllbqvyiw5dggbcxiwlwpqmllsv4dxzn7h25i3g7"))))
6182 (build-system r-build-system)
6183 (native-inputs
6184 `(("gfortran" ,gfortran)))
6185 (propagated-inputs
6186 `(("r-annotate" ,r-annotate)
6187 ("r-annotationdbi" ,r-annotationdbi)
6188 ("r-biobase" ,r-biobase)
6189 ("r-s4vectors" ,r-s4vectors)
6190 ("r-survival" ,r-survival)))
6191 (home-page "https://bioconductor.org/packages/genefilter")
6192 (synopsis "Filter genes from high-throughput experiments")
6193 (description
6194 "This package provides basic functions for filtering genes from
6195 high-throughput sequencing experiments.")
6196 (license license:artistic2.0)))
6197
6198 (define-public r-deseq2
6199 (package
6200 (name "r-deseq2")
6201 (version "1.18.1")
6202 (source
6203 (origin
6204 (method url-fetch)
6205 (uri (bioconductor-uri "DESeq2" version))
6206 (sha256
6207 (base32
6208 "1iyimg1s0x5pdmvl8x08s8h0v019y0nhjzs50chagbpk2x91fsmv"))))
6209 (properties `((upstream-name . "DESeq2")))
6210 (build-system r-build-system)
6211 (propagated-inputs
6212 `(("r-biobase" ,r-biobase)
6213 ("r-biocgenerics" ,r-biocgenerics)
6214 ("r-biocparallel" ,r-biocparallel)
6215 ("r-genefilter" ,r-genefilter)
6216 ("r-geneplotter" ,r-geneplotter)
6217 ("r-genomicranges" ,r-genomicranges)
6218 ("r-ggplot2" ,r-ggplot2)
6219 ("r-hmisc" ,r-hmisc)
6220 ("r-iranges" ,r-iranges)
6221 ("r-locfit" ,r-locfit)
6222 ("r-rcpp" ,r-rcpp)
6223 ("r-rcpparmadillo" ,r-rcpparmadillo)
6224 ("r-s4vectors" ,r-s4vectors)
6225 ("r-summarizedexperiment" ,r-summarizedexperiment)))
6226 (home-page "https://bioconductor.org/packages/DESeq2")
6227 (synopsis "Differential gene expression analysis")
6228 (description
6229 "This package provides functions to estimate variance-mean dependence in
6230 count data from high-throughput nucleotide sequencing assays and test for
6231 differential expression based on a model using the negative binomial
6232 distribution.")
6233 (license license:lgpl3+)))
6234
6235 (define-public r-dexseq
6236 (package
6237 (name "r-dexseq")
6238 (version "1.24.3")
6239 (source
6240 (origin
6241 (method url-fetch)
6242 (uri (bioconductor-uri "DEXSeq" version))
6243 (sha256
6244 (base32
6245 "0xip73hlbr3zry9d7ly9vvvsbb3xjcmfa09lr9fdy528dwjrf084"))))
6246 (properties `((upstream-name . "DEXSeq")))
6247 (build-system r-build-system)
6248 (propagated-inputs
6249 `(("r-annotationdbi" ,r-annotationdbi)
6250 ("r-biobase" ,r-biobase)
6251 ("r-biocgenerics" ,r-biocgenerics)
6252 ("r-biocparallel" ,r-biocparallel)
6253 ("r-biomart" ,r-biomart)
6254 ("r-deseq2" ,r-deseq2)
6255 ("r-genefilter" ,r-genefilter)
6256 ("r-geneplotter" ,r-geneplotter)
6257 ("r-genomicranges" ,r-genomicranges)
6258 ("r-hwriter" ,r-hwriter)
6259 ("r-iranges" ,r-iranges)
6260 ("r-rcolorbrewer" ,r-rcolorbrewer)
6261 ("r-rsamtools" ,r-rsamtools)
6262 ("r-s4vectors" ,r-s4vectors)
6263 ("r-statmod" ,r-statmod)
6264 ("r-stringr" ,r-stringr)
6265 ("r-summarizedexperiment" ,r-summarizedexperiment)))
6266 (home-page "https://bioconductor.org/packages/DEXSeq")
6267 (synopsis "Inference of differential exon usage in RNA-Seq")
6268 (description
6269 "This package is focused on finding differential exon usage using RNA-seq
6270 exon counts between samples with different experimental designs. It provides
6271 functions that allows the user to make the necessary statistical tests based
6272 on a model that uses the negative binomial distribution to estimate the
6273 variance between biological replicates and generalized linear models for
6274 testing. The package also provides functions for the visualization and
6275 exploration of the results.")
6276 (license license:gpl3+)))
6277
6278 (define-public r-annotationforge
6279 (package
6280 (name "r-annotationforge")
6281 (version "1.20.0")
6282 (source
6283 (origin
6284 (method url-fetch)
6285 (uri (bioconductor-uri "AnnotationForge" version))
6286 (sha256
6287 (base32
6288 "01vbrf76vqfvxh6vpfxkjwccxggnha3byqzj333glqz2b6kwx5q1"))))
6289 (properties
6290 `((upstream-name . "AnnotationForge")))
6291 (build-system r-build-system)
6292 (propagated-inputs
6293 `(("r-annotationdbi" ,r-annotationdbi)
6294 ("r-biobase" ,r-biobase)
6295 ("r-biocgenerics" ,r-biocgenerics)
6296 ("r-dbi" ,r-dbi)
6297 ("r-rcurl" ,r-rcurl)
6298 ("r-rsqlite" ,r-rsqlite)
6299 ("r-s4vectors" ,r-s4vectors)
6300 ("r-xml" ,r-xml)))
6301 (home-page "https://bioconductor.org/packages/AnnotationForge")
6302 (synopsis "Code for building annotation database packages")
6303 (description
6304 "This package provides code for generating Annotation packages and their
6305 databases. Packages produced are intended to be used with AnnotationDbi.")
6306 (license license:artistic2.0)))
6307
6308 (define-public r-rbgl
6309 (package
6310 (name "r-rbgl")
6311 (version "1.54.0")
6312 (source
6313 (origin
6314 (method url-fetch)
6315 (uri (bioconductor-uri "RBGL" version))
6316 (sha256
6317 (base32
6318 "18jad23i3899ypv4bg3l47cvvs3qnj1pqis2p9x0135yv5y6wnv7"))))
6319 (properties `((upstream-name . "RBGL")))
6320 (build-system r-build-system)
6321 (propagated-inputs `(("r-graph" ,r-graph)))
6322 (home-page "https://www.bioconductor.org/packages/RBGL")
6323 (synopsis "Interface to the Boost graph library")
6324 (description
6325 "This package provides a fairly extensive and comprehensive interface to
6326 the graph algorithms contained in the Boost library.")
6327 (license license:artistic2.0)))
6328
6329 (define-public r-gseabase
6330 (package
6331 (name "r-gseabase")
6332 (version "1.40.1")
6333 (source
6334 (origin
6335 (method url-fetch)
6336 (uri (bioconductor-uri "GSEABase" version))
6337 (sha256
6338 (base32
6339 "10cmjxahg2plwacfan6g0k8cwyzya96ypc7m1r79gwqkyykxw5fz"))))
6340 (properties `((upstream-name . "GSEABase")))
6341 (build-system r-build-system)
6342 (propagated-inputs
6343 `(("r-annotate" ,r-annotate)
6344 ("r-annotationdbi" ,r-annotationdbi)
6345 ("r-biobase" ,r-biobase)
6346 ("r-biocgenerics" ,r-biocgenerics)
6347 ("r-graph" ,r-graph)
6348 ("r-xml" ,r-xml)))
6349 (home-page "https://bioconductor.org/packages/GSEABase")
6350 (synopsis "Gene set enrichment data structures and methods")
6351 (description
6352 "This package provides classes and methods to support @dfn{Gene Set
6353 Enrichment Analysis} (GSEA).")
6354 (license license:artistic2.0)))
6355
6356 (define-public r-category
6357 (package
6358 (name "r-category")
6359 (version "2.44.0")
6360 (source
6361 (origin
6362 (method url-fetch)
6363 (uri (bioconductor-uri "Category" version))
6364 (sha256
6365 (base32
6366 "0mkav04vbla0xfa0dssxdd0rjs589sxi83xklf5iq5hj3dm8y0i8"))))
6367 (properties `((upstream-name . "Category")))
6368 (build-system r-build-system)
6369 (propagated-inputs
6370 `(("r-annotate" ,r-annotate)
6371 ("r-annotationdbi" ,r-annotationdbi)
6372 ("r-biobase" ,r-biobase)
6373 ("r-biocgenerics" ,r-biocgenerics)
6374 ("r-genefilter" ,r-genefilter)
6375 ("r-graph" ,r-graph)
6376 ("r-gseabase" ,r-gseabase)
6377 ("r-matrix" ,r-matrix)
6378 ("r-rbgl" ,r-rbgl)
6379 ("r-dbi" ,r-dbi)))
6380 (home-page "https://bioconductor.org/packages/Category")
6381 (synopsis "Category analysis")
6382 (description
6383 "This package provides a collection of tools for performing category
6384 analysis.")
6385 (license license:artistic2.0)))
6386
6387 (define-public r-gostats
6388 (package
6389 (name "r-gostats")
6390 (version "2.44.0")
6391 (source
6392 (origin
6393 (method url-fetch)
6394 (uri (bioconductor-uri "GOstats" version))
6395 (sha256
6396 (base32
6397 "04gqfdlx9fxf97qf0l28x4aaqvl10n6v58qiz5fiaw05sbj1pf1i"))))
6398 (properties `((upstream-name . "GOstats")))
6399 (build-system r-build-system)
6400 (propagated-inputs
6401 `(("r-annotate" ,r-annotate)
6402 ("r-annotationdbi" ,r-annotationdbi)
6403 ("r-annotationforge" ,r-annotationforge)
6404 ("r-biobase" ,r-biobase)
6405 ("r-category" ,r-category)
6406 ("r-go-db" ,r-go-db)
6407 ("r-graph" ,r-graph)
6408 ("r-rgraphviz" ,r-rgraphviz)
6409 ("r-rbgl" ,r-rbgl)))
6410 (home-page "https://bioconductor.org/packages/GOstats")
6411 (synopsis "Tools for manipulating GO and microarrays")
6412 (description
6413 "This package provides a set of tools for interacting with GO and
6414 microarray data. A variety of basic manipulation tools for graphs, hypothesis
6415 testing and other simple calculations.")
6416 (license license:artistic2.0)))
6417
6418 (define-public r-shortread
6419 (package
6420 (name "r-shortread")
6421 (version "1.36.1")
6422 (source
6423 (origin
6424 (method url-fetch)
6425 (uri (bioconductor-uri "ShortRead" version))
6426 (sha256
6427 (base32
6428 "1cyv47632m9ljkxfsvnvmd19sb607ys5kz8fwh6v39dnw16g0a6m"))))
6429 (properties `((upstream-name . "ShortRead")))
6430 (build-system r-build-system)
6431 (inputs
6432 `(("zlib" ,zlib)))
6433 (propagated-inputs
6434 `(("r-biobase" ,r-biobase)
6435 ("r-biocgenerics" ,r-biocgenerics)
6436 ("r-biocparallel" ,r-biocparallel)
6437 ("r-biostrings" ,r-biostrings)
6438 ("r-genomeinfodb" ,r-genomeinfodb)
6439 ("r-genomicalignments" ,r-genomicalignments)
6440 ("r-genomicranges" ,r-genomicranges)
6441 ("r-hwriter" ,r-hwriter)
6442 ("r-iranges" ,r-iranges)
6443 ("r-lattice" ,r-lattice)
6444 ("r-latticeextra" ,r-latticeextra)
6445 ("r-rsamtools" ,r-rsamtools)
6446 ("r-s4vectors" ,r-s4vectors)
6447 ("r-xvector" ,r-xvector)
6448 ("r-zlibbioc" ,r-zlibbioc)))
6449 (home-page "https://bioconductor.org/packages/ShortRead")
6450 (synopsis "FASTQ input and manipulation tools")
6451 (description
6452 "This package implements sampling, iteration, and input of FASTQ files.
6453 It includes functions for filtering and trimming reads, and for generating a
6454 quality assessment report. Data are represented as
6455 @code{DNAStringSet}-derived objects, and easily manipulated for a diversity of
6456 purposes. The package also contains legacy support for early single-end,
6457 ungapped alignment formats.")
6458 (license license:artistic2.0)))
6459
6460 (define-public r-systempiper
6461 (package
6462 (name "r-systempiper")
6463 (version "1.12.0")
6464 (source
6465 (origin
6466 (method url-fetch)
6467 (uri (bioconductor-uri "systemPipeR" version))
6468 (sha256
6469 (base32
6470 "11mj8pjq5vj25768vmagpzv74fvi3p3kdk5zdlznqyiaggri04cv"))))
6471 (properties `((upstream-name . "systemPipeR")))
6472 (build-system r-build-system)
6473 (propagated-inputs
6474 `(("r-annotate" ,r-annotate)
6475 ("r-batchjobs" ,r-batchjobs)
6476 ("r-biocgenerics" ,r-biocgenerics)
6477 ("r-biostrings" ,r-biostrings)
6478 ("r-deseq2" ,r-deseq2)
6479 ("r-edger" ,r-edger)
6480 ("r-genomicfeatures" ,r-genomicfeatures)
6481 ("r-genomicranges" ,r-genomicranges)
6482 ("r-ggplot2" ,r-ggplot2)
6483 ("r-go-db" ,r-go-db)
6484 ("r-gostats" ,r-gostats)
6485 ("r-limma" ,r-limma)
6486 ("r-pheatmap" ,r-pheatmap)
6487 ("r-rjson" ,r-rjson)
6488 ("r-rsamtools" ,r-rsamtools)
6489 ("r-shortread" ,r-shortread)
6490 ("r-summarizedexperiment" ,r-summarizedexperiment)
6491 ("r-variantannotation" ,r-variantannotation)))
6492 (home-page "https://github.com/tgirke/systemPipeR")
6493 (synopsis "Next generation sequencing workflow and reporting environment")
6494 (description
6495 "This R package provides tools for building and running automated
6496 end-to-end analysis workflows for a wide range of @dfn{next generation
6497 sequence} (NGS) applications such as RNA-Seq, ChIP-Seq, VAR-Seq and Ribo-Seq.
6498 Important features include a uniform workflow interface across different NGS
6499 applications, automated report generation, and support for running both R and
6500 command-line software, such as NGS aligners or peak/variant callers, on local
6501 computers or compute clusters. Efficient handling of complex sample sets and
6502 experimental designs is facilitated by a consistently implemented sample
6503 annotation infrastructure.")
6504 (license license:artistic2.0)))
6505
6506 (define-public r-grohmm
6507 (package
6508 (name "r-grohmm")
6509 (version "1.12.0")
6510 (source
6511 (origin
6512 (method url-fetch)
6513 (uri (bioconductor-uri "groHMM" version))
6514 (sha256
6515 (base32
6516 "0cjkj0ypyc4dfi9s8dh88kh6q4xlpnc0wal7njg4b4gqj0l2hva7"))))
6517 (properties `((upstream-name . "groHMM")))
6518 (build-system r-build-system)
6519 (propagated-inputs
6520 `(("r-genomeinfodb" ,r-genomeinfodb)
6521 ("r-genomicalignments" ,r-genomicalignments)
6522 ("r-genomicranges" ,r-genomicranges)
6523 ("r-iranges" ,r-iranges)
6524 ("r-mass" ,r-mass)
6525 ("r-rtracklayer" ,r-rtracklayer)
6526 ("r-s4vectors" ,r-s4vectors)))
6527 (home-page "https://github.com/Kraus-Lab/groHMM")
6528 (synopsis "GRO-seq analysis pipeline")
6529 (description
6530 "This package provides a pipeline for the analysis of GRO-seq data.")
6531 (license license:gpl3+)))
6532
6533 (define-public r-txdb-hsapiens-ucsc-hg19-knowngene
6534 (package
6535 (name "r-txdb-hsapiens-ucsc-hg19-knowngene")
6536 (version "3.2.2")
6537 (source (origin
6538 (method url-fetch)
6539 ;; We cannot use bioconductor-uri here because this tarball is
6540 ;; located under "data/annotation/" instead of "bioc/".
6541 (uri (string-append "https://bioconductor.org/packages/"
6542 "release/data/annotation/src/contrib"
6543 "/TxDb.Hsapiens.UCSC.hg19.knownGene_"
6544 version ".tar.gz"))
6545 (sha256
6546 (base32
6547 "1sajhcqqwazgz2lqbik7rd935i7kpnh08zxbp2ra10j72yqy4g86"))))
6548 (properties
6549 `((upstream-name . "TxDb.Hsapiens.UCSC.hg19.knownGene")))
6550 (build-system r-build-system)
6551 ;; As this package provides little more than a very large data file it
6552 ;; doesn't make sense to build substitutes.
6553 (arguments `(#:substitutable? #f))
6554 (propagated-inputs
6555 `(("r-genomicfeatures" ,r-genomicfeatures)))
6556 (home-page
6557 "https://bioconductor.org/packages/TxDb.Hsapiens.UCSC.hg19.knownGene/")
6558 (synopsis "Annotation package for human genome in TxDb format")
6559 (description
6560 "This package provides an annotation database of Homo sapiens genome
6561 data. It is derived from the UCSC hg19 genome and based on the \"knownGene\"
6562 track. The database is exposed as a @code{TxDb} object.")
6563 (license license:artistic2.0)))
6564
6565 (define-public r-sparql
6566 (package
6567 (name "r-sparql")
6568 (version "1.16")
6569 (source (origin
6570 (method url-fetch)
6571 (uri (cran-uri "SPARQL" version))
6572 (sha256
6573 (base32
6574 "0gak1q06yyhdmcxb2n3v0h9gr1vqd0viqji52wpw211qp6r6dcrc"))))
6575 (properties `((upstream-name . "SPARQL")))
6576 (build-system r-build-system)
6577 (propagated-inputs
6578 `(("r-rcurl" ,r-rcurl)
6579 ("r-xml" ,r-xml)))
6580 (home-page "https://cran.r-project.org/web/packages/SPARQL")
6581 (synopsis "SPARQL client for R")
6582 (description "This package provides an interface to use SPARQL to pose
6583 SELECT or UPDATE queries to an end-point.")
6584 ;; The only license indication is found in the DESCRIPTION file,
6585 ;; which states GPL-3. So we cannot assume GPLv3+.
6586 (license license:gpl3)))
6587
6588 (define-public vsearch
6589 (package
6590 (name "vsearch")
6591 (version "2.7.1")
6592 (source
6593 (origin
6594 (method url-fetch)
6595 (uri (string-append
6596 "https://github.com/torognes/vsearch/archive/v"
6597 version ".tar.gz"))
6598 (file-name (string-append name "-" version ".tar.gz"))
6599 (sha256
6600 (base32
6601 "0jlzfgh79fzmb4g7sngzdjjsjyc37icvs1k7vmc2ksxglj6x5i7f"))
6602 (patches (search-patches "vsearch-unbundle-cityhash.patch"))
6603 (snippet
6604 '(begin
6605 ;; Remove bundled cityhash sources. The vsearch source is adjusted
6606 ;; for this in the patch.
6607 (delete-file "src/city.h")
6608 (delete-file "src/citycrc.h")
6609 (delete-file "src/city.cc")
6610 #t))))
6611 (build-system gnu-build-system)
6612 (arguments
6613 `(#:phases
6614 (modify-phases %standard-phases
6615 (add-after 'unpack 'autogen
6616 (lambda _ (zero? (system* "autoreconf" "-vif")))))))
6617 (inputs
6618 `(("zlib" ,zlib)
6619 ("bzip2" ,bzip2)
6620 ("cityhash" ,cityhash)))
6621 (native-inputs
6622 `(("autoconf" ,autoconf)
6623 ("automake" ,automake)))
6624 (synopsis "Sequence search tools for metagenomics")
6625 (description
6626 "VSEARCH supports DNA sequence searching, clustering, chimera detection,
6627 dereplication, pairwise alignment, shuffling, subsampling, sorting and
6628 masking. The tool takes advantage of parallelism in the form of SIMD
6629 vectorization as well as multiple threads to perform accurate alignments at
6630 high speed. VSEARCH uses an optimal global aligner (full dynamic programming
6631 Needleman-Wunsch).")
6632 (home-page "https://github.com/torognes/vsearch")
6633 ;; vsearch uses non-portable SSE intrinsics so building fails on other
6634 ;; platforms.
6635 (supported-systems '("x86_64-linux"))
6636 ;; Dual licensed; also includes public domain source.
6637 (license (list license:gpl3 license:bsd-2))))
6638
6639 (define-public pardre
6640 (package
6641 (name "pardre")
6642 ;; The source of 1.1.5 changed in place, so we append "-1" to the version.
6643 (version "1.1.5-1")
6644 (source
6645 (origin
6646 (method url-fetch)
6647 (uri (string-append "mirror://sourceforge/pardre/ParDRe-rel"
6648 "1.1.5" ".tar.gz"))
6649 (sha256
6650 (base32
6651 "17j73nc0viq4f6qj50nrndsrif5d6b71q8fl87m54psiv0ilns2b"))))
6652 (build-system gnu-build-system)
6653 (arguments
6654 `(#:tests? #f ; no tests included
6655 #:phases
6656 (modify-phases %standard-phases
6657 (delete 'configure)
6658 (replace 'install
6659 (lambda* (#:key outputs #:allow-other-keys)
6660 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
6661 (install-file "ParDRe" bin)
6662 #t))))))
6663 (inputs
6664 `(("openmpi" ,openmpi)
6665 ("zlib" ,zlib)))
6666 (synopsis "Parallel tool to remove duplicate DNA reads")
6667 (description
6668 "ParDRe is a parallel tool to remove duplicate genetic sequence reads.
6669 Duplicate reads can be seen as identical or nearly identical sequences with
6670 some mismatches. This tool lets users avoid the analysis of unnecessary
6671 reads, reducing the time of subsequent procedures with the
6672 dataset (e.g. assemblies, mappings, etc.). The tool is implemented with MPI
6673 in order to exploit the parallel capabilities of multicore clusters. It is
6674 faster than multithreaded counterparts (end of 2015) for the same number of
6675 cores and, thanks to the message-passing technology, it can be executed on
6676 clusters.")
6677 (home-page "https://sourceforge.net/projects/pardre/")
6678 (license license:gpl3+)))
6679
6680 (define-public ruby-bio-kseq
6681 (package
6682 (name "ruby-bio-kseq")
6683 (version "0.0.2")
6684 (source
6685 (origin
6686 (method url-fetch)
6687 (uri (rubygems-uri "bio-kseq" version))
6688 (sha256
6689 (base32
6690 "1xyaha46khb5jc6wzkbf7040jagac49jbimn0vcrzid0j8jdikrz"))))
6691 (build-system ruby-build-system)
6692 (arguments
6693 `(#:test-target "spec"))
6694 (native-inputs
6695 `(("bundler" ,bundler)
6696 ("ruby-rspec" ,ruby-rspec)
6697 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6698 (inputs
6699 `(("zlib" ,zlib)))
6700 (synopsis "Ruby bindings for the kseq.h FASTA/Q parser")
6701 (description
6702 "@code{Bio::Kseq} provides ruby bindings to the @code{kseq.h} FASTA and
6703 FASTQ parsing code. It provides a fast iterator over sequences and their
6704 quality scores.")
6705 (home-page "https://github.com/gusevfe/bio-kseq")
6706 (license license:expat)))
6707
6708 (define-public bio-locus
6709 (package
6710 (name "bio-locus")
6711 (version "0.0.7")
6712 (source
6713 (origin
6714 (method url-fetch)
6715 (uri (rubygems-uri "bio-locus" version))
6716 (sha256
6717 (base32
6718 "02vmrxyimkj9sahsp4zhfhnmbvz6dbbqz1y01vglf8cbwvkajfl0"))))
6719 (build-system ruby-build-system)
6720 (native-inputs
6721 `(("ruby-rspec" ,ruby-rspec)))
6722 (synopsis "Tool for fast querying of genome locations")
6723 (description
6724 "Bio-locus is a tabix-like tool for fast querying of genome
6725 locations. Many file formats in bioinformatics contain records that
6726 start with a chromosome name and a position for a SNP, or a start-end
6727 position for indels. Bio-locus allows users to store this chr+pos or
6728 chr+pos+alt information in a database.")
6729 (home-page "https://github.com/pjotrp/bio-locus")
6730 (license license:expat)))
6731
6732 (define-public bio-blastxmlparser
6733 (package
6734 (name "bio-blastxmlparser")
6735 (version "2.0.4")
6736 (source (origin
6737 (method url-fetch)
6738 (uri (rubygems-uri "bio-blastxmlparser" version))
6739 (sha256
6740 (base32
6741 "1wf4qygcmdjgcqm6flmvsagfr1gs9lf63mj32qv3z1f481zc5692"))))
6742 (build-system ruby-build-system)
6743 (propagated-inputs
6744 `(("ruby-bio-logger" ,ruby-bio-logger)
6745 ("ruby-nokogiri" ,ruby-nokogiri)))
6746 (inputs
6747 `(("ruby-rspec" ,ruby-rspec)))
6748 (synopsis "Fast big data BLAST XML parser and library")
6749 (description
6750 "Very fast parallel big-data BLAST XML file parser which can be used as
6751 command line utility. Use blastxmlparser to: Parse BLAST XML; filter output;
6752 generate FASTA, JSON, YAML, RDF, JSON-LD, HTML, CSV, tabular output etc.")
6753 (home-page "https://github.com/pjotrp/blastxmlparser")
6754 (license license:expat)))
6755
6756 (define-public bioruby
6757 (package
6758 (name "bioruby")
6759 (version "1.5.1")
6760 (source
6761 (origin
6762 (method url-fetch)
6763 (uri (rubygems-uri "bio" version))
6764 (sha256
6765 (base32
6766 "0hdl0789c9n4mprnx5pgd46bfwl8d000rqpamj5h6kkjgspijv49"))))
6767 (build-system ruby-build-system)
6768 (propagated-inputs
6769 `(("ruby-libxml" ,ruby-libxml)))
6770 (native-inputs
6771 `(("which" ,which))) ; required for test phase
6772 (arguments
6773 `(#:phases
6774 (modify-phases %standard-phases
6775 (add-before 'build 'patch-test-command
6776 (lambda _
6777 (substitute* '("test/functional/bio/test_command.rb")
6778 (("/bin/sh") (which "sh")))
6779 (substitute* '("test/functional/bio/test_command.rb")
6780 (("/bin/ls") (which "ls")))
6781 (substitute* '("test/functional/bio/test_command.rb")
6782 (("which") (which "which")))
6783 (substitute* '("test/functional/bio/test_command.rb",
6784 "test/data/command/echoarg2.sh")
6785 (("/bin/echo") (which "echo")))
6786 #t)))))
6787 (synopsis "Ruby library, shell and utilities for bioinformatics")
6788 (description "BioRuby comes with a comprehensive set of Ruby development
6789 tools and libraries for bioinformatics and molecular biology. BioRuby has
6790 components for sequence analysis, pathway analysis, protein modelling and
6791 phylogenetic analysis; it supports many widely used data formats and provides
6792 easy access to databases, external programs and public web services, including
6793 BLAST, KEGG, GenBank, MEDLINE and GO.")
6794 (home-page "http://bioruby.org/")
6795 ;; Code is released under Ruby license, except for setup
6796 ;; (LGPLv2.1+) and scripts in samples (which have GPL2 and GPL2+)
6797 (license (list license:ruby license:lgpl2.1+ license:gpl2+ ))))
6798
6799 (define-public r-acsnminer
6800 (package
6801 (name "r-acsnminer")
6802 (version "0.16.8.25")
6803 (source (origin
6804 (method url-fetch)
6805 (uri (cran-uri "ACSNMineR" version))
6806 (sha256
6807 (base32
6808 "0gh604s8qall6zfjlwcg2ilxjvz08dplf9k5g47idhv43scm748l"))))
6809 (properties `((upstream-name . "ACSNMineR")))
6810 (build-system r-build-system)
6811 (propagated-inputs
6812 `(("r-ggplot2" ,r-ggplot2)
6813 ("r-gridextra" ,r-gridextra)))
6814 (home-page "https://cran.r-project.org/web/packages/ACSNMineR")
6815 (synopsis "Gene enrichment analysis")
6816 (description
6817 "This package provides tools to compute and represent gene set enrichment
6818 or depletion from your data based on pre-saved maps from the @dfn{Atlas of
6819 Cancer Signalling Networks} (ACSN) or user imported maps. The gene set
6820 enrichment can be run with hypergeometric test or Fisher exact test, and can
6821 use multiple corrections. Visualization of data can be done either by
6822 barplots or heatmaps.")
6823 (license license:gpl2+)))
6824
6825 (define-public r-biocgenerics
6826 (package
6827 (name "r-biocgenerics")
6828 (version "0.24.0")
6829 (source (origin
6830 (method url-fetch)
6831 (uri (bioconductor-uri "BiocGenerics" version))
6832 (sha256
6833 (base32
6834 "03wxvhxyrhipbgcg83lqlfn7p9gbzzrnl48y0dq7303xgp232zai"))))
6835 (properties
6836 `((upstream-name . "BiocGenerics")))
6837 (build-system r-build-system)
6838 (home-page "https://bioconductor.org/packages/BiocGenerics")
6839 (synopsis "S4 generic functions for Bioconductor")
6840 (description
6841 "This package provides S4 generic functions needed by many Bioconductor
6842 packages.")
6843 (license license:artistic2.0)))
6844
6845 (define-public r-biocinstaller
6846 (package
6847 (name "r-biocinstaller")
6848 (version "1.28.0")
6849 (source (origin
6850 (method url-fetch)
6851 (uri (bioconductor-uri "BiocInstaller" version))
6852 (sha256
6853 (base32
6854 "19fga27bv6q9v5mpil74y76lahmnwvpg2h33rdx1r79nvljkd19d"))))
6855 (properties
6856 `((upstream-name . "BiocInstaller")))
6857 (build-system r-build-system)
6858 (home-page "https://bioconductor.org/packages/BiocInstaller")
6859 (synopsis "Install Bioconductor packages")
6860 (description "This package is used to install and update R packages from
6861 Bioconductor, CRAN, and Github.")
6862 (license license:artistic2.0)))
6863
6864 (define-public r-biocviews
6865 (package
6866 (name "r-biocviews")
6867 (version "1.46.0")
6868 (source (origin
6869 (method url-fetch)
6870 (uri (bioconductor-uri "biocViews" version))
6871 (sha256
6872 (base32
6873 "09zyqj1kqc089lmh9sliy0acanx9zimcasvp71dsrg2bqm08r1md"))))
6874 (properties
6875 `((upstream-name . "biocViews")))
6876 (build-system r-build-system)
6877 (propagated-inputs
6878 `(("r-biobase" ,r-biobase)
6879 ("r-graph" ,r-graph)
6880 ("r-rbgl" ,r-rbgl)
6881 ("r-rcurl" ,r-rcurl)
6882 ("r-xml" ,r-xml)
6883 ("r-runit" ,r-runit)))
6884 (home-page "https://bioconductor.org/packages/biocViews")
6885 (synopsis "Bioconductor package categorization helper")
6886 (description "The purpose of biocViews is to create HTML pages that
6887 categorize packages in a Bioconductor package repository according to keywords,
6888 also known as views, in a controlled vocabulary.")
6889 (license license:artistic2.0)))
6890
6891 (define-public r-bookdown
6892 (package
6893 (name "r-bookdown")
6894 (version "0.7")
6895 (source (origin
6896 (method url-fetch)
6897 (uri (cran-uri "bookdown" version))
6898 (sha256
6899 (base32
6900 "1b3fw1f41zph5yw3kynb47aijq53vhaa6mnnvxly72zamyzdf95q"))))
6901 (build-system r-build-system)
6902 (propagated-inputs
6903 `(("r-htmltools" ,r-htmltools)
6904 ("r-knitr" ,r-knitr)
6905 ("r-rmarkdown" ,r-rmarkdown)
6906 ("r-tinytex" ,r-tinytex)
6907 ("r-yaml" ,r-yaml)
6908 ("r-xfun" ,r-xfun)
6909 ("ghc-pandoc" ,ghc-pandoc)))
6910 (home-page "https://github.com/rstudio/bookdown")
6911 (synopsis "Authoring books and technical documents with R markdown")
6912 (description "This package provides output formats and utilities for
6913 authoring books and technical documents with R Markdown.")
6914 (license license:gpl3)))
6915
6916 (define-public r-biocstyle
6917 (package
6918 (name "r-biocstyle")
6919 (version "2.6.1")
6920 (source (origin
6921 (method url-fetch)
6922 (uri (bioconductor-uri "BiocStyle" version))
6923 (sha256
6924 (base32
6925 "03pp04pkcq99kdv2spzr995h2cxsza7l6w3d4gp4112m06prcybm"))))
6926 (properties
6927 `((upstream-name . "BiocStyle")))
6928 (build-system r-build-system)
6929 (propagated-inputs
6930 `(("r-bookdown" ,r-bookdown)
6931 ("r-knitr" ,r-knitr)
6932 ("r-rmarkdown" ,r-rmarkdown)
6933 ("r-yaml" ,r-yaml)))
6934 (home-page "https://bioconductor.org/packages/BiocStyle")
6935 (synopsis "Bioconductor formatting styles")
6936 (description "This package provides standard formatting styles for
6937 Bioconductor PDF and HTML documents. Package vignettes illustrate use and
6938 functionality.")
6939 (license license:artistic2.0)))
6940
6941 (define-public r-bioccheck
6942 (package
6943 (name "r-bioccheck")
6944 (version "1.14.0")
6945 (source (origin
6946 (method url-fetch)
6947 (uri (bioconductor-uri "BiocCheck" version))
6948 (sha256
6949 (base32
6950 "1nzp8kgw13z9pgf885rplj6k37jcldfhbz0adqclxr2gq0yalmyx"))))
6951 (properties
6952 `((upstream-name . "BiocCheck")))
6953 (build-system r-build-system)
6954 (arguments
6955 '(#:phases
6956 (modify-phases %standard-phases
6957 ;; This package can be used by calling BiocCheck(<package>) from
6958 ;; within R, or by running R CMD BiocCheck <package>. This phase
6959 ;; makes sure the latter works. For this to work, the BiocCheck
6960 ;; script must be somewhere on the PATH (not the R bin directory).
6961 (add-after 'install 'install-bioccheck-subcommand
6962 (lambda* (#:key outputs #:allow-other-keys)
6963 (let* ((out (assoc-ref outputs "out"))
6964 (dest-dir (string-append out "/bin"))
6965 (script-dir
6966 (string-append out "/site-library/BiocCheck/script/")))
6967 (mkdir-p dest-dir)
6968 (symlink (string-append script-dir "/checkBadDeps.R")
6969 (string-append dest-dir "/checkBadDeps.R"))
6970 (symlink (string-append script-dir "/BiocCheck")
6971 (string-append dest-dir "/BiocCheck")))
6972 #t)))))
6973 (propagated-inputs
6974 `(("r-codetools" ,r-codetools)
6975 ("r-graph" ,r-graph)
6976 ("r-httr" ,r-httr)
6977 ("r-optparse" ,r-optparse)
6978 ("r-biocinstaller" ,r-biocinstaller)
6979 ("r-biocviews" ,r-biocviews)
6980 ("r-stringdist" ,r-stringdist)))
6981 (home-page "https://bioconductor.org/packages/BiocCheck")
6982 (synopsis "Executes Bioconductor-specific package checks")
6983 (description "This package contains tools to perform additional quality
6984 checks on R packages that are to be submitted to the Bioconductor repository.")
6985 (license license:artistic2.0)))
6986
6987 (define-public r-getopt
6988 (package
6989 (name "r-getopt")
6990 (version "1.20.2")
6991 (source
6992 (origin
6993 (method url-fetch)
6994 (uri (cran-uri "getopt" version))
6995 (sha256
6996 (base32
6997 "13p35lbpy7i578752fa71sbfvcsqw5qfa9p6kf8b5m3c5p9i4v1x"))))
6998 (build-system r-build-system)
6999 (home-page "https://github.com/trevorld/getopt")
7000 (synopsis "Command-line option processor for R")
7001 (description
7002 "This package is designed to be used with Rscript to write shebang
7003 scripts that accept short and long options. Many users will prefer to
7004 use the packages @code{optparse} or @code{argparse} which add extra
7005 features like automatically generated help options and usage texts,
7006 support for default values, positional argument support, etc.")
7007 (license license:gpl2+)))
7008
7009 (define-public r-optparse
7010 (package
7011 (name "r-optparse")
7012 (version "1.4.4")
7013 (source
7014 (origin
7015 (method url-fetch)
7016 (uri (cran-uri "optparse" version))
7017 (sha256
7018 (base32
7019 "1ff4wmsszrb3spwfp7ynfs8w11qpy1sdzfxm1wk8dqqvdwris7qb"))))
7020 (build-system r-build-system)
7021 (propagated-inputs
7022 `(("r-getopt" ,r-getopt)))
7023 (home-page
7024 "https://github.com/trevorld/optparse")
7025 (synopsis "Command line option parser")
7026 (description
7027 "This package provides a command line parser inspired by Python's
7028 @code{optparse} library to be used with Rscript to write shebang scripts
7029 that accept short and long options.")
7030 (license license:gpl2+)))
7031
7032 (define-public r-dnacopy
7033 (package
7034 (name "r-dnacopy")
7035 (version "1.52.0")
7036 (source (origin
7037 (method url-fetch)
7038 (uri (bioconductor-uri "DNAcopy" version))
7039 (sha256
7040 (base32
7041 "127il5rlg1hzjlhwhs64x3nm18p00q1pd9ckb2b9ifl0rax95wai"))))
7042 (properties
7043 `((upstream-name . "DNAcopy")))
7044 (build-system r-build-system)
7045 (inputs
7046 `(("gfortran" ,gfortran)))
7047 (home-page "https://bioconductor.org/packages/DNAcopy")
7048 (synopsis "Implementation of a circular binary segmentation algorithm")
7049 (description "This package implements the circular binary segmentation (CBS)
7050 algorithm to segment DNA copy number data and identify genomic regions with
7051 abnormal copy number.")
7052 (license license:gpl2+)))
7053
7054 (define-public r-s4vectors
7055 (package
7056 (name "r-s4vectors")
7057 (version "0.16.0")
7058 (source (origin
7059 (method url-fetch)
7060 (uri (bioconductor-uri "S4Vectors" version))
7061 (sha256
7062 (base32
7063 "03s8vz33nl6mivjb7dbvj702dkypi340lji1sjban03fyyls0hw0"))))
7064 (properties
7065 `((upstream-name . "S4Vectors")))
7066 (build-system r-build-system)
7067 (propagated-inputs
7068 `(("r-biocgenerics" ,r-biocgenerics)))
7069 (home-page "https://bioconductor.org/packages/S4Vectors")
7070 (synopsis "S4 implementation of vectors and lists")
7071 (description
7072 "The S4Vectors package defines the @code{Vector} and @code{List} virtual
7073 classes and a set of generic functions that extend the semantic of ordinary
7074 vectors and lists in R. Package developers can easily implement vector-like
7075 or list-like objects as concrete subclasses of @code{Vector} or @code{List}.
7076 In addition, a few low-level concrete subclasses of general interest (e.g.
7077 @code{DataFrame}, @code{Rle}, and @code{Hits}) are implemented in the
7078 S4Vectors package itself.")
7079 (license license:artistic2.0)))
7080
7081 (define-public r-seqinr
7082 (package
7083 (name "r-seqinr")
7084 (version "3.4-5")
7085 (source
7086 (origin
7087 (method url-fetch)
7088 (uri (cran-uri "seqinr" version))
7089 (sha256
7090 (base32
7091 "17zv0n5cji17izwmwg0jcbxbjl3w5rls91w15svcnlpxjms38ahn"))))
7092 (build-system r-build-system)
7093 (propagated-inputs
7094 `(("r-ade4" ,r-ade4)
7095 ("r-segmented" ,r-segmented)))
7096 (inputs
7097 `(("zlib" ,zlib)))
7098 (home-page "http://seqinr.r-forge.r-project.org/")
7099 (synopsis "Biological sequences retrieval and analysis")
7100 (description
7101 "This package provides tools for exploratory data analysis and data
7102 visualization of biological sequence (DNA and protein) data. It also includes
7103 utilities for sequence data management under the ACNUC system.")
7104 (license license:gpl2+)))
7105
7106 (define-public r-iranges
7107 (package
7108 (name "r-iranges")
7109 (version "2.12.0")
7110 (source (origin
7111 (method url-fetch)
7112 (uri (bioconductor-uri "IRanges" version))
7113 (sha256
7114 (base32
7115 "1vqczb9wlxsmpwpqig6j1dmiblcfpq6mgnq8qwzcrvddm4cp47m5"))))
7116 (properties
7117 `((upstream-name . "IRanges")))
7118 (build-system r-build-system)
7119 (propagated-inputs
7120 `(("r-biocgenerics" ,r-biocgenerics)
7121 ("r-s4vectors" ,r-s4vectors)))
7122 (home-page "https://bioconductor.org/packages/IRanges")
7123 (synopsis "Infrastructure for manipulating intervals on sequences")
7124 (description
7125 "This package provides efficient low-level and highly reusable S4 classes
7126 for storing ranges of integers, RLE vectors (Run-Length Encoding), and, more
7127 generally, data that can be organized sequentially (formally defined as
7128 @code{Vector} objects), as well as views on these @code{Vector} objects.
7129 Efficient list-like classes are also provided for storing big collections of
7130 instances of the basic classes. All classes in the package use consistent
7131 naming and share the same rich and consistent \"Vector API\" as much as
7132 possible.")
7133 (license license:artistic2.0)))
7134
7135 (define-public r-genomeinfodbdata
7136 (package
7137 (name "r-genomeinfodbdata")
7138 (version "0.99.1")
7139 (source (origin
7140 (method url-fetch)
7141 ;; We cannot use bioconductor-uri here because this tarball is
7142 ;; located under "data/annotation/" instead of "bioc/".
7143 (uri (string-append "https://bioconductor.org/packages/release/"
7144 "data/annotation/src/contrib/GenomeInfoDbData_"
7145 version ".tar.gz"))
7146 (sha256
7147 (base32
7148 "0hipipvyvrh75n68hsjg35sxbcfzrghzxv547vnkk2f8ya99g01r"))))
7149 (properties
7150 `((upstream-name . "GenomeInfoDbData")))
7151 (build-system r-build-system)
7152 (home-page "https://bioconductor.org/packages/GenomeInfoDbData")
7153 (synopsis "Species and taxonomy ID look up tables for GenomeInfoDb")
7154 (description "This package contains data for mapping between NCBI taxonomy
7155 ID and species. It is used by functions in the GenomeInfoDb package.")
7156 (license license:artistic2.0)))
7157
7158 (define-public r-genomeinfodb
7159 (package
7160 (name "r-genomeinfodb")
7161 (version "1.14.0")
7162 (source (origin
7163 (method url-fetch)
7164 (uri (bioconductor-uri "GenomeInfoDb" version))
7165 (sha256
7166 (base32
7167 "1jhm0imkac4gvchbjxj408aakk39xdv2fyh818d3lk295bz6bnyp"))))
7168 (properties
7169 `((upstream-name . "GenomeInfoDb")))
7170 (build-system r-build-system)
7171 (propagated-inputs
7172 `(("r-biocgenerics" ,r-biocgenerics)
7173 ("r-genomeinfodbdata" ,r-genomeinfodbdata)
7174 ("r-iranges" ,r-iranges)
7175 ("r-rcurl" ,r-rcurl)
7176 ("r-s4vectors" ,r-s4vectors)))
7177 (home-page "https://bioconductor.org/packages/GenomeInfoDb")
7178 (synopsis "Utilities for manipulating chromosome identifiers")
7179 (description
7180 "This package contains data and functions that define and allow
7181 translation between different chromosome sequence naming conventions (e.g.,
7182 \"chr1\" versus \"1\"), including a function that attempts to place sequence
7183 names in their natural, rather than lexicographic, order.")
7184 (license license:artistic2.0)))
7185
7186 (define-public r-edger
7187 (package
7188 (name "r-edger")
7189 (version "3.20.9")
7190 (source (origin
7191 (method url-fetch)
7192 (uri (bioconductor-uri "edgeR" version))
7193 (sha256
7194 (base32
7195 "0y52snwbz37xzdd7gihdkqczbndlfzmmypv6hri3ymjyfmlx6qaw"))))
7196 (properties `((upstream-name . "edgeR")))
7197 (build-system r-build-system)
7198 (propagated-inputs
7199 `(("r-limma" ,r-limma)
7200 ("r-locfit" ,r-locfit)
7201 ("r-rcpp" ,r-rcpp)
7202 ("r-statmod" ,r-statmod))) ;for estimateDisp
7203 (home-page "http://bioinf.wehi.edu.au/edgeR")
7204 (synopsis "EdgeR does empirical analysis of digital gene expression data")
7205 (description "This package can do differential expression analysis of
7206 RNA-seq expression profiles with biological replication. It implements a range
7207 of statistical methodology based on the negative binomial distributions,
7208 including empirical Bayes estimation, exact tests, generalized linear models
7209 and quasi-likelihood tests. It be applied to differential signal analysis of
7210 other types of genomic data that produce counts, including ChIP-seq, SAGE and
7211 CAGE.")
7212 (license license:gpl2+)))
7213
7214 (define-public r-variantannotation
7215 (package
7216 (name "r-variantannotation")
7217 (version "1.24.5")
7218 (source (origin
7219 (method url-fetch)
7220 (uri (bioconductor-uri "VariantAnnotation" version))
7221 (sha256
7222 (base32
7223 "07ywn3c4w83l3sr76d0z3b1nv9icgdh3phsjlc6cfx7i6nfmvxw2"))))
7224 (properties
7225 `((upstream-name . "VariantAnnotation")))
7226 (inputs
7227 `(("zlib" ,zlib)))
7228 (propagated-inputs
7229 `(("r-annotationdbi" ,r-annotationdbi)
7230 ("r-biobase" ,r-biobase)
7231 ("r-biocgenerics" ,r-biocgenerics)
7232 ("r-biostrings" ,r-biostrings)
7233 ("r-bsgenome" ,r-bsgenome)
7234 ("r-dbi" ,r-dbi)
7235 ("r-genomeinfodb" ,r-genomeinfodb)
7236 ("r-genomicfeatures" ,r-genomicfeatures)
7237 ("r-genomicranges" ,r-genomicranges)
7238 ("r-iranges" ,r-iranges)
7239 ("r-summarizedexperiment" ,r-summarizedexperiment)
7240 ("r-rsamtools" ,r-rsamtools)
7241 ("r-rtracklayer" ,r-rtracklayer)
7242 ("r-s4vectors" ,r-s4vectors)
7243 ("r-xvector" ,r-xvector)
7244 ("r-zlibbioc" ,r-zlibbioc)))
7245 (build-system r-build-system)
7246 (home-page "https://bioconductor.org/packages/VariantAnnotation")
7247 (synopsis "Package for annotation of genetic variants")
7248 (description "This R package can annotate variants, compute amino acid
7249 coding changes and predict coding outcomes.")
7250 (license license:artistic2.0)))
7251
7252 (define-public r-limma
7253 (package
7254 (name "r-limma")
7255 (version "3.34.9")
7256 (source (origin
7257 (method url-fetch)
7258 (uri (bioconductor-uri "limma" version))
7259 (sha256
7260 (base32
7261 "1y2fm61g5i0fn0j3l31xvwh9zww9bpkc4nwzb1d0yv1cag20jkdc"))))
7262 (build-system r-build-system)
7263 (home-page "http://bioinf.wehi.edu.au/limma")
7264 (synopsis "Package for linear models for microarray and RNA-seq data")
7265 (description "This package can be used for the analysis of gene expression
7266 studies, especially the use of linear models for analysing designed experiments
7267 and the assessment of differential expression. The analysis methods apply to
7268 different technologies, including microarrays, RNA-seq, and quantitative PCR.")
7269 (license license:gpl2+)))
7270
7271 (define-public r-xvector
7272 (package
7273 (name "r-xvector")
7274 (version "0.18.0")
7275 (source (origin
7276 (method url-fetch)
7277 (uri (bioconductor-uri "XVector" version))
7278 (sha256
7279 (base32
7280 "1i4i3kdxr78lr1kcxq657p11ybi7kq10c8kyaqyh6gfc8i9rhvmk"))))
7281 (properties
7282 `((upstream-name . "XVector")))
7283 (build-system r-build-system)
7284 (arguments
7285 `(#:phases
7286 (modify-phases %standard-phases
7287 (add-after 'unpack 'use-system-zlib
7288 (lambda _
7289 (substitute* "DESCRIPTION"
7290 (("zlibbioc, ") ""))
7291 (substitute* "NAMESPACE"
7292 (("import\\(zlibbioc\\)") ""))
7293 #t)))))
7294 (inputs
7295 `(("zlib" ,zlib)))
7296 (propagated-inputs
7297 `(("r-biocgenerics" ,r-biocgenerics)
7298 ("r-iranges" ,r-iranges)
7299 ("r-s4vectors" ,r-s4vectors)))
7300 (home-page "https://bioconductor.org/packages/XVector")
7301 (synopsis "Representation and manpulation of external sequences")
7302 (description
7303 "This package provides memory efficient S4 classes for storing sequences
7304 \"externally\" (behind an R external pointer, or on disk).")
7305 (license license:artistic2.0)))
7306
7307 (define-public r-genomicranges
7308 (package
7309 (name "r-genomicranges")
7310 (version "1.30.3")
7311 (source (origin
7312 (method url-fetch)
7313 (uri (bioconductor-uri "GenomicRanges" version))
7314 (sha256
7315 (base32
7316 "07cszc9ri94nzk4dffwnsj247ih6pchnrzrvnb0q4dkk33gwy8n1"))))
7317 (properties
7318 `((upstream-name . "GenomicRanges")))
7319 (build-system r-build-system)
7320 (propagated-inputs
7321 `(("r-biocgenerics" ,r-biocgenerics)
7322 ("r-genomeinfodb" ,r-genomeinfodb)
7323 ("r-iranges" ,r-iranges)
7324 ("r-s4vectors" ,r-s4vectors)
7325 ("r-xvector" ,r-xvector)))
7326 (home-page "https://bioconductor.org/packages/GenomicRanges")
7327 (synopsis "Representation and manipulation of genomic intervals")
7328 (description
7329 "This package provides tools to efficiently represent and manipulate
7330 genomic annotations and alignments is playing a central role when it comes to
7331 analyzing high-throughput sequencing data (a.k.a. NGS data). The
7332 GenomicRanges package defines general purpose containers for storing and
7333 manipulating genomic intervals and variables defined along a genome.")
7334 (license license:artistic2.0)))
7335
7336 (define-public r-biobase
7337 (package
7338 (name "r-biobase")
7339 (version "2.38.0")
7340 (source (origin
7341 (method url-fetch)
7342 (uri (bioconductor-uri "Biobase" version))
7343 (sha256
7344 (base32
7345 "1cgm1ja1kp56zdlzyy9ggbkfn8r2vbsd4hncmz8g4hjd47fg18kg"))))
7346 (properties
7347 `((upstream-name . "Biobase")))
7348 (build-system r-build-system)
7349 (propagated-inputs
7350 `(("r-biocgenerics" ,r-biocgenerics)))
7351 (home-page "https://bioconductor.org/packages/Biobase")
7352 (synopsis "Base functions for Bioconductor")
7353 (description
7354 "This package provides functions that are needed by many other packages
7355 on Bioconductor or which replace R functions.")
7356 (license license:artistic2.0)))
7357
7358 (define-public r-annotationdbi
7359 (package
7360 (name "r-annotationdbi")
7361 (version "1.40.0")
7362 (source (origin
7363 (method url-fetch)
7364 (uri (bioconductor-uri "AnnotationDbi" version))
7365 (sha256
7366 (base32
7367 "1dh4qs1a757n640gs34lf6z2glc96nan86x0sqaw5csadl2rhnlc"))))
7368 (properties
7369 `((upstream-name . "AnnotationDbi")))
7370 (build-system r-build-system)
7371 (propagated-inputs
7372 `(("r-biobase" ,r-biobase)
7373 ("r-biocgenerics" ,r-biocgenerics)
7374 ("r-dbi" ,r-dbi)
7375 ("r-iranges" ,r-iranges)
7376 ("r-rsqlite" ,r-rsqlite)
7377 ("r-s4vectors" ,r-s4vectors)))
7378 (home-page "https://bioconductor.org/packages/AnnotationDbi")
7379 (synopsis "Annotation database interface")
7380 (description
7381 "This package provides user interface and database connection code for
7382 annotation data packages using SQLite data storage.")
7383 (license license:artistic2.0)))
7384
7385 (define-public r-biomart
7386 (package
7387 (name "r-biomart")
7388 (version "2.34.2")
7389 (source (origin
7390 (method url-fetch)
7391 (uri (bioconductor-uri "biomaRt" version))
7392 (sha256
7393 (base32
7394 "1zlgs2zg0lmnk572p55n7m34nkxka8w10x8f2ndssjkffl2csy79"))))
7395 (properties
7396 `((upstream-name . "biomaRt")))
7397 (build-system r-build-system)
7398 (propagated-inputs
7399 `(("r-annotationdbi" ,r-annotationdbi)
7400 ("r-httr" ,r-httr)
7401 ("r-progress" ,r-progress)
7402 ("r-rcurl" ,r-rcurl)
7403 ("r-stringr" ,r-stringr)
7404 ("r-xml" ,r-xml)))
7405 (home-page "https://bioconductor.org/packages/biomaRt")
7406 (synopsis "Interface to BioMart databases")
7407 (description
7408 "biomaRt provides an interface to a growing collection of databases
7409 implementing the @url{BioMart software suite, http://www.biomart.org}. The
7410 package enables retrieval of large amounts of data in a uniform way without
7411 the need to know the underlying database schemas or write complex SQL queries.
7412 Examples of BioMart databases are Ensembl, COSMIC, Uniprot, HGNC, Gramene,
7413 Wormbase and dbSNP mapped to Ensembl. These major databases give biomaRt
7414 users direct access to a diverse set of data and enable a wide range of
7415 powerful online queries from gene annotation to database mining.")
7416 (license license:artistic2.0)))
7417
7418 (define-public r-biocparallel
7419 (package
7420 (name "r-biocparallel")
7421 (version "1.12.0")
7422 (source (origin
7423 (method url-fetch)
7424 (uri (bioconductor-uri "BiocParallel" version))
7425 (sha256
7426 (base32
7427 "13ng3n2wsgl3fh0v6jnz3vg51k5c1sh44pqdvblcrcd1qyjmmqhd"))))
7428 (properties
7429 `((upstream-name . "BiocParallel")))
7430 (build-system r-build-system)
7431 (propagated-inputs
7432 `(("r-futile-logger" ,r-futile-logger)
7433 ("r-snow" ,r-snow)
7434 ("r-bh" ,r-bh)))
7435 (home-page "https://bioconductor.org/packages/BiocParallel")
7436 (synopsis "Bioconductor facilities for parallel evaluation")
7437 (description
7438 "This package provides modified versions and novel implementation of
7439 functions for parallel evaluation, tailored to use with Bioconductor
7440 objects.")
7441 (license (list license:gpl2+ license:gpl3+))))
7442
7443 (define-public r-biostrings
7444 (package
7445 (name "r-biostrings")
7446 (version "2.46.0")
7447 (source (origin
7448 (method url-fetch)
7449 (uri (bioconductor-uri "Biostrings" version))
7450 (sha256
7451 (base32
7452 "0vg50qdlxqcm2d6axjnzg8wh8pr4c5gz03l8bdl0llmwzp0zclzk"))))
7453 (properties
7454 `((upstream-name . "Biostrings")))
7455 (build-system r-build-system)
7456 (propagated-inputs
7457 `(("r-biocgenerics" ,r-biocgenerics)
7458 ("r-iranges" ,r-iranges)
7459 ("r-s4vectors" ,r-s4vectors)
7460 ("r-xvector" ,r-xvector)))
7461 (home-page "https://bioconductor.org/packages/Biostrings")
7462 (synopsis "String objects and algorithms for biological sequences")
7463 (description
7464 "This package provides memory efficient string containers, string
7465 matching algorithms, and other utilities, for fast manipulation of large
7466 biological sequences or sets of sequences.")
7467 (license license:artistic2.0)))
7468
7469 (define-public r-rsamtools
7470 (package
7471 (name "r-rsamtools")
7472 (version "1.30.0")
7473 (source (origin
7474 (method url-fetch)
7475 (uri (bioconductor-uri "Rsamtools" version))
7476 (sha256
7477 (base32
7478 "0pjny5fjvbnfdyhl3bwxin678sha2drvs00sivxh3l772cn6yams"))))
7479 (properties
7480 `((upstream-name . "Rsamtools")))
7481 (build-system r-build-system)
7482 (arguments
7483 `(#:phases
7484 (modify-phases %standard-phases
7485 (add-after 'unpack 'use-system-zlib
7486 (lambda _
7487 (substitute* "DESCRIPTION"
7488 (("zlibbioc, ") ""))
7489 (substitute* "NAMESPACE"
7490 (("import\\(zlibbioc\\)") ""))
7491 #t)))))
7492 (inputs
7493 `(("zlib" ,zlib)))
7494 (propagated-inputs
7495 `(("r-biocgenerics" ,r-biocgenerics)
7496 ("r-biocparallel" ,r-biocparallel)
7497 ("r-biostrings" ,r-biostrings)
7498 ("r-bitops" ,r-bitops)
7499 ("r-genomeinfodb" ,r-genomeinfodb)
7500 ("r-genomicranges" ,r-genomicranges)
7501 ("r-iranges" ,r-iranges)
7502 ("r-s4vectors" ,r-s4vectors)
7503 ("r-xvector" ,r-xvector)))
7504 (home-page "https://bioconductor.org/packages/release/bioc/html/Rsamtools.html")
7505 (synopsis "Interface to samtools, bcftools, and tabix")
7506 (description
7507 "This package provides an interface to the 'samtools', 'bcftools', and
7508 'tabix' utilities for manipulating SAM (Sequence Alignment / Map), FASTA,
7509 binary variant call (BCF) and compressed indexed tab-delimited (tabix)
7510 files.")
7511 (license license:expat)))
7512
7513 (define-public r-delayedarray
7514 (package
7515 (name "r-delayedarray")
7516 (version "0.4.1")
7517 (source (origin
7518 (method url-fetch)
7519 (uri (bioconductor-uri "DelayedArray" version))
7520 (sha256
7521 (base32
7522 "0s7h2giyvz04cg6248kbbzpwhxdrpnsvl2s8k5c8ricisd9aaz4b"))))
7523 (properties
7524 `((upstream-name . "DelayedArray")))
7525 (build-system r-build-system)
7526 (propagated-inputs
7527 `(("r-biocgenerics" ,r-biocgenerics)
7528 ("r-s4vectors" ,r-s4vectors)
7529 ("r-iranges" ,r-iranges)
7530 ("r-matrixstats" ,r-matrixstats)))
7531 (home-page "https://bioconductor.org/packages/DelayedArray")
7532 (synopsis "Delayed operations on array-like objects")
7533 (description
7534 "Wrapping an array-like object (typically an on-disk object) in a
7535 @code{DelayedArray} object allows one to perform common array operations on it
7536 without loading the object in memory. In order to reduce memory usage and
7537 optimize performance, operations on the object are either delayed or executed
7538 using a block processing mechanism. Note that this also works on in-memory
7539 array-like objects like @code{DataFrame} objects (typically with Rle columns),
7540 @code{Matrix} objects, and ordinary arrays and data frames.")
7541 (license license:artistic2.0)))
7542
7543 (define-public r-summarizedexperiment
7544 (package
7545 (name "r-summarizedexperiment")
7546 (version "1.8.1")
7547 (source (origin
7548 (method url-fetch)
7549 (uri (bioconductor-uri "SummarizedExperiment" version))
7550 (sha256
7551 (base32
7552 "19vlwnby83fqjrilsxvnvgz0gvby7mrxvlmx18nb3p1w591ddfjh"))))
7553 (properties
7554 `((upstream-name . "SummarizedExperiment")))
7555 (build-system r-build-system)
7556 (propagated-inputs
7557 `(("r-biobase" ,r-biobase)
7558 ("r-biocgenerics" ,r-biocgenerics)
7559 ("r-delayedarray" ,r-delayedarray)
7560 ("r-genomeinfodb" ,r-genomeinfodb)
7561 ("r-genomicranges" ,r-genomicranges)
7562 ("r-iranges" ,r-iranges)
7563 ("r-matrix" ,r-matrix)
7564 ("r-s4vectors" ,r-s4vectors)))
7565 (home-page "https://bioconductor.org/packages/SummarizedExperiment")
7566 (synopsis "Container for representing genomic ranges by sample")
7567 (description
7568 "The SummarizedExperiment container contains one or more assays, each
7569 represented by a matrix-like object of numeric or other mode. The rows
7570 typically represent genomic ranges of interest and the columns represent
7571 samples.")
7572 (license license:artistic2.0)))
7573
7574 (define-public r-genomicalignments
7575 (package
7576 (name "r-genomicalignments")
7577 (version "1.14.1")
7578 (source (origin
7579 (method url-fetch)
7580 (uri (bioconductor-uri "GenomicAlignments" version))
7581 (sha256
7582 (base32
7583 "033p6fw46sn7w2yyn14nb9qcnkf30cl0nv6zh014ixflm3iifz39"))))
7584 (properties
7585 `((upstream-name . "GenomicAlignments")))
7586 (build-system r-build-system)
7587 (propagated-inputs
7588 `(("r-biocgenerics" ,r-biocgenerics)
7589 ("r-biocparallel" ,r-biocparallel)
7590 ("r-biostrings" ,r-biostrings)
7591 ("r-genomeinfodb" ,r-genomeinfodb)
7592 ("r-genomicranges" ,r-genomicranges)
7593 ("r-iranges" ,r-iranges)
7594 ("r-rsamtools" ,r-rsamtools)
7595 ("r-s4vectors" ,r-s4vectors)
7596 ("r-summarizedexperiment" ,r-summarizedexperiment)))
7597 (home-page "https://bioconductor.org/packages/GenomicAlignments")
7598 (synopsis "Representation and manipulation of short genomic alignments")
7599 (description
7600 "This package provides efficient containers for storing and manipulating
7601 short genomic alignments (typically obtained by aligning short reads to a
7602 reference genome). This includes read counting, computing the coverage,
7603 junction detection, and working with the nucleotide content of the
7604 alignments.")
7605 (license license:artistic2.0)))
7606
7607 (define-public r-rtracklayer
7608 (package
7609 (name "r-rtracklayer")
7610 (version "1.38.3")
7611 (source (origin
7612 (method url-fetch)
7613 (uri (bioconductor-uri "rtracklayer" version))
7614 (sha256
7615 (base32
7616 "1khzfczm35k5lq9h0jlqrq01192spzjyh8s6is89spj006flwn4k"))))
7617 (build-system r-build-system)
7618 (arguments
7619 `(#:phases
7620 (modify-phases %standard-phases
7621 (add-after 'unpack 'use-system-zlib
7622 (lambda _
7623 (substitute* "DESCRIPTION"
7624 ((" zlibbioc,") ""))
7625 (substitute* "NAMESPACE"
7626 (("import\\(zlibbioc\\)") ""))
7627 #t)))))
7628 (inputs
7629 `(("zlib" ,zlib)))
7630 (propagated-inputs
7631 `(("r-biocgenerics" ,r-biocgenerics)
7632 ("r-biostrings" ,r-biostrings)
7633 ("r-genomeinfodb" ,r-genomeinfodb)
7634 ("r-genomicalignments" ,r-genomicalignments)
7635 ("r-genomicranges" ,r-genomicranges)
7636 ("r-iranges" ,r-iranges)
7637 ("r-rcurl" ,r-rcurl)
7638 ("r-rsamtools" ,r-rsamtools)
7639 ("r-s4vectors" ,r-s4vectors)
7640 ("r-xml" ,r-xml)
7641 ("r-xvector" ,r-xvector)))
7642 (home-page "https://bioconductor.org/packages/rtracklayer")
7643 (synopsis "R interface to genome browsers and their annotation tracks")
7644 (description
7645 "rtracklayer is an extensible framework for interacting with multiple
7646 genome browsers (currently UCSC built-in) and manipulating annotation tracks
7647 in various formats (currently GFF, BED, bedGraph, BED15, WIG, BigWig and 2bit
7648 built-in). The user may export/import tracks to/from the supported browsers,
7649 as well as query and modify the browser state, such as the current viewport.")
7650 (license license:artistic2.0)))
7651
7652 (define-public r-genomicfeatures
7653 (package
7654 (name "r-genomicfeatures")
7655 (version "1.30.3")
7656 (source (origin
7657 (method url-fetch)
7658 (uri (bioconductor-uri "GenomicFeatures" version))
7659 (sha256
7660 (base32
7661 "010vn8hlwbnw12pd1d8pv6m12yp3xwx557gba5rbjq9p4qypnn3z"))))
7662 (properties
7663 `((upstream-name . "GenomicFeatures")))
7664 (build-system r-build-system)
7665 (propagated-inputs
7666 `(("r-annotationdbi" ,r-annotationdbi)
7667 ("r-biobase" ,r-biobase)
7668 ("r-biocgenerics" ,r-biocgenerics)
7669 ("r-biomart" ,r-biomart)
7670 ("r-biostrings" ,r-biostrings)
7671 ("r-dbi" ,r-dbi)
7672 ("r-genomeinfodb" ,r-genomeinfodb)
7673 ("r-genomicranges" ,r-genomicranges)
7674 ("r-iranges" ,r-iranges)
7675 ("r-rcurl" ,r-rcurl)
7676 ("r-rsqlite" ,r-rsqlite)
7677 ("r-rmysql" ,r-rmysql)
7678 ("r-rtracklayer" ,r-rtracklayer)
7679 ("r-s4vectors" ,r-s4vectors)
7680 ("r-xvector" ,r-xvector)))
7681 (home-page "https://bioconductor.org/packages/GenomicFeatures")
7682 (synopsis "Tools for working with transcript centric annotations")
7683 (description
7684 "This package provides a set of tools and methods for making and
7685 manipulating transcript centric annotations. With these tools the user can
7686 easily download the genomic locations of the transcripts, exons and cds of a
7687 given organism, from either the UCSC Genome Browser or a BioMart
7688 database (more sources will be supported in the future). This information is
7689 then stored in a local database that keeps track of the relationship between
7690 transcripts, exons, cds and genes. Flexible methods are provided for
7691 extracting the desired features in a convenient format.")
7692 (license license:artistic2.0)))
7693
7694 (define-public r-go-db
7695 (package
7696 (name "r-go-db")
7697 (version "3.5.0")
7698 (source (origin
7699 (method url-fetch)
7700 (uri (string-append "https://www.bioconductor.org/packages/"
7701 "release/data/annotation/src/contrib/GO.db_"
7702 version ".tar.gz"))
7703 (sha256
7704 (base32
7705 "02d1mn1al3q7qvhx1ylrr3ar4w4iw0qyi5d89v2336rzwk9maq35"))))
7706 (properties
7707 `((upstream-name . "GO.db")))
7708 (build-system r-build-system)
7709 (propagated-inputs
7710 `(("r-annotationdbi" ,r-annotationdbi)))
7711 (home-page "https://bioconductor.org/packages/GO.db")
7712 (synopsis "Annotation maps describing the entire Gene Ontology")
7713 (description
7714 "The purpose of this GO.db annotation package is to provide detailed
7715 information about the latest version of the Gene Ontologies.")
7716 (license license:artistic2.0)))
7717
7718 (define-public r-graph
7719 (package
7720 (name "r-graph")
7721 (version "1.56.0")
7722 (source (origin
7723 (method url-fetch)
7724 (uri (bioconductor-uri "graph" version))
7725 (sha256
7726 (base32
7727 "15aajjp8h2z14p80c8hyd4rrmr9vqsm7bvwb989jxjl4k6g52an1"))))
7728 (build-system r-build-system)
7729 (propagated-inputs
7730 `(("r-biocgenerics" ,r-biocgenerics)))
7731 (home-page "https://bioconductor.org/packages/graph")
7732 (synopsis "Handle graph data structures in R")
7733 (description
7734 "This package implements some simple graph handling capabilities for R.")
7735 (license license:artistic2.0)))
7736
7737 (define-public r-topgo
7738 (package
7739 (name "r-topgo")
7740 (version "2.30.1")
7741 (source (origin
7742 (method url-fetch)
7743 (uri (bioconductor-uri "topGO" version))
7744 (sha256
7745 (base32
7746 "1cgz4knxr328xfqlhl6ypxl6x86rfrlqz748kn94ainxjzz55i6x"))))
7747 (properties
7748 `((upstream-name . "topGO")))
7749 (build-system r-build-system)
7750 (propagated-inputs
7751 `(("r-annotationdbi" ,r-annotationdbi)
7752 ("r-dbi" ,r-dbi)
7753 ("r-biobase" ,r-biobase)
7754 ("r-biocgenerics" ,r-biocgenerics)
7755 ("r-go-db" ,r-go-db)
7756 ("r-graph" ,r-graph)
7757 ("r-lattice" ,r-lattice)
7758 ("r-matrixstats" ,r-matrixstats)
7759 ("r-sparsem" ,r-sparsem)))
7760 (home-page "https://bioconductor.org/packages/topGO")
7761 (synopsis "Enrichment analysis for gene ontology")
7762 (description
7763 "The topGO package provides tools for testing @dfn{gene ontology} (GO)
7764 terms while accounting for the topology of the GO graph. Different test
7765 statistics and different methods for eliminating local similarities and
7766 dependencies between GO terms can be implemented and applied.")
7767 ;; Any version of the LGPL applies.
7768 (license license:lgpl2.1+)))
7769
7770 (define-public r-bsgenome
7771 (package
7772 (name "r-bsgenome")
7773 (version "1.46.0")
7774 (source (origin
7775 (method url-fetch)
7776 (uri (bioconductor-uri "BSgenome" version))
7777 (sha256
7778 (base32
7779 "1jbzq7lm2iajajn2bifxnkss0k9fdvgqr30mral17cbhp5f6w4lq"))))
7780 (properties
7781 `((upstream-name . "BSgenome")))
7782 (build-system r-build-system)
7783 (propagated-inputs
7784 `(("r-biocgenerics" ,r-biocgenerics)
7785 ("r-biostrings" ,r-biostrings)
7786 ("r-genomeinfodb" ,r-genomeinfodb)
7787 ("r-genomicranges" ,r-genomicranges)
7788 ("r-iranges" ,r-iranges)
7789 ("r-rsamtools" ,r-rsamtools)
7790 ("r-rtracklayer" ,r-rtracklayer)
7791 ("r-s4vectors" ,r-s4vectors)
7792 ("r-xvector" ,r-xvector)))
7793 (home-page "https://bioconductor.org/packages/BSgenome")
7794 (synopsis "Infrastructure for Biostrings-based genome data packages")
7795 (description
7796 "This package provides infrastructure shared by all Biostrings-based
7797 genome data packages and support for efficient SNP representation.")
7798 (license license:artistic2.0)))
7799
7800 (define-public r-bsgenome-hsapiens-1000genomes-hs37d5
7801 (package
7802 (name "r-bsgenome-hsapiens-1000genomes-hs37d5")
7803 (version "0.99.1")
7804 (source (origin
7805 (method url-fetch)
7806 ;; We cannot use bioconductor-uri here because this tarball is
7807 ;; located under "data/annotation/" instead of "bioc/".
7808 (uri (string-append "https://www.bioconductor.org/packages/"
7809 "release/data/annotation/src/contrib/"
7810 "BSgenome.Hsapiens.1000genomes.hs37d5_"
7811 version ".tar.gz"))
7812 (sha256
7813 (base32
7814 "1cg0g5fqmsvwyw2p9hp2yy4ilk21jkbbrnpgqvb5c36ihjwvc7sr"))))
7815 (properties
7816 `((upstream-name . "BSgenome.Hsapiens.1000genomes.hs37d5")))
7817 (build-system r-build-system)
7818 ;; As this package provides little more than a very large data file it
7819 ;; doesn't make sense to build substitutes.
7820 (arguments `(#:substitutable? #f))
7821 (propagated-inputs
7822 `(("r-bsgenome" ,r-bsgenome)))
7823 (home-page
7824 "https://www.bioconductor.org/packages/BSgenome.Hsapiens.1000genomes.hs37d5/")
7825 (synopsis "Full genome sequences for Homo sapiens")
7826 (description
7827 "This package provides full genome sequences for Homo sapiens from
7828 1000genomes phase2 reference genome sequence (hs37d5), based on NCBI GRCh37.")
7829 (license license:artistic2.0)))
7830
7831 (define-public r-impute
7832 (package
7833 (name "r-impute")
7834 (version "1.52.0")
7835 (source (origin
7836 (method url-fetch)
7837 (uri (bioconductor-uri "impute" version))
7838 (sha256
7839 (base32
7840 "0b8r4swvyx3cjcc2ky8yn0ncpzlbi1pgfsn3wpbjmhh7sqrffm2n"))))
7841 (inputs
7842 `(("gfortran" ,gfortran)))
7843 (build-system r-build-system)
7844 (home-page "https://bioconductor.org/packages/impute")
7845 (synopsis "Imputation for microarray data")
7846 (description
7847 "This package provides a function to impute missing gene expression
7848 microarray data, using nearest neighbor averaging.")
7849 (license license:gpl2+)))
7850
7851 (define-public r-seqpattern
7852 (package
7853 (name "r-seqpattern")
7854 (version "1.10.0")
7855 (source (origin
7856 (method url-fetch)
7857 (uri (bioconductor-uri "seqPattern" version))
7858 (sha256
7859 (base32
7860 "1kcm5w83q7w0v0vs7nyp4gq5z86c6n6pqy9zmyyhxcrns7f597pm"))))
7861 (properties
7862 `((upstream-name . "seqPattern")))
7863 (build-system r-build-system)
7864 (propagated-inputs
7865 `(("r-biostrings" ,r-biostrings)
7866 ("r-genomicranges" ,r-genomicranges)
7867 ("r-iranges" ,r-iranges)
7868 ("r-kernsmooth" ,r-kernsmooth)
7869 ("r-plotrix" ,r-plotrix)))
7870 (home-page "https://bioconductor.org/packages/seqPattern")
7871 (synopsis "Visualising oligonucleotide patterns and motif occurrences")
7872 (description
7873 "This package provides tools to visualize oligonucleotide patterns and
7874 sequence motif occurrences across a large set of sequences centred at a common
7875 reference point and sorted by a user defined feature.")
7876 (license license:gpl3+)))
7877
7878 (define-public r-genomation
7879 (package
7880 (name "r-genomation")
7881 (version "1.11.3")
7882 (source (origin
7883 (method url-fetch)
7884 (uri (bioconductor-uri "genomation" version))
7885 (sha256
7886 (base32
7887 "1d2g1v6xhrf3gm86pv8ln22df5g6v6k6i4i39v4j82zn4apany6v"))))
7888 (build-system r-build-system)
7889 (propagated-inputs
7890 `(("r-biostrings" ,r-biostrings)
7891 ("r-bsgenome" ,r-bsgenome)
7892 ("r-data-table" ,r-data-table)
7893 ("r-genomeinfodb" ,r-genomeinfodb)
7894 ("r-genomicalignments" ,r-genomicalignments)
7895 ("r-genomicranges" ,r-genomicranges)
7896 ("r-ggplot2" ,r-ggplot2)
7897 ("r-gridbase" ,r-gridbase)
7898 ("r-impute" ,r-impute)
7899 ("r-iranges" ,r-iranges)
7900 ("r-matrixstats" ,r-matrixstats)
7901 ("r-plotrix" ,r-plotrix)
7902 ("r-plyr" ,r-plyr)
7903 ("r-rcpp" ,r-rcpp)
7904 ("r-readr" ,r-readr)
7905 ("r-reshape2" ,r-reshape2)
7906 ("r-rsamtools" ,r-rsamtools)
7907 ("r-rtracklayer" ,r-rtracklayer)
7908 ("r-runit" ,r-runit)
7909 ("r-s4vectors" ,r-s4vectors)
7910 ("r-seqpattern" ,r-seqpattern)))
7911 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
7912 (synopsis "Summary, annotation and visualization of genomic data")
7913 (description
7914 "This package provides a package for summary and annotation of genomic
7915 intervals. Users can visualize and quantify genomic intervals over
7916 pre-defined functional regions, such as promoters, exons, introns, etc. The
7917 genomic intervals represent regions with a defined chromosome position, which
7918 may be associated with a score, such as aligned reads from HT-seq experiments,
7919 TF binding sites, methylation scores, etc. The package can use any tabular
7920 genomic feature data as long as it has minimal information on the locations of
7921 genomic intervals. In addition, it can use BAM or BigWig files as input.")
7922 (license license:artistic2.0)))
7923
7924 (define-public r-genomationdata
7925 (package
7926 (name "r-genomationdata")
7927 (version "1.10.0")
7928 (source (origin
7929 (method url-fetch)
7930 ;; We cannot use bioconductor-uri here because this tarball is
7931 ;; located under "data/annotation/" instead of "bioc/".
7932 (uri (string-append "https://bioconductor.org/packages/"
7933 "release/data/experiment/src/contrib/"
7934 "genomationData_" version ".tar.gz"))
7935 (sha256
7936 (base32
7937 "0h7g5x3kyb50qlblz5hc85lfm6n6f5nb68i146way3ggs04sqvla"))))
7938 (build-system r-build-system)
7939 ;; As this package provides little more than large data files, it doesn't
7940 ;; make sense to build substitutes.
7941 (arguments `(#:substitutable? #f))
7942 (native-inputs
7943 `(("r-knitr" ,r-knitr)))
7944 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
7945 (synopsis "Experimental data for use with the genomation package")
7946 (description
7947 "This package contains experimental genetic data for use with the
7948 genomation package. Included are Chip Seq, Methylation and Cage data,
7949 downloaded from Encode.")
7950 (license license:gpl3+)))
7951
7952 (define-public r-org-hs-eg-db
7953 (package
7954 (name "r-org-hs-eg-db")
7955 (version "3.5.0")
7956 (source (origin
7957 (method url-fetch)
7958 ;; We cannot use bioconductor-uri here because this tarball is
7959 ;; located under "data/annotation/" instead of "bioc/".
7960 (uri (string-append "https://www.bioconductor.org/packages/"
7961 "release/data/annotation/src/contrib/"
7962 "org.Hs.eg.db_" version ".tar.gz"))
7963 (sha256
7964 (base32
7965 "1v6wa5613cjq59xd7x1qz8lr9nb2abm9abl2cci1khrnrlpla927"))))
7966 (properties
7967 `((upstream-name . "org.Hs.eg.db")))
7968 (build-system r-build-system)
7969 (propagated-inputs
7970 `(("r-annotationdbi" ,r-annotationdbi)))
7971 (home-page "https://www.bioconductor.org/packages/org.Hs.eg.db/")
7972 (synopsis "Genome wide annotation for Human")
7973 (description
7974 "This package contains genome-wide annotations for Human, primarily based
7975 on mapping using Entrez Gene identifiers.")
7976 (license license:artistic2.0)))
7977
7978 (define-public r-org-ce-eg-db
7979 (package
7980 (name "r-org-ce-eg-db")
7981 (version "3.5.0")
7982 (source (origin
7983 (method url-fetch)
7984 ;; We cannot use bioconductor-uri here because this tarball is
7985 ;; located under "data/annotation/" instead of "bioc/".
7986 (uri (string-append "https://www.bioconductor.org/packages/"
7987 "release/data/annotation/src/contrib/"
7988 "org.Ce.eg.db_" version ".tar.gz"))
7989 (sha256
7990 (base32
7991 "02ggchixlmzywhsbr0h2ms4dravv7m5964cjxqcjxqs16vjwlbk9"))))
7992 (properties
7993 `((upstream-name . "org.Ce.eg.db")))
7994 (build-system r-build-system)
7995 (propagated-inputs
7996 `(("r-annotationdbi" ,r-annotationdbi)))
7997 (home-page "https://www.bioconductor.org/packages/org.Ce.eg.db/")
7998 (synopsis "Genome wide annotation for Worm")
7999 (description
8000 "This package provides mappings from Entrez gene identifiers to various
8001 annotations for the genome of the model worm Caenorhabditis elegans.")
8002 (license license:artistic2.0)))
8003
8004 (define-public r-org-dm-eg-db
8005 (package
8006 (name "r-org-dm-eg-db")
8007 (version "3.5.0")
8008 (source (origin
8009 (method url-fetch)
8010 ;; We cannot use bioconductor-uri here because this tarball is
8011 ;; located under "data/annotation/" instead of "bioc/".
8012 (uri (string-append "https://www.bioconductor.org/packages/"
8013 "release/data/annotation/src/contrib/"
8014 "org.Dm.eg.db_" version ".tar.gz"))
8015 (sha256
8016 (base32
8017 "033qak1d3wwz17va0bh8z8p8arx0aw2va6gm1qfwsvdkj9cd9d7d"))))
8018 (properties
8019 `((upstream-name . "org.Dm.eg.db")))
8020 (build-system r-build-system)
8021 (propagated-inputs
8022 `(("r-annotationdbi" ,r-annotationdbi)))
8023 (home-page "https://www.bioconductor.org/packages/org.Dm.eg.db/")
8024 (synopsis "Genome wide annotation for Fly")
8025 (description
8026 "This package provides mappings from Entrez gene identifiers to various
8027 annotations for the genome of the model fruit fly Drosophila melanogaster.")
8028 (license license:artistic2.0)))
8029
8030 (define-public r-org-mm-eg-db
8031 (package
8032 (name "r-org-mm-eg-db")
8033 (version "3.5.0")
8034 (source (origin
8035 (method url-fetch)
8036 ;; We cannot use bioconductor-uri here because this tarball is
8037 ;; located under "data/annotation/" instead of "bioc/".
8038 (uri (string-append "https://www.bioconductor.org/packages/"
8039 "release/data/annotation/src/contrib/"
8040 "org.Mm.eg.db_" version ".tar.gz"))
8041 (sha256
8042 (base32
8043 "11q21p3ki4bn4hb3aix0g775l45l66jmas6m94nfhqqnpjhv4d6g"))))
8044 (properties
8045 `((upstream-name . "org.Mm.eg.db")))
8046 (build-system r-build-system)
8047 (propagated-inputs
8048 `(("r-annotationdbi" ,r-annotationdbi)))
8049 (home-page "https://www.bioconductor.org/packages/org.Mm.eg.db/")
8050 (synopsis "Genome wide annotation for Mouse")
8051 (description
8052 "This package provides mappings from Entrez gene identifiers to various
8053 annotations for the genome of the model mouse Mus musculus.")
8054 (license license:artistic2.0)))
8055
8056 (define-public r-seqlogo
8057 (package
8058 (name "r-seqlogo")
8059 (version "1.44.0")
8060 (source
8061 (origin
8062 (method url-fetch)
8063 (uri (bioconductor-uri "seqLogo" version))
8064 (sha256
8065 (base32
8066 "1ql4q4vx0j61a893dqc3c8zxmgs8sqhy3j1qhyfdvbd01vw9w1kq"))))
8067 (properties `((upstream-name . "seqLogo")))
8068 (build-system r-build-system)
8069 (home-page "https://bioconductor.org/packages/seqLogo")
8070 (synopsis "Sequence logos for DNA sequence alignments")
8071 (description
8072 "seqLogo takes the position weight matrix of a DNA sequence motif and
8073 plots the corresponding sequence logo as introduced by Schneider and
8074 Stephens (1990).")
8075 (license license:lgpl2.0+)))
8076
8077 (define-public r-bsgenome-hsapiens-ucsc-hg19
8078 (package
8079 (name "r-bsgenome-hsapiens-ucsc-hg19")
8080 (version "1.4.0")
8081 (source (origin
8082 (method url-fetch)
8083 ;; We cannot use bioconductor-uri here because this tarball is
8084 ;; located under "data/annotation/" instead of "bioc/".
8085 (uri (string-append "https://www.bioconductor.org/packages/"
8086 "release/data/annotation/src/contrib/"
8087 "BSgenome.Hsapiens.UCSC.hg19_"
8088 version ".tar.gz"))
8089 (sha256
8090 (base32
8091 "1y0nqpk8cw5a34sd9hmin3z4v7iqm6hf6l22cl81vlbxqbjibxc8"))))
8092 (properties
8093 `((upstream-name . "BSgenome.Hsapiens.UCSC.hg19")))
8094 (build-system r-build-system)
8095 ;; As this package provides little more than a very large data file it
8096 ;; doesn't make sense to build substitutes.
8097 (arguments `(#:substitutable? #f))
8098 (propagated-inputs
8099 `(("r-bsgenome" ,r-bsgenome)))
8100 (home-page
8101 "https://www.bioconductor.org/packages/BSgenome.Hsapiens.UCSC.hg19/")
8102 (synopsis "Full genome sequences for Homo sapiens")
8103 (description
8104 "This package provides full genome sequences for Homo sapiens as provided
8105 by UCSC (hg19, February 2009) and stored in Biostrings objects.")
8106 (license license:artistic2.0)))
8107
8108 (define-public r-bsgenome-mmusculus-ucsc-mm9
8109 (package
8110 (name "r-bsgenome-mmusculus-ucsc-mm9")
8111 (version "1.4.0")
8112 (source (origin
8113 (method url-fetch)
8114 ;; We cannot use bioconductor-uri here because this tarball is
8115 ;; located under "data/annotation/" instead of "bioc/".
8116 (uri (string-append "https://www.bioconductor.org/packages/"
8117 "release/data/annotation/src/contrib/"
8118 "BSgenome.Mmusculus.UCSC.mm9_"
8119 version ".tar.gz"))
8120 (sha256
8121 (base32
8122 "1birqw30g2azimxpnjfzmkphan7x131yy8b9h85lfz5fjdg7841i"))))
8123 (properties
8124 `((upstream-name . "BSgenome.Mmusculus.UCSC.mm9")))
8125 (build-system r-build-system)
8126 ;; As this package provides little more than a very large data file it
8127 ;; doesn't make sense to build substitutes.
8128 (arguments `(#:substitutable? #f))
8129 (propagated-inputs
8130 `(("r-bsgenome" ,r-bsgenome)))
8131 (home-page
8132 "https://www.bioconductor.org/packages/BSgenome.Mmusculus.UCSC.mm9/")
8133 (synopsis "Full genome sequences for Mouse")
8134 (description
8135 "This package provides full genome sequences for Mus musculus (Mouse) as
8136 provided by UCSC (mm9, July 2007) and stored in Biostrings objects.")
8137 (license license:artistic2.0)))
8138
8139 (define-public r-bsgenome-mmusculus-ucsc-mm10
8140 (package
8141 (name "r-bsgenome-mmusculus-ucsc-mm10")
8142 (version "1.4.0")
8143 (source (origin
8144 (method url-fetch)
8145 ;; We cannot use bioconductor-uri here because this tarball is
8146 ;; located under "data/annotation/" instead of "bioc/".
8147 (uri (string-append "https://www.bioconductor.org/packages/"
8148 "release/data/annotation/src/contrib/"
8149 "BSgenome.Mmusculus.UCSC.mm10_"
8150 version ".tar.gz"))
8151 (sha256
8152 (base32
8153 "12s0nm2na9brjad4rn9l7d3db2aj8qa1xvz0y1k7gk08wayb6bkf"))))
8154 (properties
8155 `((upstream-name . "BSgenome.Mmusculus.UCSC.mm10")))
8156 (build-system r-build-system)
8157 ;; As this package provides little more than a very large data file it
8158 ;; doesn't make sense to build substitutes.
8159 (arguments `(#:substitutable? #f))
8160 (propagated-inputs
8161 `(("r-bsgenome" ,r-bsgenome)))
8162 (home-page
8163 "https://www.bioconductor.org/packages/BSgenome.Mmusculus.UCSC.mm10/")
8164 (synopsis "Full genome sequences for Mouse")
8165 (description
8166 "This package provides full genome sequences for Mus
8167 musculus (Mouse) as provided by UCSC (mm10, December 2011) and stored
8168 in Biostrings objects.")
8169 (license license:artistic2.0)))
8170
8171 (define-public r-txdb-mmusculus-ucsc-mm10-knowngene
8172 (package
8173 (name "r-txdb-mmusculus-ucsc-mm10-knowngene")
8174 (version "3.4.0")
8175 (source (origin
8176 (method url-fetch)
8177 ;; We cannot use bioconductor-uri here because this tarball is
8178 ;; located under "data/annotation/" instead of "bioc/".
8179 (uri (string-append "https://www.bioconductor.org/packages/"
8180 "release/data/annotation/src/contrib/"
8181 "TxDb.Mmusculus.UCSC.mm10.knownGene_"
8182 version ".tar.gz"))
8183 (sha256
8184 (base32
8185 "08gava9wsvpcqz51k2sni3pj03n5155v32d9riqbf305nbirqbkb"))))
8186 (properties
8187 `((upstream-name . "TxDb.Mmusculus.UCSC.mm10.knownGene")))
8188 (build-system r-build-system)
8189 ;; As this package provides little more than a very large data file it
8190 ;; doesn't make sense to build substitutes.
8191 (arguments `(#:substitutable? #f))
8192 (propagated-inputs
8193 `(("r-bsgenome" ,r-bsgenome)
8194 ("r-genomicfeatures" ,r-genomicfeatures)
8195 ("r-annotationdbi" ,r-annotationdbi)))
8196 (home-page
8197 "https://bioconductor.org/packages/TxDb.Mmusculus.UCSC.mm10.knownGene/")
8198 (synopsis "Annotation package for TxDb knownGene object(s) for Mouse")
8199 (description
8200 "This package loads a TxDb object, which is an R interface to
8201 prefabricated databases contained in this package. This package provides
8202 the TxDb object of Mouse data as provided by UCSC (mm10, December 2011)
8203 based on the knownGene track.")
8204 (license license:artistic2.0)))
8205
8206 (define-public r-bsgenome-celegans-ucsc-ce6
8207 (package
8208 (name "r-bsgenome-celegans-ucsc-ce6")
8209 (version "1.4.0")
8210 (source (origin
8211 (method url-fetch)
8212 ;; We cannot use bioconductor-uri here because this tarball is
8213 ;; located under "data/annotation/" instead of "bioc/".
8214 (uri (string-append "https://www.bioconductor.org/packages/"
8215 "release/data/annotation/src/contrib/"
8216 "BSgenome.Celegans.UCSC.ce6_"
8217 version ".tar.gz"))
8218 (sha256
8219 (base32
8220 "0mqzb353xv2c3m3vkb315dkmnxkgczp7ndnknyhpgjlybyf715v9"))))
8221 (properties
8222 `((upstream-name . "BSgenome.Celegans.UCSC.ce6")))
8223 (build-system r-build-system)
8224 ;; As this package provides little more than a very large data file it
8225 ;; doesn't make sense to build substitutes.
8226 (arguments `(#:substitutable? #f))
8227 (propagated-inputs
8228 `(("r-bsgenome" ,r-bsgenome)))
8229 (home-page
8230 "https://www.bioconductor.org/packages/BSgenome.Celegans.UCSC.ce6/")
8231 (synopsis "Full genome sequences for Worm")
8232 (description
8233 "This package provides full genome sequences for Caenorhabditis
8234 elegans (Worm) as provided by UCSC (ce6, May 2008) and stored in Biostrings
8235 objects.")
8236 (license license:artistic2.0)))
8237
8238 (define-public r-bsgenome-celegans-ucsc-ce10
8239 (package
8240 (name "r-bsgenome-celegans-ucsc-ce10")
8241 (version "1.4.0")
8242 (source (origin
8243 (method url-fetch)
8244 ;; We cannot use bioconductor-uri here because this tarball is
8245 ;; located under "data/annotation/" instead of "bioc/".
8246 (uri (string-append "https://www.bioconductor.org/packages/"
8247 "release/data/annotation/src/contrib/"
8248 "BSgenome.Celegans.UCSC.ce10_"
8249 version ".tar.gz"))
8250 (sha256
8251 (base32
8252 "1zaym97jk4npxk14ifvwz2rvhm4zx9xgs33r9vvx9rlynp0gydrk"))))
8253 (properties
8254 `((upstream-name . "BSgenome.Celegans.UCSC.ce10")))
8255 (build-system r-build-system)
8256 ;; As this package provides little more than a very large data file it
8257 ;; doesn't make sense to build substitutes.
8258 (arguments `(#:substitutable? #f))
8259 (propagated-inputs
8260 `(("r-bsgenome" ,r-bsgenome)))
8261 (home-page
8262 "https://www.bioconductor.org/packages/BSgenome.Celegans.UCSC.ce10/")
8263 (synopsis "Full genome sequences for Worm")
8264 (description
8265 "This package provides full genome sequences for Caenorhabditis
8266 elegans (Worm) as provided by UCSC (ce10, Oct 2010) and stored in Biostrings
8267 objects.")
8268 (license license:artistic2.0)))
8269
8270 (define-public r-bsgenome-dmelanogaster-ucsc-dm3
8271 (package
8272 (name "r-bsgenome-dmelanogaster-ucsc-dm3")
8273 (version "1.4.0")
8274 (source (origin
8275 (method url-fetch)
8276 ;; We cannot use bioconductor-uri here because this tarball is
8277 ;; located under "data/annotation/" instead of "bioc/".
8278 (uri (string-append "https://www.bioconductor.org/packages/"
8279 "release/data/annotation/src/contrib/"
8280 "BSgenome.Dmelanogaster.UCSC.dm3_"
8281 version ".tar.gz"))
8282 (sha256
8283 (base32
8284 "19bm3lkhhkag3gnwp419211fh0cnr0x6fa0r1lr0ycwrikxdxsv8"))))
8285 (properties
8286 `((upstream-name . "BSgenome.Dmelanogaster.UCSC.dm3")))
8287 (build-system r-build-system)
8288 ;; As this package provides little more than a very large data file it
8289 ;; doesn't make sense to build substitutes.
8290 (arguments `(#:substitutable? #f))
8291 (propagated-inputs
8292 `(("r-bsgenome" ,r-bsgenome)))
8293 (home-page
8294 "https://www.bioconductor.org/packages/BSgenome.Dmelanogaster.UCSC.dm3/")
8295 (synopsis "Full genome sequences for Fly")
8296 (description
8297 "This package provides full genome sequences for Drosophila
8298 melanogaster (Fly) as provided by UCSC (dm3, April 2006) and stored in
8299 Biostrings objects.")
8300 (license license:artistic2.0)))
8301
8302 (define-public r-motifrg
8303 (package
8304 (name "r-motifrg")
8305 (version "1.22.0")
8306 (source
8307 (origin
8308 (method url-fetch)
8309 (uri (bioconductor-uri "motifRG" version))
8310 (sha256
8311 (base32
8312 "193zl2rlzwxv9p9q5i7rilj3w05ndqfyp9bdpvagp5s5cin4hf44"))))
8313 (properties `((upstream-name . "motifRG")))
8314 (build-system r-build-system)
8315 (propagated-inputs
8316 `(("r-biostrings" ,r-biostrings)
8317 ("r-bsgenome" ,r-bsgenome)
8318 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8319 ("r-iranges" ,r-iranges)
8320 ("r-seqlogo" ,r-seqlogo)
8321 ("r-xvector" ,r-xvector)))
8322 (home-page "https://bioconductor.org/packages/motifRG")
8323 (synopsis "Discover motifs in high throughput sequencing data")
8324 (description
8325 "This package provides tools for discriminative motif discovery in high
8326 throughput genetic sequencing data sets using regression methods.")
8327 (license license:artistic2.0)))
8328
8329 (define-public r-qtl
8330 (package
8331 (name "r-qtl")
8332 (version "1.42-8")
8333 (source
8334 (origin
8335 (method url-fetch)
8336 (uri (string-append "mirror://cran/src/contrib/qtl_"
8337 version ".tar.gz"))
8338 (sha256
8339 (base32
8340 "1l528dwvfpdlr05imrrm4rq32axp6hld9nqm6mm43kn5n7z2f5k6"))))
8341 (build-system r-build-system)
8342 (home-page "http://rqtl.org/")
8343 (synopsis "R package for analyzing QTL experiments in genetics")
8344 (description "R/qtl is an extension library for the R statistics
8345 system. It is used to analyze experimental crosses for identifying
8346 genes contributing to variation in quantitative traits (so-called
8347 quantitative trait loci, QTLs).
8348
8349 Using a hidden Markov model, R/qtl allows to estimate genetic maps, to
8350 identify genotyping errors, and to perform single-QTL and two-QTL,
8351 two-dimensional genome scans.")
8352 (license license:gpl3)))
8353
8354 (define-public r-zlibbioc
8355 (package
8356 (name "r-zlibbioc")
8357 (version "1.24.0")
8358 (source (origin
8359 (method url-fetch)
8360 (uri (bioconductor-uri "zlibbioc" version))
8361 (sha256
8362 (base32
8363 "1zr9hbh55hglfpy15cpxwmddxblhyb0an15953l3rbhmlh2vpy92"))))
8364 (properties
8365 `((upstream-name . "zlibbioc")))
8366 (build-system r-build-system)
8367 (home-page "https://bioconductor.org/packages/zlibbioc")
8368 (synopsis "Provider for zlib-1.2.5 to R packages")
8369 (description "This package uses the source code of zlib-1.2.5 to create
8370 libraries for systems that do not have these available via other means.")
8371 (license license:artistic2.0)))
8372
8373 (define-public r-r4rna
8374 (package
8375 (name "r-r4rna")
8376 (version "0.1.4")
8377 (source
8378 (origin
8379 (method url-fetch)
8380 (uri (string-append "http://www.e-rna.org/r-chie/files/R4RNA_"
8381 version ".tar.gz"))
8382 (sha256
8383 (base32
8384 "1p0i78wh76jfgmn9jphbwwaz6yy6pipzfg08xs54cxavxg2j81p5"))))
8385 (build-system r-build-system)
8386 (propagated-inputs
8387 `(("r-optparse" ,r-optparse)
8388 ("r-rcolorbrewer" ,r-rcolorbrewer)))
8389 (home-page "http://www.e-rna.org/r-chie/index.cgi")
8390 (synopsis "Analysis framework for RNA secondary structure")
8391 (description
8392 "The R4RNA package aims to be a general framework for the analysis of RNA
8393 secondary structure and comparative analysis in R.")
8394 (license license:gpl3+)))
8395
8396 (define-public r-rhtslib
8397 (package
8398 (name "r-rhtslib")
8399 (version "1.10.0")
8400 (source
8401 (origin
8402 (method url-fetch)
8403 (uri (bioconductor-uri "Rhtslib" version))
8404 (sha256
8405 (base32
8406 "1dw3p44bfr0m7w39ckc2k37sjcp1zz0b9g12mr8am15jaj6v0q2j"))))
8407 (properties `((upstream-name . "Rhtslib")))
8408 (build-system r-build-system)
8409 (propagated-inputs
8410 `(("r-zlibbioc" ,r-zlibbioc)))
8411 (inputs
8412 `(("zlib" ,zlib)))
8413 (native-inputs
8414 `(("autoconf" ,autoconf)))
8415 (home-page "https://github.com/nhayden/Rhtslib")
8416 (synopsis "High-throughput sequencing library as an R package")
8417 (description
8418 "This package provides the HTSlib C library for high-throughput
8419 nucleotide sequence analysis. The package is primarily useful to developers
8420 of other R packages who wish to make use of HTSlib.")
8421 (license license:lgpl2.0+)))
8422
8423 (define-public r-bamsignals
8424 (package
8425 (name "r-bamsignals")
8426 (version "1.10.0")
8427 (source
8428 (origin
8429 (method url-fetch)
8430 (uri (bioconductor-uri "bamsignals" version))
8431 (sha256
8432 (base32
8433 "15id6mkj95skb4kfafvfs2j7ylydal60c3pspcl7llhwpq6vcqvl"))))
8434 (build-system r-build-system)
8435 (propagated-inputs
8436 `(("r-biocgenerics" ,r-biocgenerics)
8437 ("r-genomicranges" ,r-genomicranges)
8438 ("r-iranges" ,r-iranges)
8439 ("r-rcpp" ,r-rcpp)
8440 ("r-rhtslib" ,r-rhtslib)
8441 ("r-zlibbioc" ,r-zlibbioc)))
8442 (inputs
8443 `(("zlib" ,zlib)))
8444 (home-page "https://bioconductor.org/packages/bamsignals")
8445 (synopsis "Extract read count signals from bam files")
8446 (description
8447 "This package allows to efficiently obtain count vectors from indexed bam
8448 files. It counts the number of nucleotide sequence reads in given genomic
8449 ranges and it computes reads profiles and coverage profiles. It also handles
8450 paired-end data.")
8451 (license license:gpl2+)))
8452
8453 (define-public r-rcas
8454 (package
8455 (name "r-rcas")
8456 (version "1.3.4")
8457 (source (origin
8458 (method url-fetch)
8459 (uri (string-append "https://github.com/BIMSBbioinfo/RCAS/archive/v"
8460 version ".tar.gz"))
8461 (file-name (string-append name "-" version ".tar.gz"))
8462 (sha256
8463 (base32
8464 "1qgc7vi6fpzl440yg7jhiycg5q336kd4pxqzx10yx2zcq3bq3msg"))))
8465 (build-system r-build-system)
8466 (native-inputs
8467 `(("r-knitr" ,r-knitr)
8468 ("r-testthat" ,r-testthat)
8469 ;; During vignette building knitr checks that "pandoc-citeproc"
8470 ;; is in the PATH.
8471 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)))
8472 (propagated-inputs
8473 `(("r-data-table" ,r-data-table)
8474 ("r-biomart" ,r-biomart)
8475 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
8476 ("r-org-ce-eg-db" ,r-org-ce-eg-db)
8477 ("r-org-dm-eg-db" ,r-org-dm-eg-db)
8478 ("r-org-mm-eg-db" ,r-org-mm-eg-db)
8479 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8480 ("r-bsgenome-mmusculus-ucsc-mm9" ,r-bsgenome-mmusculus-ucsc-mm9)
8481 ("r-bsgenome-celegans-ucsc-ce10" ,r-bsgenome-celegans-ucsc-ce10)
8482 ("r-bsgenome-dmelanogaster-ucsc-dm3" ,r-bsgenome-dmelanogaster-ucsc-dm3)
8483 ("r-topgo" ,r-topgo)
8484 ("r-dt" ,r-dt)
8485 ("r-pbapply" ,r-pbapply)
8486 ("r-plotly" ,r-plotly)
8487 ("r-plotrix" ,r-plotrix)
8488 ("r-motifrg" ,r-motifrg)
8489 ("r-genomation" ,r-genomation)
8490 ("r-genomicfeatures" ,r-genomicfeatures)
8491 ("r-rtracklayer" ,r-rtracklayer)
8492 ("r-rmarkdown" ,r-rmarkdown)))
8493 (synopsis "RNA-centric annotation system")
8494 (description
8495 "RCAS aims to be a standalone RNA-centric annotation system that provides
8496 intuitive reports and publication-ready graphics. This package provides the R
8497 library implementing most of the pipeline's features.")
8498 (home-page "https://github.com/BIMSBbioinfo/RCAS")
8499 (license license:artistic2.0)))
8500
8501 (define-public rcas-web
8502 (package
8503 (name "rcas-web")
8504 (version "0.0.4")
8505 (source
8506 (origin
8507 (method url-fetch)
8508 (uri (string-append "https://github.com/BIMSBbioinfo/rcas-web/"
8509 "releases/download/v" version
8510 "/rcas-web-" version ".tar.gz"))
8511 (sha256
8512 (base32
8513 "1p16frfys41a8yaa4gkm457nzkqhqs2pc3lkac0ds457w9w5j1gm"))))
8514 (build-system gnu-build-system)
8515 (arguments
8516 `(#:phases
8517 (modify-phases %standard-phases
8518 (add-after 'install 'wrap-executable
8519 (lambda* (#:key inputs outputs #:allow-other-keys)
8520 (let* ((out (assoc-ref outputs "out"))
8521 (json (assoc-ref inputs "guile-json"))
8522 (redis (assoc-ref inputs "guile-redis"))
8523 (path (string-append
8524 json "/share/guile/site/2.2:"
8525 redis "/share/guile/site/2.2")))
8526 (wrap-program (string-append out "/bin/rcas-web")
8527 `("GUILE_LOAD_PATH" ":" = (,path))
8528 `("GUILE_LOAD_COMPILED_PATH" ":" = (,path))
8529 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
8530 #t)))))
8531 (inputs
8532 `(("r-minimal" ,r-minimal)
8533 ("r-rcas" ,r-rcas)
8534 ("guile-next" ,guile-2.2)
8535 ("guile-json" ,guile-json)
8536 ("guile-redis" ,guile2.2-redis)))
8537 (native-inputs
8538 `(("pkg-config" ,pkg-config)))
8539 (home-page "https://github.com/BIMSBbioinfo/rcas-web")
8540 (synopsis "Web interface for RNA-centric annotation system (RCAS)")
8541 (description "This package provides a simple web interface for the
8542 @dfn{RNA-centric annotation system} (RCAS).")
8543 (license license:agpl3+)))
8544
8545 (define-public r-mutationalpatterns
8546 (package
8547 (name "r-mutationalpatterns")
8548 (version "1.4.2")
8549 (source
8550 (origin
8551 (method url-fetch)
8552 (uri (bioconductor-uri "MutationalPatterns" version))
8553 (sha256
8554 (base32
8555 "08ay9h5cqsi8ypb6r0g4rfa5l1g06jgfzl64wmhgz134yqbl7vfv"))))
8556 (build-system r-build-system)
8557 (propagated-inputs
8558 `(("r-biocgenerics" ,r-biocgenerics)
8559 ("r-biostrings" ,r-biostrings)
8560 ("r-bsgenome-hsapiens-1000g" ,r-bsgenome-hsapiens-1000genomes-hs37d5)
8561 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8562 ("r-genomicranges" ,r-genomicranges)
8563 ("r-genomeinfodb" ,r-genomeinfodb)
8564 ("r-ggplot2" ,r-ggplot2)
8565 ("r-gridextra" ,r-gridextra)
8566 ("r-iranges" ,r-iranges)
8567 ("r-nmf" ,r-nmf)
8568 ("r-plyr" ,r-plyr)
8569 ("r-pracma" ,r-pracma)
8570 ("r-reshape2" ,r-reshape2)
8571 ("r-cowplot" ,r-cowplot)
8572 ("r-ggdendro" ,r-ggdendro)
8573 ("r-s4vectors" ,r-s4vectors)
8574 ("r-summarizedexperiment" ,r-summarizedexperiment)
8575 ("r-variantannotation" ,r-variantannotation)))
8576 (home-page "https://bioconductor.org/packages/MutationalPatterns/")
8577 (synopsis "Extract and visualize mutational patterns in genomic data")
8578 (description "This package provides an extensive toolset for the
8579 characterization and visualization of a wide range of mutational patterns
8580 in SNV base substitution data.")
8581 (license license:expat)))
8582
8583 (define-public r-wgcna
8584 (package
8585 (name "r-wgcna")
8586 (version "1.63")
8587 (source
8588 (origin
8589 (method url-fetch)
8590 (uri (cran-uri "WGCNA" version))
8591 (sha256
8592 (base32
8593 "1225dqm68bynkmklnsxdqdd3zqrpzbvqwyly8ibxmk75z33xz309"))))
8594 (properties `((upstream-name . "WGCNA")))
8595 (build-system r-build-system)
8596 (propagated-inputs
8597 `(("r-annotationdbi" ,r-annotationdbi)
8598 ("r-doparallel" ,r-doparallel)
8599 ("r-dynamictreecut" ,r-dynamictreecut)
8600 ("r-fastcluster" ,r-fastcluster)
8601 ("r-foreach" ,r-foreach)
8602 ("r-go-db" ,r-go-db)
8603 ("r-hmisc" ,r-hmisc)
8604 ("r-impute" ,r-impute)
8605 ("r-rcpp" ,r-rcpp)
8606 ("r-robust" ,r-robust)
8607 ("r-survival" ,r-survival)
8608 ("r-matrixstats" ,r-matrixstats)
8609 ("r-preprocesscore" ,r-preprocesscore)))
8610 (home-page
8611 "http://www.genetics.ucla.edu/labs/horvath/CoexpressionNetwork/Rpackages/WGCNA/")
8612 (synopsis "Weighted correlation network analysis")
8613 (description
8614 "This package provides functions necessary to perform Weighted
8615 Correlation Network Analysis on high-dimensional data. It includes functions
8616 for rudimentary data cleaning, construction and summarization of correlation
8617 networks, module identification and functions for relating both variables and
8618 modules to sample traits. It also includes a number of utility functions for
8619 data manipulation and visualization.")
8620 (license license:gpl2+)))
8621
8622 (define-public r-chipkernels
8623 (let ((commit "c9cfcacb626b1221094fb3490ea7bac0fd625372")
8624 (revision "1"))
8625 (package
8626 (name "r-chipkernels")
8627 (version (string-append "1.1-" revision "." (string-take commit 9)))
8628 (source
8629 (origin
8630 (method git-fetch)
8631 (uri (git-reference
8632 (url "https://github.com/ManuSetty/ChIPKernels.git")
8633 (commit commit)))
8634 (file-name (string-append name "-" version))
8635 (sha256
8636 (base32
8637 "14bj5qhjm1hsm9ay561nfbqi9wxsa7y487df2idsaaf6z10nw4v0"))))
8638 (build-system r-build-system)
8639 (propagated-inputs
8640 `(("r-iranges" ,r-iranges)
8641 ("r-xvector" ,r-xvector)
8642 ("r-biostrings" ,r-biostrings)
8643 ("r-bsgenome" ,r-bsgenome)
8644 ("r-gtools" ,r-gtools)
8645 ("r-genomicranges" ,r-genomicranges)
8646 ("r-sfsmisc" ,r-sfsmisc)
8647 ("r-kernlab" ,r-kernlab)
8648 ("r-s4vectors" ,r-s4vectors)
8649 ("r-biocgenerics" ,r-biocgenerics)))
8650 (home-page "https://github.com/ManuSetty/ChIPKernels")
8651 (synopsis "Build string kernels for DNA Sequence analysis")
8652 (description "ChIPKernels is an R package for building different string
8653 kernels used for DNA Sequence analysis. A dictionary of the desired kernel
8654 must be built and this dictionary can be used for determining kernels for DNA
8655 Sequences.")
8656 (license license:gpl2+))))
8657
8658 (define-public r-seqgl
8659 (package
8660 (name "r-seqgl")
8661 (version "1.1.4")
8662 (source
8663 (origin
8664 (method url-fetch)
8665 (uri (string-append "https://github.com/ManuSetty/SeqGL/"
8666 "archive/" version ".tar.gz"))
8667 (file-name (string-append name "-" version ".tar.gz"))
8668 (sha256
8669 (base32
8670 "0pnk1p3sci5yipyc8xnb6jbmydpl80fld927xgnbcv104hy8h8yh"))))
8671 (build-system r-build-system)
8672 (propagated-inputs
8673 `(("r-biostrings" ,r-biostrings)
8674 ("r-chipkernels" ,r-chipkernels)
8675 ("r-genomicranges" ,r-genomicranges)
8676 ("r-spams" ,r-spams)
8677 ("r-wgcna" ,r-wgcna)
8678 ("r-fastcluster" ,r-fastcluster)))
8679 (home-page "https://github.com/ManuSetty/SeqGL")
8680 (synopsis "Group lasso for Dnase/ChIP-seq data")
8681 (description "SeqGL is a group lasso based algorithm to extract
8682 transcription factor sequence signals from ChIP, DNase and ATAC-seq profiles.
8683 This package presents a method which uses group lasso to discriminate between
8684 bound and non bound genomic regions to accurately identify transcription
8685 factors bound at the specific regions.")
8686 (license license:gpl2+)))
8687
8688 (define-public r-gkmsvm
8689 (package
8690 (name "r-gkmsvm")
8691 (version "0.79.0")
8692 (source
8693 (origin
8694 (method url-fetch)
8695 (uri (cran-uri "gkmSVM" version))
8696 (sha256
8697 (base32
8698 "04dakbgfvfalz4rm4fvvybp506dn5fbj5g86ybfhrc6wywjllsz3"))))
8699 (properties `((upstream-name . "gkmSVM")))
8700 (build-system r-build-system)
8701 (propagated-inputs
8702 `(("r-biocgenerics" ,r-biocgenerics)
8703 ("r-biostrings" ,r-biostrings)
8704 ("r-genomeinfodb" ,r-genomeinfodb)
8705 ("r-genomicranges" ,r-genomicranges)
8706 ("r-iranges" ,r-iranges)
8707 ("r-kernlab" ,r-kernlab)
8708 ("r-rcpp" ,r-rcpp)
8709 ("r-rocr" ,r-rocr)
8710 ("r-rtracklayer" ,r-rtracklayer)
8711 ("r-s4vectors" ,r-s4vectors)
8712 ("r-seqinr" ,r-seqinr)))
8713 (home-page "https://cran.r-project.org/web/packages/gkmSVM")
8714 (synopsis "Gapped-kmer support vector machine")
8715 (description
8716 "This R package provides tools for training gapped-kmer SVM classifiers
8717 for DNA and protein sequences. This package supports several sequence
8718 kernels, including: gkmSVM, kmer-SVM, mismatch kernel and wildcard kernel.")
8719 (license license:gpl2+)))
8720
8721 (define-public r-tximport
8722 (package
8723 (name "r-tximport")
8724 (version "1.6.0")
8725 (source (origin
8726 (method url-fetch)
8727 (uri (bioconductor-uri "tximport" version))
8728 (sha256
8729 (base32
8730 "1gyqcm91hxg1kgjqcz2qw1n56yp9pymjzs50rwcpb2893dr8sp2h"))))
8731 (build-system r-build-system)
8732 (home-page "https://bioconductor.org/packages/tximport")
8733 (synopsis "Import and summarize transcript-level estimates for gene-level analysis")
8734 (description
8735 "This package provides tools to import transcript-level abundance,
8736 estimated counts and transcript lengths, and to summarize them into matrices
8737 for use with downstream gene-level analysis packages. Average transcript
8738 length, weighted by sample-specific transcript abundance estimates, is
8739 provided as a matrix which can be used as an offset for different expression
8740 of gene-level counts.")
8741 (license license:gpl2+)))
8742
8743 (define-public r-rhdf5
8744 (package
8745 (name "r-rhdf5")
8746 (version "2.22.0")
8747 (source (origin
8748 (method url-fetch)
8749 (uri (bioconductor-uri "rhdf5" version))
8750 (sha256
8751 (base32
8752 "145858qg1xan6imxcbprzq3yn3mdf532aahdr6cibvdjg47hs4c1"))))
8753 (build-system r-build-system)
8754 (arguments
8755 `(#:phases
8756 (modify-phases %standard-phases
8757 (add-after 'unpack 'unpack-smallhdf5
8758 (lambda* (#:key outputs #:allow-other-keys)
8759 (system* "tar" "-xzvf"
8760 "src/hdf5source/hdf5small.tgz" "-C" "src/" )
8761 (substitute* "src/hdf5/configure"
8762 (("/bin/mv") "mv"))
8763 #t)))))
8764 (propagated-inputs
8765 `(("r-zlibbioc" ,r-zlibbioc)))
8766 (inputs
8767 `(("perl" ,perl)
8768 ("zlib" ,zlib)))
8769 (home-page "https://bioconductor.org/packages/rhdf5")
8770 (synopsis "HDF5 interface to R")
8771 (description
8772 "This R/Bioconductor package provides an interface between HDF5 and R.
8773 HDF5's main features are the ability to store and access very large and/or
8774 complex datasets and a wide variety of metadata on mass storage (disk) through
8775 a completely portable file format. The rhdf5 package is thus suited for the
8776 exchange of large and/or complex datasets between R and other software
8777 package, and for letting R applications work on datasets that are larger than
8778 the available RAM.")
8779 (license license:artistic2.0)))
8780
8781 (define-public r-annotationfilter
8782 (package
8783 (name "r-annotationfilter")
8784 (version "1.2.0")
8785 (source (origin
8786 (method url-fetch)
8787 (uri (bioconductor-uri "AnnotationFilter" version))
8788 (sha256
8789 (base32
8790 "04zf864c1fvdlaay2r5cn30fc1n5i3czh31fs62qlrvs61wjiscs"))))
8791 (properties
8792 `((upstream-name . "AnnotationFilter")))
8793 (build-system r-build-system)
8794 (propagated-inputs
8795 `(("r-genomicranges" ,r-genomicranges)
8796 ("r-lazyeval" ,r-lazyeval)))
8797 (home-page "https://github.com/Bioconductor/AnnotationFilter")
8798 (synopsis "Facilities for filtering Bioconductor annotation resources")
8799 (description
8800 "This package provides classes and other infrastructure to implement
8801 filters for manipulating Bioconductor annotation resources. The filters are
8802 used by @code{ensembldb}, @code{Organism.dplyr}, and other packages.")
8803 (license license:artistic2.0)))
8804
8805 (define-public emboss
8806 (package
8807 (name "emboss")
8808 (version "6.5.7")
8809 (source (origin
8810 (method url-fetch)
8811 (uri (string-append "ftp://emboss.open-bio.org/pub/EMBOSS/old/"
8812 (version-major+minor version) ".0/"
8813 "EMBOSS-" version ".tar.gz"))
8814 (sha256
8815 (base32
8816 "0vsmz96gc411yj2iyzdrsmg4l2n1nhgmp7vrgzlxx3xixv9xbf0q"))))
8817 (build-system gnu-build-system)
8818 (arguments
8819 `(#:configure-flags
8820 (list (string-append "--with-hpdf="
8821 (assoc-ref %build-inputs "libharu")))
8822 #:phases
8823 (modify-phases %standard-phases
8824 (add-after 'unpack 'fix-checks
8825 (lambda _
8826 ;; The PNGDRIVER tests check for the presence of libgd, libpng
8827 ;; and zlib, but assume that they are all found at the same
8828 ;; prefix.
8829 (substitute* "configure.in"
8830 (("CHECK_PNGDRIVER")
8831 "LIBS=\"$LIBS -lgd -lpng -lz -lm\"
8832 AC_DEFINE([PLD_png], [1], [Define to 1 if PNG support is available])
8833 AM_CONDITIONAL(AMPNG, true)"))
8834 #t))
8835 (add-after 'fix-checks 'disable-update-check
8836 (lambda _
8837 ;; At build time there is no connection to the Internet, so
8838 ;; looking for updates will not work.
8839 (substitute* "Makefile.am"
8840 (("\\$\\(bindir\\)/embossupdate") ""))
8841 #t))
8842 (add-after 'disable-update-check 'autogen
8843 (lambda _ (zero? (system* "autoreconf" "-vif")))))))
8844 (inputs
8845 `(("perl" ,perl)
8846 ("libpng" ,libpng)
8847 ("gd" ,gd)
8848 ("libx11" ,libx11)
8849 ("libharu" ,libharu)
8850 ("zlib" ,zlib)))
8851 (native-inputs
8852 `(("autoconf" ,autoconf)
8853 ("automake" ,automake)
8854 ("libtool" ,libtool)
8855 ("pkg-config" ,pkg-config)))
8856 (home-page "http://emboss.sourceforge.net")
8857 (synopsis "Molecular biology analysis suite")
8858 (description "EMBOSS is the \"European Molecular Biology Open Software
8859 Suite\". EMBOSS is an analysis package specially developed for the needs of
8860 the molecular biology (e.g. EMBnet) user community. The software
8861 automatically copes with data in a variety of formats and even allows
8862 transparent retrieval of sequence data from the web. It also provides a
8863 number of libraries for the development of software in the field of molecular
8864 biology. EMBOSS also integrates a range of currently available packages and
8865 tools for sequence analysis into a seamless whole.")
8866 (license license:gpl2+)))
8867
8868 (define-public bits
8869 (let ((revision "1")
8870 (commit "3cc4567896d9d6442923da944beb704750a08d2d"))
8871 (package
8872 (name "bits")
8873 ;; The version is 2.13.0 even though no release archives have been
8874 ;; published as yet.
8875 (version (string-append "2.13.0-" revision "." (string-take commit 9)))
8876 (source (origin
8877 (method git-fetch)
8878 (uri (git-reference
8879 (url "https://github.com/arq5x/bits.git")
8880 (commit commit)))
8881 (file-name (string-append name "-" version "-checkout"))
8882 (sha256
8883 (base32
8884 "17n2kffk4kmhivd8c98g2vr6y1s23vbg4sxlxs689wni66797hbs"))))
8885 (build-system gnu-build-system)
8886 (arguments
8887 `(#:tests? #f ;no tests included
8888 #:phases
8889 (modify-phases %standard-phases
8890 (delete 'configure)
8891 (add-after 'unpack 'remove-cuda
8892 (lambda _
8893 (substitute* "Makefile"
8894 ((".*_cuda") "")
8895 (("(bits_test_intersections) \\\\" _ match) match))
8896 #t))
8897 (replace 'install
8898 (lambda* (#:key outputs #:allow-other-keys)
8899 (copy-recursively
8900 "bin" (string-append (assoc-ref outputs "out") "/bin"))
8901 #t)))))
8902 (inputs
8903 `(("gsl" ,gsl)
8904 ("zlib" ,zlib)))
8905 (home-page "https://github.com/arq5x/bits")
8906 (synopsis "Implementation of binary interval search algorithm")
8907 (description "This package provides an implementation of the
8908 BITS (Binary Interval Search) algorithm, an approach to interval set
8909 intersection. It is especially suited for the comparison of diverse genomic
8910 datasets and the exploration of large datasets of genome
8911 intervals (e.g. genes, sequence alignments).")
8912 (license license:gpl2))))
8913
8914 (define-public piranha
8915 ;; There is no release tarball for the latest version. The latest commit is
8916 ;; older than one year at the time of this writing.
8917 (let ((revision "1")
8918 (commit "0466d364b71117d01e4471b74c514436cc281233"))
8919 (package
8920 (name "piranha")
8921 (version (string-append "1.2.1-" revision "." (string-take commit 9)))
8922 (source (origin
8923 (method git-fetch)
8924 (uri (git-reference
8925 (url "https://github.com/smithlabcode/piranha.git")
8926 (commit commit)))
8927 (sha256
8928 (base32
8929 "117dc0zf20c61jam69sk4abl57ah6yi6i7qra7d7y5zrbgk12q5n"))))
8930 (build-system gnu-build-system)
8931 (arguments
8932 `(#:test-target "test"
8933 #:phases
8934 (modify-phases %standard-phases
8935 (add-after 'unpack 'copy-smithlab-cpp
8936 (lambda* (#:key inputs #:allow-other-keys)
8937 (for-each (lambda (file)
8938 (install-file file "./src/smithlab_cpp/"))
8939 (find-files (assoc-ref inputs "smithlab-cpp")))
8940 #t))
8941 (add-after 'install 'install-to-store
8942 (lambda* (#:key outputs #:allow-other-keys)
8943 (let* ((out (assoc-ref outputs "out"))
8944 (bin (string-append out "/bin")))
8945 (for-each (lambda (file)
8946 (install-file file bin))
8947 (find-files "bin" ".*")))
8948 #t)))
8949 #:configure-flags
8950 (list (string-append "--with-bam_tools_headers="
8951 (assoc-ref %build-inputs "bamtools") "/include/bamtools")
8952 (string-append "--with-bam_tools_library="
8953 (assoc-ref %build-inputs "bamtools") "/lib/bamtools"))))
8954 (inputs
8955 `(("bamtools" ,bamtools)
8956 ("samtools" ,samtools-0.1)
8957 ("gsl" ,gsl)
8958 ("smithlab-cpp"
8959 ,(let ((commit "3723e2db438c51501d0423429ff396c3035ba46a"))
8960 (origin
8961 (method git-fetch)
8962 (uri (git-reference
8963 (url "https://github.com/smithlabcode/smithlab_cpp.git")
8964 (commit commit)))
8965 (file-name (string-append "smithlab_cpp-" commit "-checkout"))
8966 (sha256
8967 (base32
8968 "0l4gvbwslw5ngziskja41c00x1r06l3yidv7y0xw9djibhykzy0g")))))))
8969 (native-inputs
8970 `(("python" ,python-2)))
8971 (home-page "https://github.com/smithlabcode/piranha")
8972 (synopsis "Peak-caller for CLIP-seq and RIP-seq data")
8973 (description
8974 "Piranha is a peak-caller for genomic data produced by CLIP-seq and
8975 RIP-seq experiments. It takes input in BED or BAM format and identifies
8976 regions of statistically significant read enrichment. Additional covariates
8977 may optionally be provided to further inform the peak-calling process.")
8978 (license license:gpl3+))))
8979
8980 (define-public pepr
8981 (package
8982 (name "pepr")
8983 (version "1.0.9")
8984 (source (origin
8985 (method url-fetch)
8986 (uri (string-append "https://pypi.python.org/packages/source/P"
8987 "/PePr/PePr-" version ".tar.gz"))
8988 (sha256
8989 (base32
8990 "0qxjfdpl1b1y53nccws2d85f6k74zwmx8y8sd9rszcqhfayx6gdx"))))
8991 (build-system python-build-system)
8992 (arguments
8993 `(#:python ,python-2 ; python2 only
8994 #:tests? #f)) ; no tests included
8995 (propagated-inputs
8996 `(("python2-numpy" ,python2-numpy)
8997 ("python2-scipy" ,python2-scipy)
8998 ("python2-pysam" ,python2-pysam)))
8999 (home-page "https://github.com/shawnzhangyx/PePr")
9000 (synopsis "Peak-calling and prioritization pipeline for ChIP-Seq data")
9001 (description
9002 "PePr is a ChIP-Seq peak calling or differential binding analysis tool
9003 that is primarily designed for data with biological replicates. It uses a
9004 negative binomial distribution to model the read counts among the samples in
9005 the same group, and look for consistent differences between ChIP and control
9006 group or two ChIP groups run under different conditions.")
9007 (license license:gpl3+)))
9008
9009 (define-public filevercmp
9010 (let ((commit "1a9b779b93d0b244040274794d402106907b71b7"))
9011 (package
9012 (name "filevercmp")
9013 (version (string-append "0-1." (string-take commit 7)))
9014 (source (origin
9015 (method url-fetch)
9016 (uri (string-append "https://github.com/ekg/filevercmp/archive/"
9017 commit ".tar.gz"))
9018 (file-name (string-append name "-" version ".tar.gz"))
9019 (sha256
9020 (base32 "0yp5jswf5j2pqc6517x277s4s6h1ss99v57kxw9gy0jkfl3yh450"))))
9021 (build-system gnu-build-system)
9022 (arguments
9023 `(#:tests? #f ; There are no tests to run.
9024 #:phases
9025 (modify-phases %standard-phases
9026 (delete 'configure) ; There is no configure phase.
9027 (replace 'install
9028 (lambda* (#:key outputs #:allow-other-keys)
9029 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
9030 (install-file "filevercmp" bin)))))))
9031 (home-page "https://github.com/ekg/filevercmp")
9032 (synopsis "This program compares version strings")
9033 (description "This program compares version strings. It intends to be a
9034 replacement for strverscmp.")
9035 (license license:gpl3+))))
9036
9037 (define-public multiqc
9038 (package
9039 (name "multiqc")
9040 (version "1.4")
9041 (source
9042 (origin
9043 (method url-fetch)
9044 (uri (pypi-uri "multiqc" version))
9045 (sha256
9046 (base32
9047 "0ihx4rzmsfphv4byn05qv6f1y95g2dxs6viwziipl4wjk96acgm8"))))
9048 (build-system python-build-system)
9049 (propagated-inputs
9050 `(("python-jinja2" ,python-jinja2)
9051 ("python-simplejson" ,python-simplejson)
9052 ("python-pyyaml" ,python-pyyaml)
9053 ("python-click" ,python-click)
9054 ("python-spectra" ,python-spectra)
9055 ("python-requests" ,python-requests)
9056 ("python-markdown" ,python-markdown)
9057 ("python-lzstring" ,python-lzstring)
9058 ("python-matplotlib" ,python-matplotlib)
9059 ("python-numpy" ,python-numpy)
9060 ;; MultQC checks for the presence of nose at runtime.
9061 ("python-nose" ,python-nose)))
9062 (home-page "http://multiqc.info")
9063 (synopsis "Aggregate bioinformatics analysis reports")
9064 (description
9065 "MultiQC is a tool to aggregate bioinformatics results across many
9066 samples into a single report. It contains modules for a large number of
9067 common bioinformatics tools.")
9068 (license license:gpl3+)))
9069
9070 (define-public r-chipseq
9071 (package
9072 (name "r-chipseq")
9073 (version "1.28.0")
9074 (source
9075 (origin
9076 (method url-fetch)
9077 (uri (bioconductor-uri "chipseq" version))
9078 (sha256
9079 (base32
9080 "1ymcq77krwjzrkzzcw7i9909cmkqa7c0675z9wzvrrk81hgdssfq"))))
9081 (build-system r-build-system)
9082 (propagated-inputs
9083 `(("r-biocgenerics" ,r-biocgenerics)
9084 ("r-genomicranges" ,r-genomicranges)
9085 ("r-iranges" ,r-iranges)
9086 ("r-lattice" ,r-lattice)
9087 ("r-s4vectors" ,r-s4vectors)
9088 ("r-shortread" ,r-shortread)))
9089 (home-page "https://bioconductor.org/packages/chipseq")
9090 (synopsis "Package for analyzing ChIPseq data")
9091 (description
9092 "This package provides tools for processing short read data from ChIPseq
9093 experiments.")
9094 (license license:artistic2.0)))
9095
9096 (define-public r-copyhelper
9097 (package
9098 (name "r-copyhelper")
9099 (version "1.6.0")
9100 (source
9101 (origin
9102 (method url-fetch)
9103 (uri (string-append "https://bioconductor.org/packages/release/"
9104 "data/experiment/src/contrib/CopyhelpeR_"
9105 version ".tar.gz"))
9106 (sha256
9107 (base32
9108 "0x7cyynjmxls9as2gg0iyp9x5fpalxmdjq914ss7i84i9zyk5bhq"))))
9109 (properties `((upstream-name . "CopyhelpeR")))
9110 (build-system r-build-system)
9111 (home-page "https://bioconductor.org/packages/CopyhelpeR/")
9112 (synopsis "Helper files for CopywriteR")
9113 (description
9114 "This package contains the helper files that are required to run the
9115 Bioconductor package CopywriteR. It contains pre-assembled 1kb bin GC-content
9116 and mappability files for the reference genomes hg18, hg19, hg38, mm9 and
9117 mm10. In addition, it contains a blacklist filter to remove regions that
9118 display copy number variation. Files are stored as GRanges objects from the
9119 GenomicRanges Bioconductor package.")
9120 (license license:gpl2)))
9121
9122 (define-public r-copywriter
9123 (package
9124 (name "r-copywriter")
9125 (version "2.10.0")
9126 (source
9127 (origin
9128 (method url-fetch)
9129 (uri (bioconductor-uri "CopywriteR" version))
9130 (sha256
9131 (base32
9132 "17fy2lc5yf3nh6v077kv87h53n263hqz2540lzrl0vjiqrl2plca"))))
9133 (properties `((upstream-name . "CopywriteR")))
9134 (build-system r-build-system)
9135 (propagated-inputs
9136 `(("r-biocparallel" ,r-biocparallel)
9137 ("r-chipseq" ,r-chipseq)
9138 ("r-copyhelper" ,r-copyhelper)
9139 ("r-data-table" ,r-data-table)
9140 ("r-dnacopy" ,r-dnacopy)
9141 ("r-futile-logger" ,r-futile-logger)
9142 ("r-genomeinfodb" ,r-genomeinfodb)
9143 ("r-genomicalignments" ,r-genomicalignments)
9144 ("r-genomicranges" ,r-genomicranges)
9145 ("r-gtools" ,r-gtools)
9146 ("r-iranges" ,r-iranges)
9147 ("r-matrixstats" ,r-matrixstats)
9148 ("r-rsamtools" ,r-rsamtools)
9149 ("r-s4vectors" ,r-s4vectors)))
9150 (home-page "https://github.com/PeeperLab/CopywriteR")
9151 (synopsis "Copy number information from targeted sequencing")
9152 (description
9153 "CopywriteR extracts DNA copy number information from targeted sequencing
9154 by utilizing off-target reads. It allows for extracting uniformly distributed
9155 copy number information, can be used without reference, and can be applied to
9156 sequencing data obtained from various techniques including chromatin
9157 immunoprecipitation and target enrichment on small gene panels. Thereby,
9158 CopywriteR constitutes a widely applicable alternative to available copy
9159 number detection tools.")
9160 (license license:gpl2)))
9161
9162 (define-public r-methylkit
9163 (package
9164 (name "r-methylkit")
9165 (version "1.4.1")
9166 (source (origin
9167 (method url-fetch)
9168 (uri (bioconductor-uri "methylKit" version))
9169 (sha256
9170 (base32
9171 "1k0nfn9318sgwm4z963bhnbp4c3zv85v3f9886vc5hgaisr0yvai"))))
9172 (properties `((upstream-name . "methylKit")))
9173 (build-system r-build-system)
9174 (propagated-inputs
9175 `(("r-data-table" ,r-data-table)
9176 ("r-emdbook" ,r-emdbook)
9177 ("r-fastseg" ,r-fastseg)
9178 ("r-genomeinfodb" ,r-genomeinfodb)
9179 ("r-genomicranges" ,r-genomicranges)
9180 ("r-gtools" ,r-gtools)
9181 ("r-iranges" ,r-iranges)
9182 ("r-kernsmooth" ,r-kernsmooth)
9183 ("r-limma" ,r-limma)
9184 ("r-mclust" ,r-mclust)
9185 ("r-qvalue" ,r-qvalue)
9186 ("r-r-utils" ,r-r-utils)
9187 ("r-rcpp" ,r-rcpp)
9188 ("r-rhtslib" ,r-rhtslib)
9189 ("r-rsamtools" ,r-rsamtools)
9190 ("r-rtracklayer" ,r-rtracklayer)
9191 ("r-s4vectors" ,r-s4vectors)
9192 ("r-zlibbioc" ,r-zlibbioc)))
9193 (inputs
9194 `(("zlib" ,zlib)))
9195 (home-page "https://github.com/al2na/methylKit")
9196 (synopsis
9197 "DNA methylation analysis from high-throughput bisulfite sequencing results")
9198 (description
9199 "MethylKit is an R package for DNA methylation analysis and annotation
9200 from high-throughput bisulfite sequencing. The package is designed to deal
9201 with sequencing data from @dfn{Reduced representation bisulfite
9202 sequencing} (RRBS) and its variants, but also target-capture methods and whole
9203 genome bisulfite sequencing. It also has functions to analyze base-pair
9204 resolution 5hmC data from experimental protocols such as oxBS-Seq and
9205 TAB-Seq.")
9206 (license license:artistic2.0)))
9207
9208 (define-public r-sva
9209 (package
9210 (name "r-sva")
9211 (version "3.26.0")
9212 (source
9213 (origin
9214 (method url-fetch)
9215 (uri (bioconductor-uri "sva" version))
9216 (sha256
9217 (base32
9218 "0q5xb68wfcnchy8rkv5ma67pmz1i91lsnvmwmj8f1c3w4xan3pgw"))))
9219 (build-system r-build-system)
9220 (propagated-inputs
9221 `(("r-genefilter" ,r-genefilter)
9222 ("r-mgcv" ,r-mgcv)
9223 ("r-biocparallel" ,r-biocparallel)
9224 ("r-matrixstats" ,r-matrixstats)
9225 ("r-limma" ,r-limma)))
9226 (home-page "https://bioconductor.org/packages/sva")
9227 (synopsis "Surrogate variable analysis")
9228 (description
9229 "This package contains functions for removing batch effects and other
9230 unwanted variation in high-throughput experiment. It also contains functions
9231 for identifying and building surrogate variables for high-dimensional data
9232 sets. Surrogate variables are covariates constructed directly from
9233 high-dimensional data like gene expression/RNA sequencing/methylation/brain
9234 imaging data that can be used in subsequent analyses to adjust for unknown,
9235 unmodeled, or latent sources of noise.")
9236 (license license:artistic2.0)))
9237
9238 (define-public r-seqminer
9239 (package
9240 (name "r-seqminer")
9241 (version "6.0")
9242 (source
9243 (origin
9244 (method url-fetch)
9245 (uri (cran-uri "seqminer" version))
9246 (sha256
9247 (base32
9248 "057j1l6dip35l1aivilapl2zv9db677b3di2pb3sfgq2sxg0ps3l"))))
9249 (build-system r-build-system)
9250 (inputs
9251 `(("zlib" ,zlib)))
9252 (home-page "http://seqminer.genomic.codes")
9253 (synopsis "Read nucleotide sequence data (VCF, BCF, and METAL formats)")
9254 (description
9255 "This package provides tools to integrate nucleotide sequencing
9256 data (variant call format, e.g. VCF or BCF) or meta-analysis results in R.")
9257 ;; Any version of the GPL is acceptable
9258 (license (list license:gpl2+ license:gpl3+))))
9259
9260 (define-public r-raremetals2
9261 (package
9262 (name "r-raremetals2")
9263 (version "0.1")
9264 (source
9265 (origin
9266 (method url-fetch)
9267 (uri (string-append "http://genome.sph.umich.edu/w/images/"
9268 "b/b7/RareMETALS2_" version ".tar.gz"))
9269 (sha256
9270 (base32
9271 "0z5ljcgvnm06ja9lm85a3cniq7slxcy37aqqkxrdidr79an5fs4s"))))
9272 (properties `((upstream-name . "RareMETALS2")))
9273 (build-system r-build-system)
9274 (propagated-inputs
9275 `(("r-seqminer" ,r-seqminer)
9276 ("r-mvtnorm" ,r-mvtnorm)
9277 ("r-mass" ,r-mass)
9278 ("r-compquadform" ,r-compquadform)
9279 ("r-getopt" ,r-getopt)))
9280 (home-page "http://genome.sph.umich.edu/wiki/RareMETALS2")
9281 (synopsis "Analyze gene-level association tests for binary trait")
9282 (description
9283 "The R package rareMETALS2 is an extension of the R package rareMETALS.
9284 It was designed to meta-analyze gene-level association tests for binary trait.
9285 While rareMETALS offers a near-complete solution for meta-analysis of
9286 gene-level tests for quantitative trait, it does not offer the optimal
9287 solution for binary trait. The package rareMETALS2 offers improved features
9288 for analyzing gene-level association tests in meta-analyses for binary
9289 trait.")
9290 (license license:gpl3)))
9291
9292 (define-public r-maldiquant
9293 (package
9294 (name "r-maldiquant")
9295 (version "1.17")
9296 (source
9297 (origin
9298 (method url-fetch)
9299 (uri (cran-uri "MALDIquant" version))
9300 (sha256
9301 (base32
9302 "047s6007ydc38x8wm027mlb4mngz15n0d4238fr8h43wyll5zy0z"))))
9303 (properties `((upstream-name . "MALDIquant")))
9304 (build-system r-build-system)
9305 (home-page "https://cran.r-project.org/web/packages/MALDIquant")
9306 (synopsis "Quantitative analysis of mass spectrometry data")
9307 (description
9308 "This package provides a complete analysis pipeline for matrix-assisted
9309 laser desorption/ionization-time-of-flight (MALDI-TOF) and other
9310 two-dimensional mass spectrometry data. In addition to commonly used plotting
9311 and processing methods it includes distinctive features, namely baseline
9312 subtraction methods such as morphological filters (TopHat) or the
9313 statistics-sensitive non-linear iterative peak-clipping algorithm (SNIP), peak
9314 alignment using warping functions, handling of replicated measurements as well
9315 as allowing spectra with different resolutions.")
9316 (license license:gpl3+)))
9317
9318 (define-public r-protgenerics
9319 (package
9320 (name "r-protgenerics")
9321 (version "1.10.0")
9322 (source
9323 (origin
9324 (method url-fetch)
9325 (uri (bioconductor-uri "ProtGenerics" version))
9326 (sha256
9327 (base32
9328 "16ijp50448wnabp43klx943rhdvh7x45hvy7cnpq1s4dckxhhyni"))))
9329 (properties `((upstream-name . "ProtGenerics")))
9330 (build-system r-build-system)
9331 (home-page "https://github.com/lgatto/ProtGenerics")
9332 (synopsis "S4 generic functions for proteomics infrastructure")
9333 (description
9334 "This package provides S4 generic functions needed by Bioconductor
9335 proteomics packages.")
9336 (license license:artistic2.0)))
9337
9338 (define-public r-mzr
9339 (package
9340 (name "r-mzr")
9341 (version "2.12.0")
9342 (source
9343 (origin
9344 (method url-fetch)
9345 (uri (bioconductor-uri "mzR" version))
9346 (sha256
9347 (base32
9348 "1x3gp30sfxz2v3k3swih9kff9b2rvk7hzhnlkp6ywlnn2wgb0q8c"))
9349 (modules '((guix build utils)))
9350 (snippet
9351 '(begin
9352 (delete-file-recursively "src/boost")
9353 #t))))
9354 (properties `((upstream-name . "mzR")))
9355 (build-system r-build-system)
9356 (arguments
9357 `(#:phases
9358 (modify-phases %standard-phases
9359 (add-after 'unpack 'use-system-boost
9360 (lambda _
9361 (substitute* "src/Makevars"
9362 (("\\./boost/libs.*") "")
9363 (("ARCH_OBJS=" line)
9364 (string-append line
9365 "\nARCH_LIBS=-lboost_system -lboost_regex \
9366 -lboost_iostreams -lboost_thread -lboost_filesystem -lboost_chrono\n")))
9367 #t)))))
9368 (inputs
9369 `(("boost" ,boost) ; use this instead of the bundled boost sources
9370 ("netcdf" ,netcdf)))
9371 (propagated-inputs
9372 `(("r-biobase" ,r-biobase)
9373 ("r-biocgenerics" ,r-biocgenerics)
9374 ("r-protgenerics" ,r-protgenerics)
9375 ("r-rcpp" ,r-rcpp)
9376 ("r-zlibbioc" ,r-zlibbioc)))
9377 (home-page "https://github.com/sneumann/mzR/")
9378 (synopsis "Parser for mass spectrometry data files")
9379 (description
9380 "The mzR package provides a unified API to the common file formats and
9381 parsers available for mass spectrometry data. It comes with a wrapper for the
9382 ISB random access parser for mass spectrometry mzXML, mzData and mzML files.
9383 The package contains the original code written by the ISB, and a subset of the
9384 proteowizard library for mzML and mzIdentML. The netCDF reading code has
9385 previously been used in XCMS.")
9386 (license license:artistic2.0)))
9387
9388 (define-public r-affyio
9389 (package
9390 (name "r-affyio")
9391 (version "1.48.0")
9392 (source
9393 (origin
9394 (method url-fetch)
9395 (uri (bioconductor-uri "affyio" version))
9396 (sha256
9397 (base32
9398 "1pzzp3d3dbmyf34gvivfiprkpscn36rgvhrq853a1d3avcwr5ak9"))))
9399 (build-system r-build-system)
9400 (propagated-inputs
9401 `(("r-zlibbioc" ,r-zlibbioc)))
9402 (inputs
9403 `(("zlib" ,zlib)))
9404 (home-page "https://github.com/bmbolstad/affyio")
9405 (synopsis "Tools for parsing Affymetrix data files")
9406 (description
9407 "This package provides routines for parsing Affymetrix data files based
9408 upon file format information. The primary focus is on accessing the CEL and
9409 CDF file formats.")
9410 (license license:lgpl2.0+)))
9411
9412 (define-public r-affy
9413 (package
9414 (name "r-affy")
9415 (version "1.56.0")
9416 (source
9417 (origin
9418 (method url-fetch)
9419 (uri (bioconductor-uri "affy" version))
9420 (sha256
9421 (base32
9422 "0jmbkimma5ffsdkk3xp03g4lpz84gd95nkqakif2nqq6wmx0syrj"))))
9423 (build-system r-build-system)
9424 (propagated-inputs
9425 `(("r-affyio" ,r-affyio)
9426 ("r-biobase" ,r-biobase)
9427 ("r-biocgenerics" ,r-biocgenerics)
9428 ("r-biocinstaller" ,r-biocinstaller)
9429 ("r-preprocesscore" ,r-preprocesscore)
9430 ("r-zlibbioc" ,r-zlibbioc)))
9431 (home-page "https://bioconductor.org/packages/affy")
9432 (synopsis "Methods for affymetrix oligonucleotide arrays")
9433 (description
9434 "This package contains functions for exploratory oligonucleotide array
9435 analysis.")
9436 (license license:lgpl2.0+)))
9437
9438 (define-public r-vsn
9439 (package
9440 (name "r-vsn")
9441 (version "3.46.0")
9442 (source
9443 (origin
9444 (method url-fetch)
9445 (uri (bioconductor-uri "vsn" version))
9446 (sha256
9447 (base32
9448 "18y62phzirj75gg6v5l41jwybmk23ia6w7qhch0kxc4bl2rysw6j"))))
9449 (build-system r-build-system)
9450 (propagated-inputs
9451 `(("r-affy" ,r-affy)
9452 ("r-biobase" ,r-biobase)
9453 ("r-ggplot2" ,r-ggplot2)
9454 ("r-lattice" ,r-lattice)
9455 ("r-limma" ,r-limma)))
9456 (home-page "https://bioconductor.org/packages/release/bioc/html/vsn.html")
9457 (synopsis "Variance stabilization and calibration for microarray data")
9458 (description
9459 "The package implements a method for normalising microarray intensities,
9460 and works for single- and multiple-color arrays. It can also be used for data
9461 from other technologies, as long as they have similar format. The method uses
9462 a robust variant of the maximum-likelihood estimator for an
9463 additive-multiplicative error model and affine calibration. The model
9464 incorporates data calibration step (a.k.a. normalization), a model for the
9465 dependence of the variance on the mean intensity and a variance stabilizing
9466 data transformation. Differences between transformed intensities are
9467 analogous to \"normalized log-ratios\". However, in contrast to the latter,
9468 their variance is independent of the mean, and they are usually more sensitive
9469 and specific in detecting differential transcription.")
9470 (license license:artistic2.0)))
9471
9472 (define-public r-mzid
9473 (package
9474 (name "r-mzid")
9475 (version "1.16.0")
9476 (source
9477 (origin
9478 (method url-fetch)
9479 (uri (bioconductor-uri "mzID" version))
9480 (sha256
9481 (base32
9482 "0yk70dka56zd8w62f03ggx3mandj91gfa767h9ajj0sd3mjmfqb9"))))
9483 (properties `((upstream-name . "mzID")))
9484 (build-system r-build-system)
9485 (propagated-inputs
9486 `(("r-doparallel" ,r-doparallel)
9487 ("r-foreach" ,r-foreach)
9488 ("r-iterators" ,r-iterators)
9489 ("r-plyr" ,r-plyr)
9490 ("r-protgenerics" ,r-protgenerics)
9491 ("r-rcpp" ,r-rcpp)
9492 ("r-xml" ,r-xml)))
9493 (home-page "https://bioconductor.org/packages/mzID")
9494 (synopsis "Parser for mzIdentML files")
9495 (description
9496 "This package provides a parser for mzIdentML files implemented using the
9497 XML package. The parser tries to be general and able to handle all types of
9498 mzIdentML files with the drawback of having less pretty output than a vendor
9499 specific parser.")
9500 (license license:gpl2+)))
9501
9502 (define-public r-pcamethods
9503 (package
9504 (name "r-pcamethods")
9505 (version "1.70.0")
9506 (source
9507 (origin
9508 (method url-fetch)
9509 (uri (bioconductor-uri "pcaMethods" version))
9510 (sha256
9511 (base32
9512 "0ii235g0x0492kh8cfrf28ni0b6vd6fh7kizkqmczzqggd6b1bk8"))))
9513 (properties `((upstream-name . "pcaMethods")))
9514 (build-system r-build-system)
9515 (propagated-inputs
9516 `(("r-biobase" ,r-biobase)
9517 ("r-biocgenerics" ,r-biocgenerics)
9518 ("r-mass" ,r-mass)
9519 ("r-rcpp" ,r-rcpp)))
9520 (home-page "https://github.com/hredestig/pcamethods")
9521 (synopsis "Collection of PCA methods")
9522 (description
9523 "This package provides Bayesian PCA, Probabilistic PCA, Nipals PCA,
9524 Inverse Non-Linear PCA and the conventional SVD PCA. A cluster based method
9525 for missing value estimation is included for comparison. BPCA, PPCA and
9526 NipalsPCA may be used to perform PCA on incomplete data as well as for
9527 accurate missing value estimation. A set of methods for printing and plotting
9528 the results is also provided. All PCA methods make use of the same data
9529 structure (pcaRes) to provide a common interface to the PCA results.")
9530 (license license:gpl3+)))
9531
9532 (define-public r-msnbase
9533 (package
9534 (name "r-msnbase")
9535 (version "2.4.2")
9536 (source
9537 (origin
9538 (method url-fetch)
9539 (uri (bioconductor-uri "MSnbase" version))
9540 (sha256
9541 (base32
9542 "1ig64bf881p118dwqfr0ry41m7yhnyv165smv8fdwfv7sb6sagif"))))
9543 (properties `((upstream-name . "MSnbase")))
9544 (build-system r-build-system)
9545 (propagated-inputs
9546 `(("r-affy" ,r-affy)
9547 ("r-biobase" ,r-biobase)
9548 ("r-biocgenerics" ,r-biocgenerics)
9549 ("r-biocparallel" ,r-biocparallel)
9550 ("r-digest" ,r-digest)
9551 ("r-ggplot2" ,r-ggplot2)
9552 ("r-impute" ,r-impute)
9553 ("r-iranges" ,r-iranges)
9554 ("r-lattice" ,r-lattice)
9555 ("r-maldiquant" ,r-maldiquant)
9556 ("r-mzid" ,r-mzid)
9557 ("r-mzr" ,r-mzr)
9558 ("r-pcamethods" ,r-pcamethods)
9559 ("r-plyr" ,r-plyr)
9560 ("r-preprocesscore" ,r-preprocesscore)
9561 ("r-protgenerics" ,r-protgenerics)
9562 ("r-rcpp" ,r-rcpp)
9563 ("r-s4vectors" ,r-s4vectors)
9564 ("r-vsn" ,r-vsn)
9565 ("r-xml" ,r-xml)))
9566 (home-page "https://github.com/lgatto/MSnbase")
9567 (synopsis "Base functions and classes for MS-based proteomics")
9568 (description
9569 "This package provides basic plotting, data manipulation and processing
9570 of mass spectrometry based proteomics data.")
9571 (license license:artistic2.0)))
9572
9573 (define-public r-msnid
9574 (package
9575 (name "r-msnid")
9576 (version "1.12.1")
9577 (source
9578 (origin
9579 (method url-fetch)
9580 (uri (bioconductor-uri "MSnID" version))
9581 (sha256
9582 (base32
9583 "1zw508kk4f8brg69674wp18gqkpx2kpya5f6x9cl3qng7v4h5pxx"))))
9584 (properties `((upstream-name . "MSnID")))
9585 (build-system r-build-system)
9586 (propagated-inputs
9587 `(("r-biobase" ,r-biobase)
9588 ("r-data-table" ,r-data-table)
9589 ("r-doparallel" ,r-doparallel)
9590 ("r-dplyr" ,r-dplyr)
9591 ("r-foreach" ,r-foreach)
9592 ("r-iterators" ,r-iterators)
9593 ("r-msnbase" ,r-msnbase)
9594 ("r-mzid" ,r-mzid)
9595 ("r-mzr" ,r-mzr)
9596 ("r-protgenerics" ,r-protgenerics)
9597 ("r-r-cache" ,r-r-cache)
9598 ("r-rcpp" ,r-rcpp)
9599 ("r-reshape2" ,r-reshape2)))
9600 (home-page "https://bioconductor.org/packages/MSnID")
9601 (synopsis "Utilities for LC-MSn proteomics identifications")
9602 (description
9603 "This package extracts @dfn{tandem mass spectrometry} (MS/MS) ID data
9604 from mzIdentML (leveraging the mzID package) or text files. After collating
9605 the search results from multiple datasets it assesses their identification
9606 quality and optimize filtering criteria to achieve the maximum number of
9607 identifications while not exceeding a specified false discovery rate. It also
9608 contains a number of utilities to explore the MS/MS results and assess missed
9609 and irregular enzymatic cleavages, mass measurement accuracy, etc.")
9610 (license license:artistic2.0)))
9611
9612 (define-public r-seurat
9613 (package
9614 (name "r-seurat")
9615 (version "2.2.1")
9616 (source (origin
9617 (method url-fetch)
9618 (uri (cran-uri "Seurat" version))
9619 (sha256
9620 (base32
9621 "1sr82nf38hq07avrfn8vlrzjq7dfm4pcr8l1nh6mnglcql2bk9z2"))
9622 ;; Delete pre-built jar.
9623 (snippet
9624 '(begin (delete-file "inst/java/ModularityOptimizer.jar")
9625 #t))))
9626 (properties `((upstream-name . "Seurat")))
9627 (build-system r-build-system)
9628 (arguments
9629 `(#:phases
9630 (modify-phases %standard-phases
9631 (add-after 'unpack 'build-jar
9632 (lambda* (#:key inputs #:allow-other-keys)
9633 (let ((classesdir "tmp-classes"))
9634 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
9635 (mkdir classesdir)
9636 (with-output-to-file "manifest"
9637 (lambda _
9638 (display "Manifest-Version: 1.0
9639 Main-Class: ModularityOptimizer\n")))
9640 (and (zero? (apply system* `("javac" "-d" ,classesdir
9641 ,@(find-files "java" "\\.java$"))))
9642 (zero? (system* "jar"
9643 "-cmf" "manifest"
9644 "inst/java/ModularityOptimizer.jar"
9645 "-C" classesdir ".")))))))))
9646 (native-inputs
9647 `(("jdk" ,icedtea "jdk")))
9648 (propagated-inputs
9649 `(("r-ape" ,r-ape)
9650 ("r-caret" ,r-caret)
9651 ("r-cowplot" ,r-cowplot)
9652 ("r-diffusionmap" ,r-diffusionmap)
9653 ("r-dplyr" ,r-dplyr)
9654 ("r-dtw" ,r-dtw)
9655 ("r-fnn" ,r-fnn)
9656 ("r-fpc" ,r-fpc)
9657 ("r-gdata" ,r-gdata)
9658 ("r-ggplot2" ,r-ggplot2)
9659 ("r-ggridges" ,r-ggridges)
9660 ("r-gplots" ,r-gplots)
9661 ("r-gridextra" ,r-gridextra)
9662 ("r-hmisc" ,r-hmisc)
9663 ("r-ica" ,r-ica)
9664 ("r-igraph" ,r-igraph)
9665 ("r-irlba" ,r-irlba)
9666 ("r-lars" ,r-lars)
9667 ("r-mass" ,r-mass)
9668 ("r-matrix" ,r-matrix)
9669 ("r-metap" ,r-metap)
9670 ("r-mixtools" ,r-mixtools)
9671 ("r-pbapply" ,r-pbapply)
9672 ("r-plotly" ,r-plotly)
9673 ("r-ranger" ,r-ranger)
9674 ("r-rcolorbrewer" ,r-rcolorbrewer)
9675 ("r-rcpp" ,r-rcpp)
9676 ("r-rcppeigen" ,r-rcppeigen)
9677 ("r-rcppprogress" ,r-rcppprogress)
9678 ("r-reshape2" ,r-reshape2)
9679 ("r-rocr" ,r-rocr)
9680 ("r-rtsne" ,r-rtsne)
9681 ("r-sdmtools" ,r-sdmtools)
9682 ("r-stringr" ,r-stringr)
9683 ("r-tclust" ,r-tclust)
9684 ("r-tidyr" ,r-tidyr)
9685 ("r-tsne" ,r-tsne)
9686 ("r-vgam" ,r-vgam)))
9687 (home-page "http://www.satijalab.org/seurat")
9688 (synopsis "Seurat is an R toolkit for single cell genomics")
9689 (description
9690 "This package is an R package designed for QC, analysis, and
9691 exploration of single cell RNA-seq data. It easily enables widely-used
9692 analytical techniques, including the identification of highly variable genes,
9693 dimensionality reduction; PCA, ICA, t-SNE, standard unsupervised clustering
9694 algorithms; density clustering, hierarchical clustering, k-means, and the
9695 discovery of differentially expressed genes and markers.")
9696 (license license:gpl3)))
9697
9698 (define-public r-aroma-light
9699 (package
9700 (name "r-aroma-light")
9701 (version "3.8.0")
9702 (source
9703 (origin
9704 (method url-fetch)
9705 (uri (bioconductor-uri "aroma.light" version))
9706 (sha256
9707 (base32
9708 "0crnk6851jwypqr5l5jcbbay0vi5vvdjyisaf6z2d69c39wmr6sc"))))
9709 (properties `((upstream-name . "aroma.light")))
9710 (build-system r-build-system)
9711 (propagated-inputs
9712 `(("r-matrixstats" ,r-matrixstats)
9713 ("r-r-methodss3" ,r-r-methodss3)
9714 ("r-r-oo" ,r-r-oo)
9715 ("r-r-utils" ,r-r-utils)))
9716 (home-page "https://github.com/HenrikBengtsson/aroma.light")
9717 (synopsis "Methods for normalization and visualization of microarray data")
9718 (description
9719 "This package provides methods for microarray analysis that take basic
9720 data types such as matrices and lists of vectors. These methods can be used
9721 standalone, be utilized in other packages, or be wrapped up in higher-level
9722 classes.")
9723 (license license:gpl2+)))
9724
9725 (define-public r-deseq
9726 (package
9727 (name "r-deseq")
9728 (version "1.30.0")
9729 (source
9730 (origin
9731 (method url-fetch)
9732 (uri (bioconductor-uri "DESeq" version))
9733 (sha256
9734 (base32
9735 "0mn5w3cy16iwwk8zxs7za6aa6cnrca75z0g45zd5zh1py5d7nfv9"))))
9736 (properties `((upstream-name . "DESeq")))
9737 (build-system r-build-system)
9738 (propagated-inputs
9739 `(("r-biobase" ,r-biobase)
9740 ("r-biocgenerics" ,r-biocgenerics)
9741 ("r-genefilter" ,r-genefilter)
9742 ("r-geneplotter" ,r-geneplotter)
9743 ("r-lattice" ,r-lattice)
9744 ("r-locfit" ,r-locfit)
9745 ("r-mass" ,r-mass)
9746 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9747 (home-page "http://www-huber.embl.de/users/anders/DESeq")
9748 (synopsis "Differential gene expression analysis")
9749 (description
9750 "This package provides tools for estimating variance-mean dependence in
9751 count data from high-throughput genetic sequencing assays and for testing for
9752 differential expression based on a model using the negative binomial
9753 distribution.")
9754 (license license:gpl3+)))
9755
9756 (define-public r-edaseq
9757 (package
9758 (name "r-edaseq")
9759 (version "2.12.0")
9760 (source
9761 (origin
9762 (method url-fetch)
9763 (uri (bioconductor-uri "EDASeq" version))
9764 (sha256
9765 (base32
9766 "07zm89zcivyn2261aq9grqmly8ji482kr9h9dyfknfdfrpv7jpwv"))))
9767 (properties `((upstream-name . "EDASeq")))
9768 (build-system r-build-system)
9769 (propagated-inputs
9770 `(("r-annotationdbi" ,r-annotationdbi)
9771 ("r-aroma-light" ,r-aroma-light)
9772 ("r-biobase" ,r-biobase)
9773 ("r-biocgenerics" ,r-biocgenerics)
9774 ("r-biomart" ,r-biomart)
9775 ("r-biostrings" ,r-biostrings)
9776 ("r-deseq" ,r-deseq)
9777 ("r-genomicfeatures" ,r-genomicfeatures)
9778 ("r-genomicranges" ,r-genomicranges)
9779 ("r-iranges" ,r-iranges)
9780 ("r-rsamtools" ,r-rsamtools)
9781 ("r-shortread" ,r-shortread)))
9782 (home-page "https://github.com/drisso/EDASeq")
9783 (synopsis "Exploratory data analysis and normalization for RNA-Seq")
9784 (description
9785 "This package provides support for numerical and graphical summaries of
9786 RNA-Seq genomic read data. Provided within-lane normalization procedures to
9787 adjust for GC-content effect (or other gene-level effects) on read counts:
9788 loess robust local regression, global-scaling, and full-quantile
9789 normalization. Between-lane normalization procedures to adjust for
9790 distributional differences between lanes (e.g., sequencing depth):
9791 global-scaling and full-quantile normalization.")
9792 (license license:artistic2.0)))
9793
9794 (define-public r-interactivedisplaybase
9795 (package
9796 (name "r-interactivedisplaybase")
9797 (version "1.16.0")
9798 (source
9799 (origin
9800 (method url-fetch)
9801 (uri (bioconductor-uri "interactiveDisplayBase" version))
9802 (sha256
9803 (base32
9804 "01yb945jqqimwjgriza6yy4dnp303cdirxrhl4hjyprfdlmnz5p5"))))
9805 (properties
9806 `((upstream-name . "interactiveDisplayBase")))
9807 (build-system r-build-system)
9808 (propagated-inputs
9809 `(("r-biocgenerics" ,r-biocgenerics)
9810 ("r-shiny" ,r-shiny)))
9811 (home-page "https://bioconductor.org/packages/interactiveDisplayBase")
9812 (synopsis "Base package for web displays of Bioconductor objects")
9813 (description
9814 "This package contains the basic methods needed to generate interactive
9815 Shiny-based display methods for Bioconductor objects.")
9816 (license license:artistic2.0)))
9817
9818 (define-public r-annotationhub
9819 (package
9820 (name "r-annotationhub")
9821 (version "2.10.1")
9822 (source
9823 (origin
9824 (method url-fetch)
9825 (uri (bioconductor-uri "AnnotationHub" version))
9826 (sha256
9827 (base32
9828 "14v8g44a6zg9j2rwn9x9y8509k0wr2cw8yccliz24glplb40wva4"))))
9829 (properties `((upstream-name . "AnnotationHub")))
9830 (build-system r-build-system)
9831 (propagated-inputs
9832 `(("r-annotationdbi" ,r-annotationdbi)
9833 ("r-biocgenerics" ,r-biocgenerics)
9834 ("r-biocinstaller" ,r-biocinstaller)
9835 ("r-curl" ,r-curl)
9836 ("r-httr" ,r-httr)
9837 ("r-interactivedisplaybase" ,r-interactivedisplaybase)
9838 ("r-rsqlite" ,r-rsqlite)
9839 ("r-s4vectors" ,r-s4vectors)
9840 ("r-yaml" ,r-yaml)))
9841 (home-page "https://bioconductor.org/packages/AnnotationHub")
9842 (synopsis "Client to access AnnotationHub resources")
9843 (description
9844 "This package provides a client for the Bioconductor AnnotationHub web
9845 resource. The AnnotationHub web resource provides a central location where
9846 genomic files (e.g. VCF, bed, wig) and other resources from standard
9847 locations (e.g. UCSC, Ensembl) can be discovered. The resource includes
9848 metadata about each resource, e.g., a textual description, tags, and date of
9849 modification. The client creates and manages a local cache of files retrieved
9850 by the user, helping with quick and reproducible access.")
9851 (license license:artistic2.0)))
9852
9853 (define-public r-fastseg
9854 (package
9855 (name "r-fastseg")
9856 (version "1.24.0")
9857 (source
9858 (origin
9859 (method url-fetch)
9860 (uri (bioconductor-uri "fastseg" version))
9861 (sha256
9862 (base32
9863 "0dd7nr3klwz9ailwshnbynhd62lwb8zbbpj6jf3igpb94yi6x2jp"))))
9864 (build-system r-build-system)
9865 (propagated-inputs
9866 `(("r-biobase" ,r-biobase)
9867 ("r-biocgenerics" ,r-biocgenerics)
9868 ("r-genomicranges" ,r-genomicranges)
9869 ("r-iranges" ,r-iranges)
9870 ("r-s4vectors" ,r-s4vectors)))
9871 (home-page "http://www.bioinf.jku.at/software/fastseg/index.html")
9872 (synopsis "Fast segmentation algorithm for genetic sequencing data")
9873 (description
9874 "Fastseg implements a very fast and efficient segmentation algorithm.
9875 It can segment data from DNA microarrays and data from next generation
9876 sequencing for example to detect copy number segments. Further it can segment
9877 data from RNA microarrays like tiling arrays to identify transcripts. Most
9878 generally, it can segment data given as a matrix or as a vector. Various data
9879 formats can be used as input to fastseg like expression set objects for
9880 microarrays or GRanges for sequencing data.")
9881 (license license:lgpl2.0+)))
9882
9883 (define-public r-keggrest
9884 (package
9885 (name "r-keggrest")
9886 (version "1.18.1")
9887 (source
9888 (origin
9889 (method url-fetch)
9890 (uri (bioconductor-uri "KEGGREST" version))
9891 (sha256
9892 (base32
9893 "02gwmm79djj55a90dzc80hlgwc6bafl7xd7fnx2q59pk945k3z9c"))))
9894 (properties `((upstream-name . "KEGGREST")))
9895 (build-system r-build-system)
9896 (propagated-inputs
9897 `(("r-biostrings" ,r-biostrings)
9898 ("r-httr" ,r-httr)
9899 ("r-png" ,r-png)))
9900 (home-page "https://bioconductor.org/packages/KEGGREST")
9901 (synopsis "Client-side REST access to KEGG")
9902 (description
9903 "This package provides a package that provides a client interface to the
9904 @dfn{Kyoto Encyclopedia of Genes and Genomes} (KEGG) REST server.")
9905 (license license:artistic2.0)))
9906
9907 (define-public r-gage
9908 (package
9909 (name "r-gage")
9910 (version "2.28.2")
9911 (source
9912 (origin
9913 (method url-fetch)
9914 (uri (bioconductor-uri "gage" version))
9915 (sha256
9916 (base32
9917 "0h0mlhns9j7cpfksvdlvx9jb7szm3r1dwqb3s4s8p8hmkb9byyii"))))
9918 (build-system r-build-system)
9919 (propagated-inputs
9920 `(("r-annotationdbi" ,r-annotationdbi)
9921 ("r-graph" ,r-graph)
9922 ("r-keggrest" ,r-keggrest)))
9923 (home-page "http://www.biomedcentral.com/1471-2105/10/161")
9924 (synopsis "Generally applicable gene-set enrichment for pathway analysis")
9925 (description
9926 "GAGE is a published method for gene set (enrichment or GSEA) or pathway
9927 analysis. GAGE is generally applicable independent of microarray or RNA-Seq
9928 data attributes including sample sizes, experimental designs, assay platforms,
9929 and other types of heterogeneity. The gage package provides functions for
9930 basic GAGE analysis, result processing and presentation. In addition, it
9931 provides demo microarray data and commonly used gene set data based on KEGG
9932 pathways and GO terms. These funtions and data are also useful for gene set
9933 analysis using other methods.")
9934 (license license:gpl2+)))
9935
9936 (define-public r-genomicfiles
9937 (package
9938 (name "r-genomicfiles")
9939 (version "1.14.0")
9940 (source
9941 (origin
9942 (method url-fetch)
9943 (uri (bioconductor-uri "GenomicFiles" version))
9944 (sha256
9945 (base32
9946 "0r0wmrs5jycf1kckhnc2sgjmp336srlcjdkpbb1ymm7kazdd0s9n"))))
9947 (properties `((upstream-name . "GenomicFiles")))
9948 (build-system r-build-system)
9949 (propagated-inputs
9950 `(("r-biocgenerics" ,r-biocgenerics)
9951 ("r-biocparallel" ,r-biocparallel)
9952 ("r-genomeinfodb" ,r-genomeinfodb)
9953 ("r-genomicalignments" ,r-genomicalignments)
9954 ("r-genomicranges" ,r-genomicranges)
9955 ("r-iranges" ,r-iranges)
9956 ("r-rsamtools" ,r-rsamtools)
9957 ("r-rtracklayer" ,r-rtracklayer)
9958 ("r-s4vectors" ,r-s4vectors)
9959 ("r-summarizedexperiment" ,r-summarizedexperiment)
9960 ("r-variantannotation" ,r-variantannotation)))
9961 (home-page "https://bioconductor.org/packages/GenomicFiles")
9962 (synopsis "Distributed computing by file or by range")
9963 (description
9964 "This package provides infrastructure for parallel computations
9965 distributed by file or by range. User defined mapper and reducer functions
9966 provide added flexibility for data combination and manipulation.")
9967 (license license:artistic2.0)))
9968
9969 (define-public r-complexheatmap
9970 (package
9971 (name "r-complexheatmap")
9972 (version "1.17.1")
9973 (source
9974 (origin
9975 (method url-fetch)
9976 (uri (bioconductor-uri "ComplexHeatmap" version))
9977 (sha256
9978 (base32
9979 "1x6kp55iqqsd8bhdl3qch95nfiy2y46ldbbsx1sj1v8f0b0ywwcy"))))
9980 (properties
9981 `((upstream-name . "ComplexHeatmap")))
9982 (build-system r-build-system)
9983 (propagated-inputs
9984 `(("r-circlize" ,r-circlize)
9985 ("r-colorspace" ,r-colorspace)
9986 ("r-getoptlong" ,r-getoptlong)
9987 ("r-globaloptions" ,r-globaloptions)
9988 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9989 (home-page
9990 "https://github.com/jokergoo/ComplexHeatmap")
9991 (synopsis "Making Complex Heatmaps")
9992 (description
9993 "Complex heatmaps are efficient to visualize associations between
9994 different sources of data sets and reveal potential structures. This package
9995 provides a highly flexible way to arrange multiple heatmaps and supports
9996 self-defined annotation graphics.")
9997 (license license:gpl2+)))
9998
9999 (define-public r-dirichletmultinomial
10000 (package
10001 (name "r-dirichletmultinomial")
10002 (version "1.20.0")
10003 (source
10004 (origin
10005 (method url-fetch)
10006 (uri (bioconductor-uri "DirichletMultinomial" version))
10007 (sha256
10008 (base32
10009 "1c4s6x0qm20556grcd1xys9kkpnlzpasaai474malwcg6qvgi4x1"))))
10010 (properties
10011 `((upstream-name . "DirichletMultinomial")))
10012 (build-system r-build-system)
10013 (inputs
10014 `(("gsl" ,gsl)))
10015 (propagated-inputs
10016 `(("r-biocgenerics" ,r-biocgenerics)
10017 ("r-iranges" ,r-iranges)
10018 ("r-s4vectors" ,r-s4vectors)))
10019 (home-page "https://bioconductor.org/packages/DirichletMultinomial")
10020 (synopsis "Dirichlet-Multinomial mixture models for microbiome data")
10021 (description
10022 "Dirichlet-multinomial mixture models can be used to describe variability
10023 in microbial metagenomic data. This package is an interface to code
10024 originally made available by Holmes, Harris, and Quince, 2012, PLoS ONE 7(2):
10025 1-15.")
10026 (license license:lgpl3)))
10027
10028 (define-public r-ensembldb
10029 (package
10030 (name "r-ensembldb")
10031 (version "2.2.2")
10032 (source
10033 (origin
10034 (method url-fetch)
10035 (uri (bioconductor-uri "ensembldb" version))
10036 (sha256
10037 (base32
10038 "1yngndkf3588z91z0a2fvkg423p26ajm6xv1p27x0l9mzhhaqq3k"))))
10039 (build-system r-build-system)
10040 (propagated-inputs
10041 `(("r-annotationdbi" ,r-annotationdbi)
10042 ("r-annotationfilter" ,r-annotationfilter)
10043 ("r-annotationhub" ,r-annotationhub)
10044 ("r-biobase" ,r-biobase)
10045 ("r-biocgenerics" ,r-biocgenerics)
10046 ("r-biostrings" ,r-biostrings)
10047 ("r-curl" ,r-curl)
10048 ("r-dbi" ,r-dbi)
10049 ("r-genomeinfodb" ,r-genomeinfodb)
10050 ("r-genomicfeatures" ,r-genomicfeatures)
10051 ("r-genomicranges" ,r-genomicranges)
10052 ("r-iranges" ,r-iranges)
10053 ("r-protgenerics" ,r-protgenerics)
10054 ("r-rsamtools" ,r-rsamtools)
10055 ("r-rsqlite" ,r-rsqlite)
10056 ("r-rtracklayer" ,r-rtracklayer)
10057 ("r-s4vectors" ,r-s4vectors)))
10058 (home-page "https://github.com/jotsetung/ensembldb")
10059 (synopsis "Utilities to create and use Ensembl-based annotation databases")
10060 (description
10061 "The package provides functions to create and use transcript-centric
10062 annotation databases/packages. The annotation for the databases are directly
10063 fetched from Ensembl using their Perl API. The functionality and data is
10064 similar to that of the TxDb packages from the @code{GenomicFeatures} package,
10065 but, in addition to retrieve all gene/transcript models and annotations from
10066 the database, the @code{ensembldb} package also provides a filter framework
10067 allowing to retrieve annotations for specific entries like genes encoded on a
10068 chromosome region or transcript models of lincRNA genes.")
10069 ;; No version specified
10070 (license license:lgpl3+)))
10071
10072 (define-public r-organismdbi
10073 (package
10074 (name "r-organismdbi")
10075 (version "1.20.0")
10076 (source
10077 (origin
10078 (method url-fetch)
10079 (uri (bioconductor-uri "OrganismDbi" version))
10080 (sha256
10081 (base32
10082 "0yxvhwn0m53wfwp0zi81x96argdf7cf1lpymc2as51apvfcnjdl8"))))
10083 (properties `((upstream-name . "OrganismDbi")))
10084 (build-system r-build-system)
10085 (propagated-inputs
10086 `(("r-annotationdbi" ,r-annotationdbi)
10087 ("r-biobase" ,r-biobase)
10088 ("r-biocgenerics" ,r-biocgenerics)
10089 ("r-biocinstaller" ,r-biocinstaller)
10090 ("r-dbi" ,r-dbi)
10091 ("r-genomicfeatures" ,r-genomicfeatures)
10092 ("r-genomicranges" ,r-genomicranges)
10093 ("r-graph" ,r-graph)
10094 ("r-iranges" ,r-iranges)
10095 ("r-rbgl" ,r-rbgl)
10096 ("r-s4vectors" ,r-s4vectors)))
10097 (home-page "https://bioconductor.org/packages/OrganismDbi")
10098 (synopsis "Software to enable the smooth interfacing of database packages")
10099 (description "The package enables a simple unified interface to several
10100 annotation packages each of which has its own schema by taking advantage of
10101 the fact that each of these packages implements a select methods.")
10102 (license license:artistic2.0)))
10103
10104 (define-public r-biovizbase
10105 (package
10106 (name "r-biovizbase")
10107 (version "1.26.0")
10108 (source
10109 (origin
10110 (method url-fetch)
10111 (uri (bioconductor-uri "biovizBase" version))
10112 (sha256
10113 (base32
10114 "14l4vhj0a4ssr9m9zdzz3qpd4qw1mhgq5bmxq7jhrq3j9kmd6i2f"))))
10115 (properties `((upstream-name . "biovizBase")))
10116 (build-system r-build-system)
10117 (propagated-inputs
10118 `(("r-annotationdbi" ,r-annotationdbi)
10119 ("r-annotationfilter" ,r-annotationfilter)
10120 ("r-biocgenerics" ,r-biocgenerics)
10121 ("r-biostrings" ,r-biostrings)
10122 ("r-dichromat" ,r-dichromat)
10123 ("r-ensembldb" ,r-ensembldb)
10124 ("r-genomeinfodb" ,r-genomeinfodb)
10125 ("r-genomicalignments" ,r-genomicalignments)
10126 ("r-genomicfeatures" ,r-genomicfeatures)
10127 ("r-genomicranges" ,r-genomicranges)
10128 ("r-hmisc" ,r-hmisc)
10129 ("r-iranges" ,r-iranges)
10130 ("r-rcolorbrewer" ,r-rcolorbrewer)
10131 ("r-rsamtools" ,r-rsamtools)
10132 ("r-s4vectors" ,r-s4vectors)
10133 ("r-scales" ,r-scales)
10134 ("r-summarizedexperiment" ,r-summarizedexperiment)
10135 ("r-variantannotation" ,r-variantannotation)))
10136 (home-page "https://bioconductor.org/packages/biovizBase")
10137 (synopsis "Basic graphic utilities for visualization of genomic data")
10138 (description
10139 "The biovizBase package is designed to provide a set of utilities, color
10140 schemes and conventions for genomic data. It serves as the base for various
10141 high-level packages for biological data visualization. This saves development
10142 effort and encourages consistency.")
10143 (license license:artistic2.0)))
10144
10145 (define-public r-ggbio
10146 (package
10147 (name "r-ggbio")
10148 (version "1.26.0")
10149 (source
10150 (origin
10151 (method url-fetch)
10152 (uri (bioconductor-uri "ggbio" version))
10153 (sha256
10154 (base32
10155 "1bqxfqy0hff87ax92z4lfbjz01ndrz7x8pzm6dlkdmi52p30krm9"))))
10156 (build-system r-build-system)
10157 (propagated-inputs
10158 `(("r-annotationdbi" ,r-annotationdbi)
10159 ("r-annotationfilter" ,r-annotationfilter)
10160 ("r-biobase" ,r-biobase)
10161 ("r-biocgenerics" ,r-biocgenerics)
10162 ("r-biostrings" ,r-biostrings)
10163 ("r-biovizbase" ,r-biovizbase)
10164 ("r-bsgenome" ,r-bsgenome)
10165 ("r-ensembldb" ,r-ensembldb)
10166 ("r-genomeinfodb" ,r-genomeinfodb)
10167 ("r-genomicalignments" ,r-genomicalignments)
10168 ("r-genomicfeatures" ,r-genomicfeatures)
10169 ("r-genomicranges" ,r-genomicranges)
10170 ("r-ggally" ,r-ggally)
10171 ("r-ggplot2" ,r-ggplot2)
10172 ("r-gridextra" ,r-gridextra)
10173 ("r-gtable" ,r-gtable)
10174 ("r-hmisc" ,r-hmisc)
10175 ("r-iranges" ,r-iranges)
10176 ("r-organismdbi" ,r-organismdbi)
10177 ("r-reshape2" ,r-reshape2)
10178 ("r-rsamtools" ,r-rsamtools)
10179 ("r-rtracklayer" ,r-rtracklayer)
10180 ("r-s4vectors" ,r-s4vectors)
10181 ("r-scales" ,r-scales)
10182 ("r-summarizedexperiment" ,r-summarizedexperiment)
10183 ("r-variantannotation" ,r-variantannotation)))
10184 (home-page "http://www.tengfei.name/ggbio/")
10185 (synopsis "Visualization tools for genomic data")
10186 (description
10187 "The ggbio package extends and specializes the grammar of graphics for
10188 biological data. The graphics are designed to answer common scientific
10189 questions, in particular those often asked of high throughput genomics data.
10190 All core Bioconductor data structures are supported, where appropriate. The
10191 package supports detailed views of particular genomic regions, as well as
10192 genome-wide overviews. Supported overviews include ideograms and grand linear
10193 views. High-level plots include sequence fragment length, edge-linked
10194 interval to data view, mismatch pileup, and several splicing summaries.")
10195 (license license:artistic2.0)))
10196
10197 (define-public r-gprofiler
10198 (package
10199 (name "r-gprofiler")
10200 (version "0.6.4")
10201 (source
10202 (origin
10203 (method url-fetch)
10204 (uri (cran-uri "gProfileR" version))
10205 (sha256
10206 (base32
10207 "1cka02zbz1rbppm782qpxk1xn9qxbrv2gp5rgf970j906hxm2y0b"))))
10208 (properties `((upstream-name . "gProfileR")))
10209 (build-system r-build-system)
10210 (propagated-inputs
10211 `(("r-plyr" ,r-plyr)
10212 ("r-rcurl" ,r-rcurl)))
10213 (home-page "https://cran.r-project.org/web/packages/gProfileR/")
10214 (synopsis "Interface to the g:Profiler toolkit")
10215 (description
10216 "This package provides tools for functional enrichment analysis,
10217 gene identifier conversion and mapping homologous genes across related
10218 organisms via the @code{g:Profiler} toolkit.")
10219 (license license:gpl2+)))
10220
10221 (define-public r-gqtlbase
10222 (package
10223 (name "r-gqtlbase")
10224 (version "1.10.0")
10225 (source
10226 (origin
10227 (method url-fetch)
10228 (uri (bioconductor-uri "gQTLBase" version))
10229 (sha256
10230 (base32
10231 "1756vfcj2dkkgcmfkkg7qdaig36dv9gfvpypn9rbrky56wm1p035"))))
10232 (properties `((upstream-name . "gQTLBase")))
10233 (build-system r-build-system)
10234 (propagated-inputs
10235 `(("r-batchjobs" ,r-batchjobs)
10236 ("r-bbmisc" ,r-bbmisc)
10237 ("r-biocgenerics" ,r-biocgenerics)
10238 ("r-bit" ,r-bit)
10239 ("r-doparallel" ,r-doparallel)
10240 ("r-ff" ,r-ff)
10241 ("r-ffbase" ,r-ffbase)
10242 ("r-foreach" ,r-foreach)
10243 ("r-genomicfiles" ,r-genomicfiles)
10244 ("r-genomicranges" ,r-genomicranges)
10245 ("r-rtracklayer" ,r-rtracklayer)
10246 ("r-s4vectors" ,r-s4vectors)
10247 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10248 (home-page "https://bioconductor.org/packages/gQTLBase")
10249 (synopsis "Infrastructure for eQTL, mQTL and similar studies")
10250 (description
10251 "The purpose of this package is to simplify the storage and interrogation
10252 of @dfn{quantitative trait loci} (QTL) archives, such as eQTL, mQTL, dsQTL,
10253 and more.")
10254 (license license:artistic2.0)))
10255
10256 (define-public r-snpstats
10257 (package
10258 (name "r-snpstats")
10259 (version "1.28.0")
10260 (source
10261 (origin
10262 (method url-fetch)
10263 (uri (bioconductor-uri "snpStats" version))
10264 (sha256
10265 (base32
10266 "1x9qwynh2hwl24vq02naf4mchpch7xi2pkdrlgw896k28kx0lvir"))))
10267 (properties `((upstream-name . "snpStats")))
10268 (build-system r-build-system)
10269 (inputs `(("zlib" ,zlib)))
10270 (propagated-inputs
10271 `(("r-biocgenerics" ,r-biocgenerics)
10272 ("r-matrix" ,r-matrix)
10273 ("r-survival" ,r-survival)
10274 ("r-zlibbioc" ,r-zlibbioc)))
10275 (home-page "https://bioconductor.org/packages/snpStats")
10276 (synopsis "Methods for SNP association studies")
10277 (description
10278 "This package provides classes and statistical methods for large
10279 @dfn{single-nucleotide polymorphism} (SNP) association studies. This extends
10280 the earlier snpMatrix package, allowing for uncertainty in genotypes.")
10281 (license license:gpl3)))
10282
10283 (define-public r-homo-sapiens
10284 (package
10285 (name "r-homo-sapiens")
10286 (version "1.3.1")
10287 (source (origin
10288 (method url-fetch)
10289 ;; We cannot use bioconductor-uri here because this tarball is
10290 ;; located under "data/annotation/" instead of "bioc/".
10291 (uri (string-append "http://www.bioconductor.org/packages/"
10292 "release/data/annotation/src/contrib/"
10293 "Homo.sapiens_"
10294 version ".tar.gz"))
10295 (sha256
10296 (base32
10297 "151vj7h5p1c8yd5swrchk46z469p135wk50hvkl0nhgndvy0jj01"))))
10298 (properties
10299 `((upstream-name . "Homo.sapiens")))
10300 (build-system r-build-system)
10301 (propagated-inputs
10302 `(("r-genomicfeatures" ,r-genomicfeatures)
10303 ("r-go-db" ,r-go-db)
10304 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
10305 ("r-txdb-hsapiens-ucsc-hg19-knowngene" ,r-txdb-hsapiens-ucsc-hg19-knowngene)
10306 ("r-organismdbi" ,r-organismdbi)
10307 ("r-annotationdbi" ,r-annotationdbi)))
10308 (home-page "https://bioconductor.org/packages/Homo.sapiens/")
10309 (synopsis "Annotation package for the Homo.sapiens object")
10310 (description
10311 "This package contains the Homo.sapiens object to access data from
10312 several related annotation packages.")
10313 (license license:artistic2.0)))
10314
10315 (define-public r-erma
10316 (package
10317 (name "r-erma")
10318 (version "0.10.0")
10319 (source
10320 (origin
10321 (method url-fetch)
10322 (uri (bioconductor-uri "erma" version))
10323 (sha256
10324 (base32
10325 "0gcfs9g8vvdv5vmq9b21kd8sq5mizjj49nfzd4in9zvp4b9v7x1g"))))
10326 (build-system r-build-system)
10327 (propagated-inputs
10328 `(("r-annotationdbi" ,r-annotationdbi)
10329 ("r-biobase" ,r-biobase)
10330 ("r-biocgenerics" ,r-biocgenerics)
10331 ("r-foreach" ,r-foreach)
10332 ("r-genomicfiles" ,r-genomicfiles)
10333 ("r-genomicranges" ,r-genomicranges)
10334 ("r-ggplot2" ,r-ggplot2)
10335 ("r-homo-sapiens" ,r-homo-sapiens)
10336 ("r-rtracklayer" ,r-rtracklayer)
10337 ("r-s4vectors" ,r-s4vectors)
10338 ("r-shiny" ,r-shiny)
10339 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10340 (home-page "https://bioconductor.org/packages/erma")
10341 (synopsis "Epigenomic road map adventures")
10342 (description
10343 "The epigenomics road map describes locations of epigenetic marks in DNA
10344 from a variety of cell types. Of interest are locations of histone
10345 modifications, sites of DNA methylation, and regions of accessible chromatin.
10346 This package presents a selection of elements of the road map including
10347 metadata and outputs of the ChromImpute procedure applied to ENCODE cell lines
10348 by Ernst and Kellis.")
10349 (license license:artistic2.0)))
10350
10351 (define-public r-ldblock
10352 (package
10353 (name "r-ldblock")
10354 (version "1.8.0")
10355 (source
10356 (origin
10357 (method url-fetch)
10358 (uri (bioconductor-uri "ldblock" version))
10359 (sha256
10360 (base32
10361 "18nfsixh6d2wfrb9laqsgly5w1frzihhak683k0p8fdf51h4aqba"))))
10362 (build-system r-build-system)
10363 (propagated-inputs
10364 `(("r-erma" ,r-erma)
10365 ("r-genomeinfodb" ,r-genomeinfodb)
10366 ("r-genomicfiles" ,r-genomicfiles)
10367 ("r-go-db" ,r-go-db)
10368 ("r-homo-sapiens" ,r-homo-sapiens)
10369 ("r-matrix" ,r-matrix)
10370 ("r-rsamtools" ,r-rsamtools)
10371 ("r-snpstats" ,r-snpstats)
10372 ("r-variantannotation" ,r-variantannotation)))
10373 (home-page "https://bioconductor.org/packages/ldblock")
10374 (synopsis "Data structures for linkage disequilibrium measures in populations")
10375 (description
10376 "This package defines data structures for @dfn{linkage
10377 disequilibrium} (LD) measures in populations. Its purpose is to simplify
10378 handling of existing population-level data for the purpose of flexibly
10379 defining LD blocks.")
10380 (license license:artistic2.0)))
10381
10382 (define-public r-gqtlstats
10383 (package
10384 (name "r-gqtlstats")
10385 (version "1.10.1")
10386 (source
10387 (origin
10388 (method url-fetch)
10389 (uri (bioconductor-uri "gQTLstats" version))
10390 (sha256
10391 (base32
10392 "0gvq1sf2zjbkk431x40z6wql3c1rpclnnwa2f1hvykb8mmw70kmq"))))
10393 (properties `((upstream-name . "gQTLstats")))
10394 (build-system r-build-system)
10395 (propagated-inputs
10396 `(("r-annotationdbi" ,r-annotationdbi)
10397 ("r-batchjobs" ,r-batchjobs)
10398 ("r-bbmisc" ,r-bbmisc)
10399 ("r-beeswarm" ,r-beeswarm)
10400 ("r-biobase" ,r-biobase)
10401 ("r-biocgenerics" ,r-biocgenerics)
10402 ("r-doparallel" ,r-doparallel)
10403 ("r-dplyr" ,r-dplyr)
10404 ("r-erma" ,r-erma)
10405 ("r-ffbase" ,r-ffbase)
10406 ("r-foreach" ,r-foreach)
10407 ("r-genomeinfodb" ,r-genomeinfodb)
10408 ("r-genomicfeatures" ,r-genomicfeatures)
10409 ("r-genomicfiles" ,r-genomicfiles)
10410 ("r-genomicranges" ,r-genomicranges)
10411 ("r-ggbeeswarm" ,r-ggbeeswarm)
10412 ("r-ggplot2" ,r-ggplot2)
10413 ("r-gqtlbase" ,r-gqtlbase)
10414 ("r-hardyweinberg" ,r-hardyweinberg)
10415 ("r-iranges" ,r-iranges)
10416 ("r-ldblock" ,r-ldblock)
10417 ("r-limma" ,r-limma)
10418 ("r-mgcv" ,r-mgcv)
10419 ("r-plotly" ,r-plotly)
10420 ("r-reshape2" ,r-reshape2)
10421 ("r-s4vectors" ,r-s4vectors)
10422 ("r-shiny" ,r-shiny)
10423 ("r-snpstats" ,r-snpstats)
10424 ("r-summarizedexperiment" ,r-summarizedexperiment)
10425 ("r-variantannotation" ,r-variantannotation)))
10426 (home-page "https://bioconductor.org/packages/gQTLstats")
10427 (synopsis "Computationally efficient analysis for eQTL and allied studies")
10428 (description
10429 "This package provides tools for the computationally efficient analysis
10430 of @dfn{quantitative trait loci} (QTL) data, including eQTL, mQTL, dsQTL, etc.
10431 The software in this package aims to support refinements and functional
10432 interpretation of members of a collection of association statistics on a
10433 family of feature/genome hypotheses.")
10434 (license license:artistic2.0)))
10435
10436 (define-public r-gviz
10437 (package
10438 (name "r-gviz")
10439 (version "1.22.3")
10440 (source
10441 (origin
10442 (method url-fetch)
10443 (uri (bioconductor-uri "Gviz" version))
10444 (sha256
10445 (base32
10446 "1grjzrjpzkw572pbvpsvdnfkfgwybl0cnjd7nnk2xdr26wnbsi9a"))))
10447 (properties `((upstream-name . "Gviz")))
10448 (build-system r-build-system)
10449 (propagated-inputs
10450 `(("r-annotationdbi" ,r-annotationdbi)
10451 ("r-biobase" ,r-biobase)
10452 ("r-biocgenerics" ,r-biocgenerics)
10453 ("r-biomart" ,r-biomart)
10454 ("r-biostrings" ,r-biostrings)
10455 ("r-biovizbase" ,r-biovizbase)
10456 ("r-bsgenome" ,r-bsgenome)
10457 ("r-digest" ,r-digest)
10458 ("r-genomeinfodb" ,r-genomeinfodb)
10459 ("r-genomicalignments" ,r-genomicalignments)
10460 ("r-genomicfeatures" ,r-genomicfeatures)
10461 ("r-genomicranges" ,r-genomicranges)
10462 ("r-iranges" ,r-iranges)
10463 ("r-lattice" ,r-lattice)
10464 ("r-latticeextra" ,r-latticeextra)
10465 ("r-matrixstats" ,r-matrixstats)
10466 ("r-rcolorbrewer" ,r-rcolorbrewer)
10467 ("r-rsamtools" ,r-rsamtools)
10468 ("r-rtracklayer" ,r-rtracklayer)
10469 ("r-s4vectors" ,r-s4vectors)
10470 ("r-xvector" ,r-xvector)))
10471 (home-page "https://bioconductor.org/packages/Gviz")
10472 (synopsis "Plotting data and annotation information along genomic coordinates")
10473 (description
10474 "Genomic data analyses requires integrated visualization of known genomic
10475 information and new experimental data. Gviz uses the biomaRt and the
10476 rtracklayer packages to perform live annotation queries to Ensembl and UCSC
10477 and translates this to e.g. gene/transcript structures in viewports of the
10478 grid graphics package. This results in genomic information plotted together
10479 with your data.")
10480 (license license:artistic2.0)))
10481
10482 (define-public r-gwascat
10483 (package
10484 (name "r-gwascat")
10485 (version "2.10.0")
10486 (source
10487 (origin
10488 (method url-fetch)
10489 (uri (bioconductor-uri "gwascat" version))
10490 (sha256
10491 (base32
10492 "0n5x5i5v6a8wpn5mxmlpkl34b4kyypmymiwww6g61zch7xqrgywi"))))
10493 (build-system r-build-system)
10494 (propagated-inputs
10495 `(("r-annotationdbi" ,r-annotationdbi)
10496 ("r-annotationhub" ,r-annotationhub)
10497 ("r-biocgenerics" ,r-biocgenerics)
10498 ("r-biostrings" ,r-biostrings)
10499 ("r-genomeinfodb" ,r-genomeinfodb)
10500 ("r-genomicfeatures" ,r-genomicfeatures)
10501 ("r-genomicranges" ,r-genomicranges)
10502 ("r-ggbio" ,r-ggbio)
10503 ("r-ggplot2" ,r-ggplot2)
10504 ("r-gqtlstats" ,r-gqtlstats)
10505 ("r-graph" ,r-graph)
10506 ("r-gviz" ,r-gviz)
10507 ("r-homo-sapiens" ,r-homo-sapiens)
10508 ("r-iranges" ,r-iranges)
10509 ("r-rsamtools" ,r-rsamtools)
10510 ("r-rtracklayer" ,r-rtracklayer)
10511 ("r-s4vectors" ,r-s4vectors)
10512 ("r-snpstats" ,r-snpstats)
10513 ("r-summarizedexperiment" ,r-summarizedexperiment)
10514 ("r-variantannotation" ,r-variantannotation)))
10515 (home-page "https://bioconductor.org/packages/gwascat")
10516 (synopsis "Tools for data in the EMBL-EBI GWAS catalog")
10517 (description
10518 "This package provides tools for representing and modeling data in the
10519 EMBL-EBI GWAS catalog.")
10520 (license license:artistic2.0)))
10521
10522 (define-public r-sushi
10523 (package
10524 (name "r-sushi")
10525 (version "1.16.0")
10526 (source (origin
10527 (method url-fetch)
10528 (uri (bioconductor-uri "Sushi" version))
10529 (sha256
10530 (base32
10531 "0axaqm480z8d0b2ldgxwm0swava1p4irc62bpl17p2k8k78g687g"))))
10532 (properties `((upstream-name . "Sushi")))
10533 (build-system r-build-system)
10534 (propagated-inputs
10535 `(("r-biomart" ,r-biomart)
10536 ("r-zoo" ,r-zoo)))
10537 (home-page "https://bioconductor.org/packages/Sushi")
10538 (synopsis "Tools for visualizing genomics data")
10539 (description
10540 "This package provides flexible, quantitative, and integrative genomic
10541 visualizations for publication-quality multi-panel figures.")
10542 (license license:gpl2+)))
10543
10544 (define-public r-fithic
10545 (package
10546 (name "r-fithic")
10547 (version "1.4.0")
10548 (source (origin
10549 (method url-fetch)
10550 (uri (bioconductor-uri "FitHiC" version))
10551 (sha256
10552 (base32
10553 "12ylhrppi051m7nqsgq95kzd9g9wmp34i0zzfi55cjqawlpx7c6n"))))
10554 (properties `((upstream-name . "FitHiC")))
10555 (build-system r-build-system)
10556 (propagated-inputs
10557 `(("r-data-table" ,r-data-table)
10558 ("r-fdrtool" ,r-fdrtool)
10559 ("r-rcpp" ,r-rcpp)))
10560 (home-page "https://bioconductor.org/packages/FitHiC")
10561 (synopsis "Confidence estimation for intra-chromosomal contact maps")
10562 (description
10563 "Fit-Hi-C is a tool for assigning statistical confidence estimates to
10564 intra-chromosomal contact maps produced by genome-wide genome architecture
10565 assays such as Hi-C.")
10566 (license license:gpl2+)))
10567
10568 (define-public r-hitc
10569 (package
10570 (name "r-hitc")
10571 (version "1.22.0")
10572 (source (origin
10573 (method url-fetch)
10574 (uri (bioconductor-uri "HiTC" version))
10575 (sha256
10576 (base32
10577 "0288xa1jy6nzvz2ha07csmp6dirjw5r7p9vy69q2wsbyzr02ymkp"))))
10578 (properties `((upstream-name . "HiTC")))
10579 (build-system r-build-system)
10580 (propagated-inputs
10581 `(("r-biostrings" ,r-biostrings)
10582 ("r-genomeinfodb" ,r-genomeinfodb)
10583 ("r-genomicranges" ,r-genomicranges)
10584 ("r-iranges" ,r-iranges)
10585 ("r-matrix" ,r-matrix)
10586 ("r-rcolorbrewer" ,r-rcolorbrewer)
10587 ("r-rtracklayer" ,r-rtracklayer)))
10588 (home-page "https://bioconductor.org/packages/HiTC")
10589 (synopsis "High throughput chromosome conformation capture analysis")
10590 (description
10591 "The HiTC package was developed to explore high-throughput \"C\" data
10592 such as 5C or Hi-C. Dedicated R classes as well as standard methods for
10593 quality controls, normalization, visualization, and further analysis are also
10594 provided.")
10595 (license license:artistic2.0)))
10596
10597 (define-public r-qvalue
10598 (package
10599 (name "r-qvalue")
10600 (version "2.10.0")
10601 (source
10602 (origin
10603 (method url-fetch)
10604 (uri (bioconductor-uri "qvalue" version))
10605 (sha256
10606 (base32
10607 "1rd9rnf16kh8wc076kahd9hsb9rfwsbzmz3kjmp0pj6rbiq0051i"))))
10608 (build-system r-build-system)
10609 (propagated-inputs
10610 `(("r-ggplot2" ,r-ggplot2)
10611 ("r-reshape2" ,r-reshape2)))
10612 (home-page "http://github.com/jdstorey/qvalue")
10613 (synopsis "Q-value estimation for false discovery rate control")
10614 (description
10615 "This package takes a list of p-values resulting from the simultaneous
10616 testing of many hypotheses and estimates their q-values and local @dfn{false
10617 discovery rate} (FDR) values. The q-value of a test measures the proportion
10618 of false positives incurred when that particular test is called significant.
10619 The local FDR measures the posterior probability the null hypothesis is true
10620 given the test's p-value. Various plots are automatically generated, allowing
10621 one to make sensible significance cut-offs. The software can be applied to
10622 problems in genomics, brain imaging, astrophysics, and data mining.")
10623 ;; Any version of the LGPL.
10624 (license license:lgpl3+)))
10625
10626 (define-public r-hdf5array
10627 (package
10628 (name "r-hdf5array")
10629 (version "1.6.0")
10630 (source
10631 (origin
10632 (method url-fetch)
10633 (uri (bioconductor-uri "HDF5Array" version))
10634 (sha256
10635 (base32
10636 "0kcdza41saqv6vlpvqd841awbiwkg84lh0plx6c7fmfgbqv7a0jh"))))
10637 (properties `((upstream-name . "HDF5Array")))
10638 (build-system r-build-system)
10639 (propagated-inputs
10640 `(("r-biocgenerics" ,r-biocgenerics)
10641 ("r-delayedarray" ,r-delayedarray)
10642 ("r-iranges" ,r-iranges)
10643 ("r-rhdf5" ,r-rhdf5)
10644 ("r-s4vectors" ,r-s4vectors)))
10645 (home-page "https://bioconductor.org/packages/HDF5Array")
10646 (synopsis "HDF5 back end for DelayedArray objects")
10647 (description "This package provides an array-like container for convenient
10648 access and manipulation of HDF5 datasets. It supports delayed operations and
10649 block processing.")
10650 (license license:artistic2.0)))
10651
10652 (define-public r-rhdf5lib
10653 (package
10654 (name "r-rhdf5lib")
10655 (version "1.0.0")
10656 (source
10657 (origin
10658 (method url-fetch)
10659 (uri (bioconductor-uri "Rhdf5lib" version))
10660 (sha256
10661 (base32
10662 "0kkc4rprjbqn2wvbx4d49kk9l91vihccxbl4843qr1wqk6v33r1w"))))
10663 (properties `((upstream-name . "Rhdf5lib")))
10664 (build-system r-build-system)
10665 (arguments
10666 `(#:phases
10667 (modify-phases %standard-phases
10668 (add-after 'unpack 'do-not-use-bundled-hdf5
10669 (lambda* (#:key inputs #:allow-other-keys)
10670 (for-each delete-file '("configure" "configure.ac"))
10671 ;; Do not make other packages link with the proprietary libsz.
10672 (substitute* "R/zzz.R"
10673 (("'%s/libhdf5_cpp.a %s/libhdf5.a %s/libsz.a'")
10674 "'%s/libhdf5_cpp.a %s/libhdf5.a %s/libhdf5.a'")
10675 (("'%s/libhdf5.a %s/libsz.a'")
10676 "'%s/libhdf5.a %s/libhdf5.a'"))
10677 (with-directory-excursion "src"
10678 (invoke "tar" "xvf" (assoc-ref inputs "hdf5-source"))
10679 (rename-file (string-append "hdf5-" ,(package-version hdf5))
10680 "hdf5")
10681 (rename-file "Makevars.in" "Makevars")
10682 (substitute* "Makevars"
10683 (("HDF5_CXX_LIB=.*")
10684 (string-append "HDF5_CXX_LIB="
10685 (assoc-ref inputs "hdf5") "/lib/libhdf5_cpp.a\n"))
10686 (("HDF5_LIB=.*")
10687 (string-append "HDF5_LIB="
10688 (assoc-ref inputs "hdf5") "/lib/libhdf5.a\n"))
10689 (("HDF5_CXX_INCLUDE=.*") "HDF5_CXX_INCLUDE=./hdf5/c++/src\n")
10690 (("HDF5_INCLUDE=.*") "HDF5_INCLUDE=./hdf5/src\n")
10691 ;; szip is non-free software
10692 (("cp \\$\\{SZIP_LIB\\}.*") "")
10693 (("PKG_LIBS = \\$\\{HDF5_LIB\\} \\$\\{SZIP_LIB\\}")
10694 "PKG_LIBS = ${HDF5_LIB}\n")))
10695 #t)))))
10696 (inputs
10697 `(("zlib" ,zlib)))
10698 (propagated-inputs
10699 `(("hdf5" ,hdf5)))
10700 (native-inputs
10701 `(("hdf5-source" ,(package-source hdf5))))
10702 (home-page "https://bioconductor.org/packages/Rhdf5lib")
10703 (synopsis "HDF5 library as an R package")
10704 (description "This package provides C and C++ HDF5 libraries for use in R
10705 packages.")
10706 (license license:artistic2.0)))
10707
10708 (define-public r-beachmat
10709 (package
10710 (name "r-beachmat")
10711 (version "1.0.2")
10712 (source
10713 (origin
10714 (method url-fetch)
10715 (uri (bioconductor-uri "beachmat" version))
10716 (sha256
10717 (base32
10718 "0b6dzja5fbx4dawb7ixj67mlhw4fy62pfp20mfp918fy96zmdwqz"))))
10719 (build-system r-build-system)
10720 (inputs
10721 `(("hdf5" ,hdf5)))
10722 (propagated-inputs
10723 `(("r-delayedarray" ,r-delayedarray)
10724 ("r-hdf5array" ,r-hdf5array)
10725 ("r-rcpp" ,r-rcpp)
10726 ("r-rhdf5" ,r-rhdf5)
10727 ("r-rhdf5lib" ,r-rhdf5lib)))
10728 (home-page "https://bioconductor.org/packages/beachmat")
10729 (synopsis "Compiling Bioconductor to handle each matrix type")
10730 (description "This package provides a consistent C++ class interface for a
10731 variety of commonly used matrix types, including sparse and HDF5-backed
10732 matrices.")
10733 (license license:gpl3)))
10734
10735 (define-public r-singlecellexperiment
10736 (package
10737 (name "r-singlecellexperiment")
10738 (version "1.0.0")
10739 (source
10740 (origin
10741 (method url-fetch)
10742 (uri (bioconductor-uri "SingleCellExperiment" version))
10743 (sha256
10744 (base32
10745 "1r276i97w64a5vdlg6952gkj7bls909p42zl8fn8yz87cdwyaars"))))
10746 (properties
10747 `((upstream-name . "SingleCellExperiment")))
10748 (build-system r-build-system)
10749 (propagated-inputs
10750 `(("r-biocgenerics" ,r-biocgenerics)
10751 ("r-s4vectors" ,r-s4vectors)
10752 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10753 (home-page "https://bioconductor.org/packages/SingleCellExperiment")
10754 (synopsis "S4 classes for single cell data")
10755 (description "This package defines an S4 class for storing data from
10756 single-cell experiments. This includes specialized methods to store and
10757 retrieve spike-in information, dimensionality reduction coordinates and size
10758 factors for each cell, along with the usual metadata for genes and
10759 libraries.")
10760 (license license:gpl3)))
10761
10762 (define-public r-scater
10763 (package
10764 (name "r-scater")
10765 (version "1.6.3")
10766 (source (origin
10767 (method url-fetch)
10768 (uri (bioconductor-uri "scater" version))
10769 (sha256
10770 (base32
10771 "0q3s96gf8saa1dq2fvmpl0jyj7bx3wrdfck3hanb8pxkcir2p7dn"))))
10772 (build-system r-build-system)
10773 (propagated-inputs
10774 `(("r-beachmat" ,r-beachmat)
10775 ("r-biobase" ,r-biobase)
10776 ("r-biocgenerics" ,r-biocgenerics)
10777 ("r-biomart" ,r-biomart)
10778 ("r-data-table" ,r-data-table)
10779 ("r-dplyr" ,r-dplyr)
10780 ("r-edger" ,r-edger)
10781 ("r-ggbeeswarm" ,r-ggbeeswarm)
10782 ("r-ggplot2" ,r-ggplot2)
10783 ("r-limma" ,r-limma)
10784 ("r-matrix" ,r-matrix)
10785 ("r-matrixstats" ,r-matrixstats)
10786 ("r-plyr" ,r-plyr)
10787 ("r-rcpp" ,r-rcpp)
10788 ("r-reshape2" ,r-reshape2)
10789 ("r-rhdf5" ,r-rhdf5)
10790 ("r-rhdf5lib" ,r-rhdf5lib)
10791 ("r-rjson" ,r-rjson)
10792 ("r-s4vectors" ,r-s4vectors)
10793 ("r-shiny" ,r-shiny)
10794 ("r-shinydashboard" ,r-shinydashboard)
10795 ("r-singlecellexperiment" ,r-singlecellexperiment)
10796 ("r-summarizedexperiment" ,r-summarizedexperiment)
10797 ("r-tximport" ,r-tximport)
10798 ("r-viridis" ,r-viridis)))
10799 (home-page "https://github.com/davismcc/scater")
10800 (synopsis "Single-cell analysis toolkit for gene expression data in R")
10801 (description "This package provides a collection of tools for doing
10802 various analyses of single-cell RNA-seq gene expression data, with a focus on
10803 quality control.")
10804 (license license:gpl2+)))
10805
10806 (define-public r-scran
10807 (package
10808 (name "r-scran")
10809 (version "1.6.8")
10810 (source
10811 (origin
10812 (method url-fetch)
10813 (uri (bioconductor-uri "scran" version))
10814 (sha256
10815 (base32
10816 "07wniyrh2fhhkz28v0bfgpvpi1hkkn2cvhacrvvvck142j79944x"))))
10817 (build-system r-build-system)
10818 (propagated-inputs
10819 `(("r-beachmat" ,r-beachmat)
10820 ("r-biocgenerics" ,r-biocgenerics)
10821 ("r-biocparallel" ,r-biocparallel)
10822 ("r-dt" ,r-dt)
10823 ("r-dynamictreecut" ,r-dynamictreecut)
10824 ("r-edger" ,r-edger)
10825 ("r-fnn" ,r-fnn)
10826 ("r-ggplot2" ,r-ggplot2)
10827 ("r-igraph" ,r-igraph)
10828 ("r-limma" ,r-limma)
10829 ("r-matrix" ,r-matrix)
10830 ("r-rcpp" ,r-rcpp)
10831 ("r-rhdf5lib" ,r-rhdf5lib)
10832 ("r-s4vectors" ,r-s4vectors)
10833 ("r-scater" ,r-scater)
10834 ("r-shiny" ,r-shiny)
10835 ("r-singlecellexperiment" ,r-singlecellexperiment)
10836 ("r-statmod" ,r-statmod)
10837 ("r-summarizedexperiment" ,r-summarizedexperiment)
10838 ("r-viridis" ,r-viridis)
10839 ("r-zoo" ,r-zoo)))
10840 (home-page "https://bioconductor.org/packages/scran")
10841 (synopsis "Methods for single-cell RNA-Seq data analysis")
10842 (description "This package implements a variety of low-level analyses of
10843 single-cell RNA-seq data. Methods are provided for normalization of
10844 cell-specific biases, assignment of cell cycle phase, and detection of highly
10845 variable and significantly correlated genes.")
10846 (license license:gpl3)))
10847
10848 (define-public r-delayedmatrixstats
10849 (package
10850 (name "r-delayedmatrixstats")
10851 (version "1.0.3")
10852 (source
10853 (origin
10854 (method url-fetch)
10855 (uri (bioconductor-uri "DelayedMatrixStats" version))
10856 (sha256
10857 (base32
10858 "1cxjbjdq9hg9cm95rci0al7a4pk2h73ym276ahw9q4977zbg6381"))))
10859 (properties
10860 `((upstream-name . "DelayedMatrixStats")))
10861 (build-system r-build-system)
10862 (propagated-inputs
10863 `(("r-delayedarray" ,r-delayedarray)
10864 ("r-iranges" ,r-iranges)
10865 ("r-matrix" ,r-matrix)
10866 ("r-matrixstats" ,r-matrixstats)
10867 ("r-s4vectors" ,r-s4vectors)))
10868 (home-page "https://github.com/PeteHaitch/DelayedMatrixStats")
10869 (synopsis "Functions that apply to rows and columns of DelayedMatrix objects")
10870 (description
10871 "This package provides a port of the @code{matrixStats} API for use with
10872 @code{DelayedMatrix} objects from the @code{DelayedArray} package. It
10873 contains high-performing functions operating on rows and columns of
10874 @code{DelayedMatrix} objects, e.g. @code{colMedians}, @code{rowMedians},
10875 @code{colRanks}, @code{rowRanks}, @code{colSds}, and @code{rowSds}. Functions
10876 are optimized per data type and for subsetted calculations such that both
10877 memory usage and processing time is minimized.")
10878 (license license:expat)))
10879
10880 (define-public r-dropbead
10881 (let ((commit "cf0be5ae5302684bd03e78ab65b142900bbbb840")
10882 (revision "1"))
10883 (package
10884 (name "r-dropbead")
10885 (version (string-append "0-" revision "." (string-take commit 7)))
10886 (source
10887 (origin
10888 (method git-fetch)
10889 (uri (git-reference
10890 (url "https://github.com/rajewsky-lab/dropbead.git")
10891 (commit commit)))
10892 (file-name (git-file-name name version))
10893 (sha256
10894 (base32
10895 "1b2lphsc236s1rdzlijxg8yl1jnqpwcvj4x938r89rqpj93jb780"))))
10896 (build-system r-build-system)
10897 (propagated-inputs
10898 `(("r-ggplot2" ,r-ggplot2)
10899 ("r-rcolorbrewer" ,r-rcolorbrewer)
10900 ("r-gridextra" ,r-gridextra)
10901 ("r-gplots" ,r-gplots)
10902 ("r-plyr" ,r-plyr)))
10903 (home-page "https://github.com/rajewsky-lab/dropbead")
10904 (synopsis "Basic exploration and analysis of Drop-seq data")
10905 (description "This package offers a quick and straight-forward way to
10906 explore and perform basic analysis of single cell sequencing data coming from
10907 droplet sequencing. It has been particularly tailored for Drop-seq.")
10908 (license license:gpl3))))
10909
10910 (define htslib-for-sambamba
10911 (let ((commit "2f3c3ea7b301f9b45737a793c0b2dcf0240e5ee5"))
10912 (package
10913 (inherit htslib)
10914 (name "htslib-for-sambamba")
10915 (version (string-append "1.3.1-1." (string-take commit 9)))
10916 (source
10917 (origin
10918 (method git-fetch)
10919 (uri (git-reference
10920 (url "https://github.com/lomereiter/htslib.git")
10921 (commit commit)))
10922 (file-name (string-append "htslib-" version "-checkout"))
10923 (sha256
10924 (base32
10925 "0g38g8s3npr0gjm9fahlbhiskyfws9l5i0x1ml3rakzj7az5l9c9"))))
10926 (arguments
10927 (substitute-keyword-arguments (package-arguments htslib)
10928 ((#:phases phases)
10929 `(modify-phases ,phases
10930 (add-after 'unpack 'bootstrap
10931 (lambda _
10932 (zero? (system* "autoreconf" "-vif"))))))))
10933 (native-inputs
10934 `(("autoconf" ,autoconf)
10935 ("automake" ,automake)
10936 ,@(package-native-inputs htslib))))))
10937
10938 (define-public sambamba
10939 (package
10940 (name "sambamba")
10941 (version "0.6.5")
10942 (source
10943 (origin
10944 (method url-fetch)
10945 (uri (string-append "https://github.com/lomereiter/sambamba/"
10946 "archive/v" version ".tar.gz"))
10947 (file-name (string-append name "-" version ".tar.gz"))
10948 (sha256
10949 (base32
10950 "17076gijd65a3f07zns2gvbgahiz5lriwsa6dq353ss3jl85d8vy"))))
10951 (build-system gnu-build-system)
10952 (arguments
10953 `(#:tests? #f ; there is no test target
10954 #:make-flags
10955 '("D_COMPILER=ldc2"
10956 ;; Override "--compiler" flag only.
10957 "D_FLAGS=--compiler=ldc2 -IBioD -g -d"
10958 "sambamba-ldmd2-64")
10959 #:phases
10960 (modify-phases %standard-phases
10961 (delete 'configure)
10962 (add-after 'unpack 'place-biod
10963 (lambda* (#:key inputs #:allow-other-keys)
10964 (copy-recursively (assoc-ref inputs "biod") "BioD")
10965 #t))
10966 (add-after 'unpack 'unbundle-prerequisites
10967 (lambda _
10968 (substitute* "Makefile"
10969 ((" htslib-static lz4-static") ""))
10970 #t))
10971 (replace 'install
10972 (lambda* (#:key outputs #:allow-other-keys)
10973 (let* ((out (assoc-ref outputs "out"))
10974 (bin (string-append out "/bin")))
10975 (mkdir-p bin)
10976 (install-file "build/sambamba" bin)
10977 #t))))))
10978 (native-inputs
10979 `(("ldc" ,ldc)
10980 ("rdmd" ,rdmd)
10981 ("biod"
10982 ,(let ((commit "1248586b54af4bd4dfb28ebfebfc6bf012e7a587"))
10983 (origin
10984 (method git-fetch)
10985 (uri (git-reference
10986 (url "https://github.com/biod/BioD.git")
10987 (commit commit)))
10988 (file-name (string-append "biod-"
10989 (string-take commit 9)
10990 "-checkout"))
10991 (sha256
10992 (base32
10993 "1m8hi1n7x0ri4l6s9i0x6jg4z4v94xrfdzp7mbizdipfag0m17g3")))))))
10994 (inputs
10995 `(("lz4" ,lz4)
10996 ("htslib" ,htslib-for-sambamba)))
10997 (home-page "http://lomereiter.github.io/sambamba")
10998 (synopsis "Tools for working with SAM/BAM data")
10999 (description "Sambamba is a high performance modern robust and
11000 fast tool (and library), written in the D programming language, for
11001 working with SAM and BAM files. Current parallelised functionality is
11002 an important subset of samtools functionality, including view, index,
11003 sort, markdup, and depth.")
11004 (license license:gpl2+)))
11005
11006 (define-public ritornello
11007 (package
11008 (name "ritornello")
11009 (version "1.0.0")
11010 (source (origin
11011 (method url-fetch)
11012 (uri (string-append "https://github.com/KlugerLab/"
11013 "Ritornello/archive/v"
11014 version ".tar.gz"))
11015 (file-name (string-append name "-" version ".tar.gz"))
11016 (sha256
11017 (base32
11018 "02nik86gq9ljjriv6pamwlmqnfky3ads1fpklx6mc3hx6k40pg38"))))
11019 (build-system gnu-build-system)
11020 (arguments
11021 `(#:tests? #f ; there are no tests
11022 #:phases
11023 (modify-phases %standard-phases
11024 (add-after 'unpack 'patch-samtools-references
11025 (lambda* (#:key inputs #:allow-other-keys)
11026 (substitute* '("src/SamStream.h"
11027 "src/BufferedGenomeReader.h")
11028 (("<sam.h>") "<samtools/sam.h>"))
11029 #t))
11030 (delete 'configure)
11031 (replace 'install
11032 (lambda* (#:key inputs outputs #:allow-other-keys)
11033 (let* ((out (assoc-ref outputs "out"))
11034 (bin (string-append out "/bin/")))
11035 (mkdir-p bin)
11036 (install-file "bin/Ritornello" bin)
11037 #t))))))
11038 (inputs
11039 `(("samtools" ,samtools-0.1)
11040 ("fftw" ,fftw)
11041 ("boost" ,boost)
11042 ("zlib" ,zlib)))
11043 (home-page "https://github.com/KlugerLab/Ritornello")
11044 (synopsis "Control-free peak caller for ChIP-seq data")
11045 (description "Ritornello is a ChIP-seq peak calling algorithm based on
11046 signal processing that can accurately call binding events without the need to
11047 do a pair total DNA input or IgG control sample. It has been tested for use
11048 with narrow binding events such as transcription factor ChIP-seq.")
11049 (license license:gpl3+)))
11050
11051 (define-public trim-galore
11052 (package
11053 (name "trim-galore")
11054 (version "0.4.2")
11055 (source
11056 (origin
11057 (method url-fetch)
11058 (uri (string-append "http://www.bioinformatics.babraham.ac.uk/"
11059 "projects/trim_galore/trim_galore_v"
11060 version ".zip"))
11061 (sha256
11062 (base32
11063 "0b9qdxi4521gsrjvbhgky8g7kry9b5nx3byzaxkgxz7p4k8bn1mn"))))
11064 (build-system gnu-build-system)
11065 (arguments
11066 `(#:tests? #f ; no tests
11067 #:phases
11068 (modify-phases %standard-phases
11069 ;; The archive contains plain files.
11070 (replace 'unpack
11071 (lambda* (#:key source #:allow-other-keys)
11072 (zero? (system* "unzip" source))))
11073 (delete 'configure)
11074 (delete 'build)
11075 (add-after 'unpack 'hardcode-tool-references
11076 (lambda* (#:key inputs #:allow-other-keys)
11077 (substitute* "trim_galore"
11078 (("\\$path_to_cutadapt = 'cutadapt'")
11079 (string-append "$path_to_cutadapt = '"
11080 (assoc-ref inputs "cutadapt")
11081 "/bin/cutadapt'"))
11082 (("\\| gzip")
11083 (string-append "| "
11084 (assoc-ref inputs "gzip")
11085 "/bin/gzip"))
11086 (("\"gunzip")
11087 (string-append "\""
11088 (assoc-ref inputs "gzip")
11089 "/bin/gunzip")))
11090 #t))
11091 (replace 'install
11092 (lambda* (#:key outputs #:allow-other-keys)
11093 (let ((bin (string-append (assoc-ref outputs "out")
11094 "/bin")))
11095 (mkdir-p bin)
11096 (install-file "trim_galore" bin)
11097 #t))))))
11098 (inputs
11099 `(("gzip" ,gzip)
11100 ("perl" ,perl)
11101 ("cutadapt" ,cutadapt)))
11102 (native-inputs
11103 `(("unzip" ,unzip)))
11104 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/trim_galore/")
11105 (synopsis "Wrapper around Cutadapt and FastQC")
11106 (description "Trim Galore! is a wrapper script to automate quality and
11107 adapter trimming as well as quality control, with some added functionality to
11108 remove biased methylation positions for RRBS sequence files.")
11109 (license license:gpl3+)))
11110
11111 (define-public gess
11112 (package
11113 (name "gess")
11114 (version "1.0")
11115 (source (origin
11116 (method url-fetch)
11117 (uri (string-append "http://compbio.uthscsa.edu/"
11118 "GESS_Web/files/"
11119 "gess-" version ".src.tar.gz"))
11120 (sha256
11121 (base32
11122 "0hyk403kxscclzfs24pvdgiv0wm03kjcziqdrp5w46cb049gz0d7"))))
11123 (build-system gnu-build-system)
11124 (arguments
11125 `(#:tests? #f ; no tests
11126 #:phases
11127 (modify-phases %standard-phases
11128 (delete 'configure)
11129 (delete 'build)
11130 (replace 'install
11131 (lambda* (#:key inputs outputs #:allow-other-keys)
11132 (let* ((python (assoc-ref inputs "python"))
11133 (out (assoc-ref outputs "out"))
11134 (bin (string-append out "/bin/"))
11135 (target (string-append
11136 out "/lib/python2.7/site-packages/gess/")))
11137 (mkdir-p target)
11138 (copy-recursively "." target)
11139 ;; Make GESS.py executable
11140 (chmod (string-append target "GESS.py") #o555)
11141 ;; Add Python shebang to the top and make Matplotlib
11142 ;; usable.
11143 (substitute* (string-append target "GESS.py")
11144 (("\"\"\"Description:" line)
11145 (string-append "#!" (which "python") "
11146 import matplotlib
11147 matplotlib.use('Agg')
11148 " line)))
11149 ;; Make sure GESS has all modules in its path
11150 (wrap-program (string-append target "GESS.py")
11151 `("PYTHONPATH" ":" prefix (,target ,(getenv "PYTHONPATH"))))
11152 (mkdir-p bin)
11153 (symlink (string-append target "GESS.py")
11154 (string-append bin "GESS.py"))
11155 #t))))))
11156 (inputs
11157 `(("python" ,python-2)
11158 ("python2-pysam" ,python2-pysam)
11159 ("python2-scipy" ,python2-scipy)
11160 ("python2-numpy" ,python2-numpy)
11161 ("python2-networkx" ,python2-networkx)
11162 ("python2-biopython" ,python2-biopython)))
11163 (home-page "http://compbio.uthscsa.edu/GESS_Web/")
11164 (synopsis "Detect exon-skipping events from raw RNA-seq data")
11165 (description
11166 "GESS is an implementation of a novel computational method to detect de
11167 novo exon-skipping events directly from raw RNA-seq data without the prior
11168 knowledge of gene annotation information. GESS stands for the graph-based
11169 exon-skipping scanner detection scheme.")
11170 (license license:bsd-3)))
11171
11172 (define-public phylip
11173 (package
11174 (name "phylip")
11175 (version "3.696")
11176 (source
11177 (origin
11178 (method url-fetch)
11179 (uri (string-append "http://evolution.gs.washington.edu/phylip/"
11180 "download/phylip-" version ".tar.gz"))
11181 (sha256
11182 (base32
11183 "01jar1rayhr2gba2pgbw49m56rc5z4p5wn3ds0m188hrlln4a2nd"))))
11184 (build-system gnu-build-system)
11185 (arguments
11186 `(#:tests? #f ; no check target
11187 #:make-flags (list "-f" "Makefile.unx" "install")
11188 #:parallel-build? #f ; not supported
11189 #:phases
11190 (modify-phases %standard-phases
11191 (add-after 'unpack 'enter-dir
11192 (lambda _ (chdir "src") #t))
11193 (delete 'configure)
11194 (replace 'install
11195 (lambda* (#:key inputs outputs #:allow-other-keys)
11196 (let ((target (string-append (assoc-ref outputs "out")
11197 "/bin")))
11198 (mkdir-p target)
11199 (for-each (lambda (file)
11200 (install-file file target))
11201 (find-files "../exe" ".*")))
11202 #t)))))
11203 (home-page "http://evolution.genetics.washington.edu/phylip/")
11204 (synopsis "Tools for inferring phylogenies")
11205 (description "PHYLIP (the PHYLogeny Inference Package) is a package of
11206 programs for inferring phylogenies (evolutionary trees).")
11207 (license license:bsd-2)))
11208
11209 (define-public imp
11210 (package
11211 (name "imp")
11212 (version "2.6.2")
11213 (source
11214 (origin
11215 (method url-fetch)
11216 (uri (string-append "https://integrativemodeling.org/"
11217 version "/download/imp-" version ".tar.gz"))
11218 (sha256
11219 (base32
11220 "0lxqx7vh79d771svr611dkilp6sn30qrbw8zvscbrm37v38d2j6h"))))
11221 (build-system cmake-build-system)
11222 (arguments
11223 `(;; FIXME: Some tests fail because they produce warnings, others fail
11224 ;; because the PYTHONPATH does not include the modeller's directory.
11225 #:tests? #f))
11226 (inputs
11227 `(("boost" ,boost)
11228 ("gsl" ,gsl)
11229 ("swig" ,swig)
11230 ("hdf5" ,hdf5)
11231 ("fftw" ,fftw)
11232 ("python" ,python-2)))
11233 (propagated-inputs
11234 `(("python2-numpy" ,python2-numpy)
11235 ("python2-scipy" ,python2-scipy)
11236 ("python2-pandas" ,python2-pandas)
11237 ("python2-scikit-learn" ,python2-scikit-learn)
11238 ("python2-networkx" ,python2-networkx)))
11239 (home-page "https://integrativemodeling.org")
11240 (synopsis "Integrative modeling platform")
11241 (description "IMP's broad goal is to contribute to a comprehensive
11242 structural characterization of biomolecules ranging in size and complexity
11243 from small peptides to large macromolecular assemblies, by integrating data
11244 from diverse biochemical and biophysical experiments. IMP provides a C++ and
11245 Python toolbox for solving complex modeling problems, and a number of
11246 applications for tackling some common problems in a user-friendly way.")
11247 ;; IMP is largely available under the GNU Lesser GPL; see the file
11248 ;; COPYING.LGPL for the full text of this license. Some IMP modules are
11249 ;; available under the GNU GPL (see the file COPYING.GPL).
11250 (license (list license:lgpl2.1+
11251 license:gpl3+))))
11252
11253 (define-public tadbit
11254 (package
11255 (name "tadbit")
11256 (version "0.2")
11257 (source (origin
11258 (method url-fetch)
11259 (uri (string-append "https://github.com/3DGenomes/TADbit/"
11260 "archive/v" version ".tar.gz"))
11261 (file-name (string-append name "-" version ".tar.gz"))
11262 (sha256
11263 (base32
11264 "1cnfqrl4685zar4nnw94j94nhvl2h29jm448nadqi1h05z6fdk4f"))))
11265 (build-system python-build-system)
11266 (arguments
11267 `(;; Tests are included and must be run after installation, but
11268 ;; they are incomplete and thus cannot be run.
11269 #:tests? #f
11270 #:python ,python-2
11271 #:phases
11272 (modify-phases %standard-phases
11273 (add-after 'unpack 'fix-problems-with-setup.py
11274 (lambda* (#:key outputs #:allow-other-keys)
11275 ;; setup.py opens these files for writing
11276 (chmod "_pytadbit/_version.py" #o664)
11277 (chmod "README.rst" #o664)
11278
11279 ;; Don't attempt to install the bash completions to
11280 ;; the home directory.
11281 (rename-file "extras/.bash_completion"
11282 "extras/tadbit")
11283 (substitute* "setup.py"
11284 (("\\(path.expanduser\\('~'\\)")
11285 (string-append "(\""
11286 (assoc-ref outputs "out")
11287 "/etc/bash_completion.d\""))
11288 (("extras/\\.bash_completion")
11289 "extras/tadbit"))
11290 #t)))))
11291 (inputs
11292 ;; TODO: add Chimera for visualization
11293 `(("imp" ,imp)
11294 ("mcl" ,mcl)
11295 ("python2-scipy" ,python2-scipy)
11296 ("python2-numpy" ,python2-numpy)
11297 ("python2-matplotlib" ,python2-matplotlib)
11298 ("python2-pysam" ,python2-pysam)))
11299 (home-page "http://3dgenomes.github.io/TADbit/")
11300 (synopsis "Analyze, model, and explore 3C-based data")
11301 (description
11302 "TADbit is a complete Python library to deal with all steps to analyze,
11303 model, and explore 3C-based data. With TADbit the user can map FASTQ files to
11304 obtain raw interaction binned matrices (Hi-C like matrices), normalize and
11305 correct interaction matrices, identify and compare the so-called
11306 @dfn{Topologically Associating Domains} (TADs), build 3D models from the
11307 interaction matrices, and finally, extract structural properties from the
11308 models. TADbit is complemented by TADkit for visualizing 3D models.")
11309 (license license:gpl3+)))
11310
11311 (define-public kentutils
11312 (package
11313 (name "kentutils")
11314 ;; 302.1.0 is out, but the only difference is the inclusion of
11315 ;; pre-built binaries.
11316 (version "302.0.0")
11317 (source
11318 (origin
11319 (method url-fetch)
11320 (uri (string-append "https://github.com/ENCODE-DCC/kentUtils/"
11321 "archive/v" version ".tar.gz"))
11322 (file-name (string-append name "-" version ".tar.gz"))
11323 (sha256
11324 (base32
11325 "134aja3k1cj32kbk1nnw0q9gxjb2krr15q6sga8qldzvc0585rmm"))
11326 (modules '((guix build utils)
11327 (srfi srfi-26)
11328 (ice-9 ftw)))
11329 (snippet
11330 '(begin
11331 ;; Only the contents of the specified directories are free
11332 ;; for all uses, so we remove the rest. "hg/autoSql" and
11333 ;; "hg/autoXml" are nominally free, but they depend on a
11334 ;; library that is built from the sources in "hg/lib",
11335 ;; which is nonfree.
11336 (let ((free (list "." ".."
11337 "utils" "lib" "inc" "tagStorm"
11338 "parasol" "htslib"))
11339 (directory? (lambda (file)
11340 (eq? 'directory (stat:type (stat file))))))
11341 (for-each (lambda (file)
11342 (and (directory? file)
11343 (delete-file-recursively file)))
11344 (map (cut string-append "src/" <>)
11345 (scandir "src"
11346 (lambda (file)
11347 (not (member file free)))))))
11348 ;; Only make the utils target, not the userApps target,
11349 ;; because that requires libraries we won't build.
11350 (substitute* "Makefile"
11351 ((" userApps") " utils"))
11352 ;; Only build libraries that are free.
11353 (substitute* "src/makefile"
11354 (("DIRS =.*") "DIRS =\n")
11355 (("cd jkOwnLib.*") "")
11356 ((" hgLib") "")
11357 (("cd hg.*") ""))
11358 (substitute* "src/utils/makefile"
11359 ;; These tools depend on "jkhgap.a", which is part of the
11360 ;; nonfree "src/hg/lib" directory.
11361 (("raSqlQuery") "")
11362 (("pslLiftSubrangeBlat") "")
11363
11364 ;; Do not build UCSC tools, which may require nonfree
11365 ;; components.
11366 (("ALL_APPS =.*") "ALL_APPS = $(UTILS_APPLIST)\n"))
11367 #t))))
11368 (build-system gnu-build-system)
11369 (arguments
11370 `( ;; There is no global test target and the test target for
11371 ;; individual tools depends on input files that are not
11372 ;; included.
11373 #:tests? #f
11374 #:phases
11375 (modify-phases %standard-phases
11376 (add-after 'unpack 'fix-paths
11377 (lambda _
11378 (substitute* "Makefile"
11379 (("/bin/echo") (which "echo")))
11380 #t))
11381 (add-after 'unpack 'prepare-samtabix
11382 (lambda* (#:key inputs #:allow-other-keys)
11383 (copy-recursively (assoc-ref inputs "samtabix")
11384 "samtabix")
11385 #t))
11386 (delete 'configure)
11387 (replace 'install
11388 (lambda* (#:key outputs #:allow-other-keys)
11389 (let ((bin (string-append (assoc-ref outputs "out")
11390 "/bin")))
11391 (copy-recursively "bin" bin))
11392 #t)))))
11393 (native-inputs
11394 `(("samtabix"
11395 ,(origin
11396 (method git-fetch)
11397 (uri (git-reference
11398 (url "http://genome-source.cse.ucsc.edu/samtabix.git")
11399 (commit "10fd107909c1ac4d679299908be4262a012965ba")))
11400 (sha256
11401 (base32
11402 "0c1nj64l42v395sa84n7az43xiap4i6f9n9dfz4058aqiwkhkmma"))))))
11403 (inputs
11404 `(("zlib" ,zlib)
11405 ("tcsh" ,tcsh)
11406 ("perl" ,perl)
11407 ("libpng" ,libpng)
11408 ("mysql" ,mysql)
11409 ("openssl" ,openssl)))
11410 (home-page "http://genome.cse.ucsc.edu/index.html")
11411 (synopsis "Assorted bioinformatics utilities")
11412 (description "This package provides the kentUtils, a selection of
11413 bioinformatics utilities used in combination with the UCSC genome
11414 browser.")
11415 ;; Only a subset of the sources are released under a non-copyleft
11416 ;; free software license. All other sources are removed in a
11417 ;; snippet. See this bug report for an explanation of how the
11418 ;; license statements apply:
11419 ;; https://github.com/ENCODE-DCC/kentUtils/issues/12
11420 (license (license:non-copyleft
11421 "http://genome.ucsc.edu/license/"
11422 "The contents of this package are free for all uses."))))
11423
11424 (define-public f-seq
11425 (let ((commit "6ccded34cff38cf432deed8503648b4a66953f9b")
11426 (revision "1"))
11427 (package
11428 (name "f-seq")
11429 (version (string-append "1.1-" revision "." (string-take commit 7)))
11430 (source (origin
11431 (method git-fetch)
11432 (uri (git-reference
11433 (url "https://github.com/aboyle/F-seq.git")
11434 (commit commit)))
11435 (file-name (string-append name "-" version))
11436 (sha256
11437 (base32
11438 "1nk33k0yajg2id4g59bc4szr58r2q6pdq42vgcw054m8ip9wv26h"))
11439 (modules '((guix build utils)))
11440 ;; Remove bundled Java library archives.
11441 (snippet
11442 '(begin
11443 (for-each delete-file (find-files "lib" ".*"))
11444 #t))))
11445 (build-system ant-build-system)
11446 (arguments
11447 `(#:tests? #f ; no tests included
11448 #:phases
11449 (modify-phases %standard-phases
11450 (replace 'install
11451 (lambda* (#:key inputs outputs #:allow-other-keys)
11452 (let* ((target (assoc-ref outputs "out"))
11453 (doc (string-append target "/share/doc/f-seq/")))
11454 (mkdir-p target)
11455 (mkdir-p doc)
11456 (substitute* "bin/linux/fseq"
11457 (("java") (which "java"))
11458 (("\\$REALDIR/../lib/commons-cli-1.1.jar")
11459 (string-append (assoc-ref inputs "java-commons-cli")
11460 "/share/java/commons-cli.jar"))
11461 (("REALDIR=.*")
11462 (string-append "REALDIR=" target "/bin\n")))
11463 (install-file "README.txt" doc)
11464 (install-file "bin/linux/fseq" (string-append target "/bin"))
11465 (install-file "build~/fseq.jar" (string-append target "/lib"))
11466 (copy-recursively "lib" (string-append target "/lib"))
11467 #t))))))
11468 (inputs
11469 `(("perl" ,perl)
11470 ("java-commons-cli" ,java-commons-cli)))
11471 (home-page "http://fureylab.web.unc.edu/software/fseq/")
11472 (synopsis "Feature density estimator for high-throughput sequence tags")
11473 (description
11474 "F-Seq is a software package that generates a continuous tag sequence
11475 density estimation allowing identification of biologically meaningful sites
11476 such as transcription factor binding sites (ChIP-seq) or regions of open
11477 chromatin (DNase-seq). Output can be displayed directly in the UCSC Genome
11478 Browser.")
11479 (license license:gpl3+))))
11480
11481 (define-public bismark
11482 (package
11483 (name "bismark")
11484 (version "0.16.3")
11485 (source
11486 (origin
11487 (method url-fetch)
11488 (uri (string-append "https://github.com/FelixKrueger/Bismark/"
11489 "archive/" version ".tar.gz"))
11490 (file-name (string-append name "-" version ".tar.gz"))
11491 (sha256
11492 (base32
11493 "1204i0pa02ll2jn5pnxypkclnskvv7a2nwh5nxhagmhxk9wfv9sq"))))
11494 (build-system perl-build-system)
11495 (arguments
11496 `(#:tests? #f ; there are no tests
11497 #:phases
11498 (modify-phases %standard-phases
11499 (delete 'configure)
11500 (delete 'build)
11501 (replace 'install
11502 (lambda* (#:key outputs #:allow-other-keys)
11503 (let ((bin (string-append (assoc-ref outputs "out")
11504 "/bin"))
11505 (docdir (string-append (assoc-ref outputs "out")
11506 "/share/doc/bismark"))
11507 (docs '("Bismark_User_Guide.pdf"
11508 "RELEASE_NOTES.txt"))
11509 (scripts '("bismark"
11510 "bismark_genome_preparation"
11511 "bismark_methylation_extractor"
11512 "bismark2bedGraph"
11513 "bismark2report"
11514 "coverage2cytosine"
11515 "deduplicate_bismark"
11516 "bismark_sitrep.tpl"
11517 "bam2nuc"
11518 "bismark2summary")))
11519 (mkdir-p docdir)
11520 (mkdir-p bin)
11521 (for-each (lambda (file) (install-file file bin))
11522 scripts)
11523 (for-each (lambda (file) (install-file file docdir))
11524 docs)
11525 #t))))))
11526 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/bismark/")
11527 (synopsis "Map bisulfite treated sequence reads and analyze methylation")
11528 (description "Bismark is a program to map bisulfite treated sequencing
11529 reads to a genome of interest and perform methylation calls in a single step.
11530 The output can be easily imported into a genome viewer, such as SeqMonk, and
11531 enables a researcher to analyse the methylation levels of their samples
11532 straight away. Its main features are:
11533
11534 @itemize
11535 @item Bisulfite mapping and methylation calling in one single step
11536 @item Supports single-end and paired-end read alignments
11537 @item Supports ungapped and gapped alignments
11538 @item Alignment seed length, number of mismatches etc are adjustable
11539 @item Output discriminates between cytosine methylation in CpG, CHG
11540 and CHH context
11541 @end itemize\n")
11542 (license license:gpl3+)))
11543
11544 (define-public paml
11545 (package
11546 (name "paml")
11547 (version "4.9e")
11548 (source (origin
11549 (method url-fetch)
11550 (uri (string-append "http://abacus.gene.ucl.ac.uk/software/"
11551 "paml" version ".tgz"))
11552 (sha256
11553 (base32
11554 "13zf6h9fiqghwhch2h06x1zdr6s42plsnqahflp5g7myr3han3s6"))
11555 (modules '((guix build utils)))
11556 ;; Remove Windows binaries
11557 (snippet
11558 '(begin
11559 (for-each delete-file (find-files "." "\\.exe$"))
11560 #t))))
11561 (build-system gnu-build-system)
11562 (arguments
11563 `(#:tests? #f ; there are no tests
11564 #:make-flags '("CC=gcc")
11565 #:phases
11566 (modify-phases %standard-phases
11567 (replace 'configure
11568 (lambda _
11569 (substitute* "src/BFdriver.c"
11570 (("/bin/bash") (which "bash")))
11571 (chdir "src")
11572 #t))
11573 (replace 'install
11574 (lambda* (#:key outputs #:allow-other-keys)
11575 (let ((tools '("baseml" "basemlg" "codeml"
11576 "pamp" "evolver" "yn00" "chi2"))
11577 (bin (string-append (assoc-ref outputs "out") "/bin"))
11578 (docdir (string-append (assoc-ref outputs "out")
11579 "/share/doc/paml")))
11580 (mkdir-p bin)
11581 (for-each (lambda (file) (install-file file bin)) tools)
11582 (copy-recursively "../doc" docdir)
11583 #t))))))
11584 (home-page "http://abacus.gene.ucl.ac.uk/software/paml.html")
11585 (synopsis "Phylogentic analysis by maximum likelihood")
11586 (description "PAML (for Phylogentic Analysis by Maximum Likelihood)
11587 contains a few programs for model fitting and phylogenetic tree reconstruction
11588 using nucleotide or amino-acid sequence data.")
11589 ;; GPLv3 only
11590 (license license:gpl3)))
11591
11592 (define-public kallisto
11593 (package
11594 (name "kallisto")
11595 (version "0.43.1")
11596 (source (origin
11597 (method url-fetch)
11598 (uri (string-append "https://github.com/pachterlab/"
11599 "kallisto/archive/v" version ".tar.gz"))
11600 (file-name (string-append name "-" version ".tar.gz"))
11601 (sha256
11602 (base32
11603 "03j3iqhvq7ya3c91gidly3k3jvgm97vjq4scihrlxh315j696r11"))))
11604 (build-system cmake-build-system)
11605 (arguments `(#:tests? #f)) ; no "check" target
11606 (inputs
11607 `(("hdf5" ,hdf5)
11608 ("zlib" ,zlib)))
11609 (home-page "http://pachterlab.github.io/kallisto/")
11610 (synopsis "Near-optimal RNA-Seq quantification")
11611 (description
11612 "Kallisto is a program for quantifying abundances of transcripts from
11613 RNA-Seq data, or more generally of target sequences using high-throughput
11614 sequencing reads. It is based on the novel idea of pseudoalignment for
11615 rapidly determining the compatibility of reads with targets, without the need
11616 for alignment. Pseudoalignment of reads preserves the key information needed
11617 for quantification, and kallisto is therefore not only fast, but also as
11618 accurate as existing quantification tools.")
11619 (license license:bsd-2)))
11620
11621 (define-public libgff
11622 (package
11623 (name "libgff")
11624 (version "1.0")
11625 (source (origin
11626 (method url-fetch)
11627 (uri (string-append
11628 "https://github.com/Kingsford-Group/"
11629 "libgff/archive/v" version ".tar.gz"))
11630 (file-name (string-append name "-" version ".tar.gz"))
11631 (sha256
11632 (base32
11633 "0vc4nxyhlm6g9vvmx5l4lfs5pnvixsv1hiiy4kddf2y3p6jna8ls"))))
11634 (build-system cmake-build-system)
11635 (arguments `(#:tests? #f)) ; no tests included
11636 (home-page "https://github.com/Kingsford-Group/libgff")
11637 (synopsis "Parser library for reading/writing GFF files")
11638 (description "This is a simple \"libraryfication\" of the GFF/GTF parsing
11639 code that is used in the Cufflinks codebase. The goal of this library is to
11640 provide this functionality without the necessity of drawing in a heavy-weight
11641 dependency like SeqAn.")
11642 (license (license:x11-style "http://www.boost.org/LICENSE_1_0.txt"))))
11643
11644 (define-public libdivsufsort
11645 (package
11646 (name "libdivsufsort")
11647 (version "2.0.1")
11648 (source (origin
11649 (method git-fetch)
11650 (uri (git-reference
11651 (url "https://github.com/y-256/libdivsufsort.git")
11652 (commit version)))
11653 (sha256
11654 (base32
11655 "0fgdz9fzihlvjjrxy01md1bv9vh12rkgkwbm90b1hj5xpbaqp7z2"))))
11656 (build-system cmake-build-system)
11657 (arguments
11658 '(#:tests? #f ; there are no tests
11659 #:configure-flags
11660 ;; Needed for rapmap and sailfish.
11661 '("-DBUILD_DIVSUFSORT64=ON")))
11662 (home-page "https://github.com/y-256/libdivsufsort")
11663 (synopsis "Lightweight suffix-sorting library")
11664 (description "libdivsufsort is a software library that implements a
11665 lightweight suffix array construction algorithm. This library provides a
11666 simple and an efficient C API to construct a suffix array and a
11667 Burrows-Wheeler transformed string from a given string over a constant-size
11668 alphabet. The algorithm runs in O(n log n) worst-case time using only 5n+O(1)
11669 bytes of memory space, where n is the length of the string.")
11670 (license license:expat)))
11671
11672 (define-public sailfish
11673 (package
11674 (name "sailfish")
11675 (version "0.10.1")
11676 (source (origin
11677 (method url-fetch)
11678 (uri
11679 (string-append "https://github.com/kingsfordgroup/"
11680 "sailfish/archive/v" version ".tar.gz"))
11681 (file-name (string-append name "-" version ".tar.gz"))
11682 (sha256
11683 (base32
11684 "1inn60dxiwsz8g9w7kvfhjxj4bwfb0r12dyhpzzhfbig712dkmm0"))
11685 (modules '((guix build utils)))
11686 (snippet
11687 '(begin
11688 ;; Delete bundled headers for eigen3.
11689 (delete-file-recursively "include/eigen3/")
11690 #t))))
11691 (build-system cmake-build-system)
11692 (arguments
11693 `(#:configure-flags
11694 (list (string-append "-DBOOST_INCLUDEDIR="
11695 (assoc-ref %build-inputs "boost")
11696 "/include/")
11697 (string-append "-DBOOST_LIBRARYDIR="
11698 (assoc-ref %build-inputs "boost")
11699 "/lib/")
11700 (string-append "-DBoost_LIBRARIES="
11701 "-lboost_iostreams "
11702 "-lboost_filesystem "
11703 "-lboost_system "
11704 "-lboost_thread "
11705 "-lboost_timer "
11706 "-lboost_chrono "
11707 "-lboost_program_options")
11708 "-DBoost_FOUND=TRUE"
11709 ;; Don't download RapMap---we already have it!
11710 "-DFETCHED_RAPMAP=1")
11711 ;; Tests must be run after installation and the location of the test
11712 ;; data file must be overridden. But the tests fail. It looks like
11713 ;; they are not really meant to be run.
11714 #:tests? #f
11715 #:phases
11716 (modify-phases %standard-phases
11717 ;; Boost cannot be found, even though it's right there.
11718 (add-after 'unpack 'do-not-look-for-boost
11719 (lambda* (#:key inputs #:allow-other-keys)
11720 (substitute* "CMakeLists.txt"
11721 (("find_package\\(Boost 1\\.53\\.0") "#"))))
11722 (add-after 'unpack 'do-not-assign-to-macro
11723 (lambda _
11724 (substitute* "include/spdlog/details/format.cc"
11725 (("const unsigned CHAR_WIDTH = 1;") ""))))
11726 (add-after 'unpack 'prepare-rapmap
11727 (lambda* (#:key inputs #:allow-other-keys)
11728 (let ((src "external/install/src/rapmap/")
11729 (include "external/install/include/rapmap/")
11730 (rapmap (assoc-ref inputs "rapmap")))
11731 (mkdir-p "/tmp/rapmap")
11732 (system* "tar" "xf"
11733 (assoc-ref inputs "rapmap")
11734 "-C" "/tmp/rapmap"
11735 "--strip-components=1")
11736 (mkdir-p src)
11737 (mkdir-p include)
11738 (for-each (lambda (file)
11739 (install-file file src))
11740 (find-files "/tmp/rapmap/src" "\\.(c|cpp)"))
11741 (copy-recursively "/tmp/rapmap/include" include))))
11742 (add-after 'unpack 'use-system-libraries
11743 (lambda* (#:key inputs #:allow-other-keys)
11744 (substitute* '("src/SailfishIndexer.cpp"
11745 "src/SailfishUtils.cpp"
11746 "src/SailfishQuantify.cpp"
11747 "src/FASTAParser.cpp"
11748 "include/PCA.hpp"
11749 "include/SailfishUtils.hpp"
11750 "include/SailfishIndex.hpp"
11751 "include/CollapsedEMOptimizer.hpp"
11752 "src/CollapsedEMOptimizer.cpp")
11753 (("#include \"jellyfish/config.h\"") ""))
11754 (substitute* "src/CMakeLists.txt"
11755 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
11756 (string-append (assoc-ref inputs "jellyfish")
11757 "/include/jellyfish-" ,(package-version jellyfish)))
11758 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
11759 (string-append (assoc-ref inputs "jellyfish")
11760 "/lib/libjellyfish-2.0.a"))
11761 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
11762 (string-append (assoc-ref inputs "libdivsufsort")
11763 "/lib/libdivsufsort.so"))
11764 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
11765 (string-append (assoc-ref inputs "libdivsufsort")
11766 "/lib/libdivsufsort64.so")))
11767 (substitute* "CMakeLists.txt"
11768 ;; Don't prefer static libs
11769 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
11770 (("find_package\\(Jellyfish.*") "")
11771 (("ExternalProject_Add\\(libjellyfish") "message(")
11772 (("ExternalProject_Add\\(libgff") "message(")
11773 (("ExternalProject_Add\\(libsparsehash") "message(")
11774 (("ExternalProject_Add\\(libdivsufsort") "message("))
11775
11776 ;; Ensure that Eigen headers can be found
11777 (setenv "CPLUS_INCLUDE_PATH"
11778 (string-append (getenv "CPLUS_INCLUDE_PATH")
11779 ":"
11780 (assoc-ref inputs "eigen")
11781 "/include/eigen3")))))))
11782 (inputs
11783 `(("boost" ,boost)
11784 ("eigen" ,eigen)
11785 ("jemalloc" ,jemalloc)
11786 ("jellyfish" ,jellyfish)
11787 ("sparsehash" ,sparsehash)
11788 ("rapmap" ,(origin
11789 (method git-fetch)
11790 (uri (git-reference
11791 (url "https://github.com/COMBINE-lab/RapMap.git")
11792 (commit (string-append "sf-v" version))))
11793 (file-name (string-append "rapmap-sf-v" version "-checkout"))
11794 (sha256
11795 (base32
11796 "1hv79l5i576ykv5a1srj2p0q36yvyl5966m0fcy2lbi169ipjakf"))
11797 (modules '((guix build utils)))
11798 ;; These files are expected to be excluded.
11799 (snippet
11800 '(begin (delete-file-recursively "include/spdlog")
11801 (for-each delete-file '("include/xxhash.h"
11802 "src/xxhash.c"))))))
11803 ("libdivsufsort" ,libdivsufsort)
11804 ("libgff" ,libgff)
11805 ("tbb" ,tbb)
11806 ("zlib" ,zlib)))
11807 (native-inputs
11808 `(("pkg-config" ,pkg-config)))
11809 (home-page "http://www.cs.cmu.edu/~ckingsf/software/sailfish")
11810 (synopsis "Mapping-based isoform quantification from RNA-Seq reads")
11811 (description "Sailfish is a tool for genomic transcript quantification
11812 from RNA-seq data. It requires a set of target transcripts (either from a
11813 reference or de-novo assembly) to quantify. All you need to run sailfish is a
11814 fasta file containing your reference transcripts and a (set of) fasta/fastq
11815 file(s) containing your reads.")
11816 (license license:gpl3+)))
11817
11818 (define libstadenio-for-salmon
11819 (package
11820 (name "libstadenio")
11821 (version "1.14.8")
11822 (source (origin
11823 (method git-fetch)
11824 (uri (git-reference
11825 (url "https://github.com/COMBINE-lab/staden-io_lib.git")
11826 (commit (string-append "v" version))))
11827 (file-name (string-append name "-" version "-checkout"))
11828 (sha256
11829 (base32
11830 "1x8kxxqxl892vwfbprlbyfwkkv7c34ggkc94892x9x0g37x5nbwx"))))
11831 (build-system gnu-build-system)
11832 (arguments '(#:parallel-tests? #f)) ; not supported
11833 (inputs
11834 `(("zlib" ,zlib)))
11835 (native-inputs
11836 `(("perl" ,perl))) ; for tests
11837 (home-page "https://github.com/COMBINE-lab/staden-io_lib")
11838 (synopsis "General purpose trace and experiment file library")
11839 (description "This package provides a library of file reading and writing
11840 code to provide a general purpose Trace file (and Experiment File) reading
11841 interface.
11842
11843 The following file formats are supported:
11844
11845 @enumerate
11846 @item SCF trace files
11847 @item ABI trace files
11848 @item ALF trace files
11849 @item ZTR trace files
11850 @item SFF trace archives
11851 @item SRF trace archives
11852 @item Experiment files
11853 @item Plain text files
11854 @item SAM/BAM sequence files
11855 @item CRAM sequence files
11856 @end enumerate\n")
11857 (license license:bsd-3)))
11858
11859 (define spdlog-for-salmon
11860 (package
11861 (name "spdlog")
11862 (version "0.14.0")
11863 (source (origin
11864 (method git-fetch)
11865 (uri (git-reference
11866 (url "https://github.com/COMBINE-lab/spdlog.git")
11867 (commit (string-append "v" version))))
11868 (file-name (string-append name "-" version "-checkout"))
11869 (sha256
11870 (base32
11871 "13730429gwlabi432ilpnja3sfvy0nn2719vnhhmii34xcdyc57q"))))
11872 (build-system cmake-build-system)
11873 (home-page "https://github.com/COMBINE-lab/spdlog")
11874 (synopsis "Very fast C++ logging library")
11875 (description "Spdlog is a very fast header-only C++ logging library with
11876 performance as its primary goal.")
11877 (license license:expat)))
11878
11879 ;; This is a modified variant of bwa for use with Salmon. It installs a
11880 ;; library to avoid having to build this as part of Salmon.
11881 (define bwa-for-salmon
11882 (package (inherit bwa)
11883 (name "bwa")
11884 (version "0.7.12.5")
11885 (source (origin
11886 (method git-fetch)
11887 (uri (git-reference
11888 (url "https://github.com/COMBINE-lab/bwa.git")
11889 (commit (string-append "v" version))))
11890 (file-name (string-append "bwa-for-salmon-" version "-checkout"))
11891 (sha256
11892 (base32
11893 "1z2qa64y0c5hky10510x137mnzlhz6k8qf27csw4w9j6qihq95gb"))))
11894 (build-system gnu-build-system)
11895 (arguments
11896 '(#:tests? #f ;no "check" target
11897 #:phases
11898 (modify-phases %standard-phases
11899 (replace 'install
11900 (lambda* (#:key outputs #:allow-other-keys)
11901 (let* ((out (assoc-ref outputs "out"))
11902 (bin (string-append out "/bin"))
11903 (lib (string-append out "/lib"))
11904 (doc (string-append out "/share/doc/bwa"))
11905 (man (string-append out "/share/man/man1"))
11906 (inc (string-append out "/include/bwa")))
11907 (install-file "bwa" bin)
11908 (install-file "README.md" doc)
11909 (install-file "bwa.1" man)
11910 (install-file "libbwa.a" lib)
11911 (mkdir-p lib)
11912 (mkdir-p inc)
11913 (for-each (lambda (file)
11914 (install-file file inc))
11915 (find-files "." "\\.h$")))
11916 #t))
11917 ;; no "configure" script
11918 (delete 'configure))))))
11919
11920 (define-public salmon
11921 (package
11922 (name "salmon")
11923 (version "0.9.1")
11924 (source (origin
11925 (method git-fetch)
11926 (uri (git-reference
11927 (url "https://github.com/COMBINE-lab/salmon.git")
11928 (commit (string-append "v" version))))
11929 (file-name (string-append name "-" version "-checkout"))
11930 (sha256
11931 (base32
11932 "1zi1ff4i7y2ykk0vdzysgwzzzv166vg2x77pj1mf4baclavxj87a"))
11933 (modules '((guix build utils)))
11934 (snippet
11935 '(begin
11936 ;; Delete bundled headers for eigen3.
11937 (delete-file-recursively "include/eigen3/")
11938 #t))))
11939 (build-system cmake-build-system)
11940 (arguments
11941 `(#:configure-flags
11942 (list (string-append "-DBOOST_INCLUDEDIR="
11943 (assoc-ref %build-inputs "boost")
11944 "/include/")
11945 (string-append "-DBOOST_LIBRARYDIR="
11946 (assoc-ref %build-inputs "boost")
11947 "/lib/")
11948 (string-append "-DBoost_LIBRARIES="
11949 "-lboost_iostreams "
11950 "-lboost_filesystem "
11951 "-lboost_system "
11952 "-lboost_thread "
11953 "-lboost_timer "
11954 "-lboost_chrono "
11955 "-lboost_program_options")
11956 "-DBoost_FOUND=TRUE"
11957 "-DTBB_LIBRARIES=tbb tbbmalloc"
11958 ;; Don't download RapMap---we already have it!
11959 "-DFETCHED_RAPMAP=1")
11960 #:phases
11961 (modify-phases %standard-phases
11962 ;; Boost cannot be found, even though it's right there.
11963 (add-after 'unpack 'do-not-look-for-boost
11964 (lambda* (#:key inputs #:allow-other-keys)
11965 (substitute* "CMakeLists.txt"
11966 (("find_package\\(Boost 1\\.53\\.0") "#"))))
11967 (add-after 'unpack 'do-not-phone-home
11968 (lambda _
11969 (substitute* "src/Salmon.cpp"
11970 (("getVersionMessage\\(\\)") "\"\""))))
11971 (add-after 'unpack 'prepare-rapmap
11972 (lambda* (#:key inputs #:allow-other-keys)
11973 (let ((src "external/install/src/rapmap/")
11974 (include "external/install/include/rapmap/")
11975 (rapmap (assoc-ref inputs "rapmap")))
11976 (mkdir-p src)
11977 (mkdir-p include)
11978 (for-each (lambda (file)
11979 (install-file file src))
11980 (find-files (string-append rapmap "/src") "\\.(c|cpp)"))
11981 (copy-recursively (string-append rapmap "/include") include)
11982 (for-each delete-file '("external/install/include/rapmap/xxhash.h"
11983 "external/install/include/rapmap/FastxParser.hpp"
11984 "external/install/include/rapmap/concurrentqueue.h"
11985 "external/install/include/rapmap/FastxParserThreadUtils.hpp"
11986 "external/install/src/rapmap/FastxParser.cpp"
11987 "external/install/src/rapmap/xxhash.c")))))
11988 (add-after 'unpack 'use-system-libraries
11989 (lambda* (#:key inputs #:allow-other-keys)
11990 (substitute* "src/CMakeLists.txt"
11991 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
11992 (string-append (assoc-ref inputs "jellyfish")
11993 "/include/jellyfish-" ,(package-version jellyfish)))
11994 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
11995 (string-append (assoc-ref inputs "jellyfish")
11996 "/lib/libjellyfish-2.0.a"))
11997 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
11998 (string-append (assoc-ref inputs "libdivsufsort")
11999 "/lib/libdivsufsort.so"))
12000 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libstaden-read.a")
12001 (string-append (assoc-ref inputs "libstadenio-for-salmon")
12002 "/lib/libstaden-read.a"))
12003 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libbwa.a")
12004 (string-append (assoc-ref inputs "bwa") "/lib/libbwa.a"))
12005 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
12006 (string-append (assoc-ref inputs "libdivsufsort")
12007 "/lib/libdivsufsort64.so")))
12008 (substitute* "CMakeLists.txt"
12009 ;; Don't prefer static libs
12010 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
12011 (("set\\(TBB_LIBRARIES") "message(")
12012 (("find_package\\(Jellyfish.*") "")
12013 (("ExternalProject_Add\\(libcereal") "message(")
12014 (("ExternalProject_Add\\(libbwa") "message(")
12015 (("ExternalProject_Add\\(libjellyfish") "message(")
12016 (("ExternalProject_Add\\(libgff") "message(")
12017 (("ExternalProject_Add\\(libtbb") "message(")
12018 (("ExternalProject_Add\\(libspdlog") "message(")
12019 (("ExternalProject_Add\\(libdivsufsort") "message(")
12020 (("ExternalProject_Add\\(libstadenio") "message(")
12021 (("ExternalProject_Add_Step\\(") "message("))
12022
12023 ;; Ensure that all headers can be found
12024 (setenv "CPLUS_INCLUDE_PATH"
12025 (string-append (getenv "CPLUS_INCLUDE_PATH")
12026 ":"
12027 (assoc-ref inputs "bwa")
12028 "/include/bwa"
12029 ":"
12030 (assoc-ref inputs "eigen")
12031 "/include/eigen3"))
12032 (setenv "CPATH"
12033 (string-append (assoc-ref inputs "bwa")
12034 "/include/bwa"
12035 ":"
12036 (assoc-ref inputs "eigen")
12037 "/include/eigen3"))
12038 #t))
12039 ;; CMAKE_INSTALL_PREFIX does not exist when the tests are
12040 ;; run. It only exists after the install phase.
12041 (add-after 'unpack 'fix-tests
12042 (lambda _
12043 (substitute* "src/CMakeLists.txt"
12044 (("DTOPLEVEL_DIR=\\$\\{CMAKE_INSTALL_PREFIX")
12045 "DTOPLEVEL_DIR=${GAT_SOURCE_DIR"))
12046 #t)))))
12047 (inputs
12048 `(("boost" ,boost)
12049 ("bwa" ,bwa-for-salmon)
12050 ("bzip2" ,bzip2)
12051 ("cereal" ,cereal)
12052 ("eigen" ,eigen)
12053 ("rapmap" ,(origin
12054 (method git-fetch)
12055 (uri (git-reference
12056 (url "https://github.com/COMBINE-lab/RapMap.git")
12057 (commit (string-append "salmon-v" version))))
12058 (file-name (string-append "rapmap-salmon-v" version "-checkout"))
12059 (sha256
12060 (base32
12061 "1yc12yqsz6f0r8sg1qnk57xg34aqwc9jbqq6gd5ys28xw3plj98p"))))
12062 ("jemalloc" ,jemalloc)
12063 ("jellyfish" ,jellyfish)
12064 ("libgff" ,libgff)
12065 ("tbb" ,tbb)
12066 ("libdivsufsort" ,libdivsufsort)
12067 ("libstadenio-for-salmon" ,libstadenio-for-salmon)
12068 ("spdlog-for-salmon" ,spdlog-for-salmon)
12069 ("xz" ,xz)
12070 ("zlib" ,zlib)))
12071 (home-page "https://github.com/COMBINE-lab/salmon")
12072 (synopsis "Quantification from RNA-seq reads using lightweight alignments")
12073 (description "Salmon is a program to produce highly-accurate,
12074 transcript-level quantification estimates from RNA-seq data. Salmon achieves
12075 its accuracy and speed via a number of different innovations, including the
12076 use of lightweight alignments (accurate but fast-to-compute proxies for
12077 traditional read alignments) and massively-parallel stochastic collapsed
12078 variational inference.")
12079 (license license:gpl3+)))
12080
12081 (define-public python-loompy
12082 (package
12083 (name "python-loompy")
12084 (version "2.0.2")
12085 (source
12086 (origin
12087 (method url-fetch)
12088 (uri (pypi-uri "loompy" version))
12089 (sha256
12090 (base32
12091 "1drgv8j1hxqzzpnfg272x9djb6j8qr798w1pc2x8ikmfgyd9gh51"))))
12092 (build-system python-build-system)
12093 ;; There are no tests
12094 (arguments '(#:tests? #f))
12095 (propagated-inputs
12096 `(("python-h5py" ,python-h5py)
12097 ("python-numpy" ,python-numpy)
12098 ("python-scipy" ,python-scipy)
12099 ("python-typing" ,python-typing)))
12100 (home-page "https://github.com/linnarsson-lab/loompy")
12101 (synopsis "Work with .loom files for single-cell RNA-seq data")
12102 (description "The loom file format is an efficient format for very large
12103 omics datasets, consisting of a main matrix, optional additional layers, a
12104 variable number of row and column annotations. Loom also supports sparse
12105 graphs. This library makes it easy to work with @file{.loom} files for
12106 single-cell RNA-seq data.")
12107 (license license:bsd-3)))
12108
12109 ;; We cannot use the latest commit because it requires Java 9.
12110 (define-public java-forester
12111 (let ((commit "86b07efe302d5094b42deed9260f719a4c4ac2e6")
12112 (revision "1"))
12113 (package
12114 (name "java-forester")
12115 (version (string-append "0-" revision "." (string-take commit 7)))
12116 (source (origin
12117 (method git-fetch)
12118 (uri (git-reference
12119 (url "https://github.com/cmzmasek/forester.git")
12120 (commit commit)))
12121 (file-name (string-append name "-" version "-checkout"))
12122 (sha256
12123 (base32
12124 "0vxavc1yrf84yrnf20dq26hi0lglidk8d382xrxsy4qmlbjd276z"))
12125 (modules '((guix build utils)))
12126 (snippet
12127 '(begin
12128 ;; Delete bundled jars and pre-built classes
12129 (delete-file-recursively "forester/java/resources")
12130 (delete-file-recursively "forester/java/classes")
12131 (for-each delete-file (find-files "forester/java/" "\\.jar$"))
12132 ;; Delete bundled applications
12133 (delete-file-recursively "forester_applications")
12134 #t))))
12135 (build-system ant-build-system)
12136 (arguments
12137 `(#:tests? #f ; there are none
12138 #:jdk ,icedtea-8
12139 #:modules ((guix build ant-build-system)
12140 (guix build utils)
12141 (guix build java-utils)
12142 (sxml simple)
12143 (sxml transform))
12144 #:phases
12145 (modify-phases %standard-phases
12146 (add-after 'unpack 'chdir
12147 (lambda _ (chdir "forester/java") #t))
12148 (add-after 'chdir 'fix-dependencies
12149 (lambda _
12150 (chmod "build.xml" #o664)
12151 (call-with-output-file "build.xml.new"
12152 (lambda (port)
12153 (sxml->xml
12154 (pre-post-order
12155 (with-input-from-file "build.xml"
12156 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12157 `(;; Remove all unjar tags to avoid repacking classes.
12158 (unjar . ,(lambda _ '()))
12159 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12160 (*text* . ,(lambda (_ txt) txt))))
12161 port)))
12162 (rename-file "build.xml.new" "build.xml")
12163 #t))
12164 ;; FIXME: itext is difficult to package as it depends on a few
12165 ;; unpackaged libraries.
12166 (add-after 'chdir 'remove-dependency-on-unpackaged-itext
12167 (lambda _
12168 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12169 (substitute* "src/org/forester/archaeopteryx/MainFrame.java"
12170 (("pdf_written_to = PdfExporter.*")
12171 "throw new IOException(\"PDF export is not available.\");"))
12172 #t))
12173 ;; There is no install target
12174 (replace 'install (install-jars ".")))))
12175 (propagated-inputs
12176 `(("java-commons-codec" ,java-commons-codec)
12177 ("java-openchart2" ,java-openchart2)))
12178 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12179 (synopsis "Phylogenomics libraries for Java")
12180 (description "Forester is a collection of Java libraries for
12181 phylogenomics and evolutionary biology research. It includes support for
12182 reading, writing, and exporting phylogenetic trees.")
12183 (license license:lgpl2.1+))))
12184
12185 (define-public java-forester-1.005
12186 (package
12187 (name "java-forester")
12188 (version "1.005")
12189 (source (origin
12190 (method url-fetch)
12191 (uri (string-append "http://search.maven.org/remotecontent?"
12192 "filepath=org/biojava/thirdparty/forester/"
12193 version "/forester-" version "-sources.jar"))
12194 (file-name (string-append name "-" version ".jar"))
12195 (sha256
12196 (base32
12197 "04r8qv4rk3p71z4ajrvp11py1z46qrx0047j3zzs79s6lnsm3lcv"))))
12198 (build-system ant-build-system)
12199 (arguments
12200 `(#:tests? #f ; there are none
12201 #:jdk ,icedtea-8
12202 #:modules ((guix build ant-build-system)
12203 (guix build utils)
12204 (guix build java-utils)
12205 (sxml simple)
12206 (sxml transform))
12207 #:phases
12208 (modify-phases %standard-phases
12209 (add-after 'unpack 'fix-dependencies
12210 (lambda* (#:key inputs #:allow-other-keys)
12211 (call-with-output-file "build.xml"
12212 (lambda (port)
12213 (sxml->xml
12214 (pre-post-order
12215 (with-input-from-file "src/build.xml"
12216 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12217 `(;; Remove all unjar tags to avoid repacking classes.
12218 (unjar . ,(lambda _ '()))
12219 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12220 (*text* . ,(lambda (_ txt) txt))))
12221 port)))
12222 (copy-file (assoc-ref inputs "synth_look_and_feel_1.xml")
12223 "synth_look_and_feel_1.xml")
12224 (copy-file (assoc-ref inputs "phyloxml.xsd")
12225 "phyloxml.xsd")
12226 (substitute* "build.xml"
12227 (("../resources/synth_laf/synth_look_and_feel_1.xml")
12228 "synth_look_and_feel_1.xml")
12229 (("../resources/phyloxml_schema/1.10/phyloxml.xsd")
12230 "phyloxml.xsd"))
12231 #t))
12232 ;; FIXME: itext is difficult to package as it depends on a few
12233 ;; unpackaged libraries.
12234 (add-after 'unpack 'remove-dependency-on-unpackaged-itext
12235 (lambda _
12236 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12237 (substitute* '("src/org/forester/archaeopteryx/MainFrame.java"
12238 "src/org/forester/archaeopteryx/MainFrameApplication.java")
12239 (("pdf_written_to = PdfExporter.*")
12240 "throw new IOException(\"PDF export is not available.\"); /*")
12241 ((".getPrintSizeX\\(\\), getOptions\\(\\).getPrintSizeY\\(\\) \\);") "*/")
12242 (("getCurrentTreePanel\\(\\).getHeight\\(\\) \\);") "*/"))
12243 #t))
12244 (add-after 'unpack 'delete-pre-built-classes
12245 (lambda _ (delete-file-recursively "src/classes") #t))
12246 ;; There is no install target
12247 (replace 'install (install-jars ".")))))
12248 (propagated-inputs
12249 `(("java-commons-codec" ,java-commons-codec)
12250 ("java-openchart2" ,java-openchart2)))
12251 ;; The source archive does not contain the resources.
12252 (native-inputs
12253 `(("phyloxml.xsd"
12254 ,(origin
12255 (method url-fetch)
12256 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12257 "b61cc2dcede0bede317db362472333115756b8c6/"
12258 "forester/resources/phyloxml_schema/1.10/phyloxml.xsd"))
12259 (file-name (string-append name "-phyloxml-" version ".xsd"))
12260 (sha256
12261 (base32
12262 "1zxc4m8sn4n389nqdnpxa8d0k17qnr3pm2y5y6g6vh4k0zm52npv"))))
12263 ("synth_look_and_feel_1.xml"
12264 ,(origin
12265 (method url-fetch)
12266 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12267 "29e04321615da6b35c1e15c60e52caf3f21d8e6a/"
12268 "forester/java/classes/resources/synth_look_and_feel_1.xml"))
12269 (file-name (string-append name "-synth-look-and-feel-" version ".xml"))
12270 (sha256
12271 (base32
12272 "1gv5602gv4k7y7713y75a4jvj7i9s7nildsbdl7n9q10sc2ikg8h"))))))
12273 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12274 (synopsis "Phylogenomics libraries for Java")
12275 (description "Forester is a collection of Java libraries for
12276 phylogenomics and evolutionary biology research. It includes support for
12277 reading, writing, and exporting phylogenetic trees.")
12278 (license license:lgpl2.1+)))
12279
12280 (define-public java-biojava-core
12281 (package
12282 (name "java-biojava-core")
12283 (version "4.2.11")
12284 (source (origin
12285 (method git-fetch)
12286 (uri (git-reference
12287 (url "https://github.com/biojava/biojava")
12288 (commit (string-append "biojava-" version))))
12289 (file-name (string-append name "-" version "-checkout"))
12290 (sha256
12291 (base32
12292 "1bvryh2bpsvash8ln79cmc9sqm8qw72hz4xzwqxcrjm8ssxszhqk"))))
12293 (build-system ant-build-system)
12294 (arguments
12295 `(#:jdk ,icedtea-8
12296 #:jar-name "biojava-core.jar"
12297 #:source-dir "biojava-core/src/main/java/"
12298 #:test-dir "biojava-core/src/test"
12299 ;; These tests seem to require internet access.
12300 #:test-exclude (list "**/SearchIOTest.java"
12301 "**/BlastXMLParserTest.java"
12302 "**/GenbankCookbookTest.java"
12303 "**/GenbankProxySequenceReaderTest.java")
12304 #:phases
12305 (modify-phases %standard-phases
12306 (add-before 'build 'copy-resources
12307 (lambda _
12308 (copy-recursively "biojava-core/src/main/resources"
12309 "build/classes")
12310 #t))
12311 (add-before 'check 'copy-test-resources
12312 (lambda _
12313 (copy-recursively "biojava-core/src/test/resources"
12314 "build/test-classes")
12315 #t)))))
12316 (propagated-inputs
12317 `(("java-log4j-api" ,java-log4j-api)
12318 ("java-log4j-core" ,java-log4j-core)
12319 ("java-slf4j-api" ,java-slf4j-api)
12320 ("java-slf4j-simple" ,java-slf4j-simple)))
12321 (native-inputs
12322 `(("java-junit" ,java-junit)
12323 ("java-hamcrest-core" ,java-hamcrest-core)))
12324 (home-page "http://biojava.org")
12325 (synopsis "Core libraries of Java framework for processing biological data")
12326 (description "BioJava is a project dedicated to providing a Java framework
12327 for processing biological data. It provides analytical and statistical
12328 routines, parsers for common file formats, reference implementations of
12329 popular algorithms, and allows the manipulation of sequences and 3D
12330 structures. The goal of the biojava project is to facilitate rapid
12331 application development for bioinformatics.
12332
12333 This package provides the core libraries.")
12334 (license license:lgpl2.1+)))
12335
12336 (define-public java-biojava-phylo
12337 (package (inherit java-biojava-core)
12338 (name "java-biojava-phylo")
12339 (build-system ant-build-system)
12340 (arguments
12341 `(#:jdk ,icedtea-8
12342 #:jar-name "biojava-phylo.jar"
12343 #:source-dir "biojava-phylo/src/main/java/"
12344 #:test-dir "biojava-phylo/src/test"
12345 #:phases
12346 (modify-phases %standard-phases
12347 (add-before 'build 'copy-resources
12348 (lambda _
12349 (copy-recursively "biojava-phylo/src/main/resources"
12350 "build/classes")
12351 #t))
12352 (add-before 'check 'copy-test-resources
12353 (lambda _
12354 (copy-recursively "biojava-phylo/src/test/resources"
12355 "build/test-classes")
12356 #t)))))
12357 (propagated-inputs
12358 `(("java-log4j-api" ,java-log4j-api)
12359 ("java-log4j-core" ,java-log4j-core)
12360 ("java-slf4j-api" ,java-slf4j-api)
12361 ("java-slf4j-simple" ,java-slf4j-simple)
12362 ("java-biojava-core" ,java-biojava-core)
12363 ("java-forester" ,java-forester)))
12364 (native-inputs
12365 `(("java-junit" ,java-junit)
12366 ("java-hamcrest-core" ,java-hamcrest-core)))
12367 (home-page "http://biojava.org")
12368 (synopsis "Biojava interface to the forester phylogenomics library")
12369 (description "The phylo module provides a biojava interface layer to the
12370 forester phylogenomics library for constructing phylogenetic trees.")))
12371
12372 (define-public java-biojava-alignment
12373 (package (inherit java-biojava-core)
12374 (name "java-biojava-alignment")
12375 (build-system ant-build-system)
12376 (arguments
12377 `(#:jdk ,icedtea-8
12378 #:jar-name "biojava-alignment.jar"
12379 #:source-dir "biojava-alignment/src/main/java/"
12380 #:test-dir "biojava-alignment/src/test"
12381 #:phases
12382 (modify-phases %standard-phases
12383 (add-before 'build 'copy-resources
12384 (lambda _
12385 (copy-recursively "biojava-alignment/src/main/resources"
12386 "build/classes")
12387 #t))
12388 (add-before 'check 'copy-test-resources
12389 (lambda _
12390 (copy-recursively "biojava-alignment/src/test/resources"
12391 "build/test-classes")
12392 #t)))))
12393 (propagated-inputs
12394 `(("java-log4j-api" ,java-log4j-api)
12395 ("java-log4j-core" ,java-log4j-core)
12396 ("java-slf4j-api" ,java-slf4j-api)
12397 ("java-slf4j-simple" ,java-slf4j-simple)
12398 ("java-biojava-core" ,java-biojava-core)
12399 ("java-biojava-phylo" ,java-biojava-phylo)
12400 ("java-forester" ,java-forester)))
12401 (native-inputs
12402 `(("java-junit" ,java-junit)
12403 ("java-hamcrest-core" ,java-hamcrest-core)))
12404 (home-page "http://biojava.org")
12405 (synopsis "Biojava API for genetic sequence alignment")
12406 (description "The alignment module of BioJava provides an API that
12407 contains
12408
12409 @itemize
12410 @item implementations of dynamic programming algorithms for sequence
12411 alignment;
12412 @item reading and writing of popular alignment file formats;
12413 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12414 @end itemize\n")))
12415
12416 (define-public java-biojava-core-4.0
12417 (package (inherit java-biojava-core)
12418 (name "java-biojava-core")
12419 (version "4.0.0")
12420 (source (origin
12421 (method git-fetch)
12422 (uri (git-reference
12423 (url "https://github.com/biojava/biojava")
12424 (commit (string-append "biojava-" version))))
12425 (file-name (string-append name "-" version "-checkout"))
12426 (sha256
12427 (base32
12428 "13675f6y9aqi7bi2lk3s1z7a22ynccjiqwa8izh7p97xi9wsfmd8"))))))
12429
12430 (define-public java-biojava-phylo-4.0
12431 (package (inherit java-biojava-core-4.0)
12432 (name "java-biojava-phylo")
12433 (build-system ant-build-system)
12434 (arguments
12435 `(#:jdk ,icedtea-8
12436 #:jar-name "biojava-phylo.jar"
12437 #:source-dir "biojava-phylo/src/main/java/"
12438 #:test-dir "biojava-phylo/src/test"
12439 #:phases
12440 (modify-phases %standard-phases
12441 (add-before 'build 'copy-resources
12442 (lambda _
12443 (copy-recursively "biojava-phylo/src/main/resources"
12444 "build/classes")
12445 #t))
12446 (add-before 'check 'copy-test-resources
12447 (lambda _
12448 (copy-recursively "biojava-phylo/src/test/resources"
12449 "build/test-classes")
12450 #t)))))
12451 (propagated-inputs
12452 `(("java-log4j-api" ,java-log4j-api)
12453 ("java-log4j-core" ,java-log4j-core)
12454 ("java-slf4j-api" ,java-slf4j-api)
12455 ("java-slf4j-simple" ,java-slf4j-simple)
12456 ("java-biojava-core" ,java-biojava-core-4.0)
12457 ("java-forester" ,java-forester-1.005)))
12458 (native-inputs
12459 `(("java-junit" ,java-junit)
12460 ("java-hamcrest-core" ,java-hamcrest-core)))
12461 (home-page "http://biojava.org")
12462 (synopsis "Biojava interface to the forester phylogenomics library")
12463 (description "The phylo module provides a biojava interface layer to the
12464 forester phylogenomics library for constructing phylogenetic trees.")))
12465
12466 (define-public java-biojava-alignment-4.0
12467 (package (inherit java-biojava-core-4.0)
12468 (name "java-biojava-alignment")
12469 (build-system ant-build-system)
12470 (arguments
12471 `(#:jdk ,icedtea-8
12472 #:jar-name "biojava-alignment.jar"
12473 #:source-dir "biojava-alignment/src/main/java/"
12474 #:test-dir "biojava-alignment/src/test"
12475 #:phases
12476 (modify-phases %standard-phases
12477 (add-before 'build 'copy-resources
12478 (lambda _
12479 (copy-recursively "biojava-alignment/src/main/resources"
12480 "build/classes")
12481 #t))
12482 (add-before 'check 'copy-test-resources
12483 (lambda _
12484 (copy-recursively "biojava-alignment/src/test/resources"
12485 "build/test-classes")
12486 #t)))))
12487 (propagated-inputs
12488 `(("java-log4j-api" ,java-log4j-api)
12489 ("java-log4j-core" ,java-log4j-core)
12490 ("java-slf4j-api" ,java-slf4j-api)
12491 ("java-slf4j-simple" ,java-slf4j-simple)
12492 ("java-biojava-core" ,java-biojava-core-4.0)
12493 ("java-biojava-phylo" ,java-biojava-phylo-4.0)
12494 ("java-forester" ,java-forester-1.005)))
12495 (native-inputs
12496 `(("java-junit" ,java-junit)
12497 ("java-hamcrest-core" ,java-hamcrest-core)))
12498 (home-page "http://biojava.org")
12499 (synopsis "Biojava API for genetic sequence alignment")
12500 (description "The alignment module of BioJava provides an API that
12501 contains
12502
12503 @itemize
12504 @item implementations of dynamic programming algorithms for sequence
12505 alignment;
12506 @item reading and writing of popular alignment file formats;
12507 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12508 @end itemize\n")))
12509
12510 (define-public dropseq-tools
12511 (package
12512 (name "dropseq-tools")
12513 (version "1.13")
12514 (source
12515 (origin
12516 (method url-fetch)
12517 (uri "http://mccarrolllab.com/download/1276/")
12518 (file-name (string-append "dropseq-tools-" version ".zip"))
12519 (sha256
12520 (base32
12521 "0yrffckxqk5l8b5xb6z4laq157zd9mdypr2p4b4vq2bhjzi1sj0s"))
12522 ;; Delete bundled libraries
12523 (modules '((guix build utils)))
12524 (snippet
12525 '(begin
12526 (for-each delete-file (find-files "jar/lib" "\\.jar$"))
12527 (delete-file-recursively "3rdParty")))))
12528 (build-system ant-build-system)
12529 (arguments
12530 `(#:tests? #f ; test data are not included
12531 #:test-target "test"
12532 #:build-target "all"
12533 #:source-dir "public/src/"
12534 #:jdk ,icedtea-8
12535 #:make-flags
12536 (list (string-append "-Dpicard.executable.dir="
12537 (assoc-ref %build-inputs "java-picard")
12538 "/share/java/"))
12539 #:modules ((ice-9 match)
12540 (srfi srfi-1)
12541 (guix build utils)
12542 (guix build java-utils)
12543 (guix build ant-build-system))
12544 #:phases
12545 (modify-phases %standard-phases
12546 ;; All dependencies must be linked to "lib", because that's where
12547 ;; they will be searched for when the Class-Path property of the
12548 ;; manifest is computed.
12549 (add-after 'unpack 'record-references
12550 (lambda* (#:key inputs #:allow-other-keys)
12551 (mkdir-p "jar/lib")
12552 (let ((dirs (filter-map (match-lambda
12553 ((name . dir)
12554 (if (and (string-prefix? "java-" name)
12555 (not (string=? name "java-testng")))
12556 dir #f)))
12557 inputs)))
12558 (for-each (lambda (jar)
12559 (symlink jar (string-append "jar/lib/" (basename jar))))
12560 (append-map (lambda (dir) (find-files dir "\\.jar$"))
12561 dirs)))
12562 #t))
12563 ;; There is no installation target
12564 (replace 'install
12565 (lambda* (#:key inputs outputs #:allow-other-keys)
12566 (let* ((out (assoc-ref outputs "out"))
12567 (bin (string-append out "/bin"))
12568 (share (string-append out "/share/java/"))
12569 (lib (string-append share "/lib/"))
12570 (scripts (list "BAMTagHistogram"
12571 "BAMTagofTagCounts"
12572 "BaseDistributionAtReadPosition"
12573 "CollapseBarcodesInPlace"
12574 "CollapseTagWithContext"
12575 "ConvertToRefFlat"
12576 "CreateIntervalsFiles"
12577 "DetectBeadSynthesisErrors"
12578 "DigitalExpression"
12579 "Drop-seq_alignment.sh"
12580 "FilterBAM"
12581 "FilterBAMByTag"
12582 "GatherGeneGCLength"
12583 "GatherMolecularBarcodeDistributionByGene"
12584 "GatherReadQualityMetrics"
12585 "PolyATrimmer"
12586 "ReduceGTF"
12587 "SelectCellsByNumTranscripts"
12588 "SingleCellRnaSeqMetricsCollector"
12589 "TagBamWithReadSequenceExtended"
12590 "TagReadWithGeneExon"
12591 "TagReadWithInterval"
12592 "TrimStartingSequence"
12593 "ValidateReference")))
12594 (for-each mkdir-p (list bin share lib))
12595 (install-file "dist/dropseq.jar" share)
12596 (for-each (lambda (script)
12597 (chmod script #o555)
12598 (install-file script bin))
12599 scripts)
12600 (substitute* (map (lambda (script)
12601 (string-append bin "/" script))
12602 scripts)
12603 (("^java") (which "java"))
12604 (("jar_deploy_dir=.*")
12605 (string-append "jar_deploy_dir=" share "\n"))))
12606 #t))
12607 ;; FIXME: We do this after stripping jars because we don't want it to
12608 ;; copy all these jars and strip them. We only want to install
12609 ;; links. Arguably, this is a problem with the ant-build-system.
12610 (add-after 'strip-jar-timestamps 'install-links
12611 (lambda* (#:key outputs #:allow-other-keys)
12612 (let* ((out (assoc-ref outputs "out"))
12613 (share (string-append out "/share/java/"))
12614 (lib (string-append share "/lib/")))
12615 (for-each (lambda (jar)
12616 (symlink (readlink jar)
12617 (string-append lib (basename jar))))
12618 (find-files "jar/lib" "\\.jar$")))
12619 #t)))))
12620 (inputs
12621 `(("jdk" ,icedtea-8)
12622 ("java-picard" ,java-picard-2.10.3)
12623 ("java-log4j-1.2-api" ,java-log4j-1.2-api)
12624 ("java-commons-math3" ,java-commons-math3)
12625 ("java-commons-jexl2" ,java-commons-jexl-2)
12626 ("java-commons-collections4" ,java-commons-collections4)
12627 ("java-commons-lang2" ,java-commons-lang)
12628 ("java-commons-io" ,java-commons-io)
12629 ("java-snappy-1.0.3-rc3" ,java-snappy-1)
12630 ("java-guava" ,java-guava)
12631 ("java-la4j" ,java-la4j)
12632 ("java-biojava-core" ,java-biojava-core-4.0)
12633 ("java-biojava-alignment" ,java-biojava-alignment-4.0)
12634 ("java-jdistlib" ,java-jdistlib)
12635 ("java-simple-xml" ,java-simple-xml)
12636 ("java-snakeyaml" ,java-snakeyaml)))
12637 (native-inputs
12638 `(("unzip" ,unzip)
12639 ("java-testng" ,java-testng)))
12640 (home-page "http://mccarrolllab.com/dropseq/")
12641 (synopsis "Tools for Drop-seq analyses")
12642 (description "Drop-seq is a technology to enable biologists to
12643 analyze RNA expression genome-wide in thousands of individual cells at
12644 once. This package provides tools to perform Drop-seq analyses.")
12645 (license license:expat)))