Merge branch 'master' into core-updates
[jackhill/guix/guix.git] / gnu / packages / bioinformatics.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015, 2016, 2017, 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 ;;;
14 ;;; This file is part of GNU Guix.
15 ;;;
16 ;;; GNU Guix is free software; you can redistribute it and/or modify it
17 ;;; under the terms of the GNU General Public License as published by
18 ;;; the Free Software Foundation; either version 3 of the License, or (at
19 ;;; your option) any later version.
20 ;;;
21 ;;; GNU Guix is distributed in the hope that it will be useful, but
22 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
23 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 ;;; GNU General Public License for more details.
25 ;;;
26 ;;; You should have received a copy of the GNU General Public License
27 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
28
29 (define-module (gnu packages bioinformatics)
30 #:use-module ((guix licenses) #:prefix license:)
31 #:use-module (guix packages)
32 #:use-module (guix utils)
33 #:use-module (guix download)
34 #:use-module (guix git-download)
35 #:use-module (guix hg-download)
36 #:use-module (guix build-system ant)
37 #:use-module (guix build-system gnu)
38 #:use-module (guix build-system cmake)
39 #:use-module (guix build-system ocaml)
40 #:use-module (guix build-system perl)
41 #:use-module (guix build-system python)
42 #:use-module (guix build-system r)
43 #:use-module (guix build-system ruby)
44 #:use-module (guix build-system scons)
45 #:use-module (guix build-system trivial)
46 #:use-module (gnu packages)
47 #:use-module (gnu packages autotools)
48 #:use-module (gnu packages algebra)
49 #:use-module (gnu packages base)
50 #:use-module (gnu packages bash)
51 #:use-module (gnu packages bison)
52 #:use-module (gnu packages boost)
53 #:use-module (gnu packages check)
54 #:use-module (gnu packages compression)
55 #:use-module (gnu packages cpio)
56 #:use-module (gnu packages cran)
57 #:use-module (gnu packages curl)
58 #:use-module (gnu packages documentation)
59 #:use-module (gnu packages databases)
60 #:use-module (gnu packages datastructures)
61 #:use-module (gnu packages file)
62 #:use-module (gnu packages flex)
63 #:use-module (gnu packages gawk)
64 #:use-module (gnu packages gcc)
65 #:use-module (gnu packages gd)
66 #:use-module (gnu packages gtk)
67 #:use-module (gnu packages glib)
68 #:use-module (gnu packages graph)
69 #:use-module (gnu packages groff)
70 #:use-module (gnu packages guile)
71 #:use-module (gnu packages haskell)
72 #:use-module (gnu packages image)
73 #:use-module (gnu packages imagemagick)
74 #:use-module (gnu packages java)
75 #:use-module (gnu packages jemalloc)
76 #:use-module (gnu packages ldc)
77 #:use-module (gnu packages linux)
78 #:use-module (gnu packages logging)
79 #:use-module (gnu packages machine-learning)
80 #:use-module (gnu packages man)
81 #:use-module (gnu packages maths)
82 #:use-module (gnu packages mpi)
83 #:use-module (gnu packages ncurses)
84 #:use-module (gnu packages ocaml)
85 #:use-module (gnu packages pcre)
86 #:use-module (gnu packages parallel)
87 #:use-module (gnu packages pdf)
88 #:use-module (gnu packages perl)
89 #:use-module (gnu packages perl-check)
90 #:use-module (gnu packages pkg-config)
91 #:use-module (gnu packages popt)
92 #:use-module (gnu packages protobuf)
93 #:use-module (gnu packages python)
94 #:use-module (gnu packages python-web)
95 #:use-module (gnu packages readline)
96 #:use-module (gnu packages ruby)
97 #:use-module (gnu packages serialization)
98 #:use-module (gnu packages shells)
99 #:use-module (gnu packages statistics)
100 #:use-module (gnu packages swig)
101 #:use-module (gnu packages tbb)
102 #:use-module (gnu packages tex)
103 #:use-module (gnu packages texinfo)
104 #:use-module (gnu packages textutils)
105 #:use-module (gnu packages time)
106 #:use-module (gnu packages tls)
107 #:use-module (gnu packages vim)
108 #:use-module (gnu packages web)
109 #:use-module (gnu packages xml)
110 #:use-module (gnu packages xorg)
111 #:use-module (srfi srfi-1)
112 #:use-module (ice-9 match))
113
114 (define-public aragorn
115 (package
116 (name "aragorn")
117 (version "1.2.38")
118 (source (origin
119 (method url-fetch)
120 (uri (string-append
121 "http://mbio-serv2.mbioekol.lu.se/ARAGORN/Downloads/aragorn"
122 version ".tgz"))
123 (sha256
124 (base32
125 "09i1rg716smlbnixfm7q1ml2mfpaa2fpn3hwjg625ysmfwwy712b"))))
126 (build-system gnu-build-system)
127 (arguments
128 `(#:tests? #f ; there are no tests
129 #:phases
130 (modify-phases %standard-phases
131 (delete 'configure)
132 (replace 'build
133 (lambda _
134 (zero? (system* "gcc"
135 "-O3"
136 "-ffast-math"
137 "-finline-functions"
138 "-o"
139 "aragorn"
140 (string-append "aragorn" ,version ".c")))))
141 (replace 'install
142 (lambda* (#:key outputs #:allow-other-keys)
143 (let* ((out (assoc-ref outputs "out"))
144 (bin (string-append out "/bin"))
145 (man (string-append out "/share/man/man1")))
146 (mkdir-p bin)
147 (install-file "aragorn" bin)
148 (mkdir-p man)
149 (install-file "aragorn.1" man))
150 #t)))))
151 (home-page "http://mbio-serv2.mbioekol.lu.se/ARAGORN")
152 (synopsis "Detect tRNA, mtRNA and tmRNA genes in nucleotide sequences")
153 (description
154 "Aragorn identifies transfer RNA, mitochondrial RNA and
155 transfer-messenger RNA from nucleotide sequences, based on homology to known
156 tRNA consensus sequences and RNA structure. It also outputs the secondary
157 structure of the predicted RNA.")
158 (license license:gpl2)))
159
160 (define-public bamm
161 (package
162 (name "bamm")
163 (version "1.7.3")
164 (source (origin
165 (method url-fetch)
166 ;; BamM is not available on pypi.
167 (uri (string-append
168 "https://github.com/Ecogenomics/BamM/archive/"
169 version ".tar.gz"))
170 (file-name (string-append name "-" version ".tar.gz"))
171 (sha256
172 (base32
173 "1f35yxp4pc8aadsvbpg6r4kg2jh4fkjci0iby4iyljm6980sac0s"))
174 (modules '((guix build utils)))
175 (snippet
176 `(begin
177 ;; Delete bundled htslib.
178 (delete-file-recursively "c/htslib-1.3.1")
179 #t))))
180 (build-system python-build-system)
181 (arguments
182 `(#:python ,python-2 ; BamM is Python 2 only.
183 ;; Do not use bundled libhts. Do use the bundled libcfu because it has
184 ;; been modified from its original form.
185 #:configure-flags
186 (let ((htslib (assoc-ref %build-inputs "htslib")))
187 (list "--with-libhts-lib" (string-append htslib "/lib")
188 "--with-libhts-inc" (string-append htslib "/include/htslib")))
189 #:phases
190 (modify-phases %standard-phases
191 (add-after 'unpack 'autogen
192 (lambda _
193 (with-directory-excursion "c"
194 (let ((sh (which "sh")))
195 ;; Use autogen so that 'configure' works.
196 (substitute* "autogen.sh" (("/bin/sh") sh))
197 (setenv "CONFIG_SHELL" sh)
198 (substitute* "configure" (("/bin/sh") sh))
199 (zero? (system* "./autogen.sh"))))))
200 (delete 'build)
201 ;; Run tests after installation so compilation only happens once.
202 (delete 'check)
203 (add-after 'install 'wrap-executable
204 (lambda* (#:key outputs #:allow-other-keys)
205 (let* ((out (assoc-ref outputs "out"))
206 (path (getenv "PATH")))
207 (wrap-program (string-append out "/bin/bamm")
208 `("PATH" ":" prefix (,path))))
209 #t))
210 (add-after 'wrap-executable 'post-install-check
211 (lambda* (#:key inputs outputs #:allow-other-keys)
212 (setenv "PATH"
213 (string-append (assoc-ref outputs "out")
214 "/bin:"
215 (getenv "PATH")))
216 (setenv "PYTHONPATH"
217 (string-append
218 (assoc-ref outputs "out")
219 "/lib/python"
220 (string-take (string-take-right
221 (assoc-ref inputs "python") 5) 3)
222 "/site-packages:"
223 (getenv "PYTHONPATH")))
224 ;; There are 2 errors printed, but they are safe to ignore:
225 ;; 1) [E::hts_open_format] fail to open file ...
226 ;; 2) samtools view: failed to open ...
227 (zero? (system* "nosetests")))))))
228 (native-inputs
229 `(("autoconf" ,autoconf)
230 ("automake" ,automake)
231 ("libtool" ,libtool)
232 ("zlib" ,zlib)
233 ("python-nose" ,python2-nose)
234 ("python-pysam" ,python2-pysam)))
235 (inputs
236 `(("htslib" ,htslib-1.3) ; At least one test fails on htslib-1.4+.
237 ("samtools" ,samtools)
238 ("bwa" ,bwa)
239 ("grep" ,grep)
240 ("sed" ,sed)
241 ("coreutils" ,coreutils)))
242 (propagated-inputs
243 `(("python-numpy" ,python2-numpy)))
244 (home-page "http://ecogenomics.github.io/BamM/")
245 (synopsis "Metagenomics-focused BAM file manipulator")
246 (description
247 "BamM is a C library, wrapped in python, to efficiently generate and
248 parse BAM files, specifically for the analysis of metagenomic data. For
249 instance, it implements several methods to assess contig-wise read coverage.")
250 (license license:lgpl3+)))
251
252 (define-public bamtools
253 (package
254 (name "bamtools")
255 (version "2.5.1")
256 (source (origin
257 (method url-fetch)
258 (uri (string-append
259 "https://github.com/pezmaster31/bamtools/archive/v"
260 version ".tar.gz"))
261 (file-name (string-append name "-" version ".tar.gz"))
262 (sha256
263 (base32
264 "1z3kg24qrwq13a88n9d86izngrar4fll7gr6phddb2faw75pdgaa"))))
265 (build-system cmake-build-system)
266 (arguments
267 `(#:tests? #f ;no "check" target
268 #:phases
269 (modify-phases %standard-phases
270 (add-before
271 'configure 'set-ldflags
272 (lambda* (#:key outputs #:allow-other-keys)
273 (setenv "LDFLAGS"
274 (string-append
275 "-Wl,-rpath="
276 (assoc-ref outputs "out") "/lib/bamtools")))))))
277 (inputs `(("zlib" ,zlib)))
278 (home-page "https://github.com/pezmaster31/bamtools")
279 (synopsis "C++ API and command-line toolkit for working with BAM data")
280 (description
281 "BamTools provides both a C++ API and a command-line toolkit for handling
282 BAM files.")
283 (license license:expat)))
284
285 (define-public bcftools
286 (package
287 (name "bcftools")
288 (version "1.8")
289 (source (origin
290 (method url-fetch)
291 (uri (string-append
292 "https://github.com/samtools/bcftools/releases/download/"
293 version "/bcftools-" version ".tar.bz2"))
294 (sha256
295 (base32
296 "1vgw2mwngq20c530zim52zvgmw1lci8rzl33pvh44xqk3xlzvjsa"))
297 (modules '((guix build utils)))
298 (snippet '(begin
299 ;; Delete bundled htslib.
300 (delete-file-recursively "htslib-1.8")
301 #t))))
302 (build-system gnu-build-system)
303 (arguments
304 `(#:test-target "test"
305 #:configure-flags (list "--with-htslib=system")
306 #:make-flags
307 (list
308 "USE_GPL=1"
309 "LIBS=-lgsl -lgslcblas"
310 (string-append "prefix=" (assoc-ref %outputs "out"))
311 (string-append "HTSDIR=" (assoc-ref %build-inputs "htslib") "/include")
312 (string-append "HTSLIB=" (assoc-ref %build-inputs "htslib") "/lib/libhts.so")
313 (string-append "BGZIP=" (assoc-ref %build-inputs "htslib") "/bin/bgzip")
314 (string-append "TABIX=" (assoc-ref %build-inputs "htslib") "/bin/tabix")
315 (string-append "PACKAGE_VERSION=" ,version))
316 #:phases
317 (modify-phases %standard-phases
318 (add-before 'check 'patch-tests
319 (lambda _
320 (substitute* "test/test.pl"
321 (("/bin/bash") (which "bash")))
322 #t)))))
323 (native-inputs
324 `(("htslib" ,htslib)
325 ("perl" ,perl)))
326 (inputs
327 `(("gsl" ,gsl)
328 ("zlib" ,zlib)))
329 (home-page "https://samtools.github.io/bcftools/")
330 (synopsis "Utilities for variant calling and manipulating VCFs and BCFs")
331 (description
332 "BCFtools is a set of utilities that manipulate variant calls in the
333 Variant Call Format (VCF) and its binary counterpart BCF. All commands work
334 transparently with both VCFs and BCFs, both uncompressed and BGZF-compressed.")
335 ;; The sources are dual MIT/GPL, but becomes GPL-only when USE_GPL=1.
336 (license (list license:gpl3+ license:expat))))
337
338 (define-public bedops
339 (package
340 (name "bedops")
341 (version "2.4.33")
342 (source (origin
343 (method url-fetch)
344 (uri (string-append "https://github.com/bedops/bedops/archive/v"
345 version ".tar.gz"))
346 (file-name (string-append name "-" version ".tar.gz"))
347 (sha256
348 (base32
349 "0kx4awrwby8f33wqyx8w7ms7v25xhf0d421csgf96a3hfzn2mb0m"))))
350 (build-system gnu-build-system)
351 (arguments
352 '(#:tests? #f
353 #:make-flags (list (string-append "BINDIR=" %output "/bin"))
354 #:phases
355 (modify-phases %standard-phases
356 (add-after 'unpack 'unpack-tarballs
357 (lambda _
358 ;; FIXME: Bedops includes tarballs of minimally patched upstream
359 ;; libraries jansson, zlib, and bzip2. We cannot just use stock
360 ;; libraries because at least one of the libraries (zlib) is
361 ;; patched to add a C++ function definition (deflateInit2cpp).
362 ;; Until the Bedops developers offer a way to link against system
363 ;; libraries we have to build the in-tree copies of these three
364 ;; libraries.
365
366 ;; See upstream discussion:
367 ;; https://github.com/bedops/bedops/issues/124
368
369 ;; Unpack the tarballs to benefit from shebang patching.
370 (with-directory-excursion "third-party"
371 (and (zero? (system* "tar" "xvf" "jansson-2.6.tar.bz2"))
372 (zero? (system* "tar" "xvf" "zlib-1.2.7.tar.bz2"))
373 (zero? (system* "tar" "xvf" "bzip2-1.0.6.tar.bz2"))))
374 ;; Disable unpacking of tarballs in Makefile.
375 (substitute* "system.mk/Makefile.linux"
376 (("^\tbzcat .*") "\t@echo \"not unpacking\"\n")
377 (("\\./configure") "CONFIG_SHELL=bash ./configure"))
378 (substitute* "third-party/zlib-1.2.7/Makefile.in"
379 (("^SHELL=.*$") "SHELL=bash\n"))
380 #t))
381 (delete 'configure))))
382 (home-page "https://github.com/bedops/bedops")
383 (synopsis "Tools for high-performance genomic feature operations")
384 (description
385 "BEDOPS is a suite of tools to address common questions raised in genomic
386 studies---mostly with regard to overlap and proximity relationships between
387 data sets. It aims to be scalable and flexible, facilitating the efficient
388 and accurate analysis and management of large-scale genomic data.
389
390 BEDOPS provides tools that perform highly efficient and scalable Boolean and
391 other set operations, statistical calculations, archiving, conversion and
392 other management of genomic data of arbitrary scale. Tasks can be easily
393 split by chromosome for distributing whole-genome analyses across a
394 computational cluster.")
395 (license license:gpl2+)))
396
397 (define-public bedtools
398 (package
399 (name "bedtools")
400 (version "2.27.1")
401 (source (origin
402 (method url-fetch)
403 (uri (string-append "https://github.com/arq5x/bedtools2/releases/"
404 "download/v" version "/"
405 "bedtools-" version ".tar.gz"))
406 (sha256
407 (base32
408 "1ndg5yknrxl4djx8ddzgk12rrbiidfpmkkg5z3f95jzryfxarhn8"))))
409 (build-system gnu-build-system)
410 (arguments
411 '(#:test-target "test"
412 #:make-flags
413 (list (string-append "prefix=" (assoc-ref %outputs "out")))
414 #:phases
415 (modify-phases %standard-phases
416 (delete 'configure))))
417 (native-inputs `(("python" ,python-2)))
418 (inputs
419 `(("samtools" ,samtools)
420 ("zlib" ,zlib)))
421 (home-page "https://github.com/arq5x/bedtools2")
422 (synopsis "Tools for genome analysis and arithmetic")
423 (description
424 "Collectively, the bedtools utilities are a swiss-army knife of tools for
425 a wide-range of genomics analysis tasks. The most widely-used tools enable
426 genome arithmetic: that is, set theory on the genome. For example, bedtools
427 allows one to intersect, merge, count, complement, and shuffle genomic
428 intervals from multiple files in widely-used genomic file formats such as BAM,
429 BED, GFF/GTF, VCF.")
430 (license license:gpl2)))
431
432 ;; Later releases of bedtools produce files with more columns than
433 ;; what Ribotaper expects.
434 (define-public bedtools-2.18
435 (package (inherit bedtools)
436 (name "bedtools")
437 (version "2.18.0")
438 (source (origin
439 (method url-fetch)
440 (uri (string-append "https://github.com/arq5x/bedtools2/"
441 "archive/v" version ".tar.gz"))
442 (file-name (string-append name "-" version ".tar.gz"))
443 (sha256
444 (base32
445 "05vrnr8yp7swfagshzpgqmzk1blnwnq8pq5pckzi1m26w98d63vf"))))
446 (arguments
447 '(#:test-target "test"
448 #:phases
449 (modify-phases %standard-phases
450 (delete 'configure)
451 (replace 'install
452 (lambda* (#:key outputs #:allow-other-keys)
453 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
454 (for-each (lambda (file)
455 (install-file file bin))
456 (find-files "bin" ".*")))
457 #t)))))))
458
459 (define-public ribotaper
460 (package
461 (name "ribotaper")
462 (version "1.3.1")
463 (source (origin
464 (method url-fetch)
465 (uri (string-append "https://ohlerlab.mdc-berlin.de/"
466 "files/RiboTaper/RiboTaper_Version_"
467 version ".tar.gz"))
468 (sha256
469 (base32
470 "0ykjbps1y3z3085q94npw8i9x5gldc6shy8vlc08v76zljsm07hv"))))
471 (build-system gnu-build-system)
472 (arguments
473 `(#:phases
474 (modify-phases %standard-phases
475 (add-after 'install 'wrap-executables
476 (lambda* (#:key inputs outputs #:allow-other-keys)
477 (let* ((out (assoc-ref outputs "out")))
478 (for-each
479 (lambda (script)
480 (wrap-program (string-append out "/bin/" script)
481 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
482 '("create_annotations_files.bash"
483 "create_metaplots.bash"
484 "Ribotaper_ORF_find.sh"
485 "Ribotaper.sh"))))))))
486 (inputs
487 `(("bedtools" ,bedtools-2.18)
488 ("samtools" ,samtools-0.1)
489 ("r-minimal" ,r-minimal)
490 ("r-foreach" ,r-foreach)
491 ("r-xnomial" ,r-xnomial)
492 ("r-domc" ,r-domc)
493 ("r-multitaper" ,r-multitaper)
494 ("r-seqinr" ,r-seqinr)))
495 (home-page "https://ohlerlab.mdc-berlin.de/software/RiboTaper_126/")
496 (synopsis "Define translated ORFs using ribosome profiling data")
497 (description
498 "Ribotaper is a method for defining translated @dfn{open reading
499 frames} (ORFs) using ribosome profiling (ribo-seq) data. This package
500 provides the Ribotaper pipeline.")
501 (license license:gpl3+)))
502
503 (define-public ribodiff
504 (package
505 (name "ribodiff")
506 (version "0.2.2")
507 (source
508 (origin
509 (method url-fetch)
510 (uri (string-append "https://github.com/ratschlab/RiboDiff/"
511 "archive/v" version ".tar.gz"))
512 (file-name (string-append name "-" version ".tar.gz"))
513 (sha256
514 (base32
515 "0wpbwmfv05wdjxv7ikm664f7s7p7cqr8jnw99zrda0q67rl50aaj"))))
516 (build-system python-build-system)
517 (arguments
518 `(#:python ,python-2
519 #:phases
520 (modify-phases %standard-phases
521 ;; Generate an installable executable script wrapper.
522 (add-after 'unpack 'patch-setup.py
523 (lambda _
524 (substitute* "setup.py"
525 (("^(.*)packages=.*" line prefix)
526 (string-append line "\n"
527 prefix "scripts=['scripts/TE.py'],\n")))
528 #t)))))
529 (inputs
530 `(("python-numpy" ,python2-numpy)
531 ("python-matplotlib" ,python2-matplotlib)
532 ("python-scipy" ,python2-scipy)
533 ("python-statsmodels" ,python2-statsmodels)))
534 (native-inputs
535 `(("python-mock" ,python2-mock)
536 ("python-nose" ,python2-nose)))
537 (home-page "http://public.bmi.inf.ethz.ch/user/zhongy/RiboDiff/")
538 (synopsis "Detect translation efficiency changes from ribosome footprints")
539 (description "RiboDiff is a statistical tool that detects the protein
540 translational efficiency change from Ribo-Seq (ribosome footprinting) and
541 RNA-Seq data. It uses a generalized linear model to detect genes showing
542 difference in translational profile taking mRNA abundance into account. It
543 facilitates us to decipher the translational regulation that behave
544 independently with transcriptional regulation.")
545 (license license:gpl3+)))
546
547 (define-public bioawk
548 (package
549 (name "bioawk")
550 (version "1.0")
551 (source (origin
552 (method url-fetch)
553 (uri (string-append "https://github.com/lh3/bioawk/archive/v"
554 version ".tar.gz"))
555 (file-name (string-append name "-" version ".tar.gz"))
556 (sha256
557 (base32 "1daizxsk17ahi9n58fj8vpgwyhzrzh54bzqhanjanp88kgrz7gjw"))))
558 (build-system gnu-build-system)
559 (inputs
560 `(("zlib" ,zlib)))
561 (native-inputs
562 `(("bison" ,bison)))
563 (arguments
564 `(#:tests? #f ; There are no tests to run.
565 ;; Bison must generate files, before other targets can build.
566 #:parallel-build? #f
567 #:phases
568 (modify-phases %standard-phases
569 (delete 'configure) ; There is no configure phase.
570 (replace 'install
571 (lambda* (#:key outputs #:allow-other-keys)
572 (let* ((out (assoc-ref outputs "out"))
573 (bin (string-append out "/bin"))
574 (man (string-append out "/share/man/man1")))
575 (mkdir-p man)
576 (copy-file "awk.1" (string-append man "/bioawk.1"))
577 (install-file "bioawk" bin)))))))
578 (home-page "https://github.com/lh3/bioawk")
579 (synopsis "AWK with bioinformatics extensions")
580 (description "Bioawk is an extension to Brian Kernighan's awk, adding the
581 support of several common biological data formats, including optionally gzip'ed
582 BED, GFF, SAM, VCF, FASTA/Q and TAB-delimited formats with column names. It
583 also adds a few built-in functions and a command line option to use TAB as the
584 input/output delimiter. When the new functionality is not used, bioawk is
585 intended to behave exactly the same as the original BWK awk.")
586 (license license:x11)))
587
588 (define-public python2-pybedtools
589 (package
590 (name "python2-pybedtools")
591 (version "0.6.9")
592 (source (origin
593 (method url-fetch)
594 (uri (string-append
595 "https://pypi.python.org/packages/source/p/pybedtools/pybedtools-"
596 version ".tar.gz"))
597 (sha256
598 (base32
599 "1ldzdxw1p4y3g2ignmggsdypvqkcwqwzhdha4rbgpih048z5p4an"))))
600 (build-system python-build-system)
601 (arguments `(#:python ,python-2)) ; no Python 3 support
602 (inputs
603 `(("python-matplotlib" ,python2-matplotlib)))
604 (propagated-inputs
605 `(("bedtools" ,bedtools)
606 ("samtools" ,samtools)))
607 (native-inputs
608 `(("python-cython" ,python2-cython)
609 ("python-pyyaml" ,python2-pyyaml)
610 ("python-nose" ,python2-nose)))
611 (home-page "https://pythonhosted.org/pybedtools/")
612 (synopsis "Python wrapper for BEDtools programs")
613 (description
614 "pybedtools is a Python wrapper for Aaron Quinlan's BEDtools programs,
615 which are widely used for genomic interval manipulation or \"genome algebra\".
616 pybedtools extends BEDTools by offering feature-level manipulations from with
617 Python.")
618 (license license:gpl2+)))
619
620 (define-public python-biom-format
621 (package
622 (name "python-biom-format")
623 (version "2.1.6")
624 (source
625 (origin
626 (method url-fetch)
627 ;; Use GitHub as source because PyPI distribution does not contain
628 ;; test data: https://github.com/biocore/biom-format/issues/693
629 (uri (string-append "https://github.com/biocore/biom-format/archive/"
630 version ".tar.gz"))
631 (file-name (string-append name "-" version ".tar.gz"))
632 (sha256
633 (base32
634 "08cr7wpahk6zb31h4bs7jmzpvxcqv9s13xz40h6y2h656jvdvnpj"))))
635 (build-system python-build-system)
636 (propagated-inputs
637 `(("python-numpy" ,python-numpy)
638 ("python-scipy" ,python-scipy)
639 ("python-future" ,python-future)
640 ("python-click" ,python-click)
641 ("python-h5py" ,python-h5py)
642 ("python-pandas" ,python-pandas)))
643 (native-inputs
644 `(("python-nose" ,python-nose)))
645 (home-page "http://www.biom-format.org")
646 (synopsis "Biological Observation Matrix (BIOM) format utilities")
647 (description
648 "The BIOM file format is designed to be a general-use format for
649 representing counts of observations e.g. operational taxonomic units, KEGG
650 orthology groups or lipid types, in one or more biological samples
651 e.g. microbiome samples, genomes, metagenomes.")
652 (license license:bsd-3)
653 (properties `((python2-variant . ,(delay python2-biom-format))))))
654
655 (define-public python2-biom-format
656 (let ((base (package-with-python2 (strip-python2-variant python-biom-format))))
657 (package
658 (inherit base)
659 (arguments
660 `(#:phases
661 (modify-phases %standard-phases
662 ;; Do not require the unmaintained pyqi library.
663 (add-after 'unpack 'remove-pyqi
664 (lambda _
665 (substitute* "setup.py"
666 (("install_requires.append\\(\"pyqi\"\\)") "pass"))
667 #t)))
668 ,@(package-arguments base))))))
669
670 (define-public bioperl-minimal
671 (let* ((inputs `(("perl-module-build" ,perl-module-build)
672 ("perl-data-stag" ,perl-data-stag)
673 ("perl-libwww" ,perl-libwww)
674 ("perl-uri" ,perl-uri)))
675 (transitive-inputs
676 (map (compose package-name cadr)
677 (delete-duplicates
678 (concatenate
679 (map (compose package-transitive-target-inputs cadr) inputs))))))
680 (package
681 (name "bioperl-minimal")
682 (version "1.7.0")
683 (source
684 (origin
685 (method url-fetch)
686 (uri (string-append "https://github.com/bioperl/bioperl-live/"
687 "archive/release-"
688 (string-map (lambda (c)
689 (if (char=? c #\.)
690 #\- c)) version)
691 ".tar.gz"))
692 (sha256
693 (base32
694 "12phgpxwgkqflkwfb9dcqg7a31dpjlfhar8wcgv0aj5ln4akfz06"))))
695 (build-system perl-build-system)
696 (arguments
697 `(#:phases
698 (modify-phases %standard-phases
699 (add-after
700 'install 'wrap-programs
701 (lambda* (#:key outputs #:allow-other-keys)
702 ;; Make sure all executables in "bin" find the required Perl
703 ;; modules at runtime. As the PERL5LIB variable contains also
704 ;; the paths of native inputs, we pick the transitive target
705 ;; inputs from %build-inputs.
706 (let* ((out (assoc-ref outputs "out"))
707 (bin (string-append out "/bin/"))
708 (path (string-join
709 (cons (string-append out "/lib/perl5/site_perl")
710 (map (lambda (name)
711 (assoc-ref %build-inputs name))
712 ',transitive-inputs))
713 ":")))
714 (for-each (lambda (file)
715 (wrap-program file
716 `("PERL5LIB" ":" prefix (,path))))
717 (find-files bin "\\.pl$"))
718 #t))))))
719 (inputs inputs)
720 (native-inputs
721 `(("perl-test-most" ,perl-test-most)))
722 (home-page "http://search.cpan.org/dist/BioPerl")
723 (synopsis "Bioinformatics toolkit")
724 (description
725 "BioPerl is the product of a community effort to produce Perl code which
726 is useful in biology. Examples include Sequence objects, Alignment objects
727 and database searching objects. These objects not only do what they are
728 advertised to do in the documentation, but they also interact - Alignment
729 objects are made from the Sequence objects, Sequence objects have access to
730 Annotation and SeqFeature objects and databases, Blast objects can be
731 converted to Alignment objects, and so on. This means that the objects
732 provide a coordinated and extensible framework to do computational biology.")
733 (license license:perl-license))))
734
735 (define-public python-biopython
736 (package
737 (name "python-biopython")
738 (version "1.70")
739 (source (origin
740 (method url-fetch)
741 ;; use PyPi rather than biopython.org to ease updating
742 (uri (pypi-uri "biopython" version))
743 (sha256
744 (base32
745 "0nz4n9d2y2dg849gn1z0vjlkwcpzzkzy3fij7x94a6ixy2c54z2a"))))
746 (build-system python-build-system)
747 (arguments
748 `(#:phases
749 (modify-phases %standard-phases
750 (add-before 'check 'set-home
751 ;; Some tests require a home directory to be set.
752 (lambda _ (setenv "HOME" "/tmp") #t)))))
753 (propagated-inputs
754 `(("python-numpy" ,python-numpy)))
755 (home-page "http://biopython.org/")
756 (synopsis "Tools for biological computation in Python")
757 (description
758 "Biopython is a set of tools for biological computation including parsers
759 for bioinformatics files into Python data structures; interfaces to common
760 bioinformatics programs; a standard sequence class and tools for performing
761 common operations on them; code to perform data classification; code for
762 dealing with alignments; code making it easy to split up parallelizable tasks
763 into separate processes; and more.")
764 (license (license:non-copyleft "http://www.biopython.org/DIST/LICENSE"))))
765
766 (define-public python2-biopython
767 (package-with-python2 python-biopython))
768
769 (define-public bpp-core
770 ;; The last release was in 2014 and the recommended way to install from source
771 ;; is to clone the git repository, so we do this.
772 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
773 (let ((commit "7d8bced0d1a87291ea8dd7046b7fb5ff9c35c582"))
774 (package
775 (name "bpp-core")
776 (version (string-append "2.2.0-1." (string-take commit 7)))
777 (source (origin
778 (method git-fetch)
779 (uri (git-reference
780 (url "http://biopp.univ-montp2.fr/git/bpp-core")
781 (commit commit)))
782 (file-name (string-append name "-" version "-checkout"))
783 (sha256
784 (base32
785 "10djsq5vlnkilv436gnmh4irpk49v29pa69r6xiryg32xmvn909j"))))
786 (build-system cmake-build-system)
787 (arguments
788 `(#:parallel-build? #f))
789 (inputs
790 `(("gcc" ,gcc-5))) ; Compilation of bpp-phyl fails with GCC 4.9 so we
791 ; compile all of the bpp packages with GCC 5.
792 (home-page "http://biopp.univ-montp2.fr")
793 (synopsis "C++ libraries for Bioinformatics")
794 (description
795 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
796 analysis, phylogenetics, molecular evolution and population genetics. It is
797 Object Oriented and is designed to be both easy to use and computer efficient.
798 Bio++ intends to help programmers to write computer expensive programs, by
799 providing them a set of re-usable tools.")
800 (license license:cecill-c))))
801
802 (define-public bpp-phyl
803 ;; The last release was in 2014 and the recommended way to install from source
804 ;; is to clone the git repository, so we do this.
805 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
806 (let ((commit "0c07167b629f68b569bf274d1ad0c4af83276ae2"))
807 (package
808 (name "bpp-phyl")
809 (version (string-append "2.2.0-1." (string-take commit 7)))
810 (source (origin
811 (method git-fetch)
812 (uri (git-reference
813 (url "http://biopp.univ-montp2.fr/git/bpp-phyl")
814 (commit commit)))
815 (file-name (string-append name "-" version "-checkout"))
816 (sha256
817 (base32
818 "1ssjgchzwj3iai26kyly7gwkdv8sk59nqhkb1wpap3sf5m6kyllh"))))
819 (build-system cmake-build-system)
820 (arguments
821 `(#:parallel-build? #f
822 ;; If out-of-source, test data is not copied into the build directory
823 ;; so the tests fail.
824 #:out-of-source? #f))
825 (inputs
826 `(("bpp-core" ,bpp-core)
827 ("bpp-seq" ,bpp-seq)
828 ;; GCC 4.8 fails due to an 'internal compiler error', so we use a more
829 ;; modern GCC.
830 ("gcc" ,gcc-5)))
831 (home-page "http://biopp.univ-montp2.fr")
832 (synopsis "Bio++ phylogenetic Library")
833 (description
834 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
835 analysis, phylogenetics, molecular evolution and population genetics. This
836 library provides phylogenetics-related modules.")
837 (license license:cecill-c))))
838
839 (define-public bpp-popgen
840 ;; The last release was in 2014 and the recommended way to install from source
841 ;; is to clone the git repository, so we do this.
842 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
843 (let ((commit "e472bac9b1a148803895d747cd6d0c5904f85d9f"))
844 (package
845 (name "bpp-popgen")
846 (version (string-append "2.2.0-1." (string-take commit 7)))
847 (source (origin
848 (method git-fetch)
849 (uri (git-reference
850 (url "http://biopp.univ-montp2.fr/git/bpp-popgen")
851 (commit commit)))
852 (file-name (string-append name "-" version "-checkout"))
853 (sha256
854 (base32
855 "0yn82dzn1n5629nzja68xfrhi655709rjanyryb36vzkmymy6dw5"))))
856 (build-system cmake-build-system)
857 (arguments
858 `(#:parallel-build? #f
859 #:tests? #f)) ; There are no tests.
860 (inputs
861 `(("bpp-core" ,bpp-core)
862 ("bpp-seq" ,bpp-seq)
863 ("gcc" ,gcc-5)))
864 (home-page "http://biopp.univ-montp2.fr")
865 (synopsis "Bio++ population genetics library")
866 (description
867 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
868 analysis, phylogenetics, molecular evolution and population genetics. This
869 library provides population genetics-related modules.")
870 (license license:cecill-c))))
871
872 (define-public bpp-seq
873 ;; The last release was in 2014 and the recommended way to install from source
874 ;; is to clone the git repository, so we do this.
875 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
876 (let ((commit "6cfa07965ce152e5598a89df2fa80a75973bfa33"))
877 (package
878 (name "bpp-seq")
879 (version (string-append "2.2.0-1." (string-take commit 7)))
880 (source (origin
881 (method git-fetch)
882 (uri (git-reference
883 (url "http://biopp.univ-montp2.fr/git/bpp-seq")
884 (commit commit)))
885 (file-name (string-append name "-" version "-checkout"))
886 (sha256
887 (base32
888 "1nys5jq7jqvdg40d91wsmj3q2yzy4276cp7sp44n67p468f27zf2"))))
889 (build-system cmake-build-system)
890 (arguments
891 `(#:parallel-build? #f
892 ;; If out-of-source, test data is not copied into the build directory
893 ;; so the tests fail.
894 #:out-of-source? #f))
895 (inputs
896 `(("bpp-core" ,bpp-core)
897 ("gcc" ,gcc-5))) ; Use GCC 5 as per 'bpp-core'.
898 (home-page "http://biopp.univ-montp2.fr")
899 (synopsis "Bio++ sequence library")
900 (description
901 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
902 analysis, phylogenetics, molecular evolution and population genetics. This
903 library provides sequence-related modules.")
904 (license license:cecill-c))))
905
906 (define-public bppsuite
907 ;; The last release was in 2014 and the recommended way to install from source
908 ;; is to clone the git repository, so we do this.
909 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
910 (let ((commit "c516147f57aa50961121cd505bed52cd7603698b"))
911 (package
912 (name "bppsuite")
913 (version (string-append "2.2.0-1." (string-take commit 7)))
914 (source (origin
915 (method git-fetch)
916 (uri (git-reference
917 (url "http://biopp.univ-montp2.fr/git/bppsuite")
918 (commit commit)))
919 (file-name (string-append name "-" version "-checkout"))
920 (sha256
921 (base32
922 "1y87pxvw0jxjizhq2dr9g2r91md45k1p9ih2sl1yy1y3p934l2kb"))))
923 (build-system cmake-build-system)
924 (arguments
925 `(#:parallel-build? #f
926 #:tests? #f)) ; There are no tests.
927 (native-inputs
928 `(("groff" ,groff)
929 ("man-db" ,man-db)
930 ("texinfo" ,texinfo)))
931 (inputs
932 `(("bpp-core" ,bpp-core)
933 ("bpp-seq" ,bpp-seq)
934 ("bpp-phyl" ,bpp-phyl)
935 ("bpp-phyl" ,bpp-popgen)
936 ("gcc" ,gcc-5)))
937 (home-page "http://biopp.univ-montp2.fr")
938 (synopsis "Bioinformatics tools written with the Bio++ libraries")
939 (description
940 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
941 analysis, phylogenetics, molecular evolution and population genetics. This
942 package provides command line tools using the Bio++ library.")
943 (license license:cecill-c))))
944
945 (define-public blast+
946 (package
947 (name "blast+")
948 (version "2.6.0")
949 (source (origin
950 (method url-fetch)
951 (uri (string-append
952 "ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/"
953 version "/ncbi-blast-" version "+-src.tar.gz"))
954 (sha256
955 (base32
956 "15n937pw5aqmyfjb6l387d18grqbb96l63d5xj4l7yyh0zbf2405"))
957 (patches (search-patches "blast+-fix-makefile.patch"))
958 (modules '((guix build utils)))
959 (snippet
960 '(begin
961 ;; Remove bundled bzip2, zlib and pcre.
962 (delete-file-recursively "c++/src/util/compress/bzip2")
963 (delete-file-recursively "c++/src/util/compress/zlib")
964 (delete-file-recursively "c++/src/util/regexp")
965 (substitute* "c++/src/util/compress/Makefile.in"
966 (("bzip2 zlib api") "api"))
967 ;; Remove useless msbuild directory
968 (delete-file-recursively
969 "c++/src/build-system/project_tree_builder/msbuild")
970 #t))))
971 (build-system gnu-build-system)
972 (arguments
973 `(;; There are two(!) tests for this massive library, and both fail with
974 ;; "unparsable timing stats".
975 ;; ERR [127] -- [serial/datatool] datatool.sh (unparsable timing stats)
976 ;; ERR [127] -- [serial/datatool] datatool_xml.sh (unparsable timing stats)
977 #:tests? #f
978 #:out-of-source? #t
979 #:parallel-build? #f ; not supported
980 #:phases
981 (modify-phases %standard-phases
982 (add-before
983 'configure 'set-HOME
984 ;; $HOME needs to be set at some point during the configure phase
985 (lambda _ (setenv "HOME" "/tmp") #t))
986 (add-after
987 'unpack 'enter-dir
988 (lambda _ (chdir "c++") #t))
989 (add-after
990 'enter-dir 'fix-build-system
991 (lambda _
992 (define (which* cmd)
993 (cond ((string=? cmd "date")
994 ;; make call to "date" deterministic
995 "date -d @0")
996 ((which cmd)
997 => identity)
998 (else
999 (format (current-error-port)
1000 "WARNING: Unable to find absolute path for ~s~%"
1001 cmd)
1002 #f)))
1003
1004 ;; Rewrite hardcoded paths to various tools
1005 (substitute* (append '("src/build-system/configure.ac"
1006 "src/build-system/configure"
1007 "src/build-system/helpers/run_with_lock.c"
1008 "scripts/common/impl/if_diff.sh"
1009 "scripts/common/impl/run_with_lock.sh"
1010 "src/build-system/Makefile.configurables.real"
1011 "src/build-system/Makefile.in.top"
1012 "src/build-system/Makefile.meta.gmake=no"
1013 "src/build-system/Makefile.meta.in"
1014 "src/build-system/Makefile.meta_l"
1015 "src/build-system/Makefile.meta_p"
1016 "src/build-system/Makefile.meta_r"
1017 "src/build-system/Makefile.mk.in"
1018 "src/build-system/Makefile.requirements"
1019 "src/build-system/Makefile.rules_with_autodep.in")
1020 (find-files "scripts/common/check" "\\.sh$"))
1021 (("(/usr/bin/|/bin/)([a-z][-_.a-z]*)" all dir cmd)
1022 (or (which* cmd) all)))
1023
1024 (substitute* (find-files "src/build-system" "^config.*")
1025 (("LN_S=/bin/\\$LN_S") (string-append "LN_S=" (which "ln")))
1026 (("^PATH=.*") ""))
1027
1028 ;; rewrite "/var/tmp" in check script
1029 (substitute* "scripts/common/check/check_make_unix.sh"
1030 (("/var/tmp") "/tmp"))
1031
1032 ;; do not reset PATH
1033 (substitute* (find-files "scripts/common/impl/" "\\.sh$")
1034 (("^ *PATH=.*") "")
1035 (("action=/bin/") "action=")
1036 (("export PATH") ":"))
1037 #t))
1038 (replace
1039 'configure
1040 (lambda* (#:key inputs outputs #:allow-other-keys)
1041 (let ((out (assoc-ref outputs "out"))
1042 (lib (string-append (assoc-ref outputs "lib") "/lib"))
1043 (include (string-append (assoc-ref outputs "include")
1044 "/include/ncbi-tools++")))
1045 ;; The 'configure' script doesn't recognize things like
1046 ;; '--enable-fast-install'.
1047 (zero? (system* "./configure.orig"
1048 (string-append "--with-build-root=" (getcwd) "/build")
1049 (string-append "--prefix=" out)
1050 (string-append "--libdir=" lib)
1051 (string-append "--includedir=" include)
1052 (string-append "--with-bz2="
1053 (assoc-ref inputs "bzip2"))
1054 (string-append "--with-z="
1055 (assoc-ref inputs "zlib"))
1056 (string-append "--with-pcre="
1057 (assoc-ref inputs "pcre"))
1058 ;; Each library is built twice by default, once
1059 ;; with "-static" in its name, and again
1060 ;; without.
1061 "--without-static"
1062 "--with-dll"))))))))
1063 (outputs '("out" ; 21 MB
1064 "lib" ; 226 MB
1065 "include")) ; 33 MB
1066 (inputs
1067 `(("bzip2" ,bzip2)
1068 ("zlib" ,zlib)
1069 ("pcre" ,pcre)
1070 ("perl" ,perl)
1071 ("python" ,python-wrapper)))
1072 (native-inputs
1073 `(("cpio" ,cpio)))
1074 (home-page "http://blast.ncbi.nlm.nih.gov")
1075 (synopsis "Basic local alignment search tool")
1076 (description
1077 "BLAST is a popular method of performing a DNA or protein sequence
1078 similarity search, using heuristics to produce results quickly. It also
1079 calculates an “expect value” that estimates how many matches would have
1080 occurred at a given score by chance, which can aid a user in judging how much
1081 confidence to have in an alignment.")
1082 ;; Most of the sources are in the public domain, with the following
1083 ;; exceptions:
1084 ;; * Expat:
1085 ;; * ./c++/include/util/bitset/
1086 ;; * ./c++/src/html/ncbi_menu*.js
1087 ;; * Boost license:
1088 ;; * ./c++/include/util/impl/floating_point_comparison.hpp
1089 ;; * LGPL 2+:
1090 ;; * ./c++/include/dbapi/driver/odbc/unix_odbc/
1091 ;; * ASL 2.0:
1092 ;; * ./c++/src/corelib/teamcity_*
1093 (license (list license:public-domain
1094 license:expat
1095 license:boost1.0
1096 license:lgpl2.0+
1097 license:asl2.0))))
1098
1099 (define-public bless
1100 (package
1101 (name "bless")
1102 (version "1p02")
1103 (source (origin
1104 (method url-fetch)
1105 (uri (string-append "mirror://sourceforge/bless-ec/bless.v"
1106 version ".tgz"))
1107 (sha256
1108 (base32
1109 "0rm0gw2s18dqwzzpl3c2x1z05ni2v0xz5dmfk3d33j6g4cgrlrdd"))
1110 (modules '((guix build utils)))
1111 (snippet
1112 `(begin
1113 ;; Remove bundled boost, pigz, zlib, and .git directory
1114 ;; FIXME: also remove bundled sources for murmurhash3 and
1115 ;; kmc once packaged.
1116 (delete-file-recursively "boost")
1117 (delete-file-recursively "pigz")
1118 (delete-file-recursively "google-sparsehash")
1119 (delete-file-recursively "zlib")
1120 (delete-file-recursively ".git")
1121 #t))))
1122 (build-system gnu-build-system)
1123 (arguments
1124 '(#:tests? #f ;no "check" target
1125 #:make-flags
1126 (list (string-append "ZLIB="
1127 (assoc-ref %build-inputs "zlib")
1128 "/lib/libz.a")
1129 (string-append "LDFLAGS="
1130 (string-join '("-lboost_filesystem"
1131 "-lboost_system"
1132 "-lboost_iostreams"
1133 "-lz"
1134 "-fopenmp"
1135 "-std=c++11"))))
1136 #:phases
1137 (modify-phases %standard-phases
1138 (add-after 'unpack 'do-not-build-bundled-pigz
1139 (lambda* (#:key inputs outputs #:allow-other-keys)
1140 (substitute* "Makefile"
1141 (("cd pigz/pigz-2.3.3; make") ""))
1142 #t))
1143 (add-after 'unpack 'patch-paths-to-executables
1144 (lambda* (#:key inputs outputs #:allow-other-keys)
1145 (substitute* "parse_args.cpp"
1146 (("kmc_binary = .*")
1147 (string-append "kmc_binary = \""
1148 (assoc-ref outputs "out")
1149 "/bin/kmc\";"))
1150 (("pigz_binary = .*")
1151 (string-append "pigz_binary = \""
1152 (assoc-ref inputs "pigz")
1153 "/bin/pigz\";")))
1154 #t))
1155 (replace 'install
1156 (lambda* (#:key outputs #:allow-other-keys)
1157 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
1158 (for-each (lambda (file)
1159 (install-file file bin))
1160 '("bless" "kmc/bin/kmc"))
1161 #t)))
1162 (delete 'configure))))
1163 (native-inputs
1164 `(("perl" ,perl)))
1165 (inputs
1166 `(("openmpi" ,openmpi)
1167 ("boost" ,boost)
1168 ("sparsehash" ,sparsehash)
1169 ("pigz" ,pigz)
1170 ("zlib" ,zlib)))
1171 (supported-systems '("x86_64-linux"))
1172 (home-page "https://sourceforge.net/p/bless-ec/wiki/Home/")
1173 (synopsis "Bloom-filter-based error correction tool for NGS reads")
1174 (description
1175 "@dfn{Bloom-filter-based error correction solution for high-throughput
1176 sequencing reads} (BLESS) uses a single minimum-sized bloom filter is a
1177 correction tool for genomic reads produced by @dfn{Next-generation
1178 sequencing} (NGS). BLESS produces accurate correction results with much less
1179 memory compared with previous solutions and is also able to tolerate a higher
1180 false-positive rate. BLESS can extend reads like DNA assemblers to correct
1181 errors at the end of reads.")
1182 (license license:gpl3+)))
1183
1184 (define-public bowtie
1185 (package
1186 (name "bowtie")
1187 (version "2.3.2")
1188 (source (origin
1189 (method url-fetch)
1190 (uri (string-append "https://github.com/BenLangmead/bowtie2/archive/v"
1191 version ".tar.gz"))
1192 (file-name (string-append name "-" version ".tar.gz"))
1193 (sha256
1194 (base32
1195 "0hwa5r9qbglppb7sz5z79rlmmddr3n51n468jb3wh8rwjgn3yr90"))
1196 (modules '((guix build utils)))
1197 (snippet
1198 '(begin
1199 (substitute* "Makefile"
1200 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1201 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1202 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
1203 #t))))
1204 (build-system gnu-build-system)
1205 (inputs
1206 `(("perl" ,perl)
1207 ("perl-clone" ,perl-clone)
1208 ("perl-test-deep" ,perl-test-deep)
1209 ("perl-test-simple" ,perl-test-simple)
1210 ("python" ,python-2)
1211 ("tbb" ,tbb)
1212 ("zlib" ,zlib)))
1213 (arguments
1214 '(#:make-flags
1215 (list "allall"
1216 "WITH_TBB=1"
1217 (string-append "prefix=" (assoc-ref %outputs "out")))
1218 #:phases
1219 (modify-phases %standard-phases
1220 (delete 'configure)
1221 (replace 'check
1222 (lambda* (#:key outputs #:allow-other-keys)
1223 (zero? (system* "perl"
1224 "scripts/test/simple_tests.pl"
1225 "--bowtie2=./bowtie2"
1226 "--bowtie2-build=./bowtie2-build")))))))
1227 (home-page "http://bowtie-bio.sourceforge.net/bowtie2/index.shtml")
1228 (synopsis "Fast and sensitive nucleotide sequence read aligner")
1229 (description
1230 "Bowtie 2 is a fast and memory-efficient tool for aligning sequencing
1231 reads to long reference sequences. It is particularly good at aligning reads
1232 of about 50 up to 100s or 1,000s of characters, and particularly good at
1233 aligning to relatively long (e.g. mammalian) genomes. Bowtie 2 indexes the
1234 genome with an FM Index to keep its memory footprint small: for the human
1235 genome, its memory footprint is typically around 3.2 GB. Bowtie 2 supports
1236 gapped, local, and paired-end alignment modes.")
1237 (supported-systems '("x86_64-linux"))
1238 (license license:gpl3+)))
1239
1240 (define-public tophat
1241 (package
1242 (name "tophat")
1243 (version "2.1.0")
1244 (source (origin
1245 (method url-fetch)
1246 (uri (string-append
1247 "http://ccb.jhu.edu/software/tophat/downloads/tophat-"
1248 version ".tar.gz"))
1249 (sha256
1250 (base32
1251 "168zlzykq622zbgkh90a90f1bdgsxkscq2zxzbj8brq80hbjpyp7"))
1252 (patches (search-patches "tophat-build-with-later-seqan.patch"))
1253 (modules '((guix build utils)))
1254 (snippet
1255 '(begin
1256 ;; Remove bundled SeqAn and samtools
1257 (delete-file-recursively "src/SeqAn-1.3")
1258 (delete-file-recursively "src/samtools-0.1.18")
1259 #t))))
1260 (build-system gnu-build-system)
1261 (arguments
1262 '(#:parallel-build? #f ; not supported
1263 #:phases
1264 (modify-phases %standard-phases
1265 (add-after 'unpack 'use-system-samtools
1266 (lambda* (#:key inputs #:allow-other-keys)
1267 (substitute* "src/Makefile.in"
1268 (("(noinst_LIBRARIES = )\\$\\(SAMLIB\\)" _ prefix) prefix)
1269 (("\\$\\(SAMPROG\\): \\$\\(SAMLIB\\)") "")
1270 (("SAMPROG = samtools_0\\.1\\.18") "")
1271 (("\\$\\(samtools_0_1_18_SOURCES\\)") "")
1272 (("am__EXEEXT_1 = samtools_0\\.1\\.18\\$\\(EXEEXT\\)") ""))
1273 (substitute* '("src/common.cpp"
1274 "src/tophat.py")
1275 (("samtools_0.1.18") (which "samtools")))
1276 (substitute* '("src/common.h"
1277 "src/bam2fastx.cpp")
1278 (("#include \"bam.h\"") "#include <samtools/bam.h>")
1279 (("#include \"sam.h\"") "#include <samtools/sam.h>"))
1280 (substitute* '("src/bwt_map.h"
1281 "src/map2gtf.h"
1282 "src/align_status.h")
1283 (("#include <bam.h>") "#include <samtools/bam.h>")
1284 (("#include <sam.h>") "#include <samtools/sam.h>"))
1285 #t)))))
1286 (inputs
1287 `(("boost" ,boost)
1288 ("bowtie" ,bowtie)
1289 ("samtools" ,samtools-0.1)
1290 ("ncurses" ,ncurses)
1291 ("python" ,python-2)
1292 ("perl" ,perl)
1293 ("zlib" ,zlib)
1294 ("seqan" ,seqan)))
1295 (home-page "http://ccb.jhu.edu/software/tophat/index.shtml")
1296 (synopsis "Spliced read mapper for RNA-Seq data")
1297 (description
1298 "TopHat is a fast splice junction mapper for nucleotide sequence
1299 reads produced by the RNA-Seq method. It aligns RNA-Seq reads to
1300 mammalian-sized genomes using the ultra high-throughput short read
1301 aligner Bowtie, and then analyzes the mapping results to identify
1302 splice junctions between exons.")
1303 ;; TopHat is released under the Boost Software License, Version 1.0
1304 ;; See https://github.com/infphilo/tophat/issues/11#issuecomment-121589893
1305 (license license:boost1.0)))
1306
1307 (define-public bwa
1308 (package
1309 (name "bwa")
1310 (version "0.7.17")
1311 (source (origin
1312 (method url-fetch)
1313 (uri (string-append
1314 "https://github.com/lh3/bwa/releases/download/v"
1315 version "/bwa-" version ".tar.bz2"))
1316 (sha256
1317 (base32
1318 "1zfhv2zg9v1icdlq4p9ssc8k01mca5d1bd87w71py2swfi74s6yy"))))
1319 (build-system gnu-build-system)
1320 (arguments
1321 '(#:tests? #f ;no "check" target
1322 #:phases
1323 (modify-phases %standard-phases
1324 (replace 'install
1325 (lambda* (#:key outputs #:allow-other-keys)
1326 (let ((bin (string-append
1327 (assoc-ref outputs "out") "/bin"))
1328 (doc (string-append
1329 (assoc-ref outputs "out") "/share/doc/bwa"))
1330 (man (string-append
1331 (assoc-ref outputs "out") "/share/man/man1")))
1332 (install-file "bwa" bin)
1333 (install-file "README.md" doc)
1334 (install-file "bwa.1" man))
1335 #t))
1336 ;; no "configure" script
1337 (delete 'configure))))
1338 (inputs `(("zlib" ,zlib)))
1339 ;; Non-portable SSE instructions are used so building fails on platforms
1340 ;; other than x86_64.
1341 (supported-systems '("x86_64-linux"))
1342 (home-page "http://bio-bwa.sourceforge.net/")
1343 (synopsis "Burrows-Wheeler sequence aligner")
1344 (description
1345 "BWA is a software package for mapping low-divergent sequences against a
1346 large reference genome, such as the human genome. It consists of three
1347 algorithms: BWA-backtrack, BWA-SW and BWA-MEM. The first algorithm is
1348 designed for Illumina sequence reads up to 100bp, while the rest two for
1349 longer sequences ranged from 70bp to 1Mbp. BWA-MEM and BWA-SW share similar
1350 features such as long-read support and split alignment, but BWA-MEM, which is
1351 the latest, is generally recommended for high-quality queries as it is faster
1352 and more accurate. BWA-MEM also has better performance than BWA-backtrack for
1353 70-100bp Illumina reads.")
1354 (license license:gpl3+)))
1355
1356 (define-public bwa-pssm
1357 (package (inherit bwa)
1358 (name "bwa-pssm")
1359 (version "0.5.11")
1360 (source (origin
1361 (method url-fetch)
1362 (uri (string-append "https://github.com/pkerpedjiev/bwa-pssm/"
1363 "archive/" version ".tar.gz"))
1364 (file-name (string-append name "-" version ".tar.gz"))
1365 (sha256
1366 (base32
1367 "02p7mpbs4mlxmn84g2x4ghak638vbj4lqix2ipx5g84pz9bhdavg"))))
1368 (build-system gnu-build-system)
1369 (inputs
1370 `(("gdsl" ,gdsl)
1371 ("zlib" ,zlib)
1372 ("perl" ,perl)))
1373 (home-page "http://bwa-pssm.binf.ku.dk/")
1374 (synopsis "Burrows-Wheeler transform-based probabilistic short read mapper")
1375 (description
1376 "BWA-PSSM is a probabilistic short genomic sequence read aligner based on
1377 the use of @dfn{position specific scoring matrices} (PSSM). Like many of the
1378 existing aligners it is fast and sensitive. Unlike most other aligners,
1379 however, it is also adaptible in the sense that one can direct the alignment
1380 based on known biases within the data set. It is coded as a modification of
1381 the original BWA alignment program and shares the genome index structure as
1382 well as many of the command line options.")
1383 (license license:gpl3+)))
1384
1385 (define-public python2-bx-python
1386 (package
1387 (name "python2-bx-python")
1388 (version "0.7.3")
1389 (source (origin
1390 (method url-fetch)
1391 (uri (pypi-uri "bx-python" version))
1392 (sha256
1393 (base32
1394 "15z2w3bvnc0n4qmb9bd6d8ylc2h2nj883x2w9iixf4x3vki9b22i"))
1395 (modules '((guix build utils)))
1396 (snippet
1397 '(begin
1398 (substitute* "setup.py"
1399 ;; remove dependency on outdated "distribute" module
1400 (("^from distribute_setup import use_setuptools") "")
1401 (("^use_setuptools\\(\\)") ""))
1402 #t))))
1403 (build-system python-build-system)
1404 (arguments
1405 `(#:tests? #f ;tests fail because test data are not included
1406 #:python ,python-2))
1407 (inputs
1408 `(("python-numpy" ,python2-numpy)
1409 ("zlib" ,zlib)))
1410 (native-inputs
1411 `(("python-nose" ,python2-nose)))
1412 (home-page "http://bitbucket.org/james_taylor/bx-python/")
1413 (synopsis "Tools for manipulating biological data")
1414 (description
1415 "bx-python provides tools for manipulating biological data, particularly
1416 multiple sequence alignments.")
1417 (license license:expat)))
1418
1419 (define-public python-pysam
1420 (package
1421 (name "python-pysam")
1422 (version "0.13.0")
1423 (source (origin
1424 (method url-fetch)
1425 ;; Test data is missing on PyPi.
1426 (uri (string-append
1427 "https://github.com/pysam-developers/pysam/archive/v"
1428 version ".tar.gz"))
1429 (file-name (string-append name "-" version ".tar.gz"))
1430 (sha256
1431 (base32
1432 "0dzap2axin9cbbl0d825w294bpn00zagfm1sigamm4v2pm5bj9lp"))
1433 (modules '((guix build utils)))
1434 (snippet '(begin
1435 ;; Drop bundled htslib. TODO: Also remove samtools
1436 ;; and bcftools.
1437 (delete-file-recursively "htslib")
1438 #t))))
1439 (build-system python-build-system)
1440 (arguments
1441 `(#:modules ((ice-9 ftw)
1442 (srfi srfi-26)
1443 (guix build python-build-system)
1444 (guix build utils))
1445 #:phases
1446 (modify-phases %standard-phases
1447 (add-before 'build 'set-flags
1448 (lambda* (#:key inputs #:allow-other-keys)
1449 (setenv "HTSLIB_MODE" "external")
1450 (setenv "HTSLIB_LIBRARY_DIR"
1451 (string-append (assoc-ref inputs "htslib") "/lib"))
1452 (setenv "HTSLIB_INCLUDE_DIR"
1453 (string-append (assoc-ref inputs "htslib") "/include"))
1454 (setenv "LDFLAGS" "-lncurses")
1455 (setenv "CFLAGS" "-D_CURSES_LIB=1")
1456 #t))
1457 (replace 'check
1458 (lambda* (#:key inputs outputs #:allow-other-keys)
1459 ;; Add first subdirectory of "build" directory to PYTHONPATH.
1460 (setenv "PYTHONPATH"
1461 (string-append
1462 (getenv "PYTHONPATH")
1463 ":" (getcwd) "/build/"
1464 (car (scandir "build"
1465 (negate (cut string-prefix? "." <>))))))
1466 ;; Step out of source dir so python does not import from CWD.
1467 (with-directory-excursion "tests"
1468 (setenv "HOME" "/tmp")
1469 (and (zero? (system* "make" "-C" "pysam_data"))
1470 (zero? (system* "make" "-C" "cbcf_data"))
1471 ;; Running nosetests without explicitly asking for a
1472 ;; single process leads to a crash. Running with multiple
1473 ;; processes fails because the tests are not designed to
1474 ;; run in parallel.
1475
1476 ;; FIXME: tests keep timing out on some systems.
1477 ;; (zero? (system* "nosetests" "-v"
1478 ;; "--processes" "1"))
1479 )))))))
1480 (propagated-inputs
1481 `(("htslib" ,htslib))) ; Included from installed header files.
1482 (inputs
1483 `(("ncurses" ,ncurses)
1484 ("zlib" ,zlib)))
1485 (native-inputs
1486 `(("python-cython" ,python-cython)
1487 ;; Dependencies below are are for tests only.
1488 ("samtools" ,samtools)
1489 ("bcftools" ,bcftools)
1490 ("python-nose" ,python-nose)))
1491 (home-page "https://github.com/pysam-developers/pysam")
1492 (synopsis "Python bindings to the SAMtools C API")
1493 (description
1494 "Pysam is a Python module for reading and manipulating files in the
1495 SAM/BAM format. Pysam is a lightweight wrapper of the SAMtools C API. It
1496 also includes an interface for tabix.")
1497 (license license:expat)))
1498
1499 (define-public python2-pysam
1500 (package-with-python2 python-pysam))
1501
1502 (define-public python-twobitreader
1503 (package
1504 (name "python-twobitreader")
1505 (version "3.1.4")
1506 (source (origin
1507 (method url-fetch)
1508 (uri (pypi-uri "twobitreader" version))
1509 (sha256
1510 (base32
1511 "1q8wnj2kga9nz1lwc4w7qv52smfm536hp6mc8w6s53lhyj0mpi22"))))
1512 (build-system python-build-system)
1513 (arguments
1514 '(;; Tests are not distributed in the PyPi release.
1515 ;; TODO Try building from the Git repo or asking the upstream maintainer
1516 ;; to distribute the tests on PyPi.
1517 #:tests? #f))
1518 (native-inputs
1519 `(("python-sphinx" ,python-sphinx)))
1520 (home-page "https://github.com/benjschiller/twobitreader")
1521 (synopsis "Python library for reading .2bit files")
1522 (description
1523 "twobitreader is a Python library for reading .2bit files as used by the
1524 UCSC genome browser.")
1525 (license license:artistic2.0)))
1526
1527 (define-public python2-twobitreader
1528 (package-with-python2 python-twobitreader))
1529
1530 (define-public python-plastid
1531 (package
1532 (name "python-plastid")
1533 (version "0.4.8")
1534 (source (origin
1535 (method url-fetch)
1536 (uri (pypi-uri "plastid" version))
1537 (sha256
1538 (base32
1539 "0l24dd3q66if8yj042m4s0g95n6acn7im1imqd3p6h8ns43kxhj8"))))
1540 (build-system python-build-system)
1541 (arguments
1542 ;; Some test files are not included.
1543 `(#:tests? #f))
1544 (propagated-inputs
1545 `(("python-numpy" ,python-numpy)
1546 ("python-scipy" ,python-scipy)
1547 ("python-pandas" ,python-pandas)
1548 ("python-pysam" ,python-pysam)
1549 ("python-matplotlib" ,python-matplotlib)
1550 ("python-biopython" ,python-biopython)
1551 ("python-twobitreader" ,python-twobitreader)
1552 ("python-termcolor" ,python-termcolor)))
1553 (native-inputs
1554 `(("python-cython" ,python-cython)
1555 ("python-nose" ,python-nose)))
1556 (home-page "https://github.com/joshuagryphon/plastid")
1557 (synopsis "Python library for genomic analysis")
1558 (description
1559 "plastid is a Python library for genomic analysis – in particular,
1560 high-throughput sequencing data – with an emphasis on simplicity.")
1561 (license license:bsd-3)))
1562
1563 (define-public python2-plastid
1564 (package-with-python2 python-plastid))
1565
1566 (define-public cd-hit
1567 (package
1568 (name "cd-hit")
1569 (version "4.6.8")
1570 (source (origin
1571 (method url-fetch)
1572 (uri (string-append "https://github.com/weizhongli/cdhit"
1573 "/releases/download/V" version
1574 "/cd-hit-v" version
1575 "-2017-0621-source.tar.gz"))
1576 (sha256
1577 (base32
1578 "1b4mwm2520ixjbw57sil20f9iixzw4bkdqqwgg1fc3pzm6rz4zmn"))))
1579 (build-system gnu-build-system)
1580 (arguments
1581 `(#:tests? #f ; there are no tests
1582 #:make-flags
1583 ;; Executables are copied directly to the PREFIX.
1584 (list (string-append "PREFIX=" (assoc-ref %outputs "out") "/bin"))
1585 #:phases
1586 (modify-phases %standard-phases
1587 ;; No "configure" script
1588 (delete 'configure)
1589 ;; Remove sources of non-determinism
1590 (add-after 'unpack 'be-timeless
1591 (lambda _
1592 (substitute* "cdhit-utility.c++"
1593 ((" \\(built on \" __DATE__ \"\\)") ""))
1594 (substitute* "cdhit-common.c++"
1595 (("__DATE__") "\"0\"")
1596 (("\", %s, \" __TIME__ \"\\\\n\", date") ""))
1597 #t))
1598 ;; The "install" target does not create the target directory.
1599 (add-before 'install 'create-target-dir
1600 (lambda* (#:key outputs #:allow-other-keys)
1601 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
1602 #t)))))
1603 (inputs
1604 `(("perl" ,perl)))
1605 (home-page "http://weizhongli-lab.org/cd-hit/")
1606 (synopsis "Cluster and compare protein or nucleotide sequences")
1607 (description
1608 "CD-HIT is a program for clustering and comparing protein or nucleotide
1609 sequences. CD-HIT is designed to be fast and handle extremely large
1610 databases.")
1611 ;; The manual says: "It can be copied under the GNU General Public License
1612 ;; version 2 (GPLv2)."
1613 (license license:gpl2)))
1614
1615 (define-public clipper
1616 (package
1617 (name "clipper")
1618 (version "1.1")
1619 (source (origin
1620 (method url-fetch)
1621 (uri (string-append
1622 "https://github.com/YeoLab/clipper/archive/"
1623 version ".tar.gz"))
1624 (file-name (string-append name "-" version ".tar.gz"))
1625 (sha256
1626 (base32
1627 "0pflmsvhbf8izbgwhbhj1i7349sw1f55qpqj8ljmapp16hb0p0qi"))
1628 (modules '((guix build utils)))
1629 (snippet
1630 '(begin
1631 ;; remove unnecessary setup dependency
1632 (substitute* "setup.py"
1633 (("setup_requires = .*") ""))
1634 (for-each delete-file
1635 '("clipper/src/peaks.so"
1636 "clipper/src/readsToWiggle.so"))
1637 (delete-file-recursively "dist/")
1638 #t))))
1639 (build-system python-build-system)
1640 (arguments `(#:python ,python-2)) ; only Python 2 is supported
1641 (inputs
1642 `(("htseq" ,python2-htseq)
1643 ("python-pybedtools" ,python2-pybedtools)
1644 ("python-cython" ,python2-cython)
1645 ("python-scikit-learn" ,python2-scikit-learn)
1646 ("python-matplotlib" ,python2-matplotlib)
1647 ("python-pandas" ,python2-pandas)
1648 ("python-pysam" ,python2-pysam)
1649 ("python-numpy" ,python2-numpy)
1650 ("python-scipy" ,python2-scipy)))
1651 (native-inputs
1652 `(("python-mock" ,python2-mock) ; for tests
1653 ("python-nose" ,python2-nose) ; for tests
1654 ("python-pytz" ,python2-pytz))) ; for tests
1655 (home-page "https://github.com/YeoLab/clipper")
1656 (synopsis "CLIP peak enrichment recognition")
1657 (description
1658 "CLIPper is a tool to define peaks in CLIP-seq datasets.")
1659 (license license:gpl2)))
1660
1661 (define-public codingquarry
1662 (package
1663 (name "codingquarry")
1664 (version "2.0")
1665 (source (origin
1666 (method url-fetch)
1667 (uri (string-append
1668 "mirror://sourceforge/codingquarry/CodingQuarry_v"
1669 version ".tar.gz"))
1670 (sha256
1671 (base32
1672 "0115hkjflsnfzn36xppwf9h9avfxlavr43djqmshkkzbgjzsz60i"))))
1673 (build-system gnu-build-system)
1674 (arguments
1675 '(#:tests? #f ; no "check" target
1676 #:phases
1677 (modify-phases %standard-phases
1678 (delete 'configure)
1679 (replace 'install
1680 (lambda* (#:key outputs #:allow-other-keys)
1681 (let* ((out (assoc-ref outputs "out"))
1682 (bin (string-append out "/bin"))
1683 (doc (string-append out "/share/doc/codingquarry")))
1684 (install-file "INSTRUCTIONS.pdf" doc)
1685 (copy-recursively "QuarryFiles"
1686 (string-append out "/QuarryFiles"))
1687 (install-file "CodingQuarry" bin)
1688 (install-file "CufflinksGTF_to_CodingQuarryGFF3.py" bin)))))))
1689 (inputs `(("openmpi" ,openmpi)))
1690 (native-search-paths
1691 (list (search-path-specification
1692 (variable "QUARRY_PATH")
1693 (files '("QuarryFiles")))))
1694 (native-inputs `(("python" ,python-2))) ; Only Python 2 is supported
1695 (synopsis "Fungal gene predictor")
1696 (description "CodingQuarry is a highly accurate, self-training GHMM fungal
1697 gene predictor designed to work with assembled, aligned RNA-seq transcripts.")
1698 (home-page "https://sourceforge.net/projects/codingquarry/")
1699 (license license:gpl3+)))
1700
1701 (define-public couger
1702 (package
1703 (name "couger")
1704 (version "1.8.2")
1705 (source (origin
1706 (method url-fetch)
1707 (uri (string-append
1708 "http://couger.oit.duke.edu/static/assets/COUGER"
1709 version ".zip"))
1710 (sha256
1711 (base32
1712 "04p2b14nmhzxw5h72mpzdhalv21bx4w9b87z0wpw0xzxpysyncmq"))))
1713 (build-system gnu-build-system)
1714 (arguments
1715 `(#:tests? #f
1716 #:phases
1717 (modify-phases %standard-phases
1718 (delete 'configure)
1719 (delete 'build)
1720 (replace
1721 'install
1722 (lambda* (#:key outputs #:allow-other-keys)
1723 (let* ((out (assoc-ref outputs "out"))
1724 (bin (string-append out "/bin")))
1725 (copy-recursively "src" (string-append out "/src"))
1726 (mkdir bin)
1727 ;; Add "src" directory to module lookup path.
1728 (substitute* "couger"
1729 (("from argparse")
1730 (string-append "import sys\nsys.path.append(\""
1731 out "\")\nfrom argparse")))
1732 (install-file "couger" bin))
1733 #t))
1734 (add-after
1735 'install 'wrap-program
1736 (lambda* (#:key inputs outputs #:allow-other-keys)
1737 ;; Make sure 'couger' runs with the correct PYTHONPATH.
1738 (let* ((out (assoc-ref outputs "out"))
1739 (path (getenv "PYTHONPATH")))
1740 (wrap-program (string-append out "/bin/couger")
1741 `("PYTHONPATH" ":" prefix (,path))))
1742 #t)))))
1743 (inputs
1744 `(("python" ,python-2)
1745 ("python2-pillow" ,python2-pillow)
1746 ("python2-numpy" ,python2-numpy)
1747 ("python2-scipy" ,python2-scipy)
1748 ("python2-matplotlib" ,python2-matplotlib)))
1749 (propagated-inputs
1750 `(("r-minimal" ,r-minimal)
1751 ("libsvm" ,libsvm)
1752 ("randomjungle" ,randomjungle)))
1753 (native-inputs
1754 `(("unzip" ,unzip)))
1755 (home-page "http://couger.oit.duke.edu")
1756 (synopsis "Identify co-factors in sets of genomic regions")
1757 (description
1758 "COUGER can be applied to any two sets of genomic regions bound by
1759 paralogous TFs (e.g., regions derived from ChIP-seq experiments) to identify
1760 putative co-factors that provide specificity to each TF. The framework
1761 determines the genomic targets uniquely-bound by each TF, and identifies a
1762 small set of co-factors that best explain the in vivo binding differences
1763 between the two TFs.
1764
1765 COUGER uses classification algorithms (support vector machines and random
1766 forests) with features that reflect the DNA binding specificities of putative
1767 co-factors. The features are generated either from high-throughput TF-DNA
1768 binding data (from protein binding microarray experiments), or from large
1769 collections of DNA motifs.")
1770 (license license:gpl3+)))
1771
1772 (define-public clustal-omega
1773 (package
1774 (name "clustal-omega")
1775 (version "1.2.4")
1776 (source (origin
1777 (method url-fetch)
1778 (uri (string-append "http://www.clustal.org/omega/clustal-omega-"
1779 version ".tar.gz"))
1780 (sha256
1781 (base32
1782 "1vm30mzncwdv881vrcwg11vzvrsmwy4wg80j5i0lcfk6dlld50w6"))))
1783 (build-system gnu-build-system)
1784 (inputs
1785 `(("argtable" ,argtable)))
1786 (home-page "http://www.clustal.org/omega/")
1787 (synopsis "Multiple sequence aligner for protein and DNA/RNA")
1788 (description
1789 "Clustal-Omega is a general purpose multiple sequence alignment (MSA)
1790 program for protein and DNA/RNA. It produces high quality MSAs and is capable
1791 of handling data-sets of hundreds of thousands of sequences in reasonable
1792 time.")
1793 (license license:gpl2+)))
1794
1795 (define-public crossmap
1796 (package
1797 (name "crossmap")
1798 (version "0.2.1")
1799 (source (origin
1800 (method url-fetch)
1801 (uri (string-append "mirror://sourceforge/crossmap/CrossMap-"
1802 version ".tar.gz"))
1803 (sha256
1804 (base32
1805 "07y179f63d7qnzdvkqcziwk9bs3k4zhp81q392fp1hwszjdvy22f"))
1806 ;; This patch has been sent upstream already and is available
1807 ;; for download from Sourceforge, but it has not been merged.
1808 (patches (search-patches "crossmap-allow-system-pysam.patch"))
1809 (modules '((guix build utils)))
1810 (snippet '(begin
1811 ;; remove bundled copy of pysam
1812 (delete-file-recursively "lib/pysam")
1813 #t))))
1814 (build-system python-build-system)
1815 (arguments
1816 `(#:python ,python-2
1817 #:phases
1818 (modify-phases %standard-phases
1819 (add-after 'unpack 'set-env
1820 (lambda _ (setenv "CROSSMAP_USE_SYSTEM_PYSAM" "1") #t)))))
1821 (inputs
1822 `(("python-numpy" ,python2-numpy)
1823 ("python-pysam" ,python2-pysam)
1824 ("zlib" ,zlib)))
1825 (native-inputs
1826 `(("python-cython" ,python2-cython)
1827 ("python-nose" ,python2-nose)))
1828 (home-page "http://crossmap.sourceforge.net/")
1829 (synopsis "Convert genome coordinates between assemblies")
1830 (description
1831 "CrossMap is a program for conversion of genome coordinates or annotation
1832 files between different genome assemblies. It supports most commonly used
1833 file formats including SAM/BAM, Wiggle/BigWig, BED, GFF/GTF, VCF.")
1834 (license license:gpl2+)))
1835
1836 (define-public cutadapt
1837 (package
1838 (name "cutadapt")
1839 (version "1.16")
1840 (source (origin
1841 (method git-fetch)
1842 (uri (git-reference
1843 (url "https://github.com/marcelm/cutadapt.git")
1844 (commit (string-append "v" version))))
1845 (file-name (string-append name "-" version "-checkout"))
1846 (sha256
1847 (base32
1848 "09pr02067jiks19nc0aby4xp70hhgvb554i2y1c04rv1m401w7q8"))))
1849 (build-system python-build-system)
1850 (inputs
1851 `(("python-xopen" ,python-xopen)))
1852 (native-inputs
1853 `(("python-cython" ,python-cython)
1854 ("python-pytest" ,python-pytest)))
1855 (home-page "https://cutadapt.readthedocs.io/en/stable/")
1856 (synopsis "Remove adapter sequences from nucleotide sequencing reads")
1857 (description
1858 "Cutadapt finds and removes adapter sequences, primers, poly-A tails and
1859 other types of unwanted sequence from high-throughput sequencing reads.")
1860 (license license:expat)))
1861
1862 (define-public libbigwig
1863 (package
1864 (name "libbigwig")
1865 (version "0.1.4")
1866 (source (origin
1867 (method url-fetch)
1868 (uri (string-append "https://github.com/dpryan79/libBigWig/"
1869 "archive/" version ".tar.gz"))
1870 (file-name (string-append name "-" version ".tar.gz"))
1871 (sha256
1872 (base32
1873 "098rjh35pi4a9q83n8wiwvyzykjqj6l8q189p1xgfw4ghywdlvw1"))))
1874 (build-system gnu-build-system)
1875 (arguments
1876 `(#:test-target "test"
1877 #:make-flags
1878 (list "CC=gcc"
1879 (string-append "prefix=" (assoc-ref %outputs "out")))
1880 #:phases
1881 (modify-phases %standard-phases
1882 (delete 'configure)
1883 (add-before 'check 'disable-curl-test
1884 (lambda _
1885 (substitute* "Makefile"
1886 (("./test/testRemote.*") ""))
1887 #t))
1888 ;; This has been fixed with the upstream commit 4ff6959cd8a0, but
1889 ;; there has not yet been a release containing this change.
1890 (add-before 'install 'create-target-dirs
1891 (lambda* (#:key outputs #:allow-other-keys)
1892 (let ((out (assoc-ref outputs "out")))
1893 (mkdir-p (string-append out "/lib"))
1894 (mkdir-p (string-append out "/include"))
1895 #t))))))
1896 (inputs
1897 `(("zlib" ,zlib)
1898 ("curl" ,curl)))
1899 (native-inputs
1900 `(("doxygen" ,doxygen)))
1901 (home-page "https://github.com/dpryan79/libBigWig")
1902 (synopsis "C library for handling bigWig files")
1903 (description
1904 "This package provides a C library for parsing local and remote BigWig
1905 files.")
1906 (license license:expat)))
1907
1908 (define-public python-pybigwig
1909 (package
1910 (name "python-pybigwig")
1911 (version "0.2.5")
1912 (source (origin
1913 (method url-fetch)
1914 (uri (pypi-uri "pyBigWig" version))
1915 (sha256
1916 (base32
1917 "0yrpdxg3y0sny25x4w22lv1k47jzccqjmg7j4bp0hywklvp0hg7d"))
1918 (modules '((guix build utils)))
1919 (snippet
1920 '(begin
1921 ;; Delete bundled libBigWig sources
1922 (delete-file-recursively "libBigWig")
1923 #t))))
1924 (build-system python-build-system)
1925 (arguments
1926 `(#:phases
1927 (modify-phases %standard-phases
1928 (add-after 'unpack 'link-with-libBigWig
1929 (lambda* (#:key inputs #:allow-other-keys)
1930 (substitute* "setup.py"
1931 (("libs=\\[") "libs=[\"BigWig\", "))
1932 #t)))))
1933 (inputs
1934 `(("libbigwig" ,libbigwig)
1935 ("zlib" ,zlib)
1936 ("curl" ,curl)))
1937 (home-page "https://github.com/dpryan79/pyBigWig")
1938 (synopsis "Access bigWig files in Python using libBigWig")
1939 (description
1940 "This package provides Python bindings to the libBigWig library for
1941 accessing bigWig files.")
1942 (license license:expat)))
1943
1944 (define-public python2-pybigwig
1945 (package-with-python2 python-pybigwig))
1946
1947 (define-public python-dendropy
1948 (package
1949 (name "python-dendropy")
1950 (version "4.2.0")
1951 (source
1952 (origin
1953 (method url-fetch)
1954 (uri (pypi-uri "DendroPy" version))
1955 (sha256
1956 (base32
1957 "15c7s3d5gf19ljsxvq5advaa752wfi7pwrdjyhzmg85hccyvp47p"))
1958 (patches (search-patches "python-dendropy-fix-tests.patch"))))
1959 (build-system python-build-system)
1960 (home-page "http://packages.python.org/DendroPy/")
1961 (synopsis "Library for phylogenetics and phylogenetic computing")
1962 (description
1963 "DendroPy is a library for phylogenetics and phylogenetic computing: reading,
1964 writing, simulation, processing and manipulation of phylogenetic
1965 trees (phylogenies) and characters.")
1966 (license license:bsd-3)
1967 (properties `((python2-variant . ,(delay python2-dendropy))))))
1968
1969 (define-public python2-dendropy
1970 (let ((base (package-with-python2 (strip-python2-variant python-dendropy))))
1971 (package
1972 (inherit base)
1973 (arguments
1974 `(#:python ,python-2
1975 #:phases
1976 (modify-phases %standard-phases
1977 (replace 'check
1978 ;; There is currently a test failure that only happens on some
1979 ;; systems, and only using "setup.py test"
1980 (lambda _ (zero? (system* "nosetests")))))))
1981 (native-inputs `(("python2-nose" ,python2-nose)
1982 ,@(package-native-inputs base))))))
1983
1984 (define-public python-py2bit
1985 (package
1986 (name "python-py2bit")
1987 (version "0.2.1")
1988 (source
1989 (origin
1990 (method url-fetch)
1991 (uri (pypi-uri "py2bit" version))
1992 (sha256
1993 (base32
1994 "1cdf4qlmgwsh1f4k0wdv2sr8x9qn4366p0k3614vbd0fpqiarxrl"))))
1995 (build-system python-build-system)
1996 (home-page "https://github.com/dpryan79/py2bit")
1997 (synopsis "Access 2bit files using lib2bit")
1998 (description
1999 "This package provides Python bindings for lib2bit to access 2bit files
2000 with Python.")
2001 (license license:expat)))
2002
2003 (define-public deeptools
2004 (package
2005 (name "deeptools")
2006 (version "2.5.1")
2007 (source (origin
2008 (method url-fetch)
2009 (uri (string-append "https://github.com/deeptools/deepTools/"
2010 "archive/" version ".tar.gz"))
2011 (file-name (string-append name "-" version ".tar.gz"))
2012 (sha256
2013 (base32
2014 "1q8i12l2gvk4n2s8lhyzwhh9g4qbc8lrk5l7maz00yvd5g6z5540"))))
2015 (build-system python-build-system)
2016 (inputs
2017 `(("python-scipy" ,python-scipy)
2018 ("python-numpy" ,python-numpy)
2019 ("python-numpydoc" ,python-numpydoc)
2020 ("python-matplotlib" ,python-matplotlib)
2021 ("python-pysam" ,python-pysam)
2022 ("python-py2bit" ,python-py2bit)
2023 ("python-pybigwig" ,python-pybigwig)))
2024 (native-inputs
2025 `(("python-mock" ,python-mock) ;for tests
2026 ("python-nose" ,python-nose) ;for tests
2027 ("python-pytz" ,python-pytz))) ;for tests
2028 (home-page "https://github.com/deeptools/deepTools")
2029 (synopsis "Tools for normalizing and visualizing deep-sequencing data")
2030 (description
2031 "DeepTools addresses the challenge of handling the large amounts of data
2032 that are now routinely generated from DNA sequencing centers. To do so,
2033 deepTools contains useful modules to process the mapped reads data to create
2034 coverage files in standard bedGraph and bigWig file formats. By doing so,
2035 deepTools allows the creation of normalized coverage files or the comparison
2036 between two files (for example, treatment and control). Finally, using such
2037 normalized and standardized files, multiple visualizations can be created to
2038 identify enrichments with functional annotations of the genome.")
2039 (license license:gpl3+)))
2040
2041 (define-public delly
2042 (package
2043 (name "delly")
2044 (version "0.7.7")
2045 (source (origin
2046 (method url-fetch)
2047 (uri (string-append
2048 "https://github.com/tobiasrausch/delly/archive/v"
2049 version ".tar.gz"))
2050 (file-name (string-append name "-" version ".tar.gz"))
2051 (sha256
2052 (base32 "0dkwy3pyxmi6dhh1lpsr3698ri5sslw9qz67hfys0bz8dgrqwabj"))
2053 (patches (search-patches "delly-use-system-libraries.patch"))))
2054 (build-system gnu-build-system)
2055 (arguments
2056 `(#:tests? #f ; There are no tests to run.
2057 #:make-flags '("PARALLEL=1") ; Allow parallel execution at run-time.
2058 #:phases
2059 (modify-phases %standard-phases
2060 (delete 'configure) ; There is no configure phase.
2061 (replace 'install
2062 (lambda _
2063 (let ((bin (string-append (assoc-ref %outputs "out") "/bin"))
2064 (templates (string-append (assoc-ref %outputs "out")
2065 "/share/delly/templates")))
2066 (mkdir-p bin)
2067 (mkdir-p templates)
2068 (copy-recursively "excludeTemplates" templates)
2069 (install-file "src/cov" bin)
2070 (install-file "src/delly" bin)
2071 (install-file "src/dpe" bin)))))))
2072 (native-inputs
2073 `(("python" ,python-2)))
2074 (inputs
2075 `(("boost" ,boost)
2076 ("htslib" ,htslib)
2077 ("zlib" ,zlib)
2078 ("bzip2" ,bzip2)))
2079 (home-page "https://github.com/tobiasrausch/delly")
2080 (synopsis "Integrated structural variant prediction method")
2081 (description "Delly is an integrated structural variant prediction method
2082 that can discover and genotype deletions, tandem duplications, inversions and
2083 translocations at single-nucleotide resolution in short-read massively parallel
2084 sequencing data. It uses paired-ends and split-reads to sensitively and
2085 accurately delineate genomic rearrangements throughout the genome.")
2086 (license license:gpl3+)))
2087
2088 (define-public diamond
2089 (package
2090 (name "diamond")
2091 (version "0.9.22")
2092 (source (origin
2093 (method url-fetch)
2094 (uri (string-append
2095 "https://github.com/bbuchfink/diamond/archive/v"
2096 version ".tar.gz"))
2097 (file-name (string-append name "-" version ".tar.gz"))
2098 (sha256
2099 (base32
2100 "0adp87r9ak63frdrdmrdfhsn6g0jnnyq1lr2wibvqbxcl37iir9m"))))
2101 (build-system cmake-build-system)
2102 (arguments
2103 '(#:tests? #f ; no "check" target
2104 #:phases
2105 (modify-phases %standard-phases
2106 (add-after 'unpack 'remove-native-compilation
2107 (lambda _
2108 (substitute* "CMakeLists.txt" (("-march=native") ""))
2109 #t)))))
2110 (inputs
2111 `(("zlib" ,zlib)))
2112 (home-page "https://github.com/bbuchfink/diamond")
2113 (synopsis "Accelerated BLAST compatible local sequence aligner")
2114 (description
2115 "DIAMOND is a BLAST-compatible local aligner for mapping protein and
2116 translated DNA query sequences against a protein reference database (BLASTP
2117 and BLASTX alignment mode). The speedup over BLAST is up to 20,000 on short
2118 reads at a typical sensitivity of 90-99% relative to BLAST depending on the
2119 data and settings.")
2120 (license license:agpl3+)))
2121
2122 (define-public discrover
2123 (package
2124 (name "discrover")
2125 (version "1.6.0")
2126 (source
2127 (origin
2128 (method url-fetch)
2129 (uri (string-append "https://github.com/maaskola/discrover/archive/"
2130 version ".tar.gz"))
2131 (file-name (string-append name "-" version ".tar.gz"))
2132 (sha256
2133 (base32
2134 "0rah9ja4m0rl5mldd6vag9rwrivw1zrqxssfq8qx64m7961fp68k"))))
2135 (build-system cmake-build-system)
2136 (arguments
2137 `(#:tests? #f ; there are no tests
2138 #:phases
2139 (modify-phases %standard-phases
2140 (add-after 'unpack 'add-missing-includes
2141 (lambda _
2142 (substitute* "src/executioninformation.hpp"
2143 (("#define EXECUTIONINFORMATION_HPP" line)
2144 (string-append line "\n#include <random>")))
2145 (substitute* "src/plasma/fasta.hpp"
2146 (("#define FASTA_HPP" line)
2147 (string-append line "\n#include <random>")))
2148 #t)))))
2149 (inputs
2150 `(("boost" ,boost)
2151 ("cairo" ,cairo)))
2152 (native-inputs
2153 `(("texlive" ,texlive)
2154 ("imagemagick" ,imagemagick)))
2155 (home-page "http://dorina.mdc-berlin.de/public/rajewsky/discrover/")
2156 (synopsis "Discover discriminative nucleotide sequence motifs")
2157 (description "Discrover is a motif discovery method to find binding sites
2158 of nucleic acid binding proteins.")
2159 (license license:gpl3+)))
2160
2161 (define-public eigensoft
2162 (let ((revision "1")
2163 (commit "b14d1e202e21e532536ff8004f0419cd5e259dc7"))
2164 (package
2165 (name "eigensoft")
2166 (version (string-append "6.1.2-"
2167 revision "."
2168 (string-take commit 9)))
2169 (source
2170 (origin
2171 (method git-fetch)
2172 (uri (git-reference
2173 (url "https://github.com/DReichLab/EIG.git")
2174 (commit commit)))
2175 (file-name (string-append "eigensoft-" commit "-checkout"))
2176 (sha256
2177 (base32
2178 "0f5m6k2j5c16xc3xbywcs989xyc26ncy1zfzp9j9n55n9r4xcaiq"))
2179 (modules '((guix build utils)))
2180 ;; Remove pre-built binaries.
2181 (snippet '(begin
2182 (delete-file-recursively "bin")
2183 (mkdir "bin")
2184 #t))))
2185 (build-system gnu-build-system)
2186 (arguments
2187 `(#:tests? #f ; There are no tests.
2188 #:make-flags '("CC=gcc")
2189 #:phases
2190 (modify-phases %standard-phases
2191 ;; There is no configure phase, but the Makefile is in a
2192 ;; sub-directory.
2193 (replace 'configure
2194 (lambda _
2195 (chdir "src")
2196 ;; The link flags are incomplete.
2197 (substitute* "Makefile"
2198 (("-lgsl") "-lgsl -lm -llapack -llapacke -lpthread"))
2199 #t))
2200 ;; The provided install target only copies executables to
2201 ;; the "bin" directory in the build root.
2202 (add-after 'install 'actually-install
2203 (lambda* (#:key outputs #:allow-other-keys)
2204 (let* ((out (assoc-ref outputs "out"))
2205 (bin (string-append out "/bin")))
2206 (for-each (lambda (file)
2207 (install-file file bin))
2208 (find-files "../bin" ".*"))
2209 #t))))))
2210 (inputs
2211 `(("gsl" ,gsl)
2212 ("lapack" ,lapack)
2213 ("openblas" ,openblas)
2214 ("perl" ,perl)
2215 ("gfortran" ,gfortran "lib")))
2216 (home-page "https://github.com/DReichLab/EIG")
2217 (synopsis "Tools for population genetics")
2218 (description "The EIGENSOFT package provides tools for population
2219 genetics and stratification correction. EIGENSOFT implements methods commonly
2220 used in population genetics analyses such as PCA, computation of Tracy-Widom
2221 statistics, and finding related individuals in structured populations. It
2222 comes with a built-in plotting script and supports multiple file formats and
2223 quantitative phenotypes.")
2224 ;; The license of the eigensoft tools is Expat, but since it's
2225 ;; linking with the GNU Scientific Library (GSL) the effective
2226 ;; license is the GPL.
2227 (license license:gpl3+))))
2228
2229 (define-public edirect
2230 (package
2231 (name "edirect")
2232 (version "4.10")
2233 (source (origin
2234 (method url-fetch)
2235 (uri (string-append "ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/"
2236 "versions/2016-05-03/edirect.tar.gz"))
2237 (sha256
2238 (base32
2239 "15zsprak5yh8c1yrz4r1knmb5s8qcmdid4xdhkh3lqcv64l60hli"))))
2240 (build-system perl-build-system)
2241 (arguments
2242 `(#:tests? #f ;no "check" target
2243 #:phases
2244 (modify-phases %standard-phases
2245 (delete 'configure)
2246 (delete 'build)
2247 (replace 'install
2248 (lambda* (#:key outputs #:allow-other-keys)
2249 (let ((target (string-append (assoc-ref outputs "out")
2250 "/bin")))
2251 (mkdir-p target)
2252 (install-file "edirect.pl" target)
2253 #t)))
2254 (add-after
2255 'install 'wrap-program
2256 (lambda* (#:key inputs outputs #:allow-other-keys)
2257 ;; Make sure 'edirect.pl' finds all perl inputs at runtime.
2258 (let* ((out (assoc-ref outputs "out"))
2259 (path (getenv "PERL5LIB")))
2260 (wrap-program (string-append out "/bin/edirect.pl")
2261 `("PERL5LIB" ":" prefix (,path)))))))))
2262 (inputs
2263 `(("perl-html-parser" ,perl-html-parser)
2264 ("perl-encode-locale" ,perl-encode-locale)
2265 ("perl-file-listing" ,perl-file-listing)
2266 ("perl-html-tagset" ,perl-html-tagset)
2267 ("perl-html-tree" ,perl-html-tree)
2268 ("perl-http-cookies" ,perl-http-cookies)
2269 ("perl-http-date" ,perl-http-date)
2270 ("perl-http-message" ,perl-http-message)
2271 ("perl-http-negotiate" ,perl-http-negotiate)
2272 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
2273 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
2274 ("perl-net-http" ,perl-net-http)
2275 ("perl-uri" ,perl-uri)
2276 ("perl-www-robotrules" ,perl-www-robotrules)
2277 ("perl" ,perl)))
2278 (home-page "http://www.ncbi.nlm.nih.gov/books/NBK179288/")
2279 (synopsis "Tools for accessing the NCBI's set of databases")
2280 (description
2281 "Entrez Direct (EDirect) is a method for accessing the National Center
2282 for Biotechnology Information's (NCBI) set of interconnected
2283 databases (publication, sequence, structure, gene, variation, expression,
2284 etc.) from a terminal. Functions take search terms from command-line
2285 arguments. Individual operations are combined to build multi-step queries.
2286 Record retrieval and formatting normally complete the process.
2287
2288 EDirect also provides an argument-driven function that simplifies the
2289 extraction of data from document summaries or other results that are returned
2290 in structured XML format. This can eliminate the need for writing custom
2291 software to answer ad hoc questions.")
2292 (license license:public-domain)))
2293
2294 (define-public exonerate
2295 (package
2296 (name "exonerate")
2297 (version "2.4.0")
2298 (source
2299 (origin
2300 (method url-fetch)
2301 (uri
2302 (string-append
2303 "http://ftp.ebi.ac.uk/pub/software/vertebrategenomics/exonerate/"
2304 "exonerate-" version ".tar.gz"))
2305 (sha256
2306 (base32
2307 "0hj0m9xygiqsdxvbg79wq579kbrx1mdrabi2bzqz2zn9qwfjcjgq"))))
2308 (build-system gnu-build-system)
2309 (arguments
2310 `(#:parallel-build? #f)) ; Building in parallel fails on some machines.
2311 (native-inputs
2312 `(("pkg-config" ,pkg-config)))
2313 (inputs
2314 `(("glib" ,glib)))
2315 (home-page
2316 "https://www.ebi.ac.uk/about/vertebrate-genomics/software/exonerate")
2317 (synopsis "Generic tool for biological sequence alignment")
2318 (description
2319 "Exonerate is a generic tool for pairwise sequence comparison. It allows
2320 the alignment of sequences using a many alignment models, either exhaustive
2321 dynamic programming or a variety of heuristics.")
2322 (license license:gpl3)))
2323
2324 (define-public express
2325 (package
2326 (name "express")
2327 (version "1.5.1")
2328 (source (origin
2329 (method url-fetch)
2330 (uri
2331 (string-append
2332 "http://bio.math.berkeley.edu/eXpress/downloads/express-"
2333 version "/express-" version "-src.tgz"))
2334 (sha256
2335 (base32
2336 "03rczxd0gjp2l1jxcmjfmf5j94j77zqyxa6x063zsc585nj40n0c"))))
2337 (build-system cmake-build-system)
2338 (arguments
2339 `(#:tests? #f ;no "check" target
2340 #:phases
2341 (modify-phases %standard-phases
2342 (add-after 'unpack 'use-shared-boost-libs-and-set-bamtools-paths
2343 (lambda* (#:key inputs #:allow-other-keys)
2344 (substitute* "CMakeLists.txt"
2345 (("set\\(Boost_USE_STATIC_LIBS ON\\)")
2346 "set(Boost_USE_STATIC_LIBS OFF)")
2347 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/bamtools/include")
2348 (string-append (assoc-ref inputs "bamtools") "/include/bamtools")))
2349 (substitute* "src/CMakeLists.txt"
2350 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/\\.\\./bamtools/lib")
2351 (string-append (assoc-ref inputs "bamtools") "/lib"))
2352 (("libprotobuf.a") "libprotobuf.so"))
2353 #t)))))
2354 (inputs
2355 `(("boost" ,boost)
2356 ("bamtools" ,bamtools)
2357 ("protobuf" ,protobuf)
2358 ("zlib" ,zlib)))
2359 (home-page "http://bio.math.berkeley.edu/eXpress")
2360 (synopsis "Streaming quantification for high-throughput genomic sequencing")
2361 (description
2362 "eXpress is a streaming tool for quantifying the abundances of a set of
2363 target sequences from sampled subsequences. Example applications include
2364 transcript-level RNA-Seq quantification, allele-specific/haplotype expression
2365 analysis (from RNA-Seq), transcription factor binding quantification in
2366 ChIP-Seq, and analysis of metagenomic data.")
2367 (license license:artistic2.0)))
2368
2369 (define-public express-beta-diversity
2370 (package
2371 (name "express-beta-diversity")
2372 (version "1.0.7")
2373 (source (origin
2374 (method url-fetch)
2375 (uri
2376 (string-append
2377 "https://github.com/dparks1134/ExpressBetaDiversity/archive/v"
2378 version ".tar.gz"))
2379 (file-name (string-append name "-" version ".tar.gz"))
2380 (sha256
2381 (base32
2382 "1djvdlmqvjf6h0zq7w36y8cl5cli6rgj86x65znl48agnwmzxfxr"))))
2383 (build-system gnu-build-system)
2384 (arguments
2385 `(#:phases
2386 (modify-phases %standard-phases
2387 (delete 'configure)
2388 (add-before 'build 'enter-source (lambda _ (chdir "source") #t))
2389 (replace 'check
2390 (lambda _ (zero? (system* "../bin/ExpressBetaDiversity"
2391 "-u"))))
2392 (add-after 'check 'exit-source (lambda _ (chdir "..") #t))
2393 (replace 'install
2394 (lambda* (#:key outputs #:allow-other-keys)
2395 (let ((bin (string-append (assoc-ref outputs "out")
2396 "/bin")))
2397 (mkdir-p bin)
2398 (install-file "scripts/convertToEBD.py" bin)
2399 (install-file "bin/ExpressBetaDiversity" bin)
2400 #t))))))
2401 (inputs
2402 `(("python" ,python-2)))
2403 (home-page "http://kiwi.cs.dal.ca/Software/ExpressBetaDiversity")
2404 (synopsis "Taxon- and phylogenetic-based beta diversity measures")
2405 (description
2406 "Express Beta Diversity (EBD) calculates ecological beta diversity
2407 (dissimilarity) measures between biological communities. EBD implements a
2408 variety of diversity measures including those that make use of phylogenetic
2409 similarity of community members.")
2410 (license license:gpl3+)))
2411
2412 (define-public fasttree
2413 (package
2414 (name "fasttree")
2415 (version "2.1.10")
2416 (source (origin
2417 (method url-fetch)
2418 (uri (string-append
2419 "http://www.microbesonline.org/fasttree/FastTree-"
2420 version ".c"))
2421 (sha256
2422 (base32
2423 "0vcjdvy1j4m702vmak4svbfkrpcw63k7wymfksjp9a982zy8kjsl"))))
2424 (build-system gnu-build-system)
2425 (arguments
2426 `(#:tests? #f ; no "check" target
2427 #:phases
2428 (modify-phases %standard-phases
2429 (delete 'unpack)
2430 (delete 'configure)
2431 (replace 'build
2432 (lambda* (#:key source #:allow-other-keys)
2433 (and (zero? (system* "gcc"
2434 "-O3"
2435 "-finline-functions"
2436 "-funroll-loops"
2437 "-Wall"
2438 "-o"
2439 "FastTree"
2440 source
2441 "-lm"))
2442 (zero? (system* "gcc"
2443 "-DOPENMP"
2444 "-fopenmp"
2445 "-O3"
2446 "-finline-functions"
2447 "-funroll-loops"
2448 "-Wall"
2449 "-o"
2450 "FastTreeMP"
2451 source
2452 "-lm")))))
2453 (replace 'install
2454 (lambda* (#:key outputs #:allow-other-keys)
2455 (let ((bin (string-append (assoc-ref outputs "out")
2456 "/bin")))
2457 (mkdir-p bin)
2458 (install-file "FastTree" bin)
2459 (install-file "FastTreeMP" bin)
2460 #t))))))
2461 (home-page "http://www.microbesonline.org/fasttree")
2462 (synopsis "Infers approximately-maximum-likelihood phylogenetic trees")
2463 (description
2464 "FastTree can handle alignments with up to a million of sequences in a
2465 reasonable amount of time and memory. For large alignments, FastTree is
2466 100-1,000 times faster than PhyML 3.0 or RAxML 7.")
2467 (license license:gpl2+)))
2468
2469 (define-public fastx-toolkit
2470 (package
2471 (name "fastx-toolkit")
2472 (version "0.0.14")
2473 (source (origin
2474 (method url-fetch)
2475 (uri
2476 (string-append
2477 "https://github.com/agordon/fastx_toolkit/releases/download/"
2478 version "/fastx_toolkit-" version ".tar.bz2"))
2479 (sha256
2480 (base32
2481 "01jqzw386873sr0pjp1wr4rn8fsga2vxs1qfmicvx1pjr72007wy"))))
2482 (build-system gnu-build-system)
2483 (inputs
2484 `(("libgtextutils" ,libgtextutils)))
2485 (native-inputs
2486 `(("pkg-config" ,pkg-config)))
2487 (home-page "http://hannonlab.cshl.edu/fastx_toolkit/")
2488 (synopsis "Tools for FASTA/FASTQ file preprocessing")
2489 (description
2490 "The FASTX-Toolkit is a collection of command line tools for Short-Reads
2491 FASTA/FASTQ files preprocessing.
2492
2493 Next-Generation sequencing machines usually produce FASTA or FASTQ files,
2494 containing multiple short-reads sequences. The main processing of such
2495 FASTA/FASTQ files is mapping the sequences to reference genomes. However, it
2496 is sometimes more productive to preprocess the files before mapping the
2497 sequences to the genome---manipulating the sequences to produce better mapping
2498 results. The FASTX-Toolkit tools perform some of these preprocessing tasks.")
2499 (license license:agpl3+)))
2500
2501 (define-public flexbar
2502 (package
2503 (name "flexbar")
2504 (version "2.5")
2505 (source (origin
2506 (method url-fetch)
2507 (uri
2508 (string-append "mirror://sourceforge/flexbar/"
2509 version "/flexbar_v" version "_src.tgz"))
2510 (sha256
2511 (base32
2512 "13jaykc3y1x8y5nn9j8ljnb79s5y51kyxz46hdmvvjj6qhyympmf"))))
2513 (build-system cmake-build-system)
2514 (arguments
2515 `(#:configure-flags (list
2516 (string-append "-DFLEXBAR_BINARY_DIR="
2517 (assoc-ref %outputs "out")
2518 "/bin/"))
2519 #:phases
2520 (modify-phases %standard-phases
2521 (replace 'check
2522 (lambda* (#:key outputs #:allow-other-keys)
2523 (setenv "PATH" (string-append
2524 (assoc-ref outputs "out") "/bin:"
2525 (getenv "PATH")))
2526 (chdir "../flexbar_v2.5_src/test")
2527 (zero? (system* "bash" "flexbar_validate.sh"))))
2528 (delete 'install))))
2529 (inputs
2530 `(("tbb" ,tbb)
2531 ("zlib" ,zlib)))
2532 (native-inputs
2533 `(("pkg-config" ,pkg-config)
2534 ("seqan" ,seqan)))
2535 (home-page "http://flexbar.sourceforge.net")
2536 (synopsis "Barcode and adapter removal tool for sequencing platforms")
2537 (description
2538 "Flexbar preprocesses high-throughput nucleotide sequencing data
2539 efficiently. It demultiplexes barcoded runs and removes adapter sequences.
2540 Moreover, trimming and filtering features are provided. Flexbar increases
2541 read mapping rates and improves genome and transcriptome assemblies. It
2542 supports next-generation sequencing data in fasta/q and csfasta/q format from
2543 Illumina, Roche 454, and the SOLiD platform.")
2544 (license license:gpl3)))
2545
2546 (define-public fraggenescan
2547 (package
2548 (name "fraggenescan")
2549 (version "1.30")
2550 (source
2551 (origin
2552 (method url-fetch)
2553 (uri
2554 (string-append "mirror://sourceforge/fraggenescan/"
2555 "FragGeneScan" version ".tar.gz"))
2556 (sha256
2557 (base32 "158dcnwczgcyhwm4qlx19sanrwgdpzf6bn2y57mbpx55lkgz1mzj"))))
2558 (build-system gnu-build-system)
2559 (arguments
2560 `(#:phases
2561 (modify-phases %standard-phases
2562 (delete 'configure)
2563 (add-before 'build 'patch-paths
2564 (lambda* (#:key outputs #:allow-other-keys)
2565 (let* ((out (string-append (assoc-ref outputs "out")))
2566 (share (string-append out "/share/fraggenescan/")))
2567 (substitute* "run_FragGeneScan.pl"
2568 (("system\\(\"rm")
2569 (string-append "system(\"" (which "rm")))
2570 (("system\\(\"mv")
2571 (string-append "system(\"" (which "mv")))
2572 (("\\\"awk") (string-append "\"" (which "awk")))
2573 ;; This script and other programs expect the training files
2574 ;; to be in the non-standard location bin/train/XXX. Change
2575 ;; this to be share/fraggenescan/train/XXX instead.
2576 (("^\\$train.file = \\$dir.*")
2577 (string-append "$train_file = \""
2578 share
2579 "train/\".$FGS_train_file;")))
2580 (substitute* "run_hmm.c"
2581 (("^ strcat\\(train_dir, \\\"train/\\\"\\);")
2582 (string-append " strcpy(train_dir, \"" share "/train/\");"))))
2583 #t))
2584 (replace 'build
2585 (lambda _ (and (zero? (system* "make" "clean"))
2586 (zero? (system* "make" "fgs")))))
2587 (replace 'install
2588 (lambda* (#:key outputs #:allow-other-keys)
2589 (let* ((out (string-append (assoc-ref outputs "out")))
2590 (bin (string-append out "/bin/"))
2591 (share (string-append out "/share/fraggenescan/train")))
2592 (install-file "run_FragGeneScan.pl" bin)
2593 (install-file "FragGeneScan" bin)
2594 (copy-recursively "train" share))))
2595 (delete 'check)
2596 (add-after 'install 'post-install-check
2597 ;; In lieu of 'make check', run one of the examples and check the
2598 ;; output files gets created.
2599 (lambda* (#:key outputs #:allow-other-keys)
2600 (let* ((out (string-append (assoc-ref outputs "out")))
2601 (bin (string-append out "/bin/"))
2602 (frag (string-append bin "run_FragGeneScan.pl")))
2603 (and (zero? (system* frag ; Test complete genome.
2604 "-genome=./example/NC_000913.fna"
2605 "-out=./test2"
2606 "-complete=1"
2607 "-train=complete"))
2608 (file-exists? "test2.faa")
2609 (file-exists? "test2.ffn")
2610 (file-exists? "test2.gff")
2611 (file-exists? "test2.out")
2612 (zero? (system* ; Test incomplete sequences.
2613 frag
2614 "-genome=./example/NC_000913-fgs.ffn"
2615 "-out=out"
2616 "-complete=0"
2617 "-train=454_30")))))))))
2618 (inputs
2619 `(("perl" ,perl)
2620 ("python" ,python-2))) ;not compatible with python 3.
2621 (home-page "https://sourceforge.net/projects/fraggenescan/")
2622 (synopsis "Finds potentially fragmented genes in short reads")
2623 (description
2624 "FragGeneScan is a program for predicting bacterial and archaeal genes in
2625 short and error-prone DNA sequencing reads. It can also be applied to predict
2626 genes in incomplete assemblies or complete genomes.")
2627 ;; GPL3+ according to private correspondense with the authors.
2628 (license license:gpl3+)))
2629
2630 (define-public fxtract
2631 (let ((util-commit "776ca85a18a47492af3794745efcb4a905113115"))
2632 (package
2633 (name "fxtract")
2634 (version "2.3")
2635 (source
2636 (origin
2637 (method url-fetch)
2638 (uri (string-append
2639 "https://github.com/ctSkennerton/fxtract/archive/"
2640 version ".tar.gz"))
2641 (file-name (string-append "ctstennerton-util-"
2642 (string-take util-commit 7)
2643 "-checkout"))
2644 (sha256
2645 (base32
2646 "0275cfdhis8517hm01is62062swmi06fxzifq7mr3knbbxjlaiwj"))))
2647 (build-system gnu-build-system)
2648 (arguments
2649 `(#:make-flags (list
2650 (string-append "PREFIX=" (assoc-ref %outputs "out"))
2651 "CC=gcc")
2652 #:test-target "fxtract_test"
2653 #:phases
2654 (modify-phases %standard-phases
2655 (delete 'configure)
2656 (add-before 'build 'copy-util
2657 (lambda* (#:key inputs #:allow-other-keys)
2658 (rmdir "util")
2659 (copy-recursively (assoc-ref inputs "ctskennerton-util") "util")
2660 #t))
2661 ;; Do not use make install as this requires additional dependencies.
2662 (replace 'install
2663 (lambda* (#:key outputs #:allow-other-keys)
2664 (let* ((out (assoc-ref outputs "out"))
2665 (bin (string-append out"/bin")))
2666 (install-file "fxtract" bin)
2667 #t))))))
2668 (inputs
2669 `(("pcre" ,pcre)
2670 ("zlib" ,zlib)))
2671 (native-inputs
2672 ;; ctskennerton-util is licensed under GPL2.
2673 `(("ctskennerton-util"
2674 ,(origin
2675 (method git-fetch)
2676 (uri (git-reference
2677 (url "https://github.com/ctSkennerton/util.git")
2678 (commit util-commit)))
2679 (file-name (string-append
2680 "ctstennerton-util-" util-commit "-checkout"))
2681 (sha256
2682 (base32
2683 "0cls1hd4vgj3f36fpzzg4xc77d6f3hpc60cbpfmn2gdr7ykzzad7"))))))
2684 (home-page "https://github.com/ctSkennerton/fxtract")
2685 (synopsis "Extract sequences from FASTA and FASTQ files")
2686 (description
2687 "Fxtract extracts sequences from a protein or nucleotide fastx (FASTA
2688 or FASTQ) file given a subsequence. It uses a simple substring search for
2689 basic tasks but can change to using POSIX regular expressions, PCRE, hash
2690 lookups or multi-pattern searching as required. By default fxtract looks in
2691 the sequence of each record but can also be told to look in the header,
2692 comment or quality sections.")
2693 ;; 'util' requires SSE instructions.
2694 (supported-systems '("x86_64-linux"))
2695 (license license:expat))))
2696
2697 (define-public gemma
2698 (package
2699 (name "gemma")
2700 (version "0.96")
2701 (source (origin
2702 (method url-fetch)
2703 (uri (string-append "https://github.com/xiangzhou/GEMMA/archive/v"
2704 version ".tar.gz"))
2705 (file-name (string-append name "-" version ".tar.gz"))
2706 (sha256
2707 (base32
2708 "055ynn16gd12pf78n4vr2a9jlwsbwzajpdnf2y2yilg1krfff222"))
2709 (patches (search-patches "gemma-intel-compat.patch"))))
2710 (inputs
2711 `(("gsl" ,gsl)
2712 ("lapack" ,lapack)
2713 ("zlib" ,zlib)))
2714 (build-system gnu-build-system)
2715 (arguments
2716 `(#:make-flags
2717 '(,@(match (%current-system)
2718 ("x86_64-linux"
2719 '("FORCE_DYNAMIC=1"))
2720 ("i686-linux"
2721 '("FORCE_DYNAMIC=1" "FORCE_32BIT=1"))
2722 (_
2723 '("FORCE_DYNAMIC=1" "NO_INTEL_COMPAT=1"))))
2724 #:phases
2725 (modify-phases %standard-phases
2726 (delete 'configure)
2727 (add-before 'build 'bin-mkdir
2728 (lambda _
2729 (mkdir-p "bin")
2730 #t))
2731 (replace 'install
2732 (lambda* (#:key outputs #:allow-other-keys)
2733 (let ((out (assoc-ref outputs "out")))
2734 (install-file "bin/gemma"
2735 (string-append
2736 out "/bin")))
2737 #t)))
2738 #:tests? #f)) ; no tests included yet
2739 (home-page "https://github.com/xiangzhou/GEMMA")
2740 (synopsis "Tool for genome-wide efficient mixed model association")
2741 (description
2742 "Genome-wide Efficient Mixed Model Association (GEMMA) provides a
2743 standard linear mixed model resolver with application in genome-wide
2744 association studies (GWAS).")
2745 (license license:gpl3)))
2746
2747 (define-public grit
2748 (package
2749 (name "grit")
2750 (version "2.0.2")
2751 (source (origin
2752 (method url-fetch)
2753 (uri (string-append
2754 "https://github.com/nboley/grit/archive/"
2755 version ".tar.gz"))
2756 (file-name (string-append name "-" version ".tar.gz"))
2757 (sha256
2758 (base32
2759 "157in84dj70wimbind3x7sy1whs3h57qfgcnj2s6lrd38fbrb7mj"))))
2760 (build-system python-build-system)
2761 (arguments
2762 `(#:python ,python-2
2763 #:phases
2764 (modify-phases %standard-phases
2765 (add-after 'unpack 'generate-from-cython-sources
2766 (lambda* (#:key inputs outputs #:allow-other-keys)
2767 ;; Delete these C files to force fresh generation from pyx sources.
2768 (delete-file "grit/sparsify_support_fns.c")
2769 (delete-file "grit/call_peaks_support_fns.c")
2770 (substitute* "setup.py"
2771 (("Cython.Setup") "Cython.Build")
2772 ;; Add numpy include path to fix compilation
2773 (("pyx\", \\]")
2774 (string-append "pyx\", ], include_dirs = ['"
2775 (assoc-ref inputs "python-numpy")
2776 "/lib/python2.7/site-packages/numpy/core/include/"
2777 "']")))
2778 #t)))))
2779 (inputs
2780 `(("python-scipy" ,python2-scipy)
2781 ("python-numpy" ,python2-numpy)
2782 ("python-pysam" ,python2-pysam)
2783 ("python-networkx" ,python2-networkx)))
2784 (native-inputs
2785 `(("python-cython" ,python2-cython)))
2786 (home-page "http://grit-bio.org")
2787 (synopsis "Tool for integrative analysis of RNA-seq type assays")
2788 (description
2789 "GRIT is designed to use RNA-seq, TES, and TSS data to build and quantify
2790 full length transcript models. When none of these data sources are available,
2791 GRIT can be run by providing a candidate set of TES or TSS sites. In
2792 addition, GRIT can merge in reference junctions and gene boundaries. GRIT can
2793 also be run in quantification mode, where it uses a provided GTF file and just
2794 estimates transcript expression.")
2795 (license license:gpl3+)))
2796
2797 (define-public hisat
2798 (package
2799 (name "hisat")
2800 (version "0.1.4")
2801 (source (origin
2802 (method url-fetch)
2803 (uri (string-append
2804 "http://ccb.jhu.edu/software/hisat/downloads/hisat-"
2805 version "-beta-source.zip"))
2806 (sha256
2807 (base32
2808 "1k381ydranqxp09yf2y7w1d0chz5d59vb6jchi89hbb0prq19lk5"))))
2809 (build-system gnu-build-system)
2810 (arguments
2811 `(#:tests? #f ;no check target
2812 #:make-flags '("allall"
2813 ;; Disable unsupported `popcnt' instructions on
2814 ;; architectures other than x86_64
2815 ,@(if (string-prefix? "x86_64"
2816 (or (%current-target-system)
2817 (%current-system)))
2818 '()
2819 '("POPCNT_CAPABILITY=0")))
2820 #:phases
2821 (modify-phases %standard-phases
2822 (add-after 'unpack 'patch-sources
2823 (lambda _
2824 ;; XXX Cannot use snippet because zip files are not supported
2825 (substitute* "Makefile"
2826 (("^CC = .*$") "CC = gcc")
2827 (("^CPP = .*$") "CPP = g++")
2828 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
2829 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
2830 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
2831 (substitute* '("hisat-build" "hisat-inspect")
2832 (("/usr/bin/env") (which "env")))
2833 #t))
2834 (replace 'install
2835 (lambda* (#:key outputs #:allow-other-keys)
2836 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
2837 (for-each (lambda (file)
2838 (install-file file bin))
2839 (find-files
2840 "."
2841 "hisat(-(build|align|inspect)(-(s|l)(-debug)*)*)*$")))
2842 #t))
2843 (delete 'configure))))
2844 (native-inputs
2845 `(("unzip" ,unzip)))
2846 (inputs
2847 `(("perl" ,perl)
2848 ("python" ,python)
2849 ("zlib" ,zlib)))
2850 ;; Non-portable SSE instructions are used so building fails on platforms
2851 ;; other than x86_64.
2852 (supported-systems '("x86_64-linux"))
2853 (home-page "http://ccb.jhu.edu/software/hisat/index.shtml")
2854 (synopsis "Hierarchical indexing for spliced alignment of transcripts")
2855 (description
2856 "HISAT is a fast and sensitive spliced alignment program for mapping
2857 RNA-seq reads. In addition to one global FM index that represents a whole
2858 genome, HISAT uses a large set of small FM indexes that collectively cover the
2859 whole genome. These small indexes (called local indexes) combined with
2860 several alignment strategies enable effective alignment of RNA-seq reads, in
2861 particular, reads spanning multiple exons.")
2862 (license license:gpl3+)))
2863
2864 (define-public hisat2
2865 (package
2866 (name "hisat2")
2867 (version "2.0.5")
2868 (source
2869 (origin
2870 (method url-fetch)
2871 ;; FIXME: a better source URL is
2872 ;; (string-append "ftp://ftp.ccb.jhu.edu/pub/infphilo/hisat2"
2873 ;; "/downloads/hisat2-" version "-source.zip")
2874 ;; with hash "0lywnr8kijwsc2aw10dwxic0n0yvip6fl3rjlvc8zzwahamy4x7g"
2875 ;; but it is currently unavailable.
2876 (uri "https://github.com/infphilo/hisat2/archive/cba6e8cb.tar.gz")
2877 (file-name (string-append name "-" version ".tar.gz"))
2878 (sha256
2879 (base32
2880 "1mf2hdsyv7cd97xm9mp9a4qws02yrj95y6w6f6cdwnq0klp81r50"))))
2881 (build-system gnu-build-system)
2882 (arguments
2883 `(#:tests? #f ; no check target
2884 #:make-flags (list "CC=gcc" "CXX=g++" "allall")
2885 #:modules ((guix build gnu-build-system)
2886 (guix build utils)
2887 (srfi srfi-26))
2888 #:phases
2889 (modify-phases %standard-phases
2890 (add-after 'unpack 'make-deterministic
2891 (lambda _
2892 (substitute* "Makefile"
2893 (("`date`") "0"))
2894 #t))
2895 (delete 'configure)
2896 (replace 'install
2897 (lambda* (#:key outputs #:allow-other-keys)
2898 (let* ((out (assoc-ref outputs "out"))
2899 (bin (string-append out "/bin/"))
2900 (doc (string-append out "/share/doc/hisat2/")))
2901 (for-each
2902 (cut install-file <> bin)
2903 (find-files "."
2904 "hisat2(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))
2905 (mkdir-p doc)
2906 (install-file "doc/manual.inc.html" doc))
2907 #t)))))
2908 (native-inputs
2909 `(("unzip" ,unzip) ; needed for archive from ftp
2910 ("perl" ,perl)
2911 ("pandoc" ,ghc-pandoc))) ; for documentation
2912 (home-page "http://ccb.jhu.edu/software/hisat2/index.shtml")
2913 (synopsis "Graph-based alignment of genomic sequencing reads")
2914 (description "HISAT2 is a fast and sensitive alignment program for mapping
2915 next-generation sequencing reads (both DNA and RNA) to a population of human
2916 genomes (as well as to a single reference genome). In addition to using one
2917 global @dfn{graph FM} (GFM) index that represents a population of human
2918 genomes, HISAT2 uses a large set of small GFM indexes that collectively cover
2919 the whole genome. These small indexes, combined with several alignment
2920 strategies, enable rapid and accurate alignment of sequencing reads. This new
2921 indexing scheme is called a @dfn{Hierarchical Graph FM index} (HGFM).")
2922 ;; HISAT2 contains files from Bowtie2, which is released under
2923 ;; GPLv2 or later. The HISAT2 source files are released under
2924 ;; GPLv3 or later.
2925 (license license:gpl3+)))
2926
2927 (define-public hmmer
2928 (package
2929 (name "hmmer")
2930 (version "3.1b2")
2931 (source
2932 (origin
2933 (method url-fetch)
2934 (uri (string-append
2935 "http://eddylab.org/software/hmmer"
2936 (version-major version) "/"
2937 version "/hmmer-" version ".tar.gz"))
2938 (sha256
2939 (base32
2940 "0djmgc0pfli0jilfx8hql1axhwhqxqb8rxg2r5rg07aw73sfs5nx"))
2941 (patches (search-patches "hmmer-remove-cpu-specificity.patch"))))
2942 (build-system gnu-build-system)
2943 (native-inputs `(("perl" ,perl)))
2944 (home-page "http://hmmer.org/")
2945 (synopsis "Biosequence analysis using profile hidden Markov models")
2946 (description
2947 "HMMER is used for searching sequence databases for homologs of protein
2948 sequences, and for making protein sequence alignments. It implements methods
2949 using probabilistic models called profile hidden Markov models (profile
2950 HMMs).")
2951 (license (list license:gpl3+
2952 ;; The bundled library 'easel' is distributed
2953 ;; under The Janelia Farm Software License.
2954 (license:non-copyleft
2955 "file://easel/LICENSE"
2956 "See easel/LICENSE in the distribution.")))))
2957
2958 (define-public htseq
2959 (package
2960 (name "htseq")
2961 (version "0.9.1")
2962 (source (origin
2963 (method url-fetch)
2964 (uri (pypi-uri "HTSeq" version))
2965 (sha256
2966 (base32
2967 "11flgb1381xdhk43bzbfm3vhnszkpqg6jk76rpa5xd1zbrvvlnxg"))))
2968 (build-system python-build-system)
2969 (native-inputs
2970 `(("python-cython" ,python-cython)))
2971 ;; Numpy needs to be propagated when htseq is used as a Python library.
2972 (propagated-inputs
2973 `(("python-numpy" ,python-numpy)))
2974 (inputs
2975 `(("python-pysam" ,python-pysam)
2976 ("python-matplotlib" ,python-matplotlib)))
2977 (home-page "http://www-huber.embl.de/users/anders/HTSeq/")
2978 (synopsis "Analysing high-throughput sequencing data with Python")
2979 (description
2980 "HTSeq is a Python package that provides infrastructure to process data
2981 from high-throughput sequencing assays.")
2982 (license license:gpl3+)))
2983
2984 (define-public python2-htseq
2985 (package-with-python2 htseq))
2986
2987 (define-public java-htsjdk
2988 (package
2989 (name "java-htsjdk")
2990 (version "2.3.0") ; last version without build dependency on gradle
2991 (source (origin
2992 (method url-fetch)
2993 (uri (string-append
2994 "https://github.com/samtools/htsjdk/archive/"
2995 version ".tar.gz"))
2996 (file-name (string-append name "-" version ".tar.gz"))
2997 (sha256
2998 (base32
2999 "1ibhzzxsfc38nqyk9r8zqj6blfc1kh26iirypd4q6n90hs2m6nyq"))
3000 (modules '((guix build utils)))
3001 (snippet
3002 ;; Delete pre-built binaries
3003 '(begin
3004 (delete-file-recursively "lib")
3005 (mkdir-p "lib")
3006 #t))))
3007 (build-system ant-build-system)
3008 (arguments
3009 `(#:tests? #f ; test require Internet access
3010 #:jdk ,icedtea-8
3011 #:make-flags
3012 (list (string-append "-Ddist=" (assoc-ref %outputs "out")
3013 "/share/java/htsjdk/"))
3014 #:build-target "all"
3015 #:phases
3016 (modify-phases %standard-phases
3017 ;; The build phase also installs the jars
3018 (delete 'install))))
3019 (inputs
3020 `(("java-ngs" ,java-ngs)
3021 ("java-snappy-1" ,java-snappy-1)
3022 ("java-commons-compress" ,java-commons-compress)
3023 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
3024 ("java-commons-jexl-2" ,java-commons-jexl-2)
3025 ("java-xz" ,java-xz)))
3026 (native-inputs
3027 `(("java-testng" ,java-testng)))
3028 (home-page "http://samtools.github.io/htsjdk/")
3029 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3030 (description
3031 "HTSJDK is an implementation of a unified Java library for accessing
3032 common file formats, such as SAM and VCF, used for high-throughput
3033 sequencing (HTS) data. There are also an number of useful utilities for
3034 manipulating HTS data.")
3035 (license license:expat)))
3036
3037 (define-public java-htsjdk-latest
3038 (package
3039 (name "java-htsjdk")
3040 (version "2.14.3")
3041 (source (origin
3042 (method git-fetch)
3043 (uri (git-reference
3044 (url "https://github.com/samtools/htsjdk.git")
3045 (commit version)))
3046 (file-name (string-append name "-" version "-checkout"))
3047 (sha256
3048 (base32
3049 "1lmya1fdjy03mz6zmdmd86j9v9vfhqb3952mqq075navx1i6g4bc"))))
3050 (build-system ant-build-system)
3051 (arguments
3052 `(#:tests? #f ; test require Scala
3053 #:jdk ,icedtea-8
3054 #:jar-name "htsjdk.jar"
3055 #:phases
3056 (modify-phases %standard-phases
3057 (add-after 'unpack 'remove-useless-build.xml
3058 (lambda _ (delete-file "build.xml") #t))
3059 ;; The tests require the scalatest package.
3060 (add-after 'unpack 'remove-tests
3061 (lambda _ (delete-file-recursively "src/test") #t)))))
3062 (inputs
3063 `(("java-ngs" ,java-ngs)
3064 ("java-snappy-1" ,java-snappy-1)
3065 ("java-commons-compress" ,java-commons-compress)
3066 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
3067 ("java-commons-jexl-2" ,java-commons-jexl-2)
3068 ("java-xz" ,java-xz)))
3069 (native-inputs
3070 `(("java-junit" ,java-junit)))
3071 (home-page "http://samtools.github.io/htsjdk/")
3072 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3073 (description
3074 "HTSJDK is an implementation of a unified Java library for accessing
3075 common file formats, such as SAM and VCF, used for high-throughput
3076 sequencing (HTS) data. There are also an number of useful utilities for
3077 manipulating HTS data.")
3078 (license license:expat)))
3079
3080 ;; This is needed for picard 2.10.3
3081 (define-public java-htsjdk-2.10.1
3082 (package (inherit java-htsjdk-latest)
3083 (name "java-htsjdk")
3084 (version "2.10.1")
3085 (source (origin
3086 (method git-fetch)
3087 (uri (git-reference
3088 (url "https://github.com/samtools/htsjdk.git")
3089 (commit version)))
3090 (file-name (string-append name "-" version "-checkout"))
3091 (sha256
3092 (base32
3093 "1kxh7slm2pm3x9p6jxa1wqsq9a31dhiiflhxnxqcisan4k3rwia2"))))
3094 (build-system ant-build-system)
3095 (arguments
3096 `(#:tests? #f ; tests require Scala
3097 #:jdk ,icedtea-8
3098 #:jar-name "htsjdk.jar"
3099 #:phases
3100 (modify-phases %standard-phases
3101 (add-after 'unpack 'remove-useless-build.xml
3102 (lambda _ (delete-file "build.xml") #t))
3103 ;; The tests require the scalatest package.
3104 (add-after 'unpack 'remove-tests
3105 (lambda _ (delete-file-recursively "src/test") #t)))))))
3106
3107 ;; This version matches java-htsjdk 2.3.0. Later versions also require a more
3108 ;; recent version of java-htsjdk, which depends on gradle.
3109 (define-public java-picard
3110 (package
3111 (name "java-picard")
3112 (version "2.3.0")
3113 (source (origin
3114 (method git-fetch)
3115 (uri (git-reference
3116 (url "https://github.com/broadinstitute/picard.git")
3117 (commit version)))
3118 (file-name (string-append "java-picard-" version "-checkout"))
3119 (sha256
3120 (base32
3121 "1ll7mf4r3by92w2nhlmpa591xd1f46xlkwh59mq6fvbb5pdwzvx6"))
3122 (modules '((guix build utils)))
3123 (snippet
3124 '(begin
3125 ;; Delete pre-built binaries.
3126 (delete-file-recursively "lib")
3127 (mkdir-p "lib")
3128 (substitute* "build.xml"
3129 ;; Remove build-time dependency on git.
3130 (("failifexecutionfails=\"true\"")
3131 "failifexecutionfails=\"false\"")
3132 ;; Use our htsjdk.
3133 (("depends=\"compile-htsjdk, ")
3134 "depends=\"")
3135 (("depends=\"compile-htsjdk-tests, ")
3136 "depends=\"")
3137 ;; Build picard-lib.jar before building picard.jar
3138 (("name=\"picard-jar\" depends=\"" line)
3139 (string-append line "picard-lib-jar, ")))
3140 #t))))
3141 (build-system ant-build-system)
3142 (arguments
3143 `(#:build-target "picard-jar"
3144 #:test-target "test"
3145 ;; Tests require jacoco:coverage.
3146 #:tests? #f
3147 #:make-flags
3148 (list (string-append "-Dhtsjdk_lib_dir="
3149 (assoc-ref %build-inputs "java-htsjdk")
3150 "/share/java/htsjdk/")
3151 "-Dhtsjdk-classes=dist/tmp"
3152 (string-append "-Dhtsjdk-version="
3153 ,(package-version java-htsjdk)))
3154 #:jdk ,icedtea-8
3155 #:phases
3156 (modify-phases %standard-phases
3157 (add-after 'unpack 'use-our-htsjdk
3158 (lambda* (#:key inputs #:allow-other-keys)
3159 (substitute* "build.xml"
3160 (("\\$\\{htsjdk\\}/lib")
3161 (string-append (assoc-ref inputs "java-htsjdk")
3162 "/share/java/htsjdk/")))
3163 #t))
3164 (add-after 'unpack 'make-test-target-independent
3165 (lambda* (#:key inputs #:allow-other-keys)
3166 (substitute* "build.xml"
3167 (("name=\"test\" depends=\"compile, ")
3168 "name=\"test\" depends=\""))
3169 #t))
3170 (replace 'install (install-jars "dist")))))
3171 (inputs
3172 `(("java-htsjdk" ,java-htsjdk)
3173 ("java-guava" ,java-guava)))
3174 (native-inputs
3175 `(("java-testng" ,java-testng)))
3176 (home-page "http://broadinstitute.github.io/picard/")
3177 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
3178 (description "Picard is a set of Java command line tools for manipulating
3179 high-throughput sequencing (HTS) data and formats. Picard is implemented
3180 using the HTSJDK Java library to support accessing file formats that are
3181 commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
3182 VCF.")
3183 (license license:expat)))
3184
3185 ;; This is needed for dropseq-tools
3186 (define-public java-picard-2.10.3
3187 (package
3188 (name "java-picard")
3189 (version "2.10.3")
3190 (source (origin
3191 (method git-fetch)
3192 (uri (git-reference
3193 (url "https://github.com/broadinstitute/picard.git")
3194 (commit version)))
3195 (file-name (string-append "java-picard-" version "-checkout"))
3196 (sha256
3197 (base32
3198 "1ajlx31l6i1k3y2rhnmgq07sz99g2czqfqgkr9mihmdjp3gwjhvi"))))
3199 (build-system ant-build-system)
3200 (arguments
3201 `(#:jar-name "picard.jar"
3202 ;; Tests require jacoco:coverage.
3203 #:tests? #f
3204 #:jdk ,icedtea-8
3205 #:main-class "picard.cmdline.PicardCommandLine"
3206 #:modules ((guix build ant-build-system)
3207 (guix build utils)
3208 (guix build java-utils)
3209 (sxml simple)
3210 (sxml transform)
3211 (sxml xpath))
3212 #:phases
3213 (modify-phases %standard-phases
3214 (add-after 'unpack 'remove-useless-build.xml
3215 (lambda _ (delete-file "build.xml") #t))
3216 ;; This is necessary to ensure that htsjdk is found when using
3217 ;; picard.jar as an executable.
3218 (add-before 'build 'edit-classpath-in-manifest
3219 (lambda* (#:key inputs #:allow-other-keys)
3220 (chmod "build.xml" #o664)
3221 (call-with-output-file "build.xml.new"
3222 (lambda (port)
3223 (sxml->xml
3224 (pre-post-order
3225 (with-input-from-file "build.xml"
3226 (lambda _ (xml->sxml #:trim-whitespace? #t)))
3227 `((target . ,(lambda (tag . kids)
3228 (let ((name ((sxpath '(name *text*))
3229 (car kids)))
3230 ;; FIXME: We're breaking the line
3231 ;; early with a dummy path to
3232 ;; ensure that the store reference
3233 ;; isn't broken apart and can still
3234 ;; be found by the reference
3235 ;; scanner.
3236 (msg (format #f
3237 "\
3238 Class-Path: /~a \
3239 ~a/share/java/htsjdk.jar${line.separator}"
3240 ;; maximum line length is 70
3241 (string-tabulate (const #\b) 57)
3242 (assoc-ref inputs "java-htsjdk"))))
3243 (if (member "manifest" name)
3244 `(,tag ,@kids
3245 (echo
3246 (@ (message ,msg)
3247 (file "${manifest.file}")
3248 (append "true"))))
3249 `(,tag ,@kids)))))
3250 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
3251 (*text* . ,(lambda (_ txt) txt))))
3252 port)))
3253 (rename-file "build.xml.new" "build.xml")
3254 #t)))))
3255 (propagated-inputs
3256 `(("java-htsjdk" ,java-htsjdk-2.10.1)))
3257 (native-inputs
3258 `(("java-testng" ,java-testng)
3259 ("java-guava" ,java-guava)))
3260 (home-page "http://broadinstitute.github.io/picard/")
3261 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
3262 (description "Picard is a set of Java command line tools for manipulating
3263 high-throughput sequencing (HTS) data and formats. Picard is implemented
3264 using the HTSJDK Java library to support accessing file formats that are
3265 commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
3266 VCF.")
3267 (license license:expat)))
3268
3269 ;; This is the last version of Picard to provide net.sf.samtools
3270 (define-public java-picard-1.113
3271 (package (inherit java-picard)
3272 (name "java-picard")
3273 (version "1.113")
3274 (source (origin
3275 (method git-fetch)
3276 (uri (git-reference
3277 (url "https://github.com/broadinstitute/picard.git")
3278 (commit version)))
3279 (file-name (string-append "java-picard-" version "-checkout"))
3280 (sha256
3281 (base32
3282 "0lkpvin2fz3hhly4l02kk56fqy8lmlgyzr9kmvljk6ry6l1hw973"))
3283 (modules '((guix build utils)))
3284 (snippet
3285 '(begin
3286 ;; Delete pre-built binaries.
3287 (delete-file-recursively "lib")
3288 (mkdir-p "lib")
3289 #t))))
3290 (build-system ant-build-system)
3291 (arguments
3292 `(#:build-target "picard-jar"
3293 #:test-target "test"
3294 ;; FIXME: the class path at test time is wrong.
3295 ;; [testng] Error: A JNI error has occurred, please check your installation and try again
3296 ;; [testng] Exception in thread "main" java.lang.NoClassDefFoundError: com/beust/jcommander/ParameterException
3297 #:tests? #f
3298 #:jdk ,icedtea-8
3299 ;; This is only used for tests.
3300 #:make-flags
3301 (list "-Dsamjdk.intel_deflater_so_path=lib/jni/libIntelDeflater.so")
3302 #:phases
3303 (modify-phases %standard-phases
3304 ;; Do not use bundled ant bzip2.
3305 (add-after 'unpack 'use-ant-bzip
3306 (lambda* (#:key inputs #:allow-other-keys)
3307 (substitute* "build.xml"
3308 (("\\$\\{lib\\}/apache-ant-1.8.2-bzip2.jar")
3309 (string-append (assoc-ref inputs "ant")
3310 "/lib/ant.jar")))
3311 #t))
3312 (add-after 'unpack 'make-test-target-independent
3313 (lambda* (#:key inputs #:allow-other-keys)
3314 (substitute* "build.xml"
3315 (("name=\"test\" depends=\"compile, ")
3316 "name=\"test\" depends=\"compile-tests, ")
3317 (("name=\"compile\" depends=\"compile-src, compile-tests\"")
3318 "name=\"compile\" depends=\"compile-src\""))
3319 #t))
3320 (add-after 'unpack 'fix-deflater-path
3321 (lambda* (#:key outputs #:allow-other-keys)
3322 (substitute* "src/java/net/sf/samtools/Defaults.java"
3323 (("getStringProperty\\(\"intel_deflater_so_path\", null\\)")
3324 (string-append "getStringProperty(\"intel_deflater_so_path\", \""
3325 (assoc-ref outputs "out")
3326 "/lib/jni/libIntelDeflater.so"
3327 "\")")))
3328 #t))
3329 ;; Build the deflater library, because we've previously deleted the
3330 ;; pre-built one. This can only be built with access to the JDK
3331 ;; sources.
3332 (add-after 'build 'build-jni
3333 (lambda* (#:key inputs #:allow-other-keys)
3334 (mkdir-p "lib/jni")
3335 (mkdir-p "jdk-src")
3336 (and (zero? (system* "tar" "--strip-components=1" "-C" "jdk-src"
3337 "-xf" (assoc-ref inputs "jdk-src")))
3338 (zero? (system* "javah" "-jni"
3339 "-classpath" "classes"
3340 "-d" "lib/"
3341 "net.sf.samtools.util.zip.IntelDeflater"))
3342 (with-directory-excursion "src/c/inteldeflater"
3343 (zero? (system* "gcc" "-I../../../lib" "-I."
3344 (string-append "-I" (assoc-ref inputs "jdk")
3345 "/include/linux")
3346 "-I../../../jdk-src/src/share/native/common/"
3347 "-I../../../jdk-src/src/solaris/native/common/"
3348 "-c" "-O3" "-fPIC" "IntelDeflater.c"))
3349 (zero? (system* "gcc" "-shared"
3350 "-o" "../../../lib/jni/libIntelDeflater.so"
3351 "IntelDeflater.o" "-lz" "-lstdc++"))))))
3352 ;; We can only build everything else after building the JNI library.
3353 (add-after 'build-jni 'build-rest
3354 (lambda* (#:key make-flags #:allow-other-keys)
3355 (zero? (apply system* `("ant" "all" ,@make-flags)))))
3356 (add-before 'build 'set-JAVA6_HOME
3357 (lambda _
3358 (setenv "JAVA6_HOME" (getenv "JAVA_HOME"))
3359 #t))
3360 (replace 'install (install-jars "dist"))
3361 (add-after 'install 'install-jni-lib
3362 (lambda* (#:key outputs #:allow-other-keys)
3363 (let ((jni (string-append (assoc-ref outputs "out")
3364 "/lib/jni")))
3365 (mkdir-p jni)
3366 (install-file "lib/jni/libIntelDeflater.so" jni)
3367 #t))))))
3368 (inputs
3369 `(("java-snappy-1" ,java-snappy-1)
3370 ("java-commons-jexl-2" ,java-commons-jexl-2)
3371 ("java-cofoja" ,java-cofoja)
3372 ("ant" ,ant) ; for bzip2 support at runtime
3373 ("zlib" ,zlib)))
3374 (native-inputs
3375 `(("ant-apache-bcel" ,ant-apache-bcel)
3376 ("ant-junit" ,ant-junit)
3377 ("java-testng" ,java-testng)
3378 ("java-commons-bcel" ,java-commons-bcel)
3379 ("java-jcommander" ,java-jcommander)
3380 ("jdk" ,icedtea-8 "jdk")
3381 ("jdk-src" ,(car (assoc-ref (package-native-inputs icedtea-8) "jdk-drop")))))))
3382
3383 (define-public fastqc
3384 (package
3385 (name "fastqc")
3386 (version "0.11.5")
3387 (source
3388 (origin
3389 (method url-fetch)
3390 (uri (string-append "http://www.bioinformatics.babraham.ac.uk/"
3391 "projects/fastqc/fastqc_v"
3392 version "_source.zip"))
3393 (sha256
3394 (base32
3395 "18rrlkhcrxvvvlapch4dpj6xc6mpayzys8qfppybi8jrpgx5cc5f"))))
3396 (build-system ant-build-system)
3397 (arguments
3398 `(#:tests? #f ; there are no tests
3399 #:build-target "build"
3400 #:phases
3401 (modify-phases %standard-phases
3402 (add-after 'unpack 'fix-dependencies
3403 (lambda* (#:key inputs #:allow-other-keys)
3404 (substitute* "build.xml"
3405 (("jbzip2-0.9.jar")
3406 (string-append (assoc-ref inputs "java-jbzip2")
3407 "/share/java/jbzip2.jar"))
3408 (("sam-1.103.jar")
3409 (string-append (assoc-ref inputs "java-picard-1.113")
3410 "/share/java/sam-1.112.jar"))
3411 (("cisd-jhdf5.jar")
3412 (string-append (assoc-ref inputs "java-cisd-jhdf5")
3413 "/share/java/sis-jhdf5.jar")))
3414 #t))
3415 ;; There is no installation target
3416 (replace 'install
3417 (lambda* (#:key inputs outputs #:allow-other-keys)
3418 (let* ((out (assoc-ref outputs "out"))
3419 (bin (string-append out "/bin"))
3420 (share (string-append out "/share/fastqc/"))
3421 (exe (string-append share "/fastqc")))
3422 (for-each mkdir-p (list bin share))
3423 (copy-recursively "bin" share)
3424 (substitute* exe
3425 (("my \\$java_bin = 'java';")
3426 (string-append "my $java_bin = '"
3427 (assoc-ref inputs "java")
3428 "/bin/java';")))
3429 (chmod exe #o555)
3430 (symlink exe (string-append bin "/fastqc"))
3431 #t))))))
3432 (inputs
3433 `(("java" ,icedtea)
3434 ("perl" ,perl) ; needed for the wrapper script
3435 ("java-cisd-jhdf5" ,java-cisd-jhdf5)
3436 ("java-picard-1.113" ,java-picard-1.113)
3437 ("java-jbzip2" ,java-jbzip2)))
3438 (native-inputs
3439 `(("unzip" ,unzip)))
3440 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/fastqc/")
3441 (synopsis "Quality control tool for high throughput sequence data")
3442 (description
3443 "FastQC aims to provide a simple way to do some quality control
3444 checks on raw sequence data coming from high throughput sequencing
3445 pipelines. It provides a modular set of analyses which you can use to
3446 give a quick impression of whether your data has any problems of which
3447 you should be aware before doing any further analysis.
3448
3449 The main functions of FastQC are:
3450
3451 @itemize
3452 @item Import of data from BAM, SAM or FastQ files (any variant);
3453 @item Providing a quick overview to tell you in which areas there may
3454 be problems;
3455 @item Summary graphs and tables to quickly assess your data;
3456 @item Export of results to an HTML based permanent report;
3457 @item Offline operation to allow automated generation of reports
3458 without running the interactive application.
3459 @end itemize\n")
3460 (license license:gpl3+)))
3461
3462 (define-public fastp
3463 (package
3464 (name "fastp")
3465 (version "0.14.1")
3466 (source
3467 (origin
3468 (method git-fetch)
3469 (uri (git-reference
3470 (url "https://github.com/OpenGene/fastp.git")
3471 (commit (string-append "v" version))))
3472 (file-name (git-file-name name version))
3473 (sha256
3474 (base32
3475 "1r6ms5zbf5rps4rgp4z73nczadl00b5rqylw8f684isfz27dp0xh"))))
3476 (build-system gnu-build-system)
3477 (arguments
3478 `(#:tests? #f ; there are none
3479 #:make-flags
3480 (list (string-append "BINDIR=" (assoc-ref %outputs "out") "/bin"))
3481 #:phases
3482 (modify-phases %standard-phases
3483 (delete 'configure)
3484 (add-before 'install 'create-target-dir
3485 (lambda* (#:key outputs #:allow-other-keys)
3486 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
3487 #t)))))
3488 (inputs
3489 `(("zlib" ,zlib)))
3490 (home-page "https://github.com/OpenGene/fastp/")
3491 (synopsis "All-in-one FastQ preprocessor")
3492 (description
3493 "Fastp is a tool designed to provide fast all-in-one preprocessing for
3494 FastQ files. This tool has multi-threading support to afford high
3495 performance.")
3496 (license license:expat)))
3497
3498 (define-public htslib
3499 (package
3500 (name "htslib")
3501 (version "1.8")
3502 (source (origin
3503 (method url-fetch)
3504 (uri (string-append
3505 "https://github.com/samtools/htslib/releases/download/"
3506 version "/htslib-" version ".tar.bz2"))
3507 (sha256
3508 (base32
3509 "18bw0mn9pj5wgarnlaxmf1bb8pdqgl1zd6czirqcr62ajpn1xvy0"))))
3510 (build-system gnu-build-system)
3511 (inputs
3512 `(("openssl" ,openssl)
3513 ("curl" ,curl)
3514 ("zlib" ,zlib)))
3515 (native-inputs
3516 `(("perl" ,perl)))
3517 (home-page "http://www.htslib.org")
3518 (synopsis "C library for reading/writing high-throughput sequencing data")
3519 (description
3520 "HTSlib is a C library for reading/writing high-throughput sequencing
3521 data. It also provides the @command{bgzip}, @command{htsfile}, and
3522 @command{tabix} utilities.")
3523 ;; Files under cram/ are released under the modified BSD license;
3524 ;; the rest is released under the Expat license
3525 (license (list license:expat license:bsd-3))))
3526
3527 ;; This package should be removed once no packages rely upon it.
3528 (define htslib-1.3
3529 (package
3530 (inherit htslib)
3531 (version "1.3.1")
3532 (source (origin
3533 (method url-fetch)
3534 (uri (string-append
3535 "https://github.com/samtools/htslib/releases/download/"
3536 version "/htslib-" version ".tar.bz2"))
3537 (sha256
3538 (base32
3539 "1rja282fwdc25ql6izkhdyh8ppw8x2fs0w0js78zgkmqjlikmma9"))))))
3540
3541 (define-public idr
3542 (package
3543 (name "idr")
3544 (version "2.0.3")
3545 (source (origin
3546 (method url-fetch)
3547 (uri (string-append
3548 "https://github.com/nboley/idr/archive/"
3549 version ".tar.gz"))
3550 (file-name (string-append name "-" version ".tar.gz"))
3551 (sha256
3552 (base32
3553 "1rjdly6daslw66r43g9md8znizlscn1sphycqyldzsidkc4vxqv3"))
3554 ;; Delete generated C code.
3555 (snippet
3556 '(begin (delete-file "idr/inv_cdf.c") #t))))
3557 (build-system python-build-system)
3558 ;; There is only one test ("test_inv_cdf.py") and it tests features that
3559 ;; are no longer part of this package. It also asserts False, which
3560 ;; causes the tests to always fail.
3561 (arguments `(#:tests? #f))
3562 (propagated-inputs
3563 `(("python-scipy" ,python-scipy)
3564 ("python-sympy" ,python-sympy)
3565 ("python-numpy" ,python-numpy)
3566 ("python-matplotlib" ,python-matplotlib)))
3567 (native-inputs
3568 `(("python-cython" ,python-cython)))
3569 (home-page "https://github.com/nboley/idr")
3570 (synopsis "Tool to measure the irreproducible discovery rate (IDR)")
3571 (description
3572 "The IDR (Irreproducible Discovery Rate) framework is a unified approach
3573 to measure the reproducibility of findings identified from replicate
3574 experiments and provide highly stable thresholds based on reproducibility.")
3575 (license license:gpl2+)))
3576
3577 (define-public jellyfish
3578 (package
3579 (name "jellyfish")
3580 (version "2.2.7")
3581 (source (origin
3582 (method url-fetch)
3583 (uri (string-append "https://github.com/gmarcais/Jellyfish/"
3584 "releases/download/v" version
3585 "/jellyfish-" version ".tar.gz"))
3586 (sha256
3587 (base32
3588 "1a1iwq9pq54k2m9ypvwl5s0bqfl64gwh9dx5af9i382ajas2016q"))))
3589 (build-system gnu-build-system)
3590 (outputs '("out" ;for library
3591 "ruby" ;for Ruby bindings
3592 "python")) ;for Python bindings
3593 (arguments
3594 `(#:configure-flags
3595 (list (string-append "--enable-ruby-binding="
3596 (assoc-ref %outputs "ruby"))
3597 (string-append "--enable-python-binding="
3598 (assoc-ref %outputs "python")))
3599 #:phases
3600 (modify-phases %standard-phases
3601 (add-before 'check 'set-SHELL-variable
3602 (lambda _
3603 ;; generator_manager.hpp either uses /bin/sh or $SHELL
3604 ;; to run tests.
3605 (setenv "SHELL" (which "bash"))
3606 #t)))))
3607 (native-inputs
3608 `(("bc" ,bc)
3609 ("time" ,time)
3610 ("ruby" ,ruby)
3611 ("python" ,python-2)
3612 ("pkg-config" ,pkg-config)))
3613 (inputs
3614 `(("htslib" ,htslib)))
3615 (synopsis "Tool for fast counting of k-mers in DNA")
3616 (description
3617 "Jellyfish is a tool for fast, memory-efficient counting of k-mers in
3618 DNA. A k-mer is a substring of length k, and counting the occurrences of all
3619 such substrings is a central step in many analyses of DNA sequence. Jellyfish
3620 is a command-line program that reads FASTA and multi-FASTA files containing
3621 DNA sequences. It outputs its k-mer counts in a binary format, which can be
3622 translated into a human-readable text format using the @code{jellyfish dump}
3623 command, or queried for specific k-mers with @code{jellyfish query}.")
3624 (home-page "http://www.genome.umd.edu/jellyfish.html")
3625 ;; From their website: JELLYFISH runs on 64-bit Intel-compatible processors
3626 (supported-systems '("x86_64-linux"))
3627 ;; The combined work is published under the GPLv3 or later. Individual
3628 ;; files such as lib/jsoncpp.cpp are released under the Expat license.
3629 (license (list license:gpl3+ license:expat))))
3630
3631 (define-public khmer
3632 (package
3633 (name "khmer")
3634 (version "2.0")
3635 (source
3636 (origin
3637 (method url-fetch)
3638 (uri (pypi-uri "khmer" version))
3639 (sha256
3640 (base32
3641 "0wb05shqh77v00256qlm68vbbx3kl76fyzihszbz5nhanl4ni33a"))
3642 (patches (search-patches "khmer-use-libraries.patch"))))
3643 (build-system python-build-system)
3644 (arguments
3645 `(#:phases
3646 (modify-phases %standard-phases
3647 (add-after 'unpack 'set-paths
3648 (lambda* (#:key inputs outputs #:allow-other-keys)
3649 ;; Delete bundled libraries.
3650 (delete-file-recursively "third-party/zlib")
3651 (delete-file-recursively "third-party/bzip2")
3652 ;; Replace bundled seqan.
3653 (let* ((seqan-all "third-party/seqan")
3654 (seqan-include (string-append
3655 seqan-all "/core/include")))
3656 (delete-file-recursively seqan-all)
3657 (copy-recursively (string-append (assoc-ref inputs "seqan")
3658 "/include/seqan")
3659 (string-append seqan-include "/seqan")))
3660 ;; We do not replace the bundled MurmurHash as the canonical
3661 ;; repository for this code 'SMHasher' is unsuitable for
3662 ;; providing a library. See
3663 ;; https://lists.gnu.org/archive/html/guix-devel/2016-06/msg00977.html
3664 #t))
3665 (add-after 'unpack 'set-cc
3666 (lambda _
3667 (setenv "CC" "gcc")
3668 #t))
3669 ;; It is simpler to test after installation.
3670 (delete 'check)
3671 (add-after 'install 'post-install-check
3672 (lambda* (#:key inputs outputs #:allow-other-keys)
3673 (let ((out (assoc-ref outputs "out")))
3674 (setenv "PATH"
3675 (string-append
3676 (getenv "PATH")
3677 ":"
3678 (assoc-ref outputs "out")
3679 "/bin"))
3680 (setenv "PYTHONPATH"
3681 (string-append
3682 (getenv "PYTHONPATH")
3683 ":"
3684 out
3685 "/lib/python"
3686 (string-take (string-take-right
3687 (assoc-ref inputs "python") 5) 3)
3688 "/site-packages"))
3689 (with-directory-excursion "build"
3690 (zero? (system* "nosetests" "khmer" "--attr"
3691 "!known_failing")))))))))
3692 (native-inputs
3693 `(("seqan" ,seqan)
3694 ("python-nose" ,python-nose)))
3695 (inputs
3696 `(("zlib" ,zlib)
3697 ("bzip2" ,bzip2)
3698 ("python-screed" ,python-screed)
3699 ("python-bz2file" ,python-bz2file)
3700 ;; Tests fail when gcc-5 is used for compilation. Use gcc-4.9 at least
3701 ;; until the next version of khmer (likely 2.1) is released.
3702 ("gcc" ,gcc-4.9)))
3703 (home-page "https://khmer.readthedocs.org/")
3704 (synopsis "K-mer counting, filtering and graph traversal library")
3705 (description "The khmer software is a set of command-line tools for
3706 working with DNA shotgun sequencing data from genomes, transcriptomes,
3707 metagenomes and single cells. Khmer can make de novo assemblies faster, and
3708 sometimes better. Khmer can also identify and fix problems with shotgun
3709 data.")
3710 ;; When building on i686, armhf and mips64el, we get the following error:
3711 ;; error: ['khmer', 'khmer.tests', 'oxli'] require 64-bit operating system
3712 (supported-systems '("x86_64-linux" "aarch64-linux"))
3713 (license license:bsd-3)))
3714
3715 (define-public kaiju
3716 (package
3717 (name "kaiju")
3718 (version "1.6.2")
3719 (source (origin
3720 (method url-fetch)
3721 (uri (string-append
3722 "https://github.com/bioinformatics-centre/kaiju/archive/v"
3723 version ".tar.gz"))
3724 (file-name (string-append name "-" version ".tar.gz"))
3725 (sha256
3726 (base32
3727 "1kdn4rxs0kr9ibmrgrfcci71aa6j6gr71dbc8pff7731rpab6kj7"))))
3728 (build-system gnu-build-system)
3729 (arguments
3730 `(#:tests? #f ; There are no tests.
3731 #:phases
3732 (modify-phases %standard-phases
3733 (delete 'configure)
3734 (add-before 'build 'move-to-src-dir
3735 (lambda _ (chdir "src") #t))
3736 (replace 'install
3737 (lambda* (#:key inputs outputs #:allow-other-keys)
3738 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
3739 (mkdir-p bin)
3740 (chdir "..")
3741 (copy-recursively "bin" bin)
3742 (copy-recursively "util" bin))
3743 #t)))))
3744 (inputs
3745 `(("perl" ,perl)
3746 ("zlib" ,zlib)))
3747 (home-page "http://kaiju.binf.ku.dk/")
3748 (synopsis "Fast and sensitive taxonomic classification for metagenomics")
3749 (description "Kaiju is a program for sensitive taxonomic classification
3750 of high-throughput sequencing reads from metagenomic whole genome sequencing
3751 experiments.")
3752 (license license:gpl3+)))
3753
3754 (define-public macs
3755 (package
3756 (name "macs")
3757 (version "2.1.0.20151222")
3758 (source (origin
3759 (method url-fetch)
3760 (uri (pypi-uri "MACS2" version))
3761 (sha256
3762 (base32
3763 "1r2hcz6irhcq7lwbafjks98jbn34hv05avgbdjnp6w6mlfjkf8x5"))))
3764 (build-system python-build-system)
3765 (arguments
3766 `(#:python ,python-2 ; only compatible with Python 2.7
3767 #:tests? #f)) ; no test target
3768 (inputs
3769 `(("python-numpy" ,python2-numpy)))
3770 (home-page "https://github.com/taoliu/MACS/")
3771 (synopsis "Model based analysis for ChIP-Seq data")
3772 (description
3773 "MACS is an implementation of a ChIP-Seq analysis algorithm for
3774 identifying transcript factor binding sites named Model-based Analysis of
3775 ChIP-Seq (MACS). MACS captures the influence of genome complexity to evaluate
3776 the significance of enriched ChIP regions and it improves the spatial
3777 resolution of binding sites through combining the information of both
3778 sequencing tag position and orientation.")
3779 (license license:bsd-3)))
3780
3781 (define-public mafft
3782 (package
3783 (name "mafft")
3784 (version "7.394")
3785 (source (origin
3786 (method url-fetch)
3787 (uri (string-append
3788 "https://mafft.cbrc.jp/alignment/software/mafft-" version
3789 "-without-extensions-src.tgz"))
3790 (file-name (string-append name "-" version ".tgz"))
3791 (sha256
3792 (base32
3793 "0bacjkxfg944p5khhyh5rd4y7wkjc9qk4v2jjj442sqlq0f8ar7b"))))
3794 (build-system gnu-build-system)
3795 (arguments
3796 `(#:tests? #f ; no automated tests, though there are tests in the read me
3797 #:make-flags (let ((out (assoc-ref %outputs "out")))
3798 (list (string-append "PREFIX=" out)
3799 (string-append "BINDIR="
3800 (string-append out "/bin"))))
3801 #:phases
3802 (modify-phases %standard-phases
3803 (add-after 'unpack 'enter-dir
3804 (lambda _ (chdir "core") #t))
3805 (add-after 'enter-dir 'patch-makefile
3806 (lambda _
3807 ;; on advice from the MAFFT authors, there is no need to
3808 ;; distribute mafft-profile, mafft-distance, or
3809 ;; mafft-homologs.rb as they are too "specialised".
3810 (substitute* "Makefile"
3811 ;; remove mafft-homologs.rb from SCRIPTS
3812 (("^SCRIPTS = mafft mafft-homologs.rb")
3813 "SCRIPTS = mafft")
3814 ;; remove mafft-homologs from MANPAGES
3815 (("^MANPAGES = mafft.1 mafft-homologs.1")
3816 "MANPAGES = mafft.1")
3817 ;; remove mafft-distance from PROGS
3818 (("^PROGS = dvtditr dndfast7 dndblast sextet5 mafft-distance")
3819 "PROGS = dvtditr dndfast7 dndblast sextet5")
3820 ;; remove mafft-profile from PROGS
3821 (("splittbfast disttbfast tbfast mafft-profile 2cl mccaskillwrap")
3822 "splittbfast disttbfast tbfast f2cl mccaskillwrap")
3823 (("^rm -f mafft-profile mafft-profile.exe") "#")
3824 (("^rm -f mafft-distance mafft-distance.exe") ")#")
3825 ;; do not install MAN pages in libexec folder
3826 (("^\t\\$\\(INSTALL\\) -m 644 \\$\\(MANPAGES\\) \
3827 \\$\\(DESTDIR\\)\\$\\(LIBDIR\\)") "#"))
3828 #t))
3829 (add-after 'enter-dir 'patch-paths
3830 (lambda* (#:key inputs #:allow-other-keys)
3831 (substitute* '("pairash.c"
3832 "mafft.tmpl")
3833 (("perl") (which "perl"))
3834 (("([\"`| ])awk" _ prefix)
3835 (string-append prefix (which "awk")))
3836 (("grep") (which "grep")))
3837 #t))
3838 (delete 'configure)
3839 (add-after 'install 'wrap-programs
3840 (lambda* (#:key outputs #:allow-other-keys)
3841 (let* ((out (assoc-ref outputs "out"))
3842 (bin (string-append out "/bin"))
3843 (path (string-append
3844 (assoc-ref %build-inputs "coreutils") "/bin:")))
3845 (for-each (lambda (file)
3846 (wrap-program file
3847 `("PATH" ":" prefix (,path))))
3848 (find-files bin)))
3849 #t)))))
3850 (inputs
3851 `(("perl" ,perl)
3852 ("ruby" ,ruby)
3853 ("gawk" ,gawk)
3854 ("grep" ,grep)
3855 ("coreutils" ,coreutils)))
3856 (home-page "http://mafft.cbrc.jp/alignment/software/")
3857 (synopsis "Multiple sequence alignment program")
3858 (description
3859 "MAFFT offers a range of multiple alignment methods for nucleotide and
3860 protein sequences. For instance, it offers L-INS-i (accurate; for alignment
3861 of <~200 sequences) and FFT-NS-2 (fast; for alignment of <~30,000
3862 sequences).")
3863 (license (license:non-copyleft
3864 "http://mafft.cbrc.jp/alignment/software/license.txt"
3865 "BSD-3 with different formatting"))))
3866
3867 (define-public mash
3868 (package
3869 (name "mash")
3870 (version "2.0")
3871 (source (origin
3872 (method url-fetch)
3873 (uri (string-append
3874 "https://github.com/marbl/mash/archive/v"
3875 version ".tar.gz"))
3876 (file-name (string-append name "-" version ".tar.gz"))
3877 (sha256
3878 (base32
3879 "00fx14vpmgsijwxd1xql3if934l82v8ckqgjjyyhnr36qb9qrskv"))
3880 (modules '((guix build utils)))
3881 (snippet
3882 '(begin
3883 ;; Delete bundled kseq.
3884 ;; TODO: Also delete bundled murmurhash and open bloom filter.
3885 (delete-file "src/mash/kseq.h")
3886 #t))))
3887 (build-system gnu-build-system)
3888 (arguments
3889 `(#:tests? #f ; No tests.
3890 #:configure-flags
3891 (list
3892 (string-append "--with-capnp=" (assoc-ref %build-inputs "capnproto"))
3893 (string-append "--with-gsl=" (assoc-ref %build-inputs "gsl")))
3894 #:make-flags (list "CC=gcc")
3895 #:phases
3896 (modify-phases %standard-phases
3897 (add-after 'unpack 'fix-includes
3898 (lambda _
3899 (substitute* '("src/mash/Sketch.cpp"
3900 "src/mash/CommandFind.cpp"
3901 "src/mash/CommandScreen.cpp")
3902 (("^#include \"kseq\\.h\"")
3903 "#include \"htslib/kseq.h\""))
3904 #t))
3905 (add-after 'fix-includes 'autoconf
3906 (lambda _ (zero? (system* "autoconf")))))))
3907 (native-inputs
3908 `(("autoconf" ,autoconf)
3909 ;; Capnproto and htslib are statically embedded in the final
3910 ;; application. Therefore we also list their licenses, below.
3911 ("capnproto" ,capnproto)
3912 ("htslib" ,htslib)))
3913 (inputs
3914 `(("gsl" ,gsl)
3915 ("zlib" ,zlib)))
3916 (supported-systems '("x86_64-linux"))
3917 (home-page "https://mash.readthedocs.io")
3918 (synopsis "Fast genome and metagenome distance estimation using MinHash")
3919 (description "Mash is a fast sequence distance estimator that uses the
3920 MinHash algorithm and is designed to work with genomes and metagenomes in the
3921 form of assemblies or reads.")
3922 (license (list license:bsd-3 ; Mash
3923 license:expat ; HTSlib and capnproto
3924 license:public-domain ; MurmurHash 3
3925 license:cpl1.0)))) ; Open Bloom Filter
3926
3927 (define-public metabat
3928 (package
3929 (name "metabat")
3930 (version "2.12.1")
3931 (source
3932 (origin
3933 (method url-fetch)
3934 (uri (string-append "https://bitbucket.org/berkeleylab/metabat/get/v"
3935 version ".tar.gz"))
3936 (file-name (string-append name "-" version ".tar.gz"))
3937 (sha256
3938 (base32
3939 "1hmvdalz3zj5sqqklg0l4npjdv37cv2hsdi1al9iby2ndxjs1b73"))
3940 (patches (search-patches "metabat-fix-compilation.patch"))))
3941 (build-system scons-build-system)
3942 (arguments
3943 `(#:scons ,scons-python2
3944 #:scons-flags
3945 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3946 (string-append "BOOST_ROOT=" (assoc-ref %build-inputs "boost")))
3947 #:tests? #f ;; Tests are run during the build phase.
3948 #:phases
3949 (modify-phases %standard-phases
3950 (add-after 'unpack 'fix-includes
3951 (lambda _
3952 (substitute* "src/BamUtils.h"
3953 (("^#include \"bam/bam\\.h\"")
3954 "#include \"samtools/bam.h\"")
3955 (("^#include \"bam/sam\\.h\"")
3956 "#include \"samtools/sam.h\""))
3957 (substitute* "src/KseqReader.h"
3958 (("^#include \"bam/kseq\\.h\"")
3959 "#include \"htslib/kseq.h\""))
3960 #t))
3961 (add-after 'unpack 'fix-scons
3962 (lambda* (#:key inputs #:allow-other-keys)
3963 (substitute* "SConstruct"
3964 (("^htslib_dir += 'samtools'")
3965 (string-append "htslib_dir = '"
3966 (assoc-ref inputs "htslib")
3967 "'"))
3968 (("^samtools_dir = 'samtools'")
3969 (string-append "samtools_dir = '"
3970 (assoc-ref inputs "samtools")
3971 "'"))
3972 (("^findStaticOrShared\\('bam', hts_lib")
3973 (string-append "findStaticOrShared('bam', '"
3974 (assoc-ref inputs "samtools")
3975 "/lib'"))
3976 ;; Do not distribute README.
3977 (("^env\\.Install\\(idir_prefix, 'README\\.md'\\)") ""))
3978 #t)))))
3979 (inputs
3980 `(("zlib" ,zlib)
3981 ("perl" ,perl)
3982 ("samtools" ,samtools)
3983 ("htslib" ,htslib)
3984 ("boost" ,boost)))
3985 (home-page "https://bitbucket.org/berkeleylab/metabat")
3986 (synopsis
3987 "Reconstruction of single genomes from complex microbial communities")
3988 (description
3989 "Grouping large genomic fragments assembled from shotgun metagenomic
3990 sequences to deconvolute complex microbial communities, or metagenome binning,
3991 enables the study of individual organisms and their interactions. MetaBAT is
3992 an automated metagenome binning software, which integrates empirical
3993 probabilistic distances of genome abundance and tetranucleotide frequency.")
3994 ;; The source code contains inline assembly.
3995 (supported-systems '("x86_64-linux" "i686-linux"))
3996 (license (license:non-copyleft "file://license.txt"
3997 "See license.txt in the distribution."))))
3998
3999 (define-public minced
4000 (package
4001 (name "minced")
4002 (version "0.2.0")
4003 (source (origin
4004 (method url-fetch)
4005 (uri (string-append
4006 "https://github.com/ctSkennerton/minced/archive/"
4007 version ".tar.gz"))
4008 (file-name (string-append name "-" version ".tar.gz"))
4009 (sha256
4010 (base32
4011 "0wxmlsapxfpxfd3ps9636h7i2xy6la8i42mwh0j2lsky63h63jp1"))))
4012 (build-system gnu-build-system)
4013 (arguments
4014 `(#:test-target "test"
4015 #:phases
4016 (modify-phases %standard-phases
4017 (delete 'configure)
4018 (add-before 'check 'fix-test
4019 (lambda _
4020 ;; Fix test for latest version.
4021 (substitute* "t/Aquifex_aeolicus_VF5.expected"
4022 (("minced:0.1.6") "minced:0.2.0"))
4023 #t))
4024 (replace 'install ; No install target.
4025 (lambda* (#:key inputs outputs #:allow-other-keys)
4026 (let* ((out (assoc-ref outputs "out"))
4027 (bin (string-append out "/bin"))
4028 (wrapper (string-append bin "/minced")))
4029 ;; Minced comes with a wrapper script that tries to figure out where
4030 ;; it is located before running the JAR. Since these paths are known
4031 ;; to us, we build our own wrapper to avoid coreutils dependency.
4032 (install-file "minced.jar" bin)
4033 (with-output-to-file wrapper
4034 (lambda _
4035 (display
4036 (string-append
4037 "#!" (assoc-ref inputs "bash") "/bin/sh\n\n"
4038 (assoc-ref inputs "jre") "/bin/java -jar "
4039 bin "/minced.jar \"$@\"\n"))))
4040 (chmod wrapper #o555)))))))
4041 (native-inputs
4042 `(("jdk" ,icedtea "jdk")))
4043 (inputs
4044 `(("bash" ,bash)
4045 ("jre" ,icedtea "out")))
4046 (home-page "https://github.com/ctSkennerton/minced")
4047 (synopsis "Mining CRISPRs in Environmental Datasets")
4048 (description
4049 "MinCED is a program to find Clustered Regularly Interspaced Short
4050 Palindromic Repeats (CRISPRs) in DNA sequences. It can be used for
4051 unassembled metagenomic reads, but is mainly designed for full genomes and
4052 assembled metagenomic sequence.")
4053 (license license:gpl3+)))
4054
4055 (define-public miso
4056 (package
4057 (name "miso")
4058 (version "0.5.4")
4059 (source (origin
4060 (method url-fetch)
4061 (uri (pypi-uri "misopy" version))
4062 (sha256
4063 (base32
4064 "1z3x0vd8ma7pdrnywj7i3kgwl89sdkwrrn62zl7r5calqaq2hyip"))
4065 (modules '((guix build utils)))
4066 (snippet '(begin
4067 (substitute* "setup.py"
4068 ;; Use setuptools, or else the executables are not
4069 ;; installed.
4070 (("distutils.core") "setuptools")
4071 ;; use "gcc" instead of "cc" for compilation
4072 (("^defines")
4073 "cc.set_executables(
4074 compiler='gcc',
4075 compiler_so='gcc',
4076 linker_exe='gcc',
4077 linker_so='gcc -shared'); defines"))
4078 #t))))
4079 (build-system python-build-system)
4080 (arguments
4081 `(#:python ,python-2 ; only Python 2 is supported
4082 #:tests? #f)) ; no "test" target
4083 (inputs
4084 `(("samtools" ,samtools)
4085 ("python-numpy" ,python2-numpy)
4086 ("python-pysam" ,python2-pysam)
4087 ("python-scipy" ,python2-scipy)
4088 ("python-matplotlib" ,python2-matplotlib)))
4089 (native-inputs
4090 `(("python-mock" ,python2-mock) ;for tests
4091 ("python-pytz" ,python2-pytz))) ;for tests
4092 (home-page "http://genes.mit.edu/burgelab/miso/index.html")
4093 (synopsis "Mixture of Isoforms model for RNA-Seq isoform quantitation")
4094 (description
4095 "MISO (Mixture-of-Isoforms) is a probabilistic framework that quantitates
4096 the expression level of alternatively spliced genes from RNA-Seq data, and
4097 identifies differentially regulated isoforms or exons across samples. By
4098 modeling the generative process by which reads are produced from isoforms in
4099 RNA-Seq, the MISO model uses Bayesian inference to compute the probability
4100 that a read originated from a particular isoform.")
4101 (license license:gpl2)))
4102
4103 (define-public muscle
4104 (package
4105 (name "muscle")
4106 (version "3.8.1551")
4107 (source (origin
4108 (method url-fetch/tarbomb)
4109 (uri (string-append
4110 "http://www.drive5.com/muscle/muscle_src_"
4111 version ".tar.gz"))
4112 (sha256
4113 (base32
4114 "0bj8kj7sdizy3987zx6w7axihk40fk8rn76mpbqqjcnd64i5a367"))))
4115 (build-system gnu-build-system)
4116 (arguments
4117 `(#:make-flags (list "LDLIBS = -lm")
4118 #:phases
4119 (modify-phases %standard-phases
4120 (delete 'configure)
4121 (replace 'check
4122 ;; There are no tests, so just test if it runs.
4123 (lambda _ (zero? (system* "./muscle" "-version"))))
4124 (replace 'install
4125 (lambda* (#:key outputs #:allow-other-keys)
4126 (let* ((out (assoc-ref outputs "out"))
4127 (bin (string-append out "/bin")))
4128 (install-file "muscle" bin)))))))
4129 (home-page "http://www.drive5.com/muscle")
4130 (synopsis "Multiple sequence alignment program")
4131 (description
4132 "MUSCLE aims to be a fast and accurate multiple sequence alignment
4133 program for nucleotide and protein sequences.")
4134 ;; License information found in 'muscle -h' and usage.cpp.
4135 (license license:public-domain)))
4136
4137 (define-public newick-utils
4138 ;; There are no recent releases so we package from git.
4139 (let ((commit "da121155a977197cab9fbb15953ca1b40b11eb87"))
4140 (package
4141 (name "newick-utils")
4142 (version (string-append "1.6-1." (string-take commit 8)))
4143 (source (origin
4144 (method git-fetch)
4145 (uri (git-reference
4146 (url "https://github.com/tjunier/newick_utils.git")
4147 (commit commit)))
4148 (file-name (string-append name "-" version "-checkout"))
4149 (sha256
4150 (base32
4151 "1hkw21rq1mwf7xp0rmbb2gqc0i6p11108m69i7mr7xcjl268pxnb"))))
4152 (build-system gnu-build-system)
4153 (arguments
4154 `(#:phases
4155 (modify-phases %standard-phases
4156 (add-after 'unpack 'autoconf
4157 (lambda _ (zero? (system* "autoreconf" "-vif")))))))
4158 (inputs
4159 ;; XXX: TODO: Enable Lua and Guile bindings.
4160 ;; https://github.com/tjunier/newick_utils/issues/13
4161 `(("libxml2" ,libxml2)
4162 ("flex" ,flex)
4163 ("bison" ,bison)))
4164 (native-inputs
4165 `(("autoconf" ,autoconf)
4166 ("automake" ,automake)
4167 ("libtool" ,libtool)))
4168 (synopsis "Programs for working with newick format phylogenetic trees")
4169 (description
4170 "Newick-utils is a suite of utilities for processing phylogenetic trees
4171 in Newick format. Functions include re-rooting, extracting subtrees,
4172 trimming, pruning, condensing, drawing (ASCII graphics or SVG).")
4173 (home-page "https://github.com/tjunier/newick_utils")
4174 (license license:bsd-3))))
4175
4176 (define-public orfm
4177 (package
4178 (name "orfm")
4179 (version "0.7.1")
4180 (source (origin
4181 (method url-fetch)
4182 (uri (string-append
4183 "https://github.com/wwood/OrfM/releases/download/v"
4184 version "/orfm-" version ".tar.gz"))
4185 (sha256
4186 (base32
4187 "16iigyr2gd8x0imzkk1dr3k5xsds9bpmwg31ayvjg0f4pir9rwqr"))))
4188 (build-system gnu-build-system)
4189 (inputs `(("zlib" ,zlib)))
4190 (native-inputs
4191 `(("ruby-bio-commandeer" ,ruby-bio-commandeer)
4192 ("ruby-rspec" ,ruby-rspec)
4193 ("ruby" ,ruby)))
4194 (synopsis "Simple and not slow open reading frame (ORF) caller")
4195 (description
4196 "An ORF caller finds stretches of DNA that, when translated, are not
4197 interrupted by stop codons. OrfM finds and prints these ORFs.")
4198 (home-page "https://github.com/wwood/OrfM")
4199 (license license:lgpl3+)))
4200
4201 (define-public pplacer
4202 (let ((commit "g807f6f3"))
4203 (package
4204 (name "pplacer")
4205 ;; The commit should be updated with each version change.
4206 (version "1.1.alpha19")
4207 (source
4208 (origin
4209 (method url-fetch)
4210 (uri (string-append "https://github.com/matsen/pplacer/archive/v"
4211 version ".tar.gz"))
4212 (file-name (string-append name "-" version ".tar.gz"))
4213 (sha256
4214 (base32 "0z1lnd2s8sh6kpzg106wzbh2szw7h0hvq8syd5a6wv4rmyyz6x0f"))))
4215 (build-system ocaml-build-system)
4216 (arguments
4217 `(#:ocaml ,ocaml-4.01
4218 #:findlib ,ocaml4.01-findlib
4219 #:modules ((guix build ocaml-build-system)
4220 (guix build utils)
4221 (ice-9 ftw))
4222 #:phases
4223 (modify-phases %standard-phases
4224 (delete 'configure)
4225 (add-after 'unpack 'replace-bundled-cddlib
4226 (lambda* (#:key inputs #:allow-other-keys)
4227 (let* ((cddlib-src (assoc-ref inputs "cddlib-src"))
4228 (local-dir "cddlib_guix"))
4229 (mkdir local-dir)
4230 (with-directory-excursion local-dir
4231 (system* "tar" "xvf" cddlib-src))
4232 (let ((cddlib-src-folder
4233 (string-append local-dir "/"
4234 (list-ref (scandir local-dir) 2)
4235 "/lib-src")))
4236 (for-each
4237 (lambda (file)
4238 (copy-file file
4239 (string-append "cdd_src/" (basename file))))
4240 (find-files cddlib-src-folder ".*[ch]$")))
4241 #t)))
4242 (add-after 'unpack 'fix-makefile
4243 (lambda _
4244 ;; Remove system calls to 'git'.
4245 (substitute* "Makefile"
4246 (("^DESCRIPT:=pplacer-.*")
4247 (string-append
4248 "DESCRIPT:=pplacer-$(shell uname)-v" ,version "\n")))
4249 (substitute* "myocamlbuild.ml"
4250 (("git describe --tags --long .*\\\" with")
4251 (string-append
4252 "echo -n v" ,version "-" ,commit "\" with")))
4253 #t))
4254 (replace 'install
4255 (lambda* (#:key outputs #:allow-other-keys)
4256 (let* ((out (assoc-ref outputs "out"))
4257 (bin (string-append out "/bin")))
4258 (copy-recursively "bin" bin))
4259 #t)))))
4260 (native-inputs
4261 `(("zlib" ,zlib)
4262 ("gsl" ,gsl)
4263 ("ocaml-ounit" ,ocaml4.01-ounit)
4264 ("ocaml-batteries" ,ocaml4.01-batteries)
4265 ("ocaml-camlzip" ,ocaml4.01-camlzip)
4266 ("ocaml-csv" ,ocaml4.01-csv)
4267 ("ocaml-sqlite3" ,ocaml4.01-sqlite3)
4268 ("ocaml-xmlm" ,ocaml4.01-xmlm)
4269 ("ocaml-mcl" ,ocaml4.01-mcl)
4270 ("ocaml-gsl" ,ocaml4.01-gsl)
4271 ("cddlib-src" ,(package-source cddlib))))
4272 (propagated-inputs
4273 `(("pplacer-scripts" ,pplacer-scripts)))
4274 (synopsis "Phylogenetic placement of biological sequences")
4275 (description
4276 "Pplacer places query sequences on a fixed reference phylogenetic tree
4277 to maximize phylogenetic likelihood or posterior probability according to a
4278 reference alignment. Pplacer is designed to be fast, to give useful
4279 information about uncertainty, and to offer advanced visualization and
4280 downstream analysis.")
4281 (home-page "http://matsen.fhcrc.org/pplacer")
4282 (license license:gpl3))))
4283
4284 ;; This package is installed alongside 'pplacer'. It is a separate package so
4285 ;; that it can use the python-build-system for the scripts that are
4286 ;; distributed alongside the main OCaml binaries.
4287 (define pplacer-scripts
4288 (package
4289 (inherit pplacer)
4290 (name "pplacer-scripts")
4291 (build-system python-build-system)
4292 (arguments
4293 `(#:python ,python-2
4294 #:phases
4295 (modify-phases %standard-phases
4296 (add-after 'unpack 'enter-scripts-dir
4297 (lambda _ (chdir "scripts")))
4298 (replace 'check
4299 (lambda _
4300 (zero? (system* "python" "-m" "unittest" "discover" "-v"))))
4301 (add-after 'install 'wrap-executables
4302 (lambda* (#:key inputs outputs #:allow-other-keys)
4303 (let* ((out (assoc-ref outputs "out"))
4304 (bin (string-append out "/bin")))
4305 (let ((path (string-append
4306 (assoc-ref inputs "hmmer") "/bin:"
4307 (assoc-ref inputs "infernal") "/bin")))
4308 (display path)
4309 (wrap-program (string-append bin "/refpkg_align.py")
4310 `("PATH" ":" prefix (,path))))
4311 (let ((path (string-append
4312 (assoc-ref inputs "hmmer") "/bin")))
4313 (wrap-program (string-append bin "/hrefpkg_query.py")
4314 `("PATH" ":" prefix (,path)))))
4315 #t)))))
4316 (inputs
4317 `(("infernal" ,infernal)
4318 ("hmmer" ,hmmer)))
4319 (propagated-inputs
4320 `(("python-biopython" ,python2-biopython)
4321 ("taxtastic" ,taxtastic)))
4322 (synopsis "Pplacer Python scripts")))
4323
4324 (define-public python2-pbcore
4325 (package
4326 (name "python2-pbcore")
4327 (version "1.2.10")
4328 (source (origin
4329 (method url-fetch)
4330 (uri (pypi-uri "pbcore" version))
4331 (sha256
4332 (base32
4333 "1kjmv891d6qbpp4shhhvkl02ff4q5xlpnls2513sm2cjcrs52f1i"))))
4334 (build-system python-build-system)
4335 (arguments `(#:python ,python-2)) ; pbcore requires Python 2.7
4336 (propagated-inputs
4337 `(("python-cython" ,python2-cython)
4338 ("python-numpy" ,python2-numpy)
4339 ("python-pysam" ,python2-pysam)
4340 ("python-h5py" ,python2-h5py)))
4341 (native-inputs
4342 `(("python-nose" ,python2-nose)
4343 ("python-sphinx" ,python2-sphinx)
4344 ("python-pyxb" ,python2-pyxb)))
4345 (home-page "http://pacificbiosciences.github.io/pbcore/")
4346 (synopsis "Library for reading and writing PacBio data files")
4347 (description
4348 "The pbcore package provides Python APIs for interacting with PacBio data
4349 files and writing bioinformatics applications.")
4350 (license license:bsd-3)))
4351
4352 (define-public python2-warpedlmm
4353 (package
4354 (name "python2-warpedlmm")
4355 (version "0.21")
4356 (source
4357 (origin
4358 (method url-fetch)
4359 (uri (string-append
4360 "https://pypi.python.org/packages/source/W/WarpedLMM/WarpedLMM-"
4361 version ".zip"))
4362 (sha256
4363 (base32
4364 "1agfz6zqa8nc6cw47yh0s3y14gkpa9wqazwcj7mwwj3ffnw39p3j"))))
4365 (build-system python-build-system)
4366 (arguments
4367 `(#:python ,python-2)) ; requires Python 2.7
4368 (propagated-inputs
4369 `(("python-scipy" ,python2-scipy)
4370 ("python-numpy" ,python2-numpy)
4371 ("python-matplotlib" ,python2-matplotlib)
4372 ("python-fastlmm" ,python2-fastlmm)
4373 ("python-pandas" ,python2-pandas)
4374 ("python-pysnptools" ,python2-pysnptools)))
4375 (native-inputs
4376 `(("python-mock" ,python2-mock)
4377 ("python-nose" ,python2-nose)
4378 ("unzip" ,unzip)))
4379 (home-page "https://github.com/PMBio/warpedLMM")
4380 (synopsis "Implementation of warped linear mixed models")
4381 (description
4382 "WarpedLMM is a Python implementation of the warped linear mixed model,
4383 which automatically learns an optimal warping function (or transformation) for
4384 the phenotype as it models the data.")
4385 (license license:asl2.0)))
4386
4387 (define-public pbtranscript-tofu
4388 (let ((commit "8f5467fe6a4472bcfb4226c8720993c8507adfe4"))
4389 (package
4390 (name "pbtranscript-tofu")
4391 (version (string-append "2.2.3." (string-take commit 7)))
4392 (source (origin
4393 (method git-fetch)
4394 (uri (git-reference
4395 (url "https://github.com/PacificBiosciences/cDNA_primer.git")
4396 (commit commit)))
4397 (file-name (string-append name "-" version "-checkout"))
4398 (sha256
4399 (base32
4400 "1lgnpi35ihay42qx0b6yl3kkgra723i413j33kvs0kvs61h82w0f"))
4401 (modules '((guix build utils)))
4402 (snippet
4403 '(begin
4404 ;; remove bundled Cython sources
4405 (delete-file "pbtranscript-tofu/pbtranscript/Cython-0.20.1.tar.gz")
4406 #t))))
4407 (build-system python-build-system)
4408 (arguments
4409 `(#:python ,python-2
4410 ;; FIXME: Tests fail with "No such file or directory:
4411 ;; pbtools/pbtranscript/modified_bx_intervals/intersection_unique.so"
4412 #:tests? #f
4413 #:phases
4414 (modify-phases %standard-phases
4415 (add-after 'unpack 'enter-directory
4416 (lambda _
4417 (chdir "pbtranscript-tofu/pbtranscript/")
4418 #t))
4419 ;; With setuptools version 18.0 and later this setup.py hack causes
4420 ;; a build error, so we disable it.
4421 (add-after 'enter-directory 'patch-setuppy
4422 (lambda _
4423 (substitute* "setup.py"
4424 (("if 'setuptools.extension' in sys.modules:")
4425 "if False:"))
4426 #t)))))
4427 (inputs
4428 `(("python-numpy" ,python2-numpy)
4429 ("python-bx-python" ,python2-bx-python)
4430 ("python-networkx" ,python2-networkx)
4431 ("python-scipy" ,python2-scipy)
4432 ("python-pbcore" ,python2-pbcore)
4433 ("python-h5py" ,python2-h5py)))
4434 (native-inputs
4435 `(("python-cython" ,python2-cython)
4436 ("python-nose" ,python2-nose)))
4437 (home-page "https://github.com/PacificBiosciences/cDNA_primer")
4438 (synopsis "Analyze transcriptome data generated with the Iso-Seq protocol")
4439 (description
4440 "pbtranscript-tofu contains scripts to analyze transcriptome data
4441 generated using the PacBio Iso-Seq protocol.")
4442 (license license:bsd-3))))
4443
4444 (define-public prank
4445 (package
4446 (name "prank")
4447 (version "150803")
4448 (source (origin
4449 (method url-fetch)
4450 (uri (string-append
4451 "http://wasabiapp.org/download/prank/prank.source."
4452 version ".tgz"))
4453 (sha256
4454 (base32
4455 "0am4z94fs3w2n5xpfls9zda61vq7qqz4q2i7b9hlsxz5q4j3kfm4"))))
4456 (build-system gnu-build-system)
4457 (arguments
4458 `(#:phases
4459 (modify-phases %standard-phases
4460 (add-after 'unpack 'enter-src-dir
4461 (lambda _
4462 (chdir "src")
4463 #t))
4464 (add-after 'unpack 'remove-m64-flag
4465 ;; Prank will build with the correct 'bit-ness' without this flag
4466 ;; and this allows building on 32-bit machines.
4467 (lambda _ (substitute* "src/Makefile"
4468 (("-m64") ""))
4469 #t))
4470 (delete 'configure)
4471 (replace 'install
4472 (lambda* (#:key outputs #:allow-other-keys)
4473 (let* ((out (assoc-ref outputs "out"))
4474 (bin (string-append out "/bin"))
4475 (man (string-append out "/share/man/man1"))
4476 (path (string-append
4477 (assoc-ref %build-inputs "mafft") "/bin:"
4478 (assoc-ref %build-inputs "exonerate") "/bin:"
4479 (assoc-ref %build-inputs "bppsuite") "/bin")))
4480 (install-file "prank" bin)
4481 (wrap-program (string-append bin "/prank")
4482 `("PATH" ":" prefix (,path)))
4483 (install-file "prank.1" man))
4484 #t)))))
4485 (inputs
4486 `(("mafft" ,mafft)
4487 ("exonerate" ,exonerate)
4488 ("bppsuite" ,bppsuite)))
4489 (home-page "http://wasabiapp.org/software/prank/")
4490 (synopsis "Probabilistic multiple sequence alignment program")
4491 (description
4492 "PRANK is a probabilistic multiple sequence alignment program for DNA,
4493 codon and amino-acid sequences. It is based on a novel algorithm that treats
4494 insertions correctly and avoids over-estimation of the number of deletion
4495 events. In addition, PRANK borrows ideas from maximum likelihood methods used
4496 in phylogenetics and correctly takes into account the evolutionary distances
4497 between sequences. Lastly, PRANK allows for defining a potential structure
4498 for sequences to be aligned and then, simultaneously with the alignment,
4499 predicts the locations of structural units in the sequences.")
4500 (license license:gpl2+)))
4501
4502 (define-public proteinortho
4503 (package
4504 (name "proteinortho")
4505 (version "5.16b")
4506 (source
4507 (origin
4508 (method url-fetch)
4509 (uri
4510 (string-append
4511 "http://www.bioinf.uni-leipzig.de/Software/proteinortho/proteinortho_v"
4512 version "_src.tar.gz"))
4513 (sha256
4514 (base32
4515 "1wl0dawpssqwfjvr651r4wlww8hhjin8nba6xh71ks7sbypx886j"))))
4516 (build-system gnu-build-system)
4517 (arguments
4518 `(#:test-target "test"
4519 #:phases
4520 (modify-phases %standard-phases
4521 (replace 'configure
4522 ;; There is no configure script, so we modify the Makefile directly.
4523 (lambda* (#:key outputs #:allow-other-keys)
4524 (substitute* "Makefile"
4525 (("INSTALLDIR=.*")
4526 (string-append
4527 "INSTALLDIR=" (assoc-ref outputs "out") "/bin\n")))
4528 #t))
4529 (add-before 'install 'make-install-directory
4530 ;; The install directory is not created during 'make install'.
4531 (lambda* (#:key outputs #:allow-other-keys)
4532 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
4533 #t))
4534 (add-after 'install 'wrap-programs
4535 (lambda* (#:key inputs outputs #:allow-other-keys)
4536 (let* ((path (getenv "PATH"))
4537 (out (assoc-ref outputs "out"))
4538 (binary (string-append out "/bin/proteinortho5.pl")))
4539 (wrap-program binary `("PATH" ":" prefix (,path))))
4540 #t)))))
4541 (inputs
4542 `(("perl" ,perl)
4543 ("python" ,python-2)
4544 ("blast+" ,blast+)))
4545 (home-page "http://www.bioinf.uni-leipzig.de/Software/proteinortho")
4546 (synopsis "Detect orthologous genes across species")
4547 (description
4548 "Proteinortho is a tool to detect orthologous genes across different
4549 species. For doing so, it compares similarities of given gene sequences and
4550 clusters them to find significant groups. The algorithm was designed to handle
4551 large-scale data and can be applied to hundreds of species at once.")
4552 (license license:gpl2+)))
4553
4554 (define-public pyicoteo
4555 (package
4556 (name "pyicoteo")
4557 (version "2.0.7")
4558 (source
4559 (origin
4560 (method url-fetch)
4561 (uri (string-append "https://bitbucket.org/regulatorygenomicsupf/"
4562 "pyicoteo/get/v" version ".tar.bz2"))
4563 (file-name (string-append name "-" version ".tar.bz2"))
4564 (sha256
4565 (base32
4566 "0d6087f29xp8wxwlj111c3sylli98n0l8ry58c51ixzq0zfm50wa"))))
4567 (build-system python-build-system)
4568 (arguments
4569 `(#:python ,python-2 ; does not work with Python 3
4570 #:tests? #f)) ; there are no tests
4571 (inputs
4572 `(("python2-matplotlib" ,python2-matplotlib)))
4573 (home-page "https://bitbucket.org/regulatorygenomicsupf/pyicoteo")
4574 (synopsis "Analyze high-throughput genetic sequencing data")
4575 (description
4576 "Pyicoteo is a suite of tools for the analysis of high-throughput genetic
4577 sequencing data. It works with genomic coordinates. There are currently six
4578 different command-line tools:
4579
4580 @enumerate
4581 @item pyicoregion: for generating exploratory regions automatically;
4582 @item pyicoenrich: for differential enrichment between two conditions;
4583 @item pyicoclip: for calling CLIP-Seq peaks without a control;
4584 @item pyicos: for genomic coordinates manipulation;
4585 @item pyicoller: for peak calling on punctuated ChIP-Seq;
4586 @item pyicount: to count how many reads from N experiment files overlap in a
4587 region file;
4588 @item pyicotrocol: to combine operations from pyicoteo.
4589 @end enumerate\n")
4590 (license license:gpl3+)))
4591
4592 (define-public prodigal
4593 (package
4594 (name "prodigal")
4595 (version "2.6.3")
4596 (source (origin
4597 (method url-fetch)
4598 (uri (string-append
4599 "https://github.com/hyattpd/Prodigal/archive/v"
4600 version ".tar.gz"))
4601 (file-name (string-append name "-" version ".tar.gz"))
4602 (sha256
4603 (base32
4604 "17srxkqd3jc77xk15pfbgg1a9xahqg7337w95mrsia7mpza4l2c9"))))
4605 (build-system gnu-build-system)
4606 (arguments
4607 `(#:tests? #f ;no check target
4608 #:make-flags (list (string-append "INSTALLDIR="
4609 (assoc-ref %outputs "out")
4610 "/bin"))
4611 #:phases
4612 (modify-phases %standard-phases
4613 (delete 'configure))))
4614 (home-page "http://prodigal.ornl.gov")
4615 (synopsis "Protein-coding gene prediction for Archaea and Bacteria")
4616 (description
4617 "Prodigal runs smoothly on finished genomes, draft genomes, and
4618 metagenomes, providing gene predictions in GFF3, Genbank, or Sequin table
4619 format. It runs quickly, in an unsupervised fashion, handles gaps, handles
4620 partial genes, and identifies translation initiation sites.")
4621 (license license:gpl3+)))
4622
4623 (define-public roary
4624 (package
4625 (name "roary")
4626 (version "3.12.0")
4627 (source
4628 (origin
4629 (method url-fetch)
4630 (uri (string-append
4631 "mirror://cpan/authors/id/A/AJ/AJPAGE/Bio-Roary-"
4632 version ".tar.gz"))
4633 (sha256
4634 (base32
4635 "0qxrds9wx7cfhlkihrp6697kx0flhhxymap9fwan0b3rbdhcnmff"))))
4636 (build-system perl-build-system)
4637 (arguments
4638 `(#:phases
4639 (modify-phases %standard-phases
4640 (delete 'configure)
4641 (delete 'build)
4642 (replace 'check
4643 (lambda _
4644 ;; The tests are not run by default, so we run each test file
4645 ;; directly.
4646 (setenv "PATH" (string-append (getcwd) "/bin" ":"
4647 (getenv "PATH")))
4648 (setenv "PERL5LIB" (string-append (getcwd) "/lib" ":"
4649 (getenv "PERL5LIB")))
4650 (zero? (length (filter (lambda (file)
4651 (display file)(display "\n")
4652 (not (zero? (system* "perl" file))))
4653 (find-files "t" ".*\\.t$"))))))
4654 (replace 'install
4655 ;; There is no 'install' target in the Makefile.
4656 (lambda* (#:key outputs #:allow-other-keys)
4657 (let* ((out (assoc-ref outputs "out"))
4658 (bin (string-append out "/bin"))
4659 (perl (string-append out "/lib/perl5/site_perl"))
4660 (roary-plots "contrib/roary_plots"))
4661 (mkdir-p bin)
4662 (mkdir-p perl)
4663 (copy-recursively "bin" bin)
4664 (copy-recursively "lib" perl)
4665 #t)))
4666 (add-after 'install 'wrap-programs
4667 (lambda* (#:key inputs outputs #:allow-other-keys)
4668 (let* ((out (assoc-ref outputs "out"))
4669 (perl5lib (getenv "PERL5LIB"))
4670 (path (getenv "PATH")))
4671 (for-each (lambda (prog)
4672 (let ((binary (string-append out "/" prog)))
4673 (wrap-program binary
4674 `("PERL5LIB" ":" prefix
4675 (,(string-append perl5lib ":" out
4676 "/lib/perl5/site_perl"))))
4677 (wrap-program binary
4678 `("PATH" ":" prefix
4679 (,(string-append path ":" out "/bin"))))))
4680 (find-files "bin" ".*[^R]$"))
4681 (let ((file
4682 (string-append out "/bin/roary-create_pan_genome_plots.R"))
4683 (r-site-lib (getenv "R_LIBS_SITE"))
4684 (coreutils-path
4685 (string-append (assoc-ref inputs "coreutils") "/bin")))
4686 (wrap-program file
4687 `("R_LIBS_SITE" ":" prefix
4688 (,(string-append r-site-lib ":" out "/site-library/"))))
4689 (wrap-program file
4690 `("PATH" ":" prefix
4691 (,(string-append coreutils-path ":" out "/bin"))))))
4692 #t)))))
4693 (native-inputs
4694 `(("perl-env-path" ,perl-env-path)
4695 ("perl-test-files" ,perl-test-files)
4696 ("perl-test-most" ,perl-test-most)
4697 ("perl-test-output" ,perl-test-output)))
4698 (inputs
4699 `(("perl-array-utils" ,perl-array-utils)
4700 ("bioperl" ,bioperl-minimal)
4701 ("perl-digest-md5-file" ,perl-digest-md5-file)
4702 ("perl-exception-class" ,perl-exception-class)
4703 ("perl-file-find-rule" ,perl-file-find-rule)
4704 ("perl-file-grep" ,perl-file-grep)
4705 ("perl-file-slurper" ,perl-file-slurper)
4706 ("perl-file-which" ,perl-file-which)
4707 ("perl-graph" ,perl-graph)
4708 ("perl-graph-readwrite" ,perl-graph-readwrite)
4709 ("perl-log-log4perl" ,perl-log-log4perl)
4710 ("perl-moose" ,perl-moose)
4711 ("perl-perlio-utf8_strict" ,perl-perlio-utf8_strict)
4712 ("perl-text-csv" ,perl-text-csv)
4713 ("bedtools" ,bedtools)
4714 ("cd-hit" ,cd-hit)
4715 ("blast+" ,blast+)
4716 ("mcl" ,mcl)
4717 ("parallel" ,parallel)
4718 ("prank" ,prank)
4719 ("mafft" ,mafft)
4720 ("fasttree" ,fasttree)
4721 ("grep" ,grep)
4722 ("sed" ,sed)
4723 ("gawk" ,gawk)
4724 ("r-minimal" ,r-minimal)
4725 ("r-ggplot2" ,r-ggplot2)
4726 ("coreutils" ,coreutils)))
4727 (home-page "http://sanger-pathogens.github.io/Roary")
4728 (synopsis "High speed stand-alone pan genome pipeline")
4729 (description
4730 "Roary is a high speed stand alone pan genome pipeline, which takes
4731 annotated assemblies in GFF3 format (produced by the Prokka program) and
4732 calculates the pan genome. Using a standard desktop PC, it can analyse
4733 datasets with thousands of samples, without compromising the quality of the
4734 results. 128 samples can be analysed in under 1 hour using 1 GB of RAM and a
4735 single processor. Roary is not intended for metagenomics or for comparing
4736 extremely diverse sets of genomes.")
4737 (license license:gpl3)))
4738
4739 (define-public raxml
4740 (package
4741 (name "raxml")
4742 (version "8.2.10")
4743 (source
4744 (origin
4745 (method url-fetch)
4746 (uri
4747 (string-append
4748 "https://github.com/stamatak/standard-RAxML/archive/v"
4749 version ".tar.gz"))
4750 (file-name (string-append name "-" version ".tar.gz"))
4751 (sha256
4752 (base32
4753 "13s7aspfdcfr6asynwdg1x6vznys6pzap5f8wsffbnnwpkkg9ya8"))))
4754 (build-system gnu-build-system)
4755 (arguments
4756 `(#:tests? #f ; There are no tests.
4757 ;; Use 'standard' Makefile rather than SSE or AVX ones.
4758 #:make-flags (list "-f" "Makefile.HYBRID.gcc")
4759 #:phases
4760 (modify-phases %standard-phases
4761 (delete 'configure)
4762 (replace 'install
4763 (lambda* (#:key outputs #:allow-other-keys)
4764 (let* ((out (assoc-ref outputs "out"))
4765 (bin (string-append out "/bin"))
4766 (executable "raxmlHPC-HYBRID"))
4767 (install-file executable bin)
4768 (symlink (string-append bin "/" executable) "raxml"))
4769 #t)))))
4770 (inputs
4771 `(("openmpi" ,openmpi)))
4772 (home-page "http://sco.h-its.org/exelixis/web/software/raxml/index.html")
4773 (synopsis "Randomized Axelerated Maximum Likelihood phylogenetic trees")
4774 (description
4775 "RAxML is a tool for phylogenetic analysis and post-analysis of large
4776 phylogenies.")
4777 ;; The source includes x86 specific code
4778 (supported-systems '("x86_64-linux" "i686-linux"))
4779 (license license:gpl2+)))
4780
4781 (define-public rsem
4782 (package
4783 (name "rsem")
4784 (version "1.2.20")
4785 (source
4786 (origin
4787 (method url-fetch)
4788 (uri
4789 (string-append "http://deweylab.biostat.wisc.edu/rsem/src/rsem-"
4790 version ".tar.gz"))
4791 (sha256
4792 (base32 "0nzdc0j0hjllhsd5f2xli95dafm3nawskigs140xzvjk67xh0r9q"))
4793 (patches (search-patches "rsem-makefile.patch"))
4794 (modules '((guix build utils)))
4795 (snippet
4796 '(begin
4797 ;; remove bundled copy of boost
4798 (delete-file-recursively "boost")
4799 #t))))
4800 (build-system gnu-build-system)
4801 (arguments
4802 `(#:tests? #f ;no "check" target
4803 #:phases
4804 (modify-phases %standard-phases
4805 ;; No "configure" script.
4806 ;; Do not build bundled samtools library.
4807 (replace 'configure
4808 (lambda _
4809 (substitute* "Makefile"
4810 (("^all : sam/libbam.a") "all : "))
4811 #t))
4812 (replace 'install
4813 (lambda* (#:key outputs #:allow-other-keys)
4814 (let* ((out (string-append (assoc-ref outputs "out")))
4815 (bin (string-append out "/bin/"))
4816 (perl (string-append out "/lib/perl5/site_perl")))
4817 (mkdir-p bin)
4818 (mkdir-p perl)
4819 (for-each (lambda (file)
4820 (install-file file bin))
4821 (find-files "." "rsem-.*"))
4822 (install-file "rsem_perl_utils.pm" perl))
4823 #t))
4824 (add-after
4825 'install 'wrap-program
4826 (lambda* (#:key outputs #:allow-other-keys)
4827 (let ((out (assoc-ref outputs "out")))
4828 (for-each (lambda (prog)
4829 (wrap-program (string-append out "/bin/" prog)
4830 `("PERL5LIB" ":" prefix
4831 (,(string-append out "/lib/perl5/site_perl")))))
4832 '("rsem-plot-transcript-wiggles"
4833 "rsem-calculate-expression"
4834 "rsem-generate-ngvector"
4835 "rsem-run-ebseq"
4836 "rsem-prepare-reference")))
4837 #t)))))
4838 (inputs
4839 `(("boost" ,boost)
4840 ("ncurses" ,ncurses)
4841 ("r-minimal" ,r-minimal)
4842 ("perl" ,perl)
4843 ("samtools" ,samtools-0.1)
4844 ("zlib" ,zlib)))
4845 (home-page "http://deweylab.biostat.wisc.edu/rsem/")
4846 (synopsis "Estimate gene expression levels from RNA-Seq data")
4847 (description
4848 "RSEM is a software package for estimating gene and isoform expression
4849 levels from RNA-Seq data. The RSEM package provides a user-friendly
4850 interface, supports threads for parallel computation of the EM algorithm,
4851 single-end and paired-end read data, quality scores, variable-length reads and
4852 RSPD estimation. In addition, it provides posterior mean and 95% credibility
4853 interval estimates for expression levels. For visualization, it can generate
4854 BAM and Wiggle files in both transcript-coordinate and genomic-coordinate.")
4855 (license license:gpl3+)))
4856
4857 (define-public rseqc
4858 (package
4859 (name "rseqc")
4860 (version "2.6.1")
4861 (source
4862 (origin
4863 (method url-fetch)
4864 (uri
4865 (string-append "mirror://sourceforge/rseqc/"
4866 "RSeQC-" version ".tar.gz"))
4867 (sha256
4868 (base32 "15ly0254yi032qzkdplg00q144qfdsd986gh62829rl5bkxhj330"))
4869 (modules '((guix build utils)))
4870 (snippet
4871 '(begin
4872 ;; remove bundled copy of pysam
4873 (delete-file-recursively "lib/pysam")
4874 (substitute* "setup.py"
4875 ;; remove dependency on outdated "distribute" module
4876 (("^from distribute_setup import use_setuptools") "")
4877 (("^use_setuptools\\(\\)") "")
4878 ;; do not use bundled copy of pysam
4879 (("^have_pysam = False") "have_pysam = True"))
4880 #t))))
4881 (build-system python-build-system)
4882 (arguments `(#:python ,python-2))
4883 (inputs
4884 `(("python-cython" ,python2-cython)
4885 ("python-pysam" ,python2-pysam)
4886 ("python-numpy" ,python2-numpy)
4887 ("zlib" ,zlib)))
4888 (native-inputs
4889 `(("python-nose" ,python2-nose)))
4890 (home-page "http://rseqc.sourceforge.net/")
4891 (synopsis "RNA-seq quality control package")
4892 (description
4893 "RSeQC provides a number of modules that can comprehensively evaluate
4894 high throughput sequence data, especially RNA-seq data. Some basic modules
4895 inspect sequence quality, nucleotide composition bias, PCR bias and GC bias,
4896 while RNA-seq specific modules evaluate sequencing saturation, mapped reads
4897 distribution, coverage uniformity, strand specificity, etc.")
4898 (license license:gpl3+)))
4899
4900 (define-public seek
4901 ;; There are no release tarballs. According to the installation
4902 ;; instructions at http://seek.princeton.edu/installation.jsp, the latest
4903 ;; stable release is identified by this changeset ID.
4904 (let ((changeset "2329130")
4905 (revision "1"))
4906 (package
4907 (name "seek")
4908 (version (string-append "0-" revision "." changeset))
4909 (source (origin
4910 (method hg-fetch)
4911 (uri (hg-reference
4912 (url "https://bitbucket.org/libsleipnir/sleipnir")
4913 (changeset changeset)))
4914 (file-name (string-append name "-" version "-checkout"))
4915 (sha256
4916 (base32
4917 "0qrvilwh18dpbhkf92qvxbmay0j75ra3jg2wrhz67gf538zzphsx"))))
4918 (build-system gnu-build-system)
4919 (arguments
4920 `(#:modules ((srfi srfi-1)
4921 (guix build gnu-build-system)
4922 (guix build utils))
4923 #:phases
4924 (let ((dirs '("SeekMiner"
4925 "SeekEvaluator"
4926 "SeekPrep"
4927 "Distancer"
4928 "Data2DB"
4929 "PCL2Bin")))
4930 (modify-phases %standard-phases
4931 (replace 'bootstrap
4932 (lambda _
4933 (invoke "bash" "gen_auto")))
4934 (add-after 'build 'build-additional-tools
4935 (lambda* (#:key make-flags #:allow-other-keys)
4936 (every (lambda (dir)
4937 (with-directory-excursion (string-append "tools/" dir)
4938 (zero? (apply system* "make" make-flags))))
4939 dirs)))
4940 (add-after 'install 'install-additional-tools
4941 (lambda* (#:key make-flags #:allow-other-keys)
4942 (fold (lambda (dir result)
4943 (with-directory-excursion (string-append "tools/" dir)
4944 (and result
4945 (zero? (apply system*
4946 `("make" ,@make-flags "install"))))))
4947 #t dirs)))))))
4948 (inputs
4949 `(("gsl" ,gsl)
4950 ("boost" ,boost)
4951 ("libsvm" ,libsvm)
4952 ("readline" ,readline)
4953 ("gengetopt" ,gengetopt)
4954 ("log4cpp" ,log4cpp)))
4955 (native-inputs
4956 `(("autoconf" ,autoconf)
4957 ("automake" ,automake)
4958 ("perl" ,perl)))
4959 (home-page "http://seek.princeton.edu")
4960 (synopsis "Gene co-expression search engine")
4961 (description
4962 "SEEK is a computational gene co-expression search engine. SEEK provides
4963 biologists with a way to navigate the massive human expression compendium that
4964 now contains thousands of expression datasets. SEEK returns a robust ranking
4965 of co-expressed genes in the biological area of interest defined by the user's
4966 query genes. It also prioritizes thousands of expression datasets according
4967 to the user's query of interest.")
4968 (license license:cc-by3.0))))
4969
4970 (define-public samtools
4971 (package
4972 (name "samtools")
4973 (version "1.8")
4974 (source
4975 (origin
4976 (method url-fetch)
4977 (uri
4978 (string-append "mirror://sourceforge/samtools/samtools/"
4979 version "/samtools-" version ".tar.bz2"))
4980 (sha256
4981 (base32
4982 "05myg7bs90i68qbqab9cdg9rqj2xh39azibrx82ipzc5kcfvqhn9"))))
4983 (build-system gnu-build-system)
4984 (arguments
4985 `(#:modules ((ice-9 ftw)
4986 (ice-9 regex)
4987 (guix build gnu-build-system)
4988 (guix build utils))
4989 #:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
4990 #:configure-flags (list "--with-ncurses" "--with-htslib=system")
4991 #:phases
4992 (modify-phases %standard-phases
4993 (add-after 'unpack 'patch-tests
4994 (lambda _
4995 (substitute* "test/test.pl"
4996 ;; The test script calls out to /bin/bash
4997 (("/bin/bash") (which "bash")))
4998 #t))
4999 (add-after 'install 'install-library
5000 (lambda* (#:key outputs #:allow-other-keys)
5001 (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
5002 (install-file "libbam.a" lib)
5003 #t)))
5004 (add-after 'install 'install-headers
5005 (lambda* (#:key outputs #:allow-other-keys)
5006 (let ((include (string-append (assoc-ref outputs "out")
5007 "/include/samtools/")))
5008 (for-each (lambda (file)
5009 (install-file file include))
5010 (scandir "." (lambda (name) (string-match "\\.h$" name))))
5011 #t))))))
5012 (native-inputs `(("pkg-config" ,pkg-config)))
5013 (inputs
5014 `(("htslib" ,htslib)
5015 ("ncurses" ,ncurses)
5016 ("perl" ,perl)
5017 ("python" ,python)
5018 ("zlib" ,zlib)))
5019 (home-page "http://samtools.sourceforge.net")
5020 (synopsis "Utilities to efficiently manipulate nucleotide sequence alignments")
5021 (description
5022 "Samtools implements various utilities for post-processing nucleotide
5023 sequence alignments in the SAM, BAM, and CRAM formats, including indexing,
5024 variant calling (in conjunction with bcftools), and a simple alignment
5025 viewer.")
5026 (license license:expat)))
5027
5028 (define-public samtools-0.1
5029 ;; This is the most recent version of the 0.1 line of samtools. The input
5030 ;; and output formats differ greatly from that used and produced by samtools
5031 ;; 1.x and is still used in many bioinformatics pipelines.
5032 (package (inherit samtools)
5033 (version "0.1.19")
5034 (source
5035 (origin
5036 (method url-fetch)
5037 (uri
5038 (string-append "mirror://sourceforge/samtools/samtools/"
5039 version "/samtools-" version ".tar.bz2"))
5040 (sha256
5041 (base32 "1m33xsfwz0s8qi45lylagfllqg7fphf4dr0780rsvw75av9wk06h"))))
5042 (arguments
5043 `(#:tests? #f ;no "check" target
5044 ,@(substitute-keyword-arguments (package-arguments samtools)
5045 ((#:make-flags flags)
5046 `(cons "LIBCURSES=-lncurses" ,flags))
5047 ((#:phases phases)
5048 `(modify-phases ,phases
5049 (replace 'install
5050 (lambda* (#:key outputs #:allow-other-keys)
5051 (let ((bin (string-append
5052 (assoc-ref outputs "out") "/bin")))
5053 (mkdir-p bin)
5054 (install-file "samtools" bin)
5055 #t)))
5056 (delete 'patch-tests)
5057 (delete 'configure))))))))
5058
5059 (define-public mosaik
5060 (let ((commit "5c25216d3522d6a33e53875cd76a6d65001e4e67"))
5061 (package
5062 (name "mosaik")
5063 (version "2.2.30")
5064 (source (origin
5065 ;; There are no release tarballs nor tags.
5066 (method git-fetch)
5067 (uri (git-reference
5068 (url "https://github.com/wanpinglee/MOSAIK.git")
5069 (commit commit)))
5070 (file-name (string-append name "-" version))
5071 (sha256
5072 (base32
5073 "17gj3s07cm77r41z92awh0bim7w7q7fbn0sf5nkqmcm1vw052qgw"))))
5074 (build-system gnu-build-system)
5075 (arguments
5076 `(#:tests? #f ; no tests
5077 #:make-flags (list "CC=gcc")
5078 #:phases
5079 (modify-phases %standard-phases
5080 (replace 'configure
5081 (lambda _ (chdir "src") #t))
5082 (replace 'install
5083 (lambda* (#:key outputs #:allow-other-keys)
5084 (let ((bin (string-append (assoc-ref outputs "out")
5085 "/bin")))
5086 (mkdir-p bin)
5087 (copy-recursively "../bin" bin)
5088 #t))))))
5089 (inputs
5090 `(("perl" ,perl)
5091 ("zlib" ,zlib)))
5092 (supported-systems '("x86_64-linux"))
5093 (home-page "https://github.com/wanpinglee/MOSAIK")
5094 (synopsis "Map nucleotide sequence reads to reference genomes")
5095 (description
5096 "MOSAIK is a program for mapping second and third-generation sequencing
5097 reads to a reference genome. MOSAIK can align reads generated by all the
5098 major sequencing technologies, including Illumina, Applied Biosystems SOLiD,
5099 Roche 454, Ion Torrent and Pacific BioSciences SMRT.")
5100 ;; MOSAIK is released under the GPLv2+ with the exception of third-party
5101 ;; code released into the public domain:
5102 ;; 1. fastlz by Ariya Hidayat - http://www.fastlz.org/
5103 ;; 2. MD5 implementation - RSA Data Security, RFC 1321
5104 (license (list license:gpl2+ license:public-domain)))))
5105
5106 (define-public ngs-sdk
5107 (package
5108 (name "ngs-sdk")
5109 (version "1.3.0")
5110 (source
5111 (origin
5112 (method url-fetch)
5113 (uri
5114 (string-append "https://github.com/ncbi/ngs/archive/"
5115 version ".tar.gz"))
5116 (file-name (string-append name "-" version ".tar.gz"))
5117 (sha256
5118 (base32
5119 "1wiyf4c6nm2j87pv015cbi0qny5byf3pbvcw3likifz5dl56ag40"))))
5120 (build-system gnu-build-system)
5121 (arguments
5122 `(#:parallel-build? #f ; not supported
5123 #:tests? #f ; no "check" target
5124 #:phases
5125 (modify-phases %standard-phases
5126 (replace 'configure
5127 (lambda* (#:key outputs #:allow-other-keys)
5128 (let ((out (assoc-ref outputs "out")))
5129 ;; Allow 'konfigure.perl' to find 'package.prl'.
5130 (setenv "PERL5LIB"
5131 (string-append ".:" (getenv "PERL5LIB")))
5132
5133 ;; The 'configure' script doesn't recognize things like
5134 ;; '--enable-fast-install'.
5135 (zero? (system* "./configure"
5136 (string-append "--build-prefix=" (getcwd) "/build")
5137 (string-append "--prefix=" out))))))
5138 (add-after 'unpack 'enter-dir
5139 (lambda _ (chdir "ngs-sdk") #t)))))
5140 (native-inputs `(("perl" ,perl)))
5141 ;; According to the test
5142 ;; unless ($MARCH =~ /x86_64/i || $MARCH =~ /i?86/i)
5143 ;; in ngs-sdk/setup/konfigure.perl
5144 (supported-systems '("i686-linux" "x86_64-linux"))
5145 (home-page "https://github.com/ncbi/ngs")
5146 (synopsis "API for accessing Next Generation Sequencing data")
5147 (description
5148 "NGS is a domain-specific API for accessing reads, alignments and pileups
5149 produced from Next Generation Sequencing. The API itself is independent from
5150 any particular back-end implementation, and supports use of multiple back-ends
5151 simultaneously.")
5152 (license license:public-domain)))
5153
5154 (define-public java-ngs
5155 (package (inherit ngs-sdk)
5156 (name "java-ngs")
5157 (arguments
5158 `(,@(substitute-keyword-arguments
5159 `(#:modules ((guix build gnu-build-system)
5160 (guix build utils)
5161 (srfi srfi-1)
5162 (srfi srfi-26))
5163 ,@(package-arguments ngs-sdk))
5164 ((#:phases phases)
5165 `(modify-phases ,phases
5166 (replace 'enter-dir (lambda _ (chdir "ngs-java") #t)))))))
5167 (inputs
5168 `(("jdk" ,icedtea "jdk")
5169 ("ngs-sdk" ,ngs-sdk)))
5170 (synopsis "Java bindings for NGS SDK")))
5171
5172 (define-public ncbi-vdb
5173 (package
5174 (name "ncbi-vdb")
5175 (version "2.8.2")
5176 (source
5177 (origin
5178 (method url-fetch)
5179 (uri
5180 (string-append "https://github.com/ncbi/ncbi-vdb/archive/"
5181 version ".tar.gz"))
5182 (file-name (string-append name "-" version ".tar.gz"))
5183 (sha256
5184 (base32
5185 "1acn4bv81mfl137qnbn9995mjjhwd36pm0b7qli1iw5skrxa9j8m"))))
5186 (build-system gnu-build-system)
5187 (arguments
5188 `(#:parallel-build? #f ; not supported
5189 #:tests? #f ; no "check" target
5190 #:phases
5191 (modify-phases %standard-phases
5192 (add-before 'configure 'set-perl-search-path
5193 (lambda _
5194 ;; Work around "dotless @INC" build failure.
5195 (setenv "PERL5LIB"
5196 (string-append (getcwd) "/setup:"
5197 (getenv "PERL5LIB")))
5198 #t))
5199 (replace 'configure
5200 (lambda* (#:key inputs outputs #:allow-other-keys)
5201 (let ((out (assoc-ref outputs "out")))
5202 ;; Override include path for libmagic
5203 (substitute* "setup/package.prl"
5204 (("name => 'magic', Include => '/usr/include'")
5205 (string-append "name=> 'magic', Include => '"
5206 (assoc-ref inputs "libmagic")
5207 "/include" "'")))
5208
5209 ;; Install kdf5 library (needed by sra-tools)
5210 (substitute* "build/Makefile.install"
5211 (("LIBRARIES_TO_INSTALL =")
5212 "LIBRARIES_TO_INSTALL = kdf5.$(VERSION_LIBX) kdf5.$(VERSION_SHLX)"))
5213
5214 (substitute* "build/Makefile.env"
5215 (("CFLAGS =" prefix)
5216 (string-append prefix "-msse2 ")))
5217
5218 ;; Override search path for ngs-java
5219 (substitute* "setup/package.prl"
5220 (("/usr/local/ngs/ngs-java")
5221 (assoc-ref inputs "java-ngs")))
5222
5223 ;; The 'configure' script doesn't recognize things like
5224 ;; '--enable-fast-install'.
5225 (zero? (system*
5226 "./configure"
5227 (string-append "--build-prefix=" (getcwd) "/build")
5228 (string-append "--prefix=" (assoc-ref outputs "out"))
5229 (string-append "--debug")
5230 (string-append "--with-xml2-prefix="
5231 (assoc-ref inputs "libxml2"))
5232 (string-append "--with-ngs-sdk-prefix="
5233 (assoc-ref inputs "ngs-sdk"))
5234 (string-append "--with-hdf5-prefix="
5235 (assoc-ref inputs "hdf5")))))))
5236 (add-after 'install 'install-interfaces
5237 (lambda* (#:key outputs #:allow-other-keys)
5238 ;; Install interface libraries. On i686 the interface libraries
5239 ;; are installed to "linux/gcc/i386", so we need to use the Linux
5240 ;; architecture name ("i386") instead of the target system prefix
5241 ;; ("i686").
5242 (mkdir (string-append (assoc-ref outputs "out") "/ilib"))
5243 (copy-recursively (string-append "build/ncbi-vdb/linux/gcc/"
5244 ,(system->linux-architecture
5245 (or (%current-target-system)
5246 (%current-system)))
5247 "/rel/ilib")
5248 (string-append (assoc-ref outputs "out")
5249 "/ilib"))
5250 ;; Install interface headers
5251 (copy-recursively "interfaces"
5252 (string-append (assoc-ref outputs "out")
5253 "/include"))
5254 #t))
5255 ;; These files are needed by sra-tools.
5256 (add-after 'install 'install-configuration-files
5257 (lambda* (#:key outputs #:allow-other-keys)
5258 (let ((target (string-append (assoc-ref outputs "out") "/kfg")))
5259 (mkdir target)
5260 (install-file "libs/kfg/default.kfg" target)
5261 (install-file "libs/kfg/certs.kfg" target))
5262 #t)))))
5263 (inputs
5264 `(("libxml2" ,libxml2)
5265 ("ngs-sdk" ,ngs-sdk)
5266 ("java-ngs" ,java-ngs)
5267 ("libmagic" ,file)
5268 ("hdf5" ,hdf5)))
5269 (native-inputs `(("perl" ,perl)))
5270 ;; NCBI-VDB requires SSE capability.
5271 (supported-systems '("i686-linux" "x86_64-linux"))
5272 (home-page "https://github.com/ncbi/ncbi-vdb")
5273 (synopsis "Database engine for genetic information")
5274 (description
5275 "The NCBI-VDB library implements a highly compressed columnar data
5276 warehousing engine that is most often used to store genetic information.
5277 Databases are stored in a portable image within the file system, and can be
5278 accessed/downloaded on demand across HTTP.")
5279 (license license:public-domain)))
5280
5281 (define-public plink
5282 (package
5283 (name "plink")
5284 (version "1.07")
5285 (source
5286 (origin
5287 (method url-fetch)
5288 (uri (string-append
5289 "http://pngu.mgh.harvard.edu/~purcell/plink/dist/plink-"
5290 version "-src.zip"))
5291 (sha256
5292 (base32 "0as8gxm4pjyc8dxmm1sl873rrd7wn5qs0l29nqfnl31x8i467xaa"))
5293 (patches (search-patches "plink-1.07-unclobber-i.patch"
5294 "plink-endian-detection.patch"))))
5295 (build-system gnu-build-system)
5296 (arguments
5297 '(#:tests? #f ;no "check" target
5298 #:make-flags (list (string-append "LIB_LAPACK="
5299 (assoc-ref %build-inputs "lapack")
5300 "/lib/liblapack.so")
5301 "WITH_LAPACK=1"
5302 "FORCE_DYNAMIC=1"
5303 ;; disable phoning home
5304 "WITH_WEBCHECK=")
5305 #:phases
5306 (modify-phases %standard-phases
5307 ;; no "configure" script
5308 (delete 'configure)
5309 (replace 'install
5310 (lambda* (#:key outputs #:allow-other-keys)
5311 (let ((bin (string-append (assoc-ref outputs "out")
5312 "/bin/")))
5313 (install-file "plink" bin)
5314 #t))))))
5315 (inputs
5316 `(("zlib" ,zlib)
5317 ("lapack" ,lapack)))
5318 (native-inputs
5319 `(("unzip" ,unzip)))
5320 (home-page "http://pngu.mgh.harvard.edu/~purcell/plink/")
5321 (synopsis "Whole genome association analysis toolset")
5322 (description
5323 "PLINK is a whole genome association analysis toolset, designed to
5324 perform a range of basic, large-scale analyses in a computationally efficient
5325 manner. The focus of PLINK is purely on analysis of genotype/phenotype data,
5326 so there is no support for steps prior to this (e.g. study design and
5327 planning, generating genotype or CNV calls from raw data). Through
5328 integration with gPLINK and Haploview, there is some support for the
5329 subsequent visualization, annotation and storage of results.")
5330 ;; Code is released under GPLv2, except for fisher.h, which is under
5331 ;; LGPLv2.1+
5332 (license (list license:gpl2 license:lgpl2.1+))))
5333
5334 (define-public plink-ng
5335 (package (inherit plink)
5336 (name "plink-ng")
5337 (version "1.90b4")
5338 (source
5339 (origin
5340 (method url-fetch)
5341 (uri (string-append "https://github.com/chrchang/plink-ng/archive/v"
5342 version ".tar.gz"))
5343 (file-name (string-append name "-" version ".tar.gz"))
5344 (sha256
5345 (base32 "09ixrds009aczjswxr2alcb774mksq5g0v78dgjjn1h4dky0kf9a"))))
5346 (build-system gnu-build-system)
5347 (arguments
5348 '(#:tests? #f ;no "check" target
5349 #:make-flags (list "BLASFLAGS=-llapack -lopenblas"
5350 "CFLAGS=-Wall -O2 -DDYNAMIC_ZLIB=1"
5351 "ZLIB=-lz"
5352 "-f" "Makefile.std")
5353 #:phases
5354 (modify-phases %standard-phases
5355 (add-after 'unpack 'chdir
5356 (lambda _ (chdir "1.9") #t))
5357 (delete 'configure) ; no "configure" script
5358 (replace 'install
5359 (lambda* (#:key outputs #:allow-other-keys)
5360 (let ((bin (string-append (assoc-ref outputs "out")
5361 "/bin/")))
5362 (install-file "plink" bin)
5363 #t))))))
5364 (inputs
5365 `(("zlib" ,zlib)
5366 ("lapack" ,lapack)
5367 ("openblas" ,openblas)))
5368 (home-page "https://www.cog-genomics.org/plink/")
5369 (license license:gpl3+)))
5370
5371 (define-public smithlab-cpp
5372 (let ((revision "1")
5373 (commit "728a097bec88c6f4b8528b685932049e660eff2e"))
5374 (package
5375 (name "smithlab-cpp")
5376 (version (string-append "0." revision "." (string-take commit 7)))
5377 (source (origin
5378 (method git-fetch)
5379 (uri (git-reference
5380 (url "https://github.com/smithlabcode/smithlab_cpp.git")
5381 (commit commit)))
5382 (file-name (string-append name "-" version "-checkout"))
5383 (sha256
5384 (base32
5385 "0d476lmj312xk77kr9fzrv7z1bv96yfyx0w7y62ycmnfbx32ll74"))))
5386 (build-system gnu-build-system)
5387 (arguments
5388 `(#:modules ((guix build gnu-build-system)
5389 (guix build utils)
5390 (srfi srfi-26))
5391 #:tests? #f ;no "check" target
5392 #:phases
5393 (modify-phases %standard-phases
5394 (add-after 'unpack 'use-samtools-headers
5395 (lambda _
5396 (substitute* '("SAM.cpp"
5397 "SAM.hpp")
5398 (("sam.h") "samtools/sam.h"))
5399 #t))
5400 (replace 'install
5401 (lambda* (#:key outputs #:allow-other-keys)
5402 (let* ((out (assoc-ref outputs "out"))
5403 (lib (string-append out "/lib"))
5404 (include (string-append out "/include/smithlab-cpp")))
5405 (mkdir-p lib)
5406 (mkdir-p include)
5407 (for-each (cut install-file <> lib)
5408 (find-files "." "\\.o$"))
5409 (for-each (cut install-file <> include)
5410 (find-files "." "\\.hpp$")))
5411 #t))
5412 (delete 'configure))))
5413 (inputs
5414 `(("samtools" ,samtools-0.1)
5415 ("zlib" ,zlib)))
5416 (home-page "https://github.com/smithlabcode/smithlab_cpp")
5417 (synopsis "C++ helper library for functions used in Smith lab projects")
5418 (description
5419 "Smithlab CPP is a C++ library that includes functions used in many of
5420 the Smith lab bioinformatics projects, such as a wrapper around Samtools data
5421 structures, classes for genomic regions, mapped sequencing reads, etc.")
5422 (license license:gpl3+))))
5423
5424 (define-public preseq
5425 (package
5426 (name "preseq")
5427 (version "2.0")
5428 (source (origin
5429 (method url-fetch)
5430 (uri (string-append "https://github.com/smithlabcode/"
5431 "preseq/archive/v" version ".tar.gz"))
5432 (file-name (string-append name "-" version ".tar.gz"))
5433 (sha256
5434 (base32 "08r684l50pnxjpvmhzjgqq56yv9rfw90k8vx0nsrnrzk8mf9hsdq"))
5435 (modules '((guix build utils)))
5436 (snippet '(begin
5437 ;; Remove bundled samtools.
5438 (delete-file-recursively "samtools")
5439 #t))))
5440 (build-system gnu-build-system)
5441 (arguments
5442 `(#:tests? #f ;no "check" target
5443 #:phases
5444 (modify-phases %standard-phases
5445 (delete 'configure))
5446 #:make-flags
5447 (list (string-append "PREFIX="
5448 (assoc-ref %outputs "out"))
5449 (string-append "LIBBAM="
5450 (assoc-ref %build-inputs "samtools")
5451 "/lib/libbam.a")
5452 (string-append "SMITHLAB_CPP="
5453 (assoc-ref %build-inputs "smithlab-cpp")
5454 "/lib")
5455 "PROGS=preseq"
5456 "INCLUDEDIRS=$(SMITHLAB_CPP)/../include/smithlab-cpp $(SAMTOOLS_DIR)")))
5457 (inputs
5458 `(("gsl" ,gsl)
5459 ("samtools" ,samtools-0.1)
5460 ("smithlab-cpp" ,smithlab-cpp)
5461 ("zlib" ,zlib)))
5462 (home-page "http://smithlabresearch.org/software/preseq/")
5463 (synopsis "Program for analyzing library complexity")
5464 (description
5465 "The preseq package is aimed at predicting and estimating the complexity
5466 of a genomic sequencing library, equivalent to predicting and estimating the
5467 number of redundant reads from a given sequencing depth and how many will be
5468 expected from additional sequencing using an initial sequencing experiment.
5469 The estimates can then be used to examine the utility of further sequencing,
5470 optimize the sequencing depth, or to screen multiple libraries to avoid low
5471 complexity samples.")
5472 (license license:gpl3+)))
5473
5474 (define-public python-screed
5475 (package
5476 (name "python-screed")
5477 (version "0.9")
5478 (source
5479 (origin
5480 (method url-fetch)
5481 (uri (pypi-uri "screed" version))
5482 (sha256
5483 (base32
5484 "18czszp9fkx3j6jr7y5kp6dfialscgddk05mw1zkhh2zhn0jd8i0"))))
5485 (build-system python-build-system)
5486 (arguments
5487 `(#:phases
5488 (modify-phases %standard-phases
5489 (replace 'check
5490 (lambda _
5491 (setenv "PYTHONPATH"
5492 (string-append (getenv "PYTHONPATH") ":."))
5493 (zero? (system* "nosetests" "--attr" "!known_failing")))))))
5494 (native-inputs
5495 `(("python-nose" ,python-nose)))
5496 (inputs
5497 `(("python-bz2file" ,python-bz2file)))
5498 (home-page "https://github.com/dib-lab/screed/")
5499 (synopsis "Short read sequence database utilities")
5500 (description "Screed parses FASTA and FASTQ files and generates databases.
5501 Values such as sequence name, sequence description, sequence quality and the
5502 sequence itself can be retrieved from these databases.")
5503 (license license:bsd-3)))
5504
5505 (define-public python2-screed
5506 (package-with-python2 python-screed))
5507
5508 (define-public sra-tools
5509 (package
5510 (name "sra-tools")
5511 (version "2.8.2-1")
5512 (source
5513 (origin
5514 (method url-fetch)
5515 (uri
5516 (string-append "https://github.com/ncbi/sra-tools/archive/"
5517 version ".tar.gz"))
5518 (file-name (string-append name "-" version ".tar.gz"))
5519 (sha256
5520 (base32
5521 "1camsijmvv2s45mb4iyf44ghl4gkd4rl0viphpcgl3ccchy32a0g"))))
5522 (build-system gnu-build-system)
5523 (arguments
5524 `(#:parallel-build? #f ; not supported
5525 #:tests? #f ; no "check" target
5526 #:make-flags
5527 (list (string-append "DEFAULT_CRT="
5528 (assoc-ref %build-inputs "ncbi-vdb")
5529 "/kfg/certs.kfg")
5530 (string-append "DEFAULT_KFG="
5531 (assoc-ref %build-inputs "ncbi-vdb")
5532 "/kfg/default.kfg")
5533 (string-append "VDB_LIBDIR="
5534 (assoc-ref %build-inputs "ncbi-vdb")
5535 ,(if (string-prefix? "x86_64"
5536 (or (%current-target-system)
5537 (%current-system)))
5538 "/lib64"
5539 "/lib32")))
5540 #:phases
5541 (modify-phases %standard-phases
5542 (add-before 'configure 'set-perl-search-path
5543 (lambda _
5544 ;; Work around "dotless @INC" build failure.
5545 (setenv "PERL5LIB"
5546 (string-append (getcwd) "/setup:"
5547 (getenv "PERL5LIB")))
5548 #t))
5549 (replace 'configure
5550 (lambda* (#:key inputs outputs #:allow-other-keys)
5551 ;; The build system expects a directory containing the sources and
5552 ;; raw build output of ncbi-vdb, including files that are not
5553 ;; installed. Since we are building against an installed version of
5554 ;; ncbi-vdb, the following modifications are needed.
5555 (substitute* "setup/konfigure.perl"
5556 ;; Make the configure script look for the "ilib" directory of
5557 ;; "ncbi-vdb" without first checking for the existence of a
5558 ;; matching library in its "lib" directory.
5559 (("^ my \\$f = File::Spec->catdir\\(\\$libdir, \\$lib\\);")
5560 "my $f = File::Spec->catdir($ilibdir, $ilib);")
5561 ;; Look for interface libraries in ncbi-vdb's "ilib" directory.
5562 (("my \\$ilibdir = File::Spec->catdir\\(\\$builddir, 'ilib'\\);")
5563 "my $ilibdir = File::Spec->catdir($dir, 'ilib');"))
5564
5565 ;; Dynamic linking
5566 (substitute* "tools/copycat/Makefile"
5567 (("smagic-static") "lmagic"))
5568
5569 ;; The 'configure' script doesn't recognize things like
5570 ;; '--enable-fast-install'.
5571 (zero? (system*
5572 "./configure"
5573 (string-append "--build-prefix=" (getcwd) "/build")
5574 (string-append "--prefix=" (assoc-ref outputs "out"))
5575 (string-append "--debug")
5576 (string-append "--with-fuse-prefix="
5577 (assoc-ref inputs "fuse"))
5578 (string-append "--with-magic-prefix="
5579 (assoc-ref inputs "libmagic"))
5580 ;; TODO: building with libxml2 fails with linker errors
5581 ;; (string-append "--with-xml2-prefix="
5582 ;; (assoc-ref inputs "libxml2"))
5583 (string-append "--with-ncbi-vdb-sources="
5584 (assoc-ref inputs "ncbi-vdb"))
5585 (string-append "--with-ncbi-vdb-build="
5586 (assoc-ref inputs "ncbi-vdb"))
5587 (string-append "--with-ngs-sdk-prefix="
5588 (assoc-ref inputs "ngs-sdk"))
5589 (string-append "--with-hdf5-prefix="
5590 (assoc-ref inputs "hdf5"))))))
5591 ;; This version of sra-tools fails to build with glibc because of a
5592 ;; naming conflict. glibc-2.25/include/bits/mathcalls.h already
5593 ;; contains a definition of "canonicalize", so we rename it.
5594 ;;
5595 ;; See upstream bug report:
5596 ;; https://github.com/ncbi/sra-tools/issues/67
5597 (add-after 'unpack 'patch-away-glibc-conflict
5598 (lambda _
5599 (substitute* "tools/bam-loader/bam.c"
5600 (("canonicalize\\(" line)
5601 (string-append "sra_tools_" line)))
5602 #t)))))
5603 (native-inputs `(("perl" ,perl)))
5604 (inputs
5605 `(("ngs-sdk" ,ngs-sdk)
5606 ("ncbi-vdb" ,ncbi-vdb)
5607 ("libmagic" ,file)
5608 ("fuse" ,fuse)
5609 ("hdf5" ,hdf5)
5610 ("zlib" ,zlib)))
5611 (home-page "http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software")
5612 (synopsis "Tools and libraries for reading and writing sequencing data")
5613 (description
5614 "The SRA Toolkit from NCBI is a collection of tools and libraries for
5615 reading of sequencing files from the Sequence Read Archive (SRA) database and
5616 writing files into the .sra format.")
5617 (license license:public-domain)))
5618
5619 (define-public seqan
5620 (package
5621 (name "seqan")
5622 (version "1.4.2")
5623 (source (origin
5624 (method url-fetch)
5625 (uri (string-append "http://packages.seqan.de/seqan-library/"
5626 "seqan-library-" version ".tar.bz2"))
5627 (sha256
5628 (base32
5629 "05s3wrrwn50f81aklfm65i4a749zag1vr8z03k21xm0pdxy47yvp"))))
5630 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
5631 ;; makes sense to split the outputs.
5632 (outputs '("out" "doc"))
5633 (build-system trivial-build-system)
5634 (arguments
5635 `(#:modules ((guix build utils))
5636 #:builder
5637 (begin
5638 (use-modules (guix build utils))
5639 (let ((tar (assoc-ref %build-inputs "tar"))
5640 (bzip (assoc-ref %build-inputs "bzip2"))
5641 (out (assoc-ref %outputs "out"))
5642 (doc (assoc-ref %outputs "doc")))
5643 (setenv "PATH" (string-append tar "/bin:" bzip "/bin"))
5644 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
5645 (chdir (string-append "seqan-library-" ,version))
5646 (copy-recursively "include" (string-append out "/include"))
5647 (copy-recursively "share" (string-append doc "/share"))
5648 #t))))
5649 (native-inputs
5650 `(("source" ,source)
5651 ("tar" ,tar)
5652 ("bzip2" ,bzip2)))
5653 (home-page "http://www.seqan.de")
5654 (synopsis "Library for nucleotide sequence analysis")
5655 (description
5656 "SeqAn is a C++ library of efficient algorithms and data structures for
5657 the analysis of sequences with the focus on biological data. It contains
5658 algorithms and data structures for string representation and their
5659 manipulation, online and indexed string search, efficient I/O of
5660 bioinformatics file formats, sequence alignment, and more.")
5661 (license license:bsd-3)))
5662
5663 (define-public seqmagick
5664 (package
5665 (name "seqmagick")
5666 (version "0.7.0")
5667 (source
5668 (origin
5669 (method url-fetch)
5670 (uri (pypi-uri "seqmagick" version))
5671 (sha256
5672 (base32
5673 "12bfyp8nqi0hd36rmj450aygafp01qy3hkbvlwn3bk39pyjjkgg5"))))
5674 (build-system python-build-system)
5675 (inputs
5676 `(("python-biopython" ,python-biopython)))
5677 (native-inputs
5678 `(("python-nose" ,python-nose)))
5679 (home-page "https://github.com/fhcrc/seqmagick")
5680 (synopsis "Tools for converting and modifying sequence files")
5681 (description
5682 "Bioinformaticians often have to convert sequence files between formats
5683 and do little manipulations on them, and it's not worth writing scripts for
5684 that. Seqmagick is a utility to expose the file format conversion in
5685 BioPython in a convenient way. Instead of having a big mess of scripts, there
5686 is one that takes arguments.")
5687 (license license:gpl3)))
5688
5689 (define-public seqtk
5690 (package
5691 (name "seqtk")
5692 (version "1.2")
5693 (source (origin
5694 (method url-fetch)
5695 (uri (string-append
5696 "https://github.com/lh3/seqtk/archive/v"
5697 version ".tar.gz"))
5698 (file-name (string-append name "-" version ".tar.gz"))
5699 (sha256
5700 (base32
5701 "0ywdyzpmfiz2wp6ampbzqg4y8bj450nfgqarpamg045b8mk32lxx"))
5702 (modules '((guix build utils)))
5703 (snippet
5704 '(begin
5705 ;; Remove extraneous header files, as is done in the seqtk
5706 ;; master branch.
5707 (for-each (lambda (file) (delete-file file))
5708 (list "ksort.h" "kstring.h" "kvec.h"))
5709 #t))))
5710 (build-system gnu-build-system)
5711 (arguments
5712 `(#:phases
5713 (modify-phases %standard-phases
5714 (delete 'configure)
5715 (replace 'check
5716 ;; There are no tests, so we just run a sanity check.
5717 (lambda _ (zero? (system* "./seqtk" "seq"))))
5718 (replace 'install
5719 (lambda* (#:key outputs #:allow-other-keys)
5720 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5721 (install-file "seqtk" bin)))))))
5722 (inputs
5723 `(("zlib" ,zlib)))
5724 (home-page "https://github.com/lh3/seqtk")
5725 (synopsis "Toolkit for processing biological sequences in FASTA/Q format")
5726 (description
5727 "Seqtk is a fast and lightweight tool for processing sequences in the
5728 FASTA or FASTQ format. It parses both FASTA and FASTQ files which can be
5729 optionally compressed by gzip.")
5730 (license license:expat)))
5731
5732 (define-public snap-aligner
5733 (package
5734 (name "snap-aligner")
5735 (version "1.0beta.18")
5736 (source (origin
5737 (method url-fetch)
5738 (uri (string-append
5739 "https://github.com/amplab/snap/archive/v"
5740 version ".tar.gz"))
5741 (file-name (string-append name "-" version ".tar.gz"))
5742 (sha256
5743 (base32
5744 "1vnsjwv007k1fl1q7d681kbwn6bc66cgw6h16hym6gvyy71qv2ly"))))
5745 (build-system gnu-build-system)
5746 (arguments
5747 '(#:phases
5748 (modify-phases %standard-phases
5749 (delete 'configure)
5750 (replace 'check (lambda _ (zero? (system* "./unit_tests"))))
5751 (replace 'install
5752 (lambda* (#:key outputs #:allow-other-keys)
5753 (let* ((out (assoc-ref outputs "out"))
5754 (bin (string-append out "/bin")))
5755 (install-file "snap-aligner" bin)
5756 (install-file "SNAPCommand" bin)
5757 #t))))))
5758 (native-inputs
5759 `(("zlib" ,zlib)))
5760 (home-page "http://snap.cs.berkeley.edu/")
5761 (synopsis "Short read DNA sequence aligner")
5762 (description
5763 "SNAP is a fast and accurate aligner for short DNA reads. It is
5764 optimized for modern read lengths of 100 bases or higher, and takes advantage
5765 of these reads to align data quickly through a hash-based indexing scheme.")
5766 ;; 32-bit systems are not supported by the unpatched code.
5767 ;; Following the bug reports https://github.com/amplab/snap/issues/68 and
5768 ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812378 we see that
5769 ;; systems without a lot of memory cannot make good use of this program.
5770 (supported-systems '("x86_64-linux"))
5771 (license license:asl2.0)))
5772
5773 (define-public sortmerna
5774 (package
5775 (name "sortmerna")
5776 (version "2.1b")
5777 (source
5778 (origin
5779 (method url-fetch)
5780 (uri (string-append
5781 "https://github.com/biocore/sortmerna/archive/"
5782 version ".tar.gz"))
5783 (file-name (string-append name "-" version ".tar.gz"))
5784 (sha256
5785 (base32
5786 "1ghaghvd82af9j5adavxh77g7hm247d1r69m3fbi6f1jdivj5ldk"))))
5787 (build-system gnu-build-system)
5788 (outputs '("out" ;for binaries
5789 "db")) ;for sequence databases
5790 (arguments
5791 `(#:phases
5792 (modify-phases %standard-phases
5793 (replace 'install
5794 (lambda* (#:key outputs #:allow-other-keys)
5795 (let* ((out (assoc-ref outputs "out"))
5796 (bin (string-append out "/bin"))
5797 (db (assoc-ref outputs "db"))
5798 (share
5799 (string-append db "/share/sortmerna/rRNA_databases")))
5800 (install-file "sortmerna" bin)
5801 (install-file "indexdb_rna" bin)
5802 (for-each (lambda (file)
5803 (install-file file share))
5804 (find-files "rRNA_databases" ".*fasta"))
5805 #t))))))
5806 (inputs
5807 `(("zlib" ,zlib)))
5808 (home-page "http://bioinfo.lifl.fr/RNA/sortmerna")
5809 (synopsis "Biological sequence analysis tool for NGS reads")
5810 (description
5811 "SortMeRNA is a biological sequence analysis tool for filtering, mapping
5812 and operational taxonomic unit (OTU) picking of next generation
5813 sequencing (NGS) reads. The core algorithm is based on approximate seeds and
5814 allows for fast and sensitive analyses of nucleotide sequences. The main
5815 application of SortMeRNA is filtering rRNA from metatranscriptomic data.")
5816 ;; The source includes x86 specific code
5817 (supported-systems '("x86_64-linux" "i686-linux"))
5818 (license license:lgpl3)))
5819
5820 (define-public star
5821 (package
5822 (name "star")
5823 (version "2.6.0a")
5824 (source (origin
5825 (method url-fetch)
5826 (uri (string-append "https://github.com/alexdobin/STAR/archive/"
5827 version ".tar.gz"))
5828 (file-name (string-append name "-" version ".tar.gz"))
5829 (sha256
5830 (base32
5831 "0yci4ymy4407kjh0lqp021nzccp6r31wgrkixkmix5p130cxvc56"))
5832 (modules '((guix build utils)))
5833 (snippet
5834 '(begin
5835 (substitute* "source/Makefile"
5836 (("/bin/rm") "rm"))
5837 ;; Remove pre-built binaries and bundled htslib sources.
5838 (delete-file-recursively "bin/MacOSX_x86_64")
5839 (delete-file-recursively "bin/Linux_x86_64")
5840 (delete-file-recursively "bin/Linux_x86_64_static")
5841 (delete-file-recursively "source/htslib")
5842 #t))))
5843 (build-system gnu-build-system)
5844 (arguments
5845 '(#:tests? #f ;no check target
5846 #:make-flags '("STAR")
5847 #:phases
5848 (modify-phases %standard-phases
5849 (add-after 'unpack 'enter-source-dir
5850 (lambda _ (chdir "source") #t))
5851 (add-after 'enter-source-dir 'make-reproducible
5852 (lambda _
5853 (substitute* "Makefile"
5854 (("(COMPILATION_TIME_PLACE=\")(.*)(\")" _ pre mid post)
5855 (string-append pre "Built with Guix" post)))))
5856 (add-after 'enter-source-dir 'do-not-use-bundled-htslib
5857 (lambda _
5858 (substitute* "Makefile"
5859 (("(Depend.list: \\$\\(SOURCES\\) parametersDefault\\.xxd) htslib"
5860 _ prefix) prefix))
5861 (substitute* '("BAMfunctions.cpp"
5862 "signalFromBAM.h"
5863 "bam_cat.h"
5864 "bam_cat.c"
5865 "STAR.cpp"
5866 "bamRemoveDuplicates.cpp")
5867 (("#include \"htslib/([^\"]+\\.h)\"" _ header)
5868 (string-append "#include <" header ">")))
5869 (substitute* "IncludeDefine.h"
5870 (("\"htslib/(htslib/[^\"]+.h)\"" _ header)
5871 (string-append "<" header ">")))
5872 #t))
5873 (replace 'install
5874 (lambda* (#:key outputs #:allow-other-keys)
5875 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5876 (install-file "STAR" bin))
5877 #t))
5878 (delete 'configure))))
5879 (native-inputs
5880 `(("xxd" ,xxd)))
5881 (inputs
5882 `(("htslib" ,htslib)
5883 ("zlib" ,zlib)))
5884 (home-page "https://github.com/alexdobin/STAR")
5885 (synopsis "Universal RNA-seq aligner")
5886 (description
5887 "The Spliced Transcripts Alignment to a Reference (STAR) software is
5888 based on a previously undescribed RNA-seq alignment algorithm that uses
5889 sequential maximum mappable seed search in uncompressed suffix arrays followed
5890 by seed clustering and stitching procedure. In addition to unbiased de novo
5891 detection of canonical junctions, STAR can discover non-canonical splices and
5892 chimeric (fusion) transcripts, and is also capable of mapping full-length RNA
5893 sequences.")
5894 ;; Only 64-bit systems are supported according to the README.
5895 (supported-systems '("x86_64-linux" "mips64el-linux"))
5896 ;; STAR is licensed under GPLv3 or later; htslib is MIT-licensed.
5897 (license license:gpl3+)))
5898
5899 (define-public subread
5900 (package
5901 (name "subread")
5902 (version "1.6.0")
5903 (source (origin
5904 (method url-fetch)
5905 (uri (string-append "mirror://sourceforge/subread/subread-"
5906 version "/subread-" version "-source.tar.gz"))
5907 (sha256
5908 (base32
5909 "0ah0n4jx6ksk2m2j7xk385x2qzmk1y4rfc6a4mfrdqrlq721w99i"))))
5910 (build-system gnu-build-system)
5911 (arguments
5912 `(#:tests? #f ;no "check" target
5913 ;; The CC and CCFLAGS variables are set to contain a lot of x86_64
5914 ;; optimizations by default, so we override these flags such that x86_64
5915 ;; flags are only added when the build target is an x86_64 system.
5916 #:make-flags
5917 (list (let ((system ,(or (%current-target-system)
5918 (%current-system)))
5919 (flags '("-ggdb" "-fomit-frame-pointer"
5920 "-ffast-math" "-funroll-loops"
5921 "-fmessage-length=0"
5922 "-O9" "-Wall" "-DMAKE_FOR_EXON"
5923 "-DMAKE_STANDALONE"
5924 "-DSUBREAD_VERSION=\\\"${SUBREAD_VERSION}\\\""))
5925 (flags64 '("-mmmx" "-msse" "-msse2" "-msse3")))
5926 (if (string-prefix? "x86_64" system)
5927 (string-append "CCFLAGS=" (string-join (append flags flags64)))
5928 (string-append "CCFLAGS=" (string-join flags))))
5929 "-f" "Makefile.Linux"
5930 "CC=gcc ${CCFLAGS}")
5931 #:phases
5932 (modify-phases %standard-phases
5933 (add-after 'unpack 'enter-dir
5934 (lambda _ (chdir "src") #t))
5935 (replace 'install
5936 (lambda* (#:key outputs #:allow-other-keys)
5937 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5938 (mkdir-p bin)
5939 (copy-recursively "../bin" bin))))
5940 ;; no "configure" script
5941 (delete 'configure))))
5942 (inputs `(("zlib" ,zlib)))
5943 (home-page "http://bioinf.wehi.edu.au/subread-package/")
5944 (synopsis "Tool kit for processing next-gen sequencing data")
5945 (description
5946 "The subread package contains the following tools: subread aligner, a
5947 general-purpose read aligner; subjunc aligner: detecting exon-exon junctions
5948 and mapping RNA-seq reads; featureCounts: counting mapped reads for genomic
5949 features; exactSNP: a SNP caller that discovers SNPs by testing signals
5950 against local background noises.")
5951 (license license:gpl3+)))
5952
5953 (define-public stringtie
5954 (package
5955 (name "stringtie")
5956 (version "1.2.1")
5957 (source (origin
5958 (method url-fetch)
5959 (uri (string-append "http://ccb.jhu.edu/software/stringtie/dl/"
5960 "stringtie-" version ".tar.gz"))
5961 (sha256
5962 (base32
5963 "1cqllsc1maq4kh92isi8yadgzbmnf042hlnalpk3y59aph1z3bfz"))
5964 (modules '((guix build utils)))
5965 (snippet
5966 '(begin
5967 (delete-file-recursively "samtools-0.1.18")
5968 #t))))
5969 (build-system gnu-build-system)
5970 (arguments
5971 `(#:tests? #f ;no test suite
5972 #:phases
5973 (modify-phases %standard-phases
5974 ;; no configure script
5975 (delete 'configure)
5976 (add-before 'build 'use-system-samtools
5977 (lambda _
5978 (substitute* "Makefile"
5979 (("stringtie: \\$\\{BAM\\}/libbam\\.a")
5980 "stringtie: "))
5981 (substitute* '("gclib/GBam.h"
5982 "gclib/GBam.cpp")
5983 (("#include \"(bam|sam|kstring).h\"" _ header)
5984 (string-append "#include <samtools/" header ".h>")))
5985 #t))
5986 (add-after 'unpack 'remove-duplicate-typedef
5987 (lambda _
5988 ;; This typedef conflicts with the typedef in
5989 ;; glibc-2.25/include/bits/types.h
5990 (substitute* "gclib/GThreads.h"
5991 (("typedef long long __intmax_t;") ""))
5992 #t))
5993 (replace 'install
5994 (lambda* (#:key outputs #:allow-other-keys)
5995 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5996 (install-file "stringtie" bin)
5997 #t))))))
5998 (inputs
5999 `(("samtools" ,samtools-0.1)
6000 ("zlib" ,zlib)))
6001 (home-page "http://ccb.jhu.edu/software/stringtie/")
6002 (synopsis "Transcript assembly and quantification for RNA-Seq data")
6003 (description
6004 "StringTie is a fast and efficient assembler of RNA-Seq sequence
6005 alignments into potential transcripts. It uses a novel network flow algorithm
6006 as well as an optional de novo assembly step to assemble and quantitate
6007 full-length transcripts representing multiple splice variants for each gene
6008 locus. Its input can include not only the alignments of raw reads used by
6009 other transcript assemblers, but also alignments of longer sequences that have
6010 been assembled from those reads. To identify differentially expressed genes
6011 between experiments, StringTie's output can be processed either by the
6012 Cuffdiff or Ballgown programs.")
6013 (license license:artistic2.0)))
6014
6015 (define-public taxtastic
6016 (package
6017 (name "taxtastic")
6018 (version "0.8.5")
6019 (source (origin
6020 (method url-fetch)
6021 (uri (pypi-uri "taxtastic" version))
6022 (sha256
6023 (base32
6024 "03pysw79lsrvz4lwzis88j15067ffqbi4cid5pqhrlxmd6bh8rrk"))))
6025 (build-system python-build-system)
6026 (arguments
6027 `(#:python ,python-2
6028 #:phases
6029 (modify-phases %standard-phases
6030 (replace 'check
6031 (lambda _
6032 (zero? (system* "python" "-m" "unittest" "discover" "-v")))))))
6033 (propagated-inputs
6034 `(("python-sqlalchemy" ,python2-sqlalchemy)
6035 ("python-decorator" ,python2-decorator)
6036 ("python-biopython" ,python2-biopython)
6037 ("python-pandas" ,python2-pandas)))
6038 (home-page "https://github.com/fhcrc/taxtastic")
6039 (synopsis "Tools for taxonomic naming and annotation")
6040 (description
6041 "Taxtastic is software written in python used to build and maintain
6042 reference packages i.e. collections of reference trees, reference alignments,
6043 profiles, and associated taxonomic information.")
6044 (license license:gpl3+)))
6045
6046 (define-public vcftools
6047 (package
6048 (name "vcftools")
6049 (version "0.1.15")
6050 (source (origin
6051 (method url-fetch)
6052 (uri (string-append
6053 "https://github.com/vcftools/vcftools/releases/download/v"
6054 version "/vcftools-" version ".tar.gz"))
6055 (sha256
6056 (base32
6057 "1qw30c45wihgy632rbz4rh3njnwj4msj46l1rsgdhyg6bgypmr1i"))))
6058 (build-system gnu-build-system)
6059 (arguments
6060 `(#:tests? #f ; no "check" target
6061 #:make-flags (list
6062 "CFLAGS=-O2" ; override "-m64" flag
6063 (string-append "PREFIX=" (assoc-ref %outputs "out"))
6064 (string-append "MANDIR=" (assoc-ref %outputs "out")
6065 "/share/man/man1"))))
6066 (native-inputs
6067 `(("pkg-config" ,pkg-config)))
6068 (inputs
6069 `(("perl" ,perl)
6070 ("zlib" ,zlib)))
6071 (home-page "https://vcftools.github.io/")
6072 (synopsis "Tools for working with VCF files")
6073 (description
6074 "VCFtools is a program package designed for working with VCF files, such
6075 as those generated by the 1000 Genomes Project. The aim of VCFtools is to
6076 provide easily accessible methods for working with complex genetic variation
6077 data in the form of VCF files.")
6078 ;; The license is declared as LGPLv3 in the README and
6079 ;; at https://vcftools.github.io/license.html
6080 (license license:lgpl3)))
6081
6082 (define-public infernal
6083 (package
6084 (name "infernal")
6085 (version "1.1.2")
6086 (source (origin
6087 (method url-fetch)
6088 (uri (string-append "http://eddylab.org/software/infernal/"
6089 "infernal-" version ".tar.gz"))
6090 (sha256
6091 (base32
6092 "0sr2hiz3qxfwqpz3whxr6n82p3x27336v3f34iqznp10hks2935c"))))
6093 (build-system gnu-build-system)
6094 (native-inputs
6095 `(("perl" ,perl))) ; for tests
6096 (home-page "http://eddylab.org/infernal/")
6097 (synopsis "Inference of RNA alignments")
6098 (description "Infernal (\"INFERence of RNA ALignment\") is a tool for
6099 searching DNA sequence databases for RNA structure and sequence similarities.
6100 It is an implementation of a special case of profile stochastic context-free
6101 grammars called @dfn{covariance models} (CMs). A CM is like a sequence
6102 profile, but it scores a combination of sequence consensus and RNA secondary
6103 structure consensus, so in many cases, it is more capable of identifying RNA
6104 homologs that conserve their secondary structure more than their primary
6105 sequence.")
6106 ;; Infernal 1.1.2 requires VMX or SSE capability for parallel instructions.
6107 (supported-systems '("i686-linux" "x86_64-linux"))
6108 (license license:bsd-3)))
6109
6110 (define-public r-centipede
6111 (package
6112 (name "r-centipede")
6113 (version "1.2")
6114 (source (origin
6115 (method url-fetch)
6116 (uri (string-append "http://download.r-forge.r-project.org/"
6117 "src/contrib/CENTIPEDE_" version ".tar.gz"))
6118 (sha256
6119 (base32
6120 "1hsx6qgwr0i67fhy9257zj7s0ppncph2hjgbia5nn6nfmj0ax6l9"))))
6121 (build-system r-build-system)
6122 (home-page "http://centipede.uchicago.edu/")
6123 (synopsis "Predict transcription factor binding sites")
6124 (description
6125 "CENTIPEDE applies a hierarchical Bayesian mixture model to infer regions
6126 of the genome that are bound by particular transcription factors. It starts
6127 by identifying a set of candidate binding sites, and then aims to classify the
6128 sites according to whether each site is bound or not bound by a transcription
6129 factor. CENTIPEDE is an unsupervised learning algorithm that discriminates
6130 between two different types of motif instances using as much relevant
6131 information as possible.")
6132 (license (list license:gpl2+ license:gpl3+))))
6133
6134 (define-public r-vegan
6135 (package
6136 (name "r-vegan")
6137 (version "2.5-2")
6138 (source
6139 (origin
6140 (method url-fetch)
6141 (uri (cran-uri "vegan" version))
6142 (sha256
6143 (base32
6144 "13pyqvlpz64qibi8k5d109v7q09j06mbv6ndix3n4cn21mjx391c"))))
6145 (build-system r-build-system)
6146 (native-inputs
6147 `(("gfortran" ,gfortran)))
6148 (propagated-inputs
6149 `(("r-cluster" ,r-cluster)
6150 ("r-knitr" ,r-knitr) ; needed for vignettes
6151 ("r-lattice" ,r-lattice)
6152 ("r-mass" ,r-mass)
6153 ("r-mgcv" ,r-mgcv)
6154 ("r-permute" ,r-permute)))
6155 (home-page "https://cran.r-project.org/web/packages/vegan")
6156 (synopsis "Functions for community ecology")
6157 (description
6158 "The vegan package provides tools for descriptive community ecology. It
6159 has most basic functions of diversity analysis, community ordination and
6160 dissimilarity analysis. Most of its multivariate tools can be used for other
6161 data types as well.")
6162 (license license:gpl2+)))
6163
6164 (define-public r-annotate
6165 (package
6166 (name "r-annotate")
6167 (version "1.58.0")
6168 (source
6169 (origin
6170 (method url-fetch)
6171 (uri (bioconductor-uri "annotate" version))
6172 (sha256
6173 (base32
6174 "1qmncyvy147a1ll3iri45p822kcs3s7583jfnq9jf6sz9ilk8cjf"))))
6175 (build-system r-build-system)
6176 (propagated-inputs
6177 `(("r-annotationdbi" ,r-annotationdbi)
6178 ("r-biobase" ,r-biobase)
6179 ("r-biocgenerics" ,r-biocgenerics)
6180 ("r-dbi" ,r-dbi)
6181 ("r-rcurl" ,r-rcurl)
6182 ("r-xml" ,r-xml)
6183 ("r-xtable" ,r-xtable)))
6184 (home-page
6185 "https://bioconductor.org/packages/annotate")
6186 (synopsis "Annotation for microarrays")
6187 (description "This package provides R environments for the annotation of
6188 microarrays.")
6189 (license license:artistic2.0)))
6190
6191 (define-public r-copynumber
6192 (package
6193 (name "r-copynumber")
6194 (version "1.20.0")
6195 (source (origin
6196 (method url-fetch)
6197 (uri (bioconductor-uri "copynumber" version))
6198 (sha256
6199 (base32
6200 "0y9nnwb0psphp3ix88wj2f8z5gr45r5znf55w892ysm27isdpmms"))))
6201 (build-system r-build-system)
6202 (propagated-inputs
6203 `(("r-s4vectors" ,r-s4vectors)
6204 ("r-iranges" ,r-iranges)
6205 ("r-genomicranges" ,r-genomicranges)
6206 ("r-biocgenerics" ,r-biocgenerics)))
6207 (home-page "https://bioconductor.org/packages/copynumber")
6208 (synopsis "Segmentation of single- and multi-track copy number data")
6209 (description
6210 "This package segments single- and multi-track copy number data by a
6211 penalized least squares regression method.")
6212 (license license:artistic2.0)))
6213
6214 (define-public r-geneplotter
6215 (package
6216 (name "r-geneplotter")
6217 (version "1.58.0")
6218 (source
6219 (origin
6220 (method url-fetch)
6221 (uri (bioconductor-uri "geneplotter" version))
6222 (sha256
6223 (base32
6224 "055g28xgiazl4l0gkg8xiamks64f5yckjjyvw1abd6d6qjavwx0g"))))
6225 (build-system r-build-system)
6226 (propagated-inputs
6227 `(("r-annotate" ,r-annotate)
6228 ("r-annotationdbi" ,r-annotationdbi)
6229 ("r-biobase" ,r-biobase)
6230 ("r-biocgenerics" ,r-biocgenerics)
6231 ("r-lattice" ,r-lattice)
6232 ("r-rcolorbrewer" ,r-rcolorbrewer)))
6233 (home-page "https://bioconductor.org/packages/geneplotter")
6234 (synopsis "Graphics functions for genomic data")
6235 (description
6236 "This package provides functions for plotting genomic data.")
6237 (license license:artistic2.0)))
6238
6239 (define-public r-genefilter
6240 (package
6241 (name "r-genefilter")
6242 (version "1.62.0")
6243 (source
6244 (origin
6245 (method url-fetch)
6246 (uri (bioconductor-uri "genefilter" version))
6247 (sha256
6248 (base32
6249 "14l0ff02spmjwxj0m1czhg5vlkgwcfi73cym8m2n9vn6i7bjdaqi"))))
6250 (build-system r-build-system)
6251 (native-inputs
6252 `(("gfortran" ,gfortran)))
6253 (propagated-inputs
6254 `(("r-annotate" ,r-annotate)
6255 ("r-annotationdbi" ,r-annotationdbi)
6256 ("r-biobase" ,r-biobase)
6257 ("r-s4vectors" ,r-s4vectors)
6258 ("r-survival" ,r-survival)))
6259 (home-page "https://bioconductor.org/packages/genefilter")
6260 (synopsis "Filter genes from high-throughput experiments")
6261 (description
6262 "This package provides basic functions for filtering genes from
6263 high-throughput sequencing experiments.")
6264 (license license:artistic2.0)))
6265
6266 (define-public r-deseq2
6267 (package
6268 (name "r-deseq2")
6269 (version "1.20.0")
6270 (source
6271 (origin
6272 (method url-fetch)
6273 (uri (bioconductor-uri "DESeq2" version))
6274 (sha256
6275 (base32
6276 "1wjnfpb41a9mmf9a22bz4zh7r1d4id50vpdc1mn5vfzrz7li9qik"))))
6277 (properties `((upstream-name . "DESeq2")))
6278 (build-system r-build-system)
6279 (propagated-inputs
6280 `(("r-biobase" ,r-biobase)
6281 ("r-biocgenerics" ,r-biocgenerics)
6282 ("r-biocparallel" ,r-biocparallel)
6283 ("r-genefilter" ,r-genefilter)
6284 ("r-geneplotter" ,r-geneplotter)
6285 ("r-genomicranges" ,r-genomicranges)
6286 ("r-ggplot2" ,r-ggplot2)
6287 ("r-hmisc" ,r-hmisc)
6288 ("r-iranges" ,r-iranges)
6289 ("r-locfit" ,r-locfit)
6290 ("r-rcpp" ,r-rcpp)
6291 ("r-rcpparmadillo" ,r-rcpparmadillo)
6292 ("r-s4vectors" ,r-s4vectors)
6293 ("r-summarizedexperiment" ,r-summarizedexperiment)))
6294 (home-page "https://bioconductor.org/packages/DESeq2")
6295 (synopsis "Differential gene expression analysis")
6296 (description
6297 "This package provides functions to estimate variance-mean dependence in
6298 count data from high-throughput nucleotide sequencing assays and test for
6299 differential expression based on a model using the negative binomial
6300 distribution.")
6301 (license license:lgpl3+)))
6302
6303 (define-public r-dexseq
6304 (package
6305 (name "r-dexseq")
6306 (version "1.26.0")
6307 (source
6308 (origin
6309 (method url-fetch)
6310 (uri (bioconductor-uri "DEXSeq" version))
6311 (sha256
6312 (base32
6313 "1mqb3mdxcsi3largsl7k27bvqrgps9ixv806xvmf29pw0xn05sg1"))))
6314 (properties `((upstream-name . "DEXSeq")))
6315 (build-system r-build-system)
6316 (propagated-inputs
6317 `(("r-annotationdbi" ,r-annotationdbi)
6318 ("r-biobase" ,r-biobase)
6319 ("r-biocgenerics" ,r-biocgenerics)
6320 ("r-biocparallel" ,r-biocparallel)
6321 ("r-biomart" ,r-biomart)
6322 ("r-deseq2" ,r-deseq2)
6323 ("r-genefilter" ,r-genefilter)
6324 ("r-geneplotter" ,r-geneplotter)
6325 ("r-genomicranges" ,r-genomicranges)
6326 ("r-hwriter" ,r-hwriter)
6327 ("r-iranges" ,r-iranges)
6328 ("r-rcolorbrewer" ,r-rcolorbrewer)
6329 ("r-rsamtools" ,r-rsamtools)
6330 ("r-s4vectors" ,r-s4vectors)
6331 ("r-statmod" ,r-statmod)
6332 ("r-stringr" ,r-stringr)
6333 ("r-summarizedexperiment" ,r-summarizedexperiment)))
6334 (home-page "https://bioconductor.org/packages/DEXSeq")
6335 (synopsis "Inference of differential exon usage in RNA-Seq")
6336 (description
6337 "This package is focused on finding differential exon usage using RNA-seq
6338 exon counts between samples with different experimental designs. It provides
6339 functions that allows the user to make the necessary statistical tests based
6340 on a model that uses the negative binomial distribution to estimate the
6341 variance between biological replicates and generalized linear models for
6342 testing. The package also provides functions for the visualization and
6343 exploration of the results.")
6344 (license license:gpl3+)))
6345
6346 (define-public r-annotationforge
6347 (package
6348 (name "r-annotationforge")
6349 (version "1.22.0")
6350 (source
6351 (origin
6352 (method url-fetch)
6353 (uri (bioconductor-uri "AnnotationForge" version))
6354 (sha256
6355 (base32
6356 "12ffj7h95adiya5mzyjxazqn1qgr434ajpabfcyhrj5v83s4vk65"))))
6357 (properties
6358 `((upstream-name . "AnnotationForge")))
6359 (build-system r-build-system)
6360 (propagated-inputs
6361 `(("r-annotationdbi" ,r-annotationdbi)
6362 ("r-biobase" ,r-biobase)
6363 ("r-biocgenerics" ,r-biocgenerics)
6364 ("r-dbi" ,r-dbi)
6365 ("r-rcurl" ,r-rcurl)
6366 ("r-rsqlite" ,r-rsqlite)
6367 ("r-s4vectors" ,r-s4vectors)
6368 ("r-xml" ,r-xml)))
6369 (home-page "https://bioconductor.org/packages/AnnotationForge")
6370 (synopsis "Code for building annotation database packages")
6371 (description
6372 "This package provides code for generating Annotation packages and their
6373 databases. Packages produced are intended to be used with AnnotationDbi.")
6374 (license license:artistic2.0)))
6375
6376 (define-public r-rbgl
6377 (package
6378 (name "r-rbgl")
6379 (version "1.56.0")
6380 (source
6381 (origin
6382 (method url-fetch)
6383 (uri (bioconductor-uri "RBGL" version))
6384 (sha256
6385 (base32
6386 "0hj972mmqpyi5fx1rq33kysavdyz4nspi6gcffzi3rv339m0anhf"))))
6387 (properties `((upstream-name . "RBGL")))
6388 (build-system r-build-system)
6389 (propagated-inputs `(("r-graph" ,r-graph)))
6390 (home-page "https://www.bioconductor.org/packages/RBGL")
6391 (synopsis "Interface to the Boost graph library")
6392 (description
6393 "This package provides a fairly extensive and comprehensive interface to
6394 the graph algorithms contained in the Boost library.")
6395 (license license:artistic2.0)))
6396
6397 (define-public r-gseabase
6398 (package
6399 (name "r-gseabase")
6400 (version "1.42.0")
6401 (source
6402 (origin
6403 (method url-fetch)
6404 (uri (bioconductor-uri "GSEABase" version))
6405 (sha256
6406 (base32
6407 "11bv92svik399q677jv96b71i4bq68xxyxn1yijpdik2lq4hgl7a"))))
6408 (properties `((upstream-name . "GSEABase")))
6409 (build-system r-build-system)
6410 (propagated-inputs
6411 `(("r-annotate" ,r-annotate)
6412 ("r-annotationdbi" ,r-annotationdbi)
6413 ("r-biobase" ,r-biobase)
6414 ("r-biocgenerics" ,r-biocgenerics)
6415 ("r-graph" ,r-graph)
6416 ("r-xml" ,r-xml)))
6417 (home-page "https://bioconductor.org/packages/GSEABase")
6418 (synopsis "Gene set enrichment data structures and methods")
6419 (description
6420 "This package provides classes and methods to support @dfn{Gene Set
6421 Enrichment Analysis} (GSEA).")
6422 (license license:artistic2.0)))
6423
6424 (define-public r-category
6425 (package
6426 (name "r-category")
6427 (version "2.46.0")
6428 (source
6429 (origin
6430 (method url-fetch)
6431 (uri (bioconductor-uri "Category" version))
6432 (sha256
6433 (base32
6434 "03wfqa8d1dgwsm327zl2mpkq7dq3mzhq12598qz3ylfhrwplbgx0"))))
6435 (properties `((upstream-name . "Category")))
6436 (build-system r-build-system)
6437 (propagated-inputs
6438 `(("r-annotate" ,r-annotate)
6439 ("r-annotationdbi" ,r-annotationdbi)
6440 ("r-biobase" ,r-biobase)
6441 ("r-biocgenerics" ,r-biocgenerics)
6442 ("r-genefilter" ,r-genefilter)
6443 ("r-graph" ,r-graph)
6444 ("r-gseabase" ,r-gseabase)
6445 ("r-matrix" ,r-matrix)
6446 ("r-rbgl" ,r-rbgl)
6447 ("r-dbi" ,r-dbi)))
6448 (home-page "https://bioconductor.org/packages/Category")
6449 (synopsis "Category analysis")
6450 (description
6451 "This package provides a collection of tools for performing category
6452 analysis.")
6453 (license license:artistic2.0)))
6454
6455 (define-public r-gostats
6456 (package
6457 (name "r-gostats")
6458 (version "2.46.0")
6459 (source
6460 (origin
6461 (method url-fetch)
6462 (uri (bioconductor-uri "GOstats" version))
6463 (sha256
6464 (base32
6465 "1i5mydz5d95w2k28qr9j01hmbnl2id55jq94jvcpcyp1pvinkdq0"))))
6466 (properties `((upstream-name . "GOstats")))
6467 (build-system r-build-system)
6468 (propagated-inputs
6469 `(("r-annotate" ,r-annotate)
6470 ("r-annotationdbi" ,r-annotationdbi)
6471 ("r-annotationforge" ,r-annotationforge)
6472 ("r-biobase" ,r-biobase)
6473 ("r-category" ,r-category)
6474 ("r-go-db" ,r-go-db)
6475 ("r-graph" ,r-graph)
6476 ("r-rgraphviz" ,r-rgraphviz)
6477 ("r-rbgl" ,r-rbgl)))
6478 (home-page "https://bioconductor.org/packages/GOstats")
6479 (synopsis "Tools for manipulating GO and microarrays")
6480 (description
6481 "This package provides a set of tools for interacting with GO and
6482 microarray data. A variety of basic manipulation tools for graphs, hypothesis
6483 testing and other simple calculations.")
6484 (license license:artistic2.0)))
6485
6486 (define-public r-shortread
6487 (package
6488 (name "r-shortread")
6489 (version "1.38.0")
6490 (source
6491 (origin
6492 (method url-fetch)
6493 (uri (bioconductor-uri "ShortRead" version))
6494 (sha256
6495 (base32
6496 "038z3z7qaw5bpgjzy91sjkybsny6jwjjsrnnq4gdqdw9ss1qy1fb"))))
6497 (properties `((upstream-name . "ShortRead")))
6498 (build-system r-build-system)
6499 (inputs
6500 `(("zlib" ,zlib)))
6501 (propagated-inputs
6502 `(("r-biobase" ,r-biobase)
6503 ("r-biocgenerics" ,r-biocgenerics)
6504 ("r-biocparallel" ,r-biocparallel)
6505 ("r-biostrings" ,r-biostrings)
6506 ("r-genomeinfodb" ,r-genomeinfodb)
6507 ("r-genomicalignments" ,r-genomicalignments)
6508 ("r-genomicranges" ,r-genomicranges)
6509 ("r-hwriter" ,r-hwriter)
6510 ("r-iranges" ,r-iranges)
6511 ("r-lattice" ,r-lattice)
6512 ("r-latticeextra" ,r-latticeextra)
6513 ("r-rsamtools" ,r-rsamtools)
6514 ("r-s4vectors" ,r-s4vectors)
6515 ("r-xvector" ,r-xvector)
6516 ("r-zlibbioc" ,r-zlibbioc)))
6517 (home-page "https://bioconductor.org/packages/ShortRead")
6518 (synopsis "FASTQ input and manipulation tools")
6519 (description
6520 "This package implements sampling, iteration, and input of FASTQ files.
6521 It includes functions for filtering and trimming reads, and for generating a
6522 quality assessment report. Data are represented as
6523 @code{DNAStringSet}-derived objects, and easily manipulated for a diversity of
6524 purposes. The package also contains legacy support for early single-end,
6525 ungapped alignment formats.")
6526 (license license:artistic2.0)))
6527
6528 (define-public r-systempiper
6529 (package
6530 (name "r-systempiper")
6531 (version "1.14.0")
6532 (source
6533 (origin
6534 (method url-fetch)
6535 (uri (bioconductor-uri "systemPipeR" version))
6536 (sha256
6537 (base32
6538 "1550pd63mmky0vgkmpni7zf14kqz1741wv63nfaw29kcmhh3m5lm"))))
6539 (properties `((upstream-name . "systemPipeR")))
6540 (build-system r-build-system)
6541 (propagated-inputs
6542 `(("r-annotate" ,r-annotate)
6543 ("r-batchjobs" ,r-batchjobs)
6544 ("r-biocgenerics" ,r-biocgenerics)
6545 ("r-biostrings" ,r-biostrings)
6546 ("r-deseq2" ,r-deseq2)
6547 ("r-edger" ,r-edger)
6548 ("r-genomicfeatures" ,r-genomicfeatures)
6549 ("r-genomicranges" ,r-genomicranges)
6550 ("r-ggplot2" ,r-ggplot2)
6551 ("r-go-db" ,r-go-db)
6552 ("r-gostats" ,r-gostats)
6553 ("r-limma" ,r-limma)
6554 ("r-pheatmap" ,r-pheatmap)
6555 ("r-rjson" ,r-rjson)
6556 ("r-rsamtools" ,r-rsamtools)
6557 ("r-shortread" ,r-shortread)
6558 ("r-summarizedexperiment" ,r-summarizedexperiment)
6559 ("r-variantannotation" ,r-variantannotation)))
6560 (home-page "https://github.com/tgirke/systemPipeR")
6561 (synopsis "Next generation sequencing workflow and reporting environment")
6562 (description
6563 "This R package provides tools for building and running automated
6564 end-to-end analysis workflows for a wide range of @dfn{next generation
6565 sequence} (NGS) applications such as RNA-Seq, ChIP-Seq, VAR-Seq and Ribo-Seq.
6566 Important features include a uniform workflow interface across different NGS
6567 applications, automated report generation, and support for running both R and
6568 command-line software, such as NGS aligners or peak/variant callers, on local
6569 computers or compute clusters. Efficient handling of complex sample sets and
6570 experimental designs is facilitated by a consistently implemented sample
6571 annotation infrastructure.")
6572 (license license:artistic2.0)))
6573
6574 (define-public r-grohmm
6575 (package
6576 (name "r-grohmm")
6577 (version "1.14.0")
6578 (source
6579 (origin
6580 (method url-fetch)
6581 (uri (bioconductor-uri "groHMM" version))
6582 (sha256
6583 (base32
6584 "1kjb14apyly44qdlx2ld6gr69wlazd4mbhs58l35hir12aphgrzp"))))
6585 (properties `((upstream-name . "groHMM")))
6586 (build-system r-build-system)
6587 (propagated-inputs
6588 `(("r-genomeinfodb" ,r-genomeinfodb)
6589 ("r-genomicalignments" ,r-genomicalignments)
6590 ("r-genomicranges" ,r-genomicranges)
6591 ("r-iranges" ,r-iranges)
6592 ("r-mass" ,r-mass)
6593 ("r-rtracklayer" ,r-rtracklayer)
6594 ("r-s4vectors" ,r-s4vectors)))
6595 (home-page "https://github.com/Kraus-Lab/groHMM")
6596 (synopsis "GRO-seq analysis pipeline")
6597 (description
6598 "This package provides a pipeline for the analysis of GRO-seq data.")
6599 (license license:gpl3+)))
6600
6601 (define-public r-txdb-hsapiens-ucsc-hg19-knowngene
6602 (package
6603 (name "r-txdb-hsapiens-ucsc-hg19-knowngene")
6604 (version "3.2.2")
6605 (source (origin
6606 (method url-fetch)
6607 ;; We cannot use bioconductor-uri here because this tarball is
6608 ;; located under "data/annotation/" instead of "bioc/".
6609 (uri (string-append "https://bioconductor.org/packages/"
6610 "release/data/annotation/src/contrib"
6611 "/TxDb.Hsapiens.UCSC.hg19.knownGene_"
6612 version ".tar.gz"))
6613 (sha256
6614 (base32
6615 "1sajhcqqwazgz2lqbik7rd935i7kpnh08zxbp2ra10j72yqy4g86"))))
6616 (properties
6617 `((upstream-name . "TxDb.Hsapiens.UCSC.hg19.knownGene")))
6618 (build-system r-build-system)
6619 ;; As this package provides little more than a very large data file it
6620 ;; doesn't make sense to build substitutes.
6621 (arguments `(#:substitutable? #f))
6622 (propagated-inputs
6623 `(("r-genomicfeatures" ,r-genomicfeatures)))
6624 (home-page
6625 "https://bioconductor.org/packages/TxDb.Hsapiens.UCSC.hg19.knownGene/")
6626 (synopsis "Annotation package for human genome in TxDb format")
6627 (description
6628 "This package provides an annotation database of Homo sapiens genome
6629 data. It is derived from the UCSC hg19 genome and based on the \"knownGene\"
6630 track. The database is exposed as a @code{TxDb} object.")
6631 (license license:artistic2.0)))
6632
6633 (define-public r-sparql
6634 (package
6635 (name "r-sparql")
6636 (version "1.16")
6637 (source (origin
6638 (method url-fetch)
6639 (uri (cran-uri "SPARQL" version))
6640 (sha256
6641 (base32
6642 "0gak1q06yyhdmcxb2n3v0h9gr1vqd0viqji52wpw211qp6r6dcrc"))))
6643 (properties `((upstream-name . "SPARQL")))
6644 (build-system r-build-system)
6645 (propagated-inputs
6646 `(("r-rcurl" ,r-rcurl)
6647 ("r-xml" ,r-xml)))
6648 (home-page "https://cran.r-project.org/web/packages/SPARQL")
6649 (synopsis "SPARQL client for R")
6650 (description "This package provides an interface to use SPARQL to pose
6651 SELECT or UPDATE queries to an end-point.")
6652 ;; The only license indication is found in the DESCRIPTION file,
6653 ;; which states GPL-3. So we cannot assume GPLv3+.
6654 (license license:gpl3)))
6655
6656 (define-public vsearch
6657 (package
6658 (name "vsearch")
6659 (version "2.8.0")
6660 (source
6661 (origin
6662 (method url-fetch)
6663 (uri (string-append
6664 "https://github.com/torognes/vsearch/archive/v"
6665 version ".tar.gz"))
6666 (file-name (string-append name "-" version ".tar.gz"))
6667 (sha256
6668 (base32
6669 "15pbirgzhvflj4pi5n82vybbzjy9mlb0lv5l3qhrmdkfzpbyahw3"))
6670 (patches (search-patches "vsearch-unbundle-cityhash.patch"))
6671 (snippet
6672 '(begin
6673 ;; Remove bundled cityhash sources. The vsearch source is adjusted
6674 ;; for this in the patch.
6675 (delete-file "src/city.h")
6676 (delete-file "src/citycrc.h")
6677 (delete-file "src/city.cc")
6678 #t))))
6679 (build-system gnu-build-system)
6680 (arguments
6681 `(#:phases
6682 (modify-phases %standard-phases
6683 (add-after 'unpack 'autogen
6684 (lambda _ (zero? (system* "autoreconf" "-vif")))))))
6685 (inputs
6686 `(("zlib" ,zlib)
6687 ("bzip2" ,bzip2)
6688 ("cityhash" ,cityhash)))
6689 (native-inputs
6690 `(("autoconf" ,autoconf)
6691 ("automake" ,automake)))
6692 (synopsis "Sequence search tools for metagenomics")
6693 (description
6694 "VSEARCH supports DNA sequence searching, clustering, chimera detection,
6695 dereplication, pairwise alignment, shuffling, subsampling, sorting and
6696 masking. The tool takes advantage of parallelism in the form of SIMD
6697 vectorization as well as multiple threads to perform accurate alignments at
6698 high speed. VSEARCH uses an optimal global aligner (full dynamic programming
6699 Needleman-Wunsch).")
6700 (home-page "https://github.com/torognes/vsearch")
6701 ;; vsearch uses non-portable SSE intrinsics so building fails on other
6702 ;; platforms.
6703 (supported-systems '("x86_64-linux"))
6704 ;; Dual licensed; also includes public domain source.
6705 (license (list license:gpl3 license:bsd-2))))
6706
6707 (define-public pardre
6708 (package
6709 (name "pardre")
6710 ;; The source of 1.1.5 changed in place, so we append "-1" to the version.
6711 (version "1.1.5-1")
6712 (source
6713 (origin
6714 (method url-fetch)
6715 (uri (string-append "mirror://sourceforge/pardre/ParDRe-rel"
6716 "1.1.5" ".tar.gz"))
6717 (sha256
6718 (base32
6719 "17j73nc0viq4f6qj50nrndsrif5d6b71q8fl87m54psiv0ilns2b"))))
6720 (build-system gnu-build-system)
6721 (arguments
6722 `(#:tests? #f ; no tests included
6723 #:phases
6724 (modify-phases %standard-phases
6725 (delete 'configure)
6726 (replace 'install
6727 (lambda* (#:key outputs #:allow-other-keys)
6728 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
6729 (install-file "ParDRe" bin)
6730 #t))))))
6731 (inputs
6732 `(("openmpi" ,openmpi)
6733 ("zlib" ,zlib)))
6734 (synopsis "Parallel tool to remove duplicate DNA reads")
6735 (description
6736 "ParDRe is a parallel tool to remove duplicate genetic sequence reads.
6737 Duplicate reads can be seen as identical or nearly identical sequences with
6738 some mismatches. This tool lets users avoid the analysis of unnecessary
6739 reads, reducing the time of subsequent procedures with the
6740 dataset (e.g. assemblies, mappings, etc.). The tool is implemented with MPI
6741 in order to exploit the parallel capabilities of multicore clusters. It is
6742 faster than multithreaded counterparts (end of 2015) for the same number of
6743 cores and, thanks to the message-passing technology, it can be executed on
6744 clusters.")
6745 (home-page "https://sourceforge.net/projects/pardre/")
6746 (license license:gpl3+)))
6747
6748 (define-public ruby-bio-kseq
6749 (package
6750 (name "ruby-bio-kseq")
6751 (version "0.0.2")
6752 (source
6753 (origin
6754 (method url-fetch)
6755 (uri (rubygems-uri "bio-kseq" version))
6756 (sha256
6757 (base32
6758 "1xyaha46khb5jc6wzkbf7040jagac49jbimn0vcrzid0j8jdikrz"))))
6759 (build-system ruby-build-system)
6760 (arguments
6761 `(#:test-target "spec"))
6762 (native-inputs
6763 `(("bundler" ,bundler)
6764 ("ruby-rspec" ,ruby-rspec)
6765 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6766 (inputs
6767 `(("zlib" ,zlib)))
6768 (synopsis "Ruby bindings for the kseq.h FASTA/Q parser")
6769 (description
6770 "@code{Bio::Kseq} provides ruby bindings to the @code{kseq.h} FASTA and
6771 FASTQ parsing code. It provides a fast iterator over sequences and their
6772 quality scores.")
6773 (home-page "https://github.com/gusevfe/bio-kseq")
6774 (license license:expat)))
6775
6776 (define-public bio-locus
6777 (package
6778 (name "bio-locus")
6779 (version "0.0.7")
6780 (source
6781 (origin
6782 (method url-fetch)
6783 (uri (rubygems-uri "bio-locus" version))
6784 (sha256
6785 (base32
6786 "02vmrxyimkj9sahsp4zhfhnmbvz6dbbqz1y01vglf8cbwvkajfl0"))))
6787 (build-system ruby-build-system)
6788 (native-inputs
6789 `(("ruby-rspec" ,ruby-rspec)))
6790 (synopsis "Tool for fast querying of genome locations")
6791 (description
6792 "Bio-locus is a tabix-like tool for fast querying of genome
6793 locations. Many file formats in bioinformatics contain records that
6794 start with a chromosome name and a position for a SNP, or a start-end
6795 position for indels. Bio-locus allows users to store this chr+pos or
6796 chr+pos+alt information in a database.")
6797 (home-page "https://github.com/pjotrp/bio-locus")
6798 (license license:expat)))
6799
6800 (define-public bio-blastxmlparser
6801 (package
6802 (name "bio-blastxmlparser")
6803 (version "2.0.4")
6804 (source (origin
6805 (method url-fetch)
6806 (uri (rubygems-uri "bio-blastxmlparser" version))
6807 (sha256
6808 (base32
6809 "1wf4qygcmdjgcqm6flmvsagfr1gs9lf63mj32qv3z1f481zc5692"))))
6810 (build-system ruby-build-system)
6811 (propagated-inputs
6812 `(("ruby-bio-logger" ,ruby-bio-logger)
6813 ("ruby-nokogiri" ,ruby-nokogiri)))
6814 (inputs
6815 `(("ruby-rspec" ,ruby-rspec)))
6816 (synopsis "Fast big data BLAST XML parser and library")
6817 (description
6818 "Very fast parallel big-data BLAST XML file parser which can be used as
6819 command line utility. Use blastxmlparser to: Parse BLAST XML; filter output;
6820 generate FASTA, JSON, YAML, RDF, JSON-LD, HTML, CSV, tabular output etc.")
6821 (home-page "https://github.com/pjotrp/blastxmlparser")
6822 (license license:expat)))
6823
6824 (define-public bioruby
6825 (package
6826 (name "bioruby")
6827 (version "1.5.1")
6828 (source
6829 (origin
6830 (method url-fetch)
6831 (uri (rubygems-uri "bio" version))
6832 (sha256
6833 (base32
6834 "0hdl0789c9n4mprnx5pgd46bfwl8d000rqpamj5h6kkjgspijv49"))))
6835 (build-system ruby-build-system)
6836 (propagated-inputs
6837 `(("ruby-libxml" ,ruby-libxml)))
6838 (native-inputs
6839 `(("which" ,which))) ; required for test phase
6840 (arguments
6841 `(#:phases
6842 (modify-phases %standard-phases
6843 (add-before 'build 'patch-test-command
6844 (lambda _
6845 (substitute* '("test/functional/bio/test_command.rb")
6846 (("/bin/sh") (which "sh")))
6847 (substitute* '("test/functional/bio/test_command.rb")
6848 (("/bin/ls") (which "ls")))
6849 (substitute* '("test/functional/bio/test_command.rb")
6850 (("which") (which "which")))
6851 (substitute* '("test/functional/bio/test_command.rb",
6852 "test/data/command/echoarg2.sh")
6853 (("/bin/echo") (which "echo")))
6854 #t)))))
6855 (synopsis "Ruby library, shell and utilities for bioinformatics")
6856 (description "BioRuby comes with a comprehensive set of Ruby development
6857 tools and libraries for bioinformatics and molecular biology. BioRuby has
6858 components for sequence analysis, pathway analysis, protein modelling and
6859 phylogenetic analysis; it supports many widely used data formats and provides
6860 easy access to databases, external programs and public web services, including
6861 BLAST, KEGG, GenBank, MEDLINE and GO.")
6862 (home-page "http://bioruby.org/")
6863 ;; Code is released under Ruby license, except for setup
6864 ;; (LGPLv2.1+) and scripts in samples (which have GPL2 and GPL2+)
6865 (license (list license:ruby license:lgpl2.1+ license:gpl2+ ))))
6866
6867 (define-public r-acsnminer
6868 (package
6869 (name "r-acsnminer")
6870 (version "0.16.8.25")
6871 (source (origin
6872 (method url-fetch)
6873 (uri (cran-uri "ACSNMineR" version))
6874 (sha256
6875 (base32
6876 "0gh604s8qall6zfjlwcg2ilxjvz08dplf9k5g47idhv43scm748l"))))
6877 (properties `((upstream-name . "ACSNMineR")))
6878 (build-system r-build-system)
6879 (propagated-inputs
6880 `(("r-ggplot2" ,r-ggplot2)
6881 ("r-gridextra" ,r-gridextra)))
6882 (home-page "https://cran.r-project.org/web/packages/ACSNMineR")
6883 (synopsis "Gene enrichment analysis")
6884 (description
6885 "This package provides tools to compute and represent gene set enrichment
6886 or depletion from your data based on pre-saved maps from the @dfn{Atlas of
6887 Cancer Signalling Networks} (ACSN) or user imported maps. The gene set
6888 enrichment can be run with hypergeometric test or Fisher exact test, and can
6889 use multiple corrections. Visualization of data can be done either by
6890 barplots or heatmaps.")
6891 (license license:gpl2+)))
6892
6893 (define-public r-biocgenerics
6894 (package
6895 (name "r-biocgenerics")
6896 (version "0.26.0")
6897 (source (origin
6898 (method url-fetch)
6899 (uri (bioconductor-uri "BiocGenerics" version))
6900 (sha256
6901 (base32
6902 "19qxhy2cd3pykkhzbb5q3crgaxf65cpzf2mkfsz16gqhi8flj72p"))))
6903 (properties
6904 `((upstream-name . "BiocGenerics")))
6905 (build-system r-build-system)
6906 (home-page "https://bioconductor.org/packages/BiocGenerics")
6907 (synopsis "S4 generic functions for Bioconductor")
6908 (description
6909 "This package provides S4 generic functions needed by many Bioconductor
6910 packages.")
6911 (license license:artistic2.0)))
6912
6913 (define-public r-biocinstaller
6914 (package
6915 (name "r-biocinstaller")
6916 (version "1.30.0")
6917 (source (origin
6918 (method url-fetch)
6919 (uri (bioconductor-uri "BiocInstaller" version))
6920 (sha256
6921 (base32
6922 "1xg1gi1hf5vflp71ji21gnmr4kcjpx8a6c47cllpc7yqnjv5nfg0"))))
6923 (properties
6924 `((upstream-name . "BiocInstaller")))
6925 (build-system r-build-system)
6926 (home-page "https://bioconductor.org/packages/BiocInstaller")
6927 (synopsis "Install Bioconductor packages")
6928 (description "This package is used to install and update R packages from
6929 Bioconductor, CRAN, and Github.")
6930 (license license:artistic2.0)))
6931
6932 (define-public r-biocviews
6933 (package
6934 (name "r-biocviews")
6935 (version "1.48.0")
6936 (source (origin
6937 (method url-fetch)
6938 (uri (bioconductor-uri "biocViews" version))
6939 (sha256
6940 (base32
6941 "1yx2lir67ny0j150wyfqca0wsxp84byri8nscbs9qlndkh2jppq9"))))
6942 (properties
6943 `((upstream-name . "biocViews")))
6944 (build-system r-build-system)
6945 (propagated-inputs
6946 `(("r-biobase" ,r-biobase)
6947 ("r-graph" ,r-graph)
6948 ("r-rbgl" ,r-rbgl)
6949 ("r-rcurl" ,r-rcurl)
6950 ("r-xml" ,r-xml)
6951 ("r-runit" ,r-runit)))
6952 (home-page "https://bioconductor.org/packages/biocViews")
6953 (synopsis "Bioconductor package categorization helper")
6954 (description "The purpose of biocViews is to create HTML pages that
6955 categorize packages in a Bioconductor package repository according to keywords,
6956 also known as views, in a controlled vocabulary.")
6957 (license license:artistic2.0)))
6958
6959 (define-public r-bookdown
6960 (package
6961 (name "r-bookdown")
6962 (version "0.7")
6963 (source (origin
6964 (method url-fetch)
6965 (uri (cran-uri "bookdown" version))
6966 (sha256
6967 (base32
6968 "1b3fw1f41zph5yw3kynb47aijq53vhaa6mnnvxly72zamyzdf95q"))))
6969 (build-system r-build-system)
6970 (propagated-inputs
6971 `(("r-htmltools" ,r-htmltools)
6972 ("r-knitr" ,r-knitr)
6973 ("r-rmarkdown" ,r-rmarkdown)
6974 ("r-tinytex" ,r-tinytex)
6975 ("r-yaml" ,r-yaml)
6976 ("r-xfun" ,r-xfun)))
6977 (home-page "https://github.com/rstudio/bookdown")
6978 (synopsis "Authoring books and technical documents with R markdown")
6979 (description "This package provides output formats and utilities for
6980 authoring books and technical documents with R Markdown.")
6981 (license license:gpl3)))
6982
6983 (define-public r-biocstyle
6984 (package
6985 (name "r-biocstyle")
6986 (version "2.8.2")
6987 (source (origin
6988 (method url-fetch)
6989 (uri (bioconductor-uri "BiocStyle" version))
6990 (sha256
6991 (base32
6992 "17m901ylz00w1a3nq5f910v55zixm1nr6rb3qrsbhqd94qzr0l2p"))))
6993 (properties
6994 `((upstream-name . "BiocStyle")))
6995 (build-system r-build-system)
6996 (propagated-inputs
6997 `(("r-bookdown" ,r-bookdown)
6998 ("r-knitr" ,r-knitr)
6999 ("r-rmarkdown" ,r-rmarkdown)
7000 ("r-yaml" ,r-yaml)))
7001 (home-page "https://bioconductor.org/packages/BiocStyle")
7002 (synopsis "Bioconductor formatting styles")
7003 (description "This package provides standard formatting styles for
7004 Bioconductor PDF and HTML documents. Package vignettes illustrate use and
7005 functionality.")
7006 (license license:artistic2.0)))
7007
7008 (define-public r-bioccheck
7009 (package
7010 (name "r-bioccheck")
7011 (version "1.16.0")
7012 (source (origin
7013 (method url-fetch)
7014 (uri (bioconductor-uri "BiocCheck" version))
7015 (sha256
7016 (base32
7017 "1srp1g809f1nn0fyqknr7r6dq89bw1xpjvmygr7cw6ffknbc671s"))))
7018 (properties
7019 `((upstream-name . "BiocCheck")))
7020 (build-system r-build-system)
7021 (arguments
7022 '(#:phases
7023 (modify-phases %standard-phases
7024 ;; This package can be used by calling BiocCheck(<package>) from
7025 ;; within R, or by running R CMD BiocCheck <package>. This phase
7026 ;; makes sure the latter works. For this to work, the BiocCheck
7027 ;; script must be somewhere on the PATH (not the R bin directory).
7028 (add-after 'install 'install-bioccheck-subcommand
7029 (lambda* (#:key outputs #:allow-other-keys)
7030 (let* ((out (assoc-ref outputs "out"))
7031 (dest-dir (string-append out "/bin"))
7032 (script-dir
7033 (string-append out "/site-library/BiocCheck/script/")))
7034 (mkdir-p dest-dir)
7035 (symlink (string-append script-dir "/checkBadDeps.R")
7036 (string-append dest-dir "/checkBadDeps.R"))
7037 (symlink (string-append script-dir "/BiocCheck")
7038 (string-append dest-dir "/BiocCheck")))
7039 #t)))))
7040 (propagated-inputs
7041 `(("r-codetools" ,r-codetools)
7042 ("r-graph" ,r-graph)
7043 ("r-httr" ,r-httr)
7044 ("r-optparse" ,r-optparse)
7045 ("r-biocinstaller" ,r-biocinstaller)
7046 ("r-biocviews" ,r-biocviews)
7047 ("r-stringdist" ,r-stringdist)))
7048 (home-page "https://bioconductor.org/packages/BiocCheck")
7049 (synopsis "Executes Bioconductor-specific package checks")
7050 (description "This package contains tools to perform additional quality
7051 checks on R packages that are to be submitted to the Bioconductor repository.")
7052 (license license:artistic2.0)))
7053
7054 (define-public r-getopt
7055 (package
7056 (name "r-getopt")
7057 (version "1.20.2")
7058 (source
7059 (origin
7060 (method url-fetch)
7061 (uri (cran-uri "getopt" version))
7062 (sha256
7063 (base32
7064 "13p35lbpy7i578752fa71sbfvcsqw5qfa9p6kf8b5m3c5p9i4v1x"))))
7065 (build-system r-build-system)
7066 (home-page "https://github.com/trevorld/getopt")
7067 (synopsis "Command-line option processor for R")
7068 (description
7069 "This package is designed to be used with Rscript to write shebang
7070 scripts that accept short and long options. Many users will prefer to
7071 use the packages @code{optparse} or @code{argparse} which add extra
7072 features like automatically generated help options and usage texts,
7073 support for default values, positional argument support, etc.")
7074 (license license:gpl2+)))
7075
7076 (define-public r-optparse
7077 (package
7078 (name "r-optparse")
7079 (version "1.4.4")
7080 (source
7081 (origin
7082 (method url-fetch)
7083 (uri (cran-uri "optparse" version))
7084 (sha256
7085 (base32
7086 "1ff4wmsszrb3spwfp7ynfs8w11qpy1sdzfxm1wk8dqqvdwris7qb"))))
7087 (build-system r-build-system)
7088 (propagated-inputs
7089 `(("r-getopt" ,r-getopt)))
7090 (home-page
7091 "https://github.com/trevorld/optparse")
7092 (synopsis "Command line option parser")
7093 (description
7094 "This package provides a command line parser inspired by Python's
7095 @code{optparse} library to be used with Rscript to write shebang scripts
7096 that accept short and long options.")
7097 (license license:gpl2+)))
7098
7099 (define-public r-dnacopy
7100 (package
7101 (name "r-dnacopy")
7102 (version "1.54.0")
7103 (source (origin
7104 (method url-fetch)
7105 (uri (bioconductor-uri "DNAcopy" version))
7106 (sha256
7107 (base32
7108 "03hfhmmc5y60r2gcgm367w2fr7qj115l74m9bp3h9qpn5yci0d8n"))))
7109 (properties
7110 `((upstream-name . "DNAcopy")))
7111 (build-system r-build-system)
7112 (inputs
7113 `(("gfortran" ,gfortran)))
7114 (home-page "https://bioconductor.org/packages/DNAcopy")
7115 (synopsis "Implementation of a circular binary segmentation algorithm")
7116 (description "This package implements the circular binary segmentation (CBS)
7117 algorithm to segment DNA copy number data and identify genomic regions with
7118 abnormal copy number.")
7119 (license license:gpl2+)))
7120
7121 (define-public r-s4vectors
7122 (package
7123 (name "r-s4vectors")
7124 (version "0.18.2")
7125 (source (origin
7126 (method url-fetch)
7127 (uri (bioconductor-uri "S4Vectors" version))
7128 (sha256
7129 (base32
7130 "0qvj2j0zl4djjl7vrwc6xak6h8dxr53iwypfbcvfb3sh7jwhdiz5"))))
7131 (properties
7132 `((upstream-name . "S4Vectors")))
7133 (build-system r-build-system)
7134 (propagated-inputs
7135 `(("r-biocgenerics" ,r-biocgenerics)))
7136 (home-page "https://bioconductor.org/packages/S4Vectors")
7137 (synopsis "S4 implementation of vectors and lists")
7138 (description
7139 "The S4Vectors package defines the @code{Vector} and @code{List} virtual
7140 classes and a set of generic functions that extend the semantic of ordinary
7141 vectors and lists in R. Package developers can easily implement vector-like
7142 or list-like objects as concrete subclasses of @code{Vector} or @code{List}.
7143 In addition, a few low-level concrete subclasses of general interest (e.g.
7144 @code{DataFrame}, @code{Rle}, and @code{Hits}) are implemented in the
7145 S4Vectors package itself.")
7146 (license license:artistic2.0)))
7147
7148 (define-public r-seqinr
7149 (package
7150 (name "r-seqinr")
7151 (version "3.4-5")
7152 (source
7153 (origin
7154 (method url-fetch)
7155 (uri (cran-uri "seqinr" version))
7156 (sha256
7157 (base32
7158 "17zv0n5cji17izwmwg0jcbxbjl3w5rls91w15svcnlpxjms38ahn"))))
7159 (build-system r-build-system)
7160 (propagated-inputs
7161 `(("r-ade4" ,r-ade4)
7162 ("r-segmented" ,r-segmented)))
7163 (inputs
7164 `(("zlib" ,zlib)))
7165 (home-page "http://seqinr.r-forge.r-project.org/")
7166 (synopsis "Biological sequences retrieval and analysis")
7167 (description
7168 "This package provides tools for exploratory data analysis and data
7169 visualization of biological sequence (DNA and protein) data. It also includes
7170 utilities for sequence data management under the ACNUC system.")
7171 (license license:gpl2+)))
7172
7173 (define-public r-iranges
7174 (package
7175 (name "r-iranges")
7176 (version "2.14.10")
7177 (source (origin
7178 (method url-fetch)
7179 (uri (bioconductor-uri "IRanges" version))
7180 (sha256
7181 (base32
7182 "10ccw930vfmkskkrzbps14xglqlkxf588623dr7f1a9ckx7yr2p6"))))
7183 (properties
7184 `((upstream-name . "IRanges")))
7185 (build-system r-build-system)
7186 (propagated-inputs
7187 `(("r-biocgenerics" ,r-biocgenerics)
7188 ("r-s4vectors" ,r-s4vectors)))
7189 (home-page "https://bioconductor.org/packages/IRanges")
7190 (synopsis "Infrastructure for manipulating intervals on sequences")
7191 (description
7192 "This package provides efficient low-level and highly reusable S4 classes
7193 for storing ranges of integers, RLE vectors (Run-Length Encoding), and, more
7194 generally, data that can be organized sequentially (formally defined as
7195 @code{Vector} objects), as well as views on these @code{Vector} objects.
7196 Efficient list-like classes are also provided for storing big collections of
7197 instances of the basic classes. All classes in the package use consistent
7198 naming and share the same rich and consistent \"Vector API\" as much as
7199 possible.")
7200 (license license:artistic2.0)))
7201
7202 (define-public r-genomeinfodbdata
7203 (package
7204 (name "r-genomeinfodbdata")
7205 (version "0.99.1")
7206 (source (origin
7207 (method url-fetch)
7208 ;; We cannot use bioconductor-uri here because this tarball is
7209 ;; located under "data/annotation/" instead of "bioc/".
7210 (uri (string-append "https://bioconductor.org/packages/release/"
7211 "data/annotation/src/contrib/GenomeInfoDbData_"
7212 version ".tar.gz"))
7213 (sha256
7214 (base32
7215 "0hipipvyvrh75n68hsjg35sxbcfzrghzxv547vnkk2f8ya99g01r"))))
7216 (properties
7217 `((upstream-name . "GenomeInfoDbData")))
7218 (build-system r-build-system)
7219 (home-page "https://bioconductor.org/packages/GenomeInfoDbData")
7220 (synopsis "Species and taxonomy ID look up tables for GenomeInfoDb")
7221 (description "This package contains data for mapping between NCBI taxonomy
7222 ID and species. It is used by functions in the GenomeInfoDb package.")
7223 (license license:artistic2.0)))
7224
7225 (define-public r-genomeinfodb
7226 (package
7227 (name "r-genomeinfodb")
7228 (version "1.16.0")
7229 (source (origin
7230 (method url-fetch)
7231 (uri (bioconductor-uri "GenomeInfoDb" version))
7232 (sha256
7233 (base32
7234 "0yhnqhaydmmq7ihmhj3rbal4afq5p993l2qqrd0n5wmbyg7glg2d"))))
7235 (properties
7236 `((upstream-name . "GenomeInfoDb")))
7237 (build-system r-build-system)
7238 (propagated-inputs
7239 `(("r-biocgenerics" ,r-biocgenerics)
7240 ("r-genomeinfodbdata" ,r-genomeinfodbdata)
7241 ("r-iranges" ,r-iranges)
7242 ("r-rcurl" ,r-rcurl)
7243 ("r-s4vectors" ,r-s4vectors)))
7244 (home-page "https://bioconductor.org/packages/GenomeInfoDb")
7245 (synopsis "Utilities for manipulating chromosome identifiers")
7246 (description
7247 "This package contains data and functions that define and allow
7248 translation between different chromosome sequence naming conventions (e.g.,
7249 \"chr1\" versus \"1\"), including a function that attempts to place sequence
7250 names in their natural, rather than lexicographic, order.")
7251 (license license:artistic2.0)))
7252
7253 (define-public r-edger
7254 (package
7255 (name "r-edger")
7256 (version "3.22.2")
7257 (source (origin
7258 (method url-fetch)
7259 (uri (bioconductor-uri "edgeR" version))
7260 (sha256
7261 (base32
7262 "07py2g6vg9jbflwhc1hnzr2silbinrjwxq3mkq30nzjgf0n0hrf3"))))
7263 (properties `((upstream-name . "edgeR")))
7264 (build-system r-build-system)
7265 (propagated-inputs
7266 `(("r-limma" ,r-limma)
7267 ("r-locfit" ,r-locfit)
7268 ("r-rcpp" ,r-rcpp)
7269 ("r-statmod" ,r-statmod))) ;for estimateDisp
7270 (home-page "http://bioinf.wehi.edu.au/edgeR")
7271 (synopsis "EdgeR does empirical analysis of digital gene expression data")
7272 (description "This package can do differential expression analysis of
7273 RNA-seq expression profiles with biological replication. It implements a range
7274 of statistical methodology based on the negative binomial distributions,
7275 including empirical Bayes estimation, exact tests, generalized linear models
7276 and quasi-likelihood tests. It be applied to differential signal analysis of
7277 other types of genomic data that produce counts, including ChIP-seq, SAGE and
7278 CAGE.")
7279 (license license:gpl2+)))
7280
7281 (define-public r-variantannotation
7282 (package
7283 (name "r-variantannotation")
7284 (version "1.26.0")
7285 (source (origin
7286 (method url-fetch)
7287 (uri (bioconductor-uri "VariantAnnotation" version))
7288 (sha256
7289 (base32
7290 "06bccdf57vja7m63chmgc4539lwng3q3b8zxn285fj8524l6mcn7"))))
7291 (properties
7292 `((upstream-name . "VariantAnnotation")))
7293 (inputs
7294 `(("zlib" ,zlib)))
7295 (propagated-inputs
7296 `(("r-annotationdbi" ,r-annotationdbi)
7297 ("r-biobase" ,r-biobase)
7298 ("r-biocgenerics" ,r-biocgenerics)
7299 ("r-biostrings" ,r-biostrings)
7300 ("r-bsgenome" ,r-bsgenome)
7301 ("r-dbi" ,r-dbi)
7302 ("r-genomeinfodb" ,r-genomeinfodb)
7303 ("r-genomicfeatures" ,r-genomicfeatures)
7304 ("r-genomicranges" ,r-genomicranges)
7305 ("r-iranges" ,r-iranges)
7306 ("r-summarizedexperiment" ,r-summarizedexperiment)
7307 ("r-rsamtools" ,r-rsamtools)
7308 ("r-rtracklayer" ,r-rtracklayer)
7309 ("r-s4vectors" ,r-s4vectors)
7310 ("r-xvector" ,r-xvector)
7311 ("r-zlibbioc" ,r-zlibbioc)))
7312 (build-system r-build-system)
7313 (home-page "https://bioconductor.org/packages/VariantAnnotation")
7314 (synopsis "Package for annotation of genetic variants")
7315 (description "This R package can annotate variants, compute amino acid
7316 coding changes and predict coding outcomes.")
7317 (license license:artistic2.0)))
7318
7319 (define-public r-limma
7320 (package
7321 (name "r-limma")
7322 (version "3.36.1")
7323 (source (origin
7324 (method url-fetch)
7325 (uri (bioconductor-uri "limma" version))
7326 (sha256
7327 (base32
7328 "1982g5v35ilfgxm2vkq1p3j1bbir795pjvfzx4nzam2rlqqymbqm"))))
7329 (build-system r-build-system)
7330 (home-page "http://bioinf.wehi.edu.au/limma")
7331 (synopsis "Package for linear models for microarray and RNA-seq data")
7332 (description "This package can be used for the analysis of gene expression
7333 studies, especially the use of linear models for analysing designed experiments
7334 and the assessment of differential expression. The analysis methods apply to
7335 different technologies, including microarrays, RNA-seq, and quantitative PCR.")
7336 (license license:gpl2+)))
7337
7338 (define-public r-xvector
7339 (package
7340 (name "r-xvector")
7341 (version "0.20.0")
7342 (source (origin
7343 (method url-fetch)
7344 (uri (bioconductor-uri "XVector" version))
7345 (sha256
7346 (base32
7347 "1zjlhh9lsyhg0js1858csyw2389kbrzdqnqnha833wazkwxilp3f"))))
7348 (properties
7349 `((upstream-name . "XVector")))
7350 (build-system r-build-system)
7351 (arguments
7352 `(#:phases
7353 (modify-phases %standard-phases
7354 (add-after 'unpack 'use-system-zlib
7355 (lambda _
7356 (substitute* "DESCRIPTION"
7357 (("zlibbioc, ") ""))
7358 (substitute* "NAMESPACE"
7359 (("import\\(zlibbioc\\)") ""))
7360 #t)))))
7361 (inputs
7362 `(("zlib" ,zlib)))
7363 (propagated-inputs
7364 `(("r-biocgenerics" ,r-biocgenerics)
7365 ("r-iranges" ,r-iranges)
7366 ("r-s4vectors" ,r-s4vectors)))
7367 (home-page "https://bioconductor.org/packages/XVector")
7368 (synopsis "Representation and manpulation of external sequences")
7369 (description
7370 "This package provides memory efficient S4 classes for storing sequences
7371 \"externally\" (behind an R external pointer, or on disk).")
7372 (license license:artistic2.0)))
7373
7374 (define-public r-genomicranges
7375 (package
7376 (name "r-genomicranges")
7377 (version "1.32.3")
7378 (source (origin
7379 (method url-fetch)
7380 (uri (bioconductor-uri "GenomicRanges" version))
7381 (sha256
7382 (base32
7383 "03gmka6rlz18vd4229796l5l3l6446v5cb90sn2nb5knjbp84hni"))))
7384 (properties
7385 `((upstream-name . "GenomicRanges")))
7386 (build-system r-build-system)
7387 (propagated-inputs
7388 `(("r-biocgenerics" ,r-biocgenerics)
7389 ("r-genomeinfodb" ,r-genomeinfodb)
7390 ("r-iranges" ,r-iranges)
7391 ("r-s4vectors" ,r-s4vectors)
7392 ("r-xvector" ,r-xvector)))
7393 (home-page "https://bioconductor.org/packages/GenomicRanges")
7394 (synopsis "Representation and manipulation of genomic intervals")
7395 (description
7396 "This package provides tools to efficiently represent and manipulate
7397 genomic annotations and alignments is playing a central role when it comes to
7398 analyzing high-throughput sequencing data (a.k.a. NGS data). The
7399 GenomicRanges package defines general purpose containers for storing and
7400 manipulating genomic intervals and variables defined along a genome.")
7401 (license license:artistic2.0)))
7402
7403 (define-public r-biobase
7404 (package
7405 (name "r-biobase")
7406 (version "2.40.0")
7407 (source (origin
7408 (method url-fetch)
7409 (uri (bioconductor-uri "Biobase" version))
7410 (sha256
7411 (base32
7412 "1iwds2a5ir29k19dbpynlc7nn836cw2gamchhgpi2jf2xar9m9jz"))))
7413 (properties
7414 `((upstream-name . "Biobase")))
7415 (build-system r-build-system)
7416 (propagated-inputs
7417 `(("r-biocgenerics" ,r-biocgenerics)))
7418 (home-page "https://bioconductor.org/packages/Biobase")
7419 (synopsis "Base functions for Bioconductor")
7420 (description
7421 "This package provides functions that are needed by many other packages
7422 on Bioconductor or which replace R functions.")
7423 (license license:artistic2.0)))
7424
7425 (define-public r-annotationdbi
7426 (package
7427 (name "r-annotationdbi")
7428 (version "1.42.1")
7429 (source (origin
7430 (method url-fetch)
7431 (uri (bioconductor-uri "AnnotationDbi" version))
7432 (sha256
7433 (base32
7434 "0afkbzli08vq02r2pr9phrz3rxd6ilp1w7yw8y99nbjiz14f8b1c"))))
7435 (properties
7436 `((upstream-name . "AnnotationDbi")))
7437 (build-system r-build-system)
7438 (propagated-inputs
7439 `(("r-biobase" ,r-biobase)
7440 ("r-biocgenerics" ,r-biocgenerics)
7441 ("r-dbi" ,r-dbi)
7442 ("r-iranges" ,r-iranges)
7443 ("r-rsqlite" ,r-rsqlite)
7444 ("r-s4vectors" ,r-s4vectors)))
7445 (home-page "https://bioconductor.org/packages/AnnotationDbi")
7446 (synopsis "Annotation database interface")
7447 (description
7448 "This package provides user interface and database connection code for
7449 annotation data packages using SQLite data storage.")
7450 (license license:artistic2.0)))
7451
7452 (define-public r-biomart
7453 (package
7454 (name "r-biomart")
7455 (version "2.36.1")
7456 (source (origin
7457 (method url-fetch)
7458 (uri (bioconductor-uri "biomaRt" version))
7459 (sha256
7460 (base32
7461 "0b70s350ffc74v3xz5c3jpazr9zxdb7gjmjfj7aghlsrizrspill"))))
7462 (properties
7463 `((upstream-name . "biomaRt")))
7464 (build-system r-build-system)
7465 (propagated-inputs
7466 `(("r-annotationdbi" ,r-annotationdbi)
7467 ("r-httr" ,r-httr)
7468 ("r-progress" ,r-progress)
7469 ("r-rcurl" ,r-rcurl)
7470 ("r-stringr" ,r-stringr)
7471 ("r-xml" ,r-xml)))
7472 (home-page "https://bioconductor.org/packages/biomaRt")
7473 (synopsis "Interface to BioMart databases")
7474 (description
7475 "biomaRt provides an interface to a growing collection of databases
7476 implementing the @url{BioMart software suite, http://www.biomart.org}. The
7477 package enables retrieval of large amounts of data in a uniform way without
7478 the need to know the underlying database schemas or write complex SQL queries.
7479 Examples of BioMart databases are Ensembl, COSMIC, Uniprot, HGNC, Gramene,
7480 Wormbase and dbSNP mapped to Ensembl. These major databases give biomaRt
7481 users direct access to a diverse set of data and enable a wide range of
7482 powerful online queries from gene annotation to database mining.")
7483 (license license:artistic2.0)))
7484
7485 (define-public r-biocparallel
7486 (package
7487 (name "r-biocparallel")
7488 (version "1.14.1")
7489 (source (origin
7490 (method url-fetch)
7491 (uri (bioconductor-uri "BiocParallel" version))
7492 (sha256
7493 (base32
7494 "00qg1kg2l9qqpyjaw5q910cmf84vwfiw1fhsx3ig784gwinwgj6n"))))
7495 (properties
7496 `((upstream-name . "BiocParallel")))
7497 (build-system r-build-system)
7498 (propagated-inputs
7499 `(("r-futile-logger" ,r-futile-logger)
7500 ("r-snow" ,r-snow)
7501 ("r-bh" ,r-bh)))
7502 (home-page "https://bioconductor.org/packages/BiocParallel")
7503 (synopsis "Bioconductor facilities for parallel evaluation")
7504 (description
7505 "This package provides modified versions and novel implementation of
7506 functions for parallel evaluation, tailored to use with Bioconductor
7507 objects.")
7508 (license (list license:gpl2+ license:gpl3+))))
7509
7510 (define-public r-biostrings
7511 (package
7512 (name "r-biostrings")
7513 (version "2.48.0")
7514 (source (origin
7515 (method url-fetch)
7516 (uri (bioconductor-uri "Biostrings" version))
7517 (sha256
7518 (base32
7519 "118b490jk87ydigm6ln25ms4kskzkw0akmh77clzznhzpqnxsi6j"))))
7520 (properties
7521 `((upstream-name . "Biostrings")))
7522 (build-system r-build-system)
7523 (propagated-inputs
7524 `(("r-biocgenerics" ,r-biocgenerics)
7525 ("r-iranges" ,r-iranges)
7526 ("r-s4vectors" ,r-s4vectors)
7527 ("r-xvector" ,r-xvector)))
7528 (home-page "https://bioconductor.org/packages/Biostrings")
7529 (synopsis "String objects and algorithms for biological sequences")
7530 (description
7531 "This package provides memory efficient string containers, string
7532 matching algorithms, and other utilities, for fast manipulation of large
7533 biological sequences or sets of sequences.")
7534 (license license:artistic2.0)))
7535
7536 (define-public r-rsamtools
7537 (package
7538 (name "r-rsamtools")
7539 (version "1.32.0")
7540 (source (origin
7541 (method url-fetch)
7542 (uri (bioconductor-uri "Rsamtools" version))
7543 (sha256
7544 (base32
7545 "1s65y5wn4d0x8zsljg2kmhcl6r9884h95kr041j7hp49bmxg3an6"))))
7546 (properties
7547 `((upstream-name . "Rsamtools")))
7548 (build-system r-build-system)
7549 (arguments
7550 `(#:phases
7551 (modify-phases %standard-phases
7552 (add-after 'unpack 'use-system-zlib
7553 (lambda _
7554 (substitute* "DESCRIPTION"
7555 (("zlibbioc, ") ""))
7556 (substitute* "NAMESPACE"
7557 (("import\\(zlibbioc\\)") ""))
7558 #t)))))
7559 (inputs
7560 `(("zlib" ,zlib)))
7561 (propagated-inputs
7562 `(("r-biocgenerics" ,r-biocgenerics)
7563 ("r-biocparallel" ,r-biocparallel)
7564 ("r-biostrings" ,r-biostrings)
7565 ("r-bitops" ,r-bitops)
7566 ("r-genomeinfodb" ,r-genomeinfodb)
7567 ("r-genomicranges" ,r-genomicranges)
7568 ("r-iranges" ,r-iranges)
7569 ("r-s4vectors" ,r-s4vectors)
7570 ("r-xvector" ,r-xvector)))
7571 (home-page "https://bioconductor.org/packages/release/bioc/html/Rsamtools.html")
7572 (synopsis "Interface to samtools, bcftools, and tabix")
7573 (description
7574 "This package provides an interface to the 'samtools', 'bcftools', and
7575 'tabix' utilities for manipulating SAM (Sequence Alignment / Map), FASTA,
7576 binary variant call (BCF) and compressed indexed tab-delimited (tabix)
7577 files.")
7578 (license license:expat)))
7579
7580 (define-public r-delayedarray
7581 (package
7582 (name "r-delayedarray")
7583 (version "0.6.0")
7584 (source (origin
7585 (method url-fetch)
7586 (uri (bioconductor-uri "DelayedArray" version))
7587 (sha256
7588 (base32
7589 "0n3w57cwy911q812wc8658y0v3xgpmg379sj98kfqdxa80z1mxdf"))))
7590 (properties
7591 `((upstream-name . "DelayedArray")))
7592 (build-system r-build-system)
7593 (propagated-inputs
7594 `(("r-biocgenerics" ,r-biocgenerics)
7595 ("r-biocparallel" ,r-biocparallel)
7596 ("r-s4vectors" ,r-s4vectors)
7597 ("r-iranges" ,r-iranges)
7598 ("r-matrixstats" ,r-matrixstats)))
7599 (home-page "https://bioconductor.org/packages/DelayedArray")
7600 (synopsis "Delayed operations on array-like objects")
7601 (description
7602 "Wrapping an array-like object (typically an on-disk object) in a
7603 @code{DelayedArray} object allows one to perform common array operations on it
7604 without loading the object in memory. In order to reduce memory usage and
7605 optimize performance, operations on the object are either delayed or executed
7606 using a block processing mechanism. Note that this also works on in-memory
7607 array-like objects like @code{DataFrame} objects (typically with Rle columns),
7608 @code{Matrix} objects, and ordinary arrays and data frames.")
7609 (license license:artistic2.0)))
7610
7611 (define-public r-summarizedexperiment
7612 (package
7613 (name "r-summarizedexperiment")
7614 (version "1.10.1")
7615 (source (origin
7616 (method url-fetch)
7617 (uri (bioconductor-uri "SummarizedExperiment" version))
7618 (sha256
7619 (base32
7620 "0v3zxl9cqsv79ag5cnvzlhvgaz5cr8f4rn7flmwnwpqd508cznl1"))))
7621 (properties
7622 `((upstream-name . "SummarizedExperiment")))
7623 (build-system r-build-system)
7624 (propagated-inputs
7625 `(("r-biobase" ,r-biobase)
7626 ("r-biocgenerics" ,r-biocgenerics)
7627 ("r-delayedarray" ,r-delayedarray)
7628 ("r-genomeinfodb" ,r-genomeinfodb)
7629 ("r-genomicranges" ,r-genomicranges)
7630 ("r-iranges" ,r-iranges)
7631 ("r-matrix" ,r-matrix)
7632 ("r-s4vectors" ,r-s4vectors)))
7633 (home-page "https://bioconductor.org/packages/SummarizedExperiment")
7634 (synopsis "Container for representing genomic ranges by sample")
7635 (description
7636 "The SummarizedExperiment container contains one or more assays, each
7637 represented by a matrix-like object of numeric or other mode. The rows
7638 typically represent genomic ranges of interest and the columns represent
7639 samples.")
7640 (license license:artistic2.0)))
7641
7642 (define-public r-genomicalignments
7643 (package
7644 (name "r-genomicalignments")
7645 (version "1.16.0")
7646 (source (origin
7647 (method url-fetch)
7648 (uri (bioconductor-uri "GenomicAlignments" version))
7649 (sha256
7650 (base32
7651 "00pi2cnkkbj2023fg2x2cmglkdalwzy1vr3glsikwz7ix9yylcaw"))))
7652 (properties
7653 `((upstream-name . "GenomicAlignments")))
7654 (build-system r-build-system)
7655 (propagated-inputs
7656 `(("r-biocgenerics" ,r-biocgenerics)
7657 ("r-biocparallel" ,r-biocparallel)
7658 ("r-biostrings" ,r-biostrings)
7659 ("r-genomeinfodb" ,r-genomeinfodb)
7660 ("r-genomicranges" ,r-genomicranges)
7661 ("r-iranges" ,r-iranges)
7662 ("r-rsamtools" ,r-rsamtools)
7663 ("r-s4vectors" ,r-s4vectors)
7664 ("r-summarizedexperiment" ,r-summarizedexperiment)))
7665 (home-page "https://bioconductor.org/packages/GenomicAlignments")
7666 (synopsis "Representation and manipulation of short genomic alignments")
7667 (description
7668 "This package provides efficient containers for storing and manipulating
7669 short genomic alignments (typically obtained by aligning short reads to a
7670 reference genome). This includes read counting, computing the coverage,
7671 junction detection, and working with the nucleotide content of the
7672 alignments.")
7673 (license license:artistic2.0)))
7674
7675 (define-public r-rtracklayer
7676 (package
7677 (name "r-rtracklayer")
7678 (version "1.40.3")
7679 (source (origin
7680 (method url-fetch)
7681 (uri (bioconductor-uri "rtracklayer" version))
7682 (sha256
7683 (base32
7684 "0kvsjdaypn1jnxbnsxpycildwdyxwnjkigfq8qm8mlyfc4ahdgy3"))))
7685 (build-system r-build-system)
7686 (arguments
7687 `(#:phases
7688 (modify-phases %standard-phases
7689 (add-after 'unpack 'use-system-zlib
7690 (lambda _
7691 (substitute* "DESCRIPTION"
7692 ((" zlibbioc,") ""))
7693 (substitute* "NAMESPACE"
7694 (("import\\(zlibbioc\\)") ""))
7695 #t)))))
7696 (native-inputs
7697 `(("pkg-config" ,pkg-config)))
7698 (inputs
7699 `(("zlib" ,zlib)))
7700 (propagated-inputs
7701 `(("r-biocgenerics" ,r-biocgenerics)
7702 ("r-biostrings" ,r-biostrings)
7703 ("r-genomeinfodb" ,r-genomeinfodb)
7704 ("r-genomicalignments" ,r-genomicalignments)
7705 ("r-genomicranges" ,r-genomicranges)
7706 ("r-iranges" ,r-iranges)
7707 ("r-rcurl" ,r-rcurl)
7708 ("r-rsamtools" ,r-rsamtools)
7709 ("r-s4vectors" ,r-s4vectors)
7710 ("r-xml" ,r-xml)
7711 ("r-xvector" ,r-xvector)))
7712 (home-page "https://bioconductor.org/packages/rtracklayer")
7713 (synopsis "R interface to genome browsers and their annotation tracks")
7714 (description
7715 "rtracklayer is an extensible framework for interacting with multiple
7716 genome browsers (currently UCSC built-in) and manipulating annotation tracks
7717 in various formats (currently GFF, BED, bedGraph, BED15, WIG, BigWig and 2bit
7718 built-in). The user may export/import tracks to/from the supported browsers,
7719 as well as query and modify the browser state, such as the current viewport.")
7720 (license license:artistic2.0)))
7721
7722 (define-public r-genomicfeatures
7723 (package
7724 (name "r-genomicfeatures")
7725 (version "1.32.0")
7726 (source (origin
7727 (method url-fetch)
7728 (uri (bioconductor-uri "GenomicFeatures" version))
7729 (sha256
7730 (base32
7731 "1cqcl72q0k5wylw1brn4g4h7xzys1v06piry19cvp0gjcvm5sp7a"))))
7732 (properties
7733 `((upstream-name . "GenomicFeatures")))
7734 (build-system r-build-system)
7735 (propagated-inputs
7736 `(("r-annotationdbi" ,r-annotationdbi)
7737 ("r-biobase" ,r-biobase)
7738 ("r-biocgenerics" ,r-biocgenerics)
7739 ("r-biomart" ,r-biomart)
7740 ("r-biostrings" ,r-biostrings)
7741 ("r-dbi" ,r-dbi)
7742 ("r-genomeinfodb" ,r-genomeinfodb)
7743 ("r-genomicranges" ,r-genomicranges)
7744 ("r-iranges" ,r-iranges)
7745 ("r-rcurl" ,r-rcurl)
7746 ("r-rsqlite" ,r-rsqlite)
7747 ("r-rtracklayer" ,r-rtracklayer)
7748 ("r-s4vectors" ,r-s4vectors)
7749 ("r-xvector" ,r-xvector)))
7750 (home-page "https://bioconductor.org/packages/GenomicFeatures")
7751 (synopsis "Tools for working with transcript centric annotations")
7752 (description
7753 "This package provides a set of tools and methods for making and
7754 manipulating transcript centric annotations. With these tools the user can
7755 easily download the genomic locations of the transcripts, exons and cds of a
7756 given organism, from either the UCSC Genome Browser or a BioMart
7757 database (more sources will be supported in the future). This information is
7758 then stored in a local database that keeps track of the relationship between
7759 transcripts, exons, cds and genes. Flexible methods are provided for
7760 extracting the desired features in a convenient format.")
7761 (license license:artistic2.0)))
7762
7763 (define-public r-go-db
7764 (package
7765 (name "r-go-db")
7766 (version "3.5.0")
7767 (source (origin
7768 (method url-fetch)
7769 (uri (string-append "https://www.bioconductor.org/packages/"
7770 "release/data/annotation/src/contrib/GO.db_"
7771 version ".tar.gz"))
7772 (sha256
7773 (base32
7774 "02d1mn1al3q7qvhx1ylrr3ar4w4iw0qyi5d89v2336rzwk9maq35"))))
7775 (properties
7776 `((upstream-name . "GO.db")))
7777 (build-system r-build-system)
7778 (propagated-inputs
7779 `(("r-annotationdbi" ,r-annotationdbi)))
7780 (home-page "https://bioconductor.org/packages/GO.db")
7781 (synopsis "Annotation maps describing the entire Gene Ontology")
7782 (description
7783 "The purpose of this GO.db annotation package is to provide detailed
7784 information about the latest version of the Gene Ontologies.")
7785 (license license:artistic2.0)))
7786
7787 (define-public r-graph
7788 (package
7789 (name "r-graph")
7790 (version "1.58.0")
7791 (source (origin
7792 (method url-fetch)
7793 (uri (bioconductor-uri "graph" version))
7794 (sha256
7795 (base32
7796 "1zx445lk36g1s6i5dbhhf00nzzazyklfjxxjfax6q8hnhvgm9759"))))
7797 (build-system r-build-system)
7798 (propagated-inputs
7799 `(("r-biocgenerics" ,r-biocgenerics)))
7800 (home-page "https://bioconductor.org/packages/graph")
7801 (synopsis "Handle graph data structures in R")
7802 (description
7803 "This package implements some simple graph handling capabilities for R.")
7804 (license license:artistic2.0)))
7805
7806 (define-public r-topgo
7807 (package
7808 (name "r-topgo")
7809 (version "2.32.0")
7810 (source (origin
7811 (method url-fetch)
7812 (uri (bioconductor-uri "topGO" version))
7813 (sha256
7814 (base32
7815 "05yxnkid8bgw9lkm90if9fg63djhgvbailfa3qsfqa5c0zjmixw1"))))
7816 (properties
7817 `((upstream-name . "topGO")))
7818 (build-system r-build-system)
7819 (propagated-inputs
7820 `(("r-annotationdbi" ,r-annotationdbi)
7821 ("r-dbi" ,r-dbi)
7822 ("r-biobase" ,r-biobase)
7823 ("r-biocgenerics" ,r-biocgenerics)
7824 ("r-go-db" ,r-go-db)
7825 ("r-graph" ,r-graph)
7826 ("r-lattice" ,r-lattice)
7827 ("r-matrixstats" ,r-matrixstats)
7828 ("r-sparsem" ,r-sparsem)))
7829 (home-page "https://bioconductor.org/packages/topGO")
7830 (synopsis "Enrichment analysis for gene ontology")
7831 (description
7832 "The topGO package provides tools for testing @dfn{gene ontology} (GO)
7833 terms while accounting for the topology of the GO graph. Different test
7834 statistics and different methods for eliminating local similarities and
7835 dependencies between GO terms can be implemented and applied.")
7836 ;; Any version of the LGPL applies.
7837 (license license:lgpl2.1+)))
7838
7839 (define-public r-bsgenome
7840 (package
7841 (name "r-bsgenome")
7842 (version "1.48.0")
7843 (source (origin
7844 (method url-fetch)
7845 (uri (bioconductor-uri "BSgenome" version))
7846 (sha256
7847 (base32
7848 "1rk2piqq5dppkd51ln3r872d7ng3rvq98071mnd0xdv2xwnyn5g8"))))
7849 (properties
7850 `((upstream-name . "BSgenome")))
7851 (build-system r-build-system)
7852 (propagated-inputs
7853 `(("r-biocgenerics" ,r-biocgenerics)
7854 ("r-biostrings" ,r-biostrings)
7855 ("r-genomeinfodb" ,r-genomeinfodb)
7856 ("r-genomicranges" ,r-genomicranges)
7857 ("r-iranges" ,r-iranges)
7858 ("r-rsamtools" ,r-rsamtools)
7859 ("r-rtracklayer" ,r-rtracklayer)
7860 ("r-s4vectors" ,r-s4vectors)
7861 ("r-xvector" ,r-xvector)))
7862 (home-page "https://bioconductor.org/packages/BSgenome")
7863 (synopsis "Infrastructure for Biostrings-based genome data packages")
7864 (description
7865 "This package provides infrastructure shared by all Biostrings-based
7866 genome data packages and support for efficient SNP representation.")
7867 (license license:artistic2.0)))
7868
7869 (define-public r-bsgenome-hsapiens-1000genomes-hs37d5
7870 (package
7871 (name "r-bsgenome-hsapiens-1000genomes-hs37d5")
7872 (version "0.99.1")
7873 (source (origin
7874 (method url-fetch)
7875 ;; We cannot use bioconductor-uri here because this tarball is
7876 ;; located under "data/annotation/" instead of "bioc/".
7877 (uri (string-append "https://www.bioconductor.org/packages/"
7878 "release/data/annotation/src/contrib/"
7879 "BSgenome.Hsapiens.1000genomes.hs37d5_"
7880 version ".tar.gz"))
7881 (sha256
7882 (base32
7883 "1cg0g5fqmsvwyw2p9hp2yy4ilk21jkbbrnpgqvb5c36ihjwvc7sr"))))
7884 (properties
7885 `((upstream-name . "BSgenome.Hsapiens.1000genomes.hs37d5")))
7886 (build-system r-build-system)
7887 ;; As this package provides little more than a very large data file it
7888 ;; doesn't make sense to build substitutes.
7889 (arguments `(#:substitutable? #f))
7890 (propagated-inputs
7891 `(("r-bsgenome" ,r-bsgenome)))
7892 (home-page
7893 "https://www.bioconductor.org/packages/BSgenome.Hsapiens.1000genomes.hs37d5/")
7894 (synopsis "Full genome sequences for Homo sapiens")
7895 (description
7896 "This package provides full genome sequences for Homo sapiens from
7897 1000genomes phase2 reference genome sequence (hs37d5), based on NCBI GRCh37.")
7898 (license license:artistic2.0)))
7899
7900 (define-public r-impute
7901 (package
7902 (name "r-impute")
7903 (version "1.54.0")
7904 (source (origin
7905 (method url-fetch)
7906 (uri (bioconductor-uri "impute" version))
7907 (sha256
7908 (base32
7909 "1d3cpfaqlq2gnb3hsc2yhxwkrnbd7m6ifif32yp0ya0jr5brl4hr"))))
7910 (inputs
7911 `(("gfortran" ,gfortran)))
7912 (build-system r-build-system)
7913 (home-page "https://bioconductor.org/packages/impute")
7914 (synopsis "Imputation for microarray data")
7915 (description
7916 "This package provides a function to impute missing gene expression
7917 microarray data, using nearest neighbor averaging.")
7918 (license license:gpl2+)))
7919
7920 (define-public r-seqpattern
7921 (package
7922 (name "r-seqpattern")
7923 (version "1.12.0")
7924 (source (origin
7925 (method url-fetch)
7926 (uri (bioconductor-uri "seqPattern" version))
7927 (sha256
7928 (base32
7929 "0dw0yldfcf0ibvpqxlpx1ijnjf9lma47w9w22siszzhw09i0wp3w"))))
7930 (properties
7931 `((upstream-name . "seqPattern")))
7932 (build-system r-build-system)
7933 (propagated-inputs
7934 `(("r-biostrings" ,r-biostrings)
7935 ("r-genomicranges" ,r-genomicranges)
7936 ("r-iranges" ,r-iranges)
7937 ("r-kernsmooth" ,r-kernsmooth)
7938 ("r-plotrix" ,r-plotrix)))
7939 (home-page "https://bioconductor.org/packages/seqPattern")
7940 (synopsis "Visualising oligonucleotide patterns and motif occurrences")
7941 (description
7942 "This package provides tools to visualize oligonucleotide patterns and
7943 sequence motif occurrences across a large set of sequences centred at a common
7944 reference point and sorted by a user defined feature.")
7945 (license license:gpl3+)))
7946
7947 (define-public r-genomation
7948 (package
7949 (name "r-genomation")
7950 (version "1.12.0")
7951 (source (origin
7952 (method url-fetch)
7953 (uri (bioconductor-uri "genomation" version))
7954 (sha256
7955 (base32
7956 "1vdmdyrq0n7pf8cvy2950v7hrcrcbd9zl4fg7dcmyly3iiwdyirp"))))
7957 (build-system r-build-system)
7958 (propagated-inputs
7959 `(("r-biostrings" ,r-biostrings)
7960 ("r-bsgenome" ,r-bsgenome)
7961 ("r-data-table" ,r-data-table)
7962 ("r-genomeinfodb" ,r-genomeinfodb)
7963 ("r-genomicalignments" ,r-genomicalignments)
7964 ("r-genomicranges" ,r-genomicranges)
7965 ("r-ggplot2" ,r-ggplot2)
7966 ("r-gridbase" ,r-gridbase)
7967 ("r-impute" ,r-impute)
7968 ("r-iranges" ,r-iranges)
7969 ("r-matrixstats" ,r-matrixstats)
7970 ("r-plotrix" ,r-plotrix)
7971 ("r-plyr" ,r-plyr)
7972 ("r-rcpp" ,r-rcpp)
7973 ("r-readr" ,r-readr)
7974 ("r-reshape2" ,r-reshape2)
7975 ("r-rsamtools" ,r-rsamtools)
7976 ("r-rtracklayer" ,r-rtracklayer)
7977 ("r-runit" ,r-runit)
7978 ("r-s4vectors" ,r-s4vectors)
7979 ("r-seqpattern" ,r-seqpattern)))
7980 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
7981 (synopsis "Summary, annotation and visualization of genomic data")
7982 (description
7983 "This package provides a package for summary and annotation of genomic
7984 intervals. Users can visualize and quantify genomic intervals over
7985 pre-defined functional regions, such as promoters, exons, introns, etc. The
7986 genomic intervals represent regions with a defined chromosome position, which
7987 may be associated with a score, such as aligned reads from HT-seq experiments,
7988 TF binding sites, methylation scores, etc. The package can use any tabular
7989 genomic feature data as long as it has minimal information on the locations of
7990 genomic intervals. In addition, it can use BAM or BigWig files as input.")
7991 (license license:artistic2.0)))
7992
7993 (define-public r-genomationdata
7994 (package
7995 (name "r-genomationdata")
7996 (version "1.10.0")
7997 (source (origin
7998 (method url-fetch)
7999 ;; We cannot use bioconductor-uri here because this tarball is
8000 ;; located under "data/annotation/" instead of "bioc/".
8001 (uri (string-append "https://bioconductor.org/packages/"
8002 "release/data/experiment/src/contrib/"
8003 "genomationData_" version ".tar.gz"))
8004 (sha256
8005 (base32
8006 "0h7g5x3kyb50qlblz5hc85lfm6n6f5nb68i146way3ggs04sqvla"))))
8007 (build-system r-build-system)
8008 ;; As this package provides little more than large data files, it doesn't
8009 ;; make sense to build substitutes.
8010 (arguments `(#:substitutable? #f))
8011 (native-inputs
8012 `(("r-knitr" ,r-knitr)))
8013 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
8014 (synopsis "Experimental data for use with the genomation package")
8015 (description
8016 "This package contains experimental genetic data for use with the
8017 genomation package. Included are Chip Seq, Methylation and Cage data,
8018 downloaded from Encode.")
8019 (license license:gpl3+)))
8020
8021 (define-public r-org-hs-eg-db
8022 (package
8023 (name "r-org-hs-eg-db")
8024 (version "3.5.0")
8025 (source (origin
8026 (method url-fetch)
8027 ;; We cannot use bioconductor-uri here because this tarball is
8028 ;; located under "data/annotation/" instead of "bioc/".
8029 (uri (string-append "https://www.bioconductor.org/packages/"
8030 "release/data/annotation/src/contrib/"
8031 "org.Hs.eg.db_" version ".tar.gz"))
8032 (sha256
8033 (base32
8034 "1v6wa5613cjq59xd7x1qz8lr9nb2abm9abl2cci1khrnrlpla927"))))
8035 (properties
8036 `((upstream-name . "org.Hs.eg.db")))
8037 (build-system r-build-system)
8038 (propagated-inputs
8039 `(("r-annotationdbi" ,r-annotationdbi)))
8040 (home-page "https://www.bioconductor.org/packages/org.Hs.eg.db/")
8041 (synopsis "Genome wide annotation for Human")
8042 (description
8043 "This package contains genome-wide annotations for Human, primarily based
8044 on mapping using Entrez Gene identifiers.")
8045 (license license:artistic2.0)))
8046
8047 (define-public r-org-ce-eg-db
8048 (package
8049 (name "r-org-ce-eg-db")
8050 (version "3.5.0")
8051 (source (origin
8052 (method url-fetch)
8053 ;; We cannot use bioconductor-uri here because this tarball is
8054 ;; located under "data/annotation/" instead of "bioc/".
8055 (uri (string-append "https://www.bioconductor.org/packages/"
8056 "release/data/annotation/src/contrib/"
8057 "org.Ce.eg.db_" version ".tar.gz"))
8058 (sha256
8059 (base32
8060 "02ggchixlmzywhsbr0h2ms4dravv7m5964cjxqcjxqs16vjwlbk9"))))
8061 (properties
8062 `((upstream-name . "org.Ce.eg.db")))
8063 (build-system r-build-system)
8064 (propagated-inputs
8065 `(("r-annotationdbi" ,r-annotationdbi)))
8066 (home-page "https://www.bioconductor.org/packages/org.Ce.eg.db/")
8067 (synopsis "Genome wide annotation for Worm")
8068 (description
8069 "This package provides mappings from Entrez gene identifiers to various
8070 annotations for the genome of the model worm Caenorhabditis elegans.")
8071 (license license:artistic2.0)))
8072
8073 (define-public r-org-dm-eg-db
8074 (package
8075 (name "r-org-dm-eg-db")
8076 (version "3.5.0")
8077 (source (origin
8078 (method url-fetch)
8079 ;; We cannot use bioconductor-uri here because this tarball is
8080 ;; located under "data/annotation/" instead of "bioc/".
8081 (uri (string-append "https://www.bioconductor.org/packages/"
8082 "release/data/annotation/src/contrib/"
8083 "org.Dm.eg.db_" version ".tar.gz"))
8084 (sha256
8085 (base32
8086 "033qak1d3wwz17va0bh8z8p8arx0aw2va6gm1qfwsvdkj9cd9d7d"))))
8087 (properties
8088 `((upstream-name . "org.Dm.eg.db")))
8089 (build-system r-build-system)
8090 (propagated-inputs
8091 `(("r-annotationdbi" ,r-annotationdbi)))
8092 (home-page "https://www.bioconductor.org/packages/org.Dm.eg.db/")
8093 (synopsis "Genome wide annotation for Fly")
8094 (description
8095 "This package provides mappings from Entrez gene identifiers to various
8096 annotations for the genome of the model fruit fly Drosophila melanogaster.")
8097 (license license:artistic2.0)))
8098
8099 (define-public r-org-mm-eg-db
8100 (package
8101 (name "r-org-mm-eg-db")
8102 (version "3.5.0")
8103 (source (origin
8104 (method url-fetch)
8105 ;; We cannot use bioconductor-uri here because this tarball is
8106 ;; located under "data/annotation/" instead of "bioc/".
8107 (uri (string-append "https://www.bioconductor.org/packages/"
8108 "release/data/annotation/src/contrib/"
8109 "org.Mm.eg.db_" version ".tar.gz"))
8110 (sha256
8111 (base32
8112 "11q21p3ki4bn4hb3aix0g775l45l66jmas6m94nfhqqnpjhv4d6g"))))
8113 (properties
8114 `((upstream-name . "org.Mm.eg.db")))
8115 (build-system r-build-system)
8116 (propagated-inputs
8117 `(("r-annotationdbi" ,r-annotationdbi)))
8118 (home-page "https://www.bioconductor.org/packages/org.Mm.eg.db/")
8119 (synopsis "Genome wide annotation for Mouse")
8120 (description
8121 "This package provides mappings from Entrez gene identifiers to various
8122 annotations for the genome of the model mouse Mus musculus.")
8123 (license license:artistic2.0)))
8124
8125 (define-public r-seqlogo
8126 (package
8127 (name "r-seqlogo")
8128 (version "1.46.0")
8129 (source
8130 (origin
8131 (method url-fetch)
8132 (uri (bioconductor-uri "seqLogo" version))
8133 (sha256
8134 (base32
8135 "16xvqcdknix9vjm8mrixi6nyfsr45jm844jh1x90m8044lwrsic1"))))
8136 (properties `((upstream-name . "seqLogo")))
8137 (build-system r-build-system)
8138 (home-page "https://bioconductor.org/packages/seqLogo")
8139 (synopsis "Sequence logos for DNA sequence alignments")
8140 (description
8141 "seqLogo takes the position weight matrix of a DNA sequence motif and
8142 plots the corresponding sequence logo as introduced by Schneider and
8143 Stephens (1990).")
8144 (license license:lgpl2.0+)))
8145
8146 (define-public r-bsgenome-hsapiens-ucsc-hg19
8147 (package
8148 (name "r-bsgenome-hsapiens-ucsc-hg19")
8149 (version "1.4.0")
8150 (source (origin
8151 (method url-fetch)
8152 ;; We cannot use bioconductor-uri here because this tarball is
8153 ;; located under "data/annotation/" instead of "bioc/".
8154 (uri (string-append "https://www.bioconductor.org/packages/"
8155 "release/data/annotation/src/contrib/"
8156 "BSgenome.Hsapiens.UCSC.hg19_"
8157 version ".tar.gz"))
8158 (sha256
8159 (base32
8160 "1y0nqpk8cw5a34sd9hmin3z4v7iqm6hf6l22cl81vlbxqbjibxc8"))))
8161 (properties
8162 `((upstream-name . "BSgenome.Hsapiens.UCSC.hg19")))
8163 (build-system r-build-system)
8164 ;; As this package provides little more than a very large data file it
8165 ;; doesn't make sense to build substitutes.
8166 (arguments `(#:substitutable? #f))
8167 (propagated-inputs
8168 `(("r-bsgenome" ,r-bsgenome)))
8169 (home-page
8170 "https://www.bioconductor.org/packages/BSgenome.Hsapiens.UCSC.hg19/")
8171 (synopsis "Full genome sequences for Homo sapiens")
8172 (description
8173 "This package provides full genome sequences for Homo sapiens as provided
8174 by UCSC (hg19, February 2009) and stored in Biostrings objects.")
8175 (license license:artistic2.0)))
8176
8177 (define-public r-bsgenome-mmusculus-ucsc-mm9
8178 (package
8179 (name "r-bsgenome-mmusculus-ucsc-mm9")
8180 (version "1.4.0")
8181 (source (origin
8182 (method url-fetch)
8183 ;; We cannot use bioconductor-uri here because this tarball is
8184 ;; located under "data/annotation/" instead of "bioc/".
8185 (uri (string-append "https://www.bioconductor.org/packages/"
8186 "release/data/annotation/src/contrib/"
8187 "BSgenome.Mmusculus.UCSC.mm9_"
8188 version ".tar.gz"))
8189 (sha256
8190 (base32
8191 "1birqw30g2azimxpnjfzmkphan7x131yy8b9h85lfz5fjdg7841i"))))
8192 (properties
8193 `((upstream-name . "BSgenome.Mmusculus.UCSC.mm9")))
8194 (build-system r-build-system)
8195 ;; As this package provides little more than a very large data file it
8196 ;; doesn't make sense to build substitutes.
8197 (arguments `(#:substitutable? #f))
8198 (propagated-inputs
8199 `(("r-bsgenome" ,r-bsgenome)))
8200 (home-page
8201 "https://www.bioconductor.org/packages/BSgenome.Mmusculus.UCSC.mm9/")
8202 (synopsis "Full genome sequences for Mouse")
8203 (description
8204 "This package provides full genome sequences for Mus musculus (Mouse) as
8205 provided by UCSC (mm9, July 2007) and stored in Biostrings objects.")
8206 (license license:artistic2.0)))
8207
8208 (define-public r-bsgenome-mmusculus-ucsc-mm10
8209 (package
8210 (name "r-bsgenome-mmusculus-ucsc-mm10")
8211 (version "1.4.0")
8212 (source (origin
8213 (method url-fetch)
8214 ;; We cannot use bioconductor-uri here because this tarball is
8215 ;; located under "data/annotation/" instead of "bioc/".
8216 (uri (string-append "https://www.bioconductor.org/packages/"
8217 "release/data/annotation/src/contrib/"
8218 "BSgenome.Mmusculus.UCSC.mm10_"
8219 version ".tar.gz"))
8220 (sha256
8221 (base32
8222 "12s0nm2na9brjad4rn9l7d3db2aj8qa1xvz0y1k7gk08wayb6bkf"))))
8223 (properties
8224 `((upstream-name . "BSgenome.Mmusculus.UCSC.mm10")))
8225 (build-system r-build-system)
8226 ;; As this package provides little more than a very large data file it
8227 ;; doesn't make sense to build substitutes.
8228 (arguments `(#:substitutable? #f))
8229 (propagated-inputs
8230 `(("r-bsgenome" ,r-bsgenome)))
8231 (home-page
8232 "https://www.bioconductor.org/packages/BSgenome.Mmusculus.UCSC.mm10/")
8233 (synopsis "Full genome sequences for Mouse")
8234 (description
8235 "This package provides full genome sequences for Mus
8236 musculus (Mouse) as provided by UCSC (mm10, December 2011) and stored
8237 in Biostrings objects.")
8238 (license license:artistic2.0)))
8239
8240 (define-public r-txdb-mmusculus-ucsc-mm10-knowngene
8241 (package
8242 (name "r-txdb-mmusculus-ucsc-mm10-knowngene")
8243 (version "3.4.0")
8244 (source (origin
8245 (method url-fetch)
8246 ;; We cannot use bioconductor-uri here because this tarball is
8247 ;; located under "data/annotation/" instead of "bioc/".
8248 (uri (string-append "https://www.bioconductor.org/packages/"
8249 "release/data/annotation/src/contrib/"
8250 "TxDb.Mmusculus.UCSC.mm10.knownGene_"
8251 version ".tar.gz"))
8252 (sha256
8253 (base32
8254 "08gava9wsvpcqz51k2sni3pj03n5155v32d9riqbf305nbirqbkb"))))
8255 (properties
8256 `((upstream-name . "TxDb.Mmusculus.UCSC.mm10.knownGene")))
8257 (build-system r-build-system)
8258 ;; As this package provides little more than a very large data file it
8259 ;; doesn't make sense to build substitutes.
8260 (arguments `(#:substitutable? #f))
8261 (propagated-inputs
8262 `(("r-bsgenome" ,r-bsgenome)
8263 ("r-genomicfeatures" ,r-genomicfeatures)
8264 ("r-annotationdbi" ,r-annotationdbi)))
8265 (home-page
8266 "https://bioconductor.org/packages/TxDb.Mmusculus.UCSC.mm10.knownGene/")
8267 (synopsis "Annotation package for TxDb knownGene object(s) for Mouse")
8268 (description
8269 "This package loads a TxDb object, which is an R interface to
8270 prefabricated databases contained in this package. This package provides
8271 the TxDb object of Mouse data as provided by UCSC (mm10, December 2011)
8272 based on the knownGene track.")
8273 (license license:artistic2.0)))
8274
8275 (define-public r-bsgenome-celegans-ucsc-ce6
8276 (package
8277 (name "r-bsgenome-celegans-ucsc-ce6")
8278 (version "1.4.0")
8279 (source (origin
8280 (method url-fetch)
8281 ;; We cannot use bioconductor-uri here because this tarball is
8282 ;; located under "data/annotation/" instead of "bioc/".
8283 (uri (string-append "https://www.bioconductor.org/packages/"
8284 "release/data/annotation/src/contrib/"
8285 "BSgenome.Celegans.UCSC.ce6_"
8286 version ".tar.gz"))
8287 (sha256
8288 (base32
8289 "0mqzb353xv2c3m3vkb315dkmnxkgczp7ndnknyhpgjlybyf715v9"))))
8290 (properties
8291 `((upstream-name . "BSgenome.Celegans.UCSC.ce6")))
8292 (build-system r-build-system)
8293 ;; As this package provides little more than a very large data file it
8294 ;; doesn't make sense to build substitutes.
8295 (arguments `(#:substitutable? #f))
8296 (propagated-inputs
8297 `(("r-bsgenome" ,r-bsgenome)))
8298 (home-page
8299 "https://www.bioconductor.org/packages/BSgenome.Celegans.UCSC.ce6/")
8300 (synopsis "Full genome sequences for Worm")
8301 (description
8302 "This package provides full genome sequences for Caenorhabditis
8303 elegans (Worm) as provided by UCSC (ce6, May 2008) and stored in Biostrings
8304 objects.")
8305 (license license:artistic2.0)))
8306
8307 (define-public r-bsgenome-celegans-ucsc-ce10
8308 (package
8309 (name "r-bsgenome-celegans-ucsc-ce10")
8310 (version "1.4.0")
8311 (source (origin
8312 (method url-fetch)
8313 ;; We cannot use bioconductor-uri here because this tarball is
8314 ;; located under "data/annotation/" instead of "bioc/".
8315 (uri (string-append "https://www.bioconductor.org/packages/"
8316 "release/data/annotation/src/contrib/"
8317 "BSgenome.Celegans.UCSC.ce10_"
8318 version ".tar.gz"))
8319 (sha256
8320 (base32
8321 "1zaym97jk4npxk14ifvwz2rvhm4zx9xgs33r9vvx9rlynp0gydrk"))))
8322 (properties
8323 `((upstream-name . "BSgenome.Celegans.UCSC.ce10")))
8324 (build-system r-build-system)
8325 ;; As this package provides little more than a very large data file it
8326 ;; doesn't make sense to build substitutes.
8327 (arguments `(#:substitutable? #f))
8328 (propagated-inputs
8329 `(("r-bsgenome" ,r-bsgenome)))
8330 (home-page
8331 "https://www.bioconductor.org/packages/BSgenome.Celegans.UCSC.ce10/")
8332 (synopsis "Full genome sequences for Worm")
8333 (description
8334 "This package provides full genome sequences for Caenorhabditis
8335 elegans (Worm) as provided by UCSC (ce10, Oct 2010) and stored in Biostrings
8336 objects.")
8337 (license license:artistic2.0)))
8338
8339 (define-public r-bsgenome-dmelanogaster-ucsc-dm3
8340 (package
8341 (name "r-bsgenome-dmelanogaster-ucsc-dm3")
8342 (version "1.4.0")
8343 (source (origin
8344 (method url-fetch)
8345 ;; We cannot use bioconductor-uri here because this tarball is
8346 ;; located under "data/annotation/" instead of "bioc/".
8347 (uri (string-append "https://www.bioconductor.org/packages/"
8348 "release/data/annotation/src/contrib/"
8349 "BSgenome.Dmelanogaster.UCSC.dm3_"
8350 version ".tar.gz"))
8351 (sha256
8352 (base32
8353 "19bm3lkhhkag3gnwp419211fh0cnr0x6fa0r1lr0ycwrikxdxsv8"))))
8354 (properties
8355 `((upstream-name . "BSgenome.Dmelanogaster.UCSC.dm3")))
8356 (build-system r-build-system)
8357 ;; As this package provides little more than a very large data file it
8358 ;; doesn't make sense to build substitutes.
8359 (arguments `(#:substitutable? #f))
8360 (propagated-inputs
8361 `(("r-bsgenome" ,r-bsgenome)))
8362 (home-page
8363 "https://www.bioconductor.org/packages/BSgenome.Dmelanogaster.UCSC.dm3/")
8364 (synopsis "Full genome sequences for Fly")
8365 (description
8366 "This package provides full genome sequences for Drosophila
8367 melanogaster (Fly) as provided by UCSC (dm3, April 2006) and stored in
8368 Biostrings objects.")
8369 (license license:artistic2.0)))
8370
8371 (define-public r-motifrg
8372 (package
8373 (name "r-motifrg")
8374 (version "1.24.0")
8375 (source
8376 (origin
8377 (method url-fetch)
8378 (uri (bioconductor-uri "motifRG" version))
8379 (sha256
8380 (base32
8381 "0mxhyidkyd2zqahdbg69y20r550z78lvr1r3pbjymnwfg4hcfq1p"))))
8382 (properties `((upstream-name . "motifRG")))
8383 (build-system r-build-system)
8384 (propagated-inputs
8385 `(("r-biostrings" ,r-biostrings)
8386 ("r-bsgenome" ,r-bsgenome)
8387 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8388 ("r-iranges" ,r-iranges)
8389 ("r-seqlogo" ,r-seqlogo)
8390 ("r-xvector" ,r-xvector)))
8391 (home-page "https://bioconductor.org/packages/motifRG")
8392 (synopsis "Discover motifs in high throughput sequencing data")
8393 (description
8394 "This package provides tools for discriminative motif discovery in high
8395 throughput genetic sequencing data sets using regression methods.")
8396 (license license:artistic2.0)))
8397
8398 (define-public r-qtl
8399 (package
8400 (name "r-qtl")
8401 (version "1.42-8")
8402 (source
8403 (origin
8404 (method url-fetch)
8405 (uri (string-append "mirror://cran/src/contrib/qtl_"
8406 version ".tar.gz"))
8407 (sha256
8408 (base32
8409 "1l528dwvfpdlr05imrrm4rq32axp6hld9nqm6mm43kn5n7z2f5k6"))))
8410 (build-system r-build-system)
8411 (home-page "http://rqtl.org/")
8412 (synopsis "R package for analyzing QTL experiments in genetics")
8413 (description "R/qtl is an extension library for the R statistics
8414 system. It is used to analyze experimental crosses for identifying
8415 genes contributing to variation in quantitative traits (so-called
8416 quantitative trait loci, QTLs).
8417
8418 Using a hidden Markov model, R/qtl allows to estimate genetic maps, to
8419 identify genotyping errors, and to perform single-QTL and two-QTL,
8420 two-dimensional genome scans.")
8421 (license license:gpl3)))
8422
8423 (define-public r-zlibbioc
8424 (package
8425 (name "r-zlibbioc")
8426 (version "1.26.0")
8427 (source (origin
8428 (method url-fetch)
8429 (uri (bioconductor-uri "zlibbioc" version))
8430 (sha256
8431 (base32
8432 "1rwr0mci8a712q0isavi4jmhm94gwivc4nr8j7r4kw05flp4g7gz"))))
8433 (properties
8434 `((upstream-name . "zlibbioc")))
8435 (build-system r-build-system)
8436 (home-page "https://bioconductor.org/packages/zlibbioc")
8437 (synopsis "Provider for zlib-1.2.5 to R packages")
8438 (description "This package uses the source code of zlib-1.2.5 to create
8439 libraries for systems that do not have these available via other means.")
8440 (license license:artistic2.0)))
8441
8442 (define-public r-r4rna
8443 (package
8444 (name "r-r4rna")
8445 (version "0.1.4")
8446 (source
8447 (origin
8448 (method url-fetch)
8449 (uri (string-append "http://www.e-rna.org/r-chie/files/R4RNA_"
8450 version ".tar.gz"))
8451 (sha256
8452 (base32
8453 "1p0i78wh76jfgmn9jphbwwaz6yy6pipzfg08xs54cxavxg2j81p5"))))
8454 (build-system r-build-system)
8455 (propagated-inputs
8456 `(("r-optparse" ,r-optparse)
8457 ("r-rcolorbrewer" ,r-rcolorbrewer)))
8458 (home-page "http://www.e-rna.org/r-chie/index.cgi")
8459 (synopsis "Analysis framework for RNA secondary structure")
8460 (description
8461 "The R4RNA package aims to be a general framework for the analysis of RNA
8462 secondary structure and comparative analysis in R.")
8463 (license license:gpl3+)))
8464
8465 (define-public r-rhtslib
8466 (package
8467 (name "r-rhtslib")
8468 (version "1.12.1")
8469 (source
8470 (origin
8471 (method url-fetch)
8472 (uri (bioconductor-uri "Rhtslib" version))
8473 (sha256
8474 (base32
8475 "16ywnb8cmr2xabd1i21b92rfziw7xfbv25yv16ipw617p41wa39z"))))
8476 (properties `((upstream-name . "Rhtslib")))
8477 (build-system r-build-system)
8478 (propagated-inputs
8479 `(("r-zlibbioc" ,r-zlibbioc)))
8480 (inputs
8481 `(("zlib" ,zlib)))
8482 (native-inputs
8483 `(("pkg-config" ,pkg-config)))
8484 (home-page "https://github.com/nhayden/Rhtslib")
8485 (synopsis "High-throughput sequencing library as an R package")
8486 (description
8487 "This package provides the HTSlib C library for high-throughput
8488 nucleotide sequence analysis. The package is primarily useful to developers
8489 of other R packages who wish to make use of HTSlib.")
8490 (license license:lgpl2.0+)))
8491
8492 (define-public r-bamsignals
8493 (package
8494 (name "r-bamsignals")
8495 (version "1.12.1")
8496 (source
8497 (origin
8498 (method url-fetch)
8499 (uri (bioconductor-uri "bamsignals" version))
8500 (sha256
8501 (base32
8502 "141q3p4lzwiqk1mfxi8q1q84axjl0gyiqg59xd3sp4viny4jqmgv"))))
8503 (build-system r-build-system)
8504 (propagated-inputs
8505 `(("r-biocgenerics" ,r-biocgenerics)
8506 ("r-genomicranges" ,r-genomicranges)
8507 ("r-iranges" ,r-iranges)
8508 ("r-rcpp" ,r-rcpp)
8509 ("r-rhtslib" ,r-rhtslib)
8510 ("r-zlibbioc" ,r-zlibbioc)))
8511 (inputs
8512 `(("zlib" ,zlib)))
8513 (home-page "https://bioconductor.org/packages/bamsignals")
8514 (synopsis "Extract read count signals from bam files")
8515 (description
8516 "This package allows to efficiently obtain count vectors from indexed bam
8517 files. It counts the number of nucleotide sequence reads in given genomic
8518 ranges and it computes reads profiles and coverage profiles. It also handles
8519 paired-end data.")
8520 (license license:gpl2+)))
8521
8522 (define-public r-rcas
8523 (package
8524 (name "r-rcas")
8525 (version "1.3.4")
8526 (source (origin
8527 (method url-fetch)
8528 (uri (string-append "https://github.com/BIMSBbioinfo/RCAS/archive/v"
8529 version ".tar.gz"))
8530 (file-name (string-append name "-" version ".tar.gz"))
8531 (sha256
8532 (base32
8533 "1qgc7vi6fpzl440yg7jhiycg5q336kd4pxqzx10yx2zcq3bq3msg"))))
8534 (build-system r-build-system)
8535 (native-inputs
8536 `(("r-knitr" ,r-knitr)
8537 ("r-testthat" ,r-testthat)
8538 ;; During vignette building knitr checks that "pandoc-citeproc"
8539 ;; is in the PATH.
8540 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc-with-pandoc-1)))
8541 (propagated-inputs
8542 `(("r-data-table" ,r-data-table)
8543 ("r-biomart" ,r-biomart)
8544 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
8545 ("r-org-ce-eg-db" ,r-org-ce-eg-db)
8546 ("r-org-dm-eg-db" ,r-org-dm-eg-db)
8547 ("r-org-mm-eg-db" ,r-org-mm-eg-db)
8548 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8549 ("r-bsgenome-mmusculus-ucsc-mm9" ,r-bsgenome-mmusculus-ucsc-mm9)
8550 ("r-bsgenome-celegans-ucsc-ce10" ,r-bsgenome-celegans-ucsc-ce10)
8551 ("r-bsgenome-dmelanogaster-ucsc-dm3" ,r-bsgenome-dmelanogaster-ucsc-dm3)
8552 ("r-topgo" ,r-topgo)
8553 ("r-dt" ,r-dt)
8554 ("r-pbapply" ,r-pbapply)
8555 ("r-plotly" ,r-plotly)
8556 ("r-plotrix" ,r-plotrix)
8557 ("r-motifrg" ,r-motifrg)
8558 ("r-genomation" ,r-genomation)
8559 ("r-genomicfeatures" ,r-genomicfeatures)
8560 ("r-rtracklayer" ,r-rtracklayer)
8561 ("r-rmarkdown" ,r-rmarkdown)))
8562 (synopsis "RNA-centric annotation system")
8563 (description
8564 "RCAS aims to be a standalone RNA-centric annotation system that provides
8565 intuitive reports and publication-ready graphics. This package provides the R
8566 library implementing most of the pipeline's features.")
8567 (home-page "https://github.com/BIMSBbioinfo/RCAS")
8568 (license license:artistic2.0)))
8569
8570 (define-public rcas-web
8571 (package
8572 (name "rcas-web")
8573 (version "0.0.4")
8574 (source
8575 (origin
8576 (method url-fetch)
8577 (uri (string-append "https://github.com/BIMSBbioinfo/rcas-web/"
8578 "releases/download/v" version
8579 "/rcas-web-" version ".tar.gz"))
8580 (sha256
8581 (base32
8582 "1p16frfys41a8yaa4gkm457nzkqhqs2pc3lkac0ds457w9w5j1gm"))))
8583 (build-system gnu-build-system)
8584 (arguments
8585 `(#:phases
8586 (modify-phases %standard-phases
8587 (add-after 'install 'wrap-executable
8588 (lambda* (#:key inputs outputs #:allow-other-keys)
8589 (let* ((out (assoc-ref outputs "out"))
8590 (json (assoc-ref inputs "guile-json"))
8591 (redis (assoc-ref inputs "guile-redis"))
8592 (path (string-append
8593 json "/share/guile/site/2.2:"
8594 redis "/share/guile/site/2.2")))
8595 (wrap-program (string-append out "/bin/rcas-web")
8596 `("GUILE_LOAD_PATH" ":" = (,path))
8597 `("GUILE_LOAD_COMPILED_PATH" ":" = (,path))
8598 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
8599 #t)))))
8600 (inputs
8601 `(("r-minimal" ,r-minimal)
8602 ("r-rcas" ,r-rcas)
8603 ("guile-next" ,guile-2.2)
8604 ("guile-json" ,guile-json)
8605 ("guile-redis" ,guile2.2-redis)))
8606 (native-inputs
8607 `(("pkg-config" ,pkg-config)))
8608 (home-page "https://github.com/BIMSBbioinfo/rcas-web")
8609 (synopsis "Web interface for RNA-centric annotation system (RCAS)")
8610 (description "This package provides a simple web interface for the
8611 @dfn{RNA-centric annotation system} (RCAS).")
8612 (license license:agpl3+)))
8613
8614 (define-public r-mutationalpatterns
8615 (package
8616 (name "r-mutationalpatterns")
8617 (version "1.6.1")
8618 (source
8619 (origin
8620 (method url-fetch)
8621 (uri (bioconductor-uri "MutationalPatterns" version))
8622 (sha256
8623 (base32
8624 "1yq7351j42mjxn8fd3c5bdxzb2l5s4lvqhjdvv4rwj4f600n6wj9"))))
8625 (build-system r-build-system)
8626 (propagated-inputs
8627 `(("r-biocgenerics" ,r-biocgenerics)
8628 ("r-biostrings" ,r-biostrings)
8629 ;; These two packages are suggested packages
8630 ("r-bsgenome-hsapiens-1000g" ,r-bsgenome-hsapiens-1000genomes-hs37d5)
8631 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8632 ("r-genomicranges" ,r-genomicranges)
8633 ("r-genomeinfodb" ,r-genomeinfodb)
8634 ("r-ggplot2" ,r-ggplot2)
8635 ("r-iranges" ,r-iranges)
8636 ("r-nmf" ,r-nmf)
8637 ("r-plyr" ,r-plyr)
8638 ("r-pracma" ,r-pracma)
8639 ("r-reshape2" ,r-reshape2)
8640 ("r-cowplot" ,r-cowplot)
8641 ("r-ggdendro" ,r-ggdendro)
8642 ("r-s4vectors" ,r-s4vectors)
8643 ("r-summarizedexperiment" ,r-summarizedexperiment)
8644 ("r-variantannotation" ,r-variantannotation)))
8645 (home-page "https://bioconductor.org/packages/MutationalPatterns/")
8646 (synopsis "Extract and visualize mutational patterns in genomic data")
8647 (description "This package provides an extensive toolset for the
8648 characterization and visualization of a wide range of mutational patterns
8649 in SNV base substitution data.")
8650 (license license:expat)))
8651
8652 (define-public r-wgcna
8653 (package
8654 (name "r-wgcna")
8655 (version "1.63")
8656 (source
8657 (origin
8658 (method url-fetch)
8659 (uri (cran-uri "WGCNA" version))
8660 (sha256
8661 (base32
8662 "1225dqm68bynkmklnsxdqdd3zqrpzbvqwyly8ibxmk75z33xz309"))))
8663 (properties `((upstream-name . "WGCNA")))
8664 (build-system r-build-system)
8665 (propagated-inputs
8666 `(("r-annotationdbi" ,r-annotationdbi)
8667 ("r-doparallel" ,r-doparallel)
8668 ("r-dynamictreecut" ,r-dynamictreecut)
8669 ("r-fastcluster" ,r-fastcluster)
8670 ("r-foreach" ,r-foreach)
8671 ("r-go-db" ,r-go-db)
8672 ("r-hmisc" ,r-hmisc)
8673 ("r-impute" ,r-impute)
8674 ("r-rcpp" ,r-rcpp)
8675 ("r-robust" ,r-robust)
8676 ("r-survival" ,r-survival)
8677 ("r-matrixstats" ,r-matrixstats)
8678 ("r-preprocesscore" ,r-preprocesscore)))
8679 (home-page
8680 "http://www.genetics.ucla.edu/labs/horvath/CoexpressionNetwork/Rpackages/WGCNA/")
8681 (synopsis "Weighted correlation network analysis")
8682 (description
8683 "This package provides functions necessary to perform Weighted
8684 Correlation Network Analysis on high-dimensional data. It includes functions
8685 for rudimentary data cleaning, construction and summarization of correlation
8686 networks, module identification and functions for relating both variables and
8687 modules to sample traits. It also includes a number of utility functions for
8688 data manipulation and visualization.")
8689 (license license:gpl2+)))
8690
8691 (define-public r-chipkernels
8692 (let ((commit "c9cfcacb626b1221094fb3490ea7bac0fd625372")
8693 (revision "1"))
8694 (package
8695 (name "r-chipkernels")
8696 (version (string-append "1.1-" revision "." (string-take commit 9)))
8697 (source
8698 (origin
8699 (method git-fetch)
8700 (uri (git-reference
8701 (url "https://github.com/ManuSetty/ChIPKernels.git")
8702 (commit commit)))
8703 (file-name (string-append name "-" version))
8704 (sha256
8705 (base32
8706 "14bj5qhjm1hsm9ay561nfbqi9wxsa7y487df2idsaaf6z10nw4v0"))))
8707 (build-system r-build-system)
8708 (propagated-inputs
8709 `(("r-iranges" ,r-iranges)
8710 ("r-xvector" ,r-xvector)
8711 ("r-biostrings" ,r-biostrings)
8712 ("r-bsgenome" ,r-bsgenome)
8713 ("r-gtools" ,r-gtools)
8714 ("r-genomicranges" ,r-genomicranges)
8715 ("r-sfsmisc" ,r-sfsmisc)
8716 ("r-kernlab" ,r-kernlab)
8717 ("r-s4vectors" ,r-s4vectors)
8718 ("r-biocgenerics" ,r-biocgenerics)))
8719 (home-page "https://github.com/ManuSetty/ChIPKernels")
8720 (synopsis "Build string kernels for DNA Sequence analysis")
8721 (description "ChIPKernels is an R package for building different string
8722 kernels used for DNA Sequence analysis. A dictionary of the desired kernel
8723 must be built and this dictionary can be used for determining kernels for DNA
8724 Sequences.")
8725 (license license:gpl2+))))
8726
8727 (define-public r-seqgl
8728 (package
8729 (name "r-seqgl")
8730 (version "1.1.4")
8731 (source
8732 (origin
8733 (method url-fetch)
8734 (uri (string-append "https://github.com/ManuSetty/SeqGL/"
8735 "archive/" version ".tar.gz"))
8736 (file-name (string-append name "-" version ".tar.gz"))
8737 (sha256
8738 (base32
8739 "0pnk1p3sci5yipyc8xnb6jbmydpl80fld927xgnbcv104hy8h8yh"))))
8740 (build-system r-build-system)
8741 (propagated-inputs
8742 `(("r-biostrings" ,r-biostrings)
8743 ("r-chipkernels" ,r-chipkernels)
8744 ("r-genomicranges" ,r-genomicranges)
8745 ("r-spams" ,r-spams)
8746 ("r-wgcna" ,r-wgcna)
8747 ("r-fastcluster" ,r-fastcluster)))
8748 (home-page "https://github.com/ManuSetty/SeqGL")
8749 (synopsis "Group lasso for Dnase/ChIP-seq data")
8750 (description "SeqGL is a group lasso based algorithm to extract
8751 transcription factor sequence signals from ChIP, DNase and ATAC-seq profiles.
8752 This package presents a method which uses group lasso to discriminate between
8753 bound and non bound genomic regions to accurately identify transcription
8754 factors bound at the specific regions.")
8755 (license license:gpl2+)))
8756
8757 (define-public r-gkmsvm
8758 (package
8759 (name "r-gkmsvm")
8760 (version "0.79.0")
8761 (source
8762 (origin
8763 (method url-fetch)
8764 (uri (cran-uri "gkmSVM" version))
8765 (sha256
8766 (base32
8767 "04dakbgfvfalz4rm4fvvybp506dn5fbj5g86ybfhrc6wywjllsz3"))))
8768 (properties `((upstream-name . "gkmSVM")))
8769 (build-system r-build-system)
8770 (propagated-inputs
8771 `(("r-biocgenerics" ,r-biocgenerics)
8772 ("r-biostrings" ,r-biostrings)
8773 ("r-genomeinfodb" ,r-genomeinfodb)
8774 ("r-genomicranges" ,r-genomicranges)
8775 ("r-iranges" ,r-iranges)
8776 ("r-kernlab" ,r-kernlab)
8777 ("r-rcpp" ,r-rcpp)
8778 ("r-rocr" ,r-rocr)
8779 ("r-rtracklayer" ,r-rtracklayer)
8780 ("r-s4vectors" ,r-s4vectors)
8781 ("r-seqinr" ,r-seqinr)))
8782 (home-page "https://cran.r-project.org/web/packages/gkmSVM")
8783 (synopsis "Gapped-kmer support vector machine")
8784 (description
8785 "This R package provides tools for training gapped-kmer SVM classifiers
8786 for DNA and protein sequences. This package supports several sequence
8787 kernels, including: gkmSVM, kmer-SVM, mismatch kernel and wildcard kernel.")
8788 (license license:gpl2+)))
8789
8790 (define-public r-tximport
8791 (package
8792 (name "r-tximport")
8793 (version "1.8.0")
8794 (source (origin
8795 (method url-fetch)
8796 (uri (bioconductor-uri "tximport" version))
8797 (sha256
8798 (base32
8799 "1qjc7ah9dzccpvcjrp9k4qnaz13x6kvy1c1xpdj503km6k528lip"))))
8800 (build-system r-build-system)
8801 (home-page "https://bioconductor.org/packages/tximport")
8802 (synopsis "Import and summarize transcript-level estimates for gene-level analysis")
8803 (description
8804 "This package provides tools to import transcript-level abundance,
8805 estimated counts and transcript lengths, and to summarize them into matrices
8806 for use with downstream gene-level analysis packages. Average transcript
8807 length, weighted by sample-specific transcript abundance estimates, is
8808 provided as a matrix which can be used as an offset for different expression
8809 of gene-level counts.")
8810 (license license:gpl2+)))
8811
8812 (define-public r-rhdf5
8813 (package
8814 (name "r-rhdf5")
8815 (version "2.24.0")
8816 (source (origin
8817 (method url-fetch)
8818 (uri (bioconductor-uri "rhdf5" version))
8819 (sha256
8820 (base32
8821 "15cmmchhk8bnp94gxg0zk9qyzdjx5kv16dzpbnb62mkq7ydmifx6"))))
8822 (build-system r-build-system)
8823 (propagated-inputs
8824 `(("r-rhdf5lib" ,r-rhdf5lib)))
8825 (inputs
8826 `(("zlib" ,zlib)))
8827 (home-page "https://bioconductor.org/packages/rhdf5")
8828 (synopsis "HDF5 interface to R")
8829 (description
8830 "This R/Bioconductor package provides an interface between HDF5 and R.
8831 HDF5's main features are the ability to store and access very large and/or
8832 complex datasets and a wide variety of metadata on mass storage (disk) through
8833 a completely portable file format. The rhdf5 package is thus suited for the
8834 exchange of large and/or complex datasets between R and other software
8835 package, and for letting R applications work on datasets that are larger than
8836 the available RAM.")
8837 (license license:artistic2.0)))
8838
8839 (define-public r-annotationfilter
8840 (package
8841 (name "r-annotationfilter")
8842 (version "1.4.0")
8843 (source (origin
8844 (method url-fetch)
8845 (uri (bioconductor-uri "AnnotationFilter" version))
8846 (sha256
8847 (base32
8848 "1w8ypfdz4g7vnwfrvnhjcpm8waciqyq2cn883ajdwg4vv7a5mj9a"))))
8849 (properties
8850 `((upstream-name . "AnnotationFilter")))
8851 (build-system r-build-system)
8852 (propagated-inputs
8853 `(("r-genomicranges" ,r-genomicranges)
8854 ("r-lazyeval" ,r-lazyeval)))
8855 (home-page "https://github.com/Bioconductor/AnnotationFilter")
8856 (synopsis "Facilities for filtering Bioconductor annotation resources")
8857 (description
8858 "This package provides classes and other infrastructure to implement
8859 filters for manipulating Bioconductor annotation resources. The filters are
8860 used by @code{ensembldb}, @code{Organism.dplyr}, and other packages.")
8861 (license license:artistic2.0)))
8862
8863 (define-public emboss
8864 (package
8865 (name "emboss")
8866 (version "6.5.7")
8867 (source (origin
8868 (method url-fetch)
8869 (uri (string-append "ftp://emboss.open-bio.org/pub/EMBOSS/old/"
8870 (version-major+minor version) ".0/"
8871 "EMBOSS-" version ".tar.gz"))
8872 (sha256
8873 (base32
8874 "0vsmz96gc411yj2iyzdrsmg4l2n1nhgmp7vrgzlxx3xixv9xbf0q"))))
8875 (build-system gnu-build-system)
8876 (arguments
8877 `(#:configure-flags
8878 (list (string-append "--with-hpdf="
8879 (assoc-ref %build-inputs "libharu")))
8880 #:phases
8881 (modify-phases %standard-phases
8882 (add-after 'unpack 'fix-checks
8883 (lambda _
8884 ;; The PNGDRIVER tests check for the presence of libgd, libpng
8885 ;; and zlib, but assume that they are all found at the same
8886 ;; prefix.
8887 (substitute* "configure.in"
8888 (("CHECK_PNGDRIVER")
8889 "LIBS=\"$LIBS -lgd -lpng -lz -lm\"
8890 AC_DEFINE([PLD_png], [1], [Define to 1 if PNG support is available])
8891 AM_CONDITIONAL(AMPNG, true)"))
8892 #t))
8893 (add-after 'fix-checks 'disable-update-check
8894 (lambda _
8895 ;; At build time there is no connection to the Internet, so
8896 ;; looking for updates will not work.
8897 (substitute* "Makefile.am"
8898 (("\\$\\(bindir\\)/embossupdate") ""))
8899 #t))
8900 (add-after 'disable-update-check 'autogen
8901 (lambda _ (zero? (system* "autoreconf" "-vif")))))))
8902 (inputs
8903 `(("perl" ,perl)
8904 ("libpng" ,libpng)
8905 ("gd" ,gd)
8906 ("libx11" ,libx11)
8907 ("libharu" ,libharu)
8908 ("zlib" ,zlib)))
8909 (native-inputs
8910 `(("autoconf" ,autoconf)
8911 ("automake" ,automake)
8912 ("libtool" ,libtool)
8913 ("pkg-config" ,pkg-config)))
8914 (home-page "http://emboss.sourceforge.net")
8915 (synopsis "Molecular biology analysis suite")
8916 (description "EMBOSS is the \"European Molecular Biology Open Software
8917 Suite\". EMBOSS is an analysis package specially developed for the needs of
8918 the molecular biology (e.g. EMBnet) user community. The software
8919 automatically copes with data in a variety of formats and even allows
8920 transparent retrieval of sequence data from the web. It also provides a
8921 number of libraries for the development of software in the field of molecular
8922 biology. EMBOSS also integrates a range of currently available packages and
8923 tools for sequence analysis into a seamless whole.")
8924 (license license:gpl2+)))
8925
8926 (define-public bits
8927 (let ((revision "1")
8928 (commit "3cc4567896d9d6442923da944beb704750a08d2d"))
8929 (package
8930 (name "bits")
8931 ;; The version is 2.13.0 even though no release archives have been
8932 ;; published as yet.
8933 (version (string-append "2.13.0-" revision "." (string-take commit 9)))
8934 (source (origin
8935 (method git-fetch)
8936 (uri (git-reference
8937 (url "https://github.com/arq5x/bits.git")
8938 (commit commit)))
8939 (file-name (string-append name "-" version "-checkout"))
8940 (sha256
8941 (base32
8942 "17n2kffk4kmhivd8c98g2vr6y1s23vbg4sxlxs689wni66797hbs"))))
8943 (build-system gnu-build-system)
8944 (arguments
8945 `(#:tests? #f ;no tests included
8946 #:phases
8947 (modify-phases %standard-phases
8948 (delete 'configure)
8949 (add-after 'unpack 'remove-cuda
8950 (lambda _
8951 (substitute* "Makefile"
8952 ((".*_cuda") "")
8953 (("(bits_test_intersections) \\\\" _ match) match))
8954 #t))
8955 (replace 'install
8956 (lambda* (#:key outputs #:allow-other-keys)
8957 (copy-recursively
8958 "bin" (string-append (assoc-ref outputs "out") "/bin"))
8959 #t)))))
8960 (inputs
8961 `(("gsl" ,gsl)
8962 ("zlib" ,zlib)))
8963 (home-page "https://github.com/arq5x/bits")
8964 (synopsis "Implementation of binary interval search algorithm")
8965 (description "This package provides an implementation of the
8966 BITS (Binary Interval Search) algorithm, an approach to interval set
8967 intersection. It is especially suited for the comparison of diverse genomic
8968 datasets and the exploration of large datasets of genome
8969 intervals (e.g. genes, sequence alignments).")
8970 (license license:gpl2))))
8971
8972 (define-public piranha
8973 ;; There is no release tarball for the latest version. The latest commit is
8974 ;; older than one year at the time of this writing.
8975 (let ((revision "1")
8976 (commit "0466d364b71117d01e4471b74c514436cc281233"))
8977 (package
8978 (name "piranha")
8979 (version (string-append "1.2.1-" revision "." (string-take commit 9)))
8980 (source (origin
8981 (method git-fetch)
8982 (uri (git-reference
8983 (url "https://github.com/smithlabcode/piranha.git")
8984 (commit commit)))
8985 (file-name (git-file-name name version))
8986 (sha256
8987 (base32
8988 "117dc0zf20c61jam69sk4abl57ah6yi6i7qra7d7y5zrbgk12q5n"))))
8989 (build-system gnu-build-system)
8990 (arguments
8991 `(#:test-target "test"
8992 #:phases
8993 (modify-phases %standard-phases
8994 (add-after 'unpack 'copy-smithlab-cpp
8995 (lambda* (#:key inputs #:allow-other-keys)
8996 (for-each (lambda (file)
8997 (install-file file "./src/smithlab_cpp/"))
8998 (find-files (assoc-ref inputs "smithlab-cpp")))
8999 #t))
9000 (add-after 'install 'install-to-store
9001 (lambda* (#:key outputs #:allow-other-keys)
9002 (let* ((out (assoc-ref outputs "out"))
9003 (bin (string-append out "/bin")))
9004 (for-each (lambda (file)
9005 (install-file file bin))
9006 (find-files "bin" ".*")))
9007 #t)))
9008 #:configure-flags
9009 (list (string-append "--with-bam_tools_headers="
9010 (assoc-ref %build-inputs "bamtools") "/include/bamtools")
9011 (string-append "--with-bam_tools_library="
9012 (assoc-ref %build-inputs "bamtools") "/lib/bamtools"))))
9013 (inputs
9014 `(("bamtools" ,bamtools)
9015 ("samtools" ,samtools-0.1)
9016 ("gsl" ,gsl)
9017 ("smithlab-cpp"
9018 ,(let ((commit "3723e2db438c51501d0423429ff396c3035ba46a"))
9019 (origin
9020 (method git-fetch)
9021 (uri (git-reference
9022 (url "https://github.com/smithlabcode/smithlab_cpp.git")
9023 (commit commit)))
9024 (file-name (string-append "smithlab_cpp-" commit "-checkout"))
9025 (sha256
9026 (base32
9027 "0l4gvbwslw5ngziskja41c00x1r06l3yidv7y0xw9djibhykzy0g")))))))
9028 (native-inputs
9029 `(("python" ,python-2)))
9030 (home-page "https://github.com/smithlabcode/piranha")
9031 (synopsis "Peak-caller for CLIP-seq and RIP-seq data")
9032 (description
9033 "Piranha is a peak-caller for genomic data produced by CLIP-seq and
9034 RIP-seq experiments. It takes input in BED or BAM format and identifies
9035 regions of statistically significant read enrichment. Additional covariates
9036 may optionally be provided to further inform the peak-calling process.")
9037 (license license:gpl3+))))
9038
9039 (define-public pepr
9040 (package
9041 (name "pepr")
9042 (version "1.0.9")
9043 (source (origin
9044 (method url-fetch)
9045 (uri (string-append "https://pypi.python.org/packages/source/P"
9046 "/PePr/PePr-" version ".tar.gz"))
9047 (sha256
9048 (base32
9049 "0qxjfdpl1b1y53nccws2d85f6k74zwmx8y8sd9rszcqhfayx6gdx"))))
9050 (build-system python-build-system)
9051 (arguments
9052 `(#:python ,python-2 ; python2 only
9053 #:tests? #f)) ; no tests included
9054 (propagated-inputs
9055 `(("python2-numpy" ,python2-numpy)
9056 ("python2-scipy" ,python2-scipy)
9057 ("python2-pysam" ,python2-pysam)))
9058 (home-page "https://github.com/shawnzhangyx/PePr")
9059 (synopsis "Peak-calling and prioritization pipeline for ChIP-Seq data")
9060 (description
9061 "PePr is a ChIP-Seq peak calling or differential binding analysis tool
9062 that is primarily designed for data with biological replicates. It uses a
9063 negative binomial distribution to model the read counts among the samples in
9064 the same group, and look for consistent differences between ChIP and control
9065 group or two ChIP groups run under different conditions.")
9066 (license license:gpl3+)))
9067
9068 (define-public filevercmp
9069 (let ((commit "1a9b779b93d0b244040274794d402106907b71b7"))
9070 (package
9071 (name "filevercmp")
9072 (version (string-append "0-1." (string-take commit 7)))
9073 (source (origin
9074 (method url-fetch)
9075 (uri (string-append "https://github.com/ekg/filevercmp/archive/"
9076 commit ".tar.gz"))
9077 (file-name (string-append name "-" version ".tar.gz"))
9078 (sha256
9079 (base32 "0yp5jswf5j2pqc6517x277s4s6h1ss99v57kxw9gy0jkfl3yh450"))))
9080 (build-system gnu-build-system)
9081 (arguments
9082 `(#:tests? #f ; There are no tests to run.
9083 #:phases
9084 (modify-phases %standard-phases
9085 (delete 'configure) ; There is no configure phase.
9086 (replace 'install
9087 (lambda* (#:key outputs #:allow-other-keys)
9088 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
9089 (install-file "filevercmp" bin)))))))
9090 (home-page "https://github.com/ekg/filevercmp")
9091 (synopsis "This program compares version strings")
9092 (description "This program compares version strings. It intends to be a
9093 replacement for strverscmp.")
9094 (license license:gpl3+))))
9095
9096 (define-public multiqc
9097 (package
9098 (name "multiqc")
9099 (version "1.5")
9100 (source
9101 (origin
9102 (method url-fetch)
9103 (uri (pypi-uri "multiqc" version))
9104 (sha256
9105 (base32
9106 "02iihfl0w0hpnr4pa0sbd1y9qxrg3ycyhjp5lidkcrqh1lmzs3zy"))))
9107 (build-system python-build-system)
9108 (propagated-inputs
9109 `(("python-jinja2" ,python-jinja2)
9110 ("python-simplejson" ,python-simplejson)
9111 ("python-pyyaml" ,python-pyyaml)
9112 ("python-click" ,python-click)
9113 ("python-spectra" ,python-spectra)
9114 ("python-requests" ,python-requests)
9115 ("python-markdown" ,python-markdown)
9116 ("python-lzstring" ,python-lzstring)
9117 ("python-matplotlib" ,python-matplotlib)
9118 ("python-numpy" ,python-numpy)
9119 ;; MultQC checks for the presence of nose at runtime.
9120 ("python-nose" ,python-nose)))
9121 (arguments
9122 `(#:phases
9123 (modify-phases %standard-phases
9124 (add-after 'unpack 'relax-requirements
9125 (lambda _
9126 (substitute* "setup.py"
9127 ;; MultiQC 1.5 ‘requires’ a version of python-matplotlib older
9128 ;; than the one in Guix, but should work fine with 2.2.2.
9129 ;; See <https://github.com/ewels/MultiQC/issues/725> and
9130 ;; <https://github.com/ewels/MultiQC/issues/732> for details.
9131 (("['\"]matplotlib.*?['\"]")
9132 "'matplotlib'"))
9133 #t)))))
9134 (home-page "http://multiqc.info")
9135 (synopsis "Aggregate bioinformatics analysis reports")
9136 (description
9137 "MultiQC is a tool to aggregate bioinformatics results across many
9138 samples into a single report. It contains modules for a large number of
9139 common bioinformatics tools.")
9140 (license license:gpl3+)))
9141
9142 (define-public r-chipseq
9143 (package
9144 (name "r-chipseq")
9145 (version "1.30.0")
9146 (source
9147 (origin
9148 (method url-fetch)
9149 (uri (bioconductor-uri "chipseq" version))
9150 (sha256
9151 (base32
9152 "09f8dgl5ni75qkf7nvvppwr3irpplv4xb3ks59ld7l8i2mplcrx7"))))
9153 (build-system r-build-system)
9154 (propagated-inputs
9155 `(("r-biocgenerics" ,r-biocgenerics)
9156 ("r-genomicranges" ,r-genomicranges)
9157 ("r-iranges" ,r-iranges)
9158 ("r-lattice" ,r-lattice)
9159 ("r-s4vectors" ,r-s4vectors)
9160 ("r-shortread" ,r-shortread)))
9161 (home-page "https://bioconductor.org/packages/chipseq")
9162 (synopsis "Package for analyzing ChIPseq data")
9163 (description
9164 "This package provides tools for processing short read data from ChIPseq
9165 experiments.")
9166 (license license:artistic2.0)))
9167
9168 (define-public r-copyhelper
9169 (package
9170 (name "r-copyhelper")
9171 (version "1.6.0")
9172 (source
9173 (origin
9174 (method url-fetch)
9175 (uri (string-append "https://bioconductor.org/packages/release/"
9176 "data/experiment/src/contrib/CopyhelpeR_"
9177 version ".tar.gz"))
9178 (sha256
9179 (base32
9180 "0x7cyynjmxls9as2gg0iyp9x5fpalxmdjq914ss7i84i9zyk5bhq"))))
9181 (properties `((upstream-name . "CopyhelpeR")))
9182 (build-system r-build-system)
9183 (home-page "https://bioconductor.org/packages/CopyhelpeR/")
9184 (synopsis "Helper files for CopywriteR")
9185 (description
9186 "This package contains the helper files that are required to run the
9187 Bioconductor package CopywriteR. It contains pre-assembled 1kb bin GC-content
9188 and mappability files for the reference genomes hg18, hg19, hg38, mm9 and
9189 mm10. In addition, it contains a blacklist filter to remove regions that
9190 display copy number variation. Files are stored as GRanges objects from the
9191 GenomicRanges Bioconductor package.")
9192 (license license:gpl2)))
9193
9194 (define-public r-copywriter
9195 (package
9196 (name "r-copywriter")
9197 (version "2.12.0")
9198 (source
9199 (origin
9200 (method url-fetch)
9201 (uri (bioconductor-uri "CopywriteR" version))
9202 (sha256
9203 (base32
9204 "0b7xwq1va2zclb54f07c5ipmmq4iv2hrlph3j93jz5hmyayv50z3"))))
9205 (properties `((upstream-name . "CopywriteR")))
9206 (build-system r-build-system)
9207 (propagated-inputs
9208 `(("r-biocparallel" ,r-biocparallel)
9209 ("r-chipseq" ,r-chipseq)
9210 ("r-copyhelper" ,r-copyhelper)
9211 ("r-data-table" ,r-data-table)
9212 ("r-dnacopy" ,r-dnacopy)
9213 ("r-futile-logger" ,r-futile-logger)
9214 ("r-genomeinfodb" ,r-genomeinfodb)
9215 ("r-genomicalignments" ,r-genomicalignments)
9216 ("r-genomicranges" ,r-genomicranges)
9217 ("r-gtools" ,r-gtools)
9218 ("r-iranges" ,r-iranges)
9219 ("r-matrixstats" ,r-matrixstats)
9220 ("r-rsamtools" ,r-rsamtools)
9221 ("r-s4vectors" ,r-s4vectors)))
9222 (home-page "https://github.com/PeeperLab/CopywriteR")
9223 (synopsis "Copy number information from targeted sequencing")
9224 (description
9225 "CopywriteR extracts DNA copy number information from targeted sequencing
9226 by utilizing off-target reads. It allows for extracting uniformly distributed
9227 copy number information, can be used without reference, and can be applied to
9228 sequencing data obtained from various techniques including chromatin
9229 immunoprecipitation and target enrichment on small gene panels. Thereby,
9230 CopywriteR constitutes a widely applicable alternative to available copy
9231 number detection tools.")
9232 (license license:gpl2)))
9233
9234 (define-public r-methylkit
9235 (package
9236 (name "r-methylkit")
9237 (version "1.6.1")
9238 (source (origin
9239 (method url-fetch)
9240 (uri (bioconductor-uri "methylKit" version))
9241 (sha256
9242 (base32
9243 "1hr2czi5ybdf7hdmqsv39d17f3mvmw94wa38bc14zzm9mgy9gfy7"))))
9244 (properties `((upstream-name . "methylKit")))
9245 (build-system r-build-system)
9246 (propagated-inputs
9247 `(("r-data-table" ,r-data-table)
9248 ("r-emdbook" ,r-emdbook)
9249 ("r-fastseg" ,r-fastseg)
9250 ("r-genomeinfodb" ,r-genomeinfodb)
9251 ("r-genomicranges" ,r-genomicranges)
9252 ("r-gtools" ,r-gtools)
9253 ("r-iranges" ,r-iranges)
9254 ("r-kernsmooth" ,r-kernsmooth)
9255 ("r-limma" ,r-limma)
9256 ("r-mclust" ,r-mclust)
9257 ("r-qvalue" ,r-qvalue)
9258 ("r-r-utils" ,r-r-utils)
9259 ("r-rcpp" ,r-rcpp)
9260 ("r-rhtslib" ,r-rhtslib)
9261 ("r-rsamtools" ,r-rsamtools)
9262 ("r-rtracklayer" ,r-rtracklayer)
9263 ("r-s4vectors" ,r-s4vectors)
9264 ("r-zlibbioc" ,r-zlibbioc)))
9265 (inputs
9266 `(("zlib" ,zlib)))
9267 (home-page "https://github.com/al2na/methylKit")
9268 (synopsis
9269 "DNA methylation analysis from high-throughput bisulfite sequencing results")
9270 (description
9271 "MethylKit is an R package for DNA methylation analysis and annotation
9272 from high-throughput bisulfite sequencing. The package is designed to deal
9273 with sequencing data from @dfn{Reduced representation bisulfite
9274 sequencing} (RRBS) and its variants, but also target-capture methods and whole
9275 genome bisulfite sequencing. It also has functions to analyze base-pair
9276 resolution 5hmC data from experimental protocols such as oxBS-Seq and
9277 TAB-Seq.")
9278 (license license:artistic2.0)))
9279
9280 (define-public r-sva
9281 (package
9282 (name "r-sva")
9283 (version "3.28.0")
9284 (source
9285 (origin
9286 (method url-fetch)
9287 (uri (bioconductor-uri "sva" version))
9288 (sha256
9289 (base32
9290 "0a3jqbz0jp1jxrnjkqfpmca840yqcdwxprdl608bzzx2zb4jl52s"))))
9291 (build-system r-build-system)
9292 (propagated-inputs
9293 `(("r-genefilter" ,r-genefilter)
9294 ("r-mgcv" ,r-mgcv)
9295 ("r-biocparallel" ,r-biocparallel)
9296 ("r-matrixstats" ,r-matrixstats)
9297 ("r-limma" ,r-limma)))
9298 (home-page "https://bioconductor.org/packages/sva")
9299 (synopsis "Surrogate variable analysis")
9300 (description
9301 "This package contains functions for removing batch effects and other
9302 unwanted variation in high-throughput experiment. It also contains functions
9303 for identifying and building surrogate variables for high-dimensional data
9304 sets. Surrogate variables are covariates constructed directly from
9305 high-dimensional data like gene expression/RNA sequencing/methylation/brain
9306 imaging data that can be used in subsequent analyses to adjust for unknown,
9307 unmodeled, or latent sources of noise.")
9308 (license license:artistic2.0)))
9309
9310 (define-public r-seqminer
9311 (package
9312 (name "r-seqminer")
9313 (version "6.0")
9314 (source
9315 (origin
9316 (method url-fetch)
9317 (uri (cran-uri "seqminer" version))
9318 (sha256
9319 (base32
9320 "057j1l6dip35l1aivilapl2zv9db677b3di2pb3sfgq2sxg0ps3l"))))
9321 (build-system r-build-system)
9322 (inputs
9323 `(("zlib" ,zlib)))
9324 (home-page "http://seqminer.genomic.codes")
9325 (synopsis "Read nucleotide sequence data (VCF, BCF, and METAL formats)")
9326 (description
9327 "This package provides tools to integrate nucleotide sequencing
9328 data (variant call format, e.g. VCF or BCF) or meta-analysis results in R.")
9329 ;; Any version of the GPL is acceptable
9330 (license (list license:gpl2+ license:gpl3+))))
9331
9332 (define-public r-raremetals2
9333 (package
9334 (name "r-raremetals2")
9335 (version "0.1")
9336 (source
9337 (origin
9338 (method url-fetch)
9339 (uri (string-append "http://genome.sph.umich.edu/w/images/"
9340 "b/b7/RareMETALS2_" version ".tar.gz"))
9341 (sha256
9342 (base32
9343 "0z5ljcgvnm06ja9lm85a3cniq7slxcy37aqqkxrdidr79an5fs4s"))))
9344 (properties `((upstream-name . "RareMETALS2")))
9345 (build-system r-build-system)
9346 (propagated-inputs
9347 `(("r-seqminer" ,r-seqminer)
9348 ("r-mvtnorm" ,r-mvtnorm)
9349 ("r-mass" ,r-mass)
9350 ("r-compquadform" ,r-compquadform)
9351 ("r-getopt" ,r-getopt)))
9352 (home-page "http://genome.sph.umich.edu/wiki/RareMETALS2")
9353 (synopsis "Analyze gene-level association tests for binary trait")
9354 (description
9355 "The R package rareMETALS2 is an extension of the R package rareMETALS.
9356 It was designed to meta-analyze gene-level association tests for binary trait.
9357 While rareMETALS offers a near-complete solution for meta-analysis of
9358 gene-level tests for quantitative trait, it does not offer the optimal
9359 solution for binary trait. The package rareMETALS2 offers improved features
9360 for analyzing gene-level association tests in meta-analyses for binary
9361 trait.")
9362 (license license:gpl3)))
9363
9364 (define-public r-maldiquant
9365 (package
9366 (name "r-maldiquant")
9367 (version "1.17")
9368 (source
9369 (origin
9370 (method url-fetch)
9371 (uri (cran-uri "MALDIquant" version))
9372 (sha256
9373 (base32
9374 "047s6007ydc38x8wm027mlb4mngz15n0d4238fr8h43wyll5zy0z"))))
9375 (properties `((upstream-name . "MALDIquant")))
9376 (build-system r-build-system)
9377 (home-page "https://cran.r-project.org/web/packages/MALDIquant")
9378 (synopsis "Quantitative analysis of mass spectrometry data")
9379 (description
9380 "This package provides a complete analysis pipeline for matrix-assisted
9381 laser desorption/ionization-time-of-flight (MALDI-TOF) and other
9382 two-dimensional mass spectrometry data. In addition to commonly used plotting
9383 and processing methods it includes distinctive features, namely baseline
9384 subtraction methods such as morphological filters (TopHat) or the
9385 statistics-sensitive non-linear iterative peak-clipping algorithm (SNIP), peak
9386 alignment using warping functions, handling of replicated measurements as well
9387 as allowing spectra with different resolutions.")
9388 (license license:gpl3+)))
9389
9390 (define-public r-protgenerics
9391 (package
9392 (name "r-protgenerics")
9393 (version "1.12.0")
9394 (source
9395 (origin
9396 (method url-fetch)
9397 (uri (bioconductor-uri "ProtGenerics" version))
9398 (sha256
9399 (base32
9400 "05jbadw2aiwy8vi2ia0jxg06cmwhly2cq4dy1ag7kdxf1c5i9ccn"))))
9401 (properties `((upstream-name . "ProtGenerics")))
9402 (build-system r-build-system)
9403 (home-page "https://github.com/lgatto/ProtGenerics")
9404 (synopsis "S4 generic functions for proteomics infrastructure")
9405 (description
9406 "This package provides S4 generic functions needed by Bioconductor
9407 proteomics packages.")
9408 (license license:artistic2.0)))
9409
9410 (define-public r-mzr
9411 (package
9412 (name "r-mzr")
9413 (version "2.14.0")
9414 (source
9415 (origin
9416 (method url-fetch)
9417 (uri (bioconductor-uri "mzR" version))
9418 (sha256
9419 (base32
9420 "190m2bq5bqxhljaj4f7vz9wj5h5laaxd8zp5jampnql6xc4zmarg"))
9421 (modules '((guix build utils)))
9422 (snippet
9423 '(begin
9424 (delete-file-recursively "src/boost")
9425 #t))))
9426 (properties `((upstream-name . "mzR")))
9427 (build-system r-build-system)
9428 (arguments
9429 `(#:phases
9430 (modify-phases %standard-phases
9431 (add-after 'unpack 'use-system-boost
9432 (lambda _
9433 (substitute* "src/Makevars"
9434 (("\\./boost/libs.*") "")
9435 (("ARCH_OBJS=" line)
9436 (string-append line
9437 "\nARCH_LIBS=-lboost_system -lboost_regex \
9438 -lboost_iostreams -lboost_thread -lboost_filesystem -lboost_chrono\n")))
9439 #t)))))
9440 (inputs
9441 `(("boost" ,boost) ; use this instead of the bundled boost sources
9442 ("netcdf" ,netcdf)
9443 ("zlib" ,zlib)))
9444 (propagated-inputs
9445 `(("r-biobase" ,r-biobase)
9446 ("r-biocgenerics" ,r-biocgenerics)
9447 ("r-protgenerics" ,r-protgenerics)
9448 ("r-rcpp" ,r-rcpp)
9449 ("r-rhdf5lib" ,r-rhdf5lib)
9450 ("r-zlibbioc" ,r-zlibbioc)))
9451 (home-page "https://github.com/sneumann/mzR/")
9452 (synopsis "Parser for mass spectrometry data files")
9453 (description
9454 "The mzR package provides a unified API to the common file formats and
9455 parsers available for mass spectrometry data. It comes with a wrapper for the
9456 ISB random access parser for mass spectrometry mzXML, mzData and mzML files.
9457 The package contains the original code written by the ISB, and a subset of the
9458 proteowizard library for mzML and mzIdentML. The netCDF reading code has
9459 previously been used in XCMS.")
9460 (license license:artistic2.0)))
9461
9462 (define-public r-affyio
9463 (package
9464 (name "r-affyio")
9465 (version "1.50.0")
9466 (source
9467 (origin
9468 (method url-fetch)
9469 (uri (bioconductor-uri "affyio" version))
9470 (sha256
9471 (base32
9472 "0sh5wnnchyfpq5n6rchbqmb27byn7kdzn5rgran6i39c81i5z22n"))))
9473 (build-system r-build-system)
9474 (propagated-inputs
9475 `(("r-zlibbioc" ,r-zlibbioc)))
9476 (inputs
9477 `(("zlib" ,zlib)))
9478 (home-page "https://github.com/bmbolstad/affyio")
9479 (synopsis "Tools for parsing Affymetrix data files")
9480 (description
9481 "This package provides routines for parsing Affymetrix data files based
9482 upon file format information. The primary focus is on accessing the CEL and
9483 CDF file formats.")
9484 (license license:lgpl2.0+)))
9485
9486 (define-public r-affy
9487 (package
9488 (name "r-affy")
9489 (version "1.58.0")
9490 (source
9491 (origin
9492 (method url-fetch)
9493 (uri (bioconductor-uri "affy" version))
9494 (sha256
9495 (base32
9496 "0sxq875sigm21sf3qncrfrwfdz9nqw1vldxn3d3hj6aq64jg1ki6"))))
9497 (build-system r-build-system)
9498 (propagated-inputs
9499 `(("r-affyio" ,r-affyio)
9500 ("r-biobase" ,r-biobase)
9501 ("r-biocgenerics" ,r-biocgenerics)
9502 ("r-biocinstaller" ,r-biocinstaller)
9503 ("r-preprocesscore" ,r-preprocesscore)
9504 ("r-zlibbioc" ,r-zlibbioc)))
9505 (inputs
9506 `(("zlib" ,zlib)))
9507 (home-page "https://bioconductor.org/packages/affy")
9508 (synopsis "Methods for affymetrix oligonucleotide arrays")
9509 (description
9510 "This package contains functions for exploratory oligonucleotide array
9511 analysis.")
9512 (license license:lgpl2.0+)))
9513
9514 (define-public r-vsn
9515 (package
9516 (name "r-vsn")
9517 (version "3.48.1")
9518 (source
9519 (origin
9520 (method url-fetch)
9521 (uri (bioconductor-uri "vsn" version))
9522 (sha256
9523 (base32
9524 "0k6mah3g3zqbfap31xmvig4fn452a18xwwa5y0mfj5mj8588p57h"))))
9525 (build-system r-build-system)
9526 (propagated-inputs
9527 `(("r-affy" ,r-affy)
9528 ("r-biobase" ,r-biobase)
9529 ("r-ggplot2" ,r-ggplot2)
9530 ("r-lattice" ,r-lattice)
9531 ("r-limma" ,r-limma)))
9532 (home-page "https://bioconductor.org/packages/release/bioc/html/vsn.html")
9533 (synopsis "Variance stabilization and calibration for microarray data")
9534 (description
9535 "The package implements a method for normalising microarray intensities,
9536 and works for single- and multiple-color arrays. It can also be used for data
9537 from other technologies, as long as they have similar format. The method uses
9538 a robust variant of the maximum-likelihood estimator for an
9539 additive-multiplicative error model and affine calibration. The model
9540 incorporates data calibration step (a.k.a. normalization), a model for the
9541 dependence of the variance on the mean intensity and a variance stabilizing
9542 data transformation. Differences between transformed intensities are
9543 analogous to \"normalized log-ratios\". However, in contrast to the latter,
9544 their variance is independent of the mean, and they are usually more sensitive
9545 and specific in detecting differential transcription.")
9546 (license license:artistic2.0)))
9547
9548 (define-public r-mzid
9549 (package
9550 (name "r-mzid")
9551 (version "1.18.0")
9552 (source
9553 (origin
9554 (method url-fetch)
9555 (uri (bioconductor-uri "mzID" version))
9556 (sha256
9557 (base32
9558 "060k0xlhg8q802c6zsb4b8ps0ccd9ybyaz0gnsvqkxb786i2vk40"))))
9559 (properties `((upstream-name . "mzID")))
9560 (build-system r-build-system)
9561 (propagated-inputs
9562 `(("r-doparallel" ,r-doparallel)
9563 ("r-foreach" ,r-foreach)
9564 ("r-iterators" ,r-iterators)
9565 ("r-plyr" ,r-plyr)
9566 ("r-protgenerics" ,r-protgenerics)
9567 ("r-rcpp" ,r-rcpp)
9568 ("r-xml" ,r-xml)))
9569 (home-page "https://bioconductor.org/packages/mzID")
9570 (synopsis "Parser for mzIdentML files")
9571 (description
9572 "This package provides a parser for mzIdentML files implemented using the
9573 XML package. The parser tries to be general and able to handle all types of
9574 mzIdentML files with the drawback of having less pretty output than a vendor
9575 specific parser.")
9576 (license license:gpl2+)))
9577
9578 (define-public r-pcamethods
9579 (package
9580 (name "r-pcamethods")
9581 (version "1.72.0")
9582 (source
9583 (origin
9584 (method url-fetch)
9585 (uri (bioconductor-uri "pcaMethods" version))
9586 (sha256
9587 (base32
9588 "0v99yf8m7ryh6z0r3z0ggpqfnflcq5bn1q1i1cl9b7q4p6b4sa07"))))
9589 (properties `((upstream-name . "pcaMethods")))
9590 (build-system r-build-system)
9591 (propagated-inputs
9592 `(("r-biobase" ,r-biobase)
9593 ("r-biocgenerics" ,r-biocgenerics)
9594 ("r-mass" ,r-mass)
9595 ("r-rcpp" ,r-rcpp)))
9596 (home-page "https://github.com/hredestig/pcamethods")
9597 (synopsis "Collection of PCA methods")
9598 (description
9599 "This package provides Bayesian PCA, Probabilistic PCA, Nipals PCA,
9600 Inverse Non-Linear PCA and the conventional SVD PCA. A cluster based method
9601 for missing value estimation is included for comparison. BPCA, PPCA and
9602 NipalsPCA may be used to perform PCA on incomplete data as well as for
9603 accurate missing value estimation. A set of methods for printing and plotting
9604 the results is also provided. All PCA methods make use of the same data
9605 structure (pcaRes) to provide a common interface to the PCA results.")
9606 (license license:gpl3+)))
9607
9608 (define-public r-msnbase
9609 (package
9610 (name "r-msnbase")
9611 (version "2.6.1")
9612 (source
9613 (origin
9614 (method url-fetch)
9615 (uri (bioconductor-uri "MSnbase" version))
9616 (sha256
9617 (base32
9618 "0zrpx9r93q5ca2zdak5rs2m9sjm0wjdra1xfj3d3sx6p5gzfyg6n"))))
9619 (properties `((upstream-name . "MSnbase")))
9620 (build-system r-build-system)
9621 (propagated-inputs
9622 `(("r-affy" ,r-affy)
9623 ("r-biobase" ,r-biobase)
9624 ("r-biocgenerics" ,r-biocgenerics)
9625 ("r-biocparallel" ,r-biocparallel)
9626 ("r-digest" ,r-digest)
9627 ("r-ggplot2" ,r-ggplot2)
9628 ("r-impute" ,r-impute)
9629 ("r-iranges" ,r-iranges)
9630 ("r-lattice" ,r-lattice)
9631 ("r-maldiquant" ,r-maldiquant)
9632 ("r-mass" ,r-mass)
9633 ("r-mzid" ,r-mzid)
9634 ("r-mzr" ,r-mzr)
9635 ("r-pcamethods" ,r-pcamethods)
9636 ("r-plyr" ,r-plyr)
9637 ("r-preprocesscore" ,r-preprocesscore)
9638 ("r-protgenerics" ,r-protgenerics)
9639 ("r-rcpp" ,r-rcpp)
9640 ("r-s4vectors" ,r-s4vectors)
9641 ("r-scales" ,r-scales)
9642 ("r-vsn" ,r-vsn)
9643 ("r-xml" ,r-xml)))
9644 (home-page "https://github.com/lgatto/MSnbase")
9645 (synopsis "Base functions and classes for MS-based proteomics")
9646 (description
9647 "This package provides basic plotting, data manipulation and processing
9648 of mass spectrometry based proteomics data.")
9649 (license license:artistic2.0)))
9650
9651 (define-public r-msnid
9652 (package
9653 (name "r-msnid")
9654 (version "1.14.0")
9655 (source
9656 (origin
9657 (method url-fetch)
9658 (uri (bioconductor-uri "MSnID" version))
9659 (sha256
9660 (base32
9661 "172q5chi44104iz4y0g42wrimfp7hlhrfa8vzybx6m0ccrkkhl17"))))
9662 (properties `((upstream-name . "MSnID")))
9663 (build-system r-build-system)
9664 (propagated-inputs
9665 `(("r-biobase" ,r-biobase)
9666 ("r-data-table" ,r-data-table)
9667 ("r-doparallel" ,r-doparallel)
9668 ("r-dplyr" ,r-dplyr)
9669 ("r-foreach" ,r-foreach)
9670 ("r-iterators" ,r-iterators)
9671 ("r-msnbase" ,r-msnbase)
9672 ("r-mzid" ,r-mzid)
9673 ("r-mzr" ,r-mzr)
9674 ("r-protgenerics" ,r-protgenerics)
9675 ("r-r-cache" ,r-r-cache)
9676 ("r-rcpp" ,r-rcpp)
9677 ("r-reshape2" ,r-reshape2)))
9678 (home-page "https://bioconductor.org/packages/MSnID")
9679 (synopsis "Utilities for LC-MSn proteomics identifications")
9680 (description
9681 "This package extracts @dfn{tandem mass spectrometry} (MS/MS) ID data
9682 from mzIdentML (leveraging the mzID package) or text files. After collating
9683 the search results from multiple datasets it assesses their identification
9684 quality and optimize filtering criteria to achieve the maximum number of
9685 identifications while not exceeding a specified false discovery rate. It also
9686 contains a number of utilities to explore the MS/MS results and assess missed
9687 and irregular enzymatic cleavages, mass measurement accuracy, etc.")
9688 (license license:artistic2.0)))
9689
9690 (define-public r-seurat
9691 (package
9692 (name "r-seurat")
9693 (version "2.3.1")
9694 (source (origin
9695 (method url-fetch)
9696 (uri (cran-uri "Seurat" version))
9697 (sha256
9698 (base32
9699 "0hi59rgdrr2iqfvx5bq7yq02hbjxkjl1fzidqj14z0ypq0nzbjys"))
9700 ;; Delete pre-built jar.
9701 (snippet
9702 '(begin (delete-file "inst/java/ModularityOptimizer.jar")
9703 #t))))
9704 (properties `((upstream-name . "Seurat")))
9705 (build-system r-build-system)
9706 (arguments
9707 `(#:phases
9708 (modify-phases %standard-phases
9709 (add-after 'unpack 'build-jar
9710 (lambda* (#:key inputs #:allow-other-keys)
9711 (let ((classesdir "tmp-classes"))
9712 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
9713 (mkdir classesdir)
9714 (with-output-to-file "manifest"
9715 (lambda _
9716 (display "Manifest-Version: 1.0
9717 Main-Class: ModularityOptimizer\n")))
9718 (and (zero? (apply system* `("javac" "-d" ,classesdir
9719 ,@(find-files "java" "\\.java$"))))
9720 (zero? (system* "jar"
9721 "-cmf" "manifest"
9722 "inst/java/ModularityOptimizer.jar"
9723 "-C" classesdir ".")))))))))
9724 (native-inputs
9725 `(("jdk" ,icedtea "jdk")))
9726 (propagated-inputs
9727 `(("r-ape" ,r-ape)
9728 ("r-caret" ,r-caret)
9729 ("r-cluster" ,r-cluster)
9730 ("r-cowplot" ,r-cowplot)
9731 ("r-diffusionmap" ,r-diffusionmap)
9732 ("r-dosnow" ,r-dosnow)
9733 ("r-dplyr" ,r-dplyr)
9734 ("r-dtw" ,r-dtw)
9735 ("r-fitdistrplus" ,r-fitdistrplus)
9736 ("r-fnn" ,r-fnn)
9737 ("r-foreach" ,r-foreach)
9738 ("r-fpc" ,r-fpc)
9739 ("r-gdata" ,r-gdata)
9740 ("r-ggplot2" ,r-ggplot2)
9741 ("r-ggridges" ,r-ggridges)
9742 ("r-gplots" ,r-gplots)
9743 ("r-hmisc" ,r-hmisc)
9744 ("r-ica" ,r-ica)
9745 ("r-igraph" ,r-igraph)
9746 ("r-irlba" ,r-irlba)
9747 ("r-lars" ,r-lars)
9748 ("r-lmtest" ,r-lmtest)
9749 ("r-mass" ,r-mass)
9750 ("r-matrix" ,r-matrix)
9751 ("r-metap" ,r-metap)
9752 ("r-mixtools" ,r-mixtools)
9753 ("r-pbapply" ,r-pbapply)
9754 ("r-plotly" ,r-plotly)
9755 ("r-png" ,r-png)
9756 ("r-ranger" ,r-ranger)
9757 ("r-rann" ,r-rann)
9758 ("r-rcolorbrewer" ,r-rcolorbrewer)
9759 ("r-rcpp" ,r-rcpp)
9760 ("r-rcppeigen" ,r-rcppeigen)
9761 ("r-rcppprogress" ,r-rcppprogress)
9762 ("r-reshape2" ,r-reshape2)
9763 ("r-reticulate" ,r-reticulate)
9764 ("r-rocr" ,r-rocr)
9765 ("r-rtsne" ,r-rtsne)
9766 ("r-sdmtools" ,r-sdmtools)
9767 ("r-stringr" ,r-stringr)
9768 ("r-tclust" ,r-tclust)
9769 ("r-tidyr" ,r-tidyr)
9770 ("r-tsne" ,r-tsne)
9771 ("r-vgam" ,r-vgam)))
9772 (home-page "http://www.satijalab.org/seurat")
9773 (synopsis "Seurat is an R toolkit for single cell genomics")
9774 (description
9775 "This package is an R package designed for QC, analysis, and
9776 exploration of single cell RNA-seq data. It easily enables widely-used
9777 analytical techniques, including the identification of highly variable genes,
9778 dimensionality reduction; PCA, ICA, t-SNE, standard unsupervised clustering
9779 algorithms; density clustering, hierarchical clustering, k-means, and the
9780 discovery of differentially expressed genes and markers.")
9781 (license license:gpl3)))
9782
9783 (define-public r-aroma-light
9784 (package
9785 (name "r-aroma-light")
9786 (version "3.10.0")
9787 (source
9788 (origin
9789 (method url-fetch)
9790 (uri (bioconductor-uri "aroma.light" version))
9791 (sha256
9792 (base32
9793 "1dxsiwsrwcq9mj573f9vpdzrhagdqzal328ma8076px4gg6khxkn"))))
9794 (properties `((upstream-name . "aroma.light")))
9795 (build-system r-build-system)
9796 (propagated-inputs
9797 `(("r-matrixstats" ,r-matrixstats)
9798 ("r-r-methodss3" ,r-r-methodss3)
9799 ("r-r-oo" ,r-r-oo)
9800 ("r-r-utils" ,r-r-utils)))
9801 (home-page "https://github.com/HenrikBengtsson/aroma.light")
9802 (synopsis "Methods for normalization and visualization of microarray data")
9803 (description
9804 "This package provides methods for microarray analysis that take basic
9805 data types such as matrices and lists of vectors. These methods can be used
9806 standalone, be utilized in other packages, or be wrapped up in higher-level
9807 classes.")
9808 (license license:gpl2+)))
9809
9810 (define-public r-deseq
9811 (package
9812 (name "r-deseq")
9813 (version "1.32.0")
9814 (source
9815 (origin
9816 (method url-fetch)
9817 (uri (bioconductor-uri "DESeq" version))
9818 (sha256
9819 (base32
9820 "0ykxw8ksif026xy25wx50j2sdsrp156aqkmhcgfjkpgcw699glnm"))))
9821 (properties `((upstream-name . "DESeq")))
9822 (build-system r-build-system)
9823 (propagated-inputs
9824 `(("r-biobase" ,r-biobase)
9825 ("r-biocgenerics" ,r-biocgenerics)
9826 ("r-genefilter" ,r-genefilter)
9827 ("r-geneplotter" ,r-geneplotter)
9828 ("r-lattice" ,r-lattice)
9829 ("r-locfit" ,r-locfit)
9830 ("r-mass" ,r-mass)
9831 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9832 (home-page "http://www-huber.embl.de/users/anders/DESeq")
9833 (synopsis "Differential gene expression analysis")
9834 (description
9835 "This package provides tools for estimating variance-mean dependence in
9836 count data from high-throughput genetic sequencing assays and for testing for
9837 differential expression based on a model using the negative binomial
9838 distribution.")
9839 (license license:gpl3+)))
9840
9841 (define-public r-edaseq
9842 (package
9843 (name "r-edaseq")
9844 (version "2.14.0")
9845 (source
9846 (origin
9847 (method url-fetch)
9848 (uri (bioconductor-uri "EDASeq" version))
9849 (sha256
9850 (base32
9851 "1832pb3jkim4vrqzb8lajwx9r482bhww5n9nz3s6crvyamlp2dj0"))))
9852 (properties `((upstream-name . "EDASeq")))
9853 (build-system r-build-system)
9854 (propagated-inputs
9855 `(("r-annotationdbi" ,r-annotationdbi)
9856 ("r-aroma-light" ,r-aroma-light)
9857 ("r-biobase" ,r-biobase)
9858 ("r-biocgenerics" ,r-biocgenerics)
9859 ("r-biomart" ,r-biomart)
9860 ("r-biostrings" ,r-biostrings)
9861 ("r-deseq" ,r-deseq)
9862 ("r-genomicfeatures" ,r-genomicfeatures)
9863 ("r-genomicranges" ,r-genomicranges)
9864 ("r-iranges" ,r-iranges)
9865 ("r-rsamtools" ,r-rsamtools)
9866 ("r-shortread" ,r-shortread)))
9867 (home-page "https://github.com/drisso/EDASeq")
9868 (synopsis "Exploratory data analysis and normalization for RNA-Seq")
9869 (description
9870 "This package provides support for numerical and graphical summaries of
9871 RNA-Seq genomic read data. Provided within-lane normalization procedures to
9872 adjust for GC-content effect (or other gene-level effects) on read counts:
9873 loess robust local regression, global-scaling, and full-quantile
9874 normalization. Between-lane normalization procedures to adjust for
9875 distributional differences between lanes (e.g., sequencing depth):
9876 global-scaling and full-quantile normalization.")
9877 (license license:artistic2.0)))
9878
9879 (define-public r-interactivedisplaybase
9880 (package
9881 (name "r-interactivedisplaybase")
9882 (version "1.18.0")
9883 (source
9884 (origin
9885 (method url-fetch)
9886 (uri (bioconductor-uri "interactiveDisplayBase" version))
9887 (sha256
9888 (base32
9889 "05w58z3i9vkma4jd6rhjaxls4yiq4kwrppgcdq9xrr1pxp99k575"))))
9890 (properties
9891 `((upstream-name . "interactiveDisplayBase")))
9892 (build-system r-build-system)
9893 (propagated-inputs
9894 `(("r-biocgenerics" ,r-biocgenerics)
9895 ("r-shiny" ,r-shiny)))
9896 (home-page "https://bioconductor.org/packages/interactiveDisplayBase")
9897 (synopsis "Base package for web displays of Bioconductor objects")
9898 (description
9899 "This package contains the basic methods needed to generate interactive
9900 Shiny-based display methods for Bioconductor objects.")
9901 (license license:artistic2.0)))
9902
9903 (define-public r-annotationhub
9904 (package
9905 (name "r-annotationhub")
9906 (version "2.12.0")
9907 (source
9908 (origin
9909 (method url-fetch)
9910 (uri (bioconductor-uri "AnnotationHub" version))
9911 (sha256
9912 (base32
9913 "11gh7qkgazs90czdqgv74gh2hz26xrmdp6wsz9x5pygbxls8xdw3"))))
9914 (properties `((upstream-name . "AnnotationHub")))
9915 (build-system r-build-system)
9916 (propagated-inputs
9917 `(("r-annotationdbi" ,r-annotationdbi)
9918 ("r-biocgenerics" ,r-biocgenerics)
9919 ("r-biocinstaller" ,r-biocinstaller)
9920 ("r-curl" ,r-curl)
9921 ("r-httr" ,r-httr)
9922 ("r-interactivedisplaybase" ,r-interactivedisplaybase)
9923 ("r-rsqlite" ,r-rsqlite)
9924 ("r-s4vectors" ,r-s4vectors)
9925 ("r-yaml" ,r-yaml)))
9926 (home-page "https://bioconductor.org/packages/AnnotationHub")
9927 (synopsis "Client to access AnnotationHub resources")
9928 (description
9929 "This package provides a client for the Bioconductor AnnotationHub web
9930 resource. The AnnotationHub web resource provides a central location where
9931 genomic files (e.g. VCF, bed, wig) and other resources from standard
9932 locations (e.g. UCSC, Ensembl) can be discovered. The resource includes
9933 metadata about each resource, e.g., a textual description, tags, and date of
9934 modification. The client creates and manages a local cache of files retrieved
9935 by the user, helping with quick and reproducible access.")
9936 (license license:artistic2.0)))
9937
9938 (define-public r-fastseg
9939 (package
9940 (name "r-fastseg")
9941 (version "1.26.0")
9942 (source
9943 (origin
9944 (method url-fetch)
9945 (uri (bioconductor-uri "fastseg" version))
9946 (sha256
9947 (base32
9948 "1yw6hai6hb8qy7akdm4frfp6h4zy93zb68kdj094sanm7kgqmgik"))))
9949 (build-system r-build-system)
9950 (propagated-inputs
9951 `(("r-biobase" ,r-biobase)
9952 ("r-biocgenerics" ,r-biocgenerics)
9953 ("r-genomicranges" ,r-genomicranges)
9954 ("r-iranges" ,r-iranges)
9955 ("r-s4vectors" ,r-s4vectors)))
9956 (home-page "http://www.bioinf.jku.at/software/fastseg/index.html")
9957 (synopsis "Fast segmentation algorithm for genetic sequencing data")
9958 (description
9959 "Fastseg implements a very fast and efficient segmentation algorithm.
9960 It can segment data from DNA microarrays and data from next generation
9961 sequencing for example to detect copy number segments. Further it can segment
9962 data from RNA microarrays like tiling arrays to identify transcripts. Most
9963 generally, it can segment data given as a matrix or as a vector. Various data
9964 formats can be used as input to fastseg like expression set objects for
9965 microarrays or GRanges for sequencing data.")
9966 (license license:lgpl2.0+)))
9967
9968 (define-public r-keggrest
9969 (package
9970 (name "r-keggrest")
9971 (version "1.20.0")
9972 (source
9973 (origin
9974 (method url-fetch)
9975 (uri (bioconductor-uri "KEGGREST" version))
9976 (sha256
9977 (base32
9978 "1349vidgl9m10l1rbrp3pkwwgi2xcbsw9h9z2xqbvg97lmqc4r8j"))))
9979 (properties `((upstream-name . "KEGGREST")))
9980 (build-system r-build-system)
9981 (propagated-inputs
9982 `(("r-biostrings" ,r-biostrings)
9983 ("r-httr" ,r-httr)
9984 ("r-png" ,r-png)))
9985 (home-page "https://bioconductor.org/packages/KEGGREST")
9986 (synopsis "Client-side REST access to KEGG")
9987 (description
9988 "This package provides a package that provides a client interface to the
9989 @dfn{Kyoto Encyclopedia of Genes and Genomes} (KEGG) REST server.")
9990 (license license:artistic2.0)))
9991
9992 (define-public r-gage
9993 (package
9994 (name "r-gage")
9995 (version "2.30.0")
9996 (source
9997 (origin
9998 (method url-fetch)
9999 (uri (bioconductor-uri "gage" version))
10000 (sha256
10001 (base32
10002 "0j3cqxy97lpf146wkmdfaq9680gicmzxvhp6w5pxq3j7ipiy7262"))))
10003 (build-system r-build-system)
10004 (propagated-inputs
10005 `(("r-annotationdbi" ,r-annotationdbi)
10006 ("r-graph" ,r-graph)
10007 ("r-keggrest" ,r-keggrest)))
10008 (home-page "http://www.biomedcentral.com/1471-2105/10/161")
10009 (synopsis "Generally applicable gene-set enrichment for pathway analysis")
10010 (description
10011 "GAGE is a published method for gene set (enrichment or GSEA) or pathway
10012 analysis. GAGE is generally applicable independent of microarray or RNA-Seq
10013 data attributes including sample sizes, experimental designs, assay platforms,
10014 and other types of heterogeneity. The gage package provides functions for
10015 basic GAGE analysis, result processing and presentation. In addition, it
10016 provides demo microarray data and commonly used gene set data based on KEGG
10017 pathways and GO terms. These funtions and data are also useful for gene set
10018 analysis using other methods.")
10019 (license license:gpl2+)))
10020
10021 (define-public r-genomicfiles
10022 (package
10023 (name "r-genomicfiles")
10024 (version "1.16.0")
10025 (source
10026 (origin
10027 (method url-fetch)
10028 (uri (bioconductor-uri "GenomicFiles" version))
10029 (sha256
10030 (base32
10031 "0bhsq5czigrjyl9gkb2kpkpl367b3ac5g8s280adkcxggn9g7sxq"))))
10032 (properties `((upstream-name . "GenomicFiles")))
10033 (build-system r-build-system)
10034 (propagated-inputs
10035 `(("r-biocgenerics" ,r-biocgenerics)
10036 ("r-biocparallel" ,r-biocparallel)
10037 ("r-genomeinfodb" ,r-genomeinfodb)
10038 ("r-genomicalignments" ,r-genomicalignments)
10039 ("r-genomicranges" ,r-genomicranges)
10040 ("r-iranges" ,r-iranges)
10041 ("r-rsamtools" ,r-rsamtools)
10042 ("r-rtracklayer" ,r-rtracklayer)
10043 ("r-s4vectors" ,r-s4vectors)
10044 ("r-summarizedexperiment" ,r-summarizedexperiment)
10045 ("r-variantannotation" ,r-variantannotation)))
10046 (home-page "https://bioconductor.org/packages/GenomicFiles")
10047 (synopsis "Distributed computing by file or by range")
10048 (description
10049 "This package provides infrastructure for parallel computations
10050 distributed by file or by range. User defined mapper and reducer functions
10051 provide added flexibility for data combination and manipulation.")
10052 (license license:artistic2.0)))
10053
10054 (define-public r-complexheatmap
10055 (package
10056 (name "r-complexheatmap")
10057 (version "1.18.0")
10058 (source
10059 (origin
10060 (method url-fetch)
10061 (uri (bioconductor-uri "ComplexHeatmap" version))
10062 (sha256
10063 (base32
10064 "0z57mrginzd40niy51dvnyqgbrij05ji0dbwqs3x2as80sq28i3q"))))
10065 (properties
10066 `((upstream-name . "ComplexHeatmap")))
10067 (build-system r-build-system)
10068 (propagated-inputs
10069 `(("r-circlize" ,r-circlize)
10070 ("r-colorspace" ,r-colorspace)
10071 ("r-getoptlong" ,r-getoptlong)
10072 ("r-globaloptions" ,r-globaloptions)
10073 ("r-rcolorbrewer" ,r-rcolorbrewer)))
10074 (home-page
10075 "https://github.com/jokergoo/ComplexHeatmap")
10076 (synopsis "Making Complex Heatmaps")
10077 (description
10078 "Complex heatmaps are efficient to visualize associations between
10079 different sources of data sets and reveal potential structures. This package
10080 provides a highly flexible way to arrange multiple heatmaps and supports
10081 self-defined annotation graphics.")
10082 (license license:gpl2+)))
10083
10084 (define-public r-dirichletmultinomial
10085 (package
10086 (name "r-dirichletmultinomial")
10087 (version "1.22.0")
10088 (source
10089 (origin
10090 (method url-fetch)
10091 (uri (bioconductor-uri "DirichletMultinomial" version))
10092 (sha256
10093 (base32
10094 "0vcyp81b90in4ls5nbadc66cw2g9aydr94aqifq5j4b7diq74yfs"))))
10095 (properties
10096 `((upstream-name . "DirichletMultinomial")))
10097 (build-system r-build-system)
10098 (inputs
10099 `(("gsl" ,gsl)))
10100 (propagated-inputs
10101 `(("r-biocgenerics" ,r-biocgenerics)
10102 ("r-iranges" ,r-iranges)
10103 ("r-s4vectors" ,r-s4vectors)))
10104 (home-page "https://bioconductor.org/packages/DirichletMultinomial")
10105 (synopsis "Dirichlet-Multinomial mixture models for microbiome data")
10106 (description
10107 "Dirichlet-multinomial mixture models can be used to describe variability
10108 in microbial metagenomic data. This package is an interface to code
10109 originally made available by Holmes, Harris, and Quince, 2012, PLoS ONE 7(2):
10110 1-15.")
10111 (license license:lgpl3)))
10112
10113 (define-public r-ensembldb
10114 (package
10115 (name "r-ensembldb")
10116 (version "2.4.1")
10117 (source
10118 (origin
10119 (method url-fetch)
10120 (uri (bioconductor-uri "ensembldb" version))
10121 (sha256
10122 (base32
10123 "1l2b4cxiycv05mz4z4f3dhx57r9ksha02psc114h30ldm5rxz8w6"))))
10124 (build-system r-build-system)
10125 (propagated-inputs
10126 `(("r-annotationdbi" ,r-annotationdbi)
10127 ("r-annotationfilter" ,r-annotationfilter)
10128 ("r-biobase" ,r-biobase)
10129 ("r-biocgenerics" ,r-biocgenerics)
10130 ("r-biostrings" ,r-biostrings)
10131 ("r-curl" ,r-curl)
10132 ("r-dbi" ,r-dbi)
10133 ("r-genomeinfodb" ,r-genomeinfodb)
10134 ("r-genomicfeatures" ,r-genomicfeatures)
10135 ("r-genomicranges" ,r-genomicranges)
10136 ("r-iranges" ,r-iranges)
10137 ("r-protgenerics" ,r-protgenerics)
10138 ("r-rsamtools" ,r-rsamtools)
10139 ("r-rsqlite" ,r-rsqlite)
10140 ("r-rtracklayer" ,r-rtracklayer)
10141 ("r-s4vectors" ,r-s4vectors)))
10142 (home-page "https://github.com/jotsetung/ensembldb")
10143 (synopsis "Utilities to create and use Ensembl-based annotation databases")
10144 (description
10145 "The package provides functions to create and use transcript-centric
10146 annotation databases/packages. The annotation for the databases are directly
10147 fetched from Ensembl using their Perl API. The functionality and data is
10148 similar to that of the TxDb packages from the @code{GenomicFeatures} package,
10149 but, in addition to retrieve all gene/transcript models and annotations from
10150 the database, the @code{ensembldb} package also provides a filter framework
10151 allowing to retrieve annotations for specific entries like genes encoded on a
10152 chromosome region or transcript models of lincRNA genes.")
10153 ;; No version specified
10154 (license license:lgpl3+)))
10155
10156 (define-public r-organismdbi
10157 (package
10158 (name "r-organismdbi")
10159 (version "1.22.0")
10160 (source
10161 (origin
10162 (method url-fetch)
10163 (uri (bioconductor-uri "OrganismDbi" version))
10164 (sha256
10165 (base32
10166 "0hb9ni41bjfy5s5ryw2qmqs2sx3i7j47w1g0l8g1pvn7ppnxb6cv"))))
10167 (properties `((upstream-name . "OrganismDbi")))
10168 (build-system r-build-system)
10169 (propagated-inputs
10170 `(("r-annotationdbi" ,r-annotationdbi)
10171 ("r-biobase" ,r-biobase)
10172 ("r-biocgenerics" ,r-biocgenerics)
10173 ("r-biocinstaller" ,r-biocinstaller)
10174 ("r-dbi" ,r-dbi)
10175 ("r-genomicfeatures" ,r-genomicfeatures)
10176 ("r-genomicranges" ,r-genomicranges)
10177 ("r-graph" ,r-graph)
10178 ("r-iranges" ,r-iranges)
10179 ("r-rbgl" ,r-rbgl)
10180 ("r-s4vectors" ,r-s4vectors)))
10181 (home-page "https://bioconductor.org/packages/OrganismDbi")
10182 (synopsis "Software to enable the smooth interfacing of database packages")
10183 (description "The package enables a simple unified interface to several
10184 annotation packages each of which has its own schema by taking advantage of
10185 the fact that each of these packages implements a select methods.")
10186 (license license:artistic2.0)))
10187
10188 (define-public r-biovizbase
10189 (package
10190 (name "r-biovizbase")
10191 (version "1.28.0")
10192 (source
10193 (origin
10194 (method url-fetch)
10195 (uri (bioconductor-uri "biovizBase" version))
10196 (sha256
10197 (base32
10198 "0lkiqdr3ics6hgv47lwkykcy761823bbkhffbn4ykyfzyqwl4p67"))))
10199 (properties `((upstream-name . "biovizBase")))
10200 (build-system r-build-system)
10201 (propagated-inputs
10202 `(("r-annotationdbi" ,r-annotationdbi)
10203 ("r-annotationfilter" ,r-annotationfilter)
10204 ("r-biocgenerics" ,r-biocgenerics)
10205 ("r-biostrings" ,r-biostrings)
10206 ("r-dichromat" ,r-dichromat)
10207 ("r-ensembldb" ,r-ensembldb)
10208 ("r-genomeinfodb" ,r-genomeinfodb)
10209 ("r-genomicalignments" ,r-genomicalignments)
10210 ("r-genomicfeatures" ,r-genomicfeatures)
10211 ("r-genomicranges" ,r-genomicranges)
10212 ("r-hmisc" ,r-hmisc)
10213 ("r-iranges" ,r-iranges)
10214 ("r-rcolorbrewer" ,r-rcolorbrewer)
10215 ("r-rsamtools" ,r-rsamtools)
10216 ("r-s4vectors" ,r-s4vectors)
10217 ("r-scales" ,r-scales)
10218 ("r-summarizedexperiment" ,r-summarizedexperiment)
10219 ("r-variantannotation" ,r-variantannotation)))
10220 (home-page "https://bioconductor.org/packages/biovizBase")
10221 (synopsis "Basic graphic utilities for visualization of genomic data")
10222 (description
10223 "The biovizBase package is designed to provide a set of utilities, color
10224 schemes and conventions for genomic data. It serves as the base for various
10225 high-level packages for biological data visualization. This saves development
10226 effort and encourages consistency.")
10227 (license license:artistic2.0)))
10228
10229 (define-public r-ggbio
10230 (package
10231 (name "r-ggbio")
10232 (version "1.28.0")
10233 (source
10234 (origin
10235 (method url-fetch)
10236 (uri (bioconductor-uri "ggbio" version))
10237 (sha256
10238 (base32
10239 "0wszh3w8yia5zw758h837i1q35k99sn444y2hahcxqbdmmlbf7in"))))
10240 (build-system r-build-system)
10241 (propagated-inputs
10242 `(("r-annotationdbi" ,r-annotationdbi)
10243 ("r-annotationfilter" ,r-annotationfilter)
10244 ("r-biobase" ,r-biobase)
10245 ("r-biocgenerics" ,r-biocgenerics)
10246 ("r-biostrings" ,r-biostrings)
10247 ("r-biovizbase" ,r-biovizbase)
10248 ("r-bsgenome" ,r-bsgenome)
10249 ("r-ensembldb" ,r-ensembldb)
10250 ("r-genomeinfodb" ,r-genomeinfodb)
10251 ("r-genomicalignments" ,r-genomicalignments)
10252 ("r-genomicfeatures" ,r-genomicfeatures)
10253 ("r-genomicranges" ,r-genomicranges)
10254 ("r-ggally" ,r-ggally)
10255 ("r-ggplot2" ,r-ggplot2)
10256 ("r-gridextra" ,r-gridextra)
10257 ("r-gtable" ,r-gtable)
10258 ("r-hmisc" ,r-hmisc)
10259 ("r-iranges" ,r-iranges)
10260 ("r-organismdbi" ,r-organismdbi)
10261 ("r-reshape2" ,r-reshape2)
10262 ("r-rsamtools" ,r-rsamtools)
10263 ("r-rtracklayer" ,r-rtracklayer)
10264 ("r-s4vectors" ,r-s4vectors)
10265 ("r-scales" ,r-scales)
10266 ("r-summarizedexperiment" ,r-summarizedexperiment)
10267 ("r-variantannotation" ,r-variantannotation)))
10268 (home-page "http://www.tengfei.name/ggbio/")
10269 (synopsis "Visualization tools for genomic data")
10270 (description
10271 "The ggbio package extends and specializes the grammar of graphics for
10272 biological data. The graphics are designed to answer common scientific
10273 questions, in particular those often asked of high throughput genomics data.
10274 All core Bioconductor data structures are supported, where appropriate. The
10275 package supports detailed views of particular genomic regions, as well as
10276 genome-wide overviews. Supported overviews include ideograms and grand linear
10277 views. High-level plots include sequence fragment length, edge-linked
10278 interval to data view, mismatch pileup, and several splicing summaries.")
10279 (license license:artistic2.0)))
10280
10281 (define-public r-gprofiler
10282 (package
10283 (name "r-gprofiler")
10284 (version "0.6.6")
10285 (source
10286 (origin
10287 (method url-fetch)
10288 (uri (cran-uri "gProfileR" version))
10289 (sha256
10290 (base32
10291 "1n6cj12j102b4x9vhyl4dljp1i0r43p23cnhqbx4als2xfxdlqgi"))))
10292 (properties `((upstream-name . "gProfileR")))
10293 (build-system r-build-system)
10294 (propagated-inputs
10295 `(("r-plyr" ,r-plyr)
10296 ("r-rcurl" ,r-rcurl)))
10297 (home-page "https://cran.r-project.org/web/packages/gProfileR/")
10298 (synopsis "Interface to the g:Profiler toolkit")
10299 (description
10300 "This package provides tools for functional enrichment analysis,
10301 gene identifier conversion and mapping homologous genes across related
10302 organisms via the @code{g:Profiler} toolkit.")
10303 (license license:gpl2+)))
10304
10305 (define-public r-gqtlbase
10306 (package
10307 (name "r-gqtlbase")
10308 (version "1.12.0")
10309 (source
10310 (origin
10311 (method url-fetch)
10312 (uri (bioconductor-uri "gQTLBase" version))
10313 (sha256
10314 (base32
10315 "1m3ajpqjhw1nwwsn372r44xfxq0a9a0pzsnrprzdjp6mh52p9b5m"))))
10316 (properties `((upstream-name . "gQTLBase")))
10317 (build-system r-build-system)
10318 (propagated-inputs
10319 `(("r-batchjobs" ,r-batchjobs)
10320 ("r-bbmisc" ,r-bbmisc)
10321 ("r-biocgenerics" ,r-biocgenerics)
10322 ("r-bit" ,r-bit)
10323 ("r-doparallel" ,r-doparallel)
10324 ("r-ff" ,r-ff)
10325 ("r-ffbase" ,r-ffbase)
10326 ("r-foreach" ,r-foreach)
10327 ("r-genomicfiles" ,r-genomicfiles)
10328 ("r-genomicranges" ,r-genomicranges)
10329 ("r-rtracklayer" ,r-rtracklayer)
10330 ("r-s4vectors" ,r-s4vectors)
10331 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10332 (home-page "https://bioconductor.org/packages/gQTLBase")
10333 (synopsis "Infrastructure for eQTL, mQTL and similar studies")
10334 (description
10335 "The purpose of this package is to simplify the storage and interrogation
10336 of @dfn{quantitative trait loci} (QTL) archives, such as eQTL, mQTL, dsQTL,
10337 and more.")
10338 (license license:artistic2.0)))
10339
10340 (define-public r-snpstats
10341 (package
10342 (name "r-snpstats")
10343 (version "1.30.0")
10344 (source
10345 (origin
10346 (method url-fetch)
10347 (uri (bioconductor-uri "snpStats" version))
10348 (sha256
10349 (base32
10350 "0iydgfnm053iw860qa1bbh4f6nwzlsf3vhgq92gvl2v4xsz1jbbs"))))
10351 (properties `((upstream-name . "snpStats")))
10352 (build-system r-build-system)
10353 (inputs `(("zlib" ,zlib)))
10354 (propagated-inputs
10355 `(("r-biocgenerics" ,r-biocgenerics)
10356 ("r-matrix" ,r-matrix)
10357 ("r-survival" ,r-survival)
10358 ("r-zlibbioc" ,r-zlibbioc)))
10359 (home-page "https://bioconductor.org/packages/snpStats")
10360 (synopsis "Methods for SNP association studies")
10361 (description
10362 "This package provides classes and statistical methods for large
10363 @dfn{single-nucleotide polymorphism} (SNP) association studies. This extends
10364 the earlier snpMatrix package, allowing for uncertainty in genotypes.")
10365 (license license:gpl3)))
10366
10367 (define-public r-homo-sapiens
10368 (package
10369 (name "r-homo-sapiens")
10370 (version "1.3.1")
10371 (source (origin
10372 (method url-fetch)
10373 ;; We cannot use bioconductor-uri here because this tarball is
10374 ;; located under "data/annotation/" instead of "bioc/".
10375 (uri (string-append "http://www.bioconductor.org/packages/"
10376 "release/data/annotation/src/contrib/"
10377 "Homo.sapiens_"
10378 version ".tar.gz"))
10379 (sha256
10380 (base32
10381 "151vj7h5p1c8yd5swrchk46z469p135wk50hvkl0nhgndvy0jj01"))))
10382 (properties
10383 `((upstream-name . "Homo.sapiens")))
10384 (build-system r-build-system)
10385 (propagated-inputs
10386 `(("r-genomicfeatures" ,r-genomicfeatures)
10387 ("r-go-db" ,r-go-db)
10388 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
10389 ("r-txdb-hsapiens-ucsc-hg19-knowngene" ,r-txdb-hsapiens-ucsc-hg19-knowngene)
10390 ("r-organismdbi" ,r-organismdbi)
10391 ("r-annotationdbi" ,r-annotationdbi)))
10392 (home-page "https://bioconductor.org/packages/Homo.sapiens/")
10393 (synopsis "Annotation package for the Homo.sapiens object")
10394 (description
10395 "This package contains the Homo.sapiens object to access data from
10396 several related annotation packages.")
10397 (license license:artistic2.0)))
10398
10399 (define-public r-erma
10400 (package
10401 (name "r-erma")
10402 (version "0.12.0")
10403 (source
10404 (origin
10405 (method url-fetch)
10406 (uri (bioconductor-uri "erma" version))
10407 (sha256
10408 (base32
10409 "1ka68n18yizlyvb8bpwwcl4hqbsasg8hw8jb3vgy3cd4szji87hh"))))
10410 (build-system r-build-system)
10411 (propagated-inputs
10412 `(("r-annotationdbi" ,r-annotationdbi)
10413 ("r-biobase" ,r-biobase)
10414 ("r-biocgenerics" ,r-biocgenerics)
10415 ("r-biocparallel" ,r-biocparallel)
10416 ("r-genomeinfodb" ,r-genomeinfodb)
10417 ("r-genomicfiles" ,r-genomicfiles)
10418 ("r-genomicranges" ,r-genomicranges)
10419 ("r-ggplot2" ,r-ggplot2)
10420 ("r-homo-sapiens" ,r-homo-sapiens)
10421 ("r-iranges" ,r-iranges)
10422 ("r-rtracklayer" ,r-rtracklayer)
10423 ("r-s4vectors" ,r-s4vectors)
10424 ("r-shiny" ,r-shiny)
10425 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10426 (home-page "https://bioconductor.org/packages/erma")
10427 (synopsis "Epigenomic road map adventures")
10428 (description
10429 "The epigenomics road map describes locations of epigenetic marks in DNA
10430 from a variety of cell types. Of interest are locations of histone
10431 modifications, sites of DNA methylation, and regions of accessible chromatin.
10432 This package presents a selection of elements of the road map including
10433 metadata and outputs of the ChromImpute procedure applied to ENCODE cell lines
10434 by Ernst and Kellis.")
10435 (license license:artistic2.0)))
10436
10437 (define-public r-ldblock
10438 (package
10439 (name "r-ldblock")
10440 (version "1.10.0")
10441 (source
10442 (origin
10443 (method url-fetch)
10444 (uri (bioconductor-uri "ldblock" version))
10445 (sha256
10446 (base32
10447 "0c24zvnwsp39d3q0bps13sc441jj9ms2zi34xsb8c392lqmbypvd"))))
10448 (build-system r-build-system)
10449 (propagated-inputs
10450 `(("r-biocgenerics" ,r-biocgenerics)
10451 ("r-erma" ,r-erma)
10452 ("r-genomeinfodb" ,r-genomeinfodb)
10453 ("r-genomicfiles" ,r-genomicfiles)
10454 ("r-go-db" ,r-go-db)
10455 ("r-homo-sapiens" ,r-homo-sapiens)
10456 ("r-matrix" ,r-matrix)
10457 ("r-rsamtools" ,r-rsamtools)
10458 ("r-snpstats" ,r-snpstats)
10459 ("r-variantannotation" ,r-variantannotation)))
10460 (home-page "https://bioconductor.org/packages/ldblock")
10461 (synopsis "Data structures for linkage disequilibrium measures in populations")
10462 (description
10463 "This package defines data structures for @dfn{linkage
10464 disequilibrium} (LD) measures in populations. Its purpose is to simplify
10465 handling of existing population-level data for the purpose of flexibly
10466 defining LD blocks.")
10467 (license license:artistic2.0)))
10468
10469 (define-public r-gqtlstats
10470 (package
10471 (name "r-gqtlstats")
10472 (version "1.12.0")
10473 (source
10474 (origin
10475 (method url-fetch)
10476 (uri (bioconductor-uri "gQTLstats" version))
10477 (sha256
10478 (base32
10479 "19g8qhfgngdc14cw9k4i44cxhs3qva87x56gjzmn25k1yj8qgsp1"))))
10480 (properties `((upstream-name . "gQTLstats")))
10481 (build-system r-build-system)
10482 (propagated-inputs
10483 `(("r-annotationdbi" ,r-annotationdbi)
10484 ("r-batchjobs" ,r-batchjobs)
10485 ("r-bbmisc" ,r-bbmisc)
10486 ("r-beeswarm" ,r-beeswarm)
10487 ("r-biobase" ,r-biobase)
10488 ("r-biocgenerics" ,r-biocgenerics)
10489 ("r-doparallel" ,r-doparallel)
10490 ("r-dplyr" ,r-dplyr)
10491 ("r-erma" ,r-erma)
10492 ("r-ffbase" ,r-ffbase)
10493 ("r-foreach" ,r-foreach)
10494 ("r-genomeinfodb" ,r-genomeinfodb)
10495 ("r-genomicfeatures" ,r-genomicfeatures)
10496 ("r-genomicfiles" ,r-genomicfiles)
10497 ("r-genomicranges" ,r-genomicranges)
10498 ("r-ggbeeswarm" ,r-ggbeeswarm)
10499 ("r-ggplot2" ,r-ggplot2)
10500 ("r-gqtlbase" ,r-gqtlbase)
10501 ("r-hardyweinberg" ,r-hardyweinberg)
10502 ("r-homo-sapiens" ,r-homo-sapiens)
10503 ("r-iranges" ,r-iranges)
10504 ("r-limma" ,r-limma)
10505 ("r-mgcv" ,r-mgcv)
10506 ("r-plotly" ,r-plotly)
10507 ("r-reshape2" ,r-reshape2)
10508 ("r-s4vectors" ,r-s4vectors)
10509 ("r-shiny" ,r-shiny)
10510 ("r-snpstats" ,r-snpstats)
10511 ("r-summarizedexperiment" ,r-summarizedexperiment)
10512 ("r-variantannotation" ,r-variantannotation)))
10513 (home-page "https://bioconductor.org/packages/gQTLstats")
10514 (synopsis "Computationally efficient analysis for eQTL and allied studies")
10515 (description
10516 "This package provides tools for the computationally efficient analysis
10517 of @dfn{quantitative trait loci} (QTL) data, including eQTL, mQTL, dsQTL, etc.
10518 The software in this package aims to support refinements and functional
10519 interpretation of members of a collection of association statistics on a
10520 family of feature/genome hypotheses.")
10521 (license license:artistic2.0)))
10522
10523 (define-public r-gviz
10524 (package
10525 (name "r-gviz")
10526 (version "1.24.0")
10527 (source
10528 (origin
10529 (method url-fetch)
10530 (uri (bioconductor-uri "Gviz" version))
10531 (sha256
10532 (base32
10533 "1fhli7ahkl5r43j0hc89ib41mfadj6qyrg36i03ncz8zs6iqwpx4"))))
10534 (properties `((upstream-name . "Gviz")))
10535 (build-system r-build-system)
10536 (propagated-inputs
10537 `(("r-annotationdbi" ,r-annotationdbi)
10538 ("r-biobase" ,r-biobase)
10539 ("r-biocgenerics" ,r-biocgenerics)
10540 ("r-biomart" ,r-biomart)
10541 ("r-biostrings" ,r-biostrings)
10542 ("r-biovizbase" ,r-biovizbase)
10543 ("r-bsgenome" ,r-bsgenome)
10544 ("r-digest" ,r-digest)
10545 ("r-genomeinfodb" ,r-genomeinfodb)
10546 ("r-genomicalignments" ,r-genomicalignments)
10547 ("r-genomicfeatures" ,r-genomicfeatures)
10548 ("r-genomicranges" ,r-genomicranges)
10549 ("r-iranges" ,r-iranges)
10550 ("r-lattice" ,r-lattice)
10551 ("r-latticeextra" ,r-latticeextra)
10552 ("r-matrixstats" ,r-matrixstats)
10553 ("r-rcolorbrewer" ,r-rcolorbrewer)
10554 ("r-rsamtools" ,r-rsamtools)
10555 ("r-rtracklayer" ,r-rtracklayer)
10556 ("r-s4vectors" ,r-s4vectors)
10557 ("r-xvector" ,r-xvector)))
10558 (home-page "https://bioconductor.org/packages/Gviz")
10559 (synopsis "Plotting data and annotation information along genomic coordinates")
10560 (description
10561 "Genomic data analyses requires integrated visualization of known genomic
10562 information and new experimental data. Gviz uses the biomaRt and the
10563 rtracklayer packages to perform live annotation queries to Ensembl and UCSC
10564 and translates this to e.g. gene/transcript structures in viewports of the
10565 grid graphics package. This results in genomic information plotted together
10566 with your data.")
10567 (license license:artistic2.0)))
10568
10569 (define-public r-gwascat
10570 (package
10571 (name "r-gwascat")
10572 (version "2.12.0")
10573 (source
10574 (origin
10575 (method url-fetch)
10576 (uri (bioconductor-uri "gwascat" version))
10577 (sha256
10578 (base32
10579 "08ba9il4vbjjwlbwmqg4ai6ya1p09js9agn95sw0dhc9gqln42hx"))))
10580 (build-system r-build-system)
10581 (propagated-inputs
10582 `(("r-annotationdbi" ,r-annotationdbi)
10583 ("r-annotationhub" ,r-annotationhub)
10584 ("r-biocgenerics" ,r-biocgenerics)
10585 ("r-biostrings" ,r-biostrings)
10586 ("r-genomeinfodb" ,r-genomeinfodb)
10587 ("r-genomicfeatures" ,r-genomicfeatures)
10588 ("r-genomicranges" ,r-genomicranges)
10589 ("r-ggbio" ,r-ggbio)
10590 ("r-ggplot2" ,r-ggplot2)
10591 ("r-gqtlstats" ,r-gqtlstats)
10592 ("r-graph" ,r-graph)
10593 ("r-gviz" ,r-gviz)
10594 ("r-homo-sapiens" ,r-homo-sapiens)
10595 ("r-iranges" ,r-iranges)
10596 ("r-rsamtools" ,r-rsamtools)
10597 ("r-rtracklayer" ,r-rtracklayer)
10598 ("r-s4vectors" ,r-s4vectors)
10599 ("r-snpstats" ,r-snpstats)
10600 ("r-summarizedexperiment" ,r-summarizedexperiment)
10601 ("r-variantannotation" ,r-variantannotation)))
10602 (home-page "https://bioconductor.org/packages/gwascat")
10603 (synopsis "Tools for data in the EMBL-EBI GWAS catalog")
10604 (description
10605 "This package provides tools for representing and modeling data in the
10606 EMBL-EBI GWAS catalog.")
10607 (license license:artistic2.0)))
10608
10609 (define-public r-sushi
10610 (package
10611 (name "r-sushi")
10612 (version "1.18.0")
10613 (source (origin
10614 (method url-fetch)
10615 (uri (bioconductor-uri "Sushi" version))
10616 (sha256
10617 (base32
10618 "1m15hmg4k0qhshyn65xfj5hx7xbaf0kxqw70lxisak6pj1w00l41"))))
10619 (properties `((upstream-name . "Sushi")))
10620 (build-system r-build-system)
10621 (propagated-inputs
10622 `(("r-biomart" ,r-biomart)
10623 ("r-zoo" ,r-zoo)))
10624 (home-page "https://bioconductor.org/packages/Sushi")
10625 (synopsis "Tools for visualizing genomics data")
10626 (description
10627 "This package provides flexible, quantitative, and integrative genomic
10628 visualizations for publication-quality multi-panel figures.")
10629 (license license:gpl2+)))
10630
10631 (define-public r-fithic
10632 (package
10633 (name "r-fithic")
10634 (version "1.6.0")
10635 (source (origin
10636 (method url-fetch)
10637 (uri (bioconductor-uri "FitHiC" version))
10638 (sha256
10639 (base32
10640 "06w4q836bi1mvkbl1saghv4r5p4hxpjg8cp7kgad13ls450kqmyd"))))
10641 (properties `((upstream-name . "FitHiC")))
10642 (build-system r-build-system)
10643 (propagated-inputs
10644 `(("r-data-table" ,r-data-table)
10645 ("r-fdrtool" ,r-fdrtool)
10646 ("r-rcpp" ,r-rcpp)))
10647 (home-page "https://bioconductor.org/packages/FitHiC")
10648 (synopsis "Confidence estimation for intra-chromosomal contact maps")
10649 (description
10650 "Fit-Hi-C is a tool for assigning statistical confidence estimates to
10651 intra-chromosomal contact maps produced by genome-wide genome architecture
10652 assays such as Hi-C.")
10653 (license license:gpl2+)))
10654
10655 (define-public r-hitc
10656 (package
10657 (name "r-hitc")
10658 (version "1.24.0")
10659 (source (origin
10660 (method url-fetch)
10661 (uri (bioconductor-uri "HiTC" version))
10662 (sha256
10663 (base32
10664 "0qkk5139f51lwwy1yh7nbkflh5d69prirmhniwam34nlg9rzjm2z"))))
10665 (properties `((upstream-name . "HiTC")))
10666 (build-system r-build-system)
10667 (propagated-inputs
10668 `(("r-biostrings" ,r-biostrings)
10669 ("r-genomeinfodb" ,r-genomeinfodb)
10670 ("r-genomicranges" ,r-genomicranges)
10671 ("r-iranges" ,r-iranges)
10672 ("r-matrix" ,r-matrix)
10673 ("r-rcolorbrewer" ,r-rcolorbrewer)
10674 ("r-rtracklayer" ,r-rtracklayer)))
10675 (home-page "https://bioconductor.org/packages/HiTC")
10676 (synopsis "High throughput chromosome conformation capture analysis")
10677 (description
10678 "The HiTC package was developed to explore high-throughput \"C\" data
10679 such as 5C or Hi-C. Dedicated R classes as well as standard methods for
10680 quality controls, normalization, visualization, and further analysis are also
10681 provided.")
10682 (license license:artistic2.0)))
10683
10684 (define-public r-qvalue
10685 (package
10686 (name "r-qvalue")
10687 (version "2.12.0")
10688 (source
10689 (origin
10690 (method url-fetch)
10691 (uri (bioconductor-uri "qvalue" version))
10692 (sha256
10693 (base32
10694 "1ndwkj0hh7v4lwylq1v0fkxqs7mfmbcj8kxbdpj1wkvf131z2ns8"))))
10695 (build-system r-build-system)
10696 (propagated-inputs
10697 `(("r-ggplot2" ,r-ggplot2)
10698 ("r-reshape2" ,r-reshape2)))
10699 (home-page "http://github.com/jdstorey/qvalue")
10700 (synopsis "Q-value estimation for false discovery rate control")
10701 (description
10702 "This package takes a list of p-values resulting from the simultaneous
10703 testing of many hypotheses and estimates their q-values and local @dfn{false
10704 discovery rate} (FDR) values. The q-value of a test measures the proportion
10705 of false positives incurred when that particular test is called significant.
10706 The local FDR measures the posterior probability the null hypothesis is true
10707 given the test's p-value. Various plots are automatically generated, allowing
10708 one to make sensible significance cut-offs. The software can be applied to
10709 problems in genomics, brain imaging, astrophysics, and data mining.")
10710 ;; Any version of the LGPL.
10711 (license license:lgpl3+)))
10712
10713 (define-public r-hdf5array
10714 (package
10715 (name "r-hdf5array")
10716 (version "1.8.0")
10717 (source
10718 (origin
10719 (method url-fetch)
10720 (uri (bioconductor-uri "HDF5Array" version))
10721 (sha256
10722 (base32
10723 "1l0276qxkhgdxsfck3jmi8jvnsr20g10gjki53g0mqa45wnhm3ck"))))
10724 (properties `((upstream-name . "HDF5Array")))
10725 (build-system r-build-system)
10726 (propagated-inputs
10727 `(("r-biocgenerics" ,r-biocgenerics)
10728 ("r-delayedarray" ,r-delayedarray)
10729 ("r-iranges" ,r-iranges)
10730 ("r-rhdf5" ,r-rhdf5)
10731 ("r-s4vectors" ,r-s4vectors)))
10732 (home-page "https://bioconductor.org/packages/HDF5Array")
10733 (synopsis "HDF5 back end for DelayedArray objects")
10734 (description "This package provides an array-like container for convenient
10735 access and manipulation of HDF5 datasets. It supports delayed operations and
10736 block processing.")
10737 (license license:artistic2.0)))
10738
10739 (define-public r-rhdf5lib
10740 (package
10741 (name "r-rhdf5lib")
10742 (version "1.2.1")
10743 (source
10744 (origin
10745 (method url-fetch)
10746 (uri (bioconductor-uri "Rhdf5lib" version))
10747 (sha256
10748 (base32
10749 "1y59acac6v8hrhv84gghn9ifsni9xxxacaj177rrl4frmkrz4x3c"))))
10750 (properties `((upstream-name . "Rhdf5lib")))
10751 (build-system r-build-system)
10752 (arguments
10753 `(#:phases
10754 (modify-phases %standard-phases
10755 (add-after 'unpack 'do-not-use-bundled-hdf5
10756 (lambda* (#:key inputs #:allow-other-keys)
10757 (for-each delete-file '("configure" "configure.ac"))
10758 ;; Do not make other packages link with the proprietary libsz.
10759 (substitute* "R/zzz.R"
10760 (("'%s/libhdf5_cpp.a %s/libhdf5.a %s/libsz.a -lz'")
10761 "'%s/libhdf5_cpp.a %s/libhdf5.a %s/libhdf5.a -lz'")
10762 (("'%s/libhdf5.a %s/libsz.a -lz'")
10763 "'%s/libhdf5.a %s/libhdf5.a -lz'"))
10764 (with-directory-excursion "src"
10765 (invoke "tar" "xvf" (assoc-ref inputs "hdf5-source"))
10766 (rename-file (string-append "hdf5-" ,(package-version hdf5))
10767 "hdf5")
10768 ;; Remove timestamp and host system information to make
10769 ;; the build reproducible.
10770 (substitute* "hdf5/src/libhdf5.settings.in"
10771 (("Configured on: @CONFIG_DATE@")
10772 "Configured on: Guix")
10773 (("Uname information:.*")
10774 "Uname information: Linux\n")
10775 ;; Remove unnecessary store reference.
10776 (("C Compiler:.*")
10777 "C Compiler: GCC\n"))
10778 (rename-file "Makevars.in" "Makevars")
10779 (substitute* "Makevars"
10780 (("HDF5_CXX_LIB=.*")
10781 (string-append "HDF5_CXX_LIB="
10782 (assoc-ref inputs "hdf5") "/lib/libhdf5_cpp.a\n"))
10783 (("HDF5_LIB=.*")
10784 (string-append "HDF5_LIB="
10785 (assoc-ref inputs "hdf5") "/lib/libhdf5.a\n"))
10786 (("HDF5_CXX_INCLUDE=.*") "HDF5_CXX_INCLUDE=./hdf5/c++/src\n")
10787 (("HDF5_INCLUDE=.*") "HDF5_INCLUDE=./hdf5/src\n")
10788 ;; szip is non-free software
10789 (("cp \\$\\{SZIP_LIB\\}.*") "")
10790 (("\\$\\{USER_LIB_DIR\\}libsz.a") "")))
10791 #t)))))
10792 (inputs
10793 `(("zlib" ,zlib)))
10794 (propagated-inputs
10795 `(("hdf5" ,hdf5)))
10796 (native-inputs
10797 `(("hdf5-source" ,(package-source hdf5))))
10798 (home-page "https://bioconductor.org/packages/Rhdf5lib")
10799 (synopsis "HDF5 library as an R package")
10800 (description "This package provides C and C++ HDF5 libraries for use in R
10801 packages.")
10802 (license license:artistic2.0)))
10803
10804 (define-public r-beachmat
10805 (package
10806 (name "r-beachmat")
10807 (version "1.2.1")
10808 (source
10809 (origin
10810 (method url-fetch)
10811 (uri (bioconductor-uri "beachmat" version))
10812 (sha256
10813 (base32
10814 "1w90v0jx1zgrfxzx99gdkk0dz2vi25hr51jml1bvq33i64rj7996"))))
10815 (build-system r-build-system)
10816 (inputs
10817 `(("hdf5" ,hdf5)
10818 ("zlib" ,zlib)))
10819 (propagated-inputs
10820 `(("r-delayedarray" ,r-delayedarray)
10821 ("r-hdf5array" ,r-hdf5array)
10822 ("r-rcpp" ,r-rcpp)
10823 ("r-rhdf5" ,r-rhdf5)
10824 ("r-rhdf5lib" ,r-rhdf5lib)))
10825 (home-page "https://bioconductor.org/packages/beachmat")
10826 (synopsis "Compiling Bioconductor to handle each matrix type")
10827 (description "This package provides a consistent C++ class interface for a
10828 variety of commonly used matrix types, including sparse and HDF5-backed
10829 matrices.")
10830 (license license:gpl3)))
10831
10832 (define-public r-singlecellexperiment
10833 (package
10834 (name "r-singlecellexperiment")
10835 (version "1.2.0")
10836 (source
10837 (origin
10838 (method url-fetch)
10839 (uri (bioconductor-uri "SingleCellExperiment" version))
10840 (sha256
10841 (base32
10842 "0mz3chia250v8v6q8r5cqv5fc4bpcw1hhrfr3p7l5i4xi85scpka"))))
10843 (properties
10844 `((upstream-name . "SingleCellExperiment")))
10845 (build-system r-build-system)
10846 (propagated-inputs
10847 `(("r-biocgenerics" ,r-biocgenerics)
10848 ("r-s4vectors" ,r-s4vectors)
10849 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10850 (home-page "https://bioconductor.org/packages/SingleCellExperiment")
10851 (synopsis "S4 classes for single cell data")
10852 (description "This package defines an S4 class for storing data from
10853 single-cell experiments. This includes specialized methods to store and
10854 retrieve spike-in information, dimensionality reduction coordinates and size
10855 factors for each cell, along with the usual metadata for genes and
10856 libraries.")
10857 (license license:gpl3)))
10858
10859 (define-public r-scater
10860 (package
10861 (name "r-scater")
10862 (version "1.8.0")
10863 (source (origin
10864 (method url-fetch)
10865 (uri (bioconductor-uri "scater" version))
10866 (sha256
10867 (base32
10868 "0bhpikgz3b9f510dawsay4zry9rlp8vjx5n6zvwbcpwrd94p3903"))))
10869 (build-system r-build-system)
10870 (propagated-inputs
10871 `(("r-beachmat" ,r-beachmat)
10872 ("r-biobase" ,r-biobase)
10873 ("r-biocgenerics" ,r-biocgenerics)
10874 ("r-data-table" ,r-data-table)
10875 ("r-delayedarray" ,r-delayedarray)
10876 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
10877 ("r-dplyr" ,r-dplyr)
10878 ("r-edger" ,r-edger)
10879 ("r-ggbeeswarm" ,r-ggbeeswarm)
10880 ("r-ggplot2" ,r-ggplot2)
10881 ("r-limma" ,r-limma)
10882 ("r-matrix" ,r-matrix)
10883 ("r-plyr" ,r-plyr)
10884 ("r-rcpp" ,r-rcpp)
10885 ("r-reshape2" ,r-reshape2)
10886 ("r-rhdf5" ,r-rhdf5)
10887 ("r-rhdf5lib" ,r-rhdf5lib)
10888 ("r-rjson" ,r-rjson)
10889 ("r-s4vectors" ,r-s4vectors)
10890 ("r-shiny" ,r-shiny)
10891 ("r-shinydashboard" ,r-shinydashboard)
10892 ("r-singlecellexperiment" ,r-singlecellexperiment)
10893 ("r-summarizedexperiment" ,r-summarizedexperiment)
10894 ("r-tximport" ,r-tximport)
10895 ("r-viridis" ,r-viridis)))
10896 (home-page "https://github.com/davismcc/scater")
10897 (synopsis "Single-cell analysis toolkit for gene expression data in R")
10898 (description "This package provides a collection of tools for doing
10899 various analyses of single-cell RNA-seq gene expression data, with a focus on
10900 quality control.")
10901 (license license:gpl2+)))
10902
10903 (define-public r-scran
10904 (package
10905 (name "r-scran")
10906 (version "1.8.2")
10907 (source
10908 (origin
10909 (method url-fetch)
10910 (uri (bioconductor-uri "scran" version))
10911 (sha256
10912 (base32
10913 "0nbn5x75gf9d0p18w7vpkbv30cpdqvp5bz8xvila0h7jla7xdyih"))))
10914 (build-system r-build-system)
10915 (propagated-inputs
10916 `(("r-beachmat" ,r-beachmat)
10917 ("r-biocgenerics" ,r-biocgenerics)
10918 ("r-biocparallel" ,r-biocparallel)
10919 ("r-delayedarray" ,r-delayedarray)
10920 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
10921 ("r-dt" ,r-dt)
10922 ("r-dynamictreecut" ,r-dynamictreecut)
10923 ("r-edger" ,r-edger)
10924 ("r-fnn" ,r-fnn)
10925 ("r-ggplot2" ,r-ggplot2)
10926 ("r-igraph" ,r-igraph)
10927 ("r-limma" ,r-limma)
10928 ("r-matrix" ,r-matrix)
10929 ("r-rcpp" ,r-rcpp)
10930 ("r-rhdf5lib" ,r-rhdf5lib)
10931 ("r-s4vectors" ,r-s4vectors)
10932 ("r-scater" ,r-scater)
10933 ("r-shiny" ,r-shiny)
10934 ("r-singlecellexperiment" ,r-singlecellexperiment)
10935 ("r-statmod" ,r-statmod)
10936 ("r-summarizedexperiment" ,r-summarizedexperiment)
10937 ("r-viridis" ,r-viridis)))
10938 (home-page "https://bioconductor.org/packages/scran")
10939 (synopsis "Methods for single-cell RNA-Seq data analysis")
10940 (description "This package implements a variety of low-level analyses of
10941 single-cell RNA-seq data. Methods are provided for normalization of
10942 cell-specific biases, assignment of cell cycle phase, and detection of highly
10943 variable and significantly correlated genes.")
10944 (license license:gpl3)))
10945
10946 (define-public r-delayedmatrixstats
10947 (package
10948 (name "r-delayedmatrixstats")
10949 (version "1.2.0")
10950 (source
10951 (origin
10952 (method url-fetch)
10953 (uri (bioconductor-uri "DelayedMatrixStats" version))
10954 (sha256
10955 (base32
10956 "1dasghfy8x27zzmd0igag4mc1gxxxbchsl4hpc1050dj3wnw9w3y"))))
10957 (properties
10958 `((upstream-name . "DelayedMatrixStats")))
10959 (build-system r-build-system)
10960 (propagated-inputs
10961 `(("r-delayedarray" ,r-delayedarray)
10962 ("r-iranges" ,r-iranges)
10963 ("r-matrix" ,r-matrix)
10964 ("r-matrixstats" ,r-matrixstats)
10965 ("r-s4vectors" ,r-s4vectors)))
10966 (home-page "https://github.com/PeteHaitch/DelayedMatrixStats")
10967 (synopsis "Functions that apply to rows and columns of DelayedMatrix objects")
10968 (description
10969 "This package provides a port of the @code{matrixStats} API for use with
10970 @code{DelayedMatrix} objects from the @code{DelayedArray} package. It
10971 contains high-performing functions operating on rows and columns of
10972 @code{DelayedMatrix} objects, e.g. @code{colMedians}, @code{rowMedians},
10973 @code{colRanks}, @code{rowRanks}, @code{colSds}, and @code{rowSds}. Functions
10974 are optimized per data type and for subsetted calculations such that both
10975 memory usage and processing time is minimized.")
10976 (license license:expat)))
10977
10978 (define-public r-phangorn
10979 (package
10980 (name "r-phangorn")
10981 (version "2.4.0")
10982 (source
10983 (origin
10984 (method url-fetch)
10985 (uri (cran-uri "phangorn" version))
10986 (sha256
10987 (base32
10988 "0xc8k552nxczy19jr0xjjagrzc8x6lafasgk2c099ls8bc1yml1i"))))
10989 (build-system r-build-system)
10990 (propagated-inputs
10991 `(("r-ape" ,r-ape)
10992 ("r-fastmatch" ,r-fastmatch)
10993 ("r-igraph" ,r-igraph)
10994 ("r-magrittr" ,r-magrittr)
10995 ("r-matrix" ,r-matrix)
10996 ("r-quadprog" ,r-quadprog)
10997 ("r-rcpp" ,r-rcpp)))
10998 (home-page "https://github.com/KlausVigo/phangorn")
10999 (synopsis "Phylogenetic analysis in R")
11000 (description
11001 "Phangorn is a package for phylogenetic analysis in R. It supports
11002 estimation of phylogenetic trees and networks using Maximum Likelihood,
11003 Maximum Parsimony, distance methods and Hadamard conjugation.")
11004 (license license:gpl2+)))
11005
11006 (define-public r-dropbead
11007 (let ((commit "d746c6f3b32110428ea56d6a0001ce52a251c247")
11008 (revision "2"))
11009 (package
11010 (name "r-dropbead")
11011 (version (string-append "0-" revision "." (string-take commit 7)))
11012 (source
11013 (origin
11014 (method git-fetch)
11015 (uri (git-reference
11016 (url "https://github.com/rajewsky-lab/dropbead.git")
11017 (commit commit)))
11018 (file-name (git-file-name name version))
11019 (sha256
11020 (base32
11021 "0sbzma49aiiyw8b0jpr7fnhzys9nsqmp4hy4hdz1gzyg1lhnca26"))))
11022 (build-system r-build-system)
11023 (propagated-inputs
11024 `(("r-ggplot2" ,r-ggplot2)
11025 ("r-rcolorbrewer" ,r-rcolorbrewer)
11026 ("r-gridextra" ,r-gridextra)
11027 ("r-gplots" ,r-gplots)
11028 ("r-plyr" ,r-plyr)))
11029 (home-page "https://github.com/rajewsky-lab/dropbead")
11030 (synopsis "Basic exploration and analysis of Drop-seq data")
11031 (description "This package offers a quick and straight-forward way to
11032 explore and perform basic analysis of single cell sequencing data coming from
11033 droplet sequencing. It has been particularly tailored for Drop-seq.")
11034 (license license:gpl3))))
11035
11036 (define htslib-for-sambamba
11037 (let ((commit "2f3c3ea7b301f9b45737a793c0b2dcf0240e5ee5"))
11038 (package
11039 (inherit htslib)
11040 (name "htslib-for-sambamba")
11041 (version (string-append "1.3.1-1." (string-take commit 9)))
11042 (source
11043 (origin
11044 (method git-fetch)
11045 (uri (git-reference
11046 (url "https://github.com/lomereiter/htslib.git")
11047 (commit commit)))
11048 (file-name (string-append "htslib-" version "-checkout"))
11049 (sha256
11050 (base32
11051 "0g38g8s3npr0gjm9fahlbhiskyfws9l5i0x1ml3rakzj7az5l9c9"))))
11052 (native-inputs
11053 `(("autoconf" ,autoconf)
11054 ("automake" ,automake)
11055 ,@(package-native-inputs htslib))))))
11056
11057 (define-public sambamba
11058 (package
11059 (name "sambamba")
11060 (version "0.6.7-10-g223fa20")
11061 (source
11062 (origin
11063 (method git-fetch)
11064 (uri (git-reference
11065 (url "https://github.com/lomereiter/sambamba.git")
11066 (commit (string-append "v" version))))
11067 (file-name (string-append name "-" version "-checkout"))
11068 (sha256
11069 (base32
11070 "1zb9hrxglxqh13ava9wwri30cvf85hjnbn8ccnr8l60a3k5avczn"))))
11071 (build-system gnu-build-system)
11072 (arguments
11073 `(#:tests? #f ; there is no test target
11074 #:parallel-build? #f ; not supported
11075 #:phases
11076 (modify-phases %standard-phases
11077 (delete 'configure)
11078 (add-after 'unpack 'fix-ldc-version
11079 (lambda _
11080 (substitute* "gen_ldc_version_info.py"
11081 (("/usr/bin/env.*") (which "python")))
11082 (substitute* "Makefile"
11083 (("\\$\\(shell which ldmd2\\)") (which "ldmd2")))
11084 #t))
11085 (add-after 'unpack 'place-biod-and-undead
11086 (lambda* (#:key inputs #:allow-other-keys)
11087 (copy-recursively (assoc-ref inputs "biod") "BioD")
11088 (copy-recursively (assoc-ref inputs "undead") "undeaD")
11089 #t))
11090 (add-after 'unpack 'unbundle-prerequisites
11091 (lambda _
11092 (substitute* "Makefile"
11093 (("htslib/libhts.a lz4/lib/liblz4.a")
11094 "-L-lhts -L-llz4")
11095 ((" htslib-static lz4-static") ""))
11096 #t))
11097 (replace 'install
11098 (lambda* (#:key outputs #:allow-other-keys)
11099 (let* ((out (assoc-ref outputs "out"))
11100 (bin (string-append out "/bin")))
11101 (mkdir-p bin)
11102 (install-file "build/sambamba" bin)
11103 #t))))))
11104 (native-inputs
11105 `(("ldc" ,ldc)
11106 ("rdmd" ,rdmd)
11107 ("python" ,python2-minimal)
11108 ("biod"
11109 ,(let ((commit "c778e4f2d8bacea7499283ce39f5577b232732c6"))
11110 (origin
11111 (method git-fetch)
11112 (uri (git-reference
11113 (url "https://github.com/biod/BioD.git")
11114 (commit commit)))
11115 (file-name (string-append "biod-"
11116 (string-take commit 9)
11117 "-checkout"))
11118 (sha256
11119 (base32
11120 "1z90562hg47i63gx042wb3ak2vqjg5z7hwgn9bp2pdxfg3nxrw37")))))
11121 ("undead"
11122 ,(let ((commit "92803d25c88657e945511f0976a0c79d8da46e89"))
11123 (origin
11124 (method git-fetch)
11125 (uri (git-reference
11126 (url "https://github.com/dlang/undeaD.git")
11127 (commit commit)))
11128 (file-name (string-append "undead-"
11129 (string-take commit 9)
11130 "-checkout"))
11131 (sha256
11132 (base32
11133 "0vq6n81vzqvgphjw54lz2isc1j8lcxwjdbrhqz1h5gwrvw9w5138")))))))
11134 (inputs
11135 `(("lz4" ,lz4)
11136 ("htslib" ,htslib-for-sambamba)))
11137 (home-page "http://lomereiter.github.io/sambamba")
11138 (synopsis "Tools for working with SAM/BAM data")
11139 (description "Sambamba is a high performance modern robust and
11140 fast tool (and library), written in the D programming language, for
11141 working with SAM and BAM files. Current parallelised functionality is
11142 an important subset of samtools functionality, including view, index,
11143 sort, markdup, and depth.")
11144 (license license:gpl2+)))
11145
11146 (define-public ritornello
11147 (package
11148 (name "ritornello")
11149 (version "1.0.0")
11150 (source (origin
11151 (method url-fetch)
11152 (uri (string-append "https://github.com/KlugerLab/"
11153 "Ritornello/archive/v"
11154 version ".tar.gz"))
11155 (file-name (string-append name "-" version ".tar.gz"))
11156 (sha256
11157 (base32
11158 "02nik86gq9ljjriv6pamwlmqnfky3ads1fpklx6mc3hx6k40pg38"))))
11159 (build-system gnu-build-system)
11160 (arguments
11161 `(#:tests? #f ; there are no tests
11162 #:phases
11163 (modify-phases %standard-phases
11164 (add-after 'unpack 'patch-samtools-references
11165 (lambda* (#:key inputs #:allow-other-keys)
11166 (substitute* '("src/SamStream.h"
11167 "src/BufferedGenomeReader.h")
11168 (("<sam.h>") "<samtools/sam.h>"))
11169 #t))
11170 (delete 'configure)
11171 (replace 'install
11172 (lambda* (#:key inputs outputs #:allow-other-keys)
11173 (let* ((out (assoc-ref outputs "out"))
11174 (bin (string-append out "/bin/")))
11175 (mkdir-p bin)
11176 (install-file "bin/Ritornello" bin)
11177 #t))))))
11178 (inputs
11179 `(("samtools" ,samtools-0.1)
11180 ("fftw" ,fftw)
11181 ("boost" ,boost)
11182 ("zlib" ,zlib)))
11183 (home-page "https://github.com/KlugerLab/Ritornello")
11184 (synopsis "Control-free peak caller for ChIP-seq data")
11185 (description "Ritornello is a ChIP-seq peak calling algorithm based on
11186 signal processing that can accurately call binding events without the need to
11187 do a pair total DNA input or IgG control sample. It has been tested for use
11188 with narrow binding events such as transcription factor ChIP-seq.")
11189 (license license:gpl3+)))
11190
11191 (define-public trim-galore
11192 (package
11193 (name "trim-galore")
11194 (version "0.4.5")
11195 (source
11196 (origin
11197 (method git-fetch)
11198 (uri (git-reference
11199 (url "https://github.com/FelixKrueger/TrimGalore.git")
11200 (commit version)))
11201 (file-name (string-append name "-" version "-checkout"))
11202 (sha256
11203 (base32
11204 "0x5892l48c816pf00wmnz5vq0zq6170d3xc8zrxncd4jcz7h1p71"))))
11205 (build-system gnu-build-system)
11206 (arguments
11207 `(#:tests? #f ; no tests
11208 #:phases
11209 (modify-phases %standard-phases
11210 (delete 'configure)
11211 (delete 'build)
11212 (add-after 'unpack 'hardcode-tool-references
11213 (lambda* (#:key inputs #:allow-other-keys)
11214 (substitute* "trim_galore"
11215 (("\\$path_to_cutadapt = 'cutadapt'")
11216 (string-append "$path_to_cutadapt = '"
11217 (assoc-ref inputs "cutadapt")
11218 "/bin/cutadapt'"))
11219 (("\\| gzip")
11220 (string-append "| "
11221 (assoc-ref inputs "gzip")
11222 "/bin/gzip"))
11223 (("\"gunzip")
11224 (string-append "\""
11225 (assoc-ref inputs "gzip")
11226 "/bin/gunzip")))
11227 #t))
11228 (replace 'install
11229 (lambda* (#:key outputs #:allow-other-keys)
11230 (let ((bin (string-append (assoc-ref outputs "out")
11231 "/bin")))
11232 (mkdir-p bin)
11233 (install-file "trim_galore" bin)
11234 #t))))))
11235 (inputs
11236 `(("gzip" ,gzip)
11237 ("perl" ,perl)
11238 ("cutadapt" ,cutadapt)))
11239 (native-inputs
11240 `(("unzip" ,unzip)))
11241 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/trim_galore/")
11242 (synopsis "Wrapper around Cutadapt and FastQC")
11243 (description "Trim Galore! is a wrapper script to automate quality and
11244 adapter trimming as well as quality control, with some added functionality to
11245 remove biased methylation positions for RRBS sequence files.")
11246 (license license:gpl3+)))
11247
11248 (define-public gess
11249 (package
11250 (name "gess")
11251 (version "1.0")
11252 (source (origin
11253 (method url-fetch)
11254 (uri (string-append "http://compbio.uthscsa.edu/"
11255 "GESS_Web/files/"
11256 "gess-" version ".src.tar.gz"))
11257 (sha256
11258 (base32
11259 "0hyk403kxscclzfs24pvdgiv0wm03kjcziqdrp5w46cb049gz0d7"))))
11260 (build-system gnu-build-system)
11261 (arguments
11262 `(#:tests? #f ; no tests
11263 #:phases
11264 (modify-phases %standard-phases
11265 (delete 'configure)
11266 (delete 'build)
11267 (replace 'install
11268 (lambda* (#:key inputs outputs #:allow-other-keys)
11269 (let* ((python (assoc-ref inputs "python"))
11270 (out (assoc-ref outputs "out"))
11271 (bin (string-append out "/bin/"))
11272 (target (string-append
11273 out "/lib/python2.7/site-packages/gess/")))
11274 (mkdir-p target)
11275 (copy-recursively "." target)
11276 ;; Make GESS.py executable
11277 (chmod (string-append target "GESS.py") #o555)
11278 ;; Add Python shebang to the top and make Matplotlib
11279 ;; usable.
11280 (substitute* (string-append target "GESS.py")
11281 (("\"\"\"Description:" line)
11282 (string-append "#!" (which "python") "
11283 import matplotlib
11284 matplotlib.use('Agg')
11285 " line)))
11286 ;; Make sure GESS has all modules in its path
11287 (wrap-program (string-append target "GESS.py")
11288 `("PYTHONPATH" ":" prefix (,target ,(getenv "PYTHONPATH"))))
11289 (mkdir-p bin)
11290 (symlink (string-append target "GESS.py")
11291 (string-append bin "GESS.py"))
11292 #t))))))
11293 (inputs
11294 `(("python" ,python-2)
11295 ("python2-pysam" ,python2-pysam)
11296 ("python2-scipy" ,python2-scipy)
11297 ("python2-numpy" ,python2-numpy)
11298 ("python2-networkx" ,python2-networkx)
11299 ("python2-biopython" ,python2-biopython)))
11300 (home-page "http://compbio.uthscsa.edu/GESS_Web/")
11301 (synopsis "Detect exon-skipping events from raw RNA-seq data")
11302 (description
11303 "GESS is an implementation of a novel computational method to detect de
11304 novo exon-skipping events directly from raw RNA-seq data without the prior
11305 knowledge of gene annotation information. GESS stands for the graph-based
11306 exon-skipping scanner detection scheme.")
11307 (license license:bsd-3)))
11308
11309 (define-public phylip
11310 (package
11311 (name "phylip")
11312 (version "3.696")
11313 (source
11314 (origin
11315 (method url-fetch)
11316 (uri (string-append "http://evolution.gs.washington.edu/phylip/"
11317 "download/phylip-" version ".tar.gz"))
11318 (sha256
11319 (base32
11320 "01jar1rayhr2gba2pgbw49m56rc5z4p5wn3ds0m188hrlln4a2nd"))))
11321 (build-system gnu-build-system)
11322 (arguments
11323 `(#:tests? #f ; no check target
11324 #:make-flags (list "-f" "Makefile.unx" "install")
11325 #:parallel-build? #f ; not supported
11326 #:phases
11327 (modify-phases %standard-phases
11328 (add-after 'unpack 'enter-dir
11329 (lambda _ (chdir "src") #t))
11330 (delete 'configure)
11331 (replace 'install
11332 (lambda* (#:key inputs outputs #:allow-other-keys)
11333 (let ((target (string-append (assoc-ref outputs "out")
11334 "/bin")))
11335 (mkdir-p target)
11336 (for-each (lambda (file)
11337 (install-file file target))
11338 (find-files "../exe" ".*")))
11339 #t)))))
11340 (home-page "http://evolution.genetics.washington.edu/phylip/")
11341 (synopsis "Tools for inferring phylogenies")
11342 (description "PHYLIP (the PHYLogeny Inference Package) is a package of
11343 programs for inferring phylogenies (evolutionary trees).")
11344 (license license:bsd-2)))
11345
11346 (define-public imp
11347 (package
11348 (name "imp")
11349 (version "2.6.2")
11350 (source
11351 (origin
11352 (method url-fetch)
11353 (uri (string-append "https://integrativemodeling.org/"
11354 version "/download/imp-" version ".tar.gz"))
11355 (sha256
11356 (base32
11357 "0lxqx7vh79d771svr611dkilp6sn30qrbw8zvscbrm37v38d2j6h"))))
11358 (build-system cmake-build-system)
11359 (arguments
11360 `(;; FIXME: Some tests fail because they produce warnings, others fail
11361 ;; because the PYTHONPATH does not include the modeller's directory.
11362 #:tests? #f))
11363 (inputs
11364 `(("boost" ,boost)
11365 ("gsl" ,gsl)
11366 ("swig" ,swig)
11367 ("hdf5" ,hdf5)
11368 ("fftw" ,fftw)
11369 ("python" ,python-2)))
11370 (propagated-inputs
11371 `(("python2-numpy" ,python2-numpy)
11372 ("python2-scipy" ,python2-scipy)
11373 ("python2-pandas" ,python2-pandas)
11374 ("python2-scikit-learn" ,python2-scikit-learn)
11375 ("python2-networkx" ,python2-networkx)))
11376 (home-page "https://integrativemodeling.org")
11377 (synopsis "Integrative modeling platform")
11378 (description "IMP's broad goal is to contribute to a comprehensive
11379 structural characterization of biomolecules ranging in size and complexity
11380 from small peptides to large macromolecular assemblies, by integrating data
11381 from diverse biochemical and biophysical experiments. IMP provides a C++ and
11382 Python toolbox for solving complex modeling problems, and a number of
11383 applications for tackling some common problems in a user-friendly way.")
11384 ;; IMP is largely available under the GNU Lesser GPL; see the file
11385 ;; COPYING.LGPL for the full text of this license. Some IMP modules are
11386 ;; available under the GNU GPL (see the file COPYING.GPL).
11387 (license (list license:lgpl2.1+
11388 license:gpl3+))))
11389
11390 (define-public tadbit
11391 (package
11392 (name "tadbit")
11393 (version "0.2")
11394 (source (origin
11395 (method url-fetch)
11396 (uri (string-append "https://github.com/3DGenomes/TADbit/"
11397 "archive/v" version ".tar.gz"))
11398 (file-name (string-append name "-" version ".tar.gz"))
11399 (sha256
11400 (base32
11401 "1cnfqrl4685zar4nnw94j94nhvl2h29jm448nadqi1h05z6fdk4f"))))
11402 (build-system python-build-system)
11403 (arguments
11404 `(;; Tests are included and must be run after installation, but
11405 ;; they are incomplete and thus cannot be run.
11406 #:tests? #f
11407 #:python ,python-2
11408 #:phases
11409 (modify-phases %standard-phases
11410 (add-after 'unpack 'fix-problems-with-setup.py
11411 (lambda* (#:key outputs #:allow-other-keys)
11412 ;; setup.py opens these files for writing
11413 (chmod "_pytadbit/_version.py" #o664)
11414 (chmod "README.rst" #o664)
11415
11416 ;; Don't attempt to install the bash completions to
11417 ;; the home directory.
11418 (rename-file "extras/.bash_completion"
11419 "extras/tadbit")
11420 (substitute* "setup.py"
11421 (("\\(path.expanduser\\('~'\\)")
11422 (string-append "(\""
11423 (assoc-ref outputs "out")
11424 "/etc/bash_completion.d\""))
11425 (("extras/\\.bash_completion")
11426 "extras/tadbit"))
11427 #t)))))
11428 (inputs
11429 ;; TODO: add Chimera for visualization
11430 `(("imp" ,imp)
11431 ("mcl" ,mcl)
11432 ("python2-scipy" ,python2-scipy)
11433 ("python2-numpy" ,python2-numpy)
11434 ("python2-matplotlib" ,python2-matplotlib)
11435 ("python2-pysam" ,python2-pysam)))
11436 (home-page "http://3dgenomes.github.io/TADbit/")
11437 (synopsis "Analyze, model, and explore 3C-based data")
11438 (description
11439 "TADbit is a complete Python library to deal with all steps to analyze,
11440 model, and explore 3C-based data. With TADbit the user can map FASTQ files to
11441 obtain raw interaction binned matrices (Hi-C like matrices), normalize and
11442 correct interaction matrices, identify and compare the so-called
11443 @dfn{Topologically Associating Domains} (TADs), build 3D models from the
11444 interaction matrices, and finally, extract structural properties from the
11445 models. TADbit is complemented by TADkit for visualizing 3D models.")
11446 (license license:gpl3+)))
11447
11448 (define-public kentutils
11449 (package
11450 (name "kentutils")
11451 ;; 302.1.0 is out, but the only difference is the inclusion of
11452 ;; pre-built binaries.
11453 (version "302.0.0")
11454 (source
11455 (origin
11456 (method url-fetch)
11457 (uri (string-append "https://github.com/ENCODE-DCC/kentUtils/"
11458 "archive/v" version ".tar.gz"))
11459 (file-name (string-append name "-" version ".tar.gz"))
11460 (sha256
11461 (base32
11462 "134aja3k1cj32kbk1nnw0q9gxjb2krr15q6sga8qldzvc0585rmm"))
11463 (modules '((guix build utils)
11464 (srfi srfi-26)
11465 (ice-9 ftw)))
11466 (snippet
11467 '(begin
11468 ;; Only the contents of the specified directories are free
11469 ;; for all uses, so we remove the rest. "hg/autoSql" and
11470 ;; "hg/autoXml" are nominally free, but they depend on a
11471 ;; library that is built from the sources in "hg/lib",
11472 ;; which is nonfree.
11473 (let ((free (list "." ".."
11474 "utils" "lib" "inc" "tagStorm"
11475 "parasol" "htslib"))
11476 (directory? (lambda (file)
11477 (eq? 'directory (stat:type (stat file))))))
11478 (for-each (lambda (file)
11479 (and (directory? file)
11480 (delete-file-recursively file)))
11481 (map (cut string-append "src/" <>)
11482 (scandir "src"
11483 (lambda (file)
11484 (not (member file free)))))))
11485 ;; Only make the utils target, not the userApps target,
11486 ;; because that requires libraries we won't build.
11487 (substitute* "Makefile"
11488 ((" userApps") " utils"))
11489 ;; Only build libraries that are free.
11490 (substitute* "src/makefile"
11491 (("DIRS =.*") "DIRS =\n")
11492 (("cd jkOwnLib.*") "")
11493 ((" hgLib") "")
11494 (("cd hg.*") ""))
11495 (substitute* "src/utils/makefile"
11496 ;; These tools depend on "jkhgap.a", which is part of the
11497 ;; nonfree "src/hg/lib" directory.
11498 (("raSqlQuery") "")
11499 (("pslLiftSubrangeBlat") "")
11500
11501 ;; Do not build UCSC tools, which may require nonfree
11502 ;; components.
11503 (("ALL_APPS =.*") "ALL_APPS = $(UTILS_APPLIST)\n"))
11504 #t))))
11505 (build-system gnu-build-system)
11506 (arguments
11507 `( ;; There is no global test target and the test target for
11508 ;; individual tools depends on input files that are not
11509 ;; included.
11510 #:tests? #f
11511 #:phases
11512 (modify-phases %standard-phases
11513 (add-after 'unpack 'fix-paths
11514 (lambda _
11515 (substitute* "Makefile"
11516 (("/bin/echo") (which "echo")))
11517 #t))
11518 (add-after 'unpack 'prepare-samtabix
11519 (lambda* (#:key inputs #:allow-other-keys)
11520 (copy-recursively (assoc-ref inputs "samtabix")
11521 "samtabix")
11522 #t))
11523 (delete 'configure)
11524 (replace 'install
11525 (lambda* (#:key outputs #:allow-other-keys)
11526 (let ((bin (string-append (assoc-ref outputs "out")
11527 "/bin")))
11528 (copy-recursively "bin" bin))
11529 #t)))))
11530 (native-inputs
11531 `(("samtabix"
11532 ,(origin
11533 (method git-fetch)
11534 (uri (git-reference
11535 (url "http://genome-source.cse.ucsc.edu/samtabix.git")
11536 (commit "10fd107909c1ac4d679299908be4262a012965ba")))
11537 (sha256
11538 (base32
11539 "0c1nj64l42v395sa84n7az43xiap4i6f9n9dfz4058aqiwkhkmma"))))))
11540 (inputs
11541 `(("zlib" ,zlib)
11542 ("tcsh" ,tcsh)
11543 ("perl" ,perl)
11544 ("libpng" ,libpng)
11545 ("mariadb" ,mariadb)
11546 ("openssl" ,openssl)))
11547 (home-page "http://genome.cse.ucsc.edu/index.html")
11548 (synopsis "Assorted bioinformatics utilities")
11549 (description "This package provides the kentUtils, a selection of
11550 bioinformatics utilities used in combination with the UCSC genome
11551 browser.")
11552 ;; Only a subset of the sources are released under a non-copyleft
11553 ;; free software license. All other sources are removed in a
11554 ;; snippet. See this bug report for an explanation of how the
11555 ;; license statements apply:
11556 ;; https://github.com/ENCODE-DCC/kentUtils/issues/12
11557 (license (license:non-copyleft
11558 "http://genome.ucsc.edu/license/"
11559 "The contents of this package are free for all uses."))))
11560
11561 (define-public f-seq
11562 (let ((commit "6ccded34cff38cf432deed8503648b4a66953f9b")
11563 (revision "1"))
11564 (package
11565 (name "f-seq")
11566 (version (string-append "1.1-" revision "." (string-take commit 7)))
11567 (source (origin
11568 (method git-fetch)
11569 (uri (git-reference
11570 (url "https://github.com/aboyle/F-seq.git")
11571 (commit commit)))
11572 (file-name (string-append name "-" version))
11573 (sha256
11574 (base32
11575 "1nk33k0yajg2id4g59bc4szr58r2q6pdq42vgcw054m8ip9wv26h"))
11576 (modules '((guix build utils)))
11577 ;; Remove bundled Java library archives.
11578 (snippet
11579 '(begin
11580 (for-each delete-file (find-files "lib" ".*"))
11581 #t))))
11582 (build-system ant-build-system)
11583 (arguments
11584 `(#:tests? #f ; no tests included
11585 #:phases
11586 (modify-phases %standard-phases
11587 (replace 'install
11588 (lambda* (#:key inputs outputs #:allow-other-keys)
11589 (let* ((target (assoc-ref outputs "out"))
11590 (bin (string-append target "/bin"))
11591 (doc (string-append target "/share/doc/f-seq"))
11592 (lib (string-append target "/lib")))
11593 (mkdir-p target)
11594 (mkdir-p doc)
11595 (substitute* "bin/linux/fseq"
11596 (("java") (which "java"))
11597 (("\\$REALDIR/../lib/commons-cli-1.1.jar")
11598 (string-append (assoc-ref inputs "java-commons-cli")
11599 "/share/java/commons-cli.jar"))
11600 (("REALDIR=.*")
11601 (string-append "REALDIR=" bin "\n")))
11602 (install-file "README.txt" doc)
11603 (install-file "bin/linux/fseq" bin)
11604 (install-file "build~/fseq.jar" lib)
11605 (copy-recursively "lib" lib)
11606 #t))))))
11607 (inputs
11608 `(("perl" ,perl)
11609 ("java-commons-cli" ,java-commons-cli)))
11610 (home-page "http://fureylab.web.unc.edu/software/fseq/")
11611 (synopsis "Feature density estimator for high-throughput sequence tags")
11612 (description
11613 "F-Seq is a software package that generates a continuous tag sequence
11614 density estimation allowing identification of biologically meaningful sites
11615 such as transcription factor binding sites (ChIP-seq) or regions of open
11616 chromatin (DNase-seq). Output can be displayed directly in the UCSC Genome
11617 Browser.")
11618 (license license:gpl3+))))
11619
11620 (define-public bismark
11621 (package
11622 (name "bismark")
11623 (version "0.19.1")
11624 (source
11625 (origin
11626 (method git-fetch)
11627 (uri (git-reference
11628 (url "https://github.com/FelixKrueger/Bismark.git")
11629 (commit version)))
11630 (file-name (string-append name "-" version "-checkout"))
11631 (sha256
11632 (base32
11633 "0yb5l36slwg02fp4b1jdlplgljcsxgqfzvzihzdnphd87dghcc84"))
11634 (snippet
11635 '(begin
11636 ;; highcharts.js is non-free software. The code is available under
11637 ;; CC-BY-NC or proprietary licenses only.
11638 (delete-file "bismark_sitrep/highcharts.js")
11639 #t))))
11640 (build-system perl-build-system)
11641 (arguments
11642 `(#:tests? #f ; there are no tests
11643 #:phases
11644 (modify-phases %standard-phases
11645 (delete 'configure)
11646 (delete 'build)
11647 (replace 'install
11648 (lambda* (#:key inputs outputs #:allow-other-keys)
11649 (let* ((out (assoc-ref outputs "out"))
11650 (bin (string-append out "/bin"))
11651 (share (string-append out "/share/bismark"))
11652 (docdir (string-append out "/share/doc/bismark"))
11653 (docs '("Docs/Bismark_User_Guide.html"))
11654 (scripts '("bismark"
11655 "bismark_genome_preparation"
11656 "bismark_methylation_extractor"
11657 "bismark2bedGraph"
11658 "bismark2report"
11659 "coverage2cytosine"
11660 "deduplicate_bismark"
11661 "filter_non_conversion"
11662 "bam2nuc"
11663 "bismark2summary")))
11664 (substitute* "bismark2report"
11665 (("\\$RealBin/bismark_sitrep")
11666 (string-append share "/bismark_sitrep")))
11667 (mkdir-p share)
11668 (mkdir-p docdir)
11669 (mkdir-p bin)
11670 (for-each (lambda (file) (install-file file bin))
11671 scripts)
11672 (for-each (lambda (file) (install-file file docdir))
11673 docs)
11674 (copy-recursively "Docs/Images" (string-append docdir "/Images"))
11675 (copy-recursively "bismark_sitrep"
11676 (string-append share "/bismark_sitrep"))
11677
11678 ;; Fix references to gunzip
11679 (substitute* (map (lambda (file)
11680 (string-append bin "/" file))
11681 scripts)
11682 (("\"gunzip -c")
11683 (string-append "\"" (assoc-ref inputs "gzip")
11684 "/bin/gunzip -c")))
11685 #t))))))
11686 (inputs
11687 `(("gzip" ,gzip)))
11688 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/bismark/")
11689 (synopsis "Map bisulfite treated sequence reads and analyze methylation")
11690 (description "Bismark is a program to map bisulfite treated sequencing
11691 reads to a genome of interest and perform methylation calls in a single step.
11692 The output can be easily imported into a genome viewer, such as SeqMonk, and
11693 enables a researcher to analyse the methylation levels of their samples
11694 straight away. Its main features are:
11695
11696 @itemize
11697 @item Bisulfite mapping and methylation calling in one single step
11698 @item Supports single-end and paired-end read alignments
11699 @item Supports ungapped and gapped alignments
11700 @item Alignment seed length, number of mismatches etc are adjustable
11701 @item Output discriminates between cytosine methylation in CpG, CHG
11702 and CHH context
11703 @end itemize\n")
11704 (license license:gpl3+)))
11705
11706 (define-public paml
11707 (package
11708 (name "paml")
11709 (version "4.9e")
11710 (source (origin
11711 (method url-fetch)
11712 (uri (string-append "http://abacus.gene.ucl.ac.uk/software/"
11713 "paml" version ".tgz"))
11714 (sha256
11715 (base32
11716 "13zf6h9fiqghwhch2h06x1zdr6s42plsnqahflp5g7myr3han3s6"))
11717 (modules '((guix build utils)))
11718 ;; Remove Windows binaries
11719 (snippet
11720 '(begin
11721 (for-each delete-file (find-files "." "\\.exe$"))
11722 #t))))
11723 (build-system gnu-build-system)
11724 (arguments
11725 `(#:tests? #f ; there are no tests
11726 #:make-flags '("CC=gcc")
11727 #:phases
11728 (modify-phases %standard-phases
11729 (replace 'configure
11730 (lambda _
11731 (substitute* "src/BFdriver.c"
11732 (("/bin/bash") (which "bash")))
11733 (chdir "src")
11734 #t))
11735 (replace 'install
11736 (lambda* (#:key outputs #:allow-other-keys)
11737 (let ((tools '("baseml" "basemlg" "codeml"
11738 "pamp" "evolver" "yn00" "chi2"))
11739 (bin (string-append (assoc-ref outputs "out") "/bin"))
11740 (docdir (string-append (assoc-ref outputs "out")
11741 "/share/doc/paml")))
11742 (mkdir-p bin)
11743 (for-each (lambda (file) (install-file file bin)) tools)
11744 (copy-recursively "../doc" docdir)
11745 #t))))))
11746 (home-page "http://abacus.gene.ucl.ac.uk/software/paml.html")
11747 (synopsis "Phylogentic analysis by maximum likelihood")
11748 (description "PAML (for Phylogentic Analysis by Maximum Likelihood)
11749 contains a few programs for model fitting and phylogenetic tree reconstruction
11750 using nucleotide or amino-acid sequence data.")
11751 ;; GPLv3 only
11752 (license license:gpl3)))
11753
11754 (define-public kallisto
11755 (package
11756 (name "kallisto")
11757 (version "0.43.1")
11758 (source (origin
11759 (method url-fetch)
11760 (uri (string-append "https://github.com/pachterlab/"
11761 "kallisto/archive/v" version ".tar.gz"))
11762 (file-name (string-append name "-" version ".tar.gz"))
11763 (sha256
11764 (base32
11765 "03j3iqhvq7ya3c91gidly3k3jvgm97vjq4scihrlxh315j696r11"))))
11766 (build-system cmake-build-system)
11767 (arguments `(#:tests? #f)) ; no "check" target
11768 (inputs
11769 `(("hdf5" ,hdf5)
11770 ("zlib" ,zlib)))
11771 (home-page "http://pachterlab.github.io/kallisto/")
11772 (synopsis "Near-optimal RNA-Seq quantification")
11773 (description
11774 "Kallisto is a program for quantifying abundances of transcripts from
11775 RNA-Seq data, or more generally of target sequences using high-throughput
11776 sequencing reads. It is based on the novel idea of pseudoalignment for
11777 rapidly determining the compatibility of reads with targets, without the need
11778 for alignment. Pseudoalignment of reads preserves the key information needed
11779 for quantification, and kallisto is therefore not only fast, but also as
11780 accurate as existing quantification tools.")
11781 (license license:bsd-2)))
11782
11783 (define-public libgff
11784 (package
11785 (name "libgff")
11786 (version "1.0")
11787 (source (origin
11788 (method url-fetch)
11789 (uri (string-append
11790 "https://github.com/Kingsford-Group/"
11791 "libgff/archive/v" version ".tar.gz"))
11792 (file-name (string-append name "-" version ".tar.gz"))
11793 (sha256
11794 (base32
11795 "0vc4nxyhlm6g9vvmx5l4lfs5pnvixsv1hiiy4kddf2y3p6jna8ls"))))
11796 (build-system cmake-build-system)
11797 (arguments `(#:tests? #f)) ; no tests included
11798 (home-page "https://github.com/Kingsford-Group/libgff")
11799 (synopsis "Parser library for reading/writing GFF files")
11800 (description "This is a simple \"libraryfication\" of the GFF/GTF parsing
11801 code that is used in the Cufflinks codebase. The goal of this library is to
11802 provide this functionality without the necessity of drawing in a heavy-weight
11803 dependency like SeqAn.")
11804 (license (license:x11-style "https://www.boost.org/LICENSE_1_0.txt"))))
11805
11806 (define-public libdivsufsort
11807 (package
11808 (name "libdivsufsort")
11809 (version "2.0.1")
11810 (source (origin
11811 (method git-fetch)
11812 (uri (git-reference
11813 (url "https://github.com/y-256/libdivsufsort.git")
11814 (commit version)))
11815 (file-name (git-file-name name version))
11816 (sha256
11817 (base32
11818 "0fgdz9fzihlvjjrxy01md1bv9vh12rkgkwbm90b1hj5xpbaqp7z2"))))
11819 (build-system cmake-build-system)
11820 (arguments
11821 '(#:tests? #f ; there are no tests
11822 #:configure-flags
11823 ;; Needed for rapmap and sailfish.
11824 '("-DBUILD_DIVSUFSORT64=ON")))
11825 (home-page "https://github.com/y-256/libdivsufsort")
11826 (synopsis "Lightweight suffix-sorting library")
11827 (description "libdivsufsort is a software library that implements a
11828 lightweight suffix array construction algorithm. This library provides a
11829 simple and an efficient C API to construct a suffix array and a
11830 Burrows-Wheeler transformed string from a given string over a constant-size
11831 alphabet. The algorithm runs in O(n log n) worst-case time using only 5n+O(1)
11832 bytes of memory space, where n is the length of the string.")
11833 (license license:expat)))
11834
11835 (define-public sailfish
11836 (package
11837 (name "sailfish")
11838 (version "0.10.1")
11839 (source (origin
11840 (method url-fetch)
11841 (uri
11842 (string-append "https://github.com/kingsfordgroup/"
11843 "sailfish/archive/v" version ".tar.gz"))
11844 (file-name (string-append name "-" version ".tar.gz"))
11845 (sha256
11846 (base32
11847 "1inn60dxiwsz8g9w7kvfhjxj4bwfb0r12dyhpzzhfbig712dkmm0"))
11848 (modules '((guix build utils)))
11849 (snippet
11850 '(begin
11851 ;; Delete bundled headers for eigen3.
11852 (delete-file-recursively "include/eigen3/")
11853 #t))))
11854 (build-system cmake-build-system)
11855 (arguments
11856 `(#:configure-flags
11857 (list (string-append "-DBOOST_INCLUDEDIR="
11858 (assoc-ref %build-inputs "boost")
11859 "/include/")
11860 (string-append "-DBOOST_LIBRARYDIR="
11861 (assoc-ref %build-inputs "boost")
11862 "/lib/")
11863 (string-append "-DBoost_LIBRARIES="
11864 "-lboost_iostreams "
11865 "-lboost_filesystem "
11866 "-lboost_system "
11867 "-lboost_thread "
11868 "-lboost_timer "
11869 "-lboost_chrono "
11870 "-lboost_program_options")
11871 "-DBoost_FOUND=TRUE"
11872 ;; Don't download RapMap---we already have it!
11873 "-DFETCHED_RAPMAP=1")
11874 ;; Tests must be run after installation and the location of the test
11875 ;; data file must be overridden. But the tests fail. It looks like
11876 ;; they are not really meant to be run.
11877 #:tests? #f
11878 #:phases
11879 (modify-phases %standard-phases
11880 ;; Boost cannot be found, even though it's right there.
11881 (add-after 'unpack 'do-not-look-for-boost
11882 (lambda* (#:key inputs #:allow-other-keys)
11883 (substitute* "CMakeLists.txt"
11884 (("find_package\\(Boost 1\\.53\\.0") "#"))))
11885 (add-after 'unpack 'do-not-assign-to-macro
11886 (lambda _
11887 (substitute* "include/spdlog/details/format.cc"
11888 (("const unsigned CHAR_WIDTH = 1;") ""))))
11889 (add-after 'unpack 'prepare-rapmap
11890 (lambda* (#:key inputs #:allow-other-keys)
11891 (let ((src "external/install/src/rapmap/")
11892 (include "external/install/include/rapmap/")
11893 (rapmap (assoc-ref inputs "rapmap")))
11894 (mkdir-p "/tmp/rapmap")
11895 (system* "tar" "xf"
11896 (assoc-ref inputs "rapmap")
11897 "-C" "/tmp/rapmap"
11898 "--strip-components=1")
11899 (mkdir-p src)
11900 (mkdir-p include)
11901 (for-each (lambda (file)
11902 (install-file file src))
11903 (find-files "/tmp/rapmap/src" "\\.(c|cpp)"))
11904 (copy-recursively "/tmp/rapmap/include" include))))
11905 (add-after 'unpack 'use-system-libraries
11906 (lambda* (#:key inputs #:allow-other-keys)
11907 (substitute* '("src/SailfishIndexer.cpp"
11908 "src/SailfishUtils.cpp"
11909 "src/SailfishQuantify.cpp"
11910 "src/FASTAParser.cpp"
11911 "include/PCA.hpp"
11912 "include/SailfishUtils.hpp"
11913 "include/SailfishIndex.hpp"
11914 "include/CollapsedEMOptimizer.hpp"
11915 "src/CollapsedEMOptimizer.cpp")
11916 (("#include \"jellyfish/config.h\"") ""))
11917 (substitute* "src/CMakeLists.txt"
11918 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
11919 (string-append (assoc-ref inputs "jellyfish")
11920 "/include/jellyfish-" ,(package-version jellyfish)))
11921 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
11922 (string-append (assoc-ref inputs "jellyfish")
11923 "/lib/libjellyfish-2.0.a"))
11924 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
11925 (string-append (assoc-ref inputs "libdivsufsort")
11926 "/lib/libdivsufsort.so"))
11927 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
11928 (string-append (assoc-ref inputs "libdivsufsort")
11929 "/lib/libdivsufsort64.so")))
11930 (substitute* "CMakeLists.txt"
11931 ;; Don't prefer static libs
11932 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
11933 (("find_package\\(Jellyfish.*") "")
11934 (("ExternalProject_Add\\(libjellyfish") "message(")
11935 (("ExternalProject_Add\\(libgff") "message(")
11936 (("ExternalProject_Add\\(libsparsehash") "message(")
11937 (("ExternalProject_Add\\(libdivsufsort") "message("))
11938
11939 ;; Ensure that Eigen headers can be found
11940 (setenv "CPLUS_INCLUDE_PATH"
11941 (string-append (getenv "CPLUS_INCLUDE_PATH")
11942 ":"
11943 (assoc-ref inputs "eigen")
11944 "/include/eigen3")))))))
11945 (inputs
11946 `(("boost" ,boost)
11947 ("eigen" ,eigen)
11948 ("jemalloc" ,jemalloc)
11949 ("jellyfish" ,jellyfish)
11950 ("sparsehash" ,sparsehash)
11951 ("rapmap" ,(origin
11952 (method git-fetch)
11953 (uri (git-reference
11954 (url "https://github.com/COMBINE-lab/RapMap.git")
11955 (commit (string-append "sf-v" version))))
11956 (file-name (string-append "rapmap-sf-v" version "-checkout"))
11957 (sha256
11958 (base32
11959 "1hv79l5i576ykv5a1srj2p0q36yvyl5966m0fcy2lbi169ipjakf"))
11960 (modules '((guix build utils)))
11961 ;; These files are expected to be excluded.
11962 (snippet
11963 '(begin (delete-file-recursively "include/spdlog")
11964 (for-each delete-file '("include/xxhash.h"
11965 "src/xxhash.c"))
11966 #t))))
11967 ("libdivsufsort" ,libdivsufsort)
11968 ("libgff" ,libgff)
11969 ("tbb" ,tbb)
11970 ("zlib" ,zlib)))
11971 (native-inputs
11972 `(("pkg-config" ,pkg-config)))
11973 (home-page "http://www.cs.cmu.edu/~ckingsf/software/sailfish")
11974 (synopsis "Mapping-based isoform quantification from RNA-Seq reads")
11975 (description "Sailfish is a tool for genomic transcript quantification
11976 from RNA-seq data. It requires a set of target transcripts (either from a
11977 reference or de-novo assembly) to quantify. All you need to run sailfish is a
11978 fasta file containing your reference transcripts and a (set of) fasta/fastq
11979 file(s) containing your reads.")
11980 (license license:gpl3+)))
11981
11982 (define libstadenio-for-salmon
11983 (package
11984 (name "libstadenio")
11985 (version "1.14.8")
11986 (source (origin
11987 (method git-fetch)
11988 (uri (git-reference
11989 (url "https://github.com/COMBINE-lab/staden-io_lib.git")
11990 (commit (string-append "v" version))))
11991 (file-name (string-append name "-" version "-checkout"))
11992 (sha256
11993 (base32
11994 "1x8kxxqxl892vwfbprlbyfwkkv7c34ggkc94892x9x0g37x5nbwx"))))
11995 (build-system gnu-build-system)
11996 (arguments '(#:parallel-tests? #f)) ; not supported
11997 (inputs
11998 `(("zlib" ,zlib)))
11999 (native-inputs
12000 `(("perl" ,perl))) ; for tests
12001 (home-page "https://github.com/COMBINE-lab/staden-io_lib")
12002 (synopsis "General purpose trace and experiment file library")
12003 (description "This package provides a library of file reading and writing
12004 code to provide a general purpose Trace file (and Experiment File) reading
12005 interface.
12006
12007 The following file formats are supported:
12008
12009 @enumerate
12010 @item SCF trace files
12011 @item ABI trace files
12012 @item ALF trace files
12013 @item ZTR trace files
12014 @item SFF trace archives
12015 @item SRF trace archives
12016 @item Experiment files
12017 @item Plain text files
12018 @item SAM/BAM sequence files
12019 @item CRAM sequence files
12020 @end enumerate\n")
12021 (license license:bsd-3)))
12022
12023 (define spdlog-for-salmon
12024 (package
12025 (name "spdlog")
12026 (version "0.14.0")
12027 (source (origin
12028 (method git-fetch)
12029 (uri (git-reference
12030 (url "https://github.com/COMBINE-lab/spdlog.git")
12031 (commit (string-append "v" version))))
12032 (file-name (string-append name "-" version "-checkout"))
12033 (sha256
12034 (base32
12035 "13730429gwlabi432ilpnja3sfvy0nn2719vnhhmii34xcdyc57q"))))
12036 (build-system cmake-build-system)
12037 (home-page "https://github.com/COMBINE-lab/spdlog")
12038 (synopsis "Very fast C++ logging library")
12039 (description "Spdlog is a very fast header-only C++ logging library with
12040 performance as its primary goal.")
12041 (license license:expat)))
12042
12043 ;; This is a modified variant of bwa for use with Salmon. It installs a
12044 ;; library to avoid having to build this as part of Salmon.
12045 (define bwa-for-salmon
12046 (package (inherit bwa)
12047 (name "bwa")
12048 (version "0.7.12.5")
12049 (source (origin
12050 (method git-fetch)
12051 (uri (git-reference
12052 (url "https://github.com/COMBINE-lab/bwa.git")
12053 (commit (string-append "v" version))))
12054 (file-name (string-append "bwa-for-salmon-" version "-checkout"))
12055 (sha256
12056 (base32
12057 "1z2qa64y0c5hky10510x137mnzlhz6k8qf27csw4w9j6qihq95gb"))))
12058 (build-system gnu-build-system)
12059 (arguments
12060 '(#:tests? #f ;no "check" target
12061 #:phases
12062 (modify-phases %standard-phases
12063 (replace 'install
12064 (lambda* (#:key outputs #:allow-other-keys)
12065 (let* ((out (assoc-ref outputs "out"))
12066 (bin (string-append out "/bin"))
12067 (lib (string-append out "/lib"))
12068 (doc (string-append out "/share/doc/bwa"))
12069 (man (string-append out "/share/man/man1"))
12070 (inc (string-append out "/include/bwa")))
12071 (install-file "bwa" bin)
12072 (install-file "README.md" doc)
12073 (install-file "bwa.1" man)
12074 (install-file "libbwa.a" lib)
12075 (mkdir-p lib)
12076 (mkdir-p inc)
12077 (for-each (lambda (file)
12078 (install-file file inc))
12079 (find-files "." "\\.h$")))
12080 #t))
12081 ;; no "configure" script
12082 (delete 'configure))))))
12083
12084 (define-public salmon
12085 (package
12086 (name "salmon")
12087 (version "0.9.1")
12088 (source (origin
12089 (method git-fetch)
12090 (uri (git-reference
12091 (url "https://github.com/COMBINE-lab/salmon.git")
12092 (commit (string-append "v" version))))
12093 (file-name (string-append name "-" version "-checkout"))
12094 (sha256
12095 (base32
12096 "1zi1ff4i7y2ykk0vdzysgwzzzv166vg2x77pj1mf4baclavxj87a"))
12097 (modules '((guix build utils)))
12098 (snippet
12099 '(begin
12100 ;; Delete bundled headers for eigen3.
12101 (delete-file-recursively "include/eigen3/")
12102 #t))))
12103 (build-system cmake-build-system)
12104 (arguments
12105 `(#:configure-flags
12106 (list (string-append "-DBOOST_INCLUDEDIR="
12107 (assoc-ref %build-inputs "boost")
12108 "/include/")
12109 (string-append "-DBOOST_LIBRARYDIR="
12110 (assoc-ref %build-inputs "boost")
12111 "/lib/")
12112 (string-append "-DBoost_LIBRARIES="
12113 "-lboost_iostreams "
12114 "-lboost_filesystem "
12115 "-lboost_system "
12116 "-lboost_thread "
12117 "-lboost_timer "
12118 "-lboost_chrono "
12119 "-lboost_program_options")
12120 "-DBoost_FOUND=TRUE"
12121 "-DTBB_LIBRARIES=tbb tbbmalloc"
12122 ;; Don't download RapMap---we already have it!
12123 "-DFETCHED_RAPMAP=1")
12124 #:phases
12125 (modify-phases %standard-phases
12126 ;; Boost cannot be found, even though it's right there.
12127 (add-after 'unpack 'do-not-look-for-boost
12128 (lambda* (#:key inputs #:allow-other-keys)
12129 (substitute* "CMakeLists.txt"
12130 (("find_package\\(Boost 1\\.53\\.0") "#"))))
12131 (add-after 'unpack 'do-not-phone-home
12132 (lambda _
12133 (substitute* "src/Salmon.cpp"
12134 (("getVersionMessage\\(\\)") "\"\""))))
12135 (add-after 'unpack 'prepare-rapmap
12136 (lambda* (#:key inputs #:allow-other-keys)
12137 (let ((src "external/install/src/rapmap/")
12138 (include "external/install/include/rapmap/")
12139 (rapmap (assoc-ref inputs "rapmap")))
12140 (mkdir-p src)
12141 (mkdir-p include)
12142 (for-each (lambda (file)
12143 (install-file file src))
12144 (find-files (string-append rapmap "/src") "\\.(c|cpp)"))
12145 (copy-recursively (string-append rapmap "/include") include)
12146 (for-each delete-file '("external/install/include/rapmap/xxhash.h"
12147 "external/install/include/rapmap/FastxParser.hpp"
12148 "external/install/include/rapmap/concurrentqueue.h"
12149 "external/install/include/rapmap/FastxParserThreadUtils.hpp"
12150 "external/install/src/rapmap/FastxParser.cpp"
12151 "external/install/src/rapmap/xxhash.c")))))
12152 (add-after 'unpack 'use-system-libraries
12153 (lambda* (#:key inputs #:allow-other-keys)
12154 (substitute* "src/CMakeLists.txt"
12155 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
12156 (string-append (assoc-ref inputs "jellyfish")
12157 "/include/jellyfish-" ,(package-version jellyfish)))
12158 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
12159 (string-append (assoc-ref inputs "jellyfish")
12160 "/lib/libjellyfish-2.0.a"))
12161 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
12162 (string-append (assoc-ref inputs "libdivsufsort")
12163 "/lib/libdivsufsort.so"))
12164 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libstaden-read.a")
12165 (string-append (assoc-ref inputs "libstadenio-for-salmon")
12166 "/lib/libstaden-read.a"))
12167 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libbwa.a")
12168 (string-append (assoc-ref inputs "bwa") "/lib/libbwa.a"))
12169 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
12170 (string-append (assoc-ref inputs "libdivsufsort")
12171 "/lib/libdivsufsort64.so")))
12172 (substitute* "CMakeLists.txt"
12173 ;; Don't prefer static libs
12174 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
12175 (("set\\(TBB_LIBRARIES") "message(")
12176 (("find_package\\(Jellyfish.*") "")
12177 (("ExternalProject_Add\\(libcereal") "message(")
12178 (("ExternalProject_Add\\(libbwa") "message(")
12179 (("ExternalProject_Add\\(libjellyfish") "message(")
12180 (("ExternalProject_Add\\(libgff") "message(")
12181 (("ExternalProject_Add\\(libtbb") "message(")
12182 (("ExternalProject_Add\\(libspdlog") "message(")
12183 (("ExternalProject_Add\\(libdivsufsort") "message(")
12184 (("ExternalProject_Add\\(libstadenio") "message(")
12185 (("ExternalProject_Add_Step\\(") "message("))
12186
12187 ;; Ensure that all headers can be found
12188 (setenv "CPLUS_INCLUDE_PATH"
12189 (string-append (getenv "CPLUS_INCLUDE_PATH")
12190 ":"
12191 (assoc-ref inputs "bwa")
12192 "/include/bwa"
12193 ":"
12194 (assoc-ref inputs "eigen")
12195 "/include/eigen3"))
12196 (setenv "CPATH"
12197 (string-append (assoc-ref inputs "bwa")
12198 "/include/bwa"
12199 ":"
12200 (assoc-ref inputs "eigen")
12201 "/include/eigen3"))
12202 #t))
12203 ;; CMAKE_INSTALL_PREFIX does not exist when the tests are
12204 ;; run. It only exists after the install phase.
12205 (add-after 'unpack 'fix-tests
12206 (lambda _
12207 (substitute* "src/CMakeLists.txt"
12208 (("DTOPLEVEL_DIR=\\$\\{CMAKE_INSTALL_PREFIX")
12209 "DTOPLEVEL_DIR=${GAT_SOURCE_DIR"))
12210 #t)))))
12211 (inputs
12212 `(("boost" ,boost)
12213 ("bwa" ,bwa-for-salmon)
12214 ("bzip2" ,bzip2)
12215 ("cereal" ,cereal)
12216 ("eigen" ,eigen)
12217 ("rapmap" ,(origin
12218 (method git-fetch)
12219 (uri (git-reference
12220 (url "https://github.com/COMBINE-lab/RapMap.git")
12221 (commit (string-append "salmon-v" version))))
12222 (file-name (string-append "rapmap-salmon-v" version "-checkout"))
12223 (sha256
12224 (base32
12225 "1yc12yqsz6f0r8sg1qnk57xg34aqwc9jbqq6gd5ys28xw3plj98p"))))
12226 ("jemalloc" ,jemalloc)
12227 ("jellyfish" ,jellyfish)
12228 ("libgff" ,libgff)
12229 ("tbb" ,tbb)
12230 ("libdivsufsort" ,libdivsufsort)
12231 ("libstadenio-for-salmon" ,libstadenio-for-salmon)
12232 ("spdlog-for-salmon" ,spdlog-for-salmon)
12233 ("xz" ,xz)
12234 ("zlib" ,zlib)))
12235 (home-page "https://github.com/COMBINE-lab/salmon")
12236 (synopsis "Quantification from RNA-seq reads using lightweight alignments")
12237 (description "Salmon is a program to produce highly-accurate,
12238 transcript-level quantification estimates from RNA-seq data. Salmon achieves
12239 its accuracy and speed via a number of different innovations, including the
12240 use of lightweight alignments (accurate but fast-to-compute proxies for
12241 traditional read alignments) and massively-parallel stochastic collapsed
12242 variational inference.")
12243 (license license:gpl3+)))
12244
12245 (define-public python-loompy
12246 (package
12247 (name "python-loompy")
12248 (version "2.0.2")
12249 (source
12250 (origin
12251 (method url-fetch)
12252 (uri (pypi-uri "loompy" version))
12253 (sha256
12254 (base32
12255 "1drgv8j1hxqzzpnfg272x9djb6j8qr798w1pc2x8ikmfgyd9gh51"))))
12256 (build-system python-build-system)
12257 ;; There are no tests
12258 (arguments '(#:tests? #f))
12259 (propagated-inputs
12260 `(("python-h5py" ,python-h5py)
12261 ("python-numpy" ,python-numpy)
12262 ("python-scipy" ,python-scipy)
12263 ("python-typing" ,python-typing)))
12264 (home-page "https://github.com/linnarsson-lab/loompy")
12265 (synopsis "Work with .loom files for single-cell RNA-seq data")
12266 (description "The loom file format is an efficient format for very large
12267 omics datasets, consisting of a main matrix, optional additional layers, a
12268 variable number of row and column annotations. Loom also supports sparse
12269 graphs. This library makes it easy to work with @file{.loom} files for
12270 single-cell RNA-seq data.")
12271 (license license:bsd-3)))
12272
12273 ;; We cannot use the latest commit because it requires Java 9.
12274 (define-public java-forester
12275 (let ((commit "86b07efe302d5094b42deed9260f719a4c4ac2e6")
12276 (revision "1"))
12277 (package
12278 (name "java-forester")
12279 (version (string-append "0-" revision "." (string-take commit 7)))
12280 (source (origin
12281 (method git-fetch)
12282 (uri (git-reference
12283 (url "https://github.com/cmzmasek/forester.git")
12284 (commit commit)))
12285 (file-name (string-append name "-" version "-checkout"))
12286 (sha256
12287 (base32
12288 "0vxavc1yrf84yrnf20dq26hi0lglidk8d382xrxsy4qmlbjd276z"))
12289 (modules '((guix build utils)))
12290 (snippet
12291 '(begin
12292 ;; Delete bundled jars and pre-built classes
12293 (delete-file-recursively "forester/java/resources")
12294 (delete-file-recursively "forester/java/classes")
12295 (for-each delete-file (find-files "forester/java/" "\\.jar$"))
12296 ;; Delete bundled applications
12297 (delete-file-recursively "forester_applications")
12298 #t))))
12299 (build-system ant-build-system)
12300 (arguments
12301 `(#:tests? #f ; there are none
12302 #:jdk ,icedtea-8
12303 #:modules ((guix build ant-build-system)
12304 (guix build utils)
12305 (guix build java-utils)
12306 (sxml simple)
12307 (sxml transform))
12308 #:phases
12309 (modify-phases %standard-phases
12310 (add-after 'unpack 'chdir
12311 (lambda _ (chdir "forester/java") #t))
12312 (add-after 'chdir 'fix-dependencies
12313 (lambda _
12314 (chmod "build.xml" #o664)
12315 (call-with-output-file "build.xml.new"
12316 (lambda (port)
12317 (sxml->xml
12318 (pre-post-order
12319 (with-input-from-file "build.xml"
12320 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12321 `(;; Remove all unjar tags to avoid repacking classes.
12322 (unjar . ,(lambda _ '()))
12323 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12324 (*text* . ,(lambda (_ txt) txt))))
12325 port)))
12326 (rename-file "build.xml.new" "build.xml")
12327 #t))
12328 ;; FIXME: itext is difficult to package as it depends on a few
12329 ;; unpackaged libraries.
12330 (add-after 'chdir 'remove-dependency-on-unpackaged-itext
12331 (lambda _
12332 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12333 (substitute* "src/org/forester/archaeopteryx/MainFrame.java"
12334 (("pdf_written_to = PdfExporter.*")
12335 "throw new IOException(\"PDF export is not available.\");"))
12336 #t))
12337 ;; There is no install target
12338 (replace 'install (install-jars ".")))))
12339 (propagated-inputs
12340 `(("java-commons-codec" ,java-commons-codec)
12341 ("java-openchart2" ,java-openchart2)))
12342 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12343 (synopsis "Phylogenomics libraries for Java")
12344 (description "Forester is a collection of Java libraries for
12345 phylogenomics and evolutionary biology research. It includes support for
12346 reading, writing, and exporting phylogenetic trees.")
12347 (license license:lgpl2.1+))))
12348
12349 (define-public java-forester-1.005
12350 (package
12351 (name "java-forester")
12352 (version "1.005")
12353 (source (origin
12354 (method url-fetch)
12355 (uri (string-append "http://search.maven.org/remotecontent?"
12356 "filepath=org/biojava/thirdparty/forester/"
12357 version "/forester-" version "-sources.jar"))
12358 (file-name (string-append name "-" version ".jar"))
12359 (sha256
12360 (base32
12361 "04r8qv4rk3p71z4ajrvp11py1z46qrx0047j3zzs79s6lnsm3lcv"))))
12362 (build-system ant-build-system)
12363 (arguments
12364 `(#:tests? #f ; there are none
12365 #:jdk ,icedtea-8
12366 #:modules ((guix build ant-build-system)
12367 (guix build utils)
12368 (guix build java-utils)
12369 (sxml simple)
12370 (sxml transform))
12371 #:phases
12372 (modify-phases %standard-phases
12373 (add-after 'unpack 'fix-dependencies
12374 (lambda* (#:key inputs #:allow-other-keys)
12375 (call-with-output-file "build.xml"
12376 (lambda (port)
12377 (sxml->xml
12378 (pre-post-order
12379 (with-input-from-file "src/build.xml"
12380 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12381 `(;; Remove all unjar tags to avoid repacking classes.
12382 (unjar . ,(lambda _ '()))
12383 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12384 (*text* . ,(lambda (_ txt) txt))))
12385 port)))
12386 (copy-file (assoc-ref inputs "synth_look_and_feel_1.xml")
12387 "synth_look_and_feel_1.xml")
12388 (copy-file (assoc-ref inputs "phyloxml.xsd")
12389 "phyloxml.xsd")
12390 (substitute* "build.xml"
12391 (("../resources/synth_laf/synth_look_and_feel_1.xml")
12392 "synth_look_and_feel_1.xml")
12393 (("../resources/phyloxml_schema/1.10/phyloxml.xsd")
12394 "phyloxml.xsd"))
12395 #t))
12396 ;; FIXME: itext is difficult to package as it depends on a few
12397 ;; unpackaged libraries.
12398 (add-after 'unpack 'remove-dependency-on-unpackaged-itext
12399 (lambda _
12400 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12401 (substitute* '("src/org/forester/archaeopteryx/MainFrame.java"
12402 "src/org/forester/archaeopteryx/MainFrameApplication.java")
12403 (("pdf_written_to = PdfExporter.*")
12404 "throw new IOException(\"PDF export is not available.\"); /*")
12405 ((".getPrintSizeX\\(\\), getOptions\\(\\).getPrintSizeY\\(\\) \\);") "*/")
12406 (("getCurrentTreePanel\\(\\).getHeight\\(\\) \\);") "*/"))
12407 #t))
12408 (add-after 'unpack 'delete-pre-built-classes
12409 (lambda _ (delete-file-recursively "src/classes") #t))
12410 ;; There is no install target
12411 (replace 'install (install-jars ".")))))
12412 (propagated-inputs
12413 `(("java-commons-codec" ,java-commons-codec)
12414 ("java-openchart2" ,java-openchart2)))
12415 ;; The source archive does not contain the resources.
12416 (native-inputs
12417 `(("phyloxml.xsd"
12418 ,(origin
12419 (method url-fetch)
12420 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12421 "b61cc2dcede0bede317db362472333115756b8c6/"
12422 "forester/resources/phyloxml_schema/1.10/phyloxml.xsd"))
12423 (file-name (string-append name "-phyloxml-" version ".xsd"))
12424 (sha256
12425 (base32
12426 "1zxc4m8sn4n389nqdnpxa8d0k17qnr3pm2y5y6g6vh4k0zm52npv"))))
12427 ("synth_look_and_feel_1.xml"
12428 ,(origin
12429 (method url-fetch)
12430 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12431 "29e04321615da6b35c1e15c60e52caf3f21d8e6a/"
12432 "forester/java/classes/resources/synth_look_and_feel_1.xml"))
12433 (file-name (string-append name "-synth-look-and-feel-" version ".xml"))
12434 (sha256
12435 (base32
12436 "1gv5602gv4k7y7713y75a4jvj7i9s7nildsbdl7n9q10sc2ikg8h"))))))
12437 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12438 (synopsis "Phylogenomics libraries for Java")
12439 (description "Forester is a collection of Java libraries for
12440 phylogenomics and evolutionary biology research. It includes support for
12441 reading, writing, and exporting phylogenetic trees.")
12442 (license license:lgpl2.1+)))
12443
12444 (define-public java-biojava-core
12445 (package
12446 (name "java-biojava-core")
12447 (version "4.2.11")
12448 (source (origin
12449 (method git-fetch)
12450 (uri (git-reference
12451 (url "https://github.com/biojava/biojava")
12452 (commit (string-append "biojava-" version))))
12453 (file-name (string-append name "-" version "-checkout"))
12454 (sha256
12455 (base32
12456 "1bvryh2bpsvash8ln79cmc9sqm8qw72hz4xzwqxcrjm8ssxszhqk"))))
12457 (build-system ant-build-system)
12458 (arguments
12459 `(#:jdk ,icedtea-8
12460 #:jar-name "biojava-core.jar"
12461 #:source-dir "biojava-core/src/main/java/"
12462 #:test-dir "biojava-core/src/test"
12463 ;; These tests seem to require internet access.
12464 #:test-exclude (list "**/SearchIOTest.java"
12465 "**/BlastXMLParserTest.java"
12466 "**/GenbankCookbookTest.java"
12467 "**/GenbankProxySequenceReaderTest.java")
12468 #:phases
12469 (modify-phases %standard-phases
12470 (add-before 'build 'copy-resources
12471 (lambda _
12472 (copy-recursively "biojava-core/src/main/resources"
12473 "build/classes")
12474 #t))
12475 (add-before 'check 'copy-test-resources
12476 (lambda _
12477 (copy-recursively "biojava-core/src/test/resources"
12478 "build/test-classes")
12479 #t)))))
12480 (propagated-inputs
12481 `(("java-log4j-api" ,java-log4j-api)
12482 ("java-log4j-core" ,java-log4j-core)
12483 ("java-slf4j-api" ,java-slf4j-api)
12484 ("java-slf4j-simple" ,java-slf4j-simple)))
12485 (native-inputs
12486 `(("java-junit" ,java-junit)
12487 ("java-hamcrest-core" ,java-hamcrest-core)))
12488 (home-page "http://biojava.org")
12489 (synopsis "Core libraries of Java framework for processing biological data")
12490 (description "BioJava is a project dedicated to providing a Java framework
12491 for processing biological data. It provides analytical and statistical
12492 routines, parsers for common file formats, reference implementations of
12493 popular algorithms, and allows the manipulation of sequences and 3D
12494 structures. The goal of the biojava project is to facilitate rapid
12495 application development for bioinformatics.
12496
12497 This package provides the core libraries.")
12498 (license license:lgpl2.1+)))
12499
12500 (define-public java-biojava-phylo
12501 (package (inherit java-biojava-core)
12502 (name "java-biojava-phylo")
12503 (build-system ant-build-system)
12504 (arguments
12505 `(#:jdk ,icedtea-8
12506 #:jar-name "biojava-phylo.jar"
12507 #:source-dir "biojava-phylo/src/main/java/"
12508 #:test-dir "biojava-phylo/src/test"
12509 #:phases
12510 (modify-phases %standard-phases
12511 (add-before 'build 'copy-resources
12512 (lambda _
12513 (copy-recursively "biojava-phylo/src/main/resources"
12514 "build/classes")
12515 #t))
12516 (add-before 'check 'copy-test-resources
12517 (lambda _
12518 (copy-recursively "biojava-phylo/src/test/resources"
12519 "build/test-classes")
12520 #t)))))
12521 (propagated-inputs
12522 `(("java-log4j-api" ,java-log4j-api)
12523 ("java-log4j-core" ,java-log4j-core)
12524 ("java-slf4j-api" ,java-slf4j-api)
12525 ("java-slf4j-simple" ,java-slf4j-simple)
12526 ("java-biojava-core" ,java-biojava-core)
12527 ("java-forester" ,java-forester)))
12528 (native-inputs
12529 `(("java-junit" ,java-junit)
12530 ("java-hamcrest-core" ,java-hamcrest-core)))
12531 (home-page "http://biojava.org")
12532 (synopsis "Biojava interface to the forester phylogenomics library")
12533 (description "The phylo module provides a biojava interface layer to the
12534 forester phylogenomics library for constructing phylogenetic trees.")))
12535
12536 (define-public java-biojava-alignment
12537 (package (inherit java-biojava-core)
12538 (name "java-biojava-alignment")
12539 (build-system ant-build-system)
12540 (arguments
12541 `(#:jdk ,icedtea-8
12542 #:jar-name "biojava-alignment.jar"
12543 #:source-dir "biojava-alignment/src/main/java/"
12544 #:test-dir "biojava-alignment/src/test"
12545 #:phases
12546 (modify-phases %standard-phases
12547 (add-before 'build 'copy-resources
12548 (lambda _
12549 (copy-recursively "biojava-alignment/src/main/resources"
12550 "build/classes")
12551 #t))
12552 (add-before 'check 'copy-test-resources
12553 (lambda _
12554 (copy-recursively "biojava-alignment/src/test/resources"
12555 "build/test-classes")
12556 #t)))))
12557 (propagated-inputs
12558 `(("java-log4j-api" ,java-log4j-api)
12559 ("java-log4j-core" ,java-log4j-core)
12560 ("java-slf4j-api" ,java-slf4j-api)
12561 ("java-slf4j-simple" ,java-slf4j-simple)
12562 ("java-biojava-core" ,java-biojava-core)
12563 ("java-biojava-phylo" ,java-biojava-phylo)
12564 ("java-forester" ,java-forester)))
12565 (native-inputs
12566 `(("java-junit" ,java-junit)
12567 ("java-hamcrest-core" ,java-hamcrest-core)))
12568 (home-page "http://biojava.org")
12569 (synopsis "Biojava API for genetic sequence alignment")
12570 (description "The alignment module of BioJava provides an API that
12571 contains
12572
12573 @itemize
12574 @item implementations of dynamic programming algorithms for sequence
12575 alignment;
12576 @item reading and writing of popular alignment file formats;
12577 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12578 @end itemize\n")))
12579
12580 (define-public java-biojava-core-4.0
12581 (package (inherit java-biojava-core)
12582 (name "java-biojava-core")
12583 (version "4.0.0")
12584 (source (origin
12585 (method git-fetch)
12586 (uri (git-reference
12587 (url "https://github.com/biojava/biojava")
12588 (commit (string-append "biojava-" version))))
12589 (file-name (string-append name "-" version "-checkout"))
12590 (sha256
12591 (base32
12592 "13675f6y9aqi7bi2lk3s1z7a22ynccjiqwa8izh7p97xi9wsfmd8"))))))
12593
12594 (define-public java-biojava-phylo-4.0
12595 (package (inherit java-biojava-core-4.0)
12596 (name "java-biojava-phylo")
12597 (build-system ant-build-system)
12598 (arguments
12599 `(#:jdk ,icedtea-8
12600 #:jar-name "biojava-phylo.jar"
12601 #:source-dir "biojava-phylo/src/main/java/"
12602 #:test-dir "biojava-phylo/src/test"
12603 #:phases
12604 (modify-phases %standard-phases
12605 (add-before 'build 'copy-resources
12606 (lambda _
12607 (copy-recursively "biojava-phylo/src/main/resources"
12608 "build/classes")
12609 #t))
12610 (add-before 'check 'copy-test-resources
12611 (lambda _
12612 (copy-recursively "biojava-phylo/src/test/resources"
12613 "build/test-classes")
12614 #t)))))
12615 (propagated-inputs
12616 `(("java-log4j-api" ,java-log4j-api)
12617 ("java-log4j-core" ,java-log4j-core)
12618 ("java-slf4j-api" ,java-slf4j-api)
12619 ("java-slf4j-simple" ,java-slf4j-simple)
12620 ("java-biojava-core" ,java-biojava-core-4.0)
12621 ("java-forester" ,java-forester-1.005)))
12622 (native-inputs
12623 `(("java-junit" ,java-junit)
12624 ("java-hamcrest-core" ,java-hamcrest-core)))
12625 (home-page "http://biojava.org")
12626 (synopsis "Biojava interface to the forester phylogenomics library")
12627 (description "The phylo module provides a biojava interface layer to the
12628 forester phylogenomics library for constructing phylogenetic trees.")))
12629
12630 (define-public java-biojava-alignment-4.0
12631 (package (inherit java-biojava-core-4.0)
12632 (name "java-biojava-alignment")
12633 (build-system ant-build-system)
12634 (arguments
12635 `(#:jdk ,icedtea-8
12636 #:jar-name "biojava-alignment.jar"
12637 #:source-dir "biojava-alignment/src/main/java/"
12638 #:test-dir "biojava-alignment/src/test"
12639 #:phases
12640 (modify-phases %standard-phases
12641 (add-before 'build 'copy-resources
12642 (lambda _
12643 (copy-recursively "biojava-alignment/src/main/resources"
12644 "build/classes")
12645 #t))
12646 (add-before 'check 'copy-test-resources
12647 (lambda _
12648 (copy-recursively "biojava-alignment/src/test/resources"
12649 "build/test-classes")
12650 #t)))))
12651 (propagated-inputs
12652 `(("java-log4j-api" ,java-log4j-api)
12653 ("java-log4j-core" ,java-log4j-core)
12654 ("java-slf4j-api" ,java-slf4j-api)
12655 ("java-slf4j-simple" ,java-slf4j-simple)
12656 ("java-biojava-core" ,java-biojava-core-4.0)
12657 ("java-biojava-phylo" ,java-biojava-phylo-4.0)
12658 ("java-forester" ,java-forester-1.005)))
12659 (native-inputs
12660 `(("java-junit" ,java-junit)
12661 ("java-hamcrest-core" ,java-hamcrest-core)))
12662 (home-page "http://biojava.org")
12663 (synopsis "Biojava API for genetic sequence alignment")
12664 (description "The alignment module of BioJava provides an API that
12665 contains
12666
12667 @itemize
12668 @item implementations of dynamic programming algorithms for sequence
12669 alignment;
12670 @item reading and writing of popular alignment file formats;
12671 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12672 @end itemize\n")))
12673
12674 (define-public dropseq-tools
12675 (package
12676 (name "dropseq-tools")
12677 (version "1.13")
12678 (source
12679 (origin
12680 (method url-fetch)
12681 (uri "http://mccarrolllab.com/download/1276/")
12682 (file-name (string-append "dropseq-tools-" version ".zip"))
12683 (sha256
12684 (base32
12685 "0yrffckxqk5l8b5xb6z4laq157zd9mdypr2p4b4vq2bhjzi1sj0s"))
12686 ;; Delete bundled libraries
12687 (modules '((guix build utils)))
12688 (snippet
12689 '(begin
12690 (for-each delete-file (find-files "jar/lib" "\\.jar$"))
12691 (delete-file-recursively "3rdParty")
12692 #t))))
12693 (build-system ant-build-system)
12694 (arguments
12695 `(#:tests? #f ; test data are not included
12696 #:test-target "test"
12697 #:build-target "all"
12698 #:source-dir "public/src/"
12699 #:jdk ,icedtea-8
12700 #:make-flags
12701 (list (string-append "-Dpicard.executable.dir="
12702 (assoc-ref %build-inputs "java-picard")
12703 "/share/java/"))
12704 #:modules ((ice-9 match)
12705 (srfi srfi-1)
12706 (guix build utils)
12707 (guix build java-utils)
12708 (guix build ant-build-system))
12709 #:phases
12710 (modify-phases %standard-phases
12711 ;; All dependencies must be linked to "lib", because that's where
12712 ;; they will be searched for when the Class-Path property of the
12713 ;; manifest is computed.
12714 (add-after 'unpack 'record-references
12715 (lambda* (#:key inputs #:allow-other-keys)
12716 (mkdir-p "jar/lib")
12717 (let ((dirs (filter-map (match-lambda
12718 ((name . dir)
12719 (if (and (string-prefix? "java-" name)
12720 (not (string=? name "java-testng")))
12721 dir #f)))
12722 inputs)))
12723 (for-each (lambda (jar)
12724 (symlink jar (string-append "jar/lib/" (basename jar))))
12725 (append-map (lambda (dir) (find-files dir "\\.jar$"))
12726 dirs)))
12727 #t))
12728 ;; There is no installation target
12729 (replace 'install
12730 (lambda* (#:key inputs outputs #:allow-other-keys)
12731 (let* ((out (assoc-ref outputs "out"))
12732 (bin (string-append out "/bin"))
12733 (share (string-append out "/share/java/"))
12734 (lib (string-append share "/lib/"))
12735 (scripts (list "BAMTagHistogram"
12736 "BAMTagofTagCounts"
12737 "BaseDistributionAtReadPosition"
12738 "CollapseBarcodesInPlace"
12739 "CollapseTagWithContext"
12740 "ConvertToRefFlat"
12741 "CreateIntervalsFiles"
12742 "DetectBeadSynthesisErrors"
12743 "DigitalExpression"
12744 "Drop-seq_alignment.sh"
12745 "FilterBAM"
12746 "FilterBAMByTag"
12747 "GatherGeneGCLength"
12748 "GatherMolecularBarcodeDistributionByGene"
12749 "GatherReadQualityMetrics"
12750 "PolyATrimmer"
12751 "ReduceGTF"
12752 "SelectCellsByNumTranscripts"
12753 "SingleCellRnaSeqMetricsCollector"
12754 "TagBamWithReadSequenceExtended"
12755 "TagReadWithGeneExon"
12756 "TagReadWithInterval"
12757 "TrimStartingSequence"
12758 "ValidateReference")))
12759 (for-each mkdir-p (list bin share lib))
12760 (install-file "dist/dropseq.jar" share)
12761 (for-each (lambda (script)
12762 (chmod script #o555)
12763 (install-file script bin))
12764 scripts)
12765 (substitute* (map (lambda (script)
12766 (string-append bin "/" script))
12767 scripts)
12768 (("^java") (which "java"))
12769 (("jar_deploy_dir=.*")
12770 (string-append "jar_deploy_dir=" share "\n"))))
12771 #t))
12772 ;; FIXME: We do this after stripping jars because we don't want it to
12773 ;; copy all these jars and strip them. We only want to install
12774 ;; links. Arguably, this is a problem with the ant-build-system.
12775 (add-after 'strip-jar-timestamps 'install-links
12776 (lambda* (#:key outputs #:allow-other-keys)
12777 (let* ((out (assoc-ref outputs "out"))
12778 (share (string-append out "/share/java/"))
12779 (lib (string-append share "/lib/")))
12780 (for-each (lambda (jar)
12781 (symlink (readlink jar)
12782 (string-append lib (basename jar))))
12783 (find-files "jar/lib" "\\.jar$")))
12784 #t)))))
12785 (inputs
12786 `(("jdk" ,icedtea-8)
12787 ("java-picard" ,java-picard-2.10.3)
12788 ("java-log4j-1.2-api" ,java-log4j-1.2-api)
12789 ("java-commons-math3" ,java-commons-math3)
12790 ("java-commons-jexl2" ,java-commons-jexl-2)
12791 ("java-commons-collections4" ,java-commons-collections4)
12792 ("java-commons-lang2" ,java-commons-lang)
12793 ("java-commons-io" ,java-commons-io)
12794 ("java-snappy-1.0.3-rc3" ,java-snappy-1)
12795 ("java-guava" ,java-guava)
12796 ("java-la4j" ,java-la4j)
12797 ("java-biojava-core" ,java-biojava-core-4.0)
12798 ("java-biojava-alignment" ,java-biojava-alignment-4.0)
12799 ("java-jdistlib" ,java-jdistlib)
12800 ("java-simple-xml" ,java-simple-xml)
12801 ("java-snakeyaml" ,java-snakeyaml)))
12802 (native-inputs
12803 `(("unzip" ,unzip)
12804 ("java-testng" ,java-testng)))
12805 (home-page "http://mccarrolllab.com/dropseq/")
12806 (synopsis "Tools for Drop-seq analyses")
12807 (description "Drop-seq is a technology to enable biologists to
12808 analyze RNA expression genome-wide in thousands of individual cells at
12809 once. This package provides tools to perform Drop-seq analyses.")
12810 (license license:expat)))
12811
12812 (define-public pigx-rnaseq
12813 (package
12814 (name "pigx-rnaseq")
12815 (version "0.0.3")
12816 (source (origin
12817 (method url-fetch)
12818 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_rnaseq/"
12819 "releases/download/v" version
12820 "/pigx_rnaseq-" version ".tar.gz"))
12821 (sha256
12822 (base32
12823 "0pz080k4ajlc4rlznkn3najy2a6874gb56rf9g4ag9wqz31q174j"))))
12824 (build-system gnu-build-system)
12825 (arguments
12826 `(#:parallel-tests? #f ; not supported
12827 #:phases
12828 (modify-phases %standard-phases
12829 ;; "test.sh" runs STAR, which requires excessive amounts of memory.
12830 (add-after 'unpack 'disable-resource-intensive-test
12831 (lambda _
12832 (substitute* "Makefile.in"
12833 (("(^ tests/test_trim_galore/test.sh).*" _ m) m)
12834 (("^ test.sh") ""))
12835 #t))
12836 (add-after 'install 'wrap-executable
12837 ;; Make sure the executable finds all R modules.
12838 (lambda* (#:key inputs outputs #:allow-other-keys)
12839 (let ((out (assoc-ref outputs "out")))
12840 (wrap-program (string-append out "/bin/pigx-rnaseq")
12841 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))
12842 `("PYTHONPATH" ":" = (,(getenv "PYTHONPATH")))))
12843 #t)))))
12844 (inputs
12845 `(("gzip" ,gzip)
12846 ("snakemake" ,snakemake)
12847 ("fastqc" ,fastqc)
12848 ("multiqc" ,multiqc)
12849 ("star" ,star)
12850 ("trim-galore" ,trim-galore)
12851 ("htseq" ,htseq)
12852 ("samtools" ,samtools)
12853 ("bedtools" ,bedtools)
12854 ("r-minimal" ,r-minimal)
12855 ("r-rmarkdown" ,r-rmarkdown)
12856 ("r-ggplot2" ,r-ggplot2)
12857 ("r-ggrepel" ,r-ggrepel)
12858 ("r-gprofiler" ,r-gprofiler)
12859 ("r-deseq2" ,r-deseq2)
12860 ("r-dt" ,r-dt)
12861 ("r-knitr" ,r-knitr)
12862 ("r-pheatmap" ,r-pheatmap)
12863 ("r-corrplot" ,r-corrplot)
12864 ("r-reshape2" ,r-reshape2)
12865 ("r-plotly" ,r-plotly)
12866 ("r-scales" ,r-scales)
12867 ("r-summarizedexperiment" ,r-summarizedexperiment)
12868 ("r-crosstalk" ,r-crosstalk)
12869 ("r-tximport" ,r-tximport)
12870 ("r-rtracklayer" ,r-rtracklayer)
12871 ("r-rjson" ,r-rjson)
12872 ("salmon" ,salmon)
12873 ("ghc-pandoc" ,ghc-pandoc-1)
12874 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc-with-pandoc-1)
12875 ("python-wrapper" ,python-wrapper)
12876 ("python-pyyaml" ,python-pyyaml)))
12877 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12878 (synopsis "Analysis pipeline for RNA sequencing experiments")
12879 (description "PiGX RNAseq is an analysis pipeline for preprocessing and
12880 reporting for RNA sequencing experiments. It is easy to use and produces high
12881 quality reports. The inputs are reads files from the sequencing experiment,
12882 and a configuration file which describes the experiment. In addition to
12883 quality control of the experiment, the pipeline produces a differential
12884 expression report comparing samples in an easily configurable manner.")
12885 (license license:gpl3+)))
12886
12887 (define-public pigx-chipseq
12888 (package
12889 (name "pigx-chipseq")
12890 (version "0.0.15")
12891 (source (origin
12892 (method url-fetch)
12893 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_chipseq/"
12894 "releases/download/v" version
12895 "/pigx_chipseq-" version ".tar.gz"))
12896 (sha256
12897 (base32
12898 "11v9v3vyda0sv4cl45nki7mm4v4bjfcdq7a70kcvi9h465nq66wg"))))
12899 (build-system gnu-build-system)
12900 (arguments
12901 `(#:tests? #f ; parts of the tests rely on access to the network
12902 #:phases
12903 (modify-phases %standard-phases
12904 (add-after 'install 'wrap-executable
12905 ;; Make sure the executable finds all R modules.
12906 (lambda* (#:key inputs outputs #:allow-other-keys)
12907 (let ((out (assoc-ref outputs "out")))
12908 (wrap-program (string-append out "/bin/pigx-chipseq")
12909 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))
12910 `("PYTHONPATH" ":" = (,(getenv "PYTHONPATH")))))
12911 #t)))))
12912 (inputs
12913 `(("grep" ,grep)
12914 ("coreutils" ,coreutils)
12915 ("r-minimal" ,r-minimal)
12916 ("r-argparser" ,r-argparser)
12917 ("r-biocparallel" ,r-biocparallel)
12918 ("r-biostrings" ,r-biostrings)
12919 ("r-chipseq" ,r-chipseq)
12920 ("r-data-table" ,r-data-table)
12921 ("r-dplyr" ,r-dplyr)
12922 ("r-genomation" ,r-genomation)
12923 ("r-genomicalignments" ,r-genomicalignments)
12924 ("r-genomicranges" ,r-genomicranges)
12925 ("r-rsamtools" ,r-rsamtools)
12926 ("r-rtracklayer" ,r-rtracklayer)
12927 ("r-s4vectors" ,r-s4vectors)
12928 ("r-stringr" ,r-stringr)
12929 ("r-tibble" ,r-tibble)
12930 ("r-tidyr" ,r-tidyr)
12931 ("r-jsonlite" ,r-jsonlite)
12932 ("r-heatmaply" ,r-heatmaply)
12933 ("r-htmlwidgets" ,r-htmlwidgets)
12934 ("r-ggplot2" ,r-ggplot2)
12935 ("r-plotly" ,r-plotly)
12936 ("r-rmarkdown" ,r-rmarkdown)
12937 ("python-wrapper" ,python-wrapper)
12938 ("python-pyyaml" ,python-pyyaml)
12939 ("python-magic" ,python-magic)
12940 ("python-xlrd" ,python-xlrd)
12941 ("trim-galore" ,trim-galore)
12942 ("macs" ,macs)
12943 ("multiqc" ,multiqc)
12944 ("perl" ,perl)
12945 ("ghc-pandoc" ,ghc-pandoc-1)
12946 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc-with-pandoc-1)
12947 ("fastqc" ,fastqc)
12948 ("bowtie" ,bowtie)
12949 ("idr" ,idr)
12950 ("snakemake" ,snakemake)
12951 ("samtools" ,samtools)
12952 ("bedtools" ,bedtools)
12953 ("kentutils" ,kentutils)))
12954 (native-inputs
12955 `(("python-pytest" ,python-pytest)))
12956 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12957 (synopsis "Analysis pipeline for ChIP sequencing experiments")
12958 (description "PiGX ChIPseq is an analysis pipeline for preprocessing, peak
12959 calling and reporting for ChIP sequencing experiments. It is easy to use and
12960 produces high quality reports. The inputs are reads files from the sequencing
12961 experiment, and a configuration file which describes the experiment. In
12962 addition to quality control of the experiment, the pipeline enables to set up
12963 multiple peak calling analysis and allows the generation of a UCSC track hub
12964 in an easily configurable manner.")
12965 (license license:gpl3+)))
12966
12967 (define-public pigx-bsseq
12968 (package
12969 (name "pigx-bsseq")
12970 (version "0.0.8")
12971 (source (origin
12972 (method url-fetch)
12973 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_bsseq/"
12974 "releases/download/v" version
12975 "/pigx_bsseq-" version ".tar.gz"))
12976 (sha256
12977 (base32
12978 "0irlnlhhw9fd4ha7hksrxn3y7j76mz5qq1wjswbs9p364laqg69y"))))
12979 (build-system gnu-build-system)
12980 (arguments
12981 `(#:phases
12982 (modify-phases %standard-phases
12983 (add-before 'check 'set-timezone
12984 ;; The readr package is picky about timezones.
12985 (lambda* (#:key inputs #:allow-other-keys)
12986 (setenv "TZ" "UTC+1")
12987 (setenv "TZDIR"
12988 (string-append (assoc-ref inputs "tzdata")
12989 "/share/zoneinfo"))
12990 #t))
12991 (add-after 'install 'wrap-executable
12992 ;; Make sure the executable finds all R modules.
12993 (lambda* (#:key inputs outputs #:allow-other-keys)
12994 (let ((out (assoc-ref outputs "out")))
12995 (wrap-program (string-append out "/bin/pigx-bsseq")
12996 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))
12997 `("PYTHONPATH" ":" = (,(getenv "PYTHONPATH")))))
12998 #t)))))
12999 (native-inputs
13000 `(("tzdata" ,tzdata)))
13001 (inputs
13002 `(("coreutils" ,coreutils)
13003 ("sed" ,sed)
13004 ("grep" ,grep)
13005 ("r-minimal" ,r-minimal)
13006 ("r-annotationhub" ,r-annotationhub)
13007 ("r-dt" ,r-dt)
13008 ("r-genomation" ,r-genomation)
13009 ("r-methylkit" ,r-methylkit)
13010 ("r-rtracklayer" ,r-rtracklayer)
13011 ("r-rmarkdown" ,r-rmarkdown)
13012 ("r-bookdown" ,r-bookdown)
13013 ("r-ggplot2" ,r-ggplot2)
13014 ("r-ggbio" ,r-ggbio)
13015 ("ghc-pandoc" ,ghc-pandoc-1)
13016 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc-with-pandoc-1)
13017 ("python-wrapper" ,python-wrapper)
13018 ("python-pyyaml" ,python-pyyaml)
13019 ("snakemake" ,snakemake)
13020 ("bismark" ,bismark)
13021 ("fastqc" ,fastqc)
13022 ("bowtie" ,bowtie)
13023 ("trim-galore" ,trim-galore)
13024 ("cutadapt" ,cutadapt)
13025 ("samtools" ,samtools)))
13026 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
13027 (synopsis "Bisulfite sequencing pipeline from fastq to methylation reports")
13028 (description "PiGx BSseq is a data processing pipeline for raw fastq read
13029 data of bisulfite experiments; it produces reports on aggregate methylation
13030 and coverage and can be used to produce information on differential
13031 methylation and segmentation.")
13032 (license license:gpl3+)))
13033
13034 (define-public pigx-scrnaseq
13035 (package
13036 (name "pigx-scrnaseq")
13037 (version "0.0.4")
13038 (source (origin
13039 (method url-fetch)
13040 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_scrnaseq/"
13041 "releases/download/v" version
13042 "/pigx_scrnaseq-" version ".tar.gz"))
13043 (sha256
13044 (base32
13045 "1pvjm6f3mascprs65vflggwwg5v925knvgal7k7a6nnlmw5qndrf"))))
13046 (build-system gnu-build-system)
13047 (arguments
13048 `(#:configure-flags
13049 (list (string-append "PICARDJAR=" (assoc-ref %build-inputs "java-picard")
13050 "/share/java/picard.jar")
13051 (string-append "DROPSEQJAR=" (assoc-ref %build-inputs "dropseq-tools")
13052 "/share/java/dropseq.jar"))
13053 #:phases
13054 (modify-phases %standard-phases
13055 (add-after 'install 'wrap-executable
13056 ;; Make sure the executable finds all R modules.
13057 (lambda* (#:key inputs outputs #:allow-other-keys)
13058 (let ((out (assoc-ref outputs "out")))
13059 (wrap-program (string-append out "/bin/pigx-scrnaseq")
13060 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))
13061 `("PYTHONPATH" ":" = (,(getenv "PYTHONPATH")))))
13062 #t)))))
13063 (inputs
13064 `(("coreutils" ,coreutils)
13065 ("perl" ,perl)
13066 ("dropseq-tools" ,dropseq-tools)
13067 ("fastqc" ,fastqc)
13068 ("java-picard" ,java-picard)
13069 ("java" ,icedtea-8)
13070 ("python-wrapper" ,python-wrapper)
13071 ("python-pyyaml" ,python-pyyaml)
13072 ("python-pandas" ,python-pandas)
13073 ("python-numpy" ,python-numpy)
13074 ("python-loompy" ,python-loompy)
13075 ("ghc-pandoc" ,ghc-pandoc-1)
13076 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc-with-pandoc-1)
13077 ("snakemake" ,snakemake)
13078 ("star" ,star)
13079 ("r-minimal" ,r-minimal)
13080 ("r-argparser" ,r-argparser)
13081 ("r-cowplot" ,r-cowplot)
13082 ("r-data-table" ,r-data-table)
13083 ("r-delayedarray" ,r-delayedarray)
13084 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
13085 ("r-dplyr" ,r-dplyr)
13086 ("r-dropbead" ,r-dropbead)
13087 ("r-dt" ,r-dt)
13088 ("r-genomicalignments" ,r-genomicalignments)
13089 ("r-genomicfiles" ,r-genomicfiles)
13090 ("r-genomicranges" ,r-genomicranges)
13091 ("r-ggplot2" ,r-ggplot2)
13092 ("r-hdf5array" ,r-hdf5array)
13093 ("r-pheatmap" ,r-pheatmap)
13094 ("r-rmarkdown" ,r-rmarkdown)
13095 ("r-rsamtools" ,r-rsamtools)
13096 ("r-rtracklayer" ,r-rtracklayer)
13097 ("r-rtsne" ,r-rtsne)
13098 ("r-scater" ,r-scater)
13099 ("r-scran" ,r-scran)
13100 ("r-singlecellexperiment" ,r-singlecellexperiment)
13101 ("r-stringr" ,r-stringr)
13102 ("r-yaml" ,r-yaml)))
13103 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
13104 (synopsis "Analysis pipeline for single-cell RNA sequencing experiments")
13105 (description "PiGX scRNAseq is an analysis pipeline for preprocessing and
13106 quality control for single cell RNA sequencing experiments. The inputs are
13107 read files from the sequencing experiment, and a configuration file which
13108 describes the experiment. It produces processed files for downstream analysis
13109 and interactive quality reports. The pipeline is designed to work with UMI
13110 based methods.")
13111 (license license:gpl3+)))
13112
13113 (define-public pigx
13114 (package
13115 (name "pigx")
13116 (version "0.0.2")
13117 (source (origin
13118 (method url-fetch)
13119 (uri (string-append "https://github.com/BIMSBbioinfo/pigx/"
13120 "releases/download/v" version
13121 "/pigx-" version ".tar.gz"))
13122 (sha256
13123 (base32
13124 "0sb708sl42h3s5z872jb1w70bbqplwapnsc1wm27zcsvi7li4gw8"))))
13125 (build-system gnu-build-system)
13126 (inputs
13127 `(("python" ,python)
13128 ("pigx-bsseq" ,pigx-bsseq)
13129 ("pigx-chipseq" ,pigx-chipseq)
13130 ("pigx-rnaseq" ,pigx-rnaseq)
13131 ("pigx-scrnaseq" ,pigx-scrnaseq)))
13132 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
13133 (synopsis "Analysis pipelines for genomics")
13134 (description "PiGx is a collection of genomics pipelines. It includes the
13135 following pipelines:
13136
13137 @itemize
13138 @item PiGx BSseq for raw fastq read data of bisulfite experiments
13139 @item PiGx RNAseq for RNAseq samples
13140 @item PiGx scRNAseq for single cell dropseq analysis
13141 @item PiGx ChIPseq for reads from ChIPseq experiments
13142 @end itemize
13143
13144 All pipelines are easily configured with a simple sample sheet and a
13145 descriptive settings file. The result is a set of comprehensive, interactive
13146 HTML reports with interesting findings about your samples.")
13147 (license license:gpl3+)))
13148
13149 (define-public r-diversitree
13150 (package
13151 (name "r-diversitree")
13152 (version "0.9-10")
13153 (source
13154 (origin
13155 (method url-fetch)
13156 (uri (cran-uri "diversitree" version))
13157 (sha256
13158 (base32
13159 "0gh4rcrp0an3jh8915i1fsxlgyfk7njywgbd5ln5r2jhr085kpz7"))))
13160 (build-system r-build-system)
13161 (native-inputs
13162 `(("gfortran" ,gfortran)))
13163 (inputs `(("fftw" ,fftw) ("gsl" ,gsl)))
13164 (propagated-inputs
13165 `(("r-ape" ,r-ape)
13166 ("r-desolve" ,r-desolve)
13167 ("r-rcpp" ,r-rcpp)
13168 ("r-suplex" ,r-subplex)))
13169 (home-page "https://www.zoology.ubc.ca/prog/diversitree")
13170 (synopsis "Comparative 'phylogenetic' analyses of diversification")
13171 (description "This package contains a number of comparative \"phylogenetic\"
13172 methods, mostly focusing on analysing diversification and character evolution.
13173 Contains implementations of \"BiSSE\" (Binary State Speciation and Extinction)
13174 and its unresolved tree extensions, \"MuSSE\" (Multiple State Speciation and
13175 Extinction), \"QuaSSE\", \"GeoSSE\", and \"BiSSE-ness\" Other included methods
13176 include Markov models of discrete and continuous trait evolution and constant
13177 rate speciation and extinction.")
13178 (license license:gpl2+)))