Merge branch 'master' into staging
[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 ;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
13 ;;; Copyright © 2018 Gábor Boskovits <boskovits@gmail.com>
14 ;;;
15 ;;; This file is part of GNU Guix.
16 ;;;
17 ;;; GNU Guix is free software; you can redistribute it and/or modify it
18 ;;; under the terms of the GNU General Public License as published by
19 ;;; the Free Software Foundation; either version 3 of the License, or (at
20 ;;; your option) any later version.
21 ;;;
22 ;;; GNU Guix is distributed in the hope that it will be useful, but
23 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
24 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 ;;; GNU General Public License for more details.
26 ;;;
27 ;;; You should have received a copy of the GNU General Public License
28 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
29
30 (define-module (gnu packages bioinformatics)
31 #:use-module ((guix licenses) #:prefix license:)
32 #:use-module (guix packages)
33 #:use-module (guix utils)
34 #:use-module (guix download)
35 #:use-module (guix git-download)
36 #:use-module (guix hg-download)
37 #:use-module (guix build-system ant)
38 #:use-module (guix build-system gnu)
39 #:use-module (guix build-system cmake)
40 #:use-module (guix build-system ocaml)
41 #:use-module (guix build-system perl)
42 #:use-module (guix build-system python)
43 #:use-module (guix build-system r)
44 #:use-module (guix build-system ruby)
45 #:use-module (guix build-system scons)
46 #:use-module (guix build-system trivial)
47 #:use-module (gnu packages)
48 #:use-module (gnu packages autotools)
49 #:use-module (gnu packages algebra)
50 #:use-module (gnu packages base)
51 #:use-module (gnu packages bash)
52 #:use-module (gnu packages bison)
53 #:use-module (gnu packages boost)
54 #:use-module (gnu packages check)
55 #:use-module (gnu packages compression)
56 #:use-module (gnu packages cpio)
57 #:use-module (gnu packages cran)
58 #:use-module (gnu packages curl)
59 #:use-module (gnu packages documentation)
60 #:use-module (gnu packages databases)
61 #:use-module (gnu packages datastructures)
62 #:use-module (gnu packages file)
63 #:use-module (gnu packages flex)
64 #:use-module (gnu packages gawk)
65 #:use-module (gnu packages gcc)
66 #:use-module (gnu packages gd)
67 #:use-module (gnu packages gtk)
68 #:use-module (gnu packages glib)
69 #:use-module (gnu packages graph)
70 #:use-module (gnu packages groff)
71 #:use-module (gnu packages guile)
72 #:use-module (gnu packages haskell)
73 #:use-module (gnu packages image)
74 #:use-module (gnu packages imagemagick)
75 #:use-module (gnu packages java)
76 #:use-module (gnu packages jemalloc)
77 #:use-module (gnu packages ldc)
78 #:use-module (gnu packages linux)
79 #:use-module (gnu packages logging)
80 #:use-module (gnu packages machine-learning)
81 #:use-module (gnu packages man)
82 #:use-module (gnu packages maths)
83 #:use-module (gnu packages mpi)
84 #:use-module (gnu packages ncurses)
85 #:use-module (gnu packages ocaml)
86 #:use-module (gnu packages pcre)
87 #:use-module (gnu packages parallel)
88 #:use-module (gnu packages pdf)
89 #:use-module (gnu packages perl)
90 #:use-module (gnu packages perl-check)
91 #:use-module (gnu packages pkg-config)
92 #:use-module (gnu packages popt)
93 #:use-module (gnu packages protobuf)
94 #:use-module (gnu packages python)
95 #:use-module (gnu packages python-web)
96 #:use-module (gnu packages readline)
97 #:use-module (gnu packages ruby)
98 #:use-module (gnu packages serialization)
99 #:use-module (gnu packages shells)
100 #:use-module (gnu packages statistics)
101 #:use-module (gnu packages swig)
102 #:use-module (gnu packages tbb)
103 #:use-module (gnu packages tex)
104 #:use-module (gnu packages texinfo)
105 #:use-module (gnu packages textutils)
106 #:use-module (gnu packages time)
107 #:use-module (gnu packages tls)
108 #:use-module (gnu packages vim)
109 #:use-module (gnu packages web)
110 #:use-module (gnu packages xml)
111 #:use-module (gnu packages xorg)
112 #:use-module (srfi srfi-1)
113 #:use-module (ice-9 match))
114
115 (define-public aragorn
116 (package
117 (name "aragorn")
118 (version "1.2.38")
119 (source (origin
120 (method url-fetch)
121 (uri (string-append
122 "http://mbio-serv2.mbioekol.lu.se/ARAGORN/Downloads/aragorn"
123 version ".tgz"))
124 (sha256
125 (base32
126 "09i1rg716smlbnixfm7q1ml2mfpaa2fpn3hwjg625ysmfwwy712b"))))
127 (build-system gnu-build-system)
128 (arguments
129 `(#:tests? #f ; there are no tests
130 #:phases
131 (modify-phases %standard-phases
132 (delete 'configure)
133 (replace 'build
134 (lambda _
135 (zero? (system* "gcc"
136 "-O3"
137 "-ffast-math"
138 "-finline-functions"
139 "-o"
140 "aragorn"
141 (string-append "aragorn" ,version ".c")))))
142 (replace 'install
143 (lambda* (#:key outputs #:allow-other-keys)
144 (let* ((out (assoc-ref outputs "out"))
145 (bin (string-append out "/bin"))
146 (man (string-append out "/share/man/man1")))
147 (mkdir-p bin)
148 (install-file "aragorn" bin)
149 (mkdir-p man)
150 (install-file "aragorn.1" man))
151 #t)))))
152 (home-page "http://mbio-serv2.mbioekol.lu.se/ARAGORN")
153 (synopsis "Detect tRNA, mtRNA and tmRNA genes in nucleotide sequences")
154 (description
155 "Aragorn identifies transfer RNA, mitochondrial RNA and
156 transfer-messenger RNA from nucleotide sequences, based on homology to known
157 tRNA consensus sequences and RNA structure. It also outputs the secondary
158 structure of the predicted RNA.")
159 (license license:gpl2)))
160
161 (define-public bamm
162 (package
163 (name "bamm")
164 (version "1.7.3")
165 (source (origin
166 (method url-fetch)
167 ;; BamM is not available on pypi.
168 (uri (string-append
169 "https://github.com/Ecogenomics/BamM/archive/"
170 version ".tar.gz"))
171 (file-name (string-append name "-" version ".tar.gz"))
172 (sha256
173 (base32
174 "1f35yxp4pc8aadsvbpg6r4kg2jh4fkjci0iby4iyljm6980sac0s"))
175 (modules '((guix build utils)))
176 (snippet
177 `(begin
178 ;; Delete bundled htslib.
179 (delete-file-recursively "c/htslib-1.3.1")
180 #t))))
181 (build-system python-build-system)
182 (arguments
183 `(#:python ,python-2 ; BamM is Python 2 only.
184 ;; Do not use bundled libhts. Do use the bundled libcfu because it has
185 ;; been modified from its original form.
186 #:configure-flags
187 (let ((htslib (assoc-ref %build-inputs "htslib")))
188 (list "--with-libhts-lib" (string-append htslib "/lib")
189 "--with-libhts-inc" (string-append htslib "/include/htslib")))
190 #:phases
191 (modify-phases %standard-phases
192 (add-after 'unpack 'autogen
193 (lambda _
194 (with-directory-excursion "c"
195 (let ((sh (which "sh")))
196 ;; Use autogen so that 'configure' works.
197 (substitute* "autogen.sh" (("/bin/sh") sh))
198 (setenv "CONFIG_SHELL" sh)
199 (substitute* "configure" (("/bin/sh") sh))
200 (zero? (system* "./autogen.sh"))))))
201 (delete 'build)
202 ;; Run tests after installation so compilation only happens once.
203 (delete 'check)
204 (add-after 'install 'wrap-executable
205 (lambda* (#:key outputs #:allow-other-keys)
206 (let* ((out (assoc-ref outputs "out"))
207 (path (getenv "PATH")))
208 (wrap-program (string-append out "/bin/bamm")
209 `("PATH" ":" prefix (,path))))
210 #t))
211 (add-after 'wrap-executable 'post-install-check
212 (lambda* (#:key inputs outputs #:allow-other-keys)
213 (setenv "PATH"
214 (string-append (assoc-ref outputs "out")
215 "/bin:"
216 (getenv "PATH")))
217 (setenv "PYTHONPATH"
218 (string-append
219 (assoc-ref outputs "out")
220 "/lib/python"
221 (string-take (string-take-right
222 (assoc-ref inputs "python") 5) 3)
223 "/site-packages:"
224 (getenv "PYTHONPATH")))
225 ;; There are 2 errors printed, but they are safe to ignore:
226 ;; 1) [E::hts_open_format] fail to open file ...
227 ;; 2) samtools view: failed to open ...
228 (zero? (system* "nosetests")))))))
229 (native-inputs
230 `(("autoconf" ,autoconf)
231 ("automake" ,automake)
232 ("libtool" ,libtool)
233 ("zlib" ,zlib)
234 ("python-nose" ,python2-nose)
235 ("python-pysam" ,python2-pysam)))
236 (inputs
237 `(("htslib" ,htslib-1.3) ; At least one test fails on htslib-1.4+.
238 ("samtools" ,samtools)
239 ("bwa" ,bwa)
240 ("grep" ,grep)
241 ("sed" ,sed)
242 ("coreutils" ,coreutils)))
243 (propagated-inputs
244 `(("python-numpy" ,python2-numpy)))
245 (home-page "http://ecogenomics.github.io/BamM/")
246 (synopsis "Metagenomics-focused BAM file manipulator")
247 (description
248 "BamM is a C library, wrapped in python, to efficiently generate and
249 parse BAM files, specifically for the analysis of metagenomic data. For
250 instance, it implements several methods to assess contig-wise read coverage.")
251 (license license:lgpl3+)))
252
253 (define-public bamtools
254 (package
255 (name "bamtools")
256 (version "2.5.1")
257 (source (origin
258 (method url-fetch)
259 (uri (string-append
260 "https://github.com/pezmaster31/bamtools/archive/v"
261 version ".tar.gz"))
262 (file-name (string-append name "-" version ".tar.gz"))
263 (sha256
264 (base32
265 "1z3kg24qrwq13a88n9d86izngrar4fll7gr6phddb2faw75pdgaa"))))
266 (build-system cmake-build-system)
267 (arguments
268 `(#:tests? #f ;no "check" target
269 #:phases
270 (modify-phases %standard-phases
271 (add-before
272 'configure 'set-ldflags
273 (lambda* (#:key outputs #:allow-other-keys)
274 (setenv "LDFLAGS"
275 (string-append
276 "-Wl,-rpath="
277 (assoc-ref outputs "out") "/lib/bamtools")))))))
278 (inputs `(("zlib" ,zlib)))
279 (home-page "https://github.com/pezmaster31/bamtools")
280 (synopsis "C++ API and command-line toolkit for working with BAM data")
281 (description
282 "BamTools provides both a C++ API and a command-line toolkit for handling
283 BAM files.")
284 (license license:expat)))
285
286 (define-public bcftools
287 (package
288 (name "bcftools")
289 (version "1.8")
290 (source (origin
291 (method url-fetch)
292 (uri (string-append
293 "https://github.com/samtools/bcftools/releases/download/"
294 version "/bcftools-" version ".tar.bz2"))
295 (sha256
296 (base32
297 "1vgw2mwngq20c530zim52zvgmw1lci8rzl33pvh44xqk3xlzvjsa"))
298 (modules '((guix build utils)))
299 (snippet '(begin
300 ;; Delete bundled htslib.
301 (delete-file-recursively "htslib-1.8")
302 #t))))
303 (build-system gnu-build-system)
304 (arguments
305 `(#:test-target "test"
306 #:configure-flags (list "--with-htslib=system")
307 #:make-flags
308 (list
309 "USE_GPL=1"
310 "LIBS=-lgsl -lgslcblas"
311 (string-append "prefix=" (assoc-ref %outputs "out"))
312 (string-append "HTSDIR=" (assoc-ref %build-inputs "htslib") "/include")
313 (string-append "HTSLIB=" (assoc-ref %build-inputs "htslib") "/lib/libhts.so")
314 (string-append "BGZIP=" (assoc-ref %build-inputs "htslib") "/bin/bgzip")
315 (string-append "TABIX=" (assoc-ref %build-inputs "htslib") "/bin/tabix")
316 (string-append "PACKAGE_VERSION=" ,version))
317 #:phases
318 (modify-phases %standard-phases
319 (add-before 'check 'patch-tests
320 (lambda _
321 (substitute* "test/test.pl"
322 (("/bin/bash") (which "bash")))
323 #t)))))
324 (native-inputs
325 `(("htslib" ,htslib)
326 ("perl" ,perl)))
327 (inputs
328 `(("gsl" ,gsl)
329 ("zlib" ,zlib)))
330 (home-page "https://samtools.github.io/bcftools/")
331 (synopsis "Utilities for variant calling and manipulating VCFs and BCFs")
332 (description
333 "BCFtools is a set of utilities that manipulate variant calls in the
334 Variant Call Format (VCF) and its binary counterpart BCF. All commands work
335 transparently with both VCFs and BCFs, both uncompressed and BGZF-compressed.")
336 ;; The sources are dual MIT/GPL, but becomes GPL-only when USE_GPL=1.
337 (license (list license:gpl3+ license:expat))))
338
339 (define-public bedops
340 (package
341 (name "bedops")
342 (version "2.4.33")
343 (source (origin
344 (method url-fetch)
345 (uri (string-append "https://github.com/bedops/bedops/archive/v"
346 version ".tar.gz"))
347 (file-name (string-append name "-" version ".tar.gz"))
348 (sha256
349 (base32
350 "0kx4awrwby8f33wqyx8w7ms7v25xhf0d421csgf96a3hfzn2mb0m"))))
351 (build-system gnu-build-system)
352 (arguments
353 '(#:tests? #f
354 #:make-flags (list (string-append "BINDIR=" %output "/bin"))
355 #:phases
356 (modify-phases %standard-phases
357 (add-after 'unpack 'unpack-tarballs
358 (lambda _
359 ;; FIXME: Bedops includes tarballs of minimally patched upstream
360 ;; libraries jansson, zlib, and bzip2. We cannot just use stock
361 ;; libraries because at least one of the libraries (zlib) is
362 ;; patched to add a C++ function definition (deflateInit2cpp).
363 ;; Until the Bedops developers offer a way to link against system
364 ;; libraries we have to build the in-tree copies of these three
365 ;; libraries.
366
367 ;; See upstream discussion:
368 ;; https://github.com/bedops/bedops/issues/124
369
370 ;; Unpack the tarballs to benefit from shebang patching.
371 (with-directory-excursion "third-party"
372 (and (zero? (system* "tar" "xvf" "jansson-2.6.tar.bz2"))
373 (zero? (system* "tar" "xvf" "zlib-1.2.7.tar.bz2"))
374 (zero? (system* "tar" "xvf" "bzip2-1.0.6.tar.bz2"))))
375 ;; Disable unpacking of tarballs in Makefile.
376 (substitute* "system.mk/Makefile.linux"
377 (("^\tbzcat .*") "\t@echo \"not unpacking\"\n")
378 (("\\./configure") "CONFIG_SHELL=bash ./configure"))
379 (substitute* "third-party/zlib-1.2.7/Makefile.in"
380 (("^SHELL=.*$") "SHELL=bash\n"))
381 #t))
382 (delete 'configure))))
383 (home-page "https://github.com/bedops/bedops")
384 (synopsis "Tools for high-performance genomic feature operations")
385 (description
386 "BEDOPS is a suite of tools to address common questions raised in genomic
387 studies---mostly with regard to overlap and proximity relationships between
388 data sets. It aims to be scalable and flexible, facilitating the efficient
389 and accurate analysis and management of large-scale genomic data.
390
391 BEDOPS provides tools that perform highly efficient and scalable Boolean and
392 other set operations, statistical calculations, archiving, conversion and
393 other management of genomic data of arbitrary scale. Tasks can be easily
394 split by chromosome for distributing whole-genome analyses across a
395 computational cluster.")
396 (license license:gpl2+)))
397
398 (define-public bedtools
399 (package
400 (name "bedtools")
401 (version "2.27.1")
402 (source (origin
403 (method url-fetch)
404 (uri (string-append "https://github.com/arq5x/bedtools2/releases/"
405 "download/v" version "/"
406 "bedtools-" version ".tar.gz"))
407 (sha256
408 (base32
409 "1ndg5yknrxl4djx8ddzgk12rrbiidfpmkkg5z3f95jzryfxarhn8"))))
410 (build-system gnu-build-system)
411 (arguments
412 '(#:test-target "test"
413 #:make-flags
414 (list (string-append "prefix=" (assoc-ref %outputs "out")))
415 #:phases
416 (modify-phases %standard-phases
417 (delete 'configure))))
418 (native-inputs `(("python" ,python-2)))
419 (inputs
420 `(("samtools" ,samtools)
421 ("zlib" ,zlib)))
422 (home-page "https://github.com/arq5x/bedtools2")
423 (synopsis "Tools for genome analysis and arithmetic")
424 (description
425 "Collectively, the bedtools utilities are a swiss-army knife of tools for
426 a wide-range of genomics analysis tasks. The most widely-used tools enable
427 genome arithmetic: that is, set theory on the genome. For example, bedtools
428 allows one to intersect, merge, count, complement, and shuffle genomic
429 intervals from multiple files in widely-used genomic file formats such as BAM,
430 BED, GFF/GTF, VCF.")
431 (license license:gpl2)))
432
433 ;; Later releases of bedtools produce files with more columns than
434 ;; what Ribotaper expects.
435 (define-public bedtools-2.18
436 (package (inherit bedtools)
437 (name "bedtools")
438 (version "2.18.0")
439 (source (origin
440 (method url-fetch)
441 (uri (string-append "https://github.com/arq5x/bedtools2/"
442 "archive/v" version ".tar.gz"))
443 (file-name (string-append name "-" version ".tar.gz"))
444 (sha256
445 (base32
446 "05vrnr8yp7swfagshzpgqmzk1blnwnq8pq5pckzi1m26w98d63vf"))))
447 (arguments
448 '(#:test-target "test"
449 #:phases
450 (modify-phases %standard-phases
451 (delete 'configure)
452 (replace 'install
453 (lambda* (#:key outputs #:allow-other-keys)
454 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
455 (for-each (lambda (file)
456 (install-file file bin))
457 (find-files "bin" ".*")))
458 #t)))))))
459
460 (define-public ribotaper
461 (package
462 (name "ribotaper")
463 (version "1.3.1")
464 (source (origin
465 (method url-fetch)
466 (uri (string-append "https://ohlerlab.mdc-berlin.de/"
467 "files/RiboTaper/RiboTaper_Version_"
468 version ".tar.gz"))
469 (sha256
470 (base32
471 "0ykjbps1y3z3085q94npw8i9x5gldc6shy8vlc08v76zljsm07hv"))))
472 (build-system gnu-build-system)
473 (arguments
474 `(#:phases
475 (modify-phases %standard-phases
476 (add-after 'install 'wrap-executables
477 (lambda* (#:key inputs outputs #:allow-other-keys)
478 (let* ((out (assoc-ref outputs "out")))
479 (for-each
480 (lambda (script)
481 (wrap-program (string-append out "/bin/" script)
482 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
483 '("create_annotations_files.bash"
484 "create_metaplots.bash"
485 "Ribotaper_ORF_find.sh"
486 "Ribotaper.sh"))))))))
487 (inputs
488 `(("bedtools" ,bedtools-2.18)
489 ("samtools" ,samtools-0.1)
490 ("r-minimal" ,r-minimal)
491 ("r-foreach" ,r-foreach)
492 ("r-xnomial" ,r-xnomial)
493 ("r-domc" ,r-domc)
494 ("r-multitaper" ,r-multitaper)
495 ("r-seqinr" ,r-seqinr)))
496 (home-page "https://ohlerlab.mdc-berlin.de/software/RiboTaper_126/")
497 (synopsis "Define translated ORFs using ribosome profiling data")
498 (description
499 "Ribotaper is a method for defining translated @dfn{open reading
500 frames} (ORFs) using ribosome profiling (ribo-seq) data. This package
501 provides the Ribotaper pipeline.")
502 (license license:gpl3+)))
503
504 (define-public ribodiff
505 (package
506 (name "ribodiff")
507 (version "0.2.2")
508 (source
509 (origin
510 (method url-fetch)
511 (uri (string-append "https://github.com/ratschlab/RiboDiff/"
512 "archive/v" version ".tar.gz"))
513 (file-name (string-append name "-" version ".tar.gz"))
514 (sha256
515 (base32
516 "0wpbwmfv05wdjxv7ikm664f7s7p7cqr8jnw99zrda0q67rl50aaj"))))
517 (build-system python-build-system)
518 (arguments
519 `(#:python ,python-2
520 #:phases
521 (modify-phases %standard-phases
522 ;; Generate an installable executable script wrapper.
523 (add-after 'unpack 'patch-setup.py
524 (lambda _
525 (substitute* "setup.py"
526 (("^(.*)packages=.*" line prefix)
527 (string-append line "\n"
528 prefix "scripts=['scripts/TE.py'],\n")))
529 #t)))))
530 (inputs
531 `(("python-numpy" ,python2-numpy)
532 ("python-matplotlib" ,python2-matplotlib)
533 ("python-scipy" ,python2-scipy)
534 ("python-statsmodels" ,python2-statsmodels)))
535 (native-inputs
536 `(("python-mock" ,python2-mock)
537 ("python-nose" ,python2-nose)))
538 (home-page "http://public.bmi.inf.ethz.ch/user/zhongy/RiboDiff/")
539 (synopsis "Detect translation efficiency changes from ribosome footprints")
540 (description "RiboDiff is a statistical tool that detects the protein
541 translational efficiency change from Ribo-Seq (ribosome footprinting) and
542 RNA-Seq data. It uses a generalized linear model to detect genes showing
543 difference in translational profile taking mRNA abundance into account. It
544 facilitates us to decipher the translational regulation that behave
545 independently with transcriptional regulation.")
546 (license license:gpl3+)))
547
548 (define-public bioawk
549 (package
550 (name "bioawk")
551 (version "1.0")
552 (source (origin
553 (method url-fetch)
554 (uri (string-append "https://github.com/lh3/bioawk/archive/v"
555 version ".tar.gz"))
556 (file-name (string-append name "-" version ".tar.gz"))
557 (sha256
558 (base32 "1daizxsk17ahi9n58fj8vpgwyhzrzh54bzqhanjanp88kgrz7gjw"))))
559 (build-system gnu-build-system)
560 (inputs
561 `(("zlib" ,zlib)))
562 (native-inputs
563 `(("bison" ,bison)))
564 (arguments
565 `(#:tests? #f ; There are no tests to run.
566 ;; Bison must generate files, before other targets can build.
567 #:parallel-build? #f
568 #:phases
569 (modify-phases %standard-phases
570 (delete 'configure) ; There is no configure phase.
571 (replace 'install
572 (lambda* (#:key outputs #:allow-other-keys)
573 (let* ((out (assoc-ref outputs "out"))
574 (bin (string-append out "/bin"))
575 (man (string-append out "/share/man/man1")))
576 (mkdir-p man)
577 (copy-file "awk.1" (string-append man "/bioawk.1"))
578 (install-file "bioawk" bin)))))))
579 (home-page "https://github.com/lh3/bioawk")
580 (synopsis "AWK with bioinformatics extensions")
581 (description "Bioawk is an extension to Brian Kernighan's awk, adding the
582 support of several common biological data formats, including optionally gzip'ed
583 BED, GFF, SAM, VCF, FASTA/Q and TAB-delimited formats with column names. It
584 also adds a few built-in functions and a command line option to use TAB as the
585 input/output delimiter. When the new functionality is not used, bioawk is
586 intended to behave exactly the same as the original BWK awk.")
587 (license license:x11)))
588
589 (define-public python2-pybedtools
590 (package
591 (name "python2-pybedtools")
592 (version "0.6.9")
593 (source (origin
594 (method url-fetch)
595 (uri (string-append
596 "https://pypi.python.org/packages/source/p/pybedtools/pybedtools-"
597 version ".tar.gz"))
598 (sha256
599 (base32
600 "1ldzdxw1p4y3g2ignmggsdypvqkcwqwzhdha4rbgpih048z5p4an"))))
601 (build-system python-build-system)
602 (arguments `(#:python ,python-2)) ; no Python 3 support
603 (inputs
604 `(("python-matplotlib" ,python2-matplotlib)))
605 (propagated-inputs
606 `(("bedtools" ,bedtools)
607 ("samtools" ,samtools)))
608 (native-inputs
609 `(("python-cython" ,python2-cython)
610 ("python-pyyaml" ,python2-pyyaml)
611 ("python-nose" ,python2-nose)))
612 (home-page "https://pythonhosted.org/pybedtools/")
613 (synopsis "Python wrapper for BEDtools programs")
614 (description
615 "pybedtools is a Python wrapper for Aaron Quinlan's BEDtools programs,
616 which are widely used for genomic interval manipulation or \"genome algebra\".
617 pybedtools extends BEDTools by offering feature-level manipulations from with
618 Python.")
619 (license license:gpl2+)))
620
621 (define-public python-biom-format
622 (package
623 (name "python-biom-format")
624 (version "2.1.6")
625 (source
626 (origin
627 (method url-fetch)
628 ;; Use GitHub as source because PyPI distribution does not contain
629 ;; test data: https://github.com/biocore/biom-format/issues/693
630 (uri (string-append "https://github.com/biocore/biom-format/archive/"
631 version ".tar.gz"))
632 (file-name (string-append name "-" version ".tar.gz"))
633 (sha256
634 (base32
635 "08cr7wpahk6zb31h4bs7jmzpvxcqv9s13xz40h6y2h656jvdvnpj"))))
636 (build-system python-build-system)
637 (propagated-inputs
638 `(("python-numpy" ,python-numpy)
639 ("python-scipy" ,python-scipy)
640 ("python-future" ,python-future)
641 ("python-click" ,python-click)
642 ("python-h5py" ,python-h5py)
643 ("python-pandas" ,python-pandas)))
644 (native-inputs
645 `(("python-nose" ,python-nose)))
646 (home-page "http://www.biom-format.org")
647 (synopsis "Biological Observation Matrix (BIOM) format utilities")
648 (description
649 "The BIOM file format is designed to be a general-use format for
650 representing counts of observations e.g. operational taxonomic units, KEGG
651 orthology groups or lipid types, in one or more biological samples
652 e.g. microbiome samples, genomes, metagenomes.")
653 (license license:bsd-3)
654 (properties `((python2-variant . ,(delay python2-biom-format))))))
655
656 (define-public python2-biom-format
657 (let ((base (package-with-python2 (strip-python2-variant python-biom-format))))
658 (package
659 (inherit base)
660 (arguments
661 `(#:phases
662 (modify-phases %standard-phases
663 ;; Do not require the unmaintained pyqi library.
664 (add-after 'unpack 'remove-pyqi
665 (lambda _
666 (substitute* "setup.py"
667 (("install_requires.append\\(\"pyqi\"\\)") "pass"))
668 #t)))
669 ,@(package-arguments base))))))
670
671 (define-public bioperl-minimal
672 (let* ((inputs `(("perl-module-build" ,perl-module-build)
673 ("perl-data-stag" ,perl-data-stag)
674 ("perl-libwww" ,perl-libwww)
675 ("perl-uri" ,perl-uri)))
676 (transitive-inputs
677 (map (compose package-name cadr)
678 (delete-duplicates
679 (concatenate
680 (map (compose package-transitive-target-inputs cadr) inputs))))))
681 (package
682 (name "bioperl-minimal")
683 (version "1.7.0")
684 (source
685 (origin
686 (method url-fetch)
687 (uri (string-append "https://github.com/bioperl/bioperl-live/"
688 "archive/release-"
689 (string-map (lambda (c)
690 (if (char=? c #\.)
691 #\- c)) version)
692 ".tar.gz"))
693 (sha256
694 (base32
695 "12phgpxwgkqflkwfb9dcqg7a31dpjlfhar8wcgv0aj5ln4akfz06"))))
696 (build-system perl-build-system)
697 (arguments
698 `(#:phases
699 (modify-phases %standard-phases
700 (add-after
701 'install 'wrap-programs
702 (lambda* (#:key outputs #:allow-other-keys)
703 ;; Make sure all executables in "bin" find the required Perl
704 ;; modules at runtime. As the PERL5LIB variable contains also
705 ;; the paths of native inputs, we pick the transitive target
706 ;; inputs from %build-inputs.
707 (let* ((out (assoc-ref outputs "out"))
708 (bin (string-append out "/bin/"))
709 (path (string-join
710 (cons (string-append out "/lib/perl5/site_perl")
711 (map (lambda (name)
712 (assoc-ref %build-inputs name))
713 ',transitive-inputs))
714 ":")))
715 (for-each (lambda (file)
716 (wrap-program file
717 `("PERL5LIB" ":" prefix (,path))))
718 (find-files bin "\\.pl$"))
719 #t))))))
720 (inputs inputs)
721 (native-inputs
722 `(("perl-test-most" ,perl-test-most)))
723 (home-page "http://search.cpan.org/dist/BioPerl")
724 (synopsis "Bioinformatics toolkit")
725 (description
726 "BioPerl is the product of a community effort to produce Perl code which
727 is useful in biology. Examples include Sequence objects, Alignment objects
728 and database searching objects. These objects not only do what they are
729 advertised to do in the documentation, but they also interact - Alignment
730 objects are made from the Sequence objects, Sequence objects have access to
731 Annotation and SeqFeature objects and databases, Blast objects can be
732 converted to Alignment objects, and so on. This means that the objects
733 provide a coordinated and extensible framework to do computational biology.")
734 (license license:perl-license))))
735
736 (define-public python-biopython
737 (package
738 (name "python-biopython")
739 (version "1.70")
740 (source (origin
741 (method url-fetch)
742 ;; use PyPi rather than biopython.org to ease updating
743 (uri (pypi-uri "biopython" version))
744 (sha256
745 (base32
746 "0nz4n9d2y2dg849gn1z0vjlkwcpzzkzy3fij7x94a6ixy2c54z2a"))))
747 (build-system python-build-system)
748 (arguments
749 `(#:phases
750 (modify-phases %standard-phases
751 (add-before 'check 'set-home
752 ;; Some tests require a home directory to be set.
753 (lambda _ (setenv "HOME" "/tmp") #t)))))
754 (propagated-inputs
755 `(("python-numpy" ,python-numpy)))
756 (home-page "http://biopython.org/")
757 (synopsis "Tools for biological computation in Python")
758 (description
759 "Biopython is a set of tools for biological computation including parsers
760 for bioinformatics files into Python data structures; interfaces to common
761 bioinformatics programs; a standard sequence class and tools for performing
762 common operations on them; code to perform data classification; code for
763 dealing with alignments; code making it easy to split up parallelizable tasks
764 into separate processes; and more.")
765 (license (license:non-copyleft "http://www.biopython.org/DIST/LICENSE"))))
766
767 (define-public python2-biopython
768 (package-with-python2 python-biopython))
769
770 (define-public python-fastalite
771 (package
772 (name "python-fastalite")
773 (version "0.3")
774 (source
775 (origin
776 (method url-fetch)
777 (uri (pypi-uri "fastalite" version))
778 (sha256
779 (base32
780 "1qli6pxp77i9xn2wfciq2zaxhl82bdxb33cpzqzj1z25yd036wqj"))))
781 (build-system python-build-system)
782 (arguments
783 `(#:tests? #f)) ; Test data is not distributed.
784 (home-page "https://github.com/nhoffman/fastalite")
785 (synopsis "Simplest possible FASTA parser")
786 (description "This library implements a FASTA and a FASTQ parser without
787 relying on a complex dependency tree.")
788 (license license:expat)))
789
790 (define-public python2-fastalite
791 (package-with-python2 python-fastalite))
792
793 (define-public bpp-core
794 ;; The last release was in 2014 and the recommended way to install from source
795 ;; is to clone the git repository, so we do this.
796 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
797 (let ((commit "7d8bced0d1a87291ea8dd7046b7fb5ff9c35c582"))
798 (package
799 (name "bpp-core")
800 (version (string-append "2.2.0-1." (string-take commit 7)))
801 (source (origin
802 (method git-fetch)
803 (uri (git-reference
804 (url "http://biopp.univ-montp2.fr/git/bpp-core")
805 (commit commit)))
806 (file-name (string-append name "-" version "-checkout"))
807 (sha256
808 (base32
809 "10djsq5vlnkilv436gnmh4irpk49v29pa69r6xiryg32xmvn909j"))))
810 (build-system cmake-build-system)
811 (arguments
812 `(#:parallel-build? #f))
813 (inputs
814 `(("gcc" ,gcc-5))) ; Compilation of bpp-phyl fails with GCC 4.9 so we
815 ; compile all of the bpp packages with GCC 5.
816 (home-page "http://biopp.univ-montp2.fr")
817 (synopsis "C++ libraries for Bioinformatics")
818 (description
819 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
820 analysis, phylogenetics, molecular evolution and population genetics. It is
821 Object Oriented and is designed to be both easy to use and computer efficient.
822 Bio++ intends to help programmers to write computer expensive programs, by
823 providing them a set of re-usable tools.")
824 (license license:cecill-c))))
825
826 (define-public bpp-phyl
827 ;; The last release was in 2014 and the recommended way to install from source
828 ;; is to clone the git repository, so we do this.
829 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
830 (let ((commit "0c07167b629f68b569bf274d1ad0c4af83276ae2"))
831 (package
832 (name "bpp-phyl")
833 (version (string-append "2.2.0-1." (string-take commit 7)))
834 (source (origin
835 (method git-fetch)
836 (uri (git-reference
837 (url "http://biopp.univ-montp2.fr/git/bpp-phyl")
838 (commit commit)))
839 (file-name (string-append name "-" version "-checkout"))
840 (sha256
841 (base32
842 "1ssjgchzwj3iai26kyly7gwkdv8sk59nqhkb1wpap3sf5m6kyllh"))))
843 (build-system cmake-build-system)
844 (arguments
845 `(#:parallel-build? #f
846 ;; If out-of-source, test data is not copied into the build directory
847 ;; so the tests fail.
848 #:out-of-source? #f))
849 (inputs
850 `(("bpp-core" ,bpp-core)
851 ("bpp-seq" ,bpp-seq)
852 ;; GCC 4.8 fails due to an 'internal compiler error', so we use a more
853 ;; modern GCC.
854 ("gcc" ,gcc-5)))
855 (home-page "http://biopp.univ-montp2.fr")
856 (synopsis "Bio++ phylogenetic Library")
857 (description
858 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
859 analysis, phylogenetics, molecular evolution and population genetics. This
860 library provides phylogenetics-related modules.")
861 (license license:cecill-c))))
862
863 (define-public bpp-popgen
864 ;; The last release was in 2014 and the recommended way to install from source
865 ;; is to clone the git repository, so we do this.
866 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
867 (let ((commit "e472bac9b1a148803895d747cd6d0c5904f85d9f"))
868 (package
869 (name "bpp-popgen")
870 (version (string-append "2.2.0-1." (string-take commit 7)))
871 (source (origin
872 (method git-fetch)
873 (uri (git-reference
874 (url "http://biopp.univ-montp2.fr/git/bpp-popgen")
875 (commit commit)))
876 (file-name (string-append name "-" version "-checkout"))
877 (sha256
878 (base32
879 "0yn82dzn1n5629nzja68xfrhi655709rjanyryb36vzkmymy6dw5"))))
880 (build-system cmake-build-system)
881 (arguments
882 `(#:parallel-build? #f
883 #:tests? #f)) ; There are no tests.
884 (inputs
885 `(("bpp-core" ,bpp-core)
886 ("bpp-seq" ,bpp-seq)
887 ("gcc" ,gcc-5)))
888 (home-page "http://biopp.univ-montp2.fr")
889 (synopsis "Bio++ population genetics library")
890 (description
891 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
892 analysis, phylogenetics, molecular evolution and population genetics. This
893 library provides population genetics-related modules.")
894 (license license:cecill-c))))
895
896 (define-public bpp-seq
897 ;; The last release was in 2014 and the recommended way to install from source
898 ;; is to clone the git repository, so we do this.
899 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
900 (let ((commit "6cfa07965ce152e5598a89df2fa80a75973bfa33"))
901 (package
902 (name "bpp-seq")
903 (version (string-append "2.2.0-1." (string-take commit 7)))
904 (source (origin
905 (method git-fetch)
906 (uri (git-reference
907 (url "http://biopp.univ-montp2.fr/git/bpp-seq")
908 (commit commit)))
909 (file-name (string-append name "-" version "-checkout"))
910 (sha256
911 (base32
912 "1nys5jq7jqvdg40d91wsmj3q2yzy4276cp7sp44n67p468f27zf2"))))
913 (build-system cmake-build-system)
914 (arguments
915 `(#:parallel-build? #f
916 ;; If out-of-source, test data is not copied into the build directory
917 ;; so the tests fail.
918 #:out-of-source? #f))
919 (inputs
920 `(("bpp-core" ,bpp-core)
921 ("gcc" ,gcc-5))) ; Use GCC 5 as per 'bpp-core'.
922 (home-page "http://biopp.univ-montp2.fr")
923 (synopsis "Bio++ sequence library")
924 (description
925 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
926 analysis, phylogenetics, molecular evolution and population genetics. This
927 library provides sequence-related modules.")
928 (license license:cecill-c))))
929
930 (define-public bppsuite
931 ;; The last release was in 2014 and the recommended way to install from source
932 ;; is to clone the git repository, so we do this.
933 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
934 (let ((commit "c516147f57aa50961121cd505bed52cd7603698b"))
935 (package
936 (name "bppsuite")
937 (version (string-append "2.2.0-1." (string-take commit 7)))
938 (source (origin
939 (method git-fetch)
940 (uri (git-reference
941 (url "http://biopp.univ-montp2.fr/git/bppsuite")
942 (commit commit)))
943 (file-name (string-append name "-" version "-checkout"))
944 (sha256
945 (base32
946 "1y87pxvw0jxjizhq2dr9g2r91md45k1p9ih2sl1yy1y3p934l2kb"))))
947 (build-system cmake-build-system)
948 (arguments
949 `(#:parallel-build? #f
950 #:tests? #f)) ; There are no tests.
951 (native-inputs
952 `(("groff" ,groff)
953 ("man-db" ,man-db)
954 ("texinfo" ,texinfo)))
955 (inputs
956 `(("bpp-core" ,bpp-core)
957 ("bpp-seq" ,bpp-seq)
958 ("bpp-phyl" ,bpp-phyl)
959 ("bpp-phyl" ,bpp-popgen)
960 ("gcc" ,gcc-5)))
961 (home-page "http://biopp.univ-montp2.fr")
962 (synopsis "Bioinformatics tools written with the Bio++ libraries")
963 (description
964 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
965 analysis, phylogenetics, molecular evolution and population genetics. This
966 package provides command line tools using the Bio++ library.")
967 (license license:cecill-c))))
968
969 (define-public blast+
970 (package
971 (name "blast+")
972 (version "2.6.0")
973 (source (origin
974 (method url-fetch)
975 (uri (string-append
976 "ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/"
977 version "/ncbi-blast-" version "+-src.tar.gz"))
978 (sha256
979 (base32
980 "15n937pw5aqmyfjb6l387d18grqbb96l63d5xj4l7yyh0zbf2405"))
981 (patches (search-patches "blast+-fix-makefile.patch"))
982 (modules '((guix build utils)))
983 (snippet
984 '(begin
985 ;; Remove bundled bzip2, zlib and pcre.
986 (delete-file-recursively "c++/src/util/compress/bzip2")
987 (delete-file-recursively "c++/src/util/compress/zlib")
988 (delete-file-recursively "c++/src/util/regexp")
989 (substitute* "c++/src/util/compress/Makefile.in"
990 (("bzip2 zlib api") "api"))
991 ;; Remove useless msbuild directory
992 (delete-file-recursively
993 "c++/src/build-system/project_tree_builder/msbuild")
994 #t))))
995 (build-system gnu-build-system)
996 (arguments
997 `(;; There are two(!) tests for this massive library, and both fail with
998 ;; "unparsable timing stats".
999 ;; ERR [127] -- [serial/datatool] datatool.sh (unparsable timing stats)
1000 ;; ERR [127] -- [serial/datatool] datatool_xml.sh (unparsable timing stats)
1001 #:tests? #f
1002 #:out-of-source? #t
1003 #:parallel-build? #f ; not supported
1004 #:phases
1005 (modify-phases %standard-phases
1006 (add-before
1007 'configure 'set-HOME
1008 ;; $HOME needs to be set at some point during the configure phase
1009 (lambda _ (setenv "HOME" "/tmp") #t))
1010 (add-after
1011 'unpack 'enter-dir
1012 (lambda _ (chdir "c++") #t))
1013 (add-after
1014 'enter-dir 'fix-build-system
1015 (lambda _
1016 (define (which* cmd)
1017 (cond ((string=? cmd "date")
1018 ;; make call to "date" deterministic
1019 "date -d @0")
1020 ((which cmd)
1021 => identity)
1022 (else
1023 (format (current-error-port)
1024 "WARNING: Unable to find absolute path for ~s~%"
1025 cmd)
1026 #f)))
1027
1028 ;; Rewrite hardcoded paths to various tools
1029 (substitute* (append '("src/build-system/configure.ac"
1030 "src/build-system/configure"
1031 "src/build-system/helpers/run_with_lock.c"
1032 "scripts/common/impl/if_diff.sh"
1033 "scripts/common/impl/run_with_lock.sh"
1034 "src/build-system/Makefile.configurables.real"
1035 "src/build-system/Makefile.in.top"
1036 "src/build-system/Makefile.meta.gmake=no"
1037 "src/build-system/Makefile.meta.in"
1038 "src/build-system/Makefile.meta_l"
1039 "src/build-system/Makefile.meta_p"
1040 "src/build-system/Makefile.meta_r"
1041 "src/build-system/Makefile.mk.in"
1042 "src/build-system/Makefile.requirements"
1043 "src/build-system/Makefile.rules_with_autodep.in")
1044 (find-files "scripts/common/check" "\\.sh$"))
1045 (("(/usr/bin/|/bin/)([a-z][-_.a-z]*)" all dir cmd)
1046 (or (which* cmd) all)))
1047
1048 (substitute* (find-files "src/build-system" "^config.*")
1049 (("LN_S=/bin/\\$LN_S") (string-append "LN_S=" (which "ln")))
1050 (("^PATH=.*") ""))
1051
1052 ;; rewrite "/var/tmp" in check script
1053 (substitute* "scripts/common/check/check_make_unix.sh"
1054 (("/var/tmp") "/tmp"))
1055
1056 ;; do not reset PATH
1057 (substitute* (find-files "scripts/common/impl/" "\\.sh$")
1058 (("^ *PATH=.*") "")
1059 (("action=/bin/") "action=")
1060 (("export PATH") ":"))
1061 #t))
1062 (replace
1063 'configure
1064 (lambda* (#:key inputs outputs #:allow-other-keys)
1065 (let ((out (assoc-ref outputs "out"))
1066 (lib (string-append (assoc-ref outputs "lib") "/lib"))
1067 (include (string-append (assoc-ref outputs "include")
1068 "/include/ncbi-tools++")))
1069 ;; The 'configure' script doesn't recognize things like
1070 ;; '--enable-fast-install'.
1071 (zero? (system* "./configure.orig"
1072 (string-append "--with-build-root=" (getcwd) "/build")
1073 (string-append "--prefix=" out)
1074 (string-append "--libdir=" lib)
1075 (string-append "--includedir=" include)
1076 (string-append "--with-bz2="
1077 (assoc-ref inputs "bzip2"))
1078 (string-append "--with-z="
1079 (assoc-ref inputs "zlib"))
1080 (string-append "--with-pcre="
1081 (assoc-ref inputs "pcre"))
1082 ;; Each library is built twice by default, once
1083 ;; with "-static" in its name, and again
1084 ;; without.
1085 "--without-static"
1086 "--with-dll"))))))))
1087 (outputs '("out" ; 21 MB
1088 "lib" ; 226 MB
1089 "include")) ; 33 MB
1090 (inputs
1091 `(("bzip2" ,bzip2)
1092 ("zlib" ,zlib)
1093 ("pcre" ,pcre)
1094 ("perl" ,perl)
1095 ("python" ,python-wrapper)))
1096 (native-inputs
1097 `(("cpio" ,cpio)))
1098 (home-page "http://blast.ncbi.nlm.nih.gov")
1099 (synopsis "Basic local alignment search tool")
1100 (description
1101 "BLAST is a popular method of performing a DNA or protein sequence
1102 similarity search, using heuristics to produce results quickly. It also
1103 calculates an “expect value” that estimates how many matches would have
1104 occurred at a given score by chance, which can aid a user in judging how much
1105 confidence to have in an alignment.")
1106 ;; Most of the sources are in the public domain, with the following
1107 ;; exceptions:
1108 ;; * Expat:
1109 ;; * ./c++/include/util/bitset/
1110 ;; * ./c++/src/html/ncbi_menu*.js
1111 ;; * Boost license:
1112 ;; * ./c++/include/util/impl/floating_point_comparison.hpp
1113 ;; * LGPL 2+:
1114 ;; * ./c++/include/dbapi/driver/odbc/unix_odbc/
1115 ;; * ASL 2.0:
1116 ;; * ./c++/src/corelib/teamcity_*
1117 (license (list license:public-domain
1118 license:expat
1119 license:boost1.0
1120 license:lgpl2.0+
1121 license:asl2.0))))
1122
1123 (define-public bless
1124 (package
1125 (name "bless")
1126 (version "1p02")
1127 (source (origin
1128 (method url-fetch)
1129 (uri (string-append "mirror://sourceforge/bless-ec/bless.v"
1130 version ".tgz"))
1131 (sha256
1132 (base32
1133 "0rm0gw2s18dqwzzpl3c2x1z05ni2v0xz5dmfk3d33j6g4cgrlrdd"))
1134 (modules '((guix build utils)))
1135 (snippet
1136 `(begin
1137 ;; Remove bundled boost, pigz, zlib, and .git directory
1138 ;; FIXME: also remove bundled sources for murmurhash3 and
1139 ;; kmc once packaged.
1140 (delete-file-recursively "boost")
1141 (delete-file-recursively "pigz")
1142 (delete-file-recursively "google-sparsehash")
1143 (delete-file-recursively "zlib")
1144 (delete-file-recursively ".git")
1145 #t))))
1146 (build-system gnu-build-system)
1147 (arguments
1148 '(#:tests? #f ;no "check" target
1149 #:make-flags
1150 (list (string-append "ZLIB="
1151 (assoc-ref %build-inputs "zlib")
1152 "/lib/libz.a")
1153 (string-append "LDFLAGS="
1154 (string-join '("-lboost_filesystem"
1155 "-lboost_system"
1156 "-lboost_iostreams"
1157 "-lz"
1158 "-fopenmp"
1159 "-std=c++11"))))
1160 #:phases
1161 (modify-phases %standard-phases
1162 (add-after 'unpack 'do-not-build-bundled-pigz
1163 (lambda* (#:key inputs outputs #:allow-other-keys)
1164 (substitute* "Makefile"
1165 (("cd pigz/pigz-2.3.3; make") ""))
1166 #t))
1167 (add-after 'unpack 'patch-paths-to-executables
1168 (lambda* (#:key inputs outputs #:allow-other-keys)
1169 (substitute* "parse_args.cpp"
1170 (("kmc_binary = .*")
1171 (string-append "kmc_binary = \""
1172 (assoc-ref outputs "out")
1173 "/bin/kmc\";"))
1174 (("pigz_binary = .*")
1175 (string-append "pigz_binary = \""
1176 (assoc-ref inputs "pigz")
1177 "/bin/pigz\";")))
1178 #t))
1179 (replace 'install
1180 (lambda* (#:key outputs #:allow-other-keys)
1181 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
1182 (for-each (lambda (file)
1183 (install-file file bin))
1184 '("bless" "kmc/bin/kmc"))
1185 #t)))
1186 (delete 'configure))))
1187 (native-inputs
1188 `(("perl" ,perl)))
1189 (inputs
1190 `(("openmpi" ,openmpi)
1191 ("boost" ,boost)
1192 ("sparsehash" ,sparsehash)
1193 ("pigz" ,pigz)
1194 ("zlib" ,zlib)))
1195 (supported-systems '("x86_64-linux"))
1196 (home-page "https://sourceforge.net/p/bless-ec/wiki/Home/")
1197 (synopsis "Bloom-filter-based error correction tool for NGS reads")
1198 (description
1199 "@dfn{Bloom-filter-based error correction solution for high-throughput
1200 sequencing reads} (BLESS) uses a single minimum-sized bloom filter is a
1201 correction tool for genomic reads produced by @dfn{Next-generation
1202 sequencing} (NGS). BLESS produces accurate correction results with much less
1203 memory compared with previous solutions and is also able to tolerate a higher
1204 false-positive rate. BLESS can extend reads like DNA assemblers to correct
1205 errors at the end of reads.")
1206 (license license:gpl3+)))
1207
1208 (define-public bowtie
1209 (package
1210 (name "bowtie")
1211 (version "2.3.2")
1212 (source (origin
1213 (method url-fetch)
1214 (uri (string-append "https://github.com/BenLangmead/bowtie2/archive/v"
1215 version ".tar.gz"))
1216 (file-name (string-append name "-" version ".tar.gz"))
1217 (sha256
1218 (base32
1219 "0hwa5r9qbglppb7sz5z79rlmmddr3n51n468jb3wh8rwjgn3yr90"))
1220 (modules '((guix build utils)))
1221 (snippet
1222 '(begin
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 #t))))
1228 (build-system gnu-build-system)
1229 (inputs
1230 `(("perl" ,perl)
1231 ("perl-clone" ,perl-clone)
1232 ("perl-test-deep" ,perl-test-deep)
1233 ("perl-test-simple" ,perl-test-simple)
1234 ("python" ,python-2)
1235 ("tbb" ,tbb)
1236 ("zlib" ,zlib)))
1237 (arguments
1238 '(#:make-flags
1239 (list "allall"
1240 "WITH_TBB=1"
1241 (string-append "prefix=" (assoc-ref %outputs "out")))
1242 #:phases
1243 (modify-phases %standard-phases
1244 (delete 'configure)
1245 (replace 'check
1246 (lambda* (#:key outputs #:allow-other-keys)
1247 (zero? (system* "perl"
1248 "scripts/test/simple_tests.pl"
1249 "--bowtie2=./bowtie2"
1250 "--bowtie2-build=./bowtie2-build")))))))
1251 (home-page "http://bowtie-bio.sourceforge.net/bowtie2/index.shtml")
1252 (synopsis "Fast and sensitive nucleotide sequence read aligner")
1253 (description
1254 "Bowtie 2 is a fast and memory-efficient tool for aligning sequencing
1255 reads to long reference sequences. It is particularly good at aligning reads
1256 of about 50 up to 100s or 1,000s of characters, and particularly good at
1257 aligning to relatively long (e.g. mammalian) genomes. Bowtie 2 indexes the
1258 genome with an FM Index to keep its memory footprint small: for the human
1259 genome, its memory footprint is typically around 3.2 GB. Bowtie 2 supports
1260 gapped, local, and paired-end alignment modes.")
1261 (supported-systems '("x86_64-linux"))
1262 (license license:gpl3+)))
1263
1264 (define-public tophat
1265 (package
1266 (name "tophat")
1267 (version "2.1.0")
1268 (source (origin
1269 (method url-fetch)
1270 (uri (string-append
1271 "http://ccb.jhu.edu/software/tophat/downloads/tophat-"
1272 version ".tar.gz"))
1273 (sha256
1274 (base32
1275 "168zlzykq622zbgkh90a90f1bdgsxkscq2zxzbj8brq80hbjpyp7"))
1276 (patches (search-patches "tophat-build-with-later-seqan.patch"))
1277 (modules '((guix build utils)))
1278 (snippet
1279 '(begin
1280 ;; Remove bundled SeqAn and samtools
1281 (delete-file-recursively "src/SeqAn-1.3")
1282 (delete-file-recursively "src/samtools-0.1.18")
1283 #t))))
1284 (build-system gnu-build-system)
1285 (arguments
1286 '(#:parallel-build? #f ; not supported
1287 #:phases
1288 (modify-phases %standard-phases
1289 (add-after 'unpack 'use-system-samtools
1290 (lambda* (#:key inputs #:allow-other-keys)
1291 (substitute* "src/Makefile.in"
1292 (("(noinst_LIBRARIES = )\\$\\(SAMLIB\\)" _ prefix) prefix)
1293 (("\\$\\(SAMPROG\\): \\$\\(SAMLIB\\)") "")
1294 (("SAMPROG = samtools_0\\.1\\.18") "")
1295 (("\\$\\(samtools_0_1_18_SOURCES\\)") "")
1296 (("am__EXEEXT_1 = samtools_0\\.1\\.18\\$\\(EXEEXT\\)") ""))
1297 (substitute* '("src/common.cpp"
1298 "src/tophat.py")
1299 (("samtools_0.1.18") (which "samtools")))
1300 (substitute* '("src/common.h"
1301 "src/bam2fastx.cpp")
1302 (("#include \"bam.h\"") "#include <samtools/bam.h>")
1303 (("#include \"sam.h\"") "#include <samtools/sam.h>"))
1304 (substitute* '("src/bwt_map.h"
1305 "src/map2gtf.h"
1306 "src/align_status.h")
1307 (("#include <bam.h>") "#include <samtools/bam.h>")
1308 (("#include <sam.h>") "#include <samtools/sam.h>"))
1309 #t)))))
1310 (inputs
1311 `(("boost" ,boost)
1312 ("bowtie" ,bowtie)
1313 ("samtools" ,samtools-0.1)
1314 ("ncurses" ,ncurses)
1315 ("python" ,python-2)
1316 ("perl" ,perl)
1317 ("zlib" ,zlib)
1318 ("seqan" ,seqan)))
1319 (home-page "http://ccb.jhu.edu/software/tophat/index.shtml")
1320 (synopsis "Spliced read mapper for RNA-Seq data")
1321 (description
1322 "TopHat is a fast splice junction mapper for nucleotide sequence
1323 reads produced by the RNA-Seq method. It aligns RNA-Seq reads to
1324 mammalian-sized genomes using the ultra high-throughput short read
1325 aligner Bowtie, and then analyzes the mapping results to identify
1326 splice junctions between exons.")
1327 ;; TopHat is released under the Boost Software License, Version 1.0
1328 ;; See https://github.com/infphilo/tophat/issues/11#issuecomment-121589893
1329 (license license:boost1.0)))
1330
1331 (define-public bwa
1332 (package
1333 (name "bwa")
1334 (version "0.7.17")
1335 (source (origin
1336 (method url-fetch)
1337 (uri (string-append
1338 "https://github.com/lh3/bwa/releases/download/v"
1339 version "/bwa-" version ".tar.bz2"))
1340 (sha256
1341 (base32
1342 "1zfhv2zg9v1icdlq4p9ssc8k01mca5d1bd87w71py2swfi74s6yy"))))
1343 (build-system gnu-build-system)
1344 (arguments
1345 '(#:tests? #f ;no "check" target
1346 #:phases
1347 (modify-phases %standard-phases
1348 (replace 'install
1349 (lambda* (#:key outputs #:allow-other-keys)
1350 (let ((bin (string-append
1351 (assoc-ref outputs "out") "/bin"))
1352 (doc (string-append
1353 (assoc-ref outputs "out") "/share/doc/bwa"))
1354 (man (string-append
1355 (assoc-ref outputs "out") "/share/man/man1")))
1356 (install-file "bwa" bin)
1357 (install-file "README.md" doc)
1358 (install-file "bwa.1" man))
1359 #t))
1360 ;; no "configure" script
1361 (delete 'configure))))
1362 (inputs `(("zlib" ,zlib)))
1363 ;; Non-portable SSE instructions are used so building fails on platforms
1364 ;; other than x86_64.
1365 (supported-systems '("x86_64-linux"))
1366 (home-page "http://bio-bwa.sourceforge.net/")
1367 (synopsis "Burrows-Wheeler sequence aligner")
1368 (description
1369 "BWA is a software package for mapping low-divergent sequences against a
1370 large reference genome, such as the human genome. It consists of three
1371 algorithms: BWA-backtrack, BWA-SW and BWA-MEM. The first algorithm is
1372 designed for Illumina sequence reads up to 100bp, while the rest two for
1373 longer sequences ranged from 70bp to 1Mbp. BWA-MEM and BWA-SW share similar
1374 features such as long-read support and split alignment, but BWA-MEM, which is
1375 the latest, is generally recommended for high-quality queries as it is faster
1376 and more accurate. BWA-MEM also has better performance than BWA-backtrack for
1377 70-100bp Illumina reads.")
1378 (license license:gpl3+)))
1379
1380 (define-public bwa-pssm
1381 (package (inherit bwa)
1382 (name "bwa-pssm")
1383 (version "0.5.11")
1384 (source (origin
1385 (method url-fetch)
1386 (uri (string-append "https://github.com/pkerpedjiev/bwa-pssm/"
1387 "archive/" version ".tar.gz"))
1388 (file-name (string-append name "-" version ".tar.gz"))
1389 (sha256
1390 (base32
1391 "02p7mpbs4mlxmn84g2x4ghak638vbj4lqix2ipx5g84pz9bhdavg"))))
1392 (build-system gnu-build-system)
1393 (inputs
1394 `(("gdsl" ,gdsl)
1395 ("zlib" ,zlib)
1396 ("perl" ,perl)))
1397 (home-page "http://bwa-pssm.binf.ku.dk/")
1398 (synopsis "Burrows-Wheeler transform-based probabilistic short read mapper")
1399 (description
1400 "BWA-PSSM is a probabilistic short genomic sequence read aligner based on
1401 the use of @dfn{position specific scoring matrices} (PSSM). Like many of the
1402 existing aligners it is fast and sensitive. Unlike most other aligners,
1403 however, it is also adaptible in the sense that one can direct the alignment
1404 based on known biases within the data set. It is coded as a modification of
1405 the original BWA alignment program and shares the genome index structure as
1406 well as many of the command line options.")
1407 (license license:gpl3+)))
1408
1409 (define-public python2-bx-python
1410 (package
1411 (name "python2-bx-python")
1412 (version "0.7.3")
1413 (source (origin
1414 (method url-fetch)
1415 (uri (pypi-uri "bx-python" version))
1416 (sha256
1417 (base32
1418 "15z2w3bvnc0n4qmb9bd6d8ylc2h2nj883x2w9iixf4x3vki9b22i"))
1419 (modules '((guix build utils)))
1420 (snippet
1421 '(begin
1422 (substitute* "setup.py"
1423 ;; remove dependency on outdated "distribute" module
1424 (("^from distribute_setup import use_setuptools") "")
1425 (("^use_setuptools\\(\\)") ""))
1426 #t))))
1427 (build-system python-build-system)
1428 (arguments
1429 `(#:tests? #f ;tests fail because test data are not included
1430 #:python ,python-2))
1431 (inputs
1432 `(("python-numpy" ,python2-numpy)
1433 ("zlib" ,zlib)))
1434 (native-inputs
1435 `(("python-nose" ,python2-nose)))
1436 (home-page "http://bitbucket.org/james_taylor/bx-python/")
1437 (synopsis "Tools for manipulating biological data")
1438 (description
1439 "bx-python provides tools for manipulating biological data, particularly
1440 multiple sequence alignments.")
1441 (license license:expat)))
1442
1443 (define-public python-pysam
1444 (package
1445 (name "python-pysam")
1446 (version "0.13.0")
1447 (source (origin
1448 (method url-fetch)
1449 ;; Test data is missing on PyPi.
1450 (uri (string-append
1451 "https://github.com/pysam-developers/pysam/archive/v"
1452 version ".tar.gz"))
1453 (file-name (string-append name "-" version ".tar.gz"))
1454 (sha256
1455 (base32
1456 "0dzap2axin9cbbl0d825w294bpn00zagfm1sigamm4v2pm5bj9lp"))
1457 (modules '((guix build utils)))
1458 (snippet '(begin
1459 ;; Drop bundled htslib. TODO: Also remove samtools
1460 ;; and bcftools.
1461 (delete-file-recursively "htslib")
1462 #t))))
1463 (build-system python-build-system)
1464 (arguments
1465 `(#:modules ((ice-9 ftw)
1466 (srfi srfi-26)
1467 (guix build python-build-system)
1468 (guix build utils))
1469 #:phases
1470 (modify-phases %standard-phases
1471 (add-before 'build 'set-flags
1472 (lambda* (#:key inputs #:allow-other-keys)
1473 (setenv "HTSLIB_MODE" "external")
1474 (setenv "HTSLIB_LIBRARY_DIR"
1475 (string-append (assoc-ref inputs "htslib") "/lib"))
1476 (setenv "HTSLIB_INCLUDE_DIR"
1477 (string-append (assoc-ref inputs "htslib") "/include"))
1478 (setenv "LDFLAGS" "-lncurses")
1479 (setenv "CFLAGS" "-D_CURSES_LIB=1")
1480 #t))
1481 (replace 'check
1482 (lambda* (#:key inputs outputs #:allow-other-keys)
1483 ;; Add first subdirectory of "build" directory to PYTHONPATH.
1484 (setenv "PYTHONPATH"
1485 (string-append
1486 (getenv "PYTHONPATH")
1487 ":" (getcwd) "/build/"
1488 (car (scandir "build"
1489 (negate (cut string-prefix? "." <>))))))
1490 ;; Step out of source dir so python does not import from CWD.
1491 (with-directory-excursion "tests"
1492 (setenv "HOME" "/tmp")
1493 (and (zero? (system* "make" "-C" "pysam_data"))
1494 (zero? (system* "make" "-C" "cbcf_data"))
1495 ;; Running nosetests without explicitly asking for a
1496 ;; single process leads to a crash. Running with multiple
1497 ;; processes fails because the tests are not designed to
1498 ;; run in parallel.
1499
1500 ;; FIXME: tests keep timing out on some systems.
1501 ;; (zero? (system* "nosetests" "-v"
1502 ;; "--processes" "1"))
1503 )))))))
1504 (propagated-inputs
1505 `(("htslib" ,htslib))) ; Included from installed header files.
1506 (inputs
1507 `(("ncurses" ,ncurses)
1508 ("zlib" ,zlib)))
1509 (native-inputs
1510 `(("python-cython" ,python-cython)
1511 ;; Dependencies below are are for tests only.
1512 ("samtools" ,samtools)
1513 ("bcftools" ,bcftools)
1514 ("python-nose" ,python-nose)))
1515 (home-page "https://github.com/pysam-developers/pysam")
1516 (synopsis "Python bindings to the SAMtools C API")
1517 (description
1518 "Pysam is a Python module for reading and manipulating files in the
1519 SAM/BAM format. Pysam is a lightweight wrapper of the SAMtools C API. It
1520 also includes an interface for tabix.")
1521 (license license:expat)))
1522
1523 (define-public python2-pysam
1524 (package-with-python2 python-pysam))
1525
1526 (define-public python-twobitreader
1527 (package
1528 (name "python-twobitreader")
1529 (version "3.1.4")
1530 (source (origin
1531 (method url-fetch)
1532 (uri (pypi-uri "twobitreader" version))
1533 (sha256
1534 (base32
1535 "1q8wnj2kga9nz1lwc4w7qv52smfm536hp6mc8w6s53lhyj0mpi22"))))
1536 (build-system python-build-system)
1537 (arguments
1538 '(;; Tests are not distributed in the PyPi release.
1539 ;; TODO Try building from the Git repo or asking the upstream maintainer
1540 ;; to distribute the tests on PyPi.
1541 #:tests? #f))
1542 (native-inputs
1543 `(("python-sphinx" ,python-sphinx)))
1544 (home-page "https://github.com/benjschiller/twobitreader")
1545 (synopsis "Python library for reading .2bit files")
1546 (description
1547 "twobitreader is a Python library for reading .2bit files as used by the
1548 UCSC genome browser.")
1549 (license license:artistic2.0)))
1550
1551 (define-public python2-twobitreader
1552 (package-with-python2 python-twobitreader))
1553
1554 (define-public python-plastid
1555 (package
1556 (name "python-plastid")
1557 (version "0.4.8")
1558 (source (origin
1559 (method url-fetch)
1560 (uri (pypi-uri "plastid" version))
1561 (sha256
1562 (base32
1563 "0l24dd3q66if8yj042m4s0g95n6acn7im1imqd3p6h8ns43kxhj8"))))
1564 (build-system python-build-system)
1565 (arguments
1566 ;; Some test files are not included.
1567 `(#:tests? #f))
1568 (propagated-inputs
1569 `(("python-numpy" ,python-numpy)
1570 ("python-scipy" ,python-scipy)
1571 ("python-pandas" ,python-pandas)
1572 ("python-pysam" ,python-pysam)
1573 ("python-matplotlib" ,python-matplotlib)
1574 ("python-biopython" ,python-biopython)
1575 ("python-twobitreader" ,python-twobitreader)
1576 ("python-termcolor" ,python-termcolor)))
1577 (native-inputs
1578 `(("python-cython" ,python-cython)
1579 ("python-nose" ,python-nose)))
1580 (home-page "https://github.com/joshuagryphon/plastid")
1581 (synopsis "Python library for genomic analysis")
1582 (description
1583 "plastid is a Python library for genomic analysis – in particular,
1584 high-throughput sequencing data – with an emphasis on simplicity.")
1585 (license license:bsd-3)))
1586
1587 (define-public python2-plastid
1588 (package-with-python2 python-plastid))
1589
1590 (define-public cd-hit
1591 (package
1592 (name "cd-hit")
1593 (version "4.6.8")
1594 (source (origin
1595 (method url-fetch)
1596 (uri (string-append "https://github.com/weizhongli/cdhit"
1597 "/releases/download/V" version
1598 "/cd-hit-v" version
1599 "-2017-0621-source.tar.gz"))
1600 (sha256
1601 (base32
1602 "1b4mwm2520ixjbw57sil20f9iixzw4bkdqqwgg1fc3pzm6rz4zmn"))))
1603 (build-system gnu-build-system)
1604 (arguments
1605 `(#:tests? #f ; there are no tests
1606 #:make-flags
1607 ;; Executables are copied directly to the PREFIX.
1608 (list (string-append "PREFIX=" (assoc-ref %outputs "out") "/bin"))
1609 #:phases
1610 (modify-phases %standard-phases
1611 ;; No "configure" script
1612 (delete 'configure)
1613 ;; Remove sources of non-determinism
1614 (add-after 'unpack 'be-timeless
1615 (lambda _
1616 (substitute* "cdhit-utility.c++"
1617 ((" \\(built on \" __DATE__ \"\\)") ""))
1618 (substitute* "cdhit-common.c++"
1619 (("__DATE__") "\"0\"")
1620 (("\", %s, \" __TIME__ \"\\\\n\", date") ""))
1621 #t))
1622 ;; The "install" target does not create the target directory.
1623 (add-before 'install 'create-target-dir
1624 (lambda* (#:key outputs #:allow-other-keys)
1625 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
1626 #t)))))
1627 (inputs
1628 `(("perl" ,perl)))
1629 (home-page "http://weizhongli-lab.org/cd-hit/")
1630 (synopsis "Cluster and compare protein or nucleotide sequences")
1631 (description
1632 "CD-HIT is a program for clustering and comparing protein or nucleotide
1633 sequences. CD-HIT is designed to be fast and handle extremely large
1634 databases.")
1635 ;; The manual says: "It can be copied under the GNU General Public License
1636 ;; version 2 (GPLv2)."
1637 (license license:gpl2)))
1638
1639 (define-public clipper
1640 (package
1641 (name "clipper")
1642 (version "1.1")
1643 (source (origin
1644 (method url-fetch)
1645 (uri (string-append
1646 "https://github.com/YeoLab/clipper/archive/"
1647 version ".tar.gz"))
1648 (file-name (string-append name "-" version ".tar.gz"))
1649 (sha256
1650 (base32
1651 "0pflmsvhbf8izbgwhbhj1i7349sw1f55qpqj8ljmapp16hb0p0qi"))
1652 (modules '((guix build utils)))
1653 (snippet
1654 '(begin
1655 ;; remove unnecessary setup dependency
1656 (substitute* "setup.py"
1657 (("setup_requires = .*") ""))
1658 (for-each delete-file
1659 '("clipper/src/peaks.so"
1660 "clipper/src/readsToWiggle.so"))
1661 (delete-file-recursively "dist/")
1662 #t))))
1663 (build-system python-build-system)
1664 (arguments `(#:python ,python-2)) ; only Python 2 is supported
1665 (inputs
1666 `(("htseq" ,python2-htseq)
1667 ("python-pybedtools" ,python2-pybedtools)
1668 ("python-cython" ,python2-cython)
1669 ("python-scikit-learn" ,python2-scikit-learn)
1670 ("python-matplotlib" ,python2-matplotlib)
1671 ("python-pandas" ,python2-pandas)
1672 ("python-pysam" ,python2-pysam)
1673 ("python-numpy" ,python2-numpy)
1674 ("python-scipy" ,python2-scipy)))
1675 (native-inputs
1676 `(("python-mock" ,python2-mock) ; for tests
1677 ("python-nose" ,python2-nose) ; for tests
1678 ("python-pytz" ,python2-pytz))) ; for tests
1679 (home-page "https://github.com/YeoLab/clipper")
1680 (synopsis "CLIP peak enrichment recognition")
1681 (description
1682 "CLIPper is a tool to define peaks in CLIP-seq datasets.")
1683 (license license:gpl2)))
1684
1685 (define-public codingquarry
1686 (package
1687 (name "codingquarry")
1688 (version "2.0")
1689 (source (origin
1690 (method url-fetch)
1691 (uri (string-append
1692 "mirror://sourceforge/codingquarry/CodingQuarry_v"
1693 version ".tar.gz"))
1694 (sha256
1695 (base32
1696 "0115hkjflsnfzn36xppwf9h9avfxlavr43djqmshkkzbgjzsz60i"))))
1697 (build-system gnu-build-system)
1698 (arguments
1699 '(#:tests? #f ; no "check" target
1700 #:phases
1701 (modify-phases %standard-phases
1702 (delete 'configure)
1703 (replace 'install
1704 (lambda* (#:key outputs #:allow-other-keys)
1705 (let* ((out (assoc-ref outputs "out"))
1706 (bin (string-append out "/bin"))
1707 (doc (string-append out "/share/doc/codingquarry")))
1708 (install-file "INSTRUCTIONS.pdf" doc)
1709 (copy-recursively "QuarryFiles"
1710 (string-append out "/QuarryFiles"))
1711 (install-file "CodingQuarry" bin)
1712 (install-file "CufflinksGTF_to_CodingQuarryGFF3.py" bin)))))))
1713 (inputs `(("openmpi" ,openmpi)))
1714 (native-search-paths
1715 (list (search-path-specification
1716 (variable "QUARRY_PATH")
1717 (files '("QuarryFiles")))))
1718 (native-inputs `(("python" ,python-2))) ; Only Python 2 is supported
1719 (synopsis "Fungal gene predictor")
1720 (description "CodingQuarry is a highly accurate, self-training GHMM fungal
1721 gene predictor designed to work with assembled, aligned RNA-seq transcripts.")
1722 (home-page "https://sourceforge.net/projects/codingquarry/")
1723 (license license:gpl3+)))
1724
1725 (define-public couger
1726 (package
1727 (name "couger")
1728 (version "1.8.2")
1729 (source (origin
1730 (method url-fetch)
1731 (uri (string-append
1732 "http://couger.oit.duke.edu/static/assets/COUGER"
1733 version ".zip"))
1734 (sha256
1735 (base32
1736 "04p2b14nmhzxw5h72mpzdhalv21bx4w9b87z0wpw0xzxpysyncmq"))))
1737 (build-system gnu-build-system)
1738 (arguments
1739 `(#:tests? #f
1740 #:phases
1741 (modify-phases %standard-phases
1742 (delete 'configure)
1743 (delete 'build)
1744 (replace
1745 'install
1746 (lambda* (#:key outputs #:allow-other-keys)
1747 (let* ((out (assoc-ref outputs "out"))
1748 (bin (string-append out "/bin")))
1749 (copy-recursively "src" (string-append out "/src"))
1750 (mkdir bin)
1751 ;; Add "src" directory to module lookup path.
1752 (substitute* "couger"
1753 (("from argparse")
1754 (string-append "import sys\nsys.path.append(\""
1755 out "\")\nfrom argparse")))
1756 (install-file "couger" bin))
1757 #t))
1758 (add-after
1759 'install 'wrap-program
1760 (lambda* (#:key inputs outputs #:allow-other-keys)
1761 ;; Make sure 'couger' runs with the correct PYTHONPATH.
1762 (let* ((out (assoc-ref outputs "out"))
1763 (path (getenv "PYTHONPATH")))
1764 (wrap-program (string-append out "/bin/couger")
1765 `("PYTHONPATH" ":" prefix (,path))))
1766 #t)))))
1767 (inputs
1768 `(("python" ,python-2)
1769 ("python2-pillow" ,python2-pillow)
1770 ("python2-numpy" ,python2-numpy)
1771 ("python2-scipy" ,python2-scipy)
1772 ("python2-matplotlib" ,python2-matplotlib)))
1773 (propagated-inputs
1774 `(("r-minimal" ,r-minimal)
1775 ("libsvm" ,libsvm)
1776 ("randomjungle" ,randomjungle)))
1777 (native-inputs
1778 `(("unzip" ,unzip)))
1779 (home-page "http://couger.oit.duke.edu")
1780 (synopsis "Identify co-factors in sets of genomic regions")
1781 (description
1782 "COUGER can be applied to any two sets of genomic regions bound by
1783 paralogous TFs (e.g., regions derived from ChIP-seq experiments) to identify
1784 putative co-factors that provide specificity to each TF. The framework
1785 determines the genomic targets uniquely-bound by each TF, and identifies a
1786 small set of co-factors that best explain the in vivo binding differences
1787 between the two TFs.
1788
1789 COUGER uses classification algorithms (support vector machines and random
1790 forests) with features that reflect the DNA binding specificities of putative
1791 co-factors. The features are generated either from high-throughput TF-DNA
1792 binding data (from protein binding microarray experiments), or from large
1793 collections of DNA motifs.")
1794 (license license:gpl3+)))
1795
1796 (define-public clustal-omega
1797 (package
1798 (name "clustal-omega")
1799 (version "1.2.4")
1800 (source (origin
1801 (method url-fetch)
1802 (uri (string-append "http://www.clustal.org/omega/clustal-omega-"
1803 version ".tar.gz"))
1804 (sha256
1805 (base32
1806 "1vm30mzncwdv881vrcwg11vzvrsmwy4wg80j5i0lcfk6dlld50w6"))))
1807 (build-system gnu-build-system)
1808 (inputs
1809 `(("argtable" ,argtable)))
1810 (home-page "http://www.clustal.org/omega/")
1811 (synopsis "Multiple sequence aligner for protein and DNA/RNA")
1812 (description
1813 "Clustal-Omega is a general purpose multiple sequence alignment (MSA)
1814 program for protein and DNA/RNA. It produces high quality MSAs and is capable
1815 of handling data-sets of hundreds of thousands of sequences in reasonable
1816 time.")
1817 (license license:gpl2+)))
1818
1819 (define-public crossmap
1820 (package
1821 (name "crossmap")
1822 (version "0.2.1")
1823 (source (origin
1824 (method url-fetch)
1825 (uri (string-append "mirror://sourceforge/crossmap/CrossMap-"
1826 version ".tar.gz"))
1827 (sha256
1828 (base32
1829 "07y179f63d7qnzdvkqcziwk9bs3k4zhp81q392fp1hwszjdvy22f"))
1830 ;; This patch has been sent upstream already and is available
1831 ;; for download from Sourceforge, but it has not been merged.
1832 (patches (search-patches "crossmap-allow-system-pysam.patch"))
1833 (modules '((guix build utils)))
1834 (snippet '(begin
1835 ;; remove bundled copy of pysam
1836 (delete-file-recursively "lib/pysam")
1837 #t))))
1838 (build-system python-build-system)
1839 (arguments
1840 `(#:python ,python-2
1841 #:phases
1842 (modify-phases %standard-phases
1843 (add-after 'unpack 'set-env
1844 (lambda _ (setenv "CROSSMAP_USE_SYSTEM_PYSAM" "1") #t)))))
1845 (inputs
1846 `(("python-numpy" ,python2-numpy)
1847 ("python-pysam" ,python2-pysam)
1848 ("zlib" ,zlib)))
1849 (native-inputs
1850 `(("python-cython" ,python2-cython)
1851 ("python-nose" ,python2-nose)))
1852 (home-page "http://crossmap.sourceforge.net/")
1853 (synopsis "Convert genome coordinates between assemblies")
1854 (description
1855 "CrossMap is a program for conversion of genome coordinates or annotation
1856 files between different genome assemblies. It supports most commonly used
1857 file formats including SAM/BAM, Wiggle/BigWig, BED, GFF/GTF, VCF.")
1858 (license license:gpl2+)))
1859
1860 (define-public cutadapt
1861 (package
1862 (name "cutadapt")
1863 (version "1.16")
1864 (source (origin
1865 (method git-fetch)
1866 (uri (git-reference
1867 (url "https://github.com/marcelm/cutadapt.git")
1868 (commit (string-append "v" version))))
1869 (file-name (string-append name "-" version "-checkout"))
1870 (sha256
1871 (base32
1872 "09pr02067jiks19nc0aby4xp70hhgvb554i2y1c04rv1m401w7q8"))))
1873 (build-system python-build-system)
1874 (inputs
1875 `(("python-xopen" ,python-xopen)))
1876 (native-inputs
1877 `(("python-cython" ,python-cython)
1878 ("python-pytest" ,python-pytest)))
1879 (home-page "https://cutadapt.readthedocs.io/en/stable/")
1880 (synopsis "Remove adapter sequences from nucleotide sequencing reads")
1881 (description
1882 "Cutadapt finds and removes adapter sequences, primers, poly-A tails and
1883 other types of unwanted sequence from high-throughput sequencing reads.")
1884 (license license:expat)))
1885
1886 (define-public libbigwig
1887 (package
1888 (name "libbigwig")
1889 (version "0.1.4")
1890 (source (origin
1891 (method url-fetch)
1892 (uri (string-append "https://github.com/dpryan79/libBigWig/"
1893 "archive/" version ".tar.gz"))
1894 (file-name (string-append name "-" version ".tar.gz"))
1895 (sha256
1896 (base32
1897 "098rjh35pi4a9q83n8wiwvyzykjqj6l8q189p1xgfw4ghywdlvw1"))))
1898 (build-system gnu-build-system)
1899 (arguments
1900 `(#:test-target "test"
1901 #:make-flags
1902 (list "CC=gcc"
1903 (string-append "prefix=" (assoc-ref %outputs "out")))
1904 #:phases
1905 (modify-phases %standard-phases
1906 (delete 'configure)
1907 (add-before 'check 'disable-curl-test
1908 (lambda _
1909 (substitute* "Makefile"
1910 (("./test/testRemote.*") ""))
1911 #t))
1912 ;; This has been fixed with the upstream commit 4ff6959cd8a0, but
1913 ;; there has not yet been a release containing this change.
1914 (add-before 'install 'create-target-dirs
1915 (lambda* (#:key outputs #:allow-other-keys)
1916 (let ((out (assoc-ref outputs "out")))
1917 (mkdir-p (string-append out "/lib"))
1918 (mkdir-p (string-append out "/include"))
1919 #t))))))
1920 (inputs
1921 `(("zlib" ,zlib)
1922 ("curl" ,curl)))
1923 (native-inputs
1924 `(("doxygen" ,doxygen)))
1925 (home-page "https://github.com/dpryan79/libBigWig")
1926 (synopsis "C library for handling bigWig files")
1927 (description
1928 "This package provides a C library for parsing local and remote BigWig
1929 files.")
1930 (license license:expat)))
1931
1932 (define-public python-pybigwig
1933 (package
1934 (name "python-pybigwig")
1935 (version "0.2.5")
1936 (source (origin
1937 (method url-fetch)
1938 (uri (pypi-uri "pyBigWig" version))
1939 (sha256
1940 (base32
1941 "0yrpdxg3y0sny25x4w22lv1k47jzccqjmg7j4bp0hywklvp0hg7d"))
1942 (modules '((guix build utils)))
1943 (snippet
1944 '(begin
1945 ;; Delete bundled libBigWig sources
1946 (delete-file-recursively "libBigWig")
1947 #t))))
1948 (build-system python-build-system)
1949 (arguments
1950 `(#:phases
1951 (modify-phases %standard-phases
1952 (add-after 'unpack 'link-with-libBigWig
1953 (lambda* (#:key inputs #:allow-other-keys)
1954 (substitute* "setup.py"
1955 (("libs=\\[") "libs=[\"BigWig\", "))
1956 #t)))))
1957 (inputs
1958 `(("libbigwig" ,libbigwig)
1959 ("zlib" ,zlib)
1960 ("curl" ,curl)))
1961 (home-page "https://github.com/dpryan79/pyBigWig")
1962 (synopsis "Access bigWig files in Python using libBigWig")
1963 (description
1964 "This package provides Python bindings to the libBigWig library for
1965 accessing bigWig files.")
1966 (license license:expat)))
1967
1968 (define-public python2-pybigwig
1969 (package-with-python2 python-pybigwig))
1970
1971 (define-public python-dendropy
1972 (package
1973 (name "python-dendropy")
1974 (version "4.4.0")
1975 (source
1976 (origin
1977 (method url-fetch)
1978 ;; Source from GitHub so that tests are included.
1979 (uri
1980 (string-append "https://github.com/jeetsukumaran/DendroPy/archive/v"
1981 version ".tar.gz"))
1982 (file-name (string-append name "-" version ".tar.gz"))
1983 (sha256
1984 (base32
1985 "0v2fccny5xjaah546bsch1mw4kh61qq5frz2ibllxs9mp6ih9bsn"))))
1986 (build-system python-build-system)
1987 (home-page "http://packages.python.org/DendroPy/")
1988 (synopsis "Library for phylogenetics and phylogenetic computing")
1989 (description
1990 "DendroPy is a library for phylogenetics and phylogenetic computing: reading,
1991 writing, simulation, processing and manipulation of phylogenetic
1992 trees (phylogenies) and characters.")
1993 (license license:bsd-3)))
1994
1995 (define-public python2-dendropy
1996 (package-with-python2 python-dendropy))
1997
1998 (define-public python-py2bit
1999 (package
2000 (name "python-py2bit")
2001 (version "0.2.1")
2002 (source
2003 (origin
2004 (method url-fetch)
2005 (uri (pypi-uri "py2bit" version))
2006 (sha256
2007 (base32
2008 "1cdf4qlmgwsh1f4k0wdv2sr8x9qn4366p0k3614vbd0fpqiarxrl"))))
2009 (build-system python-build-system)
2010 (home-page "https://github.com/dpryan79/py2bit")
2011 (synopsis "Access 2bit files using lib2bit")
2012 (description
2013 "This package provides Python bindings for lib2bit to access 2bit files
2014 with Python.")
2015 (license license:expat)))
2016
2017 (define-public deeptools
2018 (package
2019 (name "deeptools")
2020 (version "2.5.1")
2021 (source (origin
2022 (method url-fetch)
2023 (uri (string-append "https://github.com/deeptools/deepTools/"
2024 "archive/" version ".tar.gz"))
2025 (file-name (string-append name "-" version ".tar.gz"))
2026 (sha256
2027 (base32
2028 "1q8i12l2gvk4n2s8lhyzwhh9g4qbc8lrk5l7maz00yvd5g6z5540"))))
2029 (build-system python-build-system)
2030 (inputs
2031 `(("python-scipy" ,python-scipy)
2032 ("python-numpy" ,python-numpy)
2033 ("python-numpydoc" ,python-numpydoc)
2034 ("python-matplotlib" ,python-matplotlib)
2035 ("python-pysam" ,python-pysam)
2036 ("python-py2bit" ,python-py2bit)
2037 ("python-pybigwig" ,python-pybigwig)))
2038 (native-inputs
2039 `(("python-mock" ,python-mock) ;for tests
2040 ("python-nose" ,python-nose) ;for tests
2041 ("python-pytz" ,python-pytz))) ;for tests
2042 (home-page "https://github.com/deeptools/deepTools")
2043 (synopsis "Tools for normalizing and visualizing deep-sequencing data")
2044 (description
2045 "DeepTools addresses the challenge of handling the large amounts of data
2046 that are now routinely generated from DNA sequencing centers. To do so,
2047 deepTools contains useful modules to process the mapped reads data to create
2048 coverage files in standard bedGraph and bigWig file formats. By doing so,
2049 deepTools allows the creation of normalized coverage files or the comparison
2050 between two files (for example, treatment and control). Finally, using such
2051 normalized and standardized files, multiple visualizations can be created to
2052 identify enrichments with functional annotations of the genome.")
2053 (license license:gpl3+)))
2054
2055 (define-public delly
2056 (package
2057 (name "delly")
2058 (version "0.7.7")
2059 (source (origin
2060 (method url-fetch)
2061 (uri (string-append
2062 "https://github.com/tobiasrausch/delly/archive/v"
2063 version ".tar.gz"))
2064 (file-name (string-append name "-" version ".tar.gz"))
2065 (sha256
2066 (base32 "0dkwy3pyxmi6dhh1lpsr3698ri5sslw9qz67hfys0bz8dgrqwabj"))
2067 (patches (search-patches "delly-use-system-libraries.patch"))))
2068 (build-system gnu-build-system)
2069 (arguments
2070 `(#:tests? #f ; There are no tests to run.
2071 #:make-flags '("PARALLEL=1") ; Allow parallel execution at run-time.
2072 #:phases
2073 (modify-phases %standard-phases
2074 (delete 'configure) ; There is no configure phase.
2075 (replace 'install
2076 (lambda _
2077 (let ((bin (string-append (assoc-ref %outputs "out") "/bin"))
2078 (templates (string-append (assoc-ref %outputs "out")
2079 "/share/delly/templates")))
2080 (mkdir-p bin)
2081 (mkdir-p templates)
2082 (copy-recursively "excludeTemplates" templates)
2083 (install-file "src/cov" bin)
2084 (install-file "src/delly" bin)
2085 (install-file "src/dpe" bin)))))))
2086 (native-inputs
2087 `(("python" ,python-2)))
2088 (inputs
2089 `(("boost" ,boost)
2090 ("htslib" ,htslib)
2091 ("zlib" ,zlib)
2092 ("bzip2" ,bzip2)))
2093 (home-page "https://github.com/tobiasrausch/delly")
2094 (synopsis "Integrated structural variant prediction method")
2095 (description "Delly is an integrated structural variant prediction method
2096 that can discover and genotype deletions, tandem duplications, inversions and
2097 translocations at single-nucleotide resolution in short-read massively parallel
2098 sequencing data. It uses paired-ends and split-reads to sensitively and
2099 accurately delineate genomic rearrangements throughout the genome.")
2100 (license license:gpl3+)))
2101
2102 (define-public diamond
2103 (package
2104 (name "diamond")
2105 (version "0.9.22")
2106 (source (origin
2107 (method url-fetch)
2108 (uri (string-append
2109 "https://github.com/bbuchfink/diamond/archive/v"
2110 version ".tar.gz"))
2111 (file-name (string-append name "-" version ".tar.gz"))
2112 (sha256
2113 (base32
2114 "0adp87r9ak63frdrdmrdfhsn6g0jnnyq1lr2wibvqbxcl37iir9m"))))
2115 (build-system cmake-build-system)
2116 (arguments
2117 '(#:tests? #f ; no "check" target
2118 #:phases
2119 (modify-phases %standard-phases
2120 (add-after 'unpack 'remove-native-compilation
2121 (lambda _
2122 (substitute* "CMakeLists.txt" (("-march=native") ""))
2123 #t)))))
2124 (inputs
2125 `(("zlib" ,zlib)))
2126 (home-page "https://github.com/bbuchfink/diamond")
2127 (synopsis "Accelerated BLAST compatible local sequence aligner")
2128 (description
2129 "DIAMOND is a BLAST-compatible local aligner for mapping protein and
2130 translated DNA query sequences against a protein reference database (BLASTP
2131 and BLASTX alignment mode). The speedup over BLAST is up to 20,000 on short
2132 reads at a typical sensitivity of 90-99% relative to BLAST depending on the
2133 data and settings.")
2134 (license license:agpl3+)))
2135
2136 (define-public discrover
2137 (package
2138 (name "discrover")
2139 (version "1.6.0")
2140 (source
2141 (origin
2142 (method url-fetch)
2143 (uri (string-append "https://github.com/maaskola/discrover/archive/"
2144 version ".tar.gz"))
2145 (file-name (string-append name "-" version ".tar.gz"))
2146 (sha256
2147 (base32
2148 "0rah9ja4m0rl5mldd6vag9rwrivw1zrqxssfq8qx64m7961fp68k"))))
2149 (build-system cmake-build-system)
2150 (arguments
2151 `(#:tests? #f ; there are no tests
2152 #:phases
2153 (modify-phases %standard-phases
2154 (add-after 'unpack 'add-missing-includes
2155 (lambda _
2156 (substitute* "src/executioninformation.hpp"
2157 (("#define EXECUTIONINFORMATION_HPP" line)
2158 (string-append line "\n#include <random>")))
2159 (substitute* "src/plasma/fasta.hpp"
2160 (("#define FASTA_HPP" line)
2161 (string-append line "\n#include <random>")))
2162 #t)))))
2163 (inputs
2164 `(("boost" ,boost)
2165 ("cairo" ,cairo)))
2166 (native-inputs
2167 `(("texlive" ,texlive)
2168 ("imagemagick" ,imagemagick)))
2169 (home-page "http://dorina.mdc-berlin.de/public/rajewsky/discrover/")
2170 (synopsis "Discover discriminative nucleotide sequence motifs")
2171 (description "Discrover is a motif discovery method to find binding sites
2172 of nucleic acid binding proteins.")
2173 (license license:gpl3+)))
2174
2175 (define-public eigensoft
2176 (let ((revision "1")
2177 (commit "b14d1e202e21e532536ff8004f0419cd5e259dc7"))
2178 (package
2179 (name "eigensoft")
2180 (version (string-append "6.1.2-"
2181 revision "."
2182 (string-take commit 9)))
2183 (source
2184 (origin
2185 (method git-fetch)
2186 (uri (git-reference
2187 (url "https://github.com/DReichLab/EIG.git")
2188 (commit commit)))
2189 (file-name (string-append "eigensoft-" commit "-checkout"))
2190 (sha256
2191 (base32
2192 "0f5m6k2j5c16xc3xbywcs989xyc26ncy1zfzp9j9n55n9r4xcaiq"))
2193 (modules '((guix build utils)))
2194 ;; Remove pre-built binaries.
2195 (snippet '(begin
2196 (delete-file-recursively "bin")
2197 (mkdir "bin")
2198 #t))))
2199 (build-system gnu-build-system)
2200 (arguments
2201 `(#:tests? #f ; There are no tests.
2202 #:make-flags '("CC=gcc")
2203 #:phases
2204 (modify-phases %standard-phases
2205 ;; There is no configure phase, but the Makefile is in a
2206 ;; sub-directory.
2207 (replace 'configure
2208 (lambda _
2209 (chdir "src")
2210 ;; The link flags are incomplete.
2211 (substitute* "Makefile"
2212 (("-lgsl") "-lgsl -lm -llapack -llapacke -lpthread"))
2213 #t))
2214 ;; The provided install target only copies executables to
2215 ;; the "bin" directory in the build root.
2216 (add-after 'install 'actually-install
2217 (lambda* (#:key outputs #:allow-other-keys)
2218 (let* ((out (assoc-ref outputs "out"))
2219 (bin (string-append out "/bin")))
2220 (for-each (lambda (file)
2221 (install-file file bin))
2222 (find-files "../bin" ".*"))
2223 #t))))))
2224 (inputs
2225 `(("gsl" ,gsl)
2226 ("lapack" ,lapack)
2227 ("openblas" ,openblas)
2228 ("perl" ,perl)
2229 ("gfortran" ,gfortran "lib")))
2230 (home-page "https://github.com/DReichLab/EIG")
2231 (synopsis "Tools for population genetics")
2232 (description "The EIGENSOFT package provides tools for population
2233 genetics and stratification correction. EIGENSOFT implements methods commonly
2234 used in population genetics analyses such as PCA, computation of Tracy-Widom
2235 statistics, and finding related individuals in structured populations. It
2236 comes with a built-in plotting script and supports multiple file formats and
2237 quantitative phenotypes.")
2238 ;; The license of the eigensoft tools is Expat, but since it's
2239 ;; linking with the GNU Scientific Library (GSL) the effective
2240 ;; license is the GPL.
2241 (license license:gpl3+))))
2242
2243 (define-public edirect
2244 (package
2245 (name "edirect")
2246 (version "4.10")
2247 (source (origin
2248 (method url-fetch)
2249 (uri (string-append "ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/"
2250 "versions/2016-05-03/edirect.tar.gz"))
2251 (sha256
2252 (base32
2253 "15zsprak5yh8c1yrz4r1knmb5s8qcmdid4xdhkh3lqcv64l60hli"))))
2254 (build-system perl-build-system)
2255 (arguments
2256 `(#:tests? #f ;no "check" target
2257 #:phases
2258 (modify-phases %standard-phases
2259 (delete 'configure)
2260 (delete 'build)
2261 (replace 'install
2262 (lambda* (#:key outputs #:allow-other-keys)
2263 (let ((target (string-append (assoc-ref outputs "out")
2264 "/bin")))
2265 (mkdir-p target)
2266 (install-file "edirect.pl" target)
2267 #t)))
2268 (add-after
2269 'install 'wrap-program
2270 (lambda* (#:key inputs outputs #:allow-other-keys)
2271 ;; Make sure 'edirect.pl' finds all perl inputs at runtime.
2272 (let* ((out (assoc-ref outputs "out"))
2273 (path (getenv "PERL5LIB")))
2274 (wrap-program (string-append out "/bin/edirect.pl")
2275 `("PERL5LIB" ":" prefix (,path)))))))))
2276 (inputs
2277 `(("perl-html-parser" ,perl-html-parser)
2278 ("perl-encode-locale" ,perl-encode-locale)
2279 ("perl-file-listing" ,perl-file-listing)
2280 ("perl-html-tagset" ,perl-html-tagset)
2281 ("perl-html-tree" ,perl-html-tree)
2282 ("perl-http-cookies" ,perl-http-cookies)
2283 ("perl-http-date" ,perl-http-date)
2284 ("perl-http-message" ,perl-http-message)
2285 ("perl-http-negotiate" ,perl-http-negotiate)
2286 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
2287 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
2288 ("perl-net-http" ,perl-net-http)
2289 ("perl-uri" ,perl-uri)
2290 ("perl-www-robotrules" ,perl-www-robotrules)
2291 ("perl" ,perl)))
2292 (home-page "http://www.ncbi.nlm.nih.gov/books/NBK179288/")
2293 (synopsis "Tools for accessing the NCBI's set of databases")
2294 (description
2295 "Entrez Direct (EDirect) is a method for accessing the National Center
2296 for Biotechnology Information's (NCBI) set of interconnected
2297 databases (publication, sequence, structure, gene, variation, expression,
2298 etc.) from a terminal. Functions take search terms from command-line
2299 arguments. Individual operations are combined to build multi-step queries.
2300 Record retrieval and formatting normally complete the process.
2301
2302 EDirect also provides an argument-driven function that simplifies the
2303 extraction of data from document summaries or other results that are returned
2304 in structured XML format. This can eliminate the need for writing custom
2305 software to answer ad hoc questions.")
2306 (license license:public-domain)))
2307
2308 (define-public exonerate
2309 (package
2310 (name "exonerate")
2311 (version "2.4.0")
2312 (source
2313 (origin
2314 (method url-fetch)
2315 (uri
2316 (string-append
2317 "http://ftp.ebi.ac.uk/pub/software/vertebrategenomics/exonerate/"
2318 "exonerate-" version ".tar.gz"))
2319 (sha256
2320 (base32
2321 "0hj0m9xygiqsdxvbg79wq579kbrx1mdrabi2bzqz2zn9qwfjcjgq"))))
2322 (build-system gnu-build-system)
2323 (arguments
2324 `(#:parallel-build? #f)) ; Building in parallel fails on some machines.
2325 (native-inputs
2326 `(("pkg-config" ,pkg-config)))
2327 (inputs
2328 `(("glib" ,glib)))
2329 (home-page
2330 "https://www.ebi.ac.uk/about/vertebrate-genomics/software/exonerate")
2331 (synopsis "Generic tool for biological sequence alignment")
2332 (description
2333 "Exonerate is a generic tool for pairwise sequence comparison. It allows
2334 the alignment of sequences using a many alignment models, either exhaustive
2335 dynamic programming or a variety of heuristics.")
2336 (license license:gpl3)))
2337
2338 (define-public express
2339 (package
2340 (name "express")
2341 (version "1.5.1")
2342 (source (origin
2343 (method url-fetch)
2344 (uri
2345 (string-append
2346 "http://bio.math.berkeley.edu/eXpress/downloads/express-"
2347 version "/express-" version "-src.tgz"))
2348 (sha256
2349 (base32
2350 "03rczxd0gjp2l1jxcmjfmf5j94j77zqyxa6x063zsc585nj40n0c"))))
2351 (build-system cmake-build-system)
2352 (arguments
2353 `(#:tests? #f ;no "check" target
2354 #:phases
2355 (modify-phases %standard-phases
2356 (add-after 'unpack 'use-shared-boost-libs-and-set-bamtools-paths
2357 (lambda* (#:key inputs #:allow-other-keys)
2358 (substitute* "CMakeLists.txt"
2359 (("set\\(Boost_USE_STATIC_LIBS ON\\)")
2360 "set(Boost_USE_STATIC_LIBS OFF)")
2361 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/bamtools/include")
2362 (string-append (assoc-ref inputs "bamtools") "/include/bamtools")))
2363 (substitute* "src/CMakeLists.txt"
2364 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/\\.\\./bamtools/lib")
2365 (string-append (assoc-ref inputs "bamtools") "/lib"))
2366 (("libprotobuf.a") "libprotobuf.so"))
2367 #t)))))
2368 (inputs
2369 `(("boost" ,boost)
2370 ("bamtools" ,bamtools)
2371 ("protobuf" ,protobuf)
2372 ("zlib" ,zlib)))
2373 (home-page "http://bio.math.berkeley.edu/eXpress")
2374 (synopsis "Streaming quantification for high-throughput genomic sequencing")
2375 (description
2376 "eXpress is a streaming tool for quantifying the abundances of a set of
2377 target sequences from sampled subsequences. Example applications include
2378 transcript-level RNA-Seq quantification, allele-specific/haplotype expression
2379 analysis (from RNA-Seq), transcription factor binding quantification in
2380 ChIP-Seq, and analysis of metagenomic data.")
2381 (license license:artistic2.0)))
2382
2383 (define-public express-beta-diversity
2384 (package
2385 (name "express-beta-diversity")
2386 (version "1.0.7")
2387 (source (origin
2388 (method url-fetch)
2389 (uri
2390 (string-append
2391 "https://github.com/dparks1134/ExpressBetaDiversity/archive/v"
2392 version ".tar.gz"))
2393 (file-name (string-append name "-" version ".tar.gz"))
2394 (sha256
2395 (base32
2396 "1djvdlmqvjf6h0zq7w36y8cl5cli6rgj86x65znl48agnwmzxfxr"))))
2397 (build-system gnu-build-system)
2398 (arguments
2399 `(#:phases
2400 (modify-phases %standard-phases
2401 (delete 'configure)
2402 (add-before 'build 'enter-source (lambda _ (chdir "source") #t))
2403 (replace 'check
2404 (lambda _ (zero? (system* "../bin/ExpressBetaDiversity"
2405 "-u"))))
2406 (add-after 'check 'exit-source (lambda _ (chdir "..") #t))
2407 (replace 'install
2408 (lambda* (#:key outputs #:allow-other-keys)
2409 (let ((bin (string-append (assoc-ref outputs "out")
2410 "/bin")))
2411 (mkdir-p bin)
2412 (install-file "scripts/convertToEBD.py" bin)
2413 (install-file "bin/ExpressBetaDiversity" bin)
2414 #t))))))
2415 (inputs
2416 `(("python" ,python-2)))
2417 (home-page "http://kiwi.cs.dal.ca/Software/ExpressBetaDiversity")
2418 (synopsis "Taxon- and phylogenetic-based beta diversity measures")
2419 (description
2420 "Express Beta Diversity (EBD) calculates ecological beta diversity
2421 (dissimilarity) measures between biological communities. EBD implements a
2422 variety of diversity measures including those that make use of phylogenetic
2423 similarity of community members.")
2424 (license license:gpl3+)))
2425
2426 (define-public fasttree
2427 (package
2428 (name "fasttree")
2429 (version "2.1.10")
2430 (source (origin
2431 (method url-fetch)
2432 (uri (string-append
2433 "http://www.microbesonline.org/fasttree/FastTree-"
2434 version ".c"))
2435 (sha256
2436 (base32
2437 "0vcjdvy1j4m702vmak4svbfkrpcw63k7wymfksjp9a982zy8kjsl"))))
2438 (build-system gnu-build-system)
2439 (arguments
2440 `(#:tests? #f ; no "check" target
2441 #:phases
2442 (modify-phases %standard-phases
2443 (delete 'unpack)
2444 (delete 'configure)
2445 (replace 'build
2446 (lambda* (#:key source #:allow-other-keys)
2447 (and (zero? (system* "gcc"
2448 "-O3"
2449 "-finline-functions"
2450 "-funroll-loops"
2451 "-Wall"
2452 "-o"
2453 "FastTree"
2454 source
2455 "-lm"))
2456 (zero? (system* "gcc"
2457 "-DOPENMP"
2458 "-fopenmp"
2459 "-O3"
2460 "-finline-functions"
2461 "-funroll-loops"
2462 "-Wall"
2463 "-o"
2464 "FastTreeMP"
2465 source
2466 "-lm")))))
2467 (replace 'install
2468 (lambda* (#:key outputs #:allow-other-keys)
2469 (let ((bin (string-append (assoc-ref outputs "out")
2470 "/bin")))
2471 (mkdir-p bin)
2472 (install-file "FastTree" bin)
2473 (install-file "FastTreeMP" bin)
2474 #t))))))
2475 (home-page "http://www.microbesonline.org/fasttree")
2476 (synopsis "Infers approximately-maximum-likelihood phylogenetic trees")
2477 (description
2478 "FastTree can handle alignments with up to a million of sequences in a
2479 reasonable amount of time and memory. For large alignments, FastTree is
2480 100-1,000 times faster than PhyML 3.0 or RAxML 7.")
2481 (license license:gpl2+)))
2482
2483 (define-public fastx-toolkit
2484 (package
2485 (name "fastx-toolkit")
2486 (version "0.0.14")
2487 (source (origin
2488 (method url-fetch)
2489 (uri
2490 (string-append
2491 "https://github.com/agordon/fastx_toolkit/releases/download/"
2492 version "/fastx_toolkit-" version ".tar.bz2"))
2493 (sha256
2494 (base32
2495 "01jqzw386873sr0pjp1wr4rn8fsga2vxs1qfmicvx1pjr72007wy"))))
2496 (build-system gnu-build-system)
2497 (inputs
2498 `(("libgtextutils" ,libgtextutils)))
2499 (native-inputs
2500 `(("pkg-config" ,pkg-config)))
2501 (home-page "http://hannonlab.cshl.edu/fastx_toolkit/")
2502 (synopsis "Tools for FASTA/FASTQ file preprocessing")
2503 (description
2504 "The FASTX-Toolkit is a collection of command line tools for Short-Reads
2505 FASTA/FASTQ files preprocessing.
2506
2507 Next-Generation sequencing machines usually produce FASTA or FASTQ files,
2508 containing multiple short-reads sequences. The main processing of such
2509 FASTA/FASTQ files is mapping the sequences to reference genomes. However, it
2510 is sometimes more productive to preprocess the files before mapping the
2511 sequences to the genome---manipulating the sequences to produce better mapping
2512 results. The FASTX-Toolkit tools perform some of these preprocessing tasks.")
2513 (license license:agpl3+)))
2514
2515 (define-public flexbar
2516 (package
2517 (name "flexbar")
2518 (version "2.5")
2519 (source (origin
2520 (method url-fetch)
2521 (uri
2522 (string-append "mirror://sourceforge/flexbar/"
2523 version "/flexbar_v" version "_src.tgz"))
2524 (sha256
2525 (base32
2526 "13jaykc3y1x8y5nn9j8ljnb79s5y51kyxz46hdmvvjj6qhyympmf"))))
2527 (build-system cmake-build-system)
2528 (arguments
2529 `(#:configure-flags (list
2530 (string-append "-DFLEXBAR_BINARY_DIR="
2531 (assoc-ref %outputs "out")
2532 "/bin/"))
2533 #:phases
2534 (modify-phases %standard-phases
2535 (replace 'check
2536 (lambda* (#:key outputs #:allow-other-keys)
2537 (setenv "PATH" (string-append
2538 (assoc-ref outputs "out") "/bin:"
2539 (getenv "PATH")))
2540 (chdir "../flexbar_v2.5_src/test")
2541 (zero? (system* "bash" "flexbar_validate.sh"))))
2542 (delete 'install))))
2543 (inputs
2544 `(("tbb" ,tbb)
2545 ("zlib" ,zlib)))
2546 (native-inputs
2547 `(("pkg-config" ,pkg-config)
2548 ("seqan" ,seqan)))
2549 (home-page "http://flexbar.sourceforge.net")
2550 (synopsis "Barcode and adapter removal tool for sequencing platforms")
2551 (description
2552 "Flexbar preprocesses high-throughput nucleotide sequencing data
2553 efficiently. It demultiplexes barcoded runs and removes adapter sequences.
2554 Moreover, trimming and filtering features are provided. Flexbar increases
2555 read mapping rates and improves genome and transcriptome assemblies. It
2556 supports next-generation sequencing data in fasta/q and csfasta/q format from
2557 Illumina, Roche 454, and the SOLiD platform.")
2558 (license license:gpl3)))
2559
2560 (define-public fraggenescan
2561 (package
2562 (name "fraggenescan")
2563 (version "1.30")
2564 (source
2565 (origin
2566 (method url-fetch)
2567 (uri
2568 (string-append "mirror://sourceforge/fraggenescan/"
2569 "FragGeneScan" version ".tar.gz"))
2570 (sha256
2571 (base32 "158dcnwczgcyhwm4qlx19sanrwgdpzf6bn2y57mbpx55lkgz1mzj"))))
2572 (build-system gnu-build-system)
2573 (arguments
2574 `(#:phases
2575 (modify-phases %standard-phases
2576 (delete 'configure)
2577 (add-before 'build 'patch-paths
2578 (lambda* (#:key outputs #:allow-other-keys)
2579 (let* ((out (string-append (assoc-ref outputs "out")))
2580 (share (string-append out "/share/fraggenescan/")))
2581 (substitute* "run_FragGeneScan.pl"
2582 (("system\\(\"rm")
2583 (string-append "system(\"" (which "rm")))
2584 (("system\\(\"mv")
2585 (string-append "system(\"" (which "mv")))
2586 (("\\\"awk") (string-append "\"" (which "awk")))
2587 ;; This script and other programs expect the training files
2588 ;; to be in the non-standard location bin/train/XXX. Change
2589 ;; this to be share/fraggenescan/train/XXX instead.
2590 (("^\\$train.file = \\$dir.*")
2591 (string-append "$train_file = \""
2592 share
2593 "train/\".$FGS_train_file;")))
2594 (substitute* "run_hmm.c"
2595 (("^ strcat\\(train_dir, \\\"train/\\\"\\);")
2596 (string-append " strcpy(train_dir, \"" share "/train/\");"))))
2597 #t))
2598 (replace 'build
2599 (lambda _ (and (zero? (system* "make" "clean"))
2600 (zero? (system* "make" "fgs")))))
2601 (replace 'install
2602 (lambda* (#:key outputs #:allow-other-keys)
2603 (let* ((out (string-append (assoc-ref outputs "out")))
2604 (bin (string-append out "/bin/"))
2605 (share (string-append out "/share/fraggenescan/train")))
2606 (install-file "run_FragGeneScan.pl" bin)
2607 (install-file "FragGeneScan" bin)
2608 (copy-recursively "train" share))))
2609 (delete 'check)
2610 (add-after 'install 'post-install-check
2611 ;; In lieu of 'make check', run one of the examples and check the
2612 ;; output files gets created.
2613 (lambda* (#:key outputs #:allow-other-keys)
2614 (let* ((out (string-append (assoc-ref outputs "out")))
2615 (bin (string-append out "/bin/"))
2616 (frag (string-append bin "run_FragGeneScan.pl")))
2617 (and (zero? (system* frag ; Test complete genome.
2618 "-genome=./example/NC_000913.fna"
2619 "-out=./test2"
2620 "-complete=1"
2621 "-train=complete"))
2622 (file-exists? "test2.faa")
2623 (file-exists? "test2.ffn")
2624 (file-exists? "test2.gff")
2625 (file-exists? "test2.out")
2626 (zero? (system* ; Test incomplete sequences.
2627 frag
2628 "-genome=./example/NC_000913-fgs.ffn"
2629 "-out=out"
2630 "-complete=0"
2631 "-train=454_30")))))))))
2632 (inputs
2633 `(("perl" ,perl)
2634 ("python" ,python-2))) ;not compatible with python 3.
2635 (home-page "https://sourceforge.net/projects/fraggenescan/")
2636 (synopsis "Finds potentially fragmented genes in short reads")
2637 (description
2638 "FragGeneScan is a program for predicting bacterial and archaeal genes in
2639 short and error-prone DNA sequencing reads. It can also be applied to predict
2640 genes in incomplete assemblies or complete genomes.")
2641 ;; GPL3+ according to private correspondense with the authors.
2642 (license license:gpl3+)))
2643
2644 (define-public fxtract
2645 (let ((util-commit "776ca85a18a47492af3794745efcb4a905113115"))
2646 (package
2647 (name "fxtract")
2648 (version "2.3")
2649 (source
2650 (origin
2651 (method url-fetch)
2652 (uri (string-append
2653 "https://github.com/ctSkennerton/fxtract/archive/"
2654 version ".tar.gz"))
2655 (file-name (string-append "ctstennerton-util-"
2656 (string-take util-commit 7)
2657 "-checkout"))
2658 (sha256
2659 (base32
2660 "0275cfdhis8517hm01is62062swmi06fxzifq7mr3knbbxjlaiwj"))))
2661 (build-system gnu-build-system)
2662 (arguments
2663 `(#:make-flags (list
2664 (string-append "PREFIX=" (assoc-ref %outputs "out"))
2665 "CC=gcc")
2666 #:test-target "fxtract_test"
2667 #:phases
2668 (modify-phases %standard-phases
2669 (delete 'configure)
2670 (add-before 'build 'copy-util
2671 (lambda* (#:key inputs #:allow-other-keys)
2672 (rmdir "util")
2673 (copy-recursively (assoc-ref inputs "ctskennerton-util") "util")
2674 #t))
2675 ;; Do not use make install as this requires additional dependencies.
2676 (replace 'install
2677 (lambda* (#:key outputs #:allow-other-keys)
2678 (let* ((out (assoc-ref outputs "out"))
2679 (bin (string-append out"/bin")))
2680 (install-file "fxtract" bin)
2681 #t))))))
2682 (inputs
2683 `(("pcre" ,pcre)
2684 ("zlib" ,zlib)))
2685 (native-inputs
2686 ;; ctskennerton-util is licensed under GPL2.
2687 `(("ctskennerton-util"
2688 ,(origin
2689 (method git-fetch)
2690 (uri (git-reference
2691 (url "https://github.com/ctSkennerton/util.git")
2692 (commit util-commit)))
2693 (file-name (string-append
2694 "ctstennerton-util-" util-commit "-checkout"))
2695 (sha256
2696 (base32
2697 "0cls1hd4vgj3f36fpzzg4xc77d6f3hpc60cbpfmn2gdr7ykzzad7"))))))
2698 (home-page "https://github.com/ctSkennerton/fxtract")
2699 (synopsis "Extract sequences from FASTA and FASTQ files")
2700 (description
2701 "Fxtract extracts sequences from a protein or nucleotide fastx (FASTA
2702 or FASTQ) file given a subsequence. It uses a simple substring search for
2703 basic tasks but can change to using POSIX regular expressions, PCRE, hash
2704 lookups or multi-pattern searching as required. By default fxtract looks in
2705 the sequence of each record but can also be told to look in the header,
2706 comment or quality sections.")
2707 ;; 'util' requires SSE instructions.
2708 (supported-systems '("x86_64-linux"))
2709 (license license:expat))))
2710
2711 (define-public gemma
2712 (package
2713 (name "gemma")
2714 (version "0.96")
2715 (source (origin
2716 (method url-fetch)
2717 (uri (string-append "https://github.com/xiangzhou/GEMMA/archive/v"
2718 version ".tar.gz"))
2719 (file-name (string-append name "-" version ".tar.gz"))
2720 (sha256
2721 (base32
2722 "055ynn16gd12pf78n4vr2a9jlwsbwzajpdnf2y2yilg1krfff222"))
2723 (patches (search-patches "gemma-intel-compat.patch"))))
2724 (inputs
2725 `(("gsl" ,gsl)
2726 ("lapack" ,lapack)
2727 ("zlib" ,zlib)))
2728 (build-system gnu-build-system)
2729 (arguments
2730 `(#:make-flags
2731 '(,@(match (%current-system)
2732 ("x86_64-linux"
2733 '("FORCE_DYNAMIC=1"))
2734 ("i686-linux"
2735 '("FORCE_DYNAMIC=1" "FORCE_32BIT=1"))
2736 (_
2737 '("FORCE_DYNAMIC=1" "NO_INTEL_COMPAT=1"))))
2738 #:phases
2739 (modify-phases %standard-phases
2740 (delete 'configure)
2741 (add-before 'build 'bin-mkdir
2742 (lambda _
2743 (mkdir-p "bin")
2744 #t))
2745 (replace 'install
2746 (lambda* (#:key outputs #:allow-other-keys)
2747 (let ((out (assoc-ref outputs "out")))
2748 (install-file "bin/gemma"
2749 (string-append
2750 out "/bin")))
2751 #t)))
2752 #:tests? #f)) ; no tests included yet
2753 (home-page "https://github.com/xiangzhou/GEMMA")
2754 (synopsis "Tool for genome-wide efficient mixed model association")
2755 (description
2756 "Genome-wide Efficient Mixed Model Association (GEMMA) provides a
2757 standard linear mixed model resolver with application in genome-wide
2758 association studies (GWAS).")
2759 (license license:gpl3)))
2760
2761 (define-public grit
2762 (package
2763 (name "grit")
2764 (version "2.0.2")
2765 (source (origin
2766 (method url-fetch)
2767 (uri (string-append
2768 "https://github.com/nboley/grit/archive/"
2769 version ".tar.gz"))
2770 (file-name (string-append name "-" version ".tar.gz"))
2771 (sha256
2772 (base32
2773 "157in84dj70wimbind3x7sy1whs3h57qfgcnj2s6lrd38fbrb7mj"))))
2774 (build-system python-build-system)
2775 (arguments
2776 `(#:python ,python-2
2777 #:phases
2778 (modify-phases %standard-phases
2779 (add-after 'unpack 'generate-from-cython-sources
2780 (lambda* (#:key inputs outputs #:allow-other-keys)
2781 ;; Delete these C files to force fresh generation from pyx sources.
2782 (delete-file "grit/sparsify_support_fns.c")
2783 (delete-file "grit/call_peaks_support_fns.c")
2784 (substitute* "setup.py"
2785 (("Cython.Setup") "Cython.Build")
2786 ;; Add numpy include path to fix compilation
2787 (("pyx\", \\]")
2788 (string-append "pyx\", ], include_dirs = ['"
2789 (assoc-ref inputs "python-numpy")
2790 "/lib/python2.7/site-packages/numpy/core/include/"
2791 "']")))
2792 #t)))))
2793 (inputs
2794 `(("python-scipy" ,python2-scipy)
2795 ("python-numpy" ,python2-numpy)
2796 ("python-pysam" ,python2-pysam)
2797 ("python-networkx" ,python2-networkx)))
2798 (native-inputs
2799 `(("python-cython" ,python2-cython)))
2800 (home-page "http://grit-bio.org")
2801 (synopsis "Tool for integrative analysis of RNA-seq type assays")
2802 (description
2803 "GRIT is designed to use RNA-seq, TES, and TSS data to build and quantify
2804 full length transcript models. When none of these data sources are available,
2805 GRIT can be run by providing a candidate set of TES or TSS sites. In
2806 addition, GRIT can merge in reference junctions and gene boundaries. GRIT can
2807 also be run in quantification mode, where it uses a provided GTF file and just
2808 estimates transcript expression.")
2809 (license license:gpl3+)))
2810
2811 (define-public hisat
2812 (package
2813 (name "hisat")
2814 (version "0.1.4")
2815 (source (origin
2816 (method url-fetch)
2817 (uri (string-append
2818 "http://ccb.jhu.edu/software/hisat/downloads/hisat-"
2819 version "-beta-source.zip"))
2820 (sha256
2821 (base32
2822 "1k381ydranqxp09yf2y7w1d0chz5d59vb6jchi89hbb0prq19lk5"))))
2823 (build-system gnu-build-system)
2824 (arguments
2825 `(#:tests? #f ;no check target
2826 #:make-flags '("allall"
2827 ;; Disable unsupported `popcnt' instructions on
2828 ;; architectures other than x86_64
2829 ,@(if (string-prefix? "x86_64"
2830 (or (%current-target-system)
2831 (%current-system)))
2832 '()
2833 '("POPCNT_CAPABILITY=0")))
2834 #:phases
2835 (modify-phases %standard-phases
2836 (add-after 'unpack 'patch-sources
2837 (lambda _
2838 ;; XXX Cannot use snippet because zip files are not supported
2839 (substitute* "Makefile"
2840 (("^CC = .*$") "CC = gcc")
2841 (("^CPP = .*$") "CPP = g++")
2842 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
2843 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
2844 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
2845 (substitute* '("hisat-build" "hisat-inspect")
2846 (("/usr/bin/env") (which "env")))
2847 #t))
2848 (replace 'install
2849 (lambda* (#:key outputs #:allow-other-keys)
2850 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
2851 (for-each (lambda (file)
2852 (install-file file bin))
2853 (find-files
2854 "."
2855 "hisat(-(build|align|inspect)(-(s|l)(-debug)*)*)*$")))
2856 #t))
2857 (delete 'configure))))
2858 (native-inputs
2859 `(("unzip" ,unzip)))
2860 (inputs
2861 `(("perl" ,perl)
2862 ("python" ,python)
2863 ("zlib" ,zlib)))
2864 ;; Non-portable SSE instructions are used so building fails on platforms
2865 ;; other than x86_64.
2866 (supported-systems '("x86_64-linux"))
2867 (home-page "http://ccb.jhu.edu/software/hisat/index.shtml")
2868 (synopsis "Hierarchical indexing for spliced alignment of transcripts")
2869 (description
2870 "HISAT is a fast and sensitive spliced alignment program for mapping
2871 RNA-seq reads. In addition to one global FM index that represents a whole
2872 genome, HISAT uses a large set of small FM indexes that collectively cover the
2873 whole genome. These small indexes (called local indexes) combined with
2874 several alignment strategies enable effective alignment of RNA-seq reads, in
2875 particular, reads spanning multiple exons.")
2876 (license license:gpl3+)))
2877
2878 (define-public hisat2
2879 (package
2880 (name "hisat2")
2881 (version "2.0.5")
2882 (source
2883 (origin
2884 (method url-fetch)
2885 ;; FIXME: a better source URL is
2886 ;; (string-append "ftp://ftp.ccb.jhu.edu/pub/infphilo/hisat2"
2887 ;; "/downloads/hisat2-" version "-source.zip")
2888 ;; with hash "0lywnr8kijwsc2aw10dwxic0n0yvip6fl3rjlvc8zzwahamy4x7g"
2889 ;; but it is currently unavailable.
2890 (uri "https://github.com/infphilo/hisat2/archive/cba6e8cb.tar.gz")
2891 (file-name (string-append name "-" version ".tar.gz"))
2892 (sha256
2893 (base32
2894 "1mf2hdsyv7cd97xm9mp9a4qws02yrj95y6w6f6cdwnq0klp81r50"))))
2895 (build-system gnu-build-system)
2896 (arguments
2897 `(#:tests? #f ; no check target
2898 #:make-flags (list "CC=gcc" "CXX=g++" "allall")
2899 #:modules ((guix build gnu-build-system)
2900 (guix build utils)
2901 (srfi srfi-26))
2902 #:phases
2903 (modify-phases %standard-phases
2904 (add-after 'unpack 'make-deterministic
2905 (lambda _
2906 (substitute* "Makefile"
2907 (("`date`") "0"))
2908 #t))
2909 (delete 'configure)
2910 (replace 'install
2911 (lambda* (#:key outputs #:allow-other-keys)
2912 (let* ((out (assoc-ref outputs "out"))
2913 (bin (string-append out "/bin/"))
2914 (doc (string-append out "/share/doc/hisat2/")))
2915 (for-each
2916 (cut install-file <> bin)
2917 (find-files "."
2918 "hisat2(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))
2919 (mkdir-p doc)
2920 (install-file "doc/manual.inc.html" doc))
2921 #t)))))
2922 (native-inputs
2923 `(("unzip" ,unzip) ; needed for archive from ftp
2924 ("perl" ,perl)
2925 ("pandoc" ,ghc-pandoc))) ; for documentation
2926 (home-page "http://ccb.jhu.edu/software/hisat2/index.shtml")
2927 (synopsis "Graph-based alignment of genomic sequencing reads")
2928 (description "HISAT2 is a fast and sensitive alignment program for mapping
2929 next-generation sequencing reads (both DNA and RNA) to a population of human
2930 genomes (as well as to a single reference genome). In addition to using one
2931 global @dfn{graph FM} (GFM) index that represents a population of human
2932 genomes, HISAT2 uses a large set of small GFM indexes that collectively cover
2933 the whole genome. These small indexes, combined with several alignment
2934 strategies, enable rapid and accurate alignment of sequencing reads. This new
2935 indexing scheme is called a @dfn{Hierarchical Graph FM index} (HGFM).")
2936 ;; HISAT2 contains files from Bowtie2, which is released under
2937 ;; GPLv2 or later. The HISAT2 source files are released under
2938 ;; GPLv3 or later.
2939 (license license:gpl3+)))
2940
2941 (define-public hmmer
2942 (package
2943 (name "hmmer")
2944 (version "3.1b2")
2945 (source
2946 (origin
2947 (method url-fetch)
2948 (uri (string-append
2949 "http://eddylab.org/software/hmmer"
2950 (version-major version) "/"
2951 version "/hmmer-" version ".tar.gz"))
2952 (sha256
2953 (base32
2954 "0djmgc0pfli0jilfx8hql1axhwhqxqb8rxg2r5rg07aw73sfs5nx"))
2955 (patches (search-patches "hmmer-remove-cpu-specificity.patch"))))
2956 (build-system gnu-build-system)
2957 (native-inputs `(("perl" ,perl)))
2958 (home-page "http://hmmer.org/")
2959 (synopsis "Biosequence analysis using profile hidden Markov models")
2960 (description
2961 "HMMER is used for searching sequence databases for homologs of protein
2962 sequences, and for making protein sequence alignments. It implements methods
2963 using probabilistic models called profile hidden Markov models (profile
2964 HMMs).")
2965 (license (list license:gpl3+
2966 ;; The bundled library 'easel' is distributed
2967 ;; under The Janelia Farm Software License.
2968 (license:non-copyleft
2969 "file://easel/LICENSE"
2970 "See easel/LICENSE in the distribution.")))))
2971
2972 (define-public htseq
2973 (package
2974 (name "htseq")
2975 (version "0.9.1")
2976 (source (origin
2977 (method url-fetch)
2978 (uri (pypi-uri "HTSeq" version))
2979 (sha256
2980 (base32
2981 "11flgb1381xdhk43bzbfm3vhnszkpqg6jk76rpa5xd1zbrvvlnxg"))))
2982 (build-system python-build-system)
2983 (native-inputs
2984 `(("python-cython" ,python-cython)))
2985 ;; Numpy needs to be propagated when htseq is used as a Python library.
2986 (propagated-inputs
2987 `(("python-numpy" ,python-numpy)))
2988 (inputs
2989 `(("python-pysam" ,python-pysam)
2990 ("python-matplotlib" ,python-matplotlib)))
2991 (home-page "http://www-huber.embl.de/users/anders/HTSeq/")
2992 (synopsis "Analysing high-throughput sequencing data with Python")
2993 (description
2994 "HTSeq is a Python package that provides infrastructure to process data
2995 from high-throughput sequencing assays.")
2996 (license license:gpl3+)))
2997
2998 (define-public python2-htseq
2999 (package-with-python2 htseq))
3000
3001 (define-public java-htsjdk
3002 (package
3003 (name "java-htsjdk")
3004 (version "2.3.0") ; last version without build dependency on gradle
3005 (source (origin
3006 (method url-fetch)
3007 (uri (string-append
3008 "https://github.com/samtools/htsjdk/archive/"
3009 version ".tar.gz"))
3010 (file-name (string-append name "-" version ".tar.gz"))
3011 (sha256
3012 (base32
3013 "1ibhzzxsfc38nqyk9r8zqj6blfc1kh26iirypd4q6n90hs2m6nyq"))
3014 (modules '((guix build utils)))
3015 (snippet
3016 ;; Delete pre-built binaries
3017 '(begin
3018 (delete-file-recursively "lib")
3019 (mkdir-p "lib")
3020 #t))))
3021 (build-system ant-build-system)
3022 (arguments
3023 `(#:tests? #f ; test require Internet access
3024 #:jdk ,icedtea-8
3025 #:make-flags
3026 (list (string-append "-Ddist=" (assoc-ref %outputs "out")
3027 "/share/java/htsjdk/"))
3028 #:build-target "all"
3029 #:phases
3030 (modify-phases %standard-phases
3031 ;; The build phase also installs the jars
3032 (delete 'install))))
3033 (inputs
3034 `(("java-ngs" ,java-ngs)
3035 ("java-snappy-1" ,java-snappy-1)
3036 ("java-commons-compress" ,java-commons-compress)
3037 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
3038 ("java-commons-jexl-2" ,java-commons-jexl-2)
3039 ("java-xz" ,java-xz)))
3040 (native-inputs
3041 `(("java-testng" ,java-testng)))
3042 (home-page "http://samtools.github.io/htsjdk/")
3043 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3044 (description
3045 "HTSJDK is an implementation of a unified Java library for accessing
3046 common file formats, such as SAM and VCF, used for high-throughput
3047 sequencing (HTS) data. There are also an number of useful utilities for
3048 manipulating HTS data.")
3049 (license license:expat)))
3050
3051 (define-public java-htsjdk-latest
3052 (package
3053 (name "java-htsjdk")
3054 (version "2.14.3")
3055 (source (origin
3056 (method git-fetch)
3057 (uri (git-reference
3058 (url "https://github.com/samtools/htsjdk.git")
3059 (commit version)))
3060 (file-name (string-append name "-" version "-checkout"))
3061 (sha256
3062 (base32
3063 "1lmya1fdjy03mz6zmdmd86j9v9vfhqb3952mqq075navx1i6g4bc"))))
3064 (build-system ant-build-system)
3065 (arguments
3066 `(#:tests? #f ; test require Scala
3067 #:jdk ,icedtea-8
3068 #:jar-name "htsjdk.jar"
3069 #:phases
3070 (modify-phases %standard-phases
3071 (add-after 'unpack 'remove-useless-build.xml
3072 (lambda _ (delete-file "build.xml") #t))
3073 ;; The tests require the scalatest package.
3074 (add-after 'unpack 'remove-tests
3075 (lambda _ (delete-file-recursively "src/test") #t)))))
3076 (inputs
3077 `(("java-ngs" ,java-ngs)
3078 ("java-snappy-1" ,java-snappy-1)
3079 ("java-commons-compress" ,java-commons-compress)
3080 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
3081 ("java-commons-jexl-2" ,java-commons-jexl-2)
3082 ("java-xz" ,java-xz)))
3083 (native-inputs
3084 `(("java-junit" ,java-junit)))
3085 (home-page "http://samtools.github.io/htsjdk/")
3086 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3087 (description
3088 "HTSJDK is an implementation of a unified Java library for accessing
3089 common file formats, such as SAM and VCF, used for high-throughput
3090 sequencing (HTS) data. There are also an number of useful utilities for
3091 manipulating HTS data.")
3092 (license license:expat)))
3093
3094 ;; This is needed for picard 2.10.3
3095 (define-public java-htsjdk-2.10.1
3096 (package (inherit java-htsjdk-latest)
3097 (name "java-htsjdk")
3098 (version "2.10.1")
3099 (source (origin
3100 (method git-fetch)
3101 (uri (git-reference
3102 (url "https://github.com/samtools/htsjdk.git")
3103 (commit version)))
3104 (file-name (string-append name "-" version "-checkout"))
3105 (sha256
3106 (base32
3107 "1kxh7slm2pm3x9p6jxa1wqsq9a31dhiiflhxnxqcisan4k3rwia2"))))
3108 (build-system ant-build-system)
3109 (arguments
3110 `(#:tests? #f ; tests require Scala
3111 #:jdk ,icedtea-8
3112 #:jar-name "htsjdk.jar"
3113 #:phases
3114 (modify-phases %standard-phases
3115 (add-after 'unpack 'remove-useless-build.xml
3116 (lambda _ (delete-file "build.xml") #t))
3117 ;; The tests require the scalatest package.
3118 (add-after 'unpack 'remove-tests
3119 (lambda _ (delete-file-recursively "src/test") #t)))))))
3120
3121 ;; This version matches java-htsjdk 2.3.0. Later versions also require a more
3122 ;; recent version of java-htsjdk, which depends on gradle.
3123 (define-public java-picard
3124 (package
3125 (name "java-picard")
3126 (version "2.3.0")
3127 (source (origin
3128 (method git-fetch)
3129 (uri (git-reference
3130 (url "https://github.com/broadinstitute/picard.git")
3131 (commit version)))
3132 (file-name (string-append "java-picard-" version "-checkout"))
3133 (sha256
3134 (base32
3135 "1ll7mf4r3by92w2nhlmpa591xd1f46xlkwh59mq6fvbb5pdwzvx6"))
3136 (modules '((guix build utils)))
3137 (snippet
3138 '(begin
3139 ;; Delete pre-built binaries.
3140 (delete-file-recursively "lib")
3141 (mkdir-p "lib")
3142 (substitute* "build.xml"
3143 ;; Remove build-time dependency on git.
3144 (("failifexecutionfails=\"true\"")
3145 "failifexecutionfails=\"false\"")
3146 ;; Use our htsjdk.
3147 (("depends=\"compile-htsjdk, ")
3148 "depends=\"")
3149 (("depends=\"compile-htsjdk-tests, ")
3150 "depends=\"")
3151 ;; Build picard-lib.jar before building picard.jar
3152 (("name=\"picard-jar\" depends=\"" line)
3153 (string-append line "picard-lib-jar, ")))
3154 #t))))
3155 (build-system ant-build-system)
3156 (arguments
3157 `(#:build-target "picard-jar"
3158 #:test-target "test"
3159 ;; Tests require jacoco:coverage.
3160 #:tests? #f
3161 #:make-flags
3162 (list (string-append "-Dhtsjdk_lib_dir="
3163 (assoc-ref %build-inputs "java-htsjdk")
3164 "/share/java/htsjdk/")
3165 "-Dhtsjdk-classes=dist/tmp"
3166 (string-append "-Dhtsjdk-version="
3167 ,(package-version java-htsjdk)))
3168 #:jdk ,icedtea-8
3169 #:phases
3170 (modify-phases %standard-phases
3171 ;; FIXME: this phase fails with "duplicate entry: htsjdk/samtools/AbstractBAMFileIndex$1.class"
3172 (delete 'generate-jar-indices)
3173 (add-after 'unpack 'use-our-htsjdk
3174 (lambda* (#:key inputs #:allow-other-keys)
3175 (substitute* "build.xml"
3176 (("\\$\\{htsjdk\\}/lib")
3177 (string-append (assoc-ref inputs "java-htsjdk")
3178 "/share/java/htsjdk/")))
3179 #t))
3180 (add-after 'unpack 'make-test-target-independent
3181 (lambda* (#:key inputs #:allow-other-keys)
3182 (substitute* "build.xml"
3183 (("name=\"test\" depends=\"compile, ")
3184 "name=\"test\" depends=\""))
3185 #t))
3186 (replace 'install (install-jars "dist")))))
3187 (inputs
3188 `(("java-htsjdk" ,java-htsjdk)
3189 ("java-guava" ,java-guava)))
3190 (native-inputs
3191 `(("java-testng" ,java-testng)))
3192 (home-page "http://broadinstitute.github.io/picard/")
3193 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
3194 (description "Picard is a set of Java command line tools for manipulating
3195 high-throughput sequencing (HTS) data and formats. Picard is implemented
3196 using the HTSJDK Java library to support accessing file formats that are
3197 commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
3198 VCF.")
3199 (license license:expat)))
3200
3201 ;; This is needed for dropseq-tools
3202 (define-public java-picard-2.10.3
3203 (package
3204 (name "java-picard")
3205 (version "2.10.3")
3206 (source (origin
3207 (method git-fetch)
3208 (uri (git-reference
3209 (url "https://github.com/broadinstitute/picard.git")
3210 (commit version)))
3211 (file-name (string-append "java-picard-" version "-checkout"))
3212 (sha256
3213 (base32
3214 "1ajlx31l6i1k3y2rhnmgq07sz99g2czqfqgkr9mihmdjp3gwjhvi"))))
3215 (build-system ant-build-system)
3216 (arguments
3217 `(#:jar-name "picard.jar"
3218 ;; Tests require jacoco:coverage.
3219 #:tests? #f
3220 #:jdk ,icedtea-8
3221 #:main-class "picard.cmdline.PicardCommandLine"
3222 #:modules ((guix build ant-build-system)
3223 (guix build utils)
3224 (guix build java-utils)
3225 (sxml simple)
3226 (sxml transform)
3227 (sxml xpath))
3228 #:phases
3229 (modify-phases %standard-phases
3230 ;; FIXME: this phase fails with "duplicate entry: htsjdk/samtools/AbstractBAMFileIndex$1.class"
3231 (delete 'generate-jar-indices)
3232 (add-after 'unpack 'remove-useless-build.xml
3233 (lambda _ (delete-file "build.xml") #t))
3234 ;; This is necessary to ensure that htsjdk is found when using
3235 ;; picard.jar as an executable.
3236 (add-before 'build 'edit-classpath-in-manifest
3237 (lambda* (#:key inputs #:allow-other-keys)
3238 (chmod "build.xml" #o664)
3239 (call-with-output-file "build.xml.new"
3240 (lambda (port)
3241 (sxml->xml
3242 (pre-post-order
3243 (with-input-from-file "build.xml"
3244 (lambda _ (xml->sxml #:trim-whitespace? #t)))
3245 `((target . ,(lambda (tag . kids)
3246 (let ((name ((sxpath '(name *text*))
3247 (car kids)))
3248 ;; FIXME: We're breaking the line
3249 ;; early with a dummy path to
3250 ;; ensure that the store reference
3251 ;; isn't broken apart and can still
3252 ;; be found by the reference
3253 ;; scanner.
3254 (msg (format #f
3255 "\
3256 Class-Path: /~a \
3257 ~a/share/java/htsjdk.jar${line.separator}${line.separator}"
3258 ;; maximum line length is 70
3259 (string-tabulate (const #\b) 57)
3260 (assoc-ref inputs "java-htsjdk"))))
3261 (if (member "manifest" name)
3262 `(,tag ,@kids
3263 (replaceregexp
3264 (@ (file "${manifest.file}")
3265 (match "\\r\\n\\r\\n")
3266 (replace "${line.separator}")))
3267 (echo
3268 (@ (message ,msg)
3269 (file "${manifest.file}")
3270 (append "true"))))
3271 `(,tag ,@kids)))))
3272 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
3273 (*text* . ,(lambda (_ txt) txt))))
3274 port)))
3275 (rename-file "build.xml.new" "build.xml")
3276 #t)))))
3277 (propagated-inputs
3278 `(("java-htsjdk" ,java-htsjdk-2.10.1)))
3279 (native-inputs
3280 `(("java-testng" ,java-testng)
3281 ("java-guava" ,java-guava)))
3282 (home-page "http://broadinstitute.github.io/picard/")
3283 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
3284 (description "Picard is a set of Java command line tools for manipulating
3285 high-throughput sequencing (HTS) data and formats. Picard is implemented
3286 using the HTSJDK Java library to support accessing file formats that are
3287 commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
3288 VCF.")
3289 (license license:expat)))
3290
3291 ;; This is the last version of Picard to provide net.sf.samtools
3292 (define-public java-picard-1.113
3293 (package (inherit java-picard)
3294 (name "java-picard")
3295 (version "1.113")
3296 (source (origin
3297 (method git-fetch)
3298 (uri (git-reference
3299 (url "https://github.com/broadinstitute/picard.git")
3300 (commit version)))
3301 (file-name (string-append "java-picard-" version "-checkout"))
3302 (sha256
3303 (base32
3304 "0lkpvin2fz3hhly4l02kk56fqy8lmlgyzr9kmvljk6ry6l1hw973"))
3305 (modules '((guix build utils)))
3306 (snippet
3307 '(begin
3308 ;; Delete pre-built binaries.
3309 (delete-file-recursively "lib")
3310 (mkdir-p "lib")
3311 #t))))
3312 (build-system ant-build-system)
3313 (arguments
3314 `(#:build-target "picard-jar"
3315 #:test-target "test"
3316 ;; FIXME: the class path at test time is wrong.
3317 ;; [testng] Error: A JNI error has occurred, please check your installation and try again
3318 ;; [testng] Exception in thread "main" java.lang.NoClassDefFoundError: com/beust/jcommander/ParameterException
3319 #:tests? #f
3320 #:jdk ,icedtea-8
3321 ;; This is only used for tests.
3322 #:make-flags
3323 (list "-Dsamjdk.intel_deflater_so_path=lib/jni/libIntelDeflater.so")
3324 #:phases
3325 (modify-phases %standard-phases
3326 ;; FIXME: This phase fails.
3327 (delete 'generate-jar-indices)
3328 ;; Do not use bundled ant bzip2.
3329 (add-after 'unpack 'use-ant-bzip
3330 (lambda* (#:key inputs #:allow-other-keys)
3331 (substitute* "build.xml"
3332 (("\\$\\{lib\\}/apache-ant-1.8.2-bzip2.jar")
3333 (string-append (assoc-ref inputs "ant")
3334 "/lib/ant.jar")))
3335 #t))
3336 (add-after 'unpack 'make-test-target-independent
3337 (lambda* (#:key inputs #:allow-other-keys)
3338 (substitute* "build.xml"
3339 (("name=\"test\" depends=\"compile, ")
3340 "name=\"test\" depends=\"compile-tests, ")
3341 (("name=\"compile\" depends=\"compile-src, compile-tests\"")
3342 "name=\"compile\" depends=\"compile-src\""))
3343 #t))
3344 (add-after 'unpack 'fix-deflater-path
3345 (lambda* (#:key outputs #:allow-other-keys)
3346 (substitute* "src/java/net/sf/samtools/Defaults.java"
3347 (("getStringProperty\\(\"intel_deflater_so_path\", null\\)")
3348 (string-append "getStringProperty(\"intel_deflater_so_path\", \""
3349 (assoc-ref outputs "out")
3350 "/lib/jni/libIntelDeflater.so"
3351 "\")")))
3352 #t))
3353 ;; Build the deflater library, because we've previously deleted the
3354 ;; pre-built one. This can only be built with access to the JDK
3355 ;; sources.
3356 (add-after 'build 'build-jni
3357 (lambda* (#:key inputs #:allow-other-keys)
3358 (mkdir-p "lib/jni")
3359 (mkdir-p "jdk-src")
3360 (and (zero? (system* "tar" "--strip-components=1" "-C" "jdk-src"
3361 "-xf" (assoc-ref inputs "jdk-src")))
3362 (zero? (system* "javah" "-jni"
3363 "-classpath" "classes"
3364 "-d" "lib/"
3365 "net.sf.samtools.util.zip.IntelDeflater"))
3366 (with-directory-excursion "src/c/inteldeflater"
3367 (zero? (system* "gcc" "-I../../../lib" "-I."
3368 (string-append "-I" (assoc-ref inputs "jdk")
3369 "/include/linux")
3370 "-I../../../jdk-src/src/share/native/common/"
3371 "-I../../../jdk-src/src/solaris/native/common/"
3372 "-c" "-O3" "-fPIC" "IntelDeflater.c"))
3373 (zero? (system* "gcc" "-shared"
3374 "-o" "../../../lib/jni/libIntelDeflater.so"
3375 "IntelDeflater.o" "-lz" "-lstdc++"))))))
3376 ;; We can only build everything else after building the JNI library.
3377 (add-after 'build-jni 'build-rest
3378 (lambda* (#:key make-flags #:allow-other-keys)
3379 (zero? (apply system* `("ant" "all" ,@make-flags)))))
3380 (add-before 'build 'set-JAVA6_HOME
3381 (lambda _
3382 (setenv "JAVA6_HOME" (getenv "JAVA_HOME"))
3383 #t))
3384 (replace 'install (install-jars "dist"))
3385 (add-after 'install 'install-jni-lib
3386 (lambda* (#:key outputs #:allow-other-keys)
3387 (let ((jni (string-append (assoc-ref outputs "out")
3388 "/lib/jni")))
3389 (mkdir-p jni)
3390 (install-file "lib/jni/libIntelDeflater.so" jni)
3391 #t))))))
3392 (inputs
3393 `(("java-snappy-1" ,java-snappy-1)
3394 ("java-commons-jexl-2" ,java-commons-jexl-2)
3395 ("java-cofoja" ,java-cofoja)
3396 ("ant" ,ant) ; for bzip2 support at runtime
3397 ("zlib" ,zlib)))
3398 (native-inputs
3399 `(("ant-apache-bcel" ,ant-apache-bcel)
3400 ("ant-junit" ,ant-junit)
3401 ("java-testng" ,java-testng)
3402 ("java-commons-bcel" ,java-commons-bcel)
3403 ("java-jcommander" ,java-jcommander)
3404 ("jdk" ,icedtea-8 "jdk")
3405 ("jdk-src" ,(car (assoc-ref (package-native-inputs icedtea-8) "jdk-drop")))))))
3406
3407 (define-public fastqc
3408 (package
3409 (name "fastqc")
3410 (version "0.11.5")
3411 (source
3412 (origin
3413 (method url-fetch)
3414 (uri (string-append "http://www.bioinformatics.babraham.ac.uk/"
3415 "projects/fastqc/fastqc_v"
3416 version "_source.zip"))
3417 (sha256
3418 (base32
3419 "18rrlkhcrxvvvlapch4dpj6xc6mpayzys8qfppybi8jrpgx5cc5f"))))
3420 (build-system ant-build-system)
3421 (arguments
3422 `(#:tests? #f ; there are no tests
3423 #:build-target "build"
3424 #:phases
3425 (modify-phases %standard-phases
3426 (add-after 'unpack 'fix-dependencies
3427 (lambda* (#:key inputs #:allow-other-keys)
3428 (substitute* "build.xml"
3429 (("jbzip2-0.9.jar")
3430 (string-append (assoc-ref inputs "java-jbzip2")
3431 "/share/java/jbzip2.jar"))
3432 (("sam-1.103.jar")
3433 (string-append (assoc-ref inputs "java-picard-1.113")
3434 "/share/java/sam-1.112.jar"))
3435 (("cisd-jhdf5.jar")
3436 (string-append (assoc-ref inputs "java-cisd-jhdf5")
3437 "/share/java/sis-jhdf5.jar")))
3438 #t))
3439 ;; There is no installation target
3440 (replace 'install
3441 (lambda* (#:key inputs outputs #:allow-other-keys)
3442 (let* ((out (assoc-ref outputs "out"))
3443 (bin (string-append out "/bin"))
3444 (share (string-append out "/share/fastqc/"))
3445 (exe (string-append share "/fastqc")))
3446 (for-each mkdir-p (list bin share))
3447 (copy-recursively "bin" share)
3448 (substitute* exe
3449 (("my \\$java_bin = 'java';")
3450 (string-append "my $java_bin = '"
3451 (assoc-ref inputs "java")
3452 "/bin/java';")))
3453 (chmod exe #o555)
3454 (symlink exe (string-append bin "/fastqc"))
3455 #t))))))
3456 (inputs
3457 `(("java" ,icedtea)
3458 ("perl" ,perl) ; needed for the wrapper script
3459 ("java-cisd-jhdf5" ,java-cisd-jhdf5)
3460 ("java-picard-1.113" ,java-picard-1.113)
3461 ("java-jbzip2" ,java-jbzip2)))
3462 (native-inputs
3463 `(("unzip" ,unzip)))
3464 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/fastqc/")
3465 (synopsis "Quality control tool for high throughput sequence data")
3466 (description
3467 "FastQC aims to provide a simple way to do some quality control
3468 checks on raw sequence data coming from high throughput sequencing
3469 pipelines. It provides a modular set of analyses which you can use to
3470 give a quick impression of whether your data has any problems of which
3471 you should be aware before doing any further analysis.
3472
3473 The main functions of FastQC are:
3474
3475 @itemize
3476 @item Import of data from BAM, SAM or FastQ files (any variant);
3477 @item Providing a quick overview to tell you in which areas there may
3478 be problems;
3479 @item Summary graphs and tables to quickly assess your data;
3480 @item Export of results to an HTML based permanent report;
3481 @item Offline operation to allow automated generation of reports
3482 without running the interactive application.
3483 @end itemize\n")
3484 (license license:gpl3+)))
3485
3486 (define-public fastp
3487 (package
3488 (name "fastp")
3489 (version "0.14.1")
3490 (source
3491 (origin
3492 (method git-fetch)
3493 (uri (git-reference
3494 (url "https://github.com/OpenGene/fastp.git")
3495 (commit (string-append "v" version))))
3496 (file-name (git-file-name name version))
3497 (sha256
3498 (base32
3499 "1r6ms5zbf5rps4rgp4z73nczadl00b5rqylw8f684isfz27dp0xh"))))
3500 (build-system gnu-build-system)
3501 (arguments
3502 `(#:tests? #f ; there are none
3503 #:make-flags
3504 (list (string-append "BINDIR=" (assoc-ref %outputs "out") "/bin"))
3505 #:phases
3506 (modify-phases %standard-phases
3507 (delete 'configure)
3508 (add-before 'install 'create-target-dir
3509 (lambda* (#:key outputs #:allow-other-keys)
3510 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
3511 #t)))))
3512 (inputs
3513 `(("zlib" ,zlib)))
3514 (home-page "https://github.com/OpenGene/fastp/")
3515 (synopsis "All-in-one FastQ preprocessor")
3516 (description
3517 "Fastp is a tool designed to provide fast all-in-one preprocessing for
3518 FastQ files. This tool has multi-threading support to afford high
3519 performance.")
3520 (license license:expat)))
3521
3522 (define-public htslib
3523 (package
3524 (name "htslib")
3525 (version "1.8")
3526 (source (origin
3527 (method url-fetch)
3528 (uri (string-append
3529 "https://github.com/samtools/htslib/releases/download/"
3530 version "/htslib-" version ".tar.bz2"))
3531 (sha256
3532 (base32
3533 "18bw0mn9pj5wgarnlaxmf1bb8pdqgl1zd6czirqcr62ajpn1xvy0"))))
3534 (build-system gnu-build-system)
3535 (inputs
3536 `(("openssl" ,openssl)
3537 ("curl" ,curl)
3538 ("zlib" ,zlib)))
3539 (native-inputs
3540 `(("perl" ,perl)))
3541 (home-page "http://www.htslib.org")
3542 (synopsis "C library for reading/writing high-throughput sequencing data")
3543 (description
3544 "HTSlib is a C library for reading/writing high-throughput sequencing
3545 data. It also provides the @command{bgzip}, @command{htsfile}, and
3546 @command{tabix} utilities.")
3547 ;; Files under cram/ are released under the modified BSD license;
3548 ;; the rest is released under the Expat license
3549 (license (list license:expat license:bsd-3))))
3550
3551 ;; This package should be removed once no packages rely upon it.
3552 (define htslib-1.3
3553 (package
3554 (inherit htslib)
3555 (version "1.3.1")
3556 (source (origin
3557 (method url-fetch)
3558 (uri (string-append
3559 "https://github.com/samtools/htslib/releases/download/"
3560 version "/htslib-" version ".tar.bz2"))
3561 (sha256
3562 (base32
3563 "1rja282fwdc25ql6izkhdyh8ppw8x2fs0w0js78zgkmqjlikmma9"))))))
3564
3565 (define-public idr
3566 (package
3567 (name "idr")
3568 (version "2.0.3")
3569 (source (origin
3570 (method url-fetch)
3571 (uri (string-append
3572 "https://github.com/nboley/idr/archive/"
3573 version ".tar.gz"))
3574 (file-name (string-append name "-" version ".tar.gz"))
3575 (sha256
3576 (base32
3577 "1rjdly6daslw66r43g9md8znizlscn1sphycqyldzsidkc4vxqv3"))
3578 ;; Delete generated C code.
3579 (snippet
3580 '(begin (delete-file "idr/inv_cdf.c") #t))))
3581 (build-system python-build-system)
3582 ;; There is only one test ("test_inv_cdf.py") and it tests features that
3583 ;; are no longer part of this package. It also asserts False, which
3584 ;; causes the tests to always fail.
3585 (arguments `(#:tests? #f))
3586 (propagated-inputs
3587 `(("python-scipy" ,python-scipy)
3588 ("python-sympy" ,python-sympy)
3589 ("python-numpy" ,python-numpy)
3590 ("python-matplotlib" ,python-matplotlib)))
3591 (native-inputs
3592 `(("python-cython" ,python-cython)))
3593 (home-page "https://github.com/nboley/idr")
3594 (synopsis "Tool to measure the irreproducible discovery rate (IDR)")
3595 (description
3596 "The IDR (Irreproducible Discovery Rate) framework is a unified approach
3597 to measure the reproducibility of findings identified from replicate
3598 experiments and provide highly stable thresholds based on reproducibility.")
3599 (license license:gpl2+)))
3600
3601 (define-public jellyfish
3602 (package
3603 (name "jellyfish")
3604 (version "2.2.7")
3605 (source (origin
3606 (method url-fetch)
3607 (uri (string-append "https://github.com/gmarcais/Jellyfish/"
3608 "releases/download/v" version
3609 "/jellyfish-" version ".tar.gz"))
3610 (sha256
3611 (base32
3612 "1a1iwq9pq54k2m9ypvwl5s0bqfl64gwh9dx5af9i382ajas2016q"))))
3613 (build-system gnu-build-system)
3614 (outputs '("out" ;for library
3615 "ruby" ;for Ruby bindings
3616 "python")) ;for Python bindings
3617 (arguments
3618 `(#:configure-flags
3619 (list (string-append "--enable-ruby-binding="
3620 (assoc-ref %outputs "ruby"))
3621 (string-append "--enable-python-binding="
3622 (assoc-ref %outputs "python")))
3623 #:phases
3624 (modify-phases %standard-phases
3625 (add-before 'check 'set-SHELL-variable
3626 (lambda _
3627 ;; generator_manager.hpp either uses /bin/sh or $SHELL
3628 ;; to run tests.
3629 (setenv "SHELL" (which "bash"))
3630 #t)))))
3631 (native-inputs
3632 `(("bc" ,bc)
3633 ("time" ,time)
3634 ("ruby" ,ruby)
3635 ("python" ,python-2)
3636 ("pkg-config" ,pkg-config)))
3637 (inputs
3638 `(("htslib" ,htslib)))
3639 (synopsis "Tool for fast counting of k-mers in DNA")
3640 (description
3641 "Jellyfish is a tool for fast, memory-efficient counting of k-mers in
3642 DNA. A k-mer is a substring of length k, and counting the occurrences of all
3643 such substrings is a central step in many analyses of DNA sequence. Jellyfish
3644 is a command-line program that reads FASTA and multi-FASTA files containing
3645 DNA sequences. It outputs its k-mer counts in a binary format, which can be
3646 translated into a human-readable text format using the @code{jellyfish dump}
3647 command, or queried for specific k-mers with @code{jellyfish query}.")
3648 (home-page "http://www.genome.umd.edu/jellyfish.html")
3649 ;; From their website: JELLYFISH runs on 64-bit Intel-compatible processors
3650 (supported-systems '("x86_64-linux"))
3651 ;; The combined work is published under the GPLv3 or later. Individual
3652 ;; files such as lib/jsoncpp.cpp are released under the Expat license.
3653 (license (list license:gpl3+ license:expat))))
3654
3655 (define-public khmer
3656 (package
3657 (name "khmer")
3658 (version "2.0")
3659 (source
3660 (origin
3661 (method url-fetch)
3662 (uri (pypi-uri "khmer" version))
3663 (sha256
3664 (base32
3665 "0wb05shqh77v00256qlm68vbbx3kl76fyzihszbz5nhanl4ni33a"))
3666 (patches (search-patches "khmer-use-libraries.patch"))))
3667 (build-system python-build-system)
3668 (arguments
3669 `(#:phases
3670 (modify-phases %standard-phases
3671 (add-after 'unpack 'set-paths
3672 (lambda* (#:key inputs outputs #:allow-other-keys)
3673 ;; Delete bundled libraries.
3674 (delete-file-recursively "third-party/zlib")
3675 (delete-file-recursively "third-party/bzip2")
3676 ;; Replace bundled seqan.
3677 (let* ((seqan-all "third-party/seqan")
3678 (seqan-include (string-append
3679 seqan-all "/core/include")))
3680 (delete-file-recursively seqan-all)
3681 (copy-recursively (string-append (assoc-ref inputs "seqan")
3682 "/include/seqan")
3683 (string-append seqan-include "/seqan")))
3684 ;; We do not replace the bundled MurmurHash as the canonical
3685 ;; repository for this code 'SMHasher' is unsuitable for
3686 ;; providing a library. See
3687 ;; https://lists.gnu.org/archive/html/guix-devel/2016-06/msg00977.html
3688 #t))
3689 (add-after 'unpack 'set-cc
3690 (lambda _
3691 (setenv "CC" "gcc")
3692 #t))
3693 ;; It is simpler to test after installation.
3694 (delete 'check)
3695 (add-after 'install 'post-install-check
3696 (lambda* (#:key inputs outputs #:allow-other-keys)
3697 (let ((out (assoc-ref outputs "out")))
3698 (setenv "PATH"
3699 (string-append
3700 (getenv "PATH")
3701 ":"
3702 (assoc-ref outputs "out")
3703 "/bin"))
3704 (setenv "PYTHONPATH"
3705 (string-append
3706 (getenv "PYTHONPATH")
3707 ":"
3708 out
3709 "/lib/python"
3710 (string-take (string-take-right
3711 (assoc-ref inputs "python") 5) 3)
3712 "/site-packages"))
3713 (with-directory-excursion "build"
3714 (zero? (system* "nosetests" "khmer" "--attr"
3715 "!known_failing")))))))))
3716 (native-inputs
3717 `(("seqan" ,seqan)
3718 ("python-nose" ,python-nose)))
3719 (inputs
3720 `(("zlib" ,zlib)
3721 ("bzip2" ,bzip2)
3722 ("python-screed" ,python-screed)
3723 ("python-bz2file" ,python-bz2file)
3724 ;; Tests fail when gcc-5 is used for compilation. Use gcc-4.9 at least
3725 ;; until the next version of khmer (likely 2.1) is released.
3726 ("gcc" ,gcc-4.9)))
3727 (home-page "https://khmer.readthedocs.org/")
3728 (synopsis "K-mer counting, filtering and graph traversal library")
3729 (description "The khmer software is a set of command-line tools for
3730 working with DNA shotgun sequencing data from genomes, transcriptomes,
3731 metagenomes and single cells. Khmer can make de novo assemblies faster, and
3732 sometimes better. Khmer can also identify and fix problems with shotgun
3733 data.")
3734 ;; When building on i686, armhf and mips64el, we get the following error:
3735 ;; error: ['khmer', 'khmer.tests', 'oxli'] require 64-bit operating system
3736 (supported-systems '("x86_64-linux" "aarch64-linux"))
3737 (license license:bsd-3)))
3738
3739 (define-public kaiju
3740 (package
3741 (name "kaiju")
3742 (version "1.6.2")
3743 (source (origin
3744 (method url-fetch)
3745 (uri (string-append
3746 "https://github.com/bioinformatics-centre/kaiju/archive/v"
3747 version ".tar.gz"))
3748 (file-name (string-append name "-" version ".tar.gz"))
3749 (sha256
3750 (base32
3751 "1kdn4rxs0kr9ibmrgrfcci71aa6j6gr71dbc8pff7731rpab6kj7"))))
3752 (build-system gnu-build-system)
3753 (arguments
3754 `(#:tests? #f ; There are no tests.
3755 #:phases
3756 (modify-phases %standard-phases
3757 (delete 'configure)
3758 (add-before 'build 'move-to-src-dir
3759 (lambda _ (chdir "src") #t))
3760 (replace 'install
3761 (lambda* (#:key inputs outputs #:allow-other-keys)
3762 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
3763 (mkdir-p bin)
3764 (chdir "..")
3765 (copy-recursively "bin" bin)
3766 (copy-recursively "util" bin))
3767 #t)))))
3768 (inputs
3769 `(("perl" ,perl)
3770 ("zlib" ,zlib)))
3771 (home-page "http://kaiju.binf.ku.dk/")
3772 (synopsis "Fast and sensitive taxonomic classification for metagenomics")
3773 (description "Kaiju is a program for sensitive taxonomic classification
3774 of high-throughput sequencing reads from metagenomic whole genome sequencing
3775 experiments.")
3776 (license license:gpl3+)))
3777
3778 (define-public macs
3779 (package
3780 (name "macs")
3781 (version "2.1.1.20160309")
3782 (source (origin
3783 (method url-fetch)
3784 (uri (pypi-uri "MACS2" version))
3785 (sha256
3786 (base32
3787 "09ixspd1vcqmz1c81ih70xs4m7qml2iy5vyx1y74zww3iy1vl210"))))
3788 (build-system python-build-system)
3789 (arguments
3790 `(#:python ,python-2 ; only compatible with Python 2.7
3791 #:tests? #f)) ; no test target
3792 (inputs
3793 `(("python-numpy" ,python2-numpy)))
3794 (home-page "https://github.com/taoliu/MACS/")
3795 (synopsis "Model based analysis for ChIP-Seq data")
3796 (description
3797 "MACS is an implementation of a ChIP-Seq analysis algorithm for
3798 identifying transcript factor binding sites named Model-based Analysis of
3799 ChIP-Seq (MACS). MACS captures the influence of genome complexity to evaluate
3800 the significance of enriched ChIP regions and it improves the spatial
3801 resolution of binding sites through combining the information of both
3802 sequencing tag position and orientation.")
3803 (license license:bsd-3)))
3804
3805 (define-public mafft
3806 (package
3807 (name "mafft")
3808 (version "7.394")
3809 (source (origin
3810 (method url-fetch)
3811 (uri (string-append
3812 "https://mafft.cbrc.jp/alignment/software/mafft-" version
3813 "-without-extensions-src.tgz"))
3814 (file-name (string-append name "-" version ".tgz"))
3815 (sha256
3816 (base32
3817 "0bacjkxfg944p5khhyh5rd4y7wkjc9qk4v2jjj442sqlq0f8ar7b"))))
3818 (build-system gnu-build-system)
3819 (arguments
3820 `(#:tests? #f ; no automated tests, though there are tests in the read me
3821 #:make-flags (let ((out (assoc-ref %outputs "out")))
3822 (list (string-append "PREFIX=" out)
3823 (string-append "BINDIR="
3824 (string-append out "/bin"))))
3825 #:phases
3826 (modify-phases %standard-phases
3827 (add-after 'unpack 'enter-dir
3828 (lambda _ (chdir "core") #t))
3829 (add-after 'enter-dir 'patch-makefile
3830 (lambda _
3831 ;; on advice from the MAFFT authors, there is no need to
3832 ;; distribute mafft-profile, mafft-distance, or
3833 ;; mafft-homologs.rb as they are too "specialised".
3834 (substitute* "Makefile"
3835 ;; remove mafft-homologs.rb from SCRIPTS
3836 (("^SCRIPTS = mafft mafft-homologs.rb")
3837 "SCRIPTS = mafft")
3838 ;; remove mafft-homologs from MANPAGES
3839 (("^MANPAGES = mafft.1 mafft-homologs.1")
3840 "MANPAGES = mafft.1")
3841 ;; remove mafft-distance from PROGS
3842 (("^PROGS = dvtditr dndfast7 dndblast sextet5 mafft-distance")
3843 "PROGS = dvtditr dndfast7 dndblast sextet5")
3844 ;; remove mafft-profile from PROGS
3845 (("splittbfast disttbfast tbfast mafft-profile 2cl mccaskillwrap")
3846 "splittbfast disttbfast tbfast f2cl mccaskillwrap")
3847 (("^rm -f mafft-profile mafft-profile.exe") "#")
3848 (("^rm -f mafft-distance mafft-distance.exe") ")#")
3849 ;; do not install MAN pages in libexec folder
3850 (("^\t\\$\\(INSTALL\\) -m 644 \\$\\(MANPAGES\\) \
3851 \\$\\(DESTDIR\\)\\$\\(LIBDIR\\)") "#"))
3852 #t))
3853 (add-after 'enter-dir 'patch-paths
3854 (lambda* (#:key inputs #:allow-other-keys)
3855 (substitute* '("pairash.c"
3856 "mafft.tmpl")
3857 (("perl") (which "perl"))
3858 (("([\"`| ])awk" _ prefix)
3859 (string-append prefix (which "awk")))
3860 (("grep") (which "grep")))
3861 #t))
3862 (delete 'configure)
3863 (add-after 'install 'wrap-programs
3864 (lambda* (#:key outputs #:allow-other-keys)
3865 (let* ((out (assoc-ref outputs "out"))
3866 (bin (string-append out "/bin"))
3867 (path (string-append
3868 (assoc-ref %build-inputs "coreutils") "/bin:")))
3869 (for-each (lambda (file)
3870 (wrap-program file
3871 `("PATH" ":" prefix (,path))))
3872 (find-files bin)))
3873 #t)))))
3874 (inputs
3875 `(("perl" ,perl)
3876 ("ruby" ,ruby)
3877 ("gawk" ,gawk)
3878 ("grep" ,grep)
3879 ("coreutils" ,coreutils)))
3880 (home-page "http://mafft.cbrc.jp/alignment/software/")
3881 (synopsis "Multiple sequence alignment program")
3882 (description
3883 "MAFFT offers a range of multiple alignment methods for nucleotide and
3884 protein sequences. For instance, it offers L-INS-i (accurate; for alignment
3885 of <~200 sequences) and FFT-NS-2 (fast; for alignment of <~30,000
3886 sequences).")
3887 (license (license:non-copyleft
3888 "http://mafft.cbrc.jp/alignment/software/license.txt"
3889 "BSD-3 with different formatting"))))
3890
3891 (define-public mash
3892 (package
3893 (name "mash")
3894 (version "2.0")
3895 (source (origin
3896 (method url-fetch)
3897 (uri (string-append
3898 "https://github.com/marbl/mash/archive/v"
3899 version ".tar.gz"))
3900 (file-name (string-append name "-" version ".tar.gz"))
3901 (sha256
3902 (base32
3903 "00fx14vpmgsijwxd1xql3if934l82v8ckqgjjyyhnr36qb9qrskv"))
3904 (modules '((guix build utils)))
3905 (snippet
3906 '(begin
3907 ;; Delete bundled kseq.
3908 ;; TODO: Also delete bundled murmurhash and open bloom filter.
3909 (delete-file "src/mash/kseq.h")
3910 #t))))
3911 (build-system gnu-build-system)
3912 (arguments
3913 `(#:tests? #f ; No tests.
3914 #:configure-flags
3915 (list
3916 (string-append "--with-capnp=" (assoc-ref %build-inputs "capnproto"))
3917 (string-append "--with-gsl=" (assoc-ref %build-inputs "gsl")))
3918 #:make-flags (list "CC=gcc")
3919 #:phases
3920 (modify-phases %standard-phases
3921 (add-after 'unpack 'fix-includes
3922 (lambda _
3923 (substitute* '("src/mash/Sketch.cpp"
3924 "src/mash/CommandFind.cpp"
3925 "src/mash/CommandScreen.cpp")
3926 (("^#include \"kseq\\.h\"")
3927 "#include \"htslib/kseq.h\""))
3928 #t))
3929 (add-after 'fix-includes 'autoconf
3930 (lambda _ (zero? (system* "autoconf")))))))
3931 (native-inputs
3932 `(("autoconf" ,autoconf)
3933 ;; Capnproto and htslib are statically embedded in the final
3934 ;; application. Therefore we also list their licenses, below.
3935 ("capnproto" ,capnproto)
3936 ("htslib" ,htslib)))
3937 (inputs
3938 `(("gsl" ,gsl)
3939 ("zlib" ,zlib)))
3940 (supported-systems '("x86_64-linux"))
3941 (home-page "https://mash.readthedocs.io")
3942 (synopsis "Fast genome and metagenome distance estimation using MinHash")
3943 (description "Mash is a fast sequence distance estimator that uses the
3944 MinHash algorithm and is designed to work with genomes and metagenomes in the
3945 form of assemblies or reads.")
3946 (license (list license:bsd-3 ; Mash
3947 license:expat ; HTSlib and capnproto
3948 license:public-domain ; MurmurHash 3
3949 license:cpl1.0)))) ; Open Bloom Filter
3950
3951 (define-public metabat
3952 (package
3953 (name "metabat")
3954 (version "2.12.1")
3955 (source
3956 (origin
3957 (method url-fetch)
3958 (uri (string-append "https://bitbucket.org/berkeleylab/metabat/get/v"
3959 version ".tar.gz"))
3960 (file-name (string-append name "-" version ".tar.gz"))
3961 (sha256
3962 (base32
3963 "1hmvdalz3zj5sqqklg0l4npjdv37cv2hsdi1al9iby2ndxjs1b73"))
3964 (patches (search-patches "metabat-fix-compilation.patch"))))
3965 (build-system scons-build-system)
3966 (arguments
3967 `(#:scons ,scons-python2
3968 #:scons-flags
3969 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3970 (string-append "BOOST_ROOT=" (assoc-ref %build-inputs "boost")))
3971 #:tests? #f ;; Tests are run during the build phase.
3972 #:phases
3973 (modify-phases %standard-phases
3974 (add-after 'unpack 'fix-includes
3975 (lambda _
3976 (substitute* "src/BamUtils.h"
3977 (("^#include \"bam/bam\\.h\"")
3978 "#include \"samtools/bam.h\"")
3979 (("^#include \"bam/sam\\.h\"")
3980 "#include \"samtools/sam.h\""))
3981 (substitute* "src/KseqReader.h"
3982 (("^#include \"bam/kseq\\.h\"")
3983 "#include \"htslib/kseq.h\""))
3984 #t))
3985 (add-after 'unpack 'fix-scons
3986 (lambda* (#:key inputs #:allow-other-keys)
3987 (substitute* "SConstruct"
3988 (("^htslib_dir += 'samtools'")
3989 (string-append "htslib_dir = '"
3990 (assoc-ref inputs "htslib")
3991 "'"))
3992 (("^samtools_dir = 'samtools'")
3993 (string-append "samtools_dir = '"
3994 (assoc-ref inputs "samtools")
3995 "'"))
3996 (("^findStaticOrShared\\('bam', hts_lib")
3997 (string-append "findStaticOrShared('bam', '"
3998 (assoc-ref inputs "samtools")
3999 "/lib'"))
4000 ;; Do not distribute README.
4001 (("^env\\.Install\\(idir_prefix, 'README\\.md'\\)") ""))
4002 #t)))))
4003 (inputs
4004 `(("zlib" ,zlib)
4005 ("perl" ,perl)
4006 ("samtools" ,samtools)
4007 ("htslib" ,htslib)
4008 ("boost" ,boost)))
4009 (home-page "https://bitbucket.org/berkeleylab/metabat")
4010 (synopsis
4011 "Reconstruction of single genomes from complex microbial communities")
4012 (description
4013 "Grouping large genomic fragments assembled from shotgun metagenomic
4014 sequences to deconvolute complex microbial communities, or metagenome binning,
4015 enables the study of individual organisms and their interactions. MetaBAT is
4016 an automated metagenome binning software, which integrates empirical
4017 probabilistic distances of genome abundance and tetranucleotide frequency.")
4018 ;; The source code contains inline assembly.
4019 (supported-systems '("x86_64-linux" "i686-linux"))
4020 (license (license:non-copyleft "file://license.txt"
4021 "See license.txt in the distribution."))))
4022
4023 (define-public minced
4024 (package
4025 (name "minced")
4026 (version "0.2.0")
4027 (source (origin
4028 (method url-fetch)
4029 (uri (string-append
4030 "https://github.com/ctSkennerton/minced/archive/"
4031 version ".tar.gz"))
4032 (file-name (string-append name "-" version ".tar.gz"))
4033 (sha256
4034 (base32
4035 "0wxmlsapxfpxfd3ps9636h7i2xy6la8i42mwh0j2lsky63h63jp1"))))
4036 (build-system gnu-build-system)
4037 (arguments
4038 `(#:test-target "test"
4039 #:phases
4040 (modify-phases %standard-phases
4041 (delete 'configure)
4042 (add-before 'check 'fix-test
4043 (lambda _
4044 ;; Fix test for latest version.
4045 (substitute* "t/Aquifex_aeolicus_VF5.expected"
4046 (("minced:0.1.6") "minced:0.2.0"))
4047 #t))
4048 (replace 'install ; No install target.
4049 (lambda* (#:key inputs outputs #:allow-other-keys)
4050 (let* ((out (assoc-ref outputs "out"))
4051 (bin (string-append out "/bin"))
4052 (wrapper (string-append bin "/minced")))
4053 ;; Minced comes with a wrapper script that tries to figure out where
4054 ;; it is located before running the JAR. Since these paths are known
4055 ;; to us, we build our own wrapper to avoid coreutils dependency.
4056 (install-file "minced.jar" bin)
4057 (with-output-to-file wrapper
4058 (lambda _
4059 (display
4060 (string-append
4061 "#!" (assoc-ref inputs "bash") "/bin/sh\n\n"
4062 (assoc-ref inputs "jre") "/bin/java -jar "
4063 bin "/minced.jar \"$@\"\n"))))
4064 (chmod wrapper #o555)))))))
4065 (native-inputs
4066 `(("jdk" ,icedtea "jdk")))
4067 (inputs
4068 `(("bash" ,bash)
4069 ("jre" ,icedtea "out")))
4070 (home-page "https://github.com/ctSkennerton/minced")
4071 (synopsis "Mining CRISPRs in Environmental Datasets")
4072 (description
4073 "MinCED is a program to find Clustered Regularly Interspaced Short
4074 Palindromic Repeats (CRISPRs) in DNA sequences. It can be used for
4075 unassembled metagenomic reads, but is mainly designed for full genomes and
4076 assembled metagenomic sequence.")
4077 (license license:gpl3+)))
4078
4079 (define-public miso
4080 (package
4081 (name "miso")
4082 (version "0.5.4")
4083 (source (origin
4084 (method url-fetch)
4085 (uri (pypi-uri "misopy" version))
4086 (sha256
4087 (base32
4088 "1z3x0vd8ma7pdrnywj7i3kgwl89sdkwrrn62zl7r5calqaq2hyip"))
4089 (modules '((guix build utils)))
4090 (snippet '(begin
4091 (substitute* "setup.py"
4092 ;; Use setuptools, or else the executables are not
4093 ;; installed.
4094 (("distutils.core") "setuptools")
4095 ;; use "gcc" instead of "cc" for compilation
4096 (("^defines")
4097 "cc.set_executables(
4098 compiler='gcc',
4099 compiler_so='gcc',
4100 linker_exe='gcc',
4101 linker_so='gcc -shared'); defines"))
4102 #t))))
4103 (build-system python-build-system)
4104 (arguments
4105 `(#:python ,python-2 ; only Python 2 is supported
4106 #:tests? #f)) ; no "test" target
4107 (inputs
4108 `(("samtools" ,samtools)
4109 ("python-numpy" ,python2-numpy)
4110 ("python-pysam" ,python2-pysam)
4111 ("python-scipy" ,python2-scipy)
4112 ("python-matplotlib" ,python2-matplotlib)))
4113 (native-inputs
4114 `(("python-mock" ,python2-mock) ;for tests
4115 ("python-pytz" ,python2-pytz))) ;for tests
4116 (home-page "http://genes.mit.edu/burgelab/miso/index.html")
4117 (synopsis "Mixture of Isoforms model for RNA-Seq isoform quantitation")
4118 (description
4119 "MISO (Mixture-of-Isoforms) is a probabilistic framework that quantitates
4120 the expression level of alternatively spliced genes from RNA-Seq data, and
4121 identifies differentially regulated isoforms or exons across samples. By
4122 modeling the generative process by which reads are produced from isoforms in
4123 RNA-Seq, the MISO model uses Bayesian inference to compute the probability
4124 that a read originated from a particular isoform.")
4125 (license license:gpl2)))
4126
4127 (define-public muscle
4128 (package
4129 (name "muscle")
4130 (version "3.8.1551")
4131 (source (origin
4132 (method url-fetch/tarbomb)
4133 (uri (string-append
4134 "http://www.drive5.com/muscle/muscle_src_"
4135 version ".tar.gz"))
4136 (sha256
4137 (base32
4138 "0bj8kj7sdizy3987zx6w7axihk40fk8rn76mpbqqjcnd64i5a367"))))
4139 (build-system gnu-build-system)
4140 (arguments
4141 `(#:make-flags (list "LDLIBS = -lm")
4142 #:phases
4143 (modify-phases %standard-phases
4144 (delete 'configure)
4145 (replace 'check
4146 ;; There are no tests, so just test if it runs.
4147 (lambda _ (zero? (system* "./muscle" "-version"))))
4148 (replace 'install
4149 (lambda* (#:key outputs #:allow-other-keys)
4150 (let* ((out (assoc-ref outputs "out"))
4151 (bin (string-append out "/bin")))
4152 (install-file "muscle" bin)))))))
4153 (home-page "http://www.drive5.com/muscle")
4154 (synopsis "Multiple sequence alignment program")
4155 (description
4156 "MUSCLE aims to be a fast and accurate multiple sequence alignment
4157 program for nucleotide and protein sequences.")
4158 ;; License information found in 'muscle -h' and usage.cpp.
4159 (license license:public-domain)))
4160
4161 (define-public newick-utils
4162 ;; There are no recent releases so we package from git.
4163 (let ((commit "da121155a977197cab9fbb15953ca1b40b11eb87"))
4164 (package
4165 (name "newick-utils")
4166 (version (string-append "1.6-1." (string-take commit 8)))
4167 (source (origin
4168 (method git-fetch)
4169 (uri (git-reference
4170 (url "https://github.com/tjunier/newick_utils.git")
4171 (commit commit)))
4172 (file-name (string-append name "-" version "-checkout"))
4173 (sha256
4174 (base32
4175 "1hkw21rq1mwf7xp0rmbb2gqc0i6p11108m69i7mr7xcjl268pxnb"))))
4176 (build-system gnu-build-system)
4177 (arguments
4178 `(#:phases
4179 (modify-phases %standard-phases
4180 (add-after 'unpack 'autoconf
4181 (lambda _ (zero? (system* "autoreconf" "-vif")))))))
4182 (inputs
4183 ;; XXX: TODO: Enable Lua and Guile bindings.
4184 ;; https://github.com/tjunier/newick_utils/issues/13
4185 `(("libxml2" ,libxml2)
4186 ("flex" ,flex)
4187 ("bison" ,bison)))
4188 (native-inputs
4189 `(("autoconf" ,autoconf)
4190 ("automake" ,automake)
4191 ("libtool" ,libtool)))
4192 (synopsis "Programs for working with newick format phylogenetic trees")
4193 (description
4194 "Newick-utils is a suite of utilities for processing phylogenetic trees
4195 in Newick format. Functions include re-rooting, extracting subtrees,
4196 trimming, pruning, condensing, drawing (ASCII graphics or SVG).")
4197 (home-page "https://github.com/tjunier/newick_utils")
4198 (license license:bsd-3))))
4199
4200 (define-public orfm
4201 (package
4202 (name "orfm")
4203 (version "0.7.1")
4204 (source (origin
4205 (method url-fetch)
4206 (uri (string-append
4207 "https://github.com/wwood/OrfM/releases/download/v"
4208 version "/orfm-" version ".tar.gz"))
4209 (sha256
4210 (base32
4211 "16iigyr2gd8x0imzkk1dr3k5xsds9bpmwg31ayvjg0f4pir9rwqr"))))
4212 (build-system gnu-build-system)
4213 (inputs `(("zlib" ,zlib)))
4214 (native-inputs
4215 `(("ruby-bio-commandeer" ,ruby-bio-commandeer)
4216 ("ruby-rspec" ,ruby-rspec)
4217 ("ruby" ,ruby)))
4218 (synopsis "Simple and not slow open reading frame (ORF) caller")
4219 (description
4220 "An ORF caller finds stretches of DNA that, when translated, are not
4221 interrupted by stop codons. OrfM finds and prints these ORFs.")
4222 (home-page "https://github.com/wwood/OrfM")
4223 (license license:lgpl3+)))
4224
4225 (define-public pplacer
4226 (let ((commit "g807f6f3"))
4227 (package
4228 (name "pplacer")
4229 ;; The commit should be updated with each version change.
4230 (version "1.1.alpha19")
4231 (source
4232 (origin
4233 (method url-fetch)
4234 (uri (string-append "https://github.com/matsen/pplacer/archive/v"
4235 version ".tar.gz"))
4236 (file-name (string-append name "-" version ".tar.gz"))
4237 (sha256
4238 (base32 "0z1lnd2s8sh6kpzg106wzbh2szw7h0hvq8syd5a6wv4rmyyz6x0f"))))
4239 (build-system ocaml-build-system)
4240 (arguments
4241 `(#:ocaml ,ocaml-4.01
4242 #:findlib ,ocaml4.01-findlib
4243 #:modules ((guix build ocaml-build-system)
4244 (guix build utils)
4245 (ice-9 ftw))
4246 #:phases
4247 (modify-phases %standard-phases
4248 (delete 'configure)
4249 (add-after 'unpack 'replace-bundled-cddlib
4250 (lambda* (#:key inputs #:allow-other-keys)
4251 (let* ((cddlib-src (assoc-ref inputs "cddlib-src"))
4252 (local-dir "cddlib_guix"))
4253 (mkdir local-dir)
4254 (with-directory-excursion local-dir
4255 (system* "tar" "xvf" cddlib-src))
4256 (let ((cddlib-src-folder
4257 (string-append local-dir "/"
4258 (list-ref (scandir local-dir) 2)
4259 "/lib-src")))
4260 (for-each
4261 (lambda (file)
4262 (copy-file file
4263 (string-append "cdd_src/" (basename file))))
4264 (find-files cddlib-src-folder ".*[ch]$")))
4265 #t)))
4266 (add-after 'unpack 'fix-makefile
4267 (lambda _
4268 ;; Remove system calls to 'git'.
4269 (substitute* "Makefile"
4270 (("^DESCRIPT:=pplacer-.*")
4271 (string-append
4272 "DESCRIPT:=pplacer-$(shell uname)-v" ,version "\n")))
4273 (substitute* "myocamlbuild.ml"
4274 (("git describe --tags --long .*\\\" with")
4275 (string-append
4276 "echo -n v" ,version "-" ,commit "\" with")))
4277 #t))
4278 (replace 'install
4279 (lambda* (#:key outputs #:allow-other-keys)
4280 (let* ((out (assoc-ref outputs "out"))
4281 (bin (string-append out "/bin")))
4282 (copy-recursively "bin" bin))
4283 #t)))))
4284 (native-inputs
4285 `(("zlib" ,zlib)
4286 ("gsl" ,gsl)
4287 ("ocaml-ounit" ,ocaml4.01-ounit)
4288 ("ocaml-batteries" ,ocaml4.01-batteries)
4289 ("ocaml-camlzip" ,ocaml4.01-camlzip)
4290 ("ocaml-csv" ,ocaml4.01-csv)
4291 ("ocaml-sqlite3" ,ocaml4.01-sqlite3)
4292 ("ocaml-xmlm" ,ocaml4.01-xmlm)
4293 ("ocaml-mcl" ,ocaml4.01-mcl)
4294 ("ocaml-gsl" ,ocaml4.01-gsl)
4295 ("cddlib-src" ,(package-source cddlib))))
4296 (propagated-inputs
4297 `(("pplacer-scripts" ,pplacer-scripts)))
4298 (synopsis "Phylogenetic placement of biological sequences")
4299 (description
4300 "Pplacer places query sequences on a fixed reference phylogenetic tree
4301 to maximize phylogenetic likelihood or posterior probability according to a
4302 reference alignment. Pplacer is designed to be fast, to give useful
4303 information about uncertainty, and to offer advanced visualization and
4304 downstream analysis.")
4305 (home-page "http://matsen.fhcrc.org/pplacer")
4306 (license license:gpl3))))
4307
4308 ;; This package is installed alongside 'pplacer'. It is a separate package so
4309 ;; that it can use the python-build-system for the scripts that are
4310 ;; distributed alongside the main OCaml binaries.
4311 (define pplacer-scripts
4312 (package
4313 (inherit pplacer)
4314 (name "pplacer-scripts")
4315 (build-system python-build-system)
4316 (arguments
4317 `(#:python ,python-2
4318 #:phases
4319 (modify-phases %standard-phases
4320 (add-after 'unpack 'enter-scripts-dir
4321 (lambda _ (chdir "scripts")))
4322 (replace 'check
4323 (lambda _
4324 (zero? (system* "python" "-m" "unittest" "discover" "-v"))))
4325 (add-after 'install 'wrap-executables
4326 (lambda* (#:key inputs outputs #:allow-other-keys)
4327 (let* ((out (assoc-ref outputs "out"))
4328 (bin (string-append out "/bin")))
4329 (let ((path (string-append
4330 (assoc-ref inputs "hmmer") "/bin:"
4331 (assoc-ref inputs "infernal") "/bin")))
4332 (display path)
4333 (wrap-program (string-append bin "/refpkg_align.py")
4334 `("PATH" ":" prefix (,path))))
4335 (let ((path (string-append
4336 (assoc-ref inputs "hmmer") "/bin")))
4337 (wrap-program (string-append bin "/hrefpkg_query.py")
4338 `("PATH" ":" prefix (,path)))))
4339 #t)))))
4340 (inputs
4341 `(("infernal" ,infernal)
4342 ("hmmer" ,hmmer)))
4343 (propagated-inputs
4344 `(("python-biopython" ,python2-biopython)
4345 ("taxtastic" ,taxtastic)))
4346 (synopsis "Pplacer Python scripts")))
4347
4348 (define-public python2-pbcore
4349 (package
4350 (name "python2-pbcore")
4351 (version "1.2.10")
4352 (source (origin
4353 (method url-fetch)
4354 (uri (pypi-uri "pbcore" version))
4355 (sha256
4356 (base32
4357 "1kjmv891d6qbpp4shhhvkl02ff4q5xlpnls2513sm2cjcrs52f1i"))))
4358 (build-system python-build-system)
4359 (arguments `(#:python ,python-2)) ; pbcore requires Python 2.7
4360 (propagated-inputs
4361 `(("python-cython" ,python2-cython)
4362 ("python-numpy" ,python2-numpy)
4363 ("python-pysam" ,python2-pysam)
4364 ("python-h5py" ,python2-h5py)))
4365 (native-inputs
4366 `(("python-nose" ,python2-nose)
4367 ("python-sphinx" ,python2-sphinx)
4368 ("python-pyxb" ,python2-pyxb)))
4369 (home-page "http://pacificbiosciences.github.io/pbcore/")
4370 (synopsis "Library for reading and writing PacBio data files")
4371 (description
4372 "The pbcore package provides Python APIs for interacting with PacBio data
4373 files and writing bioinformatics applications.")
4374 (license license:bsd-3)))
4375
4376 (define-public python2-warpedlmm
4377 (package
4378 (name "python2-warpedlmm")
4379 (version "0.21")
4380 (source
4381 (origin
4382 (method url-fetch)
4383 (uri (string-append
4384 "https://pypi.python.org/packages/source/W/WarpedLMM/WarpedLMM-"
4385 version ".zip"))
4386 (sha256
4387 (base32
4388 "1agfz6zqa8nc6cw47yh0s3y14gkpa9wqazwcj7mwwj3ffnw39p3j"))))
4389 (build-system python-build-system)
4390 (arguments
4391 `(#:python ,python-2)) ; requires Python 2.7
4392 (propagated-inputs
4393 `(("python-scipy" ,python2-scipy)
4394 ("python-numpy" ,python2-numpy)
4395 ("python-matplotlib" ,python2-matplotlib)
4396 ("python-fastlmm" ,python2-fastlmm)
4397 ("python-pandas" ,python2-pandas)
4398 ("python-pysnptools" ,python2-pysnptools)))
4399 (native-inputs
4400 `(("python-mock" ,python2-mock)
4401 ("python-nose" ,python2-nose)
4402 ("unzip" ,unzip)))
4403 (home-page "https://github.com/PMBio/warpedLMM")
4404 (synopsis "Implementation of warped linear mixed models")
4405 (description
4406 "WarpedLMM is a Python implementation of the warped linear mixed model,
4407 which automatically learns an optimal warping function (or transformation) for
4408 the phenotype as it models the data.")
4409 (license license:asl2.0)))
4410
4411 (define-public pbtranscript-tofu
4412 (let ((commit "8f5467fe6a4472bcfb4226c8720993c8507adfe4"))
4413 (package
4414 (name "pbtranscript-tofu")
4415 (version (string-append "2.2.3." (string-take commit 7)))
4416 (source (origin
4417 (method git-fetch)
4418 (uri (git-reference
4419 (url "https://github.com/PacificBiosciences/cDNA_primer.git")
4420 (commit commit)))
4421 (file-name (string-append name "-" version "-checkout"))
4422 (sha256
4423 (base32
4424 "1lgnpi35ihay42qx0b6yl3kkgra723i413j33kvs0kvs61h82w0f"))
4425 (modules '((guix build utils)))
4426 (snippet
4427 '(begin
4428 ;; remove bundled Cython sources
4429 (delete-file "pbtranscript-tofu/pbtranscript/Cython-0.20.1.tar.gz")
4430 #t))))
4431 (build-system python-build-system)
4432 (arguments
4433 `(#:python ,python-2
4434 ;; FIXME: Tests fail with "No such file or directory:
4435 ;; pbtools/pbtranscript/modified_bx_intervals/intersection_unique.so"
4436 #:tests? #f
4437 #:phases
4438 (modify-phases %standard-phases
4439 (add-after 'unpack 'enter-directory
4440 (lambda _
4441 (chdir "pbtranscript-tofu/pbtranscript/")
4442 #t))
4443 ;; With setuptools version 18.0 and later this setup.py hack causes
4444 ;; a build error, so we disable it.
4445 (add-after 'enter-directory 'patch-setuppy
4446 (lambda _
4447 (substitute* "setup.py"
4448 (("if 'setuptools.extension' in sys.modules:")
4449 "if False:"))
4450 #t)))))
4451 (inputs
4452 `(("python-numpy" ,python2-numpy)
4453 ("python-bx-python" ,python2-bx-python)
4454 ("python-networkx" ,python2-networkx)
4455 ("python-scipy" ,python2-scipy)
4456 ("python-pbcore" ,python2-pbcore)
4457 ("python-h5py" ,python2-h5py)))
4458 (native-inputs
4459 `(("python-cython" ,python2-cython)
4460 ("python-nose" ,python2-nose)))
4461 (home-page "https://github.com/PacificBiosciences/cDNA_primer")
4462 (synopsis "Analyze transcriptome data generated with the Iso-Seq protocol")
4463 (description
4464 "pbtranscript-tofu contains scripts to analyze transcriptome data
4465 generated using the PacBio Iso-Seq protocol.")
4466 (license license:bsd-3))))
4467
4468 (define-public prank
4469 (package
4470 (name "prank")
4471 (version "150803")
4472 (source (origin
4473 (method url-fetch)
4474 (uri (string-append
4475 "http://wasabiapp.org/download/prank/prank.source."
4476 version ".tgz"))
4477 (sha256
4478 (base32
4479 "0am4z94fs3w2n5xpfls9zda61vq7qqz4q2i7b9hlsxz5q4j3kfm4"))))
4480 (build-system gnu-build-system)
4481 (arguments
4482 `(#:phases
4483 (modify-phases %standard-phases
4484 (add-after 'unpack 'enter-src-dir
4485 (lambda _
4486 (chdir "src")
4487 #t))
4488 (add-after 'unpack 'remove-m64-flag
4489 ;; Prank will build with the correct 'bit-ness' without this flag
4490 ;; and this allows building on 32-bit machines.
4491 (lambda _ (substitute* "src/Makefile"
4492 (("-m64") ""))
4493 #t))
4494 (delete 'configure)
4495 (replace 'install
4496 (lambda* (#:key outputs #:allow-other-keys)
4497 (let* ((out (assoc-ref outputs "out"))
4498 (bin (string-append out "/bin"))
4499 (man (string-append out "/share/man/man1"))
4500 (path (string-append
4501 (assoc-ref %build-inputs "mafft") "/bin:"
4502 (assoc-ref %build-inputs "exonerate") "/bin:"
4503 (assoc-ref %build-inputs "bppsuite") "/bin")))
4504 (install-file "prank" bin)
4505 (wrap-program (string-append bin "/prank")
4506 `("PATH" ":" prefix (,path)))
4507 (install-file "prank.1" man))
4508 #t)))))
4509 (inputs
4510 `(("mafft" ,mafft)
4511 ("exonerate" ,exonerate)
4512 ("bppsuite" ,bppsuite)))
4513 (home-page "http://wasabiapp.org/software/prank/")
4514 (synopsis "Probabilistic multiple sequence alignment program")
4515 (description
4516 "PRANK is a probabilistic multiple sequence alignment program for DNA,
4517 codon and amino-acid sequences. It is based on a novel algorithm that treats
4518 insertions correctly and avoids over-estimation of the number of deletion
4519 events. In addition, PRANK borrows ideas from maximum likelihood methods used
4520 in phylogenetics and correctly takes into account the evolutionary distances
4521 between sequences. Lastly, PRANK allows for defining a potential structure
4522 for sequences to be aligned and then, simultaneously with the alignment,
4523 predicts the locations of structural units in the sequences.")
4524 (license license:gpl2+)))
4525
4526 (define-public proteinortho
4527 (package
4528 (name "proteinortho")
4529 (version "5.16b")
4530 (source
4531 (origin
4532 (method url-fetch)
4533 (uri
4534 (string-append
4535 "http://www.bioinf.uni-leipzig.de/Software/proteinortho/proteinortho_v"
4536 version "_src.tar.gz"))
4537 (sha256
4538 (base32
4539 "1wl0dawpssqwfjvr651r4wlww8hhjin8nba6xh71ks7sbypx886j"))))
4540 (build-system gnu-build-system)
4541 (arguments
4542 `(#:test-target "test"
4543 #:phases
4544 (modify-phases %standard-phases
4545 (replace 'configure
4546 ;; There is no configure script, so we modify the Makefile directly.
4547 (lambda* (#:key outputs #:allow-other-keys)
4548 (substitute* "Makefile"
4549 (("INSTALLDIR=.*")
4550 (string-append
4551 "INSTALLDIR=" (assoc-ref outputs "out") "/bin\n")))
4552 #t))
4553 (add-before 'install 'make-install-directory
4554 ;; The install directory is not created during 'make install'.
4555 (lambda* (#:key outputs #:allow-other-keys)
4556 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
4557 #t))
4558 (add-after 'install 'wrap-programs
4559 (lambda* (#:key inputs outputs #:allow-other-keys)
4560 (let* ((path (getenv "PATH"))
4561 (out (assoc-ref outputs "out"))
4562 (binary (string-append out "/bin/proteinortho5.pl")))
4563 (wrap-program binary `("PATH" ":" prefix (,path))))
4564 #t)))))
4565 (inputs
4566 `(("perl" ,perl)
4567 ("python" ,python-2)
4568 ("blast+" ,blast+)))
4569 (home-page "http://www.bioinf.uni-leipzig.de/Software/proteinortho")
4570 (synopsis "Detect orthologous genes across species")
4571 (description
4572 "Proteinortho is a tool to detect orthologous genes across different
4573 species. For doing so, it compares similarities of given gene sequences and
4574 clusters them to find significant groups. The algorithm was designed to handle
4575 large-scale data and can be applied to hundreds of species at once.")
4576 (license license:gpl2+)))
4577
4578 (define-public pyicoteo
4579 (package
4580 (name "pyicoteo")
4581 (version "2.0.7")
4582 (source
4583 (origin
4584 (method url-fetch)
4585 (uri (string-append "https://bitbucket.org/regulatorygenomicsupf/"
4586 "pyicoteo/get/v" version ".tar.bz2"))
4587 (file-name (string-append name "-" version ".tar.bz2"))
4588 (sha256
4589 (base32
4590 "0d6087f29xp8wxwlj111c3sylli98n0l8ry58c51ixzq0zfm50wa"))))
4591 (build-system python-build-system)
4592 (arguments
4593 `(#:python ,python-2 ; does not work with Python 3
4594 #:tests? #f)) ; there are no tests
4595 (inputs
4596 `(("python2-matplotlib" ,python2-matplotlib)))
4597 (home-page "https://bitbucket.org/regulatorygenomicsupf/pyicoteo")
4598 (synopsis "Analyze high-throughput genetic sequencing data")
4599 (description
4600 "Pyicoteo is a suite of tools for the analysis of high-throughput genetic
4601 sequencing data. It works with genomic coordinates. There are currently six
4602 different command-line tools:
4603
4604 @enumerate
4605 @item pyicoregion: for generating exploratory regions automatically;
4606 @item pyicoenrich: for differential enrichment between two conditions;
4607 @item pyicoclip: for calling CLIP-Seq peaks without a control;
4608 @item pyicos: for genomic coordinates manipulation;
4609 @item pyicoller: for peak calling on punctuated ChIP-Seq;
4610 @item pyicount: to count how many reads from N experiment files overlap in a
4611 region file;
4612 @item pyicotrocol: to combine operations from pyicoteo.
4613 @end enumerate\n")
4614 (license license:gpl3+)))
4615
4616 (define-public prodigal
4617 (package
4618 (name "prodigal")
4619 (version "2.6.3")
4620 (source (origin
4621 (method url-fetch)
4622 (uri (string-append
4623 "https://github.com/hyattpd/Prodigal/archive/v"
4624 version ".tar.gz"))
4625 (file-name (string-append name "-" version ".tar.gz"))
4626 (sha256
4627 (base32
4628 "17srxkqd3jc77xk15pfbgg1a9xahqg7337w95mrsia7mpza4l2c9"))))
4629 (build-system gnu-build-system)
4630 (arguments
4631 `(#:tests? #f ;no check target
4632 #:make-flags (list (string-append "INSTALLDIR="
4633 (assoc-ref %outputs "out")
4634 "/bin"))
4635 #:phases
4636 (modify-phases %standard-phases
4637 (delete 'configure))))
4638 (home-page "http://prodigal.ornl.gov")
4639 (synopsis "Protein-coding gene prediction for Archaea and Bacteria")
4640 (description
4641 "Prodigal runs smoothly on finished genomes, draft genomes, and
4642 metagenomes, providing gene predictions in GFF3, Genbank, or Sequin table
4643 format. It runs quickly, in an unsupervised fashion, handles gaps, handles
4644 partial genes, and identifies translation initiation sites.")
4645 (license license:gpl3+)))
4646
4647 (define-public roary
4648 (package
4649 (name "roary")
4650 (version "3.12.0")
4651 (source
4652 (origin
4653 (method url-fetch)
4654 (uri (string-append
4655 "mirror://cpan/authors/id/A/AJ/AJPAGE/Bio-Roary-"
4656 version ".tar.gz"))
4657 (sha256
4658 (base32
4659 "0qxrds9wx7cfhlkihrp6697kx0flhhxymap9fwan0b3rbdhcnmff"))))
4660 (build-system perl-build-system)
4661 (arguments
4662 `(#:phases
4663 (modify-phases %standard-phases
4664 (delete 'configure)
4665 (delete 'build)
4666 (replace 'check
4667 (lambda _
4668 ;; The tests are not run by default, so we run each test file
4669 ;; directly.
4670 (setenv "PATH" (string-append (getcwd) "/bin" ":"
4671 (getenv "PATH")))
4672 (setenv "PERL5LIB" (string-append (getcwd) "/lib" ":"
4673 (getenv "PERL5LIB")))
4674 (zero? (length (filter (lambda (file)
4675 (display file)(display "\n")
4676 (not (zero? (system* "perl" file))))
4677 (find-files "t" ".*\\.t$"))))))
4678 (replace 'install
4679 ;; There is no 'install' target in the Makefile.
4680 (lambda* (#:key outputs #:allow-other-keys)
4681 (let* ((out (assoc-ref outputs "out"))
4682 (bin (string-append out "/bin"))
4683 (perl (string-append out "/lib/perl5/site_perl"))
4684 (roary-plots "contrib/roary_plots"))
4685 (mkdir-p bin)
4686 (mkdir-p perl)
4687 (copy-recursively "bin" bin)
4688 (copy-recursively "lib" perl)
4689 #t)))
4690 (add-after 'install 'wrap-programs
4691 (lambda* (#:key inputs outputs #:allow-other-keys)
4692 (let* ((out (assoc-ref outputs "out"))
4693 (perl5lib (getenv "PERL5LIB"))
4694 (path (getenv "PATH")))
4695 (for-each (lambda (prog)
4696 (let ((binary (string-append out "/" prog)))
4697 (wrap-program binary
4698 `("PERL5LIB" ":" prefix
4699 (,(string-append perl5lib ":" out
4700 "/lib/perl5/site_perl"))))
4701 (wrap-program binary
4702 `("PATH" ":" prefix
4703 (,(string-append path ":" out "/bin"))))))
4704 (find-files "bin" ".*[^R]$"))
4705 (let ((file
4706 (string-append out "/bin/roary-create_pan_genome_plots.R"))
4707 (r-site-lib (getenv "R_LIBS_SITE"))
4708 (coreutils-path
4709 (string-append (assoc-ref inputs "coreutils") "/bin")))
4710 (wrap-program file
4711 `("R_LIBS_SITE" ":" prefix
4712 (,(string-append r-site-lib ":" out "/site-library/"))))
4713 (wrap-program file
4714 `("PATH" ":" prefix
4715 (,(string-append coreutils-path ":" out "/bin"))))))
4716 #t)))))
4717 (native-inputs
4718 `(("perl-env-path" ,perl-env-path)
4719 ("perl-test-files" ,perl-test-files)
4720 ("perl-test-most" ,perl-test-most)
4721 ("perl-test-output" ,perl-test-output)))
4722 (inputs
4723 `(("perl-array-utils" ,perl-array-utils)
4724 ("bioperl" ,bioperl-minimal)
4725 ("perl-digest-md5-file" ,perl-digest-md5-file)
4726 ("perl-exception-class" ,perl-exception-class)
4727 ("perl-file-find-rule" ,perl-file-find-rule)
4728 ("perl-file-grep" ,perl-file-grep)
4729 ("perl-file-slurper" ,perl-file-slurper)
4730 ("perl-file-which" ,perl-file-which)
4731 ("perl-graph" ,perl-graph)
4732 ("perl-graph-readwrite" ,perl-graph-readwrite)
4733 ("perl-log-log4perl" ,perl-log-log4perl)
4734 ("perl-moose" ,perl-moose)
4735 ("perl-perlio-utf8_strict" ,perl-perlio-utf8_strict)
4736 ("perl-text-csv" ,perl-text-csv)
4737 ("bedtools" ,bedtools)
4738 ("cd-hit" ,cd-hit)
4739 ("blast+" ,blast+)
4740 ("mcl" ,mcl)
4741 ("parallel" ,parallel)
4742 ("prank" ,prank)
4743 ("mafft" ,mafft)
4744 ("fasttree" ,fasttree)
4745 ("grep" ,grep)
4746 ("sed" ,sed)
4747 ("gawk" ,gawk)
4748 ("r-minimal" ,r-minimal)
4749 ("r-ggplot2" ,r-ggplot2)
4750 ("coreutils" ,coreutils)))
4751 (home-page "http://sanger-pathogens.github.io/Roary")
4752 (synopsis "High speed stand-alone pan genome pipeline")
4753 (description
4754 "Roary is a high speed stand alone pan genome pipeline, which takes
4755 annotated assemblies in GFF3 format (produced by the Prokka program) and
4756 calculates the pan genome. Using a standard desktop PC, it can analyse
4757 datasets with thousands of samples, without compromising the quality of the
4758 results. 128 samples can be analysed in under 1 hour using 1 GB of RAM and a
4759 single processor. Roary is not intended for metagenomics or for comparing
4760 extremely diverse sets of genomes.")
4761 (license license:gpl3)))
4762
4763 (define-public raxml
4764 (package
4765 (name "raxml")
4766 (version "8.2.10")
4767 (source
4768 (origin
4769 (method url-fetch)
4770 (uri
4771 (string-append
4772 "https://github.com/stamatak/standard-RAxML/archive/v"
4773 version ".tar.gz"))
4774 (file-name (string-append name "-" version ".tar.gz"))
4775 (sha256
4776 (base32
4777 "13s7aspfdcfr6asynwdg1x6vznys6pzap5f8wsffbnnwpkkg9ya8"))))
4778 (build-system gnu-build-system)
4779 (arguments
4780 `(#:tests? #f ; There are no tests.
4781 ;; Use 'standard' Makefile rather than SSE or AVX ones.
4782 #:make-flags (list "-f" "Makefile.HYBRID.gcc")
4783 #:phases
4784 (modify-phases %standard-phases
4785 (delete 'configure)
4786 (replace 'install
4787 (lambda* (#:key outputs #:allow-other-keys)
4788 (let* ((out (assoc-ref outputs "out"))
4789 (bin (string-append out "/bin"))
4790 (executable "raxmlHPC-HYBRID"))
4791 (install-file executable bin)
4792 (symlink (string-append bin "/" executable) "raxml"))
4793 #t)))))
4794 (inputs
4795 `(("openmpi" ,openmpi)))
4796 (home-page "http://sco.h-its.org/exelixis/web/software/raxml/index.html")
4797 (synopsis "Randomized Axelerated Maximum Likelihood phylogenetic trees")
4798 (description
4799 "RAxML is a tool for phylogenetic analysis and post-analysis of large
4800 phylogenies.")
4801 ;; The source includes x86 specific code
4802 (supported-systems '("x86_64-linux" "i686-linux"))
4803 (license license:gpl2+)))
4804
4805 (define-public rsem
4806 (package
4807 (name "rsem")
4808 (version "1.2.20")
4809 (source
4810 (origin
4811 (method url-fetch)
4812 (uri
4813 (string-append "http://deweylab.biostat.wisc.edu/rsem/src/rsem-"
4814 version ".tar.gz"))
4815 (sha256
4816 (base32 "0nzdc0j0hjllhsd5f2xli95dafm3nawskigs140xzvjk67xh0r9q"))
4817 (patches (search-patches "rsem-makefile.patch"))
4818 (modules '((guix build utils)))
4819 (snippet
4820 '(begin
4821 ;; remove bundled copy of boost
4822 (delete-file-recursively "boost")
4823 #t))))
4824 (build-system gnu-build-system)
4825 (arguments
4826 `(#:tests? #f ;no "check" target
4827 #:phases
4828 (modify-phases %standard-phases
4829 ;; No "configure" script.
4830 ;; Do not build bundled samtools library.
4831 (replace 'configure
4832 (lambda _
4833 (substitute* "Makefile"
4834 (("^all : sam/libbam.a") "all : "))
4835 #t))
4836 (replace 'install
4837 (lambda* (#:key outputs #:allow-other-keys)
4838 (let* ((out (string-append (assoc-ref outputs "out")))
4839 (bin (string-append out "/bin/"))
4840 (perl (string-append out "/lib/perl5/site_perl")))
4841 (mkdir-p bin)
4842 (mkdir-p perl)
4843 (for-each (lambda (file)
4844 (install-file file bin))
4845 (find-files "." "rsem-.*"))
4846 (install-file "rsem_perl_utils.pm" perl))
4847 #t))
4848 (add-after
4849 'install 'wrap-program
4850 (lambda* (#:key outputs #:allow-other-keys)
4851 (let ((out (assoc-ref outputs "out")))
4852 (for-each (lambda (prog)
4853 (wrap-program (string-append out "/bin/" prog)
4854 `("PERL5LIB" ":" prefix
4855 (,(string-append out "/lib/perl5/site_perl")))))
4856 '("rsem-plot-transcript-wiggles"
4857 "rsem-calculate-expression"
4858 "rsem-generate-ngvector"
4859 "rsem-run-ebseq"
4860 "rsem-prepare-reference")))
4861 #t)))))
4862 (inputs
4863 `(("boost" ,boost)
4864 ("ncurses" ,ncurses)
4865 ("r-minimal" ,r-minimal)
4866 ("perl" ,perl)
4867 ("samtools" ,samtools-0.1)
4868 ("zlib" ,zlib)))
4869 (home-page "http://deweylab.biostat.wisc.edu/rsem/")
4870 (synopsis "Estimate gene expression levels from RNA-Seq data")
4871 (description
4872 "RSEM is a software package for estimating gene and isoform expression
4873 levels from RNA-Seq data. The RSEM package provides a user-friendly
4874 interface, supports threads for parallel computation of the EM algorithm,
4875 single-end and paired-end read data, quality scores, variable-length reads and
4876 RSPD estimation. In addition, it provides posterior mean and 95% credibility
4877 interval estimates for expression levels. For visualization, it can generate
4878 BAM and Wiggle files in both transcript-coordinate and genomic-coordinate.")
4879 (license license:gpl3+)))
4880
4881 (define-public rseqc
4882 (package
4883 (name "rseqc")
4884 (version "2.6.1")
4885 (source
4886 (origin
4887 (method url-fetch)
4888 (uri
4889 (string-append "mirror://sourceforge/rseqc/"
4890 "RSeQC-" version ".tar.gz"))
4891 (sha256
4892 (base32 "15ly0254yi032qzkdplg00q144qfdsd986gh62829rl5bkxhj330"))
4893 (modules '((guix build utils)))
4894 (snippet
4895 '(begin
4896 ;; remove bundled copy of pysam
4897 (delete-file-recursively "lib/pysam")
4898 (substitute* "setup.py"
4899 ;; remove dependency on outdated "distribute" module
4900 (("^from distribute_setup import use_setuptools") "")
4901 (("^use_setuptools\\(\\)") "")
4902 ;; do not use bundled copy of pysam
4903 (("^have_pysam = False") "have_pysam = True"))
4904 #t))))
4905 (build-system python-build-system)
4906 (arguments `(#:python ,python-2))
4907 (inputs
4908 `(("python-cython" ,python2-cython)
4909 ("python-pysam" ,python2-pysam)
4910 ("python-numpy" ,python2-numpy)
4911 ("zlib" ,zlib)))
4912 (native-inputs
4913 `(("python-nose" ,python2-nose)))
4914 (home-page "http://rseqc.sourceforge.net/")
4915 (synopsis "RNA-seq quality control package")
4916 (description
4917 "RSeQC provides a number of modules that can comprehensively evaluate
4918 high throughput sequence data, especially RNA-seq data. Some basic modules
4919 inspect sequence quality, nucleotide composition bias, PCR bias and GC bias,
4920 while RNA-seq specific modules evaluate sequencing saturation, mapped reads
4921 distribution, coverage uniformity, strand specificity, etc.")
4922 (license license:gpl3+)))
4923
4924 (define-public seek
4925 ;; There are no release tarballs. According to the installation
4926 ;; instructions at http://seek.princeton.edu/installation.jsp, the latest
4927 ;; stable release is identified by this changeset ID.
4928 (let ((changeset "2329130")
4929 (revision "1"))
4930 (package
4931 (name "seek")
4932 (version (string-append "0-" revision "." changeset))
4933 (source (origin
4934 (method hg-fetch)
4935 (uri (hg-reference
4936 (url "https://bitbucket.org/libsleipnir/sleipnir")
4937 (changeset changeset)))
4938 (file-name (string-append name "-" version "-checkout"))
4939 (sha256
4940 (base32
4941 "0qrvilwh18dpbhkf92qvxbmay0j75ra3jg2wrhz67gf538zzphsx"))))
4942 (build-system gnu-build-system)
4943 (arguments
4944 `(#:modules ((srfi srfi-1)
4945 (guix build gnu-build-system)
4946 (guix build utils))
4947 #:phases
4948 (let ((dirs '("SeekMiner"
4949 "SeekEvaluator"
4950 "SeekPrep"
4951 "Distancer"
4952 "Data2DB"
4953 "PCL2Bin")))
4954 (modify-phases %standard-phases
4955 (replace 'bootstrap
4956 (lambda _
4957 (invoke "bash" "gen_auto")))
4958 (add-after 'build 'build-additional-tools
4959 (lambda* (#:key make-flags #:allow-other-keys)
4960 (every (lambda (dir)
4961 (with-directory-excursion (string-append "tools/" dir)
4962 (zero? (apply system* "make" make-flags))))
4963 dirs)))
4964 (add-after 'install 'install-additional-tools
4965 (lambda* (#:key make-flags #:allow-other-keys)
4966 (fold (lambda (dir result)
4967 (with-directory-excursion (string-append "tools/" dir)
4968 (and result
4969 (zero? (apply system*
4970 `("make" ,@make-flags "install"))))))
4971 #t dirs)))))))
4972 (inputs
4973 `(("gsl" ,gsl)
4974 ("boost" ,boost)
4975 ("libsvm" ,libsvm)
4976 ("readline" ,readline)
4977 ("gengetopt" ,gengetopt)
4978 ("log4cpp" ,log4cpp)))
4979 (native-inputs
4980 `(("autoconf" ,autoconf)
4981 ("automake" ,automake)
4982 ("perl" ,perl)))
4983 (home-page "http://seek.princeton.edu")
4984 (synopsis "Gene co-expression search engine")
4985 (description
4986 "SEEK is a computational gene co-expression search engine. SEEK provides
4987 biologists with a way to navigate the massive human expression compendium that
4988 now contains thousands of expression datasets. SEEK returns a robust ranking
4989 of co-expressed genes in the biological area of interest defined by the user's
4990 query genes. It also prioritizes thousands of expression datasets according
4991 to the user's query of interest.")
4992 (license license:cc-by3.0))))
4993
4994 (define-public samtools
4995 (package
4996 (name "samtools")
4997 (version "1.8")
4998 (source
4999 (origin
5000 (method url-fetch)
5001 (uri
5002 (string-append "mirror://sourceforge/samtools/samtools/"
5003 version "/samtools-" version ".tar.bz2"))
5004 (sha256
5005 (base32
5006 "05myg7bs90i68qbqab9cdg9rqj2xh39azibrx82ipzc5kcfvqhn9"))))
5007 (build-system gnu-build-system)
5008 (arguments
5009 `(#:modules ((ice-9 ftw)
5010 (ice-9 regex)
5011 (guix build gnu-build-system)
5012 (guix build utils))
5013 #:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
5014 #:configure-flags (list "--with-ncurses" "--with-htslib=system")
5015 #:phases
5016 (modify-phases %standard-phases
5017 (add-after 'unpack 'patch-tests
5018 (lambda _
5019 (substitute* "test/test.pl"
5020 ;; The test script calls out to /bin/bash
5021 (("/bin/bash") (which "bash")))
5022 #t))
5023 (add-after 'install 'install-library
5024 (lambda* (#:key outputs #:allow-other-keys)
5025 (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
5026 (install-file "libbam.a" lib)
5027 #t)))
5028 (add-after 'install 'install-headers
5029 (lambda* (#:key outputs #:allow-other-keys)
5030 (let ((include (string-append (assoc-ref outputs "out")
5031 "/include/samtools/")))
5032 (for-each (lambda (file)
5033 (install-file file include))
5034 (scandir "." (lambda (name) (string-match "\\.h$" name))))
5035 #t))))))
5036 (native-inputs `(("pkg-config" ,pkg-config)))
5037 (inputs
5038 `(("htslib" ,htslib)
5039 ("ncurses" ,ncurses)
5040 ("perl" ,perl)
5041 ("python" ,python)
5042 ("zlib" ,zlib)))
5043 (home-page "http://samtools.sourceforge.net")
5044 (synopsis "Utilities to efficiently manipulate nucleotide sequence alignments")
5045 (description
5046 "Samtools implements various utilities for post-processing nucleotide
5047 sequence alignments in the SAM, BAM, and CRAM formats, including indexing,
5048 variant calling (in conjunction with bcftools), and a simple alignment
5049 viewer.")
5050 (license license:expat)))
5051
5052 (define-public samtools-0.1
5053 ;; This is the most recent version of the 0.1 line of samtools. The input
5054 ;; and output formats differ greatly from that used and produced by samtools
5055 ;; 1.x and is still used in many bioinformatics pipelines.
5056 (package (inherit samtools)
5057 (version "0.1.19")
5058 (source
5059 (origin
5060 (method url-fetch)
5061 (uri
5062 (string-append "mirror://sourceforge/samtools/samtools/"
5063 version "/samtools-" version ".tar.bz2"))
5064 (sha256
5065 (base32 "1m33xsfwz0s8qi45lylagfllqg7fphf4dr0780rsvw75av9wk06h"))))
5066 (arguments
5067 `(#:tests? #f ;no "check" target
5068 ,@(substitute-keyword-arguments (package-arguments samtools)
5069 ((#:make-flags flags)
5070 `(cons "LIBCURSES=-lncurses" ,flags))
5071 ((#:phases phases)
5072 `(modify-phases ,phases
5073 (replace 'install
5074 (lambda* (#:key outputs #:allow-other-keys)
5075 (let ((bin (string-append
5076 (assoc-ref outputs "out") "/bin")))
5077 (mkdir-p bin)
5078 (install-file "samtools" bin)
5079 #t)))
5080 (delete 'patch-tests)
5081 (delete 'configure))))))))
5082
5083 (define-public mosaik
5084 (let ((commit "5c25216d3522d6a33e53875cd76a6d65001e4e67"))
5085 (package
5086 (name "mosaik")
5087 (version "2.2.30")
5088 (source (origin
5089 ;; There are no release tarballs nor tags.
5090 (method git-fetch)
5091 (uri (git-reference
5092 (url "https://github.com/wanpinglee/MOSAIK.git")
5093 (commit commit)))
5094 (file-name (string-append name "-" version))
5095 (sha256
5096 (base32
5097 "17gj3s07cm77r41z92awh0bim7w7q7fbn0sf5nkqmcm1vw052qgw"))))
5098 (build-system gnu-build-system)
5099 (arguments
5100 `(#:tests? #f ; no tests
5101 #:make-flags (list "CC=gcc")
5102 #:phases
5103 (modify-phases %standard-phases
5104 (replace 'configure
5105 (lambda _ (chdir "src") #t))
5106 (replace 'install
5107 (lambda* (#:key outputs #:allow-other-keys)
5108 (let ((bin (string-append (assoc-ref outputs "out")
5109 "/bin")))
5110 (mkdir-p bin)
5111 (copy-recursively "../bin" bin)
5112 #t))))))
5113 (inputs
5114 `(("perl" ,perl)
5115 ("zlib" ,zlib)))
5116 (supported-systems '("x86_64-linux"))
5117 (home-page "https://github.com/wanpinglee/MOSAIK")
5118 (synopsis "Map nucleotide sequence reads to reference genomes")
5119 (description
5120 "MOSAIK is a program for mapping second and third-generation sequencing
5121 reads to a reference genome. MOSAIK can align reads generated by all the
5122 major sequencing technologies, including Illumina, Applied Biosystems SOLiD,
5123 Roche 454, Ion Torrent and Pacific BioSciences SMRT.")
5124 ;; MOSAIK is released under the GPLv2+ with the exception of third-party
5125 ;; code released into the public domain:
5126 ;; 1. fastlz by Ariya Hidayat - http://www.fastlz.org/
5127 ;; 2. MD5 implementation - RSA Data Security, RFC 1321
5128 (license (list license:gpl2+ license:public-domain)))))
5129
5130 (define-public ngs-sdk
5131 (package
5132 (name "ngs-sdk")
5133 (version "1.3.0")
5134 (source
5135 (origin
5136 (method url-fetch)
5137 (uri
5138 (string-append "https://github.com/ncbi/ngs/archive/"
5139 version ".tar.gz"))
5140 (file-name (string-append name "-" version ".tar.gz"))
5141 (sha256
5142 (base32
5143 "1wiyf4c6nm2j87pv015cbi0qny5byf3pbvcw3likifz5dl56ag40"))))
5144 (build-system gnu-build-system)
5145 (arguments
5146 `(#:parallel-build? #f ; not supported
5147 #:tests? #f ; no "check" target
5148 #:phases
5149 (modify-phases %standard-phases
5150 (replace 'configure
5151 (lambda* (#:key outputs #:allow-other-keys)
5152 (let ((out (assoc-ref outputs "out")))
5153 ;; Allow 'konfigure.perl' to find 'package.prl'.
5154 (setenv "PERL5LIB"
5155 (string-append ".:" (getenv "PERL5LIB")))
5156
5157 ;; The 'configure' script doesn't recognize things like
5158 ;; '--enable-fast-install'.
5159 (zero? (system* "./configure"
5160 (string-append "--build-prefix=" (getcwd) "/build")
5161 (string-append "--prefix=" out))))))
5162 (add-after 'unpack 'enter-dir
5163 (lambda _ (chdir "ngs-sdk") #t)))))
5164 (native-inputs `(("perl" ,perl)))
5165 ;; According to the test
5166 ;; unless ($MARCH =~ /x86_64/i || $MARCH =~ /i?86/i)
5167 ;; in ngs-sdk/setup/konfigure.perl
5168 (supported-systems '("i686-linux" "x86_64-linux"))
5169 (home-page "https://github.com/ncbi/ngs")
5170 (synopsis "API for accessing Next Generation Sequencing data")
5171 (description
5172 "NGS is a domain-specific API for accessing reads, alignments and pileups
5173 produced from Next Generation Sequencing. The API itself is independent from
5174 any particular back-end implementation, and supports use of multiple back-ends
5175 simultaneously.")
5176 (license license:public-domain)))
5177
5178 (define-public java-ngs
5179 (package (inherit ngs-sdk)
5180 (name "java-ngs")
5181 (arguments
5182 `(,@(substitute-keyword-arguments
5183 `(#:modules ((guix build gnu-build-system)
5184 (guix build utils)
5185 (srfi srfi-1)
5186 (srfi srfi-26))
5187 ,@(package-arguments ngs-sdk))
5188 ((#:phases phases)
5189 `(modify-phases ,phases
5190 (replace 'enter-dir (lambda _ (chdir "ngs-java") #t)))))))
5191 (inputs
5192 `(("jdk" ,icedtea "jdk")
5193 ("ngs-sdk" ,ngs-sdk)))
5194 (synopsis "Java bindings for NGS SDK")))
5195
5196 (define-public ncbi-vdb
5197 (package
5198 (name "ncbi-vdb")
5199 (version "2.8.2")
5200 (source
5201 (origin
5202 (method url-fetch)
5203 (uri
5204 (string-append "https://github.com/ncbi/ncbi-vdb/archive/"
5205 version ".tar.gz"))
5206 (file-name (string-append name "-" version ".tar.gz"))
5207 (sha256
5208 (base32
5209 "1acn4bv81mfl137qnbn9995mjjhwd36pm0b7qli1iw5skrxa9j8m"))))
5210 (build-system gnu-build-system)
5211 (arguments
5212 `(#:parallel-build? #f ; not supported
5213 #:tests? #f ; no "check" target
5214 #:phases
5215 (modify-phases %standard-phases
5216 (add-before 'configure 'set-perl-search-path
5217 (lambda _
5218 ;; Work around "dotless @INC" build failure.
5219 (setenv "PERL5LIB"
5220 (string-append (getcwd) "/setup:"
5221 (getenv "PERL5LIB")))
5222 #t))
5223 (replace 'configure
5224 (lambda* (#:key inputs outputs #:allow-other-keys)
5225 (let ((out (assoc-ref outputs "out")))
5226 ;; Override include path for libmagic
5227 (substitute* "setup/package.prl"
5228 (("name => 'magic', Include => '/usr/include'")
5229 (string-append "name=> 'magic', Include => '"
5230 (assoc-ref inputs "libmagic")
5231 "/include" "'")))
5232
5233 ;; Install kdf5 library (needed by sra-tools)
5234 (substitute* "build/Makefile.install"
5235 (("LIBRARIES_TO_INSTALL =")
5236 "LIBRARIES_TO_INSTALL = kdf5.$(VERSION_LIBX) kdf5.$(VERSION_SHLX)"))
5237
5238 (substitute* "build/Makefile.env"
5239 (("CFLAGS =" prefix)
5240 (string-append prefix "-msse2 ")))
5241
5242 ;; Override search path for ngs-java
5243 (substitute* "setup/package.prl"
5244 (("/usr/local/ngs/ngs-java")
5245 (assoc-ref inputs "java-ngs")))
5246
5247 ;; The 'configure' script doesn't recognize things like
5248 ;; '--enable-fast-install'.
5249 (zero? (system*
5250 "./configure"
5251 (string-append "--build-prefix=" (getcwd) "/build")
5252 (string-append "--prefix=" (assoc-ref outputs "out"))
5253 (string-append "--debug")
5254 (string-append "--with-xml2-prefix="
5255 (assoc-ref inputs "libxml2"))
5256 (string-append "--with-ngs-sdk-prefix="
5257 (assoc-ref inputs "ngs-sdk"))
5258 (string-append "--with-hdf5-prefix="
5259 (assoc-ref inputs "hdf5")))))))
5260 (add-after 'install 'install-interfaces
5261 (lambda* (#:key outputs #:allow-other-keys)
5262 ;; Install interface libraries. On i686 the interface libraries
5263 ;; are installed to "linux/gcc/i386", so we need to use the Linux
5264 ;; architecture name ("i386") instead of the target system prefix
5265 ;; ("i686").
5266 (mkdir (string-append (assoc-ref outputs "out") "/ilib"))
5267 (copy-recursively (string-append "build/ncbi-vdb/linux/gcc/"
5268 ,(system->linux-architecture
5269 (or (%current-target-system)
5270 (%current-system)))
5271 "/rel/ilib")
5272 (string-append (assoc-ref outputs "out")
5273 "/ilib"))
5274 ;; Install interface headers
5275 (copy-recursively "interfaces"
5276 (string-append (assoc-ref outputs "out")
5277 "/include"))
5278 #t))
5279 ;; These files are needed by sra-tools.
5280 (add-after 'install 'install-configuration-files
5281 (lambda* (#:key outputs #:allow-other-keys)
5282 (let ((target (string-append (assoc-ref outputs "out") "/kfg")))
5283 (mkdir target)
5284 (install-file "libs/kfg/default.kfg" target)
5285 (install-file "libs/kfg/certs.kfg" target))
5286 #t)))))
5287 (inputs
5288 `(("libxml2" ,libxml2)
5289 ("ngs-sdk" ,ngs-sdk)
5290 ("java-ngs" ,java-ngs)
5291 ("libmagic" ,file)
5292 ("hdf5" ,hdf5)))
5293 (native-inputs `(("perl" ,perl)))
5294 ;; NCBI-VDB requires SSE capability.
5295 (supported-systems '("i686-linux" "x86_64-linux"))
5296 (home-page "https://github.com/ncbi/ncbi-vdb")
5297 (synopsis "Database engine for genetic information")
5298 (description
5299 "The NCBI-VDB library implements a highly compressed columnar data
5300 warehousing engine that is most often used to store genetic information.
5301 Databases are stored in a portable image within the file system, and can be
5302 accessed/downloaded on demand across HTTP.")
5303 (license license:public-domain)))
5304
5305 (define-public plink
5306 (package
5307 (name "plink")
5308 (version "1.07")
5309 (source
5310 (origin
5311 (method url-fetch)
5312 (uri (string-append
5313 "http://pngu.mgh.harvard.edu/~purcell/plink/dist/plink-"
5314 version "-src.zip"))
5315 (sha256
5316 (base32 "0as8gxm4pjyc8dxmm1sl873rrd7wn5qs0l29nqfnl31x8i467xaa"))
5317 (patches (search-patches "plink-1.07-unclobber-i.patch"
5318 "plink-endian-detection.patch"))))
5319 (build-system gnu-build-system)
5320 (arguments
5321 '(#:tests? #f ;no "check" target
5322 #:make-flags (list (string-append "LIB_LAPACK="
5323 (assoc-ref %build-inputs "lapack")
5324 "/lib/liblapack.so")
5325 "WITH_LAPACK=1"
5326 "FORCE_DYNAMIC=1"
5327 ;; disable phoning home
5328 "WITH_WEBCHECK=")
5329 #:phases
5330 (modify-phases %standard-phases
5331 ;; no "configure" script
5332 (delete 'configure)
5333 (replace 'install
5334 (lambda* (#:key outputs #:allow-other-keys)
5335 (let ((bin (string-append (assoc-ref outputs "out")
5336 "/bin/")))
5337 (install-file "plink" bin)
5338 #t))))))
5339 (inputs
5340 `(("zlib" ,zlib)
5341 ("lapack" ,lapack)))
5342 (native-inputs
5343 `(("unzip" ,unzip)))
5344 (home-page "http://pngu.mgh.harvard.edu/~purcell/plink/")
5345 (synopsis "Whole genome association analysis toolset")
5346 (description
5347 "PLINK is a whole genome association analysis toolset, designed to
5348 perform a range of basic, large-scale analyses in a computationally efficient
5349 manner. The focus of PLINK is purely on analysis of genotype/phenotype data,
5350 so there is no support for steps prior to this (e.g. study design and
5351 planning, generating genotype or CNV calls from raw data). Through
5352 integration with gPLINK and Haploview, there is some support for the
5353 subsequent visualization, annotation and storage of results.")
5354 ;; Code is released under GPLv2, except for fisher.h, which is under
5355 ;; LGPLv2.1+
5356 (license (list license:gpl2 license:lgpl2.1+))))
5357
5358 (define-public plink-ng
5359 (package (inherit plink)
5360 (name "plink-ng")
5361 (version "1.90b4")
5362 (source
5363 (origin
5364 (method url-fetch)
5365 (uri (string-append "https://github.com/chrchang/plink-ng/archive/v"
5366 version ".tar.gz"))
5367 (file-name (string-append name "-" version ".tar.gz"))
5368 (sha256
5369 (base32 "09ixrds009aczjswxr2alcb774mksq5g0v78dgjjn1h4dky0kf9a"))))
5370 (build-system gnu-build-system)
5371 (arguments
5372 '(#:tests? #f ;no "check" target
5373 #:make-flags (list "BLASFLAGS=-llapack -lopenblas"
5374 "CFLAGS=-Wall -O2 -DDYNAMIC_ZLIB=1"
5375 "ZLIB=-lz"
5376 "-f" "Makefile.std")
5377 #:phases
5378 (modify-phases %standard-phases
5379 (add-after 'unpack 'chdir
5380 (lambda _ (chdir "1.9") #t))
5381 (delete 'configure) ; no "configure" script
5382 (replace 'install
5383 (lambda* (#:key outputs #:allow-other-keys)
5384 (let ((bin (string-append (assoc-ref outputs "out")
5385 "/bin/")))
5386 (install-file "plink" bin)
5387 #t))))))
5388 (inputs
5389 `(("zlib" ,zlib)
5390 ("lapack" ,lapack)
5391 ("openblas" ,openblas)))
5392 (home-page "https://www.cog-genomics.org/plink/")
5393 (license license:gpl3+)))
5394
5395 (define-public smithlab-cpp
5396 (let ((revision "1")
5397 (commit "728a097bec88c6f4b8528b685932049e660eff2e"))
5398 (package
5399 (name "smithlab-cpp")
5400 (version (string-append "0." revision "." (string-take commit 7)))
5401 (source (origin
5402 (method git-fetch)
5403 (uri (git-reference
5404 (url "https://github.com/smithlabcode/smithlab_cpp.git")
5405 (commit commit)))
5406 (file-name (string-append name "-" version "-checkout"))
5407 (sha256
5408 (base32
5409 "0d476lmj312xk77kr9fzrv7z1bv96yfyx0w7y62ycmnfbx32ll74"))))
5410 (build-system gnu-build-system)
5411 (arguments
5412 `(#:modules ((guix build gnu-build-system)
5413 (guix build utils)
5414 (srfi srfi-26))
5415 #:tests? #f ;no "check" target
5416 #:phases
5417 (modify-phases %standard-phases
5418 (add-after 'unpack 'use-samtools-headers
5419 (lambda _
5420 (substitute* '("SAM.cpp"
5421 "SAM.hpp")
5422 (("sam.h") "samtools/sam.h"))
5423 #t))
5424 (replace 'install
5425 (lambda* (#:key outputs #:allow-other-keys)
5426 (let* ((out (assoc-ref outputs "out"))
5427 (lib (string-append out "/lib"))
5428 (include (string-append out "/include/smithlab-cpp")))
5429 (mkdir-p lib)
5430 (mkdir-p include)
5431 (for-each (cut install-file <> lib)
5432 (find-files "." "\\.o$"))
5433 (for-each (cut install-file <> include)
5434 (find-files "." "\\.hpp$")))
5435 #t))
5436 (delete 'configure))))
5437 (inputs
5438 `(("samtools" ,samtools-0.1)
5439 ("zlib" ,zlib)))
5440 (home-page "https://github.com/smithlabcode/smithlab_cpp")
5441 (synopsis "C++ helper library for functions used in Smith lab projects")
5442 (description
5443 "Smithlab CPP is a C++ library that includes functions used in many of
5444 the Smith lab bioinformatics projects, such as a wrapper around Samtools data
5445 structures, classes for genomic regions, mapped sequencing reads, etc.")
5446 (license license:gpl3+))))
5447
5448 (define-public preseq
5449 (package
5450 (name "preseq")
5451 (version "2.0")
5452 (source (origin
5453 (method url-fetch)
5454 (uri (string-append "https://github.com/smithlabcode/"
5455 "preseq/archive/v" version ".tar.gz"))
5456 (file-name (string-append name "-" version ".tar.gz"))
5457 (sha256
5458 (base32 "08r684l50pnxjpvmhzjgqq56yv9rfw90k8vx0nsrnrzk8mf9hsdq"))
5459 (modules '((guix build utils)))
5460 (snippet '(begin
5461 ;; Remove bundled samtools.
5462 (delete-file-recursively "samtools")
5463 #t))))
5464 (build-system gnu-build-system)
5465 (arguments
5466 `(#:tests? #f ;no "check" target
5467 #:phases
5468 (modify-phases %standard-phases
5469 (delete 'configure))
5470 #:make-flags
5471 (list (string-append "PREFIX="
5472 (assoc-ref %outputs "out"))
5473 (string-append "LIBBAM="
5474 (assoc-ref %build-inputs "samtools")
5475 "/lib/libbam.a")
5476 (string-append "SMITHLAB_CPP="
5477 (assoc-ref %build-inputs "smithlab-cpp")
5478 "/lib")
5479 "PROGS=preseq"
5480 "INCLUDEDIRS=$(SMITHLAB_CPP)/../include/smithlab-cpp $(SAMTOOLS_DIR)")))
5481 (inputs
5482 `(("gsl" ,gsl)
5483 ("samtools" ,samtools-0.1)
5484 ("smithlab-cpp" ,smithlab-cpp)
5485 ("zlib" ,zlib)))
5486 (home-page "http://smithlabresearch.org/software/preseq/")
5487 (synopsis "Program for analyzing library complexity")
5488 (description
5489 "The preseq package is aimed at predicting and estimating the complexity
5490 of a genomic sequencing library, equivalent to predicting and estimating the
5491 number of redundant reads from a given sequencing depth and how many will be
5492 expected from additional sequencing using an initial sequencing experiment.
5493 The estimates can then be used to examine the utility of further sequencing,
5494 optimize the sequencing depth, or to screen multiple libraries to avoid low
5495 complexity samples.")
5496 (license license:gpl3+)))
5497
5498 (define-public python-screed
5499 (package
5500 (name "python-screed")
5501 (version "0.9")
5502 (source
5503 (origin
5504 (method url-fetch)
5505 (uri (pypi-uri "screed" version))
5506 (sha256
5507 (base32
5508 "18czszp9fkx3j6jr7y5kp6dfialscgddk05mw1zkhh2zhn0jd8i0"))))
5509 (build-system python-build-system)
5510 (arguments
5511 `(#:phases
5512 (modify-phases %standard-phases
5513 (replace 'check
5514 (lambda _
5515 (setenv "PYTHONPATH"
5516 (string-append (getenv "PYTHONPATH") ":."))
5517 (zero? (system* "nosetests" "--attr" "!known_failing")))))))
5518 (native-inputs
5519 `(("python-nose" ,python-nose)))
5520 (inputs
5521 `(("python-bz2file" ,python-bz2file)))
5522 (home-page "https://github.com/dib-lab/screed/")
5523 (synopsis "Short read sequence database utilities")
5524 (description "Screed parses FASTA and FASTQ files and generates databases.
5525 Values such as sequence name, sequence description, sequence quality and the
5526 sequence itself can be retrieved from these databases.")
5527 (license license:bsd-3)))
5528
5529 (define-public python2-screed
5530 (package-with-python2 python-screed))
5531
5532 (define-public sra-tools
5533 (package
5534 (name "sra-tools")
5535 (version "2.8.2-1")
5536 (source
5537 (origin
5538 (method url-fetch)
5539 (uri
5540 (string-append "https://github.com/ncbi/sra-tools/archive/"
5541 version ".tar.gz"))
5542 (file-name (string-append name "-" version ".tar.gz"))
5543 (sha256
5544 (base32
5545 "1camsijmvv2s45mb4iyf44ghl4gkd4rl0viphpcgl3ccchy32a0g"))))
5546 (build-system gnu-build-system)
5547 (arguments
5548 `(#:parallel-build? #f ; not supported
5549 #:tests? #f ; no "check" target
5550 #:make-flags
5551 (list (string-append "DEFAULT_CRT="
5552 (assoc-ref %build-inputs "ncbi-vdb")
5553 "/kfg/certs.kfg")
5554 (string-append "DEFAULT_KFG="
5555 (assoc-ref %build-inputs "ncbi-vdb")
5556 "/kfg/default.kfg")
5557 (string-append "VDB_LIBDIR="
5558 (assoc-ref %build-inputs "ncbi-vdb")
5559 ,(if (string-prefix? "x86_64"
5560 (or (%current-target-system)
5561 (%current-system)))
5562 "/lib64"
5563 "/lib32")))
5564 #:phases
5565 (modify-phases %standard-phases
5566 (add-before 'configure 'set-perl-search-path
5567 (lambda _
5568 ;; Work around "dotless @INC" build failure.
5569 (setenv "PERL5LIB"
5570 (string-append (getcwd) "/setup:"
5571 (getenv "PERL5LIB")))
5572 #t))
5573 (replace 'configure
5574 (lambda* (#:key inputs outputs #:allow-other-keys)
5575 ;; The build system expects a directory containing the sources and
5576 ;; raw build output of ncbi-vdb, including files that are not
5577 ;; installed. Since we are building against an installed version of
5578 ;; ncbi-vdb, the following modifications are needed.
5579 (substitute* "setup/konfigure.perl"
5580 ;; Make the configure script look for the "ilib" directory of
5581 ;; "ncbi-vdb" without first checking for the existence of a
5582 ;; matching library in its "lib" directory.
5583 (("^ my \\$f = File::Spec->catdir\\(\\$libdir, \\$lib\\);")
5584 "my $f = File::Spec->catdir($ilibdir, $ilib);")
5585 ;; Look for interface libraries in ncbi-vdb's "ilib" directory.
5586 (("my \\$ilibdir = File::Spec->catdir\\(\\$builddir, 'ilib'\\);")
5587 "my $ilibdir = File::Spec->catdir($dir, 'ilib');"))
5588
5589 ;; Dynamic linking
5590 (substitute* "tools/copycat/Makefile"
5591 (("smagic-static") "lmagic"))
5592
5593 ;; The 'configure' script doesn't recognize things like
5594 ;; '--enable-fast-install'.
5595 (zero? (system*
5596 "./configure"
5597 (string-append "--build-prefix=" (getcwd) "/build")
5598 (string-append "--prefix=" (assoc-ref outputs "out"))
5599 (string-append "--debug")
5600 (string-append "--with-fuse-prefix="
5601 (assoc-ref inputs "fuse"))
5602 (string-append "--with-magic-prefix="
5603 (assoc-ref inputs "libmagic"))
5604 ;; TODO: building with libxml2 fails with linker errors
5605 ;; (string-append "--with-xml2-prefix="
5606 ;; (assoc-ref inputs "libxml2"))
5607 (string-append "--with-ncbi-vdb-sources="
5608 (assoc-ref inputs "ncbi-vdb"))
5609 (string-append "--with-ncbi-vdb-build="
5610 (assoc-ref inputs "ncbi-vdb"))
5611 (string-append "--with-ngs-sdk-prefix="
5612 (assoc-ref inputs "ngs-sdk"))
5613 (string-append "--with-hdf5-prefix="
5614 (assoc-ref inputs "hdf5"))))))
5615 ;; This version of sra-tools fails to build with glibc because of a
5616 ;; naming conflict. glibc-2.25/include/bits/mathcalls.h already
5617 ;; contains a definition of "canonicalize", so we rename it.
5618 ;;
5619 ;; See upstream bug report:
5620 ;; https://github.com/ncbi/sra-tools/issues/67
5621 (add-after 'unpack 'patch-away-glibc-conflict
5622 (lambda _
5623 (substitute* "tools/bam-loader/bam.c"
5624 (("canonicalize\\(" line)
5625 (string-append "sra_tools_" line)))
5626 #t)))))
5627 (native-inputs `(("perl" ,perl)))
5628 (inputs
5629 `(("ngs-sdk" ,ngs-sdk)
5630 ("ncbi-vdb" ,ncbi-vdb)
5631 ("libmagic" ,file)
5632 ("fuse" ,fuse)
5633 ("hdf5" ,hdf5)
5634 ("zlib" ,zlib)))
5635 (home-page "http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software")
5636 (synopsis "Tools and libraries for reading and writing sequencing data")
5637 (description
5638 "The SRA Toolkit from NCBI is a collection of tools and libraries for
5639 reading of sequencing files from the Sequence Read Archive (SRA) database and
5640 writing files into the .sra format.")
5641 (license license:public-domain)))
5642
5643 (define-public seqan
5644 (package
5645 (name "seqan")
5646 (version "1.4.2")
5647 (source (origin
5648 (method url-fetch)
5649 (uri (string-append "http://packages.seqan.de/seqan-library/"
5650 "seqan-library-" version ".tar.bz2"))
5651 (sha256
5652 (base32
5653 "05s3wrrwn50f81aklfm65i4a749zag1vr8z03k21xm0pdxy47yvp"))))
5654 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
5655 ;; makes sense to split the outputs.
5656 (outputs '("out" "doc"))
5657 (build-system trivial-build-system)
5658 (arguments
5659 `(#:modules ((guix build utils))
5660 #:builder
5661 (begin
5662 (use-modules (guix build utils))
5663 (let ((tar (assoc-ref %build-inputs "tar"))
5664 (bzip (assoc-ref %build-inputs "bzip2"))
5665 (out (assoc-ref %outputs "out"))
5666 (doc (assoc-ref %outputs "doc")))
5667 (setenv "PATH" (string-append tar "/bin:" bzip "/bin"))
5668 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
5669 (chdir (string-append "seqan-library-" ,version))
5670 (copy-recursively "include" (string-append out "/include"))
5671 (copy-recursively "share" (string-append doc "/share"))
5672 #t))))
5673 (native-inputs
5674 `(("source" ,source)
5675 ("tar" ,tar)
5676 ("bzip2" ,bzip2)))
5677 (home-page "http://www.seqan.de")
5678 (synopsis "Library for nucleotide sequence analysis")
5679 (description
5680 "SeqAn is a C++ library of efficient algorithms and data structures for
5681 the analysis of sequences with the focus on biological data. It contains
5682 algorithms and data structures for string representation and their
5683 manipulation, online and indexed string search, efficient I/O of
5684 bioinformatics file formats, sequence alignment, and more.")
5685 (license license:bsd-3)))
5686
5687 (define-public seqmagick
5688 (package
5689 (name "seqmagick")
5690 (version "0.7.0")
5691 (source
5692 (origin
5693 (method url-fetch)
5694 (uri (pypi-uri "seqmagick" version))
5695 (sha256
5696 (base32
5697 "12bfyp8nqi0hd36rmj450aygafp01qy3hkbvlwn3bk39pyjjkgg5"))))
5698 (build-system python-build-system)
5699 (inputs
5700 `(("python-biopython" ,python-biopython)))
5701 (native-inputs
5702 `(("python-nose" ,python-nose)))
5703 (home-page "https://github.com/fhcrc/seqmagick")
5704 (synopsis "Tools for converting and modifying sequence files")
5705 (description
5706 "Bioinformaticians often have to convert sequence files between formats
5707 and do little manipulations on them, and it's not worth writing scripts for
5708 that. Seqmagick is a utility to expose the file format conversion in
5709 BioPython in a convenient way. Instead of having a big mess of scripts, there
5710 is one that takes arguments.")
5711 (license license:gpl3)))
5712
5713 (define-public seqtk
5714 (package
5715 (name "seqtk")
5716 (version "1.2")
5717 (source (origin
5718 (method url-fetch)
5719 (uri (string-append
5720 "https://github.com/lh3/seqtk/archive/v"
5721 version ".tar.gz"))
5722 (file-name (string-append name "-" version ".tar.gz"))
5723 (sha256
5724 (base32
5725 "0ywdyzpmfiz2wp6ampbzqg4y8bj450nfgqarpamg045b8mk32lxx"))
5726 (modules '((guix build utils)))
5727 (snippet
5728 '(begin
5729 ;; Remove extraneous header files, as is done in the seqtk
5730 ;; master branch.
5731 (for-each (lambda (file) (delete-file file))
5732 (list "ksort.h" "kstring.h" "kvec.h"))
5733 #t))))
5734 (build-system gnu-build-system)
5735 (arguments
5736 `(#:phases
5737 (modify-phases %standard-phases
5738 (delete 'configure)
5739 (replace 'check
5740 ;; There are no tests, so we just run a sanity check.
5741 (lambda _ (zero? (system* "./seqtk" "seq"))))
5742 (replace 'install
5743 (lambda* (#:key outputs #:allow-other-keys)
5744 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5745 (install-file "seqtk" bin)))))))
5746 (inputs
5747 `(("zlib" ,zlib)))
5748 (home-page "https://github.com/lh3/seqtk")
5749 (synopsis "Toolkit for processing biological sequences in FASTA/Q format")
5750 (description
5751 "Seqtk is a fast and lightweight tool for processing sequences in the
5752 FASTA or FASTQ format. It parses both FASTA and FASTQ files which can be
5753 optionally compressed by gzip.")
5754 (license license:expat)))
5755
5756 (define-public snap-aligner
5757 (package
5758 (name "snap-aligner")
5759 (version "1.0beta.18")
5760 (source (origin
5761 (method url-fetch)
5762 (uri (string-append
5763 "https://github.com/amplab/snap/archive/v"
5764 version ".tar.gz"))
5765 (file-name (string-append name "-" version ".tar.gz"))
5766 (sha256
5767 (base32
5768 "1vnsjwv007k1fl1q7d681kbwn6bc66cgw6h16hym6gvyy71qv2ly"))))
5769 (build-system gnu-build-system)
5770 (arguments
5771 '(#:phases
5772 (modify-phases %standard-phases
5773 (delete 'configure)
5774 (replace 'check (lambda _ (zero? (system* "./unit_tests"))))
5775 (replace 'install
5776 (lambda* (#:key outputs #:allow-other-keys)
5777 (let* ((out (assoc-ref outputs "out"))
5778 (bin (string-append out "/bin")))
5779 (install-file "snap-aligner" bin)
5780 (install-file "SNAPCommand" bin)
5781 #t))))))
5782 (native-inputs
5783 `(("zlib" ,zlib)))
5784 (home-page "http://snap.cs.berkeley.edu/")
5785 (synopsis "Short read DNA sequence aligner")
5786 (description
5787 "SNAP is a fast and accurate aligner for short DNA reads. It is
5788 optimized for modern read lengths of 100 bases or higher, and takes advantage
5789 of these reads to align data quickly through a hash-based indexing scheme.")
5790 ;; 32-bit systems are not supported by the unpatched code.
5791 ;; Following the bug reports https://github.com/amplab/snap/issues/68 and
5792 ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812378 we see that
5793 ;; systems without a lot of memory cannot make good use of this program.
5794 (supported-systems '("x86_64-linux"))
5795 (license license:asl2.0)))
5796
5797 (define-public sortmerna
5798 (package
5799 (name "sortmerna")
5800 (version "2.1b")
5801 (source
5802 (origin
5803 (method url-fetch)
5804 (uri (string-append
5805 "https://github.com/biocore/sortmerna/archive/"
5806 version ".tar.gz"))
5807 (file-name (string-append name "-" version ".tar.gz"))
5808 (sha256
5809 (base32
5810 "1ghaghvd82af9j5adavxh77g7hm247d1r69m3fbi6f1jdivj5ldk"))))
5811 (build-system gnu-build-system)
5812 (outputs '("out" ;for binaries
5813 "db")) ;for sequence databases
5814 (arguments
5815 `(#:phases
5816 (modify-phases %standard-phases
5817 (replace 'install
5818 (lambda* (#:key outputs #:allow-other-keys)
5819 (let* ((out (assoc-ref outputs "out"))
5820 (bin (string-append out "/bin"))
5821 (db (assoc-ref outputs "db"))
5822 (share
5823 (string-append db "/share/sortmerna/rRNA_databases")))
5824 (install-file "sortmerna" bin)
5825 (install-file "indexdb_rna" bin)
5826 (for-each (lambda (file)
5827 (install-file file share))
5828 (find-files "rRNA_databases" ".*fasta"))
5829 #t))))))
5830 (inputs
5831 `(("zlib" ,zlib)))
5832 (home-page "http://bioinfo.lifl.fr/RNA/sortmerna")
5833 (synopsis "Biological sequence analysis tool for NGS reads")
5834 (description
5835 "SortMeRNA is a biological sequence analysis tool for filtering, mapping
5836 and operational taxonomic unit (OTU) picking of next generation
5837 sequencing (NGS) reads. The core algorithm is based on approximate seeds and
5838 allows for fast and sensitive analyses of nucleotide sequences. The main
5839 application of SortMeRNA is filtering rRNA from metatranscriptomic data.")
5840 ;; The source includes x86 specific code
5841 (supported-systems '("x86_64-linux" "i686-linux"))
5842 (license license:lgpl3)))
5843
5844 (define-public star
5845 (package
5846 (name "star")
5847 (version "2.6.0c")
5848 (source (origin
5849 (method git-fetch)
5850 (uri (git-reference
5851 (url "https://github.com/alexdobin/STAR.git")
5852 (commit version)))
5853 (file-name (string-append name "-" version "-checkout"))
5854 (sha256
5855 (base32
5856 "04cj6jw8d9q6lk9c78wa4fky6jdlicf1d13plq7182h8vqiz8p59"))
5857 (modules '((guix build utils)))
5858 (snippet
5859 '(begin
5860 (substitute* "source/Makefile"
5861 (("/bin/rm") "rm"))
5862 ;; Remove pre-built binaries and bundled htslib sources.
5863 (delete-file-recursively "bin/MacOSX_x86_64")
5864 (delete-file-recursively "bin/Linux_x86_64")
5865 (delete-file-recursively "bin/Linux_x86_64_static")
5866 (delete-file-recursively "source/htslib")
5867 #t))))
5868 (build-system gnu-build-system)
5869 (arguments
5870 '(#:tests? #f ;no check target
5871 #:make-flags '("STAR")
5872 #:phases
5873 (modify-phases %standard-phases
5874 (add-after 'unpack 'enter-source-dir
5875 (lambda _ (chdir "source") #t))
5876 (add-after 'enter-source-dir 'make-reproducible
5877 (lambda _
5878 (substitute* "Makefile"
5879 (("(COMPILATION_TIME_PLACE=\")(.*)(\")" _ pre mid post)
5880 (string-append pre "Built with Guix" post)))))
5881 (add-after 'enter-source-dir 'do-not-use-bundled-htslib
5882 (lambda _
5883 (substitute* "Makefile"
5884 (("(Depend.list: \\$\\(SOURCES\\) parametersDefault\\.xxd) htslib"
5885 _ prefix) prefix))
5886 (substitute* '("BAMfunctions.cpp"
5887 "signalFromBAM.h"
5888 "bam_cat.h"
5889 "bam_cat.c"
5890 "STAR.cpp"
5891 "bamRemoveDuplicates.cpp")
5892 (("#include \"htslib/([^\"]+\\.h)\"" _ header)
5893 (string-append "#include <" header ">")))
5894 (substitute* "IncludeDefine.h"
5895 (("\"htslib/(htslib/[^\"]+.h)\"" _ header)
5896 (string-append "<" header ">")))
5897 #t))
5898 (replace 'install
5899 (lambda* (#:key outputs #:allow-other-keys)
5900 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5901 (install-file "STAR" bin))
5902 #t))
5903 (delete 'configure))))
5904 (native-inputs
5905 `(("xxd" ,xxd)))
5906 (inputs
5907 `(("htslib" ,htslib)
5908 ("zlib" ,zlib)))
5909 (home-page "https://github.com/alexdobin/STAR")
5910 (synopsis "Universal RNA-seq aligner")
5911 (description
5912 "The Spliced Transcripts Alignment to a Reference (STAR) software is
5913 based on a previously undescribed RNA-seq alignment algorithm that uses
5914 sequential maximum mappable seed search in uncompressed suffix arrays followed
5915 by seed clustering and stitching procedure. In addition to unbiased de novo
5916 detection of canonical junctions, STAR can discover non-canonical splices and
5917 chimeric (fusion) transcripts, and is also capable of mapping full-length RNA
5918 sequences.")
5919 ;; Only 64-bit systems are supported according to the README.
5920 (supported-systems '("x86_64-linux" "mips64el-linux"))
5921 ;; STAR is licensed under GPLv3 or later; htslib is MIT-licensed.
5922 (license license:gpl3+)))
5923
5924 (define-public subread
5925 (package
5926 (name "subread")
5927 (version "1.6.0")
5928 (source (origin
5929 (method url-fetch)
5930 (uri (string-append "mirror://sourceforge/subread/subread-"
5931 version "/subread-" version "-source.tar.gz"))
5932 (sha256
5933 (base32
5934 "0ah0n4jx6ksk2m2j7xk385x2qzmk1y4rfc6a4mfrdqrlq721w99i"))))
5935 (build-system gnu-build-system)
5936 (arguments
5937 `(#:tests? #f ;no "check" target
5938 ;; The CC and CCFLAGS variables are set to contain a lot of x86_64
5939 ;; optimizations by default, so we override these flags such that x86_64
5940 ;; flags are only added when the build target is an x86_64 system.
5941 #:make-flags
5942 (list (let ((system ,(or (%current-target-system)
5943 (%current-system)))
5944 (flags '("-ggdb" "-fomit-frame-pointer"
5945 "-ffast-math" "-funroll-loops"
5946 "-fmessage-length=0"
5947 "-O9" "-Wall" "-DMAKE_FOR_EXON"
5948 "-DMAKE_STANDALONE"
5949 "-DSUBREAD_VERSION=\\\"${SUBREAD_VERSION}\\\""))
5950 (flags64 '("-mmmx" "-msse" "-msse2" "-msse3")))
5951 (if (string-prefix? "x86_64" system)
5952 (string-append "CCFLAGS=" (string-join (append flags flags64)))
5953 (string-append "CCFLAGS=" (string-join flags))))
5954 "-f" "Makefile.Linux"
5955 "CC=gcc ${CCFLAGS}")
5956 #:phases
5957 (modify-phases %standard-phases
5958 (add-after 'unpack 'enter-dir
5959 (lambda _ (chdir "src") #t))
5960 (replace 'install
5961 (lambda* (#:key outputs #:allow-other-keys)
5962 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5963 (mkdir-p bin)
5964 (copy-recursively "../bin" bin))))
5965 ;; no "configure" script
5966 (delete 'configure))))
5967 (inputs `(("zlib" ,zlib)))
5968 (home-page "http://bioinf.wehi.edu.au/subread-package/")
5969 (synopsis "Tool kit for processing next-gen sequencing data")
5970 (description
5971 "The subread package contains the following tools: subread aligner, a
5972 general-purpose read aligner; subjunc aligner: detecting exon-exon junctions
5973 and mapping RNA-seq reads; featureCounts: counting mapped reads for genomic
5974 features; exactSNP: a SNP caller that discovers SNPs by testing signals
5975 against local background noises.")
5976 (license license:gpl3+)))
5977
5978 (define-public stringtie
5979 (package
5980 (name "stringtie")
5981 (version "1.2.1")
5982 (source (origin
5983 (method url-fetch)
5984 (uri (string-append "http://ccb.jhu.edu/software/stringtie/dl/"
5985 "stringtie-" version ".tar.gz"))
5986 (sha256
5987 (base32
5988 "1cqllsc1maq4kh92isi8yadgzbmnf042hlnalpk3y59aph1z3bfz"))
5989 (modules '((guix build utils)))
5990 (snippet
5991 '(begin
5992 (delete-file-recursively "samtools-0.1.18")
5993 #t))))
5994 (build-system gnu-build-system)
5995 (arguments
5996 `(#:tests? #f ;no test suite
5997 #:phases
5998 (modify-phases %standard-phases
5999 ;; no configure script
6000 (delete 'configure)
6001 (add-before 'build 'use-system-samtools
6002 (lambda _
6003 (substitute* "Makefile"
6004 (("stringtie: \\$\\{BAM\\}/libbam\\.a")
6005 "stringtie: "))
6006 (substitute* '("gclib/GBam.h"
6007 "gclib/GBam.cpp")
6008 (("#include \"(bam|sam|kstring).h\"" _ header)
6009 (string-append "#include <samtools/" header ".h>")))
6010 #t))
6011 (add-after 'unpack 'remove-duplicate-typedef
6012 (lambda _
6013 ;; This typedef conflicts with the typedef in
6014 ;; glibc-2.25/include/bits/types.h
6015 (substitute* "gclib/GThreads.h"
6016 (("typedef long long __intmax_t;") ""))
6017 #t))
6018 (replace 'install
6019 (lambda* (#:key outputs #:allow-other-keys)
6020 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6021 (install-file "stringtie" bin)
6022 #t))))))
6023 (inputs
6024 `(("samtools" ,samtools-0.1)
6025 ("zlib" ,zlib)))
6026 (home-page "http://ccb.jhu.edu/software/stringtie/")
6027 (synopsis "Transcript assembly and quantification for RNA-Seq data")
6028 (description
6029 "StringTie is a fast and efficient assembler of RNA-Seq sequence
6030 alignments into potential transcripts. It uses a novel network flow algorithm
6031 as well as an optional de novo assembly step to assemble and quantitate
6032 full-length transcripts representing multiple splice variants for each gene
6033 locus. Its input can include not only the alignments of raw reads used by
6034 other transcript assemblers, but also alignments of longer sequences that have
6035 been assembled from those reads. To identify differentially expressed genes
6036 between experiments, StringTie's output can be processed either by the
6037 Cuffdiff or Ballgown programs.")
6038 (license license:artistic2.0)))
6039
6040 (define-public taxtastic
6041 (package
6042 (name "taxtastic")
6043 (version "0.8.5")
6044 (source (origin
6045 (method url-fetch)
6046 (uri (pypi-uri "taxtastic" version))
6047 (sha256
6048 (base32
6049 "03pysw79lsrvz4lwzis88j15067ffqbi4cid5pqhrlxmd6bh8rrk"))))
6050 (build-system python-build-system)
6051 (arguments
6052 `(#:python ,python-2
6053 #:phases
6054 (modify-phases %standard-phases
6055 (replace 'check
6056 (lambda _
6057 (zero? (system* "python" "-m" "unittest" "discover" "-v")))))))
6058 (propagated-inputs
6059 `(("python-sqlalchemy" ,python2-sqlalchemy)
6060 ("python-decorator" ,python2-decorator)
6061 ("python-biopython" ,python2-biopython)
6062 ("python-pandas" ,python2-pandas)
6063 ("python-psycopg2" ,python2-psycopg2)
6064 ("python-fastalite" ,python2-fastalite)
6065 ("python-pyyaml" ,python2-pyyaml)
6066 ("python-six" ,python2-six)
6067 ("python-jinja2" ,python2-jinja2)
6068 ("python-dendropy" ,python2-dendropy)))
6069 (home-page "https://github.com/fhcrc/taxtastic")
6070 (synopsis "Tools for taxonomic naming and annotation")
6071 (description
6072 "Taxtastic is software written in python used to build and maintain
6073 reference packages i.e. collections of reference trees, reference alignments,
6074 profiles, and associated taxonomic information.")
6075 (license license:gpl3+)))
6076
6077 (define-public vcftools
6078 (package
6079 (name "vcftools")
6080 (version "0.1.15")
6081 (source (origin
6082 (method url-fetch)
6083 (uri (string-append
6084 "https://github.com/vcftools/vcftools/releases/download/v"
6085 version "/vcftools-" version ".tar.gz"))
6086 (sha256
6087 (base32
6088 "1qw30c45wihgy632rbz4rh3njnwj4msj46l1rsgdhyg6bgypmr1i"))))
6089 (build-system gnu-build-system)
6090 (arguments
6091 `(#:tests? #f ; no "check" target
6092 #:make-flags (list
6093 "CFLAGS=-O2" ; override "-m64" flag
6094 (string-append "PREFIX=" (assoc-ref %outputs "out"))
6095 (string-append "MANDIR=" (assoc-ref %outputs "out")
6096 "/share/man/man1"))))
6097 (native-inputs
6098 `(("pkg-config" ,pkg-config)))
6099 (inputs
6100 `(("perl" ,perl)
6101 ("zlib" ,zlib)))
6102 (home-page "https://vcftools.github.io/")
6103 (synopsis "Tools for working with VCF files")
6104 (description
6105 "VCFtools is a program package designed for working with VCF files, such
6106 as those generated by the 1000 Genomes Project. The aim of VCFtools is to
6107 provide easily accessible methods for working with complex genetic variation
6108 data in the form of VCF files.")
6109 ;; The license is declared as LGPLv3 in the README and
6110 ;; at https://vcftools.github.io/license.html
6111 (license license:lgpl3)))
6112
6113 (define-public infernal
6114 (package
6115 (name "infernal")
6116 (version "1.1.2")
6117 (source (origin
6118 (method url-fetch)
6119 (uri (string-append "http://eddylab.org/software/infernal/"
6120 "infernal-" version ".tar.gz"))
6121 (sha256
6122 (base32
6123 "0sr2hiz3qxfwqpz3whxr6n82p3x27336v3f34iqznp10hks2935c"))))
6124 (build-system gnu-build-system)
6125 (native-inputs
6126 `(("perl" ,perl))) ; for tests
6127 (home-page "http://eddylab.org/infernal/")
6128 (synopsis "Inference of RNA alignments")
6129 (description "Infernal (\"INFERence of RNA ALignment\") is a tool for
6130 searching DNA sequence databases for RNA structure and sequence similarities.
6131 It is an implementation of a special case of profile stochastic context-free
6132 grammars called @dfn{covariance models} (CMs). A CM is like a sequence
6133 profile, but it scores a combination of sequence consensus and RNA secondary
6134 structure consensus, so in many cases, it is more capable of identifying RNA
6135 homologs that conserve their secondary structure more than their primary
6136 sequence.")
6137 ;; Infernal 1.1.2 requires VMX or SSE capability for parallel instructions.
6138 (supported-systems '("i686-linux" "x86_64-linux"))
6139 (license license:bsd-3)))
6140
6141 (define-public r-centipede
6142 (package
6143 (name "r-centipede")
6144 (version "1.2")
6145 (source (origin
6146 (method url-fetch)
6147 (uri (string-append "http://download.r-forge.r-project.org/"
6148 "src/contrib/CENTIPEDE_" version ".tar.gz"))
6149 (sha256
6150 (base32
6151 "1hsx6qgwr0i67fhy9257zj7s0ppncph2hjgbia5nn6nfmj0ax6l9"))))
6152 (build-system r-build-system)
6153 (home-page "http://centipede.uchicago.edu/")
6154 (synopsis "Predict transcription factor binding sites")
6155 (description
6156 "CENTIPEDE applies a hierarchical Bayesian mixture model to infer regions
6157 of the genome that are bound by particular transcription factors. It starts
6158 by identifying a set of candidate binding sites, and then aims to classify the
6159 sites according to whether each site is bound or not bound by a transcription
6160 factor. CENTIPEDE is an unsupervised learning algorithm that discriminates
6161 between two different types of motif instances using as much relevant
6162 information as possible.")
6163 (license (list license:gpl2+ license:gpl3+))))
6164
6165 (define-public r-vegan
6166 (package
6167 (name "r-vegan")
6168 (version "2.5-2")
6169 (source
6170 (origin
6171 (method url-fetch)
6172 (uri (cran-uri "vegan" version))
6173 (sha256
6174 (base32
6175 "13pyqvlpz64qibi8k5d109v7q09j06mbv6ndix3n4cn21mjx391c"))))
6176 (build-system r-build-system)
6177 (native-inputs
6178 `(("gfortran" ,gfortran)))
6179 (propagated-inputs
6180 `(("r-cluster" ,r-cluster)
6181 ("r-knitr" ,r-knitr) ; needed for vignettes
6182 ("r-lattice" ,r-lattice)
6183 ("r-mass" ,r-mass)
6184 ("r-mgcv" ,r-mgcv)
6185 ("r-permute" ,r-permute)))
6186 (home-page "https://cran.r-project.org/web/packages/vegan")
6187 (synopsis "Functions for community ecology")
6188 (description
6189 "The vegan package provides tools for descriptive community ecology. It
6190 has most basic functions of diversity analysis, community ordination and
6191 dissimilarity analysis. Most of its multivariate tools can be used for other
6192 data types as well.")
6193 (license license:gpl2+)))
6194
6195 (define-public r-annotate
6196 (package
6197 (name "r-annotate")
6198 (version "1.58.0")
6199 (source
6200 (origin
6201 (method url-fetch)
6202 (uri (bioconductor-uri "annotate" version))
6203 (sha256
6204 (base32
6205 "1qmncyvy147a1ll3iri45p822kcs3s7583jfnq9jf6sz9ilk8cjf"))))
6206 (build-system r-build-system)
6207 (propagated-inputs
6208 `(("r-annotationdbi" ,r-annotationdbi)
6209 ("r-biobase" ,r-biobase)
6210 ("r-biocgenerics" ,r-biocgenerics)
6211 ("r-dbi" ,r-dbi)
6212 ("r-rcurl" ,r-rcurl)
6213 ("r-xml" ,r-xml)
6214 ("r-xtable" ,r-xtable)))
6215 (home-page
6216 "https://bioconductor.org/packages/annotate")
6217 (synopsis "Annotation for microarrays")
6218 (description "This package provides R environments for the annotation of
6219 microarrays.")
6220 (license license:artistic2.0)))
6221
6222 (define-public r-copynumber
6223 (package
6224 (name "r-copynumber")
6225 (version "1.20.0")
6226 (source (origin
6227 (method url-fetch)
6228 (uri (bioconductor-uri "copynumber" version))
6229 (sha256
6230 (base32
6231 "0y9nnwb0psphp3ix88wj2f8z5gr45r5znf55w892ysm27isdpmms"))))
6232 (build-system r-build-system)
6233 (propagated-inputs
6234 `(("r-s4vectors" ,r-s4vectors)
6235 ("r-iranges" ,r-iranges)
6236 ("r-genomicranges" ,r-genomicranges)
6237 ("r-biocgenerics" ,r-biocgenerics)))
6238 (home-page "https://bioconductor.org/packages/copynumber")
6239 (synopsis "Segmentation of single- and multi-track copy number data")
6240 (description
6241 "This package segments single- and multi-track copy number data by a
6242 penalized least squares regression method.")
6243 (license license:artistic2.0)))
6244
6245 (define-public r-geneplotter
6246 (package
6247 (name "r-geneplotter")
6248 (version "1.58.0")
6249 (source
6250 (origin
6251 (method url-fetch)
6252 (uri (bioconductor-uri "geneplotter" version))
6253 (sha256
6254 (base32
6255 "055g28xgiazl4l0gkg8xiamks64f5yckjjyvw1abd6d6qjavwx0g"))))
6256 (build-system r-build-system)
6257 (propagated-inputs
6258 `(("r-annotate" ,r-annotate)
6259 ("r-annotationdbi" ,r-annotationdbi)
6260 ("r-biobase" ,r-biobase)
6261 ("r-biocgenerics" ,r-biocgenerics)
6262 ("r-lattice" ,r-lattice)
6263 ("r-rcolorbrewer" ,r-rcolorbrewer)))
6264 (home-page "https://bioconductor.org/packages/geneplotter")
6265 (synopsis "Graphics functions for genomic data")
6266 (description
6267 "This package provides functions for plotting genomic data.")
6268 (license license:artistic2.0)))
6269
6270 (define-public r-genefilter
6271 (package
6272 (name "r-genefilter")
6273 (version "1.62.0")
6274 (source
6275 (origin
6276 (method url-fetch)
6277 (uri (bioconductor-uri "genefilter" version))
6278 (sha256
6279 (base32
6280 "14l0ff02spmjwxj0m1czhg5vlkgwcfi73cym8m2n9vn6i7bjdaqi"))))
6281 (build-system r-build-system)
6282 (native-inputs
6283 `(("gfortran" ,gfortran)))
6284 (propagated-inputs
6285 `(("r-annotate" ,r-annotate)
6286 ("r-annotationdbi" ,r-annotationdbi)
6287 ("r-biobase" ,r-biobase)
6288 ("r-s4vectors" ,r-s4vectors)
6289 ("r-survival" ,r-survival)))
6290 (home-page "https://bioconductor.org/packages/genefilter")
6291 (synopsis "Filter genes from high-throughput experiments")
6292 (description
6293 "This package provides basic functions for filtering genes from
6294 high-throughput sequencing experiments.")
6295 (license license:artistic2.0)))
6296
6297 (define-public r-deseq2
6298 (package
6299 (name "r-deseq2")
6300 (version "1.20.0")
6301 (source
6302 (origin
6303 (method url-fetch)
6304 (uri (bioconductor-uri "DESeq2" version))
6305 (sha256
6306 (base32
6307 "1wjnfpb41a9mmf9a22bz4zh7r1d4id50vpdc1mn5vfzrz7li9qik"))))
6308 (properties `((upstream-name . "DESeq2")))
6309 (build-system r-build-system)
6310 (propagated-inputs
6311 `(("r-biobase" ,r-biobase)
6312 ("r-biocgenerics" ,r-biocgenerics)
6313 ("r-biocparallel" ,r-biocparallel)
6314 ("r-genefilter" ,r-genefilter)
6315 ("r-geneplotter" ,r-geneplotter)
6316 ("r-genomicranges" ,r-genomicranges)
6317 ("r-ggplot2" ,r-ggplot2)
6318 ("r-hmisc" ,r-hmisc)
6319 ("r-iranges" ,r-iranges)
6320 ("r-locfit" ,r-locfit)
6321 ("r-rcpp" ,r-rcpp)
6322 ("r-rcpparmadillo" ,r-rcpparmadillo)
6323 ("r-s4vectors" ,r-s4vectors)
6324 ("r-summarizedexperiment" ,r-summarizedexperiment)))
6325 (home-page "https://bioconductor.org/packages/DESeq2")
6326 (synopsis "Differential gene expression analysis")
6327 (description
6328 "This package provides functions to estimate variance-mean dependence in
6329 count data from high-throughput nucleotide sequencing assays and test for
6330 differential expression based on a model using the negative binomial
6331 distribution.")
6332 (license license:lgpl3+)))
6333
6334 (define-public r-dexseq
6335 (package
6336 (name "r-dexseq")
6337 (version "1.26.0")
6338 (source
6339 (origin
6340 (method url-fetch)
6341 (uri (bioconductor-uri "DEXSeq" version))
6342 (sha256
6343 (base32
6344 "1mqb3mdxcsi3largsl7k27bvqrgps9ixv806xvmf29pw0xn05sg1"))))
6345 (properties `((upstream-name . "DEXSeq")))
6346 (build-system r-build-system)
6347 (propagated-inputs
6348 `(("r-annotationdbi" ,r-annotationdbi)
6349 ("r-biobase" ,r-biobase)
6350 ("r-biocgenerics" ,r-biocgenerics)
6351 ("r-biocparallel" ,r-biocparallel)
6352 ("r-biomart" ,r-biomart)
6353 ("r-deseq2" ,r-deseq2)
6354 ("r-genefilter" ,r-genefilter)
6355 ("r-geneplotter" ,r-geneplotter)
6356 ("r-genomicranges" ,r-genomicranges)
6357 ("r-hwriter" ,r-hwriter)
6358 ("r-iranges" ,r-iranges)
6359 ("r-rcolorbrewer" ,r-rcolorbrewer)
6360 ("r-rsamtools" ,r-rsamtools)
6361 ("r-s4vectors" ,r-s4vectors)
6362 ("r-statmod" ,r-statmod)
6363 ("r-stringr" ,r-stringr)
6364 ("r-summarizedexperiment" ,r-summarizedexperiment)))
6365 (home-page "https://bioconductor.org/packages/DEXSeq")
6366 (synopsis "Inference of differential exon usage in RNA-Seq")
6367 (description
6368 "This package is focused on finding differential exon usage using RNA-seq
6369 exon counts between samples with different experimental designs. It provides
6370 functions that allows the user to make the necessary statistical tests based
6371 on a model that uses the negative binomial distribution to estimate the
6372 variance between biological replicates and generalized linear models for
6373 testing. The package also provides functions for the visualization and
6374 exploration of the results.")
6375 (license license:gpl3+)))
6376
6377 (define-public r-annotationforge
6378 (package
6379 (name "r-annotationforge")
6380 (version "1.22.0")
6381 (source
6382 (origin
6383 (method url-fetch)
6384 (uri (bioconductor-uri "AnnotationForge" version))
6385 (sha256
6386 (base32
6387 "12ffj7h95adiya5mzyjxazqn1qgr434ajpabfcyhrj5v83s4vk65"))))
6388 (properties
6389 `((upstream-name . "AnnotationForge")))
6390 (build-system r-build-system)
6391 (propagated-inputs
6392 `(("r-annotationdbi" ,r-annotationdbi)
6393 ("r-biobase" ,r-biobase)
6394 ("r-biocgenerics" ,r-biocgenerics)
6395 ("r-dbi" ,r-dbi)
6396 ("r-rcurl" ,r-rcurl)
6397 ("r-rsqlite" ,r-rsqlite)
6398 ("r-s4vectors" ,r-s4vectors)
6399 ("r-xml" ,r-xml)))
6400 (home-page "https://bioconductor.org/packages/AnnotationForge")
6401 (synopsis "Code for building annotation database packages")
6402 (description
6403 "This package provides code for generating Annotation packages and their
6404 databases. Packages produced are intended to be used with AnnotationDbi.")
6405 (license license:artistic2.0)))
6406
6407 (define-public r-rbgl
6408 (package
6409 (name "r-rbgl")
6410 (version "1.56.0")
6411 (source
6412 (origin
6413 (method url-fetch)
6414 (uri (bioconductor-uri "RBGL" version))
6415 (sha256
6416 (base32
6417 "0hj972mmqpyi5fx1rq33kysavdyz4nspi6gcffzi3rv339m0anhf"))))
6418 (properties `((upstream-name . "RBGL")))
6419 (build-system r-build-system)
6420 (propagated-inputs `(("r-graph" ,r-graph)))
6421 (home-page "https://www.bioconductor.org/packages/RBGL")
6422 (synopsis "Interface to the Boost graph library")
6423 (description
6424 "This package provides a fairly extensive and comprehensive interface to
6425 the graph algorithms contained in the Boost library.")
6426 (license license:artistic2.0)))
6427
6428 (define-public r-gseabase
6429 (package
6430 (name "r-gseabase")
6431 (version "1.42.0")
6432 (source
6433 (origin
6434 (method url-fetch)
6435 (uri (bioconductor-uri "GSEABase" version))
6436 (sha256
6437 (base32
6438 "11bv92svik399q677jv96b71i4bq68xxyxn1yijpdik2lq4hgl7a"))))
6439 (properties `((upstream-name . "GSEABase")))
6440 (build-system r-build-system)
6441 (propagated-inputs
6442 `(("r-annotate" ,r-annotate)
6443 ("r-annotationdbi" ,r-annotationdbi)
6444 ("r-biobase" ,r-biobase)
6445 ("r-biocgenerics" ,r-biocgenerics)
6446 ("r-graph" ,r-graph)
6447 ("r-xml" ,r-xml)))
6448 (home-page "https://bioconductor.org/packages/GSEABase")
6449 (synopsis "Gene set enrichment data structures and methods")
6450 (description
6451 "This package provides classes and methods to support @dfn{Gene Set
6452 Enrichment Analysis} (GSEA).")
6453 (license license:artistic2.0)))
6454
6455 (define-public r-category
6456 (package
6457 (name "r-category")
6458 (version "2.46.0")
6459 (source
6460 (origin
6461 (method url-fetch)
6462 (uri (bioconductor-uri "Category" version))
6463 (sha256
6464 (base32
6465 "03wfqa8d1dgwsm327zl2mpkq7dq3mzhq12598qz3ylfhrwplbgx0"))))
6466 (properties `((upstream-name . "Category")))
6467 (build-system r-build-system)
6468 (propagated-inputs
6469 `(("r-annotate" ,r-annotate)
6470 ("r-annotationdbi" ,r-annotationdbi)
6471 ("r-biobase" ,r-biobase)
6472 ("r-biocgenerics" ,r-biocgenerics)
6473 ("r-genefilter" ,r-genefilter)
6474 ("r-graph" ,r-graph)
6475 ("r-gseabase" ,r-gseabase)
6476 ("r-matrix" ,r-matrix)
6477 ("r-rbgl" ,r-rbgl)
6478 ("r-dbi" ,r-dbi)))
6479 (home-page "https://bioconductor.org/packages/Category")
6480 (synopsis "Category analysis")
6481 (description
6482 "This package provides a collection of tools for performing category
6483 analysis.")
6484 (license license:artistic2.0)))
6485
6486 (define-public r-gostats
6487 (package
6488 (name "r-gostats")
6489 (version "2.46.0")
6490 (source
6491 (origin
6492 (method url-fetch)
6493 (uri (bioconductor-uri "GOstats" version))
6494 (sha256
6495 (base32
6496 "1i5mydz5d95w2k28qr9j01hmbnl2id55jq94jvcpcyp1pvinkdq0"))))
6497 (properties `((upstream-name . "GOstats")))
6498 (build-system r-build-system)
6499 (propagated-inputs
6500 `(("r-annotate" ,r-annotate)
6501 ("r-annotationdbi" ,r-annotationdbi)
6502 ("r-annotationforge" ,r-annotationforge)
6503 ("r-biobase" ,r-biobase)
6504 ("r-category" ,r-category)
6505 ("r-go-db" ,r-go-db)
6506 ("r-graph" ,r-graph)
6507 ("r-rgraphviz" ,r-rgraphviz)
6508 ("r-rbgl" ,r-rbgl)))
6509 (home-page "https://bioconductor.org/packages/GOstats")
6510 (synopsis "Tools for manipulating GO and microarrays")
6511 (description
6512 "This package provides a set of tools for interacting with GO and
6513 microarray data. A variety of basic manipulation tools for graphs, hypothesis
6514 testing and other simple calculations.")
6515 (license license:artistic2.0)))
6516
6517 (define-public r-shortread
6518 (package
6519 (name "r-shortread")
6520 (version "1.38.0")
6521 (source
6522 (origin
6523 (method url-fetch)
6524 (uri (bioconductor-uri "ShortRead" version))
6525 (sha256
6526 (base32
6527 "038z3z7qaw5bpgjzy91sjkybsny6jwjjsrnnq4gdqdw9ss1qy1fb"))))
6528 (properties `((upstream-name . "ShortRead")))
6529 (build-system r-build-system)
6530 (inputs
6531 `(("zlib" ,zlib)))
6532 (propagated-inputs
6533 `(("r-biobase" ,r-biobase)
6534 ("r-biocgenerics" ,r-biocgenerics)
6535 ("r-biocparallel" ,r-biocparallel)
6536 ("r-biostrings" ,r-biostrings)
6537 ("r-genomeinfodb" ,r-genomeinfodb)
6538 ("r-genomicalignments" ,r-genomicalignments)
6539 ("r-genomicranges" ,r-genomicranges)
6540 ("r-hwriter" ,r-hwriter)
6541 ("r-iranges" ,r-iranges)
6542 ("r-lattice" ,r-lattice)
6543 ("r-latticeextra" ,r-latticeextra)
6544 ("r-rsamtools" ,r-rsamtools)
6545 ("r-s4vectors" ,r-s4vectors)
6546 ("r-xvector" ,r-xvector)
6547 ("r-zlibbioc" ,r-zlibbioc)))
6548 (home-page "https://bioconductor.org/packages/ShortRead")
6549 (synopsis "FASTQ input and manipulation tools")
6550 (description
6551 "This package implements sampling, iteration, and input of FASTQ files.
6552 It includes functions for filtering and trimming reads, and for generating a
6553 quality assessment report. Data are represented as
6554 @code{DNAStringSet}-derived objects, and easily manipulated for a diversity of
6555 purposes. The package also contains legacy support for early single-end,
6556 ungapped alignment formats.")
6557 (license license:artistic2.0)))
6558
6559 (define-public r-systempiper
6560 (package
6561 (name "r-systempiper")
6562 (version "1.14.0")
6563 (source
6564 (origin
6565 (method url-fetch)
6566 (uri (bioconductor-uri "systemPipeR" version))
6567 (sha256
6568 (base32
6569 "1550pd63mmky0vgkmpni7zf14kqz1741wv63nfaw29kcmhh3m5lm"))))
6570 (properties `((upstream-name . "systemPipeR")))
6571 (build-system r-build-system)
6572 (propagated-inputs
6573 `(("r-annotate" ,r-annotate)
6574 ("r-batchjobs" ,r-batchjobs)
6575 ("r-biocgenerics" ,r-biocgenerics)
6576 ("r-biostrings" ,r-biostrings)
6577 ("r-deseq2" ,r-deseq2)
6578 ("r-edger" ,r-edger)
6579 ("r-genomicfeatures" ,r-genomicfeatures)
6580 ("r-genomicranges" ,r-genomicranges)
6581 ("r-ggplot2" ,r-ggplot2)
6582 ("r-go-db" ,r-go-db)
6583 ("r-gostats" ,r-gostats)
6584 ("r-limma" ,r-limma)
6585 ("r-pheatmap" ,r-pheatmap)
6586 ("r-rjson" ,r-rjson)
6587 ("r-rsamtools" ,r-rsamtools)
6588 ("r-shortread" ,r-shortread)
6589 ("r-summarizedexperiment" ,r-summarizedexperiment)
6590 ("r-variantannotation" ,r-variantannotation)))
6591 (home-page "https://github.com/tgirke/systemPipeR")
6592 (synopsis "Next generation sequencing workflow and reporting environment")
6593 (description
6594 "This R package provides tools for building and running automated
6595 end-to-end analysis workflows for a wide range of @dfn{next generation
6596 sequence} (NGS) applications such as RNA-Seq, ChIP-Seq, VAR-Seq and Ribo-Seq.
6597 Important features include a uniform workflow interface across different NGS
6598 applications, automated report generation, and support for running both R and
6599 command-line software, such as NGS aligners or peak/variant callers, on local
6600 computers or compute clusters. Efficient handling of complex sample sets and
6601 experimental designs is facilitated by a consistently implemented sample
6602 annotation infrastructure.")
6603 (license license:artistic2.0)))
6604
6605 (define-public r-grohmm
6606 (package
6607 (name "r-grohmm")
6608 (version "1.14.0")
6609 (source
6610 (origin
6611 (method url-fetch)
6612 (uri (bioconductor-uri "groHMM" version))
6613 (sha256
6614 (base32
6615 "1kjb14apyly44qdlx2ld6gr69wlazd4mbhs58l35hir12aphgrzp"))))
6616 (properties `((upstream-name . "groHMM")))
6617 (build-system r-build-system)
6618 (propagated-inputs
6619 `(("r-genomeinfodb" ,r-genomeinfodb)
6620 ("r-genomicalignments" ,r-genomicalignments)
6621 ("r-genomicranges" ,r-genomicranges)
6622 ("r-iranges" ,r-iranges)
6623 ("r-mass" ,r-mass)
6624 ("r-rtracklayer" ,r-rtracklayer)
6625 ("r-s4vectors" ,r-s4vectors)))
6626 (home-page "https://github.com/Kraus-Lab/groHMM")
6627 (synopsis "GRO-seq analysis pipeline")
6628 (description
6629 "This package provides a pipeline for the analysis of GRO-seq data.")
6630 (license license:gpl3+)))
6631
6632 (define-public r-txdb-hsapiens-ucsc-hg19-knowngene
6633 (package
6634 (name "r-txdb-hsapiens-ucsc-hg19-knowngene")
6635 (version "3.2.2")
6636 (source (origin
6637 (method url-fetch)
6638 ;; We cannot use bioconductor-uri here because this tarball is
6639 ;; located under "data/annotation/" instead of "bioc/".
6640 (uri (string-append "https://bioconductor.org/packages/"
6641 "release/data/annotation/src/contrib"
6642 "/TxDb.Hsapiens.UCSC.hg19.knownGene_"
6643 version ".tar.gz"))
6644 (sha256
6645 (base32
6646 "1sajhcqqwazgz2lqbik7rd935i7kpnh08zxbp2ra10j72yqy4g86"))))
6647 (properties
6648 `((upstream-name . "TxDb.Hsapiens.UCSC.hg19.knownGene")))
6649 (build-system r-build-system)
6650 ;; As this package provides little more than a very large data file it
6651 ;; doesn't make sense to build substitutes.
6652 (arguments `(#:substitutable? #f))
6653 (propagated-inputs
6654 `(("r-genomicfeatures" ,r-genomicfeatures)))
6655 (home-page
6656 "https://bioconductor.org/packages/TxDb.Hsapiens.UCSC.hg19.knownGene/")
6657 (synopsis "Annotation package for human genome in TxDb format")
6658 (description
6659 "This package provides an annotation database of Homo sapiens genome
6660 data. It is derived from the UCSC hg19 genome and based on the \"knownGene\"
6661 track. The database is exposed as a @code{TxDb} object.")
6662 (license license:artistic2.0)))
6663
6664 (define-public r-sparql
6665 (package
6666 (name "r-sparql")
6667 (version "1.16")
6668 (source (origin
6669 (method url-fetch)
6670 (uri (cran-uri "SPARQL" version))
6671 (sha256
6672 (base32
6673 "0gak1q06yyhdmcxb2n3v0h9gr1vqd0viqji52wpw211qp6r6dcrc"))))
6674 (properties `((upstream-name . "SPARQL")))
6675 (build-system r-build-system)
6676 (propagated-inputs
6677 `(("r-rcurl" ,r-rcurl)
6678 ("r-xml" ,r-xml)))
6679 (home-page "https://cran.r-project.org/web/packages/SPARQL")
6680 (synopsis "SPARQL client for R")
6681 (description "This package provides an interface to use SPARQL to pose
6682 SELECT or UPDATE queries to an end-point.")
6683 ;; The only license indication is found in the DESCRIPTION file,
6684 ;; which states GPL-3. So we cannot assume GPLv3+.
6685 (license license:gpl3)))
6686
6687 (define-public vsearch
6688 (package
6689 (name "vsearch")
6690 (version "2.8.0")
6691 (source
6692 (origin
6693 (method url-fetch)
6694 (uri (string-append
6695 "https://github.com/torognes/vsearch/archive/v"
6696 version ".tar.gz"))
6697 (file-name (string-append name "-" version ".tar.gz"))
6698 (sha256
6699 (base32
6700 "15pbirgzhvflj4pi5n82vybbzjy9mlb0lv5l3qhrmdkfzpbyahw3"))
6701 (patches (search-patches "vsearch-unbundle-cityhash.patch"))
6702 (snippet
6703 '(begin
6704 ;; Remove bundled cityhash sources. The vsearch source is adjusted
6705 ;; for this in the patch.
6706 (delete-file "src/city.h")
6707 (delete-file "src/citycrc.h")
6708 (delete-file "src/city.cc")
6709 #t))))
6710 (build-system gnu-build-system)
6711 (arguments
6712 `(#:phases
6713 (modify-phases %standard-phases
6714 (add-after 'unpack 'autogen
6715 (lambda _ (zero? (system* "autoreconf" "-vif")))))))
6716 (inputs
6717 `(("zlib" ,zlib)
6718 ("bzip2" ,bzip2)
6719 ("cityhash" ,cityhash)))
6720 (native-inputs
6721 `(("autoconf" ,autoconf)
6722 ("automake" ,automake)))
6723 (synopsis "Sequence search tools for metagenomics")
6724 (description
6725 "VSEARCH supports DNA sequence searching, clustering, chimera detection,
6726 dereplication, pairwise alignment, shuffling, subsampling, sorting and
6727 masking. The tool takes advantage of parallelism in the form of SIMD
6728 vectorization as well as multiple threads to perform accurate alignments at
6729 high speed. VSEARCH uses an optimal global aligner (full dynamic programming
6730 Needleman-Wunsch).")
6731 (home-page "https://github.com/torognes/vsearch")
6732 ;; vsearch uses non-portable SSE intrinsics so building fails on other
6733 ;; platforms.
6734 (supported-systems '("x86_64-linux"))
6735 ;; Dual licensed; also includes public domain source.
6736 (license (list license:gpl3 license:bsd-2))))
6737
6738 (define-public pardre
6739 (package
6740 (name "pardre")
6741 ;; The source of 1.1.5 changed in place, so we append "-1" to the version.
6742 (version "1.1.5-1")
6743 (source
6744 (origin
6745 (method url-fetch)
6746 (uri (string-append "mirror://sourceforge/pardre/ParDRe-rel"
6747 "1.1.5" ".tar.gz"))
6748 (sha256
6749 (base32
6750 "17j73nc0viq4f6qj50nrndsrif5d6b71q8fl87m54psiv0ilns2b"))))
6751 (build-system gnu-build-system)
6752 (arguments
6753 `(#:tests? #f ; no tests included
6754 #:phases
6755 (modify-phases %standard-phases
6756 (delete 'configure)
6757 (replace 'install
6758 (lambda* (#:key outputs #:allow-other-keys)
6759 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
6760 (install-file "ParDRe" bin)
6761 #t))))))
6762 (inputs
6763 `(("openmpi" ,openmpi)
6764 ("zlib" ,zlib)))
6765 (synopsis "Parallel tool to remove duplicate DNA reads")
6766 (description
6767 "ParDRe is a parallel tool to remove duplicate genetic sequence reads.
6768 Duplicate reads can be seen as identical or nearly identical sequences with
6769 some mismatches. This tool lets users avoid the analysis of unnecessary
6770 reads, reducing the time of subsequent procedures with the
6771 dataset (e.g. assemblies, mappings, etc.). The tool is implemented with MPI
6772 in order to exploit the parallel capabilities of multicore clusters. It is
6773 faster than multithreaded counterparts (end of 2015) for the same number of
6774 cores and, thanks to the message-passing technology, it can be executed on
6775 clusters.")
6776 (home-page "https://sourceforge.net/projects/pardre/")
6777 (license license:gpl3+)))
6778
6779 (define-public ruby-bio-kseq
6780 (package
6781 (name "ruby-bio-kseq")
6782 (version "0.0.2")
6783 (source
6784 (origin
6785 (method url-fetch)
6786 (uri (rubygems-uri "bio-kseq" version))
6787 (sha256
6788 (base32
6789 "1xyaha46khb5jc6wzkbf7040jagac49jbimn0vcrzid0j8jdikrz"))))
6790 (build-system ruby-build-system)
6791 (arguments
6792 `(#:test-target "spec"))
6793 (native-inputs
6794 `(("bundler" ,bundler)
6795 ("ruby-rspec" ,ruby-rspec)
6796 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6797 (inputs
6798 `(("zlib" ,zlib)))
6799 (synopsis "Ruby bindings for the kseq.h FASTA/Q parser")
6800 (description
6801 "@code{Bio::Kseq} provides ruby bindings to the @code{kseq.h} FASTA and
6802 FASTQ parsing code. It provides a fast iterator over sequences and their
6803 quality scores.")
6804 (home-page "https://github.com/gusevfe/bio-kseq")
6805 (license license:expat)))
6806
6807 (define-public bio-locus
6808 (package
6809 (name "bio-locus")
6810 (version "0.0.7")
6811 (source
6812 (origin
6813 (method url-fetch)
6814 (uri (rubygems-uri "bio-locus" version))
6815 (sha256
6816 (base32
6817 "02vmrxyimkj9sahsp4zhfhnmbvz6dbbqz1y01vglf8cbwvkajfl0"))))
6818 (build-system ruby-build-system)
6819 (native-inputs
6820 `(("ruby-rspec" ,ruby-rspec)))
6821 (synopsis "Tool for fast querying of genome locations")
6822 (description
6823 "Bio-locus is a tabix-like tool for fast querying of genome
6824 locations. Many file formats in bioinformatics contain records that
6825 start with a chromosome name and a position for a SNP, or a start-end
6826 position for indels. Bio-locus allows users to store this chr+pos or
6827 chr+pos+alt information in a database.")
6828 (home-page "https://github.com/pjotrp/bio-locus")
6829 (license license:expat)))
6830
6831 (define-public bio-blastxmlparser
6832 (package
6833 (name "bio-blastxmlparser")
6834 (version "2.0.4")
6835 (source (origin
6836 (method url-fetch)
6837 (uri (rubygems-uri "bio-blastxmlparser" version))
6838 (sha256
6839 (base32
6840 "1wf4qygcmdjgcqm6flmvsagfr1gs9lf63mj32qv3z1f481zc5692"))))
6841 (build-system ruby-build-system)
6842 (propagated-inputs
6843 `(("ruby-bio-logger" ,ruby-bio-logger)
6844 ("ruby-nokogiri" ,ruby-nokogiri)))
6845 (inputs
6846 `(("ruby-rspec" ,ruby-rspec)))
6847 (synopsis "Fast big data BLAST XML parser and library")
6848 (description
6849 "Very fast parallel big-data BLAST XML file parser which can be used as
6850 command line utility. Use blastxmlparser to: Parse BLAST XML; filter output;
6851 generate FASTA, JSON, YAML, RDF, JSON-LD, HTML, CSV, tabular output etc.")
6852 (home-page "https://github.com/pjotrp/blastxmlparser")
6853 (license license:expat)))
6854
6855 (define-public bioruby
6856 (package
6857 (name "bioruby")
6858 (version "1.5.1")
6859 (source
6860 (origin
6861 (method url-fetch)
6862 (uri (rubygems-uri "bio" version))
6863 (sha256
6864 (base32
6865 "0hdl0789c9n4mprnx5pgd46bfwl8d000rqpamj5h6kkjgspijv49"))))
6866 (build-system ruby-build-system)
6867 (propagated-inputs
6868 `(("ruby-libxml" ,ruby-libxml)))
6869 (native-inputs
6870 `(("which" ,which))) ; required for test phase
6871 (arguments
6872 `(#:phases
6873 (modify-phases %standard-phases
6874 (add-before 'build 'patch-test-command
6875 (lambda _
6876 (substitute* '("test/functional/bio/test_command.rb")
6877 (("/bin/sh") (which "sh")))
6878 (substitute* '("test/functional/bio/test_command.rb")
6879 (("/bin/ls") (which "ls")))
6880 (substitute* '("test/functional/bio/test_command.rb")
6881 (("which") (which "which")))
6882 (substitute* '("test/functional/bio/test_command.rb",
6883 "test/data/command/echoarg2.sh")
6884 (("/bin/echo") (which "echo")))
6885 #t)))))
6886 (synopsis "Ruby library, shell and utilities for bioinformatics")
6887 (description "BioRuby comes with a comprehensive set of Ruby development
6888 tools and libraries for bioinformatics and molecular biology. BioRuby has
6889 components for sequence analysis, pathway analysis, protein modelling and
6890 phylogenetic analysis; it supports many widely used data formats and provides
6891 easy access to databases, external programs and public web services, including
6892 BLAST, KEGG, GenBank, MEDLINE and GO.")
6893 (home-page "http://bioruby.org/")
6894 ;; Code is released under Ruby license, except for setup
6895 ;; (LGPLv2.1+) and scripts in samples (which have GPL2 and GPL2+)
6896 (license (list license:ruby license:lgpl2.1+ license:gpl2+ ))))
6897
6898 (define-public r-acsnminer
6899 (package
6900 (name "r-acsnminer")
6901 (version "0.16.8.25")
6902 (source (origin
6903 (method url-fetch)
6904 (uri (cran-uri "ACSNMineR" version))
6905 (sha256
6906 (base32
6907 "0gh604s8qall6zfjlwcg2ilxjvz08dplf9k5g47idhv43scm748l"))))
6908 (properties `((upstream-name . "ACSNMineR")))
6909 (build-system r-build-system)
6910 (propagated-inputs
6911 `(("r-ggplot2" ,r-ggplot2)
6912 ("r-gridextra" ,r-gridextra)))
6913 (home-page "https://cran.r-project.org/web/packages/ACSNMineR")
6914 (synopsis "Gene enrichment analysis")
6915 (description
6916 "This package provides tools to compute and represent gene set enrichment
6917 or depletion from your data based on pre-saved maps from the @dfn{Atlas of
6918 Cancer Signalling Networks} (ACSN) or user imported maps. The gene set
6919 enrichment can be run with hypergeometric test or Fisher exact test, and can
6920 use multiple corrections. Visualization of data can be done either by
6921 barplots or heatmaps.")
6922 (license license:gpl2+)))
6923
6924 (define-public r-biocgenerics
6925 (package
6926 (name "r-biocgenerics")
6927 (version "0.26.0")
6928 (source (origin
6929 (method url-fetch)
6930 (uri (bioconductor-uri "BiocGenerics" version))
6931 (sha256
6932 (base32
6933 "19qxhy2cd3pykkhzbb5q3crgaxf65cpzf2mkfsz16gqhi8flj72p"))))
6934 (properties
6935 `((upstream-name . "BiocGenerics")))
6936 (build-system r-build-system)
6937 (home-page "https://bioconductor.org/packages/BiocGenerics")
6938 (synopsis "S4 generic functions for Bioconductor")
6939 (description
6940 "This package provides S4 generic functions needed by many Bioconductor
6941 packages.")
6942 (license license:artistic2.0)))
6943
6944 (define-public r-biocinstaller
6945 (package
6946 (name "r-biocinstaller")
6947 (version "1.30.0")
6948 (source (origin
6949 (method url-fetch)
6950 (uri (bioconductor-uri "BiocInstaller" version))
6951 (sha256
6952 (base32
6953 "1xg1gi1hf5vflp71ji21gnmr4kcjpx8a6c47cllpc7yqnjv5nfg0"))))
6954 (properties
6955 `((upstream-name . "BiocInstaller")))
6956 (build-system r-build-system)
6957 (home-page "https://bioconductor.org/packages/BiocInstaller")
6958 (synopsis "Install Bioconductor packages")
6959 (description "This package is used to install and update R packages from
6960 Bioconductor, CRAN, and Github.")
6961 (license license:artistic2.0)))
6962
6963 (define-public r-biocviews
6964 (package
6965 (name "r-biocviews")
6966 (version "1.48.2")
6967 (source (origin
6968 (method url-fetch)
6969 (uri (bioconductor-uri "biocViews" version))
6970 (sha256
6971 (base32
6972 "01yiafayl1m5704xdd2cn3zjc78rs10dqyz66lr3qkf6d8w66938"))))
6973 (properties
6974 `((upstream-name . "biocViews")))
6975 (build-system r-build-system)
6976 (propagated-inputs
6977 `(("r-biobase" ,r-biobase)
6978 ("r-graph" ,r-graph)
6979 ("r-rbgl" ,r-rbgl)
6980 ("r-rcurl" ,r-rcurl)
6981 ("r-xml" ,r-xml)
6982 ("r-runit" ,r-runit)))
6983 (home-page "https://bioconductor.org/packages/biocViews")
6984 (synopsis "Bioconductor package categorization helper")
6985 (description "The purpose of biocViews is to create HTML pages that
6986 categorize packages in a Bioconductor package repository according to keywords,
6987 also known as views, in a controlled vocabulary.")
6988 (license license:artistic2.0)))
6989
6990 (define-public r-bookdown
6991 (package
6992 (name "r-bookdown")
6993 (version "0.7")
6994 (source (origin
6995 (method url-fetch)
6996 (uri (cran-uri "bookdown" version))
6997 (sha256
6998 (base32
6999 "1b3fw1f41zph5yw3kynb47aijq53vhaa6mnnvxly72zamyzdf95q"))))
7000 (build-system r-build-system)
7001 (propagated-inputs
7002 `(("r-htmltools" ,r-htmltools)
7003 ("r-knitr" ,r-knitr)
7004 ("r-rmarkdown" ,r-rmarkdown)
7005 ("r-tinytex" ,r-tinytex)
7006 ("r-yaml" ,r-yaml)
7007 ("r-xfun" ,r-xfun)))
7008 (home-page "https://github.com/rstudio/bookdown")
7009 (synopsis "Authoring books and technical documents with R markdown")
7010 (description "This package provides output formats and utilities for
7011 authoring books and technical documents with R Markdown.")
7012 (license license:gpl3)))
7013
7014 (define-public r-biocstyle
7015 (package
7016 (name "r-biocstyle")
7017 (version "2.8.2")
7018 (source (origin
7019 (method url-fetch)
7020 (uri (bioconductor-uri "BiocStyle" version))
7021 (sha256
7022 (base32
7023 "17m901ylz00w1a3nq5f910v55zixm1nr6rb3qrsbhqd94qzr0l2p"))))
7024 (properties
7025 `((upstream-name . "BiocStyle")))
7026 (build-system r-build-system)
7027 (propagated-inputs
7028 `(("r-bookdown" ,r-bookdown)
7029 ("r-knitr" ,r-knitr)
7030 ("r-rmarkdown" ,r-rmarkdown)
7031 ("r-yaml" ,r-yaml)))
7032 (home-page "https://bioconductor.org/packages/BiocStyle")
7033 (synopsis "Bioconductor formatting styles")
7034 (description "This package provides standard formatting styles for
7035 Bioconductor PDF and HTML documents. Package vignettes illustrate use and
7036 functionality.")
7037 (license license:artistic2.0)))
7038
7039 (define-public r-bioccheck
7040 (package
7041 (name "r-bioccheck")
7042 (version "1.16.0")
7043 (source (origin
7044 (method url-fetch)
7045 (uri (bioconductor-uri "BiocCheck" version))
7046 (sha256
7047 (base32
7048 "1srp1g809f1nn0fyqknr7r6dq89bw1xpjvmygr7cw6ffknbc671s"))))
7049 (properties
7050 `((upstream-name . "BiocCheck")))
7051 (build-system r-build-system)
7052 (arguments
7053 '(#:phases
7054 (modify-phases %standard-phases
7055 ;; This package can be used by calling BiocCheck(<package>) from
7056 ;; within R, or by running R CMD BiocCheck <package>. This phase
7057 ;; makes sure the latter works. For this to work, the BiocCheck
7058 ;; script must be somewhere on the PATH (not the R bin directory).
7059 (add-after 'install 'install-bioccheck-subcommand
7060 (lambda* (#:key outputs #:allow-other-keys)
7061 (let* ((out (assoc-ref outputs "out"))
7062 (dest-dir (string-append out "/bin"))
7063 (script-dir
7064 (string-append out "/site-library/BiocCheck/script/")))
7065 (mkdir-p dest-dir)
7066 (symlink (string-append script-dir "/checkBadDeps.R")
7067 (string-append dest-dir "/checkBadDeps.R"))
7068 (symlink (string-append script-dir "/BiocCheck")
7069 (string-append dest-dir "/BiocCheck")))
7070 #t)))))
7071 (propagated-inputs
7072 `(("r-codetools" ,r-codetools)
7073 ("r-graph" ,r-graph)
7074 ("r-httr" ,r-httr)
7075 ("r-optparse" ,r-optparse)
7076 ("r-biocinstaller" ,r-biocinstaller)
7077 ("r-biocviews" ,r-biocviews)
7078 ("r-stringdist" ,r-stringdist)))
7079 (home-page "https://bioconductor.org/packages/BiocCheck")
7080 (synopsis "Executes Bioconductor-specific package checks")
7081 (description "This package contains tools to perform additional quality
7082 checks on R packages that are to be submitted to the Bioconductor repository.")
7083 (license license:artistic2.0)))
7084
7085 (define-public r-optparse
7086 (package
7087 (name "r-optparse")
7088 (version "1.6.0")
7089 (source
7090 (origin
7091 (method url-fetch)
7092 (uri (cran-uri "optparse" version))
7093 (sha256
7094 (base32
7095 "1d7v5gl45x4amsfmzn5zyyffyqlc7a82h01szlnda22viyxids0h"))))
7096 (build-system r-build-system)
7097 (propagated-inputs
7098 `(("r-getopt" ,r-getopt)))
7099 (home-page
7100 "https://github.com/trevorld/optparse")
7101 (synopsis "Command line option parser")
7102 (description
7103 "This package provides a command line parser inspired by Python's
7104 @code{optparse} library to be used with Rscript to write shebang scripts
7105 that accept short and long options.")
7106 (license license:gpl2+)))
7107
7108 (define-public r-dnacopy
7109 (package
7110 (name "r-dnacopy")
7111 (version "1.54.0")
7112 (source (origin
7113 (method url-fetch)
7114 (uri (bioconductor-uri "DNAcopy" version))
7115 (sha256
7116 (base32
7117 "03hfhmmc5y60r2gcgm367w2fr7qj115l74m9bp3h9qpn5yci0d8n"))))
7118 (properties
7119 `((upstream-name . "DNAcopy")))
7120 (build-system r-build-system)
7121 (inputs
7122 `(("gfortran" ,gfortran)))
7123 (home-page "https://bioconductor.org/packages/DNAcopy")
7124 (synopsis "Implementation of a circular binary segmentation algorithm")
7125 (description "This package implements the circular binary segmentation (CBS)
7126 algorithm to segment DNA copy number data and identify genomic regions with
7127 abnormal copy number.")
7128 (license license:gpl2+)))
7129
7130 (define-public r-s4vectors
7131 (package
7132 (name "r-s4vectors")
7133 (version "0.18.3")
7134 (source (origin
7135 (method url-fetch)
7136 (uri (bioconductor-uri "S4Vectors" version))
7137 (sha256
7138 (base32
7139 "02bps2rpjqx2npwxq3x62ncwi9ggr165cwi56h6hld28bw2gddy8"))))
7140 (properties
7141 `((upstream-name . "S4Vectors")))
7142 (build-system r-build-system)
7143 (propagated-inputs
7144 `(("r-biocgenerics" ,r-biocgenerics)))
7145 (home-page "https://bioconductor.org/packages/S4Vectors")
7146 (synopsis "S4 implementation of vectors and lists")
7147 (description
7148 "The S4Vectors package defines the @code{Vector} and @code{List} virtual
7149 classes and a set of generic functions that extend the semantic of ordinary
7150 vectors and lists in R. Package developers can easily implement vector-like
7151 or list-like objects as concrete subclasses of @code{Vector} or @code{List}.
7152 In addition, a few low-level concrete subclasses of general interest (e.g.
7153 @code{DataFrame}, @code{Rle}, and @code{Hits}) are implemented in the
7154 S4Vectors package itself.")
7155 (license license:artistic2.0)))
7156
7157 (define-public r-seqinr
7158 (package
7159 (name "r-seqinr")
7160 (version "3.4-5")
7161 (source
7162 (origin
7163 (method url-fetch)
7164 (uri (cran-uri "seqinr" version))
7165 (sha256
7166 (base32
7167 "17zv0n5cji17izwmwg0jcbxbjl3w5rls91w15svcnlpxjms38ahn"))))
7168 (build-system r-build-system)
7169 (propagated-inputs
7170 `(("r-ade4" ,r-ade4)
7171 ("r-segmented" ,r-segmented)))
7172 (inputs
7173 `(("zlib" ,zlib)))
7174 (home-page "http://seqinr.r-forge.r-project.org/")
7175 (synopsis "Biological sequences retrieval and analysis")
7176 (description
7177 "This package provides tools for exploratory data analysis and data
7178 visualization of biological sequence (DNA and protein) data. It also includes
7179 utilities for sequence data management under the ACNUC system.")
7180 (license license:gpl2+)))
7181
7182 (define-public r-iranges
7183 (package
7184 (name "r-iranges")
7185 (version "2.14.10")
7186 (source (origin
7187 (method url-fetch)
7188 (uri (bioconductor-uri "IRanges" version))
7189 (sha256
7190 (base32
7191 "10ccw930vfmkskkrzbps14xglqlkxf588623dr7f1a9ckx7yr2p6"))))
7192 (properties
7193 `((upstream-name . "IRanges")))
7194 (build-system r-build-system)
7195 (propagated-inputs
7196 `(("r-biocgenerics" ,r-biocgenerics)
7197 ("r-s4vectors" ,r-s4vectors)))
7198 (home-page "https://bioconductor.org/packages/IRanges")
7199 (synopsis "Infrastructure for manipulating intervals on sequences")
7200 (description
7201 "This package provides efficient low-level and highly reusable S4 classes
7202 for storing ranges of integers, RLE vectors (Run-Length Encoding), and, more
7203 generally, data that can be organized sequentially (formally defined as
7204 @code{Vector} objects), as well as views on these @code{Vector} objects.
7205 Efficient list-like classes are also provided for storing big collections of
7206 instances of the basic classes. All classes in the package use consistent
7207 naming and share the same rich and consistent \"Vector API\" as much as
7208 possible.")
7209 (license license:artistic2.0)))
7210
7211 (define-public r-genomeinfodbdata
7212 (package
7213 (name "r-genomeinfodbdata")
7214 (version "0.99.1")
7215 (source (origin
7216 (method url-fetch)
7217 ;; We cannot use bioconductor-uri here because this tarball is
7218 ;; located under "data/annotation/" instead of "bioc/".
7219 (uri (string-append "https://bioconductor.org/packages/release/"
7220 "data/annotation/src/contrib/GenomeInfoDbData_"
7221 version ".tar.gz"))
7222 (sha256
7223 (base32
7224 "0hipipvyvrh75n68hsjg35sxbcfzrghzxv547vnkk2f8ya99g01r"))))
7225 (properties
7226 `((upstream-name . "GenomeInfoDbData")))
7227 (build-system r-build-system)
7228 (home-page "https://bioconductor.org/packages/GenomeInfoDbData")
7229 (synopsis "Species and taxonomy ID look up tables for GenomeInfoDb")
7230 (description "This package contains data for mapping between NCBI taxonomy
7231 ID and species. It is used by functions in the GenomeInfoDb package.")
7232 (license license:artistic2.0)))
7233
7234 (define-public r-genomeinfodb
7235 (package
7236 (name "r-genomeinfodb")
7237 (version "1.16.0")
7238 (source (origin
7239 (method url-fetch)
7240 (uri (bioconductor-uri "GenomeInfoDb" version))
7241 (sha256
7242 (base32
7243 "0yhnqhaydmmq7ihmhj3rbal4afq5p993l2qqrd0n5wmbyg7glg2d"))))
7244 (properties
7245 `((upstream-name . "GenomeInfoDb")))
7246 (build-system r-build-system)
7247 (propagated-inputs
7248 `(("r-biocgenerics" ,r-biocgenerics)
7249 ("r-genomeinfodbdata" ,r-genomeinfodbdata)
7250 ("r-iranges" ,r-iranges)
7251 ("r-rcurl" ,r-rcurl)
7252 ("r-s4vectors" ,r-s4vectors)))
7253 (home-page "https://bioconductor.org/packages/GenomeInfoDb")
7254 (synopsis "Utilities for manipulating chromosome identifiers")
7255 (description
7256 "This package contains data and functions that define and allow
7257 translation between different chromosome sequence naming conventions (e.g.,
7258 \"chr1\" versus \"1\"), including a function that attempts to place sequence
7259 names in their natural, rather than lexicographic, order.")
7260 (license license:artistic2.0)))
7261
7262 (define-public r-edger
7263 (package
7264 (name "r-edger")
7265 (version "3.22.2")
7266 (source (origin
7267 (method url-fetch)
7268 (uri (bioconductor-uri "edgeR" version))
7269 (sha256
7270 (base32
7271 "07py2g6vg9jbflwhc1hnzr2silbinrjwxq3mkq30nzjgf0n0hrf3"))))
7272 (properties `((upstream-name . "edgeR")))
7273 (build-system r-build-system)
7274 (propagated-inputs
7275 `(("r-limma" ,r-limma)
7276 ("r-locfit" ,r-locfit)
7277 ("r-rcpp" ,r-rcpp)
7278 ("r-statmod" ,r-statmod))) ;for estimateDisp
7279 (home-page "http://bioinf.wehi.edu.au/edgeR")
7280 (synopsis "EdgeR does empirical analysis of digital gene expression data")
7281 (description "This package can do differential expression analysis of
7282 RNA-seq expression profiles with biological replication. It implements a range
7283 of statistical methodology based on the negative binomial distributions,
7284 including empirical Bayes estimation, exact tests, generalized linear models
7285 and quasi-likelihood tests. It be applied to differential signal analysis of
7286 other types of genomic data that produce counts, including ChIP-seq, SAGE and
7287 CAGE.")
7288 (license license:gpl2+)))
7289
7290 (define-public r-variantannotation
7291 (package
7292 (name "r-variantannotation")
7293 (version "1.26.0")
7294 (source (origin
7295 (method url-fetch)
7296 (uri (bioconductor-uri "VariantAnnotation" version))
7297 (sha256
7298 (base32
7299 "06bccdf57vja7m63chmgc4539lwng3q3b8zxn285fj8524l6mcn7"))))
7300 (properties
7301 `((upstream-name . "VariantAnnotation")))
7302 (inputs
7303 `(("zlib" ,zlib)))
7304 (propagated-inputs
7305 `(("r-annotationdbi" ,r-annotationdbi)
7306 ("r-biobase" ,r-biobase)
7307 ("r-biocgenerics" ,r-biocgenerics)
7308 ("r-biostrings" ,r-biostrings)
7309 ("r-bsgenome" ,r-bsgenome)
7310 ("r-dbi" ,r-dbi)
7311 ("r-genomeinfodb" ,r-genomeinfodb)
7312 ("r-genomicfeatures" ,r-genomicfeatures)
7313 ("r-genomicranges" ,r-genomicranges)
7314 ("r-iranges" ,r-iranges)
7315 ("r-summarizedexperiment" ,r-summarizedexperiment)
7316 ("r-rsamtools" ,r-rsamtools)
7317 ("r-rtracklayer" ,r-rtracklayer)
7318 ("r-s4vectors" ,r-s4vectors)
7319 ("r-xvector" ,r-xvector)
7320 ("r-zlibbioc" ,r-zlibbioc)))
7321 (build-system r-build-system)
7322 (home-page "https://bioconductor.org/packages/VariantAnnotation")
7323 (synopsis "Package for annotation of genetic variants")
7324 (description "This R package can annotate variants, compute amino acid
7325 coding changes and predict coding outcomes.")
7326 (license license:artistic2.0)))
7327
7328 (define-public r-limma
7329 (package
7330 (name "r-limma")
7331 (version "3.36.1")
7332 (source (origin
7333 (method url-fetch)
7334 (uri (bioconductor-uri "limma" version))
7335 (sha256
7336 (base32
7337 "1982g5v35ilfgxm2vkq1p3j1bbir795pjvfzx4nzam2rlqqymbqm"))))
7338 (build-system r-build-system)
7339 (home-page "http://bioinf.wehi.edu.au/limma")
7340 (synopsis "Package for linear models for microarray and RNA-seq data")
7341 (description "This package can be used for the analysis of gene expression
7342 studies, especially the use of linear models for analysing designed experiments
7343 and the assessment of differential expression. The analysis methods apply to
7344 different technologies, including microarrays, RNA-seq, and quantitative PCR.")
7345 (license license:gpl2+)))
7346
7347 (define-public r-xvector
7348 (package
7349 (name "r-xvector")
7350 (version "0.20.0")
7351 (source (origin
7352 (method url-fetch)
7353 (uri (bioconductor-uri "XVector" version))
7354 (sha256
7355 (base32
7356 "1zjlhh9lsyhg0js1858csyw2389kbrzdqnqnha833wazkwxilp3f"))))
7357 (properties
7358 `((upstream-name . "XVector")))
7359 (build-system r-build-system)
7360 (arguments
7361 `(#:phases
7362 (modify-phases %standard-phases
7363 (add-after 'unpack 'use-system-zlib
7364 (lambda _
7365 (substitute* "DESCRIPTION"
7366 (("zlibbioc, ") ""))
7367 (substitute* "NAMESPACE"
7368 (("import\\(zlibbioc\\)") ""))
7369 #t)))))
7370 (inputs
7371 `(("zlib" ,zlib)))
7372 (propagated-inputs
7373 `(("r-biocgenerics" ,r-biocgenerics)
7374 ("r-iranges" ,r-iranges)
7375 ("r-s4vectors" ,r-s4vectors)))
7376 (home-page "https://bioconductor.org/packages/XVector")
7377 (synopsis "Representation and manpulation of external sequences")
7378 (description
7379 "This package provides memory efficient S4 classes for storing sequences
7380 \"externally\" (behind an R external pointer, or on disk).")
7381 (license license:artistic2.0)))
7382
7383 (define-public r-genomicranges
7384 (package
7385 (name "r-genomicranges")
7386 (version "1.32.3")
7387 (source (origin
7388 (method url-fetch)
7389 (uri (bioconductor-uri "GenomicRanges" version))
7390 (sha256
7391 (base32
7392 "03gmka6rlz18vd4229796l5l3l6446v5cb90sn2nb5knjbp84hni"))))
7393 (properties
7394 `((upstream-name . "GenomicRanges")))
7395 (build-system r-build-system)
7396 (propagated-inputs
7397 `(("r-biocgenerics" ,r-biocgenerics)
7398 ("r-genomeinfodb" ,r-genomeinfodb)
7399 ("r-iranges" ,r-iranges)
7400 ("r-s4vectors" ,r-s4vectors)
7401 ("r-xvector" ,r-xvector)))
7402 (home-page "https://bioconductor.org/packages/GenomicRanges")
7403 (synopsis "Representation and manipulation of genomic intervals")
7404 (description
7405 "This package provides tools to efficiently represent and manipulate
7406 genomic annotations and alignments is playing a central role when it comes to
7407 analyzing high-throughput sequencing data (a.k.a. NGS data). The
7408 GenomicRanges package defines general purpose containers for storing and
7409 manipulating genomic intervals and variables defined along a genome.")
7410 (license license:artistic2.0)))
7411
7412 (define-public r-biobase
7413 (package
7414 (name "r-biobase")
7415 (version "2.40.0")
7416 (source (origin
7417 (method url-fetch)
7418 (uri (bioconductor-uri "Biobase" version))
7419 (sha256
7420 (base32
7421 "1iwds2a5ir29k19dbpynlc7nn836cw2gamchhgpi2jf2xar9m9jz"))))
7422 (properties
7423 `((upstream-name . "Biobase")))
7424 (build-system r-build-system)
7425 (propagated-inputs
7426 `(("r-biocgenerics" ,r-biocgenerics)))
7427 (home-page "https://bioconductor.org/packages/Biobase")
7428 (synopsis "Base functions for Bioconductor")
7429 (description
7430 "This package provides functions that are needed by many other packages
7431 on Bioconductor or which replace R functions.")
7432 (license license:artistic2.0)))
7433
7434 (define-public r-annotationdbi
7435 (package
7436 (name "r-annotationdbi")
7437 (version "1.42.1")
7438 (source (origin
7439 (method url-fetch)
7440 (uri (bioconductor-uri "AnnotationDbi" version))
7441 (sha256
7442 (base32
7443 "0afkbzli08vq02r2pr9phrz3rxd6ilp1w7yw8y99nbjiz14f8b1c"))))
7444 (properties
7445 `((upstream-name . "AnnotationDbi")))
7446 (build-system r-build-system)
7447 (propagated-inputs
7448 `(("r-biobase" ,r-biobase)
7449 ("r-biocgenerics" ,r-biocgenerics)
7450 ("r-dbi" ,r-dbi)
7451 ("r-iranges" ,r-iranges)
7452 ("r-rsqlite" ,r-rsqlite)
7453 ("r-s4vectors" ,r-s4vectors)))
7454 (home-page "https://bioconductor.org/packages/AnnotationDbi")
7455 (synopsis "Annotation database interface")
7456 (description
7457 "This package provides user interface and database connection code for
7458 annotation data packages using SQLite data storage.")
7459 (license license:artistic2.0)))
7460
7461 (define-public r-biomart
7462 (package
7463 (name "r-biomart")
7464 (version "2.36.1")
7465 (source (origin
7466 (method url-fetch)
7467 (uri (bioconductor-uri "biomaRt" version))
7468 (sha256
7469 (base32
7470 "0b70s350ffc74v3xz5c3jpazr9zxdb7gjmjfj7aghlsrizrspill"))))
7471 (properties
7472 `((upstream-name . "biomaRt")))
7473 (build-system r-build-system)
7474 (propagated-inputs
7475 `(("r-annotationdbi" ,r-annotationdbi)
7476 ("r-httr" ,r-httr)
7477 ("r-progress" ,r-progress)
7478 ("r-rcurl" ,r-rcurl)
7479 ("r-stringr" ,r-stringr)
7480 ("r-xml" ,r-xml)))
7481 (home-page "https://bioconductor.org/packages/biomaRt")
7482 (synopsis "Interface to BioMart databases")
7483 (description
7484 "biomaRt provides an interface to a growing collection of databases
7485 implementing the @url{BioMart software suite, http://www.biomart.org}. The
7486 package enables retrieval of large amounts of data in a uniform way without
7487 the need to know the underlying database schemas or write complex SQL queries.
7488 Examples of BioMart databases are Ensembl, COSMIC, Uniprot, HGNC, Gramene,
7489 Wormbase and dbSNP mapped to Ensembl. These major databases give biomaRt
7490 users direct access to a diverse set of data and enable a wide range of
7491 powerful online queries from gene annotation to database mining.")
7492 (license license:artistic2.0)))
7493
7494 (define-public r-biocparallel
7495 (package
7496 (name "r-biocparallel")
7497 (version "1.14.1")
7498 (source (origin
7499 (method url-fetch)
7500 (uri (bioconductor-uri "BiocParallel" version))
7501 (sha256
7502 (base32
7503 "00qg1kg2l9qqpyjaw5q910cmf84vwfiw1fhsx3ig784gwinwgj6n"))))
7504 (properties
7505 `((upstream-name . "BiocParallel")))
7506 (build-system r-build-system)
7507 (propagated-inputs
7508 `(("r-futile-logger" ,r-futile-logger)
7509 ("r-snow" ,r-snow)
7510 ("r-bh" ,r-bh)))
7511 (home-page "https://bioconductor.org/packages/BiocParallel")
7512 (synopsis "Bioconductor facilities for parallel evaluation")
7513 (description
7514 "This package provides modified versions and novel implementation of
7515 functions for parallel evaluation, tailored to use with Bioconductor
7516 objects.")
7517 (license (list license:gpl2+ license:gpl3+))))
7518
7519 (define-public r-biostrings
7520 (package
7521 (name "r-biostrings")
7522 (version "2.48.0")
7523 (source (origin
7524 (method url-fetch)
7525 (uri (bioconductor-uri "Biostrings" version))
7526 (sha256
7527 (base32
7528 "118b490jk87ydigm6ln25ms4kskzkw0akmh77clzznhzpqnxsi6j"))))
7529 (properties
7530 `((upstream-name . "Biostrings")))
7531 (build-system r-build-system)
7532 (propagated-inputs
7533 `(("r-biocgenerics" ,r-biocgenerics)
7534 ("r-iranges" ,r-iranges)
7535 ("r-s4vectors" ,r-s4vectors)
7536 ("r-xvector" ,r-xvector)))
7537 (home-page "https://bioconductor.org/packages/Biostrings")
7538 (synopsis "String objects and algorithms for biological sequences")
7539 (description
7540 "This package provides memory efficient string containers, string
7541 matching algorithms, and other utilities, for fast manipulation of large
7542 biological sequences or sets of sequences.")
7543 (license license:artistic2.0)))
7544
7545 (define-public r-rsamtools
7546 (package
7547 (name "r-rsamtools")
7548 (version "1.32.0")
7549 (source (origin
7550 (method url-fetch)
7551 (uri (bioconductor-uri "Rsamtools" version))
7552 (sha256
7553 (base32
7554 "1s65y5wn4d0x8zsljg2kmhcl6r9884h95kr041j7hp49bmxg3an6"))))
7555 (properties
7556 `((upstream-name . "Rsamtools")))
7557 (build-system r-build-system)
7558 (arguments
7559 `(#:phases
7560 (modify-phases %standard-phases
7561 (add-after 'unpack 'use-system-zlib
7562 (lambda _
7563 (substitute* "DESCRIPTION"
7564 (("zlibbioc, ") ""))
7565 (substitute* "NAMESPACE"
7566 (("import\\(zlibbioc\\)") ""))
7567 #t)))))
7568 (inputs
7569 `(("zlib" ,zlib)))
7570 (propagated-inputs
7571 `(("r-biocgenerics" ,r-biocgenerics)
7572 ("r-biocparallel" ,r-biocparallel)
7573 ("r-biostrings" ,r-biostrings)
7574 ("r-bitops" ,r-bitops)
7575 ("r-genomeinfodb" ,r-genomeinfodb)
7576 ("r-genomicranges" ,r-genomicranges)
7577 ("r-iranges" ,r-iranges)
7578 ("r-s4vectors" ,r-s4vectors)
7579 ("r-xvector" ,r-xvector)))
7580 (home-page "https://bioconductor.org/packages/release/bioc/html/Rsamtools.html")
7581 (synopsis "Interface to samtools, bcftools, and tabix")
7582 (description
7583 "This package provides an interface to the 'samtools', 'bcftools', and
7584 'tabix' utilities for manipulating SAM (Sequence Alignment / Map), FASTA,
7585 binary variant call (BCF) and compressed indexed tab-delimited (tabix)
7586 files.")
7587 (license license:expat)))
7588
7589 (define-public r-delayedarray
7590 (package
7591 (name "r-delayedarray")
7592 (version "0.6.1")
7593 (source (origin
7594 (method url-fetch)
7595 (uri (bioconductor-uri "DelayedArray" version))
7596 (sha256
7597 (base32
7598 "0sjwszxdi0vkj2i2di5i46gh9chc660yr3gs5nk9qnqp77713zds"))))
7599 (properties
7600 `((upstream-name . "DelayedArray")))
7601 (build-system r-build-system)
7602 (propagated-inputs
7603 `(("r-biocgenerics" ,r-biocgenerics)
7604 ("r-biocparallel" ,r-biocparallel)
7605 ("r-s4vectors" ,r-s4vectors)
7606 ("r-iranges" ,r-iranges)
7607 ("r-matrixstats" ,r-matrixstats)))
7608 (home-page "https://bioconductor.org/packages/DelayedArray")
7609 (synopsis "Delayed operations on array-like objects")
7610 (description
7611 "Wrapping an array-like object (typically an on-disk object) in a
7612 @code{DelayedArray} object allows one to perform common array operations on it
7613 without loading the object in memory. In order to reduce memory usage and
7614 optimize performance, operations on the object are either delayed or executed
7615 using a block processing mechanism. Note that this also works on in-memory
7616 array-like objects like @code{DataFrame} objects (typically with Rle columns),
7617 @code{Matrix} objects, and ordinary arrays and data frames.")
7618 (license license:artistic2.0)))
7619
7620 (define-public r-summarizedexperiment
7621 (package
7622 (name "r-summarizedexperiment")
7623 (version "1.10.1")
7624 (source (origin
7625 (method url-fetch)
7626 (uri (bioconductor-uri "SummarizedExperiment" version))
7627 (sha256
7628 (base32
7629 "0v3zxl9cqsv79ag5cnvzlhvgaz5cr8f4rn7flmwnwpqd508cznl1"))))
7630 (properties
7631 `((upstream-name . "SummarizedExperiment")))
7632 (build-system r-build-system)
7633 (propagated-inputs
7634 `(("r-biobase" ,r-biobase)
7635 ("r-biocgenerics" ,r-biocgenerics)
7636 ("r-delayedarray" ,r-delayedarray)
7637 ("r-genomeinfodb" ,r-genomeinfodb)
7638 ("r-genomicranges" ,r-genomicranges)
7639 ("r-iranges" ,r-iranges)
7640 ("r-matrix" ,r-matrix)
7641 ("r-s4vectors" ,r-s4vectors)))
7642 (home-page "https://bioconductor.org/packages/SummarizedExperiment")
7643 (synopsis "Container for representing genomic ranges by sample")
7644 (description
7645 "The SummarizedExperiment container contains one or more assays, each
7646 represented by a matrix-like object of numeric or other mode. The rows
7647 typically represent genomic ranges of interest and the columns represent
7648 samples.")
7649 (license license:artistic2.0)))
7650
7651 (define-public r-genomicalignments
7652 (package
7653 (name "r-genomicalignments")
7654 (version "1.16.0")
7655 (source (origin
7656 (method url-fetch)
7657 (uri (bioconductor-uri "GenomicAlignments" version))
7658 (sha256
7659 (base32
7660 "00pi2cnkkbj2023fg2x2cmglkdalwzy1vr3glsikwz7ix9yylcaw"))))
7661 (properties
7662 `((upstream-name . "GenomicAlignments")))
7663 (build-system r-build-system)
7664 (propagated-inputs
7665 `(("r-biocgenerics" ,r-biocgenerics)
7666 ("r-biocparallel" ,r-biocparallel)
7667 ("r-biostrings" ,r-biostrings)
7668 ("r-genomeinfodb" ,r-genomeinfodb)
7669 ("r-genomicranges" ,r-genomicranges)
7670 ("r-iranges" ,r-iranges)
7671 ("r-rsamtools" ,r-rsamtools)
7672 ("r-s4vectors" ,r-s4vectors)
7673 ("r-summarizedexperiment" ,r-summarizedexperiment)))
7674 (home-page "https://bioconductor.org/packages/GenomicAlignments")
7675 (synopsis "Representation and manipulation of short genomic alignments")
7676 (description
7677 "This package provides efficient containers for storing and manipulating
7678 short genomic alignments (typically obtained by aligning short reads to a
7679 reference genome). This includes read counting, computing the coverage,
7680 junction detection, and working with the nucleotide content of the
7681 alignments.")
7682 (license license:artistic2.0)))
7683
7684 (define-public r-rtracklayer
7685 (package
7686 (name "r-rtracklayer")
7687 (version "1.40.3")
7688 (source (origin
7689 (method url-fetch)
7690 (uri (bioconductor-uri "rtracklayer" version))
7691 (sha256
7692 (base32
7693 "0kvsjdaypn1jnxbnsxpycildwdyxwnjkigfq8qm8mlyfc4ahdgy3"))))
7694 (build-system r-build-system)
7695 (arguments
7696 `(#:phases
7697 (modify-phases %standard-phases
7698 (add-after 'unpack 'use-system-zlib
7699 (lambda _
7700 (substitute* "DESCRIPTION"
7701 ((" zlibbioc,") ""))
7702 (substitute* "NAMESPACE"
7703 (("import\\(zlibbioc\\)") ""))
7704 #t)))))
7705 (native-inputs
7706 `(("pkg-config" ,pkg-config)))
7707 (inputs
7708 `(("zlib" ,zlib)))
7709 (propagated-inputs
7710 `(("r-biocgenerics" ,r-biocgenerics)
7711 ("r-biostrings" ,r-biostrings)
7712 ("r-genomeinfodb" ,r-genomeinfodb)
7713 ("r-genomicalignments" ,r-genomicalignments)
7714 ("r-genomicranges" ,r-genomicranges)
7715 ("r-iranges" ,r-iranges)
7716 ("r-rcurl" ,r-rcurl)
7717 ("r-rsamtools" ,r-rsamtools)
7718 ("r-s4vectors" ,r-s4vectors)
7719 ("r-xml" ,r-xml)
7720 ("r-xvector" ,r-xvector)))
7721 (home-page "https://bioconductor.org/packages/rtracklayer")
7722 (synopsis "R interface to genome browsers and their annotation tracks")
7723 (description
7724 "rtracklayer is an extensible framework for interacting with multiple
7725 genome browsers (currently UCSC built-in) and manipulating annotation tracks
7726 in various formats (currently GFF, BED, bedGraph, BED15, WIG, BigWig and 2bit
7727 built-in). The user may export/import tracks to/from the supported browsers,
7728 as well as query and modify the browser state, such as the current viewport.")
7729 (license license:artistic2.0)))
7730
7731 (define-public r-genomicfeatures
7732 (package
7733 (name "r-genomicfeatures")
7734 (version "1.32.0")
7735 (source (origin
7736 (method url-fetch)
7737 (uri (bioconductor-uri "GenomicFeatures" version))
7738 (sha256
7739 (base32
7740 "1cqcl72q0k5wylw1brn4g4h7xzys1v06piry19cvp0gjcvm5sp7a"))))
7741 (properties
7742 `((upstream-name . "GenomicFeatures")))
7743 (build-system r-build-system)
7744 (propagated-inputs
7745 `(("r-annotationdbi" ,r-annotationdbi)
7746 ("r-biobase" ,r-biobase)
7747 ("r-biocgenerics" ,r-biocgenerics)
7748 ("r-biomart" ,r-biomart)
7749 ("r-biostrings" ,r-biostrings)
7750 ("r-dbi" ,r-dbi)
7751 ("r-genomeinfodb" ,r-genomeinfodb)
7752 ("r-genomicranges" ,r-genomicranges)
7753 ("r-iranges" ,r-iranges)
7754 ("r-rcurl" ,r-rcurl)
7755 ("r-rsqlite" ,r-rsqlite)
7756 ("r-rtracklayer" ,r-rtracklayer)
7757 ("r-s4vectors" ,r-s4vectors)
7758 ("r-xvector" ,r-xvector)))
7759 (home-page "https://bioconductor.org/packages/GenomicFeatures")
7760 (synopsis "Tools for working with transcript centric annotations")
7761 (description
7762 "This package provides a set of tools and methods for making and
7763 manipulating transcript centric annotations. With these tools the user can
7764 easily download the genomic locations of the transcripts, exons and cds of a
7765 given organism, from either the UCSC Genome Browser or a BioMart
7766 database (more sources will be supported in the future). This information is
7767 then stored in a local database that keeps track of the relationship between
7768 transcripts, exons, cds and genes. Flexible methods are provided for
7769 extracting the desired features in a convenient format.")
7770 (license license:artistic2.0)))
7771
7772 (define-public r-go-db
7773 (package
7774 (name "r-go-db")
7775 (version "3.5.0")
7776 (source (origin
7777 (method url-fetch)
7778 (uri (string-append "https://www.bioconductor.org/packages/"
7779 "release/data/annotation/src/contrib/GO.db_"
7780 version ".tar.gz"))
7781 (sha256
7782 (base32
7783 "02d1mn1al3q7qvhx1ylrr3ar4w4iw0qyi5d89v2336rzwk9maq35"))))
7784 (properties
7785 `((upstream-name . "GO.db")))
7786 (build-system r-build-system)
7787 (propagated-inputs
7788 `(("r-annotationdbi" ,r-annotationdbi)))
7789 (home-page "https://bioconductor.org/packages/GO.db")
7790 (synopsis "Annotation maps describing the entire Gene Ontology")
7791 (description
7792 "The purpose of this GO.db annotation package is to provide detailed
7793 information about the latest version of the Gene Ontologies.")
7794 (license license:artistic2.0)))
7795
7796 (define-public r-graph
7797 (package
7798 (name "r-graph")
7799 (version "1.58.0")
7800 (source (origin
7801 (method url-fetch)
7802 (uri (bioconductor-uri "graph" version))
7803 (sha256
7804 (base32
7805 "1zx445lk36g1s6i5dbhhf00nzzazyklfjxxjfax6q8hnhvgm9759"))))
7806 (build-system r-build-system)
7807 (propagated-inputs
7808 `(("r-biocgenerics" ,r-biocgenerics)))
7809 (home-page "https://bioconductor.org/packages/graph")
7810 (synopsis "Handle graph data structures in R")
7811 (description
7812 "This package implements some simple graph handling capabilities for R.")
7813 (license license:artistic2.0)))
7814
7815 (define-public r-topgo
7816 (package
7817 (name "r-topgo")
7818 (version "2.32.0")
7819 (source (origin
7820 (method url-fetch)
7821 (uri (bioconductor-uri "topGO" version))
7822 (sha256
7823 (base32
7824 "05yxnkid8bgw9lkm90if9fg63djhgvbailfa3qsfqa5c0zjmixw1"))))
7825 (properties
7826 `((upstream-name . "topGO")))
7827 (build-system r-build-system)
7828 (propagated-inputs
7829 `(("r-annotationdbi" ,r-annotationdbi)
7830 ("r-dbi" ,r-dbi)
7831 ("r-biobase" ,r-biobase)
7832 ("r-biocgenerics" ,r-biocgenerics)
7833 ("r-go-db" ,r-go-db)
7834 ("r-graph" ,r-graph)
7835 ("r-lattice" ,r-lattice)
7836 ("r-matrixstats" ,r-matrixstats)
7837 ("r-sparsem" ,r-sparsem)))
7838 (home-page "https://bioconductor.org/packages/topGO")
7839 (synopsis "Enrichment analysis for gene ontology")
7840 (description
7841 "The topGO package provides tools for testing @dfn{gene ontology} (GO)
7842 terms while accounting for the topology of the GO graph. Different test
7843 statistics and different methods for eliminating local similarities and
7844 dependencies between GO terms can be implemented and applied.")
7845 ;; Any version of the LGPL applies.
7846 (license license:lgpl2.1+)))
7847
7848 (define-public r-bsgenome
7849 (package
7850 (name "r-bsgenome")
7851 (version "1.48.0")
7852 (source (origin
7853 (method url-fetch)
7854 (uri (bioconductor-uri "BSgenome" version))
7855 (sha256
7856 (base32
7857 "1rk2piqq5dppkd51ln3r872d7ng3rvq98071mnd0xdv2xwnyn5g8"))))
7858 (properties
7859 `((upstream-name . "BSgenome")))
7860 (build-system r-build-system)
7861 (propagated-inputs
7862 `(("r-biocgenerics" ,r-biocgenerics)
7863 ("r-biostrings" ,r-biostrings)
7864 ("r-genomeinfodb" ,r-genomeinfodb)
7865 ("r-genomicranges" ,r-genomicranges)
7866 ("r-iranges" ,r-iranges)
7867 ("r-rsamtools" ,r-rsamtools)
7868 ("r-rtracklayer" ,r-rtracklayer)
7869 ("r-s4vectors" ,r-s4vectors)
7870 ("r-xvector" ,r-xvector)))
7871 (home-page "https://bioconductor.org/packages/BSgenome")
7872 (synopsis "Infrastructure for Biostrings-based genome data packages")
7873 (description
7874 "This package provides infrastructure shared by all Biostrings-based
7875 genome data packages and support for efficient SNP representation.")
7876 (license license:artistic2.0)))
7877
7878 (define-public r-bsgenome-hsapiens-1000genomes-hs37d5
7879 (package
7880 (name "r-bsgenome-hsapiens-1000genomes-hs37d5")
7881 (version "0.99.1")
7882 (source (origin
7883 (method url-fetch)
7884 ;; We cannot use bioconductor-uri here because this tarball is
7885 ;; located under "data/annotation/" instead of "bioc/".
7886 (uri (string-append "https://www.bioconductor.org/packages/"
7887 "release/data/annotation/src/contrib/"
7888 "BSgenome.Hsapiens.1000genomes.hs37d5_"
7889 version ".tar.gz"))
7890 (sha256
7891 (base32
7892 "1cg0g5fqmsvwyw2p9hp2yy4ilk21jkbbrnpgqvb5c36ihjwvc7sr"))))
7893 (properties
7894 `((upstream-name . "BSgenome.Hsapiens.1000genomes.hs37d5")))
7895 (build-system r-build-system)
7896 ;; As this package provides little more than a very large data file it
7897 ;; doesn't make sense to build substitutes.
7898 (arguments `(#:substitutable? #f))
7899 (propagated-inputs
7900 `(("r-bsgenome" ,r-bsgenome)))
7901 (home-page
7902 "https://www.bioconductor.org/packages/BSgenome.Hsapiens.1000genomes.hs37d5/")
7903 (synopsis "Full genome sequences for Homo sapiens")
7904 (description
7905 "This package provides full genome sequences for Homo sapiens from
7906 1000genomes phase2 reference genome sequence (hs37d5), based on NCBI GRCh37.")
7907 (license license:artistic2.0)))
7908
7909 (define-public r-impute
7910 (package
7911 (name "r-impute")
7912 (version "1.54.0")
7913 (source (origin
7914 (method url-fetch)
7915 (uri (bioconductor-uri "impute" version))
7916 (sha256
7917 (base32
7918 "1d3cpfaqlq2gnb3hsc2yhxwkrnbd7m6ifif32yp0ya0jr5brl4hr"))))
7919 (inputs
7920 `(("gfortran" ,gfortran)))
7921 (build-system r-build-system)
7922 (home-page "https://bioconductor.org/packages/impute")
7923 (synopsis "Imputation for microarray data")
7924 (description
7925 "This package provides a function to impute missing gene expression
7926 microarray data, using nearest neighbor averaging.")
7927 (license license:gpl2+)))
7928
7929 (define-public r-seqpattern
7930 (package
7931 (name "r-seqpattern")
7932 (version "1.12.0")
7933 (source (origin
7934 (method url-fetch)
7935 (uri (bioconductor-uri "seqPattern" version))
7936 (sha256
7937 (base32
7938 "0dw0yldfcf0ibvpqxlpx1ijnjf9lma47w9w22siszzhw09i0wp3w"))))
7939 (properties
7940 `((upstream-name . "seqPattern")))
7941 (build-system r-build-system)
7942 (propagated-inputs
7943 `(("r-biostrings" ,r-biostrings)
7944 ("r-genomicranges" ,r-genomicranges)
7945 ("r-iranges" ,r-iranges)
7946 ("r-kernsmooth" ,r-kernsmooth)
7947 ("r-plotrix" ,r-plotrix)))
7948 (home-page "https://bioconductor.org/packages/seqPattern")
7949 (synopsis "Visualising oligonucleotide patterns and motif occurrences")
7950 (description
7951 "This package provides tools to visualize oligonucleotide patterns and
7952 sequence motif occurrences across a large set of sequences centred at a common
7953 reference point and sorted by a user defined feature.")
7954 (license license:gpl3+)))
7955
7956 (define-public r-genomation
7957 (package
7958 (name "r-genomation")
7959 (version "1.12.0")
7960 (source (origin
7961 (method url-fetch)
7962 (uri (bioconductor-uri "genomation" version))
7963 (sha256
7964 (base32
7965 "1vdmdyrq0n7pf8cvy2950v7hrcrcbd9zl4fg7dcmyly3iiwdyirp"))))
7966 (build-system r-build-system)
7967 (propagated-inputs
7968 `(("r-biostrings" ,r-biostrings)
7969 ("r-bsgenome" ,r-bsgenome)
7970 ("r-data-table" ,r-data-table)
7971 ("r-genomeinfodb" ,r-genomeinfodb)
7972 ("r-genomicalignments" ,r-genomicalignments)
7973 ("r-genomicranges" ,r-genomicranges)
7974 ("r-ggplot2" ,r-ggplot2)
7975 ("r-gridbase" ,r-gridbase)
7976 ("r-impute" ,r-impute)
7977 ("r-iranges" ,r-iranges)
7978 ("r-matrixstats" ,r-matrixstats)
7979 ("r-plotrix" ,r-plotrix)
7980 ("r-plyr" ,r-plyr)
7981 ("r-rcpp" ,r-rcpp)
7982 ("r-readr" ,r-readr)
7983 ("r-reshape2" ,r-reshape2)
7984 ("r-rsamtools" ,r-rsamtools)
7985 ("r-rtracklayer" ,r-rtracklayer)
7986 ("r-runit" ,r-runit)
7987 ("r-s4vectors" ,r-s4vectors)
7988 ("r-seqpattern" ,r-seqpattern)))
7989 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
7990 (synopsis "Summary, annotation and visualization of genomic data")
7991 (description
7992 "This package provides a package for summary and annotation of genomic
7993 intervals. Users can visualize and quantify genomic intervals over
7994 pre-defined functional regions, such as promoters, exons, introns, etc. The
7995 genomic intervals represent regions with a defined chromosome position, which
7996 may be associated with a score, such as aligned reads from HT-seq experiments,
7997 TF binding sites, methylation scores, etc. The package can use any tabular
7998 genomic feature data as long as it has minimal information on the locations of
7999 genomic intervals. In addition, it can use BAM or BigWig files as input.")
8000 (license license:artistic2.0)))
8001
8002 (define-public r-genomationdata
8003 (package
8004 (name "r-genomationdata")
8005 (version "1.10.0")
8006 (source (origin
8007 (method url-fetch)
8008 ;; We cannot use bioconductor-uri here because this tarball is
8009 ;; located under "data/annotation/" instead of "bioc/".
8010 (uri (string-append "https://bioconductor.org/packages/"
8011 "release/data/experiment/src/contrib/"
8012 "genomationData_" version ".tar.gz"))
8013 (sha256
8014 (base32
8015 "0h7g5x3kyb50qlblz5hc85lfm6n6f5nb68i146way3ggs04sqvla"))))
8016 (build-system r-build-system)
8017 ;; As this package provides little more than large data files, it doesn't
8018 ;; make sense to build substitutes.
8019 (arguments `(#:substitutable? #f))
8020 (native-inputs
8021 `(("r-knitr" ,r-knitr)))
8022 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
8023 (synopsis "Experimental data for use with the genomation package")
8024 (description
8025 "This package contains experimental genetic data for use with the
8026 genomation package. Included are Chip Seq, Methylation and Cage data,
8027 downloaded from Encode.")
8028 (license license:gpl3+)))
8029
8030 (define-public r-org-hs-eg-db
8031 (package
8032 (name "r-org-hs-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.Hs.eg.db_" version ".tar.gz"))
8041 (sha256
8042 (base32
8043 "1v6wa5613cjq59xd7x1qz8lr9nb2abm9abl2cci1khrnrlpla927"))))
8044 (properties
8045 `((upstream-name . "org.Hs.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.Hs.eg.db/")
8050 (synopsis "Genome wide annotation for Human")
8051 (description
8052 "This package contains genome-wide annotations for Human, primarily based
8053 on mapping using Entrez Gene identifiers.")
8054 (license license:artistic2.0)))
8055
8056 (define-public r-org-ce-eg-db
8057 (package
8058 (name "r-org-ce-eg-db")
8059 (version "3.5.0")
8060 (source (origin
8061 (method url-fetch)
8062 ;; We cannot use bioconductor-uri here because this tarball is
8063 ;; located under "data/annotation/" instead of "bioc/".
8064 (uri (string-append "https://www.bioconductor.org/packages/"
8065 "release/data/annotation/src/contrib/"
8066 "org.Ce.eg.db_" version ".tar.gz"))
8067 (sha256
8068 (base32
8069 "02ggchixlmzywhsbr0h2ms4dravv7m5964cjxqcjxqs16vjwlbk9"))))
8070 (properties
8071 `((upstream-name . "org.Ce.eg.db")))
8072 (build-system r-build-system)
8073 (propagated-inputs
8074 `(("r-annotationdbi" ,r-annotationdbi)))
8075 (home-page "https://www.bioconductor.org/packages/org.Ce.eg.db/")
8076 (synopsis "Genome wide annotation for Worm")
8077 (description
8078 "This package provides mappings from Entrez gene identifiers to various
8079 annotations for the genome of the model worm Caenorhabditis elegans.")
8080 (license license:artistic2.0)))
8081
8082 (define-public r-org-dm-eg-db
8083 (package
8084 (name "r-org-dm-eg-db")
8085 (version "3.5.0")
8086 (source (origin
8087 (method url-fetch)
8088 ;; We cannot use bioconductor-uri here because this tarball is
8089 ;; located under "data/annotation/" instead of "bioc/".
8090 (uri (string-append "https://www.bioconductor.org/packages/"
8091 "release/data/annotation/src/contrib/"
8092 "org.Dm.eg.db_" version ".tar.gz"))
8093 (sha256
8094 (base32
8095 "033qak1d3wwz17va0bh8z8p8arx0aw2va6gm1qfwsvdkj9cd9d7d"))))
8096 (properties
8097 `((upstream-name . "org.Dm.eg.db")))
8098 (build-system r-build-system)
8099 (propagated-inputs
8100 `(("r-annotationdbi" ,r-annotationdbi)))
8101 (home-page "https://www.bioconductor.org/packages/org.Dm.eg.db/")
8102 (synopsis "Genome wide annotation for Fly")
8103 (description
8104 "This package provides mappings from Entrez gene identifiers to various
8105 annotations for the genome of the model fruit fly Drosophila melanogaster.")
8106 (license license:artistic2.0)))
8107
8108 (define-public r-org-mm-eg-db
8109 (package
8110 (name "r-org-mm-eg-db")
8111 (version "3.5.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 "org.Mm.eg.db_" version ".tar.gz"))
8119 (sha256
8120 (base32
8121 "11q21p3ki4bn4hb3aix0g775l45l66jmas6m94nfhqqnpjhv4d6g"))))
8122 (properties
8123 `((upstream-name . "org.Mm.eg.db")))
8124 (build-system r-build-system)
8125 (propagated-inputs
8126 `(("r-annotationdbi" ,r-annotationdbi)))
8127 (home-page "https://www.bioconductor.org/packages/org.Mm.eg.db/")
8128 (synopsis "Genome wide annotation for Mouse")
8129 (description
8130 "This package provides mappings from Entrez gene identifiers to various
8131 annotations for the genome of the model mouse Mus musculus.")
8132 (license license:artistic2.0)))
8133
8134 (define-public r-seqlogo
8135 (package
8136 (name "r-seqlogo")
8137 (version "1.46.0")
8138 (source
8139 (origin
8140 (method url-fetch)
8141 (uri (bioconductor-uri "seqLogo" version))
8142 (sha256
8143 (base32
8144 "16xvqcdknix9vjm8mrixi6nyfsr45jm844jh1x90m8044lwrsic1"))))
8145 (properties `((upstream-name . "seqLogo")))
8146 (build-system r-build-system)
8147 (home-page "https://bioconductor.org/packages/seqLogo")
8148 (synopsis "Sequence logos for DNA sequence alignments")
8149 (description
8150 "seqLogo takes the position weight matrix of a DNA sequence motif and
8151 plots the corresponding sequence logo as introduced by Schneider and
8152 Stephens (1990).")
8153 (license license:lgpl2.0+)))
8154
8155 (define-public r-bsgenome-hsapiens-ucsc-hg19
8156 (package
8157 (name "r-bsgenome-hsapiens-ucsc-hg19")
8158 (version "1.4.0")
8159 (source (origin
8160 (method url-fetch)
8161 ;; We cannot use bioconductor-uri here because this tarball is
8162 ;; located under "data/annotation/" instead of "bioc/".
8163 (uri (string-append "https://www.bioconductor.org/packages/"
8164 "release/data/annotation/src/contrib/"
8165 "BSgenome.Hsapiens.UCSC.hg19_"
8166 version ".tar.gz"))
8167 (sha256
8168 (base32
8169 "1y0nqpk8cw5a34sd9hmin3z4v7iqm6hf6l22cl81vlbxqbjibxc8"))))
8170 (properties
8171 `((upstream-name . "BSgenome.Hsapiens.UCSC.hg19")))
8172 (build-system r-build-system)
8173 ;; As this package provides little more than a very large data file it
8174 ;; doesn't make sense to build substitutes.
8175 (arguments `(#:substitutable? #f))
8176 (propagated-inputs
8177 `(("r-bsgenome" ,r-bsgenome)))
8178 (home-page
8179 "https://www.bioconductor.org/packages/BSgenome.Hsapiens.UCSC.hg19/")
8180 (synopsis "Full genome sequences for Homo sapiens")
8181 (description
8182 "This package provides full genome sequences for Homo sapiens as provided
8183 by UCSC (hg19, February 2009) and stored in Biostrings objects.")
8184 (license license:artistic2.0)))
8185
8186 (define-public r-bsgenome-mmusculus-ucsc-mm9
8187 (package
8188 (name "r-bsgenome-mmusculus-ucsc-mm9")
8189 (version "1.4.0")
8190 (source (origin
8191 (method url-fetch)
8192 ;; We cannot use bioconductor-uri here because this tarball is
8193 ;; located under "data/annotation/" instead of "bioc/".
8194 (uri (string-append "https://www.bioconductor.org/packages/"
8195 "release/data/annotation/src/contrib/"
8196 "BSgenome.Mmusculus.UCSC.mm9_"
8197 version ".tar.gz"))
8198 (sha256
8199 (base32
8200 "1birqw30g2azimxpnjfzmkphan7x131yy8b9h85lfz5fjdg7841i"))))
8201 (properties
8202 `((upstream-name . "BSgenome.Mmusculus.UCSC.mm9")))
8203 (build-system r-build-system)
8204 ;; As this package provides little more than a very large data file it
8205 ;; doesn't make sense to build substitutes.
8206 (arguments `(#:substitutable? #f))
8207 (propagated-inputs
8208 `(("r-bsgenome" ,r-bsgenome)))
8209 (home-page
8210 "https://www.bioconductor.org/packages/BSgenome.Mmusculus.UCSC.mm9/")
8211 (synopsis "Full genome sequences for Mouse")
8212 (description
8213 "This package provides full genome sequences for Mus musculus (Mouse) as
8214 provided by UCSC (mm9, July 2007) and stored in Biostrings objects.")
8215 (license license:artistic2.0)))
8216
8217 (define-public r-bsgenome-mmusculus-ucsc-mm10
8218 (package
8219 (name "r-bsgenome-mmusculus-ucsc-mm10")
8220 (version "1.4.0")
8221 (source (origin
8222 (method url-fetch)
8223 ;; We cannot use bioconductor-uri here because this tarball is
8224 ;; located under "data/annotation/" instead of "bioc/".
8225 (uri (string-append "https://www.bioconductor.org/packages/"
8226 "release/data/annotation/src/contrib/"
8227 "BSgenome.Mmusculus.UCSC.mm10_"
8228 version ".tar.gz"))
8229 (sha256
8230 (base32
8231 "12s0nm2na9brjad4rn9l7d3db2aj8qa1xvz0y1k7gk08wayb6bkf"))))
8232 (properties
8233 `((upstream-name . "BSgenome.Mmusculus.UCSC.mm10")))
8234 (build-system r-build-system)
8235 ;; As this package provides little more than a very large data file it
8236 ;; doesn't make sense to build substitutes.
8237 (arguments `(#:substitutable? #f))
8238 (propagated-inputs
8239 `(("r-bsgenome" ,r-bsgenome)))
8240 (home-page
8241 "https://www.bioconductor.org/packages/BSgenome.Mmusculus.UCSC.mm10/")
8242 (synopsis "Full genome sequences for Mouse")
8243 (description
8244 "This package provides full genome sequences for Mus
8245 musculus (Mouse) as provided by UCSC (mm10, December 2011) and stored
8246 in Biostrings objects.")
8247 (license license:artistic2.0)))
8248
8249 (define-public r-txdb-mmusculus-ucsc-mm10-knowngene
8250 (package
8251 (name "r-txdb-mmusculus-ucsc-mm10-knowngene")
8252 (version "3.4.0")
8253 (source (origin
8254 (method url-fetch)
8255 ;; We cannot use bioconductor-uri here because this tarball is
8256 ;; located under "data/annotation/" instead of "bioc/".
8257 (uri (string-append "https://www.bioconductor.org/packages/"
8258 "release/data/annotation/src/contrib/"
8259 "TxDb.Mmusculus.UCSC.mm10.knownGene_"
8260 version ".tar.gz"))
8261 (sha256
8262 (base32
8263 "08gava9wsvpcqz51k2sni3pj03n5155v32d9riqbf305nbirqbkb"))))
8264 (properties
8265 `((upstream-name . "TxDb.Mmusculus.UCSC.mm10.knownGene")))
8266 (build-system r-build-system)
8267 ;; As this package provides little more than a very large data file it
8268 ;; doesn't make sense to build substitutes.
8269 (arguments `(#:substitutable? #f))
8270 (propagated-inputs
8271 `(("r-bsgenome" ,r-bsgenome)
8272 ("r-genomicfeatures" ,r-genomicfeatures)
8273 ("r-annotationdbi" ,r-annotationdbi)))
8274 (home-page
8275 "https://bioconductor.org/packages/TxDb.Mmusculus.UCSC.mm10.knownGene/")
8276 (synopsis "Annotation package for TxDb knownGene object(s) for Mouse")
8277 (description
8278 "This package loads a TxDb object, which is an R interface to
8279 prefabricated databases contained in this package. This package provides
8280 the TxDb object of Mouse data as provided by UCSC (mm10, December 2011)
8281 based on the knownGene track.")
8282 (license license:artistic2.0)))
8283
8284 (define-public r-bsgenome-celegans-ucsc-ce6
8285 (package
8286 (name "r-bsgenome-celegans-ucsc-ce6")
8287 (version "1.4.0")
8288 (source (origin
8289 (method url-fetch)
8290 ;; We cannot use bioconductor-uri here because this tarball is
8291 ;; located under "data/annotation/" instead of "bioc/".
8292 (uri (string-append "https://www.bioconductor.org/packages/"
8293 "release/data/annotation/src/contrib/"
8294 "BSgenome.Celegans.UCSC.ce6_"
8295 version ".tar.gz"))
8296 (sha256
8297 (base32
8298 "0mqzb353xv2c3m3vkb315dkmnxkgczp7ndnknyhpgjlybyf715v9"))))
8299 (properties
8300 `((upstream-name . "BSgenome.Celegans.UCSC.ce6")))
8301 (build-system r-build-system)
8302 ;; As this package provides little more than a very large data file it
8303 ;; doesn't make sense to build substitutes.
8304 (arguments `(#:substitutable? #f))
8305 (propagated-inputs
8306 `(("r-bsgenome" ,r-bsgenome)))
8307 (home-page
8308 "https://www.bioconductor.org/packages/BSgenome.Celegans.UCSC.ce6/")
8309 (synopsis "Full genome sequences for Worm")
8310 (description
8311 "This package provides full genome sequences for Caenorhabditis
8312 elegans (Worm) as provided by UCSC (ce6, May 2008) and stored in Biostrings
8313 objects.")
8314 (license license:artistic2.0)))
8315
8316 (define-public r-bsgenome-celegans-ucsc-ce10
8317 (package
8318 (name "r-bsgenome-celegans-ucsc-ce10")
8319 (version "1.4.0")
8320 (source (origin
8321 (method url-fetch)
8322 ;; We cannot use bioconductor-uri here because this tarball is
8323 ;; located under "data/annotation/" instead of "bioc/".
8324 (uri (string-append "https://www.bioconductor.org/packages/"
8325 "release/data/annotation/src/contrib/"
8326 "BSgenome.Celegans.UCSC.ce10_"
8327 version ".tar.gz"))
8328 (sha256
8329 (base32
8330 "1zaym97jk4npxk14ifvwz2rvhm4zx9xgs33r9vvx9rlynp0gydrk"))))
8331 (properties
8332 `((upstream-name . "BSgenome.Celegans.UCSC.ce10")))
8333 (build-system r-build-system)
8334 ;; As this package provides little more than a very large data file it
8335 ;; doesn't make sense to build substitutes.
8336 (arguments `(#:substitutable? #f))
8337 (propagated-inputs
8338 `(("r-bsgenome" ,r-bsgenome)))
8339 (home-page
8340 "https://www.bioconductor.org/packages/BSgenome.Celegans.UCSC.ce10/")
8341 (synopsis "Full genome sequences for Worm")
8342 (description
8343 "This package provides full genome sequences for Caenorhabditis
8344 elegans (Worm) as provided by UCSC (ce10, Oct 2010) and stored in Biostrings
8345 objects.")
8346 (license license:artistic2.0)))
8347
8348 (define-public r-bsgenome-dmelanogaster-ucsc-dm3
8349 (package
8350 (name "r-bsgenome-dmelanogaster-ucsc-dm3")
8351 (version "1.4.0")
8352 (source (origin
8353 (method url-fetch)
8354 ;; We cannot use bioconductor-uri here because this tarball is
8355 ;; located under "data/annotation/" instead of "bioc/".
8356 (uri (string-append "https://www.bioconductor.org/packages/"
8357 "release/data/annotation/src/contrib/"
8358 "BSgenome.Dmelanogaster.UCSC.dm3_"
8359 version ".tar.gz"))
8360 (sha256
8361 (base32
8362 "19bm3lkhhkag3gnwp419211fh0cnr0x6fa0r1lr0ycwrikxdxsv8"))))
8363 (properties
8364 `((upstream-name . "BSgenome.Dmelanogaster.UCSC.dm3")))
8365 (build-system r-build-system)
8366 ;; As this package provides little more than a very large data file it
8367 ;; doesn't make sense to build substitutes.
8368 (arguments `(#:substitutable? #f))
8369 (propagated-inputs
8370 `(("r-bsgenome" ,r-bsgenome)))
8371 (home-page
8372 "https://www.bioconductor.org/packages/BSgenome.Dmelanogaster.UCSC.dm3/")
8373 (synopsis "Full genome sequences for Fly")
8374 (description
8375 "This package provides full genome sequences for Drosophila
8376 melanogaster (Fly) as provided by UCSC (dm3, April 2006) and stored in
8377 Biostrings objects.")
8378 (license license:artistic2.0)))
8379
8380 (define-public r-motifrg
8381 (package
8382 (name "r-motifrg")
8383 (version "1.24.0")
8384 (source
8385 (origin
8386 (method url-fetch)
8387 (uri (bioconductor-uri "motifRG" version))
8388 (sha256
8389 (base32
8390 "0mxhyidkyd2zqahdbg69y20r550z78lvr1r3pbjymnwfg4hcfq1p"))))
8391 (properties `((upstream-name . "motifRG")))
8392 (build-system r-build-system)
8393 (propagated-inputs
8394 `(("r-biostrings" ,r-biostrings)
8395 ("r-bsgenome" ,r-bsgenome)
8396 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8397 ("r-iranges" ,r-iranges)
8398 ("r-seqlogo" ,r-seqlogo)
8399 ("r-xvector" ,r-xvector)))
8400 (home-page "https://bioconductor.org/packages/motifRG")
8401 (synopsis "Discover motifs in high throughput sequencing data")
8402 (description
8403 "This package provides tools for discriminative motif discovery in high
8404 throughput genetic sequencing data sets using regression methods.")
8405 (license license:artistic2.0)))
8406
8407 (define-public r-qtl
8408 (package
8409 (name "r-qtl")
8410 (version "1.42-8")
8411 (source
8412 (origin
8413 (method url-fetch)
8414 (uri (string-append "mirror://cran/src/contrib/qtl_"
8415 version ".tar.gz"))
8416 (sha256
8417 (base32
8418 "1l528dwvfpdlr05imrrm4rq32axp6hld9nqm6mm43kn5n7z2f5k6"))))
8419 (build-system r-build-system)
8420 (home-page "http://rqtl.org/")
8421 (synopsis "R package for analyzing QTL experiments in genetics")
8422 (description "R/qtl is an extension library for the R statistics
8423 system. It is used to analyze experimental crosses for identifying
8424 genes contributing to variation in quantitative traits (so-called
8425 quantitative trait loci, QTLs).
8426
8427 Using a hidden Markov model, R/qtl allows to estimate genetic maps, to
8428 identify genotyping errors, and to perform single-QTL and two-QTL,
8429 two-dimensional genome scans.")
8430 (license license:gpl3)))
8431
8432 (define-public r-zlibbioc
8433 (package
8434 (name "r-zlibbioc")
8435 (version "1.26.0")
8436 (source (origin
8437 (method url-fetch)
8438 (uri (bioconductor-uri "zlibbioc" version))
8439 (sha256
8440 (base32
8441 "1rwr0mci8a712q0isavi4jmhm94gwivc4nr8j7r4kw05flp4g7gz"))))
8442 (properties
8443 `((upstream-name . "zlibbioc")))
8444 (build-system r-build-system)
8445 (home-page "https://bioconductor.org/packages/zlibbioc")
8446 (synopsis "Provider for zlib-1.2.5 to R packages")
8447 (description "This package uses the source code of zlib-1.2.5 to create
8448 libraries for systems that do not have these available via other means.")
8449 (license license:artistic2.0)))
8450
8451 (define-public r-r4rna
8452 (package
8453 (name "r-r4rna")
8454 (version "0.1.4")
8455 (source
8456 (origin
8457 (method url-fetch)
8458 (uri (string-append "http://www.e-rna.org/r-chie/files/R4RNA_"
8459 version ".tar.gz"))
8460 (sha256
8461 (base32
8462 "1p0i78wh76jfgmn9jphbwwaz6yy6pipzfg08xs54cxavxg2j81p5"))))
8463 (build-system r-build-system)
8464 (propagated-inputs
8465 `(("r-optparse" ,r-optparse)
8466 ("r-rcolorbrewer" ,r-rcolorbrewer)))
8467 (home-page "http://www.e-rna.org/r-chie/index.cgi")
8468 (synopsis "Analysis framework for RNA secondary structure")
8469 (description
8470 "The R4RNA package aims to be a general framework for the analysis of RNA
8471 secondary structure and comparative analysis in R.")
8472 (license license:gpl3+)))
8473
8474 (define-public r-rhtslib
8475 (package
8476 (name "r-rhtslib")
8477 (version "1.12.1")
8478 (source
8479 (origin
8480 (method url-fetch)
8481 (uri (bioconductor-uri "Rhtslib" version))
8482 (sha256
8483 (base32
8484 "16ywnb8cmr2xabd1i21b92rfziw7xfbv25yv16ipw617p41wa39z"))))
8485 (properties `((upstream-name . "Rhtslib")))
8486 (build-system r-build-system)
8487 (propagated-inputs
8488 `(("r-zlibbioc" ,r-zlibbioc)))
8489 (inputs
8490 `(("zlib" ,zlib)))
8491 (native-inputs
8492 `(("pkg-config" ,pkg-config)))
8493 (home-page "https://github.com/nhayden/Rhtslib")
8494 (synopsis "High-throughput sequencing library as an R package")
8495 (description
8496 "This package provides the HTSlib C library for high-throughput
8497 nucleotide sequence analysis. The package is primarily useful to developers
8498 of other R packages who wish to make use of HTSlib.")
8499 (license license:lgpl2.0+)))
8500
8501 (define-public r-bamsignals
8502 (package
8503 (name "r-bamsignals")
8504 (version "1.12.1")
8505 (source
8506 (origin
8507 (method url-fetch)
8508 (uri (bioconductor-uri "bamsignals" version))
8509 (sha256
8510 (base32
8511 "141q3p4lzwiqk1mfxi8q1q84axjl0gyiqg59xd3sp4viny4jqmgv"))))
8512 (build-system r-build-system)
8513 (propagated-inputs
8514 `(("r-biocgenerics" ,r-biocgenerics)
8515 ("r-genomicranges" ,r-genomicranges)
8516 ("r-iranges" ,r-iranges)
8517 ("r-rcpp" ,r-rcpp)
8518 ("r-rhtslib" ,r-rhtslib)
8519 ("r-zlibbioc" ,r-zlibbioc)))
8520 (inputs
8521 `(("zlib" ,zlib)))
8522 (home-page "https://bioconductor.org/packages/bamsignals")
8523 (synopsis "Extract read count signals from bam files")
8524 (description
8525 "This package allows to efficiently obtain count vectors from indexed bam
8526 files. It counts the number of nucleotide sequence reads in given genomic
8527 ranges and it computes reads profiles and coverage profiles. It also handles
8528 paired-end data.")
8529 (license license:gpl2+)))
8530
8531 (define-public r-rcas
8532 (package
8533 (name "r-rcas")
8534 (version "1.6.0")
8535 (source (origin
8536 (method url-fetch)
8537 (uri (bioconductor-uri "RCAS" version))
8538 (sha256
8539 (base32
8540 "0vmn7a0rm2ban0kaxrf5danhss2r4hfhnwh5889fjcgqy300fdd5"))))
8541 (build-system r-build-system)
8542 (native-inputs
8543 `(("r-testthat" ,r-testthat)
8544 ;; During vignette building knitr checks that "pandoc-citeproc"
8545 ;; is in the PATH.
8546 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc-with-pandoc-1)))
8547 (propagated-inputs
8548 `(("r-biocgenerics" ,r-biocgenerics)
8549 ("r-biomart" ,r-biomart)
8550 ("r-biostrings" ,r-biostrings)
8551 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8552 ("r-bsgenome-mmusculus-ucsc-mm9" ,r-bsgenome-mmusculus-ucsc-mm9)
8553 ("r-bsgenome-celegans-ucsc-ce10" ,r-bsgenome-celegans-ucsc-ce10)
8554 ("r-bsgenome-dmelanogaster-ucsc-dm3" ,r-bsgenome-dmelanogaster-ucsc-dm3)
8555 ("r-cowplot" ,r-cowplot)
8556 ("r-data-table" ,r-data-table)
8557 ("r-dbi" ,r-dbi)
8558 ("r-dt" ,r-dt)
8559 ("r-genomation" ,r-genomation)
8560 ("r-genomicfeatures" ,r-genomicfeatures)
8561 ("r-ggplot2" ,r-ggplot2)
8562 ("r-ggseqlogo" ,r-ggseqlogo)
8563 ("r-knitr" ,r-knitr)
8564 ("r-motifrg" ,r-motifrg)
8565 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
8566 ("r-org-ce-eg-db" ,r-org-ce-eg-db)
8567 ("r-org-dm-eg-db" ,r-org-dm-eg-db)
8568 ("r-org-mm-eg-db" ,r-org-mm-eg-db)
8569 ("r-pbapply" ,r-pbapply)
8570 ("r-pheatmap" ,r-pheatmap)
8571 ("r-plotly" ,r-plotly)
8572 ("r-plotrix" ,r-plotrix)
8573 ("r-proxy" ,r-proxy)
8574 ("r-rsqlite" ,r-rsqlite)
8575 ("r-rtracklayer" ,r-rtracklayer)
8576 ("r-rmarkdown" ,r-rmarkdown)
8577 ("r-s4vectors" ,r-s4vectors)
8578 ("r-topgo" ,r-topgo)))
8579 (synopsis "RNA-centric annotation system")
8580 (description
8581 "RCAS aims to be a standalone RNA-centric annotation system that provides
8582 intuitive reports and publication-ready graphics. This package provides the R
8583 library implementing most of the pipeline's features.")
8584 (home-page "https://github.com/BIMSBbioinfo/RCAS")
8585 (license license:artistic2.0)))
8586
8587 (define-public rcas-web
8588 (package
8589 (name "rcas-web")
8590 (version "0.0.5")
8591 (source
8592 (origin
8593 (method url-fetch)
8594 (uri (string-append "https://github.com/BIMSBbioinfo/rcas-web/"
8595 "releases/download/v" version
8596 "/rcas-web-" version ".tar.gz"))
8597 (sha256
8598 (base32
8599 "0igz7jpcf7cm9800zcag6p3gd1i649figrhbdba6cjkm8f4gfspr"))))
8600 (build-system gnu-build-system)
8601 (arguments
8602 `(#:phases
8603 (modify-phases %standard-phases
8604 (add-after 'install 'wrap-executable
8605 (lambda* (#:key inputs outputs #:allow-other-keys)
8606 (let* ((out (assoc-ref outputs "out"))
8607 (json (assoc-ref inputs "guile-json"))
8608 (redis (assoc-ref inputs "guile-redis"))
8609 (path (string-append
8610 json "/share/guile/site/2.2:"
8611 redis "/share/guile/site/2.2")))
8612 (wrap-program (string-append out "/bin/rcas-web")
8613 `("GUILE_LOAD_PATH" ":" = (,path))
8614 `("GUILE_LOAD_COMPILED_PATH" ":" = (,path))
8615 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
8616 #t)))))
8617 (inputs
8618 `(("r-minimal" ,r-minimal)
8619 ("r-rcas" ,r-rcas)
8620 ("guile-next" ,guile-2.2)
8621 ("guile-json" ,guile-json)
8622 ("guile-redis" ,guile2.2-redis)))
8623 (native-inputs
8624 `(("pkg-config" ,pkg-config)))
8625 (home-page "https://github.com/BIMSBbioinfo/rcas-web")
8626 (synopsis "Web interface for RNA-centric annotation system (RCAS)")
8627 (description "This package provides a simple web interface for the
8628 @dfn{RNA-centric annotation system} (RCAS).")
8629 (license license:agpl3+)))
8630
8631 (define-public r-mutationalpatterns
8632 (package
8633 (name "r-mutationalpatterns")
8634 (version "1.6.1")
8635 (source
8636 (origin
8637 (method url-fetch)
8638 (uri (bioconductor-uri "MutationalPatterns" version))
8639 (sha256
8640 (base32
8641 "1yq7351j42mjxn8fd3c5bdxzb2l5s4lvqhjdvv4rwj4f600n6wj9"))))
8642 (build-system r-build-system)
8643 (propagated-inputs
8644 `(("r-biocgenerics" ,r-biocgenerics)
8645 ("r-biostrings" ,r-biostrings)
8646 ;; These two packages are suggested packages
8647 ("r-bsgenome-hsapiens-1000g" ,r-bsgenome-hsapiens-1000genomes-hs37d5)
8648 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8649 ("r-genomicranges" ,r-genomicranges)
8650 ("r-genomeinfodb" ,r-genomeinfodb)
8651 ("r-ggplot2" ,r-ggplot2)
8652 ("r-iranges" ,r-iranges)
8653 ("r-nmf" ,r-nmf)
8654 ("r-plyr" ,r-plyr)
8655 ("r-pracma" ,r-pracma)
8656 ("r-reshape2" ,r-reshape2)
8657 ("r-cowplot" ,r-cowplot)
8658 ("r-ggdendro" ,r-ggdendro)
8659 ("r-s4vectors" ,r-s4vectors)
8660 ("r-summarizedexperiment" ,r-summarizedexperiment)
8661 ("r-variantannotation" ,r-variantannotation)))
8662 (home-page "https://bioconductor.org/packages/MutationalPatterns/")
8663 (synopsis "Extract and visualize mutational patterns in genomic data")
8664 (description "This package provides an extensive toolset for the
8665 characterization and visualization of a wide range of mutational patterns
8666 in SNV base substitution data.")
8667 (license license:expat)))
8668
8669 (define-public r-wgcna
8670 (package
8671 (name "r-wgcna")
8672 (version "1.63")
8673 (source
8674 (origin
8675 (method url-fetch)
8676 (uri (cran-uri "WGCNA" version))
8677 (sha256
8678 (base32
8679 "1225dqm68bynkmklnsxdqdd3zqrpzbvqwyly8ibxmk75z33xz309"))))
8680 (properties `((upstream-name . "WGCNA")))
8681 (build-system r-build-system)
8682 (propagated-inputs
8683 `(("r-annotationdbi" ,r-annotationdbi)
8684 ("r-doparallel" ,r-doparallel)
8685 ("r-dynamictreecut" ,r-dynamictreecut)
8686 ("r-fastcluster" ,r-fastcluster)
8687 ("r-foreach" ,r-foreach)
8688 ("r-go-db" ,r-go-db)
8689 ("r-hmisc" ,r-hmisc)
8690 ("r-impute" ,r-impute)
8691 ("r-rcpp" ,r-rcpp)
8692 ("r-robust" ,r-robust)
8693 ("r-survival" ,r-survival)
8694 ("r-matrixstats" ,r-matrixstats)
8695 ("r-preprocesscore" ,r-preprocesscore)))
8696 (home-page
8697 "http://www.genetics.ucla.edu/labs/horvath/CoexpressionNetwork/Rpackages/WGCNA/")
8698 (synopsis "Weighted correlation network analysis")
8699 (description
8700 "This package provides functions necessary to perform Weighted
8701 Correlation Network Analysis on high-dimensional data. It includes functions
8702 for rudimentary data cleaning, construction and summarization of correlation
8703 networks, module identification and functions for relating both variables and
8704 modules to sample traits. It also includes a number of utility functions for
8705 data manipulation and visualization.")
8706 (license license:gpl2+)))
8707
8708 (define-public r-chipkernels
8709 (let ((commit "c9cfcacb626b1221094fb3490ea7bac0fd625372")
8710 (revision "1"))
8711 (package
8712 (name "r-chipkernels")
8713 (version (string-append "1.1-" revision "." (string-take commit 9)))
8714 (source
8715 (origin
8716 (method git-fetch)
8717 (uri (git-reference
8718 (url "https://github.com/ManuSetty/ChIPKernels.git")
8719 (commit commit)))
8720 (file-name (string-append name "-" version))
8721 (sha256
8722 (base32
8723 "14bj5qhjm1hsm9ay561nfbqi9wxsa7y487df2idsaaf6z10nw4v0"))))
8724 (build-system r-build-system)
8725 (propagated-inputs
8726 `(("r-iranges" ,r-iranges)
8727 ("r-xvector" ,r-xvector)
8728 ("r-biostrings" ,r-biostrings)
8729 ("r-bsgenome" ,r-bsgenome)
8730 ("r-gtools" ,r-gtools)
8731 ("r-genomicranges" ,r-genomicranges)
8732 ("r-sfsmisc" ,r-sfsmisc)
8733 ("r-kernlab" ,r-kernlab)
8734 ("r-s4vectors" ,r-s4vectors)
8735 ("r-biocgenerics" ,r-biocgenerics)))
8736 (home-page "https://github.com/ManuSetty/ChIPKernels")
8737 (synopsis "Build string kernels for DNA Sequence analysis")
8738 (description "ChIPKernels is an R package for building different string
8739 kernels used for DNA Sequence analysis. A dictionary of the desired kernel
8740 must be built and this dictionary can be used for determining kernels for DNA
8741 Sequences.")
8742 (license license:gpl2+))))
8743
8744 (define-public r-seqgl
8745 (package
8746 (name "r-seqgl")
8747 (version "1.1.4")
8748 (source
8749 (origin
8750 (method url-fetch)
8751 (uri (string-append "https://github.com/ManuSetty/SeqGL/"
8752 "archive/" version ".tar.gz"))
8753 (file-name (string-append name "-" version ".tar.gz"))
8754 (sha256
8755 (base32
8756 "0pnk1p3sci5yipyc8xnb6jbmydpl80fld927xgnbcv104hy8h8yh"))))
8757 (build-system r-build-system)
8758 (propagated-inputs
8759 `(("r-biostrings" ,r-biostrings)
8760 ("r-chipkernels" ,r-chipkernels)
8761 ("r-genomicranges" ,r-genomicranges)
8762 ("r-spams" ,r-spams)
8763 ("r-wgcna" ,r-wgcna)
8764 ("r-fastcluster" ,r-fastcluster)))
8765 (home-page "https://github.com/ManuSetty/SeqGL")
8766 (synopsis "Group lasso for Dnase/ChIP-seq data")
8767 (description "SeqGL is a group lasso based algorithm to extract
8768 transcription factor sequence signals from ChIP, DNase and ATAC-seq profiles.
8769 This package presents a method which uses group lasso to discriminate between
8770 bound and non bound genomic regions to accurately identify transcription
8771 factors bound at the specific regions.")
8772 (license license:gpl2+)))
8773
8774 (define-public r-gkmsvm
8775 (package
8776 (name "r-gkmsvm")
8777 (version "0.79.0")
8778 (source
8779 (origin
8780 (method url-fetch)
8781 (uri (cran-uri "gkmSVM" version))
8782 (sha256
8783 (base32
8784 "04dakbgfvfalz4rm4fvvybp506dn5fbj5g86ybfhrc6wywjllsz3"))))
8785 (properties `((upstream-name . "gkmSVM")))
8786 (build-system r-build-system)
8787 (propagated-inputs
8788 `(("r-biocgenerics" ,r-biocgenerics)
8789 ("r-biostrings" ,r-biostrings)
8790 ("r-genomeinfodb" ,r-genomeinfodb)
8791 ("r-genomicranges" ,r-genomicranges)
8792 ("r-iranges" ,r-iranges)
8793 ("r-kernlab" ,r-kernlab)
8794 ("r-rcpp" ,r-rcpp)
8795 ("r-rocr" ,r-rocr)
8796 ("r-rtracklayer" ,r-rtracklayer)
8797 ("r-s4vectors" ,r-s4vectors)
8798 ("r-seqinr" ,r-seqinr)))
8799 (home-page "https://cran.r-project.org/web/packages/gkmSVM")
8800 (synopsis "Gapped-kmer support vector machine")
8801 (description
8802 "This R package provides tools for training gapped-kmer SVM classifiers
8803 for DNA and protein sequences. This package supports several sequence
8804 kernels, including: gkmSVM, kmer-SVM, mismatch kernel and wildcard kernel.")
8805 (license license:gpl2+)))
8806
8807 (define-public r-tximport
8808 (package
8809 (name "r-tximport")
8810 (version "1.8.0")
8811 (source (origin
8812 (method url-fetch)
8813 (uri (bioconductor-uri "tximport" version))
8814 (sha256
8815 (base32
8816 "1qjc7ah9dzccpvcjrp9k4qnaz13x6kvy1c1xpdj503km6k528lip"))))
8817 (build-system r-build-system)
8818 (home-page "https://bioconductor.org/packages/tximport")
8819 (synopsis "Import and summarize transcript-level estimates for gene-level analysis")
8820 (description
8821 "This package provides tools to import transcript-level abundance,
8822 estimated counts and transcript lengths, and to summarize them into matrices
8823 for use with downstream gene-level analysis packages. Average transcript
8824 length, weighted by sample-specific transcript abundance estimates, is
8825 provided as a matrix which can be used as an offset for different expression
8826 of gene-level counts.")
8827 (license license:gpl2+)))
8828
8829 (define-public r-rhdf5
8830 (package
8831 (name "r-rhdf5")
8832 (version "2.24.0")
8833 (source (origin
8834 (method url-fetch)
8835 (uri (bioconductor-uri "rhdf5" version))
8836 (sha256
8837 (base32
8838 "15cmmchhk8bnp94gxg0zk9qyzdjx5kv16dzpbnb62mkq7ydmifx6"))))
8839 (build-system r-build-system)
8840 (propagated-inputs
8841 `(("r-rhdf5lib" ,r-rhdf5lib)))
8842 (inputs
8843 `(("zlib" ,zlib)))
8844 (home-page "https://bioconductor.org/packages/rhdf5")
8845 (synopsis "HDF5 interface to R")
8846 (description
8847 "This R/Bioconductor package provides an interface between HDF5 and R.
8848 HDF5's main features are the ability to store and access very large and/or
8849 complex datasets and a wide variety of metadata on mass storage (disk) through
8850 a completely portable file format. The rhdf5 package is thus suited for the
8851 exchange of large and/or complex datasets between R and other software
8852 package, and for letting R applications work on datasets that are larger than
8853 the available RAM.")
8854 (license license:artistic2.0)))
8855
8856 (define-public r-annotationfilter
8857 (package
8858 (name "r-annotationfilter")
8859 (version "1.4.0")
8860 (source (origin
8861 (method url-fetch)
8862 (uri (bioconductor-uri "AnnotationFilter" version))
8863 (sha256
8864 (base32
8865 "1w8ypfdz4g7vnwfrvnhjcpm8waciqyq2cn883ajdwg4vv7a5mj9a"))))
8866 (properties
8867 `((upstream-name . "AnnotationFilter")))
8868 (build-system r-build-system)
8869 (propagated-inputs
8870 `(("r-genomicranges" ,r-genomicranges)
8871 ("r-lazyeval" ,r-lazyeval)))
8872 (home-page "https://github.com/Bioconductor/AnnotationFilter")
8873 (synopsis "Facilities for filtering Bioconductor annotation resources")
8874 (description
8875 "This package provides classes and other infrastructure to implement
8876 filters for manipulating Bioconductor annotation resources. The filters are
8877 used by @code{ensembldb}, @code{Organism.dplyr}, and other packages.")
8878 (license license:artistic2.0)))
8879
8880 (define-public emboss
8881 (package
8882 (name "emboss")
8883 (version "6.5.7")
8884 (source (origin
8885 (method url-fetch)
8886 (uri (string-append "ftp://emboss.open-bio.org/pub/EMBOSS/old/"
8887 (version-major+minor version) ".0/"
8888 "EMBOSS-" version ".tar.gz"))
8889 (sha256
8890 (base32
8891 "0vsmz96gc411yj2iyzdrsmg4l2n1nhgmp7vrgzlxx3xixv9xbf0q"))))
8892 (build-system gnu-build-system)
8893 (arguments
8894 `(#:configure-flags
8895 (list (string-append "--with-hpdf="
8896 (assoc-ref %build-inputs "libharu")))
8897 #:phases
8898 (modify-phases %standard-phases
8899 (add-after 'unpack 'fix-checks
8900 (lambda _
8901 ;; The PNGDRIVER tests check for the presence of libgd, libpng
8902 ;; and zlib, but assume that they are all found at the same
8903 ;; prefix.
8904 (substitute* "configure.in"
8905 (("CHECK_PNGDRIVER")
8906 "LIBS=\"$LIBS -lgd -lpng -lz -lm\"
8907 AC_DEFINE([PLD_png], [1], [Define to 1 if PNG support is available])
8908 AM_CONDITIONAL(AMPNG, true)"))
8909 #t))
8910 (add-after 'fix-checks 'disable-update-check
8911 (lambda _
8912 ;; At build time there is no connection to the Internet, so
8913 ;; looking for updates will not work.
8914 (substitute* "Makefile.am"
8915 (("\\$\\(bindir\\)/embossupdate") ""))
8916 #t))
8917 (add-after 'disable-update-check 'autogen
8918 (lambda _ (zero? (system* "autoreconf" "-vif")))))))
8919 (inputs
8920 `(("perl" ,perl)
8921 ("libpng" ,libpng)
8922 ("gd" ,gd)
8923 ("libx11" ,libx11)
8924 ("libharu" ,libharu)
8925 ("zlib" ,zlib)))
8926 (native-inputs
8927 `(("autoconf" ,autoconf)
8928 ("automake" ,automake)
8929 ("libtool" ,libtool)
8930 ("pkg-config" ,pkg-config)))
8931 (home-page "http://emboss.sourceforge.net")
8932 (synopsis "Molecular biology analysis suite")
8933 (description "EMBOSS is the \"European Molecular Biology Open Software
8934 Suite\". EMBOSS is an analysis package specially developed for the needs of
8935 the molecular biology (e.g. EMBnet) user community. The software
8936 automatically copes with data in a variety of formats and even allows
8937 transparent retrieval of sequence data from the web. It also provides a
8938 number of libraries for the development of software in the field of molecular
8939 biology. EMBOSS also integrates a range of currently available packages and
8940 tools for sequence analysis into a seamless whole.")
8941 (license license:gpl2+)))
8942
8943 (define-public bits
8944 (let ((revision "1")
8945 (commit "3cc4567896d9d6442923da944beb704750a08d2d"))
8946 (package
8947 (name "bits")
8948 ;; The version is 2.13.0 even though no release archives have been
8949 ;; published as yet.
8950 (version (string-append "2.13.0-" revision "." (string-take commit 9)))
8951 (source (origin
8952 (method git-fetch)
8953 (uri (git-reference
8954 (url "https://github.com/arq5x/bits.git")
8955 (commit commit)))
8956 (file-name (string-append name "-" version "-checkout"))
8957 (sha256
8958 (base32
8959 "17n2kffk4kmhivd8c98g2vr6y1s23vbg4sxlxs689wni66797hbs"))))
8960 (build-system gnu-build-system)
8961 (arguments
8962 `(#:tests? #f ;no tests included
8963 #:phases
8964 (modify-phases %standard-phases
8965 (delete 'configure)
8966 (add-after 'unpack 'remove-cuda
8967 (lambda _
8968 (substitute* "Makefile"
8969 ((".*_cuda") "")
8970 (("(bits_test_intersections) \\\\" _ match) match))
8971 #t))
8972 (replace 'install
8973 (lambda* (#:key outputs #:allow-other-keys)
8974 (copy-recursively
8975 "bin" (string-append (assoc-ref outputs "out") "/bin"))
8976 #t)))))
8977 (inputs
8978 `(("gsl" ,gsl)
8979 ("zlib" ,zlib)))
8980 (home-page "https://github.com/arq5x/bits")
8981 (synopsis "Implementation of binary interval search algorithm")
8982 (description "This package provides an implementation of the
8983 BITS (Binary Interval Search) algorithm, an approach to interval set
8984 intersection. It is especially suited for the comparison of diverse genomic
8985 datasets and the exploration of large datasets of genome
8986 intervals (e.g. genes, sequence alignments).")
8987 (license license:gpl2))))
8988
8989 (define-public piranha
8990 ;; There is no release tarball for the latest version. The latest commit is
8991 ;; older than one year at the time of this writing.
8992 (let ((revision "1")
8993 (commit "0466d364b71117d01e4471b74c514436cc281233"))
8994 (package
8995 (name "piranha")
8996 (version (string-append "1.2.1-" revision "." (string-take commit 9)))
8997 (source (origin
8998 (method git-fetch)
8999 (uri (git-reference
9000 (url "https://github.com/smithlabcode/piranha.git")
9001 (commit commit)))
9002 (file-name (git-file-name name version))
9003 (sha256
9004 (base32
9005 "117dc0zf20c61jam69sk4abl57ah6yi6i7qra7d7y5zrbgk12q5n"))))
9006 (build-system gnu-build-system)
9007 (arguments
9008 `(#:test-target "test"
9009 #:phases
9010 (modify-phases %standard-phases
9011 (add-after 'unpack 'copy-smithlab-cpp
9012 (lambda* (#:key inputs #:allow-other-keys)
9013 (for-each (lambda (file)
9014 (install-file file "./src/smithlab_cpp/"))
9015 (find-files (assoc-ref inputs "smithlab-cpp")))
9016 #t))
9017 (add-after 'install 'install-to-store
9018 (lambda* (#:key outputs #:allow-other-keys)
9019 (let* ((out (assoc-ref outputs "out"))
9020 (bin (string-append out "/bin")))
9021 (for-each (lambda (file)
9022 (install-file file bin))
9023 (find-files "bin" ".*")))
9024 #t)))
9025 #:configure-flags
9026 (list (string-append "--with-bam_tools_headers="
9027 (assoc-ref %build-inputs "bamtools") "/include/bamtools")
9028 (string-append "--with-bam_tools_library="
9029 (assoc-ref %build-inputs "bamtools") "/lib/bamtools"))))
9030 (inputs
9031 `(("bamtools" ,bamtools)
9032 ("samtools" ,samtools-0.1)
9033 ("gsl" ,gsl)
9034 ("smithlab-cpp"
9035 ,(let ((commit "3723e2db438c51501d0423429ff396c3035ba46a"))
9036 (origin
9037 (method git-fetch)
9038 (uri (git-reference
9039 (url "https://github.com/smithlabcode/smithlab_cpp.git")
9040 (commit commit)))
9041 (file-name (string-append "smithlab_cpp-" commit "-checkout"))
9042 (sha256
9043 (base32
9044 "0l4gvbwslw5ngziskja41c00x1r06l3yidv7y0xw9djibhykzy0g")))))))
9045 (native-inputs
9046 `(("python" ,python-2)))
9047 (home-page "https://github.com/smithlabcode/piranha")
9048 (synopsis "Peak-caller for CLIP-seq and RIP-seq data")
9049 (description
9050 "Piranha is a peak-caller for genomic data produced by CLIP-seq and
9051 RIP-seq experiments. It takes input in BED or BAM format and identifies
9052 regions of statistically significant read enrichment. Additional covariates
9053 may optionally be provided to further inform the peak-calling process.")
9054 (license license:gpl3+))))
9055
9056 (define-public pepr
9057 (package
9058 (name "pepr")
9059 (version "1.0.9")
9060 (source (origin
9061 (method url-fetch)
9062 (uri (string-append "https://pypi.python.org/packages/source/P"
9063 "/PePr/PePr-" version ".tar.gz"))
9064 (sha256
9065 (base32
9066 "0qxjfdpl1b1y53nccws2d85f6k74zwmx8y8sd9rszcqhfayx6gdx"))))
9067 (build-system python-build-system)
9068 (arguments
9069 `(#:python ,python-2 ; python2 only
9070 #:tests? #f)) ; no tests included
9071 (propagated-inputs
9072 `(("python2-numpy" ,python2-numpy)
9073 ("python2-scipy" ,python2-scipy)
9074 ("python2-pysam" ,python2-pysam)))
9075 (home-page "https://github.com/shawnzhangyx/PePr")
9076 (synopsis "Peak-calling and prioritization pipeline for ChIP-Seq data")
9077 (description
9078 "PePr is a ChIP-Seq peak calling or differential binding analysis tool
9079 that is primarily designed for data with biological replicates. It uses a
9080 negative binomial distribution to model the read counts among the samples in
9081 the same group, and look for consistent differences between ChIP and control
9082 group or two ChIP groups run under different conditions.")
9083 (license license:gpl3+)))
9084
9085 (define-public filevercmp
9086 (let ((commit "1a9b779b93d0b244040274794d402106907b71b7"))
9087 (package
9088 (name "filevercmp")
9089 (version (string-append "0-1." (string-take commit 7)))
9090 (source (origin
9091 (method url-fetch)
9092 (uri (string-append "https://github.com/ekg/filevercmp/archive/"
9093 commit ".tar.gz"))
9094 (file-name (string-append name "-" version ".tar.gz"))
9095 (sha256
9096 (base32 "0yp5jswf5j2pqc6517x277s4s6h1ss99v57kxw9gy0jkfl3yh450"))))
9097 (build-system gnu-build-system)
9098 (arguments
9099 `(#:tests? #f ; There are no tests to run.
9100 #:phases
9101 (modify-phases %standard-phases
9102 (delete 'configure) ; There is no configure phase.
9103 (replace 'install
9104 (lambda* (#:key outputs #:allow-other-keys)
9105 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
9106 (install-file "filevercmp" bin)))))))
9107 (home-page "https://github.com/ekg/filevercmp")
9108 (synopsis "This program compares version strings")
9109 (description "This program compares version strings. It intends to be a
9110 replacement for strverscmp.")
9111 (license license:gpl3+))))
9112
9113 (define-public multiqc
9114 (package
9115 (name "multiqc")
9116 (version "1.5")
9117 (source
9118 (origin
9119 (method url-fetch)
9120 (uri (pypi-uri "multiqc" version))
9121 (sha256
9122 (base32
9123 "02iihfl0w0hpnr4pa0sbd1y9qxrg3ycyhjp5lidkcrqh1lmzs3zy"))))
9124 (build-system python-build-system)
9125 (propagated-inputs
9126 `(("python-jinja2" ,python-jinja2)
9127 ("python-simplejson" ,python-simplejson)
9128 ("python-pyyaml" ,python-pyyaml)
9129 ("python-click" ,python-click)
9130 ("python-spectra" ,python-spectra)
9131 ("python-requests" ,python-requests)
9132 ("python-markdown" ,python-markdown)
9133 ("python-lzstring" ,python-lzstring)
9134 ("python-matplotlib" ,python-matplotlib)
9135 ("python-numpy" ,python-numpy)
9136 ;; MultQC checks for the presence of nose at runtime.
9137 ("python-nose" ,python-nose)))
9138 (arguments
9139 `(#:phases
9140 (modify-phases %standard-phases
9141 (add-after 'unpack 'relax-requirements
9142 (lambda _
9143 (substitute* "setup.py"
9144 ;; MultiQC 1.5 ‘requires’ a version of python-matplotlib older
9145 ;; than the one in Guix, but should work fine with 2.2.2.
9146 ;; See <https://github.com/ewels/MultiQC/issues/725> and
9147 ;; <https://github.com/ewels/MultiQC/issues/732> for details.
9148 (("['\"]matplotlib.*?['\"]")
9149 "'matplotlib'"))
9150 #t)))))
9151 (home-page "http://multiqc.info")
9152 (synopsis "Aggregate bioinformatics analysis reports")
9153 (description
9154 "MultiQC is a tool to aggregate bioinformatics results across many
9155 samples into a single report. It contains modules for a large number of
9156 common bioinformatics tools.")
9157 (license license:gpl3+)))
9158
9159 (define-public r-chipseq
9160 (package
9161 (name "r-chipseq")
9162 (version "1.30.0")
9163 (source
9164 (origin
9165 (method url-fetch)
9166 (uri (bioconductor-uri "chipseq" version))
9167 (sha256
9168 (base32
9169 "09f8dgl5ni75qkf7nvvppwr3irpplv4xb3ks59ld7l8i2mplcrx7"))))
9170 (build-system r-build-system)
9171 (propagated-inputs
9172 `(("r-biocgenerics" ,r-biocgenerics)
9173 ("r-genomicranges" ,r-genomicranges)
9174 ("r-iranges" ,r-iranges)
9175 ("r-lattice" ,r-lattice)
9176 ("r-s4vectors" ,r-s4vectors)
9177 ("r-shortread" ,r-shortread)))
9178 (home-page "https://bioconductor.org/packages/chipseq")
9179 (synopsis "Package for analyzing ChIPseq data")
9180 (description
9181 "This package provides tools for processing short read data from ChIPseq
9182 experiments.")
9183 (license license:artistic2.0)))
9184
9185 (define-public r-copyhelper
9186 (package
9187 (name "r-copyhelper")
9188 (version "1.6.0")
9189 (source
9190 (origin
9191 (method url-fetch)
9192 (uri (string-append "https://bioconductor.org/packages/release/"
9193 "data/experiment/src/contrib/CopyhelpeR_"
9194 version ".tar.gz"))
9195 (sha256
9196 (base32
9197 "0x7cyynjmxls9as2gg0iyp9x5fpalxmdjq914ss7i84i9zyk5bhq"))))
9198 (properties `((upstream-name . "CopyhelpeR")))
9199 (build-system r-build-system)
9200 (home-page "https://bioconductor.org/packages/CopyhelpeR/")
9201 (synopsis "Helper files for CopywriteR")
9202 (description
9203 "This package contains the helper files that are required to run the
9204 Bioconductor package CopywriteR. It contains pre-assembled 1kb bin GC-content
9205 and mappability files for the reference genomes hg18, hg19, hg38, mm9 and
9206 mm10. In addition, it contains a blacklist filter to remove regions that
9207 display copy number variation. Files are stored as GRanges objects from the
9208 GenomicRanges Bioconductor package.")
9209 (license license:gpl2)))
9210
9211 (define-public r-copywriter
9212 (package
9213 (name "r-copywriter")
9214 (version "2.12.0")
9215 (source
9216 (origin
9217 (method url-fetch)
9218 (uri (bioconductor-uri "CopywriteR" version))
9219 (sha256
9220 (base32
9221 "0b7xwq1va2zclb54f07c5ipmmq4iv2hrlph3j93jz5hmyayv50z3"))))
9222 (properties `((upstream-name . "CopywriteR")))
9223 (build-system r-build-system)
9224 (propagated-inputs
9225 `(("r-biocparallel" ,r-biocparallel)
9226 ("r-chipseq" ,r-chipseq)
9227 ("r-copyhelper" ,r-copyhelper)
9228 ("r-data-table" ,r-data-table)
9229 ("r-dnacopy" ,r-dnacopy)
9230 ("r-futile-logger" ,r-futile-logger)
9231 ("r-genomeinfodb" ,r-genomeinfodb)
9232 ("r-genomicalignments" ,r-genomicalignments)
9233 ("r-genomicranges" ,r-genomicranges)
9234 ("r-gtools" ,r-gtools)
9235 ("r-iranges" ,r-iranges)
9236 ("r-matrixstats" ,r-matrixstats)
9237 ("r-rsamtools" ,r-rsamtools)
9238 ("r-s4vectors" ,r-s4vectors)))
9239 (home-page "https://github.com/PeeperLab/CopywriteR")
9240 (synopsis "Copy number information from targeted sequencing")
9241 (description
9242 "CopywriteR extracts DNA copy number information from targeted sequencing
9243 by utilizing off-target reads. It allows for extracting uniformly distributed
9244 copy number information, can be used without reference, and can be applied to
9245 sequencing data obtained from various techniques including chromatin
9246 immunoprecipitation and target enrichment on small gene panels. Thereby,
9247 CopywriteR constitutes a widely applicable alternative to available copy
9248 number detection tools.")
9249 (license license:gpl2)))
9250
9251 (define-public r-methylkit
9252 (package
9253 (name "r-methylkit")
9254 (version "1.6.1")
9255 (source (origin
9256 (method url-fetch)
9257 (uri (bioconductor-uri "methylKit" version))
9258 (sha256
9259 (base32
9260 "1hr2czi5ybdf7hdmqsv39d17f3mvmw94wa38bc14zzm9mgy9gfy7"))))
9261 (properties `((upstream-name . "methylKit")))
9262 (build-system r-build-system)
9263 (propagated-inputs
9264 `(("r-data-table" ,r-data-table)
9265 ("r-emdbook" ,r-emdbook)
9266 ("r-fastseg" ,r-fastseg)
9267 ("r-genomeinfodb" ,r-genomeinfodb)
9268 ("r-genomicranges" ,r-genomicranges)
9269 ("r-gtools" ,r-gtools)
9270 ("r-iranges" ,r-iranges)
9271 ("r-kernsmooth" ,r-kernsmooth)
9272 ("r-limma" ,r-limma)
9273 ("r-mclust" ,r-mclust)
9274 ("r-qvalue" ,r-qvalue)
9275 ("r-r-utils" ,r-r-utils)
9276 ("r-rcpp" ,r-rcpp)
9277 ("r-rhtslib" ,r-rhtslib)
9278 ("r-rsamtools" ,r-rsamtools)
9279 ("r-rtracklayer" ,r-rtracklayer)
9280 ("r-s4vectors" ,r-s4vectors)
9281 ("r-zlibbioc" ,r-zlibbioc)))
9282 (inputs
9283 `(("zlib" ,zlib)))
9284 (home-page "https://github.com/al2na/methylKit")
9285 (synopsis
9286 "DNA methylation analysis from high-throughput bisulfite sequencing results")
9287 (description
9288 "MethylKit is an R package for DNA methylation analysis and annotation
9289 from high-throughput bisulfite sequencing. The package is designed to deal
9290 with sequencing data from @dfn{Reduced representation bisulfite
9291 sequencing} (RRBS) and its variants, but also target-capture methods and whole
9292 genome bisulfite sequencing. It also has functions to analyze base-pair
9293 resolution 5hmC data from experimental protocols such as oxBS-Seq and
9294 TAB-Seq.")
9295 (license license:artistic2.0)))
9296
9297 (define-public r-sva
9298 (package
9299 (name "r-sva")
9300 (version "3.28.0")
9301 (source
9302 (origin
9303 (method url-fetch)
9304 (uri (bioconductor-uri "sva" version))
9305 (sha256
9306 (base32
9307 "0a3jqbz0jp1jxrnjkqfpmca840yqcdwxprdl608bzzx2zb4jl52s"))))
9308 (build-system r-build-system)
9309 (propagated-inputs
9310 `(("r-genefilter" ,r-genefilter)
9311 ("r-mgcv" ,r-mgcv)
9312 ("r-biocparallel" ,r-biocparallel)
9313 ("r-matrixstats" ,r-matrixstats)
9314 ("r-limma" ,r-limma)))
9315 (home-page "https://bioconductor.org/packages/sva")
9316 (synopsis "Surrogate variable analysis")
9317 (description
9318 "This package contains functions for removing batch effects and other
9319 unwanted variation in high-throughput experiment. It also contains functions
9320 for identifying and building surrogate variables for high-dimensional data
9321 sets. Surrogate variables are covariates constructed directly from
9322 high-dimensional data like gene expression/RNA sequencing/methylation/brain
9323 imaging data that can be used in subsequent analyses to adjust for unknown,
9324 unmodeled, or latent sources of noise.")
9325 (license license:artistic2.0)))
9326
9327 (define-public r-seqminer
9328 (package
9329 (name "r-seqminer")
9330 (version "6.0")
9331 (source
9332 (origin
9333 (method url-fetch)
9334 (uri (cran-uri "seqminer" version))
9335 (sha256
9336 (base32
9337 "057j1l6dip35l1aivilapl2zv9db677b3di2pb3sfgq2sxg0ps3l"))))
9338 (build-system r-build-system)
9339 (inputs
9340 `(("zlib" ,zlib)))
9341 (home-page "http://seqminer.genomic.codes")
9342 (synopsis "Read nucleotide sequence data (VCF, BCF, and METAL formats)")
9343 (description
9344 "This package provides tools to integrate nucleotide sequencing
9345 data (variant call format, e.g. VCF or BCF) or meta-analysis results in R.")
9346 ;; Any version of the GPL is acceptable
9347 (license (list license:gpl2+ license:gpl3+))))
9348
9349 (define-public r-raremetals2
9350 (package
9351 (name "r-raremetals2")
9352 (version "0.1")
9353 (source
9354 (origin
9355 (method url-fetch)
9356 (uri (string-append "http://genome.sph.umich.edu/w/images/"
9357 "b/b7/RareMETALS2_" version ".tar.gz"))
9358 (sha256
9359 (base32
9360 "0z5ljcgvnm06ja9lm85a3cniq7slxcy37aqqkxrdidr79an5fs4s"))))
9361 (properties `((upstream-name . "RareMETALS2")))
9362 (build-system r-build-system)
9363 (propagated-inputs
9364 `(("r-seqminer" ,r-seqminer)
9365 ("r-mvtnorm" ,r-mvtnorm)
9366 ("r-mass" ,r-mass)
9367 ("r-compquadform" ,r-compquadform)
9368 ("r-getopt" ,r-getopt)))
9369 (home-page "http://genome.sph.umich.edu/wiki/RareMETALS2")
9370 (synopsis "Analyze gene-level association tests for binary trait")
9371 (description
9372 "The R package rareMETALS2 is an extension of the R package rareMETALS.
9373 It was designed to meta-analyze gene-level association tests for binary trait.
9374 While rareMETALS offers a near-complete solution for meta-analysis of
9375 gene-level tests for quantitative trait, it does not offer the optimal
9376 solution for binary trait. The package rareMETALS2 offers improved features
9377 for analyzing gene-level association tests in meta-analyses for binary
9378 trait.")
9379 (license license:gpl3)))
9380
9381 (define-public r-maldiquant
9382 (package
9383 (name "r-maldiquant")
9384 (version "1.17")
9385 (source
9386 (origin
9387 (method url-fetch)
9388 (uri (cran-uri "MALDIquant" version))
9389 (sha256
9390 (base32
9391 "047s6007ydc38x8wm027mlb4mngz15n0d4238fr8h43wyll5zy0z"))))
9392 (properties `((upstream-name . "MALDIquant")))
9393 (build-system r-build-system)
9394 (home-page "https://cran.r-project.org/web/packages/MALDIquant")
9395 (synopsis "Quantitative analysis of mass spectrometry data")
9396 (description
9397 "This package provides a complete analysis pipeline for matrix-assisted
9398 laser desorption/ionization-time-of-flight (MALDI-TOF) and other
9399 two-dimensional mass spectrometry data. In addition to commonly used plotting
9400 and processing methods it includes distinctive features, namely baseline
9401 subtraction methods such as morphological filters (TopHat) or the
9402 statistics-sensitive non-linear iterative peak-clipping algorithm (SNIP), peak
9403 alignment using warping functions, handling of replicated measurements as well
9404 as allowing spectra with different resolutions.")
9405 (license license:gpl3+)))
9406
9407 (define-public r-protgenerics
9408 (package
9409 (name "r-protgenerics")
9410 (version "1.12.0")
9411 (source
9412 (origin
9413 (method url-fetch)
9414 (uri (bioconductor-uri "ProtGenerics" version))
9415 (sha256
9416 (base32
9417 "05jbadw2aiwy8vi2ia0jxg06cmwhly2cq4dy1ag7kdxf1c5i9ccn"))))
9418 (properties `((upstream-name . "ProtGenerics")))
9419 (build-system r-build-system)
9420 (home-page "https://github.com/lgatto/ProtGenerics")
9421 (synopsis "S4 generic functions for proteomics infrastructure")
9422 (description
9423 "This package provides S4 generic functions needed by Bioconductor
9424 proteomics packages.")
9425 (license license:artistic2.0)))
9426
9427 (define-public r-mzr
9428 (package
9429 (name "r-mzr")
9430 (version "2.14.0")
9431 (source
9432 (origin
9433 (method url-fetch)
9434 (uri (bioconductor-uri "mzR" version))
9435 (sha256
9436 (base32
9437 "190m2bq5bqxhljaj4f7vz9wj5h5laaxd8zp5jampnql6xc4zmarg"))
9438 (modules '((guix build utils)))
9439 (snippet
9440 '(begin
9441 (delete-file-recursively "src/boost")
9442 #t))))
9443 (properties `((upstream-name . "mzR")))
9444 (build-system r-build-system)
9445 (arguments
9446 `(#:phases
9447 (modify-phases %standard-phases
9448 (add-after 'unpack 'use-system-boost
9449 (lambda _
9450 (substitute* "src/Makevars"
9451 (("\\./boost/libs.*") "")
9452 (("ARCH_OBJS=" line)
9453 (string-append line
9454 "\nARCH_LIBS=-lboost_system -lboost_regex \
9455 -lboost_iostreams -lboost_thread -lboost_filesystem -lboost_chrono\n")))
9456 #t)))))
9457 (inputs
9458 `(("boost" ,boost) ; use this instead of the bundled boost sources
9459 ("netcdf" ,netcdf)
9460 ("zlib" ,zlib)))
9461 (propagated-inputs
9462 `(("r-biobase" ,r-biobase)
9463 ("r-biocgenerics" ,r-biocgenerics)
9464 ("r-protgenerics" ,r-protgenerics)
9465 ("r-rcpp" ,r-rcpp)
9466 ("r-rhdf5lib" ,r-rhdf5lib)
9467 ("r-zlibbioc" ,r-zlibbioc)))
9468 (home-page "https://github.com/sneumann/mzR/")
9469 (synopsis "Parser for mass spectrometry data files")
9470 (description
9471 "The mzR package provides a unified API to the common file formats and
9472 parsers available for mass spectrometry data. It comes with a wrapper for the
9473 ISB random access parser for mass spectrometry mzXML, mzData and mzML files.
9474 The package contains the original code written by the ISB, and a subset of the
9475 proteowizard library for mzML and mzIdentML. The netCDF reading code has
9476 previously been used in XCMS.")
9477 (license license:artistic2.0)))
9478
9479 (define-public r-affyio
9480 (package
9481 (name "r-affyio")
9482 (version "1.50.0")
9483 (source
9484 (origin
9485 (method url-fetch)
9486 (uri (bioconductor-uri "affyio" version))
9487 (sha256
9488 (base32
9489 "0sh5wnnchyfpq5n6rchbqmb27byn7kdzn5rgran6i39c81i5z22n"))))
9490 (build-system r-build-system)
9491 (propagated-inputs
9492 `(("r-zlibbioc" ,r-zlibbioc)))
9493 (inputs
9494 `(("zlib" ,zlib)))
9495 (home-page "https://github.com/bmbolstad/affyio")
9496 (synopsis "Tools for parsing Affymetrix data files")
9497 (description
9498 "This package provides routines for parsing Affymetrix data files based
9499 upon file format information. The primary focus is on accessing the CEL and
9500 CDF file formats.")
9501 (license license:lgpl2.0+)))
9502
9503 (define-public r-affy
9504 (package
9505 (name "r-affy")
9506 (version "1.58.0")
9507 (source
9508 (origin
9509 (method url-fetch)
9510 (uri (bioconductor-uri "affy" version))
9511 (sha256
9512 (base32
9513 "0sxq875sigm21sf3qncrfrwfdz9nqw1vldxn3d3hj6aq64jg1ki6"))))
9514 (build-system r-build-system)
9515 (propagated-inputs
9516 `(("r-affyio" ,r-affyio)
9517 ("r-biobase" ,r-biobase)
9518 ("r-biocgenerics" ,r-biocgenerics)
9519 ("r-biocinstaller" ,r-biocinstaller)
9520 ("r-preprocesscore" ,r-preprocesscore)
9521 ("r-zlibbioc" ,r-zlibbioc)))
9522 (inputs
9523 `(("zlib" ,zlib)))
9524 (home-page "https://bioconductor.org/packages/affy")
9525 (synopsis "Methods for affymetrix oligonucleotide arrays")
9526 (description
9527 "This package contains functions for exploratory oligonucleotide array
9528 analysis.")
9529 (license license:lgpl2.0+)))
9530
9531 (define-public r-vsn
9532 (package
9533 (name "r-vsn")
9534 (version "3.48.1")
9535 (source
9536 (origin
9537 (method url-fetch)
9538 (uri (bioconductor-uri "vsn" version))
9539 (sha256
9540 (base32
9541 "0k6mah3g3zqbfap31xmvig4fn452a18xwwa5y0mfj5mj8588p57h"))))
9542 (build-system r-build-system)
9543 (propagated-inputs
9544 `(("r-affy" ,r-affy)
9545 ("r-biobase" ,r-biobase)
9546 ("r-ggplot2" ,r-ggplot2)
9547 ("r-lattice" ,r-lattice)
9548 ("r-limma" ,r-limma)))
9549 (home-page "https://bioconductor.org/packages/release/bioc/html/vsn.html")
9550 (synopsis "Variance stabilization and calibration for microarray data")
9551 (description
9552 "The package implements a method for normalising microarray intensities,
9553 and works for single- and multiple-color arrays. It can also be used for data
9554 from other technologies, as long as they have similar format. The method uses
9555 a robust variant of the maximum-likelihood estimator for an
9556 additive-multiplicative error model and affine calibration. The model
9557 incorporates data calibration step (a.k.a. normalization), a model for the
9558 dependence of the variance on the mean intensity and a variance stabilizing
9559 data transformation. Differences between transformed intensities are
9560 analogous to \"normalized log-ratios\". However, in contrast to the latter,
9561 their variance is independent of the mean, and they are usually more sensitive
9562 and specific in detecting differential transcription.")
9563 (license license:artistic2.0)))
9564
9565 (define-public r-mzid
9566 (package
9567 (name "r-mzid")
9568 (version "1.18.0")
9569 (source
9570 (origin
9571 (method url-fetch)
9572 (uri (bioconductor-uri "mzID" version))
9573 (sha256
9574 (base32
9575 "060k0xlhg8q802c6zsb4b8ps0ccd9ybyaz0gnsvqkxb786i2vk40"))))
9576 (properties `((upstream-name . "mzID")))
9577 (build-system r-build-system)
9578 (propagated-inputs
9579 `(("r-doparallel" ,r-doparallel)
9580 ("r-foreach" ,r-foreach)
9581 ("r-iterators" ,r-iterators)
9582 ("r-plyr" ,r-plyr)
9583 ("r-protgenerics" ,r-protgenerics)
9584 ("r-rcpp" ,r-rcpp)
9585 ("r-xml" ,r-xml)))
9586 (home-page "https://bioconductor.org/packages/mzID")
9587 (synopsis "Parser for mzIdentML files")
9588 (description
9589 "This package provides a parser for mzIdentML files implemented using the
9590 XML package. The parser tries to be general and able to handle all types of
9591 mzIdentML files with the drawback of having less pretty output than a vendor
9592 specific parser.")
9593 (license license:gpl2+)))
9594
9595 (define-public r-pcamethods
9596 (package
9597 (name "r-pcamethods")
9598 (version "1.72.0")
9599 (source
9600 (origin
9601 (method url-fetch)
9602 (uri (bioconductor-uri "pcaMethods" version))
9603 (sha256
9604 (base32
9605 "0v99yf8m7ryh6z0r3z0ggpqfnflcq5bn1q1i1cl9b7q4p6b4sa07"))))
9606 (properties `((upstream-name . "pcaMethods")))
9607 (build-system r-build-system)
9608 (propagated-inputs
9609 `(("r-biobase" ,r-biobase)
9610 ("r-biocgenerics" ,r-biocgenerics)
9611 ("r-mass" ,r-mass)
9612 ("r-rcpp" ,r-rcpp)))
9613 (home-page "https://github.com/hredestig/pcamethods")
9614 (synopsis "Collection of PCA methods")
9615 (description
9616 "This package provides Bayesian PCA, Probabilistic PCA, Nipals PCA,
9617 Inverse Non-Linear PCA and the conventional SVD PCA. A cluster based method
9618 for missing value estimation is included for comparison. BPCA, PPCA and
9619 NipalsPCA may be used to perform PCA on incomplete data as well as for
9620 accurate missing value estimation. A set of methods for printing and plotting
9621 the results is also provided. All PCA methods make use of the same data
9622 structure (pcaRes) to provide a common interface to the PCA results.")
9623 (license license:gpl3+)))
9624
9625 (define-public r-msnbase
9626 (package
9627 (name "r-msnbase")
9628 (version "2.6.1")
9629 (source
9630 (origin
9631 (method url-fetch)
9632 (uri (bioconductor-uri "MSnbase" version))
9633 (sha256
9634 (base32
9635 "0zrpx9r93q5ca2zdak5rs2m9sjm0wjdra1xfj3d3sx6p5gzfyg6n"))))
9636 (properties `((upstream-name . "MSnbase")))
9637 (build-system r-build-system)
9638 (propagated-inputs
9639 `(("r-affy" ,r-affy)
9640 ("r-biobase" ,r-biobase)
9641 ("r-biocgenerics" ,r-biocgenerics)
9642 ("r-biocparallel" ,r-biocparallel)
9643 ("r-digest" ,r-digest)
9644 ("r-ggplot2" ,r-ggplot2)
9645 ("r-impute" ,r-impute)
9646 ("r-iranges" ,r-iranges)
9647 ("r-lattice" ,r-lattice)
9648 ("r-maldiquant" ,r-maldiquant)
9649 ("r-mass" ,r-mass)
9650 ("r-mzid" ,r-mzid)
9651 ("r-mzr" ,r-mzr)
9652 ("r-pcamethods" ,r-pcamethods)
9653 ("r-plyr" ,r-plyr)
9654 ("r-preprocesscore" ,r-preprocesscore)
9655 ("r-protgenerics" ,r-protgenerics)
9656 ("r-rcpp" ,r-rcpp)
9657 ("r-s4vectors" ,r-s4vectors)
9658 ("r-scales" ,r-scales)
9659 ("r-vsn" ,r-vsn)
9660 ("r-xml" ,r-xml)))
9661 (home-page "https://github.com/lgatto/MSnbase")
9662 (synopsis "Base functions and classes for MS-based proteomics")
9663 (description
9664 "This package provides basic plotting, data manipulation and processing
9665 of mass spectrometry based proteomics data.")
9666 (license license:artistic2.0)))
9667
9668 (define-public r-msnid
9669 (package
9670 (name "r-msnid")
9671 (version "1.14.0")
9672 (source
9673 (origin
9674 (method url-fetch)
9675 (uri (bioconductor-uri "MSnID" version))
9676 (sha256
9677 (base32
9678 "172q5chi44104iz4y0g42wrimfp7hlhrfa8vzybx6m0ccrkkhl17"))))
9679 (properties `((upstream-name . "MSnID")))
9680 (build-system r-build-system)
9681 (propagated-inputs
9682 `(("r-biobase" ,r-biobase)
9683 ("r-data-table" ,r-data-table)
9684 ("r-doparallel" ,r-doparallel)
9685 ("r-dplyr" ,r-dplyr)
9686 ("r-foreach" ,r-foreach)
9687 ("r-iterators" ,r-iterators)
9688 ("r-msnbase" ,r-msnbase)
9689 ("r-mzid" ,r-mzid)
9690 ("r-mzr" ,r-mzr)
9691 ("r-protgenerics" ,r-protgenerics)
9692 ("r-r-cache" ,r-r-cache)
9693 ("r-rcpp" ,r-rcpp)
9694 ("r-reshape2" ,r-reshape2)))
9695 (home-page "https://bioconductor.org/packages/MSnID")
9696 (synopsis "Utilities for LC-MSn proteomics identifications")
9697 (description
9698 "This package extracts @dfn{tandem mass spectrometry} (MS/MS) ID data
9699 from mzIdentML (leveraging the mzID package) or text files. After collating
9700 the search results from multiple datasets it assesses their identification
9701 quality and optimize filtering criteria to achieve the maximum number of
9702 identifications while not exceeding a specified false discovery rate. It also
9703 contains a number of utilities to explore the MS/MS results and assess missed
9704 and irregular enzymatic cleavages, mass measurement accuracy, etc.")
9705 (license license:artistic2.0)))
9706
9707 (define-public r-seurat
9708 (package
9709 (name "r-seurat")
9710 (version "2.3.2")
9711 (source (origin
9712 (method url-fetch)
9713 (uri (cran-uri "Seurat" version))
9714 (sha256
9715 (base32
9716 "1sjpy5rrpvlpm6hs7qy7qpglgbp7zrgfybcsalpmjb51rhxhgcg1"))
9717 ;; Delete pre-built jar.
9718 (snippet
9719 '(begin (delete-file "inst/java/ModularityOptimizer.jar")
9720 #t))))
9721 (properties `((upstream-name . "Seurat")))
9722 (build-system r-build-system)
9723 (arguments
9724 `(#:phases
9725 (modify-phases %standard-phases
9726 (add-after 'unpack 'build-jar
9727 (lambda* (#:key inputs #:allow-other-keys)
9728 (let ((classesdir "tmp-classes"))
9729 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
9730 (mkdir classesdir)
9731 (with-output-to-file "manifest"
9732 (lambda _
9733 (display "Manifest-Version: 1.0
9734 Main-Class: ModularityOptimizer\n")))
9735 (and (zero? (apply system* `("javac" "-d" ,classesdir
9736 ,@(find-files "java" "\\.java$"))))
9737 (zero? (system* "jar"
9738 "-cmf" "manifest"
9739 "inst/java/ModularityOptimizer.jar"
9740 "-C" classesdir ".")))))))))
9741 (native-inputs
9742 `(("jdk" ,icedtea "jdk")))
9743 (propagated-inputs
9744 `(("r-ape" ,r-ape)
9745 ("r-caret" ,r-caret)
9746 ("r-cluster" ,r-cluster)
9747 ("r-cowplot" ,r-cowplot)
9748 ("r-diffusionmap" ,r-diffusionmap)
9749 ("r-dosnow" ,r-dosnow)
9750 ("r-dplyr" ,r-dplyr)
9751 ("r-dtw" ,r-dtw)
9752 ("r-fitdistrplus" ,r-fitdistrplus)
9753 ("r-fnn" ,r-fnn)
9754 ("r-foreach" ,r-foreach)
9755 ("r-fpc" ,r-fpc)
9756 ("r-gdata" ,r-gdata)
9757 ("r-ggplot2" ,r-ggplot2)
9758 ("r-ggridges" ,r-ggridges)
9759 ("r-gplots" ,r-gplots)
9760 ("r-hdf5r" ,r-hdf5r)
9761 ("r-hmisc" ,r-hmisc)
9762 ("r-ica" ,r-ica)
9763 ("r-igraph" ,r-igraph)
9764 ("r-irlba" ,r-irlba)
9765 ("r-lars" ,r-lars)
9766 ("r-lmtest" ,r-lmtest)
9767 ("r-mass" ,r-mass)
9768 ("r-matrix" ,r-matrix)
9769 ("r-metap" ,r-metap)
9770 ("r-mixtools" ,r-mixtools)
9771 ("r-pbapply" ,r-pbapply)
9772 ("r-plotly" ,r-plotly)
9773 ("r-png" ,r-png)
9774 ("r-ranger" ,r-ranger)
9775 ("r-rann" ,r-rann)
9776 ("r-rcolorbrewer" ,r-rcolorbrewer)
9777 ("r-rcpp" ,r-rcpp)
9778 ("r-rcppeigen" ,r-rcppeigen)
9779 ("r-rcppprogress" ,r-rcppprogress)
9780 ("r-reshape2" ,r-reshape2)
9781 ("r-reticulate" ,r-reticulate)
9782 ("r-rocr" ,r-rocr)
9783 ("r-rtsne" ,r-rtsne)
9784 ("r-sdmtools" ,r-sdmtools)
9785 ("r-stringr" ,r-stringr)
9786 ("r-tclust" ,r-tclust)
9787 ("r-tidyr" ,r-tidyr)
9788 ("r-tsne" ,r-tsne)
9789 ("r-vgam" ,r-vgam)))
9790 (home-page "http://www.satijalab.org/seurat")
9791 (synopsis "Seurat is an R toolkit for single cell genomics")
9792 (description
9793 "This package is an R package designed for QC, analysis, and
9794 exploration of single cell RNA-seq data. It easily enables widely-used
9795 analytical techniques, including the identification of highly variable genes,
9796 dimensionality reduction; PCA, ICA, t-SNE, standard unsupervised clustering
9797 algorithms; density clustering, hierarchical clustering, k-means, and the
9798 discovery of differentially expressed genes and markers.")
9799 (license license:gpl3)))
9800
9801 (define-public r-aroma-light
9802 (package
9803 (name "r-aroma-light")
9804 (version "3.10.0")
9805 (source
9806 (origin
9807 (method url-fetch)
9808 (uri (bioconductor-uri "aroma.light" version))
9809 (sha256
9810 (base32
9811 "1dxsiwsrwcq9mj573f9vpdzrhagdqzal328ma8076px4gg6khxkn"))))
9812 (properties `((upstream-name . "aroma.light")))
9813 (build-system r-build-system)
9814 (propagated-inputs
9815 `(("r-matrixstats" ,r-matrixstats)
9816 ("r-r-methodss3" ,r-r-methodss3)
9817 ("r-r-oo" ,r-r-oo)
9818 ("r-r-utils" ,r-r-utils)))
9819 (home-page "https://github.com/HenrikBengtsson/aroma.light")
9820 (synopsis "Methods for normalization and visualization of microarray data")
9821 (description
9822 "This package provides methods for microarray analysis that take basic
9823 data types such as matrices and lists of vectors. These methods can be used
9824 standalone, be utilized in other packages, or be wrapped up in higher-level
9825 classes.")
9826 (license license:gpl2+)))
9827
9828 (define-public r-deseq
9829 (package
9830 (name "r-deseq")
9831 (version "1.32.0")
9832 (source
9833 (origin
9834 (method url-fetch)
9835 (uri (bioconductor-uri "DESeq" version))
9836 (sha256
9837 (base32
9838 "0ykxw8ksif026xy25wx50j2sdsrp156aqkmhcgfjkpgcw699glnm"))))
9839 (properties `((upstream-name . "DESeq")))
9840 (build-system r-build-system)
9841 (propagated-inputs
9842 `(("r-biobase" ,r-biobase)
9843 ("r-biocgenerics" ,r-biocgenerics)
9844 ("r-genefilter" ,r-genefilter)
9845 ("r-geneplotter" ,r-geneplotter)
9846 ("r-lattice" ,r-lattice)
9847 ("r-locfit" ,r-locfit)
9848 ("r-mass" ,r-mass)
9849 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9850 (home-page "http://www-huber.embl.de/users/anders/DESeq")
9851 (synopsis "Differential gene expression analysis")
9852 (description
9853 "This package provides tools for estimating variance-mean dependence in
9854 count data from high-throughput genetic sequencing assays and for testing for
9855 differential expression based on a model using the negative binomial
9856 distribution.")
9857 (license license:gpl3+)))
9858
9859 (define-public r-edaseq
9860 (package
9861 (name "r-edaseq")
9862 (version "2.14.0")
9863 (source
9864 (origin
9865 (method url-fetch)
9866 (uri (bioconductor-uri "EDASeq" version))
9867 (sha256
9868 (base32
9869 "1832pb3jkim4vrqzb8lajwx9r482bhww5n9nz3s6crvyamlp2dj0"))))
9870 (properties `((upstream-name . "EDASeq")))
9871 (build-system r-build-system)
9872 (propagated-inputs
9873 `(("r-annotationdbi" ,r-annotationdbi)
9874 ("r-aroma-light" ,r-aroma-light)
9875 ("r-biobase" ,r-biobase)
9876 ("r-biocgenerics" ,r-biocgenerics)
9877 ("r-biomart" ,r-biomart)
9878 ("r-biostrings" ,r-biostrings)
9879 ("r-deseq" ,r-deseq)
9880 ("r-genomicfeatures" ,r-genomicfeatures)
9881 ("r-genomicranges" ,r-genomicranges)
9882 ("r-iranges" ,r-iranges)
9883 ("r-rsamtools" ,r-rsamtools)
9884 ("r-shortread" ,r-shortread)))
9885 (home-page "https://github.com/drisso/EDASeq")
9886 (synopsis "Exploratory data analysis and normalization for RNA-Seq")
9887 (description
9888 "This package provides support for numerical and graphical summaries of
9889 RNA-Seq genomic read data. Provided within-lane normalization procedures to
9890 adjust for GC-content effect (or other gene-level effects) on read counts:
9891 loess robust local regression, global-scaling, and full-quantile
9892 normalization. Between-lane normalization procedures to adjust for
9893 distributional differences between lanes (e.g., sequencing depth):
9894 global-scaling and full-quantile normalization.")
9895 (license license:artistic2.0)))
9896
9897 (define-public r-interactivedisplaybase
9898 (package
9899 (name "r-interactivedisplaybase")
9900 (version "1.18.0")
9901 (source
9902 (origin
9903 (method url-fetch)
9904 (uri (bioconductor-uri "interactiveDisplayBase" version))
9905 (sha256
9906 (base32
9907 "05w58z3i9vkma4jd6rhjaxls4yiq4kwrppgcdq9xrr1pxp99k575"))))
9908 (properties
9909 `((upstream-name . "interactiveDisplayBase")))
9910 (build-system r-build-system)
9911 (propagated-inputs
9912 `(("r-biocgenerics" ,r-biocgenerics)
9913 ("r-shiny" ,r-shiny)))
9914 (home-page "https://bioconductor.org/packages/interactiveDisplayBase")
9915 (synopsis "Base package for web displays of Bioconductor objects")
9916 (description
9917 "This package contains the basic methods needed to generate interactive
9918 Shiny-based display methods for Bioconductor objects.")
9919 (license license:artistic2.0)))
9920
9921 (define-public r-annotationhub
9922 (package
9923 (name "r-annotationhub")
9924 (version "2.12.0")
9925 (source
9926 (origin
9927 (method url-fetch)
9928 (uri (bioconductor-uri "AnnotationHub" version))
9929 (sha256
9930 (base32
9931 "11gh7qkgazs90czdqgv74gh2hz26xrmdp6wsz9x5pygbxls8xdw3"))))
9932 (properties `((upstream-name . "AnnotationHub")))
9933 (build-system r-build-system)
9934 (propagated-inputs
9935 `(("r-annotationdbi" ,r-annotationdbi)
9936 ("r-biocgenerics" ,r-biocgenerics)
9937 ("r-biocinstaller" ,r-biocinstaller)
9938 ("r-curl" ,r-curl)
9939 ("r-httr" ,r-httr)
9940 ("r-interactivedisplaybase" ,r-interactivedisplaybase)
9941 ("r-rsqlite" ,r-rsqlite)
9942 ("r-s4vectors" ,r-s4vectors)
9943 ("r-yaml" ,r-yaml)))
9944 (home-page "https://bioconductor.org/packages/AnnotationHub")
9945 (synopsis "Client to access AnnotationHub resources")
9946 (description
9947 "This package provides a client for the Bioconductor AnnotationHub web
9948 resource. The AnnotationHub web resource provides a central location where
9949 genomic files (e.g. VCF, bed, wig) and other resources from standard
9950 locations (e.g. UCSC, Ensembl) can be discovered. The resource includes
9951 metadata about each resource, e.g., a textual description, tags, and date of
9952 modification. The client creates and manages a local cache of files retrieved
9953 by the user, helping with quick and reproducible access.")
9954 (license license:artistic2.0)))
9955
9956 (define-public r-fastseg
9957 (package
9958 (name "r-fastseg")
9959 (version "1.26.0")
9960 (source
9961 (origin
9962 (method url-fetch)
9963 (uri (bioconductor-uri "fastseg" version))
9964 (sha256
9965 (base32
9966 "1yw6hai6hb8qy7akdm4frfp6h4zy93zb68kdj094sanm7kgqmgik"))))
9967 (build-system r-build-system)
9968 (propagated-inputs
9969 `(("r-biobase" ,r-biobase)
9970 ("r-biocgenerics" ,r-biocgenerics)
9971 ("r-genomicranges" ,r-genomicranges)
9972 ("r-iranges" ,r-iranges)
9973 ("r-s4vectors" ,r-s4vectors)))
9974 (home-page "http://www.bioinf.jku.at/software/fastseg/index.html")
9975 (synopsis "Fast segmentation algorithm for genetic sequencing data")
9976 (description
9977 "Fastseg implements a very fast and efficient segmentation algorithm.
9978 It can segment data from DNA microarrays and data from next generation
9979 sequencing for example to detect copy number segments. Further it can segment
9980 data from RNA microarrays like tiling arrays to identify transcripts. Most
9981 generally, it can segment data given as a matrix or as a vector. Various data
9982 formats can be used as input to fastseg like expression set objects for
9983 microarrays or GRanges for sequencing data.")
9984 (license license:lgpl2.0+)))
9985
9986 (define-public r-keggrest
9987 (package
9988 (name "r-keggrest")
9989 (version "1.20.0")
9990 (source
9991 (origin
9992 (method url-fetch)
9993 (uri (bioconductor-uri "KEGGREST" version))
9994 (sha256
9995 (base32
9996 "1349vidgl9m10l1rbrp3pkwwgi2xcbsw9h9z2xqbvg97lmqc4r8j"))))
9997 (properties `((upstream-name . "KEGGREST")))
9998 (build-system r-build-system)
9999 (propagated-inputs
10000 `(("r-biostrings" ,r-biostrings)
10001 ("r-httr" ,r-httr)
10002 ("r-png" ,r-png)))
10003 (home-page "https://bioconductor.org/packages/KEGGREST")
10004 (synopsis "Client-side REST access to KEGG")
10005 (description
10006 "This package provides a package that provides a client interface to the
10007 @dfn{Kyoto Encyclopedia of Genes and Genomes} (KEGG) REST server.")
10008 (license license:artistic2.0)))
10009
10010 (define-public r-gage
10011 (package
10012 (name "r-gage")
10013 (version "2.30.0")
10014 (source
10015 (origin
10016 (method url-fetch)
10017 (uri (bioconductor-uri "gage" version))
10018 (sha256
10019 (base32
10020 "0j3cqxy97lpf146wkmdfaq9680gicmzxvhp6w5pxq3j7ipiy7262"))))
10021 (build-system r-build-system)
10022 (propagated-inputs
10023 `(("r-annotationdbi" ,r-annotationdbi)
10024 ("r-graph" ,r-graph)
10025 ("r-keggrest" ,r-keggrest)))
10026 (home-page "http://www.biomedcentral.com/1471-2105/10/161")
10027 (synopsis "Generally applicable gene-set enrichment for pathway analysis")
10028 (description
10029 "GAGE is a published method for gene set (enrichment or GSEA) or pathway
10030 analysis. GAGE is generally applicable independent of microarray or RNA-Seq
10031 data attributes including sample sizes, experimental designs, assay platforms,
10032 and other types of heterogeneity. The gage package provides functions for
10033 basic GAGE analysis, result processing and presentation. In addition, it
10034 provides demo microarray data and commonly used gene set data based on KEGG
10035 pathways and GO terms. These funtions and data are also useful for gene set
10036 analysis using other methods.")
10037 (license license:gpl2+)))
10038
10039 (define-public r-genomicfiles
10040 (package
10041 (name "r-genomicfiles")
10042 (version "1.16.0")
10043 (source
10044 (origin
10045 (method url-fetch)
10046 (uri (bioconductor-uri "GenomicFiles" version))
10047 (sha256
10048 (base32
10049 "0bhsq5czigrjyl9gkb2kpkpl367b3ac5g8s280adkcxggn9g7sxq"))))
10050 (properties `((upstream-name . "GenomicFiles")))
10051 (build-system r-build-system)
10052 (propagated-inputs
10053 `(("r-biocgenerics" ,r-biocgenerics)
10054 ("r-biocparallel" ,r-biocparallel)
10055 ("r-genomeinfodb" ,r-genomeinfodb)
10056 ("r-genomicalignments" ,r-genomicalignments)
10057 ("r-genomicranges" ,r-genomicranges)
10058 ("r-iranges" ,r-iranges)
10059 ("r-rsamtools" ,r-rsamtools)
10060 ("r-rtracklayer" ,r-rtracklayer)
10061 ("r-s4vectors" ,r-s4vectors)
10062 ("r-summarizedexperiment" ,r-summarizedexperiment)
10063 ("r-variantannotation" ,r-variantannotation)))
10064 (home-page "https://bioconductor.org/packages/GenomicFiles")
10065 (synopsis "Distributed computing by file or by range")
10066 (description
10067 "This package provides infrastructure for parallel computations
10068 distributed by file or by range. User defined mapper and reducer functions
10069 provide added flexibility for data combination and manipulation.")
10070 (license license:artistic2.0)))
10071
10072 (define-public r-complexheatmap
10073 (package
10074 (name "r-complexheatmap")
10075 (version "1.18.1")
10076 (source
10077 (origin
10078 (method url-fetch)
10079 (uri (bioconductor-uri "ComplexHeatmap" version))
10080 (sha256
10081 (base32
10082 "0qjwz1hzpjnc90jiinjkikfnr0shi72q3zfdjjz7pxydy0mglq8n"))))
10083 (properties
10084 `((upstream-name . "ComplexHeatmap")))
10085 (build-system r-build-system)
10086 (propagated-inputs
10087 `(("r-circlize" ,r-circlize)
10088 ("r-colorspace" ,r-colorspace)
10089 ("r-getoptlong" ,r-getoptlong)
10090 ("r-globaloptions" ,r-globaloptions)
10091 ("r-rcolorbrewer" ,r-rcolorbrewer)))
10092 (home-page
10093 "https://github.com/jokergoo/ComplexHeatmap")
10094 (synopsis "Making Complex Heatmaps")
10095 (description
10096 "Complex heatmaps are efficient to visualize associations between
10097 different sources of data sets and reveal potential structures. This package
10098 provides a highly flexible way to arrange multiple heatmaps and supports
10099 self-defined annotation graphics.")
10100 (license license:gpl2+)))
10101
10102 (define-public r-dirichletmultinomial
10103 (package
10104 (name "r-dirichletmultinomial")
10105 (version "1.22.0")
10106 (source
10107 (origin
10108 (method url-fetch)
10109 (uri (bioconductor-uri "DirichletMultinomial" version))
10110 (sha256
10111 (base32
10112 "0vcyp81b90in4ls5nbadc66cw2g9aydr94aqifq5j4b7diq74yfs"))))
10113 (properties
10114 `((upstream-name . "DirichletMultinomial")))
10115 (build-system r-build-system)
10116 (inputs
10117 `(("gsl" ,gsl)))
10118 (propagated-inputs
10119 `(("r-biocgenerics" ,r-biocgenerics)
10120 ("r-iranges" ,r-iranges)
10121 ("r-s4vectors" ,r-s4vectors)))
10122 (home-page "https://bioconductor.org/packages/DirichletMultinomial")
10123 (synopsis "Dirichlet-Multinomial mixture models for microbiome data")
10124 (description
10125 "Dirichlet-multinomial mixture models can be used to describe variability
10126 in microbial metagenomic data. This package is an interface to code
10127 originally made available by Holmes, Harris, and Quince, 2012, PLoS ONE 7(2):
10128 1-15.")
10129 (license license:lgpl3)))
10130
10131 (define-public r-ensembldb
10132 (package
10133 (name "r-ensembldb")
10134 (version "2.4.1")
10135 (source
10136 (origin
10137 (method url-fetch)
10138 (uri (bioconductor-uri "ensembldb" version))
10139 (sha256
10140 (base32
10141 "1l2b4cxiycv05mz4z4f3dhx57r9ksha02psc114h30ldm5rxz8w6"))))
10142 (build-system r-build-system)
10143 (propagated-inputs
10144 `(("r-annotationdbi" ,r-annotationdbi)
10145 ("r-annotationfilter" ,r-annotationfilter)
10146 ("r-biobase" ,r-biobase)
10147 ("r-biocgenerics" ,r-biocgenerics)
10148 ("r-biostrings" ,r-biostrings)
10149 ("r-curl" ,r-curl)
10150 ("r-dbi" ,r-dbi)
10151 ("r-genomeinfodb" ,r-genomeinfodb)
10152 ("r-genomicfeatures" ,r-genomicfeatures)
10153 ("r-genomicranges" ,r-genomicranges)
10154 ("r-iranges" ,r-iranges)
10155 ("r-protgenerics" ,r-protgenerics)
10156 ("r-rsamtools" ,r-rsamtools)
10157 ("r-rsqlite" ,r-rsqlite)
10158 ("r-rtracklayer" ,r-rtracklayer)
10159 ("r-s4vectors" ,r-s4vectors)))
10160 (home-page "https://github.com/jotsetung/ensembldb")
10161 (synopsis "Utilities to create and use Ensembl-based annotation databases")
10162 (description
10163 "The package provides functions to create and use transcript-centric
10164 annotation databases/packages. The annotation for the databases are directly
10165 fetched from Ensembl using their Perl API. The functionality and data is
10166 similar to that of the TxDb packages from the @code{GenomicFeatures} package,
10167 but, in addition to retrieve all gene/transcript models and annotations from
10168 the database, the @code{ensembldb} package also provides a filter framework
10169 allowing to retrieve annotations for specific entries like genes encoded on a
10170 chromosome region or transcript models of lincRNA genes.")
10171 ;; No version specified
10172 (license license:lgpl3+)))
10173
10174 (define-public r-organismdbi
10175 (package
10176 (name "r-organismdbi")
10177 (version "1.22.0")
10178 (source
10179 (origin
10180 (method url-fetch)
10181 (uri (bioconductor-uri "OrganismDbi" version))
10182 (sha256
10183 (base32
10184 "0hb9ni41bjfy5s5ryw2qmqs2sx3i7j47w1g0l8g1pvn7ppnxb6cv"))))
10185 (properties `((upstream-name . "OrganismDbi")))
10186 (build-system r-build-system)
10187 (propagated-inputs
10188 `(("r-annotationdbi" ,r-annotationdbi)
10189 ("r-biobase" ,r-biobase)
10190 ("r-biocgenerics" ,r-biocgenerics)
10191 ("r-biocinstaller" ,r-biocinstaller)
10192 ("r-dbi" ,r-dbi)
10193 ("r-genomicfeatures" ,r-genomicfeatures)
10194 ("r-genomicranges" ,r-genomicranges)
10195 ("r-graph" ,r-graph)
10196 ("r-iranges" ,r-iranges)
10197 ("r-rbgl" ,r-rbgl)
10198 ("r-s4vectors" ,r-s4vectors)))
10199 (home-page "https://bioconductor.org/packages/OrganismDbi")
10200 (synopsis "Software to enable the smooth interfacing of database packages")
10201 (description "The package enables a simple unified interface to several
10202 annotation packages each of which has its own schema by taking advantage of
10203 the fact that each of these packages implements a select methods.")
10204 (license license:artistic2.0)))
10205
10206 (define-public r-biovizbase
10207 (package
10208 (name "r-biovizbase")
10209 (version "1.28.0")
10210 (source
10211 (origin
10212 (method url-fetch)
10213 (uri (bioconductor-uri "biovizBase" version))
10214 (sha256
10215 (base32
10216 "0lkiqdr3ics6hgv47lwkykcy761823bbkhffbn4ykyfzyqwl4p67"))))
10217 (properties `((upstream-name . "biovizBase")))
10218 (build-system r-build-system)
10219 (propagated-inputs
10220 `(("r-annotationdbi" ,r-annotationdbi)
10221 ("r-annotationfilter" ,r-annotationfilter)
10222 ("r-biocgenerics" ,r-biocgenerics)
10223 ("r-biostrings" ,r-biostrings)
10224 ("r-dichromat" ,r-dichromat)
10225 ("r-ensembldb" ,r-ensembldb)
10226 ("r-genomeinfodb" ,r-genomeinfodb)
10227 ("r-genomicalignments" ,r-genomicalignments)
10228 ("r-genomicfeatures" ,r-genomicfeatures)
10229 ("r-genomicranges" ,r-genomicranges)
10230 ("r-hmisc" ,r-hmisc)
10231 ("r-iranges" ,r-iranges)
10232 ("r-rcolorbrewer" ,r-rcolorbrewer)
10233 ("r-rsamtools" ,r-rsamtools)
10234 ("r-s4vectors" ,r-s4vectors)
10235 ("r-scales" ,r-scales)
10236 ("r-summarizedexperiment" ,r-summarizedexperiment)
10237 ("r-variantannotation" ,r-variantannotation)))
10238 (home-page "https://bioconductor.org/packages/biovizBase")
10239 (synopsis "Basic graphic utilities for visualization of genomic data")
10240 (description
10241 "The biovizBase package is designed to provide a set of utilities, color
10242 schemes and conventions for genomic data. It serves as the base for various
10243 high-level packages for biological data visualization. This saves development
10244 effort and encourages consistency.")
10245 (license license:artistic2.0)))
10246
10247 (define-public r-ggbio
10248 (package
10249 (name "r-ggbio")
10250 (version "1.28.0")
10251 (source
10252 (origin
10253 (method url-fetch)
10254 (uri (bioconductor-uri "ggbio" version))
10255 (sha256
10256 (base32
10257 "0wszh3w8yia5zw758h837i1q35k99sn444y2hahcxqbdmmlbf7in"))))
10258 (build-system r-build-system)
10259 (propagated-inputs
10260 `(("r-annotationdbi" ,r-annotationdbi)
10261 ("r-annotationfilter" ,r-annotationfilter)
10262 ("r-biobase" ,r-biobase)
10263 ("r-biocgenerics" ,r-biocgenerics)
10264 ("r-biostrings" ,r-biostrings)
10265 ("r-biovizbase" ,r-biovizbase)
10266 ("r-bsgenome" ,r-bsgenome)
10267 ("r-ensembldb" ,r-ensembldb)
10268 ("r-genomeinfodb" ,r-genomeinfodb)
10269 ("r-genomicalignments" ,r-genomicalignments)
10270 ("r-genomicfeatures" ,r-genomicfeatures)
10271 ("r-genomicranges" ,r-genomicranges)
10272 ("r-ggally" ,r-ggally)
10273 ("r-ggplot2" ,r-ggplot2)
10274 ("r-gridextra" ,r-gridextra)
10275 ("r-gtable" ,r-gtable)
10276 ("r-hmisc" ,r-hmisc)
10277 ("r-iranges" ,r-iranges)
10278 ("r-organismdbi" ,r-organismdbi)
10279 ("r-reshape2" ,r-reshape2)
10280 ("r-rsamtools" ,r-rsamtools)
10281 ("r-rtracklayer" ,r-rtracklayer)
10282 ("r-s4vectors" ,r-s4vectors)
10283 ("r-scales" ,r-scales)
10284 ("r-summarizedexperiment" ,r-summarizedexperiment)
10285 ("r-variantannotation" ,r-variantannotation)))
10286 (home-page "http://www.tengfei.name/ggbio/")
10287 (synopsis "Visualization tools for genomic data")
10288 (description
10289 "The ggbio package extends and specializes the grammar of graphics for
10290 biological data. The graphics are designed to answer common scientific
10291 questions, in particular those often asked of high throughput genomics data.
10292 All core Bioconductor data structures are supported, where appropriate. The
10293 package supports detailed views of particular genomic regions, as well as
10294 genome-wide overviews. Supported overviews include ideograms and grand linear
10295 views. High-level plots include sequence fragment length, edge-linked
10296 interval to data view, mismatch pileup, and several splicing summaries.")
10297 (license license:artistic2.0)))
10298
10299 (define-public r-gprofiler
10300 (package
10301 (name "r-gprofiler")
10302 (version "0.6.6")
10303 (source
10304 (origin
10305 (method url-fetch)
10306 (uri (cran-uri "gProfileR" version))
10307 (sha256
10308 (base32
10309 "1n6cj12j102b4x9vhyl4dljp1i0r43p23cnhqbx4als2xfxdlqgi"))))
10310 (properties `((upstream-name . "gProfileR")))
10311 (build-system r-build-system)
10312 (propagated-inputs
10313 `(("r-plyr" ,r-plyr)
10314 ("r-rcurl" ,r-rcurl)))
10315 (home-page "https://cran.r-project.org/web/packages/gProfileR/")
10316 (synopsis "Interface to the g:Profiler toolkit")
10317 (description
10318 "This package provides tools for functional enrichment analysis,
10319 gene identifier conversion and mapping homologous genes across related
10320 organisms via the @code{g:Profiler} toolkit.")
10321 (license license:gpl2+)))
10322
10323 (define-public r-gqtlbase
10324 (package
10325 (name "r-gqtlbase")
10326 (version "1.12.0")
10327 (source
10328 (origin
10329 (method url-fetch)
10330 (uri (bioconductor-uri "gQTLBase" version))
10331 (sha256
10332 (base32
10333 "1m3ajpqjhw1nwwsn372r44xfxq0a9a0pzsnrprzdjp6mh52p9b5m"))))
10334 (properties `((upstream-name . "gQTLBase")))
10335 (build-system r-build-system)
10336 (propagated-inputs
10337 `(("r-batchjobs" ,r-batchjobs)
10338 ("r-bbmisc" ,r-bbmisc)
10339 ("r-biocgenerics" ,r-biocgenerics)
10340 ("r-bit" ,r-bit)
10341 ("r-doparallel" ,r-doparallel)
10342 ("r-ff" ,r-ff)
10343 ("r-ffbase" ,r-ffbase)
10344 ("r-foreach" ,r-foreach)
10345 ("r-genomicfiles" ,r-genomicfiles)
10346 ("r-genomicranges" ,r-genomicranges)
10347 ("r-rtracklayer" ,r-rtracklayer)
10348 ("r-s4vectors" ,r-s4vectors)
10349 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10350 (home-page "https://bioconductor.org/packages/gQTLBase")
10351 (synopsis "Infrastructure for eQTL, mQTL and similar studies")
10352 (description
10353 "The purpose of this package is to simplify the storage and interrogation
10354 of @dfn{quantitative trait loci} (QTL) archives, such as eQTL, mQTL, dsQTL,
10355 and more.")
10356 (license license:artistic2.0)))
10357
10358 (define-public r-snpstats
10359 (package
10360 (name "r-snpstats")
10361 (version "1.30.0")
10362 (source
10363 (origin
10364 (method url-fetch)
10365 (uri (bioconductor-uri "snpStats" version))
10366 (sha256
10367 (base32
10368 "0iydgfnm053iw860qa1bbh4f6nwzlsf3vhgq92gvl2v4xsz1jbbs"))))
10369 (properties `((upstream-name . "snpStats")))
10370 (build-system r-build-system)
10371 (inputs `(("zlib" ,zlib)))
10372 (propagated-inputs
10373 `(("r-biocgenerics" ,r-biocgenerics)
10374 ("r-matrix" ,r-matrix)
10375 ("r-survival" ,r-survival)
10376 ("r-zlibbioc" ,r-zlibbioc)))
10377 (home-page "https://bioconductor.org/packages/snpStats")
10378 (synopsis "Methods for SNP association studies")
10379 (description
10380 "This package provides classes and statistical methods for large
10381 @dfn{single-nucleotide polymorphism} (SNP) association studies. This extends
10382 the earlier snpMatrix package, allowing for uncertainty in genotypes.")
10383 (license license:gpl3)))
10384
10385 (define-public r-homo-sapiens
10386 (package
10387 (name "r-homo-sapiens")
10388 (version "1.3.1")
10389 (source (origin
10390 (method url-fetch)
10391 ;; We cannot use bioconductor-uri here because this tarball is
10392 ;; located under "data/annotation/" instead of "bioc/".
10393 (uri (string-append "http://www.bioconductor.org/packages/"
10394 "release/data/annotation/src/contrib/"
10395 "Homo.sapiens_"
10396 version ".tar.gz"))
10397 (sha256
10398 (base32
10399 "151vj7h5p1c8yd5swrchk46z469p135wk50hvkl0nhgndvy0jj01"))))
10400 (properties
10401 `((upstream-name . "Homo.sapiens")))
10402 (build-system r-build-system)
10403 (propagated-inputs
10404 `(("r-genomicfeatures" ,r-genomicfeatures)
10405 ("r-go-db" ,r-go-db)
10406 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
10407 ("r-txdb-hsapiens-ucsc-hg19-knowngene" ,r-txdb-hsapiens-ucsc-hg19-knowngene)
10408 ("r-organismdbi" ,r-organismdbi)
10409 ("r-annotationdbi" ,r-annotationdbi)))
10410 (home-page "https://bioconductor.org/packages/Homo.sapiens/")
10411 (synopsis "Annotation package for the Homo.sapiens object")
10412 (description
10413 "This package contains the Homo.sapiens object to access data from
10414 several related annotation packages.")
10415 (license license:artistic2.0)))
10416
10417 (define-public r-erma
10418 (package
10419 (name "r-erma")
10420 (version "0.12.0")
10421 (source
10422 (origin
10423 (method url-fetch)
10424 (uri (bioconductor-uri "erma" version))
10425 (sha256
10426 (base32
10427 "1ka68n18yizlyvb8bpwwcl4hqbsasg8hw8jb3vgy3cd4szji87hh"))))
10428 (build-system r-build-system)
10429 (propagated-inputs
10430 `(("r-annotationdbi" ,r-annotationdbi)
10431 ("r-biobase" ,r-biobase)
10432 ("r-biocgenerics" ,r-biocgenerics)
10433 ("r-biocparallel" ,r-biocparallel)
10434 ("r-genomeinfodb" ,r-genomeinfodb)
10435 ("r-genomicfiles" ,r-genomicfiles)
10436 ("r-genomicranges" ,r-genomicranges)
10437 ("r-ggplot2" ,r-ggplot2)
10438 ("r-homo-sapiens" ,r-homo-sapiens)
10439 ("r-iranges" ,r-iranges)
10440 ("r-rtracklayer" ,r-rtracklayer)
10441 ("r-s4vectors" ,r-s4vectors)
10442 ("r-shiny" ,r-shiny)
10443 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10444 (home-page "https://bioconductor.org/packages/erma")
10445 (synopsis "Epigenomic road map adventures")
10446 (description
10447 "The epigenomics road map describes locations of epigenetic marks in DNA
10448 from a variety of cell types. Of interest are locations of histone
10449 modifications, sites of DNA methylation, and regions of accessible chromatin.
10450 This package presents a selection of elements of the road map including
10451 metadata and outputs of the ChromImpute procedure applied to ENCODE cell lines
10452 by Ernst and Kellis.")
10453 (license license:artistic2.0)))
10454
10455 (define-public r-ldblock
10456 (package
10457 (name "r-ldblock")
10458 (version "1.10.0")
10459 (source
10460 (origin
10461 (method url-fetch)
10462 (uri (bioconductor-uri "ldblock" version))
10463 (sha256
10464 (base32
10465 "0c24zvnwsp39d3q0bps13sc441jj9ms2zi34xsb8c392lqmbypvd"))))
10466 (build-system r-build-system)
10467 (propagated-inputs
10468 `(("r-biocgenerics" ,r-biocgenerics)
10469 ("r-erma" ,r-erma)
10470 ("r-genomeinfodb" ,r-genomeinfodb)
10471 ("r-genomicfiles" ,r-genomicfiles)
10472 ("r-go-db" ,r-go-db)
10473 ("r-homo-sapiens" ,r-homo-sapiens)
10474 ("r-matrix" ,r-matrix)
10475 ("r-rsamtools" ,r-rsamtools)
10476 ("r-snpstats" ,r-snpstats)
10477 ("r-variantannotation" ,r-variantannotation)))
10478 (home-page "https://bioconductor.org/packages/ldblock")
10479 (synopsis "Data structures for linkage disequilibrium measures in populations")
10480 (description
10481 "This package defines data structures for @dfn{linkage
10482 disequilibrium} (LD) measures in populations. Its purpose is to simplify
10483 handling of existing population-level data for the purpose of flexibly
10484 defining LD blocks.")
10485 (license license:artistic2.0)))
10486
10487 (define-public r-gqtlstats
10488 (package
10489 (name "r-gqtlstats")
10490 (version "1.12.0")
10491 (source
10492 (origin
10493 (method url-fetch)
10494 (uri (bioconductor-uri "gQTLstats" version))
10495 (sha256
10496 (base32
10497 "19g8qhfgngdc14cw9k4i44cxhs3qva87x56gjzmn25k1yj8qgsp1"))))
10498 (properties `((upstream-name . "gQTLstats")))
10499 (build-system r-build-system)
10500 (propagated-inputs
10501 `(("r-annotationdbi" ,r-annotationdbi)
10502 ("r-batchjobs" ,r-batchjobs)
10503 ("r-bbmisc" ,r-bbmisc)
10504 ("r-beeswarm" ,r-beeswarm)
10505 ("r-biobase" ,r-biobase)
10506 ("r-biocgenerics" ,r-biocgenerics)
10507 ("r-doparallel" ,r-doparallel)
10508 ("r-dplyr" ,r-dplyr)
10509 ("r-erma" ,r-erma)
10510 ("r-ffbase" ,r-ffbase)
10511 ("r-foreach" ,r-foreach)
10512 ("r-genomeinfodb" ,r-genomeinfodb)
10513 ("r-genomicfeatures" ,r-genomicfeatures)
10514 ("r-genomicfiles" ,r-genomicfiles)
10515 ("r-genomicranges" ,r-genomicranges)
10516 ("r-ggbeeswarm" ,r-ggbeeswarm)
10517 ("r-ggplot2" ,r-ggplot2)
10518 ("r-gqtlbase" ,r-gqtlbase)
10519 ("r-hardyweinberg" ,r-hardyweinberg)
10520 ("r-homo-sapiens" ,r-homo-sapiens)
10521 ("r-iranges" ,r-iranges)
10522 ("r-limma" ,r-limma)
10523 ("r-mgcv" ,r-mgcv)
10524 ("r-plotly" ,r-plotly)
10525 ("r-reshape2" ,r-reshape2)
10526 ("r-s4vectors" ,r-s4vectors)
10527 ("r-shiny" ,r-shiny)
10528 ("r-snpstats" ,r-snpstats)
10529 ("r-summarizedexperiment" ,r-summarizedexperiment)
10530 ("r-variantannotation" ,r-variantannotation)))
10531 (home-page "https://bioconductor.org/packages/gQTLstats")
10532 (synopsis "Computationally efficient analysis for eQTL and allied studies")
10533 (description
10534 "This package provides tools for the computationally efficient analysis
10535 of @dfn{quantitative trait loci} (QTL) data, including eQTL, mQTL, dsQTL, etc.
10536 The software in this package aims to support refinements and functional
10537 interpretation of members of a collection of association statistics on a
10538 family of feature/genome hypotheses.")
10539 (license license:artistic2.0)))
10540
10541 (define-public r-gviz
10542 (package
10543 (name "r-gviz")
10544 (version "1.24.0")
10545 (source
10546 (origin
10547 (method url-fetch)
10548 (uri (bioconductor-uri "Gviz" version))
10549 (sha256
10550 (base32
10551 "1fhli7ahkl5r43j0hc89ib41mfadj6qyrg36i03ncz8zs6iqwpx4"))))
10552 (properties `((upstream-name . "Gviz")))
10553 (build-system r-build-system)
10554 (propagated-inputs
10555 `(("r-annotationdbi" ,r-annotationdbi)
10556 ("r-biobase" ,r-biobase)
10557 ("r-biocgenerics" ,r-biocgenerics)
10558 ("r-biomart" ,r-biomart)
10559 ("r-biostrings" ,r-biostrings)
10560 ("r-biovizbase" ,r-biovizbase)
10561 ("r-bsgenome" ,r-bsgenome)
10562 ("r-digest" ,r-digest)
10563 ("r-genomeinfodb" ,r-genomeinfodb)
10564 ("r-genomicalignments" ,r-genomicalignments)
10565 ("r-genomicfeatures" ,r-genomicfeatures)
10566 ("r-genomicranges" ,r-genomicranges)
10567 ("r-iranges" ,r-iranges)
10568 ("r-lattice" ,r-lattice)
10569 ("r-latticeextra" ,r-latticeextra)
10570 ("r-matrixstats" ,r-matrixstats)
10571 ("r-rcolorbrewer" ,r-rcolorbrewer)
10572 ("r-rsamtools" ,r-rsamtools)
10573 ("r-rtracklayer" ,r-rtracklayer)
10574 ("r-s4vectors" ,r-s4vectors)
10575 ("r-xvector" ,r-xvector)))
10576 (home-page "https://bioconductor.org/packages/Gviz")
10577 (synopsis "Plotting data and annotation information along genomic coordinates")
10578 (description
10579 "Genomic data analyses requires integrated visualization of known genomic
10580 information and new experimental data. Gviz uses the biomaRt and the
10581 rtracklayer packages to perform live annotation queries to Ensembl and UCSC
10582 and translates this to e.g. gene/transcript structures in viewports of the
10583 grid graphics package. This results in genomic information plotted together
10584 with your data.")
10585 (license license:artistic2.0)))
10586
10587 (define-public r-gwascat
10588 (package
10589 (name "r-gwascat")
10590 (version "2.12.0")
10591 (source
10592 (origin
10593 (method url-fetch)
10594 (uri (bioconductor-uri "gwascat" version))
10595 (sha256
10596 (base32
10597 "08ba9il4vbjjwlbwmqg4ai6ya1p09js9agn95sw0dhc9gqln42hx"))))
10598 (build-system r-build-system)
10599 (propagated-inputs
10600 `(("r-annotationdbi" ,r-annotationdbi)
10601 ("r-annotationhub" ,r-annotationhub)
10602 ("r-biocgenerics" ,r-biocgenerics)
10603 ("r-biostrings" ,r-biostrings)
10604 ("r-genomeinfodb" ,r-genomeinfodb)
10605 ("r-genomicfeatures" ,r-genomicfeatures)
10606 ("r-genomicranges" ,r-genomicranges)
10607 ("r-ggbio" ,r-ggbio)
10608 ("r-ggplot2" ,r-ggplot2)
10609 ("r-gqtlstats" ,r-gqtlstats)
10610 ("r-graph" ,r-graph)
10611 ("r-gviz" ,r-gviz)
10612 ("r-homo-sapiens" ,r-homo-sapiens)
10613 ("r-iranges" ,r-iranges)
10614 ("r-rsamtools" ,r-rsamtools)
10615 ("r-rtracklayer" ,r-rtracklayer)
10616 ("r-s4vectors" ,r-s4vectors)
10617 ("r-snpstats" ,r-snpstats)
10618 ("r-summarizedexperiment" ,r-summarizedexperiment)
10619 ("r-variantannotation" ,r-variantannotation)))
10620 (home-page "https://bioconductor.org/packages/gwascat")
10621 (synopsis "Tools for data in the EMBL-EBI GWAS catalog")
10622 (description
10623 "This package provides tools for representing and modeling data in the
10624 EMBL-EBI GWAS catalog.")
10625 (license license:artistic2.0)))
10626
10627 (define-public r-sushi
10628 (package
10629 (name "r-sushi")
10630 (version "1.18.0")
10631 (source (origin
10632 (method url-fetch)
10633 (uri (bioconductor-uri "Sushi" version))
10634 (sha256
10635 (base32
10636 "1m15hmg4k0qhshyn65xfj5hx7xbaf0kxqw70lxisak6pj1w00l41"))))
10637 (properties `((upstream-name . "Sushi")))
10638 (build-system r-build-system)
10639 (propagated-inputs
10640 `(("r-biomart" ,r-biomart)
10641 ("r-zoo" ,r-zoo)))
10642 (home-page "https://bioconductor.org/packages/Sushi")
10643 (synopsis "Tools for visualizing genomics data")
10644 (description
10645 "This package provides flexible, quantitative, and integrative genomic
10646 visualizations for publication-quality multi-panel figures.")
10647 (license license:gpl2+)))
10648
10649 (define-public r-fithic
10650 (package
10651 (name "r-fithic")
10652 (version "1.6.0")
10653 (source (origin
10654 (method url-fetch)
10655 (uri (bioconductor-uri "FitHiC" version))
10656 (sha256
10657 (base32
10658 "06w4q836bi1mvkbl1saghv4r5p4hxpjg8cp7kgad13ls450kqmyd"))))
10659 (properties `((upstream-name . "FitHiC")))
10660 (build-system r-build-system)
10661 (propagated-inputs
10662 `(("r-data-table" ,r-data-table)
10663 ("r-fdrtool" ,r-fdrtool)
10664 ("r-rcpp" ,r-rcpp)))
10665 (home-page "https://bioconductor.org/packages/FitHiC")
10666 (synopsis "Confidence estimation for intra-chromosomal contact maps")
10667 (description
10668 "Fit-Hi-C is a tool for assigning statistical confidence estimates to
10669 intra-chromosomal contact maps produced by genome-wide genome architecture
10670 assays such as Hi-C.")
10671 (license license:gpl2+)))
10672
10673 (define-public r-hitc
10674 (package
10675 (name "r-hitc")
10676 (version "1.24.0")
10677 (source (origin
10678 (method url-fetch)
10679 (uri (bioconductor-uri "HiTC" version))
10680 (sha256
10681 (base32
10682 "0qkk5139f51lwwy1yh7nbkflh5d69prirmhniwam34nlg9rzjm2z"))))
10683 (properties `((upstream-name . "HiTC")))
10684 (build-system r-build-system)
10685 (propagated-inputs
10686 `(("r-biostrings" ,r-biostrings)
10687 ("r-genomeinfodb" ,r-genomeinfodb)
10688 ("r-genomicranges" ,r-genomicranges)
10689 ("r-iranges" ,r-iranges)
10690 ("r-matrix" ,r-matrix)
10691 ("r-rcolorbrewer" ,r-rcolorbrewer)
10692 ("r-rtracklayer" ,r-rtracklayer)))
10693 (home-page "https://bioconductor.org/packages/HiTC")
10694 (synopsis "High throughput chromosome conformation capture analysis")
10695 (description
10696 "The HiTC package was developed to explore high-throughput \"C\" data
10697 such as 5C or Hi-C. Dedicated R classes as well as standard methods for
10698 quality controls, normalization, visualization, and further analysis are also
10699 provided.")
10700 (license license:artistic2.0)))
10701
10702 (define-public r-qvalue
10703 (package
10704 (name "r-qvalue")
10705 (version "2.12.0")
10706 (source
10707 (origin
10708 (method url-fetch)
10709 (uri (bioconductor-uri "qvalue" version))
10710 (sha256
10711 (base32
10712 "1ndwkj0hh7v4lwylq1v0fkxqs7mfmbcj8kxbdpj1wkvf131z2ns8"))))
10713 (build-system r-build-system)
10714 (propagated-inputs
10715 `(("r-ggplot2" ,r-ggplot2)
10716 ("r-reshape2" ,r-reshape2)))
10717 (home-page "http://github.com/jdstorey/qvalue")
10718 (synopsis "Q-value estimation for false discovery rate control")
10719 (description
10720 "This package takes a list of p-values resulting from the simultaneous
10721 testing of many hypotheses and estimates their q-values and local @dfn{false
10722 discovery rate} (FDR) values. The q-value of a test measures the proportion
10723 of false positives incurred when that particular test is called significant.
10724 The local FDR measures the posterior probability the null hypothesis is true
10725 given the test's p-value. Various plots are automatically generated, allowing
10726 one to make sensible significance cut-offs. The software can be applied to
10727 problems in genomics, brain imaging, astrophysics, and data mining.")
10728 ;; Any version of the LGPL.
10729 (license license:lgpl3+)))
10730
10731 (define-public r-hdf5array
10732 (package
10733 (name "r-hdf5array")
10734 (version "1.8.0")
10735 (source
10736 (origin
10737 (method url-fetch)
10738 (uri (bioconductor-uri "HDF5Array" version))
10739 (sha256
10740 (base32
10741 "1l0276qxkhgdxsfck3jmi8jvnsr20g10gjki53g0mqa45wnhm3ck"))))
10742 (properties `((upstream-name . "HDF5Array")))
10743 (build-system r-build-system)
10744 (propagated-inputs
10745 `(("r-biocgenerics" ,r-biocgenerics)
10746 ("r-delayedarray" ,r-delayedarray)
10747 ("r-iranges" ,r-iranges)
10748 ("r-rhdf5" ,r-rhdf5)
10749 ("r-s4vectors" ,r-s4vectors)))
10750 (home-page "https://bioconductor.org/packages/HDF5Array")
10751 (synopsis "HDF5 back end for DelayedArray objects")
10752 (description "This package provides an array-like container for convenient
10753 access and manipulation of HDF5 datasets. It supports delayed operations and
10754 block processing.")
10755 (license license:artistic2.0)))
10756
10757 (define-public r-rhdf5lib
10758 (package
10759 (name "r-rhdf5lib")
10760 (version "1.2.1")
10761 (source
10762 (origin
10763 (method url-fetch)
10764 (uri (bioconductor-uri "Rhdf5lib" version))
10765 (sha256
10766 (base32
10767 "1y59acac6v8hrhv84gghn9ifsni9xxxacaj177rrl4frmkrz4x3c"))))
10768 (properties `((upstream-name . "Rhdf5lib")))
10769 (build-system r-build-system)
10770 (arguments
10771 `(#:phases
10772 (modify-phases %standard-phases
10773 (add-after 'unpack 'do-not-use-bundled-hdf5
10774 (lambda* (#:key inputs #:allow-other-keys)
10775 (for-each delete-file '("configure" "configure.ac"))
10776 ;; Do not make other packages link with the proprietary libsz.
10777 (substitute* "R/zzz.R"
10778 (("'%s/libhdf5_cpp.a %s/libhdf5.a %s/libsz.a -lz'")
10779 "'%s/libhdf5_cpp.a %s/libhdf5.a %s/libhdf5.a -lz'")
10780 (("'%s/libhdf5.a %s/libsz.a -lz'")
10781 "'%s/libhdf5.a %s/libhdf5.a -lz'"))
10782 (with-directory-excursion "src"
10783 (invoke "tar" "xvf" (assoc-ref inputs "hdf5-source"))
10784 (rename-file (string-append "hdf5-" ,(package-version hdf5))
10785 "hdf5")
10786 ;; Remove timestamp and host system information to make
10787 ;; the build reproducible.
10788 (substitute* "hdf5/src/libhdf5.settings.in"
10789 (("Configured on: @CONFIG_DATE@")
10790 "Configured on: Guix")
10791 (("Uname information:.*")
10792 "Uname information: Linux\n")
10793 ;; Remove unnecessary store reference.
10794 (("C Compiler:.*")
10795 "C Compiler: GCC\n"))
10796 (rename-file "Makevars.in" "Makevars")
10797 (substitute* "Makevars"
10798 (("HDF5_CXX_LIB=.*")
10799 (string-append "HDF5_CXX_LIB="
10800 (assoc-ref inputs "hdf5") "/lib/libhdf5_cpp.a\n"))
10801 (("HDF5_LIB=.*")
10802 (string-append "HDF5_LIB="
10803 (assoc-ref inputs "hdf5") "/lib/libhdf5.a\n"))
10804 (("HDF5_CXX_INCLUDE=.*") "HDF5_CXX_INCLUDE=./hdf5/c++/src\n")
10805 (("HDF5_INCLUDE=.*") "HDF5_INCLUDE=./hdf5/src\n")
10806 ;; szip is non-free software
10807 (("cp \\$\\{SZIP_LIB\\}.*") "")
10808 (("\\$\\{USER_LIB_DIR\\}libsz.a") "")))
10809 #t)))))
10810 (inputs
10811 `(("zlib" ,zlib)))
10812 (propagated-inputs
10813 `(("hdf5" ,hdf5)))
10814 (native-inputs
10815 `(("hdf5-source" ,(package-source hdf5))))
10816 (home-page "https://bioconductor.org/packages/Rhdf5lib")
10817 (synopsis "HDF5 library as an R package")
10818 (description "This package provides C and C++ HDF5 libraries for use in R
10819 packages.")
10820 (license license:artistic2.0)))
10821
10822 (define-public r-beachmat
10823 (package
10824 (name "r-beachmat")
10825 (version "1.2.1")
10826 (source
10827 (origin
10828 (method url-fetch)
10829 (uri (bioconductor-uri "beachmat" version))
10830 (sha256
10831 (base32
10832 "1w90v0jx1zgrfxzx99gdkk0dz2vi25hr51jml1bvq33i64rj7996"))))
10833 (build-system r-build-system)
10834 (inputs
10835 `(("hdf5" ,hdf5)
10836 ("zlib" ,zlib)))
10837 (propagated-inputs
10838 `(("r-delayedarray" ,r-delayedarray)
10839 ("r-hdf5array" ,r-hdf5array)
10840 ("r-rcpp" ,r-rcpp)
10841 ("r-rhdf5" ,r-rhdf5)
10842 ("r-rhdf5lib" ,r-rhdf5lib)))
10843 (home-page "https://bioconductor.org/packages/beachmat")
10844 (synopsis "Compiling Bioconductor to handle each matrix type")
10845 (description "This package provides a consistent C++ class interface for a
10846 variety of commonly used matrix types, including sparse and HDF5-backed
10847 matrices.")
10848 (license license:gpl3)))
10849
10850 (define-public r-singlecellexperiment
10851 (package
10852 (name "r-singlecellexperiment")
10853 (version "1.2.0")
10854 (source
10855 (origin
10856 (method url-fetch)
10857 (uri (bioconductor-uri "SingleCellExperiment" version))
10858 (sha256
10859 (base32
10860 "0mz3chia250v8v6q8r5cqv5fc4bpcw1hhrfr3p7l5i4xi85scpka"))))
10861 (properties
10862 `((upstream-name . "SingleCellExperiment")))
10863 (build-system r-build-system)
10864 (propagated-inputs
10865 `(("r-biocgenerics" ,r-biocgenerics)
10866 ("r-s4vectors" ,r-s4vectors)
10867 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10868 (home-page "https://bioconductor.org/packages/SingleCellExperiment")
10869 (synopsis "S4 classes for single cell data")
10870 (description "This package defines an S4 class for storing data from
10871 single-cell experiments. This includes specialized methods to store and
10872 retrieve spike-in information, dimensionality reduction coordinates and size
10873 factors for each cell, along with the usual metadata for genes and
10874 libraries.")
10875 (license license:gpl3)))
10876
10877 (define-public r-scater
10878 (package
10879 (name "r-scater")
10880 (version "1.8.0")
10881 (source (origin
10882 (method url-fetch)
10883 (uri (bioconductor-uri "scater" version))
10884 (sha256
10885 (base32
10886 "0bhpikgz3b9f510dawsay4zry9rlp8vjx5n6zvwbcpwrd94p3903"))))
10887 (build-system r-build-system)
10888 (propagated-inputs
10889 `(("r-beachmat" ,r-beachmat)
10890 ("r-biobase" ,r-biobase)
10891 ("r-biocgenerics" ,r-biocgenerics)
10892 ("r-data-table" ,r-data-table)
10893 ("r-delayedarray" ,r-delayedarray)
10894 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
10895 ("r-dplyr" ,r-dplyr)
10896 ("r-edger" ,r-edger)
10897 ("r-ggbeeswarm" ,r-ggbeeswarm)
10898 ("r-ggplot2" ,r-ggplot2)
10899 ("r-limma" ,r-limma)
10900 ("r-matrix" ,r-matrix)
10901 ("r-plyr" ,r-plyr)
10902 ("r-rcpp" ,r-rcpp)
10903 ("r-reshape2" ,r-reshape2)
10904 ("r-rhdf5" ,r-rhdf5)
10905 ("r-rhdf5lib" ,r-rhdf5lib)
10906 ("r-rjson" ,r-rjson)
10907 ("r-s4vectors" ,r-s4vectors)
10908 ("r-shiny" ,r-shiny)
10909 ("r-shinydashboard" ,r-shinydashboard)
10910 ("r-singlecellexperiment" ,r-singlecellexperiment)
10911 ("r-summarizedexperiment" ,r-summarizedexperiment)
10912 ("r-tximport" ,r-tximport)
10913 ("r-viridis" ,r-viridis)))
10914 (home-page "https://github.com/davismcc/scater")
10915 (synopsis "Single-cell analysis toolkit for gene expression data in R")
10916 (description "This package provides a collection of tools for doing
10917 various analyses of single-cell RNA-seq gene expression data, with a focus on
10918 quality control.")
10919 (license license:gpl2+)))
10920
10921 (define-public r-scran
10922 (package
10923 (name "r-scran")
10924 (version "1.8.2")
10925 (source
10926 (origin
10927 (method url-fetch)
10928 (uri (bioconductor-uri "scran" version))
10929 (sha256
10930 (base32
10931 "0nbn5x75gf9d0p18w7vpkbv30cpdqvp5bz8xvila0h7jla7xdyih"))))
10932 (build-system r-build-system)
10933 (propagated-inputs
10934 `(("r-beachmat" ,r-beachmat)
10935 ("r-biocgenerics" ,r-biocgenerics)
10936 ("r-biocparallel" ,r-biocparallel)
10937 ("r-delayedarray" ,r-delayedarray)
10938 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
10939 ("r-dt" ,r-dt)
10940 ("r-dynamictreecut" ,r-dynamictreecut)
10941 ("r-edger" ,r-edger)
10942 ("r-fnn" ,r-fnn)
10943 ("r-ggplot2" ,r-ggplot2)
10944 ("r-igraph" ,r-igraph)
10945 ("r-limma" ,r-limma)
10946 ("r-matrix" ,r-matrix)
10947 ("r-rcpp" ,r-rcpp)
10948 ("r-rhdf5lib" ,r-rhdf5lib)
10949 ("r-s4vectors" ,r-s4vectors)
10950 ("r-scater" ,r-scater)
10951 ("r-shiny" ,r-shiny)
10952 ("r-singlecellexperiment" ,r-singlecellexperiment)
10953 ("r-statmod" ,r-statmod)
10954 ("r-summarizedexperiment" ,r-summarizedexperiment)
10955 ("r-viridis" ,r-viridis)))
10956 (home-page "https://bioconductor.org/packages/scran")
10957 (synopsis "Methods for single-cell RNA-Seq data analysis")
10958 (description "This package implements a variety of low-level analyses of
10959 single-cell RNA-seq data. Methods are provided for normalization of
10960 cell-specific biases, assignment of cell cycle phase, and detection of highly
10961 variable and significantly correlated genes.")
10962 (license license:gpl3)))
10963
10964 (define-public r-delayedmatrixstats
10965 (package
10966 (name "r-delayedmatrixstats")
10967 (version "1.2.0")
10968 (source
10969 (origin
10970 (method url-fetch)
10971 (uri (bioconductor-uri "DelayedMatrixStats" version))
10972 (sha256
10973 (base32
10974 "1dasghfy8x27zzmd0igag4mc1gxxxbchsl4hpc1050dj3wnw9w3y"))))
10975 (properties
10976 `((upstream-name . "DelayedMatrixStats")))
10977 (build-system r-build-system)
10978 (propagated-inputs
10979 `(("r-delayedarray" ,r-delayedarray)
10980 ("r-iranges" ,r-iranges)
10981 ("r-matrix" ,r-matrix)
10982 ("r-matrixstats" ,r-matrixstats)
10983 ("r-s4vectors" ,r-s4vectors)))
10984 (home-page "https://github.com/PeteHaitch/DelayedMatrixStats")
10985 (synopsis "Functions that apply to rows and columns of DelayedMatrix objects")
10986 (description
10987 "This package provides a port of the @code{matrixStats} API for use with
10988 @code{DelayedMatrix} objects from the @code{DelayedArray} package. It
10989 contains high-performing functions operating on rows and columns of
10990 @code{DelayedMatrix} objects, e.g. @code{colMedians}, @code{rowMedians},
10991 @code{colRanks}, @code{rowRanks}, @code{colSds}, and @code{rowSds}. Functions
10992 are optimized per data type and for subsetted calculations such that both
10993 memory usage and processing time is minimized.")
10994 (license license:expat)))
10995
10996 (define-public r-phangorn
10997 (package
10998 (name "r-phangorn")
10999 (version "2.4.0")
11000 (source
11001 (origin
11002 (method url-fetch)
11003 (uri (cran-uri "phangorn" version))
11004 (sha256
11005 (base32
11006 "0xc8k552nxczy19jr0xjjagrzc8x6lafasgk2c099ls8bc1yml1i"))))
11007 (build-system r-build-system)
11008 (propagated-inputs
11009 `(("r-ape" ,r-ape)
11010 ("r-fastmatch" ,r-fastmatch)
11011 ("r-igraph" ,r-igraph)
11012 ("r-magrittr" ,r-magrittr)
11013 ("r-matrix" ,r-matrix)
11014 ("r-quadprog" ,r-quadprog)
11015 ("r-rcpp" ,r-rcpp)))
11016 (home-page "https://github.com/KlausVigo/phangorn")
11017 (synopsis "Phylogenetic analysis in R")
11018 (description
11019 "Phangorn is a package for phylogenetic analysis in R. It supports
11020 estimation of phylogenetic trees and networks using Maximum Likelihood,
11021 Maximum Parsimony, distance methods and Hadamard conjugation.")
11022 (license license:gpl2+)))
11023
11024 (define-public r-dropbead
11025 (let ((commit "d746c6f3b32110428ea56d6a0001ce52a251c247")
11026 (revision "2"))
11027 (package
11028 (name "r-dropbead")
11029 (version (string-append "0-" revision "." (string-take commit 7)))
11030 (source
11031 (origin
11032 (method git-fetch)
11033 (uri (git-reference
11034 (url "https://github.com/rajewsky-lab/dropbead.git")
11035 (commit commit)))
11036 (file-name (git-file-name name version))
11037 (sha256
11038 (base32
11039 "0sbzma49aiiyw8b0jpr7fnhzys9nsqmp4hy4hdz1gzyg1lhnca26"))))
11040 (build-system r-build-system)
11041 (propagated-inputs
11042 `(("r-ggplot2" ,r-ggplot2)
11043 ("r-rcolorbrewer" ,r-rcolorbrewer)
11044 ("r-gridextra" ,r-gridextra)
11045 ("r-gplots" ,r-gplots)
11046 ("r-plyr" ,r-plyr)))
11047 (home-page "https://github.com/rajewsky-lab/dropbead")
11048 (synopsis "Basic exploration and analysis of Drop-seq data")
11049 (description "This package offers a quick and straight-forward way to
11050 explore and perform basic analysis of single cell sequencing data coming from
11051 droplet sequencing. It has been particularly tailored for Drop-seq.")
11052 (license license:gpl3))))
11053
11054 (define htslib-for-sambamba
11055 (let ((commit "2f3c3ea7b301f9b45737a793c0b2dcf0240e5ee5"))
11056 (package
11057 (inherit htslib)
11058 (name "htslib-for-sambamba")
11059 (version (string-append "1.3.1-1." (string-take commit 9)))
11060 (source
11061 (origin
11062 (method git-fetch)
11063 (uri (git-reference
11064 (url "https://github.com/lomereiter/htslib.git")
11065 (commit commit)))
11066 (file-name (string-append "htslib-" version "-checkout"))
11067 (sha256
11068 (base32
11069 "0g38g8s3npr0gjm9fahlbhiskyfws9l5i0x1ml3rakzj7az5l9c9"))))
11070 (native-inputs
11071 `(("autoconf" ,autoconf)
11072 ("automake" ,automake)
11073 ,@(package-native-inputs htslib))))))
11074
11075 (define-public sambamba
11076 (package
11077 (name "sambamba")
11078 (version "0.6.7-10-g223fa20")
11079 (source
11080 (origin
11081 (method git-fetch)
11082 (uri (git-reference
11083 (url "https://github.com/lomereiter/sambamba.git")
11084 (commit (string-append "v" version))))
11085 (file-name (string-append name "-" version "-checkout"))
11086 (sha256
11087 (base32
11088 "1zb9hrxglxqh13ava9wwri30cvf85hjnbn8ccnr8l60a3k5avczn"))))
11089 (build-system gnu-build-system)
11090 (arguments
11091 `(#:tests? #f ; there is no test target
11092 #:parallel-build? #f ; not supported
11093 #:phases
11094 (modify-phases %standard-phases
11095 (delete 'configure)
11096 (add-after 'unpack 'fix-ldc-version
11097 (lambda _
11098 (substitute* "gen_ldc_version_info.py"
11099 (("/usr/bin/env.*") (which "python")))
11100 (substitute* "Makefile"
11101 (("\\$\\(shell which ldmd2\\)") (which "ldmd2")))
11102 #t))
11103 (add-after 'unpack 'place-biod-and-undead
11104 (lambda* (#:key inputs #:allow-other-keys)
11105 (copy-recursively (assoc-ref inputs "biod") "BioD")
11106 (copy-recursively (assoc-ref inputs "undead") "undeaD")
11107 #t))
11108 (add-after 'unpack 'unbundle-prerequisites
11109 (lambda _
11110 (substitute* "Makefile"
11111 (("htslib/libhts.a lz4/lib/liblz4.a")
11112 "-L-lhts -L-llz4")
11113 ((" htslib-static lz4-static") ""))
11114 #t))
11115 (replace 'install
11116 (lambda* (#:key outputs #:allow-other-keys)
11117 (let* ((out (assoc-ref outputs "out"))
11118 (bin (string-append out "/bin")))
11119 (mkdir-p bin)
11120 (install-file "build/sambamba" bin)
11121 #t))))))
11122 (native-inputs
11123 `(("ldc" ,ldc)
11124 ("rdmd" ,rdmd)
11125 ("python" ,python2-minimal)
11126 ("biod"
11127 ,(let ((commit "c778e4f2d8bacea7499283ce39f5577b232732c6"))
11128 (origin
11129 (method git-fetch)
11130 (uri (git-reference
11131 (url "https://github.com/biod/BioD.git")
11132 (commit commit)))
11133 (file-name (string-append "biod-"
11134 (string-take commit 9)
11135 "-checkout"))
11136 (sha256
11137 (base32
11138 "1z90562hg47i63gx042wb3ak2vqjg5z7hwgn9bp2pdxfg3nxrw37")))))
11139 ("undead"
11140 ,(let ((commit "92803d25c88657e945511f0976a0c79d8da46e89"))
11141 (origin
11142 (method git-fetch)
11143 (uri (git-reference
11144 (url "https://github.com/dlang/undeaD.git")
11145 (commit commit)))
11146 (file-name (string-append "undead-"
11147 (string-take commit 9)
11148 "-checkout"))
11149 (sha256
11150 (base32
11151 "0vq6n81vzqvgphjw54lz2isc1j8lcxwjdbrhqz1h5gwrvw9w5138")))))))
11152 (inputs
11153 `(("lz4" ,lz4)
11154 ("htslib" ,htslib-for-sambamba)))
11155 (home-page "http://lomereiter.github.io/sambamba")
11156 (synopsis "Tools for working with SAM/BAM data")
11157 (description "Sambamba is a high performance modern robust and
11158 fast tool (and library), written in the D programming language, for
11159 working with SAM and BAM files. Current parallelised functionality is
11160 an important subset of samtools functionality, including view, index,
11161 sort, markdup, and depth.")
11162 (license license:gpl2+)))
11163
11164 (define-public ritornello
11165 (package
11166 (name "ritornello")
11167 (version "1.0.0")
11168 (source (origin
11169 (method url-fetch)
11170 (uri (string-append "https://github.com/KlugerLab/"
11171 "Ritornello/archive/v"
11172 version ".tar.gz"))
11173 (file-name (string-append name "-" version ".tar.gz"))
11174 (sha256
11175 (base32
11176 "02nik86gq9ljjriv6pamwlmqnfky3ads1fpklx6mc3hx6k40pg38"))))
11177 (build-system gnu-build-system)
11178 (arguments
11179 `(#:tests? #f ; there are no tests
11180 #:phases
11181 (modify-phases %standard-phases
11182 (add-after 'unpack 'patch-samtools-references
11183 (lambda* (#:key inputs #:allow-other-keys)
11184 (substitute* '("src/SamStream.h"
11185 "src/BufferedGenomeReader.h")
11186 (("<sam.h>") "<samtools/sam.h>"))
11187 #t))
11188 (delete 'configure)
11189 (replace 'install
11190 (lambda* (#:key inputs outputs #:allow-other-keys)
11191 (let* ((out (assoc-ref outputs "out"))
11192 (bin (string-append out "/bin/")))
11193 (mkdir-p bin)
11194 (install-file "bin/Ritornello" bin)
11195 #t))))))
11196 (inputs
11197 `(("samtools" ,samtools-0.1)
11198 ("fftw" ,fftw)
11199 ("boost" ,boost)
11200 ("zlib" ,zlib)))
11201 (home-page "https://github.com/KlugerLab/Ritornello")
11202 (synopsis "Control-free peak caller for ChIP-seq data")
11203 (description "Ritornello is a ChIP-seq peak calling algorithm based on
11204 signal processing that can accurately call binding events without the need to
11205 do a pair total DNA input or IgG control sample. It has been tested for use
11206 with narrow binding events such as transcription factor ChIP-seq.")
11207 (license license:gpl3+)))
11208
11209 (define-public trim-galore
11210 (package
11211 (name "trim-galore")
11212 (version "0.4.5")
11213 (source
11214 (origin
11215 (method git-fetch)
11216 (uri (git-reference
11217 (url "https://github.com/FelixKrueger/TrimGalore.git")
11218 (commit version)))
11219 (file-name (string-append name "-" version "-checkout"))
11220 (sha256
11221 (base32
11222 "0x5892l48c816pf00wmnz5vq0zq6170d3xc8zrxncd4jcz7h1p71"))))
11223 (build-system gnu-build-system)
11224 (arguments
11225 `(#:tests? #f ; no tests
11226 #:phases
11227 (modify-phases %standard-phases
11228 (delete 'configure)
11229 (delete 'build)
11230 (add-after 'unpack 'hardcode-tool-references
11231 (lambda* (#:key inputs #:allow-other-keys)
11232 (substitute* "trim_galore"
11233 (("\\$path_to_cutadapt = 'cutadapt'")
11234 (string-append "$path_to_cutadapt = '"
11235 (assoc-ref inputs "cutadapt")
11236 "/bin/cutadapt'"))
11237 (("\\| gzip")
11238 (string-append "| "
11239 (assoc-ref inputs "gzip")
11240 "/bin/gzip"))
11241 (("\"gunzip")
11242 (string-append "\""
11243 (assoc-ref inputs "gzip")
11244 "/bin/gunzip")))
11245 #t))
11246 (replace 'install
11247 (lambda* (#:key outputs #:allow-other-keys)
11248 (let ((bin (string-append (assoc-ref outputs "out")
11249 "/bin")))
11250 (mkdir-p bin)
11251 (install-file "trim_galore" bin)
11252 #t))))))
11253 (inputs
11254 `(("gzip" ,gzip)
11255 ("perl" ,perl)
11256 ("cutadapt" ,cutadapt)))
11257 (native-inputs
11258 `(("unzip" ,unzip)))
11259 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/trim_galore/")
11260 (synopsis "Wrapper around Cutadapt and FastQC")
11261 (description "Trim Galore! is a wrapper script to automate quality and
11262 adapter trimming as well as quality control, with some added functionality to
11263 remove biased methylation positions for RRBS sequence files.")
11264 (license license:gpl3+)))
11265
11266 (define-public gess
11267 (package
11268 (name "gess")
11269 (version "1.0")
11270 (source (origin
11271 (method url-fetch)
11272 (uri (string-append "http://compbio.uthscsa.edu/"
11273 "GESS_Web/files/"
11274 "gess-" version ".src.tar.gz"))
11275 (sha256
11276 (base32
11277 "0hyk403kxscclzfs24pvdgiv0wm03kjcziqdrp5w46cb049gz0d7"))))
11278 (build-system gnu-build-system)
11279 (arguments
11280 `(#:tests? #f ; no tests
11281 #:phases
11282 (modify-phases %standard-phases
11283 (delete 'configure)
11284 (delete 'build)
11285 (replace 'install
11286 (lambda* (#:key inputs outputs #:allow-other-keys)
11287 (let* ((python (assoc-ref inputs "python"))
11288 (out (assoc-ref outputs "out"))
11289 (bin (string-append out "/bin/"))
11290 (target (string-append
11291 out "/lib/python2.7/site-packages/gess/")))
11292 (mkdir-p target)
11293 (copy-recursively "." target)
11294 ;; Make GESS.py executable
11295 (chmod (string-append target "GESS.py") #o555)
11296 ;; Add Python shebang to the top and make Matplotlib
11297 ;; usable.
11298 (substitute* (string-append target "GESS.py")
11299 (("\"\"\"Description:" line)
11300 (string-append "#!" (which "python") "
11301 import matplotlib
11302 matplotlib.use('Agg')
11303 " line)))
11304 ;; Make sure GESS has all modules in its path
11305 (wrap-program (string-append target "GESS.py")
11306 `("PYTHONPATH" ":" prefix (,target ,(getenv "PYTHONPATH"))))
11307 (mkdir-p bin)
11308 (symlink (string-append target "GESS.py")
11309 (string-append bin "GESS.py"))
11310 #t))))))
11311 (inputs
11312 `(("python" ,python-2)
11313 ("python2-pysam" ,python2-pysam)
11314 ("python2-scipy" ,python2-scipy)
11315 ("python2-numpy" ,python2-numpy)
11316 ("python2-networkx" ,python2-networkx)
11317 ("python2-biopython" ,python2-biopython)))
11318 (home-page "http://compbio.uthscsa.edu/GESS_Web/")
11319 (synopsis "Detect exon-skipping events from raw RNA-seq data")
11320 (description
11321 "GESS is an implementation of a novel computational method to detect de
11322 novo exon-skipping events directly from raw RNA-seq data without the prior
11323 knowledge of gene annotation information. GESS stands for the graph-based
11324 exon-skipping scanner detection scheme.")
11325 (license license:bsd-3)))
11326
11327 (define-public phylip
11328 (package
11329 (name "phylip")
11330 (version "3.696")
11331 (source
11332 (origin
11333 (method url-fetch)
11334 (uri (string-append "http://evolution.gs.washington.edu/phylip/"
11335 "download/phylip-" version ".tar.gz"))
11336 (sha256
11337 (base32
11338 "01jar1rayhr2gba2pgbw49m56rc5z4p5wn3ds0m188hrlln4a2nd"))))
11339 (build-system gnu-build-system)
11340 (arguments
11341 `(#:tests? #f ; no check target
11342 #:make-flags (list "-f" "Makefile.unx" "install")
11343 #:parallel-build? #f ; not supported
11344 #:phases
11345 (modify-phases %standard-phases
11346 (add-after 'unpack 'enter-dir
11347 (lambda _ (chdir "src") #t))
11348 (delete 'configure)
11349 (replace 'install
11350 (lambda* (#:key inputs outputs #:allow-other-keys)
11351 (let ((target (string-append (assoc-ref outputs "out")
11352 "/bin")))
11353 (mkdir-p target)
11354 (for-each (lambda (file)
11355 (install-file file target))
11356 (find-files "../exe" ".*")))
11357 #t)))))
11358 (home-page "http://evolution.genetics.washington.edu/phylip/")
11359 (synopsis "Tools for inferring phylogenies")
11360 (description "PHYLIP (the PHYLogeny Inference Package) is a package of
11361 programs for inferring phylogenies (evolutionary trees).")
11362 (license license:bsd-2)))
11363
11364 (define-public imp
11365 (package
11366 (name "imp")
11367 (version "2.6.2")
11368 (source
11369 (origin
11370 (method url-fetch)
11371 (uri (string-append "https://integrativemodeling.org/"
11372 version "/download/imp-" version ".tar.gz"))
11373 (sha256
11374 (base32
11375 "0lxqx7vh79d771svr611dkilp6sn30qrbw8zvscbrm37v38d2j6h"))))
11376 (build-system cmake-build-system)
11377 (arguments
11378 `(;; FIXME: Some tests fail because they produce warnings, others fail
11379 ;; because the PYTHONPATH does not include the modeller's directory.
11380 #:tests? #f))
11381 (inputs
11382 `(("boost" ,boost)
11383 ("gsl" ,gsl)
11384 ("swig" ,swig)
11385 ("hdf5" ,hdf5)
11386 ("fftw" ,fftw)
11387 ("python" ,python-2)))
11388 (propagated-inputs
11389 `(("python2-numpy" ,python2-numpy)
11390 ("python2-scipy" ,python2-scipy)
11391 ("python2-pandas" ,python2-pandas)
11392 ("python2-scikit-learn" ,python2-scikit-learn)
11393 ("python2-networkx" ,python2-networkx)))
11394 (home-page "https://integrativemodeling.org")
11395 (synopsis "Integrative modeling platform")
11396 (description "IMP's broad goal is to contribute to a comprehensive
11397 structural characterization of biomolecules ranging in size and complexity
11398 from small peptides to large macromolecular assemblies, by integrating data
11399 from diverse biochemical and biophysical experiments. IMP provides a C++ and
11400 Python toolbox for solving complex modeling problems, and a number of
11401 applications for tackling some common problems in a user-friendly way.")
11402 ;; IMP is largely available under the GNU Lesser GPL; see the file
11403 ;; COPYING.LGPL for the full text of this license. Some IMP modules are
11404 ;; available under the GNU GPL (see the file COPYING.GPL).
11405 (license (list license:lgpl2.1+
11406 license:gpl3+))))
11407
11408 (define-public tadbit
11409 (package
11410 (name "tadbit")
11411 (version "0.2")
11412 (source (origin
11413 (method url-fetch)
11414 (uri (string-append "https://github.com/3DGenomes/TADbit/"
11415 "archive/v" version ".tar.gz"))
11416 (file-name (string-append name "-" version ".tar.gz"))
11417 (sha256
11418 (base32
11419 "1cnfqrl4685zar4nnw94j94nhvl2h29jm448nadqi1h05z6fdk4f"))))
11420 (build-system python-build-system)
11421 (arguments
11422 `(;; Tests are included and must be run after installation, but
11423 ;; they are incomplete and thus cannot be run.
11424 #:tests? #f
11425 #:python ,python-2
11426 #:phases
11427 (modify-phases %standard-phases
11428 (add-after 'unpack 'fix-problems-with-setup.py
11429 (lambda* (#:key outputs #:allow-other-keys)
11430 ;; setup.py opens these files for writing
11431 (chmod "_pytadbit/_version.py" #o664)
11432 (chmod "README.rst" #o664)
11433
11434 ;; Don't attempt to install the bash completions to
11435 ;; the home directory.
11436 (rename-file "extras/.bash_completion"
11437 "extras/tadbit")
11438 (substitute* "setup.py"
11439 (("\\(path.expanduser\\('~'\\)")
11440 (string-append "(\""
11441 (assoc-ref outputs "out")
11442 "/etc/bash_completion.d\""))
11443 (("extras/\\.bash_completion")
11444 "extras/tadbit"))
11445 #t)))))
11446 (inputs
11447 ;; TODO: add Chimera for visualization
11448 `(("imp" ,imp)
11449 ("mcl" ,mcl)
11450 ("python2-scipy" ,python2-scipy)
11451 ("python2-numpy" ,python2-numpy)
11452 ("python2-matplotlib" ,python2-matplotlib)
11453 ("python2-pysam" ,python2-pysam)))
11454 (home-page "https://3dgenomes.github.io/TADbit/")
11455 (synopsis "Analyze, model, and explore 3C-based data")
11456 (description
11457 "TADbit is a complete Python library to deal with all steps to analyze,
11458 model, and explore 3C-based data. With TADbit the user can map FASTQ files to
11459 obtain raw interaction binned matrices (Hi-C like matrices), normalize and
11460 correct interaction matrices, identify and compare the so-called
11461 @dfn{Topologically Associating Domains} (TADs), build 3D models from the
11462 interaction matrices, and finally, extract structural properties from the
11463 models. TADbit is complemented by TADkit for visualizing 3D models.")
11464 (license license:gpl3+)))
11465
11466 (define-public kentutils
11467 (package
11468 (name "kentutils")
11469 ;; 302.1.0 is out, but the only difference is the inclusion of
11470 ;; pre-built binaries.
11471 (version "302.0.0")
11472 (source
11473 (origin
11474 (method url-fetch)
11475 (uri (string-append "https://github.com/ENCODE-DCC/kentUtils/"
11476 "archive/v" version ".tar.gz"))
11477 (file-name (string-append name "-" version ".tar.gz"))
11478 (sha256
11479 (base32
11480 "134aja3k1cj32kbk1nnw0q9gxjb2krr15q6sga8qldzvc0585rmm"))
11481 (modules '((guix build utils)
11482 (srfi srfi-26)
11483 (ice-9 ftw)))
11484 (snippet
11485 '(begin
11486 ;; Only the contents of the specified directories are free
11487 ;; for all uses, so we remove the rest. "hg/autoSql" and
11488 ;; "hg/autoXml" are nominally free, but they depend on a
11489 ;; library that is built from the sources in "hg/lib",
11490 ;; which is nonfree.
11491 (let ((free (list "." ".."
11492 "utils" "lib" "inc" "tagStorm"
11493 "parasol" "htslib"))
11494 (directory? (lambda (file)
11495 (eq? 'directory (stat:type (stat file))))))
11496 (for-each (lambda (file)
11497 (and (directory? file)
11498 (delete-file-recursively file)))
11499 (map (cut string-append "src/" <>)
11500 (scandir "src"
11501 (lambda (file)
11502 (not (member file free)))))))
11503 ;; Only make the utils target, not the userApps target,
11504 ;; because that requires libraries we won't build.
11505 (substitute* "Makefile"
11506 ((" userApps") " utils"))
11507 ;; Only build libraries that are free.
11508 (substitute* "src/makefile"
11509 (("DIRS =.*") "DIRS =\n")
11510 (("cd jkOwnLib.*") "")
11511 ((" hgLib") "")
11512 (("cd hg.*") ""))
11513 (substitute* "src/utils/makefile"
11514 ;; These tools depend on "jkhgap.a", which is part of the
11515 ;; nonfree "src/hg/lib" directory.
11516 (("raSqlQuery") "")
11517 (("pslLiftSubrangeBlat") "")
11518
11519 ;; Do not build UCSC tools, which may require nonfree
11520 ;; components.
11521 (("ALL_APPS =.*") "ALL_APPS = $(UTILS_APPLIST)\n"))
11522 #t))))
11523 (build-system gnu-build-system)
11524 (arguments
11525 `( ;; There is no global test target and the test target for
11526 ;; individual tools depends on input files that are not
11527 ;; included.
11528 #:tests? #f
11529 #:phases
11530 (modify-phases %standard-phases
11531 (add-after 'unpack 'fix-paths
11532 (lambda _
11533 (substitute* "Makefile"
11534 (("/bin/echo") (which "echo")))
11535 #t))
11536 (add-after 'unpack 'prepare-samtabix
11537 (lambda* (#:key inputs #:allow-other-keys)
11538 (copy-recursively (assoc-ref inputs "samtabix")
11539 "samtabix")
11540 #t))
11541 (delete 'configure)
11542 (replace 'install
11543 (lambda* (#:key outputs #:allow-other-keys)
11544 (let ((bin (string-append (assoc-ref outputs "out")
11545 "/bin")))
11546 (copy-recursively "bin" bin))
11547 #t)))))
11548 (native-inputs
11549 `(("samtabix"
11550 ,(origin
11551 (method git-fetch)
11552 (uri (git-reference
11553 (url "http://genome-source.cse.ucsc.edu/samtabix.git")
11554 (commit "10fd107909c1ac4d679299908be4262a012965ba")))
11555 (sha256
11556 (base32
11557 "0c1nj64l42v395sa84n7az43xiap4i6f9n9dfz4058aqiwkhkmma"))))))
11558 (inputs
11559 `(("zlib" ,zlib)
11560 ("tcsh" ,tcsh)
11561 ("perl" ,perl)
11562 ("libpng" ,libpng)
11563 ("mariadb" ,mariadb)
11564 ("openssl" ,openssl)))
11565 (home-page "http://genome.cse.ucsc.edu/index.html")
11566 (synopsis "Assorted bioinformatics utilities")
11567 (description "This package provides the kentUtils, a selection of
11568 bioinformatics utilities used in combination with the UCSC genome
11569 browser.")
11570 ;; Only a subset of the sources are released under a non-copyleft
11571 ;; free software license. All other sources are removed in a
11572 ;; snippet. See this bug report for an explanation of how the
11573 ;; license statements apply:
11574 ;; https://github.com/ENCODE-DCC/kentUtils/issues/12
11575 (license (license:non-copyleft
11576 "http://genome.ucsc.edu/license/"
11577 "The contents of this package are free for all uses."))))
11578
11579 (define-public f-seq
11580 (let ((commit "6ccded34cff38cf432deed8503648b4a66953f9b")
11581 (revision "1"))
11582 (package
11583 (name "f-seq")
11584 (version (string-append "1.1-" revision "." (string-take commit 7)))
11585 (source (origin
11586 (method git-fetch)
11587 (uri (git-reference
11588 (url "https://github.com/aboyle/F-seq.git")
11589 (commit commit)))
11590 (file-name (string-append name "-" version))
11591 (sha256
11592 (base32
11593 "1nk33k0yajg2id4g59bc4szr58r2q6pdq42vgcw054m8ip9wv26h"))
11594 (modules '((guix build utils)))
11595 ;; Remove bundled Java library archives.
11596 (snippet
11597 '(begin
11598 (for-each delete-file (find-files "lib" ".*"))
11599 #t))))
11600 (build-system ant-build-system)
11601 (arguments
11602 `(#:tests? #f ; no tests included
11603 #:phases
11604 (modify-phases %standard-phases
11605 (replace 'install
11606 (lambda* (#:key inputs outputs #:allow-other-keys)
11607 (let* ((target (assoc-ref outputs "out"))
11608 (bin (string-append target "/bin"))
11609 (doc (string-append target "/share/doc/f-seq"))
11610 (lib (string-append target "/lib")))
11611 (mkdir-p target)
11612 (mkdir-p doc)
11613 (substitute* "bin/linux/fseq"
11614 (("java") (which "java"))
11615 (("\\$REALDIR/../lib/commons-cli-1.1.jar")
11616 (string-append (assoc-ref inputs "java-commons-cli")
11617 "/share/java/commons-cli.jar"))
11618 (("REALDIR=.*")
11619 (string-append "REALDIR=" bin "\n")))
11620 (install-file "README.txt" doc)
11621 (install-file "bin/linux/fseq" bin)
11622 (install-file "build~/fseq.jar" lib)
11623 (copy-recursively "lib" lib)
11624 #t))))))
11625 (inputs
11626 `(("perl" ,perl)
11627 ("java-commons-cli" ,java-commons-cli)))
11628 (home-page "http://fureylab.web.unc.edu/software/fseq/")
11629 (synopsis "Feature density estimator for high-throughput sequence tags")
11630 (description
11631 "F-Seq is a software package that generates a continuous tag sequence
11632 density estimation allowing identification of biologically meaningful sites
11633 such as transcription factor binding sites (ChIP-seq) or regions of open
11634 chromatin (DNase-seq). Output can be displayed directly in the UCSC Genome
11635 Browser.")
11636 (license license:gpl3+))))
11637
11638 (define-public bismark
11639 (package
11640 (name "bismark")
11641 (version "0.19.1")
11642 (source
11643 (origin
11644 (method git-fetch)
11645 (uri (git-reference
11646 (url "https://github.com/FelixKrueger/Bismark.git")
11647 (commit version)))
11648 (file-name (string-append name "-" version "-checkout"))
11649 (sha256
11650 (base32
11651 "0yb5l36slwg02fp4b1jdlplgljcsxgqfzvzihzdnphd87dghcc84"))
11652 (snippet
11653 '(begin
11654 ;; highcharts.js is non-free software. The code is available under
11655 ;; CC-BY-NC or proprietary licenses only.
11656 (delete-file "bismark_sitrep/highcharts.js")
11657 #t))))
11658 (build-system perl-build-system)
11659 (arguments
11660 `(#:tests? #f ; there are no tests
11661 #:phases
11662 (modify-phases %standard-phases
11663 (delete 'configure)
11664 (delete 'build)
11665 (replace 'install
11666 (lambda* (#:key inputs outputs #:allow-other-keys)
11667 (let* ((out (assoc-ref outputs "out"))
11668 (bin (string-append out "/bin"))
11669 (share (string-append out "/share/bismark"))
11670 (docdir (string-append out "/share/doc/bismark"))
11671 (docs '("Docs/Bismark_User_Guide.html"))
11672 (scripts '("bismark"
11673 "bismark_genome_preparation"
11674 "bismark_methylation_extractor"
11675 "bismark2bedGraph"
11676 "bismark2report"
11677 "coverage2cytosine"
11678 "deduplicate_bismark"
11679 "filter_non_conversion"
11680 "bam2nuc"
11681 "bismark2summary")))
11682 (substitute* "bismark2report"
11683 (("\\$RealBin/bismark_sitrep")
11684 (string-append share "/bismark_sitrep")))
11685 (mkdir-p share)
11686 (mkdir-p docdir)
11687 (mkdir-p bin)
11688 (for-each (lambda (file) (install-file file bin))
11689 scripts)
11690 (for-each (lambda (file) (install-file file docdir))
11691 docs)
11692 (copy-recursively "Docs/Images" (string-append docdir "/Images"))
11693 (copy-recursively "bismark_sitrep"
11694 (string-append share "/bismark_sitrep"))
11695
11696 ;; Fix references to gunzip
11697 (substitute* (map (lambda (file)
11698 (string-append bin "/" file))
11699 scripts)
11700 (("\"gunzip -c")
11701 (string-append "\"" (assoc-ref inputs "gzip")
11702 "/bin/gunzip -c")))
11703 #t))))))
11704 (inputs
11705 `(("gzip" ,gzip)))
11706 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/bismark/")
11707 (synopsis "Map bisulfite treated sequence reads and analyze methylation")
11708 (description "Bismark is a program to map bisulfite treated sequencing
11709 reads to a genome of interest and perform methylation calls in a single step.
11710 The output can be easily imported into a genome viewer, such as SeqMonk, and
11711 enables a researcher to analyse the methylation levels of their samples
11712 straight away. Its main features are:
11713
11714 @itemize
11715 @item Bisulfite mapping and methylation calling in one single step
11716 @item Supports single-end and paired-end read alignments
11717 @item Supports ungapped and gapped alignments
11718 @item Alignment seed length, number of mismatches etc are adjustable
11719 @item Output discriminates between cytosine methylation in CpG, CHG
11720 and CHH context
11721 @end itemize\n")
11722 (license license:gpl3+)))
11723
11724 (define-public paml
11725 (package
11726 (name "paml")
11727 (version "4.9e")
11728 (source (origin
11729 (method url-fetch)
11730 (uri (string-append "http://abacus.gene.ucl.ac.uk/software/"
11731 "paml" version ".tgz"))
11732 (sha256
11733 (base32
11734 "13zf6h9fiqghwhch2h06x1zdr6s42plsnqahflp5g7myr3han3s6"))
11735 (modules '((guix build utils)))
11736 ;; Remove Windows binaries
11737 (snippet
11738 '(begin
11739 (for-each delete-file (find-files "." "\\.exe$"))
11740 #t))))
11741 (build-system gnu-build-system)
11742 (arguments
11743 `(#:tests? #f ; there are no tests
11744 #:make-flags '("CC=gcc")
11745 #:phases
11746 (modify-phases %standard-phases
11747 (replace 'configure
11748 (lambda _
11749 (substitute* "src/BFdriver.c"
11750 (("/bin/bash") (which "bash")))
11751 (chdir "src")
11752 #t))
11753 (replace 'install
11754 (lambda* (#:key outputs #:allow-other-keys)
11755 (let ((tools '("baseml" "basemlg" "codeml"
11756 "pamp" "evolver" "yn00" "chi2"))
11757 (bin (string-append (assoc-ref outputs "out") "/bin"))
11758 (docdir (string-append (assoc-ref outputs "out")
11759 "/share/doc/paml")))
11760 (mkdir-p bin)
11761 (for-each (lambda (file) (install-file file bin)) tools)
11762 (copy-recursively "../doc" docdir)
11763 #t))))))
11764 (home-page "http://abacus.gene.ucl.ac.uk/software/paml.html")
11765 (synopsis "Phylogentic analysis by maximum likelihood")
11766 (description "PAML (for Phylogentic Analysis by Maximum Likelihood)
11767 contains a few programs for model fitting and phylogenetic tree reconstruction
11768 using nucleotide or amino-acid sequence data.")
11769 ;; GPLv3 only
11770 (license license:gpl3)))
11771
11772 (define-public kallisto
11773 (package
11774 (name "kallisto")
11775 (version "0.43.1")
11776 (source (origin
11777 (method url-fetch)
11778 (uri (string-append "https://github.com/pachterlab/"
11779 "kallisto/archive/v" version ".tar.gz"))
11780 (file-name (string-append name "-" version ".tar.gz"))
11781 (sha256
11782 (base32
11783 "03j3iqhvq7ya3c91gidly3k3jvgm97vjq4scihrlxh315j696r11"))))
11784 (build-system cmake-build-system)
11785 (arguments `(#:tests? #f)) ; no "check" target
11786 (inputs
11787 `(("hdf5" ,hdf5)
11788 ("zlib" ,zlib)))
11789 (home-page "http://pachterlab.github.io/kallisto/")
11790 (synopsis "Near-optimal RNA-Seq quantification")
11791 (description
11792 "Kallisto is a program for quantifying abundances of transcripts from
11793 RNA-Seq data, or more generally of target sequences using high-throughput
11794 sequencing reads. It is based on the novel idea of pseudoalignment for
11795 rapidly determining the compatibility of reads with targets, without the need
11796 for alignment. Pseudoalignment of reads preserves the key information needed
11797 for quantification, and kallisto is therefore not only fast, but also as
11798 accurate as existing quantification tools.")
11799 (license license:bsd-2)))
11800
11801 (define-public libgff
11802 (package
11803 (name "libgff")
11804 (version "1.0")
11805 (source (origin
11806 (method url-fetch)
11807 (uri (string-append
11808 "https://github.com/Kingsford-Group/"
11809 "libgff/archive/v" version ".tar.gz"))
11810 (file-name (string-append name "-" version ".tar.gz"))
11811 (sha256
11812 (base32
11813 "0vc4nxyhlm6g9vvmx5l4lfs5pnvixsv1hiiy4kddf2y3p6jna8ls"))))
11814 (build-system cmake-build-system)
11815 (arguments `(#:tests? #f)) ; no tests included
11816 (home-page "https://github.com/Kingsford-Group/libgff")
11817 (synopsis "Parser library for reading/writing GFF files")
11818 (description "This is a simple \"libraryfication\" of the GFF/GTF parsing
11819 code that is used in the Cufflinks codebase. The goal of this library is to
11820 provide this functionality without the necessity of drawing in a heavy-weight
11821 dependency like SeqAn.")
11822 (license (license:x11-style "https://www.boost.org/LICENSE_1_0.txt"))))
11823
11824 (define-public libdivsufsort
11825 (package
11826 (name "libdivsufsort")
11827 (version "2.0.1")
11828 (source (origin
11829 (method git-fetch)
11830 (uri (git-reference
11831 (url "https://github.com/y-256/libdivsufsort.git")
11832 (commit version)))
11833 (file-name (git-file-name name version))
11834 (sha256
11835 (base32
11836 "0fgdz9fzihlvjjrxy01md1bv9vh12rkgkwbm90b1hj5xpbaqp7z2"))))
11837 (build-system cmake-build-system)
11838 (arguments
11839 '(#:tests? #f ; there are no tests
11840 #:configure-flags
11841 ;; Needed for rapmap and sailfish.
11842 '("-DBUILD_DIVSUFSORT64=ON")))
11843 (home-page "https://github.com/y-256/libdivsufsort")
11844 (synopsis "Lightweight suffix-sorting library")
11845 (description "libdivsufsort is a software library that implements a
11846 lightweight suffix array construction algorithm. This library provides a
11847 simple and an efficient C API to construct a suffix array and a
11848 Burrows-Wheeler transformed string from a given string over a constant-size
11849 alphabet. The algorithm runs in O(n log n) worst-case time using only 5n+O(1)
11850 bytes of memory space, where n is the length of the string.")
11851 (license license:expat)))
11852
11853 (define-public sailfish
11854 (package
11855 (name "sailfish")
11856 (version "0.10.1")
11857 (source (origin
11858 (method url-fetch)
11859 (uri
11860 (string-append "https://github.com/kingsfordgroup/"
11861 "sailfish/archive/v" version ".tar.gz"))
11862 (file-name (string-append name "-" version ".tar.gz"))
11863 (sha256
11864 (base32
11865 "1inn60dxiwsz8g9w7kvfhjxj4bwfb0r12dyhpzzhfbig712dkmm0"))
11866 (modules '((guix build utils)))
11867 (snippet
11868 '(begin
11869 ;; Delete bundled headers for eigen3.
11870 (delete-file-recursively "include/eigen3/")
11871 #t))))
11872 (build-system cmake-build-system)
11873 (arguments
11874 `(#:configure-flags
11875 (list (string-append "-DBOOST_INCLUDEDIR="
11876 (assoc-ref %build-inputs "boost")
11877 "/include/")
11878 (string-append "-DBOOST_LIBRARYDIR="
11879 (assoc-ref %build-inputs "boost")
11880 "/lib/")
11881 (string-append "-DBoost_LIBRARIES="
11882 "-lboost_iostreams "
11883 "-lboost_filesystem "
11884 "-lboost_system "
11885 "-lboost_thread "
11886 "-lboost_timer "
11887 "-lboost_chrono "
11888 "-lboost_program_options")
11889 "-DBoost_FOUND=TRUE"
11890 ;; Don't download RapMap---we already have it!
11891 "-DFETCHED_RAPMAP=1")
11892 ;; Tests must be run after installation and the location of the test
11893 ;; data file must be overridden. But the tests fail. It looks like
11894 ;; they are not really meant to be run.
11895 #:tests? #f
11896 #:phases
11897 (modify-phases %standard-phases
11898 ;; Boost cannot be found, even though it's right there.
11899 (add-after 'unpack 'do-not-look-for-boost
11900 (lambda* (#:key inputs #:allow-other-keys)
11901 (substitute* "CMakeLists.txt"
11902 (("find_package\\(Boost 1\\.53\\.0") "#"))))
11903 (add-after 'unpack 'do-not-assign-to-macro
11904 (lambda _
11905 (substitute* "include/spdlog/details/format.cc"
11906 (("const unsigned CHAR_WIDTH = 1;") ""))))
11907 (add-after 'unpack 'prepare-rapmap
11908 (lambda* (#:key inputs #:allow-other-keys)
11909 (let ((src "external/install/src/rapmap/")
11910 (include "external/install/include/rapmap/")
11911 (rapmap (assoc-ref inputs "rapmap")))
11912 (mkdir-p "/tmp/rapmap")
11913 (system* "tar" "xf"
11914 (assoc-ref inputs "rapmap")
11915 "-C" "/tmp/rapmap"
11916 "--strip-components=1")
11917 (mkdir-p src)
11918 (mkdir-p include)
11919 (for-each (lambda (file)
11920 (install-file file src))
11921 (find-files "/tmp/rapmap/src" "\\.(c|cpp)"))
11922 (copy-recursively "/tmp/rapmap/include" include))))
11923 (add-after 'unpack 'use-system-libraries
11924 (lambda* (#:key inputs #:allow-other-keys)
11925 (substitute* '("src/SailfishIndexer.cpp"
11926 "src/SailfishUtils.cpp"
11927 "src/SailfishQuantify.cpp"
11928 "src/FASTAParser.cpp"
11929 "include/PCA.hpp"
11930 "include/SailfishUtils.hpp"
11931 "include/SailfishIndex.hpp"
11932 "include/CollapsedEMOptimizer.hpp"
11933 "src/CollapsedEMOptimizer.cpp")
11934 (("#include \"jellyfish/config.h\"") ""))
11935 (substitute* "src/CMakeLists.txt"
11936 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
11937 (string-append (assoc-ref inputs "jellyfish")
11938 "/include/jellyfish-" ,(package-version jellyfish)))
11939 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
11940 (string-append (assoc-ref inputs "jellyfish")
11941 "/lib/libjellyfish-2.0.a"))
11942 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
11943 (string-append (assoc-ref inputs "libdivsufsort")
11944 "/lib/libdivsufsort.so"))
11945 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
11946 (string-append (assoc-ref inputs "libdivsufsort")
11947 "/lib/libdivsufsort64.so")))
11948 (substitute* "CMakeLists.txt"
11949 ;; Don't prefer static libs
11950 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
11951 (("find_package\\(Jellyfish.*") "")
11952 (("ExternalProject_Add\\(libjellyfish") "message(")
11953 (("ExternalProject_Add\\(libgff") "message(")
11954 (("ExternalProject_Add\\(libsparsehash") "message(")
11955 (("ExternalProject_Add\\(libdivsufsort") "message("))
11956
11957 ;; Ensure that Eigen headers can be found
11958 (setenv "CPLUS_INCLUDE_PATH"
11959 (string-append (getenv "CPLUS_INCLUDE_PATH")
11960 ":"
11961 (assoc-ref inputs "eigen")
11962 "/include/eigen3")))))))
11963 (inputs
11964 `(("boost" ,boost)
11965 ("eigen" ,eigen)
11966 ("jemalloc" ,jemalloc)
11967 ("jellyfish" ,jellyfish)
11968 ("sparsehash" ,sparsehash)
11969 ("rapmap" ,(origin
11970 (method git-fetch)
11971 (uri (git-reference
11972 (url "https://github.com/COMBINE-lab/RapMap.git")
11973 (commit (string-append "sf-v" version))))
11974 (file-name (string-append "rapmap-sf-v" version "-checkout"))
11975 (sha256
11976 (base32
11977 "1hv79l5i576ykv5a1srj2p0q36yvyl5966m0fcy2lbi169ipjakf"))
11978 (modules '((guix build utils)))
11979 ;; These files are expected to be excluded.
11980 (snippet
11981 '(begin (delete-file-recursively "include/spdlog")
11982 (for-each delete-file '("include/xxhash.h"
11983 "src/xxhash.c"))
11984 #t))))
11985 ("libdivsufsort" ,libdivsufsort)
11986 ("libgff" ,libgff)
11987 ("tbb" ,tbb)
11988 ("zlib" ,zlib)))
11989 (native-inputs
11990 `(("pkg-config" ,pkg-config)))
11991 (home-page "http://www.cs.cmu.edu/~ckingsf/software/sailfish")
11992 (synopsis "Mapping-based isoform quantification from RNA-Seq reads")
11993 (description "Sailfish is a tool for genomic transcript quantification
11994 from RNA-seq data. It requires a set of target transcripts (either from a
11995 reference or de-novo assembly) to quantify. All you need to run sailfish is a
11996 fasta file containing your reference transcripts and a (set of) fasta/fastq
11997 file(s) containing your reads.")
11998 (license license:gpl3+)))
11999
12000 (define libstadenio-for-salmon
12001 (package
12002 (name "libstadenio")
12003 (version "1.14.8")
12004 (source (origin
12005 (method git-fetch)
12006 (uri (git-reference
12007 (url "https://github.com/COMBINE-lab/staden-io_lib.git")
12008 (commit (string-append "v" version))))
12009 (file-name (string-append name "-" version "-checkout"))
12010 (sha256
12011 (base32
12012 "1x8kxxqxl892vwfbprlbyfwkkv7c34ggkc94892x9x0g37x5nbwx"))))
12013 (build-system gnu-build-system)
12014 (arguments '(#:parallel-tests? #f)) ; not supported
12015 (inputs
12016 `(("zlib" ,zlib)))
12017 (native-inputs
12018 `(("perl" ,perl))) ; for tests
12019 (home-page "https://github.com/COMBINE-lab/staden-io_lib")
12020 (synopsis "General purpose trace and experiment file library")
12021 (description "This package provides a library of file reading and writing
12022 code to provide a general purpose Trace file (and Experiment File) reading
12023 interface.
12024
12025 The following file formats are supported:
12026
12027 @enumerate
12028 @item SCF trace files
12029 @item ABI trace files
12030 @item ALF trace files
12031 @item ZTR trace files
12032 @item SFF trace archives
12033 @item SRF trace archives
12034 @item Experiment files
12035 @item Plain text files
12036 @item SAM/BAM sequence files
12037 @item CRAM sequence files
12038 @end enumerate\n")
12039 (license license:bsd-3)))
12040
12041 (define spdlog-for-salmon
12042 (package
12043 (name "spdlog")
12044 (version "0.14.0")
12045 (source (origin
12046 (method git-fetch)
12047 (uri (git-reference
12048 (url "https://github.com/COMBINE-lab/spdlog.git")
12049 (commit (string-append "v" version))))
12050 (file-name (string-append name "-" version "-checkout"))
12051 (sha256
12052 (base32
12053 "13730429gwlabi432ilpnja3sfvy0nn2719vnhhmii34xcdyc57q"))))
12054 (build-system cmake-build-system)
12055 (home-page "https://github.com/COMBINE-lab/spdlog")
12056 (synopsis "Very fast C++ logging library")
12057 (description "Spdlog is a very fast header-only C++ logging library with
12058 performance as its primary goal.")
12059 (license license:expat)))
12060
12061 ;; This is a modified variant of bwa for use with Salmon. It installs a
12062 ;; library to avoid having to build this as part of Salmon.
12063 (define bwa-for-salmon
12064 (package (inherit bwa)
12065 (name "bwa")
12066 (version "0.7.12.5")
12067 (source (origin
12068 (method git-fetch)
12069 (uri (git-reference
12070 (url "https://github.com/COMBINE-lab/bwa.git")
12071 (commit (string-append "v" version))))
12072 (file-name (string-append "bwa-for-salmon-" version "-checkout"))
12073 (sha256
12074 (base32
12075 "1z2qa64y0c5hky10510x137mnzlhz6k8qf27csw4w9j6qihq95gb"))))
12076 (build-system gnu-build-system)
12077 (arguments
12078 '(#:tests? #f ;no "check" target
12079 #:phases
12080 (modify-phases %standard-phases
12081 (replace 'install
12082 (lambda* (#:key outputs #:allow-other-keys)
12083 (let* ((out (assoc-ref outputs "out"))
12084 (bin (string-append out "/bin"))
12085 (lib (string-append out "/lib"))
12086 (doc (string-append out "/share/doc/bwa"))
12087 (man (string-append out "/share/man/man1"))
12088 (inc (string-append out "/include/bwa")))
12089 (install-file "bwa" bin)
12090 (install-file "README.md" doc)
12091 (install-file "bwa.1" man)
12092 (install-file "libbwa.a" lib)
12093 (mkdir-p lib)
12094 (mkdir-p inc)
12095 (for-each (lambda (file)
12096 (install-file file inc))
12097 (find-files "." "\\.h$")))
12098 #t))
12099 ;; no "configure" script
12100 (delete 'configure))))))
12101
12102 (define-public salmon
12103 (package
12104 (name "salmon")
12105 (version "0.9.1")
12106 (source (origin
12107 (method git-fetch)
12108 (uri (git-reference
12109 (url "https://github.com/COMBINE-lab/salmon.git")
12110 (commit (string-append "v" version))))
12111 (file-name (string-append name "-" version "-checkout"))
12112 (sha256
12113 (base32
12114 "1zi1ff4i7y2ykk0vdzysgwzzzv166vg2x77pj1mf4baclavxj87a"))
12115 (modules '((guix build utils)))
12116 (snippet
12117 '(begin
12118 ;; Delete bundled headers for eigen3.
12119 (delete-file-recursively "include/eigen3/")
12120 #t))))
12121 (build-system cmake-build-system)
12122 (arguments
12123 `(#:configure-flags
12124 (list (string-append "-DBOOST_INCLUDEDIR="
12125 (assoc-ref %build-inputs "boost")
12126 "/include/")
12127 (string-append "-DBOOST_LIBRARYDIR="
12128 (assoc-ref %build-inputs "boost")
12129 "/lib/")
12130 (string-append "-DBoost_LIBRARIES="
12131 "-lboost_iostreams "
12132 "-lboost_filesystem "
12133 "-lboost_system "
12134 "-lboost_thread "
12135 "-lboost_timer "
12136 "-lboost_chrono "
12137 "-lboost_program_options")
12138 "-DBoost_FOUND=TRUE"
12139 "-DTBB_LIBRARIES=tbb tbbmalloc"
12140 ;; Don't download RapMap---we already have it!
12141 "-DFETCHED_RAPMAP=1")
12142 #:phases
12143 (modify-phases %standard-phases
12144 ;; Boost cannot be found, even though it's right there.
12145 (add-after 'unpack 'do-not-look-for-boost
12146 (lambda* (#:key inputs #:allow-other-keys)
12147 (substitute* "CMakeLists.txt"
12148 (("find_package\\(Boost 1\\.53\\.0") "#"))))
12149 (add-after 'unpack 'do-not-phone-home
12150 (lambda _
12151 (substitute* "src/Salmon.cpp"
12152 (("getVersionMessage\\(\\)") "\"\""))))
12153 (add-after 'unpack 'prepare-rapmap
12154 (lambda* (#:key inputs #:allow-other-keys)
12155 (let ((src "external/install/src/rapmap/")
12156 (include "external/install/include/rapmap/")
12157 (rapmap (assoc-ref inputs "rapmap")))
12158 (mkdir-p src)
12159 (mkdir-p include)
12160 (for-each (lambda (file)
12161 (install-file file src))
12162 (find-files (string-append rapmap "/src") "\\.(c|cpp)"))
12163 (copy-recursively (string-append rapmap "/include") include)
12164 (for-each delete-file '("external/install/include/rapmap/xxhash.h"
12165 "external/install/include/rapmap/FastxParser.hpp"
12166 "external/install/include/rapmap/concurrentqueue.h"
12167 "external/install/include/rapmap/FastxParserThreadUtils.hpp"
12168 "external/install/src/rapmap/FastxParser.cpp"
12169 "external/install/src/rapmap/xxhash.c")))))
12170 (add-after 'unpack 'use-system-libraries
12171 (lambda* (#:key inputs #:allow-other-keys)
12172 (substitute* "src/CMakeLists.txt"
12173 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
12174 (string-append (assoc-ref inputs "jellyfish")
12175 "/include/jellyfish-" ,(package-version jellyfish)))
12176 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
12177 (string-append (assoc-ref inputs "jellyfish")
12178 "/lib/libjellyfish-2.0.a"))
12179 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
12180 (string-append (assoc-ref inputs "libdivsufsort")
12181 "/lib/libdivsufsort.so"))
12182 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libstaden-read.a")
12183 (string-append (assoc-ref inputs "libstadenio-for-salmon")
12184 "/lib/libstaden-read.a"))
12185 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libbwa.a")
12186 (string-append (assoc-ref inputs "bwa") "/lib/libbwa.a"))
12187 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
12188 (string-append (assoc-ref inputs "libdivsufsort")
12189 "/lib/libdivsufsort64.so")))
12190 (substitute* "CMakeLists.txt"
12191 ;; Don't prefer static libs
12192 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
12193 (("set\\(TBB_LIBRARIES") "message(")
12194 (("find_package\\(Jellyfish.*") "")
12195 (("ExternalProject_Add\\(libcereal") "message(")
12196 (("ExternalProject_Add\\(libbwa") "message(")
12197 (("ExternalProject_Add\\(libjellyfish") "message(")
12198 (("ExternalProject_Add\\(libgff") "message(")
12199 (("ExternalProject_Add\\(libtbb") "message(")
12200 (("ExternalProject_Add\\(libspdlog") "message(")
12201 (("ExternalProject_Add\\(libdivsufsort") "message(")
12202 (("ExternalProject_Add\\(libstadenio") "message(")
12203 (("ExternalProject_Add_Step\\(") "message("))
12204
12205 ;; Ensure that all headers can be found
12206 (setenv "CPLUS_INCLUDE_PATH"
12207 (string-append (getenv "CPLUS_INCLUDE_PATH")
12208 ":"
12209 (assoc-ref inputs "bwa")
12210 "/include/bwa"
12211 ":"
12212 (assoc-ref inputs "eigen")
12213 "/include/eigen3"))
12214 (setenv "CPATH"
12215 (string-append (assoc-ref inputs "bwa")
12216 "/include/bwa"
12217 ":"
12218 (assoc-ref inputs "eigen")
12219 "/include/eigen3"))
12220 #t))
12221 ;; CMAKE_INSTALL_PREFIX does not exist when the tests are
12222 ;; run. It only exists after the install phase.
12223 (add-after 'unpack 'fix-tests
12224 (lambda _
12225 (substitute* "src/CMakeLists.txt"
12226 (("DTOPLEVEL_DIR=\\$\\{CMAKE_INSTALL_PREFIX")
12227 "DTOPLEVEL_DIR=${GAT_SOURCE_DIR"))
12228 #t)))))
12229 (inputs
12230 `(("boost" ,boost)
12231 ("bwa" ,bwa-for-salmon)
12232 ("bzip2" ,bzip2)
12233 ("cereal" ,cereal)
12234 ("eigen" ,eigen)
12235 ("rapmap" ,(origin
12236 (method git-fetch)
12237 (uri (git-reference
12238 (url "https://github.com/COMBINE-lab/RapMap.git")
12239 (commit (string-append "salmon-v" version))))
12240 (file-name (string-append "rapmap-salmon-v" version "-checkout"))
12241 (sha256
12242 (base32
12243 "1yc12yqsz6f0r8sg1qnk57xg34aqwc9jbqq6gd5ys28xw3plj98p"))))
12244 ("jemalloc" ,jemalloc)
12245 ("jellyfish" ,jellyfish)
12246 ("libgff" ,libgff)
12247 ("tbb" ,tbb)
12248 ("libdivsufsort" ,libdivsufsort)
12249 ("libstadenio-for-salmon" ,libstadenio-for-salmon)
12250 ("spdlog-for-salmon" ,spdlog-for-salmon)
12251 ("xz" ,xz)
12252 ("zlib" ,zlib)))
12253 (home-page "https://github.com/COMBINE-lab/salmon")
12254 (synopsis "Quantification from RNA-seq reads using lightweight alignments")
12255 (description "Salmon is a program to produce highly-accurate,
12256 transcript-level quantification estimates from RNA-seq data. Salmon achieves
12257 its accuracy and speed via a number of different innovations, including the
12258 use of lightweight alignments (accurate but fast-to-compute proxies for
12259 traditional read alignments) and massively-parallel stochastic collapsed
12260 variational inference.")
12261 (license license:gpl3+)))
12262
12263 (define-public python-loompy
12264 (package
12265 (name "python-loompy")
12266 (version "2.0.2")
12267 (source
12268 (origin
12269 (method url-fetch)
12270 (uri (pypi-uri "loompy" version))
12271 (sha256
12272 (base32
12273 "1drgv8j1hxqzzpnfg272x9djb6j8qr798w1pc2x8ikmfgyd9gh51"))))
12274 (build-system python-build-system)
12275 ;; There are no tests
12276 (arguments '(#:tests? #f))
12277 (propagated-inputs
12278 `(("python-h5py" ,python-h5py)
12279 ("python-numpy" ,python-numpy)
12280 ("python-scipy" ,python-scipy)
12281 ("python-typing" ,python-typing)))
12282 (home-page "https://github.com/linnarsson-lab/loompy")
12283 (synopsis "Work with .loom files for single-cell RNA-seq data")
12284 (description "The loom file format is an efficient format for very large
12285 omics datasets, consisting of a main matrix, optional additional layers, a
12286 variable number of row and column annotations. Loom also supports sparse
12287 graphs. This library makes it easy to work with @file{.loom} files for
12288 single-cell RNA-seq data.")
12289 (license license:bsd-3)))
12290
12291 ;; We cannot use the latest commit because it requires Java 9.
12292 (define-public java-forester
12293 (let ((commit "86b07efe302d5094b42deed9260f719a4c4ac2e6")
12294 (revision "1"))
12295 (package
12296 (name "java-forester")
12297 (version (string-append "0-" revision "." (string-take commit 7)))
12298 (source (origin
12299 (method git-fetch)
12300 (uri (git-reference
12301 (url "https://github.com/cmzmasek/forester.git")
12302 (commit commit)))
12303 (file-name (string-append name "-" version "-checkout"))
12304 (sha256
12305 (base32
12306 "0vxavc1yrf84yrnf20dq26hi0lglidk8d382xrxsy4qmlbjd276z"))
12307 (modules '((guix build utils)))
12308 (snippet
12309 '(begin
12310 ;; Delete bundled jars and pre-built classes
12311 (delete-file-recursively "forester/java/resources")
12312 (delete-file-recursively "forester/java/classes")
12313 (for-each delete-file (find-files "forester/java/" "\\.jar$"))
12314 ;; Delete bundled applications
12315 (delete-file-recursively "forester_applications")
12316 #t))))
12317 (build-system ant-build-system)
12318 (arguments
12319 `(#:tests? #f ; there are none
12320 #:jdk ,icedtea-8
12321 #:modules ((guix build ant-build-system)
12322 (guix build utils)
12323 (guix build java-utils)
12324 (sxml simple)
12325 (sxml transform))
12326 #:phases
12327 (modify-phases %standard-phases
12328 (add-after 'unpack 'chdir
12329 (lambda _ (chdir "forester/java") #t))
12330 (add-after 'chdir 'fix-dependencies
12331 (lambda _
12332 (chmod "build.xml" #o664)
12333 (call-with-output-file "build.xml.new"
12334 (lambda (port)
12335 (sxml->xml
12336 (pre-post-order
12337 (with-input-from-file "build.xml"
12338 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12339 `(;; Remove all unjar tags to avoid repacking classes.
12340 (unjar . ,(lambda _ '()))
12341 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12342 (*text* . ,(lambda (_ txt) txt))))
12343 port)))
12344 (rename-file "build.xml.new" "build.xml")
12345 #t))
12346 ;; FIXME: itext is difficult to package as it depends on a few
12347 ;; unpackaged libraries.
12348 (add-after 'chdir 'remove-dependency-on-unpackaged-itext
12349 (lambda _
12350 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12351 (substitute* "src/org/forester/archaeopteryx/MainFrame.java"
12352 (("pdf_written_to = PdfExporter.*")
12353 "throw new IOException(\"PDF export is not available.\");"))
12354 #t))
12355 ;; There is no install target
12356 (replace 'install (install-jars ".")))))
12357 (propagated-inputs
12358 `(("java-commons-codec" ,java-commons-codec)
12359 ("java-openchart2" ,java-openchart2)))
12360 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12361 (synopsis "Phylogenomics libraries for Java")
12362 (description "Forester is a collection of Java libraries for
12363 phylogenomics and evolutionary biology research. It includes support for
12364 reading, writing, and exporting phylogenetic trees.")
12365 (license license:lgpl2.1+))))
12366
12367 (define-public java-forester-1.005
12368 (package
12369 (name "java-forester")
12370 (version "1.005")
12371 (source (origin
12372 (method url-fetch)
12373 (uri (string-append "http://search.maven.org/remotecontent?"
12374 "filepath=org/biojava/thirdparty/forester/"
12375 version "/forester-" version "-sources.jar"))
12376 (file-name (string-append name "-" version ".jar"))
12377 (sha256
12378 (base32
12379 "04r8qv4rk3p71z4ajrvp11py1z46qrx0047j3zzs79s6lnsm3lcv"))))
12380 (build-system ant-build-system)
12381 (arguments
12382 `(#:tests? #f ; there are none
12383 #:jdk ,icedtea-8
12384 #:modules ((guix build ant-build-system)
12385 (guix build utils)
12386 (guix build java-utils)
12387 (sxml simple)
12388 (sxml transform))
12389 #:phases
12390 (modify-phases %standard-phases
12391 (add-after 'unpack 'fix-dependencies
12392 (lambda* (#:key inputs #:allow-other-keys)
12393 (call-with-output-file "build.xml"
12394 (lambda (port)
12395 (sxml->xml
12396 (pre-post-order
12397 (with-input-from-file "src/build.xml"
12398 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12399 `(;; Remove all unjar tags to avoid repacking classes.
12400 (unjar . ,(lambda _ '()))
12401 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12402 (*text* . ,(lambda (_ txt) txt))))
12403 port)))
12404 (copy-file (assoc-ref inputs "synth_look_and_feel_1.xml")
12405 "synth_look_and_feel_1.xml")
12406 (copy-file (assoc-ref inputs "phyloxml.xsd")
12407 "phyloxml.xsd")
12408 (substitute* "build.xml"
12409 (("../resources/synth_laf/synth_look_and_feel_1.xml")
12410 "synth_look_and_feel_1.xml")
12411 (("../resources/phyloxml_schema/1.10/phyloxml.xsd")
12412 "phyloxml.xsd"))
12413 #t))
12414 ;; FIXME: itext is difficult to package as it depends on a few
12415 ;; unpackaged libraries.
12416 (add-after 'unpack 'remove-dependency-on-unpackaged-itext
12417 (lambda _
12418 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12419 (substitute* '("src/org/forester/archaeopteryx/MainFrame.java"
12420 "src/org/forester/archaeopteryx/MainFrameApplication.java")
12421 (("pdf_written_to = PdfExporter.*")
12422 "throw new IOException(\"PDF export is not available.\"); /*")
12423 ((".getPrintSizeX\\(\\), getOptions\\(\\).getPrintSizeY\\(\\) \\);") "*/")
12424 (("getCurrentTreePanel\\(\\).getHeight\\(\\) \\);") "*/"))
12425 #t))
12426 (add-after 'unpack 'delete-pre-built-classes
12427 (lambda _ (delete-file-recursively "src/classes") #t))
12428 ;; There is no install target
12429 (replace 'install (install-jars ".")))))
12430 (propagated-inputs
12431 `(("java-commons-codec" ,java-commons-codec)
12432 ("java-openchart2" ,java-openchart2)))
12433 ;; The source archive does not contain the resources.
12434 (native-inputs
12435 `(("phyloxml.xsd"
12436 ,(origin
12437 (method url-fetch)
12438 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12439 "b61cc2dcede0bede317db362472333115756b8c6/"
12440 "forester/resources/phyloxml_schema/1.10/phyloxml.xsd"))
12441 (file-name (string-append name "-phyloxml-" version ".xsd"))
12442 (sha256
12443 (base32
12444 "1zxc4m8sn4n389nqdnpxa8d0k17qnr3pm2y5y6g6vh4k0zm52npv"))))
12445 ("synth_look_and_feel_1.xml"
12446 ,(origin
12447 (method url-fetch)
12448 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12449 "29e04321615da6b35c1e15c60e52caf3f21d8e6a/"
12450 "forester/java/classes/resources/synth_look_and_feel_1.xml"))
12451 (file-name (string-append name "-synth-look-and-feel-" version ".xml"))
12452 (sha256
12453 (base32
12454 "1gv5602gv4k7y7713y75a4jvj7i9s7nildsbdl7n9q10sc2ikg8h"))))))
12455 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12456 (synopsis "Phylogenomics libraries for Java")
12457 (description "Forester is a collection of Java libraries for
12458 phylogenomics and evolutionary biology research. It includes support for
12459 reading, writing, and exporting phylogenetic trees.")
12460 (license license:lgpl2.1+)))
12461
12462 (define-public java-biojava-core
12463 (package
12464 (name "java-biojava-core")
12465 (version "4.2.11")
12466 (source (origin
12467 (method git-fetch)
12468 (uri (git-reference
12469 (url "https://github.com/biojava/biojava")
12470 (commit (string-append "biojava-" version))))
12471 (file-name (string-append name "-" version "-checkout"))
12472 (sha256
12473 (base32
12474 "1bvryh2bpsvash8ln79cmc9sqm8qw72hz4xzwqxcrjm8ssxszhqk"))))
12475 (build-system ant-build-system)
12476 (arguments
12477 `(#:jdk ,icedtea-8
12478 #:jar-name "biojava-core.jar"
12479 #:source-dir "biojava-core/src/main/java/"
12480 #:test-dir "biojava-core/src/test"
12481 ;; These tests seem to require internet access.
12482 #:test-exclude (list "**/SearchIOTest.java"
12483 "**/BlastXMLParserTest.java"
12484 "**/GenbankCookbookTest.java"
12485 "**/GenbankProxySequenceReaderTest.java")
12486 #:phases
12487 (modify-phases %standard-phases
12488 (add-before 'build 'copy-resources
12489 (lambda _
12490 (copy-recursively "biojava-core/src/main/resources"
12491 "build/classes")
12492 #t))
12493 (add-before 'check 'copy-test-resources
12494 (lambda _
12495 (copy-recursively "biojava-core/src/test/resources"
12496 "build/test-classes")
12497 #t)))))
12498 (propagated-inputs
12499 `(("java-log4j-api" ,java-log4j-api)
12500 ("java-log4j-core" ,java-log4j-core)
12501 ("java-slf4j-api" ,java-slf4j-api)
12502 ("java-slf4j-simple" ,java-slf4j-simple)))
12503 (native-inputs
12504 `(("java-junit" ,java-junit)
12505 ("java-hamcrest-core" ,java-hamcrest-core)))
12506 (home-page "http://biojava.org")
12507 (synopsis "Core libraries of Java framework for processing biological data")
12508 (description "BioJava is a project dedicated to providing a Java framework
12509 for processing biological data. It provides analytical and statistical
12510 routines, parsers for common file formats, reference implementations of
12511 popular algorithms, and allows the manipulation of sequences and 3D
12512 structures. The goal of the biojava project is to facilitate rapid
12513 application development for bioinformatics.
12514
12515 This package provides the core libraries.")
12516 (license license:lgpl2.1+)))
12517
12518 (define-public java-biojava-phylo
12519 (package (inherit java-biojava-core)
12520 (name "java-biojava-phylo")
12521 (build-system ant-build-system)
12522 (arguments
12523 `(#:jdk ,icedtea-8
12524 #:jar-name "biojava-phylo.jar"
12525 #:source-dir "biojava-phylo/src/main/java/"
12526 #:test-dir "biojava-phylo/src/test"
12527 #:phases
12528 (modify-phases %standard-phases
12529 (add-before 'build 'copy-resources
12530 (lambda _
12531 (copy-recursively "biojava-phylo/src/main/resources"
12532 "build/classes")
12533 #t))
12534 (add-before 'check 'copy-test-resources
12535 (lambda _
12536 (copy-recursively "biojava-phylo/src/test/resources"
12537 "build/test-classes")
12538 #t)))))
12539 (propagated-inputs
12540 `(("java-log4j-api" ,java-log4j-api)
12541 ("java-log4j-core" ,java-log4j-core)
12542 ("java-slf4j-api" ,java-slf4j-api)
12543 ("java-slf4j-simple" ,java-slf4j-simple)
12544 ("java-biojava-core" ,java-biojava-core)
12545 ("java-forester" ,java-forester)))
12546 (native-inputs
12547 `(("java-junit" ,java-junit)
12548 ("java-hamcrest-core" ,java-hamcrest-core)))
12549 (home-page "http://biojava.org")
12550 (synopsis "Biojava interface to the forester phylogenomics library")
12551 (description "The phylo module provides a biojava interface layer to the
12552 forester phylogenomics library for constructing phylogenetic trees.")))
12553
12554 (define-public java-biojava-alignment
12555 (package (inherit java-biojava-core)
12556 (name "java-biojava-alignment")
12557 (build-system ant-build-system)
12558 (arguments
12559 `(#:jdk ,icedtea-8
12560 #:jar-name "biojava-alignment.jar"
12561 #:source-dir "biojava-alignment/src/main/java/"
12562 #:test-dir "biojava-alignment/src/test"
12563 #:phases
12564 (modify-phases %standard-phases
12565 (add-before 'build 'copy-resources
12566 (lambda _
12567 (copy-recursively "biojava-alignment/src/main/resources"
12568 "build/classes")
12569 #t))
12570 (add-before 'check 'copy-test-resources
12571 (lambda _
12572 (copy-recursively "biojava-alignment/src/test/resources"
12573 "build/test-classes")
12574 #t)))))
12575 (propagated-inputs
12576 `(("java-log4j-api" ,java-log4j-api)
12577 ("java-log4j-core" ,java-log4j-core)
12578 ("java-slf4j-api" ,java-slf4j-api)
12579 ("java-slf4j-simple" ,java-slf4j-simple)
12580 ("java-biojava-core" ,java-biojava-core)
12581 ("java-biojava-phylo" ,java-biojava-phylo)
12582 ("java-forester" ,java-forester)))
12583 (native-inputs
12584 `(("java-junit" ,java-junit)
12585 ("java-hamcrest-core" ,java-hamcrest-core)))
12586 (home-page "http://biojava.org")
12587 (synopsis "Biojava API for genetic sequence alignment")
12588 (description "The alignment module of BioJava provides an API that
12589 contains
12590
12591 @itemize
12592 @item implementations of dynamic programming algorithms for sequence
12593 alignment;
12594 @item reading and writing of popular alignment file formats;
12595 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12596 @end itemize\n")))
12597
12598 (define-public java-biojava-core-4.0
12599 (package (inherit java-biojava-core)
12600 (name "java-biojava-core")
12601 (version "4.0.0")
12602 (source (origin
12603 (method git-fetch)
12604 (uri (git-reference
12605 (url "https://github.com/biojava/biojava")
12606 (commit (string-append "biojava-" version))))
12607 (file-name (string-append name "-" version "-checkout"))
12608 (sha256
12609 (base32
12610 "13675f6y9aqi7bi2lk3s1z7a22ynccjiqwa8izh7p97xi9wsfmd8"))))))
12611
12612 (define-public java-biojava-phylo-4.0
12613 (package (inherit java-biojava-core-4.0)
12614 (name "java-biojava-phylo")
12615 (build-system ant-build-system)
12616 (arguments
12617 `(#:jdk ,icedtea-8
12618 #:jar-name "biojava-phylo.jar"
12619 #:source-dir "biojava-phylo/src/main/java/"
12620 #:test-dir "biojava-phylo/src/test"
12621 #:phases
12622 (modify-phases %standard-phases
12623 (add-before 'build 'copy-resources
12624 (lambda _
12625 (copy-recursively "biojava-phylo/src/main/resources"
12626 "build/classes")
12627 #t))
12628 (add-before 'check 'copy-test-resources
12629 (lambda _
12630 (copy-recursively "biojava-phylo/src/test/resources"
12631 "build/test-classes")
12632 #t)))))
12633 (propagated-inputs
12634 `(("java-log4j-api" ,java-log4j-api)
12635 ("java-log4j-core" ,java-log4j-core)
12636 ("java-slf4j-api" ,java-slf4j-api)
12637 ("java-slf4j-simple" ,java-slf4j-simple)
12638 ("java-biojava-core" ,java-biojava-core-4.0)
12639 ("java-forester" ,java-forester-1.005)))
12640 (native-inputs
12641 `(("java-junit" ,java-junit)
12642 ("java-hamcrest-core" ,java-hamcrest-core)))
12643 (home-page "http://biojava.org")
12644 (synopsis "Biojava interface to the forester phylogenomics library")
12645 (description "The phylo module provides a biojava interface layer to the
12646 forester phylogenomics library for constructing phylogenetic trees.")))
12647
12648 (define-public java-biojava-alignment-4.0
12649 (package (inherit java-biojava-core-4.0)
12650 (name "java-biojava-alignment")
12651 (build-system ant-build-system)
12652 (arguments
12653 `(#:jdk ,icedtea-8
12654 #:jar-name "biojava-alignment.jar"
12655 #:source-dir "biojava-alignment/src/main/java/"
12656 #:test-dir "biojava-alignment/src/test"
12657 #:phases
12658 (modify-phases %standard-phases
12659 (add-before 'build 'copy-resources
12660 (lambda _
12661 (copy-recursively "biojava-alignment/src/main/resources"
12662 "build/classes")
12663 #t))
12664 (add-before 'check 'copy-test-resources
12665 (lambda _
12666 (copy-recursively "biojava-alignment/src/test/resources"
12667 "build/test-classes")
12668 #t)))))
12669 (propagated-inputs
12670 `(("java-log4j-api" ,java-log4j-api)
12671 ("java-log4j-core" ,java-log4j-core)
12672 ("java-slf4j-api" ,java-slf4j-api)
12673 ("java-slf4j-simple" ,java-slf4j-simple)
12674 ("java-biojava-core" ,java-biojava-core-4.0)
12675 ("java-biojava-phylo" ,java-biojava-phylo-4.0)
12676 ("java-forester" ,java-forester-1.005)))
12677 (native-inputs
12678 `(("java-junit" ,java-junit)
12679 ("java-hamcrest-core" ,java-hamcrest-core)))
12680 (home-page "http://biojava.org")
12681 (synopsis "Biojava API for genetic sequence alignment")
12682 (description "The alignment module of BioJava provides an API that
12683 contains
12684
12685 @itemize
12686 @item implementations of dynamic programming algorithms for sequence
12687 alignment;
12688 @item reading and writing of popular alignment file formats;
12689 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12690 @end itemize\n")))
12691
12692 (define-public dropseq-tools
12693 (package
12694 (name "dropseq-tools")
12695 (version "1.13")
12696 (source
12697 (origin
12698 (method url-fetch)
12699 (uri "http://mccarrolllab.com/download/1276/")
12700 (file-name (string-append "dropseq-tools-" version ".zip"))
12701 (sha256
12702 (base32
12703 "0yrffckxqk5l8b5xb6z4laq157zd9mdypr2p4b4vq2bhjzi1sj0s"))
12704 ;; Delete bundled libraries
12705 (modules '((guix build utils)))
12706 (snippet
12707 '(begin
12708 (for-each delete-file (find-files "jar/lib" "\\.jar$"))
12709 (delete-file-recursively "3rdParty")
12710 #t))))
12711 (build-system ant-build-system)
12712 (arguments
12713 `(#:tests? #f ; test data are not included
12714 #:test-target "test"
12715 #:build-target "all"
12716 #:source-dir "public/src/"
12717 #:jdk ,icedtea-8
12718 #:make-flags
12719 (list (string-append "-Dpicard.executable.dir="
12720 (assoc-ref %build-inputs "java-picard")
12721 "/share/java/"))
12722 #:modules ((ice-9 match)
12723 (srfi srfi-1)
12724 (guix build utils)
12725 (guix build java-utils)
12726 (guix build ant-build-system))
12727 #:phases
12728 (modify-phases %standard-phases
12729 ;; FIXME: fails with "java.io.FileNotFoundException:
12730 ;; /gnu/store/…-dropseq-tools-1.13/share/java/lib/biojava-alignment.jar"
12731 (delete 'generate-jar-indices)
12732 ;; All dependencies must be linked to "lib", because that's where
12733 ;; they will be searched for when the Class-Path property of the
12734 ;; manifest is computed.
12735 (add-after 'unpack 'record-references
12736 (lambda* (#:key inputs #:allow-other-keys)
12737 (mkdir-p "jar/lib")
12738 (let ((dirs (filter-map (match-lambda
12739 ((name . dir)
12740 (if (and (string-prefix? "java-" name)
12741 (not (string=? name "java-testng")))
12742 dir #f)))
12743 inputs)))
12744 (for-each (lambda (jar)
12745 (symlink jar (string-append "jar/lib/" (basename jar))))
12746 (append-map (lambda (dir) (find-files dir "\\.jar$"))
12747 dirs)))
12748 #t))
12749 ;; There is no installation target
12750 (replace 'install
12751 (lambda* (#:key inputs outputs #:allow-other-keys)
12752 (let* ((out (assoc-ref outputs "out"))
12753 (bin (string-append out "/bin"))
12754 (share (string-append out "/share/java/"))
12755 (lib (string-append share "/lib/"))
12756 (scripts (list "BAMTagHistogram"
12757 "BAMTagofTagCounts"
12758 "BaseDistributionAtReadPosition"
12759 "CollapseBarcodesInPlace"
12760 "CollapseTagWithContext"
12761 "ConvertToRefFlat"
12762 "CreateIntervalsFiles"
12763 "DetectBeadSynthesisErrors"
12764 "DigitalExpression"
12765 "Drop-seq_alignment.sh"
12766 "FilterBAM"
12767 "FilterBAMByTag"
12768 "GatherGeneGCLength"
12769 "GatherMolecularBarcodeDistributionByGene"
12770 "GatherReadQualityMetrics"
12771 "PolyATrimmer"
12772 "ReduceGTF"
12773 "SelectCellsByNumTranscripts"
12774 "SingleCellRnaSeqMetricsCollector"
12775 "TagBamWithReadSequenceExtended"
12776 "TagReadWithGeneExon"
12777 "TagReadWithInterval"
12778 "TrimStartingSequence"
12779 "ValidateReference")))
12780 (for-each mkdir-p (list bin share lib))
12781 (install-file "dist/dropseq.jar" share)
12782 (for-each (lambda (script)
12783 (chmod script #o555)
12784 (install-file script bin))
12785 scripts)
12786 (substitute* (map (lambda (script)
12787 (string-append bin "/" script))
12788 scripts)
12789 (("^java") (which "java"))
12790 (("jar_deploy_dir=.*")
12791 (string-append "jar_deploy_dir=" share "\n"))))
12792 #t))
12793 ;; FIXME: We do this after stripping jars because we don't want it to
12794 ;; copy all these jars and strip them. We only want to install
12795 ;; links. Arguably, this is a problem with the ant-build-system.
12796 (add-after 'strip-jar-timestamps 'install-links
12797 (lambda* (#:key outputs #:allow-other-keys)
12798 (let* ((out (assoc-ref outputs "out"))
12799 (share (string-append out "/share/java/"))
12800 (lib (string-append share "/lib/")))
12801 (for-each (lambda (jar)
12802 (symlink (readlink jar)
12803 (string-append lib (basename jar))))
12804 (find-files "jar/lib" "\\.jar$")))
12805 #t)))))
12806 (inputs
12807 `(("jdk" ,icedtea-8)
12808 ("java-picard" ,java-picard-2.10.3)
12809 ("java-log4j-1.2-api" ,java-log4j-1.2-api)
12810 ("java-commons-math3" ,java-commons-math3)
12811 ("java-commons-jexl2" ,java-commons-jexl-2)
12812 ("java-commons-collections4" ,java-commons-collections4)
12813 ("java-commons-lang2" ,java-commons-lang)
12814 ("java-commons-io" ,java-commons-io)
12815 ("java-snappy-1.0.3-rc3" ,java-snappy-1)
12816 ("java-guava" ,java-guava)
12817 ("java-la4j" ,java-la4j)
12818 ("java-biojava-core" ,java-biojava-core-4.0)
12819 ("java-biojava-alignment" ,java-biojava-alignment-4.0)
12820 ("java-jdistlib" ,java-jdistlib)
12821 ("java-simple-xml" ,java-simple-xml)
12822 ("java-snakeyaml" ,java-snakeyaml)))
12823 (native-inputs
12824 `(("unzip" ,unzip)
12825 ("java-testng" ,java-testng)))
12826 (home-page "http://mccarrolllab.com/dropseq/")
12827 (synopsis "Tools for Drop-seq analyses")
12828 (description "Drop-seq is a technology to enable biologists to
12829 analyze RNA expression genome-wide in thousands of individual cells at
12830 once. This package provides tools to perform Drop-seq analyses.")
12831 (license license:expat)))
12832
12833 (define-public pigx-rnaseq
12834 (package
12835 (name "pigx-rnaseq")
12836 (version "0.0.4")
12837 (source (origin
12838 (method url-fetch)
12839 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_rnaseq/"
12840 "releases/download/v" version
12841 "/pigx_rnaseq-" version ".tar.gz"))
12842 (sha256
12843 (base32
12844 "16gla23rmziimqan7w494q0nr7vfbp42zzkrl9fracmr4k7b1kzr"))))
12845 (build-system gnu-build-system)
12846 (arguments
12847 `(#:parallel-tests? #f ; not supported
12848 #:phases
12849 (modify-phases %standard-phases
12850 ;; "test.sh" runs STAR, which requires excessive amounts of memory.
12851 (add-after 'unpack 'disable-resource-intensive-test
12852 (lambda _
12853 (substitute* "Makefile.in"
12854 (("(^ tests/test_trim_galore/test.sh).*" _ m) m)
12855 (("^ tests/test_multiqc/test.sh") "")
12856 (("^ test.sh") ""))
12857 #t)))))
12858 (inputs
12859 `(("gzip" ,gzip)
12860 ("snakemake" ,snakemake-4)
12861 ("fastqc" ,fastqc)
12862 ("multiqc" ,multiqc)
12863 ("star" ,star)
12864 ("trim-galore" ,trim-galore)
12865 ("htseq" ,htseq)
12866 ("samtools" ,samtools)
12867 ("bedtools" ,bedtools)
12868 ("r-minimal" ,r-minimal)
12869 ("r-rmarkdown" ,r-rmarkdown)
12870 ("r-ggplot2" ,r-ggplot2)
12871 ("r-ggrepel" ,r-ggrepel)
12872 ("r-gprofiler" ,r-gprofiler)
12873 ("r-deseq2" ,r-deseq2)
12874 ("r-dt" ,r-dt)
12875 ("r-knitr" ,r-knitr)
12876 ("r-pheatmap" ,r-pheatmap)
12877 ("r-corrplot" ,r-corrplot)
12878 ("r-reshape2" ,r-reshape2)
12879 ("r-plotly" ,r-plotly)
12880 ("r-scales" ,r-scales)
12881 ("r-summarizedexperiment" ,r-summarizedexperiment)
12882 ("r-crosstalk" ,r-crosstalk)
12883 ("r-tximport" ,r-tximport)
12884 ("r-rtracklayer" ,r-rtracklayer)
12885 ("r-rjson" ,r-rjson)
12886 ("salmon" ,salmon)
12887 ("ghc-pandoc" ,ghc-pandoc-1)
12888 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc-with-pandoc-1)
12889 ("python-wrapper" ,python-wrapper)
12890 ("python-pyyaml" ,python-pyyaml)))
12891 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12892 (synopsis "Analysis pipeline for RNA sequencing experiments")
12893 (description "PiGX RNAseq is an analysis pipeline for preprocessing and
12894 reporting for RNA sequencing experiments. It is easy to use and produces high
12895 quality reports. The inputs are reads files from the sequencing experiment,
12896 and a configuration file which describes the experiment. In addition to
12897 quality control of the experiment, the pipeline produces a differential
12898 expression report comparing samples in an easily configurable manner.")
12899 (license license:gpl3+)))
12900
12901 (define-public pigx-chipseq
12902 (package
12903 (name "pigx-chipseq")
12904 (version "0.0.20")
12905 (source (origin
12906 (method url-fetch)
12907 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_chipseq/"
12908 "releases/download/v" version
12909 "/pigx_chipseq-" version ".tar.gz"))
12910 (sha256
12911 (base32
12912 "19a7dclqq0b4kqg3phiz4d4arlwfp34nm3z0rf1gkqdpsy7gghp3"))))
12913 (build-system gnu-build-system)
12914 ;; parts of the tests rely on access to the network
12915 (arguments '(#:tests? #f))
12916 (inputs
12917 `(("grep" ,grep)
12918 ("coreutils" ,coreutils)
12919 ("r-minimal" ,r-minimal)
12920 ("r-argparser" ,r-argparser)
12921 ("r-biocparallel" ,r-biocparallel)
12922 ("r-biostrings" ,r-biostrings)
12923 ("r-chipseq" ,r-chipseq)
12924 ("r-data-table" ,r-data-table)
12925 ("r-dplyr" ,r-dplyr)
12926 ("r-genomation" ,r-genomation)
12927 ("r-genomicalignments" ,r-genomicalignments)
12928 ("r-genomicranges" ,r-genomicranges)
12929 ("r-rsamtools" ,r-rsamtools)
12930 ("r-rtracklayer" ,r-rtracklayer)
12931 ("r-s4vectors" ,r-s4vectors)
12932 ("r-stringr" ,r-stringr)
12933 ("r-tibble" ,r-tibble)
12934 ("r-tidyr" ,r-tidyr)
12935 ("r-jsonlite" ,r-jsonlite)
12936 ("r-heatmaply" ,r-heatmaply)
12937 ("r-htmlwidgets" ,r-htmlwidgets)
12938 ("r-ggplot2" ,r-ggplot2)
12939 ("r-plotly" ,r-plotly)
12940 ("r-rmarkdown" ,r-rmarkdown)
12941 ("python-wrapper" ,python-wrapper)
12942 ("python-pyyaml" ,python-pyyaml)
12943 ("python-magic" ,python-magic)
12944 ("python-xlrd" ,python-xlrd)
12945 ("trim-galore" ,trim-galore)
12946 ("macs" ,macs)
12947 ("multiqc" ,multiqc)
12948 ("perl" ,perl)
12949 ("ghc-pandoc" ,ghc-pandoc-1)
12950 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc-with-pandoc-1)
12951 ("fastqc" ,fastqc)
12952 ("bowtie" ,bowtie)
12953 ("idr" ,idr)
12954 ("snakemake" ,snakemake-4)
12955 ("samtools" ,samtools)
12956 ("bedtools" ,bedtools)
12957 ("kentutils" ,kentutils)))
12958 (native-inputs
12959 `(("python-pytest" ,python-pytest)))
12960 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12961 (synopsis "Analysis pipeline for ChIP sequencing experiments")
12962 (description "PiGX ChIPseq is an analysis pipeline for preprocessing, peak
12963 calling and reporting for ChIP sequencing experiments. It is easy to use and
12964 produces high quality reports. The inputs are reads files from the sequencing
12965 experiment, and a configuration file which describes the experiment. In
12966 addition to quality control of the experiment, the pipeline enables to set up
12967 multiple peak calling analysis and allows the generation of a UCSC track hub
12968 in an easily configurable manner.")
12969 (license license:gpl3+)))
12970
12971 (define-public pigx-bsseq
12972 (package
12973 (name "pigx-bsseq")
12974 (version "0.0.10")
12975 (source (origin
12976 (method url-fetch)
12977 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_bsseq/"
12978 "releases/download/v" version
12979 "/pigx_bsseq-" version ".tar.gz"))
12980 (sha256
12981 (base32
12982 "0l97wvkq4diq8lcarraj33bby1zzf0w804jwi8mlc5qddp8idwhy"))))
12983 (build-system gnu-build-system)
12984 (arguments
12985 `(#:phases
12986 (modify-phases %standard-phases
12987 (add-before 'check 'set-timezone
12988 ;; The readr package is picky about timezones.
12989 (lambda* (#:key inputs #:allow-other-keys)
12990 (setenv "TZ" "UTC+1")
12991 (setenv "TZDIR"
12992 (string-append (assoc-ref inputs "tzdata")
12993 "/share/zoneinfo"))
12994 #t)))))
12995 (native-inputs
12996 `(("tzdata" ,tzdata)))
12997 (inputs
12998 `(("coreutils" ,coreutils)
12999 ("sed" ,sed)
13000 ("grep" ,grep)
13001 ("r-minimal" ,r-minimal)
13002 ("r-annotationhub" ,r-annotationhub)
13003 ("r-dt" ,r-dt)
13004 ("r-genomation" ,r-genomation)
13005 ("r-methylkit" ,r-methylkit)
13006 ("r-rtracklayer" ,r-rtracklayer)
13007 ("r-rmarkdown" ,r-rmarkdown)
13008 ("r-bookdown" ,r-bookdown)
13009 ("r-ggplot2" ,r-ggplot2)
13010 ("r-ggbio" ,r-ggbio)
13011 ("ghc-pandoc" ,ghc-pandoc-1)
13012 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc-with-pandoc-1)
13013 ("python-wrapper" ,python-wrapper)
13014 ("python-pyyaml" ,python-pyyaml)
13015 ("snakemake" ,snakemake-4)
13016 ("bismark" ,bismark)
13017 ("fastqc" ,fastqc)
13018 ("bowtie" ,bowtie)
13019 ("trim-galore" ,trim-galore)
13020 ("cutadapt" ,cutadapt)
13021 ("samtools" ,samtools)))
13022 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
13023 (synopsis "Bisulfite sequencing pipeline from fastq to methylation reports")
13024 (description "PiGx BSseq is a data processing pipeline for raw fastq read
13025 data of bisulfite experiments; it produces reports on aggregate methylation
13026 and coverage and can be used to produce information on differential
13027 methylation and segmentation.")
13028 (license license:gpl3+)))
13029
13030 (define-public pigx-scrnaseq
13031 (package
13032 (name "pigx-scrnaseq")
13033 (version "0.0.7")
13034 (source (origin
13035 (method url-fetch)
13036 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_scrnaseq/"
13037 "releases/download/v" version
13038 "/pigx_scrnaseq-" version ".tar.gz"))
13039 (sha256
13040 (base32
13041 "131zarirv16w8653m0d66jgjnwqfsxqc0hix0rypssz4d83bl51j"))))
13042 (build-system gnu-build-system)
13043 (arguments
13044 `(#:configure-flags
13045 (list (string-append "PICARDJAR=" (assoc-ref %build-inputs "java-picard")
13046 "/share/java/picard.jar")
13047 (string-append "DROPSEQJAR=" (assoc-ref %build-inputs "dropseq-tools")
13048 "/share/java/dropseq.jar"))))
13049 (inputs
13050 `(("coreutils" ,coreutils)
13051 ("perl" ,perl)
13052 ("dropseq-tools" ,dropseq-tools)
13053 ("fastqc" ,fastqc)
13054 ("java-picard" ,java-picard-2.10.3) ; same as for dropseq
13055 ("java" ,icedtea-8)
13056 ("python-wrapper" ,python-wrapper)
13057 ("python-pyyaml" ,python-pyyaml)
13058 ("python-pandas" ,python-pandas)
13059 ("python-magic" ,python-magic)
13060 ("python-numpy" ,python-numpy)
13061 ("python-loompy" ,python-loompy)
13062 ("ghc-pandoc" ,ghc-pandoc-1)
13063 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc-with-pandoc-1)
13064 ("samtools" ,samtools)
13065 ("snakemake" ,snakemake-4)
13066 ("star" ,star)
13067 ("r-minimal" ,r-minimal)
13068 ("r-argparser" ,r-argparser)
13069 ("r-cowplot" ,r-cowplot)
13070 ("r-data-table" ,r-data-table)
13071 ("r-delayedarray" ,r-delayedarray)
13072 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
13073 ("r-dplyr" ,r-dplyr)
13074 ("r-dropbead" ,r-dropbead)
13075 ("r-dt" ,r-dt)
13076 ("r-genomicalignments" ,r-genomicalignments)
13077 ("r-genomicfiles" ,r-genomicfiles)
13078 ("r-genomicranges" ,r-genomicranges)
13079 ("r-ggplot2" ,r-ggplot2)
13080 ("r-hdf5array" ,r-hdf5array)
13081 ("r-pheatmap" ,r-pheatmap)
13082 ("r-rmarkdown" ,r-rmarkdown)
13083 ("r-rsamtools" ,r-rsamtools)
13084 ("r-rtracklayer" ,r-rtracklayer)
13085 ("r-rtsne" ,r-rtsne)
13086 ("r-scater" ,r-scater)
13087 ("r-scran" ,r-scran)
13088 ("r-singlecellexperiment" ,r-singlecellexperiment)
13089 ("r-stringr" ,r-stringr)
13090 ("r-yaml" ,r-yaml)))
13091 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
13092 (synopsis "Analysis pipeline for single-cell RNA sequencing experiments")
13093 (description "PiGX scRNAseq is an analysis pipeline for preprocessing and
13094 quality control for single cell RNA sequencing experiments. The inputs are
13095 read files from the sequencing experiment, and a configuration file which
13096 describes the experiment. It produces processed files for downstream analysis
13097 and interactive quality reports. The pipeline is designed to work with UMI
13098 based methods.")
13099 (license license:gpl3+)))
13100
13101 (define-public pigx
13102 (package
13103 (name "pigx")
13104 (version "0.0.3")
13105 (source (origin
13106 (method url-fetch)
13107 (uri (string-append "https://github.com/BIMSBbioinfo/pigx/"
13108 "releases/download/v" version
13109 "/pigx-" version ".tar.gz"))
13110 (sha256
13111 (base32
13112 "1i5njdy1clj5ncw45d16p7mwmqvb1ilikl9n797pxklc3f4s7mq7"))))
13113 (build-system gnu-build-system)
13114 (inputs
13115 `(("python" ,python)
13116 ("pigx-bsseq" ,pigx-bsseq)
13117 ("pigx-chipseq" ,pigx-chipseq)
13118 ("pigx-rnaseq" ,pigx-rnaseq)
13119 ("pigx-scrnaseq" ,pigx-scrnaseq)))
13120 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
13121 (synopsis "Analysis pipelines for genomics")
13122 (description "PiGx is a collection of genomics pipelines. It includes the
13123 following pipelines:
13124
13125 @itemize
13126 @item PiGx BSseq for raw fastq read data of bisulfite experiments
13127 @item PiGx RNAseq for RNAseq samples
13128 @item PiGx scRNAseq for single cell dropseq analysis
13129 @item PiGx ChIPseq for reads from ChIPseq experiments
13130 @end itemize
13131
13132 All pipelines are easily configured with a simple sample sheet and a
13133 descriptive settings file. The result is a set of comprehensive, interactive
13134 HTML reports with interesting findings about your samples.")
13135 (license license:gpl3+)))
13136
13137 (define-public r-diversitree
13138 (package
13139 (name "r-diversitree")
13140 (version "0.9-10")
13141 (source
13142 (origin
13143 (method url-fetch)
13144 (uri (cran-uri "diversitree" version))
13145 (sha256
13146 (base32
13147 "0gh4rcrp0an3jh8915i1fsxlgyfk7njywgbd5ln5r2jhr085kpz7"))))
13148 (build-system r-build-system)
13149 (native-inputs
13150 `(("gfortran" ,gfortran)))
13151 (inputs `(("fftw" ,fftw) ("gsl" ,gsl)))
13152 (propagated-inputs
13153 `(("r-ape" ,r-ape)
13154 ("r-desolve" ,r-desolve)
13155 ("r-rcpp" ,r-rcpp)
13156 ("r-suplex" ,r-subplex)))
13157 (home-page "https://www.zoology.ubc.ca/prog/diversitree")
13158 (synopsis "Comparative 'phylogenetic' analyses of diversification")
13159 (description "This package contains a number of comparative \"phylogenetic\"
13160 methods, mostly focusing on analysing diversification and character evolution.
13161 Contains implementations of \"BiSSE\" (Binary State Speciation and Extinction)
13162 and its unresolved tree extensions, \"MuSSE\" (Multiple State Speciation and
13163 Extinction), \"QuaSSE\", \"GeoSSE\", and \"BiSSE-ness\" Other included methods
13164 include Markov models of discrete and continuous trait evolution and constant
13165 rate speciation and extinction.")
13166 (license license:gpl2+)))
13167
13168 (define-public sjcount
13169 ;; There is no tag for version 3.2, nor is there a release archive.
13170 (let ((commit "292d3917cadb3f6834c81e509c30e61cd7ead6e5")
13171 (revision "1"))
13172 (package
13173 (name "sjcount")
13174 (version (git-version "3.2" revision commit))
13175 (source (origin
13176 (method git-fetch)
13177 (uri (git-reference
13178 (url "https://github.com/pervouchine/sjcount-full.git")
13179 (commit commit)))
13180 (file-name (string-append name "-" version "-checkout"))
13181 (sha256
13182 (base32
13183 "0gdgj35j249f04rqgq8ymcc1xg1vi9kzbajnjqpaq2wpbh8bl234"))))
13184 (build-system gnu-build-system)
13185 (arguments
13186 `(#:tests? #f ; requires a 1.4G test file
13187 #:make-flags
13188 (list (string-append "SAMTOOLS_DIR="
13189 (assoc-ref %build-inputs "samtools")
13190 "/lib/"))
13191 #:phases
13192 (modify-phases %standard-phases
13193 (replace 'configure
13194 (lambda* (#:key inputs #:allow-other-keys)
13195 (substitute* "makefile"
13196 (("-I \\$\\{SAMTOOLS_DIR\\}")
13197 (string-append "-I" (assoc-ref inputs "samtools")
13198 "/include/samtools"))
13199 (("-lz ") "-lz -lpthread "))
13200 #t))
13201 (replace 'install
13202 (lambda* (#:key outputs #:allow-other-keys)
13203 (for-each (lambda (tool)
13204 (install-file tool
13205 (string-append (assoc-ref outputs "out")
13206 "/bin")))
13207 '("j_count" "b_count" "sjcount"))
13208 #t)))))
13209 (inputs
13210 `(("samtools" ,samtools-0.1)
13211 ("zlib" ,zlib)))
13212 (home-page "https://github.com/pervouchine/sjcount-full/")
13213 (synopsis "Annotation-agnostic splice junction counting pipeline")
13214 (description "Sjcount is a utility for fast quantification of splice
13215 junctions in RNA-seq data. It is annotation-agnostic and offset-aware. This
13216 version does count multisplits.")
13217 (license license:gpl3+))))
13218
13219 (define-public minimap2
13220 (package
13221 (name "minimap2")
13222 (version "2.10")
13223 (source
13224 (origin
13225 (method url-fetch)
13226 (uri (string-append "https://github.com/lh3/minimap2/"
13227 "releases/download/v" version "/"
13228 "minimap2-" version ".tar.bz2"))
13229 (sha256
13230 (base32
13231 "080w9066irkbhbyr4nmf19pzkdd2s4v31hpzlajgq2y0drr6zcsj"))))
13232 (build-system gnu-build-system)
13233 (arguments
13234 `(#:tests? #f ; there are none
13235 #:make-flags
13236 (list "CC=gcc"
13237 (let ((system ,(or (%current-target-system)
13238 (%current-system))))
13239 (cond
13240 ((string-prefix? "x86_64" system)
13241 "all")
13242 ((or (string-prefix? "armhf" system)
13243 (string-prefix? "aarch64" system))
13244 "arm_neon=1")
13245 (_ "sse2only=1"))))
13246 #:phases
13247 (modify-phases %standard-phases
13248 (delete 'configure)
13249 (replace 'install
13250 (lambda* (#:key outputs #:allow-other-keys)
13251 (let* ((out (assoc-ref outputs "out"))
13252 (bin (string-append out "/bin"))
13253 (man (string-append out "/share/man/man1")))
13254 (install-file "minimap2" bin)
13255 (mkdir-p man)
13256 (install-file "minimap2.1" man))
13257 #t)))))
13258 (inputs
13259 `(("zlib" ,zlib)))
13260 (home-page "https://lh3.github.io/minimap2/")
13261 (synopsis "Pairwise aligner for genomic and spliced nucleotide sequences")
13262 (description "Minimap2 is a versatile sequence alignment program that
13263 aligns DNA or mRNA sequences against a large reference database. Typical use
13264 cases include:
13265
13266 @enumerate
13267 @item mapping PacBio or Oxford Nanopore genomic reads to the human genome;
13268 @item finding overlaps between long reads with error rate up to ~15%;
13269 @item splice-aware alignment of PacBio Iso-Seq or Nanopore cDNA or Direct RNA
13270 reads against a reference genome;
13271 @item aligning Illumina single- or paired-end reads;
13272 @item assembly-to-assembly alignment;
13273 @item full-genome alignment between two closely related species with
13274 divergence below ~15%.
13275 @end enumerate\n")
13276 (license license:expat)))
13277
13278 (define-public r-loomr
13279 (let ((commit "df0144bd2bbceca6fadef9edc1bbc5ca672d4739")
13280 (revision "1"))
13281 (package
13282 (name "r-loomr")
13283 (version (git-version "0.2.0" revision commit))
13284 (source
13285 (origin
13286 (method git-fetch)
13287 (uri (git-reference
13288 (url "https://github.com/mojaveazure/loomR.git")
13289 (commit commit)))
13290 (file-name (git-file-name name version))
13291 (sha256
13292 (base32
13293 "1b1g4dlmfdyhn56bz1mkh9ymirri43wiz7rjhs7py3y7bdw1s3yr"))))
13294 (build-system r-build-system)
13295 (propagated-inputs
13296 `(("r-r6" ,r-r6)
13297 ("r-hdf5r" ,r-hdf5r)
13298 ("r-iterators" ,r-iterators)
13299 ("r-itertools" ,r-itertools)
13300 ("r-matrix" ,r-matrix)))
13301 (home-page "https://github.com/mojaveazure/loomR")
13302 (synopsis "R interface for loom files")
13303 (description "This package provides an R interface to access, create,
13304 and modify loom files. loomR aims to be completely compatible with loompy.")
13305 (license license:gpl3))))