gnu: igt-gpu-tools: Don't use NAME in source URI.
[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 ;;;
16 ;;; This file is part of GNU Guix.
17 ;;;
18 ;;; GNU Guix is free software; you can redistribute it and/or modify it
19 ;;; under the terms of the GNU General Public License as published by
20 ;;; the Free Software Foundation; either version 3 of the License, or (at
21 ;;; your option) any later version.
22 ;;;
23 ;;; GNU Guix is distributed in the hope that it will be useful, but
24 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
25 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 ;;; GNU General Public License for more details.
27 ;;;
28 ;;; You should have received a copy of the GNU General Public License
29 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
30
31 (define-module (gnu packages bioinformatics)
32 #:use-module ((guix licenses) #:prefix license:)
33 #:use-module (guix packages)
34 #:use-module (guix utils)
35 #:use-module (guix download)
36 #:use-module (guix git-download)
37 #:use-module (guix hg-download)
38 #:use-module (guix build-system ant)
39 #:use-module (guix build-system gnu)
40 #:use-module (guix build-system cmake)
41 #:use-module (guix build-system haskell)
42 #:use-module (guix build-system ocaml)
43 #:use-module (guix build-system perl)
44 #:use-module (guix build-system python)
45 #:use-module (guix build-system r)
46 #:use-module (guix build-system ruby)
47 #:use-module (guix build-system scons)
48 #:use-module (guix build-system trivial)
49 #:use-module (gnu packages)
50 #:use-module (gnu packages autotools)
51 #:use-module (gnu packages algebra)
52 #:use-module (gnu packages base)
53 #:use-module (gnu packages bash)
54 #:use-module (gnu packages bison)
55 #:use-module (gnu packages bioconductor)
56 #:use-module (gnu packages boost)
57 #:use-module (gnu packages check)
58 #:use-module (gnu packages compression)
59 #:use-module (gnu packages cpio)
60 #:use-module (gnu packages cran)
61 #:use-module (gnu packages curl)
62 #:use-module (gnu packages documentation)
63 #:use-module (gnu packages databases)
64 #:use-module (gnu packages datastructures)
65 #:use-module (gnu packages file)
66 #:use-module (gnu packages flex)
67 #:use-module (gnu packages gawk)
68 #:use-module (gnu packages gcc)
69 #:use-module (gnu packages gd)
70 #:use-module (gnu packages gtk)
71 #:use-module (gnu packages glib)
72 #:use-module (gnu packages graph)
73 #:use-module (gnu packages groff)
74 #:use-module (gnu packages guile)
75 #:use-module (gnu packages guile-xyz)
76 #:use-module (gnu packages haskell)
77 #:use-module (gnu packages haskell-check)
78 #:use-module (gnu packages haskell-web)
79 #:use-module (gnu packages image)
80 #:use-module (gnu packages imagemagick)
81 #:use-module (gnu packages java)
82 #:use-module (gnu packages java-compression)
83 #:use-module (gnu packages jemalloc)
84 #:use-module (gnu packages dlang)
85 #:use-module (gnu packages linux)
86 #:use-module (gnu packages logging)
87 #:use-module (gnu packages machine-learning)
88 #:use-module (gnu packages man)
89 #:use-module (gnu packages maths)
90 #:use-module (gnu packages mpi)
91 #:use-module (gnu packages ncurses)
92 #:use-module (gnu packages ocaml)
93 #:use-module (gnu packages pcre)
94 #:use-module (gnu packages parallel)
95 #:use-module (gnu packages pdf)
96 #:use-module (gnu packages perl)
97 #:use-module (gnu packages perl-check)
98 #:use-module (gnu packages pkg-config)
99 #:use-module (gnu packages popt)
100 #:use-module (gnu packages protobuf)
101 #:use-module (gnu packages python)
102 #:use-module (gnu packages python-compression)
103 #:use-module (gnu packages python-web)
104 #:use-module (gnu packages python-xyz)
105 #:use-module (gnu packages readline)
106 #:use-module (gnu packages ruby)
107 #:use-module (gnu packages serialization)
108 #:use-module (gnu packages shells)
109 #:use-module (gnu packages statistics)
110 #:use-module (gnu packages swig)
111 #:use-module (gnu packages tbb)
112 #:use-module (gnu packages tex)
113 #:use-module (gnu packages texinfo)
114 #:use-module (gnu packages textutils)
115 #:use-module (gnu packages time)
116 #:use-module (gnu packages tls)
117 #:use-module (gnu packages vim)
118 #:use-module (gnu packages web)
119 #:use-module (gnu packages xml)
120 #:use-module (gnu packages xorg)
121 #:use-module (srfi srfi-1)
122 #:use-module (ice-9 match))
123
124 (define-public aragorn
125 (package
126 (name "aragorn")
127 (version "1.2.38")
128 (source (origin
129 (method url-fetch)
130 (uri (string-append
131 "http://mbio-serv2.mbioekol.lu.se/ARAGORN/Downloads/aragorn"
132 version ".tgz"))
133 (sha256
134 (base32
135 "09i1rg716smlbnixfm7q1ml2mfpaa2fpn3hwjg625ysmfwwy712b"))))
136 (build-system gnu-build-system)
137 (arguments
138 `(#:tests? #f ; there are no tests
139 #:phases
140 (modify-phases %standard-phases
141 (delete 'configure)
142 (replace 'build
143 (lambda _
144 (invoke "gcc"
145 "-O3"
146 "-ffast-math"
147 "-finline-functions"
148 "-o"
149 "aragorn"
150 (string-append "aragorn" ,version ".c"))
151 #t))
152 (replace 'install
153 (lambda* (#:key outputs #:allow-other-keys)
154 (let* ((out (assoc-ref outputs "out"))
155 (bin (string-append out "/bin"))
156 (man (string-append out "/share/man/man1")))
157 (install-file "aragorn" bin)
158 (install-file "aragorn.1" man))
159 #t)))))
160 (home-page "http://mbio-serv2.mbioekol.lu.se/ARAGORN")
161 (synopsis "Detect tRNA, mtRNA and tmRNA genes in nucleotide sequences")
162 (description
163 "Aragorn identifies transfer RNA, mitochondrial RNA and
164 transfer-messenger RNA from nucleotide sequences, based on homology to known
165 tRNA consensus sequences and RNA structure. It also outputs the secondary
166 structure of the predicted RNA.")
167 (license license:gpl2)))
168
169 (define-public bamm
170 (package
171 (name "bamm")
172 (version "1.7.3")
173 (source (origin
174 (method git-fetch)
175 ;; BamM is not available on pypi.
176 (uri (git-reference
177 (url "https://github.com/Ecogenomics/BamM.git")
178 (commit version)
179 (recursive? #t)))
180 (file-name (git-file-name name version))
181 (sha256
182 (base32
183 "1p83ahi984ipslxlg4yqy1gdnya9rkn1v71z8djgxkm9d2chw4c5"))
184 (modules '((guix build utils)))
185 (snippet
186 `(begin
187 ;; Delete bundled htslib.
188 (delete-file-recursively "c/htslib-1.3.1")
189 #t))))
190 (build-system python-build-system)
191 (arguments
192 `(#:python ,python-2 ; BamM is Python 2 only.
193 ;; Do not use bundled libhts. Do use the bundled libcfu because it has
194 ;; been modified from its original form.
195 #:configure-flags
196 (let ((htslib (assoc-ref %build-inputs "htslib")))
197 (list "--with-libhts-lib" (string-append htslib "/lib")
198 "--with-libhts-inc" (string-append htslib "/include/htslib")))
199 #:phases
200 (modify-phases %standard-phases
201 (add-after 'unpack 'autogen
202 (lambda _
203 (with-directory-excursion "c"
204 (let ((sh (which "sh")))
205 (for-each make-file-writable (find-files "." ".*"))
206 ;; Use autogen so that 'configure' works.
207 (substitute* "autogen.sh" (("/bin/sh") sh))
208 (setenv "CONFIG_SHELL" sh)
209 (invoke "./autogen.sh")))
210 #t))
211 (delete 'build)
212 ;; Run tests after installation so compilation only happens once.
213 (delete 'check)
214 (add-after 'install 'wrap-executable
215 (lambda* (#:key outputs #:allow-other-keys)
216 (let* ((out (assoc-ref outputs "out"))
217 (path (getenv "PATH")))
218 (wrap-program (string-append out "/bin/bamm")
219 `("PATH" ":" prefix (,path))))
220 #t))
221 (add-after 'wrap-executable 'post-install-check
222 (lambda* (#:key inputs outputs #:allow-other-keys)
223 (setenv "PATH"
224 (string-append (assoc-ref outputs "out")
225 "/bin:"
226 (getenv "PATH")))
227 (setenv "PYTHONPATH"
228 (string-append
229 (assoc-ref outputs "out")
230 "/lib/python"
231 (string-take (string-take-right
232 (assoc-ref inputs "python") 5) 3)
233 "/site-packages:"
234 (getenv "PYTHONPATH")))
235 ;; There are 2 errors printed, but they are safe to ignore:
236 ;; 1) [E::hts_open_format] fail to open file ...
237 ;; 2) samtools view: failed to open ...
238 (invoke "nosetests")
239 #t)))))
240 (native-inputs
241 `(("autoconf" ,autoconf)
242 ("automake" ,automake)
243 ("libtool" ,libtool)
244 ("zlib" ,zlib)
245 ("python-nose" ,python2-nose)
246 ("python-pysam" ,python2-pysam)))
247 (inputs
248 `(("htslib" ,htslib-1.3) ; At least one test fails on htslib-1.4+.
249 ("samtools" ,samtools)
250 ("bwa" ,bwa)
251 ("grep" ,grep)
252 ("sed" ,sed)
253 ("coreutils" ,coreutils)))
254 (propagated-inputs
255 `(("python-numpy" ,python2-numpy)))
256 (home-page "http://ecogenomics.github.io/BamM/")
257 (synopsis "Metagenomics-focused BAM file manipulator")
258 (description
259 "BamM is a C library, wrapped in python, to efficiently generate and
260 parse BAM files, specifically for the analysis of metagenomic data. For
261 instance, it implements several methods to assess contig-wise read coverage.")
262 (license license:lgpl3+)))
263
264 (define-public bamtools
265 (package
266 (name "bamtools")
267 (version "2.5.1")
268 (source (origin
269 (method git-fetch)
270 (uri (git-reference
271 (url "https://github.com/pezmaster31/bamtools.git")
272 (commit (string-append "v" version))))
273 (file-name (git-file-name name version))
274 (sha256
275 (base32
276 "0nfb2ypcx9959xnbz6wxh6py3xfizgmg8nrknxl95c507m9hmq8b"))))
277 (build-system cmake-build-system)
278 (arguments
279 `(#:tests? #f ;no "check" target
280 #:phases
281 (modify-phases %standard-phases
282 (add-before
283 'configure 'set-ldflags
284 (lambda* (#:key outputs #:allow-other-keys)
285 (setenv "LDFLAGS"
286 (string-append
287 "-Wl,-rpath="
288 (assoc-ref outputs "out") "/lib/bamtools"))
289 #t)))))
290 (inputs `(("zlib" ,zlib)))
291 (home-page "https://github.com/pezmaster31/bamtools")
292 (synopsis "C++ API and command-line toolkit for working with BAM data")
293 (description
294 "BamTools provides both a C++ API and a command-line toolkit for handling
295 BAM files.")
296 (license license:expat)))
297
298 (define-public bcftools
299 (package
300 (name "bcftools")
301 (version "1.9")
302 (source (origin
303 (method url-fetch)
304 (uri (string-append "https://github.com/samtools/bcftools/"
305 "releases/download/"
306 version "/bcftools-" version ".tar.bz2"))
307 (sha256
308 (base32
309 "1j3h638i8kgihzyrlnpj82xg1b23sijibys9hvwari3fy7kd0dkg"))
310 (modules '((guix build utils)))
311 (snippet '(begin
312 ;; Delete bundled htslib.
313 (delete-file-recursively "htslib-1.9")
314 #t))))
315 (build-system gnu-build-system)
316 (arguments
317 `(#:configure-flags
318 (list "--enable-libgsl")
319 #:test-target "test"
320 #:phases
321 (modify-phases %standard-phases
322 (add-before 'check 'patch-tests
323 (lambda _
324 (substitute* "test/test.pl"
325 (("/bin/bash") (which "bash")))
326 #t)))))
327 (native-inputs
328 `(("htslib" ,htslib)
329 ("perl" ,perl)))
330 (inputs
331 `(("gsl" ,gsl)
332 ("zlib" ,zlib)))
333 (home-page "https://samtools.github.io/bcftools/")
334 (synopsis "Utilities for variant calling and manipulating VCFs and BCFs")
335 (description
336 "BCFtools is a set of utilities that manipulate variant calls in the
337 Variant Call Format (VCF) and its binary counterpart BCF. All commands work
338 transparently with both VCFs and BCFs, both uncompressed and BGZF-compressed.")
339 ;; The sources are dual MIT/GPL, but becomes GPL-only when USE_GPL=1.
340 (license (list license:gpl3+ license:expat))))
341
342 (define-public bedops
343 (package
344 (name "bedops")
345 (version "2.4.35")
346 (source (origin
347 (method git-fetch)
348 (uri (git-reference
349 (url "https://github.com/bedops/bedops.git")
350 (commit (string-append "v" version))))
351 (file-name (git-file-name name version))
352 (sha256
353 (base32
354 "0mmgsgwz5r9w76hzgxkxc9s9lkdhhaf7vr6i02b09vbswvs1fyqx"))))
355 (build-system gnu-build-system)
356 (arguments
357 '(#:tests? #f
358 #:make-flags (list (string-append "BINDIR=" %output "/bin"))
359 #:phases
360 (modify-phases %standard-phases
361 (add-after 'unpack 'unpack-tarballs
362 (lambda _
363 ;; FIXME: Bedops includes tarballs of minimally patched upstream
364 ;; libraries jansson, zlib, and bzip2. We cannot just use stock
365 ;; libraries because at least one of the libraries (zlib) is
366 ;; patched to add a C++ function definition (deflateInit2cpp).
367 ;; Until the Bedops developers offer a way to link against system
368 ;; libraries we have to build the in-tree copies of these three
369 ;; libraries.
370
371 ;; See upstream discussion:
372 ;; https://github.com/bedops/bedops/issues/124
373
374 ;; Unpack the tarballs to benefit from shebang patching.
375 (with-directory-excursion "third-party"
376 (invoke "tar" "xvf" "jansson-2.6.tar.bz2")
377 (invoke "tar" "xvf" "zlib-1.2.7.tar.bz2")
378 (invoke "tar" "xvf" "bzip2-1.0.6.tar.bz2"))
379 ;; Disable unpacking of tarballs in Makefile.
380 (substitute* "system.mk/Makefile.linux"
381 (("^\tbzcat .*") "\t@echo \"not unpacking\"\n")
382 (("\\./configure") "CONFIG_SHELL=bash ./configure"))
383 (substitute* "third-party/zlib-1.2.7/Makefile.in"
384 (("^SHELL=.*$") "SHELL=bash\n"))
385 #t))
386 (delete 'configure))))
387 (home-page "https://github.com/bedops/bedops")
388 (synopsis "Tools for high-performance genomic feature operations")
389 (description
390 "BEDOPS is a suite of tools to address common questions raised in genomic
391 studies---mostly with regard to overlap and proximity relationships between
392 data sets. It aims to be scalable and flexible, facilitating the efficient
393 and accurate analysis and management of large-scale genomic data.
394
395 BEDOPS provides tools that perform highly efficient and scalable Boolean and
396 other set operations, statistical calculations, archiving, conversion and
397 other management of genomic data of arbitrary scale. Tasks can be easily
398 split by chromosome for distributing whole-genome analyses across a
399 computational cluster.")
400 (license license:gpl2+)))
401
402 (define-public bedtools
403 (package
404 (name "bedtools")
405 (version "2.27.1")
406 (source (origin
407 (method url-fetch)
408 (uri (string-append "https://github.com/arq5x/bedtools2/releases/"
409 "download/v" version "/"
410 "bedtools-" version ".tar.gz"))
411 (sha256
412 (base32
413 "1ndg5yknrxl4djx8ddzgk12rrbiidfpmkkg5z3f95jzryfxarhn8"))))
414 (build-system gnu-build-system)
415 (arguments
416 '(#:test-target "test"
417 #:make-flags
418 (list (string-append "prefix=" (assoc-ref %outputs "out")))
419 #:phases
420 (modify-phases %standard-phases
421 (delete 'configure))))
422 (native-inputs `(("python" ,python-2)))
423 (inputs
424 `(("samtools" ,samtools)
425 ("zlib" ,zlib)))
426 (home-page "https://github.com/arq5x/bedtools2")
427 (synopsis "Tools for genome analysis and arithmetic")
428 (description
429 "Collectively, the bedtools utilities are a swiss-army knife of tools for
430 a wide-range of genomics analysis tasks. The most widely-used tools enable
431 genome arithmetic: that is, set theory on the genome. For example, bedtools
432 allows one to intersect, merge, count, complement, and shuffle genomic
433 intervals from multiple files in widely-used genomic file formats such as BAM,
434 BED, GFF/GTF, VCF.")
435 (license license:gpl2)))
436
437 ;; Later releases of bedtools produce files with more columns than
438 ;; what Ribotaper expects.
439 (define-public bedtools-2.18
440 (package (inherit bedtools)
441 (name "bedtools")
442 (version "2.18.0")
443 (source (origin
444 (method url-fetch)
445 (uri (string-append "https://github.com/arq5x/bedtools2/"
446 "releases/download/v" version
447 "/bedtools-" version ".tar.gz"))
448 (sha256
449 (base32
450 "11rvca19ncg03kxd0wzlfx5ws7r3nisd0z8s9j9n182d8ksp2pxz"))))
451 (arguments
452 '(#:test-target "test"
453 #:phases
454 (modify-phases %standard-phases
455 (delete 'configure)
456 (replace 'install
457 (lambda* (#:key outputs #:allow-other-keys)
458 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
459 (for-each (lambda (file)
460 (install-file file bin))
461 (find-files "bin" ".*")))
462 #t)))))))
463
464 ;; Needed for pybedtools.
465 (define-public bedtools-2.26
466 (package (inherit bedtools)
467 (name "bedtools")
468 (version "2.26.0")
469 (source (origin
470 (method url-fetch)
471 (uri (string-append "https://github.com/arq5x/bedtools2/releases/"
472 "download/v" version "/"
473 "bedtools-" version ".tar.gz"))
474 (sha256
475 (base32
476 "0jhavwifnf7lmkb11h9y7dynr8d699h0rd2l52j1pfgircr2zwv5"))))))
477
478 (define-public ribotaper
479 (package
480 (name "ribotaper")
481 (version "1.3.1")
482 (source (origin
483 (method url-fetch)
484 (uri (string-append "https://ohlerlab.mdc-berlin.de/"
485 "files/RiboTaper/RiboTaper_Version_"
486 version ".tar.gz"))
487 (sha256
488 (base32
489 "0ykjbps1y3z3085q94npw8i9x5gldc6shy8vlc08v76zljsm07hv"))))
490 (build-system gnu-build-system)
491 (arguments
492 `(#:phases
493 (modify-phases %standard-phases
494 (add-after 'install 'wrap-executables
495 (lambda* (#:key inputs outputs #:allow-other-keys)
496 (let* ((out (assoc-ref outputs "out")))
497 (for-each
498 (lambda (script)
499 (wrap-program (string-append out "/bin/" script)
500 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
501 '("create_annotations_files.bash"
502 "create_metaplots.bash"
503 "Ribotaper_ORF_find.sh"
504 "Ribotaper.sh")))
505 #t)))))
506 (inputs
507 `(("bedtools" ,bedtools-2.18)
508 ("samtools" ,samtools-0.1)
509 ("r-minimal" ,r-minimal)
510 ("r-foreach" ,r-foreach)
511 ("r-xnomial" ,r-xnomial)
512 ("r-domc" ,r-domc)
513 ("r-multitaper" ,r-multitaper)
514 ("r-seqinr" ,r-seqinr)))
515 (home-page "https://ohlerlab.mdc-berlin.de/software/RiboTaper_126/")
516 (synopsis "Define translated ORFs using ribosome profiling data")
517 (description
518 "Ribotaper is a method for defining translated @dfn{open reading
519 frames} (ORFs) using ribosome profiling (ribo-seq) data. This package
520 provides the Ribotaper pipeline.")
521 (license license:gpl3+)))
522
523 (define-public ribodiff
524 (package
525 (name "ribodiff")
526 (version "0.2.2")
527 (source
528 (origin
529 (method git-fetch)
530 (uri (git-reference
531 (url "https://github.com/ratschlab/RiboDiff.git")
532 (commit (string-append "v" version))))
533 (file-name (git-file-name name version))
534 (sha256
535 (base32
536 "0x75nlp7qnmm64jasbi6l21f2cy99r2cjyl6b4hr8zf2bq22drnz"))))
537 (build-system python-build-system)
538 (arguments
539 `(#:python ,python-2
540 #:phases
541 (modify-phases %standard-phases
542 ;; Generate an installable executable script wrapper.
543 (add-after 'unpack 'patch-setup.py
544 (lambda _
545 (substitute* "setup.py"
546 (("^(.*)packages=.*" line prefix)
547 (string-append line "\n"
548 prefix "scripts=['scripts/TE.py'],\n")))
549 #t)))))
550 (inputs
551 `(("python-numpy" ,python2-numpy)
552 ("python-matplotlib" ,python2-matplotlib)
553 ("python-scipy" ,python2-scipy)
554 ("python-statsmodels" ,python2-statsmodels)))
555 (native-inputs
556 `(("python-mock" ,python2-mock)
557 ("python-nose" ,python2-nose)))
558 (home-page "http://public.bmi.inf.ethz.ch/user/zhongy/RiboDiff/")
559 (synopsis "Detect translation efficiency changes from ribosome footprints")
560 (description "RiboDiff is a statistical tool that detects the protein
561 translational efficiency change from Ribo-Seq (ribosome footprinting) and
562 RNA-Seq data. It uses a generalized linear model to detect genes showing
563 difference in translational profile taking mRNA abundance into account. It
564 facilitates us to decipher the translational regulation that behave
565 independently with transcriptional regulation.")
566 (license license:gpl3+)))
567
568 (define-public bioawk
569 (package
570 (name "bioawk")
571 (version "1.0")
572 (source (origin
573 (method git-fetch)
574 (uri (git-reference
575 (url "https://github.com/lh3/bioawk.git")
576 (commit (string-append "v" version))))
577 (file-name (git-file-name name version))
578 (sha256
579 (base32
580 "1pxc3zdnirxbf9a0az698hd8xdik7qkhypm7v6hn922x8y9qmspm"))))
581 (build-system gnu-build-system)
582 (inputs
583 `(("zlib" ,zlib)))
584 (native-inputs
585 `(("bison" ,bison)))
586 (arguments
587 `(#:tests? #f ; There are no tests to run.
588 ;; Bison must generate files, before other targets can build.
589 #:parallel-build? #f
590 #:phases
591 (modify-phases %standard-phases
592 (delete 'configure) ; There is no configure phase.
593 (replace 'install
594 (lambda* (#:key outputs #:allow-other-keys)
595 (let* ((out (assoc-ref outputs "out"))
596 (bin (string-append out "/bin"))
597 (man (string-append out "/share/man/man1")))
598 (mkdir-p man)
599 (copy-file "awk.1" (string-append man "/bioawk.1"))
600 (install-file "bioawk" bin))
601 #t)))))
602 (home-page "https://github.com/lh3/bioawk")
603 (synopsis "AWK with bioinformatics extensions")
604 (description "Bioawk is an extension to Brian Kernighan's awk, adding the
605 support of several common biological data formats, including optionally gzip'ed
606 BED, GFF, SAM, VCF, FASTA/Q and TAB-delimited formats with column names. It
607 also adds a few built-in functions and a command line option to use TAB as the
608 input/output delimiter. When the new functionality is not used, bioawk is
609 intended to behave exactly the same as the original BWK awk.")
610 (license license:x11)))
611
612 (define-public python-pybedtools
613 (package
614 (name "python-pybedtools")
615 (version "0.7.10")
616 (source (origin
617 (method url-fetch)
618 (uri (pypi-uri "pybedtools" version))
619 (sha256
620 (base32
621 "0l2b2wrnj85azfqgr0zwr60f7j58vlla1hcgxvr9rwikpl8j72ji"))))
622 (build-system python-build-system)
623 (arguments
624 `(#:phases
625 (modify-phases %standard-phases
626 ;; See https://github.com/daler/pybedtools/issues/261
627 (add-after 'unpack 'disable-broken-tests
628 (lambda _
629 ;; This test (pybedtools.test.test_scripts.test_venn_mpl) needs a
630 ;; graphical environment.
631 (substitute* "pybedtools/test/test_scripts.py"
632 (("def test_venn_mpl")
633 "def _do_not_test_venn_mpl"))
634 ;; Requires internet access.
635 (substitute* "pybedtools/test/test_helpers.py"
636 (("def test_chromsizes")
637 "def _do_not_test_chromsizes"))
638 ;; FIXME: these two fail for no good reason.
639 (substitute* "pybedtools/test/test1.py"
640 (("def test_issue_157")
641 "def _do_not_test_issue_157")
642 (("def test_to_dataframe")
643 "def _do_not_test_to_dataframe"))
644 #t)))))
645 (propagated-inputs
646 ;; Tests don't pass with Bedtools 2.27.1.
647 ;; See https://github.com/daler/pybedtools/issues/260
648 `(("bedtools" ,bedtools-2.26)
649 ("samtools" ,samtools)
650 ("python-matplotlib" ,python-matplotlib)
651 ("python-pysam" ,python-pysam)
652 ("python-pyyaml" ,python-pyyaml)))
653 (native-inputs
654 `(("python-numpy" ,python-numpy)
655 ("python-pandas" ,python-pandas)
656 ("python-cython" ,python-cython)
657 ("python-nose" ,python-nose)
658 ("kentutils" ,kentutils) ; for bedGraphToBigWig
659 ("python-six" ,python-six)))
660 (home-page "https://pythonhosted.org/pybedtools/")
661 (synopsis "Python wrapper for BEDtools programs")
662 (description
663 "pybedtools is a Python wrapper for Aaron Quinlan's BEDtools programs,
664 which are widely used for genomic interval manipulation or \"genome algebra\".
665 pybedtools extends BEDTools by offering feature-level manipulations from with
666 Python.")
667 (license license:gpl2+)))
668
669 (define-public python2-pybedtools
670 (let ((pkg (package-with-python2 python-pybedtools)))
671 (package (inherit pkg)
672 (arguments
673 `(#:modules ((ice-9 ftw)
674 (srfi srfi-1)
675 (srfi srfi-26)
676 (guix build utils)
677 (guix build python-build-system))
678 ;; See https://github.com/daler/pybedtools/issues/192
679 ,@(substitute-keyword-arguments (package-arguments pkg)
680 ((#:phases phases)
681 `(modify-phases ,phases
682 (replace 'check
683 (lambda _
684 (let ((cwd (getcwd)))
685 (setenv "PYTHONPATH"
686 (string-append cwd "/build/"
687 (find (cut string-prefix? "lib" <>)
688 (scandir (string-append cwd "/build")))
689 ":" (getenv "PYTHONPATH"))))
690 ;; The tests need to be run from elsewhere...
691 (mkdir-p "/tmp/test")
692 (copy-recursively "pybedtools/test" "/tmp/test")
693 (with-directory-excursion "/tmp/test"
694 (invoke "nosetests"
695 ;; This test fails for unknown reasons
696 "--exclude=.*test_getting_example_beds"))
697 #t))))))))))
698
699 (define-public python-biom-format
700 (package
701 (name "python-biom-format")
702 (version "2.1.7")
703 (source
704 (origin
705 (method git-fetch)
706 ;; Use GitHub as source because PyPI distribution does not contain
707 ;; test data: https://github.com/biocore/biom-format/issues/693
708 (uri (git-reference
709 (url "https://github.com/biocore/biom-format.git")
710 (commit version)))
711 (file-name (git-file-name name version))
712 (sha256
713 (base32
714 "1rna16lyk5aqhnv0dp77wwaplias93f1vw28ad3jmyw6hwkai05v"))))
715 (build-system python-build-system)
716 (arguments
717 `(#:phases
718 (modify-phases %standard-phases
719 (add-after 'unpack 'use-cython
720 (lambda _ (setenv "USE_CYTHON" "1") #t))
721 (add-after 'unpack 'disable-broken-test
722 (lambda _
723 (substitute* "biom/tests/test_cli/test_validate_table.py"
724 (("^(.+)def test_invalid_hdf5" m indent)
725 (string-append indent
726 "@npt.dec.skipif(True, msg='Guix')\n"
727 m)))
728 #t))
729 (add-before 'reset-gzip-timestamps 'make-files-writable
730 (lambda* (#:key outputs #:allow-other-keys)
731 (let ((out (assoc-ref outputs "out")))
732 (for-each (lambda (file) (chmod file #o644))
733 (find-files out "\\.gz"))
734 #t))))))
735 (propagated-inputs
736 `(("python-numpy" ,python-numpy)
737 ("python-scipy" ,python-scipy)
738 ("python-flake8" ,python-flake8)
739 ("python-future" ,python-future)
740 ("python-click" ,python-click)
741 ("python-h5py" ,python-h5py)
742 ("python-pandas" ,python-pandas)))
743 (native-inputs
744 `(("python-cython" ,python-cython)
745 ("python-pytest" ,python-pytest)
746 ("python-pytest-cov" ,python-pytest-cov)
747 ("python-nose" ,python-nose)))
748 (home-page "http://www.biom-format.org")
749 (synopsis "Biological Observation Matrix (BIOM) format utilities")
750 (description
751 "The BIOM file format is designed to be a general-use format for
752 representing counts of observations e.g. operational taxonomic units, KEGG
753 orthology groups or lipid types, in one or more biological samples
754 e.g. microbiome samples, genomes, metagenomes.")
755 (license license:bsd-3)
756 (properties `((python2-variant . ,(delay python2-biom-format))))))
757
758 (define-public python2-biom-format
759 (let ((base (package-with-python2 (strip-python2-variant python-biom-format))))
760 (package
761 (inherit base)
762 (arguments
763 (substitute-keyword-arguments (package-arguments base)
764 ((#:phases phases)
765 `(modify-phases ,phases
766 ;; Do not require the unmaintained pyqi library.
767 (add-after 'unpack 'remove-pyqi
768 (lambda _
769 (substitute* "setup.py"
770 (("install_requires.append\\(\"pyqi\"\\)") "pass"))
771 #t)))))))))
772
773 (define-public bioperl-minimal
774 (let* ((inputs `(("perl-module-build" ,perl-module-build)
775 ("perl-data-stag" ,perl-data-stag)
776 ("perl-libwww" ,perl-libwww)
777 ("perl-uri" ,perl-uri)))
778 (transitive-inputs
779 (map (compose package-name cadr)
780 (delete-duplicates
781 (concatenate
782 (map (compose package-transitive-target-inputs cadr) inputs))))))
783 (package
784 (name "bioperl-minimal")
785 (version "1.7.0")
786 (source
787 (origin
788 (method url-fetch)
789 (uri (string-append "https://github.com/bioperl/bioperl-live/"
790 "archive/release-"
791 (string-map (lambda (c)
792 (if (char=? c #\.)
793 #\- c)) version)
794 ".tar.gz"))
795 (sha256
796 (base32
797 "12phgpxwgkqflkwfb9dcqg7a31dpjlfhar8wcgv0aj5ln4akfz06"))))
798 (build-system perl-build-system)
799 (arguments
800 `(#:phases
801 (modify-phases %standard-phases
802 (add-after
803 'install 'wrap-programs
804 (lambda* (#:key outputs #:allow-other-keys)
805 ;; Make sure all executables in "bin" find the required Perl
806 ;; modules at runtime. As the PERL5LIB variable contains also
807 ;; the paths of native inputs, we pick the transitive target
808 ;; inputs from %build-inputs.
809 (let* ((out (assoc-ref outputs "out"))
810 (bin (string-append out "/bin/"))
811 (path (string-join
812 (cons (string-append out "/lib/perl5/site_perl")
813 (map (lambda (name)
814 (assoc-ref %build-inputs name))
815 ',transitive-inputs))
816 ":")))
817 (for-each (lambda (file)
818 (wrap-program file
819 `("PERL5LIB" ":" prefix (,path))))
820 (find-files bin "\\.pl$"))
821 #t))))))
822 (inputs inputs)
823 (native-inputs
824 `(("perl-test-most" ,perl-test-most)))
825 (home-page "https://metacpan.org/release/BioPerl")
826 (synopsis "Bioinformatics toolkit")
827 (description
828 "BioPerl is the product of a community effort to produce Perl code which
829 is useful in biology. Examples include Sequence objects, Alignment objects
830 and database searching objects. These objects not only do what they are
831 advertised to do in the documentation, but they also interact - Alignment
832 objects are made from the Sequence objects, Sequence objects have access to
833 Annotation and SeqFeature objects and databases, Blast objects can be
834 converted to Alignment objects, and so on. This means that the objects
835 provide a coordinated and extensible framework to do computational biology.")
836 (license license:perl-license))))
837
838 (define-public python-biopython
839 (package
840 (name "python-biopython")
841 (version "1.70")
842 (source (origin
843 (method url-fetch)
844 ;; use PyPi rather than biopython.org to ease updating
845 (uri (pypi-uri "biopython" version))
846 (sha256
847 (base32
848 "0nz4n9d2y2dg849gn1z0vjlkwcpzzkzy3fij7x94a6ixy2c54z2a"))))
849 (build-system python-build-system)
850 (arguments
851 `(#:phases
852 (modify-phases %standard-phases
853 (add-before 'check 'set-home
854 ;; Some tests require a home directory to be set.
855 (lambda _ (setenv "HOME" "/tmp") #t)))))
856 (propagated-inputs
857 `(("python-numpy" ,python-numpy)))
858 (home-page "http://biopython.org/")
859 (synopsis "Tools for biological computation in Python")
860 (description
861 "Biopython is a set of tools for biological computation including parsers
862 for bioinformatics files into Python data structures; interfaces to common
863 bioinformatics programs; a standard sequence class and tools for performing
864 common operations on them; code to perform data classification; code for
865 dealing with alignments; code making it easy to split up parallelizable tasks
866 into separate processes; and more.")
867 (license (license:non-copyleft "http://www.biopython.org/DIST/LICENSE"))))
868
869 (define-public python2-biopython
870 (package-with-python2 python-biopython))
871
872 (define-public python-fastalite
873 (package
874 (name "python-fastalite")
875 (version "0.3")
876 (source
877 (origin
878 (method url-fetch)
879 (uri (pypi-uri "fastalite" version))
880 (sha256
881 (base32
882 "1qli6pxp77i9xn2wfciq2zaxhl82bdxb33cpzqzj1z25yd036wqj"))))
883 (build-system python-build-system)
884 (arguments
885 `(#:tests? #f)) ; Test data is not distributed.
886 (home-page "https://github.com/nhoffman/fastalite")
887 (synopsis "Simplest possible FASTA parser")
888 (description "This library implements a FASTA and a FASTQ parser without
889 relying on a complex dependency tree.")
890 (license license:expat)))
891
892 (define-public python2-fastalite
893 (package-with-python2 python-fastalite))
894
895 (define-public bpp-core
896 ;; The last release was in 2014 and the recommended way to install from source
897 ;; is to clone the git repository, so we do this.
898 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
899 (let ((commit "7d8bced0d1a87291ea8dd7046b7fb5ff9c35c582"))
900 (package
901 (name "bpp-core")
902 (version (string-append "2.2.0-1." (string-take commit 7)))
903 (source (origin
904 (method git-fetch)
905 (uri (git-reference
906 (url "http://biopp.univ-montp2.fr/git/bpp-core")
907 (commit commit)))
908 (file-name (string-append name "-" version "-checkout"))
909 (sha256
910 (base32
911 "10djsq5vlnkilv436gnmh4irpk49v29pa69r6xiryg32xmvn909j"))))
912 (build-system cmake-build-system)
913 (arguments
914 `(#:parallel-build? #f))
915 (inputs
916 `(("gcc" ,gcc-5))) ; Compilation of bpp-phyl fails with GCC 4.9 so we
917 ; compile all of the bpp packages with GCC 5.
918 (home-page "http://biopp.univ-montp2.fr")
919 (synopsis "C++ libraries for Bioinformatics")
920 (description
921 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
922 analysis, phylogenetics, molecular evolution and population genetics. It is
923 Object Oriented and is designed to be both easy to use and computer efficient.
924 Bio++ intends to help programmers to write computer expensive programs, by
925 providing them a set of re-usable tools.")
926 (license license:cecill-c))))
927
928 (define-public bpp-phyl
929 ;; The last release was in 2014 and the recommended way to install from source
930 ;; is to clone the git repository, so we do this.
931 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
932 (let ((commit "0c07167b629f68b569bf274d1ad0c4af83276ae2"))
933 (package
934 (name "bpp-phyl")
935 (version (string-append "2.2.0-1." (string-take commit 7)))
936 (source (origin
937 (method git-fetch)
938 (uri (git-reference
939 (url "http://biopp.univ-montp2.fr/git/bpp-phyl")
940 (commit commit)))
941 (file-name (string-append name "-" version "-checkout"))
942 (sha256
943 (base32
944 "1ssjgchzwj3iai26kyly7gwkdv8sk59nqhkb1wpap3sf5m6kyllh"))))
945 (build-system cmake-build-system)
946 (arguments
947 `(#:parallel-build? #f
948 ;; If out-of-source, test data is not copied into the build directory
949 ;; so the tests fail.
950 #:out-of-source? #f))
951 (inputs
952 `(("bpp-core" ,bpp-core)
953 ("bpp-seq" ,bpp-seq)
954 ;; GCC 4.8 fails due to an 'internal compiler error', so we use a more
955 ;; modern GCC.
956 ("gcc" ,gcc-5)))
957 (home-page "http://biopp.univ-montp2.fr")
958 (synopsis "Bio++ phylogenetic Library")
959 (description
960 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
961 analysis, phylogenetics, molecular evolution and population genetics. This
962 library provides phylogenetics-related modules.")
963 (license license:cecill-c))))
964
965 (define-public bpp-popgen
966 ;; The last release was in 2014 and the recommended way to install from source
967 ;; is to clone the git repository, so we do this.
968 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
969 (let ((commit "e472bac9b1a148803895d747cd6d0c5904f85d9f"))
970 (package
971 (name "bpp-popgen")
972 (version (string-append "2.2.0-1." (string-take commit 7)))
973 (source (origin
974 (method git-fetch)
975 (uri (git-reference
976 (url "http://biopp.univ-montp2.fr/git/bpp-popgen")
977 (commit commit)))
978 (file-name (string-append name "-" version "-checkout"))
979 (sha256
980 (base32
981 "0yn82dzn1n5629nzja68xfrhi655709rjanyryb36vzkmymy6dw5"))))
982 (build-system cmake-build-system)
983 (arguments
984 `(#:parallel-build? #f
985 #:tests? #f)) ; There are no tests.
986 (inputs
987 `(("bpp-core" ,bpp-core)
988 ("bpp-seq" ,bpp-seq)
989 ("gcc" ,gcc-5)))
990 (home-page "http://biopp.univ-montp2.fr")
991 (synopsis "Bio++ population genetics library")
992 (description
993 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
994 analysis, phylogenetics, molecular evolution and population genetics. This
995 library provides population genetics-related modules.")
996 (license license:cecill-c))))
997
998 (define-public bpp-seq
999 ;; The last release was in 2014 and the recommended way to install from source
1000 ;; is to clone the git repository, so we do this.
1001 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1002 (let ((commit "6cfa07965ce152e5598a89df2fa80a75973bfa33"))
1003 (package
1004 (name "bpp-seq")
1005 (version (string-append "2.2.0-1." (string-take commit 7)))
1006 (source (origin
1007 (method git-fetch)
1008 (uri (git-reference
1009 (url "http://biopp.univ-montp2.fr/git/bpp-seq")
1010 (commit commit)))
1011 (file-name (string-append name "-" version "-checkout"))
1012 (sha256
1013 (base32
1014 "1nys5jq7jqvdg40d91wsmj3q2yzy4276cp7sp44n67p468f27zf2"))))
1015 (build-system cmake-build-system)
1016 (arguments
1017 `(#:parallel-build? #f
1018 ;; If out-of-source, test data is not copied into the build directory
1019 ;; so the tests fail.
1020 #:out-of-source? #f))
1021 (inputs
1022 `(("bpp-core" ,bpp-core)
1023 ("gcc" ,gcc-5))) ; Use GCC 5 as per 'bpp-core'.
1024 (home-page "http://biopp.univ-montp2.fr")
1025 (synopsis "Bio++ sequence library")
1026 (description
1027 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1028 analysis, phylogenetics, molecular evolution and population genetics. This
1029 library provides sequence-related modules.")
1030 (license license:cecill-c))))
1031
1032 (define-public bppsuite
1033 ;; The last release was in 2014 and the recommended way to install from source
1034 ;; is to clone the git repository, so we do this.
1035 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1036 (let ((commit "c516147f57aa50961121cd505bed52cd7603698b"))
1037 (package
1038 (name "bppsuite")
1039 (version (string-append "2.2.0-1." (string-take commit 7)))
1040 (source (origin
1041 (method git-fetch)
1042 (uri (git-reference
1043 (url "http://biopp.univ-montp2.fr/git/bppsuite")
1044 (commit commit)))
1045 (file-name (string-append name "-" version "-checkout"))
1046 (sha256
1047 (base32
1048 "1y87pxvw0jxjizhq2dr9g2r91md45k1p9ih2sl1yy1y3p934l2kb"))))
1049 (build-system cmake-build-system)
1050 (arguments
1051 `(#:parallel-build? #f
1052 #:tests? #f)) ; There are no tests.
1053 (native-inputs
1054 `(("groff" ,groff)
1055 ("man-db" ,man-db)
1056 ("texinfo" ,texinfo)))
1057 (inputs
1058 `(("bpp-core" ,bpp-core)
1059 ("bpp-seq" ,bpp-seq)
1060 ("bpp-phyl" ,bpp-phyl)
1061 ("bpp-phyl" ,bpp-popgen)
1062 ("gcc" ,gcc-5)))
1063 (home-page "http://biopp.univ-montp2.fr")
1064 (synopsis "Bioinformatics tools written with the Bio++ libraries")
1065 (description
1066 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1067 analysis, phylogenetics, molecular evolution and population genetics. This
1068 package provides command line tools using the Bio++ library.")
1069 (license license:cecill-c))))
1070
1071 (define-public blast+
1072 (package
1073 (name "blast+")
1074 (version "2.6.0")
1075 (source (origin
1076 (method url-fetch)
1077 (uri (string-append
1078 "ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/"
1079 version "/ncbi-blast-" version "+-src.tar.gz"))
1080 (sha256
1081 (base32
1082 "15n937pw5aqmyfjb6l387d18grqbb96l63d5xj4l7yyh0zbf2405"))
1083 (patches (search-patches "blast+-fix-makefile.patch"))
1084 (modules '((guix build utils)))
1085 (snippet
1086 '(begin
1087 ;; Remove bundled bzip2, zlib and pcre.
1088 (delete-file-recursively "c++/src/util/compress/bzip2")
1089 (delete-file-recursively "c++/src/util/compress/zlib")
1090 (delete-file-recursively "c++/src/util/regexp")
1091 (substitute* "c++/src/util/compress/Makefile.in"
1092 (("bzip2 zlib api") "api"))
1093 ;; Remove useless msbuild directory
1094 (delete-file-recursively
1095 "c++/src/build-system/project_tree_builder/msbuild")
1096 #t))))
1097 (build-system gnu-build-system)
1098 (arguments
1099 `(;; There are two(!) tests for this massive library, and both fail with
1100 ;; "unparsable timing stats".
1101 ;; ERR [127] -- [serial/datatool] datatool.sh (unparsable timing stats)
1102 ;; ERR [127] -- [serial/datatool] datatool_xml.sh (unparsable timing stats)
1103 #:tests? #f
1104 #:out-of-source? #t
1105 #:parallel-build? #f ; not supported
1106 #:phases
1107 (modify-phases %standard-phases
1108 (add-before 'configure 'set-HOME
1109 ;; $HOME needs to be set at some point during the configure phase
1110 (lambda _ (setenv "HOME" "/tmp") #t))
1111 (add-after 'unpack 'enter-dir
1112 (lambda _ (chdir "c++") #t))
1113 (add-after 'enter-dir 'fix-build-system
1114 (lambda _
1115 (define (which* cmd)
1116 (cond ((string=? cmd "date")
1117 ;; make call to "date" deterministic
1118 "date -d @0")
1119 ((which cmd)
1120 => identity)
1121 (else
1122 (format (current-error-port)
1123 "WARNING: Unable to find absolute path for ~s~%"
1124 cmd)
1125 #f)))
1126
1127 ;; Rewrite hardcoded paths to various tools
1128 (substitute* (append '("src/build-system/configure.ac"
1129 "src/build-system/configure"
1130 "src/build-system/helpers/run_with_lock.c"
1131 "scripts/common/impl/if_diff.sh"
1132 "scripts/common/impl/run_with_lock.sh"
1133 "src/build-system/Makefile.configurables.real"
1134 "src/build-system/Makefile.in.top"
1135 "src/build-system/Makefile.meta.gmake=no"
1136 "src/build-system/Makefile.meta.in"
1137 "src/build-system/Makefile.meta_l"
1138 "src/build-system/Makefile.meta_p"
1139 "src/build-system/Makefile.meta_r"
1140 "src/build-system/Makefile.mk.in"
1141 "src/build-system/Makefile.requirements"
1142 "src/build-system/Makefile.rules_with_autodep.in")
1143 (find-files "scripts/common/check" "\\.sh$"))
1144 (("(/usr/bin/|/bin/)([a-z][-_.a-z]*)" all dir cmd)
1145 (or (which* cmd) all)))
1146
1147 (substitute* (find-files "src/build-system" "^config.*")
1148 (("LN_S=/bin/\\$LN_S") (string-append "LN_S=" (which "ln")))
1149 (("^PATH=.*") ""))
1150
1151 ;; rewrite "/var/tmp" in check script
1152 (substitute* "scripts/common/check/check_make_unix.sh"
1153 (("/var/tmp") "/tmp"))
1154
1155 ;; do not reset PATH
1156 (substitute* (find-files "scripts/common/impl/" "\\.sh$")
1157 (("^ *PATH=.*") "")
1158 (("action=/bin/") "action=")
1159 (("export PATH") ":"))
1160 #t))
1161 (replace 'configure
1162 (lambda* (#:key inputs outputs #:allow-other-keys)
1163 (let ((out (assoc-ref outputs "out"))
1164 (lib (string-append (assoc-ref outputs "lib") "/lib"))
1165 (include (string-append (assoc-ref outputs "include")
1166 "/include/ncbi-tools++")))
1167 ;; The 'configure' script doesn't recognize things like
1168 ;; '--enable-fast-install'.
1169 (invoke "./configure.orig"
1170 (string-append "--with-build-root=" (getcwd) "/build")
1171 (string-append "--prefix=" out)
1172 (string-append "--libdir=" lib)
1173 (string-append "--includedir=" include)
1174 (string-append "--with-bz2="
1175 (assoc-ref inputs "bzip2"))
1176 (string-append "--with-z="
1177 (assoc-ref inputs "zlib"))
1178 (string-append "--with-pcre="
1179 (assoc-ref inputs "pcre"))
1180 ;; Each library is built twice by default, once
1181 ;; with "-static" in its name, and again
1182 ;; without.
1183 "--without-static"
1184 "--with-dll")
1185 #t))))))
1186 (outputs '("out" ; 21 MB
1187 "lib" ; 226 MB
1188 "include")) ; 33 MB
1189 (inputs
1190 `(("bzip2" ,bzip2)
1191 ("zlib" ,zlib)
1192 ("pcre" ,pcre)
1193 ("perl" ,perl)
1194 ("python" ,python-wrapper)))
1195 (native-inputs
1196 `(("cpio" ,cpio)))
1197 (home-page "http://blast.ncbi.nlm.nih.gov")
1198 (synopsis "Basic local alignment search tool")
1199 (description
1200 "BLAST is a popular method of performing a DNA or protein sequence
1201 similarity search, using heuristics to produce results quickly. It also
1202 calculates an “expect value” that estimates how many matches would have
1203 occurred at a given score by chance, which can aid a user in judging how much
1204 confidence to have in an alignment.")
1205 ;; Most of the sources are in the public domain, with the following
1206 ;; exceptions:
1207 ;; * Expat:
1208 ;; * ./c++/include/util/bitset/
1209 ;; * ./c++/src/html/ncbi_menu*.js
1210 ;; * Boost license:
1211 ;; * ./c++/include/util/impl/floating_point_comparison.hpp
1212 ;; * LGPL 2+:
1213 ;; * ./c++/include/dbapi/driver/odbc/unix_odbc/
1214 ;; * ASL 2.0:
1215 ;; * ./c++/src/corelib/teamcity_*
1216 (license (list license:public-domain
1217 license:expat
1218 license:boost1.0
1219 license:lgpl2.0+
1220 license:asl2.0))))
1221
1222 (define-public bless
1223 (package
1224 (name "bless")
1225 (version "1p02")
1226 (source (origin
1227 (method url-fetch)
1228 (uri (string-append "mirror://sourceforge/bless-ec/bless.v"
1229 version ".tgz"))
1230 (sha256
1231 (base32
1232 "0rm0gw2s18dqwzzpl3c2x1z05ni2v0xz5dmfk3d33j6g4cgrlrdd"))
1233 (modules '((guix build utils)))
1234 (snippet
1235 `(begin
1236 ;; Remove bundled boost, pigz, zlib, and .git directory
1237 ;; FIXME: also remove bundled sources for murmurhash3 and
1238 ;; kmc once packaged.
1239 (delete-file-recursively "boost")
1240 (delete-file-recursively "pigz")
1241 (delete-file-recursively "google-sparsehash")
1242 (delete-file-recursively "zlib")
1243 (delete-file-recursively ".git")
1244 #t))))
1245 (build-system gnu-build-system)
1246 (arguments
1247 '(#:tests? #f ;no "check" target
1248 #:make-flags
1249 (list (string-append "ZLIB="
1250 (assoc-ref %build-inputs "zlib:static")
1251 "/lib/libz.a")
1252 (string-append "LDFLAGS="
1253 (string-join '("-lboost_filesystem"
1254 "-lboost_system"
1255 "-lboost_iostreams"
1256 "-lz"
1257 "-fopenmp"
1258 "-std=c++11"))))
1259 #:phases
1260 (modify-phases %standard-phases
1261 (add-after 'unpack 'do-not-build-bundled-pigz
1262 (lambda* (#:key inputs outputs #:allow-other-keys)
1263 (substitute* "Makefile"
1264 (("cd pigz/pigz-2.3.3; make") ""))
1265 #t))
1266 (add-after 'unpack 'patch-paths-to-executables
1267 (lambda* (#:key inputs outputs #:allow-other-keys)
1268 (substitute* "parse_args.cpp"
1269 (("kmc_binary = .*")
1270 (string-append "kmc_binary = \""
1271 (assoc-ref outputs "out")
1272 "/bin/kmc\";"))
1273 (("pigz_binary = .*")
1274 (string-append "pigz_binary = \""
1275 (assoc-ref inputs "pigz")
1276 "/bin/pigz\";")))
1277 #t))
1278 (replace 'install
1279 (lambda* (#:key outputs #:allow-other-keys)
1280 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
1281 (for-each (lambda (file)
1282 (install-file file bin))
1283 '("bless" "kmc/bin/kmc"))
1284 #t)))
1285 (delete 'configure))))
1286 (native-inputs
1287 `(("perl" ,perl)))
1288 (inputs
1289 `(("openmpi" ,openmpi)
1290 ("boost" ,boost)
1291 ("sparsehash" ,sparsehash)
1292 ("pigz" ,pigz)
1293 ("zlib:static" ,zlib "static")
1294 ("zlib" ,zlib)))
1295 (supported-systems '("x86_64-linux"))
1296 (home-page "https://sourceforge.net/p/bless-ec/wiki/Home/")
1297 (synopsis "Bloom-filter-based error correction tool for NGS reads")
1298 (description
1299 "@dfn{Bloom-filter-based error correction solution for high-throughput
1300 sequencing reads} (BLESS) uses a single minimum-sized bloom filter is a
1301 correction tool for genomic reads produced by @dfn{Next-generation
1302 sequencing} (NGS). BLESS produces accurate correction results with much less
1303 memory compared with previous solutions and is also able to tolerate a higher
1304 false-positive rate. BLESS can extend reads like DNA assemblers to correct
1305 errors at the end of reads.")
1306 (license license:gpl3+)))
1307
1308 (define-public bowtie
1309 (package
1310 (name "bowtie")
1311 (version "2.3.4.3")
1312 (source (origin
1313 (method git-fetch)
1314 (uri (git-reference
1315 (url "https://github.com/BenLangmead/bowtie2.git")
1316 (commit (string-append "v" version))))
1317 (file-name (git-file-name name version))
1318 (sha256
1319 (base32
1320 "1zl3cf327y2p7p03cavymbh7b00djc7lncfaqih33n96iy9q8ibp"))
1321 (modules '((guix build utils)))
1322 (snippet
1323 '(begin
1324 (substitute* "Makefile"
1325 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1326 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1327 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
1328 #t))))
1329 (build-system gnu-build-system)
1330 (arguments
1331 '(#:make-flags
1332 (list "allall"
1333 "WITH_TBB=1"
1334 (string-append "prefix=" (assoc-ref %outputs "out")))
1335 #:phases
1336 (modify-phases %standard-phases
1337 (delete 'configure)
1338 (replace 'check
1339 (lambda _
1340 (invoke "perl"
1341 "scripts/test/simple_tests.pl"
1342 "--bowtie2=./bowtie2"
1343 "--bowtie2-build=./bowtie2-build")
1344 #t)))))
1345 (inputs
1346 `(("tbb" ,tbb)
1347 ("zlib" ,zlib)
1348 ("python" ,python-wrapper)))
1349 (native-inputs
1350 `(("perl" ,perl)
1351 ("perl-clone" ,perl-clone)
1352 ("perl-test-deep" ,perl-test-deep)
1353 ("perl-test-simple" ,perl-test-simple)))
1354 (home-page "http://bowtie-bio.sourceforge.net/bowtie2/index.shtml")
1355 (synopsis "Fast and sensitive nucleotide sequence read aligner")
1356 (description
1357 "Bowtie 2 is a fast and memory-efficient tool for aligning sequencing
1358 reads to long reference sequences. It is particularly good at aligning reads
1359 of about 50 up to 100s or 1,000s of characters, and particularly good at
1360 aligning to relatively long (e.g. mammalian) genomes. Bowtie 2 indexes the
1361 genome with an FM Index to keep its memory footprint small: for the human
1362 genome, its memory footprint is typically around 3.2 GB. Bowtie 2 supports
1363 gapped, local, and paired-end alignment modes.")
1364 (supported-systems '("x86_64-linux"))
1365 (license license:gpl3+)))
1366
1367 (define-public tophat
1368 (package
1369 (name "tophat")
1370 (version "2.1.1")
1371 (source (origin
1372 (method url-fetch)
1373 (uri (string-append
1374 "http://ccb.jhu.edu/software/tophat/downloads/tophat-"
1375 version ".tar.gz"))
1376 (sha256
1377 (base32
1378 "19add02kv2xhd6ihd779dr7x35ggym3jqr0m5c4315i1yfb0p11p"))
1379 (modules '((guix build utils)))
1380 (snippet
1381 '(begin
1382 ;; Remove bundled SeqAn and samtools
1383 (delete-file-recursively "src/SeqAn-1.4.2")
1384 (delete-file-recursively "src/samtools-0.1.18")
1385 #t))))
1386 (build-system gnu-build-system)
1387 (arguments
1388 '(#:parallel-build? #f ; not supported
1389 #:phases
1390 (modify-phases %standard-phases
1391 (add-after 'unpack 'use-system-samtools
1392 (lambda* (#:key inputs #:allow-other-keys)
1393 (substitute* "src/Makefile.in"
1394 (("(noinst_LIBRARIES = )\\$\\(SAMLIB\\)" _ prefix) prefix)
1395 (("\\$\\(SAMPROG\\): \\$\\(SAMLIB\\)") "")
1396 (("SAMPROG = samtools_0\\.1\\.18") "")
1397 (("\\$\\(samtools_0_1_18_SOURCES\\)") "")
1398 (("am__EXEEXT_1 = samtools_0\\.1\\.18\\$\\(EXEEXT\\)") ""))
1399 (substitute* '("src/common.cpp"
1400 "src/tophat.py")
1401 (("samtools_0.1.18") (which "samtools")))
1402 (substitute* '("src/common.h"
1403 "src/bam2fastx.cpp")
1404 (("#include \"bam.h\"") "#include <samtools/bam.h>")
1405 (("#include \"sam.h\"") "#include <samtools/sam.h>"))
1406 (substitute* '("src/bwt_map.h"
1407 "src/map2gtf.h"
1408 "src/align_status.h")
1409 (("#include <bam.h>") "#include <samtools/bam.h>")
1410 (("#include <sam.h>") "#include <samtools/sam.h>"))
1411 #t)))))
1412 (inputs
1413 `(("boost" ,boost)
1414 ("bowtie" ,bowtie)
1415 ("samtools" ,samtools-0.1)
1416 ("ncurses" ,ncurses)
1417 ("python" ,python-2)
1418 ("perl" ,perl)
1419 ("zlib" ,zlib)
1420 ("seqan" ,seqan-1)))
1421 (home-page "http://ccb.jhu.edu/software/tophat/index.shtml")
1422 (synopsis "Spliced read mapper for RNA-Seq data")
1423 (description
1424 "TopHat is a fast splice junction mapper for nucleotide sequence
1425 reads produced by the RNA-Seq method. It aligns RNA-Seq reads to
1426 mammalian-sized genomes using the ultra high-throughput short read
1427 aligner Bowtie, and then analyzes the mapping results to identify
1428 splice junctions between exons.")
1429 ;; TopHat is released under the Boost Software License, Version 1.0
1430 ;; See https://github.com/infphilo/tophat/issues/11#issuecomment-121589893
1431 (license license:boost1.0)))
1432
1433 (define-public bwa
1434 (package
1435 (name "bwa")
1436 (version "0.7.17")
1437 (source (origin
1438 (method url-fetch)
1439 (uri (string-append
1440 "https://github.com/lh3/bwa/releases/download/v"
1441 version "/bwa-" version ".tar.bz2"))
1442 (sha256
1443 (base32
1444 "1zfhv2zg9v1icdlq4p9ssc8k01mca5d1bd87w71py2swfi74s6yy"))))
1445 (build-system gnu-build-system)
1446 (arguments
1447 '(#:tests? #f ;no "check" target
1448 #:phases
1449 (modify-phases %standard-phases
1450 (replace 'install
1451 (lambda* (#:key outputs #:allow-other-keys)
1452 (let ((bin (string-append
1453 (assoc-ref outputs "out") "/bin"))
1454 (doc (string-append
1455 (assoc-ref outputs "out") "/share/doc/bwa"))
1456 (man (string-append
1457 (assoc-ref outputs "out") "/share/man/man1")))
1458 (install-file "bwa" bin)
1459 (install-file "README.md" doc)
1460 (install-file "bwa.1" man))
1461 #t))
1462 ;; no "configure" script
1463 (delete 'configure))))
1464 (inputs `(("zlib" ,zlib)))
1465 ;; Non-portable SSE instructions are used so building fails on platforms
1466 ;; other than x86_64.
1467 (supported-systems '("x86_64-linux"))
1468 (home-page "http://bio-bwa.sourceforge.net/")
1469 (synopsis "Burrows-Wheeler sequence aligner")
1470 (description
1471 "BWA is a software package for mapping low-divergent sequences against a
1472 large reference genome, such as the human genome. It consists of three
1473 algorithms: BWA-backtrack, BWA-SW and BWA-MEM. The first algorithm is
1474 designed for Illumina sequence reads up to 100bp, while the rest two for
1475 longer sequences ranged from 70bp to 1Mbp. BWA-MEM and BWA-SW share similar
1476 features such as long-read support and split alignment, but BWA-MEM, which is
1477 the latest, is generally recommended for high-quality queries as it is faster
1478 and more accurate. BWA-MEM also has better performance than BWA-backtrack for
1479 70-100bp Illumina reads.")
1480 (license license:gpl3+)))
1481
1482 (define-public bwa-pssm
1483 (package (inherit bwa)
1484 (name "bwa-pssm")
1485 (version "0.5.11")
1486 (source (origin
1487 (method git-fetch)
1488 (uri (git-reference
1489 (url "https://github.com/pkerpedjiev/bwa-pssm.git")
1490 (commit version)))
1491 (file-name (git-file-name name version))
1492 (sha256
1493 (base32
1494 "076c4q0cdqz8jgylb067y9zmvxglppnzi3qiscn0xiypgc6lgb5r"))))
1495 (build-system gnu-build-system)
1496 (inputs
1497 `(("gdsl" ,gdsl)
1498 ("zlib" ,zlib)
1499 ("perl" ,perl)))
1500 (home-page "http://bwa-pssm.binf.ku.dk/")
1501 (synopsis "Burrows-Wheeler transform-based probabilistic short read mapper")
1502 (description
1503 "BWA-PSSM is a probabilistic short genomic sequence read aligner based on
1504 the use of @dfn{position specific scoring matrices} (PSSM). Like many of the
1505 existing aligners it is fast and sensitive. Unlike most other aligners,
1506 however, it is also adaptible in the sense that one can direct the alignment
1507 based on known biases within the data set. It is coded as a modification of
1508 the original BWA alignment program and shares the genome index structure as
1509 well as many of the command line options.")
1510 (license license:gpl3+)))
1511
1512 (define-public python-bx-python
1513 (package
1514 (name "python-bx-python")
1515 (version "0.8.2")
1516 (source (origin
1517 (method url-fetch)
1518 (uri (pypi-uri "bx-python" version))
1519 (sha256
1520 (base32
1521 "11kksg2rbzihpmcid823xvg42xi88m7sz58rzk29abybkxy0rszs"))))
1522 (build-system python-build-system)
1523 ;; Tests fail because test data are not included
1524 (arguments '(#:tests? #f))
1525 (propagated-inputs
1526 `(("python-numpy" ,python-numpy)
1527 ("python-six" ,python-six)))
1528 (inputs
1529 `(("zlib" ,zlib)))
1530 (native-inputs
1531 `(("python-lzo" ,python-lzo)
1532 ("python-nose" ,python-nose)
1533 ("python-cython" ,python-cython)))
1534 (home-page "https://github.com/bxlab/bx-python")
1535 (synopsis "Tools for manipulating biological data")
1536 (description
1537 "bx-python provides tools for manipulating biological data, particularly
1538 multiple sequence alignments.")
1539 (license license:expat)))
1540
1541 (define-public python2-bx-python
1542 (package-with-python2 python-bx-python))
1543
1544 (define-public python-pysam
1545 (package
1546 (name "python-pysam")
1547 (version "0.15.1")
1548 (source (origin
1549 (method git-fetch)
1550 ;; Test data is missing on PyPi.
1551 (uri (git-reference
1552 (url "https://github.com/pysam-developers/pysam.git")
1553 (commit (string-append "v" version))))
1554 (file-name (git-file-name name version))
1555 (sha256
1556 (base32
1557 "1vj367w6xbn9bpmksm162l1aipf7cj97h1q83y7jcpm33ihwpf7x"))
1558 (modules '((guix build utils)))
1559 (snippet '(begin
1560 ;; Drop bundled htslib. TODO: Also remove samtools
1561 ;; and bcftools.
1562 (delete-file-recursively "htslib")
1563 #t))))
1564 (build-system python-build-system)
1565 (arguments
1566 `(#:modules ((ice-9 ftw)
1567 (srfi srfi-26)
1568 (guix build python-build-system)
1569 (guix build utils))
1570 #:phases
1571 (modify-phases %standard-phases
1572 (add-before 'build 'set-flags
1573 (lambda* (#:key inputs #:allow-other-keys)
1574 (setenv "HTSLIB_MODE" "external")
1575 (setenv "HTSLIB_LIBRARY_DIR"
1576 (string-append (assoc-ref inputs "htslib") "/lib"))
1577 (setenv "HTSLIB_INCLUDE_DIR"
1578 (string-append (assoc-ref inputs "htslib") "/include"))
1579 (setenv "LDFLAGS" "-lncurses")
1580 (setenv "CFLAGS" "-D_CURSES_LIB=1")
1581 #t))
1582 (replace 'check
1583 (lambda* (#:key inputs outputs #:allow-other-keys)
1584 ;; This file contains tests that require a connection to the
1585 ;; internet.
1586 (delete-file "tests/tabix_test.py")
1587 ;; FIXME: This test fails
1588 (delete-file "tests/AlignmentFile_test.py")
1589 ;; Add first subdirectory of "build" directory to PYTHONPATH.
1590 (setenv "PYTHONPATH"
1591 (string-append
1592 (getenv "PYTHONPATH")
1593 ":" (getcwd) "/build/"
1594 (car (scandir "build"
1595 (negate (cut string-prefix? "." <>))))))
1596 ;; Step out of source dir so python does not import from CWD.
1597 (with-directory-excursion "tests"
1598 (setenv "HOME" "/tmp")
1599 (invoke "make" "-C" "pysam_data")
1600 (invoke "make" "-C" "cbcf_data")
1601 ;; Running nosetests without explicitly asking for a single
1602 ;; process leads to a crash. Running with multiple processes
1603 ;; fails because the tests are not designed to run in parallel.
1604
1605 ;; FIXME: tests keep timing out on some systems.
1606 (invoke "nosetests" "-v" "--processes" "1")))))))
1607 (propagated-inputs
1608 `(("htslib" ,htslib))) ; Included from installed header files.
1609 (inputs
1610 `(("ncurses" ,ncurses)
1611 ("curl" ,curl)
1612 ("zlib" ,zlib)))
1613 (native-inputs
1614 `(("python-cython" ,python-cython)
1615 ;; Dependencies below are are for tests only.
1616 ("samtools" ,samtools)
1617 ("bcftools" ,bcftools)
1618 ("python-nose" ,python-nose)))
1619 (home-page "https://github.com/pysam-developers/pysam")
1620 (synopsis "Python bindings to the SAMtools C API")
1621 (description
1622 "Pysam is a Python module for reading and manipulating files in the
1623 SAM/BAM format. Pysam is a lightweight wrapper of the SAMtools C API. It
1624 also includes an interface for tabix.")
1625 (license license:expat)))
1626
1627 (define-public python2-pysam
1628 (package-with-python2 python-pysam))
1629
1630 (define-public python-twobitreader
1631 (package
1632 (name "python-twobitreader")
1633 (version "3.1.6")
1634 (source (origin
1635 (method git-fetch)
1636 (uri (git-reference
1637 (url "https://github.com/benjschiller/twobitreader")
1638 (commit version)))
1639 (file-name (git-file-name name version))
1640 (sha256
1641 (base32
1642 "1qbxvv1h58cismbk1anpjrkpghsaiy64a11ir3lhy6qch6xf8n62"))))
1643 (build-system python-build-system)
1644 ;; Tests are not included
1645 (arguments '(#:tests? #f))
1646 (native-inputs
1647 `(("python-sphinx" ,python-sphinx)))
1648 (home-page "https://github.com/benjschiller/twobitreader")
1649 (synopsis "Python library for reading .2bit files")
1650 (description
1651 "twobitreader is a Python library for reading .2bit files as used by the
1652 UCSC genome browser.")
1653 (license license:artistic2.0)))
1654
1655 (define-public python2-twobitreader
1656 (package-with-python2 python-twobitreader))
1657
1658 (define-public python-plastid
1659 (package
1660 (name "python-plastid")
1661 (version "0.4.8")
1662 (source (origin
1663 (method url-fetch)
1664 (uri (pypi-uri "plastid" version))
1665 (sha256
1666 (base32
1667 "0l24dd3q66if8yj042m4s0g95n6acn7im1imqd3p6h8ns43kxhj8"))))
1668 (build-system python-build-system)
1669 (arguments
1670 ;; Some test files are not included.
1671 `(#:tests? #f))
1672 (propagated-inputs
1673 `(("python-numpy" ,python-numpy)
1674 ("python-scipy" ,python-scipy)
1675 ("python-pandas" ,python-pandas)
1676 ("python-pysam" ,python-pysam)
1677 ("python-matplotlib" ,python-matplotlib)
1678 ("python-biopython" ,python-biopython)
1679 ("python-twobitreader" ,python-twobitreader)
1680 ("python-termcolor" ,python-termcolor)))
1681 (native-inputs
1682 `(("python-cython" ,python-cython)
1683 ("python-nose" ,python-nose)))
1684 (home-page "https://github.com/joshuagryphon/plastid")
1685 (synopsis "Python library for genomic analysis")
1686 (description
1687 "plastid is a Python library for genomic analysis – in particular,
1688 high-throughput sequencing data – with an emphasis on simplicity.")
1689 (license license:bsd-3)))
1690
1691 (define-public python2-plastid
1692 (package-with-python2 python-plastid))
1693
1694 (define-public cd-hit
1695 (package
1696 (name "cd-hit")
1697 (version "4.6.8")
1698 (source (origin
1699 (method url-fetch)
1700 (uri (string-append "https://github.com/weizhongli/cdhit"
1701 "/releases/download/V" version
1702 "/cd-hit-v" version
1703 "-2017-0621-source.tar.gz"))
1704 (sha256
1705 (base32
1706 "1b4mwm2520ixjbw57sil20f9iixzw4bkdqqwgg1fc3pzm6rz4zmn"))))
1707 (build-system gnu-build-system)
1708 (arguments
1709 `(#:tests? #f ; there are no tests
1710 #:make-flags
1711 ;; Executables are copied directly to the PREFIX.
1712 (list (string-append "PREFIX=" (assoc-ref %outputs "out") "/bin"))
1713 #:phases
1714 (modify-phases %standard-phases
1715 ;; No "configure" script
1716 (delete 'configure)
1717 ;; Remove sources of non-determinism
1718 (add-after 'unpack 'be-timeless
1719 (lambda _
1720 (substitute* "cdhit-utility.c++"
1721 ((" \\(built on \" __DATE__ \"\\)") ""))
1722 (substitute* "cdhit-common.c++"
1723 (("__DATE__") "\"0\"")
1724 (("\", %s, \" __TIME__ \"\\\\n\", date") ""))
1725 #t))
1726 ;; The "install" target does not create the target directory.
1727 (add-before 'install 'create-target-dir
1728 (lambda* (#:key outputs #:allow-other-keys)
1729 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
1730 #t)))))
1731 (inputs
1732 `(("perl" ,perl)))
1733 (home-page "http://weizhongli-lab.org/cd-hit/")
1734 (synopsis "Cluster and compare protein or nucleotide sequences")
1735 (description
1736 "CD-HIT is a program for clustering and comparing protein or nucleotide
1737 sequences. CD-HIT is designed to be fast and handle extremely large
1738 databases.")
1739 ;; The manual says: "It can be copied under the GNU General Public License
1740 ;; version 2 (GPLv2)."
1741 (license license:gpl2)))
1742
1743 (define-public clipper
1744 (package
1745 (name "clipper")
1746 (version "1.2.1")
1747 (source (origin
1748 (method git-fetch)
1749 (uri (git-reference
1750 (url "https://github.com/YeoLab/clipper.git")
1751 (commit version)))
1752 (file-name (git-file-name name version))
1753 (sha256
1754 (base32
1755 "0fja1rj84wp9vpj8rxpj3n8zqzcqq454m904yp9as1w4phccirjb"))
1756 (modules '((guix build utils)))
1757 (snippet
1758 '(begin
1759 ;; remove unnecessary setup dependency
1760 (substitute* "setup.py"
1761 (("setup_requires = .*") ""))
1762 #t))))
1763 (build-system python-build-system)
1764 (arguments
1765 `(#:python ,python-2 ; only Python 2 is supported
1766 #:phases
1767 (modify-phases %standard-phases
1768 ;; This is fixed in upstream commit
1769 ;; f6c2990198f906bf97730d95695b4bd5a6d01ddb.
1770 (add-after 'unpack 'fix-typo
1771 (lambda _
1772 (substitute* "clipper/src/readsToWiggle.pyx"
1773 (("^sc.*") ""))
1774 #t)))))
1775 (inputs
1776 `(("htseq" ,python2-htseq)
1777 ("python-pybedtools" ,python2-pybedtools)
1778 ("python-cython" ,python2-cython)
1779 ("python-scikit-learn" ,python2-scikit-learn)
1780 ("python-matplotlib" ,python2-matplotlib)
1781 ("python-pandas" ,python2-pandas)
1782 ("python-pysam" ,python2-pysam)
1783 ("python-numpy" ,python2-numpy)
1784 ("python-scipy" ,python2-scipy)))
1785 (native-inputs
1786 `(("python-mock" ,python2-mock) ; for tests
1787 ("python-nose" ,python2-nose) ; for tests
1788 ("python-pytz" ,python2-pytz))) ; for tests
1789 (home-page "https://github.com/YeoLab/clipper")
1790 (synopsis "CLIP peak enrichment recognition")
1791 (description
1792 "CLIPper is a tool to define peaks in CLIP-seq datasets.")
1793 (license license:gpl2)))
1794
1795 (define-public codingquarry
1796 (package
1797 (name "codingquarry")
1798 (version "2.0")
1799 (source (origin
1800 (method url-fetch)
1801 (uri (string-append
1802 "mirror://sourceforge/codingquarry/CodingQuarry_v"
1803 version ".tar.gz"))
1804 (sha256
1805 (base32
1806 "0115hkjflsnfzn36xppwf9h9avfxlavr43djqmshkkzbgjzsz60i"))))
1807 (build-system gnu-build-system)
1808 (arguments
1809 '(#:tests? #f ; no "check" target
1810 #:phases
1811 (modify-phases %standard-phases
1812 (delete 'configure)
1813 (replace 'install
1814 (lambda* (#:key outputs #:allow-other-keys)
1815 (let* ((out (assoc-ref outputs "out"))
1816 (bin (string-append out "/bin"))
1817 (doc (string-append out "/share/doc/codingquarry")))
1818 (install-file "INSTRUCTIONS.pdf" doc)
1819 (copy-recursively "QuarryFiles"
1820 (string-append out "/QuarryFiles"))
1821 (install-file "CodingQuarry" bin)
1822 (install-file "CufflinksGTF_to_CodingQuarryGFF3.py" bin))
1823 #t)))))
1824 (inputs `(("openmpi" ,openmpi)))
1825 (native-search-paths
1826 (list (search-path-specification
1827 (variable "QUARRY_PATH")
1828 (files '("QuarryFiles")))))
1829 (native-inputs `(("python" ,python-2))) ; Only Python 2 is supported
1830 (synopsis "Fungal gene predictor")
1831 (description "CodingQuarry is a highly accurate, self-training GHMM fungal
1832 gene predictor designed to work with assembled, aligned RNA-seq transcripts.")
1833 (home-page "https://sourceforge.net/projects/codingquarry/")
1834 (license license:gpl3+)))
1835
1836 (define-public couger
1837 (package
1838 (name "couger")
1839 (version "1.8.2")
1840 (source (origin
1841 (method url-fetch)
1842 (uri (string-append
1843 "http://couger.oit.duke.edu/static/assets/COUGER"
1844 version ".zip"))
1845 (sha256
1846 (base32
1847 "04p2b14nmhzxw5h72mpzdhalv21bx4w9b87z0wpw0xzxpysyncmq"))))
1848 (build-system gnu-build-system)
1849 (arguments
1850 `(#:tests? #f
1851 #:phases
1852 (modify-phases %standard-phases
1853 (delete 'configure)
1854 (delete 'build)
1855 (replace
1856 'install
1857 (lambda* (#:key outputs #:allow-other-keys)
1858 (let* ((out (assoc-ref outputs "out"))
1859 (bin (string-append out "/bin")))
1860 (copy-recursively "src" (string-append out "/src"))
1861 (mkdir bin)
1862 ;; Add "src" directory to module lookup path.
1863 (substitute* "couger"
1864 (("from argparse")
1865 (string-append "import sys\nsys.path.append(\""
1866 out "\")\nfrom argparse")))
1867 (install-file "couger" bin))
1868 #t))
1869 (add-after
1870 'install 'wrap-program
1871 (lambda* (#:key inputs outputs #:allow-other-keys)
1872 ;; Make sure 'couger' runs with the correct PYTHONPATH.
1873 (let* ((out (assoc-ref outputs "out"))
1874 (path (getenv "PYTHONPATH")))
1875 (wrap-program (string-append out "/bin/couger")
1876 `("PYTHONPATH" ":" prefix (,path))))
1877 #t)))))
1878 (inputs
1879 `(("python" ,python-2)
1880 ("python2-pillow" ,python2-pillow)
1881 ("python2-numpy" ,python2-numpy)
1882 ("python2-scipy" ,python2-scipy)
1883 ("python2-matplotlib" ,python2-matplotlib)))
1884 (propagated-inputs
1885 `(("r-minimal" ,r-minimal)
1886 ("libsvm" ,libsvm)
1887 ("randomjungle" ,randomjungle)))
1888 (native-inputs
1889 `(("unzip" ,unzip)))
1890 (home-page "http://couger.oit.duke.edu")
1891 (synopsis "Identify co-factors in sets of genomic regions")
1892 (description
1893 "COUGER can be applied to any two sets of genomic regions bound by
1894 paralogous TFs (e.g., regions derived from ChIP-seq experiments) to identify
1895 putative co-factors that provide specificity to each TF. The framework
1896 determines the genomic targets uniquely-bound by each TF, and identifies a
1897 small set of co-factors that best explain the in vivo binding differences
1898 between the two TFs.
1899
1900 COUGER uses classification algorithms (support vector machines and random
1901 forests) with features that reflect the DNA binding specificities of putative
1902 co-factors. The features are generated either from high-throughput TF-DNA
1903 binding data (from protein binding microarray experiments), or from large
1904 collections of DNA motifs.")
1905 (license license:gpl3+)))
1906
1907 (define-public clustal-omega
1908 (package
1909 (name "clustal-omega")
1910 (version "1.2.4")
1911 (source (origin
1912 (method url-fetch)
1913 (uri (string-append "http://www.clustal.org/omega/clustal-omega-"
1914 version ".tar.gz"))
1915 (sha256
1916 (base32
1917 "1vm30mzncwdv881vrcwg11vzvrsmwy4wg80j5i0lcfk6dlld50w6"))))
1918 (build-system gnu-build-system)
1919 (inputs
1920 `(("argtable" ,argtable)))
1921 (home-page "http://www.clustal.org/omega/")
1922 (synopsis "Multiple sequence aligner for protein and DNA/RNA")
1923 (description
1924 "Clustal-Omega is a general purpose multiple sequence alignment (MSA)
1925 program for protein and DNA/RNA. It produces high quality MSAs and is capable
1926 of handling data-sets of hundreds of thousands of sequences in reasonable
1927 time.")
1928 (license license:gpl2+)))
1929
1930 (define-public crossmap
1931 (package
1932 (name "crossmap")
1933 (version "0.2.9")
1934 (source (origin
1935 (method url-fetch)
1936 (uri (pypi-uri "CrossMap" version))
1937 (sha256
1938 (base32
1939 "1byhclrqnqpvc1rqkfh4jwj6yhn0x9y7jk47i0qcjlhk0pjkw92p"))))
1940 (build-system python-build-system)
1941 (arguments `(#:python ,python-2))
1942 (inputs
1943 `(("python-bx-python" ,python2-bx-python)
1944 ("python-numpy" ,python2-numpy)
1945 ("python-pysam" ,python2-pysam)
1946 ("zlib" ,zlib)))
1947 (native-inputs
1948 `(("python-cython" ,python2-cython)
1949 ("python-nose" ,python2-nose)))
1950 (home-page "http://crossmap.sourceforge.net/")
1951 (synopsis "Convert genome coordinates between assemblies")
1952 (description
1953 "CrossMap is a program for conversion of genome coordinates or annotation
1954 files between different genome assemblies. It supports most commonly used
1955 file formats including SAM/BAM, Wiggle/BigWig, BED, GFF/GTF, VCF.")
1956 (license license:gpl2+)))
1957
1958 (define-public python-dnaio
1959 (package
1960 (name "python-dnaio")
1961 (version "0.3")
1962 (source
1963 (origin
1964 (method url-fetch)
1965 (uri (pypi-uri "dnaio" version))
1966 (sha256
1967 (base32
1968 "0f16m7hdlm0fz1n7y5asy0v9ghyrq17ni1p9iybq22ddzyd49r27"))))
1969 (build-system python-build-system)
1970 (native-inputs
1971 `(("python-cython" ,python-cython)
1972 ("python-pytest" ,python-pytest)
1973 ("python-xopen" ,python-xopen)))
1974 (home-page "https://github.com/marcelm/dnaio/")
1975 (synopsis "Read FASTA and FASTQ files efficiently")
1976 (description
1977 "dnaio is a Python library for fast parsing of FASTQ and also FASTA
1978 files. The code was previously part of the cutadapt tool.")
1979 (license license:expat)))
1980
1981 (define-public cutadapt
1982 (package
1983 (name "cutadapt")
1984 (version "1.18")
1985 (source (origin
1986 (method git-fetch)
1987 (uri (git-reference
1988 (url "https://github.com/marcelm/cutadapt.git")
1989 (commit (string-append "v" version))))
1990 (file-name (git-file-name name version))
1991 (sha256
1992 (base32
1993 "08bbfwyc0kvcd95jf2s95xiv9s3cbsxm39ydl0qck3fw3cviwxpg"))))
1994 (build-system python-build-system)
1995 (inputs
1996 `(("python-dnaio" ,python-dnaio)
1997 ("python-xopen" ,python-xopen)))
1998 (native-inputs
1999 `(("python-cython" ,python-cython)
2000 ("python-pytest" ,python-pytest)))
2001 (home-page "https://cutadapt.readthedocs.io/en/stable/")
2002 (synopsis "Remove adapter sequences from nucleotide sequencing reads")
2003 (description
2004 "Cutadapt finds and removes adapter sequences, primers, poly-A tails and
2005 other types of unwanted sequence from high-throughput sequencing reads.")
2006 (license license:expat)))
2007
2008 (define-public libbigwig
2009 (package
2010 (name "libbigwig")
2011 (version "0.4.2")
2012 (source (origin
2013 (method git-fetch)
2014 (uri (git-reference
2015 (url "https://github.com/dpryan79/libBigWig.git")
2016 (commit version)))
2017 (file-name (string-append name "-" version "-checkout"))
2018 (sha256
2019 (base32
2020 "0h2smg24v5srdcqzrmz2g23cmlp4va465mgx8r2z571sfz8pv454"))))
2021 (build-system gnu-build-system)
2022 (arguments
2023 `(#:test-target "test"
2024 #:tests? #f ; tests require access to the web
2025 #:make-flags
2026 (list "CC=gcc"
2027 (string-append "prefix=" (assoc-ref %outputs "out")))
2028 #:phases
2029 (modify-phases %standard-phases
2030 (delete 'configure))))
2031 (inputs
2032 `(("zlib" ,zlib)
2033 ("curl" ,curl)))
2034 (native-inputs
2035 `(("doxygen" ,doxygen)
2036 ;; Need for tests
2037 ("python" ,python-2)))
2038 (home-page "https://github.com/dpryan79/libBigWig")
2039 (synopsis "C library for handling bigWig files")
2040 (description
2041 "This package provides a C library for parsing local and remote BigWig
2042 files.")
2043 (license license:expat)))
2044
2045 (define-public python-pybigwig
2046 (package
2047 (name "python-pybigwig")
2048 (version "0.3.12")
2049 (source (origin
2050 (method url-fetch)
2051 (uri (pypi-uri "pyBigWig" version))
2052 (sha256
2053 (base32
2054 "00w4kfnm2c5l7wdwr2nj1z5djv8kzgf7h1zhsgv6njff1rwr26g0"))
2055 (modules '((guix build utils)))
2056 (snippet
2057 '(begin
2058 ;; Delete bundled libBigWig sources
2059 (delete-file-recursively "libBigWig")
2060 #t))))
2061 (build-system python-build-system)
2062 (arguments
2063 `(#:phases
2064 (modify-phases %standard-phases
2065 (add-after 'unpack 'link-with-libBigWig
2066 (lambda* (#:key inputs #:allow-other-keys)
2067 (substitute* "setup.py"
2068 (("libs=\\[") "libs=[\"BigWig\", "))
2069 #t)))))
2070 (propagated-inputs
2071 `(("python-numpy" ,python-numpy)))
2072 (inputs
2073 `(("libbigwig" ,libbigwig)
2074 ("zlib" ,zlib)
2075 ("curl" ,curl)))
2076 (home-page "https://github.com/dpryan79/pyBigWig")
2077 (synopsis "Access bigWig files in Python using libBigWig")
2078 (description
2079 "This package provides Python bindings to the libBigWig library for
2080 accessing bigWig files.")
2081 (license license:expat)))
2082
2083 (define-public python2-pybigwig
2084 (package-with-python2 python-pybigwig))
2085
2086 (define-public python-dendropy
2087 (package
2088 (name "python-dendropy")
2089 (version "4.4.0")
2090 (source
2091 (origin
2092 (method git-fetch)
2093 ;; Source from GitHub so that tests are included.
2094 (uri (git-reference
2095 (url "https://github.com/jeetsukumaran/DendroPy.git")
2096 (commit (string-append "v" version))))
2097 (file-name (git-file-name name version))
2098 (sha256
2099 (base32
2100 "097hfyv2kaf4x92i4rjx0paw2cncxap48qivv8zxng4z7nhid0x9"))))
2101 (build-system python-build-system)
2102 (home-page "http://packages.python.org/DendroPy/")
2103 (synopsis "Library for phylogenetics and phylogenetic computing")
2104 (description
2105 "DendroPy is a library for phylogenetics and phylogenetic computing: reading,
2106 writing, simulation, processing and manipulation of phylogenetic
2107 trees (phylogenies) and characters.")
2108 (license license:bsd-3)))
2109
2110 (define-public python2-dendropy
2111 (let ((base (package-with-python2 python-dendropy)))
2112 (package
2113 (inherit base)
2114 (arguments
2115 `(#:phases
2116 (modify-phases %standard-phases
2117 (add-after 'unpack 'remove-failing-test
2118 (lambda _
2119 ;; This test fails when the full test suite is run, as documented
2120 ;; at https://github.com/jeetsukumaran/DendroPy/issues/74
2121 (substitute* "tests/test_dataio_nexml_reader_tree_list.py"
2122 (("test_collection_comments_and_annotations")
2123 "do_not_test_collection_comments_and_annotations"))
2124 #t)))
2125 ,@(package-arguments base))))))
2126
2127 (define-public python-py2bit
2128 (package
2129 (name "python-py2bit")
2130 (version "0.3.0")
2131 (source
2132 (origin
2133 (method url-fetch)
2134 (uri (pypi-uri "py2bit" version))
2135 (sha256
2136 (base32
2137 "1vw2nvw1yrl7ikkqsqs1pg239yr5nspvd969r1x9arms1k25a1a5"))))
2138 (build-system python-build-system)
2139 (home-page "https://github.com/dpryan79/py2bit")
2140 (synopsis "Access 2bit files using lib2bit")
2141 (description
2142 "This package provides Python bindings for lib2bit to access 2bit files
2143 with Python.")
2144 (license license:expat)))
2145
2146 (define-public deeptools
2147 (package
2148 (name "deeptools")
2149 (version "3.1.3")
2150 (source (origin
2151 (method git-fetch)
2152 (uri (git-reference
2153 (url "https://github.com/deeptools/deepTools.git")
2154 (commit version)))
2155 (file-name (git-file-name name version))
2156 (sha256
2157 (base32
2158 "1vggnf52g6q2vifdl4cyi7s2fnfqq0ky2zrkj5zv2qfzsc3p3siw"))))
2159 (build-system python-build-system)
2160 (arguments
2161 `(#:phases
2162 (modify-phases %standard-phases
2163 ;; This phase fails, but it's not needed.
2164 (delete 'reset-gzip-timestamps))))
2165 (inputs
2166 `(("python-plotly" ,python-plotly)
2167 ("python-scipy" ,python-scipy)
2168 ("python-numpy" ,python-numpy)
2169 ("python-numpydoc" ,python-numpydoc)
2170 ("python-matplotlib" ,python-matplotlib)
2171 ("python-pysam" ,python-pysam)
2172 ("python-py2bit" ,python-py2bit)
2173 ("python-pybigwig" ,python-pybigwig)))
2174 (native-inputs
2175 `(("python-mock" ,python-mock) ;for tests
2176 ("python-nose" ,python-nose) ;for tests
2177 ("python-pytz" ,python-pytz))) ;for tests
2178 (home-page "https://github.com/deeptools/deepTools")
2179 (synopsis "Tools for normalizing and visualizing deep-sequencing data")
2180 (description
2181 "DeepTools addresses the challenge of handling the large amounts of data
2182 that are now routinely generated from DNA sequencing centers. To do so,
2183 deepTools contains useful modules to process the mapped reads data to create
2184 coverage files in standard bedGraph and bigWig file formats. By doing so,
2185 deepTools allows the creation of normalized coverage files or the comparison
2186 between two files (for example, treatment and control). Finally, using such
2187 normalized and standardized files, multiple visualizations can be created to
2188 identify enrichments with functional annotations of the genome.")
2189 (license license:gpl3+)))
2190
2191 (define-public delly
2192 (package
2193 (name "delly")
2194 (version "0.7.9")
2195 (source (origin
2196 (method git-fetch)
2197 (uri (git-reference
2198 (url "https://github.com/dellytools/delly.git")
2199 (commit (string-append "v" version))))
2200 (file-name (git-file-name name version))
2201 (sha256
2202 (base32 "034jqsxswy9gqdh2zkgc1js99qkv75ks4xvzgmh0284sraagv61z"))
2203 (modules '((guix build utils)))
2204 (snippet
2205 '(begin
2206 (delete-file-recursively "src/htslib")
2207 #t))))
2208 (build-system gnu-build-system)
2209 (arguments
2210 `(#:tests? #f ; There are no tests to run.
2211 #:make-flags
2212 (list "PARALLEL=1" ; Allow parallel execution at run-time.
2213 (string-append "prefix=" (assoc-ref %outputs "out")))
2214 #:phases
2215 (modify-phases %standard-phases
2216 (delete 'configure) ; There is no configure phase.
2217 (add-after 'install 'install-templates
2218 (lambda* (#:key outputs #:allow-other-keys)
2219 (let ((templates (string-append (assoc-ref outputs "out")
2220 "/share/delly/templates")))
2221 (mkdir-p templates)
2222 (copy-recursively "excludeTemplates" templates)
2223 #t))))))
2224 (inputs
2225 `(("boost" ,boost)
2226 ("htslib" ,htslib)
2227 ("zlib" ,zlib)
2228 ("bzip2" ,bzip2)))
2229 (home-page "https://github.com/dellytools/delly")
2230 (synopsis "Integrated structural variant prediction method")
2231 (description "Delly is an integrated structural variant prediction method
2232 that can discover and genotype deletions, tandem duplications, inversions and
2233 translocations at single-nucleotide resolution in short-read massively parallel
2234 sequencing data. It uses paired-ends and split-reads to sensitively and
2235 accurately delineate genomic rearrangements throughout the genome.")
2236 (license license:gpl3+)))
2237
2238 (define-public diamond
2239 (package
2240 (name "diamond")
2241 (version "0.9.22")
2242 (source (origin
2243 (method git-fetch)
2244 (uri (git-reference
2245 (url "https://github.com/bbuchfink/diamond.git")
2246 (commit (string-append "v" version))))
2247 (file-name (git-file-name name version))
2248 (sha256
2249 (base32
2250 "0bky78v79g3wmdpsd706cscckgw1v09fg8vdd0z8z0d5b97aj9zl"))))
2251 (build-system cmake-build-system)
2252 (arguments
2253 '(#:tests? #f ; no "check" target
2254 #:phases
2255 (modify-phases %standard-phases
2256 (add-after 'unpack 'remove-native-compilation
2257 (lambda _
2258 (substitute* "CMakeLists.txt" (("-march=native") ""))
2259 #t)))))
2260 (inputs
2261 `(("zlib" ,zlib)))
2262 (home-page "https://github.com/bbuchfink/diamond")
2263 (synopsis "Accelerated BLAST compatible local sequence aligner")
2264 (description
2265 "DIAMOND is a BLAST-compatible local aligner for mapping protein and
2266 translated DNA query sequences against a protein reference database (BLASTP
2267 and BLASTX alignment mode). The speedup over BLAST is up to 20,000 on short
2268 reads at a typical sensitivity of 90-99% relative to BLAST depending on the
2269 data and settings.")
2270 (license license:agpl3+)))
2271
2272 (define-public discrover
2273 (package
2274 (name "discrover")
2275 (version "1.6.0")
2276 (source
2277 (origin
2278 (method git-fetch)
2279 (uri (git-reference
2280 (url "https://github.com/maaskola/discrover.git")
2281 (commit version)))
2282 (file-name (git-file-name name version))
2283 (sha256
2284 (base32
2285 "173fwi2vb6a5kp406hm3jj6j7v4whww796f2qcygp4rpvamh307y"))))
2286 (build-system cmake-build-system)
2287 (arguments
2288 `(#:tests? #f ; there are no tests
2289 #:phases
2290 (modify-phases %standard-phases
2291 (add-after 'unpack 'add-missing-includes
2292 (lambda _
2293 (substitute* "src/executioninformation.hpp"
2294 (("#define EXECUTIONINFORMATION_HPP" line)
2295 (string-append line "\n#include <random>")))
2296 (substitute* "src/plasma/fasta.hpp"
2297 (("#define FASTA_HPP" line)
2298 (string-append line "\n#include <random>")))
2299 #t)))))
2300 (inputs
2301 `(("boost" ,boost)
2302 ("cairo" ,cairo)))
2303 (native-inputs
2304 `(("texlive" ,texlive)
2305 ;; TODO: Replace texlive with minimal texlive-union.
2306 ;; ("texlive" ,(texlive-union (list texlive-latex-doi
2307 ;; texlive-latex-hyperref
2308 ;; texlive-latex-oberdiek
2309 ;; texlive-generic-ifxetex
2310 ;; texlive-latex-url
2311 ;; texlive-latex-pgf
2312 ;; texlive-latex-examplep
2313 ;; texlive-latex-natbib
2314 ;; texlive-latex-verbatimbox
2315 ;; texlive-latex-ms
2316 ;; texlive-latex-xcolor
2317 ;; texlive-fonts-amsfonts
2318 ;; texlive-latex-amsfonts
2319 ;; ;; ...
2320 ;; )))
2321 ("imagemagick" ,imagemagick)))
2322 (home-page "http://dorina.mdc-berlin.de/public/rajewsky/discrover/")
2323 (synopsis "Discover discriminative nucleotide sequence motifs")
2324 (description "Discrover is a motif discovery method to find binding sites
2325 of nucleic acid binding proteins.")
2326 (license license:gpl3+)))
2327
2328 (define-public eigensoft
2329 (package
2330 (name "eigensoft")
2331 (version "7.2.1")
2332 (source
2333 (origin
2334 (method git-fetch)
2335 (uri (git-reference
2336 (url "https://github.com/DReichLab/EIG.git")
2337 (commit (string-append "v" version))))
2338 (file-name (git-file-name name version))
2339 (sha256
2340 (base32
2341 "1c141fqvhnzibmnf22sv23vbmzm20kjjyrib44cfh75wyndp2d9k"))
2342 (modules '((guix build utils)))
2343 ;; Remove pre-built binaries.
2344 (snippet '(begin
2345 (delete-file-recursively "bin")
2346 (mkdir "bin")
2347 #t))))
2348 (build-system gnu-build-system)
2349 (arguments
2350 `(#:tests? #f ; There are no tests.
2351 #:make-flags '("CC=gcc")
2352 #:phases
2353 (modify-phases %standard-phases
2354 ;; There is no configure phase, but the Makefile is in a
2355 ;; sub-directory.
2356 (replace 'configure
2357 (lambda _ (chdir "src") #t))
2358 ;; The provided install target only copies executables to
2359 ;; the "bin" directory in the build root.
2360 (add-after 'install 'actually-install
2361 (lambda* (#:key outputs #:allow-other-keys)
2362 (let* ((out (assoc-ref outputs "out"))
2363 (bin (string-append out "/bin")))
2364 (for-each (lambda (file)
2365 (install-file file bin))
2366 (find-files "../bin" ".*"))
2367 #t))))))
2368 (inputs
2369 `(("gsl" ,gsl)
2370 ("lapack" ,lapack)
2371 ("openblas" ,openblas)
2372 ("perl" ,perl)
2373 ("gfortran" ,gfortran "lib")))
2374 (home-page "https://github.com/DReichLab/EIG")
2375 (synopsis "Tools for population genetics")
2376 (description "The EIGENSOFT package provides tools for population
2377 genetics and stratification correction. EIGENSOFT implements methods commonly
2378 used in population genetics analyses such as PCA, computation of Tracy-Widom
2379 statistics, and finding related individuals in structured populations. It
2380 comes with a built-in plotting script and supports multiple file formats and
2381 quantitative phenotypes.")
2382 ;; The license of the eigensoft tools is Expat, but since it's
2383 ;; linking with the GNU Scientific Library (GSL) the effective
2384 ;; license is the GPL.
2385 (license license:gpl3+)))
2386
2387 (define-public edirect
2388 (package
2389 (name "edirect")
2390 (version "10.2.20181018")
2391 (source (origin
2392 (method url-fetch)
2393 (uri (string-append "ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect"
2394 "/versions/" version
2395 "/edirect-" version ".tar.gz"))
2396 (sha256
2397 (base32
2398 "091f4aigzpbqih6h82nq566gkp3y07i72yqndmqskfgar1vwgci7"))))
2399 (build-system perl-build-system)
2400 (arguments
2401 `(#:phases
2402 (modify-phases %standard-phases
2403 (delete 'configure)
2404 (delete 'build)
2405 (delete 'check) ; simple check after install
2406 (replace 'install
2407 (lambda* (#:key outputs #:allow-other-keys)
2408 (install-file "edirect.pl"
2409 (string-append (assoc-ref outputs "out") "/bin"))
2410 #t))
2411 (add-after 'install 'wrap-program
2412 (lambda* (#:key outputs #:allow-other-keys)
2413 ;; Make sure 'edirect.pl' finds all perl inputs at runtime.
2414 (let* ((out (assoc-ref outputs "out"))
2415 (path (getenv "PERL5LIB")))
2416 (wrap-program (string-append out "/bin/edirect.pl")
2417 `("PERL5LIB" ":" prefix (,path))))
2418 #t))
2419 (add-after 'wrap-program 'check
2420 (lambda* (#:key outputs #:allow-other-keys)
2421 (invoke (string-append (assoc-ref outputs "out")
2422 "/bin/edirect.pl")
2423 "-filter" "-help")
2424 #t)))))
2425 (inputs
2426 `(("perl-html-parser" ,perl-html-parser)
2427 ("perl-encode-locale" ,perl-encode-locale)
2428 ("perl-file-listing" ,perl-file-listing)
2429 ("perl-html-tagset" ,perl-html-tagset)
2430 ("perl-html-tree" ,perl-html-tree)
2431 ("perl-http-cookies" ,perl-http-cookies)
2432 ("perl-http-date" ,perl-http-date)
2433 ("perl-http-message" ,perl-http-message)
2434 ("perl-http-negotiate" ,perl-http-negotiate)
2435 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
2436 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
2437 ("perl-net-http" ,perl-net-http)
2438 ("perl-uri" ,perl-uri)
2439 ("perl-www-robotrules" ,perl-www-robotrules)
2440 ("perl-xml-simple" ,perl-xml-simple)
2441 ("perl" ,perl)))
2442 (home-page "http://www.ncbi.nlm.nih.gov/books/NBK179288/")
2443 (synopsis "Tools for accessing the NCBI's set of databases")
2444 (description
2445 "Entrez Direct (EDirect) is a method for accessing the National Center
2446 for Biotechnology Information's (NCBI) set of interconnected
2447 databases (publication, sequence, structure, gene, variation, expression,
2448 etc.) from a terminal. Functions take search terms from command-line
2449 arguments. Individual operations are combined to build multi-step queries.
2450 Record retrieval and formatting normally complete the process.
2451
2452 EDirect also provides an argument-driven function that simplifies the
2453 extraction of data from document summaries or other results that are returned
2454 in structured XML format. This can eliminate the need for writing custom
2455 software to answer ad hoc questions.")
2456 (license license:public-domain)))
2457
2458 (define-public exonerate
2459 (package
2460 (name "exonerate")
2461 (version "2.4.0")
2462 (source
2463 (origin
2464 (method url-fetch)
2465 (uri
2466 (string-append
2467 "http://ftp.ebi.ac.uk/pub/software/vertebrategenomics/exonerate/"
2468 "exonerate-" version ".tar.gz"))
2469 (sha256
2470 (base32
2471 "0hj0m9xygiqsdxvbg79wq579kbrx1mdrabi2bzqz2zn9qwfjcjgq"))))
2472 (build-system gnu-build-system)
2473 (arguments
2474 `(#:parallel-build? #f)) ; Building in parallel fails on some machines.
2475 (native-inputs
2476 `(("pkg-config" ,pkg-config)))
2477 (inputs
2478 `(("glib" ,glib)))
2479 (home-page
2480 "https://www.ebi.ac.uk/about/vertebrate-genomics/software/exonerate")
2481 (synopsis "Generic tool for biological sequence alignment")
2482 (description
2483 "Exonerate is a generic tool for pairwise sequence comparison. It allows
2484 the alignment of sequences using a many alignment models, either exhaustive
2485 dynamic programming or a variety of heuristics.")
2486 (license license:gpl3)))
2487
2488 (define-public express
2489 (package
2490 (name "express")
2491 (version "1.5.1")
2492 (source (origin
2493 (method url-fetch)
2494 (uri
2495 (string-append
2496 "http://bio.math.berkeley.edu/eXpress/downloads/express-"
2497 version "/express-" version "-src.tgz"))
2498 (sha256
2499 (base32
2500 "03rczxd0gjp2l1jxcmjfmf5j94j77zqyxa6x063zsc585nj40n0c"))))
2501 (build-system cmake-build-system)
2502 (arguments
2503 `(#:tests? #f ;no "check" target
2504 #:phases
2505 (modify-phases %standard-phases
2506 (add-after 'unpack 'use-shared-boost-libs-and-set-bamtools-paths
2507 (lambda* (#:key inputs #:allow-other-keys)
2508 (substitute* "CMakeLists.txt"
2509 (("set\\(Boost_USE_STATIC_LIBS ON\\)")
2510 "set(Boost_USE_STATIC_LIBS OFF)")
2511 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/bamtools/include")
2512 (string-append (assoc-ref inputs "bamtools") "/include/bamtools")))
2513 (substitute* "src/CMakeLists.txt"
2514 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/\\.\\./bamtools/lib")
2515 (string-append (assoc-ref inputs "bamtools") "/lib"))
2516 (("libprotobuf.a") "libprotobuf.so"))
2517 #t)))))
2518 (inputs
2519 `(("boost" ,boost)
2520 ("bamtools" ,bamtools)
2521 ("protobuf" ,protobuf)
2522 ("zlib" ,zlib)))
2523 (home-page "http://bio.math.berkeley.edu/eXpress")
2524 (synopsis "Streaming quantification for high-throughput genomic sequencing")
2525 (description
2526 "eXpress is a streaming tool for quantifying the abundances of a set of
2527 target sequences from sampled subsequences. Example applications include
2528 transcript-level RNA-Seq quantification, allele-specific/haplotype expression
2529 analysis (from RNA-Seq), transcription factor binding quantification in
2530 ChIP-Seq, and analysis of metagenomic data.")
2531 (license license:artistic2.0)))
2532
2533 (define-public express-beta-diversity
2534 (package
2535 (name "express-beta-diversity")
2536 (version "1.0.8")
2537 (source (origin
2538 (method git-fetch)
2539 (uri (git-reference
2540 (url "https://github.com/dparks1134/ExpressBetaDiversity.git")
2541 (commit (string-append "v" version))))
2542 (file-name (git-file-name name version))
2543 (sha256
2544 (base32
2545 "0s0yzg5c21349rh7x4w9266jsvnp7j1hp9cf8sk32hz8nvrj745x"))))
2546 (build-system gnu-build-system)
2547 (arguments
2548 `(#:phases
2549 (modify-phases %standard-phases
2550 (delete 'configure)
2551 (add-before 'build 'enter-source (lambda _ (chdir "source") #t))
2552 (replace 'check
2553 (lambda _ (invoke "../bin/ExpressBetaDiversity" "-u") #t))
2554 (replace 'install
2555 (lambda* (#:key outputs #:allow-other-keys)
2556 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
2557 (install-file "../scripts/convertToEBD.py" bin)
2558 (install-file "../bin/ExpressBetaDiversity" bin)
2559 #t))))))
2560 (inputs
2561 `(("python" ,python-2)))
2562 (home-page "http://kiwi.cs.dal.ca/Software/ExpressBetaDiversity")
2563 (synopsis "Taxon- and phylogenetic-based beta diversity measures")
2564 (description
2565 "Express Beta Diversity (EBD) calculates ecological beta diversity
2566 (dissimilarity) measures between biological communities. EBD implements a
2567 variety of diversity measures including those that make use of phylogenetic
2568 similarity of community members.")
2569 (license license:gpl3+)))
2570
2571 (define-public fasttree
2572 (package
2573 (name "fasttree")
2574 (version "2.1.10")
2575 (source (origin
2576 (method url-fetch)
2577 (uri (string-append
2578 "http://www.microbesonline.org/fasttree/FastTree-"
2579 version ".c"))
2580 (sha256
2581 (base32
2582 "0vcjdvy1j4m702vmak4svbfkrpcw63k7wymfksjp9a982zy8kjsl"))))
2583 (build-system gnu-build-system)
2584 (arguments
2585 `(#:tests? #f ; no "check" target
2586 #:phases
2587 (modify-phases %standard-phases
2588 (delete 'unpack)
2589 (delete 'configure)
2590 (replace 'build
2591 (lambda* (#:key source #:allow-other-keys)
2592 (invoke "gcc"
2593 "-O3"
2594 "-finline-functions"
2595 "-funroll-loops"
2596 "-Wall"
2597 "-o"
2598 "FastTree"
2599 source
2600 "-lm")
2601 (invoke "gcc"
2602 "-DOPENMP"
2603 "-fopenmp"
2604 "-O3"
2605 "-finline-functions"
2606 "-funroll-loops"
2607 "-Wall"
2608 "-o"
2609 "FastTreeMP"
2610 source
2611 "-lm")
2612 #t))
2613 (replace 'install
2614 (lambda* (#:key outputs #:allow-other-keys)
2615 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
2616 (install-file "FastTree" bin)
2617 (install-file "FastTreeMP" bin)
2618 #t))))))
2619 (home-page "http://www.microbesonline.org/fasttree")
2620 (synopsis "Infers approximately-maximum-likelihood phylogenetic trees")
2621 (description
2622 "FastTree can handle alignments with up to a million of sequences in a
2623 reasonable amount of time and memory. For large alignments, FastTree is
2624 100-1,000 times faster than PhyML 3.0 or RAxML 7.")
2625 (license license:gpl2+)))
2626
2627 (define-public fastx-toolkit
2628 (package
2629 (name "fastx-toolkit")
2630 (version "0.0.14")
2631 (source (origin
2632 (method url-fetch)
2633 (uri
2634 (string-append
2635 "https://github.com/agordon/fastx_toolkit/releases/download/"
2636 version "/fastx_toolkit-" version ".tar.bz2"))
2637 (sha256
2638 (base32
2639 "01jqzw386873sr0pjp1wr4rn8fsga2vxs1qfmicvx1pjr72007wy"))))
2640 (build-system gnu-build-system)
2641 (inputs
2642 `(("libgtextutils" ,libgtextutils)))
2643 (native-inputs
2644 `(("pkg-config" ,pkg-config)))
2645 (home-page "http://hannonlab.cshl.edu/fastx_toolkit/")
2646 (synopsis "Tools for FASTA/FASTQ file preprocessing")
2647 (description
2648 "The FASTX-Toolkit is a collection of command line tools for Short-Reads
2649 FASTA/FASTQ files preprocessing.
2650
2651 Next-Generation sequencing machines usually produce FASTA or FASTQ files,
2652 containing multiple short-reads sequences. The main processing of such
2653 FASTA/FASTQ files is mapping the sequences to reference genomes. However, it
2654 is sometimes more productive to preprocess the files before mapping the
2655 sequences to the genome---manipulating the sequences to produce better mapping
2656 results. The FASTX-Toolkit tools perform some of these preprocessing tasks.")
2657 (license license:agpl3+)))
2658
2659 (define-public flexbar
2660 (package
2661 (name "flexbar")
2662 (version "3.4.0")
2663 (source (origin
2664 (method git-fetch)
2665 (uri (git-reference
2666 (url "https://github.com/seqan/flexbar.git")
2667 (commit (string-append "v" version))))
2668 (file-name (git-file-name name version))
2669 (sha256
2670 (base32
2671 "1pq9sxvdnldl14libk234m72dqhwgzs3acgl943wchwdqlcsi5r2"))))
2672 (build-system cmake-build-system)
2673 (arguments
2674 `(#:phases
2675 (modify-phases %standard-phases
2676 (replace 'check
2677 (lambda* (#:key outputs #:allow-other-keys)
2678 (setenv "PATH" (string-append (getcwd) ":" (getenv "PATH")))
2679 (with-directory-excursion "../source/test"
2680 (invoke "bash" "flexbar_test.sh"))
2681 #t))
2682 (replace 'install
2683 (lambda* (#:key outputs #:allow-other-keys)
2684 (let* ((out (string-append (assoc-ref outputs "out")))
2685 (bin (string-append out "/bin/")))
2686 (install-file "flexbar" bin))
2687 #t)))))
2688 (inputs
2689 `(("tbb" ,tbb)
2690 ("zlib" ,zlib)))
2691 (native-inputs
2692 `(("pkg-config" ,pkg-config)
2693 ("seqan" ,seqan)))
2694 (home-page "https://github.com/seqan/flexbar")
2695 (synopsis "Barcode and adapter removal tool for sequencing platforms")
2696 (description
2697 "Flexbar preprocesses high-throughput nucleotide sequencing data
2698 efficiently. It demultiplexes barcoded runs and removes adapter sequences.
2699 Moreover, trimming and filtering features are provided. Flexbar increases
2700 read mapping rates and improves genome and transcriptome assemblies. It
2701 supports next-generation sequencing data in fasta/q and csfasta/q format from
2702 Illumina, Roche 454, and the SOLiD platform.")
2703 (license license:bsd-3)))
2704
2705 (define-public fraggenescan
2706 (package
2707 (name "fraggenescan")
2708 (version "1.30")
2709 (source
2710 (origin
2711 (method url-fetch)
2712 (uri
2713 (string-append "mirror://sourceforge/fraggenescan/"
2714 "FragGeneScan" version ".tar.gz"))
2715 (sha256
2716 (base32 "158dcnwczgcyhwm4qlx19sanrwgdpzf6bn2y57mbpx55lkgz1mzj"))))
2717 (build-system gnu-build-system)
2718 (arguments
2719 `(#:phases
2720 (modify-phases %standard-phases
2721 (delete 'configure)
2722 (add-before 'build 'patch-paths
2723 (lambda* (#:key outputs #:allow-other-keys)
2724 (let* ((out (string-append (assoc-ref outputs "out")))
2725 (share (string-append out "/share/fraggenescan/")))
2726 (substitute* "run_FragGeneScan.pl"
2727 (("system\\(\"rm")
2728 (string-append "system(\"" (which "rm")))
2729 (("system\\(\"mv")
2730 (string-append "system(\"" (which "mv")))
2731 (("\\\"awk") (string-append "\"" (which "awk")))
2732 ;; This script and other programs expect the training files
2733 ;; to be in the non-standard location bin/train/XXX. Change
2734 ;; this to be share/fraggenescan/train/XXX instead.
2735 (("^\\$train.file = \\$dir.*")
2736 (string-append "$train_file = \""
2737 share
2738 "train/\".$FGS_train_file;")))
2739 (substitute* "run_hmm.c"
2740 (("^ strcat\\(train_dir, \\\"train/\\\"\\);")
2741 (string-append " strcpy(train_dir, \"" share "/train/\");"))))
2742 #t))
2743 (replace 'build
2744 (lambda _
2745 (invoke "make" "clean")
2746 (invoke "make" "fgs")
2747 #t))
2748 (replace 'install
2749 (lambda* (#:key outputs #:allow-other-keys)
2750 (let* ((out (string-append (assoc-ref outputs "out")))
2751 (bin (string-append out "/bin/"))
2752 (share (string-append out "/share/fraggenescan/train")))
2753 (install-file "run_FragGeneScan.pl" bin)
2754 (install-file "FragGeneScan" bin)
2755 (copy-recursively "train" share))
2756 #t))
2757 (delete 'check)
2758 (add-after 'install 'post-install-check
2759 ;; In lieu of 'make check', run one of the examples and check the
2760 ;; output files gets created.
2761 (lambda* (#:key outputs #:allow-other-keys)
2762 (let* ((out (string-append (assoc-ref outputs "out")))
2763 (bin (string-append out "/bin/"))
2764 (frag (string-append bin "run_FragGeneScan.pl")))
2765 ;; Test complete genome.
2766 (invoke frag
2767 "-genome=./example/NC_000913.fna"
2768 "-out=./test2"
2769 "-complete=1"
2770 "-train=complete")
2771 (unless (and (file-exists? "test2.faa")
2772 (file-exists? "test2.ffn")
2773 (file-exists? "test2.gff")
2774 (file-exists? "test2.out"))
2775 (error "Expected files do not exist."))
2776 ;; Test incomplete sequences.
2777 (invoke frag
2778 "-genome=./example/NC_000913-fgs.ffn"
2779 "-out=out"
2780 "-complete=0"
2781 "-train=454_30")
2782 #t))))))
2783 (inputs
2784 `(("perl" ,perl)
2785 ("python" ,python-2))) ;not compatible with python 3.
2786 (home-page "https://sourceforge.net/projects/fraggenescan/")
2787 (synopsis "Finds potentially fragmented genes in short reads")
2788 (description
2789 "FragGeneScan is a program for predicting bacterial and archaeal genes in
2790 short and error-prone DNA sequencing reads. It can also be applied to predict
2791 genes in incomplete assemblies or complete genomes.")
2792 ;; GPL3+ according to private correspondense with the authors.
2793 (license license:gpl3+)))
2794
2795 (define-public fxtract
2796 (let ((util-commit "776ca85a18a47492af3794745efcb4a905113115"))
2797 (package
2798 (name "fxtract")
2799 (version "2.3")
2800 (source
2801 (origin
2802 (method git-fetch)
2803 (uri (git-reference
2804 (url "https://github.com/ctSkennerton/fxtract.git")
2805 (commit version)))
2806 (file-name (git-file-name name version))
2807 (sha256
2808 (base32
2809 "0hab3gpwf4w9s87qlbswq6ws1qqybh4dcqk79q1ahyldzai5fgp5"))))
2810 (build-system gnu-build-system)
2811 (arguments
2812 `(#:make-flags (list
2813 (string-append "PREFIX=" (assoc-ref %outputs "out"))
2814 "CC=gcc")
2815 #:test-target "fxtract_test"
2816 #:phases
2817 (modify-phases %standard-phases
2818 (delete 'configure)
2819 (add-before 'build 'copy-util
2820 (lambda* (#:key inputs #:allow-other-keys)
2821 (rmdir "util")
2822 (copy-recursively (assoc-ref inputs "ctskennerton-util") "util")
2823 #t))
2824 ;; Do not use make install as this requires additional dependencies.
2825 (replace 'install
2826 (lambda* (#:key outputs #:allow-other-keys)
2827 (let* ((out (assoc-ref outputs "out"))
2828 (bin (string-append out"/bin")))
2829 (install-file "fxtract" bin)
2830 #t))))))
2831 (inputs
2832 `(("pcre" ,pcre)
2833 ("zlib" ,zlib)))
2834 (native-inputs
2835 ;; ctskennerton-util is licensed under GPL2.
2836 `(("ctskennerton-util"
2837 ,(origin
2838 (method git-fetch)
2839 (uri (git-reference
2840 (url "https://github.com/ctSkennerton/util.git")
2841 (commit util-commit)))
2842 (file-name (string-append
2843 "ctstennerton-util-" util-commit "-checkout"))
2844 (sha256
2845 (base32
2846 "0cls1hd4vgj3f36fpzzg4xc77d6f3hpc60cbpfmn2gdr7ykzzad7"))))))
2847 (home-page "https://github.com/ctSkennerton/fxtract")
2848 (synopsis "Extract sequences from FASTA and FASTQ files")
2849 (description
2850 "Fxtract extracts sequences from a protein or nucleotide fastx (FASTA
2851 or FASTQ) file given a subsequence. It uses a simple substring search for
2852 basic tasks but can change to using POSIX regular expressions, PCRE, hash
2853 lookups or multi-pattern searching as required. By default fxtract looks in
2854 the sequence of each record but can also be told to look in the header,
2855 comment or quality sections.")
2856 ;; 'util' requires SSE instructions.
2857 (supported-systems '("x86_64-linux"))
2858 (license license:expat))))
2859
2860 (define-public gemma
2861 (package
2862 (name "gemma")
2863 (version "0.98")
2864 (source (origin
2865 (method git-fetch)
2866 (uri (git-reference
2867 (url "https://github.com/xiangzhou/GEMMA.git")
2868 (commit (string-append "v" version))))
2869 (file-name (git-file-name name version))
2870 (sha256
2871 (base32
2872 "1s3ncnbn45r2hh1cvrqky1kbqq6546biypr4f5mkw1kqlrgyh0yg"))))
2873 (inputs
2874 `(("eigen" ,eigen)
2875 ("gfortran" ,gfortran "lib")
2876 ("gsl" ,gsl)
2877 ("lapack" ,lapack)
2878 ("openblas" ,openblas)
2879 ("zlib" ,zlib)))
2880 (build-system gnu-build-system)
2881 (arguments
2882 `(#:make-flags
2883 '(,@(match (%current-system)
2884 ("x86_64-linux"
2885 '("FORCE_DYNAMIC=1"))
2886 ("i686-linux"
2887 '("FORCE_DYNAMIC=1" "FORCE_32BIT=1"))
2888 (_
2889 '("FORCE_DYNAMIC=1" "NO_INTEL_COMPAT=1"))))
2890 #:phases
2891 (modify-phases %standard-phases
2892 (delete 'configure)
2893 (add-after 'unpack 'find-eigen
2894 (lambda* (#:key inputs #:allow-other-keys)
2895 ;; Ensure that Eigen headers can be found
2896 (setenv "CPLUS_INCLUDE_PATH"
2897 (string-append (getenv "CPLUS_INCLUDE_PATH")
2898 ":"
2899 (assoc-ref inputs "eigen")
2900 "/include/eigen3"))
2901 #t))
2902 (add-before 'build 'bin-mkdir
2903 (lambda _
2904 (mkdir-p "bin")
2905 #t))
2906 (replace 'install
2907 (lambda* (#:key outputs #:allow-other-keys)
2908 (let ((out (assoc-ref outputs "out")))
2909 (install-file "bin/gemma"
2910 (string-append
2911 out "/bin")))
2912 #t)))
2913 #:tests? #f)) ; no tests included yet
2914 (home-page "https://github.com/xiangzhou/GEMMA")
2915 (synopsis "Tool for genome-wide efficient mixed model association")
2916 (description
2917 "Genome-wide Efficient Mixed Model Association (GEMMA) provides a
2918 standard linear mixed model resolver with application in genome-wide
2919 association studies (GWAS).")
2920 (license license:gpl3)))
2921
2922 (define-public grit
2923 (package
2924 (name "grit")
2925 (version "2.0.5")
2926 (source (origin
2927 (method git-fetch)
2928 (uri (git-reference
2929 (url "https://github.com/nboley/grit.git")
2930 (commit version)))
2931 (file-name (git-file-name name version))
2932 (sha256
2933 (base32
2934 "1l5v8vfvfbrpmgnrvbrbv40d0arhxcnmxgv2f1mlcqfa3q6bkqm9"))))
2935 (build-system python-build-system)
2936 (arguments
2937 `(#:python ,python-2
2938 #:phases
2939 (modify-phases %standard-phases
2940 (add-after 'unpack 'generate-from-cython-sources
2941 (lambda* (#:key inputs outputs #:allow-other-keys)
2942 ;; Delete these C files to force fresh generation from pyx sources.
2943 (delete-file "grit/sparsify_support_fns.c")
2944 (delete-file "grit/call_peaks_support_fns.c")
2945 (substitute* "setup.py"
2946 (("Cython.Setup") "Cython.Build"))
2947 #t)))))
2948 (inputs
2949 `(("python-scipy" ,python2-scipy)
2950 ("python-numpy" ,python2-numpy)
2951 ("python-pysam" ,python2-pysam)
2952 ("python-networkx" ,python2-networkx)))
2953 (native-inputs
2954 `(("python-cython" ,python2-cython)))
2955 (home-page "http://grit-bio.org")
2956 (synopsis "Tool for integrative analysis of RNA-seq type assays")
2957 (description
2958 "GRIT is designed to use RNA-seq, TES, and TSS data to build and quantify
2959 full length transcript models. When none of these data sources are available,
2960 GRIT can be run by providing a candidate set of TES or TSS sites. In
2961 addition, GRIT can merge in reference junctions and gene boundaries. GRIT can
2962 also be run in quantification mode, where it uses a provided GTF file and just
2963 estimates transcript expression.")
2964 (license license:gpl3+)))
2965
2966 (define-public hisat
2967 (package
2968 (name "hisat")
2969 (version "0.1.4")
2970 (source (origin
2971 (method url-fetch)
2972 (uri (string-append
2973 "http://ccb.jhu.edu/software/hisat/downloads/hisat-"
2974 version "-beta-source.zip"))
2975 (sha256
2976 (base32
2977 "1k381ydranqxp09yf2y7w1d0chz5d59vb6jchi89hbb0prq19lk5"))))
2978 (build-system gnu-build-system)
2979 (arguments
2980 `(#:tests? #f ;no check target
2981 #:make-flags '("allall"
2982 ;; Disable unsupported `popcnt' instructions on
2983 ;; architectures other than x86_64
2984 ,@(if (string-prefix? "x86_64"
2985 (or (%current-target-system)
2986 (%current-system)))
2987 '()
2988 '("POPCNT_CAPABILITY=0")))
2989 #:phases
2990 (modify-phases %standard-phases
2991 (add-after 'unpack 'patch-sources
2992 (lambda _
2993 ;; XXX Cannot use snippet because zip files are not supported
2994 (substitute* "Makefile"
2995 (("^CC = .*$") "CC = gcc")
2996 (("^CPP = .*$") "CPP = g++")
2997 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
2998 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
2999 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
3000 (substitute* '("hisat-build" "hisat-inspect")
3001 (("/usr/bin/env") (which "env")))
3002 #t))
3003 (replace 'install
3004 (lambda* (#:key outputs #:allow-other-keys)
3005 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
3006 (for-each (lambda (file)
3007 (install-file file bin))
3008 (find-files
3009 "."
3010 "hisat(-(build|align|inspect)(-(s|l)(-debug)*)*)*$")))
3011 #t))
3012 (delete 'configure))))
3013 (native-inputs
3014 `(("unzip" ,unzip)))
3015 (inputs
3016 `(("perl" ,perl)
3017 ("python" ,python)
3018 ("zlib" ,zlib)))
3019 ;; Non-portable SSE instructions are used so building fails on platforms
3020 ;; other than x86_64.
3021 (supported-systems '("x86_64-linux"))
3022 (home-page "http://ccb.jhu.edu/software/hisat/index.shtml")
3023 (synopsis "Hierarchical indexing for spliced alignment of transcripts")
3024 (description
3025 "HISAT is a fast and sensitive spliced alignment program for mapping
3026 RNA-seq reads. In addition to one global FM index that represents a whole
3027 genome, HISAT uses a large set of small FM indexes that collectively cover the
3028 whole genome. These small indexes (called local indexes) combined with
3029 several alignment strategies enable effective alignment of RNA-seq reads, in
3030 particular, reads spanning multiple exons.")
3031 (license license:gpl3+)))
3032
3033 (define-public hisat2
3034 (package
3035 (name "hisat2")
3036 (version "2.0.5")
3037 (source
3038 (origin
3039 (method url-fetch)
3040 (uri (string-append "ftp://ftp.ccb.jhu.edu/pub/infphilo/hisat2"
3041 "/downloads/hisat2-" version "-source.zip"))
3042 (sha256
3043 (base32
3044 "0lywnr8kijwsc2aw10dwxic0n0yvip6fl3rjlvc8zzwahamy4x7g"))))
3045 (build-system gnu-build-system)
3046 (arguments
3047 `(#:tests? #f ; no check target
3048 #:make-flags (list "CC=gcc" "CXX=g++" "allall")
3049 #:modules ((guix build gnu-build-system)
3050 (guix build utils)
3051 (srfi srfi-26))
3052 #:phases
3053 (modify-phases %standard-phases
3054 (add-after 'unpack 'make-deterministic
3055 (lambda _
3056 (substitute* "Makefile"
3057 (("`date`") "0"))
3058 #t))
3059 (delete 'configure)
3060 (replace 'install
3061 (lambda* (#:key outputs #:allow-other-keys)
3062 (let* ((out (assoc-ref outputs "out"))
3063 (bin (string-append out "/bin/"))
3064 (doc (string-append out "/share/doc/hisat2/")))
3065 (for-each
3066 (cut install-file <> bin)
3067 (find-files "."
3068 "hisat2(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))
3069 (mkdir-p doc)
3070 (install-file "doc/manual.inc.html" doc))
3071 #t)))))
3072 (native-inputs
3073 `(("unzip" ,unzip) ; needed for archive from ftp
3074 ("perl" ,perl)
3075 ("pandoc" ,ghc-pandoc))) ; for documentation
3076 (home-page "http://ccb.jhu.edu/software/hisat2/index.shtml")
3077 (synopsis "Graph-based alignment of genomic sequencing reads")
3078 (description "HISAT2 is a fast and sensitive alignment program for mapping
3079 next-generation sequencing reads (both DNA and RNA) to a population of human
3080 genomes (as well as to a single reference genome). In addition to using one
3081 global @dfn{graph FM} (GFM) index that represents a population of human
3082 genomes, HISAT2 uses a large set of small GFM indexes that collectively cover
3083 the whole genome. These small indexes, combined with several alignment
3084 strategies, enable rapid and accurate alignment of sequencing reads. This new
3085 indexing scheme is called a @dfn{Hierarchical Graph FM index} (HGFM).")
3086 ;; HISAT2 contains files from Bowtie2, which is released under
3087 ;; GPLv2 or later. The HISAT2 source files are released under
3088 ;; GPLv3 or later.
3089 (license license:gpl3+)))
3090
3091 (define-public hmmer
3092 (package
3093 (name "hmmer")
3094 (version "3.2.1")
3095 (source
3096 (origin
3097 (method url-fetch)
3098 (uri (string-append
3099 "http://eddylab.org/software/hmmer/hmmer-" version ".tar.gz"))
3100 (sha256
3101 (base32
3102 "171bivy6xhgjsz5nv53n81pc3frnwz29ylblawk2bv46szwjjqd5"))))
3103 (build-system gnu-build-system)
3104 (native-inputs `(("perl" ,perl)))
3105 (home-page "http://hmmer.org/")
3106 (synopsis "Biosequence analysis using profile hidden Markov models")
3107 (description
3108 "HMMER is used for searching sequence databases for homologs of protein
3109 sequences, and for making protein sequence alignments. It implements methods
3110 using probabilistic models called profile hidden Markov models (profile
3111 HMMs).")
3112 ;; hmmer uses non-portable SSE intrinsics so building fails on other
3113 ;; platforms.
3114 (supported-systems '("x86_64-linux" "i686-linux"))
3115 (license license:bsd-3)))
3116
3117 (define-public htseq
3118 (package
3119 (name "htseq")
3120 (version "0.9.1")
3121 (source (origin
3122 (method url-fetch)
3123 (uri (pypi-uri "HTSeq" version))
3124 (sha256
3125 (base32
3126 "11flgb1381xdhk43bzbfm3vhnszkpqg6jk76rpa5xd1zbrvvlnxg"))))
3127 (build-system python-build-system)
3128 (native-inputs
3129 `(("python-cython" ,python-cython)))
3130 ;; Numpy needs to be propagated when htseq is used as a Python library.
3131 (propagated-inputs
3132 `(("python-numpy" ,python-numpy)))
3133 (inputs
3134 `(("python-pysam" ,python-pysam)
3135 ("python-matplotlib" ,python-matplotlib)))
3136 (home-page "http://www-huber.embl.de/users/anders/HTSeq/")
3137 (synopsis "Analysing high-throughput sequencing data with Python")
3138 (description
3139 "HTSeq is a Python package that provides infrastructure to process data
3140 from high-throughput sequencing assays.")
3141 (license license:gpl3+)))
3142
3143 (define-public python2-htseq
3144 (package-with-python2 htseq))
3145
3146 (define-public java-htsjdk
3147 (package
3148 (name "java-htsjdk")
3149 (version "2.3.0") ; last version without build dependency on gradle
3150 (source (origin
3151 (method git-fetch)
3152 (uri (git-reference
3153 (url "https://github.com/samtools/htsjdk.git")
3154 (commit version)))
3155 (file-name (git-file-name name version))
3156 (sha256
3157 (base32
3158 "1b178ixcabanm834ydjl3jiakpyxdmki32hqfv2abrzn3rcwa28i"))
3159 (modules '((guix build utils)))
3160 (snippet
3161 ;; Delete pre-built binaries
3162 '(begin
3163 (delete-file-recursively "lib")
3164 (mkdir-p "lib")
3165 #t))))
3166 (build-system ant-build-system)
3167 (arguments
3168 `(#:tests? #f ; test require Internet access
3169 #:jdk ,icedtea-8
3170 #:make-flags
3171 (list (string-append "-Ddist=" (assoc-ref %outputs "out")
3172 "/share/java/htsjdk/"))
3173 #:build-target "all"
3174 #:phases
3175 (modify-phases %standard-phases
3176 ;; The build phase also installs the jars
3177 (delete 'install))))
3178 (inputs
3179 `(("java-ngs" ,java-ngs)
3180 ("java-snappy-1" ,java-snappy-1)
3181 ("java-commons-compress" ,java-commons-compress)
3182 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
3183 ("java-commons-jexl-2" ,java-commons-jexl-2)
3184 ("java-xz" ,java-xz)))
3185 (native-inputs
3186 `(("java-testng" ,java-testng)))
3187 (home-page "http://samtools.github.io/htsjdk/")
3188 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3189 (description
3190 "HTSJDK is an implementation of a unified Java library for accessing
3191 common file formats, such as SAM and VCF, used for high-throughput
3192 sequencing (HTS) data. There are also an number of useful utilities for
3193 manipulating HTS data.")
3194 (license license:expat)))
3195
3196 (define-public java-htsjdk-latest
3197 (package
3198 (name "java-htsjdk")
3199 (version "2.14.3")
3200 (source (origin
3201 (method git-fetch)
3202 (uri (git-reference
3203 (url "https://github.com/samtools/htsjdk.git")
3204 (commit version)))
3205 (file-name (string-append name "-" version "-checkout"))
3206 (sha256
3207 (base32
3208 "1lmya1fdjy03mz6zmdmd86j9v9vfhqb3952mqq075navx1i6g4bc"))))
3209 (build-system ant-build-system)
3210 (arguments
3211 `(#:tests? #f ; test require Scala
3212 #:jdk ,icedtea-8
3213 #:jar-name "htsjdk.jar"
3214 #:phases
3215 (modify-phases %standard-phases
3216 (add-after 'unpack 'remove-useless-build.xml
3217 (lambda _ (delete-file "build.xml") #t))
3218 ;; The tests require the scalatest package.
3219 (add-after 'unpack 'remove-tests
3220 (lambda _ (delete-file-recursively "src/test") #t)))))
3221 (inputs
3222 `(("java-ngs" ,java-ngs)
3223 ("java-snappy-1" ,java-snappy-1)
3224 ("java-commons-compress" ,java-commons-compress)
3225 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
3226 ("java-commons-jexl-2" ,java-commons-jexl-2)
3227 ("java-xz" ,java-xz)))
3228 (native-inputs
3229 `(("java-junit" ,java-junit)))
3230 (home-page "http://samtools.github.io/htsjdk/")
3231 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3232 (description
3233 "HTSJDK is an implementation of a unified Java library for accessing
3234 common file formats, such as SAM and VCF, used for high-throughput
3235 sequencing (HTS) data. There are also an number of useful utilities for
3236 manipulating HTS data.")
3237 (license license:expat)))
3238
3239 ;; This is needed for picard 2.10.3
3240 (define-public java-htsjdk-2.10.1
3241 (package (inherit java-htsjdk-latest)
3242 (name "java-htsjdk")
3243 (version "2.10.1")
3244 (source (origin
3245 (method git-fetch)
3246 (uri (git-reference
3247 (url "https://github.com/samtools/htsjdk.git")
3248 (commit version)))
3249 (file-name (string-append name "-" version "-checkout"))
3250 (sha256
3251 (base32
3252 "1kxh7slm2pm3x9p6jxa1wqsq9a31dhiiflhxnxqcisan4k3rwia2"))))
3253 (build-system ant-build-system)
3254 (arguments
3255 `(#:tests? #f ; tests require Scala
3256 #:jdk ,icedtea-8
3257 #:jar-name "htsjdk.jar"
3258 #:phases
3259 (modify-phases %standard-phases
3260 (add-after 'unpack 'remove-useless-build.xml
3261 (lambda _ (delete-file "build.xml") #t))
3262 ;; The tests require the scalatest package.
3263 (add-after 'unpack 'remove-tests
3264 (lambda _ (delete-file-recursively "src/test") #t)))))))
3265
3266 ;; This version matches java-htsjdk 2.3.0. Later versions also require a more
3267 ;; recent version of java-htsjdk, which depends on gradle.
3268 (define-public java-picard
3269 (package
3270 (name "java-picard")
3271 (version "2.3.0")
3272 (source (origin
3273 (method git-fetch)
3274 (uri (git-reference
3275 (url "https://github.com/broadinstitute/picard.git")
3276 (commit version)))
3277 (file-name (string-append "java-picard-" version "-checkout"))
3278 (sha256
3279 (base32
3280 "1ll7mf4r3by92w2nhlmpa591xd1f46xlkwh59mq6fvbb5pdwzvx6"))
3281 (modules '((guix build utils)))
3282 (snippet
3283 '(begin
3284 ;; Delete pre-built binaries.
3285 (delete-file-recursively "lib")
3286 (mkdir-p "lib")
3287 (substitute* "build.xml"
3288 ;; Remove build-time dependency on git.
3289 (("failifexecutionfails=\"true\"")
3290 "failifexecutionfails=\"false\"")
3291 ;; Use our htsjdk.
3292 (("depends=\"compile-htsjdk, ")
3293 "depends=\"")
3294 (("depends=\"compile-htsjdk-tests, ")
3295 "depends=\"")
3296 ;; Build picard-lib.jar before building picard.jar
3297 (("name=\"picard-jar\" depends=\"" line)
3298 (string-append line "picard-lib-jar, ")))
3299 #t))))
3300 (build-system ant-build-system)
3301 (arguments
3302 `(#:build-target "picard-jar"
3303 #:test-target "test"
3304 ;; Tests require jacoco:coverage.
3305 #:tests? #f
3306 #:make-flags
3307 (list (string-append "-Dhtsjdk_lib_dir="
3308 (assoc-ref %build-inputs "java-htsjdk")
3309 "/share/java/htsjdk/")
3310 "-Dhtsjdk-classes=dist/tmp"
3311 (string-append "-Dhtsjdk-version="
3312 ,(package-version java-htsjdk)))
3313 #:jdk ,icedtea-8
3314 #:phases
3315 (modify-phases %standard-phases
3316 ;; FIXME: this phase fails with "duplicate entry: htsjdk/samtools/AbstractBAMFileIndex$1.class"
3317 (delete 'generate-jar-indices)
3318 (add-after 'unpack 'use-our-htsjdk
3319 (lambda* (#:key inputs #:allow-other-keys)
3320 (substitute* "build.xml"
3321 (("\\$\\{htsjdk\\}/lib")
3322 (string-append (assoc-ref inputs "java-htsjdk")
3323 "/share/java/htsjdk/")))
3324 #t))
3325 (add-after 'unpack 'make-test-target-independent
3326 (lambda* (#:key inputs #:allow-other-keys)
3327 (substitute* "build.xml"
3328 (("name=\"test\" depends=\"compile, ")
3329 "name=\"test\" depends=\""))
3330 #t))
3331 (replace 'install (install-jars "dist")))))
3332 (inputs
3333 `(("java-htsjdk" ,java-htsjdk)
3334 ("java-guava" ,java-guava)))
3335 (native-inputs
3336 `(("java-testng" ,java-testng)))
3337 (home-page "http://broadinstitute.github.io/picard/")
3338 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
3339 (description "Picard is a set of Java command line tools for manipulating
3340 high-throughput sequencing (HTS) data and formats. Picard is implemented
3341 using the HTSJDK Java library to support accessing file formats that are
3342 commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
3343 VCF.")
3344 (license license:expat)))
3345
3346 ;; This is needed for dropseq-tools
3347 (define-public java-picard-2.10.3
3348 (package
3349 (name "java-picard")
3350 (version "2.10.3")
3351 (source (origin
3352 (method git-fetch)
3353 (uri (git-reference
3354 (url "https://github.com/broadinstitute/picard.git")
3355 (commit version)))
3356 (file-name (string-append "java-picard-" version "-checkout"))
3357 (sha256
3358 (base32
3359 "1ajlx31l6i1k3y2rhnmgq07sz99g2czqfqgkr9mihmdjp3gwjhvi"))))
3360 (build-system ant-build-system)
3361 (arguments
3362 `(#:jar-name "picard.jar"
3363 ;; Tests require jacoco:coverage.
3364 #:tests? #f
3365 #:jdk ,icedtea-8
3366 #:main-class "picard.cmdline.PicardCommandLine"
3367 #:modules ((guix build ant-build-system)
3368 (guix build utils)
3369 (guix build java-utils)
3370 (sxml simple)
3371 (sxml transform)
3372 (sxml xpath))
3373 #:phases
3374 (modify-phases %standard-phases
3375 ;; FIXME: this phase fails with "duplicate entry: htsjdk/samtools/AbstractBAMFileIndex$1.class"
3376 (delete 'generate-jar-indices)
3377 (add-after 'unpack 'remove-useless-build.xml
3378 (lambda _ (delete-file "build.xml") #t))
3379 ;; This is necessary to ensure that htsjdk is found when using
3380 ;; picard.jar as an executable.
3381 (add-before 'build 'edit-classpath-in-manifest
3382 (lambda* (#:key inputs #:allow-other-keys)
3383 (chmod "build.xml" #o664)
3384 (call-with-output-file "build.xml.new"
3385 (lambda (port)
3386 (sxml->xml
3387 (pre-post-order
3388 (with-input-from-file "build.xml"
3389 (lambda _ (xml->sxml #:trim-whitespace? #t)))
3390 `((target . ,(lambda (tag . kids)
3391 (let ((name ((sxpath '(name *text*))
3392 (car kids)))
3393 ;; FIXME: We're breaking the line
3394 ;; early with a dummy path to
3395 ;; ensure that the store reference
3396 ;; isn't broken apart and can still
3397 ;; be found by the reference
3398 ;; scanner.
3399 (msg (format #f
3400 "\
3401 Class-Path: /~a \
3402 ~a/share/java/htsjdk.jar${line.separator}${line.separator}"
3403 ;; maximum line length is 70
3404 (string-tabulate (const #\b) 57)
3405 (assoc-ref inputs "java-htsjdk"))))
3406 (if (member "manifest" name)
3407 `(,tag ,@kids
3408 (replaceregexp
3409 (@ (file "${manifest.file}")
3410 (match "\\r\\n\\r\\n")
3411 (replace "${line.separator}")))
3412 (echo
3413 (@ (message ,msg)
3414 (file "${manifest.file}")
3415 (append "true"))))
3416 `(,tag ,@kids)))))
3417 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
3418 (*text* . ,(lambda (_ txt) txt))))
3419 port)))
3420 (rename-file "build.xml.new" "build.xml")
3421 #t)))))
3422 (propagated-inputs
3423 `(("java-htsjdk" ,java-htsjdk-2.10.1)))
3424 (native-inputs
3425 `(("java-testng" ,java-testng)
3426 ("java-guava" ,java-guava)))
3427 (home-page "http://broadinstitute.github.io/picard/")
3428 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
3429 (description "Picard is a set of Java command line tools for manipulating
3430 high-throughput sequencing (HTS) data and formats. Picard is implemented
3431 using the HTSJDK Java library to support accessing file formats that are
3432 commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
3433 VCF.")
3434 (license license:expat)))
3435
3436 ;; This is the last version of Picard to provide net.sf.samtools
3437 (define-public java-picard-1.113
3438 (package (inherit java-picard)
3439 (name "java-picard")
3440 (version "1.113")
3441 (source (origin
3442 (method git-fetch)
3443 (uri (git-reference
3444 (url "https://github.com/broadinstitute/picard.git")
3445 (commit version)))
3446 (file-name (string-append "java-picard-" version "-checkout"))
3447 (sha256
3448 (base32
3449 "0lkpvin2fz3hhly4l02kk56fqy8lmlgyzr9kmvljk6ry6l1hw973"))
3450 (modules '((guix build utils)))
3451 (snippet
3452 '(begin
3453 ;; Delete pre-built binaries.
3454 (delete-file-recursively "lib")
3455 (mkdir-p "lib")
3456 #t))))
3457 (build-system ant-build-system)
3458 (arguments
3459 `(#:build-target "picard-jar"
3460 #:test-target "test"
3461 ;; FIXME: the class path at test time is wrong.
3462 ;; [testng] Error: A JNI error has occurred, please check your installation and try again
3463 ;; [testng] Exception in thread "main" java.lang.NoClassDefFoundError: com/beust/jcommander/ParameterException
3464 #:tests? #f
3465 #:jdk ,icedtea-8
3466 ;; This is only used for tests.
3467 #:make-flags
3468 (list "-Dsamjdk.intel_deflater_so_path=lib/jni/libIntelDeflater.so")
3469 #:phases
3470 (modify-phases %standard-phases
3471 ;; FIXME: This phase fails.
3472 (delete 'generate-jar-indices)
3473 ;; Do not use bundled ant bzip2.
3474 (add-after 'unpack 'use-ant-bzip
3475 (lambda* (#:key inputs #:allow-other-keys)
3476 (substitute* "build.xml"
3477 (("\\$\\{lib\\}/apache-ant-1.8.2-bzip2.jar")
3478 (string-append (assoc-ref inputs "ant")
3479 "/lib/ant.jar")))
3480 #t))
3481 (add-after 'unpack 'make-test-target-independent
3482 (lambda* (#:key inputs #:allow-other-keys)
3483 (substitute* "build.xml"
3484 (("name=\"test\" depends=\"compile, ")
3485 "name=\"test\" depends=\"compile-tests, ")
3486 (("name=\"compile\" depends=\"compile-src, compile-tests\"")
3487 "name=\"compile\" depends=\"compile-src\""))
3488 #t))
3489 (add-after 'unpack 'fix-deflater-path
3490 (lambda* (#:key outputs #:allow-other-keys)
3491 (substitute* "src/java/net/sf/samtools/Defaults.java"
3492 (("getStringProperty\\(\"intel_deflater_so_path\", null\\)")
3493 (string-append "getStringProperty(\"intel_deflater_so_path\", \""
3494 (assoc-ref outputs "out")
3495 "/lib/jni/libIntelDeflater.so"
3496 "\")")))
3497 #t))
3498 ;; Build the deflater library, because we've previously deleted the
3499 ;; pre-built one. This can only be built with access to the JDK
3500 ;; sources.
3501 (add-after 'build 'build-jni
3502 (lambda* (#:key inputs #:allow-other-keys)
3503 (mkdir-p "lib/jni")
3504 (mkdir-p "jdk-src")
3505 (invoke "tar" "--strip-components=1" "-C" "jdk-src"
3506 "-xf" (assoc-ref inputs "jdk-src"))
3507 (invoke "javah" "-jni"
3508 "-classpath" "classes"
3509 "-d" "lib/"
3510 "net.sf.samtools.util.zip.IntelDeflater")
3511 (with-directory-excursion "src/c/inteldeflater"
3512 (invoke "gcc" "-I../../../lib" "-I."
3513 (string-append "-I" (assoc-ref inputs "jdk")
3514 "/include/linux")
3515 "-I../../../jdk-src/src/share/native/common/"
3516 "-I../../../jdk-src/src/solaris/native/common/"
3517 "-c" "-O3" "-fPIC" "IntelDeflater.c")
3518 (invoke "gcc" "-shared"
3519 "-o" "../../../lib/jni/libIntelDeflater.so"
3520 "IntelDeflater.o" "-lz" "-lstdc++"))
3521 #t))
3522 ;; We can only build everything else after building the JNI library.
3523 (add-after 'build-jni 'build-rest
3524 (lambda* (#:key make-flags #:allow-other-keys)
3525 (apply invoke `("ant" "all" ,@make-flags))
3526 #t))
3527 (add-before 'build 'set-JAVA6_HOME
3528 (lambda _
3529 (setenv "JAVA6_HOME" (getenv "JAVA_HOME"))
3530 #t))
3531 (replace 'install (install-jars "dist"))
3532 (add-after 'install 'install-jni-lib
3533 (lambda* (#:key outputs #:allow-other-keys)
3534 (let ((jni (string-append (assoc-ref outputs "out")
3535 "/lib/jni")))
3536 (mkdir-p jni)
3537 (install-file "lib/jni/libIntelDeflater.so" jni)
3538 #t))))))
3539 (inputs
3540 `(("java-snappy-1" ,java-snappy-1)
3541 ("java-commons-jexl-2" ,java-commons-jexl-2)
3542 ("java-cofoja" ,java-cofoja)
3543 ("ant" ,ant) ; for bzip2 support at runtime
3544 ("zlib" ,zlib)))
3545 (native-inputs
3546 `(("ant-apache-bcel" ,ant-apache-bcel)
3547 ("ant-junit" ,ant-junit)
3548 ("java-testng" ,java-testng)
3549 ("java-commons-bcel" ,java-commons-bcel)
3550 ("java-jcommander" ,java-jcommander)
3551 ("jdk" ,icedtea-8 "jdk")
3552 ("jdk-src" ,(car (assoc-ref (package-native-inputs icedtea-8) "jdk-drop")))))))
3553
3554 (define-public fastqc
3555 (package
3556 (name "fastqc")
3557 (version "0.11.5")
3558 (source
3559 (origin
3560 (method url-fetch)
3561 (uri (string-append "http://www.bioinformatics.babraham.ac.uk/"
3562 "projects/fastqc/fastqc_v"
3563 version "_source.zip"))
3564 (sha256
3565 (base32
3566 "18rrlkhcrxvvvlapch4dpj6xc6mpayzys8qfppybi8jrpgx5cc5f"))))
3567 (build-system ant-build-system)
3568 (arguments
3569 `(#:tests? #f ; there are no tests
3570 #:build-target "build"
3571 #:phases
3572 (modify-phases %standard-phases
3573 (add-after 'unpack 'fix-dependencies
3574 (lambda* (#:key inputs #:allow-other-keys)
3575 (substitute* "build.xml"
3576 (("jbzip2-0.9.jar")
3577 (string-append (assoc-ref inputs "java-jbzip2")
3578 "/share/java/jbzip2.jar"))
3579 (("sam-1.103.jar")
3580 (string-append (assoc-ref inputs "java-picard-1.113")
3581 "/share/java/sam-1.112.jar"))
3582 (("cisd-jhdf5.jar")
3583 (string-append (assoc-ref inputs "java-cisd-jhdf5")
3584 "/share/java/sis-jhdf5.jar")))
3585 #t))
3586 ;; There is no installation target
3587 (replace 'install
3588 (lambda* (#:key inputs outputs #:allow-other-keys)
3589 (let* ((out (assoc-ref outputs "out"))
3590 (bin (string-append out "/bin"))
3591 (share (string-append out "/share/fastqc/"))
3592 (exe (string-append share "/fastqc")))
3593 (for-each mkdir-p (list bin share))
3594 (copy-recursively "bin" share)
3595 (substitute* exe
3596 (("my \\$java_bin = 'java';")
3597 (string-append "my $java_bin = '"
3598 (assoc-ref inputs "java")
3599 "/bin/java';")))
3600 (chmod exe #o555)
3601 (symlink exe (string-append bin "/fastqc"))
3602 #t))))))
3603 (inputs
3604 `(("java" ,icedtea)
3605 ("perl" ,perl) ; needed for the wrapper script
3606 ("java-cisd-jhdf5" ,java-cisd-jhdf5)
3607 ("java-picard-1.113" ,java-picard-1.113)
3608 ("java-jbzip2" ,java-jbzip2)))
3609 (native-inputs
3610 `(("unzip" ,unzip)))
3611 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/fastqc/")
3612 (synopsis "Quality control tool for high throughput sequence data")
3613 (description
3614 "FastQC aims to provide a simple way to do some quality control
3615 checks on raw sequence data coming from high throughput sequencing
3616 pipelines. It provides a modular set of analyses which you can use to
3617 give a quick impression of whether your data has any problems of which
3618 you should be aware before doing any further analysis.
3619
3620 The main functions of FastQC are:
3621
3622 @itemize
3623 @item Import of data from BAM, SAM or FastQ files (any variant);
3624 @item Providing a quick overview to tell you in which areas there may
3625 be problems;
3626 @item Summary graphs and tables to quickly assess your data;
3627 @item Export of results to an HTML based permanent report;
3628 @item Offline operation to allow automated generation of reports
3629 without running the interactive application.
3630 @end itemize\n")
3631 (license license:gpl3+)))
3632
3633 (define-public fastp
3634 (package
3635 (name "fastp")
3636 (version "0.14.1")
3637 (source
3638 (origin
3639 (method git-fetch)
3640 (uri (git-reference
3641 (url "https://github.com/OpenGene/fastp.git")
3642 (commit (string-append "v" version))))
3643 (file-name (git-file-name name version))
3644 (sha256
3645 (base32
3646 "1r6ms5zbf5rps4rgp4z73nczadl00b5rqylw8f684isfz27dp0xh"))))
3647 (build-system gnu-build-system)
3648 (arguments
3649 `(#:tests? #f ; there are none
3650 #:make-flags
3651 (list (string-append "BINDIR=" (assoc-ref %outputs "out") "/bin"))
3652 #:phases
3653 (modify-phases %standard-phases
3654 (delete 'configure)
3655 (add-before 'install 'create-target-dir
3656 (lambda* (#:key outputs #:allow-other-keys)
3657 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
3658 #t)))))
3659 (inputs
3660 `(("zlib" ,zlib)))
3661 (home-page "https://github.com/OpenGene/fastp/")
3662 (synopsis "All-in-one FastQ preprocessor")
3663 (description
3664 "Fastp is a tool designed to provide fast all-in-one preprocessing for
3665 FastQ files. This tool has multi-threading support to afford high
3666 performance.")
3667 (license license:expat)))
3668
3669 (define-public htslib
3670 (package
3671 (name "htslib")
3672 (version "1.9")
3673 (source (origin
3674 (method url-fetch)
3675 (uri (string-append
3676 "https://github.com/samtools/htslib/releases/download/"
3677 version "/htslib-" version ".tar.bz2"))
3678 (sha256
3679 (base32
3680 "16ljv43sc3fxmv63w7b2ff8m1s7h89xhazwmbm1bicz8axq8fjz0"))))
3681 (build-system gnu-build-system)
3682 (inputs
3683 `(("openssl" ,openssl)
3684 ("curl" ,curl)
3685 ("zlib" ,zlib)))
3686 (native-inputs
3687 `(("perl" ,perl)))
3688 (home-page "http://www.htslib.org")
3689 (synopsis "C library for reading/writing high-throughput sequencing data")
3690 (description
3691 "HTSlib is a C library for reading/writing high-throughput sequencing
3692 data. It also provides the @command{bgzip}, @command{htsfile}, and
3693 @command{tabix} utilities.")
3694 ;; Files under cram/ are released under the modified BSD license;
3695 ;; the rest is released under the Expat license
3696 (license (list license:expat license:bsd-3))))
3697
3698 ;; This package should be removed once no packages rely upon it.
3699 (define htslib-1.3
3700 (package
3701 (inherit htslib)
3702 (version "1.3.1")
3703 (source (origin
3704 (method url-fetch)
3705 (uri (string-append
3706 "https://github.com/samtools/htslib/releases/download/"
3707 version "/htslib-" version ".tar.bz2"))
3708 (sha256
3709 (base32
3710 "1rja282fwdc25ql6izkhdyh8ppw8x2fs0w0js78zgkmqjlikmma9"))))))
3711
3712 (define-public idr
3713 (package
3714 (name "idr")
3715 (version "2.0.3")
3716 (source (origin
3717 (method git-fetch)
3718 (uri (git-reference
3719 (url "https://github.com/nboley/idr.git")
3720 (commit version)))
3721 (file-name (git-file-name name version))
3722 (sha256
3723 (base32
3724 "04j876h6z444v2q79drxx283d3k5snd72kj895wbalnl42206x9g"))
3725 ;; Delete generated C code.
3726 (snippet
3727 '(begin (delete-file "idr/inv_cdf.c") #t))))
3728 (build-system python-build-system)
3729 ;; There is only one test ("test_inv_cdf.py") and it tests features that
3730 ;; are no longer part of this package. It also asserts False, which
3731 ;; causes the tests to always fail.
3732 (arguments `(#:tests? #f))
3733 (propagated-inputs
3734 `(("python-scipy" ,python-scipy)
3735 ("python-sympy" ,python-sympy)
3736 ("python-numpy" ,python-numpy)
3737 ("python-matplotlib" ,python-matplotlib)))
3738 (native-inputs
3739 `(("python-cython" ,python-cython)))
3740 (home-page "https://github.com/nboley/idr")
3741 (synopsis "Tool to measure the irreproducible discovery rate (IDR)")
3742 (description
3743 "The IDR (Irreproducible Discovery Rate) framework is a unified approach
3744 to measure the reproducibility of findings identified from replicate
3745 experiments and provide highly stable thresholds based on reproducibility.")
3746 (license license:gpl2+)))
3747
3748 (define-public jellyfish
3749 (package
3750 (name "jellyfish")
3751 (version "2.2.10")
3752 (source (origin
3753 (method url-fetch)
3754 (uri (string-append "https://github.com/gmarcais/Jellyfish/"
3755 "releases/download/v" version
3756 "/jellyfish-" version ".tar.gz"))
3757 (sha256
3758 (base32
3759 "1k4pc3fvv6w1km2yph4m5sd78fbxp21d6xyzgmy0gjihzc6mb249"))))
3760 (build-system gnu-build-system)
3761 (outputs '("out" ;for library
3762 "ruby" ;for Ruby bindings
3763 "python")) ;for Python bindings
3764 (arguments
3765 `(#:configure-flags
3766 (list (string-append "--enable-ruby-binding="
3767 (assoc-ref %outputs "ruby"))
3768 (string-append "--enable-python-binding="
3769 (assoc-ref %outputs "python")))
3770 #:phases
3771 (modify-phases %standard-phases
3772 (add-before 'check 'set-SHELL-variable
3773 (lambda _
3774 ;; generator_manager.hpp either uses /bin/sh or $SHELL
3775 ;; to run tests.
3776 (setenv "SHELL" (which "bash"))
3777 #t)))))
3778 (native-inputs
3779 `(("bc" ,bc)
3780 ("time" ,time)
3781 ("ruby" ,ruby)
3782 ("python" ,python-2)
3783 ("pkg-config" ,pkg-config)))
3784 (inputs
3785 `(("htslib" ,htslib)))
3786 (synopsis "Tool for fast counting of k-mers in DNA")
3787 (description
3788 "Jellyfish is a tool for fast, memory-efficient counting of k-mers in
3789 DNA. A k-mer is a substring of length k, and counting the occurrences of all
3790 such substrings is a central step in many analyses of DNA sequence. Jellyfish
3791 is a command-line program that reads FASTA and multi-FASTA files containing
3792 DNA sequences. It outputs its k-mer counts in a binary format, which can be
3793 translated into a human-readable text format using the @code{jellyfish dump}
3794 command, or queried for specific k-mers with @code{jellyfish query}.")
3795 (home-page "http://www.genome.umd.edu/jellyfish.html")
3796 ;; JELLYFISH seems to be 64-bit only.
3797 (supported-systems '("x86_64-linux" "aarch64-linux" "mips64el-linux"))
3798 ;; The combined work is published under the GPLv3 or later. Individual
3799 ;; files such as lib/jsoncpp.cpp are released under the Expat license.
3800 (license (list license:gpl3+ license:expat))))
3801
3802 (define-public khmer
3803 (package
3804 (name "khmer")
3805 (version "2.1.2")
3806 (source
3807 (origin
3808 (method git-fetch)
3809 (uri (git-reference
3810 (url "https://github.com/dib-lab/khmer.git")
3811 (commit (string-append "v" version))))
3812 (file-name (git-file-name name version))
3813 (sha256
3814 (base32
3815 "02x38d9jw2r58y8dmnj4hffy9wxv1yc1jwbvdbhby9dxndv94r9m"))
3816 (patches (search-patches "khmer-use-libraries.patch"))
3817 (modules '((guix build utils)))
3818 (snippet
3819 '(begin
3820 ;; Delete bundled libraries. We do not replace the bundled seqan
3821 ;; as it is a modified subset of the old version 1.4.1.
3822 ;;
3823 ;; We do not replace the bundled MurmurHash as the canonical
3824 ;; repository for this code 'SMHasher' is unsuitable for providing
3825 ;; a library. See
3826 ;; https://lists.gnu.org/archive/html/guix-devel/2016-06/msg00977.html
3827 (delete-file-recursively "third-party/zlib")
3828 (delete-file-recursively "third-party/bzip2")
3829 #t))))
3830 (build-system python-build-system)
3831 (arguments
3832 `(#:phases
3833 (modify-phases %standard-phases
3834 (add-after 'unpack 'set-cc
3835 (lambda _ (setenv "CC" "gcc") #t))
3836 ;; FIXME: This fails with "permission denied".
3837 (delete 'reset-gzip-timestamps))))
3838 (native-inputs
3839 `(("python-cython" ,python-cython)
3840 ("python-pytest" ,python-pytest)
3841 ("python-pytest-runner" ,python-pytest-runner)))
3842 (inputs
3843 `(("zlib" ,zlib)
3844 ("bzip2" ,bzip2)
3845 ("python-screed" ,python-screed)
3846 ("python-bz2file" ,python-bz2file)))
3847 (home-page "https://khmer.readthedocs.org/")
3848 (synopsis "K-mer counting, filtering and graph traversal library")
3849 (description "The khmer software is a set of command-line tools for
3850 working with DNA shotgun sequencing data from genomes, transcriptomes,
3851 metagenomes and single cells. Khmer can make de novo assemblies faster, and
3852 sometimes better. Khmer can also identify and fix problems with shotgun
3853 data.")
3854 ;; When building on i686, armhf and mips64el, we get the following error:
3855 ;; error: ['khmer', 'khmer.tests', 'oxli'] require 64-bit operating system
3856 (supported-systems '("x86_64-linux" "aarch64-linux"))
3857 (license license:bsd-3)))
3858
3859 (define-public kaiju
3860 (package
3861 (name "kaiju")
3862 (version "1.6.3")
3863 (source (origin
3864 (method git-fetch)
3865 (uri (git-reference
3866 (url "https://github.com/bioinformatics-centre/kaiju")
3867 (commit (string-append "v" version))))
3868 (file-name (git-file-name name version))
3869 (sha256
3870 (base32
3871 "119pzi0ddzv9mjg4wwa6han0cwr3k3ssn7kirvsjfcq05mi5ka0x"))))
3872 (build-system gnu-build-system)
3873 (arguments
3874 `(#:tests? #f ; There are no tests.
3875 #:phases
3876 (modify-phases %standard-phases
3877 (delete 'configure)
3878 (add-before 'build 'move-to-src-dir
3879 (lambda _ (chdir "src") #t))
3880 (replace 'install
3881 (lambda* (#:key inputs outputs #:allow-other-keys)
3882 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
3883 (mkdir-p bin)
3884 (chdir "..")
3885 (copy-recursively "bin" bin))
3886 #t)))))
3887 (inputs
3888 `(("perl" ,perl)
3889 ("zlib" ,zlib)))
3890 (home-page "http://kaiju.binf.ku.dk/")
3891 (synopsis "Fast and sensitive taxonomic classification for metagenomics")
3892 (description "Kaiju is a program for sensitive taxonomic classification
3893 of high-throughput sequencing reads from metagenomic whole genome sequencing
3894 experiments.")
3895 (license license:gpl3+)))
3896
3897 (define-public macs
3898 (package
3899 (name "macs")
3900 (version "2.1.1.20160309")
3901 (source (origin
3902 (method url-fetch)
3903 (uri (pypi-uri "MACS2" version))
3904 (sha256
3905 (base32
3906 "09ixspd1vcqmz1c81ih70xs4m7qml2iy5vyx1y74zww3iy1vl210"))))
3907 (build-system python-build-system)
3908 (arguments
3909 `(#:python ,python-2 ; only compatible with Python 2.7
3910 #:tests? #f)) ; no test target
3911 (inputs
3912 `(("python-numpy" ,python2-numpy)))
3913 (home-page "https://github.com/taoliu/MACS/")
3914 (synopsis "Model based analysis for ChIP-Seq data")
3915 (description
3916 "MACS is an implementation of a ChIP-Seq analysis algorithm for
3917 identifying transcript factor binding sites named Model-based Analysis of
3918 ChIP-Seq (MACS). MACS captures the influence of genome complexity to evaluate
3919 the significance of enriched ChIP regions and it improves the spatial
3920 resolution of binding sites through combining the information of both
3921 sequencing tag position and orientation.")
3922 (license license:bsd-3)))
3923
3924 (define-public mafft
3925 (package
3926 (name "mafft")
3927 (version "7.394")
3928 (source (origin
3929 (method url-fetch)
3930 (uri (string-append
3931 "https://mafft.cbrc.jp/alignment/software/mafft-" version
3932 "-without-extensions-src.tgz"))
3933 (file-name (string-append name "-" version ".tgz"))
3934 (sha256
3935 (base32
3936 "0bacjkxfg944p5khhyh5rd4y7wkjc9qk4v2jjj442sqlq0f8ar7b"))))
3937 (build-system gnu-build-system)
3938 (arguments
3939 `(#:tests? #f ; no automated tests, though there are tests in the read me
3940 #:make-flags (let ((out (assoc-ref %outputs "out")))
3941 (list (string-append "PREFIX=" out)
3942 (string-append "BINDIR="
3943 (string-append out "/bin"))))
3944 #:phases
3945 (modify-phases %standard-phases
3946 (add-after 'unpack 'enter-dir
3947 (lambda _ (chdir "core") #t))
3948 (add-after 'enter-dir 'patch-makefile
3949 (lambda _
3950 ;; on advice from the MAFFT authors, there is no need to
3951 ;; distribute mafft-profile, mafft-distance, or
3952 ;; mafft-homologs.rb as they are too "specialised".
3953 (substitute* "Makefile"
3954 ;; remove mafft-homologs.rb from SCRIPTS
3955 (("^SCRIPTS = mafft mafft-homologs.rb")
3956 "SCRIPTS = mafft")
3957 ;; remove mafft-homologs from MANPAGES
3958 (("^MANPAGES = mafft.1 mafft-homologs.1")
3959 "MANPAGES = mafft.1")
3960 ;; remove mafft-distance from PROGS
3961 (("^PROGS = dvtditr dndfast7 dndblast sextet5 mafft-distance")
3962 "PROGS = dvtditr dndfast7 dndblast sextet5")
3963 ;; remove mafft-profile from PROGS
3964 (("splittbfast disttbfast tbfast mafft-profile 2cl mccaskillwrap")
3965 "splittbfast disttbfast tbfast f2cl mccaskillwrap")
3966 (("^rm -f mafft-profile mafft-profile.exe") "#")
3967 (("^rm -f mafft-distance mafft-distance.exe") ")#")
3968 ;; do not install MAN pages in libexec folder
3969 (("^\t\\$\\(INSTALL\\) -m 644 \\$\\(MANPAGES\\) \
3970 \\$\\(DESTDIR\\)\\$\\(LIBDIR\\)") "#"))
3971 #t))
3972 (add-after 'enter-dir 'patch-paths
3973 (lambda* (#:key inputs #:allow-other-keys)
3974 (substitute* '("pairash.c"
3975 "mafft.tmpl")
3976 (("perl") (which "perl"))
3977 (("([\"`| ])awk" _ prefix)
3978 (string-append prefix (which "awk")))
3979 (("grep") (which "grep")))
3980 #t))
3981 (delete 'configure)
3982 (add-after 'install 'wrap-programs
3983 (lambda* (#:key outputs #:allow-other-keys)
3984 (let* ((out (assoc-ref outputs "out"))
3985 (bin (string-append out "/bin"))
3986 (path (string-append
3987 (assoc-ref %build-inputs "coreutils") "/bin:")))
3988 (for-each (lambda (file)
3989 (wrap-program file
3990 `("PATH" ":" prefix (,path))))
3991 (find-files bin)))
3992 #t)))))
3993 (inputs
3994 `(("perl" ,perl)
3995 ("ruby" ,ruby)
3996 ("gawk" ,gawk)
3997 ("grep" ,grep)
3998 ("coreutils" ,coreutils)))
3999 (home-page "http://mafft.cbrc.jp/alignment/software/")
4000 (synopsis "Multiple sequence alignment program")
4001 (description
4002 "MAFFT offers a range of multiple alignment methods for nucleotide and
4003 protein sequences. For instance, it offers L-INS-i (accurate; for alignment
4004 of <~200 sequences) and FFT-NS-2 (fast; for alignment of <~30,000
4005 sequences).")
4006 (license (license:non-copyleft
4007 "http://mafft.cbrc.jp/alignment/software/license.txt"
4008 "BSD-3 with different formatting"))))
4009
4010 (define-public mash
4011 (package
4012 (name "mash")
4013 (version "2.1")
4014 (source (origin
4015 (method git-fetch)
4016 (uri (git-reference
4017 (url "https://github.com/marbl/mash.git")
4018 (commit (string-append "v" version))))
4019 (file-name (git-file-name name version))
4020 (sha256
4021 (base32
4022 "049hwcc059p2fd9vwndn63laifvvsi0wmv84i6y1fr79k15dxwy6"))
4023 (modules '((guix build utils)))
4024 (snippet
4025 '(begin
4026 ;; Delete bundled kseq.
4027 ;; TODO: Also delete bundled murmurhash and open bloom filter.
4028 (delete-file "src/mash/kseq.h")
4029 #t))))
4030 (build-system gnu-build-system)
4031 (arguments
4032 `(#:tests? #f ; No tests.
4033 #:configure-flags
4034 (list
4035 (string-append "--with-capnp=" (assoc-ref %build-inputs "capnproto"))
4036 (string-append "--with-gsl=" (assoc-ref %build-inputs "gsl")))
4037 #:make-flags (list "CC=gcc")
4038 #:phases
4039 (modify-phases %standard-phases
4040 (add-after 'unpack 'fix-includes
4041 (lambda _
4042 (substitute* '("src/mash/Sketch.cpp"
4043 "src/mash/CommandFind.cpp"
4044 "src/mash/CommandScreen.cpp")
4045 (("^#include \"kseq\\.h\"")
4046 "#include \"htslib/kseq.h\""))
4047 #t))
4048 (add-after 'fix-includes 'use-c++14
4049 (lambda _
4050 ;; capnproto 0.7 requires c++14 to build
4051 (substitute* "configure.ac"
4052 (("c\\+\\+11") "c++14"))
4053 (substitute* "Makefile.in"
4054 (("c\\+\\+11") "c++14"))
4055 #t)))))
4056 (native-inputs
4057 `(("autoconf" ,autoconf)
4058 ;; Capnproto and htslib are statically embedded in the final
4059 ;; application. Therefore we also list their licenses, below.
4060 ("capnproto" ,capnproto)
4061 ("htslib" ,htslib)))
4062 (inputs
4063 `(("gsl" ,gsl)
4064 ("zlib" ,zlib)))
4065 (supported-systems '("x86_64-linux"))
4066 (home-page "https://mash.readthedocs.io")
4067 (synopsis "Fast genome and metagenome distance estimation using MinHash")
4068 (description "Mash is a fast sequence distance estimator that uses the
4069 MinHash algorithm and is designed to work with genomes and metagenomes in the
4070 form of assemblies or reads.")
4071 (license (list license:bsd-3 ; Mash
4072 license:expat ; HTSlib and capnproto
4073 license:public-domain ; MurmurHash 3
4074 license:cpl1.0)))) ; Open Bloom Filter
4075
4076 (define-public metabat
4077 (package
4078 (name "metabat")
4079 (version "2.12.1")
4080 (source
4081 (origin
4082 (method git-fetch)
4083 (uri (git-reference
4084 (url "https://bitbucket.org/berkeleylab/metabat.git")
4085 (commit (string-append "v" version))))
4086 (file-name (git-file-name name version))
4087 (sha256
4088 (base32
4089 "0hyg2smw1nz69mfvjpk45xyyychmda92c80a0cv7baji84ri4iyn"))
4090 (patches (search-patches "metabat-fix-compilation.patch"))))
4091 (build-system scons-build-system)
4092 (arguments
4093 `(#:scons ,scons-python2
4094 #:scons-flags
4095 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
4096 (string-append "BOOST_ROOT=" (assoc-ref %build-inputs "boost")))
4097 #:tests? #f ;; Tests are run during the build phase.
4098 #:phases
4099 (modify-phases %standard-phases
4100 (add-after 'unpack 'fix-includes
4101 (lambda _
4102 (substitute* "src/BamUtils.h"
4103 (("^#include \"bam/bam\\.h\"")
4104 "#include \"samtools/bam.h\"")
4105 (("^#include \"bam/sam\\.h\"")
4106 "#include \"samtools/sam.h\""))
4107 (substitute* "src/KseqReader.h"
4108 (("^#include \"bam/kseq\\.h\"")
4109 "#include \"htslib/kseq.h\""))
4110 #t))
4111 (add-after 'unpack 'fix-scons
4112 (lambda* (#:key inputs #:allow-other-keys)
4113 (substitute* "SConstruct"
4114 (("^htslib_dir += 'samtools'")
4115 (string-append "htslib_dir = '"
4116 (assoc-ref inputs "htslib")
4117 "'"))
4118 (("^samtools_dir = 'samtools'")
4119 (string-append "samtools_dir = '"
4120 (assoc-ref inputs "samtools")
4121 "'"))
4122 (("^findStaticOrShared\\('bam', hts_lib")
4123 (string-append "findStaticOrShared('bam', '"
4124 (assoc-ref inputs "samtools")
4125 "/lib'"))
4126 ;; Do not distribute README.
4127 (("^env\\.Install\\(idir_prefix, 'README\\.md'\\)") ""))
4128 #t)))))
4129 (inputs
4130 `(("zlib" ,zlib)
4131 ("perl" ,perl)
4132 ("samtools" ,samtools)
4133 ("htslib" ,htslib)
4134 ("boost" ,boost)))
4135 (home-page "https://bitbucket.org/berkeleylab/metabat")
4136 (synopsis
4137 "Reconstruction of single genomes from complex microbial communities")
4138 (description
4139 "Grouping large genomic fragments assembled from shotgun metagenomic
4140 sequences to deconvolute complex microbial communities, or metagenome binning,
4141 enables the study of individual organisms and their interactions. MetaBAT is
4142 an automated metagenome binning software, which integrates empirical
4143 probabilistic distances of genome abundance and tetranucleotide frequency.")
4144 ;; The source code contains inline assembly.
4145 (supported-systems '("x86_64-linux" "i686-linux"))
4146 (license (license:non-copyleft "file://license.txt"
4147 "See license.txt in the distribution."))))
4148
4149 (define-public minced
4150 (package
4151 (name "minced")
4152 (version "0.3.2")
4153 (source (origin
4154 (method git-fetch)
4155 (uri (git-reference
4156 (url "https://github.com/ctSkennerton/minced.git")
4157 (commit version)))
4158 (file-name (git-file-name name version))
4159 (sha256
4160 (base32
4161 "1f5h9him0gd355cnx7p6pnxpknhckd4g0v62mg8zyhfbx9as25fv"))))
4162 (build-system gnu-build-system)
4163 (arguments
4164 `(#:test-target "test"
4165 #:phases
4166 (modify-phases %standard-phases
4167 (delete 'configure)
4168 (add-before 'check 'fix-test
4169 (lambda _
4170 ;; Fix test for latest version.
4171 (substitute* "t/Aquifex_aeolicus_VF5.expected"
4172 (("minced:0.1.6") "minced:0.2.0"))
4173 #t))
4174 (replace 'install ; No install target.
4175 (lambda* (#:key inputs outputs #:allow-other-keys)
4176 (let* ((out (assoc-ref outputs "out"))
4177 (bin (string-append out "/bin"))
4178 (wrapper (string-append bin "/minced")))
4179 ;; Minced comes with a wrapper script that tries to figure out where
4180 ;; it is located before running the JAR. Since these paths are known
4181 ;; to us, we build our own wrapper to avoid coreutils dependency.
4182 (install-file "minced.jar" bin)
4183 (with-output-to-file wrapper
4184 (lambda _
4185 (display
4186 (string-append
4187 "#!" (assoc-ref inputs "bash") "/bin/sh\n\n"
4188 (assoc-ref inputs "jre") "/bin/java -jar "
4189 bin "/minced.jar \"$@\"\n"))))
4190 (chmod wrapper #o555))
4191 #t)))))
4192 (native-inputs
4193 `(("jdk" ,icedtea "jdk")))
4194 (inputs
4195 `(("bash" ,bash)
4196 ("jre" ,icedtea "out")))
4197 (home-page "https://github.com/ctSkennerton/minced")
4198 (synopsis "Mining CRISPRs in Environmental Datasets")
4199 (description
4200 "MinCED is a program to find Clustered Regularly Interspaced Short
4201 Palindromic Repeats (CRISPRs) in DNA sequences. It can be used for
4202 unassembled metagenomic reads, but is mainly designed for full genomes and
4203 assembled metagenomic sequence.")
4204 (license license:gpl3+)))
4205
4206 (define-public miso
4207 (package
4208 (name "miso")
4209 (version "0.5.4")
4210 (source (origin
4211 (method url-fetch)
4212 (uri (pypi-uri "misopy" version))
4213 (sha256
4214 (base32
4215 "1z3x0vd8ma7pdrnywj7i3kgwl89sdkwrrn62zl7r5calqaq2hyip"))
4216 (modules '((guix build utils)))
4217 (snippet '(begin
4218 (substitute* "setup.py"
4219 ;; Use setuptools, or else the executables are not
4220 ;; installed.
4221 (("distutils.core") "setuptools")
4222 ;; use "gcc" instead of "cc" for compilation
4223 (("^defines")
4224 "cc.set_executables(
4225 compiler='gcc',
4226 compiler_so='gcc',
4227 linker_exe='gcc',
4228 linker_so='gcc -shared'); defines"))
4229 #t))))
4230 (build-system python-build-system)
4231 (arguments
4232 `(#:python ,python-2 ; only Python 2 is supported
4233 #:tests? #f)) ; no "test" target
4234 (inputs
4235 `(("samtools" ,samtools)
4236 ("python-numpy" ,python2-numpy)
4237 ("python-pysam" ,python2-pysam)
4238 ("python-scipy" ,python2-scipy)
4239 ("python-matplotlib" ,python2-matplotlib)))
4240 (native-inputs
4241 `(("python-mock" ,python2-mock) ;for tests
4242 ("python-pytz" ,python2-pytz))) ;for tests
4243 (home-page "http://genes.mit.edu/burgelab/miso/index.html")
4244 (synopsis "Mixture of Isoforms model for RNA-Seq isoform quantitation")
4245 (description
4246 "MISO (Mixture-of-Isoforms) is a probabilistic framework that quantitates
4247 the expression level of alternatively spliced genes from RNA-Seq data, and
4248 identifies differentially regulated isoforms or exons across samples. By
4249 modeling the generative process by which reads are produced from isoforms in
4250 RNA-Seq, the MISO model uses Bayesian inference to compute the probability
4251 that a read originated from a particular isoform.")
4252 (license license:gpl2)))
4253
4254 (define-public muscle
4255 (package
4256 (name "muscle")
4257 (version "3.8.1551")
4258 (source (origin
4259 (method url-fetch/tarbomb)
4260 (uri (string-append
4261 "http://www.drive5.com/muscle/muscle_src_"
4262 version ".tar.gz"))
4263 (sha256
4264 (base32
4265 "0bj8kj7sdizy3987zx6w7axihk40fk8rn76mpbqqjcnd64i5a367"))))
4266 (build-system gnu-build-system)
4267 (arguments
4268 `(#:make-flags (list "LDLIBS = -lm")
4269 #:phases
4270 (modify-phases %standard-phases
4271 (delete 'configure)
4272 (replace 'check
4273 ;; There are no tests, so just test if it runs.
4274 (lambda _ (invoke "./muscle" "-version") #t))
4275 (replace 'install
4276 (lambda* (#:key outputs #:allow-other-keys)
4277 (let* ((out (assoc-ref outputs "out"))
4278 (bin (string-append out "/bin")))
4279 (install-file "muscle" bin)
4280 #t))))))
4281 (home-page "http://www.drive5.com/muscle")
4282 (synopsis "Multiple sequence alignment program")
4283 (description
4284 "MUSCLE aims to be a fast and accurate multiple sequence alignment
4285 program for nucleotide and protein sequences.")
4286 ;; License information found in 'muscle -h' and usage.cpp.
4287 (license license:public-domain)))
4288
4289 (define-public newick-utils
4290 ;; There are no recent releases so we package from git.
4291 (let ((commit "da121155a977197cab9fbb15953ca1b40b11eb87"))
4292 (package
4293 (name "newick-utils")
4294 (version (string-append "1.6-1." (string-take commit 8)))
4295 (source (origin
4296 (method git-fetch)
4297 (uri (git-reference
4298 (url "https://github.com/tjunier/newick_utils.git")
4299 (commit commit)))
4300 (file-name (string-append name "-" version "-checkout"))
4301 (sha256
4302 (base32
4303 "1hkw21rq1mwf7xp0rmbb2gqc0i6p11108m69i7mr7xcjl268pxnb"))))
4304 (build-system gnu-build-system)
4305 (inputs
4306 ;; XXX: TODO: Enable Lua and Guile bindings.
4307 ;; https://github.com/tjunier/newick_utils/issues/13
4308 `(("libxml2" ,libxml2)
4309 ("flex" ,flex)
4310 ("bison" ,bison)))
4311 (native-inputs
4312 `(("autoconf" ,autoconf)
4313 ("automake" ,automake)
4314 ("libtool" ,libtool)))
4315 (synopsis "Programs for working with newick format phylogenetic trees")
4316 (description
4317 "Newick-utils is a suite of utilities for processing phylogenetic trees
4318 in Newick format. Functions include re-rooting, extracting subtrees,
4319 trimming, pruning, condensing, drawing (ASCII graphics or SVG).")
4320 (home-page "https://github.com/tjunier/newick_utils")
4321 (license license:bsd-3))))
4322
4323 (define-public orfm
4324 (package
4325 (name "orfm")
4326 (version "0.7.1")
4327 (source (origin
4328 (method url-fetch)
4329 (uri (string-append
4330 "https://github.com/wwood/OrfM/releases/download/v"
4331 version "/orfm-" version ".tar.gz"))
4332 (sha256
4333 (base32
4334 "16iigyr2gd8x0imzkk1dr3k5xsds9bpmwg31ayvjg0f4pir9rwqr"))))
4335 (build-system gnu-build-system)
4336 (inputs `(("zlib" ,zlib)))
4337 (native-inputs
4338 `(("ruby-bio-commandeer" ,ruby-bio-commandeer)
4339 ("ruby-rspec" ,ruby-rspec)
4340 ("ruby" ,ruby)))
4341 (synopsis "Simple and not slow open reading frame (ORF) caller")
4342 (description
4343 "An ORF caller finds stretches of DNA that, when translated, are not
4344 interrupted by stop codons. OrfM finds and prints these ORFs.")
4345 (home-page "https://github.com/wwood/OrfM")
4346 (license license:lgpl3+)))
4347
4348 (define-public pplacer
4349 (let ((commit "807f6f3"))
4350 (package
4351 (name "pplacer")
4352 ;; The commit should be updated with each version change.
4353 (version "1.1.alpha19")
4354 (source
4355 (origin
4356 (method git-fetch)
4357 (uri (git-reference
4358 (url "https://github.com/matsen/pplacer.git")
4359 (commit (string-append "v" version))))
4360 (file-name (git-file-name name version))
4361 (sha256
4362 (base32 "11ppbbbx20p2g9wj3ff64dhnarb12q79v7qh4rk0gj6lkbz4n7cn"))))
4363 (build-system ocaml-build-system)
4364 (arguments
4365 `(#:ocaml ,ocaml-4.01
4366 #:findlib ,ocaml4.01-findlib
4367 #:modules ((guix build ocaml-build-system)
4368 (guix build utils)
4369 (ice-9 ftw))
4370 #:phases
4371 (modify-phases %standard-phases
4372 (delete 'configure)
4373 (add-after 'unpack 'replace-bundled-cddlib
4374 (lambda* (#:key inputs #:allow-other-keys)
4375 (let* ((cddlib-src (assoc-ref inputs "cddlib-src"))
4376 (local-dir "cddlib_guix"))
4377 (mkdir local-dir)
4378 (with-directory-excursion local-dir
4379 (invoke "tar" "xvf" cddlib-src))
4380 (let ((cddlib-src-folder
4381 (string-append local-dir "/"
4382 (list-ref (scandir local-dir) 2)
4383 "/lib-src")))
4384 (for-each make-file-writable (find-files "cdd_src" ".*"))
4385 (for-each
4386 (lambda (file)
4387 (copy-file file
4388 (string-append "cdd_src/" (basename file))))
4389 (find-files cddlib-src-folder ".*[ch]$")))
4390 #t)))
4391 (add-after 'unpack 'fix-makefile
4392 (lambda _
4393 ;; Remove system calls to 'git'.
4394 (substitute* "Makefile"
4395 (("^DESCRIPT:=pplacer-.*")
4396 (string-append
4397 "DESCRIPT:=pplacer-$(shell uname)-v" ,version "\n")))
4398 (substitute* "myocamlbuild.ml"
4399 (("git describe --tags --long .*\\\" with")
4400 (string-append
4401 "echo -n v" ,version "-" ,commit "\" with")))
4402 #t))
4403 (replace 'install
4404 (lambda* (#:key outputs #:allow-other-keys)
4405 (let* ((out (assoc-ref outputs "out"))
4406 (bin (string-append out "/bin")))
4407 (copy-recursively "bin" bin))
4408 #t)))))
4409 (native-inputs
4410 `(("zlib" ,zlib)
4411 ("gsl" ,gsl)
4412 ("ocaml-ounit" ,ocaml4.01-ounit)
4413 ("ocaml-batteries" ,ocaml4.01-batteries)
4414 ("ocaml-camlzip" ,ocaml4.01-camlzip)
4415 ("ocaml-csv" ,ocaml4.01-csv)
4416 ("ocaml-sqlite3" ,ocaml4.01-sqlite3)
4417 ("ocaml-xmlm" ,ocaml4.01-xmlm)
4418 ("ocaml-mcl" ,ocaml4.01-mcl)
4419 ("ocaml-gsl" ,ocaml4.01-gsl)
4420 ("cddlib-src" ,(package-source cddlib))))
4421 (propagated-inputs
4422 `(("pplacer-scripts" ,pplacer-scripts)))
4423 (synopsis "Phylogenetic placement of biological sequences")
4424 (description
4425 "Pplacer places query sequences on a fixed reference phylogenetic tree
4426 to maximize phylogenetic likelihood or posterior probability according to a
4427 reference alignment. Pplacer is designed to be fast, to give useful
4428 information about uncertainty, and to offer advanced visualization and
4429 downstream analysis.")
4430 (home-page "http://matsen.fhcrc.org/pplacer")
4431 (license license:gpl3))))
4432
4433 ;; This package is installed alongside 'pplacer'. It is a separate package so
4434 ;; that it can use the python-build-system for the scripts that are
4435 ;; distributed alongside the main OCaml binaries.
4436 (define pplacer-scripts
4437 (package
4438 (inherit pplacer)
4439 (name "pplacer-scripts")
4440 (build-system python-build-system)
4441 (arguments
4442 `(#:python ,python-2
4443 #:phases
4444 (modify-phases %standard-phases
4445 (add-after 'unpack 'enter-scripts-dir
4446 (lambda _ (chdir "scripts") #t))
4447 (replace 'check
4448 (lambda _ (invoke "python" "-m" "unittest" "discover" "-v") #t))
4449 (add-after 'install 'wrap-executables
4450 (lambda* (#:key inputs outputs #:allow-other-keys)
4451 (let* ((out (assoc-ref outputs "out"))
4452 (bin (string-append out "/bin")))
4453 (let ((path (string-append
4454 (assoc-ref inputs "hmmer") "/bin:"
4455 (assoc-ref inputs "infernal") "/bin")))
4456 (display path)
4457 (wrap-program (string-append bin "/refpkg_align.py")
4458 `("PATH" ":" prefix (,path))))
4459 (let ((path (string-append
4460 (assoc-ref inputs "hmmer") "/bin")))
4461 (wrap-program (string-append bin "/hrefpkg_query.py")
4462 `("PATH" ":" prefix (,path)))))
4463 #t)))))
4464 (inputs
4465 `(("infernal" ,infernal)
4466 ("hmmer" ,hmmer)))
4467 (propagated-inputs
4468 `(("python-biopython" ,python2-biopython)
4469 ("taxtastic" ,taxtastic)))
4470 (synopsis "Pplacer Python scripts")))
4471
4472 (define-public python2-pbcore
4473 (package
4474 (name "python2-pbcore")
4475 (version "1.2.10")
4476 (source (origin
4477 (method url-fetch)
4478 (uri (pypi-uri "pbcore" version))
4479 (sha256
4480 (base32
4481 "1kjmv891d6qbpp4shhhvkl02ff4q5xlpnls2513sm2cjcrs52f1i"))))
4482 (build-system python-build-system)
4483 (arguments `(#:python ,python-2)) ; pbcore requires Python 2.7
4484 (propagated-inputs
4485 `(("python-cython" ,python2-cython)
4486 ("python-numpy" ,python2-numpy)
4487 ("python-pysam" ,python2-pysam)
4488 ("python-h5py" ,python2-h5py)))
4489 (native-inputs
4490 `(("python-nose" ,python2-nose)
4491 ("python-sphinx" ,python2-sphinx)
4492 ("python-pyxb" ,python2-pyxb)))
4493 (home-page "http://pacificbiosciences.github.io/pbcore/")
4494 (synopsis "Library for reading and writing PacBio data files")
4495 (description
4496 "The pbcore package provides Python APIs for interacting with PacBio data
4497 files and writing bioinformatics applications.")
4498 (license license:bsd-3)))
4499
4500 (define-public python2-warpedlmm
4501 (package
4502 (name "python2-warpedlmm")
4503 (version "0.21")
4504 (source
4505 (origin
4506 (method url-fetch)
4507 (uri (pypi-uri "WarpedLMM" version ".zip"))
4508 (sha256
4509 (base32
4510 "1agfz6zqa8nc6cw47yh0s3y14gkpa9wqazwcj7mwwj3ffnw39p3j"))))
4511 (build-system python-build-system)
4512 (arguments
4513 `(#:python ,python-2)) ; requires Python 2.7
4514 (propagated-inputs
4515 `(("python-scipy" ,python2-scipy)
4516 ("python-numpy" ,python2-numpy)
4517 ("python-matplotlib" ,python2-matplotlib)
4518 ("python-fastlmm" ,python2-fastlmm)
4519 ("python-pandas" ,python2-pandas)
4520 ("python-pysnptools" ,python2-pysnptools)))
4521 (native-inputs
4522 `(("python-mock" ,python2-mock)
4523 ("python-nose" ,python2-nose)
4524 ("unzip" ,unzip)))
4525 (home-page "https://github.com/PMBio/warpedLMM")
4526 (synopsis "Implementation of warped linear mixed models")
4527 (description
4528 "WarpedLMM is a Python implementation of the warped linear mixed model,
4529 which automatically learns an optimal warping function (or transformation) for
4530 the phenotype as it models the data.")
4531 (license license:asl2.0)))
4532
4533 (define-public pbtranscript-tofu
4534 (let ((commit "8f5467fe6a4472bcfb4226c8720993c8507adfe4"))
4535 (package
4536 (name "pbtranscript-tofu")
4537 (version (string-append "2.2.3." (string-take commit 7)))
4538 (source (origin
4539 (method git-fetch)
4540 (uri (git-reference
4541 (url "https://github.com/PacificBiosciences/cDNA_primer.git")
4542 (commit commit)))
4543 (file-name (string-append name "-" version "-checkout"))
4544 (sha256
4545 (base32
4546 "1lgnpi35ihay42qx0b6yl3kkgra723i413j33kvs0kvs61h82w0f"))
4547 (modules '((guix build utils)))
4548 (snippet
4549 '(begin
4550 ;; remove bundled Cython sources
4551 (delete-file "pbtranscript-tofu/pbtranscript/Cython-0.20.1.tar.gz")
4552 #t))))
4553 (build-system python-build-system)
4554 (arguments
4555 `(#:python ,python-2
4556 ;; FIXME: Tests fail with "No such file or directory:
4557 ;; pbtools/pbtranscript/modified_bx_intervals/intersection_unique.so"
4558 #:tests? #f
4559 #:phases
4560 (modify-phases %standard-phases
4561 (add-after 'unpack 'enter-directory
4562 (lambda _
4563 (chdir "pbtranscript-tofu/pbtranscript/")
4564 #t))
4565 ;; With setuptools version 18.0 and later this setup.py hack causes
4566 ;; a build error, so we disable it.
4567 (add-after 'enter-directory 'patch-setuppy
4568 (lambda _
4569 (substitute* "setup.py"
4570 (("if 'setuptools.extension' in sys.modules:")
4571 "if False:"))
4572 #t)))))
4573 (inputs
4574 `(("python-numpy" ,python2-numpy)
4575 ("python-bx-python" ,python2-bx-python)
4576 ("python-networkx" ,python2-networkx)
4577 ("python-scipy" ,python2-scipy)
4578 ("python-pbcore" ,python2-pbcore)
4579 ("python-h5py" ,python2-h5py)))
4580 (native-inputs
4581 `(("python-cython" ,python2-cython)
4582 ("python-nose" ,python2-nose)))
4583 (home-page "https://github.com/PacificBiosciences/cDNA_primer")
4584 (synopsis "Analyze transcriptome data generated with the Iso-Seq protocol")
4585 (description
4586 "pbtranscript-tofu contains scripts to analyze transcriptome data
4587 generated using the PacBio Iso-Seq protocol.")
4588 (license license:bsd-3))))
4589
4590 (define-public prank
4591 (package
4592 (name "prank")
4593 (version "150803")
4594 (source (origin
4595 (method url-fetch)
4596 (uri (string-append
4597 "http://wasabiapp.org/download/prank/prank.source."
4598 version ".tgz"))
4599 (sha256
4600 (base32
4601 "0am4z94fs3w2n5xpfls9zda61vq7qqz4q2i7b9hlsxz5q4j3kfm4"))))
4602 (build-system gnu-build-system)
4603 (arguments
4604 `(#:phases
4605 (modify-phases %standard-phases
4606 (add-after 'unpack 'enter-src-dir
4607 (lambda _
4608 (chdir "src")
4609 #t))
4610 (add-after 'unpack 'remove-m64-flag
4611 ;; Prank will build with the correct 'bit-ness' without this flag
4612 ;; and this allows building on 32-bit machines.
4613 (lambda _ (substitute* "src/Makefile"
4614 (("-m64") ""))
4615 #t))
4616 (delete 'configure)
4617 (replace 'install
4618 (lambda* (#:key outputs #:allow-other-keys)
4619 (let* ((out (assoc-ref outputs "out"))
4620 (bin (string-append out "/bin"))
4621 (man (string-append out "/share/man/man1"))
4622 (path (string-append
4623 (assoc-ref %build-inputs "mafft") "/bin:"
4624 (assoc-ref %build-inputs "exonerate") "/bin:"
4625 (assoc-ref %build-inputs "bppsuite") "/bin")))
4626 (install-file "prank" bin)
4627 (wrap-program (string-append bin "/prank")
4628 `("PATH" ":" prefix (,path)))
4629 (install-file "prank.1" man))
4630 #t)))))
4631 (inputs
4632 `(("mafft" ,mafft)
4633 ("exonerate" ,exonerate)
4634 ("bppsuite" ,bppsuite)))
4635 (home-page "http://wasabiapp.org/software/prank/")
4636 (synopsis "Probabilistic multiple sequence alignment program")
4637 (description
4638 "PRANK is a probabilistic multiple sequence alignment program for DNA,
4639 codon and amino-acid sequences. It is based on a novel algorithm that treats
4640 insertions correctly and avoids over-estimation of the number of deletion
4641 events. In addition, PRANK borrows ideas from maximum likelihood methods used
4642 in phylogenetics and correctly takes into account the evolutionary distances
4643 between sequences. Lastly, PRANK allows for defining a potential structure
4644 for sequences to be aligned and then, simultaneously with the alignment,
4645 predicts the locations of structural units in the sequences.")
4646 (license license:gpl2+)))
4647
4648 (define-public proteinortho
4649 (package
4650 (name "proteinortho")
4651 (version "5.16b")
4652 (source
4653 (origin
4654 (method url-fetch)
4655 (uri
4656 (string-append
4657 "http://www.bioinf.uni-leipzig.de/Software/proteinortho/proteinortho_v"
4658 version "_src.tar.gz"))
4659 (sha256
4660 (base32
4661 "1wl0dawpssqwfjvr651r4wlww8hhjin8nba6xh71ks7sbypx886j"))))
4662 (build-system gnu-build-system)
4663 (arguments
4664 `(#:test-target "test"
4665 #:phases
4666 (modify-phases %standard-phases
4667 (replace 'configure
4668 ;; There is no configure script, so we modify the Makefile directly.
4669 (lambda* (#:key outputs #:allow-other-keys)
4670 (substitute* "Makefile"
4671 (("INSTALLDIR=.*")
4672 (string-append
4673 "INSTALLDIR=" (assoc-ref outputs "out") "/bin\n")))
4674 #t))
4675 (add-before 'install 'make-install-directory
4676 ;; The install directory is not created during 'make install'.
4677 (lambda* (#:key outputs #:allow-other-keys)
4678 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
4679 #t))
4680 (add-after 'install 'wrap-programs
4681 (lambda* (#:key inputs outputs #:allow-other-keys)
4682 (let* ((path (getenv "PATH"))
4683 (out (assoc-ref outputs "out"))
4684 (binary (string-append out "/bin/proteinortho5.pl")))
4685 (wrap-program binary `("PATH" ":" prefix (,path))))
4686 #t)))))
4687 (inputs
4688 `(("perl" ,perl)
4689 ("python" ,python-2)
4690 ("blast+" ,blast+)))
4691 (home-page "http://www.bioinf.uni-leipzig.de/Software/proteinortho")
4692 (synopsis "Detect orthologous genes across species")
4693 (description
4694 "Proteinortho is a tool to detect orthologous genes across different
4695 species. For doing so, it compares similarities of given gene sequences and
4696 clusters them to find significant groups. The algorithm was designed to handle
4697 large-scale data and can be applied to hundreds of species at once.")
4698 (license license:gpl2+)))
4699
4700 (define-public pyicoteo
4701 (package
4702 (name "pyicoteo")
4703 (version "2.0.7")
4704 (source
4705 (origin
4706 (method git-fetch)
4707 (uri (git-reference
4708 (url "https://bitbucket.org/regulatorygenomicsupf/pyicoteo.git")
4709 (commit (string-append "v" version))))
4710 (file-name (git-file-name name version))
4711 (sha256
4712 (base32
4713 "0hz5g8d25lbjy1wpscr490l0lmyvaix893hhax4fxnh1h9w34w8p"))))
4714 (build-system python-build-system)
4715 (arguments
4716 `(#:python ,python-2 ; does not work with Python 3
4717 #:tests? #f)) ; there are no tests
4718 (inputs
4719 `(("python2-matplotlib" ,python2-matplotlib)))
4720 (home-page "https://bitbucket.org/regulatorygenomicsupf/pyicoteo")
4721 (synopsis "Analyze high-throughput genetic sequencing data")
4722 (description
4723 "Pyicoteo is a suite of tools for the analysis of high-throughput genetic
4724 sequencing data. It works with genomic coordinates. There are currently six
4725 different command-line tools:
4726
4727 @enumerate
4728 @item pyicoregion: for generating exploratory regions automatically;
4729 @item pyicoenrich: for differential enrichment between two conditions;
4730 @item pyicoclip: for calling CLIP-Seq peaks without a control;
4731 @item pyicos: for genomic coordinates manipulation;
4732 @item pyicoller: for peak calling on punctuated ChIP-Seq;
4733 @item pyicount: to count how many reads from N experiment files overlap in a
4734 region file;
4735 @item pyicotrocol: to combine operations from pyicoteo.
4736 @end enumerate\n")
4737 (license license:gpl3+)))
4738
4739 (define-public prodigal
4740 (package
4741 (name "prodigal")
4742 (version "2.6.3")
4743 (source (origin
4744 (method git-fetch)
4745 (uri (git-reference
4746 (url "https://github.com/hyattpd/Prodigal.git")
4747 (commit (string-append "v" version))))
4748 (file-name (git-file-name name version))
4749 (sha256
4750 (base32
4751 "1fs1hqk83qjbjhrvhw6ni75zakx5ki1ayy3v6wwkn3xvahc9hi5s"))))
4752 (build-system gnu-build-system)
4753 (arguments
4754 `(#:tests? #f ;no check target
4755 #:make-flags (list (string-append "INSTALLDIR="
4756 (assoc-ref %outputs "out")
4757 "/bin"))
4758 #:phases
4759 (modify-phases %standard-phases
4760 (delete 'configure))))
4761 (home-page "http://prodigal.ornl.gov")
4762 (synopsis "Protein-coding gene prediction for Archaea and Bacteria")
4763 (description
4764 "Prodigal runs smoothly on finished genomes, draft genomes, and
4765 metagenomes, providing gene predictions in GFF3, Genbank, or Sequin table
4766 format. It runs quickly, in an unsupervised fashion, handles gaps, handles
4767 partial genes, and identifies translation initiation sites.")
4768 (license license:gpl3+)))
4769
4770 (define-public roary
4771 (package
4772 (name "roary")
4773 (version "3.12.0")
4774 (source
4775 (origin
4776 (method url-fetch)
4777 (uri (string-append
4778 "mirror://cpan/authors/id/A/AJ/AJPAGE/Bio-Roary-"
4779 version ".tar.gz"))
4780 (sha256
4781 (base32
4782 "0qxrds9wx7cfhlkihrp6697kx0flhhxymap9fwan0b3rbdhcnmff"))))
4783 (build-system perl-build-system)
4784 (arguments
4785 `(#:phases
4786 (modify-phases %standard-phases
4787 (delete 'configure)
4788 (delete 'build)
4789 (replace 'check
4790 (lambda _
4791 ;; The tests are not run by default, so we run each test file
4792 ;; directly.
4793 (setenv "PATH" (string-append (getcwd) "/bin" ":"
4794 (getenv "PATH")))
4795 (setenv "PERL5LIB" (string-append (getcwd) "/lib" ":"
4796 (getenv "PERL5LIB")))
4797 (for-each (lambda (file)
4798 (display file)(display "\n")
4799 (invoke "perl" file))
4800 (find-files "t" ".*\\.t$"))
4801 #t))
4802 (replace 'install
4803 ;; There is no 'install' target in the Makefile.
4804 (lambda* (#:key outputs #:allow-other-keys)
4805 (let* ((out (assoc-ref outputs "out"))
4806 (bin (string-append out "/bin"))
4807 (perl (string-append out "/lib/perl5/site_perl"))
4808 (roary-plots "contrib/roary_plots"))
4809 (mkdir-p bin)
4810 (mkdir-p perl)
4811 (copy-recursively "bin" bin)
4812 (copy-recursively "lib" perl)
4813 #t)))
4814 (add-after 'install 'wrap-programs
4815 (lambda* (#:key inputs outputs #:allow-other-keys)
4816 (let* ((out (assoc-ref outputs "out"))
4817 (perl5lib (getenv "PERL5LIB"))
4818 (path (getenv "PATH")))
4819 (for-each (lambda (prog)
4820 (let ((binary (string-append out "/" prog)))
4821 (wrap-program binary
4822 `("PERL5LIB" ":" prefix
4823 (,(string-append perl5lib ":" out
4824 "/lib/perl5/site_perl"))))
4825 (wrap-program binary
4826 `("PATH" ":" prefix
4827 (,(string-append path ":" out "/bin"))))))
4828 (find-files "bin" ".*[^R]$"))
4829 (let ((file
4830 (string-append out "/bin/roary-create_pan_genome_plots.R"))
4831 (r-site-lib (getenv "R_LIBS_SITE"))
4832 (coreutils-path
4833 (string-append (assoc-ref inputs "coreutils") "/bin")))
4834 (wrap-program file
4835 `("R_LIBS_SITE" ":" prefix
4836 (,(string-append r-site-lib ":" out "/site-library/"))))
4837 (wrap-program file
4838 `("PATH" ":" prefix
4839 (,(string-append coreutils-path ":" out "/bin"))))))
4840 #t)))))
4841 (native-inputs
4842 `(("perl-env-path" ,perl-env-path)
4843 ("perl-test-files" ,perl-test-files)
4844 ("perl-test-most" ,perl-test-most)
4845 ("perl-test-output" ,perl-test-output)))
4846 (inputs
4847 `(("perl-array-utils" ,perl-array-utils)
4848 ("bioperl" ,bioperl-minimal)
4849 ("perl-digest-md5-file" ,perl-digest-md5-file)
4850 ("perl-exception-class" ,perl-exception-class)
4851 ("perl-file-find-rule" ,perl-file-find-rule)
4852 ("perl-file-grep" ,perl-file-grep)
4853 ("perl-file-slurper" ,perl-file-slurper)
4854 ("perl-file-which" ,perl-file-which)
4855 ("perl-graph" ,perl-graph)
4856 ("perl-graph-readwrite" ,perl-graph-readwrite)
4857 ("perl-log-log4perl" ,perl-log-log4perl)
4858 ("perl-moose" ,perl-moose)
4859 ("perl-perlio-utf8_strict" ,perl-perlio-utf8_strict)
4860 ("perl-text-csv" ,perl-text-csv)
4861 ("bedtools" ,bedtools)
4862 ("cd-hit" ,cd-hit)
4863 ("blast+" ,blast+)
4864 ("mcl" ,mcl)
4865 ("parallel" ,parallel)
4866 ("prank" ,prank)
4867 ("mafft" ,mafft)
4868 ("fasttree" ,fasttree)
4869 ("grep" ,grep)
4870 ("sed" ,sed)
4871 ("gawk" ,gawk)
4872 ("r-minimal" ,r-minimal)
4873 ("r-ggplot2" ,r-ggplot2)
4874 ("coreutils" ,coreutils)))
4875 (home-page "http://sanger-pathogens.github.io/Roary")
4876 (synopsis "High speed stand-alone pan genome pipeline")
4877 (description
4878 "Roary is a high speed stand alone pan genome pipeline, which takes
4879 annotated assemblies in GFF3 format (produced by the Prokka program) and
4880 calculates the pan genome. Using a standard desktop PC, it can analyse
4881 datasets with thousands of samples, without compromising the quality of the
4882 results. 128 samples can be analysed in under 1 hour using 1 GB of RAM and a
4883 single processor. Roary is not intended for metagenomics or for comparing
4884 extremely diverse sets of genomes.")
4885 (license license:gpl3)))
4886
4887 (define-public raxml
4888 (package
4889 (name "raxml")
4890 (version "8.2.12")
4891 (source
4892 (origin
4893 (method git-fetch)
4894 (uri (git-reference
4895 (url "https://github.com/stamatak/standard-RAxML.git")
4896 (commit (string-append "v" version))))
4897 (file-name (git-file-name name version))
4898 (sha256
4899 (base32
4900 "1jqjzhch0rips0vp04prvb8vmc20c5pdmsqn8knadcf91yy859fh"))))
4901 (build-system gnu-build-system)
4902 (arguments
4903 `(#:tests? #f ; There are no tests.
4904 ;; Use 'standard' Makefile rather than SSE or AVX ones.
4905 #:make-flags (list "-f" "Makefile.HYBRID.gcc")
4906 #:phases
4907 (modify-phases %standard-phases
4908 (delete 'configure)
4909 (replace 'install
4910 (lambda* (#:key outputs #:allow-other-keys)
4911 (let* ((out (assoc-ref outputs "out"))
4912 (bin (string-append out "/bin"))
4913 (executable "raxmlHPC-HYBRID"))
4914 (install-file executable bin)
4915 (symlink (string-append bin "/" executable) "raxml"))
4916 #t)))))
4917 (inputs
4918 `(("openmpi" ,openmpi)))
4919 (home-page "http://sco.h-its.org/exelixis/web/software/raxml/index.html")
4920 (synopsis "Randomized Axelerated Maximum Likelihood phylogenetic trees")
4921 (description
4922 "RAxML is a tool for phylogenetic analysis and post-analysis of large
4923 phylogenies.")
4924 ;; The source includes x86 specific code
4925 (supported-systems '("x86_64-linux" "i686-linux"))
4926 (license license:gpl2+)))
4927
4928 (define-public rsem
4929 (package
4930 (name "rsem")
4931 (version "1.3.1")
4932 (source
4933 (origin
4934 (method git-fetch)
4935 (uri (git-reference
4936 (url "https://github.com/deweylab/RSEM.git")
4937 (commit (string-append "v" version))))
4938 (sha256
4939 (base32 "1jlq11d1p8qp64w75yj8cnbbd1a93viq10pzsbwal7vdn8fg13j1"))
4940 (file-name (git-file-name name version))
4941 (modules '((guix build utils)))
4942 (snippet
4943 '(begin
4944 ;; remove bundled copy of boost and samtools
4945 (delete-file-recursively "boost")
4946 (delete-file-recursively "samtools-1.3")
4947 #t))))
4948 (build-system gnu-build-system)
4949 (arguments
4950 `(#:tests? #f ;no "check" target
4951 #:make-flags
4952 (list (string-append "BOOST="
4953 (assoc-ref %build-inputs "boost")
4954 "/include/")
4955 (string-append "SAMHEADERS="
4956 (assoc-ref %build-inputs "htslib")
4957 "/include/htslib/sam.h")
4958 (string-append "SAMLIBS="
4959 (assoc-ref %build-inputs "htslib")
4960 "/lib/libhts.a"))
4961 #:phases
4962 (modify-phases %standard-phases
4963 ;; No "configure" script.
4964 ;; Do not build bundled samtools library.
4965 (replace 'configure
4966 (lambda _
4967 (substitute* "Makefile"
4968 (("^all : \\$\\(PROGRAMS\\).*") "all: $(PROGRAMS)\n")
4969 (("^\\$\\(SAMLIBS\\).*") ""))
4970 #t))
4971 (replace 'install
4972 (lambda* (#:key outputs #:allow-other-keys)
4973 (let* ((out (string-append (assoc-ref outputs "out")))
4974 (bin (string-append out "/bin/"))
4975 (perl (string-append out "/lib/perl5/site_perl")))
4976 (mkdir-p bin)
4977 (mkdir-p perl)
4978 (for-each (lambda (file)
4979 (install-file file bin))
4980 (find-files "." "rsem-.*"))
4981 (install-file "rsem_perl_utils.pm" perl))
4982 #t))
4983 (add-after 'install 'wrap-program
4984 (lambda* (#:key outputs #:allow-other-keys)
4985 (let ((out (assoc-ref outputs "out")))
4986 (for-each (lambda (prog)
4987 (wrap-program (string-append out "/bin/" prog)
4988 `("PERL5LIB" ":" prefix
4989 (,(string-append out "/lib/perl5/site_perl")))))
4990 '("rsem-calculate-expression"
4991 "rsem-control-fdr"
4992 "rsem-generate-data-matrix"
4993 "rsem-generate-ngvector"
4994 "rsem-plot-transcript-wiggles"
4995 "rsem-prepare-reference"
4996 "rsem-run-ebseq"
4997 "rsem-run-prsem-testing-procedure")))
4998 #t)))))
4999 (inputs
5000 `(("boost" ,boost)
5001 ("r-minimal" ,r-minimal)
5002 ("perl" ,perl)
5003 ("htslib" ,htslib-1.3)
5004 ("zlib" ,zlib)))
5005 (home-page "http://deweylab.biostat.wisc.edu/rsem/")
5006 (synopsis "Estimate gene expression levels from RNA-Seq data")
5007 (description
5008 "RSEM is a software package for estimating gene and isoform expression
5009 levels from RNA-Seq data. The RSEM package provides a user-friendly
5010 interface, supports threads for parallel computation of the EM algorithm,
5011 single-end and paired-end read data, quality scores, variable-length reads and
5012 RSPD estimation. In addition, it provides posterior mean and 95% credibility
5013 interval estimates for expression levels. For visualization, it can generate
5014 BAM and Wiggle files in both transcript-coordinate and genomic-coordinate.")
5015 (license license:gpl3+)))
5016
5017 (define-public rseqc
5018 (package
5019 (name "rseqc")
5020 (version "2.6.1")
5021 (source
5022 (origin
5023 (method url-fetch)
5024 (uri
5025 (string-append "mirror://sourceforge/rseqc/"
5026 "RSeQC-" version ".tar.gz"))
5027 (sha256
5028 (base32 "15ly0254yi032qzkdplg00q144qfdsd986gh62829rl5bkxhj330"))
5029 (modules '((guix build utils)))
5030 (snippet
5031 '(begin
5032 ;; remove bundled copy of pysam
5033 (delete-file-recursively "lib/pysam")
5034 (substitute* "setup.py"
5035 ;; remove dependency on outdated "distribute" module
5036 (("^from distribute_setup import use_setuptools") "")
5037 (("^use_setuptools\\(\\)") "")
5038 ;; do not use bundled copy of pysam
5039 (("^have_pysam = False") "have_pysam = True"))
5040 #t))))
5041 (build-system python-build-system)
5042 (arguments `(#:python ,python-2))
5043 (inputs
5044 `(("python-cython" ,python2-cython)
5045 ("python-pysam" ,python2-pysam)
5046 ("python-numpy" ,python2-numpy)
5047 ("zlib" ,zlib)))
5048 (native-inputs
5049 `(("python-nose" ,python2-nose)))
5050 (home-page "http://rseqc.sourceforge.net/")
5051 (synopsis "RNA-seq quality control package")
5052 (description
5053 "RSeQC provides a number of modules that can comprehensively evaluate
5054 high throughput sequence data, especially RNA-seq data. Some basic modules
5055 inspect sequence quality, nucleotide composition bias, PCR bias and GC bias,
5056 while RNA-seq specific modules evaluate sequencing saturation, mapped reads
5057 distribution, coverage uniformity, strand specificity, etc.")
5058 (license license:gpl3+)))
5059
5060 (define-public seek
5061 ;; There are no release tarballs. According to the installation
5062 ;; instructions at http://seek.princeton.edu/installation.jsp, the latest
5063 ;; stable release is identified by this changeset ID.
5064 (let ((changeset "2329130")
5065 (revision "1"))
5066 (package
5067 (name "seek")
5068 (version (string-append "0-" revision "." changeset))
5069 (source (origin
5070 (method hg-fetch)
5071 (uri (hg-reference
5072 (url "https://bitbucket.org/libsleipnir/sleipnir")
5073 (changeset changeset)))
5074 (file-name (string-append name "-" version "-checkout"))
5075 (sha256
5076 (base32
5077 "0qrvilwh18dpbhkf92qvxbmay0j75ra3jg2wrhz67gf538zzphsx"))))
5078 (build-system gnu-build-system)
5079 (arguments
5080 `(#:modules ((srfi srfi-1)
5081 (guix build gnu-build-system)
5082 (guix build utils))
5083 #:phases
5084 (let ((dirs '("SeekMiner"
5085 "SeekEvaluator"
5086 "SeekPrep"
5087 "Distancer"
5088 "Data2DB"
5089 "PCL2Bin")))
5090 (modify-phases %standard-phases
5091 (replace 'bootstrap
5092 (lambda _
5093 (substitute* "gen_tools_am"
5094 (("/usr/bin/env.*") (which "perl")))
5095 (invoke "bash" "gen_auto")
5096 #t))
5097 (add-after 'build 'build-additional-tools
5098 (lambda* (#:key make-flags #:allow-other-keys)
5099 (for-each (lambda (dir)
5100 (with-directory-excursion (string-append "tools/" dir)
5101 (apply invoke "make" make-flags)))
5102 dirs)
5103 #t))
5104 (add-after 'install 'install-additional-tools
5105 (lambda* (#:key make-flags #:allow-other-keys)
5106 (for-each (lambda (dir)
5107 (with-directory-excursion (string-append "tools/" dir)
5108 (apply invoke `("make" ,@make-flags "install"))))
5109 dirs)
5110 #t))))))
5111 (inputs
5112 `(("gsl" ,gsl)
5113 ("boost" ,boost)
5114 ("libsvm" ,libsvm)
5115 ("readline" ,readline)
5116 ("gengetopt" ,gengetopt)
5117 ("log4cpp" ,log4cpp)))
5118 (native-inputs
5119 `(("autoconf" ,autoconf)
5120 ("automake" ,automake)
5121 ("perl" ,perl)))
5122 (home-page "http://seek.princeton.edu")
5123 (synopsis "Gene co-expression search engine")
5124 (description
5125 "SEEK is a computational gene co-expression search engine. SEEK provides
5126 biologists with a way to navigate the massive human expression compendium that
5127 now contains thousands of expression datasets. SEEK returns a robust ranking
5128 of co-expressed genes in the biological area of interest defined by the user's
5129 query genes. It also prioritizes thousands of expression datasets according
5130 to the user's query of interest.")
5131 (license license:cc-by3.0))))
5132
5133 (define-public samtools
5134 (package
5135 (name "samtools")
5136 (version "1.9")
5137 (source
5138 (origin
5139 (method url-fetch)
5140 (uri
5141 (string-append "mirror://sourceforge/samtools/samtools/"
5142 version "/samtools-" version ".tar.bz2"))
5143 (sha256
5144 (base32
5145 "10ilqbmm7ri8z431sn90lvbjwizd0hhkf9rcqw8j823hf26nhgq8"))
5146 (modules '((guix build utils)))
5147 (snippet '(begin
5148 ;; Delete bundled htslib.
5149 (delete-file-recursively "htslib-1.9")
5150 #t))))
5151 (build-system gnu-build-system)
5152 (arguments
5153 `(#:modules ((ice-9 ftw)
5154 (ice-9 regex)
5155 (guix build gnu-build-system)
5156 (guix build utils))
5157 #:configure-flags (list "--with-ncurses")
5158 #:phases
5159 (modify-phases %standard-phases
5160 (add-after 'unpack 'patch-tests
5161 (lambda _
5162 (substitute* "test/test.pl"
5163 ;; The test script calls out to /bin/bash
5164 (("/bin/bash") (which "bash")))
5165 #t))
5166 (add-after 'install 'install-library
5167 (lambda* (#:key outputs #:allow-other-keys)
5168 (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
5169 (install-file "libbam.a" lib)
5170 #t)))
5171 (add-after 'install 'install-headers
5172 (lambda* (#:key outputs #:allow-other-keys)
5173 (let ((include (string-append (assoc-ref outputs "out")
5174 "/include/samtools/")))
5175 (for-each (lambda (file)
5176 (install-file file include))
5177 (scandir "." (lambda (name) (string-match "\\.h$" name))))
5178 #t))))))
5179 (native-inputs `(("pkg-config" ,pkg-config)))
5180 (inputs
5181 `(("htslib" ,htslib)
5182 ("ncurses" ,ncurses)
5183 ("perl" ,perl)
5184 ("python" ,python)
5185 ("zlib" ,zlib)))
5186 (home-page "http://samtools.sourceforge.net")
5187 (synopsis "Utilities to efficiently manipulate nucleotide sequence alignments")
5188 (description
5189 "Samtools implements various utilities for post-processing nucleotide
5190 sequence alignments in the SAM, BAM, and CRAM formats, including indexing,
5191 variant calling (in conjunction with bcftools), and a simple alignment
5192 viewer.")
5193 (license license:expat)))
5194
5195 (define-public samtools-0.1
5196 ;; This is the most recent version of the 0.1 line of samtools. The input
5197 ;; and output formats differ greatly from that used and produced by samtools
5198 ;; 1.x and is still used in many bioinformatics pipelines.
5199 (package (inherit samtools)
5200 (version "0.1.19")
5201 (source
5202 (origin
5203 (method url-fetch)
5204 (uri
5205 (string-append "mirror://sourceforge/samtools/samtools/"
5206 version "/samtools-" version ".tar.bz2"))
5207 (sha256
5208 (base32 "1m33xsfwz0s8qi45lylagfllqg7fphf4dr0780rsvw75av9wk06h"))))
5209 (arguments
5210 `(#:tests? #f ;no "check" target
5211 #:make-flags
5212 (list "LIBCURSES=-lncurses")
5213 ,@(substitute-keyword-arguments (package-arguments samtools)
5214 ((#:phases phases)
5215 `(modify-phases ,phases
5216 (replace 'install
5217 (lambda* (#:key outputs #:allow-other-keys)
5218 (let ((bin (string-append
5219 (assoc-ref outputs "out") "/bin")))
5220 (mkdir-p bin)
5221 (install-file "samtools" bin)
5222 #t)))
5223 (delete 'patch-tests)
5224 (delete 'configure))))))))
5225
5226 (define-public mosaik
5227 (let ((commit "5c25216d3522d6a33e53875cd76a6d65001e4e67"))
5228 (package
5229 (name "mosaik")
5230 (version "2.2.30")
5231 (source (origin
5232 ;; There are no release tarballs nor tags.
5233 (method git-fetch)
5234 (uri (git-reference
5235 (url "https://github.com/wanpinglee/MOSAIK.git")
5236 (commit commit)))
5237 (file-name (string-append name "-" version))
5238 (sha256
5239 (base32
5240 "17gj3s07cm77r41z92awh0bim7w7q7fbn0sf5nkqmcm1vw052qgw"))))
5241 (build-system gnu-build-system)
5242 (arguments
5243 `(#:tests? #f ; no tests
5244 #:make-flags (list "CC=gcc")
5245 #:phases
5246 (modify-phases %standard-phases
5247 (replace 'configure
5248 (lambda _ (chdir "src") #t))
5249 (replace 'install
5250 (lambda* (#:key outputs #:allow-other-keys)
5251 (let ((bin (string-append (assoc-ref outputs "out")
5252 "/bin")))
5253 (mkdir-p bin)
5254 (copy-recursively "../bin" bin)
5255 #t))))))
5256 (inputs
5257 `(("perl" ,perl)
5258 ("zlib:static" ,zlib "static")
5259 ("zlib" ,zlib)))
5260 (supported-systems '("x86_64-linux"))
5261 (home-page "https://github.com/wanpinglee/MOSAIK")
5262 (synopsis "Map nucleotide sequence reads to reference genomes")
5263 (description
5264 "MOSAIK is a program for mapping second and third-generation sequencing
5265 reads to a reference genome. MOSAIK can align reads generated by all the
5266 major sequencing technologies, including Illumina, Applied Biosystems SOLiD,
5267 Roche 454, Ion Torrent and Pacific BioSciences SMRT.")
5268 ;; MOSAIK is released under the GPLv2+ with the exception of third-party
5269 ;; code released into the public domain:
5270 ;; 1. fastlz by Ariya Hidayat - http://www.fastlz.org/
5271 ;; 2. MD5 implementation - RSA Data Security, RFC 1321
5272 (license (list license:gpl2+ license:public-domain)))))
5273
5274 (define-public ngs-sdk
5275 (package
5276 (name "ngs-sdk")
5277 (version "2.9.3")
5278 (source (origin
5279 (method git-fetch)
5280 (uri (git-reference
5281 (url "https://github.com/ncbi/ngs.git")
5282 (commit version)))
5283 (file-name (git-file-name name version))
5284 (sha256
5285 (base32
5286 "17c0v1nah3g3d2ib5bbi0vhma1ghd6vb9xycavqsh64lhp840rk3"))))
5287 (build-system gnu-build-system)
5288 (arguments
5289 `(#:parallel-build? #f ; not supported
5290 #:tests? #f ; no "check" target
5291 #:phases
5292 (modify-phases %standard-phases
5293 (replace 'configure
5294 (lambda* (#:key outputs #:allow-other-keys)
5295 (let ((out (assoc-ref outputs "out")))
5296 ;; Allow 'konfigure.perl' to find 'package.prl'.
5297 (setenv "PERL5LIB"
5298 (string-append ".:" (getenv "PERL5LIB")))
5299
5300 ;; The 'configure' script doesn't recognize things like
5301 ;; '--enable-fast-install'.
5302 (invoke "./configure"
5303 (string-append "--build-prefix=" (getcwd) "/build")
5304 (string-append "--prefix=" out))
5305 #t)))
5306 (add-after 'unpack 'enter-dir
5307 (lambda _ (chdir "ngs-sdk") #t)))))
5308 (native-inputs `(("perl" ,perl)))
5309 ;; According to the test
5310 ;; unless ($MARCH =~ /x86_64/i || $MARCH =~ /i?86/i)
5311 ;; in ngs-sdk/setup/konfigure.perl
5312 (supported-systems '("i686-linux" "x86_64-linux"))
5313 (home-page "https://github.com/ncbi/ngs")
5314 (synopsis "API for accessing Next Generation Sequencing data")
5315 (description
5316 "NGS is a domain-specific API for accessing reads, alignments and pileups
5317 produced from Next Generation Sequencing. The API itself is independent from
5318 any particular back-end implementation, and supports use of multiple back-ends
5319 simultaneously.")
5320 (license license:public-domain)))
5321
5322 (define-public java-ngs
5323 (package (inherit ngs-sdk)
5324 (name "java-ngs")
5325 (arguments
5326 `(,@(substitute-keyword-arguments
5327 `(#:modules ((guix build gnu-build-system)
5328 (guix build utils)
5329 (srfi srfi-1)
5330 (srfi srfi-26))
5331 ,@(package-arguments ngs-sdk))
5332 ((#:phases phases)
5333 `(modify-phases ,phases
5334 (replace 'enter-dir (lambda _ (chdir "ngs-java") #t)))))))
5335 (inputs
5336 `(("jdk" ,icedtea "jdk")
5337 ("ngs-sdk" ,ngs-sdk)))
5338 (synopsis "Java bindings for NGS SDK")))
5339
5340 (define-public ncbi-vdb
5341 (package
5342 (name "ncbi-vdb")
5343 (version "2.9.3")
5344 (source (origin
5345 (method git-fetch)
5346 (uri (git-reference
5347 (url "https://github.com/ncbi/ncbi-vdb.git")
5348 (commit version)))
5349 (file-name (git-file-name name version))
5350 (sha256
5351 (base32
5352 "1l4ny67nxwv1lagk9wwjbrgm7ln7adci6dnpc7k1yaln6shj0qpm"))))
5353 (build-system gnu-build-system)
5354 (arguments
5355 `(#:parallel-build? #f ; not supported
5356 #:tests? #f ; no "check" target
5357 #:phases
5358 (modify-phases %standard-phases
5359 (add-after 'unpack 'make-files-writable
5360 (lambda _ (for-each make-file-writable (find-files "." ".*")) #t))
5361 (add-before 'configure 'set-perl-search-path
5362 (lambda _
5363 ;; Work around "dotless @INC" build failure.
5364 (setenv "PERL5LIB"
5365 (string-append (getcwd) "/setup:"
5366 (getenv "PERL5LIB")))
5367 #t))
5368 (replace 'configure
5369 (lambda* (#:key inputs outputs #:allow-other-keys)
5370 (let ((out (assoc-ref outputs "out")))
5371 ;; Override include path for libmagic
5372 (substitute* "setup/package.prl"
5373 (("name => 'magic', Include => '/usr/include'")
5374 (string-append "name=> 'magic', Include => '"
5375 (assoc-ref inputs "libmagic")
5376 "/include" "'")))
5377
5378 ;; Install kdf5 library (needed by sra-tools)
5379 (substitute* "build/Makefile.install"
5380 (("LIBRARIES_TO_INSTALL =")
5381 "LIBRARIES_TO_INSTALL = kdf5.$(VERSION_LIBX) kdf5.$(VERSION_SHLX)"))
5382
5383 (substitute* "build/Makefile.env"
5384 (("CFLAGS =" prefix)
5385 (string-append prefix "-msse2 ")))
5386
5387 ;; Override search path for ngs-java
5388 (substitute* "setup/package.prl"
5389 (("/usr/local/ngs/ngs-java")
5390 (assoc-ref inputs "java-ngs")))
5391
5392 ;; The 'configure' script doesn't recognize things like
5393 ;; '--enable-fast-install'.
5394 (invoke "./configure"
5395 (string-append "--build-prefix=" (getcwd) "/build")
5396 (string-append "--prefix=" (assoc-ref outputs "out"))
5397 (string-append "--debug")
5398 (string-append "--with-xml2-prefix="
5399 (assoc-ref inputs "libxml2"))
5400 (string-append "--with-ngs-sdk-prefix="
5401 (assoc-ref inputs "ngs-sdk"))
5402 (string-append "--with-hdf5-prefix="
5403 (assoc-ref inputs "hdf5")))
5404 #t)))
5405 (add-after 'install 'install-interfaces
5406 (lambda* (#:key outputs #:allow-other-keys)
5407 ;; Install interface libraries. On i686 the interface libraries
5408 ;; are installed to "linux/gcc/i386", so we need to use the Linux
5409 ;; architecture name ("i386") instead of the target system prefix
5410 ;; ("i686").
5411 (mkdir (string-append (assoc-ref outputs "out") "/ilib"))
5412 (copy-recursively (string-append "build/ncbi-vdb/linux/gcc/"
5413 ,(system->linux-architecture
5414 (or (%current-target-system)
5415 (%current-system)))
5416 "/rel/ilib")
5417 (string-append (assoc-ref outputs "out")
5418 "/ilib"))
5419 ;; Install interface headers
5420 (copy-recursively "interfaces"
5421 (string-append (assoc-ref outputs "out")
5422 "/include"))
5423 #t))
5424 ;; These files are needed by sra-tools.
5425 (add-after 'install 'install-configuration-files
5426 (lambda* (#:key outputs #:allow-other-keys)
5427 (let ((target (string-append (assoc-ref outputs "out") "/kfg")))
5428 (mkdir target)
5429 (install-file "libs/kfg/default.kfg" target)
5430 (install-file "libs/kfg/certs.kfg" target))
5431 #t)))))
5432 (inputs
5433 `(("libxml2" ,libxml2)
5434 ("ngs-sdk" ,ngs-sdk)
5435 ("java-ngs" ,java-ngs)
5436 ("libmagic" ,file)
5437 ("hdf5" ,hdf5)))
5438 (native-inputs `(("perl" ,perl)))
5439 ;; NCBI-VDB requires SSE capability.
5440 (supported-systems '("i686-linux" "x86_64-linux"))
5441 (home-page "https://github.com/ncbi/ncbi-vdb")
5442 (synopsis "Database engine for genetic information")
5443 (description
5444 "The NCBI-VDB library implements a highly compressed columnar data
5445 warehousing engine that is most often used to store genetic information.
5446 Databases are stored in a portable image within the file system, and can be
5447 accessed/downloaded on demand across HTTP.")
5448 (license license:public-domain)))
5449
5450 (define-public plink
5451 (package
5452 (name "plink")
5453 (version "1.07")
5454 (source
5455 (origin
5456 (method url-fetch)
5457 (uri (string-append
5458 "http://pngu.mgh.harvard.edu/~purcell/plink/dist/plink-"
5459 version "-src.zip"))
5460 (sha256
5461 (base32 "0as8gxm4pjyc8dxmm1sl873rrd7wn5qs0l29nqfnl31x8i467xaa"))
5462 (patches (search-patches "plink-1.07-unclobber-i.patch"
5463 "plink-endian-detection.patch"))))
5464 (build-system gnu-build-system)
5465 (arguments
5466 '(#:tests? #f ;no "check" target
5467 #:make-flags (list (string-append "LIB_LAPACK="
5468 (assoc-ref %build-inputs "lapack")
5469 "/lib/liblapack.so")
5470 "WITH_LAPACK=1"
5471 "FORCE_DYNAMIC=1"
5472 ;; disable phoning home
5473 "WITH_WEBCHECK=")
5474 #:phases
5475 (modify-phases %standard-phases
5476 ;; no "configure" script
5477 (delete 'configure)
5478 (replace 'install
5479 (lambda* (#:key outputs #:allow-other-keys)
5480 (let ((bin (string-append (assoc-ref outputs "out")
5481 "/bin/")))
5482 (install-file "plink" bin)
5483 #t))))))
5484 (inputs
5485 `(("zlib" ,zlib)
5486 ("lapack" ,lapack)))
5487 (native-inputs
5488 `(("unzip" ,unzip)))
5489 (home-page "http://pngu.mgh.harvard.edu/~purcell/plink/")
5490 (synopsis "Whole genome association analysis toolset")
5491 (description
5492 "PLINK is a whole genome association analysis toolset, designed to
5493 perform a range of basic, large-scale analyses in a computationally efficient
5494 manner. The focus of PLINK is purely on analysis of genotype/phenotype data,
5495 so there is no support for steps prior to this (e.g. study design and
5496 planning, generating genotype or CNV calls from raw data). Through
5497 integration with gPLINK and Haploview, there is some support for the
5498 subsequent visualization, annotation and storage of results.")
5499 ;; Code is released under GPLv2, except for fisher.h, which is under
5500 ;; LGPLv2.1+
5501 (license (list license:gpl2 license:lgpl2.1+))))
5502
5503 (define-public plink-ng
5504 (package (inherit plink)
5505 (name "plink-ng")
5506 (version "1.90b4")
5507 (source
5508 (origin
5509 (method git-fetch)
5510 (uri (git-reference
5511 (url "https://github.com/chrchang/plink-ng.git")
5512 (commit (string-append "v" version))))
5513 (file-name (git-file-name name version))
5514 (sha256
5515 (base32 "02npdwgkpfkdnhw819rhj5kw02a5k5m90b14zq9zzya4hyg929c0"))))
5516 (build-system gnu-build-system)
5517 (arguments
5518 '(#:tests? #f ;no "check" target
5519 #:make-flags (list "BLASFLAGS=-llapack -lopenblas"
5520 "CFLAGS=-Wall -O2 -DDYNAMIC_ZLIB=1"
5521 "ZLIB=-lz"
5522 "-f" "Makefile.std")
5523 #:phases
5524 (modify-phases %standard-phases
5525 (add-after 'unpack 'chdir
5526 (lambda _ (chdir "1.9") #t))
5527 (delete 'configure) ; no "configure" script
5528 (replace 'install
5529 (lambda* (#:key outputs #:allow-other-keys)
5530 (let ((bin (string-append (assoc-ref outputs "out")
5531 "/bin/")))
5532 (install-file "plink" bin)
5533 #t))))))
5534 (inputs
5535 `(("zlib" ,zlib)
5536 ("lapack" ,lapack)
5537 ("openblas" ,openblas)))
5538 (home-page "https://www.cog-genomics.org/plink/")
5539 (license license:gpl3+)))
5540
5541 (define-public smithlab-cpp
5542 (let ((revision "1")
5543 (commit "728a097bec88c6f4b8528b685932049e660eff2e"))
5544 (package
5545 (name "smithlab-cpp")
5546 (version (string-append "0." revision "." (string-take commit 7)))
5547 (source (origin
5548 (method git-fetch)
5549 (uri (git-reference
5550 (url "https://github.com/smithlabcode/smithlab_cpp.git")
5551 (commit commit)))
5552 (file-name (string-append name "-" version "-checkout"))
5553 (sha256
5554 (base32
5555 "0d476lmj312xk77kr9fzrv7z1bv96yfyx0w7y62ycmnfbx32ll74"))))
5556 (build-system gnu-build-system)
5557 (arguments
5558 `(#:modules ((guix build gnu-build-system)
5559 (guix build utils)
5560 (srfi srfi-26))
5561 #:tests? #f ;no "check" target
5562 #:phases
5563 (modify-phases %standard-phases
5564 (add-after 'unpack 'use-samtools-headers
5565 (lambda _
5566 (substitute* '("SAM.cpp"
5567 "SAM.hpp")
5568 (("sam.h") "samtools/sam.h"))
5569 #t))
5570 (replace 'install
5571 (lambda* (#:key outputs #:allow-other-keys)
5572 (let* ((out (assoc-ref outputs "out"))
5573 (lib (string-append out "/lib"))
5574 (include (string-append out "/include/smithlab-cpp")))
5575 (mkdir-p lib)
5576 (mkdir-p include)
5577 (for-each (cut install-file <> lib)
5578 (find-files "." "\\.o$"))
5579 (for-each (cut install-file <> include)
5580 (find-files "." "\\.hpp$")))
5581 #t))
5582 (delete 'configure))))
5583 (inputs
5584 `(("samtools" ,samtools-0.1)
5585 ("zlib" ,zlib)))
5586 (home-page "https://github.com/smithlabcode/smithlab_cpp")
5587 (synopsis "C++ helper library for functions used in Smith lab projects")
5588 (description
5589 "Smithlab CPP is a C++ library that includes functions used in many of
5590 the Smith lab bioinformatics projects, such as a wrapper around Samtools data
5591 structures, classes for genomic regions, mapped sequencing reads, etc.")
5592 (license license:gpl3+))))
5593
5594 (define-public preseq
5595 (package
5596 (name "preseq")
5597 (version "2.0.3")
5598 (source (origin
5599 (method url-fetch)
5600 (uri (string-append "https://github.com/smithlabcode/preseq/"
5601 "releases/download/v" version
5602 "/preseq_v" version ".tar.bz2"))
5603 (sha256
5604 (base32 "149x9xmk1wy1gff85325yfzqc0qk4sgp1w6gbyj9cnji4x1dszbl"))
5605 (modules '((guix build utils)))
5606 (snippet '(begin
5607 ;; Remove bundled samtools.
5608 (delete-file-recursively "samtools")
5609 #t))))
5610 (build-system gnu-build-system)
5611 (arguments
5612 `(#:tests? #f ;no "check" target
5613 #:phases
5614 (modify-phases %standard-phases
5615 (delete 'configure))
5616 #:make-flags
5617 (list (string-append "PREFIX="
5618 (assoc-ref %outputs "out"))
5619 (string-append "LIBBAM="
5620 (assoc-ref %build-inputs "samtools")
5621 "/lib/libbam.a")
5622 (string-append "SMITHLAB_CPP="
5623 (assoc-ref %build-inputs "smithlab-cpp")
5624 "/lib")
5625 "PROGS=preseq"
5626 "INCLUDEDIRS=$(SMITHLAB_CPP)/../include/smithlab-cpp $(SAMTOOLS_DIR)")))
5627 (inputs
5628 `(("gsl" ,gsl)
5629 ("samtools" ,samtools-0.1)
5630 ("smithlab-cpp" ,smithlab-cpp)
5631 ("zlib" ,zlib)))
5632 (home-page "http://smithlabresearch.org/software/preseq/")
5633 (synopsis "Program for analyzing library complexity")
5634 (description
5635 "The preseq package is aimed at predicting and estimating the complexity
5636 of a genomic sequencing library, equivalent to predicting and estimating the
5637 number of redundant reads from a given sequencing depth and how many will be
5638 expected from additional sequencing using an initial sequencing experiment.
5639 The estimates can then be used to examine the utility of further sequencing,
5640 optimize the sequencing depth, or to screen multiple libraries to avoid low
5641 complexity samples.")
5642 (license license:gpl3+)))
5643
5644 (define-public python-screed
5645 (package
5646 (name "python-screed")
5647 (version "1.0")
5648 (source
5649 (origin
5650 (method url-fetch)
5651 (uri (pypi-uri "screed" version))
5652 (sha256
5653 (base32
5654 "148vcb7w2wr6a4w6vs2bsxanbqibxfk490zbcbg4m61s8669zdjx"))))
5655 (build-system python-build-system)
5656 (arguments
5657 '(#:phases
5658 (modify-phases %standard-phases
5659 ;; Tests must be run after installation, as the "screed" command does
5660 ;; not exist right after building.
5661 (delete 'check)
5662 (add-after 'install 'check
5663 (lambda* (#:key inputs outputs #:allow-other-keys)
5664 (let ((out (assoc-ref outputs "out")))
5665 (setenv "PYTHONPATH"
5666 (string-append out "/lib/python"
5667 (string-take (string-take-right
5668 (assoc-ref inputs "python")
5669 5) 3)
5670 "/site-packages:"
5671 (getenv "PYTHONPATH")))
5672 (setenv "PATH" (string-append out "/bin:" (getenv "PATH"))))
5673 (invoke "python" "setup.py" "test")
5674 #t)))))
5675 (native-inputs
5676 `(("python-pytest" ,python-pytest)
5677 ("python-pytest-cov" ,python-pytest-cov)
5678 ("python-pytest-runner" ,python-pytest-runner)))
5679 (inputs
5680 `(("python-bz2file" ,python-bz2file)))
5681 (home-page "https://github.com/dib-lab/screed/")
5682 (synopsis "Short read sequence database utilities")
5683 (description "Screed parses FASTA and FASTQ files and generates databases.
5684 Values such as sequence name, sequence description, sequence quality and the
5685 sequence itself can be retrieved from these databases.")
5686 (license license:bsd-3)))
5687
5688 (define-public python2-screed
5689 (package-with-python2 python-screed))
5690
5691 (define-public sra-tools
5692 (package
5693 (name "sra-tools")
5694 (version "2.9.3")
5695 (source
5696 (origin
5697 (method git-fetch)
5698 (uri (git-reference
5699 (url "https://github.com/ncbi/sra-tools.git")
5700 (commit version)))
5701 (file-name (git-file-name name version))
5702 (sha256
5703 (base32
5704 "0663gcdxkziwsmlznjxysb00621rllpbz6jwsfifq7z3dj3lwm8b"))))
5705 (build-system gnu-build-system)
5706 (arguments
5707 `(#:parallel-build? #f ; not supported
5708 #:tests? #f ; no "check" target
5709 #:make-flags
5710 (list (string-append "DEFAULT_CRT="
5711 (assoc-ref %build-inputs "ncbi-vdb")
5712 "/kfg/certs.kfg")
5713 (string-append "DEFAULT_KFG="
5714 (assoc-ref %build-inputs "ncbi-vdb")
5715 "/kfg/default.kfg")
5716 (string-append "VDB_LIBDIR="
5717 (assoc-ref %build-inputs "ncbi-vdb")
5718 ,(if (string-prefix? "x86_64"
5719 (or (%current-target-system)
5720 (%current-system)))
5721 "/lib64"
5722 "/lib32")))
5723 #:phases
5724 (modify-phases %standard-phases
5725 (add-before 'configure 'set-perl-search-path
5726 (lambda _
5727 ;; Work around "dotless @INC" build failure.
5728 (setenv "PERL5LIB"
5729 (string-append (getcwd) "/setup:"
5730 (getenv "PERL5LIB")))
5731 #t))
5732 (replace 'configure
5733 (lambda* (#:key inputs outputs #:allow-other-keys)
5734 ;; The build system expects a directory containing the sources and
5735 ;; raw build output of ncbi-vdb, including files that are not
5736 ;; installed. Since we are building against an installed version of
5737 ;; ncbi-vdb, the following modifications are needed.
5738 (substitute* "setup/konfigure.perl"
5739 ;; Make the configure script look for the "ilib" directory of
5740 ;; "ncbi-vdb" without first checking for the existence of a
5741 ;; matching library in its "lib" directory.
5742 (("^ my \\$f = File::Spec->catdir\\(\\$libdir, \\$lib\\);")
5743 "my $f = File::Spec->catdir($ilibdir, $ilib);")
5744 ;; Look for interface libraries in ncbi-vdb's "ilib" directory.
5745 (("my \\$ilibdir = File::Spec->catdir\\(\\$builddir, 'ilib'\\);")
5746 "my $ilibdir = File::Spec->catdir($dir, 'ilib');"))
5747
5748 ;; Dynamic linking
5749 (substitute* "tools/copycat/Makefile"
5750 (("smagic-static") "lmagic"))
5751
5752 ;; The 'configure' script doesn't recognize things like
5753 ;; '--enable-fast-install'.
5754 (invoke "./configure"
5755 (string-append "--build-prefix=" (getcwd) "/build")
5756 (string-append "--prefix=" (assoc-ref outputs "out"))
5757 (string-append "--debug")
5758 (string-append "--with-fuse-prefix="
5759 (assoc-ref inputs "fuse"))
5760 (string-append "--with-magic-prefix="
5761 (assoc-ref inputs "libmagic"))
5762 ;; TODO: building with libxml2 fails with linker errors
5763 ;; (string-append "--with-xml2-prefix="
5764 ;; (assoc-ref inputs "libxml2"))
5765 (string-append "--with-ncbi-vdb-sources="
5766 (assoc-ref inputs "ncbi-vdb"))
5767 (string-append "--with-ncbi-vdb-build="
5768 (assoc-ref inputs "ncbi-vdb"))
5769 (string-append "--with-ngs-sdk-prefix="
5770 (assoc-ref inputs "ngs-sdk"))
5771 (string-append "--with-hdf5-prefix="
5772 (assoc-ref inputs "hdf5")))
5773 #t)))))
5774 (native-inputs `(("perl" ,perl)))
5775 (inputs
5776 `(("ngs-sdk" ,ngs-sdk)
5777 ("ncbi-vdb" ,ncbi-vdb)
5778 ("libmagic" ,file)
5779 ("fuse" ,fuse)
5780 ("hdf5" ,hdf5)
5781 ("zlib" ,zlib)))
5782 (home-page "http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software")
5783 (synopsis "Tools and libraries for reading and writing sequencing data")
5784 (description
5785 "The SRA Toolkit from NCBI is a collection of tools and libraries for
5786 reading of sequencing files from the Sequence Read Archive (SRA) database and
5787 writing files into the .sra format.")
5788 (license license:public-domain)))
5789
5790 (define-public seqan
5791 (package
5792 (name "seqan")
5793 (version "2.4.0")
5794 (source (origin
5795 (method url-fetch)
5796 (uri (string-append "https://github.com/seqan/seqan/releases/"
5797 "download/seqan-v" version
5798 "/seqan-library-" version ".tar.xz"))
5799 (sha256
5800 (base32
5801 "19a1rlxx03qy1i1iriicly68w64yjxbv24g9gdywnfmq998v35yx"))))
5802 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
5803 ;; makes sense to split the outputs.
5804 (outputs '("out" "doc"))
5805 (build-system trivial-build-system)
5806 (arguments
5807 `(#:modules ((guix build utils))
5808 #:builder
5809 (begin
5810 (use-modules (guix build utils))
5811 (let ((tar (assoc-ref %build-inputs "tar"))
5812 (xz (assoc-ref %build-inputs "xz"))
5813 (out (assoc-ref %outputs "out"))
5814 (doc (assoc-ref %outputs "doc")))
5815 (setenv "PATH" (string-append tar "/bin:" xz "/bin"))
5816 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
5817 (chdir (string-append "seqan-library-" ,version))
5818 (copy-recursively "include" (string-append out "/include"))
5819 (copy-recursively "share" (string-append doc "/share"))
5820 #t))))
5821 (native-inputs
5822 `(("source" ,source)
5823 ("tar" ,tar)
5824 ("xz" ,xz)))
5825 (home-page "http://www.seqan.de")
5826 (synopsis "Library for nucleotide sequence analysis")
5827 (description
5828 "SeqAn is a C++ library of efficient algorithms and data structures for
5829 the analysis of sequences with the focus on biological data. It contains
5830 algorithms and data structures for string representation and their
5831 manipulation, online and indexed string search, efficient I/O of
5832 bioinformatics file formats, sequence alignment, and more.")
5833 (license license:bsd-3)))
5834
5835 (define-public seqan-1
5836 (package (inherit seqan)
5837 (name "seqan")
5838 (version "1.4.2")
5839 (source (origin
5840 (method url-fetch)
5841 (uri (string-append "http://packages.seqan.de/seqan-library/"
5842 "seqan-library-" version ".tar.bz2"))
5843 (sha256
5844 (base32
5845 "05s3wrrwn50f81aklfm65i4a749zag1vr8z03k21xm0pdxy47yvp"))))
5846 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
5847 ;; makes sense to split the outputs.
5848 (outputs '("out" "doc"))
5849 (build-system trivial-build-system)
5850 (arguments
5851 `(#:modules ((guix build utils))
5852 #:builder
5853 (begin
5854 (use-modules (guix build utils))
5855 (let ((tar (assoc-ref %build-inputs "tar"))
5856 (bzip (assoc-ref %build-inputs "bzip2"))
5857 (out (assoc-ref %outputs "out"))
5858 (doc (assoc-ref %outputs "doc")))
5859 (setenv "PATH" (string-append tar "/bin:" bzip "/bin"))
5860 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
5861 (chdir (string-append "seqan-library-" ,version))
5862 (copy-recursively "include" (string-append out "/include"))
5863 (copy-recursively "share" (string-append doc "/share"))
5864 #t))))
5865 (native-inputs
5866 `(("source" ,source)
5867 ("tar" ,tar)
5868 ("bzip2" ,bzip2)))))
5869
5870 (define-public seqmagick
5871 (package
5872 (name "seqmagick")
5873 (version "0.7.0")
5874 (source
5875 (origin
5876 (method url-fetch)
5877 (uri (pypi-uri "seqmagick" version))
5878 (sha256
5879 (base32
5880 "12bfyp8nqi0hd36rmj450aygafp01qy3hkbvlwn3bk39pyjjkgg5"))))
5881 (build-system python-build-system)
5882 (inputs
5883 `(("python-biopython" ,python-biopython)))
5884 (native-inputs
5885 `(("python-nose" ,python-nose)))
5886 (home-page "https://github.com/fhcrc/seqmagick")
5887 (synopsis "Tools for converting and modifying sequence files")
5888 (description
5889 "Bioinformaticians often have to convert sequence files between formats
5890 and do little manipulations on them, and it's not worth writing scripts for
5891 that. Seqmagick is a utility to expose the file format conversion in
5892 BioPython in a convenient way. Instead of having a big mess of scripts, there
5893 is one that takes arguments.")
5894 (license license:gpl3)))
5895
5896 (define-public seqtk
5897 (package
5898 (name "seqtk")
5899 (version "1.3")
5900 (source (origin
5901 (method git-fetch)
5902 (uri (git-reference
5903 (url "https://github.com/lh3/seqtk.git")
5904 (commit (string-append "v" version))))
5905 (file-name (git-file-name name version))
5906 (sha256
5907 (base32
5908 "1bfzlqa84b5s1qi22blmmw2s8xdyp9h9ydcq22pfjhh5gab3yz6l"))))
5909 (build-system gnu-build-system)
5910 (arguments
5911 `(#:phases
5912 (modify-phases %standard-phases
5913 (delete 'configure)
5914 (replace 'check
5915 ;; There are no tests, so we just run a sanity check.
5916 (lambda _ (invoke "./seqtk" "seq") #t))
5917 (replace 'install
5918 (lambda* (#:key outputs #:allow-other-keys)
5919 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5920 (install-file "seqtk" bin)
5921 #t))))))
5922 (inputs
5923 `(("zlib" ,zlib)))
5924 (home-page "https://github.com/lh3/seqtk")
5925 (synopsis "Toolkit for processing biological sequences in FASTA/Q format")
5926 (description
5927 "Seqtk is a fast and lightweight tool for processing sequences in the
5928 FASTA or FASTQ format. It parses both FASTA and FASTQ files which can be
5929 optionally compressed by gzip.")
5930 (license license:expat)))
5931
5932 (define-public snap-aligner
5933 (package
5934 (name "snap-aligner")
5935 (version "1.0beta.18")
5936 (source (origin
5937 (method git-fetch)
5938 (uri (git-reference
5939 (url "https://github.com/amplab/snap.git")
5940 (commit (string-append "v" version))))
5941 (file-name (git-file-name name version))
5942 (sha256
5943 (base32
5944 "01w3qq4wm07z73vky0cfwlmrbf50n3w722cxrlzxfi99mnb808d8"))))
5945 (build-system gnu-build-system)
5946 (arguments
5947 '(#:phases
5948 (modify-phases %standard-phases
5949 (delete 'configure)
5950 (replace 'check (lambda _ (invoke "./unit_tests") #t))
5951 (replace 'install
5952 (lambda* (#:key outputs #:allow-other-keys)
5953 (let* ((out (assoc-ref outputs "out"))
5954 (bin (string-append out "/bin")))
5955 (install-file "snap-aligner" bin)
5956 (install-file "SNAPCommand" bin)
5957 #t))))))
5958 (native-inputs
5959 `(("zlib" ,zlib)))
5960 (home-page "http://snap.cs.berkeley.edu/")
5961 (synopsis "Short read DNA sequence aligner")
5962 (description
5963 "SNAP is a fast and accurate aligner for short DNA reads. It is
5964 optimized for modern read lengths of 100 bases or higher, and takes advantage
5965 of these reads to align data quickly through a hash-based indexing scheme.")
5966 ;; 32-bit systems are not supported by the unpatched code.
5967 ;; Following the bug reports https://github.com/amplab/snap/issues/68 and
5968 ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812378 we see that
5969 ;; systems without a lot of memory cannot make good use of this program.
5970 (supported-systems '("x86_64-linux"))
5971 (license license:asl2.0)))
5972
5973 (define-public sortmerna
5974 (package
5975 (name "sortmerna")
5976 (version "2.1b")
5977 (source
5978 (origin
5979 (method git-fetch)
5980 (uri (git-reference
5981 (url "https://github.com/biocore/sortmerna.git")
5982 (commit version)))
5983 (file-name (git-file-name name version))
5984 (sha256
5985 (base32
5986 "0j3mbz4n25738yijmjbr5r4fyvkgm8v5vn3sshyfvmyqf5q9byqf"))))
5987 (build-system gnu-build-system)
5988 (outputs '("out" ;for binaries
5989 "db")) ;for sequence databases
5990 (arguments
5991 `(#:phases
5992 (modify-phases %standard-phases
5993 (replace 'install
5994 (lambda* (#:key outputs #:allow-other-keys)
5995 (let* ((out (assoc-ref outputs "out"))
5996 (bin (string-append out "/bin"))
5997 (db (assoc-ref outputs "db"))
5998 (share
5999 (string-append db "/share/sortmerna/rRNA_databases")))
6000 (install-file "sortmerna" bin)
6001 (install-file "indexdb_rna" bin)
6002 (for-each (lambda (file)
6003 (install-file file share))
6004 (find-files "rRNA_databases" ".*fasta"))
6005 #t))))))
6006 (inputs
6007 `(("zlib" ,zlib)))
6008 (home-page "http://bioinfo.lifl.fr/RNA/sortmerna")
6009 (synopsis "Biological sequence analysis tool for NGS reads")
6010 (description
6011 "SortMeRNA is a biological sequence analysis tool for filtering, mapping
6012 and operational taxonomic unit (OTU) picking of next generation
6013 sequencing (NGS) reads. The core algorithm is based on approximate seeds and
6014 allows for fast and sensitive analyses of nucleotide sequences. The main
6015 application of SortMeRNA is filtering rRNA from metatranscriptomic data.")
6016 ;; The source includes x86 specific code
6017 (supported-systems '("x86_64-linux" "i686-linux"))
6018 (license license:lgpl3)))
6019
6020 (define-public star
6021 (package
6022 (name "star")
6023 (version "2.7.0b")
6024 (source (origin
6025 (method git-fetch)
6026 (uri (git-reference
6027 (url "https://github.com/alexdobin/STAR.git")
6028 (commit version)))
6029 (file-name (string-append name "-" version "-checkout"))
6030 (sha256
6031 (base32
6032 "1lih6cbpvnvhyvvswdhy06mwyzvwax96m723378v4z6psqzsh11d"))
6033 (modules '((guix build utils)))
6034 (snippet
6035 '(begin
6036 (substitute* "source/Makefile"
6037 (("/bin/rm") "rm"))
6038 ;; Remove pre-built binaries and bundled htslib sources.
6039 (delete-file-recursively "bin/MacOSX_x86_64")
6040 (delete-file-recursively "bin/Linux_x86_64")
6041 (delete-file-recursively "bin/Linux_x86_64_static")
6042 (delete-file-recursively "source/htslib")
6043 #t))))
6044 (build-system gnu-build-system)
6045 (arguments
6046 '(#:tests? #f ;no check target
6047 #:make-flags '("STAR")
6048 #:phases
6049 (modify-phases %standard-phases
6050 (add-after 'unpack 'enter-source-dir
6051 (lambda _ (chdir "source") #t))
6052 (add-after 'enter-source-dir 'make-reproducible
6053 (lambda _
6054 (substitute* "Makefile"
6055 (("(COMPILATION_TIME_PLACE=\")(.*)(\")" _ pre mid post)
6056 (string-append pre "Built with Guix" post)))
6057 #t))
6058 ;; See https://github.com/alexdobin/STAR/pull/562
6059 (add-after 'enter-source-dir 'add-missing-header
6060 (lambda _
6061 (substitute* "SoloReadFeature_inputRecords.cpp"
6062 (("#include \"binarySearch2.h\"" h)
6063 (string-append h "\n#include <math.h>")))
6064 #t))
6065 (add-after 'enter-source-dir 'do-not-use-bundled-htslib
6066 (lambda _
6067 (substitute* "Makefile"
6068 (("(Depend.list: \\$\\(SOURCES\\) parametersDefault\\.xxd) htslib"
6069 _ prefix) prefix))
6070 (substitute* '("BAMfunctions.cpp"
6071 "signalFromBAM.h"
6072 "bam_cat.h"
6073 "bam_cat.c"
6074 "STAR.cpp"
6075 "bamRemoveDuplicates.cpp")
6076 (("#include \"htslib/([^\"]+\\.h)\"" _ header)
6077 (string-append "#include <" header ">")))
6078 (substitute* "IncludeDefine.h"
6079 (("\"htslib/(htslib/[^\"]+.h)\"" _ header)
6080 (string-append "<" header ">")))
6081 #t))
6082 (replace 'install
6083 (lambda* (#:key outputs #:allow-other-keys)
6084 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6085 (install-file "STAR" bin))
6086 #t))
6087 (delete 'configure))))
6088 (native-inputs
6089 `(("xxd" ,xxd)))
6090 (inputs
6091 `(("htslib" ,htslib)
6092 ("zlib" ,zlib)))
6093 (home-page "https://github.com/alexdobin/STAR")
6094 (synopsis "Universal RNA-seq aligner")
6095 (description
6096 "The Spliced Transcripts Alignment to a Reference (STAR) software is
6097 based on a previously undescribed RNA-seq alignment algorithm that uses
6098 sequential maximum mappable seed search in uncompressed suffix arrays followed
6099 by seed clustering and stitching procedure. In addition to unbiased de novo
6100 detection of canonical junctions, STAR can discover non-canonical splices and
6101 chimeric (fusion) transcripts, and is also capable of mapping full-length RNA
6102 sequences.")
6103 ;; Only 64-bit systems are supported according to the README.
6104 (supported-systems '("x86_64-linux" "mips64el-linux"))
6105 ;; STAR is licensed under GPLv3 or later; htslib is MIT-licensed.
6106 (license license:gpl3+)))
6107
6108 (define-public subread
6109 (package
6110 (name "subread")
6111 (version "1.6.0")
6112 (source (origin
6113 (method url-fetch)
6114 (uri (string-append "mirror://sourceforge/subread/subread-"
6115 version "/subread-" version "-source.tar.gz"))
6116 (sha256
6117 (base32
6118 "0ah0n4jx6ksk2m2j7xk385x2qzmk1y4rfc6a4mfrdqrlq721w99i"))))
6119 (build-system gnu-build-system)
6120 (arguments
6121 `(#:tests? #f ;no "check" target
6122 ;; The CC and CCFLAGS variables are set to contain a lot of x86_64
6123 ;; optimizations by default, so we override these flags such that x86_64
6124 ;; flags are only added when the build target is an x86_64 system.
6125 #:make-flags
6126 (list (let ((system ,(or (%current-target-system)
6127 (%current-system)))
6128 (flags '("-ggdb" "-fomit-frame-pointer"
6129 "-ffast-math" "-funroll-loops"
6130 "-fmessage-length=0"
6131 "-O9" "-Wall" "-DMAKE_FOR_EXON"
6132 "-DMAKE_STANDALONE"
6133 "-DSUBREAD_VERSION=\\\"${SUBREAD_VERSION}\\\""))
6134 (flags64 '("-mmmx" "-msse" "-msse2" "-msse3")))
6135 (if (string-prefix? "x86_64" system)
6136 (string-append "CCFLAGS=" (string-join (append flags flags64)))
6137 (string-append "CCFLAGS=" (string-join flags))))
6138 "-f" "Makefile.Linux"
6139 "CC=gcc ${CCFLAGS}")
6140 #:phases
6141 (modify-phases %standard-phases
6142 (add-after 'unpack 'enter-dir
6143 (lambda _ (chdir "src") #t))
6144 (replace 'install
6145 (lambda* (#:key outputs #:allow-other-keys)
6146 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6147 (mkdir-p bin)
6148 (copy-recursively "../bin" bin))
6149 #t))
6150 ;; no "configure" script
6151 (delete 'configure))))
6152 (inputs `(("zlib" ,zlib)))
6153 (home-page "http://bioinf.wehi.edu.au/subread-package/")
6154 (synopsis "Tool kit for processing next-gen sequencing data")
6155 (description
6156 "The subread package contains the following tools: subread aligner, a
6157 general-purpose read aligner; subjunc aligner: detecting exon-exon junctions
6158 and mapping RNA-seq reads; featureCounts: counting mapped reads for genomic
6159 features; exactSNP: a SNP caller that discovers SNPs by testing signals
6160 against local background noises.")
6161 (license license:gpl3+)))
6162
6163 (define-public stringtie
6164 (package
6165 (name "stringtie")
6166 (version "1.2.1")
6167 (source (origin
6168 (method url-fetch)
6169 (uri (string-append "http://ccb.jhu.edu/software/stringtie/dl/"
6170 "stringtie-" version ".tar.gz"))
6171 (sha256
6172 (base32
6173 "1cqllsc1maq4kh92isi8yadgzbmnf042hlnalpk3y59aph1z3bfz"))
6174 (modules '((guix build utils)))
6175 (snippet
6176 '(begin
6177 (delete-file-recursively "samtools-0.1.18")
6178 #t))))
6179 (build-system gnu-build-system)
6180 (arguments
6181 `(#:tests? #f ;no test suite
6182 #:phases
6183 (modify-phases %standard-phases
6184 ;; no configure script
6185 (delete 'configure)
6186 (add-before 'build 'use-system-samtools
6187 (lambda _
6188 (substitute* "Makefile"
6189 (("stringtie: \\$\\{BAM\\}/libbam\\.a")
6190 "stringtie: "))
6191 (substitute* '("gclib/GBam.h"
6192 "gclib/GBam.cpp")
6193 (("#include \"(bam|sam|kstring).h\"" _ header)
6194 (string-append "#include <samtools/" header ".h>")))
6195 #t))
6196 (add-after 'unpack 'remove-duplicate-typedef
6197 (lambda _
6198 ;; This typedef conflicts with the typedef in
6199 ;; glibc-2.25/include/bits/types.h
6200 (substitute* "gclib/GThreads.h"
6201 (("typedef long long __intmax_t;") ""))
6202 #t))
6203 (replace 'install
6204 (lambda* (#:key outputs #:allow-other-keys)
6205 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6206 (install-file "stringtie" bin)
6207 #t))))))
6208 (inputs
6209 `(("samtools" ,samtools-0.1)
6210 ("zlib" ,zlib)))
6211 (home-page "http://ccb.jhu.edu/software/stringtie/")
6212 (synopsis "Transcript assembly and quantification for RNA-Seq data")
6213 (description
6214 "StringTie is a fast and efficient assembler of RNA-Seq sequence
6215 alignments into potential transcripts. It uses a novel network flow algorithm
6216 as well as an optional de novo assembly step to assemble and quantitate
6217 full-length transcripts representing multiple splice variants for each gene
6218 locus. Its input can include not only the alignments of raw reads used by
6219 other transcript assemblers, but also alignments of longer sequences that have
6220 been assembled from those reads. To identify differentially expressed genes
6221 between experiments, StringTie's output can be processed either by the
6222 Cuffdiff or Ballgown programs.")
6223 (license license:artistic2.0)))
6224
6225 (define-public taxtastic
6226 (package
6227 (name "taxtastic")
6228 (version "0.8.5")
6229 (source (origin
6230 (method url-fetch)
6231 (uri (pypi-uri "taxtastic" version))
6232 (sha256
6233 (base32
6234 "03pysw79lsrvz4lwzis88j15067ffqbi4cid5pqhrlxmd6bh8rrk"))))
6235 (build-system python-build-system)
6236 (arguments
6237 `(#:python ,python-2
6238 #:phases
6239 (modify-phases %standard-phases
6240 (replace 'check
6241 (lambda _ (invoke "python" "-m" "unittest" "discover" "-v") #t)))))
6242 (propagated-inputs
6243 `(("python-sqlalchemy" ,python2-sqlalchemy)
6244 ("python-decorator" ,python2-decorator)
6245 ("python-biopython" ,python2-biopython)
6246 ("python-pandas" ,python2-pandas)
6247 ("python-psycopg2" ,python2-psycopg2)
6248 ("python-fastalite" ,python2-fastalite)
6249 ("python-pyyaml" ,python2-pyyaml)
6250 ("python-six" ,python2-six)
6251 ("python-jinja2" ,python2-jinja2)
6252 ("python-dendropy" ,python2-dendropy)))
6253 (home-page "https://github.com/fhcrc/taxtastic")
6254 (synopsis "Tools for taxonomic naming and annotation")
6255 (description
6256 "Taxtastic is software written in python used to build and maintain
6257 reference packages i.e. collections of reference trees, reference alignments,
6258 profiles, and associated taxonomic information.")
6259 (license license:gpl3+)))
6260
6261 (define-public vcftools
6262 (package
6263 (name "vcftools")
6264 (version "0.1.15")
6265 (source (origin
6266 (method url-fetch)
6267 (uri (string-append
6268 "https://github.com/vcftools/vcftools/releases/download/v"
6269 version "/vcftools-" version ".tar.gz"))
6270 (sha256
6271 (base32
6272 "1qw30c45wihgy632rbz4rh3njnwj4msj46l1rsgdhyg6bgypmr1i"))))
6273 (build-system gnu-build-system)
6274 (arguments
6275 `(#:tests? #f ; no "check" target
6276 #:make-flags (list
6277 "CFLAGS=-O2" ; override "-m64" flag
6278 (string-append "PREFIX=" (assoc-ref %outputs "out"))
6279 (string-append "MANDIR=" (assoc-ref %outputs "out")
6280 "/share/man/man1"))))
6281 (native-inputs
6282 `(("pkg-config" ,pkg-config)))
6283 (inputs
6284 `(("perl" ,perl)
6285 ("zlib" ,zlib)))
6286 (home-page "https://vcftools.github.io/")
6287 (synopsis "Tools for working with VCF files")
6288 (description
6289 "VCFtools is a program package designed for working with VCF files, such
6290 as those generated by the 1000 Genomes Project. The aim of VCFtools is to
6291 provide easily accessible methods for working with complex genetic variation
6292 data in the form of VCF files.")
6293 ;; The license is declared as LGPLv3 in the README and
6294 ;; at https://vcftools.github.io/license.html
6295 (license license:lgpl3)))
6296
6297 (define-public infernal
6298 (package
6299 (name "infernal")
6300 (version "1.1.2")
6301 (source (origin
6302 (method url-fetch)
6303 (uri (string-append "http://eddylab.org/software/infernal/"
6304 "infernal-" version ".tar.gz"))
6305 (sha256
6306 (base32
6307 "0sr2hiz3qxfwqpz3whxr6n82p3x27336v3f34iqznp10hks2935c"))))
6308 (build-system gnu-build-system)
6309 (native-inputs
6310 `(("perl" ,perl))) ; for tests
6311 (home-page "http://eddylab.org/infernal/")
6312 (synopsis "Inference of RNA alignments")
6313 (description "Infernal (\"INFERence of RNA ALignment\") is a tool for
6314 searching DNA sequence databases for RNA structure and sequence similarities.
6315 It is an implementation of a special case of profile stochastic context-free
6316 grammars called @dfn{covariance models} (CMs). A CM is like a sequence
6317 profile, but it scores a combination of sequence consensus and RNA secondary
6318 structure consensus, so in many cases, it is more capable of identifying RNA
6319 homologs that conserve their secondary structure more than their primary
6320 sequence.")
6321 ;; Infernal 1.1.2 requires VMX or SSE capability for parallel instructions.
6322 (supported-systems '("i686-linux" "x86_64-linux"))
6323 (license license:bsd-3)))
6324
6325 (define-public r-centipede
6326 (package
6327 (name "r-centipede")
6328 (version "1.2")
6329 (source (origin
6330 (method url-fetch)
6331 (uri (string-append "http://download.r-forge.r-project.org/"
6332 "src/contrib/CENTIPEDE_" version ".tar.gz"))
6333 (sha256
6334 (base32
6335 "1hsx6qgwr0i67fhy9257zj7s0ppncph2hjgbia5nn6nfmj0ax6l9"))))
6336 (build-system r-build-system)
6337 (home-page "http://centipede.uchicago.edu/")
6338 (synopsis "Predict transcription factor binding sites")
6339 (description
6340 "CENTIPEDE applies a hierarchical Bayesian mixture model to infer regions
6341 of the genome that are bound by particular transcription factors. It starts
6342 by identifying a set of candidate binding sites, and then aims to classify the
6343 sites according to whether each site is bound or not bound by a transcription
6344 factor. CENTIPEDE is an unsupervised learning algorithm that discriminates
6345 between two different types of motif instances using as much relevant
6346 information as possible.")
6347 (license (list license:gpl2+ license:gpl3+))))
6348
6349 (define-public r-copynumber
6350 (package
6351 (name "r-copynumber")
6352 (version "1.22.0")
6353 (source (origin
6354 (method url-fetch)
6355 (uri (bioconductor-uri "copynumber" version))
6356 (sha256
6357 (base32
6358 "0ipwj9i5p1bwhg5d80jdjagm02krpj2v0j47qdgw41h8wncdyal3"))))
6359 (build-system r-build-system)
6360 (propagated-inputs
6361 `(("r-s4vectors" ,r-s4vectors)
6362 ("r-iranges" ,r-iranges)
6363 ("r-genomicranges" ,r-genomicranges)
6364 ("r-biocgenerics" ,r-biocgenerics)))
6365 (home-page "https://bioconductor.org/packages/copynumber")
6366 (synopsis "Segmentation of single- and multi-track copy number data")
6367 (description
6368 "This package segments single- and multi-track copy number data by a
6369 penalized least squares regression method.")
6370 (license license:artistic2.0)))
6371
6372 (define-public r-geneplotter
6373 (package
6374 (name "r-geneplotter")
6375 (version "1.60.0")
6376 (source
6377 (origin
6378 (method url-fetch)
6379 (uri (bioconductor-uri "geneplotter" version))
6380 (sha256
6381 (base32
6382 "10khr0pznxf3m0f5gzck9ymljrwcv3vamfmpskd51yjh36lhllqz"))))
6383 (build-system r-build-system)
6384 (propagated-inputs
6385 `(("r-annotate" ,r-annotate)
6386 ("r-annotationdbi" ,r-annotationdbi)
6387 ("r-biobase" ,r-biobase)
6388 ("r-biocgenerics" ,r-biocgenerics)
6389 ("r-lattice" ,r-lattice)
6390 ("r-rcolorbrewer" ,r-rcolorbrewer)))
6391 (home-page "https://bioconductor.org/packages/geneplotter")
6392 (synopsis "Graphics functions for genomic data")
6393 (description
6394 "This package provides functions for plotting genomic data.")
6395 (license license:artistic2.0)))
6396
6397 (define-public r-genefilter
6398 (package
6399 (name "r-genefilter")
6400 (version "1.64.0")
6401 (source
6402 (origin
6403 (method url-fetch)
6404 (uri (bioconductor-uri "genefilter" version))
6405 (sha256
6406 (base32
6407 "0p64s1n1627yafnp25wjr4b22p34lqw574fx2qg4s1m0lffh1z6i"))))
6408 (build-system r-build-system)
6409 (native-inputs
6410 `(("gfortran" ,gfortran)))
6411 (propagated-inputs
6412 `(("r-annotate" ,r-annotate)
6413 ("r-annotationdbi" ,r-annotationdbi)
6414 ("r-biobase" ,r-biobase)
6415 ("r-s4vectors" ,r-s4vectors)
6416 ("r-survival" ,r-survival)))
6417 (home-page "https://bioconductor.org/packages/genefilter")
6418 (synopsis "Filter genes from high-throughput experiments")
6419 (description
6420 "This package provides basic functions for filtering genes from
6421 high-throughput sequencing experiments.")
6422 (license license:artistic2.0)))
6423
6424 (define-public r-deseq2
6425 (package
6426 (name "r-deseq2")
6427 (version "1.22.2")
6428 (source
6429 (origin
6430 (method url-fetch)
6431 (uri (bioconductor-uri "DESeq2" version))
6432 (sha256
6433 (base32
6434 "0n5ah84mxn87p45drzy0wh2yknmzj1q5i6gv0v9vgg1lj7awb91r"))))
6435 (properties `((upstream-name . "DESeq2")))
6436 (build-system r-build-system)
6437 (propagated-inputs
6438 `(("r-biobase" ,r-biobase)
6439 ("r-biocgenerics" ,r-biocgenerics)
6440 ("r-biocparallel" ,r-biocparallel)
6441 ("r-genefilter" ,r-genefilter)
6442 ("r-geneplotter" ,r-geneplotter)
6443 ("r-genomicranges" ,r-genomicranges)
6444 ("r-ggplot2" ,r-ggplot2)
6445 ("r-hmisc" ,r-hmisc)
6446 ("r-iranges" ,r-iranges)
6447 ("r-locfit" ,r-locfit)
6448 ("r-rcpp" ,r-rcpp)
6449 ("r-rcpparmadillo" ,r-rcpparmadillo)
6450 ("r-s4vectors" ,r-s4vectors)
6451 ("r-summarizedexperiment" ,r-summarizedexperiment)))
6452 (home-page "https://bioconductor.org/packages/DESeq2")
6453 (synopsis "Differential gene expression analysis")
6454 (description
6455 "This package provides functions to estimate variance-mean dependence in
6456 count data from high-throughput nucleotide sequencing assays and test for
6457 differential expression based on a model using the negative binomial
6458 distribution.")
6459 (license license:lgpl3+)))
6460
6461 (define-public r-dexseq
6462 (package
6463 (name "r-dexseq")
6464 (version "1.28.1")
6465 (source
6466 (origin
6467 (method url-fetch)
6468 (uri (bioconductor-uri "DEXSeq" version))
6469 (sha256
6470 (base32
6471 "0g5w9bn2nb3m670hkcsnhfvvkza2318z9irlhhwhb3n8rdzlsdym"))))
6472 (properties `((upstream-name . "DEXSeq")))
6473 (build-system r-build-system)
6474 (propagated-inputs
6475 `(("r-annotationdbi" ,r-annotationdbi)
6476 ("r-biobase" ,r-biobase)
6477 ("r-biocgenerics" ,r-biocgenerics)
6478 ("r-biocparallel" ,r-biocparallel)
6479 ("r-biomart" ,r-biomart)
6480 ("r-deseq2" ,r-deseq2)
6481 ("r-genefilter" ,r-genefilter)
6482 ("r-geneplotter" ,r-geneplotter)
6483 ("r-genomicranges" ,r-genomicranges)
6484 ("r-hwriter" ,r-hwriter)
6485 ("r-iranges" ,r-iranges)
6486 ("r-rcolorbrewer" ,r-rcolorbrewer)
6487 ("r-rsamtools" ,r-rsamtools)
6488 ("r-s4vectors" ,r-s4vectors)
6489 ("r-statmod" ,r-statmod)
6490 ("r-stringr" ,r-stringr)
6491 ("r-summarizedexperiment" ,r-summarizedexperiment)))
6492 (home-page "https://bioconductor.org/packages/DEXSeq")
6493 (synopsis "Inference of differential exon usage in RNA-Seq")
6494 (description
6495 "This package is focused on finding differential exon usage using RNA-seq
6496 exon counts between samples with different experimental designs. It provides
6497 functions that allows the user to make the necessary statistical tests based
6498 on a model that uses the negative binomial distribution to estimate the
6499 variance between biological replicates and generalized linear models for
6500 testing. The package also provides functions for the visualization and
6501 exploration of the results.")
6502 (license license:gpl3+)))
6503
6504 (define-public r-annotationforge
6505 (package
6506 (name "r-annotationforge")
6507 (version "1.24.0")
6508 (source
6509 (origin
6510 (method url-fetch)
6511 (uri (bioconductor-uri "AnnotationForge" version))
6512 (sha256
6513 (base32
6514 "13yvhf3yskmvhs8szs6rkw93h81h5xqa3h19h91pp6nprhc8s3ll"))))
6515 (properties
6516 `((upstream-name . "AnnotationForge")))
6517 (build-system r-build-system)
6518 (propagated-inputs
6519 `(("r-annotationdbi" ,r-annotationdbi)
6520 ("r-biobase" ,r-biobase)
6521 ("r-biocgenerics" ,r-biocgenerics)
6522 ("r-dbi" ,r-dbi)
6523 ("r-rcurl" ,r-rcurl)
6524 ("r-rsqlite" ,r-rsqlite)
6525 ("r-s4vectors" ,r-s4vectors)
6526 ("r-xml" ,r-xml)))
6527 (home-page "https://bioconductor.org/packages/AnnotationForge")
6528 (synopsis "Code for building annotation database packages")
6529 (description
6530 "This package provides code for generating Annotation packages and their
6531 databases. Packages produced are intended to be used with AnnotationDbi.")
6532 (license license:artistic2.0)))
6533
6534 (define-public r-rbgl
6535 (package
6536 (name "r-rbgl")
6537 (version "1.58.1")
6538 (source
6539 (origin
6540 (method url-fetch)
6541 (uri (bioconductor-uri "RBGL" version))
6542 (sha256
6543 (base32
6544 "1l5x2icv9di1lr3gqfi0vjnyd9xc3l77yc42ippqd4cadj3d1pzf"))))
6545 (properties `((upstream-name . "RBGL")))
6546 (build-system r-build-system)
6547 (propagated-inputs `(("r-graph" ,r-graph)))
6548 (home-page "https://www.bioconductor.org/packages/RBGL")
6549 (synopsis "Interface to the Boost graph library")
6550 (description
6551 "This package provides a fairly extensive and comprehensive interface to
6552 the graph algorithms contained in the Boost library.")
6553 (license license:artistic2.0)))
6554
6555 (define-public r-gseabase
6556 (package
6557 (name "r-gseabase")
6558 (version "1.44.0")
6559 (source
6560 (origin
6561 (method url-fetch)
6562 (uri (bioconductor-uri "GSEABase" version))
6563 (sha256
6564 (base32
6565 "110al7x0ig8plzrprvhwc7xshi1jzpj2n8llhhg2fh6v6k0k6awr"))))
6566 (properties `((upstream-name . "GSEABase")))
6567 (build-system r-build-system)
6568 (propagated-inputs
6569 `(("r-annotate" ,r-annotate)
6570 ("r-annotationdbi" ,r-annotationdbi)
6571 ("r-biobase" ,r-biobase)
6572 ("r-biocgenerics" ,r-biocgenerics)
6573 ("r-graph" ,r-graph)
6574 ("r-xml" ,r-xml)))
6575 (home-page "https://bioconductor.org/packages/GSEABase")
6576 (synopsis "Gene set enrichment data structures and methods")
6577 (description
6578 "This package provides classes and methods to support @dfn{Gene Set
6579 Enrichment Analysis} (GSEA).")
6580 (license license:artistic2.0)))
6581
6582 (define-public r-category
6583 (package
6584 (name "r-category")
6585 (version "2.48.0")
6586 (source
6587 (origin
6588 (method url-fetch)
6589 (uri (bioconductor-uri "Category" version))
6590 (sha256
6591 (base32
6592 "1jdm83bwdfhpfm1y6hwgvxzj6l83h1bdkqv23799kzywnwm016kv"))))
6593 (properties `((upstream-name . "Category")))
6594 (build-system r-build-system)
6595 (propagated-inputs
6596 `(("r-annotate" ,r-annotate)
6597 ("r-annotationdbi" ,r-annotationdbi)
6598 ("r-biobase" ,r-biobase)
6599 ("r-biocgenerics" ,r-biocgenerics)
6600 ("r-genefilter" ,r-genefilter)
6601 ("r-graph" ,r-graph)
6602 ("r-gseabase" ,r-gseabase)
6603 ("r-matrix" ,r-matrix)
6604 ("r-rbgl" ,r-rbgl)
6605 ("r-dbi" ,r-dbi)))
6606 (home-page "https://bioconductor.org/packages/Category")
6607 (synopsis "Category analysis")
6608 (description
6609 "This package provides a collection of tools for performing category
6610 analysis.")
6611 (license license:artistic2.0)))
6612
6613 (define-public r-gostats
6614 (package
6615 (name "r-gostats")
6616 (version "2.48.0")
6617 (source
6618 (origin
6619 (method url-fetch)
6620 (uri (bioconductor-uri "GOstats" version))
6621 (sha256
6622 (base32
6623 "0wlqqgfynwqnqhckhsfjwg9zkj6hkmzwd5y76dhqz720vy21rcln"))))
6624 (properties `((upstream-name . "GOstats")))
6625 (build-system r-build-system)
6626 (propagated-inputs
6627 `(("r-annotate" ,r-annotate)
6628 ("r-annotationdbi" ,r-annotationdbi)
6629 ("r-annotationforge" ,r-annotationforge)
6630 ("r-biobase" ,r-biobase)
6631 ("r-category" ,r-category)
6632 ("r-go-db" ,r-go-db)
6633 ("r-graph" ,r-graph)
6634 ("r-rgraphviz" ,r-rgraphviz)
6635 ("r-rbgl" ,r-rbgl)))
6636 (home-page "https://bioconductor.org/packages/GOstats")
6637 (synopsis "Tools for manipulating GO and microarrays")
6638 (description
6639 "This package provides a set of tools for interacting with GO and
6640 microarray data. A variety of basic manipulation tools for graphs, hypothesis
6641 testing and other simple calculations.")
6642 (license license:artistic2.0)))
6643
6644 (define-public r-shortread
6645 (package
6646 (name "r-shortread")
6647 (version "1.40.0")
6648 (source
6649 (origin
6650 (method url-fetch)
6651 (uri (bioconductor-uri "ShortRead" version))
6652 (sha256
6653 (base32
6654 "0iks123i1adkb9i2q4wvfqdmmj9dy867jvngj9757y8gj6xbcpy1"))))
6655 (properties `((upstream-name . "ShortRead")))
6656 (build-system r-build-system)
6657 (inputs
6658 `(("zlib" ,zlib)))
6659 (propagated-inputs
6660 `(("r-biobase" ,r-biobase)
6661 ("r-biocgenerics" ,r-biocgenerics)
6662 ("r-biocparallel" ,r-biocparallel)
6663 ("r-biostrings" ,r-biostrings)
6664 ("r-genomeinfodb" ,r-genomeinfodb)
6665 ("r-genomicalignments" ,r-genomicalignments)
6666 ("r-genomicranges" ,r-genomicranges)
6667 ("r-hwriter" ,r-hwriter)
6668 ("r-iranges" ,r-iranges)
6669 ("r-lattice" ,r-lattice)
6670 ("r-latticeextra" ,r-latticeextra)
6671 ("r-rsamtools" ,r-rsamtools)
6672 ("r-s4vectors" ,r-s4vectors)
6673 ("r-xvector" ,r-xvector)
6674 ("r-zlibbioc" ,r-zlibbioc)))
6675 (home-page "https://bioconductor.org/packages/ShortRead")
6676 (synopsis "FASTQ input and manipulation tools")
6677 (description
6678 "This package implements sampling, iteration, and input of FASTQ files.
6679 It includes functions for filtering and trimming reads, and for generating a
6680 quality assessment report. Data are represented as
6681 @code{DNAStringSet}-derived objects, and easily manipulated for a diversity of
6682 purposes. The package also contains legacy support for early single-end,
6683 ungapped alignment formats.")
6684 (license license:artistic2.0)))
6685
6686 (define-public r-systempiper
6687 (package
6688 (name "r-systempiper")
6689 (version "1.16.1")
6690 (source
6691 (origin
6692 (method url-fetch)
6693 (uri (bioconductor-uri "systemPipeR" version))
6694 (sha256
6695 (base32
6696 "0qzydz87rld2nhwzbfgrw5jfgh8maa9y54mjx9c4285m11qj2shq"))))
6697 (properties `((upstream-name . "systemPipeR")))
6698 (build-system r-build-system)
6699 (propagated-inputs
6700 `(("r-annotate" ,r-annotate)
6701 ("r-batchjobs" ,r-batchjobs)
6702 ("r-biocgenerics" ,r-biocgenerics)
6703 ("r-biostrings" ,r-biostrings)
6704 ("r-deseq2" ,r-deseq2)
6705 ("r-edger" ,r-edger)
6706 ("r-genomicfeatures" ,r-genomicfeatures)
6707 ("r-genomicranges" ,r-genomicranges)
6708 ("r-ggplot2" ,r-ggplot2)
6709 ("r-go-db" ,r-go-db)
6710 ("r-gostats" ,r-gostats)
6711 ("r-limma" ,r-limma)
6712 ("r-pheatmap" ,r-pheatmap)
6713 ("r-rjson" ,r-rjson)
6714 ("r-rsamtools" ,r-rsamtools)
6715 ("r-shortread" ,r-shortread)
6716 ("r-summarizedexperiment" ,r-summarizedexperiment)
6717 ("r-variantannotation" ,r-variantannotation)))
6718 (home-page "https://github.com/tgirke/systemPipeR")
6719 (synopsis "Next generation sequencing workflow and reporting environment")
6720 (description
6721 "This R package provides tools for building and running automated
6722 end-to-end analysis workflows for a wide range of @dfn{next generation
6723 sequence} (NGS) applications such as RNA-Seq, ChIP-Seq, VAR-Seq and Ribo-Seq.
6724 Important features include a uniform workflow interface across different NGS
6725 applications, automated report generation, and support for running both R and
6726 command-line software, such as NGS aligners or peak/variant callers, on local
6727 computers or compute clusters. Efficient handling of complex sample sets and
6728 experimental designs is facilitated by a consistently implemented sample
6729 annotation infrastructure.")
6730 (license license:artistic2.0)))
6731
6732 (define-public r-grohmm
6733 (package
6734 (name "r-grohmm")
6735 (version "1.16.0")
6736 (source
6737 (origin
6738 (method url-fetch)
6739 (uri (bioconductor-uri "groHMM" version))
6740 (sha256
6741 (base32
6742 "1ph92fv44b90v7mk4b1mjvv0dlrhl8ba01klxbnd0vs4qn9zxplh"))))
6743 (properties `((upstream-name . "groHMM")))
6744 (build-system r-build-system)
6745 (propagated-inputs
6746 `(("r-genomeinfodb" ,r-genomeinfodb)
6747 ("r-genomicalignments" ,r-genomicalignments)
6748 ("r-genomicranges" ,r-genomicranges)
6749 ("r-iranges" ,r-iranges)
6750 ("r-mass" ,r-mass)
6751 ("r-rtracklayer" ,r-rtracklayer)
6752 ("r-s4vectors" ,r-s4vectors)))
6753 (home-page "https://github.com/Kraus-Lab/groHMM")
6754 (synopsis "GRO-seq analysis pipeline")
6755 (description
6756 "This package provides a pipeline for the analysis of GRO-seq data.")
6757 (license license:gpl3+)))
6758
6759 (define-public r-txdb-hsapiens-ucsc-hg19-knowngene
6760 (package
6761 (name "r-txdb-hsapiens-ucsc-hg19-knowngene")
6762 (version "3.2.2")
6763 (source (origin
6764 (method url-fetch)
6765 ;; We cannot use bioconductor-uri here because this tarball is
6766 ;; located under "data/annotation/" instead of "bioc/".
6767 (uri (string-append "https://bioconductor.org/packages/"
6768 "release/data/annotation/src/contrib"
6769 "/TxDb.Hsapiens.UCSC.hg19.knownGene_"
6770 version ".tar.gz"))
6771 (sha256
6772 (base32
6773 "1sajhcqqwazgz2lqbik7rd935i7kpnh08zxbp2ra10j72yqy4g86"))))
6774 (properties
6775 `((upstream-name . "TxDb.Hsapiens.UCSC.hg19.knownGene")))
6776 (build-system r-build-system)
6777 ;; As this package provides little more than a very large data file it
6778 ;; doesn't make sense to build substitutes.
6779 (arguments `(#:substitutable? #f))
6780 (propagated-inputs
6781 `(("r-genomicfeatures" ,r-genomicfeatures)))
6782 (home-page
6783 "https://bioconductor.org/packages/TxDb.Hsapiens.UCSC.hg19.knownGene/")
6784 (synopsis "Annotation package for human genome in TxDb format")
6785 (description
6786 "This package provides an annotation database of Homo sapiens genome
6787 data. It is derived from the UCSC hg19 genome and based on the \"knownGene\"
6788 track. The database is exposed as a @code{TxDb} object.")
6789 (license license:artistic2.0)))
6790
6791 (define-public r-sparql
6792 (package
6793 (name "r-sparql")
6794 (version "1.16")
6795 (source (origin
6796 (method url-fetch)
6797 (uri (cran-uri "SPARQL" version))
6798 (sha256
6799 (base32
6800 "0gak1q06yyhdmcxb2n3v0h9gr1vqd0viqji52wpw211qp6r6dcrc"))))
6801 (properties `((upstream-name . "SPARQL")))
6802 (build-system r-build-system)
6803 (propagated-inputs
6804 `(("r-rcurl" ,r-rcurl)
6805 ("r-xml" ,r-xml)))
6806 (home-page "https://cran.r-project.org/web/packages/SPARQL")
6807 (synopsis "SPARQL client for R")
6808 (description "This package provides an interface to use SPARQL to pose
6809 SELECT or UPDATE queries to an end-point.")
6810 ;; The only license indication is found in the DESCRIPTION file,
6811 ;; which states GPL-3. So we cannot assume GPLv3+.
6812 (license license:gpl3)))
6813
6814 (define-public vsearch
6815 (package
6816 (name "vsearch")
6817 (version "2.9.1")
6818 (source
6819 (origin
6820 (method git-fetch)
6821 (uri (git-reference
6822 (url "https://github.com/torognes/vsearch.git")
6823 (commit (string-append "v" version))))
6824 (file-name (git-file-name name version))
6825 (sha256
6826 (base32
6827 "0vhrpjfdf75ba04b24xknp41790cvcgwl0vgpy7qbzj5xh2521ss"))
6828 (patches (search-patches "vsearch-unbundle-cityhash.patch"))
6829 (snippet
6830 '(begin
6831 ;; Remove bundled cityhash sources. The vsearch source is adjusted
6832 ;; for this in the patch.
6833 (delete-file "src/city.h")
6834 (delete-file "src/citycrc.h")
6835 (delete-file "src/city.cc")
6836 #t))))
6837 (build-system gnu-build-system)
6838 (inputs
6839 `(("zlib" ,zlib)
6840 ("bzip2" ,bzip2)
6841 ("cityhash" ,cityhash)))
6842 (native-inputs
6843 `(("autoconf" ,autoconf)
6844 ("automake" ,automake)))
6845 (synopsis "Sequence search tools for metagenomics")
6846 (description
6847 "VSEARCH supports DNA sequence searching, clustering, chimera detection,
6848 dereplication, pairwise alignment, shuffling, subsampling, sorting and
6849 masking. The tool takes advantage of parallelism in the form of SIMD
6850 vectorization as well as multiple threads to perform accurate alignments at
6851 high speed. VSEARCH uses an optimal global aligner (full dynamic programming
6852 Needleman-Wunsch).")
6853 (home-page "https://github.com/torognes/vsearch")
6854 ;; vsearch uses non-portable SSE intrinsics so building fails on other
6855 ;; platforms.
6856 (supported-systems '("x86_64-linux"))
6857 ;; Dual licensed; also includes public domain source.
6858 (license (list license:gpl3 license:bsd-2))))
6859
6860 (define-public pardre
6861 (package
6862 (name "pardre")
6863 ;; The source of 1.1.5 changed in place, so we append "-1" to the version.
6864 (version "1.1.5-1")
6865 (source
6866 (origin
6867 (method url-fetch)
6868 (uri (string-append "mirror://sourceforge/pardre/ParDRe-rel"
6869 "1.1.5" ".tar.gz"))
6870 (sha256
6871 (base32
6872 "17j73nc0viq4f6qj50nrndsrif5d6b71q8fl87m54psiv0ilns2b"))))
6873 (build-system gnu-build-system)
6874 (arguments
6875 `(#:tests? #f ; no tests included
6876 #:phases
6877 (modify-phases %standard-phases
6878 (delete 'configure)
6879 (replace 'install
6880 (lambda* (#:key outputs #:allow-other-keys)
6881 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
6882 (install-file "ParDRe" bin)
6883 #t))))))
6884 (inputs
6885 `(("openmpi" ,openmpi)
6886 ("zlib" ,zlib)))
6887 (synopsis "Parallel tool to remove duplicate DNA reads")
6888 (description
6889 "ParDRe is a parallel tool to remove duplicate genetic sequence reads.
6890 Duplicate reads can be seen as identical or nearly identical sequences with
6891 some mismatches. This tool lets users avoid the analysis of unnecessary
6892 reads, reducing the time of subsequent procedures with the
6893 dataset (e.g. assemblies, mappings, etc.). The tool is implemented with MPI
6894 in order to exploit the parallel capabilities of multicore clusters. It is
6895 faster than multithreaded counterparts (end of 2015) for the same number of
6896 cores and, thanks to the message-passing technology, it can be executed on
6897 clusters.")
6898 (home-page "https://sourceforge.net/projects/pardre/")
6899 (license license:gpl3+)))
6900
6901 (define-public ruby-bio-kseq
6902 (package
6903 (name "ruby-bio-kseq")
6904 (version "0.0.2")
6905 (source
6906 (origin
6907 (method url-fetch)
6908 (uri (rubygems-uri "bio-kseq" version))
6909 (sha256
6910 (base32
6911 "1xyaha46khb5jc6wzkbf7040jagac49jbimn0vcrzid0j8jdikrz"))))
6912 (build-system ruby-build-system)
6913 (arguments
6914 `(#:test-target "spec"))
6915 (native-inputs
6916 `(("bundler" ,bundler)
6917 ("ruby-rspec" ,ruby-rspec)
6918 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6919 (inputs
6920 `(("zlib" ,zlib)))
6921 (synopsis "Ruby bindings for the kseq.h FASTA/Q parser")
6922 (description
6923 "@code{Bio::Kseq} provides ruby bindings to the @code{kseq.h} FASTA and
6924 FASTQ parsing code. It provides a fast iterator over sequences and their
6925 quality scores.")
6926 (home-page "https://github.com/gusevfe/bio-kseq")
6927 (license license:expat)))
6928
6929 (define-public bio-locus
6930 (package
6931 (name "bio-locus")
6932 (version "0.0.7")
6933 (source
6934 (origin
6935 (method url-fetch)
6936 (uri (rubygems-uri "bio-locus" version))
6937 (sha256
6938 (base32
6939 "02vmrxyimkj9sahsp4zhfhnmbvz6dbbqz1y01vglf8cbwvkajfl0"))))
6940 (build-system ruby-build-system)
6941 (native-inputs
6942 `(("ruby-rspec" ,ruby-rspec)))
6943 (synopsis "Tool for fast querying of genome locations")
6944 (description
6945 "Bio-locus is a tabix-like tool for fast querying of genome
6946 locations. Many file formats in bioinformatics contain records that
6947 start with a chromosome name and a position for a SNP, or a start-end
6948 position for indels. Bio-locus allows users to store this chr+pos or
6949 chr+pos+alt information in a database.")
6950 (home-page "https://github.com/pjotrp/bio-locus")
6951 (license license:expat)))
6952
6953 (define-public bio-blastxmlparser
6954 (package
6955 (name "bio-blastxmlparser")
6956 (version "2.0.4")
6957 (source (origin
6958 (method url-fetch)
6959 (uri (rubygems-uri "bio-blastxmlparser" version))
6960 (sha256
6961 (base32
6962 "1wf4qygcmdjgcqm6flmvsagfr1gs9lf63mj32qv3z1f481zc5692"))))
6963 (build-system ruby-build-system)
6964 (propagated-inputs
6965 `(("ruby-bio-logger" ,ruby-bio-logger)
6966 ("ruby-nokogiri" ,ruby-nokogiri)))
6967 (inputs
6968 `(("ruby-rspec" ,ruby-rspec)))
6969 (synopsis "Fast big data BLAST XML parser and library")
6970 (description
6971 "Very fast parallel big-data BLAST XML file parser which can be used as
6972 command line utility. Use blastxmlparser to: Parse BLAST XML; filter output;
6973 generate FASTA, JSON, YAML, RDF, JSON-LD, HTML, CSV, tabular output etc.")
6974 (home-page "https://github.com/pjotrp/blastxmlparser")
6975 (license license:expat)))
6976
6977 (define-public bioruby
6978 (package
6979 (name "bioruby")
6980 (version "1.5.2")
6981 (source
6982 (origin
6983 (method url-fetch)
6984 (uri (rubygems-uri "bio" version))
6985 (sha256
6986 (base32
6987 "1d56amdsjv1mag7m6gv2w0xij8hqx1v5xbdjsix8sp3yp36m7938"))))
6988 (build-system ruby-build-system)
6989 (propagated-inputs
6990 `(("ruby-libxml" ,ruby-libxml)))
6991 (native-inputs
6992 `(("which" ,which))) ; required for test phase
6993 (arguments
6994 `(#:phases
6995 (modify-phases %standard-phases
6996 (add-before 'build 'patch-test-command
6997 (lambda _
6998 (substitute* '("test/functional/bio/test_command.rb")
6999 (("/bin/sh") (which "sh")))
7000 (substitute* '("test/functional/bio/test_command.rb")
7001 (("/bin/ls") (which "ls")))
7002 (substitute* '("test/functional/bio/test_command.rb")
7003 (("which") (which "which")))
7004 (substitute* '("test/functional/bio/test_command.rb",
7005 "test/data/command/echoarg2.sh")
7006 (("/bin/echo") (which "echo")))
7007 #t)))))
7008 (synopsis "Ruby library, shell and utilities for bioinformatics")
7009 (description "BioRuby comes with a comprehensive set of Ruby development
7010 tools and libraries for bioinformatics and molecular biology. BioRuby has
7011 components for sequence analysis, pathway analysis, protein modelling and
7012 phylogenetic analysis; it supports many widely used data formats and provides
7013 easy access to databases, external programs and public web services, including
7014 BLAST, KEGG, GenBank, MEDLINE and GO.")
7015 (home-page "http://bioruby.org/")
7016 ;; Code is released under Ruby license, except for setup
7017 ;; (LGPLv2.1+) and scripts in samples (which have GPL2 and GPL2+)
7018 (license (list license:ruby license:lgpl2.1+ license:gpl2+ ))))
7019
7020 (define-public r-acsnminer
7021 (package
7022 (name "r-acsnminer")
7023 (version "0.16.8.25")
7024 (source (origin
7025 (method url-fetch)
7026 (uri (cran-uri "ACSNMineR" version))
7027 (sha256
7028 (base32
7029 "0gh604s8qall6zfjlwcg2ilxjvz08dplf9k5g47idhv43scm748l"))))
7030 (properties `((upstream-name . "ACSNMineR")))
7031 (build-system r-build-system)
7032 (propagated-inputs
7033 `(("r-ggplot2" ,r-ggplot2)
7034 ("r-gridextra" ,r-gridextra)))
7035 (home-page "https://cran.r-project.org/web/packages/ACSNMineR")
7036 (synopsis "Gene enrichment analysis")
7037 (description
7038 "This package provides tools to compute and represent gene set enrichment
7039 or depletion from your data based on pre-saved maps from the @dfn{Atlas of
7040 Cancer Signalling Networks} (ACSN) or user imported maps. The gene set
7041 enrichment can be run with hypergeometric test or Fisher exact test, and can
7042 use multiple corrections. Visualization of data can be done either by
7043 barplots or heatmaps.")
7044 (license license:gpl2+)))
7045
7046 (define-public r-biocinstaller
7047 (package
7048 (name "r-biocinstaller")
7049 (version "1.32.1")
7050 (source (origin
7051 (method url-fetch)
7052 (uri (bioconductor-uri "BiocInstaller" version))
7053 (sha256
7054 (base32
7055 "1s1f9qhyf3mc73ir25x2zlgi9hf45a37lg4z8fbva4i21hqisgsl"))))
7056 (properties
7057 `((upstream-name . "BiocInstaller")))
7058 (build-system r-build-system)
7059 (home-page "https://bioconductor.org/packages/BiocInstaller")
7060 (synopsis "Install Bioconductor packages")
7061 (description "This package is used to install and update R packages from
7062 Bioconductor, CRAN, and Github.")
7063 (license license:artistic2.0)))
7064
7065 (define-public r-biocviews
7066 (package
7067 (name "r-biocviews")
7068 (version "1.50.10")
7069 (source (origin
7070 (method url-fetch)
7071 (uri (bioconductor-uri "biocViews" version))
7072 (sha256
7073 (base32
7074 "06ms82pyc5rxbd9crfvqjxcwpafv0c627i83v80d12925mrc51h8"))))
7075 (properties
7076 `((upstream-name . "biocViews")))
7077 (build-system r-build-system)
7078 (propagated-inputs
7079 `(("r-biobase" ,r-biobase)
7080 ("r-graph" ,r-graph)
7081 ("r-rbgl" ,r-rbgl)
7082 ("r-rcurl" ,r-rcurl)
7083 ("r-xml" ,r-xml)
7084 ("r-runit" ,r-runit)))
7085 (home-page "https://bioconductor.org/packages/biocViews")
7086 (synopsis "Bioconductor package categorization helper")
7087 (description "The purpose of biocViews is to create HTML pages that
7088 categorize packages in a Bioconductor package repository according to keywords,
7089 also known as views, in a controlled vocabulary.")
7090 (license license:artistic2.0)))
7091
7092 (define-public r-bookdown
7093 (package
7094 (name "r-bookdown")
7095 (version "0.9")
7096 (source (origin
7097 (method url-fetch)
7098 (uri (cran-uri "bookdown" version))
7099 (sha256
7100 (base32
7101 "0vg1s1w0l9pm95asqb21yf39mfk1nc9rdhmlys9xwr7p7i7rsz32"))))
7102 (build-system r-build-system)
7103 (propagated-inputs
7104 `(("r-htmltools" ,r-htmltools)
7105 ("r-knitr" ,r-knitr)
7106 ("r-rmarkdown" ,r-rmarkdown)
7107 ("r-tinytex" ,r-tinytex)
7108 ("r-yaml" ,r-yaml)
7109 ("r-xfun" ,r-xfun)))
7110 (home-page "https://github.com/rstudio/bookdown")
7111 (synopsis "Authoring books and technical documents with R markdown")
7112 (description "This package provides output formats and utilities for
7113 authoring books and technical documents with R Markdown.")
7114 (license license:gpl3)))
7115
7116 (define-public r-biocstyle
7117 (package
7118 (name "r-biocstyle")
7119 (version "2.10.0")
7120 (source (origin
7121 (method url-fetch)
7122 (uri (bioconductor-uri "BiocStyle" version))
7123 (sha256
7124 (base32
7125 "01lm8xljilj666fcl3wnw82dxkcxnlr294lddr553rm8xr5nwg31"))))
7126 (properties
7127 `((upstream-name . "BiocStyle")))
7128 (build-system r-build-system)
7129 (propagated-inputs
7130 `(("r-biocmanager" ,r-biocmanager)
7131 ("r-bookdown" ,r-bookdown)
7132 ("r-knitr" ,r-knitr)
7133 ("r-rmarkdown" ,r-rmarkdown)
7134 ("r-yaml" ,r-yaml)))
7135 (home-page "https://bioconductor.org/packages/BiocStyle")
7136 (synopsis "Bioconductor formatting styles")
7137 (description "This package provides standard formatting styles for
7138 Bioconductor PDF and HTML documents. Package vignettes illustrate use and
7139 functionality.")
7140 (license license:artistic2.0)))
7141
7142 (define-public r-bioccheck
7143 (package
7144 (name "r-bioccheck")
7145 (version "1.18.0")
7146 (source (origin
7147 (method url-fetch)
7148 (uri (bioconductor-uri "BiocCheck" version))
7149 (sha256
7150 (base32
7151 "0zamvs5jar38293ff27imvwy0ra25y64ls9z8w3q1y4jcp8p8pg7"))))
7152 (properties
7153 `((upstream-name . "BiocCheck")))
7154 (build-system r-build-system)
7155 (arguments
7156 '(#:phases
7157 (modify-phases %standard-phases
7158 ;; This package can be used by calling BiocCheck(<package>) from
7159 ;; within R, or by running R CMD BiocCheck <package>. This phase
7160 ;; makes sure the latter works. For this to work, the BiocCheck
7161 ;; script must be somewhere on the PATH (not the R bin directory).
7162 (add-after 'install 'install-bioccheck-subcommand
7163 (lambda* (#:key outputs #:allow-other-keys)
7164 (let* ((out (assoc-ref outputs "out"))
7165 (dest-dir (string-append out "/bin"))
7166 (script-dir
7167 (string-append out "/site-library/BiocCheck/script/")))
7168 (mkdir-p dest-dir)
7169 (symlink (string-append script-dir "/checkBadDeps.R")
7170 (string-append dest-dir "/checkBadDeps.R"))
7171 (symlink (string-append script-dir "/BiocCheck")
7172 (string-append dest-dir "/BiocCheck")))
7173 #t)))))
7174 (propagated-inputs
7175 `(("r-codetools" ,r-codetools)
7176 ("r-graph" ,r-graph)
7177 ("r-httr" ,r-httr)
7178 ("r-knitr" ,r-knitr)
7179 ("r-optparse" ,r-optparse)
7180 ("r-biocmanager" ,r-biocmanager)
7181 ("r-biocviews" ,r-biocviews)
7182 ("r-stringdist" ,r-stringdist)))
7183 (home-page "https://bioconductor.org/packages/BiocCheck")
7184 (synopsis "Executes Bioconductor-specific package checks")
7185 (description "This package contains tools to perform additional quality
7186 checks on R packages that are to be submitted to the Bioconductor repository.")
7187 (license license:artistic2.0)))
7188
7189 (define-public r-optparse
7190 (package
7191 (name "r-optparse")
7192 (version "1.6.1")
7193 (source
7194 (origin
7195 (method url-fetch)
7196 (uri (cran-uri "optparse" version))
7197 (sha256
7198 (base32
7199 "04vyb6dhcga30mvghsg1p052jmf69xqxkvh3hzqz7dscyppy76w1"))))
7200 (build-system r-build-system)
7201 (propagated-inputs
7202 `(("r-getopt" ,r-getopt)))
7203 (home-page
7204 "https://github.com/trevorld/optparse")
7205 (synopsis "Command line option parser")
7206 (description
7207 "This package provides a command line parser inspired by Python's
7208 @code{optparse} library to be used with Rscript to write shebang scripts
7209 that accept short and long options.")
7210 (license license:gpl2+)))
7211
7212 (define-public r-dnacopy
7213 (package
7214 (name "r-dnacopy")
7215 (version "1.56.0")
7216 (source (origin
7217 (method url-fetch)
7218 (uri (bioconductor-uri "DNAcopy" version))
7219 (sha256
7220 (base32
7221 "04cqdqxhva66xwh1s2vffi56b9fcrqd4slcrvqasj5lp2rkjli82"))))
7222 (properties
7223 `((upstream-name . "DNAcopy")))
7224 (build-system r-build-system)
7225 (inputs
7226 `(("gfortran" ,gfortran)))
7227 (home-page "https://bioconductor.org/packages/DNAcopy")
7228 (synopsis "Implementation of a circular binary segmentation algorithm")
7229 (description "This package implements the circular binary segmentation (CBS)
7230 algorithm to segment DNA copy number data and identify genomic regions with
7231 abnormal copy number.")
7232 (license license:gpl2+)))
7233
7234 (define-public r-s4vectors
7235 (package
7236 (name "r-s4vectors")
7237 (version "0.20.1")
7238 (source (origin
7239 (method url-fetch)
7240 (uri (bioconductor-uri "S4Vectors" version))
7241 (sha256
7242 (base32
7243 "18whrw67nxn82xshckl2pjy7d14sa3c27h3n9naqyqwz88lr6dzg"))))
7244 (properties
7245 `((upstream-name . "S4Vectors")))
7246 (build-system r-build-system)
7247 (propagated-inputs
7248 `(("r-biocgenerics" ,r-biocgenerics)))
7249 (home-page "https://bioconductor.org/packages/S4Vectors")
7250 (synopsis "S4 implementation of vectors and lists")
7251 (description
7252 "The S4Vectors package defines the @code{Vector} and @code{List} virtual
7253 classes and a set of generic functions that extend the semantic of ordinary
7254 vectors and lists in R. Package developers can easily implement vector-like
7255 or list-like objects as concrete subclasses of @code{Vector} or @code{List}.
7256 In addition, a few low-level concrete subclasses of general interest (e.g.
7257 @code{DataFrame}, @code{Rle}, and @code{Hits}) are implemented in the
7258 S4Vectors package itself.")
7259 (license license:artistic2.0)))
7260
7261 (define-public r-seqinr
7262 (package
7263 (name "r-seqinr")
7264 (version "3.4-5")
7265 (source
7266 (origin
7267 (method url-fetch)
7268 (uri (cran-uri "seqinr" version))
7269 (sha256
7270 (base32
7271 "17zv0n5cji17izwmwg0jcbxbjl3w5rls91w15svcnlpxjms38ahn"))))
7272 (build-system r-build-system)
7273 (propagated-inputs
7274 `(("r-ade4" ,r-ade4)
7275 ("r-segmented" ,r-segmented)))
7276 (inputs
7277 `(("zlib" ,zlib)))
7278 (home-page "http://seqinr.r-forge.r-project.org/")
7279 (synopsis "Biological sequences retrieval and analysis")
7280 (description
7281 "This package provides tools for exploratory data analysis and data
7282 visualization of biological sequence (DNA and protein) data. It also includes
7283 utilities for sequence data management under the ACNUC system.")
7284 (license license:gpl2+)))
7285
7286 (define-public r-iranges
7287 (package
7288 (name "r-iranges")
7289 (version "2.16.0")
7290 (source (origin
7291 (method url-fetch)
7292 (uri (bioconductor-uri "IRanges" version))
7293 (sha256
7294 (base32
7295 "0ljppsk611xi72gc8mbdx1311b63b1ijd401jz5xmxk5frla1nc1"))))
7296 (properties
7297 `((upstream-name . "IRanges")))
7298 (build-system r-build-system)
7299 (propagated-inputs
7300 `(("r-biocgenerics" ,r-biocgenerics)
7301 ("r-s4vectors" ,r-s4vectors)))
7302 (home-page "https://bioconductor.org/packages/IRanges")
7303 (synopsis "Infrastructure for manipulating intervals on sequences")
7304 (description
7305 "This package provides efficient low-level and highly reusable S4 classes
7306 for storing ranges of integers, RLE vectors (Run-Length Encoding), and, more
7307 generally, data that can be organized sequentially (formally defined as
7308 @code{Vector} objects), as well as views on these @code{Vector} objects.
7309 Efficient list-like classes are also provided for storing big collections of
7310 instances of the basic classes. All classes in the package use consistent
7311 naming and share the same rich and consistent \"Vector API\" as much as
7312 possible.")
7313 (license license:artistic2.0)))
7314
7315 (define-public r-genomeinfodbdata
7316 (package
7317 (name "r-genomeinfodbdata")
7318 (version "1.2.0")
7319 (source (origin
7320 (method url-fetch)
7321 ;; We cannot use bioconductor-uri here because this tarball is
7322 ;; located under "data/annotation/" instead of "bioc/".
7323 (uri (string-append "https://bioconductor.org/packages/release/"
7324 "data/annotation/src/contrib/GenomeInfoDbData_"
7325 version ".tar.gz"))
7326 (sha256
7327 (base32
7328 "0di6nlqpsyqf693k2na65ayqldih563x3zfrczpqc5q2hl5kg35c"))))
7329 (properties
7330 `((upstream-name . "GenomeInfoDbData")))
7331 (build-system r-build-system)
7332 (home-page "https://bioconductor.org/packages/GenomeInfoDbData")
7333 (synopsis "Species and taxonomy ID look up tables for GenomeInfoDb")
7334 (description "This package contains data for mapping between NCBI taxonomy
7335 ID and species. It is used by functions in the GenomeInfoDb package.")
7336 (license license:artistic2.0)))
7337
7338 (define-public r-genomeinfodb
7339 (package
7340 (name "r-genomeinfodb")
7341 (version "1.18.1")
7342 (source (origin
7343 (method url-fetch)
7344 (uri (bioconductor-uri "GenomeInfoDb" version))
7345 (sha256
7346 (base32
7347 "049pyzr8iszv3g7wdqf3pz7vg7bzd450c20ln6fgw4g5xnkkr10s"))))
7348 (properties
7349 `((upstream-name . "GenomeInfoDb")))
7350 (build-system r-build-system)
7351 (propagated-inputs
7352 `(("r-biocgenerics" ,r-biocgenerics)
7353 ("r-genomeinfodbdata" ,r-genomeinfodbdata)
7354 ("r-iranges" ,r-iranges)
7355 ("r-rcurl" ,r-rcurl)
7356 ("r-s4vectors" ,r-s4vectors)))
7357 (home-page "https://bioconductor.org/packages/GenomeInfoDb")
7358 (synopsis "Utilities for manipulating chromosome identifiers")
7359 (description
7360 "This package contains data and functions that define and allow
7361 translation between different chromosome sequence naming conventions (e.g.,
7362 \"chr1\" versus \"1\"), including a function that attempts to place sequence
7363 names in their natural, rather than lexicographic, order.")
7364 (license license:artistic2.0)))
7365
7366 (define-public r-edger
7367 (package
7368 (name "r-edger")
7369 (version "3.24.3")
7370 (source (origin
7371 (method url-fetch)
7372 (uri (bioconductor-uri "edgeR" version))
7373 (sha256
7374 (base32
7375 "15yimsbsxmxhlsfmgw5j7fd8qn08zz4xqxrir1c6n2dc103y22xg"))))
7376 (properties `((upstream-name . "edgeR")))
7377 (build-system r-build-system)
7378 (propagated-inputs
7379 `(("r-limma" ,r-limma)
7380 ("r-locfit" ,r-locfit)
7381 ("r-rcpp" ,r-rcpp)
7382 ("r-statmod" ,r-statmod))) ;for estimateDisp
7383 (home-page "http://bioinf.wehi.edu.au/edgeR")
7384 (synopsis "EdgeR does empirical analysis of digital gene expression data")
7385 (description "This package can do differential expression analysis of
7386 RNA-seq expression profiles with biological replication. It implements a range
7387 of statistical methodology based on the negative binomial distributions,
7388 including empirical Bayes estimation, exact tests, generalized linear models
7389 and quasi-likelihood tests. It be applied to differential signal analysis of
7390 other types of genomic data that produce counts, including ChIP-seq, SAGE and
7391 CAGE.")
7392 (license license:gpl2+)))
7393
7394 (define-public r-variantannotation
7395 (package
7396 (name "r-variantannotation")
7397 (version "1.28.10")
7398 (source (origin
7399 (method url-fetch)
7400 (uri (bioconductor-uri "VariantAnnotation" version))
7401 (sha256
7402 (base32
7403 "0kxf583cgkdz1shi85r0mpnfxmzi7s5f6srd1czbdl2iibvrm8jn"))))
7404 (properties
7405 `((upstream-name . "VariantAnnotation")))
7406 (inputs
7407 `(("zlib" ,zlib)))
7408 (propagated-inputs
7409 `(("r-annotationdbi" ,r-annotationdbi)
7410 ("r-biobase" ,r-biobase)
7411 ("r-biocgenerics" ,r-biocgenerics)
7412 ("r-biostrings" ,r-biostrings)
7413 ("r-bsgenome" ,r-bsgenome)
7414 ("r-dbi" ,r-dbi)
7415 ("r-genomeinfodb" ,r-genomeinfodb)
7416 ("r-genomicfeatures" ,r-genomicfeatures)
7417 ("r-genomicranges" ,r-genomicranges)
7418 ("r-iranges" ,r-iranges)
7419 ("r-summarizedexperiment" ,r-summarizedexperiment)
7420 ("r-rsamtools" ,r-rsamtools)
7421 ("r-rtracklayer" ,r-rtracklayer)
7422 ("r-s4vectors" ,r-s4vectors)
7423 ("r-xvector" ,r-xvector)
7424 ("r-zlibbioc" ,r-zlibbioc)))
7425 (build-system r-build-system)
7426 (home-page "https://bioconductor.org/packages/VariantAnnotation")
7427 (synopsis "Package for annotation of genetic variants")
7428 (description "This R package can annotate variants, compute amino acid
7429 coding changes and predict coding outcomes.")
7430 (license license:artistic2.0)))
7431
7432 (define-public r-limma
7433 (package
7434 (name "r-limma")
7435 (version "3.38.3")
7436 (source (origin
7437 (method url-fetch)
7438 (uri (bioconductor-uri "limma" version))
7439 (sha256
7440 (base32
7441 "08va8jggmv61wym955mnb1n31mgikrmjys7dl1kp5hp3yia8jg7l"))))
7442 (build-system r-build-system)
7443 (home-page "http://bioinf.wehi.edu.au/limma")
7444 (synopsis "Package for linear models for microarray and RNA-seq data")
7445 (description "This package can be used for the analysis of gene expression
7446 studies, especially the use of linear models for analysing designed experiments
7447 and the assessment of differential expression. The analysis methods apply to
7448 different technologies, including microarrays, RNA-seq, and quantitative PCR.")
7449 (license license:gpl2+)))
7450
7451 (define-public r-xvector
7452 (package
7453 (name "r-xvector")
7454 (version "0.22.0")
7455 (source (origin
7456 (method url-fetch)
7457 (uri (bioconductor-uri "XVector" version))
7458 (sha256
7459 (base32
7460 "01fph1ydd6g0rl5mcw54spx22glq2kqv7wyw8bqw0plmabzcwwdm"))))
7461 (properties
7462 `((upstream-name . "XVector")))
7463 (build-system r-build-system)
7464 (arguments
7465 `(#:phases
7466 (modify-phases %standard-phases
7467 (add-after 'unpack 'use-system-zlib
7468 (lambda _
7469 (substitute* "DESCRIPTION"
7470 (("zlibbioc, ") ""))
7471 (substitute* "NAMESPACE"
7472 (("import\\(zlibbioc\\)") ""))
7473 #t)))))
7474 (inputs
7475 `(("zlib" ,zlib)))
7476 (propagated-inputs
7477 `(("r-biocgenerics" ,r-biocgenerics)
7478 ("r-iranges" ,r-iranges)
7479 ("r-s4vectors" ,r-s4vectors)))
7480 (home-page "https://bioconductor.org/packages/XVector")
7481 (synopsis "Representation and manpulation of external sequences")
7482 (description
7483 "This package provides memory efficient S4 classes for storing sequences
7484 \"externally\" (behind an R external pointer, or on disk).")
7485 (license license:artistic2.0)))
7486
7487 (define-public r-genomicranges
7488 (package
7489 (name "r-genomicranges")
7490 (version "1.34.0")
7491 (source (origin
7492 (method url-fetch)
7493 (uri (bioconductor-uri "GenomicRanges" version))
7494 (sha256
7495 (base32
7496 "0bgh14d15dpf2iy36qinw45r6n45rqkf0ghazrdl3jfva6vbrb29"))))
7497 (properties
7498 `((upstream-name . "GenomicRanges")))
7499 (build-system r-build-system)
7500 (propagated-inputs
7501 `(("r-biocgenerics" ,r-biocgenerics)
7502 ("r-genomeinfodb" ,r-genomeinfodb)
7503 ("r-iranges" ,r-iranges)
7504 ("r-s4vectors" ,r-s4vectors)
7505 ("r-xvector" ,r-xvector)))
7506 (home-page "https://bioconductor.org/packages/GenomicRanges")
7507 (synopsis "Representation and manipulation of genomic intervals")
7508 (description
7509 "This package provides tools to efficiently represent and manipulate
7510 genomic annotations and alignments is playing a central role when it comes to
7511 analyzing high-throughput sequencing data (a.k.a. NGS data). The
7512 GenomicRanges package defines general purpose containers for storing and
7513 manipulating genomic intervals and variables defined along a genome.")
7514 (license license:artistic2.0)))
7515
7516 (define-public r-biobase
7517 (package
7518 (name "r-biobase")
7519 (version "2.42.0")
7520 (source (origin
7521 (method url-fetch)
7522 (uri (bioconductor-uri "Biobase" version))
7523 (sha256
7524 (base32
7525 "10nr6nrkj5vlq8hsgbhbhv669z0dbpz4m3vz9k32rx1czbrrqwin"))))
7526 (properties
7527 `((upstream-name . "Biobase")))
7528 (build-system r-build-system)
7529 (propagated-inputs
7530 `(("r-biocgenerics" ,r-biocgenerics)))
7531 (home-page "https://bioconductor.org/packages/Biobase")
7532 (synopsis "Base functions for Bioconductor")
7533 (description
7534 "This package provides functions that are needed by many other packages
7535 on Bioconductor or which replace R functions.")
7536 (license license:artistic2.0)))
7537
7538 (define-public r-annotationdbi
7539 (package
7540 (name "r-annotationdbi")
7541 (version "1.44.0")
7542 (source (origin
7543 (method url-fetch)
7544 (uri (bioconductor-uri "AnnotationDbi" version))
7545 (sha256
7546 (base32
7547 "1954vimkx5yb9irppq8vssq0f3yjkg36w38b9r0rqmijx1ps7x5d"))))
7548 (properties
7549 `((upstream-name . "AnnotationDbi")))
7550 (build-system r-build-system)
7551 (propagated-inputs
7552 `(("r-biobase" ,r-biobase)
7553 ("r-biocgenerics" ,r-biocgenerics)
7554 ("r-dbi" ,r-dbi)
7555 ("r-iranges" ,r-iranges)
7556 ("r-rsqlite" ,r-rsqlite)
7557 ("r-s4vectors" ,r-s4vectors)))
7558 (home-page "https://bioconductor.org/packages/AnnotationDbi")
7559 (synopsis "Annotation database interface")
7560 (description
7561 "This package provides user interface and database connection code for
7562 annotation data packages using SQLite data storage.")
7563 (license license:artistic2.0)))
7564
7565 (define-public r-biomart
7566 (package
7567 (name "r-biomart")
7568 (version "2.38.0")
7569 (source (origin
7570 (method url-fetch)
7571 (uri (bioconductor-uri "biomaRt" version))
7572 (sha256
7573 (base32
7574 "1lshkknp7dmr3p6dd2zbv86cc71h53ggh9ji83jcjym8sgbbspl2"))))
7575 (properties
7576 `((upstream-name . "biomaRt")))
7577 (build-system r-build-system)
7578 (propagated-inputs
7579 `(("r-annotationdbi" ,r-annotationdbi)
7580 ("r-httr" ,r-httr)
7581 ("r-progress" ,r-progress)
7582 ("r-rcurl" ,r-rcurl)
7583 ("r-stringr" ,r-stringr)
7584 ("r-xml" ,r-xml)))
7585 (home-page "https://bioconductor.org/packages/biomaRt")
7586 (synopsis "Interface to BioMart databases")
7587 (description
7588 "biomaRt provides an interface to a growing collection of databases
7589 implementing the @url{BioMart software suite, http://www.biomart.org}. The
7590 package enables retrieval of large amounts of data in a uniform way without
7591 the need to know the underlying database schemas or write complex SQL queries.
7592 Examples of BioMart databases are Ensembl, COSMIC, Uniprot, HGNC, Gramene,
7593 Wormbase and dbSNP mapped to Ensembl. These major databases give biomaRt
7594 users direct access to a diverse set of data and enable a wide range of
7595 powerful online queries from gene annotation to database mining.")
7596 (license license:artistic2.0)))
7597
7598 (define-public r-biocparallel
7599 (package
7600 (name "r-biocparallel")
7601 (version "1.16.5")
7602 (source (origin
7603 (method url-fetch)
7604 (uri (bioconductor-uri "BiocParallel" version))
7605 (sha256
7606 (base32
7607 "1164dk0fajb2vrkfpcjs11055qf1cs4vvbnq0aqdaaf2p4lyx41l"))))
7608 (properties
7609 `((upstream-name . "BiocParallel")))
7610 (build-system r-build-system)
7611 (propagated-inputs
7612 `(("r-futile-logger" ,r-futile-logger)
7613 ("r-snow" ,r-snow)
7614 ("r-bh" ,r-bh)))
7615 (home-page "https://bioconductor.org/packages/BiocParallel")
7616 (synopsis "Bioconductor facilities for parallel evaluation")
7617 (description
7618 "This package provides modified versions and novel implementation of
7619 functions for parallel evaluation, tailored to use with Bioconductor
7620 objects.")
7621 (license (list license:gpl2+ license:gpl3+))))
7622
7623 (define-public r-biostrings
7624 (package
7625 (name "r-biostrings")
7626 (version "2.50.2")
7627 (source (origin
7628 (method url-fetch)
7629 (uri (bioconductor-uri "Biostrings" version))
7630 (sha256
7631 (base32
7632 "16cqqc8i6gb0jcz0lizfqqxsq7g0yb0ll2s9qzmb45brp07dg8f7"))))
7633 (properties
7634 `((upstream-name . "Biostrings")))
7635 (build-system r-build-system)
7636 (propagated-inputs
7637 `(("r-biocgenerics" ,r-biocgenerics)
7638 ("r-iranges" ,r-iranges)
7639 ("r-s4vectors" ,r-s4vectors)
7640 ("r-xvector" ,r-xvector)))
7641 (home-page "https://bioconductor.org/packages/Biostrings")
7642 (synopsis "String objects and algorithms for biological sequences")
7643 (description
7644 "This package provides memory efficient string containers, string
7645 matching algorithms, and other utilities, for fast manipulation of large
7646 biological sequences or sets of sequences.")
7647 (license license:artistic2.0)))
7648
7649 (define-public r-rsamtools
7650 (package
7651 (name "r-rsamtools")
7652 (version "1.34.0")
7653 (source (origin
7654 (method url-fetch)
7655 (uri (bioconductor-uri "Rsamtools" version))
7656 (sha256
7657 (base32
7658 "01v4bjhj2i126pwyk0v9lvmfp2ih495xsq903k3xa2z24bjxphbi"))))
7659 (properties
7660 `((upstream-name . "Rsamtools")))
7661 (build-system r-build-system)
7662 (arguments
7663 `(#:phases
7664 (modify-phases %standard-phases
7665 (add-after 'unpack 'use-system-zlib
7666 (lambda _
7667 (substitute* "DESCRIPTION"
7668 (("zlibbioc, ") ""))
7669 (substitute* "NAMESPACE"
7670 (("import\\(zlibbioc\\)") ""))
7671 #t)))))
7672 (inputs
7673 `(("zlib" ,zlib)))
7674 (propagated-inputs
7675 `(("r-biocgenerics" ,r-biocgenerics)
7676 ("r-biocparallel" ,r-biocparallel)
7677 ("r-biostrings" ,r-biostrings)
7678 ("r-bitops" ,r-bitops)
7679 ("r-genomeinfodb" ,r-genomeinfodb)
7680 ("r-genomicranges" ,r-genomicranges)
7681 ("r-iranges" ,r-iranges)
7682 ("r-s4vectors" ,r-s4vectors)
7683 ("r-xvector" ,r-xvector)))
7684 (home-page "https://bioconductor.org/packages/release/bioc/html/Rsamtools.html")
7685 (synopsis "Interface to samtools, bcftools, and tabix")
7686 (description
7687 "This package provides an interface to the 'samtools', 'bcftools', and
7688 'tabix' utilities for manipulating SAM (Sequence Alignment / Map), FASTA,
7689 binary variant call (BCF) and compressed indexed tab-delimited (tabix)
7690 files.")
7691 (license license:expat)))
7692
7693 (define-public r-delayedarray
7694 (package
7695 (name "r-delayedarray")
7696 (version "0.8.0")
7697 (source (origin
7698 (method url-fetch)
7699 (uri (bioconductor-uri "DelayedArray" version))
7700 (sha256
7701 (base32
7702 "0cl5anqkjwvqx19snjhz0zj8cp8ibckiifl28h821h50g62nvb2f"))))
7703 (properties
7704 `((upstream-name . "DelayedArray")))
7705 (build-system r-build-system)
7706 (propagated-inputs
7707 `(("r-biocgenerics" ,r-biocgenerics)
7708 ("r-biocparallel" ,r-biocparallel)
7709 ("r-s4vectors" ,r-s4vectors)
7710 ("r-iranges" ,r-iranges)
7711 ("r-matrixstats" ,r-matrixstats)))
7712 (home-page "https://bioconductor.org/packages/DelayedArray")
7713 (synopsis "Delayed operations on array-like objects")
7714 (description
7715 "Wrapping an array-like object (typically an on-disk object) in a
7716 @code{DelayedArray} object allows one to perform common array operations on it
7717 without loading the object in memory. In order to reduce memory usage and
7718 optimize performance, operations on the object are either delayed or executed
7719 using a block processing mechanism. Note that this also works on in-memory
7720 array-like objects like @code{DataFrame} objects (typically with Rle columns),
7721 @code{Matrix} objects, and ordinary arrays and data frames.")
7722 (license license:artistic2.0)))
7723
7724 (define-public r-summarizedexperiment
7725 (package
7726 (name "r-summarizedexperiment")
7727 (version "1.12.0")
7728 (source (origin
7729 (method url-fetch)
7730 (uri (bioconductor-uri "SummarizedExperiment" version))
7731 (sha256
7732 (base32
7733 "07805572xhpj5mfwq6kw1ha21wgalqvhh4ydvafyl1bnf3r20vps"))))
7734 (properties
7735 `((upstream-name . "SummarizedExperiment")))
7736 (build-system r-build-system)
7737 (propagated-inputs
7738 `(("r-biobase" ,r-biobase)
7739 ("r-biocgenerics" ,r-biocgenerics)
7740 ("r-delayedarray" ,r-delayedarray)
7741 ("r-genomeinfodb" ,r-genomeinfodb)
7742 ("r-genomicranges" ,r-genomicranges)
7743 ("r-iranges" ,r-iranges)
7744 ("r-matrix" ,r-matrix)
7745 ("r-s4vectors" ,r-s4vectors)))
7746 (home-page "https://bioconductor.org/packages/SummarizedExperiment")
7747 (synopsis "Container for representing genomic ranges by sample")
7748 (description
7749 "The SummarizedExperiment container contains one or more assays, each
7750 represented by a matrix-like object of numeric or other mode. The rows
7751 typically represent genomic ranges of interest and the columns represent
7752 samples.")
7753 (license license:artistic2.0)))
7754
7755 (define-public r-genomicalignments
7756 (package
7757 (name "r-genomicalignments")
7758 (version "1.18.1")
7759 (source (origin
7760 (method url-fetch)
7761 (uri (bioconductor-uri "GenomicAlignments" version))
7762 (sha256
7763 (base32
7764 "1maslav2r34wjyzh2nlwa862in1ir7i5xk57nw2nlfh5gqy112jd"))))
7765 (properties
7766 `((upstream-name . "GenomicAlignments")))
7767 (build-system r-build-system)
7768 (propagated-inputs
7769 `(("r-biocgenerics" ,r-biocgenerics)
7770 ("r-biocparallel" ,r-biocparallel)
7771 ("r-biostrings" ,r-biostrings)
7772 ("r-genomeinfodb" ,r-genomeinfodb)
7773 ("r-genomicranges" ,r-genomicranges)
7774 ("r-iranges" ,r-iranges)
7775 ("r-rsamtools" ,r-rsamtools)
7776 ("r-s4vectors" ,r-s4vectors)
7777 ("r-summarizedexperiment" ,r-summarizedexperiment)))
7778 (home-page "https://bioconductor.org/packages/GenomicAlignments")
7779 (synopsis "Representation and manipulation of short genomic alignments")
7780 (description
7781 "This package provides efficient containers for storing and manipulating
7782 short genomic alignments (typically obtained by aligning short reads to a
7783 reference genome). This includes read counting, computing the coverage,
7784 junction detection, and working with the nucleotide content of the
7785 alignments.")
7786 (license license:artistic2.0)))
7787
7788 (define-public r-rtracklayer
7789 (package
7790 (name "r-rtracklayer")
7791 (version "1.42.1")
7792 (source (origin
7793 (method url-fetch)
7794 (uri (bioconductor-uri "rtracklayer" version))
7795 (sha256
7796 (base32
7797 "1ycmcxvgvszvjv75hlmg0i6pq8i7r8720vgmfayb905s9l6j82x6"))))
7798 (build-system r-build-system)
7799 (arguments
7800 `(#:phases
7801 (modify-phases %standard-phases
7802 (add-after 'unpack 'use-system-zlib
7803 (lambda _
7804 (substitute* "DESCRIPTION"
7805 ((" zlibbioc,") ""))
7806 (substitute* "NAMESPACE"
7807 (("import\\(zlibbioc\\)") ""))
7808 #t)))))
7809 (native-inputs
7810 `(("pkg-config" ,pkg-config)))
7811 (inputs
7812 `(("zlib" ,zlib)))
7813 (propagated-inputs
7814 `(("r-biocgenerics" ,r-biocgenerics)
7815 ("r-biostrings" ,r-biostrings)
7816 ("r-genomeinfodb" ,r-genomeinfodb)
7817 ("r-genomicalignments" ,r-genomicalignments)
7818 ("r-genomicranges" ,r-genomicranges)
7819 ("r-iranges" ,r-iranges)
7820 ("r-rcurl" ,r-rcurl)
7821 ("r-rsamtools" ,r-rsamtools)
7822 ("r-s4vectors" ,r-s4vectors)
7823 ("r-xml" ,r-xml)
7824 ("r-xvector" ,r-xvector)))
7825 (home-page "https://bioconductor.org/packages/rtracklayer")
7826 (synopsis "R interface to genome browsers and their annotation tracks")
7827 (description
7828 "rtracklayer is an extensible framework for interacting with multiple
7829 genome browsers (currently UCSC built-in) and manipulating annotation tracks
7830 in various formats (currently GFF, BED, bedGraph, BED15, WIG, BigWig and 2bit
7831 built-in). The user may export/import tracks to/from the supported browsers,
7832 as well as query and modify the browser state, such as the current viewport.")
7833 (license license:artistic2.0)))
7834
7835 (define-public r-genomicfeatures
7836 (package
7837 (name "r-genomicfeatures")
7838 (version "1.34.2")
7839 (source (origin
7840 (method url-fetch)
7841 (uri (bioconductor-uri "GenomicFeatures" version))
7842 (sha256
7843 (base32
7844 "0qs94b0ywrjyc9m1jykrbch3lb07576m508dikvx18vwn304mban"))))
7845 (properties
7846 `((upstream-name . "GenomicFeatures")))
7847 (build-system r-build-system)
7848 (propagated-inputs
7849 `(("r-annotationdbi" ,r-annotationdbi)
7850 ("r-biobase" ,r-biobase)
7851 ("r-biocgenerics" ,r-biocgenerics)
7852 ("r-biomart" ,r-biomart)
7853 ("r-biostrings" ,r-biostrings)
7854 ("r-dbi" ,r-dbi)
7855 ("r-genomeinfodb" ,r-genomeinfodb)
7856 ("r-genomicranges" ,r-genomicranges)
7857 ("r-iranges" ,r-iranges)
7858 ("r-rcurl" ,r-rcurl)
7859 ("r-rsqlite" ,r-rsqlite)
7860 ("r-rtracklayer" ,r-rtracklayer)
7861 ("r-s4vectors" ,r-s4vectors)
7862 ("r-xvector" ,r-xvector)))
7863 (home-page "https://bioconductor.org/packages/GenomicFeatures")
7864 (synopsis "Tools for working with transcript centric annotations")
7865 (description
7866 "This package provides a set of tools and methods for making and
7867 manipulating transcript centric annotations. With these tools the user can
7868 easily download the genomic locations of the transcripts, exons and cds of a
7869 given organism, from either the UCSC Genome Browser or a BioMart
7870 database (more sources will be supported in the future). This information is
7871 then stored in a local database that keeps track of the relationship between
7872 transcripts, exons, cds and genes. Flexible methods are provided for
7873 extracting the desired features in a convenient format.")
7874 (license license:artistic2.0)))
7875
7876 (define-public r-go-db
7877 (package
7878 (name "r-go-db")
7879 (version "3.7.0")
7880 (source (origin
7881 (method url-fetch)
7882 (uri (string-append "https://www.bioconductor.org/packages/"
7883 "release/data/annotation/src/contrib/GO.db_"
7884 version ".tar.gz"))
7885 (sha256
7886 (base32
7887 "0i3wcf5h3n0dawzc1hy0kv74f06j80c47n4p3g3fmrcxlhi3jpa5"))))
7888 (properties
7889 `((upstream-name . "GO.db")))
7890 (build-system r-build-system)
7891 (propagated-inputs
7892 `(("r-annotationdbi" ,r-annotationdbi)))
7893 (home-page "https://bioconductor.org/packages/GO.db")
7894 (synopsis "Annotation maps describing the entire Gene Ontology")
7895 (description
7896 "The purpose of this GO.db annotation package is to provide detailed
7897 information about the latest version of the Gene Ontologies.")
7898 (license license:artistic2.0)))
7899
7900 (define-public r-topgo
7901 (package
7902 (name "r-topgo")
7903 (version "2.34.0")
7904 (source (origin
7905 (method url-fetch)
7906 (uri (bioconductor-uri "topGO" version))
7907 (sha256
7908 (base32
7909 "1j1jcd16j564kr6qz28140fzmnh9xasi84v1c1fi98sqv30zq9bh"))))
7910 (properties
7911 `((upstream-name . "topGO")))
7912 (build-system r-build-system)
7913 (propagated-inputs
7914 `(("r-annotationdbi" ,r-annotationdbi)
7915 ("r-dbi" ,r-dbi)
7916 ("r-biobase" ,r-biobase)
7917 ("r-biocgenerics" ,r-biocgenerics)
7918 ("r-go-db" ,r-go-db)
7919 ("r-graph" ,r-graph)
7920 ("r-lattice" ,r-lattice)
7921 ("r-matrixstats" ,r-matrixstats)
7922 ("r-sparsem" ,r-sparsem)))
7923 (home-page "https://bioconductor.org/packages/topGO")
7924 (synopsis "Enrichment analysis for gene ontology")
7925 (description
7926 "The topGO package provides tools for testing @dfn{gene ontology} (GO)
7927 terms while accounting for the topology of the GO graph. Different test
7928 statistics and different methods for eliminating local similarities and
7929 dependencies between GO terms can be implemented and applied.")
7930 ;; Any version of the LGPL applies.
7931 (license license:lgpl2.1+)))
7932
7933 (define-public r-bsgenome
7934 (package
7935 (name "r-bsgenome")
7936 (version "1.50.0")
7937 (source (origin
7938 (method url-fetch)
7939 (uri (bioconductor-uri "BSgenome" version))
7940 (sha256
7941 (base32
7942 "07z4zxx0khrc86qqvc7vxww8df9fh6pyks9ajxkc9gdqr5nn79j7"))))
7943 (properties
7944 `((upstream-name . "BSgenome")))
7945 (build-system r-build-system)
7946 (propagated-inputs
7947 `(("r-biocgenerics" ,r-biocgenerics)
7948 ("r-biostrings" ,r-biostrings)
7949 ("r-genomeinfodb" ,r-genomeinfodb)
7950 ("r-genomicranges" ,r-genomicranges)
7951 ("r-iranges" ,r-iranges)
7952 ("r-rsamtools" ,r-rsamtools)
7953 ("r-rtracklayer" ,r-rtracklayer)
7954 ("r-s4vectors" ,r-s4vectors)
7955 ("r-xvector" ,r-xvector)))
7956 (home-page "https://bioconductor.org/packages/BSgenome")
7957 (synopsis "Infrastructure for Biostrings-based genome data packages")
7958 (description
7959 "This package provides infrastructure shared by all Biostrings-based
7960 genome data packages and support for efficient SNP representation.")
7961 (license license:artistic2.0)))
7962
7963 (define-public r-bsgenome-hsapiens-1000genomes-hs37d5
7964 (package
7965 (name "r-bsgenome-hsapiens-1000genomes-hs37d5")
7966 (version "0.99.1")
7967 (source (origin
7968 (method url-fetch)
7969 ;; We cannot use bioconductor-uri here because this tarball is
7970 ;; located under "data/annotation/" instead of "bioc/".
7971 (uri (string-append "https://www.bioconductor.org/packages/"
7972 "release/data/annotation/src/contrib/"
7973 "BSgenome.Hsapiens.1000genomes.hs37d5_"
7974 version ".tar.gz"))
7975 (sha256
7976 (base32
7977 "1cg0g5fqmsvwyw2p9hp2yy4ilk21jkbbrnpgqvb5c36ihjwvc7sr"))))
7978 (properties
7979 `((upstream-name . "BSgenome.Hsapiens.1000genomes.hs37d5")))
7980 (build-system r-build-system)
7981 ;; As this package provides little more than a very large data file it
7982 ;; doesn't make sense to build substitutes.
7983 (arguments `(#:substitutable? #f))
7984 (propagated-inputs
7985 `(("r-bsgenome" ,r-bsgenome)))
7986 (home-page
7987 "https://www.bioconductor.org/packages/BSgenome.Hsapiens.1000genomes.hs37d5/")
7988 (synopsis "Full genome sequences for Homo sapiens")
7989 (description
7990 "This package provides full genome sequences for Homo sapiens from
7991 1000genomes phase2 reference genome sequence (hs37d5), based on NCBI GRCh37.")
7992 (license license:artistic2.0)))
7993
7994 (define-public r-impute
7995 (package
7996 (name "r-impute")
7997 (version "1.56.0")
7998 (source (origin
7999 (method url-fetch)
8000 (uri (bioconductor-uri "impute" version))
8001 (sha256
8002 (base32
8003 "08z0pj1dz5iq967nwj67qyka7ir7m5an2ggv7bsrlz3apzfsla33"))))
8004 (inputs
8005 `(("gfortran" ,gfortran)))
8006 (build-system r-build-system)
8007 (home-page "https://bioconductor.org/packages/impute")
8008 (synopsis "Imputation for microarray data")
8009 (description
8010 "This package provides a function to impute missing gene expression
8011 microarray data, using nearest neighbor averaging.")
8012 (license license:gpl2+)))
8013
8014 (define-public r-seqpattern
8015 (package
8016 (name "r-seqpattern")
8017 (version "1.14.0")
8018 (source (origin
8019 (method url-fetch)
8020 (uri (bioconductor-uri "seqPattern" version))
8021 (sha256
8022 (base32
8023 "0di83qi83mrlw7i12khsq55d03hlazcywaa9m9pki1sfhafpq733"))))
8024 (properties
8025 `((upstream-name . "seqPattern")))
8026 (build-system r-build-system)
8027 (propagated-inputs
8028 `(("r-biostrings" ,r-biostrings)
8029 ("r-genomicranges" ,r-genomicranges)
8030 ("r-iranges" ,r-iranges)
8031 ("r-kernsmooth" ,r-kernsmooth)
8032 ("r-plotrix" ,r-plotrix)))
8033 (home-page "https://bioconductor.org/packages/seqPattern")
8034 (synopsis "Visualising oligonucleotide patterns and motif occurrences")
8035 (description
8036 "This package provides tools to visualize oligonucleotide patterns and
8037 sequence motif occurrences across a large set of sequences centred at a common
8038 reference point and sorted by a user defined feature.")
8039 (license license:gpl3+)))
8040
8041 (define-public r-genomation
8042 (package
8043 (name "r-genomation")
8044 (version "1.14.0")
8045 (source (origin
8046 (method url-fetch)
8047 (uri (bioconductor-uri "genomation" version))
8048 (sha256
8049 (base32
8050 "0g0v4alfpqlinqinjnyzl3mrjnpbdx9ri34mcaiqbvbvg8ic8wvg"))))
8051 (build-system r-build-system)
8052 (propagated-inputs
8053 `(("r-biostrings" ,r-biostrings)
8054 ("r-bsgenome" ,r-bsgenome)
8055 ("r-data-table" ,r-data-table)
8056 ("r-genomeinfodb" ,r-genomeinfodb)
8057 ("r-genomicalignments" ,r-genomicalignments)
8058 ("r-genomicranges" ,r-genomicranges)
8059 ("r-ggplot2" ,r-ggplot2)
8060 ("r-gridbase" ,r-gridbase)
8061 ("r-impute" ,r-impute)
8062 ("r-iranges" ,r-iranges)
8063 ("r-matrixstats" ,r-matrixstats)
8064 ("r-plotrix" ,r-plotrix)
8065 ("r-plyr" ,r-plyr)
8066 ("r-rcpp" ,r-rcpp)
8067 ("r-readr" ,r-readr)
8068 ("r-reshape2" ,r-reshape2)
8069 ("r-rsamtools" ,r-rsamtools)
8070 ("r-rtracklayer" ,r-rtracklayer)
8071 ("r-runit" ,r-runit)
8072 ("r-s4vectors" ,r-s4vectors)
8073 ("r-seqpattern" ,r-seqpattern)))
8074 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
8075 (synopsis "Summary, annotation and visualization of genomic data")
8076 (description
8077 "This package provides a package for summary and annotation of genomic
8078 intervals. Users can visualize and quantify genomic intervals over
8079 pre-defined functional regions, such as promoters, exons, introns, etc. The
8080 genomic intervals represent regions with a defined chromosome position, which
8081 may be associated with a score, such as aligned reads from HT-seq experiments,
8082 TF binding sites, methylation scores, etc. The package can use any tabular
8083 genomic feature data as long as it has minimal information on the locations of
8084 genomic intervals. In addition, it can use BAM or BigWig files as input.")
8085 (license license:artistic2.0)))
8086
8087 (define-public r-genomationdata
8088 (package
8089 (name "r-genomationdata")
8090 (version "1.14.0")
8091 (source (origin
8092 (method url-fetch)
8093 ;; We cannot use bioconductor-uri here because this tarball is
8094 ;; located under "data/annotation/" instead of "bioc/".
8095 (uri (string-append "https://bioconductor.org/packages/"
8096 "release/data/experiment/src/contrib/"
8097 "genomationData_" version ".tar.gz"))
8098 (sha256
8099 (base32
8100 "10xyb8akjrhmak2i0mnv1agny2ipy364q9nlibyplpzc7vdb6bw7"))))
8101 (build-system r-build-system)
8102 ;; As this package provides little more than large data files, it doesn't
8103 ;; make sense to build substitutes.
8104 (arguments `(#:substitutable? #f))
8105 (native-inputs
8106 `(("r-knitr" ,r-knitr)))
8107 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
8108 (synopsis "Experimental data for use with the genomation package")
8109 (description
8110 "This package contains experimental genetic data for use with the
8111 genomation package. Included are Chip Seq, Methylation and Cage data,
8112 downloaded from Encode.")
8113 (license license:gpl3+)))
8114
8115 (define-public r-org-hs-eg-db
8116 (package
8117 (name "r-org-hs-eg-db")
8118 (version "3.7.0")
8119 (source (origin
8120 (method url-fetch)
8121 ;; We cannot use bioconductor-uri here because this tarball is
8122 ;; located under "data/annotation/" instead of "bioc/".
8123 (uri (string-append "https://www.bioconductor.org/packages/"
8124 "release/data/annotation/src/contrib/"
8125 "org.Hs.eg.db_" version ".tar.gz"))
8126 (sha256
8127 (base32
8128 "1qxz9l80yg3qdqszs6dsscp7lrpfi1bgd0pxh9j7q34vprzwhdim"))))
8129 (properties
8130 `((upstream-name . "org.Hs.eg.db")))
8131 (build-system r-build-system)
8132 (propagated-inputs
8133 `(("r-annotationdbi" ,r-annotationdbi)))
8134 (home-page "https://www.bioconductor.org/packages/org.Hs.eg.db/")
8135 (synopsis "Genome wide annotation for Human")
8136 (description
8137 "This package contains genome-wide annotations for Human, primarily based
8138 on mapping using Entrez Gene identifiers.")
8139 (license license:artistic2.0)))
8140
8141 (define-public r-org-ce-eg-db
8142 (package
8143 (name "r-org-ce-eg-db")
8144 (version "3.7.0")
8145 (source (origin
8146 (method url-fetch)
8147 ;; We cannot use bioconductor-uri here because this tarball is
8148 ;; located under "data/annotation/" instead of "bioc/".
8149 (uri (string-append "https://www.bioconductor.org/packages/"
8150 "release/data/annotation/src/contrib/"
8151 "org.Ce.eg.db_" version ".tar.gz"))
8152 (sha256
8153 (base32
8154 "1w5br1ss4ha8wv4v2saj7cmbjc2jw0dyj2f2y269l078z31wcnaz"))))
8155 (properties
8156 `((upstream-name . "org.Ce.eg.db")))
8157 (build-system r-build-system)
8158 (propagated-inputs
8159 `(("r-annotationdbi" ,r-annotationdbi)))
8160 (home-page "https://www.bioconductor.org/packages/org.Ce.eg.db/")
8161 (synopsis "Genome wide annotation for Worm")
8162 (description
8163 "This package provides mappings from Entrez gene identifiers to various
8164 annotations for the genome of the model worm Caenorhabditis elegans.")
8165 (license license:artistic2.0)))
8166
8167 (define-public r-org-dm-eg-db
8168 (package
8169 (name "r-org-dm-eg-db")
8170 (version "3.7.0")
8171 (source (origin
8172 (method url-fetch)
8173 ;; We cannot use bioconductor-uri here because this tarball is
8174 ;; located under "data/annotation/" instead of "bioc/".
8175 (uri (string-append "https://www.bioconductor.org/packages/"
8176 "release/data/annotation/src/contrib/"
8177 "org.Dm.eg.db_" version ".tar.gz"))
8178 (sha256
8179 (base32
8180 "1pqjrzlyg72bjpy8zsxvaglc7jsv176bnyi87xdajmkvsgxpm7b3"))))
8181 (properties
8182 `((upstream-name . "org.Dm.eg.db")))
8183 (build-system r-build-system)
8184 (propagated-inputs
8185 `(("r-annotationdbi" ,r-annotationdbi)))
8186 (home-page "https://www.bioconductor.org/packages/org.Dm.eg.db/")
8187 (synopsis "Genome wide annotation for Fly")
8188 (description
8189 "This package provides mappings from Entrez gene identifiers to various
8190 annotations for the genome of the model fruit fly Drosophila melanogaster.")
8191 (license license:artistic2.0)))
8192
8193 (define-public r-org-mm-eg-db
8194 (package
8195 (name "r-org-mm-eg-db")
8196 (version "3.7.0")
8197 (source (origin
8198 (method url-fetch)
8199 ;; We cannot use bioconductor-uri here because this tarball is
8200 ;; located under "data/annotation/" instead of "bioc/".
8201 (uri (string-append "https://www.bioconductor.org/packages/"
8202 "release/data/annotation/src/contrib/"
8203 "org.Mm.eg.db_" version ".tar.gz"))
8204 (sha256
8205 (base32
8206 "1i3nvrd3wjigf1rmgxq1p5xxc3p8v02h5gwi62s30rkrsyjjfjxx"))))
8207 (properties
8208 `((upstream-name . "org.Mm.eg.db")))
8209 (build-system r-build-system)
8210 (propagated-inputs
8211 `(("r-annotationdbi" ,r-annotationdbi)))
8212 (home-page "https://www.bioconductor.org/packages/org.Mm.eg.db/")
8213 (synopsis "Genome wide annotation for Mouse")
8214 (description
8215 "This package provides mappings from Entrez gene identifiers to various
8216 annotations for the genome of the model mouse Mus musculus.")
8217 (license license:artistic2.0)))
8218
8219 (define-public r-seqlogo
8220 (package
8221 (name "r-seqlogo")
8222 (version "1.48.0")
8223 (source
8224 (origin
8225 (method url-fetch)
8226 (uri (bioconductor-uri "seqLogo" version))
8227 (sha256
8228 (base32
8229 "022vr9ydwcivs7rw7kwj73gfk5gc7ckwa1q66vhd4kw9ylh70v68"))))
8230 (properties `((upstream-name . "seqLogo")))
8231 (build-system r-build-system)
8232 (home-page "https://bioconductor.org/packages/seqLogo")
8233 (synopsis "Sequence logos for DNA sequence alignments")
8234 (description
8235 "seqLogo takes the position weight matrix of a DNA sequence motif and
8236 plots the corresponding sequence logo as introduced by Schneider and
8237 Stephens (1990).")
8238 (license license:lgpl2.0+)))
8239
8240 (define-public r-bsgenome-hsapiens-ucsc-hg19
8241 (package
8242 (name "r-bsgenome-hsapiens-ucsc-hg19")
8243 (version "1.4.0")
8244 (source (origin
8245 (method url-fetch)
8246 ;; We cannot use bioconductor-uri here because this tarball is
8247 ;; located under "data/annotation/" instead of "bioc/".
8248 (uri (string-append "https://www.bioconductor.org/packages/"
8249 "release/data/annotation/src/contrib/"
8250 "BSgenome.Hsapiens.UCSC.hg19_"
8251 version ".tar.gz"))
8252 (sha256
8253 (base32
8254 "1y0nqpk8cw5a34sd9hmin3z4v7iqm6hf6l22cl81vlbxqbjibxc8"))))
8255 (properties
8256 `((upstream-name . "BSgenome.Hsapiens.UCSC.hg19")))
8257 (build-system r-build-system)
8258 ;; As this package provides little more than a very large data file it
8259 ;; doesn't make sense to build substitutes.
8260 (arguments `(#:substitutable? #f))
8261 (propagated-inputs
8262 `(("r-bsgenome" ,r-bsgenome)))
8263 (home-page
8264 "https://www.bioconductor.org/packages/BSgenome.Hsapiens.UCSC.hg19/")
8265 (synopsis "Full genome sequences for Homo sapiens")
8266 (description
8267 "This package provides full genome sequences for Homo sapiens as provided
8268 by UCSC (hg19, February 2009) and stored in Biostrings objects.")
8269 (license license:artistic2.0)))
8270
8271 (define-public r-bsgenome-mmusculus-ucsc-mm9
8272 (package
8273 (name "r-bsgenome-mmusculus-ucsc-mm9")
8274 (version "1.4.0")
8275 (source (origin
8276 (method url-fetch)
8277 ;; We cannot use bioconductor-uri here because this tarball is
8278 ;; located under "data/annotation/" instead of "bioc/".
8279 (uri (string-append "https://www.bioconductor.org/packages/"
8280 "release/data/annotation/src/contrib/"
8281 "BSgenome.Mmusculus.UCSC.mm9_"
8282 version ".tar.gz"))
8283 (sha256
8284 (base32
8285 "1birqw30g2azimxpnjfzmkphan7x131yy8b9h85lfz5fjdg7841i"))))
8286 (properties
8287 `((upstream-name . "BSgenome.Mmusculus.UCSC.mm9")))
8288 (build-system r-build-system)
8289 ;; As this package provides little more than a very large data file it
8290 ;; doesn't make sense to build substitutes.
8291 (arguments `(#:substitutable? #f))
8292 (propagated-inputs
8293 `(("r-bsgenome" ,r-bsgenome)))
8294 (home-page
8295 "https://www.bioconductor.org/packages/BSgenome.Mmusculus.UCSC.mm9/")
8296 (synopsis "Full genome sequences for Mouse")
8297 (description
8298 "This package provides full genome sequences for Mus musculus (Mouse) as
8299 provided by UCSC (mm9, July 2007) and stored in Biostrings objects.")
8300 (license license:artistic2.0)))
8301
8302 (define-public r-bsgenome-mmusculus-ucsc-mm10
8303 (package
8304 (name "r-bsgenome-mmusculus-ucsc-mm10")
8305 (version "1.4.0")
8306 (source (origin
8307 (method url-fetch)
8308 ;; We cannot use bioconductor-uri here because this tarball is
8309 ;; located under "data/annotation/" instead of "bioc/".
8310 (uri (string-append "https://www.bioconductor.org/packages/"
8311 "release/data/annotation/src/contrib/"
8312 "BSgenome.Mmusculus.UCSC.mm10_"
8313 version ".tar.gz"))
8314 (sha256
8315 (base32
8316 "12s0nm2na9brjad4rn9l7d3db2aj8qa1xvz0y1k7gk08wayb6bkf"))))
8317 (properties
8318 `((upstream-name . "BSgenome.Mmusculus.UCSC.mm10")))
8319 (build-system r-build-system)
8320 ;; As this package provides little more than a very large data file it
8321 ;; doesn't make sense to build substitutes.
8322 (arguments `(#:substitutable? #f))
8323 (propagated-inputs
8324 `(("r-bsgenome" ,r-bsgenome)))
8325 (home-page
8326 "https://www.bioconductor.org/packages/BSgenome.Mmusculus.UCSC.mm10/")
8327 (synopsis "Full genome sequences for Mouse")
8328 (description
8329 "This package provides full genome sequences for Mus
8330 musculus (Mouse) as provided by UCSC (mm10, December 2011) and stored
8331 in Biostrings objects.")
8332 (license license:artistic2.0)))
8333
8334 (define-public r-txdb-mmusculus-ucsc-mm10-knowngene
8335 (package
8336 (name "r-txdb-mmusculus-ucsc-mm10-knowngene")
8337 (version "3.4.4")
8338 (source (origin
8339 (method url-fetch)
8340 ;; We cannot use bioconductor-uri here because this tarball is
8341 ;; located under "data/annotation/" instead of "bioc/".
8342 (uri (string-append "https://www.bioconductor.org/packages/"
8343 "release/data/annotation/src/contrib/"
8344 "TxDb.Mmusculus.UCSC.mm10.knownGene_"
8345 version ".tar.gz"))
8346 (sha256
8347 (base32
8348 "01lgxc1fx5nhlpbwjd5zqghkkbmh6axd98ikx4b0spv0jdg6gf39"))))
8349 (properties
8350 `((upstream-name . "TxDb.Mmusculus.UCSC.mm10.knownGene")))
8351 (build-system r-build-system)
8352 ;; As this package provides little more than a very large data file it
8353 ;; doesn't make sense to build substitutes.
8354 (arguments `(#:substitutable? #f))
8355 (propagated-inputs
8356 `(("r-bsgenome" ,r-bsgenome)
8357 ("r-genomicfeatures" ,r-genomicfeatures)
8358 ("r-annotationdbi" ,r-annotationdbi)))
8359 (home-page
8360 "https://bioconductor.org/packages/TxDb.Mmusculus.UCSC.mm10.knownGene/")
8361 (synopsis "Annotation package for TxDb knownGene object(s) for Mouse")
8362 (description
8363 "This package loads a TxDb object, which is an R interface to
8364 prefabricated databases contained in this package. This package provides
8365 the TxDb object of Mouse data as provided by UCSC (mm10, December 2011)
8366 based on the knownGene track.")
8367 (license license:artistic2.0)))
8368
8369 (define-public r-bsgenome-celegans-ucsc-ce6
8370 (package
8371 (name "r-bsgenome-celegans-ucsc-ce6")
8372 (version "1.4.0")
8373 (source (origin
8374 (method url-fetch)
8375 ;; We cannot use bioconductor-uri here because this tarball is
8376 ;; located under "data/annotation/" instead of "bioc/".
8377 (uri (string-append "https://www.bioconductor.org/packages/"
8378 "release/data/annotation/src/contrib/"
8379 "BSgenome.Celegans.UCSC.ce6_"
8380 version ".tar.gz"))
8381 (sha256
8382 (base32
8383 "0mqzb353xv2c3m3vkb315dkmnxkgczp7ndnknyhpgjlybyf715v9"))))
8384 (properties
8385 `((upstream-name . "BSgenome.Celegans.UCSC.ce6")))
8386 (build-system r-build-system)
8387 ;; As this package provides little more than a very large data file it
8388 ;; doesn't make sense to build substitutes.
8389 (arguments `(#:substitutable? #f))
8390 (propagated-inputs
8391 `(("r-bsgenome" ,r-bsgenome)))
8392 (home-page
8393 "https://www.bioconductor.org/packages/BSgenome.Celegans.UCSC.ce6/")
8394 (synopsis "Full genome sequences for Worm")
8395 (description
8396 "This package provides full genome sequences for Caenorhabditis
8397 elegans (Worm) as provided by UCSC (ce6, May 2008) and stored in Biostrings
8398 objects.")
8399 (license license:artistic2.0)))
8400
8401 (define-public r-bsgenome-celegans-ucsc-ce10
8402 (package
8403 (name "r-bsgenome-celegans-ucsc-ce10")
8404 (version "1.4.0")
8405 (source (origin
8406 (method url-fetch)
8407 ;; We cannot use bioconductor-uri here because this tarball is
8408 ;; located under "data/annotation/" instead of "bioc/".
8409 (uri (string-append "https://www.bioconductor.org/packages/"
8410 "release/data/annotation/src/contrib/"
8411 "BSgenome.Celegans.UCSC.ce10_"
8412 version ".tar.gz"))
8413 (sha256
8414 (base32
8415 "1zaym97jk4npxk14ifvwz2rvhm4zx9xgs33r9vvx9rlynp0gydrk"))))
8416 (properties
8417 `((upstream-name . "BSgenome.Celegans.UCSC.ce10")))
8418 (build-system r-build-system)
8419 ;; As this package provides little more than a very large data file it
8420 ;; doesn't make sense to build substitutes.
8421 (arguments `(#:substitutable? #f))
8422 (propagated-inputs
8423 `(("r-bsgenome" ,r-bsgenome)))
8424 (home-page
8425 "https://www.bioconductor.org/packages/BSgenome.Celegans.UCSC.ce10/")
8426 (synopsis "Full genome sequences for Worm")
8427 (description
8428 "This package provides full genome sequences for Caenorhabditis
8429 elegans (Worm) as provided by UCSC (ce10, Oct 2010) and stored in Biostrings
8430 objects.")
8431 (license license:artistic2.0)))
8432
8433 (define-public r-bsgenome-dmelanogaster-ucsc-dm3
8434 (package
8435 (name "r-bsgenome-dmelanogaster-ucsc-dm3")
8436 (version "1.4.0")
8437 (source (origin
8438 (method url-fetch)
8439 ;; We cannot use bioconductor-uri here because this tarball is
8440 ;; located under "data/annotation/" instead of "bioc/".
8441 (uri (string-append "https://www.bioconductor.org/packages/"
8442 "release/data/annotation/src/contrib/"
8443 "BSgenome.Dmelanogaster.UCSC.dm3_"
8444 version ".tar.gz"))
8445 (sha256
8446 (base32
8447 "19bm3lkhhkag3gnwp419211fh0cnr0x6fa0r1lr0ycwrikxdxsv8"))))
8448 (properties
8449 `((upstream-name . "BSgenome.Dmelanogaster.UCSC.dm3")))
8450 (build-system r-build-system)
8451 ;; As this package provides little more than a very large data file it
8452 ;; doesn't make sense to build substitutes.
8453 (arguments `(#:substitutable? #f))
8454 (propagated-inputs
8455 `(("r-bsgenome" ,r-bsgenome)))
8456 (home-page
8457 "https://www.bioconductor.org/packages/BSgenome.Dmelanogaster.UCSC.dm3/")
8458 (synopsis "Full genome sequences for Fly")
8459 (description
8460 "This package provides full genome sequences for Drosophila
8461 melanogaster (Fly) as provided by UCSC (dm3, April 2006) and stored in
8462 Biostrings objects.")
8463 (license license:artistic2.0)))
8464
8465 (define-public r-motifrg
8466 (package
8467 (name "r-motifrg")
8468 (version "1.26.0")
8469 (source
8470 (origin
8471 (method url-fetch)
8472 (uri (bioconductor-uri "motifRG" version))
8473 (sha256
8474 (base32
8475 "1wxww6i0jgyapqclcwy0zzf9kqjvrvylr89z7yhg1izi7jnw2fka"))))
8476 (properties `((upstream-name . "motifRG")))
8477 (build-system r-build-system)
8478 (propagated-inputs
8479 `(("r-biostrings" ,r-biostrings)
8480 ("r-bsgenome" ,r-bsgenome)
8481 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8482 ("r-iranges" ,r-iranges)
8483 ("r-seqlogo" ,r-seqlogo)
8484 ("r-xvector" ,r-xvector)))
8485 (home-page "https://bioconductor.org/packages/motifRG")
8486 (synopsis "Discover motifs in high throughput sequencing data")
8487 (description
8488 "This package provides tools for discriminative motif discovery in high
8489 throughput genetic sequencing data sets using regression methods.")
8490 (license license:artistic2.0)))
8491
8492 (define-public r-qtl
8493 (package
8494 (name "r-qtl")
8495 (version "1.44-9")
8496 (source
8497 (origin
8498 (method url-fetch)
8499 (uri (string-append "mirror://cran/src/contrib/qtl_"
8500 version ".tar.gz"))
8501 (sha256
8502 (base32
8503 "03lmvydln8b7666b6w46qbryhf83vsd11d4y2v95rfgvqgq66l1i"))))
8504 (build-system r-build-system)
8505 (home-page "http://rqtl.org/")
8506 (synopsis "R package for analyzing QTL experiments in genetics")
8507 (description "R/qtl is an extension library for the R statistics
8508 system. It is used to analyze experimental crosses for identifying
8509 genes contributing to variation in quantitative traits (so-called
8510 quantitative trait loci, QTLs).
8511
8512 Using a hidden Markov model, R/qtl allows to estimate genetic maps, to
8513 identify genotyping errors, and to perform single-QTL and two-QTL,
8514 two-dimensional genome scans.")
8515 (license license:gpl3)))
8516
8517 (define-public r-zlibbioc
8518 (package
8519 (name "r-zlibbioc")
8520 (version "1.28.0")
8521 (source (origin
8522 (method url-fetch)
8523 (uri (bioconductor-uri "zlibbioc" version))
8524 (sha256
8525 (base32
8526 "0bjvzy24kab7ank02cc1qk2ikcz4dllgf66wpsdl0d3zp4gn3l2h"))))
8527 (properties
8528 `((upstream-name . "zlibbioc")))
8529 (build-system r-build-system)
8530 (home-page "https://bioconductor.org/packages/zlibbioc")
8531 (synopsis "Provider for zlib-1.2.5 to R packages")
8532 (description "This package uses the source code of zlib-1.2.5 to create
8533 libraries for systems that do not have these available via other means.")
8534 (license license:artistic2.0)))
8535
8536 (define-public r-r4rna
8537 (package
8538 (name "r-r4rna")
8539 (version "0.1.4")
8540 (source
8541 (origin
8542 (method url-fetch)
8543 (uri (string-append "http://www.e-rna.org/r-chie/files/R4RNA_"
8544 version ".tar.gz"))
8545 (sha256
8546 (base32
8547 "1p0i78wh76jfgmn9jphbwwaz6yy6pipzfg08xs54cxavxg2j81p5"))))
8548 (build-system r-build-system)
8549 (propagated-inputs
8550 `(("r-optparse" ,r-optparse)
8551 ("r-rcolorbrewer" ,r-rcolorbrewer)))
8552 (home-page "http://www.e-rna.org/r-chie/index.cgi")
8553 (synopsis "Analysis framework for RNA secondary structure")
8554 (description
8555 "The R4RNA package aims to be a general framework for the analysis of RNA
8556 secondary structure and comparative analysis in R.")
8557 (license license:gpl3+)))
8558
8559 (define-public r-rhtslib
8560 (package
8561 (name "r-rhtslib")
8562 (version "1.14.0")
8563 (source
8564 (origin
8565 (method url-fetch)
8566 (uri (bioconductor-uri "Rhtslib" version))
8567 (sha256
8568 (base32
8569 "1h4q54f8za3aaxgy186zf2165sar5c3cgxkk44lq5hzx5pxkl5wn"))))
8570 (properties `((upstream-name . "Rhtslib")))
8571 (build-system r-build-system)
8572 (propagated-inputs
8573 `(("r-zlibbioc" ,r-zlibbioc)))
8574 (inputs
8575 `(("zlib" ,zlib)))
8576 (native-inputs
8577 `(("pkg-config" ,pkg-config)))
8578 (home-page "https://github.com/nhayden/Rhtslib")
8579 (synopsis "High-throughput sequencing library as an R package")
8580 (description
8581 "This package provides the HTSlib C library for high-throughput
8582 nucleotide sequence analysis. The package is primarily useful to developers
8583 of other R packages who wish to make use of HTSlib.")
8584 (license license:lgpl2.0+)))
8585
8586 (define-public r-bamsignals
8587 (package
8588 (name "r-bamsignals")
8589 (version "1.14.0")
8590 (source
8591 (origin
8592 (method url-fetch)
8593 (uri (bioconductor-uri "bamsignals" version))
8594 (sha256
8595 (base32
8596 "19irfx1y1izf903vq59wxsdbf88g143zy9l89gxqawh7jfxds8w8"))))
8597 (build-system r-build-system)
8598 (propagated-inputs
8599 `(("r-biocgenerics" ,r-biocgenerics)
8600 ("r-genomicranges" ,r-genomicranges)
8601 ("r-iranges" ,r-iranges)
8602 ("r-rcpp" ,r-rcpp)
8603 ("r-rhtslib" ,r-rhtslib)
8604 ("r-zlibbioc" ,r-zlibbioc)))
8605 (inputs
8606 `(("zlib" ,zlib)))
8607 (home-page "https://bioconductor.org/packages/bamsignals")
8608 (synopsis "Extract read count signals from bam files")
8609 (description
8610 "This package allows to efficiently obtain count vectors from indexed bam
8611 files. It counts the number of nucleotide sequence reads in given genomic
8612 ranges and it computes reads profiles and coverage profiles. It also handles
8613 paired-end data.")
8614 (license license:gpl2+)))
8615
8616 (define-public r-rcas
8617 (package
8618 (name "r-rcas")
8619 (version "1.8.0")
8620 (source (origin
8621 (method url-fetch)
8622 (uri (bioconductor-uri "RCAS" version))
8623 (sha256
8624 (base32
8625 "0ss5hcg2m7gjji6dd23zxa5bd5a7knwcnada4qs5q2l4clgk39ad"))))
8626 (build-system r-build-system)
8627 (propagated-inputs
8628 `(("r-annotationdbi" ,r-annotationdbi)
8629 ("r-biocgenerics" ,r-biocgenerics)
8630 ("r-biomart" ,r-biomart)
8631 ("r-biostrings" ,r-biostrings)
8632 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8633 ("r-cowplot" ,r-cowplot)
8634 ("r-data-table" ,r-data-table)
8635 ("r-dbi" ,r-dbi)
8636 ("r-dt" ,r-dt)
8637 ("r-genomation" ,r-genomation)
8638 ("r-genomeinfodb" ,r-genomeinfodb)
8639 ("r-genomicfeatures" ,r-genomicfeatures)
8640 ("r-genomicranges" ,r-genomicranges)
8641 ("r-ggplot2" ,r-ggplot2)
8642 ("r-ggseqlogo" ,r-ggseqlogo)
8643 ("r-knitr" ,r-knitr)
8644 ("r-motifrg" ,r-motifrg)
8645 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
8646 ("r-pbapply" ,r-pbapply)
8647 ("r-pheatmap" ,r-pheatmap)
8648 ("r-plotly" ,r-plotly)
8649 ("r-plotrix" ,r-plotrix)
8650 ("r-proxy" ,r-proxy)
8651 ("r-rsqlite" ,r-rsqlite)
8652 ("r-rtracklayer" ,r-rtracklayer)
8653 ("r-rmarkdown" ,r-rmarkdown)
8654 ("r-s4vectors" ,r-s4vectors)
8655 ("r-topgo" ,r-topgo)))
8656 (synopsis "RNA-centric annotation system")
8657 (description
8658 "RCAS aims to be a standalone RNA-centric annotation system that provides
8659 intuitive reports and publication-ready graphics. This package provides the R
8660 library implementing most of the pipeline's features.")
8661 (home-page "https://github.com/BIMSBbioinfo/RCAS")
8662 (license license:artistic2.0)))
8663
8664 (define-public rcas-web
8665 (package
8666 (name "rcas-web")
8667 (version "0.1.0")
8668 (source
8669 (origin
8670 (method url-fetch)
8671 (uri (string-append "https://github.com/BIMSBbioinfo/rcas-web/"
8672 "releases/download/v" version
8673 "/rcas-web-" version ".tar.gz"))
8674 (sha256
8675 (base32
8676 "0wq951aj45gqki1bickg876i993lmawkp8x24agg264br5x716db"))))
8677 (build-system gnu-build-system)
8678 (arguments
8679 `(#:phases
8680 (modify-phases %standard-phases
8681 (add-after 'install 'wrap-executable
8682 (lambda* (#:key inputs outputs #:allow-other-keys)
8683 (let* ((out (assoc-ref outputs "out"))
8684 (json (assoc-ref inputs "guile-json"))
8685 (redis (assoc-ref inputs "guile-redis"))
8686 (path (string-append
8687 json "/share/guile/site/2.2:"
8688 redis "/share/guile/site/2.2")))
8689 (wrap-program (string-append out "/bin/rcas-web")
8690 `("GUILE_LOAD_PATH" ":" = (,path))
8691 `("GUILE_LOAD_COMPILED_PATH" ":" = (,path))
8692 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
8693 #t)))))
8694 (inputs
8695 `(("r-minimal" ,r-minimal)
8696 ("r-rcas" ,r-rcas)
8697 ("guile-next" ,guile-2.2)
8698 ("guile-json" ,guile-json)
8699 ("guile-redis" ,guile-redis)))
8700 (native-inputs
8701 `(("pkg-config" ,pkg-config)))
8702 (home-page "https://github.com/BIMSBbioinfo/rcas-web")
8703 (synopsis "Web interface for RNA-centric annotation system (RCAS)")
8704 (description "This package provides a simple web interface for the
8705 @dfn{RNA-centric annotation system} (RCAS).")
8706 (license license:agpl3+)))
8707
8708 (define-public r-mutationalpatterns
8709 (package
8710 (name "r-mutationalpatterns")
8711 (version "1.8.0")
8712 (source
8713 (origin
8714 (method url-fetch)
8715 (uri (bioconductor-uri "MutationalPatterns" version))
8716 (sha256
8717 (base32
8718 "0w9lg1zs106h6rqvy8mhikq6q6q9syw6c1prcxr38ssh85rcih12"))))
8719 (build-system r-build-system)
8720 (propagated-inputs
8721 `(("r-biocgenerics" ,r-biocgenerics)
8722 ("r-biostrings" ,r-biostrings)
8723 ;; These two packages are suggested packages
8724 ("r-bsgenome-hsapiens-1000g" ,r-bsgenome-hsapiens-1000genomes-hs37d5)
8725 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8726 ("r-genomicranges" ,r-genomicranges)
8727 ("r-genomeinfodb" ,r-genomeinfodb)
8728 ("r-ggplot2" ,r-ggplot2)
8729 ("r-iranges" ,r-iranges)
8730 ("r-nmf" ,r-nmf)
8731 ("r-plyr" ,r-plyr)
8732 ("r-pracma" ,r-pracma)
8733 ("r-reshape2" ,r-reshape2)
8734 ("r-cowplot" ,r-cowplot)
8735 ("r-ggdendro" ,r-ggdendro)
8736 ("r-s4vectors" ,r-s4vectors)
8737 ("r-summarizedexperiment" ,r-summarizedexperiment)
8738 ("r-variantannotation" ,r-variantannotation)))
8739 (home-page "https://bioconductor.org/packages/MutationalPatterns/")
8740 (synopsis "Extract and visualize mutational patterns in genomic data")
8741 (description "This package provides an extensive toolset for the
8742 characterization and visualization of a wide range of mutational patterns
8743 in SNV base substitution data.")
8744 (license license:expat)))
8745
8746 (define-public r-wgcna
8747 (package
8748 (name "r-wgcna")
8749 (version "1.66")
8750 (source
8751 (origin
8752 (method url-fetch)
8753 (uri (cran-uri "WGCNA" version))
8754 (sha256
8755 (base32
8756 "0rhnyhzfn93yp24jz9v6dzrmyizwzdw070a7idm0k33w1cm8sjqv"))))
8757 (properties `((upstream-name . "WGCNA")))
8758 (build-system r-build-system)
8759 (propagated-inputs
8760 `(("r-annotationdbi" ,r-annotationdbi)
8761 ("r-doparallel" ,r-doparallel)
8762 ("r-dynamictreecut" ,r-dynamictreecut)
8763 ("r-fastcluster" ,r-fastcluster)
8764 ("r-foreach" ,r-foreach)
8765 ("r-go-db" ,r-go-db)
8766 ("r-hmisc" ,r-hmisc)
8767 ("r-impute" ,r-impute)
8768 ("r-rcpp" ,r-rcpp)
8769 ("r-robust" ,r-robust)
8770 ("r-survival" ,r-survival)
8771 ("r-matrixstats" ,r-matrixstats)
8772 ("r-preprocesscore" ,r-preprocesscore)))
8773 (home-page
8774 "http://www.genetics.ucla.edu/labs/horvath/CoexpressionNetwork/Rpackages/WGCNA/")
8775 (synopsis "Weighted correlation network analysis")
8776 (description
8777 "This package provides functions necessary to perform Weighted
8778 Correlation Network Analysis on high-dimensional data. It includes functions
8779 for rudimentary data cleaning, construction and summarization of correlation
8780 networks, module identification and functions for relating both variables and
8781 modules to sample traits. It also includes a number of utility functions for
8782 data manipulation and visualization.")
8783 (license license:gpl2+)))
8784
8785 (define-public r-chipkernels
8786 (let ((commit "c9cfcacb626b1221094fb3490ea7bac0fd625372")
8787 (revision "1"))
8788 (package
8789 (name "r-chipkernels")
8790 (version (string-append "1.1-" revision "." (string-take commit 9)))
8791 (source
8792 (origin
8793 (method git-fetch)
8794 (uri (git-reference
8795 (url "https://github.com/ManuSetty/ChIPKernels.git")
8796 (commit commit)))
8797 (file-name (string-append name "-" version))
8798 (sha256
8799 (base32
8800 "14bj5qhjm1hsm9ay561nfbqi9wxsa7y487df2idsaaf6z10nw4v0"))))
8801 (build-system r-build-system)
8802 (propagated-inputs
8803 `(("r-iranges" ,r-iranges)
8804 ("r-xvector" ,r-xvector)
8805 ("r-biostrings" ,r-biostrings)
8806 ("r-bsgenome" ,r-bsgenome)
8807 ("r-gtools" ,r-gtools)
8808 ("r-genomicranges" ,r-genomicranges)
8809 ("r-sfsmisc" ,r-sfsmisc)
8810 ("r-kernlab" ,r-kernlab)
8811 ("r-s4vectors" ,r-s4vectors)
8812 ("r-biocgenerics" ,r-biocgenerics)))
8813 (home-page "https://github.com/ManuSetty/ChIPKernels")
8814 (synopsis "Build string kernels for DNA Sequence analysis")
8815 (description "ChIPKernels is an R package for building different string
8816 kernels used for DNA Sequence analysis. A dictionary of the desired kernel
8817 must be built and this dictionary can be used for determining kernels for DNA
8818 Sequences.")
8819 (license license:gpl2+))))
8820
8821 (define-public r-seqgl
8822 (package
8823 (name "r-seqgl")
8824 (version "1.1.4")
8825 (source
8826 (origin
8827 (method git-fetch)
8828 (uri (git-reference
8829 (url "https://github.com/ManuSetty/SeqGL.git")
8830 (commit version)))
8831 (file-name (git-file-name name version))
8832 (sha256
8833 (base32
8834 "1r6ywvhxl3ffv48lgj7sbd582mcc6dha3ksgc2qjlvjrnkbj3799"))))
8835 (build-system r-build-system)
8836 (propagated-inputs
8837 `(("r-biostrings" ,r-biostrings)
8838 ("r-chipkernels" ,r-chipkernels)
8839 ("r-genomicranges" ,r-genomicranges)
8840 ("r-spams" ,r-spams)
8841 ("r-wgcna" ,r-wgcna)
8842 ("r-fastcluster" ,r-fastcluster)))
8843 (home-page "https://github.com/ManuSetty/SeqGL")
8844 (synopsis "Group lasso for Dnase/ChIP-seq data")
8845 (description "SeqGL is a group lasso based algorithm to extract
8846 transcription factor sequence signals from ChIP, DNase and ATAC-seq profiles.
8847 This package presents a method which uses group lasso to discriminate between
8848 bound and non bound genomic regions to accurately identify transcription
8849 factors bound at the specific regions.")
8850 (license license:gpl2+)))
8851
8852 (define-public r-gkmsvm
8853 (package
8854 (name "r-gkmsvm")
8855 (version "0.79.0")
8856 (source
8857 (origin
8858 (method url-fetch)
8859 (uri (cran-uri "gkmSVM" version))
8860 (sha256
8861 (base32
8862 "04dakbgfvfalz4rm4fvvybp506dn5fbj5g86ybfhrc6wywjllsz3"))))
8863 (properties `((upstream-name . "gkmSVM")))
8864 (build-system r-build-system)
8865 (propagated-inputs
8866 `(("r-biocgenerics" ,r-biocgenerics)
8867 ("r-biostrings" ,r-biostrings)
8868 ("r-genomeinfodb" ,r-genomeinfodb)
8869 ("r-genomicranges" ,r-genomicranges)
8870 ("r-iranges" ,r-iranges)
8871 ("r-kernlab" ,r-kernlab)
8872 ("r-rcpp" ,r-rcpp)
8873 ("r-rocr" ,r-rocr)
8874 ("r-rtracklayer" ,r-rtracklayer)
8875 ("r-s4vectors" ,r-s4vectors)
8876 ("r-seqinr" ,r-seqinr)))
8877 (home-page "https://cran.r-project.org/web/packages/gkmSVM")
8878 (synopsis "Gapped-kmer support vector machine")
8879 (description
8880 "This R package provides tools for training gapped-kmer SVM classifiers
8881 for DNA and protein sequences. This package supports several sequence
8882 kernels, including: gkmSVM, kmer-SVM, mismatch kernel and wildcard kernel.")
8883 (license license:gpl2+)))
8884
8885 (define-public r-tximport
8886 (package
8887 (name "r-tximport")
8888 (version "1.10.1")
8889 (source (origin
8890 (method url-fetch)
8891 (uri (bioconductor-uri "tximport" version))
8892 (sha256
8893 (base32
8894 "16wp09dm0cpb4mc00nmglfb8ica7qb4a55vm8ajgzyagbpfdd44l"))))
8895 (build-system r-build-system)
8896 (home-page "https://bioconductor.org/packages/tximport")
8897 (synopsis "Import and summarize transcript-level estimates for gene-level analysis")
8898 (description
8899 "This package provides tools to import transcript-level abundance,
8900 estimated counts and transcript lengths, and to summarize them into matrices
8901 for use with downstream gene-level analysis packages. Average transcript
8902 length, weighted by sample-specific transcript abundance estimates, is
8903 provided as a matrix which can be used as an offset for different expression
8904 of gene-level counts.")
8905 (license license:gpl2+)))
8906
8907 (define-public r-rhdf5
8908 (package
8909 (name "r-rhdf5")
8910 (version "2.26.2")
8911 (source (origin
8912 (method url-fetch)
8913 (uri (bioconductor-uri "rhdf5" version))
8914 (sha256
8915 (base32
8916 "10zkw3k13wmvyif417gplyf6rwp2gpkjasw97lhwv2f9i32rry9l"))))
8917 (build-system r-build-system)
8918 (propagated-inputs
8919 `(("r-rhdf5lib" ,r-rhdf5lib)))
8920 (inputs
8921 `(("zlib" ,zlib)))
8922 (home-page "https://bioconductor.org/packages/rhdf5")
8923 (synopsis "HDF5 interface to R")
8924 (description
8925 "This R/Bioconductor package provides an interface between HDF5 and R.
8926 HDF5's main features are the ability to store and access very large and/or
8927 complex datasets and a wide variety of metadata on mass storage (disk) through
8928 a completely portable file format. The rhdf5 package is thus suited for the
8929 exchange of large and/or complex datasets between R and other software
8930 package, and for letting R applications work on datasets that are larger than
8931 the available RAM.")
8932 (license license:artistic2.0)))
8933
8934 (define-public r-annotationfilter
8935 (package
8936 (name "r-annotationfilter")
8937 (version "1.6.0")
8938 (source (origin
8939 (method url-fetch)
8940 (uri (bioconductor-uri "AnnotationFilter" version))
8941 (sha256
8942 (base32
8943 "0wrr10cxjzmxx46vjzq2nsf6xlqz1sqwx4xm0sk3d77ff8wmph4x"))))
8944 (properties
8945 `((upstream-name . "AnnotationFilter")))
8946 (build-system r-build-system)
8947 (propagated-inputs
8948 `(("r-genomicranges" ,r-genomicranges)
8949 ("r-lazyeval" ,r-lazyeval)))
8950 (home-page "https://github.com/Bioconductor/AnnotationFilter")
8951 (synopsis "Facilities for filtering Bioconductor annotation resources")
8952 (description
8953 "This package provides classes and other infrastructure to implement
8954 filters for manipulating Bioconductor annotation resources. The filters are
8955 used by @code{ensembldb}, @code{Organism.dplyr}, and other packages.")
8956 (license license:artistic2.0)))
8957
8958 (define-public emboss
8959 (package
8960 (name "emboss")
8961 (version "6.5.7")
8962 (source (origin
8963 (method url-fetch)
8964 (uri (string-append "ftp://emboss.open-bio.org/pub/EMBOSS/old/"
8965 (version-major+minor version) ".0/"
8966 "EMBOSS-" version ".tar.gz"))
8967 (sha256
8968 (base32
8969 "0vsmz96gc411yj2iyzdrsmg4l2n1nhgmp7vrgzlxx3xixv9xbf0q"))))
8970 (build-system gnu-build-system)
8971 (arguments
8972 `(#:configure-flags
8973 (list (string-append "--with-hpdf="
8974 (assoc-ref %build-inputs "libharu")))
8975 #:phases
8976 (modify-phases %standard-phases
8977 (add-after 'unpack 'fix-checks
8978 (lambda _
8979 ;; The PNGDRIVER tests check for the presence of libgd, libpng
8980 ;; and zlib, but assume that they are all found at the same
8981 ;; prefix.
8982 (substitute* "configure.in"
8983 (("CHECK_PNGDRIVER")
8984 "LIBS=\"$LIBS -lgd -lpng -lz -lm\"
8985 AC_DEFINE([PLD_png], [1], [Define to 1 if PNG support is available])
8986 AM_CONDITIONAL(AMPNG, true)"))
8987 #t))
8988 (add-after 'fix-checks 'disable-update-check
8989 (lambda _
8990 ;; At build time there is no connection to the Internet, so
8991 ;; looking for updates will not work.
8992 (substitute* "Makefile.am"
8993 (("\\$\\(bindir\\)/embossupdate") ""))
8994 #t))
8995 (add-after 'disable-update-check 'autogen
8996 (lambda _ (invoke "autoreconf" "-vif") #t)))))
8997 (inputs
8998 `(("perl" ,perl)
8999 ("libpng" ,libpng)
9000 ("gd" ,gd)
9001 ("libx11" ,libx11)
9002 ("libharu" ,libharu)
9003 ("zlib" ,zlib)))
9004 (native-inputs
9005 `(("autoconf" ,autoconf)
9006 ("automake" ,automake)
9007 ("libtool" ,libtool)
9008 ("pkg-config" ,pkg-config)))
9009 (home-page "http://emboss.sourceforge.net")
9010 (synopsis "Molecular biology analysis suite")
9011 (description "EMBOSS is the \"European Molecular Biology Open Software
9012 Suite\". EMBOSS is an analysis package specially developed for the needs of
9013 the molecular biology (e.g. EMBnet) user community. The software
9014 automatically copes with data in a variety of formats and even allows
9015 transparent retrieval of sequence data from the web. It also provides a
9016 number of libraries for the development of software in the field of molecular
9017 biology. EMBOSS also integrates a range of currently available packages and
9018 tools for sequence analysis into a seamless whole.")
9019 (license license:gpl2+)))
9020
9021 (define-public bits
9022 (let ((revision "1")
9023 (commit "3cc4567896d9d6442923da944beb704750a08d2d"))
9024 (package
9025 (name "bits")
9026 ;; The version is 2.13.0 even though no release archives have been
9027 ;; published as yet.
9028 (version (string-append "2.13.0-" revision "." (string-take commit 9)))
9029 (source (origin
9030 (method git-fetch)
9031 (uri (git-reference
9032 (url "https://github.com/arq5x/bits.git")
9033 (commit commit)))
9034 (file-name (string-append name "-" version "-checkout"))
9035 (sha256
9036 (base32
9037 "17n2kffk4kmhivd8c98g2vr6y1s23vbg4sxlxs689wni66797hbs"))))
9038 (build-system gnu-build-system)
9039 (arguments
9040 `(#:tests? #f ;no tests included
9041 #:phases
9042 (modify-phases %standard-phases
9043 (delete 'configure)
9044 (add-after 'unpack 'remove-cuda
9045 (lambda _
9046 (substitute* "Makefile"
9047 ((".*_cuda") "")
9048 (("(bits_test_intersections) \\\\" _ match) match))
9049 #t))
9050 (replace 'install
9051 (lambda* (#:key outputs #:allow-other-keys)
9052 (copy-recursively
9053 "bin" (string-append (assoc-ref outputs "out") "/bin"))
9054 #t)))))
9055 (inputs
9056 `(("gsl" ,gsl)
9057 ("zlib" ,zlib)))
9058 (home-page "https://github.com/arq5x/bits")
9059 (synopsis "Implementation of binary interval search algorithm")
9060 (description "This package provides an implementation of the
9061 BITS (Binary Interval Search) algorithm, an approach to interval set
9062 intersection. It is especially suited for the comparison of diverse genomic
9063 datasets and the exploration of large datasets of genome
9064 intervals (e.g. genes, sequence alignments).")
9065 (license license:gpl2))))
9066
9067 (define-public piranha
9068 ;; There is no release tarball for the latest version. The latest commit is
9069 ;; older than one year at the time of this writing.
9070 (let ((revision "1")
9071 (commit "0466d364b71117d01e4471b74c514436cc281233"))
9072 (package
9073 (name "piranha")
9074 (version (string-append "1.2.1-" revision "." (string-take commit 9)))
9075 (source (origin
9076 (method git-fetch)
9077 (uri (git-reference
9078 (url "https://github.com/smithlabcode/piranha.git")
9079 (commit commit)))
9080 (file-name (git-file-name name version))
9081 (sha256
9082 (base32
9083 "117dc0zf20c61jam69sk4abl57ah6yi6i7qra7d7y5zrbgk12q5n"))))
9084 (build-system gnu-build-system)
9085 (arguments
9086 `(#:test-target "test"
9087 #:phases
9088 (modify-phases %standard-phases
9089 (add-after 'unpack 'copy-smithlab-cpp
9090 (lambda* (#:key inputs #:allow-other-keys)
9091 (for-each (lambda (file)
9092 (install-file file "./src/smithlab_cpp/"))
9093 (find-files (assoc-ref inputs "smithlab-cpp")))
9094 #t))
9095 (add-after 'install 'install-to-store
9096 (lambda* (#:key outputs #:allow-other-keys)
9097 (let* ((out (assoc-ref outputs "out"))
9098 (bin (string-append out "/bin")))
9099 (for-each (lambda (file)
9100 (install-file file bin))
9101 (find-files "bin" ".*")))
9102 #t)))
9103 #:configure-flags
9104 (list (string-append "--with-bam_tools_headers="
9105 (assoc-ref %build-inputs "bamtools") "/include/bamtools")
9106 (string-append "--with-bam_tools_library="
9107 (assoc-ref %build-inputs "bamtools") "/lib/bamtools"))))
9108 (inputs
9109 `(("bamtools" ,bamtools)
9110 ("samtools" ,samtools-0.1)
9111 ("gsl" ,gsl)
9112 ("smithlab-cpp"
9113 ,(let ((commit "3723e2db438c51501d0423429ff396c3035ba46a"))
9114 (origin
9115 (method git-fetch)
9116 (uri (git-reference
9117 (url "https://github.com/smithlabcode/smithlab_cpp.git")
9118 (commit commit)))
9119 (file-name (string-append "smithlab_cpp-" commit "-checkout"))
9120 (sha256
9121 (base32
9122 "0l4gvbwslw5ngziskja41c00x1r06l3yidv7y0xw9djibhykzy0g")))))))
9123 (native-inputs
9124 `(("python" ,python-2)))
9125 (home-page "https://github.com/smithlabcode/piranha")
9126 (synopsis "Peak-caller for CLIP-seq and RIP-seq data")
9127 (description
9128 "Piranha is a peak-caller for genomic data produced by CLIP-seq and
9129 RIP-seq experiments. It takes input in BED or BAM format and identifies
9130 regions of statistically significant read enrichment. Additional covariates
9131 may optionally be provided to further inform the peak-calling process.")
9132 (license license:gpl3+))))
9133
9134 (define-public pepr
9135 (package
9136 (name "pepr")
9137 (version "1.0.9")
9138 (source (origin
9139 (method url-fetch)
9140 (uri (pypi-uri "PePr" version))
9141 (sha256
9142 (base32
9143 "0qxjfdpl1b1y53nccws2d85f6k74zwmx8y8sd9rszcqhfayx6gdx"))))
9144 (build-system python-build-system)
9145 (arguments
9146 `(#:python ,python-2 ; python2 only
9147 #:tests? #f)) ; no tests included
9148 (propagated-inputs
9149 `(("python2-numpy" ,python2-numpy)
9150 ("python2-scipy" ,python2-scipy)
9151 ("python2-pysam" ,python2-pysam)))
9152 (home-page "https://github.com/shawnzhangyx/PePr")
9153 (synopsis "Peak-calling and prioritization pipeline for ChIP-Seq data")
9154 (description
9155 "PePr is a ChIP-Seq peak calling or differential binding analysis tool
9156 that is primarily designed for data with biological replicates. It uses a
9157 negative binomial distribution to model the read counts among the samples in
9158 the same group, and look for consistent differences between ChIP and control
9159 group or two ChIP groups run under different conditions.")
9160 (license license:gpl3+)))
9161
9162 (define-public filevercmp
9163 (let ((commit "1a9b779b93d0b244040274794d402106907b71b7"))
9164 (package
9165 (name "filevercmp")
9166 (version (string-append "0-1." (string-take commit 7)))
9167 (source (origin
9168 (method git-fetch)
9169 (uri (git-reference
9170 (url "https://github.com/ekg/filevercmp.git")
9171 (commit commit)))
9172 (file-name (git-file-name name commit))
9173 (sha256
9174 (base32
9175 "1j9vxsy0y050v59h0q1d6501fcw1kjvj0d18l1xk2zyg0jzj247c"))))
9176 (build-system gnu-build-system)
9177 (arguments
9178 `(#:tests? #f ; There are no tests to run.
9179 #:phases
9180 (modify-phases %standard-phases
9181 (delete 'configure) ; There is no configure phase.
9182 (replace 'install
9183 (lambda* (#:key outputs #:allow-other-keys)
9184 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
9185 (install-file "filevercmp" bin)
9186 #t))))))
9187 (home-page "https://github.com/ekg/filevercmp")
9188 (synopsis "This program compares version strings")
9189 (description "This program compares version strings. It intends to be a
9190 replacement for strverscmp.")
9191 (license license:gpl3+))))
9192
9193 (define-public multiqc
9194 (package
9195 (name "multiqc")
9196 (version "1.5")
9197 (source
9198 (origin
9199 (method url-fetch)
9200 (uri (pypi-uri "multiqc" version))
9201 (sha256
9202 (base32
9203 "02iihfl0w0hpnr4pa0sbd1y9qxrg3ycyhjp5lidkcrqh1lmzs3zy"))))
9204 (build-system python-build-system)
9205 (propagated-inputs
9206 `(("python-jinja2" ,python-jinja2)
9207 ("python-simplejson" ,python-simplejson)
9208 ("python-pyyaml" ,python-pyyaml)
9209 ("python-click" ,python-click)
9210 ("python-spectra" ,python-spectra)
9211 ("python-requests" ,python-requests)
9212 ("python-markdown" ,python-markdown)
9213 ("python-lzstring" ,python-lzstring)
9214 ("python-matplotlib" ,python-matplotlib)
9215 ("python-numpy" ,python-numpy)
9216 ;; MultQC checks for the presence of nose at runtime.
9217 ("python-nose" ,python-nose)))
9218 (arguments
9219 `(#:phases
9220 (modify-phases %standard-phases
9221 (add-after 'unpack 'relax-requirements
9222 (lambda _
9223 (substitute* "setup.py"
9224 ;; MultiQC 1.5 ‘requires’ a version of python-matplotlib older
9225 ;; than the one in Guix, but should work fine with 2.2.2.
9226 ;; See <https://github.com/ewels/MultiQC/issues/725> and
9227 ;; <https://github.com/ewels/MultiQC/issues/732> for details.
9228 (("['\"]matplotlib.*?['\"]")
9229 "'matplotlib'"))
9230 #t)))))
9231 (home-page "http://multiqc.info")
9232 (synopsis "Aggregate bioinformatics analysis reports")
9233 (description
9234 "MultiQC is a tool to aggregate bioinformatics results across many
9235 samples into a single report. It contains modules for a large number of
9236 common bioinformatics tools.")
9237 (license license:gpl3+)))
9238
9239 (define-public r-chipseq
9240 (package
9241 (name "r-chipseq")
9242 (version "1.32.0")
9243 (source
9244 (origin
9245 (method url-fetch)
9246 (uri (bioconductor-uri "chipseq" version))
9247 (sha256
9248 (base32
9249 "1pp1rm5fs3hlar5x4dl3a3b4gara7qwf81dbvka6r1n78hrf9x1b"))))
9250 (build-system r-build-system)
9251 (propagated-inputs
9252 `(("r-biocgenerics" ,r-biocgenerics)
9253 ("r-genomicranges" ,r-genomicranges)
9254 ("r-iranges" ,r-iranges)
9255 ("r-lattice" ,r-lattice)
9256 ("r-s4vectors" ,r-s4vectors)
9257 ("r-shortread" ,r-shortread)))
9258 (home-page "https://bioconductor.org/packages/chipseq")
9259 (synopsis "Package for analyzing ChIPseq data")
9260 (description
9261 "This package provides tools for processing short read data from ChIPseq
9262 experiments.")
9263 (license license:artistic2.0)))
9264
9265 (define-public r-copyhelper
9266 (package
9267 (name "r-copyhelper")
9268 (version "1.6.0")
9269 (source
9270 (origin
9271 (method url-fetch)
9272 (uri (string-append "https://bioconductor.org/packages/release/"
9273 "data/experiment/src/contrib/CopyhelpeR_"
9274 version ".tar.gz"))
9275 (sha256
9276 (base32
9277 "0x7cyynjmxls9as2gg0iyp9x5fpalxmdjq914ss7i84i9zyk5bhq"))))
9278 (properties `((upstream-name . "CopyhelpeR")))
9279 (build-system r-build-system)
9280 (home-page "https://bioconductor.org/packages/CopyhelpeR/")
9281 (synopsis "Helper files for CopywriteR")
9282 (description
9283 "This package contains the helper files that are required to run the
9284 Bioconductor package CopywriteR. It contains pre-assembled 1kb bin GC-content
9285 and mappability files for the reference genomes hg18, hg19, hg38, mm9 and
9286 mm10. In addition, it contains a blacklist filter to remove regions that
9287 display copy number variation. Files are stored as GRanges objects from the
9288 GenomicRanges Bioconductor package.")
9289 (license license:gpl2)))
9290
9291 (define-public r-copywriter
9292 (package
9293 (name "r-copywriter")
9294 (version "2.14.1")
9295 (source
9296 (origin
9297 (method url-fetch)
9298 (uri (bioconductor-uri "CopywriteR" version))
9299 (sha256
9300 (base32
9301 "1hbiw0m9hmx4na9v502pxf8y5wvxzr68r4d3fqr2755gxx86qck6"))))
9302 (properties `((upstream-name . "CopywriteR")))
9303 (build-system r-build-system)
9304 (propagated-inputs
9305 `(("r-biocparallel" ,r-biocparallel)
9306 ("r-chipseq" ,r-chipseq)
9307 ("r-copyhelper" ,r-copyhelper)
9308 ("r-data-table" ,r-data-table)
9309 ("r-dnacopy" ,r-dnacopy)
9310 ("r-futile-logger" ,r-futile-logger)
9311 ("r-genomeinfodb" ,r-genomeinfodb)
9312 ("r-genomicalignments" ,r-genomicalignments)
9313 ("r-genomicranges" ,r-genomicranges)
9314 ("r-gtools" ,r-gtools)
9315 ("r-iranges" ,r-iranges)
9316 ("r-matrixstats" ,r-matrixstats)
9317 ("r-rsamtools" ,r-rsamtools)
9318 ("r-s4vectors" ,r-s4vectors)))
9319 (home-page "https://github.com/PeeperLab/CopywriteR")
9320 (synopsis "Copy number information from targeted sequencing")
9321 (description
9322 "CopywriteR extracts DNA copy number information from targeted sequencing
9323 by utilizing off-target reads. It allows for extracting uniformly distributed
9324 copy number information, can be used without reference, and can be applied to
9325 sequencing data obtained from various techniques including chromatin
9326 immunoprecipitation and target enrichment on small gene panels. Thereby,
9327 CopywriteR constitutes a widely applicable alternative to available copy
9328 number detection tools.")
9329 (license license:gpl2)))
9330
9331 (define-public r-methylkit
9332 (package
9333 (name "r-methylkit")
9334 (version "1.8.1")
9335 (source (origin
9336 (method url-fetch)
9337 (uri (bioconductor-uri "methylKit" version))
9338 (sha256
9339 (base32
9340 "1zcfwy7i10aqgnf7r0c41hakb5aai3s3n9y8pc6a98vimz51ly2z"))))
9341 (properties `((upstream-name . "methylKit")))
9342 (build-system r-build-system)
9343 (propagated-inputs
9344 `(("r-data-table" ,r-data-table)
9345 ("r-emdbook" ,r-emdbook)
9346 ("r-fastseg" ,r-fastseg)
9347 ("r-genomeinfodb" ,r-genomeinfodb)
9348 ("r-genomicranges" ,r-genomicranges)
9349 ("r-gtools" ,r-gtools)
9350 ("r-iranges" ,r-iranges)
9351 ("r-kernsmooth" ,r-kernsmooth)
9352 ("r-limma" ,r-limma)
9353 ("r-mclust" ,r-mclust)
9354 ("r-qvalue" ,r-qvalue)
9355 ("r-r-utils" ,r-r-utils)
9356 ("r-rcpp" ,r-rcpp)
9357 ("r-rhtslib" ,r-rhtslib)
9358 ("r-rsamtools" ,r-rsamtools)
9359 ("r-rtracklayer" ,r-rtracklayer)
9360 ("r-s4vectors" ,r-s4vectors)
9361 ("r-zlibbioc" ,r-zlibbioc)))
9362 (inputs
9363 `(("zlib" ,zlib)))
9364 (home-page "https://github.com/al2na/methylKit")
9365 (synopsis
9366 "DNA methylation analysis from high-throughput bisulfite sequencing results")
9367 (description
9368 "MethylKit is an R package for DNA methylation analysis and annotation
9369 from high-throughput bisulfite sequencing. The package is designed to deal
9370 with sequencing data from @dfn{Reduced representation bisulfite
9371 sequencing} (RRBS) and its variants, but also target-capture methods and whole
9372 genome bisulfite sequencing. It also has functions to analyze base-pair
9373 resolution 5hmC data from experimental protocols such as oxBS-Seq and
9374 TAB-Seq.")
9375 (license license:artistic2.0)))
9376
9377 (define-public r-sva
9378 (package
9379 (name "r-sva")
9380 (version "3.30.1")
9381 (source
9382 (origin
9383 (method url-fetch)
9384 (uri (bioconductor-uri "sva" version))
9385 (sha256
9386 (base32
9387 "0czja4c5jxa0g3fspi90nyajqmvzb29my4ykv2wi66h43f5dlwhq"))))
9388 (build-system r-build-system)
9389 (propagated-inputs
9390 `(("r-genefilter" ,r-genefilter)
9391 ("r-mgcv" ,r-mgcv)
9392 ("r-biocparallel" ,r-biocparallel)
9393 ("r-matrixstats" ,r-matrixstats)
9394 ("r-limma" ,r-limma)))
9395 (home-page "https://bioconductor.org/packages/sva")
9396 (synopsis "Surrogate variable analysis")
9397 (description
9398 "This package contains functions for removing batch effects and other
9399 unwanted variation in high-throughput experiment. It also contains functions
9400 for identifying and building surrogate variables for high-dimensional data
9401 sets. Surrogate variables are covariates constructed directly from
9402 high-dimensional data like gene expression/RNA sequencing/methylation/brain
9403 imaging data that can be used in subsequent analyses to adjust for unknown,
9404 unmodeled, or latent sources of noise.")
9405 (license license:artistic2.0)))
9406
9407 (define-public r-seqminer
9408 (package
9409 (name "r-seqminer")
9410 (version "7.1")
9411 (source
9412 (origin
9413 (method url-fetch)
9414 (uri (cran-uri "seqminer" version))
9415 (sha256
9416 (base32
9417 "1jydcpkw4rwfp983j83kipvsvr10as9pb49zzn3c2v09k1gh3ymy"))))
9418 (build-system r-build-system)
9419 (inputs
9420 `(("zlib" ,zlib)))
9421 (home-page "http://seqminer.genomic.codes")
9422 (synopsis "Read nucleotide sequence data (VCF, BCF, and METAL formats)")
9423 (description
9424 "This package provides tools to integrate nucleotide sequencing
9425 data (variant call format, e.g. VCF or BCF) or meta-analysis results in R.")
9426 ;; Any version of the GPL is acceptable
9427 (license (list license:gpl2+ license:gpl3+))))
9428
9429 (define-public r-raremetals2
9430 (package
9431 (name "r-raremetals2")
9432 (version "0.1")
9433 (source
9434 (origin
9435 (method url-fetch)
9436 (uri (string-append "http://genome.sph.umich.edu/w/images/"
9437 "b/b7/RareMETALS2_" version ".tar.gz"))
9438 (sha256
9439 (base32
9440 "0z5ljcgvnm06ja9lm85a3cniq7slxcy37aqqkxrdidr79an5fs4s"))))
9441 (properties `((upstream-name . "RareMETALS2")))
9442 (build-system r-build-system)
9443 (propagated-inputs
9444 `(("r-seqminer" ,r-seqminer)
9445 ("r-mvtnorm" ,r-mvtnorm)
9446 ("r-mass" ,r-mass)
9447 ("r-compquadform" ,r-compquadform)
9448 ("r-getopt" ,r-getopt)))
9449 (home-page "http://genome.sph.umich.edu/wiki/RareMETALS2")
9450 (synopsis "Analyze gene-level association tests for binary trait")
9451 (description
9452 "The R package rareMETALS2 is an extension of the R package rareMETALS.
9453 It was designed to meta-analyze gene-level association tests for binary trait.
9454 While rareMETALS offers a near-complete solution for meta-analysis of
9455 gene-level tests for quantitative trait, it does not offer the optimal
9456 solution for binary trait. The package rareMETALS2 offers improved features
9457 for analyzing gene-level association tests in meta-analyses for binary
9458 trait.")
9459 (license license:gpl3)))
9460
9461 (define-public r-maldiquant
9462 (package
9463 (name "r-maldiquant")
9464 (version "1.18")
9465 (source
9466 (origin
9467 (method url-fetch)
9468 (uri (cran-uri "MALDIquant" version))
9469 (sha256
9470 (base32
9471 "18nl214xjsxkcpbg79jkmw0yznwm5szyh2qb84n7ip46mm779ha6"))))
9472 (properties `((upstream-name . "MALDIquant")))
9473 (build-system r-build-system)
9474 (home-page "https://cran.r-project.org/web/packages/MALDIquant")
9475 (synopsis "Quantitative analysis of mass spectrometry data")
9476 (description
9477 "This package provides a complete analysis pipeline for matrix-assisted
9478 laser desorption/ionization-time-of-flight (MALDI-TOF) and other
9479 two-dimensional mass spectrometry data. In addition to commonly used plotting
9480 and processing methods it includes distinctive features, namely baseline
9481 subtraction methods such as morphological filters (TopHat) or the
9482 statistics-sensitive non-linear iterative peak-clipping algorithm (SNIP), peak
9483 alignment using warping functions, handling of replicated measurements as well
9484 as allowing spectra with different resolutions.")
9485 (license license:gpl3+)))
9486
9487 (define-public r-protgenerics
9488 (package
9489 (name "r-protgenerics")
9490 (version "1.14.0")
9491 (source
9492 (origin
9493 (method url-fetch)
9494 (uri (bioconductor-uri "ProtGenerics" version))
9495 (sha256
9496 (base32
9497 "053mmxhzncqgigl2iqjlq56qzimlw2zzw31wpzw19rf7rld1vi3b"))))
9498 (properties `((upstream-name . "ProtGenerics")))
9499 (build-system r-build-system)
9500 (home-page "https://github.com/lgatto/ProtGenerics")
9501 (synopsis "S4 generic functions for proteomics infrastructure")
9502 (description
9503 "This package provides S4 generic functions needed by Bioconductor
9504 proteomics packages.")
9505 (license license:artistic2.0)))
9506
9507 (define-public r-mzr
9508 (package
9509 (name "r-mzr")
9510 (version "2.16.1")
9511 (source
9512 (origin
9513 (method url-fetch)
9514 (uri (bioconductor-uri "mzR" version))
9515 (sha256
9516 (base32
9517 "0mlwg646k49klxrznckzfv54a9mz6irj42fqpaaa0xjm6cw2lwaa"))
9518 (modules '((guix build utils)))
9519 (snippet
9520 '(begin
9521 (delete-file-recursively "src/boost")
9522 #t))))
9523 (properties `((upstream-name . "mzR")))
9524 (build-system r-build-system)
9525 (arguments
9526 `(#:phases
9527 (modify-phases %standard-phases
9528 (add-after 'unpack 'use-system-boost
9529 (lambda _
9530 (substitute* "src/Makevars"
9531 (("\\./boost/libs.*") "")
9532 (("ARCH_OBJS=" line)
9533 (string-append line
9534 "\nARCH_LIBS=-lboost_system -lboost_regex \
9535 -lboost_iostreams -lboost_thread -lboost_filesystem -lboost_chrono\n")))
9536 #t)))))
9537 (inputs
9538 `(("boost" ,boost) ; use this instead of the bundled boost sources
9539 ("zlib" ,zlib)))
9540 (propagated-inputs
9541 `(("r-biobase" ,r-biobase)
9542 ("r-biocgenerics" ,r-biocgenerics)
9543 ("r-ncdf4" ,r-ncdf4)
9544 ("r-protgenerics" ,r-protgenerics)
9545 ("r-rcpp" ,r-rcpp)
9546 ("r-rhdf5lib" ,r-rhdf5lib)
9547 ("r-zlibbioc" ,r-zlibbioc)))
9548 (home-page "https://github.com/sneumann/mzR/")
9549 (synopsis "Parser for mass spectrometry data files")
9550 (description
9551 "The mzR package provides a unified API to the common file formats and
9552 parsers available for mass spectrometry data. It comes with a wrapper for the
9553 ISB random access parser for mass spectrometry mzXML, mzData and mzML files.
9554 The package contains the original code written by the ISB, and a subset of the
9555 proteowizard library for mzML and mzIdentML. The netCDF reading code has
9556 previously been used in XCMS.")
9557 (license license:artistic2.0)))
9558
9559 (define-public r-affyio
9560 (package
9561 (name "r-affyio")
9562 (version "1.52.0")
9563 (source
9564 (origin
9565 (method url-fetch)
9566 (uri (bioconductor-uri "affyio" version))
9567 (sha256
9568 (base32
9569 "1s4zp1211vf0krxzch9v3q3r6vs8hihqppq18i2fpvwlknfja7c1"))))
9570 (build-system r-build-system)
9571 (propagated-inputs
9572 `(("r-zlibbioc" ,r-zlibbioc)))
9573 (inputs
9574 `(("zlib" ,zlib)))
9575 (home-page "https://github.com/bmbolstad/affyio")
9576 (synopsis "Tools for parsing Affymetrix data files")
9577 (description
9578 "This package provides routines for parsing Affymetrix data files based
9579 upon file format information. The primary focus is on accessing the CEL and
9580 CDF file formats.")
9581 (license license:lgpl2.0+)))
9582
9583 (define-public r-affy
9584 (package
9585 (name "r-affy")
9586 (version "1.60.0")
9587 (source
9588 (origin
9589 (method url-fetch)
9590 (uri (bioconductor-uri "affy" version))
9591 (sha256
9592 (base32
9593 "0x8h4fk2igv7vykqfvf6v9whmx3344v5rf3gyfajd431xkjldz6k"))))
9594 (build-system r-build-system)
9595 (propagated-inputs
9596 `(("r-affyio" ,r-affyio)
9597 ("r-biobase" ,r-biobase)
9598 ("r-biocgenerics" ,r-biocgenerics)
9599 ("r-biocmanager" ,r-biocmanager)
9600 ("r-preprocesscore" ,r-preprocesscore)
9601 ("r-zlibbioc" ,r-zlibbioc)))
9602 (inputs
9603 `(("zlib" ,zlib)))
9604 (home-page "https://bioconductor.org/packages/affy")
9605 (synopsis "Methods for affymetrix oligonucleotide arrays")
9606 (description
9607 "This package contains functions for exploratory oligonucleotide array
9608 analysis.")
9609 (license license:lgpl2.0+)))
9610
9611 (define-public r-vsn
9612 (package
9613 (name "r-vsn")
9614 (version "3.50.0")
9615 (source
9616 (origin
9617 (method url-fetch)
9618 (uri (bioconductor-uri "vsn" version))
9619 (sha256
9620 (base32
9621 "1g6qkpykw99jm2wv2i61dg2ffwk0n8fm4s5pm2q4c024vw5c9b69"))))
9622 (build-system r-build-system)
9623 (propagated-inputs
9624 `(("r-affy" ,r-affy)
9625 ("r-biobase" ,r-biobase)
9626 ("r-ggplot2" ,r-ggplot2)
9627 ("r-lattice" ,r-lattice)
9628 ("r-limma" ,r-limma)))
9629 (home-page "https://bioconductor.org/packages/release/bioc/html/vsn.html")
9630 (synopsis "Variance stabilization and calibration for microarray data")
9631 (description
9632 "The package implements a method for normalising microarray intensities,
9633 and works for single- and multiple-color arrays. It can also be used for data
9634 from other technologies, as long as they have similar format. The method uses
9635 a robust variant of the maximum-likelihood estimator for an
9636 additive-multiplicative error model and affine calibration. The model
9637 incorporates data calibration step (a.k.a. normalization), a model for the
9638 dependence of the variance on the mean intensity and a variance stabilizing
9639 data transformation. Differences between transformed intensities are
9640 analogous to \"normalized log-ratios\". However, in contrast to the latter,
9641 their variance is independent of the mean, and they are usually more sensitive
9642 and specific in detecting differential transcription.")
9643 (license license:artistic2.0)))
9644
9645 (define-public r-mzid
9646 (package
9647 (name "r-mzid")
9648 (version "1.20.1")
9649 (source
9650 (origin
9651 (method url-fetch)
9652 (uri (bioconductor-uri "mzID" version))
9653 (sha256
9654 (base32
9655 "15yd4bdxprw3kg7zj2k652y3yr3si781iw28jqvnkm0gsc23rd0c"))))
9656 (properties `((upstream-name . "mzID")))
9657 (build-system r-build-system)
9658 (propagated-inputs
9659 `(("r-doparallel" ,r-doparallel)
9660 ("r-foreach" ,r-foreach)
9661 ("r-iterators" ,r-iterators)
9662 ("r-plyr" ,r-plyr)
9663 ("r-protgenerics" ,r-protgenerics)
9664 ("r-rcpp" ,r-rcpp)
9665 ("r-xml" ,r-xml)))
9666 (home-page "https://bioconductor.org/packages/mzID")
9667 (synopsis "Parser for mzIdentML files")
9668 (description
9669 "This package provides a parser for mzIdentML files implemented using the
9670 XML package. The parser tries to be general and able to handle all types of
9671 mzIdentML files with the drawback of having less pretty output than a vendor
9672 specific parser.")
9673 (license license:gpl2+)))
9674
9675 (define-public r-pcamethods
9676 (package
9677 (name "r-pcamethods")
9678 (version "1.74.0")
9679 (source
9680 (origin
9681 (method url-fetch)
9682 (uri (bioconductor-uri "pcaMethods" version))
9683 (sha256
9684 (base32
9685 "0ik82s9bsdj4a1mmv0a3k6yisa92mxx7maf3dvip1r8gqlm3dyng"))))
9686 (properties `((upstream-name . "pcaMethods")))
9687 (build-system r-build-system)
9688 (propagated-inputs
9689 `(("r-biobase" ,r-biobase)
9690 ("r-biocgenerics" ,r-biocgenerics)
9691 ("r-mass" ,r-mass)
9692 ("r-rcpp" ,r-rcpp)))
9693 (home-page "https://github.com/hredestig/pcamethods")
9694 (synopsis "Collection of PCA methods")
9695 (description
9696 "This package provides Bayesian PCA, Probabilistic PCA, Nipals PCA,
9697 Inverse Non-Linear PCA and the conventional SVD PCA. A cluster based method
9698 for missing value estimation is included for comparison. BPCA, PPCA and
9699 NipalsPCA may be used to perform PCA on incomplete data as well as for
9700 accurate missing value estimation. A set of methods for printing and plotting
9701 the results is also provided. All PCA methods make use of the same data
9702 structure (pcaRes) to provide a common interface to the PCA results.")
9703 (license license:gpl3+)))
9704
9705 (define-public r-msnbase
9706 (package
9707 (name "r-msnbase")
9708 (version "2.8.3")
9709 (source
9710 (origin
9711 (method url-fetch)
9712 (uri (bioconductor-uri "MSnbase" version))
9713 (sha256
9714 (base32
9715 "1kl1d7byphnfpmbl5fzbgs68dxskhpsdyx7ka51bpfn0nv3pp492"))))
9716 (properties `((upstream-name . "MSnbase")))
9717 (build-system r-build-system)
9718 (propagated-inputs
9719 `(("r-affy" ,r-affy)
9720 ("r-biobase" ,r-biobase)
9721 ("r-biocgenerics" ,r-biocgenerics)
9722 ("r-biocparallel" ,r-biocparallel)
9723 ("r-digest" ,r-digest)
9724 ("r-ggplot2" ,r-ggplot2)
9725 ("r-impute" ,r-impute)
9726 ("r-iranges" ,r-iranges)
9727 ("r-lattice" ,r-lattice)
9728 ("r-maldiquant" ,r-maldiquant)
9729 ("r-mass" ,r-mass)
9730 ("r-mzid" ,r-mzid)
9731 ("r-mzr" ,r-mzr)
9732 ("r-pcamethods" ,r-pcamethods)
9733 ("r-plyr" ,r-plyr)
9734 ("r-preprocesscore" ,r-preprocesscore)
9735 ("r-protgenerics" ,r-protgenerics)
9736 ("r-rcpp" ,r-rcpp)
9737 ("r-s4vectors" ,r-s4vectors)
9738 ("r-scales" ,r-scales)
9739 ("r-vsn" ,r-vsn)
9740 ("r-xml" ,r-xml)))
9741 (home-page "https://github.com/lgatto/MSnbase")
9742 (synopsis "Base functions and classes for MS-based proteomics")
9743 (description
9744 "This package provides basic plotting, data manipulation and processing
9745 of mass spectrometry based proteomics data.")
9746 (license license:artistic2.0)))
9747
9748 (define-public r-msnid
9749 (package
9750 (name "r-msnid")
9751 (version "1.16.1")
9752 (source
9753 (origin
9754 (method url-fetch)
9755 (uri (bioconductor-uri "MSnID" version))
9756 (sha256
9757 (base32
9758 "077n6ljcnnl7q4w0qj8v46vm4sjk9vzzfqf7wsc6lz0wmyzqdng3"))))
9759 (properties `((upstream-name . "MSnID")))
9760 (build-system r-build-system)
9761 (propagated-inputs
9762 `(("r-biobase" ,r-biobase)
9763 ("r-data-table" ,r-data-table)
9764 ("r-doparallel" ,r-doparallel)
9765 ("r-dplyr" ,r-dplyr)
9766 ("r-foreach" ,r-foreach)
9767 ("r-iterators" ,r-iterators)
9768 ("r-msnbase" ,r-msnbase)
9769 ("r-mzid" ,r-mzid)
9770 ("r-mzr" ,r-mzr)
9771 ("r-protgenerics" ,r-protgenerics)
9772 ("r-r-cache" ,r-r-cache)
9773 ("r-rcpp" ,r-rcpp)
9774 ("r-reshape2" ,r-reshape2)))
9775 (home-page "https://bioconductor.org/packages/MSnID")
9776 (synopsis "Utilities for LC-MSn proteomics identifications")
9777 (description
9778 "This package extracts @dfn{tandem mass spectrometry} (MS/MS) ID data
9779 from mzIdentML (leveraging the mzID package) or text files. After collating
9780 the search results from multiple datasets it assesses their identification
9781 quality and optimize filtering criteria to achieve the maximum number of
9782 identifications while not exceeding a specified false discovery rate. It also
9783 contains a number of utilities to explore the MS/MS results and assess missed
9784 and irregular enzymatic cleavages, mass measurement accuracy, etc.")
9785 (license license:artistic2.0)))
9786
9787 (define-public r-seurat
9788 (package
9789 (name "r-seurat")
9790 (version "2.3.4")
9791 (source (origin
9792 (method url-fetch)
9793 (uri (cran-uri "Seurat" version))
9794 (sha256
9795 (base32
9796 "0l8bv4i9nzz26mirnva10mq6pimibj24vk7vpvfypgn7xk4942hd"))))
9797 (properties `((upstream-name . "Seurat")))
9798 (build-system r-build-system)
9799 (propagated-inputs
9800 `(("r-ape" ,r-ape)
9801 ("r-cluster" ,r-cluster)
9802 ("r-cowplot" ,r-cowplot)
9803 ("r-dosnow" ,r-dosnow)
9804 ("r-dplyr" ,r-dplyr)
9805 ("r-dtw" ,r-dtw)
9806 ("r-fitdistrplus" ,r-fitdistrplus)
9807 ("r-foreach" ,r-foreach)
9808 ("r-fpc" ,r-fpc)
9809 ("r-ggplot2" ,r-ggplot2)
9810 ("r-ggridges" ,r-ggridges)
9811 ("r-gplots" ,r-gplots)
9812 ("r-hdf5r" ,r-hdf5r)
9813 ("r-hmisc" ,r-hmisc)
9814 ("r-httr" ,r-httr)
9815 ("r-ica" ,r-ica)
9816 ("r-igraph" ,r-igraph)
9817 ("r-irlba" ,r-irlba)
9818 ("r-lars" ,r-lars)
9819 ("r-lmtest" ,r-lmtest)
9820 ("r-mass" ,r-mass)
9821 ("r-matrix" ,r-matrix)
9822 ("r-metap" ,r-metap)
9823 ("r-mixtools" ,r-mixtools)
9824 ("r-pbapply" ,r-pbapply)
9825 ("r-plotly" ,r-plotly)
9826 ("r-png" ,r-png)
9827 ("r-rann" ,r-rann)
9828 ("r-rcolorbrewer" ,r-rcolorbrewer)
9829 ("r-rcpp" ,r-rcpp)
9830 ("r-rcppeigen" ,r-rcppeigen)
9831 ("r-rcppprogress" ,r-rcppprogress)
9832 ("r-reshape2" ,r-reshape2)
9833 ("r-reticulate" ,r-reticulate)
9834 ("r-rocr" ,r-rocr)
9835 ("r-rtsne" ,r-rtsne)
9836 ("r-sdmtools" ,r-sdmtools)
9837 ("r-tidyr" ,r-tidyr)
9838 ("r-tsne" ,r-tsne)))
9839 (home-page "http://www.satijalab.org/seurat")
9840 (synopsis "Seurat is an R toolkit for single cell genomics")
9841 (description
9842 "This package is an R package designed for QC, analysis, and
9843 exploration of single cell RNA-seq data. It easily enables widely-used
9844 analytical techniques, including the identification of highly variable genes,
9845 dimensionality reduction; PCA, ICA, t-SNE, standard unsupervised clustering
9846 algorithms; density clustering, hierarchical clustering, k-means, and the
9847 discovery of differentially expressed genes and markers.")
9848 (license license:gpl3)))
9849
9850 (define-public r-aroma-light
9851 (package
9852 (name "r-aroma-light")
9853 (version "3.12.0")
9854 (source
9855 (origin
9856 (method url-fetch)
9857 (uri (bioconductor-uri "aroma.light" version))
9858 (sha256
9859 (base32
9860 "0vfifgpqxjjncbiv6gvlk9jmj14j90r9f30bqk3ks9v1csjnjhrb"))))
9861 (properties `((upstream-name . "aroma.light")))
9862 (build-system r-build-system)
9863 (propagated-inputs
9864 `(("r-matrixstats" ,r-matrixstats)
9865 ("r-r-methodss3" ,r-r-methodss3)
9866 ("r-r-oo" ,r-r-oo)
9867 ("r-r-utils" ,r-r-utils)))
9868 (home-page "https://github.com/HenrikBengtsson/aroma.light")
9869 (synopsis "Methods for normalization and visualization of microarray data")
9870 (description
9871 "This package provides methods for microarray analysis that take basic
9872 data types such as matrices and lists of vectors. These methods can be used
9873 standalone, be utilized in other packages, or be wrapped up in higher-level
9874 classes.")
9875 (license license:gpl2+)))
9876
9877 (define-public r-deseq
9878 (package
9879 (name "r-deseq")
9880 (version "1.34.1")
9881 (source
9882 (origin
9883 (method url-fetch)
9884 (uri (bioconductor-uri "DESeq" version))
9885 (sha256
9886 (base32
9887 "0bpiixczbhlyaiinpbl6xrpmv72k2bq76bxnw06gl35m4pgs94p2"))))
9888 (properties `((upstream-name . "DESeq")))
9889 (build-system r-build-system)
9890 (propagated-inputs
9891 `(("r-biobase" ,r-biobase)
9892 ("r-biocgenerics" ,r-biocgenerics)
9893 ("r-genefilter" ,r-genefilter)
9894 ("r-geneplotter" ,r-geneplotter)
9895 ("r-lattice" ,r-lattice)
9896 ("r-locfit" ,r-locfit)
9897 ("r-mass" ,r-mass)
9898 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9899 (home-page "http://www-huber.embl.de/users/anders/DESeq")
9900 (synopsis "Differential gene expression analysis")
9901 (description
9902 "This package provides tools for estimating variance-mean dependence in
9903 count data from high-throughput genetic sequencing assays and for testing for
9904 differential expression based on a model using the negative binomial
9905 distribution.")
9906 (license license:gpl3+)))
9907
9908 (define-public r-edaseq
9909 (package
9910 (name "r-edaseq")
9911 (version "2.16.3")
9912 (source
9913 (origin
9914 (method url-fetch)
9915 (uri (bioconductor-uri "EDASeq" version))
9916 (sha256
9917 (base32
9918 "0559ph606ps2g9bwbl0a2knkcs5w581n9igngpjxvk5p56k24gb5"))))
9919 (properties `((upstream-name . "EDASeq")))
9920 (build-system r-build-system)
9921 (propagated-inputs
9922 `(("r-annotationdbi" ,r-annotationdbi)
9923 ("r-aroma-light" ,r-aroma-light)
9924 ("r-biobase" ,r-biobase)
9925 ("r-biocgenerics" ,r-biocgenerics)
9926 ("r-biocmanager" ,r-biocmanager)
9927 ("r-biomart" ,r-biomart)
9928 ("r-biostrings" ,r-biostrings)
9929 ("r-deseq" ,r-deseq)
9930 ("r-genomicfeatures" ,r-genomicfeatures)
9931 ("r-genomicranges" ,r-genomicranges)
9932 ("r-iranges" ,r-iranges)
9933 ("r-rsamtools" ,r-rsamtools)
9934 ("r-shortread" ,r-shortread)))
9935 (home-page "https://github.com/drisso/EDASeq")
9936 (synopsis "Exploratory data analysis and normalization for RNA-Seq")
9937 (description
9938 "This package provides support for numerical and graphical summaries of
9939 RNA-Seq genomic read data. Provided within-lane normalization procedures to
9940 adjust for GC-content effect (or other gene-level effects) on read counts:
9941 loess robust local regression, global-scaling, and full-quantile
9942 normalization. Between-lane normalization procedures to adjust for
9943 distributional differences between lanes (e.g., sequencing depth):
9944 global-scaling and full-quantile normalization.")
9945 (license license:artistic2.0)))
9946
9947 (define-public r-interactivedisplaybase
9948 (package
9949 (name "r-interactivedisplaybase")
9950 (version "1.20.0")
9951 (source
9952 (origin
9953 (method url-fetch)
9954 (uri (bioconductor-uri "interactiveDisplayBase" version))
9955 (sha256
9956 (base32
9957 "04xz3dkwan2s5ic1mwkdfnggm0l41mgqfagx160bcsrpkw6z7ark"))))
9958 (properties
9959 `((upstream-name . "interactiveDisplayBase")))
9960 (build-system r-build-system)
9961 (propagated-inputs
9962 `(("r-biocgenerics" ,r-biocgenerics)
9963 ("r-shiny" ,r-shiny)))
9964 (home-page "https://bioconductor.org/packages/interactiveDisplayBase")
9965 (synopsis "Base package for web displays of Bioconductor objects")
9966 (description
9967 "This package contains the basic methods needed to generate interactive
9968 Shiny-based display methods for Bioconductor objects.")
9969 (license license:artistic2.0)))
9970
9971 (define-public r-annotationhub
9972 (package
9973 (name "r-annotationhub")
9974 (version "2.14.2")
9975 (source
9976 (origin
9977 (method url-fetch)
9978 (uri (bioconductor-uri "AnnotationHub" version))
9979 (sha256
9980 (base32
9981 "17fgrvcnbii9siv5rq5j09bxhqffx47f6jf10418qvr7hh61ic1g"))))
9982 (properties `((upstream-name . "AnnotationHub")))
9983 (build-system r-build-system)
9984 (propagated-inputs
9985 `(("r-annotationdbi" ,r-annotationdbi)
9986 ("r-biocgenerics" ,r-biocgenerics)
9987 ("r-biocmanager" ,r-biocmanager)
9988 ("r-curl" ,r-curl)
9989 ("r-httr" ,r-httr)
9990 ("r-interactivedisplaybase" ,r-interactivedisplaybase)
9991 ("r-rsqlite" ,r-rsqlite)
9992 ("r-s4vectors" ,r-s4vectors)
9993 ("r-yaml" ,r-yaml)))
9994 (home-page "https://bioconductor.org/packages/AnnotationHub")
9995 (synopsis "Client to access AnnotationHub resources")
9996 (description
9997 "This package provides a client for the Bioconductor AnnotationHub web
9998 resource. The AnnotationHub web resource provides a central location where
9999 genomic files (e.g. VCF, bed, wig) and other resources from standard
10000 locations (e.g. UCSC, Ensembl) can be discovered. The resource includes
10001 metadata about each resource, e.g., a textual description, tags, and date of
10002 modification. The client creates and manages a local cache of files retrieved
10003 by the user, helping with quick and reproducible access.")
10004 (license license:artistic2.0)))
10005
10006 (define-public r-fastseg
10007 (package
10008 (name "r-fastseg")
10009 (version "1.28.0")
10010 (source
10011 (origin
10012 (method url-fetch)
10013 (uri (bioconductor-uri "fastseg" version))
10014 (sha256
10015 (base32
10016 "1l8mdjpfpgwqdss2ywjkb8b4h55wf8v6kmyxdlvy04ds2hj16sb1"))))
10017 (build-system r-build-system)
10018 (propagated-inputs
10019 `(("r-biobase" ,r-biobase)
10020 ("r-biocgenerics" ,r-biocgenerics)
10021 ("r-genomicranges" ,r-genomicranges)
10022 ("r-iranges" ,r-iranges)
10023 ("r-s4vectors" ,r-s4vectors)))
10024 (home-page "http://www.bioinf.jku.at/software/fastseg/index.html")
10025 (synopsis "Fast segmentation algorithm for genetic sequencing data")
10026 (description
10027 "Fastseg implements a very fast and efficient segmentation algorithm.
10028 It can segment data from DNA microarrays and data from next generation
10029 sequencing for example to detect copy number segments. Further it can segment
10030 data from RNA microarrays like tiling arrays to identify transcripts. Most
10031 generally, it can segment data given as a matrix or as a vector. Various data
10032 formats can be used as input to fastseg like expression set objects for
10033 microarrays or GRanges for sequencing data.")
10034 (license license:lgpl2.0+)))
10035
10036 (define-public r-keggrest
10037 (package
10038 (name "r-keggrest")
10039 (version "1.22.0")
10040 (source
10041 (origin
10042 (method url-fetch)
10043 (uri (bioconductor-uri "KEGGREST" version))
10044 (sha256
10045 (base32
10046 "0blpd5a7whd2sswfhqd17h58hg06ymaf80gapdr9ja43hnnlj309"))))
10047 (properties `((upstream-name . "KEGGREST")))
10048 (build-system r-build-system)
10049 (propagated-inputs
10050 `(("r-biostrings" ,r-biostrings)
10051 ("r-httr" ,r-httr)
10052 ("r-png" ,r-png)))
10053 (home-page "https://bioconductor.org/packages/KEGGREST")
10054 (synopsis "Client-side REST access to KEGG")
10055 (description
10056 "This package provides a package that provides a client interface to the
10057 @dfn{Kyoto Encyclopedia of Genes and Genomes} (KEGG) REST server.")
10058 (license license:artistic2.0)))
10059
10060 (define-public r-gage
10061 (package
10062 (name "r-gage")
10063 (version "2.32.1")
10064 (source
10065 (origin
10066 (method url-fetch)
10067 (uri (bioconductor-uri "gage" version))
10068 (sha256
10069 (base32
10070 "02g796sb1800ff0f1mq9f2m5wwzpf8pnfzajs49i68dhq2hm01a8"))))
10071 (build-system r-build-system)
10072 (propagated-inputs
10073 `(("r-annotationdbi" ,r-annotationdbi)
10074 ("r-graph" ,r-graph)
10075 ("r-keggrest" ,r-keggrest)))
10076 (home-page "http://www.biomedcentral.com/1471-2105/10/161")
10077 (synopsis "Generally applicable gene-set enrichment for pathway analysis")
10078 (description
10079 "GAGE is a published method for gene set (enrichment or GSEA) or pathway
10080 analysis. GAGE is generally applicable independent of microarray or RNA-Seq
10081 data attributes including sample sizes, experimental designs, assay platforms,
10082 and other types of heterogeneity. The gage package provides functions for
10083 basic GAGE analysis, result processing and presentation. In addition, it
10084 provides demo microarray data and commonly used gene set data based on KEGG
10085 pathways and GO terms. These funtions and data are also useful for gene set
10086 analysis using other methods.")
10087 (license license:gpl2+)))
10088
10089 (define-public r-genomicfiles
10090 (package
10091 (name "r-genomicfiles")
10092 (version "1.18.0")
10093 (source
10094 (origin
10095 (method url-fetch)
10096 (uri (bioconductor-uri "GenomicFiles" version))
10097 (sha256
10098 (base32
10099 "0qf2yj4lfnnk64fk125n8sqms01shfqiik04nasx2z3k129ykpxp"))))
10100 (properties `((upstream-name . "GenomicFiles")))
10101 (build-system r-build-system)
10102 (propagated-inputs
10103 `(("r-biocgenerics" ,r-biocgenerics)
10104 ("r-biocparallel" ,r-biocparallel)
10105 ("r-genomeinfodb" ,r-genomeinfodb)
10106 ("r-genomicalignments" ,r-genomicalignments)
10107 ("r-genomicranges" ,r-genomicranges)
10108 ("r-iranges" ,r-iranges)
10109 ("r-rsamtools" ,r-rsamtools)
10110 ("r-rtracklayer" ,r-rtracklayer)
10111 ("r-s4vectors" ,r-s4vectors)
10112 ("r-summarizedexperiment" ,r-summarizedexperiment)
10113 ("r-variantannotation" ,r-variantannotation)))
10114 (home-page "https://bioconductor.org/packages/GenomicFiles")
10115 (synopsis "Distributed computing by file or by range")
10116 (description
10117 "This package provides infrastructure for parallel computations
10118 distributed by file or by range. User defined mapper and reducer functions
10119 provide added flexibility for data combination and manipulation.")
10120 (license license:artistic2.0)))
10121
10122 (define-public r-complexheatmap
10123 (package
10124 (name "r-complexheatmap")
10125 (version "1.20.0")
10126 (source
10127 (origin
10128 (method url-fetch)
10129 (uri (bioconductor-uri "ComplexHeatmap" version))
10130 (sha256
10131 (base32
10132 "0s01dzcfj1lmpqfpsbqw7r4858krfzy499lz4cwx4fq3mbyvy2aj"))))
10133 (properties
10134 `((upstream-name . "ComplexHeatmap")))
10135 (build-system r-build-system)
10136 (propagated-inputs
10137 `(("r-circlize" ,r-circlize)
10138 ("r-colorspace" ,r-colorspace)
10139 ("r-getoptlong" ,r-getoptlong)
10140 ("r-globaloptions" ,r-globaloptions)
10141 ("r-rcolorbrewer" ,r-rcolorbrewer)))
10142 (home-page
10143 "https://github.com/jokergoo/ComplexHeatmap")
10144 (synopsis "Making Complex Heatmaps")
10145 (description
10146 "Complex heatmaps are efficient to visualize associations between
10147 different sources of data sets and reveal potential structures. This package
10148 provides a highly flexible way to arrange multiple heatmaps and supports
10149 self-defined annotation graphics.")
10150 (license license:gpl2+)))
10151
10152 (define-public r-dirichletmultinomial
10153 (package
10154 (name "r-dirichletmultinomial")
10155 (version "1.24.1")
10156 (source
10157 (origin
10158 (method url-fetch)
10159 (uri (bioconductor-uri "DirichletMultinomial" version))
10160 (sha256
10161 (base32
10162 "0vazfjzqy78p5g7dnv30lbqbj4bhq4zafd2wh6gdwy2il1fd78xa"))))
10163 (properties
10164 `((upstream-name . "DirichletMultinomial")))
10165 (build-system r-build-system)
10166 (inputs
10167 `(("gsl" ,gsl)))
10168 (propagated-inputs
10169 `(("r-biocgenerics" ,r-biocgenerics)
10170 ("r-iranges" ,r-iranges)
10171 ("r-s4vectors" ,r-s4vectors)))
10172 (home-page "https://bioconductor.org/packages/DirichletMultinomial")
10173 (synopsis "Dirichlet-Multinomial mixture models for microbiome data")
10174 (description
10175 "Dirichlet-multinomial mixture models can be used to describe variability
10176 in microbial metagenomic data. This package is an interface to code
10177 originally made available by Holmes, Harris, and Quince, 2012, PLoS ONE 7(2):
10178 1-15.")
10179 (license license:lgpl3)))
10180
10181 (define-public r-ensembldb
10182 (package
10183 (name "r-ensembldb")
10184 (version "2.6.3")
10185 (source
10186 (origin
10187 (method url-fetch)
10188 (uri (bioconductor-uri "ensembldb" version))
10189 (sha256
10190 (base32
10191 "0kzdsfk6mdwlp57sw4j2cf7lx5nc67v5j0xr3iag9kzmgikaq1lb"))))
10192 (build-system r-build-system)
10193 (propagated-inputs
10194 `(("r-annotationdbi" ,r-annotationdbi)
10195 ("r-annotationfilter" ,r-annotationfilter)
10196 ("r-biobase" ,r-biobase)
10197 ("r-biocgenerics" ,r-biocgenerics)
10198 ("r-biostrings" ,r-biostrings)
10199 ("r-curl" ,r-curl)
10200 ("r-dbi" ,r-dbi)
10201 ("r-genomeinfodb" ,r-genomeinfodb)
10202 ("r-genomicfeatures" ,r-genomicfeatures)
10203 ("r-genomicranges" ,r-genomicranges)
10204 ("r-iranges" ,r-iranges)
10205 ("r-protgenerics" ,r-protgenerics)
10206 ("r-rsamtools" ,r-rsamtools)
10207 ("r-rsqlite" ,r-rsqlite)
10208 ("r-rtracklayer" ,r-rtracklayer)
10209 ("r-s4vectors" ,r-s4vectors)))
10210 (home-page "https://github.com/jotsetung/ensembldb")
10211 (synopsis "Utilities to create and use Ensembl-based annotation databases")
10212 (description
10213 "The package provides functions to create and use transcript-centric
10214 annotation databases/packages. The annotation for the databases are directly
10215 fetched from Ensembl using their Perl API. The functionality and data is
10216 similar to that of the TxDb packages from the @code{GenomicFeatures} package,
10217 but, in addition to retrieve all gene/transcript models and annotations from
10218 the database, the @code{ensembldb} package also provides a filter framework
10219 allowing to retrieve annotations for specific entries like genes encoded on a
10220 chromosome region or transcript models of lincRNA genes.")
10221 ;; No version specified
10222 (license license:lgpl3+)))
10223
10224 (define-public r-organismdbi
10225 (package
10226 (name "r-organismdbi")
10227 (version "1.24.0")
10228 (source
10229 (origin
10230 (method url-fetch)
10231 (uri (bioconductor-uri "OrganismDbi" version))
10232 (sha256
10233 (base32
10234 "11pyv56cy4iy095h40k6k0mpjdlh6gsb4ld3s57nfa9nd4ypx3yi"))))
10235 (properties `((upstream-name . "OrganismDbi")))
10236 (build-system r-build-system)
10237 (propagated-inputs
10238 `(("r-annotationdbi" ,r-annotationdbi)
10239 ("r-biobase" ,r-biobase)
10240 ("r-biocgenerics" ,r-biocgenerics)
10241 ("r-biocmanager" ,r-biocmanager)
10242 ("r-dbi" ,r-dbi)
10243 ("r-genomicfeatures" ,r-genomicfeatures)
10244 ("r-genomicranges" ,r-genomicranges)
10245 ("r-graph" ,r-graph)
10246 ("r-iranges" ,r-iranges)
10247 ("r-rbgl" ,r-rbgl)
10248 ("r-s4vectors" ,r-s4vectors)))
10249 (home-page "https://bioconductor.org/packages/OrganismDbi")
10250 (synopsis "Software to enable the smooth interfacing of database packages")
10251 (description "The package enables a simple unified interface to several
10252 annotation packages each of which has its own schema by taking advantage of
10253 the fact that each of these packages implements a select methods.")
10254 (license license:artistic2.0)))
10255
10256 (define-public r-biovizbase
10257 (package
10258 (name "r-biovizbase")
10259 (version "1.30.1")
10260 (source
10261 (origin
10262 (method url-fetch)
10263 (uri (bioconductor-uri "biovizBase" version))
10264 (sha256
10265 (base32
10266 "0v5gvcx180qn5487i1dph9abadw3ggqwp5yzy41jswzbdc8q6sbm"))))
10267 (properties `((upstream-name . "biovizBase")))
10268 (build-system r-build-system)
10269 (propagated-inputs
10270 `(("r-annotationdbi" ,r-annotationdbi)
10271 ("r-annotationfilter" ,r-annotationfilter)
10272 ("r-biocgenerics" ,r-biocgenerics)
10273 ("r-biostrings" ,r-biostrings)
10274 ("r-dichromat" ,r-dichromat)
10275 ("r-ensembldb" ,r-ensembldb)
10276 ("r-genomeinfodb" ,r-genomeinfodb)
10277 ("r-genomicalignments" ,r-genomicalignments)
10278 ("r-genomicfeatures" ,r-genomicfeatures)
10279 ("r-genomicranges" ,r-genomicranges)
10280 ("r-hmisc" ,r-hmisc)
10281 ("r-iranges" ,r-iranges)
10282 ("r-rcolorbrewer" ,r-rcolorbrewer)
10283 ("r-rlang" ,r-rlang)
10284 ("r-rsamtools" ,r-rsamtools)
10285 ("r-s4vectors" ,r-s4vectors)
10286 ("r-scales" ,r-scales)
10287 ("r-summarizedexperiment" ,r-summarizedexperiment)
10288 ("r-variantannotation" ,r-variantannotation)))
10289 (home-page "https://bioconductor.org/packages/biovizBase")
10290 (synopsis "Basic graphic utilities for visualization of genomic data")
10291 (description
10292 "The biovizBase package is designed to provide a set of utilities, color
10293 schemes and conventions for genomic data. It serves as the base for various
10294 high-level packages for biological data visualization. This saves development
10295 effort and encourages consistency.")
10296 (license license:artistic2.0)))
10297
10298 (define-public r-ggbio
10299 (package
10300 (name "r-ggbio")
10301 (version "1.30.0")
10302 (source
10303 (origin
10304 (method url-fetch)
10305 (uri (bioconductor-uri "ggbio" version))
10306 (sha256
10307 (base32
10308 "0wq49qqzkcn8s19xgaxf2s1j1a563d7pbhhvris6fhxfdjsz4934"))))
10309 (build-system r-build-system)
10310 (propagated-inputs
10311 `(("r-annotationdbi" ,r-annotationdbi)
10312 ("r-annotationfilter" ,r-annotationfilter)
10313 ("r-biobase" ,r-biobase)
10314 ("r-biocgenerics" ,r-biocgenerics)
10315 ("r-biostrings" ,r-biostrings)
10316 ("r-biovizbase" ,r-biovizbase)
10317 ("r-bsgenome" ,r-bsgenome)
10318 ("r-ensembldb" ,r-ensembldb)
10319 ("r-genomeinfodb" ,r-genomeinfodb)
10320 ("r-genomicalignments" ,r-genomicalignments)
10321 ("r-genomicfeatures" ,r-genomicfeatures)
10322 ("r-genomicranges" ,r-genomicranges)
10323 ("r-ggally" ,r-ggally)
10324 ("r-ggplot2" ,r-ggplot2)
10325 ("r-gridextra" ,r-gridextra)
10326 ("r-gtable" ,r-gtable)
10327 ("r-hmisc" ,r-hmisc)
10328 ("r-iranges" ,r-iranges)
10329 ("r-organismdbi" ,r-organismdbi)
10330 ("r-reshape2" ,r-reshape2)
10331 ("r-rlang" ,r-rlang)
10332 ("r-rsamtools" ,r-rsamtools)
10333 ("r-rtracklayer" ,r-rtracklayer)
10334 ("r-s4vectors" ,r-s4vectors)
10335 ("r-scales" ,r-scales)
10336 ("r-summarizedexperiment" ,r-summarizedexperiment)
10337 ("r-variantannotation" ,r-variantannotation)))
10338 (home-page "http://www.tengfei.name/ggbio/")
10339 (synopsis "Visualization tools for genomic data")
10340 (description
10341 "The ggbio package extends and specializes the grammar of graphics for
10342 biological data. The graphics are designed to answer common scientific
10343 questions, in particular those often asked of high throughput genomics data.
10344 All core Bioconductor data structures are supported, where appropriate. The
10345 package supports detailed views of particular genomic regions, as well as
10346 genome-wide overviews. Supported overviews include ideograms and grand linear
10347 views. High-level plots include sequence fragment length, edge-linked
10348 interval to data view, mismatch pileup, and several splicing summaries.")
10349 (license license:artistic2.0)))
10350
10351 (define-public r-gprofiler
10352 (package
10353 (name "r-gprofiler")
10354 (version "0.6.7")
10355 (source
10356 (origin
10357 (method url-fetch)
10358 (uri (cran-uri "gProfileR" version))
10359 (sha256
10360 (base32
10361 "12nwidbnqmnfy5dnqga26byslvdnkrpz2fi19qfcby6xx0wbndk7"))))
10362 (properties `((upstream-name . "gProfileR")))
10363 (build-system r-build-system)
10364 (propagated-inputs
10365 `(("r-plyr" ,r-plyr)
10366 ("r-rcurl" ,r-rcurl)))
10367 (home-page "https://cran.r-project.org/web/packages/gProfileR/")
10368 (synopsis "Interface to the g:Profiler toolkit")
10369 (description
10370 "This package provides tools for functional enrichment analysis,
10371 gene identifier conversion and mapping homologous genes across related
10372 organisms via the @code{g:Profiler} toolkit.")
10373 (license license:gpl2+)))
10374
10375 (define-public r-gqtlbase
10376 (package
10377 (name "r-gqtlbase")
10378 (version "1.14.0")
10379 (source
10380 (origin
10381 (method url-fetch)
10382 (uri (bioconductor-uri "gQTLBase" version))
10383 (sha256
10384 (base32
10385 "1lbk1m1mkvbk30flk5pf3pcrnm2s0sj5r48kbjgad39dsvd8zgqx"))))
10386 (properties `((upstream-name . "gQTLBase")))
10387 (build-system r-build-system)
10388 (propagated-inputs
10389 `(("r-batchjobs" ,r-batchjobs)
10390 ("r-bbmisc" ,r-bbmisc)
10391 ("r-biocgenerics" ,r-biocgenerics)
10392 ("r-bit" ,r-bit)
10393 ("r-doparallel" ,r-doparallel)
10394 ("r-ff" ,r-ff)
10395 ("r-ffbase" ,r-ffbase)
10396 ("r-foreach" ,r-foreach)
10397 ("r-genomicfiles" ,r-genomicfiles)
10398 ("r-genomicranges" ,r-genomicranges)
10399 ("r-rtracklayer" ,r-rtracklayer)
10400 ("r-s4vectors" ,r-s4vectors)
10401 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10402 (home-page "https://bioconductor.org/packages/gQTLBase")
10403 (synopsis "Infrastructure for eQTL, mQTL and similar studies")
10404 (description
10405 "The purpose of this package is to simplify the storage and interrogation
10406 of @dfn{quantitative trait loci} (QTL) archives, such as eQTL, mQTL, dsQTL,
10407 and more.")
10408 (license license:artistic2.0)))
10409
10410 (define-public r-snpstats
10411 (package
10412 (name "r-snpstats")
10413 (version "1.32.0")
10414 (source
10415 (origin
10416 (method url-fetch)
10417 (uri (bioconductor-uri "snpStats" version))
10418 (sha256
10419 (base32
10420 "1pplx4pf9bqi7v5v1l74yknc1s61carvbqkf327ky7vbvp0bck33"))))
10421 (properties `((upstream-name . "snpStats")))
10422 (build-system r-build-system)
10423 (inputs `(("zlib" ,zlib)))
10424 (propagated-inputs
10425 `(("r-biocgenerics" ,r-biocgenerics)
10426 ("r-matrix" ,r-matrix)
10427 ("r-survival" ,r-survival)
10428 ("r-zlibbioc" ,r-zlibbioc)))
10429 (home-page "https://bioconductor.org/packages/snpStats")
10430 (synopsis "Methods for SNP association studies")
10431 (description
10432 "This package provides classes and statistical methods for large
10433 @dfn{single-nucleotide polymorphism} (SNP) association studies. This extends
10434 the earlier snpMatrix package, allowing for uncertainty in genotypes.")
10435 (license license:gpl3)))
10436
10437 (define-public r-homo-sapiens
10438 (package
10439 (name "r-homo-sapiens")
10440 (version "1.3.1")
10441 (source (origin
10442 (method url-fetch)
10443 ;; We cannot use bioconductor-uri here because this tarball is
10444 ;; located under "data/annotation/" instead of "bioc/".
10445 (uri (string-append "http://www.bioconductor.org/packages/"
10446 "release/data/annotation/src/contrib/"
10447 "Homo.sapiens_"
10448 version ".tar.gz"))
10449 (sha256
10450 (base32
10451 "151vj7h5p1c8yd5swrchk46z469p135wk50hvkl0nhgndvy0jj01"))))
10452 (properties
10453 `((upstream-name . "Homo.sapiens")))
10454 (build-system r-build-system)
10455 (propagated-inputs
10456 `(("r-genomicfeatures" ,r-genomicfeatures)
10457 ("r-go-db" ,r-go-db)
10458 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
10459 ("r-txdb-hsapiens-ucsc-hg19-knowngene" ,r-txdb-hsapiens-ucsc-hg19-knowngene)
10460 ("r-organismdbi" ,r-organismdbi)
10461 ("r-annotationdbi" ,r-annotationdbi)))
10462 (home-page "https://bioconductor.org/packages/Homo.sapiens/")
10463 (synopsis "Annotation package for the Homo.sapiens object")
10464 (description
10465 "This package contains the Homo.sapiens object to access data from
10466 several related annotation packages.")
10467 (license license:artistic2.0)))
10468
10469 (define-public r-erma
10470 (package
10471 (name "r-erma")
10472 (version "0.14.0")
10473 (source
10474 (origin
10475 (method url-fetch)
10476 (uri (bioconductor-uri "erma" version))
10477 (sha256
10478 (base32
10479 "0hj9iz904rr1y66442lkxjywkw1ydyxxlhmjirawbf09ic5ad4g9"))))
10480 (build-system r-build-system)
10481 (propagated-inputs
10482 `(("r-annotationdbi" ,r-annotationdbi)
10483 ("r-biobase" ,r-biobase)
10484 ("r-biocgenerics" ,r-biocgenerics)
10485 ("r-biocparallel" ,r-biocparallel)
10486 ("r-genomeinfodb" ,r-genomeinfodb)
10487 ("r-genomicfiles" ,r-genomicfiles)
10488 ("r-genomicranges" ,r-genomicranges)
10489 ("r-ggplot2" ,r-ggplot2)
10490 ("r-homo-sapiens" ,r-homo-sapiens)
10491 ("r-iranges" ,r-iranges)
10492 ("r-rtracklayer" ,r-rtracklayer)
10493 ("r-s4vectors" ,r-s4vectors)
10494 ("r-shiny" ,r-shiny)
10495 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10496 (home-page "https://bioconductor.org/packages/erma")
10497 (synopsis "Epigenomic road map adventures")
10498 (description
10499 "The epigenomics road map describes locations of epigenetic marks in DNA
10500 from a variety of cell types. Of interest are locations of histone
10501 modifications, sites of DNA methylation, and regions of accessible chromatin.
10502 This package presents a selection of elements of the road map including
10503 metadata and outputs of the ChromImpute procedure applied to ENCODE cell lines
10504 by Ernst and Kellis.")
10505 (license license:artistic2.0)))
10506
10507 (define-public r-ldblock
10508 (package
10509 (name "r-ldblock")
10510 (version "1.12.0")
10511 (source
10512 (origin
10513 (method url-fetch)
10514 (uri (bioconductor-uri "ldblock" version))
10515 (sha256
10516 (base32
10517 "0xbf4pmhrk5fnd1iz5wzjvdr75v114bwpznhcig4wiqmxc27sips"))))
10518 (build-system r-build-system)
10519 (propagated-inputs
10520 `(("r-biocgenerics" ,r-biocgenerics)
10521 ("r-erma" ,r-erma)
10522 ("r-genomeinfodb" ,r-genomeinfodb)
10523 ("r-genomicfiles" ,r-genomicfiles)
10524 ("r-go-db" ,r-go-db)
10525 ("r-homo-sapiens" ,r-homo-sapiens)
10526 ("r-matrix" ,r-matrix)
10527 ("r-rsamtools" ,r-rsamtools)
10528 ("r-snpstats" ,r-snpstats)
10529 ("r-variantannotation" ,r-variantannotation)))
10530 (home-page "https://bioconductor.org/packages/ldblock")
10531 (synopsis "Data structures for linkage disequilibrium measures in populations")
10532 (description
10533 "This package defines data structures for @dfn{linkage
10534 disequilibrium} (LD) measures in populations. Its purpose is to simplify
10535 handling of existing population-level data for the purpose of flexibly
10536 defining LD blocks.")
10537 (license license:artistic2.0)))
10538
10539 (define-public r-gqtlstats
10540 (package
10541 (name "r-gqtlstats")
10542 (version "1.14.0")
10543 (source
10544 (origin
10545 (method url-fetch)
10546 (uri (bioconductor-uri "gQTLstats" version))
10547 (sha256
10548 (base32
10549 "1sg9kw59dlayj7qxql9pd93d4hmml504sa3kkfpzfh3xri7m5pxf"))))
10550 (properties `((upstream-name . "gQTLstats")))
10551 (build-system r-build-system)
10552 (propagated-inputs
10553 `(("r-annotationdbi" ,r-annotationdbi)
10554 ("r-batchjobs" ,r-batchjobs)
10555 ("r-bbmisc" ,r-bbmisc)
10556 ("r-beeswarm" ,r-beeswarm)
10557 ("r-biobase" ,r-biobase)
10558 ("r-biocgenerics" ,r-biocgenerics)
10559 ("r-doparallel" ,r-doparallel)
10560 ("r-dplyr" ,r-dplyr)
10561 ("r-erma" ,r-erma)
10562 ("r-ffbase" ,r-ffbase)
10563 ("r-foreach" ,r-foreach)
10564 ("r-genomeinfodb" ,r-genomeinfodb)
10565 ("r-genomicfeatures" ,r-genomicfeatures)
10566 ("r-genomicfiles" ,r-genomicfiles)
10567 ("r-genomicranges" ,r-genomicranges)
10568 ("r-ggbeeswarm" ,r-ggbeeswarm)
10569 ("r-ggplot2" ,r-ggplot2)
10570 ("r-gqtlbase" ,r-gqtlbase)
10571 ("r-hardyweinberg" ,r-hardyweinberg)
10572 ("r-homo-sapiens" ,r-homo-sapiens)
10573 ("r-iranges" ,r-iranges)
10574 ("r-limma" ,r-limma)
10575 ("r-mgcv" ,r-mgcv)
10576 ("r-plotly" ,r-plotly)
10577 ("r-reshape2" ,r-reshape2)
10578 ("r-s4vectors" ,r-s4vectors)
10579 ("r-shiny" ,r-shiny)
10580 ("r-snpstats" ,r-snpstats)
10581 ("r-summarizedexperiment" ,r-summarizedexperiment)
10582 ("r-variantannotation" ,r-variantannotation)))
10583 (home-page "https://bioconductor.org/packages/gQTLstats")
10584 (synopsis "Computationally efficient analysis for eQTL and allied studies")
10585 (description
10586 "This package provides tools for the computationally efficient analysis
10587 of @dfn{quantitative trait loci} (QTL) data, including eQTL, mQTL, dsQTL, etc.
10588 The software in this package aims to support refinements and functional
10589 interpretation of members of a collection of association statistics on a
10590 family of feature/genome hypotheses.")
10591 (license license:artistic2.0)))
10592
10593 (define-public r-gviz
10594 (package
10595 (name "r-gviz")
10596 (version "1.26.4")
10597 (source
10598 (origin
10599 (method url-fetch)
10600 (uri (bioconductor-uri "Gviz" version))
10601 (sha256
10602 (base32
10603 "0jvcivgw0ahv2rjadxmrww76xambhf7silczmh38nn4yn4qw6w9y"))))
10604 (properties `((upstream-name . "Gviz")))
10605 (build-system r-build-system)
10606 (propagated-inputs
10607 `(("r-annotationdbi" ,r-annotationdbi)
10608 ("r-biobase" ,r-biobase)
10609 ("r-biocgenerics" ,r-biocgenerics)
10610 ("r-biomart" ,r-biomart)
10611 ("r-biostrings" ,r-biostrings)
10612 ("r-biovizbase" ,r-biovizbase)
10613 ("r-bsgenome" ,r-bsgenome)
10614 ("r-digest" ,r-digest)
10615 ("r-genomeinfodb" ,r-genomeinfodb)
10616 ("r-genomicalignments" ,r-genomicalignments)
10617 ("r-genomicfeatures" ,r-genomicfeatures)
10618 ("r-genomicranges" ,r-genomicranges)
10619 ("r-iranges" ,r-iranges)
10620 ("r-lattice" ,r-lattice)
10621 ("r-latticeextra" ,r-latticeextra)
10622 ("r-matrixstats" ,r-matrixstats)
10623 ("r-rcolorbrewer" ,r-rcolorbrewer)
10624 ("r-rsamtools" ,r-rsamtools)
10625 ("r-rtracklayer" ,r-rtracklayer)
10626 ("r-s4vectors" ,r-s4vectors)
10627 ("r-xvector" ,r-xvector)))
10628 (home-page "https://bioconductor.org/packages/Gviz")
10629 (synopsis "Plotting data and annotation information along genomic coordinates")
10630 (description
10631 "Genomic data analyses requires integrated visualization of known genomic
10632 information and new experimental data. Gviz uses the biomaRt and the
10633 rtracklayer packages to perform live annotation queries to Ensembl and UCSC
10634 and translates this to e.g. gene/transcript structures in viewports of the
10635 grid graphics package. This results in genomic information plotted together
10636 with your data.")
10637 (license license:artistic2.0)))
10638
10639 (define-public r-gwascat
10640 (package
10641 (name "r-gwascat")
10642 (version "2.14.0")
10643 (source
10644 (origin
10645 (method url-fetch)
10646 (uri (bioconductor-uri "gwascat" version))
10647 (sha256
10648 (base32
10649 "1fnyjydhicq4ayrv0lqjv48h9bd72h40s6l82g1h2ng0icwz38g0"))))
10650 (build-system r-build-system)
10651 (propagated-inputs
10652 `(("r-annotationdbi" ,r-annotationdbi)
10653 ("r-annotationhub" ,r-annotationhub)
10654 ("r-biocgenerics" ,r-biocgenerics)
10655 ("r-biostrings" ,r-biostrings)
10656 ("r-genomeinfodb" ,r-genomeinfodb)
10657 ("r-genomicfeatures" ,r-genomicfeatures)
10658 ("r-genomicranges" ,r-genomicranges)
10659 ("r-ggbio" ,r-ggbio)
10660 ("r-ggplot2" ,r-ggplot2)
10661 ("r-gqtlstats" ,r-gqtlstats)
10662 ("r-graph" ,r-graph)
10663 ("r-gviz" ,r-gviz)
10664 ("r-homo-sapiens" ,r-homo-sapiens)
10665 ("r-iranges" ,r-iranges)
10666 ("r-rsamtools" ,r-rsamtools)
10667 ("r-rtracklayer" ,r-rtracklayer)
10668 ("r-s4vectors" ,r-s4vectors)
10669 ("r-snpstats" ,r-snpstats)
10670 ("r-summarizedexperiment" ,r-summarizedexperiment)
10671 ("r-variantannotation" ,r-variantannotation)))
10672 (home-page "https://bioconductor.org/packages/gwascat")
10673 (synopsis "Tools for data in the EMBL-EBI GWAS catalog")
10674 (description
10675 "This package provides tools for representing and modeling data in the
10676 EMBL-EBI GWAS catalog.")
10677 (license license:artistic2.0)))
10678
10679 (define-public r-sushi
10680 (package
10681 (name "r-sushi")
10682 (version "1.20.0")
10683 (source (origin
10684 (method url-fetch)
10685 (uri (bioconductor-uri "Sushi" version))
10686 (sha256
10687 (base32
10688 "0dv5di0hgbvk9cxnqhyf18mdjl50k6bk00a89r6zgp83rbxwr1r8"))))
10689 (properties `((upstream-name . "Sushi")))
10690 (build-system r-build-system)
10691 (propagated-inputs
10692 `(("r-biomart" ,r-biomart)
10693 ("r-zoo" ,r-zoo)))
10694 (home-page "https://bioconductor.org/packages/Sushi")
10695 (synopsis "Tools for visualizing genomics data")
10696 (description
10697 "This package provides flexible, quantitative, and integrative genomic
10698 visualizations for publication-quality multi-panel figures.")
10699 (license license:gpl2+)))
10700
10701 (define-public r-fithic
10702 (package
10703 (name "r-fithic")
10704 (version "1.8.0")
10705 (source (origin
10706 (method url-fetch)
10707 (uri (bioconductor-uri "FitHiC" version))
10708 (sha256
10709 (base32
10710 "15xd8mz7660q4zr9p74mq1pqps4iz7pxp8f9ifn21gwg94aq1avn"))))
10711 (properties `((upstream-name . "FitHiC")))
10712 (build-system r-build-system)
10713 (propagated-inputs
10714 `(("r-data-table" ,r-data-table)
10715 ("r-fdrtool" ,r-fdrtool)
10716 ("r-rcpp" ,r-rcpp)))
10717 (home-page "https://bioconductor.org/packages/FitHiC")
10718 (synopsis "Confidence estimation for intra-chromosomal contact maps")
10719 (description
10720 "Fit-Hi-C is a tool for assigning statistical confidence estimates to
10721 intra-chromosomal contact maps produced by genome-wide genome architecture
10722 assays such as Hi-C.")
10723 (license license:gpl2+)))
10724
10725 (define-public r-hitc
10726 (package
10727 (name "r-hitc")
10728 (version "1.26.0")
10729 (source (origin
10730 (method url-fetch)
10731 (uri (bioconductor-uri "HiTC" version))
10732 (sha256
10733 (base32
10734 "11f96k1707g6milpjgnrjf3b5r42hsrxhb5d8znkcr3y3mrskdbj"))))
10735 (properties `((upstream-name . "HiTC")))
10736 (build-system r-build-system)
10737 (propagated-inputs
10738 `(("r-biostrings" ,r-biostrings)
10739 ("r-genomeinfodb" ,r-genomeinfodb)
10740 ("r-genomicranges" ,r-genomicranges)
10741 ("r-iranges" ,r-iranges)
10742 ("r-matrix" ,r-matrix)
10743 ("r-rcolorbrewer" ,r-rcolorbrewer)
10744 ("r-rtracklayer" ,r-rtracklayer)))
10745 (home-page "https://bioconductor.org/packages/HiTC")
10746 (synopsis "High throughput chromosome conformation capture analysis")
10747 (description
10748 "The HiTC package was developed to explore high-throughput \"C\" data
10749 such as 5C or Hi-C. Dedicated R classes as well as standard methods for
10750 quality controls, normalization, visualization, and further analysis are also
10751 provided.")
10752 (license license:artistic2.0)))
10753
10754 (define-public r-qvalue
10755 (package
10756 (name "r-qvalue")
10757 (version "2.14.1")
10758 (source
10759 (origin
10760 (method url-fetch)
10761 (uri (bioconductor-uri "qvalue" version))
10762 (sha256
10763 (base32
10764 "0kxavzm1j2mk26qicmjm90nxx4w5h3dxighzks7wzihay3k8cysc"))))
10765 (build-system r-build-system)
10766 (propagated-inputs
10767 `(("r-ggplot2" ,r-ggplot2)
10768 ("r-reshape2" ,r-reshape2)))
10769 (home-page "http://github.com/jdstorey/qvalue")
10770 (synopsis "Q-value estimation for false discovery rate control")
10771 (description
10772 "This package takes a list of p-values resulting from the simultaneous
10773 testing of many hypotheses and estimates their q-values and local @dfn{false
10774 discovery rate} (FDR) values. The q-value of a test measures the proportion
10775 of false positives incurred when that particular test is called significant.
10776 The local FDR measures the posterior probability the null hypothesis is true
10777 given the test's p-value. Various plots are automatically generated, allowing
10778 one to make sensible significance cut-offs. The software can be applied to
10779 problems in genomics, brain imaging, astrophysics, and data mining.")
10780 ;; Any version of the LGPL.
10781 (license license:lgpl3+)))
10782
10783 (define-public r-hdf5array
10784 (package
10785 (name "r-hdf5array")
10786 (version "1.10.1")
10787 (source
10788 (origin
10789 (method url-fetch)
10790 (uri (bioconductor-uri "HDF5Array" version))
10791 (sha256
10792 (base32
10793 "1qwdsygcadl58qj598hfyvs8hp0hqcl9ghnhknahrlhmb7k2bd2d"))))
10794 (properties `((upstream-name . "HDF5Array")))
10795 (build-system r-build-system)
10796 (propagated-inputs
10797 `(("r-biocgenerics" ,r-biocgenerics)
10798 ("r-delayedarray" ,r-delayedarray)
10799 ("r-iranges" ,r-iranges)
10800 ("r-rhdf5" ,r-rhdf5)
10801 ("r-s4vectors" ,r-s4vectors)))
10802 (home-page "https://bioconductor.org/packages/HDF5Array")
10803 (synopsis "HDF5 back end for DelayedArray objects")
10804 (description "This package provides an array-like container for convenient
10805 access and manipulation of HDF5 datasets. It supports delayed operations and
10806 block processing.")
10807 (license license:artistic2.0)))
10808
10809 (define-public r-rhdf5lib
10810 (package
10811 (name "r-rhdf5lib")
10812 (version "1.4.2")
10813 (source
10814 (origin
10815 (method url-fetch)
10816 (uri (bioconductor-uri "Rhdf5lib" version))
10817 (sha256
10818 (base32
10819 "06bxd3wz8lrvh2hzvmjpdv4lvzj5lz9353bw5b3zb98cb8w9r2j5"))
10820 (modules '((guix build utils)))
10821 (snippet
10822 '(begin
10823 ;; Delete bundled binaries
10824 (delete-file-recursively "src/winlib/")
10825 #t))))
10826 (properties `((upstream-name . "Rhdf5lib")))
10827 (build-system r-build-system)
10828 (arguments
10829 `(#:phases
10830 (modify-phases %standard-phases
10831 (add-after 'unpack 'do-not-use-bundled-hdf5
10832 (lambda* (#:key inputs #:allow-other-keys)
10833 (for-each delete-file '("configure" "configure.ac"))
10834 ;; Do not make other packages link with the proprietary libsz.
10835 (substitute* "R/zzz.R"
10836 (("'%s/libhdf5_cpp.a %s/libhdf5.a %s/libsz.a -lz'")
10837 "'%s/libhdf5_cpp.a %s/libhdf5.a %s/libhdf5.a -lz'")
10838 (("'%s/libhdf5.a %s/libsz.a -lz'")
10839 "'%s/libhdf5.a %s/libhdf5.a -lz'"))
10840 (with-directory-excursion "src"
10841 (invoke "tar" "xvf" (assoc-ref inputs "hdf5-source"))
10842 (rename-file (string-append "hdf5-" ,(package-version hdf5-1.10))
10843 "hdf5")
10844 ;; Remove timestamp and host system information to make
10845 ;; the build reproducible.
10846 (substitute* "hdf5/src/libhdf5.settings.in"
10847 (("Configured on: @CONFIG_DATE@")
10848 "Configured on: Guix")
10849 (("Uname information:.*")
10850 "Uname information: Linux\n")
10851 ;; Remove unnecessary store reference.
10852 (("C Compiler:.*")
10853 "C Compiler: GCC\n"))
10854 (rename-file "Makevars.in" "Makevars")
10855 (substitute* "Makevars"
10856 (("HDF5_CXX_LIB=.*")
10857 (string-append "HDF5_CXX_LIB="
10858 (assoc-ref inputs "hdf5") "/lib/libhdf5_cpp.a\n"))
10859 (("HDF5_LIB=.*")
10860 (string-append "HDF5_LIB="
10861 (assoc-ref inputs "hdf5") "/lib/libhdf5.a\n"))
10862 (("HDF5_CXX_INCLUDE=.*") "HDF5_CXX_INCLUDE=./hdf5/c++/src\n")
10863 (("HDF5_INCLUDE=.*") "HDF5_INCLUDE=./hdf5/src\n")
10864 ;; szip is non-free software
10865 (("cp \\$\\{SZIP_LIB\\}.*") "")
10866 (("\\$\\{USER_LIB_DIR\\}libsz.a") "")))
10867 #t)))))
10868 (inputs
10869 `(("zlib" ,zlib)))
10870 (propagated-inputs
10871 `(("hdf5" ,hdf5-1.10)))
10872 (native-inputs
10873 `(("hdf5-source" ,(package-source hdf5-1.10))))
10874 (home-page "https://bioconductor.org/packages/Rhdf5lib")
10875 (synopsis "HDF5 library as an R package")
10876 (description "This package provides C and C++ HDF5 libraries for use in R
10877 packages.")
10878 (license license:artistic2.0)))
10879
10880 (define-public r-beachmat
10881 (package
10882 (name "r-beachmat")
10883 (version "1.4.0")
10884 (source
10885 (origin
10886 (method url-fetch)
10887 (uri (bioconductor-uri "beachmat" version))
10888 (sha256
10889 (base32
10890 "07zgmms0qg8gw7x0js46965bbhpfj2aa1h5ixdz9r332bxv9cdmr"))))
10891 (build-system r-build-system)
10892 (inputs
10893 `(("hdf5" ,hdf5)
10894 ("zlib" ,zlib)))
10895 (propagated-inputs
10896 `(("r-biocgenerics" ,r-biocgenerics)
10897 ("r-delayedarray" ,r-delayedarray)
10898 ("r-hdf5array" ,r-hdf5array)
10899 ("r-rcpp" ,r-rcpp)
10900 ("r-rhdf5" ,r-rhdf5)
10901 ("r-rhdf5lib" ,r-rhdf5lib)))
10902 (home-page "https://bioconductor.org/packages/beachmat")
10903 (synopsis "Compiling Bioconductor to handle each matrix type")
10904 (description "This package provides a consistent C++ class interface for a
10905 variety of commonly used matrix types, including sparse and HDF5-backed
10906 matrices.")
10907 (license license:gpl3)))
10908
10909 (define-public r-singlecellexperiment
10910 (package
10911 (name "r-singlecellexperiment")
10912 (version "1.4.1")
10913 (source
10914 (origin
10915 (method url-fetch)
10916 (uri (bioconductor-uri "SingleCellExperiment" version))
10917 (sha256
10918 (base32
10919 "12139kk9cqgzpm6f3cwdsq31gj5lxamz2q939dy9fa0fa54gdaq4"))))
10920 (properties
10921 `((upstream-name . "SingleCellExperiment")))
10922 (build-system r-build-system)
10923 (propagated-inputs
10924 `(("r-biocgenerics" ,r-biocgenerics)
10925 ("r-s4vectors" ,r-s4vectors)
10926 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10927 (home-page "https://bioconductor.org/packages/SingleCellExperiment")
10928 (synopsis "S4 classes for single cell data")
10929 (description "This package defines an S4 class for storing data from
10930 single-cell experiments. This includes specialized methods to store and
10931 retrieve spike-in information, dimensionality reduction coordinates and size
10932 factors for each cell, along with the usual metadata for genes and
10933 libraries.")
10934 (license license:gpl3)))
10935
10936 (define-public r-scater
10937 (package
10938 (name "r-scater")
10939 (version "1.10.1")
10940 (source (origin
10941 (method url-fetch)
10942 (uri (bioconductor-uri "scater" version))
10943 (sha256
10944 (base32
10945 "0rijhy7g5qmcn927y1wyd63la1fhyar9fv1hccsqd23jd98yc55a"))))
10946 (build-system r-build-system)
10947 (propagated-inputs
10948 `(("r-beachmat" ,r-beachmat)
10949 ("r-biocgenerics" ,r-biocgenerics)
10950 ("r-biocparallel" ,r-biocparallel)
10951 ("r-delayedarray" ,r-delayedarray)
10952 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
10953 ("r-dplyr" ,r-dplyr)
10954 ("r-ggbeeswarm" ,r-ggbeeswarm)
10955 ("r-ggplot2" ,r-ggplot2)
10956 ("r-matrix" ,r-matrix)
10957 ("r-plyr" ,r-plyr)
10958 ("r-rcpp" ,r-rcpp)
10959 ("r-reshape2" ,r-reshape2)
10960 ("r-rhdf5lib" ,r-rhdf5lib)
10961 ("r-s4vectors" ,r-s4vectors)
10962 ("r-singlecellexperiment" ,r-singlecellexperiment)
10963 ("r-summarizedexperiment" ,r-summarizedexperiment)
10964 ("r-viridis" ,r-viridis)))
10965 (home-page "https://github.com/davismcc/scater")
10966 (synopsis "Single-cell analysis toolkit for gene expression data in R")
10967 (description "This package provides a collection of tools for doing
10968 various analyses of single-cell RNA-seq gene expression data, with a focus on
10969 quality control.")
10970 (license license:gpl2+)))
10971
10972 (define-public r-scran
10973 (package
10974 (name "r-scran")
10975 (version "1.10.2")
10976 (source
10977 (origin
10978 (method url-fetch)
10979 (uri (bioconductor-uri "scran" version))
10980 (sha256
10981 (base32
10982 "07mgilr3gq3lnrm1fjm9zhz4w7970bjhsykln1drqy9gkzj5sn7g"))))
10983 (build-system r-build-system)
10984 (propagated-inputs
10985 `(("r-beachmat" ,r-beachmat)
10986 ("r-biocgenerics" ,r-biocgenerics)
10987 ("r-biocneighbors" ,r-biocneighbors)
10988 ("r-biocparallel" ,r-biocparallel)
10989 ("r-delayedarray" ,r-delayedarray)
10990 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
10991 ("r-dynamictreecut" ,r-dynamictreecut)
10992 ("r-edger" ,r-edger)
10993 ("r-igraph" ,r-igraph)
10994 ("r-limma" ,r-limma)
10995 ("r-matrix" ,r-matrix)
10996 ("r-rcpp" ,r-rcpp)
10997 ("r-rhdf5lib" ,r-rhdf5lib)
10998 ("r-s4vectors" ,r-s4vectors)
10999 ("r-scater" ,r-scater)
11000 ("r-singlecellexperiment" ,r-singlecellexperiment)
11001 ("r-statmod" ,r-statmod)
11002 ("r-summarizedexperiment" ,r-summarizedexperiment)))
11003 (home-page "https://bioconductor.org/packages/scran")
11004 (synopsis "Methods for single-cell RNA-Seq data analysis")
11005 (description "This package implements a variety of low-level analyses of
11006 single-cell RNA-seq data. Methods are provided for normalization of
11007 cell-specific biases, assignment of cell cycle phase, and detection of highly
11008 variable and significantly correlated genes.")
11009 (license license:gpl3)))
11010
11011 (define-public r-delayedmatrixstats
11012 (package
11013 (name "r-delayedmatrixstats")
11014 (version "1.4.0")
11015 (source
11016 (origin
11017 (method url-fetch)
11018 (uri (bioconductor-uri "DelayedMatrixStats" version))
11019 (sha256
11020 (base32
11021 "03fk2avl1vyjv2wslczkc82qr0zmp1ra8iimd47pbmnnm839ly4w"))))
11022 (properties
11023 `((upstream-name . "DelayedMatrixStats")))
11024 (build-system r-build-system)
11025 (propagated-inputs
11026 `(("r-biocparallel" ,r-biocparallel)
11027 ("r-delayedarray" ,r-delayedarray)
11028 ("r-hdf5array" ,r-hdf5array)
11029 ("r-iranges" ,r-iranges)
11030 ("r-matrix" ,r-matrix)
11031 ("r-matrixstats" ,r-matrixstats)
11032 ("r-s4vectors" ,r-s4vectors)))
11033 (home-page "https://github.com/PeteHaitch/DelayedMatrixStats")
11034 (synopsis "Functions that apply to rows and columns of DelayedMatrix objects")
11035 (description
11036 "This package provides a port of the @code{matrixStats} API for use with
11037 @code{DelayedMatrix} objects from the @code{DelayedArray} package. It
11038 contains high-performing functions operating on rows and columns of
11039 @code{DelayedMatrix} objects, e.g. @code{colMedians}, @code{rowMedians},
11040 @code{colRanks}, @code{rowRanks}, @code{colSds}, and @code{rowSds}. Functions
11041 are optimized per data type and for subsetted calculations such that both
11042 memory usage and processing time is minimized.")
11043 (license license:expat)))
11044
11045 (define-public r-phangorn
11046 (package
11047 (name "r-phangorn")
11048 (version "2.4.0")
11049 (source
11050 (origin
11051 (method url-fetch)
11052 (uri (cran-uri "phangorn" version))
11053 (sha256
11054 (base32
11055 "0xc8k552nxczy19jr0xjjagrzc8x6lafasgk2c099ls8bc1yml1i"))))
11056 (build-system r-build-system)
11057 (propagated-inputs
11058 `(("r-ape" ,r-ape)
11059 ("r-fastmatch" ,r-fastmatch)
11060 ("r-igraph" ,r-igraph)
11061 ("r-magrittr" ,r-magrittr)
11062 ("r-matrix" ,r-matrix)
11063 ("r-quadprog" ,r-quadprog)
11064 ("r-rcpp" ,r-rcpp)))
11065 (home-page "https://github.com/KlausVigo/phangorn")
11066 (synopsis "Phylogenetic analysis in R")
11067 (description
11068 "Phangorn is a package for phylogenetic analysis in R. It supports
11069 estimation of phylogenetic trees and networks using Maximum Likelihood,
11070 Maximum Parsimony, distance methods and Hadamard conjugation.")
11071 (license license:gpl2+)))
11072
11073 (define-public r-dropbead
11074 (let ((commit "d746c6f3b32110428ea56d6a0001ce52a251c247")
11075 (revision "2"))
11076 (package
11077 (name "r-dropbead")
11078 (version (string-append "0-" revision "." (string-take commit 7)))
11079 (source
11080 (origin
11081 (method git-fetch)
11082 (uri (git-reference
11083 (url "https://github.com/rajewsky-lab/dropbead.git")
11084 (commit commit)))
11085 (file-name (git-file-name name version))
11086 (sha256
11087 (base32
11088 "0sbzma49aiiyw8b0jpr7fnhzys9nsqmp4hy4hdz1gzyg1lhnca26"))))
11089 (build-system r-build-system)
11090 (propagated-inputs
11091 `(("r-ggplot2" ,r-ggplot2)
11092 ("r-rcolorbrewer" ,r-rcolorbrewer)
11093 ("r-gridextra" ,r-gridextra)
11094 ("r-gplots" ,r-gplots)
11095 ("r-plyr" ,r-plyr)))
11096 (home-page "https://github.com/rajewsky-lab/dropbead")
11097 (synopsis "Basic exploration and analysis of Drop-seq data")
11098 (description "This package offers a quick and straight-forward way to
11099 explore and perform basic analysis of single cell sequencing data coming from
11100 droplet sequencing. It has been particularly tailored for Drop-seq.")
11101 (license license:gpl3))))
11102
11103 (define htslib-for-sambamba
11104 (let ((commit "2f3c3ea7b301f9b45737a793c0b2dcf0240e5ee5"))
11105 (package
11106 (inherit htslib)
11107 (name "htslib-for-sambamba")
11108 (version (string-append "1.3.1-1." (string-take commit 9)))
11109 (source
11110 (origin
11111 (method git-fetch)
11112 (uri (git-reference
11113 (url "https://github.com/lomereiter/htslib.git")
11114 (commit commit)))
11115 (file-name (string-append "htslib-" version "-checkout"))
11116 (sha256
11117 (base32
11118 "0g38g8s3npr0gjm9fahlbhiskyfws9l5i0x1ml3rakzj7az5l9c9"))))
11119 (native-inputs
11120 `(("autoconf" ,autoconf)
11121 ("automake" ,automake)
11122 ,@(package-native-inputs htslib))))))
11123
11124 (define-public sambamba
11125 (package
11126 (name "sambamba")
11127 (version "0.6.8")
11128 (source
11129 (origin
11130 (method git-fetch)
11131 (uri (git-reference
11132 (url "https://github.com/lomereiter/sambamba.git")
11133 (commit (string-append "v" version))))
11134 (file-name (string-append name "-" version "-checkout"))
11135 (sha256
11136 (base32
11137 "0k0cz3qcv98p6cq09zlbgnjsggxcqbcmzxg5zikgcgbr2nfq4lry"))))
11138 (build-system gnu-build-system)
11139 (arguments
11140 `(#:tests? #f ; there is no test target
11141 #:parallel-build? #f ; not supported
11142 #:phases
11143 (modify-phases %standard-phases
11144 (delete 'configure)
11145 (add-after 'unpack 'fix-ldc-version
11146 (lambda _
11147 (substitute* "gen_ldc_version_info.py"
11148 (("/usr/bin/env.*") (which "python3")))
11149 (substitute* "Makefile"
11150 ;; We use ldc2 instead of ldmd2 to compile sambamba.
11151 (("\\$\\(shell which ldmd2\\)") (which "ldc2")))
11152 #t))
11153 (add-after 'unpack 'place-biod-and-undead
11154 (lambda* (#:key inputs #:allow-other-keys)
11155 (copy-recursively (assoc-ref inputs "biod") "BioD")
11156 (copy-recursively (assoc-ref inputs "undead") "undeaD")
11157 #t))
11158 (add-after 'unpack 'unbundle-prerequisites
11159 (lambda _
11160 (substitute* "Makefile"
11161 (("htslib/libhts.a lz4/lib/liblz4.a")
11162 "-L-lhts -L-llz4")
11163 ((" lz4-static htslib-static") ""))
11164 #t))
11165 (replace 'install
11166 (lambda* (#:key outputs #:allow-other-keys)
11167 (let* ((out (assoc-ref outputs "out"))
11168 (bin (string-append out "/bin")))
11169 (mkdir-p bin)
11170 (install-file "bin/sambamba" bin)
11171 #t))))))
11172 (native-inputs
11173 `(("ldc" ,ldc)
11174 ("rdmd" ,rdmd)
11175 ("python" ,python-minimal)
11176 ("biod"
11177 ,(let ((commit "4f1a7d2fb7ef3dfe962aa357d672f354ebfbe42e"))
11178 (origin
11179 (method git-fetch)
11180 (uri (git-reference
11181 (url "https://github.com/biod/BioD.git")
11182 (commit commit)))
11183 (file-name (string-append "biod-"
11184 (string-take commit 9)
11185 "-checkout"))
11186 (sha256
11187 (base32
11188 "1k5pdjv1qvi0a3rwd1sfq6zbj37l86i7bf710m4c0y6737lxj426")))))
11189 ("undead"
11190 ,(let ((commit "9be93876982b5f14fcca60832563b3cd767dd84d"))
11191 (origin
11192 (method git-fetch)
11193 (uri (git-reference
11194 (url "https://github.com/biod/undeaD.git")
11195 (commit commit)))
11196 (file-name (string-append "undead-"
11197 (string-take commit 9)
11198 "-checkout"))
11199 (sha256
11200 (base32
11201 "1xfarj0nqlmi5jd1vmcmm7pabzaf9hxyvk6hp0d6jslb5k9r8r3d")))))))
11202 (inputs
11203 `(("lz4" ,lz4)
11204 ("htslib" ,htslib-for-sambamba)))
11205 (home-page "http://lomereiter.github.io/sambamba")
11206 (synopsis "Tools for working with SAM/BAM data")
11207 (description "Sambamba is a high performance modern robust and
11208 fast tool (and library), written in the D programming language, for
11209 working with SAM and BAM files. Current parallelised functionality is
11210 an important subset of samtools functionality, including view, index,
11211 sort, markdup, and depth.")
11212 (license license:gpl2+)))
11213
11214 (define-public ritornello
11215 (package
11216 (name "ritornello")
11217 (version "2.0.1")
11218 (source (origin
11219 (method git-fetch)
11220 (uri (git-reference
11221 (url "https://github.com/KlugerLab/Ritornello.git")
11222 (commit (string-append "v" version))))
11223 (file-name (git-file-name name version))
11224 (sha256
11225 (base32
11226 "1xahvq215qld7x1w8vpa5zbrsj6p9crb9shqa2x89sb0aaxa02jk"))))
11227 (build-system gnu-build-system)
11228 (arguments
11229 `(#:tests? #f ; there are no tests
11230 #:phases
11231 (modify-phases %standard-phases
11232 (add-after 'unpack 'patch-samtools-references
11233 (lambda* (#:key inputs #:allow-other-keys)
11234 (substitute* '("src/SamStream.h"
11235 "src/FLD.cpp")
11236 (("<sam.h>") "<samtools/sam.h>"))
11237 #t))
11238 (delete 'configure)
11239 (replace 'install
11240 (lambda* (#:key inputs outputs #:allow-other-keys)
11241 (let* ((out (assoc-ref outputs "out"))
11242 (bin (string-append out "/bin/")))
11243 (mkdir-p bin)
11244 (install-file "bin/Ritornello" bin)
11245 #t))))))
11246 (inputs
11247 `(("samtools" ,samtools-0.1)
11248 ("fftw" ,fftw)
11249 ("boost" ,boost)
11250 ("zlib" ,zlib)))
11251 (home-page "https://github.com/KlugerLab/Ritornello")
11252 (synopsis "Control-free peak caller for ChIP-seq data")
11253 (description "Ritornello is a ChIP-seq peak calling algorithm based on
11254 signal processing that can accurately call binding events without the need to
11255 do a pair total DNA input or IgG control sample. It has been tested for use
11256 with narrow binding events such as transcription factor ChIP-seq.")
11257 (license license:gpl3+)))
11258
11259 (define-public trim-galore
11260 (package
11261 (name "trim-galore")
11262 (version "0.4.5")
11263 (source
11264 (origin
11265 (method git-fetch)
11266 (uri (git-reference
11267 (url "https://github.com/FelixKrueger/TrimGalore.git")
11268 (commit version)))
11269 (file-name (string-append name "-" version "-checkout"))
11270 (sha256
11271 (base32
11272 "0x5892l48c816pf00wmnz5vq0zq6170d3xc8zrxncd4jcz7h1p71"))))
11273 (build-system gnu-build-system)
11274 (arguments
11275 `(#:tests? #f ; no tests
11276 #:phases
11277 (modify-phases %standard-phases
11278 (delete 'configure)
11279 (delete 'build)
11280 (add-after 'unpack 'hardcode-tool-references
11281 (lambda* (#:key inputs #:allow-other-keys)
11282 (substitute* "trim_galore"
11283 (("\\$path_to_cutadapt = 'cutadapt'")
11284 (string-append "$path_to_cutadapt = '"
11285 (assoc-ref inputs "cutadapt")
11286 "/bin/cutadapt'"))
11287 (("\\| gzip")
11288 (string-append "| "
11289 (assoc-ref inputs "gzip")
11290 "/bin/gzip"))
11291 (("\"gunzip")
11292 (string-append "\""
11293 (assoc-ref inputs "gzip")
11294 "/bin/gunzip")))
11295 #t))
11296 (replace 'install
11297 (lambda* (#:key outputs #:allow-other-keys)
11298 (let ((bin (string-append (assoc-ref outputs "out")
11299 "/bin")))
11300 (mkdir-p bin)
11301 (install-file "trim_galore" bin)
11302 #t))))))
11303 (inputs
11304 `(("gzip" ,gzip)
11305 ("perl" ,perl)
11306 ("cutadapt" ,cutadapt)))
11307 (native-inputs
11308 `(("unzip" ,unzip)))
11309 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/trim_galore/")
11310 (synopsis "Wrapper around Cutadapt and FastQC")
11311 (description "Trim Galore! is a wrapper script to automate quality and
11312 adapter trimming as well as quality control, with some added functionality to
11313 remove biased methylation positions for RRBS sequence files.")
11314 (license license:gpl3+)))
11315
11316 (define-public gess
11317 (package
11318 (name "gess")
11319 (version "1.0")
11320 (source (origin
11321 (method url-fetch)
11322 (uri (string-append "http://compbio.uthscsa.edu/"
11323 "GESS_Web/files/"
11324 "gess-" version ".src.tar.gz"))
11325 (sha256
11326 (base32
11327 "0hyk403kxscclzfs24pvdgiv0wm03kjcziqdrp5w46cb049gz0d7"))))
11328 (build-system gnu-build-system)
11329 (arguments
11330 `(#:tests? #f ; no tests
11331 #:phases
11332 (modify-phases %standard-phases
11333 (delete 'configure)
11334 (delete 'build)
11335 (replace 'install
11336 (lambda* (#:key inputs outputs #:allow-other-keys)
11337 (let* ((python (assoc-ref inputs "python"))
11338 (out (assoc-ref outputs "out"))
11339 (bin (string-append out "/bin/"))
11340 (target (string-append
11341 out "/lib/python"
11342 ,(version-major+minor
11343 (package-version python))
11344 "/site-packages/gess/")))
11345 (mkdir-p target)
11346 (copy-recursively "." target)
11347 ;; Make GESS.py executable
11348 (chmod (string-append target "GESS.py") #o555)
11349 ;; Add Python shebang to the top and make Matplotlib
11350 ;; usable.
11351 (substitute* (string-append target "GESS.py")
11352 (("\"\"\"Description:" line)
11353 (string-append "#!" (which "python") "
11354 import matplotlib
11355 matplotlib.use('Agg')
11356 " line)))
11357 ;; Make sure GESS has all modules in its path
11358 (wrap-program (string-append target "GESS.py")
11359 `("PYTHONPATH" ":" prefix (,target ,(getenv "PYTHONPATH"))))
11360 (mkdir-p bin)
11361 (symlink (string-append target "GESS.py")
11362 (string-append bin "GESS.py"))
11363 #t))))))
11364 (inputs
11365 `(("python" ,python-2)
11366 ("python2-pysam" ,python2-pysam)
11367 ("python2-scipy" ,python2-scipy)
11368 ("python2-numpy" ,python2-numpy)
11369 ("python2-networkx" ,python2-networkx)
11370 ("python2-biopython" ,python2-biopython)))
11371 (home-page "http://compbio.uthscsa.edu/GESS_Web/")
11372 (synopsis "Detect exon-skipping events from raw RNA-seq data")
11373 (description
11374 "GESS is an implementation of a novel computational method to detect de
11375 novo exon-skipping events directly from raw RNA-seq data without the prior
11376 knowledge of gene annotation information. GESS stands for the graph-based
11377 exon-skipping scanner detection scheme.")
11378 (license license:bsd-3)))
11379
11380 (define-public phylip
11381 (package
11382 (name "phylip")
11383 (version "3.696")
11384 (source
11385 (origin
11386 (method url-fetch)
11387 (uri (string-append "http://evolution.gs.washington.edu/phylip/"
11388 "download/phylip-" version ".tar.gz"))
11389 (sha256
11390 (base32
11391 "01jar1rayhr2gba2pgbw49m56rc5z4p5wn3ds0m188hrlln4a2nd"))))
11392 (build-system gnu-build-system)
11393 (arguments
11394 `(#:tests? #f ; no check target
11395 #:make-flags (list "-f" "Makefile.unx" "install")
11396 #:parallel-build? #f ; not supported
11397 #:phases
11398 (modify-phases %standard-phases
11399 (add-after 'unpack 'enter-dir
11400 (lambda _ (chdir "src") #t))
11401 (delete 'configure)
11402 (replace 'install
11403 (lambda* (#:key inputs outputs #:allow-other-keys)
11404 (let ((target (string-append (assoc-ref outputs "out")
11405 "/bin")))
11406 (mkdir-p target)
11407 (for-each (lambda (file)
11408 (install-file file target))
11409 (find-files "../exe" ".*")))
11410 #t)))))
11411 (home-page "http://evolution.genetics.washington.edu/phylip/")
11412 (synopsis "Tools for inferring phylogenies")
11413 (description "PHYLIP (the PHYLogeny Inference Package) is a package of
11414 programs for inferring phylogenies (evolutionary trees).")
11415 (license license:bsd-2)))
11416
11417 (define-public imp
11418 (package
11419 (name "imp")
11420 (version "2.6.2")
11421 (source
11422 (origin
11423 (method url-fetch)
11424 (uri (string-append "https://integrativemodeling.org/"
11425 version "/download/imp-" version ".tar.gz"))
11426 (sha256
11427 (base32
11428 "0lxqx7vh79d771svr611dkilp6sn30qrbw8zvscbrm37v38d2j6h"))))
11429 (build-system cmake-build-system)
11430 (arguments
11431 `(;; FIXME: Some tests fail because they produce warnings, others fail
11432 ;; because the PYTHONPATH does not include the modeller's directory.
11433 #:tests? #f))
11434 (inputs
11435 `(("boost" ,boost)
11436 ("gsl" ,gsl)
11437 ("swig" ,swig)
11438 ("hdf5" ,hdf5)
11439 ("fftw" ,fftw)
11440 ("python" ,python-2)))
11441 (propagated-inputs
11442 `(("python2-numpy" ,python2-numpy)
11443 ("python2-scipy" ,python2-scipy)
11444 ("python2-pandas" ,python2-pandas)
11445 ("python2-scikit-learn" ,python2-scikit-learn)
11446 ("python2-networkx" ,python2-networkx)))
11447 (home-page "https://integrativemodeling.org")
11448 (synopsis "Integrative modeling platform")
11449 (description "IMP's broad goal is to contribute to a comprehensive
11450 structural characterization of biomolecules ranging in size and complexity
11451 from small peptides to large macromolecular assemblies, by integrating data
11452 from diverse biochemical and biophysical experiments. IMP provides a C++ and
11453 Python toolbox for solving complex modeling problems, and a number of
11454 applications for tackling some common problems in a user-friendly way.")
11455 ;; IMP is largely available under the GNU Lesser GPL; see the file
11456 ;; COPYING.LGPL for the full text of this license. Some IMP modules are
11457 ;; available under the GNU GPL (see the file COPYING.GPL).
11458 (license (list license:lgpl2.1+
11459 license:gpl3+))))
11460
11461 (define-public tadbit
11462 (package
11463 (name "tadbit")
11464 (version "0.2.0")
11465 (source (origin
11466 (method git-fetch)
11467 (uri (git-reference
11468 (url "https://github.com/3DGenomes/TADbit.git")
11469 (commit (string-append "v" version))))
11470 (file-name (git-file-name name version))
11471 (sha256
11472 (base32
11473 "07g3aj648prmsvxp9caz5yl41k0y0647vxh0f5p3w8376mfiljd0"))))
11474 (build-system python-build-system)
11475 (arguments
11476 `(;; Tests are included and must be run after installation, but
11477 ;; they are incomplete and thus cannot be run.
11478 #:tests? #f
11479 #:python ,python-2
11480 #:phases
11481 (modify-phases %standard-phases
11482 (add-after 'unpack 'fix-problems-with-setup.py
11483 (lambda* (#:key outputs #:allow-other-keys)
11484 ;; setup.py opens these files for writing
11485 (chmod "_pytadbit/_version.py" #o664)
11486 (chmod "README.rst" #o664)
11487
11488 ;; Don't attempt to install the bash completions to
11489 ;; the home directory.
11490 (rename-file "extras/.bash_completion"
11491 "extras/tadbit")
11492 (substitute* "setup.py"
11493 (("\\(path.expanduser\\('~'\\)")
11494 (string-append "(\""
11495 (assoc-ref outputs "out")
11496 "/etc/bash_completion.d\""))
11497 (("extras/\\.bash_completion")
11498 "extras/tadbit"))
11499 #t)))))
11500 (inputs
11501 ;; TODO: add Chimera for visualization
11502 `(("imp" ,imp)
11503 ("mcl" ,mcl)
11504 ("python2-scipy" ,python2-scipy)
11505 ("python2-numpy" ,python2-numpy)
11506 ("python2-matplotlib" ,python2-matplotlib)
11507 ("python2-pysam" ,python2-pysam)))
11508 (home-page "https://3dgenomes.github.io/TADbit/")
11509 (synopsis "Analyze, model, and explore 3C-based data")
11510 (description
11511 "TADbit is a complete Python library to deal with all steps to analyze,
11512 model, and explore 3C-based data. With TADbit the user can map FASTQ files to
11513 obtain raw interaction binned matrices (Hi-C like matrices), normalize and
11514 correct interaction matrices, identify and compare the so-called
11515 @dfn{Topologically Associating Domains} (TADs), build 3D models from the
11516 interaction matrices, and finally, extract structural properties from the
11517 models. TADbit is complemented by TADkit for visualizing 3D models.")
11518 (license license:gpl3+)))
11519
11520 (define-public kentutils
11521 (package
11522 (name "kentutils")
11523 ;; 302.1.0 is out, but the only difference is the inclusion of
11524 ;; pre-built binaries.
11525 (version "302.0.0")
11526 (source
11527 (origin
11528 (method git-fetch)
11529 (uri (git-reference
11530 (url "https://github.com/ENCODE-DCC/kentUtils.git")
11531 (commit (string-append "v" version))))
11532 (file-name (git-file-name name version))
11533 (sha256
11534 (base32
11535 "0n1wbyjpzii2b9qhyp9r1q76j623cggpg3y8fmw78ld3z4y7ivha"))
11536 (modules '((guix build utils)
11537 (srfi srfi-26)
11538 (ice-9 ftw)))
11539 (snippet
11540 '(begin
11541 ;; Only the contents of the specified directories are free
11542 ;; for all uses, so we remove the rest. "hg/autoSql" and
11543 ;; "hg/autoXml" are nominally free, but they depend on a
11544 ;; library that is built from the sources in "hg/lib",
11545 ;; which is nonfree.
11546 (let ((free (list "." ".."
11547 "utils" "lib" "inc" "tagStorm"
11548 "parasol" "htslib"))
11549 (directory? (lambda (file)
11550 (eq? 'directory (stat:type (stat file))))))
11551 (for-each (lambda (file)
11552 (and (directory? file)
11553 (delete-file-recursively file)))
11554 (map (cut string-append "src/" <>)
11555 (scandir "src"
11556 (lambda (file)
11557 (not (member file free)))))))
11558 ;; Only make the utils target, not the userApps target,
11559 ;; because that requires libraries we won't build.
11560 (substitute* "Makefile"
11561 ((" userApps") " utils"))
11562 ;; Only build libraries that are free.
11563 (substitute* "src/makefile"
11564 (("DIRS =.*") "DIRS =\n")
11565 (("cd jkOwnLib.*") "")
11566 ((" hgLib") "")
11567 (("cd hg.*") ""))
11568 (substitute* "src/utils/makefile"
11569 ;; These tools depend on "jkhgap.a", which is part of the
11570 ;; nonfree "src/hg/lib" directory.
11571 (("raSqlQuery") "")
11572 (("pslLiftSubrangeBlat") "")
11573
11574 ;; Do not build UCSC tools, which may require nonfree
11575 ;; components.
11576 (("ALL_APPS =.*") "ALL_APPS = $(UTILS_APPLIST)\n"))
11577 #t))))
11578 (build-system gnu-build-system)
11579 (arguments
11580 `( ;; There is no global test target and the test target for
11581 ;; individual tools depends on input files that are not
11582 ;; included.
11583 #:tests? #f
11584 #:phases
11585 (modify-phases %standard-phases
11586 (add-after 'unpack 'fix-permissions
11587 (lambda _ (make-file-writable "src/inc/localEnvironment.mk") #t))
11588 (add-after 'unpack 'fix-paths
11589 (lambda _
11590 (substitute* "Makefile"
11591 (("/bin/echo") (which "echo")))
11592 #t))
11593 (add-after 'unpack 'prepare-samtabix
11594 (lambda* (#:key inputs #:allow-other-keys)
11595 (copy-recursively (assoc-ref inputs "samtabix")
11596 "samtabix")
11597 #t))
11598 (delete 'configure)
11599 (replace 'install
11600 (lambda* (#:key outputs #:allow-other-keys)
11601 (let ((bin (string-append (assoc-ref outputs "out")
11602 "/bin")))
11603 (copy-recursively "bin" bin))
11604 #t)))))
11605 (native-inputs
11606 `(("samtabix"
11607 ,(origin
11608 (method git-fetch)
11609 (uri (git-reference
11610 (url "http://genome-source.cse.ucsc.edu/samtabix.git")
11611 (commit "10fd107909c1ac4d679299908be4262a012965ba")))
11612 (sha256
11613 (base32
11614 "0c1nj64l42v395sa84n7az43xiap4i6f9n9dfz4058aqiwkhkmma"))))))
11615 (inputs
11616 `(("zlib" ,zlib)
11617 ("tcsh" ,tcsh)
11618 ("perl" ,perl)
11619 ("libpng" ,libpng)
11620 ("mariadb" ,mariadb)
11621 ("openssl" ,openssl)))
11622 (home-page "http://genome.cse.ucsc.edu/index.html")
11623 (synopsis "Assorted bioinformatics utilities")
11624 (description "This package provides the kentUtils, a selection of
11625 bioinformatics utilities used in combination with the UCSC genome
11626 browser.")
11627 ;; Only a subset of the sources are released under a non-copyleft
11628 ;; free software license. All other sources are removed in a
11629 ;; snippet. See this bug report for an explanation of how the
11630 ;; license statements apply:
11631 ;; https://github.com/ENCODE-DCC/kentUtils/issues/12
11632 (license (license:non-copyleft
11633 "http://genome.ucsc.edu/license/"
11634 "The contents of this package are free for all uses."))))
11635
11636 (define-public f-seq
11637 (let ((commit "6ccded34cff38cf432deed8503648b4a66953f9b")
11638 (revision "1"))
11639 (package
11640 (name "f-seq")
11641 (version (string-append "1.1-" revision "." (string-take commit 7)))
11642 (source (origin
11643 (method git-fetch)
11644 (uri (git-reference
11645 (url "https://github.com/aboyle/F-seq.git")
11646 (commit commit)))
11647 (file-name (string-append name "-" version))
11648 (sha256
11649 (base32
11650 "1nk33k0yajg2id4g59bc4szr58r2q6pdq42vgcw054m8ip9wv26h"))
11651 (modules '((guix build utils)))
11652 ;; Remove bundled Java library archives.
11653 (snippet
11654 '(begin
11655 (for-each delete-file (find-files "lib" ".*"))
11656 #t))))
11657 (build-system ant-build-system)
11658 (arguments
11659 `(#:tests? #f ; no tests included
11660 #:phases
11661 (modify-phases %standard-phases
11662 (replace 'install
11663 (lambda* (#:key inputs outputs #:allow-other-keys)
11664 (let* ((target (assoc-ref outputs "out"))
11665 (bin (string-append target "/bin"))
11666 (doc (string-append target "/share/doc/f-seq"))
11667 (lib (string-append target "/lib")))
11668 (mkdir-p target)
11669 (mkdir-p doc)
11670 (substitute* "bin/linux/fseq"
11671 (("java") (which "java"))
11672 (("\\$REALDIR/../lib/commons-cli-1.1.jar")
11673 (string-append (assoc-ref inputs "java-commons-cli")
11674 "/share/java/commons-cli.jar"))
11675 (("REALDIR=.*")
11676 (string-append "REALDIR=" bin "\n")))
11677 (install-file "README.txt" doc)
11678 (install-file "bin/linux/fseq" bin)
11679 (install-file "build~/fseq.jar" lib)
11680 (copy-recursively "lib" lib)
11681 #t))))))
11682 (inputs
11683 `(("perl" ,perl)
11684 ("java-commons-cli" ,java-commons-cli)))
11685 (home-page "http://fureylab.web.unc.edu/software/fseq/")
11686 (synopsis "Feature density estimator for high-throughput sequence tags")
11687 (description
11688 "F-Seq is a software package that generates a continuous tag sequence
11689 density estimation allowing identification of biologically meaningful sites
11690 such as transcription factor binding sites (ChIP-seq) or regions of open
11691 chromatin (DNase-seq). Output can be displayed directly in the UCSC Genome
11692 Browser.")
11693 (license license:gpl3+))))
11694
11695 (define-public bismark
11696 (package
11697 (name "bismark")
11698 (version "0.19.1")
11699 (source
11700 (origin
11701 (method git-fetch)
11702 (uri (git-reference
11703 (url "https://github.com/FelixKrueger/Bismark.git")
11704 (commit version)))
11705 (file-name (string-append name "-" version "-checkout"))
11706 (sha256
11707 (base32
11708 "0yb5l36slwg02fp4b1jdlplgljcsxgqfzvzihzdnphd87dghcc84"))
11709 (snippet
11710 '(begin
11711 ;; highcharts.js is non-free software. The code is available under
11712 ;; CC-BY-NC or proprietary licenses only.
11713 (delete-file "bismark_sitrep/highcharts.js")
11714 #t))))
11715 (build-system perl-build-system)
11716 (arguments
11717 `(#:tests? #f ; there are no tests
11718 #:phases
11719 (modify-phases %standard-phases
11720 (delete 'configure)
11721 (delete 'build)
11722 (replace 'install
11723 (lambda* (#:key inputs outputs #:allow-other-keys)
11724 (let* ((out (assoc-ref outputs "out"))
11725 (bin (string-append out "/bin"))
11726 (share (string-append out "/share/bismark"))
11727 (docdir (string-append out "/share/doc/bismark"))
11728 (docs '("Docs/Bismark_User_Guide.html"))
11729 (scripts '("bismark"
11730 "bismark_genome_preparation"
11731 "bismark_methylation_extractor"
11732 "bismark2bedGraph"
11733 "bismark2report"
11734 "coverage2cytosine"
11735 "deduplicate_bismark"
11736 "filter_non_conversion"
11737 "bam2nuc"
11738 "bismark2summary")))
11739 (substitute* "bismark2report"
11740 (("\\$RealBin/bismark_sitrep")
11741 (string-append share "/bismark_sitrep")))
11742 (mkdir-p share)
11743 (mkdir-p docdir)
11744 (mkdir-p bin)
11745 (for-each (lambda (file) (install-file file bin))
11746 scripts)
11747 (for-each (lambda (file) (install-file file docdir))
11748 docs)
11749 (copy-recursively "Docs/Images" (string-append docdir "/Images"))
11750 (copy-recursively "bismark_sitrep"
11751 (string-append share "/bismark_sitrep"))
11752
11753 ;; Fix references to gunzip
11754 (substitute* (map (lambda (file)
11755 (string-append bin "/" file))
11756 scripts)
11757 (("\"gunzip -c")
11758 (string-append "\"" (assoc-ref inputs "gzip")
11759 "/bin/gunzip -c")))
11760 #t))))))
11761 (inputs
11762 `(("gzip" ,gzip)))
11763 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/bismark/")
11764 (synopsis "Map bisulfite treated sequence reads and analyze methylation")
11765 (description "Bismark is a program to map bisulfite treated sequencing
11766 reads to a genome of interest and perform methylation calls in a single step.
11767 The output can be easily imported into a genome viewer, such as SeqMonk, and
11768 enables a researcher to analyse the methylation levels of their samples
11769 straight away. Its main features are:
11770
11771 @itemize
11772 @item Bisulfite mapping and methylation calling in one single step
11773 @item Supports single-end and paired-end read alignments
11774 @item Supports ungapped and gapped alignments
11775 @item Alignment seed length, number of mismatches etc are adjustable
11776 @item Output discriminates between cytosine methylation in CpG, CHG
11777 and CHH context
11778 @end itemize\n")
11779 (license license:gpl3+)))
11780
11781 (define-public paml
11782 (package
11783 (name "paml")
11784 (version "4.9e")
11785 (source (origin
11786 (method url-fetch)
11787 (uri (string-append "http://abacus.gene.ucl.ac.uk/software/"
11788 "paml" version ".tgz"))
11789 (sha256
11790 (base32
11791 "13zf6h9fiqghwhch2h06x1zdr6s42plsnqahflp5g7myr3han3s6"))
11792 (modules '((guix build utils)))
11793 ;; Remove Windows binaries
11794 (snippet
11795 '(begin
11796 (for-each delete-file (find-files "." "\\.exe$"))
11797 #t))))
11798 (build-system gnu-build-system)
11799 (arguments
11800 `(#:tests? #f ; there are no tests
11801 #:make-flags '("CC=gcc")
11802 #:phases
11803 (modify-phases %standard-phases
11804 (replace 'configure
11805 (lambda _
11806 (substitute* "src/BFdriver.c"
11807 (("/bin/bash") (which "bash")))
11808 (chdir "src")
11809 #t))
11810 (replace 'install
11811 (lambda* (#:key outputs #:allow-other-keys)
11812 (let ((tools '("baseml" "basemlg" "codeml"
11813 "pamp" "evolver" "yn00" "chi2"))
11814 (bin (string-append (assoc-ref outputs "out") "/bin"))
11815 (docdir (string-append (assoc-ref outputs "out")
11816 "/share/doc/paml")))
11817 (mkdir-p bin)
11818 (for-each (lambda (file) (install-file file bin)) tools)
11819 (copy-recursively "../doc" docdir)
11820 #t))))))
11821 (home-page "http://abacus.gene.ucl.ac.uk/software/paml.html")
11822 (synopsis "Phylogentic analysis by maximum likelihood")
11823 (description "PAML (for Phylogentic Analysis by Maximum Likelihood)
11824 contains a few programs for model fitting and phylogenetic tree reconstruction
11825 using nucleotide or amino-acid sequence data.")
11826 ;; GPLv3 only
11827 (license license:gpl3)))
11828
11829 (define-public kallisto
11830 (package
11831 (name "kallisto")
11832 (version "0.44.0")
11833 (source (origin
11834 (method git-fetch)
11835 (uri (git-reference
11836 (url "https://github.com/pachterlab/kallisto.git")
11837 (commit (string-append "v" version))))
11838 (file-name (git-file-name name version))
11839 (sha256
11840 (base32
11841 "0nj382jiywqnpgvyhichajpkkh5r0bapn43f4dx40zdaq5v4m40m"))))
11842 (build-system cmake-build-system)
11843 (arguments
11844 `(#:tests? #f ; no "check" target
11845 #:phases
11846 (modify-phases %standard-phases
11847 (add-after 'unpack 'do-not-use-bundled-htslib
11848 (lambda _
11849 (substitute* "CMakeLists.txt"
11850 (("^ExternalProject_Add" m)
11851 (string-append "if (NEVER)\n" m))
11852 (("^\\)")
11853 (string-append ")\nendif(NEVER)"))
11854 (("include_directories\\(\\$\\{htslib_PREFIX.*" m)
11855 (string-append "# " m)))
11856 (substitute* "src/CMakeLists.txt"
11857 (("target_link_libraries\\(kallisto kallisto_core pthread \
11858 \\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/../ext/htslib/libhts.a\\)")
11859 "target_link_libraries(kallisto kallisto_core pthread hts)")
11860 (("include_directories\\(\\.\\./ext/htslib\\)") ""))
11861 #t)))))
11862 (inputs
11863 `(("hdf5" ,hdf5)
11864 ("htslib" ,htslib)
11865 ("zlib" ,zlib)))
11866 (home-page "http://pachterlab.github.io/kallisto/")
11867 (synopsis "Near-optimal RNA-Seq quantification")
11868 (description
11869 "Kallisto is a program for quantifying abundances of transcripts from
11870 RNA-Seq data, or more generally of target sequences using high-throughput
11871 sequencing reads. It is based on the novel idea of pseudoalignment for
11872 rapidly determining the compatibility of reads with targets, without the need
11873 for alignment. Pseudoalignment of reads preserves the key information needed
11874 for quantification, and kallisto is therefore not only fast, but also as
11875 accurate as existing quantification tools.")
11876 (license license:bsd-2)))
11877
11878 (define-public libgff
11879 (package
11880 (name "libgff")
11881 (version "1.0")
11882 (source (origin
11883 (method git-fetch)
11884 (uri (git-reference
11885 (url "https://github.com/Kingsford-Group/libgff.git")
11886 (commit (string-append "v" version))))
11887 (file-name (git-file-name name version))
11888 (sha256
11889 (base32
11890 "0n6vfjnq7a2mianipscbshrvbncss8z4zkgkbjw754p9043nfkps"))))
11891 (build-system cmake-build-system)
11892 (arguments `(#:tests? #f)) ; no tests included
11893 (home-page "https://github.com/Kingsford-Group/libgff")
11894 (synopsis "Parser library for reading/writing GFF files")
11895 (description "This is a simple \"libraryfication\" of the GFF/GTF parsing
11896 code that is used in the Cufflinks codebase. The goal of this library is to
11897 provide this functionality without the necessity of drawing in a heavy-weight
11898 dependency like SeqAn.")
11899 (license (license:x11-style "https://www.boost.org/LICENSE_1_0.txt"))))
11900
11901 (define-public libdivsufsort
11902 (package
11903 (name "libdivsufsort")
11904 (version "2.0.1")
11905 (source (origin
11906 (method git-fetch)
11907 (uri (git-reference
11908 (url "https://github.com/y-256/libdivsufsort.git")
11909 (commit version)))
11910 (file-name (git-file-name name version))
11911 (sha256
11912 (base32
11913 "0fgdz9fzihlvjjrxy01md1bv9vh12rkgkwbm90b1hj5xpbaqp7z2"))))
11914 (build-system cmake-build-system)
11915 (arguments
11916 '(#:tests? #f ; there are no tests
11917 #:configure-flags
11918 ;; Needed for rapmap and sailfish.
11919 '("-DBUILD_DIVSUFSORT64=ON")))
11920 (home-page "https://github.com/y-256/libdivsufsort")
11921 (synopsis "Lightweight suffix-sorting library")
11922 (description "libdivsufsort is a software library that implements a
11923 lightweight suffix array construction algorithm. This library provides a
11924 simple and an efficient C API to construct a suffix array and a
11925 Burrows-Wheeler transformed string from a given string over a constant-size
11926 alphabet. The algorithm runs in O(n log n) worst-case time using only 5n+O(1)
11927 bytes of memory space, where n is the length of the string.")
11928 (license license:expat)))
11929
11930 (define-public sailfish
11931 (package
11932 (name "sailfish")
11933 (version "0.10.1")
11934 (source (origin
11935 (method git-fetch)
11936 (uri (git-reference
11937 (url "https://github.com/kingsfordgroup/sailfish.git")
11938 (commit (string-append "v" version))))
11939 (file-name (git-file-name name version))
11940 (sha256
11941 (base32
11942 "1amcc5hqvsl42hg4x19bi9vy47cl874s0lw1fmi0hwsdk9i8c03v"))
11943 (modules '((guix build utils)))
11944 (snippet
11945 '(begin
11946 ;; Delete bundled headers for eigen3.
11947 (delete-file-recursively "include/eigen3/")
11948 #t))))
11949 (build-system cmake-build-system)
11950 (arguments
11951 `(#:configure-flags
11952 (list (string-append "-DBOOST_INCLUDEDIR="
11953 (assoc-ref %build-inputs "boost")
11954 "/include/")
11955 (string-append "-DBOOST_LIBRARYDIR="
11956 (assoc-ref %build-inputs "boost")
11957 "/lib/")
11958 (string-append "-DBoost_LIBRARIES="
11959 "-lboost_iostreams "
11960 "-lboost_filesystem "
11961 "-lboost_system "
11962 "-lboost_thread "
11963 "-lboost_timer "
11964 "-lboost_chrono "
11965 "-lboost_program_options")
11966 "-DBoost_FOUND=TRUE"
11967 ;; Don't download RapMap---we already have it!
11968 "-DFETCHED_RAPMAP=1")
11969 ;; Tests must be run after installation and the location of the test
11970 ;; data file must be overridden. But the tests fail. It looks like
11971 ;; they are not really meant to be run.
11972 #:tests? #f
11973 #:phases
11974 (modify-phases %standard-phases
11975 ;; Boost cannot be found, even though it's right there.
11976 (add-after 'unpack 'do-not-look-for-boost
11977 (lambda* (#:key inputs #:allow-other-keys)
11978 (substitute* "CMakeLists.txt"
11979 (("find_package\\(Boost 1\\.53\\.0") "#"))
11980 #t))
11981 (add-after 'unpack 'do-not-assign-to-macro
11982 (lambda _
11983 (substitute* "include/spdlog/details/format.cc"
11984 (("const unsigned CHAR_WIDTH = 1;") ""))
11985 #t))
11986 (add-after 'unpack 'prepare-rapmap
11987 (lambda* (#:key inputs #:allow-other-keys)
11988 (let ((src "external/install/src/rapmap/")
11989 (include "external/install/include/rapmap/")
11990 (rapmap (assoc-ref inputs "rapmap")))
11991 (mkdir-p "/tmp/rapmap")
11992 (invoke "tar" "xf"
11993 (assoc-ref inputs "rapmap")
11994 "-C" "/tmp/rapmap"
11995 "--strip-components=1")
11996 (mkdir-p src)
11997 (mkdir-p include)
11998 (for-each (lambda (file)
11999 (install-file file src))
12000 (find-files "/tmp/rapmap/src" "\\.(c|cpp)"))
12001 (copy-recursively "/tmp/rapmap/include" include))
12002 #t))
12003 (add-after 'unpack 'use-system-libraries
12004 (lambda* (#:key inputs #:allow-other-keys)
12005 (substitute* '("src/SailfishIndexer.cpp"
12006 "src/SailfishUtils.cpp"
12007 "src/SailfishQuantify.cpp"
12008 "src/FASTAParser.cpp"
12009 "include/PCA.hpp"
12010 "include/SailfishUtils.hpp"
12011 "include/SailfishIndex.hpp"
12012 "include/CollapsedEMOptimizer.hpp"
12013 "src/CollapsedEMOptimizer.cpp")
12014 (("#include \"jellyfish/config.h\"") ""))
12015 (substitute* "src/CMakeLists.txt"
12016 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
12017 (string-append (assoc-ref inputs "jellyfish")
12018 "/include/jellyfish-" ,(package-version jellyfish)))
12019 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
12020 (string-append (assoc-ref inputs "jellyfish")
12021 "/lib/libjellyfish-2.0.a"))
12022 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
12023 (string-append (assoc-ref inputs "libdivsufsort")
12024 "/lib/libdivsufsort.so"))
12025 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
12026 (string-append (assoc-ref inputs "libdivsufsort")
12027 "/lib/libdivsufsort64.so")))
12028 (substitute* "CMakeLists.txt"
12029 ;; Don't prefer static libs
12030 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
12031 (("find_package\\(Jellyfish.*") "")
12032 (("ExternalProject_Add\\(libjellyfish") "message(")
12033 (("ExternalProject_Add\\(libgff") "message(")
12034 (("ExternalProject_Add\\(libsparsehash") "message(")
12035 (("ExternalProject_Add\\(libdivsufsort") "message("))
12036
12037 ;; Ensure that Eigen headers can be found
12038 (setenv "CPLUS_INCLUDE_PATH"
12039 (string-append (getenv "CPLUS_INCLUDE_PATH")
12040 ":"
12041 (assoc-ref inputs "eigen")
12042 "/include/eigen3"))
12043 #t)))))
12044 (inputs
12045 `(("boost" ,boost)
12046 ("eigen" ,eigen)
12047 ("jemalloc" ,jemalloc)
12048 ("jellyfish" ,jellyfish)
12049 ("sparsehash" ,sparsehash)
12050 ("rapmap" ,(origin
12051 (method git-fetch)
12052 (uri (git-reference
12053 (url "https://github.com/COMBINE-lab/RapMap.git")
12054 (commit (string-append "sf-v" version))))
12055 (file-name (string-append "rapmap-sf-v" version "-checkout"))
12056 (sha256
12057 (base32
12058 "1hv79l5i576ykv5a1srj2p0q36yvyl5966m0fcy2lbi169ipjakf"))
12059 (modules '((guix build utils)))
12060 ;; These files are expected to be excluded.
12061 (snippet
12062 '(begin (delete-file-recursively "include/spdlog")
12063 (for-each delete-file '("include/xxhash.h"
12064 "src/xxhash.c"))
12065 #t))))
12066 ("libdivsufsort" ,libdivsufsort)
12067 ("libgff" ,libgff)
12068 ("tbb" ,tbb)
12069 ("zlib" ,zlib)))
12070 (native-inputs
12071 `(("pkg-config" ,pkg-config)))
12072 (home-page "http://www.cs.cmu.edu/~ckingsf/software/sailfish")
12073 (synopsis "Mapping-based isoform quantification from RNA-Seq reads")
12074 (description "Sailfish is a tool for genomic transcript quantification
12075 from RNA-seq data. It requires a set of target transcripts (either from a
12076 reference or de-novo assembly) to quantify. All you need to run sailfish is a
12077 fasta file containing your reference transcripts and a (set of) fasta/fastq
12078 file(s) containing your reads.")
12079 (license license:gpl3+)))
12080
12081 (define libstadenio-for-salmon
12082 (package
12083 (name "libstadenio")
12084 (version "1.14.8")
12085 (source (origin
12086 (method git-fetch)
12087 (uri (git-reference
12088 (url "https://github.com/COMBINE-lab/staden-io_lib.git")
12089 (commit (string-append "v" version))))
12090 (file-name (string-append name "-" version "-checkout"))
12091 (sha256
12092 (base32
12093 "1x8kxxqxl892vwfbprlbyfwkkv7c34ggkc94892x9x0g37x5nbwx"))))
12094 (build-system gnu-build-system)
12095 (arguments '(#:parallel-tests? #f)) ; not supported
12096 (inputs
12097 `(("zlib" ,zlib)))
12098 (native-inputs
12099 `(("perl" ,perl))) ; for tests
12100 (home-page "https://github.com/COMBINE-lab/staden-io_lib")
12101 (synopsis "General purpose trace and experiment file library")
12102 (description "This package provides a library of file reading and writing
12103 code to provide a general purpose Trace file (and Experiment File) reading
12104 interface.
12105
12106 The following file formats are supported:
12107
12108 @enumerate
12109 @item SCF trace files
12110 @item ABI trace files
12111 @item ALF trace files
12112 @item ZTR trace files
12113 @item SFF trace archives
12114 @item SRF trace archives
12115 @item Experiment files
12116 @item Plain text files
12117 @item SAM/BAM sequence files
12118 @item CRAM sequence files
12119 @end enumerate\n")
12120 (license license:bsd-3)))
12121
12122 (define spdlog-for-salmon
12123 (package
12124 (name "spdlog")
12125 (version "0.14.0")
12126 (source (origin
12127 (method git-fetch)
12128 (uri (git-reference
12129 (url "https://github.com/COMBINE-lab/spdlog.git")
12130 (commit (string-append "v" version))))
12131 (file-name (string-append name "-" version "-checkout"))
12132 (sha256
12133 (base32
12134 "13730429gwlabi432ilpnja3sfvy0nn2719vnhhmii34xcdyc57q"))))
12135 (build-system cmake-build-system)
12136 (home-page "https://github.com/COMBINE-lab/spdlog")
12137 (synopsis "Very fast C++ logging library")
12138 (description "Spdlog is a very fast header-only C++ logging library with
12139 performance as its primary goal.")
12140 (license license:expat)))
12141
12142 ;; This is a modified variant of bwa for use with Salmon. It installs a
12143 ;; library to avoid having to build this as part of Salmon.
12144 (define bwa-for-salmon
12145 (package (inherit bwa)
12146 (name "bwa")
12147 (version "0.7.12.5")
12148 (source (origin
12149 (method git-fetch)
12150 (uri (git-reference
12151 (url "https://github.com/COMBINE-lab/bwa.git")
12152 (commit (string-append "v" version))))
12153 (file-name (string-append "bwa-for-salmon-" version "-checkout"))
12154 (sha256
12155 (base32
12156 "1z2qa64y0c5hky10510x137mnzlhz6k8qf27csw4w9j6qihq95gb"))))
12157 (build-system gnu-build-system)
12158 (arguments
12159 '(#:tests? #f ;no "check" target
12160 #:phases
12161 (modify-phases %standard-phases
12162 (replace 'install
12163 (lambda* (#:key outputs #:allow-other-keys)
12164 (let* ((out (assoc-ref outputs "out"))
12165 (bin (string-append out "/bin"))
12166 (lib (string-append out "/lib"))
12167 (doc (string-append out "/share/doc/bwa"))
12168 (man (string-append out "/share/man/man1"))
12169 (inc (string-append out "/include/bwa")))
12170 (install-file "bwa" bin)
12171 (install-file "README.md" doc)
12172 (install-file "bwa.1" man)
12173 (install-file "libbwa.a" lib)
12174 (mkdir-p lib)
12175 (mkdir-p inc)
12176 (for-each (lambda (file)
12177 (install-file file inc))
12178 (find-files "." "\\.h$")))
12179 #t))
12180 ;; no "configure" script
12181 (delete 'configure))))))
12182
12183 (define-public salmon
12184 (package
12185 (name "salmon")
12186 (version "0.9.1")
12187 (source (origin
12188 (method git-fetch)
12189 (uri (git-reference
12190 (url "https://github.com/COMBINE-lab/salmon.git")
12191 (commit (string-append "v" version))))
12192 (file-name (string-append name "-" version "-checkout"))
12193 (sha256
12194 (base32
12195 "1zi1ff4i7y2ykk0vdzysgwzzzv166vg2x77pj1mf4baclavxj87a"))
12196 (modules '((guix build utils)))
12197 (snippet
12198 '(begin
12199 ;; Delete bundled headers for eigen3.
12200 (delete-file-recursively "include/eigen3/")
12201 #t))))
12202 (build-system cmake-build-system)
12203 (arguments
12204 `(#:configure-flags
12205 (list (string-append "-DBOOST_INCLUDEDIR="
12206 (assoc-ref %build-inputs "boost")
12207 "/include/")
12208 (string-append "-DBOOST_LIBRARYDIR="
12209 (assoc-ref %build-inputs "boost")
12210 "/lib/")
12211 (string-append "-DBoost_LIBRARIES="
12212 "-lboost_iostreams "
12213 "-lboost_filesystem "
12214 "-lboost_system "
12215 "-lboost_thread "
12216 "-lboost_timer "
12217 "-lboost_chrono "
12218 "-lboost_program_options")
12219 "-DBoost_FOUND=TRUE"
12220 "-DTBB_LIBRARIES=tbb tbbmalloc"
12221 ;; Don't download RapMap---we already have it!
12222 "-DFETCHED_RAPMAP=1")
12223 #:phases
12224 (modify-phases %standard-phases
12225 ;; Boost cannot be found, even though it's right there.
12226 (add-after 'unpack 'do-not-look-for-boost
12227 (lambda* (#:key inputs #:allow-other-keys)
12228 (substitute* "CMakeLists.txt"
12229 (("find_package\\(Boost 1\\.53\\.0") "#"))
12230 #t))
12231 (add-after 'unpack 'do-not-phone-home
12232 (lambda _
12233 (substitute* "src/Salmon.cpp"
12234 (("getVersionMessage\\(\\)") "\"\""))
12235 #t))
12236 (add-after 'unpack 'prepare-rapmap
12237 (lambda* (#:key inputs #:allow-other-keys)
12238 (let ((src "external/install/src/rapmap/")
12239 (include "external/install/include/rapmap/")
12240 (rapmap (assoc-ref inputs "rapmap")))
12241 (mkdir-p src)
12242 (mkdir-p include)
12243 (for-each (lambda (file)
12244 (install-file file src))
12245 (find-files (string-append rapmap "/src") "\\.(c|cpp)"))
12246 (copy-recursively (string-append rapmap "/include") include)
12247 (for-each delete-file '("external/install/include/rapmap/xxhash.h"
12248 "external/install/include/rapmap/FastxParser.hpp"
12249 "external/install/include/rapmap/concurrentqueue.h"
12250 "external/install/include/rapmap/FastxParserThreadUtils.hpp"
12251 "external/install/src/rapmap/FastxParser.cpp"
12252 "external/install/src/rapmap/xxhash.c")))
12253 #t))
12254 (add-after 'unpack 'use-system-libraries
12255 (lambda* (#:key inputs #:allow-other-keys)
12256 (substitute* "src/CMakeLists.txt"
12257 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
12258 (string-append (assoc-ref inputs "jellyfish")
12259 "/include/jellyfish-" ,(package-version jellyfish)))
12260 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
12261 (string-append (assoc-ref inputs "jellyfish")
12262 "/lib/libjellyfish-2.0.a"))
12263 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
12264 (string-append (assoc-ref inputs "libdivsufsort")
12265 "/lib/libdivsufsort.so"))
12266 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libstaden-read.a")
12267 (string-append (assoc-ref inputs "libstadenio-for-salmon")
12268 "/lib/libstaden-read.a"))
12269 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libbwa.a")
12270 (string-append (assoc-ref inputs "bwa") "/lib/libbwa.a"))
12271 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
12272 (string-append (assoc-ref inputs "libdivsufsort")
12273 "/lib/libdivsufsort64.so")))
12274 (substitute* "CMakeLists.txt"
12275 ;; Don't prefer static libs
12276 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
12277 (("set\\(TBB_LIBRARIES") "message(")
12278 (("find_package\\(Jellyfish.*") "")
12279 (("ExternalProject_Add\\(libcereal") "message(")
12280 (("ExternalProject_Add\\(libbwa") "message(")
12281 (("ExternalProject_Add\\(libjellyfish") "message(")
12282 (("ExternalProject_Add\\(libgff") "message(")
12283 (("ExternalProject_Add\\(libtbb") "message(")
12284 (("ExternalProject_Add\\(libspdlog") "message(")
12285 (("ExternalProject_Add\\(libdivsufsort") "message(")
12286 (("ExternalProject_Add\\(libstadenio") "message(")
12287 (("ExternalProject_Add_Step\\(") "message("))
12288
12289 ;; Ensure that all headers can be found
12290 (setenv "CPLUS_INCLUDE_PATH"
12291 (string-append (getenv "CPLUS_INCLUDE_PATH")
12292 ":"
12293 (assoc-ref inputs "bwa")
12294 "/include/bwa"
12295 ":"
12296 (assoc-ref inputs "eigen")
12297 "/include/eigen3"))
12298 (setenv "CPATH"
12299 (string-append (assoc-ref inputs "bwa")
12300 "/include/bwa"
12301 ":"
12302 (assoc-ref inputs "eigen")
12303 "/include/eigen3"))
12304 #t))
12305 ;; CMAKE_INSTALL_PREFIX does not exist when the tests are
12306 ;; run. It only exists after the install phase.
12307 (add-after 'unpack 'fix-tests
12308 (lambda _
12309 (substitute* "src/CMakeLists.txt"
12310 (("DTOPLEVEL_DIR=\\$\\{CMAKE_INSTALL_PREFIX")
12311 "DTOPLEVEL_DIR=${GAT_SOURCE_DIR"))
12312 #t)))))
12313 (inputs
12314 `(("boost" ,boost)
12315 ("bwa" ,bwa-for-salmon)
12316 ("bzip2" ,bzip2)
12317 ("cereal" ,cereal)
12318 ("eigen" ,eigen)
12319 ("rapmap" ,(origin
12320 (method git-fetch)
12321 (uri (git-reference
12322 (url "https://github.com/COMBINE-lab/RapMap.git")
12323 (commit (string-append "salmon-v" version))))
12324 (file-name (string-append "rapmap-salmon-v" version "-checkout"))
12325 (sha256
12326 (base32
12327 "1yc12yqsz6f0r8sg1qnk57xg34aqwc9jbqq6gd5ys28xw3plj98p"))))
12328 ("jemalloc" ,jemalloc)
12329 ("jellyfish" ,jellyfish)
12330 ("libgff" ,libgff)
12331 ("tbb" ,tbb)
12332 ("libdivsufsort" ,libdivsufsort)
12333 ("libstadenio-for-salmon" ,libstadenio-for-salmon)
12334 ("spdlog-for-salmon" ,spdlog-for-salmon)
12335 ("xz" ,xz)
12336 ("zlib" ,zlib)))
12337 (home-page "https://github.com/COMBINE-lab/salmon")
12338 (synopsis "Quantification from RNA-seq reads using lightweight alignments")
12339 (description "Salmon is a program to produce highly-accurate,
12340 transcript-level quantification estimates from RNA-seq data. Salmon achieves
12341 its accuracy and speed via a number of different innovations, including the
12342 use of lightweight alignments (accurate but fast-to-compute proxies for
12343 traditional read alignments) and massively-parallel stochastic collapsed
12344 variational inference.")
12345 (license license:gpl3+)))
12346
12347 (define-public python-loompy
12348 (package
12349 (name "python-loompy")
12350 (version "2.0.2")
12351 (source
12352 (origin
12353 (method url-fetch)
12354 (uri (pypi-uri "loompy" version))
12355 (sha256
12356 (base32
12357 "1drgv8j1hxqzzpnfg272x9djb6j8qr798w1pc2x8ikmfgyd9gh51"))))
12358 (build-system python-build-system)
12359 ;; There are no tests
12360 (arguments '(#:tests? #f))
12361 (propagated-inputs
12362 `(("python-h5py" ,python-h5py)
12363 ("python-numpy" ,python-numpy)
12364 ("python-scipy" ,python-scipy)))
12365 (home-page "https://github.com/linnarsson-lab/loompy")
12366 (synopsis "Work with .loom files for single-cell RNA-seq data")
12367 (description "The loom file format is an efficient format for very large
12368 omics datasets, consisting of a main matrix, optional additional layers, a
12369 variable number of row and column annotations. Loom also supports sparse
12370 graphs. This library makes it easy to work with @file{.loom} files for
12371 single-cell RNA-seq data.")
12372 (license license:bsd-3)))
12373
12374 ;; We cannot use the latest commit because it requires Java 9.
12375 (define-public java-forester
12376 (let ((commit "86b07efe302d5094b42deed9260f719a4c4ac2e6")
12377 (revision "1"))
12378 (package
12379 (name "java-forester")
12380 (version (string-append "0-" revision "." (string-take commit 7)))
12381 (source (origin
12382 (method git-fetch)
12383 (uri (git-reference
12384 (url "https://github.com/cmzmasek/forester.git")
12385 (commit commit)))
12386 (file-name (string-append name "-" version "-checkout"))
12387 (sha256
12388 (base32
12389 "0vxavc1yrf84yrnf20dq26hi0lglidk8d382xrxsy4qmlbjd276z"))
12390 (modules '((guix build utils)))
12391 (snippet
12392 '(begin
12393 ;; Delete bundled jars and pre-built classes
12394 (delete-file-recursively "forester/java/resources")
12395 (delete-file-recursively "forester/java/classes")
12396 (for-each delete-file (find-files "forester/java/" "\\.jar$"))
12397 ;; Delete bundled applications
12398 (delete-file-recursively "forester_applications")
12399 #t))))
12400 (build-system ant-build-system)
12401 (arguments
12402 `(#:tests? #f ; there are none
12403 #:jdk ,icedtea-8
12404 #:modules ((guix build ant-build-system)
12405 (guix build utils)
12406 (guix build java-utils)
12407 (sxml simple)
12408 (sxml transform))
12409 #:phases
12410 (modify-phases %standard-phases
12411 (add-after 'unpack 'chdir
12412 (lambda _ (chdir "forester/java") #t))
12413 (add-after 'chdir 'fix-dependencies
12414 (lambda _
12415 (chmod "build.xml" #o664)
12416 (call-with-output-file "build.xml.new"
12417 (lambda (port)
12418 (sxml->xml
12419 (pre-post-order
12420 (with-input-from-file "build.xml"
12421 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12422 `(;; Remove all unjar tags to avoid repacking classes.
12423 (unjar . ,(lambda _ '()))
12424 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12425 (*text* . ,(lambda (_ txt) txt))))
12426 port)))
12427 (rename-file "build.xml.new" "build.xml")
12428 #t))
12429 ;; FIXME: itext is difficult to package as it depends on a few
12430 ;; unpackaged libraries.
12431 (add-after 'chdir 'remove-dependency-on-unpackaged-itext
12432 (lambda _
12433 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12434 (substitute* "src/org/forester/archaeopteryx/MainFrame.java"
12435 (("pdf_written_to = PdfExporter.*")
12436 "throw new IOException(\"PDF export is not available.\");"))
12437 #t))
12438 ;; There is no install target
12439 (replace 'install (install-jars ".")))))
12440 (propagated-inputs
12441 `(("java-commons-codec" ,java-commons-codec)
12442 ("java-openchart2" ,java-openchart2)))
12443 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12444 (synopsis "Phylogenomics libraries for Java")
12445 (description "Forester is a collection of Java libraries for
12446 phylogenomics and evolutionary biology research. It includes support for
12447 reading, writing, and exporting phylogenetic trees.")
12448 (license license:lgpl2.1+))))
12449
12450 (define-public java-forester-1.005
12451 (package
12452 (name "java-forester")
12453 (version "1.005")
12454 (source (origin
12455 (method url-fetch)
12456 (uri (string-append "http://search.maven.org/remotecontent?"
12457 "filepath=org/biojava/thirdparty/forester/"
12458 version "/forester-" version "-sources.jar"))
12459 (file-name (string-append name "-" version ".jar"))
12460 (sha256
12461 (base32
12462 "04r8qv4rk3p71z4ajrvp11py1z46qrx0047j3zzs79s6lnsm3lcv"))))
12463 (build-system ant-build-system)
12464 (arguments
12465 `(#:tests? #f ; there are none
12466 #:jdk ,icedtea-8
12467 #:modules ((guix build ant-build-system)
12468 (guix build utils)
12469 (guix build java-utils)
12470 (sxml simple)
12471 (sxml transform))
12472 #:phases
12473 (modify-phases %standard-phases
12474 (add-after 'unpack 'fix-dependencies
12475 (lambda* (#:key inputs #:allow-other-keys)
12476 (call-with-output-file "build.xml"
12477 (lambda (port)
12478 (sxml->xml
12479 (pre-post-order
12480 (with-input-from-file "src/build.xml"
12481 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12482 `(;; Remove all unjar tags to avoid repacking classes.
12483 (unjar . ,(lambda _ '()))
12484 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12485 (*text* . ,(lambda (_ txt) txt))))
12486 port)))
12487 (copy-file (assoc-ref inputs "synth_look_and_feel_1.xml")
12488 "synth_look_and_feel_1.xml")
12489 (copy-file (assoc-ref inputs "phyloxml.xsd")
12490 "phyloxml.xsd")
12491 (substitute* "build.xml"
12492 (("../resources/synth_laf/synth_look_and_feel_1.xml")
12493 "synth_look_and_feel_1.xml")
12494 (("../resources/phyloxml_schema/1.10/phyloxml.xsd")
12495 "phyloxml.xsd"))
12496 #t))
12497 ;; FIXME: itext is difficult to package as it depends on a few
12498 ;; unpackaged libraries.
12499 (add-after 'unpack 'remove-dependency-on-unpackaged-itext
12500 (lambda _
12501 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12502 (substitute* '("src/org/forester/archaeopteryx/MainFrame.java"
12503 "src/org/forester/archaeopteryx/MainFrameApplication.java")
12504 (("pdf_written_to = PdfExporter.*")
12505 "throw new IOException(\"PDF export is not available.\"); /*")
12506 ((".getPrintSizeX\\(\\), getOptions\\(\\).getPrintSizeY\\(\\) \\);") "*/")
12507 (("getCurrentTreePanel\\(\\).getHeight\\(\\) \\);") "*/"))
12508 #t))
12509 (add-after 'unpack 'delete-pre-built-classes
12510 (lambda _ (delete-file-recursively "src/classes") #t))
12511 ;; There is no install target
12512 (replace 'install (install-jars ".")))))
12513 (propagated-inputs
12514 `(("java-commons-codec" ,java-commons-codec)
12515 ("java-openchart2" ,java-openchart2)))
12516 ;; The source archive does not contain the resources.
12517 (native-inputs
12518 `(("phyloxml.xsd"
12519 ,(origin
12520 (method url-fetch)
12521 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12522 "b61cc2dcede0bede317db362472333115756b8c6/"
12523 "forester/resources/phyloxml_schema/1.10/phyloxml.xsd"))
12524 (file-name (string-append name "-phyloxml-" version ".xsd"))
12525 (sha256
12526 (base32
12527 "1zxc4m8sn4n389nqdnpxa8d0k17qnr3pm2y5y6g6vh4k0zm52npv"))))
12528 ("synth_look_and_feel_1.xml"
12529 ,(origin
12530 (method url-fetch)
12531 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12532 "29e04321615da6b35c1e15c60e52caf3f21d8e6a/"
12533 "forester/java/classes/resources/synth_look_and_feel_1.xml"))
12534 (file-name (string-append name "-synth-look-and-feel-" version ".xml"))
12535 (sha256
12536 (base32
12537 "1gv5602gv4k7y7713y75a4jvj7i9s7nildsbdl7n9q10sc2ikg8h"))))))
12538 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12539 (synopsis "Phylogenomics libraries for Java")
12540 (description "Forester is a collection of Java libraries for
12541 phylogenomics and evolutionary biology research. It includes support for
12542 reading, writing, and exporting phylogenetic trees.")
12543 (license license:lgpl2.1+)))
12544
12545 (define-public java-biojava-core
12546 (package
12547 (name "java-biojava-core")
12548 (version "4.2.11")
12549 (source (origin
12550 (method git-fetch)
12551 (uri (git-reference
12552 (url "https://github.com/biojava/biojava")
12553 (commit (string-append "biojava-" version))))
12554 (file-name (string-append name "-" version "-checkout"))
12555 (sha256
12556 (base32
12557 "1bvryh2bpsvash8ln79cmc9sqm8qw72hz4xzwqxcrjm8ssxszhqk"))))
12558 (build-system ant-build-system)
12559 (arguments
12560 `(#:jdk ,icedtea-8
12561 #:jar-name "biojava-core.jar"
12562 #:source-dir "biojava-core/src/main/java/"
12563 #:test-dir "biojava-core/src/test"
12564 ;; These tests seem to require internet access.
12565 #:test-exclude (list "**/SearchIOTest.java"
12566 "**/BlastXMLParserTest.java"
12567 "**/GenbankCookbookTest.java"
12568 "**/GenbankProxySequenceReaderTest.java")
12569 #:phases
12570 (modify-phases %standard-phases
12571 (add-before 'build 'copy-resources
12572 (lambda _
12573 (copy-recursively "biojava-core/src/main/resources"
12574 "build/classes")
12575 #t))
12576 (add-before 'check 'copy-test-resources
12577 (lambda _
12578 (copy-recursively "biojava-core/src/test/resources"
12579 "build/test-classes")
12580 #t)))))
12581 (propagated-inputs
12582 `(("java-log4j-api" ,java-log4j-api)
12583 ("java-log4j-core" ,java-log4j-core)
12584 ("java-slf4j-api" ,java-slf4j-api)
12585 ("java-slf4j-simple" ,java-slf4j-simple)))
12586 (native-inputs
12587 `(("java-junit" ,java-junit)
12588 ("java-hamcrest-core" ,java-hamcrest-core)))
12589 (home-page "http://biojava.org")
12590 (synopsis "Core libraries of Java framework for processing biological data")
12591 (description "BioJava is a project dedicated to providing a Java framework
12592 for processing biological data. It provides analytical and statistical
12593 routines, parsers for common file formats, reference implementations of
12594 popular algorithms, and allows the manipulation of sequences and 3D
12595 structures. The goal of the biojava project is to facilitate rapid
12596 application development for bioinformatics.
12597
12598 This package provides the core libraries.")
12599 (license license:lgpl2.1+)))
12600
12601 (define-public java-biojava-phylo
12602 (package (inherit java-biojava-core)
12603 (name "java-biojava-phylo")
12604 (build-system ant-build-system)
12605 (arguments
12606 `(#:jdk ,icedtea-8
12607 #:jar-name "biojava-phylo.jar"
12608 #:source-dir "biojava-phylo/src/main/java/"
12609 #:test-dir "biojava-phylo/src/test"
12610 #:phases
12611 (modify-phases %standard-phases
12612 (add-before 'build 'copy-resources
12613 (lambda _
12614 (copy-recursively "biojava-phylo/src/main/resources"
12615 "build/classes")
12616 #t))
12617 (add-before 'check 'copy-test-resources
12618 (lambda _
12619 (copy-recursively "biojava-phylo/src/test/resources"
12620 "build/test-classes")
12621 #t)))))
12622 (propagated-inputs
12623 `(("java-log4j-api" ,java-log4j-api)
12624 ("java-log4j-core" ,java-log4j-core)
12625 ("java-slf4j-api" ,java-slf4j-api)
12626 ("java-slf4j-simple" ,java-slf4j-simple)
12627 ("java-biojava-core" ,java-biojava-core)
12628 ("java-forester" ,java-forester)))
12629 (native-inputs
12630 `(("java-junit" ,java-junit)
12631 ("java-hamcrest-core" ,java-hamcrest-core)))
12632 (home-page "http://biojava.org")
12633 (synopsis "Biojava interface to the forester phylogenomics library")
12634 (description "The phylo module provides a biojava interface layer to the
12635 forester phylogenomics library for constructing phylogenetic trees.")))
12636
12637 (define-public java-biojava-alignment
12638 (package (inherit java-biojava-core)
12639 (name "java-biojava-alignment")
12640 (build-system ant-build-system)
12641 (arguments
12642 `(#:jdk ,icedtea-8
12643 #:jar-name "biojava-alignment.jar"
12644 #:source-dir "biojava-alignment/src/main/java/"
12645 #:test-dir "biojava-alignment/src/test"
12646 #:phases
12647 (modify-phases %standard-phases
12648 (add-before 'build 'copy-resources
12649 (lambda _
12650 (copy-recursively "biojava-alignment/src/main/resources"
12651 "build/classes")
12652 #t))
12653 (add-before 'check 'copy-test-resources
12654 (lambda _
12655 (copy-recursively "biojava-alignment/src/test/resources"
12656 "build/test-classes")
12657 #t)))))
12658 (propagated-inputs
12659 `(("java-log4j-api" ,java-log4j-api)
12660 ("java-log4j-core" ,java-log4j-core)
12661 ("java-slf4j-api" ,java-slf4j-api)
12662 ("java-slf4j-simple" ,java-slf4j-simple)
12663 ("java-biojava-core" ,java-biojava-core)
12664 ("java-biojava-phylo" ,java-biojava-phylo)
12665 ("java-forester" ,java-forester)))
12666 (native-inputs
12667 `(("java-junit" ,java-junit)
12668 ("java-hamcrest-core" ,java-hamcrest-core)))
12669 (home-page "http://biojava.org")
12670 (synopsis "Biojava API for genetic sequence alignment")
12671 (description "The alignment module of BioJava provides an API that
12672 contains
12673
12674 @itemize
12675 @item implementations of dynamic programming algorithms for sequence
12676 alignment;
12677 @item reading and writing of popular alignment file formats;
12678 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12679 @end itemize\n")))
12680
12681 (define-public java-biojava-core-4.0
12682 (package (inherit java-biojava-core)
12683 (name "java-biojava-core")
12684 (version "4.0.0")
12685 (source (origin
12686 (method git-fetch)
12687 (uri (git-reference
12688 (url "https://github.com/biojava/biojava")
12689 (commit (string-append "biojava-" version))))
12690 (file-name (string-append name "-" version "-checkout"))
12691 (sha256
12692 (base32
12693 "13675f6y9aqi7bi2lk3s1z7a22ynccjiqwa8izh7p97xi9wsfmd8"))))))
12694
12695 (define-public java-biojava-phylo-4.0
12696 (package (inherit java-biojava-core-4.0)
12697 (name "java-biojava-phylo")
12698 (build-system ant-build-system)
12699 (arguments
12700 `(#:jdk ,icedtea-8
12701 #:jar-name "biojava-phylo.jar"
12702 #:source-dir "biojava-phylo/src/main/java/"
12703 #:test-dir "biojava-phylo/src/test"
12704 #:phases
12705 (modify-phases %standard-phases
12706 (add-before 'build 'copy-resources
12707 (lambda _
12708 (copy-recursively "biojava-phylo/src/main/resources"
12709 "build/classes")
12710 #t))
12711 (add-before 'check 'copy-test-resources
12712 (lambda _
12713 (copy-recursively "biojava-phylo/src/test/resources"
12714 "build/test-classes")
12715 #t)))))
12716 (propagated-inputs
12717 `(("java-log4j-api" ,java-log4j-api)
12718 ("java-log4j-core" ,java-log4j-core)
12719 ("java-slf4j-api" ,java-slf4j-api)
12720 ("java-slf4j-simple" ,java-slf4j-simple)
12721 ("java-biojava-core" ,java-biojava-core-4.0)
12722 ("java-forester" ,java-forester-1.005)))
12723 (native-inputs
12724 `(("java-junit" ,java-junit)
12725 ("java-hamcrest-core" ,java-hamcrest-core)))
12726 (home-page "http://biojava.org")
12727 (synopsis "Biojava interface to the forester phylogenomics library")
12728 (description "The phylo module provides a biojava interface layer to the
12729 forester phylogenomics library for constructing phylogenetic trees.")))
12730
12731 (define-public java-biojava-alignment-4.0
12732 (package (inherit java-biojava-core-4.0)
12733 (name "java-biojava-alignment")
12734 (build-system ant-build-system)
12735 (arguments
12736 `(#:jdk ,icedtea-8
12737 #:jar-name "biojava-alignment.jar"
12738 #:source-dir "biojava-alignment/src/main/java/"
12739 #:test-dir "biojava-alignment/src/test"
12740 #:phases
12741 (modify-phases %standard-phases
12742 (add-before 'build 'copy-resources
12743 (lambda _
12744 (copy-recursively "biojava-alignment/src/main/resources"
12745 "build/classes")
12746 #t))
12747 (add-before 'check 'copy-test-resources
12748 (lambda _
12749 (copy-recursively "biojava-alignment/src/test/resources"
12750 "build/test-classes")
12751 #t)))))
12752 (propagated-inputs
12753 `(("java-log4j-api" ,java-log4j-api)
12754 ("java-log4j-core" ,java-log4j-core)
12755 ("java-slf4j-api" ,java-slf4j-api)
12756 ("java-slf4j-simple" ,java-slf4j-simple)
12757 ("java-biojava-core" ,java-biojava-core-4.0)
12758 ("java-biojava-phylo" ,java-biojava-phylo-4.0)
12759 ("java-forester" ,java-forester-1.005)))
12760 (native-inputs
12761 `(("java-junit" ,java-junit)
12762 ("java-hamcrest-core" ,java-hamcrest-core)))
12763 (home-page "http://biojava.org")
12764 (synopsis "Biojava API for genetic sequence alignment")
12765 (description "The alignment module of BioJava provides an API that
12766 contains
12767
12768 @itemize
12769 @item implementations of dynamic programming algorithms for sequence
12770 alignment;
12771 @item reading and writing of popular alignment file formats;
12772 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12773 @end itemize\n")))
12774
12775 (define-public dropseq-tools
12776 (package
12777 (name "dropseq-tools")
12778 (version "1.13")
12779 (source
12780 (origin
12781 (method url-fetch)
12782 (uri "http://mccarrolllab.com/download/1276/")
12783 (file-name (string-append "dropseq-tools-" version ".zip"))
12784 (sha256
12785 (base32
12786 "0yrffckxqk5l8b5xb6z4laq157zd9mdypr2p4b4vq2bhjzi1sj0s"))
12787 ;; Delete bundled libraries
12788 (modules '((guix build utils)))
12789 (snippet
12790 '(begin
12791 (for-each delete-file (find-files "jar/lib" "\\.jar$"))
12792 (delete-file-recursively "3rdParty")
12793 #t))))
12794 (build-system ant-build-system)
12795 (arguments
12796 `(#:tests? #f ; test data are not included
12797 #:test-target "test"
12798 #:build-target "all"
12799 #:source-dir "public/src/"
12800 #:jdk ,icedtea-8
12801 #:make-flags
12802 (list (string-append "-Dpicard.executable.dir="
12803 (assoc-ref %build-inputs "java-picard")
12804 "/share/java/"))
12805 #:modules ((ice-9 match)
12806 (srfi srfi-1)
12807 (guix build utils)
12808 (guix build java-utils)
12809 (guix build ant-build-system))
12810 #:phases
12811 (modify-phases %standard-phases
12812 ;; FIXME: fails with "java.io.FileNotFoundException:
12813 ;; /gnu/store/…-dropseq-tools-1.13/share/java/lib/biojava-alignment.jar"
12814 (delete 'generate-jar-indices)
12815 ;; All dependencies must be linked to "lib", because that's where
12816 ;; they will be searched for when the Class-Path property of the
12817 ;; manifest is computed.
12818 (add-after 'unpack 'record-references
12819 (lambda* (#:key inputs #:allow-other-keys)
12820 (mkdir-p "jar/lib")
12821 (let ((dirs (filter-map (match-lambda
12822 ((name . dir)
12823 (if (and (string-prefix? "java-" name)
12824 (not (string=? name "java-testng")))
12825 dir #f)))
12826 inputs)))
12827 (for-each (lambda (jar)
12828 (symlink jar (string-append "jar/lib/" (basename jar))))
12829 (append-map (lambda (dir) (find-files dir "\\.jar$"))
12830 dirs)))
12831 #t))
12832 ;; There is no installation target
12833 (replace 'install
12834 (lambda* (#:key inputs outputs #:allow-other-keys)
12835 (let* ((out (assoc-ref outputs "out"))
12836 (bin (string-append out "/bin"))
12837 (share (string-append out "/share/java/"))
12838 (lib (string-append share "/lib/"))
12839 (scripts (list "BAMTagHistogram"
12840 "BAMTagofTagCounts"
12841 "BaseDistributionAtReadPosition"
12842 "CollapseBarcodesInPlace"
12843 "CollapseTagWithContext"
12844 "ConvertToRefFlat"
12845 "CreateIntervalsFiles"
12846 "DetectBeadSynthesisErrors"
12847 "DigitalExpression"
12848 "Drop-seq_alignment.sh"
12849 "FilterBAM"
12850 "FilterBAMByTag"
12851 "GatherGeneGCLength"
12852 "GatherMolecularBarcodeDistributionByGene"
12853 "GatherReadQualityMetrics"
12854 "PolyATrimmer"
12855 "ReduceGTF"
12856 "SelectCellsByNumTranscripts"
12857 "SingleCellRnaSeqMetricsCollector"
12858 "TagBamWithReadSequenceExtended"
12859 "TagReadWithGeneExon"
12860 "TagReadWithInterval"
12861 "TrimStartingSequence"
12862 "ValidateReference")))
12863 (for-each mkdir-p (list bin share lib))
12864 (install-file "dist/dropseq.jar" share)
12865 (for-each (lambda (script)
12866 (chmod script #o555)
12867 (install-file script bin))
12868 scripts)
12869 (substitute* (map (lambda (script)
12870 (string-append bin "/" script))
12871 scripts)
12872 (("^java") (which "java"))
12873 (("jar_deploy_dir=.*")
12874 (string-append "jar_deploy_dir=" share "\n"))))
12875 #t))
12876 ;; FIXME: We do this after stripping jars because we don't want it to
12877 ;; copy all these jars and strip them. We only want to install
12878 ;; links. Arguably, this is a problem with the ant-build-system.
12879 (add-after 'strip-jar-timestamps 'install-links
12880 (lambda* (#:key outputs #:allow-other-keys)
12881 (let* ((out (assoc-ref outputs "out"))
12882 (share (string-append out "/share/java/"))
12883 (lib (string-append share "/lib/")))
12884 (for-each (lambda (jar)
12885 (symlink (readlink jar)
12886 (string-append lib (basename jar))))
12887 (find-files "jar/lib" "\\.jar$")))
12888 #t)))))
12889 (inputs
12890 `(("jdk" ,icedtea-8)
12891 ("java-picard" ,java-picard-2.10.3)
12892 ("java-log4j-1.2-api" ,java-log4j-1.2-api)
12893 ("java-commons-math3" ,java-commons-math3)
12894 ("java-commons-jexl2" ,java-commons-jexl-2)
12895 ("java-commons-collections4" ,java-commons-collections4)
12896 ("java-commons-lang2" ,java-commons-lang)
12897 ("java-commons-io" ,java-commons-io)
12898 ("java-snappy-1.0.3-rc3" ,java-snappy-1)
12899 ("java-guava" ,java-guava)
12900 ("java-la4j" ,java-la4j)
12901 ("java-biojava-core" ,java-biojava-core-4.0)
12902 ("java-biojava-alignment" ,java-biojava-alignment-4.0)
12903 ("java-jdistlib" ,java-jdistlib)
12904 ("java-simple-xml" ,java-simple-xml)
12905 ("java-snakeyaml" ,java-snakeyaml)))
12906 (native-inputs
12907 `(("unzip" ,unzip)
12908 ("java-testng" ,java-testng)))
12909 (home-page "http://mccarrolllab.com/dropseq/")
12910 (synopsis "Tools for Drop-seq analyses")
12911 (description "Drop-seq is a technology to enable biologists to
12912 analyze RNA expression genome-wide in thousands of individual cells at
12913 once. This package provides tools to perform Drop-seq analyses.")
12914 (license license:expat)))
12915
12916 (define-public pigx-rnaseq
12917 (package
12918 (name "pigx-rnaseq")
12919 (version "0.0.5")
12920 (source (origin
12921 (method url-fetch)
12922 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_rnaseq/"
12923 "releases/download/v" version
12924 "/pigx_rnaseq-" version ".tar.gz"))
12925 (sha256
12926 (base32
12927 "05gn658zpj9xki5dbs728z9zxq1mcm25hkwr5vzwqxsfi15l5f2l"))))
12928 (build-system gnu-build-system)
12929 (arguments
12930 `(#:parallel-tests? #f ; not supported
12931 #:phases
12932 (modify-phases %standard-phases
12933 ;; "test.sh" runs STAR, which requires excessive amounts of memory.
12934 (add-after 'unpack 'disable-resource-intensive-test
12935 (lambda _
12936 (substitute* "Makefile.in"
12937 (("(^ tests/test_trim_galore/test.sh).*" _ m) m)
12938 (("^ tests/test_multiqc/test.sh") "")
12939 (("^ test.sh") ""))
12940 #t)))))
12941 (inputs
12942 `(("gzip" ,gzip)
12943 ("snakemake" ,snakemake)
12944 ("fastqc" ,fastqc)
12945 ("multiqc" ,multiqc)
12946 ("star" ,star)
12947 ("trim-galore" ,trim-galore)
12948 ("htseq" ,htseq)
12949 ("samtools" ,samtools)
12950 ("bedtools" ,bedtools)
12951 ("r-minimal" ,r-minimal)
12952 ("r-rmarkdown" ,r-rmarkdown)
12953 ("r-ggplot2" ,r-ggplot2)
12954 ("r-ggrepel" ,r-ggrepel)
12955 ("r-gprofiler" ,r-gprofiler)
12956 ("r-deseq2" ,r-deseq2)
12957 ("r-dt" ,r-dt)
12958 ("r-knitr" ,r-knitr)
12959 ("r-pheatmap" ,r-pheatmap)
12960 ("r-corrplot" ,r-corrplot)
12961 ("r-reshape2" ,r-reshape2)
12962 ("r-plotly" ,r-plotly)
12963 ("r-scales" ,r-scales)
12964 ("r-summarizedexperiment" ,r-summarizedexperiment)
12965 ("r-crosstalk" ,r-crosstalk)
12966 ("r-tximport" ,r-tximport)
12967 ("r-rtracklayer" ,r-rtracklayer)
12968 ("r-rjson" ,r-rjson)
12969 ("salmon" ,salmon)
12970 ("ghc-pandoc" ,ghc-pandoc)
12971 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12972 ("python-wrapper" ,python-wrapper)
12973 ("python-pyyaml" ,python-pyyaml)))
12974 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12975 (synopsis "Analysis pipeline for RNA sequencing experiments")
12976 (description "PiGX RNAseq is an analysis pipeline for preprocessing and
12977 reporting for RNA sequencing experiments. It is easy to use and produces high
12978 quality reports. The inputs are reads files from the sequencing experiment,
12979 and a configuration file which describes the experiment. In addition to
12980 quality control of the experiment, the pipeline produces a differential
12981 expression report comparing samples in an easily configurable manner.")
12982 (license license:gpl3+)))
12983
12984 (define-public pigx-chipseq
12985 (package
12986 (name "pigx-chipseq")
12987 (version "0.0.20")
12988 (source (origin
12989 (method url-fetch)
12990 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_chipseq/"
12991 "releases/download/v" version
12992 "/pigx_chipseq-" version ".tar.gz"))
12993 (sha256
12994 (base32
12995 "19a7dclqq0b4kqg3phiz4d4arlwfp34nm3z0rf1gkqdpsy7gghp3"))))
12996 (build-system gnu-build-system)
12997 ;; parts of the tests rely on access to the network
12998 (arguments '(#:tests? #f))
12999 (inputs
13000 `(("grep" ,grep)
13001 ("coreutils" ,coreutils)
13002 ("r-minimal" ,r-minimal)
13003 ("r-argparser" ,r-argparser)
13004 ("r-biocparallel" ,r-biocparallel)
13005 ("r-biostrings" ,r-biostrings)
13006 ("r-chipseq" ,r-chipseq)
13007 ("r-data-table" ,r-data-table)
13008 ("r-dplyr" ,r-dplyr)
13009 ("r-genomation" ,r-genomation)
13010 ("r-genomicalignments" ,r-genomicalignments)
13011 ("r-genomicranges" ,r-genomicranges)
13012 ("r-rsamtools" ,r-rsamtools)
13013 ("r-rtracklayer" ,r-rtracklayer)
13014 ("r-s4vectors" ,r-s4vectors)
13015 ("r-stringr" ,r-stringr)
13016 ("r-tibble" ,r-tibble)
13017 ("r-tidyr" ,r-tidyr)
13018 ("r-jsonlite" ,r-jsonlite)
13019 ("r-heatmaply" ,r-heatmaply)
13020 ("r-htmlwidgets" ,r-htmlwidgets)
13021 ("r-ggplot2" ,r-ggplot2)
13022 ("r-plotly" ,r-plotly)
13023 ("r-rmarkdown" ,r-rmarkdown)
13024 ("python-wrapper" ,python-wrapper)
13025 ("python-pyyaml" ,python-pyyaml)
13026 ("python-magic" ,python-magic)
13027 ("python-xlrd" ,python-xlrd)
13028 ("trim-galore" ,trim-galore)
13029 ("macs" ,macs)
13030 ("multiqc" ,multiqc)
13031 ("perl" ,perl)
13032 ("ghc-pandoc" ,ghc-pandoc)
13033 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
13034 ("fastqc" ,fastqc)
13035 ("bowtie" ,bowtie)
13036 ("idr" ,idr)
13037 ("snakemake" ,snakemake)
13038 ("samtools" ,samtools)
13039 ("bedtools" ,bedtools)
13040 ("kentutils" ,kentutils)))
13041 (native-inputs
13042 `(("python-pytest" ,python-pytest)))
13043 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
13044 (synopsis "Analysis pipeline for ChIP sequencing experiments")
13045 (description "PiGX ChIPseq is an analysis pipeline for preprocessing, peak
13046 calling and reporting for ChIP sequencing experiments. It is easy to use and
13047 produces high quality reports. The inputs are reads files from the sequencing
13048 experiment, and a configuration file which describes the experiment. In
13049 addition to quality control of the experiment, the pipeline enables to set up
13050 multiple peak calling analysis and allows the generation of a UCSC track hub
13051 in an easily configurable manner.")
13052 (license license:gpl3+)))
13053
13054 (define-public pigx-bsseq
13055 (package
13056 (name "pigx-bsseq")
13057 (version "0.0.10")
13058 (source (origin
13059 (method url-fetch)
13060 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_bsseq/"
13061 "releases/download/v" version
13062 "/pigx_bsseq-" version ".tar.gz"))
13063 (sha256
13064 (base32
13065 "0l97wvkq4diq8lcarraj33bby1zzf0w804jwi8mlc5qddp8idwhy"))))
13066 (build-system gnu-build-system)
13067 (arguments
13068 `(#:phases
13069 (modify-phases %standard-phases
13070 (add-before 'check 'set-timezone
13071 ;; The readr package is picky about timezones.
13072 (lambda* (#:key inputs #:allow-other-keys)
13073 (setenv "TZ" "UTC+1")
13074 (setenv "TZDIR"
13075 (string-append (assoc-ref inputs "tzdata")
13076 "/share/zoneinfo"))
13077 #t)))))
13078 (native-inputs
13079 `(("tzdata" ,tzdata)))
13080 (inputs
13081 `(("coreutils" ,coreutils)
13082 ("sed" ,sed)
13083 ("grep" ,grep)
13084 ("r-minimal" ,r-minimal)
13085 ("r-annotationhub" ,r-annotationhub)
13086 ("r-dt" ,r-dt)
13087 ("r-genomation" ,r-genomation)
13088 ("r-methylkit" ,r-methylkit)
13089 ("r-rtracklayer" ,r-rtracklayer)
13090 ("r-rmarkdown" ,r-rmarkdown)
13091 ("r-bookdown" ,r-bookdown)
13092 ("r-ggplot2" ,r-ggplot2)
13093 ("r-ggbio" ,r-ggbio)
13094 ("ghc-pandoc" ,ghc-pandoc)
13095 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
13096 ("python-wrapper" ,python-wrapper)
13097 ("python-pyyaml" ,python-pyyaml)
13098 ("snakemake" ,snakemake)
13099 ("bismark" ,bismark)
13100 ("fastqc" ,fastqc)
13101 ("bowtie" ,bowtie)
13102 ("trim-galore" ,trim-galore)
13103 ("cutadapt" ,cutadapt)
13104 ("samtools" ,samtools)))
13105 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
13106 (synopsis "Bisulfite sequencing pipeline from fastq to methylation reports")
13107 (description "PiGx BSseq is a data processing pipeline for raw fastq read
13108 data of bisulfite experiments; it produces reports on aggregate methylation
13109 and coverage and can be used to produce information on differential
13110 methylation and segmentation.")
13111 (license license:gpl3+)))
13112
13113 (define-public pigx-scrnaseq
13114 (package
13115 (name "pigx-scrnaseq")
13116 (version "0.0.7")
13117 (source (origin
13118 (method url-fetch)
13119 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_scrnaseq/"
13120 "releases/download/v" version
13121 "/pigx_scrnaseq-" version ".tar.gz"))
13122 (sha256
13123 (base32
13124 "131zarirv16w8653m0d66jgjnwqfsxqc0hix0rypssz4d83bl51j"))))
13125 (build-system gnu-build-system)
13126 (arguments
13127 `(#:configure-flags
13128 (list (string-append "PICARDJAR=" (assoc-ref %build-inputs "java-picard")
13129 "/share/java/picard.jar")
13130 (string-append "DROPSEQJAR=" (assoc-ref %build-inputs "dropseq-tools")
13131 "/share/java/dropseq.jar"))))
13132 (inputs
13133 `(("coreutils" ,coreutils)
13134 ("perl" ,perl)
13135 ("dropseq-tools" ,dropseq-tools)
13136 ("fastqc" ,fastqc)
13137 ("java-picard" ,java-picard-2.10.3) ; same as for dropseq
13138 ("java" ,icedtea-8)
13139 ("python-wrapper" ,python-wrapper)
13140 ("python-pyyaml" ,python-pyyaml)
13141 ("python-pandas" ,python-pandas)
13142 ("python-magic" ,python-magic)
13143 ("python-numpy" ,python-numpy)
13144 ("python-loompy" ,python-loompy)
13145 ("ghc-pandoc" ,ghc-pandoc)
13146 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
13147 ("samtools" ,samtools)
13148 ("snakemake" ,snakemake)
13149 ("star" ,star)
13150 ("r-minimal" ,r-minimal)
13151 ("r-argparser" ,r-argparser)
13152 ("r-cowplot" ,r-cowplot)
13153 ("r-data-table" ,r-data-table)
13154 ("r-delayedarray" ,r-delayedarray)
13155 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
13156 ("r-dplyr" ,r-dplyr)
13157 ("r-dropbead" ,r-dropbead)
13158 ("r-dt" ,r-dt)
13159 ("r-genomicalignments" ,r-genomicalignments)
13160 ("r-genomicfiles" ,r-genomicfiles)
13161 ("r-genomicranges" ,r-genomicranges)
13162 ("r-ggplot2" ,r-ggplot2)
13163 ("r-hdf5array" ,r-hdf5array)
13164 ("r-pheatmap" ,r-pheatmap)
13165 ("r-rmarkdown" ,r-rmarkdown)
13166 ("r-rsamtools" ,r-rsamtools)
13167 ("r-rtracklayer" ,r-rtracklayer)
13168 ("r-rtsne" ,r-rtsne)
13169 ("r-scater" ,r-scater)
13170 ("r-scran" ,r-scran)
13171 ("r-singlecellexperiment" ,r-singlecellexperiment)
13172 ("r-stringr" ,r-stringr)
13173 ("r-yaml" ,r-yaml)))
13174 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
13175 (synopsis "Analysis pipeline for single-cell RNA sequencing experiments")
13176 (description "PiGX scRNAseq is an analysis pipeline for preprocessing and
13177 quality control for single cell RNA sequencing experiments. The inputs are
13178 read files from the sequencing experiment, and a configuration file which
13179 describes the experiment. It produces processed files for downstream analysis
13180 and interactive quality reports. The pipeline is designed to work with UMI
13181 based methods.")
13182 (license license:gpl3+)))
13183
13184 (define-public pigx
13185 (package
13186 (name "pigx")
13187 (version "0.0.3")
13188 (source (origin
13189 (method url-fetch)
13190 (uri (string-append "https://github.com/BIMSBbioinfo/pigx/"
13191 "releases/download/v" version
13192 "/pigx-" version ".tar.gz"))
13193 (sha256
13194 (base32
13195 "1i5njdy1clj5ncw45d16p7mwmqvb1ilikl9n797pxklc3f4s7mq7"))))
13196 (build-system gnu-build-system)
13197 (inputs
13198 `(("python" ,python)
13199 ("pigx-bsseq" ,pigx-bsseq)
13200 ("pigx-chipseq" ,pigx-chipseq)
13201 ("pigx-rnaseq" ,pigx-rnaseq)
13202 ("pigx-scrnaseq" ,pigx-scrnaseq)))
13203 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
13204 (synopsis "Analysis pipelines for genomics")
13205 (description "PiGx is a collection of genomics pipelines. It includes the
13206 following pipelines:
13207
13208 @itemize
13209 @item PiGx BSseq for raw fastq read data of bisulfite experiments
13210 @item PiGx RNAseq for RNAseq samples
13211 @item PiGx scRNAseq for single cell dropseq analysis
13212 @item PiGx ChIPseq for reads from ChIPseq experiments
13213 @end itemize
13214
13215 All pipelines are easily configured with a simple sample sheet and a
13216 descriptive settings file. The result is a set of comprehensive, interactive
13217 HTML reports with interesting findings about your samples.")
13218 (license license:gpl3+)))
13219
13220 (define-public mantis
13221 (let ((commit "4ffd171632c2cb0056a86d709dfd2bf21bc69b84")
13222 (revision "1"))
13223 (package
13224 (name "mantis")
13225 (version (git-version "0" revision commit))
13226 (source (origin
13227 (method git-fetch)
13228 (uri (git-reference
13229 (url "https://github.com/splatlab/mantis.git")
13230 (commit commit)))
13231 (file-name (git-file-name name version))
13232 (sha256
13233 (base32
13234 "0iqbr0dhmlc8mzpirmm2s4pkzkwdgrcx50yx6cv3wlr2qi064p55"))))
13235 (build-system cmake-build-system)
13236 (arguments '(#:tests? #f)) ; there are none
13237 (inputs
13238 `(("sdsl-lite" ,sdsl-lite)
13239 ("openssl" ,openssl)
13240 ("zlib" ,zlib)))
13241 (home-page "https://github.com/splatlab/mantis")
13242 (synopsis "Large-scale sequence-search index data structure")
13243 (description "Mantis is a space-efficient data structure that can be
13244 used to index thousands of raw-read genomics experiments and facilitate
13245 large-scale sequence searches on those experiments. Mantis uses counting
13246 quotient filters instead of Bloom filters, enabling rapid index builds and
13247 queries, small indexes, and exact results, i.e., no false positives or
13248 negatives. Furthermore, Mantis is also a colored de Bruijn graph
13249 representation, so it supports fast graph traversal and other topological
13250 analyses in addition to large-scale sequence-level searches.")
13251 ;; uses __uint128_t and inline assembly
13252 (supported-systems '("x86_64-linux"))
13253 (license license:bsd-3))))
13254
13255 (define-public r-diversitree
13256 (package
13257 (name "r-diversitree")
13258 (version "0.9-10")
13259 (source
13260 (origin
13261 (method url-fetch)
13262 (uri (cran-uri "diversitree" version))
13263 (sha256
13264 (base32
13265 "0gh4rcrp0an3jh8915i1fsxlgyfk7njywgbd5ln5r2jhr085kpz7"))))
13266 (build-system r-build-system)
13267 (native-inputs
13268 `(("gfortran" ,gfortran)))
13269 (inputs `(("fftw" ,fftw) ("gsl" ,gsl)))
13270 (propagated-inputs
13271 `(("r-ape" ,r-ape)
13272 ("r-desolve" ,r-desolve)
13273 ("r-rcpp" ,r-rcpp)
13274 ("r-suplex" ,r-subplex)))
13275 (home-page "https://www.zoology.ubc.ca/prog/diversitree")
13276 (synopsis "Comparative 'phylogenetic' analyses of diversification")
13277 (description "This package contains a number of comparative \"phylogenetic\"
13278 methods, mostly focusing on analysing diversification and character evolution.
13279 Contains implementations of \"BiSSE\" (Binary State Speciation and Extinction)
13280 and its unresolved tree extensions, \"MuSSE\" (Multiple State Speciation and
13281 Extinction), \"QuaSSE\", \"GeoSSE\", and \"BiSSE-ness\" Other included methods
13282 include Markov models of discrete and continuous trait evolution and constant
13283 rate speciation and extinction.")
13284 (license license:gpl2+)))
13285
13286 (define-public sjcount
13287 ;; There is no tag for version 3.2, nor is there a release archive.
13288 (let ((commit "292d3917cadb3f6834c81e509c30e61cd7ead6e5")
13289 (revision "1"))
13290 (package
13291 (name "sjcount")
13292 (version (git-version "3.2" revision commit))
13293 (source (origin
13294 (method git-fetch)
13295 (uri (git-reference
13296 (url "https://github.com/pervouchine/sjcount-full.git")
13297 (commit commit)))
13298 (file-name (string-append name "-" version "-checkout"))
13299 (sha256
13300 (base32
13301 "0gdgj35j249f04rqgq8ymcc1xg1vi9kzbajnjqpaq2wpbh8bl234"))))
13302 (build-system gnu-build-system)
13303 (arguments
13304 `(#:tests? #f ; requires a 1.4G test file
13305 #:make-flags
13306 (list (string-append "SAMTOOLS_DIR="
13307 (assoc-ref %build-inputs "samtools")
13308 "/lib/"))
13309 #:phases
13310 (modify-phases %standard-phases
13311 (replace 'configure
13312 (lambda* (#:key inputs #:allow-other-keys)
13313 (substitute* "makefile"
13314 (("-I \\$\\{SAMTOOLS_DIR\\}")
13315 (string-append "-I" (assoc-ref inputs "samtools")
13316 "/include/samtools"))
13317 (("-lz ") "-lz -lpthread "))
13318 #t))
13319 (replace 'install
13320 (lambda* (#:key outputs #:allow-other-keys)
13321 (for-each (lambda (tool)
13322 (install-file tool
13323 (string-append (assoc-ref outputs "out")
13324 "/bin")))
13325 '("j_count" "b_count" "sjcount"))
13326 #t)))))
13327 (inputs
13328 `(("samtools" ,samtools-0.1)
13329 ("zlib" ,zlib)))
13330 (home-page "https://github.com/pervouchine/sjcount-full/")
13331 (synopsis "Annotation-agnostic splice junction counting pipeline")
13332 (description "Sjcount is a utility for fast quantification of splice
13333 junctions in RNA-seq data. It is annotation-agnostic and offset-aware. This
13334 version does count multisplits.")
13335 (license license:gpl3+))))
13336
13337 (define-public minimap2
13338 (package
13339 (name "minimap2")
13340 (version "2.10")
13341 (source
13342 (origin
13343 (method url-fetch)
13344 (uri (string-append "https://github.com/lh3/minimap2/"
13345 "releases/download/v" version "/"
13346 "minimap2-" version ".tar.bz2"))
13347 (sha256
13348 (base32
13349 "080w9066irkbhbyr4nmf19pzkdd2s4v31hpzlajgq2y0drr6zcsj"))))
13350 (build-system gnu-build-system)
13351 (arguments
13352 `(#:tests? #f ; there are none
13353 #:make-flags
13354 (list "CC=gcc"
13355 (let ((system ,(or (%current-target-system)
13356 (%current-system))))
13357 (cond
13358 ((string-prefix? "x86_64" system)
13359 "all")
13360 ((or (string-prefix? "armhf" system)
13361 (string-prefix? "aarch64" system))
13362 "arm_neon=1")
13363 (_ "sse2only=1"))))
13364 #:phases
13365 (modify-phases %standard-phases
13366 (delete 'configure)
13367 (replace 'install
13368 (lambda* (#:key outputs #:allow-other-keys)
13369 (let* ((out (assoc-ref outputs "out"))
13370 (bin (string-append out "/bin"))
13371 (man (string-append out "/share/man/man1")))
13372 (install-file "minimap2" bin)
13373 (mkdir-p man)
13374 (install-file "minimap2.1" man))
13375 #t)))))
13376 (inputs
13377 `(("zlib" ,zlib)))
13378 (home-page "https://lh3.github.io/minimap2/")
13379 (synopsis "Pairwise aligner for genomic and spliced nucleotide sequences")
13380 (description "Minimap2 is a versatile sequence alignment program that
13381 aligns DNA or mRNA sequences against a large reference database. Typical use
13382 cases include:
13383
13384 @enumerate
13385 @item mapping PacBio or Oxford Nanopore genomic reads to the human genome;
13386 @item finding overlaps between long reads with error rate up to ~15%;
13387 @item splice-aware alignment of PacBio Iso-Seq or Nanopore cDNA or Direct RNA
13388 reads against a reference genome;
13389 @item aligning Illumina single- or paired-end reads;
13390 @item assembly-to-assembly alignment;
13391 @item full-genome alignment between two closely related species with
13392 divergence below ~15%.
13393 @end enumerate\n")
13394 (license license:expat)))
13395
13396 (define-public r-circus
13397 (package
13398 (name "r-circus")
13399 (version "0.1.5")
13400 (source
13401 (origin
13402 (method git-fetch)
13403 (uri (git-reference
13404 (url "https://github.com/BIMSBbioinfo/ciRcus.git")
13405 (commit (string-append "v" version))))
13406 (file-name (git-file-name name version))
13407 (sha256
13408 (base32
13409 "0jhjn3ilb057hbf6yzrihj13ifxxs32y7nkby8l3lkm28dg4p97h"))))
13410 (build-system r-build-system)
13411 (propagated-inputs
13412 `(("r-annotationdbi" ,r-annotationdbi)
13413 ("r-annotationhub" ,r-annotationhub)
13414 ("r-biomart" ,r-biomart)
13415 ("r-data-table" ,r-data-table)
13416 ("r-dbi" ,r-dbi)
13417 ("r-genomicfeatures" ,r-genomicfeatures)
13418 ("r-genomicranges" ,r-genomicranges)
13419 ("r-ggplot2" ,r-ggplot2)
13420 ("r-hash" ,r-hash)
13421 ("r-iranges" ,r-iranges)
13422 ("r-rcolorbrewer" ,r-rcolorbrewer)
13423 ("r-rmysql" ,r-rmysql)
13424 ("r-s4vectors" ,r-s4vectors)
13425 ("r-stringr" ,r-stringr)
13426 ("r-summarizedexperiment" ,r-summarizedexperiment)))
13427 (native-inputs
13428 `(("r-knitr" ,r-knitr)))
13429 (home-page "https://github.com/BIMSBbioinfo/ciRcus")
13430 (synopsis "Annotation, analysis and visualization of circRNA data")
13431 (description "Circus is an R package for annotation, analysis and
13432 visualization of circRNA data. Users can annotate their circRNA candidates
13433 with host genes, gene featrues they are spliced from, and discriminate between
13434 known and yet unknown splice junctions. Circular-to-linear ratios of circRNAs
13435 can be calculated, and a number of descriptive plots easily generated.")
13436 (license license:artistic2.0)))
13437
13438 (define-public r-loomr
13439 (let ((commit "df0144bd2bbceca6fadef9edc1bbc5ca672d4739")
13440 (revision "1"))
13441 (package
13442 (name "r-loomr")
13443 (version (git-version "0.2.0" revision commit))
13444 (source
13445 (origin
13446 (method git-fetch)
13447 (uri (git-reference
13448 (url "https://github.com/mojaveazure/loomR.git")
13449 (commit commit)))
13450 (file-name (git-file-name name version))
13451 (sha256
13452 (base32
13453 "1b1g4dlmfdyhn56bz1mkh9ymirri43wiz7rjhs7py3y7bdw1s3yr"))))
13454 (build-system r-build-system)
13455 (propagated-inputs
13456 `(("r-r6" ,r-r6)
13457 ("r-hdf5r" ,r-hdf5r)
13458 ("r-iterators" ,r-iterators)
13459 ("r-itertools" ,r-itertools)
13460 ("r-matrix" ,r-matrix)))
13461 (home-page "https://github.com/mojaveazure/loomR")
13462 (synopsis "R interface for loom files")
13463 (description "This package provides an R interface to access, create,
13464 and modify loom files. loomR aims to be completely compatible with loompy.")
13465 (license license:gpl3))))
13466
13467 (define-public gffread
13468 ;; We cannot use the tagged release because it is not in sync with gclib.
13469 ;; See https://github.com/gpertea/gffread/issues/26
13470 (let ((commit "ba7535fcb3cea55a6e5a491d916e93b454e87fd0")
13471 (revision "1"))
13472 (package
13473 (name "gffread")
13474 (version (git-version "0.9.12" revision commit))
13475 (source
13476 (origin
13477 (method git-fetch)
13478 (uri (git-reference
13479 (url "https://github.com/gpertea/gffread.git")
13480 (commit commit)))
13481 (file-name (git-file-name name version))
13482 (sha256
13483 (base32
13484 "1dl2nbcg96lxpd0drg48ssa8343nf7pw9s9mkrc4mjjmfwsin3ki"))))
13485 (build-system gnu-build-system)
13486 (arguments
13487 `(#:tests? #f ; no check target
13488 #:make-flags
13489 (list "GCLDIR=gclib")
13490 #:phases
13491 (modify-phases %standard-phases
13492 (delete 'configure)
13493 (add-after 'unpack 'copy-gclib-source
13494 (lambda* (#:key inputs #:allow-other-keys)
13495 (mkdir-p "gclib")
13496 (copy-recursively (assoc-ref inputs "gclib-source") "gclib")
13497 #t))
13498 ;; There is no install target
13499 (replace 'install
13500 (lambda* (#:key outputs #:allow-other-keys)
13501 (let* ((out (assoc-ref outputs "out"))
13502 (bin (string-append out "/bin")))
13503 (install-file "gffread" bin))
13504 #t)))))
13505 (native-inputs
13506 `(("gclib-source"
13507 ,(let ((version "0.10.3")
13508 (commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
13509 (revision "1"))
13510 (origin
13511 (method git-fetch)
13512 (uri (git-reference
13513 (url "https://github.com/gpertea/gclib.git")
13514 (commit commit)))
13515 (file-name (git-file-name "gclib" version))
13516 (sha256
13517 (base32
13518 "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
13519 (home-page "https://github.com/gpertea/gffread/")
13520 (synopsis "Parse and convert GFF/GTF files")
13521 (description
13522 "This package provides a GFF/GTF file parsing utility providing format
13523 conversions, region filtering, FASTA sequence extraction and more.")
13524 ;; gffread is under Expat, but gclib is under Artistic 2.0
13525 (license (list license:expat
13526 license:artistic2.0)))))
13527
13528 (define-public find-circ
13529 ;; The last release was in 2015. The license was clarified in 2017, so we
13530 ;; take the latest commit.
13531 (let ((commit "8655dca54970fcf7e92e22fbf57e1188724dda7d")
13532 (revision "1"))
13533 (package
13534 (name "find-circ")
13535 (version (git-version "1.2" revision commit))
13536 (source
13537 (origin
13538 (method git-fetch)
13539 (uri (git-reference
13540 (url "https://github.com/marvin-jens/find_circ.git")
13541 (commit commit)))
13542 (file-name (git-file-name name version))
13543 (sha256
13544 (base32
13545 "0p77pbqbclqr4srms34y1b9b4njybfpjiknc11ki84f3p8skb3cg"))))
13546 (build-system gnu-build-system)
13547 (arguments
13548 `(#:tests? #f ; there are none
13549 #:phases
13550 ;; There is no actual build system.
13551 (modify-phases %standard-phases
13552 (delete 'configure)
13553 (delete 'build)
13554 (replace 'install
13555 (lambda* (#:key outputs #:allow-other-keys)
13556 (let* ((out (assoc-ref outputs "out"))
13557 (bin (string-append out "/bin"))
13558 (path (getenv "PYTHONPATH")))
13559 (for-each (lambda (script)
13560 (install-file script bin)
13561 (wrap-program (string-append bin "/" script)
13562 `("PYTHONPATH" ":" prefix (,path))))
13563 '("cmp_bed.py"
13564 "find_circ.py"
13565 "maxlength.py"
13566 "merge_bed.py"
13567 "unmapped2anchors.py")))
13568 #t)))))
13569 (inputs
13570 `(("python2" ,python-2)
13571 ("python2-pysam" ,python2-pysam)
13572 ("python2-numpy" ,python2-numpy)))
13573 (home-page "https://github.com/marvin-jens/find_circ")
13574 (synopsis "circRNA detection from RNA-seq reads")
13575 (description "This package provides tools to detect head-to-tail
13576 spliced (back-spliced) sequencing reads, indicative of circular RNA (circRNA)
13577 in RNA-seq data.")
13578 (license license:gpl3))))
13579
13580 (define-public python-scanpy
13581 (package
13582 (name "python-scanpy")
13583 (version "1.2.2")
13584 (source
13585 (origin
13586 (method url-fetch)
13587 (uri (pypi-uri "scanpy" version))
13588 (sha256
13589 (base32
13590 "1ak7bxms5a0yvf65prppq2g38clkv7c7jnjbnfpkh3xxv7q512jz"))))
13591 (build-system python-build-system)
13592 (propagated-inputs
13593 `(("python-anndata" ,python-anndata)
13594 ("python-igraph" ,python-igraph)
13595 ("python-numba" ,python-numba)
13596 ("python-joblib" ,python-joblib)
13597 ("python-natsort" ,python-natsort)
13598 ("python-networkx" ,python-networkx)
13599 ("python-statsmodels" ,python-statsmodels)
13600 ("python-scikit-learn" ,python-scikit-learn)
13601 ("python-matplotlib" ,python-matplotlib)
13602 ("python-pandas" ,python-pandas)
13603 ("python-scipy" ,python-scipy)
13604 ("python-seaborn" ,python-seaborn)
13605 ("python-h5py" ,python-h5py)
13606 ("python-tables" ,python-tables)))
13607 (home-page "http://github.com/theislab/scanpy")
13608 (synopsis "Single-Cell Analysis in Python.")
13609 (description "Scanpy is a scalable toolkit for analyzing single-cell gene
13610 expression data. It includes preprocessing, visualization, clustering,
13611 pseudotime and trajectory inference and differential expression testing. The
13612 Python-based implementation efficiently deals with datasets of more than one
13613 million cells.")
13614 (license license:bsd-3)))
13615
13616 (define-public gffcompare
13617 (let ((commit "be56ef4349ea3966c12c6397f85e49e047361c41")
13618 (revision "1"))
13619 (package
13620 (name "gffcompare")
13621 (version (git-version "0.10.15" revision commit))
13622 (source
13623 (origin
13624 (method git-fetch)
13625 (uri (git-reference
13626 (url "https://github.com/gpertea/gffcompare/")
13627 (commit commit)))
13628 (file-name (git-file-name name version))
13629 (sha256
13630 (base32 "0cp5qpxdhw4mxpya5dld8wi3jk00zyklm6rcri426wydinrnfmkg"))))
13631 (build-system gnu-build-system)
13632 (arguments
13633 `(#:tests? #f ; no check target
13634 #:phases
13635 (modify-phases %standard-phases
13636 (delete 'configure)
13637 (add-before 'build 'copy-gclib-source
13638 (lambda* (#:key inputs #:allow-other-keys)
13639 (mkdir "../gclib")
13640 (copy-recursively
13641 (assoc-ref inputs "gclib-source") "../gclib")
13642 #t))
13643 (replace 'install
13644 (lambda* (#:key outputs #:allow-other-keys)
13645 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
13646 (install-file "gffcompare" bin)
13647 #t))))))
13648 (native-inputs
13649 `(("gclib-source" ; see 'README.md' of gffcompare
13650 ,(let ((commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
13651 (revision "1")
13652 (name "gclib")
13653 (version (git-version "0.10.3" revision commit)))
13654 (origin
13655 (method git-fetch)
13656 (uri (git-reference
13657 (url "https://github.com/gpertea/gclib/")
13658 (commit commit)))
13659 (file-name (git-file-name name version))
13660 (sha256
13661 (base32 "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
13662 (home-page "https://github.com/gpertea/gffcompare/")
13663 (synopsis "Tool for comparing or classifing transcripts of RNA-Seq")
13664 (description
13665 "@code{gffcompare} is a tool that can:
13666 @enumerate
13667 @item compare and evaluate the accuracy of RNA-Seq transcript assemblers
13668 (Cufflinks, Stringtie);
13669 @item collapse (merge) duplicate transcripts from multiple GTF/GFF3 files (e.g.
13670 resulted from assembly of different samples);
13671 @item classify transcripts from one or multiple GTF/GFF3 files as they relate to
13672 reference transcripts provided in a annotation file (also in GTF/GFF3 format).
13673 @end enumerate")
13674 (license
13675 (list
13676 license:expat ;license for gffcompare
13677 license:artistic2.0))))) ;license for gclib
13678
13679 (define-public python-intervaltree
13680 (package
13681 (name "python-intervaltree")
13682 (version "2.1.0")
13683 (source
13684 (origin
13685 (method url-fetch)
13686 (uri (pypi-uri "intervaltree" version))
13687 (sha256
13688 (base32
13689 "02w191m9zxkcjqr1kv2slxvhymwhj3jnsyy3a28b837pi15q19dc"))))
13690 (build-system python-build-system)
13691 ;; FIXME: error when collecting tests
13692 (arguments '(#:tests? #f))
13693 (propagated-inputs
13694 `(("python-sortedcontainers" ,python-sortedcontainers)))
13695 (native-inputs
13696 `(("python-pytest" ,python-pytest)))
13697 (home-page "https://github.com/chaimleib/intervaltree")
13698 (synopsis "Editable interval tree data structure")
13699 (description
13700 "This package provides a mutable, self-balancing interval tree
13701 implementation for Python. Queries may be by point, by range overlap, or by
13702 range envelopment. This library was designed to allow tagging text and time
13703 intervals, where the intervals include the lower bound but not the upper
13704 bound.")
13705 (license license:asl2.0)))
13706
13707 (define-public python-pypairix
13708 (package
13709 (name "python-pypairix")
13710 (version "0.3.6")
13711 (source
13712 (origin
13713 (method url-fetch)
13714 (uri (pypi-uri "pypairix" version))
13715 (sha256
13716 (base32
13717 "0zs92b74s5v4xy2h16s15f3z6l4nnbw8x8zyif7xx5xpafjn0xss"))))
13718 (build-system python-build-system)
13719 ;; FIXME: the tests fail because test.support cannot be loaded:
13720 ;; ImportError: cannot import name 'support'
13721 (arguments '(#:tests? #f))
13722 (inputs
13723 `(("zlib" ,zlib)))
13724 (home-page "https://github.com/4dn-dcic/pairix")
13725 (synopsis "Support for querying pairix-indexed bgzipped text files")
13726 (description
13727 "Pypairix is a Python module for fast querying on a pairix-indexed
13728 bgzipped text file that contains a pair of genomic coordinates per line.")
13729 (license license:expat)))
13730
13731 (define-public python-pyfaidx
13732 (package
13733 (name "python-pyfaidx")
13734 (version "0.5.4.2")
13735 (source
13736 (origin
13737 (method url-fetch)
13738 (uri (pypi-uri "pyfaidx" version))
13739 (sha256
13740 (base32
13741 "0y5zyjksj1rdglj601xd2bbni5abhdh622y3ck76chyzxz9z4rx8"))))
13742 (build-system python-build-system)
13743 (propagated-inputs
13744 `(("python-setuptools" ,python-setuptools)
13745 ("python-six" ,python-six)))
13746 (home-page "http://mattshirley.com")
13747 (synopsis "Random access to fasta subsequences")
13748 (description
13749 "This package provides procedures for efficient pythonic random access to
13750 fasta subsequences.")
13751 (license license:bsd-3)))
13752
13753 (define-public python-cooler
13754 (package
13755 (name "python-cooler")
13756 (version "0.7.11")
13757 (source
13758 (origin
13759 (method url-fetch)
13760 (uri (pypi-uri "cooler" version))
13761 (sha256
13762 (base32
13763 "08k5nxnxa6qsbk15z5z0q01n28042k87wi4905hh95rzqib15mhx"))))
13764 (build-system python-build-system)
13765 (propagated-inputs
13766 `(("python-biopython" ,python-biopython)
13767 ("python-click" ,python-click)
13768 ("python-cytoolz" ,python-cytoolz)
13769 ("python-dask" ,python-dask)
13770 ("python-h5py" ,python-h5py)
13771 ("python-multiprocess" ,python-multiprocess)
13772 ("python-pandas" ,python-pandas)
13773 ("python-pyfaidx" ,python-pyfaidx)
13774 ("python-pypairix" ,python-pypairix)
13775 ("python-pysam" ,python-pysam)
13776 ("python-scipy" ,python-scipy)))
13777 (native-inputs
13778 `(("python-mock" ,python-mock)
13779 ("python-nose" ,python-nose)
13780 ("python-numpydoc" ,python-numpydoc)
13781 ("python-sphinx" ,python-sphinx)))
13782 (home-page "https://github.com/mirnylab/cooler")
13783 (synopsis "Sparse binary format for genomic interaction matrices")
13784 (description
13785 "Cooler is a support library for a sparse, compressed, binary persistent
13786 storage format, called @code{cool}, used to store genomic interaction data,
13787 such as Hi-C contact matrices.")
13788 (license license:bsd-3)))
13789
13790 (define-public python-hicexplorer
13791 (package
13792 (name "python-hicexplorer")
13793 (version "2.1.4")
13794 (source
13795 (origin
13796 ;; The latest version is not available on Pypi.
13797 (method git-fetch)
13798 (uri (git-reference
13799 (url "https://github.com/deeptools/HiCExplorer.git")
13800 (commit version)))
13801 (file-name (git-file-name name version))
13802 (sha256
13803 (base32
13804 "0q5gpbzmrkvygqgw524q36b4nrivcmyi5v194vsx0qw7b3gcmq08"))))
13805 (build-system python-build-system)
13806 (arguments
13807 `(#:phases
13808 (modify-phases %standard-phases
13809 (add-after 'unpack 'loosen-up-requirements
13810 (lambda _
13811 (substitute* "setup.py"
13812 (("==") ">="))
13813 #t)))))
13814 (propagated-inputs
13815 `(("python-biopython" ,python-biopython)
13816 ("python-configparser" ,python-configparser)
13817 ("python-cooler" ,python-cooler)
13818 ("python-future" ,python-future)
13819 ("python-intervaltree" ,python-intervaltree)
13820 ("python-jinja2" ,python-jinja2)
13821 ("python-matplotlib" ,python-matplotlib)
13822 ("python-numpy" ,python-numpy)
13823 ("python-pandas" ,python-pandas)
13824 ("python-pybigwig" ,python-pybigwig)
13825 ("python-pysam" ,python-pysam)
13826 ("python-scipy" ,python-scipy)
13827 ("python-six" ,python-six)
13828 ("python-tables" ,python-tables)
13829 ("python-unidecode" ,python-unidecode)))
13830 (home-page "http://hicexplorer.readthedocs.io")
13831 (synopsis "Process, analyze and visualize Hi-C data")
13832 (description
13833 "HiCExplorer is a powerful and easy to use set of tools to process,
13834 normalize and visualize Hi-C data. HiCExplorer facilitates the creation of
13835 contact matrices, correction of contacts, TAD detection, A/B compartments,
13836 merging, reordering or chromosomes, conversion from different formats
13837 including cooler and detection of long-range contacts. Moreover, it allows
13838 the visualization of multiple contact matrices along with other types of data
13839 like genes, compartments, ChIP-seq coverage tracks (and in general any type of
13840 genomic scores), long range contacts and the visualization of viewpoints.")
13841 (license license:gpl3)))
13842
13843 (define-public python-pygenometracks
13844 (package
13845 (name "python-pygenometracks")
13846 (version "2.0")
13847 (source
13848 (origin
13849 (method url-fetch)
13850 (uri (pypi-uri "pyGenomeTracks" version))
13851 (sha256
13852 (base32
13853 "1fws6bqsyy9kj3qiabhkqx4wd4i775gsxnhszqd3zg7w67sc1ic5"))))
13854 (build-system python-build-system)
13855 (propagated-inputs
13856 `(("python-configparser" ,python-configparser)
13857 ("python-future" ,python-future)
13858 ("python-hicexplorer" ,python-hicexplorer)
13859 ("python-intervaltree" ,python-intervaltree)
13860 ("python-matplotlib" ,python-matplotlib)
13861 ("python-numpy" ,python-numpy)
13862 ("python-pybigwig" ,python-pybigwig)))
13863 (native-inputs
13864 `(("python-pytest" ,python-pytest)))
13865 (home-page "https://pygenometracks.readthedocs.io")
13866 (synopsis "Program and library to plot beautiful genome browser tracks")
13867 (description
13868 "This package aims to produce high-quality genome browser tracks that
13869 are highly customizable. Currently, it is possible to plot: bigwig, bed (many
13870 options), bedgraph, links (represented as arcs), and Hi-C matrices.
13871 pyGenomeTracks can make plots with or without Hi-C data.")
13872 (license license:gpl3+)))
13873
13874 (define-public python-hic2cool
13875 (package
13876 (name "python-hic2cool")
13877 (version "0.4.2")
13878 (source
13879 (origin
13880 (method url-fetch)
13881 (uri (pypi-uri "hic2cool" version))
13882 (sha256
13883 (base32
13884 "0xy6mhfns2lzib1kcr6419jjp6pmh0qx8z8na55lmiwn0ds8q9cl"))))
13885 (build-system python-build-system)
13886 (arguments '(#:tests? #f)) ; no tests included
13887 (propagated-inputs
13888 `(("python-cooler" ,python-cooler)))
13889 (home-page "https://github.com/4dn-dcic/hic2cool")
13890 (synopsis "Converter for .hic and .cool files")
13891 (description
13892 "This package provides a converter between @code{.hic} files (from
13893 juicer) and single-resolution or multi-resolution @code{.cool} files (for
13894 cooler). Both @code{hic} and @code{cool} files describe Hi-C contact
13895 matrices.")
13896 (license license:expat)))
13897
13898 (define-public r-pore
13899 (package
13900 (name "r-pore")
13901 (version "0.24")
13902 (source
13903 (origin
13904 (method url-fetch)
13905 (uri
13906 (string-append "mirror://sourceforge/rpore/" version
13907 "/poRe_" version ".tar.gz"))
13908 (sha256
13909 (base32 "0pih9nljbv8g4x8rkk29i7aqq681b782r5s5ynp4nw9yzqnmmksv"))))
13910 (properties `((upstream-name . "poRe")))
13911 (build-system r-build-system)
13912 (propagated-inputs
13913 `(("r-bit64" ,r-bit64)
13914 ("r-data-table" ,r-data-table)
13915 ("r-rhdf5" ,r-rhdf5)
13916 ("r-shiny" ,r-shiny)
13917 ("r-svdialogs" ,r-svdialogs)))
13918 (home-page "https://sourceforge.net/projects/rpore/")
13919 (synopsis "Visualize Nanopore sequencing data")
13920 (description
13921 "This package provides graphical user interfaces to organize and visualize Nanopore
13922 sequencing data.")
13923 ;; This is free software but the license variant is unclear:
13924 ;; <https://github.com/mw55309/poRe_docs/issues/10>.
13925 (license license:bsd-3)))
13926
13927 (define-public r-xbioc
13928 (let ((revision "1")
13929 (commit "f798c187e376fd1ba27abd559f47bbae7e3e466b"))
13930 (package
13931 (name "r-xbioc")
13932 (version (git-version "0.1.15" revision commit))
13933 (source (origin
13934 (method git-fetch)
13935 (uri (git-reference
13936 (url "https://github.com/renozao/xbioc.git")
13937 (commit commit)))
13938 (file-name (git-file-name name version))
13939 (sha256
13940 (base32
13941 "03hffh2f6z71y6l6dqpa5cql3hdaw7zigdi8sm2dzgx379k9rgrr"))))
13942 (build-system r-build-system)
13943 (propagated-inputs
13944 `(("r-annotationdbi" ,r-annotationdbi)
13945 ("r-assertthat" ,r-assertthat)
13946 ("r-biobase" ,r-biobase)
13947 ("r-biocinstaller" ,r-biocinstaller)
13948 ("r-digest" ,r-digest)
13949 ("r-pkgmaker" ,r-pkgmaker)
13950 ("r-plyr" ,r-plyr)
13951 ("r-reshape2" ,r-reshape2)
13952 ("r-stringr" ,r-stringr)))
13953 (home-page "https://github.com/renozao/xbioc/")
13954 (synopsis "Extra base functions for Bioconductor")
13955 (description "This package provides extra utility functions to perform
13956 common tasks in the analysis of omics data, leveraging and enhancing features
13957 provided by Bioconductor packages.")
13958 (license license:gpl3+))))
13959
13960 (define-public r-cssam
13961 (let ((revision "1")
13962 (commit "9ec58c982fa551af0d80b1a266890d92954833f2"))
13963 (package
13964 (name "r-cssam")
13965 (version (git-version "1.4" revision commit))
13966 (source (origin
13967 (method git-fetch)
13968 (uri (git-reference
13969 (url "https://github.com/shenorrLab/csSAM.git")
13970 (commit commit)))
13971 (file-name (git-file-name name version))
13972 (sha256
13973 (base32
13974 "128syf9v39gk0z3ip000qpsjbg6l1siyq6c8b0hz41dzg5achyb3"))))
13975 (build-system r-build-system)
13976 (propagated-inputs
13977 `(("r-formula" ,r-formula)
13978 ("r-ggplot2" ,r-ggplot2)
13979 ("r-pkgmaker" ,r-pkgmaker)
13980 ("r-plyr" ,r-plyr)
13981 ("r-rngtools" ,r-rngtools)
13982 ("r-scales" ,r-scales)))
13983 (home-page "https://github.com/shenorrLab/csSAM/")
13984 (synopsis "Cell type-specific statistical analysis of microarray")
13985 (description "This package implements the method csSAM that computes
13986 cell-specific differential expression from measured cell proportions using
13987 SAM.")
13988 ;; Any version
13989 (license license:lgpl2.1+))))
13990
13991 (define-public r-bseqsc
13992 (let ((revision "1")
13993 (commit "fef3f3e38dcf3df37103348b5780937982b43b98"))
13994 (package
13995 (name "r-bseqsc")
13996 (version (git-version "1.0" revision commit))
13997 (source (origin
13998 (method git-fetch)
13999 (uri (git-reference
14000 (url "https://github.com/shenorrLab/bseqsc.git")
14001 (commit commit)))
14002 (file-name (git-file-name name version))
14003 (sha256
14004 (base32
14005 "1prw13wa20f7wlc3gkkls66n1kxz8d28qrb8icfqdwdnnv8w5qg8"))))
14006 (build-system r-build-system)
14007 (propagated-inputs
14008 `(("r-abind" ,r-abind)
14009 ("r-annotationdbi" ,r-annotationdbi)
14010 ("r-biobase" ,r-biobase)
14011 ("r-cssam" ,r-cssam)
14012 ("r-dplyr" ,r-dplyr)
14013 ("r-e1071" ,r-e1071)
14014 ("r-edger" ,r-edger)
14015 ("r-ggplot2" ,r-ggplot2)
14016 ("r-nmf" ,r-nmf)
14017 ("r-openxlsx" ,r-openxlsx)
14018 ("r-pkgmaker" ,r-pkgmaker)
14019 ("r-plyr" ,r-plyr)
14020 ("r-preprocesscore" ,r-preprocesscore)
14021 ("r-rngtools" ,r-rngtools)
14022 ("r-scales" ,r-scales)
14023 ("r-stringr" ,r-stringr)
14024 ("r-xbioc" ,r-xbioc)))
14025 (home-page "https://github.com/shenorrLab/bseqsc")
14026 (synopsis "Deconvolution of bulk sequencing experiments using single cell data")
14027 (description "BSeq-sc is a bioinformatics analysis pipeline that
14028 leverages single-cell sequencing data to estimate cell type proportion and
14029 cell type-specific gene expression differences from RNA-seq data from bulk
14030 tissue samples. This is a companion package to the publication \"A
14031 single-cell transcriptomic map of the human and mouse pancreas reveals inter-
14032 and intra-cell population structure.\" Baron et al. Cell Systems (2016)
14033 @url{https://www.ncbi.nlm.nih.gov/pubmed/27667365}.")
14034 (license license:gpl2+))))
14035
14036 (define-public porechop
14037 ;; The recommended way to install is to clone the git repository
14038 ;; https://github.com/rrwick/Porechop#installation
14039 (let ((commit "289d5dca4a5fc327f97b3f8cecb68ecaf1014861")
14040 (revision "1"))
14041 (package
14042 (name "porechop")
14043 (version (git-version "0.2.3" revision commit))
14044 (source
14045 (origin
14046 (method git-fetch)
14047 (uri (git-reference
14048 (url "https://github.com/rrwick/Porechop.git")
14049 (commit commit)))
14050 (file-name (git-file-name name version))
14051 (sha256
14052 (base32 "05ps43gig0d3ia9x5lj84lb00hbsl6ba9n7y7jz927npxbr2ym23"))))
14053 (build-system python-build-system)
14054 (home-page "https://github.com/rrwick/porechop")
14055 (synopsis "Finding, trimming or splitting adapters, in Oxford Nanopore reads")
14056 (description
14057 "The porechop package is a tool for finding and removing adapters from Oxford
14058 Nanopore reads. Adapters on the ends of reads are trimmed off, and when a read
14059 has an adapter in its middle, it is treated as chimeric and chopped into
14060 separate reads. Porechop performs thorough alignments to effectively find
14061 adapters, even at low sequence identity. Porechop also supports demultiplexing
14062 of Nanopore reads that were barcoded with the Native Barcoding Kit, PCR
14063 Barcoding Kit or Rapid Barcoding Kit.")
14064 (license license:gpl3+))))
14065
14066 (define-public poretools
14067 ;; The latest release was in 2016 and the latest commit is from 2017
14068 ;; the recommended way to install is to clone the git repository
14069 ;; https://poretools.readthedocs.io/en/latest/content/installation.html
14070 (let ((commit "e426b1f09e86ac259a00c261c79df91510777407")
14071 (revision "1"))
14072 (package
14073 (name "poretools")
14074 (version (git-version "0.6.0" revision commit))
14075 (source
14076 (origin
14077 (method git-fetch)
14078 (uri (git-reference
14079 (url "https://github.com/arq5x/poretools.git")
14080 (commit commit)))
14081 (file-name (git-file-name name version))
14082 (sha256
14083 (base32 "0bglj833wxpp3cq430p1d3xp085ls221js2y90w7ir2x5ay8l7am"))))
14084 (build-system python-build-system)
14085 ;; requires python >=2.7, <3.0, and the same for python dependencies
14086 (arguments `(#:python ,python-2))
14087 (inputs
14088 `(("hdf5" ,hdf5)))
14089 (propagated-inputs
14090 `(("python-dateutil" ,python2-dateutil)
14091 ("python-h5py" ,python2-h5py)
14092 ("python-matplotlib" ,python2-matplotlib)
14093 ("python-pandas" ,python2-pandas)
14094 ("python-seaborn" ,python2-seaborn)))
14095 (home-page "https://poretools.readthedocs.io")
14096 (synopsis "Toolkit for working with nanopore sequencing data")
14097 (description
14098 "The MinION from Oxford Nanopore Technologies is a nanopore sequencer.
14099 This @code{poretools} package is a flexible toolkit for exploring datasets
14100 generated by nanopore sequencing devices for the purposes of quality control and
14101 downstream analysis. Poretools operates directly on the native FAST5, a variant
14102 of the Hierarchical Data Format (HDF5) standard.")
14103 (license license:expat))))
14104
14105 (define-public r-absfiltergsea
14106 (package
14107 (name "r-absfiltergsea")
14108 (version "1.5.1")
14109 (source
14110 (origin
14111 (method url-fetch)
14112 (uri (cran-uri "AbsFilterGSEA" version))
14113 (sha256
14114 (base32 "15srxkxsvn38kd5frdrwfdf0ad8gskrd0h01wmdf9hglq8fjrp7w"))))
14115 (properties `((upstream-name . "AbsFilterGSEA")))
14116 (build-system r-build-system)
14117 (propagated-inputs
14118 `(("r-biobase" ,r-biobase)
14119 ("r-deseq" ,r-deseq)
14120 ("r-limma" ,r-limma)
14121 ("r-rcpp" ,r-rcpp)
14122 ("r-rcpparmadillo" ,r-rcpparmadillo)))
14123 (home-page "https://cran.r-project.org/web/packages/AbsFilterGSEA/")
14124 (synopsis "Improved false positive control of gene-permuting with absolute filtering")
14125 (description
14126 "This package provides a function that performs gene-permuting of a gene-set
14127 enrichment analysis (GSEA) calculation with or without the absolute filtering.
14128 Without filtering, users can perform (original) two-tailed or one-tailed
14129 absolute GSEA.")
14130 (license license:gpl2)))
14131
14132 (define-public jamm
14133 (package
14134 (name "jamm")
14135 (version "1.0.7.5")
14136 (source
14137 (origin
14138 (method git-fetch)
14139 (uri (git-reference
14140 (url "https://github.com/mahmoudibrahim/JAMM.git")
14141 (commit (string-append "JAMMv" version))))
14142 (file-name (git-file-name name version))
14143 (sha256
14144 (base32
14145 "0ls889jcma1ch9h21jjhnkadgszgqj41842hhcjh6cg88f85qf3i"))))
14146 (build-system gnu-build-system)
14147 (arguments
14148 `(#:tests? #f ; there are none
14149 #:phases
14150 (modify-phases %standard-phases
14151 (delete 'configure)
14152 (delete 'build)
14153 (replace 'install
14154 (lambda* (#:key inputs outputs #:allow-other-keys)
14155 (let* ((out (assoc-ref outputs "out"))
14156 (libexec (string-append out "/libexec/jamm"))
14157 (bin (string-append out "/bin")))
14158 (substitute* '("JAMM.sh"
14159 "SignalGenerator.sh")
14160 (("^sPath=.*")
14161 (string-append "sPath=\"" libexec "\"\n")))
14162 (for-each (lambda (file)
14163 (install-file file libexec))
14164 (list "bincalculator.r"
14165 "peakfinder.r"
14166 "peakhelper.r"
14167 "signalmaker.r"
14168 "xcorr.r"
14169 "xcorrhelper.r"
14170 ;; Perl scripts
14171 "peakfilter.pl"
14172 "readshifter.pl"))
14173
14174 (for-each
14175 (lambda (script)
14176 (chmod script #o555)
14177 (install-file script bin)
14178 (wrap-program (string-append bin "/" script)
14179 `("PATH" ":" prefix
14180 (,(string-append (assoc-ref inputs "coreutils") "/bin")
14181 ,(string-append (assoc-ref inputs "gawk") "/bin")
14182 ,(string-append (assoc-ref inputs "perl") "/bin")
14183 ,(string-append (assoc-ref inputs "r-minimal") "/bin")))
14184 `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB")))
14185 `("R_LIBS_SITE" ":" prefix (,(getenv "R_LIBS_SITE")))))
14186 (list "JAMM.sh" "SignalGenerator.sh")))
14187 #t)))))
14188 (inputs
14189 `(("bash" ,bash)
14190 ("coreutils" ,coreutils)
14191 ("gawk" ,gawk)
14192 ("perl" ,perl)
14193 ("r-minimal" ,r-minimal)
14194 ;;("r-parallel" ,r-parallel)
14195 ("r-signal" ,r-signal)
14196 ("r-mclust" ,r-mclust)))
14197 (home-page "https://github.com/mahmoudibrahim/JAMM")
14198 (synopsis "Peak finder for NGS datasets")
14199 (description
14200 "JAMM is a peak finder for next generation sequencing datasets (ChIP-Seq,
14201 ATAC-Seq, DNase-Seq, etc.) that can integrate replicates and assign peak
14202 boundaries accurately. JAMM is applicable to both broad and narrow
14203 datasets.")
14204 (license license:gpl3+)))
14205
14206 (define-public ngless
14207 (package
14208 (name "ngless")
14209 (version "0.9.1")
14210 (source
14211 (origin
14212 (method git-fetch)
14213 (uri (git-reference
14214 (url "https://gitlab.com/ngless/ngless.git")
14215 (commit (string-append "v" version))))
14216 (file-name (git-file-name name version))
14217 (sha256
14218 (base32
14219 "0mc2gi7h4lx74zylvyp76mvc0w6706j858ii9vlgzqsw6acpr117"))))
14220 (build-system haskell-build-system)
14221 (arguments
14222 `(#:haddock? #f ; The haddock phase fails with: NGLess/CmdArgs.hs:20:1:
14223 ; error: parse error on input import
14224 ; import Options.Applicative
14225 #:phases
14226 (modify-phases %standard-phases
14227 (add-after 'unpack 'create-cabal-file
14228 (lambda _ (invoke "hpack") #t))
14229 ;; These tools are expected to be installed alongside ngless.
14230 (add-after 'install 'link-tools
14231 (lambda* (#:key inputs outputs #:allow-other-keys)
14232 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
14233 (symlink (string-append (assoc-ref inputs "prodigal")
14234 "/bin/prodigal")
14235 (string-append bin "ngless-" ,version "-prodigal"))
14236 (symlink (string-append (assoc-ref inputs "minimap2")
14237 "/bin/minimap2")
14238 (string-append bin "ngless-" ,version "-minimap2"))
14239 (symlink (string-append (assoc-ref inputs "samtools")
14240 "/bin/samtools")
14241 (string-append bin "ngless-" ,version "-samtools"))
14242 (symlink (string-append (assoc-ref inputs "bwa")
14243 "/bin/bwa")
14244 (string-append bin "ngless-" ,version "-bwa"))
14245 #t))))))
14246 (inputs
14247 `(("prodigal" ,prodigal)
14248 ("bwa" ,bwa)
14249 ("samtools" ,samtools)
14250 ("minimap2" ,minimap2)
14251 ("ghc-aeson" ,ghc-aeson)
14252 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
14253 ("ghc-async" ,ghc-async)
14254 ("ghc-atomic-write" ,ghc-atomic-write)
14255 ("ghc-bytestring-lexing" ,ghc-bytestring-lexing)
14256 ("ghc-chart" ,ghc-chart)
14257 ("ghc-chart-cairo" ,ghc-chart-cairo)
14258 ("ghc-conduit" ,ghc-conduit)
14259 ("ghc-conduit-algorithms" ,ghc-conduit-algorithms)
14260 ("ghc-conduit-combinators" ,ghc-conduit-combinators)
14261 ("ghc-conduit-extra" ,ghc-conduit-extra)
14262 ("ghc-configurator" ,ghc-configurator)
14263 ("ghc-convertible" ,ghc-convertible)
14264 ("ghc-data-default" ,ghc-data-default)
14265 ("ghc-double-conversion" ,ghc-double-conversion)
14266 ("ghc-edit-distance" ,ghc-edit-distance)
14267 ("ghc-either" ,ghc-either)
14268 ("ghc-errors" ,ghc-errors)
14269 ("ghc-extra" ,ghc-extra)
14270 ("ghc-filemanip" ,ghc-filemanip)
14271 ("ghc-file-embed" ,ghc-file-embed)
14272 ("ghc-gitrev" ,ghc-gitrev)
14273 ("ghc-hashtables" ,ghc-hashtables)
14274 ("ghc-http-conduit" ,ghc-http-conduit)
14275 ("ghc-inline-c" ,ghc-inline-c)
14276 ("ghc-inline-c-cpp" ,ghc-inline-c-cpp)
14277 ("ghc-intervalmap" ,ghc-intervalmap)
14278 ("ghc-missingh" ,ghc-missingh)
14279 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
14280 ("ghc-parsec" ,ghc-parsec)
14281 ("ghc-regex" ,ghc-regex)
14282 ("ghc-safe" ,ghc-safe)
14283 ("ghc-safeio" ,ghc-safeio)
14284 ("ghc-strict" ,ghc-strict)
14285 ("ghc-tar" ,ghc-tar)
14286 ("ghc-text" ,ghc-text)
14287 ("ghc-unliftio" ,ghc-unliftio)
14288 ("ghc-unliftio-core" ,ghc-unliftio-core)
14289 ("ghc-vector" ,ghc-vector)
14290 ("ghc-yaml" ,ghc-yaml)
14291 ("ghc-zlib" ,ghc-zlib)))
14292 (propagated-inputs
14293 `(("r-r6" ,r-r6)
14294 ("r-hdf5r" ,r-hdf5r)
14295 ("r-iterators" ,r-iterators)
14296 ("r-itertools" ,r-itertools)
14297 ("r-matrix" ,r-matrix)))
14298 (native-inputs
14299 `(("ghc-hpack" ,ghc-hpack)
14300 ("ghc-quickcheck" ,ghc-quickcheck)
14301 ("ghc-test-framework" ,ghc-test-framework)
14302 ("ghc-test-framework-hunit",ghc-test-framework-hunit)
14303 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
14304 ("ghc-test-framework-th" ,ghc-test-framework-th)))
14305 (home-page "https://gitlab.com/ngless/ngless")
14306 (synopsis "DSL for processing next-generation sequencing data")
14307 (description "Ngless is a domain-specific language for
14308 @dfn{next-generation sequencing} (NGS) data processing.")
14309 (license license:expat)))
14310
14311 (define-public filtlong
14312 ;; The recommended way to install is to clone the git repository
14313 ;; https://github.com/rrwick/Filtlong#installation
14314 ;; and the lastest release is more than nine months old
14315 (let ((commit "d1bb46dfe8bc7efe6257b5ce222c04bfe8aedaab")
14316 (revision "1"))
14317 (package
14318 (name "filtlong")
14319 (version (git-version "0.2.0" revision commit))
14320 (source
14321 (origin
14322 (method git-fetch)
14323 (uri (git-reference
14324 (url "https://github.com/rrwick/Filtlong.git")
14325 (commit commit)))
14326 (file-name (git-file-name name version))
14327 (sha256
14328 (base32 "1xr92r820x8qlkcr3b57iw223yq8vjgyi42jr79w2xgw47qzr575"))))
14329 (build-system gnu-build-system)
14330 (arguments
14331 `(#:tests? #f ; no check target
14332 #:phases
14333 (modify-phases %standard-phases
14334 (delete 'configure)
14335 (replace 'install
14336 (lambda* (#:key outputs #:allow-other-keys)
14337 (let* ((out (assoc-ref outputs "out"))
14338 (bin (string-append out "/bin"))
14339 (scripts (string-append out "/share/filtlong/scripts")))
14340 (install-file "bin/filtlong" bin)
14341 (install-file "scripts/histogram.py" scripts)
14342 (install-file "scripts/read_info_histograms.sh" scripts))
14343 #t))
14344 (add-after 'install 'wrap-program
14345 (lambda* (#:key inputs outputs #:allow-other-keys)
14346 (let* ((out (assoc-ref outputs "out"))
14347 (path (getenv "PYTHONPATH")))
14348 (wrap-program (string-append out
14349 "/share/filtlong/scripts/histogram.py")
14350 `("PYTHONPATH" ":" prefix (,path))))
14351 #t))
14352 (add-before 'check 'patch-tests
14353 (lambda _
14354 (substitute* "scripts/read_info_histograms.sh"
14355 (("awk") (which "gawk")))
14356 #t)))))
14357 (inputs
14358 `(("gawk" ,gawk) ;for read_info_histograms.sh
14359 ("python" ,python-2) ;required for histogram.py
14360 ("zlib" ,zlib)))
14361 (home-page "https://github.com/rrwick/Filtlong/")
14362 (synopsis "Tool for quality filtering of Nanopore and PacBio data")
14363 (description
14364 "The Filtlong package is a tool for filtering long reads by quality.
14365 It can take a set of long reads and produce a smaller, better subset. It uses
14366 both read length (longer is better) and read identity (higher is better) when
14367 choosing which reads pass the filter.")
14368 (license (list license:gpl3 ;filtlong
14369 license:asl2.0))))) ;histogram.py
14370
14371 (define-public nanopolish
14372 ;; The recommended way to install is to clone the git repository
14373 ;; <https://github.com/jts/nanopolish#installing-a-particular-release>.
14374 ;; Also, the differences between release and current version seem to be
14375 ;; significant.
14376 (let ((commit "50e8b5cc62f9b46f5445f5c5e8c5ab7263ea6d9d")
14377 (revision "1"))
14378 (package
14379 (name "nanopolish")
14380 (version (git-version "0.10.2" revision commit))
14381 (source
14382 (origin
14383 (method git-fetch)
14384 (uri (git-reference
14385 (url "https://github.com/jts/nanopolish.git")
14386 (commit commit)
14387 (recursive? #t)))
14388 (file-name (git-file-name name version))
14389 (sha256
14390 (base32 "09j5gz57yr9i34a27vbl72i4g8syv2zzgmsfyjq02yshmnrvkjs6"))))
14391 (build-system gnu-build-system)
14392 (arguments
14393 `(#:make-flags
14394 `("HDF5=noinstall" "EIGEN=noinstall" "HTS=noinstall" "CC=gcc")
14395 #:tests? #f ; no check target
14396 #:phases
14397 (modify-phases %standard-phases
14398 (add-after 'unpack 'find-eigen
14399 (lambda* (#:key inputs #:allow-other-keys)
14400 (setenv "CPATH"
14401 (string-append (assoc-ref inputs "eigen")
14402 "/include/eigen3"))
14403 #t))
14404 (delete 'configure)
14405 (replace 'install
14406 (lambda* (#:key outputs #:allow-other-keys)
14407 (let* ((out (assoc-ref outputs "out"))
14408 (bin (string-append out "/bin"))
14409 (scripts (string-append out "/share/nanopolish/scripts")))
14410
14411 (install-file "nanopolish" bin)
14412 (for-each (lambda (file) (install-file file scripts))
14413 (find-files "scripts" ".*"))
14414 #t)))
14415 (add-after 'install 'wrap-programs
14416 (lambda* (#:key outputs #:allow-other-keys)
14417 (for-each (lambda (file)
14418 (wrap-program file `("PYTHONPATH" ":" prefix (,path))))
14419 (find-files "/share/nanopolish/scripts" "\\.py"))
14420 (for-each (lambda (file)
14421 (wrap-program file `("PERL5LIB" ":" prefix (,path))))
14422 (find-files "/share/nanopolish/scripts" "\\.pl"))
14423 #t)))))
14424 (inputs
14425 `(("eigen" ,eigen)
14426 ("hdf5" ,hdf5)
14427 ("htslib" ,htslib)
14428 ("perl" ,perl)
14429 ("python" ,python)
14430 ("python-biopython" ,python-biopython)
14431 ("python-numpy" ,python-numpy)
14432 ("python-pysam" ,python-pysam)
14433 ("python-scikit-learn" , python-scikit-learn)
14434 ("python-scipy" ,python-scipy)
14435 ("zlib" ,zlib)))
14436 (home-page "https://github.com/jts/nanopolish")
14437 (synopsis "Signal-level analysis of Oxford Nanopore sequencing data")
14438 (description
14439 "This package analyses the Oxford Nanopore sequencing data at signal-level.
14440 Nanopolish can calculate an improved consensus sequence for a draft genome
14441 assembly, detect base modifications, call SNPs (Single nucleotide
14442 polymorphisms) and indels with respect to a reference genome and more.")
14443 (license license:expat))))