gnu: Add cl-ana.statistical-learning.
[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, 2019 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
15 ;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
16 ;;; Copyright © 2019 Brian Leung <bkleung89@gmail.com>
17 ;;; Copyright © 2019 Brett Gilio <brettg@gnu.org>
18 ;;;
19 ;;; This file is part of GNU Guix.
20 ;;;
21 ;;; GNU Guix is free software; you can redistribute it and/or modify it
22 ;;; under the terms of the GNU General Public License as published by
23 ;;; the Free Software Foundation; either version 3 of the License, or (at
24 ;;; your option) any later version.
25 ;;;
26 ;;; GNU Guix is distributed in the hope that it will be useful, but
27 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
28 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 ;;; GNU General Public License for more details.
30 ;;;
31 ;;; You should have received a copy of the GNU General Public License
32 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
33
34 (define-module (gnu packages bioinformatics)
35 #:use-module ((guix licenses) #:prefix license:)
36 #:use-module (guix packages)
37 #:use-module (guix utils)
38 #:use-module (guix download)
39 #:use-module (guix git-download)
40 #:use-module (guix hg-download)
41 #:use-module (guix build-system ant)
42 #:use-module (guix build-system gnu)
43 #:use-module (guix build-system cmake)
44 #:use-module (guix build-system haskell)
45 #:use-module (guix build-system meson)
46 #:use-module (guix build-system ocaml)
47 #:use-module (guix build-system perl)
48 #:use-module (guix build-system python)
49 #:use-module (guix build-system r)
50 #:use-module (guix build-system ruby)
51 #:use-module (guix build-system scons)
52 #:use-module (guix build-system trivial)
53 #:use-module (gnu packages)
54 #:use-module (gnu packages autotools)
55 #:use-module (gnu packages algebra)
56 #:use-module (gnu packages base)
57 #:use-module (gnu packages bash)
58 #:use-module (gnu packages bison)
59 #:use-module (gnu packages bioconductor)
60 #:use-module (gnu packages boost)
61 #:use-module (gnu packages check)
62 #:use-module (gnu packages code)
63 #:use-module (gnu packages compression)
64 #:use-module (gnu packages cpio)
65 #:use-module (gnu packages cran)
66 #:use-module (gnu packages curl)
67 #:use-module (gnu packages documentation)
68 #:use-module (gnu packages databases)
69 #:use-module (gnu packages datastructures)
70 #:use-module (gnu packages file)
71 #:use-module (gnu packages flex)
72 #:use-module (gnu packages gawk)
73 #:use-module (gnu packages gcc)
74 #:use-module (gnu packages gd)
75 #:use-module (gnu packages gtk)
76 #:use-module (gnu packages glib)
77 #:use-module (gnu packages graph)
78 #:use-module (gnu packages groff)
79 #:use-module (gnu packages guile)
80 #:use-module (gnu packages guile-xyz)
81 #:use-module (gnu packages haskell-check)
82 #:use-module (gnu packages haskell-web)
83 #:use-module (gnu packages haskell-xyz)
84 #:use-module (gnu packages image)
85 #:use-module (gnu packages imagemagick)
86 #:use-module (gnu packages java)
87 #:use-module (gnu packages java-compression)
88 #:use-module (gnu packages jemalloc)
89 #:use-module (gnu packages dlang)
90 #:use-module (gnu packages linux)
91 #:use-module (gnu packages lisp-xyz)
92 #:use-module (gnu packages logging)
93 #:use-module (gnu packages machine-learning)
94 #:use-module (gnu packages man)
95 #:use-module (gnu packages maths)
96 #:use-module (gnu packages mpi)
97 #:use-module (gnu packages ncurses)
98 #:use-module (gnu packages ocaml)
99 #:use-module (gnu packages pcre)
100 #:use-module (gnu packages parallel)
101 #:use-module (gnu packages pdf)
102 #:use-module (gnu packages perl)
103 #:use-module (gnu packages perl-check)
104 #:use-module (gnu packages pkg-config)
105 #:use-module (gnu packages popt)
106 #:use-module (gnu packages protobuf)
107 #:use-module (gnu packages python)
108 #:use-module (gnu packages python-compression)
109 #:use-module (gnu packages python-science)
110 #:use-module (gnu packages python-web)
111 #:use-module (gnu packages python-xyz)
112 #:use-module (gnu packages readline)
113 #:use-module (gnu packages ruby)
114 #:use-module (gnu packages serialization)
115 #:use-module (gnu packages shells)
116 #:use-module (gnu packages sphinx)
117 #:use-module (gnu packages statistics)
118 #:use-module (gnu packages swig)
119 #:use-module (gnu packages tbb)
120 #:use-module (gnu packages tex)
121 #:use-module (gnu packages texinfo)
122 #:use-module (gnu packages textutils)
123 #:use-module (gnu packages time)
124 #:use-module (gnu packages tls)
125 #:use-module (gnu packages vim)
126 #:use-module (gnu packages web)
127 #:use-module (gnu packages xml)
128 #:use-module (gnu packages xorg)
129 #:use-module (srfi srfi-1)
130 #:use-module (ice-9 match))
131
132 (define-public aragorn
133 (package
134 (name "aragorn")
135 (version "1.2.38")
136 (source (origin
137 (method url-fetch)
138 (uri (string-append
139 "http://mbio-serv2.mbioekol.lu.se/ARAGORN/Downloads/aragorn"
140 version ".tgz"))
141 (sha256
142 (base32
143 "09i1rg716smlbnixfm7q1ml2mfpaa2fpn3hwjg625ysmfwwy712b"))))
144 (build-system gnu-build-system)
145 (arguments
146 `(#:tests? #f ; there are no tests
147 #:phases
148 (modify-phases %standard-phases
149 (delete 'configure)
150 (replace 'build
151 (lambda _
152 (invoke "gcc"
153 "-O3"
154 "-ffast-math"
155 "-finline-functions"
156 "-o"
157 "aragorn"
158 (string-append "aragorn" ,version ".c"))
159 #t))
160 (replace 'install
161 (lambda* (#:key outputs #:allow-other-keys)
162 (let* ((out (assoc-ref outputs "out"))
163 (bin (string-append out "/bin"))
164 (man (string-append out "/share/man/man1")))
165 (install-file "aragorn" bin)
166 (install-file "aragorn.1" man))
167 #t)))))
168 (home-page "http://mbio-serv2.mbioekol.lu.se/ARAGORN")
169 (synopsis "Detect tRNA, mtRNA and tmRNA genes in nucleotide sequences")
170 (description
171 "Aragorn identifies transfer RNA, mitochondrial RNA and
172 transfer-messenger RNA from nucleotide sequences, based on homology to known
173 tRNA consensus sequences and RNA structure. It also outputs the secondary
174 structure of the predicted RNA.")
175 (license license:gpl2)))
176
177 (define-public bamm
178 (package
179 (name "bamm")
180 (version "1.7.3")
181 (source (origin
182 (method git-fetch)
183 ;; BamM is not available on pypi.
184 (uri (git-reference
185 (url "https://github.com/Ecogenomics/BamM.git")
186 (commit version)
187 (recursive? #t)))
188 (file-name (git-file-name name version))
189 (sha256
190 (base32
191 "1p83ahi984ipslxlg4yqy1gdnya9rkn1v71z8djgxkm9d2chw4c5"))
192 (modules '((guix build utils)))
193 (snippet
194 `(begin
195 ;; Delete bundled htslib.
196 (delete-file-recursively "c/htslib-1.3.1")
197 #t))))
198 (build-system python-build-system)
199 (arguments
200 `(#:python ,python-2 ; BamM is Python 2 only.
201 ;; Do not use bundled libhts. Do use the bundled libcfu because it has
202 ;; been modified from its original form.
203 #:configure-flags
204 (let ((htslib (assoc-ref %build-inputs "htslib")))
205 (list "--with-libhts-lib" (string-append htslib "/lib")
206 "--with-libhts-inc" (string-append htslib "/include/htslib")))
207 #:phases
208 (modify-phases %standard-phases
209 (add-after 'unpack 'autogen
210 (lambda _
211 (with-directory-excursion "c"
212 (let ((sh (which "sh")))
213 (for-each make-file-writable (find-files "." ".*"))
214 ;; Use autogen so that 'configure' works.
215 (substitute* "autogen.sh" (("/bin/sh") sh))
216 (setenv "CONFIG_SHELL" sh)
217 (invoke "./autogen.sh")))
218 #t))
219 (delete 'build)
220 ;; Run tests after installation so compilation only happens once.
221 (delete 'check)
222 (add-after 'install 'wrap-executable
223 (lambda* (#:key outputs #:allow-other-keys)
224 (let* ((out (assoc-ref outputs "out"))
225 (path (getenv "PATH")))
226 (wrap-program (string-append out "/bin/bamm")
227 `("PATH" ":" prefix (,path))))
228 #t))
229 (add-after 'wrap-executable 'post-install-check
230 (lambda* (#:key inputs outputs #:allow-other-keys)
231 (setenv "PATH"
232 (string-append (assoc-ref outputs "out")
233 "/bin:"
234 (getenv "PATH")))
235 (setenv "PYTHONPATH"
236 (string-append
237 (assoc-ref outputs "out")
238 "/lib/python"
239 (string-take (string-take-right
240 (assoc-ref inputs "python") 5) 3)
241 "/site-packages:"
242 (getenv "PYTHONPATH")))
243 ;; There are 2 errors printed, but they are safe to ignore:
244 ;; 1) [E::hts_open_format] fail to open file ...
245 ;; 2) samtools view: failed to open ...
246 (invoke "nosetests")
247 #t)))))
248 (native-inputs
249 `(("autoconf" ,autoconf)
250 ("automake" ,automake)
251 ("libtool" ,libtool)
252 ("zlib" ,zlib)
253 ("python-nose" ,python2-nose)
254 ("python-pysam" ,python2-pysam)))
255 (inputs
256 `(("htslib" ,htslib-1.3) ; At least one test fails on htslib-1.4+.
257 ("samtools" ,samtools)
258 ("bwa" ,bwa)
259 ("grep" ,grep)
260 ("sed" ,sed)
261 ("coreutils" ,coreutils)))
262 (propagated-inputs
263 `(("python-numpy" ,python2-numpy)))
264 (home-page "http://ecogenomics.github.io/BamM/")
265 (synopsis "Metagenomics-focused BAM file manipulator")
266 (description
267 "BamM is a C library, wrapped in python, to efficiently generate and
268 parse BAM files, specifically for the analysis of metagenomic data. For
269 instance, it implements several methods to assess contig-wise read coverage.")
270 (license license:lgpl3+)))
271
272 (define-public bamtools
273 (package
274 (name "bamtools")
275 (version "2.5.1")
276 (source (origin
277 (method git-fetch)
278 (uri (git-reference
279 (url "https://github.com/pezmaster31/bamtools.git")
280 (commit (string-append "v" version))))
281 (file-name (git-file-name name version))
282 (sha256
283 (base32
284 "0nfb2ypcx9959xnbz6wxh6py3xfizgmg8nrknxl95c507m9hmq8b"))))
285 (build-system cmake-build-system)
286 (arguments
287 `(#:tests? #f ;no "check" target
288 #:phases
289 (modify-phases %standard-phases
290 (add-before
291 'configure 'set-ldflags
292 (lambda* (#:key outputs #:allow-other-keys)
293 (setenv "LDFLAGS"
294 (string-append
295 "-Wl,-rpath="
296 (assoc-ref outputs "out") "/lib/bamtools"))
297 #t)))))
298 (inputs `(("zlib" ,zlib)))
299 (home-page "https://github.com/pezmaster31/bamtools")
300 (synopsis "C++ API and command-line toolkit for working with BAM data")
301 (description
302 "BamTools provides both a C++ API and a command-line toolkit for handling
303 BAM files.")
304 (license license:expat)))
305
306 (define-public bcftools
307 (package
308 (name "bcftools")
309 (version "1.9")
310 (source (origin
311 (method url-fetch)
312 (uri (string-append "https://github.com/samtools/bcftools/"
313 "releases/download/"
314 version "/bcftools-" version ".tar.bz2"))
315 (sha256
316 (base32
317 "1j3h638i8kgihzyrlnpj82xg1b23sijibys9hvwari3fy7kd0dkg"))
318 (modules '((guix build utils)))
319 (snippet '(begin
320 ;; Delete bundled htslib.
321 (delete-file-recursively "htslib-1.9")
322 #t))))
323 (build-system gnu-build-system)
324 (arguments
325 `(#:configure-flags
326 (list "--enable-libgsl")
327 #:test-target "test"
328 #:phases
329 (modify-phases %standard-phases
330 (add-before 'check 'patch-tests
331 (lambda _
332 (substitute* "test/test.pl"
333 (("/bin/bash") (which "bash")))
334 #t)))))
335 (native-inputs
336 `(("htslib" ,htslib)
337 ("perl" ,perl)))
338 (inputs
339 `(("gsl" ,gsl)
340 ("zlib" ,zlib)))
341 (home-page "https://samtools.github.io/bcftools/")
342 (synopsis "Utilities for variant calling and manipulating VCFs and BCFs")
343 (description
344 "BCFtools is a set of utilities that manipulate variant calls in the
345 Variant Call Format (VCF) and its binary counterpart BCF. All commands work
346 transparently with both VCFs and BCFs, both uncompressed and BGZF-compressed.")
347 ;; The sources are dual MIT/GPL, but becomes GPL-only when USE_GPL=1.
348 (license (list license:gpl3+ license:expat))))
349
350 (define-public bedops
351 (package
352 (name "bedops")
353 (version "2.4.35")
354 (source (origin
355 (method git-fetch)
356 (uri (git-reference
357 (url "https://github.com/bedops/bedops.git")
358 (commit (string-append "v" version))))
359 (file-name (git-file-name name version))
360 (sha256
361 (base32
362 "0mmgsgwz5r9w76hzgxkxc9s9lkdhhaf7vr6i02b09vbswvs1fyqx"))))
363 (build-system gnu-build-system)
364 (arguments
365 '(#:tests? #f
366 #:make-flags (list (string-append "BINDIR=" %output "/bin"))
367 #:phases
368 (modify-phases %standard-phases
369 (add-after 'unpack 'unpack-tarballs
370 (lambda _
371 ;; FIXME: Bedops includes tarballs of minimally patched upstream
372 ;; libraries jansson, zlib, and bzip2. We cannot just use stock
373 ;; libraries because at least one of the libraries (zlib) is
374 ;; patched to add a C++ function definition (deflateInit2cpp).
375 ;; Until the Bedops developers offer a way to link against system
376 ;; libraries we have to build the in-tree copies of these three
377 ;; libraries.
378
379 ;; See upstream discussion:
380 ;; https://github.com/bedops/bedops/issues/124
381
382 ;; Unpack the tarballs to benefit from shebang patching.
383 (with-directory-excursion "third-party"
384 (invoke "tar" "xvf" "jansson-2.6.tar.bz2")
385 (invoke "tar" "xvf" "zlib-1.2.7.tar.bz2")
386 (invoke "tar" "xvf" "bzip2-1.0.6.tar.bz2"))
387 ;; Disable unpacking of tarballs in Makefile.
388 (substitute* "system.mk/Makefile.linux"
389 (("^\tbzcat .*") "\t@echo \"not unpacking\"\n")
390 (("\\./configure") "CONFIG_SHELL=bash ./configure"))
391 (substitute* "third-party/zlib-1.2.7/Makefile.in"
392 (("^SHELL=.*$") "SHELL=bash\n"))
393 #t))
394 (delete 'configure))))
395 (home-page "https://github.com/bedops/bedops")
396 (synopsis "Tools for high-performance genomic feature operations")
397 (description
398 "BEDOPS is a suite of tools to address common questions raised in genomic
399 studies---mostly with regard to overlap and proximity relationships between
400 data sets. It aims to be scalable and flexible, facilitating the efficient
401 and accurate analysis and management of large-scale genomic data.
402
403 BEDOPS provides tools that perform highly efficient and scalable Boolean and
404 other set operations, statistical calculations, archiving, conversion and
405 other management of genomic data of arbitrary scale. Tasks can be easily
406 split by chromosome for distributing whole-genome analyses across a
407 computational cluster.")
408 (license license:gpl2+)))
409
410 (define-public bedtools
411 (package
412 (name "bedtools")
413 (version "2.27.1")
414 (source (origin
415 (method url-fetch)
416 (uri (string-append "https://github.com/arq5x/bedtools2/releases/"
417 "download/v" version "/"
418 "bedtools-" version ".tar.gz"))
419 (sha256
420 (base32
421 "1ndg5yknrxl4djx8ddzgk12rrbiidfpmkkg5z3f95jzryfxarhn8"))))
422 (build-system gnu-build-system)
423 (arguments
424 '(#:test-target "test"
425 #:make-flags
426 (list (string-append "prefix=" (assoc-ref %outputs "out")))
427 #:phases
428 (modify-phases %standard-phases
429 (delete 'configure))))
430 (native-inputs `(("python" ,python-2)))
431 (inputs
432 `(("samtools" ,samtools)
433 ("zlib" ,zlib)))
434 (home-page "https://github.com/arq5x/bedtools2")
435 (synopsis "Tools for genome analysis and arithmetic")
436 (description
437 "Collectively, the bedtools utilities are a swiss-army knife of tools for
438 a wide-range of genomics analysis tasks. The most widely-used tools enable
439 genome arithmetic: that is, set theory on the genome. For example, bedtools
440 allows one to intersect, merge, count, complement, and shuffle genomic
441 intervals from multiple files in widely-used genomic file formats such as BAM,
442 BED, GFF/GTF, VCF.")
443 (license license:gpl2)))
444
445 ;; Later releases of bedtools produce files with more columns than
446 ;; what Ribotaper expects.
447 (define-public bedtools-2.18
448 (package (inherit bedtools)
449 (name "bedtools")
450 (version "2.18.0")
451 (source (origin
452 (method url-fetch)
453 (uri (string-append "https://github.com/arq5x/bedtools2/"
454 "releases/download/v" version
455 "/bedtools-" version ".tar.gz"))
456 (sha256
457 (base32
458 "11rvca19ncg03kxd0wzlfx5ws7r3nisd0z8s9j9n182d8ksp2pxz"))))
459 (arguments
460 '(#:test-target "test"
461 #:phases
462 (modify-phases %standard-phases
463 (delete 'configure)
464 (replace 'install
465 (lambda* (#:key outputs #:allow-other-keys)
466 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
467 (for-each (lambda (file)
468 (install-file file bin))
469 (find-files "bin" ".*")))
470 #t)))))))
471
472 ;; Needed for pybedtools.
473 (define-public bedtools-2.26
474 (package (inherit bedtools)
475 (name "bedtools")
476 (version "2.26.0")
477 (source (origin
478 (method url-fetch)
479 (uri (string-append "https://github.com/arq5x/bedtools2/releases/"
480 "download/v" version "/"
481 "bedtools-" version ".tar.gz"))
482 (sha256
483 (base32
484 "0jhavwifnf7lmkb11h9y7dynr8d699h0rd2l52j1pfgircr2zwv5"))))))
485
486 (define-public pbbam
487 (package
488 (name "pbbam")
489 (version "0.23.0")
490 (source (origin
491 (method git-fetch)
492 (uri (git-reference
493 (url "https://github.com/PacificBiosciences/pbbam.git")
494 (commit version)))
495 (file-name (git-file-name name version))
496 (sha256
497 (base32
498 "0h9gkrpf2lrxklxp72xfl5bi3h5zcm5hprrya9gf0hr3xwlbpp0x"))))
499 (build-system meson-build-system)
500 (arguments
501 `(#:phases
502 (modify-phases %standard-phases
503 (add-after 'unpack 'find-googletest
504 (lambda* (#:key inputs #:allow-other-keys)
505 ;; It doesn't find gtest_main because there's no pkg-config file
506 ;; for it. Find it another way.
507 (substitute* "tests/meson.build"
508 (("pbbam_gtest_dep = dependency\\('gtest_main'.*")
509 (format #f "cpp = meson.get_compiler('cpp')
510 pbbam_gtest_dep = cpp.find_library('gtest_main', dirs : '~a')\n"
511 (assoc-ref inputs "googletest"))))
512 #t)))
513 ;; TODO: tests/pbbam_test cannot be linked
514 ;; ld: tests/59830eb@@pbbam_test@exe/src_test_Accuracy.cpp.o:
515 ;; undefined reference to symbol '_ZTIN7testing4TestE'
516 ;; ld: /gnu/store/...-googletest-1.8.0/lib/libgtest.so:
517 ;; error adding symbols: DSO missing from command line
518 #:tests? #f
519 #:configure-flags '("-Dtests=false")))
520 ;; These libraries are listed as "Required" in the pkg-config file.
521 (propagated-inputs
522 `(("htslib" ,htslib)
523 ("zlib" ,zlib)))
524 (inputs
525 `(("boost" ,boost)
526 ("samtools" ,samtools)))
527 (native-inputs
528 `(("googletest" ,googletest)
529 ("pkg-config" ,pkg-config)
530 ("python" ,python-wrapper))) ; for tests
531 (home-page "https://github.com/PacificBiosciences/pbbam")
532 (synopsis "Work with PacBio BAM files")
533 (description
534 "The pbbam software package provides components to create, query, and
535 edit PacBio BAM files and associated indices. These components include a core
536 C++ library, bindings for additional languages, and command-line utilities.
537 This library is not intended to be used as a general-purpose BAM utility - all
538 input and output BAMs must adhere to the PacBio BAM format specification.
539 Non-PacBio BAMs will cause exceptions to be thrown.")
540 (license license:bsd-3)))
541
542 (define-public blasr-libcpp
543 (package
544 (name "blasr-libcpp")
545 (version "5.3.3")
546 (source (origin
547 (method git-fetch)
548 (uri (git-reference
549 (url "https://github.com/PacificBiosciences/blasr_libcpp.git")
550 (commit version)))
551 (file-name (git-file-name name version))
552 (sha256
553 (base32
554 "0cn5l42zyq67sj0g2imqkhayz2iqvv0a1pgpbmlq0qynjmsrbfd2"))))
555 (build-system meson-build-system)
556 (arguments
557 `(#:phases
558 (modify-phases %standard-phases
559 (add-after 'unpack 'link-with-hdf5
560 (lambda* (#:key inputs #:allow-other-keys)
561 (let ((hdf5 (assoc-ref inputs "hdf5")))
562 (substitute* "meson.build"
563 (("libblasr_deps = \\[" m)
564 (string-append
565 m
566 (format #f "cpp.find_library('hdf5', dirs : '~a'), \
567 cpp.find_library('hdf5_cpp', dirs : '~a'), "
568 hdf5 hdf5)))))
569 #t))
570 (add-after 'unpack 'find-googletest
571 (lambda* (#:key inputs #:allow-other-keys)
572 ;; It doesn't find gtest_main because there's no pkg-config file
573 ;; for it. Find it another way.
574 (substitute* "unittest/meson.build"
575 (("libblasr_gtest_dep = dependency\\('gtest_main'.*")
576 (format #f "cpp = meson.get_compiler('cpp')
577 libblasr_gtest_dep = cpp.find_library('gtest_main', dirs : '~a')\n"
578 (assoc-ref inputs "googletest"))))
579 #t)))
580 ;; TODO: unittest/libblasr_unittest cannot be linked
581 ;; ld: ;; unittest/df08227@@libblasr_unittest@exe/alignment_utils_FileUtils_gtest.cpp.o:
582 ;; undefined reference to symbol
583 ;; '_ZN7testing8internal9DeathTest6CreateEPKcPKNS0_2REES3_iPPS1_'
584 ;; ld: /gnu/store/...-googletest-1.8.0/lib/libgtest.so:
585 ;; error adding symbols: DSO missing from command line
586 #:tests? #f
587 #:configure-flags '("-Dtests=false")))
588 (inputs
589 `(("boost" ,boost)
590 ("hdf5" ,hdf5)
591 ("pbbam" ,pbbam)
592 ("zlib" ,zlib)))
593 (native-inputs
594 `(("googletest" ,googletest)
595 ("pkg-config" ,pkg-config)))
596 (home-page "https://github.com/PacificBiosciences/blasr_libcpp")
597 (synopsis "Library for analyzing PacBio genomic sequences")
598 (description
599 "This package provides three libraries used by applications for analyzing
600 PacBio genomic sequences. This library contains three sub-libraries: pbdata,
601 hdf and alignment.")
602 (license license:bsd-3)))
603
604 (define-public blasr
605 (package
606 (name "blasr")
607 (version "5.3.3")
608 (source (origin
609 (method git-fetch)
610 (uri (git-reference
611 (url "https://github.com/PacificBiosciences/blasr.git")
612 (commit version)))
613 (file-name (git-file-name name version))
614 (sha256
615 (base32
616 "1skgy2mvz8gsgfh1gc2nfgwvpyzb1hpmp2cf2773h5wsj8nw22kl"))))
617 (build-system meson-build-system)
618 (arguments
619 `(#:phases
620 (modify-phases %standard-phases
621 (add-after 'unpack 'link-with-hdf5
622 (lambda* (#:key inputs #:allow-other-keys)
623 (let ((hdf5 (assoc-ref inputs "hdf5")))
624 (substitute* "meson.build"
625 (("blasr_deps = \\[" m)
626 (string-append
627 m
628 (format #f "cpp.find_library('hdf5', dirs : '~a'), \
629 cpp.find_library('hdf5_cpp', dirs : '~a'), "
630 hdf5 hdf5)))))
631 #t)))
632 ;; Tests require "cram" executable, which is not packaged.
633 #:tests? #f
634 #:configure-flags '("-Dtests=false")))
635 (inputs
636 `(("boost" ,boost)
637 ("blasr-libcpp" ,blasr-libcpp)
638 ("hdf5" ,hdf5)
639 ("pbbam" ,pbbam)
640 ("zlib" ,zlib)))
641 (native-inputs
642 `(("pkg-config" ,pkg-config)))
643 (home-page "https://github.com/PacificBiosciences/blasr")
644 (synopsis "PacBio long read aligner")
645 (description
646 "Blasr is a genomic sequence aligner for processing PacBio long reads.")
647 (license license:bsd-3)))
648
649 (define-public ribotaper
650 (package
651 (name "ribotaper")
652 (version "1.3.1")
653 (source (origin
654 (method url-fetch)
655 (uri (string-append "https://ohlerlab.mdc-berlin.de/"
656 "files/RiboTaper/RiboTaper_Version_"
657 version ".tar.gz"))
658 (sha256
659 (base32
660 "0ykjbps1y3z3085q94npw8i9x5gldc6shy8vlc08v76zljsm07hv"))))
661 (build-system gnu-build-system)
662 (arguments
663 `(#:phases
664 (modify-phases %standard-phases
665 (add-after 'install 'wrap-executables
666 (lambda* (#:key inputs outputs #:allow-other-keys)
667 (let* ((out (assoc-ref outputs "out")))
668 (for-each
669 (lambda (script)
670 (wrap-program (string-append out "/bin/" script)
671 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
672 '("create_annotations_files.bash"
673 "create_metaplots.bash"
674 "Ribotaper_ORF_find.sh"
675 "Ribotaper.sh")))
676 #t)))))
677 (inputs
678 `(("bedtools" ,bedtools-2.18)
679 ("samtools" ,samtools-0.1)
680 ("r-minimal" ,r-minimal)
681 ("r-foreach" ,r-foreach)
682 ("r-xnomial" ,r-xnomial)
683 ("r-domc" ,r-domc)
684 ("r-multitaper" ,r-multitaper)
685 ("r-seqinr" ,r-seqinr)))
686 (home-page "https://ohlerlab.mdc-berlin.de/software/RiboTaper_126/")
687 (synopsis "Define translated ORFs using ribosome profiling data")
688 (description
689 "Ribotaper is a method for defining translated @dfn{open reading
690 frames} (ORFs) using ribosome profiling (ribo-seq) data. This package
691 provides the Ribotaper pipeline.")
692 (license license:gpl3+)))
693
694 (define-public ribodiff
695 (package
696 (name "ribodiff")
697 (version "0.2.2")
698 (source
699 (origin
700 (method git-fetch)
701 (uri (git-reference
702 (url "https://github.com/ratschlab/RiboDiff.git")
703 (commit (string-append "v" version))))
704 (file-name (git-file-name name version))
705 (sha256
706 (base32
707 "0x75nlp7qnmm64jasbi6l21f2cy99r2cjyl6b4hr8zf2bq22drnz"))))
708 (build-system python-build-system)
709 (arguments
710 `(#:python ,python-2
711 #:phases
712 (modify-phases %standard-phases
713 ;; Generate an installable executable script wrapper.
714 (add-after 'unpack 'patch-setup.py
715 (lambda _
716 (substitute* "setup.py"
717 (("^(.*)packages=.*" line prefix)
718 (string-append line "\n"
719 prefix "scripts=['scripts/TE.py'],\n")))
720 #t)))))
721 (inputs
722 `(("python-numpy" ,python2-numpy)
723 ("python-matplotlib" ,python2-matplotlib)
724 ("python-scipy" ,python2-scipy)
725 ("python-statsmodels" ,python2-statsmodels)))
726 (native-inputs
727 `(("python-mock" ,python2-mock)
728 ("python-nose" ,python2-nose)))
729 (home-page "http://public.bmi.inf.ethz.ch/user/zhongy/RiboDiff/")
730 (synopsis "Detect translation efficiency changes from ribosome footprints")
731 (description "RiboDiff is a statistical tool that detects the protein
732 translational efficiency change from Ribo-Seq (ribosome footprinting) and
733 RNA-Seq data. It uses a generalized linear model to detect genes showing
734 difference in translational profile taking mRNA abundance into account. It
735 facilitates us to decipher the translational regulation that behave
736 independently with transcriptional regulation.")
737 (license license:gpl3+)))
738
739 (define-public bioawk
740 (package
741 (name "bioawk")
742 (version "1.0")
743 (source (origin
744 (method git-fetch)
745 (uri (git-reference
746 (url "https://github.com/lh3/bioawk.git")
747 (commit (string-append "v" version))))
748 (file-name (git-file-name name version))
749 (sha256
750 (base32
751 "1pxc3zdnirxbf9a0az698hd8xdik7qkhypm7v6hn922x8y9qmspm"))))
752 (build-system gnu-build-system)
753 (inputs
754 `(("zlib" ,zlib)))
755 (native-inputs
756 `(("bison" ,bison)))
757 (arguments
758 `(#:tests? #f ; There are no tests to run.
759 ;; Bison must generate files, before other targets can build.
760 #:parallel-build? #f
761 #:phases
762 (modify-phases %standard-phases
763 (delete 'configure) ; There is no configure phase.
764 (replace 'install
765 (lambda* (#:key outputs #:allow-other-keys)
766 (let* ((out (assoc-ref outputs "out"))
767 (bin (string-append out "/bin"))
768 (man (string-append out "/share/man/man1")))
769 (mkdir-p man)
770 (copy-file "awk.1" (string-append man "/bioawk.1"))
771 (install-file "bioawk" bin))
772 #t)))))
773 (home-page "https://github.com/lh3/bioawk")
774 (synopsis "AWK with bioinformatics extensions")
775 (description "Bioawk is an extension to Brian Kernighan's awk, adding the
776 support of several common biological data formats, including optionally gzip'ed
777 BED, GFF, SAM, VCF, FASTA/Q and TAB-delimited formats with column names. It
778 also adds a few built-in functions and a command line option to use TAB as the
779 input/output delimiter. When the new functionality is not used, bioawk is
780 intended to behave exactly the same as the original BWK awk.")
781 (license license:x11)))
782
783 (define-public python-pybedtools
784 (package
785 (name "python-pybedtools")
786 (version "0.8.0")
787 (source (origin
788 (method url-fetch)
789 (uri (pypi-uri "pybedtools" version))
790 (sha256
791 (base32
792 "1xl454ijvd4dzfvqgfahad49b49j7qy710fq9xh1rvk42z6x5ssf"))))
793 (build-system python-build-system)
794 (arguments
795 `(#:modules ((ice-9 ftw)
796 (srfi srfi-1)
797 (srfi srfi-26)
798 (guix build utils)
799 (guix build python-build-system))
800 ;; See https://github.com/daler/pybedtools/issues/192
801 #:phases
802 (modify-phases %standard-phases
803 ;; See https://github.com/daler/pybedtools/issues/261
804 (add-after 'unpack 'disable-broken-tests
805 (lambda _
806 ;; This test (pybedtools.test.test_scripts.test_venn_mpl) needs a
807 ;; graphical environment.
808 (substitute* "pybedtools/test/test_scripts.py"
809 (("def test_venn_mpl")
810 "def _do_not_test_venn_mpl"))
811 (substitute* "pybedtools/test/test_helpers.py"
812 ;; Requires internet access.
813 (("def test_chromsizes")
814 "def _do_not_test_chromsizes")
815 ;; Broken as a result of the workaround used in the check phase
816 ;; (see: https://github.com/daler/pybedtools/issues/192).
817 (("def test_getting_example_beds")
818 "def _do_not_test_getting_example_beds"))
819 #t))
820 ;; TODO: Remove phase after it's part of PYTHON-BUILD-SYSTEM.
821 ;; build system.
822 ;; Force the Cythonization of C++ files to guard against compilation
823 ;; problems.
824 (add-after 'unpack 'remove-cython-generated-files
825 (lambda _
826 (let ((cython-sources (map (cut string-drop-right <> 4)
827 (find-files "." "\\.pyx$")))
828 (c/c++-files (find-files "." "\\.(c|cpp|cxx)$")))
829 (define (strip-extension filename)
830 (string-take filename (string-index-right filename #\.)))
831 (define (cythonized? c/c++-file)
832 (member (strip-extension c/c++-file) cython-sources))
833 (for-each delete-file (filter cythonized? c/c++-files))
834 #t)))
835 (add-after 'remove-cython-generated-files 'generate-cython-extensions
836 (lambda _
837 (invoke "python" "setup.py" "cythonize")))
838 (replace 'check
839 (lambda _
840 (let* ((cwd (getcwd))
841 (build-root-directory (string-append cwd "/build/"))
842 (build (string-append
843 build-root-directory
844 (find (cut string-prefix? "lib" <>)
845 (scandir (string-append
846 build-root-directory)))))
847 (scripts (string-append
848 build-root-directory
849 (find (cut string-prefix? "scripts" <>)
850 (scandir build-root-directory)))))
851 (setenv "PYTHONPATH"
852 (string-append build ":" (getenv "PYTHONPATH")))
853 ;; Executable scripts such as 'intron_exon_reads.py' must be
854 ;; available in the PATH.
855 (setenv "PATH"
856 (string-append scripts ":" (getenv "PATH"))))
857 ;; The tests need to be run from elsewhere...
858 (mkdir-p "/tmp/test")
859 (copy-recursively "pybedtools/test" "/tmp/test")
860 (with-directory-excursion "/tmp/test"
861 (invoke "pytest")))))))
862 (propagated-inputs
863 `(("bedtools" ,bedtools)
864 ("samtools" ,samtools)
865 ("python-matplotlib" ,python-matplotlib)
866 ("python-pysam" ,python-pysam)
867 ("python-pyyaml" ,python-pyyaml)))
868 (native-inputs
869 `(("python-numpy" ,python-numpy)
870 ("python-pandas" ,python-pandas)
871 ("python-cython" ,python-cython)
872 ("kentutils" ,kentutils) ; for bedGraphToBigWig
873 ("python-six" ,python-six)
874 ;; For the test suite.
875 ("python-pytest" ,python-pytest)
876 ("python-psutil" ,python-psutil)))
877 (home-page "https://pythonhosted.org/pybedtools/")
878 (synopsis "Python wrapper for BEDtools programs")
879 (description
880 "pybedtools is a Python wrapper for Aaron Quinlan's BEDtools programs,
881 which are widely used for genomic interval manipulation or \"genome algebra\".
882 pybedtools extends BEDTools by offering feature-level manipulations from with
883 Python.")
884 (license license:gpl2+)))
885
886 (define-public python2-pybedtools
887 (package-with-python2 python-pybedtools))
888
889 (define-public python-biom-format
890 (package
891 (name "python-biom-format")
892 (version "2.1.7")
893 (source
894 (origin
895 (method git-fetch)
896 ;; Use GitHub as source because PyPI distribution does not contain
897 ;; test data: https://github.com/biocore/biom-format/issues/693
898 (uri (git-reference
899 (url "https://github.com/biocore/biom-format.git")
900 (commit version)))
901 (file-name (git-file-name name version))
902 (sha256
903 (base32
904 "1rna16lyk5aqhnv0dp77wwaplias93f1vw28ad3jmyw6hwkai05v"))
905 (modules '((guix build utils)))
906 (snippet '(begin
907 ;; Delete generated C files.
908 (for-each delete-file (find-files "." "\\.c"))
909 #t))))
910 (build-system python-build-system)
911 (arguments
912 `(#:phases
913 (modify-phases %standard-phases
914 (add-after 'unpack 'use-cython
915 (lambda _ (setenv "USE_CYTHON" "1") #t))
916 (add-after 'unpack 'disable-broken-tests
917 (lambda _
918 (substitute* "biom/tests/test_cli/test_validate_table.py"
919 (("^(.+)def test_invalid_hdf5" m indent)
920 (string-append indent
921 "@npt.dec.skipif(True, msg='Guix')\n"
922 m)))
923 (substitute* "biom/tests/test_table.py"
924 (("^(.+)def test_from_hdf5_issue_731" m indent)
925 (string-append indent
926 "@npt.dec.skipif(True, msg='Guix')\n"
927 m)))
928 #t))
929 (add-before 'reset-gzip-timestamps 'make-files-writable
930 (lambda* (#:key outputs #:allow-other-keys)
931 (let ((out (assoc-ref outputs "out")))
932 (for-each (lambda (file) (chmod file #o644))
933 (find-files out "\\.gz"))
934 #t))))))
935 (propagated-inputs
936 `(("python-numpy" ,python-numpy)
937 ("python-scipy" ,python-scipy)
938 ("python-flake8" ,python-flake8)
939 ("python-future" ,python-future)
940 ("python-click" ,python-click)
941 ("python-h5py" ,python-h5py)
942 ("python-pandas" ,python-pandas)))
943 (native-inputs
944 `(("python-cython" ,python-cython)
945 ("python-pytest" ,python-pytest)
946 ("python-pytest-cov" ,python-pytest-cov)
947 ("python-nose" ,python-nose)))
948 (home-page "http://www.biom-format.org")
949 (synopsis "Biological Observation Matrix (BIOM) format utilities")
950 (description
951 "The BIOM file format is designed to be a general-use format for
952 representing counts of observations e.g. operational taxonomic units, KEGG
953 orthology groups or lipid types, in one or more biological samples
954 e.g. microbiome samples, genomes, metagenomes.")
955 (license license:bsd-3)
956 (properties `((python2-variant . ,(delay python2-biom-format))))))
957
958 (define-public python2-biom-format
959 (let ((base (package-with-python2 (strip-python2-variant python-biom-format))))
960 (package
961 (inherit base)
962 (arguments
963 (substitute-keyword-arguments (package-arguments base)
964 ((#:phases phases)
965 `(modify-phases ,phases
966 ;; Do not require the unmaintained pyqi library.
967 (add-after 'unpack 'remove-pyqi
968 (lambda _
969 (substitute* "setup.py"
970 (("install_requires.append\\(\"pyqi\"\\)") "pass"))
971 #t)))))))))
972
973 (define-public bioperl-minimal
974 (let* ((inputs `(("perl-module-build" ,perl-module-build)
975 ("perl-data-stag" ,perl-data-stag)
976 ("perl-libwww" ,perl-libwww)
977 ("perl-uri" ,perl-uri)))
978 (transitive-inputs
979 (map (compose package-name cadr)
980 (delete-duplicates
981 (concatenate
982 (map (compose package-transitive-target-inputs cadr) inputs))))))
983 (package
984 (name "bioperl-minimal")
985 (version "1.7.0")
986 (source
987 (origin
988 (method git-fetch)
989 (uri (git-reference
990 (url "https://github.com/bioperl/bioperl-live")
991 (commit (string-append "release-"
992 (string-map (lambda (c)
993 (if (char=? c #\.)
994 #\- c)) version)))))
995 (file-name (git-file-name name version))
996 (sha256
997 (base32
998 "0wl8yvzcls59pwwk6m8ahy87pwg6nnibzy5cldbvmcwg2x2w7783"))))
999 (build-system perl-build-system)
1000 (arguments
1001 `(#:phases
1002 (modify-phases %standard-phases
1003 (add-after
1004 'install 'wrap-programs
1005 (lambda* (#:key outputs #:allow-other-keys)
1006 ;; Make sure all executables in "bin" find the required Perl
1007 ;; modules at runtime. As the PERL5LIB variable contains also
1008 ;; the paths of native inputs, we pick the transitive target
1009 ;; inputs from %build-inputs.
1010 (let* ((out (assoc-ref outputs "out"))
1011 (bin (string-append out "/bin/"))
1012 (path (string-join
1013 (cons (string-append out "/lib/perl5/site_perl")
1014 (map (lambda (name)
1015 (assoc-ref %build-inputs name))
1016 ',transitive-inputs))
1017 ":")))
1018 (for-each (lambda (file)
1019 (wrap-program file
1020 `("PERL5LIB" ":" prefix (,path))))
1021 (find-files bin "\\.pl$"))
1022 #t))))))
1023 (inputs inputs)
1024 (native-inputs
1025 `(("perl-test-most" ,perl-test-most)))
1026 (home-page "https://metacpan.org/release/BioPerl")
1027 (synopsis "Bioinformatics toolkit")
1028 (description
1029 "BioPerl is the product of a community effort to produce Perl code which
1030 is useful in biology. Examples include Sequence objects, Alignment objects
1031 and database searching objects. These objects not only do what they are
1032 advertised to do in the documentation, but they also interact - Alignment
1033 objects are made from the Sequence objects, Sequence objects have access to
1034 Annotation and SeqFeature objects and databases, Blast objects can be
1035 converted to Alignment objects, and so on. This means that the objects
1036 provide a coordinated and extensible framework to do computational biology.")
1037 (license license:perl-license))))
1038
1039 (define-public python-biopython
1040 (package
1041 (name "python-biopython")
1042 (version "1.70")
1043 (source (origin
1044 (method url-fetch)
1045 ;; use PyPi rather than biopython.org to ease updating
1046 (uri (pypi-uri "biopython" version))
1047 (sha256
1048 (base32
1049 "0nz4n9d2y2dg849gn1z0vjlkwcpzzkzy3fij7x94a6ixy2c54z2a"))))
1050 (build-system python-build-system)
1051 (arguments
1052 `(#:phases
1053 (modify-phases %standard-phases
1054 (add-before 'check 'set-home
1055 ;; Some tests require a home directory to be set.
1056 (lambda _ (setenv "HOME" "/tmp") #t)))))
1057 (propagated-inputs
1058 `(("python-numpy" ,python-numpy)))
1059 (home-page "http://biopython.org/")
1060 (synopsis "Tools for biological computation in Python")
1061 (description
1062 "Biopython is a set of tools for biological computation including parsers
1063 for bioinformatics files into Python data structures; interfaces to common
1064 bioinformatics programs; a standard sequence class and tools for performing
1065 common operations on them; code to perform data classification; code for
1066 dealing with alignments; code making it easy to split up parallelizable tasks
1067 into separate processes; and more.")
1068 (license (license:non-copyleft "http://www.biopython.org/DIST/LICENSE"))))
1069
1070 (define-public python2-biopython
1071 (package-with-python2 python-biopython))
1072
1073 (define-public python-fastalite
1074 (package
1075 (name "python-fastalite")
1076 (version "0.3")
1077 (source
1078 (origin
1079 (method url-fetch)
1080 (uri (pypi-uri "fastalite" version))
1081 (sha256
1082 (base32
1083 "1qli6pxp77i9xn2wfciq2zaxhl82bdxb33cpzqzj1z25yd036wqj"))))
1084 (build-system python-build-system)
1085 (arguments
1086 `(#:tests? #f)) ; Test data is not distributed.
1087 (home-page "https://github.com/nhoffman/fastalite")
1088 (synopsis "Simplest possible FASTA parser")
1089 (description "This library implements a FASTA and a FASTQ parser without
1090 relying on a complex dependency tree.")
1091 (license license:expat)))
1092
1093 (define-public python2-fastalite
1094 (package-with-python2 python-fastalite))
1095
1096 (define-public bpp-core
1097 ;; The last release was in 2014 and the recommended way to install from source
1098 ;; is to clone the git repository, so we do this.
1099 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1100 (let ((commit "7d8bced0d1a87291ea8dd7046b7fb5ff9c35c582"))
1101 (package
1102 (name "bpp-core")
1103 (version (string-append "2.2.0-1." (string-take commit 7)))
1104 (source (origin
1105 (method git-fetch)
1106 (uri (git-reference
1107 (url "http://biopp.univ-montp2.fr/git/bpp-core")
1108 (commit commit)))
1109 (file-name (string-append name "-" version "-checkout"))
1110 (sha256
1111 (base32
1112 "10djsq5vlnkilv436gnmh4irpk49v29pa69r6xiryg32xmvn909j"))))
1113 (build-system cmake-build-system)
1114 (arguments
1115 `(#:parallel-build? #f))
1116 (home-page "http://biopp.univ-montp2.fr")
1117 (synopsis "C++ libraries for Bioinformatics")
1118 (description
1119 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1120 analysis, phylogenetics, molecular evolution and population genetics. It is
1121 Object Oriented and is designed to be both easy to use and computer efficient.
1122 Bio++ intends to help programmers to write computer expensive programs, by
1123 providing them a set of re-usable tools.")
1124 (license license:cecill-c))))
1125
1126 (define-public bpp-phyl
1127 ;; The last release was in 2014 and the recommended way to install from source
1128 ;; is to clone the git repository, so we do this.
1129 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1130 (let ((commit "0c07167b629f68b569bf274d1ad0c4af83276ae2"))
1131 (package
1132 (name "bpp-phyl")
1133 (version (string-append "2.2.0-1." (string-take commit 7)))
1134 (source (origin
1135 (method git-fetch)
1136 (uri (git-reference
1137 (url "http://biopp.univ-montp2.fr/git/bpp-phyl")
1138 (commit commit)))
1139 (file-name (string-append name "-" version "-checkout"))
1140 (sha256
1141 (base32
1142 "1ssjgchzwj3iai26kyly7gwkdv8sk59nqhkb1wpap3sf5m6kyllh"))))
1143 (build-system cmake-build-system)
1144 (arguments
1145 `(#:parallel-build? #f
1146 ;; If out-of-source, test data is not copied into the build directory
1147 ;; so the tests fail.
1148 #:out-of-source? #f))
1149 (inputs
1150 `(("bpp-core" ,bpp-core)
1151 ("bpp-seq" ,bpp-seq)))
1152 (home-page "http://biopp.univ-montp2.fr")
1153 (synopsis "Bio++ phylogenetic Library")
1154 (description
1155 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1156 analysis, phylogenetics, molecular evolution and population genetics. This
1157 library provides phylogenetics-related modules.")
1158 (license license:cecill-c))))
1159
1160 (define-public bpp-popgen
1161 ;; The last release was in 2014 and the recommended way to install from source
1162 ;; is to clone the git repository, so we do this.
1163 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1164 (let ((commit "e472bac9b1a148803895d747cd6d0c5904f85d9f"))
1165 (package
1166 (name "bpp-popgen")
1167 (version (string-append "2.2.0-1." (string-take commit 7)))
1168 (source (origin
1169 (method git-fetch)
1170 (uri (git-reference
1171 (url "http://biopp.univ-montp2.fr/git/bpp-popgen")
1172 (commit commit)))
1173 (file-name (string-append name "-" version "-checkout"))
1174 (sha256
1175 (base32
1176 "0yn82dzn1n5629nzja68xfrhi655709rjanyryb36vzkmymy6dw5"))))
1177 (build-system cmake-build-system)
1178 (arguments
1179 `(#:parallel-build? #f
1180 #:tests? #f)) ; There are no tests.
1181 (inputs
1182 `(("bpp-core" ,bpp-core)
1183 ("bpp-seq" ,bpp-seq)))
1184 (home-page "http://biopp.univ-montp2.fr")
1185 (synopsis "Bio++ population genetics library")
1186 (description
1187 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1188 analysis, phylogenetics, molecular evolution and population genetics. This
1189 library provides population genetics-related modules.")
1190 (license license:cecill-c))))
1191
1192 (define-public bpp-seq
1193 ;; The last release was in 2014 and the recommended way to install from source
1194 ;; is to clone the git repository, so we do this.
1195 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1196 (let ((commit "6cfa07965ce152e5598a89df2fa80a75973bfa33"))
1197 (package
1198 (name "bpp-seq")
1199 (version (string-append "2.2.0-1." (string-take commit 7)))
1200 (source (origin
1201 (method git-fetch)
1202 (uri (git-reference
1203 (url "http://biopp.univ-montp2.fr/git/bpp-seq")
1204 (commit commit)))
1205 (file-name (string-append name "-" version "-checkout"))
1206 (sha256
1207 (base32
1208 "1nys5jq7jqvdg40d91wsmj3q2yzy4276cp7sp44n67p468f27zf2"))))
1209 (build-system cmake-build-system)
1210 (arguments
1211 `(#:parallel-build? #f
1212 ;; If out-of-source, test data is not copied into the build directory
1213 ;; so the tests fail.
1214 #:out-of-source? #f))
1215 (inputs
1216 `(("bpp-core" ,bpp-core)))
1217 (home-page "http://biopp.univ-montp2.fr")
1218 (synopsis "Bio++ sequence library")
1219 (description
1220 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1221 analysis, phylogenetics, molecular evolution and population genetics. This
1222 library provides sequence-related modules.")
1223 (license license:cecill-c))))
1224
1225 (define-public bppsuite
1226 ;; The last release was in 2014 and the recommended way to install from source
1227 ;; is to clone the git repository, so we do this.
1228 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1229 (let ((commit "c516147f57aa50961121cd505bed52cd7603698b"))
1230 (package
1231 (name "bppsuite")
1232 (version (string-append "2.2.0-1." (string-take commit 7)))
1233 (source (origin
1234 (method git-fetch)
1235 (uri (git-reference
1236 (url "http://biopp.univ-montp2.fr/git/bppsuite")
1237 (commit commit)))
1238 (file-name (string-append name "-" version "-checkout"))
1239 (sha256
1240 (base32
1241 "1y87pxvw0jxjizhq2dr9g2r91md45k1p9ih2sl1yy1y3p934l2kb"))))
1242 (build-system cmake-build-system)
1243 (arguments
1244 `(#:parallel-build? #f
1245 #:tests? #f)) ; There are no tests.
1246 (native-inputs
1247 `(("groff" ,groff)
1248 ("man-db" ,man-db)
1249 ("texinfo" ,texinfo)))
1250 (inputs
1251 `(("bpp-core" ,bpp-core)
1252 ("bpp-seq" ,bpp-seq)
1253 ("bpp-phyl" ,bpp-phyl)
1254 ("bpp-phyl" ,bpp-popgen)))
1255 (home-page "http://biopp.univ-montp2.fr")
1256 (synopsis "Bioinformatics tools written with the Bio++ libraries")
1257 (description
1258 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1259 analysis, phylogenetics, molecular evolution and population genetics. This
1260 package provides command line tools using the Bio++ library.")
1261 (license license:cecill-c))))
1262
1263 (define-public blast+
1264 (package
1265 (name "blast+")
1266 (version "2.7.1")
1267 (source (origin
1268 (method url-fetch)
1269 (uri (string-append
1270 "ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/"
1271 version "/ncbi-blast-" version "+-src.tar.gz"))
1272 (sha256
1273 (base32
1274 "1jlq0afxxgczpp35k6mxh8mn4jzq7vqcnaixk166sfj10wq8v9qh"))
1275 (modules '((guix build utils)))
1276 (snippet
1277 '(begin
1278 ;; Remove bundled bzip2, zlib and pcre.
1279 (delete-file-recursively "c++/src/util/compress/bzip2")
1280 (delete-file-recursively "c++/src/util/compress/zlib")
1281 (delete-file-recursively "c++/src/util/regexp")
1282 (substitute* "c++/src/util/compress/Makefile.in"
1283 (("bzip2 zlib api") "api"))
1284 ;; Remove useless msbuild directory
1285 (delete-file-recursively
1286 "c++/src/build-system/project_tree_builder/msbuild")
1287 #t))))
1288 (build-system gnu-build-system)
1289 (arguments
1290 `(;; There are two(!) tests for this massive library, and both fail with
1291 ;; "unparsable timing stats".
1292 ;; ERR [127] -- [serial/datatool] datatool.sh (unparsable timing stats)
1293 ;; ERR [127] -- [serial/datatool] datatool_xml.sh (unparsable timing stats)
1294 #:tests? #f
1295 #:out-of-source? #t
1296 #:parallel-build? #f ; not supported
1297 #:phases
1298 (modify-phases %standard-phases
1299 (add-before 'configure 'set-HOME
1300 ;; $HOME needs to be set at some point during the configure phase
1301 (lambda _ (setenv "HOME" "/tmp") #t))
1302 (add-after 'unpack 'enter-dir
1303 (lambda _ (chdir "c++") #t))
1304 (add-after 'enter-dir 'fix-build-system
1305 (lambda _
1306 (define (which* cmd)
1307 (cond ((string=? cmd "date")
1308 ;; make call to "date" deterministic
1309 "date -d @0")
1310 ((which cmd)
1311 => identity)
1312 (else
1313 (format (current-error-port)
1314 "WARNING: Unable to find absolute path for ~s~%"
1315 cmd)
1316 #f)))
1317
1318 ;; Rewrite hardcoded paths to various tools
1319 (substitute* (append '("src/build-system/configure.ac"
1320 "src/build-system/configure"
1321 "src/build-system/helpers/run_with_lock.c"
1322 "scripts/common/impl/if_diff.sh"
1323 "scripts/common/impl/run_with_lock.sh"
1324 "src/build-system/Makefile.configurables.real"
1325 "src/build-system/Makefile.in.top"
1326 "src/build-system/Makefile.meta.gmake=no"
1327 "src/build-system/Makefile.meta.in"
1328 "src/build-system/Makefile.meta_l"
1329 "src/build-system/Makefile.meta_p"
1330 "src/build-system/Makefile.meta_r"
1331 "src/build-system/Makefile.mk.in"
1332 "src/build-system/Makefile.requirements"
1333 "src/build-system/Makefile.rules_with_autodep.in")
1334 (find-files "scripts/common/check" "\\.sh$"))
1335 (("(/usr/bin/|/bin/)([a-z][-_.a-z]*)" all dir cmd)
1336 (or (which* cmd) all)))
1337
1338 (substitute* (find-files "src/build-system" "^config.*")
1339 (("LN_S=/bin/\\$LN_S") (string-append "LN_S=" (which "ln")))
1340 (("^PATH=.*") ""))
1341
1342 ;; rewrite "/var/tmp" in check script
1343 (substitute* "scripts/common/check/check_make_unix.sh"
1344 (("/var/tmp") "/tmp"))
1345
1346 ;; do not reset PATH
1347 (substitute* (find-files "scripts/common/impl/" "\\.sh$")
1348 (("^ *PATH=.*") "")
1349 (("action=/bin/") "action=")
1350 (("export PATH") ":"))
1351 #t))
1352 (replace 'configure
1353 (lambda* (#:key inputs outputs #:allow-other-keys)
1354 (let ((out (assoc-ref outputs "out"))
1355 (lib (string-append (assoc-ref outputs "lib") "/lib"))
1356 (include (string-append (assoc-ref outputs "include")
1357 "/include/ncbi-tools++")))
1358 ;; The 'configure' script doesn't recognize things like
1359 ;; '--enable-fast-install'.
1360 (invoke "./configure.orig"
1361 (string-append "--with-build-root=" (getcwd) "/build")
1362 (string-append "--prefix=" out)
1363 (string-append "--libdir=" lib)
1364 (string-append "--includedir=" include)
1365 (string-append "--with-bz2="
1366 (assoc-ref inputs "bzip2"))
1367 (string-append "--with-z="
1368 (assoc-ref inputs "zlib"))
1369 (string-append "--with-pcre="
1370 (assoc-ref inputs "pcre"))
1371 ;; Each library is built twice by default, once
1372 ;; with "-static" in its name, and again
1373 ;; without.
1374 "--without-static"
1375 "--with-dll")
1376 #t))))))
1377 (outputs '("out" ; 21 MB
1378 "lib" ; 226 MB
1379 "include")) ; 33 MB
1380 (inputs
1381 `(("bzip2" ,bzip2)
1382 ("lmdb" ,lmdb)
1383 ("zlib" ,zlib)
1384 ("pcre" ,pcre)
1385 ("perl" ,perl)
1386 ("python" ,python-wrapper)))
1387 (native-inputs
1388 `(("cpio" ,cpio)))
1389 (home-page "http://blast.ncbi.nlm.nih.gov")
1390 (synopsis "Basic local alignment search tool")
1391 (description
1392 "BLAST is a popular method of performing a DNA or protein sequence
1393 similarity search, using heuristics to produce results quickly. It also
1394 calculates an “expect value” that estimates how many matches would have
1395 occurred at a given score by chance, which can aid a user in judging how much
1396 confidence to have in an alignment.")
1397 ;; Most of the sources are in the public domain, with the following
1398 ;; exceptions:
1399 ;; * Expat:
1400 ;; * ./c++/include/util/bitset/
1401 ;; * ./c++/src/html/ncbi_menu*.js
1402 ;; * Boost license:
1403 ;; * ./c++/include/util/impl/floating_point_comparison.hpp
1404 ;; * LGPL 2+:
1405 ;; * ./c++/include/dbapi/driver/odbc/unix_odbc/
1406 ;; * ASL 2.0:
1407 ;; * ./c++/src/corelib/teamcity_*
1408 (license (list license:public-domain
1409 license:expat
1410 license:boost1.0
1411 license:lgpl2.0+
1412 license:asl2.0))))
1413
1414 (define-public bless
1415 (package
1416 (name "bless")
1417 (version "1p02")
1418 (source (origin
1419 (method url-fetch)
1420 (uri (string-append "mirror://sourceforge/bless-ec/bless.v"
1421 version ".tgz"))
1422 (sha256
1423 (base32
1424 "0rm0gw2s18dqwzzpl3c2x1z05ni2v0xz5dmfk3d33j6g4cgrlrdd"))
1425 (modules '((guix build utils)))
1426 (snippet
1427 `(begin
1428 ;; Remove bundled boost, pigz, zlib, and .git directory
1429 ;; FIXME: also remove bundled sources for murmurhash3 and
1430 ;; kmc once packaged.
1431 (delete-file-recursively "boost")
1432 (delete-file-recursively "pigz")
1433 (delete-file-recursively "google-sparsehash")
1434 (delete-file-recursively "zlib")
1435 (delete-file-recursively ".git")
1436 #t))))
1437 (build-system gnu-build-system)
1438 (arguments
1439 '(#:tests? #f ;no "check" target
1440 #:make-flags
1441 (list (string-append "ZLIB="
1442 (assoc-ref %build-inputs "zlib:static")
1443 "/lib/libz.a")
1444 (string-append "LDFLAGS="
1445 (string-join '("-lboost_filesystem"
1446 "-lboost_system"
1447 "-lboost_iostreams"
1448 "-lz"
1449 "-fopenmp"))))
1450 #:phases
1451 (modify-phases %standard-phases
1452 (add-after 'unpack 'do-not-build-bundled-pigz
1453 (lambda* (#:key inputs outputs #:allow-other-keys)
1454 (substitute* "Makefile"
1455 (("cd pigz/pigz-2.3.3; make") ""))
1456 #t))
1457 (add-after 'unpack 'patch-paths-to-executables
1458 (lambda* (#:key inputs outputs #:allow-other-keys)
1459 (substitute* "parse_args.cpp"
1460 (("kmc_binary = .*")
1461 (string-append "kmc_binary = \""
1462 (assoc-ref outputs "out")
1463 "/bin/kmc\";"))
1464 (("pigz_binary = .*")
1465 (string-append "pigz_binary = \""
1466 (assoc-ref inputs "pigz")
1467 "/bin/pigz\";")))
1468 #t))
1469 (replace 'install
1470 (lambda* (#:key outputs #:allow-other-keys)
1471 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
1472 (for-each (lambda (file)
1473 (install-file file bin))
1474 '("bless" "kmc/bin/kmc"))
1475 #t)))
1476 (delete 'configure))))
1477 (native-inputs
1478 `(("perl" ,perl)))
1479 (inputs
1480 `(("openmpi" ,openmpi)
1481 ("boost" ,boost)
1482 ("sparsehash" ,sparsehash)
1483 ("pigz" ,pigz)
1484 ("zlib:static" ,zlib "static")
1485 ("zlib" ,zlib)))
1486 (supported-systems '("x86_64-linux"))
1487 (home-page "https://sourceforge.net/p/bless-ec/wiki/Home/")
1488 (synopsis "Bloom-filter-based error correction tool for NGS reads")
1489 (description
1490 "@dfn{Bloom-filter-based error correction solution for high-throughput
1491 sequencing reads} (BLESS) uses a single minimum-sized bloom filter is a
1492 correction tool for genomic reads produced by @dfn{Next-generation
1493 sequencing} (NGS). BLESS produces accurate correction results with much less
1494 memory compared with previous solutions and is also able to tolerate a higher
1495 false-positive rate. BLESS can extend reads like DNA assemblers to correct
1496 errors at the end of reads.")
1497 (license license:gpl3+)))
1498
1499 (define-public bowtie
1500 (package
1501 (name "bowtie")
1502 (version "2.3.4.3")
1503 (source (origin
1504 (method git-fetch)
1505 (uri (git-reference
1506 (url "https://github.com/BenLangmead/bowtie2.git")
1507 (commit (string-append "v" version))))
1508 (file-name (git-file-name name version))
1509 (sha256
1510 (base32
1511 "1zl3cf327y2p7p03cavymbh7b00djc7lncfaqih33n96iy9q8ibp"))
1512 (modules '((guix build utils)))
1513 (snippet
1514 '(begin
1515 (substitute* "Makefile"
1516 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1517 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1518 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
1519 #t))))
1520 (build-system gnu-build-system)
1521 (arguments
1522 '(#:make-flags
1523 (list "allall"
1524 "WITH_TBB=1"
1525 (string-append "prefix=" (assoc-ref %outputs "out")))
1526 #:phases
1527 (modify-phases %standard-phases
1528 (delete 'configure)
1529 (replace 'check
1530 (lambda _
1531 (invoke "perl"
1532 "scripts/test/simple_tests.pl"
1533 "--bowtie2=./bowtie2"
1534 "--bowtie2-build=./bowtie2-build")
1535 #t)))))
1536 (inputs
1537 `(("tbb" ,tbb)
1538 ("zlib" ,zlib)
1539 ("python" ,python-wrapper)))
1540 (native-inputs
1541 `(("perl" ,perl)
1542 ("perl-clone" ,perl-clone)
1543 ("perl-test-deep" ,perl-test-deep)
1544 ("perl-test-simple" ,perl-test-simple)))
1545 (home-page "http://bowtie-bio.sourceforge.net/bowtie2/index.shtml")
1546 (synopsis "Fast and sensitive nucleotide sequence read aligner")
1547 (description
1548 "Bowtie 2 is a fast and memory-efficient tool for aligning sequencing
1549 reads to long reference sequences. It is particularly good at aligning reads
1550 of about 50 up to 100s or 1,000s of characters, and particularly good at
1551 aligning to relatively long (e.g. mammalian) genomes. Bowtie 2 indexes the
1552 genome with an FM Index to keep its memory footprint small: for the human
1553 genome, its memory footprint is typically around 3.2 GB. Bowtie 2 supports
1554 gapped, local, and paired-end alignment modes.")
1555 (supported-systems '("x86_64-linux"))
1556 (license license:gpl3+)))
1557
1558 (define-public bowtie1
1559 (package
1560 (name "bowtie1")
1561 (version "1.2.3")
1562 (source (origin
1563 (method url-fetch)
1564 (uri (string-append "mirror://sourceforge/bowtie-bio/bowtie/"
1565 version "/bowtie-src-x86_64.zip"))
1566 (sha256
1567 (base32
1568 "0vmiqdhc9dzyfy9sh6vgi7k9xy2hiw8g87vbamnc6cgpm179zsa4"))
1569 (modules '((guix build utils)))
1570 (snippet
1571 '(substitute* "Makefile"
1572 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1573 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1574 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\"")))))
1575 (build-system gnu-build-system)
1576 (arguments
1577 '(#:tests? #f ; no "check" target
1578 #:make-flags
1579 (list "all"
1580 (string-append "prefix=" (assoc-ref %outputs "out")))
1581 #:phases
1582 (modify-phases %standard-phases
1583 (delete 'configure))))
1584 (inputs
1585 `(("tbb" ,tbb)
1586 ("zlib" ,zlib)))
1587 (supported-systems '("x86_64-linux"))
1588 (home-page "http://bowtie-bio.sourceforge.net/index.shtml")
1589 (synopsis "Fast aligner for short nucleotide sequence reads")
1590 (description
1591 "Bowtie is a fast, memory-efficient short read aligner. It aligns short
1592 DNA sequences (reads) to the human genome at a rate of over 25 million 35-bp
1593 reads per hour. Bowtie indexes the genome with a Burrows-Wheeler index to
1594 keep its memory footprint small: typically about 2.2 GB for the human
1595 genome (2.9 GB for paired-end).")
1596 (license license:artistic2.0)))
1597
1598 (define-public tophat
1599 (package
1600 (name "tophat")
1601 (version "2.1.1")
1602 (source (origin
1603 (method url-fetch)
1604 (uri (string-append
1605 "http://ccb.jhu.edu/software/tophat/downloads/tophat-"
1606 version ".tar.gz"))
1607 (sha256
1608 (base32
1609 "19add02kv2xhd6ihd779dr7x35ggym3jqr0m5c4315i1yfb0p11p"))
1610 (modules '((guix build utils)))
1611 (snippet
1612 '(begin
1613 ;; Remove bundled SeqAn and samtools
1614 (delete-file-recursively "src/SeqAn-1.4.2")
1615 (delete-file-recursively "src/samtools-0.1.18")
1616 #t))))
1617 (build-system gnu-build-system)
1618 (arguments
1619 '(#:parallel-build? #f ; not supported
1620 #:phases
1621 (modify-phases %standard-phases
1622 (add-after 'unpack 'use-system-samtools
1623 (lambda* (#:key inputs #:allow-other-keys)
1624 (substitute* "src/Makefile.in"
1625 (("(noinst_LIBRARIES = )\\$\\(SAMLIB\\)" _ prefix) prefix)
1626 (("\\$\\(SAMPROG\\): \\$\\(SAMLIB\\)") "")
1627 (("SAMPROG = samtools_0\\.1\\.18") "")
1628 (("\\$\\(samtools_0_1_18_SOURCES\\)") "")
1629 (("am__EXEEXT_1 = samtools_0\\.1\\.18\\$\\(EXEEXT\\)") ""))
1630 (substitute* '("src/common.cpp"
1631 "src/tophat.py")
1632 (("samtools_0.1.18") (which "samtools")))
1633 (substitute* '("src/common.h"
1634 "src/bam2fastx.cpp")
1635 (("#include \"bam.h\"") "#include <samtools/bam.h>")
1636 (("#include \"sam.h\"") "#include <samtools/sam.h>"))
1637 (substitute* '("src/bwt_map.h"
1638 "src/map2gtf.h"
1639 "src/align_status.h")
1640 (("#include <bam.h>") "#include <samtools/bam.h>")
1641 (("#include <sam.h>") "#include <samtools/sam.h>"))
1642 #t)))))
1643 (native-inputs
1644 `(("gcc" ,gcc-5))) ;; doesn't build with later versions
1645 (inputs
1646 `(("boost" ,boost)
1647 ("bowtie" ,bowtie)
1648 ("ncurses" ,ncurses)
1649 ("perl" ,perl)
1650 ("python" ,python-2)
1651 ("samtools" ,samtools-0.1)
1652 ("seqan" ,seqan-1)
1653 ("zlib" ,zlib)))
1654 (home-page "https://ccb.jhu.edu/software/tophat/index.shtml")
1655 (synopsis "Spliced read mapper for RNA-Seq data")
1656 (description
1657 "TopHat is a fast splice junction mapper for nucleotide sequence
1658 reads produced by the RNA-Seq method. It aligns RNA-Seq reads to
1659 mammalian-sized genomes using the ultra high-throughput short read
1660 aligner Bowtie, and then analyzes the mapping results to identify
1661 splice junctions between exons.")
1662 ;; TopHat is released under the Boost Software License, Version 1.0
1663 ;; See https://github.com/infphilo/tophat/issues/11#issuecomment-121589893
1664 (license license:boost1.0)))
1665
1666 (define-public bwa
1667 (package
1668 (name "bwa")
1669 (version "0.7.17")
1670 (source (origin
1671 (method url-fetch)
1672 (uri (string-append
1673 "https://github.com/lh3/bwa/releases/download/v"
1674 version "/bwa-" version ".tar.bz2"))
1675 (sha256
1676 (base32
1677 "1zfhv2zg9v1icdlq4p9ssc8k01mca5d1bd87w71py2swfi74s6yy"))))
1678 (build-system gnu-build-system)
1679 (arguments
1680 '(#:tests? #f ;no "check" target
1681 #:phases
1682 (modify-phases %standard-phases
1683 (replace 'install
1684 (lambda* (#:key outputs #:allow-other-keys)
1685 (let ((bin (string-append
1686 (assoc-ref outputs "out") "/bin"))
1687 (doc (string-append
1688 (assoc-ref outputs "out") "/share/doc/bwa"))
1689 (man (string-append
1690 (assoc-ref outputs "out") "/share/man/man1")))
1691 (install-file "bwa" bin)
1692 (install-file "README.md" doc)
1693 (install-file "bwa.1" man))
1694 #t))
1695 ;; no "configure" script
1696 (delete 'configure))))
1697 (inputs `(("zlib" ,zlib)))
1698 ;; Non-portable SSE instructions are used so building fails on platforms
1699 ;; other than x86_64.
1700 (supported-systems '("x86_64-linux"))
1701 (home-page "http://bio-bwa.sourceforge.net/")
1702 (synopsis "Burrows-Wheeler sequence aligner")
1703 (description
1704 "BWA is a software package for mapping low-divergent sequences against a
1705 large reference genome, such as the human genome. It consists of three
1706 algorithms: BWA-backtrack, BWA-SW and BWA-MEM. The first algorithm is
1707 designed for Illumina sequence reads up to 100bp, while the rest two for
1708 longer sequences ranged from 70bp to 1Mbp. BWA-MEM and BWA-SW share similar
1709 features such as long-read support and split alignment, but BWA-MEM, which is
1710 the latest, is generally recommended for high-quality queries as it is faster
1711 and more accurate. BWA-MEM also has better performance than BWA-backtrack for
1712 70-100bp Illumina reads.")
1713 (license license:gpl3+)))
1714
1715 (define-public bwa-pssm
1716 (package (inherit bwa)
1717 (name "bwa-pssm")
1718 (version "0.5.11")
1719 (source (origin
1720 (method git-fetch)
1721 (uri (git-reference
1722 (url "https://github.com/pkerpedjiev/bwa-pssm.git")
1723 (commit version)))
1724 (file-name (git-file-name name version))
1725 (sha256
1726 (base32
1727 "076c4q0cdqz8jgylb067y9zmvxglppnzi3qiscn0xiypgc6lgb5r"))))
1728 (build-system gnu-build-system)
1729 (inputs
1730 `(("gdsl" ,gdsl)
1731 ("zlib" ,zlib)
1732 ("perl" ,perl)))
1733 (home-page "http://bwa-pssm.binf.ku.dk/")
1734 (synopsis "Burrows-Wheeler transform-based probabilistic short read mapper")
1735 (description
1736 "BWA-PSSM is a probabilistic short genomic sequence read aligner based on
1737 the use of @dfn{position specific scoring matrices} (PSSM). Like many of the
1738 existing aligners it is fast and sensitive. Unlike most other aligners,
1739 however, it is also adaptible in the sense that one can direct the alignment
1740 based on known biases within the data set. It is coded as a modification of
1741 the original BWA alignment program and shares the genome index structure as
1742 well as many of the command line options.")
1743 (license license:gpl3+)))
1744
1745 (define-public bwa-meth
1746 (package
1747 (name "bwa-meth")
1748 (version "0.2.2")
1749 (source (origin
1750 (method git-fetch)
1751 (uri (git-reference
1752 (url "https://github.com/brentp/bwa-meth.git")
1753 (commit (string-append "v" version))))
1754 (file-name (git-file-name name version))
1755 (sha256
1756 (base32
1757 "17j31i7zws5j7mhsq9x3qgkxly6mlmrgwhfq0qbflgxrmx04yaiz"))))
1758 (build-system python-build-system)
1759 (arguments
1760 `(#:phases
1761 (modify-phases %standard-phases
1762 (add-after 'unpack 'keep-references-to-bwa
1763 (lambda* (#:key inputs #:allow-other-keys)
1764 (substitute* "bwameth.py"
1765 (("bwa (mem|index)" _ command)
1766 (string-append (which "bwa") " " command))
1767 ;; There's an ill-advised check for "samtools" on PATH.
1768 (("^checkX.*") ""))
1769 #t)))))
1770 (inputs
1771 `(("bwa" ,bwa)))
1772 (native-inputs
1773 `(("python-toolshed" ,python-toolshed)))
1774 (home-page "https://github.com/brentp/bwa-meth")
1775 (synopsis "Fast and accurante alignment of BS-Seq reads")
1776 (description
1777 "BWA-Meth works for single-end reads and for paired-end reads from the
1778 directional protocol (most common). It uses the method employed by
1779 methylcoder and Bismark of in silico conversion of all C's to T's in both
1780 reference and reads. It recovers the original read (needed to tabulate
1781 methylation) by attaching it as a comment which BWA appends as a tag to the
1782 read. It performs favorably to existing aligners gauged by number of on and
1783 off-target reads for a capture method that targets CpG-rich region.")
1784 (license license:expat)))
1785
1786 (define-public python-bx-python
1787 (package
1788 (name "python-bx-python")
1789 (version "0.8.2")
1790 (source (origin
1791 (method url-fetch)
1792 (uri (pypi-uri "bx-python" version))
1793 (sha256
1794 (base32
1795 "11kksg2rbzihpmcid823xvg42xi88m7sz58rzk29abybkxy0rszs"))))
1796 (build-system python-build-system)
1797 ;; Tests fail because test data are not included
1798 (arguments '(#:tests? #f))
1799 (propagated-inputs
1800 `(("python-numpy" ,python-numpy)
1801 ("python-six" ,python-six)))
1802 (inputs
1803 `(("zlib" ,zlib)))
1804 (native-inputs
1805 `(("python-lzo" ,python-lzo)
1806 ("python-nose" ,python-nose)
1807 ("python-cython" ,python-cython)))
1808 (home-page "https://github.com/bxlab/bx-python")
1809 (synopsis "Tools for manipulating biological data")
1810 (description
1811 "bx-python provides tools for manipulating biological data, particularly
1812 multiple sequence alignments.")
1813 (license license:expat)))
1814
1815 (define-public python2-bx-python
1816 (package-with-python2 python-bx-python))
1817
1818 (define-public python-pysam
1819 (package
1820 (name "python-pysam")
1821 (version "0.15.1")
1822 (source (origin
1823 (method git-fetch)
1824 ;; Test data is missing on PyPi.
1825 (uri (git-reference
1826 (url "https://github.com/pysam-developers/pysam.git")
1827 (commit (string-append "v" version))))
1828 (file-name (git-file-name name version))
1829 (sha256
1830 (base32
1831 "1vj367w6xbn9bpmksm162l1aipf7cj97h1q83y7jcpm33ihwpf7x"))
1832 (modules '((guix build utils)))
1833 (snippet '(begin
1834 ;; Drop bundled htslib. TODO: Also remove samtools
1835 ;; and bcftools.
1836 (delete-file-recursively "htslib")
1837 #t))))
1838 (build-system python-build-system)
1839 (arguments
1840 `(#:modules ((ice-9 ftw)
1841 (srfi srfi-26)
1842 (guix build python-build-system)
1843 (guix build utils))
1844 #:phases
1845 (modify-phases %standard-phases
1846 (add-before 'build 'set-flags
1847 (lambda* (#:key inputs #:allow-other-keys)
1848 (setenv "HTSLIB_MODE" "external")
1849 (setenv "HTSLIB_LIBRARY_DIR"
1850 (string-append (assoc-ref inputs "htslib") "/lib"))
1851 (setenv "HTSLIB_INCLUDE_DIR"
1852 (string-append (assoc-ref inputs "htslib") "/include"))
1853 (setenv "LDFLAGS" "-lncurses")
1854 (setenv "CFLAGS" "-D_CURSES_LIB=1")
1855 #t))
1856 (replace 'check
1857 (lambda* (#:key inputs outputs #:allow-other-keys)
1858 ;; This file contains tests that require a connection to the
1859 ;; internet.
1860 (delete-file "tests/tabix_test.py")
1861 ;; FIXME: This test fails
1862 (delete-file "tests/AlignmentFile_test.py")
1863 ;; Add first subdirectory of "build" directory to PYTHONPATH.
1864 (setenv "PYTHONPATH"
1865 (string-append
1866 (getenv "PYTHONPATH")
1867 ":" (getcwd) "/build/"
1868 (car (scandir "build"
1869 (negate (cut string-prefix? "." <>))))))
1870 ;; Step out of source dir so python does not import from CWD.
1871 (with-directory-excursion "tests"
1872 (setenv "HOME" "/tmp")
1873 (invoke "make" "-C" "pysam_data")
1874 (invoke "make" "-C" "cbcf_data")
1875 ;; Running nosetests without explicitly asking for a single
1876 ;; process leads to a crash. Running with multiple processes
1877 ;; fails because the tests are not designed to run in parallel.
1878
1879 ;; FIXME: tests keep timing out on some systems.
1880 (invoke "nosetests" "-v" "--processes" "1")))))))
1881 (propagated-inputs
1882 `(("htslib" ,htslib))) ; Included from installed header files.
1883 (inputs
1884 `(("ncurses" ,ncurses)
1885 ("curl" ,curl)
1886 ("zlib" ,zlib)))
1887 (native-inputs
1888 `(("python-cython" ,python-cython)
1889 ;; Dependencies below are are for tests only.
1890 ("samtools" ,samtools)
1891 ("bcftools" ,bcftools)
1892 ("python-nose" ,python-nose)))
1893 (home-page "https://github.com/pysam-developers/pysam")
1894 (synopsis "Python bindings to the SAMtools C API")
1895 (description
1896 "Pysam is a Python module for reading and manipulating files in the
1897 SAM/BAM format. Pysam is a lightweight wrapper of the SAMtools C API. It
1898 also includes an interface for tabix.")
1899 (license license:expat)))
1900
1901 (define-public python2-pysam
1902 (package-with-python2 python-pysam))
1903
1904 (define-public python-twobitreader
1905 (package
1906 (name "python-twobitreader")
1907 (version "3.1.6")
1908 (source (origin
1909 (method git-fetch)
1910 (uri (git-reference
1911 (url "https://github.com/benjschiller/twobitreader")
1912 (commit version)))
1913 (file-name (git-file-name name version))
1914 (sha256
1915 (base32
1916 "1qbxvv1h58cismbk1anpjrkpghsaiy64a11ir3lhy6qch6xf8n62"))))
1917 (build-system python-build-system)
1918 ;; Tests are not included
1919 (arguments '(#:tests? #f))
1920 (native-inputs
1921 `(("python-sphinx" ,python-sphinx)))
1922 (home-page "https://github.com/benjschiller/twobitreader")
1923 (synopsis "Python library for reading .2bit files")
1924 (description
1925 "twobitreader is a Python library for reading .2bit files as used by the
1926 UCSC genome browser.")
1927 (license license:artistic2.0)))
1928
1929 (define-public python2-twobitreader
1930 (package-with-python2 python-twobitreader))
1931
1932 (define-public python-plastid
1933 (package
1934 (name "python-plastid")
1935 (version "0.4.8")
1936 (source (origin
1937 (method url-fetch)
1938 (uri (pypi-uri "plastid" version))
1939 (sha256
1940 (base32
1941 "0l24dd3q66if8yj042m4s0g95n6acn7im1imqd3p6h8ns43kxhj8"))))
1942 (build-system python-build-system)
1943 (arguments
1944 ;; Some test files are not included.
1945 `(#:tests? #f))
1946 (propagated-inputs
1947 `(("python-numpy" ,python-numpy)
1948 ("python-scipy" ,python-scipy)
1949 ("python-pandas" ,python-pandas)
1950 ("python-pysam" ,python-pysam)
1951 ("python-matplotlib" ,python-matplotlib)
1952 ("python-biopython" ,python-biopython)
1953 ("python-twobitreader" ,python-twobitreader)
1954 ("python-termcolor" ,python-termcolor)))
1955 (native-inputs
1956 `(("python-cython" ,python-cython)
1957 ("python-nose" ,python-nose)))
1958 (home-page "https://github.com/joshuagryphon/plastid")
1959 (synopsis "Python library for genomic analysis")
1960 (description
1961 "plastid is a Python library for genomic analysis – in particular,
1962 high-throughput sequencing data – with an emphasis on simplicity.")
1963 (license license:bsd-3)))
1964
1965 (define-public python2-plastid
1966 (package-with-python2 python-plastid))
1967
1968 (define-public tetoolkit
1969 (package
1970 (name "tetoolkit")
1971 (version "2.0.3")
1972 (source (origin
1973 (method git-fetch)
1974 (uri (git-reference
1975 (url "https://github.com/mhammell-laboratory/tetoolkit.git")
1976 (commit version)))
1977 (file-name (git-file-name name version))
1978 (sha256
1979 (base32
1980 "1yzi0kfpzip8zpjb82x1ik6h22yzfyjiz2dv85v6as2awwqvk807"))))
1981 (build-system python-build-system)
1982 (arguments
1983 `(#:python ,python-2 ; not guaranteed to work with Python 3
1984 #:phases
1985 (modify-phases %standard-phases
1986 (add-after 'unpack 'make-writable
1987 (lambda _
1988 (for-each make-file-writable (find-files "."))
1989 #t))
1990 (add-after 'unpack 'patch-invocations
1991 (lambda* (#:key inputs #:allow-other-keys)
1992 (substitute* '("bin/TEtranscripts"
1993 "bin/TEcount")
1994 (("'sort ")
1995 (string-append "'" (which "sort") " "))
1996 (("'rm -f ")
1997 (string-append "'" (which "rm") " -f "))
1998 (("'Rscript'") (string-append "'" (which "Rscript") "'")))
1999 (substitute* "TEToolkit/IO/ReadInputs.py"
2000 (("BamToBED") (which "bamToBed")))
2001 (substitute* "TEToolkit/Normalization.py"
2002 (("\"Rscript\"")
2003 (string-append "\"" (which "Rscript") "\"")))
2004 #t))
2005 (add-after 'install 'wrap-program
2006 (lambda* (#:key outputs #:allow-other-keys)
2007 ;; Make sure the executables find R packages.
2008 (let ((out (assoc-ref outputs "out")))
2009 (for-each
2010 (lambda (script)
2011 (wrap-program (string-append out "/bin/" script)
2012 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
2013 '("TEtranscripts"
2014 "TEcount")))
2015 #t)))))
2016 (inputs
2017 `(("coreutils" ,coreutils)
2018 ("bedtools" ,bedtools)
2019 ("python-argparse" ,python2-argparse)
2020 ("python-pysam" ,python2-pysam)
2021 ("r-minimal" ,r-minimal)
2022 ("r-deseq2" ,r-deseq2)))
2023 (home-page "https://github.com/mhammell-laboratory/tetoolkit")
2024 (synopsis "Transposable elements in differential enrichment analysis")
2025 (description
2026 "This is package for including transposable elements in differential
2027 enrichment analysis of sequencing datasets. TEtranscripts and TEcount take
2028 RNA-seq (and similar data) and annotates reads to both genes and transposable
2029 elements. TEtranscripts then performs differential analysis using DESeq2.
2030 Note that TEtranscripts and TEcount rely on specially curated GTF files, which
2031 are not included due to their size.")
2032 (license license:gpl3+)))
2033
2034 (define-public cd-hit
2035 (package
2036 (name "cd-hit")
2037 (version "4.6.8")
2038 (source (origin
2039 (method url-fetch)
2040 (uri (string-append "https://github.com/weizhongli/cdhit"
2041 "/releases/download/V" version
2042 "/cd-hit-v" version
2043 "-2017-0621-source.tar.gz"))
2044 (sha256
2045 (base32
2046 "1b4mwm2520ixjbw57sil20f9iixzw4bkdqqwgg1fc3pzm6rz4zmn"))))
2047 (build-system gnu-build-system)
2048 (arguments
2049 `(#:tests? #f ; there are no tests
2050 #:make-flags
2051 ;; Executables are copied directly to the PREFIX.
2052 (list (string-append "PREFIX=" (assoc-ref %outputs "out") "/bin")
2053 ;; Support longer sequences (e.g. Pacbio sequences)
2054 "MAX_SEQ=60000000")
2055 #:phases
2056 (modify-phases %standard-phases
2057 ;; No "configure" script
2058 (delete 'configure)
2059 ;; Remove sources of non-determinism
2060 (add-after 'unpack 'be-timeless
2061 (lambda _
2062 (substitute* "cdhit-utility.c++"
2063 ((" \\(built on \" __DATE__ \"\\)") ""))
2064 (substitute* "cdhit-common.c++"
2065 (("__DATE__") "\"0\"")
2066 (("\", %s, \" __TIME__ \"\\\\n\", date") ""))
2067 #t))
2068 ;; The "install" target does not create the target directory.
2069 (add-before 'install 'create-target-dir
2070 (lambda* (#:key outputs #:allow-other-keys)
2071 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
2072 #t)))))
2073 (inputs
2074 `(("perl" ,perl)))
2075 (home-page "http://weizhongli-lab.org/cd-hit/")
2076 (synopsis "Cluster and compare protein or nucleotide sequences")
2077 (description
2078 "CD-HIT is a program for clustering and comparing protein or nucleotide
2079 sequences. CD-HIT is designed to be fast and handle extremely large
2080 databases.")
2081 ;; The manual says: "It can be copied under the GNU General Public License
2082 ;; version 2 (GPLv2)."
2083 (license license:gpl2)))
2084
2085 (define-public clipper
2086 (package
2087 (name "clipper")
2088 (version "1.2.1")
2089 (source (origin
2090 (method git-fetch)
2091 (uri (git-reference
2092 (url "https://github.com/YeoLab/clipper.git")
2093 (commit version)))
2094 (file-name (git-file-name name version))
2095 (sha256
2096 (base32
2097 "0fja1rj84wp9vpj8rxpj3n8zqzcqq454m904yp9as1w4phccirjb"))
2098 (modules '((guix build utils)))
2099 (snippet
2100 '(begin
2101 ;; remove unnecessary setup dependency
2102 (substitute* "setup.py"
2103 (("setup_requires = .*") ""))
2104 #t))))
2105 (build-system python-build-system)
2106 (arguments
2107 `(#:python ,python-2 ; only Python 2 is supported
2108 #:phases
2109 (modify-phases %standard-phases
2110 ;; This is fixed in upstream commit
2111 ;; f6c2990198f906bf97730d95695b4bd5a6d01ddb.
2112 (add-after 'unpack 'fix-typo
2113 (lambda _
2114 (substitute* "clipper/src/readsToWiggle.pyx"
2115 (("^sc.*") ""))
2116 #t)))))
2117 (inputs
2118 `(("htseq" ,python2-htseq)
2119 ("python-pybedtools" ,python2-pybedtools)
2120 ("python-cython" ,python2-cython)
2121 ("python-scikit-learn" ,python2-scikit-learn)
2122 ("python-matplotlib" ,python2-matplotlib)
2123 ("python-pandas" ,python2-pandas)
2124 ("python-pysam" ,python2-pysam)
2125 ("python-numpy" ,python2-numpy)
2126 ("python-scipy" ,python2-scipy)))
2127 (native-inputs
2128 `(("python-mock" ,python2-mock) ; for tests
2129 ("python-nose" ,python2-nose) ; for tests
2130 ("python-pytz" ,python2-pytz))) ; for tests
2131 (home-page "https://github.com/YeoLab/clipper")
2132 (synopsis "CLIP peak enrichment recognition")
2133 (description
2134 "CLIPper is a tool to define peaks in CLIP-seq datasets.")
2135 (license license:gpl2)))
2136
2137 (define-public codingquarry
2138 (package
2139 (name "codingquarry")
2140 (version "2.0")
2141 (source (origin
2142 (method url-fetch)
2143 (uri (string-append
2144 "mirror://sourceforge/codingquarry/CodingQuarry_v"
2145 version ".tar.gz"))
2146 (sha256
2147 (base32
2148 "0115hkjflsnfzn36xppwf9h9avfxlavr43djqmshkkzbgjzsz60i"))))
2149 (build-system gnu-build-system)
2150 (arguments
2151 '(#:tests? #f ; no "check" target
2152 #:phases
2153 (modify-phases %standard-phases
2154 (delete 'configure)
2155 (replace 'install
2156 (lambda* (#:key outputs #:allow-other-keys)
2157 (let* ((out (assoc-ref outputs "out"))
2158 (bin (string-append out "/bin"))
2159 (doc (string-append out "/share/doc/codingquarry")))
2160 (install-file "INSTRUCTIONS.pdf" doc)
2161 (copy-recursively "QuarryFiles"
2162 (string-append out "/QuarryFiles"))
2163 (install-file "CodingQuarry" bin)
2164 (install-file "CufflinksGTF_to_CodingQuarryGFF3.py" bin))
2165 #t)))))
2166 (inputs `(("openmpi" ,openmpi)))
2167 (native-search-paths
2168 (list (search-path-specification
2169 (variable "QUARRY_PATH")
2170 (files '("QuarryFiles")))))
2171 (native-inputs `(("python" ,python-2))) ; Only Python 2 is supported
2172 (synopsis "Fungal gene predictor")
2173 (description "CodingQuarry is a highly accurate, self-training GHMM fungal
2174 gene predictor designed to work with assembled, aligned RNA-seq transcripts.")
2175 (home-page "https://sourceforge.net/projects/codingquarry/")
2176 (license license:gpl3+)))
2177
2178 (define-public couger
2179 (package
2180 (name "couger")
2181 (version "1.8.2")
2182 (source (origin
2183 (method url-fetch)
2184 (uri (string-append
2185 "http://couger.oit.duke.edu/static/assets/COUGER"
2186 version ".zip"))
2187 (sha256
2188 (base32
2189 "04p2b14nmhzxw5h72mpzdhalv21bx4w9b87z0wpw0xzxpysyncmq"))))
2190 (build-system gnu-build-system)
2191 (arguments
2192 `(#:tests? #f
2193 #:phases
2194 (modify-phases %standard-phases
2195 (delete 'configure)
2196 (delete 'build)
2197 (replace
2198 'install
2199 (lambda* (#:key outputs #:allow-other-keys)
2200 (let* ((out (assoc-ref outputs "out"))
2201 (bin (string-append out "/bin")))
2202 (copy-recursively "src" (string-append out "/src"))
2203 (mkdir bin)
2204 ;; Add "src" directory to module lookup path.
2205 (substitute* "couger"
2206 (("from argparse")
2207 (string-append "import sys\nsys.path.append(\""
2208 out "\")\nfrom argparse")))
2209 (install-file "couger" bin))
2210 #t))
2211 (add-after
2212 'install 'wrap-program
2213 (lambda* (#:key inputs outputs #:allow-other-keys)
2214 ;; Make sure 'couger' runs with the correct PYTHONPATH.
2215 (let* ((out (assoc-ref outputs "out"))
2216 (path (getenv "PYTHONPATH")))
2217 (wrap-program (string-append out "/bin/couger")
2218 `("PYTHONPATH" ":" prefix (,path))))
2219 #t)))))
2220 (inputs
2221 `(("python" ,python-2)
2222 ("python2-pillow" ,python2-pillow)
2223 ("python2-numpy" ,python2-numpy)
2224 ("python2-scipy" ,python2-scipy)
2225 ("python2-matplotlib" ,python2-matplotlib)))
2226 (propagated-inputs
2227 `(("r-minimal" ,r-minimal)
2228 ("libsvm" ,libsvm)
2229 ("randomjungle" ,randomjungle)))
2230 (native-inputs
2231 `(("unzip" ,unzip)))
2232 (home-page "http://couger.oit.duke.edu")
2233 (synopsis "Identify co-factors in sets of genomic regions")
2234 (description
2235 "COUGER can be applied to any two sets of genomic regions bound by
2236 paralogous TFs (e.g., regions derived from ChIP-seq experiments) to identify
2237 putative co-factors that provide specificity to each TF. The framework
2238 determines the genomic targets uniquely-bound by each TF, and identifies a
2239 small set of co-factors that best explain the in vivo binding differences
2240 between the two TFs.
2241
2242 COUGER uses classification algorithms (support vector machines and random
2243 forests) with features that reflect the DNA binding specificities of putative
2244 co-factors. The features are generated either from high-throughput TF-DNA
2245 binding data (from protein binding microarray experiments), or from large
2246 collections of DNA motifs.")
2247 (license license:gpl3+)))
2248
2249 (define-public clustal-omega
2250 (package
2251 (name "clustal-omega")
2252 (version "1.2.4")
2253 (source (origin
2254 (method url-fetch)
2255 (uri (string-append "http://www.clustal.org/omega/clustal-omega-"
2256 version ".tar.gz"))
2257 (sha256
2258 (base32
2259 "1vm30mzncwdv881vrcwg11vzvrsmwy4wg80j5i0lcfk6dlld50w6"))))
2260 (build-system gnu-build-system)
2261 (inputs
2262 `(("argtable" ,argtable)))
2263 (home-page "http://www.clustal.org/omega/")
2264 (synopsis "Multiple sequence aligner for protein and DNA/RNA")
2265 (description
2266 "Clustal-Omega is a general purpose multiple sequence alignment (MSA)
2267 program for protein and DNA/RNA. It produces high quality MSAs and is capable
2268 of handling data-sets of hundreds of thousands of sequences in reasonable
2269 time.")
2270 (license license:gpl2+)))
2271
2272 (define-public crossmap
2273 (package
2274 (name "crossmap")
2275 (version "0.2.9")
2276 (source (origin
2277 (method url-fetch)
2278 (uri (pypi-uri "CrossMap" version))
2279 (sha256
2280 (base32
2281 "1byhclrqnqpvc1rqkfh4jwj6yhn0x9y7jk47i0qcjlhk0pjkw92p"))))
2282 (build-system python-build-system)
2283 (arguments `(#:python ,python-2))
2284 (inputs
2285 `(("python-bx-python" ,python2-bx-python)
2286 ("python-numpy" ,python2-numpy)
2287 ("python-pysam" ,python2-pysam)
2288 ("zlib" ,zlib)))
2289 (native-inputs
2290 `(("python-cython" ,python2-cython)
2291 ("python-nose" ,python2-nose)))
2292 (home-page "http://crossmap.sourceforge.net/")
2293 (synopsis "Convert genome coordinates between assemblies")
2294 (description
2295 "CrossMap is a program for conversion of genome coordinates or annotation
2296 files between different genome assemblies. It supports most commonly used
2297 file formats including SAM/BAM, Wiggle/BigWig, BED, GFF/GTF, VCF.")
2298 (license license:gpl2+)))
2299
2300 (define-public python-dnaio
2301 (package
2302 (name "python-dnaio")
2303 (version "0.3")
2304 (source
2305 (origin
2306 (method url-fetch)
2307 (uri (pypi-uri "dnaio" version))
2308 (sha256
2309 (base32
2310 "0f16m7hdlm0fz1n7y5asy0v9ghyrq17ni1p9iybq22ddzyd49r27"))))
2311 (build-system python-build-system)
2312 (native-inputs
2313 `(("python-cython" ,python-cython)
2314 ("python-pytest" ,python-pytest)
2315 ("python-xopen" ,python-xopen)))
2316 (home-page "https://github.com/marcelm/dnaio/")
2317 (synopsis "Read FASTA and FASTQ files efficiently")
2318 (description
2319 "dnaio is a Python library for fast parsing of FASTQ and also FASTA
2320 files. The code was previously part of the cutadapt tool.")
2321 (license license:expat)))
2322
2323 (define-public cutadapt
2324 (package
2325 (name "cutadapt")
2326 (version "2.1")
2327 (source (origin
2328 (method url-fetch)
2329 (uri (pypi-uri "cutadapt" version))
2330 (sha256
2331 (base32
2332 "1vqmsfkm6llxzmsz9wcfcvzx9a9f8iabvwik2rbyn7nc4wm25z89"))))
2333 (build-system python-build-system)
2334 (inputs
2335 `(("python-dnaio" ,python-dnaio)
2336 ("python-xopen" ,python-xopen)))
2337 (native-inputs
2338 `(("python-cython" ,python-cython)
2339 ("python-pytest" ,python-pytest)
2340 ("python-setuptools-scm" ,python-setuptools-scm)))
2341 (home-page "https://cutadapt.readthedocs.io/en/stable/")
2342 (synopsis "Remove adapter sequences from nucleotide sequencing reads")
2343 (description
2344 "Cutadapt finds and removes adapter sequences, primers, poly-A tails and
2345 other types of unwanted sequence from high-throughput sequencing reads.")
2346 (license license:expat)))
2347
2348 (define-public libbigwig
2349 (package
2350 (name "libbigwig")
2351 (version "0.4.4")
2352 (source (origin
2353 (method git-fetch)
2354 (uri (git-reference
2355 (url "https://github.com/dpryan79/libBigWig.git")
2356 (commit version)))
2357 (file-name (git-file-name name version))
2358 (sha256
2359 (base32
2360 "09693dmf1scdac5pyq6qyn8b4mcipvnmc370k9a5z41z81m3dcsj"))))
2361 (build-system gnu-build-system)
2362 (arguments
2363 `(#:test-target "test"
2364 #:tests? #f ; tests require access to the web
2365 #:make-flags
2366 (list "CC=gcc"
2367 (string-append "prefix=" (assoc-ref %outputs "out")))
2368 #:phases
2369 (modify-phases %standard-phases
2370 (delete 'configure))))
2371 (inputs
2372 `(("zlib" ,zlib)
2373 ("curl" ,curl)))
2374 (native-inputs
2375 `(("doxygen" ,doxygen)
2376 ;; Need for tests
2377 ("python" ,python-2)))
2378 (home-page "https://github.com/dpryan79/libBigWig")
2379 (synopsis "C library for handling bigWig files")
2380 (description
2381 "This package provides a C library for parsing local and remote BigWig
2382 files.")
2383 (license license:expat)))
2384
2385 (define-public python-pybigwig
2386 (package
2387 (name "python-pybigwig")
2388 (version "0.3.12")
2389 (source (origin
2390 (method url-fetch)
2391 (uri (pypi-uri "pyBigWig" version))
2392 (sha256
2393 (base32
2394 "00w4kfnm2c5l7wdwr2nj1z5djv8kzgf7h1zhsgv6njff1rwr26g0"))
2395 (modules '((guix build utils)))
2396 (snippet
2397 '(begin
2398 ;; Delete bundled libBigWig sources
2399 (delete-file-recursively "libBigWig")
2400 #t))))
2401 (build-system python-build-system)
2402 (arguments
2403 `(#:phases
2404 (modify-phases %standard-phases
2405 (add-after 'unpack 'link-with-libBigWig
2406 (lambda* (#:key inputs #:allow-other-keys)
2407 (substitute* "setup.py"
2408 (("libs=\\[") "libs=[\"BigWig\", "))
2409 #t)))))
2410 (propagated-inputs
2411 `(("python-numpy" ,python-numpy)))
2412 (inputs
2413 `(("libbigwig" ,libbigwig)
2414 ("zlib" ,zlib)
2415 ("curl" ,curl)))
2416 (home-page "https://github.com/dpryan79/pyBigWig")
2417 (synopsis "Access bigWig files in Python using libBigWig")
2418 (description
2419 "This package provides Python bindings to the libBigWig library for
2420 accessing bigWig files.")
2421 (license license:expat)))
2422
2423 (define-public python2-pybigwig
2424 (package-with-python2 python-pybigwig))
2425
2426 (define-public python-dendropy
2427 (package
2428 (name "python-dendropy")
2429 (version "4.4.0")
2430 (source
2431 (origin
2432 (method git-fetch)
2433 ;; Source from GitHub so that tests are included.
2434 (uri (git-reference
2435 (url "https://github.com/jeetsukumaran/DendroPy.git")
2436 (commit (string-append "v" version))))
2437 (file-name (git-file-name name version))
2438 (sha256
2439 (base32
2440 "097hfyv2kaf4x92i4rjx0paw2cncxap48qivv8zxng4z7nhid0x9"))))
2441 (build-system python-build-system)
2442 (home-page "http://packages.python.org/DendroPy/")
2443 (synopsis "Library for phylogenetics and phylogenetic computing")
2444 (description
2445 "DendroPy is a library for phylogenetics and phylogenetic computing: reading,
2446 writing, simulation, processing and manipulation of phylogenetic
2447 trees (phylogenies) and characters.")
2448 (license license:bsd-3)))
2449
2450 (define-public python2-dendropy
2451 (let ((base (package-with-python2 python-dendropy)))
2452 (package
2453 (inherit base)
2454 (arguments
2455 `(#:phases
2456 (modify-phases %standard-phases
2457 (add-after 'unpack 'remove-failing-test
2458 (lambda _
2459 ;; This test fails when the full test suite is run, as documented
2460 ;; at https://github.com/jeetsukumaran/DendroPy/issues/74
2461 (substitute* "tests/test_dataio_nexml_reader_tree_list.py"
2462 (("test_collection_comments_and_annotations")
2463 "do_not_test_collection_comments_and_annotations"))
2464 #t)))
2465 ,@(package-arguments base))))))
2466
2467 (define-public python-py2bit
2468 (package
2469 (name "python-py2bit")
2470 (version "0.3.0")
2471 (source
2472 (origin
2473 (method url-fetch)
2474 (uri (pypi-uri "py2bit" version))
2475 (sha256
2476 (base32
2477 "1vw2nvw1yrl7ikkqsqs1pg239yr5nspvd969r1x9arms1k25a1a5"))))
2478 (build-system python-build-system)
2479 (home-page "https://github.com/dpryan79/py2bit")
2480 (synopsis "Access 2bit files using lib2bit")
2481 (description
2482 "This package provides Python bindings for lib2bit to access 2bit files
2483 with Python.")
2484 (license license:expat)))
2485
2486 (define-public deeptools
2487 (package
2488 (name "deeptools")
2489 (version "3.1.3")
2490 (source (origin
2491 (method git-fetch)
2492 (uri (git-reference
2493 (url "https://github.com/deeptools/deepTools.git")
2494 (commit version)))
2495 (file-name (git-file-name name version))
2496 (sha256
2497 (base32
2498 "1vggnf52g6q2vifdl4cyi7s2fnfqq0ky2zrkj5zv2qfzsc3p3siw"))))
2499 (build-system python-build-system)
2500 (arguments
2501 `(#:phases
2502 (modify-phases %standard-phases
2503 ;; This phase fails, but it's not needed.
2504 (delete 'reset-gzip-timestamps))))
2505 (inputs
2506 `(("python-plotly" ,python-plotly)
2507 ("python-scipy" ,python-scipy)
2508 ("python-numpy" ,python-numpy)
2509 ("python-numpydoc" ,python-numpydoc)
2510 ("python-matplotlib" ,python-matplotlib)
2511 ("python-pysam" ,python-pysam)
2512 ("python-py2bit" ,python-py2bit)
2513 ("python-pybigwig" ,python-pybigwig)))
2514 (native-inputs
2515 `(("python-mock" ,python-mock) ;for tests
2516 ("python-nose" ,python-nose) ;for tests
2517 ("python-pytz" ,python-pytz))) ;for tests
2518 (home-page "https://github.com/deeptools/deepTools")
2519 (synopsis "Tools for normalizing and visualizing deep-sequencing data")
2520 (description
2521 "DeepTools addresses the challenge of handling the large amounts of data
2522 that are now routinely generated from DNA sequencing centers. To do so,
2523 deepTools contains useful modules to process the mapped reads data to create
2524 coverage files in standard bedGraph and bigWig file formats. By doing so,
2525 deepTools allows the creation of normalized coverage files or the comparison
2526 between two files (for example, treatment and control). Finally, using such
2527 normalized and standardized files, multiple visualizations can be created to
2528 identify enrichments with functional annotations of the genome.")
2529 (license license:gpl3+)))
2530
2531 (define-public delly
2532 (package
2533 (name "delly")
2534 (version "0.7.9")
2535 (source (origin
2536 (method git-fetch)
2537 (uri (git-reference
2538 (url "https://github.com/dellytools/delly.git")
2539 (commit (string-append "v" version))))
2540 (file-name (git-file-name name version))
2541 (sha256
2542 (base32 "034jqsxswy9gqdh2zkgc1js99qkv75ks4xvzgmh0284sraagv61z"))
2543 (modules '((guix build utils)))
2544 (snippet
2545 '(begin
2546 (delete-file-recursively "src/htslib")
2547 #t))))
2548 (build-system gnu-build-system)
2549 (arguments
2550 `(#:tests? #f ; There are no tests to run.
2551 #:make-flags
2552 (list "PARALLEL=1" ; Allow parallel execution at run-time.
2553 (string-append "prefix=" (assoc-ref %outputs "out")))
2554 #:phases
2555 (modify-phases %standard-phases
2556 (delete 'configure) ; There is no configure phase.
2557 (add-after 'install 'install-templates
2558 (lambda* (#:key outputs #:allow-other-keys)
2559 (let ((templates (string-append (assoc-ref outputs "out")
2560 "/share/delly/templates")))
2561 (mkdir-p templates)
2562 (copy-recursively "excludeTemplates" templates)
2563 #t))))))
2564 (inputs
2565 `(("boost" ,boost)
2566 ("htslib" ,htslib)
2567 ("zlib" ,zlib)
2568 ("bzip2" ,bzip2)))
2569 (home-page "https://github.com/dellytools/delly")
2570 (synopsis "Integrated structural variant prediction method")
2571 (description "Delly is an integrated structural variant prediction method
2572 that can discover and genotype deletions, tandem duplications, inversions and
2573 translocations at single-nucleotide resolution in short-read massively parallel
2574 sequencing data. It uses paired-ends and split-reads to sensitively and
2575 accurately delineate genomic rearrangements throughout the genome.")
2576 (license license:gpl3+)))
2577
2578 (define-public diamond
2579 (package
2580 (name "diamond")
2581 (version "0.9.22")
2582 (source (origin
2583 (method git-fetch)
2584 (uri (git-reference
2585 (url "https://github.com/bbuchfink/diamond.git")
2586 (commit (string-append "v" version))))
2587 (file-name (git-file-name name version))
2588 (sha256
2589 (base32
2590 "0bky78v79g3wmdpsd706cscckgw1v09fg8vdd0z8z0d5b97aj9zl"))))
2591 (build-system cmake-build-system)
2592 (arguments
2593 '(#:tests? #f ; no "check" target
2594 #:phases
2595 (modify-phases %standard-phases
2596 (add-after 'unpack 'remove-native-compilation
2597 (lambda _
2598 (substitute* "CMakeLists.txt" (("-march=native") ""))
2599 #t)))))
2600 (inputs
2601 `(("zlib" ,zlib)))
2602 (home-page "https://github.com/bbuchfink/diamond")
2603 (synopsis "Accelerated BLAST compatible local sequence aligner")
2604 (description
2605 "DIAMOND is a BLAST-compatible local aligner for mapping protein and
2606 translated DNA query sequences against a protein reference database (BLASTP
2607 and BLASTX alignment mode). The speedup over BLAST is up to 20,000 on short
2608 reads at a typical sensitivity of 90-99% relative to BLAST depending on the
2609 data and settings.")
2610 (license license:agpl3+)))
2611
2612 (define-public discrover
2613 (package
2614 (name "discrover")
2615 (version "1.6.0")
2616 (source
2617 (origin
2618 (method git-fetch)
2619 (uri (git-reference
2620 (url "https://github.com/maaskola/discrover.git")
2621 (commit version)))
2622 (file-name (git-file-name name version))
2623 (sha256
2624 (base32
2625 "173fwi2vb6a5kp406hm3jj6j7v4whww796f2qcygp4rpvamh307y"))))
2626 (build-system cmake-build-system)
2627 (arguments
2628 `(#:tests? #f ; there are no tests
2629 #:phases
2630 (modify-phases %standard-phases
2631 (add-after 'unpack 'fix-latex-errors
2632 (lambda _
2633 (with-fluids ((%default-port-encoding #f))
2634 (substitute* "doc/references.bib"
2635 (("\\{S\\}illanp[^,]+,")
2636 "{S}illanp{\\\"a}{\\\"a},")))
2637 ;; XXX: I just can't get pdflatex to not complain about these
2638 ;; characters. They end up in the manual via the generated
2639 ;; discrover-cli-help.txt.
2640 (substitute* "src/hmm/cli.cpp"
2641 (("µ") "mu")
2642 (("η") "eta")
2643 (("≤") "<="))
2644 ;; This seems to be a syntax error.
2645 (substitute* "doc/discrover-manual.tex"
2646 (("theverbbox\\[t\\]") "theverbbox"))
2647 #t))
2648 (add-after 'unpack 'add-missing-includes
2649 (lambda _
2650 (substitute* "src/executioninformation.hpp"
2651 (("#define EXECUTIONINFORMATION_HPP" line)
2652 (string-append line "\n#include <random>")))
2653 (substitute* "src/plasma/fasta.hpp"
2654 (("#define FASTA_HPP" line)
2655 (string-append line "\n#include <random>")))
2656 #t))
2657 ;; FIXME: this is needed because we're using texlive-union, which
2658 ;; doesn't handle fonts correctly. It expects to be able to generate
2659 ;; fonts in the home directory.
2660 (add-before 'build 'setenv-HOME
2661 (lambda _ (setenv "HOME" "/tmp") #t)))))
2662 (inputs
2663 `(("boost" ,boost)
2664 ("cairo" ,cairo)
2665 ("rmath-standalone" ,rmath-standalone)))
2666 (native-inputs
2667 `(("texlive" ,(texlive-union (list texlive-fonts-cm
2668 texlive-fonts-amsfonts
2669
2670 texlive-latex-doi
2671 texlive-latex-examplep
2672 texlive-latex-hyperref
2673 texlive-latex-ms
2674 texlive-latex-natbib
2675 texlive-bibtex ; style files used by natbib
2676 texlive-latex-pgf ; tikz
2677 texlive-latex-verbatimbox)))
2678 ("imagemagick" ,imagemagick)))
2679 (home-page "http://dorina.mdc-berlin.de/public/rajewsky/discrover/")
2680 (synopsis "Discover discriminative nucleotide sequence motifs")
2681 (description "Discrover is a motif discovery method to find binding sites
2682 of nucleic acid binding proteins.")
2683 (license license:gpl3+)))
2684
2685 (define-public eigensoft
2686 (package
2687 (name "eigensoft")
2688 (version "7.2.1")
2689 (source
2690 (origin
2691 (method git-fetch)
2692 (uri (git-reference
2693 (url "https://github.com/DReichLab/EIG.git")
2694 (commit (string-append "v" version))))
2695 (file-name (git-file-name name version))
2696 (sha256
2697 (base32
2698 "1c141fqvhnzibmnf22sv23vbmzm20kjjyrib44cfh75wyndp2d9k"))
2699 (modules '((guix build utils)))
2700 ;; Remove pre-built binaries.
2701 (snippet '(begin
2702 (delete-file-recursively "bin")
2703 (mkdir "bin")
2704 #t))))
2705 (build-system gnu-build-system)
2706 (arguments
2707 `(#:tests? #f ; There are no tests.
2708 #:make-flags '("CC=gcc")
2709 #:phases
2710 (modify-phases %standard-phases
2711 ;; There is no configure phase, but the Makefile is in a
2712 ;; sub-directory.
2713 (replace 'configure
2714 (lambda _ (chdir "src") #t))
2715 ;; The provided install target only copies executables to
2716 ;; the "bin" directory in the build root.
2717 (add-after 'install 'actually-install
2718 (lambda* (#:key outputs #:allow-other-keys)
2719 (let* ((out (assoc-ref outputs "out"))
2720 (bin (string-append out "/bin")))
2721 (for-each (lambda (file)
2722 (install-file file bin))
2723 (find-files "../bin" ".*"))
2724 #t))))))
2725 (inputs
2726 `(("gsl" ,gsl)
2727 ("lapack" ,lapack)
2728 ("openblas" ,openblas)
2729 ("perl" ,perl)
2730 ("gfortran" ,gfortran "lib")))
2731 (home-page "https://github.com/DReichLab/EIG")
2732 (synopsis "Tools for population genetics")
2733 (description "The EIGENSOFT package provides tools for population
2734 genetics and stratification correction. EIGENSOFT implements methods commonly
2735 used in population genetics analyses such as PCA, computation of Tracy-Widom
2736 statistics, and finding related individuals in structured populations. It
2737 comes with a built-in plotting script and supports multiple file formats and
2738 quantitative phenotypes.")
2739 ;; The license of the eigensoft tools is Expat, but since it's
2740 ;; linking with the GNU Scientific Library (GSL) the effective
2741 ;; license is the GPL.
2742 (license license:gpl3+)))
2743
2744 (define-public edirect
2745 (package
2746 (name "edirect")
2747 (version "12.1.20190819")
2748 (source (origin
2749 (method url-fetch)
2750 (uri (string-append "ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect"
2751 "/versions/" version
2752 "/edirect-" version ".tar.gz"))
2753 (sha256
2754 (base32
2755 "1i9s9mppcfqd60pfywpm8vdyz5vpnyslw22nd7dv0bhykrdnkz9g"))))
2756 (build-system perl-build-system)
2757 (arguments
2758 `(#:phases
2759 (modify-phases %standard-phases
2760 (delete 'configure)
2761 (delete 'build)
2762 (delete 'check) ; simple check after install
2763 (replace 'install
2764 (lambda* (#:key outputs #:allow-other-keys)
2765 (install-file "edirect.pl"
2766 (string-append (assoc-ref outputs "out") "/bin"))
2767 #t))
2768 (add-after 'install 'wrap-program
2769 (lambda* (#:key outputs #:allow-other-keys)
2770 ;; Make sure 'edirect.pl' finds all perl inputs at runtime.
2771 (let* ((out (assoc-ref outputs "out"))
2772 (path (getenv "PERL5LIB")))
2773 (wrap-program (string-append out "/bin/edirect.pl")
2774 `("PERL5LIB" ":" prefix (,path))))
2775 #t))
2776 (add-after 'wrap-program 'check
2777 (lambda* (#:key outputs #:allow-other-keys)
2778 (invoke (string-append (assoc-ref outputs "out")
2779 "/bin/edirect.pl")
2780 "-filter" "-help")
2781 #t)))))
2782 (inputs
2783 `(("perl-html-parser" ,perl-html-parser)
2784 ("perl-encode-locale" ,perl-encode-locale)
2785 ("perl-file-listing" ,perl-file-listing)
2786 ("perl-html-tagset" ,perl-html-tagset)
2787 ("perl-html-tree" ,perl-html-tree)
2788 ("perl-http-cookies" ,perl-http-cookies)
2789 ("perl-http-date" ,perl-http-date)
2790 ("perl-http-message" ,perl-http-message)
2791 ("perl-http-negotiate" ,perl-http-negotiate)
2792 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
2793 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
2794 ("perl-net-http" ,perl-net-http)
2795 ("perl-uri" ,perl-uri)
2796 ("perl-www-robotrules" ,perl-www-robotrules)
2797 ("perl-xml-simple" ,perl-xml-simple)
2798 ("perl" ,perl)))
2799 (home-page "http://www.ncbi.nlm.nih.gov/books/NBK179288/")
2800 (synopsis "Tools for accessing the NCBI's set of databases")
2801 (description
2802 "Entrez Direct (EDirect) is a method for accessing the National Center
2803 for Biotechnology Information's (NCBI) set of interconnected
2804 databases (publication, sequence, structure, gene, variation, expression,
2805 etc.) from a terminal. Functions take search terms from command-line
2806 arguments. Individual operations are combined to build multi-step queries.
2807 Record retrieval and formatting normally complete the process.
2808
2809 EDirect also provides an argument-driven function that simplifies the
2810 extraction of data from document summaries or other results that are returned
2811 in structured XML format. This can eliminate the need for writing custom
2812 software to answer ad hoc questions.")
2813 (license license:public-domain)))
2814
2815 (define-public exonerate
2816 (package
2817 (name "exonerate")
2818 (version "2.4.0")
2819 (source
2820 (origin
2821 (method url-fetch)
2822 (uri
2823 (string-append
2824 "http://ftp.ebi.ac.uk/pub/software/vertebrategenomics/exonerate/"
2825 "exonerate-" version ".tar.gz"))
2826 (sha256
2827 (base32
2828 "0hj0m9xygiqsdxvbg79wq579kbrx1mdrabi2bzqz2zn9qwfjcjgq"))))
2829 (build-system gnu-build-system)
2830 (arguments
2831 `(#:parallel-build? #f)) ; Building in parallel fails on some machines.
2832 (native-inputs
2833 `(("pkg-config" ,pkg-config)))
2834 (inputs
2835 `(("glib" ,glib)))
2836 (home-page
2837 "https://www.ebi.ac.uk/about/vertebrate-genomics/software/exonerate")
2838 (synopsis "Generic tool for biological sequence alignment")
2839 (description
2840 "Exonerate is a generic tool for pairwise sequence comparison. It allows
2841 the alignment of sequences using a many alignment models, either exhaustive
2842 dynamic programming or a variety of heuristics.")
2843 (license license:gpl3)))
2844
2845 (define-public express
2846 (package
2847 (name "express")
2848 (version "1.5.1")
2849 (source (origin
2850 (method url-fetch)
2851 (uri
2852 (string-append
2853 "http://bio.math.berkeley.edu/eXpress/downloads/express-"
2854 version "/express-" version "-src.tgz"))
2855 (sha256
2856 (base32
2857 "03rczxd0gjp2l1jxcmjfmf5j94j77zqyxa6x063zsc585nj40n0c"))))
2858 (build-system cmake-build-system)
2859 (arguments
2860 `(#:tests? #f ;no "check" target
2861 #:phases
2862 (modify-phases %standard-phases
2863 (add-after 'unpack 'use-shared-boost-libs-and-set-bamtools-paths
2864 (lambda* (#:key inputs #:allow-other-keys)
2865 (substitute* "CMakeLists.txt"
2866 (("set\\(Boost_USE_STATIC_LIBS ON\\)")
2867 "set(Boost_USE_STATIC_LIBS OFF)")
2868 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/bamtools/include")
2869 (string-append (assoc-ref inputs "bamtools") "/include/bamtools")))
2870 (substitute* "src/CMakeLists.txt"
2871 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/\\.\\./bamtools/lib")
2872 (string-append (assoc-ref inputs "bamtools") "/lib"))
2873 (("libprotobuf.a") "libprotobuf.so"))
2874 #t)))))
2875 (inputs
2876 `(("boost" ,boost)
2877 ("bamtools" ,bamtools)
2878 ("protobuf" ,protobuf)
2879 ("zlib" ,zlib)))
2880 (home-page "http://bio.math.berkeley.edu/eXpress")
2881 (synopsis "Streaming quantification for high-throughput genomic sequencing")
2882 (description
2883 "eXpress is a streaming tool for quantifying the abundances of a set of
2884 target sequences from sampled subsequences. Example applications include
2885 transcript-level RNA-Seq quantification, allele-specific/haplotype expression
2886 analysis (from RNA-Seq), transcription factor binding quantification in
2887 ChIP-Seq, and analysis of metagenomic data.")
2888 (license license:artistic2.0)))
2889
2890 (define-public express-beta-diversity
2891 (package
2892 (name "express-beta-diversity")
2893 (version "1.0.8")
2894 (source (origin
2895 (method git-fetch)
2896 (uri (git-reference
2897 (url "https://github.com/dparks1134/ExpressBetaDiversity.git")
2898 (commit (string-append "v" version))))
2899 (file-name (git-file-name name version))
2900 (sha256
2901 (base32
2902 "0s0yzg5c21349rh7x4w9266jsvnp7j1hp9cf8sk32hz8nvrj745x"))))
2903 (build-system gnu-build-system)
2904 (arguments
2905 `(#:phases
2906 (modify-phases %standard-phases
2907 (delete 'configure)
2908 (add-before 'build 'enter-source (lambda _ (chdir "source") #t))
2909 (replace 'check
2910 (lambda _ (invoke "../bin/ExpressBetaDiversity" "-u") #t))
2911 (replace 'install
2912 (lambda* (#:key outputs #:allow-other-keys)
2913 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
2914 (install-file "../scripts/convertToEBD.py" bin)
2915 (install-file "../bin/ExpressBetaDiversity" bin)
2916 #t))))))
2917 (inputs
2918 `(("python" ,python-2)))
2919 (home-page "http://kiwi.cs.dal.ca/Software/ExpressBetaDiversity")
2920 (synopsis "Taxon- and phylogenetic-based beta diversity measures")
2921 (description
2922 "Express Beta Diversity (EBD) calculates ecological beta diversity
2923 (dissimilarity) measures between biological communities. EBD implements a
2924 variety of diversity measures including those that make use of phylogenetic
2925 similarity of community members.")
2926 (license license:gpl3+)))
2927
2928 (define-public fasttree
2929 (package
2930 (name "fasttree")
2931 (version "2.1.10")
2932 (source (origin
2933 (method url-fetch)
2934 (uri (string-append
2935 "http://www.microbesonline.org/fasttree/FastTree-"
2936 version ".c"))
2937 (sha256
2938 (base32
2939 "0vcjdvy1j4m702vmak4svbfkrpcw63k7wymfksjp9a982zy8kjsl"))))
2940 (build-system gnu-build-system)
2941 (arguments
2942 `(#:tests? #f ; no "check" target
2943 #:phases
2944 (modify-phases %standard-phases
2945 (delete 'unpack)
2946 (delete 'configure)
2947 (replace 'build
2948 (lambda* (#:key source #:allow-other-keys)
2949 (invoke "gcc"
2950 "-O3"
2951 "-finline-functions"
2952 "-funroll-loops"
2953 "-Wall"
2954 "-o"
2955 "FastTree"
2956 source
2957 "-lm")
2958 (invoke "gcc"
2959 "-DOPENMP"
2960 "-fopenmp"
2961 "-O3"
2962 "-finline-functions"
2963 "-funroll-loops"
2964 "-Wall"
2965 "-o"
2966 "FastTreeMP"
2967 source
2968 "-lm")
2969 #t))
2970 (replace 'install
2971 (lambda* (#:key outputs #:allow-other-keys)
2972 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
2973 (install-file "FastTree" bin)
2974 (install-file "FastTreeMP" bin)
2975 #t))))))
2976 (home-page "http://www.microbesonline.org/fasttree")
2977 (synopsis "Infers approximately-maximum-likelihood phylogenetic trees")
2978 (description
2979 "FastTree can handle alignments with up to a million of sequences in a
2980 reasonable amount of time and memory. For large alignments, FastTree is
2981 100-1,000 times faster than PhyML 3.0 or RAxML 7.")
2982 (license license:gpl2+)))
2983
2984 (define-public fastx-toolkit
2985 (package
2986 (name "fastx-toolkit")
2987 (version "0.0.14")
2988 (source (origin
2989 (method url-fetch)
2990 (uri
2991 (string-append
2992 "https://github.com/agordon/fastx_toolkit/releases/download/"
2993 version "/fastx_toolkit-" version ".tar.bz2"))
2994 (sha256
2995 (base32
2996 "01jqzw386873sr0pjp1wr4rn8fsga2vxs1qfmicvx1pjr72007wy"))))
2997 (build-system gnu-build-system)
2998 (inputs
2999 `(("libgtextutils" ,libgtextutils)))
3000 (native-inputs
3001 `(("gcc" ,gcc-6) ;; doesn't build with later versions
3002 ("pkg-config" ,pkg-config)))
3003 (home-page "http://hannonlab.cshl.edu/fastx_toolkit/")
3004 (synopsis "Tools for FASTA/FASTQ file preprocessing")
3005 (description
3006 "The FASTX-Toolkit is a collection of command line tools for Short-Reads
3007 FASTA/FASTQ files preprocessing.
3008
3009 Next-Generation sequencing machines usually produce FASTA or FASTQ files,
3010 containing multiple short-reads sequences. The main processing of such
3011 FASTA/FASTQ files is mapping the sequences to reference genomes. However, it
3012 is sometimes more productive to preprocess the files before mapping the
3013 sequences to the genome---manipulating the sequences to produce better mapping
3014 results. The FASTX-Toolkit tools perform some of these preprocessing tasks.")
3015 (license license:agpl3+)))
3016
3017 (define-public flexbar
3018 (package
3019 (name "flexbar")
3020 (version "3.4.0")
3021 (source (origin
3022 (method git-fetch)
3023 (uri (git-reference
3024 (url "https://github.com/seqan/flexbar.git")
3025 (commit (string-append "v" version))))
3026 (file-name (git-file-name name version))
3027 (sha256
3028 (base32
3029 "1pq9sxvdnldl14libk234m72dqhwgzs3acgl943wchwdqlcsi5r2"))))
3030 (build-system cmake-build-system)
3031 (arguments
3032 `(#:phases
3033 (modify-phases %standard-phases
3034 (add-after 'unpack 'do-not-tune-to-CPU
3035 (lambda _
3036 (substitute* "src/CMakeLists.txt"
3037 ((" -march=native") ""))
3038 #t))
3039 (replace 'check
3040 (lambda* (#:key outputs #:allow-other-keys)
3041 (setenv "PATH" (string-append (getcwd) ":" (getenv "PATH")))
3042 (with-directory-excursion "../source/test"
3043 (invoke "bash" "flexbar_test.sh"))
3044 #t))
3045 (replace 'install
3046 (lambda* (#:key outputs #:allow-other-keys)
3047 (let* ((out (string-append (assoc-ref outputs "out")))
3048 (bin (string-append out "/bin/")))
3049 (install-file "flexbar" bin))
3050 #t)))))
3051 (inputs
3052 `(("tbb" ,tbb)
3053 ("zlib" ,zlib)))
3054 (native-inputs
3055 `(("pkg-config" ,pkg-config)
3056 ("seqan" ,seqan)))
3057 (home-page "https://github.com/seqan/flexbar")
3058 (synopsis "Barcode and adapter removal tool for sequencing platforms")
3059 (description
3060 "Flexbar preprocesses high-throughput nucleotide sequencing data
3061 efficiently. It demultiplexes barcoded runs and removes adapter sequences.
3062 Moreover, trimming and filtering features are provided. Flexbar increases
3063 read mapping rates and improves genome and transcriptome assemblies. It
3064 supports next-generation sequencing data in fasta/q and csfasta/q format from
3065 Illumina, Roche 454, and the SOLiD platform.")
3066 (license license:bsd-3)))
3067
3068 (define-public fraggenescan
3069 (package
3070 (name "fraggenescan")
3071 (version "1.30")
3072 (source
3073 (origin
3074 (method url-fetch)
3075 (uri
3076 (string-append "mirror://sourceforge/fraggenescan/"
3077 "FragGeneScan" version ".tar.gz"))
3078 (sha256
3079 (base32 "158dcnwczgcyhwm4qlx19sanrwgdpzf6bn2y57mbpx55lkgz1mzj"))))
3080 (build-system gnu-build-system)
3081 (arguments
3082 `(#:phases
3083 (modify-phases %standard-phases
3084 (delete 'configure)
3085 (add-before 'build 'patch-paths
3086 (lambda* (#:key outputs #:allow-other-keys)
3087 (let* ((out (string-append (assoc-ref outputs "out")))
3088 (share (string-append out "/share/fraggenescan/")))
3089 (substitute* "run_FragGeneScan.pl"
3090 (("system\\(\"rm")
3091 (string-append "system(\"" (which "rm")))
3092 (("system\\(\"mv")
3093 (string-append "system(\"" (which "mv")))
3094 (("\\\"awk") (string-append "\"" (which "awk")))
3095 ;; This script and other programs expect the training files
3096 ;; to be in the non-standard location bin/train/XXX. Change
3097 ;; this to be share/fraggenescan/train/XXX instead.
3098 (("^\\$train.file = \\$dir.*")
3099 (string-append "$train_file = \""
3100 share
3101 "train/\".$FGS_train_file;")))
3102 (substitute* "run_hmm.c"
3103 (("^ strcat\\(train_dir, \\\"train/\\\"\\);")
3104 (string-append " strcpy(train_dir, \"" share "/train/\");"))))
3105 #t))
3106 (replace 'build
3107 (lambda _
3108 (invoke "make" "clean")
3109 (invoke "make" "fgs")
3110 #t))
3111 (replace 'install
3112 (lambda* (#:key outputs #:allow-other-keys)
3113 (let* ((out (string-append (assoc-ref outputs "out")))
3114 (bin (string-append out "/bin/"))
3115 (share (string-append out "/share/fraggenescan/train")))
3116 (install-file "run_FragGeneScan.pl" bin)
3117 (install-file "FragGeneScan" bin)
3118 (copy-recursively "train" share))
3119 #t))
3120 (delete 'check)
3121 (add-after 'install 'post-install-check
3122 ;; In lieu of 'make check', run one of the examples and check the
3123 ;; output files gets created.
3124 (lambda* (#:key outputs #:allow-other-keys)
3125 (let* ((out (string-append (assoc-ref outputs "out")))
3126 (bin (string-append out "/bin/"))
3127 (frag (string-append bin "run_FragGeneScan.pl")))
3128 ;; Test complete genome.
3129 (invoke frag
3130 "-genome=./example/NC_000913.fna"
3131 "-out=./test2"
3132 "-complete=1"
3133 "-train=complete")
3134 (unless (and (file-exists? "test2.faa")
3135 (file-exists? "test2.ffn")
3136 (file-exists? "test2.gff")
3137 (file-exists? "test2.out"))
3138 (error "Expected files do not exist."))
3139 ;; Test incomplete sequences.
3140 (invoke frag
3141 "-genome=./example/NC_000913-fgs.ffn"
3142 "-out=out"
3143 "-complete=0"
3144 "-train=454_30")
3145 #t))))))
3146 (inputs
3147 `(("perl" ,perl)
3148 ("python" ,python-2))) ;not compatible with python 3.
3149 (home-page "https://sourceforge.net/projects/fraggenescan/")
3150 (synopsis "Finds potentially fragmented genes in short reads")
3151 (description
3152 "FragGeneScan is a program for predicting bacterial and archaeal genes in
3153 short and error-prone DNA sequencing reads. It can also be applied to predict
3154 genes in incomplete assemblies or complete genomes.")
3155 ;; GPL3+ according to private correspondense with the authors.
3156 (license license:gpl3+)))
3157
3158 (define-public fxtract
3159 (let ((util-commit "776ca85a18a47492af3794745efcb4a905113115"))
3160 (package
3161 (name "fxtract")
3162 (version "2.3")
3163 (source
3164 (origin
3165 (method git-fetch)
3166 (uri (git-reference
3167 (url "https://github.com/ctSkennerton/fxtract.git")
3168 (commit version)))
3169 (file-name (git-file-name name version))
3170 (sha256
3171 (base32
3172 "0hab3gpwf4w9s87qlbswq6ws1qqybh4dcqk79q1ahyldzai5fgp5"))))
3173 (build-system gnu-build-system)
3174 (arguments
3175 `(#:make-flags (list
3176 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3177 "CC=gcc")
3178 #:test-target "fxtract_test"
3179 #:phases
3180 (modify-phases %standard-phases
3181 (delete 'configure)
3182 (add-before 'build 'copy-util
3183 (lambda* (#:key inputs #:allow-other-keys)
3184 (rmdir "util")
3185 (copy-recursively (assoc-ref inputs "ctskennerton-util") "util")
3186 #t))
3187 ;; Do not use make install as this requires additional dependencies.
3188 (replace 'install
3189 (lambda* (#:key outputs #:allow-other-keys)
3190 (let* ((out (assoc-ref outputs "out"))
3191 (bin (string-append out"/bin")))
3192 (install-file "fxtract" bin)
3193 #t))))))
3194 (inputs
3195 `(("pcre" ,pcre)
3196 ("zlib" ,zlib)))
3197 (native-inputs
3198 ;; ctskennerton-util is licensed under GPL2.
3199 `(("ctskennerton-util"
3200 ,(origin
3201 (method git-fetch)
3202 (uri (git-reference
3203 (url "https://github.com/ctSkennerton/util.git")
3204 (commit util-commit)))
3205 (file-name (string-append
3206 "ctstennerton-util-" util-commit "-checkout"))
3207 (sha256
3208 (base32
3209 "0cls1hd4vgj3f36fpzzg4xc77d6f3hpc60cbpfmn2gdr7ykzzad7"))))))
3210 (home-page "https://github.com/ctSkennerton/fxtract")
3211 (synopsis "Extract sequences from FASTA and FASTQ files")
3212 (description
3213 "Fxtract extracts sequences from a protein or nucleotide fastx (FASTA
3214 or FASTQ) file given a subsequence. It uses a simple substring search for
3215 basic tasks but can change to using POSIX regular expressions, PCRE, hash
3216 lookups or multi-pattern searching as required. By default fxtract looks in
3217 the sequence of each record but can also be told to look in the header,
3218 comment or quality sections.")
3219 ;; 'util' requires SSE instructions.
3220 (supported-systems '("x86_64-linux"))
3221 (license license:expat))))
3222
3223 (define-public gemma
3224 (package
3225 (name "gemma")
3226 (version "0.98")
3227 (source (origin
3228 (method git-fetch)
3229 (uri (git-reference
3230 (url "https://github.com/xiangzhou/GEMMA.git")
3231 (commit (string-append "v" version))))
3232 (file-name (git-file-name name version))
3233 (sha256
3234 (base32
3235 "1s3ncnbn45r2hh1cvrqky1kbqq6546biypr4f5mkw1kqlrgyh0yg"))))
3236 (inputs
3237 `(("eigen" ,eigen)
3238 ("gfortran" ,gfortran "lib")
3239 ("gsl" ,gsl)
3240 ("lapack" ,lapack)
3241 ("openblas" ,openblas)
3242 ("zlib" ,zlib)))
3243 (build-system gnu-build-system)
3244 (arguments
3245 `(#:make-flags
3246 '(,@(match (%current-system)
3247 ("x86_64-linux"
3248 '("FORCE_DYNAMIC=1"))
3249 ("i686-linux"
3250 '("FORCE_DYNAMIC=1" "FORCE_32BIT=1"))
3251 (_
3252 '("FORCE_DYNAMIC=1" "NO_INTEL_COMPAT=1"))))
3253 #:phases
3254 (modify-phases %standard-phases
3255 (delete 'configure)
3256 (add-after 'unpack 'find-eigen
3257 (lambda* (#:key inputs #:allow-other-keys)
3258 ;; Ensure that Eigen headers can be found
3259 (setenv "CPLUS_INCLUDE_PATH"
3260 (string-append (assoc-ref inputs "eigen")
3261 "/include/eigen3"))
3262 #t))
3263 (add-before 'build 'bin-mkdir
3264 (lambda _
3265 (mkdir-p "bin")
3266 #t))
3267 (replace 'install
3268 (lambda* (#:key outputs #:allow-other-keys)
3269 (let ((out (assoc-ref outputs "out")))
3270 (install-file "bin/gemma"
3271 (string-append
3272 out "/bin")))
3273 #t)))
3274 #:tests? #f)) ; no tests included yet
3275 (home-page "https://github.com/xiangzhou/GEMMA")
3276 (synopsis "Tool for genome-wide efficient mixed model association")
3277 (description
3278 "Genome-wide Efficient Mixed Model Association (GEMMA) provides a
3279 standard linear mixed model resolver with application in genome-wide
3280 association studies (GWAS).")
3281 (license license:gpl3)))
3282
3283 (define-public grit
3284 (package
3285 (name "grit")
3286 (version "2.0.5")
3287 (source (origin
3288 (method git-fetch)
3289 (uri (git-reference
3290 (url "https://github.com/nboley/grit.git")
3291 (commit version)))
3292 (file-name (git-file-name name version))
3293 (sha256
3294 (base32
3295 "1l5v8vfvfbrpmgnrvbrbv40d0arhxcnmxgv2f1mlcqfa3q6bkqm9"))))
3296 (build-system python-build-system)
3297 (arguments
3298 `(#:python ,python-2
3299 #:phases
3300 (modify-phases %standard-phases
3301 (add-after 'unpack 'generate-from-cython-sources
3302 (lambda* (#:key inputs outputs #:allow-other-keys)
3303 ;; Delete these C files to force fresh generation from pyx sources.
3304 (delete-file "grit/sparsify_support_fns.c")
3305 (delete-file "grit/call_peaks_support_fns.c")
3306 (substitute* "setup.py"
3307 (("Cython.Setup") "Cython.Build"))
3308 #t)))))
3309 (inputs
3310 `(("python-scipy" ,python2-scipy)
3311 ("python-numpy" ,python2-numpy)
3312 ("python-pysam" ,python2-pysam)
3313 ("python-networkx" ,python2-networkx)))
3314 (native-inputs
3315 `(("python-cython" ,python2-cython)))
3316 (home-page "http://grit-bio.org")
3317 (synopsis "Tool for integrative analysis of RNA-seq type assays")
3318 (description
3319 "GRIT is designed to use RNA-seq, TES, and TSS data to build and quantify
3320 full length transcript models. When none of these data sources are available,
3321 GRIT can be run by providing a candidate set of TES or TSS sites. In
3322 addition, GRIT can merge in reference junctions and gene boundaries. GRIT can
3323 also be run in quantification mode, where it uses a provided GTF file and just
3324 estimates transcript expression.")
3325 (license license:gpl3+)))
3326
3327 (define-public hisat
3328 (package
3329 (name "hisat")
3330 (version "0.1.4")
3331 (source (origin
3332 (method url-fetch)
3333 (uri (string-append
3334 "http://ccb.jhu.edu/software/hisat/downloads/hisat-"
3335 version "-beta-source.zip"))
3336 (sha256
3337 (base32
3338 "1k381ydranqxp09yf2y7w1d0chz5d59vb6jchi89hbb0prq19lk5"))))
3339 (build-system gnu-build-system)
3340 (arguments
3341 `(#:tests? #f ;no check target
3342 #:make-flags '("allall"
3343 ;; Disable unsupported `popcnt' instructions on
3344 ;; architectures other than x86_64
3345 ,@(if (string-prefix? "x86_64"
3346 (or (%current-target-system)
3347 (%current-system)))
3348 '()
3349 '("POPCNT_CAPABILITY=0")))
3350 #:phases
3351 (modify-phases %standard-phases
3352 (add-after 'unpack 'patch-sources
3353 (lambda _
3354 ;; XXX Cannot use snippet because zip files are not supported
3355 (substitute* "Makefile"
3356 (("^CC = .*$") "CC = gcc")
3357 (("^CPP = .*$") "CPP = g++")
3358 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
3359 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
3360 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
3361 (substitute* '("hisat-build" "hisat-inspect")
3362 (("/usr/bin/env") (which "env")))
3363 #t))
3364 (replace 'install
3365 (lambda* (#:key outputs #:allow-other-keys)
3366 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
3367 (for-each (lambda (file)
3368 (install-file file bin))
3369 (find-files
3370 "."
3371 "hisat(-(build|align|inspect)(-(s|l)(-debug)*)*)*$")))
3372 #t))
3373 (delete 'configure))))
3374 (native-inputs
3375 `(("unzip" ,unzip)))
3376 (inputs
3377 `(("perl" ,perl)
3378 ("python" ,python)
3379 ("zlib" ,zlib)))
3380 ;; Non-portable SSE instructions are used so building fails on platforms
3381 ;; other than x86_64.
3382 (supported-systems '("x86_64-linux"))
3383 (home-page "http://ccb.jhu.edu/software/hisat/index.shtml")
3384 (synopsis "Hierarchical indexing for spliced alignment of transcripts")
3385 (description
3386 "HISAT is a fast and sensitive spliced alignment program for mapping
3387 RNA-seq reads. In addition to one global FM index that represents a whole
3388 genome, HISAT uses a large set of small FM indexes that collectively cover the
3389 whole genome. These small indexes (called local indexes) combined with
3390 several alignment strategies enable effective alignment of RNA-seq reads, in
3391 particular, reads spanning multiple exons.")
3392 (license license:gpl3+)))
3393
3394 (define-public hisat2
3395 (package
3396 (name "hisat2")
3397 (version "2.0.5")
3398 (source
3399 (origin
3400 (method url-fetch)
3401 (uri (string-append "ftp://ftp.ccb.jhu.edu/pub/infphilo/hisat2"
3402 "/downloads/hisat2-" version "-source.zip"))
3403 (sha256
3404 (base32
3405 "0lywnr8kijwsc2aw10dwxic0n0yvip6fl3rjlvc8zzwahamy4x7g"))))
3406 (build-system gnu-build-system)
3407 (arguments
3408 `(#:tests? #f ; no check target
3409 #:make-flags (list "CC=gcc" "CXX=g++" "allall")
3410 #:modules ((guix build gnu-build-system)
3411 (guix build utils)
3412 (srfi srfi-26))
3413 #:phases
3414 (modify-phases %standard-phases
3415 (add-after 'unpack 'make-deterministic
3416 (lambda _
3417 (substitute* "Makefile"
3418 (("`date`") "0"))
3419 #t))
3420 (delete 'configure)
3421 (replace 'install
3422 (lambda* (#:key outputs #:allow-other-keys)
3423 (let* ((out (assoc-ref outputs "out"))
3424 (bin (string-append out "/bin/"))
3425 (doc (string-append out "/share/doc/hisat2/")))
3426 (for-each
3427 (cut install-file <> bin)
3428 (find-files "."
3429 "hisat2(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))
3430 (mkdir-p doc)
3431 (install-file "doc/manual.inc.html" doc))
3432 #t)))))
3433 (native-inputs
3434 `(("unzip" ,unzip) ; needed for archive from ftp
3435 ("perl" ,perl)
3436 ("pandoc" ,ghc-pandoc))) ; for documentation
3437 (home-page "http://ccb.jhu.edu/software/hisat2/index.shtml")
3438 (synopsis "Graph-based alignment of genomic sequencing reads")
3439 (description "HISAT2 is a fast and sensitive alignment program for mapping
3440 next-generation sequencing reads (both DNA and RNA) to a population of human
3441 genomes (as well as to a single reference genome). In addition to using one
3442 global @dfn{graph FM} (GFM) index that represents a population of human
3443 genomes, HISAT2 uses a large set of small GFM indexes that collectively cover
3444 the whole genome. These small indexes, combined with several alignment
3445 strategies, enable rapid and accurate alignment of sequencing reads. This new
3446 indexing scheme is called a @dfn{Hierarchical Graph FM index} (HGFM).")
3447 ;; HISAT2 contains files from Bowtie2, which is released under
3448 ;; GPLv2 or later. The HISAT2 source files are released under
3449 ;; GPLv3 or later.
3450 (license license:gpl3+)))
3451
3452 (define-public hmmer
3453 (package
3454 (name "hmmer")
3455 (version "3.2.1")
3456 (source
3457 (origin
3458 (method url-fetch)
3459 (uri (string-append
3460 "http://eddylab.org/software/hmmer/hmmer-" version ".tar.gz"))
3461 (sha256
3462 (base32
3463 "171bivy6xhgjsz5nv53n81pc3frnwz29ylblawk2bv46szwjjqd5"))))
3464 (build-system gnu-build-system)
3465 (native-inputs `(("perl" ,perl)))
3466 (home-page "http://hmmer.org/")
3467 (synopsis "Biosequence analysis using profile hidden Markov models")
3468 (description
3469 "HMMER is used for searching sequence databases for homologs of protein
3470 sequences, and for making protein sequence alignments. It implements methods
3471 using probabilistic models called profile hidden Markov models (profile
3472 HMMs).")
3473 ;; hmmer uses non-portable SSE intrinsics so building fails on other
3474 ;; platforms.
3475 (supported-systems '("x86_64-linux" "i686-linux"))
3476 (license license:bsd-3)))
3477
3478 (define-public htseq
3479 (package
3480 (name "htseq")
3481 (version "0.9.1")
3482 (source (origin
3483 (method url-fetch)
3484 (uri (pypi-uri "HTSeq" version))
3485 (sha256
3486 (base32
3487 "11flgb1381xdhk43bzbfm3vhnszkpqg6jk76rpa5xd1zbrvvlnxg"))))
3488 (build-system python-build-system)
3489 (native-inputs
3490 `(("python-cython" ,python-cython)))
3491 ;; Numpy needs to be propagated when htseq is used as a Python library.
3492 (propagated-inputs
3493 `(("python-numpy" ,python-numpy)))
3494 (inputs
3495 `(("python-pysam" ,python-pysam)
3496 ("python-matplotlib" ,python-matplotlib)))
3497 (home-page "http://www-huber.embl.de/users/anders/HTSeq/")
3498 (synopsis "Analysing high-throughput sequencing data with Python")
3499 (description
3500 "HTSeq is a Python package that provides infrastructure to process data
3501 from high-throughput sequencing assays.")
3502 (license license:gpl3+)))
3503
3504 (define-public python2-htseq
3505 (package-with-python2 htseq))
3506
3507 (define-public java-htsjdk
3508 (package
3509 (name "java-htsjdk")
3510 (version "2.3.0") ; last version without build dependency on gradle
3511 (source (origin
3512 (method git-fetch)
3513 (uri (git-reference
3514 (url "https://github.com/samtools/htsjdk.git")
3515 (commit version)))
3516 (file-name (git-file-name name version))
3517 (sha256
3518 (base32
3519 "1b178ixcabanm834ydjl3jiakpyxdmki32hqfv2abrzn3rcwa28i"))
3520 (modules '((guix build utils)))
3521 (snippet
3522 ;; Delete pre-built binaries
3523 '(begin
3524 (delete-file-recursively "lib")
3525 (mkdir-p "lib")
3526 #t))))
3527 (build-system ant-build-system)
3528 (arguments
3529 `(#:tests? #f ; test require Internet access
3530 #:jdk ,icedtea-8
3531 #:make-flags
3532 (list (string-append "-Ddist=" (assoc-ref %outputs "out")
3533 "/share/java/htsjdk/"))
3534 #:build-target "all"
3535 #:phases
3536 (modify-phases %standard-phases
3537 ;; The build phase also installs the jars
3538 (delete 'install))))
3539 (inputs
3540 `(("java-ngs" ,java-ngs)
3541 ("java-snappy-1" ,java-snappy-1)
3542 ("java-commons-compress" ,java-commons-compress)
3543 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
3544 ("java-commons-jexl-2" ,java-commons-jexl-2)
3545 ("java-xz" ,java-xz)))
3546 (native-inputs
3547 `(("java-testng" ,java-testng)))
3548 (home-page "http://samtools.github.io/htsjdk/")
3549 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3550 (description
3551 "HTSJDK is an implementation of a unified Java library for accessing
3552 common file formats, such as SAM and VCF, used for high-throughput
3553 sequencing (HTS) data. There are also an number of useful utilities for
3554 manipulating HTS data.")
3555 (license license:expat)))
3556
3557 (define-public java-htsjdk-latest
3558 (package
3559 (name "java-htsjdk")
3560 (version "2.14.3")
3561 (source (origin
3562 (method git-fetch)
3563 (uri (git-reference
3564 (url "https://github.com/samtools/htsjdk.git")
3565 (commit version)))
3566 (file-name (string-append name "-" version "-checkout"))
3567 (sha256
3568 (base32
3569 "1lmya1fdjy03mz6zmdmd86j9v9vfhqb3952mqq075navx1i6g4bc"))))
3570 (build-system ant-build-system)
3571 (arguments
3572 `(#:tests? #f ; test require Scala
3573 #:jdk ,icedtea-8
3574 #:jar-name "htsjdk.jar"
3575 #:phases
3576 (modify-phases %standard-phases
3577 (add-after 'unpack 'remove-useless-build.xml
3578 (lambda _ (delete-file "build.xml") #t))
3579 ;; The tests require the scalatest package.
3580 (add-after 'unpack 'remove-tests
3581 (lambda _ (delete-file-recursively "src/test") #t)))))
3582 (inputs
3583 `(("java-ngs" ,java-ngs)
3584 ("java-snappy-1" ,java-snappy-1)
3585 ("java-commons-compress" ,java-commons-compress)
3586 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
3587 ("java-commons-jexl-2" ,java-commons-jexl-2)
3588 ("java-xz" ,java-xz)))
3589 (native-inputs
3590 `(("java-junit" ,java-junit)))
3591 (home-page "http://samtools.github.io/htsjdk/")
3592 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3593 (description
3594 "HTSJDK is an implementation of a unified Java library for accessing
3595 common file formats, such as SAM and VCF, used for high-throughput
3596 sequencing (HTS) data. There are also an number of useful utilities for
3597 manipulating HTS data.")
3598 (license license:expat)))
3599
3600 ;; This is needed for picard 2.10.3
3601 (define-public java-htsjdk-2.10.1
3602 (package (inherit java-htsjdk-latest)
3603 (name "java-htsjdk")
3604 (version "2.10.1")
3605 (source (origin
3606 (method git-fetch)
3607 (uri (git-reference
3608 (url "https://github.com/samtools/htsjdk.git")
3609 (commit version)))
3610 (file-name (string-append name "-" version "-checkout"))
3611 (sha256
3612 (base32
3613 "1kxh7slm2pm3x9p6jxa1wqsq9a31dhiiflhxnxqcisan4k3rwia2"))))
3614 (build-system ant-build-system)
3615 (arguments
3616 `(#:tests? #f ; tests require Scala
3617 #:jdk ,icedtea-8
3618 #:jar-name "htsjdk.jar"
3619 #:phases
3620 (modify-phases %standard-phases
3621 (add-after 'unpack 'remove-useless-build.xml
3622 (lambda _ (delete-file "build.xml") #t))
3623 ;; The tests require the scalatest package.
3624 (add-after 'unpack 'remove-tests
3625 (lambda _ (delete-file-recursively "src/test") #t)))))))
3626
3627 ;; This version matches java-htsjdk 2.3.0. Later versions also require a more
3628 ;; recent version of java-htsjdk, which depends on gradle.
3629 (define-public java-picard
3630 (package
3631 (name "java-picard")
3632 (version "2.3.0")
3633 (source (origin
3634 (method git-fetch)
3635 (uri (git-reference
3636 (url "https://github.com/broadinstitute/picard.git")
3637 (commit version)))
3638 (file-name (string-append "java-picard-" version "-checkout"))
3639 (sha256
3640 (base32
3641 "1ll7mf4r3by92w2nhlmpa591xd1f46xlkwh59mq6fvbb5pdwzvx6"))
3642 (modules '((guix build utils)))
3643 (snippet
3644 '(begin
3645 ;; Delete pre-built binaries.
3646 (delete-file-recursively "lib")
3647 (mkdir-p "lib")
3648 (substitute* "build.xml"
3649 ;; Remove build-time dependency on git.
3650 (("failifexecutionfails=\"true\"")
3651 "failifexecutionfails=\"false\"")
3652 ;; Use our htsjdk.
3653 (("depends=\"compile-htsjdk, ")
3654 "depends=\"")
3655 (("depends=\"compile-htsjdk-tests, ")
3656 "depends=\"")
3657 ;; Build picard-lib.jar before building picard.jar
3658 (("name=\"picard-jar\" depends=\"" line)
3659 (string-append line "picard-lib-jar, ")))
3660 #t))))
3661 (build-system ant-build-system)
3662 (arguments
3663 `(#:build-target "picard-jar"
3664 #:test-target "test"
3665 ;; Tests require jacoco:coverage.
3666 #:tests? #f
3667 #:make-flags
3668 (list (string-append "-Dhtsjdk_lib_dir="
3669 (assoc-ref %build-inputs "java-htsjdk")
3670 "/share/java/htsjdk/")
3671 "-Dhtsjdk-classes=dist/tmp"
3672 (string-append "-Dhtsjdk-version="
3673 ,(package-version java-htsjdk)))
3674 #:jdk ,icedtea-8
3675 #:phases
3676 (modify-phases %standard-phases
3677 ;; FIXME: this phase fails with "duplicate entry: htsjdk/samtools/AbstractBAMFileIndex$1.class"
3678 (delete 'generate-jar-indices)
3679 (add-after 'unpack 'use-our-htsjdk
3680 (lambda* (#:key inputs #:allow-other-keys)
3681 (substitute* "build.xml"
3682 (("\\$\\{htsjdk\\}/lib")
3683 (string-append (assoc-ref inputs "java-htsjdk")
3684 "/share/java/htsjdk/")))
3685 #t))
3686 (add-after 'unpack 'make-test-target-independent
3687 (lambda* (#:key inputs #:allow-other-keys)
3688 (substitute* "build.xml"
3689 (("name=\"test\" depends=\"compile, ")
3690 "name=\"test\" depends=\""))
3691 #t))
3692 (replace 'install (install-jars "dist")))))
3693 (inputs
3694 `(("java-htsjdk" ,java-htsjdk)
3695 ("java-guava" ,java-guava)))
3696 (native-inputs
3697 `(("java-testng" ,java-testng)))
3698 (home-page "http://broadinstitute.github.io/picard/")
3699 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
3700 (description "Picard is a set of Java command line tools for manipulating
3701 high-throughput sequencing (HTS) data and formats. Picard is implemented
3702 using the HTSJDK Java library to support accessing file formats that are
3703 commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
3704 VCF.")
3705 (license license:expat)))
3706
3707 ;; This is needed for dropseq-tools
3708 (define-public java-picard-2.10.3
3709 (package
3710 (name "java-picard")
3711 (version "2.10.3")
3712 (source (origin
3713 (method git-fetch)
3714 (uri (git-reference
3715 (url "https://github.com/broadinstitute/picard.git")
3716 (commit version)))
3717 (file-name (string-append "java-picard-" version "-checkout"))
3718 (sha256
3719 (base32
3720 "1ajlx31l6i1k3y2rhnmgq07sz99g2czqfqgkr9mihmdjp3gwjhvi"))))
3721 (build-system ant-build-system)
3722 (arguments
3723 `(#:jar-name "picard.jar"
3724 ;; Tests require jacoco:coverage.
3725 #:tests? #f
3726 #:jdk ,icedtea-8
3727 #:main-class "picard.cmdline.PicardCommandLine"
3728 #:modules ((guix build ant-build-system)
3729 (guix build utils)
3730 (guix build java-utils)
3731 (sxml simple)
3732 (sxml transform)
3733 (sxml xpath))
3734 #:phases
3735 (modify-phases %standard-phases
3736 ;; FIXME: this phase fails with "duplicate entry: htsjdk/samtools/AbstractBAMFileIndex$1.class"
3737 (delete 'generate-jar-indices)
3738 (add-after 'unpack 'remove-useless-build.xml
3739 (lambda _ (delete-file "build.xml") #t))
3740 ;; This is necessary to ensure that htsjdk is found when using
3741 ;; picard.jar as an executable.
3742 (add-before 'build 'edit-classpath-in-manifest
3743 (lambda* (#:key inputs #:allow-other-keys)
3744 (chmod "build.xml" #o664)
3745 (call-with-output-file "build.xml.new"
3746 (lambda (port)
3747 (sxml->xml
3748 (pre-post-order
3749 (with-input-from-file "build.xml"
3750 (lambda _ (xml->sxml #:trim-whitespace? #t)))
3751 `((target . ,(lambda (tag . kids)
3752 (let ((name ((sxpath '(name *text*))
3753 (car kids)))
3754 ;; FIXME: We're breaking the line
3755 ;; early with a dummy path to
3756 ;; ensure that the store reference
3757 ;; isn't broken apart and can still
3758 ;; be found by the reference
3759 ;; scanner.
3760 (msg (format #f
3761 "\
3762 Class-Path: /~a \
3763 ~a/share/java/htsjdk.jar${line.separator}${line.separator}"
3764 ;; maximum line length is 70
3765 (string-tabulate (const #\b) 57)
3766 (assoc-ref inputs "java-htsjdk"))))
3767 (if (member "manifest" name)
3768 `(,tag ,@kids
3769 (replaceregexp
3770 (@ (file "${manifest.file}")
3771 (match "\\r\\n\\r\\n")
3772 (replace "${line.separator}")))
3773 (echo
3774 (@ (message ,msg)
3775 (file "${manifest.file}")
3776 (append "true"))))
3777 `(,tag ,@kids)))))
3778 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
3779 (*text* . ,(lambda (_ txt) txt))))
3780 port)))
3781 (rename-file "build.xml.new" "build.xml")
3782 #t)))))
3783 (propagated-inputs
3784 `(("java-htsjdk" ,java-htsjdk-2.10.1)))
3785 (native-inputs
3786 `(("java-testng" ,java-testng)
3787 ("java-guava" ,java-guava)))
3788 (home-page "http://broadinstitute.github.io/picard/")
3789 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
3790 (description "Picard is a set of Java command line tools for manipulating
3791 high-throughput sequencing (HTS) data and formats. Picard is implemented
3792 using the HTSJDK Java library to support accessing file formats that are
3793 commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
3794 VCF.")
3795 (license license:expat)))
3796
3797 ;; This is the last version of Picard to provide net.sf.samtools
3798 (define-public java-picard-1.113
3799 (package (inherit java-picard)
3800 (name "java-picard")
3801 (version "1.113")
3802 (source (origin
3803 (method git-fetch)
3804 (uri (git-reference
3805 (url "https://github.com/broadinstitute/picard.git")
3806 (commit version)))
3807 (file-name (string-append "java-picard-" version "-checkout"))
3808 (sha256
3809 (base32
3810 "0lkpvin2fz3hhly4l02kk56fqy8lmlgyzr9kmvljk6ry6l1hw973"))
3811 (modules '((guix build utils)))
3812 (snippet
3813 '(begin
3814 ;; Delete pre-built binaries.
3815 (delete-file-recursively "lib")
3816 (mkdir-p "lib")
3817 #t))))
3818 (build-system ant-build-system)
3819 (arguments
3820 `(#:build-target "picard-jar"
3821 #:test-target "test"
3822 ;; FIXME: the class path at test time is wrong.
3823 ;; [testng] Error: A JNI error has occurred, please check your installation and try again
3824 ;; [testng] Exception in thread "main" java.lang.NoClassDefFoundError: com/beust/jcommander/ParameterException
3825 #:tests? #f
3826 #:jdk ,icedtea-8
3827 ;; This is only used for tests.
3828 #:make-flags
3829 (list "-Dsamjdk.intel_deflater_so_path=lib/jni/libIntelDeflater.so")
3830 #:phases
3831 (modify-phases %standard-phases
3832 ;; FIXME: This phase fails.
3833 (delete 'generate-jar-indices)
3834 ;; Do not use bundled ant bzip2.
3835 (add-after 'unpack 'use-ant-bzip
3836 (lambda* (#:key inputs #:allow-other-keys)
3837 (substitute* "build.xml"
3838 (("\\$\\{lib\\}/apache-ant-1.8.2-bzip2.jar")
3839 (string-append (assoc-ref inputs "ant")
3840 "/lib/ant.jar")))
3841 #t))
3842 (add-after 'unpack 'make-test-target-independent
3843 (lambda* (#:key inputs #:allow-other-keys)
3844 (substitute* "build.xml"
3845 (("name=\"test\" depends=\"compile, ")
3846 "name=\"test\" depends=\"compile-tests, ")
3847 (("name=\"compile\" depends=\"compile-src, compile-tests\"")
3848 "name=\"compile\" depends=\"compile-src\""))
3849 #t))
3850 (add-after 'unpack 'fix-deflater-path
3851 (lambda* (#:key outputs #:allow-other-keys)
3852 (substitute* "src/java/net/sf/samtools/Defaults.java"
3853 (("getStringProperty\\(\"intel_deflater_so_path\", null\\)")
3854 (string-append "getStringProperty(\"intel_deflater_so_path\", \""
3855 (assoc-ref outputs "out")
3856 "/lib/jni/libIntelDeflater.so"
3857 "\")")))
3858 #t))
3859 ;; Build the deflater library, because we've previously deleted the
3860 ;; pre-built one. This can only be built with access to the JDK
3861 ;; sources.
3862 (add-after 'build 'build-jni
3863 (lambda* (#:key inputs #:allow-other-keys)
3864 (mkdir-p "lib/jni")
3865 (mkdir-p "jdk-src")
3866 (invoke "tar" "--strip-components=1" "-C" "jdk-src"
3867 "-xf" (assoc-ref inputs "jdk-src"))
3868 (invoke "javah" "-jni"
3869 "-classpath" "classes"
3870 "-d" "lib/"
3871 "net.sf.samtools.util.zip.IntelDeflater")
3872 (with-directory-excursion "src/c/inteldeflater"
3873 (invoke "gcc" "-I../../../lib" "-I."
3874 (string-append "-I" (assoc-ref inputs "jdk")
3875 "/include/linux")
3876 "-I../../../jdk-src/src/share/native/common/"
3877 "-I../../../jdk-src/src/solaris/native/common/"
3878 "-c" "-O3" "-fPIC" "IntelDeflater.c")
3879 (invoke "gcc" "-shared"
3880 "-o" "../../../lib/jni/libIntelDeflater.so"
3881 "IntelDeflater.o" "-lz" "-lstdc++"))
3882 #t))
3883 ;; We can only build everything else after building the JNI library.
3884 (add-after 'build-jni 'build-rest
3885 (lambda* (#:key make-flags #:allow-other-keys)
3886 (apply invoke `("ant" "all" ,@make-flags))
3887 #t))
3888 (add-before 'build 'set-JAVA6_HOME
3889 (lambda _
3890 (setenv "JAVA6_HOME" (getenv "JAVA_HOME"))
3891 #t))
3892 (replace 'install (install-jars "dist"))
3893 (add-after 'install 'install-jni-lib
3894 (lambda* (#:key outputs #:allow-other-keys)
3895 (let ((jni (string-append (assoc-ref outputs "out")
3896 "/lib/jni")))
3897 (mkdir-p jni)
3898 (install-file "lib/jni/libIntelDeflater.so" jni)
3899 #t))))))
3900 (inputs
3901 `(("java-snappy-1" ,java-snappy-1)
3902 ("java-commons-jexl-2" ,java-commons-jexl-2)
3903 ("java-cofoja" ,java-cofoja)
3904 ("ant" ,ant) ; for bzip2 support at runtime
3905 ("zlib" ,zlib)))
3906 (native-inputs
3907 `(("ant-apache-bcel" ,ant-apache-bcel)
3908 ("ant-junit" ,ant-junit)
3909 ("java-testng" ,java-testng)
3910 ("java-commons-bcel" ,java-commons-bcel)
3911 ("java-jcommander" ,java-jcommander)
3912 ("jdk" ,icedtea-8 "jdk")
3913 ("jdk-src" ,(car (assoc-ref (package-native-inputs icedtea-8) "jdk-drop")))))))
3914
3915 (define-public fastqc
3916 (package
3917 (name "fastqc")
3918 (version "0.11.5")
3919 (source
3920 (origin
3921 (method url-fetch)
3922 (uri (string-append "http://www.bioinformatics.babraham.ac.uk/"
3923 "projects/fastqc/fastqc_v"
3924 version "_source.zip"))
3925 (sha256
3926 (base32
3927 "18rrlkhcrxvvvlapch4dpj6xc6mpayzys8qfppybi8jrpgx5cc5f"))))
3928 (build-system ant-build-system)
3929 (arguments
3930 `(#:tests? #f ; there are no tests
3931 #:build-target "build"
3932 #:phases
3933 (modify-phases %standard-phases
3934 (add-after 'unpack 'fix-dependencies
3935 (lambda* (#:key inputs #:allow-other-keys)
3936 (substitute* "build.xml"
3937 (("jbzip2-0.9.jar")
3938 (string-append (assoc-ref inputs "java-jbzip2")
3939 "/share/java/jbzip2.jar"))
3940 (("sam-1.103.jar")
3941 (string-append (assoc-ref inputs "java-picard-1.113")
3942 "/share/java/sam-1.112.jar"))
3943 (("cisd-jhdf5.jar")
3944 (string-append (assoc-ref inputs "java-cisd-jhdf5")
3945 "/share/java/sis-jhdf5.jar")))
3946 #t))
3947 ;; There is no installation target
3948 (replace 'install
3949 (lambda* (#:key inputs outputs #:allow-other-keys)
3950 (let* ((out (assoc-ref outputs "out"))
3951 (bin (string-append out "/bin"))
3952 (share (string-append out "/share/fastqc/"))
3953 (exe (string-append share "/fastqc")))
3954 (for-each mkdir-p (list bin share))
3955 (copy-recursively "bin" share)
3956 (substitute* exe
3957 (("my \\$java_bin = 'java';")
3958 (string-append "my $java_bin = '"
3959 (assoc-ref inputs "java")
3960 "/bin/java';")))
3961 (chmod exe #o555)
3962 (symlink exe (string-append bin "/fastqc"))
3963 #t))))))
3964 (inputs
3965 `(("java" ,icedtea)
3966 ("perl" ,perl) ; needed for the wrapper script
3967 ("java-cisd-jhdf5" ,java-cisd-jhdf5)
3968 ("java-picard-1.113" ,java-picard-1.113)
3969 ("java-jbzip2" ,java-jbzip2)))
3970 (native-inputs
3971 `(("unzip" ,unzip)))
3972 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/fastqc/")
3973 (synopsis "Quality control tool for high throughput sequence data")
3974 (description
3975 "FastQC aims to provide a simple way to do some quality control
3976 checks on raw sequence data coming from high throughput sequencing
3977 pipelines. It provides a modular set of analyses which you can use to
3978 give a quick impression of whether your data has any problems of which
3979 you should be aware before doing any further analysis.
3980
3981 The main functions of FastQC are:
3982
3983 @itemize
3984 @item Import of data from BAM, SAM or FastQ files (any variant);
3985 @item Providing a quick overview to tell you in which areas there may
3986 be problems;
3987 @item Summary graphs and tables to quickly assess your data;
3988 @item Export of results to an HTML based permanent report;
3989 @item Offline operation to allow automated generation of reports
3990 without running the interactive application.
3991 @end itemize\n")
3992 (license license:gpl3+)))
3993
3994 (define-public fastp
3995 (package
3996 (name "fastp")
3997 (version "0.14.1")
3998 (source
3999 (origin
4000 (method git-fetch)
4001 (uri (git-reference
4002 (url "https://github.com/OpenGene/fastp.git")
4003 (commit (string-append "v" version))))
4004 (file-name (git-file-name name version))
4005 (sha256
4006 (base32
4007 "1r6ms5zbf5rps4rgp4z73nczadl00b5rqylw8f684isfz27dp0xh"))))
4008 (build-system gnu-build-system)
4009 (arguments
4010 `(#:tests? #f ; there are none
4011 #:make-flags
4012 (list (string-append "BINDIR=" (assoc-ref %outputs "out") "/bin"))
4013 #:phases
4014 (modify-phases %standard-phases
4015 (delete 'configure)
4016 (add-before 'install 'create-target-dir
4017 (lambda* (#:key outputs #:allow-other-keys)
4018 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
4019 #t)))))
4020 (inputs
4021 `(("zlib" ,zlib)))
4022 (home-page "https://github.com/OpenGene/fastp/")
4023 (synopsis "All-in-one FastQ preprocessor")
4024 (description
4025 "Fastp is a tool designed to provide fast all-in-one preprocessing for
4026 FastQ files. This tool has multi-threading support to afford high
4027 performance.")
4028 (license license:expat)))
4029
4030 (define-public htslib
4031 (package
4032 (name "htslib")
4033 (version "1.9")
4034 (source (origin
4035 (method url-fetch)
4036 (uri (string-append
4037 "https://github.com/samtools/htslib/releases/download/"
4038 version "/htslib-" version ".tar.bz2"))
4039 (sha256
4040 (base32
4041 "16ljv43sc3fxmv63w7b2ff8m1s7h89xhazwmbm1bicz8axq8fjz0"))))
4042 (build-system gnu-build-system)
4043 (inputs
4044 `(("curl" ,curl)
4045 ("openssl" ,openssl)))
4046 ;; This is referred to in the pkg-config file as a required library.
4047 (propagated-inputs
4048 `(("zlib" ,zlib)))
4049 (native-inputs
4050 `(("perl" ,perl)))
4051 (home-page "http://www.htslib.org")
4052 (synopsis "C library for reading/writing high-throughput sequencing data")
4053 (description
4054 "HTSlib is a C library for reading/writing high-throughput sequencing
4055 data. It also provides the @command{bgzip}, @command{htsfile}, and
4056 @command{tabix} utilities.")
4057 ;; Files under cram/ are released under the modified BSD license;
4058 ;; the rest is released under the Expat license
4059 (license (list license:expat license:bsd-3))))
4060
4061 ;; This package should be removed once no packages rely upon it.
4062 (define htslib-1.3
4063 (package
4064 (inherit htslib)
4065 (version "1.3.1")
4066 (source (origin
4067 (method url-fetch)
4068 (uri (string-append
4069 "https://github.com/samtools/htslib/releases/download/"
4070 version "/htslib-" version ".tar.bz2"))
4071 (sha256
4072 (base32
4073 "1rja282fwdc25ql6izkhdyh8ppw8x2fs0w0js78zgkmqjlikmma9"))))))
4074
4075 (define-public idr
4076 (package
4077 (name "idr")
4078 (version "2.0.3")
4079 (source (origin
4080 (method git-fetch)
4081 (uri (git-reference
4082 (url "https://github.com/nboley/idr.git")
4083 (commit version)))
4084 (file-name (git-file-name name version))
4085 (sha256
4086 (base32
4087 "04j876h6z444v2q79drxx283d3k5snd72kj895wbalnl42206x9g"))
4088 ;; Delete generated C code.
4089 (snippet
4090 '(begin (delete-file "idr/inv_cdf.c") #t))))
4091 (build-system python-build-system)
4092 ;; There is only one test ("test_inv_cdf.py") and it tests features that
4093 ;; are no longer part of this package. It also asserts False, which
4094 ;; causes the tests to always fail.
4095 (arguments `(#:tests? #f))
4096 (propagated-inputs
4097 `(("python-scipy" ,python-scipy)
4098 ("python-sympy" ,python-sympy)
4099 ("python-numpy" ,python-numpy)
4100 ("python-matplotlib" ,python-matplotlib)))
4101 (native-inputs
4102 `(("python-cython" ,python-cython)))
4103 (home-page "https://github.com/nboley/idr")
4104 (synopsis "Tool to measure the irreproducible discovery rate (IDR)")
4105 (description
4106 "The IDR (Irreproducible Discovery Rate) framework is a unified approach
4107 to measure the reproducibility of findings identified from replicate
4108 experiments and provide highly stable thresholds based on reproducibility.")
4109 (license license:gpl2+)))
4110
4111 (define-public jellyfish
4112 (package
4113 (name "jellyfish")
4114 (version "2.2.10")
4115 (source (origin
4116 (method url-fetch)
4117 (uri (string-append "https://github.com/gmarcais/Jellyfish/"
4118 "releases/download/v" version
4119 "/jellyfish-" version ".tar.gz"))
4120 (sha256
4121 (base32
4122 "1k4pc3fvv6w1km2yph4m5sd78fbxp21d6xyzgmy0gjihzc6mb249"))))
4123 (build-system gnu-build-system)
4124 (outputs '("out" ;for library
4125 "ruby" ;for Ruby bindings
4126 "python")) ;for Python bindings
4127 (arguments
4128 `(#:configure-flags
4129 (list (string-append "--enable-ruby-binding="
4130 (assoc-ref %outputs "ruby"))
4131 (string-append "--enable-python-binding="
4132 (assoc-ref %outputs "python")))
4133 #:phases
4134 (modify-phases %standard-phases
4135 (add-before 'check 'set-SHELL-variable
4136 (lambda _
4137 ;; generator_manager.hpp either uses /bin/sh or $SHELL
4138 ;; to run tests.
4139 (setenv "SHELL" (which "bash"))
4140 #t)))))
4141 (native-inputs
4142 `(("bc" ,bc)
4143 ("time" ,time)
4144 ("ruby" ,ruby)
4145 ("python" ,python-2)
4146 ("pkg-config" ,pkg-config)))
4147 (inputs
4148 `(("htslib" ,htslib)))
4149 (synopsis "Tool for fast counting of k-mers in DNA")
4150 (description
4151 "Jellyfish is a tool for fast, memory-efficient counting of k-mers in
4152 DNA. A k-mer is a substring of length k, and counting the occurrences of all
4153 such substrings is a central step in many analyses of DNA sequence. Jellyfish
4154 is a command-line program that reads FASTA and multi-FASTA files containing
4155 DNA sequences. It outputs its k-mer counts in a binary format, which can be
4156 translated into a human-readable text format using the @code{jellyfish dump}
4157 command, or queried for specific k-mers with @code{jellyfish query}.")
4158 (home-page "http://www.genome.umd.edu/jellyfish.html")
4159 ;; JELLYFISH seems to be 64-bit only.
4160 (supported-systems '("x86_64-linux" "aarch64-linux" "mips64el-linux"))
4161 ;; The combined work is published under the GPLv3 or later. Individual
4162 ;; files such as lib/jsoncpp.cpp are released under the Expat license.
4163 (license (list license:gpl3+ license:expat))))
4164
4165 (define-public khmer
4166 (package
4167 (name "khmer")
4168 (version "3.0.0a3")
4169 (source
4170 (origin
4171 (method git-fetch)
4172 (uri (git-reference
4173 (url "https://github.com/dib-lab/khmer.git")
4174 (commit (string-append "v" version))))
4175 (file-name (git-file-name name version))
4176 (sha256
4177 (base32
4178 "01l4jczglkl7yfhgvzx8j0df7k54bk1r8sli9ll16i1mis0d8f37"))
4179 (modules '((guix build utils)))
4180 (snippet
4181 '(begin
4182 ;; Delete bundled libraries. We do not replace the bundled seqan
4183 ;; as it is a modified subset of the old version 1.4.1.
4184 ;;
4185 ;; We do not replace the bundled MurmurHash as the canonical
4186 ;; repository for this code 'SMHasher' is unsuitable for providing
4187 ;; a library. See
4188 ;; https://lists.gnu.org/archive/html/guix-devel/2016-06/msg00977.html
4189 (delete-file-recursively "third-party/zlib")
4190 (delete-file-recursively "third-party/bzip2")
4191 (delete-file-recursively "third-party/seqan")
4192 (substitute* "setup.cfg"
4193 (("# libraries = z,bz2")
4194 "libraries = z,bz2")
4195 (("include:third-party/zlib:third-party/bzip2")
4196 "include:"))
4197 #t))))
4198 (build-system python-build-system)
4199 (arguments
4200 `(#:phases
4201 (modify-phases %standard-phases
4202 (add-after 'unpack 'set-cc
4203 (lambda _ (setenv "CC" "gcc") #t))
4204
4205 (add-before 'reset-gzip-timestamps 'make-files-writable
4206 (lambda* (#:key outputs #:allow-other-keys)
4207 ;; Make sure .gz files are writable so that the
4208 ;; 'reset-gzip-timestamps' phase can do its work.
4209 (let ((out (assoc-ref outputs "out")))
4210 (for-each make-file-writable
4211 (find-files out "\\.gz$"))
4212 #t))))))
4213 (native-inputs
4214 `(("python-cython" ,python-cython)
4215 ("python-pytest" ,python-pytest)
4216 ("python-pytest-runner" ,python-pytest-runner)))
4217 (inputs
4218 `(("zlib" ,zlib)
4219 ("bzip2" ,bzip2)
4220 ("seqan" ,seqan-1)
4221 ("python-screed" ,python-screed)
4222 ("python-bz2file" ,python-bz2file)))
4223 (home-page "https://khmer.readthedocs.org/")
4224 (synopsis "K-mer counting, filtering and graph traversal library")
4225 (description "The khmer software is a set of command-line tools for
4226 working with DNA shotgun sequencing data from genomes, transcriptomes,
4227 metagenomes and single cells. Khmer can make de novo assemblies faster, and
4228 sometimes better. Khmer can also identify and fix problems with shotgun
4229 data.")
4230 ;; When building on i686, armhf and mips64el, we get the following error:
4231 ;; error: ['khmer', 'khmer.tests', 'oxli'] require 64-bit operating system
4232 (supported-systems '("x86_64-linux" "aarch64-linux"))
4233 (license license:bsd-3)))
4234
4235 (define-public kaiju
4236 (package
4237 (name "kaiju")
4238 (version "1.6.3")
4239 (source (origin
4240 (method git-fetch)
4241 (uri (git-reference
4242 (url "https://github.com/bioinformatics-centre/kaiju")
4243 (commit (string-append "v" version))))
4244 (file-name (git-file-name name version))
4245 (sha256
4246 (base32
4247 "119pzi0ddzv9mjg4wwa6han0cwr3k3ssn7kirvsjfcq05mi5ka0x"))))
4248 (build-system gnu-build-system)
4249 (arguments
4250 `(#:tests? #f ; There are no tests.
4251 #:phases
4252 (modify-phases %standard-phases
4253 (delete 'configure)
4254 (add-before 'build 'move-to-src-dir
4255 (lambda _ (chdir "src") #t))
4256 (replace 'install
4257 (lambda* (#:key inputs outputs #:allow-other-keys)
4258 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
4259 (mkdir-p bin)
4260 (chdir "..")
4261 (copy-recursively "bin" bin))
4262 #t)))))
4263 (inputs
4264 `(("perl" ,perl)
4265 ("zlib" ,zlib)))
4266 (home-page "http://kaiju.binf.ku.dk/")
4267 (synopsis "Fast and sensitive taxonomic classification for metagenomics")
4268 (description "Kaiju is a program for sensitive taxonomic classification
4269 of high-throughput sequencing reads from metagenomic whole genome sequencing
4270 experiments.")
4271 (license license:gpl3+)))
4272
4273 (define-public macs
4274 (package
4275 (name "macs")
4276 (version "2.1.1.20160309")
4277 (source (origin
4278 (method url-fetch)
4279 (uri (pypi-uri "MACS2" version))
4280 (sha256
4281 (base32
4282 "09ixspd1vcqmz1c81ih70xs4m7qml2iy5vyx1y74zww3iy1vl210"))))
4283 (build-system python-build-system)
4284 (arguments
4285 `(#:python ,python-2 ; only compatible with Python 2.7
4286 #:tests? #f)) ; no test target
4287 (inputs
4288 `(("python-numpy" ,python2-numpy)))
4289 (home-page "https://github.com/taoliu/MACS/")
4290 (synopsis "Model based analysis for ChIP-Seq data")
4291 (description
4292 "MACS is an implementation of a ChIP-Seq analysis algorithm for
4293 identifying transcript factor binding sites named Model-based Analysis of
4294 ChIP-Seq (MACS). MACS captures the influence of genome complexity to evaluate
4295 the significance of enriched ChIP regions and it improves the spatial
4296 resolution of binding sites through combining the information of both
4297 sequencing tag position and orientation.")
4298 (license license:bsd-3)))
4299
4300 (define-public mafft
4301 (package
4302 (name "mafft")
4303 (version "7.394")
4304 (source (origin
4305 (method url-fetch)
4306 (uri (string-append
4307 "https://mafft.cbrc.jp/alignment/software/mafft-" version
4308 "-without-extensions-src.tgz"))
4309 (file-name (string-append name "-" version ".tgz"))
4310 (sha256
4311 (base32
4312 "0bacjkxfg944p5khhyh5rd4y7wkjc9qk4v2jjj442sqlq0f8ar7b"))))
4313 (build-system gnu-build-system)
4314 (arguments
4315 `(#:tests? #f ; no automated tests, though there are tests in the read me
4316 #:make-flags (let ((out (assoc-ref %outputs "out")))
4317 (list (string-append "PREFIX=" out)
4318 (string-append "BINDIR="
4319 (string-append out "/bin"))))
4320 #:phases
4321 (modify-phases %standard-phases
4322 (add-after 'unpack 'enter-dir
4323 (lambda _ (chdir "core") #t))
4324 (add-after 'enter-dir 'patch-makefile
4325 (lambda _
4326 ;; on advice from the MAFFT authors, there is no need to
4327 ;; distribute mafft-profile, mafft-distance, or
4328 ;; mafft-homologs.rb as they are too "specialised".
4329 (substitute* "Makefile"
4330 ;; remove mafft-homologs.rb from SCRIPTS
4331 (("^SCRIPTS = mafft mafft-homologs.rb")
4332 "SCRIPTS = mafft")
4333 ;; remove mafft-homologs from MANPAGES
4334 (("^MANPAGES = mafft.1 mafft-homologs.1")
4335 "MANPAGES = mafft.1")
4336 ;; remove mafft-distance from PROGS
4337 (("^PROGS = dvtditr dndfast7 dndblast sextet5 mafft-distance")
4338 "PROGS = dvtditr dndfast7 dndblast sextet5")
4339 ;; remove mafft-profile from PROGS
4340 (("splittbfast disttbfast tbfast mafft-profile 2cl mccaskillwrap")
4341 "splittbfast disttbfast tbfast f2cl mccaskillwrap")
4342 (("^rm -f mafft-profile mafft-profile.exe") "#")
4343 (("^rm -f mafft-distance mafft-distance.exe") ")#")
4344 ;; do not install MAN pages in libexec folder
4345 (("^\t\\$\\(INSTALL\\) -m 644 \\$\\(MANPAGES\\) \
4346 \\$\\(DESTDIR\\)\\$\\(LIBDIR\\)") "#"))
4347 #t))
4348 (add-after 'enter-dir 'patch-paths
4349 (lambda* (#:key inputs #:allow-other-keys)
4350 (substitute* '("pairash.c"
4351 "mafft.tmpl")
4352 (("perl") (which "perl"))
4353 (("([\"`| ])awk" _ prefix)
4354 (string-append prefix (which "awk")))
4355 (("grep") (which "grep")))
4356 #t))
4357 (delete 'configure)
4358 (add-after 'install 'wrap-programs
4359 (lambda* (#:key outputs #:allow-other-keys)
4360 (let* ((out (assoc-ref outputs "out"))
4361 (bin (string-append out "/bin"))
4362 (path (string-append
4363 (assoc-ref %build-inputs "coreutils") "/bin:")))
4364 (for-each (lambda (file)
4365 (wrap-program file
4366 `("PATH" ":" prefix (,path))))
4367 (find-files bin)))
4368 #t)))))
4369 (inputs
4370 `(("perl" ,perl)
4371 ("ruby" ,ruby)
4372 ("gawk" ,gawk)
4373 ("grep" ,grep)
4374 ("coreutils" ,coreutils)))
4375 (home-page "http://mafft.cbrc.jp/alignment/software/")
4376 (synopsis "Multiple sequence alignment program")
4377 (description
4378 "MAFFT offers a range of multiple alignment methods for nucleotide and
4379 protein sequences. For instance, it offers L-INS-i (accurate; for alignment
4380 of <~200 sequences) and FFT-NS-2 (fast; for alignment of <~30,000
4381 sequences).")
4382 (license (license:non-copyleft
4383 "http://mafft.cbrc.jp/alignment/software/license.txt"
4384 "BSD-3 with different formatting"))))
4385
4386 (define-public mash
4387 (package
4388 (name "mash")
4389 (version "2.1")
4390 (source (origin
4391 (method git-fetch)
4392 (uri (git-reference
4393 (url "https://github.com/marbl/mash.git")
4394 (commit (string-append "v" version))))
4395 (file-name (git-file-name name version))
4396 (sha256
4397 (base32
4398 "049hwcc059p2fd9vwndn63laifvvsi0wmv84i6y1fr79k15dxwy6"))
4399 (modules '((guix build utils)))
4400 (snippet
4401 '(begin
4402 ;; Delete bundled kseq.
4403 ;; TODO: Also delete bundled murmurhash and open bloom filter.
4404 (delete-file "src/mash/kseq.h")
4405 #t))))
4406 (build-system gnu-build-system)
4407 (arguments
4408 `(#:tests? #f ; No tests.
4409 #:configure-flags
4410 (list
4411 (string-append "--with-capnp=" (assoc-ref %build-inputs "capnproto"))
4412 (string-append "--with-gsl=" (assoc-ref %build-inputs "gsl")))
4413 #:make-flags (list "CC=gcc")
4414 #:phases
4415 (modify-phases %standard-phases
4416 (add-after 'unpack 'fix-includes
4417 (lambda _
4418 (substitute* '("src/mash/Sketch.cpp"
4419 "src/mash/CommandFind.cpp"
4420 "src/mash/CommandScreen.cpp")
4421 (("^#include \"kseq\\.h\"")
4422 "#include \"htslib/kseq.h\""))
4423 #t))
4424 (add-after 'fix-includes 'use-c++14
4425 (lambda _
4426 ;; capnproto 0.7 requires c++14 to build
4427 (substitute* "configure.ac"
4428 (("c\\+\\+11") "c++14"))
4429 (substitute* "Makefile.in"
4430 (("c\\+\\+11") "c++14"))
4431 #t)))))
4432 (native-inputs
4433 `(("autoconf" ,autoconf)
4434 ;; Capnproto and htslib are statically embedded in the final
4435 ;; application. Therefore we also list their licenses, below.
4436 ("capnproto" ,capnproto)
4437 ("htslib" ,htslib)))
4438 (inputs
4439 `(("gsl" ,gsl)
4440 ("zlib" ,zlib)))
4441 (supported-systems '("x86_64-linux"))
4442 (home-page "https://mash.readthedocs.io")
4443 (synopsis "Fast genome and metagenome distance estimation using MinHash")
4444 (description "Mash is a fast sequence distance estimator that uses the
4445 MinHash algorithm and is designed to work with genomes and metagenomes in the
4446 form of assemblies or reads.")
4447 (license (list license:bsd-3 ; Mash
4448 license:expat ; HTSlib and capnproto
4449 license:public-domain ; MurmurHash 3
4450 license:cpl1.0)))) ; Open Bloom Filter
4451
4452 (define-public metabat
4453 (package
4454 (name "metabat")
4455 (version "2.12.1")
4456 (source
4457 (origin
4458 (method git-fetch)
4459 (uri (git-reference
4460 (url "https://bitbucket.org/berkeleylab/metabat.git")
4461 (commit (string-append "v" version))))
4462 (file-name (git-file-name name version))
4463 (sha256
4464 (base32
4465 "0hyg2smw1nz69mfvjpk45xyyychmda92c80a0cv7baji84ri4iyn"))
4466 (patches (search-patches "metabat-fix-compilation.patch"))))
4467 (build-system scons-build-system)
4468 (arguments
4469 `(#:scons ,scons-python2
4470 #:scons-flags
4471 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
4472 (string-append "BOOST_ROOT=" (assoc-ref %build-inputs "boost")))
4473 #:tests? #f ;; Tests are run during the build phase.
4474 #:phases
4475 (modify-phases %standard-phases
4476 (add-after 'unpack 'fix-includes
4477 (lambda _
4478 (substitute* "src/BamUtils.h"
4479 (("^#include \"bam/bam\\.h\"")
4480 "#include \"samtools/bam.h\"")
4481 (("^#include \"bam/sam\\.h\"")
4482 "#include \"samtools/sam.h\""))
4483 (substitute* "src/KseqReader.h"
4484 (("^#include \"bam/kseq\\.h\"")
4485 "#include \"htslib/kseq.h\""))
4486 #t))
4487 (add-after 'unpack 'fix-scons
4488 (lambda* (#:key inputs #:allow-other-keys)
4489 (substitute* "SConstruct"
4490 (("^htslib_dir += 'samtools'")
4491 (string-append "htslib_dir = '"
4492 (assoc-ref inputs "htslib")
4493 "'"))
4494 (("^samtools_dir = 'samtools'")
4495 (string-append "samtools_dir = '"
4496 (assoc-ref inputs "samtools")
4497 "'"))
4498 (("^findStaticOrShared\\('bam', hts_lib")
4499 (string-append "findStaticOrShared('bam', '"
4500 (assoc-ref inputs "samtools")
4501 "/lib'"))
4502 ;; Do not distribute README.
4503 (("^env\\.Install\\(idir_prefix, 'README\\.md'\\)") ""))
4504 #t)))))
4505 (inputs
4506 `(("zlib" ,zlib)
4507 ("perl" ,perl)
4508 ("samtools" ,samtools)
4509 ("htslib" ,htslib)
4510 ("boost" ,boost)))
4511 (home-page "https://bitbucket.org/berkeleylab/metabat")
4512 (synopsis
4513 "Reconstruction of single genomes from complex microbial communities")
4514 (description
4515 "Grouping large genomic fragments assembled from shotgun metagenomic
4516 sequences to deconvolute complex microbial communities, or metagenome binning,
4517 enables the study of individual organisms and their interactions. MetaBAT is
4518 an automated metagenome binning software, which integrates empirical
4519 probabilistic distances of genome abundance and tetranucleotide frequency.")
4520 ;; The source code contains inline assembly.
4521 (supported-systems '("x86_64-linux" "i686-linux"))
4522 (license (license:non-copyleft "file://license.txt"
4523 "See license.txt in the distribution."))))
4524
4525 (define-public minced
4526 (package
4527 (name "minced")
4528 (version "0.3.2")
4529 (source (origin
4530 (method git-fetch)
4531 (uri (git-reference
4532 (url "https://github.com/ctSkennerton/minced.git")
4533 (commit version)))
4534 (file-name (git-file-name name version))
4535 (sha256
4536 (base32
4537 "1f5h9him0gd355cnx7p6pnxpknhckd4g0v62mg8zyhfbx9as25fv"))))
4538 (build-system gnu-build-system)
4539 (arguments
4540 `(#:test-target "test"
4541 #:phases
4542 (modify-phases %standard-phases
4543 (delete 'configure)
4544 (add-before 'check 'fix-test
4545 (lambda _
4546 ;; Fix test for latest version.
4547 (substitute* "t/Aquifex_aeolicus_VF5.expected"
4548 (("minced:0.1.6") "minced:0.2.0"))
4549 #t))
4550 (replace 'install ; No install target.
4551 (lambda* (#:key inputs outputs #:allow-other-keys)
4552 (let* ((out (assoc-ref outputs "out"))
4553 (bin (string-append out "/bin"))
4554 (wrapper (string-append bin "/minced")))
4555 ;; Minced comes with a wrapper script that tries to figure out where
4556 ;; it is located before running the JAR. Since these paths are known
4557 ;; to us, we build our own wrapper to avoid coreutils dependency.
4558 (install-file "minced.jar" bin)
4559 (with-output-to-file wrapper
4560 (lambda _
4561 (display
4562 (string-append
4563 "#!" (assoc-ref inputs "bash") "/bin/sh\n\n"
4564 (assoc-ref inputs "jre") "/bin/java -jar "
4565 bin "/minced.jar \"$@\"\n"))))
4566 (chmod wrapper #o555))
4567 #t)))))
4568 (native-inputs
4569 `(("jdk" ,icedtea "jdk")))
4570 (inputs
4571 `(("bash" ,bash)
4572 ("jre" ,icedtea "out")))
4573 (home-page "https://github.com/ctSkennerton/minced")
4574 (synopsis "Mining CRISPRs in Environmental Datasets")
4575 (description
4576 "MinCED is a program to find Clustered Regularly Interspaced Short
4577 Palindromic Repeats (CRISPRs) in DNA sequences. It can be used for
4578 unassembled metagenomic reads, but is mainly designed for full genomes and
4579 assembled metagenomic sequence.")
4580 (license license:gpl3+)))
4581
4582 (define-public miso
4583 (package
4584 (name "miso")
4585 (version "0.5.4")
4586 (source (origin
4587 (method url-fetch)
4588 (uri (pypi-uri "misopy" version))
4589 (sha256
4590 (base32
4591 "1z3x0vd8ma7pdrnywj7i3kgwl89sdkwrrn62zl7r5calqaq2hyip"))
4592 (modules '((guix build utils)))
4593 (snippet '(begin
4594 (substitute* "setup.py"
4595 ;; Use setuptools, or else the executables are not
4596 ;; installed.
4597 (("distutils.core") "setuptools")
4598 ;; use "gcc" instead of "cc" for compilation
4599 (("^defines")
4600 "cc.set_executables(
4601 compiler='gcc',
4602 compiler_so='gcc',
4603 linker_exe='gcc',
4604 linker_so='gcc -shared'); defines"))
4605 #t))))
4606 (build-system python-build-system)
4607 (arguments
4608 `(#:python ,python-2 ; only Python 2 is supported
4609 #:tests? #f)) ; no "test" target
4610 (inputs
4611 `(("samtools" ,samtools)
4612 ("python-numpy" ,python2-numpy)
4613 ("python-pysam" ,python2-pysam)
4614 ("python-scipy" ,python2-scipy)
4615 ("python-matplotlib" ,python2-matplotlib)))
4616 (native-inputs
4617 `(("python-mock" ,python2-mock) ;for tests
4618 ("python-pytz" ,python2-pytz))) ;for tests
4619 (home-page "http://genes.mit.edu/burgelab/miso/index.html")
4620 (synopsis "Mixture of Isoforms model for RNA-Seq isoform quantitation")
4621 (description
4622 "MISO (Mixture-of-Isoforms) is a probabilistic framework that quantitates
4623 the expression level of alternatively spliced genes from RNA-Seq data, and
4624 identifies differentially regulated isoforms or exons across samples. By
4625 modeling the generative process by which reads are produced from isoforms in
4626 RNA-Seq, the MISO model uses Bayesian inference to compute the probability
4627 that a read originated from a particular isoform.")
4628 (license license:gpl2)))
4629
4630 (define-public muscle
4631 (package
4632 (name "muscle")
4633 (version "3.8.1551")
4634 (source (origin
4635 (method url-fetch/tarbomb)
4636 (uri (string-append
4637 "http://www.drive5.com/muscle/muscle_src_"
4638 version ".tar.gz"))
4639 (sha256
4640 (base32
4641 "0bj8kj7sdizy3987zx6w7axihk40fk8rn76mpbqqjcnd64i5a367"))))
4642 (build-system gnu-build-system)
4643 (arguments
4644 `(#:make-flags (list "LDLIBS = -lm")
4645 #:phases
4646 (modify-phases %standard-phases
4647 (delete 'configure)
4648 (replace 'check
4649 ;; There are no tests, so just test if it runs.
4650 (lambda _ (invoke "./muscle" "-version") #t))
4651 (replace 'install
4652 (lambda* (#:key outputs #:allow-other-keys)
4653 (let* ((out (assoc-ref outputs "out"))
4654 (bin (string-append out "/bin")))
4655 (install-file "muscle" bin)
4656 #t))))))
4657 (home-page "http://www.drive5.com/muscle")
4658 (synopsis "Multiple sequence alignment program")
4659 (description
4660 "MUSCLE aims to be a fast and accurate multiple sequence alignment
4661 program for nucleotide and protein sequences.")
4662 ;; License information found in 'muscle -h' and usage.cpp.
4663 (license license:public-domain)))
4664
4665 (define-public newick-utils
4666 ;; There are no recent releases so we package from git.
4667 (let ((commit "da121155a977197cab9fbb15953ca1b40b11eb87"))
4668 (package
4669 (name "newick-utils")
4670 (version (string-append "1.6-1." (string-take commit 8)))
4671 (source (origin
4672 (method git-fetch)
4673 (uri (git-reference
4674 (url "https://github.com/tjunier/newick_utils.git")
4675 (commit commit)))
4676 (file-name (string-append name "-" version "-checkout"))
4677 (sha256
4678 (base32
4679 "1hkw21rq1mwf7xp0rmbb2gqc0i6p11108m69i7mr7xcjl268pxnb"))))
4680 (build-system gnu-build-system)
4681 (inputs
4682 ;; XXX: TODO: Enable Lua and Guile bindings.
4683 ;; https://github.com/tjunier/newick_utils/issues/13
4684 `(("libxml2" ,libxml2)
4685 ("flex" ,flex)
4686 ("bison" ,bison)))
4687 (native-inputs
4688 `(("autoconf" ,autoconf)
4689 ("automake" ,automake)
4690 ("libtool" ,libtool)))
4691 (synopsis "Programs for working with newick format phylogenetic trees")
4692 (description
4693 "Newick-utils is a suite of utilities for processing phylogenetic trees
4694 in Newick format. Functions include re-rooting, extracting subtrees,
4695 trimming, pruning, condensing, drawing (ASCII graphics or SVG).")
4696 (home-page "https://github.com/tjunier/newick_utils")
4697 (license license:bsd-3))))
4698
4699 (define-public orfm
4700 (package
4701 (name "orfm")
4702 (version "0.7.1")
4703 (source (origin
4704 (method url-fetch)
4705 (uri (string-append
4706 "https://github.com/wwood/OrfM/releases/download/v"
4707 version "/orfm-" version ".tar.gz"))
4708 (sha256
4709 (base32
4710 "16iigyr2gd8x0imzkk1dr3k5xsds9bpmwg31ayvjg0f4pir9rwqr"))))
4711 (build-system gnu-build-system)
4712 (inputs `(("zlib" ,zlib)))
4713 (native-inputs
4714 `(("ruby-bio-commandeer" ,ruby-bio-commandeer)
4715 ("ruby-rspec" ,ruby-rspec)
4716 ("ruby" ,ruby)))
4717 (synopsis "Simple and not slow open reading frame (ORF) caller")
4718 (description
4719 "An ORF caller finds stretches of DNA that, when translated, are not
4720 interrupted by stop codons. OrfM finds and prints these ORFs.")
4721 (home-page "https://github.com/wwood/OrfM")
4722 (license license:lgpl3+)))
4723
4724 (define-public python2-pbcore
4725 (package
4726 (name "python2-pbcore")
4727 (version "1.2.10")
4728 (source (origin
4729 (method url-fetch)
4730 (uri (pypi-uri "pbcore" version))
4731 (sha256
4732 (base32
4733 "1kjmv891d6qbpp4shhhvkl02ff4q5xlpnls2513sm2cjcrs52f1i"))))
4734 (build-system python-build-system)
4735 (arguments `(#:python ,python-2)) ; pbcore requires Python 2.7
4736 (propagated-inputs
4737 `(("python-cython" ,python2-cython)
4738 ("python-numpy" ,python2-numpy)
4739 ("python-pysam" ,python2-pysam)
4740 ("python-h5py" ,python2-h5py)))
4741 (native-inputs
4742 `(("python-nose" ,python2-nose)
4743 ("python-sphinx" ,python2-sphinx)
4744 ("python-pyxb" ,python2-pyxb)))
4745 (home-page "http://pacificbiosciences.github.io/pbcore/")
4746 (synopsis "Library for reading and writing PacBio data files")
4747 (description
4748 "The pbcore package provides Python APIs for interacting with PacBio data
4749 files and writing bioinformatics applications.")
4750 (license license:bsd-3)))
4751
4752 (define-public python2-warpedlmm
4753 (package
4754 (name "python2-warpedlmm")
4755 (version "0.21")
4756 (source
4757 (origin
4758 (method url-fetch)
4759 (uri (pypi-uri "WarpedLMM" version ".zip"))
4760 (sha256
4761 (base32
4762 "1agfz6zqa8nc6cw47yh0s3y14gkpa9wqazwcj7mwwj3ffnw39p3j"))))
4763 (build-system python-build-system)
4764 (arguments
4765 `(#:python ,python-2)) ; requires Python 2.7
4766 (propagated-inputs
4767 `(("python-scipy" ,python2-scipy)
4768 ("python-numpy" ,python2-numpy)
4769 ("python-matplotlib" ,python2-matplotlib)
4770 ("python-fastlmm" ,python2-fastlmm)
4771 ("python-pandas" ,python2-pandas)
4772 ("python-pysnptools" ,python2-pysnptools)))
4773 (native-inputs
4774 `(("python-mock" ,python2-mock)
4775 ("python-nose" ,python2-nose)
4776 ("unzip" ,unzip)))
4777 (home-page "https://github.com/PMBio/warpedLMM")
4778 (synopsis "Implementation of warped linear mixed models")
4779 (description
4780 "WarpedLMM is a Python implementation of the warped linear mixed model,
4781 which automatically learns an optimal warping function (or transformation) for
4782 the phenotype as it models the data.")
4783 (license license:asl2.0)))
4784
4785 (define-public pbtranscript-tofu
4786 (let ((commit "8f5467fe6a4472bcfb4226c8720993c8507adfe4"))
4787 (package
4788 (name "pbtranscript-tofu")
4789 (version (string-append "2.2.3." (string-take commit 7)))
4790 (source (origin
4791 (method git-fetch)
4792 (uri (git-reference
4793 (url "https://github.com/PacificBiosciences/cDNA_primer.git")
4794 (commit commit)))
4795 (file-name (string-append name "-" version "-checkout"))
4796 (sha256
4797 (base32
4798 "1lgnpi35ihay42qx0b6yl3kkgra723i413j33kvs0kvs61h82w0f"))
4799 (modules '((guix build utils)))
4800 (snippet
4801 '(begin
4802 ;; remove bundled Cython sources
4803 (delete-file "pbtranscript-tofu/pbtranscript/Cython-0.20.1.tar.gz")
4804 #t))))
4805 (build-system python-build-system)
4806 (arguments
4807 `(#:python ,python-2
4808 ;; FIXME: Tests fail with "No such file or directory:
4809 ;; pbtools/pbtranscript/modified_bx_intervals/intersection_unique.so"
4810 #:tests? #f
4811 #:phases
4812 (modify-phases %standard-phases
4813 (add-after 'unpack 'enter-directory
4814 (lambda _
4815 (chdir "pbtranscript-tofu/pbtranscript/")
4816 #t))
4817 ;; With setuptools version 18.0 and later this setup.py hack causes
4818 ;; a build error, so we disable it.
4819 (add-after 'enter-directory 'patch-setuppy
4820 (lambda _
4821 (substitute* "setup.py"
4822 (("if 'setuptools.extension' in sys.modules:")
4823 "if False:"))
4824 #t)))))
4825 (inputs
4826 `(("python-numpy" ,python2-numpy)
4827 ("python-bx-python" ,python2-bx-python)
4828 ("python-networkx" ,python2-networkx)
4829 ("python-scipy" ,python2-scipy)
4830 ("python-pbcore" ,python2-pbcore)
4831 ("python-h5py" ,python2-h5py)))
4832 (native-inputs
4833 `(("python-cython" ,python2-cython)
4834 ("python-nose" ,python2-nose)))
4835 (home-page "https://github.com/PacificBiosciences/cDNA_primer")
4836 (synopsis "Analyze transcriptome data generated with the Iso-Seq protocol")
4837 (description
4838 "pbtranscript-tofu contains scripts to analyze transcriptome data
4839 generated using the PacBio Iso-Seq protocol.")
4840 (license license:bsd-3))))
4841
4842 (define-public prank
4843 (package
4844 (name "prank")
4845 (version "170427")
4846 (source (origin
4847 (method url-fetch)
4848 (uri (string-append
4849 "http://wasabiapp.org/download/prank/prank.source."
4850 version ".tgz"))
4851 (sha256
4852 (base32
4853 "0nc8g9c5rkdxcir46s0in9ci1sxwzbjibxrvkksf22ybnplvagk2"))))
4854 (build-system gnu-build-system)
4855 (arguments
4856 `(#:phases
4857 (modify-phases %standard-phases
4858 (add-after 'unpack 'enter-src-dir
4859 (lambda _
4860 (chdir "src")
4861 #t))
4862 (add-after 'unpack 'remove-m64-flag
4863 ;; Prank will build with the correct 'bit-ness' without this flag
4864 ;; and this allows building on 32-bit machines.
4865 (lambda _ (substitute* "src/Makefile"
4866 (("-m64") ""))
4867 #t))
4868 (delete 'configure)
4869 (replace 'install
4870 (lambda* (#:key outputs #:allow-other-keys)
4871 (let* ((out (assoc-ref outputs "out"))
4872 (bin (string-append out "/bin"))
4873 (man (string-append out "/share/man/man1"))
4874 (path (string-append
4875 (assoc-ref %build-inputs "mafft") "/bin:"
4876 (assoc-ref %build-inputs "exonerate") "/bin:"
4877 (assoc-ref %build-inputs "bppsuite") "/bin")))
4878 (install-file "prank" bin)
4879 (wrap-program (string-append bin "/prank")
4880 `("PATH" ":" prefix (,path)))
4881 (install-file "prank.1" man))
4882 #t)))))
4883 (inputs
4884 `(("mafft" ,mafft)
4885 ("exonerate" ,exonerate)
4886 ("bppsuite" ,bppsuite)))
4887 (home-page "http://wasabiapp.org/software/prank/")
4888 (synopsis "Probabilistic multiple sequence alignment program")
4889 (description
4890 "PRANK is a probabilistic multiple sequence alignment program for DNA,
4891 codon and amino-acid sequences. It is based on a novel algorithm that treats
4892 insertions correctly and avoids over-estimation of the number of deletion
4893 events. In addition, PRANK borrows ideas from maximum likelihood methods used
4894 in phylogenetics and correctly takes into account the evolutionary distances
4895 between sequences. Lastly, PRANK allows for defining a potential structure
4896 for sequences to be aligned and then, simultaneously with the alignment,
4897 predicts the locations of structural units in the sequences.")
4898 (license license:gpl2+)))
4899
4900 (define-public proteinortho
4901 (package
4902 (name "proteinortho")
4903 (version "5.16b")
4904 (source
4905 (origin
4906 (method url-fetch)
4907 (uri
4908 (string-append
4909 "http://www.bioinf.uni-leipzig.de/Software/proteinortho/proteinortho_v"
4910 version "_src.tar.gz"))
4911 (sha256
4912 (base32
4913 "1wl0dawpssqwfjvr651r4wlww8hhjin8nba6xh71ks7sbypx886j"))))
4914 (build-system gnu-build-system)
4915 (arguments
4916 `(#:test-target "test"
4917 #:phases
4918 (modify-phases %standard-phases
4919 (replace 'configure
4920 ;; There is no configure script, so we modify the Makefile directly.
4921 (lambda* (#:key outputs #:allow-other-keys)
4922 (substitute* "Makefile"
4923 (("INSTALLDIR=.*")
4924 (string-append
4925 "INSTALLDIR=" (assoc-ref outputs "out") "/bin\n")))
4926 #t))
4927 (add-before 'install 'make-install-directory
4928 ;; The install directory is not created during 'make install'.
4929 (lambda* (#:key outputs #:allow-other-keys)
4930 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
4931 #t))
4932 (add-after 'install 'wrap-programs
4933 (lambda* (#:key inputs outputs #:allow-other-keys)
4934 (let* ((path (getenv "PATH"))
4935 (out (assoc-ref outputs "out"))
4936 (binary (string-append out "/bin/proteinortho5.pl")))
4937 (wrap-program binary `("PATH" ":" prefix (,path))))
4938 #t)))))
4939 (inputs
4940 `(("perl" ,perl)
4941 ("python" ,python-2)
4942 ("blast+" ,blast+)))
4943 (home-page "http://www.bioinf.uni-leipzig.de/Software/proteinortho")
4944 (synopsis "Detect orthologous genes across species")
4945 (description
4946 "Proteinortho is a tool to detect orthologous genes across different
4947 species. For doing so, it compares similarities of given gene sequences and
4948 clusters them to find significant groups. The algorithm was designed to handle
4949 large-scale data and can be applied to hundreds of species at once.")
4950 (license license:gpl2+)))
4951
4952 (define-public pyicoteo
4953 (package
4954 (name "pyicoteo")
4955 (version "2.0.7")
4956 (source
4957 (origin
4958 (method git-fetch)
4959 (uri (git-reference
4960 (url "https://bitbucket.org/regulatorygenomicsupf/pyicoteo.git")
4961 (commit (string-append "v" version))))
4962 (file-name (git-file-name name version))
4963 (sha256
4964 (base32
4965 "0hz5g8d25lbjy1wpscr490l0lmyvaix893hhax4fxnh1h9w34w8p"))))
4966 (build-system python-build-system)
4967 (arguments
4968 `(#:python ,python-2 ; does not work with Python 3
4969 #:tests? #f)) ; there are no tests
4970 (inputs
4971 `(("python2-matplotlib" ,python2-matplotlib)))
4972 (home-page "https://bitbucket.org/regulatorygenomicsupf/pyicoteo")
4973 (synopsis "Analyze high-throughput genetic sequencing data")
4974 (description
4975 "Pyicoteo is a suite of tools for the analysis of high-throughput genetic
4976 sequencing data. It works with genomic coordinates. There are currently six
4977 different command-line tools:
4978
4979 @enumerate
4980 @item pyicoregion: for generating exploratory regions automatically;
4981 @item pyicoenrich: for differential enrichment between two conditions;
4982 @item pyicoclip: for calling CLIP-Seq peaks without a control;
4983 @item pyicos: for genomic coordinates manipulation;
4984 @item pyicoller: for peak calling on punctuated ChIP-Seq;
4985 @item pyicount: to count how many reads from N experiment files overlap in a
4986 region file;
4987 @item pyicotrocol: to combine operations from pyicoteo.
4988 @end enumerate\n")
4989 (license license:gpl3+)))
4990
4991 (define-public prodigal
4992 (package
4993 (name "prodigal")
4994 (version "2.6.3")
4995 (source (origin
4996 (method git-fetch)
4997 (uri (git-reference
4998 (url "https://github.com/hyattpd/Prodigal.git")
4999 (commit (string-append "v" version))))
5000 (file-name (git-file-name name version))
5001 (sha256
5002 (base32
5003 "1fs1hqk83qjbjhrvhw6ni75zakx5ki1ayy3v6wwkn3xvahc9hi5s"))))
5004 (build-system gnu-build-system)
5005 (arguments
5006 `(#:tests? #f ;no check target
5007 #:make-flags (list (string-append "INSTALLDIR="
5008 (assoc-ref %outputs "out")
5009 "/bin"))
5010 #:phases
5011 (modify-phases %standard-phases
5012 (delete 'configure))))
5013 (home-page "http://prodigal.ornl.gov")
5014 (synopsis "Protein-coding gene prediction for Archaea and Bacteria")
5015 (description
5016 "Prodigal runs smoothly on finished genomes, draft genomes, and
5017 metagenomes, providing gene predictions in GFF3, Genbank, or Sequin table
5018 format. It runs quickly, in an unsupervised fashion, handles gaps, handles
5019 partial genes, and identifies translation initiation sites.")
5020 (license license:gpl3+)))
5021
5022 (define-public roary
5023 (package
5024 (name "roary")
5025 (version "3.12.0")
5026 (source
5027 (origin
5028 (method url-fetch)
5029 (uri (string-append
5030 "mirror://cpan/authors/id/A/AJ/AJPAGE/Bio-Roary-"
5031 version ".tar.gz"))
5032 (sha256
5033 (base32
5034 "0qxrds9wx7cfhlkihrp6697kx0flhhxymap9fwan0b3rbdhcnmff"))))
5035 (build-system perl-build-system)
5036 (arguments
5037 `(#:phases
5038 (modify-phases %standard-phases
5039 (delete 'configure)
5040 (delete 'build)
5041 (replace 'check
5042 (lambda _
5043 ;; The tests are not run by default, so we run each test file
5044 ;; directly.
5045 (setenv "PATH" (string-append (getcwd) "/bin" ":"
5046 (getenv "PATH")))
5047 (setenv "PERL5LIB" (string-append (getcwd) "/lib" ":"
5048 (getenv "PERL5LIB")))
5049 (for-each (lambda (file)
5050 (display file)(display "\n")
5051 (invoke "perl" file))
5052 (find-files "t" ".*\\.t$"))
5053 #t))
5054 (replace 'install
5055 ;; There is no 'install' target in the Makefile.
5056 (lambda* (#:key outputs #:allow-other-keys)
5057 (let* ((out (assoc-ref outputs "out"))
5058 (bin (string-append out "/bin"))
5059 (perl (string-append out "/lib/perl5/site_perl"))
5060 (roary-plots "contrib/roary_plots"))
5061 (mkdir-p bin)
5062 (mkdir-p perl)
5063 (copy-recursively "bin" bin)
5064 (copy-recursively "lib" perl)
5065 #t)))
5066 (add-after 'install 'wrap-programs
5067 (lambda* (#:key inputs outputs #:allow-other-keys)
5068 (let* ((out (assoc-ref outputs "out"))
5069 (perl5lib (getenv "PERL5LIB"))
5070 (path (getenv "PATH")))
5071 (for-each (lambda (prog)
5072 (let ((binary (string-append out "/" prog)))
5073 (wrap-program binary
5074 `("PERL5LIB" ":" prefix
5075 (,(string-append perl5lib ":" out
5076 "/lib/perl5/site_perl"))))
5077 (wrap-program binary
5078 `("PATH" ":" prefix
5079 (,(string-append path ":" out "/bin"))))))
5080 (find-files "bin" ".*[^R]$"))
5081 (let ((file
5082 (string-append out "/bin/roary-create_pan_genome_plots.R"))
5083 (r-site-lib (getenv "R_LIBS_SITE"))
5084 (coreutils-path
5085 (string-append (assoc-ref inputs "coreutils") "/bin")))
5086 (wrap-program file
5087 `("R_LIBS_SITE" ":" prefix
5088 (,(string-append r-site-lib ":" out "/site-library/"))))
5089 (wrap-program file
5090 `("PATH" ":" prefix
5091 (,(string-append coreutils-path ":" out "/bin"))))))
5092 #t)))))
5093 (native-inputs
5094 `(("perl-env-path" ,perl-env-path)
5095 ("perl-test-files" ,perl-test-files)
5096 ("perl-test-most" ,perl-test-most)
5097 ("perl-test-output" ,perl-test-output)))
5098 (inputs
5099 `(("perl-array-utils" ,perl-array-utils)
5100 ("bioperl" ,bioperl-minimal)
5101 ("perl-digest-md5-file" ,perl-digest-md5-file)
5102 ("perl-exception-class" ,perl-exception-class)
5103 ("perl-file-find-rule" ,perl-file-find-rule)
5104 ("perl-file-grep" ,perl-file-grep)
5105 ("perl-file-slurper" ,perl-file-slurper)
5106 ("perl-file-which" ,perl-file-which)
5107 ("perl-graph" ,perl-graph)
5108 ("perl-graph-readwrite" ,perl-graph-readwrite)
5109 ("perl-log-log4perl" ,perl-log-log4perl)
5110 ("perl-moose" ,perl-moose)
5111 ("perl-perlio-utf8_strict" ,perl-perlio-utf8_strict)
5112 ("perl-text-csv" ,perl-text-csv)
5113 ("bedtools" ,bedtools)
5114 ("cd-hit" ,cd-hit)
5115 ("blast+" ,blast+)
5116 ("mcl" ,mcl)
5117 ("parallel" ,parallel)
5118 ("prank" ,prank)
5119 ("mafft" ,mafft)
5120 ("fasttree" ,fasttree)
5121 ("grep" ,grep)
5122 ("sed" ,sed)
5123 ("gawk" ,gawk)
5124 ("r-minimal" ,r-minimal)
5125 ("r-ggplot2" ,r-ggplot2)
5126 ("coreutils" ,coreutils)))
5127 (home-page "http://sanger-pathogens.github.io/Roary")
5128 (synopsis "High speed stand-alone pan genome pipeline")
5129 (description
5130 "Roary is a high speed stand alone pan genome pipeline, which takes
5131 annotated assemblies in GFF3 format (produced by the Prokka program) and
5132 calculates the pan genome. Using a standard desktop PC, it can analyse
5133 datasets with thousands of samples, without compromising the quality of the
5134 results. 128 samples can be analysed in under 1 hour using 1 GB of RAM and a
5135 single processor. Roary is not intended for metagenomics or for comparing
5136 extremely diverse sets of genomes.")
5137 (license license:gpl3)))
5138
5139 (define-public raxml
5140 (package
5141 (name "raxml")
5142 (version "8.2.12")
5143 (source
5144 (origin
5145 (method git-fetch)
5146 (uri (git-reference
5147 (url "https://github.com/stamatak/standard-RAxML.git")
5148 (commit (string-append "v" version))))
5149 (file-name (git-file-name name version))
5150 (sha256
5151 (base32
5152 "1jqjzhch0rips0vp04prvb8vmc20c5pdmsqn8knadcf91yy859fh"))))
5153 (build-system gnu-build-system)
5154 (arguments
5155 `(#:tests? #f ; There are no tests.
5156 ;; Use 'standard' Makefile rather than SSE or AVX ones.
5157 #:make-flags (list "-f" "Makefile.HYBRID.gcc")
5158 #:phases
5159 (modify-phases %standard-phases
5160 (delete 'configure)
5161 (replace 'install
5162 (lambda* (#:key outputs #:allow-other-keys)
5163 (let* ((out (assoc-ref outputs "out"))
5164 (bin (string-append out "/bin"))
5165 (executable "raxmlHPC-HYBRID"))
5166 (install-file executable bin)
5167 (symlink (string-append bin "/" executable) "raxml"))
5168 #t)))))
5169 (inputs
5170 `(("openmpi" ,openmpi)))
5171 (home-page "http://sco.h-its.org/exelixis/web/software/raxml/index.html")
5172 (synopsis "Randomized Axelerated Maximum Likelihood phylogenetic trees")
5173 (description
5174 "RAxML is a tool for phylogenetic analysis and post-analysis of large
5175 phylogenies.")
5176 ;; The source includes x86 specific code
5177 (supported-systems '("x86_64-linux" "i686-linux"))
5178 (license license:gpl2+)))
5179
5180 (define-public rsem
5181 (package
5182 (name "rsem")
5183 (version "1.3.1")
5184 (source
5185 (origin
5186 (method git-fetch)
5187 (uri (git-reference
5188 (url "https://github.com/deweylab/RSEM.git")
5189 (commit (string-append "v" version))))
5190 (sha256
5191 (base32 "1jlq11d1p8qp64w75yj8cnbbd1a93viq10pzsbwal7vdn8fg13j1"))
5192 (file-name (git-file-name name version))
5193 (modules '((guix build utils)))
5194 (snippet
5195 '(begin
5196 ;; remove bundled copy of boost and samtools
5197 (delete-file-recursively "boost")
5198 (delete-file-recursively "samtools-1.3")
5199 #t))))
5200 (build-system gnu-build-system)
5201 (arguments
5202 `(#:tests? #f ;no "check" target
5203 #:make-flags
5204 (list (string-append "BOOST="
5205 (assoc-ref %build-inputs "boost")
5206 "/include/")
5207 (string-append "SAMHEADERS="
5208 (assoc-ref %build-inputs "htslib")
5209 "/include/htslib/sam.h")
5210 (string-append "SAMLIBS="
5211 (assoc-ref %build-inputs "htslib")
5212 "/lib/libhts.a"))
5213 #:phases
5214 (modify-phases %standard-phases
5215 ;; No "configure" script.
5216 ;; Do not build bundled samtools library.
5217 (replace 'configure
5218 (lambda _
5219 (substitute* "Makefile"
5220 (("^all : \\$\\(PROGRAMS\\).*") "all: $(PROGRAMS)\n")
5221 (("^\\$\\(SAMLIBS\\).*") ""))
5222 #t))
5223 (replace 'install
5224 (lambda* (#:key outputs #:allow-other-keys)
5225 (let* ((out (string-append (assoc-ref outputs "out")))
5226 (bin (string-append out "/bin/"))
5227 (perl (string-append out "/lib/perl5/site_perl")))
5228 (mkdir-p bin)
5229 (mkdir-p perl)
5230 (for-each (lambda (file)
5231 (install-file file bin))
5232 (find-files "." "rsem-.*"))
5233 (install-file "rsem_perl_utils.pm" perl))
5234 #t))
5235 (add-after 'install 'wrap-program
5236 (lambda* (#:key outputs #:allow-other-keys)
5237 (let ((out (assoc-ref outputs "out")))
5238 (for-each (lambda (prog)
5239 (wrap-program (string-append out "/bin/" prog)
5240 `("PERL5LIB" ":" prefix
5241 (,(string-append out "/lib/perl5/site_perl")))))
5242 '("rsem-calculate-expression"
5243 "rsem-control-fdr"
5244 "rsem-generate-data-matrix"
5245 "rsem-generate-ngvector"
5246 "rsem-plot-transcript-wiggles"
5247 "rsem-prepare-reference"
5248 "rsem-run-ebseq"
5249 "rsem-run-prsem-testing-procedure")))
5250 #t)))))
5251 (inputs
5252 `(("boost" ,boost)
5253 ("r-minimal" ,r-minimal)
5254 ("perl" ,perl)
5255 ("htslib" ,htslib-1.3)
5256 ("zlib" ,zlib)))
5257 (home-page "http://deweylab.biostat.wisc.edu/rsem/")
5258 (synopsis "Estimate gene expression levels from RNA-Seq data")
5259 (description
5260 "RSEM is a software package for estimating gene and isoform expression
5261 levels from RNA-Seq data. The RSEM package provides a user-friendly
5262 interface, supports threads for parallel computation of the EM algorithm,
5263 single-end and paired-end read data, quality scores, variable-length reads and
5264 RSPD estimation. In addition, it provides posterior mean and 95% credibility
5265 interval estimates for expression levels. For visualization, it can generate
5266 BAM and Wiggle files in both transcript-coordinate and genomic-coordinate.")
5267 (license license:gpl3+)))
5268
5269 (define-public rseqc
5270 (package
5271 (name "rseqc")
5272 (version "2.6.1")
5273 (source
5274 (origin
5275 (method url-fetch)
5276 (uri
5277 (string-append "mirror://sourceforge/rseqc/"
5278 "RSeQC-" version ".tar.gz"))
5279 (sha256
5280 (base32 "15ly0254yi032qzkdplg00q144qfdsd986gh62829rl5bkxhj330"))
5281 (modules '((guix build utils)))
5282 (snippet
5283 '(begin
5284 ;; remove bundled copy of pysam
5285 (delete-file-recursively "lib/pysam")
5286 (substitute* "setup.py"
5287 ;; remove dependency on outdated "distribute" module
5288 (("^from distribute_setup import use_setuptools") "")
5289 (("^use_setuptools\\(\\)") "")
5290 ;; do not use bundled copy of pysam
5291 (("^have_pysam = False") "have_pysam = True"))
5292 #t))))
5293 (build-system python-build-system)
5294 (arguments `(#:python ,python-2))
5295 (inputs
5296 `(("python-cython" ,python2-cython)
5297 ("python-pysam" ,python2-pysam)
5298 ("python-numpy" ,python2-numpy)
5299 ("zlib" ,zlib)))
5300 (native-inputs
5301 `(("python-nose" ,python2-nose)))
5302 (home-page "http://rseqc.sourceforge.net/")
5303 (synopsis "RNA-seq quality control package")
5304 (description
5305 "RSeQC provides a number of modules that can comprehensively evaluate
5306 high throughput sequence data, especially RNA-seq data. Some basic modules
5307 inspect sequence quality, nucleotide composition bias, PCR bias and GC bias,
5308 while RNA-seq specific modules evaluate sequencing saturation, mapped reads
5309 distribution, coverage uniformity, strand specificity, etc.")
5310 (license license:gpl3+)))
5311
5312 (define-public seek
5313 ;; There are no release tarballs. According to the installation
5314 ;; instructions at http://seek.princeton.edu/installation.jsp, the latest
5315 ;; stable release is identified by this changeset ID.
5316 (let ((changeset "2329130")
5317 (revision "1"))
5318 (package
5319 (name "seek")
5320 (version (string-append "0-" revision "." changeset))
5321 (source (origin
5322 (method hg-fetch)
5323 (uri (hg-reference
5324 (url "https://bitbucket.org/libsleipnir/sleipnir")
5325 (changeset changeset)))
5326 (file-name (string-append name "-" version "-checkout"))
5327 (sha256
5328 (base32
5329 "0qrvilwh18dpbhkf92qvxbmay0j75ra3jg2wrhz67gf538zzphsx"))))
5330 (build-system gnu-build-system)
5331 (arguments
5332 `(#:modules ((srfi srfi-1)
5333 (guix build gnu-build-system)
5334 (guix build utils))
5335 #:phases
5336 (let ((dirs '("SeekMiner"
5337 "SeekEvaluator"
5338 "SeekPrep"
5339 "Distancer"
5340 "Data2DB"
5341 "PCL2Bin")))
5342 (modify-phases %standard-phases
5343 (replace 'bootstrap
5344 (lambda _
5345 (substitute* "gen_tools_am"
5346 (("/usr/bin/env.*") (which "perl")))
5347 (invoke "bash" "gen_auto")
5348 #t))
5349 (add-after 'build 'build-additional-tools
5350 (lambda* (#:key make-flags #:allow-other-keys)
5351 (for-each (lambda (dir)
5352 (with-directory-excursion (string-append "tools/" dir)
5353 (apply invoke "make" make-flags)))
5354 dirs)
5355 #t))
5356 (add-after 'install 'install-additional-tools
5357 (lambda* (#:key make-flags #:allow-other-keys)
5358 (for-each (lambda (dir)
5359 (with-directory-excursion (string-append "tools/" dir)
5360 (apply invoke `("make" ,@make-flags "install"))))
5361 dirs)
5362 #t))))))
5363 (inputs
5364 `(("gsl" ,gsl)
5365 ("boost" ,boost)
5366 ("libsvm" ,libsvm)
5367 ("readline" ,readline)
5368 ("gengetopt" ,gengetopt)
5369 ("log4cpp" ,log4cpp)))
5370 (native-inputs
5371 `(("autoconf" ,autoconf)
5372 ("automake" ,automake)
5373 ("perl" ,perl)))
5374 (home-page "http://seek.princeton.edu")
5375 (synopsis "Gene co-expression search engine")
5376 (description
5377 "SEEK is a computational gene co-expression search engine. SEEK provides
5378 biologists with a way to navigate the massive human expression compendium that
5379 now contains thousands of expression datasets. SEEK returns a robust ranking
5380 of co-expressed genes in the biological area of interest defined by the user's
5381 query genes. It also prioritizes thousands of expression datasets according
5382 to the user's query of interest.")
5383 (license license:cc-by3.0))))
5384
5385 (define-public samtools
5386 (package
5387 (name "samtools")
5388 (version "1.9")
5389 (source
5390 (origin
5391 (method url-fetch)
5392 (uri
5393 (string-append "mirror://sourceforge/samtools/samtools/"
5394 version "/samtools-" version ".tar.bz2"))
5395 (sha256
5396 (base32
5397 "10ilqbmm7ri8z431sn90lvbjwizd0hhkf9rcqw8j823hf26nhgq8"))
5398 (modules '((guix build utils)))
5399 (snippet '(begin
5400 ;; Delete bundled htslib.
5401 (delete-file-recursively "htslib-1.9")
5402 #t))))
5403 (build-system gnu-build-system)
5404 (arguments
5405 `(#:modules ((ice-9 ftw)
5406 (ice-9 regex)
5407 (guix build gnu-build-system)
5408 (guix build utils))
5409 #:configure-flags (list "--with-ncurses")
5410 #:phases
5411 (modify-phases %standard-phases
5412 (add-after 'unpack 'patch-tests
5413 (lambda _
5414 (substitute* "test/test.pl"
5415 ;; The test script calls out to /bin/bash
5416 (("/bin/bash") (which "bash")))
5417 #t))
5418 (add-after 'install 'install-library
5419 (lambda* (#:key outputs #:allow-other-keys)
5420 (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
5421 (install-file "libbam.a" lib)
5422 #t)))
5423 (add-after 'install 'install-headers
5424 (lambda* (#:key outputs #:allow-other-keys)
5425 (let ((include (string-append (assoc-ref outputs "out")
5426 "/include/samtools/")))
5427 (for-each (lambda (file)
5428 (install-file file include))
5429 (scandir "." (lambda (name) (string-match "\\.h$" name))))
5430 #t))))))
5431 (native-inputs `(("pkg-config" ,pkg-config)))
5432 (inputs
5433 `(("htslib" ,htslib)
5434 ("ncurses" ,ncurses)
5435 ("perl" ,perl)
5436 ("python" ,python)
5437 ("zlib" ,zlib)))
5438 (home-page "http://samtools.sourceforge.net")
5439 (synopsis "Utilities to efficiently manipulate nucleotide sequence alignments")
5440 (description
5441 "Samtools implements various utilities for post-processing nucleotide
5442 sequence alignments in the SAM, BAM, and CRAM formats, including indexing,
5443 variant calling (in conjunction with bcftools), and a simple alignment
5444 viewer.")
5445 (license license:expat)))
5446
5447 (define-public samtools-0.1
5448 ;; This is the most recent version of the 0.1 line of samtools. The input
5449 ;; and output formats differ greatly from that used and produced by samtools
5450 ;; 1.x and is still used in many bioinformatics pipelines.
5451 (package (inherit samtools)
5452 (version "0.1.19")
5453 (source
5454 (origin
5455 (method url-fetch)
5456 (uri
5457 (string-append "mirror://sourceforge/samtools/samtools/"
5458 version "/samtools-" version ".tar.bz2"))
5459 (sha256
5460 (base32 "1m33xsfwz0s8qi45lylagfllqg7fphf4dr0780rsvw75av9wk06h"))))
5461 (arguments
5462 `(#:tests? #f ;no "check" target
5463 #:make-flags
5464 (list "LIBCURSES=-lncurses")
5465 ,@(substitute-keyword-arguments (package-arguments samtools)
5466 ((#:phases phases)
5467 `(modify-phases ,phases
5468 (replace 'install
5469 (lambda* (#:key outputs #:allow-other-keys)
5470 (let ((bin (string-append
5471 (assoc-ref outputs "out") "/bin")))
5472 (mkdir-p bin)
5473 (install-file "samtools" bin)
5474 #t)))
5475 (delete 'patch-tests)
5476 (delete 'configure))))))))
5477
5478 (define-public mosaik
5479 (let ((commit "5c25216d3522d6a33e53875cd76a6d65001e4e67"))
5480 (package
5481 (name "mosaik")
5482 (version "2.2.30")
5483 (source (origin
5484 ;; There are no release tarballs nor tags.
5485 (method git-fetch)
5486 (uri (git-reference
5487 (url "https://github.com/wanpinglee/MOSAIK.git")
5488 (commit commit)))
5489 (file-name (string-append name "-" version))
5490 (sha256
5491 (base32
5492 "17gj3s07cm77r41z92awh0bim7w7q7fbn0sf5nkqmcm1vw052qgw"))))
5493 (build-system gnu-build-system)
5494 (arguments
5495 `(#:tests? #f ; no tests
5496 #:make-flags (list "CC=gcc")
5497 #:phases
5498 (modify-phases %standard-phases
5499 (replace 'configure
5500 (lambda _ (chdir "src") #t))
5501 (replace 'install
5502 (lambda* (#:key outputs #:allow-other-keys)
5503 (let ((bin (string-append (assoc-ref outputs "out")
5504 "/bin")))
5505 (mkdir-p bin)
5506 (copy-recursively "../bin" bin)
5507 #t))))))
5508 (inputs
5509 `(("perl" ,perl)
5510 ("zlib:static" ,zlib "static")
5511 ("zlib" ,zlib)))
5512 (supported-systems '("x86_64-linux"))
5513 (home-page "https://github.com/wanpinglee/MOSAIK")
5514 (synopsis "Map nucleotide sequence reads to reference genomes")
5515 (description
5516 "MOSAIK is a program for mapping second and third-generation sequencing
5517 reads to a reference genome. MOSAIK can align reads generated by all the
5518 major sequencing technologies, including Illumina, Applied Biosystems SOLiD,
5519 Roche 454, Ion Torrent and Pacific BioSciences SMRT.")
5520 ;; MOSAIK is released under the GPLv2+ with the exception of third-party
5521 ;; code released into the public domain:
5522 ;; 1. fastlz by Ariya Hidayat - http://www.fastlz.org/
5523 ;; 2. MD5 implementation - RSA Data Security, RFC 1321
5524 (license (list license:gpl2+ license:public-domain)))))
5525
5526 (define-public ngs-sdk
5527 (package
5528 (name "ngs-sdk")
5529 (version "2.9.6")
5530 (source (origin
5531 (method git-fetch)
5532 (uri (git-reference
5533 (url "https://github.com/ncbi/ngs.git")
5534 (commit version)))
5535 (file-name (git-file-name name version))
5536 (sha256
5537 (base32
5538 "0d5k5kabgl15as37kj9x65xc92j4gcqms86hvihw3yb6wag0r0q3"))))
5539 (build-system gnu-build-system)
5540 (arguments
5541 `(#:parallel-build? #f ; not supported
5542 #:tests? #f ; no "check" target
5543 #:phases
5544 (modify-phases %standard-phases
5545 (replace 'configure
5546 (lambda* (#:key outputs #:allow-other-keys)
5547 (let ((out (assoc-ref outputs "out")))
5548 ;; Allow 'konfigure.perl' to find 'package.prl'.
5549 (setenv "PERL5LIB"
5550 (string-append ".:" (getenv "PERL5LIB")))
5551
5552 ;; The 'configure' script doesn't recognize things like
5553 ;; '--enable-fast-install'.
5554 (invoke "./configure"
5555 (string-append "--build-prefix=" (getcwd) "/build")
5556 (string-append "--prefix=" out))
5557 #t)))
5558 (add-after 'unpack 'enter-dir
5559 (lambda _ (chdir "ngs-sdk") #t)))))
5560 (native-inputs `(("perl" ,perl)))
5561 ;; According to the test
5562 ;; unless ($MARCH =~ /x86_64/i || $MARCH =~ /i?86/i)
5563 ;; in ngs-sdk/setup/konfigure.perl
5564 (supported-systems '("i686-linux" "x86_64-linux"))
5565 (home-page "https://github.com/ncbi/ngs")
5566 (synopsis "API for accessing Next Generation Sequencing data")
5567 (description
5568 "NGS is a domain-specific API for accessing reads, alignments and pileups
5569 produced from Next Generation Sequencing. The API itself is independent from
5570 any particular back-end implementation, and supports use of multiple back-ends
5571 simultaneously.")
5572 (license license:public-domain)))
5573
5574 (define-public java-ngs
5575 (package (inherit ngs-sdk)
5576 (name "java-ngs")
5577 (arguments
5578 `(,@(substitute-keyword-arguments
5579 `(#:modules ((guix build gnu-build-system)
5580 (guix build utils)
5581 (srfi srfi-1)
5582 (srfi srfi-26))
5583 ,@(package-arguments ngs-sdk))
5584 ((#:phases phases)
5585 `(modify-phases ,phases
5586 (replace 'enter-dir (lambda _ (chdir "ngs-java") #t)))))))
5587 (inputs
5588 `(("jdk" ,icedtea "jdk")
5589 ("ngs-sdk" ,ngs-sdk)))
5590 (synopsis "Java bindings for NGS SDK")))
5591
5592 (define-public ncbi-vdb
5593 (package
5594 (name "ncbi-vdb")
5595 (version "2.9.6")
5596 (source (origin
5597 (method git-fetch)
5598 (uri (git-reference
5599 (url "https://github.com/ncbi/ncbi-vdb.git")
5600 (commit version)))
5601 (file-name (git-file-name name version))
5602 (sha256
5603 (base32
5604 "0knkj1sq34hlivgv5qd6jlczqrs3ldmfgn6vbbw7p4mqxvb9mirk"))))
5605 (build-system gnu-build-system)
5606 (arguments
5607 `(#:parallel-build? #f ; not supported
5608 #:tests? #f ; no "check" target
5609 #:make-flags '("HAVE_HDF5=1")
5610 #:phases
5611 (modify-phases %standard-phases
5612 (add-after 'unpack 'make-files-writable
5613 (lambda _ (for-each make-file-writable (find-files "." ".*")) #t))
5614 (add-before 'configure 'set-perl-search-path
5615 (lambda _
5616 ;; Work around "dotless @INC" build failure.
5617 (setenv "PERL5LIB"
5618 (string-append (getcwd) "/setup:"
5619 (getenv "PERL5LIB")))
5620 #t))
5621 ;; See https://github.com/ncbi/ncbi-vdb/issues/14
5622 (add-after 'unpack 'patch-krypto-flags
5623 (lambda _
5624 (substitute* "libs/krypto/Makefile"
5625 (("-Wa,-march=generic64\\+aes") "")
5626 (("-Wa,-march=generic64\\+sse4") ""))
5627 #t))
5628 (replace 'configure
5629 (lambda* (#:key inputs outputs #:allow-other-keys)
5630 (let ((out (assoc-ref outputs "out")))
5631 ;; Override include path for libmagic
5632 (substitute* "setup/package.prl"
5633 (("name => 'magic', Include => '/usr/include'")
5634 (string-append "name=> 'magic', Include => '"
5635 (assoc-ref inputs "libmagic")
5636 "/include" "'")))
5637
5638 ;; Install kdf5 library (needed by sra-tools)
5639 (substitute* "build/Makefile.install"
5640 (("LIBRARIES_TO_INSTALL =")
5641 "LIBRARIES_TO_INSTALL = kdf5.$(VERSION_LIBX) kdf5.$(VERSION_SHLX)"))
5642
5643 (substitute* "build/Makefile.env"
5644 (("CFLAGS =" prefix)
5645 (string-append prefix "-msse2 ")))
5646
5647 ;; Override search path for ngs-java
5648 (substitute* "setup/package.prl"
5649 (("/usr/local/ngs/ngs-java")
5650 (assoc-ref inputs "java-ngs")))
5651
5652 ;; The 'configure' script doesn't recognize things like
5653 ;; '--enable-fast-install'.
5654 (invoke "./configure"
5655 (string-append "--build-prefix=" (getcwd) "/build")
5656 (string-append "--prefix=" (assoc-ref outputs "out"))
5657 (string-append "--debug")
5658 (string-append "--with-xml2-prefix="
5659 (assoc-ref inputs "libxml2"))
5660 (string-append "--with-ngs-sdk-prefix="
5661 (assoc-ref inputs "ngs-sdk"))
5662 (string-append "--with-hdf5-prefix="
5663 (assoc-ref inputs "hdf5")))
5664 #t)))
5665 (add-after 'install 'install-interfaces
5666 (lambda* (#:key outputs #:allow-other-keys)
5667 ;; Install interface libraries. On i686 the interface libraries
5668 ;; are installed to "linux/gcc/i386", so we need to use the Linux
5669 ;; architecture name ("i386") instead of the target system prefix
5670 ;; ("i686").
5671 (mkdir (string-append (assoc-ref outputs "out") "/ilib"))
5672 (copy-recursively (string-append "build/ncbi-vdb/linux/gcc/"
5673 ,(system->linux-architecture
5674 (or (%current-target-system)
5675 (%current-system)))
5676 "/rel/ilib")
5677 (string-append (assoc-ref outputs "out")
5678 "/ilib"))
5679 ;; Install interface headers
5680 (copy-recursively "interfaces"
5681 (string-append (assoc-ref outputs "out")
5682 "/include"))
5683 #t))
5684 ;; These files are needed by sra-tools.
5685 (add-after 'install 'install-configuration-files
5686 (lambda* (#:key outputs #:allow-other-keys)
5687 (let ((target (string-append (assoc-ref outputs "out") "/kfg")))
5688 (mkdir target)
5689 (install-file "libs/kfg/default.kfg" target)
5690 (install-file "libs/kfg/certs.kfg" target))
5691 #t)))))
5692 (inputs
5693 `(("libxml2" ,libxml2)
5694 ("ngs-sdk" ,ngs-sdk)
5695 ("java-ngs" ,java-ngs)
5696 ("libmagic" ,file)
5697 ("hdf5" ,hdf5)))
5698 (native-inputs `(("perl" ,perl)))
5699 ;; NCBI-VDB requires SSE capability.
5700 (supported-systems '("i686-linux" "x86_64-linux"))
5701 (home-page "https://github.com/ncbi/ncbi-vdb")
5702 (synopsis "Database engine for genetic information")
5703 (description
5704 "The NCBI-VDB library implements a highly compressed columnar data
5705 warehousing engine that is most often used to store genetic information.
5706 Databases are stored in a portable image within the file system, and can be
5707 accessed/downloaded on demand across HTTP.")
5708 (license license:public-domain)))
5709
5710 (define-public plink
5711 (package
5712 (name "plink")
5713 (version "1.07")
5714 (source
5715 (origin
5716 (method url-fetch)
5717 (uri (string-append
5718 "http://pngu.mgh.harvard.edu/~purcell/plink/dist/plink-"
5719 version "-src.zip"))
5720 (sha256
5721 (base32 "0as8gxm4pjyc8dxmm1sl873rrd7wn5qs0l29nqfnl31x8i467xaa"))
5722 (patches (search-patches "plink-1.07-unclobber-i.patch"
5723 "plink-endian-detection.patch"))))
5724 (build-system gnu-build-system)
5725 (arguments
5726 '(#:tests? #f ;no "check" target
5727 #:make-flags (list (string-append "LIB_LAPACK="
5728 (assoc-ref %build-inputs "lapack")
5729 "/lib/liblapack.so")
5730 "WITH_LAPACK=1"
5731 "FORCE_DYNAMIC=1"
5732 ;; disable phoning home
5733 "WITH_WEBCHECK=")
5734 #:phases
5735 (modify-phases %standard-phases
5736 ;; no "configure" script
5737 (delete 'configure)
5738 (replace 'install
5739 (lambda* (#:key outputs #:allow-other-keys)
5740 (let ((bin (string-append (assoc-ref outputs "out")
5741 "/bin/")))
5742 (install-file "plink" bin)
5743 #t))))))
5744 (inputs
5745 `(("zlib" ,zlib)
5746 ("lapack" ,lapack)))
5747 (native-inputs
5748 `(("unzip" ,unzip)))
5749 (home-page "http://pngu.mgh.harvard.edu/~purcell/plink/")
5750 (synopsis "Whole genome association analysis toolset")
5751 (description
5752 "PLINK is a whole genome association analysis toolset, designed to
5753 perform a range of basic, large-scale analyses in a computationally efficient
5754 manner. The focus of PLINK is purely on analysis of genotype/phenotype data,
5755 so there is no support for steps prior to this (e.g. study design and
5756 planning, generating genotype or CNV calls from raw data). Through
5757 integration with gPLINK and Haploview, there is some support for the
5758 subsequent visualization, annotation and storage of results.")
5759 ;; Code is released under GPLv2, except for fisher.h, which is under
5760 ;; LGPLv2.1+
5761 (license (list license:gpl2 license:lgpl2.1+))))
5762
5763 (define-public plink-ng
5764 (package (inherit plink)
5765 (name "plink-ng")
5766 (version "1.90b4")
5767 (source
5768 (origin
5769 (method git-fetch)
5770 (uri (git-reference
5771 (url "https://github.com/chrchang/plink-ng.git")
5772 (commit (string-append "v" version))))
5773 (file-name (git-file-name name version))
5774 (sha256
5775 (base32 "02npdwgkpfkdnhw819rhj5kw02a5k5m90b14zq9zzya4hyg929c0"))))
5776 (build-system gnu-build-system)
5777 (arguments
5778 '(#:tests? #f ;no "check" target
5779 #:make-flags (list "BLASFLAGS=-llapack -lopenblas"
5780 "CFLAGS=-Wall -O2 -DDYNAMIC_ZLIB=1"
5781 "ZLIB=-lz"
5782 "-f" "Makefile.std")
5783 #:phases
5784 (modify-phases %standard-phases
5785 (add-after 'unpack 'chdir
5786 (lambda _ (chdir "1.9") #t))
5787 (delete 'configure) ; no "configure" script
5788 (replace 'install
5789 (lambda* (#:key outputs #:allow-other-keys)
5790 (let ((bin (string-append (assoc-ref outputs "out")
5791 "/bin/")))
5792 (install-file "plink" bin)
5793 #t))))))
5794 (inputs
5795 `(("zlib" ,zlib)
5796 ("lapack" ,lapack)
5797 ("openblas" ,openblas)))
5798 (home-page "https://www.cog-genomics.org/plink/")
5799 (license license:gpl3+)))
5800
5801 (define-public smithlab-cpp
5802 (let ((revision "1")
5803 (commit "728a097bec88c6f4b8528b685932049e660eff2e"))
5804 (package
5805 (name "smithlab-cpp")
5806 (version (string-append "0." revision "." (string-take commit 7)))
5807 (source (origin
5808 (method git-fetch)
5809 (uri (git-reference
5810 (url "https://github.com/smithlabcode/smithlab_cpp.git")
5811 (commit commit)))
5812 (file-name (string-append name "-" version "-checkout"))
5813 (sha256
5814 (base32
5815 "0d476lmj312xk77kr9fzrv7z1bv96yfyx0w7y62ycmnfbx32ll74"))))
5816 (build-system gnu-build-system)
5817 (arguments
5818 `(#:modules ((guix build gnu-build-system)
5819 (guix build utils)
5820 (srfi srfi-26))
5821 #:tests? #f ;no "check" target
5822 #:phases
5823 (modify-phases %standard-phases
5824 (add-after 'unpack 'use-samtools-headers
5825 (lambda _
5826 (substitute* '("SAM.cpp"
5827 "SAM.hpp")
5828 (("sam.h") "samtools/sam.h"))
5829 #t))
5830 (replace 'install
5831 (lambda* (#:key outputs #:allow-other-keys)
5832 (let* ((out (assoc-ref outputs "out"))
5833 (lib (string-append out "/lib"))
5834 (include (string-append out "/include/smithlab-cpp")))
5835 (mkdir-p lib)
5836 (mkdir-p include)
5837 (for-each (cut install-file <> lib)
5838 (find-files "." "\\.o$"))
5839 (for-each (cut install-file <> include)
5840 (find-files "." "\\.hpp$")))
5841 #t))
5842 (delete 'configure))))
5843 (inputs
5844 `(("samtools" ,samtools-0.1)
5845 ("zlib" ,zlib)))
5846 (home-page "https://github.com/smithlabcode/smithlab_cpp")
5847 (synopsis "C++ helper library for functions used in Smith lab projects")
5848 (description
5849 "Smithlab CPP is a C++ library that includes functions used in many of
5850 the Smith lab bioinformatics projects, such as a wrapper around Samtools data
5851 structures, classes for genomic regions, mapped sequencing reads, etc.")
5852 (license license:gpl3+))))
5853
5854 (define-public preseq
5855 (package
5856 (name "preseq")
5857 (version "2.0.3")
5858 (source (origin
5859 (method url-fetch)
5860 (uri (string-append "https://github.com/smithlabcode/preseq/"
5861 "releases/download/v" version
5862 "/preseq_v" version ".tar.bz2"))
5863 (sha256
5864 (base32 "149x9xmk1wy1gff85325yfzqc0qk4sgp1w6gbyj9cnji4x1dszbl"))
5865 (modules '((guix build utils)))
5866 (snippet '(begin
5867 ;; Remove bundled samtools.
5868 (delete-file-recursively "samtools")
5869 #t))))
5870 (build-system gnu-build-system)
5871 (arguments
5872 `(#:tests? #f ;no "check" target
5873 #:phases
5874 (modify-phases %standard-phases
5875 (delete 'configure))
5876 #:make-flags
5877 (list (string-append "PREFIX="
5878 (assoc-ref %outputs "out"))
5879 (string-append "LIBBAM="
5880 (assoc-ref %build-inputs "samtools")
5881 "/lib/libbam.a")
5882 (string-append "SMITHLAB_CPP="
5883 (assoc-ref %build-inputs "smithlab-cpp")
5884 "/lib")
5885 "PROGS=preseq"
5886 "INCLUDEDIRS=$(SMITHLAB_CPP)/../include/smithlab-cpp $(SAMTOOLS_DIR)")))
5887 (inputs
5888 `(("gsl" ,gsl)
5889 ("samtools" ,samtools-0.1)
5890 ("smithlab-cpp" ,smithlab-cpp)
5891 ("zlib" ,zlib)))
5892 (home-page "http://smithlabresearch.org/software/preseq/")
5893 (synopsis "Program for analyzing library complexity")
5894 (description
5895 "The preseq package is aimed at predicting and estimating the complexity
5896 of a genomic sequencing library, equivalent to predicting and estimating the
5897 number of redundant reads from a given sequencing depth and how many will be
5898 expected from additional sequencing using an initial sequencing experiment.
5899 The estimates can then be used to examine the utility of further sequencing,
5900 optimize the sequencing depth, or to screen multiple libraries to avoid low
5901 complexity samples.")
5902 (license license:gpl3+)))
5903
5904 (define-public python-screed
5905 (package
5906 (name "python-screed")
5907 (version "1.0")
5908 (source
5909 (origin
5910 (method url-fetch)
5911 (uri (pypi-uri "screed" version))
5912 (sha256
5913 (base32
5914 "148vcb7w2wr6a4w6vs2bsxanbqibxfk490zbcbg4m61s8669zdjx"))))
5915 (build-system python-build-system)
5916 (arguments
5917 '(#:phases
5918 (modify-phases %standard-phases
5919 ;; Tests must be run after installation, as the "screed" command does
5920 ;; not exist right after building.
5921 (delete 'check)
5922 (add-after 'install 'check
5923 (lambda* (#:key inputs outputs #:allow-other-keys)
5924 (let ((out (assoc-ref outputs "out")))
5925 (setenv "PYTHONPATH"
5926 (string-append out "/lib/python"
5927 (string-take (string-take-right
5928 (assoc-ref inputs "python")
5929 5) 3)
5930 "/site-packages:"
5931 (getenv "PYTHONPATH")))
5932 (setenv "PATH" (string-append out "/bin:" (getenv "PATH"))))
5933 (invoke "python" "setup.py" "test")
5934 #t)))))
5935 (native-inputs
5936 `(("python-pytest" ,python-pytest)
5937 ("python-pytest-cov" ,python-pytest-cov)
5938 ("python-pytest-runner" ,python-pytest-runner)))
5939 (inputs
5940 `(("python-bz2file" ,python-bz2file)))
5941 (home-page "https://github.com/dib-lab/screed/")
5942 (synopsis "Short read sequence database utilities")
5943 (description "Screed parses FASTA and FASTQ files and generates databases.
5944 Values such as sequence name, sequence description, sequence quality and the
5945 sequence itself can be retrieved from these databases.")
5946 (license license:bsd-3)))
5947
5948 (define-public python2-screed
5949 (package-with-python2 python-screed))
5950
5951 (define-public sra-tools
5952 (package
5953 (name "sra-tools")
5954 (version "2.9.6")
5955 (source
5956 (origin
5957 (method git-fetch)
5958 (uri (git-reference
5959 (url "https://github.com/ncbi/sra-tools.git")
5960 (commit version)))
5961 (file-name (git-file-name name version))
5962 (sha256
5963 (base32
5964 "0vqzap68v81k0zif2mnqfy8pnw2nrhsg87p6mgq8qk3nk2jv2rgy"))))
5965 (build-system gnu-build-system)
5966 (arguments
5967 `(#:parallel-build? #f ; not supported
5968 #:tests? #f ; no "check" target
5969 #:make-flags
5970 (list (string-append "DEFAULT_CRT="
5971 (assoc-ref %build-inputs "ncbi-vdb")
5972 "/kfg/certs.kfg")
5973 (string-append "DEFAULT_KFG="
5974 (assoc-ref %build-inputs "ncbi-vdb")
5975 "/kfg/default.kfg")
5976 (string-append "VDB_LIBDIR="
5977 (assoc-ref %build-inputs "ncbi-vdb")
5978 ,(if (string-prefix? "x86_64"
5979 (or (%current-target-system)
5980 (%current-system)))
5981 "/lib64"
5982 "/lib32")))
5983 #:phases
5984 (modify-phases %standard-phases
5985 (add-before 'configure 'set-perl-search-path
5986 (lambda _
5987 ;; Work around "dotless @INC" build failure.
5988 (setenv "PERL5LIB"
5989 (string-append (getcwd) "/setup:"
5990 (getenv "PERL5LIB")))
5991 #t))
5992 (replace 'configure
5993 (lambda* (#:key inputs outputs #:allow-other-keys)
5994 ;; The build system expects a directory containing the sources and
5995 ;; raw build output of ncbi-vdb, including files that are not
5996 ;; installed. Since we are building against an installed version of
5997 ;; ncbi-vdb, the following modifications are needed.
5998 (substitute* "setup/konfigure.perl"
5999 ;; Make the configure script look for the "ilib" directory of
6000 ;; "ncbi-vdb" without first checking for the existence of a
6001 ;; matching library in its "lib" directory.
6002 (("^ my \\$f = File::Spec->catdir\\(\\$libdir, \\$lib\\);")
6003 "my $f = File::Spec->catdir($ilibdir, $ilib);")
6004 ;; Look for interface libraries in ncbi-vdb's "ilib" directory.
6005 (("my \\$ilibdir = File::Spec->catdir\\(\\$builddir, 'ilib'\\);")
6006 "my $ilibdir = File::Spec->catdir($dir, 'ilib');"))
6007
6008 ;; Dynamic linking
6009 (substitute* "tools/copycat/Makefile"
6010 (("smagic-static") "lmagic"))
6011
6012 ;; The 'configure' script doesn't recognize things like
6013 ;; '--enable-fast-install'.
6014 (invoke "./configure"
6015 (string-append "--build-prefix=" (getcwd) "/build")
6016 (string-append "--prefix=" (assoc-ref outputs "out"))
6017 (string-append "--debug")
6018 (string-append "--with-fuse-prefix="
6019 (assoc-ref inputs "fuse"))
6020 (string-append "--with-magic-prefix="
6021 (assoc-ref inputs "libmagic"))
6022 ;; TODO: building with libxml2 fails with linker errors
6023 ;; (string-append "--with-xml2-prefix="
6024 ;; (assoc-ref inputs "libxml2"))
6025 (string-append "--with-ncbi-vdb-sources="
6026 (assoc-ref inputs "ncbi-vdb"))
6027 (string-append "--with-ncbi-vdb-build="
6028 (assoc-ref inputs "ncbi-vdb"))
6029 (string-append "--with-ngs-sdk-prefix="
6030 (assoc-ref inputs "ngs-sdk"))
6031 (string-append "--with-hdf5-prefix="
6032 (assoc-ref inputs "hdf5")))
6033 #t)))))
6034 (native-inputs `(("perl" ,perl)))
6035 (inputs
6036 `(("ngs-sdk" ,ngs-sdk)
6037 ("ncbi-vdb" ,ncbi-vdb)
6038 ("libmagic" ,file)
6039 ("fuse" ,fuse)
6040 ("hdf5" ,hdf5)
6041 ("zlib" ,zlib)))
6042 (home-page "http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software")
6043 (synopsis "Tools and libraries for reading and writing sequencing data")
6044 (description
6045 "The SRA Toolkit from NCBI is a collection of tools and libraries for
6046 reading of sequencing files from the Sequence Read Archive (SRA) database and
6047 writing files into the .sra format.")
6048 (license license:public-domain)))
6049
6050 (define-public seqan
6051 (package
6052 (name "seqan")
6053 (version "2.4.0")
6054 (source (origin
6055 (method url-fetch)
6056 (uri (string-append "https://github.com/seqan/seqan/releases/"
6057 "download/seqan-v" version
6058 "/seqan-library-" version ".tar.xz"))
6059 (sha256
6060 (base32
6061 "19a1rlxx03qy1i1iriicly68w64yjxbv24g9gdywnfmq998v35yx"))))
6062 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
6063 ;; makes sense to split the outputs.
6064 (outputs '("out" "doc"))
6065 (build-system trivial-build-system)
6066 (arguments
6067 `(#:modules ((guix build utils))
6068 #:builder
6069 (begin
6070 (use-modules (guix build utils))
6071 (let ((tar (assoc-ref %build-inputs "tar"))
6072 (xz (assoc-ref %build-inputs "xz"))
6073 (out (assoc-ref %outputs "out"))
6074 (doc (assoc-ref %outputs "doc")))
6075 (setenv "PATH" (string-append tar "/bin:" xz "/bin"))
6076 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
6077 (chdir (string-append "seqan-library-" ,version))
6078 (copy-recursively "include" (string-append out "/include"))
6079 (copy-recursively "share" (string-append doc "/share"))
6080 #t))))
6081 (native-inputs
6082 `(("source" ,source)
6083 ("tar" ,tar)
6084 ("xz" ,xz)))
6085 (home-page "http://www.seqan.de")
6086 (synopsis "Library for nucleotide sequence analysis")
6087 (description
6088 "SeqAn is a C++ library of efficient algorithms and data structures for
6089 the analysis of sequences with the focus on biological data. It contains
6090 algorithms and data structures for string representation and their
6091 manipulation, online and indexed string search, efficient I/O of
6092 bioinformatics file formats, sequence alignment, and more.")
6093 (license license:bsd-3)))
6094
6095 (define-public seqan-1
6096 (package (inherit seqan)
6097 (name "seqan")
6098 (version "1.4.2")
6099 (source (origin
6100 (method url-fetch)
6101 (uri (string-append "http://packages.seqan.de/seqan-library/"
6102 "seqan-library-" version ".tar.bz2"))
6103 (sha256
6104 (base32
6105 "05s3wrrwn50f81aklfm65i4a749zag1vr8z03k21xm0pdxy47yvp"))))
6106 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
6107 ;; makes sense to split the outputs.
6108 (outputs '("out" "doc"))
6109 (build-system trivial-build-system)
6110 (arguments
6111 `(#:modules ((guix build utils))
6112 #:builder
6113 (begin
6114 (use-modules (guix build utils))
6115 (let ((tar (assoc-ref %build-inputs "tar"))
6116 (bzip (assoc-ref %build-inputs "bzip2"))
6117 (out (assoc-ref %outputs "out"))
6118 (doc (assoc-ref %outputs "doc")))
6119 (setenv "PATH" (string-append tar "/bin:" bzip "/bin"))
6120 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
6121 (chdir (string-append "seqan-library-" ,version))
6122 (copy-recursively "include" (string-append out "/include"))
6123 (copy-recursively "share" (string-append doc "/share"))
6124 #t))))
6125 (native-inputs
6126 `(("source" ,source)
6127 ("tar" ,tar)
6128 ("bzip2" ,bzip2)))))
6129
6130 (define-public seqmagick
6131 (package
6132 (name "seqmagick")
6133 (version "0.7.0")
6134 (source
6135 (origin
6136 (method url-fetch)
6137 (uri (pypi-uri "seqmagick" version))
6138 (sha256
6139 (base32
6140 "12bfyp8nqi0hd36rmj450aygafp01qy3hkbvlwn3bk39pyjjkgg5"))))
6141 (build-system python-build-system)
6142 (inputs
6143 `(("python-biopython" ,python-biopython)))
6144 (native-inputs
6145 `(("python-nose" ,python-nose)))
6146 (home-page "https://github.com/fhcrc/seqmagick")
6147 (synopsis "Tools for converting and modifying sequence files")
6148 (description
6149 "Bioinformaticians often have to convert sequence files between formats
6150 and do little manipulations on them, and it's not worth writing scripts for
6151 that. Seqmagick is a utility to expose the file format conversion in
6152 BioPython in a convenient way. Instead of having a big mess of scripts, there
6153 is one that takes arguments.")
6154 (license license:gpl3)))
6155
6156 (define-public seqtk
6157 (package
6158 (name "seqtk")
6159 (version "1.3")
6160 (source (origin
6161 (method git-fetch)
6162 (uri (git-reference
6163 (url "https://github.com/lh3/seqtk.git")
6164 (commit (string-append "v" version))))
6165 (file-name (git-file-name name version))
6166 (sha256
6167 (base32
6168 "1bfzlqa84b5s1qi22blmmw2s8xdyp9h9ydcq22pfjhh5gab3yz6l"))))
6169 (build-system gnu-build-system)
6170 (arguments
6171 `(#:phases
6172 (modify-phases %standard-phases
6173 (delete 'configure)
6174 (replace 'check
6175 ;; There are no tests, so we just run a sanity check.
6176 (lambda _ (invoke "./seqtk" "seq") #t))
6177 (replace 'install
6178 (lambda* (#:key outputs #:allow-other-keys)
6179 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6180 (install-file "seqtk" bin)
6181 #t))))))
6182 (inputs
6183 `(("zlib" ,zlib)))
6184 (home-page "https://github.com/lh3/seqtk")
6185 (synopsis "Toolkit for processing biological sequences in FASTA/Q format")
6186 (description
6187 "Seqtk is a fast and lightweight tool for processing sequences in the
6188 FASTA or FASTQ format. It parses both FASTA and FASTQ files which can be
6189 optionally compressed by gzip.")
6190 (license license:expat)))
6191
6192 (define-public snap-aligner
6193 (package
6194 (name "snap-aligner")
6195 (version "1.0beta.18")
6196 (source (origin
6197 (method git-fetch)
6198 (uri (git-reference
6199 (url "https://github.com/amplab/snap.git")
6200 (commit (string-append "v" version))))
6201 (file-name (git-file-name name version))
6202 (sha256
6203 (base32
6204 "01w3qq4wm07z73vky0cfwlmrbf50n3w722cxrlzxfi99mnb808d8"))))
6205 (build-system gnu-build-system)
6206 (arguments
6207 '(#:phases
6208 (modify-phases %standard-phases
6209 (delete 'configure)
6210 (replace 'check (lambda _ (invoke "./unit_tests") #t))
6211 (replace 'install
6212 (lambda* (#:key outputs #:allow-other-keys)
6213 (let* ((out (assoc-ref outputs "out"))
6214 (bin (string-append out "/bin")))
6215 (install-file "snap-aligner" bin)
6216 (install-file "SNAPCommand" bin)
6217 #t))))))
6218 (native-inputs
6219 `(("zlib" ,zlib)))
6220 (home-page "http://snap.cs.berkeley.edu/")
6221 (synopsis "Short read DNA sequence aligner")
6222 (description
6223 "SNAP is a fast and accurate aligner for short DNA reads. It is
6224 optimized for modern read lengths of 100 bases or higher, and takes advantage
6225 of these reads to align data quickly through a hash-based indexing scheme.")
6226 ;; 32-bit systems are not supported by the unpatched code.
6227 ;; Following the bug reports https://github.com/amplab/snap/issues/68 and
6228 ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812378 we see that
6229 ;; systems without a lot of memory cannot make good use of this program.
6230 (supported-systems '("x86_64-linux"))
6231 (license license:asl2.0)))
6232
6233 (define-public sortmerna
6234 (package
6235 (name "sortmerna")
6236 (version "2.1b")
6237 (source
6238 (origin
6239 (method git-fetch)
6240 (uri (git-reference
6241 (url "https://github.com/biocore/sortmerna.git")
6242 (commit version)))
6243 (file-name (git-file-name name version))
6244 (sha256
6245 (base32
6246 "0j3mbz4n25738yijmjbr5r4fyvkgm8v5vn3sshyfvmyqf5q9byqf"))))
6247 (build-system gnu-build-system)
6248 (outputs '("out" ;for binaries
6249 "db")) ;for sequence databases
6250 (arguments
6251 `(#:phases
6252 (modify-phases %standard-phases
6253 (replace 'install
6254 (lambda* (#:key outputs #:allow-other-keys)
6255 (let* ((out (assoc-ref outputs "out"))
6256 (bin (string-append out "/bin"))
6257 (db (assoc-ref outputs "db"))
6258 (share
6259 (string-append db "/share/sortmerna/rRNA_databases")))
6260 (install-file "sortmerna" bin)
6261 (install-file "indexdb_rna" bin)
6262 (for-each (lambda (file)
6263 (install-file file share))
6264 (find-files "rRNA_databases" ".*fasta"))
6265 #t))))))
6266 (inputs
6267 `(("zlib" ,zlib)))
6268 (home-page "http://bioinfo.lifl.fr/RNA/sortmerna")
6269 (synopsis "Biological sequence analysis tool for NGS reads")
6270 (description
6271 "SortMeRNA is a biological sequence analysis tool for filtering, mapping
6272 and operational taxonomic unit (OTU) picking of next generation
6273 sequencing (NGS) reads. The core algorithm is based on approximate seeds and
6274 allows for fast and sensitive analyses of nucleotide sequences. The main
6275 application of SortMeRNA is filtering rRNA from metatranscriptomic data.")
6276 ;; The source includes x86 specific code
6277 (supported-systems '("x86_64-linux" "i686-linux"))
6278 (license license:lgpl3)))
6279
6280 (define-public star
6281 (package
6282 (name "star")
6283 (version "2.7.1a")
6284 (source (origin
6285 (method git-fetch)
6286 (uri (git-reference
6287 (url "https://github.com/alexdobin/STAR.git")
6288 (commit version)))
6289 (file-name (string-append name "-" version "-checkout"))
6290 (sha256
6291 (base32
6292 "0n6g4s4hgw7qygs1z97j7a2dgz8gfaa4cv5pjvvvmarvk0x07hyg"))
6293 (modules '((guix build utils)))
6294 (snippet
6295 '(begin
6296 (substitute* "source/Makefile"
6297 (("/bin/rm") "rm"))
6298 ;; Remove pre-built binaries and bundled htslib sources.
6299 (delete-file-recursively "bin/MacOSX_x86_64")
6300 (delete-file-recursively "bin/Linux_x86_64")
6301 (delete-file-recursively "bin/Linux_x86_64_static")
6302 (delete-file-recursively "source/htslib")
6303 #t))))
6304 (build-system gnu-build-system)
6305 (arguments
6306 '(#:tests? #f ;no check target
6307 #:make-flags '("STAR")
6308 #:phases
6309 (modify-phases %standard-phases
6310 (add-after 'unpack 'enter-source-dir
6311 (lambda _ (chdir "source") #t))
6312 (add-after 'enter-source-dir 'make-reproducible
6313 (lambda _
6314 (substitute* "Makefile"
6315 (("(COMPILATION_TIME_PLACE=\")(.*)(\")" _ pre mid post)
6316 (string-append pre "Built with Guix" post)))
6317 #t))
6318 ;; See https://github.com/alexdobin/STAR/pull/562
6319 (add-after 'enter-source-dir 'add-missing-header
6320 (lambda _
6321 (substitute* "SoloReadFeature_inputRecords.cpp"
6322 (("#include \"binarySearch2.h\"" h)
6323 (string-append h "\n#include <math.h>")))
6324 #t))
6325 (add-after 'enter-source-dir 'do-not-use-bundled-htslib
6326 (lambda _
6327 (substitute* "Makefile"
6328 (("(Depend.list: \\$\\(SOURCES\\) parametersDefault\\.xxd) htslib"
6329 _ prefix) prefix))
6330 (substitute* '("BAMfunctions.cpp"
6331 "signalFromBAM.h"
6332 "bam_cat.h"
6333 "bam_cat.c"
6334 "STAR.cpp"
6335 "bamRemoveDuplicates.cpp")
6336 (("#include \"htslib/([^\"]+\\.h)\"" _ header)
6337 (string-append "#include <" header ">")))
6338 (substitute* "IncludeDefine.h"
6339 (("\"htslib/(htslib/[^\"]+.h)\"" _ header)
6340 (string-append "<" header ">")))
6341 #t))
6342 (replace 'install
6343 (lambda* (#:key outputs #:allow-other-keys)
6344 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6345 (install-file "STAR" bin))
6346 #t))
6347 (delete 'configure))))
6348 (native-inputs
6349 `(("xxd" ,xxd)))
6350 (inputs
6351 `(("htslib" ,htslib)
6352 ("zlib" ,zlib)))
6353 (home-page "https://github.com/alexdobin/STAR")
6354 (synopsis "Universal RNA-seq aligner")
6355 (description
6356 "The Spliced Transcripts Alignment to a Reference (STAR) software is
6357 based on a previously undescribed RNA-seq alignment algorithm that uses
6358 sequential maximum mappable seed search in uncompressed suffix arrays followed
6359 by seed clustering and stitching procedure. In addition to unbiased de novo
6360 detection of canonical junctions, STAR can discover non-canonical splices and
6361 chimeric (fusion) transcripts, and is also capable of mapping full-length RNA
6362 sequences.")
6363 ;; Only 64-bit systems are supported according to the README.
6364 (supported-systems '("x86_64-linux" "mips64el-linux"))
6365 ;; STAR is licensed under GPLv3 or later; htslib is MIT-licensed.
6366 (license license:gpl3+)))
6367
6368 (define-public starlong
6369 (package (inherit star)
6370 (name "starlong")
6371 (arguments
6372 (substitute-keyword-arguments (package-arguments star)
6373 ((#:make-flags flags)
6374 `(list "STARlong"))
6375 ((#:phases phases)
6376 `(modify-phases ,phases
6377 ;; Allow extra long sequence reads.
6378 (add-after 'unpack 'make-extra-long
6379 (lambda _
6380 (substitute* "source/IncludeDefine.h"
6381 (("(#define DEF_readNameLengthMax ).*" _ match)
6382 (string-append match "900000\n")))
6383 #t))
6384 (replace 'install
6385 (lambda* (#:key outputs #:allow-other-keys)
6386 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6387 (install-file "STARlong" bin))
6388 #t))))))))
6389
6390 (define-public subread
6391 (package
6392 (name "subread")
6393 (version "1.6.0")
6394 (source (origin
6395 (method url-fetch)
6396 (uri (string-append "mirror://sourceforge/subread/subread-"
6397 version "/subread-" version "-source.tar.gz"))
6398 (sha256
6399 (base32
6400 "0ah0n4jx6ksk2m2j7xk385x2qzmk1y4rfc6a4mfrdqrlq721w99i"))))
6401 (build-system gnu-build-system)
6402 (arguments
6403 `(#:tests? #f ;no "check" target
6404 ;; The CC and CCFLAGS variables are set to contain a lot of x86_64
6405 ;; optimizations by default, so we override these flags such that x86_64
6406 ;; flags are only added when the build target is an x86_64 system.
6407 #:make-flags
6408 (list (let ((system ,(or (%current-target-system)
6409 (%current-system)))
6410 (flags '("-ggdb" "-fomit-frame-pointer"
6411 "-ffast-math" "-funroll-loops"
6412 "-fmessage-length=0"
6413 "-O9" "-Wall" "-DMAKE_FOR_EXON"
6414 "-DMAKE_STANDALONE"
6415 "-DSUBREAD_VERSION=\\\"${SUBREAD_VERSION}\\\""))
6416 (flags64 '("-mmmx" "-msse" "-msse2" "-msse3")))
6417 (if (string-prefix? "x86_64" system)
6418 (string-append "CCFLAGS=" (string-join (append flags flags64)))
6419 (string-append "CCFLAGS=" (string-join flags))))
6420 "-f" "Makefile.Linux"
6421 "CC=gcc ${CCFLAGS}")
6422 #:phases
6423 (modify-phases %standard-phases
6424 (add-after 'unpack 'enter-dir
6425 (lambda _ (chdir "src") #t))
6426 (replace 'install
6427 (lambda* (#:key outputs #:allow-other-keys)
6428 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6429 (mkdir-p bin)
6430 (copy-recursively "../bin" bin))
6431 #t))
6432 ;; no "configure" script
6433 (delete 'configure))))
6434 (inputs `(("zlib" ,zlib)))
6435 (home-page "http://bioinf.wehi.edu.au/subread-package/")
6436 (synopsis "Tool kit for processing next-gen sequencing data")
6437 (description
6438 "The subread package contains the following tools: subread aligner, a
6439 general-purpose read aligner; subjunc aligner: detecting exon-exon junctions
6440 and mapping RNA-seq reads; featureCounts: counting mapped reads for genomic
6441 features; exactSNP: a SNP caller that discovers SNPs by testing signals
6442 against local background noises.")
6443 (license license:gpl3+)))
6444
6445 (define-public stringtie
6446 (package
6447 (name "stringtie")
6448 (version "1.2.1")
6449 (source (origin
6450 (method url-fetch)
6451 (uri (string-append "http://ccb.jhu.edu/software/stringtie/dl/"
6452 "stringtie-" version ".tar.gz"))
6453 (sha256
6454 (base32
6455 "1cqllsc1maq4kh92isi8yadgzbmnf042hlnalpk3y59aph1z3bfz"))
6456 (modules '((guix build utils)))
6457 (snippet
6458 '(begin
6459 (delete-file-recursively "samtools-0.1.18")
6460 #t))))
6461 (build-system gnu-build-system)
6462 (arguments
6463 `(#:tests? #f ;no test suite
6464 #:phases
6465 (modify-phases %standard-phases
6466 ;; no configure script
6467 (delete 'configure)
6468 (add-before 'build 'use-system-samtools
6469 (lambda _
6470 (substitute* "Makefile"
6471 (("stringtie: \\$\\{BAM\\}/libbam\\.a")
6472 "stringtie: "))
6473 (substitute* '("gclib/GBam.h"
6474 "gclib/GBam.cpp")
6475 (("#include \"(bam|sam|kstring).h\"" _ header)
6476 (string-append "#include <samtools/" header ".h>")))
6477 #t))
6478 (add-after 'unpack 'remove-duplicate-typedef
6479 (lambda _
6480 ;; This typedef conflicts with the typedef in
6481 ;; glibc-2.25/include/bits/types.h
6482 (substitute* "gclib/GThreads.h"
6483 (("typedef long long __intmax_t;") ""))
6484 #t))
6485 (replace 'install
6486 (lambda* (#:key outputs #:allow-other-keys)
6487 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6488 (install-file "stringtie" bin)
6489 #t))))))
6490 (inputs
6491 `(("samtools" ,samtools-0.1)
6492 ("zlib" ,zlib)))
6493 (home-page "http://ccb.jhu.edu/software/stringtie/")
6494 (synopsis "Transcript assembly and quantification for RNA-Seq data")
6495 (description
6496 "StringTie is a fast and efficient assembler of RNA-Seq sequence
6497 alignments into potential transcripts. It uses a novel network flow algorithm
6498 as well as an optional de novo assembly step to assemble and quantitate
6499 full-length transcripts representing multiple splice variants for each gene
6500 locus. Its input can include not only the alignments of raw reads used by
6501 other transcript assemblers, but also alignments of longer sequences that have
6502 been assembled from those reads. To identify differentially expressed genes
6503 between experiments, StringTie's output can be processed either by the
6504 Cuffdiff or Ballgown programs.")
6505 (license license:artistic2.0)))
6506
6507 (define-public taxtastic
6508 (package
6509 (name "taxtastic")
6510 (version "0.8.5")
6511 (source (origin
6512 (method url-fetch)
6513 (uri (pypi-uri "taxtastic" version))
6514 (sha256
6515 (base32
6516 "03pysw79lsrvz4lwzis88j15067ffqbi4cid5pqhrlxmd6bh8rrk"))))
6517 (build-system python-build-system)
6518 (arguments
6519 `(#:python ,python-2
6520 #:phases
6521 (modify-phases %standard-phases
6522 (replace 'check
6523 (lambda _ (invoke "python" "-m" "unittest" "discover" "-v") #t)))))
6524 (propagated-inputs
6525 `(("python-sqlalchemy" ,python2-sqlalchemy)
6526 ("python-decorator" ,python2-decorator)
6527 ("python-biopython" ,python2-biopython)
6528 ("python-pandas" ,python2-pandas)
6529 ("python-psycopg2" ,python2-psycopg2)
6530 ("python-fastalite" ,python2-fastalite)
6531 ("python-pyyaml" ,python2-pyyaml)
6532 ("python-six" ,python2-six)
6533 ("python-jinja2" ,python2-jinja2)
6534 ("python-dendropy" ,python2-dendropy)))
6535 (home-page "https://github.com/fhcrc/taxtastic")
6536 (synopsis "Tools for taxonomic naming and annotation")
6537 (description
6538 "Taxtastic is software written in python used to build and maintain
6539 reference packages i.e. collections of reference trees, reference alignments,
6540 profiles, and associated taxonomic information.")
6541 (license license:gpl3+)))
6542
6543 (define-public vcftools
6544 (package
6545 (name "vcftools")
6546 (version "0.1.15")
6547 (source (origin
6548 (method url-fetch)
6549 (uri (string-append
6550 "https://github.com/vcftools/vcftools/releases/download/v"
6551 version "/vcftools-" version ".tar.gz"))
6552 (sha256
6553 (base32
6554 "1qw30c45wihgy632rbz4rh3njnwj4msj46l1rsgdhyg6bgypmr1i"))))
6555 (build-system gnu-build-system)
6556 (arguments
6557 `(#:tests? #f ; no "check" target
6558 #:make-flags (list
6559 "CFLAGS=-O2" ; override "-m64" flag
6560 (string-append "PREFIX=" (assoc-ref %outputs "out"))
6561 (string-append "MANDIR=" (assoc-ref %outputs "out")
6562 "/share/man/man1"))))
6563 (native-inputs
6564 `(("pkg-config" ,pkg-config)))
6565 (inputs
6566 `(("perl" ,perl)
6567 ("zlib" ,zlib)))
6568 (home-page "https://vcftools.github.io/")
6569 (synopsis "Tools for working with VCF files")
6570 (description
6571 "VCFtools is a program package designed for working with VCF files, such
6572 as those generated by the 1000 Genomes Project. The aim of VCFtools is to
6573 provide easily accessible methods for working with complex genetic variation
6574 data in the form of VCF files.")
6575 ;; The license is declared as LGPLv3 in the README and
6576 ;; at https://vcftools.github.io/license.html
6577 (license license:lgpl3)))
6578
6579 (define-public infernal
6580 (package
6581 (name "infernal")
6582 (version "1.1.2")
6583 (source (origin
6584 (method url-fetch)
6585 (uri (string-append "http://eddylab.org/software/infernal/"
6586 "infernal-" version ".tar.gz"))
6587 (sha256
6588 (base32
6589 "0sr2hiz3qxfwqpz3whxr6n82p3x27336v3f34iqznp10hks2935c"))))
6590 (build-system gnu-build-system)
6591 (native-inputs
6592 `(("perl" ,perl))) ; for tests
6593 (home-page "http://eddylab.org/infernal/")
6594 (synopsis "Inference of RNA alignments")
6595 (description "Infernal (\"INFERence of RNA ALignment\") is a tool for
6596 searching DNA sequence databases for RNA structure and sequence similarities.
6597 It is an implementation of a special case of profile stochastic context-free
6598 grammars called @dfn{covariance models} (CMs). A CM is like a sequence
6599 profile, but it scores a combination of sequence consensus and RNA secondary
6600 structure consensus, so in many cases, it is more capable of identifying RNA
6601 homologs that conserve their secondary structure more than their primary
6602 sequence.")
6603 ;; Infernal 1.1.2 requires VMX or SSE capability for parallel instructions.
6604 (supported-systems '("i686-linux" "x86_64-linux"))
6605 (license license:bsd-3)))
6606
6607 (define-public r-scde
6608 (package
6609 (name "r-scde")
6610 (version "1.99.2")
6611 (source (origin
6612 (method git-fetch)
6613 (uri (git-reference
6614 (url "https://github.com/hms-dbmi/scde.git")
6615 (commit version)))
6616 (file-name (git-file-name name version))
6617 (sha256
6618 (base32
6619 "10na2gyka24mszdxf92wz9h2c13hdf1ww30c68gfsw53lvvhhhxb"))))
6620 (build-system r-build-system)
6621 (propagated-inputs
6622 `(("r-rcpp" ,r-rcpp)
6623 ("r-rcpparmadillo" ,r-rcpparmadillo)
6624 ("r-mgcv" ,r-mgcv)
6625 ("r-rook" ,r-rook)
6626 ("r-rjson" ,r-rjson)
6627 ("r-cairo" ,r-cairo)
6628 ("r-rcolorbrewer" ,r-rcolorbrewer)
6629 ("r-edger" ,r-edger)
6630 ("r-quantreg" ,r-quantreg)
6631 ("r-nnet" ,r-nnet)
6632 ("r-rmtstat" ,r-rmtstat)
6633 ("r-extremes" ,r-extremes)
6634 ("r-pcamethods" ,r-pcamethods)
6635 ("r-biocparallel" ,r-biocparallel)
6636 ("r-flexmix" ,r-flexmix)))
6637 (home-page "https://hms-dbmi.github.io/scde/")
6638 (synopsis "R package for analyzing single-cell RNA-seq data")
6639 (description "The SCDE package implements a set of statistical methods for
6640 analyzing single-cell RNA-seq data. SCDE fits individual error models for
6641 single-cell RNA-seq measurements. These models can then be used for
6642 assessment of differential expression between groups of cells, as well as
6643 other types of analysis. The SCDE package also contains the pagoda framework
6644 which applies pathway and gene set overdispersion analysis to identify aspects
6645 of transcriptional heterogeneity among single cells.")
6646 ;; See https://github.com/hms-dbmi/scde/issues/38
6647 (license license:gpl2)))
6648
6649 (define-public r-centipede
6650 (package
6651 (name "r-centipede")
6652 (version "1.2")
6653 (source (origin
6654 (method url-fetch)
6655 (uri (string-append "http://download.r-forge.r-project.org/"
6656 "src/contrib/CENTIPEDE_" version ".tar.gz"))
6657 (sha256
6658 (base32
6659 "1hsx6qgwr0i67fhy9257zj7s0ppncph2hjgbia5nn6nfmj0ax6l9"))))
6660 (build-system r-build-system)
6661 (home-page "http://centipede.uchicago.edu/")
6662 (synopsis "Predict transcription factor binding sites")
6663 (description
6664 "CENTIPEDE applies a hierarchical Bayesian mixture model to infer regions
6665 of the genome that are bound by particular transcription factors. It starts
6666 by identifying a set of candidate binding sites, and then aims to classify the
6667 sites according to whether each site is bound or not bound by a transcription
6668 factor. CENTIPEDE is an unsupervised learning algorithm that discriminates
6669 between two different types of motif instances using as much relevant
6670 information as possible.")
6671 (license (list license:gpl2+ license:gpl3+))))
6672
6673 (define-public r-genefilter
6674 (package
6675 (name "r-genefilter")
6676 (version "1.68.0")
6677 (source
6678 (origin
6679 (method url-fetch)
6680 (uri (bioconductor-uri "genefilter" version))
6681 (sha256
6682 (base32
6683 "1xjr02qhldspjwd6y374wgik18fgywb6408wsz471i8b4ik98ckc"))))
6684 (build-system r-build-system)
6685 (native-inputs
6686 `(("gfortran" ,gfortran)))
6687 (propagated-inputs
6688 `(("r-annotate" ,r-annotate)
6689 ("r-annotationdbi" ,r-annotationdbi)
6690 ("r-biobase" ,r-biobase)
6691 ("r-biocgenerics" ,r-biocgenerics)
6692 ("r-survival" ,r-survival)))
6693 (home-page "https://bioconductor.org/packages/genefilter")
6694 (synopsis "Filter genes from high-throughput experiments")
6695 (description
6696 "This package provides basic functions for filtering genes from
6697 high-throughput sequencing experiments.")
6698 (license license:artistic2.0)))
6699
6700 (define-public r-deseq2
6701 (package
6702 (name "r-deseq2")
6703 (version "1.26.0")
6704 (source
6705 (origin
6706 (method url-fetch)
6707 (uri (bioconductor-uri "DESeq2" version))
6708 (sha256
6709 (base32
6710 "1lmbhznfs8dz9ipd53z4ccwvwxqwzx1ayw56jlrvlsambaj8fash"))))
6711 (properties `((upstream-name . "DESeq2")))
6712 (build-system r-build-system)
6713 (propagated-inputs
6714 `(("r-biobase" ,r-biobase)
6715 ("r-biocgenerics" ,r-biocgenerics)
6716 ("r-biocparallel" ,r-biocparallel)
6717 ("r-genefilter" ,r-genefilter)
6718 ("r-geneplotter" ,r-geneplotter)
6719 ("r-genomicranges" ,r-genomicranges)
6720 ("r-ggplot2" ,r-ggplot2)
6721 ("r-hmisc" ,r-hmisc)
6722 ("r-iranges" ,r-iranges)
6723 ("r-locfit" ,r-locfit)
6724 ("r-rcpp" ,r-rcpp)
6725 ("r-rcpparmadillo" ,r-rcpparmadillo)
6726 ("r-s4vectors" ,r-s4vectors)
6727 ("r-summarizedexperiment" ,r-summarizedexperiment)))
6728 (home-page "https://bioconductor.org/packages/DESeq2")
6729 (synopsis "Differential gene expression analysis")
6730 (description
6731 "This package provides functions to estimate variance-mean dependence in
6732 count data from high-throughput nucleotide sequencing assays and test for
6733 differential expression based on a model using the negative binomial
6734 distribution.")
6735 (license license:lgpl3+)))
6736
6737 (define-public r-dexseq
6738 (package
6739 (name "r-dexseq")
6740 (version "1.32.0")
6741 (source
6742 (origin
6743 (method url-fetch)
6744 (uri (bioconductor-uri "DEXSeq" version))
6745 (sha256
6746 (base32
6747 "0sqqb65ckliif2nmvlvc7w49id59z0nvqcdz5gry8l2mn6azrf6a"))))
6748 (properties `((upstream-name . "DEXSeq")))
6749 (build-system r-build-system)
6750 (propagated-inputs
6751 `(("r-annotationdbi" ,r-annotationdbi)
6752 ("r-biobase" ,r-biobase)
6753 ("r-biocgenerics" ,r-biocgenerics)
6754 ("r-biocparallel" ,r-biocparallel)
6755 ("r-biomart" ,r-biomart)
6756 ("r-deseq2" ,r-deseq2)
6757 ("r-genefilter" ,r-genefilter)
6758 ("r-geneplotter" ,r-geneplotter)
6759 ("r-genomicranges" ,r-genomicranges)
6760 ("r-hwriter" ,r-hwriter)
6761 ("r-iranges" ,r-iranges)
6762 ("r-rcolorbrewer" ,r-rcolorbrewer)
6763 ("r-rsamtools" ,r-rsamtools)
6764 ("r-s4vectors" ,r-s4vectors)
6765 ("r-statmod" ,r-statmod)
6766 ("r-stringr" ,r-stringr)
6767 ("r-summarizedexperiment" ,r-summarizedexperiment)))
6768 (home-page "https://bioconductor.org/packages/DEXSeq")
6769 (synopsis "Inference of differential exon usage in RNA-Seq")
6770 (description
6771 "This package is focused on finding differential exon usage using RNA-seq
6772 exon counts between samples with different experimental designs. It provides
6773 functions that allows the user to make the necessary statistical tests based
6774 on a model that uses the negative binomial distribution to estimate the
6775 variance between biological replicates and generalized linear models for
6776 testing. The package also provides functions for the visualization and
6777 exploration of the results.")
6778 (license license:gpl3+)))
6779
6780 (define-public r-annotationforge
6781 (package
6782 (name "r-annotationforge")
6783 (version "1.28.0")
6784 (source
6785 (origin
6786 (method url-fetch)
6787 (uri (bioconductor-uri "AnnotationForge" version))
6788 (sha256
6789 (base32
6790 "0h2r60v339ajk5r6xq4iwwcpihdvf12fi8255byr2dhglzrd8xl7"))))
6791 (properties
6792 `((upstream-name . "AnnotationForge")))
6793 (build-system r-build-system)
6794 (propagated-inputs
6795 `(("r-annotationdbi" ,r-annotationdbi)
6796 ("r-biobase" ,r-biobase)
6797 ("r-biocgenerics" ,r-biocgenerics)
6798 ("r-dbi" ,r-dbi)
6799 ("r-rcurl" ,r-rcurl)
6800 ("r-rsqlite" ,r-rsqlite)
6801 ("r-s4vectors" ,r-s4vectors)
6802 ("r-xml" ,r-xml)))
6803 (home-page "https://bioconductor.org/packages/AnnotationForge")
6804 (synopsis "Code for building annotation database packages")
6805 (description
6806 "This package provides code for generating Annotation packages and their
6807 databases. Packages produced are intended to be used with AnnotationDbi.")
6808 (license license:artistic2.0)))
6809
6810 (define-public r-rbgl
6811 (package
6812 (name "r-rbgl")
6813 (version "1.62.1")
6814 (source
6815 (origin
6816 (method url-fetch)
6817 (uri (bioconductor-uri "RBGL" version))
6818 (sha256
6819 (base32
6820 "0ixbkdirf08i400db587r262j52sdwdgk3884nxk5xkbhx2m6vg0"))))
6821 (properties `((upstream-name . "RBGL")))
6822 (build-system r-build-system)
6823 (propagated-inputs
6824 `(("r-bh" ,r-bh)
6825 ("r-graph" ,r-graph)))
6826 (home-page "https://www.bioconductor.org/packages/RBGL")
6827 (synopsis "Interface to the Boost graph library")
6828 (description
6829 "This package provides a fairly extensive and comprehensive interface to
6830 the graph algorithms contained in the Boost library.")
6831 (license license:artistic2.0)))
6832
6833 (define-public r-gseabase
6834 (package
6835 (name "r-gseabase")
6836 (version "1.48.0")
6837 (source
6838 (origin
6839 (method url-fetch)
6840 (uri (bioconductor-uri "GSEABase" version))
6841 (sha256
6842 (base32
6843 "0kcb90sxlf19d5dxhdbqk9x62svky4262cccl0wxarbq6gf3bd57"))))
6844 (properties `((upstream-name . "GSEABase")))
6845 (build-system r-build-system)
6846 (propagated-inputs
6847 `(("r-annotate" ,r-annotate)
6848 ("r-annotationdbi" ,r-annotationdbi)
6849 ("r-biobase" ,r-biobase)
6850 ("r-biocgenerics" ,r-biocgenerics)
6851 ("r-graph" ,r-graph)
6852 ("r-xml" ,r-xml)))
6853 (home-page "https://bioconductor.org/packages/GSEABase")
6854 (synopsis "Gene set enrichment data structures and methods")
6855 (description
6856 "This package provides classes and methods to support @dfn{Gene Set
6857 Enrichment Analysis} (GSEA).")
6858 (license license:artistic2.0)))
6859
6860 (define-public r-category
6861 (package
6862 (name "r-category")
6863 (version "2.52.1")
6864 (source
6865 (origin
6866 (method url-fetch)
6867 (uri (bioconductor-uri "Category" version))
6868 (sha256
6869 (base32
6870 "0ga0ij9hyzsxa5pavwmv35i8xggia2wygrk4m4z8an0qcvgy3v5g"))))
6871 (properties `((upstream-name . "Category")))
6872 (build-system r-build-system)
6873 (propagated-inputs
6874 `(("r-annotate" ,r-annotate)
6875 ("r-annotationdbi" ,r-annotationdbi)
6876 ("r-biobase" ,r-biobase)
6877 ("r-biocgenerics" ,r-biocgenerics)
6878 ("r-genefilter" ,r-genefilter)
6879 ("r-graph" ,r-graph)
6880 ("r-gseabase" ,r-gseabase)
6881 ("r-matrix" ,r-matrix)
6882 ("r-rbgl" ,r-rbgl)
6883 ("r-dbi" ,r-dbi)))
6884 (home-page "https://bioconductor.org/packages/Category")
6885 (synopsis "Category analysis")
6886 (description
6887 "This package provides a collection of tools for performing category
6888 analysis.")
6889 (license license:artistic2.0)))
6890
6891 (define-public r-gostats
6892 (package
6893 (name "r-gostats")
6894 (version "2.52.0")
6895 (source
6896 (origin
6897 (method url-fetch)
6898 (uri (bioconductor-uri "GOstats" version))
6899 (sha256
6900 (base32
6901 "19f4gxm3sbprqrnwzvskvywv6j4ibm8xkrbgg4h0fvh2b5331nwc"))))
6902 (properties `((upstream-name . "GOstats")))
6903 (build-system r-build-system)
6904 (propagated-inputs
6905 `(("r-annotate" ,r-annotate)
6906 ("r-annotationdbi" ,r-annotationdbi)
6907 ("r-annotationforge" ,r-annotationforge)
6908 ("r-biobase" ,r-biobase)
6909 ("r-category" ,r-category)
6910 ("r-go-db" ,r-go-db)
6911 ("r-graph" ,r-graph)
6912 ("r-rgraphviz" ,r-rgraphviz)
6913 ("r-rbgl" ,r-rbgl)))
6914 (home-page "https://bioconductor.org/packages/GOstats")
6915 (synopsis "Tools for manipulating GO and microarrays")
6916 (description
6917 "This package provides a set of tools for interacting with GO and
6918 microarray data. A variety of basic manipulation tools for graphs, hypothesis
6919 testing and other simple calculations.")
6920 (license license:artistic2.0)))
6921
6922 (define-public r-shortread
6923 (package
6924 (name "r-shortread")
6925 (version "1.44.1")
6926 (source
6927 (origin
6928 (method url-fetch)
6929 (uri (bioconductor-uri "ShortRead" version))
6930 (sha256
6931 (base32
6932 "1dh3q83hmi4l72vpif6dn51dzbi9ljrjgkq2zxg4sqy2jxv4vwza"))))
6933 (properties `((upstream-name . "ShortRead")))
6934 (build-system r-build-system)
6935 (inputs
6936 `(("zlib" ,zlib)))
6937 (propagated-inputs
6938 `(("r-biobase" ,r-biobase)
6939 ("r-biocgenerics" ,r-biocgenerics)
6940 ("r-biocparallel" ,r-biocparallel)
6941 ("r-biostrings" ,r-biostrings)
6942 ("r-genomeinfodb" ,r-genomeinfodb)
6943 ("r-genomicalignments" ,r-genomicalignments)
6944 ("r-genomicranges" ,r-genomicranges)
6945 ("r-hwriter" ,r-hwriter)
6946 ("r-iranges" ,r-iranges)
6947 ("r-lattice" ,r-lattice)
6948 ("r-latticeextra" ,r-latticeextra)
6949 ("r-rsamtools" ,r-rsamtools)
6950 ("r-s4vectors" ,r-s4vectors)
6951 ("r-xvector" ,r-xvector)
6952 ("r-zlibbioc" ,r-zlibbioc)))
6953 (home-page "https://bioconductor.org/packages/ShortRead")
6954 (synopsis "FASTQ input and manipulation tools")
6955 (description
6956 "This package implements sampling, iteration, and input of FASTQ files.
6957 It includes functions for filtering and trimming reads, and for generating a
6958 quality assessment report. Data are represented as
6959 @code{DNAStringSet}-derived objects, and easily manipulated for a diversity of
6960 purposes. The package also contains legacy support for early single-end,
6961 ungapped alignment formats.")
6962 (license license:artistic2.0)))
6963
6964 (define-public r-systempiper
6965 (package
6966 (name "r-systempiper")
6967 (version "1.20.0")
6968 (source
6969 (origin
6970 (method url-fetch)
6971 (uri (bioconductor-uri "systemPipeR" version))
6972 (sha256
6973 (base32
6974 "17r25v9wcglyma2v1c8fka80dm7fx86saxlsb2aprmwi4h3dhb0j"))))
6975 (properties `((upstream-name . "systemPipeR")))
6976 (build-system r-build-system)
6977 (propagated-inputs
6978 `(("r-annotate" ,r-annotate)
6979 ("r-batchtools" ,r-batchtools)
6980 ("r-biocgenerics" ,r-biocgenerics)
6981 ("r-biostrings" ,r-biostrings)
6982 ("r-deseq2" ,r-deseq2)
6983 ("r-edger" ,r-edger)
6984 ("r-genomicfeatures" ,r-genomicfeatures)
6985 ("r-genomicranges" ,r-genomicranges)
6986 ("r-ggplot2" ,r-ggplot2)
6987 ("r-go-db" ,r-go-db)
6988 ("r-gostats" ,r-gostats)
6989 ("r-limma" ,r-limma)
6990 ("r-pheatmap" ,r-pheatmap)
6991 ("r-rjson" ,r-rjson)
6992 ("r-rsamtools" ,r-rsamtools)
6993 ("r-shortread" ,r-shortread)
6994 ("r-summarizedexperiment" ,r-summarizedexperiment)
6995 ("r-yaml" ,r-yaml)
6996 ("r-variantannotation" ,r-variantannotation)))
6997 (home-page "https://github.com/tgirke/systemPipeR")
6998 (synopsis "Next generation sequencing workflow and reporting environment")
6999 (description
7000 "This R package provides tools for building and running automated
7001 end-to-end analysis workflows for a wide range of @dfn{next generation
7002 sequence} (NGS) applications such as RNA-Seq, ChIP-Seq, VAR-Seq and Ribo-Seq.
7003 Important features include a uniform workflow interface across different NGS
7004 applications, automated report generation, and support for running both R and
7005 command-line software, such as NGS aligners or peak/variant callers, on local
7006 computers or compute clusters. Efficient handling of complex sample sets and
7007 experimental designs is facilitated by a consistently implemented sample
7008 annotation infrastructure.")
7009 (license license:artistic2.0)))
7010
7011 (define-public r-grohmm
7012 (package
7013 (name "r-grohmm")
7014 (version "1.20.0")
7015 (source
7016 (origin
7017 (method url-fetch)
7018 (uri (bioconductor-uri "groHMM" version))
7019 (sha256
7020 (base32
7021 "0ywr8f6bfhg2ia3n4rmsxr4v1xqmlyhkwh0rvkgh3yqgnbvihndg"))))
7022 (properties `((upstream-name . "groHMM")))
7023 (build-system r-build-system)
7024 (propagated-inputs
7025 `(("r-genomeinfodb" ,r-genomeinfodb)
7026 ("r-genomicalignments" ,r-genomicalignments)
7027 ("r-genomicranges" ,r-genomicranges)
7028 ("r-iranges" ,r-iranges)
7029 ("r-mass" ,r-mass)
7030 ("r-rtracklayer" ,r-rtracklayer)
7031 ("r-s4vectors" ,r-s4vectors)))
7032 (home-page "https://github.com/Kraus-Lab/groHMM")
7033 (synopsis "GRO-seq analysis pipeline")
7034 (description
7035 "This package provides a pipeline for the analysis of GRO-seq data.")
7036 (license license:gpl3+)))
7037
7038 (define-public vsearch
7039 (package
7040 (name "vsearch")
7041 (version "2.9.1")
7042 (source
7043 (origin
7044 (method git-fetch)
7045 (uri (git-reference
7046 (url "https://github.com/torognes/vsearch.git")
7047 (commit (string-append "v" version))))
7048 (file-name (git-file-name name version))
7049 (sha256
7050 (base32
7051 "0vhrpjfdf75ba04b24xknp41790cvcgwl0vgpy7qbzj5xh2521ss"))
7052 (patches (search-patches "vsearch-unbundle-cityhash.patch"))
7053 (snippet
7054 '(begin
7055 ;; Remove bundled cityhash sources. The vsearch source is adjusted
7056 ;; for this in the patch.
7057 (delete-file "src/city.h")
7058 (delete-file "src/citycrc.h")
7059 (delete-file "src/city.cc")
7060 #t))))
7061 (build-system gnu-build-system)
7062 (inputs
7063 `(("zlib" ,zlib)
7064 ("bzip2" ,bzip2)
7065 ("cityhash" ,cityhash)))
7066 (native-inputs
7067 `(("autoconf" ,autoconf)
7068 ("automake" ,automake)))
7069 (synopsis "Sequence search tools for metagenomics")
7070 (description
7071 "VSEARCH supports DNA sequence searching, clustering, chimera detection,
7072 dereplication, pairwise alignment, shuffling, subsampling, sorting and
7073 masking. The tool takes advantage of parallelism in the form of SIMD
7074 vectorization as well as multiple threads to perform accurate alignments at
7075 high speed. VSEARCH uses an optimal global aligner (full dynamic programming
7076 Needleman-Wunsch).")
7077 (home-page "https://github.com/torognes/vsearch")
7078 ;; vsearch uses non-portable SSE intrinsics so building fails on other
7079 ;; platforms.
7080 (supported-systems '("x86_64-linux"))
7081 ;; Dual licensed; also includes public domain source.
7082 (license (list license:gpl3 license:bsd-2))))
7083
7084 (define-public pardre
7085 (package
7086 (name "pardre")
7087 ;; The source of 1.1.5 changed in place, so we append "-1" to the version.
7088 (version "1.1.5-1")
7089 (source
7090 (origin
7091 (method url-fetch)
7092 (uri (string-append "mirror://sourceforge/pardre/ParDRe-rel"
7093 "1.1.5" ".tar.gz"))
7094 (sha256
7095 (base32
7096 "17j73nc0viq4f6qj50nrndsrif5d6b71q8fl87m54psiv0ilns2b"))))
7097 (build-system gnu-build-system)
7098 (arguments
7099 `(#:tests? #f ; no tests included
7100 #:phases
7101 (modify-phases %standard-phases
7102 (delete 'configure)
7103 (replace 'install
7104 (lambda* (#:key outputs #:allow-other-keys)
7105 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
7106 (install-file "ParDRe" bin)
7107 #t))))))
7108 (inputs
7109 `(("openmpi" ,openmpi)
7110 ("zlib" ,zlib)))
7111 (synopsis "Parallel tool to remove duplicate DNA reads")
7112 (description
7113 "ParDRe is a parallel tool to remove duplicate genetic sequence reads.
7114 Duplicate reads can be seen as identical or nearly identical sequences with
7115 some mismatches. This tool lets users avoid the analysis of unnecessary
7116 reads, reducing the time of subsequent procedures with the
7117 dataset (e.g. assemblies, mappings, etc.). The tool is implemented with MPI
7118 in order to exploit the parallel capabilities of multicore clusters. It is
7119 faster than multithreaded counterparts (end of 2015) for the same number of
7120 cores and, thanks to the message-passing technology, it can be executed on
7121 clusters.")
7122 (home-page "https://sourceforge.net/projects/pardre/")
7123 (license license:gpl3+)))
7124
7125 (define-public ruby-bio-kseq
7126 (package
7127 (name "ruby-bio-kseq")
7128 (version "0.0.2")
7129 (source
7130 (origin
7131 (method url-fetch)
7132 (uri (rubygems-uri "bio-kseq" version))
7133 (sha256
7134 (base32
7135 "1xyaha46khb5jc6wzkbf7040jagac49jbimn0vcrzid0j8jdikrz"))))
7136 (build-system ruby-build-system)
7137 (arguments
7138 `(#:test-target "spec"))
7139 (native-inputs
7140 `(("bundler" ,bundler)
7141 ("ruby-rspec" ,ruby-rspec)
7142 ("ruby-rake-compiler" ,ruby-rake-compiler)))
7143 (inputs
7144 `(("zlib" ,zlib)))
7145 (synopsis "Ruby bindings for the kseq.h FASTA/Q parser")
7146 (description
7147 "@code{Bio::Kseq} provides ruby bindings to the @code{kseq.h} FASTA and
7148 FASTQ parsing code. It provides a fast iterator over sequences and their
7149 quality scores.")
7150 (home-page "https://github.com/gusevfe/bio-kseq")
7151 (license license:expat)))
7152
7153 (define-public bio-locus
7154 (package
7155 (name "bio-locus")
7156 (version "0.0.7")
7157 (source
7158 (origin
7159 (method url-fetch)
7160 (uri (rubygems-uri "bio-locus" version))
7161 (sha256
7162 (base32
7163 "02vmrxyimkj9sahsp4zhfhnmbvz6dbbqz1y01vglf8cbwvkajfl0"))))
7164 (build-system ruby-build-system)
7165 (native-inputs
7166 `(("ruby-rspec" ,ruby-rspec)))
7167 (synopsis "Tool for fast querying of genome locations")
7168 (description
7169 "Bio-locus is a tabix-like tool for fast querying of genome
7170 locations. Many file formats in bioinformatics contain records that
7171 start with a chromosome name and a position for a SNP, or a start-end
7172 position for indels. Bio-locus allows users to store this chr+pos or
7173 chr+pos+alt information in a database.")
7174 (home-page "https://github.com/pjotrp/bio-locus")
7175 (license license:expat)))
7176
7177 (define-public bio-blastxmlparser
7178 (package
7179 (name "bio-blastxmlparser")
7180 (version "2.0.4")
7181 (source (origin
7182 (method url-fetch)
7183 (uri (rubygems-uri "bio-blastxmlparser" version))
7184 (sha256
7185 (base32
7186 "1wf4qygcmdjgcqm6flmvsagfr1gs9lf63mj32qv3z1f481zc5692"))))
7187 (build-system ruby-build-system)
7188 (propagated-inputs
7189 `(("ruby-bio-logger" ,ruby-bio-logger)
7190 ("ruby-nokogiri" ,ruby-nokogiri)))
7191 (inputs
7192 `(("ruby-rspec" ,ruby-rspec)))
7193 (synopsis "Fast big data BLAST XML parser and library")
7194 (description
7195 "Very fast parallel big-data BLAST XML file parser which can be used as
7196 command line utility. Use blastxmlparser to: Parse BLAST XML; filter output;
7197 generate FASTA, JSON, YAML, RDF, JSON-LD, HTML, CSV, tabular output etc.")
7198 (home-page "https://github.com/pjotrp/blastxmlparser")
7199 (license license:expat)))
7200
7201 (define-public bioruby
7202 (package
7203 (name "bioruby")
7204 (version "1.5.2")
7205 (source
7206 (origin
7207 (method url-fetch)
7208 (uri (rubygems-uri "bio" version))
7209 (sha256
7210 (base32
7211 "1d56amdsjv1mag7m6gv2w0xij8hqx1v5xbdjsix8sp3yp36m7938"))))
7212 (build-system ruby-build-system)
7213 (propagated-inputs
7214 `(("ruby-libxml" ,ruby-libxml)))
7215 (native-inputs
7216 `(("which" ,which))) ; required for test phase
7217 (arguments
7218 `(#:phases
7219 (modify-phases %standard-phases
7220 (add-before 'build 'patch-test-command
7221 (lambda _
7222 (substitute* '("test/functional/bio/test_command.rb")
7223 (("/bin/sh") (which "sh")))
7224 (substitute* '("test/functional/bio/test_command.rb")
7225 (("/bin/ls") (which "ls")))
7226 (substitute* '("test/functional/bio/test_command.rb")
7227 (("which") (which "which")))
7228 (substitute* '("test/functional/bio/test_command.rb",
7229 "test/data/command/echoarg2.sh")
7230 (("/bin/echo") (which "echo")))
7231 #t)))))
7232 (synopsis "Ruby library, shell and utilities for bioinformatics")
7233 (description "BioRuby comes with a comprehensive set of Ruby development
7234 tools and libraries for bioinformatics and molecular biology. BioRuby has
7235 components for sequence analysis, pathway analysis, protein modelling and
7236 phylogenetic analysis; it supports many widely used data formats and provides
7237 easy access to databases, external programs and public web services, including
7238 BLAST, KEGG, GenBank, MEDLINE and GO.")
7239 (home-page "http://bioruby.org/")
7240 ;; Code is released under Ruby license, except for setup
7241 ;; (LGPLv2.1+) and scripts in samples (which have GPL2 and GPL2+)
7242 (license (list license:ruby license:lgpl2.1+ license:gpl2+ ))))
7243
7244 (define-public r-biocviews
7245 (package
7246 (name "r-biocviews")
7247 (version "1.54.0")
7248 (source (origin
7249 (method url-fetch)
7250 (uri (bioconductor-uri "biocViews" version))
7251 (sha256
7252 (base32
7253 "0yn8jys1900d31haayz0ppqk5y79mwjajwp4alz6pln3dbs70f3g"))))
7254 (properties
7255 `((upstream-name . "biocViews")))
7256 (build-system r-build-system)
7257 (propagated-inputs
7258 `(("r-biobase" ,r-biobase)
7259 ("r-biocmanager" ,r-biocmanager)
7260 ("r-graph" ,r-graph)
7261 ("r-rbgl" ,r-rbgl)
7262 ("r-rcurl" ,r-rcurl)
7263 ("r-xml" ,r-xml)
7264 ("r-runit" ,r-runit)))
7265 (home-page "https://bioconductor.org/packages/biocViews")
7266 (synopsis "Bioconductor package categorization helper")
7267 (description "The purpose of biocViews is to create HTML pages that
7268 categorize packages in a Bioconductor package repository according to keywords,
7269 also known as views, in a controlled vocabulary.")
7270 (license license:artistic2.0)))
7271
7272 (define-public r-biocstyle
7273 (package
7274 (name "r-biocstyle")
7275 (version "2.14.2")
7276 (source (origin
7277 (method url-fetch)
7278 (uri (bioconductor-uri "BiocStyle" version))
7279 (sha256
7280 (base32
7281 "0nc1cbzp5zdwc0rss4r6v7cpgynmmnj3sczwmajr58nabkndwsvf"))))
7282 (properties
7283 `((upstream-name . "BiocStyle")))
7284 (build-system r-build-system)
7285 (propagated-inputs
7286 `(("r-biocmanager" ,r-biocmanager)
7287 ("r-bookdown" ,r-bookdown)
7288 ("r-knitr" ,r-knitr)
7289 ("r-rmarkdown" ,r-rmarkdown)
7290 ("r-yaml" ,r-yaml)))
7291 (home-page "https://bioconductor.org/packages/BiocStyle")
7292 (synopsis "Bioconductor formatting styles")
7293 (description "This package provides standard formatting styles for
7294 Bioconductor PDF and HTML documents. Package vignettes illustrate use and
7295 functionality.")
7296 (license license:artistic2.0)))
7297
7298 (define-public r-bioccheck
7299 (package
7300 (name "r-bioccheck")
7301 (version "1.22.0")
7302 (source (origin
7303 (method url-fetch)
7304 (uri (bioconductor-uri "BiocCheck" version))
7305 (sha256
7306 (base32
7307 "1qnvl5yajgh67ijkq6gdsafri1k5hyw5gzn2ccqk9ymx6i2xd80g"))))
7308 (properties
7309 `((upstream-name . "BiocCheck")))
7310 (build-system r-build-system)
7311 (arguments
7312 '(#:phases
7313 (modify-phases %standard-phases
7314 ;; This package can be used by calling BiocCheck(<package>) from
7315 ;; within R, or by running R CMD BiocCheck <package>. This phase
7316 ;; makes sure the latter works. For this to work, the BiocCheck
7317 ;; script must be somewhere on the PATH (not the R bin directory).
7318 (add-after 'install 'install-bioccheck-subcommand
7319 (lambda* (#:key outputs #:allow-other-keys)
7320 (let* ((out (assoc-ref outputs "out"))
7321 (dest-dir (string-append out "/bin"))
7322 (script-dir
7323 (string-append out "/site-library/BiocCheck/script/")))
7324 (mkdir-p dest-dir)
7325 (symlink (string-append script-dir "/checkBadDeps.R")
7326 (string-append dest-dir "/checkBadDeps.R"))
7327 (symlink (string-append script-dir "/BiocCheck")
7328 (string-append dest-dir "/BiocCheck")))
7329 #t)))))
7330 (propagated-inputs
7331 `(("r-codetools" ,r-codetools)
7332 ("r-graph" ,r-graph)
7333 ("r-httr" ,r-httr)
7334 ("r-knitr" ,r-knitr)
7335 ("r-optparse" ,r-optparse)
7336 ("r-biocmanager" ,r-biocmanager)
7337 ("r-biocviews" ,r-biocviews)
7338 ("r-stringdist" ,r-stringdist)))
7339 (home-page "https://bioconductor.org/packages/BiocCheck")
7340 (synopsis "Executes Bioconductor-specific package checks")
7341 (description "This package contains tools to perform additional quality
7342 checks on R packages that are to be submitted to the Bioconductor repository.")
7343 (license license:artistic2.0)))
7344
7345 (define-public r-s4vectors
7346 (package
7347 (name "r-s4vectors")
7348 (version "0.24.1")
7349 (source (origin
7350 (method url-fetch)
7351 (uri (bioconductor-uri "S4Vectors" version))
7352 (sha256
7353 (base32
7354 "1rr7ml3gn83g8fbvhgvryyzlh4p3qgpwcrsz6ii4y7gh1hqxggpx"))))
7355 (properties
7356 `((upstream-name . "S4Vectors")))
7357 (build-system r-build-system)
7358 (propagated-inputs
7359 `(("r-biocgenerics" ,r-biocgenerics)))
7360 (home-page "https://bioconductor.org/packages/S4Vectors")
7361 (synopsis "S4 implementation of vectors and lists")
7362 (description
7363 "The S4Vectors package defines the @code{Vector} and @code{List} virtual
7364 classes and a set of generic functions that extend the semantic of ordinary
7365 vectors and lists in R. Package developers can easily implement vector-like
7366 or list-like objects as concrete subclasses of @code{Vector} or @code{List}.
7367 In addition, a few low-level concrete subclasses of general interest (e.g.
7368 @code{DataFrame}, @code{Rle}, and @code{Hits}) are implemented in the
7369 S4Vectors package itself.")
7370 (license license:artistic2.0)))
7371
7372 (define-public r-iranges
7373 (package
7374 (name "r-iranges")
7375 (version "2.20.1")
7376 (source (origin
7377 (method url-fetch)
7378 (uri (bioconductor-uri "IRanges" version))
7379 (sha256
7380 (base32
7381 "0qssp04wfrc1r92hd3szy03n8sdz8vrqjdxa2mcrsc0k0n9bchz5"))))
7382 (properties
7383 `((upstream-name . "IRanges")))
7384 (build-system r-build-system)
7385 (propagated-inputs
7386 `(("r-biocgenerics" ,r-biocgenerics)
7387 ("r-s4vectors" ,r-s4vectors)))
7388 (home-page "https://bioconductor.org/packages/IRanges")
7389 (synopsis "Infrastructure for manipulating intervals on sequences")
7390 (description
7391 "This package provides efficient low-level and highly reusable S4 classes
7392 for storing ranges of integers, RLE vectors (Run-Length Encoding), and, more
7393 generally, data that can be organized sequentially (formally defined as
7394 @code{Vector} objects), as well as views on these @code{Vector} objects.
7395 Efficient list-like classes are also provided for storing big collections of
7396 instances of the basic classes. All classes in the package use consistent
7397 naming and share the same rich and consistent \"Vector API\" as much as
7398 possible.")
7399 (license license:artistic2.0)))
7400
7401 (define-public r-genomeinfodbdata
7402 (package
7403 (name "r-genomeinfodbdata")
7404 (version "1.2.0")
7405 (source (origin
7406 (method url-fetch)
7407 ;; We cannot use bioconductor-uri here because this tarball is
7408 ;; located under "data/annotation/" instead of "bioc/".
7409 (uri (string-append "https://bioconductor.org/packages/release/"
7410 "data/annotation/src/contrib/GenomeInfoDbData_"
7411 version ".tar.gz"))
7412 (sha256
7413 (base32
7414 "0di6nlqpsyqf693k2na65ayqldih563x3zfrczpqc5q2hl5kg35c"))))
7415 (properties
7416 `((upstream-name . "GenomeInfoDbData")))
7417 (build-system r-build-system)
7418 (home-page "https://bioconductor.org/packages/GenomeInfoDbData")
7419 (synopsis "Species and taxonomy ID look up tables for GenomeInfoDb")
7420 (description "This package contains data for mapping between NCBI taxonomy
7421 ID and species. It is used by functions in the GenomeInfoDb package.")
7422 (license license:artistic2.0)))
7423
7424 (define-public r-genomeinfodb
7425 (package
7426 (name "r-genomeinfodb")
7427 (version "1.22.0")
7428 (source (origin
7429 (method url-fetch)
7430 (uri (bioconductor-uri "GenomeInfoDb" version))
7431 (sha256
7432 (base32
7433 "07zljs2mfi8rf31g903f43v2f7767xbnflfrx9qjnmgf7bm039x0"))))
7434 (properties
7435 `((upstream-name . "GenomeInfoDb")))
7436 (build-system r-build-system)
7437 (propagated-inputs
7438 `(("r-biocgenerics" ,r-biocgenerics)
7439 ("r-genomeinfodbdata" ,r-genomeinfodbdata)
7440 ("r-iranges" ,r-iranges)
7441 ("r-rcurl" ,r-rcurl)
7442 ("r-s4vectors" ,r-s4vectors)))
7443 (home-page "https://bioconductor.org/packages/GenomeInfoDb")
7444 (synopsis "Utilities for manipulating chromosome identifiers")
7445 (description
7446 "This package contains data and functions that define and allow
7447 translation between different chromosome sequence naming conventions (e.g.,
7448 \"chr1\" versus \"1\"), including a function that attempts to place sequence
7449 names in their natural, rather than lexicographic, order.")
7450 (license license:artistic2.0)))
7451
7452 (define-public r-edger
7453 (package
7454 (name "r-edger")
7455 (version "3.28.0")
7456 (source (origin
7457 (method url-fetch)
7458 (uri (bioconductor-uri "edgeR" version))
7459 (sha256
7460 (base32
7461 "1m7l6fbyik1b79v0h9qkmpa39svij1yiw24gxahbdqjg7fzsavh3"))))
7462 (properties `((upstream-name . "edgeR")))
7463 (build-system r-build-system)
7464 (propagated-inputs
7465 `(("r-limma" ,r-limma)
7466 ("r-locfit" ,r-locfit)
7467 ("r-rcpp" ,r-rcpp)
7468 ("r-statmod" ,r-statmod))) ;for estimateDisp
7469 (home-page "http://bioinf.wehi.edu.au/edgeR")
7470 (synopsis "EdgeR does empirical analysis of digital gene expression data")
7471 (description "This package can do differential expression analysis of
7472 RNA-seq expression profiles with biological replication. It implements a range
7473 of statistical methodology based on the negative binomial distributions,
7474 including empirical Bayes estimation, exact tests, generalized linear models
7475 and quasi-likelihood tests. It be applied to differential signal analysis of
7476 other types of genomic data that produce counts, including ChIP-seq, SAGE and
7477 CAGE.")
7478 (license license:gpl2+)))
7479
7480 (define-public r-variantannotation
7481 (package
7482 (name "r-variantannotation")
7483 (version "1.32.0")
7484 (source (origin
7485 (method url-fetch)
7486 (uri (bioconductor-uri "VariantAnnotation" version))
7487 (sha256
7488 (base32
7489 "009s7rzp78s2w6iybizina42qx2w8qv3xwjbkpqphmm451maykgs"))))
7490 (properties
7491 `((upstream-name . "VariantAnnotation")))
7492 (inputs
7493 `(("zlib" ,zlib)))
7494 (propagated-inputs
7495 `(("r-annotationdbi" ,r-annotationdbi)
7496 ("r-biobase" ,r-biobase)
7497 ("r-biocgenerics" ,r-biocgenerics)
7498 ("r-biostrings" ,r-biostrings)
7499 ("r-bsgenome" ,r-bsgenome)
7500 ("r-dbi" ,r-dbi)
7501 ("r-genomeinfodb" ,r-genomeinfodb)
7502 ("r-genomicfeatures" ,r-genomicfeatures)
7503 ("r-genomicranges" ,r-genomicranges)
7504 ("r-iranges" ,r-iranges)
7505 ("r-summarizedexperiment" ,r-summarizedexperiment)
7506 ("r-rhtslib" ,r-rhtslib)
7507 ("r-rsamtools" ,r-rsamtools)
7508 ("r-rtracklayer" ,r-rtracklayer)
7509 ("r-s4vectors" ,r-s4vectors)
7510 ("r-xvector" ,r-xvector)
7511 ("r-zlibbioc" ,r-zlibbioc)))
7512 (build-system r-build-system)
7513 (home-page "https://bioconductor.org/packages/VariantAnnotation")
7514 (synopsis "Package for annotation of genetic variants")
7515 (description "This R package can annotate variants, compute amino acid
7516 coding changes and predict coding outcomes.")
7517 (license license:artistic2.0)))
7518
7519 (define-public r-limma
7520 (package
7521 (name "r-limma")
7522 (version "3.42.0")
7523 (source (origin
7524 (method url-fetch)
7525 (uri (bioconductor-uri "limma" version))
7526 (sha256
7527 (base32
7528 "0cfynv6qbnar5rl7vjh5lvddd381g9wqx1zd6a7l130hf59mwswn"))))
7529 (build-system r-build-system)
7530 (home-page "http://bioinf.wehi.edu.au/limma")
7531 (synopsis "Package for linear models for microarray and RNA-seq data")
7532 (description "This package can be used for the analysis of gene expression
7533 studies, especially the use of linear models for analysing designed experiments
7534 and the assessment of differential expression. The analysis methods apply to
7535 different technologies, including microarrays, RNA-seq, and quantitative PCR.")
7536 (license license:gpl2+)))
7537
7538 (define-public r-xvector
7539 (package
7540 (name "r-xvector")
7541 (version "0.26.0")
7542 (source (origin
7543 (method url-fetch)
7544 (uri (bioconductor-uri "XVector" version))
7545 (sha256
7546 (base32
7547 "0s2gg84yzl5ffkzp6n7kh0jjk1vd90z189f5hkfn18rn67cy2nv7"))))
7548 (properties
7549 `((upstream-name . "XVector")))
7550 (build-system r-build-system)
7551 (arguments
7552 `(#:phases
7553 (modify-phases %standard-phases
7554 (add-after 'unpack 'use-system-zlib
7555 (lambda _
7556 (substitute* "DESCRIPTION"
7557 (("zlibbioc, ") ""))
7558 (substitute* "NAMESPACE"
7559 (("import\\(zlibbioc\\)") ""))
7560 #t)))))
7561 (inputs
7562 `(("zlib" ,zlib)))
7563 (propagated-inputs
7564 `(("r-biocgenerics" ,r-biocgenerics)
7565 ("r-iranges" ,r-iranges)
7566 ("r-s4vectors" ,r-s4vectors)))
7567 (home-page "https://bioconductor.org/packages/XVector")
7568 (synopsis "Representation and manpulation of external sequences")
7569 (description
7570 "This package provides memory efficient S4 classes for storing sequences
7571 \"externally\" (behind an R external pointer, or on disk).")
7572 (license license:artistic2.0)))
7573
7574 (define-public r-genomicranges
7575 (package
7576 (name "r-genomicranges")
7577 (version "1.38.0")
7578 (source (origin
7579 (method url-fetch)
7580 (uri (bioconductor-uri "GenomicRanges" version))
7581 (sha256
7582 (base32
7583 "0xdds6ws7jjdfy4x3mb0qhy43kpxdmifmpw0jdk4wgw999zabb50"))))
7584 (properties
7585 `((upstream-name . "GenomicRanges")))
7586 (build-system r-build-system)
7587 (propagated-inputs
7588 `(("r-biocgenerics" ,r-biocgenerics)
7589 ("r-genomeinfodb" ,r-genomeinfodb)
7590 ("r-iranges" ,r-iranges)
7591 ("r-s4vectors" ,r-s4vectors)
7592 ("r-xvector" ,r-xvector)))
7593 (home-page "https://bioconductor.org/packages/GenomicRanges")
7594 (synopsis "Representation and manipulation of genomic intervals")
7595 (description
7596 "This package provides tools to efficiently represent and manipulate
7597 genomic annotations and alignments is playing a central role when it comes to
7598 analyzing high-throughput sequencing data (a.k.a. NGS data). The
7599 GenomicRanges package defines general purpose containers for storing and
7600 manipulating genomic intervals and variables defined along a genome.")
7601 (license license:artistic2.0)))
7602
7603 (define-public r-biobase
7604 (package
7605 (name "r-biobase")
7606 (version "2.46.0")
7607 (source (origin
7608 (method url-fetch)
7609 (uri (bioconductor-uri "Biobase" version))
7610 (sha256
7611 (base32
7612 "1gx41083dqlm59vwqdxvc4ny31x91j48mda9n3scg0f2zwasvqgl"))))
7613 (properties
7614 `((upstream-name . "Biobase")))
7615 (build-system r-build-system)
7616 (propagated-inputs
7617 `(("r-biocgenerics" ,r-biocgenerics)))
7618 (home-page "https://bioconductor.org/packages/Biobase")
7619 (synopsis "Base functions for Bioconductor")
7620 (description
7621 "This package provides functions that are needed by many other packages
7622 on Bioconductor or which replace R functions.")
7623 (license license:artistic2.0)))
7624
7625 (define-public r-annotationdbi
7626 (package
7627 (name "r-annotationdbi")
7628 (version "1.48.0")
7629 (source (origin
7630 (method url-fetch)
7631 (uri (bioconductor-uri "AnnotationDbi" version))
7632 (sha256
7633 (base32
7634 "09piz1f0xpbb4amskx4ilby6lfrn27hhwk75il2c4lq6m3hr4w8s"))))
7635 (properties
7636 `((upstream-name . "AnnotationDbi")))
7637 (build-system r-build-system)
7638 (propagated-inputs
7639 `(("r-biobase" ,r-biobase)
7640 ("r-biocgenerics" ,r-biocgenerics)
7641 ("r-dbi" ,r-dbi)
7642 ("r-iranges" ,r-iranges)
7643 ("r-rsqlite" ,r-rsqlite)
7644 ("r-s4vectors" ,r-s4vectors)))
7645 (home-page "https://bioconductor.org/packages/AnnotationDbi")
7646 (synopsis "Annotation database interface")
7647 (description
7648 "This package provides user interface and database connection code for
7649 annotation data packages using SQLite data storage.")
7650 (license license:artistic2.0)))
7651
7652 (define-public r-biomart
7653 (package
7654 (name "r-biomart")
7655 (version "2.42.0")
7656 (source (origin
7657 (method url-fetch)
7658 (uri (bioconductor-uri "biomaRt" version))
7659 (sha256
7660 (base32
7661 "0difh4dsccjzhpfkvajy2adh98ym9164gd6clnsnic6qr6sk86ss"))))
7662 (properties
7663 `((upstream-name . "biomaRt")))
7664 (build-system r-build-system)
7665 (propagated-inputs
7666 `(("r-annotationdbi" ,r-annotationdbi)
7667 ("r-biocfilecache" ,r-biocfilecache)
7668 ("r-httr" ,r-httr)
7669 ("r-openssl" ,r-openssl)
7670 ("r-progress" ,r-progress)
7671 ("r-rappdirs" ,r-rappdirs)
7672 ("r-stringr" ,r-stringr)
7673 ("r-xml" ,r-xml)))
7674 (home-page "https://bioconductor.org/packages/biomaRt")
7675 (synopsis "Interface to BioMart databases")
7676 (description
7677 "biomaRt provides an interface to a growing collection of databases
7678 implementing the @url{BioMart software suite, http://www.biomart.org}. The
7679 package enables retrieval of large amounts of data in a uniform way without
7680 the need to know the underlying database schemas or write complex SQL queries.
7681 Examples of BioMart databases are Ensembl, COSMIC, Uniprot, HGNC, Gramene,
7682 Wormbase and dbSNP mapped to Ensembl. These major databases give biomaRt
7683 users direct access to a diverse set of data and enable a wide range of
7684 powerful online queries from gene annotation to database mining.")
7685 (license license:artistic2.0)))
7686
7687 (define-public r-biocparallel
7688 (package
7689 (name "r-biocparallel")
7690 (version "1.20.1")
7691 (source (origin
7692 (method url-fetch)
7693 (uri (bioconductor-uri "BiocParallel" version))
7694 (sha256
7695 (base32
7696 "0g0znb4whsvb9hpwx9xaasdi5n4vjqw8cpdyqgrdrjm91rls1h21"))))
7697 (properties
7698 `((upstream-name . "BiocParallel")))
7699 (build-system r-build-system)
7700 (propagated-inputs
7701 `(("r-futile-logger" ,r-futile-logger)
7702 ("r-snow" ,r-snow)
7703 ("r-bh" ,r-bh)))
7704 (home-page "https://bioconductor.org/packages/BiocParallel")
7705 (synopsis "Bioconductor facilities for parallel evaluation")
7706 (description
7707 "This package provides modified versions and novel implementation of
7708 functions for parallel evaluation, tailored to use with Bioconductor
7709 objects.")
7710 (license (list license:gpl2+ license:gpl3+))))
7711
7712 (define-public r-biostrings
7713 (package
7714 (name "r-biostrings")
7715 (version "2.54.0")
7716 (source (origin
7717 (method url-fetch)
7718 (uri (bioconductor-uri "Biostrings" version))
7719 (sha256
7720 (base32
7721 "0pq7g2hflx2cjlpwdj6mscw9hnxvlf5y50dxf48lbrf9r3q9kmyp"))))
7722 (properties
7723 `((upstream-name . "Biostrings")))
7724 (build-system r-build-system)
7725 (propagated-inputs
7726 `(("r-biocgenerics" ,r-biocgenerics)
7727 ("r-iranges" ,r-iranges)
7728 ("r-s4vectors" ,r-s4vectors)
7729 ("r-xvector" ,r-xvector)))
7730 (home-page "https://bioconductor.org/packages/Biostrings")
7731 (synopsis "String objects and algorithms for biological sequences")
7732 (description
7733 "This package provides memory efficient string containers, string
7734 matching algorithms, and other utilities, for fast manipulation of large
7735 biological sequences or sets of sequences.")
7736 (license license:artistic2.0)))
7737
7738 (define-public r-rsamtools
7739 (package
7740 (name "r-rsamtools")
7741 (version "2.2.1")
7742 (source (origin
7743 (method url-fetch)
7744 (uri (bioconductor-uri "Rsamtools" version))
7745 (sha256
7746 (base32
7747 "0hpdc88prpq1gcja89n5s1ndcg81523qrkbkm9gbhm7rm8wmi8cl"))))
7748 (properties
7749 `((upstream-name . "Rsamtools")))
7750 (build-system r-build-system)
7751 (arguments
7752 `(#:phases
7753 (modify-phases %standard-phases
7754 (add-after 'unpack 'use-system-zlib
7755 (lambda _
7756 (substitute* "DESCRIPTION"
7757 (("zlibbioc, ") ""))
7758 (substitute* "NAMESPACE"
7759 (("import\\(zlibbioc\\)") ""))
7760 #t)))))
7761 (inputs
7762 `(("zlib" ,zlib)))
7763 (propagated-inputs
7764 `(("r-biocgenerics" ,r-biocgenerics)
7765 ("r-biocparallel" ,r-biocparallel)
7766 ("r-biostrings" ,r-biostrings)
7767 ("r-bitops" ,r-bitops)
7768 ("r-genomeinfodb" ,r-genomeinfodb)
7769 ("r-genomicranges" ,r-genomicranges)
7770 ("r-iranges" ,r-iranges)
7771 ("r-rhtslib" ,r-rhtslib)
7772 ("r-s4vectors" ,r-s4vectors)
7773 ("r-xvector" ,r-xvector)))
7774 (home-page "https://bioconductor.org/packages/release/bioc/html/Rsamtools.html")
7775 (synopsis "Interface to samtools, bcftools, and tabix")
7776 (description
7777 "This package provides an interface to the @code{samtools},
7778 @code{bcftools}, and @code{tabix} utilities for manipulating SAM (Sequence
7779 Alignment / Map), FASTA, binary variant call (BCF) and compressed indexed
7780 tab-delimited (tabix) files.")
7781 (license license:expat)))
7782
7783 (define-public r-delayedarray
7784 (package
7785 (name "r-delayedarray")
7786 (version "0.12.1")
7787 (source (origin
7788 (method url-fetch)
7789 (uri (bioconductor-uri "DelayedArray" version))
7790 (sha256
7791 (base32
7792 "1yr4i2x127v814nxg53aibp77p3vg76f3n3hgknpwx3snfhc81xs"))))
7793 (properties
7794 `((upstream-name . "DelayedArray")))
7795 (build-system r-build-system)
7796 (propagated-inputs
7797 `(("r-biocgenerics" ,r-biocgenerics)
7798 ("r-biocparallel" ,r-biocparallel)
7799 ("r-s4vectors" ,r-s4vectors)
7800 ("r-iranges" ,r-iranges)
7801 ("r-matrix" ,r-matrix)
7802 ("r-matrixstats" ,r-matrixstats)))
7803 (home-page "https://bioconductor.org/packages/DelayedArray")
7804 (synopsis "Delayed operations on array-like objects")
7805 (description
7806 "Wrapping an array-like object (typically an on-disk object) in a
7807 @code{DelayedArray} object allows one to perform common array operations on it
7808 without loading the object in memory. In order to reduce memory usage and
7809 optimize performance, operations on the object are either delayed or executed
7810 using a block processing mechanism. Note that this also works on in-memory
7811 array-like objects like @code{DataFrame} objects (typically with Rle columns),
7812 @code{Matrix} objects, and ordinary arrays and data frames.")
7813 (license license:artistic2.0)))
7814
7815 (define-public r-summarizedexperiment
7816 (package
7817 (name "r-summarizedexperiment")
7818 (version "1.16.1")
7819 (source (origin
7820 (method url-fetch)
7821 (uri (bioconductor-uri "SummarizedExperiment" version))
7822 (sha256
7823 (base32
7824 "1z9bdk49dajafkfvv99nv6zyn6v70iyyy2jgdp5w5z8174a2bnn1"))))
7825 (properties
7826 `((upstream-name . "SummarizedExperiment")))
7827 (build-system r-build-system)
7828 (propagated-inputs
7829 `(("r-biobase" ,r-biobase)
7830 ("r-biocgenerics" ,r-biocgenerics)
7831 ("r-delayedarray" ,r-delayedarray)
7832 ("r-genomeinfodb" ,r-genomeinfodb)
7833 ("r-genomicranges" ,r-genomicranges)
7834 ("r-iranges" ,r-iranges)
7835 ("r-matrix" ,r-matrix)
7836 ("r-s4vectors" ,r-s4vectors)))
7837 (home-page "https://bioconductor.org/packages/SummarizedExperiment")
7838 (synopsis "Container for representing genomic ranges by sample")
7839 (description
7840 "The SummarizedExperiment container contains one or more assays, each
7841 represented by a matrix-like object of numeric or other mode. The rows
7842 typically represent genomic ranges of interest and the columns represent
7843 samples.")
7844 (license license:artistic2.0)))
7845
7846 (define-public r-genomicalignments
7847 (package
7848 (name "r-genomicalignments")
7849 (version "1.22.1")
7850 (source (origin
7851 (method url-fetch)
7852 (uri (bioconductor-uri "GenomicAlignments" version))
7853 (sha256
7854 (base32
7855 "065xvy4pkda0ajvl1b75iski95k1pnbhxwdq7vkfl8v55915vqh6"))))
7856 (properties
7857 `((upstream-name . "GenomicAlignments")))
7858 (build-system r-build-system)
7859 (propagated-inputs
7860 `(("r-biocgenerics" ,r-biocgenerics)
7861 ("r-biocparallel" ,r-biocparallel)
7862 ("r-biostrings" ,r-biostrings)
7863 ("r-genomeinfodb" ,r-genomeinfodb)
7864 ("r-genomicranges" ,r-genomicranges)
7865 ("r-iranges" ,r-iranges)
7866 ("r-rsamtools" ,r-rsamtools)
7867 ("r-s4vectors" ,r-s4vectors)
7868 ("r-summarizedexperiment" ,r-summarizedexperiment)))
7869 (home-page "https://bioconductor.org/packages/GenomicAlignments")
7870 (synopsis "Representation and manipulation of short genomic alignments")
7871 (description
7872 "This package provides efficient containers for storing and manipulating
7873 short genomic alignments (typically obtained by aligning short reads to a
7874 reference genome). This includes read counting, computing the coverage,
7875 junction detection, and working with the nucleotide content of the
7876 alignments.")
7877 (license license:artistic2.0)))
7878
7879 (define-public r-rtracklayer
7880 (package
7881 (name "r-rtracklayer")
7882 (version "1.46.0")
7883 (source (origin
7884 (method url-fetch)
7885 (uri (bioconductor-uri "rtracklayer" version))
7886 (sha256
7887 (base32
7888 "0lp9xsm8kqrgpwgwj7qaqcv1z6qynbz084grlpwp94zsp2ppf0n6"))))
7889 (build-system r-build-system)
7890 (arguments
7891 `(#:phases
7892 (modify-phases %standard-phases
7893 (add-after 'unpack 'use-system-zlib
7894 (lambda _
7895 (substitute* "DESCRIPTION"
7896 ((" zlibbioc,") ""))
7897 (substitute* "NAMESPACE"
7898 (("import\\(zlibbioc\\)") ""))
7899 #t)))))
7900 (native-inputs
7901 `(("pkg-config" ,pkg-config)))
7902 (inputs
7903 `(("zlib" ,zlib)))
7904 (propagated-inputs
7905 `(("r-biocgenerics" ,r-biocgenerics)
7906 ("r-biostrings" ,r-biostrings)
7907 ("r-genomeinfodb" ,r-genomeinfodb)
7908 ("r-genomicalignments" ,r-genomicalignments)
7909 ("r-genomicranges" ,r-genomicranges)
7910 ("r-iranges" ,r-iranges)
7911 ("r-rcurl" ,r-rcurl)
7912 ("r-rsamtools" ,r-rsamtools)
7913 ("r-s4vectors" ,r-s4vectors)
7914 ("r-xml" ,r-xml)
7915 ("r-xvector" ,r-xvector)))
7916 (home-page "https://bioconductor.org/packages/rtracklayer")
7917 (synopsis "R interface to genome browsers and their annotation tracks")
7918 (description
7919 "rtracklayer is an extensible framework for interacting with multiple
7920 genome browsers (currently UCSC built-in) and manipulating annotation tracks
7921 in various formats (currently GFF, BED, bedGraph, BED15, WIG, BigWig and 2bit
7922 built-in). The user may export/import tracks to/from the supported browsers,
7923 as well as query and modify the browser state, such as the current viewport.")
7924 (license license:artistic2.0)))
7925
7926 (define-public r-genomicfeatures
7927 (package
7928 (name "r-genomicfeatures")
7929 (version "1.38.0")
7930 (source (origin
7931 (method url-fetch)
7932 (uri (bioconductor-uri "GenomicFeatures" version))
7933 (sha256
7934 (base32
7935 "0xd9rlsicycbanbcfhc97cj8b8vk94g7lkbmhk37w1511bq35wz5"))))
7936 (properties
7937 `((upstream-name . "GenomicFeatures")))
7938 (build-system r-build-system)
7939 (propagated-inputs
7940 `(("r-annotationdbi" ,r-annotationdbi)
7941 ("r-biobase" ,r-biobase)
7942 ("r-biocgenerics" ,r-biocgenerics)
7943 ("r-biomart" ,r-biomart)
7944 ("r-biostrings" ,r-biostrings)
7945 ("r-dbi" ,r-dbi)
7946 ("r-genomeinfodb" ,r-genomeinfodb)
7947 ("r-genomicranges" ,r-genomicranges)
7948 ("r-iranges" ,r-iranges)
7949 ("r-rcurl" ,r-rcurl)
7950 ("r-rsqlite" ,r-rsqlite)
7951 ("r-rtracklayer" ,r-rtracklayer)
7952 ("r-s4vectors" ,r-s4vectors)
7953 ("r-xvector" ,r-xvector)))
7954 (home-page "https://bioconductor.org/packages/GenomicFeatures")
7955 (synopsis "Tools for working with transcript centric annotations")
7956 (description
7957 "This package provides a set of tools and methods for making and
7958 manipulating transcript centric annotations. With these tools the user can
7959 easily download the genomic locations of the transcripts, exons and cds of a
7960 given organism, from either the UCSC Genome Browser or a BioMart
7961 database (more sources will be supported in the future). This information is
7962 then stored in a local database that keeps track of the relationship between
7963 transcripts, exons, cds and genes. Flexible methods are provided for
7964 extracting the desired features in a convenient format.")
7965 (license license:artistic2.0)))
7966
7967 (define-public r-go-db
7968 (package
7969 (name "r-go-db")
7970 (version "3.7.0")
7971 (source (origin
7972 (method url-fetch)
7973 (uri (string-append "https://www.bioconductor.org/packages/"
7974 "release/data/annotation/src/contrib/GO.db_"
7975 version ".tar.gz"))
7976 (sha256
7977 (base32
7978 "0i3wcf5h3n0dawzc1hy0kv74f06j80c47n4p3g3fmrcxlhi3jpa5"))))
7979 (properties
7980 `((upstream-name . "GO.db")))
7981 (build-system r-build-system)
7982 (propagated-inputs
7983 `(("r-annotationdbi" ,r-annotationdbi)))
7984 (home-page "https://bioconductor.org/packages/GO.db")
7985 (synopsis "Annotation maps describing the entire Gene Ontology")
7986 (description
7987 "The purpose of this GO.db annotation package is to provide detailed
7988 information about the latest version of the Gene Ontologies.")
7989 (license license:artistic2.0)))
7990
7991 (define-public r-topgo
7992 (package
7993 (name "r-topgo")
7994 (version "2.38.1")
7995 (source (origin
7996 (method url-fetch)
7997 (uri (bioconductor-uri "topGO" version))
7998 (sha256
7999 (base32
8000 "1kw9m2j67895k58lx9msc248pjwblp8clxwgsl01cql7sgi1xzlf"))))
8001 (properties
8002 `((upstream-name . "topGO")))
8003 (build-system r-build-system)
8004 (propagated-inputs
8005 `(("r-annotationdbi" ,r-annotationdbi)
8006 ("r-dbi" ,r-dbi)
8007 ("r-biobase" ,r-biobase)
8008 ("r-biocgenerics" ,r-biocgenerics)
8009 ("r-go-db" ,r-go-db)
8010 ("r-graph" ,r-graph)
8011 ("r-lattice" ,r-lattice)
8012 ("r-matrixstats" ,r-matrixstats)
8013 ("r-sparsem" ,r-sparsem)))
8014 (home-page "https://bioconductor.org/packages/topGO")
8015 (synopsis "Enrichment analysis for gene ontology")
8016 (description
8017 "The topGO package provides tools for testing @dfn{gene ontology} (GO)
8018 terms while accounting for the topology of the GO graph. Different test
8019 statistics and different methods for eliminating local similarities and
8020 dependencies between GO terms can be implemented and applied.")
8021 ;; Any version of the LGPL applies.
8022 (license license:lgpl2.1+)))
8023
8024 (define-public r-bsgenome
8025 (package
8026 (name "r-bsgenome")
8027 (version "1.54.0")
8028 (source (origin
8029 (method url-fetch)
8030 (uri (bioconductor-uri "BSgenome" version))
8031 (sha256
8032 (base32
8033 "0nn1b3h4hmnx5whf2cmzmyxdrcf4myj8c38rwr0sw4rc07xfzndy"))))
8034 (properties
8035 `((upstream-name . "BSgenome")))
8036 (build-system r-build-system)
8037 (propagated-inputs
8038 `(("r-biocgenerics" ,r-biocgenerics)
8039 ("r-biostrings" ,r-biostrings)
8040 ("r-genomeinfodb" ,r-genomeinfodb)
8041 ("r-genomicranges" ,r-genomicranges)
8042 ("r-iranges" ,r-iranges)
8043 ("r-rsamtools" ,r-rsamtools)
8044 ("r-rtracklayer" ,r-rtracklayer)
8045 ("r-s4vectors" ,r-s4vectors)
8046 ("r-xvector" ,r-xvector)))
8047 (home-page "https://bioconductor.org/packages/BSgenome")
8048 (synopsis "Infrastructure for Biostrings-based genome data packages")
8049 (description
8050 "This package provides infrastructure shared by all Biostrings-based
8051 genome data packages and support for efficient SNP representation.")
8052 (license license:artistic2.0)))
8053
8054 (define-public r-impute
8055 (package
8056 (name "r-impute")
8057 (version "1.60.0")
8058 (source (origin
8059 (method url-fetch)
8060 (uri (bioconductor-uri "impute" version))
8061 (sha256
8062 (base32
8063 "0igz1phjd1j9bg9z4kyy7j8v9bxi9sdwz4df26r51i2vavlbrf4q"))))
8064 (native-inputs
8065 `(("gfortran" ,gfortran)))
8066 (build-system r-build-system)
8067 (home-page "https://bioconductor.org/packages/impute")
8068 (synopsis "Imputation for microarray data")
8069 (description
8070 "This package provides a function to impute missing gene expression
8071 microarray data, using nearest neighbor averaging.")
8072 (license license:gpl2+)))
8073
8074 (define-public r-seqpattern
8075 (package
8076 (name "r-seqpattern")
8077 (version "1.18.0")
8078 (source (origin
8079 (method url-fetch)
8080 (uri (bioconductor-uri "seqPattern" version))
8081 (sha256
8082 (base32
8083 "1gxrq6s2hiyac69idh5r1nbr1s69n0hg4ap2skm4g6857av9pwqf"))))
8084 (properties
8085 `((upstream-name . "seqPattern")))
8086 (build-system r-build-system)
8087 (propagated-inputs
8088 `(("r-biostrings" ,r-biostrings)
8089 ("r-genomicranges" ,r-genomicranges)
8090 ("r-iranges" ,r-iranges)
8091 ("r-kernsmooth" ,r-kernsmooth)
8092 ("r-plotrix" ,r-plotrix)))
8093 (home-page "https://bioconductor.org/packages/seqPattern")
8094 (synopsis "Visualising oligonucleotide patterns and motif occurrences")
8095 (description
8096 "This package provides tools to visualize oligonucleotide patterns and
8097 sequence motif occurrences across a large set of sequences centred at a common
8098 reference point and sorted by a user defined feature.")
8099 (license license:gpl3+)))
8100
8101 (define-public r-genomation
8102 (package
8103 (name "r-genomation")
8104 (version "1.18.0")
8105 (source (origin
8106 (method url-fetch)
8107 (uri (bioconductor-uri "genomation" version))
8108 (sha256
8109 (base32
8110 "1sba928h23b67gr3i4yj1bg655g24l3bcgsf5gvymzrv5idrss1l"))))
8111 (build-system r-build-system)
8112 (propagated-inputs
8113 `(("r-biostrings" ,r-biostrings)
8114 ("r-bsgenome" ,r-bsgenome)
8115 ("r-data-table" ,r-data-table)
8116 ("r-genomeinfodb" ,r-genomeinfodb)
8117 ("r-genomicalignments" ,r-genomicalignments)
8118 ("r-genomicranges" ,r-genomicranges)
8119 ("r-ggplot2" ,r-ggplot2)
8120 ("r-gridbase" ,r-gridbase)
8121 ("r-impute" ,r-impute)
8122 ("r-iranges" ,r-iranges)
8123 ("r-matrixstats" ,r-matrixstats)
8124 ("r-plotrix" ,r-plotrix)
8125 ("r-plyr" ,r-plyr)
8126 ("r-rcpp" ,r-rcpp)
8127 ("r-readr" ,r-readr)
8128 ("r-reshape2" ,r-reshape2)
8129 ("r-rsamtools" ,r-rsamtools)
8130 ("r-rtracklayer" ,r-rtracklayer)
8131 ("r-runit" ,r-runit)
8132 ("r-s4vectors" ,r-s4vectors)
8133 ("r-seqpattern" ,r-seqpattern)))
8134 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
8135 (synopsis "Summary, annotation and visualization of genomic data")
8136 (description
8137 "This package provides a package for summary and annotation of genomic
8138 intervals. Users can visualize and quantify genomic intervals over
8139 pre-defined functional regions, such as promoters, exons, introns, etc. The
8140 genomic intervals represent regions with a defined chromosome position, which
8141 may be associated with a score, such as aligned reads from HT-seq experiments,
8142 TF binding sites, methylation scores, etc. The package can use any tabular
8143 genomic feature data as long as it has minimal information on the locations of
8144 genomic intervals. In addition, it can use BAM or BigWig files as input.")
8145 (license license:artistic2.0)))
8146
8147 (define-public r-genomationdata
8148 (package
8149 (name "r-genomationdata")
8150 (version "1.14.0")
8151 (source (origin
8152 (method url-fetch)
8153 ;; We cannot use bioconductor-uri here because this tarball is
8154 ;; located under "data/annotation/" instead of "bioc/".
8155 (uri (string-append "https://bioconductor.org/packages/"
8156 "release/data/experiment/src/contrib/"
8157 "genomationData_" version ".tar.gz"))
8158 (sha256
8159 (base32
8160 "10xyb8akjrhmak2i0mnv1agny2ipy364q9nlibyplpzc7vdb6bw7"))))
8161 (build-system r-build-system)
8162 ;; As this package provides little more than large data files, it doesn't
8163 ;; make sense to build substitutes.
8164 (arguments `(#:substitutable? #f))
8165 (native-inputs
8166 `(("r-knitr" ,r-knitr)))
8167 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
8168 (synopsis "Experimental data for use with the genomation package")
8169 (description
8170 "This package contains experimental genetic data for use with the
8171 genomation package. Included are Chip Seq, Methylation and Cage data,
8172 downloaded from Encode.")
8173 (license license:gpl3+)))
8174
8175 (define-public r-seqlogo
8176 (package
8177 (name "r-seqlogo")
8178 (version "1.52.0")
8179 (source
8180 (origin
8181 (method url-fetch)
8182 (uri (bioconductor-uri "seqLogo" version))
8183 (sha256
8184 (base32
8185 "0s94aahp8ma1crmp83dz65ifjwrx6wqi3q6005lmbp8yk2x1rkj4"))))
8186 (properties `((upstream-name . "seqLogo")))
8187 (build-system r-build-system)
8188 (home-page "https://bioconductor.org/packages/seqLogo")
8189 (synopsis "Sequence logos for DNA sequence alignments")
8190 (description
8191 "seqLogo takes the position weight matrix of a DNA sequence motif and
8192 plots the corresponding sequence logo as introduced by Schneider and
8193 Stephens (1990).")
8194 (license license:lgpl2.0+)))
8195
8196 (define-public r-motifrg
8197 (package
8198 (name "r-motifrg")
8199 (version "1.30.0")
8200 (source
8201 (origin
8202 (method url-fetch)
8203 (uri (bioconductor-uri "motifRG" version))
8204 (sha256
8205 (base32
8206 "0s6wdr036lra9x93r9k8wvicbkgzypjh3jp46h92yacw8d829k0d"))))
8207 (properties `((upstream-name . "motifRG")))
8208 (build-system r-build-system)
8209 (propagated-inputs
8210 `(("r-biostrings" ,r-biostrings)
8211 ("r-bsgenome" ,r-bsgenome)
8212 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8213 ("r-iranges" ,r-iranges)
8214 ("r-seqlogo" ,r-seqlogo)
8215 ("r-xvector" ,r-xvector)))
8216 (home-page "https://bioconductor.org/packages/motifRG")
8217 (synopsis "Discover motifs in high throughput sequencing data")
8218 (description
8219 "This package provides tools for discriminative motif discovery in high
8220 throughput genetic sequencing data sets using regression methods.")
8221 (license license:artistic2.0)))
8222
8223 (define-public r-qtl
8224 (package
8225 (name "r-qtl")
8226 (version "1.44-9")
8227 (source
8228 (origin
8229 (method url-fetch)
8230 (uri (string-append "mirror://cran/src/contrib/qtl_"
8231 version ".tar.gz"))
8232 (sha256
8233 (base32
8234 "03lmvydln8b7666b6w46qbryhf83vsd11d4y2v95rfgvqgq66l1i"))))
8235 (build-system r-build-system)
8236 (home-page "http://rqtl.org/")
8237 (synopsis "R package for analyzing QTL experiments in genetics")
8238 (description "R/qtl is an extension library for the R statistics
8239 system. It is used to analyze experimental crosses for identifying
8240 genes contributing to variation in quantitative traits (so-called
8241 quantitative trait loci, QTLs).
8242
8243 Using a hidden Markov model, R/qtl allows to estimate genetic maps, to
8244 identify genotyping errors, and to perform single-QTL and two-QTL,
8245 two-dimensional genome scans.")
8246 (license license:gpl3)))
8247
8248 (define-public r-qtl2
8249 (package
8250 (name "r-qtl2")
8251 (version "0.20")
8252 (source (origin
8253 (method git-fetch)
8254 ;; Not yet available in cran.
8255 (uri (git-reference
8256 (url "https://github.com/rqtl/qtl2.git")
8257 (commit version)))
8258 (file-name (git-file-name name version))
8259 (sha256
8260 (base32 "0l1asr28q25jzbwrbg5490962sg3y4sjrd0qf09p78ws1aq8vfs0"))))
8261 (build-system r-build-system)
8262 (propagated-inputs
8263 `(("r-data-table" ,r-data-table)
8264 ("r-jsonlite" ,r-jsonlite)
8265 ("r-rcpp" ,r-rcpp)
8266 ("r-rcppeigen" ,r-rcppeigen)
8267 ("r-rsqlite" ,r-rsqlite)
8268 ("r-yaml" ,r-yaml)))
8269 (home-page "https://kbroman.org/qtl2/")
8270 (synopsis
8271 "QTL analysis software for high-dimensional data and complex cross designs")
8272 (description
8273 "R/qtl2 (aka qtl2) is a reimplementation of the QTL analysis software
8274 R/qtl, to better handle high-dimensional data and complex cross designs.")
8275 (license license:gpl3)))
8276
8277 (define-public r-zlibbioc
8278 (package
8279 (name "r-zlibbioc")
8280 (version "1.32.0")
8281 (source (origin
8282 (method url-fetch)
8283 (uri (bioconductor-uri "zlibbioc" version))
8284 (sha256
8285 (base32
8286 "1xh7qan0w62mzsmanbx9vcj6ygdfhzw1abaxijkq7f4nh5w87idj"))))
8287 (properties
8288 `((upstream-name . "zlibbioc")))
8289 (build-system r-build-system)
8290 (home-page "https://bioconductor.org/packages/zlibbioc")
8291 (synopsis "Provider for zlib-1.2.5 to R packages")
8292 (description "This package uses the source code of zlib-1.2.5 to create
8293 libraries for systems that do not have these available via other means.")
8294 (license license:artistic2.0)))
8295
8296 (define-public r-r4rna
8297 (package
8298 (name "r-r4rna")
8299 (version "0.1.4")
8300 (source
8301 (origin
8302 (method url-fetch)
8303 (uri (string-append "http://www.e-rna.org/r-chie/files/R4RNA_"
8304 version ".tar.gz"))
8305 (sha256
8306 (base32
8307 "1p0i78wh76jfgmn9jphbwwaz6yy6pipzfg08xs54cxavxg2j81p5"))))
8308 (build-system r-build-system)
8309 (propagated-inputs
8310 `(("r-optparse" ,r-optparse)
8311 ("r-rcolorbrewer" ,r-rcolorbrewer)))
8312 (home-page "http://www.e-rna.org/r-chie/index.cgi")
8313 (synopsis "Analysis framework for RNA secondary structure")
8314 (description
8315 "The R4RNA package aims to be a general framework for the analysis of RNA
8316 secondary structure and comparative analysis in R.")
8317 (license license:gpl3+)))
8318
8319 (define-public r-rhtslib
8320 (package
8321 (name "r-rhtslib")
8322 (version "1.18.0")
8323 (source
8324 (origin
8325 (method url-fetch)
8326 (uri (bioconductor-uri "Rhtslib" version))
8327 (sha256
8328 (base32
8329 "04inkq44lxwymqv51mxgaphasqjcdc9rl5p58imnrdm0kszs8prm"))))
8330 (properties `((upstream-name . "Rhtslib")))
8331 (build-system r-build-system)
8332 ;; Without this a temporary directory ends up in the Rhtslib.so binary,
8333 ;; which makes R abort the build.
8334 (arguments '(#:configure-flags '("--no-staged-install")))
8335 (propagated-inputs
8336 `(("curl" ,curl)
8337 ("r-zlibbioc" ,r-zlibbioc)))
8338 (inputs
8339 `(("zlib" ,zlib)))
8340 (native-inputs
8341 `(("pkg-config" ,pkg-config)))
8342 (home-page "https://github.com/nhayden/Rhtslib")
8343 (synopsis "High-throughput sequencing library as an R package")
8344 (description
8345 "This package provides the HTSlib C library for high-throughput
8346 nucleotide sequence analysis. The package is primarily useful to developers
8347 of other R packages who wish to make use of HTSlib.")
8348 (license license:lgpl2.0+)))
8349
8350 (define-public r-bamsignals
8351 (package
8352 (name "r-bamsignals")
8353 (version "1.18.0")
8354 (source
8355 (origin
8356 (method url-fetch)
8357 (uri (bioconductor-uri "bamsignals" version))
8358 (sha256
8359 (base32
8360 "0699b0pqbs0dvs91yjibcjc90lxj9mg8rcml4a6wchfr9md7n74w"))))
8361 (build-system r-build-system)
8362 (propagated-inputs
8363 `(("r-biocgenerics" ,r-biocgenerics)
8364 ("r-genomicranges" ,r-genomicranges)
8365 ("r-iranges" ,r-iranges)
8366 ("r-rcpp" ,r-rcpp)
8367 ("r-rhtslib" ,r-rhtslib)
8368 ("r-zlibbioc" ,r-zlibbioc)))
8369 (inputs
8370 `(("zlib" ,zlib)))
8371 (home-page "https://bioconductor.org/packages/bamsignals")
8372 (synopsis "Extract read count signals from bam files")
8373 (description
8374 "This package allows to efficiently obtain count vectors from indexed bam
8375 files. It counts the number of nucleotide sequence reads in given genomic
8376 ranges and it computes reads profiles and coverage profiles. It also handles
8377 paired-end data.")
8378 (license license:gpl2+)))
8379
8380 (define-public r-rcas
8381 (package
8382 (name "r-rcas")
8383 (version "1.12.0")
8384 (source (origin
8385 (method url-fetch)
8386 (uri (bioconductor-uri "RCAS" version))
8387 (sha256
8388 (base32
8389 "1s3gvvxi1029d1vfwnjh21nnw3mlx08kcwz63891hml9y850cvsn"))))
8390 (properties `((upstream-name . "RCAS")))
8391 (build-system r-build-system)
8392 (propagated-inputs
8393 `(("r-annotationdbi" ,r-annotationdbi)
8394 ("r-biocgenerics" ,r-biocgenerics)
8395 ("r-biomart" ,r-biomart)
8396 ("r-biostrings" ,r-biostrings)
8397 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8398 ("r-cowplot" ,r-cowplot)
8399 ("r-data-table" ,r-data-table)
8400 ("r-dbi" ,r-dbi)
8401 ("r-dt" ,r-dt)
8402 ("r-genomation" ,r-genomation)
8403 ("r-genomeinfodb" ,r-genomeinfodb)
8404 ("r-genomicfeatures" ,r-genomicfeatures)
8405 ("r-genomicranges" ,r-genomicranges)
8406 ("r-ggplot2" ,r-ggplot2)
8407 ("r-ggseqlogo" ,r-ggseqlogo)
8408 ("r-knitr" ,r-knitr)
8409 ("r-motifrg" ,r-motifrg)
8410 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
8411 ("r-pbapply" ,r-pbapply)
8412 ("r-pheatmap" ,r-pheatmap)
8413 ("r-plotly" ,r-plotly)
8414 ("r-plotrix" ,r-plotrix)
8415 ("r-proxy" ,r-proxy)
8416 ("r-rsqlite" ,r-rsqlite)
8417 ("r-rtracklayer" ,r-rtracklayer)
8418 ("r-rmarkdown" ,r-rmarkdown)
8419 ("r-s4vectors" ,r-s4vectors)
8420 ("r-topgo" ,r-topgo)
8421 ("pandoc" ,ghc-pandoc)))
8422 (synopsis "RNA-centric annotation system")
8423 (description
8424 "RCAS aims to be a standalone RNA-centric annotation system that provides
8425 intuitive reports and publication-ready graphics. This package provides the R
8426 library implementing most of the pipeline's features.")
8427 (home-page "https://github.com/BIMSBbioinfo/RCAS")
8428 (license license:artistic2.0)))
8429
8430 (define-public rcas-web
8431 (package
8432 (name "rcas-web")
8433 (version "0.1.0")
8434 (source
8435 (origin
8436 (method url-fetch)
8437 (uri (string-append "https://github.com/BIMSBbioinfo/rcas-web/"
8438 "releases/download/v" version
8439 "/rcas-web-" version ".tar.gz"))
8440 (sha256
8441 (base32
8442 "0wq951aj45gqki1bickg876i993lmawkp8x24agg264br5x716db"))))
8443 (build-system gnu-build-system)
8444 (arguments
8445 `(#:phases
8446 (modify-phases %standard-phases
8447 (add-before 'configure 'find-RCAS
8448 ;; The configure script can't find non-1.3.x versions of RCAS because
8449 ;; its R expression ‘1.10.1 >= 1.3.4’ evaluates to false.
8450 (lambda _
8451 (substitute* "configure"
8452 (("1\\.3\\.4") "0.0.0"))
8453 #t))
8454 (add-after 'install 'wrap-executable
8455 (lambda* (#:key inputs outputs #:allow-other-keys)
8456 (let* ((out (assoc-ref outputs "out"))
8457 (json (assoc-ref inputs "guile-json"))
8458 (redis (assoc-ref inputs "guile-redis"))
8459 (path (string-append
8460 json "/share/guile/site/2.2:"
8461 redis "/share/guile/site/2.2")))
8462 (wrap-program (string-append out "/bin/rcas-web")
8463 `("GUILE_LOAD_PATH" ":" = (,path))
8464 `("GUILE_LOAD_COMPILED_PATH" ":" = (,path))
8465 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
8466 #t)))))
8467 (inputs
8468 `(("r-minimal" ,r-minimal)
8469 ("r-rcas" ,r-rcas)
8470 ("guile-next" ,guile-2.2)
8471 ("guile-json" ,guile-json-1)
8472 ("guile-redis" ,guile-redis)))
8473 (native-inputs
8474 `(("pkg-config" ,pkg-config)))
8475 (home-page "https://github.com/BIMSBbioinfo/rcas-web")
8476 (synopsis "Web interface for RNA-centric annotation system (RCAS)")
8477 (description "This package provides a simple web interface for the
8478 @dfn{RNA-centric annotation system} (RCAS).")
8479 (license license:agpl3+)))
8480
8481 (define-public r-mutationalpatterns
8482 (package
8483 (name "r-mutationalpatterns")
8484 (version "1.12.0")
8485 (source
8486 (origin
8487 (method url-fetch)
8488 (uri (bioconductor-uri "MutationalPatterns" version))
8489 (sha256
8490 (base32
8491 "08715l6swrlccviw7932v5hyrd2x4c6049vy9qnxk0lw3sp1zvsf"))))
8492 (build-system r-build-system)
8493 (propagated-inputs
8494 `(("r-biocgenerics" ,r-biocgenerics)
8495 ("r-biostrings" ,r-biostrings)
8496 ;; These two packages are suggested packages
8497 ("r-bsgenome-hsapiens-1000g" ,r-bsgenome-hsapiens-1000genomes-hs37d5)
8498 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8499 ("r-genomicranges" ,r-genomicranges)
8500 ("r-genomeinfodb" ,r-genomeinfodb)
8501 ("r-ggplot2" ,r-ggplot2)
8502 ("r-iranges" ,r-iranges)
8503 ("r-nmf" ,r-nmf)
8504 ("r-plyr" ,r-plyr)
8505 ("r-pracma" ,r-pracma)
8506 ("r-reshape2" ,r-reshape2)
8507 ("r-cowplot" ,r-cowplot)
8508 ("r-ggdendro" ,r-ggdendro)
8509 ("r-s4vectors" ,r-s4vectors)
8510 ("r-summarizedexperiment" ,r-summarizedexperiment)
8511 ("r-variantannotation" ,r-variantannotation)))
8512 (home-page "https://bioconductor.org/packages/MutationalPatterns/")
8513 (synopsis "Extract and visualize mutational patterns in genomic data")
8514 (description "This package provides an extensive toolset for the
8515 characterization and visualization of a wide range of mutational patterns
8516 in SNV base substitution data.")
8517 (license license:expat)))
8518
8519 (define-public r-chipkernels
8520 (let ((commit "c9cfcacb626b1221094fb3490ea7bac0fd625372")
8521 (revision "1"))
8522 (package
8523 (name "r-chipkernels")
8524 (version (string-append "1.1-" revision "." (string-take commit 9)))
8525 (source
8526 (origin
8527 (method git-fetch)
8528 (uri (git-reference
8529 (url "https://github.com/ManuSetty/ChIPKernels.git")
8530 (commit commit)))
8531 (file-name (string-append name "-" version))
8532 (sha256
8533 (base32
8534 "14bj5qhjm1hsm9ay561nfbqi9wxsa7y487df2idsaaf6z10nw4v0"))))
8535 (build-system r-build-system)
8536 (propagated-inputs
8537 `(("r-iranges" ,r-iranges)
8538 ("r-xvector" ,r-xvector)
8539 ("r-biostrings" ,r-biostrings)
8540 ("r-bsgenome" ,r-bsgenome)
8541 ("r-gtools" ,r-gtools)
8542 ("r-genomicranges" ,r-genomicranges)
8543 ("r-sfsmisc" ,r-sfsmisc)
8544 ("r-kernlab" ,r-kernlab)
8545 ("r-s4vectors" ,r-s4vectors)
8546 ("r-biocgenerics" ,r-biocgenerics)))
8547 (home-page "https://github.com/ManuSetty/ChIPKernels")
8548 (synopsis "Build string kernels for DNA Sequence analysis")
8549 (description "ChIPKernels is an R package for building different string
8550 kernels used for DNA Sequence analysis. A dictionary of the desired kernel
8551 must be built and this dictionary can be used for determining kernels for DNA
8552 Sequences.")
8553 (license license:gpl2+))))
8554
8555 (define-public r-seqgl
8556 (package
8557 (name "r-seqgl")
8558 (version "1.1.4")
8559 (source
8560 (origin
8561 (method git-fetch)
8562 (uri (git-reference
8563 (url "https://github.com/ManuSetty/SeqGL.git")
8564 (commit version)))
8565 (file-name (git-file-name name version))
8566 (sha256
8567 (base32
8568 "1r6ywvhxl3ffv48lgj7sbd582mcc6dha3ksgc2qjlvjrnkbj3799"))))
8569 (build-system r-build-system)
8570 (propagated-inputs
8571 `(("r-biostrings" ,r-biostrings)
8572 ("r-chipkernels" ,r-chipkernels)
8573 ("r-genomicranges" ,r-genomicranges)
8574 ("r-spams" ,r-spams)
8575 ("r-wgcna" ,r-wgcna)
8576 ("r-fastcluster" ,r-fastcluster)))
8577 (home-page "https://github.com/ManuSetty/SeqGL")
8578 (synopsis "Group lasso for Dnase/ChIP-seq data")
8579 (description "SeqGL is a group lasso based algorithm to extract
8580 transcription factor sequence signals from ChIP, DNase and ATAC-seq profiles.
8581 This package presents a method which uses group lasso to discriminate between
8582 bound and non bound genomic regions to accurately identify transcription
8583 factors bound at the specific regions.")
8584 (license license:gpl2+)))
8585
8586 (define-public r-tximport
8587 (package
8588 (name "r-tximport")
8589 (version "1.14.0")
8590 (source (origin
8591 (method url-fetch)
8592 (uri (bioconductor-uri "tximport" version))
8593 (sha256
8594 (base32
8595 "09r23n2812q89by0r0cz2fx1gfnmn3jb3hwbg61m52bika82pakj"))))
8596 (build-system r-build-system)
8597 (home-page "https://bioconductor.org/packages/tximport")
8598 (synopsis "Import and summarize transcript-level estimates for gene-level analysis")
8599 (description
8600 "This package provides tools to import transcript-level abundance,
8601 estimated counts and transcript lengths, and to summarize them into matrices
8602 for use with downstream gene-level analysis packages. Average transcript
8603 length, weighted by sample-specific transcript abundance estimates, is
8604 provided as a matrix which can be used as an offset for different expression
8605 of gene-level counts.")
8606 (license license:gpl2+)))
8607
8608 (define-public r-rhdf5
8609 (package
8610 (name "r-rhdf5")
8611 (version "2.30.1")
8612 (source (origin
8613 (method url-fetch)
8614 (uri (bioconductor-uri "rhdf5" version))
8615 (sha256
8616 (base32
8617 "18pv74jj4wr1981r92ss10qkgf5g1b09dsbz3im3j70a4l5l0df0"))))
8618 (build-system r-build-system)
8619 (propagated-inputs
8620 `(("r-rhdf5lib" ,r-rhdf5lib)))
8621 (inputs
8622 `(("zlib" ,zlib)))
8623 (home-page "https://bioconductor.org/packages/rhdf5")
8624 (synopsis "HDF5 interface to R")
8625 (description
8626 "This R/Bioconductor package provides an interface between HDF5 and R.
8627 HDF5's main features are the ability to store and access very large and/or
8628 complex datasets and a wide variety of metadata on mass storage (disk) through
8629 a completely portable file format. The rhdf5 package is thus suited for the
8630 exchange of large and/or complex datasets between R and other software
8631 package, and for letting R applications work on datasets that are larger than
8632 the available RAM.")
8633 (license license:artistic2.0)))
8634
8635 (define-public r-annotationfilter
8636 (package
8637 (name "r-annotationfilter")
8638 (version "1.10.0")
8639 (source (origin
8640 (method url-fetch)
8641 (uri (bioconductor-uri "AnnotationFilter" version))
8642 (sha256
8643 (base32
8644 "1l9sxhlvnwn6327vgg02h11ppmqr2zr07ff8wmcng0i1jbqwa8q5"))))
8645 (properties
8646 `((upstream-name . "AnnotationFilter")))
8647 (build-system r-build-system)
8648 (propagated-inputs
8649 `(("r-genomicranges" ,r-genomicranges)
8650 ("r-lazyeval" ,r-lazyeval)))
8651 (home-page "https://github.com/Bioconductor/AnnotationFilter")
8652 (synopsis "Facilities for filtering Bioconductor annotation resources")
8653 (description
8654 "This package provides classes and other infrastructure to implement
8655 filters for manipulating Bioconductor annotation resources. The filters are
8656 used by @code{ensembldb}, @code{Organism.dplyr}, and other packages.")
8657 (license license:artistic2.0)))
8658
8659 (define-public emboss
8660 (package
8661 (name "emboss")
8662 (version "6.5.7")
8663 (source (origin
8664 (method url-fetch)
8665 (uri (string-append "ftp://emboss.open-bio.org/pub/EMBOSS/old/"
8666 (version-major+minor version) ".0/"
8667 "EMBOSS-" version ".tar.gz"))
8668 (sha256
8669 (base32
8670 "0vsmz96gc411yj2iyzdrsmg4l2n1nhgmp7vrgzlxx3xixv9xbf0q"))))
8671 (build-system gnu-build-system)
8672 (arguments
8673 `(#:configure-flags
8674 (list (string-append "--with-hpdf="
8675 (assoc-ref %build-inputs "libharu")))
8676 #:phases
8677 (modify-phases %standard-phases
8678 (add-after 'unpack 'fix-checks
8679 (lambda _
8680 ;; The PNGDRIVER tests check for the presence of libgd, libpng
8681 ;; and zlib, but assume that they are all found at the same
8682 ;; prefix.
8683 (substitute* "configure.in"
8684 (("CHECK_PNGDRIVER")
8685 "LIBS=\"$LIBS -lgd -lpng -lz -lm\"
8686 AC_DEFINE([PLD_png], [1], [Define to 1 if PNG support is available])
8687 AM_CONDITIONAL(AMPNG, true)"))
8688 #t))
8689 (add-after 'fix-checks 'disable-update-check
8690 (lambda _
8691 ;; At build time there is no connection to the Internet, so
8692 ;; looking for updates will not work.
8693 (substitute* "Makefile.am"
8694 (("\\$\\(bindir\\)/embossupdate") ""))
8695 #t))
8696 (add-after 'disable-update-check 'autogen
8697 (lambda _ (invoke "autoreconf" "-vif") #t)))))
8698 (inputs
8699 `(("perl" ,perl)
8700 ("libpng" ,libpng)
8701 ("gd" ,gd)
8702 ("libx11" ,libx11)
8703 ("libharu" ,libharu)
8704 ("zlib" ,zlib)))
8705 (native-inputs
8706 `(("autoconf" ,autoconf)
8707 ("automake" ,automake)
8708 ("libtool" ,libtool)
8709 ("pkg-config" ,pkg-config)))
8710 (home-page "http://emboss.sourceforge.net")
8711 (synopsis "Molecular biology analysis suite")
8712 (description "EMBOSS is the \"European Molecular Biology Open Software
8713 Suite\". EMBOSS is an analysis package specially developed for the needs of
8714 the molecular biology (e.g. EMBnet) user community. The software
8715 automatically copes with data in a variety of formats and even allows
8716 transparent retrieval of sequence data from the web. It also provides a
8717 number of libraries for the development of software in the field of molecular
8718 biology. EMBOSS also integrates a range of currently available packages and
8719 tools for sequence analysis into a seamless whole.")
8720 (license license:gpl2+)))
8721
8722 (define-public bits
8723 (let ((revision "1")
8724 (commit "3cc4567896d9d6442923da944beb704750a08d2d"))
8725 (package
8726 (name "bits")
8727 ;; The version is 2.13.0 even though no release archives have been
8728 ;; published as yet.
8729 (version (string-append "2.13.0-" revision "." (string-take commit 9)))
8730 (source (origin
8731 (method git-fetch)
8732 (uri (git-reference
8733 (url "https://github.com/arq5x/bits.git")
8734 (commit commit)))
8735 (file-name (string-append name "-" version "-checkout"))
8736 (sha256
8737 (base32
8738 "17n2kffk4kmhivd8c98g2vr6y1s23vbg4sxlxs689wni66797hbs"))))
8739 (build-system gnu-build-system)
8740 (arguments
8741 `(#:tests? #f ;no tests included
8742 #:phases
8743 (modify-phases %standard-phases
8744 (delete 'configure)
8745 (add-after 'unpack 'remove-cuda
8746 (lambda _
8747 (substitute* "Makefile"
8748 ((".*_cuda") "")
8749 (("(bits_test_intersections) \\\\" _ match) match))
8750 #t))
8751 (replace 'install
8752 (lambda* (#:key outputs #:allow-other-keys)
8753 (copy-recursively
8754 "bin" (string-append (assoc-ref outputs "out") "/bin"))
8755 #t)))))
8756 (inputs
8757 `(("gsl" ,gsl)
8758 ("zlib" ,zlib)))
8759 (home-page "https://github.com/arq5x/bits")
8760 (synopsis "Implementation of binary interval search algorithm")
8761 (description "This package provides an implementation of the
8762 BITS (Binary Interval Search) algorithm, an approach to interval set
8763 intersection. It is especially suited for the comparison of diverse genomic
8764 datasets and the exploration of large datasets of genome
8765 intervals (e.g. genes, sequence alignments).")
8766 (license license:gpl2))))
8767
8768 (define-public piranha
8769 ;; There is no release tarball for the latest version. The latest commit is
8770 ;; older than one year at the time of this writing.
8771 (let ((revision "1")
8772 (commit "0466d364b71117d01e4471b74c514436cc281233"))
8773 (package
8774 (name "piranha")
8775 (version (string-append "1.2.1-" revision "." (string-take commit 9)))
8776 (source (origin
8777 (method git-fetch)
8778 (uri (git-reference
8779 (url "https://github.com/smithlabcode/piranha.git")
8780 (commit commit)))
8781 (file-name (git-file-name name version))
8782 (sha256
8783 (base32
8784 "117dc0zf20c61jam69sk4abl57ah6yi6i7qra7d7y5zrbgk12q5n"))))
8785 (build-system gnu-build-system)
8786 (arguments
8787 `(#:test-target "test"
8788 #:phases
8789 (modify-phases %standard-phases
8790 (add-after 'unpack 'copy-smithlab-cpp
8791 (lambda* (#:key inputs #:allow-other-keys)
8792 (for-each (lambda (file)
8793 (install-file file "./src/smithlab_cpp/"))
8794 (find-files (assoc-ref inputs "smithlab-cpp")))
8795 #t))
8796 (add-after 'install 'install-to-store
8797 (lambda* (#:key outputs #:allow-other-keys)
8798 (let* ((out (assoc-ref outputs "out"))
8799 (bin (string-append out "/bin")))
8800 (for-each (lambda (file)
8801 (install-file file bin))
8802 (find-files "bin" ".*")))
8803 #t)))
8804 #:configure-flags
8805 (list (string-append "--with-bam_tools_headers="
8806 (assoc-ref %build-inputs "bamtools") "/include/bamtools")
8807 (string-append "--with-bam_tools_library="
8808 (assoc-ref %build-inputs "bamtools") "/lib/bamtools"))))
8809 (inputs
8810 `(("bamtools" ,bamtools)
8811 ("samtools" ,samtools-0.1)
8812 ("gsl" ,gsl)
8813 ("smithlab-cpp"
8814 ,(let ((commit "3723e2db438c51501d0423429ff396c3035ba46a"))
8815 (origin
8816 (method git-fetch)
8817 (uri (git-reference
8818 (url "https://github.com/smithlabcode/smithlab_cpp.git")
8819 (commit commit)))
8820 (file-name (string-append "smithlab_cpp-" commit "-checkout"))
8821 (sha256
8822 (base32
8823 "0l4gvbwslw5ngziskja41c00x1r06l3yidv7y0xw9djibhykzy0g")))))))
8824 (native-inputs
8825 `(("python" ,python-2)))
8826 (home-page "https://github.com/smithlabcode/piranha")
8827 (synopsis "Peak-caller for CLIP-seq and RIP-seq data")
8828 (description
8829 "Piranha is a peak-caller for genomic data produced by CLIP-seq and
8830 RIP-seq experiments. It takes input in BED or BAM format and identifies
8831 regions of statistically significant read enrichment. Additional covariates
8832 may optionally be provided to further inform the peak-calling process.")
8833 (license license:gpl3+))))
8834
8835 (define-public pepr
8836 (package
8837 (name "pepr")
8838 (version "1.0.9")
8839 (source (origin
8840 (method url-fetch)
8841 (uri (pypi-uri "PePr" version))
8842 (sha256
8843 (base32
8844 "0qxjfdpl1b1y53nccws2d85f6k74zwmx8y8sd9rszcqhfayx6gdx"))))
8845 (build-system python-build-system)
8846 (arguments
8847 `(#:python ,python-2 ; python2 only
8848 #:tests? #f)) ; no tests included
8849 (propagated-inputs
8850 `(("python2-numpy" ,python2-numpy)
8851 ("python2-scipy" ,python2-scipy)
8852 ("python2-pysam" ,python2-pysam)))
8853 (home-page "https://github.com/shawnzhangyx/PePr")
8854 (synopsis "Peak-calling and prioritization pipeline for ChIP-Seq data")
8855 (description
8856 "PePr is a ChIP-Seq peak calling or differential binding analysis tool
8857 that is primarily designed for data with biological replicates. It uses a
8858 negative binomial distribution to model the read counts among the samples in
8859 the same group, and look for consistent differences between ChIP and control
8860 group or two ChIP groups run under different conditions.")
8861 (license license:gpl3+)))
8862
8863 (define-public filevercmp
8864 (let ((commit "1a9b779b93d0b244040274794d402106907b71b7"))
8865 (package
8866 (name "filevercmp")
8867 (version (string-append "0-1." (string-take commit 7)))
8868 (source (origin
8869 (method git-fetch)
8870 (uri (git-reference
8871 (url "https://github.com/ekg/filevercmp.git")
8872 (commit commit)))
8873 (file-name (git-file-name name commit))
8874 (sha256
8875 (base32
8876 "1j9vxsy0y050v59h0q1d6501fcw1kjvj0d18l1xk2zyg0jzj247c"))))
8877 (build-system gnu-build-system)
8878 (arguments
8879 `(#:tests? #f ; There are no tests to run.
8880 #:phases
8881 (modify-phases %standard-phases
8882 (delete 'configure) ; There is no configure phase.
8883 (replace 'install
8884 (lambda* (#:key outputs #:allow-other-keys)
8885 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
8886 (install-file "filevercmp" bin)
8887 #t))))))
8888 (home-page "https://github.com/ekg/filevercmp")
8889 (synopsis "This program compares version strings")
8890 (description "This program compares version strings. It intends to be a
8891 replacement for strverscmp.")
8892 (license license:gpl3+))))
8893
8894 (define-public multiqc
8895 (package
8896 (name "multiqc")
8897 (version "1.5")
8898 (source
8899 (origin
8900 (method url-fetch)
8901 (uri (pypi-uri "multiqc" version))
8902 (sha256
8903 (base32
8904 "02iihfl0w0hpnr4pa0sbd1y9qxrg3ycyhjp5lidkcrqh1lmzs3zy"))))
8905 (build-system python-build-system)
8906 (propagated-inputs
8907 `(("python-jinja2" ,python-jinja2)
8908 ("python-simplejson" ,python-simplejson)
8909 ("python-pyyaml" ,python-pyyaml)
8910 ("python-click" ,python-click)
8911 ("python-spectra" ,python-spectra)
8912 ("python-requests" ,python-requests)
8913 ("python-markdown" ,python-markdown)
8914 ("python-lzstring" ,python-lzstring)
8915 ("python-matplotlib" ,python-matplotlib)
8916 ("python-numpy" ,python-numpy)
8917 ;; MultQC checks for the presence of nose at runtime.
8918 ("python-nose" ,python-nose)))
8919 (arguments
8920 `(#:phases
8921 (modify-phases %standard-phases
8922 (add-after 'unpack 'relax-requirements
8923 (lambda _
8924 (substitute* "setup.py"
8925 ;; MultiQC 1.5 ‘requires’ a version of python-matplotlib older
8926 ;; than the one in Guix, but should work fine with 2.2.2.
8927 ;; See <https://github.com/ewels/MultiQC/issues/725> and
8928 ;; <https://github.com/ewels/MultiQC/issues/732> for details.
8929 (("['\"]matplotlib.*?['\"]")
8930 "'matplotlib'"))
8931 #t)))))
8932 (home-page "http://multiqc.info")
8933 (synopsis "Aggregate bioinformatics analysis reports")
8934 (description
8935 "MultiQC is a tool to aggregate bioinformatics results across many
8936 samples into a single report. It contains modules for a large number of
8937 common bioinformatics tools.")
8938 (license license:gpl3+)))
8939
8940 (define-public r-chipseq
8941 (package
8942 (name "r-chipseq")
8943 (version "1.36.0")
8944 (source
8945 (origin
8946 (method url-fetch)
8947 (uri (bioconductor-uri "chipseq" version))
8948 (sha256
8949 (base32
8950 "1ln6bn08xig3j6ryak1xfkjhvpnlm2vf1czz9hlj6f02299nbs6l"))))
8951 (build-system r-build-system)
8952 (propagated-inputs
8953 `(("r-biocgenerics" ,r-biocgenerics)
8954 ("r-genomicranges" ,r-genomicranges)
8955 ("r-iranges" ,r-iranges)
8956 ("r-lattice" ,r-lattice)
8957 ("r-s4vectors" ,r-s4vectors)
8958 ("r-shortread" ,r-shortread)))
8959 (home-page "https://bioconductor.org/packages/chipseq")
8960 (synopsis "Package for analyzing ChIPseq data")
8961 (description
8962 "This package provides tools for processing short read data from ChIPseq
8963 experiments.")
8964 (license license:artistic2.0)))
8965
8966 (define-public r-copyhelper
8967 (package
8968 (name "r-copyhelper")
8969 (version "1.6.0")
8970 (source
8971 (origin
8972 (method url-fetch)
8973 (uri (string-append "https://bioconductor.org/packages/release/"
8974 "data/experiment/src/contrib/CopyhelpeR_"
8975 version ".tar.gz"))
8976 (sha256
8977 (base32
8978 "0x7cyynjmxls9as2gg0iyp9x5fpalxmdjq914ss7i84i9zyk5bhq"))))
8979 (properties `((upstream-name . "CopyhelpeR")))
8980 (build-system r-build-system)
8981 (home-page "https://bioconductor.org/packages/CopyhelpeR/")
8982 (synopsis "Helper files for CopywriteR")
8983 (description
8984 "This package contains the helper files that are required to run the
8985 Bioconductor package CopywriteR. It contains pre-assembled 1kb bin GC-content
8986 and mappability files for the reference genomes hg18, hg19, hg38, mm9 and
8987 mm10. In addition, it contains a blacklist filter to remove regions that
8988 display copy number variation. Files are stored as GRanges objects from the
8989 GenomicRanges Bioconductor package.")
8990 (license license:gpl2)))
8991
8992 (define-public r-copywriter
8993 (package
8994 (name "r-copywriter")
8995 (version "2.18.0")
8996 (source
8997 (origin
8998 (method url-fetch)
8999 (uri (bioconductor-uri "CopywriteR" version))
9000 (sha256
9001 (base32
9002 "0llg1zpxg7qnvja5f5w1z1xic0jdg6zc4mfn97h2sm44skxxcyl1"))))
9003 (properties `((upstream-name . "CopywriteR")))
9004 (build-system r-build-system)
9005 (propagated-inputs
9006 `(("r-biocparallel" ,r-biocparallel)
9007 ("r-chipseq" ,r-chipseq)
9008 ("r-copyhelper" ,r-copyhelper)
9009 ("r-data-table" ,r-data-table)
9010 ("r-dnacopy" ,r-dnacopy)
9011 ("r-futile-logger" ,r-futile-logger)
9012 ("r-genomeinfodb" ,r-genomeinfodb)
9013 ("r-genomicalignments" ,r-genomicalignments)
9014 ("r-genomicranges" ,r-genomicranges)
9015 ("r-gtools" ,r-gtools)
9016 ("r-iranges" ,r-iranges)
9017 ("r-matrixstats" ,r-matrixstats)
9018 ("r-rsamtools" ,r-rsamtools)
9019 ("r-s4vectors" ,r-s4vectors)))
9020 (home-page "https://github.com/PeeperLab/CopywriteR")
9021 (synopsis "Copy number information from targeted sequencing")
9022 (description
9023 "CopywriteR extracts DNA copy number information from targeted sequencing
9024 by utilizing off-target reads. It allows for extracting uniformly distributed
9025 copy number information, can be used without reference, and can be applied to
9026 sequencing data obtained from various techniques including chromatin
9027 immunoprecipitation and target enrichment on small gene panels. Thereby,
9028 CopywriteR constitutes a widely applicable alternative to available copy
9029 number detection tools.")
9030 (license license:gpl2)))
9031
9032 (define-public r-methylkit
9033 (package
9034 (name "r-methylkit")
9035 (version "1.12.0")
9036 (source (origin
9037 (method url-fetch)
9038 (uri (bioconductor-uri "methylKit" version))
9039 (sha256
9040 (base32
9041 "0klwc0sbmrxj1lxbz16pl39rxjm0pi57gjw547hlgnac1p9fspzy"))))
9042 (properties `((upstream-name . "methylKit")))
9043 (build-system r-build-system)
9044 (propagated-inputs
9045 `(("r-data-table" ,r-data-table)
9046 ("r-emdbook" ,r-emdbook)
9047 ("r-fastseg" ,r-fastseg)
9048 ("r-genomeinfodb" ,r-genomeinfodb)
9049 ("r-genomicranges" ,r-genomicranges)
9050 ("r-gtools" ,r-gtools)
9051 ("r-iranges" ,r-iranges)
9052 ("r-kernsmooth" ,r-kernsmooth)
9053 ("r-limma" ,r-limma)
9054 ("r-mclust" ,r-mclust)
9055 ("r-mgcv" ,r-mgcv)
9056 ("r-qvalue" ,r-qvalue)
9057 ("r-r-utils" ,r-r-utils)
9058 ("r-rcpp" ,r-rcpp)
9059 ("r-rhtslib" ,r-rhtslib)
9060 ("r-rsamtools" ,r-rsamtools)
9061 ("r-rtracklayer" ,r-rtracklayer)
9062 ("r-s4vectors" ,r-s4vectors)
9063 ("r-zlibbioc" ,r-zlibbioc)))
9064 (inputs
9065 `(("zlib" ,zlib)))
9066 (home-page "https://github.com/al2na/methylKit")
9067 (synopsis
9068 "DNA methylation analysis from high-throughput bisulfite sequencing results")
9069 (description
9070 "MethylKit is an R package for DNA methylation analysis and annotation
9071 from high-throughput bisulfite sequencing. The package is designed to deal
9072 with sequencing data from @dfn{Reduced representation bisulfite
9073 sequencing} (RRBS) and its variants, but also target-capture methods and whole
9074 genome bisulfite sequencing. It also has functions to analyze base-pair
9075 resolution 5hmC data from experimental protocols such as oxBS-Seq and
9076 TAB-Seq.")
9077 (license license:artistic2.0)))
9078
9079 (define-public r-sva
9080 (package
9081 (name "r-sva")
9082 (version "3.34.0")
9083 (source
9084 (origin
9085 (method url-fetch)
9086 (uri (bioconductor-uri "sva" version))
9087 (sha256
9088 (base32
9089 "1bzms6idx30s4nxl610zwa8rjxsyxb5pf3vxsdfmxg8j4pab9gh1"))))
9090 (build-system r-build-system)
9091 (propagated-inputs
9092 `(("r-genefilter" ,r-genefilter)
9093 ("r-mgcv" ,r-mgcv)
9094 ("r-biocparallel" ,r-biocparallel)
9095 ("r-matrixstats" ,r-matrixstats)
9096 ("r-limma" ,r-limma)))
9097 (home-page "https://bioconductor.org/packages/sva")
9098 (synopsis "Surrogate variable analysis")
9099 (description
9100 "This package contains functions for removing batch effects and other
9101 unwanted variation in high-throughput experiment. It also contains functions
9102 for identifying and building surrogate variables for high-dimensional data
9103 sets. Surrogate variables are covariates constructed directly from
9104 high-dimensional data like gene expression/RNA sequencing/methylation/brain
9105 imaging data that can be used in subsequent analyses to adjust for unknown,
9106 unmodeled, or latent sources of noise.")
9107 (license license:artistic2.0)))
9108
9109 (define-public r-seqminer
9110 (package
9111 (name "r-seqminer")
9112 (version "7.1")
9113 (source
9114 (origin
9115 (method url-fetch)
9116 (uri (cran-uri "seqminer" version))
9117 (sha256
9118 (base32
9119 "1jydcpkw4rwfp983j83kipvsvr10as9pb49zzn3c2v09k1gh3ymy"))))
9120 (build-system r-build-system)
9121 (inputs
9122 `(("zlib" ,zlib)))
9123 (home-page "http://seqminer.genomic.codes")
9124 (synopsis "Read nucleotide sequence data (VCF, BCF, and METAL formats)")
9125 (description
9126 "This package provides tools to integrate nucleotide sequencing
9127 data (variant call format, e.g. VCF or BCF) or meta-analysis results in R.")
9128 ;; Any version of the GPL is acceptable
9129 (license (list license:gpl2+ license:gpl3+))))
9130
9131 (define-public r-raremetals2
9132 (package
9133 (name "r-raremetals2")
9134 (version "0.1")
9135 (source
9136 (origin
9137 (method url-fetch)
9138 (uri (string-append "http://genome.sph.umich.edu/w/images/"
9139 "b/b7/RareMETALS2_" version ".tar.gz"))
9140 (sha256
9141 (base32
9142 "0z5ljcgvnm06ja9lm85a3cniq7slxcy37aqqkxrdidr79an5fs4s"))))
9143 (properties `((upstream-name . "RareMETALS2")))
9144 (build-system r-build-system)
9145 (propagated-inputs
9146 `(("r-seqminer" ,r-seqminer)
9147 ("r-mvtnorm" ,r-mvtnorm)
9148 ("r-mass" ,r-mass)
9149 ("r-compquadform" ,r-compquadform)
9150 ("r-getopt" ,r-getopt)))
9151 (home-page "http://genome.sph.umich.edu/wiki/RareMETALS2")
9152 (synopsis "Analyze gene-level association tests for binary trait")
9153 (description
9154 "The R package rareMETALS2 is an extension of the R package rareMETALS.
9155 It was designed to meta-analyze gene-level association tests for binary trait.
9156 While rareMETALS offers a near-complete solution for meta-analysis of
9157 gene-level tests for quantitative trait, it does not offer the optimal
9158 solution for binary trait. The package rareMETALS2 offers improved features
9159 for analyzing gene-level association tests in meta-analyses for binary
9160 trait.")
9161 (license license:gpl3)))
9162
9163 (define-public r-maldiquant
9164 (package
9165 (name "r-maldiquant")
9166 (version "1.19.3")
9167 (source
9168 (origin
9169 (method url-fetch)
9170 (uri (cran-uri "MALDIquant" version))
9171 (sha256
9172 (base32
9173 "0b7kdz3x4sdq413h1q09l1qhcvdnnwv6fqsqwllks1cd3xy34c57"))))
9174 (properties `((upstream-name . "MALDIquant")))
9175 (build-system r-build-system)
9176 (home-page "https://cran.r-project.org/web/packages/MALDIquant")
9177 (synopsis "Quantitative analysis of mass spectrometry data")
9178 (description
9179 "This package provides a complete analysis pipeline for matrix-assisted
9180 laser desorption/ionization-time-of-flight (MALDI-TOF) and other
9181 two-dimensional mass spectrometry data. In addition to commonly used plotting
9182 and processing methods it includes distinctive features, namely baseline
9183 subtraction methods such as morphological filters (TopHat) or the
9184 statistics-sensitive non-linear iterative peak-clipping algorithm (SNIP), peak
9185 alignment using warping functions, handling of replicated measurements as well
9186 as allowing spectra with different resolutions.")
9187 (license license:gpl3+)))
9188
9189 (define-public r-protgenerics
9190 (package
9191 (name "r-protgenerics")
9192 (version "1.18.0")
9193 (source
9194 (origin
9195 (method url-fetch)
9196 (uri (bioconductor-uri "ProtGenerics" version))
9197 (sha256
9198 (base32
9199 "1k1ggjgx2la8b21841a4ngkp6xfxwz0czv7x960r7i1jqif8y48z"))))
9200 (properties `((upstream-name . "ProtGenerics")))
9201 (build-system r-build-system)
9202 (home-page "https://github.com/lgatto/ProtGenerics")
9203 (synopsis "S4 generic functions for proteomics infrastructure")
9204 (description
9205 "This package provides S4 generic functions needed by Bioconductor
9206 proteomics packages.")
9207 (license license:artistic2.0)))
9208
9209 (define-public r-mzr
9210 (package
9211 (name "r-mzr")
9212 (version "2.20.0")
9213 (source
9214 (origin
9215 (method url-fetch)
9216 (uri (bioconductor-uri "mzR" version))
9217 (sha256
9218 (base32
9219 "1cwd7phlc5jbx6r6cznyfbdpvcin5fvsaasbbi65zn0s92a80r13"))
9220 (modules '((guix build utils)))
9221 (snippet
9222 '(begin
9223 (delete-file-recursively "src/boost")
9224 #t))))
9225 (properties `((upstream-name . "mzR")))
9226 (build-system r-build-system)
9227 (arguments
9228 `(#:phases
9229 (modify-phases %standard-phases
9230 (add-after 'unpack 'use-system-boost
9231 (lambda _
9232 (substitute* "src/Makevars"
9233 (("\\./boost/libs.*") "")
9234 (("ARCH_OBJS=" line)
9235 (string-append line
9236 "\nARCH_LIBS=-lboost_system -lboost_regex \
9237 -lboost_iostreams -lboost_thread -lboost_filesystem -lboost_chrono\n")))
9238 #t)))))
9239 (inputs
9240 `(;; Our default boost package won't work here, unfortunately, even with
9241 ;; mzR version 2.20.0.
9242 ("boost" ,boost-for-mysql) ; use this instead of the bundled boost sources
9243 ("zlib" ,zlib)))
9244 (propagated-inputs
9245 `(("r-biobase" ,r-biobase)
9246 ("r-biocgenerics" ,r-biocgenerics)
9247 ("r-ncdf4" ,r-ncdf4)
9248 ("r-protgenerics" ,r-protgenerics)
9249 ("r-rcpp" ,r-rcpp)
9250 ("r-rhdf5lib" ,r-rhdf5lib)
9251 ("r-zlibbioc" ,r-zlibbioc)))
9252 (home-page "https://github.com/sneumann/mzR/")
9253 (synopsis "Parser for mass spectrometry data files")
9254 (description
9255 "The mzR package provides a unified API to the common file formats and
9256 parsers available for mass spectrometry data. It comes with a wrapper for the
9257 ISB random access parser for mass spectrometry mzXML, mzData and mzML files.
9258 The package contains the original code written by the ISB, and a subset of the
9259 proteowizard library for mzML and mzIdentML. The netCDF reading code has
9260 previously been used in XCMS.")
9261 (license license:artistic2.0)))
9262
9263 (define-public r-affyio
9264 (package
9265 (name "r-affyio")
9266 (version "1.56.0")
9267 (source
9268 (origin
9269 (method url-fetch)
9270 (uri (bioconductor-uri "affyio" version))
9271 (sha256
9272 (base32
9273 "0sbkadxdlx7qzxc8z8iv90y6j9b2f62mk3i54dijjh56x3hjy3hb"))))
9274 (build-system r-build-system)
9275 (propagated-inputs
9276 `(("r-zlibbioc" ,r-zlibbioc)))
9277 (inputs
9278 `(("zlib" ,zlib)))
9279 (home-page "https://github.com/bmbolstad/affyio")
9280 (synopsis "Tools for parsing Affymetrix data files")
9281 (description
9282 "This package provides routines for parsing Affymetrix data files based
9283 upon file format information. The primary focus is on accessing the CEL and
9284 CDF file formats.")
9285 (license license:lgpl2.0+)))
9286
9287 (define-public r-affy
9288 (package
9289 (name "r-affy")
9290 (version "1.64.0")
9291 (source
9292 (origin
9293 (method url-fetch)
9294 (uri (bioconductor-uri "affy" version))
9295 (sha256
9296 (base32
9297 "131za66wbaz9y86gvjqcc2yd1f2ngl2b796xw726g75djhdgxgap"))))
9298 (build-system r-build-system)
9299 (propagated-inputs
9300 `(("r-affyio" ,r-affyio)
9301 ("r-biobase" ,r-biobase)
9302 ("r-biocgenerics" ,r-biocgenerics)
9303 ("r-biocmanager" ,r-biocmanager)
9304 ("r-preprocesscore" ,r-preprocesscore)
9305 ("r-zlibbioc" ,r-zlibbioc)))
9306 (inputs
9307 `(("zlib" ,zlib)))
9308 (home-page "https://bioconductor.org/packages/affy")
9309 (synopsis "Methods for affymetrix oligonucleotide arrays")
9310 (description
9311 "This package contains functions for exploratory oligonucleotide array
9312 analysis.")
9313 (license license:lgpl2.0+)))
9314
9315 (define-public r-vsn
9316 (package
9317 (name "r-vsn")
9318 (version "3.54.0")
9319 (source
9320 (origin
9321 (method url-fetch)
9322 (uri (bioconductor-uri "vsn" version))
9323 (sha256
9324 (base32
9325 "1naqzb2m0km8fzr6chf9z71sisrwviy1fdi9b3hn4i8p18b4kqzh"))))
9326 (build-system r-build-system)
9327 (propagated-inputs
9328 `(("r-affy" ,r-affy)
9329 ("r-biobase" ,r-biobase)
9330 ("r-ggplot2" ,r-ggplot2)
9331 ("r-lattice" ,r-lattice)
9332 ("r-limma" ,r-limma)))
9333 (home-page "https://bioconductor.org/packages/release/bioc/html/vsn.html")
9334 (synopsis "Variance stabilization and calibration for microarray data")
9335 (description
9336 "The package implements a method for normalising microarray intensities,
9337 and works for single- and multiple-color arrays. It can also be used for data
9338 from other technologies, as long as they have similar format. The method uses
9339 a robust variant of the maximum-likelihood estimator for an
9340 additive-multiplicative error model and affine calibration. The model
9341 incorporates data calibration step (a.k.a. normalization), a model for the
9342 dependence of the variance on the mean intensity and a variance stabilizing
9343 data transformation. Differences between transformed intensities are
9344 analogous to \"normalized log-ratios\". However, in contrast to the latter,
9345 their variance is independent of the mean, and they are usually more sensitive
9346 and specific in detecting differential transcription.")
9347 (license license:artistic2.0)))
9348
9349 (define-public r-mzid
9350 (package
9351 (name "r-mzid")
9352 (version "1.24.0")
9353 (source
9354 (origin
9355 (method url-fetch)
9356 (uri (bioconductor-uri "mzID" version))
9357 (sha256
9358 (base32
9359 "1glcv096bn6pxlw89dlij1nzpwnjvrbxysvw2gm6qgm7rhxlaxrw"))))
9360 (properties `((upstream-name . "mzID")))
9361 (build-system r-build-system)
9362 (propagated-inputs
9363 `(("r-doparallel" ,r-doparallel)
9364 ("r-foreach" ,r-foreach)
9365 ("r-iterators" ,r-iterators)
9366 ("r-plyr" ,r-plyr)
9367 ("r-protgenerics" ,r-protgenerics)
9368 ("r-rcpp" ,r-rcpp)
9369 ("r-xml" ,r-xml)))
9370 (home-page "https://bioconductor.org/packages/mzID")
9371 (synopsis "Parser for mzIdentML files")
9372 (description
9373 "This package provides a parser for mzIdentML files implemented using the
9374 XML package. The parser tries to be general and able to handle all types of
9375 mzIdentML files with the drawback of having less pretty output than a vendor
9376 specific parser.")
9377 (license license:gpl2+)))
9378
9379 (define-public r-pcamethods
9380 (package
9381 (name "r-pcamethods")
9382 (version "1.78.0")
9383 (source
9384 (origin
9385 (method url-fetch)
9386 (uri (bioconductor-uri "pcaMethods" version))
9387 (sha256
9388 (base32
9389 "1wir67kfjm0m9gf0ki8qmvh45n4gx2k0wfl9pd1hp4g62fbrj1pj"))))
9390 (properties `((upstream-name . "pcaMethods")))
9391 (build-system r-build-system)
9392 (propagated-inputs
9393 `(("r-biobase" ,r-biobase)
9394 ("r-biocgenerics" ,r-biocgenerics)
9395 ("r-mass" ,r-mass)
9396 ("r-rcpp" ,r-rcpp)))
9397 (home-page "https://github.com/hredestig/pcamethods")
9398 (synopsis "Collection of PCA methods")
9399 (description
9400 "This package provides Bayesian PCA, Probabilistic PCA, Nipals PCA,
9401 Inverse Non-Linear PCA and the conventional SVD PCA. A cluster based method
9402 for missing value estimation is included for comparison. BPCA, PPCA and
9403 NipalsPCA may be used to perform PCA on incomplete data as well as for
9404 accurate missing value estimation. A set of methods for printing and plotting
9405 the results is also provided. All PCA methods make use of the same data
9406 structure (pcaRes) to provide a common interface to the PCA results.")
9407 (license license:gpl3+)))
9408
9409 (define-public r-msnbase
9410 (package
9411 (name "r-msnbase")
9412 (version "2.12.0")
9413 (source
9414 (origin
9415 (method url-fetch)
9416 (uri (bioconductor-uri "MSnbase" version))
9417 (sha256
9418 (base32
9419 "1z889xkfphqqmv31i8hh5xqyclv660ic26rfck5bjpgk3s2zzwi6"))))
9420 (properties `((upstream-name . "MSnbase")))
9421 (build-system r-build-system)
9422 (propagated-inputs
9423 `(("r-affy" ,r-affy)
9424 ("r-biobase" ,r-biobase)
9425 ("r-biocgenerics" ,r-biocgenerics)
9426 ("r-biocparallel" ,r-biocparallel)
9427 ("r-digest" ,r-digest)
9428 ("r-ggplot2" ,r-ggplot2)
9429 ("r-impute" ,r-impute)
9430 ("r-iranges" ,r-iranges)
9431 ("r-lattice" ,r-lattice)
9432 ("r-maldiquant" ,r-maldiquant)
9433 ("r-mass" ,r-mass)
9434 ("r-mzid" ,r-mzid)
9435 ("r-mzr" ,r-mzr)
9436 ("r-pcamethods" ,r-pcamethods)
9437 ("r-plyr" ,r-plyr)
9438 ("r-preprocesscore" ,r-preprocesscore)
9439 ("r-protgenerics" ,r-protgenerics)
9440 ("r-rcpp" ,r-rcpp)
9441 ("r-s4vectors" ,r-s4vectors)
9442 ("r-scales" ,r-scales)
9443 ("r-vsn" ,r-vsn)
9444 ("r-xml" ,r-xml)))
9445 (home-page "https://github.com/lgatto/MSnbase")
9446 (synopsis "Base functions and classes for MS-based proteomics")
9447 (description
9448 "This package provides basic plotting, data manipulation and processing
9449 of mass spectrometry based proteomics data.")
9450 (license license:artistic2.0)))
9451
9452 (define-public r-msnid
9453 (package
9454 (name "r-msnid")
9455 (version "1.20.0")
9456 (source
9457 (origin
9458 (method url-fetch)
9459 (uri (bioconductor-uri "MSnID" version))
9460 (sha256
9461 (base32
9462 "0m71f2y12hmwvng45kzz4r4qrgc2jbd7j9gprmw8y5laawpdaifg"))))
9463 (properties `((upstream-name . "MSnID")))
9464 (build-system r-build-system)
9465 (propagated-inputs
9466 `(("r-biobase" ,r-biobase)
9467 ("r-data-table" ,r-data-table)
9468 ("r-doparallel" ,r-doparallel)
9469 ("r-dplyr" ,r-dplyr)
9470 ("r-foreach" ,r-foreach)
9471 ("r-iterators" ,r-iterators)
9472 ("r-msnbase" ,r-msnbase)
9473 ("r-mzid" ,r-mzid)
9474 ("r-mzr" ,r-mzr)
9475 ("r-protgenerics" ,r-protgenerics)
9476 ("r-r-cache" ,r-r-cache)
9477 ("r-rcpp" ,r-rcpp)
9478 ("r-reshape2" ,r-reshape2)))
9479 (home-page "https://bioconductor.org/packages/MSnID")
9480 (synopsis "Utilities for LC-MSn proteomics identifications")
9481 (description
9482 "This package extracts @dfn{tandem mass spectrometry} (MS/MS) ID data
9483 from mzIdentML (leveraging the mzID package) or text files. After collating
9484 the search results from multiple datasets it assesses their identification
9485 quality and optimize filtering criteria to achieve the maximum number of
9486 identifications while not exceeding a specified false discovery rate. It also
9487 contains a number of utilities to explore the MS/MS results and assess missed
9488 and irregular enzymatic cleavages, mass measurement accuracy, etc.")
9489 (license license:artistic2.0)))
9490
9491 (define-public r-seurat
9492 (package
9493 (name "r-seurat")
9494 (version "3.1.2")
9495 (source (origin
9496 (method url-fetch)
9497 (uri (cran-uri "Seurat" version))
9498 (sha256
9499 (base32
9500 "0m1qi39snbmkkv1p07bzg1r7snc9x6a1y0dghvpk1nzgcfpmnsj4"))))
9501 (properties `((upstream-name . "Seurat")))
9502 (build-system r-build-system)
9503 (propagated-inputs
9504 `(("r-ape" ,r-ape)
9505 ("r-cluster" ,r-cluster)
9506 ("r-cowplot" ,r-cowplot)
9507 ("r-fitdistrplus" ,r-fitdistrplus)
9508 ("r-future" ,r-future)
9509 ("r-future-apply" ,r-future-apply)
9510 ("r-ggplot2" ,r-ggplot2)
9511 ("r-ggrepel" ,r-ggrepel)
9512 ("r-ggridges" ,r-ggridges)
9513 ("r-httr" ,r-httr)
9514 ("r-ica" ,r-ica)
9515 ("r-igraph" ,r-igraph)
9516 ("r-irlba" ,r-irlba)
9517 ("r-kernsmooth" ,r-kernsmooth)
9518 ("r-leiden" ,r-leiden)
9519 ("r-lmtest" ,r-lmtest)
9520 ("r-mass" ,r-mass)
9521 ("r-matrix" ,r-matrix)
9522 ("r-metap" ,r-metap)
9523 ("r-pbapply" ,r-pbapply)
9524 ("r-plotly" ,r-plotly)
9525 ("r-png" ,r-png)
9526 ("r-rann" ,r-rann)
9527 ("r-rcolorbrewer" ,r-rcolorbrewer)
9528 ("r-rcpp" ,r-rcpp)
9529 ("r-rcppannoy" ,r-rcppannoy)
9530 ("r-rcppeigen" ,r-rcppeigen)
9531 ("r-rcppprogress" ,r-rcppprogress)
9532 ("r-reticulate" ,r-reticulate)
9533 ("r-rlang" ,r-rlang)
9534 ("r-rocr" ,r-rocr)
9535 ("r-rsvd" ,r-rsvd)
9536 ("r-rtsne" ,r-rtsne)
9537 ("r-scales" ,r-scales)
9538 ("r-sctransform" ,r-sctransform)
9539 ("r-sdmtools" ,r-sdmtools)
9540 ("r-tsne" ,r-tsne)
9541 ("r-uwot" ,r-uwot)))
9542 (home-page "http://www.satijalab.org/seurat")
9543 (synopsis "Seurat is an R toolkit for single cell genomics")
9544 (description
9545 "This package is an R package designed for QC, analysis, and
9546 exploration of single cell RNA-seq data. It easily enables widely-used
9547 analytical techniques, including the identification of highly variable genes,
9548 dimensionality reduction; PCA, ICA, t-SNE, standard unsupervised clustering
9549 algorithms; density clustering, hierarchical clustering, k-means, and the
9550 discovery of differentially expressed genes and markers.")
9551 (license license:gpl3)))
9552
9553 (define-public r-aroma-light
9554 (package
9555 (name "r-aroma-light")
9556 (version "3.16.0")
9557 (source
9558 (origin
9559 (method url-fetch)
9560 (uri (bioconductor-uri "aroma.light" version))
9561 (sha256
9562 (base32
9563 "0cgdg650j4dl0b45pwaw49ib97dwjazrv9sqzkygrjmcnnfxry8x"))))
9564 (properties `((upstream-name . "aroma.light")))
9565 (build-system r-build-system)
9566 (propagated-inputs
9567 `(("r-matrixstats" ,r-matrixstats)
9568 ("r-r-methodss3" ,r-r-methodss3)
9569 ("r-r-oo" ,r-r-oo)
9570 ("r-r-utils" ,r-r-utils)))
9571 (home-page "https://github.com/HenrikBengtsson/aroma.light")
9572 (synopsis "Methods for normalization and visualization of microarray data")
9573 (description
9574 "This package provides methods for microarray analysis that take basic
9575 data types such as matrices and lists of vectors. These methods can be used
9576 standalone, be utilized in other packages, or be wrapped up in higher-level
9577 classes.")
9578 (license license:gpl2+)))
9579
9580 (define-public r-deseq
9581 (package
9582 (name "r-deseq")
9583 (version "1.38.0")
9584 (source
9585 (origin
9586 (method url-fetch)
9587 (uri (bioconductor-uri "DESeq" version))
9588 (sha256
9589 (base32
9590 "14pys93gsl50xmq5pc7pp1g20v3ywlg0yzkkhwb3kiy8573xn9nc"))))
9591 (properties `((upstream-name . "DESeq")))
9592 (build-system r-build-system)
9593 (propagated-inputs
9594 `(("r-biobase" ,r-biobase)
9595 ("r-biocgenerics" ,r-biocgenerics)
9596 ("r-genefilter" ,r-genefilter)
9597 ("r-geneplotter" ,r-geneplotter)
9598 ("r-lattice" ,r-lattice)
9599 ("r-locfit" ,r-locfit)
9600 ("r-mass" ,r-mass)
9601 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9602 (home-page "http://www-huber.embl.de/users/anders/DESeq")
9603 (synopsis "Differential gene expression analysis")
9604 (description
9605 "This package provides tools for estimating variance-mean dependence in
9606 count data from high-throughput genetic sequencing assays and for testing for
9607 differential expression based on a model using the negative binomial
9608 distribution.")
9609 (license license:gpl3+)))
9610
9611 (define-public r-edaseq
9612 (package
9613 (name "r-edaseq")
9614 (version "2.20.0")
9615 (source
9616 (origin
9617 (method url-fetch)
9618 (uri (bioconductor-uri "EDASeq" version))
9619 (sha256
9620 (base32
9621 "19mgzbv8yxgvw86wpq401l27q55ygawlngl775yavwccz1zbhjnj"))))
9622 (properties `((upstream-name . "EDASeq")))
9623 (build-system r-build-system)
9624 (propagated-inputs
9625 `(("r-annotationdbi" ,r-annotationdbi)
9626 ("r-aroma-light" ,r-aroma-light)
9627 ("r-biobase" ,r-biobase)
9628 ("r-biocgenerics" ,r-biocgenerics)
9629 ("r-biocmanager" ,r-biocmanager)
9630 ("r-biomart" ,r-biomart)
9631 ("r-biostrings" ,r-biostrings)
9632 ("r-deseq" ,r-deseq)
9633 ("r-genomicfeatures" ,r-genomicfeatures)
9634 ("r-genomicranges" ,r-genomicranges)
9635 ("r-iranges" ,r-iranges)
9636 ("r-rsamtools" ,r-rsamtools)
9637 ("r-shortread" ,r-shortread)))
9638 (home-page "https://github.com/drisso/EDASeq")
9639 (synopsis "Exploratory data analysis and normalization for RNA-Seq")
9640 (description
9641 "This package provides support for numerical and graphical summaries of
9642 RNA-Seq genomic read data. Provided within-lane normalization procedures to
9643 adjust for GC-content effect (or other gene-level effects) on read counts:
9644 loess robust local regression, global-scaling, and full-quantile
9645 normalization. Between-lane normalization procedures to adjust for
9646 distributional differences between lanes (e.g., sequencing depth):
9647 global-scaling and full-quantile normalization.")
9648 (license license:artistic2.0)))
9649
9650 (define-public r-interactivedisplaybase
9651 (package
9652 (name "r-interactivedisplaybase")
9653 (version "1.24.0")
9654 (source
9655 (origin
9656 (method url-fetch)
9657 (uri (bioconductor-uri "interactiveDisplayBase" version))
9658 (sha256
9659 (base32
9660 "0zwf3ma6wf4zypl6bgjp0n72k2hmp0g16gzl4v3y4157rxcbpl0n"))))
9661 (properties
9662 `((upstream-name . "interactiveDisplayBase")))
9663 (build-system r-build-system)
9664 (propagated-inputs
9665 `(("r-biocgenerics" ,r-biocgenerics)
9666 ("r-shiny" ,r-shiny)))
9667 (home-page "https://bioconductor.org/packages/interactiveDisplayBase")
9668 (synopsis "Base package for web displays of Bioconductor objects")
9669 (description
9670 "This package contains the basic methods needed to generate interactive
9671 Shiny-based display methods for Bioconductor objects.")
9672 (license license:artistic2.0)))
9673
9674 (define-public r-annotationhub
9675 (package
9676 (name "r-annotationhub")
9677 (version "2.18.0")
9678 (source
9679 (origin
9680 (method url-fetch)
9681 (uri (bioconductor-uri "AnnotationHub" version))
9682 (sha256
9683 (base32
9684 "19vj3bk8jz68q84g3j8xs1s9bqz90lbwbciig1h45zvn2zc6087m"))))
9685 (properties `((upstream-name . "AnnotationHub")))
9686 (build-system r-build-system)
9687 (propagated-inputs
9688 `(("r-annotationdbi" ,r-annotationdbi)
9689 ("r-biocfilecache" ,r-biocfilecache)
9690 ("r-biocgenerics" ,r-biocgenerics)
9691 ("r-biocmanager" ,r-biocmanager)
9692 ("r-biocversion" ,r-biocversion)
9693 ("r-curl" ,r-curl)
9694 ("r-dplyr" ,r-dplyr)
9695 ("r-httr" ,r-httr)
9696 ("r-interactivedisplaybase" ,r-interactivedisplaybase)
9697 ("r-rappdirs" ,r-rappdirs)
9698 ("r-rsqlite" ,r-rsqlite)
9699 ("r-s4vectors" ,r-s4vectors)
9700 ("r-yaml" ,r-yaml)))
9701 (home-page "https://bioconductor.org/packages/AnnotationHub")
9702 (synopsis "Client to access AnnotationHub resources")
9703 (description
9704 "This package provides a client for the Bioconductor AnnotationHub web
9705 resource. The AnnotationHub web resource provides a central location where
9706 genomic files (e.g. VCF, bed, wig) and other resources from standard
9707 locations (e.g. UCSC, Ensembl) can be discovered. The resource includes
9708 metadata about each resource, e.g., a textual description, tags, and date of
9709 modification. The client creates and manages a local cache of files retrieved
9710 by the user, helping with quick and reproducible access.")
9711 (license license:artistic2.0)))
9712
9713 (define-public r-fastseg
9714 (package
9715 (name "r-fastseg")
9716 (version "1.32.0")
9717 (source
9718 (origin
9719 (method url-fetch)
9720 (uri (bioconductor-uri "fastseg" version))
9721 (sha256
9722 (base32
9723 "1cys6frmbizc8bf933mwvvnr31sfya9ahcc0wm66pbd1x3mygkmk"))))
9724 (build-system r-build-system)
9725 (propagated-inputs
9726 `(("r-biobase" ,r-biobase)
9727 ("r-biocgenerics" ,r-biocgenerics)
9728 ("r-genomicranges" ,r-genomicranges)
9729 ("r-iranges" ,r-iranges)
9730 ("r-s4vectors" ,r-s4vectors)))
9731 (home-page "http://www.bioinf.jku.at/software/fastseg/index.html")
9732 (synopsis "Fast segmentation algorithm for genetic sequencing data")
9733 (description
9734 "Fastseg implements a very fast and efficient segmentation algorithm.
9735 It can segment data from DNA microarrays and data from next generation
9736 sequencing for example to detect copy number segments. Further it can segment
9737 data from RNA microarrays like tiling arrays to identify transcripts. Most
9738 generally, it can segment data given as a matrix or as a vector. Various data
9739 formats can be used as input to fastseg like expression set objects for
9740 microarrays or GRanges for sequencing data.")
9741 (license license:lgpl2.0+)))
9742
9743 (define-public r-keggrest
9744 (package
9745 (name "r-keggrest")
9746 (version "1.26.1")
9747 (source
9748 (origin
9749 (method url-fetch)
9750 (uri (bioconductor-uri "KEGGREST" version))
9751 (sha256
9752 (base32
9753 "1cgjvv9n88y3ah21356mh8z2l08vjn42hjy8hcljsibknzc4v247"))))
9754 (properties `((upstream-name . "KEGGREST")))
9755 (build-system r-build-system)
9756 (propagated-inputs
9757 `(("r-biostrings" ,r-biostrings)
9758 ("r-httr" ,r-httr)
9759 ("r-png" ,r-png)))
9760 (home-page "https://bioconductor.org/packages/KEGGREST")
9761 (synopsis "Client-side REST access to KEGG")
9762 (description
9763 "This package provides a package that provides a client interface to the
9764 @dfn{Kyoto Encyclopedia of Genes and Genomes} (KEGG) REST server.")
9765 (license license:artistic2.0)))
9766
9767 (define-public r-gage
9768 (package
9769 (name "r-gage")
9770 (version "2.36.0")
9771 (source
9772 (origin
9773 (method url-fetch)
9774 (uri (bioconductor-uri "gage" version))
9775 (sha256
9776 (base32
9777 "1qxfmg0id19iy3ia8h5nrvk3d1azqb28kl7m08i23654wb6b45c6"))))
9778 (build-system r-build-system)
9779 (propagated-inputs
9780 `(("r-annotationdbi" ,r-annotationdbi)
9781 ("r-graph" ,r-graph)
9782 ("r-keggrest" ,r-keggrest)))
9783 (home-page "http://www.biomedcentral.com/1471-2105/10/161")
9784 (synopsis "Generally applicable gene-set enrichment for pathway analysis")
9785 (description
9786 "GAGE is a published method for gene set (enrichment or GSEA) or pathway
9787 analysis. GAGE is generally applicable independent of microarray or RNA-Seq
9788 data attributes including sample sizes, experimental designs, assay platforms,
9789 and other types of heterogeneity. The gage package provides functions for
9790 basic GAGE analysis, result processing and presentation. In addition, it
9791 provides demo microarray data and commonly used gene set data based on KEGG
9792 pathways and GO terms. These functions and data are also useful for gene set
9793 analysis using other methods.")
9794 (license license:gpl2+)))
9795
9796 (define-public r-genomicfiles
9797 (package
9798 (name "r-genomicfiles")
9799 (version "1.22.0")
9800 (source
9801 (origin
9802 (method url-fetch)
9803 (uri (bioconductor-uri "GenomicFiles" version))
9804 (sha256
9805 (base32
9806 "1x6q827ms2l5lwzha1vsgfrshh35n9f19jq57xagrqlafxgpz86s"))))
9807 (properties `((upstream-name . "GenomicFiles")))
9808 (build-system r-build-system)
9809 (propagated-inputs
9810 `(("r-biocgenerics" ,r-biocgenerics)
9811 ("r-biocparallel" ,r-biocparallel)
9812 ("r-genomeinfodb" ,r-genomeinfodb)
9813 ("r-genomicalignments" ,r-genomicalignments)
9814 ("r-genomicranges" ,r-genomicranges)
9815 ("r-iranges" ,r-iranges)
9816 ("r-rsamtools" ,r-rsamtools)
9817 ("r-rtracklayer" ,r-rtracklayer)
9818 ("r-s4vectors" ,r-s4vectors)
9819 ("r-summarizedexperiment" ,r-summarizedexperiment)
9820 ("r-variantannotation" ,r-variantannotation)))
9821 (home-page "https://bioconductor.org/packages/GenomicFiles")
9822 (synopsis "Distributed computing by file or by range")
9823 (description
9824 "This package provides infrastructure for parallel computations
9825 distributed by file or by range. User defined mapper and reducer functions
9826 provide added flexibility for data combination and manipulation.")
9827 (license license:artistic2.0)))
9828
9829 (define-public r-complexheatmap
9830 (package
9831 (name "r-complexheatmap")
9832 (version "2.2.0")
9833 (source
9834 (origin
9835 (method url-fetch)
9836 (uri (bioconductor-uri "ComplexHeatmap" version))
9837 (sha256
9838 (base32
9839 "1pj6a6rmqckk033pkklk6hr4066rzavamy6w194rfdhind90rk0p"))))
9840 (properties
9841 `((upstream-name . "ComplexHeatmap")))
9842 (build-system r-build-system)
9843 (propagated-inputs
9844 `(("r-circlize" ,r-circlize)
9845 ("r-clue" ,r-clue)
9846 ("r-colorspace" ,r-colorspace)
9847 ("r-getoptlong" ,r-getoptlong)
9848 ("r-globaloptions" ,r-globaloptions)
9849 ("r-png" ,r-png)
9850 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9851 (home-page
9852 "https://github.com/jokergoo/ComplexHeatmap")
9853 (synopsis "Making Complex Heatmaps")
9854 (description
9855 "Complex heatmaps are efficient to visualize associations between
9856 different sources of data sets and reveal potential structures. This package
9857 provides a highly flexible way to arrange multiple heatmaps and supports
9858 self-defined annotation graphics.")
9859 (license license:gpl2+)))
9860
9861 (define-public r-dirichletmultinomial
9862 (package
9863 (name "r-dirichletmultinomial")
9864 (version "1.28.0")
9865 (source
9866 (origin
9867 (method url-fetch)
9868 (uri (bioconductor-uri "DirichletMultinomial" version))
9869 (sha256
9870 (base32
9871 "0knmncmkkf2ypyqfcl5s8nmyyf9nrzkqprzn9w3w8182c0v49r0s"))))
9872 (properties
9873 `((upstream-name . "DirichletMultinomial")))
9874 (build-system r-build-system)
9875 (inputs
9876 `(("gsl" ,gsl)))
9877 (propagated-inputs
9878 `(("r-biocgenerics" ,r-biocgenerics)
9879 ("r-iranges" ,r-iranges)
9880 ("r-s4vectors" ,r-s4vectors)))
9881 (home-page "https://bioconductor.org/packages/DirichletMultinomial")
9882 (synopsis "Dirichlet-Multinomial mixture models for microbiome data")
9883 (description
9884 "Dirichlet-multinomial mixture models can be used to describe variability
9885 in microbial metagenomic data. This package is an interface to code
9886 originally made available by Holmes, Harris, and Quince, 2012, PLoS ONE 7(2):
9887 1-15.")
9888 (license license:lgpl3)))
9889
9890 (define-public r-ensembldb
9891 (package
9892 (name "r-ensembldb")
9893 (version "2.10.2")
9894 (source
9895 (origin
9896 (method url-fetch)
9897 (uri (bioconductor-uri "ensembldb" version))
9898 (sha256
9899 (base32
9900 "02lnpyp85zchmz404hr5381zmihvq4x9zgxdrbn2afi352vg0vab"))))
9901 (build-system r-build-system)
9902 (propagated-inputs
9903 `(("r-annotationdbi" ,r-annotationdbi)
9904 ("r-annotationfilter" ,r-annotationfilter)
9905 ("r-biobase" ,r-biobase)
9906 ("r-biocgenerics" ,r-biocgenerics)
9907 ("r-biostrings" ,r-biostrings)
9908 ("r-curl" ,r-curl)
9909 ("r-dbi" ,r-dbi)
9910 ("r-genomeinfodb" ,r-genomeinfodb)
9911 ("r-genomicfeatures" ,r-genomicfeatures)
9912 ("r-genomicranges" ,r-genomicranges)
9913 ("r-iranges" ,r-iranges)
9914 ("r-protgenerics" ,r-protgenerics)
9915 ("r-rsamtools" ,r-rsamtools)
9916 ("r-rsqlite" ,r-rsqlite)
9917 ("r-rtracklayer" ,r-rtracklayer)
9918 ("r-s4vectors" ,r-s4vectors)))
9919 (home-page "https://github.com/jotsetung/ensembldb")
9920 (synopsis "Utilities to create and use Ensembl-based annotation databases")
9921 (description
9922 "The package provides functions to create and use transcript-centric
9923 annotation databases/packages. The annotation for the databases are directly
9924 fetched from Ensembl using their Perl API. The functionality and data is
9925 similar to that of the TxDb packages from the @code{GenomicFeatures} package,
9926 but, in addition to retrieve all gene/transcript models and annotations from
9927 the database, the @code{ensembldb} package also provides a filter framework
9928 allowing to retrieve annotations for specific entries like genes encoded on a
9929 chromosome region or transcript models of lincRNA genes.")
9930 ;; No version specified
9931 (license license:lgpl3+)))
9932
9933 (define-public r-organismdbi
9934 (package
9935 (name "r-organismdbi")
9936 (version "1.28.0")
9937 (source
9938 (origin
9939 (method url-fetch)
9940 (uri (bioconductor-uri "OrganismDbi" version))
9941 (sha256
9942 (base32
9943 "1bvfyh733mhka9zd00hrzpalgjs255c2blnxyf60ipzk5jg7yllb"))))
9944 (properties `((upstream-name . "OrganismDbi")))
9945 (build-system r-build-system)
9946 (propagated-inputs
9947 `(("r-annotationdbi" ,r-annotationdbi)
9948 ("r-biobase" ,r-biobase)
9949 ("r-biocgenerics" ,r-biocgenerics)
9950 ("r-biocmanager" ,r-biocmanager)
9951 ("r-dbi" ,r-dbi)
9952 ("r-genomicfeatures" ,r-genomicfeatures)
9953 ("r-genomicranges" ,r-genomicranges)
9954 ("r-graph" ,r-graph)
9955 ("r-iranges" ,r-iranges)
9956 ("r-rbgl" ,r-rbgl)
9957 ("r-s4vectors" ,r-s4vectors)))
9958 (home-page "https://bioconductor.org/packages/OrganismDbi")
9959 (synopsis "Software to enable the smooth interfacing of database packages")
9960 (description "The package enables a simple unified interface to several
9961 annotation packages each of which has its own schema by taking advantage of
9962 the fact that each of these packages implements a select methods.")
9963 (license license:artistic2.0)))
9964
9965 (define-public r-biovizbase
9966 (package
9967 (name "r-biovizbase")
9968 (version "1.34.1")
9969 (source
9970 (origin
9971 (method url-fetch)
9972 (uri (bioconductor-uri "biovizBase" version))
9973 (sha256
9974 (base32
9975 "04vvj907bgs67w8rb7n1haf80p6cd0qj5fdxw0dwryb455y35vir"))))
9976 (properties `((upstream-name . "biovizBase")))
9977 (build-system r-build-system)
9978 (propagated-inputs
9979 `(("r-annotationdbi" ,r-annotationdbi)
9980 ("r-annotationfilter" ,r-annotationfilter)
9981 ("r-biocgenerics" ,r-biocgenerics)
9982 ("r-biostrings" ,r-biostrings)
9983 ("r-dichromat" ,r-dichromat)
9984 ("r-ensembldb" ,r-ensembldb)
9985 ("r-genomeinfodb" ,r-genomeinfodb)
9986 ("r-genomicalignments" ,r-genomicalignments)
9987 ("r-genomicfeatures" ,r-genomicfeatures)
9988 ("r-genomicranges" ,r-genomicranges)
9989 ("r-hmisc" ,r-hmisc)
9990 ("r-iranges" ,r-iranges)
9991 ("r-rcolorbrewer" ,r-rcolorbrewer)
9992 ("r-rlang" ,r-rlang)
9993 ("r-rsamtools" ,r-rsamtools)
9994 ("r-s4vectors" ,r-s4vectors)
9995 ("r-scales" ,r-scales)
9996 ("r-summarizedexperiment" ,r-summarizedexperiment)
9997 ("r-variantannotation" ,r-variantannotation)))
9998 (home-page "https://bioconductor.org/packages/biovizBase")
9999 (synopsis "Basic graphic utilities for visualization of genomic data")
10000 (description
10001 "The biovizBase package is designed to provide a set of utilities, color
10002 schemes and conventions for genomic data. It serves as the base for various
10003 high-level packages for biological data visualization. This saves development
10004 effort and encourages consistency.")
10005 (license license:artistic2.0)))
10006
10007 (define-public r-ggbio
10008 (package
10009 (name "r-ggbio")
10010 (version "1.34.0")
10011 (source
10012 (origin
10013 (method url-fetch)
10014 (uri (bioconductor-uri "ggbio" version))
10015 (sha256
10016 (base32
10017 "13wzwh40anh8l53yp19bg4w5cpxykcaf228dc8cxvjndyib711qb"))))
10018 (build-system r-build-system)
10019 (arguments
10020 `(#:phases
10021 (modify-phases %standard-phases
10022 ;; See https://github.com/tengfei/ggbio/issues/117
10023 ;; This fix will be included in the next release.
10024 (add-after 'unpack 'fix-typo
10025 (lambda _
10026 (substitute* "R/GGbio-class.R"
10027 (("fechable") "fetchable"))
10028 #t)))))
10029 (propagated-inputs
10030 `(("r-annotationdbi" ,r-annotationdbi)
10031 ("r-annotationfilter" ,r-annotationfilter)
10032 ("r-biobase" ,r-biobase)
10033 ("r-biocgenerics" ,r-biocgenerics)
10034 ("r-biostrings" ,r-biostrings)
10035 ("r-biovizbase" ,r-biovizbase)
10036 ("r-bsgenome" ,r-bsgenome)
10037 ("r-ensembldb" ,r-ensembldb)
10038 ("r-genomeinfodb" ,r-genomeinfodb)
10039 ("r-genomicalignments" ,r-genomicalignments)
10040 ("r-genomicfeatures" ,r-genomicfeatures)
10041 ("r-genomicranges" ,r-genomicranges)
10042 ("r-ggally" ,r-ggally)
10043 ("r-ggplot2" ,r-ggplot2)
10044 ("r-gridextra" ,r-gridextra)
10045 ("r-gtable" ,r-gtable)
10046 ("r-hmisc" ,r-hmisc)
10047 ("r-iranges" ,r-iranges)
10048 ("r-organismdbi" ,r-organismdbi)
10049 ("r-reshape2" ,r-reshape2)
10050 ("r-rlang" ,r-rlang)
10051 ("r-rsamtools" ,r-rsamtools)
10052 ("r-rtracklayer" ,r-rtracklayer)
10053 ("r-s4vectors" ,r-s4vectors)
10054 ("r-scales" ,r-scales)
10055 ("r-summarizedexperiment" ,r-summarizedexperiment)
10056 ("r-variantannotation" ,r-variantannotation)))
10057 (home-page "http://www.tengfei.name/ggbio/")
10058 (synopsis "Visualization tools for genomic data")
10059 (description
10060 "The ggbio package extends and specializes the grammar of graphics for
10061 biological data. The graphics are designed to answer common scientific
10062 questions, in particular those often asked of high throughput genomics data.
10063 All core Bioconductor data structures are supported, where appropriate. The
10064 package supports detailed views of particular genomic regions, as well as
10065 genome-wide overviews. Supported overviews include ideograms and grand linear
10066 views. High-level plots include sequence fragment length, edge-linked
10067 interval to data view, mismatch pileup, and several splicing summaries.")
10068 (license license:artistic2.0)))
10069
10070 (define-public r-gprofiler
10071 (package
10072 (name "r-gprofiler")
10073 (version "0.7.0")
10074 (source
10075 (origin
10076 (method url-fetch)
10077 (uri (cran-uri "gProfileR" version))
10078 (sha256
10079 (base32
10080 "1h1v0kgpsn04ald2izznh7fr2riwisj5hcgz4k7h3qc931rf0r4k"))))
10081 (properties `((upstream-name . "gProfileR")))
10082 (build-system r-build-system)
10083 (propagated-inputs
10084 `(("r-plyr" ,r-plyr)
10085 ("r-rcurl" ,r-rcurl)))
10086 (home-page "https://cran.r-project.org/web/packages/gProfileR/")
10087 (synopsis "Interface to the g:Profiler toolkit")
10088 (description
10089 "This package provides tools for functional enrichment analysis,
10090 gene identifier conversion and mapping homologous genes across related
10091 organisms via the @code{g:Profiler} toolkit.")
10092 (license license:gpl2+)))
10093
10094 (define-public r-gqtlbase
10095 (package
10096 (name "r-gqtlbase")
10097 (version "1.18.0")
10098 (source
10099 (origin
10100 (method url-fetch)
10101 (uri (bioconductor-uri "gQTLBase" version))
10102 (sha256
10103 (base32
10104 "1qr8dqjbmj1mdjbzbnxwzfrm8f02wqfsgic8ws5kv7pmsby63y4x"))))
10105 (properties `((upstream-name . "gQTLBase")))
10106 (build-system r-build-system)
10107 (propagated-inputs
10108 `(("r-batchjobs" ,r-batchjobs)
10109 ("r-bbmisc" ,r-bbmisc)
10110 ("r-biocgenerics" ,r-biocgenerics)
10111 ("r-bit" ,r-bit)
10112 ("r-doparallel" ,r-doparallel)
10113 ("r-ff" ,r-ff)
10114 ("r-ffbase" ,r-ffbase)
10115 ("r-foreach" ,r-foreach)
10116 ("r-genomicfiles" ,r-genomicfiles)
10117 ("r-genomicranges" ,r-genomicranges)
10118 ("r-rtracklayer" ,r-rtracklayer)
10119 ("r-s4vectors" ,r-s4vectors)
10120 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10121 (home-page "https://bioconductor.org/packages/gQTLBase")
10122 (synopsis "Infrastructure for eQTL, mQTL and similar studies")
10123 (description
10124 "The purpose of this package is to simplify the storage and interrogation
10125 of @dfn{quantitative trait loci} (QTL) archives, such as eQTL, mQTL, dsQTL,
10126 and more.")
10127 (license license:artistic2.0)))
10128
10129 (define-public r-snpstats
10130 (package
10131 (name "r-snpstats")
10132 (version "1.36.0")
10133 (source
10134 (origin
10135 (method url-fetch)
10136 (uri (bioconductor-uri "snpStats" version))
10137 (sha256
10138 (base32
10139 "1xq1rjljg70h5mshdza56dis0iv1a20sivs6dav3w5jbdd1l5qkh"))))
10140 (properties `((upstream-name . "snpStats")))
10141 (build-system r-build-system)
10142 (inputs `(("zlib" ,zlib)))
10143 (propagated-inputs
10144 `(("r-biocgenerics" ,r-biocgenerics)
10145 ("r-matrix" ,r-matrix)
10146 ("r-survival" ,r-survival)
10147 ("r-zlibbioc" ,r-zlibbioc)))
10148 (home-page "https://bioconductor.org/packages/snpStats")
10149 (synopsis "Methods for SNP association studies")
10150 (description
10151 "This package provides classes and statistical methods for large
10152 @dfn{single-nucleotide polymorphism} (SNP) association studies. This extends
10153 the earlier snpMatrix package, allowing for uncertainty in genotypes.")
10154 (license license:gpl3)))
10155
10156 (define-public r-homo-sapiens
10157 (package
10158 (name "r-homo-sapiens")
10159 (version "1.3.1")
10160 (source (origin
10161 (method url-fetch)
10162 ;; We cannot use bioconductor-uri here because this tarball is
10163 ;; located under "data/annotation/" instead of "bioc/".
10164 (uri (string-append "http://www.bioconductor.org/packages/"
10165 "release/data/annotation/src/contrib/"
10166 "Homo.sapiens_"
10167 version ".tar.gz"))
10168 (sha256
10169 (base32
10170 "151vj7h5p1c8yd5swrchk46z469p135wk50hvkl0nhgndvy0jj01"))))
10171 (properties
10172 `((upstream-name . "Homo.sapiens")))
10173 (build-system r-build-system)
10174 (propagated-inputs
10175 `(("r-genomicfeatures" ,r-genomicfeatures)
10176 ("r-go-db" ,r-go-db)
10177 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
10178 ("r-txdb-hsapiens-ucsc-hg19-knowngene" ,r-txdb-hsapiens-ucsc-hg19-knowngene)
10179 ("r-organismdbi" ,r-organismdbi)
10180 ("r-annotationdbi" ,r-annotationdbi)))
10181 (home-page "https://bioconductor.org/packages/Homo.sapiens/")
10182 (synopsis "Annotation package for the Homo.sapiens object")
10183 (description
10184 "This package contains the Homo.sapiens object to access data from
10185 several related annotation packages.")
10186 (license license:artistic2.0)))
10187
10188 (define-public r-erma
10189 (package
10190 (name "r-erma")
10191 (version "1.2.0")
10192 (source
10193 (origin
10194 (method url-fetch)
10195 (uri (bioconductor-uri "erma" version))
10196 (sha256
10197 (base32
10198 "085qsr73p8nyp435f15l4l1jkfd64bfd9gl4z496nfxdnqn95srz"))))
10199 (build-system r-build-system)
10200 (propagated-inputs
10201 `(("r-annotationdbi" ,r-annotationdbi)
10202 ("r-biobase" ,r-biobase)
10203 ("r-biocgenerics" ,r-biocgenerics)
10204 ("r-biocparallel" ,r-biocparallel)
10205 ("r-genomeinfodb" ,r-genomeinfodb)
10206 ("r-genomicfiles" ,r-genomicfiles)
10207 ("r-genomicranges" ,r-genomicranges)
10208 ("r-ggplot2" ,r-ggplot2)
10209 ("r-homo-sapiens" ,r-homo-sapiens)
10210 ("r-iranges" ,r-iranges)
10211 ("r-rtracklayer" ,r-rtracklayer)
10212 ("r-s4vectors" ,r-s4vectors)
10213 ("r-shiny" ,r-shiny)
10214 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10215 (home-page "https://bioconductor.org/packages/erma")
10216 (synopsis "Epigenomic road map adventures")
10217 (description
10218 "The epigenomics road map describes locations of epigenetic marks in DNA
10219 from a variety of cell types. Of interest are locations of histone
10220 modifications, sites of DNA methylation, and regions of accessible chromatin.
10221 This package presents a selection of elements of the road map including
10222 metadata and outputs of the ChromImpute procedure applied to ENCODE cell lines
10223 by Ernst and Kellis.")
10224 (license license:artistic2.0)))
10225
10226 (define-public r-ldblock
10227 (package
10228 (name "r-ldblock")
10229 (version "1.16.0")
10230 (source
10231 (origin
10232 (method url-fetch)
10233 (uri (bioconductor-uri "ldblock" version))
10234 (sha256
10235 (base32
10236 "0xpigfidmylfawy6vzshqnsw1lzjs4qms8q7zffij6bkvkv7920x"))))
10237 (build-system r-build-system)
10238 (propagated-inputs
10239 `(("r-biocgenerics" ,r-biocgenerics)
10240 ("r-ensdb-hsapiens-v75" ,r-ensdb-hsapiens-v75)
10241 ("r-ensembldb" ,r-ensembldb)
10242 ("r-genomeinfodb" ,r-genomeinfodb)
10243 ("r-genomicfiles" ,r-genomicfiles)
10244 ("r-httr" ,r-httr)
10245 ("r-matrix" ,r-matrix)
10246 ("r-rsamtools" ,r-rsamtools)
10247 ("r-snpstats" ,r-snpstats)
10248 ("r-variantannotation" ,r-variantannotation)))
10249 (home-page "https://bioconductor.org/packages/ldblock")
10250 (synopsis "Data structures for linkage disequilibrium measures in populations")
10251 (description
10252 "This package defines data structures for @dfn{linkage
10253 disequilibrium} (LD) measures in populations. Its purpose is to simplify
10254 handling of existing population-level data for the purpose of flexibly
10255 defining LD blocks.")
10256 (license license:artistic2.0)))
10257
10258 (define-public r-gqtlstats
10259 (package
10260 (name "r-gqtlstats")
10261 (version "1.18.0")
10262 (source
10263 (origin
10264 (method url-fetch)
10265 (uri (bioconductor-uri "gQTLstats" version))
10266 (sha256
10267 (base32
10268 "1dly4p9r4231hf31xg1nzqiyvjbcfjljfmhb88ic1jxwnvniyv2f"))))
10269 (properties `((upstream-name . "gQTLstats")))
10270 (build-system r-build-system)
10271 (propagated-inputs
10272 `(("r-annotationdbi" ,r-annotationdbi)
10273 ("r-batchjobs" ,r-batchjobs)
10274 ("r-bbmisc" ,r-bbmisc)
10275 ("r-beeswarm" ,r-beeswarm)
10276 ("r-biobase" ,r-biobase)
10277 ("r-biocgenerics" ,r-biocgenerics)
10278 ("r-doparallel" ,r-doparallel)
10279 ("r-dplyr" ,r-dplyr)
10280 ("r-erma" ,r-erma)
10281 ("r-ffbase" ,r-ffbase)
10282 ("r-foreach" ,r-foreach)
10283 ("r-genomeinfodb" ,r-genomeinfodb)
10284 ("r-genomicfeatures" ,r-genomicfeatures)
10285 ("r-genomicfiles" ,r-genomicfiles)
10286 ("r-genomicranges" ,r-genomicranges)
10287 ("r-ggbeeswarm" ,r-ggbeeswarm)
10288 ("r-ggplot2" ,r-ggplot2)
10289 ("r-gqtlbase" ,r-gqtlbase)
10290 ("r-hardyweinberg" ,r-hardyweinberg)
10291 ("r-homo-sapiens" ,r-homo-sapiens)
10292 ("r-iranges" ,r-iranges)
10293 ("r-limma" ,r-limma)
10294 ("r-mgcv" ,r-mgcv)
10295 ("r-plotly" ,r-plotly)
10296 ("r-reshape2" ,r-reshape2)
10297 ("r-s4vectors" ,r-s4vectors)
10298 ("r-shiny" ,r-shiny)
10299 ("r-snpstats" ,r-snpstats)
10300 ("r-summarizedexperiment" ,r-summarizedexperiment)
10301 ("r-variantannotation" ,r-variantannotation)))
10302 (home-page "https://bioconductor.org/packages/gQTLstats")
10303 (synopsis "Computationally efficient analysis for eQTL and allied studies")
10304 (description
10305 "This package provides tools for the computationally efficient analysis
10306 of @dfn{quantitative trait loci} (QTL) data, including eQTL, mQTL, dsQTL, etc.
10307 The software in this package aims to support refinements and functional
10308 interpretation of members of a collection of association statistics on a
10309 family of feature/genome hypotheses.")
10310 (license license:artistic2.0)))
10311
10312 (define-public r-gviz
10313 (package
10314 (name "r-gviz")
10315 (version "1.30.0")
10316 (source
10317 (origin
10318 (method url-fetch)
10319 (uri (bioconductor-uri "Gviz" version))
10320 (sha256
10321 (base32
10322 "1p7n4yc77272rd8ybsim3rcg6kf6wmc95pwwav40b754imxn263z"))))
10323 (properties `((upstream-name . "Gviz")))
10324 (build-system r-build-system)
10325 (propagated-inputs
10326 `(("r-annotationdbi" ,r-annotationdbi)
10327 ("r-biobase" ,r-biobase)
10328 ("r-biocgenerics" ,r-biocgenerics)
10329 ("r-biomart" ,r-biomart)
10330 ("r-biostrings" ,r-biostrings)
10331 ("r-biovizbase" ,r-biovizbase)
10332 ("r-bsgenome" ,r-bsgenome)
10333 ("r-digest" ,r-digest)
10334 ("r-genomeinfodb" ,r-genomeinfodb)
10335 ("r-genomicalignments" ,r-genomicalignments)
10336 ("r-genomicfeatures" ,r-genomicfeatures)
10337 ("r-genomicranges" ,r-genomicranges)
10338 ("r-iranges" ,r-iranges)
10339 ("r-lattice" ,r-lattice)
10340 ("r-latticeextra" ,r-latticeextra)
10341 ("r-matrixstats" ,r-matrixstats)
10342 ("r-rcolorbrewer" ,r-rcolorbrewer)
10343 ("r-rsamtools" ,r-rsamtools)
10344 ("r-rtracklayer" ,r-rtracklayer)
10345 ("r-s4vectors" ,r-s4vectors)
10346 ("r-xvector" ,r-xvector)))
10347 (home-page "https://bioconductor.org/packages/Gviz")
10348 (synopsis "Plotting data and annotation information along genomic coordinates")
10349 (description
10350 "Genomic data analyses requires integrated visualization of known genomic
10351 information and new experimental data. Gviz uses the biomaRt and the
10352 rtracklayer packages to perform live annotation queries to Ensembl and UCSC
10353 and translates this to e.g. gene/transcript structures in viewports of the
10354 grid graphics package. This results in genomic information plotted together
10355 with your data.")
10356 (license license:artistic2.0)))
10357
10358 (define-public r-gwascat
10359 (package
10360 (name "r-gwascat")
10361 (version "2.18.0")
10362 (source
10363 (origin
10364 (method url-fetch)
10365 (uri (bioconductor-uri "gwascat" version))
10366 (sha256
10367 (base32
10368 "038vhfsk2vs7inn5di093cmjbb81k7j0af385sg7l01jj70bdqq1"))))
10369 (build-system r-build-system)
10370 (propagated-inputs
10371 `(("r-annotationdbi" ,r-annotationdbi)
10372 ("r-biocgenerics" ,r-biocgenerics)
10373 ("r-biostrings" ,r-biostrings)
10374 ("r-genomeinfodb" ,r-genomeinfodb)
10375 ("r-genomicfeatures" ,r-genomicfeatures)
10376 ("r-genomicranges" ,r-genomicranges)
10377 ("r-homo-sapiens" ,r-homo-sapiens)
10378 ("r-iranges" ,r-iranges)
10379 ("r-rsamtools" ,r-rsamtools)
10380 ("r-rtracklayer" ,r-rtracklayer)
10381 ("r-s4vectors" ,r-s4vectors)))
10382 (home-page "https://bioconductor.org/packages/gwascat")
10383 (synopsis "Tools for data in the EMBL-EBI GWAS catalog")
10384 (description
10385 "This package provides tools for representing and modeling data in the
10386 EMBL-EBI GWAS catalog.")
10387 (license license:artistic2.0)))
10388
10389 (define-public r-sushi
10390 (package
10391 (name "r-sushi")
10392 (version "1.24.0")
10393 (source (origin
10394 (method url-fetch)
10395 (uri (bioconductor-uri "Sushi" version))
10396 (sha256
10397 (base32
10398 "15xng21hd09fb234ravrry3b872zg82w8x9lijxab9n96xihcpz5"))))
10399 (properties `((upstream-name . "Sushi")))
10400 (build-system r-build-system)
10401 (propagated-inputs
10402 `(("r-biomart" ,r-biomart)
10403 ("r-zoo" ,r-zoo)))
10404 (home-page "https://bioconductor.org/packages/Sushi")
10405 (synopsis "Tools for visualizing genomics data")
10406 (description
10407 "This package provides flexible, quantitative, and integrative genomic
10408 visualizations for publication-quality multi-panel figures.")
10409 (license license:gpl2+)))
10410
10411 (define-public r-fithic
10412 (package
10413 (name "r-fithic")
10414 (version "1.12.0")
10415 (source (origin
10416 (method url-fetch)
10417 (uri (bioconductor-uri "FitHiC" version))
10418 (sha256
10419 (base32
10420 "1irwkwi4afdj395134k31mvx7c2vpdd0rv8zrblnldascdsb04kc"))))
10421 (properties `((upstream-name . "FitHiC")))
10422 (build-system r-build-system)
10423 (propagated-inputs
10424 `(("r-data-table" ,r-data-table)
10425 ("r-fdrtool" ,r-fdrtool)
10426 ("r-rcpp" ,r-rcpp)))
10427 (home-page "https://bioconductor.org/packages/FitHiC")
10428 (synopsis "Confidence estimation for intra-chromosomal contact maps")
10429 (description
10430 "Fit-Hi-C is a tool for assigning statistical confidence estimates to
10431 intra-chromosomal contact maps produced by genome-wide genome architecture
10432 assays such as Hi-C.")
10433 (license license:gpl2+)))
10434
10435 (define-public r-hitc
10436 (package
10437 (name "r-hitc")
10438 (version "1.30.0")
10439 (source (origin
10440 (method url-fetch)
10441 (uri (bioconductor-uri "HiTC" version))
10442 (sha256
10443 (base32
10444 "0byahi0fz0dzjyklz8v9whax9ygg7gwb4pl1j3zbl6z8a9qx8pps"))))
10445 (properties `((upstream-name . "HiTC")))
10446 (build-system r-build-system)
10447 (propagated-inputs
10448 `(("r-biostrings" ,r-biostrings)
10449 ("r-genomeinfodb" ,r-genomeinfodb)
10450 ("r-genomicranges" ,r-genomicranges)
10451 ("r-iranges" ,r-iranges)
10452 ("r-matrix" ,r-matrix)
10453 ("r-rcolorbrewer" ,r-rcolorbrewer)
10454 ("r-rtracklayer" ,r-rtracklayer)))
10455 (home-page "https://bioconductor.org/packages/HiTC")
10456 (synopsis "High throughput chromosome conformation capture analysis")
10457 (description
10458 "The HiTC package was developed to explore high-throughput \"C\" data
10459 such as 5C or Hi-C. Dedicated R classes as well as standard methods for
10460 quality controls, normalization, visualization, and further analysis are also
10461 provided.")
10462 (license license:artistic2.0)))
10463
10464 (define-public r-hdf5array
10465 (package
10466 (name "r-hdf5array")
10467 (version "1.14.1")
10468 (source
10469 (origin
10470 (method url-fetch)
10471 (uri (bioconductor-uri "HDF5Array" version))
10472 (sha256
10473 (base32
10474 "04hd02zd5jix5p2zg10asmwjg1fynqgmclbhbmk7fb6arx5hm11f"))))
10475 (properties `((upstream-name . "HDF5Array")))
10476 (build-system r-build-system)
10477 (inputs
10478 `(("zlib" ,zlib)))
10479 (propagated-inputs
10480 `(("r-biocgenerics" ,r-biocgenerics)
10481 ("r-delayedarray" ,r-delayedarray)
10482 ("r-iranges" ,r-iranges)
10483 ("r-matrix" ,r-matrix)
10484 ("r-rhdf5" ,r-rhdf5)
10485 ("r-rhdf5lib" ,r-rhdf5lib)
10486 ("r-s4vectors" ,r-s4vectors)))
10487 (home-page "https://bioconductor.org/packages/HDF5Array")
10488 (synopsis "HDF5 back end for DelayedArray objects")
10489 (description "This package provides an array-like container for convenient
10490 access and manipulation of HDF5 datasets. It supports delayed operations and
10491 block processing.")
10492 (license license:artistic2.0)))
10493
10494 (define-public r-rhdf5lib
10495 (package
10496 (name "r-rhdf5lib")
10497 (version "1.8.0")
10498 (source
10499 (origin
10500 (method url-fetch)
10501 (uri (bioconductor-uri "Rhdf5lib" version))
10502 (sha256
10503 (base32
10504 "17lhwnm9rqsvbqkvwp0m07vjrk63a4389p2y39zffv8fgznxqzd7"))
10505 (modules '((guix build utils)))
10506 (snippet
10507 '(begin
10508 ;; Delete bundled binaries
10509 (delete-file-recursively "src/winlib/")
10510 #t))))
10511 (properties `((upstream-name . "Rhdf5lib")))
10512 (build-system r-build-system)
10513 (arguments
10514 `(#:phases
10515 (modify-phases %standard-phases
10516 (add-after 'unpack 'do-not-use-bundled-hdf5
10517 (lambda* (#:key inputs #:allow-other-keys)
10518 (for-each delete-file '("configure" "configure.ac"))
10519 ;; Do not make other packages link with the proprietary libsz.
10520 (substitute* "R/zzz.R"
10521 (("'\"%s/libhdf5.a\" \"%s/libsz.a\" -lz'")
10522 "'\"%s/libhdf5.a\" \"%s/libhdf5.a\" -lz'")
10523 (("'\"%s/libhdf5_cpp.a\" \"%s/libhdf5.a\" \"%s/libsz.a\" -lz'")
10524 "'\"%s/libhdf5_cpp.a\" \"%s/libhdf5.a\" \"%s/libhdf5.a\" -lz'")
10525 (("'%s/libhdf5_hl.a %s/libhdf5.a %s/libsz.a -lz'")
10526 "'%s/libhdf5_hl.a %s/libhdf5.a %s/libhdf5.a -lz'")
10527 (("'%s/libhdf5_hl_cpp.a %s/libhdf5_hl.a %s/libhdf5_cpp.a %s/libhdf5.a %s/libsz.a -lz'")
10528 "'%s/libhdf5_hl_cpp.a %s/libhdf5_hl.a %s/libhdf5_cpp.a %s/libhdf5.a %s/libhdf5.a -lz'"))
10529 (with-directory-excursion "src"
10530 (invoke "tar" "xvf" (assoc-ref inputs "hdf5-source"))
10531 (rename-file (string-append "hdf5-" ,(package-version hdf5-1.10))
10532 "hdf5")
10533 ;; Remove timestamp and host system information to make
10534 ;; the build reproducible.
10535 (substitute* "hdf5/src/libhdf5.settings.in"
10536 (("Configured on: @CONFIG_DATE@")
10537 "Configured on: Guix")
10538 (("Uname information:.*")
10539 "Uname information: Linux\n")
10540 ;; Remove unnecessary store reference.
10541 (("C Compiler:.*")
10542 "C Compiler: GCC\n"))
10543 (rename-file "Makevars.in" "Makevars")
10544 (substitute* "Makevars"
10545 (("HDF5_CXX_LIB=.*")
10546 (string-append "HDF5_CXX_LIB="
10547 (assoc-ref inputs "hdf5") "/lib/libhdf5_cpp.a\n"))
10548 (("HDF5_LIB=.*")
10549 (string-append "HDF5_LIB="
10550 (assoc-ref inputs "hdf5") "/lib/libhdf5.a\n"))
10551 (("HDF5_CXX_INCLUDE=.*") "HDF5_CXX_INCLUDE=./hdf5/c++/src\n")
10552 (("HDF5_INCLUDE=.*") "HDF5_INCLUDE=./hdf5/src\n")
10553 (("HDF5_HL_INCLUDE=.*") "HDF5_HL_INCLUDE=./hdf5/hl/src\n")
10554 (("HDF5_HL_CXX_INCLUDE=.*") "HDF5_HL_CXX_INCLUDE=./hdf5/hl/c++/src\n")
10555 (("HDF5_HL_LIB=.*")
10556 (string-append "HDF5_HL_LIB="
10557 (assoc-ref inputs "hdf5") "/lib/libhdf5_hl.a\n"))
10558 (("HDF5_HL_CXX_LIB=.*")
10559 (string-append "HDF5_HL_CXX_LIB="
10560 (assoc-ref inputs "hdf5") "/lib/libhdf5_hl_cpp.a\n"))
10561 ;; szip is non-free software
10562 (("cp \"\\$\\{SZIP_LIB\\}.*") "")
10563 (("PKG_LIBS =.*") "PKG_LIBS = -lz -lhdf5\n")))
10564 #t)))))
10565 (inputs
10566 `(("zlib" ,zlib)))
10567 (propagated-inputs
10568 `(("hdf5" ,hdf5-1.10)))
10569 (native-inputs
10570 `(("hdf5-source" ,(package-source hdf5-1.10))))
10571 (home-page "https://bioconductor.org/packages/Rhdf5lib")
10572 (synopsis "HDF5 library as an R package")
10573 (description "This package provides C and C++ HDF5 libraries for use in R
10574 packages.")
10575 (license license:artistic2.0)))
10576
10577 (define-public r-beachmat
10578 (package
10579 (name "r-beachmat")
10580 (version "2.2.1")
10581 (source
10582 (origin
10583 (method url-fetch)
10584 (uri (bioconductor-uri "beachmat" version))
10585 (sha256
10586 (base32
10587 "1bpnlw2kdy9yc2vq948k980r0j25ipb80llhvn0j3kxjiwyfgs3i"))))
10588 (build-system r-build-system)
10589 (propagated-inputs
10590 `(("r-biocgenerics" ,r-biocgenerics)
10591 ("r-delayedarray" ,r-delayedarray)
10592 ("r-matrix" ,r-matrix)))
10593 (home-page "https://bioconductor.org/packages/beachmat")
10594 (synopsis "Compiling Bioconductor to handle each matrix type")
10595 (description "This package provides a consistent C++ class interface for a
10596 variety of commonly used matrix types, including sparse and HDF5-backed
10597 matrices.")
10598 (license license:gpl3)))
10599
10600 (define-public r-singlecellexperiment
10601 (package
10602 (name "r-singlecellexperiment")
10603 (version "1.8.0")
10604 (source
10605 (origin
10606 (method url-fetch)
10607 (uri (bioconductor-uri "SingleCellExperiment" version))
10608 (sha256
10609 (base32
10610 "11pqb3cigi9xbhxq2k3n7z23v1ibd03ws1lcrh5c5ffgb33nlyw5"))))
10611 (properties
10612 `((upstream-name . "SingleCellExperiment")))
10613 (build-system r-build-system)
10614 (propagated-inputs
10615 `(("r-biocgenerics" ,r-biocgenerics)
10616 ("r-s4vectors" ,r-s4vectors)
10617 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10618 (home-page "https://bioconductor.org/packages/SingleCellExperiment")
10619 (synopsis "S4 classes for single cell data")
10620 (description "This package defines an S4 class for storing data from
10621 single-cell experiments. This includes specialized methods to store and
10622 retrieve spike-in information, dimensionality reduction coordinates and size
10623 factors for each cell, along with the usual metadata for genes and
10624 libraries.")
10625 (license license:gpl3)))
10626
10627 (define-public r-scater
10628 (package
10629 (name "r-scater")
10630 (version "1.14.6")
10631 (source (origin
10632 (method url-fetch)
10633 (uri (bioconductor-uri "scater" version))
10634 (sha256
10635 (base32
10636 "0sxd1s8wdlj9926bagq4crjrk1nnmh3j3bhgrw160zfgc3y8pzck"))))
10637 (build-system r-build-system)
10638 (propagated-inputs
10639 `(("r-beachmat" ,r-beachmat)
10640 ("r-biocgenerics" ,r-biocgenerics)
10641 ("r-biocneighbors" ,r-biocneighbors)
10642 ("r-biocparallel" ,r-biocparallel)
10643 ("r-biocsingular" ,r-biocsingular)
10644 ("r-delayedarray" ,r-delayedarray)
10645 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
10646 ("r-ggbeeswarm" ,r-ggbeeswarm)
10647 ("r-ggplot2" ,r-ggplot2)
10648 ("r-matrix" ,r-matrix)
10649 ("r-rcpp" ,r-rcpp)
10650 ("r-s4vectors" ,r-s4vectors)
10651 ("r-singlecellexperiment" ,r-singlecellexperiment)
10652 ("r-summarizedexperiment" ,r-summarizedexperiment)
10653 ("r-viridis" ,r-viridis)))
10654 (home-page "https://github.com/davismcc/scater")
10655 (synopsis "Single-cell analysis toolkit for gene expression data in R")
10656 (description "This package provides a collection of tools for doing
10657 various analyses of single-cell RNA-seq gene expression data, with a focus on
10658 quality control.")
10659 (license license:gpl2+)))
10660
10661 (define-public r-scran
10662 (package
10663 (name "r-scran")
10664 (version "1.14.5")
10665 (source
10666 (origin
10667 (method url-fetch)
10668 (uri (bioconductor-uri "scran" version))
10669 (sha256
10670 (base32
10671 "0ydy6gvpgpvrs4ryk1qvmmxp6cpaizs294jwg42jawxndkds1l3y"))))
10672 (build-system r-build-system)
10673 (propagated-inputs
10674 `(("r-beachmat" ,r-beachmat)
10675 ("r-bh" ,r-bh)
10676 ("r-biocgenerics" ,r-biocgenerics)
10677 ("r-biocneighbors" ,r-biocneighbors)
10678 ("r-biocparallel" ,r-biocparallel)
10679 ("r-biocsingular" ,r-biocsingular)
10680 ("r-delayedarray" ,r-delayedarray)
10681 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
10682 ("r-dqrng" ,r-dqrng)
10683 ("r-edger" ,r-edger)
10684 ("r-igraph" ,r-igraph)
10685 ("r-limma" ,r-limma)
10686 ("r-matrix" ,r-matrix)
10687 ("r-rcpp" ,r-rcpp)
10688 ("r-s4vectors" ,r-s4vectors)
10689 ("r-scater" ,r-scater)
10690 ("r-singlecellexperiment" ,r-singlecellexperiment)
10691 ("r-statmod" ,r-statmod)
10692 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10693 (home-page "https://bioconductor.org/packages/scran")
10694 (synopsis "Methods for single-cell RNA-Seq data analysis")
10695 (description "This package implements a variety of low-level analyses of
10696 single-cell RNA-seq data. Methods are provided for normalization of
10697 cell-specific biases, assignment of cell cycle phase, and detection of highly
10698 variable and significantly correlated genes.")
10699 (license license:gpl3)))
10700
10701 (define-public r-delayedmatrixstats
10702 (package
10703 (name "r-delayedmatrixstats")
10704 (version "1.8.0")
10705 (source
10706 (origin
10707 (method url-fetch)
10708 (uri (bioconductor-uri "DelayedMatrixStats" version))
10709 (sha256
10710 (base32
10711 "0mv2rl6a6l404piabcazxz1s6ars016pxhjf5v40hhr6y1r0wbqy"))))
10712 (properties
10713 `((upstream-name . "DelayedMatrixStats")))
10714 (build-system r-build-system)
10715 (propagated-inputs
10716 `(("r-biocparallel" ,r-biocparallel)
10717 ("r-delayedarray" ,r-delayedarray)
10718 ("r-hdf5array" ,r-hdf5array)
10719 ("r-iranges" ,r-iranges)
10720 ("r-matrix" ,r-matrix)
10721 ("r-matrixstats" ,r-matrixstats)
10722 ("r-s4vectors" ,r-s4vectors)))
10723 (home-page "https://github.com/PeteHaitch/DelayedMatrixStats")
10724 (synopsis "Functions that apply to rows and columns of DelayedMatrix objects")
10725 (description
10726 "This package provides a port of the @code{matrixStats} API for use with
10727 @code{DelayedMatrix} objects from the @code{DelayedArray} package. It
10728 contains high-performing functions operating on rows and columns of
10729 @code{DelayedMatrix} objects, e.g. @code{colMedians}, @code{rowMedians},
10730 @code{colRanks}, @code{rowRanks}, @code{colSds}, and @code{rowSds}. Functions
10731 are optimized per data type and for subsetted calculations such that both
10732 memory usage and processing time is minimized.")
10733 (license license:expat)))
10734
10735 (define-public r-phangorn
10736 (package
10737 (name "r-phangorn")
10738 (version "2.5.5")
10739 (source
10740 (origin
10741 (method url-fetch)
10742 (uri (cran-uri "phangorn" version))
10743 (sha256
10744 (base32
10745 "0ihkaykqjmf80d8wrk3saphxvnv58zma6pd13633bd3cwanc33f5"))))
10746 (build-system r-build-system)
10747 (propagated-inputs
10748 `(("r-ape" ,r-ape)
10749 ("r-fastmatch" ,r-fastmatch)
10750 ("r-igraph" ,r-igraph)
10751 ("r-magrittr" ,r-magrittr)
10752 ("r-matrix" ,r-matrix)
10753 ("r-quadprog" ,r-quadprog)
10754 ("r-rcpp" ,r-rcpp)))
10755 (home-page "https://github.com/KlausVigo/phangorn")
10756 (synopsis "Phylogenetic analysis in R")
10757 (description
10758 "Phangorn is a package for phylogenetic analysis in R. It supports
10759 estimation of phylogenetic trees and networks using Maximum Likelihood,
10760 Maximum Parsimony, distance methods and Hadamard conjugation.")
10761 (license license:gpl2+)))
10762
10763 (define-public r-dropbead
10764 (let ((commit "d746c6f3b32110428ea56d6a0001ce52a251c247")
10765 (revision "2"))
10766 (package
10767 (name "r-dropbead")
10768 (version (string-append "0-" revision "." (string-take commit 7)))
10769 (source
10770 (origin
10771 (method git-fetch)
10772 (uri (git-reference
10773 (url "https://github.com/rajewsky-lab/dropbead.git")
10774 (commit commit)))
10775 (file-name (git-file-name name version))
10776 (sha256
10777 (base32
10778 "0sbzma49aiiyw8b0jpr7fnhzys9nsqmp4hy4hdz1gzyg1lhnca26"))))
10779 (build-system r-build-system)
10780 (propagated-inputs
10781 `(("r-ggplot2" ,r-ggplot2)
10782 ("r-rcolorbrewer" ,r-rcolorbrewer)
10783 ("r-gridextra" ,r-gridextra)
10784 ("r-gplots" ,r-gplots)
10785 ("r-plyr" ,r-plyr)))
10786 (home-page "https://github.com/rajewsky-lab/dropbead")
10787 (synopsis "Basic exploration and analysis of Drop-seq data")
10788 (description "This package offers a quick and straight-forward way to
10789 explore and perform basic analysis of single cell sequencing data coming from
10790 droplet sequencing. It has been particularly tailored for Drop-seq.")
10791 (license license:gpl3))))
10792
10793 (define htslib-for-sambamba
10794 (let ((commit "2f3c3ea7b301f9b45737a793c0b2dcf0240e5ee5"))
10795 (package
10796 (inherit htslib)
10797 (name "htslib-for-sambamba")
10798 (version (string-append "1.3.1-1." (string-take commit 9)))
10799 (source
10800 (origin
10801 (method git-fetch)
10802 (uri (git-reference
10803 (url "https://github.com/lomereiter/htslib.git")
10804 (commit commit)))
10805 (file-name (string-append "htslib-" version "-checkout"))
10806 (sha256
10807 (base32
10808 "0g38g8s3npr0gjm9fahlbhiskyfws9l5i0x1ml3rakzj7az5l9c9"))))
10809 (native-inputs
10810 `(("autoconf" ,autoconf)
10811 ("automake" ,automake)
10812 ,@(package-native-inputs htslib))))))
10813
10814 (define-public sambamba
10815 (package
10816 (name "sambamba")
10817 (version "0.6.8")
10818 (source
10819 (origin
10820 (method git-fetch)
10821 (uri (git-reference
10822 (url "https://github.com/lomereiter/sambamba.git")
10823 (commit (string-append "v" version))))
10824 (file-name (string-append name "-" version "-checkout"))
10825 (sha256
10826 (base32
10827 "0k0cz3qcv98p6cq09zlbgnjsggxcqbcmzxg5zikgcgbr2nfq4lry"))))
10828 (build-system gnu-build-system)
10829 (arguments
10830 `(#:tests? #f ; there is no test target
10831 #:parallel-build? #f ; not supported
10832 #:phases
10833 (modify-phases %standard-phases
10834 (delete 'configure)
10835 (add-after 'unpack 'fix-ldc-version
10836 (lambda _
10837 (substitute* "gen_ldc_version_info.py"
10838 (("/usr/bin/env.*") (which "python3")))
10839 (substitute* "Makefile"
10840 ;; We use ldc2 instead of ldmd2 to compile sambamba.
10841 (("\\$\\(shell which ldmd2\\)") (which "ldc2")))
10842 #t))
10843 (add-after 'unpack 'place-biod-and-undead
10844 (lambda* (#:key inputs #:allow-other-keys)
10845 (copy-recursively (assoc-ref inputs "biod") "BioD")
10846 (copy-recursively (assoc-ref inputs "undead") "undeaD")
10847 #t))
10848 (add-after 'unpack 'unbundle-prerequisites
10849 (lambda _
10850 (substitute* "Makefile"
10851 (("htslib/libhts.a lz4/lib/liblz4.a")
10852 "-L-lhts -L-llz4")
10853 ((" lz4-static htslib-static") ""))
10854 #t))
10855 (replace 'install
10856 (lambda* (#:key outputs #:allow-other-keys)
10857 (let* ((out (assoc-ref outputs "out"))
10858 (bin (string-append out "/bin")))
10859 (mkdir-p bin)
10860 (install-file "bin/sambamba" bin)
10861 #t))))))
10862 (native-inputs
10863 `(("ldc" ,ldc)
10864 ("rdmd" ,rdmd)
10865 ("python" ,python)
10866 ("biod"
10867 ,(let ((commit "4f1a7d2fb7ef3dfe962aa357d672f354ebfbe42e"))
10868 (origin
10869 (method git-fetch)
10870 (uri (git-reference
10871 (url "https://github.com/biod/BioD.git")
10872 (commit commit)))
10873 (file-name (string-append "biod-"
10874 (string-take commit 9)
10875 "-checkout"))
10876 (sha256
10877 (base32
10878 "1k5pdjv1qvi0a3rwd1sfq6zbj37l86i7bf710m4c0y6737lxj426")))))
10879 ("undead"
10880 ,(let ((commit "9be93876982b5f14fcca60832563b3cd767dd84d"))
10881 (origin
10882 (method git-fetch)
10883 (uri (git-reference
10884 (url "https://github.com/biod/undeaD.git")
10885 (commit commit)))
10886 (file-name (string-append "undead-"
10887 (string-take commit 9)
10888 "-checkout"))
10889 (sha256
10890 (base32
10891 "1xfarj0nqlmi5jd1vmcmm7pabzaf9hxyvk6hp0d6jslb5k9r8r3d")))))))
10892 (inputs
10893 `(("lz4" ,lz4)
10894 ("htslib" ,htslib-for-sambamba)))
10895 (home-page "http://lomereiter.github.io/sambamba")
10896 (synopsis "Tools for working with SAM/BAM data")
10897 (description "Sambamba is a high performance modern robust and
10898 fast tool (and library), written in the D programming language, for
10899 working with SAM and BAM files. Current parallelised functionality is
10900 an important subset of samtools functionality, including view, index,
10901 sort, markdup, and depth.")
10902 (license license:gpl2+)))
10903
10904 (define-public ritornello
10905 (package
10906 (name "ritornello")
10907 (version "2.0.1")
10908 (source (origin
10909 (method git-fetch)
10910 (uri (git-reference
10911 (url "https://github.com/KlugerLab/Ritornello.git")
10912 (commit (string-append "v" version))))
10913 (file-name (git-file-name name version))
10914 (sha256
10915 (base32
10916 "1xahvq215qld7x1w8vpa5zbrsj6p9crb9shqa2x89sb0aaxa02jk"))))
10917 (build-system gnu-build-system)
10918 (arguments
10919 `(#:tests? #f ; there are no tests
10920 #:phases
10921 (modify-phases %standard-phases
10922 (add-after 'unpack 'patch-samtools-references
10923 (lambda* (#:key inputs #:allow-other-keys)
10924 (substitute* '("src/SamStream.h"
10925 "src/FLD.cpp")
10926 (("<sam.h>") "<samtools/sam.h>"))
10927 #t))
10928 (delete 'configure)
10929 (replace 'install
10930 (lambda* (#:key inputs outputs #:allow-other-keys)
10931 (let* ((out (assoc-ref outputs "out"))
10932 (bin (string-append out "/bin/")))
10933 (mkdir-p bin)
10934 (install-file "bin/Ritornello" bin)
10935 #t))))))
10936 (inputs
10937 `(("samtools" ,samtools-0.1)
10938 ("fftw" ,fftw)
10939 ("boost" ,boost)
10940 ("zlib" ,zlib)))
10941 (home-page "https://github.com/KlugerLab/Ritornello")
10942 (synopsis "Control-free peak caller for ChIP-seq data")
10943 (description "Ritornello is a ChIP-seq peak calling algorithm based on
10944 signal processing that can accurately call binding events without the need to
10945 do a pair total DNA input or IgG control sample. It has been tested for use
10946 with narrow binding events such as transcription factor ChIP-seq.")
10947 (license license:gpl3+)))
10948
10949 (define-public trim-galore
10950 (package
10951 (name "trim-galore")
10952 (version "0.6.1")
10953 (source
10954 (origin
10955 (method git-fetch)
10956 (uri (git-reference
10957 (url "https://github.com/FelixKrueger/TrimGalore.git")
10958 (commit version)))
10959 (file-name (git-file-name name version))
10960 (sha256
10961 (base32
10962 "1y31wbxwkm9xqzr5zv1pk5q418whnmlmgmfyxxpnl12h83m2i9iv"))))
10963 (build-system gnu-build-system)
10964 (arguments
10965 `(#:tests? #f ; no tests
10966 #:phases
10967 (modify-phases %standard-phases
10968 (replace 'configure
10969 (lambda _
10970 ;; Trim Galore tries to figure out what version of Python
10971 ;; cutadapt is using by looking at the shebang. Of course that
10972 ;; doesn't work, because cutadapt is wrapped in a shell script.
10973 (substitute* "trim_galore"
10974 (("my \\$python_return.*")
10975 "my $python_return = \"Python 3.999\";\n"))
10976 #t))
10977 (delete 'build)
10978 (add-after 'unpack 'hardcode-tool-references
10979 (lambda* (#:key inputs #:allow-other-keys)
10980 (substitute* "trim_galore"
10981 (("\\$path_to_cutadapt = 'cutadapt'")
10982 (string-append "$path_to_cutadapt = '"
10983 (assoc-ref inputs "cutadapt")
10984 "/bin/cutadapt'"))
10985 (("\\$compression_path = \"gzip\"")
10986 (string-append "$compression_path = \""
10987 (assoc-ref inputs "gzip")
10988 "/bin/gzip\""))
10989 (("\"gunzip")
10990 (string-append "\""
10991 (assoc-ref inputs "gzip")
10992 "/bin/gunzip"))
10993 (("\"pigz")
10994 (string-append "\""
10995 (assoc-ref inputs "pigz")
10996 "/bin/pigz")))
10997 #t))
10998 (replace 'install
10999 (lambda* (#:key outputs #:allow-other-keys)
11000 (let ((bin (string-append (assoc-ref outputs "out")
11001 "/bin")))
11002 (mkdir-p bin)
11003 (install-file "trim_galore" bin)
11004 #t))))))
11005 (inputs
11006 `(("gzip" ,gzip)
11007 ("perl" ,perl)
11008 ("pigz" ,pigz)
11009 ("cutadapt" ,cutadapt)))
11010 (native-inputs
11011 `(("unzip" ,unzip)))
11012 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/trim_galore/")
11013 (synopsis "Wrapper around Cutadapt and FastQC")
11014 (description "Trim Galore! is a wrapper script to automate quality and
11015 adapter trimming as well as quality control, with some added functionality to
11016 remove biased methylation positions for RRBS sequence files.")
11017 (license license:gpl3+)))
11018
11019 (define-public gess
11020 (package
11021 (name "gess")
11022 (version "1.0")
11023 (source (origin
11024 (method url-fetch)
11025 (uri (string-append "http://compbio.uthscsa.edu/"
11026 "GESS_Web/files/"
11027 "gess-" version ".src.tar.gz"))
11028 (sha256
11029 (base32
11030 "0hyk403kxscclzfs24pvdgiv0wm03kjcziqdrp5w46cb049gz0d7"))))
11031 (build-system gnu-build-system)
11032 (arguments
11033 `(#:tests? #f ; no tests
11034 #:phases
11035 (modify-phases %standard-phases
11036 (delete 'configure)
11037 (delete 'build)
11038 (replace 'install
11039 (lambda* (#:key inputs outputs #:allow-other-keys)
11040 (let* ((python (assoc-ref inputs "python"))
11041 (out (assoc-ref outputs "out"))
11042 (bin (string-append out "/bin/"))
11043 (target (string-append
11044 out "/lib/python"
11045 ,(version-major+minor
11046 (package-version python))
11047 "/site-packages/gess/")))
11048 (mkdir-p target)
11049 (copy-recursively "." target)
11050 ;; Make GESS.py executable
11051 (chmod (string-append target "GESS.py") #o555)
11052 ;; Add Python shebang to the top and make Matplotlib
11053 ;; usable.
11054 (substitute* (string-append target "GESS.py")
11055 (("\"\"\"Description:" line)
11056 (string-append "#!" (which "python") "
11057 import matplotlib
11058 matplotlib.use('Agg')
11059 " line)))
11060 ;; Make sure GESS has all modules in its path
11061 (wrap-program (string-append target "GESS.py")
11062 `("PYTHONPATH" ":" prefix (,target ,(getenv "PYTHONPATH"))))
11063 (mkdir-p bin)
11064 (symlink (string-append target "GESS.py")
11065 (string-append bin "GESS.py"))
11066 #t))))))
11067 (inputs
11068 `(("python" ,python-2)
11069 ("python2-pysam" ,python2-pysam)
11070 ("python2-scipy" ,python2-scipy)
11071 ("python2-numpy" ,python2-numpy)
11072 ("python2-networkx" ,python2-networkx)
11073 ("python2-biopython" ,python2-biopython)))
11074 (home-page "http://compbio.uthscsa.edu/GESS_Web/")
11075 (synopsis "Detect exon-skipping events from raw RNA-seq data")
11076 (description
11077 "GESS is an implementation of a novel computational method to detect de
11078 novo exon-skipping events directly from raw RNA-seq data without the prior
11079 knowledge of gene annotation information. GESS stands for the graph-based
11080 exon-skipping scanner detection scheme.")
11081 (license license:bsd-3)))
11082
11083 (define-public phylip
11084 (package
11085 (name "phylip")
11086 (version "3.696")
11087 (source
11088 (origin
11089 (method url-fetch)
11090 (uri (string-append "http://evolution.gs.washington.edu/phylip/"
11091 "download/phylip-" version ".tar.gz"))
11092 (sha256
11093 (base32
11094 "01jar1rayhr2gba2pgbw49m56rc5z4p5wn3ds0m188hrlln4a2nd"))))
11095 (build-system gnu-build-system)
11096 (arguments
11097 `(#:tests? #f ; no check target
11098 #:make-flags (list "-f" "Makefile.unx" "install")
11099 #:parallel-build? #f ; not supported
11100 #:phases
11101 (modify-phases %standard-phases
11102 (add-after 'unpack 'enter-dir
11103 (lambda _ (chdir "src") #t))
11104 (delete 'configure)
11105 (replace 'install
11106 (lambda* (#:key inputs outputs #:allow-other-keys)
11107 (let ((target (string-append (assoc-ref outputs "out")
11108 "/bin")))
11109 (mkdir-p target)
11110 (for-each (lambda (file)
11111 (install-file file target))
11112 (find-files "../exe" ".*")))
11113 #t)))))
11114 (home-page "http://evolution.genetics.washington.edu/phylip/")
11115 (synopsis "Tools for inferring phylogenies")
11116 (description "PHYLIP (the PHYLogeny Inference Package) is a package of
11117 programs for inferring phylogenies (evolutionary trees).")
11118 (license license:bsd-2)))
11119
11120 (define-public imp
11121 (package
11122 (name "imp")
11123 (version "2.6.2")
11124 (source
11125 (origin
11126 (method url-fetch)
11127 (uri (string-append "https://integrativemodeling.org/"
11128 version "/download/imp-" version ".tar.gz"))
11129 (sha256
11130 (base32
11131 "0lxqx7vh79d771svr611dkilp6sn30qrbw8zvscbrm37v38d2j6h"))))
11132 (build-system cmake-build-system)
11133 (arguments
11134 `(;; FIXME: Some tests fail because they produce warnings, others fail
11135 ;; because the PYTHONPATH does not include the modeller's directory.
11136 #:tests? #f))
11137 (inputs
11138 `(("boost" ,boost)
11139 ("gsl" ,gsl)
11140 ("swig" ,swig)
11141 ("hdf5" ,hdf5)
11142 ("fftw" ,fftw)
11143 ("python" ,python-2)))
11144 (propagated-inputs
11145 `(("python2-numpy" ,python2-numpy)
11146 ("python2-scipy" ,python2-scipy)
11147 ("python2-pandas" ,python2-pandas)
11148 ("python2-scikit-learn" ,python2-scikit-learn)
11149 ("python2-networkx" ,python2-networkx)))
11150 (home-page "https://integrativemodeling.org")
11151 (synopsis "Integrative modeling platform")
11152 (description "IMP's broad goal is to contribute to a comprehensive
11153 structural characterization of biomolecules ranging in size and complexity
11154 from small peptides to large macromolecular assemblies, by integrating data
11155 from diverse biochemical and biophysical experiments. IMP provides a C++ and
11156 Python toolbox for solving complex modeling problems, and a number of
11157 applications for tackling some common problems in a user-friendly way.")
11158 ;; IMP is largely available under the GNU Lesser GPL; see the file
11159 ;; COPYING.LGPL for the full text of this license. Some IMP modules are
11160 ;; available under the GNU GPL (see the file COPYING.GPL).
11161 (license (list license:lgpl2.1+
11162 license:gpl3+))))
11163
11164 (define-public tadbit
11165 (package
11166 (name "tadbit")
11167 (version "0.2.0")
11168 (source (origin
11169 (method git-fetch)
11170 (uri (git-reference
11171 (url "https://github.com/3DGenomes/TADbit.git")
11172 (commit (string-append "v" version))))
11173 (file-name (git-file-name name version))
11174 (sha256
11175 (base32
11176 "07g3aj648prmsvxp9caz5yl41k0y0647vxh0f5p3w8376mfiljd0"))))
11177 (build-system python-build-system)
11178 (arguments
11179 `(;; Tests are included and must be run after installation, but
11180 ;; they are incomplete and thus cannot be run.
11181 #:tests? #f
11182 #:python ,python-2
11183 #:phases
11184 (modify-phases %standard-phases
11185 (add-after 'unpack 'fix-problems-with-setup.py
11186 (lambda* (#:key outputs #:allow-other-keys)
11187 ;; setup.py opens these files for writing
11188 (chmod "_pytadbit/_version.py" #o664)
11189 (chmod "README.rst" #o664)
11190
11191 ;; Don't attempt to install the bash completions to
11192 ;; the home directory.
11193 (rename-file "extras/.bash_completion"
11194 "extras/tadbit")
11195 (substitute* "setup.py"
11196 (("\\(path.expanduser\\('~'\\)")
11197 (string-append "(\""
11198 (assoc-ref outputs "out")
11199 "/etc/bash_completion.d\""))
11200 (("extras/\\.bash_completion")
11201 "extras/tadbit"))
11202 #t)))))
11203 (inputs
11204 ;; TODO: add Chimera for visualization
11205 `(("imp" ,imp)
11206 ("mcl" ,mcl)
11207 ("python2-scipy" ,python2-scipy)
11208 ("python2-numpy" ,python2-numpy)
11209 ("python2-matplotlib" ,python2-matplotlib)
11210 ("python2-pysam" ,python2-pysam)))
11211 (home-page "https://3dgenomes.github.io/TADbit/")
11212 (synopsis "Analyze, model, and explore 3C-based data")
11213 (description
11214 "TADbit is a complete Python library to deal with all steps to analyze,
11215 model, and explore 3C-based data. With TADbit the user can map FASTQ files to
11216 obtain raw interaction binned matrices (Hi-C like matrices), normalize and
11217 correct interaction matrices, identify and compare the so-called
11218 @dfn{Topologically Associating Domains} (TADs), build 3D models from the
11219 interaction matrices, and finally, extract structural properties from the
11220 models. TADbit is complemented by TADkit for visualizing 3D models.")
11221 (license license:gpl3+)))
11222
11223 (define-public kentutils
11224 (package
11225 (name "kentutils")
11226 ;; 302.1.0 is out, but the only difference is the inclusion of
11227 ;; pre-built binaries.
11228 (version "302.0.0")
11229 (source
11230 (origin
11231 (method git-fetch)
11232 (uri (git-reference
11233 (url "https://github.com/ENCODE-DCC/kentUtils.git")
11234 (commit (string-append "v" version))))
11235 (file-name (git-file-name name version))
11236 (sha256
11237 (base32
11238 "0n1wbyjpzii2b9qhyp9r1q76j623cggpg3y8fmw78ld3z4y7ivha"))
11239 (modules '((guix build utils)
11240 (srfi srfi-26)
11241 (ice-9 ftw)))
11242 (snippet
11243 '(begin
11244 ;; Only the contents of the specified directories are free
11245 ;; for all uses, so we remove the rest. "hg/autoSql" and
11246 ;; "hg/autoXml" are nominally free, but they depend on a
11247 ;; library that is built from the sources in "hg/lib",
11248 ;; which is nonfree.
11249 (let ((free (list "." ".."
11250 "utils" "lib" "inc" "tagStorm"
11251 "parasol" "htslib"))
11252 (directory? (lambda (file)
11253 (eq? 'directory (stat:type (stat file))))))
11254 (for-each (lambda (file)
11255 (and (directory? file)
11256 (delete-file-recursively file)))
11257 (map (cut string-append "src/" <>)
11258 (scandir "src"
11259 (lambda (file)
11260 (not (member file free)))))))
11261 ;; Only make the utils target, not the userApps target,
11262 ;; because that requires libraries we won't build.
11263 (substitute* "Makefile"
11264 ((" userApps") " utils"))
11265 ;; Only build libraries that are free.
11266 (substitute* "src/makefile"
11267 (("DIRS =.*") "DIRS =\n")
11268 (("cd jkOwnLib.*") "")
11269 ((" hgLib") "")
11270 (("cd hg.*") ""))
11271 (substitute* "src/utils/makefile"
11272 ;; These tools depend on "jkhgap.a", which is part of the
11273 ;; nonfree "src/hg/lib" directory.
11274 (("raSqlQuery") "")
11275 (("pslLiftSubrangeBlat") "")
11276
11277 ;; Do not build UCSC tools, which may require nonfree
11278 ;; components.
11279 (("ALL_APPS =.*") "ALL_APPS = $(UTILS_APPLIST)\n"))
11280 #t))))
11281 (build-system gnu-build-system)
11282 (arguments
11283 `( ;; There is no global test target and the test target for
11284 ;; individual tools depends on input files that are not
11285 ;; included.
11286 #:tests? #f
11287 #:phases
11288 (modify-phases %standard-phases
11289 (add-after 'unpack 'fix-permissions
11290 (lambda _ (make-file-writable "src/inc/localEnvironment.mk") #t))
11291 (add-after 'unpack 'fix-paths
11292 (lambda _
11293 (substitute* "Makefile"
11294 (("/bin/echo") (which "echo")))
11295 #t))
11296 (add-after 'unpack 'prepare-samtabix
11297 (lambda* (#:key inputs #:allow-other-keys)
11298 (copy-recursively (assoc-ref inputs "samtabix")
11299 "samtabix")
11300 #t))
11301 (delete 'configure)
11302 (replace 'install
11303 (lambda* (#:key outputs #:allow-other-keys)
11304 (let ((bin (string-append (assoc-ref outputs "out")
11305 "/bin")))
11306 (copy-recursively "bin" bin))
11307 #t)))))
11308 (native-inputs
11309 `(("samtabix"
11310 ,(origin
11311 (method git-fetch)
11312 (uri (git-reference
11313 (url "http://genome-source.cse.ucsc.edu/samtabix.git")
11314 (commit "10fd107909c1ac4d679299908be4262a012965ba")))
11315 (sha256
11316 (base32
11317 "0c1nj64l42v395sa84n7az43xiap4i6f9n9dfz4058aqiwkhkmma"))))))
11318 (inputs
11319 `(("zlib" ,zlib)
11320 ("tcsh" ,tcsh)
11321 ("perl" ,perl)
11322 ("libpng" ,libpng)
11323 ("mariadb" ,mariadb "lib")
11324 ("mariadb-dev" ,mariadb "dev")
11325 ("openssl" ,openssl)))
11326 (home-page "http://genome.cse.ucsc.edu/index.html")
11327 (synopsis "Assorted bioinformatics utilities")
11328 (description "This package provides the kentUtils, a selection of
11329 bioinformatics utilities used in combination with the UCSC genome
11330 browser.")
11331 ;; Only a subset of the sources are released under a non-copyleft
11332 ;; free software license. All other sources are removed in a
11333 ;; snippet. See this bug report for an explanation of how the
11334 ;; license statements apply:
11335 ;; https://github.com/ENCODE-DCC/kentUtils/issues/12
11336 (license (license:non-copyleft
11337 "http://genome.ucsc.edu/license/"
11338 "The contents of this package are free for all uses."))))
11339
11340 (define-public f-seq
11341 (let ((commit "6ccded34cff38cf432deed8503648b4a66953f9b")
11342 (revision "1"))
11343 (package
11344 (name "f-seq")
11345 (version (string-append "1.1-" revision "." (string-take commit 7)))
11346 (source (origin
11347 (method git-fetch)
11348 (uri (git-reference
11349 (url "https://github.com/aboyle/F-seq.git")
11350 (commit commit)))
11351 (file-name (string-append name "-" version))
11352 (sha256
11353 (base32
11354 "1nk33k0yajg2id4g59bc4szr58r2q6pdq42vgcw054m8ip9wv26h"))
11355 (modules '((guix build utils)))
11356 ;; Remove bundled Java library archives.
11357 (snippet
11358 '(begin
11359 (for-each delete-file (find-files "lib" ".*"))
11360 #t))))
11361 (build-system ant-build-system)
11362 (arguments
11363 `(#:tests? #f ; no tests included
11364 #:phases
11365 (modify-phases %standard-phases
11366 (replace 'install
11367 (lambda* (#:key inputs outputs #:allow-other-keys)
11368 (let* ((target (assoc-ref outputs "out"))
11369 (bin (string-append target "/bin"))
11370 (doc (string-append target "/share/doc/f-seq"))
11371 (lib (string-append target "/lib")))
11372 (mkdir-p target)
11373 (mkdir-p doc)
11374 (substitute* "bin/linux/fseq"
11375 (("java") (which "java"))
11376 (("\\$REALDIR/../lib/commons-cli-1.1.jar")
11377 (string-append (assoc-ref inputs "java-commons-cli")
11378 "/share/java/commons-cli.jar"))
11379 (("REALDIR=.*")
11380 (string-append "REALDIR=" bin "\n")))
11381 (install-file "README.txt" doc)
11382 (install-file "bin/linux/fseq" bin)
11383 (install-file "build~/fseq.jar" lib)
11384 (copy-recursively "lib" lib)
11385 #t))))))
11386 (inputs
11387 `(("perl" ,perl)
11388 ("java-commons-cli" ,java-commons-cli)))
11389 (home-page "http://fureylab.web.unc.edu/software/fseq/")
11390 (synopsis "Feature density estimator for high-throughput sequence tags")
11391 (description
11392 "F-Seq is a software package that generates a continuous tag sequence
11393 density estimation allowing identification of biologically meaningful sites
11394 such as transcription factor binding sites (ChIP-seq) or regions of open
11395 chromatin (DNase-seq). Output can be displayed directly in the UCSC Genome
11396 Browser.")
11397 (license license:gpl3+))))
11398
11399 (define-public bismark
11400 (package
11401 (name "bismark")
11402 (version "0.20.1")
11403 (source
11404 (origin
11405 (method git-fetch)
11406 (uri (git-reference
11407 (url "https://github.com/FelixKrueger/Bismark.git")
11408 (commit version)))
11409 (file-name (string-append name "-" version "-checkout"))
11410 (sha256
11411 (base32
11412 "0xchm3rgilj6vfjnyzfzzymfd7djr64sbrmrvs3njbwi66jqbzw9"))))
11413 (build-system perl-build-system)
11414 (arguments
11415 `(#:tests? #f ; there are no tests
11416 #:modules ((guix build utils)
11417 (ice-9 popen)
11418 (srfi srfi-26)
11419 (guix build perl-build-system))
11420 #:phases
11421 (modify-phases %standard-phases
11422 ;; The bundled plotly.js is minified.
11423 (add-after 'unpack 'replace-plotly.js
11424 (lambda* (#:key inputs #:allow-other-keys)
11425 (let* ((file (assoc-ref inputs "plotly.js"))
11426 (installed "plotly/plotly.js"))
11427 (let ((minified (open-pipe* OPEN_READ "uglify-js" file)))
11428 (call-with-output-file installed
11429 (cut dump-port minified <>))))
11430 #t))
11431 (delete 'configure)
11432 (delete 'build)
11433 (replace 'install
11434 (lambda* (#:key inputs outputs #:allow-other-keys)
11435 (let* ((out (assoc-ref outputs "out"))
11436 (bin (string-append out "/bin"))
11437 (share (string-append out "/share/bismark"))
11438 (docdir (string-append out "/share/doc/bismark"))
11439 (docs '("Docs/Bismark_User_Guide.html"))
11440 (scripts '("bismark"
11441 "bismark_genome_preparation"
11442 "bismark_methylation_extractor"
11443 "bismark2bedGraph"
11444 "bismark2report"
11445 "coverage2cytosine"
11446 "deduplicate_bismark"
11447 "filter_non_conversion"
11448 "bam2nuc"
11449 "bismark2summary"
11450 "NOMe_filtering")))
11451 (substitute* "bismark2report"
11452 (("\\$RealBin/plotly")
11453 (string-append share "/plotly")))
11454 (mkdir-p share)
11455 (mkdir-p docdir)
11456 (mkdir-p bin)
11457 (for-each (lambda (file) (install-file file bin))
11458 scripts)
11459 (for-each (lambda (file) (install-file file docdir))
11460 docs)
11461 (copy-recursively "Docs/Images" (string-append docdir "/Images"))
11462 (copy-recursively "plotly"
11463 (string-append share "/plotly"))
11464
11465 ;; Fix references to gunzip
11466 (substitute* (map (lambda (file)
11467 (string-append bin "/" file))
11468 scripts)
11469 (("\"gunzip -c")
11470 (string-append "\"" (assoc-ref inputs "gzip")
11471 "/bin/gunzip -c")))
11472 #t))))))
11473 (inputs
11474 `(("gzip" ,gzip)
11475 ("perl-carp" ,perl-carp)
11476 ("perl-getopt-long" ,perl-getopt-long)))
11477 (native-inputs
11478 `(("plotly.js"
11479 ,(origin
11480 (method url-fetch)
11481 (uri (string-append "https://raw.githubusercontent.com/plotly/plotly.js/"
11482 "v1.39.4/dist/plotly.js"))
11483 (sha256
11484 (base32 "138mwsr4nf5qif4mrxx286mpnagxd1xwl6k8aidrjgknaqg88zyr"))))
11485 ("uglify-js" ,uglify-js)))
11486 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/bismark/")
11487 (synopsis "Map bisulfite treated sequence reads and analyze methylation")
11488 (description "Bismark is a program to map bisulfite treated sequencing
11489 reads to a genome of interest and perform methylation calls in a single step.
11490 The output can be easily imported into a genome viewer, such as SeqMonk, and
11491 enables a researcher to analyse the methylation levels of their samples
11492 straight away. Its main features are:
11493
11494 @itemize
11495 @item Bisulfite mapping and methylation calling in one single step
11496 @item Supports single-end and paired-end read alignments
11497 @item Supports ungapped and gapped alignments
11498 @item Alignment seed length, number of mismatches etc are adjustable
11499 @item Output discriminates between cytosine methylation in CpG, CHG
11500 and CHH context
11501 @end itemize\n")
11502 (license license:gpl3+)))
11503
11504 (define-public paml
11505 (package
11506 (name "paml")
11507 (version "4.9e")
11508 (source (origin
11509 (method url-fetch)
11510 (uri (string-append "http://abacus.gene.ucl.ac.uk/software/"
11511 "paml" version ".tgz"))
11512 (sha256
11513 (base32
11514 "13zf6h9fiqghwhch2h06x1zdr6s42plsnqahflp5g7myr3han3s6"))
11515 (modules '((guix build utils)))
11516 ;; Remove Windows binaries
11517 (snippet
11518 '(begin
11519 (for-each delete-file (find-files "." "\\.exe$"))
11520 #t))))
11521 (build-system gnu-build-system)
11522 (arguments
11523 `(#:tests? #f ; there are no tests
11524 #:make-flags '("CC=gcc")
11525 #:phases
11526 (modify-phases %standard-phases
11527 (replace 'configure
11528 (lambda _
11529 (substitute* "src/BFdriver.c"
11530 (("/bin/bash") (which "bash")))
11531 (chdir "src")
11532 #t))
11533 (replace 'install
11534 (lambda* (#:key outputs #:allow-other-keys)
11535 (let ((tools '("baseml" "basemlg" "codeml"
11536 "pamp" "evolver" "yn00" "chi2"))
11537 (bin (string-append (assoc-ref outputs "out") "/bin"))
11538 (docdir (string-append (assoc-ref outputs "out")
11539 "/share/doc/paml")))
11540 (mkdir-p bin)
11541 (for-each (lambda (file) (install-file file bin)) tools)
11542 (copy-recursively "../doc" docdir)
11543 #t))))))
11544 (home-page "http://abacus.gene.ucl.ac.uk/software/paml.html")
11545 (synopsis "Phylogentic analysis by maximum likelihood")
11546 (description "PAML (for Phylogentic Analysis by Maximum Likelihood)
11547 contains a few programs for model fitting and phylogenetic tree reconstruction
11548 using nucleotide or amino-acid sequence data.")
11549 ;; GPLv3 only
11550 (license license:gpl3)))
11551
11552 (define-public kallisto
11553 (package
11554 (name "kallisto")
11555 (version "0.44.0")
11556 (source (origin
11557 (method git-fetch)
11558 (uri (git-reference
11559 (url "https://github.com/pachterlab/kallisto.git")
11560 (commit (string-append "v" version))))
11561 (file-name (git-file-name name version))
11562 (sha256
11563 (base32
11564 "0nj382jiywqnpgvyhichajpkkh5r0bapn43f4dx40zdaq5v4m40m"))))
11565 (build-system cmake-build-system)
11566 (arguments
11567 `(#:tests? #f ; no "check" target
11568 #:phases
11569 (modify-phases %standard-phases
11570 (add-after 'unpack 'do-not-use-bundled-htslib
11571 (lambda _
11572 (substitute* "CMakeLists.txt"
11573 (("^ExternalProject_Add" m)
11574 (string-append "if (NEVER)\n" m))
11575 (("^\\)")
11576 (string-append ")\nendif(NEVER)"))
11577 (("include_directories\\(\\$\\{htslib_PREFIX.*" m)
11578 (string-append "# " m)))
11579 (substitute* "src/CMakeLists.txt"
11580 (("target_link_libraries\\(kallisto kallisto_core pthread \
11581 \\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/../ext/htslib/libhts.a\\)")
11582 "target_link_libraries(kallisto kallisto_core pthread hts)")
11583 (("include_directories\\(\\.\\./ext/htslib\\)") ""))
11584 #t)))))
11585 (inputs
11586 `(("hdf5" ,hdf5)
11587 ("htslib" ,htslib)
11588 ("zlib" ,zlib)))
11589 (home-page "http://pachterlab.github.io/kallisto/")
11590 (synopsis "Near-optimal RNA-Seq quantification")
11591 (description
11592 "Kallisto is a program for quantifying abundances of transcripts from
11593 RNA-Seq data, or more generally of target sequences using high-throughput
11594 sequencing reads. It is based on the novel idea of pseudoalignment for
11595 rapidly determining the compatibility of reads with targets, without the need
11596 for alignment. Pseudoalignment of reads preserves the key information needed
11597 for quantification, and kallisto is therefore not only fast, but also as
11598 accurate as existing quantification tools.")
11599 (license license:bsd-2)))
11600
11601 (define-public libgff
11602 (package
11603 (name "libgff")
11604 (version "1.0")
11605 (source (origin
11606 (method git-fetch)
11607 (uri (git-reference
11608 (url "https://github.com/Kingsford-Group/libgff.git")
11609 (commit (string-append "v" version))))
11610 (file-name (git-file-name name version))
11611 (sha256
11612 (base32
11613 "0n6vfjnq7a2mianipscbshrvbncss8z4zkgkbjw754p9043nfkps"))))
11614 (build-system cmake-build-system)
11615 (arguments `(#:tests? #f)) ; no tests included
11616 (home-page "https://github.com/Kingsford-Group/libgff")
11617 (synopsis "Parser library for reading/writing GFF files")
11618 (description "This is a simple \"libraryfication\" of the GFF/GTF parsing
11619 code that is used in the Cufflinks codebase. The goal of this library is to
11620 provide this functionality without the necessity of drawing in a heavy-weight
11621 dependency like SeqAn.")
11622 (license (license:x11-style "https://www.boost.org/LICENSE_1_0.txt"))))
11623
11624 (define-public sailfish
11625 (package
11626 (name "sailfish")
11627 (version "0.10.1")
11628 (source (origin
11629 (method git-fetch)
11630 (uri (git-reference
11631 (url "https://github.com/kingsfordgroup/sailfish.git")
11632 (commit (string-append "v" version))))
11633 (file-name (git-file-name name version))
11634 (sha256
11635 (base32
11636 "1amcc5hqvsl42hg4x19bi9vy47cl874s0lw1fmi0hwsdk9i8c03v"))
11637 (modules '((guix build utils)))
11638 (snippet
11639 '(begin
11640 ;; Delete bundled headers for eigen3.
11641 (delete-file-recursively "include/eigen3/")
11642 #t))))
11643 (build-system cmake-build-system)
11644 (arguments
11645 `(#:configure-flags
11646 (list (string-append "-DBOOST_INCLUDEDIR="
11647 (assoc-ref %build-inputs "boost")
11648 "/include/")
11649 (string-append "-DBOOST_LIBRARYDIR="
11650 (assoc-ref %build-inputs "boost")
11651 "/lib/")
11652 (string-append "-DBoost_LIBRARIES="
11653 "-lboost_iostreams "
11654 "-lboost_filesystem "
11655 "-lboost_system "
11656 "-lboost_thread "
11657 "-lboost_timer "
11658 "-lboost_chrono "
11659 "-lboost_program_options")
11660 "-DBoost_FOUND=TRUE"
11661 ;; Don't download RapMap---we already have it!
11662 "-DFETCHED_RAPMAP=1")
11663 ;; Tests must be run after installation and the location of the test
11664 ;; data file must be overridden. But the tests fail. It looks like
11665 ;; they are not really meant to be run.
11666 #:tests? #f
11667 #:phases
11668 (modify-phases %standard-phases
11669 ;; Boost cannot be found, even though it's right there.
11670 (add-after 'unpack 'do-not-look-for-boost
11671 (lambda* (#:key inputs #:allow-other-keys)
11672 (substitute* "CMakeLists.txt"
11673 (("find_package\\(Boost 1\\.53\\.0") "#"))
11674 #t))
11675 (add-after 'unpack 'do-not-assign-to-macro
11676 (lambda _
11677 (substitute* "include/spdlog/details/format.cc"
11678 (("const unsigned CHAR_WIDTH = 1;") ""))
11679 #t))
11680 (add-after 'unpack 'prepare-rapmap
11681 (lambda* (#:key inputs #:allow-other-keys)
11682 (let ((src "external/install/src/rapmap/")
11683 (include "external/install/include/rapmap/")
11684 (rapmap (assoc-ref inputs "rapmap")))
11685 (mkdir-p "/tmp/rapmap")
11686 (invoke "tar" "xf"
11687 (assoc-ref inputs "rapmap")
11688 "-C" "/tmp/rapmap"
11689 "--strip-components=1")
11690 (mkdir-p src)
11691 (mkdir-p include)
11692 (for-each (lambda (file)
11693 (install-file file src))
11694 (find-files "/tmp/rapmap/src" "\\.(c|cpp)"))
11695 (copy-recursively "/tmp/rapmap/include" include))
11696 #t))
11697 (add-after 'unpack 'use-system-libraries
11698 (lambda* (#:key inputs #:allow-other-keys)
11699 (substitute* '("src/SailfishIndexer.cpp"
11700 "src/SailfishUtils.cpp"
11701 "src/SailfishQuantify.cpp"
11702 "src/FASTAParser.cpp"
11703 "include/PCA.hpp"
11704 "include/SailfishUtils.hpp"
11705 "include/SailfishIndex.hpp"
11706 "include/CollapsedEMOptimizer.hpp"
11707 "src/CollapsedEMOptimizer.cpp")
11708 (("#include \"jellyfish/config.h\"") ""))
11709 (substitute* "src/CMakeLists.txt"
11710 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
11711 (string-append (assoc-ref inputs "jellyfish")
11712 "/include/jellyfish-" ,(package-version jellyfish)))
11713 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
11714 (string-append (assoc-ref inputs "jellyfish")
11715 "/lib/libjellyfish-2.0.a"))
11716 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
11717 (string-append (assoc-ref inputs "libdivsufsort")
11718 "/lib/libdivsufsort.so"))
11719 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
11720 (string-append (assoc-ref inputs "libdivsufsort")
11721 "/lib/libdivsufsort64.so")))
11722 (substitute* "CMakeLists.txt"
11723 ;; Don't prefer static libs
11724 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
11725 (("find_package\\(Jellyfish.*") "")
11726 (("ExternalProject_Add\\(libjellyfish") "message(")
11727 (("ExternalProject_Add\\(libgff") "message(")
11728 (("ExternalProject_Add\\(libsparsehash") "message(")
11729 (("ExternalProject_Add\\(libdivsufsort") "message("))
11730
11731 ;; Ensure that Eigen headers can be found
11732 (setenv "CPLUS_INCLUDE_PATH"
11733 (string-append (assoc-ref inputs "eigen")
11734 "/include/eigen3"))
11735 #t)))))
11736 (inputs
11737 `(("boost" ,boost)
11738 ("eigen" ,eigen)
11739 ("jemalloc" ,jemalloc)
11740 ("jellyfish" ,jellyfish)
11741 ("sparsehash" ,sparsehash)
11742 ("rapmap" ,(origin
11743 (method git-fetch)
11744 (uri (git-reference
11745 (url "https://github.com/COMBINE-lab/RapMap.git")
11746 (commit (string-append "sf-v" version))))
11747 (file-name (string-append "rapmap-sf-v" version "-checkout"))
11748 (sha256
11749 (base32
11750 "1hv79l5i576ykv5a1srj2p0q36yvyl5966m0fcy2lbi169ipjakf"))
11751 (modules '((guix build utils)))
11752 ;; These files are expected to be excluded.
11753 (snippet
11754 '(begin (delete-file-recursively "include/spdlog")
11755 (for-each delete-file '("include/xxhash.h"
11756 "src/xxhash.c"))
11757 #t))))
11758 ("libdivsufsort" ,libdivsufsort)
11759 ("libgff" ,libgff)
11760 ("tbb" ,tbb)
11761 ("zlib" ,zlib)))
11762 (native-inputs
11763 `(("pkg-config" ,pkg-config)))
11764 (home-page "http://www.cs.cmu.edu/~ckingsf/software/sailfish")
11765 (synopsis "Mapping-based isoform quantification from RNA-Seq reads")
11766 (description "Sailfish is a tool for genomic transcript quantification
11767 from RNA-seq data. It requires a set of target transcripts (either from a
11768 reference or de-novo assembly) to quantify. All you need to run sailfish is a
11769 fasta file containing your reference transcripts and a (set of) fasta/fastq
11770 file(s) containing your reads.")
11771 (license license:gpl3+)))
11772
11773 (define libstadenio-for-salmon
11774 (package
11775 (name "libstadenio")
11776 (version "1.14.8")
11777 (source (origin
11778 (method git-fetch)
11779 (uri (git-reference
11780 (url "https://github.com/COMBINE-lab/staden-io_lib.git")
11781 (commit (string-append "v" version))))
11782 (file-name (string-append name "-" version "-checkout"))
11783 (sha256
11784 (base32
11785 "1x8kxxqxl892vwfbprlbyfwkkv7c34ggkc94892x9x0g37x5nbwx"))))
11786 (build-system gnu-build-system)
11787 (arguments '(#:parallel-tests? #f)) ; not supported
11788 (inputs
11789 `(("zlib" ,zlib)))
11790 (native-inputs
11791 `(("perl" ,perl))) ; for tests
11792 (home-page "https://github.com/COMBINE-lab/staden-io_lib")
11793 (synopsis "General purpose trace and experiment file library")
11794 (description "This package provides a library of file reading and writing
11795 code to provide a general purpose Trace file (and Experiment File) reading
11796 interface.
11797
11798 The following file formats are supported:
11799
11800 @enumerate
11801 @item SCF trace files
11802 @item ABI trace files
11803 @item ALF trace files
11804 @item ZTR trace files
11805 @item SFF trace archives
11806 @item SRF trace archives
11807 @item Experiment files
11808 @item Plain text files
11809 @item SAM/BAM sequence files
11810 @item CRAM sequence files
11811 @end enumerate\n")
11812 (license license:bsd-3)))
11813
11814 (define-public salmon
11815 (package
11816 (name "salmon")
11817 (version "0.13.1")
11818 (source (origin
11819 (method git-fetch)
11820 (uri (git-reference
11821 (url "https://github.com/COMBINE-lab/salmon.git")
11822 (commit (string-append "v" version))))
11823 (file-name (git-file-name name version))
11824 (sha256
11825 (base32
11826 "1i2z4aivicmiixdz9bxalp7vmfzi3k92fxa63iqa8kgvfw5a4aq5"))
11827 (modules '((guix build utils)))
11828 (snippet
11829 '(begin
11830 ;; Delete bundled headers for eigen3.
11831 (delete-file-recursively "include/eigen3/")
11832 #t))))
11833 (build-system cmake-build-system)
11834 (arguments
11835 `(#:configure-flags
11836 (list (string-append "-DBOOST_INCLUDEDIR="
11837 (assoc-ref %build-inputs "boost")
11838 "/include/")
11839 (string-append "-DBOOST_LIBRARYDIR="
11840 (assoc-ref %build-inputs "boost")
11841 "/lib/")
11842 (string-append "-DBoost_LIBRARIES="
11843 "-lboost_iostreams "
11844 "-lboost_filesystem "
11845 "-lboost_system "
11846 "-lboost_thread "
11847 "-lboost_timer "
11848 "-lboost_chrono "
11849 "-lboost_program_options")
11850 "-DBoost_FOUND=TRUE"
11851 "-DTBB_LIBRARIES=tbb tbbmalloc"
11852 ;; Don't download RapMap---we already have it!
11853 "-DFETCHED_RAPMAP=1")
11854 #:phases
11855 (modify-phases %standard-phases
11856 ;; Boost cannot be found, even though it's right there.
11857 (add-after 'unpack 'do-not-look-for-boost
11858 (lambda* (#:key inputs #:allow-other-keys)
11859 (substitute* "CMakeLists.txt"
11860 (("find_package\\(Boost 1\\.59\\.0") "#"))
11861 #t))
11862 (add-after 'unpack 'do-not-phone-home
11863 (lambda _
11864 (substitute* "src/Salmon.cpp"
11865 (("getVersionMessage\\(\\)") "\"\""))
11866 #t))
11867 (add-after 'unpack 'prepare-rapmap
11868 (lambda* (#:key inputs #:allow-other-keys)
11869 (let ((src "external/install/src/rapmap/")
11870 (include "external/install/include/rapmap/")
11871 (rapmap (assoc-ref inputs "rapmap")))
11872 (mkdir-p src)
11873 (mkdir-p include)
11874 (copy-recursively (string-append rapmap "/src") src)
11875 (copy-recursively (string-append rapmap "/include") include)
11876 (for-each delete-file '("external/install/include/rapmap/xxhash.h"
11877 "external/install/include/rapmap/FastxParser.hpp"
11878 "external/install/include/rapmap/concurrentqueue.h"
11879 "external/install/include/rapmap/FastxParserThreadUtils.hpp"
11880 "external/install/src/rapmap/FastxParser.cpp"
11881 "external/install/src/rapmap/xxhash.c"))
11882 (delete-file-recursively "external/install/include/rapmap/spdlog"))
11883 #t))
11884 (add-after 'unpack 'use-system-libraries
11885 (lambda* (#:key inputs #:allow-other-keys)
11886 (substitute* "CMakeLists.txt"
11887 ;; Don't prefer static libs
11888 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
11889 (("set\\(TBB_LIBRARIES") "message(")
11890 ;; Don't download anything
11891 (("DOWNLOAD_COMMAND") "DOWNLOAD_COMMAND echo")
11892 (("externalproject_add\\(libcereal") "message(")
11893 (("externalproject_add\\(libgff") "message(")
11894 (("externalproject_add\\(libtbb") "message(")
11895 (("externalproject_add\\(libdivsufsort") "message(")
11896 (("externalproject_add\\(libstadenio") "message(")
11897 (("externalproject_add_step\\(") "message("))
11898 (substitute* "src/CMakeLists.txt"
11899 (("add_dependencies") "#")
11900 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libstaden-read.a")
11901 (string-append (assoc-ref inputs "libstadenio-for-salmon")
11902 "/lib/libstaden-read.so"))
11903 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
11904 (string-append (assoc-ref inputs "libdivsufsort")
11905 "/lib/libdivsufsort.so"))
11906 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
11907 (string-append (assoc-ref inputs "libdivsufsort")
11908 "/lib/libdivsufsort64.so"))
11909 (("lib/libdivsufsort.a") "/lib/libdivsufsort.so"))
11910
11911 ;; Ensure that all headers can be found
11912 (setenv "CPATH"
11913 (string-append (getenv "CPATH")
11914 ":"
11915 (assoc-ref inputs "eigen")
11916 "/include/eigen3"))
11917 #t))
11918 ;; CMAKE_INSTALL_PREFIX does not exist when the tests are
11919 ;; run. It only exists after the install phase.
11920 (add-after 'unpack 'fix-tests
11921 (lambda _
11922 (substitute* "src/CMakeLists.txt"
11923 (("DTOPLEVEL_DIR=\\$\\{CMAKE_INSTALL_PREFIX")
11924 "DTOPLEVEL_DIR=${GAT_SOURCE_DIR"))
11925 #t)))))
11926 (inputs
11927 `(("boost" ,boost)
11928 ("bzip2" ,bzip2)
11929 ("cereal" ,cereal)
11930 ("eigen" ,eigen)
11931 ("rapmap" ,(origin
11932 (method git-fetch)
11933 (uri (git-reference
11934 (url "https://github.com/COMBINE-lab/RapMap.git")
11935 (commit (string-append "salmon-v" version))))
11936 (file-name (string-append "rapmap-salmon-v" version "-checkout"))
11937 (sha256
11938 (base32
11939 "1biplxf0csc7a8h1wf219b0vmjkvw6wk2zylhdklb577kgmihdms"))))
11940 ("jemalloc" ,jemalloc)
11941 ("libgff" ,libgff)
11942 ("tbb" ,tbb)
11943 ("libdivsufsort" ,libdivsufsort)
11944 ("libstadenio-for-salmon" ,libstadenio-for-salmon)
11945 ("xz" ,xz)
11946 ("zlib" ,zlib)))
11947 (native-inputs
11948 `(("pkg-config" ,pkg-config)))
11949 (home-page "https://github.com/COMBINE-lab/salmon")
11950 (synopsis "Quantification from RNA-seq reads using lightweight alignments")
11951 (description "Salmon is a program to produce highly-accurate,
11952 transcript-level quantification estimates from RNA-seq data. Salmon achieves
11953 its accuracy and speed via a number of different innovations, including the
11954 use of lightweight alignments (accurate but fast-to-compute proxies for
11955 traditional read alignments) and massively-parallel stochastic collapsed
11956 variational inference.")
11957 (license license:gpl3+)))
11958
11959 (define-public python-loompy
11960 (package
11961 (name "python-loompy")
11962 (version "2.0.17")
11963 ;; The tarball on Pypi does not include the tests.
11964 (source (origin
11965 (method git-fetch)
11966 (uri (git-reference
11967 (url "https://github.com/linnarsson-lab/loompy.git")
11968 (commit version)))
11969 (file-name (git-file-name name version))
11970 (sha256
11971 (base32
11972 "12a5kjgiikapv93wahfw0frszx1lblnppyz3vs5gy8fgmgngra07"))))
11973 (build-system python-build-system)
11974 (arguments
11975 `(#:phases
11976 (modify-phases %standard-phases
11977 (replace 'check
11978 (lambda _
11979 (setenv "PYTHONPATH"
11980 (string-append (getcwd) ":"
11981 (getenv "PYTHONPATH")))
11982 (invoke "pytest" "tests")
11983 #t)))))
11984 (propagated-inputs
11985 `(("python-h5py" ,python-h5py)
11986 ("python-numpy" ,python-numpy)
11987 ("python-pandas" ,python-pandas)
11988 ("python-scipy" ,python-scipy)))
11989 (native-inputs
11990 `(("python-pytest" ,python-pytest)))
11991 (home-page "https://github.com/linnarsson-lab/loompy")
11992 (synopsis "Work with .loom files for single-cell RNA-seq data")
11993 (description "The loom file format is an efficient format for very large
11994 omics datasets, consisting of a main matrix, optional additional layers, a
11995 variable number of row and column annotations. Loom also supports sparse
11996 graphs. This library makes it easy to work with @file{.loom} files for
11997 single-cell RNA-seq data.")
11998 (license license:bsd-3)))
11999
12000 ;; pigx-scrnaseq does not work with the latest version of loompy.
12001 (define-public python-loompy-for-pigx-scrnaseq
12002 (package (inherit python-loompy)
12003 (name "python-loompy")
12004 (version "2.0.3")
12005 (source (origin
12006 (method git-fetch)
12007 (uri (git-reference
12008 (url "https://github.com/linnarsson-lab/loompy.git")
12009 (commit (string-append "v" version))))
12010 (file-name (git-file-name name version))
12011 (sha256
12012 (base32
12013 "0pjyl532pl8sbv71yci6h0agchn0naw2qjcwj50n6afrsahbsag3"))))
12014 ;; There are none.
12015 (arguments '(#:tests? #f))))
12016
12017 ;; We cannot use the latest commit because it requires Java 9.
12018 (define-public java-forester
12019 (let ((commit "86b07efe302d5094b42deed9260f719a4c4ac2e6")
12020 (revision "1"))
12021 (package
12022 (name "java-forester")
12023 (version (string-append "0-" revision "." (string-take commit 7)))
12024 (source (origin
12025 (method git-fetch)
12026 (uri (git-reference
12027 (url "https://github.com/cmzmasek/forester.git")
12028 (commit commit)))
12029 (file-name (string-append name "-" version "-checkout"))
12030 (sha256
12031 (base32
12032 "0vxavc1yrf84yrnf20dq26hi0lglidk8d382xrxsy4qmlbjd276z"))
12033 (modules '((guix build utils)))
12034 (snippet
12035 '(begin
12036 ;; Delete bundled jars and pre-built classes
12037 (delete-file-recursively "forester/java/resources")
12038 (delete-file-recursively "forester/java/classes")
12039 (for-each delete-file (find-files "forester/java/" "\\.jar$"))
12040 ;; Delete bundled applications
12041 (delete-file-recursively "forester_applications")
12042 #t))))
12043 (build-system ant-build-system)
12044 (arguments
12045 `(#:tests? #f ; there are none
12046 #:jdk ,icedtea-8
12047 #:modules ((guix build ant-build-system)
12048 (guix build utils)
12049 (guix build java-utils)
12050 (sxml simple)
12051 (sxml transform))
12052 #:phases
12053 (modify-phases %standard-phases
12054 (add-after 'unpack 'chdir
12055 (lambda _ (chdir "forester/java") #t))
12056 (add-after 'chdir 'fix-dependencies
12057 (lambda _
12058 (chmod "build.xml" #o664)
12059 (call-with-output-file "build.xml.new"
12060 (lambda (port)
12061 (sxml->xml
12062 (pre-post-order
12063 (with-input-from-file "build.xml"
12064 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12065 `(;; Remove all unjar tags to avoid repacking classes.
12066 (unjar . ,(lambda _ '()))
12067 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12068 (*text* . ,(lambda (_ txt) txt))))
12069 port)))
12070 (rename-file "build.xml.new" "build.xml")
12071 #t))
12072 ;; FIXME: itext is difficult to package as it depends on a few
12073 ;; unpackaged libraries.
12074 (add-after 'chdir 'remove-dependency-on-unpackaged-itext
12075 (lambda _
12076 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12077 (substitute* "src/org/forester/archaeopteryx/MainFrame.java"
12078 (("pdf_written_to = PdfExporter.*")
12079 "throw new IOException(\"PDF export is not available.\");"))
12080 #t))
12081 ;; There is no install target
12082 (replace 'install (install-jars ".")))))
12083 (propagated-inputs
12084 `(("java-commons-codec" ,java-commons-codec)
12085 ("java-openchart2" ,java-openchart2)))
12086 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12087 (synopsis "Phylogenomics libraries for Java")
12088 (description "Forester is a collection of Java libraries for
12089 phylogenomics and evolutionary biology research. It includes support for
12090 reading, writing, and exporting phylogenetic trees.")
12091 (license license:lgpl2.1+))))
12092
12093 (define-public java-forester-1.005
12094 (package
12095 (name "java-forester")
12096 (version "1.005")
12097 (source (origin
12098 (method url-fetch)
12099 (uri (string-append "http://search.maven.org/remotecontent?"
12100 "filepath=org/biojava/thirdparty/forester/"
12101 version "/forester-" version "-sources.jar"))
12102 (file-name (string-append name "-" version ".jar"))
12103 (sha256
12104 (base32
12105 "04r8qv4rk3p71z4ajrvp11py1z46qrx0047j3zzs79s6lnsm3lcv"))))
12106 (build-system ant-build-system)
12107 (arguments
12108 `(#:tests? #f ; there are none
12109 #:jdk ,icedtea-8
12110 #:modules ((guix build ant-build-system)
12111 (guix build utils)
12112 (guix build java-utils)
12113 (sxml simple)
12114 (sxml transform))
12115 #:phases
12116 (modify-phases %standard-phases
12117 (add-after 'unpack 'fix-dependencies
12118 (lambda* (#:key inputs #:allow-other-keys)
12119 (call-with-output-file "build.xml"
12120 (lambda (port)
12121 (sxml->xml
12122 (pre-post-order
12123 (with-input-from-file "src/build.xml"
12124 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12125 `(;; Remove all unjar tags to avoid repacking classes.
12126 (unjar . ,(lambda _ '()))
12127 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12128 (*text* . ,(lambda (_ txt) txt))))
12129 port)))
12130 (copy-file (assoc-ref inputs "synth_look_and_feel_1.xml")
12131 "synth_look_and_feel_1.xml")
12132 (copy-file (assoc-ref inputs "phyloxml.xsd")
12133 "phyloxml.xsd")
12134 (substitute* "build.xml"
12135 (("../resources/synth_laf/synth_look_and_feel_1.xml")
12136 "synth_look_and_feel_1.xml")
12137 (("../resources/phyloxml_schema/1.10/phyloxml.xsd")
12138 "phyloxml.xsd"))
12139 #t))
12140 ;; FIXME: itext is difficult to package as it depends on a few
12141 ;; unpackaged libraries.
12142 (add-after 'unpack 'remove-dependency-on-unpackaged-itext
12143 (lambda _
12144 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12145 (substitute* '("src/org/forester/archaeopteryx/MainFrame.java"
12146 "src/org/forester/archaeopteryx/MainFrameApplication.java")
12147 (("pdf_written_to = PdfExporter.*")
12148 "throw new IOException(\"PDF export is not available.\"); /*")
12149 ((".getPrintSizeX\\(\\), getOptions\\(\\).getPrintSizeY\\(\\) \\);") "*/")
12150 (("getCurrentTreePanel\\(\\).getHeight\\(\\) \\);") "*/"))
12151 #t))
12152 (add-after 'unpack 'delete-pre-built-classes
12153 (lambda _ (delete-file-recursively "src/classes") #t))
12154 ;; There is no install target
12155 (replace 'install (install-jars ".")))))
12156 (propagated-inputs
12157 `(("java-commons-codec" ,java-commons-codec)
12158 ("java-openchart2" ,java-openchart2)))
12159 ;; The source archive does not contain the resources.
12160 (native-inputs
12161 `(("phyloxml.xsd"
12162 ,(origin
12163 (method url-fetch)
12164 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12165 "b61cc2dcede0bede317db362472333115756b8c6/"
12166 "forester/resources/phyloxml_schema/1.10/phyloxml.xsd"))
12167 (file-name (string-append name "-phyloxml-" version ".xsd"))
12168 (sha256
12169 (base32
12170 "1zxc4m8sn4n389nqdnpxa8d0k17qnr3pm2y5y6g6vh4k0zm52npv"))))
12171 ("synth_look_and_feel_1.xml"
12172 ,(origin
12173 (method url-fetch)
12174 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12175 "29e04321615da6b35c1e15c60e52caf3f21d8e6a/"
12176 "forester/java/classes/resources/synth_look_and_feel_1.xml"))
12177 (file-name (string-append name "-synth-look-and-feel-" version ".xml"))
12178 (sha256
12179 (base32
12180 "1gv5602gv4k7y7713y75a4jvj7i9s7nildsbdl7n9q10sc2ikg8h"))))))
12181 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12182 (synopsis "Phylogenomics libraries for Java")
12183 (description "Forester is a collection of Java libraries for
12184 phylogenomics and evolutionary biology research. It includes support for
12185 reading, writing, and exporting phylogenetic trees.")
12186 (license license:lgpl2.1+)))
12187
12188 (define-public java-biojava-core
12189 (package
12190 (name "java-biojava-core")
12191 (version "4.2.11")
12192 (source (origin
12193 (method git-fetch)
12194 (uri (git-reference
12195 (url "https://github.com/biojava/biojava")
12196 (commit (string-append "biojava-" version))))
12197 (file-name (string-append name "-" version "-checkout"))
12198 (sha256
12199 (base32
12200 "1bvryh2bpsvash8ln79cmc9sqm8qw72hz4xzwqxcrjm8ssxszhqk"))))
12201 (build-system ant-build-system)
12202 (arguments
12203 `(#:jdk ,icedtea-8
12204 #:jar-name "biojava-core.jar"
12205 #:source-dir "biojava-core/src/main/java/"
12206 #:test-dir "biojava-core/src/test"
12207 ;; These tests seem to require internet access.
12208 #:test-exclude (list "**/SearchIOTest.java"
12209 "**/BlastXMLParserTest.java"
12210 "**/GenbankCookbookTest.java"
12211 "**/GenbankProxySequenceReaderTest.java")
12212 #:phases
12213 (modify-phases %standard-phases
12214 (add-before 'build 'copy-resources
12215 (lambda _
12216 (copy-recursively "biojava-core/src/main/resources"
12217 "build/classes")
12218 #t))
12219 (add-before 'check 'copy-test-resources
12220 (lambda _
12221 (copy-recursively "biojava-core/src/test/resources"
12222 "build/test-classes")
12223 #t)))))
12224 (propagated-inputs
12225 `(("java-log4j-api" ,java-log4j-api)
12226 ("java-log4j-core" ,java-log4j-core)
12227 ("java-slf4j-api" ,java-slf4j-api)
12228 ("java-slf4j-simple" ,java-slf4j-simple)))
12229 (native-inputs
12230 `(("java-junit" ,java-junit)
12231 ("java-hamcrest-core" ,java-hamcrest-core)))
12232 (home-page "http://biojava.org")
12233 (synopsis "Core libraries of Java framework for processing biological data")
12234 (description "BioJava is a project dedicated to providing a Java framework
12235 for processing biological data. It provides analytical and statistical
12236 routines, parsers for common file formats, reference implementations of
12237 popular algorithms, and allows the manipulation of sequences and 3D
12238 structures. The goal of the biojava project is to facilitate rapid
12239 application development for bioinformatics.
12240
12241 This package provides the core libraries.")
12242 (license license:lgpl2.1+)))
12243
12244 (define-public java-biojava-phylo
12245 (package (inherit java-biojava-core)
12246 (name "java-biojava-phylo")
12247 (build-system ant-build-system)
12248 (arguments
12249 `(#:jdk ,icedtea-8
12250 #:jar-name "biojava-phylo.jar"
12251 #:source-dir "biojava-phylo/src/main/java/"
12252 #:test-dir "biojava-phylo/src/test"
12253 #:phases
12254 (modify-phases %standard-phases
12255 (add-before 'build 'copy-resources
12256 (lambda _
12257 (copy-recursively "biojava-phylo/src/main/resources"
12258 "build/classes")
12259 #t))
12260 (add-before 'check 'copy-test-resources
12261 (lambda _
12262 (copy-recursively "biojava-phylo/src/test/resources"
12263 "build/test-classes")
12264 #t)))))
12265 (propagated-inputs
12266 `(("java-log4j-api" ,java-log4j-api)
12267 ("java-log4j-core" ,java-log4j-core)
12268 ("java-slf4j-api" ,java-slf4j-api)
12269 ("java-slf4j-simple" ,java-slf4j-simple)
12270 ("java-biojava-core" ,java-biojava-core)
12271 ("java-forester" ,java-forester)))
12272 (native-inputs
12273 `(("java-junit" ,java-junit)
12274 ("java-hamcrest-core" ,java-hamcrest-core)))
12275 (home-page "http://biojava.org")
12276 (synopsis "Biojava interface to the forester phylogenomics library")
12277 (description "The phylo module provides a biojava interface layer to the
12278 forester phylogenomics library for constructing phylogenetic trees.")))
12279
12280 (define-public java-biojava-alignment
12281 (package (inherit java-biojava-core)
12282 (name "java-biojava-alignment")
12283 (build-system ant-build-system)
12284 (arguments
12285 `(#:jdk ,icedtea-8
12286 #:jar-name "biojava-alignment.jar"
12287 #:source-dir "biojava-alignment/src/main/java/"
12288 #:test-dir "biojava-alignment/src/test"
12289 #:phases
12290 (modify-phases %standard-phases
12291 (add-before 'build 'copy-resources
12292 (lambda _
12293 (copy-recursively "biojava-alignment/src/main/resources"
12294 "build/classes")
12295 #t))
12296 (add-before 'check 'copy-test-resources
12297 (lambda _
12298 (copy-recursively "biojava-alignment/src/test/resources"
12299 "build/test-classes")
12300 #t)))))
12301 (propagated-inputs
12302 `(("java-log4j-api" ,java-log4j-api)
12303 ("java-log4j-core" ,java-log4j-core)
12304 ("java-slf4j-api" ,java-slf4j-api)
12305 ("java-slf4j-simple" ,java-slf4j-simple)
12306 ("java-biojava-core" ,java-biojava-core)
12307 ("java-biojava-phylo" ,java-biojava-phylo)
12308 ("java-forester" ,java-forester)))
12309 (native-inputs
12310 `(("java-junit" ,java-junit)
12311 ("java-hamcrest-core" ,java-hamcrest-core)))
12312 (home-page "http://biojava.org")
12313 (synopsis "Biojava API for genetic sequence alignment")
12314 (description "The alignment module of BioJava provides an API that
12315 contains
12316
12317 @itemize
12318 @item implementations of dynamic programming algorithms for sequence
12319 alignment;
12320 @item reading and writing of popular alignment file formats;
12321 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12322 @end itemize\n")))
12323
12324 (define-public java-biojava-core-4.0
12325 (package (inherit java-biojava-core)
12326 (name "java-biojava-core")
12327 (version "4.0.0")
12328 (source (origin
12329 (method git-fetch)
12330 (uri (git-reference
12331 (url "https://github.com/biojava/biojava")
12332 (commit (string-append "biojava-" version))))
12333 (file-name (string-append name "-" version "-checkout"))
12334 (sha256
12335 (base32
12336 "13675f6y9aqi7bi2lk3s1z7a22ynccjiqwa8izh7p97xi9wsfmd8"))))))
12337
12338 (define-public java-biojava-phylo-4.0
12339 (package (inherit java-biojava-core-4.0)
12340 (name "java-biojava-phylo")
12341 (build-system ant-build-system)
12342 (arguments
12343 `(#:jdk ,icedtea-8
12344 #:jar-name "biojava-phylo.jar"
12345 #:source-dir "biojava-phylo/src/main/java/"
12346 #:test-dir "biojava-phylo/src/test"
12347 #:phases
12348 (modify-phases %standard-phases
12349 (add-before 'build 'copy-resources
12350 (lambda _
12351 (copy-recursively "biojava-phylo/src/main/resources"
12352 "build/classes")
12353 #t))
12354 (add-before 'check 'copy-test-resources
12355 (lambda _
12356 (copy-recursively "biojava-phylo/src/test/resources"
12357 "build/test-classes")
12358 #t)))))
12359 (propagated-inputs
12360 `(("java-log4j-api" ,java-log4j-api)
12361 ("java-log4j-core" ,java-log4j-core)
12362 ("java-slf4j-api" ,java-slf4j-api)
12363 ("java-slf4j-simple" ,java-slf4j-simple)
12364 ("java-biojava-core" ,java-biojava-core-4.0)
12365 ("java-forester" ,java-forester-1.005)))
12366 (native-inputs
12367 `(("java-junit" ,java-junit)
12368 ("java-hamcrest-core" ,java-hamcrest-core)))
12369 (home-page "http://biojava.org")
12370 (synopsis "Biojava interface to the forester phylogenomics library")
12371 (description "The phylo module provides a biojava interface layer to the
12372 forester phylogenomics library for constructing phylogenetic trees.")))
12373
12374 (define-public java-biojava-alignment-4.0
12375 (package (inherit java-biojava-core-4.0)
12376 (name "java-biojava-alignment")
12377 (build-system ant-build-system)
12378 (arguments
12379 `(#:jdk ,icedtea-8
12380 #:jar-name "biojava-alignment.jar"
12381 #:source-dir "biojava-alignment/src/main/java/"
12382 #:test-dir "biojava-alignment/src/test"
12383 #:phases
12384 (modify-phases %standard-phases
12385 (add-before 'build 'copy-resources
12386 (lambda _
12387 (copy-recursively "biojava-alignment/src/main/resources"
12388 "build/classes")
12389 #t))
12390 (add-before 'check 'copy-test-resources
12391 (lambda _
12392 (copy-recursively "biojava-alignment/src/test/resources"
12393 "build/test-classes")
12394 #t)))))
12395 (propagated-inputs
12396 `(("java-log4j-api" ,java-log4j-api)
12397 ("java-log4j-core" ,java-log4j-core)
12398 ("java-slf4j-api" ,java-slf4j-api)
12399 ("java-slf4j-simple" ,java-slf4j-simple)
12400 ("java-biojava-core" ,java-biojava-core-4.0)
12401 ("java-biojava-phylo" ,java-biojava-phylo-4.0)
12402 ("java-forester" ,java-forester-1.005)))
12403 (native-inputs
12404 `(("java-junit" ,java-junit)
12405 ("java-hamcrest-core" ,java-hamcrest-core)))
12406 (home-page "http://biojava.org")
12407 (synopsis "Biojava API for genetic sequence alignment")
12408 (description "The alignment module of BioJava provides an API that
12409 contains
12410
12411 @itemize
12412 @item implementations of dynamic programming algorithms for sequence
12413 alignment;
12414 @item reading and writing of popular alignment file formats;
12415 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12416 @end itemize\n")))
12417
12418 (define-public dropseq-tools
12419 (package
12420 (name "dropseq-tools")
12421 (version "1.13")
12422 (source
12423 (origin
12424 (method url-fetch)
12425 (uri "http://mccarrolllab.com/download/1276/")
12426 (file-name (string-append "dropseq-tools-" version ".zip"))
12427 (sha256
12428 (base32
12429 "0yrffckxqk5l8b5xb6z4laq157zd9mdypr2p4b4vq2bhjzi1sj0s"))
12430 ;; Delete bundled libraries
12431 (modules '((guix build utils)))
12432 (snippet
12433 '(begin
12434 (for-each delete-file (find-files "jar/lib" "\\.jar$"))
12435 (delete-file-recursively "3rdParty")
12436 #t))))
12437 (build-system ant-build-system)
12438 (arguments
12439 `(#:tests? #f ; test data are not included
12440 #:test-target "test"
12441 #:build-target "all"
12442 #:source-dir "public/src/"
12443 #:jdk ,icedtea-8
12444 #:make-flags
12445 (list (string-append "-Dpicard.executable.dir="
12446 (assoc-ref %build-inputs "java-picard")
12447 "/share/java/"))
12448 #:modules ((ice-9 match)
12449 (srfi srfi-1)
12450 (guix build utils)
12451 (guix build java-utils)
12452 (guix build ant-build-system))
12453 #:phases
12454 (modify-phases %standard-phases
12455 ;; FIXME: fails with "java.io.FileNotFoundException:
12456 ;; /gnu/store/…-dropseq-tools-1.13/share/java/lib/biojava-alignment.jar"
12457 (delete 'generate-jar-indices)
12458 ;; All dependencies must be linked to "lib", because that's where
12459 ;; they will be searched for when the Class-Path property of the
12460 ;; manifest is computed.
12461 (add-after 'unpack 'record-references
12462 (lambda* (#:key inputs #:allow-other-keys)
12463 (mkdir-p "jar/lib")
12464 (let ((dirs (filter-map (match-lambda
12465 ((name . dir)
12466 (if (and (string-prefix? "java-" name)
12467 (not (string=? name "java-testng")))
12468 dir #f)))
12469 inputs)))
12470 (for-each (lambda (jar)
12471 (symlink jar (string-append "jar/lib/" (basename jar))))
12472 (append-map (lambda (dir) (find-files dir "\\.jar$"))
12473 dirs)))
12474 #t))
12475 ;; There is no installation target
12476 (replace 'install
12477 (lambda* (#:key inputs outputs #:allow-other-keys)
12478 (let* ((out (assoc-ref outputs "out"))
12479 (bin (string-append out "/bin"))
12480 (share (string-append out "/share/java/"))
12481 (lib (string-append share "/lib/"))
12482 (scripts (list "BAMTagHistogram"
12483 "BAMTagofTagCounts"
12484 "BaseDistributionAtReadPosition"
12485 "CollapseBarcodesInPlace"
12486 "CollapseTagWithContext"
12487 "ConvertToRefFlat"
12488 "CreateIntervalsFiles"
12489 "DetectBeadSynthesisErrors"
12490 "DigitalExpression"
12491 "Drop-seq_alignment.sh"
12492 "FilterBAM"
12493 "FilterBAMByTag"
12494 "GatherGeneGCLength"
12495 "GatherMolecularBarcodeDistributionByGene"
12496 "GatherReadQualityMetrics"
12497 "PolyATrimmer"
12498 "ReduceGTF"
12499 "SelectCellsByNumTranscripts"
12500 "SingleCellRnaSeqMetricsCollector"
12501 "TagBamWithReadSequenceExtended"
12502 "TagReadWithGeneExon"
12503 "TagReadWithInterval"
12504 "TrimStartingSequence"
12505 "ValidateReference")))
12506 (for-each mkdir-p (list bin share lib))
12507 (install-file "dist/dropseq.jar" share)
12508 (for-each (lambda (script)
12509 (chmod script #o555)
12510 (install-file script bin))
12511 scripts)
12512 (substitute* (map (lambda (script)
12513 (string-append bin "/" script))
12514 scripts)
12515 (("^java") (which "java"))
12516 (("jar_deploy_dir=.*")
12517 (string-append "jar_deploy_dir=" share "\n"))))
12518 #t))
12519 ;; FIXME: We do this after stripping jars because we don't want it to
12520 ;; copy all these jars and strip them. We only want to install
12521 ;; links. Arguably, this is a problem with the ant-build-system.
12522 (add-after 'strip-jar-timestamps 'install-links
12523 (lambda* (#:key outputs #:allow-other-keys)
12524 (let* ((out (assoc-ref outputs "out"))
12525 (share (string-append out "/share/java/"))
12526 (lib (string-append share "/lib/")))
12527 (for-each (lambda (jar)
12528 (symlink (readlink jar)
12529 (string-append lib (basename jar))))
12530 (find-files "jar/lib" "\\.jar$")))
12531 #t)))))
12532 (inputs
12533 `(("jdk" ,icedtea-8)
12534 ("java-picard" ,java-picard-2.10.3)
12535 ("java-log4j-1.2-api" ,java-log4j-1.2-api)
12536 ("java-commons-math3" ,java-commons-math3)
12537 ("java-commons-jexl2" ,java-commons-jexl-2)
12538 ("java-commons-collections4" ,java-commons-collections4)
12539 ("java-commons-lang2" ,java-commons-lang)
12540 ("java-commons-io" ,java-commons-io)
12541 ("java-snappy-1.0.3-rc3" ,java-snappy-1)
12542 ("java-guava" ,java-guava)
12543 ("java-la4j" ,java-la4j)
12544 ("java-biojava-core" ,java-biojava-core-4.0)
12545 ("java-biojava-alignment" ,java-biojava-alignment-4.0)
12546 ("java-jdistlib" ,java-jdistlib)
12547 ("java-simple-xml" ,java-simple-xml)
12548 ("java-snakeyaml" ,java-snakeyaml)))
12549 (native-inputs
12550 `(("unzip" ,unzip)
12551 ("java-testng" ,java-testng)))
12552 (home-page "http://mccarrolllab.com/dropseq/")
12553 (synopsis "Tools for Drop-seq analyses")
12554 (description "Drop-seq is a technology to enable biologists to
12555 analyze RNA expression genome-wide in thousands of individual cells at
12556 once. This package provides tools to perform Drop-seq analyses.")
12557 (license license:expat)))
12558
12559 (define-public pigx-rnaseq
12560 (package
12561 (name "pigx-rnaseq")
12562 (version "0.0.10")
12563 (source (origin
12564 (method url-fetch)
12565 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_rnaseq/"
12566 "releases/download/v" version
12567 "/pigx_rnaseq-" version ".tar.gz"))
12568 (sha256
12569 (base32
12570 "0z3hr120wk2vrlmlpz1vp3n9wy3rq4y2mnzh2vf08qgqn2xfdwcw"))))
12571 (build-system gnu-build-system)
12572 (arguments
12573 `(#:parallel-tests? #f ; not supported
12574 #:phases
12575 (modify-phases %standard-phases
12576 ;; "test.sh" runs STAR, which requires excessive amounts of memory.
12577 (add-after 'unpack 'disable-resource-intensive-test
12578 (lambda _
12579 (substitute* "Makefile.in"
12580 (("(^ tests/test_trim_galore/test.sh).*" _ m) m)
12581 (("^ tests/test_multiqc/test.sh") "")
12582 (("^ test.sh") ""))
12583 #t)))))
12584 (inputs
12585 `(("coreutils" ,coreutils)
12586 ("sed" ,sed)
12587 ("gzip" ,gzip)
12588 ("snakemake" ,snakemake)
12589 ("fastqc" ,fastqc)
12590 ("multiqc" ,multiqc)
12591 ("star" ,star)
12592 ("trim-galore" ,trim-galore)
12593 ("htseq" ,htseq)
12594 ("samtools" ,samtools)
12595 ("r-minimal" ,r-minimal)
12596 ("r-rmarkdown" ,r-rmarkdown)
12597 ("r-ggplot2" ,r-ggplot2)
12598 ("r-ggrepel" ,r-ggrepel)
12599 ("r-gprofiler" ,r-gprofiler)
12600 ("r-deseq2" ,r-deseq2)
12601 ("r-dt" ,r-dt)
12602 ("r-knitr" ,r-knitr)
12603 ("r-pheatmap" ,r-pheatmap)
12604 ("r-corrplot" ,r-corrplot)
12605 ("r-reshape2" ,r-reshape2)
12606 ("r-plotly" ,r-plotly)
12607 ("r-scales" ,r-scales)
12608 ("r-summarizedexperiment" ,r-summarizedexperiment)
12609 ("r-crosstalk" ,r-crosstalk)
12610 ("r-tximport" ,r-tximport)
12611 ("r-rtracklayer" ,r-rtracklayer)
12612 ("r-rjson" ,r-rjson)
12613 ("salmon" ,salmon)
12614 ("ghc-pandoc" ,ghc-pandoc)
12615 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12616 ("python-wrapper" ,python-wrapper)
12617 ("python-pyyaml" ,python-pyyaml)))
12618 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12619 (synopsis "Analysis pipeline for RNA sequencing experiments")
12620 (description "PiGX RNAseq is an analysis pipeline for preprocessing and
12621 reporting for RNA sequencing experiments. It is easy to use and produces high
12622 quality reports. The inputs are reads files from the sequencing experiment,
12623 and a configuration file which describes the experiment. In addition to
12624 quality control of the experiment, the pipeline produces a differential
12625 expression report comparing samples in an easily configurable manner.")
12626 (license license:gpl3+)))
12627
12628 (define-public pigx-chipseq
12629 (package
12630 (name "pigx-chipseq")
12631 (version "0.0.41")
12632 (source (origin
12633 (method url-fetch)
12634 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_chipseq/"
12635 "releases/download/v" version
12636 "/pigx_chipseq-" version ".tar.gz"))
12637 (sha256
12638 (base32
12639 "0akbxdmsjsq5fzbwaap04hqjpsfgv1l6yrc2pwgbya1xgqvcq6vy"))))
12640 (build-system gnu-build-system)
12641 ;; parts of the tests rely on access to the network
12642 (arguments '(#:tests? #f))
12643 (inputs
12644 `(("grep" ,grep)
12645 ("coreutils" ,coreutils)
12646 ("r-minimal" ,r-minimal)
12647 ("r-argparser" ,r-argparser)
12648 ("r-biocparallel" ,r-biocparallel)
12649 ("r-biostrings" ,r-biostrings)
12650 ("r-chipseq" ,r-chipseq)
12651 ("r-data-table" ,r-data-table)
12652 ("r-dplyr" ,r-dplyr)
12653 ("r-genomation" ,r-genomation)
12654 ("r-genomicalignments" ,r-genomicalignments)
12655 ("r-genomicranges" ,r-genomicranges)
12656 ("r-rsamtools" ,r-rsamtools)
12657 ("r-rtracklayer" ,r-rtracklayer)
12658 ("r-s4vectors" ,r-s4vectors)
12659 ("r-stringr" ,r-stringr)
12660 ("r-tibble" ,r-tibble)
12661 ("r-tidyr" ,r-tidyr)
12662 ("r-jsonlite" ,r-jsonlite)
12663 ("r-heatmaply" ,r-heatmaply)
12664 ("r-htmlwidgets" ,r-htmlwidgets)
12665 ("r-ggplot2" ,r-ggplot2)
12666 ("r-plotly" ,r-plotly)
12667 ("r-rmarkdown" ,r-rmarkdown)
12668 ("python-wrapper" ,python-wrapper)
12669 ("python-pyyaml" ,python-pyyaml)
12670 ("python-magic" ,python-magic)
12671 ("python-xlrd" ,python-xlrd)
12672 ("trim-galore" ,trim-galore)
12673 ("macs" ,macs)
12674 ("multiqc" ,multiqc)
12675 ("perl" ,perl)
12676 ("ghc-pandoc" ,ghc-pandoc)
12677 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12678 ("fastqc" ,fastqc)
12679 ("bowtie" ,bowtie)
12680 ("idr" ,idr)
12681 ("snakemake" ,snakemake)
12682 ("samtools" ,samtools)
12683 ("bedtools" ,bedtools)
12684 ("kentutils" ,kentutils)))
12685 (native-inputs
12686 `(("python-pytest" ,python-pytest)))
12687 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12688 (synopsis "Analysis pipeline for ChIP sequencing experiments")
12689 (description "PiGX ChIPseq is an analysis pipeline for preprocessing, peak
12690 calling and reporting for ChIP sequencing experiments. It is easy to use and
12691 produces high quality reports. The inputs are reads files from the sequencing
12692 experiment, and a configuration file which describes the experiment. In
12693 addition to quality control of the experiment, the pipeline enables to set up
12694 multiple peak calling analysis and allows the generation of a UCSC track hub
12695 in an easily configurable manner.")
12696 (license license:gpl3+)))
12697
12698 (define-public pigx-bsseq
12699 (package
12700 (name "pigx-bsseq")
12701 (version "0.0.10")
12702 (source (origin
12703 (method url-fetch)
12704 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_bsseq/"
12705 "releases/download/v" version
12706 "/pigx_bsseq-" version ".tar.gz"))
12707 (sha256
12708 (base32
12709 "0l97wvkq4diq8lcarraj33bby1zzf0w804jwi8mlc5qddp8idwhy"))))
12710 (build-system gnu-build-system)
12711 (arguments
12712 `(#:phases
12713 (modify-phases %standard-phases
12714 (add-before 'check 'set-timezone
12715 ;; The readr package is picky about timezones.
12716 (lambda* (#:key inputs #:allow-other-keys)
12717 (setenv "TZ" "UTC+1")
12718 (setenv "TZDIR"
12719 (string-append (assoc-ref inputs "tzdata")
12720 "/share/zoneinfo"))
12721 #t)))))
12722 (native-inputs
12723 `(("tzdata" ,tzdata)))
12724 (inputs
12725 `(("coreutils" ,coreutils)
12726 ("sed" ,sed)
12727 ("grep" ,grep)
12728 ("r-minimal" ,r-minimal)
12729 ("r-annotationhub" ,r-annotationhub)
12730 ("r-dt" ,r-dt)
12731 ("r-genomation" ,r-genomation)
12732 ("r-methylkit" ,r-methylkit)
12733 ("r-rtracklayer" ,r-rtracklayer)
12734 ("r-rmarkdown" ,r-rmarkdown)
12735 ("r-bookdown" ,r-bookdown)
12736 ("r-ggplot2" ,r-ggplot2)
12737 ("r-ggbio" ,r-ggbio)
12738 ("ghc-pandoc" ,ghc-pandoc)
12739 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12740 ("python-wrapper" ,python-wrapper)
12741 ("python-pyyaml" ,python-pyyaml)
12742 ("snakemake" ,snakemake)
12743 ("bismark" ,bismark)
12744 ("fastqc" ,fastqc)
12745 ("bowtie" ,bowtie)
12746 ("trim-galore" ,trim-galore)
12747 ("cutadapt" ,cutadapt)
12748 ("samtools" ,samtools)))
12749 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12750 (synopsis "Bisulfite sequencing pipeline from fastq to methylation reports")
12751 (description "PiGx BSseq is a data processing pipeline for raw fastq read
12752 data of bisulfite experiments; it produces reports on aggregate methylation
12753 and coverage and can be used to produce information on differential
12754 methylation and segmentation.")
12755 (license license:gpl3+)))
12756
12757 (define-public pigx-scrnaseq
12758 (package
12759 (name "pigx-scrnaseq")
12760 (version "0.0.8")
12761 (source (origin
12762 (method url-fetch)
12763 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_scrnaseq/"
12764 "releases/download/v" version
12765 "/pigx_scrnaseq-" version ".tar.gz"))
12766 (sha256
12767 (base32
12768 "0zv0sc5amivxhb95vx2gfx6l9bh7n80fh7h47dalnwxxnfvnzai4"))))
12769 (build-system gnu-build-system)
12770 (arguments
12771 `(#:configure-flags
12772 (list (string-append "PICARDJAR=" (assoc-ref %build-inputs "java-picard")
12773 "/share/java/picard.jar")
12774 (string-append "DROPSEQJAR=" (assoc-ref %build-inputs "dropseq-tools")
12775 "/share/java/dropseq.jar"))))
12776 (inputs
12777 `(("coreutils" ,coreutils)
12778 ("perl" ,perl)
12779 ("dropseq-tools" ,dropseq-tools)
12780 ("fastqc" ,fastqc)
12781 ("java-picard" ,java-picard-2.10.3) ; same as for dropseq
12782 ("java" ,icedtea-8)
12783 ("python-wrapper" ,python-wrapper)
12784 ("python-pyyaml" ,python-pyyaml)
12785 ("python-pandas" ,python-pandas)
12786 ("python-magic" ,python-magic)
12787 ("python-numpy" ,python-numpy)
12788 ("python-loompy" ,python-loompy-for-pigx-scrnaseq)
12789 ("ghc-pandoc" ,ghc-pandoc)
12790 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12791 ("samtools" ,samtools)
12792 ("snakemake" ,snakemake)
12793 ("star" ,star)
12794 ("r-minimal" ,r-minimal)
12795 ("r-argparser" ,r-argparser)
12796 ("r-cowplot" ,r-cowplot)
12797 ("r-data-table" ,r-data-table)
12798 ("r-delayedarray" ,r-delayedarray)
12799 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
12800 ("r-dplyr" ,r-dplyr)
12801 ("r-dropbead" ,r-dropbead)
12802 ("r-dt" ,r-dt)
12803 ("r-genomicalignments" ,r-genomicalignments)
12804 ("r-genomicfiles" ,r-genomicfiles)
12805 ("r-genomicranges" ,r-genomicranges)
12806 ("r-ggplot2" ,r-ggplot2)
12807 ("r-hdf5array" ,r-hdf5array)
12808 ("r-pheatmap" ,r-pheatmap)
12809 ("r-rmarkdown" ,r-rmarkdown)
12810 ("r-rsamtools" ,r-rsamtools)
12811 ("r-rtracklayer" ,r-rtracklayer)
12812 ("r-rtsne" ,r-rtsne)
12813 ("r-scater" ,r-scater)
12814 ("r-scran" ,r-scran)
12815 ("r-singlecellexperiment" ,r-singlecellexperiment)
12816 ("r-stringr" ,r-stringr)
12817 ("r-yaml" ,r-yaml)))
12818 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12819 (synopsis "Analysis pipeline for single-cell RNA sequencing experiments")
12820 (description "PiGX scRNAseq is an analysis pipeline for preprocessing and
12821 quality control for single cell RNA sequencing experiments. The inputs are
12822 read files from the sequencing experiment, and a configuration file which
12823 describes the experiment. It produces processed files for downstream analysis
12824 and interactive quality reports. The pipeline is designed to work with UMI
12825 based methods.")
12826 (license license:gpl3+)))
12827
12828 (define-public pigx
12829 (package
12830 (name "pigx")
12831 (version "0.0.3")
12832 (source (origin
12833 (method url-fetch)
12834 (uri (string-append "https://github.com/BIMSBbioinfo/pigx/"
12835 "releases/download/v" version
12836 "/pigx-" version ".tar.gz"))
12837 (sha256
12838 (base32
12839 "1i5njdy1clj5ncw45d16p7mwmqvb1ilikl9n797pxklc3f4s7mq7"))))
12840 (build-system gnu-build-system)
12841 (inputs
12842 `(("python" ,python)
12843 ("pigx-bsseq" ,pigx-bsseq)
12844 ("pigx-chipseq" ,pigx-chipseq)
12845 ("pigx-rnaseq" ,pigx-rnaseq)
12846 ("pigx-scrnaseq" ,pigx-scrnaseq)))
12847 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12848 (synopsis "Analysis pipelines for genomics")
12849 (description "PiGx is a collection of genomics pipelines. It includes the
12850 following pipelines:
12851
12852 @itemize
12853 @item PiGx BSseq for raw fastq read data of bisulfite experiments
12854 @item PiGx RNAseq for RNAseq samples
12855 @item PiGx scRNAseq for single cell dropseq analysis
12856 @item PiGx ChIPseq for reads from ChIPseq experiments
12857 @end itemize
12858
12859 All pipelines are easily configured with a simple sample sheet and a
12860 descriptive settings file. The result is a set of comprehensive, interactive
12861 HTML reports with interesting findings about your samples.")
12862 (license license:gpl3+)))
12863
12864 (define-public genrich
12865 (package
12866 (name "genrich")
12867 (version "0.5")
12868 (source (origin
12869 (method git-fetch)
12870 (uri (git-reference
12871 (url "https://github.com/jsh58/Genrich.git")
12872 (commit (string-append "v" version))))
12873 (file-name (git-file-name name version))
12874 (sha256
12875 (base32
12876 "0x0q6z0208n3cxzqjla4rgjqpyqgwpmz27852lcvzkzaigymq4zp"))))
12877 (build-system gnu-build-system)
12878 (arguments
12879 `(#:tests? #f ; there are none
12880 #:phases
12881 (modify-phases %standard-phases
12882 (delete 'configure)
12883 (replace 'install
12884 (lambda* (#:key outputs #:allow-other-keys)
12885 (install-file "Genrich" (string-append (assoc-ref outputs "out") "/bin"))
12886 #t)))))
12887 (inputs
12888 `(("zlib" ,zlib)))
12889 (home-page "https://github.com/jsh58/Genrich")
12890 (synopsis "Detecting sites of genomic enrichment")
12891 (description "Genrich is a peak-caller for genomic enrichment
12892 assays (e.g. ChIP-seq, ATAC-seq). It analyzes alignment files generated
12893 following the assay and produces a file detailing peaks of significant
12894 enrichment.")
12895 (license license:expat)))
12896
12897 (define-public mantis
12898 (let ((commit "4ffd171632c2cb0056a86d709dfd2bf21bc69b84")
12899 (revision "1"))
12900 (package
12901 (name "mantis")
12902 (version (git-version "0" revision commit))
12903 (source (origin
12904 (method git-fetch)
12905 (uri (git-reference
12906 (url "https://github.com/splatlab/mantis.git")
12907 (commit commit)))
12908 (file-name (git-file-name name version))
12909 (sha256
12910 (base32
12911 "0iqbr0dhmlc8mzpirmm2s4pkzkwdgrcx50yx6cv3wlr2qi064p55"))))
12912 (build-system cmake-build-system)
12913 (arguments '(#:tests? #f)) ; there are none
12914 (inputs
12915 `(("sdsl-lite" ,sdsl-lite)
12916 ("openssl" ,openssl)
12917 ("zlib" ,zlib)))
12918 (home-page "https://github.com/splatlab/mantis")
12919 (synopsis "Large-scale sequence-search index data structure")
12920 (description "Mantis is a space-efficient data structure that can be
12921 used to index thousands of raw-read genomics experiments and facilitate
12922 large-scale sequence searches on those experiments. Mantis uses counting
12923 quotient filters instead of Bloom filters, enabling rapid index builds and
12924 queries, small indexes, and exact results, i.e., no false positives or
12925 negatives. Furthermore, Mantis is also a colored de Bruijn graph
12926 representation, so it supports fast graph traversal and other topological
12927 analyses in addition to large-scale sequence-level searches.")
12928 ;; uses __uint128_t and inline assembly
12929 (supported-systems '("x86_64-linux"))
12930 (license license:bsd-3))))
12931
12932 (define-public r-diversitree
12933 (package
12934 (name "r-diversitree")
12935 (version "0.9-11")
12936 (source
12937 (origin
12938 (method url-fetch)
12939 (uri (cran-uri "diversitree" version))
12940 (sha256
12941 (base32
12942 "1jqfjmmaigq581l4zxysmkhld0xv6izlbr1hihf9zplkix36majc"))))
12943 (build-system r-build-system)
12944 (native-inputs
12945 `(("gfortran" ,gfortran)))
12946 (inputs `(("fftw" ,fftw) ("gsl" ,gsl)))
12947 (propagated-inputs
12948 `(("r-ape" ,r-ape)
12949 ("r-desolve" ,r-desolve)
12950 ("r-rcpp" ,r-rcpp)
12951 ("r-subplex" ,r-subplex)))
12952 (home-page "https://www.zoology.ubc.ca/prog/diversitree")
12953 (synopsis "Comparative 'phylogenetic' analyses of diversification")
12954 (description "This package contains a number of comparative \"phylogenetic\"
12955 methods, mostly focusing on analysing diversification and character evolution.
12956 Contains implementations of \"BiSSE\" (Binary State Speciation and Extinction)
12957 and its unresolved tree extensions, \"MuSSE\" (Multiple State Speciation and
12958 Extinction), \"QuaSSE\", \"GeoSSE\", and \"BiSSE-ness\" Other included methods
12959 include Markov models of discrete and continuous trait evolution and constant
12960 rate speciation and extinction.")
12961 (license license:gpl2+)))
12962
12963 (define-public sjcount
12964 ;; There is no tag for version 3.2, nor is there a release archive.
12965 (let ((commit "292d3917cadb3f6834c81e509c30e61cd7ead6e5")
12966 (revision "1"))
12967 (package
12968 (name "sjcount")
12969 (version (git-version "3.2" revision commit))
12970 (source (origin
12971 (method git-fetch)
12972 (uri (git-reference
12973 (url "https://github.com/pervouchine/sjcount-full.git")
12974 (commit commit)))
12975 (file-name (string-append name "-" version "-checkout"))
12976 (sha256
12977 (base32
12978 "0gdgj35j249f04rqgq8ymcc1xg1vi9kzbajnjqpaq2wpbh8bl234"))))
12979 (build-system gnu-build-system)
12980 (arguments
12981 `(#:tests? #f ; requires a 1.4G test file
12982 #:make-flags
12983 (list (string-append "SAMTOOLS_DIR="
12984 (assoc-ref %build-inputs "samtools")
12985 "/lib/"))
12986 #:phases
12987 (modify-phases %standard-phases
12988 (replace 'configure
12989 (lambda* (#:key inputs #:allow-other-keys)
12990 (substitute* "makefile"
12991 (("-I \\$\\{SAMTOOLS_DIR\\}")
12992 (string-append "-I" (assoc-ref inputs "samtools")
12993 "/include/samtools"))
12994 (("-lz ") "-lz -lpthread "))
12995 #t))
12996 (replace 'install
12997 (lambda* (#:key outputs #:allow-other-keys)
12998 (for-each (lambda (tool)
12999 (install-file tool
13000 (string-append (assoc-ref outputs "out")
13001 "/bin")))
13002 '("j_count" "b_count" "sjcount"))
13003 #t)))))
13004 (inputs
13005 `(("samtools" ,samtools-0.1)
13006 ("zlib" ,zlib)))
13007 (home-page "https://github.com/pervouchine/sjcount-full/")
13008 (synopsis "Annotation-agnostic splice junction counting pipeline")
13009 (description "Sjcount is a utility for fast quantification of splice
13010 junctions in RNA-seq data. It is annotation-agnostic and offset-aware. This
13011 version does count multisplits.")
13012 (license license:gpl3+))))
13013
13014 (define-public minimap2
13015 (package
13016 (name "minimap2")
13017 (version "2.10")
13018 (source
13019 (origin
13020 (method url-fetch)
13021 (uri (string-append "https://github.com/lh3/minimap2/"
13022 "releases/download/v" version "/"
13023 "minimap2-" version ".tar.bz2"))
13024 (sha256
13025 (base32
13026 "080w9066irkbhbyr4nmf19pzkdd2s4v31hpzlajgq2y0drr6zcsj"))))
13027 (build-system gnu-build-system)
13028 (arguments
13029 `(#:tests? #f ; there are none
13030 #:make-flags
13031 (list "CC=gcc"
13032 (let ((system ,(or (%current-target-system)
13033 (%current-system))))
13034 (cond
13035 ((string-prefix? "x86_64" system)
13036 "all")
13037 ((or (string-prefix? "armhf" system)
13038 (string-prefix? "aarch64" system))
13039 "arm_neon=1")
13040 (_ "sse2only=1"))))
13041 #:phases
13042 (modify-phases %standard-phases
13043 (delete 'configure)
13044 (replace 'install
13045 (lambda* (#:key outputs #:allow-other-keys)
13046 (let* ((out (assoc-ref outputs "out"))
13047 (bin (string-append out "/bin"))
13048 (man (string-append out "/share/man/man1")))
13049 (install-file "minimap2" bin)
13050 (mkdir-p man)
13051 (install-file "minimap2.1" man))
13052 #t)))))
13053 (inputs
13054 `(("zlib" ,zlib)))
13055 (home-page "https://lh3.github.io/minimap2/")
13056 (synopsis "Pairwise aligner for genomic and spliced nucleotide sequences")
13057 (description "Minimap2 is a versatile sequence alignment program that
13058 aligns DNA or mRNA sequences against a large reference database. Typical use
13059 cases include:
13060
13061 @enumerate
13062 @item mapping PacBio or Oxford Nanopore genomic reads to the human genome;
13063 @item finding overlaps between long reads with error rate up to ~15%;
13064 @item splice-aware alignment of PacBio Iso-Seq or Nanopore cDNA or Direct RNA
13065 reads against a reference genome;
13066 @item aligning Illumina single- or paired-end reads;
13067 @item assembly-to-assembly alignment;
13068 @item full-genome alignment between two closely related species with
13069 divergence below ~15%.
13070 @end enumerate\n")
13071 (license license:expat)))
13072
13073 (define-public r-circus
13074 (package
13075 (name "r-circus")
13076 (version "0.1.5")
13077 (source
13078 (origin
13079 (method git-fetch)
13080 (uri (git-reference
13081 (url "https://github.com/BIMSBbioinfo/ciRcus.git")
13082 (commit (string-append "v" version))))
13083 (file-name (git-file-name name version))
13084 (sha256
13085 (base32
13086 "0jhjn3ilb057hbf6yzrihj13ifxxs32y7nkby8l3lkm28dg4p97h"))))
13087 (build-system r-build-system)
13088 (propagated-inputs
13089 `(("r-annotationdbi" ,r-annotationdbi)
13090 ("r-annotationhub" ,r-annotationhub)
13091 ("r-biomart" ,r-biomart)
13092 ("r-data-table" ,r-data-table)
13093 ("r-dbi" ,r-dbi)
13094 ("r-genomicfeatures" ,r-genomicfeatures)
13095 ("r-genomicranges" ,r-genomicranges)
13096 ("r-ggplot2" ,r-ggplot2)
13097 ("r-hash" ,r-hash)
13098 ("r-iranges" ,r-iranges)
13099 ("r-rcolorbrewer" ,r-rcolorbrewer)
13100 ("r-rmysql" ,r-rmysql)
13101 ("r-s4vectors" ,r-s4vectors)
13102 ("r-stringr" ,r-stringr)
13103 ("r-summarizedexperiment" ,r-summarizedexperiment)))
13104 (native-inputs
13105 `(("r-knitr" ,r-knitr)))
13106 (home-page "https://github.com/BIMSBbioinfo/ciRcus")
13107 (synopsis "Annotation, analysis and visualization of circRNA data")
13108 (description "Circus is an R package for annotation, analysis and
13109 visualization of circRNA data. Users can annotate their circRNA candidates
13110 with host genes, gene featrues they are spliced from, and discriminate between
13111 known and yet unknown splice junctions. Circular-to-linear ratios of circRNAs
13112 can be calculated, and a number of descriptive plots easily generated.")
13113 (license license:artistic2.0)))
13114
13115 (define-public gffread
13116 ;; We cannot use the tagged release because it is not in sync with gclib.
13117 ;; See https://github.com/gpertea/gffread/issues/26
13118 (let ((commit "ba7535fcb3cea55a6e5a491d916e93b454e87fd0")
13119 (revision "1"))
13120 (package
13121 (name "gffread")
13122 (version (git-version "0.9.12" revision commit))
13123 (source
13124 (origin
13125 (method git-fetch)
13126 (uri (git-reference
13127 (url "https://github.com/gpertea/gffread.git")
13128 (commit commit)))
13129 (file-name (git-file-name name version))
13130 (sha256
13131 (base32
13132 "1dl2nbcg96lxpd0drg48ssa8343nf7pw9s9mkrc4mjjmfwsin3ki"))))
13133 (build-system gnu-build-system)
13134 (arguments
13135 `(#:tests? #f ; no check target
13136 #:make-flags
13137 (list "GCLDIR=gclib")
13138 #:phases
13139 (modify-phases %standard-phases
13140 (delete 'configure)
13141 (add-after 'unpack 'copy-gclib-source
13142 (lambda* (#:key inputs #:allow-other-keys)
13143 (mkdir-p "gclib")
13144 (copy-recursively (assoc-ref inputs "gclib-source") "gclib")
13145 #t))
13146 ;; There is no install target
13147 (replace 'install
13148 (lambda* (#:key outputs #:allow-other-keys)
13149 (let* ((out (assoc-ref outputs "out"))
13150 (bin (string-append out "/bin")))
13151 (install-file "gffread" bin))
13152 #t)))))
13153 (native-inputs
13154 `(("gclib-source"
13155 ,(let ((version "0.10.3")
13156 (commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
13157 (revision "1"))
13158 (origin
13159 (method git-fetch)
13160 (uri (git-reference
13161 (url "https://github.com/gpertea/gclib.git")
13162 (commit commit)))
13163 (file-name (git-file-name "gclib" version))
13164 (sha256
13165 (base32
13166 "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
13167 (home-page "https://github.com/gpertea/gffread/")
13168 (synopsis "Parse and convert GFF/GTF files")
13169 (description
13170 "This package provides a GFF/GTF file parsing utility providing format
13171 conversions, region filtering, FASTA sequence extraction and more.")
13172 ;; gffread is under Expat, but gclib is under Artistic 2.0
13173 (license (list license:expat
13174 license:artistic2.0)))))
13175
13176 (define-public find-circ
13177 ;; The last release was in 2015. The license was clarified in 2017, so we
13178 ;; take the latest commit.
13179 (let ((commit "8655dca54970fcf7e92e22fbf57e1188724dda7d")
13180 (revision "1"))
13181 (package
13182 (name "find-circ")
13183 (version (git-version "1.2" revision commit))
13184 (source
13185 (origin
13186 (method git-fetch)
13187 (uri (git-reference
13188 (url "https://github.com/marvin-jens/find_circ.git")
13189 (commit commit)))
13190 (file-name (git-file-name name version))
13191 (sha256
13192 (base32
13193 "0p77pbqbclqr4srms34y1b9b4njybfpjiknc11ki84f3p8skb3cg"))))
13194 (build-system gnu-build-system)
13195 (arguments
13196 `(#:tests? #f ; there are none
13197 #:phases
13198 ;; There is no actual build system.
13199 (modify-phases %standard-phases
13200 (delete 'configure)
13201 (delete 'build)
13202 (replace 'install
13203 (lambda* (#:key outputs #:allow-other-keys)
13204 (let* ((out (assoc-ref outputs "out"))
13205 (bin (string-append out "/bin"))
13206 (path (getenv "PYTHONPATH")))
13207 (for-each (lambda (script)
13208 (install-file script bin)
13209 (wrap-program (string-append bin "/" script)
13210 `("PYTHONPATH" ":" prefix (,path))))
13211 '("cmp_bed.py"
13212 "find_circ.py"
13213 "maxlength.py"
13214 "merge_bed.py"
13215 "unmapped2anchors.py")))
13216 #t)))))
13217 (inputs
13218 `(("python2" ,python-2)
13219 ("python2-pysam" ,python2-pysam)
13220 ("python2-numpy" ,python2-numpy)))
13221 (home-page "https://github.com/marvin-jens/find_circ")
13222 (synopsis "circRNA detection from RNA-seq reads")
13223 (description "This package provides tools to detect head-to-tail
13224 spliced (back-spliced) sequencing reads, indicative of circular RNA (circRNA)
13225 in RNA-seq data.")
13226 (license license:gpl3))))
13227
13228 (define-public python-scanpy
13229 (package
13230 (name "python-scanpy")
13231 (version "1.4")
13232 ;; Fetch from git because the pypi tarball does not include tests.
13233 (source
13234 (origin
13235 (method git-fetch)
13236 (uri (git-reference
13237 (url "https://github.com/theislab/scanpy.git")
13238 (commit version)))
13239 (file-name (git-file-name name version))
13240 (sha256
13241 (base32
13242 "0zn6x6c0cnm1a20i6isigwb51g3pr9zpjk8r1minjqnxi5yc9pm4"))))
13243 (build-system python-build-system)
13244 (arguments
13245 `(#:phases
13246 (modify-phases %standard-phases
13247 (replace 'check
13248 (lambda* (#:key inputs #:allow-other-keys)
13249 ;; These tests require Internet access.
13250 (delete-file-recursively "scanpy/tests/notebooks")
13251 (delete-file "scanpy/tests/test_clustering.py")
13252
13253 ;; TODO: I can't get the plotting tests to work, even with Xvfb.
13254 (delete-file "scanpy/tests/test_plotting.py")
13255 (delete-file "scanpy/tests/test_preprocessing.py")
13256 (delete-file "scanpy/tests/test_read_10x.py")
13257
13258 (setenv "PYTHONPATH"
13259 (string-append (getcwd) ":"
13260 (getenv "PYTHONPATH")))
13261 (invoke "pytest")
13262 #t)))))
13263 (propagated-inputs
13264 `(("python-anndata" ,python-anndata)
13265 ("python-h5py" ,python-h5py)
13266 ("python-igraph" ,python-igraph)
13267 ("python-joblib" ,python-joblib)
13268 ("python-louvain" ,python-louvain)
13269 ("python-matplotlib" ,python-matplotlib)
13270 ("python-natsort" ,python-natsort)
13271 ("python-networkx" ,python-networkx)
13272 ("python-numba" ,python-numba)
13273 ("python-pandas" ,python-pandas)
13274 ("python-scikit-learn" ,python-scikit-learn)
13275 ("python-scipy" ,python-scipy)
13276 ("python-seaborn" ,python-seaborn)
13277 ("python-statsmodels" ,python-statsmodels)
13278 ("python-tables" ,python-tables)))
13279 (native-inputs
13280 `(("python-pytest" ,python-pytest)))
13281 (home-page "https://github.com/theislab/scanpy")
13282 (synopsis "Single-Cell Analysis in Python.")
13283 (description "Scanpy is a scalable toolkit for analyzing single-cell gene
13284 expression data. It includes preprocessing, visualization, clustering,
13285 pseudotime and trajectory inference and differential expression testing. The
13286 Python-based implementation efficiently deals with datasets of more than one
13287 million cells.")
13288 (license license:bsd-3)))
13289
13290 (define-public python-bbknn
13291 (package
13292 (name "python-bbknn")
13293 (version "1.3.6")
13294 (source
13295 (origin
13296 (method url-fetch)
13297 (uri (pypi-uri "bbknn" version))
13298 (sha256
13299 (base32
13300 "1jbsh01f57zj4bhvjr3jh4532zznqd6nccmgrl3qi9gnhkf7c4y0"))))
13301 (build-system python-build-system)
13302 (arguments
13303 `(#:tests? #f)) ; TODO: Enable after migration to scikit-learn.
13304 (propagated-inputs
13305 `(("python-annoy" ,python-annoy)
13306 ("python-cython" ,python-cython)
13307 ("python-numpy" ,python-numpy)
13308 ("python-scipy" ,python-scipy)
13309 ("python-umap-learn" ,python-umap-learn)))
13310 (home-page "https://github.com/Teichlab/bbknn")
13311 (synopsis "Batch balanced KNN")
13312 (description "BBKNN is a batch effect removal tool that can be directly
13313 used in the Scanpy workflow. It serves as an alternative to
13314 @code{scanpy.api.pp.neighbors()}, with both functions creating a neighbour
13315 graph for subsequent use in clustering, pseudotime and UMAP visualisation. If
13316 technical artifacts are present in the data, they will make it challenging to
13317 link corresponding cell types across different batches. BBKNN actively
13318 combats this effect by splitting your data into batches and finding a smaller
13319 number of neighbours for each cell within each of the groups. This helps
13320 create connections between analogous cells in different batches without
13321 altering the counts or PCA space.")
13322 (license license:expat)))
13323
13324 (define-public gffcompare
13325 (let ((commit "be56ef4349ea3966c12c6397f85e49e047361c41")
13326 (revision "1"))
13327 (package
13328 (name "gffcompare")
13329 (version (git-version "0.10.15" revision commit))
13330 (source
13331 (origin
13332 (method git-fetch)
13333 (uri (git-reference
13334 (url "https://github.com/gpertea/gffcompare/")
13335 (commit commit)))
13336 (file-name (git-file-name name version))
13337 (sha256
13338 (base32 "0cp5qpxdhw4mxpya5dld8wi3jk00zyklm6rcri426wydinrnfmkg"))))
13339 (build-system gnu-build-system)
13340 (arguments
13341 `(#:tests? #f ; no check target
13342 #:phases
13343 (modify-phases %standard-phases
13344 (delete 'configure)
13345 (add-before 'build 'copy-gclib-source
13346 (lambda* (#:key inputs #:allow-other-keys)
13347 (mkdir "../gclib")
13348 (copy-recursively
13349 (assoc-ref inputs "gclib-source") "../gclib")
13350 #t))
13351 (replace 'install
13352 (lambda* (#:key outputs #:allow-other-keys)
13353 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
13354 (install-file "gffcompare" bin)
13355 #t))))))
13356 (native-inputs
13357 `(("gclib-source" ; see 'README.md' of gffcompare
13358 ,(let ((commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
13359 (revision "1")
13360 (name "gclib")
13361 (version (git-version "0.10.3" revision commit)))
13362 (origin
13363 (method git-fetch)
13364 (uri (git-reference
13365 (url "https://github.com/gpertea/gclib/")
13366 (commit commit)))
13367 (file-name (git-file-name name version))
13368 (sha256
13369 (base32 "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
13370 (home-page "https://github.com/gpertea/gffcompare/")
13371 (synopsis "Tool for comparing or classifing transcripts of RNA-Seq")
13372 (description
13373 "@code{gffcompare} is a tool that can:
13374 @enumerate
13375 @item compare and evaluate the accuracy of RNA-Seq transcript assemblers
13376 (Cufflinks, Stringtie);
13377 @item collapse (merge) duplicate transcripts from multiple GTF/GFF3 files (e.g.
13378 resulted from assembly of different samples);
13379 @item classify transcripts from one or multiple GTF/GFF3 files as they relate to
13380 reference transcripts provided in a annotation file (also in GTF/GFF3 format).
13381 @end enumerate")
13382 (license
13383 (list
13384 license:expat ;license for gffcompare
13385 license:artistic2.0))))) ;license for gclib
13386
13387 (define-public python-intervaltree
13388 (package
13389 (name "python-intervaltree")
13390 (version "2.1.0")
13391 (source
13392 (origin
13393 (method url-fetch)
13394 (uri (pypi-uri "intervaltree" version))
13395 (sha256
13396 (base32
13397 "02w191m9zxkcjqr1kv2slxvhymwhj3jnsyy3a28b837pi15q19dc"))))
13398 (build-system python-build-system)
13399 ;; FIXME: error when collecting tests
13400 (arguments '(#:tests? #f))
13401 (propagated-inputs
13402 `(("python-sortedcontainers" ,python-sortedcontainers)))
13403 (native-inputs
13404 `(("python-pytest" ,python-pytest)))
13405 (home-page "https://github.com/chaimleib/intervaltree")
13406 (synopsis "Editable interval tree data structure")
13407 (description
13408 "This package provides a mutable, self-balancing interval tree
13409 implementation for Python. Queries may be by point, by range overlap, or by
13410 range envelopment. This library was designed to allow tagging text and time
13411 intervals, where the intervals include the lower bound but not the upper
13412 bound.")
13413 (license license:asl2.0)))
13414
13415 (define-public python-pypairix
13416 (package
13417 (name "python-pypairix")
13418 (version "0.3.6")
13419 (source
13420 (origin
13421 (method url-fetch)
13422 (uri (pypi-uri "pypairix" version))
13423 (sha256
13424 (base32
13425 "0zs92b74s5v4xy2h16s15f3z6l4nnbw8x8zyif7xx5xpafjn0xss"))))
13426 (build-system python-build-system)
13427 ;; FIXME: the tests fail because test.support cannot be loaded:
13428 ;; ImportError: cannot import name 'support'
13429 (arguments '(#:tests? #f))
13430 (inputs
13431 `(("zlib" ,zlib)))
13432 (home-page "https://github.com/4dn-dcic/pairix")
13433 (synopsis "Support for querying pairix-indexed bgzipped text files")
13434 (description
13435 "Pypairix is a Python module for fast querying on a pairix-indexed
13436 bgzipped text file that contains a pair of genomic coordinates per line.")
13437 (license license:expat)))
13438
13439 (define-public python-pyfaidx
13440 (package
13441 (name "python-pyfaidx")
13442 (version "0.5.7")
13443 (source
13444 (origin
13445 (method url-fetch)
13446 (uri (pypi-uri "pyfaidx" version))
13447 (sha256
13448 (base32
13449 "02jvdx3ksy6w5gd29i1d0g0zsabbz7c14qg482ff7pza6sdl0b2i"))))
13450 (build-system python-build-system)
13451 (propagated-inputs
13452 `(("python-six" ,python-six)))
13453 (home-page "http://mattshirley.com")
13454 (synopsis "Random access to fasta subsequences")
13455 (description
13456 "This package provides procedures for efficient pythonic random access to
13457 fasta subsequences.")
13458 (license license:bsd-3)))
13459
13460 (define-public python-cooler
13461 (package
13462 (name "python-cooler")
13463 (version "0.7.11")
13464 (source
13465 (origin
13466 (method url-fetch)
13467 (uri (pypi-uri "cooler" version))
13468 (sha256
13469 (base32
13470 "08k5nxnxa6qsbk15z5z0q01n28042k87wi4905hh95rzqib15mhx"))))
13471 (build-system python-build-system)
13472 (propagated-inputs
13473 `(("python-biopython" ,python-biopython)
13474 ("python-click" ,python-click)
13475 ("python-cytoolz" ,python-cytoolz)
13476 ("python-dask" ,python-dask)
13477 ("python-h5py" ,python-h5py)
13478 ("python-multiprocess" ,python-multiprocess)
13479 ("python-pandas" ,python-pandas)
13480 ("python-pyfaidx" ,python-pyfaidx)
13481 ("python-pypairix" ,python-pypairix)
13482 ("python-pysam" ,python-pysam)
13483 ("python-scipy" ,python-scipy)))
13484 (native-inputs
13485 `(("python-mock" ,python-mock)
13486 ("python-nose" ,python-nose)
13487 ("python-numpydoc" ,python-numpydoc)
13488 ("python-sphinx" ,python-sphinx)))
13489 (home-page "https://github.com/mirnylab/cooler")
13490 (synopsis "Sparse binary format for genomic interaction matrices")
13491 (description
13492 "Cooler is a support library for a sparse, compressed, binary persistent
13493 storage format, called @code{cool}, used to store genomic interaction data,
13494 such as Hi-C contact matrices.")
13495 (license license:bsd-3)))
13496
13497 (define-public python-hicexplorer
13498 (package
13499 (name "python-hicexplorer")
13500 (version "2.1.4")
13501 (source
13502 (origin
13503 ;; The latest version is not available on Pypi.
13504 (method git-fetch)
13505 (uri (git-reference
13506 (url "https://github.com/deeptools/HiCExplorer.git")
13507 (commit version)))
13508 (file-name (git-file-name name version))
13509 (sha256
13510 (base32
13511 "0q5gpbzmrkvygqgw524q36b4nrivcmyi5v194vsx0qw7b3gcmq08"))))
13512 (build-system python-build-system)
13513 (arguments
13514 `(#:phases
13515 (modify-phases %standard-phases
13516 (add-after 'unpack 'loosen-up-requirements
13517 (lambda _
13518 (substitute* "setup.py"
13519 (("==") ">="))
13520 #t)))))
13521 (propagated-inputs
13522 `(("python-biopython" ,python-biopython)
13523 ("python-configparser" ,python-configparser)
13524 ("python-cooler" ,python-cooler)
13525 ("python-future" ,python-future)
13526 ("python-intervaltree" ,python-intervaltree)
13527 ("python-jinja2" ,python-jinja2)
13528 ("python-matplotlib" ,python-matplotlib)
13529 ("python-numpy" ,python-numpy)
13530 ("python-pandas" ,python-pandas)
13531 ("python-pybigwig" ,python-pybigwig)
13532 ("python-pysam" ,python-pysam)
13533 ("python-scipy" ,python-scipy)
13534 ("python-six" ,python-six)
13535 ("python-tables" ,python-tables)
13536 ("python-unidecode" ,python-unidecode)))
13537 (home-page "http://hicexplorer.readthedocs.io")
13538 (synopsis "Process, analyze and visualize Hi-C data")
13539 (description
13540 "HiCExplorer is a powerful and easy to use set of tools to process,
13541 normalize and visualize Hi-C data. HiCExplorer facilitates the creation of
13542 contact matrices, correction of contacts, TAD detection, A/B compartments,
13543 merging, reordering or chromosomes, conversion from different formats
13544 including cooler and detection of long-range contacts. Moreover, it allows
13545 the visualization of multiple contact matrices along with other types of data
13546 like genes, compartments, ChIP-seq coverage tracks (and in general any type of
13547 genomic scores), long range contacts and the visualization of viewpoints.")
13548 (license license:gpl3)))
13549
13550 (define-public python-pygenometracks
13551 (package
13552 (name "python-pygenometracks")
13553 (version "2.0")
13554 (source
13555 (origin
13556 (method url-fetch)
13557 (uri (pypi-uri "pyGenomeTracks" version))
13558 (sha256
13559 (base32
13560 "1fws6bqsyy9kj3qiabhkqx4wd4i775gsxnhszqd3zg7w67sc1ic5"))))
13561 (build-system python-build-system)
13562 (propagated-inputs
13563 `(("python-configparser" ,python-configparser)
13564 ("python-future" ,python-future)
13565 ("python-hicexplorer" ,python-hicexplorer)
13566 ("python-intervaltree" ,python-intervaltree)
13567 ("python-matplotlib" ,python-matplotlib)
13568 ("python-numpy" ,python-numpy)
13569 ("python-pybigwig" ,python-pybigwig)))
13570 (native-inputs
13571 `(("python-pytest" ,python-pytest)))
13572 (home-page "https://pygenometracks.readthedocs.io")
13573 (synopsis "Program and library to plot beautiful genome browser tracks")
13574 (description
13575 "This package aims to produce high-quality genome browser tracks that
13576 are highly customizable. Currently, it is possible to plot: bigwig, bed (many
13577 options), bedgraph, links (represented as arcs), and Hi-C matrices.
13578 pyGenomeTracks can make plots with or without Hi-C data.")
13579 (license license:gpl3+)))
13580
13581 (define-public python-hic2cool
13582 (package
13583 (name "python-hic2cool")
13584 (version "0.4.2")
13585 (source
13586 (origin
13587 (method url-fetch)
13588 (uri (pypi-uri "hic2cool" version))
13589 (sha256
13590 (base32
13591 "0xy6mhfns2lzib1kcr6419jjp6pmh0qx8z8na55lmiwn0ds8q9cl"))))
13592 (build-system python-build-system)
13593 (arguments '(#:tests? #f)) ; no tests included
13594 (propagated-inputs
13595 `(("python-cooler" ,python-cooler)))
13596 (home-page "https://github.com/4dn-dcic/hic2cool")
13597 (synopsis "Converter for .hic and .cool files")
13598 (description
13599 "This package provides a converter between @code{.hic} files (from
13600 juicer) and single-resolution or multi-resolution @code{.cool} files (for
13601 cooler). Both @code{hic} and @code{cool} files describe Hi-C contact
13602 matrices.")
13603 (license license:expat)))
13604
13605 (define-public r-pore
13606 (package
13607 (name "r-pore")
13608 (version "0.24")
13609 (source
13610 (origin
13611 (method url-fetch)
13612 (uri
13613 (string-append "mirror://sourceforge/rpore/" version
13614 "/poRe_" version ".tar.gz"))
13615 (sha256
13616 (base32 "0pih9nljbv8g4x8rkk29i7aqq681b782r5s5ynp4nw9yzqnmmksv"))))
13617 (properties `((upstream-name . "poRe")))
13618 (build-system r-build-system)
13619 (propagated-inputs
13620 `(("r-bit64" ,r-bit64)
13621 ("r-data-table" ,r-data-table)
13622 ("r-rhdf5" ,r-rhdf5)
13623 ("r-shiny" ,r-shiny)
13624 ("r-svdialogs" ,r-svdialogs)))
13625 (home-page "https://sourceforge.net/projects/rpore/")
13626 (synopsis "Visualize Nanopore sequencing data")
13627 (description
13628 "This package provides graphical user interfaces to organize and visualize Nanopore
13629 sequencing data.")
13630 ;; This is free software but the license variant is unclear:
13631 ;; <https://github.com/mw55309/poRe_docs/issues/10>.
13632 (license license:bsd-3)))
13633
13634 (define-public r-xbioc
13635 (let ((revision "1")
13636 (commit "6ff0670a37ab3036aaf1d94aa4b208310946b0b5"))
13637 (package
13638 (name "r-xbioc")
13639 (version (git-version "0.1.16" revision commit))
13640 (source (origin
13641 (method git-fetch)
13642 (uri (git-reference
13643 (url "https://github.com/renozao/xbioc.git")
13644 (commit commit)))
13645 (file-name (git-file-name name version))
13646 (sha256
13647 (base32
13648 "0w8bsq5myiwkfhh83nm6is5ichiyvwa1axx2szvxnzq39x6knf66"))))
13649 (build-system r-build-system)
13650 (propagated-inputs
13651 `(("r-annotationdbi" ,r-annotationdbi)
13652 ("r-assertthat" ,r-assertthat)
13653 ("r-biobase" ,r-biobase)
13654 ("r-biocmanager" ,r-biocmanager)
13655 ("r-digest" ,r-digest)
13656 ("r-pkgmaker" ,r-pkgmaker)
13657 ("r-plyr" ,r-plyr)
13658 ("r-reshape2" ,r-reshape2)
13659 ("r-stringr" ,r-stringr)))
13660 (home-page "https://github.com/renozao/xbioc/")
13661 (synopsis "Extra base functions for Bioconductor")
13662 (description "This package provides extra utility functions to perform
13663 common tasks in the analysis of omics data, leveraging and enhancing features
13664 provided by Bioconductor packages.")
13665 (license license:gpl3+))))
13666
13667 (define-public r-cssam
13668 (let ((revision "1")
13669 (commit "9ec58c982fa551af0d80b1a266890d92954833f2"))
13670 (package
13671 (name "r-cssam")
13672 (version (git-version "1.4" revision commit))
13673 (source (origin
13674 (method git-fetch)
13675 (uri (git-reference
13676 (url "https://github.com/shenorrLab/csSAM.git")
13677 (commit commit)))
13678 (file-name (git-file-name name version))
13679 (sha256
13680 (base32
13681 "128syf9v39gk0z3ip000qpsjbg6l1siyq6c8b0hz41dzg5achyb3"))))
13682 (build-system r-build-system)
13683 (propagated-inputs
13684 `(("r-formula" ,r-formula)
13685 ("r-ggplot2" ,r-ggplot2)
13686 ("r-pkgmaker" ,r-pkgmaker)
13687 ("r-plyr" ,r-plyr)
13688 ("r-rngtools" ,r-rngtools)
13689 ("r-scales" ,r-scales)))
13690 (home-page "https://github.com/shenorrLab/csSAM/")
13691 (synopsis "Cell type-specific statistical analysis of microarray")
13692 (description "This package implements the method csSAM that computes
13693 cell-specific differential expression from measured cell proportions using
13694 SAM.")
13695 ;; Any version
13696 (license license:lgpl2.1+))))
13697
13698 (define-public r-bseqsc
13699 (let ((revision "1")
13700 (commit "fef3f3e38dcf3df37103348b5780937982b43b98"))
13701 (package
13702 (name "r-bseqsc")
13703 (version (git-version "1.0" revision commit))
13704 (source (origin
13705 (method git-fetch)
13706 (uri (git-reference
13707 (url "https://github.com/shenorrLab/bseqsc.git")
13708 (commit commit)))
13709 (file-name (git-file-name name version))
13710 (sha256
13711 (base32
13712 "1prw13wa20f7wlc3gkkls66n1kxz8d28qrb8icfqdwdnnv8w5qg8"))))
13713 (build-system r-build-system)
13714 (propagated-inputs
13715 `(("r-abind" ,r-abind)
13716 ("r-annotationdbi" ,r-annotationdbi)
13717 ("r-biobase" ,r-biobase)
13718 ("r-cssam" ,r-cssam)
13719 ("r-dplyr" ,r-dplyr)
13720 ("r-e1071" ,r-e1071)
13721 ("r-edger" ,r-edger)
13722 ("r-ggplot2" ,r-ggplot2)
13723 ("r-nmf" ,r-nmf)
13724 ("r-openxlsx" ,r-openxlsx)
13725 ("r-pkgmaker" ,r-pkgmaker)
13726 ("r-plyr" ,r-plyr)
13727 ("r-preprocesscore" ,r-preprocesscore)
13728 ("r-rngtools" ,r-rngtools)
13729 ("r-scales" ,r-scales)
13730 ("r-stringr" ,r-stringr)
13731 ("r-xbioc" ,r-xbioc)))
13732 (home-page "https://github.com/shenorrLab/bseqsc")
13733 (synopsis "Deconvolution of bulk sequencing experiments using single cell data")
13734 (description "BSeq-sc is a bioinformatics analysis pipeline that
13735 leverages single-cell sequencing data to estimate cell type proportion and
13736 cell type-specific gene expression differences from RNA-seq data from bulk
13737 tissue samples. This is a companion package to the publication \"A
13738 single-cell transcriptomic map of the human and mouse pancreas reveals inter-
13739 and intra-cell population structure.\" Baron et al. Cell Systems (2016)
13740 @url{https://www.ncbi.nlm.nih.gov/pubmed/27667365}.")
13741 (license license:gpl2+))))
13742
13743 (define-public porechop
13744 ;; The recommended way to install is to clone the git repository
13745 ;; https://github.com/rrwick/Porechop#installation
13746 (let ((commit "289d5dca4a5fc327f97b3f8cecb68ecaf1014861")
13747 (revision "1"))
13748 (package
13749 (name "porechop")
13750 (version (git-version "0.2.3" revision commit))
13751 (source
13752 (origin
13753 (method git-fetch)
13754 (uri (git-reference
13755 (url "https://github.com/rrwick/Porechop.git")
13756 (commit commit)))
13757 (file-name (git-file-name name version))
13758 (sha256
13759 (base32 "05ps43gig0d3ia9x5lj84lb00hbsl6ba9n7y7jz927npxbr2ym23"))))
13760 (build-system python-build-system)
13761 (home-page "https://github.com/rrwick/porechop")
13762 (synopsis "Finding, trimming or splitting adapters, in Oxford Nanopore reads")
13763 (description
13764 "The porechop package is a tool for finding and removing adapters from Oxford
13765 Nanopore reads. Adapters on the ends of reads are trimmed off, and when a read
13766 has an adapter in its middle, it is treated as chimeric and chopped into
13767 separate reads. Porechop performs thorough alignments to effectively find
13768 adapters, even at low sequence identity. Porechop also supports demultiplexing
13769 of Nanopore reads that were barcoded with the Native Barcoding Kit, PCR
13770 Barcoding Kit or Rapid Barcoding Kit.")
13771 (license license:gpl3+))))
13772
13773 (define-public poretools
13774 ;; The latest release was in 2016 and the latest commit is from 2017
13775 ;; the recommended way to install is to clone the git repository
13776 ;; https://poretools.readthedocs.io/en/latest/content/installation.html
13777 (let ((commit "e426b1f09e86ac259a00c261c79df91510777407")
13778 (revision "1"))
13779 (package
13780 (name "poretools")
13781 (version (git-version "0.6.0" revision commit))
13782 (source
13783 (origin
13784 (method git-fetch)
13785 (uri (git-reference
13786 (url "https://github.com/arq5x/poretools.git")
13787 (commit commit)))
13788 (file-name (git-file-name name version))
13789 (sha256
13790 (base32 "0bglj833wxpp3cq430p1d3xp085ls221js2y90w7ir2x5ay8l7am"))))
13791 (build-system python-build-system)
13792 ;; requires python >=2.7, <3.0, and the same for python dependencies
13793 (arguments `(#:python ,python-2))
13794 (inputs
13795 `(("hdf5" ,hdf5)))
13796 (propagated-inputs
13797 `(("python-dateutil" ,python2-dateutil)
13798 ("python-h5py" ,python2-h5py)
13799 ("python-matplotlib" ,python2-matplotlib)
13800 ("python-pandas" ,python2-pandas)
13801 ("python-seaborn" ,python2-seaborn)))
13802 (home-page "https://poretools.readthedocs.io")
13803 (synopsis "Toolkit for working with nanopore sequencing data")
13804 (description
13805 "The MinION from Oxford Nanopore Technologies is a nanopore sequencer.
13806 This @code{poretools} package is a flexible toolkit for exploring datasets
13807 generated by nanopore sequencing devices for the purposes of quality control and
13808 downstream analysis. Poretools operates directly on the native FAST5, a variant
13809 of the Hierarchical Data Format (HDF5) standard.")
13810 (license license:expat))))
13811
13812 (define-public r-absfiltergsea
13813 (package
13814 (name "r-absfiltergsea")
13815 (version "1.5.1")
13816 (source
13817 (origin
13818 (method url-fetch)
13819 (uri (cran-uri "AbsFilterGSEA" version))
13820 (sha256
13821 (base32 "15srxkxsvn38kd5frdrwfdf0ad8gskrd0h01wmdf9hglq8fjrp7w"))))
13822 (properties `((upstream-name . "AbsFilterGSEA")))
13823 (build-system r-build-system)
13824 (propagated-inputs
13825 `(("r-biobase" ,r-biobase)
13826 ("r-deseq" ,r-deseq)
13827 ("r-limma" ,r-limma)
13828 ("r-rcpp" ,r-rcpp)
13829 ("r-rcpparmadillo" ,r-rcpparmadillo)))
13830 (home-page "https://cran.r-project.org/web/packages/AbsFilterGSEA/")
13831 (synopsis "Improved false positive control of gene-permuting with absolute filtering")
13832 (description
13833 "This package provides a function that performs gene-permuting of a gene-set
13834 enrichment analysis (GSEA) calculation with or without the absolute filtering.
13835 Without filtering, users can perform (original) two-tailed or one-tailed
13836 absolute GSEA.")
13837 (license license:gpl2)))
13838
13839 (define-public jamm
13840 (package
13841 (name "jamm")
13842 (version "1.0.7.5")
13843 (source
13844 (origin
13845 (method git-fetch)
13846 (uri (git-reference
13847 (url "https://github.com/mahmoudibrahim/JAMM.git")
13848 (commit (string-append "JAMMv" version))))
13849 (file-name (git-file-name name version))
13850 (sha256
13851 (base32
13852 "0ls889jcma1ch9h21jjhnkadgszgqj41842hhcjh6cg88f85qf3i"))))
13853 (build-system gnu-build-system)
13854 (arguments
13855 `(#:tests? #f ; there are none
13856 #:phases
13857 (modify-phases %standard-phases
13858 (delete 'configure)
13859 (delete 'build)
13860 (replace 'install
13861 (lambda* (#:key inputs outputs #:allow-other-keys)
13862 (let* ((out (assoc-ref outputs "out"))
13863 (libexec (string-append out "/libexec/jamm"))
13864 (bin (string-append out "/bin")))
13865 (substitute* '("JAMM.sh"
13866 "SignalGenerator.sh")
13867 (("^sPath=.*")
13868 (string-append "sPath=\"" libexec "\"\n")))
13869 (for-each (lambda (file)
13870 (install-file file libexec))
13871 (list "bincalculator.r"
13872 "peakfinder.r"
13873 "peakhelper.r"
13874 "signalmaker.r"
13875 "xcorr.r"
13876 "xcorrhelper.r"
13877 ;; Perl scripts
13878 "peakfilter.pl"
13879 "readshifter.pl"))
13880
13881 (for-each
13882 (lambda (script)
13883 (chmod script #o555)
13884 (install-file script bin)
13885 (wrap-program (string-append bin "/" script)
13886 `("PATH" ":" prefix
13887 (,(string-append (assoc-ref inputs "coreutils") "/bin")
13888 ,(string-append (assoc-ref inputs "gawk") "/bin")
13889 ,(string-append (assoc-ref inputs "perl") "/bin")
13890 ,(string-append (assoc-ref inputs "r-minimal") "/bin")))
13891 `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB")))
13892 `("R_LIBS_SITE" ":" prefix (,(getenv "R_LIBS_SITE")))))
13893 (list "JAMM.sh" "SignalGenerator.sh")))
13894 #t)))))
13895 (inputs
13896 `(("bash" ,bash)
13897 ("coreutils" ,coreutils)
13898 ("gawk" ,gawk)
13899 ("perl" ,perl)
13900 ("r-minimal" ,r-minimal)
13901 ;;("r-parallel" ,r-parallel)
13902 ("r-signal" ,r-signal)
13903 ("r-mclust" ,r-mclust)))
13904 (home-page "https://github.com/mahmoudibrahim/JAMM")
13905 (synopsis "Peak finder for NGS datasets")
13906 (description
13907 "JAMM is a peak finder for next generation sequencing datasets (ChIP-Seq,
13908 ATAC-Seq, DNase-Seq, etc.) that can integrate replicates and assign peak
13909 boundaries accurately. JAMM is applicable to both broad and narrow
13910 datasets.")
13911 (license license:gpl3+)))
13912
13913 (define-public ngless
13914 (package
13915 (name "ngless")
13916 (version "1.0.1")
13917 (source
13918 (origin
13919 (method git-fetch)
13920 (uri (git-reference
13921 (url "https://gitlab.com/ngless/ngless.git")
13922 (commit (string-append "v" version))))
13923 (file-name (git-file-name name version))
13924 (sha256
13925 (base32
13926 "06ygv8q2zjqsnrid1302yrlhhvb8ik48nq6n0higk3i1mdc8r0dg"))))
13927 (build-system haskell-build-system)
13928 (arguments
13929 `(#:haddock? #f ; The haddock phase fails with: NGLess/CmdArgs.hs:20:1:
13930 ; error: parse error on input import
13931 ; import Options.Applicative
13932 #:phases
13933 (modify-phases %standard-phases
13934 (add-after 'unpack 'create-Versions.hs
13935 (lambda _
13936 (substitute* "Makefile"
13937 (("BWA_VERSION = .*")
13938 (string-append "BWA_VERSION = "
13939 ,(package-version bwa) "\n"))
13940 (("SAM_VERSION = .*")
13941 (string-append "SAM_VERSION = "
13942 ,(package-version samtools) "\n"))
13943 (("PRODIGAL_VERSION = .*")
13944 (string-append "PRODIGAL_VERSION = "
13945 ,(package-version prodigal) "\n"))
13946 (("MINIMAP2_VERSION = .*")
13947 (string-append "MINIMAP2_VERSION = "
13948 ,(package-version minimap2) "\n")))
13949 (invoke "make" "NGLess/Dependencies/Versions.hs")
13950 #t))
13951 (add-after 'create-Versions.hs 'create-cabal-file
13952 (lambda _ (invoke "hpack") #t))
13953 ;; These tools are expected to be installed alongside ngless.
13954 (add-after 'install 'link-tools
13955 (lambda* (#:key inputs outputs #:allow-other-keys)
13956 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
13957 (symlink (string-append (assoc-ref inputs "prodigal")
13958 "/bin/prodigal")
13959 (string-append bin "ngless-" ,version "-prodigal"))
13960 (symlink (string-append (assoc-ref inputs "minimap2")
13961 "/bin/minimap2")
13962 (string-append bin "ngless-" ,version "-minimap2"))
13963 (symlink (string-append (assoc-ref inputs "samtools")
13964 "/bin/samtools")
13965 (string-append bin "ngless-" ,version "-samtools"))
13966 (symlink (string-append (assoc-ref inputs "bwa")
13967 "/bin/bwa")
13968 (string-append bin "ngless-" ,version "-bwa"))
13969 #t))))))
13970 (inputs
13971 `(("prodigal" ,prodigal)
13972 ("bwa" ,bwa)
13973 ("samtools" ,samtools)
13974 ("minimap2" ,minimap2)
13975 ("ghc-aeson" ,ghc-aeson)
13976 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
13977 ("ghc-async" ,ghc-async)
13978 ("ghc-atomic-write" ,ghc-atomic-write)
13979 ("ghc-bytestring-lexing" ,ghc-bytestring-lexing)
13980 ("ghc-conduit" ,ghc-conduit)
13981 ("ghc-conduit-algorithms" ,ghc-conduit-algorithms)
13982 ("ghc-conduit-extra" ,ghc-conduit-extra)
13983 ("ghc-configurator" ,ghc-configurator)
13984 ("ghc-convertible" ,ghc-convertible)
13985 ("ghc-data-default" ,ghc-data-default)
13986 ("ghc-diagrams-core" ,ghc-diagrams-core)
13987 ("ghc-diagrams-lib" ,ghc-diagrams-lib)
13988 ("ghc-diagrams-svg" ,ghc-diagrams-svg)
13989 ("ghc-double-conversion" ,ghc-double-conversion)
13990 ("ghc-edit-distance" ,ghc-edit-distance)
13991 ("ghc-either" ,ghc-either)
13992 ("ghc-errors" ,ghc-errors)
13993 ("ghc-extra" ,ghc-extra)
13994 ("ghc-filemanip" ,ghc-filemanip)
13995 ("ghc-file-embed" ,ghc-file-embed)
13996 ("ghc-gitrev" ,ghc-gitrev)
13997 ("ghc-hashtables" ,ghc-hashtables)
13998 ("ghc-http-conduit" ,ghc-http-conduit)
13999 ("ghc-inline-c" ,ghc-inline-c)
14000 ("ghc-inline-c-cpp" ,ghc-inline-c-cpp)
14001 ("ghc-intervalmap" ,ghc-intervalmap)
14002 ("ghc-missingh" ,ghc-missingh)
14003 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
14004 ("ghc-regex" ,ghc-regex)
14005 ("ghc-safe" ,ghc-safe)
14006 ("ghc-safeio" ,ghc-safeio)
14007 ("ghc-strict" ,ghc-strict)
14008 ("ghc-tar" ,ghc-tar)
14009 ("ghc-tar-conduit" ,ghc-tar-conduit)
14010 ("ghc-unliftio" ,ghc-unliftio)
14011 ("ghc-unliftio-core" ,ghc-unliftio-core)
14012 ("ghc-vector" ,ghc-vector)
14013 ("ghc-yaml" ,ghc-yaml)
14014 ("ghc-zlib" ,ghc-zlib)))
14015 (propagated-inputs
14016 `(("r-r6" ,r-r6)
14017 ("r-hdf5r" ,r-hdf5r)
14018 ("r-iterators" ,r-iterators)
14019 ("r-itertools" ,r-itertools)
14020 ("r-matrix" ,r-matrix)))
14021 (native-inputs
14022 `(("ghc-hpack" ,ghc-hpack)
14023 ("ghc-quickcheck" ,ghc-quickcheck)
14024 ("ghc-test-framework" ,ghc-test-framework)
14025 ("ghc-test-framework-hunit",ghc-test-framework-hunit)
14026 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
14027 ("ghc-test-framework-th" ,ghc-test-framework-th)))
14028 (home-page "https://gitlab.com/ngless/ngless")
14029 (synopsis "DSL for processing next-generation sequencing data")
14030 (description "Ngless is a domain-specific language for
14031 @dfn{next-generation sequencing} (NGS) data processing.")
14032 (license license:expat)))
14033
14034 (define-public filtlong
14035 ;; The recommended way to install is to clone the git repository
14036 ;; https://github.com/rrwick/Filtlong#installation
14037 ;; and the lastest release is more than nine months old
14038 (let ((commit "d1bb46dfe8bc7efe6257b5ce222c04bfe8aedaab")
14039 (revision "1"))
14040 (package
14041 (name "filtlong")
14042 (version (git-version "0.2.0" revision commit))
14043 (source
14044 (origin
14045 (method git-fetch)
14046 (uri (git-reference
14047 (url "https://github.com/rrwick/Filtlong.git")
14048 (commit commit)))
14049 (file-name (git-file-name name version))
14050 (sha256
14051 (base32 "1xr92r820x8qlkcr3b57iw223yq8vjgyi42jr79w2xgw47qzr575"))))
14052 (build-system gnu-build-system)
14053 (arguments
14054 `(#:tests? #f ; no check target
14055 #:phases
14056 (modify-phases %standard-phases
14057 (delete 'configure)
14058 (replace 'install
14059 (lambda* (#:key outputs #:allow-other-keys)
14060 (let* ((out (assoc-ref outputs "out"))
14061 (bin (string-append out "/bin"))
14062 (scripts (string-append out "/share/filtlong/scripts")))
14063 (install-file "bin/filtlong" bin)
14064 (install-file "scripts/histogram.py" scripts)
14065 (install-file "scripts/read_info_histograms.sh" scripts))
14066 #t))
14067 (add-after 'install 'wrap-program
14068 (lambda* (#:key inputs outputs #:allow-other-keys)
14069 (let* ((out (assoc-ref outputs "out"))
14070 (path (getenv "PYTHONPATH")))
14071 (wrap-program (string-append out
14072 "/share/filtlong/scripts/histogram.py")
14073 `("PYTHONPATH" ":" prefix (,path))))
14074 #t))
14075 (add-before 'check 'patch-tests
14076 (lambda _
14077 (substitute* "scripts/read_info_histograms.sh"
14078 (("awk") (which "gawk")))
14079 #t)))))
14080 (inputs
14081 `(("gawk" ,gawk) ;for read_info_histograms.sh
14082 ("python" ,python-2) ;required for histogram.py
14083 ("zlib" ,zlib)))
14084 (home-page "https://github.com/rrwick/Filtlong/")
14085 (synopsis "Tool for quality filtering of Nanopore and PacBio data")
14086 (description
14087 "The Filtlong package is a tool for filtering long reads by quality.
14088 It can take a set of long reads and produce a smaller, better subset. It uses
14089 both read length (longer is better) and read identity (higher is better) when
14090 choosing which reads pass the filter.")
14091 (license (list license:gpl3 ;filtlong
14092 license:asl2.0))))) ;histogram.py
14093
14094 (define-public nanopolish
14095 ;; The recommended way to install is to clone the git repository
14096 ;; <https://github.com/jts/nanopolish#installing-a-particular-release>.
14097 ;; Also, the differences between release and current version seem to be
14098 ;; significant.
14099 (let ((commit "6331dc4f15b9dfabb954ba3fae9d76b6c3ca6377")
14100 (revision "1"))
14101 (package
14102 (name "nanopolish")
14103 (version (git-version "0.11.1" revision commit))
14104 (source
14105 (origin
14106 (method git-fetch)
14107 (uri (git-reference
14108 (url "https://github.com/jts/nanopolish.git")
14109 (commit commit)
14110 (recursive? #t)))
14111 (file-name (git-file-name name version))
14112 (sha256
14113 (base32 "15ikl3d37y49pwd7vx36xksgsqajhf24q7qqsnpl15dqqyy5qgbc"))
14114 (modules '((guix build utils)))
14115 (snippet
14116 '(begin
14117 (delete-file-recursively "htslib")
14118 #t))))
14119 (build-system gnu-build-system)
14120 (arguments
14121 `(#:make-flags
14122 `("HDF5=noinstall" "EIGEN=noinstall" "HTS=noinstall" "CC=gcc")
14123 #:tests? #f ; no check target
14124 #:phases
14125 (modify-phases %standard-phases
14126 (add-after 'unpack 'find-eigen
14127 (lambda* (#:key inputs #:allow-other-keys)
14128 (setenv "CPATH"
14129 (string-append (assoc-ref inputs "eigen")
14130 "/include/eigen3:"
14131 (or (getenv "CPATH") "")))
14132 #t))
14133 (delete 'configure)
14134 (replace 'install
14135 (lambda* (#:key outputs #:allow-other-keys)
14136 (let* ((out (assoc-ref outputs "out"))
14137 (bin (string-append out "/bin"))
14138 (scripts (string-append out "/share/nanopolish/scripts")))
14139
14140 (install-file "nanopolish" bin)
14141 (for-each (lambda (file) (install-file file scripts))
14142 (find-files "scripts" ".*"))
14143 #t)))
14144 (add-after 'install 'wrap-programs
14145 (lambda* (#:key outputs #:allow-other-keys)
14146 (for-each (lambda (file)
14147 (wrap-program file `("PYTHONPATH" ":" prefix (,path))))
14148 (find-files "/share/nanopolish/scripts" "\\.py"))
14149 (for-each (lambda (file)
14150 (wrap-program file `("PERL5LIB" ":" prefix (,path))))
14151 (find-files "/share/nanopolish/scripts" "\\.pl"))
14152 #t)))))
14153 (inputs
14154 `(("eigen" ,eigen)
14155 ("hdf5" ,hdf5)
14156 ("htslib" ,htslib)
14157 ("perl" ,perl)
14158 ("python" ,python-wrapper)
14159 ("python-biopython" ,python-biopython)
14160 ("python-numpy" ,python-numpy)
14161 ("python-pysam" ,python-pysam)
14162 ("python-scikit-learn" , python-scikit-learn)
14163 ("python-scipy" ,python-scipy)
14164 ("zlib" ,zlib)))
14165 (home-page "https://github.com/jts/nanopolish")
14166 (synopsis "Signal-level analysis of Oxford Nanopore sequencing data")
14167 (description
14168 "This package analyses the Oxford Nanopore sequencing data at signal-level.
14169 Nanopolish can calculate an improved consensus sequence for a draft genome
14170 assembly, detect base modifications, call SNPs (Single nucleotide
14171 polymorphisms) and indels with respect to a reference genome and more.")
14172 (license license:expat))))
14173
14174 (define-public cnvkit
14175 (package
14176 (name "cnvkit")
14177 (version "0.9.5")
14178 (source
14179 (origin
14180 (method git-fetch)
14181 (uri (git-reference
14182 (url "https://github.com/etal/cnvkit.git")
14183 (commit (string-append "v" version))))
14184 (file-name (git-file-name name version))
14185 (sha256
14186 (base32 "0g2f78k68yglmj4fsfmgs8idqv3di9aj53fg0ld0hqljg8chhh82"))))
14187 (build-system python-build-system)
14188 (propagated-inputs
14189 `(("python-biopython" ,python-biopython)
14190 ("python-future" ,python-future)
14191 ("python-matplotlib" ,python-matplotlib)
14192 ("python-numpy" ,python-numpy)
14193 ("python-reportlab" ,python-reportlab)
14194 ("python-pandas" ,python-pandas)
14195 ("python-pysam" ,python-pysam)
14196 ("python-pyfaidx" ,python-pyfaidx)
14197 ("python-scipy" ,python-scipy)
14198 ;; R packages
14199 ("r-dnacopy" ,r-dnacopy)))
14200 (home-page "https://cnvkit.readthedocs.org/")
14201 (synopsis "Copy number variant detection from targeted DNA sequencing")
14202 (description
14203 "CNVkit is a Python library and command-line software toolkit to infer
14204 and visualize copy number from high-throughput DNA sequencing data. It is
14205 designed for use with hybrid capture, including both whole-exome and custom
14206 target panels, and short-read sequencing platforms such as Illumina and Ion
14207 Torrent.")
14208 (license license:asl2.0)))
14209
14210 (define-public python-pyfit-sne
14211 (package
14212 (name "python-pyfit-sne")
14213 (version "1.0.1")
14214 (source
14215 (origin
14216 (method git-fetch)
14217 (uri (git-reference
14218 (url "https://github.com/KlugerLab/pyFIt-SNE.git")
14219 (commit version)))
14220 (file-name (git-file-name name version))
14221 (sha256
14222 (base32 "13wh3qkzs56azmmgnxib6xfr29g7xh09sxylzjpni5j0pp0rc5qw"))))
14223 (build-system python-build-system)
14224 (propagated-inputs
14225 `(("python-numpy" ,python-numpy)))
14226 (inputs
14227 `(("fftw" ,fftw)))
14228 (native-inputs
14229 `(("python-cython" ,python-cython)))
14230 (home-page "https://github.com/KlugerLab/pyFIt-SNE")
14231 (synopsis "FFT-accelerated Interpolation-based t-SNE")
14232 (description
14233 "t-Stochastic Neighborhood Embedding (t-SNE) is a highly successful
14234 method for dimensionality reduction and visualization of high dimensional
14235 datasets. A popular implementation of t-SNE uses the Barnes-Hut algorithm to
14236 approximate the gradient at each iteration of gradient descent. This package
14237 is a Cython wrapper for FIt-SNE.")
14238 (license license:bsd-4)))
14239
14240 (define-public bbmap
14241 (package
14242 (name "bbmap")
14243 (version "35.82")
14244 (source (origin
14245 (method url-fetch)
14246 (uri (string-append
14247 "mirror://sourceforge/bbmap/BBMap_" version ".tar.gz"))
14248 (sha256
14249 (base32
14250 "1q4rfhxcb6z3gm8zg2davjz98w22lkf4hm9ikxz9kdl93pil3wkd"))))
14251 (build-system ant-build-system)
14252 (arguments
14253 `(#:build-target "dist"
14254 #:tests? #f ; there are none
14255 #:make-flags
14256 (list (string-append "-Dmpijar="
14257 (assoc-ref %build-inputs "java-openmpi")
14258 "/lib/mpi.jar"))
14259 #:modules ((guix build ant-build-system)
14260 (guix build utils)
14261 (guix build java-utils))
14262 #:phases
14263 (modify-phases %standard-phases
14264 (add-after 'build 'build-jni-library
14265 (lambda _
14266 (with-directory-excursion "jni"
14267 (invoke "make" "-f" "makefile.linux"))))
14268 ;; There is no install target
14269 (replace 'install (install-jars "dist"))
14270 (add-after 'install 'install-scripts-and-documentation
14271 (lambda* (#:key outputs #:allow-other-keys)
14272 (substitute* "calcmem.sh"
14273 (("\\| awk ") (string-append "| " (which "awk") " ")))
14274 (let* ((scripts (find-files "." "\\.sh$"))
14275 (out (assoc-ref outputs "out"))
14276 (bin (string-append out "/bin"))
14277 (doc (string-append out "/share/doc/bbmap"))
14278 (jni (string-append out "/lib/jni")))
14279 (substitute* scripts
14280 (("\\$DIR\"\"docs") doc)
14281 (("^CP=.*")
14282 (string-append "CP=" out "/share/java/BBTools.jar\n"))
14283 (("^NATIVELIBDIR.*")
14284 (string-append "NATIVELIBDIR=" jni "\n"))
14285 (("CMD=\"java")
14286 (string-append "CMD=\"" (which "java"))))
14287 (for-each (lambda (script) (install-file script bin)) scripts)
14288
14289 ;; Install JNI library
14290 (install-file "jni/libbbtoolsjni.so" jni)
14291
14292 ;; Install documentation
14293 (install-file "docs/readme.txt" doc)
14294 (copy-recursively "docs/guides" doc))
14295 #t)))
14296 #:jdk ,openjdk11))
14297 (inputs
14298 `(("gawk" ,gawk)
14299 ("java-eclipse-jdt-core" ,java-eclipse-jdt-core)
14300 ("java-eclipse-jdt-compiler-apt" ,java-eclipse-jdt-compiler-apt)
14301 ("java-openmpi" ,java-openmpi)))
14302 (home-page "http://sourceforge.net/projects/bbmap/")
14303 (synopsis "Aligner and other tools for short sequencing reads")
14304 (description
14305 "This package provides bioinformatic tools to align, deduplicate,
14306 reformat, filter and normalize DNA and RNA-seq data. It includes the
14307 following tools: BBMap, a short read aligner for DNA and RNA-seq data; BBNorm,
14308 a kmer-based error-correction and normalization tool; Dedupe, a tool to
14309 simplify assemblies by removing duplicate or contained subsequences that share
14310 a target percent identity; Reformat, to convert reads between
14311 fasta/fastq/scarf/fasta+qual/sam, interleaved/paired, and ASCII-33/64, at over
14312 500 MB/s; and BBDuk, a tool to filter, trim, or mask reads with kmer matches
14313 to an artifact/contaminant file.")
14314 (license license:bsd-3)))
14315
14316 (define-public velvet
14317 (package
14318 (name "velvet")
14319 (version "1.2.10")
14320 (source (origin
14321 (method url-fetch)
14322 (uri (string-append "https://www.ebi.ac.uk/~zerbino/velvet/"
14323 "velvet_" version ".tgz"))
14324 (sha256
14325 (base32
14326 "0h3njwy66p6bx14r3ar1byb0ccaxmxka4c65rn4iybyiqa4d8kc8"))
14327 ;; Delete bundled libraries
14328 (modules '((guix build utils)))
14329 (snippet
14330 '(begin
14331 (delete-file "Manual.pdf")
14332 (delete-file-recursively "third-party")
14333 #t))))
14334 (build-system gnu-build-system)
14335 (arguments
14336 `(#:make-flags '("OPENMP=t")
14337 #:test-target "test"
14338 #:phases
14339 (modify-phases %standard-phases
14340 (delete 'configure)
14341 (add-after 'unpack 'fix-zlib-include
14342 (lambda _
14343 (substitute* "src/binarySequences.c"
14344 (("../third-party/zlib-1.2.3/zlib.h") "zlib.h"))
14345 #t))
14346 (replace 'install
14347 (lambda* (#:key outputs #:allow-other-keys)
14348 (let* ((out (assoc-ref outputs "out"))
14349 (bin (string-append out "/bin"))
14350 (doc (string-append out "/share/doc/velvet")))
14351 (mkdir-p bin)
14352 (mkdir-p doc)
14353 (install-file "velveth" bin)
14354 (install-file "velvetg" bin)
14355 (install-file "Manual.pdf" doc)
14356 (install-file "Columbus_manual.pdf" doc)
14357 #t))))))
14358 (inputs
14359 `(("openmpi" ,openmpi)
14360 ("zlib" ,zlib)))
14361 (native-inputs
14362 `(("texlive" ,(texlive-union (list texlive-latex-graphics
14363 texlive-latex-hyperref)))))
14364 (home-page "https://www.ebi.ac.uk/~zerbino/velvet/")
14365 (synopsis "Nucleic acid sequence assembler for very short reads")
14366 (description
14367 "Velvet is a de novo genomic assembler specially designed for short read
14368 sequencing technologies, such as Solexa or 454. Velvet currently takes in
14369 short read sequences, removes errors then produces high quality unique
14370 contigs. It then uses paired read information, if available, to retrieve the
14371 repeated areas between contigs.")
14372 (license license:gpl2+)))
14373
14374 (define-public python-velocyto
14375 (package
14376 (name "python-velocyto")
14377 (version "0.17.17")
14378 (source
14379 (origin
14380 (method url-fetch)
14381 (uri (pypi-uri "velocyto" version))
14382 (sha256
14383 (base32
14384 "0fgygyzqgrq32dv6a00biq1p1cwi6kbl5iqblxq1kklj6b2mzmhs"))))
14385 (build-system python-build-system)
14386 (propagated-inputs
14387 `(("python-click" ,python-click)
14388 ("python-cython" ,python-cython)
14389 ("python-h5py" ,python-h5py)
14390 ("python-loompy" ,python-loompy)
14391 ("python-matplotlib" ,python-matplotlib)
14392 ("python-numba" ,python-numba)
14393 ("python-numpy" ,python-numpy)
14394 ("python-pandas" ,python-pandas)
14395 ("python-pysam" ,python-pysam)
14396 ("python-scikit-learn" ,python-scikit-learn)
14397 ("python-scipy" ,python-scipy)))
14398 (home-page "https://github.com/velocyto-team/velocyto.py")
14399 (synopsis "RNA velocity analysis for single cell RNA-seq data")
14400 (description
14401 "Velocyto is a library for the analysis of RNA velocity. Velocyto
14402 includes a command line tool and an analysis pipeline.")
14403 (license license:bsd-2)))
14404
14405 (define-public arriba
14406 (package
14407 (name "arriba")
14408 (version "1.0.1")
14409 (source
14410 (origin
14411 (method url-fetch)
14412 (uri (string-append "https://github.com/suhrig/arriba/releases/"
14413 "download/v" version "/arriba_v" version ".tar.gz"))
14414 (sha256
14415 (base32
14416 "0jx9656ry766vb8z08m1c3im87b0c82qpnjby9wz4kcz8vn87dx2"))))
14417 (build-system gnu-build-system)
14418 (arguments
14419 `(#:tests? #f ; there are none
14420 #:phases
14421 (modify-phases %standard-phases
14422 (replace 'configure
14423 (lambda* (#:key inputs #:allow-other-keys)
14424 (let ((htslib (assoc-ref inputs "htslib")))
14425 (substitute* "Makefile"
14426 (("-I\\$\\(HTSLIB\\)/htslib")
14427 (string-append "-I" htslib "/include/htslib"))
14428 ((" \\$\\(HTSLIB\\)/libhts.a")
14429 (string-append " " htslib "/lib/libhts.so"))))
14430 (substitute* "run_arriba.sh"
14431 (("^STAR ") (string-append (which "STAR") " "))
14432 (("samtools --version-only")
14433 (string-append (which "samtools") " --version-only"))
14434 (("samtools index")
14435 (string-append (which "samtools") " index"))
14436 (("samtools sort")
14437 (string-append (which "samtools") " sort")))
14438 #t))
14439 (replace 'install
14440 (lambda* (#:key outputs #:allow-other-keys)
14441 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
14442 (install-file "arriba" bin)
14443 (install-file "run_arriba.sh" bin)
14444 (install-file "draw_fusions.R" bin)
14445 (wrap-program (string-append bin "/draw_fusions.R")
14446 `("R_LIBS_SITE" ":" prefix (,(getenv "R_LIBS_SITE")))))
14447 #t)))))
14448 (inputs
14449 `(("htslib" ,htslib)
14450 ("r-minimal" ,r-minimal)
14451 ("r-circlize" ,r-circlize)
14452 ("r-genomicalignments" ,r-genomicalignments)
14453 ("r-genomicranges" ,r-genomicranges)
14454 ("samtools" ,samtools)
14455 ("star" ,star)
14456 ("zlib" ,zlib)))
14457 (home-page "https://github.com/suhrig/arriba")
14458 (synopsis "Gene fusion detection from RNA-Seq data ")
14459 (description
14460 "Arriba is a command-line tool for the detection of gene fusions from
14461 RNA-Seq data. It was developed for the use in a clinical research setting.
14462 Therefore, short runtimes and high sensitivity were important design criteria.
14463 It is based on the fast STAR aligner and the post-alignment runtime is
14464 typically just around two minutes. In contrast to many other fusion detection
14465 tools which build on STAR, Arriba does not require to reduce the
14466 @code{alignIntronMax} parameter of STAR to detect small deletions.")
14467 ;; All code is under the Expat license with the exception of
14468 ;; "draw_fusions.R", which is under GPLv3.
14469 (license (list license:expat license:gpl3))))
14470
14471 (define-public adapterremoval
14472 (package
14473 (name "adapterremoval")
14474 (version "2.3.0")
14475 (source
14476 (origin
14477 (method git-fetch)
14478 (uri (git-reference
14479 (url "https://github.com/MikkelSchubert/adapterremoval.git")
14480 (commit (string-append "v" version))))
14481 (file-name (git-file-name name version))
14482 (sha256
14483 (base32
14484 "1nf3ki5pfzalhrx2fr1y6pfqfi133yj2m7q4fj9irf5fb94bapwr"))))
14485 (build-system gnu-build-system)
14486 (arguments
14487 `(#:make-flags (list "COLOR_BUILD=no"
14488 (string-append "PREFIX="
14489 (assoc-ref %outputs "out")))
14490 #:test-target "test"
14491 #:phases
14492 (modify-phases %standard-phases
14493 (delete 'configure))))
14494 (inputs
14495 `(("zlib" ,zlib)))
14496 (home-page "https://adapterremoval.readthedocs.io/")
14497 (synopsis "Rapid sequence adapter trimming, identification, and read merging")
14498 (description
14499 "This program searches for and removes remnant adapter sequences from
14500 @dfn{High-Throughput Sequencing} (HTS) data and (optionally) trims low quality
14501 bases from the 3' end of reads following adapter removal. AdapterRemoval can
14502 analyze both single end and paired end data, and can be used to merge
14503 overlapping paired-ended reads into (longer) consensus sequences.
14504 Additionally, the AdapterRemoval may be used to recover a consensus adapter
14505 sequence for paired-ended data, for which this information is not available.")
14506 (license license:gpl3+)))
14507
14508 (define-public pplacer
14509 (let ((commit "807f6f3"))
14510 (package
14511 (name "pplacer")
14512 ;; The commit should be updated with each version change.
14513 (version "1.1.alpha19")
14514 (source
14515 (origin
14516 (method git-fetch)
14517 (uri (git-reference
14518 (url "https://github.com/matsen/pplacer.git")
14519 (commit (string-append "v" version))))
14520 (file-name (git-file-name name version))
14521 (sha256
14522 (base32 "11ppbbbx20p2g9wj3ff64dhnarb12q79v7qh4rk0gj6lkbz4n7cn"))))
14523 (build-system ocaml-build-system)
14524 (arguments
14525 `(#:modules ((guix build ocaml-build-system)
14526 (guix build utils)
14527 (ice-9 ftw))
14528 #:phases
14529 (modify-phases %standard-phases
14530 (delete 'configure)
14531 (add-after 'unpack 'fix-build-with-latest-ocaml
14532 (lambda _
14533 (substitute* "myocamlbuild.ml"
14534 (("dep \\[\"c_pam\"\\]" m)
14535 (string-append "flag [\"ocaml\"; \"compile\"] (A \"-unsafe-string\");\n"
14536 m))
14537 (("let run_and_read" m)
14538 (string-append "
14539 let split s ch =
14540 let x = ref [] in
14541 let rec go s =
14542 let pos = String.index s ch in
14543 x := (String.before s pos)::!x;
14544 go (String.after s (pos + 1))
14545 in
14546 try go s
14547 with Not_found -> !x
14548 let split_nl s = split s '\\n'
14549 let before_space s =
14550 try String.before s (String.index s ' ')
14551 with Not_found -> s
14552
14553 " m))
14554 (("run_and_read \"ocamlfind list \\| cut -d' ' -f1\"" m)
14555 (string-append "List.map before_space (split_nl & " m ")"))
14556 ((" blank_sep_strings &") "")
14557 ((" Lexing.from_string &") ""))
14558 #t))
14559 (add-after 'unpack 'replace-bundled-cddlib
14560 (lambda* (#:key inputs #:allow-other-keys)
14561 (let* ((cddlib-src (assoc-ref inputs "cddlib-src"))
14562 (local-dir "cddlib_guix"))
14563 (mkdir local-dir)
14564 (with-directory-excursion local-dir
14565 (invoke "tar" "xvf" cddlib-src))
14566 (let ((cddlib-src-folder
14567 (string-append local-dir "/"
14568 (list-ref (scandir local-dir) 2)
14569 "/lib-src")))
14570 (for-each make-file-writable (find-files "cdd_src" ".*"))
14571 (for-each
14572 (lambda (file)
14573 (copy-file file
14574 (string-append "cdd_src/" (basename file))))
14575 (find-files cddlib-src-folder ".*[ch]$")))
14576 #t)))
14577 (add-after 'unpack 'fix-makefile
14578 (lambda _
14579 ;; Remove system calls to 'git'.
14580 (substitute* "Makefile"
14581 (("^DESCRIPT:=pplacer-.*")
14582 (string-append
14583 "DESCRIPT:=pplacer-$(shell uname)-v" ,version "\n")))
14584 (substitute* "myocamlbuild.ml"
14585 (("git describe --tags --long .*\\\" with")
14586 (string-append
14587 "echo -n v" ,version "-" ,commit "\" with")))
14588 #t))
14589 (replace 'install
14590 (lambda* (#:key outputs #:allow-other-keys)
14591 (let* ((out (assoc-ref outputs "out"))
14592 (bin (string-append out "/bin")))
14593 (copy-recursively "bin" bin))
14594 #t)))))
14595 (inputs
14596 `(("zlib" ,zlib "static")
14597 ("gsl" ,gsl)
14598 ("ocaml-ounit" ,ocaml-ounit)
14599 ("ocaml-batteries" ,ocaml-batteries)
14600 ("ocaml-camlzip" ,camlzip)
14601 ("ocaml-csv" ,ocaml-csv)
14602 ("ocaml-sqlite3" ,ocaml-sqlite3)
14603 ("ocaml-xmlm" ,ocaml-xmlm)
14604 ("ocaml-mcl" ,ocaml-mcl)
14605 ("ocaml-gsl" ,ocaml-gsl-1)))
14606 (native-inputs
14607 `(("cddlib-src" ,(package-source cddlib))
14608 ("ocamlbuild" ,ocamlbuild)
14609 ("pkg-config" ,pkg-config)))
14610 (propagated-inputs
14611 `(("pplacer-scripts" ,pplacer-scripts)))
14612 (synopsis "Phylogenetic placement of biological sequences")
14613 (description
14614 "Pplacer places query sequences on a fixed reference phylogenetic tree
14615 to maximize phylogenetic likelihood or posterior probability according to a
14616 reference alignment. Pplacer is designed to be fast, to give useful
14617 information about uncertainty, and to offer advanced visualization and
14618 downstream analysis.")
14619 (home-page "http://matsen.fhcrc.org/pplacer")
14620 (license license:gpl3))))
14621
14622 ;; This package is installed alongside 'pplacer'. It is a separate package so
14623 ;; that it can use the python-build-system for the scripts that are
14624 ;; distributed alongside the main OCaml binaries.
14625 (define pplacer-scripts
14626 (package
14627 (inherit pplacer)
14628 (name "pplacer-scripts")
14629 (build-system python-build-system)
14630 (arguments
14631 `(#:python ,python-2
14632 #:phases
14633 (modify-phases %standard-phases
14634 (add-after 'unpack 'enter-scripts-dir
14635 (lambda _ (chdir "scripts") #t))
14636 (replace 'check
14637 (lambda _ (invoke "python" "-m" "unittest" "discover" "-v") #t))
14638 (add-after 'install 'wrap-executables
14639 (lambda* (#:key inputs outputs #:allow-other-keys)
14640 (let* ((out (assoc-ref outputs "out"))
14641 (bin (string-append out "/bin")))
14642 (let ((path (string-append
14643 (assoc-ref inputs "hmmer") "/bin:"
14644 (assoc-ref inputs "infernal") "/bin")))
14645 (display path)
14646 (wrap-program (string-append bin "/refpkg_align.py")
14647 `("PATH" ":" prefix (,path))))
14648 (let ((path (string-append
14649 (assoc-ref inputs "hmmer") "/bin")))
14650 (wrap-program (string-append bin "/hrefpkg_query.py")
14651 `("PATH" ":" prefix (,path)))))
14652 #t)))))
14653 (inputs
14654 `(("infernal" ,infernal)
14655 ("hmmer" ,hmmer)))
14656 (propagated-inputs
14657 `(("python-biopython" ,python2-biopython)
14658 ("taxtastic" ,taxtastic)))
14659 (synopsis "Pplacer Python scripts")))
14660
14661 (define-public python2-checkm-genome
14662 (package
14663 (name "python2-checkm-genome")
14664 (version "1.0.13")
14665 (source
14666 (origin
14667 (method url-fetch)
14668 (uri (pypi-uri "checkm-genome" version))
14669 (sha256
14670 (base32
14671 "0bm8gpxjmzxsxxl8lzwqhgx8g1dlnmp6znz7wv3hgb0gdjbf9dzz"))))
14672 (build-system python-build-system)
14673 (arguments
14674 `(#:python ,python-2
14675 #:tests? #f)) ; some tests are interactive
14676 (propagated-inputs
14677 `(("python-dendropy" ,python2-dendropy)
14678 ("python-matplotlib" ,python2-matplotlib)
14679 ("python-numpy" ,python2-numpy)
14680 ("python-pysam" ,python2-pysam)
14681 ("python-scipy" ,python2-scipy)))
14682 (home-page "http://pypi.python.org/pypi/checkm/")
14683 (synopsis "Assess the quality of putative genome bins")
14684 (description
14685 "CheckM provides a set of tools for assessing the quality of genomes
14686 recovered from isolates, single cells, or metagenomes. It provides robust
14687 estimates of genome completeness and contamination by using collocated sets of
14688 genes that are ubiquitous and single-copy within a phylogenetic lineage.
14689 Assessment of genome quality can also be examined using plots depicting key
14690 genomic characteristics (e.g., GC, coding density) which highlight sequences
14691 outside the expected distributions of a typical genome. CheckM also provides
14692 tools for identifying genome bins that are likely candidates for merging based
14693 on marker set compatibility, similarity in genomic characteristics, and
14694 proximity within a reference genome.")
14695 (license license:gpl3+)))
14696
14697 (define-public umi-tools
14698 (package
14699 (name "umi-tools")
14700 (version "1.0.0")
14701 (source
14702 (origin
14703 (method url-fetch)
14704 (uri (pypi-uri "umi_tools" version))
14705 (sha256
14706 (base32
14707 "08y3vz1vcx09whmbsn722lcs6jl9wyrh9i4p3k8j4cb1i32bij4a"))))
14708 (build-system python-build-system)
14709 (inputs
14710 `(("python-pandas" ,python-pandas)
14711 ("python-future" ,python-future)
14712 ("python-scipy" ,python-scipy)
14713 ("python-matplotlib" ,python-matplotlib)
14714 ("python-regex" ,python-regex)
14715 ("python-pysam" ,python-pysam)))
14716 (native-inputs
14717 `(("python-cython" ,python-cython)))
14718 (home-page "https://github.com/CGATOxford/UMI-tools")
14719 (synopsis "Tools for analyzing unique modular identifiers")
14720 (description "This package provides tools for dealing with @dfn{Unique
14721 Molecular Identifiers} (UMIs) and @dfn{Random Molecular Tags} (RMTs) in
14722 genetic sequences. There are six tools: the @code{extract} and
14723 @code{whitelist} commands are used to prepare a fastq containing UMIs @code{+/-}
14724 cell barcodes for alignment. The remaining commands, @code{group},
14725 @code{dedup}, and @{count}/@code{count_tab}, are used to identify PCR
14726 duplicates using the UMIs and perform different levels of analysis depending
14727 on the needs of the user.")
14728 (license license:expat)))
14729
14730 (define-public ataqv
14731 (package
14732 (name "ataqv")
14733 (version "1.0.0")
14734 (source
14735 (origin
14736 (method git-fetch)
14737 (uri (git-reference
14738 (url "https://github.com/ParkerLab/ataqv.git")
14739 (commit version)))
14740 (file-name (git-file-name name version))
14741 (sha256
14742 (base32
14743 "031xr6jx1aprh26y5b1lv3gzrlmzg4alfl73vvshymx8cq8asrqi"))))
14744 (build-system gnu-build-system)
14745 (arguments
14746 `(#:make-flags
14747 (list (string-append "prefix=" (assoc-ref %outputs "out"))
14748 (string-append "BOOST_ROOT="
14749 (assoc-ref %build-inputs "boost"))
14750 (string-append "HTSLIB_ROOT="
14751 (assoc-ref %build-inputs "htslib")))
14752 #:test-target "test"
14753 #:phases
14754 (modify-phases %standard-phases
14755 (delete 'configure))))
14756 (inputs
14757 `(("boost" ,boost)
14758 ("htslib" ,htslib)
14759 ("ncurses" ,ncurses)
14760 ("zlib" ,zlib)))
14761 (native-inputs
14762 `(("lcov" ,lcov)))
14763 (home-page "https://github.com/ParkerLab/ataqv")
14764 (synopsis "Toolkit for quality control and visualization of ATAC-seq data")
14765 (description "This package provides a toolkit for measuring and comparing
14766 ATAC-seq results. It was written to make it easier to spot differences that
14767 might be caused by ATAC-seq library prep or sequencing. The main program,
14768 @code{ataqv}, examines aligned reads and reports some basic metrics.")
14769 (license license:gpl3+)))
14770
14771 (define-public r-psiplot
14772 (package
14773 (name "r-psiplot")
14774 (version "2.3.0")
14775 (source
14776 (origin
14777 (method git-fetch)
14778 (uri (git-reference
14779 (url "https://github.com/kcha/psiplot.git")
14780 (commit (string-append "v" version))))
14781 (file-name (git-file-name name version))
14782 (sha256
14783 (base32 "08438h16cfry5kqh3y9hs8q1b1a8bxhblsm75knviz5r6q0n1jxh"))))
14784 (build-system r-build-system)
14785 (propagated-inputs
14786 `(("r-mass" ,r-mass)
14787 ("r-dplyr" ,r-dplyr)
14788 ("r-tidyr" ,r-tidyr)
14789 ("r-purrr" ,r-purrr)
14790 ("r-readr" ,r-readr)
14791 ("r-magrittr" ,r-magrittr)
14792 ("r-ggplot2" ,r-ggplot2)))
14793 (home-page "https://github.com/kcha/psiplot")
14794 (synopsis "Plot percent spliced-in values of alternatively-spliced exons")
14795 (description
14796 "PSIplot is an R package for generating plots of @dfn{percent
14797 spliced-in} (PSI) values of alternatively-spliced exons that were computed by
14798 vast-tools, an RNA-Seq pipeline for alternative splicing analysis. The plots
14799 are generated using @code{ggplot2}.")
14800 (license license:expat)))
14801
14802 (define-public python-ont-fast5-api
14803 (package
14804 (name "python-ont-fast5-api")
14805 (version "1.4.4")
14806 (source
14807 (origin
14808 (method git-fetch)
14809 (uri (git-reference
14810 (url "https://github.com/nanoporetech/ont_fast5_api.git")
14811 (commit (string-append "release_" version))))
14812 (file-name (git-file-name name version))
14813 (sha256
14814 (base32
14815 "03cbq4zbbwhll8ml2m9k8sa31mirsvcbjkrq1yna0kkzz9fad5fm"))))
14816 (build-system python-build-system)
14817 (propagated-inputs
14818 `(("python-numpy" ,python-numpy)
14819 ("python-six" ,python-six)
14820 ("python-h5py" ,python-h5py)
14821 ("python-progressbar33" ,python-progressbar33)))
14822 (home-page "https://github.com/nanoporetech/ont_fast5_api")
14823 (synopsis "Interface to HDF5 files of the Oxford Nanopore fast5 file format")
14824 (description
14825 "This package provides a concrete implementation of the fast5 file schema
14826 using the generic @code{h5py} library, plain-named methods to interact with
14827 and reflect the fast5 file schema, and tools to convert between
14828 @code{multi_read} and @code{single_read} formats.")
14829 (license license:mpl2.0)))
14830
14831 (define-public tbsp
14832 (let ((commit "ec8fff4410cfb13a677dbbb95cbbc60217e64907")
14833 (revision "1"))
14834 (package
14835 (name "tbsp")
14836 (version (git-version "1.0.0" revision commit))
14837 (source
14838 (origin
14839 (method git-fetch)
14840 (uri (git-reference
14841 (url "https://github.com/phoenixding/tbsp.git")
14842 (commit commit)))
14843 (file-name (git-file-name name version))
14844 (sha256
14845 (base32
14846 "025ym14x8gbd6hb55lsinqj6f5qzw36i10klgs7ldzxxd7s39ki1"))))
14847 (build-system python-build-system)
14848 (arguments '(#:tests? #f)) ; no tests included
14849 (inputs
14850 `(("python-matplotlib" ,python-matplotlib)
14851 ("python-networkx" ,python-networkx)
14852 ("python-numpy" ,python-numpy)
14853 ("python-pybigwig" ,python-pybigwig)
14854 ("python-biopython" ,python-biopython)
14855 ("python-scikit-learn" ,python-scikit-learn)
14856 ("python-scipy" ,python-scipy)))
14857 (home-page "https://github.com/phoenixding/tbsp/")
14858 (synopsis "SNP-based trajectory inference")
14859 (description
14860 "Several studies focus on the inference of developmental and response
14861 trajectories from single cell RNA-Seq (scRNA-Seq) data. A number of
14862 computational methods, often referred to as pseudo-time ordering, have been
14863 developed for this task. CRISPR has also been used to reconstruct lineage
14864 trees by inserting random mutations. The tbsp package implements an
14865 alternative method to detect significant, cell type specific sequence
14866 mutations from scRNA-Seq data.")
14867 (license license:expat))))
14868
14869 (define-public tabixpp
14870 (package
14871 (name "tabixpp")
14872 (version "1.0.0")
14873 (source (origin
14874 (method git-fetch)
14875 (uri (git-reference
14876 (url "https://github.com/ekg/tabixpp")
14877 (commit (string-append "v" version))))
14878 (file-name (git-file-name name version))
14879 (sha256
14880 (base32 "08vx6nsipk971cyr8z53rnzwkvlld63kcn1fw0pwddynz91xfny8"))))
14881 (build-system gnu-build-system)
14882 (inputs
14883 `(("htslib" ,htslib)
14884 ("zlib" ,zlib)))
14885 (arguments
14886 `(#:tests? #f ; There are no tests to run.
14887 #:phases
14888 (modify-phases %standard-phases
14889 (delete 'configure) ; There is no configure phase.
14890 ;; The build phase needs overriding the location of htslib.
14891 (replace 'build
14892 (lambda* (#:key inputs #:allow-other-keys)
14893 (let ((htslib-ref (assoc-ref inputs "htslib")))
14894 (invoke "make"
14895 (string-append "HTS_LIB=" htslib-ref "/lib/libhts.a")
14896 "HTS_HEADERS=" ; No need to check for headers here.
14897 (string-append "LIBPATH=-L. -L" htslib-ref "/include")))))
14898 (replace 'install
14899 (lambda* (#:key outputs #:allow-other-keys)
14900 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
14901 (install-file "tabix++" bin))
14902 #t)))))
14903 (home-page "https://github.com/ekg/tabixpp")
14904 (synopsis "C++ wrapper around tabix project")
14905 (description "This is a C++ wrapper around the Tabix project which abstracts
14906 some of the details of opening and jumping in tabix-indexed files.")
14907 (license license:expat)))
14908
14909 (define tabixpp-freebayes
14910 ;; This version works with FreeBayes while the released
14911 ;; version doesn't. The released creates a variable with the name \"vcf\"
14912 ;; somewhere, which is also the name of a namespace in vcflib.
14913 (let ((commit "bbc63a49acc52212199f92e9e3b8fba0a593e3f7"))
14914 (package
14915 (inherit tabixpp)
14916 (name "tabixpp-freebayes")
14917 (version (git-version "0.0.0" "1" commit))
14918 (source (origin
14919 (method git-fetch)
14920 (uri (git-reference
14921 (url "https://github.com/ekg/tabixpp/")
14922 (commit commit)))
14923 (file-name (git-file-name name version))
14924 (sha256
14925 (base32 "017qsmsc2kyiyzqr9nl8cc6pfldxf16dbn8flx5i59mbqr9ydi7g")))))))
14926
14927 (define-public smithwaterman
14928 ;; TODO: Upgrading smithwaterman breaks FreeBayes.
14929 (let ((commit "203218b47d45ac56ef234716f1bd4c741b289be1"))
14930 (package
14931 (name "smithwaterman")
14932 (version (string-append "0-1." (string-take commit 7)))
14933 (source (origin
14934 (method git-fetch)
14935 (uri (git-reference
14936 (url "https://github.com/ekg/smithwaterman/")
14937 (commit commit)))
14938 (file-name (git-file-name name version))
14939 (sha256
14940 (base32 "0z9xsmsv452kgdfbbwydyc6nymg3fwyv8zswls8qjin3r4ia4415"))))
14941 (build-system gnu-build-system)
14942 (arguments
14943 `(#:tests? #f ; There are no tests to run.
14944 #:phases
14945 (modify-phases %standard-phases
14946 (delete 'configure) ; There is no configure phase.
14947 (replace 'install
14948 (lambda* (#:key outputs #:allow-other-keys)
14949 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
14950 (install-file "smithwaterman" bin))
14951 #t)))))
14952 (home-page "https://github.com/ekg/smithwaterman")
14953 (synopsis "Implementation of the Smith-Waterman algorithm")
14954 (description "Implementation of the Smith-Waterman algorithm.")
14955 ;; The licensing terms are unclear: https://github.com/ekg/smithwaterman/issues/9.
14956 (license (list license:gpl2 license:expat)))))
14957
14958 (define-public multichoose
14959 (package
14960 (name "multichoose")
14961 (version "1.0.3")
14962 (source (origin
14963 (method git-fetch)
14964 (uri (git-reference
14965 (url "https://github.com/ekg/multichoose/")
14966 (commit (string-append "v" version))))
14967 (file-name (git-file-name name version))
14968 (sha256
14969 (base32 "0ci5fqvmpamwgxvmyd79ygj6n3bnbl3vc7b6h1sxz58186sm3pfs"))))
14970 (build-system gnu-build-system)
14971 (arguments
14972 `(#:tests? #f ; Tests require node.
14973 #:phases
14974 (modify-phases %standard-phases
14975 (delete 'configure) ; There is no configure phase.
14976 (replace 'install
14977 (lambda* (#:key outputs #:allow-other-keys)
14978 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
14979 ;; TODO: There are Python modules for these programs too.
14980 (install-file "multichoose" bin)
14981 (install-file "multipermute" bin))
14982 #t)))))
14983 (home-page "https://github.com/ekg/multichoose")
14984 (synopsis "Efficient loopless multiset combination generation algorithm")
14985 (description "This library implements an efficient loopless multiset
14986 combination generation algorithm which is (approximately) described in
14987 \"Loopless algorithms for generating permutations, combinations, and other
14988 combinatorial configurations.\", G. Ehrlich - Journal of the ACM (JACM),
14989 1973. (Algorithm 7.)")
14990 (license license:expat)))
14991
14992 (define-public fsom
14993 (let ((commit "a6ef318fbd347c53189384aef7f670c0e6ce89a3"))
14994 (package
14995 (name "fsom")
14996 (version (git-version "0.0.0" "1" commit))
14997 (source (origin
14998 (method git-fetch)
14999 (uri (git-reference
15000 (url "https://github.com/ekg/fsom/")
15001 (commit commit)))
15002 (file-name (git-file-name name version))
15003 (sha256
15004 (base32 "0gw1lpvr812pywg9y546x0h1hhj261xwls41r6kqhddjlrcjc0pi"))))
15005 (build-system gnu-build-system)
15006 (arguments
15007 `(#:tests? #f ; There are no tests to run.
15008 #:phases
15009 (modify-phases %standard-phases
15010 (delete 'configure) ; There is no configure phase.
15011 (replace 'install
15012 (lambda* (#:key outputs #:allow-other-keys)
15013 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
15014 (install-file "fsom" bin))
15015 #t)))))
15016 (home-page "https://github.com/ekg/fsom")
15017 (synopsis "Manage SOM (Self-Organizing Maps) neural networks")
15018 (description "A tiny C library for managing SOM (Self-Organizing Maps)
15019 neural networks.")
15020 (license license:gpl3))))
15021
15022 (define-public fastahack
15023 (let ((commit "c68cebb4f2e5d5d2b70cf08fbdf1944e9ab2c2dd"))
15024 (package
15025 (name "fastahack")
15026 (version (git-version "0.0.0" "1" commit))
15027 (source (origin
15028 (method git-fetch)
15029 (uri (git-reference
15030 (url "https://github.com/ekg/fastahack/")
15031 (commit commit)))
15032 (file-name (git-file-name name version))
15033 (sha256
15034 (base32 "0hfdv67l9g611i2ck4l92pd6ygmsp9g1ph4zx1ni7qkpsikf0l19"))))
15035 (build-system gnu-build-system)
15036 (arguments
15037 `(#:tests? #f ; Unclear how to run tests: https://github.com/ekg/fastahack/issues/15
15038 #:phases
15039 (modify-phases %standard-phases
15040 (delete 'configure) ; There is no configure phase.
15041 (replace 'install
15042 (lambda* (#:key outputs #:allow-other-keys)
15043 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
15044 (install-file "fastahack" bin))
15045 #t)))))
15046 (home-page "https://github.com/ekg/fastahack")
15047 (synopsis "Indexing and sequence extraction from FASTA files")
15048 (description "Fastahack is a small application for indexing and
15049 extracting sequences and subsequences from FASTA files. The included library
15050 provides a FASTA reader and indexer that can be embedded into applications
15051 which would benefit from directly reading subsequences from FASTA files. The
15052 library automatically handles index file generation and use.")
15053 (license (list license:expat license:gpl2)))))
15054
15055 (define-public vcflib
15056 (let ((commit "5ac091365fdc716cc47cc5410bb97ee5dc2a2c92")
15057 (revision "1"))
15058 (package
15059 (name "vcflib")
15060 (version (git-version "0.0.0" revision commit))
15061 (source
15062 (origin
15063 (method git-fetch)
15064 (uri (git-reference
15065 (url "https://github.com/vcflib/vcflib/")
15066 (commit commit)))
15067 (file-name (git-file-name name version))
15068 (sha256
15069 (base32 "1gijvcz1lcdn5kvgzb671l6iby0379qk00nqmcrszgk67hfwx6kq"))))
15070 (build-system gnu-build-system)
15071 (inputs
15072 `(("zlib" ,zlib)))
15073 (native-inputs
15074 `(("perl" ,perl)
15075 ("python" ,python-2)
15076 ;; Submodules.
15077 ;; This package builds against the .o files so we need to extract the source.
15078 ("tabixpp-src" ,(package-source tabixpp-freebayes))
15079 ("smithwaterman-src" ,(package-source smithwaterman))
15080 ("multichoose-src" ,(package-source multichoose))
15081 ("fsom-src" ,(package-source fsom))
15082 ("filevercmp-src" ,(package-source filevercmp))
15083 ("fastahack-src" ,(package-source fastahack))
15084 ("intervaltree-src"
15085 ,(origin
15086 (method git-fetch)
15087 (uri (git-reference
15088 (url "https://github.com/ekg/intervaltree/")
15089 (commit "dbb4c513d1ad3baac516fc1484c995daf9b42838")))
15090 (file-name "intervaltree-src-checkout")
15091 (sha256
15092 (base32 "1fy5qbj4bg8d2bjysvaa9wfnqn2rj2sk5yra2h4l5pzvy53f23fj"))))))
15093 (arguments
15094 `(#:tests? #f ; no tests
15095 #:phases
15096 (modify-phases %standard-phases
15097 (delete 'configure)
15098 (delete 'check)
15099 (add-after 'unpack 'unpack-submodule-sources
15100 (lambda* (#:key inputs #:allow-other-keys)
15101 (let ((unpack (lambda (source target)
15102 (with-directory-excursion target
15103 (if (file-is-directory? (assoc-ref inputs source))
15104 (copy-recursively (assoc-ref inputs source) ".")
15105 (invoke "tar" "xvf"
15106 (assoc-ref inputs source)
15107 "--strip-components=1"))))))
15108 (and
15109 (unpack "intervaltree-src" "intervaltree")
15110 (unpack "fastahack-src" "fastahack")
15111 (unpack "filevercmp-src" "filevercmp")
15112 (unpack "fsom-src" "fsom")
15113 (unpack "multichoose-src" "multichoose")
15114 (unpack "smithwaterman-src" "smithwaterman")
15115 (unpack "tabixpp-src" "tabixpp")))))
15116 (replace 'build
15117 (lambda* (#:key inputs make-flags #:allow-other-keys)
15118 (with-directory-excursion "tabixpp"
15119 (invoke "make"))
15120 (invoke "make" "CC=gcc"
15121 (string-append "CFLAGS=\"" "-Itabixpp " "\"")
15122 "all")))
15123 (replace 'install
15124 (lambda* (#:key outputs #:allow-other-keys)
15125 (let ((bin (string-append (assoc-ref outputs "out") "/bin"))
15126 (lib (string-append (assoc-ref outputs "out") "/lib")))
15127 (for-each (lambda (file)
15128 (install-file file bin))
15129 (find-files "bin" ".*"))
15130 ;; The header files in src/ do not interface libvcflib,
15131 ;; therefore they are left out.
15132 (install-file "libvcflib.a" lib))
15133 #t)))))
15134 (home-page "https://github.com/vcflib/vcflib/")
15135 (synopsis "Library for parsing and manipulating VCF files")
15136 (description "Vcflib provides methods to manipulate and interpret
15137 sequence variation as it can be described by VCF. It is both an API for parsing
15138 and operating on records of genomic variation as it can be described by the VCF
15139 format, and a collection of command-line utilities for executing complex
15140 manipulations on VCF files.")
15141 (license license:expat))))
15142
15143 (define-public freebayes
15144 (let ((commit "3ce827d8ebf89bb3bdc097ee0fe7f46f9f30d5fb")
15145 (revision "1")
15146 (version "1.0.2"))
15147 (package
15148 (name "freebayes")
15149 (version (git-version version revision commit))
15150 (source (origin
15151 (method git-fetch)
15152 (uri (git-reference
15153 (url "https://github.com/ekg/freebayes.git")
15154 (commit commit)))
15155 (file-name (git-file-name name version))
15156 (sha256
15157 (base32 "1sbzwmcbn78ybymjnhwk7qc5r912azy5vqz2y7y81616yc3ba2a2"))))
15158 (build-system gnu-build-system)
15159 (inputs
15160 `(("bamtools" ,bamtools)
15161 ("htslib" ,htslib)
15162 ("zlib" ,zlib)))
15163 (native-inputs
15164 `(("bc" ,bc) ; Needed for running tests.
15165 ("samtools" ,samtools) ; Needed for running tests.
15166 ("parallel" ,parallel) ; Needed for running tests.
15167 ("perl" ,perl) ; Needed for running tests.
15168 ("procps" ,procps) ; Needed for running tests.
15169 ("python" ,python-2) ; Needed for running tests.
15170 ("vcflib-src" ,(package-source vcflib))
15171 ;; These are submodules for the vcflib version used in freebayes.
15172 ;; This package builds against the .o files so we need to extract the source.
15173 ("tabixpp-src" ,(package-source tabixpp-freebayes))
15174 ("smithwaterman-src" ,(package-source smithwaterman))
15175 ("multichoose-src" ,(package-source multichoose))
15176 ("fsom-src" ,(package-source fsom))
15177 ("filevercmp-src" ,(package-source filevercmp))
15178 ("fastahack-src" ,(package-source fastahack))
15179 ("intervaltree-src"
15180 ,(origin
15181 (method git-fetch)
15182 (uri (git-reference
15183 (url "https://github.com/ekg/intervaltree/")
15184 (commit "dbb4c513d1ad3baac516fc1484c995daf9b42838")))
15185 (file-name "intervaltree-src-checkout")
15186 (sha256
15187 (base32 "1fy5qbj4bg8d2bjysvaa9wfnqn2rj2sk5yra2h4l5pzvy53f23fj"))))
15188 ;; These submodules are needed to run the tests.
15189 ("bash-tap-src" ,(package-source bash-tap))
15190 ("test-simple-bash-src"
15191 ,(origin
15192 (method git-fetch)
15193 (uri (git-reference
15194 (url "https://github.com/ingydotnet/test-simple-bash/")
15195 (commit "124673ff204b01c8e96b7fc9f9b32ee35d898acc")))
15196 (file-name "test-simple-bash-src-checkout")
15197 (sha256
15198 (base32 "043plp6z0x9yf7mdpky1fw7zcpwn1p47px95w9mh16603zqqqpga"))))))
15199 (arguments
15200 `(#:make-flags
15201 (list "CC=gcc"
15202 (string-append "BAMTOOLS_ROOT="
15203 (assoc-ref %build-inputs "bamtools")))
15204 #:test-target "test"
15205 #:phases
15206 (modify-phases %standard-phases
15207 (delete 'configure)
15208 (add-after 'unpack 'fix-tests
15209 (lambda _
15210 (substitute* "test/t/01_call_variants.t"
15211 (("grep -P \"\\(\\\\t500\\$\\|\\\\t11000\\$\\|\\\\t1000\\$\\)\"")
15212 "grep -E ' (500|11000|1000)$'"))
15213 #t))
15214 (add-after 'unpack 'unpack-submodule-sources
15215 (lambda* (#:key inputs #:allow-other-keys)
15216 (let ((unpack (lambda (source target)
15217 (with-directory-excursion target
15218 (if (file-is-directory? (assoc-ref inputs source))
15219 (copy-recursively (assoc-ref inputs source) ".")
15220 (invoke "tar" "xvf"
15221 (assoc-ref inputs source)
15222 "--strip-components=1"))))))
15223 (and
15224 (unpack "vcflib-src" "vcflib")
15225 (unpack "fastahack-src" "vcflib/fastahack")
15226 (unpack "filevercmp-src" "vcflib/filevercmp")
15227 (unpack "fsom-src" "vcflib/fsom")
15228 (unpack "intervaltree-src" "vcflib/intervaltree")
15229 (unpack "multichoose-src" "vcflib/multichoose")
15230 (unpack "smithwaterman-src" "vcflib/smithwaterman")
15231 (unpack "tabixpp-src" "vcflib/tabixpp")
15232 (unpack "test-simple-bash-src" "test/test-simple-bash")
15233 (unpack "bash-tap-src" "test/bash-tap")))))
15234 (add-after 'unpack-submodule-sources 'fix-makefiles
15235 (lambda _
15236 ;; We don't have the .git folder to get the version tag from.
15237 (substitute* "vcflib/Makefile"
15238 (("^GIT_VERSION.*")
15239 (string-append "GIT_VERSION = v" ,version)))
15240 (substitute* "src/Makefile"
15241 (("-I\\$\\(BAMTOOLS_ROOT\\)/src")
15242 "-I$(BAMTOOLS_ROOT)/include/bamtools"))
15243 #t))
15244 (add-before 'build 'build-tabixpp-and-vcflib
15245 (lambda* (#:key inputs make-flags #:allow-other-keys)
15246 (with-directory-excursion "vcflib"
15247 (with-directory-excursion "tabixpp"
15248 (apply invoke "make"
15249 (string-append "HTS_LIB="
15250 (assoc-ref inputs "htslib")
15251 "/lib/libhts.a")
15252 make-flags))
15253 (apply invoke "make"
15254 (string-append "CFLAGS=-Itabixpp")
15255 "all"
15256 make-flags))))
15257 (replace 'install
15258 (lambda* (#:key outputs #:allow-other-keys)
15259 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
15260 (install-file "bin/freebayes" bin)
15261 (install-file "bin/bamleftalign" bin))
15262 #t)))))
15263 (home-page "https://github.com/ekg/freebayes")
15264 (synopsis "Haplotype-based variant detector")
15265 (description "FreeBayes is a Bayesian genetic variant detector designed to
15266 find small polymorphisms, specifically SNPs (single-nucleotide polymorphisms),
15267 indels (insertions and deletions), MNPs (multi-nucleotide polymorphisms), and
15268 complex events (composite insertion and substitution events) smaller than the
15269 length of a short-read sequencing alignment.")
15270 (license license:expat))))
15271
15272 (define-public samblaster
15273 (package
15274 (name "samblaster")
15275 (version "0.1.24")
15276 (source (origin
15277 (method git-fetch)
15278 (uri (git-reference
15279 (url "https://github.com/GregoryFaust/samblaster.git")
15280 (commit (string-append "v." version))))
15281 (file-name (git-file-name name version))
15282 (sha256
15283 (base32
15284 "0iv2ddfw8363vb2x8gr3p8g88whb6mb9m0pf71i2cqsbv6jghap7"))))
15285 (build-system gnu-build-system)
15286 (arguments
15287 `(#:tests? #f ; there are none
15288 #:phases
15289 (modify-phases %standard-phases
15290 (delete 'configure) ; There is no configure phase.
15291 (replace 'install
15292 (lambda* (#:key outputs #:allow-other-keys)
15293 (install-file "samblaster"
15294 (string-append (assoc-ref outputs "out") "/bin"))
15295 #t)))))
15296 (home-page "https://github.com/GregoryFaust/samblaster")
15297 (synopsis "Mark duplicates in paired-end SAM files")
15298 (description "Samblaster is a fast and flexible program for marking
15299 duplicates in read-id grouped paired-end SAM files. It can also optionally
15300 output discordant read pairs and/or split read mappings to separate SAM files,
15301 and/or unmapped/clipped reads to a separate FASTQ file. When marking
15302 duplicates, samblaster will require approximately 20MB of memory per 1M read
15303 pairs.")
15304 (license license:expat)))
15305
15306 (define-public r-velocyto
15307 (let ((commit "d7790346cb99f49ab9c2b23ba70dcf9d2c9fc350")
15308 (revision "1"))
15309 (package
15310 (name "r-velocyto")
15311 (version (git-version "0.6" revision commit))
15312 (source
15313 (origin
15314 (method git-fetch)
15315 (uri (git-reference
15316 (url "https://github.com/velocyto-team/velocyto.R.git")
15317 (commit commit)))
15318 (file-name (git-file-name name version))
15319 (sha256
15320 (base32
15321 "16wqf70j7rd7pay2q513iyz12i8n9vrpg1bisah4lddbcpx5dz1n"))))
15322 (build-system r-build-system)
15323 (inputs
15324 `(("boost" ,boost)))
15325 (propagated-inputs
15326 `(("r-hdf5r" ,r-hdf5r)
15327 ("r-mass" ,r-mass)
15328 ("r-mgcv" ,r-mgcv)
15329 ("r-pcamethods" ,r-pcamethods)
15330 ("r-rcpp" ,r-rcpp)
15331 ("r-rcpparmadillo" ,r-rcpparmadillo)
15332 ;; Suggested packages
15333 ("r-rtsne" ,r-rtsne)
15334 ("r-cluster" ,r-cluster)
15335 ("r-abind" ,r-abind)
15336 ("r-h5" ,r-h5)
15337 ("r-biocgenerics" ,r-biocgenerics)
15338 ("r-genomicalignments" ,r-genomicalignments)
15339 ("r-rsamtools" ,r-rsamtools)
15340 ("r-edger" ,r-edger)
15341 ("r-igraph" ,r-igraph)))
15342 (home-page "http://velocyto.org")
15343 (synopsis "RNA velocity estimation in R")
15344 (description
15345 "This package provides basic routines for estimation of gene-specific
15346 transcriptional derivatives and visualization of the resulting velocity
15347 patterns.")
15348 (license license:gpl3))))
15349
15350 (define-public methyldackel
15351 (package
15352 (name "methyldackel")
15353 (version "0.4.0")
15354 (source (origin
15355 (method git-fetch)
15356 (uri (git-reference
15357 (url "https://github.com/dpryan79/MethylDackel.git")
15358 (commit version)))
15359 (file-name (git-file-name name version))
15360 (sha256
15361 (base32
15362 "10gh8k0ca92kywnrw5pkacq3g6r8s976s12k8jhp8g3g49q9a97g"))))
15363 (build-system gnu-build-system)
15364 (arguments
15365 `(#:test-target "test"
15366 #:make-flags
15367 (list "CC=gcc"
15368 (string-append "prefix="
15369 (assoc-ref %outputs "out") "/bin/"))
15370 #:phases
15371 (modify-phases %standard-phases
15372 (replace 'configure
15373 (lambda* (#:key outputs #:allow-other-keys)
15374 (substitute* "Makefile"
15375 (("install MethylDackel \\$\\(prefix\\)" match)
15376 (string-append "install -d $(prefix); " match)))
15377 #t)))))
15378 (inputs
15379 `(("htslib" ,htslib)
15380 ("zlib" ,zlib)))
15381 ;; Needed for tests
15382 (native-inputs
15383 `(("python" ,python-wrapper)))
15384 (home-page "https://github.com/dpryan79/MethylDackel")
15385 (synopsis "Universal methylation extractor for BS-seq experiments")
15386 (description
15387 "MethylDackel will process a coordinate-sorted and indexed BAM or CRAM
15388 file containing some form of BS-seq alignments and extract per-base
15389 methylation metrics from them. MethylDackel requires an indexed fasta file
15390 containing the reference genome as well.")
15391 ;; See https://github.com/dpryan79/MethylDackel/issues/85
15392 (license license:expat)))
15393
15394 (define-public python-gffutils
15395 ;; The latest release is older more than a year than the latest commit
15396 (let ((commit "4034c54600813b1402945e12faa91b3a53162cf1")
15397 (revision "1"))
15398 (package
15399 (name "python-gffutils")
15400 (version (git-version "0.9" revision commit))
15401 (source
15402 (origin
15403 (method git-fetch)
15404 (uri (git-reference
15405 (url "https://github.com/daler/gffutils.git")
15406 (commit commit)))
15407 (file-name (git-file-name name version))
15408 (sha256
15409 (base32
15410 "1rwafjdnbir5wnk0ap06ww4lra3p5frhy7mfs03rlldgfnwxymsn"))))
15411 (build-system python-build-system)
15412 (arguments
15413 `(#:phases
15414 (modify-phases %standard-phases
15415 (replace 'check
15416 (lambda _
15417 ;; Tests need to access the HOME directory
15418 (setenv "HOME" "/tmp")
15419 (invoke "nosetests" "-a" "!slow")))
15420 (add-after 'unpack 'make-gz-files-writable
15421 (lambda _
15422 (for-each make-file-writable
15423 (find-files "." "\\.gz"))
15424 #t)))))
15425 (propagated-inputs
15426 `(("python-argcomplete" ,python-argcomplete)
15427 ("python-argh" ,python-argh)
15428 ("python-biopython" ,python-biopython)
15429 ("python-pybedtools" ,python-pybedtools)
15430 ("python-pyfaidx" ,python-pyfaidx)
15431 ("python-simplejson" ,python-simplejson)
15432 ("python-six" ,python-six)))
15433 (native-inputs
15434 `(("python-nose" , python-nose)))
15435 (home-page "https://github.com/daler/gffutils")
15436 (synopsis "Tool for manipulation of GFF and GTF files")
15437 (description
15438 "python-gffutils is a Python package for working with and manipulating
15439 the GFF and GTF format files typically used for genomic annotations. The
15440 files are loaded into a SQLite database, allowing much more complex
15441 manipulation of hierarchical features (e.g., genes, transcripts, and exons)
15442 than is possible with plain-text methods alone.")
15443 (license license:expat))))
15444
15445 (define-public libsbml
15446 (package
15447 (name "libsbml")
15448 (version "5.18.0")
15449 (source (origin
15450 (method url-fetch)
15451 (uri (string-append "mirror://sourceforge/sbml/libsbml/"
15452 version "/stable/libSBML-"
15453 version "-core-src.tar.gz"))
15454 (sha256
15455 (base32
15456 "0slkagrk3nfi2qsksv6b1brj6zhx4bj4bkib2sdycvrcd10ql2lh"))))
15457 (build-system cmake-build-system)
15458 (arguments
15459 `(#:test-target "test"
15460 #:configure-flags
15461 (list "-DWITH_CHECK=ON"
15462 (string-append "-DLIBXML_LIBRARY="
15463 (assoc-ref %build-inputs "libxml2")
15464 "/lib/libxml2.so")
15465 (string-append "-DLIBXML_INCLUDE_DIR="
15466 (assoc-ref %build-inputs "libxml2")
15467 "/include/libxml2"))))
15468 (propagated-inputs
15469 `(("libxml2" ,libxml2)))
15470 (native-inputs
15471 `(("check" ,check)
15472 ("swig" ,swig)))
15473 (home-page "http://sbml.org/Software/libSBML")
15474 (synopsis "Process SBML files and data streams")
15475 (description "LibSBML is a library to help you read, write, manipulate,
15476 translate, and validate SBML files and data streams. The @dfn{Systems Biology
15477 Markup Language} (SBML) is an interchange format for computer models of
15478 biological processes. SBML is useful for models of metabolism, cell
15479 signaling, and more. It continues to be evolved and expanded by an
15480 international community.")
15481 (license license:lgpl2.1+)))