gnu: r-bsgenome-mmusculus-ucsc-mm10: Move to (gnu packages bioconductor).
[jackhill/guix/guix.git] / gnu / packages / bioinformatics.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 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, 2019 Efraim Flashner <efraim@flashner.co.il>
8 ;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
9 ;;; Copyright © 2016, 2018 Raoul Bonnal <ilpuccio.febo@gmail.com>
10 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
11 ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
12 ;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
13 ;;; Copyright © 2018 Gábor Boskovits <boskovits@gmail.com>
14 ;;; Copyright © 2018 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
15 ;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
16 ;;;
17 ;;; This file is part of GNU Guix.
18 ;;;
19 ;;; GNU Guix is free software; you can redistribute it and/or modify it
20 ;;; under the terms of the GNU General Public License as published by
21 ;;; the Free Software Foundation; either version 3 of the License, or (at
22 ;;; your option) any later version.
23 ;;;
24 ;;; GNU Guix is distributed in the hope that it will be useful, but
25 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
26 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 ;;; GNU General Public License for more details.
28 ;;;
29 ;;; You should have received a copy of the GNU General Public License
30 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
31
32 (define-module (gnu packages bioinformatics)
33 #:use-module ((guix licenses) #:prefix license:)
34 #:use-module (guix packages)
35 #:use-module (guix utils)
36 #:use-module (guix download)
37 #:use-module (guix git-download)
38 #:use-module (guix hg-download)
39 #:use-module (guix build-system ant)
40 #:use-module (guix build-system gnu)
41 #:use-module (guix build-system cmake)
42 #:use-module (guix build-system haskell)
43 #:use-module (guix build-system ocaml)
44 #:use-module (guix build-system perl)
45 #:use-module (guix build-system python)
46 #:use-module (guix build-system r)
47 #:use-module (guix build-system ruby)
48 #:use-module (guix build-system scons)
49 #:use-module (guix build-system trivial)
50 #:use-module (gnu packages)
51 #:use-module (gnu packages autotools)
52 #:use-module (gnu packages algebra)
53 #:use-module (gnu packages base)
54 #:use-module (gnu packages bash)
55 #:use-module (gnu packages bison)
56 #:use-module (gnu packages bioconductor)
57 #:use-module (gnu packages boost)
58 #:use-module (gnu packages check)
59 #:use-module (gnu packages compression)
60 #:use-module (gnu packages cpio)
61 #:use-module (gnu packages cran)
62 #:use-module (gnu packages curl)
63 #:use-module (gnu packages documentation)
64 #:use-module (gnu packages databases)
65 #:use-module (gnu packages datastructures)
66 #:use-module (gnu packages file)
67 #:use-module (gnu packages flex)
68 #:use-module (gnu packages gawk)
69 #:use-module (gnu packages gcc)
70 #:use-module (gnu packages gd)
71 #:use-module (gnu packages gtk)
72 #:use-module (gnu packages glib)
73 #:use-module (gnu packages graph)
74 #:use-module (gnu packages groff)
75 #:use-module (gnu packages guile)
76 #:use-module (gnu packages guile-xyz)
77 #:use-module (gnu packages haskell)
78 #:use-module (gnu packages haskell-check)
79 #:use-module (gnu packages haskell-web)
80 #:use-module (gnu packages image)
81 #:use-module (gnu packages imagemagick)
82 #:use-module (gnu packages java)
83 #:use-module (gnu packages java-compression)
84 #:use-module (gnu packages jemalloc)
85 #:use-module (gnu packages dlang)
86 #:use-module (gnu packages linux)
87 #:use-module (gnu packages lisp)
88 #:use-module (gnu packages logging)
89 #:use-module (gnu packages machine-learning)
90 #:use-module (gnu packages man)
91 #:use-module (gnu packages maths)
92 #:use-module (gnu packages mpi)
93 #:use-module (gnu packages ncurses)
94 #:use-module (gnu packages ocaml)
95 #:use-module (gnu packages pcre)
96 #:use-module (gnu packages parallel)
97 #:use-module (gnu packages pdf)
98 #:use-module (gnu packages perl)
99 #:use-module (gnu packages perl-check)
100 #:use-module (gnu packages pkg-config)
101 #:use-module (gnu packages popt)
102 #:use-module (gnu packages protobuf)
103 #:use-module (gnu packages python)
104 #:use-module (gnu packages python-compression)
105 #:use-module (gnu packages python-web)
106 #:use-module (gnu packages python-xyz)
107 #:use-module (gnu packages readline)
108 #:use-module (gnu packages ruby)
109 #:use-module (gnu packages serialization)
110 #:use-module (gnu packages shells)
111 #:use-module (gnu packages statistics)
112 #:use-module (gnu packages swig)
113 #:use-module (gnu packages tbb)
114 #:use-module (gnu packages tex)
115 #:use-module (gnu packages texinfo)
116 #:use-module (gnu packages textutils)
117 #:use-module (gnu packages time)
118 #:use-module (gnu packages tls)
119 #:use-module (gnu packages vim)
120 #:use-module (gnu packages web)
121 #:use-module (gnu packages xml)
122 #:use-module (gnu packages xorg)
123 #:use-module (srfi srfi-1)
124 #:use-module (ice-9 match))
125
126 (define-public aragorn
127 (package
128 (name "aragorn")
129 (version "1.2.38")
130 (source (origin
131 (method url-fetch)
132 (uri (string-append
133 "http://mbio-serv2.mbioekol.lu.se/ARAGORN/Downloads/aragorn"
134 version ".tgz"))
135 (sha256
136 (base32
137 "09i1rg716smlbnixfm7q1ml2mfpaa2fpn3hwjg625ysmfwwy712b"))))
138 (build-system gnu-build-system)
139 (arguments
140 `(#:tests? #f ; there are no tests
141 #:phases
142 (modify-phases %standard-phases
143 (delete 'configure)
144 (replace 'build
145 (lambda _
146 (invoke "gcc"
147 "-O3"
148 "-ffast-math"
149 "-finline-functions"
150 "-o"
151 "aragorn"
152 (string-append "aragorn" ,version ".c"))
153 #t))
154 (replace 'install
155 (lambda* (#:key outputs #:allow-other-keys)
156 (let* ((out (assoc-ref outputs "out"))
157 (bin (string-append out "/bin"))
158 (man (string-append out "/share/man/man1")))
159 (install-file "aragorn" bin)
160 (install-file "aragorn.1" man))
161 #t)))))
162 (home-page "http://mbio-serv2.mbioekol.lu.se/ARAGORN")
163 (synopsis "Detect tRNA, mtRNA and tmRNA genes in nucleotide sequences")
164 (description
165 "Aragorn identifies transfer RNA, mitochondrial RNA and
166 transfer-messenger RNA from nucleotide sequences, based on homology to known
167 tRNA consensus sequences and RNA structure. It also outputs the secondary
168 structure of the predicted RNA.")
169 (license license:gpl2)))
170
171 (define-public bamm
172 (package
173 (name "bamm")
174 (version "1.7.3")
175 (source (origin
176 (method git-fetch)
177 ;; BamM is not available on pypi.
178 (uri (git-reference
179 (url "https://github.com/Ecogenomics/BamM.git")
180 (commit version)
181 (recursive? #t)))
182 (file-name (git-file-name name version))
183 (sha256
184 (base32
185 "1p83ahi984ipslxlg4yqy1gdnya9rkn1v71z8djgxkm9d2chw4c5"))
186 (modules '((guix build utils)))
187 (snippet
188 `(begin
189 ;; Delete bundled htslib.
190 (delete-file-recursively "c/htslib-1.3.1")
191 #t))))
192 (build-system python-build-system)
193 (arguments
194 `(#:python ,python-2 ; BamM is Python 2 only.
195 ;; Do not use bundled libhts. Do use the bundled libcfu because it has
196 ;; been modified from its original form.
197 #:configure-flags
198 (let ((htslib (assoc-ref %build-inputs "htslib")))
199 (list "--with-libhts-lib" (string-append htslib "/lib")
200 "--with-libhts-inc" (string-append htslib "/include/htslib")))
201 #:phases
202 (modify-phases %standard-phases
203 (add-after 'unpack 'autogen
204 (lambda _
205 (with-directory-excursion "c"
206 (let ((sh (which "sh")))
207 (for-each make-file-writable (find-files "." ".*"))
208 ;; Use autogen so that 'configure' works.
209 (substitute* "autogen.sh" (("/bin/sh") sh))
210 (setenv "CONFIG_SHELL" sh)
211 (invoke "./autogen.sh")))
212 #t))
213 (delete 'build)
214 ;; Run tests after installation so compilation only happens once.
215 (delete 'check)
216 (add-after 'install 'wrap-executable
217 (lambda* (#:key outputs #:allow-other-keys)
218 (let* ((out (assoc-ref outputs "out"))
219 (path (getenv "PATH")))
220 (wrap-program (string-append out "/bin/bamm")
221 `("PATH" ":" prefix (,path))))
222 #t))
223 (add-after 'wrap-executable 'post-install-check
224 (lambda* (#:key inputs outputs #:allow-other-keys)
225 (setenv "PATH"
226 (string-append (assoc-ref outputs "out")
227 "/bin:"
228 (getenv "PATH")))
229 (setenv "PYTHONPATH"
230 (string-append
231 (assoc-ref outputs "out")
232 "/lib/python"
233 (string-take (string-take-right
234 (assoc-ref inputs "python") 5) 3)
235 "/site-packages:"
236 (getenv "PYTHONPATH")))
237 ;; There are 2 errors printed, but they are safe to ignore:
238 ;; 1) [E::hts_open_format] fail to open file ...
239 ;; 2) samtools view: failed to open ...
240 (invoke "nosetests")
241 #t)))))
242 (native-inputs
243 `(("autoconf" ,autoconf)
244 ("automake" ,automake)
245 ("libtool" ,libtool)
246 ("zlib" ,zlib)
247 ("python-nose" ,python2-nose)
248 ("python-pysam" ,python2-pysam)))
249 (inputs
250 `(("htslib" ,htslib-1.3) ; At least one test fails on htslib-1.4+.
251 ("samtools" ,samtools)
252 ("bwa" ,bwa)
253 ("grep" ,grep)
254 ("sed" ,sed)
255 ("coreutils" ,coreutils)))
256 (propagated-inputs
257 `(("python-numpy" ,python2-numpy)))
258 (home-page "http://ecogenomics.github.io/BamM/")
259 (synopsis "Metagenomics-focused BAM file manipulator")
260 (description
261 "BamM is a C library, wrapped in python, to efficiently generate and
262 parse BAM files, specifically for the analysis of metagenomic data. For
263 instance, it implements several methods to assess contig-wise read coverage.")
264 (license license:lgpl3+)))
265
266 (define-public bamtools
267 (package
268 (name "bamtools")
269 (version "2.5.1")
270 (source (origin
271 (method git-fetch)
272 (uri (git-reference
273 (url "https://github.com/pezmaster31/bamtools.git")
274 (commit (string-append "v" version))))
275 (file-name (git-file-name name version))
276 (sha256
277 (base32
278 "0nfb2ypcx9959xnbz6wxh6py3xfizgmg8nrknxl95c507m9hmq8b"))))
279 (build-system cmake-build-system)
280 (arguments
281 `(#:tests? #f ;no "check" target
282 #:phases
283 (modify-phases %standard-phases
284 (add-before
285 'configure 'set-ldflags
286 (lambda* (#:key outputs #:allow-other-keys)
287 (setenv "LDFLAGS"
288 (string-append
289 "-Wl,-rpath="
290 (assoc-ref outputs "out") "/lib/bamtools"))
291 #t)))))
292 (inputs `(("zlib" ,zlib)))
293 (home-page "https://github.com/pezmaster31/bamtools")
294 (synopsis "C++ API and command-line toolkit for working with BAM data")
295 (description
296 "BamTools provides both a C++ API and a command-line toolkit for handling
297 BAM files.")
298 (license license:expat)))
299
300 (define-public bcftools
301 (package
302 (name "bcftools")
303 (version "1.9")
304 (source (origin
305 (method url-fetch)
306 (uri (string-append "https://github.com/samtools/bcftools/"
307 "releases/download/"
308 version "/bcftools-" version ".tar.bz2"))
309 (sha256
310 (base32
311 "1j3h638i8kgihzyrlnpj82xg1b23sijibys9hvwari3fy7kd0dkg"))
312 (modules '((guix build utils)))
313 (snippet '(begin
314 ;; Delete bundled htslib.
315 (delete-file-recursively "htslib-1.9")
316 #t))))
317 (build-system gnu-build-system)
318 (arguments
319 `(#:configure-flags
320 (list "--enable-libgsl")
321 #:test-target "test"
322 #:phases
323 (modify-phases %standard-phases
324 (add-before 'check 'patch-tests
325 (lambda _
326 (substitute* "test/test.pl"
327 (("/bin/bash") (which "bash")))
328 #t)))))
329 (native-inputs
330 `(("htslib" ,htslib)
331 ("perl" ,perl)))
332 (inputs
333 `(("gsl" ,gsl)
334 ("zlib" ,zlib)))
335 (home-page "https://samtools.github.io/bcftools/")
336 (synopsis "Utilities for variant calling and manipulating VCFs and BCFs")
337 (description
338 "BCFtools is a set of utilities that manipulate variant calls in the
339 Variant Call Format (VCF) and its binary counterpart BCF. All commands work
340 transparently with both VCFs and BCFs, both uncompressed and BGZF-compressed.")
341 ;; The sources are dual MIT/GPL, but becomes GPL-only when USE_GPL=1.
342 (license (list license:gpl3+ license:expat))))
343
344 (define-public bedops
345 (package
346 (name "bedops")
347 (version "2.4.35")
348 (source (origin
349 (method git-fetch)
350 (uri (git-reference
351 (url "https://github.com/bedops/bedops.git")
352 (commit (string-append "v" version))))
353 (file-name (git-file-name name version))
354 (sha256
355 (base32
356 "0mmgsgwz5r9w76hzgxkxc9s9lkdhhaf7vr6i02b09vbswvs1fyqx"))))
357 (build-system gnu-build-system)
358 (arguments
359 '(#:tests? #f
360 #:make-flags (list (string-append "BINDIR=" %output "/bin"))
361 #:phases
362 (modify-phases %standard-phases
363 (add-after 'unpack 'unpack-tarballs
364 (lambda _
365 ;; FIXME: Bedops includes tarballs of minimally patched upstream
366 ;; libraries jansson, zlib, and bzip2. We cannot just use stock
367 ;; libraries because at least one of the libraries (zlib) is
368 ;; patched to add a C++ function definition (deflateInit2cpp).
369 ;; Until the Bedops developers offer a way to link against system
370 ;; libraries we have to build the in-tree copies of these three
371 ;; libraries.
372
373 ;; See upstream discussion:
374 ;; https://github.com/bedops/bedops/issues/124
375
376 ;; Unpack the tarballs to benefit from shebang patching.
377 (with-directory-excursion "third-party"
378 (invoke "tar" "xvf" "jansson-2.6.tar.bz2")
379 (invoke "tar" "xvf" "zlib-1.2.7.tar.bz2")
380 (invoke "tar" "xvf" "bzip2-1.0.6.tar.bz2"))
381 ;; Disable unpacking of tarballs in Makefile.
382 (substitute* "system.mk/Makefile.linux"
383 (("^\tbzcat .*") "\t@echo \"not unpacking\"\n")
384 (("\\./configure") "CONFIG_SHELL=bash ./configure"))
385 (substitute* "third-party/zlib-1.2.7/Makefile.in"
386 (("^SHELL=.*$") "SHELL=bash\n"))
387 #t))
388 (delete 'configure))))
389 (home-page "https://github.com/bedops/bedops")
390 (synopsis "Tools for high-performance genomic feature operations")
391 (description
392 "BEDOPS is a suite of tools to address common questions raised in genomic
393 studies---mostly with regard to overlap and proximity relationships between
394 data sets. It aims to be scalable and flexible, facilitating the efficient
395 and accurate analysis and management of large-scale genomic data.
396
397 BEDOPS provides tools that perform highly efficient and scalable Boolean and
398 other set operations, statistical calculations, archiving, conversion and
399 other management of genomic data of arbitrary scale. Tasks can be easily
400 split by chromosome for distributing whole-genome analyses across a
401 computational cluster.")
402 (license license:gpl2+)))
403
404 (define-public bedtools
405 (package
406 (name "bedtools")
407 (version "2.27.1")
408 (source (origin
409 (method url-fetch)
410 (uri (string-append "https://github.com/arq5x/bedtools2/releases/"
411 "download/v" version "/"
412 "bedtools-" version ".tar.gz"))
413 (sha256
414 (base32
415 "1ndg5yknrxl4djx8ddzgk12rrbiidfpmkkg5z3f95jzryfxarhn8"))))
416 (build-system gnu-build-system)
417 (arguments
418 '(#:test-target "test"
419 #:make-flags
420 (list (string-append "prefix=" (assoc-ref %outputs "out")))
421 #:phases
422 (modify-phases %standard-phases
423 (delete 'configure))))
424 (native-inputs `(("python" ,python-2)))
425 (inputs
426 `(("samtools" ,samtools)
427 ("zlib" ,zlib)))
428 (home-page "https://github.com/arq5x/bedtools2")
429 (synopsis "Tools for genome analysis and arithmetic")
430 (description
431 "Collectively, the bedtools utilities are a swiss-army knife of tools for
432 a wide-range of genomics analysis tasks. The most widely-used tools enable
433 genome arithmetic: that is, set theory on the genome. For example, bedtools
434 allows one to intersect, merge, count, complement, and shuffle genomic
435 intervals from multiple files in widely-used genomic file formats such as BAM,
436 BED, GFF/GTF, VCF.")
437 (license license:gpl2)))
438
439 ;; Later releases of bedtools produce files with more columns than
440 ;; what Ribotaper expects.
441 (define-public bedtools-2.18
442 (package (inherit bedtools)
443 (name "bedtools")
444 (version "2.18.0")
445 (source (origin
446 (method url-fetch)
447 (uri (string-append "https://github.com/arq5x/bedtools2/"
448 "releases/download/v" version
449 "/bedtools-" version ".tar.gz"))
450 (sha256
451 (base32
452 "11rvca19ncg03kxd0wzlfx5ws7r3nisd0z8s9j9n182d8ksp2pxz"))))
453 (arguments
454 '(#:test-target "test"
455 #:phases
456 (modify-phases %standard-phases
457 (delete 'configure)
458 (replace 'install
459 (lambda* (#:key outputs #:allow-other-keys)
460 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
461 (for-each (lambda (file)
462 (install-file file bin))
463 (find-files "bin" ".*")))
464 #t)))))))
465
466 ;; Needed for pybedtools.
467 (define-public bedtools-2.26
468 (package (inherit bedtools)
469 (name "bedtools")
470 (version "2.26.0")
471 (source (origin
472 (method url-fetch)
473 (uri (string-append "https://github.com/arq5x/bedtools2/releases/"
474 "download/v" version "/"
475 "bedtools-" version ".tar.gz"))
476 (sha256
477 (base32
478 "0jhavwifnf7lmkb11h9y7dynr8d699h0rd2l52j1pfgircr2zwv5"))))))
479
480 (define-public ribotaper
481 (package
482 (name "ribotaper")
483 (version "1.3.1")
484 (source (origin
485 (method url-fetch)
486 (uri (string-append "https://ohlerlab.mdc-berlin.de/"
487 "files/RiboTaper/RiboTaper_Version_"
488 version ".tar.gz"))
489 (sha256
490 (base32
491 "0ykjbps1y3z3085q94npw8i9x5gldc6shy8vlc08v76zljsm07hv"))))
492 (build-system gnu-build-system)
493 (arguments
494 `(#:phases
495 (modify-phases %standard-phases
496 (add-after 'install 'wrap-executables
497 (lambda* (#:key inputs outputs #:allow-other-keys)
498 (let* ((out (assoc-ref outputs "out")))
499 (for-each
500 (lambda (script)
501 (wrap-program (string-append out "/bin/" script)
502 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
503 '("create_annotations_files.bash"
504 "create_metaplots.bash"
505 "Ribotaper_ORF_find.sh"
506 "Ribotaper.sh")))
507 #t)))))
508 (inputs
509 `(("bedtools" ,bedtools-2.18)
510 ("samtools" ,samtools-0.1)
511 ("r-minimal" ,r-minimal)
512 ("r-foreach" ,r-foreach)
513 ("r-xnomial" ,r-xnomial)
514 ("r-domc" ,r-domc)
515 ("r-multitaper" ,r-multitaper)
516 ("r-seqinr" ,r-seqinr)))
517 (home-page "https://ohlerlab.mdc-berlin.de/software/RiboTaper_126/")
518 (synopsis "Define translated ORFs using ribosome profiling data")
519 (description
520 "Ribotaper is a method for defining translated @dfn{open reading
521 frames} (ORFs) using ribosome profiling (ribo-seq) data. This package
522 provides the Ribotaper pipeline.")
523 (license license:gpl3+)))
524
525 (define-public ribodiff
526 (package
527 (name "ribodiff")
528 (version "0.2.2")
529 (source
530 (origin
531 (method git-fetch)
532 (uri (git-reference
533 (url "https://github.com/ratschlab/RiboDiff.git")
534 (commit (string-append "v" version))))
535 (file-name (git-file-name name version))
536 (sha256
537 (base32
538 "0x75nlp7qnmm64jasbi6l21f2cy99r2cjyl6b4hr8zf2bq22drnz"))))
539 (build-system python-build-system)
540 (arguments
541 `(#:python ,python-2
542 #:phases
543 (modify-phases %standard-phases
544 ;; Generate an installable executable script wrapper.
545 (add-after 'unpack 'patch-setup.py
546 (lambda _
547 (substitute* "setup.py"
548 (("^(.*)packages=.*" line prefix)
549 (string-append line "\n"
550 prefix "scripts=['scripts/TE.py'],\n")))
551 #t)))))
552 (inputs
553 `(("python-numpy" ,python2-numpy)
554 ("python-matplotlib" ,python2-matplotlib)
555 ("python-scipy" ,python2-scipy)
556 ("python-statsmodels" ,python2-statsmodels)))
557 (native-inputs
558 `(("python-mock" ,python2-mock)
559 ("python-nose" ,python2-nose)))
560 (home-page "http://public.bmi.inf.ethz.ch/user/zhongy/RiboDiff/")
561 (synopsis "Detect translation efficiency changes from ribosome footprints")
562 (description "RiboDiff is a statistical tool that detects the protein
563 translational efficiency change from Ribo-Seq (ribosome footprinting) and
564 RNA-Seq data. It uses a generalized linear model to detect genes showing
565 difference in translational profile taking mRNA abundance into account. It
566 facilitates us to decipher the translational regulation that behave
567 independently with transcriptional regulation.")
568 (license license:gpl3+)))
569
570 (define-public bioawk
571 (package
572 (name "bioawk")
573 (version "1.0")
574 (source (origin
575 (method git-fetch)
576 (uri (git-reference
577 (url "https://github.com/lh3/bioawk.git")
578 (commit (string-append "v" version))))
579 (file-name (git-file-name name version))
580 (sha256
581 (base32
582 "1pxc3zdnirxbf9a0az698hd8xdik7qkhypm7v6hn922x8y9qmspm"))))
583 (build-system gnu-build-system)
584 (inputs
585 `(("zlib" ,zlib)))
586 (native-inputs
587 `(("bison" ,bison)))
588 (arguments
589 `(#:tests? #f ; There are no tests to run.
590 ;; Bison must generate files, before other targets can build.
591 #:parallel-build? #f
592 #:phases
593 (modify-phases %standard-phases
594 (delete 'configure) ; There is no configure phase.
595 (replace 'install
596 (lambda* (#:key outputs #:allow-other-keys)
597 (let* ((out (assoc-ref outputs "out"))
598 (bin (string-append out "/bin"))
599 (man (string-append out "/share/man/man1")))
600 (mkdir-p man)
601 (copy-file "awk.1" (string-append man "/bioawk.1"))
602 (install-file "bioawk" bin))
603 #t)))))
604 (home-page "https://github.com/lh3/bioawk")
605 (synopsis "AWK with bioinformatics extensions")
606 (description "Bioawk is an extension to Brian Kernighan's awk, adding the
607 support of several common biological data formats, including optionally gzip'ed
608 BED, GFF, SAM, VCF, FASTA/Q and TAB-delimited formats with column names. It
609 also adds a few built-in functions and a command line option to use TAB as the
610 input/output delimiter. When the new functionality is not used, bioawk is
611 intended to behave exactly the same as the original BWK awk.")
612 (license license:x11)))
613
614 (define-public python-pybedtools
615 (package
616 (name "python-pybedtools")
617 (version "0.8.0")
618 (source (origin
619 (method url-fetch)
620 (uri (pypi-uri "pybedtools" version))
621 (sha256
622 (base32
623 "1xl454ijvd4dzfvqgfahad49b49j7qy710fq9xh1rvk42z6x5ssf"))))
624 (build-system python-build-system)
625 (arguments
626 `(#:modules ((ice-9 ftw)
627 (srfi srfi-1)
628 (srfi srfi-26)
629 (guix build utils)
630 (guix build python-build-system))
631 ;; See https://github.com/daler/pybedtools/issues/192
632 #:phases
633 (modify-phases %standard-phases
634 ;; See https://github.com/daler/pybedtools/issues/261
635 (add-after 'unpack 'disable-broken-tests
636 (lambda _
637 ;; This test (pybedtools.test.test_scripts.test_venn_mpl) needs a
638 ;; graphical environment.
639 (substitute* "pybedtools/test/test_scripts.py"
640 (("def test_venn_mpl")
641 "def _do_not_test_venn_mpl"))
642 (substitute* "pybedtools/test/test_helpers.py"
643 ;; Requires internet access.
644 (("def test_chromsizes")
645 "def _do_not_test_chromsizes")
646 ;; Broken as a result of the workaround used in the check phase
647 ;; (see: https://github.com/daler/pybedtools/issues/192).
648 (("def test_getting_example_beds")
649 "def _do_not_test_getting_example_beds"))
650 #t))
651 ;; TODO: Remove phase after it's part of PYTHON-BUILD-SYSTEM.
652 ;; build system.
653 ;; Force the Cythonization of C++ files to guard against compilation
654 ;; problems.
655 (add-after 'unpack 'remove-cython-generated-files
656 (lambda _
657 (let ((cython-sources (map (cut string-drop-right <> 4)
658 (find-files "." "\\.pyx$")))
659 (c/c++-files (find-files "." "\\.(c|cpp|cxx)$")))
660 (define (strip-extension filename)
661 (string-take filename (string-index-right filename #\.)))
662 (define (cythonized? c/c++-file)
663 (member (strip-extension c/c++-file) cython-sources))
664 (for-each delete-file (filter cythonized? c/c++-files))
665 #t)))
666 (add-after 'remove-cython-generated-files 'generate-cython-extensions
667 (lambda _
668 (invoke "python" "setup.py" "cythonize")))
669 (replace 'check
670 (lambda _
671 (let* ((cwd (getcwd))
672 (build-root-directory (string-append cwd "/build/"))
673 (build (string-append
674 build-root-directory
675 (find (cut string-prefix? "lib" <>)
676 (scandir (string-append
677 build-root-directory)))))
678 (scripts (string-append
679 build-root-directory
680 (find (cut string-prefix? "scripts" <>)
681 (scandir build-root-directory)))))
682 (setenv "PYTHONPATH"
683 (string-append build ":" (getenv "PYTHONPATH")))
684 ;; Executable scripts such as 'intron_exon_reads.py' must be
685 ;; available in the PATH.
686 (setenv "PATH"
687 (string-append scripts ":" (getenv "PATH"))))
688 ;; The tests need to be run from elsewhere...
689 (mkdir-p "/tmp/test")
690 (copy-recursively "pybedtools/test" "/tmp/test")
691 (with-directory-excursion "/tmp/test"
692 (invoke "pytest")))))))
693 (propagated-inputs
694 `(("bedtools" ,bedtools)
695 ("samtools" ,samtools)
696 ("python-matplotlib" ,python-matplotlib)
697 ("python-pysam" ,python-pysam)
698 ("python-pyyaml" ,python-pyyaml)))
699 (native-inputs
700 `(("python-numpy" ,python-numpy)
701 ("python-pandas" ,python-pandas)
702 ("python-cython" ,python-cython)
703 ("kentutils" ,kentutils) ; for bedGraphToBigWig
704 ("python-six" ,python-six)
705 ;; For the test suite.
706 ("python-pytest" ,python-pytest)
707 ("python-psutil" ,python-psutil)))
708 (home-page "https://pythonhosted.org/pybedtools/")
709 (synopsis "Python wrapper for BEDtools programs")
710 (description
711 "pybedtools is a Python wrapper for Aaron Quinlan's BEDtools programs,
712 which are widely used for genomic interval manipulation or \"genome algebra\".
713 pybedtools extends BEDTools by offering feature-level manipulations from with
714 Python.")
715 (license license:gpl2+)))
716
717 (define-public python2-pybedtools
718 (package-with-python2 python-pybedtools))
719
720 (define-public python-biom-format
721 (package
722 (name "python-biom-format")
723 (version "2.1.7")
724 (source
725 (origin
726 (method git-fetch)
727 ;; Use GitHub as source because PyPI distribution does not contain
728 ;; test data: https://github.com/biocore/biom-format/issues/693
729 (uri (git-reference
730 (url "https://github.com/biocore/biom-format.git")
731 (commit version)))
732 (file-name (git-file-name name version))
733 (sha256
734 (base32
735 "1rna16lyk5aqhnv0dp77wwaplias93f1vw28ad3jmyw6hwkai05v"))))
736 (build-system python-build-system)
737 (arguments
738 `(#:phases
739 (modify-phases %standard-phases
740 (add-after 'unpack 'use-cython
741 (lambda _ (setenv "USE_CYTHON" "1") #t))
742 (add-after 'unpack 'disable-broken-test
743 (lambda _
744 (substitute* "biom/tests/test_cli/test_validate_table.py"
745 (("^(.+)def test_invalid_hdf5" m indent)
746 (string-append indent
747 "@npt.dec.skipif(True, msg='Guix')\n"
748 m)))
749 #t))
750 (add-before 'reset-gzip-timestamps 'make-files-writable
751 (lambda* (#:key outputs #:allow-other-keys)
752 (let ((out (assoc-ref outputs "out")))
753 (for-each (lambda (file) (chmod file #o644))
754 (find-files out "\\.gz"))
755 #t))))))
756 (propagated-inputs
757 `(("python-numpy" ,python-numpy)
758 ("python-scipy" ,python-scipy)
759 ("python-flake8" ,python-flake8)
760 ("python-future" ,python-future)
761 ("python-click" ,python-click)
762 ("python-h5py" ,python-h5py)
763 ("python-pandas" ,python-pandas)))
764 (native-inputs
765 `(("python-cython" ,python-cython)
766 ("python-pytest" ,python-pytest)
767 ("python-pytest-cov" ,python-pytest-cov)
768 ("python-nose" ,python-nose)))
769 (home-page "http://www.biom-format.org")
770 (synopsis "Biological Observation Matrix (BIOM) format utilities")
771 (description
772 "The BIOM file format is designed to be a general-use format for
773 representing counts of observations e.g. operational taxonomic units, KEGG
774 orthology groups or lipid types, in one or more biological samples
775 e.g. microbiome samples, genomes, metagenomes.")
776 (license license:bsd-3)
777 (properties `((python2-variant . ,(delay python2-biom-format))))))
778
779 (define-public python2-biom-format
780 (let ((base (package-with-python2 (strip-python2-variant python-biom-format))))
781 (package
782 (inherit base)
783 (arguments
784 (substitute-keyword-arguments (package-arguments base)
785 ((#:phases phases)
786 `(modify-phases ,phases
787 ;; Do not require the unmaintained pyqi library.
788 (add-after 'unpack 'remove-pyqi
789 (lambda _
790 (substitute* "setup.py"
791 (("install_requires.append\\(\"pyqi\"\\)") "pass"))
792 #t)))))))))
793
794 (define-public bioperl-minimal
795 (let* ((inputs `(("perl-module-build" ,perl-module-build)
796 ("perl-data-stag" ,perl-data-stag)
797 ("perl-libwww" ,perl-libwww)
798 ("perl-uri" ,perl-uri)))
799 (transitive-inputs
800 (map (compose package-name cadr)
801 (delete-duplicates
802 (concatenate
803 (map (compose package-transitive-target-inputs cadr) inputs))))))
804 (package
805 (name "bioperl-minimal")
806 (version "1.7.0")
807 (source
808 (origin
809 (method url-fetch)
810 (uri (string-append "https://github.com/bioperl/bioperl-live/"
811 "archive/release-"
812 (string-map (lambda (c)
813 (if (char=? c #\.)
814 #\- c)) version)
815 ".tar.gz"))
816 (sha256
817 (base32
818 "12phgpxwgkqflkwfb9dcqg7a31dpjlfhar8wcgv0aj5ln4akfz06"))))
819 (build-system perl-build-system)
820 (arguments
821 `(#:phases
822 (modify-phases %standard-phases
823 (add-after
824 'install 'wrap-programs
825 (lambda* (#:key outputs #:allow-other-keys)
826 ;; Make sure all executables in "bin" find the required Perl
827 ;; modules at runtime. As the PERL5LIB variable contains also
828 ;; the paths of native inputs, we pick the transitive target
829 ;; inputs from %build-inputs.
830 (let* ((out (assoc-ref outputs "out"))
831 (bin (string-append out "/bin/"))
832 (path (string-join
833 (cons (string-append out "/lib/perl5/site_perl")
834 (map (lambda (name)
835 (assoc-ref %build-inputs name))
836 ',transitive-inputs))
837 ":")))
838 (for-each (lambda (file)
839 (wrap-program file
840 `("PERL5LIB" ":" prefix (,path))))
841 (find-files bin "\\.pl$"))
842 #t))))))
843 (inputs inputs)
844 (native-inputs
845 `(("perl-test-most" ,perl-test-most)))
846 (home-page "https://metacpan.org/release/BioPerl")
847 (synopsis "Bioinformatics toolkit")
848 (description
849 "BioPerl is the product of a community effort to produce Perl code which
850 is useful in biology. Examples include Sequence objects, Alignment objects
851 and database searching objects. These objects not only do what they are
852 advertised to do in the documentation, but they also interact - Alignment
853 objects are made from the Sequence objects, Sequence objects have access to
854 Annotation and SeqFeature objects and databases, Blast objects can be
855 converted to Alignment objects, and so on. This means that the objects
856 provide a coordinated and extensible framework to do computational biology.")
857 (license license:perl-license))))
858
859 (define-public python-biopython
860 (package
861 (name "python-biopython")
862 (version "1.70")
863 (source (origin
864 (method url-fetch)
865 ;; use PyPi rather than biopython.org to ease updating
866 (uri (pypi-uri "biopython" version))
867 (sha256
868 (base32
869 "0nz4n9d2y2dg849gn1z0vjlkwcpzzkzy3fij7x94a6ixy2c54z2a"))))
870 (build-system python-build-system)
871 (arguments
872 `(#:phases
873 (modify-phases %standard-phases
874 (add-before 'check 'set-home
875 ;; Some tests require a home directory to be set.
876 (lambda _ (setenv "HOME" "/tmp") #t)))))
877 (propagated-inputs
878 `(("python-numpy" ,python-numpy)))
879 (home-page "http://biopython.org/")
880 (synopsis "Tools for biological computation in Python")
881 (description
882 "Biopython is a set of tools for biological computation including parsers
883 for bioinformatics files into Python data structures; interfaces to common
884 bioinformatics programs; a standard sequence class and tools for performing
885 common operations on them; code to perform data classification; code for
886 dealing with alignments; code making it easy to split up parallelizable tasks
887 into separate processes; and more.")
888 (license (license:non-copyleft "http://www.biopython.org/DIST/LICENSE"))))
889
890 (define-public python2-biopython
891 (package-with-python2 python-biopython))
892
893 (define-public python-fastalite
894 (package
895 (name "python-fastalite")
896 (version "0.3")
897 (source
898 (origin
899 (method url-fetch)
900 (uri (pypi-uri "fastalite" version))
901 (sha256
902 (base32
903 "1qli6pxp77i9xn2wfciq2zaxhl82bdxb33cpzqzj1z25yd036wqj"))))
904 (build-system python-build-system)
905 (arguments
906 `(#:tests? #f)) ; Test data is not distributed.
907 (home-page "https://github.com/nhoffman/fastalite")
908 (synopsis "Simplest possible FASTA parser")
909 (description "This library implements a FASTA and a FASTQ parser without
910 relying on a complex dependency tree.")
911 (license license:expat)))
912
913 (define-public python2-fastalite
914 (package-with-python2 python-fastalite))
915
916 (define-public bpp-core
917 ;; The last release was in 2014 and the recommended way to install from source
918 ;; is to clone the git repository, so we do this.
919 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
920 (let ((commit "7d8bced0d1a87291ea8dd7046b7fb5ff9c35c582"))
921 (package
922 (name "bpp-core")
923 (version (string-append "2.2.0-1." (string-take commit 7)))
924 (source (origin
925 (method git-fetch)
926 (uri (git-reference
927 (url "http://biopp.univ-montp2.fr/git/bpp-core")
928 (commit commit)))
929 (file-name (string-append name "-" version "-checkout"))
930 (sha256
931 (base32
932 "10djsq5vlnkilv436gnmh4irpk49v29pa69r6xiryg32xmvn909j"))))
933 (build-system cmake-build-system)
934 (arguments
935 `(#:parallel-build? #f))
936 (inputs
937 `(("gcc" ,gcc-5))) ; Compilation of bpp-phyl fails with GCC 4.9 so we
938 ; compile all of the bpp packages with GCC 5.
939 (home-page "http://biopp.univ-montp2.fr")
940 (synopsis "C++ libraries for Bioinformatics")
941 (description
942 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
943 analysis, phylogenetics, molecular evolution and population genetics. It is
944 Object Oriented and is designed to be both easy to use and computer efficient.
945 Bio++ intends to help programmers to write computer expensive programs, by
946 providing them a set of re-usable tools.")
947 (license license:cecill-c))))
948
949 (define-public bpp-phyl
950 ;; The last release was in 2014 and the recommended way to install from source
951 ;; is to clone the git repository, so we do this.
952 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
953 (let ((commit "0c07167b629f68b569bf274d1ad0c4af83276ae2"))
954 (package
955 (name "bpp-phyl")
956 (version (string-append "2.2.0-1." (string-take commit 7)))
957 (source (origin
958 (method git-fetch)
959 (uri (git-reference
960 (url "http://biopp.univ-montp2.fr/git/bpp-phyl")
961 (commit commit)))
962 (file-name (string-append name "-" version "-checkout"))
963 (sha256
964 (base32
965 "1ssjgchzwj3iai26kyly7gwkdv8sk59nqhkb1wpap3sf5m6kyllh"))))
966 (build-system cmake-build-system)
967 (arguments
968 `(#:parallel-build? #f
969 ;; If out-of-source, test data is not copied into the build directory
970 ;; so the tests fail.
971 #:out-of-source? #f))
972 (inputs
973 `(("bpp-core" ,bpp-core)
974 ("bpp-seq" ,bpp-seq)
975 ;; GCC 4.8 fails due to an 'internal compiler error', so we use a more
976 ;; modern GCC.
977 ("gcc" ,gcc-5)))
978 (home-page "http://biopp.univ-montp2.fr")
979 (synopsis "Bio++ phylogenetic Library")
980 (description
981 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
982 analysis, phylogenetics, molecular evolution and population genetics. This
983 library provides phylogenetics-related modules.")
984 (license license:cecill-c))))
985
986 (define-public bpp-popgen
987 ;; The last release was in 2014 and the recommended way to install from source
988 ;; is to clone the git repository, so we do this.
989 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
990 (let ((commit "e472bac9b1a148803895d747cd6d0c5904f85d9f"))
991 (package
992 (name "bpp-popgen")
993 (version (string-append "2.2.0-1." (string-take commit 7)))
994 (source (origin
995 (method git-fetch)
996 (uri (git-reference
997 (url "http://biopp.univ-montp2.fr/git/bpp-popgen")
998 (commit commit)))
999 (file-name (string-append name "-" version "-checkout"))
1000 (sha256
1001 (base32
1002 "0yn82dzn1n5629nzja68xfrhi655709rjanyryb36vzkmymy6dw5"))))
1003 (build-system cmake-build-system)
1004 (arguments
1005 `(#:parallel-build? #f
1006 #:tests? #f)) ; There are no tests.
1007 (inputs
1008 `(("bpp-core" ,bpp-core)
1009 ("bpp-seq" ,bpp-seq)
1010 ("gcc" ,gcc-5)))
1011 (home-page "http://biopp.univ-montp2.fr")
1012 (synopsis "Bio++ population genetics library")
1013 (description
1014 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1015 analysis, phylogenetics, molecular evolution and population genetics. This
1016 library provides population genetics-related modules.")
1017 (license license:cecill-c))))
1018
1019 (define-public bpp-seq
1020 ;; The last release was in 2014 and the recommended way to install from source
1021 ;; is to clone the git repository, so we do this.
1022 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1023 (let ((commit "6cfa07965ce152e5598a89df2fa80a75973bfa33"))
1024 (package
1025 (name "bpp-seq")
1026 (version (string-append "2.2.0-1." (string-take commit 7)))
1027 (source (origin
1028 (method git-fetch)
1029 (uri (git-reference
1030 (url "http://biopp.univ-montp2.fr/git/bpp-seq")
1031 (commit commit)))
1032 (file-name (string-append name "-" version "-checkout"))
1033 (sha256
1034 (base32
1035 "1nys5jq7jqvdg40d91wsmj3q2yzy4276cp7sp44n67p468f27zf2"))))
1036 (build-system cmake-build-system)
1037 (arguments
1038 `(#:parallel-build? #f
1039 ;; If out-of-source, test data is not copied into the build directory
1040 ;; so the tests fail.
1041 #:out-of-source? #f))
1042 (inputs
1043 `(("bpp-core" ,bpp-core)
1044 ("gcc" ,gcc-5))) ; Use GCC 5 as per 'bpp-core'.
1045 (home-page "http://biopp.univ-montp2.fr")
1046 (synopsis "Bio++ sequence library")
1047 (description
1048 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1049 analysis, phylogenetics, molecular evolution and population genetics. This
1050 library provides sequence-related modules.")
1051 (license license:cecill-c))))
1052
1053 (define-public bppsuite
1054 ;; The last release was in 2014 and the recommended way to install from source
1055 ;; is to clone the git repository, so we do this.
1056 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1057 (let ((commit "c516147f57aa50961121cd505bed52cd7603698b"))
1058 (package
1059 (name "bppsuite")
1060 (version (string-append "2.2.0-1." (string-take commit 7)))
1061 (source (origin
1062 (method git-fetch)
1063 (uri (git-reference
1064 (url "http://biopp.univ-montp2.fr/git/bppsuite")
1065 (commit commit)))
1066 (file-name (string-append name "-" version "-checkout"))
1067 (sha256
1068 (base32
1069 "1y87pxvw0jxjizhq2dr9g2r91md45k1p9ih2sl1yy1y3p934l2kb"))))
1070 (build-system cmake-build-system)
1071 (arguments
1072 `(#:parallel-build? #f
1073 #:tests? #f)) ; There are no tests.
1074 (native-inputs
1075 `(("groff" ,groff)
1076 ("man-db" ,man-db)
1077 ("texinfo" ,texinfo)))
1078 (inputs
1079 `(("bpp-core" ,bpp-core)
1080 ("bpp-seq" ,bpp-seq)
1081 ("bpp-phyl" ,bpp-phyl)
1082 ("bpp-phyl" ,bpp-popgen)
1083 ("gcc" ,gcc-5)))
1084 (home-page "http://biopp.univ-montp2.fr")
1085 (synopsis "Bioinformatics tools written with the Bio++ libraries")
1086 (description
1087 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1088 analysis, phylogenetics, molecular evolution and population genetics. This
1089 package provides command line tools using the Bio++ library.")
1090 (license license:cecill-c))))
1091
1092 (define-public blast+
1093 (package
1094 (name "blast+")
1095 (version "2.6.0")
1096 (source (origin
1097 (method url-fetch)
1098 (uri (string-append
1099 "ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/"
1100 version "/ncbi-blast-" version "+-src.tar.gz"))
1101 (sha256
1102 (base32
1103 "15n937pw5aqmyfjb6l387d18grqbb96l63d5xj4l7yyh0zbf2405"))
1104 (patches (search-patches "blast+-fix-makefile.patch"))
1105 (modules '((guix build utils)))
1106 (snippet
1107 '(begin
1108 ;; Remove bundled bzip2, zlib and pcre.
1109 (delete-file-recursively "c++/src/util/compress/bzip2")
1110 (delete-file-recursively "c++/src/util/compress/zlib")
1111 (delete-file-recursively "c++/src/util/regexp")
1112 (substitute* "c++/src/util/compress/Makefile.in"
1113 (("bzip2 zlib api") "api"))
1114 ;; Remove useless msbuild directory
1115 (delete-file-recursively
1116 "c++/src/build-system/project_tree_builder/msbuild")
1117 #t))))
1118 (build-system gnu-build-system)
1119 (arguments
1120 `(;; There are two(!) tests for this massive library, and both fail with
1121 ;; "unparsable timing stats".
1122 ;; ERR [127] -- [serial/datatool] datatool.sh (unparsable timing stats)
1123 ;; ERR [127] -- [serial/datatool] datatool_xml.sh (unparsable timing stats)
1124 #:tests? #f
1125 #:out-of-source? #t
1126 #:parallel-build? #f ; not supported
1127 #:phases
1128 (modify-phases %standard-phases
1129 (add-before 'configure 'set-HOME
1130 ;; $HOME needs to be set at some point during the configure phase
1131 (lambda _ (setenv "HOME" "/tmp") #t))
1132 (add-after 'unpack 'enter-dir
1133 (lambda _ (chdir "c++") #t))
1134 (add-after 'enter-dir 'fix-build-system
1135 (lambda _
1136 (define (which* cmd)
1137 (cond ((string=? cmd "date")
1138 ;; make call to "date" deterministic
1139 "date -d @0")
1140 ((which cmd)
1141 => identity)
1142 (else
1143 (format (current-error-port)
1144 "WARNING: Unable to find absolute path for ~s~%"
1145 cmd)
1146 #f)))
1147
1148 ;; Rewrite hardcoded paths to various tools
1149 (substitute* (append '("src/build-system/configure.ac"
1150 "src/build-system/configure"
1151 "src/build-system/helpers/run_with_lock.c"
1152 "scripts/common/impl/if_diff.sh"
1153 "scripts/common/impl/run_with_lock.sh"
1154 "src/build-system/Makefile.configurables.real"
1155 "src/build-system/Makefile.in.top"
1156 "src/build-system/Makefile.meta.gmake=no"
1157 "src/build-system/Makefile.meta.in"
1158 "src/build-system/Makefile.meta_l"
1159 "src/build-system/Makefile.meta_p"
1160 "src/build-system/Makefile.meta_r"
1161 "src/build-system/Makefile.mk.in"
1162 "src/build-system/Makefile.requirements"
1163 "src/build-system/Makefile.rules_with_autodep.in")
1164 (find-files "scripts/common/check" "\\.sh$"))
1165 (("(/usr/bin/|/bin/)([a-z][-_.a-z]*)" all dir cmd)
1166 (or (which* cmd) all)))
1167
1168 (substitute* (find-files "src/build-system" "^config.*")
1169 (("LN_S=/bin/\\$LN_S") (string-append "LN_S=" (which "ln")))
1170 (("^PATH=.*") ""))
1171
1172 ;; rewrite "/var/tmp" in check script
1173 (substitute* "scripts/common/check/check_make_unix.sh"
1174 (("/var/tmp") "/tmp"))
1175
1176 ;; do not reset PATH
1177 (substitute* (find-files "scripts/common/impl/" "\\.sh$")
1178 (("^ *PATH=.*") "")
1179 (("action=/bin/") "action=")
1180 (("export PATH") ":"))
1181 #t))
1182 (replace 'configure
1183 (lambda* (#:key inputs outputs #:allow-other-keys)
1184 (let ((out (assoc-ref outputs "out"))
1185 (lib (string-append (assoc-ref outputs "lib") "/lib"))
1186 (include (string-append (assoc-ref outputs "include")
1187 "/include/ncbi-tools++")))
1188 ;; The 'configure' script doesn't recognize things like
1189 ;; '--enable-fast-install'.
1190 (invoke "./configure.orig"
1191 (string-append "--with-build-root=" (getcwd) "/build")
1192 (string-append "--prefix=" out)
1193 (string-append "--libdir=" lib)
1194 (string-append "--includedir=" include)
1195 (string-append "--with-bz2="
1196 (assoc-ref inputs "bzip2"))
1197 (string-append "--with-z="
1198 (assoc-ref inputs "zlib"))
1199 (string-append "--with-pcre="
1200 (assoc-ref inputs "pcre"))
1201 ;; Each library is built twice by default, once
1202 ;; with "-static" in its name, and again
1203 ;; without.
1204 "--without-static"
1205 "--with-dll")
1206 #t))))))
1207 (outputs '("out" ; 21 MB
1208 "lib" ; 226 MB
1209 "include")) ; 33 MB
1210 (inputs
1211 `(("bzip2" ,bzip2)
1212 ("zlib" ,zlib)
1213 ("pcre" ,pcre)
1214 ("perl" ,perl)
1215 ("python" ,python-wrapper)))
1216 (native-inputs
1217 `(("cpio" ,cpio)))
1218 (home-page "http://blast.ncbi.nlm.nih.gov")
1219 (synopsis "Basic local alignment search tool")
1220 (description
1221 "BLAST is a popular method of performing a DNA or protein sequence
1222 similarity search, using heuristics to produce results quickly. It also
1223 calculates an “expect value” that estimates how many matches would have
1224 occurred at a given score by chance, which can aid a user in judging how much
1225 confidence to have in an alignment.")
1226 ;; Most of the sources are in the public domain, with the following
1227 ;; exceptions:
1228 ;; * Expat:
1229 ;; * ./c++/include/util/bitset/
1230 ;; * ./c++/src/html/ncbi_menu*.js
1231 ;; * Boost license:
1232 ;; * ./c++/include/util/impl/floating_point_comparison.hpp
1233 ;; * LGPL 2+:
1234 ;; * ./c++/include/dbapi/driver/odbc/unix_odbc/
1235 ;; * ASL 2.0:
1236 ;; * ./c++/src/corelib/teamcity_*
1237 (license (list license:public-domain
1238 license:expat
1239 license:boost1.0
1240 license:lgpl2.0+
1241 license:asl2.0))))
1242
1243 (define-public bless
1244 (package
1245 (name "bless")
1246 (version "1p02")
1247 (source (origin
1248 (method url-fetch)
1249 (uri (string-append "mirror://sourceforge/bless-ec/bless.v"
1250 version ".tgz"))
1251 (sha256
1252 (base32
1253 "0rm0gw2s18dqwzzpl3c2x1z05ni2v0xz5dmfk3d33j6g4cgrlrdd"))
1254 (modules '((guix build utils)))
1255 (snippet
1256 `(begin
1257 ;; Remove bundled boost, pigz, zlib, and .git directory
1258 ;; FIXME: also remove bundled sources for murmurhash3 and
1259 ;; kmc once packaged.
1260 (delete-file-recursively "boost")
1261 (delete-file-recursively "pigz")
1262 (delete-file-recursively "google-sparsehash")
1263 (delete-file-recursively "zlib")
1264 (delete-file-recursively ".git")
1265 #t))))
1266 (build-system gnu-build-system)
1267 (arguments
1268 '(#:tests? #f ;no "check" target
1269 #:make-flags
1270 (list (string-append "ZLIB="
1271 (assoc-ref %build-inputs "zlib:static")
1272 "/lib/libz.a")
1273 (string-append "LDFLAGS="
1274 (string-join '("-lboost_filesystem"
1275 "-lboost_system"
1276 "-lboost_iostreams"
1277 "-lz"
1278 "-fopenmp"
1279 "-std=c++11"))))
1280 #:phases
1281 (modify-phases %standard-phases
1282 (add-after 'unpack 'do-not-build-bundled-pigz
1283 (lambda* (#:key inputs outputs #:allow-other-keys)
1284 (substitute* "Makefile"
1285 (("cd pigz/pigz-2.3.3; make") ""))
1286 #t))
1287 (add-after 'unpack 'patch-paths-to-executables
1288 (lambda* (#:key inputs outputs #:allow-other-keys)
1289 (substitute* "parse_args.cpp"
1290 (("kmc_binary = .*")
1291 (string-append "kmc_binary = \""
1292 (assoc-ref outputs "out")
1293 "/bin/kmc\";"))
1294 (("pigz_binary = .*")
1295 (string-append "pigz_binary = \""
1296 (assoc-ref inputs "pigz")
1297 "/bin/pigz\";")))
1298 #t))
1299 (replace 'install
1300 (lambda* (#:key outputs #:allow-other-keys)
1301 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
1302 (for-each (lambda (file)
1303 (install-file file bin))
1304 '("bless" "kmc/bin/kmc"))
1305 #t)))
1306 (delete 'configure))))
1307 (native-inputs
1308 `(("perl" ,perl)))
1309 (inputs
1310 `(("openmpi" ,openmpi)
1311 ("boost" ,boost)
1312 ("sparsehash" ,sparsehash)
1313 ("pigz" ,pigz)
1314 ("zlib:static" ,zlib "static")
1315 ("zlib" ,zlib)))
1316 (supported-systems '("x86_64-linux"))
1317 (home-page "https://sourceforge.net/p/bless-ec/wiki/Home/")
1318 (synopsis "Bloom-filter-based error correction tool for NGS reads")
1319 (description
1320 "@dfn{Bloom-filter-based error correction solution for high-throughput
1321 sequencing reads} (BLESS) uses a single minimum-sized bloom filter is a
1322 correction tool for genomic reads produced by @dfn{Next-generation
1323 sequencing} (NGS). BLESS produces accurate correction results with much less
1324 memory compared with previous solutions and is also able to tolerate a higher
1325 false-positive rate. BLESS can extend reads like DNA assemblers to correct
1326 errors at the end of reads.")
1327 (license license:gpl3+)))
1328
1329 (define-public bowtie
1330 (package
1331 (name "bowtie")
1332 (version "2.3.4.3")
1333 (source (origin
1334 (method git-fetch)
1335 (uri (git-reference
1336 (url "https://github.com/BenLangmead/bowtie2.git")
1337 (commit (string-append "v" version))))
1338 (file-name (git-file-name name version))
1339 (sha256
1340 (base32
1341 "1zl3cf327y2p7p03cavymbh7b00djc7lncfaqih33n96iy9q8ibp"))
1342 (modules '((guix build utils)))
1343 (snippet
1344 '(begin
1345 (substitute* "Makefile"
1346 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1347 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1348 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
1349 #t))))
1350 (build-system gnu-build-system)
1351 (arguments
1352 '(#:make-flags
1353 (list "allall"
1354 "WITH_TBB=1"
1355 (string-append "prefix=" (assoc-ref %outputs "out")))
1356 #:phases
1357 (modify-phases %standard-phases
1358 (delete 'configure)
1359 (replace 'check
1360 (lambda _
1361 (invoke "perl"
1362 "scripts/test/simple_tests.pl"
1363 "--bowtie2=./bowtie2"
1364 "--bowtie2-build=./bowtie2-build")
1365 #t)))))
1366 (inputs
1367 `(("tbb" ,tbb)
1368 ("zlib" ,zlib)
1369 ("python" ,python-wrapper)))
1370 (native-inputs
1371 `(("perl" ,perl)
1372 ("perl-clone" ,perl-clone)
1373 ("perl-test-deep" ,perl-test-deep)
1374 ("perl-test-simple" ,perl-test-simple)))
1375 (home-page "http://bowtie-bio.sourceforge.net/bowtie2/index.shtml")
1376 (synopsis "Fast and sensitive nucleotide sequence read aligner")
1377 (description
1378 "Bowtie 2 is a fast and memory-efficient tool for aligning sequencing
1379 reads to long reference sequences. It is particularly good at aligning reads
1380 of about 50 up to 100s or 1,000s of characters, and particularly good at
1381 aligning to relatively long (e.g. mammalian) genomes. Bowtie 2 indexes the
1382 genome with an FM Index to keep its memory footprint small: for the human
1383 genome, its memory footprint is typically around 3.2 GB. Bowtie 2 supports
1384 gapped, local, and paired-end alignment modes.")
1385 (supported-systems '("x86_64-linux"))
1386 (license license:gpl3+)))
1387
1388 (define-public bowtie1
1389 (package
1390 (name "bowtie1")
1391 (version "1.2.2")
1392 (source (origin
1393 (method url-fetch)
1394 (uri (string-append "mirror://sourceforge/bowtie-bio/bowtie/"
1395 version "/bowtie-" version "-src.zip"))
1396 (sha256
1397 (base32
1398 "1jl2cj9bz8lwz8dwnxbycn8yp8g4kky62fkcxifyf1ri0y6n2vc0"))
1399 (modules '((guix build utils)))
1400 (snippet
1401 '(substitute* "Makefile"
1402 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1403 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1404 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\"")))))
1405 (build-system gnu-build-system)
1406 (arguments
1407 '(#:tests? #f ; no "check" target
1408 #:make-flags
1409 (list "all"
1410 (string-append "prefix=" (assoc-ref %outputs "out")))
1411 #:phases
1412 (modify-phases %standard-phases
1413 (delete 'configure))))
1414 (inputs
1415 `(("tbb" ,tbb)
1416 ("zlib" ,zlib)))
1417 (supported-systems '("x86_64-linux"))
1418 (home-page "http://bowtie-bio.sourceforge.net/index.shtml")
1419 (synopsis "Fast aligner for short nucleotide sequence reads")
1420 (description
1421 "Bowtie is a fast, memory-efficient short read aligner. It aligns short
1422 DNA sequences (reads) to the human genome at a rate of over 25 million 35-bp
1423 reads per hour. Bowtie indexes the genome with a Burrows-Wheeler index to
1424 keep its memory footprint small: typically about 2.2 GB for the human
1425 genome (2.9 GB for paired-end).")
1426 (license license:artistic2.0)))
1427
1428 (define-public tophat
1429 (package
1430 (name "tophat")
1431 (version "2.1.1")
1432 (source (origin
1433 (method url-fetch)
1434 (uri (string-append
1435 "http://ccb.jhu.edu/software/tophat/downloads/tophat-"
1436 version ".tar.gz"))
1437 (sha256
1438 (base32
1439 "19add02kv2xhd6ihd779dr7x35ggym3jqr0m5c4315i1yfb0p11p"))
1440 (modules '((guix build utils)))
1441 (snippet
1442 '(begin
1443 ;; Remove bundled SeqAn and samtools
1444 (delete-file-recursively "src/SeqAn-1.4.2")
1445 (delete-file-recursively "src/samtools-0.1.18")
1446 #t))))
1447 (build-system gnu-build-system)
1448 (arguments
1449 '(#:parallel-build? #f ; not supported
1450 #:phases
1451 (modify-phases %standard-phases
1452 (add-after 'unpack 'use-system-samtools
1453 (lambda* (#:key inputs #:allow-other-keys)
1454 (substitute* "src/Makefile.in"
1455 (("(noinst_LIBRARIES = )\\$\\(SAMLIB\\)" _ prefix) prefix)
1456 (("\\$\\(SAMPROG\\): \\$\\(SAMLIB\\)") "")
1457 (("SAMPROG = samtools_0\\.1\\.18") "")
1458 (("\\$\\(samtools_0_1_18_SOURCES\\)") "")
1459 (("am__EXEEXT_1 = samtools_0\\.1\\.18\\$\\(EXEEXT\\)") ""))
1460 (substitute* '("src/common.cpp"
1461 "src/tophat.py")
1462 (("samtools_0.1.18") (which "samtools")))
1463 (substitute* '("src/common.h"
1464 "src/bam2fastx.cpp")
1465 (("#include \"bam.h\"") "#include <samtools/bam.h>")
1466 (("#include \"sam.h\"") "#include <samtools/sam.h>"))
1467 (substitute* '("src/bwt_map.h"
1468 "src/map2gtf.h"
1469 "src/align_status.h")
1470 (("#include <bam.h>") "#include <samtools/bam.h>")
1471 (("#include <sam.h>") "#include <samtools/sam.h>"))
1472 #t)))))
1473 (inputs
1474 `(("boost" ,boost)
1475 ("bowtie" ,bowtie)
1476 ("samtools" ,samtools-0.1)
1477 ("ncurses" ,ncurses)
1478 ("python" ,python-2)
1479 ("perl" ,perl)
1480 ("zlib" ,zlib)
1481 ("seqan" ,seqan-1)))
1482 (home-page "http://ccb.jhu.edu/software/tophat/index.shtml")
1483 (synopsis "Spliced read mapper for RNA-Seq data")
1484 (description
1485 "TopHat is a fast splice junction mapper for nucleotide sequence
1486 reads produced by the RNA-Seq method. It aligns RNA-Seq reads to
1487 mammalian-sized genomes using the ultra high-throughput short read
1488 aligner Bowtie, and then analyzes the mapping results to identify
1489 splice junctions between exons.")
1490 ;; TopHat is released under the Boost Software License, Version 1.0
1491 ;; See https://github.com/infphilo/tophat/issues/11#issuecomment-121589893
1492 (license license:boost1.0)))
1493
1494 (define-public bwa
1495 (package
1496 (name "bwa")
1497 (version "0.7.17")
1498 (source (origin
1499 (method url-fetch)
1500 (uri (string-append
1501 "https://github.com/lh3/bwa/releases/download/v"
1502 version "/bwa-" version ".tar.bz2"))
1503 (sha256
1504 (base32
1505 "1zfhv2zg9v1icdlq4p9ssc8k01mca5d1bd87w71py2swfi74s6yy"))))
1506 (build-system gnu-build-system)
1507 (arguments
1508 '(#:tests? #f ;no "check" target
1509 #:phases
1510 (modify-phases %standard-phases
1511 (replace 'install
1512 (lambda* (#:key outputs #:allow-other-keys)
1513 (let ((bin (string-append
1514 (assoc-ref outputs "out") "/bin"))
1515 (doc (string-append
1516 (assoc-ref outputs "out") "/share/doc/bwa"))
1517 (man (string-append
1518 (assoc-ref outputs "out") "/share/man/man1")))
1519 (install-file "bwa" bin)
1520 (install-file "README.md" doc)
1521 (install-file "bwa.1" man))
1522 #t))
1523 ;; no "configure" script
1524 (delete 'configure))))
1525 (inputs `(("zlib" ,zlib)))
1526 ;; Non-portable SSE instructions are used so building fails on platforms
1527 ;; other than x86_64.
1528 (supported-systems '("x86_64-linux"))
1529 (home-page "http://bio-bwa.sourceforge.net/")
1530 (synopsis "Burrows-Wheeler sequence aligner")
1531 (description
1532 "BWA is a software package for mapping low-divergent sequences against a
1533 large reference genome, such as the human genome. It consists of three
1534 algorithms: BWA-backtrack, BWA-SW and BWA-MEM. The first algorithm is
1535 designed for Illumina sequence reads up to 100bp, while the rest two for
1536 longer sequences ranged from 70bp to 1Mbp. BWA-MEM and BWA-SW share similar
1537 features such as long-read support and split alignment, but BWA-MEM, which is
1538 the latest, is generally recommended for high-quality queries as it is faster
1539 and more accurate. BWA-MEM also has better performance than BWA-backtrack for
1540 70-100bp Illumina reads.")
1541 (license license:gpl3+)))
1542
1543 (define-public bwa-pssm
1544 (package (inherit bwa)
1545 (name "bwa-pssm")
1546 (version "0.5.11")
1547 (source (origin
1548 (method git-fetch)
1549 (uri (git-reference
1550 (url "https://github.com/pkerpedjiev/bwa-pssm.git")
1551 (commit version)))
1552 (file-name (git-file-name name version))
1553 (sha256
1554 (base32
1555 "076c4q0cdqz8jgylb067y9zmvxglppnzi3qiscn0xiypgc6lgb5r"))))
1556 (build-system gnu-build-system)
1557 (inputs
1558 `(("gdsl" ,gdsl)
1559 ("zlib" ,zlib)
1560 ("perl" ,perl)))
1561 (home-page "http://bwa-pssm.binf.ku.dk/")
1562 (synopsis "Burrows-Wheeler transform-based probabilistic short read mapper")
1563 (description
1564 "BWA-PSSM is a probabilistic short genomic sequence read aligner based on
1565 the use of @dfn{position specific scoring matrices} (PSSM). Like many of the
1566 existing aligners it is fast and sensitive. Unlike most other aligners,
1567 however, it is also adaptible in the sense that one can direct the alignment
1568 based on known biases within the data set. It is coded as a modification of
1569 the original BWA alignment program and shares the genome index structure as
1570 well as many of the command line options.")
1571 (license license:gpl3+)))
1572
1573 (define-public python-bx-python
1574 (package
1575 (name "python-bx-python")
1576 (version "0.8.2")
1577 (source (origin
1578 (method url-fetch)
1579 (uri (pypi-uri "bx-python" version))
1580 (sha256
1581 (base32
1582 "11kksg2rbzihpmcid823xvg42xi88m7sz58rzk29abybkxy0rszs"))))
1583 (build-system python-build-system)
1584 ;; Tests fail because test data are not included
1585 (arguments '(#:tests? #f))
1586 (propagated-inputs
1587 `(("python-numpy" ,python-numpy)
1588 ("python-six" ,python-six)))
1589 (inputs
1590 `(("zlib" ,zlib)))
1591 (native-inputs
1592 `(("python-lzo" ,python-lzo)
1593 ("python-nose" ,python-nose)
1594 ("python-cython" ,python-cython)))
1595 (home-page "https://github.com/bxlab/bx-python")
1596 (synopsis "Tools for manipulating biological data")
1597 (description
1598 "bx-python provides tools for manipulating biological data, particularly
1599 multiple sequence alignments.")
1600 (license license:expat)))
1601
1602 (define-public python2-bx-python
1603 (package-with-python2 python-bx-python))
1604
1605 (define-public python-pysam
1606 (package
1607 (name "python-pysam")
1608 (version "0.15.1")
1609 (source (origin
1610 (method git-fetch)
1611 ;; Test data is missing on PyPi.
1612 (uri (git-reference
1613 (url "https://github.com/pysam-developers/pysam.git")
1614 (commit (string-append "v" version))))
1615 (file-name (git-file-name name version))
1616 (sha256
1617 (base32
1618 "1vj367w6xbn9bpmksm162l1aipf7cj97h1q83y7jcpm33ihwpf7x"))
1619 (modules '((guix build utils)))
1620 (snippet '(begin
1621 ;; Drop bundled htslib. TODO: Also remove samtools
1622 ;; and bcftools.
1623 (delete-file-recursively "htslib")
1624 #t))))
1625 (build-system python-build-system)
1626 (arguments
1627 `(#:modules ((ice-9 ftw)
1628 (srfi srfi-26)
1629 (guix build python-build-system)
1630 (guix build utils))
1631 #:phases
1632 (modify-phases %standard-phases
1633 (add-before 'build 'set-flags
1634 (lambda* (#:key inputs #:allow-other-keys)
1635 (setenv "HTSLIB_MODE" "external")
1636 (setenv "HTSLIB_LIBRARY_DIR"
1637 (string-append (assoc-ref inputs "htslib") "/lib"))
1638 (setenv "HTSLIB_INCLUDE_DIR"
1639 (string-append (assoc-ref inputs "htslib") "/include"))
1640 (setenv "LDFLAGS" "-lncurses")
1641 (setenv "CFLAGS" "-D_CURSES_LIB=1")
1642 #t))
1643 (replace 'check
1644 (lambda* (#:key inputs outputs #:allow-other-keys)
1645 ;; This file contains tests that require a connection to the
1646 ;; internet.
1647 (delete-file "tests/tabix_test.py")
1648 ;; FIXME: This test fails
1649 (delete-file "tests/AlignmentFile_test.py")
1650 ;; Add first subdirectory of "build" directory to PYTHONPATH.
1651 (setenv "PYTHONPATH"
1652 (string-append
1653 (getenv "PYTHONPATH")
1654 ":" (getcwd) "/build/"
1655 (car (scandir "build"
1656 (negate (cut string-prefix? "." <>))))))
1657 ;; Step out of source dir so python does not import from CWD.
1658 (with-directory-excursion "tests"
1659 (setenv "HOME" "/tmp")
1660 (invoke "make" "-C" "pysam_data")
1661 (invoke "make" "-C" "cbcf_data")
1662 ;; Running nosetests without explicitly asking for a single
1663 ;; process leads to a crash. Running with multiple processes
1664 ;; fails because the tests are not designed to run in parallel.
1665
1666 ;; FIXME: tests keep timing out on some systems.
1667 (invoke "nosetests" "-v" "--processes" "1")))))))
1668 (propagated-inputs
1669 `(("htslib" ,htslib))) ; Included from installed header files.
1670 (inputs
1671 `(("ncurses" ,ncurses)
1672 ("curl" ,curl)
1673 ("zlib" ,zlib)))
1674 (native-inputs
1675 `(("python-cython" ,python-cython)
1676 ;; Dependencies below are are for tests only.
1677 ("samtools" ,samtools)
1678 ("bcftools" ,bcftools)
1679 ("python-nose" ,python-nose)))
1680 (home-page "https://github.com/pysam-developers/pysam")
1681 (synopsis "Python bindings to the SAMtools C API")
1682 (description
1683 "Pysam is a Python module for reading and manipulating files in the
1684 SAM/BAM format. Pysam is a lightweight wrapper of the SAMtools C API. It
1685 also includes an interface for tabix.")
1686 (license license:expat)))
1687
1688 (define-public python2-pysam
1689 (package-with-python2 python-pysam))
1690
1691 (define-public python-twobitreader
1692 (package
1693 (name "python-twobitreader")
1694 (version "3.1.6")
1695 (source (origin
1696 (method git-fetch)
1697 (uri (git-reference
1698 (url "https://github.com/benjschiller/twobitreader")
1699 (commit version)))
1700 (file-name (git-file-name name version))
1701 (sha256
1702 (base32
1703 "1qbxvv1h58cismbk1anpjrkpghsaiy64a11ir3lhy6qch6xf8n62"))))
1704 (build-system python-build-system)
1705 ;; Tests are not included
1706 (arguments '(#:tests? #f))
1707 (native-inputs
1708 `(("python-sphinx" ,python-sphinx)))
1709 (home-page "https://github.com/benjschiller/twobitreader")
1710 (synopsis "Python library for reading .2bit files")
1711 (description
1712 "twobitreader is a Python library for reading .2bit files as used by the
1713 UCSC genome browser.")
1714 (license license:artistic2.0)))
1715
1716 (define-public python2-twobitreader
1717 (package-with-python2 python-twobitreader))
1718
1719 (define-public python-plastid
1720 (package
1721 (name "python-plastid")
1722 (version "0.4.8")
1723 (source (origin
1724 (method url-fetch)
1725 (uri (pypi-uri "plastid" version))
1726 (sha256
1727 (base32
1728 "0l24dd3q66if8yj042m4s0g95n6acn7im1imqd3p6h8ns43kxhj8"))))
1729 (build-system python-build-system)
1730 (arguments
1731 ;; Some test files are not included.
1732 `(#:tests? #f))
1733 (propagated-inputs
1734 `(("python-numpy" ,python-numpy)
1735 ("python-scipy" ,python-scipy)
1736 ("python-pandas" ,python-pandas)
1737 ("python-pysam" ,python-pysam)
1738 ("python-matplotlib" ,python-matplotlib)
1739 ("python-biopython" ,python-biopython)
1740 ("python-twobitreader" ,python-twobitreader)
1741 ("python-termcolor" ,python-termcolor)))
1742 (native-inputs
1743 `(("python-cython" ,python-cython)
1744 ("python-nose" ,python-nose)))
1745 (home-page "https://github.com/joshuagryphon/plastid")
1746 (synopsis "Python library for genomic analysis")
1747 (description
1748 "plastid is a Python library for genomic analysis – in particular,
1749 high-throughput sequencing data – with an emphasis on simplicity.")
1750 (license license:bsd-3)))
1751
1752 (define-public python2-plastid
1753 (package-with-python2 python-plastid))
1754
1755 (define-public cd-hit
1756 (package
1757 (name "cd-hit")
1758 (version "4.6.8")
1759 (source (origin
1760 (method url-fetch)
1761 (uri (string-append "https://github.com/weizhongli/cdhit"
1762 "/releases/download/V" version
1763 "/cd-hit-v" version
1764 "-2017-0621-source.tar.gz"))
1765 (sha256
1766 (base32
1767 "1b4mwm2520ixjbw57sil20f9iixzw4bkdqqwgg1fc3pzm6rz4zmn"))))
1768 (build-system gnu-build-system)
1769 (arguments
1770 `(#:tests? #f ; there are no tests
1771 #:make-flags
1772 ;; Executables are copied directly to the PREFIX.
1773 (list (string-append "PREFIX=" (assoc-ref %outputs "out") "/bin"))
1774 #:phases
1775 (modify-phases %standard-phases
1776 ;; No "configure" script
1777 (delete 'configure)
1778 ;; Remove sources of non-determinism
1779 (add-after 'unpack 'be-timeless
1780 (lambda _
1781 (substitute* "cdhit-utility.c++"
1782 ((" \\(built on \" __DATE__ \"\\)") ""))
1783 (substitute* "cdhit-common.c++"
1784 (("__DATE__") "\"0\"")
1785 (("\", %s, \" __TIME__ \"\\\\n\", date") ""))
1786 #t))
1787 ;; The "install" target does not create the target directory.
1788 (add-before 'install 'create-target-dir
1789 (lambda* (#:key outputs #:allow-other-keys)
1790 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
1791 #t)))))
1792 (inputs
1793 `(("perl" ,perl)))
1794 (home-page "http://weizhongli-lab.org/cd-hit/")
1795 (synopsis "Cluster and compare protein or nucleotide sequences")
1796 (description
1797 "CD-HIT is a program for clustering and comparing protein or nucleotide
1798 sequences. CD-HIT is designed to be fast and handle extremely large
1799 databases.")
1800 ;; The manual says: "It can be copied under the GNU General Public License
1801 ;; version 2 (GPLv2)."
1802 (license license:gpl2)))
1803
1804 (define-public clipper
1805 (package
1806 (name "clipper")
1807 (version "1.2.1")
1808 (source (origin
1809 (method git-fetch)
1810 (uri (git-reference
1811 (url "https://github.com/YeoLab/clipper.git")
1812 (commit version)))
1813 (file-name (git-file-name name version))
1814 (sha256
1815 (base32
1816 "0fja1rj84wp9vpj8rxpj3n8zqzcqq454m904yp9as1w4phccirjb"))
1817 (modules '((guix build utils)))
1818 (snippet
1819 '(begin
1820 ;; remove unnecessary setup dependency
1821 (substitute* "setup.py"
1822 (("setup_requires = .*") ""))
1823 #t))))
1824 (build-system python-build-system)
1825 (arguments
1826 `(#:python ,python-2 ; only Python 2 is supported
1827 #:phases
1828 (modify-phases %standard-phases
1829 ;; This is fixed in upstream commit
1830 ;; f6c2990198f906bf97730d95695b4bd5a6d01ddb.
1831 (add-after 'unpack 'fix-typo
1832 (lambda _
1833 (substitute* "clipper/src/readsToWiggle.pyx"
1834 (("^sc.*") ""))
1835 #t)))))
1836 (inputs
1837 `(("htseq" ,python2-htseq)
1838 ("python-pybedtools" ,python2-pybedtools)
1839 ("python-cython" ,python2-cython)
1840 ("python-scikit-learn" ,python2-scikit-learn)
1841 ("python-matplotlib" ,python2-matplotlib)
1842 ("python-pandas" ,python2-pandas)
1843 ("python-pysam" ,python2-pysam)
1844 ("python-numpy" ,python2-numpy)
1845 ("python-scipy" ,python2-scipy)))
1846 (native-inputs
1847 `(("python-mock" ,python2-mock) ; for tests
1848 ("python-nose" ,python2-nose) ; for tests
1849 ("python-pytz" ,python2-pytz))) ; for tests
1850 (home-page "https://github.com/YeoLab/clipper")
1851 (synopsis "CLIP peak enrichment recognition")
1852 (description
1853 "CLIPper is a tool to define peaks in CLIP-seq datasets.")
1854 (license license:gpl2)))
1855
1856 (define-public codingquarry
1857 (package
1858 (name "codingquarry")
1859 (version "2.0")
1860 (source (origin
1861 (method url-fetch)
1862 (uri (string-append
1863 "mirror://sourceforge/codingquarry/CodingQuarry_v"
1864 version ".tar.gz"))
1865 (sha256
1866 (base32
1867 "0115hkjflsnfzn36xppwf9h9avfxlavr43djqmshkkzbgjzsz60i"))))
1868 (build-system gnu-build-system)
1869 (arguments
1870 '(#:tests? #f ; no "check" target
1871 #:phases
1872 (modify-phases %standard-phases
1873 (delete 'configure)
1874 (replace 'install
1875 (lambda* (#:key outputs #:allow-other-keys)
1876 (let* ((out (assoc-ref outputs "out"))
1877 (bin (string-append out "/bin"))
1878 (doc (string-append out "/share/doc/codingquarry")))
1879 (install-file "INSTRUCTIONS.pdf" doc)
1880 (copy-recursively "QuarryFiles"
1881 (string-append out "/QuarryFiles"))
1882 (install-file "CodingQuarry" bin)
1883 (install-file "CufflinksGTF_to_CodingQuarryGFF3.py" bin))
1884 #t)))))
1885 (inputs `(("openmpi" ,openmpi)))
1886 (native-search-paths
1887 (list (search-path-specification
1888 (variable "QUARRY_PATH")
1889 (files '("QuarryFiles")))))
1890 (native-inputs `(("python" ,python-2))) ; Only Python 2 is supported
1891 (synopsis "Fungal gene predictor")
1892 (description "CodingQuarry is a highly accurate, self-training GHMM fungal
1893 gene predictor designed to work with assembled, aligned RNA-seq transcripts.")
1894 (home-page "https://sourceforge.net/projects/codingquarry/")
1895 (license license:gpl3+)))
1896
1897 (define-public couger
1898 (package
1899 (name "couger")
1900 (version "1.8.2")
1901 (source (origin
1902 (method url-fetch)
1903 (uri (string-append
1904 "http://couger.oit.duke.edu/static/assets/COUGER"
1905 version ".zip"))
1906 (sha256
1907 (base32
1908 "04p2b14nmhzxw5h72mpzdhalv21bx4w9b87z0wpw0xzxpysyncmq"))))
1909 (build-system gnu-build-system)
1910 (arguments
1911 `(#:tests? #f
1912 #:phases
1913 (modify-phases %standard-phases
1914 (delete 'configure)
1915 (delete 'build)
1916 (replace
1917 'install
1918 (lambda* (#:key outputs #:allow-other-keys)
1919 (let* ((out (assoc-ref outputs "out"))
1920 (bin (string-append out "/bin")))
1921 (copy-recursively "src" (string-append out "/src"))
1922 (mkdir bin)
1923 ;; Add "src" directory to module lookup path.
1924 (substitute* "couger"
1925 (("from argparse")
1926 (string-append "import sys\nsys.path.append(\""
1927 out "\")\nfrom argparse")))
1928 (install-file "couger" bin))
1929 #t))
1930 (add-after
1931 'install 'wrap-program
1932 (lambda* (#:key inputs outputs #:allow-other-keys)
1933 ;; Make sure 'couger' runs with the correct PYTHONPATH.
1934 (let* ((out (assoc-ref outputs "out"))
1935 (path (getenv "PYTHONPATH")))
1936 (wrap-program (string-append out "/bin/couger")
1937 `("PYTHONPATH" ":" prefix (,path))))
1938 #t)))))
1939 (inputs
1940 `(("python" ,python-2)
1941 ("python2-pillow" ,python2-pillow)
1942 ("python2-numpy" ,python2-numpy)
1943 ("python2-scipy" ,python2-scipy)
1944 ("python2-matplotlib" ,python2-matplotlib)))
1945 (propagated-inputs
1946 `(("r-minimal" ,r-minimal)
1947 ("libsvm" ,libsvm)
1948 ("randomjungle" ,randomjungle)))
1949 (native-inputs
1950 `(("unzip" ,unzip)))
1951 (home-page "http://couger.oit.duke.edu")
1952 (synopsis "Identify co-factors in sets of genomic regions")
1953 (description
1954 "COUGER can be applied to any two sets of genomic regions bound by
1955 paralogous TFs (e.g., regions derived from ChIP-seq experiments) to identify
1956 putative co-factors that provide specificity to each TF. The framework
1957 determines the genomic targets uniquely-bound by each TF, and identifies a
1958 small set of co-factors that best explain the in vivo binding differences
1959 between the two TFs.
1960
1961 COUGER uses classification algorithms (support vector machines and random
1962 forests) with features that reflect the DNA binding specificities of putative
1963 co-factors. The features are generated either from high-throughput TF-DNA
1964 binding data (from protein binding microarray experiments), or from large
1965 collections of DNA motifs.")
1966 (license license:gpl3+)))
1967
1968 (define-public clustal-omega
1969 (package
1970 (name "clustal-omega")
1971 (version "1.2.4")
1972 (source (origin
1973 (method url-fetch)
1974 (uri (string-append "http://www.clustal.org/omega/clustal-omega-"
1975 version ".tar.gz"))
1976 (sha256
1977 (base32
1978 "1vm30mzncwdv881vrcwg11vzvrsmwy4wg80j5i0lcfk6dlld50w6"))))
1979 (build-system gnu-build-system)
1980 (inputs
1981 `(("argtable" ,argtable)))
1982 (home-page "http://www.clustal.org/omega/")
1983 (synopsis "Multiple sequence aligner for protein and DNA/RNA")
1984 (description
1985 "Clustal-Omega is a general purpose multiple sequence alignment (MSA)
1986 program for protein and DNA/RNA. It produces high quality MSAs and is capable
1987 of handling data-sets of hundreds of thousands of sequences in reasonable
1988 time.")
1989 (license license:gpl2+)))
1990
1991 (define-public crossmap
1992 (package
1993 (name "crossmap")
1994 (version "0.2.9")
1995 (source (origin
1996 (method url-fetch)
1997 (uri (pypi-uri "CrossMap" version))
1998 (sha256
1999 (base32
2000 "1byhclrqnqpvc1rqkfh4jwj6yhn0x9y7jk47i0qcjlhk0pjkw92p"))))
2001 (build-system python-build-system)
2002 (arguments `(#:python ,python-2))
2003 (inputs
2004 `(("python-bx-python" ,python2-bx-python)
2005 ("python-numpy" ,python2-numpy)
2006 ("python-pysam" ,python2-pysam)
2007 ("zlib" ,zlib)))
2008 (native-inputs
2009 `(("python-cython" ,python2-cython)
2010 ("python-nose" ,python2-nose)))
2011 (home-page "http://crossmap.sourceforge.net/")
2012 (synopsis "Convert genome coordinates between assemblies")
2013 (description
2014 "CrossMap is a program for conversion of genome coordinates or annotation
2015 files between different genome assemblies. It supports most commonly used
2016 file formats including SAM/BAM, Wiggle/BigWig, BED, GFF/GTF, VCF.")
2017 (license license:gpl2+)))
2018
2019 (define-public python-dnaio
2020 (package
2021 (name "python-dnaio")
2022 (version "0.3")
2023 (source
2024 (origin
2025 (method url-fetch)
2026 (uri (pypi-uri "dnaio" version))
2027 (sha256
2028 (base32
2029 "0f16m7hdlm0fz1n7y5asy0v9ghyrq17ni1p9iybq22ddzyd49r27"))))
2030 (build-system python-build-system)
2031 (native-inputs
2032 `(("python-cython" ,python-cython)
2033 ("python-pytest" ,python-pytest)
2034 ("python-xopen" ,python-xopen)))
2035 (home-page "https://github.com/marcelm/dnaio/")
2036 (synopsis "Read FASTA and FASTQ files efficiently")
2037 (description
2038 "dnaio is a Python library for fast parsing of FASTQ and also FASTA
2039 files. The code was previously part of the cutadapt tool.")
2040 (license license:expat)))
2041
2042 (define-public cutadapt
2043 (package
2044 (name "cutadapt")
2045 (version "1.18")
2046 (source (origin
2047 (method git-fetch)
2048 (uri (git-reference
2049 (url "https://github.com/marcelm/cutadapt.git")
2050 (commit (string-append "v" version))))
2051 (file-name (git-file-name name version))
2052 (sha256
2053 (base32
2054 "08bbfwyc0kvcd95jf2s95xiv9s3cbsxm39ydl0qck3fw3cviwxpg"))))
2055 (build-system python-build-system)
2056 (inputs
2057 `(("python-dnaio" ,python-dnaio)
2058 ("python-xopen" ,python-xopen)))
2059 (native-inputs
2060 `(("python-cython" ,python-cython)
2061 ("python-pytest" ,python-pytest)))
2062 (home-page "https://cutadapt.readthedocs.io/en/stable/")
2063 (synopsis "Remove adapter sequences from nucleotide sequencing reads")
2064 (description
2065 "Cutadapt finds and removes adapter sequences, primers, poly-A tails and
2066 other types of unwanted sequence from high-throughput sequencing reads.")
2067 (license license:expat)))
2068
2069 (define-public libbigwig
2070 (package
2071 (name "libbigwig")
2072 (version "0.4.2")
2073 (source (origin
2074 (method git-fetch)
2075 (uri (git-reference
2076 (url "https://github.com/dpryan79/libBigWig.git")
2077 (commit version)))
2078 (file-name (string-append name "-" version "-checkout"))
2079 (sha256
2080 (base32
2081 "0h2smg24v5srdcqzrmz2g23cmlp4va465mgx8r2z571sfz8pv454"))))
2082 (build-system gnu-build-system)
2083 (arguments
2084 `(#:test-target "test"
2085 #:tests? #f ; tests require access to the web
2086 #:make-flags
2087 (list "CC=gcc"
2088 (string-append "prefix=" (assoc-ref %outputs "out")))
2089 #:phases
2090 (modify-phases %standard-phases
2091 (delete 'configure))))
2092 (inputs
2093 `(("zlib" ,zlib)
2094 ("curl" ,curl)))
2095 (native-inputs
2096 `(("doxygen" ,doxygen)
2097 ;; Need for tests
2098 ("python" ,python-2)))
2099 (home-page "https://github.com/dpryan79/libBigWig")
2100 (synopsis "C library for handling bigWig files")
2101 (description
2102 "This package provides a C library for parsing local and remote BigWig
2103 files.")
2104 (license license:expat)))
2105
2106 (define-public python-pybigwig
2107 (package
2108 (name "python-pybigwig")
2109 (version "0.3.12")
2110 (source (origin
2111 (method url-fetch)
2112 (uri (pypi-uri "pyBigWig" version))
2113 (sha256
2114 (base32
2115 "00w4kfnm2c5l7wdwr2nj1z5djv8kzgf7h1zhsgv6njff1rwr26g0"))
2116 (modules '((guix build utils)))
2117 (snippet
2118 '(begin
2119 ;; Delete bundled libBigWig sources
2120 (delete-file-recursively "libBigWig")
2121 #t))))
2122 (build-system python-build-system)
2123 (arguments
2124 `(#:phases
2125 (modify-phases %standard-phases
2126 (add-after 'unpack 'link-with-libBigWig
2127 (lambda* (#:key inputs #:allow-other-keys)
2128 (substitute* "setup.py"
2129 (("libs=\\[") "libs=[\"BigWig\", "))
2130 #t)))))
2131 (propagated-inputs
2132 `(("python-numpy" ,python-numpy)))
2133 (inputs
2134 `(("libbigwig" ,libbigwig)
2135 ("zlib" ,zlib)
2136 ("curl" ,curl)))
2137 (home-page "https://github.com/dpryan79/pyBigWig")
2138 (synopsis "Access bigWig files in Python using libBigWig")
2139 (description
2140 "This package provides Python bindings to the libBigWig library for
2141 accessing bigWig files.")
2142 (license license:expat)))
2143
2144 (define-public python2-pybigwig
2145 (package-with-python2 python-pybigwig))
2146
2147 (define-public python-dendropy
2148 (package
2149 (name "python-dendropy")
2150 (version "4.4.0")
2151 (source
2152 (origin
2153 (method git-fetch)
2154 ;; Source from GitHub so that tests are included.
2155 (uri (git-reference
2156 (url "https://github.com/jeetsukumaran/DendroPy.git")
2157 (commit (string-append "v" version))))
2158 (file-name (git-file-name name version))
2159 (sha256
2160 (base32
2161 "097hfyv2kaf4x92i4rjx0paw2cncxap48qivv8zxng4z7nhid0x9"))))
2162 (build-system python-build-system)
2163 (home-page "http://packages.python.org/DendroPy/")
2164 (synopsis "Library for phylogenetics and phylogenetic computing")
2165 (description
2166 "DendroPy is a library for phylogenetics and phylogenetic computing: reading,
2167 writing, simulation, processing and manipulation of phylogenetic
2168 trees (phylogenies) and characters.")
2169 (license license:bsd-3)))
2170
2171 (define-public python2-dendropy
2172 (let ((base (package-with-python2 python-dendropy)))
2173 (package
2174 (inherit base)
2175 (arguments
2176 `(#:phases
2177 (modify-phases %standard-phases
2178 (add-after 'unpack 'remove-failing-test
2179 (lambda _
2180 ;; This test fails when the full test suite is run, as documented
2181 ;; at https://github.com/jeetsukumaran/DendroPy/issues/74
2182 (substitute* "tests/test_dataio_nexml_reader_tree_list.py"
2183 (("test_collection_comments_and_annotations")
2184 "do_not_test_collection_comments_and_annotations"))
2185 #t)))
2186 ,@(package-arguments base))))))
2187
2188 (define-public python-py2bit
2189 (package
2190 (name "python-py2bit")
2191 (version "0.3.0")
2192 (source
2193 (origin
2194 (method url-fetch)
2195 (uri (pypi-uri "py2bit" version))
2196 (sha256
2197 (base32
2198 "1vw2nvw1yrl7ikkqsqs1pg239yr5nspvd969r1x9arms1k25a1a5"))))
2199 (build-system python-build-system)
2200 (home-page "https://github.com/dpryan79/py2bit")
2201 (synopsis "Access 2bit files using lib2bit")
2202 (description
2203 "This package provides Python bindings for lib2bit to access 2bit files
2204 with Python.")
2205 (license license:expat)))
2206
2207 (define-public deeptools
2208 (package
2209 (name "deeptools")
2210 (version "3.1.3")
2211 (source (origin
2212 (method git-fetch)
2213 (uri (git-reference
2214 (url "https://github.com/deeptools/deepTools.git")
2215 (commit version)))
2216 (file-name (git-file-name name version))
2217 (sha256
2218 (base32
2219 "1vggnf52g6q2vifdl4cyi7s2fnfqq0ky2zrkj5zv2qfzsc3p3siw"))))
2220 (build-system python-build-system)
2221 (arguments
2222 `(#:phases
2223 (modify-phases %standard-phases
2224 ;; This phase fails, but it's not needed.
2225 (delete 'reset-gzip-timestamps))))
2226 (inputs
2227 `(("python-plotly" ,python-plotly)
2228 ("python-scipy" ,python-scipy)
2229 ("python-numpy" ,python-numpy)
2230 ("python-numpydoc" ,python-numpydoc)
2231 ("python-matplotlib" ,python-matplotlib)
2232 ("python-pysam" ,python-pysam)
2233 ("python-py2bit" ,python-py2bit)
2234 ("python-pybigwig" ,python-pybigwig)))
2235 (native-inputs
2236 `(("python-mock" ,python-mock) ;for tests
2237 ("python-nose" ,python-nose) ;for tests
2238 ("python-pytz" ,python-pytz))) ;for tests
2239 (home-page "https://github.com/deeptools/deepTools")
2240 (synopsis "Tools for normalizing and visualizing deep-sequencing data")
2241 (description
2242 "DeepTools addresses the challenge of handling the large amounts of data
2243 that are now routinely generated from DNA sequencing centers. To do so,
2244 deepTools contains useful modules to process the mapped reads data to create
2245 coverage files in standard bedGraph and bigWig file formats. By doing so,
2246 deepTools allows the creation of normalized coverage files or the comparison
2247 between two files (for example, treatment and control). Finally, using such
2248 normalized and standardized files, multiple visualizations can be created to
2249 identify enrichments with functional annotations of the genome.")
2250 (license license:gpl3+)))
2251
2252 (define-public delly
2253 (package
2254 (name "delly")
2255 (version "0.7.9")
2256 (source (origin
2257 (method git-fetch)
2258 (uri (git-reference
2259 (url "https://github.com/dellytools/delly.git")
2260 (commit (string-append "v" version))))
2261 (file-name (git-file-name name version))
2262 (sha256
2263 (base32 "034jqsxswy9gqdh2zkgc1js99qkv75ks4xvzgmh0284sraagv61z"))
2264 (modules '((guix build utils)))
2265 (snippet
2266 '(begin
2267 (delete-file-recursively "src/htslib")
2268 #t))))
2269 (build-system gnu-build-system)
2270 (arguments
2271 `(#:tests? #f ; There are no tests to run.
2272 #:make-flags
2273 (list "PARALLEL=1" ; Allow parallel execution at run-time.
2274 (string-append "prefix=" (assoc-ref %outputs "out")))
2275 #:phases
2276 (modify-phases %standard-phases
2277 (delete 'configure) ; There is no configure phase.
2278 (add-after 'install 'install-templates
2279 (lambda* (#:key outputs #:allow-other-keys)
2280 (let ((templates (string-append (assoc-ref outputs "out")
2281 "/share/delly/templates")))
2282 (mkdir-p templates)
2283 (copy-recursively "excludeTemplates" templates)
2284 #t))))))
2285 (inputs
2286 `(("boost" ,boost)
2287 ("htslib" ,htslib)
2288 ("zlib" ,zlib)
2289 ("bzip2" ,bzip2)))
2290 (home-page "https://github.com/dellytools/delly")
2291 (synopsis "Integrated structural variant prediction method")
2292 (description "Delly is an integrated structural variant prediction method
2293 that can discover and genotype deletions, tandem duplications, inversions and
2294 translocations at single-nucleotide resolution in short-read massively parallel
2295 sequencing data. It uses paired-ends and split-reads to sensitively and
2296 accurately delineate genomic rearrangements throughout the genome.")
2297 (license license:gpl3+)))
2298
2299 (define-public diamond
2300 (package
2301 (name "diamond")
2302 (version "0.9.22")
2303 (source (origin
2304 (method git-fetch)
2305 (uri (git-reference
2306 (url "https://github.com/bbuchfink/diamond.git")
2307 (commit (string-append "v" version))))
2308 (file-name (git-file-name name version))
2309 (sha256
2310 (base32
2311 "0bky78v79g3wmdpsd706cscckgw1v09fg8vdd0z8z0d5b97aj9zl"))))
2312 (build-system cmake-build-system)
2313 (arguments
2314 '(#:tests? #f ; no "check" target
2315 #:phases
2316 (modify-phases %standard-phases
2317 (add-after 'unpack 'remove-native-compilation
2318 (lambda _
2319 (substitute* "CMakeLists.txt" (("-march=native") ""))
2320 #t)))))
2321 (inputs
2322 `(("zlib" ,zlib)))
2323 (home-page "https://github.com/bbuchfink/diamond")
2324 (synopsis "Accelerated BLAST compatible local sequence aligner")
2325 (description
2326 "DIAMOND is a BLAST-compatible local aligner for mapping protein and
2327 translated DNA query sequences against a protein reference database (BLASTP
2328 and BLASTX alignment mode). The speedup over BLAST is up to 20,000 on short
2329 reads at a typical sensitivity of 90-99% relative to BLAST depending on the
2330 data and settings.")
2331 (license license:agpl3+)))
2332
2333 (define-public discrover
2334 (package
2335 (name "discrover")
2336 (version "1.6.0")
2337 (source
2338 (origin
2339 (method git-fetch)
2340 (uri (git-reference
2341 (url "https://github.com/maaskola/discrover.git")
2342 (commit version)))
2343 (file-name (git-file-name name version))
2344 (sha256
2345 (base32
2346 "173fwi2vb6a5kp406hm3jj6j7v4whww796f2qcygp4rpvamh307y"))))
2347 (build-system cmake-build-system)
2348 (arguments
2349 `(#:tests? #f ; there are no tests
2350 #:phases
2351 (modify-phases %standard-phases
2352 (add-after 'unpack 'fix-latex-errors
2353 (lambda _
2354 (with-fluids ((%default-port-encoding #f))
2355 (substitute* "doc/references.bib"
2356 (("\\{S\\}illanp[^,]+,")
2357 "{S}illanp{\\\"a}{\\\"a},")))
2358 ;; XXX: I just can't get pdflatex to not complain about these
2359 ;; characters. They end up in the manual via the generated
2360 ;; discrover-cli-help.txt.
2361 (substitute* "src/hmm/cli.cpp"
2362 (("µ") "mu")
2363 (("η") "eta")
2364 (("≤") "<="))
2365 ;; This seems to be a syntax error.
2366 (substitute* "doc/discrover-manual.tex"
2367 (("theverbbox\\[t\\]") "theverbbox"))
2368 #t))
2369 (add-after 'unpack 'add-missing-includes
2370 (lambda _
2371 (substitute* "src/executioninformation.hpp"
2372 (("#define EXECUTIONINFORMATION_HPP" line)
2373 (string-append line "\n#include <random>")))
2374 (substitute* "src/plasma/fasta.hpp"
2375 (("#define FASTA_HPP" line)
2376 (string-append line "\n#include <random>")))
2377 #t))
2378 ;; FIXME: this is needed because we're using texlive-union, which
2379 ;; doesn't handle fonts correctly. It expects to be able to generate
2380 ;; fonts in the home directory.
2381 (add-before 'build 'setenv-HOME
2382 (lambda _ (setenv "HOME" "/tmp") #t)))))
2383 (inputs
2384 `(("boost" ,boost)
2385 ("cairo" ,cairo)
2386 ("rmath-standalone" ,rmath-standalone)))
2387 (native-inputs
2388 `(("texlive" ,(texlive-union (list texlive-fonts-cm
2389 texlive-fonts-amsfonts
2390
2391 texlive-latex-doi
2392 texlive-latex-examplep
2393 texlive-latex-hyperref
2394 texlive-latex-ms
2395 texlive-latex-natbib
2396 texlive-bibtex ; style files used by natbib
2397 texlive-latex-pgf ; tikz
2398 texlive-latex-verbatimbox)))
2399 ("imagemagick" ,imagemagick)))
2400 (home-page "http://dorina.mdc-berlin.de/public/rajewsky/discrover/")
2401 (synopsis "Discover discriminative nucleotide sequence motifs")
2402 (description "Discrover is a motif discovery method to find binding sites
2403 of nucleic acid binding proteins.")
2404 (license license:gpl3+)))
2405
2406 (define-public eigensoft
2407 (package
2408 (name "eigensoft")
2409 (version "7.2.1")
2410 (source
2411 (origin
2412 (method git-fetch)
2413 (uri (git-reference
2414 (url "https://github.com/DReichLab/EIG.git")
2415 (commit (string-append "v" version))))
2416 (file-name (git-file-name name version))
2417 (sha256
2418 (base32
2419 "1c141fqvhnzibmnf22sv23vbmzm20kjjyrib44cfh75wyndp2d9k"))
2420 (modules '((guix build utils)))
2421 ;; Remove pre-built binaries.
2422 (snippet '(begin
2423 (delete-file-recursively "bin")
2424 (mkdir "bin")
2425 #t))))
2426 (build-system gnu-build-system)
2427 (arguments
2428 `(#:tests? #f ; There are no tests.
2429 #:make-flags '("CC=gcc")
2430 #:phases
2431 (modify-phases %standard-phases
2432 ;; There is no configure phase, but the Makefile is in a
2433 ;; sub-directory.
2434 (replace 'configure
2435 (lambda _ (chdir "src") #t))
2436 ;; The provided install target only copies executables to
2437 ;; the "bin" directory in the build root.
2438 (add-after 'install 'actually-install
2439 (lambda* (#:key outputs #:allow-other-keys)
2440 (let* ((out (assoc-ref outputs "out"))
2441 (bin (string-append out "/bin")))
2442 (for-each (lambda (file)
2443 (install-file file bin))
2444 (find-files "../bin" ".*"))
2445 #t))))))
2446 (inputs
2447 `(("gsl" ,gsl)
2448 ("lapack" ,lapack)
2449 ("openblas" ,openblas)
2450 ("perl" ,perl)
2451 ("gfortran" ,gfortran "lib")))
2452 (home-page "https://github.com/DReichLab/EIG")
2453 (synopsis "Tools for population genetics")
2454 (description "The EIGENSOFT package provides tools for population
2455 genetics and stratification correction. EIGENSOFT implements methods commonly
2456 used in population genetics analyses such as PCA, computation of Tracy-Widom
2457 statistics, and finding related individuals in structured populations. It
2458 comes with a built-in plotting script and supports multiple file formats and
2459 quantitative phenotypes.")
2460 ;; The license of the eigensoft tools is Expat, but since it's
2461 ;; linking with the GNU Scientific Library (GSL) the effective
2462 ;; license is the GPL.
2463 (license license:gpl3+)))
2464
2465 (define-public edirect
2466 (package
2467 (name "edirect")
2468 (version "10.2.20181018")
2469 (source (origin
2470 (method url-fetch)
2471 (uri (string-append "ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect"
2472 "/versions/" version
2473 "/edirect-" version ".tar.gz"))
2474 (sha256
2475 (base32
2476 "091f4aigzpbqih6h82nq566gkp3y07i72yqndmqskfgar1vwgci7"))))
2477 (build-system perl-build-system)
2478 (arguments
2479 `(#:phases
2480 (modify-phases %standard-phases
2481 (delete 'configure)
2482 (delete 'build)
2483 (delete 'check) ; simple check after install
2484 (replace 'install
2485 (lambda* (#:key outputs #:allow-other-keys)
2486 (install-file "edirect.pl"
2487 (string-append (assoc-ref outputs "out") "/bin"))
2488 #t))
2489 (add-after 'install 'wrap-program
2490 (lambda* (#:key outputs #:allow-other-keys)
2491 ;; Make sure 'edirect.pl' finds all perl inputs at runtime.
2492 (let* ((out (assoc-ref outputs "out"))
2493 (path (getenv "PERL5LIB")))
2494 (wrap-program (string-append out "/bin/edirect.pl")
2495 `("PERL5LIB" ":" prefix (,path))))
2496 #t))
2497 (add-after 'wrap-program 'check
2498 (lambda* (#:key outputs #:allow-other-keys)
2499 (invoke (string-append (assoc-ref outputs "out")
2500 "/bin/edirect.pl")
2501 "-filter" "-help")
2502 #t)))))
2503 (inputs
2504 `(("perl-html-parser" ,perl-html-parser)
2505 ("perl-encode-locale" ,perl-encode-locale)
2506 ("perl-file-listing" ,perl-file-listing)
2507 ("perl-html-tagset" ,perl-html-tagset)
2508 ("perl-html-tree" ,perl-html-tree)
2509 ("perl-http-cookies" ,perl-http-cookies)
2510 ("perl-http-date" ,perl-http-date)
2511 ("perl-http-message" ,perl-http-message)
2512 ("perl-http-negotiate" ,perl-http-negotiate)
2513 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
2514 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
2515 ("perl-net-http" ,perl-net-http)
2516 ("perl-uri" ,perl-uri)
2517 ("perl-www-robotrules" ,perl-www-robotrules)
2518 ("perl-xml-simple" ,perl-xml-simple)
2519 ("perl" ,perl)))
2520 (home-page "http://www.ncbi.nlm.nih.gov/books/NBK179288/")
2521 (synopsis "Tools for accessing the NCBI's set of databases")
2522 (description
2523 "Entrez Direct (EDirect) is a method for accessing the National Center
2524 for Biotechnology Information's (NCBI) set of interconnected
2525 databases (publication, sequence, structure, gene, variation, expression,
2526 etc.) from a terminal. Functions take search terms from command-line
2527 arguments. Individual operations are combined to build multi-step queries.
2528 Record retrieval and formatting normally complete the process.
2529
2530 EDirect also provides an argument-driven function that simplifies the
2531 extraction of data from document summaries or other results that are returned
2532 in structured XML format. This can eliminate the need for writing custom
2533 software to answer ad hoc questions.")
2534 (license license:public-domain)))
2535
2536 (define-public exonerate
2537 (package
2538 (name "exonerate")
2539 (version "2.4.0")
2540 (source
2541 (origin
2542 (method url-fetch)
2543 (uri
2544 (string-append
2545 "http://ftp.ebi.ac.uk/pub/software/vertebrategenomics/exonerate/"
2546 "exonerate-" version ".tar.gz"))
2547 (sha256
2548 (base32
2549 "0hj0m9xygiqsdxvbg79wq579kbrx1mdrabi2bzqz2zn9qwfjcjgq"))))
2550 (build-system gnu-build-system)
2551 (arguments
2552 `(#:parallel-build? #f)) ; Building in parallel fails on some machines.
2553 (native-inputs
2554 `(("pkg-config" ,pkg-config)))
2555 (inputs
2556 `(("glib" ,glib)))
2557 (home-page
2558 "https://www.ebi.ac.uk/about/vertebrate-genomics/software/exonerate")
2559 (synopsis "Generic tool for biological sequence alignment")
2560 (description
2561 "Exonerate is a generic tool for pairwise sequence comparison. It allows
2562 the alignment of sequences using a many alignment models, either exhaustive
2563 dynamic programming or a variety of heuristics.")
2564 (license license:gpl3)))
2565
2566 (define-public express
2567 (package
2568 (name "express")
2569 (version "1.5.1")
2570 (source (origin
2571 (method url-fetch)
2572 (uri
2573 (string-append
2574 "http://bio.math.berkeley.edu/eXpress/downloads/express-"
2575 version "/express-" version "-src.tgz"))
2576 (sha256
2577 (base32
2578 "03rczxd0gjp2l1jxcmjfmf5j94j77zqyxa6x063zsc585nj40n0c"))))
2579 (build-system cmake-build-system)
2580 (arguments
2581 `(#:tests? #f ;no "check" target
2582 #:phases
2583 (modify-phases %standard-phases
2584 (add-after 'unpack 'use-shared-boost-libs-and-set-bamtools-paths
2585 (lambda* (#:key inputs #:allow-other-keys)
2586 (substitute* "CMakeLists.txt"
2587 (("set\\(Boost_USE_STATIC_LIBS ON\\)")
2588 "set(Boost_USE_STATIC_LIBS OFF)")
2589 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/bamtools/include")
2590 (string-append (assoc-ref inputs "bamtools") "/include/bamtools")))
2591 (substitute* "src/CMakeLists.txt"
2592 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/\\.\\./bamtools/lib")
2593 (string-append (assoc-ref inputs "bamtools") "/lib"))
2594 (("libprotobuf.a") "libprotobuf.so"))
2595 #t)))))
2596 (inputs
2597 `(("boost" ,boost)
2598 ("bamtools" ,bamtools)
2599 ("protobuf" ,protobuf)
2600 ("zlib" ,zlib)))
2601 (home-page "http://bio.math.berkeley.edu/eXpress")
2602 (synopsis "Streaming quantification for high-throughput genomic sequencing")
2603 (description
2604 "eXpress is a streaming tool for quantifying the abundances of a set of
2605 target sequences from sampled subsequences. Example applications include
2606 transcript-level RNA-Seq quantification, allele-specific/haplotype expression
2607 analysis (from RNA-Seq), transcription factor binding quantification in
2608 ChIP-Seq, and analysis of metagenomic data.")
2609 (license license:artistic2.0)))
2610
2611 (define-public express-beta-diversity
2612 (package
2613 (name "express-beta-diversity")
2614 (version "1.0.8")
2615 (source (origin
2616 (method git-fetch)
2617 (uri (git-reference
2618 (url "https://github.com/dparks1134/ExpressBetaDiversity.git")
2619 (commit (string-append "v" version))))
2620 (file-name (git-file-name name version))
2621 (sha256
2622 (base32
2623 "0s0yzg5c21349rh7x4w9266jsvnp7j1hp9cf8sk32hz8nvrj745x"))))
2624 (build-system gnu-build-system)
2625 (arguments
2626 `(#:phases
2627 (modify-phases %standard-phases
2628 (delete 'configure)
2629 (add-before 'build 'enter-source (lambda _ (chdir "source") #t))
2630 (replace 'check
2631 (lambda _ (invoke "../bin/ExpressBetaDiversity" "-u") #t))
2632 (replace 'install
2633 (lambda* (#:key outputs #:allow-other-keys)
2634 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
2635 (install-file "../scripts/convertToEBD.py" bin)
2636 (install-file "../bin/ExpressBetaDiversity" bin)
2637 #t))))))
2638 (inputs
2639 `(("python" ,python-2)))
2640 (home-page "http://kiwi.cs.dal.ca/Software/ExpressBetaDiversity")
2641 (synopsis "Taxon- and phylogenetic-based beta diversity measures")
2642 (description
2643 "Express Beta Diversity (EBD) calculates ecological beta diversity
2644 (dissimilarity) measures between biological communities. EBD implements a
2645 variety of diversity measures including those that make use of phylogenetic
2646 similarity of community members.")
2647 (license license:gpl3+)))
2648
2649 (define-public fasttree
2650 (package
2651 (name "fasttree")
2652 (version "2.1.10")
2653 (source (origin
2654 (method url-fetch)
2655 (uri (string-append
2656 "http://www.microbesonline.org/fasttree/FastTree-"
2657 version ".c"))
2658 (sha256
2659 (base32
2660 "0vcjdvy1j4m702vmak4svbfkrpcw63k7wymfksjp9a982zy8kjsl"))))
2661 (build-system gnu-build-system)
2662 (arguments
2663 `(#:tests? #f ; no "check" target
2664 #:phases
2665 (modify-phases %standard-phases
2666 (delete 'unpack)
2667 (delete 'configure)
2668 (replace 'build
2669 (lambda* (#:key source #:allow-other-keys)
2670 (invoke "gcc"
2671 "-O3"
2672 "-finline-functions"
2673 "-funroll-loops"
2674 "-Wall"
2675 "-o"
2676 "FastTree"
2677 source
2678 "-lm")
2679 (invoke "gcc"
2680 "-DOPENMP"
2681 "-fopenmp"
2682 "-O3"
2683 "-finline-functions"
2684 "-funroll-loops"
2685 "-Wall"
2686 "-o"
2687 "FastTreeMP"
2688 source
2689 "-lm")
2690 #t))
2691 (replace 'install
2692 (lambda* (#:key outputs #:allow-other-keys)
2693 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
2694 (install-file "FastTree" bin)
2695 (install-file "FastTreeMP" bin)
2696 #t))))))
2697 (home-page "http://www.microbesonline.org/fasttree")
2698 (synopsis "Infers approximately-maximum-likelihood phylogenetic trees")
2699 (description
2700 "FastTree can handle alignments with up to a million of sequences in a
2701 reasonable amount of time and memory. For large alignments, FastTree is
2702 100-1,000 times faster than PhyML 3.0 or RAxML 7.")
2703 (license license:gpl2+)))
2704
2705 (define-public fastx-toolkit
2706 (package
2707 (name "fastx-toolkit")
2708 (version "0.0.14")
2709 (source (origin
2710 (method url-fetch)
2711 (uri
2712 (string-append
2713 "https://github.com/agordon/fastx_toolkit/releases/download/"
2714 version "/fastx_toolkit-" version ".tar.bz2"))
2715 (sha256
2716 (base32
2717 "01jqzw386873sr0pjp1wr4rn8fsga2vxs1qfmicvx1pjr72007wy"))))
2718 (build-system gnu-build-system)
2719 (inputs
2720 `(("libgtextutils" ,libgtextutils)))
2721 (native-inputs
2722 `(("pkg-config" ,pkg-config)))
2723 (home-page "http://hannonlab.cshl.edu/fastx_toolkit/")
2724 (synopsis "Tools for FASTA/FASTQ file preprocessing")
2725 (description
2726 "The FASTX-Toolkit is a collection of command line tools for Short-Reads
2727 FASTA/FASTQ files preprocessing.
2728
2729 Next-Generation sequencing machines usually produce FASTA or FASTQ files,
2730 containing multiple short-reads sequences. The main processing of such
2731 FASTA/FASTQ files is mapping the sequences to reference genomes. However, it
2732 is sometimes more productive to preprocess the files before mapping the
2733 sequences to the genome---manipulating the sequences to produce better mapping
2734 results. The FASTX-Toolkit tools perform some of these preprocessing tasks.")
2735 (license license:agpl3+)))
2736
2737 (define-public flexbar
2738 (package
2739 (name "flexbar")
2740 (version "3.4.0")
2741 (source (origin
2742 (method git-fetch)
2743 (uri (git-reference
2744 (url "https://github.com/seqan/flexbar.git")
2745 (commit (string-append "v" version))))
2746 (file-name (git-file-name name version))
2747 (sha256
2748 (base32
2749 "1pq9sxvdnldl14libk234m72dqhwgzs3acgl943wchwdqlcsi5r2"))))
2750 (build-system cmake-build-system)
2751 (arguments
2752 `(#:phases
2753 (modify-phases %standard-phases
2754 (add-after 'unpack 'do-not-tune-to-CPU
2755 (lambda _
2756 (substitute* "src/CMakeLists.txt"
2757 ((" -march=native") ""))
2758 #t))
2759 (replace 'check
2760 (lambda* (#:key outputs #:allow-other-keys)
2761 (setenv "PATH" (string-append (getcwd) ":" (getenv "PATH")))
2762 (with-directory-excursion "../source/test"
2763 (invoke "bash" "flexbar_test.sh"))
2764 #t))
2765 (replace 'install
2766 (lambda* (#:key outputs #:allow-other-keys)
2767 (let* ((out (string-append (assoc-ref outputs "out")))
2768 (bin (string-append out "/bin/")))
2769 (install-file "flexbar" bin))
2770 #t)))))
2771 (inputs
2772 `(("tbb" ,tbb)
2773 ("zlib" ,zlib)))
2774 (native-inputs
2775 `(("pkg-config" ,pkg-config)
2776 ("seqan" ,seqan)))
2777 (home-page "https://github.com/seqan/flexbar")
2778 (synopsis "Barcode and adapter removal tool for sequencing platforms")
2779 (description
2780 "Flexbar preprocesses high-throughput nucleotide sequencing data
2781 efficiently. It demultiplexes barcoded runs and removes adapter sequences.
2782 Moreover, trimming and filtering features are provided. Flexbar increases
2783 read mapping rates and improves genome and transcriptome assemblies. It
2784 supports next-generation sequencing data in fasta/q and csfasta/q format from
2785 Illumina, Roche 454, and the SOLiD platform.")
2786 (license license:bsd-3)))
2787
2788 (define-public fraggenescan
2789 (package
2790 (name "fraggenescan")
2791 (version "1.30")
2792 (source
2793 (origin
2794 (method url-fetch)
2795 (uri
2796 (string-append "mirror://sourceforge/fraggenescan/"
2797 "FragGeneScan" version ".tar.gz"))
2798 (sha256
2799 (base32 "158dcnwczgcyhwm4qlx19sanrwgdpzf6bn2y57mbpx55lkgz1mzj"))))
2800 (build-system gnu-build-system)
2801 (arguments
2802 `(#:phases
2803 (modify-phases %standard-phases
2804 (delete 'configure)
2805 (add-before 'build 'patch-paths
2806 (lambda* (#:key outputs #:allow-other-keys)
2807 (let* ((out (string-append (assoc-ref outputs "out")))
2808 (share (string-append out "/share/fraggenescan/")))
2809 (substitute* "run_FragGeneScan.pl"
2810 (("system\\(\"rm")
2811 (string-append "system(\"" (which "rm")))
2812 (("system\\(\"mv")
2813 (string-append "system(\"" (which "mv")))
2814 (("\\\"awk") (string-append "\"" (which "awk")))
2815 ;; This script and other programs expect the training files
2816 ;; to be in the non-standard location bin/train/XXX. Change
2817 ;; this to be share/fraggenescan/train/XXX instead.
2818 (("^\\$train.file = \\$dir.*")
2819 (string-append "$train_file = \""
2820 share
2821 "train/\".$FGS_train_file;")))
2822 (substitute* "run_hmm.c"
2823 (("^ strcat\\(train_dir, \\\"train/\\\"\\);")
2824 (string-append " strcpy(train_dir, \"" share "/train/\");"))))
2825 #t))
2826 (replace 'build
2827 (lambda _
2828 (invoke "make" "clean")
2829 (invoke "make" "fgs")
2830 #t))
2831 (replace 'install
2832 (lambda* (#:key outputs #:allow-other-keys)
2833 (let* ((out (string-append (assoc-ref outputs "out")))
2834 (bin (string-append out "/bin/"))
2835 (share (string-append out "/share/fraggenescan/train")))
2836 (install-file "run_FragGeneScan.pl" bin)
2837 (install-file "FragGeneScan" bin)
2838 (copy-recursively "train" share))
2839 #t))
2840 (delete 'check)
2841 (add-after 'install 'post-install-check
2842 ;; In lieu of 'make check', run one of the examples and check the
2843 ;; output files gets created.
2844 (lambda* (#:key outputs #:allow-other-keys)
2845 (let* ((out (string-append (assoc-ref outputs "out")))
2846 (bin (string-append out "/bin/"))
2847 (frag (string-append bin "run_FragGeneScan.pl")))
2848 ;; Test complete genome.
2849 (invoke frag
2850 "-genome=./example/NC_000913.fna"
2851 "-out=./test2"
2852 "-complete=1"
2853 "-train=complete")
2854 (unless (and (file-exists? "test2.faa")
2855 (file-exists? "test2.ffn")
2856 (file-exists? "test2.gff")
2857 (file-exists? "test2.out"))
2858 (error "Expected files do not exist."))
2859 ;; Test incomplete sequences.
2860 (invoke frag
2861 "-genome=./example/NC_000913-fgs.ffn"
2862 "-out=out"
2863 "-complete=0"
2864 "-train=454_30")
2865 #t))))))
2866 (inputs
2867 `(("perl" ,perl)
2868 ("python" ,python-2))) ;not compatible with python 3.
2869 (home-page "https://sourceforge.net/projects/fraggenescan/")
2870 (synopsis "Finds potentially fragmented genes in short reads")
2871 (description
2872 "FragGeneScan is a program for predicting bacterial and archaeal genes in
2873 short and error-prone DNA sequencing reads. It can also be applied to predict
2874 genes in incomplete assemblies or complete genomes.")
2875 ;; GPL3+ according to private correspondense with the authors.
2876 (license license:gpl3+)))
2877
2878 (define-public fxtract
2879 (let ((util-commit "776ca85a18a47492af3794745efcb4a905113115"))
2880 (package
2881 (name "fxtract")
2882 (version "2.3")
2883 (source
2884 (origin
2885 (method git-fetch)
2886 (uri (git-reference
2887 (url "https://github.com/ctSkennerton/fxtract.git")
2888 (commit version)))
2889 (file-name (git-file-name name version))
2890 (sha256
2891 (base32
2892 "0hab3gpwf4w9s87qlbswq6ws1qqybh4dcqk79q1ahyldzai5fgp5"))))
2893 (build-system gnu-build-system)
2894 (arguments
2895 `(#:make-flags (list
2896 (string-append "PREFIX=" (assoc-ref %outputs "out"))
2897 "CC=gcc")
2898 #:test-target "fxtract_test"
2899 #:phases
2900 (modify-phases %standard-phases
2901 (delete 'configure)
2902 (add-before 'build 'copy-util
2903 (lambda* (#:key inputs #:allow-other-keys)
2904 (rmdir "util")
2905 (copy-recursively (assoc-ref inputs "ctskennerton-util") "util")
2906 #t))
2907 ;; Do not use make install as this requires additional dependencies.
2908 (replace 'install
2909 (lambda* (#:key outputs #:allow-other-keys)
2910 (let* ((out (assoc-ref outputs "out"))
2911 (bin (string-append out"/bin")))
2912 (install-file "fxtract" bin)
2913 #t))))))
2914 (inputs
2915 `(("pcre" ,pcre)
2916 ("zlib" ,zlib)))
2917 (native-inputs
2918 ;; ctskennerton-util is licensed under GPL2.
2919 `(("ctskennerton-util"
2920 ,(origin
2921 (method git-fetch)
2922 (uri (git-reference
2923 (url "https://github.com/ctSkennerton/util.git")
2924 (commit util-commit)))
2925 (file-name (string-append
2926 "ctstennerton-util-" util-commit "-checkout"))
2927 (sha256
2928 (base32
2929 "0cls1hd4vgj3f36fpzzg4xc77d6f3hpc60cbpfmn2gdr7ykzzad7"))))))
2930 (home-page "https://github.com/ctSkennerton/fxtract")
2931 (synopsis "Extract sequences from FASTA and FASTQ files")
2932 (description
2933 "Fxtract extracts sequences from a protein or nucleotide fastx (FASTA
2934 or FASTQ) file given a subsequence. It uses a simple substring search for
2935 basic tasks but can change to using POSIX regular expressions, PCRE, hash
2936 lookups or multi-pattern searching as required. By default fxtract looks in
2937 the sequence of each record but can also be told to look in the header,
2938 comment or quality sections.")
2939 ;; 'util' requires SSE instructions.
2940 (supported-systems '("x86_64-linux"))
2941 (license license:expat))))
2942
2943 (define-public gemma
2944 (package
2945 (name "gemma")
2946 (version "0.98")
2947 (source (origin
2948 (method git-fetch)
2949 (uri (git-reference
2950 (url "https://github.com/xiangzhou/GEMMA.git")
2951 (commit (string-append "v" version))))
2952 (file-name (git-file-name name version))
2953 (sha256
2954 (base32
2955 "1s3ncnbn45r2hh1cvrqky1kbqq6546biypr4f5mkw1kqlrgyh0yg"))))
2956 (inputs
2957 `(("eigen" ,eigen)
2958 ("gfortran" ,gfortran "lib")
2959 ("gsl" ,gsl)
2960 ("lapack" ,lapack)
2961 ("openblas" ,openblas)
2962 ("zlib" ,zlib)))
2963 (build-system gnu-build-system)
2964 (arguments
2965 `(#:make-flags
2966 '(,@(match (%current-system)
2967 ("x86_64-linux"
2968 '("FORCE_DYNAMIC=1"))
2969 ("i686-linux"
2970 '("FORCE_DYNAMIC=1" "FORCE_32BIT=1"))
2971 (_
2972 '("FORCE_DYNAMIC=1" "NO_INTEL_COMPAT=1"))))
2973 #:phases
2974 (modify-phases %standard-phases
2975 (delete 'configure)
2976 (add-after 'unpack 'find-eigen
2977 (lambda* (#:key inputs #:allow-other-keys)
2978 ;; Ensure that Eigen headers can be found
2979 (setenv "CPLUS_INCLUDE_PATH"
2980 (string-append (getenv "CPLUS_INCLUDE_PATH")
2981 ":"
2982 (assoc-ref inputs "eigen")
2983 "/include/eigen3"))
2984 #t))
2985 (add-before 'build 'bin-mkdir
2986 (lambda _
2987 (mkdir-p "bin")
2988 #t))
2989 (replace 'install
2990 (lambda* (#:key outputs #:allow-other-keys)
2991 (let ((out (assoc-ref outputs "out")))
2992 (install-file "bin/gemma"
2993 (string-append
2994 out "/bin")))
2995 #t)))
2996 #:tests? #f)) ; no tests included yet
2997 (home-page "https://github.com/xiangzhou/GEMMA")
2998 (synopsis "Tool for genome-wide efficient mixed model association")
2999 (description
3000 "Genome-wide Efficient Mixed Model Association (GEMMA) provides a
3001 standard linear mixed model resolver with application in genome-wide
3002 association studies (GWAS).")
3003 (license license:gpl3)))
3004
3005 (define-public grit
3006 (package
3007 (name "grit")
3008 (version "2.0.5")
3009 (source (origin
3010 (method git-fetch)
3011 (uri (git-reference
3012 (url "https://github.com/nboley/grit.git")
3013 (commit version)))
3014 (file-name (git-file-name name version))
3015 (sha256
3016 (base32
3017 "1l5v8vfvfbrpmgnrvbrbv40d0arhxcnmxgv2f1mlcqfa3q6bkqm9"))))
3018 (build-system python-build-system)
3019 (arguments
3020 `(#:python ,python-2
3021 #:phases
3022 (modify-phases %standard-phases
3023 (add-after 'unpack 'generate-from-cython-sources
3024 (lambda* (#:key inputs outputs #:allow-other-keys)
3025 ;; Delete these C files to force fresh generation from pyx sources.
3026 (delete-file "grit/sparsify_support_fns.c")
3027 (delete-file "grit/call_peaks_support_fns.c")
3028 (substitute* "setup.py"
3029 (("Cython.Setup") "Cython.Build"))
3030 #t)))))
3031 (inputs
3032 `(("python-scipy" ,python2-scipy)
3033 ("python-numpy" ,python2-numpy)
3034 ("python-pysam" ,python2-pysam)
3035 ("python-networkx" ,python2-networkx)))
3036 (native-inputs
3037 `(("python-cython" ,python2-cython)))
3038 (home-page "http://grit-bio.org")
3039 (synopsis "Tool for integrative analysis of RNA-seq type assays")
3040 (description
3041 "GRIT is designed to use RNA-seq, TES, and TSS data to build and quantify
3042 full length transcript models. When none of these data sources are available,
3043 GRIT can be run by providing a candidate set of TES or TSS sites. In
3044 addition, GRIT can merge in reference junctions and gene boundaries. GRIT can
3045 also be run in quantification mode, where it uses a provided GTF file and just
3046 estimates transcript expression.")
3047 (license license:gpl3+)))
3048
3049 (define-public hisat
3050 (package
3051 (name "hisat")
3052 (version "0.1.4")
3053 (source (origin
3054 (method url-fetch)
3055 (uri (string-append
3056 "http://ccb.jhu.edu/software/hisat/downloads/hisat-"
3057 version "-beta-source.zip"))
3058 (sha256
3059 (base32
3060 "1k381ydranqxp09yf2y7w1d0chz5d59vb6jchi89hbb0prq19lk5"))))
3061 (build-system gnu-build-system)
3062 (arguments
3063 `(#:tests? #f ;no check target
3064 #:make-flags '("allall"
3065 ;; Disable unsupported `popcnt' instructions on
3066 ;; architectures other than x86_64
3067 ,@(if (string-prefix? "x86_64"
3068 (or (%current-target-system)
3069 (%current-system)))
3070 '()
3071 '("POPCNT_CAPABILITY=0")))
3072 #:phases
3073 (modify-phases %standard-phases
3074 (add-after 'unpack 'patch-sources
3075 (lambda _
3076 ;; XXX Cannot use snippet because zip files are not supported
3077 (substitute* "Makefile"
3078 (("^CC = .*$") "CC = gcc")
3079 (("^CPP = .*$") "CPP = g++")
3080 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
3081 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
3082 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
3083 (substitute* '("hisat-build" "hisat-inspect")
3084 (("/usr/bin/env") (which "env")))
3085 #t))
3086 (replace 'install
3087 (lambda* (#:key outputs #:allow-other-keys)
3088 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
3089 (for-each (lambda (file)
3090 (install-file file bin))
3091 (find-files
3092 "."
3093 "hisat(-(build|align|inspect)(-(s|l)(-debug)*)*)*$")))
3094 #t))
3095 (delete 'configure))))
3096 (native-inputs
3097 `(("unzip" ,unzip)))
3098 (inputs
3099 `(("perl" ,perl)
3100 ("python" ,python)
3101 ("zlib" ,zlib)))
3102 ;; Non-portable SSE instructions are used so building fails on platforms
3103 ;; other than x86_64.
3104 (supported-systems '("x86_64-linux"))
3105 (home-page "http://ccb.jhu.edu/software/hisat/index.shtml")
3106 (synopsis "Hierarchical indexing for spliced alignment of transcripts")
3107 (description
3108 "HISAT is a fast and sensitive spliced alignment program for mapping
3109 RNA-seq reads. In addition to one global FM index that represents a whole
3110 genome, HISAT uses a large set of small FM indexes that collectively cover the
3111 whole genome. These small indexes (called local indexes) combined with
3112 several alignment strategies enable effective alignment of RNA-seq reads, in
3113 particular, reads spanning multiple exons.")
3114 (license license:gpl3+)))
3115
3116 (define-public hisat2
3117 (package
3118 (name "hisat2")
3119 (version "2.0.5")
3120 (source
3121 (origin
3122 (method url-fetch)
3123 (uri (string-append "ftp://ftp.ccb.jhu.edu/pub/infphilo/hisat2"
3124 "/downloads/hisat2-" version "-source.zip"))
3125 (sha256
3126 (base32
3127 "0lywnr8kijwsc2aw10dwxic0n0yvip6fl3rjlvc8zzwahamy4x7g"))))
3128 (build-system gnu-build-system)
3129 (arguments
3130 `(#:tests? #f ; no check target
3131 #:make-flags (list "CC=gcc" "CXX=g++" "allall")
3132 #:modules ((guix build gnu-build-system)
3133 (guix build utils)
3134 (srfi srfi-26))
3135 #:phases
3136 (modify-phases %standard-phases
3137 (add-after 'unpack 'make-deterministic
3138 (lambda _
3139 (substitute* "Makefile"
3140 (("`date`") "0"))
3141 #t))
3142 (delete 'configure)
3143 (replace 'install
3144 (lambda* (#:key outputs #:allow-other-keys)
3145 (let* ((out (assoc-ref outputs "out"))
3146 (bin (string-append out "/bin/"))
3147 (doc (string-append out "/share/doc/hisat2/")))
3148 (for-each
3149 (cut install-file <> bin)
3150 (find-files "."
3151 "hisat2(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))
3152 (mkdir-p doc)
3153 (install-file "doc/manual.inc.html" doc))
3154 #t)))))
3155 (native-inputs
3156 `(("unzip" ,unzip) ; needed for archive from ftp
3157 ("perl" ,perl)
3158 ("pandoc" ,ghc-pandoc))) ; for documentation
3159 (home-page "http://ccb.jhu.edu/software/hisat2/index.shtml")
3160 (synopsis "Graph-based alignment of genomic sequencing reads")
3161 (description "HISAT2 is a fast and sensitive alignment program for mapping
3162 next-generation sequencing reads (both DNA and RNA) to a population of human
3163 genomes (as well as to a single reference genome). In addition to using one
3164 global @dfn{graph FM} (GFM) index that represents a population of human
3165 genomes, HISAT2 uses a large set of small GFM indexes that collectively cover
3166 the whole genome. These small indexes, combined with several alignment
3167 strategies, enable rapid and accurate alignment of sequencing reads. This new
3168 indexing scheme is called a @dfn{Hierarchical Graph FM index} (HGFM).")
3169 ;; HISAT2 contains files from Bowtie2, which is released under
3170 ;; GPLv2 or later. The HISAT2 source files are released under
3171 ;; GPLv3 or later.
3172 (license license:gpl3+)))
3173
3174 (define-public hmmer
3175 (package
3176 (name "hmmer")
3177 (version "3.2.1")
3178 (source
3179 (origin
3180 (method url-fetch)
3181 (uri (string-append
3182 "http://eddylab.org/software/hmmer/hmmer-" version ".tar.gz"))
3183 (sha256
3184 (base32
3185 "171bivy6xhgjsz5nv53n81pc3frnwz29ylblawk2bv46szwjjqd5"))))
3186 (build-system gnu-build-system)
3187 (native-inputs `(("perl" ,perl)))
3188 (home-page "http://hmmer.org/")
3189 (synopsis "Biosequence analysis using profile hidden Markov models")
3190 (description
3191 "HMMER is used for searching sequence databases for homologs of protein
3192 sequences, and for making protein sequence alignments. It implements methods
3193 using probabilistic models called profile hidden Markov models (profile
3194 HMMs).")
3195 ;; hmmer uses non-portable SSE intrinsics so building fails on other
3196 ;; platforms.
3197 (supported-systems '("x86_64-linux" "i686-linux"))
3198 (license license:bsd-3)))
3199
3200 (define-public htseq
3201 (package
3202 (name "htseq")
3203 (version "0.9.1")
3204 (source (origin
3205 (method url-fetch)
3206 (uri (pypi-uri "HTSeq" version))
3207 (sha256
3208 (base32
3209 "11flgb1381xdhk43bzbfm3vhnszkpqg6jk76rpa5xd1zbrvvlnxg"))))
3210 (build-system python-build-system)
3211 (native-inputs
3212 `(("python-cython" ,python-cython)))
3213 ;; Numpy needs to be propagated when htseq is used as a Python library.
3214 (propagated-inputs
3215 `(("python-numpy" ,python-numpy)))
3216 (inputs
3217 `(("python-pysam" ,python-pysam)
3218 ("python-matplotlib" ,python-matplotlib)))
3219 (home-page "http://www-huber.embl.de/users/anders/HTSeq/")
3220 (synopsis "Analysing high-throughput sequencing data with Python")
3221 (description
3222 "HTSeq is a Python package that provides infrastructure to process data
3223 from high-throughput sequencing assays.")
3224 (license license:gpl3+)))
3225
3226 (define-public python2-htseq
3227 (package-with-python2 htseq))
3228
3229 (define-public java-htsjdk
3230 (package
3231 (name "java-htsjdk")
3232 (version "2.3.0") ; last version without build dependency on gradle
3233 (source (origin
3234 (method git-fetch)
3235 (uri (git-reference
3236 (url "https://github.com/samtools/htsjdk.git")
3237 (commit version)))
3238 (file-name (git-file-name name version))
3239 (sha256
3240 (base32
3241 "1b178ixcabanm834ydjl3jiakpyxdmki32hqfv2abrzn3rcwa28i"))
3242 (modules '((guix build utils)))
3243 (snippet
3244 ;; Delete pre-built binaries
3245 '(begin
3246 (delete-file-recursively "lib")
3247 (mkdir-p "lib")
3248 #t))))
3249 (build-system ant-build-system)
3250 (arguments
3251 `(#:tests? #f ; test require Internet access
3252 #:jdk ,icedtea-8
3253 #:make-flags
3254 (list (string-append "-Ddist=" (assoc-ref %outputs "out")
3255 "/share/java/htsjdk/"))
3256 #:build-target "all"
3257 #:phases
3258 (modify-phases %standard-phases
3259 ;; The build phase also installs the jars
3260 (delete 'install))))
3261 (inputs
3262 `(("java-ngs" ,java-ngs)
3263 ("java-snappy-1" ,java-snappy-1)
3264 ("java-commons-compress" ,java-commons-compress)
3265 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
3266 ("java-commons-jexl-2" ,java-commons-jexl-2)
3267 ("java-xz" ,java-xz)))
3268 (native-inputs
3269 `(("java-testng" ,java-testng)))
3270 (home-page "http://samtools.github.io/htsjdk/")
3271 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3272 (description
3273 "HTSJDK is an implementation of a unified Java library for accessing
3274 common file formats, such as SAM and VCF, used for high-throughput
3275 sequencing (HTS) data. There are also an number of useful utilities for
3276 manipulating HTS data.")
3277 (license license:expat)))
3278
3279 (define-public java-htsjdk-latest
3280 (package
3281 (name "java-htsjdk")
3282 (version "2.14.3")
3283 (source (origin
3284 (method git-fetch)
3285 (uri (git-reference
3286 (url "https://github.com/samtools/htsjdk.git")
3287 (commit version)))
3288 (file-name (string-append name "-" version "-checkout"))
3289 (sha256
3290 (base32
3291 "1lmya1fdjy03mz6zmdmd86j9v9vfhqb3952mqq075navx1i6g4bc"))))
3292 (build-system ant-build-system)
3293 (arguments
3294 `(#:tests? #f ; test require Scala
3295 #:jdk ,icedtea-8
3296 #:jar-name "htsjdk.jar"
3297 #:phases
3298 (modify-phases %standard-phases
3299 (add-after 'unpack 'remove-useless-build.xml
3300 (lambda _ (delete-file "build.xml") #t))
3301 ;; The tests require the scalatest package.
3302 (add-after 'unpack 'remove-tests
3303 (lambda _ (delete-file-recursively "src/test") #t)))))
3304 (inputs
3305 `(("java-ngs" ,java-ngs)
3306 ("java-snappy-1" ,java-snappy-1)
3307 ("java-commons-compress" ,java-commons-compress)
3308 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
3309 ("java-commons-jexl-2" ,java-commons-jexl-2)
3310 ("java-xz" ,java-xz)))
3311 (native-inputs
3312 `(("java-junit" ,java-junit)))
3313 (home-page "http://samtools.github.io/htsjdk/")
3314 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3315 (description
3316 "HTSJDK is an implementation of a unified Java library for accessing
3317 common file formats, such as SAM and VCF, used for high-throughput
3318 sequencing (HTS) data. There are also an number of useful utilities for
3319 manipulating HTS data.")
3320 (license license:expat)))
3321
3322 ;; This is needed for picard 2.10.3
3323 (define-public java-htsjdk-2.10.1
3324 (package (inherit java-htsjdk-latest)
3325 (name "java-htsjdk")
3326 (version "2.10.1")
3327 (source (origin
3328 (method git-fetch)
3329 (uri (git-reference
3330 (url "https://github.com/samtools/htsjdk.git")
3331 (commit version)))
3332 (file-name (string-append name "-" version "-checkout"))
3333 (sha256
3334 (base32
3335 "1kxh7slm2pm3x9p6jxa1wqsq9a31dhiiflhxnxqcisan4k3rwia2"))))
3336 (build-system ant-build-system)
3337 (arguments
3338 `(#:tests? #f ; tests require Scala
3339 #:jdk ,icedtea-8
3340 #:jar-name "htsjdk.jar"
3341 #:phases
3342 (modify-phases %standard-phases
3343 (add-after 'unpack 'remove-useless-build.xml
3344 (lambda _ (delete-file "build.xml") #t))
3345 ;; The tests require the scalatest package.
3346 (add-after 'unpack 'remove-tests
3347 (lambda _ (delete-file-recursively "src/test") #t)))))))
3348
3349 ;; This version matches java-htsjdk 2.3.0. Later versions also require a more
3350 ;; recent version of java-htsjdk, which depends on gradle.
3351 (define-public java-picard
3352 (package
3353 (name "java-picard")
3354 (version "2.3.0")
3355 (source (origin
3356 (method git-fetch)
3357 (uri (git-reference
3358 (url "https://github.com/broadinstitute/picard.git")
3359 (commit version)))
3360 (file-name (string-append "java-picard-" version "-checkout"))
3361 (sha256
3362 (base32
3363 "1ll7mf4r3by92w2nhlmpa591xd1f46xlkwh59mq6fvbb5pdwzvx6"))
3364 (modules '((guix build utils)))
3365 (snippet
3366 '(begin
3367 ;; Delete pre-built binaries.
3368 (delete-file-recursively "lib")
3369 (mkdir-p "lib")
3370 (substitute* "build.xml"
3371 ;; Remove build-time dependency on git.
3372 (("failifexecutionfails=\"true\"")
3373 "failifexecutionfails=\"false\"")
3374 ;; Use our htsjdk.
3375 (("depends=\"compile-htsjdk, ")
3376 "depends=\"")
3377 (("depends=\"compile-htsjdk-tests, ")
3378 "depends=\"")
3379 ;; Build picard-lib.jar before building picard.jar
3380 (("name=\"picard-jar\" depends=\"" line)
3381 (string-append line "picard-lib-jar, ")))
3382 #t))))
3383 (build-system ant-build-system)
3384 (arguments
3385 `(#:build-target "picard-jar"
3386 #:test-target "test"
3387 ;; Tests require jacoco:coverage.
3388 #:tests? #f
3389 #:make-flags
3390 (list (string-append "-Dhtsjdk_lib_dir="
3391 (assoc-ref %build-inputs "java-htsjdk")
3392 "/share/java/htsjdk/")
3393 "-Dhtsjdk-classes=dist/tmp"
3394 (string-append "-Dhtsjdk-version="
3395 ,(package-version java-htsjdk)))
3396 #:jdk ,icedtea-8
3397 #:phases
3398 (modify-phases %standard-phases
3399 ;; FIXME: this phase fails with "duplicate entry: htsjdk/samtools/AbstractBAMFileIndex$1.class"
3400 (delete 'generate-jar-indices)
3401 (add-after 'unpack 'use-our-htsjdk
3402 (lambda* (#:key inputs #:allow-other-keys)
3403 (substitute* "build.xml"
3404 (("\\$\\{htsjdk\\}/lib")
3405 (string-append (assoc-ref inputs "java-htsjdk")
3406 "/share/java/htsjdk/")))
3407 #t))
3408 (add-after 'unpack 'make-test-target-independent
3409 (lambda* (#:key inputs #:allow-other-keys)
3410 (substitute* "build.xml"
3411 (("name=\"test\" depends=\"compile, ")
3412 "name=\"test\" depends=\""))
3413 #t))
3414 (replace 'install (install-jars "dist")))))
3415 (inputs
3416 `(("java-htsjdk" ,java-htsjdk)
3417 ("java-guava" ,java-guava)))
3418 (native-inputs
3419 `(("java-testng" ,java-testng)))
3420 (home-page "http://broadinstitute.github.io/picard/")
3421 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
3422 (description "Picard is a set of Java command line tools for manipulating
3423 high-throughput sequencing (HTS) data and formats. Picard is implemented
3424 using the HTSJDK Java library to support accessing file formats that are
3425 commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
3426 VCF.")
3427 (license license:expat)))
3428
3429 ;; This is needed for dropseq-tools
3430 (define-public java-picard-2.10.3
3431 (package
3432 (name "java-picard")
3433 (version "2.10.3")
3434 (source (origin
3435 (method git-fetch)
3436 (uri (git-reference
3437 (url "https://github.com/broadinstitute/picard.git")
3438 (commit version)))
3439 (file-name (string-append "java-picard-" version "-checkout"))
3440 (sha256
3441 (base32
3442 "1ajlx31l6i1k3y2rhnmgq07sz99g2czqfqgkr9mihmdjp3gwjhvi"))))
3443 (build-system ant-build-system)
3444 (arguments
3445 `(#:jar-name "picard.jar"
3446 ;; Tests require jacoco:coverage.
3447 #:tests? #f
3448 #:jdk ,icedtea-8
3449 #:main-class "picard.cmdline.PicardCommandLine"
3450 #:modules ((guix build ant-build-system)
3451 (guix build utils)
3452 (guix build java-utils)
3453 (sxml simple)
3454 (sxml transform)
3455 (sxml xpath))
3456 #:phases
3457 (modify-phases %standard-phases
3458 ;; FIXME: this phase fails with "duplicate entry: htsjdk/samtools/AbstractBAMFileIndex$1.class"
3459 (delete 'generate-jar-indices)
3460 (add-after 'unpack 'remove-useless-build.xml
3461 (lambda _ (delete-file "build.xml") #t))
3462 ;; This is necessary to ensure that htsjdk is found when using
3463 ;; picard.jar as an executable.
3464 (add-before 'build 'edit-classpath-in-manifest
3465 (lambda* (#:key inputs #:allow-other-keys)
3466 (chmod "build.xml" #o664)
3467 (call-with-output-file "build.xml.new"
3468 (lambda (port)
3469 (sxml->xml
3470 (pre-post-order
3471 (with-input-from-file "build.xml"
3472 (lambda _ (xml->sxml #:trim-whitespace? #t)))
3473 `((target . ,(lambda (tag . kids)
3474 (let ((name ((sxpath '(name *text*))
3475 (car kids)))
3476 ;; FIXME: We're breaking the line
3477 ;; early with a dummy path to
3478 ;; ensure that the store reference
3479 ;; isn't broken apart and can still
3480 ;; be found by the reference
3481 ;; scanner.
3482 (msg (format #f
3483 "\
3484 Class-Path: /~a \
3485 ~a/share/java/htsjdk.jar${line.separator}${line.separator}"
3486 ;; maximum line length is 70
3487 (string-tabulate (const #\b) 57)
3488 (assoc-ref inputs "java-htsjdk"))))
3489 (if (member "manifest" name)
3490 `(,tag ,@kids
3491 (replaceregexp
3492 (@ (file "${manifest.file}")
3493 (match "\\r\\n\\r\\n")
3494 (replace "${line.separator}")))
3495 (echo
3496 (@ (message ,msg)
3497 (file "${manifest.file}")
3498 (append "true"))))
3499 `(,tag ,@kids)))))
3500 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
3501 (*text* . ,(lambda (_ txt) txt))))
3502 port)))
3503 (rename-file "build.xml.new" "build.xml")
3504 #t)))))
3505 (propagated-inputs
3506 `(("java-htsjdk" ,java-htsjdk-2.10.1)))
3507 (native-inputs
3508 `(("java-testng" ,java-testng)
3509 ("java-guava" ,java-guava)))
3510 (home-page "http://broadinstitute.github.io/picard/")
3511 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
3512 (description "Picard is a set of Java command line tools for manipulating
3513 high-throughput sequencing (HTS) data and formats. Picard is implemented
3514 using the HTSJDK Java library to support accessing file formats that are
3515 commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
3516 VCF.")
3517 (license license:expat)))
3518
3519 ;; This is the last version of Picard to provide net.sf.samtools
3520 (define-public java-picard-1.113
3521 (package (inherit java-picard)
3522 (name "java-picard")
3523 (version "1.113")
3524 (source (origin
3525 (method git-fetch)
3526 (uri (git-reference
3527 (url "https://github.com/broadinstitute/picard.git")
3528 (commit version)))
3529 (file-name (string-append "java-picard-" version "-checkout"))
3530 (sha256
3531 (base32
3532 "0lkpvin2fz3hhly4l02kk56fqy8lmlgyzr9kmvljk6ry6l1hw973"))
3533 (modules '((guix build utils)))
3534 (snippet
3535 '(begin
3536 ;; Delete pre-built binaries.
3537 (delete-file-recursively "lib")
3538 (mkdir-p "lib")
3539 #t))))
3540 (build-system ant-build-system)
3541 (arguments
3542 `(#:build-target "picard-jar"
3543 #:test-target "test"
3544 ;; FIXME: the class path at test time is wrong.
3545 ;; [testng] Error: A JNI error has occurred, please check your installation and try again
3546 ;; [testng] Exception in thread "main" java.lang.NoClassDefFoundError: com/beust/jcommander/ParameterException
3547 #:tests? #f
3548 #:jdk ,icedtea-8
3549 ;; This is only used for tests.
3550 #:make-flags
3551 (list "-Dsamjdk.intel_deflater_so_path=lib/jni/libIntelDeflater.so")
3552 #:phases
3553 (modify-phases %standard-phases
3554 ;; FIXME: This phase fails.
3555 (delete 'generate-jar-indices)
3556 ;; Do not use bundled ant bzip2.
3557 (add-after 'unpack 'use-ant-bzip
3558 (lambda* (#:key inputs #:allow-other-keys)
3559 (substitute* "build.xml"
3560 (("\\$\\{lib\\}/apache-ant-1.8.2-bzip2.jar")
3561 (string-append (assoc-ref inputs "ant")
3562 "/lib/ant.jar")))
3563 #t))
3564 (add-after 'unpack 'make-test-target-independent
3565 (lambda* (#:key inputs #:allow-other-keys)
3566 (substitute* "build.xml"
3567 (("name=\"test\" depends=\"compile, ")
3568 "name=\"test\" depends=\"compile-tests, ")
3569 (("name=\"compile\" depends=\"compile-src, compile-tests\"")
3570 "name=\"compile\" depends=\"compile-src\""))
3571 #t))
3572 (add-after 'unpack 'fix-deflater-path
3573 (lambda* (#:key outputs #:allow-other-keys)
3574 (substitute* "src/java/net/sf/samtools/Defaults.java"
3575 (("getStringProperty\\(\"intel_deflater_so_path\", null\\)")
3576 (string-append "getStringProperty(\"intel_deflater_so_path\", \""
3577 (assoc-ref outputs "out")
3578 "/lib/jni/libIntelDeflater.so"
3579 "\")")))
3580 #t))
3581 ;; Build the deflater library, because we've previously deleted the
3582 ;; pre-built one. This can only be built with access to the JDK
3583 ;; sources.
3584 (add-after 'build 'build-jni
3585 (lambda* (#:key inputs #:allow-other-keys)
3586 (mkdir-p "lib/jni")
3587 (mkdir-p "jdk-src")
3588 (invoke "tar" "--strip-components=1" "-C" "jdk-src"
3589 "-xf" (assoc-ref inputs "jdk-src"))
3590 (invoke "javah" "-jni"
3591 "-classpath" "classes"
3592 "-d" "lib/"
3593 "net.sf.samtools.util.zip.IntelDeflater")
3594 (with-directory-excursion "src/c/inteldeflater"
3595 (invoke "gcc" "-I../../../lib" "-I."
3596 (string-append "-I" (assoc-ref inputs "jdk")
3597 "/include/linux")
3598 "-I../../../jdk-src/src/share/native/common/"
3599 "-I../../../jdk-src/src/solaris/native/common/"
3600 "-c" "-O3" "-fPIC" "IntelDeflater.c")
3601 (invoke "gcc" "-shared"
3602 "-o" "../../../lib/jni/libIntelDeflater.so"
3603 "IntelDeflater.o" "-lz" "-lstdc++"))
3604 #t))
3605 ;; We can only build everything else after building the JNI library.
3606 (add-after 'build-jni 'build-rest
3607 (lambda* (#:key make-flags #:allow-other-keys)
3608 (apply invoke `("ant" "all" ,@make-flags))
3609 #t))
3610 (add-before 'build 'set-JAVA6_HOME
3611 (lambda _
3612 (setenv "JAVA6_HOME" (getenv "JAVA_HOME"))
3613 #t))
3614 (replace 'install (install-jars "dist"))
3615 (add-after 'install 'install-jni-lib
3616 (lambda* (#:key outputs #:allow-other-keys)
3617 (let ((jni (string-append (assoc-ref outputs "out")
3618 "/lib/jni")))
3619 (mkdir-p jni)
3620 (install-file "lib/jni/libIntelDeflater.so" jni)
3621 #t))))))
3622 (inputs
3623 `(("java-snappy-1" ,java-snappy-1)
3624 ("java-commons-jexl-2" ,java-commons-jexl-2)
3625 ("java-cofoja" ,java-cofoja)
3626 ("ant" ,ant) ; for bzip2 support at runtime
3627 ("zlib" ,zlib)))
3628 (native-inputs
3629 `(("ant-apache-bcel" ,ant-apache-bcel)
3630 ("ant-junit" ,ant-junit)
3631 ("java-testng" ,java-testng)
3632 ("java-commons-bcel" ,java-commons-bcel)
3633 ("java-jcommander" ,java-jcommander)
3634 ("jdk" ,icedtea-8 "jdk")
3635 ("jdk-src" ,(car (assoc-ref (package-native-inputs icedtea-8) "jdk-drop")))))))
3636
3637 (define-public fastqc
3638 (package
3639 (name "fastqc")
3640 (version "0.11.5")
3641 (source
3642 (origin
3643 (method url-fetch)
3644 (uri (string-append "http://www.bioinformatics.babraham.ac.uk/"
3645 "projects/fastqc/fastqc_v"
3646 version "_source.zip"))
3647 (sha256
3648 (base32
3649 "18rrlkhcrxvvvlapch4dpj6xc6mpayzys8qfppybi8jrpgx5cc5f"))))
3650 (build-system ant-build-system)
3651 (arguments
3652 `(#:tests? #f ; there are no tests
3653 #:build-target "build"
3654 #:phases
3655 (modify-phases %standard-phases
3656 (add-after 'unpack 'fix-dependencies
3657 (lambda* (#:key inputs #:allow-other-keys)
3658 (substitute* "build.xml"
3659 (("jbzip2-0.9.jar")
3660 (string-append (assoc-ref inputs "java-jbzip2")
3661 "/share/java/jbzip2.jar"))
3662 (("sam-1.103.jar")
3663 (string-append (assoc-ref inputs "java-picard-1.113")
3664 "/share/java/sam-1.112.jar"))
3665 (("cisd-jhdf5.jar")
3666 (string-append (assoc-ref inputs "java-cisd-jhdf5")
3667 "/share/java/sis-jhdf5.jar")))
3668 #t))
3669 ;; There is no installation target
3670 (replace 'install
3671 (lambda* (#:key inputs outputs #:allow-other-keys)
3672 (let* ((out (assoc-ref outputs "out"))
3673 (bin (string-append out "/bin"))
3674 (share (string-append out "/share/fastqc/"))
3675 (exe (string-append share "/fastqc")))
3676 (for-each mkdir-p (list bin share))
3677 (copy-recursively "bin" share)
3678 (substitute* exe
3679 (("my \\$java_bin = 'java';")
3680 (string-append "my $java_bin = '"
3681 (assoc-ref inputs "java")
3682 "/bin/java';")))
3683 (chmod exe #o555)
3684 (symlink exe (string-append bin "/fastqc"))
3685 #t))))))
3686 (inputs
3687 `(("java" ,icedtea)
3688 ("perl" ,perl) ; needed for the wrapper script
3689 ("java-cisd-jhdf5" ,java-cisd-jhdf5)
3690 ("java-picard-1.113" ,java-picard-1.113)
3691 ("java-jbzip2" ,java-jbzip2)))
3692 (native-inputs
3693 `(("unzip" ,unzip)))
3694 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/fastqc/")
3695 (synopsis "Quality control tool for high throughput sequence data")
3696 (description
3697 "FastQC aims to provide a simple way to do some quality control
3698 checks on raw sequence data coming from high throughput sequencing
3699 pipelines. It provides a modular set of analyses which you can use to
3700 give a quick impression of whether your data has any problems of which
3701 you should be aware before doing any further analysis.
3702
3703 The main functions of FastQC are:
3704
3705 @itemize
3706 @item Import of data from BAM, SAM or FastQ files (any variant);
3707 @item Providing a quick overview to tell you in which areas there may
3708 be problems;
3709 @item Summary graphs and tables to quickly assess your data;
3710 @item Export of results to an HTML based permanent report;
3711 @item Offline operation to allow automated generation of reports
3712 without running the interactive application.
3713 @end itemize\n")
3714 (license license:gpl3+)))
3715
3716 (define-public fastp
3717 (package
3718 (name "fastp")
3719 (version "0.14.1")
3720 (source
3721 (origin
3722 (method git-fetch)
3723 (uri (git-reference
3724 (url "https://github.com/OpenGene/fastp.git")
3725 (commit (string-append "v" version))))
3726 (file-name (git-file-name name version))
3727 (sha256
3728 (base32
3729 "1r6ms5zbf5rps4rgp4z73nczadl00b5rqylw8f684isfz27dp0xh"))))
3730 (build-system gnu-build-system)
3731 (arguments
3732 `(#:tests? #f ; there are none
3733 #:make-flags
3734 (list (string-append "BINDIR=" (assoc-ref %outputs "out") "/bin"))
3735 #:phases
3736 (modify-phases %standard-phases
3737 (delete 'configure)
3738 (add-before 'install 'create-target-dir
3739 (lambda* (#:key outputs #:allow-other-keys)
3740 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
3741 #t)))))
3742 (inputs
3743 `(("zlib" ,zlib)))
3744 (home-page "https://github.com/OpenGene/fastp/")
3745 (synopsis "All-in-one FastQ preprocessor")
3746 (description
3747 "Fastp is a tool designed to provide fast all-in-one preprocessing for
3748 FastQ files. This tool has multi-threading support to afford high
3749 performance.")
3750 (license license:expat)))
3751
3752 (define-public htslib
3753 (package
3754 (name "htslib")
3755 (version "1.9")
3756 (source (origin
3757 (method url-fetch)
3758 (uri (string-append
3759 "https://github.com/samtools/htslib/releases/download/"
3760 version "/htslib-" version ".tar.bz2"))
3761 (sha256
3762 (base32
3763 "16ljv43sc3fxmv63w7b2ff8m1s7h89xhazwmbm1bicz8axq8fjz0"))))
3764 (build-system gnu-build-system)
3765 (inputs
3766 `(("openssl" ,openssl)
3767 ("curl" ,curl)
3768 ("zlib" ,zlib)))
3769 (native-inputs
3770 `(("perl" ,perl)))
3771 (home-page "http://www.htslib.org")
3772 (synopsis "C library for reading/writing high-throughput sequencing data")
3773 (description
3774 "HTSlib is a C library for reading/writing high-throughput sequencing
3775 data. It also provides the @command{bgzip}, @command{htsfile}, and
3776 @command{tabix} utilities.")
3777 ;; Files under cram/ are released under the modified BSD license;
3778 ;; the rest is released under the Expat license
3779 (license (list license:expat license:bsd-3))))
3780
3781 ;; This package should be removed once no packages rely upon it.
3782 (define htslib-1.3
3783 (package
3784 (inherit htslib)
3785 (version "1.3.1")
3786 (source (origin
3787 (method url-fetch)
3788 (uri (string-append
3789 "https://github.com/samtools/htslib/releases/download/"
3790 version "/htslib-" version ".tar.bz2"))
3791 (sha256
3792 (base32
3793 "1rja282fwdc25ql6izkhdyh8ppw8x2fs0w0js78zgkmqjlikmma9"))))))
3794
3795 (define-public idr
3796 (package
3797 (name "idr")
3798 (version "2.0.3")
3799 (source (origin
3800 (method git-fetch)
3801 (uri (git-reference
3802 (url "https://github.com/nboley/idr.git")
3803 (commit version)))
3804 (file-name (git-file-name name version))
3805 (sha256
3806 (base32
3807 "04j876h6z444v2q79drxx283d3k5snd72kj895wbalnl42206x9g"))
3808 ;; Delete generated C code.
3809 (snippet
3810 '(begin (delete-file "idr/inv_cdf.c") #t))))
3811 (build-system python-build-system)
3812 ;; There is only one test ("test_inv_cdf.py") and it tests features that
3813 ;; are no longer part of this package. It also asserts False, which
3814 ;; causes the tests to always fail.
3815 (arguments `(#:tests? #f))
3816 (propagated-inputs
3817 `(("python-scipy" ,python-scipy)
3818 ("python-sympy" ,python-sympy)
3819 ("python-numpy" ,python-numpy)
3820 ("python-matplotlib" ,python-matplotlib)))
3821 (native-inputs
3822 `(("python-cython" ,python-cython)))
3823 (home-page "https://github.com/nboley/idr")
3824 (synopsis "Tool to measure the irreproducible discovery rate (IDR)")
3825 (description
3826 "The IDR (Irreproducible Discovery Rate) framework is a unified approach
3827 to measure the reproducibility of findings identified from replicate
3828 experiments and provide highly stable thresholds based on reproducibility.")
3829 (license license:gpl2+)))
3830
3831 (define-public jellyfish
3832 (package
3833 (name "jellyfish")
3834 (version "2.2.10")
3835 (source (origin
3836 (method url-fetch)
3837 (uri (string-append "https://github.com/gmarcais/Jellyfish/"
3838 "releases/download/v" version
3839 "/jellyfish-" version ".tar.gz"))
3840 (sha256
3841 (base32
3842 "1k4pc3fvv6w1km2yph4m5sd78fbxp21d6xyzgmy0gjihzc6mb249"))))
3843 (build-system gnu-build-system)
3844 (outputs '("out" ;for library
3845 "ruby" ;for Ruby bindings
3846 "python")) ;for Python bindings
3847 (arguments
3848 `(#:configure-flags
3849 (list (string-append "--enable-ruby-binding="
3850 (assoc-ref %outputs "ruby"))
3851 (string-append "--enable-python-binding="
3852 (assoc-ref %outputs "python")))
3853 #:phases
3854 (modify-phases %standard-phases
3855 (add-before 'check 'set-SHELL-variable
3856 (lambda _
3857 ;; generator_manager.hpp either uses /bin/sh or $SHELL
3858 ;; to run tests.
3859 (setenv "SHELL" (which "bash"))
3860 #t)))))
3861 (native-inputs
3862 `(("bc" ,bc)
3863 ("time" ,time)
3864 ("ruby" ,ruby)
3865 ("python" ,python-2)
3866 ("pkg-config" ,pkg-config)))
3867 (inputs
3868 `(("htslib" ,htslib)))
3869 (synopsis "Tool for fast counting of k-mers in DNA")
3870 (description
3871 "Jellyfish is a tool for fast, memory-efficient counting of k-mers in
3872 DNA. A k-mer is a substring of length k, and counting the occurrences of all
3873 such substrings is a central step in many analyses of DNA sequence. Jellyfish
3874 is a command-line program that reads FASTA and multi-FASTA files containing
3875 DNA sequences. It outputs its k-mer counts in a binary format, which can be
3876 translated into a human-readable text format using the @code{jellyfish dump}
3877 command, or queried for specific k-mers with @code{jellyfish query}.")
3878 (home-page "http://www.genome.umd.edu/jellyfish.html")
3879 ;; JELLYFISH seems to be 64-bit only.
3880 (supported-systems '("x86_64-linux" "aarch64-linux" "mips64el-linux"))
3881 ;; The combined work is published under the GPLv3 or later. Individual
3882 ;; files such as lib/jsoncpp.cpp are released under the Expat license.
3883 (license (list license:gpl3+ license:expat))))
3884
3885 (define-public khmer
3886 (package
3887 (name "khmer")
3888 (version "2.1.2")
3889 (source
3890 (origin
3891 (method git-fetch)
3892 (uri (git-reference
3893 (url "https://github.com/dib-lab/khmer.git")
3894 (commit (string-append "v" version))))
3895 (file-name (git-file-name name version))
3896 (sha256
3897 (base32
3898 "02x38d9jw2r58y8dmnj4hffy9wxv1yc1jwbvdbhby9dxndv94r9m"))
3899 (patches (search-patches "khmer-use-libraries.patch"))
3900 (modules '((guix build utils)))
3901 (snippet
3902 '(begin
3903 ;; Delete bundled libraries. We do not replace the bundled seqan
3904 ;; as it is a modified subset of the old version 1.4.1.
3905 ;;
3906 ;; We do not replace the bundled MurmurHash as the canonical
3907 ;; repository for this code 'SMHasher' is unsuitable for providing
3908 ;; a library. See
3909 ;; https://lists.gnu.org/archive/html/guix-devel/2016-06/msg00977.html
3910 (delete-file-recursively "third-party/zlib")
3911 (delete-file-recursively "third-party/bzip2")
3912 #t))))
3913 (build-system python-build-system)
3914 (arguments
3915 `(#:phases
3916 (modify-phases %standard-phases
3917 (add-after 'unpack 'set-cc
3918 (lambda _ (setenv "CC" "gcc") #t))
3919 ;; FIXME: This fails with "permission denied".
3920 (delete 'reset-gzip-timestamps))))
3921 (native-inputs
3922 `(("python-cython" ,python-cython)
3923 ("python-pytest" ,python-pytest)
3924 ("python-pytest-runner" ,python-pytest-runner)))
3925 (inputs
3926 `(("zlib" ,zlib)
3927 ("bzip2" ,bzip2)
3928 ("python-screed" ,python-screed)
3929 ("python-bz2file" ,python-bz2file)))
3930 (home-page "https://khmer.readthedocs.org/")
3931 (synopsis "K-mer counting, filtering and graph traversal library")
3932 (description "The khmer software is a set of command-line tools for
3933 working with DNA shotgun sequencing data from genomes, transcriptomes,
3934 metagenomes and single cells. Khmer can make de novo assemblies faster, and
3935 sometimes better. Khmer can also identify and fix problems with shotgun
3936 data.")
3937 ;; When building on i686, armhf and mips64el, we get the following error:
3938 ;; error: ['khmer', 'khmer.tests', 'oxli'] require 64-bit operating system
3939 (supported-systems '("x86_64-linux" "aarch64-linux"))
3940 (license license:bsd-3)))
3941
3942 (define-public kaiju
3943 (package
3944 (name "kaiju")
3945 (version "1.6.3")
3946 (source (origin
3947 (method git-fetch)
3948 (uri (git-reference
3949 (url "https://github.com/bioinformatics-centre/kaiju")
3950 (commit (string-append "v" version))))
3951 (file-name (git-file-name name version))
3952 (sha256
3953 (base32
3954 "119pzi0ddzv9mjg4wwa6han0cwr3k3ssn7kirvsjfcq05mi5ka0x"))))
3955 (build-system gnu-build-system)
3956 (arguments
3957 `(#:tests? #f ; There are no tests.
3958 #:phases
3959 (modify-phases %standard-phases
3960 (delete 'configure)
3961 (add-before 'build 'move-to-src-dir
3962 (lambda _ (chdir "src") #t))
3963 (replace 'install
3964 (lambda* (#:key inputs outputs #:allow-other-keys)
3965 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
3966 (mkdir-p bin)
3967 (chdir "..")
3968 (copy-recursively "bin" bin))
3969 #t)))))
3970 (inputs
3971 `(("perl" ,perl)
3972 ("zlib" ,zlib)))
3973 (home-page "http://kaiju.binf.ku.dk/")
3974 (synopsis "Fast and sensitive taxonomic classification for metagenomics")
3975 (description "Kaiju is a program for sensitive taxonomic classification
3976 of high-throughput sequencing reads from metagenomic whole genome sequencing
3977 experiments.")
3978 (license license:gpl3+)))
3979
3980 (define-public macs
3981 (package
3982 (name "macs")
3983 (version "2.1.1.20160309")
3984 (source (origin
3985 (method url-fetch)
3986 (uri (pypi-uri "MACS2" version))
3987 (sha256
3988 (base32
3989 "09ixspd1vcqmz1c81ih70xs4m7qml2iy5vyx1y74zww3iy1vl210"))))
3990 (build-system python-build-system)
3991 (arguments
3992 `(#:python ,python-2 ; only compatible with Python 2.7
3993 #:tests? #f)) ; no test target
3994 (inputs
3995 `(("python-numpy" ,python2-numpy)))
3996 (home-page "https://github.com/taoliu/MACS/")
3997 (synopsis "Model based analysis for ChIP-Seq data")
3998 (description
3999 "MACS is an implementation of a ChIP-Seq analysis algorithm for
4000 identifying transcript factor binding sites named Model-based Analysis of
4001 ChIP-Seq (MACS). MACS captures the influence of genome complexity to evaluate
4002 the significance of enriched ChIP regions and it improves the spatial
4003 resolution of binding sites through combining the information of both
4004 sequencing tag position and orientation.")
4005 (license license:bsd-3)))
4006
4007 (define-public mafft
4008 (package
4009 (name "mafft")
4010 (version "7.394")
4011 (source (origin
4012 (method url-fetch)
4013 (uri (string-append
4014 "https://mafft.cbrc.jp/alignment/software/mafft-" version
4015 "-without-extensions-src.tgz"))
4016 (file-name (string-append name "-" version ".tgz"))
4017 (sha256
4018 (base32
4019 "0bacjkxfg944p5khhyh5rd4y7wkjc9qk4v2jjj442sqlq0f8ar7b"))))
4020 (build-system gnu-build-system)
4021 (arguments
4022 `(#:tests? #f ; no automated tests, though there are tests in the read me
4023 #:make-flags (let ((out (assoc-ref %outputs "out")))
4024 (list (string-append "PREFIX=" out)
4025 (string-append "BINDIR="
4026 (string-append out "/bin"))))
4027 #:phases
4028 (modify-phases %standard-phases
4029 (add-after 'unpack 'enter-dir
4030 (lambda _ (chdir "core") #t))
4031 (add-after 'enter-dir 'patch-makefile
4032 (lambda _
4033 ;; on advice from the MAFFT authors, there is no need to
4034 ;; distribute mafft-profile, mafft-distance, or
4035 ;; mafft-homologs.rb as they are too "specialised".
4036 (substitute* "Makefile"
4037 ;; remove mafft-homologs.rb from SCRIPTS
4038 (("^SCRIPTS = mafft mafft-homologs.rb")
4039 "SCRIPTS = mafft")
4040 ;; remove mafft-homologs from MANPAGES
4041 (("^MANPAGES = mafft.1 mafft-homologs.1")
4042 "MANPAGES = mafft.1")
4043 ;; remove mafft-distance from PROGS
4044 (("^PROGS = dvtditr dndfast7 dndblast sextet5 mafft-distance")
4045 "PROGS = dvtditr dndfast7 dndblast sextet5")
4046 ;; remove mafft-profile from PROGS
4047 (("splittbfast disttbfast tbfast mafft-profile 2cl mccaskillwrap")
4048 "splittbfast disttbfast tbfast f2cl mccaskillwrap")
4049 (("^rm -f mafft-profile mafft-profile.exe") "#")
4050 (("^rm -f mafft-distance mafft-distance.exe") ")#")
4051 ;; do not install MAN pages in libexec folder
4052 (("^\t\\$\\(INSTALL\\) -m 644 \\$\\(MANPAGES\\) \
4053 \\$\\(DESTDIR\\)\\$\\(LIBDIR\\)") "#"))
4054 #t))
4055 (add-after 'enter-dir 'patch-paths
4056 (lambda* (#:key inputs #:allow-other-keys)
4057 (substitute* '("pairash.c"
4058 "mafft.tmpl")
4059 (("perl") (which "perl"))
4060 (("([\"`| ])awk" _ prefix)
4061 (string-append prefix (which "awk")))
4062 (("grep") (which "grep")))
4063 #t))
4064 (delete 'configure)
4065 (add-after 'install 'wrap-programs
4066 (lambda* (#:key outputs #:allow-other-keys)
4067 (let* ((out (assoc-ref outputs "out"))
4068 (bin (string-append out "/bin"))
4069 (path (string-append
4070 (assoc-ref %build-inputs "coreutils") "/bin:")))
4071 (for-each (lambda (file)
4072 (wrap-program file
4073 `("PATH" ":" prefix (,path))))
4074 (find-files bin)))
4075 #t)))))
4076 (inputs
4077 `(("perl" ,perl)
4078 ("ruby" ,ruby)
4079 ("gawk" ,gawk)
4080 ("grep" ,grep)
4081 ("coreutils" ,coreutils)))
4082 (home-page "http://mafft.cbrc.jp/alignment/software/")
4083 (synopsis "Multiple sequence alignment program")
4084 (description
4085 "MAFFT offers a range of multiple alignment methods for nucleotide and
4086 protein sequences. For instance, it offers L-INS-i (accurate; for alignment
4087 of <~200 sequences) and FFT-NS-2 (fast; for alignment of <~30,000
4088 sequences).")
4089 (license (license:non-copyleft
4090 "http://mafft.cbrc.jp/alignment/software/license.txt"
4091 "BSD-3 with different formatting"))))
4092
4093 (define-public mash
4094 (package
4095 (name "mash")
4096 (version "2.1")
4097 (source (origin
4098 (method git-fetch)
4099 (uri (git-reference
4100 (url "https://github.com/marbl/mash.git")
4101 (commit (string-append "v" version))))
4102 (file-name (git-file-name name version))
4103 (sha256
4104 (base32
4105 "049hwcc059p2fd9vwndn63laifvvsi0wmv84i6y1fr79k15dxwy6"))
4106 (modules '((guix build utils)))
4107 (snippet
4108 '(begin
4109 ;; Delete bundled kseq.
4110 ;; TODO: Also delete bundled murmurhash and open bloom filter.
4111 (delete-file "src/mash/kseq.h")
4112 #t))))
4113 (build-system gnu-build-system)
4114 (arguments
4115 `(#:tests? #f ; No tests.
4116 #:configure-flags
4117 (list
4118 (string-append "--with-capnp=" (assoc-ref %build-inputs "capnproto"))
4119 (string-append "--with-gsl=" (assoc-ref %build-inputs "gsl")))
4120 #:make-flags (list "CC=gcc")
4121 #:phases
4122 (modify-phases %standard-phases
4123 (add-after 'unpack 'fix-includes
4124 (lambda _
4125 (substitute* '("src/mash/Sketch.cpp"
4126 "src/mash/CommandFind.cpp"
4127 "src/mash/CommandScreen.cpp")
4128 (("^#include \"kseq\\.h\"")
4129 "#include \"htslib/kseq.h\""))
4130 #t))
4131 (add-after 'fix-includes 'use-c++14
4132 (lambda _
4133 ;; capnproto 0.7 requires c++14 to build
4134 (substitute* "configure.ac"
4135 (("c\\+\\+11") "c++14"))
4136 (substitute* "Makefile.in"
4137 (("c\\+\\+11") "c++14"))
4138 #t)))))
4139 (native-inputs
4140 `(("autoconf" ,autoconf)
4141 ;; Capnproto and htslib are statically embedded in the final
4142 ;; application. Therefore we also list their licenses, below.
4143 ("capnproto" ,capnproto)
4144 ("htslib" ,htslib)))
4145 (inputs
4146 `(("gsl" ,gsl)
4147 ("zlib" ,zlib)))
4148 (supported-systems '("x86_64-linux"))
4149 (home-page "https://mash.readthedocs.io")
4150 (synopsis "Fast genome and metagenome distance estimation using MinHash")
4151 (description "Mash is a fast sequence distance estimator that uses the
4152 MinHash algorithm and is designed to work with genomes and metagenomes in the
4153 form of assemblies or reads.")
4154 (license (list license:bsd-3 ; Mash
4155 license:expat ; HTSlib and capnproto
4156 license:public-domain ; MurmurHash 3
4157 license:cpl1.0)))) ; Open Bloom Filter
4158
4159 (define-public metabat
4160 (package
4161 (name "metabat")
4162 (version "2.12.1")
4163 (source
4164 (origin
4165 (method git-fetch)
4166 (uri (git-reference
4167 (url "https://bitbucket.org/berkeleylab/metabat.git")
4168 (commit (string-append "v" version))))
4169 (file-name (git-file-name name version))
4170 (sha256
4171 (base32
4172 "0hyg2smw1nz69mfvjpk45xyyychmda92c80a0cv7baji84ri4iyn"))
4173 (patches (search-patches "metabat-fix-compilation.patch"))))
4174 (build-system scons-build-system)
4175 (arguments
4176 `(#:scons ,scons-python2
4177 #:scons-flags
4178 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
4179 (string-append "BOOST_ROOT=" (assoc-ref %build-inputs "boost")))
4180 #:tests? #f ;; Tests are run during the build phase.
4181 #:phases
4182 (modify-phases %standard-phases
4183 (add-after 'unpack 'fix-includes
4184 (lambda _
4185 (substitute* "src/BamUtils.h"
4186 (("^#include \"bam/bam\\.h\"")
4187 "#include \"samtools/bam.h\"")
4188 (("^#include \"bam/sam\\.h\"")
4189 "#include \"samtools/sam.h\""))
4190 (substitute* "src/KseqReader.h"
4191 (("^#include \"bam/kseq\\.h\"")
4192 "#include \"htslib/kseq.h\""))
4193 #t))
4194 (add-after 'unpack 'fix-scons
4195 (lambda* (#:key inputs #:allow-other-keys)
4196 (substitute* "SConstruct"
4197 (("^htslib_dir += 'samtools'")
4198 (string-append "htslib_dir = '"
4199 (assoc-ref inputs "htslib")
4200 "'"))
4201 (("^samtools_dir = 'samtools'")
4202 (string-append "samtools_dir = '"
4203 (assoc-ref inputs "samtools")
4204 "'"))
4205 (("^findStaticOrShared\\('bam', hts_lib")
4206 (string-append "findStaticOrShared('bam', '"
4207 (assoc-ref inputs "samtools")
4208 "/lib'"))
4209 ;; Do not distribute README.
4210 (("^env\\.Install\\(idir_prefix, 'README\\.md'\\)") ""))
4211 #t)))))
4212 (inputs
4213 `(("zlib" ,zlib)
4214 ("perl" ,perl)
4215 ("samtools" ,samtools)
4216 ("htslib" ,htslib)
4217 ("boost" ,boost)))
4218 (home-page "https://bitbucket.org/berkeleylab/metabat")
4219 (synopsis
4220 "Reconstruction of single genomes from complex microbial communities")
4221 (description
4222 "Grouping large genomic fragments assembled from shotgun metagenomic
4223 sequences to deconvolute complex microbial communities, or metagenome binning,
4224 enables the study of individual organisms and their interactions. MetaBAT is
4225 an automated metagenome binning software, which integrates empirical
4226 probabilistic distances of genome abundance and tetranucleotide frequency.")
4227 ;; The source code contains inline assembly.
4228 (supported-systems '("x86_64-linux" "i686-linux"))
4229 (license (license:non-copyleft "file://license.txt"
4230 "See license.txt in the distribution."))))
4231
4232 (define-public minced
4233 (package
4234 (name "minced")
4235 (version "0.3.2")
4236 (source (origin
4237 (method git-fetch)
4238 (uri (git-reference
4239 (url "https://github.com/ctSkennerton/minced.git")
4240 (commit version)))
4241 (file-name (git-file-name name version))
4242 (sha256
4243 (base32
4244 "1f5h9him0gd355cnx7p6pnxpknhckd4g0v62mg8zyhfbx9as25fv"))))
4245 (build-system gnu-build-system)
4246 (arguments
4247 `(#:test-target "test"
4248 #:phases
4249 (modify-phases %standard-phases
4250 (delete 'configure)
4251 (add-before 'check 'fix-test
4252 (lambda _
4253 ;; Fix test for latest version.
4254 (substitute* "t/Aquifex_aeolicus_VF5.expected"
4255 (("minced:0.1.6") "minced:0.2.0"))
4256 #t))
4257 (replace 'install ; No install target.
4258 (lambda* (#:key inputs outputs #:allow-other-keys)
4259 (let* ((out (assoc-ref outputs "out"))
4260 (bin (string-append out "/bin"))
4261 (wrapper (string-append bin "/minced")))
4262 ;; Minced comes with a wrapper script that tries to figure out where
4263 ;; it is located before running the JAR. Since these paths are known
4264 ;; to us, we build our own wrapper to avoid coreutils dependency.
4265 (install-file "minced.jar" bin)
4266 (with-output-to-file wrapper
4267 (lambda _
4268 (display
4269 (string-append
4270 "#!" (assoc-ref inputs "bash") "/bin/sh\n\n"
4271 (assoc-ref inputs "jre") "/bin/java -jar "
4272 bin "/minced.jar \"$@\"\n"))))
4273 (chmod wrapper #o555))
4274 #t)))))
4275 (native-inputs
4276 `(("jdk" ,icedtea "jdk")))
4277 (inputs
4278 `(("bash" ,bash)
4279 ("jre" ,icedtea "out")))
4280 (home-page "https://github.com/ctSkennerton/minced")
4281 (synopsis "Mining CRISPRs in Environmental Datasets")
4282 (description
4283 "MinCED is a program to find Clustered Regularly Interspaced Short
4284 Palindromic Repeats (CRISPRs) in DNA sequences. It can be used for
4285 unassembled metagenomic reads, but is mainly designed for full genomes and
4286 assembled metagenomic sequence.")
4287 (license license:gpl3+)))
4288
4289 (define-public miso
4290 (package
4291 (name "miso")
4292 (version "0.5.4")
4293 (source (origin
4294 (method url-fetch)
4295 (uri (pypi-uri "misopy" version))
4296 (sha256
4297 (base32
4298 "1z3x0vd8ma7pdrnywj7i3kgwl89sdkwrrn62zl7r5calqaq2hyip"))
4299 (modules '((guix build utils)))
4300 (snippet '(begin
4301 (substitute* "setup.py"
4302 ;; Use setuptools, or else the executables are not
4303 ;; installed.
4304 (("distutils.core") "setuptools")
4305 ;; use "gcc" instead of "cc" for compilation
4306 (("^defines")
4307 "cc.set_executables(
4308 compiler='gcc',
4309 compiler_so='gcc',
4310 linker_exe='gcc',
4311 linker_so='gcc -shared'); defines"))
4312 #t))))
4313 (build-system python-build-system)
4314 (arguments
4315 `(#:python ,python-2 ; only Python 2 is supported
4316 #:tests? #f)) ; no "test" target
4317 (inputs
4318 `(("samtools" ,samtools)
4319 ("python-numpy" ,python2-numpy)
4320 ("python-pysam" ,python2-pysam)
4321 ("python-scipy" ,python2-scipy)
4322 ("python-matplotlib" ,python2-matplotlib)))
4323 (native-inputs
4324 `(("python-mock" ,python2-mock) ;for tests
4325 ("python-pytz" ,python2-pytz))) ;for tests
4326 (home-page "http://genes.mit.edu/burgelab/miso/index.html")
4327 (synopsis "Mixture of Isoforms model for RNA-Seq isoform quantitation")
4328 (description
4329 "MISO (Mixture-of-Isoforms) is a probabilistic framework that quantitates
4330 the expression level of alternatively spliced genes from RNA-Seq data, and
4331 identifies differentially regulated isoforms or exons across samples. By
4332 modeling the generative process by which reads are produced from isoforms in
4333 RNA-Seq, the MISO model uses Bayesian inference to compute the probability
4334 that a read originated from a particular isoform.")
4335 (license license:gpl2)))
4336
4337 (define-public muscle
4338 (package
4339 (name "muscle")
4340 (version "3.8.1551")
4341 (source (origin
4342 (method url-fetch/tarbomb)
4343 (uri (string-append
4344 "http://www.drive5.com/muscle/muscle_src_"
4345 version ".tar.gz"))
4346 (sha256
4347 (base32
4348 "0bj8kj7sdizy3987zx6w7axihk40fk8rn76mpbqqjcnd64i5a367"))))
4349 (build-system gnu-build-system)
4350 (arguments
4351 `(#:make-flags (list "LDLIBS = -lm")
4352 #:phases
4353 (modify-phases %standard-phases
4354 (delete 'configure)
4355 (replace 'check
4356 ;; There are no tests, so just test if it runs.
4357 (lambda _ (invoke "./muscle" "-version") #t))
4358 (replace 'install
4359 (lambda* (#:key outputs #:allow-other-keys)
4360 (let* ((out (assoc-ref outputs "out"))
4361 (bin (string-append out "/bin")))
4362 (install-file "muscle" bin)
4363 #t))))))
4364 (home-page "http://www.drive5.com/muscle")
4365 (synopsis "Multiple sequence alignment program")
4366 (description
4367 "MUSCLE aims to be a fast and accurate multiple sequence alignment
4368 program for nucleotide and protein sequences.")
4369 ;; License information found in 'muscle -h' and usage.cpp.
4370 (license license:public-domain)))
4371
4372 (define-public newick-utils
4373 ;; There are no recent releases so we package from git.
4374 (let ((commit "da121155a977197cab9fbb15953ca1b40b11eb87"))
4375 (package
4376 (name "newick-utils")
4377 (version (string-append "1.6-1." (string-take commit 8)))
4378 (source (origin
4379 (method git-fetch)
4380 (uri (git-reference
4381 (url "https://github.com/tjunier/newick_utils.git")
4382 (commit commit)))
4383 (file-name (string-append name "-" version "-checkout"))
4384 (sha256
4385 (base32
4386 "1hkw21rq1mwf7xp0rmbb2gqc0i6p11108m69i7mr7xcjl268pxnb"))))
4387 (build-system gnu-build-system)
4388 (inputs
4389 ;; XXX: TODO: Enable Lua and Guile bindings.
4390 ;; https://github.com/tjunier/newick_utils/issues/13
4391 `(("libxml2" ,libxml2)
4392 ("flex" ,flex)
4393 ("bison" ,bison)))
4394 (native-inputs
4395 `(("autoconf" ,autoconf)
4396 ("automake" ,automake)
4397 ("libtool" ,libtool)))
4398 (synopsis "Programs for working with newick format phylogenetic trees")
4399 (description
4400 "Newick-utils is a suite of utilities for processing phylogenetic trees
4401 in Newick format. Functions include re-rooting, extracting subtrees,
4402 trimming, pruning, condensing, drawing (ASCII graphics or SVG).")
4403 (home-page "https://github.com/tjunier/newick_utils")
4404 (license license:bsd-3))))
4405
4406 (define-public orfm
4407 (package
4408 (name "orfm")
4409 (version "0.7.1")
4410 (source (origin
4411 (method url-fetch)
4412 (uri (string-append
4413 "https://github.com/wwood/OrfM/releases/download/v"
4414 version "/orfm-" version ".tar.gz"))
4415 (sha256
4416 (base32
4417 "16iigyr2gd8x0imzkk1dr3k5xsds9bpmwg31ayvjg0f4pir9rwqr"))))
4418 (build-system gnu-build-system)
4419 (inputs `(("zlib" ,zlib)))
4420 (native-inputs
4421 `(("ruby-bio-commandeer" ,ruby-bio-commandeer)
4422 ("ruby-rspec" ,ruby-rspec)
4423 ("ruby" ,ruby)))
4424 (synopsis "Simple and not slow open reading frame (ORF) caller")
4425 (description
4426 "An ORF caller finds stretches of DNA that, when translated, are not
4427 interrupted by stop codons. OrfM finds and prints these ORFs.")
4428 (home-page "https://github.com/wwood/OrfM")
4429 (license license:lgpl3+)))
4430
4431 (define-public python2-pbcore
4432 (package
4433 (name "python2-pbcore")
4434 (version "1.2.10")
4435 (source (origin
4436 (method url-fetch)
4437 (uri (pypi-uri "pbcore" version))
4438 (sha256
4439 (base32
4440 "1kjmv891d6qbpp4shhhvkl02ff4q5xlpnls2513sm2cjcrs52f1i"))))
4441 (build-system python-build-system)
4442 (arguments `(#:python ,python-2)) ; pbcore requires Python 2.7
4443 (propagated-inputs
4444 `(("python-cython" ,python2-cython)
4445 ("python-numpy" ,python2-numpy)
4446 ("python-pysam" ,python2-pysam)
4447 ("python-h5py" ,python2-h5py)))
4448 (native-inputs
4449 `(("python-nose" ,python2-nose)
4450 ("python-sphinx" ,python2-sphinx)
4451 ("python-pyxb" ,python2-pyxb)))
4452 (home-page "http://pacificbiosciences.github.io/pbcore/")
4453 (synopsis "Library for reading and writing PacBio data files")
4454 (description
4455 "The pbcore package provides Python APIs for interacting with PacBio data
4456 files and writing bioinformatics applications.")
4457 (license license:bsd-3)))
4458
4459 (define-public python2-warpedlmm
4460 (package
4461 (name "python2-warpedlmm")
4462 (version "0.21")
4463 (source
4464 (origin
4465 (method url-fetch)
4466 (uri (pypi-uri "WarpedLMM" version ".zip"))
4467 (sha256
4468 (base32
4469 "1agfz6zqa8nc6cw47yh0s3y14gkpa9wqazwcj7mwwj3ffnw39p3j"))))
4470 (build-system python-build-system)
4471 (arguments
4472 `(#:python ,python-2)) ; requires Python 2.7
4473 (propagated-inputs
4474 `(("python-scipy" ,python2-scipy)
4475 ("python-numpy" ,python2-numpy)
4476 ("python-matplotlib" ,python2-matplotlib)
4477 ("python-fastlmm" ,python2-fastlmm)
4478 ("python-pandas" ,python2-pandas)
4479 ("python-pysnptools" ,python2-pysnptools)))
4480 (native-inputs
4481 `(("python-mock" ,python2-mock)
4482 ("python-nose" ,python2-nose)
4483 ("unzip" ,unzip)))
4484 (home-page "https://github.com/PMBio/warpedLMM")
4485 (synopsis "Implementation of warped linear mixed models")
4486 (description
4487 "WarpedLMM is a Python implementation of the warped linear mixed model,
4488 which automatically learns an optimal warping function (or transformation) for
4489 the phenotype as it models the data.")
4490 (license license:asl2.0)))
4491
4492 (define-public pbtranscript-tofu
4493 (let ((commit "8f5467fe6a4472bcfb4226c8720993c8507adfe4"))
4494 (package
4495 (name "pbtranscript-tofu")
4496 (version (string-append "2.2.3." (string-take commit 7)))
4497 (source (origin
4498 (method git-fetch)
4499 (uri (git-reference
4500 (url "https://github.com/PacificBiosciences/cDNA_primer.git")
4501 (commit commit)))
4502 (file-name (string-append name "-" version "-checkout"))
4503 (sha256
4504 (base32
4505 "1lgnpi35ihay42qx0b6yl3kkgra723i413j33kvs0kvs61h82w0f"))
4506 (modules '((guix build utils)))
4507 (snippet
4508 '(begin
4509 ;; remove bundled Cython sources
4510 (delete-file "pbtranscript-tofu/pbtranscript/Cython-0.20.1.tar.gz")
4511 #t))))
4512 (build-system python-build-system)
4513 (arguments
4514 `(#:python ,python-2
4515 ;; FIXME: Tests fail with "No such file or directory:
4516 ;; pbtools/pbtranscript/modified_bx_intervals/intersection_unique.so"
4517 #:tests? #f
4518 #:phases
4519 (modify-phases %standard-phases
4520 (add-after 'unpack 'enter-directory
4521 (lambda _
4522 (chdir "pbtranscript-tofu/pbtranscript/")
4523 #t))
4524 ;; With setuptools version 18.0 and later this setup.py hack causes
4525 ;; a build error, so we disable it.
4526 (add-after 'enter-directory 'patch-setuppy
4527 (lambda _
4528 (substitute* "setup.py"
4529 (("if 'setuptools.extension' in sys.modules:")
4530 "if False:"))
4531 #t)))))
4532 (inputs
4533 `(("python-numpy" ,python2-numpy)
4534 ("python-bx-python" ,python2-bx-python)
4535 ("python-networkx" ,python2-networkx)
4536 ("python-scipy" ,python2-scipy)
4537 ("python-pbcore" ,python2-pbcore)
4538 ("python-h5py" ,python2-h5py)))
4539 (native-inputs
4540 `(("python-cython" ,python2-cython)
4541 ("python-nose" ,python2-nose)))
4542 (home-page "https://github.com/PacificBiosciences/cDNA_primer")
4543 (synopsis "Analyze transcriptome data generated with the Iso-Seq protocol")
4544 (description
4545 "pbtranscript-tofu contains scripts to analyze transcriptome data
4546 generated using the PacBio Iso-Seq protocol.")
4547 (license license:bsd-3))))
4548
4549 (define-public prank
4550 (package
4551 (name "prank")
4552 (version "150803")
4553 (source (origin
4554 (method url-fetch)
4555 (uri (string-append
4556 "http://wasabiapp.org/download/prank/prank.source."
4557 version ".tgz"))
4558 (sha256
4559 (base32
4560 "0am4z94fs3w2n5xpfls9zda61vq7qqz4q2i7b9hlsxz5q4j3kfm4"))))
4561 (build-system gnu-build-system)
4562 (arguments
4563 `(#:phases
4564 (modify-phases %standard-phases
4565 (add-after 'unpack 'enter-src-dir
4566 (lambda _
4567 (chdir "src")
4568 #t))
4569 (add-after 'unpack 'remove-m64-flag
4570 ;; Prank will build with the correct 'bit-ness' without this flag
4571 ;; and this allows building on 32-bit machines.
4572 (lambda _ (substitute* "src/Makefile"
4573 (("-m64") ""))
4574 #t))
4575 (delete 'configure)
4576 (replace 'install
4577 (lambda* (#:key outputs #:allow-other-keys)
4578 (let* ((out (assoc-ref outputs "out"))
4579 (bin (string-append out "/bin"))
4580 (man (string-append out "/share/man/man1"))
4581 (path (string-append
4582 (assoc-ref %build-inputs "mafft") "/bin:"
4583 (assoc-ref %build-inputs "exonerate") "/bin:"
4584 (assoc-ref %build-inputs "bppsuite") "/bin")))
4585 (install-file "prank" bin)
4586 (wrap-program (string-append bin "/prank")
4587 `("PATH" ":" prefix (,path)))
4588 (install-file "prank.1" man))
4589 #t)))))
4590 (inputs
4591 `(("mafft" ,mafft)
4592 ("exonerate" ,exonerate)
4593 ("bppsuite" ,bppsuite)))
4594 (home-page "http://wasabiapp.org/software/prank/")
4595 (synopsis "Probabilistic multiple sequence alignment program")
4596 (description
4597 "PRANK is a probabilistic multiple sequence alignment program for DNA,
4598 codon and amino-acid sequences. It is based on a novel algorithm that treats
4599 insertions correctly and avoids over-estimation of the number of deletion
4600 events. In addition, PRANK borrows ideas from maximum likelihood methods used
4601 in phylogenetics and correctly takes into account the evolutionary distances
4602 between sequences. Lastly, PRANK allows for defining a potential structure
4603 for sequences to be aligned and then, simultaneously with the alignment,
4604 predicts the locations of structural units in the sequences.")
4605 (license license:gpl2+)))
4606
4607 (define-public proteinortho
4608 (package
4609 (name "proteinortho")
4610 (version "5.16b")
4611 (source
4612 (origin
4613 (method url-fetch)
4614 (uri
4615 (string-append
4616 "http://www.bioinf.uni-leipzig.de/Software/proteinortho/proteinortho_v"
4617 version "_src.tar.gz"))
4618 (sha256
4619 (base32
4620 "1wl0dawpssqwfjvr651r4wlww8hhjin8nba6xh71ks7sbypx886j"))))
4621 (build-system gnu-build-system)
4622 (arguments
4623 `(#:test-target "test"
4624 #:phases
4625 (modify-phases %standard-phases
4626 (replace 'configure
4627 ;; There is no configure script, so we modify the Makefile directly.
4628 (lambda* (#:key outputs #:allow-other-keys)
4629 (substitute* "Makefile"
4630 (("INSTALLDIR=.*")
4631 (string-append
4632 "INSTALLDIR=" (assoc-ref outputs "out") "/bin\n")))
4633 #t))
4634 (add-before 'install 'make-install-directory
4635 ;; The install directory is not created during 'make install'.
4636 (lambda* (#:key outputs #:allow-other-keys)
4637 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
4638 #t))
4639 (add-after 'install 'wrap-programs
4640 (lambda* (#:key inputs outputs #:allow-other-keys)
4641 (let* ((path (getenv "PATH"))
4642 (out (assoc-ref outputs "out"))
4643 (binary (string-append out "/bin/proteinortho5.pl")))
4644 (wrap-program binary `("PATH" ":" prefix (,path))))
4645 #t)))))
4646 (inputs
4647 `(("perl" ,perl)
4648 ("python" ,python-2)
4649 ("blast+" ,blast+)))
4650 (home-page "http://www.bioinf.uni-leipzig.de/Software/proteinortho")
4651 (synopsis "Detect orthologous genes across species")
4652 (description
4653 "Proteinortho is a tool to detect orthologous genes across different
4654 species. For doing so, it compares similarities of given gene sequences and
4655 clusters them to find significant groups. The algorithm was designed to handle
4656 large-scale data and can be applied to hundreds of species at once.")
4657 (license license:gpl2+)))
4658
4659 (define-public pyicoteo
4660 (package
4661 (name "pyicoteo")
4662 (version "2.0.7")
4663 (source
4664 (origin
4665 (method git-fetch)
4666 (uri (git-reference
4667 (url "https://bitbucket.org/regulatorygenomicsupf/pyicoteo.git")
4668 (commit (string-append "v" version))))
4669 (file-name (git-file-name name version))
4670 (sha256
4671 (base32
4672 "0hz5g8d25lbjy1wpscr490l0lmyvaix893hhax4fxnh1h9w34w8p"))))
4673 (build-system python-build-system)
4674 (arguments
4675 `(#:python ,python-2 ; does not work with Python 3
4676 #:tests? #f)) ; there are no tests
4677 (inputs
4678 `(("python2-matplotlib" ,python2-matplotlib)))
4679 (home-page "https://bitbucket.org/regulatorygenomicsupf/pyicoteo")
4680 (synopsis "Analyze high-throughput genetic sequencing data")
4681 (description
4682 "Pyicoteo is a suite of tools for the analysis of high-throughput genetic
4683 sequencing data. It works with genomic coordinates. There are currently six
4684 different command-line tools:
4685
4686 @enumerate
4687 @item pyicoregion: for generating exploratory regions automatically;
4688 @item pyicoenrich: for differential enrichment between two conditions;
4689 @item pyicoclip: for calling CLIP-Seq peaks without a control;
4690 @item pyicos: for genomic coordinates manipulation;
4691 @item pyicoller: for peak calling on punctuated ChIP-Seq;
4692 @item pyicount: to count how many reads from N experiment files overlap in a
4693 region file;
4694 @item pyicotrocol: to combine operations from pyicoteo.
4695 @end enumerate\n")
4696 (license license:gpl3+)))
4697
4698 (define-public prodigal
4699 (package
4700 (name "prodigal")
4701 (version "2.6.3")
4702 (source (origin
4703 (method git-fetch)
4704 (uri (git-reference
4705 (url "https://github.com/hyattpd/Prodigal.git")
4706 (commit (string-append "v" version))))
4707 (file-name (git-file-name name version))
4708 (sha256
4709 (base32
4710 "1fs1hqk83qjbjhrvhw6ni75zakx5ki1ayy3v6wwkn3xvahc9hi5s"))))
4711 (build-system gnu-build-system)
4712 (arguments
4713 `(#:tests? #f ;no check target
4714 #:make-flags (list (string-append "INSTALLDIR="
4715 (assoc-ref %outputs "out")
4716 "/bin"))
4717 #:phases
4718 (modify-phases %standard-phases
4719 (delete 'configure))))
4720 (home-page "http://prodigal.ornl.gov")
4721 (synopsis "Protein-coding gene prediction for Archaea and Bacteria")
4722 (description
4723 "Prodigal runs smoothly on finished genomes, draft genomes, and
4724 metagenomes, providing gene predictions in GFF3, Genbank, or Sequin table
4725 format. It runs quickly, in an unsupervised fashion, handles gaps, handles
4726 partial genes, and identifies translation initiation sites.")
4727 (license license:gpl3+)))
4728
4729 (define-public roary
4730 (package
4731 (name "roary")
4732 (version "3.12.0")
4733 (source
4734 (origin
4735 (method url-fetch)
4736 (uri (string-append
4737 "mirror://cpan/authors/id/A/AJ/AJPAGE/Bio-Roary-"
4738 version ".tar.gz"))
4739 (sha256
4740 (base32
4741 "0qxrds9wx7cfhlkihrp6697kx0flhhxymap9fwan0b3rbdhcnmff"))))
4742 (build-system perl-build-system)
4743 (arguments
4744 `(#:phases
4745 (modify-phases %standard-phases
4746 (delete 'configure)
4747 (delete 'build)
4748 (replace 'check
4749 (lambda _
4750 ;; The tests are not run by default, so we run each test file
4751 ;; directly.
4752 (setenv "PATH" (string-append (getcwd) "/bin" ":"
4753 (getenv "PATH")))
4754 (setenv "PERL5LIB" (string-append (getcwd) "/lib" ":"
4755 (getenv "PERL5LIB")))
4756 (for-each (lambda (file)
4757 (display file)(display "\n")
4758 (invoke "perl" file))
4759 (find-files "t" ".*\\.t$"))
4760 #t))
4761 (replace 'install
4762 ;; There is no 'install' target in the Makefile.
4763 (lambda* (#:key outputs #:allow-other-keys)
4764 (let* ((out (assoc-ref outputs "out"))
4765 (bin (string-append out "/bin"))
4766 (perl (string-append out "/lib/perl5/site_perl"))
4767 (roary-plots "contrib/roary_plots"))
4768 (mkdir-p bin)
4769 (mkdir-p perl)
4770 (copy-recursively "bin" bin)
4771 (copy-recursively "lib" perl)
4772 #t)))
4773 (add-after 'install 'wrap-programs
4774 (lambda* (#:key inputs outputs #:allow-other-keys)
4775 (let* ((out (assoc-ref outputs "out"))
4776 (perl5lib (getenv "PERL5LIB"))
4777 (path (getenv "PATH")))
4778 (for-each (lambda (prog)
4779 (let ((binary (string-append out "/" prog)))
4780 (wrap-program binary
4781 `("PERL5LIB" ":" prefix
4782 (,(string-append perl5lib ":" out
4783 "/lib/perl5/site_perl"))))
4784 (wrap-program binary
4785 `("PATH" ":" prefix
4786 (,(string-append path ":" out "/bin"))))))
4787 (find-files "bin" ".*[^R]$"))
4788 (let ((file
4789 (string-append out "/bin/roary-create_pan_genome_plots.R"))
4790 (r-site-lib (getenv "R_LIBS_SITE"))
4791 (coreutils-path
4792 (string-append (assoc-ref inputs "coreutils") "/bin")))
4793 (wrap-program file
4794 `("R_LIBS_SITE" ":" prefix
4795 (,(string-append r-site-lib ":" out "/site-library/"))))
4796 (wrap-program file
4797 `("PATH" ":" prefix
4798 (,(string-append coreutils-path ":" out "/bin"))))))
4799 #t)))))
4800 (native-inputs
4801 `(("perl-env-path" ,perl-env-path)
4802 ("perl-test-files" ,perl-test-files)
4803 ("perl-test-most" ,perl-test-most)
4804 ("perl-test-output" ,perl-test-output)))
4805 (inputs
4806 `(("perl-array-utils" ,perl-array-utils)
4807 ("bioperl" ,bioperl-minimal)
4808 ("perl-digest-md5-file" ,perl-digest-md5-file)
4809 ("perl-exception-class" ,perl-exception-class)
4810 ("perl-file-find-rule" ,perl-file-find-rule)
4811 ("perl-file-grep" ,perl-file-grep)
4812 ("perl-file-slurper" ,perl-file-slurper)
4813 ("perl-file-which" ,perl-file-which)
4814 ("perl-graph" ,perl-graph)
4815 ("perl-graph-readwrite" ,perl-graph-readwrite)
4816 ("perl-log-log4perl" ,perl-log-log4perl)
4817 ("perl-moose" ,perl-moose)
4818 ("perl-perlio-utf8_strict" ,perl-perlio-utf8_strict)
4819 ("perl-text-csv" ,perl-text-csv)
4820 ("bedtools" ,bedtools)
4821 ("cd-hit" ,cd-hit)
4822 ("blast+" ,blast+)
4823 ("mcl" ,mcl)
4824 ("parallel" ,parallel)
4825 ("prank" ,prank)
4826 ("mafft" ,mafft)
4827 ("fasttree" ,fasttree)
4828 ("grep" ,grep)
4829 ("sed" ,sed)
4830 ("gawk" ,gawk)
4831 ("r-minimal" ,r-minimal)
4832 ("r-ggplot2" ,r-ggplot2)
4833 ("coreutils" ,coreutils)))
4834 (home-page "http://sanger-pathogens.github.io/Roary")
4835 (synopsis "High speed stand-alone pan genome pipeline")
4836 (description
4837 "Roary is a high speed stand alone pan genome pipeline, which takes
4838 annotated assemblies in GFF3 format (produced by the Prokka program) and
4839 calculates the pan genome. Using a standard desktop PC, it can analyse
4840 datasets with thousands of samples, without compromising the quality of the
4841 results. 128 samples can be analysed in under 1 hour using 1 GB of RAM and a
4842 single processor. Roary is not intended for metagenomics or for comparing
4843 extremely diverse sets of genomes.")
4844 (license license:gpl3)))
4845
4846 (define-public raxml
4847 (package
4848 (name "raxml")
4849 (version "8.2.12")
4850 (source
4851 (origin
4852 (method git-fetch)
4853 (uri (git-reference
4854 (url "https://github.com/stamatak/standard-RAxML.git")
4855 (commit (string-append "v" version))))
4856 (file-name (git-file-name name version))
4857 (sha256
4858 (base32
4859 "1jqjzhch0rips0vp04prvb8vmc20c5pdmsqn8knadcf91yy859fh"))))
4860 (build-system gnu-build-system)
4861 (arguments
4862 `(#:tests? #f ; There are no tests.
4863 ;; Use 'standard' Makefile rather than SSE or AVX ones.
4864 #:make-flags (list "-f" "Makefile.HYBRID.gcc")
4865 #:phases
4866 (modify-phases %standard-phases
4867 (delete 'configure)
4868 (replace 'install
4869 (lambda* (#:key outputs #:allow-other-keys)
4870 (let* ((out (assoc-ref outputs "out"))
4871 (bin (string-append out "/bin"))
4872 (executable "raxmlHPC-HYBRID"))
4873 (install-file executable bin)
4874 (symlink (string-append bin "/" executable) "raxml"))
4875 #t)))))
4876 (inputs
4877 `(("openmpi" ,openmpi)))
4878 (home-page "http://sco.h-its.org/exelixis/web/software/raxml/index.html")
4879 (synopsis "Randomized Axelerated Maximum Likelihood phylogenetic trees")
4880 (description
4881 "RAxML is a tool for phylogenetic analysis and post-analysis of large
4882 phylogenies.")
4883 ;; The source includes x86 specific code
4884 (supported-systems '("x86_64-linux" "i686-linux"))
4885 (license license:gpl2+)))
4886
4887 (define-public rsem
4888 (package
4889 (name "rsem")
4890 (version "1.3.1")
4891 (source
4892 (origin
4893 (method git-fetch)
4894 (uri (git-reference
4895 (url "https://github.com/deweylab/RSEM.git")
4896 (commit (string-append "v" version))))
4897 (sha256
4898 (base32 "1jlq11d1p8qp64w75yj8cnbbd1a93viq10pzsbwal7vdn8fg13j1"))
4899 (file-name (git-file-name name version))
4900 (modules '((guix build utils)))
4901 (snippet
4902 '(begin
4903 ;; remove bundled copy of boost and samtools
4904 (delete-file-recursively "boost")
4905 (delete-file-recursively "samtools-1.3")
4906 #t))))
4907 (build-system gnu-build-system)
4908 (arguments
4909 `(#:tests? #f ;no "check" target
4910 #:make-flags
4911 (list (string-append "BOOST="
4912 (assoc-ref %build-inputs "boost")
4913 "/include/")
4914 (string-append "SAMHEADERS="
4915 (assoc-ref %build-inputs "htslib")
4916 "/include/htslib/sam.h")
4917 (string-append "SAMLIBS="
4918 (assoc-ref %build-inputs "htslib")
4919 "/lib/libhts.a"))
4920 #:phases
4921 (modify-phases %standard-phases
4922 ;; No "configure" script.
4923 ;; Do not build bundled samtools library.
4924 (replace 'configure
4925 (lambda _
4926 (substitute* "Makefile"
4927 (("^all : \\$\\(PROGRAMS\\).*") "all: $(PROGRAMS)\n")
4928 (("^\\$\\(SAMLIBS\\).*") ""))
4929 #t))
4930 (replace 'install
4931 (lambda* (#:key outputs #:allow-other-keys)
4932 (let* ((out (string-append (assoc-ref outputs "out")))
4933 (bin (string-append out "/bin/"))
4934 (perl (string-append out "/lib/perl5/site_perl")))
4935 (mkdir-p bin)
4936 (mkdir-p perl)
4937 (for-each (lambda (file)
4938 (install-file file bin))
4939 (find-files "." "rsem-.*"))
4940 (install-file "rsem_perl_utils.pm" perl))
4941 #t))
4942 (add-after 'install 'wrap-program
4943 (lambda* (#:key outputs #:allow-other-keys)
4944 (let ((out (assoc-ref outputs "out")))
4945 (for-each (lambda (prog)
4946 (wrap-program (string-append out "/bin/" prog)
4947 `("PERL5LIB" ":" prefix
4948 (,(string-append out "/lib/perl5/site_perl")))))
4949 '("rsem-calculate-expression"
4950 "rsem-control-fdr"
4951 "rsem-generate-data-matrix"
4952 "rsem-generate-ngvector"
4953 "rsem-plot-transcript-wiggles"
4954 "rsem-prepare-reference"
4955 "rsem-run-ebseq"
4956 "rsem-run-prsem-testing-procedure")))
4957 #t)))))
4958 (inputs
4959 `(("boost" ,boost)
4960 ("r-minimal" ,r-minimal)
4961 ("perl" ,perl)
4962 ("htslib" ,htslib-1.3)
4963 ("zlib" ,zlib)))
4964 (home-page "http://deweylab.biostat.wisc.edu/rsem/")
4965 (synopsis "Estimate gene expression levels from RNA-Seq data")
4966 (description
4967 "RSEM is a software package for estimating gene and isoform expression
4968 levels from RNA-Seq data. The RSEM package provides a user-friendly
4969 interface, supports threads for parallel computation of the EM algorithm,
4970 single-end and paired-end read data, quality scores, variable-length reads and
4971 RSPD estimation. In addition, it provides posterior mean and 95% credibility
4972 interval estimates for expression levels. For visualization, it can generate
4973 BAM and Wiggle files in both transcript-coordinate and genomic-coordinate.")
4974 (license license:gpl3+)))
4975
4976 (define-public rseqc
4977 (package
4978 (name "rseqc")
4979 (version "2.6.1")
4980 (source
4981 (origin
4982 (method url-fetch)
4983 (uri
4984 (string-append "mirror://sourceforge/rseqc/"
4985 "RSeQC-" version ".tar.gz"))
4986 (sha256
4987 (base32 "15ly0254yi032qzkdplg00q144qfdsd986gh62829rl5bkxhj330"))
4988 (modules '((guix build utils)))
4989 (snippet
4990 '(begin
4991 ;; remove bundled copy of pysam
4992 (delete-file-recursively "lib/pysam")
4993 (substitute* "setup.py"
4994 ;; remove dependency on outdated "distribute" module
4995 (("^from distribute_setup import use_setuptools") "")
4996 (("^use_setuptools\\(\\)") "")
4997 ;; do not use bundled copy of pysam
4998 (("^have_pysam = False") "have_pysam = True"))
4999 #t))))
5000 (build-system python-build-system)
5001 (arguments `(#:python ,python-2))
5002 (inputs
5003 `(("python-cython" ,python2-cython)
5004 ("python-pysam" ,python2-pysam)
5005 ("python-numpy" ,python2-numpy)
5006 ("zlib" ,zlib)))
5007 (native-inputs
5008 `(("python-nose" ,python2-nose)))
5009 (home-page "http://rseqc.sourceforge.net/")
5010 (synopsis "RNA-seq quality control package")
5011 (description
5012 "RSeQC provides a number of modules that can comprehensively evaluate
5013 high throughput sequence data, especially RNA-seq data. Some basic modules
5014 inspect sequence quality, nucleotide composition bias, PCR bias and GC bias,
5015 while RNA-seq specific modules evaluate sequencing saturation, mapped reads
5016 distribution, coverage uniformity, strand specificity, etc.")
5017 (license license:gpl3+)))
5018
5019 (define-public seek
5020 ;; There are no release tarballs. According to the installation
5021 ;; instructions at http://seek.princeton.edu/installation.jsp, the latest
5022 ;; stable release is identified by this changeset ID.
5023 (let ((changeset "2329130")
5024 (revision "1"))
5025 (package
5026 (name "seek")
5027 (version (string-append "0-" revision "." changeset))
5028 (source (origin
5029 (method hg-fetch)
5030 (uri (hg-reference
5031 (url "https://bitbucket.org/libsleipnir/sleipnir")
5032 (changeset changeset)))
5033 (file-name (string-append name "-" version "-checkout"))
5034 (sha256
5035 (base32
5036 "0qrvilwh18dpbhkf92qvxbmay0j75ra3jg2wrhz67gf538zzphsx"))))
5037 (build-system gnu-build-system)
5038 (arguments
5039 `(#:modules ((srfi srfi-1)
5040 (guix build gnu-build-system)
5041 (guix build utils))
5042 #:phases
5043 (let ((dirs '("SeekMiner"
5044 "SeekEvaluator"
5045 "SeekPrep"
5046 "Distancer"
5047 "Data2DB"
5048 "PCL2Bin")))
5049 (modify-phases %standard-phases
5050 (replace 'bootstrap
5051 (lambda _
5052 (substitute* "gen_tools_am"
5053 (("/usr/bin/env.*") (which "perl")))
5054 (invoke "bash" "gen_auto")
5055 #t))
5056 (add-after 'build 'build-additional-tools
5057 (lambda* (#:key make-flags #:allow-other-keys)
5058 (for-each (lambda (dir)
5059 (with-directory-excursion (string-append "tools/" dir)
5060 (apply invoke "make" make-flags)))
5061 dirs)
5062 #t))
5063 (add-after 'install 'install-additional-tools
5064 (lambda* (#:key make-flags #:allow-other-keys)
5065 (for-each (lambda (dir)
5066 (with-directory-excursion (string-append "tools/" dir)
5067 (apply invoke `("make" ,@make-flags "install"))))
5068 dirs)
5069 #t))))))
5070 (inputs
5071 `(("gsl" ,gsl)
5072 ("boost" ,boost)
5073 ("libsvm" ,libsvm)
5074 ("readline" ,readline)
5075 ("gengetopt" ,gengetopt)
5076 ("log4cpp" ,log4cpp)))
5077 (native-inputs
5078 `(("autoconf" ,autoconf)
5079 ("automake" ,automake)
5080 ("perl" ,perl)))
5081 (home-page "http://seek.princeton.edu")
5082 (synopsis "Gene co-expression search engine")
5083 (description
5084 "SEEK is a computational gene co-expression search engine. SEEK provides
5085 biologists with a way to navigate the massive human expression compendium that
5086 now contains thousands of expression datasets. SEEK returns a robust ranking
5087 of co-expressed genes in the biological area of interest defined by the user's
5088 query genes. It also prioritizes thousands of expression datasets according
5089 to the user's query of interest.")
5090 (license license:cc-by3.0))))
5091
5092 (define-public samtools
5093 (package
5094 (name "samtools")
5095 (version "1.9")
5096 (source
5097 (origin
5098 (method url-fetch)
5099 (uri
5100 (string-append "mirror://sourceforge/samtools/samtools/"
5101 version "/samtools-" version ".tar.bz2"))
5102 (sha256
5103 (base32
5104 "10ilqbmm7ri8z431sn90lvbjwizd0hhkf9rcqw8j823hf26nhgq8"))
5105 (modules '((guix build utils)))
5106 (snippet '(begin
5107 ;; Delete bundled htslib.
5108 (delete-file-recursively "htslib-1.9")
5109 #t))))
5110 (build-system gnu-build-system)
5111 (arguments
5112 `(#:modules ((ice-9 ftw)
5113 (ice-9 regex)
5114 (guix build gnu-build-system)
5115 (guix build utils))
5116 #:configure-flags (list "--with-ncurses")
5117 #:phases
5118 (modify-phases %standard-phases
5119 (add-after 'unpack 'patch-tests
5120 (lambda _
5121 (substitute* "test/test.pl"
5122 ;; The test script calls out to /bin/bash
5123 (("/bin/bash") (which "bash")))
5124 #t))
5125 (add-after 'install 'install-library
5126 (lambda* (#:key outputs #:allow-other-keys)
5127 (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
5128 (install-file "libbam.a" lib)
5129 #t)))
5130 (add-after 'install 'install-headers
5131 (lambda* (#:key outputs #:allow-other-keys)
5132 (let ((include (string-append (assoc-ref outputs "out")
5133 "/include/samtools/")))
5134 (for-each (lambda (file)
5135 (install-file file include))
5136 (scandir "." (lambda (name) (string-match "\\.h$" name))))
5137 #t))))))
5138 (native-inputs `(("pkg-config" ,pkg-config)))
5139 (inputs
5140 `(("htslib" ,htslib)
5141 ("ncurses" ,ncurses)
5142 ("perl" ,perl)
5143 ("python" ,python)
5144 ("zlib" ,zlib)))
5145 (home-page "http://samtools.sourceforge.net")
5146 (synopsis "Utilities to efficiently manipulate nucleotide sequence alignments")
5147 (description
5148 "Samtools implements various utilities for post-processing nucleotide
5149 sequence alignments in the SAM, BAM, and CRAM formats, including indexing,
5150 variant calling (in conjunction with bcftools), and a simple alignment
5151 viewer.")
5152 (license license:expat)))
5153
5154 (define-public samtools-0.1
5155 ;; This is the most recent version of the 0.1 line of samtools. The input
5156 ;; and output formats differ greatly from that used and produced by samtools
5157 ;; 1.x and is still used in many bioinformatics pipelines.
5158 (package (inherit samtools)
5159 (version "0.1.19")
5160 (source
5161 (origin
5162 (method url-fetch)
5163 (uri
5164 (string-append "mirror://sourceforge/samtools/samtools/"
5165 version "/samtools-" version ".tar.bz2"))
5166 (sha256
5167 (base32 "1m33xsfwz0s8qi45lylagfllqg7fphf4dr0780rsvw75av9wk06h"))))
5168 (arguments
5169 `(#:tests? #f ;no "check" target
5170 #:make-flags
5171 (list "LIBCURSES=-lncurses")
5172 ,@(substitute-keyword-arguments (package-arguments samtools)
5173 ((#:phases phases)
5174 `(modify-phases ,phases
5175 (replace 'install
5176 (lambda* (#:key outputs #:allow-other-keys)
5177 (let ((bin (string-append
5178 (assoc-ref outputs "out") "/bin")))
5179 (mkdir-p bin)
5180 (install-file "samtools" bin)
5181 #t)))
5182 (delete 'patch-tests)
5183 (delete 'configure))))))))
5184
5185 (define-public mosaik
5186 (let ((commit "5c25216d3522d6a33e53875cd76a6d65001e4e67"))
5187 (package
5188 (name "mosaik")
5189 (version "2.2.30")
5190 (source (origin
5191 ;; There are no release tarballs nor tags.
5192 (method git-fetch)
5193 (uri (git-reference
5194 (url "https://github.com/wanpinglee/MOSAIK.git")
5195 (commit commit)))
5196 (file-name (string-append name "-" version))
5197 (sha256
5198 (base32
5199 "17gj3s07cm77r41z92awh0bim7w7q7fbn0sf5nkqmcm1vw052qgw"))))
5200 (build-system gnu-build-system)
5201 (arguments
5202 `(#:tests? #f ; no tests
5203 #:make-flags (list "CC=gcc")
5204 #:phases
5205 (modify-phases %standard-phases
5206 (replace 'configure
5207 (lambda _ (chdir "src") #t))
5208 (replace 'install
5209 (lambda* (#:key outputs #:allow-other-keys)
5210 (let ((bin (string-append (assoc-ref outputs "out")
5211 "/bin")))
5212 (mkdir-p bin)
5213 (copy-recursively "../bin" bin)
5214 #t))))))
5215 (inputs
5216 `(("perl" ,perl)
5217 ("zlib:static" ,zlib "static")
5218 ("zlib" ,zlib)))
5219 (supported-systems '("x86_64-linux"))
5220 (home-page "https://github.com/wanpinglee/MOSAIK")
5221 (synopsis "Map nucleotide sequence reads to reference genomes")
5222 (description
5223 "MOSAIK is a program for mapping second and third-generation sequencing
5224 reads to a reference genome. MOSAIK can align reads generated by all the
5225 major sequencing technologies, including Illumina, Applied Biosystems SOLiD,
5226 Roche 454, Ion Torrent and Pacific BioSciences SMRT.")
5227 ;; MOSAIK is released under the GPLv2+ with the exception of third-party
5228 ;; code released into the public domain:
5229 ;; 1. fastlz by Ariya Hidayat - http://www.fastlz.org/
5230 ;; 2. MD5 implementation - RSA Data Security, RFC 1321
5231 (license (list license:gpl2+ license:public-domain)))))
5232
5233 (define-public ngs-sdk
5234 (package
5235 (name "ngs-sdk")
5236 (version "2.9.3")
5237 (source (origin
5238 (method git-fetch)
5239 (uri (git-reference
5240 (url "https://github.com/ncbi/ngs.git")
5241 (commit version)))
5242 (file-name (git-file-name name version))
5243 (sha256
5244 (base32
5245 "17c0v1nah3g3d2ib5bbi0vhma1ghd6vb9xycavqsh64lhp840rk3"))))
5246 (build-system gnu-build-system)
5247 (arguments
5248 `(#:parallel-build? #f ; not supported
5249 #:tests? #f ; no "check" target
5250 #:phases
5251 (modify-phases %standard-phases
5252 (replace 'configure
5253 (lambda* (#:key outputs #:allow-other-keys)
5254 (let ((out (assoc-ref outputs "out")))
5255 ;; Allow 'konfigure.perl' to find 'package.prl'.
5256 (setenv "PERL5LIB"
5257 (string-append ".:" (getenv "PERL5LIB")))
5258
5259 ;; The 'configure' script doesn't recognize things like
5260 ;; '--enable-fast-install'.
5261 (invoke "./configure"
5262 (string-append "--build-prefix=" (getcwd) "/build")
5263 (string-append "--prefix=" out))
5264 #t)))
5265 (add-after 'unpack 'enter-dir
5266 (lambda _ (chdir "ngs-sdk") #t)))))
5267 (native-inputs `(("perl" ,perl)))
5268 ;; According to the test
5269 ;; unless ($MARCH =~ /x86_64/i || $MARCH =~ /i?86/i)
5270 ;; in ngs-sdk/setup/konfigure.perl
5271 (supported-systems '("i686-linux" "x86_64-linux"))
5272 (home-page "https://github.com/ncbi/ngs")
5273 (synopsis "API for accessing Next Generation Sequencing data")
5274 (description
5275 "NGS is a domain-specific API for accessing reads, alignments and pileups
5276 produced from Next Generation Sequencing. The API itself is independent from
5277 any particular back-end implementation, and supports use of multiple back-ends
5278 simultaneously.")
5279 (license license:public-domain)))
5280
5281 (define-public java-ngs
5282 (package (inherit ngs-sdk)
5283 (name "java-ngs")
5284 (arguments
5285 `(,@(substitute-keyword-arguments
5286 `(#:modules ((guix build gnu-build-system)
5287 (guix build utils)
5288 (srfi srfi-1)
5289 (srfi srfi-26))
5290 ,@(package-arguments ngs-sdk))
5291 ((#:phases phases)
5292 `(modify-phases ,phases
5293 (replace 'enter-dir (lambda _ (chdir "ngs-java") #t)))))))
5294 (inputs
5295 `(("jdk" ,icedtea "jdk")
5296 ("ngs-sdk" ,ngs-sdk)))
5297 (synopsis "Java bindings for NGS SDK")))
5298
5299 (define-public ncbi-vdb
5300 (package
5301 (name "ncbi-vdb")
5302 (version "2.9.3")
5303 (source (origin
5304 (method git-fetch)
5305 (uri (git-reference
5306 (url "https://github.com/ncbi/ncbi-vdb.git")
5307 (commit version)))
5308 (file-name (git-file-name name version))
5309 (sha256
5310 (base32
5311 "1l4ny67nxwv1lagk9wwjbrgm7ln7adci6dnpc7k1yaln6shj0qpm"))))
5312 (build-system gnu-build-system)
5313 (arguments
5314 `(#:parallel-build? #f ; not supported
5315 #:tests? #f ; no "check" target
5316 #:phases
5317 (modify-phases %standard-phases
5318 (add-after 'unpack 'make-files-writable
5319 (lambda _ (for-each make-file-writable (find-files "." ".*")) #t))
5320 (add-before 'configure 'set-perl-search-path
5321 (lambda _
5322 ;; Work around "dotless @INC" build failure.
5323 (setenv "PERL5LIB"
5324 (string-append (getcwd) "/setup:"
5325 (getenv "PERL5LIB")))
5326 #t))
5327 (replace 'configure
5328 (lambda* (#:key inputs outputs #:allow-other-keys)
5329 (let ((out (assoc-ref outputs "out")))
5330 ;; Override include path for libmagic
5331 (substitute* "setup/package.prl"
5332 (("name => 'magic', Include => '/usr/include'")
5333 (string-append "name=> 'magic', Include => '"
5334 (assoc-ref inputs "libmagic")
5335 "/include" "'")))
5336
5337 ;; Install kdf5 library (needed by sra-tools)
5338 (substitute* "build/Makefile.install"
5339 (("LIBRARIES_TO_INSTALL =")
5340 "LIBRARIES_TO_INSTALL = kdf5.$(VERSION_LIBX) kdf5.$(VERSION_SHLX)"))
5341
5342 (substitute* "build/Makefile.env"
5343 (("CFLAGS =" prefix)
5344 (string-append prefix "-msse2 ")))
5345
5346 ;; Override search path for ngs-java
5347 (substitute* "setup/package.prl"
5348 (("/usr/local/ngs/ngs-java")
5349 (assoc-ref inputs "java-ngs")))
5350
5351 ;; The 'configure' script doesn't recognize things like
5352 ;; '--enable-fast-install'.
5353 (invoke "./configure"
5354 (string-append "--build-prefix=" (getcwd) "/build")
5355 (string-append "--prefix=" (assoc-ref outputs "out"))
5356 (string-append "--debug")
5357 (string-append "--with-xml2-prefix="
5358 (assoc-ref inputs "libxml2"))
5359 (string-append "--with-ngs-sdk-prefix="
5360 (assoc-ref inputs "ngs-sdk"))
5361 (string-append "--with-hdf5-prefix="
5362 (assoc-ref inputs "hdf5")))
5363 #t)))
5364 (add-after 'install 'install-interfaces
5365 (lambda* (#:key outputs #:allow-other-keys)
5366 ;; Install interface libraries. On i686 the interface libraries
5367 ;; are installed to "linux/gcc/i386", so we need to use the Linux
5368 ;; architecture name ("i386") instead of the target system prefix
5369 ;; ("i686").
5370 (mkdir (string-append (assoc-ref outputs "out") "/ilib"))
5371 (copy-recursively (string-append "build/ncbi-vdb/linux/gcc/"
5372 ,(system->linux-architecture
5373 (or (%current-target-system)
5374 (%current-system)))
5375 "/rel/ilib")
5376 (string-append (assoc-ref outputs "out")
5377 "/ilib"))
5378 ;; Install interface headers
5379 (copy-recursively "interfaces"
5380 (string-append (assoc-ref outputs "out")
5381 "/include"))
5382 #t))
5383 ;; These files are needed by sra-tools.
5384 (add-after 'install 'install-configuration-files
5385 (lambda* (#:key outputs #:allow-other-keys)
5386 (let ((target (string-append (assoc-ref outputs "out") "/kfg")))
5387 (mkdir target)
5388 (install-file "libs/kfg/default.kfg" target)
5389 (install-file "libs/kfg/certs.kfg" target))
5390 #t)))))
5391 (inputs
5392 `(("libxml2" ,libxml2)
5393 ("ngs-sdk" ,ngs-sdk)
5394 ("java-ngs" ,java-ngs)
5395 ("libmagic" ,file)
5396 ("hdf5" ,hdf5)))
5397 (native-inputs `(("perl" ,perl)))
5398 ;; NCBI-VDB requires SSE capability.
5399 (supported-systems '("i686-linux" "x86_64-linux"))
5400 (home-page "https://github.com/ncbi/ncbi-vdb")
5401 (synopsis "Database engine for genetic information")
5402 (description
5403 "The NCBI-VDB library implements a highly compressed columnar data
5404 warehousing engine that is most often used to store genetic information.
5405 Databases are stored in a portable image within the file system, and can be
5406 accessed/downloaded on demand across HTTP.")
5407 (license license:public-domain)))
5408
5409 (define-public plink
5410 (package
5411 (name "plink")
5412 (version "1.07")
5413 (source
5414 (origin
5415 (method url-fetch)
5416 (uri (string-append
5417 "http://pngu.mgh.harvard.edu/~purcell/plink/dist/plink-"
5418 version "-src.zip"))
5419 (sha256
5420 (base32 "0as8gxm4pjyc8dxmm1sl873rrd7wn5qs0l29nqfnl31x8i467xaa"))
5421 (patches (search-patches "plink-1.07-unclobber-i.patch"
5422 "plink-endian-detection.patch"))))
5423 (build-system gnu-build-system)
5424 (arguments
5425 '(#:tests? #f ;no "check" target
5426 #:make-flags (list (string-append "LIB_LAPACK="
5427 (assoc-ref %build-inputs "lapack")
5428 "/lib/liblapack.so")
5429 "WITH_LAPACK=1"
5430 "FORCE_DYNAMIC=1"
5431 ;; disable phoning home
5432 "WITH_WEBCHECK=")
5433 #:phases
5434 (modify-phases %standard-phases
5435 ;; no "configure" script
5436 (delete 'configure)
5437 (replace 'install
5438 (lambda* (#:key outputs #:allow-other-keys)
5439 (let ((bin (string-append (assoc-ref outputs "out")
5440 "/bin/")))
5441 (install-file "plink" bin)
5442 #t))))))
5443 (inputs
5444 `(("zlib" ,zlib)
5445 ("lapack" ,lapack)))
5446 (native-inputs
5447 `(("unzip" ,unzip)))
5448 (home-page "http://pngu.mgh.harvard.edu/~purcell/plink/")
5449 (synopsis "Whole genome association analysis toolset")
5450 (description
5451 "PLINK is a whole genome association analysis toolset, designed to
5452 perform a range of basic, large-scale analyses in a computationally efficient
5453 manner. The focus of PLINK is purely on analysis of genotype/phenotype data,
5454 so there is no support for steps prior to this (e.g. study design and
5455 planning, generating genotype or CNV calls from raw data). Through
5456 integration with gPLINK and Haploview, there is some support for the
5457 subsequent visualization, annotation and storage of results.")
5458 ;; Code is released under GPLv2, except for fisher.h, which is under
5459 ;; LGPLv2.1+
5460 (license (list license:gpl2 license:lgpl2.1+))))
5461
5462 (define-public plink-ng
5463 (package (inherit plink)
5464 (name "plink-ng")
5465 (version "1.90b4")
5466 (source
5467 (origin
5468 (method git-fetch)
5469 (uri (git-reference
5470 (url "https://github.com/chrchang/plink-ng.git")
5471 (commit (string-append "v" version))))
5472 (file-name (git-file-name name version))
5473 (sha256
5474 (base32 "02npdwgkpfkdnhw819rhj5kw02a5k5m90b14zq9zzya4hyg929c0"))))
5475 (build-system gnu-build-system)
5476 (arguments
5477 '(#:tests? #f ;no "check" target
5478 #:make-flags (list "BLASFLAGS=-llapack -lopenblas"
5479 "CFLAGS=-Wall -O2 -DDYNAMIC_ZLIB=1"
5480 "ZLIB=-lz"
5481 "-f" "Makefile.std")
5482 #:phases
5483 (modify-phases %standard-phases
5484 (add-after 'unpack 'chdir
5485 (lambda _ (chdir "1.9") #t))
5486 (delete 'configure) ; no "configure" script
5487 (replace 'install
5488 (lambda* (#:key outputs #:allow-other-keys)
5489 (let ((bin (string-append (assoc-ref outputs "out")
5490 "/bin/")))
5491 (install-file "plink" bin)
5492 #t))))))
5493 (inputs
5494 `(("zlib" ,zlib)
5495 ("lapack" ,lapack)
5496 ("openblas" ,openblas)))
5497 (home-page "https://www.cog-genomics.org/plink/")
5498 (license license:gpl3+)))
5499
5500 (define-public smithlab-cpp
5501 (let ((revision "1")
5502 (commit "728a097bec88c6f4b8528b685932049e660eff2e"))
5503 (package
5504 (name "smithlab-cpp")
5505 (version (string-append "0." revision "." (string-take commit 7)))
5506 (source (origin
5507 (method git-fetch)
5508 (uri (git-reference
5509 (url "https://github.com/smithlabcode/smithlab_cpp.git")
5510 (commit commit)))
5511 (file-name (string-append name "-" version "-checkout"))
5512 (sha256
5513 (base32
5514 "0d476lmj312xk77kr9fzrv7z1bv96yfyx0w7y62ycmnfbx32ll74"))))
5515 (build-system gnu-build-system)
5516 (arguments
5517 `(#:modules ((guix build gnu-build-system)
5518 (guix build utils)
5519 (srfi srfi-26))
5520 #:tests? #f ;no "check" target
5521 #:phases
5522 (modify-phases %standard-phases
5523 (add-after 'unpack 'use-samtools-headers
5524 (lambda _
5525 (substitute* '("SAM.cpp"
5526 "SAM.hpp")
5527 (("sam.h") "samtools/sam.h"))
5528 #t))
5529 (replace 'install
5530 (lambda* (#:key outputs #:allow-other-keys)
5531 (let* ((out (assoc-ref outputs "out"))
5532 (lib (string-append out "/lib"))
5533 (include (string-append out "/include/smithlab-cpp")))
5534 (mkdir-p lib)
5535 (mkdir-p include)
5536 (for-each (cut install-file <> lib)
5537 (find-files "." "\\.o$"))
5538 (for-each (cut install-file <> include)
5539 (find-files "." "\\.hpp$")))
5540 #t))
5541 (delete 'configure))))
5542 (inputs
5543 `(("samtools" ,samtools-0.1)
5544 ("zlib" ,zlib)))
5545 (home-page "https://github.com/smithlabcode/smithlab_cpp")
5546 (synopsis "C++ helper library for functions used in Smith lab projects")
5547 (description
5548 "Smithlab CPP is a C++ library that includes functions used in many of
5549 the Smith lab bioinformatics projects, such as a wrapper around Samtools data
5550 structures, classes for genomic regions, mapped sequencing reads, etc.")
5551 (license license:gpl3+))))
5552
5553 (define-public preseq
5554 (package
5555 (name "preseq")
5556 (version "2.0.3")
5557 (source (origin
5558 (method url-fetch)
5559 (uri (string-append "https://github.com/smithlabcode/preseq/"
5560 "releases/download/v" version
5561 "/preseq_v" version ".tar.bz2"))
5562 (sha256
5563 (base32 "149x9xmk1wy1gff85325yfzqc0qk4sgp1w6gbyj9cnji4x1dszbl"))
5564 (modules '((guix build utils)))
5565 (snippet '(begin
5566 ;; Remove bundled samtools.
5567 (delete-file-recursively "samtools")
5568 #t))))
5569 (build-system gnu-build-system)
5570 (arguments
5571 `(#:tests? #f ;no "check" target
5572 #:phases
5573 (modify-phases %standard-phases
5574 (delete 'configure))
5575 #:make-flags
5576 (list (string-append "PREFIX="
5577 (assoc-ref %outputs "out"))
5578 (string-append "LIBBAM="
5579 (assoc-ref %build-inputs "samtools")
5580 "/lib/libbam.a")
5581 (string-append "SMITHLAB_CPP="
5582 (assoc-ref %build-inputs "smithlab-cpp")
5583 "/lib")
5584 "PROGS=preseq"
5585 "INCLUDEDIRS=$(SMITHLAB_CPP)/../include/smithlab-cpp $(SAMTOOLS_DIR)")))
5586 (inputs
5587 `(("gsl" ,gsl)
5588 ("samtools" ,samtools-0.1)
5589 ("smithlab-cpp" ,smithlab-cpp)
5590 ("zlib" ,zlib)))
5591 (home-page "http://smithlabresearch.org/software/preseq/")
5592 (synopsis "Program for analyzing library complexity")
5593 (description
5594 "The preseq package is aimed at predicting and estimating the complexity
5595 of a genomic sequencing library, equivalent to predicting and estimating the
5596 number of redundant reads from a given sequencing depth and how many will be
5597 expected from additional sequencing using an initial sequencing experiment.
5598 The estimates can then be used to examine the utility of further sequencing,
5599 optimize the sequencing depth, or to screen multiple libraries to avoid low
5600 complexity samples.")
5601 (license license:gpl3+)))
5602
5603 (define-public python-screed
5604 (package
5605 (name "python-screed")
5606 (version "1.0")
5607 (source
5608 (origin
5609 (method url-fetch)
5610 (uri (pypi-uri "screed" version))
5611 (sha256
5612 (base32
5613 "148vcb7w2wr6a4w6vs2bsxanbqibxfk490zbcbg4m61s8669zdjx"))))
5614 (build-system python-build-system)
5615 (arguments
5616 '(#:phases
5617 (modify-phases %standard-phases
5618 ;; Tests must be run after installation, as the "screed" command does
5619 ;; not exist right after building.
5620 (delete 'check)
5621 (add-after 'install 'check
5622 (lambda* (#:key inputs outputs #:allow-other-keys)
5623 (let ((out (assoc-ref outputs "out")))
5624 (setenv "PYTHONPATH"
5625 (string-append out "/lib/python"
5626 (string-take (string-take-right
5627 (assoc-ref inputs "python")
5628 5) 3)
5629 "/site-packages:"
5630 (getenv "PYTHONPATH")))
5631 (setenv "PATH" (string-append out "/bin:" (getenv "PATH"))))
5632 (invoke "python" "setup.py" "test")
5633 #t)))))
5634 (native-inputs
5635 `(("python-pytest" ,python-pytest)
5636 ("python-pytest-cov" ,python-pytest-cov)
5637 ("python-pytest-runner" ,python-pytest-runner)))
5638 (inputs
5639 `(("python-bz2file" ,python-bz2file)))
5640 (home-page "https://github.com/dib-lab/screed/")
5641 (synopsis "Short read sequence database utilities")
5642 (description "Screed parses FASTA and FASTQ files and generates databases.
5643 Values such as sequence name, sequence description, sequence quality and the
5644 sequence itself can be retrieved from these databases.")
5645 (license license:bsd-3)))
5646
5647 (define-public python2-screed
5648 (package-with-python2 python-screed))
5649
5650 (define-public sra-tools
5651 (package
5652 (name "sra-tools")
5653 (version "2.9.3")
5654 (source
5655 (origin
5656 (method git-fetch)
5657 (uri (git-reference
5658 (url "https://github.com/ncbi/sra-tools.git")
5659 (commit version)))
5660 (file-name (git-file-name name version))
5661 (sha256
5662 (base32
5663 "0663gcdxkziwsmlznjxysb00621rllpbz6jwsfifq7z3dj3lwm8b"))))
5664 (build-system gnu-build-system)
5665 (arguments
5666 `(#:parallel-build? #f ; not supported
5667 #:tests? #f ; no "check" target
5668 #:make-flags
5669 (list (string-append "DEFAULT_CRT="
5670 (assoc-ref %build-inputs "ncbi-vdb")
5671 "/kfg/certs.kfg")
5672 (string-append "DEFAULT_KFG="
5673 (assoc-ref %build-inputs "ncbi-vdb")
5674 "/kfg/default.kfg")
5675 (string-append "VDB_LIBDIR="
5676 (assoc-ref %build-inputs "ncbi-vdb")
5677 ,(if (string-prefix? "x86_64"
5678 (or (%current-target-system)
5679 (%current-system)))
5680 "/lib64"
5681 "/lib32")))
5682 #:phases
5683 (modify-phases %standard-phases
5684 (add-before 'configure 'set-perl-search-path
5685 (lambda _
5686 ;; Work around "dotless @INC" build failure.
5687 (setenv "PERL5LIB"
5688 (string-append (getcwd) "/setup:"
5689 (getenv "PERL5LIB")))
5690 #t))
5691 (replace 'configure
5692 (lambda* (#:key inputs outputs #:allow-other-keys)
5693 ;; The build system expects a directory containing the sources and
5694 ;; raw build output of ncbi-vdb, including files that are not
5695 ;; installed. Since we are building against an installed version of
5696 ;; ncbi-vdb, the following modifications are needed.
5697 (substitute* "setup/konfigure.perl"
5698 ;; Make the configure script look for the "ilib" directory of
5699 ;; "ncbi-vdb" without first checking for the existence of a
5700 ;; matching library in its "lib" directory.
5701 (("^ my \\$f = File::Spec->catdir\\(\\$libdir, \\$lib\\);")
5702 "my $f = File::Spec->catdir($ilibdir, $ilib);")
5703 ;; Look for interface libraries in ncbi-vdb's "ilib" directory.
5704 (("my \\$ilibdir = File::Spec->catdir\\(\\$builddir, 'ilib'\\);")
5705 "my $ilibdir = File::Spec->catdir($dir, 'ilib');"))
5706
5707 ;; Dynamic linking
5708 (substitute* "tools/copycat/Makefile"
5709 (("smagic-static") "lmagic"))
5710
5711 ;; The 'configure' script doesn't recognize things like
5712 ;; '--enable-fast-install'.
5713 (invoke "./configure"
5714 (string-append "--build-prefix=" (getcwd) "/build")
5715 (string-append "--prefix=" (assoc-ref outputs "out"))
5716 (string-append "--debug")
5717 (string-append "--with-fuse-prefix="
5718 (assoc-ref inputs "fuse"))
5719 (string-append "--with-magic-prefix="
5720 (assoc-ref inputs "libmagic"))
5721 ;; TODO: building with libxml2 fails with linker errors
5722 ;; (string-append "--with-xml2-prefix="
5723 ;; (assoc-ref inputs "libxml2"))
5724 (string-append "--with-ncbi-vdb-sources="
5725 (assoc-ref inputs "ncbi-vdb"))
5726 (string-append "--with-ncbi-vdb-build="
5727 (assoc-ref inputs "ncbi-vdb"))
5728 (string-append "--with-ngs-sdk-prefix="
5729 (assoc-ref inputs "ngs-sdk"))
5730 (string-append "--with-hdf5-prefix="
5731 (assoc-ref inputs "hdf5")))
5732 #t)))))
5733 (native-inputs `(("perl" ,perl)))
5734 (inputs
5735 `(("ngs-sdk" ,ngs-sdk)
5736 ("ncbi-vdb" ,ncbi-vdb)
5737 ("libmagic" ,file)
5738 ("fuse" ,fuse)
5739 ("hdf5" ,hdf5)
5740 ("zlib" ,zlib)))
5741 (home-page "http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software")
5742 (synopsis "Tools and libraries for reading and writing sequencing data")
5743 (description
5744 "The SRA Toolkit from NCBI is a collection of tools and libraries for
5745 reading of sequencing files from the Sequence Read Archive (SRA) database and
5746 writing files into the .sra format.")
5747 (license license:public-domain)))
5748
5749 (define-public seqan
5750 (package
5751 (name "seqan")
5752 (version "2.4.0")
5753 (source (origin
5754 (method url-fetch)
5755 (uri (string-append "https://github.com/seqan/seqan/releases/"
5756 "download/seqan-v" version
5757 "/seqan-library-" version ".tar.xz"))
5758 (sha256
5759 (base32
5760 "19a1rlxx03qy1i1iriicly68w64yjxbv24g9gdywnfmq998v35yx"))))
5761 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
5762 ;; makes sense to split the outputs.
5763 (outputs '("out" "doc"))
5764 (build-system trivial-build-system)
5765 (arguments
5766 `(#:modules ((guix build utils))
5767 #:builder
5768 (begin
5769 (use-modules (guix build utils))
5770 (let ((tar (assoc-ref %build-inputs "tar"))
5771 (xz (assoc-ref %build-inputs "xz"))
5772 (out (assoc-ref %outputs "out"))
5773 (doc (assoc-ref %outputs "doc")))
5774 (setenv "PATH" (string-append tar "/bin:" xz "/bin"))
5775 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
5776 (chdir (string-append "seqan-library-" ,version))
5777 (copy-recursively "include" (string-append out "/include"))
5778 (copy-recursively "share" (string-append doc "/share"))
5779 #t))))
5780 (native-inputs
5781 `(("source" ,source)
5782 ("tar" ,tar)
5783 ("xz" ,xz)))
5784 (home-page "http://www.seqan.de")
5785 (synopsis "Library for nucleotide sequence analysis")
5786 (description
5787 "SeqAn is a C++ library of efficient algorithms and data structures for
5788 the analysis of sequences with the focus on biological data. It contains
5789 algorithms and data structures for string representation and their
5790 manipulation, online and indexed string search, efficient I/O of
5791 bioinformatics file formats, sequence alignment, and more.")
5792 (license license:bsd-3)))
5793
5794 (define-public seqan-1
5795 (package (inherit seqan)
5796 (name "seqan")
5797 (version "1.4.2")
5798 (source (origin
5799 (method url-fetch)
5800 (uri (string-append "http://packages.seqan.de/seqan-library/"
5801 "seqan-library-" version ".tar.bz2"))
5802 (sha256
5803 (base32
5804 "05s3wrrwn50f81aklfm65i4a749zag1vr8z03k21xm0pdxy47yvp"))))
5805 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
5806 ;; makes sense to split the outputs.
5807 (outputs '("out" "doc"))
5808 (build-system trivial-build-system)
5809 (arguments
5810 `(#:modules ((guix build utils))
5811 #:builder
5812 (begin
5813 (use-modules (guix build utils))
5814 (let ((tar (assoc-ref %build-inputs "tar"))
5815 (bzip (assoc-ref %build-inputs "bzip2"))
5816 (out (assoc-ref %outputs "out"))
5817 (doc (assoc-ref %outputs "doc")))
5818 (setenv "PATH" (string-append tar "/bin:" bzip "/bin"))
5819 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
5820 (chdir (string-append "seqan-library-" ,version))
5821 (copy-recursively "include" (string-append out "/include"))
5822 (copy-recursively "share" (string-append doc "/share"))
5823 #t))))
5824 (native-inputs
5825 `(("source" ,source)
5826 ("tar" ,tar)
5827 ("bzip2" ,bzip2)))))
5828
5829 (define-public seqmagick
5830 (package
5831 (name "seqmagick")
5832 (version "0.7.0")
5833 (source
5834 (origin
5835 (method url-fetch)
5836 (uri (pypi-uri "seqmagick" version))
5837 (sha256
5838 (base32
5839 "12bfyp8nqi0hd36rmj450aygafp01qy3hkbvlwn3bk39pyjjkgg5"))))
5840 (build-system python-build-system)
5841 (inputs
5842 `(("python-biopython" ,python-biopython)))
5843 (native-inputs
5844 `(("python-nose" ,python-nose)))
5845 (home-page "https://github.com/fhcrc/seqmagick")
5846 (synopsis "Tools for converting and modifying sequence files")
5847 (description
5848 "Bioinformaticians often have to convert sequence files between formats
5849 and do little manipulations on them, and it's not worth writing scripts for
5850 that. Seqmagick is a utility to expose the file format conversion in
5851 BioPython in a convenient way. Instead of having a big mess of scripts, there
5852 is one that takes arguments.")
5853 (license license:gpl3)))
5854
5855 (define-public seqtk
5856 (package
5857 (name "seqtk")
5858 (version "1.3")
5859 (source (origin
5860 (method git-fetch)
5861 (uri (git-reference
5862 (url "https://github.com/lh3/seqtk.git")
5863 (commit (string-append "v" version))))
5864 (file-name (git-file-name name version))
5865 (sha256
5866 (base32
5867 "1bfzlqa84b5s1qi22blmmw2s8xdyp9h9ydcq22pfjhh5gab3yz6l"))))
5868 (build-system gnu-build-system)
5869 (arguments
5870 `(#:phases
5871 (modify-phases %standard-phases
5872 (delete 'configure)
5873 (replace 'check
5874 ;; There are no tests, so we just run a sanity check.
5875 (lambda _ (invoke "./seqtk" "seq") #t))
5876 (replace 'install
5877 (lambda* (#:key outputs #:allow-other-keys)
5878 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5879 (install-file "seqtk" bin)
5880 #t))))))
5881 (inputs
5882 `(("zlib" ,zlib)))
5883 (home-page "https://github.com/lh3/seqtk")
5884 (synopsis "Toolkit for processing biological sequences in FASTA/Q format")
5885 (description
5886 "Seqtk is a fast and lightweight tool for processing sequences in the
5887 FASTA or FASTQ format. It parses both FASTA and FASTQ files which can be
5888 optionally compressed by gzip.")
5889 (license license:expat)))
5890
5891 (define-public snap-aligner
5892 (package
5893 (name "snap-aligner")
5894 (version "1.0beta.18")
5895 (source (origin
5896 (method git-fetch)
5897 (uri (git-reference
5898 (url "https://github.com/amplab/snap.git")
5899 (commit (string-append "v" version))))
5900 (file-name (git-file-name name version))
5901 (sha256
5902 (base32
5903 "01w3qq4wm07z73vky0cfwlmrbf50n3w722cxrlzxfi99mnb808d8"))))
5904 (build-system gnu-build-system)
5905 (arguments
5906 '(#:phases
5907 (modify-phases %standard-phases
5908 (delete 'configure)
5909 (replace 'check (lambda _ (invoke "./unit_tests") #t))
5910 (replace 'install
5911 (lambda* (#:key outputs #:allow-other-keys)
5912 (let* ((out (assoc-ref outputs "out"))
5913 (bin (string-append out "/bin")))
5914 (install-file "snap-aligner" bin)
5915 (install-file "SNAPCommand" bin)
5916 #t))))))
5917 (native-inputs
5918 `(("zlib" ,zlib)))
5919 (home-page "http://snap.cs.berkeley.edu/")
5920 (synopsis "Short read DNA sequence aligner")
5921 (description
5922 "SNAP is a fast and accurate aligner for short DNA reads. It is
5923 optimized for modern read lengths of 100 bases or higher, and takes advantage
5924 of these reads to align data quickly through a hash-based indexing scheme.")
5925 ;; 32-bit systems are not supported by the unpatched code.
5926 ;; Following the bug reports https://github.com/amplab/snap/issues/68 and
5927 ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812378 we see that
5928 ;; systems without a lot of memory cannot make good use of this program.
5929 (supported-systems '("x86_64-linux"))
5930 (license license:asl2.0)))
5931
5932 (define-public sortmerna
5933 (package
5934 (name "sortmerna")
5935 (version "2.1b")
5936 (source
5937 (origin
5938 (method git-fetch)
5939 (uri (git-reference
5940 (url "https://github.com/biocore/sortmerna.git")
5941 (commit version)))
5942 (file-name (git-file-name name version))
5943 (sha256
5944 (base32
5945 "0j3mbz4n25738yijmjbr5r4fyvkgm8v5vn3sshyfvmyqf5q9byqf"))))
5946 (build-system gnu-build-system)
5947 (outputs '("out" ;for binaries
5948 "db")) ;for sequence databases
5949 (arguments
5950 `(#:phases
5951 (modify-phases %standard-phases
5952 (replace 'install
5953 (lambda* (#:key outputs #:allow-other-keys)
5954 (let* ((out (assoc-ref outputs "out"))
5955 (bin (string-append out "/bin"))
5956 (db (assoc-ref outputs "db"))
5957 (share
5958 (string-append db "/share/sortmerna/rRNA_databases")))
5959 (install-file "sortmerna" bin)
5960 (install-file "indexdb_rna" bin)
5961 (for-each (lambda (file)
5962 (install-file file share))
5963 (find-files "rRNA_databases" ".*fasta"))
5964 #t))))))
5965 (inputs
5966 `(("zlib" ,zlib)))
5967 (home-page "http://bioinfo.lifl.fr/RNA/sortmerna")
5968 (synopsis "Biological sequence analysis tool for NGS reads")
5969 (description
5970 "SortMeRNA is a biological sequence analysis tool for filtering, mapping
5971 and operational taxonomic unit (OTU) picking of next generation
5972 sequencing (NGS) reads. The core algorithm is based on approximate seeds and
5973 allows for fast and sensitive analyses of nucleotide sequences. The main
5974 application of SortMeRNA is filtering rRNA from metatranscriptomic data.")
5975 ;; The source includes x86 specific code
5976 (supported-systems '("x86_64-linux" "i686-linux"))
5977 (license license:lgpl3)))
5978
5979 (define-public star
5980 (package
5981 (name "star")
5982 (version "2.7.0b")
5983 (source (origin
5984 (method git-fetch)
5985 (uri (git-reference
5986 (url "https://github.com/alexdobin/STAR.git")
5987 (commit version)))
5988 (file-name (string-append name "-" version "-checkout"))
5989 (sha256
5990 (base32
5991 "1lih6cbpvnvhyvvswdhy06mwyzvwax96m723378v4z6psqzsh11d"))
5992 (modules '((guix build utils)))
5993 (snippet
5994 '(begin
5995 (substitute* "source/Makefile"
5996 (("/bin/rm") "rm"))
5997 ;; Remove pre-built binaries and bundled htslib sources.
5998 (delete-file-recursively "bin/MacOSX_x86_64")
5999 (delete-file-recursively "bin/Linux_x86_64")
6000 (delete-file-recursively "bin/Linux_x86_64_static")
6001 (delete-file-recursively "source/htslib")
6002 #t))))
6003 (build-system gnu-build-system)
6004 (arguments
6005 '(#:tests? #f ;no check target
6006 #:make-flags '("STAR")
6007 #:phases
6008 (modify-phases %standard-phases
6009 (add-after 'unpack 'enter-source-dir
6010 (lambda _ (chdir "source") #t))
6011 (add-after 'enter-source-dir 'make-reproducible
6012 (lambda _
6013 (substitute* "Makefile"
6014 (("(COMPILATION_TIME_PLACE=\")(.*)(\")" _ pre mid post)
6015 (string-append pre "Built with Guix" post)))
6016 #t))
6017 ;; See https://github.com/alexdobin/STAR/pull/562
6018 (add-after 'enter-source-dir 'add-missing-header
6019 (lambda _
6020 (substitute* "SoloReadFeature_inputRecords.cpp"
6021 (("#include \"binarySearch2.h\"" h)
6022 (string-append h "\n#include <math.h>")))
6023 #t))
6024 (add-after 'enter-source-dir 'do-not-use-bundled-htslib
6025 (lambda _
6026 (substitute* "Makefile"
6027 (("(Depend.list: \\$\\(SOURCES\\) parametersDefault\\.xxd) htslib"
6028 _ prefix) prefix))
6029 (substitute* '("BAMfunctions.cpp"
6030 "signalFromBAM.h"
6031 "bam_cat.h"
6032 "bam_cat.c"
6033 "STAR.cpp"
6034 "bamRemoveDuplicates.cpp")
6035 (("#include \"htslib/([^\"]+\\.h)\"" _ header)
6036 (string-append "#include <" header ">")))
6037 (substitute* "IncludeDefine.h"
6038 (("\"htslib/(htslib/[^\"]+.h)\"" _ header)
6039 (string-append "<" header ">")))
6040 #t))
6041 (replace 'install
6042 (lambda* (#:key outputs #:allow-other-keys)
6043 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6044 (install-file "STAR" bin))
6045 #t))
6046 (delete 'configure))))
6047 (native-inputs
6048 `(("xxd" ,xxd)))
6049 (inputs
6050 `(("htslib" ,htslib)
6051 ("zlib" ,zlib)))
6052 (home-page "https://github.com/alexdobin/STAR")
6053 (synopsis "Universal RNA-seq aligner")
6054 (description
6055 "The Spliced Transcripts Alignment to a Reference (STAR) software is
6056 based on a previously undescribed RNA-seq alignment algorithm that uses
6057 sequential maximum mappable seed search in uncompressed suffix arrays followed
6058 by seed clustering and stitching procedure. In addition to unbiased de novo
6059 detection of canonical junctions, STAR can discover non-canonical splices and
6060 chimeric (fusion) transcripts, and is also capable of mapping full-length RNA
6061 sequences.")
6062 ;; Only 64-bit systems are supported according to the README.
6063 (supported-systems '("x86_64-linux" "mips64el-linux"))
6064 ;; STAR is licensed under GPLv3 or later; htslib is MIT-licensed.
6065 (license license:gpl3+)))
6066
6067 (define-public subread
6068 (package
6069 (name "subread")
6070 (version "1.6.0")
6071 (source (origin
6072 (method url-fetch)
6073 (uri (string-append "mirror://sourceforge/subread/subread-"
6074 version "/subread-" version "-source.tar.gz"))
6075 (sha256
6076 (base32
6077 "0ah0n4jx6ksk2m2j7xk385x2qzmk1y4rfc6a4mfrdqrlq721w99i"))))
6078 (build-system gnu-build-system)
6079 (arguments
6080 `(#:tests? #f ;no "check" target
6081 ;; The CC and CCFLAGS variables are set to contain a lot of x86_64
6082 ;; optimizations by default, so we override these flags such that x86_64
6083 ;; flags are only added when the build target is an x86_64 system.
6084 #:make-flags
6085 (list (let ((system ,(or (%current-target-system)
6086 (%current-system)))
6087 (flags '("-ggdb" "-fomit-frame-pointer"
6088 "-ffast-math" "-funroll-loops"
6089 "-fmessage-length=0"
6090 "-O9" "-Wall" "-DMAKE_FOR_EXON"
6091 "-DMAKE_STANDALONE"
6092 "-DSUBREAD_VERSION=\\\"${SUBREAD_VERSION}\\\""))
6093 (flags64 '("-mmmx" "-msse" "-msse2" "-msse3")))
6094 (if (string-prefix? "x86_64" system)
6095 (string-append "CCFLAGS=" (string-join (append flags flags64)))
6096 (string-append "CCFLAGS=" (string-join flags))))
6097 "-f" "Makefile.Linux"
6098 "CC=gcc ${CCFLAGS}")
6099 #:phases
6100 (modify-phases %standard-phases
6101 (add-after 'unpack 'enter-dir
6102 (lambda _ (chdir "src") #t))
6103 (replace 'install
6104 (lambda* (#:key outputs #:allow-other-keys)
6105 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6106 (mkdir-p bin)
6107 (copy-recursively "../bin" bin))
6108 #t))
6109 ;; no "configure" script
6110 (delete 'configure))))
6111 (inputs `(("zlib" ,zlib)))
6112 (home-page "http://bioinf.wehi.edu.au/subread-package/")
6113 (synopsis "Tool kit for processing next-gen sequencing data")
6114 (description
6115 "The subread package contains the following tools: subread aligner, a
6116 general-purpose read aligner; subjunc aligner: detecting exon-exon junctions
6117 and mapping RNA-seq reads; featureCounts: counting mapped reads for genomic
6118 features; exactSNP: a SNP caller that discovers SNPs by testing signals
6119 against local background noises.")
6120 (license license:gpl3+)))
6121
6122 (define-public stringtie
6123 (package
6124 (name "stringtie")
6125 (version "1.2.1")
6126 (source (origin
6127 (method url-fetch)
6128 (uri (string-append "http://ccb.jhu.edu/software/stringtie/dl/"
6129 "stringtie-" version ".tar.gz"))
6130 (sha256
6131 (base32
6132 "1cqllsc1maq4kh92isi8yadgzbmnf042hlnalpk3y59aph1z3bfz"))
6133 (modules '((guix build utils)))
6134 (snippet
6135 '(begin
6136 (delete-file-recursively "samtools-0.1.18")
6137 #t))))
6138 (build-system gnu-build-system)
6139 (arguments
6140 `(#:tests? #f ;no test suite
6141 #:phases
6142 (modify-phases %standard-phases
6143 ;; no configure script
6144 (delete 'configure)
6145 (add-before 'build 'use-system-samtools
6146 (lambda _
6147 (substitute* "Makefile"
6148 (("stringtie: \\$\\{BAM\\}/libbam\\.a")
6149 "stringtie: "))
6150 (substitute* '("gclib/GBam.h"
6151 "gclib/GBam.cpp")
6152 (("#include \"(bam|sam|kstring).h\"" _ header)
6153 (string-append "#include <samtools/" header ".h>")))
6154 #t))
6155 (add-after 'unpack 'remove-duplicate-typedef
6156 (lambda _
6157 ;; This typedef conflicts with the typedef in
6158 ;; glibc-2.25/include/bits/types.h
6159 (substitute* "gclib/GThreads.h"
6160 (("typedef long long __intmax_t;") ""))
6161 #t))
6162 (replace 'install
6163 (lambda* (#:key outputs #:allow-other-keys)
6164 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6165 (install-file "stringtie" bin)
6166 #t))))))
6167 (inputs
6168 `(("samtools" ,samtools-0.1)
6169 ("zlib" ,zlib)))
6170 (home-page "http://ccb.jhu.edu/software/stringtie/")
6171 (synopsis "Transcript assembly and quantification for RNA-Seq data")
6172 (description
6173 "StringTie is a fast and efficient assembler of RNA-Seq sequence
6174 alignments into potential transcripts. It uses a novel network flow algorithm
6175 as well as an optional de novo assembly step to assemble and quantitate
6176 full-length transcripts representing multiple splice variants for each gene
6177 locus. Its input can include not only the alignments of raw reads used by
6178 other transcript assemblers, but also alignments of longer sequences that have
6179 been assembled from those reads. To identify differentially expressed genes
6180 between experiments, StringTie's output can be processed either by the
6181 Cuffdiff or Ballgown programs.")
6182 (license license:artistic2.0)))
6183
6184 (define-public taxtastic
6185 (package
6186 (name "taxtastic")
6187 (version "0.8.5")
6188 (source (origin
6189 (method url-fetch)
6190 (uri (pypi-uri "taxtastic" version))
6191 (sha256
6192 (base32
6193 "03pysw79lsrvz4lwzis88j15067ffqbi4cid5pqhrlxmd6bh8rrk"))))
6194 (build-system python-build-system)
6195 (arguments
6196 `(#:python ,python-2
6197 #:phases
6198 (modify-phases %standard-phases
6199 (replace 'check
6200 (lambda _ (invoke "python" "-m" "unittest" "discover" "-v") #t)))))
6201 (propagated-inputs
6202 `(("python-sqlalchemy" ,python2-sqlalchemy)
6203 ("python-decorator" ,python2-decorator)
6204 ("python-biopython" ,python2-biopython)
6205 ("python-pandas" ,python2-pandas)
6206 ("python-psycopg2" ,python2-psycopg2)
6207 ("python-fastalite" ,python2-fastalite)
6208 ("python-pyyaml" ,python2-pyyaml)
6209 ("python-six" ,python2-six)
6210 ("python-jinja2" ,python2-jinja2)
6211 ("python-dendropy" ,python2-dendropy)))
6212 (home-page "https://github.com/fhcrc/taxtastic")
6213 (synopsis "Tools for taxonomic naming and annotation")
6214 (description
6215 "Taxtastic is software written in python used to build and maintain
6216 reference packages i.e. collections of reference trees, reference alignments,
6217 profiles, and associated taxonomic information.")
6218 (license license:gpl3+)))
6219
6220 (define-public vcftools
6221 (package
6222 (name "vcftools")
6223 (version "0.1.15")
6224 (source (origin
6225 (method url-fetch)
6226 (uri (string-append
6227 "https://github.com/vcftools/vcftools/releases/download/v"
6228 version "/vcftools-" version ".tar.gz"))
6229 (sha256
6230 (base32
6231 "1qw30c45wihgy632rbz4rh3njnwj4msj46l1rsgdhyg6bgypmr1i"))))
6232 (build-system gnu-build-system)
6233 (arguments
6234 `(#:tests? #f ; no "check" target
6235 #:make-flags (list
6236 "CFLAGS=-O2" ; override "-m64" flag
6237 (string-append "PREFIX=" (assoc-ref %outputs "out"))
6238 (string-append "MANDIR=" (assoc-ref %outputs "out")
6239 "/share/man/man1"))))
6240 (native-inputs
6241 `(("pkg-config" ,pkg-config)))
6242 (inputs
6243 `(("perl" ,perl)
6244 ("zlib" ,zlib)))
6245 (home-page "https://vcftools.github.io/")
6246 (synopsis "Tools for working with VCF files")
6247 (description
6248 "VCFtools is a program package designed for working with VCF files, such
6249 as those generated by the 1000 Genomes Project. The aim of VCFtools is to
6250 provide easily accessible methods for working with complex genetic variation
6251 data in the form of VCF files.")
6252 ;; The license is declared as LGPLv3 in the README and
6253 ;; at https://vcftools.github.io/license.html
6254 (license license:lgpl3)))
6255
6256 (define-public infernal
6257 (package
6258 (name "infernal")
6259 (version "1.1.2")
6260 (source (origin
6261 (method url-fetch)
6262 (uri (string-append "http://eddylab.org/software/infernal/"
6263 "infernal-" version ".tar.gz"))
6264 (sha256
6265 (base32
6266 "0sr2hiz3qxfwqpz3whxr6n82p3x27336v3f34iqznp10hks2935c"))))
6267 (build-system gnu-build-system)
6268 (native-inputs
6269 `(("perl" ,perl))) ; for tests
6270 (home-page "http://eddylab.org/infernal/")
6271 (synopsis "Inference of RNA alignments")
6272 (description "Infernal (\"INFERence of RNA ALignment\") is a tool for
6273 searching DNA sequence databases for RNA structure and sequence similarities.
6274 It is an implementation of a special case of profile stochastic context-free
6275 grammars called @dfn{covariance models} (CMs). A CM is like a sequence
6276 profile, but it scores a combination of sequence consensus and RNA secondary
6277 structure consensus, so in many cases, it is more capable of identifying RNA
6278 homologs that conserve their secondary structure more than their primary
6279 sequence.")
6280 ;; Infernal 1.1.2 requires VMX or SSE capability for parallel instructions.
6281 (supported-systems '("i686-linux" "x86_64-linux"))
6282 (license license:bsd-3)))
6283
6284 (define-public r-scde
6285 (package
6286 (name "r-scde")
6287 (version "1.99.2")
6288 (source (origin
6289 (method git-fetch)
6290 (uri (git-reference
6291 (url "https://github.com/hms-dbmi/scde.git")
6292 (commit version)))
6293 (file-name (git-file-name name version))
6294 (sha256
6295 (base32
6296 "10na2gyka24mszdxf92wz9h2c13hdf1ww30c68gfsw53lvvhhhxb"))))
6297 (build-system r-build-system)
6298 (propagated-inputs
6299 `(("r-rcpp" ,r-rcpp)
6300 ("r-rcpparmadillo" ,r-rcpparmadillo)
6301 ("r-mgcv" ,r-mgcv)
6302 ("r-rook" ,r-rook)
6303 ("r-rjson" ,r-rjson)
6304 ("r-cairo" ,r-cairo)
6305 ("r-rcolorbrewer" ,r-rcolorbrewer)
6306 ("r-edger" ,r-edger)
6307 ("r-quantreg" ,r-quantreg)
6308 ("r-nnet" ,r-nnet)
6309 ("r-rmtstat" ,r-rmtstat)
6310 ("r-extremes" ,r-extremes)
6311 ("r-pcamethods" ,r-pcamethods)
6312 ("r-biocparallel" ,r-biocparallel)
6313 ("r-flexmix" ,r-flexmix)))
6314 (home-page "https://hms-dbmi.github.io/scde/")
6315 (synopsis "R package for analyzing single-cell RNA-seq data")
6316 (description "The SCDE package implements a set of statistical methods for
6317 analyzing single-cell RNA-seq data. SCDE fits individual error models for
6318 single-cell RNA-seq measurements. These models can then be used for
6319 assessment of differential expression between groups of cells, as well as
6320 other types of analysis. The SCDE package also contains the pagoda framework
6321 which applies pathway and gene set overdispersion analysis to identify aspects
6322 of transcriptional heterogeneity among single cells.")
6323 ;; See https://github.com/hms-dbmi/scde/issues/38
6324 (license license:gpl2)))
6325
6326 (define-public r-centipede
6327 (package
6328 (name "r-centipede")
6329 (version "1.2")
6330 (source (origin
6331 (method url-fetch)
6332 (uri (string-append "http://download.r-forge.r-project.org/"
6333 "src/contrib/CENTIPEDE_" version ".tar.gz"))
6334 (sha256
6335 (base32
6336 "1hsx6qgwr0i67fhy9257zj7s0ppncph2hjgbia5nn6nfmj0ax6l9"))))
6337 (build-system r-build-system)
6338 (home-page "http://centipede.uchicago.edu/")
6339 (synopsis "Predict transcription factor binding sites")
6340 (description
6341 "CENTIPEDE applies a hierarchical Bayesian mixture model to infer regions
6342 of the genome that are bound by particular transcription factors. It starts
6343 by identifying a set of candidate binding sites, and then aims to classify the
6344 sites according to whether each site is bound or not bound by a transcription
6345 factor. CENTIPEDE is an unsupervised learning algorithm that discriminates
6346 between two different types of motif instances using as much relevant
6347 information as possible.")
6348 (license (list license:gpl2+ license:gpl3+))))
6349
6350 (define-public r-genefilter
6351 (package
6352 (name "r-genefilter")
6353 (version "1.64.0")
6354 (source
6355 (origin
6356 (method url-fetch)
6357 (uri (bioconductor-uri "genefilter" version))
6358 (sha256
6359 (base32
6360 "0p64s1n1627yafnp25wjr4b22p34lqw574fx2qg4s1m0lffh1z6i"))))
6361 (build-system r-build-system)
6362 (native-inputs
6363 `(("gfortran" ,gfortran)))
6364 (propagated-inputs
6365 `(("r-annotate" ,r-annotate)
6366 ("r-annotationdbi" ,r-annotationdbi)
6367 ("r-biobase" ,r-biobase)
6368 ("r-s4vectors" ,r-s4vectors)
6369 ("r-survival" ,r-survival)))
6370 (home-page "https://bioconductor.org/packages/genefilter")
6371 (synopsis "Filter genes from high-throughput experiments")
6372 (description
6373 "This package provides basic functions for filtering genes from
6374 high-throughput sequencing experiments.")
6375 (license license:artistic2.0)))
6376
6377 (define-public r-deseq2
6378 (package
6379 (name "r-deseq2")
6380 (version "1.22.2")
6381 (source
6382 (origin
6383 (method url-fetch)
6384 (uri (bioconductor-uri "DESeq2" version))
6385 (sha256
6386 (base32
6387 "0n5ah84mxn87p45drzy0wh2yknmzj1q5i6gv0v9vgg1lj7awb91r"))))
6388 (properties `((upstream-name . "DESeq2")))
6389 (build-system r-build-system)
6390 (propagated-inputs
6391 `(("r-biobase" ,r-biobase)
6392 ("r-biocgenerics" ,r-biocgenerics)
6393 ("r-biocparallel" ,r-biocparallel)
6394 ("r-genefilter" ,r-genefilter)
6395 ("r-geneplotter" ,r-geneplotter)
6396 ("r-genomicranges" ,r-genomicranges)
6397 ("r-ggplot2" ,r-ggplot2)
6398 ("r-hmisc" ,r-hmisc)
6399 ("r-iranges" ,r-iranges)
6400 ("r-locfit" ,r-locfit)
6401 ("r-rcpp" ,r-rcpp)
6402 ("r-rcpparmadillo" ,r-rcpparmadillo)
6403 ("r-s4vectors" ,r-s4vectors)
6404 ("r-summarizedexperiment" ,r-summarizedexperiment)))
6405 (home-page "https://bioconductor.org/packages/DESeq2")
6406 (synopsis "Differential gene expression analysis")
6407 (description
6408 "This package provides functions to estimate variance-mean dependence in
6409 count data from high-throughput nucleotide sequencing assays and test for
6410 differential expression based on a model using the negative binomial
6411 distribution.")
6412 (license license:lgpl3+)))
6413
6414 (define-public r-dexseq
6415 (package
6416 (name "r-dexseq")
6417 (version "1.28.1")
6418 (source
6419 (origin
6420 (method url-fetch)
6421 (uri (bioconductor-uri "DEXSeq" version))
6422 (sha256
6423 (base32
6424 "0g5w9bn2nb3m670hkcsnhfvvkza2318z9irlhhwhb3n8rdzlsdym"))))
6425 (properties `((upstream-name . "DEXSeq")))
6426 (build-system r-build-system)
6427 (propagated-inputs
6428 `(("r-annotationdbi" ,r-annotationdbi)
6429 ("r-biobase" ,r-biobase)
6430 ("r-biocgenerics" ,r-biocgenerics)
6431 ("r-biocparallel" ,r-biocparallel)
6432 ("r-biomart" ,r-biomart)
6433 ("r-deseq2" ,r-deseq2)
6434 ("r-genefilter" ,r-genefilter)
6435 ("r-geneplotter" ,r-geneplotter)
6436 ("r-genomicranges" ,r-genomicranges)
6437 ("r-hwriter" ,r-hwriter)
6438 ("r-iranges" ,r-iranges)
6439 ("r-rcolorbrewer" ,r-rcolorbrewer)
6440 ("r-rsamtools" ,r-rsamtools)
6441 ("r-s4vectors" ,r-s4vectors)
6442 ("r-statmod" ,r-statmod)
6443 ("r-stringr" ,r-stringr)
6444 ("r-summarizedexperiment" ,r-summarizedexperiment)))
6445 (home-page "https://bioconductor.org/packages/DEXSeq")
6446 (synopsis "Inference of differential exon usage in RNA-Seq")
6447 (description
6448 "This package is focused on finding differential exon usage using RNA-seq
6449 exon counts between samples with different experimental designs. It provides
6450 functions that allows the user to make the necessary statistical tests based
6451 on a model that uses the negative binomial distribution to estimate the
6452 variance between biological replicates and generalized linear models for
6453 testing. The package also provides functions for the visualization and
6454 exploration of the results.")
6455 (license license:gpl3+)))
6456
6457 (define-public r-annotationforge
6458 (package
6459 (name "r-annotationforge")
6460 (version "1.24.0")
6461 (source
6462 (origin
6463 (method url-fetch)
6464 (uri (bioconductor-uri "AnnotationForge" version))
6465 (sha256
6466 (base32
6467 "13yvhf3yskmvhs8szs6rkw93h81h5xqa3h19h91pp6nprhc8s3ll"))))
6468 (properties
6469 `((upstream-name . "AnnotationForge")))
6470 (build-system r-build-system)
6471 (propagated-inputs
6472 `(("r-annotationdbi" ,r-annotationdbi)
6473 ("r-biobase" ,r-biobase)
6474 ("r-biocgenerics" ,r-biocgenerics)
6475 ("r-dbi" ,r-dbi)
6476 ("r-rcurl" ,r-rcurl)
6477 ("r-rsqlite" ,r-rsqlite)
6478 ("r-s4vectors" ,r-s4vectors)
6479 ("r-xml" ,r-xml)))
6480 (home-page "https://bioconductor.org/packages/AnnotationForge")
6481 (synopsis "Code for building annotation database packages")
6482 (description
6483 "This package provides code for generating Annotation packages and their
6484 databases. Packages produced are intended to be used with AnnotationDbi.")
6485 (license license:artistic2.0)))
6486
6487 (define-public r-rbgl
6488 (package
6489 (name "r-rbgl")
6490 (version "1.58.1")
6491 (source
6492 (origin
6493 (method url-fetch)
6494 (uri (bioconductor-uri "RBGL" version))
6495 (sha256
6496 (base32
6497 "1l5x2icv9di1lr3gqfi0vjnyd9xc3l77yc42ippqd4cadj3d1pzf"))))
6498 (properties `((upstream-name . "RBGL")))
6499 (build-system r-build-system)
6500 (propagated-inputs `(("r-graph" ,r-graph)))
6501 (home-page "https://www.bioconductor.org/packages/RBGL")
6502 (synopsis "Interface to the Boost graph library")
6503 (description
6504 "This package provides a fairly extensive and comprehensive interface to
6505 the graph algorithms contained in the Boost library.")
6506 (license license:artistic2.0)))
6507
6508 (define-public r-gseabase
6509 (package
6510 (name "r-gseabase")
6511 (version "1.44.0")
6512 (source
6513 (origin
6514 (method url-fetch)
6515 (uri (bioconductor-uri "GSEABase" version))
6516 (sha256
6517 (base32
6518 "110al7x0ig8plzrprvhwc7xshi1jzpj2n8llhhg2fh6v6k0k6awr"))))
6519 (properties `((upstream-name . "GSEABase")))
6520 (build-system r-build-system)
6521 (propagated-inputs
6522 `(("r-annotate" ,r-annotate)
6523 ("r-annotationdbi" ,r-annotationdbi)
6524 ("r-biobase" ,r-biobase)
6525 ("r-biocgenerics" ,r-biocgenerics)
6526 ("r-graph" ,r-graph)
6527 ("r-xml" ,r-xml)))
6528 (home-page "https://bioconductor.org/packages/GSEABase")
6529 (synopsis "Gene set enrichment data structures and methods")
6530 (description
6531 "This package provides classes and methods to support @dfn{Gene Set
6532 Enrichment Analysis} (GSEA).")
6533 (license license:artistic2.0)))
6534
6535 (define-public r-category
6536 (package
6537 (name "r-category")
6538 (version "2.48.0")
6539 (source
6540 (origin
6541 (method url-fetch)
6542 (uri (bioconductor-uri "Category" version))
6543 (sha256
6544 (base32
6545 "1jdm83bwdfhpfm1y6hwgvxzj6l83h1bdkqv23799kzywnwm016kv"))))
6546 (properties `((upstream-name . "Category")))
6547 (build-system r-build-system)
6548 (propagated-inputs
6549 `(("r-annotate" ,r-annotate)
6550 ("r-annotationdbi" ,r-annotationdbi)
6551 ("r-biobase" ,r-biobase)
6552 ("r-biocgenerics" ,r-biocgenerics)
6553 ("r-genefilter" ,r-genefilter)
6554 ("r-graph" ,r-graph)
6555 ("r-gseabase" ,r-gseabase)
6556 ("r-matrix" ,r-matrix)
6557 ("r-rbgl" ,r-rbgl)
6558 ("r-dbi" ,r-dbi)))
6559 (home-page "https://bioconductor.org/packages/Category")
6560 (synopsis "Category analysis")
6561 (description
6562 "This package provides a collection of tools for performing category
6563 analysis.")
6564 (license license:artistic2.0)))
6565
6566 (define-public r-gostats
6567 (package
6568 (name "r-gostats")
6569 (version "2.48.0")
6570 (source
6571 (origin
6572 (method url-fetch)
6573 (uri (bioconductor-uri "GOstats" version))
6574 (sha256
6575 (base32
6576 "0wlqqgfynwqnqhckhsfjwg9zkj6hkmzwd5y76dhqz720vy21rcln"))))
6577 (properties `((upstream-name . "GOstats")))
6578 (build-system r-build-system)
6579 (propagated-inputs
6580 `(("r-annotate" ,r-annotate)
6581 ("r-annotationdbi" ,r-annotationdbi)
6582 ("r-annotationforge" ,r-annotationforge)
6583 ("r-biobase" ,r-biobase)
6584 ("r-category" ,r-category)
6585 ("r-go-db" ,r-go-db)
6586 ("r-graph" ,r-graph)
6587 ("r-rgraphviz" ,r-rgraphviz)
6588 ("r-rbgl" ,r-rbgl)))
6589 (home-page "https://bioconductor.org/packages/GOstats")
6590 (synopsis "Tools for manipulating GO and microarrays")
6591 (description
6592 "This package provides a set of tools for interacting with GO and
6593 microarray data. A variety of basic manipulation tools for graphs, hypothesis
6594 testing and other simple calculations.")
6595 (license license:artistic2.0)))
6596
6597 (define-public r-shortread
6598 (package
6599 (name "r-shortread")
6600 (version "1.40.0")
6601 (source
6602 (origin
6603 (method url-fetch)
6604 (uri (bioconductor-uri "ShortRead" version))
6605 (sha256
6606 (base32
6607 "0iks123i1adkb9i2q4wvfqdmmj9dy867jvngj9757y8gj6xbcpy1"))))
6608 (properties `((upstream-name . "ShortRead")))
6609 (build-system r-build-system)
6610 (inputs
6611 `(("zlib" ,zlib)))
6612 (propagated-inputs
6613 `(("r-biobase" ,r-biobase)
6614 ("r-biocgenerics" ,r-biocgenerics)
6615 ("r-biocparallel" ,r-biocparallel)
6616 ("r-biostrings" ,r-biostrings)
6617 ("r-genomeinfodb" ,r-genomeinfodb)
6618 ("r-genomicalignments" ,r-genomicalignments)
6619 ("r-genomicranges" ,r-genomicranges)
6620 ("r-hwriter" ,r-hwriter)
6621 ("r-iranges" ,r-iranges)
6622 ("r-lattice" ,r-lattice)
6623 ("r-latticeextra" ,r-latticeextra)
6624 ("r-rsamtools" ,r-rsamtools)
6625 ("r-s4vectors" ,r-s4vectors)
6626 ("r-xvector" ,r-xvector)
6627 ("r-zlibbioc" ,r-zlibbioc)))
6628 (home-page "https://bioconductor.org/packages/ShortRead")
6629 (synopsis "FASTQ input and manipulation tools")
6630 (description
6631 "This package implements sampling, iteration, and input of FASTQ files.
6632 It includes functions for filtering and trimming reads, and for generating a
6633 quality assessment report. Data are represented as
6634 @code{DNAStringSet}-derived objects, and easily manipulated for a diversity of
6635 purposes. The package also contains legacy support for early single-end,
6636 ungapped alignment formats.")
6637 (license license:artistic2.0)))
6638
6639 (define-public r-systempiper
6640 (package
6641 (name "r-systempiper")
6642 (version "1.16.1")
6643 (source
6644 (origin
6645 (method url-fetch)
6646 (uri (bioconductor-uri "systemPipeR" version))
6647 (sha256
6648 (base32
6649 "0qzydz87rld2nhwzbfgrw5jfgh8maa9y54mjx9c4285m11qj2shq"))))
6650 (properties `((upstream-name . "systemPipeR")))
6651 (build-system r-build-system)
6652 (propagated-inputs
6653 `(("r-annotate" ,r-annotate)
6654 ("r-batchjobs" ,r-batchjobs)
6655 ("r-biocgenerics" ,r-biocgenerics)
6656 ("r-biostrings" ,r-biostrings)
6657 ("r-deseq2" ,r-deseq2)
6658 ("r-edger" ,r-edger)
6659 ("r-genomicfeatures" ,r-genomicfeatures)
6660 ("r-genomicranges" ,r-genomicranges)
6661 ("r-ggplot2" ,r-ggplot2)
6662 ("r-go-db" ,r-go-db)
6663 ("r-gostats" ,r-gostats)
6664 ("r-limma" ,r-limma)
6665 ("r-pheatmap" ,r-pheatmap)
6666 ("r-rjson" ,r-rjson)
6667 ("r-rsamtools" ,r-rsamtools)
6668 ("r-shortread" ,r-shortread)
6669 ("r-summarizedexperiment" ,r-summarizedexperiment)
6670 ("r-variantannotation" ,r-variantannotation)))
6671 (home-page "https://github.com/tgirke/systemPipeR")
6672 (synopsis "Next generation sequencing workflow and reporting environment")
6673 (description
6674 "This R package provides tools for building and running automated
6675 end-to-end analysis workflows for a wide range of @dfn{next generation
6676 sequence} (NGS) applications such as RNA-Seq, ChIP-Seq, VAR-Seq and Ribo-Seq.
6677 Important features include a uniform workflow interface across different NGS
6678 applications, automated report generation, and support for running both R and
6679 command-line software, such as NGS aligners or peak/variant callers, on local
6680 computers or compute clusters. Efficient handling of complex sample sets and
6681 experimental designs is facilitated by a consistently implemented sample
6682 annotation infrastructure.")
6683 (license license:artistic2.0)))
6684
6685 (define-public r-grohmm
6686 (package
6687 (name "r-grohmm")
6688 (version "1.16.0")
6689 (source
6690 (origin
6691 (method url-fetch)
6692 (uri (bioconductor-uri "groHMM" version))
6693 (sha256
6694 (base32
6695 "1ph92fv44b90v7mk4b1mjvv0dlrhl8ba01klxbnd0vs4qn9zxplh"))))
6696 (properties `((upstream-name . "groHMM")))
6697 (build-system r-build-system)
6698 (propagated-inputs
6699 `(("r-genomeinfodb" ,r-genomeinfodb)
6700 ("r-genomicalignments" ,r-genomicalignments)
6701 ("r-genomicranges" ,r-genomicranges)
6702 ("r-iranges" ,r-iranges)
6703 ("r-mass" ,r-mass)
6704 ("r-rtracklayer" ,r-rtracklayer)
6705 ("r-s4vectors" ,r-s4vectors)))
6706 (home-page "https://github.com/Kraus-Lab/groHMM")
6707 (synopsis "GRO-seq analysis pipeline")
6708 (description
6709 "This package provides a pipeline for the analysis of GRO-seq data.")
6710 (license license:gpl3+)))
6711
6712 (define-public r-sparql
6713 (package
6714 (name "r-sparql")
6715 (version "1.16")
6716 (source (origin
6717 (method url-fetch)
6718 (uri (cran-uri "SPARQL" version))
6719 (sha256
6720 (base32
6721 "0gak1q06yyhdmcxb2n3v0h9gr1vqd0viqji52wpw211qp6r6dcrc"))))
6722 (properties `((upstream-name . "SPARQL")))
6723 (build-system r-build-system)
6724 (propagated-inputs
6725 `(("r-rcurl" ,r-rcurl)
6726 ("r-xml" ,r-xml)))
6727 (home-page "https://cran.r-project.org/web/packages/SPARQL")
6728 (synopsis "SPARQL client for R")
6729 (description "This package provides an interface to use SPARQL to pose
6730 SELECT or UPDATE queries to an end-point.")
6731 ;; The only license indication is found in the DESCRIPTION file,
6732 ;; which states GPL-3. So we cannot assume GPLv3+.
6733 (license license:gpl3)))
6734
6735 (define-public vsearch
6736 (package
6737 (name "vsearch")
6738 (version "2.9.1")
6739 (source
6740 (origin
6741 (method git-fetch)
6742 (uri (git-reference
6743 (url "https://github.com/torognes/vsearch.git")
6744 (commit (string-append "v" version))))
6745 (file-name (git-file-name name version))
6746 (sha256
6747 (base32
6748 "0vhrpjfdf75ba04b24xknp41790cvcgwl0vgpy7qbzj5xh2521ss"))
6749 (patches (search-patches "vsearch-unbundle-cityhash.patch"))
6750 (snippet
6751 '(begin
6752 ;; Remove bundled cityhash sources. The vsearch source is adjusted
6753 ;; for this in the patch.
6754 (delete-file "src/city.h")
6755 (delete-file "src/citycrc.h")
6756 (delete-file "src/city.cc")
6757 #t))))
6758 (build-system gnu-build-system)
6759 (inputs
6760 `(("zlib" ,zlib)
6761 ("bzip2" ,bzip2)
6762 ("cityhash" ,cityhash)))
6763 (native-inputs
6764 `(("autoconf" ,autoconf)
6765 ("automake" ,automake)))
6766 (synopsis "Sequence search tools for metagenomics")
6767 (description
6768 "VSEARCH supports DNA sequence searching, clustering, chimera detection,
6769 dereplication, pairwise alignment, shuffling, subsampling, sorting and
6770 masking. The tool takes advantage of parallelism in the form of SIMD
6771 vectorization as well as multiple threads to perform accurate alignments at
6772 high speed. VSEARCH uses an optimal global aligner (full dynamic programming
6773 Needleman-Wunsch).")
6774 (home-page "https://github.com/torognes/vsearch")
6775 ;; vsearch uses non-portable SSE intrinsics so building fails on other
6776 ;; platforms.
6777 (supported-systems '("x86_64-linux"))
6778 ;; Dual licensed; also includes public domain source.
6779 (license (list license:gpl3 license:bsd-2))))
6780
6781 (define-public pardre
6782 (package
6783 (name "pardre")
6784 ;; The source of 1.1.5 changed in place, so we append "-1" to the version.
6785 (version "1.1.5-1")
6786 (source
6787 (origin
6788 (method url-fetch)
6789 (uri (string-append "mirror://sourceforge/pardre/ParDRe-rel"
6790 "1.1.5" ".tar.gz"))
6791 (sha256
6792 (base32
6793 "17j73nc0viq4f6qj50nrndsrif5d6b71q8fl87m54psiv0ilns2b"))))
6794 (build-system gnu-build-system)
6795 (arguments
6796 `(#:tests? #f ; no tests included
6797 #:phases
6798 (modify-phases %standard-phases
6799 (delete 'configure)
6800 (replace 'install
6801 (lambda* (#:key outputs #:allow-other-keys)
6802 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
6803 (install-file "ParDRe" bin)
6804 #t))))))
6805 (inputs
6806 `(("openmpi" ,openmpi)
6807 ("zlib" ,zlib)))
6808 (synopsis "Parallel tool to remove duplicate DNA reads")
6809 (description
6810 "ParDRe is a parallel tool to remove duplicate genetic sequence reads.
6811 Duplicate reads can be seen as identical or nearly identical sequences with
6812 some mismatches. This tool lets users avoid the analysis of unnecessary
6813 reads, reducing the time of subsequent procedures with the
6814 dataset (e.g. assemblies, mappings, etc.). The tool is implemented with MPI
6815 in order to exploit the parallel capabilities of multicore clusters. It is
6816 faster than multithreaded counterparts (end of 2015) for the same number of
6817 cores and, thanks to the message-passing technology, it can be executed on
6818 clusters.")
6819 (home-page "https://sourceforge.net/projects/pardre/")
6820 (license license:gpl3+)))
6821
6822 (define-public ruby-bio-kseq
6823 (package
6824 (name "ruby-bio-kseq")
6825 (version "0.0.2")
6826 (source
6827 (origin
6828 (method url-fetch)
6829 (uri (rubygems-uri "bio-kseq" version))
6830 (sha256
6831 (base32
6832 "1xyaha46khb5jc6wzkbf7040jagac49jbimn0vcrzid0j8jdikrz"))))
6833 (build-system ruby-build-system)
6834 (arguments
6835 `(#:test-target "spec"))
6836 (native-inputs
6837 `(("bundler" ,bundler)
6838 ("ruby-rspec" ,ruby-rspec)
6839 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6840 (inputs
6841 `(("zlib" ,zlib)))
6842 (synopsis "Ruby bindings for the kseq.h FASTA/Q parser")
6843 (description
6844 "@code{Bio::Kseq} provides ruby bindings to the @code{kseq.h} FASTA and
6845 FASTQ parsing code. It provides a fast iterator over sequences and their
6846 quality scores.")
6847 (home-page "https://github.com/gusevfe/bio-kseq")
6848 (license license:expat)))
6849
6850 (define-public bio-locus
6851 (package
6852 (name "bio-locus")
6853 (version "0.0.7")
6854 (source
6855 (origin
6856 (method url-fetch)
6857 (uri (rubygems-uri "bio-locus" version))
6858 (sha256
6859 (base32
6860 "02vmrxyimkj9sahsp4zhfhnmbvz6dbbqz1y01vglf8cbwvkajfl0"))))
6861 (build-system ruby-build-system)
6862 (native-inputs
6863 `(("ruby-rspec" ,ruby-rspec)))
6864 (synopsis "Tool for fast querying of genome locations")
6865 (description
6866 "Bio-locus is a tabix-like tool for fast querying of genome
6867 locations. Many file formats in bioinformatics contain records that
6868 start with a chromosome name and a position for a SNP, or a start-end
6869 position for indels. Bio-locus allows users to store this chr+pos or
6870 chr+pos+alt information in a database.")
6871 (home-page "https://github.com/pjotrp/bio-locus")
6872 (license license:expat)))
6873
6874 (define-public bio-blastxmlparser
6875 (package
6876 (name "bio-blastxmlparser")
6877 (version "2.0.4")
6878 (source (origin
6879 (method url-fetch)
6880 (uri (rubygems-uri "bio-blastxmlparser" version))
6881 (sha256
6882 (base32
6883 "1wf4qygcmdjgcqm6flmvsagfr1gs9lf63mj32qv3z1f481zc5692"))))
6884 (build-system ruby-build-system)
6885 (propagated-inputs
6886 `(("ruby-bio-logger" ,ruby-bio-logger)
6887 ("ruby-nokogiri" ,ruby-nokogiri)))
6888 (inputs
6889 `(("ruby-rspec" ,ruby-rspec)))
6890 (synopsis "Fast big data BLAST XML parser and library")
6891 (description
6892 "Very fast parallel big-data BLAST XML file parser which can be used as
6893 command line utility. Use blastxmlparser to: Parse BLAST XML; filter output;
6894 generate FASTA, JSON, YAML, RDF, JSON-LD, HTML, CSV, tabular output etc.")
6895 (home-page "https://github.com/pjotrp/blastxmlparser")
6896 (license license:expat)))
6897
6898 (define-public bioruby
6899 (package
6900 (name "bioruby")
6901 (version "1.5.2")
6902 (source
6903 (origin
6904 (method url-fetch)
6905 (uri (rubygems-uri "bio" version))
6906 (sha256
6907 (base32
6908 "1d56amdsjv1mag7m6gv2w0xij8hqx1v5xbdjsix8sp3yp36m7938"))))
6909 (build-system ruby-build-system)
6910 (propagated-inputs
6911 `(("ruby-libxml" ,ruby-libxml)))
6912 (native-inputs
6913 `(("which" ,which))) ; required for test phase
6914 (arguments
6915 `(#:phases
6916 (modify-phases %standard-phases
6917 (add-before 'build 'patch-test-command
6918 (lambda _
6919 (substitute* '("test/functional/bio/test_command.rb")
6920 (("/bin/sh") (which "sh")))
6921 (substitute* '("test/functional/bio/test_command.rb")
6922 (("/bin/ls") (which "ls")))
6923 (substitute* '("test/functional/bio/test_command.rb")
6924 (("which") (which "which")))
6925 (substitute* '("test/functional/bio/test_command.rb",
6926 "test/data/command/echoarg2.sh")
6927 (("/bin/echo") (which "echo")))
6928 #t)))))
6929 (synopsis "Ruby library, shell and utilities for bioinformatics")
6930 (description "BioRuby comes with a comprehensive set of Ruby development
6931 tools and libraries for bioinformatics and molecular biology. BioRuby has
6932 components for sequence analysis, pathway analysis, protein modelling and
6933 phylogenetic analysis; it supports many widely used data formats and provides
6934 easy access to databases, external programs and public web services, including
6935 BLAST, KEGG, GenBank, MEDLINE and GO.")
6936 (home-page "http://bioruby.org/")
6937 ;; Code is released under Ruby license, except for setup
6938 ;; (LGPLv2.1+) and scripts in samples (which have GPL2 and GPL2+)
6939 (license (list license:ruby license:lgpl2.1+ license:gpl2+ ))))
6940
6941 (define-public r-acsnminer
6942 (package
6943 (name "r-acsnminer")
6944 (version "0.16.8.25")
6945 (source (origin
6946 (method url-fetch)
6947 (uri (cran-uri "ACSNMineR" version))
6948 (sha256
6949 (base32
6950 "0gh604s8qall6zfjlwcg2ilxjvz08dplf9k5g47idhv43scm748l"))))
6951 (properties `((upstream-name . "ACSNMineR")))
6952 (build-system r-build-system)
6953 (propagated-inputs
6954 `(("r-ggplot2" ,r-ggplot2)
6955 ("r-gridextra" ,r-gridextra)))
6956 (home-page "https://cran.r-project.org/web/packages/ACSNMineR")
6957 (synopsis "Gene enrichment analysis")
6958 (description
6959 "This package provides tools to compute and represent gene set enrichment
6960 or depletion from your data based on pre-saved maps from the @dfn{Atlas of
6961 Cancer Signalling Networks} (ACSN) or user imported maps. The gene set
6962 enrichment can be run with hypergeometric test or Fisher exact test, and can
6963 use multiple corrections. Visualization of data can be done either by
6964 barplots or heatmaps.")
6965 (license license:gpl2+)))
6966
6967 (define-public r-biocinstaller
6968 (package
6969 (name "r-biocinstaller")
6970 (version "1.32.1")
6971 (source (origin
6972 (method url-fetch)
6973 (uri (bioconductor-uri "BiocInstaller" version))
6974 (sha256
6975 (base32
6976 "1s1f9qhyf3mc73ir25x2zlgi9hf45a37lg4z8fbva4i21hqisgsl"))))
6977 (properties
6978 `((upstream-name . "BiocInstaller")))
6979 (build-system r-build-system)
6980 (home-page "https://bioconductor.org/packages/BiocInstaller")
6981 (synopsis "Install Bioconductor packages")
6982 (description "This package is used to install and update R packages from
6983 Bioconductor, CRAN, and Github.")
6984 (license license:artistic2.0)))
6985
6986 (define-public r-biocviews
6987 (package
6988 (name "r-biocviews")
6989 (version "1.50.10")
6990 (source (origin
6991 (method url-fetch)
6992 (uri (bioconductor-uri "biocViews" version))
6993 (sha256
6994 (base32
6995 "06ms82pyc5rxbd9crfvqjxcwpafv0c627i83v80d12925mrc51h8"))))
6996 (properties
6997 `((upstream-name . "biocViews")))
6998 (build-system r-build-system)
6999 (propagated-inputs
7000 `(("r-biobase" ,r-biobase)
7001 ("r-graph" ,r-graph)
7002 ("r-rbgl" ,r-rbgl)
7003 ("r-rcurl" ,r-rcurl)
7004 ("r-xml" ,r-xml)
7005 ("r-runit" ,r-runit)))
7006 (home-page "https://bioconductor.org/packages/biocViews")
7007 (synopsis "Bioconductor package categorization helper")
7008 (description "The purpose of biocViews is to create HTML pages that
7009 categorize packages in a Bioconductor package repository according to keywords,
7010 also known as views, in a controlled vocabulary.")
7011 (license license:artistic2.0)))
7012
7013 (define-public r-bookdown
7014 (package
7015 (name "r-bookdown")
7016 (version "0.9")
7017 (source (origin
7018 (method url-fetch)
7019 (uri (cran-uri "bookdown" version))
7020 (sha256
7021 (base32
7022 "0vg1s1w0l9pm95asqb21yf39mfk1nc9rdhmlys9xwr7p7i7rsz32"))))
7023 (build-system r-build-system)
7024 (propagated-inputs
7025 `(("r-htmltools" ,r-htmltools)
7026 ("r-knitr" ,r-knitr)
7027 ("r-rmarkdown" ,r-rmarkdown)
7028 ("r-tinytex" ,r-tinytex)
7029 ("r-yaml" ,r-yaml)
7030 ("r-xfun" ,r-xfun)))
7031 (home-page "https://github.com/rstudio/bookdown")
7032 (synopsis "Authoring books and technical documents with R markdown")
7033 (description "This package provides output formats and utilities for
7034 authoring books and technical documents with R Markdown.")
7035 (license license:gpl3)))
7036
7037 (define-public r-biocstyle
7038 (package
7039 (name "r-biocstyle")
7040 (version "2.10.0")
7041 (source (origin
7042 (method url-fetch)
7043 (uri (bioconductor-uri "BiocStyle" version))
7044 (sha256
7045 (base32
7046 "01lm8xljilj666fcl3wnw82dxkcxnlr294lddr553rm8xr5nwg31"))))
7047 (properties
7048 `((upstream-name . "BiocStyle")))
7049 (build-system r-build-system)
7050 (propagated-inputs
7051 `(("r-biocmanager" ,r-biocmanager)
7052 ("r-bookdown" ,r-bookdown)
7053 ("r-knitr" ,r-knitr)
7054 ("r-rmarkdown" ,r-rmarkdown)
7055 ("r-yaml" ,r-yaml)))
7056 (home-page "https://bioconductor.org/packages/BiocStyle")
7057 (synopsis "Bioconductor formatting styles")
7058 (description "This package provides standard formatting styles for
7059 Bioconductor PDF and HTML documents. Package vignettes illustrate use and
7060 functionality.")
7061 (license license:artistic2.0)))
7062
7063 (define-public r-bioccheck
7064 (package
7065 (name "r-bioccheck")
7066 (version "1.18.0")
7067 (source (origin
7068 (method url-fetch)
7069 (uri (bioconductor-uri "BiocCheck" version))
7070 (sha256
7071 (base32
7072 "0zamvs5jar38293ff27imvwy0ra25y64ls9z8w3q1y4jcp8p8pg7"))))
7073 (properties
7074 `((upstream-name . "BiocCheck")))
7075 (build-system r-build-system)
7076 (arguments
7077 '(#:phases
7078 (modify-phases %standard-phases
7079 ;; This package can be used by calling BiocCheck(<package>) from
7080 ;; within R, or by running R CMD BiocCheck <package>. This phase
7081 ;; makes sure the latter works. For this to work, the BiocCheck
7082 ;; script must be somewhere on the PATH (not the R bin directory).
7083 (add-after 'install 'install-bioccheck-subcommand
7084 (lambda* (#:key outputs #:allow-other-keys)
7085 (let* ((out (assoc-ref outputs "out"))
7086 (dest-dir (string-append out "/bin"))
7087 (script-dir
7088 (string-append out "/site-library/BiocCheck/script/")))
7089 (mkdir-p dest-dir)
7090 (symlink (string-append script-dir "/checkBadDeps.R")
7091 (string-append dest-dir "/checkBadDeps.R"))
7092 (symlink (string-append script-dir "/BiocCheck")
7093 (string-append dest-dir "/BiocCheck")))
7094 #t)))))
7095 (propagated-inputs
7096 `(("r-codetools" ,r-codetools)
7097 ("r-graph" ,r-graph)
7098 ("r-httr" ,r-httr)
7099 ("r-knitr" ,r-knitr)
7100 ("r-optparse" ,r-optparse)
7101 ("r-biocmanager" ,r-biocmanager)
7102 ("r-biocviews" ,r-biocviews)
7103 ("r-stringdist" ,r-stringdist)))
7104 (home-page "https://bioconductor.org/packages/BiocCheck")
7105 (synopsis "Executes Bioconductor-specific package checks")
7106 (description "This package contains tools to perform additional quality
7107 checks on R packages that are to be submitted to the Bioconductor repository.")
7108 (license license:artistic2.0)))
7109
7110 (define-public r-optparse
7111 (package
7112 (name "r-optparse")
7113 (version "1.6.1")
7114 (source
7115 (origin
7116 (method url-fetch)
7117 (uri (cran-uri "optparse" version))
7118 (sha256
7119 (base32
7120 "04vyb6dhcga30mvghsg1p052jmf69xqxkvh3hzqz7dscyppy76w1"))))
7121 (build-system r-build-system)
7122 (propagated-inputs
7123 `(("r-getopt" ,r-getopt)))
7124 (home-page
7125 "https://github.com/trevorld/optparse")
7126 (synopsis "Command line option parser")
7127 (description
7128 "This package provides a command line parser inspired by Python's
7129 @code{optparse} library to be used with Rscript to write shebang scripts
7130 that accept short and long options.")
7131 (license license:gpl2+)))
7132
7133 (define-public r-s4vectors
7134 (package
7135 (name "r-s4vectors")
7136 (version "0.20.1")
7137 (source (origin
7138 (method url-fetch)
7139 (uri (bioconductor-uri "S4Vectors" version))
7140 (sha256
7141 (base32
7142 "18whrw67nxn82xshckl2pjy7d14sa3c27h3n9naqyqwz88lr6dzg"))))
7143 (properties
7144 `((upstream-name . "S4Vectors")))
7145 (build-system r-build-system)
7146 (propagated-inputs
7147 `(("r-biocgenerics" ,r-biocgenerics)))
7148 (home-page "https://bioconductor.org/packages/S4Vectors")
7149 (synopsis "S4 implementation of vectors and lists")
7150 (description
7151 "The S4Vectors package defines the @code{Vector} and @code{List} virtual
7152 classes and a set of generic functions that extend the semantic of ordinary
7153 vectors and lists in R. Package developers can easily implement vector-like
7154 or list-like objects as concrete subclasses of @code{Vector} or @code{List}.
7155 In addition, a few low-level concrete subclasses of general interest (e.g.
7156 @code{DataFrame}, @code{Rle}, and @code{Hits}) are implemented in the
7157 S4Vectors package itself.")
7158 (license license:artistic2.0)))
7159
7160 (define-public r-seqinr
7161 (package
7162 (name "r-seqinr")
7163 (version "3.4-5")
7164 (source
7165 (origin
7166 (method url-fetch)
7167 (uri (cran-uri "seqinr" version))
7168 (sha256
7169 (base32
7170 "17zv0n5cji17izwmwg0jcbxbjl3w5rls91w15svcnlpxjms38ahn"))))
7171 (build-system r-build-system)
7172 (propagated-inputs
7173 `(("r-ade4" ,r-ade4)
7174 ("r-segmented" ,r-segmented)))
7175 (inputs
7176 `(("zlib" ,zlib)))
7177 (home-page "http://seqinr.r-forge.r-project.org/")
7178 (synopsis "Biological sequences retrieval and analysis")
7179 (description
7180 "This package provides tools for exploratory data analysis and data
7181 visualization of biological sequence (DNA and protein) data. It also includes
7182 utilities for sequence data management under the ACNUC system.")
7183 (license license:gpl2+)))
7184
7185 (define-public r-iranges
7186 (package
7187 (name "r-iranges")
7188 (version "2.16.0")
7189 (source (origin
7190 (method url-fetch)
7191 (uri (bioconductor-uri "IRanges" version))
7192 (sha256
7193 (base32
7194 "0ljppsk611xi72gc8mbdx1311b63b1ijd401jz5xmxk5frla1nc1"))))
7195 (properties
7196 `((upstream-name . "IRanges")))
7197 (build-system r-build-system)
7198 (propagated-inputs
7199 `(("r-biocgenerics" ,r-biocgenerics)
7200 ("r-s4vectors" ,r-s4vectors)))
7201 (home-page "https://bioconductor.org/packages/IRanges")
7202 (synopsis "Infrastructure for manipulating intervals on sequences")
7203 (description
7204 "This package provides efficient low-level and highly reusable S4 classes
7205 for storing ranges of integers, RLE vectors (Run-Length Encoding), and, more
7206 generally, data that can be organized sequentially (formally defined as
7207 @code{Vector} objects), as well as views on these @code{Vector} objects.
7208 Efficient list-like classes are also provided for storing big collections of
7209 instances of the basic classes. All classes in the package use consistent
7210 naming and share the same rich and consistent \"Vector API\" as much as
7211 possible.")
7212 (license license:artistic2.0)))
7213
7214 (define-public r-genomeinfodbdata
7215 (package
7216 (name "r-genomeinfodbdata")
7217 (version "1.2.0")
7218 (source (origin
7219 (method url-fetch)
7220 ;; We cannot use bioconductor-uri here because this tarball is
7221 ;; located under "data/annotation/" instead of "bioc/".
7222 (uri (string-append "https://bioconductor.org/packages/release/"
7223 "data/annotation/src/contrib/GenomeInfoDbData_"
7224 version ".tar.gz"))
7225 (sha256
7226 (base32
7227 "0di6nlqpsyqf693k2na65ayqldih563x3zfrczpqc5q2hl5kg35c"))))
7228 (properties
7229 `((upstream-name . "GenomeInfoDbData")))
7230 (build-system r-build-system)
7231 (home-page "https://bioconductor.org/packages/GenomeInfoDbData")
7232 (synopsis "Species and taxonomy ID look up tables for GenomeInfoDb")
7233 (description "This package contains data for mapping between NCBI taxonomy
7234 ID and species. It is used by functions in the GenomeInfoDb package.")
7235 (license license:artistic2.0)))
7236
7237 (define-public r-genomeinfodb
7238 (package
7239 (name "r-genomeinfodb")
7240 (version "1.18.1")
7241 (source (origin
7242 (method url-fetch)
7243 (uri (bioconductor-uri "GenomeInfoDb" version))
7244 (sha256
7245 (base32
7246 "049pyzr8iszv3g7wdqf3pz7vg7bzd450c20ln6fgw4g5xnkkr10s"))))
7247 (properties
7248 `((upstream-name . "GenomeInfoDb")))
7249 (build-system r-build-system)
7250 (propagated-inputs
7251 `(("r-biocgenerics" ,r-biocgenerics)
7252 ("r-genomeinfodbdata" ,r-genomeinfodbdata)
7253 ("r-iranges" ,r-iranges)
7254 ("r-rcurl" ,r-rcurl)
7255 ("r-s4vectors" ,r-s4vectors)))
7256 (home-page "https://bioconductor.org/packages/GenomeInfoDb")
7257 (synopsis "Utilities for manipulating chromosome identifiers")
7258 (description
7259 "This package contains data and functions that define and allow
7260 translation between different chromosome sequence naming conventions (e.g.,
7261 \"chr1\" versus \"1\"), including a function that attempts to place sequence
7262 names in their natural, rather than lexicographic, order.")
7263 (license license:artistic2.0)))
7264
7265 (define-public r-edger
7266 (package
7267 (name "r-edger")
7268 (version "3.24.3")
7269 (source (origin
7270 (method url-fetch)
7271 (uri (bioconductor-uri "edgeR" version))
7272 (sha256
7273 (base32
7274 "15yimsbsxmxhlsfmgw5j7fd8qn08zz4xqxrir1c6n2dc103y22xg"))))
7275 (properties `((upstream-name . "edgeR")))
7276 (build-system r-build-system)
7277 (propagated-inputs
7278 `(("r-limma" ,r-limma)
7279 ("r-locfit" ,r-locfit)
7280 ("r-rcpp" ,r-rcpp)
7281 ("r-statmod" ,r-statmod))) ;for estimateDisp
7282 (home-page "http://bioinf.wehi.edu.au/edgeR")
7283 (synopsis "EdgeR does empirical analysis of digital gene expression data")
7284 (description "This package can do differential expression analysis of
7285 RNA-seq expression profiles with biological replication. It implements a range
7286 of statistical methodology based on the negative binomial distributions,
7287 including empirical Bayes estimation, exact tests, generalized linear models
7288 and quasi-likelihood tests. It be applied to differential signal analysis of
7289 other types of genomic data that produce counts, including ChIP-seq, SAGE and
7290 CAGE.")
7291 (license license:gpl2+)))
7292
7293 (define-public r-variantannotation
7294 (package
7295 (name "r-variantannotation")
7296 (version "1.28.10")
7297 (source (origin
7298 (method url-fetch)
7299 (uri (bioconductor-uri "VariantAnnotation" version))
7300 (sha256
7301 (base32
7302 "0kxf583cgkdz1shi85r0mpnfxmzi7s5f6srd1czbdl2iibvrm8jn"))))
7303 (properties
7304 `((upstream-name . "VariantAnnotation")))
7305 (inputs
7306 `(("zlib" ,zlib)))
7307 (propagated-inputs
7308 `(("r-annotationdbi" ,r-annotationdbi)
7309 ("r-biobase" ,r-biobase)
7310 ("r-biocgenerics" ,r-biocgenerics)
7311 ("r-biostrings" ,r-biostrings)
7312 ("r-bsgenome" ,r-bsgenome)
7313 ("r-dbi" ,r-dbi)
7314 ("r-genomeinfodb" ,r-genomeinfodb)
7315 ("r-genomicfeatures" ,r-genomicfeatures)
7316 ("r-genomicranges" ,r-genomicranges)
7317 ("r-iranges" ,r-iranges)
7318 ("r-summarizedexperiment" ,r-summarizedexperiment)
7319 ("r-rsamtools" ,r-rsamtools)
7320 ("r-rtracklayer" ,r-rtracklayer)
7321 ("r-s4vectors" ,r-s4vectors)
7322 ("r-xvector" ,r-xvector)
7323 ("r-zlibbioc" ,r-zlibbioc)))
7324 (build-system r-build-system)
7325 (home-page "https://bioconductor.org/packages/VariantAnnotation")
7326 (synopsis "Package for annotation of genetic variants")
7327 (description "This R package can annotate variants, compute amino acid
7328 coding changes and predict coding outcomes.")
7329 (license license:artistic2.0)))
7330
7331 (define-public r-limma
7332 (package
7333 (name "r-limma")
7334 (version "3.38.3")
7335 (source (origin
7336 (method url-fetch)
7337 (uri (bioconductor-uri "limma" version))
7338 (sha256
7339 (base32
7340 "08va8jggmv61wym955mnb1n31mgikrmjys7dl1kp5hp3yia8jg7l"))))
7341 (build-system r-build-system)
7342 (home-page "http://bioinf.wehi.edu.au/limma")
7343 (synopsis "Package for linear models for microarray and RNA-seq data")
7344 (description "This package can be used for the analysis of gene expression
7345 studies, especially the use of linear models for analysing designed experiments
7346 and the assessment of differential expression. The analysis methods apply to
7347 different technologies, including microarrays, RNA-seq, and quantitative PCR.")
7348 (license license:gpl2+)))
7349
7350 (define-public r-xvector
7351 (package
7352 (name "r-xvector")
7353 (version "0.22.0")
7354 (source (origin
7355 (method url-fetch)
7356 (uri (bioconductor-uri "XVector" version))
7357 (sha256
7358 (base32
7359 "01fph1ydd6g0rl5mcw54spx22glq2kqv7wyw8bqw0plmabzcwwdm"))))
7360 (properties
7361 `((upstream-name . "XVector")))
7362 (build-system r-build-system)
7363 (arguments
7364 `(#:phases
7365 (modify-phases %standard-phases
7366 (add-after 'unpack 'use-system-zlib
7367 (lambda _
7368 (substitute* "DESCRIPTION"
7369 (("zlibbioc, ") ""))
7370 (substitute* "NAMESPACE"
7371 (("import\\(zlibbioc\\)") ""))
7372 #t)))))
7373 (inputs
7374 `(("zlib" ,zlib)))
7375 (propagated-inputs
7376 `(("r-biocgenerics" ,r-biocgenerics)
7377 ("r-iranges" ,r-iranges)
7378 ("r-s4vectors" ,r-s4vectors)))
7379 (home-page "https://bioconductor.org/packages/XVector")
7380 (synopsis "Representation and manpulation of external sequences")
7381 (description
7382 "This package provides memory efficient S4 classes for storing sequences
7383 \"externally\" (behind an R external pointer, or on disk).")
7384 (license license:artistic2.0)))
7385
7386 (define-public r-genomicranges
7387 (package
7388 (name "r-genomicranges")
7389 (version "1.34.0")
7390 (source (origin
7391 (method url-fetch)
7392 (uri (bioconductor-uri "GenomicRanges" version))
7393 (sha256
7394 (base32
7395 "0bgh14d15dpf2iy36qinw45r6n45rqkf0ghazrdl3jfva6vbrb29"))))
7396 (properties
7397 `((upstream-name . "GenomicRanges")))
7398 (build-system r-build-system)
7399 (propagated-inputs
7400 `(("r-biocgenerics" ,r-biocgenerics)
7401 ("r-genomeinfodb" ,r-genomeinfodb)
7402 ("r-iranges" ,r-iranges)
7403 ("r-s4vectors" ,r-s4vectors)
7404 ("r-xvector" ,r-xvector)))
7405 (home-page "https://bioconductor.org/packages/GenomicRanges")
7406 (synopsis "Representation and manipulation of genomic intervals")
7407 (description
7408 "This package provides tools to efficiently represent and manipulate
7409 genomic annotations and alignments is playing a central role when it comes to
7410 analyzing high-throughput sequencing data (a.k.a. NGS data). The
7411 GenomicRanges package defines general purpose containers for storing and
7412 manipulating genomic intervals and variables defined along a genome.")
7413 (license license:artistic2.0)))
7414
7415 (define-public r-biobase
7416 (package
7417 (name "r-biobase")
7418 (version "2.42.0")
7419 (source (origin
7420 (method url-fetch)
7421 (uri (bioconductor-uri "Biobase" version))
7422 (sha256
7423 (base32
7424 "10nr6nrkj5vlq8hsgbhbhv669z0dbpz4m3vz9k32rx1czbrrqwin"))))
7425 (properties
7426 `((upstream-name . "Biobase")))
7427 (build-system r-build-system)
7428 (propagated-inputs
7429 `(("r-biocgenerics" ,r-biocgenerics)))
7430 (home-page "https://bioconductor.org/packages/Biobase")
7431 (synopsis "Base functions for Bioconductor")
7432 (description
7433 "This package provides functions that are needed by many other packages
7434 on Bioconductor or which replace R functions.")
7435 (license license:artistic2.0)))
7436
7437 (define-public r-annotationdbi
7438 (package
7439 (name "r-annotationdbi")
7440 (version "1.44.0")
7441 (source (origin
7442 (method url-fetch)
7443 (uri (bioconductor-uri "AnnotationDbi" version))
7444 (sha256
7445 (base32
7446 "1954vimkx5yb9irppq8vssq0f3yjkg36w38b9r0rqmijx1ps7x5d"))))
7447 (properties
7448 `((upstream-name . "AnnotationDbi")))
7449 (build-system r-build-system)
7450 (propagated-inputs
7451 `(("r-biobase" ,r-biobase)
7452 ("r-biocgenerics" ,r-biocgenerics)
7453 ("r-dbi" ,r-dbi)
7454 ("r-iranges" ,r-iranges)
7455 ("r-rsqlite" ,r-rsqlite)
7456 ("r-s4vectors" ,r-s4vectors)))
7457 (home-page "https://bioconductor.org/packages/AnnotationDbi")
7458 (synopsis "Annotation database interface")
7459 (description
7460 "This package provides user interface and database connection code for
7461 annotation data packages using SQLite data storage.")
7462 (license license:artistic2.0)))
7463
7464 (define-public r-biomart
7465 (package
7466 (name "r-biomart")
7467 (version "2.38.0")
7468 (source (origin
7469 (method url-fetch)
7470 (uri (bioconductor-uri "biomaRt" version))
7471 (sha256
7472 (base32
7473 "1lshkknp7dmr3p6dd2zbv86cc71h53ggh9ji83jcjym8sgbbspl2"))))
7474 (properties
7475 `((upstream-name . "biomaRt")))
7476 (build-system r-build-system)
7477 (propagated-inputs
7478 `(("r-annotationdbi" ,r-annotationdbi)
7479 ("r-httr" ,r-httr)
7480 ("r-progress" ,r-progress)
7481 ("r-rcurl" ,r-rcurl)
7482 ("r-stringr" ,r-stringr)
7483 ("r-xml" ,r-xml)))
7484 (home-page "https://bioconductor.org/packages/biomaRt")
7485 (synopsis "Interface to BioMart databases")
7486 (description
7487 "biomaRt provides an interface to a growing collection of databases
7488 implementing the @url{BioMart software suite, http://www.biomart.org}. The
7489 package enables retrieval of large amounts of data in a uniform way without
7490 the need to know the underlying database schemas or write complex SQL queries.
7491 Examples of BioMart databases are Ensembl, COSMIC, Uniprot, HGNC, Gramene,
7492 Wormbase and dbSNP mapped to Ensembl. These major databases give biomaRt
7493 users direct access to a diverse set of data and enable a wide range of
7494 powerful online queries from gene annotation to database mining.")
7495 (license license:artistic2.0)))
7496
7497 (define-public r-biocparallel
7498 (package
7499 (name "r-biocparallel")
7500 (version "1.16.5")
7501 (source (origin
7502 (method url-fetch)
7503 (uri (bioconductor-uri "BiocParallel" version))
7504 (sha256
7505 (base32
7506 "1164dk0fajb2vrkfpcjs11055qf1cs4vvbnq0aqdaaf2p4lyx41l"))))
7507 (properties
7508 `((upstream-name . "BiocParallel")))
7509 (build-system r-build-system)
7510 (propagated-inputs
7511 `(("r-futile-logger" ,r-futile-logger)
7512 ("r-snow" ,r-snow)
7513 ("r-bh" ,r-bh)))
7514 (home-page "https://bioconductor.org/packages/BiocParallel")
7515 (synopsis "Bioconductor facilities for parallel evaluation")
7516 (description
7517 "This package provides modified versions and novel implementation of
7518 functions for parallel evaluation, tailored to use with Bioconductor
7519 objects.")
7520 (license (list license:gpl2+ license:gpl3+))))
7521
7522 (define-public r-biostrings
7523 (package
7524 (name "r-biostrings")
7525 (version "2.50.2")
7526 (source (origin
7527 (method url-fetch)
7528 (uri (bioconductor-uri "Biostrings" version))
7529 (sha256
7530 (base32
7531 "16cqqc8i6gb0jcz0lizfqqxsq7g0yb0ll2s9qzmb45brp07dg8f7"))))
7532 (properties
7533 `((upstream-name . "Biostrings")))
7534 (build-system r-build-system)
7535 (propagated-inputs
7536 `(("r-biocgenerics" ,r-biocgenerics)
7537 ("r-iranges" ,r-iranges)
7538 ("r-s4vectors" ,r-s4vectors)
7539 ("r-xvector" ,r-xvector)))
7540 (home-page "https://bioconductor.org/packages/Biostrings")
7541 (synopsis "String objects and algorithms for biological sequences")
7542 (description
7543 "This package provides memory efficient string containers, string
7544 matching algorithms, and other utilities, for fast manipulation of large
7545 biological sequences or sets of sequences.")
7546 (license license:artistic2.0)))
7547
7548 (define-public r-rsamtools
7549 (package
7550 (name "r-rsamtools")
7551 (version "1.34.0")
7552 (source (origin
7553 (method url-fetch)
7554 (uri (bioconductor-uri "Rsamtools" version))
7555 (sha256
7556 (base32
7557 "01v4bjhj2i126pwyk0v9lvmfp2ih495xsq903k3xa2z24bjxphbi"))))
7558 (properties
7559 `((upstream-name . "Rsamtools")))
7560 (build-system r-build-system)
7561 (arguments
7562 `(#:phases
7563 (modify-phases %standard-phases
7564 (add-after 'unpack 'use-system-zlib
7565 (lambda _
7566 (substitute* "DESCRIPTION"
7567 (("zlibbioc, ") ""))
7568 (substitute* "NAMESPACE"
7569 (("import\\(zlibbioc\\)") ""))
7570 #t)))))
7571 (inputs
7572 `(("zlib" ,zlib)))
7573 (propagated-inputs
7574 `(("r-biocgenerics" ,r-biocgenerics)
7575 ("r-biocparallel" ,r-biocparallel)
7576 ("r-biostrings" ,r-biostrings)
7577 ("r-bitops" ,r-bitops)
7578 ("r-genomeinfodb" ,r-genomeinfodb)
7579 ("r-genomicranges" ,r-genomicranges)
7580 ("r-iranges" ,r-iranges)
7581 ("r-s4vectors" ,r-s4vectors)
7582 ("r-xvector" ,r-xvector)))
7583 (home-page "https://bioconductor.org/packages/release/bioc/html/Rsamtools.html")
7584 (synopsis "Interface to samtools, bcftools, and tabix")
7585 (description
7586 "This package provides an interface to the 'samtools', 'bcftools', and
7587 'tabix' utilities for manipulating SAM (Sequence Alignment / Map), FASTA,
7588 binary variant call (BCF) and compressed indexed tab-delimited (tabix)
7589 files.")
7590 (license license:expat)))
7591
7592 (define-public r-delayedarray
7593 (package
7594 (name "r-delayedarray")
7595 (version "0.8.0")
7596 (source (origin
7597 (method url-fetch)
7598 (uri (bioconductor-uri "DelayedArray" version))
7599 (sha256
7600 (base32
7601 "0cl5anqkjwvqx19snjhz0zj8cp8ibckiifl28h821h50g62nvb2f"))))
7602 (properties
7603 `((upstream-name . "DelayedArray")))
7604 (build-system r-build-system)
7605 (propagated-inputs
7606 `(("r-biocgenerics" ,r-biocgenerics)
7607 ("r-biocparallel" ,r-biocparallel)
7608 ("r-s4vectors" ,r-s4vectors)
7609 ("r-iranges" ,r-iranges)
7610 ("r-matrixstats" ,r-matrixstats)))
7611 (home-page "https://bioconductor.org/packages/DelayedArray")
7612 (synopsis "Delayed operations on array-like objects")
7613 (description
7614 "Wrapping an array-like object (typically an on-disk object) in a
7615 @code{DelayedArray} object allows one to perform common array operations on it
7616 without loading the object in memory. In order to reduce memory usage and
7617 optimize performance, operations on the object are either delayed or executed
7618 using a block processing mechanism. Note that this also works on in-memory
7619 array-like objects like @code{DataFrame} objects (typically with Rle columns),
7620 @code{Matrix} objects, and ordinary arrays and data frames.")
7621 (license license:artistic2.0)))
7622
7623 (define-public r-summarizedexperiment
7624 (package
7625 (name "r-summarizedexperiment")
7626 (version "1.12.0")
7627 (source (origin
7628 (method url-fetch)
7629 (uri (bioconductor-uri "SummarizedExperiment" version))
7630 (sha256
7631 (base32
7632 "07805572xhpj5mfwq6kw1ha21wgalqvhh4ydvafyl1bnf3r20vps"))))
7633 (properties
7634 `((upstream-name . "SummarizedExperiment")))
7635 (build-system r-build-system)
7636 (propagated-inputs
7637 `(("r-biobase" ,r-biobase)
7638 ("r-biocgenerics" ,r-biocgenerics)
7639 ("r-delayedarray" ,r-delayedarray)
7640 ("r-genomeinfodb" ,r-genomeinfodb)
7641 ("r-genomicranges" ,r-genomicranges)
7642 ("r-iranges" ,r-iranges)
7643 ("r-matrix" ,r-matrix)
7644 ("r-s4vectors" ,r-s4vectors)))
7645 (home-page "https://bioconductor.org/packages/SummarizedExperiment")
7646 (synopsis "Container for representing genomic ranges by sample")
7647 (description
7648 "The SummarizedExperiment container contains one or more assays, each
7649 represented by a matrix-like object of numeric or other mode. The rows
7650 typically represent genomic ranges of interest and the columns represent
7651 samples.")
7652 (license license:artistic2.0)))
7653
7654 (define-public r-genomicalignments
7655 (package
7656 (name "r-genomicalignments")
7657 (version "1.18.1")
7658 (source (origin
7659 (method url-fetch)
7660 (uri (bioconductor-uri "GenomicAlignments" version))
7661 (sha256
7662 (base32
7663 "1maslav2r34wjyzh2nlwa862in1ir7i5xk57nw2nlfh5gqy112jd"))))
7664 (properties
7665 `((upstream-name . "GenomicAlignments")))
7666 (build-system r-build-system)
7667 (propagated-inputs
7668 `(("r-biocgenerics" ,r-biocgenerics)
7669 ("r-biocparallel" ,r-biocparallel)
7670 ("r-biostrings" ,r-biostrings)
7671 ("r-genomeinfodb" ,r-genomeinfodb)
7672 ("r-genomicranges" ,r-genomicranges)
7673 ("r-iranges" ,r-iranges)
7674 ("r-rsamtools" ,r-rsamtools)
7675 ("r-s4vectors" ,r-s4vectors)
7676 ("r-summarizedexperiment" ,r-summarizedexperiment)))
7677 (home-page "https://bioconductor.org/packages/GenomicAlignments")
7678 (synopsis "Representation and manipulation of short genomic alignments")
7679 (description
7680 "This package provides efficient containers for storing and manipulating
7681 short genomic alignments (typically obtained by aligning short reads to a
7682 reference genome). This includes read counting, computing the coverage,
7683 junction detection, and working with the nucleotide content of the
7684 alignments.")
7685 (license license:artistic2.0)))
7686
7687 (define-public r-rtracklayer
7688 (package
7689 (name "r-rtracklayer")
7690 (version "1.42.1")
7691 (source (origin
7692 (method url-fetch)
7693 (uri (bioconductor-uri "rtracklayer" version))
7694 (sha256
7695 (base32
7696 "1ycmcxvgvszvjv75hlmg0i6pq8i7r8720vgmfayb905s9l6j82x6"))))
7697 (build-system r-build-system)
7698 (arguments
7699 `(#:phases
7700 (modify-phases %standard-phases
7701 (add-after 'unpack 'use-system-zlib
7702 (lambda _
7703 (substitute* "DESCRIPTION"
7704 ((" zlibbioc,") ""))
7705 (substitute* "NAMESPACE"
7706 (("import\\(zlibbioc\\)") ""))
7707 #t)))))
7708 (native-inputs
7709 `(("pkg-config" ,pkg-config)))
7710 (inputs
7711 `(("zlib" ,zlib)))
7712 (propagated-inputs
7713 `(("r-biocgenerics" ,r-biocgenerics)
7714 ("r-biostrings" ,r-biostrings)
7715 ("r-genomeinfodb" ,r-genomeinfodb)
7716 ("r-genomicalignments" ,r-genomicalignments)
7717 ("r-genomicranges" ,r-genomicranges)
7718 ("r-iranges" ,r-iranges)
7719 ("r-rcurl" ,r-rcurl)
7720 ("r-rsamtools" ,r-rsamtools)
7721 ("r-s4vectors" ,r-s4vectors)
7722 ("r-xml" ,r-xml)
7723 ("r-xvector" ,r-xvector)))
7724 (home-page "https://bioconductor.org/packages/rtracklayer")
7725 (synopsis "R interface to genome browsers and their annotation tracks")
7726 (description
7727 "rtracklayer is an extensible framework for interacting with multiple
7728 genome browsers (currently UCSC built-in) and manipulating annotation tracks
7729 in various formats (currently GFF, BED, bedGraph, BED15, WIG, BigWig and 2bit
7730 built-in). The user may export/import tracks to/from the supported browsers,
7731 as well as query and modify the browser state, such as the current viewport.")
7732 (license license:artistic2.0)))
7733
7734 (define-public r-genomicfeatures
7735 (package
7736 (name "r-genomicfeatures")
7737 (version "1.34.2")
7738 (source (origin
7739 (method url-fetch)
7740 (uri (bioconductor-uri "GenomicFeatures" version))
7741 (sha256
7742 (base32
7743 "0qs94b0ywrjyc9m1jykrbch3lb07576m508dikvx18vwn304mban"))))
7744 (properties
7745 `((upstream-name . "GenomicFeatures")))
7746 (build-system r-build-system)
7747 (propagated-inputs
7748 `(("r-annotationdbi" ,r-annotationdbi)
7749 ("r-biobase" ,r-biobase)
7750 ("r-biocgenerics" ,r-biocgenerics)
7751 ("r-biomart" ,r-biomart)
7752 ("r-biostrings" ,r-biostrings)
7753 ("r-dbi" ,r-dbi)
7754 ("r-genomeinfodb" ,r-genomeinfodb)
7755 ("r-genomicranges" ,r-genomicranges)
7756 ("r-iranges" ,r-iranges)
7757 ("r-rcurl" ,r-rcurl)
7758 ("r-rsqlite" ,r-rsqlite)
7759 ("r-rtracklayer" ,r-rtracklayer)
7760 ("r-s4vectors" ,r-s4vectors)
7761 ("r-xvector" ,r-xvector)))
7762 (home-page "https://bioconductor.org/packages/GenomicFeatures")
7763 (synopsis "Tools for working with transcript centric annotations")
7764 (description
7765 "This package provides a set of tools and methods for making and
7766 manipulating transcript centric annotations. With these tools the user can
7767 easily download the genomic locations of the transcripts, exons and cds of a
7768 given organism, from either the UCSC Genome Browser or a BioMart
7769 database (more sources will be supported in the future). This information is
7770 then stored in a local database that keeps track of the relationship between
7771 transcripts, exons, cds and genes. Flexible methods are provided for
7772 extracting the desired features in a convenient format.")
7773 (license license:artistic2.0)))
7774
7775 (define-public r-go-db
7776 (package
7777 (name "r-go-db")
7778 (version "3.7.0")
7779 (source (origin
7780 (method url-fetch)
7781 (uri (string-append "https://www.bioconductor.org/packages/"
7782 "release/data/annotation/src/contrib/GO.db_"
7783 version ".tar.gz"))
7784 (sha256
7785 (base32
7786 "0i3wcf5h3n0dawzc1hy0kv74f06j80c47n4p3g3fmrcxlhi3jpa5"))))
7787 (properties
7788 `((upstream-name . "GO.db")))
7789 (build-system r-build-system)
7790 (propagated-inputs
7791 `(("r-annotationdbi" ,r-annotationdbi)))
7792 (home-page "https://bioconductor.org/packages/GO.db")
7793 (synopsis "Annotation maps describing the entire Gene Ontology")
7794 (description
7795 "The purpose of this GO.db annotation package is to provide detailed
7796 information about the latest version of the Gene Ontologies.")
7797 (license license:artistic2.0)))
7798
7799 (define-public r-topgo
7800 (package
7801 (name "r-topgo")
7802 (version "2.34.0")
7803 (source (origin
7804 (method url-fetch)
7805 (uri (bioconductor-uri "topGO" version))
7806 (sha256
7807 (base32
7808 "1j1jcd16j564kr6qz28140fzmnh9xasi84v1c1fi98sqv30zq9bh"))))
7809 (properties
7810 `((upstream-name . "topGO")))
7811 (build-system r-build-system)
7812 (propagated-inputs
7813 `(("r-annotationdbi" ,r-annotationdbi)
7814 ("r-dbi" ,r-dbi)
7815 ("r-biobase" ,r-biobase)
7816 ("r-biocgenerics" ,r-biocgenerics)
7817 ("r-go-db" ,r-go-db)
7818 ("r-graph" ,r-graph)
7819 ("r-lattice" ,r-lattice)
7820 ("r-matrixstats" ,r-matrixstats)
7821 ("r-sparsem" ,r-sparsem)))
7822 (home-page "https://bioconductor.org/packages/topGO")
7823 (synopsis "Enrichment analysis for gene ontology")
7824 (description
7825 "The topGO package provides tools for testing @dfn{gene ontology} (GO)
7826 terms while accounting for the topology of the GO graph. Different test
7827 statistics and different methods for eliminating local similarities and
7828 dependencies between GO terms can be implemented and applied.")
7829 ;; Any version of the LGPL applies.
7830 (license license:lgpl2.1+)))
7831
7832 (define-public r-bsgenome
7833 (package
7834 (name "r-bsgenome")
7835 (version "1.50.0")
7836 (source (origin
7837 (method url-fetch)
7838 (uri (bioconductor-uri "BSgenome" version))
7839 (sha256
7840 (base32
7841 "07z4zxx0khrc86qqvc7vxww8df9fh6pyks9ajxkc9gdqr5nn79j7"))))
7842 (properties
7843 `((upstream-name . "BSgenome")))
7844 (build-system r-build-system)
7845 (propagated-inputs
7846 `(("r-biocgenerics" ,r-biocgenerics)
7847 ("r-biostrings" ,r-biostrings)
7848 ("r-genomeinfodb" ,r-genomeinfodb)
7849 ("r-genomicranges" ,r-genomicranges)
7850 ("r-iranges" ,r-iranges)
7851 ("r-rsamtools" ,r-rsamtools)
7852 ("r-rtracklayer" ,r-rtracklayer)
7853 ("r-s4vectors" ,r-s4vectors)
7854 ("r-xvector" ,r-xvector)))
7855 (home-page "https://bioconductor.org/packages/BSgenome")
7856 (synopsis "Infrastructure for Biostrings-based genome data packages")
7857 (description
7858 "This package provides infrastructure shared by all Biostrings-based
7859 genome data packages and support for efficient SNP representation.")
7860 (license license:artistic2.0)))
7861
7862 (define-public r-impute
7863 (package
7864 (name "r-impute")
7865 (version "1.56.0")
7866 (source (origin
7867 (method url-fetch)
7868 (uri (bioconductor-uri "impute" version))
7869 (sha256
7870 (base32
7871 "08z0pj1dz5iq967nwj67qyka7ir7m5an2ggv7bsrlz3apzfsla33"))))
7872 (inputs
7873 `(("gfortran" ,gfortran)))
7874 (build-system r-build-system)
7875 (home-page "https://bioconductor.org/packages/impute")
7876 (synopsis "Imputation for microarray data")
7877 (description
7878 "This package provides a function to impute missing gene expression
7879 microarray data, using nearest neighbor averaging.")
7880 (license license:gpl2+)))
7881
7882 (define-public r-seqpattern
7883 (package
7884 (name "r-seqpattern")
7885 (version "1.14.0")
7886 (source (origin
7887 (method url-fetch)
7888 (uri (bioconductor-uri "seqPattern" version))
7889 (sha256
7890 (base32
7891 "0di83qi83mrlw7i12khsq55d03hlazcywaa9m9pki1sfhafpq733"))))
7892 (properties
7893 `((upstream-name . "seqPattern")))
7894 (build-system r-build-system)
7895 (propagated-inputs
7896 `(("r-biostrings" ,r-biostrings)
7897 ("r-genomicranges" ,r-genomicranges)
7898 ("r-iranges" ,r-iranges)
7899 ("r-kernsmooth" ,r-kernsmooth)
7900 ("r-plotrix" ,r-plotrix)))
7901 (home-page "https://bioconductor.org/packages/seqPattern")
7902 (synopsis "Visualising oligonucleotide patterns and motif occurrences")
7903 (description
7904 "This package provides tools to visualize oligonucleotide patterns and
7905 sequence motif occurrences across a large set of sequences centred at a common
7906 reference point and sorted by a user defined feature.")
7907 (license license:gpl3+)))
7908
7909 (define-public r-genomation
7910 (package
7911 (name "r-genomation")
7912 (version "1.14.0")
7913 (source (origin
7914 (method url-fetch)
7915 (uri (bioconductor-uri "genomation" version))
7916 (sha256
7917 (base32
7918 "0g0v4alfpqlinqinjnyzl3mrjnpbdx9ri34mcaiqbvbvg8ic8wvg"))))
7919 (build-system r-build-system)
7920 (propagated-inputs
7921 `(("r-biostrings" ,r-biostrings)
7922 ("r-bsgenome" ,r-bsgenome)
7923 ("r-data-table" ,r-data-table)
7924 ("r-genomeinfodb" ,r-genomeinfodb)
7925 ("r-genomicalignments" ,r-genomicalignments)
7926 ("r-genomicranges" ,r-genomicranges)
7927 ("r-ggplot2" ,r-ggplot2)
7928 ("r-gridbase" ,r-gridbase)
7929 ("r-impute" ,r-impute)
7930 ("r-iranges" ,r-iranges)
7931 ("r-matrixstats" ,r-matrixstats)
7932 ("r-plotrix" ,r-plotrix)
7933 ("r-plyr" ,r-plyr)
7934 ("r-rcpp" ,r-rcpp)
7935 ("r-readr" ,r-readr)
7936 ("r-reshape2" ,r-reshape2)
7937 ("r-rsamtools" ,r-rsamtools)
7938 ("r-rtracklayer" ,r-rtracklayer)
7939 ("r-runit" ,r-runit)
7940 ("r-s4vectors" ,r-s4vectors)
7941 ("r-seqpattern" ,r-seqpattern)))
7942 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
7943 (synopsis "Summary, annotation and visualization of genomic data")
7944 (description
7945 "This package provides a package for summary and annotation of genomic
7946 intervals. Users can visualize and quantify genomic intervals over
7947 pre-defined functional regions, such as promoters, exons, introns, etc. The
7948 genomic intervals represent regions with a defined chromosome position, which
7949 may be associated with a score, such as aligned reads from HT-seq experiments,
7950 TF binding sites, methylation scores, etc. The package can use any tabular
7951 genomic feature data as long as it has minimal information on the locations of
7952 genomic intervals. In addition, it can use BAM or BigWig files as input.")
7953 (license license:artistic2.0)))
7954
7955 (define-public r-genomationdata
7956 (package
7957 (name "r-genomationdata")
7958 (version "1.14.0")
7959 (source (origin
7960 (method url-fetch)
7961 ;; We cannot use bioconductor-uri here because this tarball is
7962 ;; located under "data/annotation/" instead of "bioc/".
7963 (uri (string-append "https://bioconductor.org/packages/"
7964 "release/data/experiment/src/contrib/"
7965 "genomationData_" version ".tar.gz"))
7966 (sha256
7967 (base32
7968 "10xyb8akjrhmak2i0mnv1agny2ipy364q9nlibyplpzc7vdb6bw7"))))
7969 (build-system r-build-system)
7970 ;; As this package provides little more than large data files, it doesn't
7971 ;; make sense to build substitutes.
7972 (arguments `(#:substitutable? #f))
7973 (native-inputs
7974 `(("r-knitr" ,r-knitr)))
7975 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
7976 (synopsis "Experimental data for use with the genomation package")
7977 (description
7978 "This package contains experimental genetic data for use with the
7979 genomation package. Included are Chip Seq, Methylation and Cage data,
7980 downloaded from Encode.")
7981 (license license:gpl3+)))
7982
7983 (define-public r-org-hs-eg-db
7984 (package
7985 (name "r-org-hs-eg-db")
7986 (version "3.7.0")
7987 (source (origin
7988 (method url-fetch)
7989 ;; We cannot use bioconductor-uri here because this tarball is
7990 ;; located under "data/annotation/" instead of "bioc/".
7991 (uri (string-append "https://www.bioconductor.org/packages/"
7992 "release/data/annotation/src/contrib/"
7993 "org.Hs.eg.db_" version ".tar.gz"))
7994 (sha256
7995 (base32
7996 "1qxz9l80yg3qdqszs6dsscp7lrpfi1bgd0pxh9j7q34vprzwhdim"))))
7997 (properties
7998 `((upstream-name . "org.Hs.eg.db")))
7999 (build-system r-build-system)
8000 (propagated-inputs
8001 `(("r-annotationdbi" ,r-annotationdbi)))
8002 (home-page "https://www.bioconductor.org/packages/org.Hs.eg.db/")
8003 (synopsis "Genome wide annotation for Human")
8004 (description
8005 "This package contains genome-wide annotations for Human, primarily based
8006 on mapping using Entrez Gene identifiers.")
8007 (license license:artistic2.0)))
8008
8009 (define-public r-org-ce-eg-db
8010 (package
8011 (name "r-org-ce-eg-db")
8012 (version "3.7.0")
8013 (source (origin
8014 (method url-fetch)
8015 ;; We cannot use bioconductor-uri here because this tarball is
8016 ;; located under "data/annotation/" instead of "bioc/".
8017 (uri (string-append "https://www.bioconductor.org/packages/"
8018 "release/data/annotation/src/contrib/"
8019 "org.Ce.eg.db_" version ".tar.gz"))
8020 (sha256
8021 (base32
8022 "1w5br1ss4ha8wv4v2saj7cmbjc2jw0dyj2f2y269l078z31wcnaz"))))
8023 (properties
8024 `((upstream-name . "org.Ce.eg.db")))
8025 (build-system r-build-system)
8026 (propagated-inputs
8027 `(("r-annotationdbi" ,r-annotationdbi)))
8028 (home-page "https://www.bioconductor.org/packages/org.Ce.eg.db/")
8029 (synopsis "Genome wide annotation for Worm")
8030 (description
8031 "This package provides mappings from Entrez gene identifiers to various
8032 annotations for the genome of the model worm Caenorhabditis elegans.")
8033 (license license:artistic2.0)))
8034
8035 (define-public r-org-dm-eg-db
8036 (package
8037 (name "r-org-dm-eg-db")
8038 (version "3.7.0")
8039 (source (origin
8040 (method url-fetch)
8041 ;; We cannot use bioconductor-uri here because this tarball is
8042 ;; located under "data/annotation/" instead of "bioc/".
8043 (uri (string-append "https://www.bioconductor.org/packages/"
8044 "release/data/annotation/src/contrib/"
8045 "org.Dm.eg.db_" version ".tar.gz"))
8046 (sha256
8047 (base32
8048 "1pqjrzlyg72bjpy8zsxvaglc7jsv176bnyi87xdajmkvsgxpm7b3"))))
8049 (properties
8050 `((upstream-name . "org.Dm.eg.db")))
8051 (build-system r-build-system)
8052 (propagated-inputs
8053 `(("r-annotationdbi" ,r-annotationdbi)))
8054 (home-page "https://www.bioconductor.org/packages/org.Dm.eg.db/")
8055 (synopsis "Genome wide annotation for Fly")
8056 (description
8057 "This package provides mappings from Entrez gene identifiers to various
8058 annotations for the genome of the model fruit fly Drosophila melanogaster.")
8059 (license license:artistic2.0)))
8060
8061 (define-public r-org-mm-eg-db
8062 (package
8063 (name "r-org-mm-eg-db")
8064 (version "3.7.0")
8065 (source (origin
8066 (method url-fetch)
8067 ;; We cannot use bioconductor-uri here because this tarball is
8068 ;; located under "data/annotation/" instead of "bioc/".
8069 (uri (string-append "https://www.bioconductor.org/packages/"
8070 "release/data/annotation/src/contrib/"
8071 "org.Mm.eg.db_" version ".tar.gz"))
8072 (sha256
8073 (base32
8074 "1i3nvrd3wjigf1rmgxq1p5xxc3p8v02h5gwi62s30rkrsyjjfjxx"))))
8075 (properties
8076 `((upstream-name . "org.Mm.eg.db")))
8077 (build-system r-build-system)
8078 (propagated-inputs
8079 `(("r-annotationdbi" ,r-annotationdbi)))
8080 (home-page "https://www.bioconductor.org/packages/org.Mm.eg.db/")
8081 (synopsis "Genome wide annotation for Mouse")
8082 (description
8083 "This package provides mappings from Entrez gene identifiers to various
8084 annotations for the genome of the model mouse Mus musculus.")
8085 (license license:artistic2.0)))
8086
8087 (define-public r-seqlogo
8088 (package
8089 (name "r-seqlogo")
8090 (version "1.48.0")
8091 (source
8092 (origin
8093 (method url-fetch)
8094 (uri (bioconductor-uri "seqLogo" version))
8095 (sha256
8096 (base32
8097 "022vr9ydwcivs7rw7kwj73gfk5gc7ckwa1q66vhd4kw9ylh70v68"))))
8098 (properties `((upstream-name . "seqLogo")))
8099 (build-system r-build-system)
8100 (home-page "https://bioconductor.org/packages/seqLogo")
8101 (synopsis "Sequence logos for DNA sequence alignments")
8102 (description
8103 "seqLogo takes the position weight matrix of a DNA sequence motif and
8104 plots the corresponding sequence logo as introduced by Schneider and
8105 Stephens (1990).")
8106 (license license:lgpl2.0+)))
8107
8108 (define-public r-txdb-mmusculus-ucsc-mm10-knowngene
8109 (package
8110 (name "r-txdb-mmusculus-ucsc-mm10-knowngene")
8111 (version "3.4.4")
8112 (source (origin
8113 (method url-fetch)
8114 ;; We cannot use bioconductor-uri here because this tarball is
8115 ;; located under "data/annotation/" instead of "bioc/".
8116 (uri (string-append "https://www.bioconductor.org/packages/"
8117 "release/data/annotation/src/contrib/"
8118 "TxDb.Mmusculus.UCSC.mm10.knownGene_"
8119 version ".tar.gz"))
8120 (sha256
8121 (base32
8122 "01lgxc1fx5nhlpbwjd5zqghkkbmh6axd98ikx4b0spv0jdg6gf39"))))
8123 (properties
8124 `((upstream-name . "TxDb.Mmusculus.UCSC.mm10.knownGene")))
8125 (build-system r-build-system)
8126 ;; As this package provides little more than a very large data file it
8127 ;; doesn't make sense to build substitutes.
8128 (arguments `(#:substitutable? #f))
8129 (propagated-inputs
8130 `(("r-bsgenome" ,r-bsgenome)
8131 ("r-genomicfeatures" ,r-genomicfeatures)
8132 ("r-annotationdbi" ,r-annotationdbi)))
8133 (home-page
8134 "https://bioconductor.org/packages/TxDb.Mmusculus.UCSC.mm10.knownGene/")
8135 (synopsis "Annotation package for TxDb knownGene object(s) for Mouse")
8136 (description
8137 "This package loads a TxDb object, which is an R interface to
8138 prefabricated databases contained in this package. This package provides
8139 the TxDb object of Mouse data as provided by UCSC (mm10, December 2011)
8140 based on the knownGene track.")
8141 (license license:artistic2.0)))
8142
8143 (define-public r-bsgenome-celegans-ucsc-ce6
8144 (package
8145 (name "r-bsgenome-celegans-ucsc-ce6")
8146 (version "1.4.0")
8147 (source (origin
8148 (method url-fetch)
8149 ;; We cannot use bioconductor-uri here because this tarball is
8150 ;; located under "data/annotation/" instead of "bioc/".
8151 (uri (string-append "https://www.bioconductor.org/packages/"
8152 "release/data/annotation/src/contrib/"
8153 "BSgenome.Celegans.UCSC.ce6_"
8154 version ".tar.gz"))
8155 (sha256
8156 (base32
8157 "0mqzb353xv2c3m3vkb315dkmnxkgczp7ndnknyhpgjlybyf715v9"))))
8158 (properties
8159 `((upstream-name . "BSgenome.Celegans.UCSC.ce6")))
8160 (build-system r-build-system)
8161 ;; As this package provides little more than a very large data file it
8162 ;; doesn't make sense to build substitutes.
8163 (arguments `(#:substitutable? #f))
8164 (propagated-inputs
8165 `(("r-bsgenome" ,r-bsgenome)))
8166 (home-page
8167 "https://www.bioconductor.org/packages/BSgenome.Celegans.UCSC.ce6/")
8168 (synopsis "Full genome sequences for Worm")
8169 (description
8170 "This package provides full genome sequences for Caenorhabditis
8171 elegans (Worm) as provided by UCSC (ce6, May 2008) and stored in Biostrings
8172 objects.")
8173 (license license:artistic2.0)))
8174
8175 (define-public r-bsgenome-celegans-ucsc-ce10
8176 (package
8177 (name "r-bsgenome-celegans-ucsc-ce10")
8178 (version "1.4.0")
8179 (source (origin
8180 (method url-fetch)
8181 ;; We cannot use bioconductor-uri here because this tarball is
8182 ;; located under "data/annotation/" instead of "bioc/".
8183 (uri (string-append "https://www.bioconductor.org/packages/"
8184 "release/data/annotation/src/contrib/"
8185 "BSgenome.Celegans.UCSC.ce10_"
8186 version ".tar.gz"))
8187 (sha256
8188 (base32
8189 "1zaym97jk4npxk14ifvwz2rvhm4zx9xgs33r9vvx9rlynp0gydrk"))))
8190 (properties
8191 `((upstream-name . "BSgenome.Celegans.UCSC.ce10")))
8192 (build-system r-build-system)
8193 ;; As this package provides little more than a very large data file it
8194 ;; doesn't make sense to build substitutes.
8195 (arguments `(#:substitutable? #f))
8196 (propagated-inputs
8197 `(("r-bsgenome" ,r-bsgenome)))
8198 (home-page
8199 "https://www.bioconductor.org/packages/BSgenome.Celegans.UCSC.ce10/")
8200 (synopsis "Full genome sequences for Worm")
8201 (description
8202 "This package provides full genome sequences for Caenorhabditis
8203 elegans (Worm) as provided by UCSC (ce10, Oct 2010) and stored in Biostrings
8204 objects.")
8205 (license license:artistic2.0)))
8206
8207 (define-public r-bsgenome-dmelanogaster-ucsc-dm3
8208 (package
8209 (name "r-bsgenome-dmelanogaster-ucsc-dm3")
8210 (version "1.4.0")
8211 (source (origin
8212 (method url-fetch)
8213 ;; We cannot use bioconductor-uri here because this tarball is
8214 ;; located under "data/annotation/" instead of "bioc/".
8215 (uri (string-append "https://www.bioconductor.org/packages/"
8216 "release/data/annotation/src/contrib/"
8217 "BSgenome.Dmelanogaster.UCSC.dm3_"
8218 version ".tar.gz"))
8219 (sha256
8220 (base32
8221 "19bm3lkhhkag3gnwp419211fh0cnr0x6fa0r1lr0ycwrikxdxsv8"))))
8222 (properties
8223 `((upstream-name . "BSgenome.Dmelanogaster.UCSC.dm3")))
8224 (build-system r-build-system)
8225 ;; As this package provides little more than a very large data file it
8226 ;; doesn't make sense to build substitutes.
8227 (arguments `(#:substitutable? #f))
8228 (propagated-inputs
8229 `(("r-bsgenome" ,r-bsgenome)))
8230 (home-page
8231 "https://www.bioconductor.org/packages/BSgenome.Dmelanogaster.UCSC.dm3/")
8232 (synopsis "Full genome sequences for Fly")
8233 (description
8234 "This package provides full genome sequences for Drosophila
8235 melanogaster (Fly) as provided by UCSC (dm3, April 2006) and stored in
8236 Biostrings objects.")
8237 (license license:artistic2.0)))
8238
8239 (define-public r-motifrg
8240 (package
8241 (name "r-motifrg")
8242 (version "1.26.0")
8243 (source
8244 (origin
8245 (method url-fetch)
8246 (uri (bioconductor-uri "motifRG" version))
8247 (sha256
8248 (base32
8249 "1wxww6i0jgyapqclcwy0zzf9kqjvrvylr89z7yhg1izi7jnw2fka"))))
8250 (properties `((upstream-name . "motifRG")))
8251 (build-system r-build-system)
8252 (propagated-inputs
8253 `(("r-biostrings" ,r-biostrings)
8254 ("r-bsgenome" ,r-bsgenome)
8255 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8256 ("r-iranges" ,r-iranges)
8257 ("r-seqlogo" ,r-seqlogo)
8258 ("r-xvector" ,r-xvector)))
8259 (home-page "https://bioconductor.org/packages/motifRG")
8260 (synopsis "Discover motifs in high throughput sequencing data")
8261 (description
8262 "This package provides tools for discriminative motif discovery in high
8263 throughput genetic sequencing data sets using regression methods.")
8264 (license license:artistic2.0)))
8265
8266 (define-public r-qtl
8267 (package
8268 (name "r-qtl")
8269 (version "1.44-9")
8270 (source
8271 (origin
8272 (method url-fetch)
8273 (uri (string-append "mirror://cran/src/contrib/qtl_"
8274 version ".tar.gz"))
8275 (sha256
8276 (base32
8277 "03lmvydln8b7666b6w46qbryhf83vsd11d4y2v95rfgvqgq66l1i"))))
8278 (build-system r-build-system)
8279 (home-page "http://rqtl.org/")
8280 (synopsis "R package for analyzing QTL experiments in genetics")
8281 (description "R/qtl is an extension library for the R statistics
8282 system. It is used to analyze experimental crosses for identifying
8283 genes contributing to variation in quantitative traits (so-called
8284 quantitative trait loci, QTLs).
8285
8286 Using a hidden Markov model, R/qtl allows to estimate genetic maps, to
8287 identify genotyping errors, and to perform single-QTL and two-QTL,
8288 two-dimensional genome scans.")
8289 (license license:gpl3)))
8290
8291 (define-public r-zlibbioc
8292 (package
8293 (name "r-zlibbioc")
8294 (version "1.28.0")
8295 (source (origin
8296 (method url-fetch)
8297 (uri (bioconductor-uri "zlibbioc" version))
8298 (sha256
8299 (base32
8300 "0bjvzy24kab7ank02cc1qk2ikcz4dllgf66wpsdl0d3zp4gn3l2h"))))
8301 (properties
8302 `((upstream-name . "zlibbioc")))
8303 (build-system r-build-system)
8304 (home-page "https://bioconductor.org/packages/zlibbioc")
8305 (synopsis "Provider for zlib-1.2.5 to R packages")
8306 (description "This package uses the source code of zlib-1.2.5 to create
8307 libraries for systems that do not have these available via other means.")
8308 (license license:artistic2.0)))
8309
8310 (define-public r-r4rna
8311 (package
8312 (name "r-r4rna")
8313 (version "0.1.4")
8314 (source
8315 (origin
8316 (method url-fetch)
8317 (uri (string-append "http://www.e-rna.org/r-chie/files/R4RNA_"
8318 version ".tar.gz"))
8319 (sha256
8320 (base32
8321 "1p0i78wh76jfgmn9jphbwwaz6yy6pipzfg08xs54cxavxg2j81p5"))))
8322 (build-system r-build-system)
8323 (propagated-inputs
8324 `(("r-optparse" ,r-optparse)
8325 ("r-rcolorbrewer" ,r-rcolorbrewer)))
8326 (home-page "http://www.e-rna.org/r-chie/index.cgi")
8327 (synopsis "Analysis framework for RNA secondary structure")
8328 (description
8329 "The R4RNA package aims to be a general framework for the analysis of RNA
8330 secondary structure and comparative analysis in R.")
8331 (license license:gpl3+)))
8332
8333 (define-public r-rhtslib
8334 (package
8335 (name "r-rhtslib")
8336 (version "1.14.0")
8337 (source
8338 (origin
8339 (method url-fetch)
8340 (uri (bioconductor-uri "Rhtslib" version))
8341 (sha256
8342 (base32
8343 "1h4q54f8za3aaxgy186zf2165sar5c3cgxkk44lq5hzx5pxkl5wn"))))
8344 (properties `((upstream-name . "Rhtslib")))
8345 (build-system r-build-system)
8346 (propagated-inputs
8347 `(("r-zlibbioc" ,r-zlibbioc)))
8348 (inputs
8349 `(("zlib" ,zlib)))
8350 (native-inputs
8351 `(("pkg-config" ,pkg-config)))
8352 (home-page "https://github.com/nhayden/Rhtslib")
8353 (synopsis "High-throughput sequencing library as an R package")
8354 (description
8355 "This package provides the HTSlib C library for high-throughput
8356 nucleotide sequence analysis. The package is primarily useful to developers
8357 of other R packages who wish to make use of HTSlib.")
8358 (license license:lgpl2.0+)))
8359
8360 (define-public r-bamsignals
8361 (package
8362 (name "r-bamsignals")
8363 (version "1.14.0")
8364 (source
8365 (origin
8366 (method url-fetch)
8367 (uri (bioconductor-uri "bamsignals" version))
8368 (sha256
8369 (base32
8370 "19irfx1y1izf903vq59wxsdbf88g143zy9l89gxqawh7jfxds8w8"))))
8371 (build-system r-build-system)
8372 (propagated-inputs
8373 `(("r-biocgenerics" ,r-biocgenerics)
8374 ("r-genomicranges" ,r-genomicranges)
8375 ("r-iranges" ,r-iranges)
8376 ("r-rcpp" ,r-rcpp)
8377 ("r-rhtslib" ,r-rhtslib)
8378 ("r-zlibbioc" ,r-zlibbioc)))
8379 (inputs
8380 `(("zlib" ,zlib)))
8381 (home-page "https://bioconductor.org/packages/bamsignals")
8382 (synopsis "Extract read count signals from bam files")
8383 (description
8384 "This package allows to efficiently obtain count vectors from indexed bam
8385 files. It counts the number of nucleotide sequence reads in given genomic
8386 ranges and it computes reads profiles and coverage profiles. It also handles
8387 paired-end data.")
8388 (license license:gpl2+)))
8389
8390 (define-public r-rcas
8391 (package
8392 (name "r-rcas")
8393 (version "1.8.0")
8394 (source (origin
8395 (method url-fetch)
8396 (uri (bioconductor-uri "RCAS" version))
8397 (sha256
8398 (base32
8399 "0ss5hcg2m7gjji6dd23zxa5bd5a7knwcnada4qs5q2l4clgk39ad"))))
8400 (build-system r-build-system)
8401 (propagated-inputs
8402 `(("r-annotationdbi" ,r-annotationdbi)
8403 ("r-biocgenerics" ,r-biocgenerics)
8404 ("r-biomart" ,r-biomart)
8405 ("r-biostrings" ,r-biostrings)
8406 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8407 ("r-cowplot" ,r-cowplot)
8408 ("r-data-table" ,r-data-table)
8409 ("r-dbi" ,r-dbi)
8410 ("r-dt" ,r-dt)
8411 ("r-genomation" ,r-genomation)
8412 ("r-genomeinfodb" ,r-genomeinfodb)
8413 ("r-genomicfeatures" ,r-genomicfeatures)
8414 ("r-genomicranges" ,r-genomicranges)
8415 ("r-ggplot2" ,r-ggplot2)
8416 ("r-ggseqlogo" ,r-ggseqlogo)
8417 ("r-knitr" ,r-knitr)
8418 ("r-motifrg" ,r-motifrg)
8419 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
8420 ("r-pbapply" ,r-pbapply)
8421 ("r-pheatmap" ,r-pheatmap)
8422 ("r-plotly" ,r-plotly)
8423 ("r-plotrix" ,r-plotrix)
8424 ("r-proxy" ,r-proxy)
8425 ("r-rsqlite" ,r-rsqlite)
8426 ("r-rtracklayer" ,r-rtracklayer)
8427 ("r-rmarkdown" ,r-rmarkdown)
8428 ("r-s4vectors" ,r-s4vectors)
8429 ("r-topgo" ,r-topgo)))
8430 (synopsis "RNA-centric annotation system")
8431 (description
8432 "RCAS aims to be a standalone RNA-centric annotation system that provides
8433 intuitive reports and publication-ready graphics. This package provides the R
8434 library implementing most of the pipeline's features.")
8435 (home-page "https://github.com/BIMSBbioinfo/RCAS")
8436 (license license:artistic2.0)))
8437
8438 (define-public rcas-web
8439 (package
8440 (name "rcas-web")
8441 (version "0.1.0")
8442 (source
8443 (origin
8444 (method url-fetch)
8445 (uri (string-append "https://github.com/BIMSBbioinfo/rcas-web/"
8446 "releases/download/v" version
8447 "/rcas-web-" version ".tar.gz"))
8448 (sha256
8449 (base32
8450 "0wq951aj45gqki1bickg876i993lmawkp8x24agg264br5x716db"))))
8451 (build-system gnu-build-system)
8452 (arguments
8453 `(#:phases
8454 (modify-phases %standard-phases
8455 (add-after 'install 'wrap-executable
8456 (lambda* (#:key inputs outputs #:allow-other-keys)
8457 (let* ((out (assoc-ref outputs "out"))
8458 (json (assoc-ref inputs "guile-json"))
8459 (redis (assoc-ref inputs "guile-redis"))
8460 (path (string-append
8461 json "/share/guile/site/2.2:"
8462 redis "/share/guile/site/2.2")))
8463 (wrap-program (string-append out "/bin/rcas-web")
8464 `("GUILE_LOAD_PATH" ":" = (,path))
8465 `("GUILE_LOAD_COMPILED_PATH" ":" = (,path))
8466 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
8467 #t)))))
8468 (inputs
8469 `(("r-minimal" ,r-minimal)
8470 ("r-rcas" ,r-rcas)
8471 ("guile-next" ,guile-2.2)
8472 ("guile-json" ,guile-json)
8473 ("guile-redis" ,guile-redis)))
8474 (native-inputs
8475 `(("pkg-config" ,pkg-config)))
8476 (home-page "https://github.com/BIMSBbioinfo/rcas-web")
8477 (synopsis "Web interface for RNA-centric annotation system (RCAS)")
8478 (description "This package provides a simple web interface for the
8479 @dfn{RNA-centric annotation system} (RCAS).")
8480 (license license:agpl3+)))
8481
8482 (define-public r-mutationalpatterns
8483 (package
8484 (name "r-mutationalpatterns")
8485 (version "1.8.0")
8486 (source
8487 (origin
8488 (method url-fetch)
8489 (uri (bioconductor-uri "MutationalPatterns" version))
8490 (sha256
8491 (base32
8492 "0w9lg1zs106h6rqvy8mhikq6q6q9syw6c1prcxr38ssh85rcih12"))))
8493 (build-system r-build-system)
8494 (propagated-inputs
8495 `(("r-biocgenerics" ,r-biocgenerics)
8496 ("r-biostrings" ,r-biostrings)
8497 ;; These two packages are suggested packages
8498 ("r-bsgenome-hsapiens-1000g" ,r-bsgenome-hsapiens-1000genomes-hs37d5)
8499 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8500 ("r-genomicranges" ,r-genomicranges)
8501 ("r-genomeinfodb" ,r-genomeinfodb)
8502 ("r-ggplot2" ,r-ggplot2)
8503 ("r-iranges" ,r-iranges)
8504 ("r-nmf" ,r-nmf)
8505 ("r-plyr" ,r-plyr)
8506 ("r-pracma" ,r-pracma)
8507 ("r-reshape2" ,r-reshape2)
8508 ("r-cowplot" ,r-cowplot)
8509 ("r-ggdendro" ,r-ggdendro)
8510 ("r-s4vectors" ,r-s4vectors)
8511 ("r-summarizedexperiment" ,r-summarizedexperiment)
8512 ("r-variantannotation" ,r-variantannotation)))
8513 (home-page "https://bioconductor.org/packages/MutationalPatterns/")
8514 (synopsis "Extract and visualize mutational patterns in genomic data")
8515 (description "This package provides an extensive toolset for the
8516 characterization and visualization of a wide range of mutational patterns
8517 in SNV base substitution data.")
8518 (license license:expat)))
8519
8520 (define-public r-wgcna
8521 (package
8522 (name "r-wgcna")
8523 (version "1.66")
8524 (source
8525 (origin
8526 (method url-fetch)
8527 (uri (cran-uri "WGCNA" version))
8528 (sha256
8529 (base32
8530 "0rhnyhzfn93yp24jz9v6dzrmyizwzdw070a7idm0k33w1cm8sjqv"))))
8531 (properties `((upstream-name . "WGCNA")))
8532 (build-system r-build-system)
8533 (propagated-inputs
8534 `(("r-annotationdbi" ,r-annotationdbi)
8535 ("r-doparallel" ,r-doparallel)
8536 ("r-dynamictreecut" ,r-dynamictreecut)
8537 ("r-fastcluster" ,r-fastcluster)
8538 ("r-foreach" ,r-foreach)
8539 ("r-go-db" ,r-go-db)
8540 ("r-hmisc" ,r-hmisc)
8541 ("r-impute" ,r-impute)
8542 ("r-rcpp" ,r-rcpp)
8543 ("r-robust" ,r-robust)
8544 ("r-survival" ,r-survival)
8545 ("r-matrixstats" ,r-matrixstats)
8546 ("r-preprocesscore" ,r-preprocesscore)))
8547 (home-page
8548 "http://www.genetics.ucla.edu/labs/horvath/CoexpressionNetwork/Rpackages/WGCNA/")
8549 (synopsis "Weighted correlation network analysis")
8550 (description
8551 "This package provides functions necessary to perform Weighted
8552 Correlation Network Analysis on high-dimensional data. It includes functions
8553 for rudimentary data cleaning, construction and summarization of correlation
8554 networks, module identification and functions for relating both variables and
8555 modules to sample traits. It also includes a number of utility functions for
8556 data manipulation and visualization.")
8557 (license license:gpl2+)))
8558
8559 (define-public r-chipkernels
8560 (let ((commit "c9cfcacb626b1221094fb3490ea7bac0fd625372")
8561 (revision "1"))
8562 (package
8563 (name "r-chipkernels")
8564 (version (string-append "1.1-" revision "." (string-take commit 9)))
8565 (source
8566 (origin
8567 (method git-fetch)
8568 (uri (git-reference
8569 (url "https://github.com/ManuSetty/ChIPKernels.git")
8570 (commit commit)))
8571 (file-name (string-append name "-" version))
8572 (sha256
8573 (base32
8574 "14bj5qhjm1hsm9ay561nfbqi9wxsa7y487df2idsaaf6z10nw4v0"))))
8575 (build-system r-build-system)
8576 (propagated-inputs
8577 `(("r-iranges" ,r-iranges)
8578 ("r-xvector" ,r-xvector)
8579 ("r-biostrings" ,r-biostrings)
8580 ("r-bsgenome" ,r-bsgenome)
8581 ("r-gtools" ,r-gtools)
8582 ("r-genomicranges" ,r-genomicranges)
8583 ("r-sfsmisc" ,r-sfsmisc)
8584 ("r-kernlab" ,r-kernlab)
8585 ("r-s4vectors" ,r-s4vectors)
8586 ("r-biocgenerics" ,r-biocgenerics)))
8587 (home-page "https://github.com/ManuSetty/ChIPKernels")
8588 (synopsis "Build string kernels for DNA Sequence analysis")
8589 (description "ChIPKernels is an R package for building different string
8590 kernels used for DNA Sequence analysis. A dictionary of the desired kernel
8591 must be built and this dictionary can be used for determining kernels for DNA
8592 Sequences.")
8593 (license license:gpl2+))))
8594
8595 (define-public r-seqgl
8596 (package
8597 (name "r-seqgl")
8598 (version "1.1.4")
8599 (source
8600 (origin
8601 (method git-fetch)
8602 (uri (git-reference
8603 (url "https://github.com/ManuSetty/SeqGL.git")
8604 (commit version)))
8605 (file-name (git-file-name name version))
8606 (sha256
8607 (base32
8608 "1r6ywvhxl3ffv48lgj7sbd582mcc6dha3ksgc2qjlvjrnkbj3799"))))
8609 (build-system r-build-system)
8610 (propagated-inputs
8611 `(("r-biostrings" ,r-biostrings)
8612 ("r-chipkernels" ,r-chipkernels)
8613 ("r-genomicranges" ,r-genomicranges)
8614 ("r-spams" ,r-spams)
8615 ("r-wgcna" ,r-wgcna)
8616 ("r-fastcluster" ,r-fastcluster)))
8617 (home-page "https://github.com/ManuSetty/SeqGL")
8618 (synopsis "Group lasso for Dnase/ChIP-seq data")
8619 (description "SeqGL is a group lasso based algorithm to extract
8620 transcription factor sequence signals from ChIP, DNase and ATAC-seq profiles.
8621 This package presents a method which uses group lasso to discriminate between
8622 bound and non bound genomic regions to accurately identify transcription
8623 factors bound at the specific regions.")
8624 (license license:gpl2+)))
8625
8626 (define-public r-gkmsvm
8627 (package
8628 (name "r-gkmsvm")
8629 (version "0.79.0")
8630 (source
8631 (origin
8632 (method url-fetch)
8633 (uri (cran-uri "gkmSVM" version))
8634 (sha256
8635 (base32
8636 "04dakbgfvfalz4rm4fvvybp506dn5fbj5g86ybfhrc6wywjllsz3"))))
8637 (properties `((upstream-name . "gkmSVM")))
8638 (build-system r-build-system)
8639 (propagated-inputs
8640 `(("r-biocgenerics" ,r-biocgenerics)
8641 ("r-biostrings" ,r-biostrings)
8642 ("r-genomeinfodb" ,r-genomeinfodb)
8643 ("r-genomicranges" ,r-genomicranges)
8644 ("r-iranges" ,r-iranges)
8645 ("r-kernlab" ,r-kernlab)
8646 ("r-rcpp" ,r-rcpp)
8647 ("r-rocr" ,r-rocr)
8648 ("r-rtracklayer" ,r-rtracklayer)
8649 ("r-s4vectors" ,r-s4vectors)
8650 ("r-seqinr" ,r-seqinr)))
8651 (home-page "https://cran.r-project.org/web/packages/gkmSVM")
8652 (synopsis "Gapped-kmer support vector machine")
8653 (description
8654 "This R package provides tools for training gapped-kmer SVM classifiers
8655 for DNA and protein sequences. This package supports several sequence
8656 kernels, including: gkmSVM, kmer-SVM, mismatch kernel and wildcard kernel.")
8657 (license license:gpl2+)))
8658
8659 (define-public r-tximport
8660 (package
8661 (name "r-tximport")
8662 (version "1.10.1")
8663 (source (origin
8664 (method url-fetch)
8665 (uri (bioconductor-uri "tximport" version))
8666 (sha256
8667 (base32
8668 "16wp09dm0cpb4mc00nmglfb8ica7qb4a55vm8ajgzyagbpfdd44l"))))
8669 (build-system r-build-system)
8670 (home-page "https://bioconductor.org/packages/tximport")
8671 (synopsis "Import and summarize transcript-level estimates for gene-level analysis")
8672 (description
8673 "This package provides tools to import transcript-level abundance,
8674 estimated counts and transcript lengths, and to summarize them into matrices
8675 for use with downstream gene-level analysis packages. Average transcript
8676 length, weighted by sample-specific transcript abundance estimates, is
8677 provided as a matrix which can be used as an offset for different expression
8678 of gene-level counts.")
8679 (license license:gpl2+)))
8680
8681 (define-public r-rhdf5
8682 (package
8683 (name "r-rhdf5")
8684 (version "2.26.2")
8685 (source (origin
8686 (method url-fetch)
8687 (uri (bioconductor-uri "rhdf5" version))
8688 (sha256
8689 (base32
8690 "10zkw3k13wmvyif417gplyf6rwp2gpkjasw97lhwv2f9i32rry9l"))))
8691 (build-system r-build-system)
8692 (propagated-inputs
8693 `(("r-rhdf5lib" ,r-rhdf5lib)))
8694 (inputs
8695 `(("zlib" ,zlib)))
8696 (home-page "https://bioconductor.org/packages/rhdf5")
8697 (synopsis "HDF5 interface to R")
8698 (description
8699 "This R/Bioconductor package provides an interface between HDF5 and R.
8700 HDF5's main features are the ability to store and access very large and/or
8701 complex datasets and a wide variety of metadata on mass storage (disk) through
8702 a completely portable file format. The rhdf5 package is thus suited for the
8703 exchange of large and/or complex datasets between R and other software
8704 package, and for letting R applications work on datasets that are larger than
8705 the available RAM.")
8706 (license license:artistic2.0)))
8707
8708 (define-public r-annotationfilter
8709 (package
8710 (name "r-annotationfilter")
8711 (version "1.6.0")
8712 (source (origin
8713 (method url-fetch)
8714 (uri (bioconductor-uri "AnnotationFilter" version))
8715 (sha256
8716 (base32
8717 "0wrr10cxjzmxx46vjzq2nsf6xlqz1sqwx4xm0sk3d77ff8wmph4x"))))
8718 (properties
8719 `((upstream-name . "AnnotationFilter")))
8720 (build-system r-build-system)
8721 (propagated-inputs
8722 `(("r-genomicranges" ,r-genomicranges)
8723 ("r-lazyeval" ,r-lazyeval)))
8724 (home-page "https://github.com/Bioconductor/AnnotationFilter")
8725 (synopsis "Facilities for filtering Bioconductor annotation resources")
8726 (description
8727 "This package provides classes and other infrastructure to implement
8728 filters for manipulating Bioconductor annotation resources. The filters are
8729 used by @code{ensembldb}, @code{Organism.dplyr}, and other packages.")
8730 (license license:artistic2.0)))
8731
8732 (define-public emboss
8733 (package
8734 (name "emboss")
8735 (version "6.5.7")
8736 (source (origin
8737 (method url-fetch)
8738 (uri (string-append "ftp://emboss.open-bio.org/pub/EMBOSS/old/"
8739 (version-major+minor version) ".0/"
8740 "EMBOSS-" version ".tar.gz"))
8741 (sha256
8742 (base32
8743 "0vsmz96gc411yj2iyzdrsmg4l2n1nhgmp7vrgzlxx3xixv9xbf0q"))))
8744 (build-system gnu-build-system)
8745 (arguments
8746 `(#:configure-flags
8747 (list (string-append "--with-hpdf="
8748 (assoc-ref %build-inputs "libharu")))
8749 #:phases
8750 (modify-phases %standard-phases
8751 (add-after 'unpack 'fix-checks
8752 (lambda _
8753 ;; The PNGDRIVER tests check for the presence of libgd, libpng
8754 ;; and zlib, but assume that they are all found at the same
8755 ;; prefix.
8756 (substitute* "configure.in"
8757 (("CHECK_PNGDRIVER")
8758 "LIBS=\"$LIBS -lgd -lpng -lz -lm\"
8759 AC_DEFINE([PLD_png], [1], [Define to 1 if PNG support is available])
8760 AM_CONDITIONAL(AMPNG, true)"))
8761 #t))
8762 (add-after 'fix-checks 'disable-update-check
8763 (lambda _
8764 ;; At build time there is no connection to the Internet, so
8765 ;; looking for updates will not work.
8766 (substitute* "Makefile.am"
8767 (("\\$\\(bindir\\)/embossupdate") ""))
8768 #t))
8769 (add-after 'disable-update-check 'autogen
8770 (lambda _ (invoke "autoreconf" "-vif") #t)))))
8771 (inputs
8772 `(("perl" ,perl)
8773 ("libpng" ,libpng)
8774 ("gd" ,gd)
8775 ("libx11" ,libx11)
8776 ("libharu" ,libharu)
8777 ("zlib" ,zlib)))
8778 (native-inputs
8779 `(("autoconf" ,autoconf)
8780 ("automake" ,automake)
8781 ("libtool" ,libtool)
8782 ("pkg-config" ,pkg-config)))
8783 (home-page "http://emboss.sourceforge.net")
8784 (synopsis "Molecular biology analysis suite")
8785 (description "EMBOSS is the \"European Molecular Biology Open Software
8786 Suite\". EMBOSS is an analysis package specially developed for the needs of
8787 the molecular biology (e.g. EMBnet) user community. The software
8788 automatically copes with data in a variety of formats and even allows
8789 transparent retrieval of sequence data from the web. It also provides a
8790 number of libraries for the development of software in the field of molecular
8791 biology. EMBOSS also integrates a range of currently available packages and
8792 tools for sequence analysis into a seamless whole.")
8793 (license license:gpl2+)))
8794
8795 (define-public bits
8796 (let ((revision "1")
8797 (commit "3cc4567896d9d6442923da944beb704750a08d2d"))
8798 (package
8799 (name "bits")
8800 ;; The version is 2.13.0 even though no release archives have been
8801 ;; published as yet.
8802 (version (string-append "2.13.0-" revision "." (string-take commit 9)))
8803 (source (origin
8804 (method git-fetch)
8805 (uri (git-reference
8806 (url "https://github.com/arq5x/bits.git")
8807 (commit commit)))
8808 (file-name (string-append name "-" version "-checkout"))
8809 (sha256
8810 (base32
8811 "17n2kffk4kmhivd8c98g2vr6y1s23vbg4sxlxs689wni66797hbs"))))
8812 (build-system gnu-build-system)
8813 (arguments
8814 `(#:tests? #f ;no tests included
8815 #:phases
8816 (modify-phases %standard-phases
8817 (delete 'configure)
8818 (add-after 'unpack 'remove-cuda
8819 (lambda _
8820 (substitute* "Makefile"
8821 ((".*_cuda") "")
8822 (("(bits_test_intersections) \\\\" _ match) match))
8823 #t))
8824 (replace 'install
8825 (lambda* (#:key outputs #:allow-other-keys)
8826 (copy-recursively
8827 "bin" (string-append (assoc-ref outputs "out") "/bin"))
8828 #t)))))
8829 (inputs
8830 `(("gsl" ,gsl)
8831 ("zlib" ,zlib)))
8832 (home-page "https://github.com/arq5x/bits")
8833 (synopsis "Implementation of binary interval search algorithm")
8834 (description "This package provides an implementation of the
8835 BITS (Binary Interval Search) algorithm, an approach to interval set
8836 intersection. It is especially suited for the comparison of diverse genomic
8837 datasets and the exploration of large datasets of genome
8838 intervals (e.g. genes, sequence alignments).")
8839 (license license:gpl2))))
8840
8841 (define-public piranha
8842 ;; There is no release tarball for the latest version. The latest commit is
8843 ;; older than one year at the time of this writing.
8844 (let ((revision "1")
8845 (commit "0466d364b71117d01e4471b74c514436cc281233"))
8846 (package
8847 (name "piranha")
8848 (version (string-append "1.2.1-" revision "." (string-take commit 9)))
8849 (source (origin
8850 (method git-fetch)
8851 (uri (git-reference
8852 (url "https://github.com/smithlabcode/piranha.git")
8853 (commit commit)))
8854 (file-name (git-file-name name version))
8855 (sha256
8856 (base32
8857 "117dc0zf20c61jam69sk4abl57ah6yi6i7qra7d7y5zrbgk12q5n"))))
8858 (build-system gnu-build-system)
8859 (arguments
8860 `(#:test-target "test"
8861 #:phases
8862 (modify-phases %standard-phases
8863 (add-after 'unpack 'copy-smithlab-cpp
8864 (lambda* (#:key inputs #:allow-other-keys)
8865 (for-each (lambda (file)
8866 (install-file file "./src/smithlab_cpp/"))
8867 (find-files (assoc-ref inputs "smithlab-cpp")))
8868 #t))
8869 (add-after 'install 'install-to-store
8870 (lambda* (#:key outputs #:allow-other-keys)
8871 (let* ((out (assoc-ref outputs "out"))
8872 (bin (string-append out "/bin")))
8873 (for-each (lambda (file)
8874 (install-file file bin))
8875 (find-files "bin" ".*")))
8876 #t)))
8877 #:configure-flags
8878 (list (string-append "--with-bam_tools_headers="
8879 (assoc-ref %build-inputs "bamtools") "/include/bamtools")
8880 (string-append "--with-bam_tools_library="
8881 (assoc-ref %build-inputs "bamtools") "/lib/bamtools"))))
8882 (inputs
8883 `(("bamtools" ,bamtools)
8884 ("samtools" ,samtools-0.1)
8885 ("gsl" ,gsl)
8886 ("smithlab-cpp"
8887 ,(let ((commit "3723e2db438c51501d0423429ff396c3035ba46a"))
8888 (origin
8889 (method git-fetch)
8890 (uri (git-reference
8891 (url "https://github.com/smithlabcode/smithlab_cpp.git")
8892 (commit commit)))
8893 (file-name (string-append "smithlab_cpp-" commit "-checkout"))
8894 (sha256
8895 (base32
8896 "0l4gvbwslw5ngziskja41c00x1r06l3yidv7y0xw9djibhykzy0g")))))))
8897 (native-inputs
8898 `(("python" ,python-2)))
8899 (home-page "https://github.com/smithlabcode/piranha")
8900 (synopsis "Peak-caller for CLIP-seq and RIP-seq data")
8901 (description
8902 "Piranha is a peak-caller for genomic data produced by CLIP-seq and
8903 RIP-seq experiments. It takes input in BED or BAM format and identifies
8904 regions of statistically significant read enrichment. Additional covariates
8905 may optionally be provided to further inform the peak-calling process.")
8906 (license license:gpl3+))))
8907
8908 (define-public pepr
8909 (package
8910 (name "pepr")
8911 (version "1.0.9")
8912 (source (origin
8913 (method url-fetch)
8914 (uri (pypi-uri "PePr" version))
8915 (sha256
8916 (base32
8917 "0qxjfdpl1b1y53nccws2d85f6k74zwmx8y8sd9rszcqhfayx6gdx"))))
8918 (build-system python-build-system)
8919 (arguments
8920 `(#:python ,python-2 ; python2 only
8921 #:tests? #f)) ; no tests included
8922 (propagated-inputs
8923 `(("python2-numpy" ,python2-numpy)
8924 ("python2-scipy" ,python2-scipy)
8925 ("python2-pysam" ,python2-pysam)))
8926 (home-page "https://github.com/shawnzhangyx/PePr")
8927 (synopsis "Peak-calling and prioritization pipeline for ChIP-Seq data")
8928 (description
8929 "PePr is a ChIP-Seq peak calling or differential binding analysis tool
8930 that is primarily designed for data with biological replicates. It uses a
8931 negative binomial distribution to model the read counts among the samples in
8932 the same group, and look for consistent differences between ChIP and control
8933 group or two ChIP groups run under different conditions.")
8934 (license license:gpl3+)))
8935
8936 (define-public filevercmp
8937 (let ((commit "1a9b779b93d0b244040274794d402106907b71b7"))
8938 (package
8939 (name "filevercmp")
8940 (version (string-append "0-1." (string-take commit 7)))
8941 (source (origin
8942 (method git-fetch)
8943 (uri (git-reference
8944 (url "https://github.com/ekg/filevercmp.git")
8945 (commit commit)))
8946 (file-name (git-file-name name commit))
8947 (sha256
8948 (base32
8949 "1j9vxsy0y050v59h0q1d6501fcw1kjvj0d18l1xk2zyg0jzj247c"))))
8950 (build-system gnu-build-system)
8951 (arguments
8952 `(#:tests? #f ; There are no tests to run.
8953 #:phases
8954 (modify-phases %standard-phases
8955 (delete 'configure) ; There is no configure phase.
8956 (replace 'install
8957 (lambda* (#:key outputs #:allow-other-keys)
8958 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
8959 (install-file "filevercmp" bin)
8960 #t))))))
8961 (home-page "https://github.com/ekg/filevercmp")
8962 (synopsis "This program compares version strings")
8963 (description "This program compares version strings. It intends to be a
8964 replacement for strverscmp.")
8965 (license license:gpl3+))))
8966
8967 (define-public multiqc
8968 (package
8969 (name "multiqc")
8970 (version "1.5")
8971 (source
8972 (origin
8973 (method url-fetch)
8974 (uri (pypi-uri "multiqc" version))
8975 (sha256
8976 (base32
8977 "02iihfl0w0hpnr4pa0sbd1y9qxrg3ycyhjp5lidkcrqh1lmzs3zy"))))
8978 (build-system python-build-system)
8979 (propagated-inputs
8980 `(("python-jinja2" ,python-jinja2)
8981 ("python-simplejson" ,python-simplejson)
8982 ("python-pyyaml" ,python-pyyaml)
8983 ("python-click" ,python-click)
8984 ("python-spectra" ,python-spectra)
8985 ("python-requests" ,python-requests)
8986 ("python-markdown" ,python-markdown)
8987 ("python-lzstring" ,python-lzstring)
8988 ("python-matplotlib" ,python-matplotlib)
8989 ("python-numpy" ,python-numpy)
8990 ;; MultQC checks for the presence of nose at runtime.
8991 ("python-nose" ,python-nose)))
8992 (arguments
8993 `(#:phases
8994 (modify-phases %standard-phases
8995 (add-after 'unpack 'relax-requirements
8996 (lambda _
8997 (substitute* "setup.py"
8998 ;; MultiQC 1.5 ‘requires’ a version of python-matplotlib older
8999 ;; than the one in Guix, but should work fine with 2.2.2.
9000 ;; See <https://github.com/ewels/MultiQC/issues/725> and
9001 ;; <https://github.com/ewels/MultiQC/issues/732> for details.
9002 (("['\"]matplotlib.*?['\"]")
9003 "'matplotlib'"))
9004 #t)))))
9005 (home-page "http://multiqc.info")
9006 (synopsis "Aggregate bioinformatics analysis reports")
9007 (description
9008 "MultiQC is a tool to aggregate bioinformatics results across many
9009 samples into a single report. It contains modules for a large number of
9010 common bioinformatics tools.")
9011 (license license:gpl3+)))
9012
9013 (define-public r-chipseq
9014 (package
9015 (name "r-chipseq")
9016 (version "1.32.0")
9017 (source
9018 (origin
9019 (method url-fetch)
9020 (uri (bioconductor-uri "chipseq" version))
9021 (sha256
9022 (base32
9023 "1pp1rm5fs3hlar5x4dl3a3b4gara7qwf81dbvka6r1n78hrf9x1b"))))
9024 (build-system r-build-system)
9025 (propagated-inputs
9026 `(("r-biocgenerics" ,r-biocgenerics)
9027 ("r-genomicranges" ,r-genomicranges)
9028 ("r-iranges" ,r-iranges)
9029 ("r-lattice" ,r-lattice)
9030 ("r-s4vectors" ,r-s4vectors)
9031 ("r-shortread" ,r-shortread)))
9032 (home-page "https://bioconductor.org/packages/chipseq")
9033 (synopsis "Package for analyzing ChIPseq data")
9034 (description
9035 "This package provides tools for processing short read data from ChIPseq
9036 experiments.")
9037 (license license:artistic2.0)))
9038
9039 (define-public r-copyhelper
9040 (package
9041 (name "r-copyhelper")
9042 (version "1.6.0")
9043 (source
9044 (origin
9045 (method url-fetch)
9046 (uri (string-append "https://bioconductor.org/packages/release/"
9047 "data/experiment/src/contrib/CopyhelpeR_"
9048 version ".tar.gz"))
9049 (sha256
9050 (base32
9051 "0x7cyynjmxls9as2gg0iyp9x5fpalxmdjq914ss7i84i9zyk5bhq"))))
9052 (properties `((upstream-name . "CopyhelpeR")))
9053 (build-system r-build-system)
9054 (home-page "https://bioconductor.org/packages/CopyhelpeR/")
9055 (synopsis "Helper files for CopywriteR")
9056 (description
9057 "This package contains the helper files that are required to run the
9058 Bioconductor package CopywriteR. It contains pre-assembled 1kb bin GC-content
9059 and mappability files for the reference genomes hg18, hg19, hg38, mm9 and
9060 mm10. In addition, it contains a blacklist filter to remove regions that
9061 display copy number variation. Files are stored as GRanges objects from the
9062 GenomicRanges Bioconductor package.")
9063 (license license:gpl2)))
9064
9065 (define-public r-copywriter
9066 (package
9067 (name "r-copywriter")
9068 (version "2.14.1")
9069 (source
9070 (origin
9071 (method url-fetch)
9072 (uri (bioconductor-uri "CopywriteR" version))
9073 (sha256
9074 (base32
9075 "1hbiw0m9hmx4na9v502pxf8y5wvxzr68r4d3fqr2755gxx86qck6"))))
9076 (properties `((upstream-name . "CopywriteR")))
9077 (build-system r-build-system)
9078 (propagated-inputs
9079 `(("r-biocparallel" ,r-biocparallel)
9080 ("r-chipseq" ,r-chipseq)
9081 ("r-copyhelper" ,r-copyhelper)
9082 ("r-data-table" ,r-data-table)
9083 ("r-dnacopy" ,r-dnacopy)
9084 ("r-futile-logger" ,r-futile-logger)
9085 ("r-genomeinfodb" ,r-genomeinfodb)
9086 ("r-genomicalignments" ,r-genomicalignments)
9087 ("r-genomicranges" ,r-genomicranges)
9088 ("r-gtools" ,r-gtools)
9089 ("r-iranges" ,r-iranges)
9090 ("r-matrixstats" ,r-matrixstats)
9091 ("r-rsamtools" ,r-rsamtools)
9092 ("r-s4vectors" ,r-s4vectors)))
9093 (home-page "https://github.com/PeeperLab/CopywriteR")
9094 (synopsis "Copy number information from targeted sequencing")
9095 (description
9096 "CopywriteR extracts DNA copy number information from targeted sequencing
9097 by utilizing off-target reads. It allows for extracting uniformly distributed
9098 copy number information, can be used without reference, and can be applied to
9099 sequencing data obtained from various techniques including chromatin
9100 immunoprecipitation and target enrichment on small gene panels. Thereby,
9101 CopywriteR constitutes a widely applicable alternative to available copy
9102 number detection tools.")
9103 (license license:gpl2)))
9104
9105 (define-public r-methylkit
9106 (package
9107 (name "r-methylkit")
9108 (version "1.8.1")
9109 (source (origin
9110 (method url-fetch)
9111 (uri (bioconductor-uri "methylKit" version))
9112 (sha256
9113 (base32
9114 "1zcfwy7i10aqgnf7r0c41hakb5aai3s3n9y8pc6a98vimz51ly2z"))))
9115 (properties `((upstream-name . "methylKit")))
9116 (build-system r-build-system)
9117 (propagated-inputs
9118 `(("r-data-table" ,r-data-table)
9119 ("r-emdbook" ,r-emdbook)
9120 ("r-fastseg" ,r-fastseg)
9121 ("r-genomeinfodb" ,r-genomeinfodb)
9122 ("r-genomicranges" ,r-genomicranges)
9123 ("r-gtools" ,r-gtools)
9124 ("r-iranges" ,r-iranges)
9125 ("r-kernsmooth" ,r-kernsmooth)
9126 ("r-limma" ,r-limma)
9127 ("r-mclust" ,r-mclust)
9128 ("r-qvalue" ,r-qvalue)
9129 ("r-r-utils" ,r-r-utils)
9130 ("r-rcpp" ,r-rcpp)
9131 ("r-rhtslib" ,r-rhtslib)
9132 ("r-rsamtools" ,r-rsamtools)
9133 ("r-rtracklayer" ,r-rtracklayer)
9134 ("r-s4vectors" ,r-s4vectors)
9135 ("r-zlibbioc" ,r-zlibbioc)))
9136 (inputs
9137 `(("zlib" ,zlib)))
9138 (home-page "https://github.com/al2na/methylKit")
9139 (synopsis
9140 "DNA methylation analysis from high-throughput bisulfite sequencing results")
9141 (description
9142 "MethylKit is an R package for DNA methylation analysis and annotation
9143 from high-throughput bisulfite sequencing. The package is designed to deal
9144 with sequencing data from @dfn{Reduced representation bisulfite
9145 sequencing} (RRBS) and its variants, but also target-capture methods and whole
9146 genome bisulfite sequencing. It also has functions to analyze base-pair
9147 resolution 5hmC data from experimental protocols such as oxBS-Seq and
9148 TAB-Seq.")
9149 (license license:artistic2.0)))
9150
9151 (define-public r-sva
9152 (package
9153 (name "r-sva")
9154 (version "3.30.1")
9155 (source
9156 (origin
9157 (method url-fetch)
9158 (uri (bioconductor-uri "sva" version))
9159 (sha256
9160 (base32
9161 "0czja4c5jxa0g3fspi90nyajqmvzb29my4ykv2wi66h43f5dlwhq"))))
9162 (build-system r-build-system)
9163 (propagated-inputs
9164 `(("r-genefilter" ,r-genefilter)
9165 ("r-mgcv" ,r-mgcv)
9166 ("r-biocparallel" ,r-biocparallel)
9167 ("r-matrixstats" ,r-matrixstats)
9168 ("r-limma" ,r-limma)))
9169 (home-page "https://bioconductor.org/packages/sva")
9170 (synopsis "Surrogate variable analysis")
9171 (description
9172 "This package contains functions for removing batch effects and other
9173 unwanted variation in high-throughput experiment. It also contains functions
9174 for identifying and building surrogate variables for high-dimensional data
9175 sets. Surrogate variables are covariates constructed directly from
9176 high-dimensional data like gene expression/RNA sequencing/methylation/brain
9177 imaging data that can be used in subsequent analyses to adjust for unknown,
9178 unmodeled, or latent sources of noise.")
9179 (license license:artistic2.0)))
9180
9181 (define-public r-seqminer
9182 (package
9183 (name "r-seqminer")
9184 (version "7.1")
9185 (source
9186 (origin
9187 (method url-fetch)
9188 (uri (cran-uri "seqminer" version))
9189 (sha256
9190 (base32
9191 "1jydcpkw4rwfp983j83kipvsvr10as9pb49zzn3c2v09k1gh3ymy"))))
9192 (build-system r-build-system)
9193 (inputs
9194 `(("zlib" ,zlib)))
9195 (home-page "http://seqminer.genomic.codes")
9196 (synopsis "Read nucleotide sequence data (VCF, BCF, and METAL formats)")
9197 (description
9198 "This package provides tools to integrate nucleotide sequencing
9199 data (variant call format, e.g. VCF or BCF) or meta-analysis results in R.")
9200 ;; Any version of the GPL is acceptable
9201 (license (list license:gpl2+ license:gpl3+))))
9202
9203 (define-public r-raremetals2
9204 (package
9205 (name "r-raremetals2")
9206 (version "0.1")
9207 (source
9208 (origin
9209 (method url-fetch)
9210 (uri (string-append "http://genome.sph.umich.edu/w/images/"
9211 "b/b7/RareMETALS2_" version ".tar.gz"))
9212 (sha256
9213 (base32
9214 "0z5ljcgvnm06ja9lm85a3cniq7slxcy37aqqkxrdidr79an5fs4s"))))
9215 (properties `((upstream-name . "RareMETALS2")))
9216 (build-system r-build-system)
9217 (propagated-inputs
9218 `(("r-seqminer" ,r-seqminer)
9219 ("r-mvtnorm" ,r-mvtnorm)
9220 ("r-mass" ,r-mass)
9221 ("r-compquadform" ,r-compquadform)
9222 ("r-getopt" ,r-getopt)))
9223 (home-page "http://genome.sph.umich.edu/wiki/RareMETALS2")
9224 (synopsis "Analyze gene-level association tests for binary trait")
9225 (description
9226 "The R package rareMETALS2 is an extension of the R package rareMETALS.
9227 It was designed to meta-analyze gene-level association tests for binary trait.
9228 While rareMETALS offers a near-complete solution for meta-analysis of
9229 gene-level tests for quantitative trait, it does not offer the optimal
9230 solution for binary trait. The package rareMETALS2 offers improved features
9231 for analyzing gene-level association tests in meta-analyses for binary
9232 trait.")
9233 (license license:gpl3)))
9234
9235 (define-public r-maldiquant
9236 (package
9237 (name "r-maldiquant")
9238 (version "1.18")
9239 (source
9240 (origin
9241 (method url-fetch)
9242 (uri (cran-uri "MALDIquant" version))
9243 (sha256
9244 (base32
9245 "18nl214xjsxkcpbg79jkmw0yznwm5szyh2qb84n7ip46mm779ha6"))))
9246 (properties `((upstream-name . "MALDIquant")))
9247 (build-system r-build-system)
9248 (home-page "https://cran.r-project.org/web/packages/MALDIquant")
9249 (synopsis "Quantitative analysis of mass spectrometry data")
9250 (description
9251 "This package provides a complete analysis pipeline for matrix-assisted
9252 laser desorption/ionization-time-of-flight (MALDI-TOF) and other
9253 two-dimensional mass spectrometry data. In addition to commonly used plotting
9254 and processing methods it includes distinctive features, namely baseline
9255 subtraction methods such as morphological filters (TopHat) or the
9256 statistics-sensitive non-linear iterative peak-clipping algorithm (SNIP), peak
9257 alignment using warping functions, handling of replicated measurements as well
9258 as allowing spectra with different resolutions.")
9259 (license license:gpl3+)))
9260
9261 (define-public r-protgenerics
9262 (package
9263 (name "r-protgenerics")
9264 (version "1.14.0")
9265 (source
9266 (origin
9267 (method url-fetch)
9268 (uri (bioconductor-uri "ProtGenerics" version))
9269 (sha256
9270 (base32
9271 "053mmxhzncqgigl2iqjlq56qzimlw2zzw31wpzw19rf7rld1vi3b"))))
9272 (properties `((upstream-name . "ProtGenerics")))
9273 (build-system r-build-system)
9274 (home-page "https://github.com/lgatto/ProtGenerics")
9275 (synopsis "S4 generic functions for proteomics infrastructure")
9276 (description
9277 "This package provides S4 generic functions needed by Bioconductor
9278 proteomics packages.")
9279 (license license:artistic2.0)))
9280
9281 (define-public r-mzr
9282 (package
9283 (name "r-mzr")
9284 (version "2.16.1")
9285 (source
9286 (origin
9287 (method url-fetch)
9288 (uri (bioconductor-uri "mzR" version))
9289 (sha256
9290 (base32
9291 "0mlwg646k49klxrznckzfv54a9mz6irj42fqpaaa0xjm6cw2lwaa"))
9292 (modules '((guix build utils)))
9293 (snippet
9294 '(begin
9295 (delete-file-recursively "src/boost")
9296 #t))))
9297 (properties `((upstream-name . "mzR")))
9298 (build-system r-build-system)
9299 (arguments
9300 `(#:phases
9301 (modify-phases %standard-phases
9302 (add-after 'unpack 'use-system-boost
9303 (lambda _
9304 (substitute* "src/Makevars"
9305 (("\\./boost/libs.*") "")
9306 (("ARCH_OBJS=" line)
9307 (string-append line
9308 "\nARCH_LIBS=-lboost_system -lboost_regex \
9309 -lboost_iostreams -lboost_thread -lboost_filesystem -lboost_chrono\n")))
9310 #t)))))
9311 (inputs
9312 `(("boost" ,boost) ; use this instead of the bundled boost sources
9313 ("zlib" ,zlib)))
9314 (propagated-inputs
9315 `(("r-biobase" ,r-biobase)
9316 ("r-biocgenerics" ,r-biocgenerics)
9317 ("r-ncdf4" ,r-ncdf4)
9318 ("r-protgenerics" ,r-protgenerics)
9319 ("r-rcpp" ,r-rcpp)
9320 ("r-rhdf5lib" ,r-rhdf5lib)
9321 ("r-zlibbioc" ,r-zlibbioc)))
9322 (home-page "https://github.com/sneumann/mzR/")
9323 (synopsis "Parser for mass spectrometry data files")
9324 (description
9325 "The mzR package provides a unified API to the common file formats and
9326 parsers available for mass spectrometry data. It comes with a wrapper for the
9327 ISB random access parser for mass spectrometry mzXML, mzData and mzML files.
9328 The package contains the original code written by the ISB, and a subset of the
9329 proteowizard library for mzML and mzIdentML. The netCDF reading code has
9330 previously been used in XCMS.")
9331 (license license:artistic2.0)))
9332
9333 (define-public r-affyio
9334 (package
9335 (name "r-affyio")
9336 (version "1.52.0")
9337 (source
9338 (origin
9339 (method url-fetch)
9340 (uri (bioconductor-uri "affyio" version))
9341 (sha256
9342 (base32
9343 "1s4zp1211vf0krxzch9v3q3r6vs8hihqppq18i2fpvwlknfja7c1"))))
9344 (build-system r-build-system)
9345 (propagated-inputs
9346 `(("r-zlibbioc" ,r-zlibbioc)))
9347 (inputs
9348 `(("zlib" ,zlib)))
9349 (home-page "https://github.com/bmbolstad/affyio")
9350 (synopsis "Tools for parsing Affymetrix data files")
9351 (description
9352 "This package provides routines for parsing Affymetrix data files based
9353 upon file format information. The primary focus is on accessing the CEL and
9354 CDF file formats.")
9355 (license license:lgpl2.0+)))
9356
9357 (define-public r-affy
9358 (package
9359 (name "r-affy")
9360 (version "1.60.0")
9361 (source
9362 (origin
9363 (method url-fetch)
9364 (uri (bioconductor-uri "affy" version))
9365 (sha256
9366 (base32
9367 "0x8h4fk2igv7vykqfvf6v9whmx3344v5rf3gyfajd431xkjldz6k"))))
9368 (build-system r-build-system)
9369 (propagated-inputs
9370 `(("r-affyio" ,r-affyio)
9371 ("r-biobase" ,r-biobase)
9372 ("r-biocgenerics" ,r-biocgenerics)
9373 ("r-biocmanager" ,r-biocmanager)
9374 ("r-preprocesscore" ,r-preprocesscore)
9375 ("r-zlibbioc" ,r-zlibbioc)))
9376 (inputs
9377 `(("zlib" ,zlib)))
9378 (home-page "https://bioconductor.org/packages/affy")
9379 (synopsis "Methods for affymetrix oligonucleotide arrays")
9380 (description
9381 "This package contains functions for exploratory oligonucleotide array
9382 analysis.")
9383 (license license:lgpl2.0+)))
9384
9385 (define-public r-vsn
9386 (package
9387 (name "r-vsn")
9388 (version "3.50.0")
9389 (source
9390 (origin
9391 (method url-fetch)
9392 (uri (bioconductor-uri "vsn" version))
9393 (sha256
9394 (base32
9395 "1g6qkpykw99jm2wv2i61dg2ffwk0n8fm4s5pm2q4c024vw5c9b69"))))
9396 (build-system r-build-system)
9397 (propagated-inputs
9398 `(("r-affy" ,r-affy)
9399 ("r-biobase" ,r-biobase)
9400 ("r-ggplot2" ,r-ggplot2)
9401 ("r-lattice" ,r-lattice)
9402 ("r-limma" ,r-limma)))
9403 (home-page "https://bioconductor.org/packages/release/bioc/html/vsn.html")
9404 (synopsis "Variance stabilization and calibration for microarray data")
9405 (description
9406 "The package implements a method for normalising microarray intensities,
9407 and works for single- and multiple-color arrays. It can also be used for data
9408 from other technologies, as long as they have similar format. The method uses
9409 a robust variant of the maximum-likelihood estimator for an
9410 additive-multiplicative error model and affine calibration. The model
9411 incorporates data calibration step (a.k.a. normalization), a model for the
9412 dependence of the variance on the mean intensity and a variance stabilizing
9413 data transformation. Differences between transformed intensities are
9414 analogous to \"normalized log-ratios\". However, in contrast to the latter,
9415 their variance is independent of the mean, and they are usually more sensitive
9416 and specific in detecting differential transcription.")
9417 (license license:artistic2.0)))
9418
9419 (define-public r-mzid
9420 (package
9421 (name "r-mzid")
9422 (version "1.20.1")
9423 (source
9424 (origin
9425 (method url-fetch)
9426 (uri (bioconductor-uri "mzID" version))
9427 (sha256
9428 (base32
9429 "15yd4bdxprw3kg7zj2k652y3yr3si781iw28jqvnkm0gsc23rd0c"))))
9430 (properties `((upstream-name . "mzID")))
9431 (build-system r-build-system)
9432 (propagated-inputs
9433 `(("r-doparallel" ,r-doparallel)
9434 ("r-foreach" ,r-foreach)
9435 ("r-iterators" ,r-iterators)
9436 ("r-plyr" ,r-plyr)
9437 ("r-protgenerics" ,r-protgenerics)
9438 ("r-rcpp" ,r-rcpp)
9439 ("r-xml" ,r-xml)))
9440 (home-page "https://bioconductor.org/packages/mzID")
9441 (synopsis "Parser for mzIdentML files")
9442 (description
9443 "This package provides a parser for mzIdentML files implemented using the
9444 XML package. The parser tries to be general and able to handle all types of
9445 mzIdentML files with the drawback of having less pretty output than a vendor
9446 specific parser.")
9447 (license license:gpl2+)))
9448
9449 (define-public r-pcamethods
9450 (package
9451 (name "r-pcamethods")
9452 (version "1.74.0")
9453 (source
9454 (origin
9455 (method url-fetch)
9456 (uri (bioconductor-uri "pcaMethods" version))
9457 (sha256
9458 (base32
9459 "0ik82s9bsdj4a1mmv0a3k6yisa92mxx7maf3dvip1r8gqlm3dyng"))))
9460 (properties `((upstream-name . "pcaMethods")))
9461 (build-system r-build-system)
9462 (propagated-inputs
9463 `(("r-biobase" ,r-biobase)
9464 ("r-biocgenerics" ,r-biocgenerics)
9465 ("r-mass" ,r-mass)
9466 ("r-rcpp" ,r-rcpp)))
9467 (home-page "https://github.com/hredestig/pcamethods")
9468 (synopsis "Collection of PCA methods")
9469 (description
9470 "This package provides Bayesian PCA, Probabilistic PCA, Nipals PCA,
9471 Inverse Non-Linear PCA and the conventional SVD PCA. A cluster based method
9472 for missing value estimation is included for comparison. BPCA, PPCA and
9473 NipalsPCA may be used to perform PCA on incomplete data as well as for
9474 accurate missing value estimation. A set of methods for printing and plotting
9475 the results is also provided. All PCA methods make use of the same data
9476 structure (pcaRes) to provide a common interface to the PCA results.")
9477 (license license:gpl3+)))
9478
9479 (define-public r-msnbase
9480 (package
9481 (name "r-msnbase")
9482 (version "2.8.3")
9483 (source
9484 (origin
9485 (method url-fetch)
9486 (uri (bioconductor-uri "MSnbase" version))
9487 (sha256
9488 (base32
9489 "1kl1d7byphnfpmbl5fzbgs68dxskhpsdyx7ka51bpfn0nv3pp492"))))
9490 (properties `((upstream-name . "MSnbase")))
9491 (build-system r-build-system)
9492 (propagated-inputs
9493 `(("r-affy" ,r-affy)
9494 ("r-biobase" ,r-biobase)
9495 ("r-biocgenerics" ,r-biocgenerics)
9496 ("r-biocparallel" ,r-biocparallel)
9497 ("r-digest" ,r-digest)
9498 ("r-ggplot2" ,r-ggplot2)
9499 ("r-impute" ,r-impute)
9500 ("r-iranges" ,r-iranges)
9501 ("r-lattice" ,r-lattice)
9502 ("r-maldiquant" ,r-maldiquant)
9503 ("r-mass" ,r-mass)
9504 ("r-mzid" ,r-mzid)
9505 ("r-mzr" ,r-mzr)
9506 ("r-pcamethods" ,r-pcamethods)
9507 ("r-plyr" ,r-plyr)
9508 ("r-preprocesscore" ,r-preprocesscore)
9509 ("r-protgenerics" ,r-protgenerics)
9510 ("r-rcpp" ,r-rcpp)
9511 ("r-s4vectors" ,r-s4vectors)
9512 ("r-scales" ,r-scales)
9513 ("r-vsn" ,r-vsn)
9514 ("r-xml" ,r-xml)))
9515 (home-page "https://github.com/lgatto/MSnbase")
9516 (synopsis "Base functions and classes for MS-based proteomics")
9517 (description
9518 "This package provides basic plotting, data manipulation and processing
9519 of mass spectrometry based proteomics data.")
9520 (license license:artistic2.0)))
9521
9522 (define-public r-msnid
9523 (package
9524 (name "r-msnid")
9525 (version "1.16.1")
9526 (source
9527 (origin
9528 (method url-fetch)
9529 (uri (bioconductor-uri "MSnID" version))
9530 (sha256
9531 (base32
9532 "077n6ljcnnl7q4w0qj8v46vm4sjk9vzzfqf7wsc6lz0wmyzqdng3"))))
9533 (properties `((upstream-name . "MSnID")))
9534 (build-system r-build-system)
9535 (propagated-inputs
9536 `(("r-biobase" ,r-biobase)
9537 ("r-data-table" ,r-data-table)
9538 ("r-doparallel" ,r-doparallel)
9539 ("r-dplyr" ,r-dplyr)
9540 ("r-foreach" ,r-foreach)
9541 ("r-iterators" ,r-iterators)
9542 ("r-msnbase" ,r-msnbase)
9543 ("r-mzid" ,r-mzid)
9544 ("r-mzr" ,r-mzr)
9545 ("r-protgenerics" ,r-protgenerics)
9546 ("r-r-cache" ,r-r-cache)
9547 ("r-rcpp" ,r-rcpp)
9548 ("r-reshape2" ,r-reshape2)))
9549 (home-page "https://bioconductor.org/packages/MSnID")
9550 (synopsis "Utilities for LC-MSn proteomics identifications")
9551 (description
9552 "This package extracts @dfn{tandem mass spectrometry} (MS/MS) ID data
9553 from mzIdentML (leveraging the mzID package) or text files. After collating
9554 the search results from multiple datasets it assesses their identification
9555 quality and optimize filtering criteria to achieve the maximum number of
9556 identifications while not exceeding a specified false discovery rate. It also
9557 contains a number of utilities to explore the MS/MS results and assess missed
9558 and irregular enzymatic cleavages, mass measurement accuracy, etc.")
9559 (license license:artistic2.0)))
9560
9561 (define-public r-seurat
9562 (package
9563 (name "r-seurat")
9564 (version "2.3.4")
9565 (source (origin
9566 (method url-fetch)
9567 (uri (cran-uri "Seurat" version))
9568 (sha256
9569 (base32
9570 "0l8bv4i9nzz26mirnva10mq6pimibj24vk7vpvfypgn7xk4942hd"))))
9571 (properties `((upstream-name . "Seurat")))
9572 (build-system r-build-system)
9573 (propagated-inputs
9574 `(("r-ape" ,r-ape)
9575 ("r-cluster" ,r-cluster)
9576 ("r-cowplot" ,r-cowplot)
9577 ("r-dosnow" ,r-dosnow)
9578 ("r-dplyr" ,r-dplyr)
9579 ("r-dtw" ,r-dtw)
9580 ("r-fitdistrplus" ,r-fitdistrplus)
9581 ("r-foreach" ,r-foreach)
9582 ("r-fpc" ,r-fpc)
9583 ("r-ggplot2" ,r-ggplot2)
9584 ("r-ggridges" ,r-ggridges)
9585 ("r-gplots" ,r-gplots)
9586 ("r-hdf5r" ,r-hdf5r)
9587 ("r-hmisc" ,r-hmisc)
9588 ("r-httr" ,r-httr)
9589 ("r-ica" ,r-ica)
9590 ("r-igraph" ,r-igraph)
9591 ("r-irlba" ,r-irlba)
9592 ("r-lars" ,r-lars)
9593 ("r-lmtest" ,r-lmtest)
9594 ("r-mass" ,r-mass)
9595 ("r-matrix" ,r-matrix)
9596 ("r-metap" ,r-metap)
9597 ("r-mixtools" ,r-mixtools)
9598 ("r-pbapply" ,r-pbapply)
9599 ("r-plotly" ,r-plotly)
9600 ("r-png" ,r-png)
9601 ("r-rann" ,r-rann)
9602 ("r-rcolorbrewer" ,r-rcolorbrewer)
9603 ("r-rcpp" ,r-rcpp)
9604 ("r-rcppeigen" ,r-rcppeigen)
9605 ("r-rcppprogress" ,r-rcppprogress)
9606 ("r-reshape2" ,r-reshape2)
9607 ("r-reticulate" ,r-reticulate)
9608 ("r-rocr" ,r-rocr)
9609 ("r-rtsne" ,r-rtsne)
9610 ("r-sdmtools" ,r-sdmtools)
9611 ("r-tidyr" ,r-tidyr)
9612 ("r-tsne" ,r-tsne)))
9613 (home-page "http://www.satijalab.org/seurat")
9614 (synopsis "Seurat is an R toolkit for single cell genomics")
9615 (description
9616 "This package is an R package designed for QC, analysis, and
9617 exploration of single cell RNA-seq data. It easily enables widely-used
9618 analytical techniques, including the identification of highly variable genes,
9619 dimensionality reduction; PCA, ICA, t-SNE, standard unsupervised clustering
9620 algorithms; density clustering, hierarchical clustering, k-means, and the
9621 discovery of differentially expressed genes and markers.")
9622 (license license:gpl3)))
9623
9624 (define-public r-aroma-light
9625 (package
9626 (name "r-aroma-light")
9627 (version "3.12.0")
9628 (source
9629 (origin
9630 (method url-fetch)
9631 (uri (bioconductor-uri "aroma.light" version))
9632 (sha256
9633 (base32
9634 "0vfifgpqxjjncbiv6gvlk9jmj14j90r9f30bqk3ks9v1csjnjhrb"))))
9635 (properties `((upstream-name . "aroma.light")))
9636 (build-system r-build-system)
9637 (propagated-inputs
9638 `(("r-matrixstats" ,r-matrixstats)
9639 ("r-r-methodss3" ,r-r-methodss3)
9640 ("r-r-oo" ,r-r-oo)
9641 ("r-r-utils" ,r-r-utils)))
9642 (home-page "https://github.com/HenrikBengtsson/aroma.light")
9643 (synopsis "Methods for normalization and visualization of microarray data")
9644 (description
9645 "This package provides methods for microarray analysis that take basic
9646 data types such as matrices and lists of vectors. These methods can be used
9647 standalone, be utilized in other packages, or be wrapped up in higher-level
9648 classes.")
9649 (license license:gpl2+)))
9650
9651 (define-public r-deseq
9652 (package
9653 (name "r-deseq")
9654 (version "1.34.1")
9655 (source
9656 (origin
9657 (method url-fetch)
9658 (uri (bioconductor-uri "DESeq" version))
9659 (sha256
9660 (base32
9661 "0bpiixczbhlyaiinpbl6xrpmv72k2bq76bxnw06gl35m4pgs94p2"))))
9662 (properties `((upstream-name . "DESeq")))
9663 (build-system r-build-system)
9664 (propagated-inputs
9665 `(("r-biobase" ,r-biobase)
9666 ("r-biocgenerics" ,r-biocgenerics)
9667 ("r-genefilter" ,r-genefilter)
9668 ("r-geneplotter" ,r-geneplotter)
9669 ("r-lattice" ,r-lattice)
9670 ("r-locfit" ,r-locfit)
9671 ("r-mass" ,r-mass)
9672 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9673 (home-page "http://www-huber.embl.de/users/anders/DESeq")
9674 (synopsis "Differential gene expression analysis")
9675 (description
9676 "This package provides tools for estimating variance-mean dependence in
9677 count data from high-throughput genetic sequencing assays and for testing for
9678 differential expression based on a model using the negative binomial
9679 distribution.")
9680 (license license:gpl3+)))
9681
9682 (define-public r-edaseq
9683 (package
9684 (name "r-edaseq")
9685 (version "2.16.3")
9686 (source
9687 (origin
9688 (method url-fetch)
9689 (uri (bioconductor-uri "EDASeq" version))
9690 (sha256
9691 (base32
9692 "0559ph606ps2g9bwbl0a2knkcs5w581n9igngpjxvk5p56k24gb5"))))
9693 (properties `((upstream-name . "EDASeq")))
9694 (build-system r-build-system)
9695 (propagated-inputs
9696 `(("r-annotationdbi" ,r-annotationdbi)
9697 ("r-aroma-light" ,r-aroma-light)
9698 ("r-biobase" ,r-biobase)
9699 ("r-biocgenerics" ,r-biocgenerics)
9700 ("r-biocmanager" ,r-biocmanager)
9701 ("r-biomart" ,r-biomart)
9702 ("r-biostrings" ,r-biostrings)
9703 ("r-deseq" ,r-deseq)
9704 ("r-genomicfeatures" ,r-genomicfeatures)
9705 ("r-genomicranges" ,r-genomicranges)
9706 ("r-iranges" ,r-iranges)
9707 ("r-rsamtools" ,r-rsamtools)
9708 ("r-shortread" ,r-shortread)))
9709 (home-page "https://github.com/drisso/EDASeq")
9710 (synopsis "Exploratory data analysis and normalization for RNA-Seq")
9711 (description
9712 "This package provides support for numerical and graphical summaries of
9713 RNA-Seq genomic read data. Provided within-lane normalization procedures to
9714 adjust for GC-content effect (or other gene-level effects) on read counts:
9715 loess robust local regression, global-scaling, and full-quantile
9716 normalization. Between-lane normalization procedures to adjust for
9717 distributional differences between lanes (e.g., sequencing depth):
9718 global-scaling and full-quantile normalization.")
9719 (license license:artistic2.0)))
9720
9721 (define-public r-interactivedisplaybase
9722 (package
9723 (name "r-interactivedisplaybase")
9724 (version "1.20.0")
9725 (source
9726 (origin
9727 (method url-fetch)
9728 (uri (bioconductor-uri "interactiveDisplayBase" version))
9729 (sha256
9730 (base32
9731 "04xz3dkwan2s5ic1mwkdfnggm0l41mgqfagx160bcsrpkw6z7ark"))))
9732 (properties
9733 `((upstream-name . "interactiveDisplayBase")))
9734 (build-system r-build-system)
9735 (propagated-inputs
9736 `(("r-biocgenerics" ,r-biocgenerics)
9737 ("r-shiny" ,r-shiny)))
9738 (home-page "https://bioconductor.org/packages/interactiveDisplayBase")
9739 (synopsis "Base package for web displays of Bioconductor objects")
9740 (description
9741 "This package contains the basic methods needed to generate interactive
9742 Shiny-based display methods for Bioconductor objects.")
9743 (license license:artistic2.0)))
9744
9745 (define-public r-annotationhub
9746 (package
9747 (name "r-annotationhub")
9748 (version "2.14.2")
9749 (source
9750 (origin
9751 (method url-fetch)
9752 (uri (bioconductor-uri "AnnotationHub" version))
9753 (sha256
9754 (base32
9755 "17fgrvcnbii9siv5rq5j09bxhqffx47f6jf10418qvr7hh61ic1g"))))
9756 (properties `((upstream-name . "AnnotationHub")))
9757 (build-system r-build-system)
9758 (propagated-inputs
9759 `(("r-annotationdbi" ,r-annotationdbi)
9760 ("r-biocgenerics" ,r-biocgenerics)
9761 ("r-biocmanager" ,r-biocmanager)
9762 ("r-curl" ,r-curl)
9763 ("r-httr" ,r-httr)
9764 ("r-interactivedisplaybase" ,r-interactivedisplaybase)
9765 ("r-rsqlite" ,r-rsqlite)
9766 ("r-s4vectors" ,r-s4vectors)
9767 ("r-yaml" ,r-yaml)))
9768 (home-page "https://bioconductor.org/packages/AnnotationHub")
9769 (synopsis "Client to access AnnotationHub resources")
9770 (description
9771 "This package provides a client for the Bioconductor AnnotationHub web
9772 resource. The AnnotationHub web resource provides a central location where
9773 genomic files (e.g. VCF, bed, wig) and other resources from standard
9774 locations (e.g. UCSC, Ensembl) can be discovered. The resource includes
9775 metadata about each resource, e.g., a textual description, tags, and date of
9776 modification. The client creates and manages a local cache of files retrieved
9777 by the user, helping with quick and reproducible access.")
9778 (license license:artistic2.0)))
9779
9780 (define-public r-fastseg
9781 (package
9782 (name "r-fastseg")
9783 (version "1.28.0")
9784 (source
9785 (origin
9786 (method url-fetch)
9787 (uri (bioconductor-uri "fastseg" version))
9788 (sha256
9789 (base32
9790 "1l8mdjpfpgwqdss2ywjkb8b4h55wf8v6kmyxdlvy04ds2hj16sb1"))))
9791 (build-system r-build-system)
9792 (propagated-inputs
9793 `(("r-biobase" ,r-biobase)
9794 ("r-biocgenerics" ,r-biocgenerics)
9795 ("r-genomicranges" ,r-genomicranges)
9796 ("r-iranges" ,r-iranges)
9797 ("r-s4vectors" ,r-s4vectors)))
9798 (home-page "http://www.bioinf.jku.at/software/fastseg/index.html")
9799 (synopsis "Fast segmentation algorithm for genetic sequencing data")
9800 (description
9801 "Fastseg implements a very fast and efficient segmentation algorithm.
9802 It can segment data from DNA microarrays and data from next generation
9803 sequencing for example to detect copy number segments. Further it can segment
9804 data from RNA microarrays like tiling arrays to identify transcripts. Most
9805 generally, it can segment data given as a matrix or as a vector. Various data
9806 formats can be used as input to fastseg like expression set objects for
9807 microarrays or GRanges for sequencing data.")
9808 (license license:lgpl2.0+)))
9809
9810 (define-public r-keggrest
9811 (package
9812 (name "r-keggrest")
9813 (version "1.22.0")
9814 (source
9815 (origin
9816 (method url-fetch)
9817 (uri (bioconductor-uri "KEGGREST" version))
9818 (sha256
9819 (base32
9820 "0blpd5a7whd2sswfhqd17h58hg06ymaf80gapdr9ja43hnnlj309"))))
9821 (properties `((upstream-name . "KEGGREST")))
9822 (build-system r-build-system)
9823 (propagated-inputs
9824 `(("r-biostrings" ,r-biostrings)
9825 ("r-httr" ,r-httr)
9826 ("r-png" ,r-png)))
9827 (home-page "https://bioconductor.org/packages/KEGGREST")
9828 (synopsis "Client-side REST access to KEGG")
9829 (description
9830 "This package provides a package that provides a client interface to the
9831 @dfn{Kyoto Encyclopedia of Genes and Genomes} (KEGG) REST server.")
9832 (license license:artistic2.0)))
9833
9834 (define-public r-gage
9835 (package
9836 (name "r-gage")
9837 (version "2.32.1")
9838 (source
9839 (origin
9840 (method url-fetch)
9841 (uri (bioconductor-uri "gage" version))
9842 (sha256
9843 (base32
9844 "02g796sb1800ff0f1mq9f2m5wwzpf8pnfzajs49i68dhq2hm01a8"))))
9845 (build-system r-build-system)
9846 (propagated-inputs
9847 `(("r-annotationdbi" ,r-annotationdbi)
9848 ("r-graph" ,r-graph)
9849 ("r-keggrest" ,r-keggrest)))
9850 (home-page "http://www.biomedcentral.com/1471-2105/10/161")
9851 (synopsis "Generally applicable gene-set enrichment for pathway analysis")
9852 (description
9853 "GAGE is a published method for gene set (enrichment or GSEA) or pathway
9854 analysis. GAGE is generally applicable independent of microarray or RNA-Seq
9855 data attributes including sample sizes, experimental designs, assay platforms,
9856 and other types of heterogeneity. The gage package provides functions for
9857 basic GAGE analysis, result processing and presentation. In addition, it
9858 provides demo microarray data and commonly used gene set data based on KEGG
9859 pathways and GO terms. These funtions and data are also useful for gene set
9860 analysis using other methods.")
9861 (license license:gpl2+)))
9862
9863 (define-public r-genomicfiles
9864 (package
9865 (name "r-genomicfiles")
9866 (version "1.18.0")
9867 (source
9868 (origin
9869 (method url-fetch)
9870 (uri (bioconductor-uri "GenomicFiles" version))
9871 (sha256
9872 (base32
9873 "0qf2yj4lfnnk64fk125n8sqms01shfqiik04nasx2z3k129ykpxp"))))
9874 (properties `((upstream-name . "GenomicFiles")))
9875 (build-system r-build-system)
9876 (propagated-inputs
9877 `(("r-biocgenerics" ,r-biocgenerics)
9878 ("r-biocparallel" ,r-biocparallel)
9879 ("r-genomeinfodb" ,r-genomeinfodb)
9880 ("r-genomicalignments" ,r-genomicalignments)
9881 ("r-genomicranges" ,r-genomicranges)
9882 ("r-iranges" ,r-iranges)
9883 ("r-rsamtools" ,r-rsamtools)
9884 ("r-rtracklayer" ,r-rtracklayer)
9885 ("r-s4vectors" ,r-s4vectors)
9886 ("r-summarizedexperiment" ,r-summarizedexperiment)
9887 ("r-variantannotation" ,r-variantannotation)))
9888 (home-page "https://bioconductor.org/packages/GenomicFiles")
9889 (synopsis "Distributed computing by file or by range")
9890 (description
9891 "This package provides infrastructure for parallel computations
9892 distributed by file or by range. User defined mapper and reducer functions
9893 provide added flexibility for data combination and manipulation.")
9894 (license license:artistic2.0)))
9895
9896 (define-public r-complexheatmap
9897 (package
9898 (name "r-complexheatmap")
9899 (version "1.20.0")
9900 (source
9901 (origin
9902 (method url-fetch)
9903 (uri (bioconductor-uri "ComplexHeatmap" version))
9904 (sha256
9905 (base32
9906 "0s01dzcfj1lmpqfpsbqw7r4858krfzy499lz4cwx4fq3mbyvy2aj"))))
9907 (properties
9908 `((upstream-name . "ComplexHeatmap")))
9909 (build-system r-build-system)
9910 (propagated-inputs
9911 `(("r-circlize" ,r-circlize)
9912 ("r-colorspace" ,r-colorspace)
9913 ("r-getoptlong" ,r-getoptlong)
9914 ("r-globaloptions" ,r-globaloptions)
9915 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9916 (home-page
9917 "https://github.com/jokergoo/ComplexHeatmap")
9918 (synopsis "Making Complex Heatmaps")
9919 (description
9920 "Complex heatmaps are efficient to visualize associations between
9921 different sources of data sets and reveal potential structures. This package
9922 provides a highly flexible way to arrange multiple heatmaps and supports
9923 self-defined annotation graphics.")
9924 (license license:gpl2+)))
9925
9926 (define-public r-dirichletmultinomial
9927 (package
9928 (name "r-dirichletmultinomial")
9929 (version "1.24.1")
9930 (source
9931 (origin
9932 (method url-fetch)
9933 (uri (bioconductor-uri "DirichletMultinomial" version))
9934 (sha256
9935 (base32
9936 "0vazfjzqy78p5g7dnv30lbqbj4bhq4zafd2wh6gdwy2il1fd78xa"))))
9937 (properties
9938 `((upstream-name . "DirichletMultinomial")))
9939 (build-system r-build-system)
9940 (inputs
9941 `(("gsl" ,gsl)))
9942 (propagated-inputs
9943 `(("r-biocgenerics" ,r-biocgenerics)
9944 ("r-iranges" ,r-iranges)
9945 ("r-s4vectors" ,r-s4vectors)))
9946 (home-page "https://bioconductor.org/packages/DirichletMultinomial")
9947 (synopsis "Dirichlet-Multinomial mixture models for microbiome data")
9948 (description
9949 "Dirichlet-multinomial mixture models can be used to describe variability
9950 in microbial metagenomic data. This package is an interface to code
9951 originally made available by Holmes, Harris, and Quince, 2012, PLoS ONE 7(2):
9952 1-15.")
9953 (license license:lgpl3)))
9954
9955 (define-public r-ensembldb
9956 (package
9957 (name "r-ensembldb")
9958 (version "2.6.3")
9959 (source
9960 (origin
9961 (method url-fetch)
9962 (uri (bioconductor-uri "ensembldb" version))
9963 (sha256
9964 (base32
9965 "0kzdsfk6mdwlp57sw4j2cf7lx5nc67v5j0xr3iag9kzmgikaq1lb"))))
9966 (build-system r-build-system)
9967 (propagated-inputs
9968 `(("r-annotationdbi" ,r-annotationdbi)
9969 ("r-annotationfilter" ,r-annotationfilter)
9970 ("r-biobase" ,r-biobase)
9971 ("r-biocgenerics" ,r-biocgenerics)
9972 ("r-biostrings" ,r-biostrings)
9973 ("r-curl" ,r-curl)
9974 ("r-dbi" ,r-dbi)
9975 ("r-genomeinfodb" ,r-genomeinfodb)
9976 ("r-genomicfeatures" ,r-genomicfeatures)
9977 ("r-genomicranges" ,r-genomicranges)
9978 ("r-iranges" ,r-iranges)
9979 ("r-protgenerics" ,r-protgenerics)
9980 ("r-rsamtools" ,r-rsamtools)
9981 ("r-rsqlite" ,r-rsqlite)
9982 ("r-rtracklayer" ,r-rtracklayer)
9983 ("r-s4vectors" ,r-s4vectors)))
9984 (home-page "https://github.com/jotsetung/ensembldb")
9985 (synopsis "Utilities to create and use Ensembl-based annotation databases")
9986 (description
9987 "The package provides functions to create and use transcript-centric
9988 annotation databases/packages. The annotation for the databases are directly
9989 fetched from Ensembl using their Perl API. The functionality and data is
9990 similar to that of the TxDb packages from the @code{GenomicFeatures} package,
9991 but, in addition to retrieve all gene/transcript models and annotations from
9992 the database, the @code{ensembldb} package also provides a filter framework
9993 allowing to retrieve annotations for specific entries like genes encoded on a
9994 chromosome region or transcript models of lincRNA genes.")
9995 ;; No version specified
9996 (license license:lgpl3+)))
9997
9998 (define-public r-organismdbi
9999 (package
10000 (name "r-organismdbi")
10001 (version "1.24.0")
10002 (source
10003 (origin
10004 (method url-fetch)
10005 (uri (bioconductor-uri "OrganismDbi" version))
10006 (sha256
10007 (base32
10008 "11pyv56cy4iy095h40k6k0mpjdlh6gsb4ld3s57nfa9nd4ypx3yi"))))
10009 (properties `((upstream-name . "OrganismDbi")))
10010 (build-system r-build-system)
10011 (propagated-inputs
10012 `(("r-annotationdbi" ,r-annotationdbi)
10013 ("r-biobase" ,r-biobase)
10014 ("r-biocgenerics" ,r-biocgenerics)
10015 ("r-biocmanager" ,r-biocmanager)
10016 ("r-dbi" ,r-dbi)
10017 ("r-genomicfeatures" ,r-genomicfeatures)
10018 ("r-genomicranges" ,r-genomicranges)
10019 ("r-graph" ,r-graph)
10020 ("r-iranges" ,r-iranges)
10021 ("r-rbgl" ,r-rbgl)
10022 ("r-s4vectors" ,r-s4vectors)))
10023 (home-page "https://bioconductor.org/packages/OrganismDbi")
10024 (synopsis "Software to enable the smooth interfacing of database packages")
10025 (description "The package enables a simple unified interface to several
10026 annotation packages each of which has its own schema by taking advantage of
10027 the fact that each of these packages implements a select methods.")
10028 (license license:artistic2.0)))
10029
10030 (define-public r-biovizbase
10031 (package
10032 (name "r-biovizbase")
10033 (version "1.30.1")
10034 (source
10035 (origin
10036 (method url-fetch)
10037 (uri (bioconductor-uri "biovizBase" version))
10038 (sha256
10039 (base32
10040 "0v5gvcx180qn5487i1dph9abadw3ggqwp5yzy41jswzbdc8q6sbm"))))
10041 (properties `((upstream-name . "biovizBase")))
10042 (build-system r-build-system)
10043 (propagated-inputs
10044 `(("r-annotationdbi" ,r-annotationdbi)
10045 ("r-annotationfilter" ,r-annotationfilter)
10046 ("r-biocgenerics" ,r-biocgenerics)
10047 ("r-biostrings" ,r-biostrings)
10048 ("r-dichromat" ,r-dichromat)
10049 ("r-ensembldb" ,r-ensembldb)
10050 ("r-genomeinfodb" ,r-genomeinfodb)
10051 ("r-genomicalignments" ,r-genomicalignments)
10052 ("r-genomicfeatures" ,r-genomicfeatures)
10053 ("r-genomicranges" ,r-genomicranges)
10054 ("r-hmisc" ,r-hmisc)
10055 ("r-iranges" ,r-iranges)
10056 ("r-rcolorbrewer" ,r-rcolorbrewer)
10057 ("r-rlang" ,r-rlang)
10058 ("r-rsamtools" ,r-rsamtools)
10059 ("r-s4vectors" ,r-s4vectors)
10060 ("r-scales" ,r-scales)
10061 ("r-summarizedexperiment" ,r-summarizedexperiment)
10062 ("r-variantannotation" ,r-variantannotation)))
10063 (home-page "https://bioconductor.org/packages/biovizBase")
10064 (synopsis "Basic graphic utilities for visualization of genomic data")
10065 (description
10066 "The biovizBase package is designed to provide a set of utilities, color
10067 schemes and conventions for genomic data. It serves as the base for various
10068 high-level packages for biological data visualization. This saves development
10069 effort and encourages consistency.")
10070 (license license:artistic2.0)))
10071
10072 (define-public r-ggbio
10073 (package
10074 (name "r-ggbio")
10075 (version "1.30.0")
10076 (source
10077 (origin
10078 (method url-fetch)
10079 (uri (bioconductor-uri "ggbio" version))
10080 (sha256
10081 (base32
10082 "0wq49qqzkcn8s19xgaxf2s1j1a563d7pbhhvris6fhxfdjsz4934"))))
10083 (build-system r-build-system)
10084 (propagated-inputs
10085 `(("r-annotationdbi" ,r-annotationdbi)
10086 ("r-annotationfilter" ,r-annotationfilter)
10087 ("r-biobase" ,r-biobase)
10088 ("r-biocgenerics" ,r-biocgenerics)
10089 ("r-biostrings" ,r-biostrings)
10090 ("r-biovizbase" ,r-biovizbase)
10091 ("r-bsgenome" ,r-bsgenome)
10092 ("r-ensembldb" ,r-ensembldb)
10093 ("r-genomeinfodb" ,r-genomeinfodb)
10094 ("r-genomicalignments" ,r-genomicalignments)
10095 ("r-genomicfeatures" ,r-genomicfeatures)
10096 ("r-genomicranges" ,r-genomicranges)
10097 ("r-ggally" ,r-ggally)
10098 ("r-ggplot2" ,r-ggplot2)
10099 ("r-gridextra" ,r-gridextra)
10100 ("r-gtable" ,r-gtable)
10101 ("r-hmisc" ,r-hmisc)
10102 ("r-iranges" ,r-iranges)
10103 ("r-organismdbi" ,r-organismdbi)
10104 ("r-reshape2" ,r-reshape2)
10105 ("r-rlang" ,r-rlang)
10106 ("r-rsamtools" ,r-rsamtools)
10107 ("r-rtracklayer" ,r-rtracklayer)
10108 ("r-s4vectors" ,r-s4vectors)
10109 ("r-scales" ,r-scales)
10110 ("r-summarizedexperiment" ,r-summarizedexperiment)
10111 ("r-variantannotation" ,r-variantannotation)))
10112 (home-page "http://www.tengfei.name/ggbio/")
10113 (synopsis "Visualization tools for genomic data")
10114 (description
10115 "The ggbio package extends and specializes the grammar of graphics for
10116 biological data. The graphics are designed to answer common scientific
10117 questions, in particular those often asked of high throughput genomics data.
10118 All core Bioconductor data structures are supported, where appropriate. The
10119 package supports detailed views of particular genomic regions, as well as
10120 genome-wide overviews. Supported overviews include ideograms and grand linear
10121 views. High-level plots include sequence fragment length, edge-linked
10122 interval to data view, mismatch pileup, and several splicing summaries.")
10123 (license license:artistic2.0)))
10124
10125 (define-public r-gprofiler
10126 (package
10127 (name "r-gprofiler")
10128 (version "0.6.7")
10129 (source
10130 (origin
10131 (method url-fetch)
10132 (uri (cran-uri "gProfileR" version))
10133 (sha256
10134 (base32
10135 "12nwidbnqmnfy5dnqga26byslvdnkrpz2fi19qfcby6xx0wbndk7"))))
10136 (properties `((upstream-name . "gProfileR")))
10137 (build-system r-build-system)
10138 (propagated-inputs
10139 `(("r-plyr" ,r-plyr)
10140 ("r-rcurl" ,r-rcurl)))
10141 (home-page "https://cran.r-project.org/web/packages/gProfileR/")
10142 (synopsis "Interface to the g:Profiler toolkit")
10143 (description
10144 "This package provides tools for functional enrichment analysis,
10145 gene identifier conversion and mapping homologous genes across related
10146 organisms via the @code{g:Profiler} toolkit.")
10147 (license license:gpl2+)))
10148
10149 (define-public r-gqtlbase
10150 (package
10151 (name "r-gqtlbase")
10152 (version "1.14.0")
10153 (source
10154 (origin
10155 (method url-fetch)
10156 (uri (bioconductor-uri "gQTLBase" version))
10157 (sha256
10158 (base32
10159 "1lbk1m1mkvbk30flk5pf3pcrnm2s0sj5r48kbjgad39dsvd8zgqx"))))
10160 (properties `((upstream-name . "gQTLBase")))
10161 (build-system r-build-system)
10162 (propagated-inputs
10163 `(("r-batchjobs" ,r-batchjobs)
10164 ("r-bbmisc" ,r-bbmisc)
10165 ("r-biocgenerics" ,r-biocgenerics)
10166 ("r-bit" ,r-bit)
10167 ("r-doparallel" ,r-doparallel)
10168 ("r-ff" ,r-ff)
10169 ("r-ffbase" ,r-ffbase)
10170 ("r-foreach" ,r-foreach)
10171 ("r-genomicfiles" ,r-genomicfiles)
10172 ("r-genomicranges" ,r-genomicranges)
10173 ("r-rtracklayer" ,r-rtracklayer)
10174 ("r-s4vectors" ,r-s4vectors)
10175 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10176 (home-page "https://bioconductor.org/packages/gQTLBase")
10177 (synopsis "Infrastructure for eQTL, mQTL and similar studies")
10178 (description
10179 "The purpose of this package is to simplify the storage and interrogation
10180 of @dfn{quantitative trait loci} (QTL) archives, such as eQTL, mQTL, dsQTL,
10181 and more.")
10182 (license license:artistic2.0)))
10183
10184 (define-public r-snpstats
10185 (package
10186 (name "r-snpstats")
10187 (version "1.32.0")
10188 (source
10189 (origin
10190 (method url-fetch)
10191 (uri (bioconductor-uri "snpStats" version))
10192 (sha256
10193 (base32
10194 "1pplx4pf9bqi7v5v1l74yknc1s61carvbqkf327ky7vbvp0bck33"))))
10195 (properties `((upstream-name . "snpStats")))
10196 (build-system r-build-system)
10197 (inputs `(("zlib" ,zlib)))
10198 (propagated-inputs
10199 `(("r-biocgenerics" ,r-biocgenerics)
10200 ("r-matrix" ,r-matrix)
10201 ("r-survival" ,r-survival)
10202 ("r-zlibbioc" ,r-zlibbioc)))
10203 (home-page "https://bioconductor.org/packages/snpStats")
10204 (synopsis "Methods for SNP association studies")
10205 (description
10206 "This package provides classes and statistical methods for large
10207 @dfn{single-nucleotide polymorphism} (SNP) association studies. This extends
10208 the earlier snpMatrix package, allowing for uncertainty in genotypes.")
10209 (license license:gpl3)))
10210
10211 (define-public r-homo-sapiens
10212 (package
10213 (name "r-homo-sapiens")
10214 (version "1.3.1")
10215 (source (origin
10216 (method url-fetch)
10217 ;; We cannot use bioconductor-uri here because this tarball is
10218 ;; located under "data/annotation/" instead of "bioc/".
10219 (uri (string-append "http://www.bioconductor.org/packages/"
10220 "release/data/annotation/src/contrib/"
10221 "Homo.sapiens_"
10222 version ".tar.gz"))
10223 (sha256
10224 (base32
10225 "151vj7h5p1c8yd5swrchk46z469p135wk50hvkl0nhgndvy0jj01"))))
10226 (properties
10227 `((upstream-name . "Homo.sapiens")))
10228 (build-system r-build-system)
10229 (propagated-inputs
10230 `(("r-genomicfeatures" ,r-genomicfeatures)
10231 ("r-go-db" ,r-go-db)
10232 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
10233 ("r-txdb-hsapiens-ucsc-hg19-knowngene" ,r-txdb-hsapiens-ucsc-hg19-knowngene)
10234 ("r-organismdbi" ,r-organismdbi)
10235 ("r-annotationdbi" ,r-annotationdbi)))
10236 (home-page "https://bioconductor.org/packages/Homo.sapiens/")
10237 (synopsis "Annotation package for the Homo.sapiens object")
10238 (description
10239 "This package contains the Homo.sapiens object to access data from
10240 several related annotation packages.")
10241 (license license:artistic2.0)))
10242
10243 (define-public r-erma
10244 (package
10245 (name "r-erma")
10246 (version "0.14.0")
10247 (source
10248 (origin
10249 (method url-fetch)
10250 (uri (bioconductor-uri "erma" version))
10251 (sha256
10252 (base32
10253 "0hj9iz904rr1y66442lkxjywkw1ydyxxlhmjirawbf09ic5ad4g9"))))
10254 (build-system r-build-system)
10255 (propagated-inputs
10256 `(("r-annotationdbi" ,r-annotationdbi)
10257 ("r-biobase" ,r-biobase)
10258 ("r-biocgenerics" ,r-biocgenerics)
10259 ("r-biocparallel" ,r-biocparallel)
10260 ("r-genomeinfodb" ,r-genomeinfodb)
10261 ("r-genomicfiles" ,r-genomicfiles)
10262 ("r-genomicranges" ,r-genomicranges)
10263 ("r-ggplot2" ,r-ggplot2)
10264 ("r-homo-sapiens" ,r-homo-sapiens)
10265 ("r-iranges" ,r-iranges)
10266 ("r-rtracklayer" ,r-rtracklayer)
10267 ("r-s4vectors" ,r-s4vectors)
10268 ("r-shiny" ,r-shiny)
10269 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10270 (home-page "https://bioconductor.org/packages/erma")
10271 (synopsis "Epigenomic road map adventures")
10272 (description
10273 "The epigenomics road map describes locations of epigenetic marks in DNA
10274 from a variety of cell types. Of interest are locations of histone
10275 modifications, sites of DNA methylation, and regions of accessible chromatin.
10276 This package presents a selection of elements of the road map including
10277 metadata and outputs of the ChromImpute procedure applied to ENCODE cell lines
10278 by Ernst and Kellis.")
10279 (license license:artistic2.0)))
10280
10281 (define-public r-ldblock
10282 (package
10283 (name "r-ldblock")
10284 (version "1.12.0")
10285 (source
10286 (origin
10287 (method url-fetch)
10288 (uri (bioconductor-uri "ldblock" version))
10289 (sha256
10290 (base32
10291 "0xbf4pmhrk5fnd1iz5wzjvdr75v114bwpznhcig4wiqmxc27sips"))))
10292 (build-system r-build-system)
10293 (propagated-inputs
10294 `(("r-biocgenerics" ,r-biocgenerics)
10295 ("r-erma" ,r-erma)
10296 ("r-genomeinfodb" ,r-genomeinfodb)
10297 ("r-genomicfiles" ,r-genomicfiles)
10298 ("r-go-db" ,r-go-db)
10299 ("r-homo-sapiens" ,r-homo-sapiens)
10300 ("r-matrix" ,r-matrix)
10301 ("r-rsamtools" ,r-rsamtools)
10302 ("r-snpstats" ,r-snpstats)
10303 ("r-variantannotation" ,r-variantannotation)))
10304 (home-page "https://bioconductor.org/packages/ldblock")
10305 (synopsis "Data structures for linkage disequilibrium measures in populations")
10306 (description
10307 "This package defines data structures for @dfn{linkage
10308 disequilibrium} (LD) measures in populations. Its purpose is to simplify
10309 handling of existing population-level data for the purpose of flexibly
10310 defining LD blocks.")
10311 (license license:artistic2.0)))
10312
10313 (define-public r-gqtlstats
10314 (package
10315 (name "r-gqtlstats")
10316 (version "1.14.0")
10317 (source
10318 (origin
10319 (method url-fetch)
10320 (uri (bioconductor-uri "gQTLstats" version))
10321 (sha256
10322 (base32
10323 "1sg9kw59dlayj7qxql9pd93d4hmml504sa3kkfpzfh3xri7m5pxf"))))
10324 (properties `((upstream-name . "gQTLstats")))
10325 (build-system r-build-system)
10326 (propagated-inputs
10327 `(("r-annotationdbi" ,r-annotationdbi)
10328 ("r-batchjobs" ,r-batchjobs)
10329 ("r-bbmisc" ,r-bbmisc)
10330 ("r-beeswarm" ,r-beeswarm)
10331 ("r-biobase" ,r-biobase)
10332 ("r-biocgenerics" ,r-biocgenerics)
10333 ("r-doparallel" ,r-doparallel)
10334 ("r-dplyr" ,r-dplyr)
10335 ("r-erma" ,r-erma)
10336 ("r-ffbase" ,r-ffbase)
10337 ("r-foreach" ,r-foreach)
10338 ("r-genomeinfodb" ,r-genomeinfodb)
10339 ("r-genomicfeatures" ,r-genomicfeatures)
10340 ("r-genomicfiles" ,r-genomicfiles)
10341 ("r-genomicranges" ,r-genomicranges)
10342 ("r-ggbeeswarm" ,r-ggbeeswarm)
10343 ("r-ggplot2" ,r-ggplot2)
10344 ("r-gqtlbase" ,r-gqtlbase)
10345 ("r-hardyweinberg" ,r-hardyweinberg)
10346 ("r-homo-sapiens" ,r-homo-sapiens)
10347 ("r-iranges" ,r-iranges)
10348 ("r-limma" ,r-limma)
10349 ("r-mgcv" ,r-mgcv)
10350 ("r-plotly" ,r-plotly)
10351 ("r-reshape2" ,r-reshape2)
10352 ("r-s4vectors" ,r-s4vectors)
10353 ("r-shiny" ,r-shiny)
10354 ("r-snpstats" ,r-snpstats)
10355 ("r-summarizedexperiment" ,r-summarizedexperiment)
10356 ("r-variantannotation" ,r-variantannotation)))
10357 (home-page "https://bioconductor.org/packages/gQTLstats")
10358 (synopsis "Computationally efficient analysis for eQTL and allied studies")
10359 (description
10360 "This package provides tools for the computationally efficient analysis
10361 of @dfn{quantitative trait loci} (QTL) data, including eQTL, mQTL, dsQTL, etc.
10362 The software in this package aims to support refinements and functional
10363 interpretation of members of a collection of association statistics on a
10364 family of feature/genome hypotheses.")
10365 (license license:artistic2.0)))
10366
10367 (define-public r-gviz
10368 (package
10369 (name "r-gviz")
10370 (version "1.26.4")
10371 (source
10372 (origin
10373 (method url-fetch)
10374 (uri (bioconductor-uri "Gviz" version))
10375 (sha256
10376 (base32
10377 "0jvcivgw0ahv2rjadxmrww76xambhf7silczmh38nn4yn4qw6w9y"))))
10378 (properties `((upstream-name . "Gviz")))
10379 (build-system r-build-system)
10380 (propagated-inputs
10381 `(("r-annotationdbi" ,r-annotationdbi)
10382 ("r-biobase" ,r-biobase)
10383 ("r-biocgenerics" ,r-biocgenerics)
10384 ("r-biomart" ,r-biomart)
10385 ("r-biostrings" ,r-biostrings)
10386 ("r-biovizbase" ,r-biovizbase)
10387 ("r-bsgenome" ,r-bsgenome)
10388 ("r-digest" ,r-digest)
10389 ("r-genomeinfodb" ,r-genomeinfodb)
10390 ("r-genomicalignments" ,r-genomicalignments)
10391 ("r-genomicfeatures" ,r-genomicfeatures)
10392 ("r-genomicranges" ,r-genomicranges)
10393 ("r-iranges" ,r-iranges)
10394 ("r-lattice" ,r-lattice)
10395 ("r-latticeextra" ,r-latticeextra)
10396 ("r-matrixstats" ,r-matrixstats)
10397 ("r-rcolorbrewer" ,r-rcolorbrewer)
10398 ("r-rsamtools" ,r-rsamtools)
10399 ("r-rtracklayer" ,r-rtracklayer)
10400 ("r-s4vectors" ,r-s4vectors)
10401 ("r-xvector" ,r-xvector)))
10402 (home-page "https://bioconductor.org/packages/Gviz")
10403 (synopsis "Plotting data and annotation information along genomic coordinates")
10404 (description
10405 "Genomic data analyses requires integrated visualization of known genomic
10406 information and new experimental data. Gviz uses the biomaRt and the
10407 rtracklayer packages to perform live annotation queries to Ensembl and UCSC
10408 and translates this to e.g. gene/transcript structures in viewports of the
10409 grid graphics package. This results in genomic information plotted together
10410 with your data.")
10411 (license license:artistic2.0)))
10412
10413 (define-public r-gwascat
10414 (package
10415 (name "r-gwascat")
10416 (version "2.14.0")
10417 (source
10418 (origin
10419 (method url-fetch)
10420 (uri (bioconductor-uri "gwascat" version))
10421 (sha256
10422 (base32
10423 "1fnyjydhicq4ayrv0lqjv48h9bd72h40s6l82g1h2ng0icwz38g0"))))
10424 (build-system r-build-system)
10425 (propagated-inputs
10426 `(("r-annotationdbi" ,r-annotationdbi)
10427 ("r-annotationhub" ,r-annotationhub)
10428 ("r-biocgenerics" ,r-biocgenerics)
10429 ("r-biostrings" ,r-biostrings)
10430 ("r-genomeinfodb" ,r-genomeinfodb)
10431 ("r-genomicfeatures" ,r-genomicfeatures)
10432 ("r-genomicranges" ,r-genomicranges)
10433 ("r-ggbio" ,r-ggbio)
10434 ("r-ggplot2" ,r-ggplot2)
10435 ("r-gqtlstats" ,r-gqtlstats)
10436 ("r-graph" ,r-graph)
10437 ("r-gviz" ,r-gviz)
10438 ("r-homo-sapiens" ,r-homo-sapiens)
10439 ("r-iranges" ,r-iranges)
10440 ("r-rsamtools" ,r-rsamtools)
10441 ("r-rtracklayer" ,r-rtracklayer)
10442 ("r-s4vectors" ,r-s4vectors)
10443 ("r-snpstats" ,r-snpstats)
10444 ("r-summarizedexperiment" ,r-summarizedexperiment)
10445 ("r-variantannotation" ,r-variantannotation)))
10446 (home-page "https://bioconductor.org/packages/gwascat")
10447 (synopsis "Tools for data in the EMBL-EBI GWAS catalog")
10448 (description
10449 "This package provides tools for representing and modeling data in the
10450 EMBL-EBI GWAS catalog.")
10451 (license license:artistic2.0)))
10452
10453 (define-public r-sushi
10454 (package
10455 (name "r-sushi")
10456 (version "1.20.0")
10457 (source (origin
10458 (method url-fetch)
10459 (uri (bioconductor-uri "Sushi" version))
10460 (sha256
10461 (base32
10462 "0dv5di0hgbvk9cxnqhyf18mdjl50k6bk00a89r6zgp83rbxwr1r8"))))
10463 (properties `((upstream-name . "Sushi")))
10464 (build-system r-build-system)
10465 (propagated-inputs
10466 `(("r-biomart" ,r-biomart)
10467 ("r-zoo" ,r-zoo)))
10468 (home-page "https://bioconductor.org/packages/Sushi")
10469 (synopsis "Tools for visualizing genomics data")
10470 (description
10471 "This package provides flexible, quantitative, and integrative genomic
10472 visualizations for publication-quality multi-panel figures.")
10473 (license license:gpl2+)))
10474
10475 (define-public r-fithic
10476 (package
10477 (name "r-fithic")
10478 (version "1.8.0")
10479 (source (origin
10480 (method url-fetch)
10481 (uri (bioconductor-uri "FitHiC" version))
10482 (sha256
10483 (base32
10484 "15xd8mz7660q4zr9p74mq1pqps4iz7pxp8f9ifn21gwg94aq1avn"))))
10485 (properties `((upstream-name . "FitHiC")))
10486 (build-system r-build-system)
10487 (propagated-inputs
10488 `(("r-data-table" ,r-data-table)
10489 ("r-fdrtool" ,r-fdrtool)
10490 ("r-rcpp" ,r-rcpp)))
10491 (home-page "https://bioconductor.org/packages/FitHiC")
10492 (synopsis "Confidence estimation for intra-chromosomal contact maps")
10493 (description
10494 "Fit-Hi-C is a tool for assigning statistical confidence estimates to
10495 intra-chromosomal contact maps produced by genome-wide genome architecture
10496 assays such as Hi-C.")
10497 (license license:gpl2+)))
10498
10499 (define-public r-hitc
10500 (package
10501 (name "r-hitc")
10502 (version "1.26.0")
10503 (source (origin
10504 (method url-fetch)
10505 (uri (bioconductor-uri "HiTC" version))
10506 (sha256
10507 (base32
10508 "11f96k1707g6milpjgnrjf3b5r42hsrxhb5d8znkcr3y3mrskdbj"))))
10509 (properties `((upstream-name . "HiTC")))
10510 (build-system r-build-system)
10511 (propagated-inputs
10512 `(("r-biostrings" ,r-biostrings)
10513 ("r-genomeinfodb" ,r-genomeinfodb)
10514 ("r-genomicranges" ,r-genomicranges)
10515 ("r-iranges" ,r-iranges)
10516 ("r-matrix" ,r-matrix)
10517 ("r-rcolorbrewer" ,r-rcolorbrewer)
10518 ("r-rtracklayer" ,r-rtracklayer)))
10519 (home-page "https://bioconductor.org/packages/HiTC")
10520 (synopsis "High throughput chromosome conformation capture analysis")
10521 (description
10522 "The HiTC package was developed to explore high-throughput \"C\" data
10523 such as 5C or Hi-C. Dedicated R classes as well as standard methods for
10524 quality controls, normalization, visualization, and further analysis are also
10525 provided.")
10526 (license license:artistic2.0)))
10527
10528 (define-public r-qvalue
10529 (package
10530 (name "r-qvalue")
10531 (version "2.14.1")
10532 (source
10533 (origin
10534 (method url-fetch)
10535 (uri (bioconductor-uri "qvalue" version))
10536 (sha256
10537 (base32
10538 "0kxavzm1j2mk26qicmjm90nxx4w5h3dxighzks7wzihay3k8cysc"))))
10539 (build-system r-build-system)
10540 (propagated-inputs
10541 `(("r-ggplot2" ,r-ggplot2)
10542 ("r-reshape2" ,r-reshape2)))
10543 (home-page "http://github.com/jdstorey/qvalue")
10544 (synopsis "Q-value estimation for false discovery rate control")
10545 (description
10546 "This package takes a list of p-values resulting from the simultaneous
10547 testing of many hypotheses and estimates their q-values and local @dfn{false
10548 discovery rate} (FDR) values. The q-value of a test measures the proportion
10549 of false positives incurred when that particular test is called significant.
10550 The local FDR measures the posterior probability the null hypothesis is true
10551 given the test's p-value. Various plots are automatically generated, allowing
10552 one to make sensible significance cut-offs. The software can be applied to
10553 problems in genomics, brain imaging, astrophysics, and data mining.")
10554 ;; Any version of the LGPL.
10555 (license license:lgpl3+)))
10556
10557 (define-public r-hdf5array
10558 (package
10559 (name "r-hdf5array")
10560 (version "1.10.1")
10561 (source
10562 (origin
10563 (method url-fetch)
10564 (uri (bioconductor-uri "HDF5Array" version))
10565 (sha256
10566 (base32
10567 "1qwdsygcadl58qj598hfyvs8hp0hqcl9ghnhknahrlhmb7k2bd2d"))))
10568 (properties `((upstream-name . "HDF5Array")))
10569 (build-system r-build-system)
10570 (propagated-inputs
10571 `(("r-biocgenerics" ,r-biocgenerics)
10572 ("r-delayedarray" ,r-delayedarray)
10573 ("r-iranges" ,r-iranges)
10574 ("r-rhdf5" ,r-rhdf5)
10575 ("r-s4vectors" ,r-s4vectors)))
10576 (home-page "https://bioconductor.org/packages/HDF5Array")
10577 (synopsis "HDF5 back end for DelayedArray objects")
10578 (description "This package provides an array-like container for convenient
10579 access and manipulation of HDF5 datasets. It supports delayed operations and
10580 block processing.")
10581 (license license:artistic2.0)))
10582
10583 (define-public r-rhdf5lib
10584 (package
10585 (name "r-rhdf5lib")
10586 (version "1.4.2")
10587 (source
10588 (origin
10589 (method url-fetch)
10590 (uri (bioconductor-uri "Rhdf5lib" version))
10591 (sha256
10592 (base32
10593 "06bxd3wz8lrvh2hzvmjpdv4lvzj5lz9353bw5b3zb98cb8w9r2j5"))
10594 (modules '((guix build utils)))
10595 (snippet
10596 '(begin
10597 ;; Delete bundled binaries
10598 (delete-file-recursively "src/winlib/")
10599 #t))))
10600 (properties `((upstream-name . "Rhdf5lib")))
10601 (build-system r-build-system)
10602 (arguments
10603 `(#:phases
10604 (modify-phases %standard-phases
10605 (add-after 'unpack 'do-not-use-bundled-hdf5
10606 (lambda* (#:key inputs #:allow-other-keys)
10607 (for-each delete-file '("configure" "configure.ac"))
10608 ;; Do not make other packages link with the proprietary libsz.
10609 (substitute* "R/zzz.R"
10610 (("'%s/libhdf5_cpp.a %s/libhdf5.a %s/libsz.a -lz'")
10611 "'%s/libhdf5_cpp.a %s/libhdf5.a %s/libhdf5.a -lz'")
10612 (("'%s/libhdf5.a %s/libsz.a -lz'")
10613 "'%s/libhdf5.a %s/libhdf5.a -lz'"))
10614 (with-directory-excursion "src"
10615 (invoke "tar" "xvf" (assoc-ref inputs "hdf5-source"))
10616 (rename-file (string-append "hdf5-" ,(package-version hdf5-1.10))
10617 "hdf5")
10618 ;; Remove timestamp and host system information to make
10619 ;; the build reproducible.
10620 (substitute* "hdf5/src/libhdf5.settings.in"
10621 (("Configured on: @CONFIG_DATE@")
10622 "Configured on: Guix")
10623 (("Uname information:.*")
10624 "Uname information: Linux\n")
10625 ;; Remove unnecessary store reference.
10626 (("C Compiler:.*")
10627 "C Compiler: GCC\n"))
10628 (rename-file "Makevars.in" "Makevars")
10629 (substitute* "Makevars"
10630 (("HDF5_CXX_LIB=.*")
10631 (string-append "HDF5_CXX_LIB="
10632 (assoc-ref inputs "hdf5") "/lib/libhdf5_cpp.a\n"))
10633 (("HDF5_LIB=.*")
10634 (string-append "HDF5_LIB="
10635 (assoc-ref inputs "hdf5") "/lib/libhdf5.a\n"))
10636 (("HDF5_CXX_INCLUDE=.*") "HDF5_CXX_INCLUDE=./hdf5/c++/src\n")
10637 (("HDF5_INCLUDE=.*") "HDF5_INCLUDE=./hdf5/src\n")
10638 ;; szip is non-free software
10639 (("cp \\$\\{SZIP_LIB\\}.*") "")
10640 (("\\$\\{USER_LIB_DIR\\}libsz.a") "")))
10641 #t)))))
10642 (inputs
10643 `(("zlib" ,zlib)))
10644 (propagated-inputs
10645 `(("hdf5" ,hdf5-1.10)))
10646 (native-inputs
10647 `(("hdf5-source" ,(package-source hdf5-1.10))))
10648 (home-page "https://bioconductor.org/packages/Rhdf5lib")
10649 (synopsis "HDF5 library as an R package")
10650 (description "This package provides C and C++ HDF5 libraries for use in R
10651 packages.")
10652 (license license:artistic2.0)))
10653
10654 (define-public r-beachmat
10655 (package
10656 (name "r-beachmat")
10657 (version "1.4.0")
10658 (source
10659 (origin
10660 (method url-fetch)
10661 (uri (bioconductor-uri "beachmat" version))
10662 (sha256
10663 (base32
10664 "07zgmms0qg8gw7x0js46965bbhpfj2aa1h5ixdz9r332bxv9cdmr"))))
10665 (build-system r-build-system)
10666 (inputs
10667 `(("hdf5" ,hdf5)
10668 ("zlib" ,zlib)))
10669 (propagated-inputs
10670 `(("r-biocgenerics" ,r-biocgenerics)
10671 ("r-delayedarray" ,r-delayedarray)
10672 ("r-hdf5array" ,r-hdf5array)
10673 ("r-rcpp" ,r-rcpp)
10674 ("r-rhdf5" ,r-rhdf5)
10675 ("r-rhdf5lib" ,r-rhdf5lib)))
10676 (home-page "https://bioconductor.org/packages/beachmat")
10677 (synopsis "Compiling Bioconductor to handle each matrix type")
10678 (description "This package provides a consistent C++ class interface for a
10679 variety of commonly used matrix types, including sparse and HDF5-backed
10680 matrices.")
10681 (license license:gpl3)))
10682
10683 (define-public r-singlecellexperiment
10684 (package
10685 (name "r-singlecellexperiment")
10686 (version "1.4.1")
10687 (source
10688 (origin
10689 (method url-fetch)
10690 (uri (bioconductor-uri "SingleCellExperiment" version))
10691 (sha256
10692 (base32
10693 "12139kk9cqgzpm6f3cwdsq31gj5lxamz2q939dy9fa0fa54gdaq4"))))
10694 (properties
10695 `((upstream-name . "SingleCellExperiment")))
10696 (build-system r-build-system)
10697 (propagated-inputs
10698 `(("r-biocgenerics" ,r-biocgenerics)
10699 ("r-s4vectors" ,r-s4vectors)
10700 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10701 (home-page "https://bioconductor.org/packages/SingleCellExperiment")
10702 (synopsis "S4 classes for single cell data")
10703 (description "This package defines an S4 class for storing data from
10704 single-cell experiments. This includes specialized methods to store and
10705 retrieve spike-in information, dimensionality reduction coordinates and size
10706 factors for each cell, along with the usual metadata for genes and
10707 libraries.")
10708 (license license:gpl3)))
10709
10710 (define-public r-scater
10711 (package
10712 (name "r-scater")
10713 (version "1.10.1")
10714 (source (origin
10715 (method url-fetch)
10716 (uri (bioconductor-uri "scater" version))
10717 (sha256
10718 (base32
10719 "0rijhy7g5qmcn927y1wyd63la1fhyar9fv1hccsqd23jd98yc55a"))))
10720 (build-system r-build-system)
10721 (propagated-inputs
10722 `(("r-beachmat" ,r-beachmat)
10723 ("r-biocgenerics" ,r-biocgenerics)
10724 ("r-biocparallel" ,r-biocparallel)
10725 ("r-delayedarray" ,r-delayedarray)
10726 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
10727 ("r-dplyr" ,r-dplyr)
10728 ("r-ggbeeswarm" ,r-ggbeeswarm)
10729 ("r-ggplot2" ,r-ggplot2)
10730 ("r-matrix" ,r-matrix)
10731 ("r-plyr" ,r-plyr)
10732 ("r-rcpp" ,r-rcpp)
10733 ("r-reshape2" ,r-reshape2)
10734 ("r-rhdf5lib" ,r-rhdf5lib)
10735 ("r-s4vectors" ,r-s4vectors)
10736 ("r-singlecellexperiment" ,r-singlecellexperiment)
10737 ("r-summarizedexperiment" ,r-summarizedexperiment)
10738 ("r-viridis" ,r-viridis)))
10739 (home-page "https://github.com/davismcc/scater")
10740 (synopsis "Single-cell analysis toolkit for gene expression data in R")
10741 (description "This package provides a collection of tools for doing
10742 various analyses of single-cell RNA-seq gene expression data, with a focus on
10743 quality control.")
10744 (license license:gpl2+)))
10745
10746 (define-public r-scran
10747 (package
10748 (name "r-scran")
10749 (version "1.10.2")
10750 (source
10751 (origin
10752 (method url-fetch)
10753 (uri (bioconductor-uri "scran" version))
10754 (sha256
10755 (base32
10756 "07mgilr3gq3lnrm1fjm9zhz4w7970bjhsykln1drqy9gkzj5sn7g"))))
10757 (build-system r-build-system)
10758 (propagated-inputs
10759 `(("r-beachmat" ,r-beachmat)
10760 ("r-biocgenerics" ,r-biocgenerics)
10761 ("r-biocneighbors" ,r-biocneighbors)
10762 ("r-biocparallel" ,r-biocparallel)
10763 ("r-delayedarray" ,r-delayedarray)
10764 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
10765 ("r-dynamictreecut" ,r-dynamictreecut)
10766 ("r-edger" ,r-edger)
10767 ("r-igraph" ,r-igraph)
10768 ("r-limma" ,r-limma)
10769 ("r-matrix" ,r-matrix)
10770 ("r-rcpp" ,r-rcpp)
10771 ("r-rhdf5lib" ,r-rhdf5lib)
10772 ("r-s4vectors" ,r-s4vectors)
10773 ("r-scater" ,r-scater)
10774 ("r-singlecellexperiment" ,r-singlecellexperiment)
10775 ("r-statmod" ,r-statmod)
10776 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10777 (home-page "https://bioconductor.org/packages/scran")
10778 (synopsis "Methods for single-cell RNA-Seq data analysis")
10779 (description "This package implements a variety of low-level analyses of
10780 single-cell RNA-seq data. Methods are provided for normalization of
10781 cell-specific biases, assignment of cell cycle phase, and detection of highly
10782 variable and significantly correlated genes.")
10783 (license license:gpl3)))
10784
10785 (define-public r-delayedmatrixstats
10786 (package
10787 (name "r-delayedmatrixstats")
10788 (version "1.4.0")
10789 (source
10790 (origin
10791 (method url-fetch)
10792 (uri (bioconductor-uri "DelayedMatrixStats" version))
10793 (sha256
10794 (base32
10795 "03fk2avl1vyjv2wslczkc82qr0zmp1ra8iimd47pbmnnm839ly4w"))))
10796 (properties
10797 `((upstream-name . "DelayedMatrixStats")))
10798 (build-system r-build-system)
10799 (propagated-inputs
10800 `(("r-biocparallel" ,r-biocparallel)
10801 ("r-delayedarray" ,r-delayedarray)
10802 ("r-hdf5array" ,r-hdf5array)
10803 ("r-iranges" ,r-iranges)
10804 ("r-matrix" ,r-matrix)
10805 ("r-matrixstats" ,r-matrixstats)
10806 ("r-s4vectors" ,r-s4vectors)))
10807 (home-page "https://github.com/PeteHaitch/DelayedMatrixStats")
10808 (synopsis "Functions that apply to rows and columns of DelayedMatrix objects")
10809 (description
10810 "This package provides a port of the @code{matrixStats} API for use with
10811 @code{DelayedMatrix} objects from the @code{DelayedArray} package. It
10812 contains high-performing functions operating on rows and columns of
10813 @code{DelayedMatrix} objects, e.g. @code{colMedians}, @code{rowMedians},
10814 @code{colRanks}, @code{rowRanks}, @code{colSds}, and @code{rowSds}. Functions
10815 are optimized per data type and for subsetted calculations such that both
10816 memory usage and processing time is minimized.")
10817 (license license:expat)))
10818
10819 (define-public r-phangorn
10820 (package
10821 (name "r-phangorn")
10822 (version "2.4.0")
10823 (source
10824 (origin
10825 (method url-fetch)
10826 (uri (cran-uri "phangorn" version))
10827 (sha256
10828 (base32
10829 "0xc8k552nxczy19jr0xjjagrzc8x6lafasgk2c099ls8bc1yml1i"))))
10830 (build-system r-build-system)
10831 (propagated-inputs
10832 `(("r-ape" ,r-ape)
10833 ("r-fastmatch" ,r-fastmatch)
10834 ("r-igraph" ,r-igraph)
10835 ("r-magrittr" ,r-magrittr)
10836 ("r-matrix" ,r-matrix)
10837 ("r-quadprog" ,r-quadprog)
10838 ("r-rcpp" ,r-rcpp)))
10839 (home-page "https://github.com/KlausVigo/phangorn")
10840 (synopsis "Phylogenetic analysis in R")
10841 (description
10842 "Phangorn is a package for phylogenetic analysis in R. It supports
10843 estimation of phylogenetic trees and networks using Maximum Likelihood,
10844 Maximum Parsimony, distance methods and Hadamard conjugation.")
10845 (license license:gpl2+)))
10846
10847 (define-public r-dropbead
10848 (let ((commit "d746c6f3b32110428ea56d6a0001ce52a251c247")
10849 (revision "2"))
10850 (package
10851 (name "r-dropbead")
10852 (version (string-append "0-" revision "." (string-take commit 7)))
10853 (source
10854 (origin
10855 (method git-fetch)
10856 (uri (git-reference
10857 (url "https://github.com/rajewsky-lab/dropbead.git")
10858 (commit commit)))
10859 (file-name (git-file-name name version))
10860 (sha256
10861 (base32
10862 "0sbzma49aiiyw8b0jpr7fnhzys9nsqmp4hy4hdz1gzyg1lhnca26"))))
10863 (build-system r-build-system)
10864 (propagated-inputs
10865 `(("r-ggplot2" ,r-ggplot2)
10866 ("r-rcolorbrewer" ,r-rcolorbrewer)
10867 ("r-gridextra" ,r-gridextra)
10868 ("r-gplots" ,r-gplots)
10869 ("r-plyr" ,r-plyr)))
10870 (home-page "https://github.com/rajewsky-lab/dropbead")
10871 (synopsis "Basic exploration and analysis of Drop-seq data")
10872 (description "This package offers a quick and straight-forward way to
10873 explore and perform basic analysis of single cell sequencing data coming from
10874 droplet sequencing. It has been particularly tailored for Drop-seq.")
10875 (license license:gpl3))))
10876
10877 (define htslib-for-sambamba
10878 (let ((commit "2f3c3ea7b301f9b45737a793c0b2dcf0240e5ee5"))
10879 (package
10880 (inherit htslib)
10881 (name "htslib-for-sambamba")
10882 (version (string-append "1.3.1-1." (string-take commit 9)))
10883 (source
10884 (origin
10885 (method git-fetch)
10886 (uri (git-reference
10887 (url "https://github.com/lomereiter/htslib.git")
10888 (commit commit)))
10889 (file-name (string-append "htslib-" version "-checkout"))
10890 (sha256
10891 (base32
10892 "0g38g8s3npr0gjm9fahlbhiskyfws9l5i0x1ml3rakzj7az5l9c9"))))
10893 (native-inputs
10894 `(("autoconf" ,autoconf)
10895 ("automake" ,automake)
10896 ,@(package-native-inputs htslib))))))
10897
10898 (define-public sambamba
10899 (package
10900 (name "sambamba")
10901 (version "0.6.8")
10902 (source
10903 (origin
10904 (method git-fetch)
10905 (uri (git-reference
10906 (url "https://github.com/lomereiter/sambamba.git")
10907 (commit (string-append "v" version))))
10908 (file-name (string-append name "-" version "-checkout"))
10909 (sha256
10910 (base32
10911 "0k0cz3qcv98p6cq09zlbgnjsggxcqbcmzxg5zikgcgbr2nfq4lry"))))
10912 (build-system gnu-build-system)
10913 (arguments
10914 `(#:tests? #f ; there is no test target
10915 #:parallel-build? #f ; not supported
10916 #:phases
10917 (modify-phases %standard-phases
10918 (delete 'configure)
10919 (add-after 'unpack 'fix-ldc-version
10920 (lambda _
10921 (substitute* "gen_ldc_version_info.py"
10922 (("/usr/bin/env.*") (which "python3")))
10923 (substitute* "Makefile"
10924 ;; We use ldc2 instead of ldmd2 to compile sambamba.
10925 (("\\$\\(shell which ldmd2\\)") (which "ldc2")))
10926 #t))
10927 (add-after 'unpack 'place-biod-and-undead
10928 (lambda* (#:key inputs #:allow-other-keys)
10929 (copy-recursively (assoc-ref inputs "biod") "BioD")
10930 (copy-recursively (assoc-ref inputs "undead") "undeaD")
10931 #t))
10932 (add-after 'unpack 'unbundle-prerequisites
10933 (lambda _
10934 (substitute* "Makefile"
10935 (("htslib/libhts.a lz4/lib/liblz4.a")
10936 "-L-lhts -L-llz4")
10937 ((" lz4-static htslib-static") ""))
10938 #t))
10939 (replace 'install
10940 (lambda* (#:key outputs #:allow-other-keys)
10941 (let* ((out (assoc-ref outputs "out"))
10942 (bin (string-append out "/bin")))
10943 (mkdir-p bin)
10944 (install-file "bin/sambamba" bin)
10945 #t))))))
10946 (native-inputs
10947 `(("ldc" ,ldc)
10948 ("rdmd" ,rdmd)
10949 ("python" ,python)
10950 ("biod"
10951 ,(let ((commit "4f1a7d2fb7ef3dfe962aa357d672f354ebfbe42e"))
10952 (origin
10953 (method git-fetch)
10954 (uri (git-reference
10955 (url "https://github.com/biod/BioD.git")
10956 (commit commit)))
10957 (file-name (string-append "biod-"
10958 (string-take commit 9)
10959 "-checkout"))
10960 (sha256
10961 (base32
10962 "1k5pdjv1qvi0a3rwd1sfq6zbj37l86i7bf710m4c0y6737lxj426")))))
10963 ("undead"
10964 ,(let ((commit "9be93876982b5f14fcca60832563b3cd767dd84d"))
10965 (origin
10966 (method git-fetch)
10967 (uri (git-reference
10968 (url "https://github.com/biod/undeaD.git")
10969 (commit commit)))
10970 (file-name (string-append "undead-"
10971 (string-take commit 9)
10972 "-checkout"))
10973 (sha256
10974 (base32
10975 "1xfarj0nqlmi5jd1vmcmm7pabzaf9hxyvk6hp0d6jslb5k9r8r3d")))))))
10976 (inputs
10977 `(("lz4" ,lz4)
10978 ("htslib" ,htslib-for-sambamba)))
10979 (home-page "http://lomereiter.github.io/sambamba")
10980 (synopsis "Tools for working with SAM/BAM data")
10981 (description "Sambamba is a high performance modern robust and
10982 fast tool (and library), written in the D programming language, for
10983 working with SAM and BAM files. Current parallelised functionality is
10984 an important subset of samtools functionality, including view, index,
10985 sort, markdup, and depth.")
10986 (license license:gpl2+)))
10987
10988 (define-public ritornello
10989 (package
10990 (name "ritornello")
10991 (version "2.0.1")
10992 (source (origin
10993 (method git-fetch)
10994 (uri (git-reference
10995 (url "https://github.com/KlugerLab/Ritornello.git")
10996 (commit (string-append "v" version))))
10997 (file-name (git-file-name name version))
10998 (sha256
10999 (base32
11000 "1xahvq215qld7x1w8vpa5zbrsj6p9crb9shqa2x89sb0aaxa02jk"))))
11001 (build-system gnu-build-system)
11002 (arguments
11003 `(#:tests? #f ; there are no tests
11004 #:phases
11005 (modify-phases %standard-phases
11006 (add-after 'unpack 'patch-samtools-references
11007 (lambda* (#:key inputs #:allow-other-keys)
11008 (substitute* '("src/SamStream.h"
11009 "src/FLD.cpp")
11010 (("<sam.h>") "<samtools/sam.h>"))
11011 #t))
11012 (delete 'configure)
11013 (replace 'install
11014 (lambda* (#:key inputs outputs #:allow-other-keys)
11015 (let* ((out (assoc-ref outputs "out"))
11016 (bin (string-append out "/bin/")))
11017 (mkdir-p bin)
11018 (install-file "bin/Ritornello" bin)
11019 #t))))))
11020 (inputs
11021 `(("samtools" ,samtools-0.1)
11022 ("fftw" ,fftw)
11023 ("boost" ,boost)
11024 ("zlib" ,zlib)))
11025 (home-page "https://github.com/KlugerLab/Ritornello")
11026 (synopsis "Control-free peak caller for ChIP-seq data")
11027 (description "Ritornello is a ChIP-seq peak calling algorithm based on
11028 signal processing that can accurately call binding events without the need to
11029 do a pair total DNA input or IgG control sample. It has been tested for use
11030 with narrow binding events such as transcription factor ChIP-seq.")
11031 (license license:gpl3+)))
11032
11033 (define-public trim-galore
11034 (package
11035 (name "trim-galore")
11036 (version "0.4.5")
11037 (source
11038 (origin
11039 (method git-fetch)
11040 (uri (git-reference
11041 (url "https://github.com/FelixKrueger/TrimGalore.git")
11042 (commit version)))
11043 (file-name (string-append name "-" version "-checkout"))
11044 (sha256
11045 (base32
11046 "0x5892l48c816pf00wmnz5vq0zq6170d3xc8zrxncd4jcz7h1p71"))))
11047 (build-system gnu-build-system)
11048 (arguments
11049 `(#:tests? #f ; no tests
11050 #:phases
11051 (modify-phases %standard-phases
11052 (delete 'configure)
11053 (delete 'build)
11054 (add-after 'unpack 'hardcode-tool-references
11055 (lambda* (#:key inputs #:allow-other-keys)
11056 (substitute* "trim_galore"
11057 (("\\$path_to_cutadapt = 'cutadapt'")
11058 (string-append "$path_to_cutadapt = '"
11059 (assoc-ref inputs "cutadapt")
11060 "/bin/cutadapt'"))
11061 (("\\| gzip")
11062 (string-append "| "
11063 (assoc-ref inputs "gzip")
11064 "/bin/gzip"))
11065 (("\"gunzip")
11066 (string-append "\""
11067 (assoc-ref inputs "gzip")
11068 "/bin/gunzip")))
11069 #t))
11070 (replace 'install
11071 (lambda* (#:key outputs #:allow-other-keys)
11072 (let ((bin (string-append (assoc-ref outputs "out")
11073 "/bin")))
11074 (mkdir-p bin)
11075 (install-file "trim_galore" bin)
11076 #t))))))
11077 (inputs
11078 `(("gzip" ,gzip)
11079 ("perl" ,perl)
11080 ("cutadapt" ,cutadapt)))
11081 (native-inputs
11082 `(("unzip" ,unzip)))
11083 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/trim_galore/")
11084 (synopsis "Wrapper around Cutadapt and FastQC")
11085 (description "Trim Galore! is a wrapper script to automate quality and
11086 adapter trimming as well as quality control, with some added functionality to
11087 remove biased methylation positions for RRBS sequence files.")
11088 (license license:gpl3+)))
11089
11090 (define-public gess
11091 (package
11092 (name "gess")
11093 (version "1.0")
11094 (source (origin
11095 (method url-fetch)
11096 (uri (string-append "http://compbio.uthscsa.edu/"
11097 "GESS_Web/files/"
11098 "gess-" version ".src.tar.gz"))
11099 (sha256
11100 (base32
11101 "0hyk403kxscclzfs24pvdgiv0wm03kjcziqdrp5w46cb049gz0d7"))))
11102 (build-system gnu-build-system)
11103 (arguments
11104 `(#:tests? #f ; no tests
11105 #:phases
11106 (modify-phases %standard-phases
11107 (delete 'configure)
11108 (delete 'build)
11109 (replace 'install
11110 (lambda* (#:key inputs outputs #:allow-other-keys)
11111 (let* ((python (assoc-ref inputs "python"))
11112 (out (assoc-ref outputs "out"))
11113 (bin (string-append out "/bin/"))
11114 (target (string-append
11115 out "/lib/python"
11116 ,(version-major+minor
11117 (package-version python))
11118 "/site-packages/gess/")))
11119 (mkdir-p target)
11120 (copy-recursively "." target)
11121 ;; Make GESS.py executable
11122 (chmod (string-append target "GESS.py") #o555)
11123 ;; Add Python shebang to the top and make Matplotlib
11124 ;; usable.
11125 (substitute* (string-append target "GESS.py")
11126 (("\"\"\"Description:" line)
11127 (string-append "#!" (which "python") "
11128 import matplotlib
11129 matplotlib.use('Agg')
11130 " line)))
11131 ;; Make sure GESS has all modules in its path
11132 (wrap-program (string-append target "GESS.py")
11133 `("PYTHONPATH" ":" prefix (,target ,(getenv "PYTHONPATH"))))
11134 (mkdir-p bin)
11135 (symlink (string-append target "GESS.py")
11136 (string-append bin "GESS.py"))
11137 #t))))))
11138 (inputs
11139 `(("python" ,python-2)
11140 ("python2-pysam" ,python2-pysam)
11141 ("python2-scipy" ,python2-scipy)
11142 ("python2-numpy" ,python2-numpy)
11143 ("python2-networkx" ,python2-networkx)
11144 ("python2-biopython" ,python2-biopython)))
11145 (home-page "http://compbio.uthscsa.edu/GESS_Web/")
11146 (synopsis "Detect exon-skipping events from raw RNA-seq data")
11147 (description
11148 "GESS is an implementation of a novel computational method to detect de
11149 novo exon-skipping events directly from raw RNA-seq data without the prior
11150 knowledge of gene annotation information. GESS stands for the graph-based
11151 exon-skipping scanner detection scheme.")
11152 (license license:bsd-3)))
11153
11154 (define-public phylip
11155 (package
11156 (name "phylip")
11157 (version "3.696")
11158 (source
11159 (origin
11160 (method url-fetch)
11161 (uri (string-append "http://evolution.gs.washington.edu/phylip/"
11162 "download/phylip-" version ".tar.gz"))
11163 (sha256
11164 (base32
11165 "01jar1rayhr2gba2pgbw49m56rc5z4p5wn3ds0m188hrlln4a2nd"))))
11166 (build-system gnu-build-system)
11167 (arguments
11168 `(#:tests? #f ; no check target
11169 #:make-flags (list "-f" "Makefile.unx" "install")
11170 #:parallel-build? #f ; not supported
11171 #:phases
11172 (modify-phases %standard-phases
11173 (add-after 'unpack 'enter-dir
11174 (lambda _ (chdir "src") #t))
11175 (delete 'configure)
11176 (replace 'install
11177 (lambda* (#:key inputs outputs #:allow-other-keys)
11178 (let ((target (string-append (assoc-ref outputs "out")
11179 "/bin")))
11180 (mkdir-p target)
11181 (for-each (lambda (file)
11182 (install-file file target))
11183 (find-files "../exe" ".*")))
11184 #t)))))
11185 (home-page "http://evolution.genetics.washington.edu/phylip/")
11186 (synopsis "Tools for inferring phylogenies")
11187 (description "PHYLIP (the PHYLogeny Inference Package) is a package of
11188 programs for inferring phylogenies (evolutionary trees).")
11189 (license license:bsd-2)))
11190
11191 (define-public imp
11192 (package
11193 (name "imp")
11194 (version "2.6.2")
11195 (source
11196 (origin
11197 (method url-fetch)
11198 (uri (string-append "https://integrativemodeling.org/"
11199 version "/download/imp-" version ".tar.gz"))
11200 (sha256
11201 (base32
11202 "0lxqx7vh79d771svr611dkilp6sn30qrbw8zvscbrm37v38d2j6h"))))
11203 (build-system cmake-build-system)
11204 (arguments
11205 `(;; FIXME: Some tests fail because they produce warnings, others fail
11206 ;; because the PYTHONPATH does not include the modeller's directory.
11207 #:tests? #f))
11208 (inputs
11209 `(("boost" ,boost)
11210 ("gsl" ,gsl)
11211 ("swig" ,swig)
11212 ("hdf5" ,hdf5)
11213 ("fftw" ,fftw)
11214 ("python" ,python-2)))
11215 (propagated-inputs
11216 `(("python2-numpy" ,python2-numpy)
11217 ("python2-scipy" ,python2-scipy)
11218 ("python2-pandas" ,python2-pandas)
11219 ("python2-scikit-learn" ,python2-scikit-learn)
11220 ("python2-networkx" ,python2-networkx)))
11221 (home-page "https://integrativemodeling.org")
11222 (synopsis "Integrative modeling platform")
11223 (description "IMP's broad goal is to contribute to a comprehensive
11224 structural characterization of biomolecules ranging in size and complexity
11225 from small peptides to large macromolecular assemblies, by integrating data
11226 from diverse biochemical and biophysical experiments. IMP provides a C++ and
11227 Python toolbox for solving complex modeling problems, and a number of
11228 applications for tackling some common problems in a user-friendly way.")
11229 ;; IMP is largely available under the GNU Lesser GPL; see the file
11230 ;; COPYING.LGPL for the full text of this license. Some IMP modules are
11231 ;; available under the GNU GPL (see the file COPYING.GPL).
11232 (license (list license:lgpl2.1+
11233 license:gpl3+))))
11234
11235 (define-public tadbit
11236 (package
11237 (name "tadbit")
11238 (version "0.2.0")
11239 (source (origin
11240 (method git-fetch)
11241 (uri (git-reference
11242 (url "https://github.com/3DGenomes/TADbit.git")
11243 (commit (string-append "v" version))))
11244 (file-name (git-file-name name version))
11245 (sha256
11246 (base32
11247 "07g3aj648prmsvxp9caz5yl41k0y0647vxh0f5p3w8376mfiljd0"))))
11248 (build-system python-build-system)
11249 (arguments
11250 `(;; Tests are included and must be run after installation, but
11251 ;; they are incomplete and thus cannot be run.
11252 #:tests? #f
11253 #:python ,python-2
11254 #:phases
11255 (modify-phases %standard-phases
11256 (add-after 'unpack 'fix-problems-with-setup.py
11257 (lambda* (#:key outputs #:allow-other-keys)
11258 ;; setup.py opens these files for writing
11259 (chmod "_pytadbit/_version.py" #o664)
11260 (chmod "README.rst" #o664)
11261
11262 ;; Don't attempt to install the bash completions to
11263 ;; the home directory.
11264 (rename-file "extras/.bash_completion"
11265 "extras/tadbit")
11266 (substitute* "setup.py"
11267 (("\\(path.expanduser\\('~'\\)")
11268 (string-append "(\""
11269 (assoc-ref outputs "out")
11270 "/etc/bash_completion.d\""))
11271 (("extras/\\.bash_completion")
11272 "extras/tadbit"))
11273 #t)))))
11274 (inputs
11275 ;; TODO: add Chimera for visualization
11276 `(("imp" ,imp)
11277 ("mcl" ,mcl)
11278 ("python2-scipy" ,python2-scipy)
11279 ("python2-numpy" ,python2-numpy)
11280 ("python2-matplotlib" ,python2-matplotlib)
11281 ("python2-pysam" ,python2-pysam)))
11282 (home-page "https://3dgenomes.github.io/TADbit/")
11283 (synopsis "Analyze, model, and explore 3C-based data")
11284 (description
11285 "TADbit is a complete Python library to deal with all steps to analyze,
11286 model, and explore 3C-based data. With TADbit the user can map FASTQ files to
11287 obtain raw interaction binned matrices (Hi-C like matrices), normalize and
11288 correct interaction matrices, identify and compare the so-called
11289 @dfn{Topologically Associating Domains} (TADs), build 3D models from the
11290 interaction matrices, and finally, extract structural properties from the
11291 models. TADbit is complemented by TADkit for visualizing 3D models.")
11292 (license license:gpl3+)))
11293
11294 (define-public kentutils
11295 (package
11296 (name "kentutils")
11297 ;; 302.1.0 is out, but the only difference is the inclusion of
11298 ;; pre-built binaries.
11299 (version "302.0.0")
11300 (source
11301 (origin
11302 (method git-fetch)
11303 (uri (git-reference
11304 (url "https://github.com/ENCODE-DCC/kentUtils.git")
11305 (commit (string-append "v" version))))
11306 (file-name (git-file-name name version))
11307 (sha256
11308 (base32
11309 "0n1wbyjpzii2b9qhyp9r1q76j623cggpg3y8fmw78ld3z4y7ivha"))
11310 (modules '((guix build utils)
11311 (srfi srfi-26)
11312 (ice-9 ftw)))
11313 (snippet
11314 '(begin
11315 ;; Only the contents of the specified directories are free
11316 ;; for all uses, so we remove the rest. "hg/autoSql" and
11317 ;; "hg/autoXml" are nominally free, but they depend on a
11318 ;; library that is built from the sources in "hg/lib",
11319 ;; which is nonfree.
11320 (let ((free (list "." ".."
11321 "utils" "lib" "inc" "tagStorm"
11322 "parasol" "htslib"))
11323 (directory? (lambda (file)
11324 (eq? 'directory (stat:type (stat file))))))
11325 (for-each (lambda (file)
11326 (and (directory? file)
11327 (delete-file-recursively file)))
11328 (map (cut string-append "src/" <>)
11329 (scandir "src"
11330 (lambda (file)
11331 (not (member file free)))))))
11332 ;; Only make the utils target, not the userApps target,
11333 ;; because that requires libraries we won't build.
11334 (substitute* "Makefile"
11335 ((" userApps") " utils"))
11336 ;; Only build libraries that are free.
11337 (substitute* "src/makefile"
11338 (("DIRS =.*") "DIRS =\n")
11339 (("cd jkOwnLib.*") "")
11340 ((" hgLib") "")
11341 (("cd hg.*") ""))
11342 (substitute* "src/utils/makefile"
11343 ;; These tools depend on "jkhgap.a", which is part of the
11344 ;; nonfree "src/hg/lib" directory.
11345 (("raSqlQuery") "")
11346 (("pslLiftSubrangeBlat") "")
11347
11348 ;; Do not build UCSC tools, which may require nonfree
11349 ;; components.
11350 (("ALL_APPS =.*") "ALL_APPS = $(UTILS_APPLIST)\n"))
11351 #t))))
11352 (build-system gnu-build-system)
11353 (arguments
11354 `( ;; There is no global test target and the test target for
11355 ;; individual tools depends on input files that are not
11356 ;; included.
11357 #:tests? #f
11358 #:phases
11359 (modify-phases %standard-phases
11360 (add-after 'unpack 'fix-permissions
11361 (lambda _ (make-file-writable "src/inc/localEnvironment.mk") #t))
11362 (add-after 'unpack 'fix-paths
11363 (lambda _
11364 (substitute* "Makefile"
11365 (("/bin/echo") (which "echo")))
11366 #t))
11367 (add-after 'unpack 'prepare-samtabix
11368 (lambda* (#:key inputs #:allow-other-keys)
11369 (copy-recursively (assoc-ref inputs "samtabix")
11370 "samtabix")
11371 #t))
11372 (delete 'configure)
11373 (replace 'install
11374 (lambda* (#:key outputs #:allow-other-keys)
11375 (let ((bin (string-append (assoc-ref outputs "out")
11376 "/bin")))
11377 (copy-recursively "bin" bin))
11378 #t)))))
11379 (native-inputs
11380 `(("samtabix"
11381 ,(origin
11382 (method git-fetch)
11383 (uri (git-reference
11384 (url "http://genome-source.cse.ucsc.edu/samtabix.git")
11385 (commit "10fd107909c1ac4d679299908be4262a012965ba")))
11386 (sha256
11387 (base32
11388 "0c1nj64l42v395sa84n7az43xiap4i6f9n9dfz4058aqiwkhkmma"))))))
11389 (inputs
11390 `(("zlib" ,zlib)
11391 ("tcsh" ,tcsh)
11392 ("perl" ,perl)
11393 ("libpng" ,libpng)
11394 ("mariadb" ,mariadb)
11395 ("openssl" ,openssl)))
11396 (home-page "http://genome.cse.ucsc.edu/index.html")
11397 (synopsis "Assorted bioinformatics utilities")
11398 (description "This package provides the kentUtils, a selection of
11399 bioinformatics utilities used in combination with the UCSC genome
11400 browser.")
11401 ;; Only a subset of the sources are released under a non-copyleft
11402 ;; free software license. All other sources are removed in a
11403 ;; snippet. See this bug report for an explanation of how the
11404 ;; license statements apply:
11405 ;; https://github.com/ENCODE-DCC/kentUtils/issues/12
11406 (license (license:non-copyleft
11407 "http://genome.ucsc.edu/license/"
11408 "The contents of this package are free for all uses."))))
11409
11410 (define-public f-seq
11411 (let ((commit "6ccded34cff38cf432deed8503648b4a66953f9b")
11412 (revision "1"))
11413 (package
11414 (name "f-seq")
11415 (version (string-append "1.1-" revision "." (string-take commit 7)))
11416 (source (origin
11417 (method git-fetch)
11418 (uri (git-reference
11419 (url "https://github.com/aboyle/F-seq.git")
11420 (commit commit)))
11421 (file-name (string-append name "-" version))
11422 (sha256
11423 (base32
11424 "1nk33k0yajg2id4g59bc4szr58r2q6pdq42vgcw054m8ip9wv26h"))
11425 (modules '((guix build utils)))
11426 ;; Remove bundled Java library archives.
11427 (snippet
11428 '(begin
11429 (for-each delete-file (find-files "lib" ".*"))
11430 #t))))
11431 (build-system ant-build-system)
11432 (arguments
11433 `(#:tests? #f ; no tests included
11434 #:phases
11435 (modify-phases %standard-phases
11436 (replace 'install
11437 (lambda* (#:key inputs outputs #:allow-other-keys)
11438 (let* ((target (assoc-ref outputs "out"))
11439 (bin (string-append target "/bin"))
11440 (doc (string-append target "/share/doc/f-seq"))
11441 (lib (string-append target "/lib")))
11442 (mkdir-p target)
11443 (mkdir-p doc)
11444 (substitute* "bin/linux/fseq"
11445 (("java") (which "java"))
11446 (("\\$REALDIR/../lib/commons-cli-1.1.jar")
11447 (string-append (assoc-ref inputs "java-commons-cli")
11448 "/share/java/commons-cli.jar"))
11449 (("REALDIR=.*")
11450 (string-append "REALDIR=" bin "\n")))
11451 (install-file "README.txt" doc)
11452 (install-file "bin/linux/fseq" bin)
11453 (install-file "build~/fseq.jar" lib)
11454 (copy-recursively "lib" lib)
11455 #t))))))
11456 (inputs
11457 `(("perl" ,perl)
11458 ("java-commons-cli" ,java-commons-cli)))
11459 (home-page "http://fureylab.web.unc.edu/software/fseq/")
11460 (synopsis "Feature density estimator for high-throughput sequence tags")
11461 (description
11462 "F-Seq is a software package that generates a continuous tag sequence
11463 density estimation allowing identification of biologically meaningful sites
11464 such as transcription factor binding sites (ChIP-seq) or regions of open
11465 chromatin (DNase-seq). Output can be displayed directly in the UCSC Genome
11466 Browser.")
11467 (license license:gpl3+))))
11468
11469 (define-public bismark
11470 (package
11471 (name "bismark")
11472 (version "0.20.1")
11473 (source
11474 (origin
11475 (method git-fetch)
11476 (uri (git-reference
11477 (url "https://github.com/FelixKrueger/Bismark.git")
11478 (commit version)))
11479 (file-name (string-append name "-" version "-checkout"))
11480 (sha256
11481 (base32
11482 "0xchm3rgilj6vfjnyzfzzymfd7djr64sbrmrvs3njbwi66jqbzw9"))))
11483 (build-system perl-build-system)
11484 (arguments
11485 `(#:tests? #f ; there are no tests
11486 #:modules ((guix build utils)
11487 (ice-9 popen)
11488 (srfi srfi-26)
11489 (guix build perl-build-system))
11490 #:phases
11491 (modify-phases %standard-phases
11492 ;; The bundled plotly.js is minified.
11493 (add-after 'unpack 'replace-plotly.js
11494 (lambda* (#:key inputs #:allow-other-keys)
11495 (let* ((file (assoc-ref inputs "plotly.js"))
11496 (installed "plotly/plotly.js"))
11497 (let ((minified (open-pipe* OPEN_READ "uglify-js" file)))
11498 (call-with-output-file installed
11499 (cut dump-port minified <>))))
11500 #t))
11501 (delete 'configure)
11502 (delete 'build)
11503 (replace 'install
11504 (lambda* (#:key inputs outputs #:allow-other-keys)
11505 (let* ((out (assoc-ref outputs "out"))
11506 (bin (string-append out "/bin"))
11507 (share (string-append out "/share/bismark"))
11508 (docdir (string-append out "/share/doc/bismark"))
11509 (docs '("Docs/Bismark_User_Guide.html"))
11510 (scripts '("bismark"
11511 "bismark_genome_preparation"
11512 "bismark_methylation_extractor"
11513 "bismark2bedGraph"
11514 "bismark2report"
11515 "coverage2cytosine"
11516 "deduplicate_bismark"
11517 "filter_non_conversion"
11518 "bam2nuc"
11519 "bismark2summary"
11520 "NOMe_filtering")))
11521 (substitute* "bismark2report"
11522 (("\\$RealBin/plotly")
11523 (string-append share "/plotly")))
11524 (mkdir-p share)
11525 (mkdir-p docdir)
11526 (mkdir-p bin)
11527 (for-each (lambda (file) (install-file file bin))
11528 scripts)
11529 (for-each (lambda (file) (install-file file docdir))
11530 docs)
11531 (copy-recursively "Docs/Images" (string-append docdir "/Images"))
11532 (copy-recursively "plotly"
11533 (string-append share "/plotly"))
11534
11535 ;; Fix references to gunzip
11536 (substitute* (map (lambda (file)
11537 (string-append bin "/" file))
11538 scripts)
11539 (("\"gunzip -c")
11540 (string-append "\"" (assoc-ref inputs "gzip")
11541 "/bin/gunzip -c")))
11542 #t))))))
11543 (inputs
11544 `(("gzip" ,gzip)
11545 ("perl-carp" ,perl-carp)
11546 ("perl-getopt-long" ,perl-getopt-long)))
11547 (native-inputs
11548 `(("plotly.js"
11549 ,(origin
11550 (method url-fetch)
11551 (uri (string-append "https://raw.githubusercontent.com/plotly/plotly.js/"
11552 "v1.39.4/dist/plotly.js"))
11553 (sha256
11554 (base32 "138mwsr4nf5qif4mrxx286mpnagxd1xwl6k8aidrjgknaqg88zyr"))))
11555 ("uglify-js" ,uglify-js)))
11556 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/bismark/")
11557 (synopsis "Map bisulfite treated sequence reads and analyze methylation")
11558 (description "Bismark is a program to map bisulfite treated sequencing
11559 reads to a genome of interest and perform methylation calls in a single step.
11560 The output can be easily imported into a genome viewer, such as SeqMonk, and
11561 enables a researcher to analyse the methylation levels of their samples
11562 straight away. Its main features are:
11563
11564 @itemize
11565 @item Bisulfite mapping and methylation calling in one single step
11566 @item Supports single-end and paired-end read alignments
11567 @item Supports ungapped and gapped alignments
11568 @item Alignment seed length, number of mismatches etc are adjustable
11569 @item Output discriminates between cytosine methylation in CpG, CHG
11570 and CHH context
11571 @end itemize\n")
11572 (license license:gpl3+)))
11573
11574 (define-public paml
11575 (package
11576 (name "paml")
11577 (version "4.9e")
11578 (source (origin
11579 (method url-fetch)
11580 (uri (string-append "http://abacus.gene.ucl.ac.uk/software/"
11581 "paml" version ".tgz"))
11582 (sha256
11583 (base32
11584 "13zf6h9fiqghwhch2h06x1zdr6s42plsnqahflp5g7myr3han3s6"))
11585 (modules '((guix build utils)))
11586 ;; Remove Windows binaries
11587 (snippet
11588 '(begin
11589 (for-each delete-file (find-files "." "\\.exe$"))
11590 #t))))
11591 (build-system gnu-build-system)
11592 (arguments
11593 `(#:tests? #f ; there are no tests
11594 #:make-flags '("CC=gcc")
11595 #:phases
11596 (modify-phases %standard-phases
11597 (replace 'configure
11598 (lambda _
11599 (substitute* "src/BFdriver.c"
11600 (("/bin/bash") (which "bash")))
11601 (chdir "src")
11602 #t))
11603 (replace 'install
11604 (lambda* (#:key outputs #:allow-other-keys)
11605 (let ((tools '("baseml" "basemlg" "codeml"
11606 "pamp" "evolver" "yn00" "chi2"))
11607 (bin (string-append (assoc-ref outputs "out") "/bin"))
11608 (docdir (string-append (assoc-ref outputs "out")
11609 "/share/doc/paml")))
11610 (mkdir-p bin)
11611 (for-each (lambda (file) (install-file file bin)) tools)
11612 (copy-recursively "../doc" docdir)
11613 #t))))))
11614 (home-page "http://abacus.gene.ucl.ac.uk/software/paml.html")
11615 (synopsis "Phylogentic analysis by maximum likelihood")
11616 (description "PAML (for Phylogentic Analysis by Maximum Likelihood)
11617 contains a few programs for model fitting and phylogenetic tree reconstruction
11618 using nucleotide or amino-acid sequence data.")
11619 ;; GPLv3 only
11620 (license license:gpl3)))
11621
11622 (define-public kallisto
11623 (package
11624 (name "kallisto")
11625 (version "0.44.0")
11626 (source (origin
11627 (method git-fetch)
11628 (uri (git-reference
11629 (url "https://github.com/pachterlab/kallisto.git")
11630 (commit (string-append "v" version))))
11631 (file-name (git-file-name name version))
11632 (sha256
11633 (base32
11634 "0nj382jiywqnpgvyhichajpkkh5r0bapn43f4dx40zdaq5v4m40m"))))
11635 (build-system cmake-build-system)
11636 (arguments
11637 `(#:tests? #f ; no "check" target
11638 #:phases
11639 (modify-phases %standard-phases
11640 (add-after 'unpack 'do-not-use-bundled-htslib
11641 (lambda _
11642 (substitute* "CMakeLists.txt"
11643 (("^ExternalProject_Add" m)
11644 (string-append "if (NEVER)\n" m))
11645 (("^\\)")
11646 (string-append ")\nendif(NEVER)"))
11647 (("include_directories\\(\\$\\{htslib_PREFIX.*" m)
11648 (string-append "# " m)))
11649 (substitute* "src/CMakeLists.txt"
11650 (("target_link_libraries\\(kallisto kallisto_core pthread \
11651 \\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/../ext/htslib/libhts.a\\)")
11652 "target_link_libraries(kallisto kallisto_core pthread hts)")
11653 (("include_directories\\(\\.\\./ext/htslib\\)") ""))
11654 #t)))))
11655 (inputs
11656 `(("hdf5" ,hdf5)
11657 ("htslib" ,htslib)
11658 ("zlib" ,zlib)))
11659 (home-page "http://pachterlab.github.io/kallisto/")
11660 (synopsis "Near-optimal RNA-Seq quantification")
11661 (description
11662 "Kallisto is a program for quantifying abundances of transcripts from
11663 RNA-Seq data, or more generally of target sequences using high-throughput
11664 sequencing reads. It is based on the novel idea of pseudoalignment for
11665 rapidly determining the compatibility of reads with targets, without the need
11666 for alignment. Pseudoalignment of reads preserves the key information needed
11667 for quantification, and kallisto is therefore not only fast, but also as
11668 accurate as existing quantification tools.")
11669 (license license:bsd-2)))
11670
11671 (define-public libgff
11672 (package
11673 (name "libgff")
11674 (version "1.0")
11675 (source (origin
11676 (method git-fetch)
11677 (uri (git-reference
11678 (url "https://github.com/Kingsford-Group/libgff.git")
11679 (commit (string-append "v" version))))
11680 (file-name (git-file-name name version))
11681 (sha256
11682 (base32
11683 "0n6vfjnq7a2mianipscbshrvbncss8z4zkgkbjw754p9043nfkps"))))
11684 (build-system cmake-build-system)
11685 (arguments `(#:tests? #f)) ; no tests included
11686 (home-page "https://github.com/Kingsford-Group/libgff")
11687 (synopsis "Parser library for reading/writing GFF files")
11688 (description "This is a simple \"libraryfication\" of the GFF/GTF parsing
11689 code that is used in the Cufflinks codebase. The goal of this library is to
11690 provide this functionality without the necessity of drawing in a heavy-weight
11691 dependency like SeqAn.")
11692 (license (license:x11-style "https://www.boost.org/LICENSE_1_0.txt"))))
11693
11694 (define-public libdivsufsort
11695 (package
11696 (name "libdivsufsort")
11697 (version "2.0.1")
11698 (source (origin
11699 (method git-fetch)
11700 (uri (git-reference
11701 (url "https://github.com/y-256/libdivsufsort.git")
11702 (commit version)))
11703 (file-name (git-file-name name version))
11704 (sha256
11705 (base32
11706 "0fgdz9fzihlvjjrxy01md1bv9vh12rkgkwbm90b1hj5xpbaqp7z2"))))
11707 (build-system cmake-build-system)
11708 (arguments
11709 '(#:tests? #f ; there are no tests
11710 #:configure-flags
11711 ;; Needed for rapmap and sailfish.
11712 '("-DBUILD_DIVSUFSORT64=ON")))
11713 (home-page "https://github.com/y-256/libdivsufsort")
11714 (synopsis "Lightweight suffix-sorting library")
11715 (description "libdivsufsort is a software library that implements a
11716 lightweight suffix array construction algorithm. This library provides a
11717 simple and an efficient C API to construct a suffix array and a
11718 Burrows-Wheeler transformed string from a given string over a constant-size
11719 alphabet. The algorithm runs in O(n log n) worst-case time using only 5n+O(1)
11720 bytes of memory space, where n is the length of the string.")
11721 (license license:expat)))
11722
11723 (define-public sailfish
11724 (package
11725 (name "sailfish")
11726 (version "0.10.1")
11727 (source (origin
11728 (method git-fetch)
11729 (uri (git-reference
11730 (url "https://github.com/kingsfordgroup/sailfish.git")
11731 (commit (string-append "v" version))))
11732 (file-name (git-file-name name version))
11733 (sha256
11734 (base32
11735 "1amcc5hqvsl42hg4x19bi9vy47cl874s0lw1fmi0hwsdk9i8c03v"))
11736 (modules '((guix build utils)))
11737 (snippet
11738 '(begin
11739 ;; Delete bundled headers for eigen3.
11740 (delete-file-recursively "include/eigen3/")
11741 #t))))
11742 (build-system cmake-build-system)
11743 (arguments
11744 `(#:configure-flags
11745 (list (string-append "-DBOOST_INCLUDEDIR="
11746 (assoc-ref %build-inputs "boost")
11747 "/include/")
11748 (string-append "-DBOOST_LIBRARYDIR="
11749 (assoc-ref %build-inputs "boost")
11750 "/lib/")
11751 (string-append "-DBoost_LIBRARIES="
11752 "-lboost_iostreams "
11753 "-lboost_filesystem "
11754 "-lboost_system "
11755 "-lboost_thread "
11756 "-lboost_timer "
11757 "-lboost_chrono "
11758 "-lboost_program_options")
11759 "-DBoost_FOUND=TRUE"
11760 ;; Don't download RapMap---we already have it!
11761 "-DFETCHED_RAPMAP=1")
11762 ;; Tests must be run after installation and the location of the test
11763 ;; data file must be overridden. But the tests fail. It looks like
11764 ;; they are not really meant to be run.
11765 #:tests? #f
11766 #:phases
11767 (modify-phases %standard-phases
11768 ;; Boost cannot be found, even though it's right there.
11769 (add-after 'unpack 'do-not-look-for-boost
11770 (lambda* (#:key inputs #:allow-other-keys)
11771 (substitute* "CMakeLists.txt"
11772 (("find_package\\(Boost 1\\.53\\.0") "#"))
11773 #t))
11774 (add-after 'unpack 'do-not-assign-to-macro
11775 (lambda _
11776 (substitute* "include/spdlog/details/format.cc"
11777 (("const unsigned CHAR_WIDTH = 1;") ""))
11778 #t))
11779 (add-after 'unpack 'prepare-rapmap
11780 (lambda* (#:key inputs #:allow-other-keys)
11781 (let ((src "external/install/src/rapmap/")
11782 (include "external/install/include/rapmap/")
11783 (rapmap (assoc-ref inputs "rapmap")))
11784 (mkdir-p "/tmp/rapmap")
11785 (invoke "tar" "xf"
11786 (assoc-ref inputs "rapmap")
11787 "-C" "/tmp/rapmap"
11788 "--strip-components=1")
11789 (mkdir-p src)
11790 (mkdir-p include)
11791 (for-each (lambda (file)
11792 (install-file file src))
11793 (find-files "/tmp/rapmap/src" "\\.(c|cpp)"))
11794 (copy-recursively "/tmp/rapmap/include" include))
11795 #t))
11796 (add-after 'unpack 'use-system-libraries
11797 (lambda* (#:key inputs #:allow-other-keys)
11798 (substitute* '("src/SailfishIndexer.cpp"
11799 "src/SailfishUtils.cpp"
11800 "src/SailfishQuantify.cpp"
11801 "src/FASTAParser.cpp"
11802 "include/PCA.hpp"
11803 "include/SailfishUtils.hpp"
11804 "include/SailfishIndex.hpp"
11805 "include/CollapsedEMOptimizer.hpp"
11806 "src/CollapsedEMOptimizer.cpp")
11807 (("#include \"jellyfish/config.h\"") ""))
11808 (substitute* "src/CMakeLists.txt"
11809 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
11810 (string-append (assoc-ref inputs "jellyfish")
11811 "/include/jellyfish-" ,(package-version jellyfish)))
11812 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
11813 (string-append (assoc-ref inputs "jellyfish")
11814 "/lib/libjellyfish-2.0.a"))
11815 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
11816 (string-append (assoc-ref inputs "libdivsufsort")
11817 "/lib/libdivsufsort.so"))
11818 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
11819 (string-append (assoc-ref inputs "libdivsufsort")
11820 "/lib/libdivsufsort64.so")))
11821 (substitute* "CMakeLists.txt"
11822 ;; Don't prefer static libs
11823 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
11824 (("find_package\\(Jellyfish.*") "")
11825 (("ExternalProject_Add\\(libjellyfish") "message(")
11826 (("ExternalProject_Add\\(libgff") "message(")
11827 (("ExternalProject_Add\\(libsparsehash") "message(")
11828 (("ExternalProject_Add\\(libdivsufsort") "message("))
11829
11830 ;; Ensure that Eigen headers can be found
11831 (setenv "CPLUS_INCLUDE_PATH"
11832 (string-append (getenv "CPLUS_INCLUDE_PATH")
11833 ":"
11834 (assoc-ref inputs "eigen")
11835 "/include/eigen3"))
11836 #t)))))
11837 (inputs
11838 `(("boost" ,boost)
11839 ("eigen" ,eigen)
11840 ("jemalloc" ,jemalloc)
11841 ("jellyfish" ,jellyfish)
11842 ("sparsehash" ,sparsehash)
11843 ("rapmap" ,(origin
11844 (method git-fetch)
11845 (uri (git-reference
11846 (url "https://github.com/COMBINE-lab/RapMap.git")
11847 (commit (string-append "sf-v" version))))
11848 (file-name (string-append "rapmap-sf-v" version "-checkout"))
11849 (sha256
11850 (base32
11851 "1hv79l5i576ykv5a1srj2p0q36yvyl5966m0fcy2lbi169ipjakf"))
11852 (modules '((guix build utils)))
11853 ;; These files are expected to be excluded.
11854 (snippet
11855 '(begin (delete-file-recursively "include/spdlog")
11856 (for-each delete-file '("include/xxhash.h"
11857 "src/xxhash.c"))
11858 #t))))
11859 ("libdivsufsort" ,libdivsufsort)
11860 ("libgff" ,libgff)
11861 ("tbb" ,tbb)
11862 ("zlib" ,zlib)))
11863 (native-inputs
11864 `(("pkg-config" ,pkg-config)))
11865 (home-page "http://www.cs.cmu.edu/~ckingsf/software/sailfish")
11866 (synopsis "Mapping-based isoform quantification from RNA-Seq reads")
11867 (description "Sailfish is a tool for genomic transcript quantification
11868 from RNA-seq data. It requires a set of target transcripts (either from a
11869 reference or de-novo assembly) to quantify. All you need to run sailfish is a
11870 fasta file containing your reference transcripts and a (set of) fasta/fastq
11871 file(s) containing your reads.")
11872 (license license:gpl3+)))
11873
11874 (define libstadenio-for-salmon
11875 (package
11876 (name "libstadenio")
11877 (version "1.14.8")
11878 (source (origin
11879 (method git-fetch)
11880 (uri (git-reference
11881 (url "https://github.com/COMBINE-lab/staden-io_lib.git")
11882 (commit (string-append "v" version))))
11883 (file-name (string-append name "-" version "-checkout"))
11884 (sha256
11885 (base32
11886 "1x8kxxqxl892vwfbprlbyfwkkv7c34ggkc94892x9x0g37x5nbwx"))))
11887 (build-system gnu-build-system)
11888 (arguments '(#:parallel-tests? #f)) ; not supported
11889 (inputs
11890 `(("zlib" ,zlib)))
11891 (native-inputs
11892 `(("perl" ,perl))) ; for tests
11893 (home-page "https://github.com/COMBINE-lab/staden-io_lib")
11894 (synopsis "General purpose trace and experiment file library")
11895 (description "This package provides a library of file reading and writing
11896 code to provide a general purpose Trace file (and Experiment File) reading
11897 interface.
11898
11899 The following file formats are supported:
11900
11901 @enumerate
11902 @item SCF trace files
11903 @item ABI trace files
11904 @item ALF trace files
11905 @item ZTR trace files
11906 @item SFF trace archives
11907 @item SRF trace archives
11908 @item Experiment files
11909 @item Plain text files
11910 @item SAM/BAM sequence files
11911 @item CRAM sequence files
11912 @end enumerate\n")
11913 (license license:bsd-3)))
11914
11915 (define spdlog-for-salmon
11916 (package
11917 (name "spdlog")
11918 (version "0.14.0")
11919 (source (origin
11920 (method git-fetch)
11921 (uri (git-reference
11922 (url "https://github.com/COMBINE-lab/spdlog.git")
11923 (commit (string-append "v" version))))
11924 (file-name (string-append name "-" version "-checkout"))
11925 (sha256
11926 (base32
11927 "13730429gwlabi432ilpnja3sfvy0nn2719vnhhmii34xcdyc57q"))))
11928 (build-system cmake-build-system)
11929 (home-page "https://github.com/COMBINE-lab/spdlog")
11930 (synopsis "Very fast C++ logging library")
11931 (description "Spdlog is a very fast header-only C++ logging library with
11932 performance as its primary goal.")
11933 (license license:expat)))
11934
11935 ;; This is a modified variant of bwa for use with Salmon. It installs a
11936 ;; library to avoid having to build this as part of Salmon.
11937 (define bwa-for-salmon
11938 (package (inherit bwa)
11939 (name "bwa")
11940 (version "0.7.12.5")
11941 (source (origin
11942 (method git-fetch)
11943 (uri (git-reference
11944 (url "https://github.com/COMBINE-lab/bwa.git")
11945 (commit (string-append "v" version))))
11946 (file-name (string-append "bwa-for-salmon-" version "-checkout"))
11947 (sha256
11948 (base32
11949 "1z2qa64y0c5hky10510x137mnzlhz6k8qf27csw4w9j6qihq95gb"))))
11950 (build-system gnu-build-system)
11951 (arguments
11952 '(#:tests? #f ;no "check" target
11953 #:phases
11954 (modify-phases %standard-phases
11955 (replace 'install
11956 (lambda* (#:key outputs #:allow-other-keys)
11957 (let* ((out (assoc-ref outputs "out"))
11958 (bin (string-append out "/bin"))
11959 (lib (string-append out "/lib"))
11960 (doc (string-append out "/share/doc/bwa"))
11961 (man (string-append out "/share/man/man1"))
11962 (inc (string-append out "/include/bwa")))
11963 (install-file "bwa" bin)
11964 (install-file "README.md" doc)
11965 (install-file "bwa.1" man)
11966 (install-file "libbwa.a" lib)
11967 (mkdir-p lib)
11968 (mkdir-p inc)
11969 (for-each (lambda (file)
11970 (install-file file inc))
11971 (find-files "." "\\.h$")))
11972 #t))
11973 ;; no "configure" script
11974 (delete 'configure))))))
11975
11976 (define-public salmon
11977 (package
11978 (name "salmon")
11979 (version "0.9.1")
11980 (source (origin
11981 (method git-fetch)
11982 (uri (git-reference
11983 (url "https://github.com/COMBINE-lab/salmon.git")
11984 (commit (string-append "v" version))))
11985 (file-name (string-append name "-" version "-checkout"))
11986 (sha256
11987 (base32
11988 "1zi1ff4i7y2ykk0vdzysgwzzzv166vg2x77pj1mf4baclavxj87a"))
11989 (modules '((guix build utils)))
11990 (snippet
11991 '(begin
11992 ;; Delete bundled headers for eigen3.
11993 (delete-file-recursively "include/eigen3/")
11994 #t))))
11995 (build-system cmake-build-system)
11996 (arguments
11997 `(#:configure-flags
11998 (list (string-append "-DBOOST_INCLUDEDIR="
11999 (assoc-ref %build-inputs "boost")
12000 "/include/")
12001 (string-append "-DBOOST_LIBRARYDIR="
12002 (assoc-ref %build-inputs "boost")
12003 "/lib/")
12004 (string-append "-DBoost_LIBRARIES="
12005 "-lboost_iostreams "
12006 "-lboost_filesystem "
12007 "-lboost_system "
12008 "-lboost_thread "
12009 "-lboost_timer "
12010 "-lboost_chrono "
12011 "-lboost_program_options")
12012 "-DBoost_FOUND=TRUE"
12013 "-DTBB_LIBRARIES=tbb tbbmalloc"
12014 ;; Don't download RapMap---we already have it!
12015 "-DFETCHED_RAPMAP=1")
12016 #:phases
12017 (modify-phases %standard-phases
12018 ;; Boost cannot be found, even though it's right there.
12019 (add-after 'unpack 'do-not-look-for-boost
12020 (lambda* (#:key inputs #:allow-other-keys)
12021 (substitute* "CMakeLists.txt"
12022 (("find_package\\(Boost 1\\.53\\.0") "#"))
12023 #t))
12024 (add-after 'unpack 'do-not-phone-home
12025 (lambda _
12026 (substitute* "src/Salmon.cpp"
12027 (("getVersionMessage\\(\\)") "\"\""))
12028 #t))
12029 (add-after 'unpack 'prepare-rapmap
12030 (lambda* (#:key inputs #:allow-other-keys)
12031 (let ((src "external/install/src/rapmap/")
12032 (include "external/install/include/rapmap/")
12033 (rapmap (assoc-ref inputs "rapmap")))
12034 (mkdir-p src)
12035 (mkdir-p include)
12036 (for-each (lambda (file)
12037 (install-file file src))
12038 (find-files (string-append rapmap "/src") "\\.(c|cpp)"))
12039 (copy-recursively (string-append rapmap "/include") include)
12040 (for-each delete-file '("external/install/include/rapmap/xxhash.h"
12041 "external/install/include/rapmap/FastxParser.hpp"
12042 "external/install/include/rapmap/concurrentqueue.h"
12043 "external/install/include/rapmap/FastxParserThreadUtils.hpp"
12044 "external/install/src/rapmap/FastxParser.cpp"
12045 "external/install/src/rapmap/xxhash.c")))
12046 #t))
12047 (add-after 'unpack 'use-system-libraries
12048 (lambda* (#:key inputs #:allow-other-keys)
12049 (substitute* "src/CMakeLists.txt"
12050 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
12051 (string-append (assoc-ref inputs "jellyfish")
12052 "/include/jellyfish-" ,(package-version jellyfish)))
12053 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
12054 (string-append (assoc-ref inputs "jellyfish")
12055 "/lib/libjellyfish-2.0.a"))
12056 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
12057 (string-append (assoc-ref inputs "libdivsufsort")
12058 "/lib/libdivsufsort.so"))
12059 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libstaden-read.a")
12060 (string-append (assoc-ref inputs "libstadenio-for-salmon")
12061 "/lib/libstaden-read.a"))
12062 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libbwa.a")
12063 (string-append (assoc-ref inputs "bwa") "/lib/libbwa.a"))
12064 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
12065 (string-append (assoc-ref inputs "libdivsufsort")
12066 "/lib/libdivsufsort64.so")))
12067 (substitute* "CMakeLists.txt"
12068 ;; Don't prefer static libs
12069 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
12070 (("set\\(TBB_LIBRARIES") "message(")
12071 (("find_package\\(Jellyfish.*") "")
12072 (("ExternalProject_Add\\(libcereal") "message(")
12073 (("ExternalProject_Add\\(libbwa") "message(")
12074 (("ExternalProject_Add\\(libjellyfish") "message(")
12075 (("ExternalProject_Add\\(libgff") "message(")
12076 (("ExternalProject_Add\\(libtbb") "message(")
12077 (("ExternalProject_Add\\(libspdlog") "message(")
12078 (("ExternalProject_Add\\(libdivsufsort") "message(")
12079 (("ExternalProject_Add\\(libstadenio") "message(")
12080 (("ExternalProject_Add_Step\\(") "message("))
12081
12082 ;; Ensure that all headers can be found
12083 (setenv "CPLUS_INCLUDE_PATH"
12084 (string-append (getenv "CPLUS_INCLUDE_PATH")
12085 ":"
12086 (assoc-ref inputs "bwa")
12087 "/include/bwa"
12088 ":"
12089 (assoc-ref inputs "eigen")
12090 "/include/eigen3"))
12091 (setenv "CPATH"
12092 (string-append (assoc-ref inputs "bwa")
12093 "/include/bwa"
12094 ":"
12095 (assoc-ref inputs "eigen")
12096 "/include/eigen3"))
12097 #t))
12098 ;; CMAKE_INSTALL_PREFIX does not exist when the tests are
12099 ;; run. It only exists after the install phase.
12100 (add-after 'unpack 'fix-tests
12101 (lambda _
12102 (substitute* "src/CMakeLists.txt"
12103 (("DTOPLEVEL_DIR=\\$\\{CMAKE_INSTALL_PREFIX")
12104 "DTOPLEVEL_DIR=${GAT_SOURCE_DIR"))
12105 #t)))))
12106 (inputs
12107 `(("boost" ,boost)
12108 ("bwa" ,bwa-for-salmon)
12109 ("bzip2" ,bzip2)
12110 ("cereal" ,cereal)
12111 ("eigen" ,eigen)
12112 ("rapmap" ,(origin
12113 (method git-fetch)
12114 (uri (git-reference
12115 (url "https://github.com/COMBINE-lab/RapMap.git")
12116 (commit (string-append "salmon-v" version))))
12117 (file-name (string-append "rapmap-salmon-v" version "-checkout"))
12118 (sha256
12119 (base32
12120 "1yc12yqsz6f0r8sg1qnk57xg34aqwc9jbqq6gd5ys28xw3plj98p"))))
12121 ("jemalloc" ,jemalloc)
12122 ("jellyfish" ,jellyfish)
12123 ("libgff" ,libgff)
12124 ("tbb" ,tbb)
12125 ("libdivsufsort" ,libdivsufsort)
12126 ("libstadenio-for-salmon" ,libstadenio-for-salmon)
12127 ("spdlog-for-salmon" ,spdlog-for-salmon)
12128 ("xz" ,xz)
12129 ("zlib" ,zlib)))
12130 (home-page "https://github.com/COMBINE-lab/salmon")
12131 (synopsis "Quantification from RNA-seq reads using lightweight alignments")
12132 (description "Salmon is a program to produce highly-accurate,
12133 transcript-level quantification estimates from RNA-seq data. Salmon achieves
12134 its accuracy and speed via a number of different innovations, including the
12135 use of lightweight alignments (accurate but fast-to-compute proxies for
12136 traditional read alignments) and massively-parallel stochastic collapsed
12137 variational inference.")
12138 (license license:gpl3+)))
12139
12140 (define-public python-loompy
12141 (package
12142 (name "python-loompy")
12143 (version "2.0.2")
12144 (source
12145 (origin
12146 (method url-fetch)
12147 (uri (pypi-uri "loompy" version))
12148 (sha256
12149 (base32
12150 "1drgv8j1hxqzzpnfg272x9djb6j8qr798w1pc2x8ikmfgyd9gh51"))))
12151 (build-system python-build-system)
12152 ;; There are no tests
12153 (arguments '(#:tests? #f))
12154 (propagated-inputs
12155 `(("python-h5py" ,python-h5py)
12156 ("python-numpy" ,python-numpy)
12157 ("python-scipy" ,python-scipy)))
12158 (home-page "https://github.com/linnarsson-lab/loompy")
12159 (synopsis "Work with .loom files for single-cell RNA-seq data")
12160 (description "The loom file format is an efficient format for very large
12161 omics datasets, consisting of a main matrix, optional additional layers, a
12162 variable number of row and column annotations. Loom also supports sparse
12163 graphs. This library makes it easy to work with @file{.loom} files for
12164 single-cell RNA-seq data.")
12165 (license license:bsd-3)))
12166
12167 ;; We cannot use the latest commit because it requires Java 9.
12168 (define-public java-forester
12169 (let ((commit "86b07efe302d5094b42deed9260f719a4c4ac2e6")
12170 (revision "1"))
12171 (package
12172 (name "java-forester")
12173 (version (string-append "0-" revision "." (string-take commit 7)))
12174 (source (origin
12175 (method git-fetch)
12176 (uri (git-reference
12177 (url "https://github.com/cmzmasek/forester.git")
12178 (commit commit)))
12179 (file-name (string-append name "-" version "-checkout"))
12180 (sha256
12181 (base32
12182 "0vxavc1yrf84yrnf20dq26hi0lglidk8d382xrxsy4qmlbjd276z"))
12183 (modules '((guix build utils)))
12184 (snippet
12185 '(begin
12186 ;; Delete bundled jars and pre-built classes
12187 (delete-file-recursively "forester/java/resources")
12188 (delete-file-recursively "forester/java/classes")
12189 (for-each delete-file (find-files "forester/java/" "\\.jar$"))
12190 ;; Delete bundled applications
12191 (delete-file-recursively "forester_applications")
12192 #t))))
12193 (build-system ant-build-system)
12194 (arguments
12195 `(#:tests? #f ; there are none
12196 #:jdk ,icedtea-8
12197 #:modules ((guix build ant-build-system)
12198 (guix build utils)
12199 (guix build java-utils)
12200 (sxml simple)
12201 (sxml transform))
12202 #:phases
12203 (modify-phases %standard-phases
12204 (add-after 'unpack 'chdir
12205 (lambda _ (chdir "forester/java") #t))
12206 (add-after 'chdir 'fix-dependencies
12207 (lambda _
12208 (chmod "build.xml" #o664)
12209 (call-with-output-file "build.xml.new"
12210 (lambda (port)
12211 (sxml->xml
12212 (pre-post-order
12213 (with-input-from-file "build.xml"
12214 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12215 `(;; Remove all unjar tags to avoid repacking classes.
12216 (unjar . ,(lambda _ '()))
12217 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12218 (*text* . ,(lambda (_ txt) txt))))
12219 port)))
12220 (rename-file "build.xml.new" "build.xml")
12221 #t))
12222 ;; FIXME: itext is difficult to package as it depends on a few
12223 ;; unpackaged libraries.
12224 (add-after 'chdir 'remove-dependency-on-unpackaged-itext
12225 (lambda _
12226 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12227 (substitute* "src/org/forester/archaeopteryx/MainFrame.java"
12228 (("pdf_written_to = PdfExporter.*")
12229 "throw new IOException(\"PDF export is not available.\");"))
12230 #t))
12231 ;; There is no install target
12232 (replace 'install (install-jars ".")))))
12233 (propagated-inputs
12234 `(("java-commons-codec" ,java-commons-codec)
12235 ("java-openchart2" ,java-openchart2)))
12236 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12237 (synopsis "Phylogenomics libraries for Java")
12238 (description "Forester is a collection of Java libraries for
12239 phylogenomics and evolutionary biology research. It includes support for
12240 reading, writing, and exporting phylogenetic trees.")
12241 (license license:lgpl2.1+))))
12242
12243 (define-public java-forester-1.005
12244 (package
12245 (name "java-forester")
12246 (version "1.005")
12247 (source (origin
12248 (method url-fetch)
12249 (uri (string-append "http://search.maven.org/remotecontent?"
12250 "filepath=org/biojava/thirdparty/forester/"
12251 version "/forester-" version "-sources.jar"))
12252 (file-name (string-append name "-" version ".jar"))
12253 (sha256
12254 (base32
12255 "04r8qv4rk3p71z4ajrvp11py1z46qrx0047j3zzs79s6lnsm3lcv"))))
12256 (build-system ant-build-system)
12257 (arguments
12258 `(#:tests? #f ; there are none
12259 #:jdk ,icedtea-8
12260 #:modules ((guix build ant-build-system)
12261 (guix build utils)
12262 (guix build java-utils)
12263 (sxml simple)
12264 (sxml transform))
12265 #:phases
12266 (modify-phases %standard-phases
12267 (add-after 'unpack 'fix-dependencies
12268 (lambda* (#:key inputs #:allow-other-keys)
12269 (call-with-output-file "build.xml"
12270 (lambda (port)
12271 (sxml->xml
12272 (pre-post-order
12273 (with-input-from-file "src/build.xml"
12274 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12275 `(;; Remove all unjar tags to avoid repacking classes.
12276 (unjar . ,(lambda _ '()))
12277 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12278 (*text* . ,(lambda (_ txt) txt))))
12279 port)))
12280 (copy-file (assoc-ref inputs "synth_look_and_feel_1.xml")
12281 "synth_look_and_feel_1.xml")
12282 (copy-file (assoc-ref inputs "phyloxml.xsd")
12283 "phyloxml.xsd")
12284 (substitute* "build.xml"
12285 (("../resources/synth_laf/synth_look_and_feel_1.xml")
12286 "synth_look_and_feel_1.xml")
12287 (("../resources/phyloxml_schema/1.10/phyloxml.xsd")
12288 "phyloxml.xsd"))
12289 #t))
12290 ;; FIXME: itext is difficult to package as it depends on a few
12291 ;; unpackaged libraries.
12292 (add-after 'unpack 'remove-dependency-on-unpackaged-itext
12293 (lambda _
12294 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12295 (substitute* '("src/org/forester/archaeopteryx/MainFrame.java"
12296 "src/org/forester/archaeopteryx/MainFrameApplication.java")
12297 (("pdf_written_to = PdfExporter.*")
12298 "throw new IOException(\"PDF export is not available.\"); /*")
12299 ((".getPrintSizeX\\(\\), getOptions\\(\\).getPrintSizeY\\(\\) \\);") "*/")
12300 (("getCurrentTreePanel\\(\\).getHeight\\(\\) \\);") "*/"))
12301 #t))
12302 (add-after 'unpack 'delete-pre-built-classes
12303 (lambda _ (delete-file-recursively "src/classes") #t))
12304 ;; There is no install target
12305 (replace 'install (install-jars ".")))))
12306 (propagated-inputs
12307 `(("java-commons-codec" ,java-commons-codec)
12308 ("java-openchart2" ,java-openchart2)))
12309 ;; The source archive does not contain the resources.
12310 (native-inputs
12311 `(("phyloxml.xsd"
12312 ,(origin
12313 (method url-fetch)
12314 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12315 "b61cc2dcede0bede317db362472333115756b8c6/"
12316 "forester/resources/phyloxml_schema/1.10/phyloxml.xsd"))
12317 (file-name (string-append name "-phyloxml-" version ".xsd"))
12318 (sha256
12319 (base32
12320 "1zxc4m8sn4n389nqdnpxa8d0k17qnr3pm2y5y6g6vh4k0zm52npv"))))
12321 ("synth_look_and_feel_1.xml"
12322 ,(origin
12323 (method url-fetch)
12324 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12325 "29e04321615da6b35c1e15c60e52caf3f21d8e6a/"
12326 "forester/java/classes/resources/synth_look_and_feel_1.xml"))
12327 (file-name (string-append name "-synth-look-and-feel-" version ".xml"))
12328 (sha256
12329 (base32
12330 "1gv5602gv4k7y7713y75a4jvj7i9s7nildsbdl7n9q10sc2ikg8h"))))))
12331 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12332 (synopsis "Phylogenomics libraries for Java")
12333 (description "Forester is a collection of Java libraries for
12334 phylogenomics and evolutionary biology research. It includes support for
12335 reading, writing, and exporting phylogenetic trees.")
12336 (license license:lgpl2.1+)))
12337
12338 (define-public java-biojava-core
12339 (package
12340 (name "java-biojava-core")
12341 (version "4.2.11")
12342 (source (origin
12343 (method git-fetch)
12344 (uri (git-reference
12345 (url "https://github.com/biojava/biojava")
12346 (commit (string-append "biojava-" version))))
12347 (file-name (string-append name "-" version "-checkout"))
12348 (sha256
12349 (base32
12350 "1bvryh2bpsvash8ln79cmc9sqm8qw72hz4xzwqxcrjm8ssxszhqk"))))
12351 (build-system ant-build-system)
12352 (arguments
12353 `(#:jdk ,icedtea-8
12354 #:jar-name "biojava-core.jar"
12355 #:source-dir "biojava-core/src/main/java/"
12356 #:test-dir "biojava-core/src/test"
12357 ;; These tests seem to require internet access.
12358 #:test-exclude (list "**/SearchIOTest.java"
12359 "**/BlastXMLParserTest.java"
12360 "**/GenbankCookbookTest.java"
12361 "**/GenbankProxySequenceReaderTest.java")
12362 #:phases
12363 (modify-phases %standard-phases
12364 (add-before 'build 'copy-resources
12365 (lambda _
12366 (copy-recursively "biojava-core/src/main/resources"
12367 "build/classes")
12368 #t))
12369 (add-before 'check 'copy-test-resources
12370 (lambda _
12371 (copy-recursively "biojava-core/src/test/resources"
12372 "build/test-classes")
12373 #t)))))
12374 (propagated-inputs
12375 `(("java-log4j-api" ,java-log4j-api)
12376 ("java-log4j-core" ,java-log4j-core)
12377 ("java-slf4j-api" ,java-slf4j-api)
12378 ("java-slf4j-simple" ,java-slf4j-simple)))
12379 (native-inputs
12380 `(("java-junit" ,java-junit)
12381 ("java-hamcrest-core" ,java-hamcrest-core)))
12382 (home-page "http://biojava.org")
12383 (synopsis "Core libraries of Java framework for processing biological data")
12384 (description "BioJava is a project dedicated to providing a Java framework
12385 for processing biological data. It provides analytical and statistical
12386 routines, parsers for common file formats, reference implementations of
12387 popular algorithms, and allows the manipulation of sequences and 3D
12388 structures. The goal of the biojava project is to facilitate rapid
12389 application development for bioinformatics.
12390
12391 This package provides the core libraries.")
12392 (license license:lgpl2.1+)))
12393
12394 (define-public java-biojava-phylo
12395 (package (inherit java-biojava-core)
12396 (name "java-biojava-phylo")
12397 (build-system ant-build-system)
12398 (arguments
12399 `(#:jdk ,icedtea-8
12400 #:jar-name "biojava-phylo.jar"
12401 #:source-dir "biojava-phylo/src/main/java/"
12402 #:test-dir "biojava-phylo/src/test"
12403 #:phases
12404 (modify-phases %standard-phases
12405 (add-before 'build 'copy-resources
12406 (lambda _
12407 (copy-recursively "biojava-phylo/src/main/resources"
12408 "build/classes")
12409 #t))
12410 (add-before 'check 'copy-test-resources
12411 (lambda _
12412 (copy-recursively "biojava-phylo/src/test/resources"
12413 "build/test-classes")
12414 #t)))))
12415 (propagated-inputs
12416 `(("java-log4j-api" ,java-log4j-api)
12417 ("java-log4j-core" ,java-log4j-core)
12418 ("java-slf4j-api" ,java-slf4j-api)
12419 ("java-slf4j-simple" ,java-slf4j-simple)
12420 ("java-biojava-core" ,java-biojava-core)
12421 ("java-forester" ,java-forester)))
12422 (native-inputs
12423 `(("java-junit" ,java-junit)
12424 ("java-hamcrest-core" ,java-hamcrest-core)))
12425 (home-page "http://biojava.org")
12426 (synopsis "Biojava interface to the forester phylogenomics library")
12427 (description "The phylo module provides a biojava interface layer to the
12428 forester phylogenomics library for constructing phylogenetic trees.")))
12429
12430 (define-public java-biojava-alignment
12431 (package (inherit java-biojava-core)
12432 (name "java-biojava-alignment")
12433 (build-system ant-build-system)
12434 (arguments
12435 `(#:jdk ,icedtea-8
12436 #:jar-name "biojava-alignment.jar"
12437 #:source-dir "biojava-alignment/src/main/java/"
12438 #:test-dir "biojava-alignment/src/test"
12439 #:phases
12440 (modify-phases %standard-phases
12441 (add-before 'build 'copy-resources
12442 (lambda _
12443 (copy-recursively "biojava-alignment/src/main/resources"
12444 "build/classes")
12445 #t))
12446 (add-before 'check 'copy-test-resources
12447 (lambda _
12448 (copy-recursively "biojava-alignment/src/test/resources"
12449 "build/test-classes")
12450 #t)))))
12451 (propagated-inputs
12452 `(("java-log4j-api" ,java-log4j-api)
12453 ("java-log4j-core" ,java-log4j-core)
12454 ("java-slf4j-api" ,java-slf4j-api)
12455 ("java-slf4j-simple" ,java-slf4j-simple)
12456 ("java-biojava-core" ,java-biojava-core)
12457 ("java-biojava-phylo" ,java-biojava-phylo)
12458 ("java-forester" ,java-forester)))
12459 (native-inputs
12460 `(("java-junit" ,java-junit)
12461 ("java-hamcrest-core" ,java-hamcrest-core)))
12462 (home-page "http://biojava.org")
12463 (synopsis "Biojava API for genetic sequence alignment")
12464 (description "The alignment module of BioJava provides an API that
12465 contains
12466
12467 @itemize
12468 @item implementations of dynamic programming algorithms for sequence
12469 alignment;
12470 @item reading and writing of popular alignment file formats;
12471 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12472 @end itemize\n")))
12473
12474 (define-public java-biojava-core-4.0
12475 (package (inherit java-biojava-core)
12476 (name "java-biojava-core")
12477 (version "4.0.0")
12478 (source (origin
12479 (method git-fetch)
12480 (uri (git-reference
12481 (url "https://github.com/biojava/biojava")
12482 (commit (string-append "biojava-" version))))
12483 (file-name (string-append name "-" version "-checkout"))
12484 (sha256
12485 (base32
12486 "13675f6y9aqi7bi2lk3s1z7a22ynccjiqwa8izh7p97xi9wsfmd8"))))))
12487
12488 (define-public java-biojava-phylo-4.0
12489 (package (inherit java-biojava-core-4.0)
12490 (name "java-biojava-phylo")
12491 (build-system ant-build-system)
12492 (arguments
12493 `(#:jdk ,icedtea-8
12494 #:jar-name "biojava-phylo.jar"
12495 #:source-dir "biojava-phylo/src/main/java/"
12496 #:test-dir "biojava-phylo/src/test"
12497 #:phases
12498 (modify-phases %standard-phases
12499 (add-before 'build 'copy-resources
12500 (lambda _
12501 (copy-recursively "biojava-phylo/src/main/resources"
12502 "build/classes")
12503 #t))
12504 (add-before 'check 'copy-test-resources
12505 (lambda _
12506 (copy-recursively "biojava-phylo/src/test/resources"
12507 "build/test-classes")
12508 #t)))))
12509 (propagated-inputs
12510 `(("java-log4j-api" ,java-log4j-api)
12511 ("java-log4j-core" ,java-log4j-core)
12512 ("java-slf4j-api" ,java-slf4j-api)
12513 ("java-slf4j-simple" ,java-slf4j-simple)
12514 ("java-biojava-core" ,java-biojava-core-4.0)
12515 ("java-forester" ,java-forester-1.005)))
12516 (native-inputs
12517 `(("java-junit" ,java-junit)
12518 ("java-hamcrest-core" ,java-hamcrest-core)))
12519 (home-page "http://biojava.org")
12520 (synopsis "Biojava interface to the forester phylogenomics library")
12521 (description "The phylo module provides a biojava interface layer to the
12522 forester phylogenomics library for constructing phylogenetic trees.")))
12523
12524 (define-public java-biojava-alignment-4.0
12525 (package (inherit java-biojava-core-4.0)
12526 (name "java-biojava-alignment")
12527 (build-system ant-build-system)
12528 (arguments
12529 `(#:jdk ,icedtea-8
12530 #:jar-name "biojava-alignment.jar"
12531 #:source-dir "biojava-alignment/src/main/java/"
12532 #:test-dir "biojava-alignment/src/test"
12533 #:phases
12534 (modify-phases %standard-phases
12535 (add-before 'build 'copy-resources
12536 (lambda _
12537 (copy-recursively "biojava-alignment/src/main/resources"
12538 "build/classes")
12539 #t))
12540 (add-before 'check 'copy-test-resources
12541 (lambda _
12542 (copy-recursively "biojava-alignment/src/test/resources"
12543 "build/test-classes")
12544 #t)))))
12545 (propagated-inputs
12546 `(("java-log4j-api" ,java-log4j-api)
12547 ("java-log4j-core" ,java-log4j-core)
12548 ("java-slf4j-api" ,java-slf4j-api)
12549 ("java-slf4j-simple" ,java-slf4j-simple)
12550 ("java-biojava-core" ,java-biojava-core-4.0)
12551 ("java-biojava-phylo" ,java-biojava-phylo-4.0)
12552 ("java-forester" ,java-forester-1.005)))
12553 (native-inputs
12554 `(("java-junit" ,java-junit)
12555 ("java-hamcrest-core" ,java-hamcrest-core)))
12556 (home-page "http://biojava.org")
12557 (synopsis "Biojava API for genetic sequence alignment")
12558 (description "The alignment module of BioJava provides an API that
12559 contains
12560
12561 @itemize
12562 @item implementations of dynamic programming algorithms for sequence
12563 alignment;
12564 @item reading and writing of popular alignment file formats;
12565 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12566 @end itemize\n")))
12567
12568 (define-public dropseq-tools
12569 (package
12570 (name "dropseq-tools")
12571 (version "1.13")
12572 (source
12573 (origin
12574 (method url-fetch)
12575 (uri "http://mccarrolllab.com/download/1276/")
12576 (file-name (string-append "dropseq-tools-" version ".zip"))
12577 (sha256
12578 (base32
12579 "0yrffckxqk5l8b5xb6z4laq157zd9mdypr2p4b4vq2bhjzi1sj0s"))
12580 ;; Delete bundled libraries
12581 (modules '((guix build utils)))
12582 (snippet
12583 '(begin
12584 (for-each delete-file (find-files "jar/lib" "\\.jar$"))
12585 (delete-file-recursively "3rdParty")
12586 #t))))
12587 (build-system ant-build-system)
12588 (arguments
12589 `(#:tests? #f ; test data are not included
12590 #:test-target "test"
12591 #:build-target "all"
12592 #:source-dir "public/src/"
12593 #:jdk ,icedtea-8
12594 #:make-flags
12595 (list (string-append "-Dpicard.executable.dir="
12596 (assoc-ref %build-inputs "java-picard")
12597 "/share/java/"))
12598 #:modules ((ice-9 match)
12599 (srfi srfi-1)
12600 (guix build utils)
12601 (guix build java-utils)
12602 (guix build ant-build-system))
12603 #:phases
12604 (modify-phases %standard-phases
12605 ;; FIXME: fails with "java.io.FileNotFoundException:
12606 ;; /gnu/store/…-dropseq-tools-1.13/share/java/lib/biojava-alignment.jar"
12607 (delete 'generate-jar-indices)
12608 ;; All dependencies must be linked to "lib", because that's where
12609 ;; they will be searched for when the Class-Path property of the
12610 ;; manifest is computed.
12611 (add-after 'unpack 'record-references
12612 (lambda* (#:key inputs #:allow-other-keys)
12613 (mkdir-p "jar/lib")
12614 (let ((dirs (filter-map (match-lambda
12615 ((name . dir)
12616 (if (and (string-prefix? "java-" name)
12617 (not (string=? name "java-testng")))
12618 dir #f)))
12619 inputs)))
12620 (for-each (lambda (jar)
12621 (symlink jar (string-append "jar/lib/" (basename jar))))
12622 (append-map (lambda (dir) (find-files dir "\\.jar$"))
12623 dirs)))
12624 #t))
12625 ;; There is no installation target
12626 (replace 'install
12627 (lambda* (#:key inputs outputs #:allow-other-keys)
12628 (let* ((out (assoc-ref outputs "out"))
12629 (bin (string-append out "/bin"))
12630 (share (string-append out "/share/java/"))
12631 (lib (string-append share "/lib/"))
12632 (scripts (list "BAMTagHistogram"
12633 "BAMTagofTagCounts"
12634 "BaseDistributionAtReadPosition"
12635 "CollapseBarcodesInPlace"
12636 "CollapseTagWithContext"
12637 "ConvertToRefFlat"
12638 "CreateIntervalsFiles"
12639 "DetectBeadSynthesisErrors"
12640 "DigitalExpression"
12641 "Drop-seq_alignment.sh"
12642 "FilterBAM"
12643 "FilterBAMByTag"
12644 "GatherGeneGCLength"
12645 "GatherMolecularBarcodeDistributionByGene"
12646 "GatherReadQualityMetrics"
12647 "PolyATrimmer"
12648 "ReduceGTF"
12649 "SelectCellsByNumTranscripts"
12650 "SingleCellRnaSeqMetricsCollector"
12651 "TagBamWithReadSequenceExtended"
12652 "TagReadWithGeneExon"
12653 "TagReadWithInterval"
12654 "TrimStartingSequence"
12655 "ValidateReference")))
12656 (for-each mkdir-p (list bin share lib))
12657 (install-file "dist/dropseq.jar" share)
12658 (for-each (lambda (script)
12659 (chmod script #o555)
12660 (install-file script bin))
12661 scripts)
12662 (substitute* (map (lambda (script)
12663 (string-append bin "/" script))
12664 scripts)
12665 (("^java") (which "java"))
12666 (("jar_deploy_dir=.*")
12667 (string-append "jar_deploy_dir=" share "\n"))))
12668 #t))
12669 ;; FIXME: We do this after stripping jars because we don't want it to
12670 ;; copy all these jars and strip them. We only want to install
12671 ;; links. Arguably, this is a problem with the ant-build-system.
12672 (add-after 'strip-jar-timestamps 'install-links
12673 (lambda* (#:key outputs #:allow-other-keys)
12674 (let* ((out (assoc-ref outputs "out"))
12675 (share (string-append out "/share/java/"))
12676 (lib (string-append share "/lib/")))
12677 (for-each (lambda (jar)
12678 (symlink (readlink jar)
12679 (string-append lib (basename jar))))
12680 (find-files "jar/lib" "\\.jar$")))
12681 #t)))))
12682 (inputs
12683 `(("jdk" ,icedtea-8)
12684 ("java-picard" ,java-picard-2.10.3)
12685 ("java-log4j-1.2-api" ,java-log4j-1.2-api)
12686 ("java-commons-math3" ,java-commons-math3)
12687 ("java-commons-jexl2" ,java-commons-jexl-2)
12688 ("java-commons-collections4" ,java-commons-collections4)
12689 ("java-commons-lang2" ,java-commons-lang)
12690 ("java-commons-io" ,java-commons-io)
12691 ("java-snappy-1.0.3-rc3" ,java-snappy-1)
12692 ("java-guava" ,java-guava)
12693 ("java-la4j" ,java-la4j)
12694 ("java-biojava-core" ,java-biojava-core-4.0)
12695 ("java-biojava-alignment" ,java-biojava-alignment-4.0)
12696 ("java-jdistlib" ,java-jdistlib)
12697 ("java-simple-xml" ,java-simple-xml)
12698 ("java-snakeyaml" ,java-snakeyaml)))
12699 (native-inputs
12700 `(("unzip" ,unzip)
12701 ("java-testng" ,java-testng)))
12702 (home-page "http://mccarrolllab.com/dropseq/")
12703 (synopsis "Tools for Drop-seq analyses")
12704 (description "Drop-seq is a technology to enable biologists to
12705 analyze RNA expression genome-wide in thousands of individual cells at
12706 once. This package provides tools to perform Drop-seq analyses.")
12707 (license license:expat)))
12708
12709 (define-public pigx-rnaseq
12710 (package
12711 (name "pigx-rnaseq")
12712 (version "0.0.5")
12713 (source (origin
12714 (method url-fetch)
12715 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_rnaseq/"
12716 "releases/download/v" version
12717 "/pigx_rnaseq-" version ".tar.gz"))
12718 (sha256
12719 (base32
12720 "05gn658zpj9xki5dbs728z9zxq1mcm25hkwr5vzwqxsfi15l5f2l"))))
12721 (build-system gnu-build-system)
12722 (arguments
12723 `(#:parallel-tests? #f ; not supported
12724 #:phases
12725 (modify-phases %standard-phases
12726 ;; "test.sh" runs STAR, which requires excessive amounts of memory.
12727 (add-after 'unpack 'disable-resource-intensive-test
12728 (lambda _
12729 (substitute* "Makefile.in"
12730 (("(^ tests/test_trim_galore/test.sh).*" _ m) m)
12731 (("^ tests/test_multiqc/test.sh") "")
12732 (("^ test.sh") ""))
12733 #t)))))
12734 (inputs
12735 `(("gzip" ,gzip)
12736 ("snakemake" ,snakemake)
12737 ("fastqc" ,fastqc)
12738 ("multiqc" ,multiqc)
12739 ("star" ,star)
12740 ("trim-galore" ,trim-galore)
12741 ("htseq" ,htseq)
12742 ("samtools" ,samtools)
12743 ("bedtools" ,bedtools)
12744 ("r-minimal" ,r-minimal)
12745 ("r-rmarkdown" ,r-rmarkdown)
12746 ("r-ggplot2" ,r-ggplot2)
12747 ("r-ggrepel" ,r-ggrepel)
12748 ("r-gprofiler" ,r-gprofiler)
12749 ("r-deseq2" ,r-deseq2)
12750 ("r-dt" ,r-dt)
12751 ("r-knitr" ,r-knitr)
12752 ("r-pheatmap" ,r-pheatmap)
12753 ("r-corrplot" ,r-corrplot)
12754 ("r-reshape2" ,r-reshape2)
12755 ("r-plotly" ,r-plotly)
12756 ("r-scales" ,r-scales)
12757 ("r-summarizedexperiment" ,r-summarizedexperiment)
12758 ("r-crosstalk" ,r-crosstalk)
12759 ("r-tximport" ,r-tximport)
12760 ("r-rtracklayer" ,r-rtracklayer)
12761 ("r-rjson" ,r-rjson)
12762 ("salmon" ,salmon)
12763 ("ghc-pandoc" ,ghc-pandoc)
12764 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12765 ("python-wrapper" ,python-wrapper)
12766 ("python-pyyaml" ,python-pyyaml)))
12767 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12768 (synopsis "Analysis pipeline for RNA sequencing experiments")
12769 (description "PiGX RNAseq is an analysis pipeline for preprocessing and
12770 reporting for RNA sequencing experiments. It is easy to use and produces high
12771 quality reports. The inputs are reads files from the sequencing experiment,
12772 and a configuration file which describes the experiment. In addition to
12773 quality control of the experiment, the pipeline produces a differential
12774 expression report comparing samples in an easily configurable manner.")
12775 (license license:gpl3+)))
12776
12777 (define-public pigx-chipseq
12778 (package
12779 (name "pigx-chipseq")
12780 (version "0.0.31")
12781 (source (origin
12782 (method url-fetch)
12783 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_chipseq/"
12784 "releases/download/v" version
12785 "/pigx_chipseq-" version ".tar.gz"))
12786 (sha256
12787 (base32
12788 "0l3vd9xwqzap3mmyj8xwqp84kj7scbq308diqnwg2albphl75xqs"))))
12789 (build-system gnu-build-system)
12790 ;; parts of the tests rely on access to the network
12791 (arguments '(#:tests? #f))
12792 (inputs
12793 `(("grep" ,grep)
12794 ("coreutils" ,coreutils)
12795 ("r-minimal" ,r-minimal)
12796 ("r-argparser" ,r-argparser)
12797 ("r-biocparallel" ,r-biocparallel)
12798 ("r-biostrings" ,r-biostrings)
12799 ("r-chipseq" ,r-chipseq)
12800 ("r-data-table" ,r-data-table)
12801 ("r-dplyr" ,r-dplyr)
12802 ("r-genomation" ,r-genomation)
12803 ("r-genomicalignments" ,r-genomicalignments)
12804 ("r-genomicranges" ,r-genomicranges)
12805 ("r-rsamtools" ,r-rsamtools)
12806 ("r-rtracklayer" ,r-rtracklayer)
12807 ("r-s4vectors" ,r-s4vectors)
12808 ("r-stringr" ,r-stringr)
12809 ("r-tibble" ,r-tibble)
12810 ("r-tidyr" ,r-tidyr)
12811 ("r-jsonlite" ,r-jsonlite)
12812 ("r-heatmaply" ,r-heatmaply)
12813 ("r-htmlwidgets" ,r-htmlwidgets)
12814 ("r-ggplot2" ,r-ggplot2)
12815 ("r-plotly" ,r-plotly)
12816 ("r-rmarkdown" ,r-rmarkdown)
12817 ("python-wrapper" ,python-wrapper)
12818 ("python-pyyaml" ,python-pyyaml)
12819 ("python-magic" ,python-magic)
12820 ("python-xlrd" ,python-xlrd)
12821 ("trim-galore" ,trim-galore)
12822 ("macs" ,macs)
12823 ("multiqc" ,multiqc)
12824 ("perl" ,perl)
12825 ("ghc-pandoc" ,ghc-pandoc)
12826 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12827 ("fastqc" ,fastqc)
12828 ("bowtie" ,bowtie)
12829 ("idr" ,idr)
12830 ("snakemake" ,snakemake)
12831 ("samtools" ,samtools)
12832 ("bedtools" ,bedtools)
12833 ("kentutils" ,kentutils)))
12834 (native-inputs
12835 `(("python-pytest" ,python-pytest)))
12836 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12837 (synopsis "Analysis pipeline for ChIP sequencing experiments")
12838 (description "PiGX ChIPseq is an analysis pipeline for preprocessing, peak
12839 calling and reporting for ChIP sequencing experiments. It is easy to use and
12840 produces high quality reports. The inputs are reads files from the sequencing
12841 experiment, and a configuration file which describes the experiment. In
12842 addition to quality control of the experiment, the pipeline enables to set up
12843 multiple peak calling analysis and allows the generation of a UCSC track hub
12844 in an easily configurable manner.")
12845 (license license:gpl3+)))
12846
12847 (define-public pigx-bsseq
12848 (package
12849 (name "pigx-bsseq")
12850 (version "0.0.10")
12851 (source (origin
12852 (method url-fetch)
12853 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_bsseq/"
12854 "releases/download/v" version
12855 "/pigx_bsseq-" version ".tar.gz"))
12856 (sha256
12857 (base32
12858 "0l97wvkq4diq8lcarraj33bby1zzf0w804jwi8mlc5qddp8idwhy"))))
12859 (build-system gnu-build-system)
12860 (arguments
12861 `(#:phases
12862 (modify-phases %standard-phases
12863 (add-before 'check 'set-timezone
12864 ;; The readr package is picky about timezones.
12865 (lambda* (#:key inputs #:allow-other-keys)
12866 (setenv "TZ" "UTC+1")
12867 (setenv "TZDIR"
12868 (string-append (assoc-ref inputs "tzdata")
12869 "/share/zoneinfo"))
12870 #t)))))
12871 (native-inputs
12872 `(("tzdata" ,tzdata)))
12873 (inputs
12874 `(("coreutils" ,coreutils)
12875 ("sed" ,sed)
12876 ("grep" ,grep)
12877 ("r-minimal" ,r-minimal)
12878 ("r-annotationhub" ,r-annotationhub)
12879 ("r-dt" ,r-dt)
12880 ("r-genomation" ,r-genomation)
12881 ("r-methylkit" ,r-methylkit)
12882 ("r-rtracklayer" ,r-rtracklayer)
12883 ("r-rmarkdown" ,r-rmarkdown)
12884 ("r-bookdown" ,r-bookdown)
12885 ("r-ggplot2" ,r-ggplot2)
12886 ("r-ggbio" ,r-ggbio)
12887 ("ghc-pandoc" ,ghc-pandoc)
12888 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12889 ("python-wrapper" ,python-wrapper)
12890 ("python-pyyaml" ,python-pyyaml)
12891 ("snakemake" ,snakemake)
12892 ("bismark" ,bismark)
12893 ("fastqc" ,fastqc)
12894 ("bowtie" ,bowtie)
12895 ("trim-galore" ,trim-galore)
12896 ("cutadapt" ,cutadapt)
12897 ("samtools" ,samtools)))
12898 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12899 (synopsis "Bisulfite sequencing pipeline from fastq to methylation reports")
12900 (description "PiGx BSseq is a data processing pipeline for raw fastq read
12901 data of bisulfite experiments; it produces reports on aggregate methylation
12902 and coverage and can be used to produce information on differential
12903 methylation and segmentation.")
12904 (license license:gpl3+)))
12905
12906 (define-public pigx-scrnaseq
12907 (package
12908 (name "pigx-scrnaseq")
12909 (version "0.0.7")
12910 (source (origin
12911 (method url-fetch)
12912 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_scrnaseq/"
12913 "releases/download/v" version
12914 "/pigx_scrnaseq-" version ".tar.gz"))
12915 (sha256
12916 (base32
12917 "131zarirv16w8653m0d66jgjnwqfsxqc0hix0rypssz4d83bl51j"))))
12918 (build-system gnu-build-system)
12919 (arguments
12920 `(#:configure-flags
12921 (list (string-append "PICARDJAR=" (assoc-ref %build-inputs "java-picard")
12922 "/share/java/picard.jar")
12923 (string-append "DROPSEQJAR=" (assoc-ref %build-inputs "dropseq-tools")
12924 "/share/java/dropseq.jar"))))
12925 (inputs
12926 `(("coreutils" ,coreutils)
12927 ("perl" ,perl)
12928 ("dropseq-tools" ,dropseq-tools)
12929 ("fastqc" ,fastqc)
12930 ("java-picard" ,java-picard-2.10.3) ; same as for dropseq
12931 ("java" ,icedtea-8)
12932 ("python-wrapper" ,python-wrapper)
12933 ("python-pyyaml" ,python-pyyaml)
12934 ("python-pandas" ,python-pandas)
12935 ("python-magic" ,python-magic)
12936 ("python-numpy" ,python-numpy)
12937 ("python-loompy" ,python-loompy)
12938 ("ghc-pandoc" ,ghc-pandoc)
12939 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12940 ("samtools" ,samtools)
12941 ("snakemake" ,snakemake)
12942 ("star" ,star)
12943 ("r-minimal" ,r-minimal)
12944 ("r-argparser" ,r-argparser)
12945 ("r-cowplot" ,r-cowplot)
12946 ("r-data-table" ,r-data-table)
12947 ("r-delayedarray" ,r-delayedarray)
12948 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
12949 ("r-dplyr" ,r-dplyr)
12950 ("r-dropbead" ,r-dropbead)
12951 ("r-dt" ,r-dt)
12952 ("r-genomicalignments" ,r-genomicalignments)
12953 ("r-genomicfiles" ,r-genomicfiles)
12954 ("r-genomicranges" ,r-genomicranges)
12955 ("r-ggplot2" ,r-ggplot2)
12956 ("r-hdf5array" ,r-hdf5array)
12957 ("r-pheatmap" ,r-pheatmap)
12958 ("r-rmarkdown" ,r-rmarkdown)
12959 ("r-rsamtools" ,r-rsamtools)
12960 ("r-rtracklayer" ,r-rtracklayer)
12961 ("r-rtsne" ,r-rtsne)
12962 ("r-scater" ,r-scater)
12963 ("r-scran" ,r-scran)
12964 ("r-singlecellexperiment" ,r-singlecellexperiment)
12965 ("r-stringr" ,r-stringr)
12966 ("r-yaml" ,r-yaml)))
12967 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12968 (synopsis "Analysis pipeline for single-cell RNA sequencing experiments")
12969 (description "PiGX scRNAseq is an analysis pipeline for preprocessing and
12970 quality control for single cell RNA sequencing experiments. The inputs are
12971 read files from the sequencing experiment, and a configuration file which
12972 describes the experiment. It produces processed files for downstream analysis
12973 and interactive quality reports. The pipeline is designed to work with UMI
12974 based methods.")
12975 (license license:gpl3+)))
12976
12977 (define-public pigx
12978 (package
12979 (name "pigx")
12980 (version "0.0.3")
12981 (source (origin
12982 (method url-fetch)
12983 (uri (string-append "https://github.com/BIMSBbioinfo/pigx/"
12984 "releases/download/v" version
12985 "/pigx-" version ".tar.gz"))
12986 (sha256
12987 (base32
12988 "1i5njdy1clj5ncw45d16p7mwmqvb1ilikl9n797pxklc3f4s7mq7"))))
12989 (build-system gnu-build-system)
12990 (inputs
12991 `(("python" ,python)
12992 ("pigx-bsseq" ,pigx-bsseq)
12993 ("pigx-chipseq" ,pigx-chipseq)
12994 ("pigx-rnaseq" ,pigx-rnaseq)
12995 ("pigx-scrnaseq" ,pigx-scrnaseq)))
12996 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12997 (synopsis "Analysis pipelines for genomics")
12998 (description "PiGx is a collection of genomics pipelines. It includes the
12999 following pipelines:
13000
13001 @itemize
13002 @item PiGx BSseq for raw fastq read data of bisulfite experiments
13003 @item PiGx RNAseq for RNAseq samples
13004 @item PiGx scRNAseq for single cell dropseq analysis
13005 @item PiGx ChIPseq for reads from ChIPseq experiments
13006 @end itemize
13007
13008 All pipelines are easily configured with a simple sample sheet and a
13009 descriptive settings file. The result is a set of comprehensive, interactive
13010 HTML reports with interesting findings about your samples.")
13011 (license license:gpl3+)))
13012
13013 (define-public genrich
13014 (package
13015 (name "genrich")
13016 (version "0.5")
13017 (source (origin
13018 (method git-fetch)
13019 (uri (git-reference
13020 (url "https://github.com/jsh58/Genrich.git")
13021 (commit (string-append "v" version))))
13022 (sha256
13023 (base32
13024 "0x0q6z0208n3cxzqjla4rgjqpyqgwpmz27852lcvzkzaigymq4zp"))))
13025 (build-system gnu-build-system)
13026 (arguments
13027 `(#:tests? #f ; there are none
13028 #:phases
13029 (modify-phases %standard-phases
13030 (delete 'configure)
13031 (replace 'install
13032 (lambda* (#:key outputs #:allow-other-keys)
13033 (install-file "Genrich" (string-append (assoc-ref outputs "out") "/bin"))
13034 #t)))))
13035 (inputs
13036 `(("zlib" ,zlib)))
13037 (home-page "https://github.com/jsh58/Genrich")
13038 (synopsis "Detecting sites of genomic enrichment")
13039 (description "Genrich is a peak-caller for genomic enrichment
13040 assays (e.g. ChIP-seq, ATAC-seq). It analyzes alignment files generated
13041 following the assay and produces a file detailing peaks of significant
13042 enrichment.")
13043 (license license:expat)))
13044
13045 (define-public mantis
13046 (let ((commit "4ffd171632c2cb0056a86d709dfd2bf21bc69b84")
13047 (revision "1"))
13048 (package
13049 (name "mantis")
13050 (version (git-version "0" revision commit))
13051 (source (origin
13052 (method git-fetch)
13053 (uri (git-reference
13054 (url "https://github.com/splatlab/mantis.git")
13055 (commit commit)))
13056 (file-name (git-file-name name version))
13057 (sha256
13058 (base32
13059 "0iqbr0dhmlc8mzpirmm2s4pkzkwdgrcx50yx6cv3wlr2qi064p55"))))
13060 (build-system cmake-build-system)
13061 (arguments '(#:tests? #f)) ; there are none
13062 (inputs
13063 `(("sdsl-lite" ,sdsl-lite)
13064 ("openssl" ,openssl)
13065 ("zlib" ,zlib)))
13066 (home-page "https://github.com/splatlab/mantis")
13067 (synopsis "Large-scale sequence-search index data structure")
13068 (description "Mantis is a space-efficient data structure that can be
13069 used to index thousands of raw-read genomics experiments and facilitate
13070 large-scale sequence searches on those experiments. Mantis uses counting
13071 quotient filters instead of Bloom filters, enabling rapid index builds and
13072 queries, small indexes, and exact results, i.e., no false positives or
13073 negatives. Furthermore, Mantis is also a colored de Bruijn graph
13074 representation, so it supports fast graph traversal and other topological
13075 analyses in addition to large-scale sequence-level searches.")
13076 ;; uses __uint128_t and inline assembly
13077 (supported-systems '("x86_64-linux"))
13078 (license license:bsd-3))))
13079
13080 (define-public r-diversitree
13081 (package
13082 (name "r-diversitree")
13083 (version "0.9-10")
13084 (source
13085 (origin
13086 (method url-fetch)
13087 (uri (cran-uri "diversitree" version))
13088 (sha256
13089 (base32
13090 "0gh4rcrp0an3jh8915i1fsxlgyfk7njywgbd5ln5r2jhr085kpz7"))))
13091 (build-system r-build-system)
13092 (native-inputs
13093 `(("gfortran" ,gfortran)))
13094 (inputs `(("fftw" ,fftw) ("gsl" ,gsl)))
13095 (propagated-inputs
13096 `(("r-ape" ,r-ape)
13097 ("r-desolve" ,r-desolve)
13098 ("r-rcpp" ,r-rcpp)
13099 ("r-suplex" ,r-subplex)))
13100 (home-page "https://www.zoology.ubc.ca/prog/diversitree")
13101 (synopsis "Comparative 'phylogenetic' analyses of diversification")
13102 (description "This package contains a number of comparative \"phylogenetic\"
13103 methods, mostly focusing on analysing diversification and character evolution.
13104 Contains implementations of \"BiSSE\" (Binary State Speciation and Extinction)
13105 and its unresolved tree extensions, \"MuSSE\" (Multiple State Speciation and
13106 Extinction), \"QuaSSE\", \"GeoSSE\", and \"BiSSE-ness\" Other included methods
13107 include Markov models of discrete and continuous trait evolution and constant
13108 rate speciation and extinction.")
13109 (license license:gpl2+)))
13110
13111 (define-public sjcount
13112 ;; There is no tag for version 3.2, nor is there a release archive.
13113 (let ((commit "292d3917cadb3f6834c81e509c30e61cd7ead6e5")
13114 (revision "1"))
13115 (package
13116 (name "sjcount")
13117 (version (git-version "3.2" revision commit))
13118 (source (origin
13119 (method git-fetch)
13120 (uri (git-reference
13121 (url "https://github.com/pervouchine/sjcount-full.git")
13122 (commit commit)))
13123 (file-name (string-append name "-" version "-checkout"))
13124 (sha256
13125 (base32
13126 "0gdgj35j249f04rqgq8ymcc1xg1vi9kzbajnjqpaq2wpbh8bl234"))))
13127 (build-system gnu-build-system)
13128 (arguments
13129 `(#:tests? #f ; requires a 1.4G test file
13130 #:make-flags
13131 (list (string-append "SAMTOOLS_DIR="
13132 (assoc-ref %build-inputs "samtools")
13133 "/lib/"))
13134 #:phases
13135 (modify-phases %standard-phases
13136 (replace 'configure
13137 (lambda* (#:key inputs #:allow-other-keys)
13138 (substitute* "makefile"
13139 (("-I \\$\\{SAMTOOLS_DIR\\}")
13140 (string-append "-I" (assoc-ref inputs "samtools")
13141 "/include/samtools"))
13142 (("-lz ") "-lz -lpthread "))
13143 #t))
13144 (replace 'install
13145 (lambda* (#:key outputs #:allow-other-keys)
13146 (for-each (lambda (tool)
13147 (install-file tool
13148 (string-append (assoc-ref outputs "out")
13149 "/bin")))
13150 '("j_count" "b_count" "sjcount"))
13151 #t)))))
13152 (inputs
13153 `(("samtools" ,samtools-0.1)
13154 ("zlib" ,zlib)))
13155 (home-page "https://github.com/pervouchine/sjcount-full/")
13156 (synopsis "Annotation-agnostic splice junction counting pipeline")
13157 (description "Sjcount is a utility for fast quantification of splice
13158 junctions in RNA-seq data. It is annotation-agnostic and offset-aware. This
13159 version does count multisplits.")
13160 (license license:gpl3+))))
13161
13162 (define-public minimap2
13163 (package
13164 (name "minimap2")
13165 (version "2.10")
13166 (source
13167 (origin
13168 (method url-fetch)
13169 (uri (string-append "https://github.com/lh3/minimap2/"
13170 "releases/download/v" version "/"
13171 "minimap2-" version ".tar.bz2"))
13172 (sha256
13173 (base32
13174 "080w9066irkbhbyr4nmf19pzkdd2s4v31hpzlajgq2y0drr6zcsj"))))
13175 (build-system gnu-build-system)
13176 (arguments
13177 `(#:tests? #f ; there are none
13178 #:make-flags
13179 (list "CC=gcc"
13180 (let ((system ,(or (%current-target-system)
13181 (%current-system))))
13182 (cond
13183 ((string-prefix? "x86_64" system)
13184 "all")
13185 ((or (string-prefix? "armhf" system)
13186 (string-prefix? "aarch64" system))
13187 "arm_neon=1")
13188 (_ "sse2only=1"))))
13189 #:phases
13190 (modify-phases %standard-phases
13191 (delete 'configure)
13192 (replace 'install
13193 (lambda* (#:key outputs #:allow-other-keys)
13194 (let* ((out (assoc-ref outputs "out"))
13195 (bin (string-append out "/bin"))
13196 (man (string-append out "/share/man/man1")))
13197 (install-file "minimap2" bin)
13198 (mkdir-p man)
13199 (install-file "minimap2.1" man))
13200 #t)))))
13201 (inputs
13202 `(("zlib" ,zlib)))
13203 (home-page "https://lh3.github.io/minimap2/")
13204 (synopsis "Pairwise aligner for genomic and spliced nucleotide sequences")
13205 (description "Minimap2 is a versatile sequence alignment program that
13206 aligns DNA or mRNA sequences against a large reference database. Typical use
13207 cases include:
13208
13209 @enumerate
13210 @item mapping PacBio or Oxford Nanopore genomic reads to the human genome;
13211 @item finding overlaps between long reads with error rate up to ~15%;
13212 @item splice-aware alignment of PacBio Iso-Seq or Nanopore cDNA or Direct RNA
13213 reads against a reference genome;
13214 @item aligning Illumina single- or paired-end reads;
13215 @item assembly-to-assembly alignment;
13216 @item full-genome alignment between two closely related species with
13217 divergence below ~15%.
13218 @end enumerate\n")
13219 (license license:expat)))
13220
13221 (define-public r-circus
13222 (package
13223 (name "r-circus")
13224 (version "0.1.5")
13225 (source
13226 (origin
13227 (method git-fetch)
13228 (uri (git-reference
13229 (url "https://github.com/BIMSBbioinfo/ciRcus.git")
13230 (commit (string-append "v" version))))
13231 (file-name (git-file-name name version))
13232 (sha256
13233 (base32
13234 "0jhjn3ilb057hbf6yzrihj13ifxxs32y7nkby8l3lkm28dg4p97h"))))
13235 (build-system r-build-system)
13236 (propagated-inputs
13237 `(("r-annotationdbi" ,r-annotationdbi)
13238 ("r-annotationhub" ,r-annotationhub)
13239 ("r-biomart" ,r-biomart)
13240 ("r-data-table" ,r-data-table)
13241 ("r-dbi" ,r-dbi)
13242 ("r-genomicfeatures" ,r-genomicfeatures)
13243 ("r-genomicranges" ,r-genomicranges)
13244 ("r-ggplot2" ,r-ggplot2)
13245 ("r-hash" ,r-hash)
13246 ("r-iranges" ,r-iranges)
13247 ("r-rcolorbrewer" ,r-rcolorbrewer)
13248 ("r-rmysql" ,r-rmysql)
13249 ("r-s4vectors" ,r-s4vectors)
13250 ("r-stringr" ,r-stringr)
13251 ("r-summarizedexperiment" ,r-summarizedexperiment)))
13252 (native-inputs
13253 `(("r-knitr" ,r-knitr)))
13254 (home-page "https://github.com/BIMSBbioinfo/ciRcus")
13255 (synopsis "Annotation, analysis and visualization of circRNA data")
13256 (description "Circus is an R package for annotation, analysis and
13257 visualization of circRNA data. Users can annotate their circRNA candidates
13258 with host genes, gene featrues they are spliced from, and discriminate between
13259 known and yet unknown splice junctions. Circular-to-linear ratios of circRNAs
13260 can be calculated, and a number of descriptive plots easily generated.")
13261 (license license:artistic2.0)))
13262
13263 (define-public r-loomr
13264 (let ((commit "df0144bd2bbceca6fadef9edc1bbc5ca672d4739")
13265 (revision "1"))
13266 (package
13267 (name "r-loomr")
13268 (version (git-version "0.2.0" revision commit))
13269 (source
13270 (origin
13271 (method git-fetch)
13272 (uri (git-reference
13273 (url "https://github.com/mojaveazure/loomR.git")
13274 (commit commit)))
13275 (file-name (git-file-name name version))
13276 (sha256
13277 (base32
13278 "1b1g4dlmfdyhn56bz1mkh9ymirri43wiz7rjhs7py3y7bdw1s3yr"))))
13279 (build-system r-build-system)
13280 (propagated-inputs
13281 `(("r-r6" ,r-r6)
13282 ("r-hdf5r" ,r-hdf5r)
13283 ("r-iterators" ,r-iterators)
13284 ("r-itertools" ,r-itertools)
13285 ("r-matrix" ,r-matrix)))
13286 (home-page "https://github.com/mojaveazure/loomR")
13287 (synopsis "R interface for loom files")
13288 (description "This package provides an R interface to access, create,
13289 and modify loom files. loomR aims to be completely compatible with loompy.")
13290 (license license:gpl3))))
13291
13292 (define-public gffread
13293 ;; We cannot use the tagged release because it is not in sync with gclib.
13294 ;; See https://github.com/gpertea/gffread/issues/26
13295 (let ((commit "ba7535fcb3cea55a6e5a491d916e93b454e87fd0")
13296 (revision "1"))
13297 (package
13298 (name "gffread")
13299 (version (git-version "0.9.12" revision commit))
13300 (source
13301 (origin
13302 (method git-fetch)
13303 (uri (git-reference
13304 (url "https://github.com/gpertea/gffread.git")
13305 (commit commit)))
13306 (file-name (git-file-name name version))
13307 (sha256
13308 (base32
13309 "1dl2nbcg96lxpd0drg48ssa8343nf7pw9s9mkrc4mjjmfwsin3ki"))))
13310 (build-system gnu-build-system)
13311 (arguments
13312 `(#:tests? #f ; no check target
13313 #:make-flags
13314 (list "GCLDIR=gclib")
13315 #:phases
13316 (modify-phases %standard-phases
13317 (delete 'configure)
13318 (add-after 'unpack 'copy-gclib-source
13319 (lambda* (#:key inputs #:allow-other-keys)
13320 (mkdir-p "gclib")
13321 (copy-recursively (assoc-ref inputs "gclib-source") "gclib")
13322 #t))
13323 ;; There is no install target
13324 (replace 'install
13325 (lambda* (#:key outputs #:allow-other-keys)
13326 (let* ((out (assoc-ref outputs "out"))
13327 (bin (string-append out "/bin")))
13328 (install-file "gffread" bin))
13329 #t)))))
13330 (native-inputs
13331 `(("gclib-source"
13332 ,(let ((version "0.10.3")
13333 (commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
13334 (revision "1"))
13335 (origin
13336 (method git-fetch)
13337 (uri (git-reference
13338 (url "https://github.com/gpertea/gclib.git")
13339 (commit commit)))
13340 (file-name (git-file-name "gclib" version))
13341 (sha256
13342 (base32
13343 "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
13344 (home-page "https://github.com/gpertea/gffread/")
13345 (synopsis "Parse and convert GFF/GTF files")
13346 (description
13347 "This package provides a GFF/GTF file parsing utility providing format
13348 conversions, region filtering, FASTA sequence extraction and more.")
13349 ;; gffread is under Expat, but gclib is under Artistic 2.0
13350 (license (list license:expat
13351 license:artistic2.0)))))
13352
13353 (define-public find-circ
13354 ;; The last release was in 2015. The license was clarified in 2017, so we
13355 ;; take the latest commit.
13356 (let ((commit "8655dca54970fcf7e92e22fbf57e1188724dda7d")
13357 (revision "1"))
13358 (package
13359 (name "find-circ")
13360 (version (git-version "1.2" revision commit))
13361 (source
13362 (origin
13363 (method git-fetch)
13364 (uri (git-reference
13365 (url "https://github.com/marvin-jens/find_circ.git")
13366 (commit commit)))
13367 (file-name (git-file-name name version))
13368 (sha256
13369 (base32
13370 "0p77pbqbclqr4srms34y1b9b4njybfpjiknc11ki84f3p8skb3cg"))))
13371 (build-system gnu-build-system)
13372 (arguments
13373 `(#:tests? #f ; there are none
13374 #:phases
13375 ;; There is no actual build system.
13376 (modify-phases %standard-phases
13377 (delete 'configure)
13378 (delete 'build)
13379 (replace 'install
13380 (lambda* (#:key outputs #:allow-other-keys)
13381 (let* ((out (assoc-ref outputs "out"))
13382 (bin (string-append out "/bin"))
13383 (path (getenv "PYTHONPATH")))
13384 (for-each (lambda (script)
13385 (install-file script bin)
13386 (wrap-program (string-append bin "/" script)
13387 `("PYTHONPATH" ":" prefix (,path))))
13388 '("cmp_bed.py"
13389 "find_circ.py"
13390 "maxlength.py"
13391 "merge_bed.py"
13392 "unmapped2anchors.py")))
13393 #t)))))
13394 (inputs
13395 `(("python2" ,python-2)
13396 ("python2-pysam" ,python2-pysam)
13397 ("python2-numpy" ,python2-numpy)))
13398 (home-page "https://github.com/marvin-jens/find_circ")
13399 (synopsis "circRNA detection from RNA-seq reads")
13400 (description "This package provides tools to detect head-to-tail
13401 spliced (back-spliced) sequencing reads, indicative of circular RNA (circRNA)
13402 in RNA-seq data.")
13403 (license license:gpl3))))
13404
13405 (define-public python-scanpy
13406 (package
13407 (name "python-scanpy")
13408 (version "1.2.2")
13409 (source
13410 (origin
13411 (method url-fetch)
13412 (uri (pypi-uri "scanpy" version))
13413 (sha256
13414 (base32
13415 "1ak7bxms5a0yvf65prppq2g38clkv7c7jnjbnfpkh3xxv7q512jz"))))
13416 (build-system python-build-system)
13417 (propagated-inputs
13418 `(("python-anndata" ,python-anndata)
13419 ("python-igraph" ,python-igraph)
13420 ("python-numba" ,python-numba)
13421 ("python-joblib" ,python-joblib)
13422 ("python-natsort" ,python-natsort)
13423 ("python-networkx" ,python-networkx)
13424 ("python-statsmodels" ,python-statsmodels)
13425 ("python-scikit-learn" ,python-scikit-learn)
13426 ("python-matplotlib" ,python-matplotlib)
13427 ("python-pandas" ,python-pandas)
13428 ("python-scipy" ,python-scipy)
13429 ("python-seaborn" ,python-seaborn)
13430 ("python-h5py" ,python-h5py)
13431 ("python-tables" ,python-tables)))
13432 (home-page "http://github.com/theislab/scanpy")
13433 (synopsis "Single-Cell Analysis in Python.")
13434 (description "Scanpy is a scalable toolkit for analyzing single-cell gene
13435 expression data. It includes preprocessing, visualization, clustering,
13436 pseudotime and trajectory inference and differential expression testing. The
13437 Python-based implementation efficiently deals with datasets of more than one
13438 million cells.")
13439 (license license:bsd-3)))
13440
13441 (define-public gffcompare
13442 (let ((commit "be56ef4349ea3966c12c6397f85e49e047361c41")
13443 (revision "1"))
13444 (package
13445 (name "gffcompare")
13446 (version (git-version "0.10.15" revision commit))
13447 (source
13448 (origin
13449 (method git-fetch)
13450 (uri (git-reference
13451 (url "https://github.com/gpertea/gffcompare/")
13452 (commit commit)))
13453 (file-name (git-file-name name version))
13454 (sha256
13455 (base32 "0cp5qpxdhw4mxpya5dld8wi3jk00zyklm6rcri426wydinrnfmkg"))))
13456 (build-system gnu-build-system)
13457 (arguments
13458 `(#:tests? #f ; no check target
13459 #:phases
13460 (modify-phases %standard-phases
13461 (delete 'configure)
13462 (add-before 'build 'copy-gclib-source
13463 (lambda* (#:key inputs #:allow-other-keys)
13464 (mkdir "../gclib")
13465 (copy-recursively
13466 (assoc-ref inputs "gclib-source") "../gclib")
13467 #t))
13468 (replace 'install
13469 (lambda* (#:key outputs #:allow-other-keys)
13470 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
13471 (install-file "gffcompare" bin)
13472 #t))))))
13473 (native-inputs
13474 `(("gclib-source" ; see 'README.md' of gffcompare
13475 ,(let ((commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
13476 (revision "1")
13477 (name "gclib")
13478 (version (git-version "0.10.3" revision commit)))
13479 (origin
13480 (method git-fetch)
13481 (uri (git-reference
13482 (url "https://github.com/gpertea/gclib/")
13483 (commit commit)))
13484 (file-name (git-file-name name version))
13485 (sha256
13486 (base32 "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
13487 (home-page "https://github.com/gpertea/gffcompare/")
13488 (synopsis "Tool for comparing or classifing transcripts of RNA-Seq")
13489 (description
13490 "@code{gffcompare} is a tool that can:
13491 @enumerate
13492 @item compare and evaluate the accuracy of RNA-Seq transcript assemblers
13493 (Cufflinks, Stringtie);
13494 @item collapse (merge) duplicate transcripts from multiple GTF/GFF3 files (e.g.
13495 resulted from assembly of different samples);
13496 @item classify transcripts from one or multiple GTF/GFF3 files as they relate to
13497 reference transcripts provided in a annotation file (also in GTF/GFF3 format).
13498 @end enumerate")
13499 (license
13500 (list
13501 license:expat ;license for gffcompare
13502 license:artistic2.0))))) ;license for gclib
13503
13504 (define-public python-intervaltree
13505 (package
13506 (name "python-intervaltree")
13507 (version "2.1.0")
13508 (source
13509 (origin
13510 (method url-fetch)
13511 (uri (pypi-uri "intervaltree" version))
13512 (sha256
13513 (base32
13514 "02w191m9zxkcjqr1kv2slxvhymwhj3jnsyy3a28b837pi15q19dc"))))
13515 (build-system python-build-system)
13516 ;; FIXME: error when collecting tests
13517 (arguments '(#:tests? #f))
13518 (propagated-inputs
13519 `(("python-sortedcontainers" ,python-sortedcontainers)))
13520 (native-inputs
13521 `(("python-pytest" ,python-pytest)))
13522 (home-page "https://github.com/chaimleib/intervaltree")
13523 (synopsis "Editable interval tree data structure")
13524 (description
13525 "This package provides a mutable, self-balancing interval tree
13526 implementation for Python. Queries may be by point, by range overlap, or by
13527 range envelopment. This library was designed to allow tagging text and time
13528 intervals, where the intervals include the lower bound but not the upper
13529 bound.")
13530 (license license:asl2.0)))
13531
13532 (define-public python-pypairix
13533 (package
13534 (name "python-pypairix")
13535 (version "0.3.6")
13536 (source
13537 (origin
13538 (method url-fetch)
13539 (uri (pypi-uri "pypairix" version))
13540 (sha256
13541 (base32
13542 "0zs92b74s5v4xy2h16s15f3z6l4nnbw8x8zyif7xx5xpafjn0xss"))))
13543 (build-system python-build-system)
13544 ;; FIXME: the tests fail because test.support cannot be loaded:
13545 ;; ImportError: cannot import name 'support'
13546 (arguments '(#:tests? #f))
13547 (inputs
13548 `(("zlib" ,zlib)))
13549 (home-page "https://github.com/4dn-dcic/pairix")
13550 (synopsis "Support for querying pairix-indexed bgzipped text files")
13551 (description
13552 "Pypairix is a Python module for fast querying on a pairix-indexed
13553 bgzipped text file that contains a pair of genomic coordinates per line.")
13554 (license license:expat)))
13555
13556 (define-public python-pyfaidx
13557 (package
13558 (name "python-pyfaidx")
13559 (version "0.5.4.2")
13560 (source
13561 (origin
13562 (method url-fetch)
13563 (uri (pypi-uri "pyfaidx" version))
13564 (sha256
13565 (base32
13566 "0y5zyjksj1rdglj601xd2bbni5abhdh622y3ck76chyzxz9z4rx8"))))
13567 (build-system python-build-system)
13568 (propagated-inputs
13569 `(("python-setuptools" ,python-setuptools)
13570 ("python-six" ,python-six)))
13571 (home-page "http://mattshirley.com")
13572 (synopsis "Random access to fasta subsequences")
13573 (description
13574 "This package provides procedures for efficient pythonic random access to
13575 fasta subsequences.")
13576 (license license:bsd-3)))
13577
13578 (define-public python-cooler
13579 (package
13580 (name "python-cooler")
13581 (version "0.7.11")
13582 (source
13583 (origin
13584 (method url-fetch)
13585 (uri (pypi-uri "cooler" version))
13586 (sha256
13587 (base32
13588 "08k5nxnxa6qsbk15z5z0q01n28042k87wi4905hh95rzqib15mhx"))))
13589 (build-system python-build-system)
13590 (propagated-inputs
13591 `(("python-biopython" ,python-biopython)
13592 ("python-click" ,python-click)
13593 ("python-cytoolz" ,python-cytoolz)
13594 ("python-dask" ,python-dask)
13595 ("python-h5py" ,python-h5py)
13596 ("python-multiprocess" ,python-multiprocess)
13597 ("python-pandas" ,python-pandas)
13598 ("python-pyfaidx" ,python-pyfaidx)
13599 ("python-pypairix" ,python-pypairix)
13600 ("python-pysam" ,python-pysam)
13601 ("python-scipy" ,python-scipy)))
13602 (native-inputs
13603 `(("python-mock" ,python-mock)
13604 ("python-nose" ,python-nose)
13605 ("python-numpydoc" ,python-numpydoc)
13606 ("python-sphinx" ,python-sphinx)))
13607 (home-page "https://github.com/mirnylab/cooler")
13608 (synopsis "Sparse binary format for genomic interaction matrices")
13609 (description
13610 "Cooler is a support library for a sparse, compressed, binary persistent
13611 storage format, called @code{cool}, used to store genomic interaction data,
13612 such as Hi-C contact matrices.")
13613 (license license:bsd-3)))
13614
13615 (define-public python-hicexplorer
13616 (package
13617 (name "python-hicexplorer")
13618 (version "2.1.4")
13619 (source
13620 (origin
13621 ;; The latest version is not available on Pypi.
13622 (method git-fetch)
13623 (uri (git-reference
13624 (url "https://github.com/deeptools/HiCExplorer.git")
13625 (commit version)))
13626 (file-name (git-file-name name version))
13627 (sha256
13628 (base32
13629 "0q5gpbzmrkvygqgw524q36b4nrivcmyi5v194vsx0qw7b3gcmq08"))))
13630 (build-system python-build-system)
13631 (arguments
13632 `(#:phases
13633 (modify-phases %standard-phases
13634 (add-after 'unpack 'loosen-up-requirements
13635 (lambda _
13636 (substitute* "setup.py"
13637 (("==") ">="))
13638 #t)))))
13639 (propagated-inputs
13640 `(("python-biopython" ,python-biopython)
13641 ("python-configparser" ,python-configparser)
13642 ("python-cooler" ,python-cooler)
13643 ("python-future" ,python-future)
13644 ("python-intervaltree" ,python-intervaltree)
13645 ("python-jinja2" ,python-jinja2)
13646 ("python-matplotlib" ,python-matplotlib)
13647 ("python-numpy" ,python-numpy)
13648 ("python-pandas" ,python-pandas)
13649 ("python-pybigwig" ,python-pybigwig)
13650 ("python-pysam" ,python-pysam)
13651 ("python-scipy" ,python-scipy)
13652 ("python-six" ,python-six)
13653 ("python-tables" ,python-tables)
13654 ("python-unidecode" ,python-unidecode)))
13655 (home-page "http://hicexplorer.readthedocs.io")
13656 (synopsis "Process, analyze and visualize Hi-C data")
13657 (description
13658 "HiCExplorer is a powerful and easy to use set of tools to process,
13659 normalize and visualize Hi-C data. HiCExplorer facilitates the creation of
13660 contact matrices, correction of contacts, TAD detection, A/B compartments,
13661 merging, reordering or chromosomes, conversion from different formats
13662 including cooler and detection of long-range contacts. Moreover, it allows
13663 the visualization of multiple contact matrices along with other types of data
13664 like genes, compartments, ChIP-seq coverage tracks (and in general any type of
13665 genomic scores), long range contacts and the visualization of viewpoints.")
13666 (license license:gpl3)))
13667
13668 (define-public python-pygenometracks
13669 (package
13670 (name "python-pygenometracks")
13671 (version "2.0")
13672 (source
13673 (origin
13674 (method url-fetch)
13675 (uri (pypi-uri "pyGenomeTracks" version))
13676 (sha256
13677 (base32
13678 "1fws6bqsyy9kj3qiabhkqx4wd4i775gsxnhszqd3zg7w67sc1ic5"))))
13679 (build-system python-build-system)
13680 (propagated-inputs
13681 `(("python-configparser" ,python-configparser)
13682 ("python-future" ,python-future)
13683 ("python-hicexplorer" ,python-hicexplorer)
13684 ("python-intervaltree" ,python-intervaltree)
13685 ("python-matplotlib" ,python-matplotlib)
13686 ("python-numpy" ,python-numpy)
13687 ("python-pybigwig" ,python-pybigwig)))
13688 (native-inputs
13689 `(("python-pytest" ,python-pytest)))
13690 (home-page "https://pygenometracks.readthedocs.io")
13691 (synopsis "Program and library to plot beautiful genome browser tracks")
13692 (description
13693 "This package aims to produce high-quality genome browser tracks that
13694 are highly customizable. Currently, it is possible to plot: bigwig, bed (many
13695 options), bedgraph, links (represented as arcs), and Hi-C matrices.
13696 pyGenomeTracks can make plots with or without Hi-C data.")
13697 (license license:gpl3+)))
13698
13699 (define-public python-hic2cool
13700 (package
13701 (name "python-hic2cool")
13702 (version "0.4.2")
13703 (source
13704 (origin
13705 (method url-fetch)
13706 (uri (pypi-uri "hic2cool" version))
13707 (sha256
13708 (base32
13709 "0xy6mhfns2lzib1kcr6419jjp6pmh0qx8z8na55lmiwn0ds8q9cl"))))
13710 (build-system python-build-system)
13711 (arguments '(#:tests? #f)) ; no tests included
13712 (propagated-inputs
13713 `(("python-cooler" ,python-cooler)))
13714 (home-page "https://github.com/4dn-dcic/hic2cool")
13715 (synopsis "Converter for .hic and .cool files")
13716 (description
13717 "This package provides a converter between @code{.hic} files (from
13718 juicer) and single-resolution or multi-resolution @code{.cool} files (for
13719 cooler). Both @code{hic} and @code{cool} files describe Hi-C contact
13720 matrices.")
13721 (license license:expat)))
13722
13723 (define-public r-pore
13724 (package
13725 (name "r-pore")
13726 (version "0.24")
13727 (source
13728 (origin
13729 (method url-fetch)
13730 (uri
13731 (string-append "mirror://sourceforge/rpore/" version
13732 "/poRe_" version ".tar.gz"))
13733 (sha256
13734 (base32 "0pih9nljbv8g4x8rkk29i7aqq681b782r5s5ynp4nw9yzqnmmksv"))))
13735 (properties `((upstream-name . "poRe")))
13736 (build-system r-build-system)
13737 (propagated-inputs
13738 `(("r-bit64" ,r-bit64)
13739 ("r-data-table" ,r-data-table)
13740 ("r-rhdf5" ,r-rhdf5)
13741 ("r-shiny" ,r-shiny)
13742 ("r-svdialogs" ,r-svdialogs)))
13743 (home-page "https://sourceforge.net/projects/rpore/")
13744 (synopsis "Visualize Nanopore sequencing data")
13745 (description
13746 "This package provides graphical user interfaces to organize and visualize Nanopore
13747 sequencing data.")
13748 ;; This is free software but the license variant is unclear:
13749 ;; <https://github.com/mw55309/poRe_docs/issues/10>.
13750 (license license:bsd-3)))
13751
13752 (define-public r-xbioc
13753 (let ((revision "1")
13754 (commit "f798c187e376fd1ba27abd559f47bbae7e3e466b"))
13755 (package
13756 (name "r-xbioc")
13757 (version (git-version "0.1.15" revision commit))
13758 (source (origin
13759 (method git-fetch)
13760 (uri (git-reference
13761 (url "https://github.com/renozao/xbioc.git")
13762 (commit commit)))
13763 (file-name (git-file-name name version))
13764 (sha256
13765 (base32
13766 "03hffh2f6z71y6l6dqpa5cql3hdaw7zigdi8sm2dzgx379k9rgrr"))))
13767 (build-system r-build-system)
13768 (propagated-inputs
13769 `(("r-annotationdbi" ,r-annotationdbi)
13770 ("r-assertthat" ,r-assertthat)
13771 ("r-biobase" ,r-biobase)
13772 ("r-biocinstaller" ,r-biocinstaller)
13773 ("r-digest" ,r-digest)
13774 ("r-pkgmaker" ,r-pkgmaker)
13775 ("r-plyr" ,r-plyr)
13776 ("r-reshape2" ,r-reshape2)
13777 ("r-stringr" ,r-stringr)))
13778 (home-page "https://github.com/renozao/xbioc/")
13779 (synopsis "Extra base functions for Bioconductor")
13780 (description "This package provides extra utility functions to perform
13781 common tasks in the analysis of omics data, leveraging and enhancing features
13782 provided by Bioconductor packages.")
13783 (license license:gpl3+))))
13784
13785 (define-public r-cssam
13786 (let ((revision "1")
13787 (commit "9ec58c982fa551af0d80b1a266890d92954833f2"))
13788 (package
13789 (name "r-cssam")
13790 (version (git-version "1.4" revision commit))
13791 (source (origin
13792 (method git-fetch)
13793 (uri (git-reference
13794 (url "https://github.com/shenorrLab/csSAM.git")
13795 (commit commit)))
13796 (file-name (git-file-name name version))
13797 (sha256
13798 (base32
13799 "128syf9v39gk0z3ip000qpsjbg6l1siyq6c8b0hz41dzg5achyb3"))))
13800 (build-system r-build-system)
13801 (propagated-inputs
13802 `(("r-formula" ,r-formula)
13803 ("r-ggplot2" ,r-ggplot2)
13804 ("r-pkgmaker" ,r-pkgmaker)
13805 ("r-plyr" ,r-plyr)
13806 ("r-rngtools" ,r-rngtools)
13807 ("r-scales" ,r-scales)))
13808 (home-page "https://github.com/shenorrLab/csSAM/")
13809 (synopsis "Cell type-specific statistical analysis of microarray")
13810 (description "This package implements the method csSAM that computes
13811 cell-specific differential expression from measured cell proportions using
13812 SAM.")
13813 ;; Any version
13814 (license license:lgpl2.1+))))
13815
13816 (define-public r-bseqsc
13817 (let ((revision "1")
13818 (commit "fef3f3e38dcf3df37103348b5780937982b43b98"))
13819 (package
13820 (name "r-bseqsc")
13821 (version (git-version "1.0" revision commit))
13822 (source (origin
13823 (method git-fetch)
13824 (uri (git-reference
13825 (url "https://github.com/shenorrLab/bseqsc.git")
13826 (commit commit)))
13827 (file-name (git-file-name name version))
13828 (sha256
13829 (base32
13830 "1prw13wa20f7wlc3gkkls66n1kxz8d28qrb8icfqdwdnnv8w5qg8"))))
13831 (build-system r-build-system)
13832 (propagated-inputs
13833 `(("r-abind" ,r-abind)
13834 ("r-annotationdbi" ,r-annotationdbi)
13835 ("r-biobase" ,r-biobase)
13836 ("r-cssam" ,r-cssam)
13837 ("r-dplyr" ,r-dplyr)
13838 ("r-e1071" ,r-e1071)
13839 ("r-edger" ,r-edger)
13840 ("r-ggplot2" ,r-ggplot2)
13841 ("r-nmf" ,r-nmf)
13842 ("r-openxlsx" ,r-openxlsx)
13843 ("r-pkgmaker" ,r-pkgmaker)
13844 ("r-plyr" ,r-plyr)
13845 ("r-preprocesscore" ,r-preprocesscore)
13846 ("r-rngtools" ,r-rngtools)
13847 ("r-scales" ,r-scales)
13848 ("r-stringr" ,r-stringr)
13849 ("r-xbioc" ,r-xbioc)))
13850 (home-page "https://github.com/shenorrLab/bseqsc")
13851 (synopsis "Deconvolution of bulk sequencing experiments using single cell data")
13852 (description "BSeq-sc is a bioinformatics analysis pipeline that
13853 leverages single-cell sequencing data to estimate cell type proportion and
13854 cell type-specific gene expression differences from RNA-seq data from bulk
13855 tissue samples. This is a companion package to the publication \"A
13856 single-cell transcriptomic map of the human and mouse pancreas reveals inter-
13857 and intra-cell population structure.\" Baron et al. Cell Systems (2016)
13858 @url{https://www.ncbi.nlm.nih.gov/pubmed/27667365}.")
13859 (license license:gpl2+))))
13860
13861 (define-public porechop
13862 ;; The recommended way to install is to clone the git repository
13863 ;; https://github.com/rrwick/Porechop#installation
13864 (let ((commit "289d5dca4a5fc327f97b3f8cecb68ecaf1014861")
13865 (revision "1"))
13866 (package
13867 (name "porechop")
13868 (version (git-version "0.2.3" revision commit))
13869 (source
13870 (origin
13871 (method git-fetch)
13872 (uri (git-reference
13873 (url "https://github.com/rrwick/Porechop.git")
13874 (commit commit)))
13875 (file-name (git-file-name name version))
13876 (sha256
13877 (base32 "05ps43gig0d3ia9x5lj84lb00hbsl6ba9n7y7jz927npxbr2ym23"))))
13878 (build-system python-build-system)
13879 (home-page "https://github.com/rrwick/porechop")
13880 (synopsis "Finding, trimming or splitting adapters, in Oxford Nanopore reads")
13881 (description
13882 "The porechop package is a tool for finding and removing adapters from Oxford
13883 Nanopore reads. Adapters on the ends of reads are trimmed off, and when a read
13884 has an adapter in its middle, it is treated as chimeric and chopped into
13885 separate reads. Porechop performs thorough alignments to effectively find
13886 adapters, even at low sequence identity. Porechop also supports demultiplexing
13887 of Nanopore reads that were barcoded with the Native Barcoding Kit, PCR
13888 Barcoding Kit or Rapid Barcoding Kit.")
13889 (license license:gpl3+))))
13890
13891 (define-public poretools
13892 ;; The latest release was in 2016 and the latest commit is from 2017
13893 ;; the recommended way to install is to clone the git repository
13894 ;; https://poretools.readthedocs.io/en/latest/content/installation.html
13895 (let ((commit "e426b1f09e86ac259a00c261c79df91510777407")
13896 (revision "1"))
13897 (package
13898 (name "poretools")
13899 (version (git-version "0.6.0" revision commit))
13900 (source
13901 (origin
13902 (method git-fetch)
13903 (uri (git-reference
13904 (url "https://github.com/arq5x/poretools.git")
13905 (commit commit)))
13906 (file-name (git-file-name name version))
13907 (sha256
13908 (base32 "0bglj833wxpp3cq430p1d3xp085ls221js2y90w7ir2x5ay8l7am"))))
13909 (build-system python-build-system)
13910 ;; requires python >=2.7, <3.0, and the same for python dependencies
13911 (arguments `(#:python ,python-2))
13912 (inputs
13913 `(("hdf5" ,hdf5)))
13914 (propagated-inputs
13915 `(("python-dateutil" ,python2-dateutil)
13916 ("python-h5py" ,python2-h5py)
13917 ("python-matplotlib" ,python2-matplotlib)
13918 ("python-pandas" ,python2-pandas)
13919 ("python-seaborn" ,python2-seaborn)))
13920 (home-page "https://poretools.readthedocs.io")
13921 (synopsis "Toolkit for working with nanopore sequencing data")
13922 (description
13923 "The MinION from Oxford Nanopore Technologies is a nanopore sequencer.
13924 This @code{poretools} package is a flexible toolkit for exploring datasets
13925 generated by nanopore sequencing devices for the purposes of quality control and
13926 downstream analysis. Poretools operates directly on the native FAST5, a variant
13927 of the Hierarchical Data Format (HDF5) standard.")
13928 (license license:expat))))
13929
13930 (define-public r-absfiltergsea
13931 (package
13932 (name "r-absfiltergsea")
13933 (version "1.5.1")
13934 (source
13935 (origin
13936 (method url-fetch)
13937 (uri (cran-uri "AbsFilterGSEA" version))
13938 (sha256
13939 (base32 "15srxkxsvn38kd5frdrwfdf0ad8gskrd0h01wmdf9hglq8fjrp7w"))))
13940 (properties `((upstream-name . "AbsFilterGSEA")))
13941 (build-system r-build-system)
13942 (propagated-inputs
13943 `(("r-biobase" ,r-biobase)
13944 ("r-deseq" ,r-deseq)
13945 ("r-limma" ,r-limma)
13946 ("r-rcpp" ,r-rcpp)
13947 ("r-rcpparmadillo" ,r-rcpparmadillo)))
13948 (home-page "https://cran.r-project.org/web/packages/AbsFilterGSEA/")
13949 (synopsis "Improved false positive control of gene-permuting with absolute filtering")
13950 (description
13951 "This package provides a function that performs gene-permuting of a gene-set
13952 enrichment analysis (GSEA) calculation with or without the absolute filtering.
13953 Without filtering, users can perform (original) two-tailed or one-tailed
13954 absolute GSEA.")
13955 (license license:gpl2)))
13956
13957 (define-public jamm
13958 (package
13959 (name "jamm")
13960 (version "1.0.7.5")
13961 (source
13962 (origin
13963 (method git-fetch)
13964 (uri (git-reference
13965 (url "https://github.com/mahmoudibrahim/JAMM.git")
13966 (commit (string-append "JAMMv" version))))
13967 (file-name (git-file-name name version))
13968 (sha256
13969 (base32
13970 "0ls889jcma1ch9h21jjhnkadgszgqj41842hhcjh6cg88f85qf3i"))))
13971 (build-system gnu-build-system)
13972 (arguments
13973 `(#:tests? #f ; there are none
13974 #:phases
13975 (modify-phases %standard-phases
13976 (delete 'configure)
13977 (delete 'build)
13978 (replace 'install
13979 (lambda* (#:key inputs outputs #:allow-other-keys)
13980 (let* ((out (assoc-ref outputs "out"))
13981 (libexec (string-append out "/libexec/jamm"))
13982 (bin (string-append out "/bin")))
13983 (substitute* '("JAMM.sh"
13984 "SignalGenerator.sh")
13985 (("^sPath=.*")
13986 (string-append "sPath=\"" libexec "\"\n")))
13987 (for-each (lambda (file)
13988 (install-file file libexec))
13989 (list "bincalculator.r"
13990 "peakfinder.r"
13991 "peakhelper.r"
13992 "signalmaker.r"
13993 "xcorr.r"
13994 "xcorrhelper.r"
13995 ;; Perl scripts
13996 "peakfilter.pl"
13997 "readshifter.pl"))
13998
13999 (for-each
14000 (lambda (script)
14001 (chmod script #o555)
14002 (install-file script bin)
14003 (wrap-program (string-append bin "/" script)
14004 `("PATH" ":" prefix
14005 (,(string-append (assoc-ref inputs "coreutils") "/bin")
14006 ,(string-append (assoc-ref inputs "gawk") "/bin")
14007 ,(string-append (assoc-ref inputs "perl") "/bin")
14008 ,(string-append (assoc-ref inputs "r-minimal") "/bin")))
14009 `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB")))
14010 `("R_LIBS_SITE" ":" prefix (,(getenv "R_LIBS_SITE")))))
14011 (list "JAMM.sh" "SignalGenerator.sh")))
14012 #t)))))
14013 (inputs
14014 `(("bash" ,bash)
14015 ("coreutils" ,coreutils)
14016 ("gawk" ,gawk)
14017 ("perl" ,perl)
14018 ("r-minimal" ,r-minimal)
14019 ;;("r-parallel" ,r-parallel)
14020 ("r-signal" ,r-signal)
14021 ("r-mclust" ,r-mclust)))
14022 (home-page "https://github.com/mahmoudibrahim/JAMM")
14023 (synopsis "Peak finder for NGS datasets")
14024 (description
14025 "JAMM is a peak finder for next generation sequencing datasets (ChIP-Seq,
14026 ATAC-Seq, DNase-Seq, etc.) that can integrate replicates and assign peak
14027 boundaries accurately. JAMM is applicable to both broad and narrow
14028 datasets.")
14029 (license license:gpl3+)))
14030
14031 (define-public ngless
14032 (package
14033 (name "ngless")
14034 (version "0.9.1")
14035 (source
14036 (origin
14037 (method git-fetch)
14038 (uri (git-reference
14039 (url "https://gitlab.com/ngless/ngless.git")
14040 (commit (string-append "v" version))))
14041 (file-name (git-file-name name version))
14042 (sha256
14043 (base32
14044 "0mc2gi7h4lx74zylvyp76mvc0w6706j858ii9vlgzqsw6acpr117"))))
14045 (build-system haskell-build-system)
14046 (arguments
14047 `(#:haddock? #f ; The haddock phase fails with: NGLess/CmdArgs.hs:20:1:
14048 ; error: parse error on input import
14049 ; import Options.Applicative
14050 #:phases
14051 (modify-phases %standard-phases
14052 (add-after 'unpack 'create-cabal-file
14053 (lambda _ (invoke "hpack") #t))
14054 ;; These tools are expected to be installed alongside ngless.
14055 (add-after 'install 'link-tools
14056 (lambda* (#:key inputs outputs #:allow-other-keys)
14057 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
14058 (symlink (string-append (assoc-ref inputs "prodigal")
14059 "/bin/prodigal")
14060 (string-append bin "ngless-" ,version "-prodigal"))
14061 (symlink (string-append (assoc-ref inputs "minimap2")
14062 "/bin/minimap2")
14063 (string-append bin "ngless-" ,version "-minimap2"))
14064 (symlink (string-append (assoc-ref inputs "samtools")
14065 "/bin/samtools")
14066 (string-append bin "ngless-" ,version "-samtools"))
14067 (symlink (string-append (assoc-ref inputs "bwa")
14068 "/bin/bwa")
14069 (string-append bin "ngless-" ,version "-bwa"))
14070 #t))))))
14071 (inputs
14072 `(("prodigal" ,prodigal)
14073 ("bwa" ,bwa)
14074 ("samtools" ,samtools)
14075 ("minimap2" ,minimap2)
14076 ("ghc-aeson" ,ghc-aeson)
14077 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
14078 ("ghc-async" ,ghc-async)
14079 ("ghc-atomic-write" ,ghc-atomic-write)
14080 ("ghc-bytestring-lexing" ,ghc-bytestring-lexing)
14081 ("ghc-chart" ,ghc-chart)
14082 ("ghc-chart-cairo" ,ghc-chart-cairo)
14083 ("ghc-conduit" ,ghc-conduit)
14084 ("ghc-conduit-algorithms" ,ghc-conduit-algorithms)
14085 ("ghc-conduit-combinators" ,ghc-conduit-combinators)
14086 ("ghc-conduit-extra" ,ghc-conduit-extra)
14087 ("ghc-configurator" ,ghc-configurator)
14088 ("ghc-convertible" ,ghc-convertible)
14089 ("ghc-data-default" ,ghc-data-default)
14090 ("ghc-double-conversion" ,ghc-double-conversion)
14091 ("ghc-edit-distance" ,ghc-edit-distance)
14092 ("ghc-either" ,ghc-either)
14093 ("ghc-errors" ,ghc-errors)
14094 ("ghc-extra" ,ghc-extra)
14095 ("ghc-filemanip" ,ghc-filemanip)
14096 ("ghc-file-embed" ,ghc-file-embed)
14097 ("ghc-gitrev" ,ghc-gitrev)
14098 ("ghc-hashtables" ,ghc-hashtables)
14099 ("ghc-http-conduit" ,ghc-http-conduit)
14100 ("ghc-inline-c" ,ghc-inline-c)
14101 ("ghc-inline-c-cpp" ,ghc-inline-c-cpp)
14102 ("ghc-intervalmap" ,ghc-intervalmap)
14103 ("ghc-missingh" ,ghc-missingh)
14104 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
14105 ("ghc-parsec" ,ghc-parsec)
14106 ("ghc-regex" ,ghc-regex)
14107 ("ghc-safe" ,ghc-safe)
14108 ("ghc-safeio" ,ghc-safeio)
14109 ("ghc-strict" ,ghc-strict)
14110 ("ghc-tar" ,ghc-tar)
14111 ("ghc-text" ,ghc-text)
14112 ("ghc-unliftio" ,ghc-unliftio)
14113 ("ghc-unliftio-core" ,ghc-unliftio-core)
14114 ("ghc-vector" ,ghc-vector)
14115 ("ghc-yaml" ,ghc-yaml)
14116 ("ghc-zlib" ,ghc-zlib)))
14117 (propagated-inputs
14118 `(("r-r6" ,r-r6)
14119 ("r-hdf5r" ,r-hdf5r)
14120 ("r-iterators" ,r-iterators)
14121 ("r-itertools" ,r-itertools)
14122 ("r-matrix" ,r-matrix)))
14123 (native-inputs
14124 `(("ghc-hpack" ,ghc-hpack)
14125 ("ghc-quickcheck" ,ghc-quickcheck)
14126 ("ghc-test-framework" ,ghc-test-framework)
14127 ("ghc-test-framework-hunit",ghc-test-framework-hunit)
14128 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
14129 ("ghc-test-framework-th" ,ghc-test-framework-th)))
14130 (home-page "https://gitlab.com/ngless/ngless")
14131 (synopsis "DSL for processing next-generation sequencing data")
14132 (description "Ngless is a domain-specific language for
14133 @dfn{next-generation sequencing} (NGS) data processing.")
14134 (license license:expat)))
14135
14136 (define-public filtlong
14137 ;; The recommended way to install is to clone the git repository
14138 ;; https://github.com/rrwick/Filtlong#installation
14139 ;; and the lastest release is more than nine months old
14140 (let ((commit "d1bb46dfe8bc7efe6257b5ce222c04bfe8aedaab")
14141 (revision "1"))
14142 (package
14143 (name "filtlong")
14144 (version (git-version "0.2.0" revision commit))
14145 (source
14146 (origin
14147 (method git-fetch)
14148 (uri (git-reference
14149 (url "https://github.com/rrwick/Filtlong.git")
14150 (commit commit)))
14151 (file-name (git-file-name name version))
14152 (sha256
14153 (base32 "1xr92r820x8qlkcr3b57iw223yq8vjgyi42jr79w2xgw47qzr575"))))
14154 (build-system gnu-build-system)
14155 (arguments
14156 `(#:tests? #f ; no check target
14157 #:phases
14158 (modify-phases %standard-phases
14159 (delete 'configure)
14160 (replace 'install
14161 (lambda* (#:key outputs #:allow-other-keys)
14162 (let* ((out (assoc-ref outputs "out"))
14163 (bin (string-append out "/bin"))
14164 (scripts (string-append out "/share/filtlong/scripts")))
14165 (install-file "bin/filtlong" bin)
14166 (install-file "scripts/histogram.py" scripts)
14167 (install-file "scripts/read_info_histograms.sh" scripts))
14168 #t))
14169 (add-after 'install 'wrap-program
14170 (lambda* (#:key inputs outputs #:allow-other-keys)
14171 (let* ((out (assoc-ref outputs "out"))
14172 (path (getenv "PYTHONPATH")))
14173 (wrap-program (string-append out
14174 "/share/filtlong/scripts/histogram.py")
14175 `("PYTHONPATH" ":" prefix (,path))))
14176 #t))
14177 (add-before 'check 'patch-tests
14178 (lambda _
14179 (substitute* "scripts/read_info_histograms.sh"
14180 (("awk") (which "gawk")))
14181 #t)))))
14182 (inputs
14183 `(("gawk" ,gawk) ;for read_info_histograms.sh
14184 ("python" ,python-2) ;required for histogram.py
14185 ("zlib" ,zlib)))
14186 (home-page "https://github.com/rrwick/Filtlong/")
14187 (synopsis "Tool for quality filtering of Nanopore and PacBio data")
14188 (description
14189 "The Filtlong package is a tool for filtering long reads by quality.
14190 It can take a set of long reads and produce a smaller, better subset. It uses
14191 both read length (longer is better) and read identity (higher is better) when
14192 choosing which reads pass the filter.")
14193 (license (list license:gpl3 ;filtlong
14194 license:asl2.0))))) ;histogram.py
14195
14196 (define-public nanopolish
14197 ;; The recommended way to install is to clone the git repository
14198 ;; <https://github.com/jts/nanopolish#installing-a-particular-release>.
14199 ;; Also, the differences between release and current version seem to be
14200 ;; significant.
14201 (let ((commit "50e8b5cc62f9b46f5445f5c5e8c5ab7263ea6d9d")
14202 (revision "1"))
14203 (package
14204 (name "nanopolish")
14205 (version (git-version "0.10.2" revision commit))
14206 (source
14207 (origin
14208 (method git-fetch)
14209 (uri (git-reference
14210 (url "https://github.com/jts/nanopolish.git")
14211 (commit commit)
14212 (recursive? #t)))
14213 (file-name (git-file-name name version))
14214 (sha256
14215 (base32 "09j5gz57yr9i34a27vbl72i4g8syv2zzgmsfyjq02yshmnrvkjs6"))))
14216 (build-system gnu-build-system)
14217 (arguments
14218 `(#:make-flags
14219 `("HDF5=noinstall" "EIGEN=noinstall" "HTS=noinstall" "CC=gcc")
14220 #:tests? #f ; no check target
14221 #:phases
14222 (modify-phases %standard-phases
14223 (add-after 'unpack 'find-eigen
14224 (lambda* (#:key inputs #:allow-other-keys)
14225 (setenv "CPATH"
14226 (string-append (assoc-ref inputs "eigen")
14227 "/include/eigen3"))
14228 #t))
14229 (delete 'configure)
14230 (replace 'install
14231 (lambda* (#:key outputs #:allow-other-keys)
14232 (let* ((out (assoc-ref outputs "out"))
14233 (bin (string-append out "/bin"))
14234 (scripts (string-append out "/share/nanopolish/scripts")))
14235
14236 (install-file "nanopolish" bin)
14237 (for-each (lambda (file) (install-file file scripts))
14238 (find-files "scripts" ".*"))
14239 #t)))
14240 (add-after 'install 'wrap-programs
14241 (lambda* (#:key outputs #:allow-other-keys)
14242 (for-each (lambda (file)
14243 (wrap-program file `("PYTHONPATH" ":" prefix (,path))))
14244 (find-files "/share/nanopolish/scripts" "\\.py"))
14245 (for-each (lambda (file)
14246 (wrap-program file `("PERL5LIB" ":" prefix (,path))))
14247 (find-files "/share/nanopolish/scripts" "\\.pl"))
14248 #t)))))
14249 (inputs
14250 `(("eigen" ,eigen)
14251 ("hdf5" ,hdf5)
14252 ("htslib" ,htslib)
14253 ("perl" ,perl)
14254 ("python" ,python)
14255 ("python-biopython" ,python-biopython)
14256 ("python-numpy" ,python-numpy)
14257 ("python-pysam" ,python-pysam)
14258 ("python-scikit-learn" , python-scikit-learn)
14259 ("python-scipy" ,python-scipy)
14260 ("zlib" ,zlib)))
14261 (home-page "https://github.com/jts/nanopolish")
14262 (synopsis "Signal-level analysis of Oxford Nanopore sequencing data")
14263 (description
14264 "This package analyses the Oxford Nanopore sequencing data at signal-level.
14265 Nanopolish can calculate an improved consensus sequence for a draft genome
14266 assembly, detect base modifications, call SNPs (Single nucleotide
14267 polymorphisms) and indels with respect to a reference genome and more.")
14268 (license license:expat))))
14269
14270 (define-public cnvkit
14271 (package
14272 (name "cnvkit")
14273 (version "0.9.5")
14274 (source
14275 (origin
14276 (method git-fetch)
14277 (uri (git-reference
14278 (url "https://github.com/etal/cnvkit.git")
14279 (commit (string-append "v" version))))
14280 (file-name (git-file-name name version))
14281 (sha256
14282 (base32 "0g2f78k68yglmj4fsfmgs8idqv3di9aj53fg0ld0hqljg8chhh82"))))
14283 (build-system python-build-system)
14284 (propagated-inputs
14285 `(("python-biopython" ,python-biopython)
14286 ("python-future" ,python-future)
14287 ("python-matplotlib" ,python-matplotlib)
14288 ("python-numpy" ,python-numpy)
14289 ("python-reportlab" ,python-reportlab)
14290 ("python-pandas" ,python-pandas)
14291 ("python-pysam" ,python-pysam)
14292 ("python-pyfaidx" ,python-pyfaidx)
14293 ("python-scipy" ,python-scipy)
14294 ;; R packages
14295 ("r-dnacopy" ,r-dnacopy)))
14296 (home-page "https://cnvkit.readthedocs.org/")
14297 (synopsis "Copy number variant detection from targeted DNA sequencing")
14298 (description
14299 "CNVkit is a Python library and command-line software toolkit to infer
14300 and visualize copy number from high-throughput DNA sequencing data. It is
14301 designed for use with hybrid capture, including both whole-exome and custom
14302 target panels, and short-read sequencing platforms such as Illumina and Ion
14303 Torrent.")
14304 (license license:asl2.0)))
14305
14306 (define-public python-pyfit-sne
14307 (package
14308 (name "python-pyfit-sne")
14309 (version "1.0.1")
14310 (source
14311 (origin
14312 (method git-fetch)
14313 (uri (git-reference
14314 (url "https://github.com/KlugerLab/pyFIt-SNE.git")
14315 (commit version)))
14316 (file-name (git-file-name name version))
14317 (sha256
14318 (base32 "13wh3qkzs56azmmgnxib6xfr29g7xh09sxylzjpni5j0pp0rc5qw"))))
14319 (build-system python-build-system)
14320 (propagated-inputs
14321 `(("python-numpy" ,python-numpy)))
14322 (inputs
14323 `(("fftw" ,fftw)))
14324 (native-inputs
14325 `(("python-cython" ,python-cython)))
14326 (home-page "https://github.com/KlugerLab/pyFIt-SNE")
14327 (synopsis "FFT-accelerated Interpolation-based t-SNE")
14328 (description
14329 "t-Stochastic Neighborhood Embedding (t-SNE) is a highly successful
14330 method for dimensionality reduction and visualization of high dimensional
14331 datasets. A popular implementation of t-SNE uses the Barnes-Hut algorithm to
14332 approximate the gradient at each iteration of gradient descent. This package
14333 is a Cython wrapper for FIt-SNE.")
14334 (license license:bsd-4)))
14335
14336 (define-public velvet
14337 (package
14338 (name "velvet")
14339 (version "1.2.10")
14340 (source (origin
14341 (method url-fetch)
14342 (uri (string-append "https://www.ebi.ac.uk/~zerbino/velvet/"
14343 "velvet_" version ".tgz"))
14344 (sha256
14345 (base32
14346 "0h3njwy66p6bx14r3ar1byb0ccaxmxka4c65rn4iybyiqa4d8kc8"))
14347 ;; Delete bundled libraries
14348 (modules '((guix build utils)))
14349 (snippet
14350 '(begin
14351 (delete-file "Manual.pdf")
14352 (delete-file-recursively "third-party")
14353 #t))))
14354 (build-system gnu-build-system)
14355 (arguments
14356 `(#:make-flags '("OPENMP=t")
14357 #:test-target "test"
14358 #:phases
14359 (modify-phases %standard-phases
14360 (delete 'configure)
14361 (add-after 'unpack 'fix-zlib-include
14362 (lambda _
14363 (substitute* "src/binarySequences.c"
14364 (("../third-party/zlib-1.2.3/zlib.h") "zlib.h"))
14365 #t))
14366 (replace 'install
14367 (lambda* (#:key outputs #:allow-other-keys)
14368 (let* ((out (assoc-ref outputs "out"))
14369 (bin (string-append out "/bin"))
14370 (doc (string-append out "/share/doc/velvet")))
14371 (mkdir-p bin)
14372 (mkdir-p doc)
14373 (install-file "velveth" bin)
14374 (install-file "velvetg" bin)
14375 (install-file "Manual.pdf" doc)
14376 (install-file "Columbus_manual.pdf" doc)
14377 #t))))))
14378 (inputs
14379 `(("openmpi" ,openmpi)
14380 ("zlib" ,zlib)))
14381 (native-inputs
14382 `(("texlive" ,(texlive-union (list texlive-latex-graphics
14383 texlive-latex-hyperref)))))
14384 (home-page "https://www.ebi.ac.uk/~zerbino/velvet/")
14385 (synopsis "Nucleic acid sequence assembler for very short reads")
14386 (description
14387 "Velvet is a de novo genomic assembler specially designed for short read
14388 sequencing technologies, such as Solexa or 454. Velvet currently takes in
14389 short read sequences, removes errors then produces high quality unique
14390 contigs. It then uses paired read information, if available, to retrieve the
14391 repeated areas between contigs.")
14392 (license license:gpl2+)))