gnu: r-gqtlstats: Update to 1.18.0.
[jackhill/guix/guix.git] / gnu / packages / bioinformatics.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
3 ;;; Copyright © 2015, 2016, 2017, 2018 Ben Woodcroft <donttrustben@gmail.com>
4 ;;; Copyright © 2015, 2016 Pjotr Prins <pjotr.guix@thebird.nl>
5 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
6 ;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
7 ;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
8 ;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
9 ;;; Copyright © 2016, 2018 Raoul Bonnal <ilpuccio.febo@gmail.com>
10 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
11 ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
12 ;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
13 ;;; Copyright © 2018 Gábor Boskovits <boskovits@gmail.com>
14 ;;; Copyright © 2018 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
15 ;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
16 ;;; Copyright © 2019 Brian Leung <bkleung89@gmail.com>
17 ;;;
18 ;;; This file is part of GNU Guix.
19 ;;;
20 ;;; GNU Guix is free software; you can redistribute it and/or modify it
21 ;;; under the terms of the GNU General Public License as published by
22 ;;; the Free Software Foundation; either version 3 of the License, or (at
23 ;;; your option) any later version.
24 ;;;
25 ;;; GNU Guix is distributed in the hope that it will be useful, but
26 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
27 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 ;;; GNU General Public License for more details.
29 ;;;
30 ;;; You should have received a copy of the GNU General Public License
31 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
32
33 (define-module (gnu packages bioinformatics)
34 #:use-module ((guix licenses) #:prefix license:)
35 #:use-module (guix packages)
36 #:use-module (guix utils)
37 #:use-module (guix download)
38 #:use-module (guix git-download)
39 #:use-module (guix hg-download)
40 #:use-module (guix build-system ant)
41 #:use-module (guix build-system gnu)
42 #:use-module (guix build-system cmake)
43 #:use-module (guix build-system haskell)
44 #:use-module (guix build-system meson)
45 #:use-module (guix build-system ocaml)
46 #:use-module (guix build-system perl)
47 #:use-module (guix build-system python)
48 #:use-module (guix build-system r)
49 #:use-module (guix build-system ruby)
50 #:use-module (guix build-system scons)
51 #:use-module (guix build-system trivial)
52 #:use-module (gnu packages)
53 #:use-module (gnu packages autotools)
54 #:use-module (gnu packages algebra)
55 #:use-module (gnu packages base)
56 #:use-module (gnu packages bash)
57 #:use-module (gnu packages bison)
58 #:use-module (gnu packages bioconductor)
59 #:use-module (gnu packages boost)
60 #:use-module (gnu packages check)
61 #:use-module (gnu packages code)
62 #:use-module (gnu packages compression)
63 #:use-module (gnu packages cpio)
64 #:use-module (gnu packages cran)
65 #:use-module (gnu packages curl)
66 #:use-module (gnu packages documentation)
67 #:use-module (gnu packages databases)
68 #:use-module (gnu packages datastructures)
69 #:use-module (gnu packages file)
70 #:use-module (gnu packages flex)
71 #:use-module (gnu packages gawk)
72 #:use-module (gnu packages gcc)
73 #:use-module (gnu packages gd)
74 #:use-module (gnu packages gtk)
75 #:use-module (gnu packages glib)
76 #:use-module (gnu packages graph)
77 #:use-module (gnu packages groff)
78 #:use-module (gnu packages guile)
79 #:use-module (gnu packages guile-xyz)
80 #:use-module (gnu packages haskell-check)
81 #:use-module (gnu packages haskell-web)
82 #:use-module (gnu packages haskell-xyz)
83 #:use-module (gnu packages image)
84 #:use-module (gnu packages imagemagick)
85 #:use-module (gnu packages java)
86 #:use-module (gnu packages java-compression)
87 #:use-module (gnu packages javascript)
88 #:use-module (gnu packages jemalloc)
89 #:use-module (gnu packages dlang)
90 #:use-module (gnu packages linux)
91 #:use-module (gnu packages logging)
92 #:use-module (gnu packages machine-learning)
93 #:use-module (gnu packages man)
94 #:use-module (gnu packages maths)
95 #:use-module (gnu packages mpi)
96 #:use-module (gnu packages ncurses)
97 #:use-module (gnu packages ocaml)
98 #:use-module (gnu packages pcre)
99 #:use-module (gnu packages parallel)
100 #:use-module (gnu packages pdf)
101 #:use-module (gnu packages perl)
102 #:use-module (gnu packages perl-check)
103 #:use-module (gnu packages pkg-config)
104 #:use-module (gnu packages popt)
105 #:use-module (gnu packages protobuf)
106 #:use-module (gnu packages python)
107 #:use-module (gnu packages python-compression)
108 #:use-module (gnu packages python-science)
109 #:use-module (gnu packages python-web)
110 #:use-module (gnu packages python-xyz)
111 #:use-module (gnu packages readline)
112 #:use-module (gnu packages ruby)
113 #:use-module (gnu packages serialization)
114 #:use-module (gnu packages shells)
115 #:use-module (gnu packages sphinx)
116 #:use-module (gnu packages statistics)
117 #:use-module (gnu packages swig)
118 #:use-module (gnu packages tbb)
119 #:use-module (gnu packages tex)
120 #:use-module (gnu packages texinfo)
121 #:use-module (gnu packages textutils)
122 #:use-module (gnu packages time)
123 #:use-module (gnu packages tls)
124 #:use-module (gnu packages vim)
125 #:use-module (gnu packages web)
126 #:use-module (gnu packages xml)
127 #:use-module (gnu packages xorg)
128 #:use-module (srfi srfi-1)
129 #:use-module (ice-9 match))
130
131 (define-public aragorn
132 (package
133 (name "aragorn")
134 (version "1.2.38")
135 (source (origin
136 (method url-fetch)
137 (uri (string-append
138 "http://mbio-serv2.mbioekol.lu.se/ARAGORN/Downloads/aragorn"
139 version ".tgz"))
140 (sha256
141 (base32
142 "09i1rg716smlbnixfm7q1ml2mfpaa2fpn3hwjg625ysmfwwy712b"))))
143 (build-system gnu-build-system)
144 (arguments
145 `(#:tests? #f ; there are no tests
146 #:phases
147 (modify-phases %standard-phases
148 (delete 'configure)
149 (replace 'build
150 (lambda _
151 (invoke "gcc"
152 "-O3"
153 "-ffast-math"
154 "-finline-functions"
155 "-o"
156 "aragorn"
157 (string-append "aragorn" ,version ".c"))
158 #t))
159 (replace 'install
160 (lambda* (#:key outputs #:allow-other-keys)
161 (let* ((out (assoc-ref outputs "out"))
162 (bin (string-append out "/bin"))
163 (man (string-append out "/share/man/man1")))
164 (install-file "aragorn" bin)
165 (install-file "aragorn.1" man))
166 #t)))))
167 (home-page "http://mbio-serv2.mbioekol.lu.se/ARAGORN")
168 (synopsis "Detect tRNA, mtRNA and tmRNA genes in nucleotide sequences")
169 (description
170 "Aragorn identifies transfer RNA, mitochondrial RNA and
171 transfer-messenger RNA from nucleotide sequences, based on homology to known
172 tRNA consensus sequences and RNA structure. It also outputs the secondary
173 structure of the predicted RNA.")
174 (license license:gpl2)))
175
176 (define-public bamm
177 (package
178 (name "bamm")
179 (version "1.7.3")
180 (source (origin
181 (method git-fetch)
182 ;; BamM is not available on pypi.
183 (uri (git-reference
184 (url "https://github.com/Ecogenomics/BamM.git")
185 (commit version)
186 (recursive? #t)))
187 (file-name (git-file-name name version))
188 (sha256
189 (base32
190 "1p83ahi984ipslxlg4yqy1gdnya9rkn1v71z8djgxkm9d2chw4c5"))
191 (modules '((guix build utils)))
192 (snippet
193 `(begin
194 ;; Delete bundled htslib.
195 (delete-file-recursively "c/htslib-1.3.1")
196 #t))))
197 (build-system python-build-system)
198 (arguments
199 `(#:python ,python-2 ; BamM is Python 2 only.
200 ;; Do not use bundled libhts. Do use the bundled libcfu because it has
201 ;; been modified from its original form.
202 #:configure-flags
203 (let ((htslib (assoc-ref %build-inputs "htslib")))
204 (list "--with-libhts-lib" (string-append htslib "/lib")
205 "--with-libhts-inc" (string-append htslib "/include/htslib")))
206 #:phases
207 (modify-phases %standard-phases
208 (add-after 'unpack 'autogen
209 (lambda _
210 (with-directory-excursion "c"
211 (let ((sh (which "sh")))
212 (for-each make-file-writable (find-files "." ".*"))
213 ;; Use autogen so that 'configure' works.
214 (substitute* "autogen.sh" (("/bin/sh") sh))
215 (setenv "CONFIG_SHELL" sh)
216 (invoke "./autogen.sh")))
217 #t))
218 (delete 'build)
219 ;; Run tests after installation so compilation only happens once.
220 (delete 'check)
221 (add-after 'install 'wrap-executable
222 (lambda* (#:key outputs #:allow-other-keys)
223 (let* ((out (assoc-ref outputs "out"))
224 (path (getenv "PATH")))
225 (wrap-program (string-append out "/bin/bamm")
226 `("PATH" ":" prefix (,path))))
227 #t))
228 (add-after 'wrap-executable 'post-install-check
229 (lambda* (#:key inputs outputs #:allow-other-keys)
230 (setenv "PATH"
231 (string-append (assoc-ref outputs "out")
232 "/bin:"
233 (getenv "PATH")))
234 (setenv "PYTHONPATH"
235 (string-append
236 (assoc-ref outputs "out")
237 "/lib/python"
238 (string-take (string-take-right
239 (assoc-ref inputs "python") 5) 3)
240 "/site-packages:"
241 (getenv "PYTHONPATH")))
242 ;; There are 2 errors printed, but they are safe to ignore:
243 ;; 1) [E::hts_open_format] fail to open file ...
244 ;; 2) samtools view: failed to open ...
245 (invoke "nosetests")
246 #t)))))
247 (native-inputs
248 `(("autoconf" ,autoconf)
249 ("automake" ,automake)
250 ("libtool" ,libtool)
251 ("zlib" ,zlib)
252 ("python-nose" ,python2-nose)
253 ("python-pysam" ,python2-pysam)))
254 (inputs
255 `(("htslib" ,htslib-1.3) ; At least one test fails on htslib-1.4+.
256 ("samtools" ,samtools)
257 ("bwa" ,bwa)
258 ("grep" ,grep)
259 ("sed" ,sed)
260 ("coreutils" ,coreutils)))
261 (propagated-inputs
262 `(("python-numpy" ,python2-numpy)))
263 (home-page "http://ecogenomics.github.io/BamM/")
264 (synopsis "Metagenomics-focused BAM file manipulator")
265 (description
266 "BamM is a C library, wrapped in python, to efficiently generate and
267 parse BAM files, specifically for the analysis of metagenomic data. For
268 instance, it implements several methods to assess contig-wise read coverage.")
269 (license license:lgpl3+)))
270
271 (define-public bamtools
272 (package
273 (name "bamtools")
274 (version "2.5.1")
275 (source (origin
276 (method git-fetch)
277 (uri (git-reference
278 (url "https://github.com/pezmaster31/bamtools.git")
279 (commit (string-append "v" version))))
280 (file-name (git-file-name name version))
281 (sha256
282 (base32
283 "0nfb2ypcx9959xnbz6wxh6py3xfizgmg8nrknxl95c507m9hmq8b"))))
284 (build-system cmake-build-system)
285 (arguments
286 `(#:tests? #f ;no "check" target
287 #:phases
288 (modify-phases %standard-phases
289 (add-before
290 'configure 'set-ldflags
291 (lambda* (#:key outputs #:allow-other-keys)
292 (setenv "LDFLAGS"
293 (string-append
294 "-Wl,-rpath="
295 (assoc-ref outputs "out") "/lib/bamtools"))
296 #t)))))
297 (inputs `(("zlib" ,zlib)))
298 (home-page "https://github.com/pezmaster31/bamtools")
299 (synopsis "C++ API and command-line toolkit for working with BAM data")
300 (description
301 "BamTools provides both a C++ API and a command-line toolkit for handling
302 BAM files.")
303 (license license:expat)))
304
305 (define-public bcftools
306 (package
307 (name "bcftools")
308 (version "1.9")
309 (source (origin
310 (method url-fetch)
311 (uri (string-append "https://github.com/samtools/bcftools/"
312 "releases/download/"
313 version "/bcftools-" version ".tar.bz2"))
314 (sha256
315 (base32
316 "1j3h638i8kgihzyrlnpj82xg1b23sijibys9hvwari3fy7kd0dkg"))
317 (modules '((guix build utils)))
318 (snippet '(begin
319 ;; Delete bundled htslib.
320 (delete-file-recursively "htslib-1.9")
321 #t))))
322 (build-system gnu-build-system)
323 (arguments
324 `(#:configure-flags
325 (list "--enable-libgsl")
326 #:test-target "test"
327 #:phases
328 (modify-phases %standard-phases
329 (add-before 'check 'patch-tests
330 (lambda _
331 (substitute* "test/test.pl"
332 (("/bin/bash") (which "bash")))
333 #t)))))
334 (native-inputs
335 `(("htslib" ,htslib)
336 ("perl" ,perl)))
337 (inputs
338 `(("gsl" ,gsl)
339 ("zlib" ,zlib)))
340 (home-page "https://samtools.github.io/bcftools/")
341 (synopsis "Utilities for variant calling and manipulating VCFs and BCFs")
342 (description
343 "BCFtools is a set of utilities that manipulate variant calls in the
344 Variant Call Format (VCF) and its binary counterpart BCF. All commands work
345 transparently with both VCFs and BCFs, both uncompressed and BGZF-compressed.")
346 ;; The sources are dual MIT/GPL, but becomes GPL-only when USE_GPL=1.
347 (license (list license:gpl3+ license:expat))))
348
349 (define-public bedops
350 (package
351 (name "bedops")
352 (version "2.4.35")
353 (source (origin
354 (method git-fetch)
355 (uri (git-reference
356 (url "https://github.com/bedops/bedops.git")
357 (commit (string-append "v" version))))
358 (file-name (git-file-name name version))
359 (sha256
360 (base32
361 "0mmgsgwz5r9w76hzgxkxc9s9lkdhhaf7vr6i02b09vbswvs1fyqx"))))
362 (build-system gnu-build-system)
363 (arguments
364 '(#:tests? #f
365 #:make-flags (list (string-append "BINDIR=" %output "/bin"))
366 #:phases
367 (modify-phases %standard-phases
368 (add-after 'unpack 'unpack-tarballs
369 (lambda _
370 ;; FIXME: Bedops includes tarballs of minimally patched upstream
371 ;; libraries jansson, zlib, and bzip2. We cannot just use stock
372 ;; libraries because at least one of the libraries (zlib) is
373 ;; patched to add a C++ function definition (deflateInit2cpp).
374 ;; Until the Bedops developers offer a way to link against system
375 ;; libraries we have to build the in-tree copies of these three
376 ;; libraries.
377
378 ;; See upstream discussion:
379 ;; https://github.com/bedops/bedops/issues/124
380
381 ;; Unpack the tarballs to benefit from shebang patching.
382 (with-directory-excursion "third-party"
383 (invoke "tar" "xvf" "jansson-2.6.tar.bz2")
384 (invoke "tar" "xvf" "zlib-1.2.7.tar.bz2")
385 (invoke "tar" "xvf" "bzip2-1.0.6.tar.bz2"))
386 ;; Disable unpacking of tarballs in Makefile.
387 (substitute* "system.mk/Makefile.linux"
388 (("^\tbzcat .*") "\t@echo \"not unpacking\"\n")
389 (("\\./configure") "CONFIG_SHELL=bash ./configure"))
390 (substitute* "third-party/zlib-1.2.7/Makefile.in"
391 (("^SHELL=.*$") "SHELL=bash\n"))
392 #t))
393 (delete 'configure))))
394 (home-page "https://github.com/bedops/bedops")
395 (synopsis "Tools for high-performance genomic feature operations")
396 (description
397 "BEDOPS is a suite of tools to address common questions raised in genomic
398 studies---mostly with regard to overlap and proximity relationships between
399 data sets. It aims to be scalable and flexible, facilitating the efficient
400 and accurate analysis and management of large-scale genomic data.
401
402 BEDOPS provides tools that perform highly efficient and scalable Boolean and
403 other set operations, statistical calculations, archiving, conversion and
404 other management of genomic data of arbitrary scale. Tasks can be easily
405 split by chromosome for distributing whole-genome analyses across a
406 computational cluster.")
407 (license license:gpl2+)))
408
409 (define-public bedtools
410 (package
411 (name "bedtools")
412 (version "2.27.1")
413 (source (origin
414 (method url-fetch)
415 (uri (string-append "https://github.com/arq5x/bedtools2/releases/"
416 "download/v" version "/"
417 "bedtools-" version ".tar.gz"))
418 (sha256
419 (base32
420 "1ndg5yknrxl4djx8ddzgk12rrbiidfpmkkg5z3f95jzryfxarhn8"))))
421 (build-system gnu-build-system)
422 (arguments
423 '(#:test-target "test"
424 #:make-flags
425 (list (string-append "prefix=" (assoc-ref %outputs "out")))
426 #:phases
427 (modify-phases %standard-phases
428 (delete 'configure))))
429 (native-inputs `(("python" ,python-2)))
430 (inputs
431 `(("samtools" ,samtools)
432 ("zlib" ,zlib)))
433 (home-page "https://github.com/arq5x/bedtools2")
434 (synopsis "Tools for genome analysis and arithmetic")
435 (description
436 "Collectively, the bedtools utilities are a swiss-army knife of tools for
437 a wide-range of genomics analysis tasks. The most widely-used tools enable
438 genome arithmetic: that is, set theory on the genome. For example, bedtools
439 allows one to intersect, merge, count, complement, and shuffle genomic
440 intervals from multiple files in widely-used genomic file formats such as BAM,
441 BED, GFF/GTF, VCF.")
442 (license license:gpl2)))
443
444 ;; Later releases of bedtools produce files with more columns than
445 ;; what Ribotaper expects.
446 (define-public bedtools-2.18
447 (package (inherit bedtools)
448 (name "bedtools")
449 (version "2.18.0")
450 (source (origin
451 (method url-fetch)
452 (uri (string-append "https://github.com/arq5x/bedtools2/"
453 "releases/download/v" version
454 "/bedtools-" version ".tar.gz"))
455 (sha256
456 (base32
457 "11rvca19ncg03kxd0wzlfx5ws7r3nisd0z8s9j9n182d8ksp2pxz"))))
458 (arguments
459 '(#:test-target "test"
460 #:phases
461 (modify-phases %standard-phases
462 (delete 'configure)
463 (replace 'install
464 (lambda* (#:key outputs #:allow-other-keys)
465 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
466 (for-each (lambda (file)
467 (install-file file bin))
468 (find-files "bin" ".*")))
469 #t)))))))
470
471 ;; Needed for pybedtools.
472 (define-public bedtools-2.26
473 (package (inherit bedtools)
474 (name "bedtools")
475 (version "2.26.0")
476 (source (origin
477 (method url-fetch)
478 (uri (string-append "https://github.com/arq5x/bedtools2/releases/"
479 "download/v" version "/"
480 "bedtools-" version ".tar.gz"))
481 (sha256
482 (base32
483 "0jhavwifnf7lmkb11h9y7dynr8d699h0rd2l52j1pfgircr2zwv5"))))))
484
485 (define-public pbbam
486 (package
487 (name "pbbam")
488 (version "0.23.0")
489 (source (origin
490 (method git-fetch)
491 (uri (git-reference
492 (url "https://github.com/PacificBiosciences/pbbam.git")
493 (commit version)))
494 (file-name (git-file-name name version))
495 (sha256
496 (base32
497 "0h9gkrpf2lrxklxp72xfl5bi3h5zcm5hprrya9gf0hr3xwlbpp0x"))))
498 (build-system meson-build-system)
499 (arguments
500 `(#:phases
501 (modify-phases %standard-phases
502 (add-after 'unpack 'find-googletest
503 (lambda* (#:key inputs #:allow-other-keys)
504 ;; It doesn't find gtest_main because there's no pkg-config file
505 ;; for it. Find it another way.
506 (substitute* "tests/meson.build"
507 (("pbbam_gtest_dep = dependency\\('gtest_main'.*")
508 (format #f "cpp = meson.get_compiler('cpp')
509 pbbam_gtest_dep = cpp.find_library('gtest_main', dirs : '~a')\n"
510 (assoc-ref inputs "googletest"))))
511 #t)))
512 ;; TODO: tests/pbbam_test cannot be linked
513 ;; ld: tests/59830eb@@pbbam_test@exe/src_test_Accuracy.cpp.o:
514 ;; undefined reference to symbol '_ZTIN7testing4TestE'
515 ;; ld: /gnu/store/...-googletest-1.8.0/lib/libgtest.so:
516 ;; error adding symbols: DSO missing from command line
517 #:tests? #f
518 #:configure-flags '("-Dtests=false")))
519 ;; These libraries are listed as "Required" in the pkg-config file.
520 (propagated-inputs
521 `(("htslib" ,htslib)
522 ("zlib" ,zlib)))
523 (inputs
524 `(("boost" ,boost)
525 ("samtools" ,samtools)))
526 (native-inputs
527 `(("googletest" ,googletest)
528 ("pkg-config" ,pkg-config)
529 ("python" ,python-wrapper))) ; for tests
530 (home-page "https://github.com/PacificBiosciences/pbbam")
531 (synopsis "Work with PacBio BAM files")
532 (description
533 "The pbbam software package provides components to create, query, and
534 edit PacBio BAM files and associated indices. These components include a core
535 C++ library, bindings for additional languages, and command-line utilities.
536 This library is not intended to be used as a general-purpose BAM utility - all
537 input and output BAMs must adhere to the PacBio BAM format specification.
538 Non-PacBio BAMs will cause exceptions to be thrown.")
539 (license license:bsd-3)))
540
541 (define-public blasr-libcpp
542 (package
543 (name "blasr-libcpp")
544 (version "5.3.3")
545 (source (origin
546 (method git-fetch)
547 (uri (git-reference
548 (url "https://github.com/PacificBiosciences/blasr_libcpp.git")
549 (commit version)))
550 (file-name (git-file-name name version))
551 (sha256
552 (base32
553 "0cn5l42zyq67sj0g2imqkhayz2iqvv0a1pgpbmlq0qynjmsrbfd2"))))
554 (build-system meson-build-system)
555 (arguments
556 `(#:phases
557 (modify-phases %standard-phases
558 (add-after 'unpack 'link-with-hdf5
559 (lambda* (#:key inputs #:allow-other-keys)
560 (let ((hdf5 (assoc-ref inputs "hdf5")))
561 (substitute* "meson.build"
562 (("libblasr_deps = \\[" m)
563 (string-append
564 m
565 (format #f "cpp.find_library('hdf5', dirs : '~a'), \
566 cpp.find_library('hdf5_cpp', dirs : '~a'), "
567 hdf5 hdf5)))))
568 #t))
569 (add-after 'unpack 'find-googletest
570 (lambda* (#:key inputs #:allow-other-keys)
571 ;; It doesn't find gtest_main because there's no pkg-config file
572 ;; for it. Find it another way.
573 (substitute* "unittest/meson.build"
574 (("libblasr_gtest_dep = dependency\\('gtest_main'.*")
575 (format #f "cpp = meson.get_compiler('cpp')
576 libblasr_gtest_dep = cpp.find_library('gtest_main', dirs : '~a')\n"
577 (assoc-ref inputs "googletest"))))
578 #t)))
579 ;; TODO: unittest/libblasr_unittest cannot be linked
580 ;; ld: ;; unittest/df08227@@libblasr_unittest@exe/alignment_utils_FileUtils_gtest.cpp.o:
581 ;; undefined reference to symbol
582 ;; '_ZN7testing8internal9DeathTest6CreateEPKcPKNS0_2REES3_iPPS1_'
583 ;; ld: /gnu/store/...-googletest-1.8.0/lib/libgtest.so:
584 ;; error adding symbols: DSO missing from command line
585 #:tests? #f
586 #:configure-flags '("-Dtests=false")))
587 (inputs
588 `(("boost" ,boost)
589 ("hdf5" ,hdf5)
590 ("pbbam" ,pbbam)
591 ("zlib" ,zlib)))
592 (native-inputs
593 `(("googletest" ,googletest)
594 ("pkg-config" ,pkg-config)))
595 (home-page "https://github.com/PacificBiosciences/blasr_libcpp")
596 (synopsis "Library for analyzing PacBio genomic sequences")
597 (description
598 "This package provides three libraries used by applications for analyzing
599 PacBio genomic sequences. This library contains three sub-libraries: pbdata,
600 hdf and alignment.")
601 (license license:bsd-3)))
602
603 (define-public blasr
604 (package
605 (name "blasr")
606 (version "5.3.3")
607 (source (origin
608 (method git-fetch)
609 (uri (git-reference
610 (url "https://github.com/PacificBiosciences/blasr.git")
611 (commit version)))
612 (file-name (git-file-name name version))
613 (sha256
614 (base32
615 "1skgy2mvz8gsgfh1gc2nfgwvpyzb1hpmp2cf2773h5wsj8nw22kl"))))
616 (build-system meson-build-system)
617 (arguments
618 `(#:phases
619 (modify-phases %standard-phases
620 (add-after 'unpack 'link-with-hdf5
621 (lambda* (#:key inputs #:allow-other-keys)
622 (let ((hdf5 (assoc-ref inputs "hdf5")))
623 (substitute* "meson.build"
624 (("blasr_deps = \\[" m)
625 (string-append
626 m
627 (format #f "cpp.find_library('hdf5', dirs : '~a'), \
628 cpp.find_library('hdf5_cpp', dirs : '~a'), "
629 hdf5 hdf5)))))
630 #t)))
631 ;; Tests require "cram" executable, which is not packaged.
632 #:tests? #f
633 #:configure-flags '("-Dtests=false")))
634 (inputs
635 `(("boost" ,boost)
636 ("blasr-libcpp" ,blasr-libcpp)
637 ("hdf5" ,hdf5)
638 ("pbbam" ,pbbam)
639 ("zlib" ,zlib)))
640 (native-inputs
641 `(("pkg-config" ,pkg-config)))
642 (home-page "https://github.com/PacificBiosciences/blasr")
643 (synopsis "PacBio long read aligner")
644 (description
645 "Blasr is a genomic sequence aligner for processing PacBio long reads.")
646 (license license:bsd-3)))
647
648 (define-public ribotaper
649 (package
650 (name "ribotaper")
651 (version "1.3.1")
652 (source (origin
653 (method url-fetch)
654 (uri (string-append "https://ohlerlab.mdc-berlin.de/"
655 "files/RiboTaper/RiboTaper_Version_"
656 version ".tar.gz"))
657 (sha256
658 (base32
659 "0ykjbps1y3z3085q94npw8i9x5gldc6shy8vlc08v76zljsm07hv"))))
660 (build-system gnu-build-system)
661 (arguments
662 `(#:phases
663 (modify-phases %standard-phases
664 (add-after 'install 'wrap-executables
665 (lambda* (#:key inputs outputs #:allow-other-keys)
666 (let* ((out (assoc-ref outputs "out")))
667 (for-each
668 (lambda (script)
669 (wrap-program (string-append out "/bin/" script)
670 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
671 '("create_annotations_files.bash"
672 "create_metaplots.bash"
673 "Ribotaper_ORF_find.sh"
674 "Ribotaper.sh")))
675 #t)))))
676 (inputs
677 `(("bedtools" ,bedtools-2.18)
678 ("samtools" ,samtools-0.1)
679 ("r-minimal" ,r-minimal)
680 ("r-foreach" ,r-foreach)
681 ("r-xnomial" ,r-xnomial)
682 ("r-domc" ,r-domc)
683 ("r-multitaper" ,r-multitaper)
684 ("r-seqinr" ,r-seqinr)))
685 (home-page "https://ohlerlab.mdc-berlin.de/software/RiboTaper_126/")
686 (synopsis "Define translated ORFs using ribosome profiling data")
687 (description
688 "Ribotaper is a method for defining translated @dfn{open reading
689 frames} (ORFs) using ribosome profiling (ribo-seq) data. This package
690 provides the Ribotaper pipeline.")
691 (license license:gpl3+)))
692
693 (define-public ribodiff
694 (package
695 (name "ribodiff")
696 (version "0.2.2")
697 (source
698 (origin
699 (method git-fetch)
700 (uri (git-reference
701 (url "https://github.com/ratschlab/RiboDiff.git")
702 (commit (string-append "v" version))))
703 (file-name (git-file-name name version))
704 (sha256
705 (base32
706 "0x75nlp7qnmm64jasbi6l21f2cy99r2cjyl6b4hr8zf2bq22drnz"))))
707 (build-system python-build-system)
708 (arguments
709 `(#:python ,python-2
710 #:phases
711 (modify-phases %standard-phases
712 ;; Generate an installable executable script wrapper.
713 (add-after 'unpack 'patch-setup.py
714 (lambda _
715 (substitute* "setup.py"
716 (("^(.*)packages=.*" line prefix)
717 (string-append line "\n"
718 prefix "scripts=['scripts/TE.py'],\n")))
719 #t)))))
720 (inputs
721 `(("python-numpy" ,python2-numpy)
722 ("python-matplotlib" ,python2-matplotlib)
723 ("python-scipy" ,python2-scipy)
724 ("python-statsmodels" ,python2-statsmodels)))
725 (native-inputs
726 `(("python-mock" ,python2-mock)
727 ("python-nose" ,python2-nose)))
728 (home-page "http://public.bmi.inf.ethz.ch/user/zhongy/RiboDiff/")
729 (synopsis "Detect translation efficiency changes from ribosome footprints")
730 (description "RiboDiff is a statistical tool that detects the protein
731 translational efficiency change from Ribo-Seq (ribosome footprinting) and
732 RNA-Seq data. It uses a generalized linear model to detect genes showing
733 difference in translational profile taking mRNA abundance into account. It
734 facilitates us to decipher the translational regulation that behave
735 independently with transcriptional regulation.")
736 (license license:gpl3+)))
737
738 (define-public bioawk
739 (package
740 (name "bioawk")
741 (version "1.0")
742 (source (origin
743 (method git-fetch)
744 (uri (git-reference
745 (url "https://github.com/lh3/bioawk.git")
746 (commit (string-append "v" version))))
747 (file-name (git-file-name name version))
748 (sha256
749 (base32
750 "1pxc3zdnirxbf9a0az698hd8xdik7qkhypm7v6hn922x8y9qmspm"))))
751 (build-system gnu-build-system)
752 (inputs
753 `(("zlib" ,zlib)))
754 (native-inputs
755 `(("bison" ,bison)))
756 (arguments
757 `(#:tests? #f ; There are no tests to run.
758 ;; Bison must generate files, before other targets can build.
759 #:parallel-build? #f
760 #:phases
761 (modify-phases %standard-phases
762 (delete 'configure) ; There is no configure phase.
763 (replace 'install
764 (lambda* (#:key outputs #:allow-other-keys)
765 (let* ((out (assoc-ref outputs "out"))
766 (bin (string-append out "/bin"))
767 (man (string-append out "/share/man/man1")))
768 (mkdir-p man)
769 (copy-file "awk.1" (string-append man "/bioawk.1"))
770 (install-file "bioawk" bin))
771 #t)))))
772 (home-page "https://github.com/lh3/bioawk")
773 (synopsis "AWK with bioinformatics extensions")
774 (description "Bioawk is an extension to Brian Kernighan's awk, adding the
775 support of several common biological data formats, including optionally gzip'ed
776 BED, GFF, SAM, VCF, FASTA/Q and TAB-delimited formats with column names. It
777 also adds a few built-in functions and a command line option to use TAB as the
778 input/output delimiter. When the new functionality is not used, bioawk is
779 intended to behave exactly the same as the original BWK awk.")
780 (license license:x11)))
781
782 (define-public python-pybedtools
783 (package
784 (name "python-pybedtools")
785 (version "0.8.0")
786 (source (origin
787 (method url-fetch)
788 (uri (pypi-uri "pybedtools" version))
789 (sha256
790 (base32
791 "1xl454ijvd4dzfvqgfahad49b49j7qy710fq9xh1rvk42z6x5ssf"))))
792 (build-system python-build-system)
793 (arguments
794 `(#:modules ((ice-9 ftw)
795 (srfi srfi-1)
796 (srfi srfi-26)
797 (guix build utils)
798 (guix build python-build-system))
799 ;; See https://github.com/daler/pybedtools/issues/192
800 #:phases
801 (modify-phases %standard-phases
802 ;; See https://github.com/daler/pybedtools/issues/261
803 (add-after 'unpack 'disable-broken-tests
804 (lambda _
805 ;; This test (pybedtools.test.test_scripts.test_venn_mpl) needs a
806 ;; graphical environment.
807 (substitute* "pybedtools/test/test_scripts.py"
808 (("def test_venn_mpl")
809 "def _do_not_test_venn_mpl"))
810 (substitute* "pybedtools/test/test_helpers.py"
811 ;; Requires internet access.
812 (("def test_chromsizes")
813 "def _do_not_test_chromsizes")
814 ;; Broken as a result of the workaround used in the check phase
815 ;; (see: https://github.com/daler/pybedtools/issues/192).
816 (("def test_getting_example_beds")
817 "def _do_not_test_getting_example_beds"))
818 #t))
819 ;; TODO: Remove phase after it's part of PYTHON-BUILD-SYSTEM.
820 ;; build system.
821 ;; Force the Cythonization of C++ files to guard against compilation
822 ;; problems.
823 (add-after 'unpack 'remove-cython-generated-files
824 (lambda _
825 (let ((cython-sources (map (cut string-drop-right <> 4)
826 (find-files "." "\\.pyx$")))
827 (c/c++-files (find-files "." "\\.(c|cpp|cxx)$")))
828 (define (strip-extension filename)
829 (string-take filename (string-index-right filename #\.)))
830 (define (cythonized? c/c++-file)
831 (member (strip-extension c/c++-file) cython-sources))
832 (for-each delete-file (filter cythonized? c/c++-files))
833 #t)))
834 (add-after 'remove-cython-generated-files 'generate-cython-extensions
835 (lambda _
836 (invoke "python" "setup.py" "cythonize")))
837 (replace 'check
838 (lambda _
839 (let* ((cwd (getcwd))
840 (build-root-directory (string-append cwd "/build/"))
841 (build (string-append
842 build-root-directory
843 (find (cut string-prefix? "lib" <>)
844 (scandir (string-append
845 build-root-directory)))))
846 (scripts (string-append
847 build-root-directory
848 (find (cut string-prefix? "scripts" <>)
849 (scandir build-root-directory)))))
850 (setenv "PYTHONPATH"
851 (string-append build ":" (getenv "PYTHONPATH")))
852 ;; Executable scripts such as 'intron_exon_reads.py' must be
853 ;; available in the PATH.
854 (setenv "PATH"
855 (string-append scripts ":" (getenv "PATH"))))
856 ;; The tests need to be run from elsewhere...
857 (mkdir-p "/tmp/test")
858 (copy-recursively "pybedtools/test" "/tmp/test")
859 (with-directory-excursion "/tmp/test"
860 (invoke "pytest")))))))
861 (propagated-inputs
862 `(("bedtools" ,bedtools)
863 ("samtools" ,samtools)
864 ("python-matplotlib" ,python-matplotlib)
865 ("python-pysam" ,python-pysam)
866 ("python-pyyaml" ,python-pyyaml)))
867 (native-inputs
868 `(("python-numpy" ,python-numpy)
869 ("python-pandas" ,python-pandas)
870 ("python-cython" ,python-cython)
871 ("kentutils" ,kentutils) ; for bedGraphToBigWig
872 ("python-six" ,python-six)
873 ;; For the test suite.
874 ("python-pytest" ,python-pytest)
875 ("python-psutil" ,python-psutil)))
876 (home-page "https://pythonhosted.org/pybedtools/")
877 (synopsis "Python wrapper for BEDtools programs")
878 (description
879 "pybedtools is a Python wrapper for Aaron Quinlan's BEDtools programs,
880 which are widely used for genomic interval manipulation or \"genome algebra\".
881 pybedtools extends BEDTools by offering feature-level manipulations from with
882 Python.")
883 (license license:gpl2+)))
884
885 (define-public python2-pybedtools
886 (package-with-python2 python-pybedtools))
887
888 (define-public python-biom-format
889 (package
890 (name "python-biom-format")
891 (version "2.1.7")
892 (source
893 (origin
894 (method git-fetch)
895 ;; Use GitHub as source because PyPI distribution does not contain
896 ;; test data: https://github.com/biocore/biom-format/issues/693
897 (uri (git-reference
898 (url "https://github.com/biocore/biom-format.git")
899 (commit version)))
900 (file-name (git-file-name name version))
901 (sha256
902 (base32
903 "1rna16lyk5aqhnv0dp77wwaplias93f1vw28ad3jmyw6hwkai05v"))
904 (modules '((guix build utils)))
905 (snippet '(begin
906 ;; Delete generated C files.
907 (for-each delete-file (find-files "." "\\.c"))
908 #t))))
909 (build-system python-build-system)
910 (arguments
911 `(#:phases
912 (modify-phases %standard-phases
913 (add-after 'unpack 'use-cython
914 (lambda _ (setenv "USE_CYTHON" "1") #t))
915 (add-after 'unpack 'disable-broken-tests
916 (lambda _
917 (substitute* "biom/tests/test_cli/test_validate_table.py"
918 (("^(.+)def test_invalid_hdf5" m indent)
919 (string-append indent
920 "@npt.dec.skipif(True, msg='Guix')\n"
921 m)))
922 (substitute* "biom/tests/test_table.py"
923 (("^(.+)def test_from_hdf5_issue_731" m indent)
924 (string-append indent
925 "@npt.dec.skipif(True, msg='Guix')\n"
926 m)))
927 #t))
928 (add-before 'reset-gzip-timestamps 'make-files-writable
929 (lambda* (#:key outputs #:allow-other-keys)
930 (let ((out (assoc-ref outputs "out")))
931 (for-each (lambda (file) (chmod file #o644))
932 (find-files out "\\.gz"))
933 #t))))))
934 (propagated-inputs
935 `(("python-numpy" ,python-numpy)
936 ("python-scipy" ,python-scipy)
937 ("python-flake8" ,python-flake8)
938 ("python-future" ,python-future)
939 ("python-click" ,python-click)
940 ("python-h5py" ,python-h5py)
941 ("python-pandas" ,python-pandas)))
942 (native-inputs
943 `(("python-cython" ,python-cython)
944 ("python-pytest" ,python-pytest)
945 ("python-pytest-cov" ,python-pytest-cov)
946 ("python-nose" ,python-nose)))
947 (home-page "http://www.biom-format.org")
948 (synopsis "Biological Observation Matrix (BIOM) format utilities")
949 (description
950 "The BIOM file format is designed to be a general-use format for
951 representing counts of observations e.g. operational taxonomic units, KEGG
952 orthology groups or lipid types, in one or more biological samples
953 e.g. microbiome samples, genomes, metagenomes.")
954 (license license:bsd-3)
955 (properties `((python2-variant . ,(delay python2-biom-format))))))
956
957 (define-public python2-biom-format
958 (let ((base (package-with-python2 (strip-python2-variant python-biom-format))))
959 (package
960 (inherit base)
961 (arguments
962 (substitute-keyword-arguments (package-arguments base)
963 ((#:phases phases)
964 `(modify-phases ,phases
965 ;; Do not require the unmaintained pyqi library.
966 (add-after 'unpack 'remove-pyqi
967 (lambda _
968 (substitute* "setup.py"
969 (("install_requires.append\\(\"pyqi\"\\)") "pass"))
970 #t)))))))))
971
972 (define-public bioperl-minimal
973 (let* ((inputs `(("perl-module-build" ,perl-module-build)
974 ("perl-data-stag" ,perl-data-stag)
975 ("perl-libwww" ,perl-libwww)
976 ("perl-uri" ,perl-uri)))
977 (transitive-inputs
978 (map (compose package-name cadr)
979 (delete-duplicates
980 (concatenate
981 (map (compose package-transitive-target-inputs cadr) inputs))))))
982 (package
983 (name "bioperl-minimal")
984 (version "1.7.0")
985 (source
986 (origin
987 (method git-fetch)
988 (uri (git-reference
989 (url "https://github.com/bioperl/bioperl-live")
990 (commit (string-append "release-"
991 (string-map (lambda (c)
992 (if (char=? c #\.)
993 #\- c)) version)))))
994 (file-name (git-file-name name version))
995 (sha256
996 (base32
997 "0wl8yvzcls59pwwk6m8ahy87pwg6nnibzy5cldbvmcwg2x2w7783"))))
998 (build-system perl-build-system)
999 (arguments
1000 `(#:phases
1001 (modify-phases %standard-phases
1002 (add-after
1003 'install 'wrap-programs
1004 (lambda* (#:key outputs #:allow-other-keys)
1005 ;; Make sure all executables in "bin" find the required Perl
1006 ;; modules at runtime. As the PERL5LIB variable contains also
1007 ;; the paths of native inputs, we pick the transitive target
1008 ;; inputs from %build-inputs.
1009 (let* ((out (assoc-ref outputs "out"))
1010 (bin (string-append out "/bin/"))
1011 (path (string-join
1012 (cons (string-append out "/lib/perl5/site_perl")
1013 (map (lambda (name)
1014 (assoc-ref %build-inputs name))
1015 ',transitive-inputs))
1016 ":")))
1017 (for-each (lambda (file)
1018 (wrap-program file
1019 `("PERL5LIB" ":" prefix (,path))))
1020 (find-files bin "\\.pl$"))
1021 #t))))))
1022 (inputs inputs)
1023 (native-inputs
1024 `(("perl-test-most" ,perl-test-most)))
1025 (home-page "https://metacpan.org/release/BioPerl")
1026 (synopsis "Bioinformatics toolkit")
1027 (description
1028 "BioPerl is the product of a community effort to produce Perl code which
1029 is useful in biology. Examples include Sequence objects, Alignment objects
1030 and database searching objects. These objects not only do what they are
1031 advertised to do in the documentation, but they also interact - Alignment
1032 objects are made from the Sequence objects, Sequence objects have access to
1033 Annotation and SeqFeature objects and databases, Blast objects can be
1034 converted to Alignment objects, and so on. This means that the objects
1035 provide a coordinated and extensible framework to do computational biology.")
1036 (license license:perl-license))))
1037
1038 (define-public python-biopython
1039 (package
1040 (name "python-biopython")
1041 (version "1.70")
1042 (source (origin
1043 (method url-fetch)
1044 ;; use PyPi rather than biopython.org to ease updating
1045 (uri (pypi-uri "biopython" version))
1046 (sha256
1047 (base32
1048 "0nz4n9d2y2dg849gn1z0vjlkwcpzzkzy3fij7x94a6ixy2c54z2a"))))
1049 (build-system python-build-system)
1050 (arguments
1051 `(#:phases
1052 (modify-phases %standard-phases
1053 (add-before 'check 'set-home
1054 ;; Some tests require a home directory to be set.
1055 (lambda _ (setenv "HOME" "/tmp") #t)))))
1056 (propagated-inputs
1057 `(("python-numpy" ,python-numpy)))
1058 (home-page "http://biopython.org/")
1059 (synopsis "Tools for biological computation in Python")
1060 (description
1061 "Biopython is a set of tools for biological computation including parsers
1062 for bioinformatics files into Python data structures; interfaces to common
1063 bioinformatics programs; a standard sequence class and tools for performing
1064 common operations on them; code to perform data classification; code for
1065 dealing with alignments; code making it easy to split up parallelizable tasks
1066 into separate processes; and more.")
1067 (license (license:non-copyleft "http://www.biopython.org/DIST/LICENSE"))))
1068
1069 (define-public python2-biopython
1070 (package-with-python2 python-biopython))
1071
1072 (define-public python-fastalite
1073 (package
1074 (name "python-fastalite")
1075 (version "0.3")
1076 (source
1077 (origin
1078 (method url-fetch)
1079 (uri (pypi-uri "fastalite" version))
1080 (sha256
1081 (base32
1082 "1qli6pxp77i9xn2wfciq2zaxhl82bdxb33cpzqzj1z25yd036wqj"))))
1083 (build-system python-build-system)
1084 (arguments
1085 `(#:tests? #f)) ; Test data is not distributed.
1086 (home-page "https://github.com/nhoffman/fastalite")
1087 (synopsis "Simplest possible FASTA parser")
1088 (description "This library implements a FASTA and a FASTQ parser without
1089 relying on a complex dependency tree.")
1090 (license license:expat)))
1091
1092 (define-public python2-fastalite
1093 (package-with-python2 python-fastalite))
1094
1095 (define-public bpp-core
1096 ;; The last release was in 2014 and the recommended way to install from source
1097 ;; is to clone the git repository, so we do this.
1098 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1099 (let ((commit "7d8bced0d1a87291ea8dd7046b7fb5ff9c35c582"))
1100 (package
1101 (name "bpp-core")
1102 (version (string-append "2.2.0-1." (string-take commit 7)))
1103 (source (origin
1104 (method git-fetch)
1105 (uri (git-reference
1106 (url "http://biopp.univ-montp2.fr/git/bpp-core")
1107 (commit commit)))
1108 (file-name (string-append name "-" version "-checkout"))
1109 (sha256
1110 (base32
1111 "10djsq5vlnkilv436gnmh4irpk49v29pa69r6xiryg32xmvn909j"))))
1112 (build-system cmake-build-system)
1113 (arguments
1114 `(#:parallel-build? #f))
1115 (home-page "http://biopp.univ-montp2.fr")
1116 (synopsis "C++ libraries for Bioinformatics")
1117 (description
1118 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1119 analysis, phylogenetics, molecular evolution and population genetics. It is
1120 Object Oriented and is designed to be both easy to use and computer efficient.
1121 Bio++ intends to help programmers to write computer expensive programs, by
1122 providing them a set of re-usable tools.")
1123 (license license:cecill-c))))
1124
1125 (define-public bpp-phyl
1126 ;; The last release was in 2014 and the recommended way to install from source
1127 ;; is to clone the git repository, so we do this.
1128 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1129 (let ((commit "0c07167b629f68b569bf274d1ad0c4af83276ae2"))
1130 (package
1131 (name "bpp-phyl")
1132 (version (string-append "2.2.0-1." (string-take commit 7)))
1133 (source (origin
1134 (method git-fetch)
1135 (uri (git-reference
1136 (url "http://biopp.univ-montp2.fr/git/bpp-phyl")
1137 (commit commit)))
1138 (file-name (string-append name "-" version "-checkout"))
1139 (sha256
1140 (base32
1141 "1ssjgchzwj3iai26kyly7gwkdv8sk59nqhkb1wpap3sf5m6kyllh"))))
1142 (build-system cmake-build-system)
1143 (arguments
1144 `(#:parallel-build? #f
1145 ;; If out-of-source, test data is not copied into the build directory
1146 ;; so the tests fail.
1147 #:out-of-source? #f))
1148 (inputs
1149 `(("bpp-core" ,bpp-core)
1150 ("bpp-seq" ,bpp-seq)))
1151 (home-page "http://biopp.univ-montp2.fr")
1152 (synopsis "Bio++ phylogenetic Library")
1153 (description
1154 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1155 analysis, phylogenetics, molecular evolution and population genetics. This
1156 library provides phylogenetics-related modules.")
1157 (license license:cecill-c))))
1158
1159 (define-public bpp-popgen
1160 ;; The last release was in 2014 and the recommended way to install from source
1161 ;; is to clone the git repository, so we do this.
1162 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1163 (let ((commit "e472bac9b1a148803895d747cd6d0c5904f85d9f"))
1164 (package
1165 (name "bpp-popgen")
1166 (version (string-append "2.2.0-1." (string-take commit 7)))
1167 (source (origin
1168 (method git-fetch)
1169 (uri (git-reference
1170 (url "http://biopp.univ-montp2.fr/git/bpp-popgen")
1171 (commit commit)))
1172 (file-name (string-append name "-" version "-checkout"))
1173 (sha256
1174 (base32
1175 "0yn82dzn1n5629nzja68xfrhi655709rjanyryb36vzkmymy6dw5"))))
1176 (build-system cmake-build-system)
1177 (arguments
1178 `(#:parallel-build? #f
1179 #:tests? #f)) ; There are no tests.
1180 (inputs
1181 `(("bpp-core" ,bpp-core)
1182 ("bpp-seq" ,bpp-seq)))
1183 (home-page "http://biopp.univ-montp2.fr")
1184 (synopsis "Bio++ population genetics library")
1185 (description
1186 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1187 analysis, phylogenetics, molecular evolution and population genetics. This
1188 library provides population genetics-related modules.")
1189 (license license:cecill-c))))
1190
1191 (define-public bpp-seq
1192 ;; The last release was in 2014 and the recommended way to install from source
1193 ;; is to clone the git repository, so we do this.
1194 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1195 (let ((commit "6cfa07965ce152e5598a89df2fa80a75973bfa33"))
1196 (package
1197 (name "bpp-seq")
1198 (version (string-append "2.2.0-1." (string-take commit 7)))
1199 (source (origin
1200 (method git-fetch)
1201 (uri (git-reference
1202 (url "http://biopp.univ-montp2.fr/git/bpp-seq")
1203 (commit commit)))
1204 (file-name (string-append name "-" version "-checkout"))
1205 (sha256
1206 (base32
1207 "1nys5jq7jqvdg40d91wsmj3q2yzy4276cp7sp44n67p468f27zf2"))))
1208 (build-system cmake-build-system)
1209 (arguments
1210 `(#:parallel-build? #f
1211 ;; If out-of-source, test data is not copied into the build directory
1212 ;; so the tests fail.
1213 #:out-of-source? #f))
1214 (inputs
1215 `(("bpp-core" ,bpp-core)))
1216 (home-page "http://biopp.univ-montp2.fr")
1217 (synopsis "Bio++ sequence library")
1218 (description
1219 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1220 analysis, phylogenetics, molecular evolution and population genetics. This
1221 library provides sequence-related modules.")
1222 (license license:cecill-c))))
1223
1224 (define-public bppsuite
1225 ;; The last release was in 2014 and the recommended way to install from source
1226 ;; is to clone the git repository, so we do this.
1227 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1228 (let ((commit "c516147f57aa50961121cd505bed52cd7603698b"))
1229 (package
1230 (name "bppsuite")
1231 (version (string-append "2.2.0-1." (string-take commit 7)))
1232 (source (origin
1233 (method git-fetch)
1234 (uri (git-reference
1235 (url "http://biopp.univ-montp2.fr/git/bppsuite")
1236 (commit commit)))
1237 (file-name (string-append name "-" version "-checkout"))
1238 (sha256
1239 (base32
1240 "1y87pxvw0jxjizhq2dr9g2r91md45k1p9ih2sl1yy1y3p934l2kb"))))
1241 (build-system cmake-build-system)
1242 (arguments
1243 `(#:parallel-build? #f
1244 #:tests? #f)) ; There are no tests.
1245 (native-inputs
1246 `(("groff" ,groff)
1247 ("man-db" ,man-db)
1248 ("texinfo" ,texinfo)))
1249 (inputs
1250 `(("bpp-core" ,bpp-core)
1251 ("bpp-seq" ,bpp-seq)
1252 ("bpp-phyl" ,bpp-phyl)
1253 ("bpp-phyl" ,bpp-popgen)))
1254 (home-page "http://biopp.univ-montp2.fr")
1255 (synopsis "Bioinformatics tools written with the Bio++ libraries")
1256 (description
1257 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1258 analysis, phylogenetics, molecular evolution and population genetics. This
1259 package provides command line tools using the Bio++ library.")
1260 (license license:cecill-c))))
1261
1262 (define-public blast+
1263 (package
1264 (name "blast+")
1265 (version "2.7.1")
1266 (source (origin
1267 (method url-fetch)
1268 (uri (string-append
1269 "ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/"
1270 version "/ncbi-blast-" version "+-src.tar.gz"))
1271 (sha256
1272 (base32
1273 "1jlq0afxxgczpp35k6mxh8mn4jzq7vqcnaixk166sfj10wq8v9qh"))
1274 (modules '((guix build utils)))
1275 (snippet
1276 '(begin
1277 ;; Remove bundled bzip2, zlib and pcre.
1278 (delete-file-recursively "c++/src/util/compress/bzip2")
1279 (delete-file-recursively "c++/src/util/compress/zlib")
1280 (delete-file-recursively "c++/src/util/regexp")
1281 (substitute* "c++/src/util/compress/Makefile.in"
1282 (("bzip2 zlib api") "api"))
1283 ;; Remove useless msbuild directory
1284 (delete-file-recursively
1285 "c++/src/build-system/project_tree_builder/msbuild")
1286 #t))))
1287 (build-system gnu-build-system)
1288 (arguments
1289 `(;; There are two(!) tests for this massive library, and both fail with
1290 ;; "unparsable timing stats".
1291 ;; ERR [127] -- [serial/datatool] datatool.sh (unparsable timing stats)
1292 ;; ERR [127] -- [serial/datatool] datatool_xml.sh (unparsable timing stats)
1293 #:tests? #f
1294 #:out-of-source? #t
1295 #:parallel-build? #f ; not supported
1296 #:phases
1297 (modify-phases %standard-phases
1298 (add-before 'configure 'set-HOME
1299 ;; $HOME needs to be set at some point during the configure phase
1300 (lambda _ (setenv "HOME" "/tmp") #t))
1301 (add-after 'unpack 'enter-dir
1302 (lambda _ (chdir "c++") #t))
1303 (add-after 'enter-dir 'fix-build-system
1304 (lambda _
1305 (define (which* cmd)
1306 (cond ((string=? cmd "date")
1307 ;; make call to "date" deterministic
1308 "date -d @0")
1309 ((which cmd)
1310 => identity)
1311 (else
1312 (format (current-error-port)
1313 "WARNING: Unable to find absolute path for ~s~%"
1314 cmd)
1315 #f)))
1316
1317 ;; Rewrite hardcoded paths to various tools
1318 (substitute* (append '("src/build-system/configure.ac"
1319 "src/build-system/configure"
1320 "src/build-system/helpers/run_with_lock.c"
1321 "scripts/common/impl/if_diff.sh"
1322 "scripts/common/impl/run_with_lock.sh"
1323 "src/build-system/Makefile.configurables.real"
1324 "src/build-system/Makefile.in.top"
1325 "src/build-system/Makefile.meta.gmake=no"
1326 "src/build-system/Makefile.meta.in"
1327 "src/build-system/Makefile.meta_l"
1328 "src/build-system/Makefile.meta_p"
1329 "src/build-system/Makefile.meta_r"
1330 "src/build-system/Makefile.mk.in"
1331 "src/build-system/Makefile.requirements"
1332 "src/build-system/Makefile.rules_with_autodep.in")
1333 (find-files "scripts/common/check" "\\.sh$"))
1334 (("(/usr/bin/|/bin/)([a-z][-_.a-z]*)" all dir cmd)
1335 (or (which* cmd) all)))
1336
1337 (substitute* (find-files "src/build-system" "^config.*")
1338 (("LN_S=/bin/\\$LN_S") (string-append "LN_S=" (which "ln")))
1339 (("^PATH=.*") ""))
1340
1341 ;; rewrite "/var/tmp" in check script
1342 (substitute* "scripts/common/check/check_make_unix.sh"
1343 (("/var/tmp") "/tmp"))
1344
1345 ;; do not reset PATH
1346 (substitute* (find-files "scripts/common/impl/" "\\.sh$")
1347 (("^ *PATH=.*") "")
1348 (("action=/bin/") "action=")
1349 (("export PATH") ":"))
1350 #t))
1351 (replace 'configure
1352 (lambda* (#:key inputs outputs #:allow-other-keys)
1353 (let ((out (assoc-ref outputs "out"))
1354 (lib (string-append (assoc-ref outputs "lib") "/lib"))
1355 (include (string-append (assoc-ref outputs "include")
1356 "/include/ncbi-tools++")))
1357 ;; The 'configure' script doesn't recognize things like
1358 ;; '--enable-fast-install'.
1359 (invoke "./configure.orig"
1360 (string-append "--with-build-root=" (getcwd) "/build")
1361 (string-append "--prefix=" out)
1362 (string-append "--libdir=" lib)
1363 (string-append "--includedir=" include)
1364 (string-append "--with-bz2="
1365 (assoc-ref inputs "bzip2"))
1366 (string-append "--with-z="
1367 (assoc-ref inputs "zlib"))
1368 (string-append "--with-pcre="
1369 (assoc-ref inputs "pcre"))
1370 ;; Each library is built twice by default, once
1371 ;; with "-static" in its name, and again
1372 ;; without.
1373 "--without-static"
1374 "--with-dll")
1375 #t))))))
1376 (outputs '("out" ; 21 MB
1377 "lib" ; 226 MB
1378 "include")) ; 33 MB
1379 (inputs
1380 `(("bzip2" ,bzip2)
1381 ("lmdb" ,lmdb)
1382 ("zlib" ,zlib)
1383 ("pcre" ,pcre)
1384 ("perl" ,perl)
1385 ("python" ,python-wrapper)))
1386 (native-inputs
1387 `(("cpio" ,cpio)))
1388 (home-page "http://blast.ncbi.nlm.nih.gov")
1389 (synopsis "Basic local alignment search tool")
1390 (description
1391 "BLAST is a popular method of performing a DNA or protein sequence
1392 similarity search, using heuristics to produce results quickly. It also
1393 calculates an “expect value” that estimates how many matches would have
1394 occurred at a given score by chance, which can aid a user in judging how much
1395 confidence to have in an alignment.")
1396 ;; Most of the sources are in the public domain, with the following
1397 ;; exceptions:
1398 ;; * Expat:
1399 ;; * ./c++/include/util/bitset/
1400 ;; * ./c++/src/html/ncbi_menu*.js
1401 ;; * Boost license:
1402 ;; * ./c++/include/util/impl/floating_point_comparison.hpp
1403 ;; * LGPL 2+:
1404 ;; * ./c++/include/dbapi/driver/odbc/unix_odbc/
1405 ;; * ASL 2.0:
1406 ;; * ./c++/src/corelib/teamcity_*
1407 (license (list license:public-domain
1408 license:expat
1409 license:boost1.0
1410 license:lgpl2.0+
1411 license:asl2.0))))
1412
1413 (define-public bless
1414 (package
1415 (name "bless")
1416 (version "1p02")
1417 (source (origin
1418 (method url-fetch)
1419 (uri (string-append "mirror://sourceforge/bless-ec/bless.v"
1420 version ".tgz"))
1421 (sha256
1422 (base32
1423 "0rm0gw2s18dqwzzpl3c2x1z05ni2v0xz5dmfk3d33j6g4cgrlrdd"))
1424 (modules '((guix build utils)))
1425 (snippet
1426 `(begin
1427 ;; Remove bundled boost, pigz, zlib, and .git directory
1428 ;; FIXME: also remove bundled sources for murmurhash3 and
1429 ;; kmc once packaged.
1430 (delete-file-recursively "boost")
1431 (delete-file-recursively "pigz")
1432 (delete-file-recursively "google-sparsehash")
1433 (delete-file-recursively "zlib")
1434 (delete-file-recursively ".git")
1435 #t))))
1436 (build-system gnu-build-system)
1437 (arguments
1438 '(#:tests? #f ;no "check" target
1439 #:make-flags
1440 (list (string-append "ZLIB="
1441 (assoc-ref %build-inputs "zlib:static")
1442 "/lib/libz.a")
1443 (string-append "LDFLAGS="
1444 (string-join '("-lboost_filesystem"
1445 "-lboost_system"
1446 "-lboost_iostreams"
1447 "-lz"
1448 "-fopenmp"))))
1449 #:phases
1450 (modify-phases %standard-phases
1451 (add-after 'unpack 'do-not-build-bundled-pigz
1452 (lambda* (#:key inputs outputs #:allow-other-keys)
1453 (substitute* "Makefile"
1454 (("cd pigz/pigz-2.3.3; make") ""))
1455 #t))
1456 (add-after 'unpack 'patch-paths-to-executables
1457 (lambda* (#:key inputs outputs #:allow-other-keys)
1458 (substitute* "parse_args.cpp"
1459 (("kmc_binary = .*")
1460 (string-append "kmc_binary = \""
1461 (assoc-ref outputs "out")
1462 "/bin/kmc\";"))
1463 (("pigz_binary = .*")
1464 (string-append "pigz_binary = \""
1465 (assoc-ref inputs "pigz")
1466 "/bin/pigz\";")))
1467 #t))
1468 (replace 'install
1469 (lambda* (#:key outputs #:allow-other-keys)
1470 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
1471 (for-each (lambda (file)
1472 (install-file file bin))
1473 '("bless" "kmc/bin/kmc"))
1474 #t)))
1475 (delete 'configure))))
1476 (native-inputs
1477 `(("perl" ,perl)))
1478 (inputs
1479 `(("openmpi" ,openmpi)
1480 ("boost" ,boost)
1481 ("sparsehash" ,sparsehash)
1482 ("pigz" ,pigz)
1483 ("zlib:static" ,zlib "static")
1484 ("zlib" ,zlib)))
1485 (supported-systems '("x86_64-linux"))
1486 (home-page "https://sourceforge.net/p/bless-ec/wiki/Home/")
1487 (synopsis "Bloom-filter-based error correction tool for NGS reads")
1488 (description
1489 "@dfn{Bloom-filter-based error correction solution for high-throughput
1490 sequencing reads} (BLESS) uses a single minimum-sized bloom filter is a
1491 correction tool for genomic reads produced by @dfn{Next-generation
1492 sequencing} (NGS). BLESS produces accurate correction results with much less
1493 memory compared with previous solutions and is also able to tolerate a higher
1494 false-positive rate. BLESS can extend reads like DNA assemblers to correct
1495 errors at the end of reads.")
1496 (license license:gpl3+)))
1497
1498 (define-public bowtie
1499 (package
1500 (name "bowtie")
1501 (version "2.3.4.3")
1502 (source (origin
1503 (method git-fetch)
1504 (uri (git-reference
1505 (url "https://github.com/BenLangmead/bowtie2.git")
1506 (commit (string-append "v" version))))
1507 (file-name (git-file-name name version))
1508 (sha256
1509 (base32
1510 "1zl3cf327y2p7p03cavymbh7b00djc7lncfaqih33n96iy9q8ibp"))
1511 (modules '((guix build utils)))
1512 (snippet
1513 '(begin
1514 (substitute* "Makefile"
1515 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1516 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1517 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
1518 #t))))
1519 (build-system gnu-build-system)
1520 (arguments
1521 '(#:make-flags
1522 (list "allall"
1523 "WITH_TBB=1"
1524 (string-append "prefix=" (assoc-ref %outputs "out")))
1525 #:phases
1526 (modify-phases %standard-phases
1527 (delete 'configure)
1528 (replace 'check
1529 (lambda _
1530 (invoke "perl"
1531 "scripts/test/simple_tests.pl"
1532 "--bowtie2=./bowtie2"
1533 "--bowtie2-build=./bowtie2-build")
1534 #t)))))
1535 (inputs
1536 `(("tbb" ,tbb)
1537 ("zlib" ,zlib)
1538 ("python" ,python-wrapper)))
1539 (native-inputs
1540 `(("perl" ,perl)
1541 ("perl-clone" ,perl-clone)
1542 ("perl-test-deep" ,perl-test-deep)
1543 ("perl-test-simple" ,perl-test-simple)))
1544 (home-page "http://bowtie-bio.sourceforge.net/bowtie2/index.shtml")
1545 (synopsis "Fast and sensitive nucleotide sequence read aligner")
1546 (description
1547 "Bowtie 2 is a fast and memory-efficient tool for aligning sequencing
1548 reads to long reference sequences. It is particularly good at aligning reads
1549 of about 50 up to 100s or 1,000s of characters, and particularly good at
1550 aligning to relatively long (e.g. mammalian) genomes. Bowtie 2 indexes the
1551 genome with an FM Index to keep its memory footprint small: for the human
1552 genome, its memory footprint is typically around 3.2 GB. Bowtie 2 supports
1553 gapped, local, and paired-end alignment modes.")
1554 (supported-systems '("x86_64-linux"))
1555 (license license:gpl3+)))
1556
1557 (define-public bowtie1
1558 (package
1559 (name "bowtie1")
1560 (version "1.2.3")
1561 (source (origin
1562 (method url-fetch)
1563 (uri (string-append "mirror://sourceforge/bowtie-bio/bowtie/"
1564 version "/bowtie-src-x86_64.zip"))
1565 (sha256
1566 (base32
1567 "0vmiqdhc9dzyfy9sh6vgi7k9xy2hiw8g87vbamnc6cgpm179zsa4"))
1568 (modules '((guix build utils)))
1569 (snippet
1570 '(substitute* "Makefile"
1571 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1572 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1573 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\"")))))
1574 (build-system gnu-build-system)
1575 (arguments
1576 '(#:tests? #f ; no "check" target
1577 #:make-flags
1578 (list "all"
1579 (string-append "prefix=" (assoc-ref %outputs "out")))
1580 #:phases
1581 (modify-phases %standard-phases
1582 (delete 'configure))))
1583 (inputs
1584 `(("tbb" ,tbb)
1585 ("zlib" ,zlib)))
1586 (supported-systems '("x86_64-linux"))
1587 (home-page "http://bowtie-bio.sourceforge.net/index.shtml")
1588 (synopsis "Fast aligner for short nucleotide sequence reads")
1589 (description
1590 "Bowtie is a fast, memory-efficient short read aligner. It aligns short
1591 DNA sequences (reads) to the human genome at a rate of over 25 million 35-bp
1592 reads per hour. Bowtie indexes the genome with a Burrows-Wheeler index to
1593 keep its memory footprint small: typically about 2.2 GB for the human
1594 genome (2.9 GB for paired-end).")
1595 (license license:artistic2.0)))
1596
1597 (define-public tophat
1598 (package
1599 (name "tophat")
1600 (version "2.1.1")
1601 (source (origin
1602 (method url-fetch)
1603 (uri (string-append
1604 "http://ccb.jhu.edu/software/tophat/downloads/tophat-"
1605 version ".tar.gz"))
1606 (sha256
1607 (base32
1608 "19add02kv2xhd6ihd779dr7x35ggym3jqr0m5c4315i1yfb0p11p"))
1609 (modules '((guix build utils)))
1610 (snippet
1611 '(begin
1612 ;; Remove bundled SeqAn and samtools
1613 (delete-file-recursively "src/SeqAn-1.4.2")
1614 (delete-file-recursively "src/samtools-0.1.18")
1615 #t))))
1616 (build-system gnu-build-system)
1617 (arguments
1618 '(#:parallel-build? #f ; not supported
1619 #:phases
1620 (modify-phases %standard-phases
1621 (add-after 'unpack 'use-system-samtools
1622 (lambda* (#:key inputs #:allow-other-keys)
1623 (substitute* "src/Makefile.in"
1624 (("(noinst_LIBRARIES = )\\$\\(SAMLIB\\)" _ prefix) prefix)
1625 (("\\$\\(SAMPROG\\): \\$\\(SAMLIB\\)") "")
1626 (("SAMPROG = samtools_0\\.1\\.18") "")
1627 (("\\$\\(samtools_0_1_18_SOURCES\\)") "")
1628 (("am__EXEEXT_1 = samtools_0\\.1\\.18\\$\\(EXEEXT\\)") ""))
1629 (substitute* '("src/common.cpp"
1630 "src/tophat.py")
1631 (("samtools_0.1.18") (which "samtools")))
1632 (substitute* '("src/common.h"
1633 "src/bam2fastx.cpp")
1634 (("#include \"bam.h\"") "#include <samtools/bam.h>")
1635 (("#include \"sam.h\"") "#include <samtools/sam.h>"))
1636 (substitute* '("src/bwt_map.h"
1637 "src/map2gtf.h"
1638 "src/align_status.h")
1639 (("#include <bam.h>") "#include <samtools/bam.h>")
1640 (("#include <sam.h>") "#include <samtools/sam.h>"))
1641 #t)))))
1642 (inputs
1643 `(("boost" ,boost)
1644 ("bowtie" ,bowtie)
1645 ("samtools" ,samtools-0.1)
1646 ("ncurses" ,ncurses)
1647 ("python" ,python-2)
1648 ("perl" ,perl)
1649 ("zlib" ,zlib)
1650 ("seqan" ,seqan-1)))
1651 (home-page "http://ccb.jhu.edu/software/tophat/index.shtml")
1652 (synopsis "Spliced read mapper for RNA-Seq data")
1653 (description
1654 "TopHat is a fast splice junction mapper for nucleotide sequence
1655 reads produced by the RNA-Seq method. It aligns RNA-Seq reads to
1656 mammalian-sized genomes using the ultra high-throughput short read
1657 aligner Bowtie, and then analyzes the mapping results to identify
1658 splice junctions between exons.")
1659 ;; TopHat is released under the Boost Software License, Version 1.0
1660 ;; See https://github.com/infphilo/tophat/issues/11#issuecomment-121589893
1661 (license license:boost1.0)))
1662
1663 (define-public bwa
1664 (package
1665 (name "bwa")
1666 (version "0.7.17")
1667 (source (origin
1668 (method url-fetch)
1669 (uri (string-append
1670 "https://github.com/lh3/bwa/releases/download/v"
1671 version "/bwa-" version ".tar.bz2"))
1672 (sha256
1673 (base32
1674 "1zfhv2zg9v1icdlq4p9ssc8k01mca5d1bd87w71py2swfi74s6yy"))))
1675 (build-system gnu-build-system)
1676 (arguments
1677 '(#:tests? #f ;no "check" target
1678 #:phases
1679 (modify-phases %standard-phases
1680 (replace 'install
1681 (lambda* (#:key outputs #:allow-other-keys)
1682 (let ((bin (string-append
1683 (assoc-ref outputs "out") "/bin"))
1684 (doc (string-append
1685 (assoc-ref outputs "out") "/share/doc/bwa"))
1686 (man (string-append
1687 (assoc-ref outputs "out") "/share/man/man1")))
1688 (install-file "bwa" bin)
1689 (install-file "README.md" doc)
1690 (install-file "bwa.1" man))
1691 #t))
1692 ;; no "configure" script
1693 (delete 'configure))))
1694 (inputs `(("zlib" ,zlib)))
1695 ;; Non-portable SSE instructions are used so building fails on platforms
1696 ;; other than x86_64.
1697 (supported-systems '("x86_64-linux"))
1698 (home-page "http://bio-bwa.sourceforge.net/")
1699 (synopsis "Burrows-Wheeler sequence aligner")
1700 (description
1701 "BWA is a software package for mapping low-divergent sequences against a
1702 large reference genome, such as the human genome. It consists of three
1703 algorithms: BWA-backtrack, BWA-SW and BWA-MEM. The first algorithm is
1704 designed for Illumina sequence reads up to 100bp, while the rest two for
1705 longer sequences ranged from 70bp to 1Mbp. BWA-MEM and BWA-SW share similar
1706 features such as long-read support and split alignment, but BWA-MEM, which is
1707 the latest, is generally recommended for high-quality queries as it is faster
1708 and more accurate. BWA-MEM also has better performance than BWA-backtrack for
1709 70-100bp Illumina reads.")
1710 (license license:gpl3+)))
1711
1712 (define-public bwa-pssm
1713 (package (inherit bwa)
1714 (name "bwa-pssm")
1715 (version "0.5.11")
1716 (source (origin
1717 (method git-fetch)
1718 (uri (git-reference
1719 (url "https://github.com/pkerpedjiev/bwa-pssm.git")
1720 (commit version)))
1721 (file-name (git-file-name name version))
1722 (sha256
1723 (base32
1724 "076c4q0cdqz8jgylb067y9zmvxglppnzi3qiscn0xiypgc6lgb5r"))))
1725 (build-system gnu-build-system)
1726 (inputs
1727 `(("gdsl" ,gdsl)
1728 ("zlib" ,zlib)
1729 ("perl" ,perl)))
1730 (home-page "http://bwa-pssm.binf.ku.dk/")
1731 (synopsis "Burrows-Wheeler transform-based probabilistic short read mapper")
1732 (description
1733 "BWA-PSSM is a probabilistic short genomic sequence read aligner based on
1734 the use of @dfn{position specific scoring matrices} (PSSM). Like many of the
1735 existing aligners it is fast and sensitive. Unlike most other aligners,
1736 however, it is also adaptible in the sense that one can direct the alignment
1737 based on known biases within the data set. It is coded as a modification of
1738 the original BWA alignment program and shares the genome index structure as
1739 well as many of the command line options.")
1740 (license license:gpl3+)))
1741
1742 (define-public bwa-meth
1743 (package
1744 (name "bwa-meth")
1745 (version "0.2.2")
1746 (source (origin
1747 (method git-fetch)
1748 (uri (git-reference
1749 (url "https://github.com/brentp/bwa-meth.git")
1750 (commit (string-append "v" version))))
1751 (file-name (git-file-name name version))
1752 (sha256
1753 (base32
1754 "17j31i7zws5j7mhsq9x3qgkxly6mlmrgwhfq0qbflgxrmx04yaiz"))))
1755 (build-system python-build-system)
1756 (arguments
1757 `(#:phases
1758 (modify-phases %standard-phases
1759 (add-after 'unpack 'keep-references-to-bwa
1760 (lambda* (#:key inputs #:allow-other-keys)
1761 (substitute* "bwameth.py"
1762 (("bwa (mem|index)" _ command)
1763 (string-append (which "bwa") " " command))
1764 ;; There's an ill-advised check for "samtools" on PATH.
1765 (("^checkX.*") ""))
1766 #t)))))
1767 (inputs
1768 `(("bwa" ,bwa)))
1769 (native-inputs
1770 `(("python-toolshed" ,python-toolshed)))
1771 (home-page "https://github.com/brentp/bwa-meth")
1772 (synopsis "Fast and accurante alignment of BS-Seq reads")
1773 (description
1774 "BWA-Meth works for single-end reads and for paired-end reads from the
1775 directional protocol (most common). It uses the method employed by
1776 methylcoder and Bismark of in silico conversion of all C's to T's in both
1777 reference and reads. It recovers the original read (needed to tabulate
1778 methylation) by attaching it as a comment which BWA appends as a tag to the
1779 read. It performs favorably to existing aligners gauged by number of on and
1780 off-target reads for a capture method that targets CpG-rich region.")
1781 (license license:expat)))
1782
1783 (define-public python-bx-python
1784 (package
1785 (name "python-bx-python")
1786 (version "0.8.2")
1787 (source (origin
1788 (method url-fetch)
1789 (uri (pypi-uri "bx-python" version))
1790 (sha256
1791 (base32
1792 "11kksg2rbzihpmcid823xvg42xi88m7sz58rzk29abybkxy0rszs"))))
1793 (build-system python-build-system)
1794 ;; Tests fail because test data are not included
1795 (arguments '(#:tests? #f))
1796 (propagated-inputs
1797 `(("python-numpy" ,python-numpy)
1798 ("python-six" ,python-six)))
1799 (inputs
1800 `(("zlib" ,zlib)))
1801 (native-inputs
1802 `(("python-lzo" ,python-lzo)
1803 ("python-nose" ,python-nose)
1804 ("python-cython" ,python-cython)))
1805 (home-page "https://github.com/bxlab/bx-python")
1806 (synopsis "Tools for manipulating biological data")
1807 (description
1808 "bx-python provides tools for manipulating biological data, particularly
1809 multiple sequence alignments.")
1810 (license license:expat)))
1811
1812 (define-public python2-bx-python
1813 (package-with-python2 python-bx-python))
1814
1815 (define-public python-pysam
1816 (package
1817 (name "python-pysam")
1818 (version "0.15.1")
1819 (source (origin
1820 (method git-fetch)
1821 ;; Test data is missing on PyPi.
1822 (uri (git-reference
1823 (url "https://github.com/pysam-developers/pysam.git")
1824 (commit (string-append "v" version))))
1825 (file-name (git-file-name name version))
1826 (sha256
1827 (base32
1828 "1vj367w6xbn9bpmksm162l1aipf7cj97h1q83y7jcpm33ihwpf7x"))
1829 (modules '((guix build utils)))
1830 (snippet '(begin
1831 ;; Drop bundled htslib. TODO: Also remove samtools
1832 ;; and bcftools.
1833 (delete-file-recursively "htslib")
1834 #t))))
1835 (build-system python-build-system)
1836 (arguments
1837 `(#:modules ((ice-9 ftw)
1838 (srfi srfi-26)
1839 (guix build python-build-system)
1840 (guix build utils))
1841 #:phases
1842 (modify-phases %standard-phases
1843 (add-before 'build 'set-flags
1844 (lambda* (#:key inputs #:allow-other-keys)
1845 (setenv "HTSLIB_MODE" "external")
1846 (setenv "HTSLIB_LIBRARY_DIR"
1847 (string-append (assoc-ref inputs "htslib") "/lib"))
1848 (setenv "HTSLIB_INCLUDE_DIR"
1849 (string-append (assoc-ref inputs "htslib") "/include"))
1850 (setenv "LDFLAGS" "-lncurses")
1851 (setenv "CFLAGS" "-D_CURSES_LIB=1")
1852 #t))
1853 (replace 'check
1854 (lambda* (#:key inputs outputs #:allow-other-keys)
1855 ;; This file contains tests that require a connection to the
1856 ;; internet.
1857 (delete-file "tests/tabix_test.py")
1858 ;; FIXME: This test fails
1859 (delete-file "tests/AlignmentFile_test.py")
1860 ;; Add first subdirectory of "build" directory to PYTHONPATH.
1861 (setenv "PYTHONPATH"
1862 (string-append
1863 (getenv "PYTHONPATH")
1864 ":" (getcwd) "/build/"
1865 (car (scandir "build"
1866 (negate (cut string-prefix? "." <>))))))
1867 ;; Step out of source dir so python does not import from CWD.
1868 (with-directory-excursion "tests"
1869 (setenv "HOME" "/tmp")
1870 (invoke "make" "-C" "pysam_data")
1871 (invoke "make" "-C" "cbcf_data")
1872 ;; Running nosetests without explicitly asking for a single
1873 ;; process leads to a crash. Running with multiple processes
1874 ;; fails because the tests are not designed to run in parallel.
1875
1876 ;; FIXME: tests keep timing out on some systems.
1877 (invoke "nosetests" "-v" "--processes" "1")))))))
1878 (propagated-inputs
1879 `(("htslib" ,htslib))) ; Included from installed header files.
1880 (inputs
1881 `(("ncurses" ,ncurses)
1882 ("curl" ,curl)
1883 ("zlib" ,zlib)))
1884 (native-inputs
1885 `(("python-cython" ,python-cython)
1886 ;; Dependencies below are are for tests only.
1887 ("samtools" ,samtools)
1888 ("bcftools" ,bcftools)
1889 ("python-nose" ,python-nose)))
1890 (home-page "https://github.com/pysam-developers/pysam")
1891 (synopsis "Python bindings to the SAMtools C API")
1892 (description
1893 "Pysam is a Python module for reading and manipulating files in the
1894 SAM/BAM format. Pysam is a lightweight wrapper of the SAMtools C API. It
1895 also includes an interface for tabix.")
1896 (license license:expat)))
1897
1898 (define-public python2-pysam
1899 (package-with-python2 python-pysam))
1900
1901 (define-public python-twobitreader
1902 (package
1903 (name "python-twobitreader")
1904 (version "3.1.6")
1905 (source (origin
1906 (method git-fetch)
1907 (uri (git-reference
1908 (url "https://github.com/benjschiller/twobitreader")
1909 (commit version)))
1910 (file-name (git-file-name name version))
1911 (sha256
1912 (base32
1913 "1qbxvv1h58cismbk1anpjrkpghsaiy64a11ir3lhy6qch6xf8n62"))))
1914 (build-system python-build-system)
1915 ;; Tests are not included
1916 (arguments '(#:tests? #f))
1917 (native-inputs
1918 `(("python-sphinx" ,python-sphinx)))
1919 (home-page "https://github.com/benjschiller/twobitreader")
1920 (synopsis "Python library for reading .2bit files")
1921 (description
1922 "twobitreader is a Python library for reading .2bit files as used by the
1923 UCSC genome browser.")
1924 (license license:artistic2.0)))
1925
1926 (define-public python2-twobitreader
1927 (package-with-python2 python-twobitreader))
1928
1929 (define-public python-plastid
1930 (package
1931 (name "python-plastid")
1932 (version "0.4.8")
1933 (source (origin
1934 (method url-fetch)
1935 (uri (pypi-uri "plastid" version))
1936 (sha256
1937 (base32
1938 "0l24dd3q66if8yj042m4s0g95n6acn7im1imqd3p6h8ns43kxhj8"))))
1939 (build-system python-build-system)
1940 (arguments
1941 ;; Some test files are not included.
1942 `(#:tests? #f))
1943 (propagated-inputs
1944 `(("python-numpy" ,python-numpy)
1945 ("python-scipy" ,python-scipy)
1946 ("python-pandas" ,python-pandas)
1947 ("python-pysam" ,python-pysam)
1948 ("python-matplotlib" ,python-matplotlib)
1949 ("python-biopython" ,python-biopython)
1950 ("python-twobitreader" ,python-twobitreader)
1951 ("python-termcolor" ,python-termcolor)))
1952 (native-inputs
1953 `(("python-cython" ,python-cython)
1954 ("python-nose" ,python-nose)))
1955 (home-page "https://github.com/joshuagryphon/plastid")
1956 (synopsis "Python library for genomic analysis")
1957 (description
1958 "plastid is a Python library for genomic analysis – in particular,
1959 high-throughput sequencing data – with an emphasis on simplicity.")
1960 (license license:bsd-3)))
1961
1962 (define-public python2-plastid
1963 (package-with-python2 python-plastid))
1964
1965 (define-public tetoolkit
1966 (package
1967 (name "tetoolkit")
1968 (version "2.0.3")
1969 (source (origin
1970 (method git-fetch)
1971 (uri (git-reference
1972 (url "https://github.com/mhammell-laboratory/tetoolkit.git")
1973 (commit version)))
1974 (file-name (git-file-name name version))
1975 (sha256
1976 (base32
1977 "1yzi0kfpzip8zpjb82x1ik6h22yzfyjiz2dv85v6as2awwqvk807"))))
1978 (build-system python-build-system)
1979 (arguments
1980 `(#:python ,python-2 ; not guaranteed to work with Python 3
1981 #:phases
1982 (modify-phases %standard-phases
1983 (add-after 'unpack 'make-writable
1984 (lambda _
1985 (for-each make-file-writable (find-files "."))
1986 #t))
1987 (add-after 'unpack 'patch-invocations
1988 (lambda* (#:key inputs #:allow-other-keys)
1989 (substitute* '("bin/TEtranscripts"
1990 "bin/TEcount")
1991 (("'sort ")
1992 (string-append "'" (which "sort") " "))
1993 (("'rm -f ")
1994 (string-append "'" (which "rm") " -f "))
1995 (("'Rscript'") (string-append "'" (which "Rscript") "'")))
1996 (substitute* "TEToolkit/IO/ReadInputs.py"
1997 (("BamToBED") (which "bamToBed")))
1998 (substitute* "TEToolkit/Normalization.py"
1999 (("\"Rscript\"")
2000 (string-append "\"" (which "Rscript") "\"")))
2001 #t))
2002 (add-after 'install 'wrap-program
2003 (lambda* (#:key outputs #:allow-other-keys)
2004 ;; Make sure the executables find R packages.
2005 (let ((out (assoc-ref outputs "out")))
2006 (for-each
2007 (lambda (script)
2008 (wrap-program (string-append out "/bin/" script)
2009 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
2010 '("TEtranscripts"
2011 "TEcount")))
2012 #t)))))
2013 (inputs
2014 `(("coreutils" ,coreutils)
2015 ("bedtools" ,bedtools)
2016 ("python-argparse" ,python2-argparse)
2017 ("python-pysam" ,python2-pysam)
2018 ("r-minimal" ,r-minimal)
2019 ("r-deseq2" ,r-deseq2)))
2020 (home-page "https://github.com/mhammell-laboratory/tetoolkit")
2021 (synopsis "Transposable elements in differential enrichment analysis")
2022 (description
2023 "This is package for including transposable elements in differential
2024 enrichment analysis of sequencing datasets. TEtranscripts and TEcount take
2025 RNA-seq (and similar data) and annotates reads to both genes and transposable
2026 elements. TEtranscripts then performs differential analysis using DESeq2.
2027 Note that TEtranscripts and TEcount rely on specially curated GTF files, which
2028 are not included due to their size.")
2029 (license license:gpl3+)))
2030
2031 (define-public cd-hit
2032 (package
2033 (name "cd-hit")
2034 (version "4.6.8")
2035 (source (origin
2036 (method url-fetch)
2037 (uri (string-append "https://github.com/weizhongli/cdhit"
2038 "/releases/download/V" version
2039 "/cd-hit-v" version
2040 "-2017-0621-source.tar.gz"))
2041 (sha256
2042 (base32
2043 "1b4mwm2520ixjbw57sil20f9iixzw4bkdqqwgg1fc3pzm6rz4zmn"))))
2044 (build-system gnu-build-system)
2045 (arguments
2046 `(#:tests? #f ; there are no tests
2047 #:make-flags
2048 ;; Executables are copied directly to the PREFIX.
2049 (list (string-append "PREFIX=" (assoc-ref %outputs "out") "/bin")
2050 ;; Support longer sequences (e.g. Pacbio sequences)
2051 "MAX_SEQ=60000000")
2052 #:phases
2053 (modify-phases %standard-phases
2054 ;; No "configure" script
2055 (delete 'configure)
2056 ;; Remove sources of non-determinism
2057 (add-after 'unpack 'be-timeless
2058 (lambda _
2059 (substitute* "cdhit-utility.c++"
2060 ((" \\(built on \" __DATE__ \"\\)") ""))
2061 (substitute* "cdhit-common.c++"
2062 (("__DATE__") "\"0\"")
2063 (("\", %s, \" __TIME__ \"\\\\n\", date") ""))
2064 #t))
2065 ;; The "install" target does not create the target directory.
2066 (add-before 'install 'create-target-dir
2067 (lambda* (#:key outputs #:allow-other-keys)
2068 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
2069 #t)))))
2070 (inputs
2071 `(("perl" ,perl)))
2072 (home-page "http://weizhongli-lab.org/cd-hit/")
2073 (synopsis "Cluster and compare protein or nucleotide sequences")
2074 (description
2075 "CD-HIT is a program for clustering and comparing protein or nucleotide
2076 sequences. CD-HIT is designed to be fast and handle extremely large
2077 databases.")
2078 ;; The manual says: "It can be copied under the GNU General Public License
2079 ;; version 2 (GPLv2)."
2080 (license license:gpl2)))
2081
2082 (define-public clipper
2083 (package
2084 (name "clipper")
2085 (version "1.2.1")
2086 (source (origin
2087 (method git-fetch)
2088 (uri (git-reference
2089 (url "https://github.com/YeoLab/clipper.git")
2090 (commit version)))
2091 (file-name (git-file-name name version))
2092 (sha256
2093 (base32
2094 "0fja1rj84wp9vpj8rxpj3n8zqzcqq454m904yp9as1w4phccirjb"))
2095 (modules '((guix build utils)))
2096 (snippet
2097 '(begin
2098 ;; remove unnecessary setup dependency
2099 (substitute* "setup.py"
2100 (("setup_requires = .*") ""))
2101 #t))))
2102 (build-system python-build-system)
2103 (arguments
2104 `(#:python ,python-2 ; only Python 2 is supported
2105 #:phases
2106 (modify-phases %standard-phases
2107 ;; This is fixed in upstream commit
2108 ;; f6c2990198f906bf97730d95695b4bd5a6d01ddb.
2109 (add-after 'unpack 'fix-typo
2110 (lambda _
2111 (substitute* "clipper/src/readsToWiggle.pyx"
2112 (("^sc.*") ""))
2113 #t)))))
2114 (inputs
2115 `(("htseq" ,python2-htseq)
2116 ("python-pybedtools" ,python2-pybedtools)
2117 ("python-cython" ,python2-cython)
2118 ("python-scikit-learn" ,python2-scikit-learn)
2119 ("python-matplotlib" ,python2-matplotlib)
2120 ("python-pandas" ,python2-pandas)
2121 ("python-pysam" ,python2-pysam)
2122 ("python-numpy" ,python2-numpy)
2123 ("python-scipy" ,python2-scipy)))
2124 (native-inputs
2125 `(("python-mock" ,python2-mock) ; for tests
2126 ("python-nose" ,python2-nose) ; for tests
2127 ("python-pytz" ,python2-pytz))) ; for tests
2128 (home-page "https://github.com/YeoLab/clipper")
2129 (synopsis "CLIP peak enrichment recognition")
2130 (description
2131 "CLIPper is a tool to define peaks in CLIP-seq datasets.")
2132 (license license:gpl2)))
2133
2134 (define-public codingquarry
2135 (package
2136 (name "codingquarry")
2137 (version "2.0")
2138 (source (origin
2139 (method url-fetch)
2140 (uri (string-append
2141 "mirror://sourceforge/codingquarry/CodingQuarry_v"
2142 version ".tar.gz"))
2143 (sha256
2144 (base32
2145 "0115hkjflsnfzn36xppwf9h9avfxlavr43djqmshkkzbgjzsz60i"))))
2146 (build-system gnu-build-system)
2147 (arguments
2148 '(#:tests? #f ; no "check" target
2149 #:phases
2150 (modify-phases %standard-phases
2151 (delete 'configure)
2152 (replace 'install
2153 (lambda* (#:key outputs #:allow-other-keys)
2154 (let* ((out (assoc-ref outputs "out"))
2155 (bin (string-append out "/bin"))
2156 (doc (string-append out "/share/doc/codingquarry")))
2157 (install-file "INSTRUCTIONS.pdf" doc)
2158 (copy-recursively "QuarryFiles"
2159 (string-append out "/QuarryFiles"))
2160 (install-file "CodingQuarry" bin)
2161 (install-file "CufflinksGTF_to_CodingQuarryGFF3.py" bin))
2162 #t)))))
2163 (inputs `(("openmpi" ,openmpi)))
2164 (native-search-paths
2165 (list (search-path-specification
2166 (variable "QUARRY_PATH")
2167 (files '("QuarryFiles")))))
2168 (native-inputs `(("python" ,python-2))) ; Only Python 2 is supported
2169 (synopsis "Fungal gene predictor")
2170 (description "CodingQuarry is a highly accurate, self-training GHMM fungal
2171 gene predictor designed to work with assembled, aligned RNA-seq transcripts.")
2172 (home-page "https://sourceforge.net/projects/codingquarry/")
2173 (license license:gpl3+)))
2174
2175 (define-public couger
2176 (package
2177 (name "couger")
2178 (version "1.8.2")
2179 (source (origin
2180 (method url-fetch)
2181 (uri (string-append
2182 "http://couger.oit.duke.edu/static/assets/COUGER"
2183 version ".zip"))
2184 (sha256
2185 (base32
2186 "04p2b14nmhzxw5h72mpzdhalv21bx4w9b87z0wpw0xzxpysyncmq"))))
2187 (build-system gnu-build-system)
2188 (arguments
2189 `(#:tests? #f
2190 #:phases
2191 (modify-phases %standard-phases
2192 (delete 'configure)
2193 (delete 'build)
2194 (replace
2195 'install
2196 (lambda* (#:key outputs #:allow-other-keys)
2197 (let* ((out (assoc-ref outputs "out"))
2198 (bin (string-append out "/bin")))
2199 (copy-recursively "src" (string-append out "/src"))
2200 (mkdir bin)
2201 ;; Add "src" directory to module lookup path.
2202 (substitute* "couger"
2203 (("from argparse")
2204 (string-append "import sys\nsys.path.append(\""
2205 out "\")\nfrom argparse")))
2206 (install-file "couger" bin))
2207 #t))
2208 (add-after
2209 'install 'wrap-program
2210 (lambda* (#:key inputs outputs #:allow-other-keys)
2211 ;; Make sure 'couger' runs with the correct PYTHONPATH.
2212 (let* ((out (assoc-ref outputs "out"))
2213 (path (getenv "PYTHONPATH")))
2214 (wrap-program (string-append out "/bin/couger")
2215 `("PYTHONPATH" ":" prefix (,path))))
2216 #t)))))
2217 (inputs
2218 `(("python" ,python-2)
2219 ("python2-pillow" ,python2-pillow)
2220 ("python2-numpy" ,python2-numpy)
2221 ("python2-scipy" ,python2-scipy)
2222 ("python2-matplotlib" ,python2-matplotlib)))
2223 (propagated-inputs
2224 `(("r-minimal" ,r-minimal)
2225 ("libsvm" ,libsvm)
2226 ("randomjungle" ,randomjungle)))
2227 (native-inputs
2228 `(("unzip" ,unzip)))
2229 (home-page "http://couger.oit.duke.edu")
2230 (synopsis "Identify co-factors in sets of genomic regions")
2231 (description
2232 "COUGER can be applied to any two sets of genomic regions bound by
2233 paralogous TFs (e.g., regions derived from ChIP-seq experiments) to identify
2234 putative co-factors that provide specificity to each TF. The framework
2235 determines the genomic targets uniquely-bound by each TF, and identifies a
2236 small set of co-factors that best explain the in vivo binding differences
2237 between the two TFs.
2238
2239 COUGER uses classification algorithms (support vector machines and random
2240 forests) with features that reflect the DNA binding specificities of putative
2241 co-factors. The features are generated either from high-throughput TF-DNA
2242 binding data (from protein binding microarray experiments), or from large
2243 collections of DNA motifs.")
2244 (license license:gpl3+)))
2245
2246 (define-public clustal-omega
2247 (package
2248 (name "clustal-omega")
2249 (version "1.2.4")
2250 (source (origin
2251 (method url-fetch)
2252 (uri (string-append "http://www.clustal.org/omega/clustal-omega-"
2253 version ".tar.gz"))
2254 (sha256
2255 (base32
2256 "1vm30mzncwdv881vrcwg11vzvrsmwy4wg80j5i0lcfk6dlld50w6"))))
2257 (build-system gnu-build-system)
2258 (inputs
2259 `(("argtable" ,argtable)))
2260 (home-page "http://www.clustal.org/omega/")
2261 (synopsis "Multiple sequence aligner for protein and DNA/RNA")
2262 (description
2263 "Clustal-Omega is a general purpose multiple sequence alignment (MSA)
2264 program for protein and DNA/RNA. It produces high quality MSAs and is capable
2265 of handling data-sets of hundreds of thousands of sequences in reasonable
2266 time.")
2267 (license license:gpl2+)))
2268
2269 (define-public crossmap
2270 (package
2271 (name "crossmap")
2272 (version "0.2.9")
2273 (source (origin
2274 (method url-fetch)
2275 (uri (pypi-uri "CrossMap" version))
2276 (sha256
2277 (base32
2278 "1byhclrqnqpvc1rqkfh4jwj6yhn0x9y7jk47i0qcjlhk0pjkw92p"))))
2279 (build-system python-build-system)
2280 (arguments `(#:python ,python-2))
2281 (inputs
2282 `(("python-bx-python" ,python2-bx-python)
2283 ("python-numpy" ,python2-numpy)
2284 ("python-pysam" ,python2-pysam)
2285 ("zlib" ,zlib)))
2286 (native-inputs
2287 `(("python-cython" ,python2-cython)
2288 ("python-nose" ,python2-nose)))
2289 (home-page "http://crossmap.sourceforge.net/")
2290 (synopsis "Convert genome coordinates between assemblies")
2291 (description
2292 "CrossMap is a program for conversion of genome coordinates or annotation
2293 files between different genome assemblies. It supports most commonly used
2294 file formats including SAM/BAM, Wiggle/BigWig, BED, GFF/GTF, VCF.")
2295 (license license:gpl2+)))
2296
2297 (define-public python-dnaio
2298 (package
2299 (name "python-dnaio")
2300 (version "0.3")
2301 (source
2302 (origin
2303 (method url-fetch)
2304 (uri (pypi-uri "dnaio" version))
2305 (sha256
2306 (base32
2307 "0f16m7hdlm0fz1n7y5asy0v9ghyrq17ni1p9iybq22ddzyd49r27"))))
2308 (build-system python-build-system)
2309 (native-inputs
2310 `(("python-cython" ,python-cython)
2311 ("python-pytest" ,python-pytest)
2312 ("python-xopen" ,python-xopen)))
2313 (home-page "https://github.com/marcelm/dnaio/")
2314 (synopsis "Read FASTA and FASTQ files efficiently")
2315 (description
2316 "dnaio is a Python library for fast parsing of FASTQ and also FASTA
2317 files. The code was previously part of the cutadapt tool.")
2318 (license license:expat)))
2319
2320 (define-public cutadapt
2321 (package
2322 (name "cutadapt")
2323 (version "2.1")
2324 (source (origin
2325 (method url-fetch)
2326 (uri (pypi-uri "cutadapt" version))
2327 (sha256
2328 (base32
2329 "1vqmsfkm6llxzmsz9wcfcvzx9a9f8iabvwik2rbyn7nc4wm25z89"))))
2330 (build-system python-build-system)
2331 (inputs
2332 `(("python-dnaio" ,python-dnaio)
2333 ("python-xopen" ,python-xopen)))
2334 (native-inputs
2335 `(("python-cython" ,python-cython)
2336 ("python-pytest" ,python-pytest)
2337 ("python-setuptools-scm" ,python-setuptools-scm)))
2338 (home-page "https://cutadapt.readthedocs.io/en/stable/")
2339 (synopsis "Remove adapter sequences from nucleotide sequencing reads")
2340 (description
2341 "Cutadapt finds and removes adapter sequences, primers, poly-A tails and
2342 other types of unwanted sequence from high-throughput sequencing reads.")
2343 (license license:expat)))
2344
2345 (define-public libbigwig
2346 (package
2347 (name "libbigwig")
2348 (version "0.4.4")
2349 (source (origin
2350 (method git-fetch)
2351 (uri (git-reference
2352 (url "https://github.com/dpryan79/libBigWig.git")
2353 (commit version)))
2354 (file-name (git-file-name name version))
2355 (sha256
2356 (base32
2357 "09693dmf1scdac5pyq6qyn8b4mcipvnmc370k9a5z41z81m3dcsj"))))
2358 (build-system gnu-build-system)
2359 (arguments
2360 `(#:test-target "test"
2361 #:tests? #f ; tests require access to the web
2362 #:make-flags
2363 (list "CC=gcc"
2364 (string-append "prefix=" (assoc-ref %outputs "out")))
2365 #:phases
2366 (modify-phases %standard-phases
2367 (delete 'configure))))
2368 (inputs
2369 `(("zlib" ,zlib)
2370 ("curl" ,curl)))
2371 (native-inputs
2372 `(("doxygen" ,doxygen)
2373 ;; Need for tests
2374 ("python" ,python-2)))
2375 (home-page "https://github.com/dpryan79/libBigWig")
2376 (synopsis "C library for handling bigWig files")
2377 (description
2378 "This package provides a C library for parsing local and remote BigWig
2379 files.")
2380 (license license:expat)))
2381
2382 (define-public python-pybigwig
2383 (package
2384 (name "python-pybigwig")
2385 (version "0.3.12")
2386 (source (origin
2387 (method url-fetch)
2388 (uri (pypi-uri "pyBigWig" version))
2389 (sha256
2390 (base32
2391 "00w4kfnm2c5l7wdwr2nj1z5djv8kzgf7h1zhsgv6njff1rwr26g0"))
2392 (modules '((guix build utils)))
2393 (snippet
2394 '(begin
2395 ;; Delete bundled libBigWig sources
2396 (delete-file-recursively "libBigWig")
2397 #t))))
2398 (build-system python-build-system)
2399 (arguments
2400 `(#:phases
2401 (modify-phases %standard-phases
2402 (add-after 'unpack 'link-with-libBigWig
2403 (lambda* (#:key inputs #:allow-other-keys)
2404 (substitute* "setup.py"
2405 (("libs=\\[") "libs=[\"BigWig\", "))
2406 #t)))))
2407 (propagated-inputs
2408 `(("python-numpy" ,python-numpy)))
2409 (inputs
2410 `(("libbigwig" ,libbigwig)
2411 ("zlib" ,zlib)
2412 ("curl" ,curl)))
2413 (home-page "https://github.com/dpryan79/pyBigWig")
2414 (synopsis "Access bigWig files in Python using libBigWig")
2415 (description
2416 "This package provides Python bindings to the libBigWig library for
2417 accessing bigWig files.")
2418 (license license:expat)))
2419
2420 (define-public python2-pybigwig
2421 (package-with-python2 python-pybigwig))
2422
2423 (define-public python-dendropy
2424 (package
2425 (name "python-dendropy")
2426 (version "4.4.0")
2427 (source
2428 (origin
2429 (method git-fetch)
2430 ;; Source from GitHub so that tests are included.
2431 (uri (git-reference
2432 (url "https://github.com/jeetsukumaran/DendroPy.git")
2433 (commit (string-append "v" version))))
2434 (file-name (git-file-name name version))
2435 (sha256
2436 (base32
2437 "097hfyv2kaf4x92i4rjx0paw2cncxap48qivv8zxng4z7nhid0x9"))))
2438 (build-system python-build-system)
2439 (home-page "http://packages.python.org/DendroPy/")
2440 (synopsis "Library for phylogenetics and phylogenetic computing")
2441 (description
2442 "DendroPy is a library for phylogenetics and phylogenetic computing: reading,
2443 writing, simulation, processing and manipulation of phylogenetic
2444 trees (phylogenies) and characters.")
2445 (license license:bsd-3)))
2446
2447 (define-public python2-dendropy
2448 (let ((base (package-with-python2 python-dendropy)))
2449 (package
2450 (inherit base)
2451 (arguments
2452 `(#:phases
2453 (modify-phases %standard-phases
2454 (add-after 'unpack 'remove-failing-test
2455 (lambda _
2456 ;; This test fails when the full test suite is run, as documented
2457 ;; at https://github.com/jeetsukumaran/DendroPy/issues/74
2458 (substitute* "tests/test_dataio_nexml_reader_tree_list.py"
2459 (("test_collection_comments_and_annotations")
2460 "do_not_test_collection_comments_and_annotations"))
2461 #t)))
2462 ,@(package-arguments base))))))
2463
2464 (define-public python-py2bit
2465 (package
2466 (name "python-py2bit")
2467 (version "0.3.0")
2468 (source
2469 (origin
2470 (method url-fetch)
2471 (uri (pypi-uri "py2bit" version))
2472 (sha256
2473 (base32
2474 "1vw2nvw1yrl7ikkqsqs1pg239yr5nspvd969r1x9arms1k25a1a5"))))
2475 (build-system python-build-system)
2476 (home-page "https://github.com/dpryan79/py2bit")
2477 (synopsis "Access 2bit files using lib2bit")
2478 (description
2479 "This package provides Python bindings for lib2bit to access 2bit files
2480 with Python.")
2481 (license license:expat)))
2482
2483 (define-public deeptools
2484 (package
2485 (name "deeptools")
2486 (version "3.1.3")
2487 (source (origin
2488 (method git-fetch)
2489 (uri (git-reference
2490 (url "https://github.com/deeptools/deepTools.git")
2491 (commit version)))
2492 (file-name (git-file-name name version))
2493 (sha256
2494 (base32
2495 "1vggnf52g6q2vifdl4cyi7s2fnfqq0ky2zrkj5zv2qfzsc3p3siw"))))
2496 (build-system python-build-system)
2497 (arguments
2498 `(#:phases
2499 (modify-phases %standard-phases
2500 ;; This phase fails, but it's not needed.
2501 (delete 'reset-gzip-timestamps))))
2502 (inputs
2503 `(("python-plotly" ,python-plotly)
2504 ("python-scipy" ,python-scipy)
2505 ("python-numpy" ,python-numpy)
2506 ("python-numpydoc" ,python-numpydoc)
2507 ("python-matplotlib" ,python-matplotlib)
2508 ("python-pysam" ,python-pysam)
2509 ("python-py2bit" ,python-py2bit)
2510 ("python-pybigwig" ,python-pybigwig)))
2511 (native-inputs
2512 `(("python-mock" ,python-mock) ;for tests
2513 ("python-nose" ,python-nose) ;for tests
2514 ("python-pytz" ,python-pytz))) ;for tests
2515 (home-page "https://github.com/deeptools/deepTools")
2516 (synopsis "Tools for normalizing and visualizing deep-sequencing data")
2517 (description
2518 "DeepTools addresses the challenge of handling the large amounts of data
2519 that are now routinely generated from DNA sequencing centers. To do so,
2520 deepTools contains useful modules to process the mapped reads data to create
2521 coverage files in standard bedGraph and bigWig file formats. By doing so,
2522 deepTools allows the creation of normalized coverage files or the comparison
2523 between two files (for example, treatment and control). Finally, using such
2524 normalized and standardized files, multiple visualizations can be created to
2525 identify enrichments with functional annotations of the genome.")
2526 (license license:gpl3+)))
2527
2528 (define-public delly
2529 (package
2530 (name "delly")
2531 (version "0.7.9")
2532 (source (origin
2533 (method git-fetch)
2534 (uri (git-reference
2535 (url "https://github.com/dellytools/delly.git")
2536 (commit (string-append "v" version))))
2537 (file-name (git-file-name name version))
2538 (sha256
2539 (base32 "034jqsxswy9gqdh2zkgc1js99qkv75ks4xvzgmh0284sraagv61z"))
2540 (modules '((guix build utils)))
2541 (snippet
2542 '(begin
2543 (delete-file-recursively "src/htslib")
2544 #t))))
2545 (build-system gnu-build-system)
2546 (arguments
2547 `(#:tests? #f ; There are no tests to run.
2548 #:make-flags
2549 (list "PARALLEL=1" ; Allow parallel execution at run-time.
2550 (string-append "prefix=" (assoc-ref %outputs "out")))
2551 #:phases
2552 (modify-phases %standard-phases
2553 (delete 'configure) ; There is no configure phase.
2554 (add-after 'install 'install-templates
2555 (lambda* (#:key outputs #:allow-other-keys)
2556 (let ((templates (string-append (assoc-ref outputs "out")
2557 "/share/delly/templates")))
2558 (mkdir-p templates)
2559 (copy-recursively "excludeTemplates" templates)
2560 #t))))))
2561 (inputs
2562 `(("boost" ,boost)
2563 ("htslib" ,htslib)
2564 ("zlib" ,zlib)
2565 ("bzip2" ,bzip2)))
2566 (home-page "https://github.com/dellytools/delly")
2567 (synopsis "Integrated structural variant prediction method")
2568 (description "Delly is an integrated structural variant prediction method
2569 that can discover and genotype deletions, tandem duplications, inversions and
2570 translocations at single-nucleotide resolution in short-read massively parallel
2571 sequencing data. It uses paired-ends and split-reads to sensitively and
2572 accurately delineate genomic rearrangements throughout the genome.")
2573 (license license:gpl3+)))
2574
2575 (define-public diamond
2576 (package
2577 (name "diamond")
2578 (version "0.9.22")
2579 (source (origin
2580 (method git-fetch)
2581 (uri (git-reference
2582 (url "https://github.com/bbuchfink/diamond.git")
2583 (commit (string-append "v" version))))
2584 (file-name (git-file-name name version))
2585 (sha256
2586 (base32
2587 "0bky78v79g3wmdpsd706cscckgw1v09fg8vdd0z8z0d5b97aj9zl"))))
2588 (build-system cmake-build-system)
2589 (arguments
2590 '(#:tests? #f ; no "check" target
2591 #:phases
2592 (modify-phases %standard-phases
2593 (add-after 'unpack 'remove-native-compilation
2594 (lambda _
2595 (substitute* "CMakeLists.txt" (("-march=native") ""))
2596 #t)))))
2597 (inputs
2598 `(("zlib" ,zlib)))
2599 (home-page "https://github.com/bbuchfink/diamond")
2600 (synopsis "Accelerated BLAST compatible local sequence aligner")
2601 (description
2602 "DIAMOND is a BLAST-compatible local aligner for mapping protein and
2603 translated DNA query sequences against a protein reference database (BLASTP
2604 and BLASTX alignment mode). The speedup over BLAST is up to 20,000 on short
2605 reads at a typical sensitivity of 90-99% relative to BLAST depending on the
2606 data and settings.")
2607 (license license:agpl3+)))
2608
2609 (define-public discrover
2610 (package
2611 (name "discrover")
2612 (version "1.6.0")
2613 (source
2614 (origin
2615 (method git-fetch)
2616 (uri (git-reference
2617 (url "https://github.com/maaskola/discrover.git")
2618 (commit version)))
2619 (file-name (git-file-name name version))
2620 (sha256
2621 (base32
2622 "173fwi2vb6a5kp406hm3jj6j7v4whww796f2qcygp4rpvamh307y"))))
2623 (build-system cmake-build-system)
2624 (arguments
2625 `(#:tests? #f ; there are no tests
2626 #:phases
2627 (modify-phases %standard-phases
2628 (add-after 'unpack 'fix-latex-errors
2629 (lambda _
2630 (with-fluids ((%default-port-encoding #f))
2631 (substitute* "doc/references.bib"
2632 (("\\{S\\}illanp[^,]+,")
2633 "{S}illanp{\\\"a}{\\\"a},")))
2634 ;; XXX: I just can't get pdflatex to not complain about these
2635 ;; characters. They end up in the manual via the generated
2636 ;; discrover-cli-help.txt.
2637 (substitute* "src/hmm/cli.cpp"
2638 (("µ") "mu")
2639 (("η") "eta")
2640 (("≤") "<="))
2641 ;; This seems to be a syntax error.
2642 (substitute* "doc/discrover-manual.tex"
2643 (("theverbbox\\[t\\]") "theverbbox"))
2644 #t))
2645 (add-after 'unpack 'add-missing-includes
2646 (lambda _
2647 (substitute* "src/executioninformation.hpp"
2648 (("#define EXECUTIONINFORMATION_HPP" line)
2649 (string-append line "\n#include <random>")))
2650 (substitute* "src/plasma/fasta.hpp"
2651 (("#define FASTA_HPP" line)
2652 (string-append line "\n#include <random>")))
2653 #t))
2654 ;; FIXME: this is needed because we're using texlive-union, which
2655 ;; doesn't handle fonts correctly. It expects to be able to generate
2656 ;; fonts in the home directory.
2657 (add-before 'build 'setenv-HOME
2658 (lambda _ (setenv "HOME" "/tmp") #t)))))
2659 (inputs
2660 `(("boost" ,boost)
2661 ("cairo" ,cairo)
2662 ("rmath-standalone" ,rmath-standalone)))
2663 (native-inputs
2664 `(("texlive" ,(texlive-union (list texlive-fonts-cm
2665 texlive-fonts-amsfonts
2666
2667 texlive-latex-doi
2668 texlive-latex-examplep
2669 texlive-latex-hyperref
2670 texlive-latex-ms
2671 texlive-latex-natbib
2672 texlive-bibtex ; style files used by natbib
2673 texlive-latex-pgf ; tikz
2674 texlive-latex-verbatimbox)))
2675 ("imagemagick" ,imagemagick)))
2676 (home-page "http://dorina.mdc-berlin.de/public/rajewsky/discrover/")
2677 (synopsis "Discover discriminative nucleotide sequence motifs")
2678 (description "Discrover is a motif discovery method to find binding sites
2679 of nucleic acid binding proteins.")
2680 (license license:gpl3+)))
2681
2682 (define-public eigensoft
2683 (package
2684 (name "eigensoft")
2685 (version "7.2.1")
2686 (source
2687 (origin
2688 (method git-fetch)
2689 (uri (git-reference
2690 (url "https://github.com/DReichLab/EIG.git")
2691 (commit (string-append "v" version))))
2692 (file-name (git-file-name name version))
2693 (sha256
2694 (base32
2695 "1c141fqvhnzibmnf22sv23vbmzm20kjjyrib44cfh75wyndp2d9k"))
2696 (modules '((guix build utils)))
2697 ;; Remove pre-built binaries.
2698 (snippet '(begin
2699 (delete-file-recursively "bin")
2700 (mkdir "bin")
2701 #t))))
2702 (build-system gnu-build-system)
2703 (arguments
2704 `(#:tests? #f ; There are no tests.
2705 #:make-flags '("CC=gcc")
2706 #:phases
2707 (modify-phases %standard-phases
2708 ;; There is no configure phase, but the Makefile is in a
2709 ;; sub-directory.
2710 (replace 'configure
2711 (lambda _ (chdir "src") #t))
2712 ;; The provided install target only copies executables to
2713 ;; the "bin" directory in the build root.
2714 (add-after 'install 'actually-install
2715 (lambda* (#:key outputs #:allow-other-keys)
2716 (let* ((out (assoc-ref outputs "out"))
2717 (bin (string-append out "/bin")))
2718 (for-each (lambda (file)
2719 (install-file file bin))
2720 (find-files "../bin" ".*"))
2721 #t))))))
2722 (inputs
2723 `(("gsl" ,gsl)
2724 ("lapack" ,lapack)
2725 ("openblas" ,openblas)
2726 ("perl" ,perl)
2727 ("gfortran" ,gfortran "lib")))
2728 (home-page "https://github.com/DReichLab/EIG")
2729 (synopsis "Tools for population genetics")
2730 (description "The EIGENSOFT package provides tools for population
2731 genetics and stratification correction. EIGENSOFT implements methods commonly
2732 used in population genetics analyses such as PCA, computation of Tracy-Widom
2733 statistics, and finding related individuals in structured populations. It
2734 comes with a built-in plotting script and supports multiple file formats and
2735 quantitative phenotypes.")
2736 ;; The license of the eigensoft tools is Expat, but since it's
2737 ;; linking with the GNU Scientific Library (GSL) the effective
2738 ;; license is the GPL.
2739 (license license:gpl3+)))
2740
2741 (define-public edirect
2742 (package
2743 (name "edirect")
2744 (version "12.1.20190819")
2745 (source (origin
2746 (method url-fetch)
2747 (uri (string-append "ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect"
2748 "/versions/" version
2749 "/edirect-" version ".tar.gz"))
2750 (sha256
2751 (base32
2752 "1i9s9mppcfqd60pfywpm8vdyz5vpnyslw22nd7dv0bhykrdnkz9g"))))
2753 (build-system perl-build-system)
2754 (arguments
2755 `(#:phases
2756 (modify-phases %standard-phases
2757 (delete 'configure)
2758 (delete 'build)
2759 (delete 'check) ; simple check after install
2760 (replace 'install
2761 (lambda* (#:key outputs #:allow-other-keys)
2762 (install-file "edirect.pl"
2763 (string-append (assoc-ref outputs "out") "/bin"))
2764 #t))
2765 (add-after 'install 'wrap-program
2766 (lambda* (#:key outputs #:allow-other-keys)
2767 ;; Make sure 'edirect.pl' finds all perl inputs at runtime.
2768 (let* ((out (assoc-ref outputs "out"))
2769 (path (getenv "PERL5LIB")))
2770 (wrap-program (string-append out "/bin/edirect.pl")
2771 `("PERL5LIB" ":" prefix (,path))))
2772 #t))
2773 (add-after 'wrap-program 'check
2774 (lambda* (#:key outputs #:allow-other-keys)
2775 (invoke (string-append (assoc-ref outputs "out")
2776 "/bin/edirect.pl")
2777 "-filter" "-help")
2778 #t)))))
2779 (inputs
2780 `(("perl-html-parser" ,perl-html-parser)
2781 ("perl-encode-locale" ,perl-encode-locale)
2782 ("perl-file-listing" ,perl-file-listing)
2783 ("perl-html-tagset" ,perl-html-tagset)
2784 ("perl-html-tree" ,perl-html-tree)
2785 ("perl-http-cookies" ,perl-http-cookies)
2786 ("perl-http-date" ,perl-http-date)
2787 ("perl-http-message" ,perl-http-message)
2788 ("perl-http-negotiate" ,perl-http-negotiate)
2789 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
2790 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
2791 ("perl-net-http" ,perl-net-http)
2792 ("perl-uri" ,perl-uri)
2793 ("perl-www-robotrules" ,perl-www-robotrules)
2794 ("perl-xml-simple" ,perl-xml-simple)
2795 ("perl" ,perl)))
2796 (home-page "http://www.ncbi.nlm.nih.gov/books/NBK179288/")
2797 (synopsis "Tools for accessing the NCBI's set of databases")
2798 (description
2799 "Entrez Direct (EDirect) is a method for accessing the National Center
2800 for Biotechnology Information's (NCBI) set of interconnected
2801 databases (publication, sequence, structure, gene, variation, expression,
2802 etc.) from a terminal. Functions take search terms from command-line
2803 arguments. Individual operations are combined to build multi-step queries.
2804 Record retrieval and formatting normally complete the process.
2805
2806 EDirect also provides an argument-driven function that simplifies the
2807 extraction of data from document summaries or other results that are returned
2808 in structured XML format. This can eliminate the need for writing custom
2809 software to answer ad hoc questions.")
2810 (license license:public-domain)))
2811
2812 (define-public exonerate
2813 (package
2814 (name "exonerate")
2815 (version "2.4.0")
2816 (source
2817 (origin
2818 (method url-fetch)
2819 (uri
2820 (string-append
2821 "http://ftp.ebi.ac.uk/pub/software/vertebrategenomics/exonerate/"
2822 "exonerate-" version ".tar.gz"))
2823 (sha256
2824 (base32
2825 "0hj0m9xygiqsdxvbg79wq579kbrx1mdrabi2bzqz2zn9qwfjcjgq"))))
2826 (build-system gnu-build-system)
2827 (arguments
2828 `(#:parallel-build? #f)) ; Building in parallel fails on some machines.
2829 (native-inputs
2830 `(("pkg-config" ,pkg-config)))
2831 (inputs
2832 `(("glib" ,glib)))
2833 (home-page
2834 "https://www.ebi.ac.uk/about/vertebrate-genomics/software/exonerate")
2835 (synopsis "Generic tool for biological sequence alignment")
2836 (description
2837 "Exonerate is a generic tool for pairwise sequence comparison. It allows
2838 the alignment of sequences using a many alignment models, either exhaustive
2839 dynamic programming or a variety of heuristics.")
2840 (license license:gpl3)))
2841
2842 (define-public express
2843 (package
2844 (name "express")
2845 (version "1.5.1")
2846 (source (origin
2847 (method url-fetch)
2848 (uri
2849 (string-append
2850 "http://bio.math.berkeley.edu/eXpress/downloads/express-"
2851 version "/express-" version "-src.tgz"))
2852 (sha256
2853 (base32
2854 "03rczxd0gjp2l1jxcmjfmf5j94j77zqyxa6x063zsc585nj40n0c"))))
2855 (build-system cmake-build-system)
2856 (arguments
2857 `(#:tests? #f ;no "check" target
2858 #:phases
2859 (modify-phases %standard-phases
2860 (add-after 'unpack 'use-shared-boost-libs-and-set-bamtools-paths
2861 (lambda* (#:key inputs #:allow-other-keys)
2862 (substitute* "CMakeLists.txt"
2863 (("set\\(Boost_USE_STATIC_LIBS ON\\)")
2864 "set(Boost_USE_STATIC_LIBS OFF)")
2865 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/bamtools/include")
2866 (string-append (assoc-ref inputs "bamtools") "/include/bamtools")))
2867 (substitute* "src/CMakeLists.txt"
2868 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/\\.\\./bamtools/lib")
2869 (string-append (assoc-ref inputs "bamtools") "/lib"))
2870 (("libprotobuf.a") "libprotobuf.so"))
2871 #t)))))
2872 (inputs
2873 `(("boost" ,boost)
2874 ("bamtools" ,bamtools)
2875 ("protobuf" ,protobuf)
2876 ("zlib" ,zlib)))
2877 (home-page "http://bio.math.berkeley.edu/eXpress")
2878 (synopsis "Streaming quantification for high-throughput genomic sequencing")
2879 (description
2880 "eXpress is a streaming tool for quantifying the abundances of a set of
2881 target sequences from sampled subsequences. Example applications include
2882 transcript-level RNA-Seq quantification, allele-specific/haplotype expression
2883 analysis (from RNA-Seq), transcription factor binding quantification in
2884 ChIP-Seq, and analysis of metagenomic data.")
2885 (license license:artistic2.0)))
2886
2887 (define-public express-beta-diversity
2888 (package
2889 (name "express-beta-diversity")
2890 (version "1.0.8")
2891 (source (origin
2892 (method git-fetch)
2893 (uri (git-reference
2894 (url "https://github.com/dparks1134/ExpressBetaDiversity.git")
2895 (commit (string-append "v" version))))
2896 (file-name (git-file-name name version))
2897 (sha256
2898 (base32
2899 "0s0yzg5c21349rh7x4w9266jsvnp7j1hp9cf8sk32hz8nvrj745x"))))
2900 (build-system gnu-build-system)
2901 (arguments
2902 `(#:phases
2903 (modify-phases %standard-phases
2904 (delete 'configure)
2905 (add-before 'build 'enter-source (lambda _ (chdir "source") #t))
2906 (replace 'check
2907 (lambda _ (invoke "../bin/ExpressBetaDiversity" "-u") #t))
2908 (replace 'install
2909 (lambda* (#:key outputs #:allow-other-keys)
2910 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
2911 (install-file "../scripts/convertToEBD.py" bin)
2912 (install-file "../bin/ExpressBetaDiversity" bin)
2913 #t))))))
2914 (inputs
2915 `(("python" ,python-2)))
2916 (home-page "http://kiwi.cs.dal.ca/Software/ExpressBetaDiversity")
2917 (synopsis "Taxon- and phylogenetic-based beta diversity measures")
2918 (description
2919 "Express Beta Diversity (EBD) calculates ecological beta diversity
2920 (dissimilarity) measures between biological communities. EBD implements a
2921 variety of diversity measures including those that make use of phylogenetic
2922 similarity of community members.")
2923 (license license:gpl3+)))
2924
2925 (define-public fasttree
2926 (package
2927 (name "fasttree")
2928 (version "2.1.10")
2929 (source (origin
2930 (method url-fetch)
2931 (uri (string-append
2932 "http://www.microbesonline.org/fasttree/FastTree-"
2933 version ".c"))
2934 (sha256
2935 (base32
2936 "0vcjdvy1j4m702vmak4svbfkrpcw63k7wymfksjp9a982zy8kjsl"))))
2937 (build-system gnu-build-system)
2938 (arguments
2939 `(#:tests? #f ; no "check" target
2940 #:phases
2941 (modify-phases %standard-phases
2942 (delete 'unpack)
2943 (delete 'configure)
2944 (replace 'build
2945 (lambda* (#:key source #:allow-other-keys)
2946 (invoke "gcc"
2947 "-O3"
2948 "-finline-functions"
2949 "-funroll-loops"
2950 "-Wall"
2951 "-o"
2952 "FastTree"
2953 source
2954 "-lm")
2955 (invoke "gcc"
2956 "-DOPENMP"
2957 "-fopenmp"
2958 "-O3"
2959 "-finline-functions"
2960 "-funroll-loops"
2961 "-Wall"
2962 "-o"
2963 "FastTreeMP"
2964 source
2965 "-lm")
2966 #t))
2967 (replace 'install
2968 (lambda* (#:key outputs #:allow-other-keys)
2969 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
2970 (install-file "FastTree" bin)
2971 (install-file "FastTreeMP" bin)
2972 #t))))))
2973 (home-page "http://www.microbesonline.org/fasttree")
2974 (synopsis "Infers approximately-maximum-likelihood phylogenetic trees")
2975 (description
2976 "FastTree can handle alignments with up to a million of sequences in a
2977 reasonable amount of time and memory. For large alignments, FastTree is
2978 100-1,000 times faster than PhyML 3.0 or RAxML 7.")
2979 (license license:gpl2+)))
2980
2981 (define-public fastx-toolkit
2982 (package
2983 (name "fastx-toolkit")
2984 (version "0.0.14")
2985 (source (origin
2986 (method url-fetch)
2987 (uri
2988 (string-append
2989 "https://github.com/agordon/fastx_toolkit/releases/download/"
2990 version "/fastx_toolkit-" version ".tar.bz2"))
2991 (sha256
2992 (base32
2993 "01jqzw386873sr0pjp1wr4rn8fsga2vxs1qfmicvx1pjr72007wy"))))
2994 (build-system gnu-build-system)
2995 (inputs
2996 `(("libgtextutils" ,libgtextutils)))
2997 (native-inputs
2998 `(("pkg-config" ,pkg-config)))
2999 (home-page "http://hannonlab.cshl.edu/fastx_toolkit/")
3000 (synopsis "Tools for FASTA/FASTQ file preprocessing")
3001 (description
3002 "The FASTX-Toolkit is a collection of command line tools for Short-Reads
3003 FASTA/FASTQ files preprocessing.
3004
3005 Next-Generation sequencing machines usually produce FASTA or FASTQ files,
3006 containing multiple short-reads sequences. The main processing of such
3007 FASTA/FASTQ files is mapping the sequences to reference genomes. However, it
3008 is sometimes more productive to preprocess the files before mapping the
3009 sequences to the genome---manipulating the sequences to produce better mapping
3010 results. The FASTX-Toolkit tools perform some of these preprocessing tasks.")
3011 (license license:agpl3+)))
3012
3013 (define-public flexbar
3014 (package
3015 (name "flexbar")
3016 (version "3.4.0")
3017 (source (origin
3018 (method git-fetch)
3019 (uri (git-reference
3020 (url "https://github.com/seqan/flexbar.git")
3021 (commit (string-append "v" version))))
3022 (file-name (git-file-name name version))
3023 (sha256
3024 (base32
3025 "1pq9sxvdnldl14libk234m72dqhwgzs3acgl943wchwdqlcsi5r2"))))
3026 (build-system cmake-build-system)
3027 (arguments
3028 `(#:phases
3029 (modify-phases %standard-phases
3030 (add-after 'unpack 'do-not-tune-to-CPU
3031 (lambda _
3032 (substitute* "src/CMakeLists.txt"
3033 ((" -march=native") ""))
3034 #t))
3035 (replace 'check
3036 (lambda* (#:key outputs #:allow-other-keys)
3037 (setenv "PATH" (string-append (getcwd) ":" (getenv "PATH")))
3038 (with-directory-excursion "../source/test"
3039 (invoke "bash" "flexbar_test.sh"))
3040 #t))
3041 (replace 'install
3042 (lambda* (#:key outputs #:allow-other-keys)
3043 (let* ((out (string-append (assoc-ref outputs "out")))
3044 (bin (string-append out "/bin/")))
3045 (install-file "flexbar" bin))
3046 #t)))))
3047 (inputs
3048 `(("tbb" ,tbb)
3049 ("zlib" ,zlib)))
3050 (native-inputs
3051 `(("pkg-config" ,pkg-config)
3052 ("seqan" ,seqan)))
3053 (home-page "https://github.com/seqan/flexbar")
3054 (synopsis "Barcode and adapter removal tool for sequencing platforms")
3055 (description
3056 "Flexbar preprocesses high-throughput nucleotide sequencing data
3057 efficiently. It demultiplexes barcoded runs and removes adapter sequences.
3058 Moreover, trimming and filtering features are provided. Flexbar increases
3059 read mapping rates and improves genome and transcriptome assemblies. It
3060 supports next-generation sequencing data in fasta/q and csfasta/q format from
3061 Illumina, Roche 454, and the SOLiD platform.")
3062 (license license:bsd-3)))
3063
3064 (define-public fraggenescan
3065 (package
3066 (name "fraggenescan")
3067 (version "1.30")
3068 (source
3069 (origin
3070 (method url-fetch)
3071 (uri
3072 (string-append "mirror://sourceforge/fraggenescan/"
3073 "FragGeneScan" version ".tar.gz"))
3074 (sha256
3075 (base32 "158dcnwczgcyhwm4qlx19sanrwgdpzf6bn2y57mbpx55lkgz1mzj"))))
3076 (build-system gnu-build-system)
3077 (arguments
3078 `(#:phases
3079 (modify-phases %standard-phases
3080 (delete 'configure)
3081 (add-before 'build 'patch-paths
3082 (lambda* (#:key outputs #:allow-other-keys)
3083 (let* ((out (string-append (assoc-ref outputs "out")))
3084 (share (string-append out "/share/fraggenescan/")))
3085 (substitute* "run_FragGeneScan.pl"
3086 (("system\\(\"rm")
3087 (string-append "system(\"" (which "rm")))
3088 (("system\\(\"mv")
3089 (string-append "system(\"" (which "mv")))
3090 (("\\\"awk") (string-append "\"" (which "awk")))
3091 ;; This script and other programs expect the training files
3092 ;; to be in the non-standard location bin/train/XXX. Change
3093 ;; this to be share/fraggenescan/train/XXX instead.
3094 (("^\\$train.file = \\$dir.*")
3095 (string-append "$train_file = \""
3096 share
3097 "train/\".$FGS_train_file;")))
3098 (substitute* "run_hmm.c"
3099 (("^ strcat\\(train_dir, \\\"train/\\\"\\);")
3100 (string-append " strcpy(train_dir, \"" share "/train/\");"))))
3101 #t))
3102 (replace 'build
3103 (lambda _
3104 (invoke "make" "clean")
3105 (invoke "make" "fgs")
3106 #t))
3107 (replace 'install
3108 (lambda* (#:key outputs #:allow-other-keys)
3109 (let* ((out (string-append (assoc-ref outputs "out")))
3110 (bin (string-append out "/bin/"))
3111 (share (string-append out "/share/fraggenescan/train")))
3112 (install-file "run_FragGeneScan.pl" bin)
3113 (install-file "FragGeneScan" bin)
3114 (copy-recursively "train" share))
3115 #t))
3116 (delete 'check)
3117 (add-after 'install 'post-install-check
3118 ;; In lieu of 'make check', run one of the examples and check the
3119 ;; output files gets created.
3120 (lambda* (#:key outputs #:allow-other-keys)
3121 (let* ((out (string-append (assoc-ref outputs "out")))
3122 (bin (string-append out "/bin/"))
3123 (frag (string-append bin "run_FragGeneScan.pl")))
3124 ;; Test complete genome.
3125 (invoke frag
3126 "-genome=./example/NC_000913.fna"
3127 "-out=./test2"
3128 "-complete=1"
3129 "-train=complete")
3130 (unless (and (file-exists? "test2.faa")
3131 (file-exists? "test2.ffn")
3132 (file-exists? "test2.gff")
3133 (file-exists? "test2.out"))
3134 (error "Expected files do not exist."))
3135 ;; Test incomplete sequences.
3136 (invoke frag
3137 "-genome=./example/NC_000913-fgs.ffn"
3138 "-out=out"
3139 "-complete=0"
3140 "-train=454_30")
3141 #t))))))
3142 (inputs
3143 `(("perl" ,perl)
3144 ("python" ,python-2))) ;not compatible with python 3.
3145 (home-page "https://sourceforge.net/projects/fraggenescan/")
3146 (synopsis "Finds potentially fragmented genes in short reads")
3147 (description
3148 "FragGeneScan is a program for predicting bacterial and archaeal genes in
3149 short and error-prone DNA sequencing reads. It can also be applied to predict
3150 genes in incomplete assemblies or complete genomes.")
3151 ;; GPL3+ according to private correspondense with the authors.
3152 (license license:gpl3+)))
3153
3154 (define-public fxtract
3155 (let ((util-commit "776ca85a18a47492af3794745efcb4a905113115"))
3156 (package
3157 (name "fxtract")
3158 (version "2.3")
3159 (source
3160 (origin
3161 (method git-fetch)
3162 (uri (git-reference
3163 (url "https://github.com/ctSkennerton/fxtract.git")
3164 (commit version)))
3165 (file-name (git-file-name name version))
3166 (sha256
3167 (base32
3168 "0hab3gpwf4w9s87qlbswq6ws1qqybh4dcqk79q1ahyldzai5fgp5"))))
3169 (build-system gnu-build-system)
3170 (arguments
3171 `(#:make-flags (list
3172 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3173 "CC=gcc")
3174 #:test-target "fxtract_test"
3175 #:phases
3176 (modify-phases %standard-phases
3177 (delete 'configure)
3178 (add-before 'build 'copy-util
3179 (lambda* (#:key inputs #:allow-other-keys)
3180 (rmdir "util")
3181 (copy-recursively (assoc-ref inputs "ctskennerton-util") "util")
3182 #t))
3183 ;; Do not use make install as this requires additional dependencies.
3184 (replace 'install
3185 (lambda* (#:key outputs #:allow-other-keys)
3186 (let* ((out (assoc-ref outputs "out"))
3187 (bin (string-append out"/bin")))
3188 (install-file "fxtract" bin)
3189 #t))))))
3190 (inputs
3191 `(("pcre" ,pcre)
3192 ("zlib" ,zlib)))
3193 (native-inputs
3194 ;; ctskennerton-util is licensed under GPL2.
3195 `(("ctskennerton-util"
3196 ,(origin
3197 (method git-fetch)
3198 (uri (git-reference
3199 (url "https://github.com/ctSkennerton/util.git")
3200 (commit util-commit)))
3201 (file-name (string-append
3202 "ctstennerton-util-" util-commit "-checkout"))
3203 (sha256
3204 (base32
3205 "0cls1hd4vgj3f36fpzzg4xc77d6f3hpc60cbpfmn2gdr7ykzzad7"))))))
3206 (home-page "https://github.com/ctSkennerton/fxtract")
3207 (synopsis "Extract sequences from FASTA and FASTQ files")
3208 (description
3209 "Fxtract extracts sequences from a protein or nucleotide fastx (FASTA
3210 or FASTQ) file given a subsequence. It uses a simple substring search for
3211 basic tasks but can change to using POSIX regular expressions, PCRE, hash
3212 lookups or multi-pattern searching as required. By default fxtract looks in
3213 the sequence of each record but can also be told to look in the header,
3214 comment or quality sections.")
3215 ;; 'util' requires SSE instructions.
3216 (supported-systems '("x86_64-linux"))
3217 (license license:expat))))
3218
3219 (define-public gemma
3220 (package
3221 (name "gemma")
3222 (version "0.98")
3223 (source (origin
3224 (method git-fetch)
3225 (uri (git-reference
3226 (url "https://github.com/xiangzhou/GEMMA.git")
3227 (commit (string-append "v" version))))
3228 (file-name (git-file-name name version))
3229 (sha256
3230 (base32
3231 "1s3ncnbn45r2hh1cvrqky1kbqq6546biypr4f5mkw1kqlrgyh0yg"))))
3232 (inputs
3233 `(("eigen" ,eigen)
3234 ("gfortran" ,gfortran "lib")
3235 ("gsl" ,gsl)
3236 ("lapack" ,lapack)
3237 ("openblas" ,openblas)
3238 ("zlib" ,zlib)))
3239 (build-system gnu-build-system)
3240 (arguments
3241 `(#:make-flags
3242 '(,@(match (%current-system)
3243 ("x86_64-linux"
3244 '("FORCE_DYNAMIC=1"))
3245 ("i686-linux"
3246 '("FORCE_DYNAMIC=1" "FORCE_32BIT=1"))
3247 (_
3248 '("FORCE_DYNAMIC=1" "NO_INTEL_COMPAT=1"))))
3249 #:phases
3250 (modify-phases %standard-phases
3251 (delete 'configure)
3252 (add-after 'unpack 'find-eigen
3253 (lambda* (#:key inputs #:allow-other-keys)
3254 ;; Ensure that Eigen headers can be found
3255 (setenv "CPLUS_INCLUDE_PATH"
3256 (string-append (assoc-ref inputs "eigen")
3257 "/include/eigen3"))
3258 #t))
3259 (add-before 'build 'bin-mkdir
3260 (lambda _
3261 (mkdir-p "bin")
3262 #t))
3263 (replace 'install
3264 (lambda* (#:key outputs #:allow-other-keys)
3265 (let ((out (assoc-ref outputs "out")))
3266 (install-file "bin/gemma"
3267 (string-append
3268 out "/bin")))
3269 #t)))
3270 #:tests? #f)) ; no tests included yet
3271 (home-page "https://github.com/xiangzhou/GEMMA")
3272 (synopsis "Tool for genome-wide efficient mixed model association")
3273 (description
3274 "Genome-wide Efficient Mixed Model Association (GEMMA) provides a
3275 standard linear mixed model resolver with application in genome-wide
3276 association studies (GWAS).")
3277 (license license:gpl3)))
3278
3279 (define-public grit
3280 (package
3281 (name "grit")
3282 (version "2.0.5")
3283 (source (origin
3284 (method git-fetch)
3285 (uri (git-reference
3286 (url "https://github.com/nboley/grit.git")
3287 (commit version)))
3288 (file-name (git-file-name name version))
3289 (sha256
3290 (base32
3291 "1l5v8vfvfbrpmgnrvbrbv40d0arhxcnmxgv2f1mlcqfa3q6bkqm9"))))
3292 (build-system python-build-system)
3293 (arguments
3294 `(#:python ,python-2
3295 #:phases
3296 (modify-phases %standard-phases
3297 (add-after 'unpack 'generate-from-cython-sources
3298 (lambda* (#:key inputs outputs #:allow-other-keys)
3299 ;; Delete these C files to force fresh generation from pyx sources.
3300 (delete-file "grit/sparsify_support_fns.c")
3301 (delete-file "grit/call_peaks_support_fns.c")
3302 (substitute* "setup.py"
3303 (("Cython.Setup") "Cython.Build"))
3304 #t)))))
3305 (inputs
3306 `(("python-scipy" ,python2-scipy)
3307 ("python-numpy" ,python2-numpy)
3308 ("python-pysam" ,python2-pysam)
3309 ("python-networkx" ,python2-networkx)))
3310 (native-inputs
3311 `(("python-cython" ,python2-cython)))
3312 (home-page "http://grit-bio.org")
3313 (synopsis "Tool for integrative analysis of RNA-seq type assays")
3314 (description
3315 "GRIT is designed to use RNA-seq, TES, and TSS data to build and quantify
3316 full length transcript models. When none of these data sources are available,
3317 GRIT can be run by providing a candidate set of TES or TSS sites. In
3318 addition, GRIT can merge in reference junctions and gene boundaries. GRIT can
3319 also be run in quantification mode, where it uses a provided GTF file and just
3320 estimates transcript expression.")
3321 (license license:gpl3+)))
3322
3323 (define-public hisat
3324 (package
3325 (name "hisat")
3326 (version "0.1.4")
3327 (source (origin
3328 (method url-fetch)
3329 (uri (string-append
3330 "http://ccb.jhu.edu/software/hisat/downloads/hisat-"
3331 version "-beta-source.zip"))
3332 (sha256
3333 (base32
3334 "1k381ydranqxp09yf2y7w1d0chz5d59vb6jchi89hbb0prq19lk5"))))
3335 (build-system gnu-build-system)
3336 (arguments
3337 `(#:tests? #f ;no check target
3338 #:make-flags '("allall"
3339 ;; Disable unsupported `popcnt' instructions on
3340 ;; architectures other than x86_64
3341 ,@(if (string-prefix? "x86_64"
3342 (or (%current-target-system)
3343 (%current-system)))
3344 '()
3345 '("POPCNT_CAPABILITY=0")))
3346 #:phases
3347 (modify-phases %standard-phases
3348 (add-after 'unpack 'patch-sources
3349 (lambda _
3350 ;; XXX Cannot use snippet because zip files are not supported
3351 (substitute* "Makefile"
3352 (("^CC = .*$") "CC = gcc")
3353 (("^CPP = .*$") "CPP = g++")
3354 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
3355 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
3356 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
3357 (substitute* '("hisat-build" "hisat-inspect")
3358 (("/usr/bin/env") (which "env")))
3359 #t))
3360 (replace 'install
3361 (lambda* (#:key outputs #:allow-other-keys)
3362 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
3363 (for-each (lambda (file)
3364 (install-file file bin))
3365 (find-files
3366 "."
3367 "hisat(-(build|align|inspect)(-(s|l)(-debug)*)*)*$")))
3368 #t))
3369 (delete 'configure))))
3370 (native-inputs
3371 `(("unzip" ,unzip)))
3372 (inputs
3373 `(("perl" ,perl)
3374 ("python" ,python)
3375 ("zlib" ,zlib)))
3376 ;; Non-portable SSE instructions are used so building fails on platforms
3377 ;; other than x86_64.
3378 (supported-systems '("x86_64-linux"))
3379 (home-page "http://ccb.jhu.edu/software/hisat/index.shtml")
3380 (synopsis "Hierarchical indexing for spliced alignment of transcripts")
3381 (description
3382 "HISAT is a fast and sensitive spliced alignment program for mapping
3383 RNA-seq reads. In addition to one global FM index that represents a whole
3384 genome, HISAT uses a large set of small FM indexes that collectively cover the
3385 whole genome. These small indexes (called local indexes) combined with
3386 several alignment strategies enable effective alignment of RNA-seq reads, in
3387 particular, reads spanning multiple exons.")
3388 (license license:gpl3+)))
3389
3390 (define-public hisat2
3391 (package
3392 (name "hisat2")
3393 (version "2.0.5")
3394 (source
3395 (origin
3396 (method url-fetch)
3397 (uri (string-append "ftp://ftp.ccb.jhu.edu/pub/infphilo/hisat2"
3398 "/downloads/hisat2-" version "-source.zip"))
3399 (sha256
3400 (base32
3401 "0lywnr8kijwsc2aw10dwxic0n0yvip6fl3rjlvc8zzwahamy4x7g"))))
3402 (build-system gnu-build-system)
3403 (arguments
3404 `(#:tests? #f ; no check target
3405 #:make-flags (list "CC=gcc" "CXX=g++" "allall")
3406 #:modules ((guix build gnu-build-system)
3407 (guix build utils)
3408 (srfi srfi-26))
3409 #:phases
3410 (modify-phases %standard-phases
3411 (add-after 'unpack 'make-deterministic
3412 (lambda _
3413 (substitute* "Makefile"
3414 (("`date`") "0"))
3415 #t))
3416 (delete 'configure)
3417 (replace 'install
3418 (lambda* (#:key outputs #:allow-other-keys)
3419 (let* ((out (assoc-ref outputs "out"))
3420 (bin (string-append out "/bin/"))
3421 (doc (string-append out "/share/doc/hisat2/")))
3422 (for-each
3423 (cut install-file <> bin)
3424 (find-files "."
3425 "hisat2(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))
3426 (mkdir-p doc)
3427 (install-file "doc/manual.inc.html" doc))
3428 #t)))))
3429 (native-inputs
3430 `(("unzip" ,unzip) ; needed for archive from ftp
3431 ("perl" ,perl)
3432 ("pandoc" ,ghc-pandoc))) ; for documentation
3433 (home-page "http://ccb.jhu.edu/software/hisat2/index.shtml")
3434 (synopsis "Graph-based alignment of genomic sequencing reads")
3435 (description "HISAT2 is a fast and sensitive alignment program for mapping
3436 next-generation sequencing reads (both DNA and RNA) to a population of human
3437 genomes (as well as to a single reference genome). In addition to using one
3438 global @dfn{graph FM} (GFM) index that represents a population of human
3439 genomes, HISAT2 uses a large set of small GFM indexes that collectively cover
3440 the whole genome. These small indexes, combined with several alignment
3441 strategies, enable rapid and accurate alignment of sequencing reads. This new
3442 indexing scheme is called a @dfn{Hierarchical Graph FM index} (HGFM).")
3443 ;; HISAT2 contains files from Bowtie2, which is released under
3444 ;; GPLv2 or later. The HISAT2 source files are released under
3445 ;; GPLv3 or later.
3446 (license license:gpl3+)))
3447
3448 (define-public hmmer
3449 (package
3450 (name "hmmer")
3451 (version "3.2.1")
3452 (source
3453 (origin
3454 (method url-fetch)
3455 (uri (string-append
3456 "http://eddylab.org/software/hmmer/hmmer-" version ".tar.gz"))
3457 (sha256
3458 (base32
3459 "171bivy6xhgjsz5nv53n81pc3frnwz29ylblawk2bv46szwjjqd5"))))
3460 (build-system gnu-build-system)
3461 (native-inputs `(("perl" ,perl)))
3462 (home-page "http://hmmer.org/")
3463 (synopsis "Biosequence analysis using profile hidden Markov models")
3464 (description
3465 "HMMER is used for searching sequence databases for homologs of protein
3466 sequences, and for making protein sequence alignments. It implements methods
3467 using probabilistic models called profile hidden Markov models (profile
3468 HMMs).")
3469 ;; hmmer uses non-portable SSE intrinsics so building fails on other
3470 ;; platforms.
3471 (supported-systems '("x86_64-linux" "i686-linux"))
3472 (license license:bsd-3)))
3473
3474 (define-public htseq
3475 (package
3476 (name "htseq")
3477 (version "0.9.1")
3478 (source (origin
3479 (method url-fetch)
3480 (uri (pypi-uri "HTSeq" version))
3481 (sha256
3482 (base32
3483 "11flgb1381xdhk43bzbfm3vhnszkpqg6jk76rpa5xd1zbrvvlnxg"))))
3484 (build-system python-build-system)
3485 (native-inputs
3486 `(("python-cython" ,python-cython)))
3487 ;; Numpy needs to be propagated when htseq is used as a Python library.
3488 (propagated-inputs
3489 `(("python-numpy" ,python-numpy)))
3490 (inputs
3491 `(("python-pysam" ,python-pysam)
3492 ("python-matplotlib" ,python-matplotlib)))
3493 (home-page "http://www-huber.embl.de/users/anders/HTSeq/")
3494 (synopsis "Analysing high-throughput sequencing data with Python")
3495 (description
3496 "HTSeq is a Python package that provides infrastructure to process data
3497 from high-throughput sequencing assays.")
3498 (license license:gpl3+)))
3499
3500 (define-public python2-htseq
3501 (package-with-python2 htseq))
3502
3503 (define-public java-htsjdk
3504 (package
3505 (name "java-htsjdk")
3506 (version "2.3.0") ; last version without build dependency on gradle
3507 (source (origin
3508 (method git-fetch)
3509 (uri (git-reference
3510 (url "https://github.com/samtools/htsjdk.git")
3511 (commit version)))
3512 (file-name (git-file-name name version))
3513 (sha256
3514 (base32
3515 "1b178ixcabanm834ydjl3jiakpyxdmki32hqfv2abrzn3rcwa28i"))
3516 (modules '((guix build utils)))
3517 (snippet
3518 ;; Delete pre-built binaries
3519 '(begin
3520 (delete-file-recursively "lib")
3521 (mkdir-p "lib")
3522 #t))))
3523 (build-system ant-build-system)
3524 (arguments
3525 `(#:tests? #f ; test require Internet access
3526 #:jdk ,icedtea-8
3527 #:make-flags
3528 (list (string-append "-Ddist=" (assoc-ref %outputs "out")
3529 "/share/java/htsjdk/"))
3530 #:build-target "all"
3531 #:phases
3532 (modify-phases %standard-phases
3533 ;; The build phase also installs the jars
3534 (delete 'install))))
3535 (inputs
3536 `(("java-ngs" ,java-ngs)
3537 ("java-snappy-1" ,java-snappy-1)
3538 ("java-commons-compress" ,java-commons-compress)
3539 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
3540 ("java-commons-jexl-2" ,java-commons-jexl-2)
3541 ("java-xz" ,java-xz)))
3542 (native-inputs
3543 `(("java-testng" ,java-testng)))
3544 (home-page "http://samtools.github.io/htsjdk/")
3545 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3546 (description
3547 "HTSJDK is an implementation of a unified Java library for accessing
3548 common file formats, such as SAM and VCF, used for high-throughput
3549 sequencing (HTS) data. There are also an number of useful utilities for
3550 manipulating HTS data.")
3551 (license license:expat)))
3552
3553 (define-public java-htsjdk-latest
3554 (package
3555 (name "java-htsjdk")
3556 (version "2.14.3")
3557 (source (origin
3558 (method git-fetch)
3559 (uri (git-reference
3560 (url "https://github.com/samtools/htsjdk.git")
3561 (commit version)))
3562 (file-name (string-append name "-" version "-checkout"))
3563 (sha256
3564 (base32
3565 "1lmya1fdjy03mz6zmdmd86j9v9vfhqb3952mqq075navx1i6g4bc"))))
3566 (build-system ant-build-system)
3567 (arguments
3568 `(#:tests? #f ; test require Scala
3569 #:jdk ,icedtea-8
3570 #:jar-name "htsjdk.jar"
3571 #:phases
3572 (modify-phases %standard-phases
3573 (add-after 'unpack 'remove-useless-build.xml
3574 (lambda _ (delete-file "build.xml") #t))
3575 ;; The tests require the scalatest package.
3576 (add-after 'unpack 'remove-tests
3577 (lambda _ (delete-file-recursively "src/test") #t)))))
3578 (inputs
3579 `(("java-ngs" ,java-ngs)
3580 ("java-snappy-1" ,java-snappy-1)
3581 ("java-commons-compress" ,java-commons-compress)
3582 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
3583 ("java-commons-jexl-2" ,java-commons-jexl-2)
3584 ("java-xz" ,java-xz)))
3585 (native-inputs
3586 `(("java-junit" ,java-junit)))
3587 (home-page "http://samtools.github.io/htsjdk/")
3588 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3589 (description
3590 "HTSJDK is an implementation of a unified Java library for accessing
3591 common file formats, such as SAM and VCF, used for high-throughput
3592 sequencing (HTS) data. There are also an number of useful utilities for
3593 manipulating HTS data.")
3594 (license license:expat)))
3595
3596 ;; This is needed for picard 2.10.3
3597 (define-public java-htsjdk-2.10.1
3598 (package (inherit java-htsjdk-latest)
3599 (name "java-htsjdk")
3600 (version "2.10.1")
3601 (source (origin
3602 (method git-fetch)
3603 (uri (git-reference
3604 (url "https://github.com/samtools/htsjdk.git")
3605 (commit version)))
3606 (file-name (string-append name "-" version "-checkout"))
3607 (sha256
3608 (base32
3609 "1kxh7slm2pm3x9p6jxa1wqsq9a31dhiiflhxnxqcisan4k3rwia2"))))
3610 (build-system ant-build-system)
3611 (arguments
3612 `(#:tests? #f ; tests require Scala
3613 #:jdk ,icedtea-8
3614 #:jar-name "htsjdk.jar"
3615 #:phases
3616 (modify-phases %standard-phases
3617 (add-after 'unpack 'remove-useless-build.xml
3618 (lambda _ (delete-file "build.xml") #t))
3619 ;; The tests require the scalatest package.
3620 (add-after 'unpack 'remove-tests
3621 (lambda _ (delete-file-recursively "src/test") #t)))))))
3622
3623 ;; This version matches java-htsjdk 2.3.0. Later versions also require a more
3624 ;; recent version of java-htsjdk, which depends on gradle.
3625 (define-public java-picard
3626 (package
3627 (name "java-picard")
3628 (version "2.3.0")
3629 (source (origin
3630 (method git-fetch)
3631 (uri (git-reference
3632 (url "https://github.com/broadinstitute/picard.git")
3633 (commit version)))
3634 (file-name (string-append "java-picard-" version "-checkout"))
3635 (sha256
3636 (base32
3637 "1ll7mf4r3by92w2nhlmpa591xd1f46xlkwh59mq6fvbb5pdwzvx6"))
3638 (modules '((guix build utils)))
3639 (snippet
3640 '(begin
3641 ;; Delete pre-built binaries.
3642 (delete-file-recursively "lib")
3643 (mkdir-p "lib")
3644 (substitute* "build.xml"
3645 ;; Remove build-time dependency on git.
3646 (("failifexecutionfails=\"true\"")
3647 "failifexecutionfails=\"false\"")
3648 ;; Use our htsjdk.
3649 (("depends=\"compile-htsjdk, ")
3650 "depends=\"")
3651 (("depends=\"compile-htsjdk-tests, ")
3652 "depends=\"")
3653 ;; Build picard-lib.jar before building picard.jar
3654 (("name=\"picard-jar\" depends=\"" line)
3655 (string-append line "picard-lib-jar, ")))
3656 #t))))
3657 (build-system ant-build-system)
3658 (arguments
3659 `(#:build-target "picard-jar"
3660 #:test-target "test"
3661 ;; Tests require jacoco:coverage.
3662 #:tests? #f
3663 #:make-flags
3664 (list (string-append "-Dhtsjdk_lib_dir="
3665 (assoc-ref %build-inputs "java-htsjdk")
3666 "/share/java/htsjdk/")
3667 "-Dhtsjdk-classes=dist/tmp"
3668 (string-append "-Dhtsjdk-version="
3669 ,(package-version java-htsjdk)))
3670 #:jdk ,icedtea-8
3671 #:phases
3672 (modify-phases %standard-phases
3673 ;; FIXME: this phase fails with "duplicate entry: htsjdk/samtools/AbstractBAMFileIndex$1.class"
3674 (delete 'generate-jar-indices)
3675 (add-after 'unpack 'use-our-htsjdk
3676 (lambda* (#:key inputs #:allow-other-keys)
3677 (substitute* "build.xml"
3678 (("\\$\\{htsjdk\\}/lib")
3679 (string-append (assoc-ref inputs "java-htsjdk")
3680 "/share/java/htsjdk/")))
3681 #t))
3682 (add-after 'unpack 'make-test-target-independent
3683 (lambda* (#:key inputs #:allow-other-keys)
3684 (substitute* "build.xml"
3685 (("name=\"test\" depends=\"compile, ")
3686 "name=\"test\" depends=\""))
3687 #t))
3688 (replace 'install (install-jars "dist")))))
3689 (inputs
3690 `(("java-htsjdk" ,java-htsjdk)
3691 ("java-guava" ,java-guava)))
3692 (native-inputs
3693 `(("java-testng" ,java-testng)))
3694 (home-page "http://broadinstitute.github.io/picard/")
3695 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
3696 (description "Picard is a set of Java command line tools for manipulating
3697 high-throughput sequencing (HTS) data and formats. Picard is implemented
3698 using the HTSJDK Java library to support accessing file formats that are
3699 commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
3700 VCF.")
3701 (license license:expat)))
3702
3703 ;; This is needed for dropseq-tools
3704 (define-public java-picard-2.10.3
3705 (package
3706 (name "java-picard")
3707 (version "2.10.3")
3708 (source (origin
3709 (method git-fetch)
3710 (uri (git-reference
3711 (url "https://github.com/broadinstitute/picard.git")
3712 (commit version)))
3713 (file-name (string-append "java-picard-" version "-checkout"))
3714 (sha256
3715 (base32
3716 "1ajlx31l6i1k3y2rhnmgq07sz99g2czqfqgkr9mihmdjp3gwjhvi"))))
3717 (build-system ant-build-system)
3718 (arguments
3719 `(#:jar-name "picard.jar"
3720 ;; Tests require jacoco:coverage.
3721 #:tests? #f
3722 #:jdk ,icedtea-8
3723 #:main-class "picard.cmdline.PicardCommandLine"
3724 #:modules ((guix build ant-build-system)
3725 (guix build utils)
3726 (guix build java-utils)
3727 (sxml simple)
3728 (sxml transform)
3729 (sxml xpath))
3730 #:phases
3731 (modify-phases %standard-phases
3732 ;; FIXME: this phase fails with "duplicate entry: htsjdk/samtools/AbstractBAMFileIndex$1.class"
3733 (delete 'generate-jar-indices)
3734 (add-after 'unpack 'remove-useless-build.xml
3735 (lambda _ (delete-file "build.xml") #t))
3736 ;; This is necessary to ensure that htsjdk is found when using
3737 ;; picard.jar as an executable.
3738 (add-before 'build 'edit-classpath-in-manifest
3739 (lambda* (#:key inputs #:allow-other-keys)
3740 (chmod "build.xml" #o664)
3741 (call-with-output-file "build.xml.new"
3742 (lambda (port)
3743 (sxml->xml
3744 (pre-post-order
3745 (with-input-from-file "build.xml"
3746 (lambda _ (xml->sxml #:trim-whitespace? #t)))
3747 `((target . ,(lambda (tag . kids)
3748 (let ((name ((sxpath '(name *text*))
3749 (car kids)))
3750 ;; FIXME: We're breaking the line
3751 ;; early with a dummy path to
3752 ;; ensure that the store reference
3753 ;; isn't broken apart and can still
3754 ;; be found by the reference
3755 ;; scanner.
3756 (msg (format #f
3757 "\
3758 Class-Path: /~a \
3759 ~a/share/java/htsjdk.jar${line.separator}${line.separator}"
3760 ;; maximum line length is 70
3761 (string-tabulate (const #\b) 57)
3762 (assoc-ref inputs "java-htsjdk"))))
3763 (if (member "manifest" name)
3764 `(,tag ,@kids
3765 (replaceregexp
3766 (@ (file "${manifest.file}")
3767 (match "\\r\\n\\r\\n")
3768 (replace "${line.separator}")))
3769 (echo
3770 (@ (message ,msg)
3771 (file "${manifest.file}")
3772 (append "true"))))
3773 `(,tag ,@kids)))))
3774 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
3775 (*text* . ,(lambda (_ txt) txt))))
3776 port)))
3777 (rename-file "build.xml.new" "build.xml")
3778 #t)))))
3779 (propagated-inputs
3780 `(("java-htsjdk" ,java-htsjdk-2.10.1)))
3781 (native-inputs
3782 `(("java-testng" ,java-testng)
3783 ("java-guava" ,java-guava)))
3784 (home-page "http://broadinstitute.github.io/picard/")
3785 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
3786 (description "Picard is a set of Java command line tools for manipulating
3787 high-throughput sequencing (HTS) data and formats. Picard is implemented
3788 using the HTSJDK Java library to support accessing file formats that are
3789 commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
3790 VCF.")
3791 (license license:expat)))
3792
3793 ;; This is the last version of Picard to provide net.sf.samtools
3794 (define-public java-picard-1.113
3795 (package (inherit java-picard)
3796 (name "java-picard")
3797 (version "1.113")
3798 (source (origin
3799 (method git-fetch)
3800 (uri (git-reference
3801 (url "https://github.com/broadinstitute/picard.git")
3802 (commit version)))
3803 (file-name (string-append "java-picard-" version "-checkout"))
3804 (sha256
3805 (base32
3806 "0lkpvin2fz3hhly4l02kk56fqy8lmlgyzr9kmvljk6ry6l1hw973"))
3807 (modules '((guix build utils)))
3808 (snippet
3809 '(begin
3810 ;; Delete pre-built binaries.
3811 (delete-file-recursively "lib")
3812 (mkdir-p "lib")
3813 #t))))
3814 (build-system ant-build-system)
3815 (arguments
3816 `(#:build-target "picard-jar"
3817 #:test-target "test"
3818 ;; FIXME: the class path at test time is wrong.
3819 ;; [testng] Error: A JNI error has occurred, please check your installation and try again
3820 ;; [testng] Exception in thread "main" java.lang.NoClassDefFoundError: com/beust/jcommander/ParameterException
3821 #:tests? #f
3822 #:jdk ,icedtea-8
3823 ;; This is only used for tests.
3824 #:make-flags
3825 (list "-Dsamjdk.intel_deflater_so_path=lib/jni/libIntelDeflater.so")
3826 #:phases
3827 (modify-phases %standard-phases
3828 ;; FIXME: This phase fails.
3829 (delete 'generate-jar-indices)
3830 ;; Do not use bundled ant bzip2.
3831 (add-after 'unpack 'use-ant-bzip
3832 (lambda* (#:key inputs #:allow-other-keys)
3833 (substitute* "build.xml"
3834 (("\\$\\{lib\\}/apache-ant-1.8.2-bzip2.jar")
3835 (string-append (assoc-ref inputs "ant")
3836 "/lib/ant.jar")))
3837 #t))
3838 (add-after 'unpack 'make-test-target-independent
3839 (lambda* (#:key inputs #:allow-other-keys)
3840 (substitute* "build.xml"
3841 (("name=\"test\" depends=\"compile, ")
3842 "name=\"test\" depends=\"compile-tests, ")
3843 (("name=\"compile\" depends=\"compile-src, compile-tests\"")
3844 "name=\"compile\" depends=\"compile-src\""))
3845 #t))
3846 (add-after 'unpack 'fix-deflater-path
3847 (lambda* (#:key outputs #:allow-other-keys)
3848 (substitute* "src/java/net/sf/samtools/Defaults.java"
3849 (("getStringProperty\\(\"intel_deflater_so_path\", null\\)")
3850 (string-append "getStringProperty(\"intel_deflater_so_path\", \""
3851 (assoc-ref outputs "out")
3852 "/lib/jni/libIntelDeflater.so"
3853 "\")")))
3854 #t))
3855 ;; Build the deflater library, because we've previously deleted the
3856 ;; pre-built one. This can only be built with access to the JDK
3857 ;; sources.
3858 (add-after 'build 'build-jni
3859 (lambda* (#:key inputs #:allow-other-keys)
3860 (mkdir-p "lib/jni")
3861 (mkdir-p "jdk-src")
3862 (invoke "tar" "--strip-components=1" "-C" "jdk-src"
3863 "-xf" (assoc-ref inputs "jdk-src"))
3864 (invoke "javah" "-jni"
3865 "-classpath" "classes"
3866 "-d" "lib/"
3867 "net.sf.samtools.util.zip.IntelDeflater")
3868 (with-directory-excursion "src/c/inteldeflater"
3869 (invoke "gcc" "-I../../../lib" "-I."
3870 (string-append "-I" (assoc-ref inputs "jdk")
3871 "/include/linux")
3872 "-I../../../jdk-src/src/share/native/common/"
3873 "-I../../../jdk-src/src/solaris/native/common/"
3874 "-c" "-O3" "-fPIC" "IntelDeflater.c")
3875 (invoke "gcc" "-shared"
3876 "-o" "../../../lib/jni/libIntelDeflater.so"
3877 "IntelDeflater.o" "-lz" "-lstdc++"))
3878 #t))
3879 ;; We can only build everything else after building the JNI library.
3880 (add-after 'build-jni 'build-rest
3881 (lambda* (#:key make-flags #:allow-other-keys)
3882 (apply invoke `("ant" "all" ,@make-flags))
3883 #t))
3884 (add-before 'build 'set-JAVA6_HOME
3885 (lambda _
3886 (setenv "JAVA6_HOME" (getenv "JAVA_HOME"))
3887 #t))
3888 (replace 'install (install-jars "dist"))
3889 (add-after 'install 'install-jni-lib
3890 (lambda* (#:key outputs #:allow-other-keys)
3891 (let ((jni (string-append (assoc-ref outputs "out")
3892 "/lib/jni")))
3893 (mkdir-p jni)
3894 (install-file "lib/jni/libIntelDeflater.so" jni)
3895 #t))))))
3896 (inputs
3897 `(("java-snappy-1" ,java-snappy-1)
3898 ("java-commons-jexl-2" ,java-commons-jexl-2)
3899 ("java-cofoja" ,java-cofoja)
3900 ("ant" ,ant) ; for bzip2 support at runtime
3901 ("zlib" ,zlib)))
3902 (native-inputs
3903 `(("ant-apache-bcel" ,ant-apache-bcel)
3904 ("ant-junit" ,ant-junit)
3905 ("java-testng" ,java-testng)
3906 ("java-commons-bcel" ,java-commons-bcel)
3907 ("java-jcommander" ,java-jcommander)
3908 ("jdk" ,icedtea-8 "jdk")
3909 ("jdk-src" ,(car (assoc-ref (package-native-inputs icedtea-8) "jdk-drop")))))))
3910
3911 (define-public fastqc
3912 (package
3913 (name "fastqc")
3914 (version "0.11.5")
3915 (source
3916 (origin
3917 (method url-fetch)
3918 (uri (string-append "http://www.bioinformatics.babraham.ac.uk/"
3919 "projects/fastqc/fastqc_v"
3920 version "_source.zip"))
3921 (sha256
3922 (base32
3923 "18rrlkhcrxvvvlapch4dpj6xc6mpayzys8qfppybi8jrpgx5cc5f"))))
3924 (build-system ant-build-system)
3925 (arguments
3926 `(#:tests? #f ; there are no tests
3927 #:build-target "build"
3928 #:phases
3929 (modify-phases %standard-phases
3930 (add-after 'unpack 'fix-dependencies
3931 (lambda* (#:key inputs #:allow-other-keys)
3932 (substitute* "build.xml"
3933 (("jbzip2-0.9.jar")
3934 (string-append (assoc-ref inputs "java-jbzip2")
3935 "/share/java/jbzip2.jar"))
3936 (("sam-1.103.jar")
3937 (string-append (assoc-ref inputs "java-picard-1.113")
3938 "/share/java/sam-1.112.jar"))
3939 (("cisd-jhdf5.jar")
3940 (string-append (assoc-ref inputs "java-cisd-jhdf5")
3941 "/share/java/sis-jhdf5.jar")))
3942 #t))
3943 ;; There is no installation target
3944 (replace 'install
3945 (lambda* (#:key inputs outputs #:allow-other-keys)
3946 (let* ((out (assoc-ref outputs "out"))
3947 (bin (string-append out "/bin"))
3948 (share (string-append out "/share/fastqc/"))
3949 (exe (string-append share "/fastqc")))
3950 (for-each mkdir-p (list bin share))
3951 (copy-recursively "bin" share)
3952 (substitute* exe
3953 (("my \\$java_bin = 'java';")
3954 (string-append "my $java_bin = '"
3955 (assoc-ref inputs "java")
3956 "/bin/java';")))
3957 (chmod exe #o555)
3958 (symlink exe (string-append bin "/fastqc"))
3959 #t))))))
3960 (inputs
3961 `(("java" ,icedtea)
3962 ("perl" ,perl) ; needed for the wrapper script
3963 ("java-cisd-jhdf5" ,java-cisd-jhdf5)
3964 ("java-picard-1.113" ,java-picard-1.113)
3965 ("java-jbzip2" ,java-jbzip2)))
3966 (native-inputs
3967 `(("unzip" ,unzip)))
3968 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/fastqc/")
3969 (synopsis "Quality control tool for high throughput sequence data")
3970 (description
3971 "FastQC aims to provide a simple way to do some quality control
3972 checks on raw sequence data coming from high throughput sequencing
3973 pipelines. It provides a modular set of analyses which you can use to
3974 give a quick impression of whether your data has any problems of which
3975 you should be aware before doing any further analysis.
3976
3977 The main functions of FastQC are:
3978
3979 @itemize
3980 @item Import of data from BAM, SAM or FastQ files (any variant);
3981 @item Providing a quick overview to tell you in which areas there may
3982 be problems;
3983 @item Summary graphs and tables to quickly assess your data;
3984 @item Export of results to an HTML based permanent report;
3985 @item Offline operation to allow automated generation of reports
3986 without running the interactive application.
3987 @end itemize\n")
3988 (license license:gpl3+)))
3989
3990 (define-public fastp
3991 (package
3992 (name "fastp")
3993 (version "0.14.1")
3994 (source
3995 (origin
3996 (method git-fetch)
3997 (uri (git-reference
3998 (url "https://github.com/OpenGene/fastp.git")
3999 (commit (string-append "v" version))))
4000 (file-name (git-file-name name version))
4001 (sha256
4002 (base32
4003 "1r6ms5zbf5rps4rgp4z73nczadl00b5rqylw8f684isfz27dp0xh"))))
4004 (build-system gnu-build-system)
4005 (arguments
4006 `(#:tests? #f ; there are none
4007 #:make-flags
4008 (list (string-append "BINDIR=" (assoc-ref %outputs "out") "/bin"))
4009 #:phases
4010 (modify-phases %standard-phases
4011 (delete 'configure)
4012 (add-before 'install 'create-target-dir
4013 (lambda* (#:key outputs #:allow-other-keys)
4014 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
4015 #t)))))
4016 (inputs
4017 `(("zlib" ,zlib)))
4018 (home-page "https://github.com/OpenGene/fastp/")
4019 (synopsis "All-in-one FastQ preprocessor")
4020 (description
4021 "Fastp is a tool designed to provide fast all-in-one preprocessing for
4022 FastQ files. This tool has multi-threading support to afford high
4023 performance.")
4024 (license license:expat)))
4025
4026 (define-public htslib
4027 (package
4028 (name "htslib")
4029 (version "1.9")
4030 (source (origin
4031 (method url-fetch)
4032 (uri (string-append
4033 "https://github.com/samtools/htslib/releases/download/"
4034 version "/htslib-" version ".tar.bz2"))
4035 (sha256
4036 (base32
4037 "16ljv43sc3fxmv63w7b2ff8m1s7h89xhazwmbm1bicz8axq8fjz0"))))
4038 (build-system gnu-build-system)
4039 (inputs
4040 `(("curl" ,curl)
4041 ("openssl" ,openssl)))
4042 ;; This is referred to in the pkg-config file as a required library.
4043 (propagated-inputs
4044 `(("zlib" ,zlib)))
4045 (native-inputs
4046 `(("perl" ,perl)))
4047 (home-page "http://www.htslib.org")
4048 (synopsis "C library for reading/writing high-throughput sequencing data")
4049 (description
4050 "HTSlib is a C library for reading/writing high-throughput sequencing
4051 data. It also provides the @command{bgzip}, @command{htsfile}, and
4052 @command{tabix} utilities.")
4053 ;; Files under cram/ are released under the modified BSD license;
4054 ;; the rest is released under the Expat license
4055 (license (list license:expat license:bsd-3))))
4056
4057 ;; This package should be removed once no packages rely upon it.
4058 (define htslib-1.3
4059 (package
4060 (inherit htslib)
4061 (version "1.3.1")
4062 (source (origin
4063 (method url-fetch)
4064 (uri (string-append
4065 "https://github.com/samtools/htslib/releases/download/"
4066 version "/htslib-" version ".tar.bz2"))
4067 (sha256
4068 (base32
4069 "1rja282fwdc25ql6izkhdyh8ppw8x2fs0w0js78zgkmqjlikmma9"))))))
4070
4071 (define-public idr
4072 (package
4073 (name "idr")
4074 (version "2.0.3")
4075 (source (origin
4076 (method git-fetch)
4077 (uri (git-reference
4078 (url "https://github.com/nboley/idr.git")
4079 (commit version)))
4080 (file-name (git-file-name name version))
4081 (sha256
4082 (base32
4083 "04j876h6z444v2q79drxx283d3k5snd72kj895wbalnl42206x9g"))
4084 ;; Delete generated C code.
4085 (snippet
4086 '(begin (delete-file "idr/inv_cdf.c") #t))))
4087 (build-system python-build-system)
4088 ;; There is only one test ("test_inv_cdf.py") and it tests features that
4089 ;; are no longer part of this package. It also asserts False, which
4090 ;; causes the tests to always fail.
4091 (arguments `(#:tests? #f))
4092 (propagated-inputs
4093 `(("python-scipy" ,python-scipy)
4094 ("python-sympy" ,python-sympy)
4095 ("python-numpy" ,python-numpy)
4096 ("python-matplotlib" ,python-matplotlib)))
4097 (native-inputs
4098 `(("python-cython" ,python-cython)))
4099 (home-page "https://github.com/nboley/idr")
4100 (synopsis "Tool to measure the irreproducible discovery rate (IDR)")
4101 (description
4102 "The IDR (Irreproducible Discovery Rate) framework is a unified approach
4103 to measure the reproducibility of findings identified from replicate
4104 experiments and provide highly stable thresholds based on reproducibility.")
4105 (license license:gpl2+)))
4106
4107 (define-public jellyfish
4108 (package
4109 (name "jellyfish")
4110 (version "2.2.10")
4111 (source (origin
4112 (method url-fetch)
4113 (uri (string-append "https://github.com/gmarcais/Jellyfish/"
4114 "releases/download/v" version
4115 "/jellyfish-" version ".tar.gz"))
4116 (sha256
4117 (base32
4118 "1k4pc3fvv6w1km2yph4m5sd78fbxp21d6xyzgmy0gjihzc6mb249"))))
4119 (build-system gnu-build-system)
4120 (outputs '("out" ;for library
4121 "ruby" ;for Ruby bindings
4122 "python")) ;for Python bindings
4123 (arguments
4124 `(#:configure-flags
4125 (list (string-append "--enable-ruby-binding="
4126 (assoc-ref %outputs "ruby"))
4127 (string-append "--enable-python-binding="
4128 (assoc-ref %outputs "python")))
4129 #:phases
4130 (modify-phases %standard-phases
4131 (add-before 'check 'set-SHELL-variable
4132 (lambda _
4133 ;; generator_manager.hpp either uses /bin/sh or $SHELL
4134 ;; to run tests.
4135 (setenv "SHELL" (which "bash"))
4136 #t)))))
4137 (native-inputs
4138 `(("bc" ,bc)
4139 ("time" ,time)
4140 ("ruby" ,ruby)
4141 ("python" ,python-2)
4142 ("pkg-config" ,pkg-config)))
4143 (inputs
4144 `(("htslib" ,htslib)))
4145 (synopsis "Tool for fast counting of k-mers in DNA")
4146 (description
4147 "Jellyfish is a tool for fast, memory-efficient counting of k-mers in
4148 DNA. A k-mer is a substring of length k, and counting the occurrences of all
4149 such substrings is a central step in many analyses of DNA sequence. Jellyfish
4150 is a command-line program that reads FASTA and multi-FASTA files containing
4151 DNA sequences. It outputs its k-mer counts in a binary format, which can be
4152 translated into a human-readable text format using the @code{jellyfish dump}
4153 command, or queried for specific k-mers with @code{jellyfish query}.")
4154 (home-page "http://www.genome.umd.edu/jellyfish.html")
4155 ;; JELLYFISH seems to be 64-bit only.
4156 (supported-systems '("x86_64-linux" "aarch64-linux" "mips64el-linux"))
4157 ;; The combined work is published under the GPLv3 or later. Individual
4158 ;; files such as lib/jsoncpp.cpp are released under the Expat license.
4159 (license (list license:gpl3+ license:expat))))
4160
4161 (define-public khmer
4162 (package
4163 (name "khmer")
4164 (version "3.0.0a3")
4165 (source
4166 (origin
4167 (method git-fetch)
4168 (uri (git-reference
4169 (url "https://github.com/dib-lab/khmer.git")
4170 (commit (string-append "v" version))))
4171 (file-name (git-file-name name version))
4172 (sha256
4173 (base32
4174 "01l4jczglkl7yfhgvzx8j0df7k54bk1r8sli9ll16i1mis0d8f37"))
4175 (modules '((guix build utils)))
4176 (snippet
4177 '(begin
4178 ;; Delete bundled libraries. We do not replace the bundled seqan
4179 ;; as it is a modified subset of the old version 1.4.1.
4180 ;;
4181 ;; We do not replace the bundled MurmurHash as the canonical
4182 ;; repository for this code 'SMHasher' is unsuitable for providing
4183 ;; a library. See
4184 ;; https://lists.gnu.org/archive/html/guix-devel/2016-06/msg00977.html
4185 (delete-file-recursively "third-party/zlib")
4186 (delete-file-recursively "third-party/bzip2")
4187 (delete-file-recursively "third-party/seqan")
4188 (substitute* "setup.cfg"
4189 (("# libraries = z,bz2")
4190 "libraries = z,bz2")
4191 (("include:third-party/zlib:third-party/bzip2")
4192 "include:"))
4193 #t))))
4194 (build-system python-build-system)
4195 (arguments
4196 `(#:phases
4197 (modify-phases %standard-phases
4198 (add-after 'unpack 'set-cc
4199 (lambda _ (setenv "CC" "gcc") #t))
4200
4201 (add-before 'reset-gzip-timestamps 'make-files-writable
4202 (lambda* (#:key outputs #:allow-other-keys)
4203 ;; Make sure .gz files are writable so that the
4204 ;; 'reset-gzip-timestamps' phase can do its work.
4205 (let ((out (assoc-ref outputs "out")))
4206 (for-each make-file-writable
4207 (find-files out "\\.gz$"))
4208 #t))))))
4209 (native-inputs
4210 `(("python-cython" ,python-cython)
4211 ("python-pytest" ,python-pytest)
4212 ("python-pytest-runner" ,python-pytest-runner)))
4213 (inputs
4214 `(("zlib" ,zlib)
4215 ("bzip2" ,bzip2)
4216 ("seqan" ,seqan-1)
4217 ("python-screed" ,python-screed)
4218 ("python-bz2file" ,python-bz2file)))
4219 (home-page "https://khmer.readthedocs.org/")
4220 (synopsis "K-mer counting, filtering and graph traversal library")
4221 (description "The khmer software is a set of command-line tools for
4222 working with DNA shotgun sequencing data from genomes, transcriptomes,
4223 metagenomes and single cells. Khmer can make de novo assemblies faster, and
4224 sometimes better. Khmer can also identify and fix problems with shotgun
4225 data.")
4226 ;; When building on i686, armhf and mips64el, we get the following error:
4227 ;; error: ['khmer', 'khmer.tests', 'oxli'] require 64-bit operating system
4228 (supported-systems '("x86_64-linux" "aarch64-linux"))
4229 (license license:bsd-3)))
4230
4231 (define-public kaiju
4232 (package
4233 (name "kaiju")
4234 (version "1.6.3")
4235 (source (origin
4236 (method git-fetch)
4237 (uri (git-reference
4238 (url "https://github.com/bioinformatics-centre/kaiju")
4239 (commit (string-append "v" version))))
4240 (file-name (git-file-name name version))
4241 (sha256
4242 (base32
4243 "119pzi0ddzv9mjg4wwa6han0cwr3k3ssn7kirvsjfcq05mi5ka0x"))))
4244 (build-system gnu-build-system)
4245 (arguments
4246 `(#:tests? #f ; There are no tests.
4247 #:phases
4248 (modify-phases %standard-phases
4249 (delete 'configure)
4250 (add-before 'build 'move-to-src-dir
4251 (lambda _ (chdir "src") #t))
4252 (replace 'install
4253 (lambda* (#:key inputs outputs #:allow-other-keys)
4254 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
4255 (mkdir-p bin)
4256 (chdir "..")
4257 (copy-recursively "bin" bin))
4258 #t)))))
4259 (inputs
4260 `(("perl" ,perl)
4261 ("zlib" ,zlib)))
4262 (home-page "http://kaiju.binf.ku.dk/")
4263 (synopsis "Fast and sensitive taxonomic classification for metagenomics")
4264 (description "Kaiju is a program for sensitive taxonomic classification
4265 of high-throughput sequencing reads from metagenomic whole genome sequencing
4266 experiments.")
4267 (license license:gpl3+)))
4268
4269 (define-public macs
4270 (package
4271 (name "macs")
4272 (version "2.1.1.20160309")
4273 (source (origin
4274 (method url-fetch)
4275 (uri (pypi-uri "MACS2" version))
4276 (sha256
4277 (base32
4278 "09ixspd1vcqmz1c81ih70xs4m7qml2iy5vyx1y74zww3iy1vl210"))))
4279 (build-system python-build-system)
4280 (arguments
4281 `(#:python ,python-2 ; only compatible with Python 2.7
4282 #:tests? #f)) ; no test target
4283 (inputs
4284 `(("python-numpy" ,python2-numpy)))
4285 (home-page "https://github.com/taoliu/MACS/")
4286 (synopsis "Model based analysis for ChIP-Seq data")
4287 (description
4288 "MACS is an implementation of a ChIP-Seq analysis algorithm for
4289 identifying transcript factor binding sites named Model-based Analysis of
4290 ChIP-Seq (MACS). MACS captures the influence of genome complexity to evaluate
4291 the significance of enriched ChIP regions and it improves the spatial
4292 resolution of binding sites through combining the information of both
4293 sequencing tag position and orientation.")
4294 (license license:bsd-3)))
4295
4296 (define-public mafft
4297 (package
4298 (name "mafft")
4299 (version "7.394")
4300 (source (origin
4301 (method url-fetch)
4302 (uri (string-append
4303 "https://mafft.cbrc.jp/alignment/software/mafft-" version
4304 "-without-extensions-src.tgz"))
4305 (file-name (string-append name "-" version ".tgz"))
4306 (sha256
4307 (base32
4308 "0bacjkxfg944p5khhyh5rd4y7wkjc9qk4v2jjj442sqlq0f8ar7b"))))
4309 (build-system gnu-build-system)
4310 (arguments
4311 `(#:tests? #f ; no automated tests, though there are tests in the read me
4312 #:make-flags (let ((out (assoc-ref %outputs "out")))
4313 (list (string-append "PREFIX=" out)
4314 (string-append "BINDIR="
4315 (string-append out "/bin"))))
4316 #:phases
4317 (modify-phases %standard-phases
4318 (add-after 'unpack 'enter-dir
4319 (lambda _ (chdir "core") #t))
4320 (add-after 'enter-dir 'patch-makefile
4321 (lambda _
4322 ;; on advice from the MAFFT authors, there is no need to
4323 ;; distribute mafft-profile, mafft-distance, or
4324 ;; mafft-homologs.rb as they are too "specialised".
4325 (substitute* "Makefile"
4326 ;; remove mafft-homologs.rb from SCRIPTS
4327 (("^SCRIPTS = mafft mafft-homologs.rb")
4328 "SCRIPTS = mafft")
4329 ;; remove mafft-homologs from MANPAGES
4330 (("^MANPAGES = mafft.1 mafft-homologs.1")
4331 "MANPAGES = mafft.1")
4332 ;; remove mafft-distance from PROGS
4333 (("^PROGS = dvtditr dndfast7 dndblast sextet5 mafft-distance")
4334 "PROGS = dvtditr dndfast7 dndblast sextet5")
4335 ;; remove mafft-profile from PROGS
4336 (("splittbfast disttbfast tbfast mafft-profile 2cl mccaskillwrap")
4337 "splittbfast disttbfast tbfast f2cl mccaskillwrap")
4338 (("^rm -f mafft-profile mafft-profile.exe") "#")
4339 (("^rm -f mafft-distance mafft-distance.exe") ")#")
4340 ;; do not install MAN pages in libexec folder
4341 (("^\t\\$\\(INSTALL\\) -m 644 \\$\\(MANPAGES\\) \
4342 \\$\\(DESTDIR\\)\\$\\(LIBDIR\\)") "#"))
4343 #t))
4344 (add-after 'enter-dir 'patch-paths
4345 (lambda* (#:key inputs #:allow-other-keys)
4346 (substitute* '("pairash.c"
4347 "mafft.tmpl")
4348 (("perl") (which "perl"))
4349 (("([\"`| ])awk" _ prefix)
4350 (string-append prefix (which "awk")))
4351 (("grep") (which "grep")))
4352 #t))
4353 (delete 'configure)
4354 (add-after 'install 'wrap-programs
4355 (lambda* (#:key outputs #:allow-other-keys)
4356 (let* ((out (assoc-ref outputs "out"))
4357 (bin (string-append out "/bin"))
4358 (path (string-append
4359 (assoc-ref %build-inputs "coreutils") "/bin:")))
4360 (for-each (lambda (file)
4361 (wrap-program file
4362 `("PATH" ":" prefix (,path))))
4363 (find-files bin)))
4364 #t)))))
4365 (inputs
4366 `(("perl" ,perl)
4367 ("ruby" ,ruby)
4368 ("gawk" ,gawk)
4369 ("grep" ,grep)
4370 ("coreutils" ,coreutils)))
4371 (home-page "http://mafft.cbrc.jp/alignment/software/")
4372 (synopsis "Multiple sequence alignment program")
4373 (description
4374 "MAFFT offers a range of multiple alignment methods for nucleotide and
4375 protein sequences. For instance, it offers L-INS-i (accurate; for alignment
4376 of <~200 sequences) and FFT-NS-2 (fast; for alignment of <~30,000
4377 sequences).")
4378 (license (license:non-copyleft
4379 "http://mafft.cbrc.jp/alignment/software/license.txt"
4380 "BSD-3 with different formatting"))))
4381
4382 (define-public mash
4383 (package
4384 (name "mash")
4385 (version "2.1")
4386 (source (origin
4387 (method git-fetch)
4388 (uri (git-reference
4389 (url "https://github.com/marbl/mash.git")
4390 (commit (string-append "v" version))))
4391 (file-name (git-file-name name version))
4392 (sha256
4393 (base32
4394 "049hwcc059p2fd9vwndn63laifvvsi0wmv84i6y1fr79k15dxwy6"))
4395 (modules '((guix build utils)))
4396 (snippet
4397 '(begin
4398 ;; Delete bundled kseq.
4399 ;; TODO: Also delete bundled murmurhash and open bloom filter.
4400 (delete-file "src/mash/kseq.h")
4401 #t))))
4402 (build-system gnu-build-system)
4403 (arguments
4404 `(#:tests? #f ; No tests.
4405 #:configure-flags
4406 (list
4407 (string-append "--with-capnp=" (assoc-ref %build-inputs "capnproto"))
4408 (string-append "--with-gsl=" (assoc-ref %build-inputs "gsl")))
4409 #:make-flags (list "CC=gcc")
4410 #:phases
4411 (modify-phases %standard-phases
4412 (add-after 'unpack 'fix-includes
4413 (lambda _
4414 (substitute* '("src/mash/Sketch.cpp"
4415 "src/mash/CommandFind.cpp"
4416 "src/mash/CommandScreen.cpp")
4417 (("^#include \"kseq\\.h\"")
4418 "#include \"htslib/kseq.h\""))
4419 #t))
4420 (add-after 'fix-includes 'use-c++14
4421 (lambda _
4422 ;; capnproto 0.7 requires c++14 to build
4423 (substitute* "configure.ac"
4424 (("c\\+\\+11") "c++14"))
4425 (substitute* "Makefile.in"
4426 (("c\\+\\+11") "c++14"))
4427 #t)))))
4428 (native-inputs
4429 `(("autoconf" ,autoconf)
4430 ;; Capnproto and htslib are statically embedded in the final
4431 ;; application. Therefore we also list their licenses, below.
4432 ("capnproto" ,capnproto)
4433 ("htslib" ,htslib)))
4434 (inputs
4435 `(("gsl" ,gsl)
4436 ("zlib" ,zlib)))
4437 (supported-systems '("x86_64-linux"))
4438 (home-page "https://mash.readthedocs.io")
4439 (synopsis "Fast genome and metagenome distance estimation using MinHash")
4440 (description "Mash is a fast sequence distance estimator that uses the
4441 MinHash algorithm and is designed to work with genomes and metagenomes in the
4442 form of assemblies or reads.")
4443 (license (list license:bsd-3 ; Mash
4444 license:expat ; HTSlib and capnproto
4445 license:public-domain ; MurmurHash 3
4446 license:cpl1.0)))) ; Open Bloom Filter
4447
4448 (define-public metabat
4449 (package
4450 (name "metabat")
4451 (version "2.12.1")
4452 (source
4453 (origin
4454 (method git-fetch)
4455 (uri (git-reference
4456 (url "https://bitbucket.org/berkeleylab/metabat.git")
4457 (commit (string-append "v" version))))
4458 (file-name (git-file-name name version))
4459 (sha256
4460 (base32
4461 "0hyg2smw1nz69mfvjpk45xyyychmda92c80a0cv7baji84ri4iyn"))
4462 (patches (search-patches "metabat-fix-compilation.patch"))))
4463 (build-system scons-build-system)
4464 (arguments
4465 `(#:scons ,scons-python2
4466 #:scons-flags
4467 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
4468 (string-append "BOOST_ROOT=" (assoc-ref %build-inputs "boost")))
4469 #:tests? #f ;; Tests are run during the build phase.
4470 #:phases
4471 (modify-phases %standard-phases
4472 (add-after 'unpack 'fix-includes
4473 (lambda _
4474 (substitute* "src/BamUtils.h"
4475 (("^#include \"bam/bam\\.h\"")
4476 "#include \"samtools/bam.h\"")
4477 (("^#include \"bam/sam\\.h\"")
4478 "#include \"samtools/sam.h\""))
4479 (substitute* "src/KseqReader.h"
4480 (("^#include \"bam/kseq\\.h\"")
4481 "#include \"htslib/kseq.h\""))
4482 #t))
4483 (add-after 'unpack 'fix-scons
4484 (lambda* (#:key inputs #:allow-other-keys)
4485 (substitute* "SConstruct"
4486 (("^htslib_dir += 'samtools'")
4487 (string-append "htslib_dir = '"
4488 (assoc-ref inputs "htslib")
4489 "'"))
4490 (("^samtools_dir = 'samtools'")
4491 (string-append "samtools_dir = '"
4492 (assoc-ref inputs "samtools")
4493 "'"))
4494 (("^findStaticOrShared\\('bam', hts_lib")
4495 (string-append "findStaticOrShared('bam', '"
4496 (assoc-ref inputs "samtools")
4497 "/lib'"))
4498 ;; Do not distribute README.
4499 (("^env\\.Install\\(idir_prefix, 'README\\.md'\\)") ""))
4500 #t)))))
4501 (inputs
4502 `(("zlib" ,zlib)
4503 ("perl" ,perl)
4504 ("samtools" ,samtools)
4505 ("htslib" ,htslib)
4506 ("boost" ,boost)))
4507 (home-page "https://bitbucket.org/berkeleylab/metabat")
4508 (synopsis
4509 "Reconstruction of single genomes from complex microbial communities")
4510 (description
4511 "Grouping large genomic fragments assembled from shotgun metagenomic
4512 sequences to deconvolute complex microbial communities, or metagenome binning,
4513 enables the study of individual organisms and their interactions. MetaBAT is
4514 an automated metagenome binning software, which integrates empirical
4515 probabilistic distances of genome abundance and tetranucleotide frequency.")
4516 ;; The source code contains inline assembly.
4517 (supported-systems '("x86_64-linux" "i686-linux"))
4518 (license (license:non-copyleft "file://license.txt"
4519 "See license.txt in the distribution."))))
4520
4521 (define-public minced
4522 (package
4523 (name "minced")
4524 (version "0.3.2")
4525 (source (origin
4526 (method git-fetch)
4527 (uri (git-reference
4528 (url "https://github.com/ctSkennerton/minced.git")
4529 (commit version)))
4530 (file-name (git-file-name name version))
4531 (sha256
4532 (base32
4533 "1f5h9him0gd355cnx7p6pnxpknhckd4g0v62mg8zyhfbx9as25fv"))))
4534 (build-system gnu-build-system)
4535 (arguments
4536 `(#:test-target "test"
4537 #:phases
4538 (modify-phases %standard-phases
4539 (delete 'configure)
4540 (add-before 'check 'fix-test
4541 (lambda _
4542 ;; Fix test for latest version.
4543 (substitute* "t/Aquifex_aeolicus_VF5.expected"
4544 (("minced:0.1.6") "minced:0.2.0"))
4545 #t))
4546 (replace 'install ; No install target.
4547 (lambda* (#:key inputs outputs #:allow-other-keys)
4548 (let* ((out (assoc-ref outputs "out"))
4549 (bin (string-append out "/bin"))
4550 (wrapper (string-append bin "/minced")))
4551 ;; Minced comes with a wrapper script that tries to figure out where
4552 ;; it is located before running the JAR. Since these paths are known
4553 ;; to us, we build our own wrapper to avoid coreutils dependency.
4554 (install-file "minced.jar" bin)
4555 (with-output-to-file wrapper
4556 (lambda _
4557 (display
4558 (string-append
4559 "#!" (assoc-ref inputs "bash") "/bin/sh\n\n"
4560 (assoc-ref inputs "jre") "/bin/java -jar "
4561 bin "/minced.jar \"$@\"\n"))))
4562 (chmod wrapper #o555))
4563 #t)))))
4564 (native-inputs
4565 `(("jdk" ,icedtea "jdk")))
4566 (inputs
4567 `(("bash" ,bash)
4568 ("jre" ,icedtea "out")))
4569 (home-page "https://github.com/ctSkennerton/minced")
4570 (synopsis "Mining CRISPRs in Environmental Datasets")
4571 (description
4572 "MinCED is a program to find Clustered Regularly Interspaced Short
4573 Palindromic Repeats (CRISPRs) in DNA sequences. It can be used for
4574 unassembled metagenomic reads, but is mainly designed for full genomes and
4575 assembled metagenomic sequence.")
4576 (license license:gpl3+)))
4577
4578 (define-public miso
4579 (package
4580 (name "miso")
4581 (version "0.5.4")
4582 (source (origin
4583 (method url-fetch)
4584 (uri (pypi-uri "misopy" version))
4585 (sha256
4586 (base32
4587 "1z3x0vd8ma7pdrnywj7i3kgwl89sdkwrrn62zl7r5calqaq2hyip"))
4588 (modules '((guix build utils)))
4589 (snippet '(begin
4590 (substitute* "setup.py"
4591 ;; Use setuptools, or else the executables are not
4592 ;; installed.
4593 (("distutils.core") "setuptools")
4594 ;; use "gcc" instead of "cc" for compilation
4595 (("^defines")
4596 "cc.set_executables(
4597 compiler='gcc',
4598 compiler_so='gcc',
4599 linker_exe='gcc',
4600 linker_so='gcc -shared'); defines"))
4601 #t))))
4602 (build-system python-build-system)
4603 (arguments
4604 `(#:python ,python-2 ; only Python 2 is supported
4605 #:tests? #f)) ; no "test" target
4606 (inputs
4607 `(("samtools" ,samtools)
4608 ("python-numpy" ,python2-numpy)
4609 ("python-pysam" ,python2-pysam)
4610 ("python-scipy" ,python2-scipy)
4611 ("python-matplotlib" ,python2-matplotlib)))
4612 (native-inputs
4613 `(("python-mock" ,python2-mock) ;for tests
4614 ("python-pytz" ,python2-pytz))) ;for tests
4615 (home-page "http://genes.mit.edu/burgelab/miso/index.html")
4616 (synopsis "Mixture of Isoforms model for RNA-Seq isoform quantitation")
4617 (description
4618 "MISO (Mixture-of-Isoforms) is a probabilistic framework that quantitates
4619 the expression level of alternatively spliced genes from RNA-Seq data, and
4620 identifies differentially regulated isoforms or exons across samples. By
4621 modeling the generative process by which reads are produced from isoforms in
4622 RNA-Seq, the MISO model uses Bayesian inference to compute the probability
4623 that a read originated from a particular isoform.")
4624 (license license:gpl2)))
4625
4626 (define-public muscle
4627 (package
4628 (name "muscle")
4629 (version "3.8.1551")
4630 (source (origin
4631 (method url-fetch/tarbomb)
4632 (uri (string-append
4633 "http://www.drive5.com/muscle/muscle_src_"
4634 version ".tar.gz"))
4635 (sha256
4636 (base32
4637 "0bj8kj7sdizy3987zx6w7axihk40fk8rn76mpbqqjcnd64i5a367"))))
4638 (build-system gnu-build-system)
4639 (arguments
4640 `(#:make-flags (list "LDLIBS = -lm")
4641 #:phases
4642 (modify-phases %standard-phases
4643 (delete 'configure)
4644 (replace 'check
4645 ;; There are no tests, so just test if it runs.
4646 (lambda _ (invoke "./muscle" "-version") #t))
4647 (replace 'install
4648 (lambda* (#:key outputs #:allow-other-keys)
4649 (let* ((out (assoc-ref outputs "out"))
4650 (bin (string-append out "/bin")))
4651 (install-file "muscle" bin)
4652 #t))))))
4653 (home-page "http://www.drive5.com/muscle")
4654 (synopsis "Multiple sequence alignment program")
4655 (description
4656 "MUSCLE aims to be a fast and accurate multiple sequence alignment
4657 program for nucleotide and protein sequences.")
4658 ;; License information found in 'muscle -h' and usage.cpp.
4659 (license license:public-domain)))
4660
4661 (define-public newick-utils
4662 ;; There are no recent releases so we package from git.
4663 (let ((commit "da121155a977197cab9fbb15953ca1b40b11eb87"))
4664 (package
4665 (name "newick-utils")
4666 (version (string-append "1.6-1." (string-take commit 8)))
4667 (source (origin
4668 (method git-fetch)
4669 (uri (git-reference
4670 (url "https://github.com/tjunier/newick_utils.git")
4671 (commit commit)))
4672 (file-name (string-append name "-" version "-checkout"))
4673 (sha256
4674 (base32
4675 "1hkw21rq1mwf7xp0rmbb2gqc0i6p11108m69i7mr7xcjl268pxnb"))))
4676 (build-system gnu-build-system)
4677 (inputs
4678 ;; XXX: TODO: Enable Lua and Guile bindings.
4679 ;; https://github.com/tjunier/newick_utils/issues/13
4680 `(("libxml2" ,libxml2)
4681 ("flex" ,flex)
4682 ("bison" ,bison)))
4683 (native-inputs
4684 `(("autoconf" ,autoconf)
4685 ("automake" ,automake)
4686 ("libtool" ,libtool)))
4687 (synopsis "Programs for working with newick format phylogenetic trees")
4688 (description
4689 "Newick-utils is a suite of utilities for processing phylogenetic trees
4690 in Newick format. Functions include re-rooting, extracting subtrees,
4691 trimming, pruning, condensing, drawing (ASCII graphics or SVG).")
4692 (home-page "https://github.com/tjunier/newick_utils")
4693 (license license:bsd-3))))
4694
4695 (define-public orfm
4696 (package
4697 (name "orfm")
4698 (version "0.7.1")
4699 (source (origin
4700 (method url-fetch)
4701 (uri (string-append
4702 "https://github.com/wwood/OrfM/releases/download/v"
4703 version "/orfm-" version ".tar.gz"))
4704 (sha256
4705 (base32
4706 "16iigyr2gd8x0imzkk1dr3k5xsds9bpmwg31ayvjg0f4pir9rwqr"))))
4707 (build-system gnu-build-system)
4708 (inputs `(("zlib" ,zlib)))
4709 (native-inputs
4710 `(("ruby-bio-commandeer" ,ruby-bio-commandeer)
4711 ("ruby-rspec" ,ruby-rspec)
4712 ("ruby" ,ruby)))
4713 (synopsis "Simple and not slow open reading frame (ORF) caller")
4714 (description
4715 "An ORF caller finds stretches of DNA that, when translated, are not
4716 interrupted by stop codons. OrfM finds and prints these ORFs.")
4717 (home-page "https://github.com/wwood/OrfM")
4718 (license license:lgpl3+)))
4719
4720 (define-public python2-pbcore
4721 (package
4722 (name "python2-pbcore")
4723 (version "1.2.10")
4724 (source (origin
4725 (method url-fetch)
4726 (uri (pypi-uri "pbcore" version))
4727 (sha256
4728 (base32
4729 "1kjmv891d6qbpp4shhhvkl02ff4q5xlpnls2513sm2cjcrs52f1i"))))
4730 (build-system python-build-system)
4731 (arguments `(#:python ,python-2)) ; pbcore requires Python 2.7
4732 (propagated-inputs
4733 `(("python-cython" ,python2-cython)
4734 ("python-numpy" ,python2-numpy)
4735 ("python-pysam" ,python2-pysam)
4736 ("python-h5py" ,python2-h5py)))
4737 (native-inputs
4738 `(("python-nose" ,python2-nose)
4739 ("python-sphinx" ,python2-sphinx)
4740 ("python-pyxb" ,python2-pyxb)))
4741 (home-page "http://pacificbiosciences.github.io/pbcore/")
4742 (synopsis "Library for reading and writing PacBio data files")
4743 (description
4744 "The pbcore package provides Python APIs for interacting with PacBio data
4745 files and writing bioinformatics applications.")
4746 (license license:bsd-3)))
4747
4748 (define-public python2-warpedlmm
4749 (package
4750 (name "python2-warpedlmm")
4751 (version "0.21")
4752 (source
4753 (origin
4754 (method url-fetch)
4755 (uri (pypi-uri "WarpedLMM" version ".zip"))
4756 (sha256
4757 (base32
4758 "1agfz6zqa8nc6cw47yh0s3y14gkpa9wqazwcj7mwwj3ffnw39p3j"))))
4759 (build-system python-build-system)
4760 (arguments
4761 `(#:python ,python-2)) ; requires Python 2.7
4762 (propagated-inputs
4763 `(("python-scipy" ,python2-scipy)
4764 ("python-numpy" ,python2-numpy)
4765 ("python-matplotlib" ,python2-matplotlib)
4766 ("python-fastlmm" ,python2-fastlmm)
4767 ("python-pandas" ,python2-pandas)
4768 ("python-pysnptools" ,python2-pysnptools)))
4769 (native-inputs
4770 `(("python-mock" ,python2-mock)
4771 ("python-nose" ,python2-nose)
4772 ("unzip" ,unzip)))
4773 (home-page "https://github.com/PMBio/warpedLMM")
4774 (synopsis "Implementation of warped linear mixed models")
4775 (description
4776 "WarpedLMM is a Python implementation of the warped linear mixed model,
4777 which automatically learns an optimal warping function (or transformation) for
4778 the phenotype as it models the data.")
4779 (license license:asl2.0)))
4780
4781 (define-public pbtranscript-tofu
4782 (let ((commit "8f5467fe6a4472bcfb4226c8720993c8507adfe4"))
4783 (package
4784 (name "pbtranscript-tofu")
4785 (version (string-append "2.2.3." (string-take commit 7)))
4786 (source (origin
4787 (method git-fetch)
4788 (uri (git-reference
4789 (url "https://github.com/PacificBiosciences/cDNA_primer.git")
4790 (commit commit)))
4791 (file-name (string-append name "-" version "-checkout"))
4792 (sha256
4793 (base32
4794 "1lgnpi35ihay42qx0b6yl3kkgra723i413j33kvs0kvs61h82w0f"))
4795 (modules '((guix build utils)))
4796 (snippet
4797 '(begin
4798 ;; remove bundled Cython sources
4799 (delete-file "pbtranscript-tofu/pbtranscript/Cython-0.20.1.tar.gz")
4800 #t))))
4801 (build-system python-build-system)
4802 (arguments
4803 `(#:python ,python-2
4804 ;; FIXME: Tests fail with "No such file or directory:
4805 ;; pbtools/pbtranscript/modified_bx_intervals/intersection_unique.so"
4806 #:tests? #f
4807 #:phases
4808 (modify-phases %standard-phases
4809 (add-after 'unpack 'enter-directory
4810 (lambda _
4811 (chdir "pbtranscript-tofu/pbtranscript/")
4812 #t))
4813 ;; With setuptools version 18.0 and later this setup.py hack causes
4814 ;; a build error, so we disable it.
4815 (add-after 'enter-directory 'patch-setuppy
4816 (lambda _
4817 (substitute* "setup.py"
4818 (("if 'setuptools.extension' in sys.modules:")
4819 "if False:"))
4820 #t)))))
4821 (inputs
4822 `(("python-numpy" ,python2-numpy)
4823 ("python-bx-python" ,python2-bx-python)
4824 ("python-networkx" ,python2-networkx)
4825 ("python-scipy" ,python2-scipy)
4826 ("python-pbcore" ,python2-pbcore)
4827 ("python-h5py" ,python2-h5py)))
4828 (native-inputs
4829 `(("python-cython" ,python2-cython)
4830 ("python-nose" ,python2-nose)))
4831 (home-page "https://github.com/PacificBiosciences/cDNA_primer")
4832 (synopsis "Analyze transcriptome data generated with the Iso-Seq protocol")
4833 (description
4834 "pbtranscript-tofu contains scripts to analyze transcriptome data
4835 generated using the PacBio Iso-Seq protocol.")
4836 (license license:bsd-3))))
4837
4838 (define-public prank
4839 (package
4840 (name "prank")
4841 (version "170427")
4842 (source (origin
4843 (method url-fetch)
4844 (uri (string-append
4845 "http://wasabiapp.org/download/prank/prank.source."
4846 version ".tgz"))
4847 (sha256
4848 (base32
4849 "0nc8g9c5rkdxcir46s0in9ci1sxwzbjibxrvkksf22ybnplvagk2"))))
4850 (build-system gnu-build-system)
4851 (arguments
4852 `(#:phases
4853 (modify-phases %standard-phases
4854 (add-after 'unpack 'enter-src-dir
4855 (lambda _
4856 (chdir "src")
4857 #t))
4858 (add-after 'unpack 'remove-m64-flag
4859 ;; Prank will build with the correct 'bit-ness' without this flag
4860 ;; and this allows building on 32-bit machines.
4861 (lambda _ (substitute* "src/Makefile"
4862 (("-m64") ""))
4863 #t))
4864 (delete 'configure)
4865 (replace 'install
4866 (lambda* (#:key outputs #:allow-other-keys)
4867 (let* ((out (assoc-ref outputs "out"))
4868 (bin (string-append out "/bin"))
4869 (man (string-append out "/share/man/man1"))
4870 (path (string-append
4871 (assoc-ref %build-inputs "mafft") "/bin:"
4872 (assoc-ref %build-inputs "exonerate") "/bin:"
4873 (assoc-ref %build-inputs "bppsuite") "/bin")))
4874 (install-file "prank" bin)
4875 (wrap-program (string-append bin "/prank")
4876 `("PATH" ":" prefix (,path)))
4877 (install-file "prank.1" man))
4878 #t)))))
4879 (inputs
4880 `(("mafft" ,mafft)
4881 ("exonerate" ,exonerate)
4882 ("bppsuite" ,bppsuite)))
4883 (home-page "http://wasabiapp.org/software/prank/")
4884 (synopsis "Probabilistic multiple sequence alignment program")
4885 (description
4886 "PRANK is a probabilistic multiple sequence alignment program for DNA,
4887 codon and amino-acid sequences. It is based on a novel algorithm that treats
4888 insertions correctly and avoids over-estimation of the number of deletion
4889 events. In addition, PRANK borrows ideas from maximum likelihood methods used
4890 in phylogenetics and correctly takes into account the evolutionary distances
4891 between sequences. Lastly, PRANK allows for defining a potential structure
4892 for sequences to be aligned and then, simultaneously with the alignment,
4893 predicts the locations of structural units in the sequences.")
4894 (license license:gpl2+)))
4895
4896 (define-public proteinortho
4897 (package
4898 (name "proteinortho")
4899 (version "5.16b")
4900 (source
4901 (origin
4902 (method url-fetch)
4903 (uri
4904 (string-append
4905 "http://www.bioinf.uni-leipzig.de/Software/proteinortho/proteinortho_v"
4906 version "_src.tar.gz"))
4907 (sha256
4908 (base32
4909 "1wl0dawpssqwfjvr651r4wlww8hhjin8nba6xh71ks7sbypx886j"))))
4910 (build-system gnu-build-system)
4911 (arguments
4912 `(#:test-target "test"
4913 #:phases
4914 (modify-phases %standard-phases
4915 (replace 'configure
4916 ;; There is no configure script, so we modify the Makefile directly.
4917 (lambda* (#:key outputs #:allow-other-keys)
4918 (substitute* "Makefile"
4919 (("INSTALLDIR=.*")
4920 (string-append
4921 "INSTALLDIR=" (assoc-ref outputs "out") "/bin\n")))
4922 #t))
4923 (add-before 'install 'make-install-directory
4924 ;; The install directory is not created during 'make install'.
4925 (lambda* (#:key outputs #:allow-other-keys)
4926 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
4927 #t))
4928 (add-after 'install 'wrap-programs
4929 (lambda* (#:key inputs outputs #:allow-other-keys)
4930 (let* ((path (getenv "PATH"))
4931 (out (assoc-ref outputs "out"))
4932 (binary (string-append out "/bin/proteinortho5.pl")))
4933 (wrap-program binary `("PATH" ":" prefix (,path))))
4934 #t)))))
4935 (inputs
4936 `(("perl" ,perl)
4937 ("python" ,python-2)
4938 ("blast+" ,blast+)))
4939 (home-page "http://www.bioinf.uni-leipzig.de/Software/proteinortho")
4940 (synopsis "Detect orthologous genes across species")
4941 (description
4942 "Proteinortho is a tool to detect orthologous genes across different
4943 species. For doing so, it compares similarities of given gene sequences and
4944 clusters them to find significant groups. The algorithm was designed to handle
4945 large-scale data and can be applied to hundreds of species at once.")
4946 (license license:gpl2+)))
4947
4948 (define-public pyicoteo
4949 (package
4950 (name "pyicoteo")
4951 (version "2.0.7")
4952 (source
4953 (origin
4954 (method git-fetch)
4955 (uri (git-reference
4956 (url "https://bitbucket.org/regulatorygenomicsupf/pyicoteo.git")
4957 (commit (string-append "v" version))))
4958 (file-name (git-file-name name version))
4959 (sha256
4960 (base32
4961 "0hz5g8d25lbjy1wpscr490l0lmyvaix893hhax4fxnh1h9w34w8p"))))
4962 (build-system python-build-system)
4963 (arguments
4964 `(#:python ,python-2 ; does not work with Python 3
4965 #:tests? #f)) ; there are no tests
4966 (inputs
4967 `(("python2-matplotlib" ,python2-matplotlib)))
4968 (home-page "https://bitbucket.org/regulatorygenomicsupf/pyicoteo")
4969 (synopsis "Analyze high-throughput genetic sequencing data")
4970 (description
4971 "Pyicoteo is a suite of tools for the analysis of high-throughput genetic
4972 sequencing data. It works with genomic coordinates. There are currently six
4973 different command-line tools:
4974
4975 @enumerate
4976 @item pyicoregion: for generating exploratory regions automatically;
4977 @item pyicoenrich: for differential enrichment between two conditions;
4978 @item pyicoclip: for calling CLIP-Seq peaks without a control;
4979 @item pyicos: for genomic coordinates manipulation;
4980 @item pyicoller: for peak calling on punctuated ChIP-Seq;
4981 @item pyicount: to count how many reads from N experiment files overlap in a
4982 region file;
4983 @item pyicotrocol: to combine operations from pyicoteo.
4984 @end enumerate\n")
4985 (license license:gpl3+)))
4986
4987 (define-public prodigal
4988 (package
4989 (name "prodigal")
4990 (version "2.6.3")
4991 (source (origin
4992 (method git-fetch)
4993 (uri (git-reference
4994 (url "https://github.com/hyattpd/Prodigal.git")
4995 (commit (string-append "v" version))))
4996 (file-name (git-file-name name version))
4997 (sha256
4998 (base32
4999 "1fs1hqk83qjbjhrvhw6ni75zakx5ki1ayy3v6wwkn3xvahc9hi5s"))))
5000 (build-system gnu-build-system)
5001 (arguments
5002 `(#:tests? #f ;no check target
5003 #:make-flags (list (string-append "INSTALLDIR="
5004 (assoc-ref %outputs "out")
5005 "/bin"))
5006 #:phases
5007 (modify-phases %standard-phases
5008 (delete 'configure))))
5009 (home-page "http://prodigal.ornl.gov")
5010 (synopsis "Protein-coding gene prediction for Archaea and Bacteria")
5011 (description
5012 "Prodigal runs smoothly on finished genomes, draft genomes, and
5013 metagenomes, providing gene predictions in GFF3, Genbank, or Sequin table
5014 format. It runs quickly, in an unsupervised fashion, handles gaps, handles
5015 partial genes, and identifies translation initiation sites.")
5016 (license license:gpl3+)))
5017
5018 (define-public roary
5019 (package
5020 (name "roary")
5021 (version "3.12.0")
5022 (source
5023 (origin
5024 (method url-fetch)
5025 (uri (string-append
5026 "mirror://cpan/authors/id/A/AJ/AJPAGE/Bio-Roary-"
5027 version ".tar.gz"))
5028 (sha256
5029 (base32
5030 "0qxrds9wx7cfhlkihrp6697kx0flhhxymap9fwan0b3rbdhcnmff"))))
5031 (build-system perl-build-system)
5032 (arguments
5033 `(#:phases
5034 (modify-phases %standard-phases
5035 (delete 'configure)
5036 (delete 'build)
5037 (replace 'check
5038 (lambda _
5039 ;; The tests are not run by default, so we run each test file
5040 ;; directly.
5041 (setenv "PATH" (string-append (getcwd) "/bin" ":"
5042 (getenv "PATH")))
5043 (setenv "PERL5LIB" (string-append (getcwd) "/lib" ":"
5044 (getenv "PERL5LIB")))
5045 (for-each (lambda (file)
5046 (display file)(display "\n")
5047 (invoke "perl" file))
5048 (find-files "t" ".*\\.t$"))
5049 #t))
5050 (replace 'install
5051 ;; There is no 'install' target in the Makefile.
5052 (lambda* (#:key outputs #:allow-other-keys)
5053 (let* ((out (assoc-ref outputs "out"))
5054 (bin (string-append out "/bin"))
5055 (perl (string-append out "/lib/perl5/site_perl"))
5056 (roary-plots "contrib/roary_plots"))
5057 (mkdir-p bin)
5058 (mkdir-p perl)
5059 (copy-recursively "bin" bin)
5060 (copy-recursively "lib" perl)
5061 #t)))
5062 (add-after 'install 'wrap-programs
5063 (lambda* (#:key inputs outputs #:allow-other-keys)
5064 (let* ((out (assoc-ref outputs "out"))
5065 (perl5lib (getenv "PERL5LIB"))
5066 (path (getenv "PATH")))
5067 (for-each (lambda (prog)
5068 (let ((binary (string-append out "/" prog)))
5069 (wrap-program binary
5070 `("PERL5LIB" ":" prefix
5071 (,(string-append perl5lib ":" out
5072 "/lib/perl5/site_perl"))))
5073 (wrap-program binary
5074 `("PATH" ":" prefix
5075 (,(string-append path ":" out "/bin"))))))
5076 (find-files "bin" ".*[^R]$"))
5077 (let ((file
5078 (string-append out "/bin/roary-create_pan_genome_plots.R"))
5079 (r-site-lib (getenv "R_LIBS_SITE"))
5080 (coreutils-path
5081 (string-append (assoc-ref inputs "coreutils") "/bin")))
5082 (wrap-program file
5083 `("R_LIBS_SITE" ":" prefix
5084 (,(string-append r-site-lib ":" out "/site-library/"))))
5085 (wrap-program file
5086 `("PATH" ":" prefix
5087 (,(string-append coreutils-path ":" out "/bin"))))))
5088 #t)))))
5089 (native-inputs
5090 `(("perl-env-path" ,perl-env-path)
5091 ("perl-test-files" ,perl-test-files)
5092 ("perl-test-most" ,perl-test-most)
5093 ("perl-test-output" ,perl-test-output)))
5094 (inputs
5095 `(("perl-array-utils" ,perl-array-utils)
5096 ("bioperl" ,bioperl-minimal)
5097 ("perl-digest-md5-file" ,perl-digest-md5-file)
5098 ("perl-exception-class" ,perl-exception-class)
5099 ("perl-file-find-rule" ,perl-file-find-rule)
5100 ("perl-file-grep" ,perl-file-grep)
5101 ("perl-file-slurper" ,perl-file-slurper)
5102 ("perl-file-which" ,perl-file-which)
5103 ("perl-graph" ,perl-graph)
5104 ("perl-graph-readwrite" ,perl-graph-readwrite)
5105 ("perl-log-log4perl" ,perl-log-log4perl)
5106 ("perl-moose" ,perl-moose)
5107 ("perl-perlio-utf8_strict" ,perl-perlio-utf8_strict)
5108 ("perl-text-csv" ,perl-text-csv)
5109 ("bedtools" ,bedtools)
5110 ("cd-hit" ,cd-hit)
5111 ("blast+" ,blast+)
5112 ("mcl" ,mcl)
5113 ("parallel" ,parallel)
5114 ("prank" ,prank)
5115 ("mafft" ,mafft)
5116 ("fasttree" ,fasttree)
5117 ("grep" ,grep)
5118 ("sed" ,sed)
5119 ("gawk" ,gawk)
5120 ("r-minimal" ,r-minimal)
5121 ("r-ggplot2" ,r-ggplot2)
5122 ("coreutils" ,coreutils)))
5123 (home-page "http://sanger-pathogens.github.io/Roary")
5124 (synopsis "High speed stand-alone pan genome pipeline")
5125 (description
5126 "Roary is a high speed stand alone pan genome pipeline, which takes
5127 annotated assemblies in GFF3 format (produced by the Prokka program) and
5128 calculates the pan genome. Using a standard desktop PC, it can analyse
5129 datasets with thousands of samples, without compromising the quality of the
5130 results. 128 samples can be analysed in under 1 hour using 1 GB of RAM and a
5131 single processor. Roary is not intended for metagenomics or for comparing
5132 extremely diverse sets of genomes.")
5133 (license license:gpl3)))
5134
5135 (define-public raxml
5136 (package
5137 (name "raxml")
5138 (version "8.2.12")
5139 (source
5140 (origin
5141 (method git-fetch)
5142 (uri (git-reference
5143 (url "https://github.com/stamatak/standard-RAxML.git")
5144 (commit (string-append "v" version))))
5145 (file-name (git-file-name name version))
5146 (sha256
5147 (base32
5148 "1jqjzhch0rips0vp04prvb8vmc20c5pdmsqn8knadcf91yy859fh"))))
5149 (build-system gnu-build-system)
5150 (arguments
5151 `(#:tests? #f ; There are no tests.
5152 ;; Use 'standard' Makefile rather than SSE or AVX ones.
5153 #:make-flags (list "-f" "Makefile.HYBRID.gcc")
5154 #:phases
5155 (modify-phases %standard-phases
5156 (delete 'configure)
5157 (replace 'install
5158 (lambda* (#:key outputs #:allow-other-keys)
5159 (let* ((out (assoc-ref outputs "out"))
5160 (bin (string-append out "/bin"))
5161 (executable "raxmlHPC-HYBRID"))
5162 (install-file executable bin)
5163 (symlink (string-append bin "/" executable) "raxml"))
5164 #t)))))
5165 (inputs
5166 `(("openmpi" ,openmpi)))
5167 (home-page "http://sco.h-its.org/exelixis/web/software/raxml/index.html")
5168 (synopsis "Randomized Axelerated Maximum Likelihood phylogenetic trees")
5169 (description
5170 "RAxML is a tool for phylogenetic analysis and post-analysis of large
5171 phylogenies.")
5172 ;; The source includes x86 specific code
5173 (supported-systems '("x86_64-linux" "i686-linux"))
5174 (license license:gpl2+)))
5175
5176 (define-public rsem
5177 (package
5178 (name "rsem")
5179 (version "1.3.1")
5180 (source
5181 (origin
5182 (method git-fetch)
5183 (uri (git-reference
5184 (url "https://github.com/deweylab/RSEM.git")
5185 (commit (string-append "v" version))))
5186 (sha256
5187 (base32 "1jlq11d1p8qp64w75yj8cnbbd1a93viq10pzsbwal7vdn8fg13j1"))
5188 (file-name (git-file-name name version))
5189 (modules '((guix build utils)))
5190 (snippet
5191 '(begin
5192 ;; remove bundled copy of boost and samtools
5193 (delete-file-recursively "boost")
5194 (delete-file-recursively "samtools-1.3")
5195 #t))))
5196 (build-system gnu-build-system)
5197 (arguments
5198 `(#:tests? #f ;no "check" target
5199 #:make-flags
5200 (list (string-append "BOOST="
5201 (assoc-ref %build-inputs "boost")
5202 "/include/")
5203 (string-append "SAMHEADERS="
5204 (assoc-ref %build-inputs "htslib")
5205 "/include/htslib/sam.h")
5206 (string-append "SAMLIBS="
5207 (assoc-ref %build-inputs "htslib")
5208 "/lib/libhts.a"))
5209 #:phases
5210 (modify-phases %standard-phases
5211 ;; No "configure" script.
5212 ;; Do not build bundled samtools library.
5213 (replace 'configure
5214 (lambda _
5215 (substitute* "Makefile"
5216 (("^all : \\$\\(PROGRAMS\\).*") "all: $(PROGRAMS)\n")
5217 (("^\\$\\(SAMLIBS\\).*") ""))
5218 #t))
5219 (replace 'install
5220 (lambda* (#:key outputs #:allow-other-keys)
5221 (let* ((out (string-append (assoc-ref outputs "out")))
5222 (bin (string-append out "/bin/"))
5223 (perl (string-append out "/lib/perl5/site_perl")))
5224 (mkdir-p bin)
5225 (mkdir-p perl)
5226 (for-each (lambda (file)
5227 (install-file file bin))
5228 (find-files "." "rsem-.*"))
5229 (install-file "rsem_perl_utils.pm" perl))
5230 #t))
5231 (add-after 'install 'wrap-program
5232 (lambda* (#:key outputs #:allow-other-keys)
5233 (let ((out (assoc-ref outputs "out")))
5234 (for-each (lambda (prog)
5235 (wrap-program (string-append out "/bin/" prog)
5236 `("PERL5LIB" ":" prefix
5237 (,(string-append out "/lib/perl5/site_perl")))))
5238 '("rsem-calculate-expression"
5239 "rsem-control-fdr"
5240 "rsem-generate-data-matrix"
5241 "rsem-generate-ngvector"
5242 "rsem-plot-transcript-wiggles"
5243 "rsem-prepare-reference"
5244 "rsem-run-ebseq"
5245 "rsem-run-prsem-testing-procedure")))
5246 #t)))))
5247 (inputs
5248 `(("boost" ,boost)
5249 ("r-minimal" ,r-minimal)
5250 ("perl" ,perl)
5251 ("htslib" ,htslib-1.3)
5252 ("zlib" ,zlib)))
5253 (home-page "http://deweylab.biostat.wisc.edu/rsem/")
5254 (synopsis "Estimate gene expression levels from RNA-Seq data")
5255 (description
5256 "RSEM is a software package for estimating gene and isoform expression
5257 levels from RNA-Seq data. The RSEM package provides a user-friendly
5258 interface, supports threads for parallel computation of the EM algorithm,
5259 single-end and paired-end read data, quality scores, variable-length reads and
5260 RSPD estimation. In addition, it provides posterior mean and 95% credibility
5261 interval estimates for expression levels. For visualization, it can generate
5262 BAM and Wiggle files in both transcript-coordinate and genomic-coordinate.")
5263 (license license:gpl3+)))
5264
5265 (define-public rseqc
5266 (package
5267 (name "rseqc")
5268 (version "2.6.1")
5269 (source
5270 (origin
5271 (method url-fetch)
5272 (uri
5273 (string-append "mirror://sourceforge/rseqc/"
5274 "RSeQC-" version ".tar.gz"))
5275 (sha256
5276 (base32 "15ly0254yi032qzkdplg00q144qfdsd986gh62829rl5bkxhj330"))
5277 (modules '((guix build utils)))
5278 (snippet
5279 '(begin
5280 ;; remove bundled copy of pysam
5281 (delete-file-recursively "lib/pysam")
5282 (substitute* "setup.py"
5283 ;; remove dependency on outdated "distribute" module
5284 (("^from distribute_setup import use_setuptools") "")
5285 (("^use_setuptools\\(\\)") "")
5286 ;; do not use bundled copy of pysam
5287 (("^have_pysam = False") "have_pysam = True"))
5288 #t))))
5289 (build-system python-build-system)
5290 (arguments `(#:python ,python-2))
5291 (inputs
5292 `(("python-cython" ,python2-cython)
5293 ("python-pysam" ,python2-pysam)
5294 ("python-numpy" ,python2-numpy)
5295 ("zlib" ,zlib)))
5296 (native-inputs
5297 `(("python-nose" ,python2-nose)))
5298 (home-page "http://rseqc.sourceforge.net/")
5299 (synopsis "RNA-seq quality control package")
5300 (description
5301 "RSeQC provides a number of modules that can comprehensively evaluate
5302 high throughput sequence data, especially RNA-seq data. Some basic modules
5303 inspect sequence quality, nucleotide composition bias, PCR bias and GC bias,
5304 while RNA-seq specific modules evaluate sequencing saturation, mapped reads
5305 distribution, coverage uniformity, strand specificity, etc.")
5306 (license license:gpl3+)))
5307
5308 (define-public seek
5309 ;; There are no release tarballs. According to the installation
5310 ;; instructions at http://seek.princeton.edu/installation.jsp, the latest
5311 ;; stable release is identified by this changeset ID.
5312 (let ((changeset "2329130")
5313 (revision "1"))
5314 (package
5315 (name "seek")
5316 (version (string-append "0-" revision "." changeset))
5317 (source (origin
5318 (method hg-fetch)
5319 (uri (hg-reference
5320 (url "https://bitbucket.org/libsleipnir/sleipnir")
5321 (changeset changeset)))
5322 (file-name (string-append name "-" version "-checkout"))
5323 (sha256
5324 (base32
5325 "0qrvilwh18dpbhkf92qvxbmay0j75ra3jg2wrhz67gf538zzphsx"))))
5326 (build-system gnu-build-system)
5327 (arguments
5328 `(#:modules ((srfi srfi-1)
5329 (guix build gnu-build-system)
5330 (guix build utils))
5331 #:phases
5332 (let ((dirs '("SeekMiner"
5333 "SeekEvaluator"
5334 "SeekPrep"
5335 "Distancer"
5336 "Data2DB"
5337 "PCL2Bin")))
5338 (modify-phases %standard-phases
5339 (replace 'bootstrap
5340 (lambda _
5341 (substitute* "gen_tools_am"
5342 (("/usr/bin/env.*") (which "perl")))
5343 (invoke "bash" "gen_auto")
5344 #t))
5345 (add-after 'build 'build-additional-tools
5346 (lambda* (#:key make-flags #:allow-other-keys)
5347 (for-each (lambda (dir)
5348 (with-directory-excursion (string-append "tools/" dir)
5349 (apply invoke "make" make-flags)))
5350 dirs)
5351 #t))
5352 (add-after 'install 'install-additional-tools
5353 (lambda* (#:key make-flags #:allow-other-keys)
5354 (for-each (lambda (dir)
5355 (with-directory-excursion (string-append "tools/" dir)
5356 (apply invoke `("make" ,@make-flags "install"))))
5357 dirs)
5358 #t))))))
5359 (inputs
5360 `(("gsl" ,gsl)
5361 ("boost" ,boost)
5362 ("libsvm" ,libsvm)
5363 ("readline" ,readline)
5364 ("gengetopt" ,gengetopt)
5365 ("log4cpp" ,log4cpp)))
5366 (native-inputs
5367 `(("autoconf" ,autoconf)
5368 ("automake" ,automake)
5369 ("perl" ,perl)))
5370 (home-page "http://seek.princeton.edu")
5371 (synopsis "Gene co-expression search engine")
5372 (description
5373 "SEEK is a computational gene co-expression search engine. SEEK provides
5374 biologists with a way to navigate the massive human expression compendium that
5375 now contains thousands of expression datasets. SEEK returns a robust ranking
5376 of co-expressed genes in the biological area of interest defined by the user's
5377 query genes. It also prioritizes thousands of expression datasets according
5378 to the user's query of interest.")
5379 (license license:cc-by3.0))))
5380
5381 (define-public samtools
5382 (package
5383 (name "samtools")
5384 (version "1.9")
5385 (source
5386 (origin
5387 (method url-fetch)
5388 (uri
5389 (string-append "mirror://sourceforge/samtools/samtools/"
5390 version "/samtools-" version ".tar.bz2"))
5391 (sha256
5392 (base32
5393 "10ilqbmm7ri8z431sn90lvbjwizd0hhkf9rcqw8j823hf26nhgq8"))
5394 (modules '((guix build utils)))
5395 (snippet '(begin
5396 ;; Delete bundled htslib.
5397 (delete-file-recursively "htslib-1.9")
5398 #t))))
5399 (build-system gnu-build-system)
5400 (arguments
5401 `(#:modules ((ice-9 ftw)
5402 (ice-9 regex)
5403 (guix build gnu-build-system)
5404 (guix build utils))
5405 #:configure-flags (list "--with-ncurses")
5406 #:phases
5407 (modify-phases %standard-phases
5408 (add-after 'unpack 'patch-tests
5409 (lambda _
5410 (substitute* "test/test.pl"
5411 ;; The test script calls out to /bin/bash
5412 (("/bin/bash") (which "bash")))
5413 #t))
5414 (add-after 'install 'install-library
5415 (lambda* (#:key outputs #:allow-other-keys)
5416 (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
5417 (install-file "libbam.a" lib)
5418 #t)))
5419 (add-after 'install 'install-headers
5420 (lambda* (#:key outputs #:allow-other-keys)
5421 (let ((include (string-append (assoc-ref outputs "out")
5422 "/include/samtools/")))
5423 (for-each (lambda (file)
5424 (install-file file include))
5425 (scandir "." (lambda (name) (string-match "\\.h$" name))))
5426 #t))))))
5427 (native-inputs `(("pkg-config" ,pkg-config)))
5428 (inputs
5429 `(("htslib" ,htslib)
5430 ("ncurses" ,ncurses)
5431 ("perl" ,perl)
5432 ("python" ,python)
5433 ("zlib" ,zlib)))
5434 (home-page "http://samtools.sourceforge.net")
5435 (synopsis "Utilities to efficiently manipulate nucleotide sequence alignments")
5436 (description
5437 "Samtools implements various utilities for post-processing nucleotide
5438 sequence alignments in the SAM, BAM, and CRAM formats, including indexing,
5439 variant calling (in conjunction with bcftools), and a simple alignment
5440 viewer.")
5441 (license license:expat)))
5442
5443 (define-public samtools-0.1
5444 ;; This is the most recent version of the 0.1 line of samtools. The input
5445 ;; and output formats differ greatly from that used and produced by samtools
5446 ;; 1.x and is still used in many bioinformatics pipelines.
5447 (package (inherit samtools)
5448 (version "0.1.19")
5449 (source
5450 (origin
5451 (method url-fetch)
5452 (uri
5453 (string-append "mirror://sourceforge/samtools/samtools/"
5454 version "/samtools-" version ".tar.bz2"))
5455 (sha256
5456 (base32 "1m33xsfwz0s8qi45lylagfllqg7fphf4dr0780rsvw75av9wk06h"))))
5457 (arguments
5458 `(#:tests? #f ;no "check" target
5459 #:make-flags
5460 (list "LIBCURSES=-lncurses")
5461 ,@(substitute-keyword-arguments (package-arguments samtools)
5462 ((#:phases phases)
5463 `(modify-phases ,phases
5464 (replace 'install
5465 (lambda* (#:key outputs #:allow-other-keys)
5466 (let ((bin (string-append
5467 (assoc-ref outputs "out") "/bin")))
5468 (mkdir-p bin)
5469 (install-file "samtools" bin)
5470 #t)))
5471 (delete 'patch-tests)
5472 (delete 'configure))))))))
5473
5474 (define-public mosaik
5475 (let ((commit "5c25216d3522d6a33e53875cd76a6d65001e4e67"))
5476 (package
5477 (name "mosaik")
5478 (version "2.2.30")
5479 (source (origin
5480 ;; There are no release tarballs nor tags.
5481 (method git-fetch)
5482 (uri (git-reference
5483 (url "https://github.com/wanpinglee/MOSAIK.git")
5484 (commit commit)))
5485 (file-name (string-append name "-" version))
5486 (sha256
5487 (base32
5488 "17gj3s07cm77r41z92awh0bim7w7q7fbn0sf5nkqmcm1vw052qgw"))))
5489 (build-system gnu-build-system)
5490 (arguments
5491 `(#:tests? #f ; no tests
5492 #:make-flags (list "CC=gcc")
5493 #:phases
5494 (modify-phases %standard-phases
5495 (replace 'configure
5496 (lambda _ (chdir "src") #t))
5497 (replace 'install
5498 (lambda* (#:key outputs #:allow-other-keys)
5499 (let ((bin (string-append (assoc-ref outputs "out")
5500 "/bin")))
5501 (mkdir-p bin)
5502 (copy-recursively "../bin" bin)
5503 #t))))))
5504 (inputs
5505 `(("perl" ,perl)
5506 ("zlib:static" ,zlib "static")
5507 ("zlib" ,zlib)))
5508 (supported-systems '("x86_64-linux"))
5509 (home-page "https://github.com/wanpinglee/MOSAIK")
5510 (synopsis "Map nucleotide sequence reads to reference genomes")
5511 (description
5512 "MOSAIK is a program for mapping second and third-generation sequencing
5513 reads to a reference genome. MOSAIK can align reads generated by all the
5514 major sequencing technologies, including Illumina, Applied Biosystems SOLiD,
5515 Roche 454, Ion Torrent and Pacific BioSciences SMRT.")
5516 ;; MOSAIK is released under the GPLv2+ with the exception of third-party
5517 ;; code released into the public domain:
5518 ;; 1. fastlz by Ariya Hidayat - http://www.fastlz.org/
5519 ;; 2. MD5 implementation - RSA Data Security, RFC 1321
5520 (license (list license:gpl2+ license:public-domain)))))
5521
5522 (define-public ngs-sdk
5523 (package
5524 (name "ngs-sdk")
5525 (version "2.9.6")
5526 (source (origin
5527 (method git-fetch)
5528 (uri (git-reference
5529 (url "https://github.com/ncbi/ngs.git")
5530 (commit version)))
5531 (file-name (git-file-name name version))
5532 (sha256
5533 (base32
5534 "0d5k5kabgl15as37kj9x65xc92j4gcqms86hvihw3yb6wag0r0q3"))))
5535 (build-system gnu-build-system)
5536 (arguments
5537 `(#:parallel-build? #f ; not supported
5538 #:tests? #f ; no "check" target
5539 #:phases
5540 (modify-phases %standard-phases
5541 (replace 'configure
5542 (lambda* (#:key outputs #:allow-other-keys)
5543 (let ((out (assoc-ref outputs "out")))
5544 ;; Allow 'konfigure.perl' to find 'package.prl'.
5545 (setenv "PERL5LIB"
5546 (string-append ".:" (getenv "PERL5LIB")))
5547
5548 ;; The 'configure' script doesn't recognize things like
5549 ;; '--enable-fast-install'.
5550 (invoke "./configure"
5551 (string-append "--build-prefix=" (getcwd) "/build")
5552 (string-append "--prefix=" out))
5553 #t)))
5554 (add-after 'unpack 'enter-dir
5555 (lambda _ (chdir "ngs-sdk") #t)))))
5556 (native-inputs `(("perl" ,perl)))
5557 ;; According to the test
5558 ;; unless ($MARCH =~ /x86_64/i || $MARCH =~ /i?86/i)
5559 ;; in ngs-sdk/setup/konfigure.perl
5560 (supported-systems '("i686-linux" "x86_64-linux"))
5561 (home-page "https://github.com/ncbi/ngs")
5562 (synopsis "API for accessing Next Generation Sequencing data")
5563 (description
5564 "NGS is a domain-specific API for accessing reads, alignments and pileups
5565 produced from Next Generation Sequencing. The API itself is independent from
5566 any particular back-end implementation, and supports use of multiple back-ends
5567 simultaneously.")
5568 (license license:public-domain)))
5569
5570 (define-public java-ngs
5571 (package (inherit ngs-sdk)
5572 (name "java-ngs")
5573 (arguments
5574 `(,@(substitute-keyword-arguments
5575 `(#:modules ((guix build gnu-build-system)
5576 (guix build utils)
5577 (srfi srfi-1)
5578 (srfi srfi-26))
5579 ,@(package-arguments ngs-sdk))
5580 ((#:phases phases)
5581 `(modify-phases ,phases
5582 (replace 'enter-dir (lambda _ (chdir "ngs-java") #t)))))))
5583 (inputs
5584 `(("jdk" ,icedtea "jdk")
5585 ("ngs-sdk" ,ngs-sdk)))
5586 (synopsis "Java bindings for NGS SDK")))
5587
5588 (define-public ncbi-vdb
5589 (package
5590 (name "ncbi-vdb")
5591 (version "2.9.6")
5592 (source (origin
5593 (method git-fetch)
5594 (uri (git-reference
5595 (url "https://github.com/ncbi/ncbi-vdb.git")
5596 (commit version)))
5597 (file-name (git-file-name name version))
5598 (sha256
5599 (base32
5600 "0knkj1sq34hlivgv5qd6jlczqrs3ldmfgn6vbbw7p4mqxvb9mirk"))))
5601 (build-system gnu-build-system)
5602 (arguments
5603 `(#:parallel-build? #f ; not supported
5604 #:tests? #f ; no "check" target
5605 #:make-flags '("HAVE_HDF5=1")
5606 #:phases
5607 (modify-phases %standard-phases
5608 (add-after 'unpack 'make-files-writable
5609 (lambda _ (for-each make-file-writable (find-files "." ".*")) #t))
5610 (add-before 'configure 'set-perl-search-path
5611 (lambda _
5612 ;; Work around "dotless @INC" build failure.
5613 (setenv "PERL5LIB"
5614 (string-append (getcwd) "/setup:"
5615 (getenv "PERL5LIB")))
5616 #t))
5617 ;; See https://github.com/ncbi/ncbi-vdb/issues/14
5618 (add-after 'unpack 'patch-krypto-flags
5619 (lambda _
5620 (substitute* "libs/krypto/Makefile"
5621 (("-Wa,-march=generic64\\+aes") "")
5622 (("-Wa,-march=generic64\\+sse4") ""))
5623 #t))
5624 (replace 'configure
5625 (lambda* (#:key inputs outputs #:allow-other-keys)
5626 (let ((out (assoc-ref outputs "out")))
5627 ;; Override include path for libmagic
5628 (substitute* "setup/package.prl"
5629 (("name => 'magic', Include => '/usr/include'")
5630 (string-append "name=> 'magic', Include => '"
5631 (assoc-ref inputs "libmagic")
5632 "/include" "'")))
5633
5634 ;; Install kdf5 library (needed by sra-tools)
5635 (substitute* "build/Makefile.install"
5636 (("LIBRARIES_TO_INSTALL =")
5637 "LIBRARIES_TO_INSTALL = kdf5.$(VERSION_LIBX) kdf5.$(VERSION_SHLX)"))
5638
5639 (substitute* "build/Makefile.env"
5640 (("CFLAGS =" prefix)
5641 (string-append prefix "-msse2 ")))
5642
5643 ;; Override search path for ngs-java
5644 (substitute* "setup/package.prl"
5645 (("/usr/local/ngs/ngs-java")
5646 (assoc-ref inputs "java-ngs")))
5647
5648 ;; The 'configure' script doesn't recognize things like
5649 ;; '--enable-fast-install'.
5650 (invoke "./configure"
5651 (string-append "--build-prefix=" (getcwd) "/build")
5652 (string-append "--prefix=" (assoc-ref outputs "out"))
5653 (string-append "--debug")
5654 (string-append "--with-xml2-prefix="
5655 (assoc-ref inputs "libxml2"))
5656 (string-append "--with-ngs-sdk-prefix="
5657 (assoc-ref inputs "ngs-sdk"))
5658 (string-append "--with-hdf5-prefix="
5659 (assoc-ref inputs "hdf5")))
5660 #t)))
5661 (add-after 'install 'install-interfaces
5662 (lambda* (#:key outputs #:allow-other-keys)
5663 ;; Install interface libraries. On i686 the interface libraries
5664 ;; are installed to "linux/gcc/i386", so we need to use the Linux
5665 ;; architecture name ("i386") instead of the target system prefix
5666 ;; ("i686").
5667 (mkdir (string-append (assoc-ref outputs "out") "/ilib"))
5668 (copy-recursively (string-append "build/ncbi-vdb/linux/gcc/"
5669 ,(system->linux-architecture
5670 (or (%current-target-system)
5671 (%current-system)))
5672 "/rel/ilib")
5673 (string-append (assoc-ref outputs "out")
5674 "/ilib"))
5675 ;; Install interface headers
5676 (copy-recursively "interfaces"
5677 (string-append (assoc-ref outputs "out")
5678 "/include"))
5679 #t))
5680 ;; These files are needed by sra-tools.
5681 (add-after 'install 'install-configuration-files
5682 (lambda* (#:key outputs #:allow-other-keys)
5683 (let ((target (string-append (assoc-ref outputs "out") "/kfg")))
5684 (mkdir target)
5685 (install-file "libs/kfg/default.kfg" target)
5686 (install-file "libs/kfg/certs.kfg" target))
5687 #t)))))
5688 (inputs
5689 `(("libxml2" ,libxml2)
5690 ("ngs-sdk" ,ngs-sdk)
5691 ("java-ngs" ,java-ngs)
5692 ("libmagic" ,file)
5693 ("hdf5" ,hdf5)))
5694 (native-inputs `(("perl" ,perl)))
5695 ;; NCBI-VDB requires SSE capability.
5696 (supported-systems '("i686-linux" "x86_64-linux"))
5697 (home-page "https://github.com/ncbi/ncbi-vdb")
5698 (synopsis "Database engine for genetic information")
5699 (description
5700 "The NCBI-VDB library implements a highly compressed columnar data
5701 warehousing engine that is most often used to store genetic information.
5702 Databases are stored in a portable image within the file system, and can be
5703 accessed/downloaded on demand across HTTP.")
5704 (license license:public-domain)))
5705
5706 (define-public plink
5707 (package
5708 (name "plink")
5709 (version "1.07")
5710 (source
5711 (origin
5712 (method url-fetch)
5713 (uri (string-append
5714 "http://pngu.mgh.harvard.edu/~purcell/plink/dist/plink-"
5715 version "-src.zip"))
5716 (sha256
5717 (base32 "0as8gxm4pjyc8dxmm1sl873rrd7wn5qs0l29nqfnl31x8i467xaa"))
5718 (patches (search-patches "plink-1.07-unclobber-i.patch"
5719 "plink-endian-detection.patch"))))
5720 (build-system gnu-build-system)
5721 (arguments
5722 '(#:tests? #f ;no "check" target
5723 #:make-flags (list (string-append "LIB_LAPACK="
5724 (assoc-ref %build-inputs "lapack")
5725 "/lib/liblapack.so")
5726 "WITH_LAPACK=1"
5727 "FORCE_DYNAMIC=1"
5728 ;; disable phoning home
5729 "WITH_WEBCHECK=")
5730 #:phases
5731 (modify-phases %standard-phases
5732 ;; no "configure" script
5733 (delete 'configure)
5734 (replace 'install
5735 (lambda* (#:key outputs #:allow-other-keys)
5736 (let ((bin (string-append (assoc-ref outputs "out")
5737 "/bin/")))
5738 (install-file "plink" bin)
5739 #t))))))
5740 (inputs
5741 `(("zlib" ,zlib)
5742 ("lapack" ,lapack)))
5743 (native-inputs
5744 `(("unzip" ,unzip)))
5745 (home-page "http://pngu.mgh.harvard.edu/~purcell/plink/")
5746 (synopsis "Whole genome association analysis toolset")
5747 (description
5748 "PLINK is a whole genome association analysis toolset, designed to
5749 perform a range of basic, large-scale analyses in a computationally efficient
5750 manner. The focus of PLINK is purely on analysis of genotype/phenotype data,
5751 so there is no support for steps prior to this (e.g. study design and
5752 planning, generating genotype or CNV calls from raw data). Through
5753 integration with gPLINK and Haploview, there is some support for the
5754 subsequent visualization, annotation and storage of results.")
5755 ;; Code is released under GPLv2, except for fisher.h, which is under
5756 ;; LGPLv2.1+
5757 (license (list license:gpl2 license:lgpl2.1+))))
5758
5759 (define-public plink-ng
5760 (package (inherit plink)
5761 (name "plink-ng")
5762 (version "1.90b4")
5763 (source
5764 (origin
5765 (method git-fetch)
5766 (uri (git-reference
5767 (url "https://github.com/chrchang/plink-ng.git")
5768 (commit (string-append "v" version))))
5769 (file-name (git-file-name name version))
5770 (sha256
5771 (base32 "02npdwgkpfkdnhw819rhj5kw02a5k5m90b14zq9zzya4hyg929c0"))))
5772 (build-system gnu-build-system)
5773 (arguments
5774 '(#:tests? #f ;no "check" target
5775 #:make-flags (list "BLASFLAGS=-llapack -lopenblas"
5776 "CFLAGS=-Wall -O2 -DDYNAMIC_ZLIB=1"
5777 "ZLIB=-lz"
5778 "-f" "Makefile.std")
5779 #:phases
5780 (modify-phases %standard-phases
5781 (add-after 'unpack 'chdir
5782 (lambda _ (chdir "1.9") #t))
5783 (delete 'configure) ; no "configure" script
5784 (replace 'install
5785 (lambda* (#:key outputs #:allow-other-keys)
5786 (let ((bin (string-append (assoc-ref outputs "out")
5787 "/bin/")))
5788 (install-file "plink" bin)
5789 #t))))))
5790 (inputs
5791 `(("zlib" ,zlib)
5792 ("lapack" ,lapack)
5793 ("openblas" ,openblas)))
5794 (home-page "https://www.cog-genomics.org/plink/")
5795 (license license:gpl3+)))
5796
5797 (define-public smithlab-cpp
5798 (let ((revision "1")
5799 (commit "728a097bec88c6f4b8528b685932049e660eff2e"))
5800 (package
5801 (name "smithlab-cpp")
5802 (version (string-append "0." revision "." (string-take commit 7)))
5803 (source (origin
5804 (method git-fetch)
5805 (uri (git-reference
5806 (url "https://github.com/smithlabcode/smithlab_cpp.git")
5807 (commit commit)))
5808 (file-name (string-append name "-" version "-checkout"))
5809 (sha256
5810 (base32
5811 "0d476lmj312xk77kr9fzrv7z1bv96yfyx0w7y62ycmnfbx32ll74"))))
5812 (build-system gnu-build-system)
5813 (arguments
5814 `(#:modules ((guix build gnu-build-system)
5815 (guix build utils)
5816 (srfi srfi-26))
5817 #:tests? #f ;no "check" target
5818 #:phases
5819 (modify-phases %standard-phases
5820 (add-after 'unpack 'use-samtools-headers
5821 (lambda _
5822 (substitute* '("SAM.cpp"
5823 "SAM.hpp")
5824 (("sam.h") "samtools/sam.h"))
5825 #t))
5826 (replace 'install
5827 (lambda* (#:key outputs #:allow-other-keys)
5828 (let* ((out (assoc-ref outputs "out"))
5829 (lib (string-append out "/lib"))
5830 (include (string-append out "/include/smithlab-cpp")))
5831 (mkdir-p lib)
5832 (mkdir-p include)
5833 (for-each (cut install-file <> lib)
5834 (find-files "." "\\.o$"))
5835 (for-each (cut install-file <> include)
5836 (find-files "." "\\.hpp$")))
5837 #t))
5838 (delete 'configure))))
5839 (inputs
5840 `(("samtools" ,samtools-0.1)
5841 ("zlib" ,zlib)))
5842 (home-page "https://github.com/smithlabcode/smithlab_cpp")
5843 (synopsis "C++ helper library for functions used in Smith lab projects")
5844 (description
5845 "Smithlab CPP is a C++ library that includes functions used in many of
5846 the Smith lab bioinformatics projects, such as a wrapper around Samtools data
5847 structures, classes for genomic regions, mapped sequencing reads, etc.")
5848 (license license:gpl3+))))
5849
5850 (define-public preseq
5851 (package
5852 (name "preseq")
5853 (version "2.0.3")
5854 (source (origin
5855 (method url-fetch)
5856 (uri (string-append "https://github.com/smithlabcode/preseq/"
5857 "releases/download/v" version
5858 "/preseq_v" version ".tar.bz2"))
5859 (sha256
5860 (base32 "149x9xmk1wy1gff85325yfzqc0qk4sgp1w6gbyj9cnji4x1dszbl"))
5861 (modules '((guix build utils)))
5862 (snippet '(begin
5863 ;; Remove bundled samtools.
5864 (delete-file-recursively "samtools")
5865 #t))))
5866 (build-system gnu-build-system)
5867 (arguments
5868 `(#:tests? #f ;no "check" target
5869 #:phases
5870 (modify-phases %standard-phases
5871 (delete 'configure))
5872 #:make-flags
5873 (list (string-append "PREFIX="
5874 (assoc-ref %outputs "out"))
5875 (string-append "LIBBAM="
5876 (assoc-ref %build-inputs "samtools")
5877 "/lib/libbam.a")
5878 (string-append "SMITHLAB_CPP="
5879 (assoc-ref %build-inputs "smithlab-cpp")
5880 "/lib")
5881 "PROGS=preseq"
5882 "INCLUDEDIRS=$(SMITHLAB_CPP)/../include/smithlab-cpp $(SAMTOOLS_DIR)")))
5883 (inputs
5884 `(("gsl" ,gsl)
5885 ("samtools" ,samtools-0.1)
5886 ("smithlab-cpp" ,smithlab-cpp)
5887 ("zlib" ,zlib)))
5888 (home-page "http://smithlabresearch.org/software/preseq/")
5889 (synopsis "Program for analyzing library complexity")
5890 (description
5891 "The preseq package is aimed at predicting and estimating the complexity
5892 of a genomic sequencing library, equivalent to predicting and estimating the
5893 number of redundant reads from a given sequencing depth and how many will be
5894 expected from additional sequencing using an initial sequencing experiment.
5895 The estimates can then be used to examine the utility of further sequencing,
5896 optimize the sequencing depth, or to screen multiple libraries to avoid low
5897 complexity samples.")
5898 (license license:gpl3+)))
5899
5900 (define-public python-screed
5901 (package
5902 (name "python-screed")
5903 (version "1.0")
5904 (source
5905 (origin
5906 (method url-fetch)
5907 (uri (pypi-uri "screed" version))
5908 (sha256
5909 (base32
5910 "148vcb7w2wr6a4w6vs2bsxanbqibxfk490zbcbg4m61s8669zdjx"))))
5911 (build-system python-build-system)
5912 (arguments
5913 '(#:phases
5914 (modify-phases %standard-phases
5915 ;; Tests must be run after installation, as the "screed" command does
5916 ;; not exist right after building.
5917 (delete 'check)
5918 (add-after 'install 'check
5919 (lambda* (#:key inputs outputs #:allow-other-keys)
5920 (let ((out (assoc-ref outputs "out")))
5921 (setenv "PYTHONPATH"
5922 (string-append out "/lib/python"
5923 (string-take (string-take-right
5924 (assoc-ref inputs "python")
5925 5) 3)
5926 "/site-packages:"
5927 (getenv "PYTHONPATH")))
5928 (setenv "PATH" (string-append out "/bin:" (getenv "PATH"))))
5929 (invoke "python" "setup.py" "test")
5930 #t)))))
5931 (native-inputs
5932 `(("python-pytest" ,python-pytest)
5933 ("python-pytest-cov" ,python-pytest-cov)
5934 ("python-pytest-runner" ,python-pytest-runner)))
5935 (inputs
5936 `(("python-bz2file" ,python-bz2file)))
5937 (home-page "https://github.com/dib-lab/screed/")
5938 (synopsis "Short read sequence database utilities")
5939 (description "Screed parses FASTA and FASTQ files and generates databases.
5940 Values such as sequence name, sequence description, sequence quality and the
5941 sequence itself can be retrieved from these databases.")
5942 (license license:bsd-3)))
5943
5944 (define-public python2-screed
5945 (package-with-python2 python-screed))
5946
5947 (define-public sra-tools
5948 (package
5949 (name "sra-tools")
5950 (version "2.9.6")
5951 (source
5952 (origin
5953 (method git-fetch)
5954 (uri (git-reference
5955 (url "https://github.com/ncbi/sra-tools.git")
5956 (commit version)))
5957 (file-name (git-file-name name version))
5958 (sha256
5959 (base32
5960 "0vqzap68v81k0zif2mnqfy8pnw2nrhsg87p6mgq8qk3nk2jv2rgy"))))
5961 (build-system gnu-build-system)
5962 (arguments
5963 `(#:parallel-build? #f ; not supported
5964 #:tests? #f ; no "check" target
5965 #:make-flags
5966 (list (string-append "DEFAULT_CRT="
5967 (assoc-ref %build-inputs "ncbi-vdb")
5968 "/kfg/certs.kfg")
5969 (string-append "DEFAULT_KFG="
5970 (assoc-ref %build-inputs "ncbi-vdb")
5971 "/kfg/default.kfg")
5972 (string-append "VDB_LIBDIR="
5973 (assoc-ref %build-inputs "ncbi-vdb")
5974 ,(if (string-prefix? "x86_64"
5975 (or (%current-target-system)
5976 (%current-system)))
5977 "/lib64"
5978 "/lib32")))
5979 #:phases
5980 (modify-phases %standard-phases
5981 (add-before 'configure 'set-perl-search-path
5982 (lambda _
5983 ;; Work around "dotless @INC" build failure.
5984 (setenv "PERL5LIB"
5985 (string-append (getcwd) "/setup:"
5986 (getenv "PERL5LIB")))
5987 #t))
5988 (replace 'configure
5989 (lambda* (#:key inputs outputs #:allow-other-keys)
5990 ;; The build system expects a directory containing the sources and
5991 ;; raw build output of ncbi-vdb, including files that are not
5992 ;; installed. Since we are building against an installed version of
5993 ;; ncbi-vdb, the following modifications are needed.
5994 (substitute* "setup/konfigure.perl"
5995 ;; Make the configure script look for the "ilib" directory of
5996 ;; "ncbi-vdb" without first checking for the existence of a
5997 ;; matching library in its "lib" directory.
5998 (("^ my \\$f = File::Spec->catdir\\(\\$libdir, \\$lib\\);")
5999 "my $f = File::Spec->catdir($ilibdir, $ilib);")
6000 ;; Look for interface libraries in ncbi-vdb's "ilib" directory.
6001 (("my \\$ilibdir = File::Spec->catdir\\(\\$builddir, 'ilib'\\);")
6002 "my $ilibdir = File::Spec->catdir($dir, 'ilib');"))
6003
6004 ;; Dynamic linking
6005 (substitute* "tools/copycat/Makefile"
6006 (("smagic-static") "lmagic"))
6007
6008 ;; The 'configure' script doesn't recognize things like
6009 ;; '--enable-fast-install'.
6010 (invoke "./configure"
6011 (string-append "--build-prefix=" (getcwd) "/build")
6012 (string-append "--prefix=" (assoc-ref outputs "out"))
6013 (string-append "--debug")
6014 (string-append "--with-fuse-prefix="
6015 (assoc-ref inputs "fuse"))
6016 (string-append "--with-magic-prefix="
6017 (assoc-ref inputs "libmagic"))
6018 ;; TODO: building with libxml2 fails with linker errors
6019 ;; (string-append "--with-xml2-prefix="
6020 ;; (assoc-ref inputs "libxml2"))
6021 (string-append "--with-ncbi-vdb-sources="
6022 (assoc-ref inputs "ncbi-vdb"))
6023 (string-append "--with-ncbi-vdb-build="
6024 (assoc-ref inputs "ncbi-vdb"))
6025 (string-append "--with-ngs-sdk-prefix="
6026 (assoc-ref inputs "ngs-sdk"))
6027 (string-append "--with-hdf5-prefix="
6028 (assoc-ref inputs "hdf5")))
6029 #t)))))
6030 (native-inputs `(("perl" ,perl)))
6031 (inputs
6032 `(("ngs-sdk" ,ngs-sdk)
6033 ("ncbi-vdb" ,ncbi-vdb)
6034 ("libmagic" ,file)
6035 ("fuse" ,fuse)
6036 ("hdf5" ,hdf5)
6037 ("zlib" ,zlib)))
6038 (home-page "http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software")
6039 (synopsis "Tools and libraries for reading and writing sequencing data")
6040 (description
6041 "The SRA Toolkit from NCBI is a collection of tools and libraries for
6042 reading of sequencing files from the Sequence Read Archive (SRA) database and
6043 writing files into the .sra format.")
6044 (license license:public-domain)))
6045
6046 (define-public seqan
6047 (package
6048 (name "seqan")
6049 (version "2.4.0")
6050 (source (origin
6051 (method url-fetch)
6052 (uri (string-append "https://github.com/seqan/seqan/releases/"
6053 "download/seqan-v" version
6054 "/seqan-library-" version ".tar.xz"))
6055 (sha256
6056 (base32
6057 "19a1rlxx03qy1i1iriicly68w64yjxbv24g9gdywnfmq998v35yx"))))
6058 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
6059 ;; makes sense to split the outputs.
6060 (outputs '("out" "doc"))
6061 (build-system trivial-build-system)
6062 (arguments
6063 `(#:modules ((guix build utils))
6064 #:builder
6065 (begin
6066 (use-modules (guix build utils))
6067 (let ((tar (assoc-ref %build-inputs "tar"))
6068 (xz (assoc-ref %build-inputs "xz"))
6069 (out (assoc-ref %outputs "out"))
6070 (doc (assoc-ref %outputs "doc")))
6071 (setenv "PATH" (string-append tar "/bin:" xz "/bin"))
6072 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
6073 (chdir (string-append "seqan-library-" ,version))
6074 (copy-recursively "include" (string-append out "/include"))
6075 (copy-recursively "share" (string-append doc "/share"))
6076 #t))))
6077 (native-inputs
6078 `(("source" ,source)
6079 ("tar" ,tar)
6080 ("xz" ,xz)))
6081 (home-page "http://www.seqan.de")
6082 (synopsis "Library for nucleotide sequence analysis")
6083 (description
6084 "SeqAn is a C++ library of efficient algorithms and data structures for
6085 the analysis of sequences with the focus on biological data. It contains
6086 algorithms and data structures for string representation and their
6087 manipulation, online and indexed string search, efficient I/O of
6088 bioinformatics file formats, sequence alignment, and more.")
6089 (license license:bsd-3)))
6090
6091 (define-public seqan-1
6092 (package (inherit seqan)
6093 (name "seqan")
6094 (version "1.4.2")
6095 (source (origin
6096 (method url-fetch)
6097 (uri (string-append "http://packages.seqan.de/seqan-library/"
6098 "seqan-library-" version ".tar.bz2"))
6099 (sha256
6100 (base32
6101 "05s3wrrwn50f81aklfm65i4a749zag1vr8z03k21xm0pdxy47yvp"))))
6102 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
6103 ;; makes sense to split the outputs.
6104 (outputs '("out" "doc"))
6105 (build-system trivial-build-system)
6106 (arguments
6107 `(#:modules ((guix build utils))
6108 #:builder
6109 (begin
6110 (use-modules (guix build utils))
6111 (let ((tar (assoc-ref %build-inputs "tar"))
6112 (bzip (assoc-ref %build-inputs "bzip2"))
6113 (out (assoc-ref %outputs "out"))
6114 (doc (assoc-ref %outputs "doc")))
6115 (setenv "PATH" (string-append tar "/bin:" bzip "/bin"))
6116 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
6117 (chdir (string-append "seqan-library-" ,version))
6118 (copy-recursively "include" (string-append out "/include"))
6119 (copy-recursively "share" (string-append doc "/share"))
6120 #t))))
6121 (native-inputs
6122 `(("source" ,source)
6123 ("tar" ,tar)
6124 ("bzip2" ,bzip2)))))
6125
6126 (define-public seqmagick
6127 (package
6128 (name "seqmagick")
6129 (version "0.7.0")
6130 (source
6131 (origin
6132 (method url-fetch)
6133 (uri (pypi-uri "seqmagick" version))
6134 (sha256
6135 (base32
6136 "12bfyp8nqi0hd36rmj450aygafp01qy3hkbvlwn3bk39pyjjkgg5"))))
6137 (build-system python-build-system)
6138 (inputs
6139 `(("python-biopython" ,python-biopython)))
6140 (native-inputs
6141 `(("python-nose" ,python-nose)))
6142 (home-page "https://github.com/fhcrc/seqmagick")
6143 (synopsis "Tools for converting and modifying sequence files")
6144 (description
6145 "Bioinformaticians often have to convert sequence files between formats
6146 and do little manipulations on them, and it's not worth writing scripts for
6147 that. Seqmagick is a utility to expose the file format conversion in
6148 BioPython in a convenient way. Instead of having a big mess of scripts, there
6149 is one that takes arguments.")
6150 (license license:gpl3)))
6151
6152 (define-public seqtk
6153 (package
6154 (name "seqtk")
6155 (version "1.3")
6156 (source (origin
6157 (method git-fetch)
6158 (uri (git-reference
6159 (url "https://github.com/lh3/seqtk.git")
6160 (commit (string-append "v" version))))
6161 (file-name (git-file-name name version))
6162 (sha256
6163 (base32
6164 "1bfzlqa84b5s1qi22blmmw2s8xdyp9h9ydcq22pfjhh5gab3yz6l"))))
6165 (build-system gnu-build-system)
6166 (arguments
6167 `(#:phases
6168 (modify-phases %standard-phases
6169 (delete 'configure)
6170 (replace 'check
6171 ;; There are no tests, so we just run a sanity check.
6172 (lambda _ (invoke "./seqtk" "seq") #t))
6173 (replace 'install
6174 (lambda* (#:key outputs #:allow-other-keys)
6175 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6176 (install-file "seqtk" bin)
6177 #t))))))
6178 (inputs
6179 `(("zlib" ,zlib)))
6180 (home-page "https://github.com/lh3/seqtk")
6181 (synopsis "Toolkit for processing biological sequences in FASTA/Q format")
6182 (description
6183 "Seqtk is a fast and lightweight tool for processing sequences in the
6184 FASTA or FASTQ format. It parses both FASTA and FASTQ files which can be
6185 optionally compressed by gzip.")
6186 (license license:expat)))
6187
6188 (define-public snap-aligner
6189 (package
6190 (name "snap-aligner")
6191 (version "1.0beta.18")
6192 (source (origin
6193 (method git-fetch)
6194 (uri (git-reference
6195 (url "https://github.com/amplab/snap.git")
6196 (commit (string-append "v" version))))
6197 (file-name (git-file-name name version))
6198 (sha256
6199 (base32
6200 "01w3qq4wm07z73vky0cfwlmrbf50n3w722cxrlzxfi99mnb808d8"))))
6201 (build-system gnu-build-system)
6202 (arguments
6203 '(#:phases
6204 (modify-phases %standard-phases
6205 (delete 'configure)
6206 (replace 'check (lambda _ (invoke "./unit_tests") #t))
6207 (replace 'install
6208 (lambda* (#:key outputs #:allow-other-keys)
6209 (let* ((out (assoc-ref outputs "out"))
6210 (bin (string-append out "/bin")))
6211 (install-file "snap-aligner" bin)
6212 (install-file "SNAPCommand" bin)
6213 #t))))))
6214 (native-inputs
6215 `(("zlib" ,zlib)))
6216 (home-page "http://snap.cs.berkeley.edu/")
6217 (synopsis "Short read DNA sequence aligner")
6218 (description
6219 "SNAP is a fast and accurate aligner for short DNA reads. It is
6220 optimized for modern read lengths of 100 bases or higher, and takes advantage
6221 of these reads to align data quickly through a hash-based indexing scheme.")
6222 ;; 32-bit systems are not supported by the unpatched code.
6223 ;; Following the bug reports https://github.com/amplab/snap/issues/68 and
6224 ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812378 we see that
6225 ;; systems without a lot of memory cannot make good use of this program.
6226 (supported-systems '("x86_64-linux"))
6227 (license license:asl2.0)))
6228
6229 (define-public sortmerna
6230 (package
6231 (name "sortmerna")
6232 (version "2.1b")
6233 (source
6234 (origin
6235 (method git-fetch)
6236 (uri (git-reference
6237 (url "https://github.com/biocore/sortmerna.git")
6238 (commit version)))
6239 (file-name (git-file-name name version))
6240 (sha256
6241 (base32
6242 "0j3mbz4n25738yijmjbr5r4fyvkgm8v5vn3sshyfvmyqf5q9byqf"))))
6243 (build-system gnu-build-system)
6244 (outputs '("out" ;for binaries
6245 "db")) ;for sequence databases
6246 (arguments
6247 `(#:phases
6248 (modify-phases %standard-phases
6249 (replace 'install
6250 (lambda* (#:key outputs #:allow-other-keys)
6251 (let* ((out (assoc-ref outputs "out"))
6252 (bin (string-append out "/bin"))
6253 (db (assoc-ref outputs "db"))
6254 (share
6255 (string-append db "/share/sortmerna/rRNA_databases")))
6256 (install-file "sortmerna" bin)
6257 (install-file "indexdb_rna" bin)
6258 (for-each (lambda (file)
6259 (install-file file share))
6260 (find-files "rRNA_databases" ".*fasta"))
6261 #t))))))
6262 (inputs
6263 `(("zlib" ,zlib)))
6264 (home-page "http://bioinfo.lifl.fr/RNA/sortmerna")
6265 (synopsis "Biological sequence analysis tool for NGS reads")
6266 (description
6267 "SortMeRNA is a biological sequence analysis tool for filtering, mapping
6268 and operational taxonomic unit (OTU) picking of next generation
6269 sequencing (NGS) reads. The core algorithm is based on approximate seeds and
6270 allows for fast and sensitive analyses of nucleotide sequences. The main
6271 application of SortMeRNA is filtering rRNA from metatranscriptomic data.")
6272 ;; The source includes x86 specific code
6273 (supported-systems '("x86_64-linux" "i686-linux"))
6274 (license license:lgpl3)))
6275
6276 (define-public star
6277 (package
6278 (name "star")
6279 (version "2.7.1a")
6280 (source (origin
6281 (method git-fetch)
6282 (uri (git-reference
6283 (url "https://github.com/alexdobin/STAR.git")
6284 (commit version)))
6285 (file-name (string-append name "-" version "-checkout"))
6286 (sha256
6287 (base32
6288 "0n6g4s4hgw7qygs1z97j7a2dgz8gfaa4cv5pjvvvmarvk0x07hyg"))
6289 (modules '((guix build utils)))
6290 (snippet
6291 '(begin
6292 (substitute* "source/Makefile"
6293 (("/bin/rm") "rm"))
6294 ;; Remove pre-built binaries and bundled htslib sources.
6295 (delete-file-recursively "bin/MacOSX_x86_64")
6296 (delete-file-recursively "bin/Linux_x86_64")
6297 (delete-file-recursively "bin/Linux_x86_64_static")
6298 (delete-file-recursively "source/htslib")
6299 #t))))
6300 (build-system gnu-build-system)
6301 (arguments
6302 '(#:tests? #f ;no check target
6303 #:make-flags '("STAR")
6304 #:phases
6305 (modify-phases %standard-phases
6306 (add-after 'unpack 'enter-source-dir
6307 (lambda _ (chdir "source") #t))
6308 (add-after 'enter-source-dir 'make-reproducible
6309 (lambda _
6310 (substitute* "Makefile"
6311 (("(COMPILATION_TIME_PLACE=\")(.*)(\")" _ pre mid post)
6312 (string-append pre "Built with Guix" post)))
6313 #t))
6314 ;; See https://github.com/alexdobin/STAR/pull/562
6315 (add-after 'enter-source-dir 'add-missing-header
6316 (lambda _
6317 (substitute* "SoloReadFeature_inputRecords.cpp"
6318 (("#include \"binarySearch2.h\"" h)
6319 (string-append h "\n#include <math.h>")))
6320 #t))
6321 (add-after 'enter-source-dir 'do-not-use-bundled-htslib
6322 (lambda _
6323 (substitute* "Makefile"
6324 (("(Depend.list: \\$\\(SOURCES\\) parametersDefault\\.xxd) htslib"
6325 _ prefix) prefix))
6326 (substitute* '("BAMfunctions.cpp"
6327 "signalFromBAM.h"
6328 "bam_cat.h"
6329 "bam_cat.c"
6330 "STAR.cpp"
6331 "bamRemoveDuplicates.cpp")
6332 (("#include \"htslib/([^\"]+\\.h)\"" _ header)
6333 (string-append "#include <" header ">")))
6334 (substitute* "IncludeDefine.h"
6335 (("\"htslib/(htslib/[^\"]+.h)\"" _ header)
6336 (string-append "<" header ">")))
6337 #t))
6338 (replace 'install
6339 (lambda* (#:key outputs #:allow-other-keys)
6340 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6341 (install-file "STAR" bin))
6342 #t))
6343 (delete 'configure))))
6344 (native-inputs
6345 `(("xxd" ,xxd)))
6346 (inputs
6347 `(("htslib" ,htslib)
6348 ("zlib" ,zlib)))
6349 (home-page "https://github.com/alexdobin/STAR")
6350 (synopsis "Universal RNA-seq aligner")
6351 (description
6352 "The Spliced Transcripts Alignment to a Reference (STAR) software is
6353 based on a previously undescribed RNA-seq alignment algorithm that uses
6354 sequential maximum mappable seed search in uncompressed suffix arrays followed
6355 by seed clustering and stitching procedure. In addition to unbiased de novo
6356 detection of canonical junctions, STAR can discover non-canonical splices and
6357 chimeric (fusion) transcripts, and is also capable of mapping full-length RNA
6358 sequences.")
6359 ;; Only 64-bit systems are supported according to the README.
6360 (supported-systems '("x86_64-linux" "mips64el-linux"))
6361 ;; STAR is licensed under GPLv3 or later; htslib is MIT-licensed.
6362 (license license:gpl3+)))
6363
6364 (define-public starlong
6365 (package (inherit star)
6366 (name "starlong")
6367 (arguments
6368 (substitute-keyword-arguments (package-arguments star)
6369 ((#:make-flags flags)
6370 `(list "STARlong"))
6371 ((#:phases phases)
6372 `(modify-phases ,phases
6373 ;; Allow extra long sequence reads.
6374 (add-after 'unpack 'make-extra-long
6375 (lambda _
6376 (substitute* "source/IncludeDefine.h"
6377 (("(#define DEF_readNameLengthMax ).*" _ match)
6378 (string-append match "900000\n")))
6379 #t))
6380 (replace 'install
6381 (lambda* (#:key outputs #:allow-other-keys)
6382 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6383 (install-file "STARlong" bin))
6384 #t))))))))
6385
6386 (define-public subread
6387 (package
6388 (name "subread")
6389 (version "1.6.0")
6390 (source (origin
6391 (method url-fetch)
6392 (uri (string-append "mirror://sourceforge/subread/subread-"
6393 version "/subread-" version "-source.tar.gz"))
6394 (sha256
6395 (base32
6396 "0ah0n4jx6ksk2m2j7xk385x2qzmk1y4rfc6a4mfrdqrlq721w99i"))))
6397 (build-system gnu-build-system)
6398 (arguments
6399 `(#:tests? #f ;no "check" target
6400 ;; The CC and CCFLAGS variables are set to contain a lot of x86_64
6401 ;; optimizations by default, so we override these flags such that x86_64
6402 ;; flags are only added when the build target is an x86_64 system.
6403 #:make-flags
6404 (list (let ((system ,(or (%current-target-system)
6405 (%current-system)))
6406 (flags '("-ggdb" "-fomit-frame-pointer"
6407 "-ffast-math" "-funroll-loops"
6408 "-fmessage-length=0"
6409 "-O9" "-Wall" "-DMAKE_FOR_EXON"
6410 "-DMAKE_STANDALONE"
6411 "-DSUBREAD_VERSION=\\\"${SUBREAD_VERSION}\\\""))
6412 (flags64 '("-mmmx" "-msse" "-msse2" "-msse3")))
6413 (if (string-prefix? "x86_64" system)
6414 (string-append "CCFLAGS=" (string-join (append flags flags64)))
6415 (string-append "CCFLAGS=" (string-join flags))))
6416 "-f" "Makefile.Linux"
6417 "CC=gcc ${CCFLAGS}")
6418 #:phases
6419 (modify-phases %standard-phases
6420 (add-after 'unpack 'enter-dir
6421 (lambda _ (chdir "src") #t))
6422 (replace 'install
6423 (lambda* (#:key outputs #:allow-other-keys)
6424 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6425 (mkdir-p bin)
6426 (copy-recursively "../bin" bin))
6427 #t))
6428 ;; no "configure" script
6429 (delete 'configure))))
6430 (inputs `(("zlib" ,zlib)))
6431 (home-page "http://bioinf.wehi.edu.au/subread-package/")
6432 (synopsis "Tool kit for processing next-gen sequencing data")
6433 (description
6434 "The subread package contains the following tools: subread aligner, a
6435 general-purpose read aligner; subjunc aligner: detecting exon-exon junctions
6436 and mapping RNA-seq reads; featureCounts: counting mapped reads for genomic
6437 features; exactSNP: a SNP caller that discovers SNPs by testing signals
6438 against local background noises.")
6439 (license license:gpl3+)))
6440
6441 (define-public stringtie
6442 (package
6443 (name "stringtie")
6444 (version "1.2.1")
6445 (source (origin
6446 (method url-fetch)
6447 (uri (string-append "http://ccb.jhu.edu/software/stringtie/dl/"
6448 "stringtie-" version ".tar.gz"))
6449 (sha256
6450 (base32
6451 "1cqllsc1maq4kh92isi8yadgzbmnf042hlnalpk3y59aph1z3bfz"))
6452 (modules '((guix build utils)))
6453 (snippet
6454 '(begin
6455 (delete-file-recursively "samtools-0.1.18")
6456 #t))))
6457 (build-system gnu-build-system)
6458 (arguments
6459 `(#:tests? #f ;no test suite
6460 #:phases
6461 (modify-phases %standard-phases
6462 ;; no configure script
6463 (delete 'configure)
6464 (add-before 'build 'use-system-samtools
6465 (lambda _
6466 (substitute* "Makefile"
6467 (("stringtie: \\$\\{BAM\\}/libbam\\.a")
6468 "stringtie: "))
6469 (substitute* '("gclib/GBam.h"
6470 "gclib/GBam.cpp")
6471 (("#include \"(bam|sam|kstring).h\"" _ header)
6472 (string-append "#include <samtools/" header ".h>")))
6473 #t))
6474 (add-after 'unpack 'remove-duplicate-typedef
6475 (lambda _
6476 ;; This typedef conflicts with the typedef in
6477 ;; glibc-2.25/include/bits/types.h
6478 (substitute* "gclib/GThreads.h"
6479 (("typedef long long __intmax_t;") ""))
6480 #t))
6481 (replace 'install
6482 (lambda* (#:key outputs #:allow-other-keys)
6483 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6484 (install-file "stringtie" bin)
6485 #t))))))
6486 (inputs
6487 `(("samtools" ,samtools-0.1)
6488 ("zlib" ,zlib)))
6489 (home-page "http://ccb.jhu.edu/software/stringtie/")
6490 (synopsis "Transcript assembly and quantification for RNA-Seq data")
6491 (description
6492 "StringTie is a fast and efficient assembler of RNA-Seq sequence
6493 alignments into potential transcripts. It uses a novel network flow algorithm
6494 as well as an optional de novo assembly step to assemble and quantitate
6495 full-length transcripts representing multiple splice variants for each gene
6496 locus. Its input can include not only the alignments of raw reads used by
6497 other transcript assemblers, but also alignments of longer sequences that have
6498 been assembled from those reads. To identify differentially expressed genes
6499 between experiments, StringTie's output can be processed either by the
6500 Cuffdiff or Ballgown programs.")
6501 (license license:artistic2.0)))
6502
6503 (define-public taxtastic
6504 (package
6505 (name "taxtastic")
6506 (version "0.8.5")
6507 (source (origin
6508 (method url-fetch)
6509 (uri (pypi-uri "taxtastic" version))
6510 (sha256
6511 (base32
6512 "03pysw79lsrvz4lwzis88j15067ffqbi4cid5pqhrlxmd6bh8rrk"))))
6513 (build-system python-build-system)
6514 (arguments
6515 `(#:python ,python-2
6516 #:phases
6517 (modify-phases %standard-phases
6518 (replace 'check
6519 (lambda _ (invoke "python" "-m" "unittest" "discover" "-v") #t)))))
6520 (propagated-inputs
6521 `(("python-sqlalchemy" ,python2-sqlalchemy)
6522 ("python-decorator" ,python2-decorator)
6523 ("python-biopython" ,python2-biopython)
6524 ("python-pandas" ,python2-pandas)
6525 ("python-psycopg2" ,python2-psycopg2)
6526 ("python-fastalite" ,python2-fastalite)
6527 ("python-pyyaml" ,python2-pyyaml)
6528 ("python-six" ,python2-six)
6529 ("python-jinja2" ,python2-jinja2)
6530 ("python-dendropy" ,python2-dendropy)))
6531 (home-page "https://github.com/fhcrc/taxtastic")
6532 (synopsis "Tools for taxonomic naming and annotation")
6533 (description
6534 "Taxtastic is software written in python used to build and maintain
6535 reference packages i.e. collections of reference trees, reference alignments,
6536 profiles, and associated taxonomic information.")
6537 (license license:gpl3+)))
6538
6539 (define-public vcftools
6540 (package
6541 (name "vcftools")
6542 (version "0.1.15")
6543 (source (origin
6544 (method url-fetch)
6545 (uri (string-append
6546 "https://github.com/vcftools/vcftools/releases/download/v"
6547 version "/vcftools-" version ".tar.gz"))
6548 (sha256
6549 (base32
6550 "1qw30c45wihgy632rbz4rh3njnwj4msj46l1rsgdhyg6bgypmr1i"))))
6551 (build-system gnu-build-system)
6552 (arguments
6553 `(#:tests? #f ; no "check" target
6554 #:make-flags (list
6555 "CFLAGS=-O2" ; override "-m64" flag
6556 (string-append "PREFIX=" (assoc-ref %outputs "out"))
6557 (string-append "MANDIR=" (assoc-ref %outputs "out")
6558 "/share/man/man1"))))
6559 (native-inputs
6560 `(("pkg-config" ,pkg-config)))
6561 (inputs
6562 `(("perl" ,perl)
6563 ("zlib" ,zlib)))
6564 (home-page "https://vcftools.github.io/")
6565 (synopsis "Tools for working with VCF files")
6566 (description
6567 "VCFtools is a program package designed for working with VCF files, such
6568 as those generated by the 1000 Genomes Project. The aim of VCFtools is to
6569 provide easily accessible methods for working with complex genetic variation
6570 data in the form of VCF files.")
6571 ;; The license is declared as LGPLv3 in the README and
6572 ;; at https://vcftools.github.io/license.html
6573 (license license:lgpl3)))
6574
6575 (define-public infernal
6576 (package
6577 (name "infernal")
6578 (version "1.1.2")
6579 (source (origin
6580 (method url-fetch)
6581 (uri (string-append "http://eddylab.org/software/infernal/"
6582 "infernal-" version ".tar.gz"))
6583 (sha256
6584 (base32
6585 "0sr2hiz3qxfwqpz3whxr6n82p3x27336v3f34iqznp10hks2935c"))))
6586 (build-system gnu-build-system)
6587 (native-inputs
6588 `(("perl" ,perl))) ; for tests
6589 (home-page "http://eddylab.org/infernal/")
6590 (synopsis "Inference of RNA alignments")
6591 (description "Infernal (\"INFERence of RNA ALignment\") is a tool for
6592 searching DNA sequence databases for RNA structure and sequence similarities.
6593 It is an implementation of a special case of profile stochastic context-free
6594 grammars called @dfn{covariance models} (CMs). A CM is like a sequence
6595 profile, but it scores a combination of sequence consensus and RNA secondary
6596 structure consensus, so in many cases, it is more capable of identifying RNA
6597 homologs that conserve their secondary structure more than their primary
6598 sequence.")
6599 ;; Infernal 1.1.2 requires VMX or SSE capability for parallel instructions.
6600 (supported-systems '("i686-linux" "x86_64-linux"))
6601 (license license:bsd-3)))
6602
6603 (define-public r-scde
6604 (package
6605 (name "r-scde")
6606 (version "1.99.2")
6607 (source (origin
6608 (method git-fetch)
6609 (uri (git-reference
6610 (url "https://github.com/hms-dbmi/scde.git")
6611 (commit version)))
6612 (file-name (git-file-name name version))
6613 (sha256
6614 (base32
6615 "10na2gyka24mszdxf92wz9h2c13hdf1ww30c68gfsw53lvvhhhxb"))))
6616 (build-system r-build-system)
6617 (propagated-inputs
6618 `(("r-rcpp" ,r-rcpp)
6619 ("r-rcpparmadillo" ,r-rcpparmadillo)
6620 ("r-mgcv" ,r-mgcv)
6621 ("r-rook" ,r-rook)
6622 ("r-rjson" ,r-rjson)
6623 ("r-cairo" ,r-cairo)
6624 ("r-rcolorbrewer" ,r-rcolorbrewer)
6625 ("r-edger" ,r-edger)
6626 ("r-quantreg" ,r-quantreg)
6627 ("r-nnet" ,r-nnet)
6628 ("r-rmtstat" ,r-rmtstat)
6629 ("r-extremes" ,r-extremes)
6630 ("r-pcamethods" ,r-pcamethods)
6631 ("r-biocparallel" ,r-biocparallel)
6632 ("r-flexmix" ,r-flexmix)))
6633 (home-page "https://hms-dbmi.github.io/scde/")
6634 (synopsis "R package for analyzing single-cell RNA-seq data")
6635 (description "The SCDE package implements a set of statistical methods for
6636 analyzing single-cell RNA-seq data. SCDE fits individual error models for
6637 single-cell RNA-seq measurements. These models can then be used for
6638 assessment of differential expression between groups of cells, as well as
6639 other types of analysis. The SCDE package also contains the pagoda framework
6640 which applies pathway and gene set overdispersion analysis to identify aspects
6641 of transcriptional heterogeneity among single cells.")
6642 ;; See https://github.com/hms-dbmi/scde/issues/38
6643 (license license:gpl2)))
6644
6645 (define-public r-centipede
6646 (package
6647 (name "r-centipede")
6648 (version "1.2")
6649 (source (origin
6650 (method url-fetch)
6651 (uri (string-append "http://download.r-forge.r-project.org/"
6652 "src/contrib/CENTIPEDE_" version ".tar.gz"))
6653 (sha256
6654 (base32
6655 "1hsx6qgwr0i67fhy9257zj7s0ppncph2hjgbia5nn6nfmj0ax6l9"))))
6656 (build-system r-build-system)
6657 (home-page "http://centipede.uchicago.edu/")
6658 (synopsis "Predict transcription factor binding sites")
6659 (description
6660 "CENTIPEDE applies a hierarchical Bayesian mixture model to infer regions
6661 of the genome that are bound by particular transcription factors. It starts
6662 by identifying a set of candidate binding sites, and then aims to classify the
6663 sites according to whether each site is bound or not bound by a transcription
6664 factor. CENTIPEDE is an unsupervised learning algorithm that discriminates
6665 between two different types of motif instances using as much relevant
6666 information as possible.")
6667 (license (list license:gpl2+ license:gpl3+))))
6668
6669 (define-public r-genefilter
6670 (package
6671 (name "r-genefilter")
6672 (version "1.66.0")
6673 (source
6674 (origin
6675 (method url-fetch)
6676 (uri (bioconductor-uri "genefilter" version))
6677 (sha256
6678 (base32
6679 "1jq7lam4dnbvz55lx93kcl9afl8xfjd6xs374d35m21bkay418kj"))))
6680 (build-system r-build-system)
6681 (native-inputs
6682 `(("gfortran" ,gfortran)))
6683 (propagated-inputs
6684 `(("r-annotate" ,r-annotate)
6685 ("r-annotationdbi" ,r-annotationdbi)
6686 ("r-biobase" ,r-biobase)
6687 ("r-s4vectors" ,r-s4vectors)
6688 ("r-survival" ,r-survival)))
6689 (home-page "https://bioconductor.org/packages/genefilter")
6690 (synopsis "Filter genes from high-throughput experiments")
6691 (description
6692 "This package provides basic functions for filtering genes from
6693 high-throughput sequencing experiments.")
6694 (license license:artistic2.0)))
6695
6696 (define-public r-deseq2
6697 (package
6698 (name "r-deseq2")
6699 (version "1.24.0")
6700 (source
6701 (origin
6702 (method url-fetch)
6703 (uri (bioconductor-uri "DESeq2" version))
6704 (sha256
6705 (base32
6706 "0fkk326addm2cw688gnmdzsmri5qx8j6ldnr4xin6kjnwicqhlqd"))))
6707 (properties `((upstream-name . "DESeq2")))
6708 (build-system r-build-system)
6709 (propagated-inputs
6710 `(("r-biobase" ,r-biobase)
6711 ("r-biocgenerics" ,r-biocgenerics)
6712 ("r-biocparallel" ,r-biocparallel)
6713 ("r-genefilter" ,r-genefilter)
6714 ("r-geneplotter" ,r-geneplotter)
6715 ("r-genomicranges" ,r-genomicranges)
6716 ("r-ggplot2" ,r-ggplot2)
6717 ("r-hmisc" ,r-hmisc)
6718 ("r-iranges" ,r-iranges)
6719 ("r-locfit" ,r-locfit)
6720 ("r-rcpp" ,r-rcpp)
6721 ("r-rcpparmadillo" ,r-rcpparmadillo)
6722 ("r-s4vectors" ,r-s4vectors)
6723 ("r-summarizedexperiment" ,r-summarizedexperiment)))
6724 (home-page "https://bioconductor.org/packages/DESeq2")
6725 (synopsis "Differential gene expression analysis")
6726 (description
6727 "This package provides functions to estimate variance-mean dependence in
6728 count data from high-throughput nucleotide sequencing assays and test for
6729 differential expression based on a model using the negative binomial
6730 distribution.")
6731 (license license:lgpl3+)))
6732
6733 (define-public r-dexseq
6734 (package
6735 (name "r-dexseq")
6736 (version "1.30.0")
6737 (source
6738 (origin
6739 (method url-fetch)
6740 (uri (bioconductor-uri "DEXSeq" version))
6741 (sha256
6742 (base32
6743 "1b2s0vwm97g0wgm4ms0f4pqkqiqmxscnhg700aybl5vx0m2fa8xm"))))
6744 (properties `((upstream-name . "DEXSeq")))
6745 (build-system r-build-system)
6746 (propagated-inputs
6747 `(("r-annotationdbi" ,r-annotationdbi)
6748 ("r-biobase" ,r-biobase)
6749 ("r-biocgenerics" ,r-biocgenerics)
6750 ("r-biocparallel" ,r-biocparallel)
6751 ("r-biomart" ,r-biomart)
6752 ("r-deseq2" ,r-deseq2)
6753 ("r-genefilter" ,r-genefilter)
6754 ("r-geneplotter" ,r-geneplotter)
6755 ("r-genomicranges" ,r-genomicranges)
6756 ("r-hwriter" ,r-hwriter)
6757 ("r-iranges" ,r-iranges)
6758 ("r-rcolorbrewer" ,r-rcolorbrewer)
6759 ("r-rsamtools" ,r-rsamtools)
6760 ("r-s4vectors" ,r-s4vectors)
6761 ("r-statmod" ,r-statmod)
6762 ("r-stringr" ,r-stringr)
6763 ("r-summarizedexperiment" ,r-summarizedexperiment)))
6764 (home-page "https://bioconductor.org/packages/DEXSeq")
6765 (synopsis "Inference of differential exon usage in RNA-Seq")
6766 (description
6767 "This package is focused on finding differential exon usage using RNA-seq
6768 exon counts between samples with different experimental designs. It provides
6769 functions that allows the user to make the necessary statistical tests based
6770 on a model that uses the negative binomial distribution to estimate the
6771 variance between biological replicates and generalized linear models for
6772 testing. The package also provides functions for the visualization and
6773 exploration of the results.")
6774 (license license:gpl3+)))
6775
6776 (define-public r-annotationforge
6777 (package
6778 (name "r-annotationforge")
6779 (version "1.26.0")
6780 (source
6781 (origin
6782 (method url-fetch)
6783 (uri (bioconductor-uri "AnnotationForge" version))
6784 (sha256
6785 (base32
6786 "0m4w8n2711wr28znv646cfc7m5jqlr8friz334zdyjmhg7m2xkb7"))))
6787 (properties
6788 `((upstream-name . "AnnotationForge")))
6789 (build-system r-build-system)
6790 (propagated-inputs
6791 `(("r-annotationdbi" ,r-annotationdbi)
6792 ("r-biobase" ,r-biobase)
6793 ("r-biocgenerics" ,r-biocgenerics)
6794 ("r-dbi" ,r-dbi)
6795 ("r-rcurl" ,r-rcurl)
6796 ("r-rsqlite" ,r-rsqlite)
6797 ("r-s4vectors" ,r-s4vectors)
6798 ("r-xml" ,r-xml)))
6799 (home-page "https://bioconductor.org/packages/AnnotationForge")
6800 (synopsis "Code for building annotation database packages")
6801 (description
6802 "This package provides code for generating Annotation packages and their
6803 databases. Packages produced are intended to be used with AnnotationDbi.")
6804 (license license:artistic2.0)))
6805
6806 (define-public r-rbgl
6807 (package
6808 (name "r-rbgl")
6809 (version "1.60.0")
6810 (source
6811 (origin
6812 (method url-fetch)
6813 (uri (bioconductor-uri "RBGL" version))
6814 (sha256
6815 (base32
6816 "06brn9hl6lybx6hdfp1sycwj6wn1bjfi8xyhpy0v122v1z8d5mbz"))))
6817 (properties `((upstream-name . "RBGL")))
6818 (build-system r-build-system)
6819 (propagated-inputs
6820 `(("r-bh" ,r-bh)
6821 ("r-graph" ,r-graph)))
6822 (home-page "https://www.bioconductor.org/packages/RBGL")
6823 (synopsis "Interface to the Boost graph library")
6824 (description
6825 "This package provides a fairly extensive and comprehensive interface to
6826 the graph algorithms contained in the Boost library.")
6827 (license license:artistic2.0)))
6828
6829 (define-public r-gseabase
6830 (package
6831 (name "r-gseabase")
6832 (version "1.46.0")
6833 (source
6834 (origin
6835 (method url-fetch)
6836 (uri (bioconductor-uri "GSEABase" version))
6837 (sha256
6838 (base32
6839 "0vh53xk2prjbdkbr3hwfiflx1gh7ilrqs3j1p3lyd6syy3rn9n83"))))
6840 (properties `((upstream-name . "GSEABase")))
6841 (build-system r-build-system)
6842 (propagated-inputs
6843 `(("r-annotate" ,r-annotate)
6844 ("r-annotationdbi" ,r-annotationdbi)
6845 ("r-biobase" ,r-biobase)
6846 ("r-biocgenerics" ,r-biocgenerics)
6847 ("r-graph" ,r-graph)
6848 ("r-xml" ,r-xml)))
6849 (home-page "https://bioconductor.org/packages/GSEABase")
6850 (synopsis "Gene set enrichment data structures and methods")
6851 (description
6852 "This package provides classes and methods to support @dfn{Gene Set
6853 Enrichment Analysis} (GSEA).")
6854 (license license:artistic2.0)))
6855
6856 (define-public r-category
6857 (package
6858 (name "r-category")
6859 (version "2.50.0")
6860 (source
6861 (origin
6862 (method url-fetch)
6863 (uri (bioconductor-uri "Category" version))
6864 (sha256
6865 (base32
6866 "1n36xfnwn2np5f0lix9abvv9w6jb25jqz3xzvqzklz9s1af4k6x4"))))
6867 (properties `((upstream-name . "Category")))
6868 (build-system r-build-system)
6869 (propagated-inputs
6870 `(("r-annotate" ,r-annotate)
6871 ("r-annotationdbi" ,r-annotationdbi)
6872 ("r-biobase" ,r-biobase)
6873 ("r-biocgenerics" ,r-biocgenerics)
6874 ("r-genefilter" ,r-genefilter)
6875 ("r-graph" ,r-graph)
6876 ("r-gseabase" ,r-gseabase)
6877 ("r-matrix" ,r-matrix)
6878 ("r-rbgl" ,r-rbgl)
6879 ("r-dbi" ,r-dbi)))
6880 (home-page "https://bioconductor.org/packages/Category")
6881 (synopsis "Category analysis")
6882 (description
6883 "This package provides a collection of tools for performing category
6884 analysis.")
6885 (license license:artistic2.0)))
6886
6887 (define-public r-gostats
6888 (package
6889 (name "r-gostats")
6890 (version "2.50.0")
6891 (source
6892 (origin
6893 (method url-fetch)
6894 (uri (bioconductor-uri "GOstats" version))
6895 (sha256
6896 (base32
6897 "1a95i6awm2a8xv42fg2z3n29fg9z29i45kd80hxf6mvqqgzj80xp"))))
6898 (properties `((upstream-name . "GOstats")))
6899 (build-system r-build-system)
6900 (propagated-inputs
6901 `(("r-annotate" ,r-annotate)
6902 ("r-annotationdbi" ,r-annotationdbi)
6903 ("r-annotationforge" ,r-annotationforge)
6904 ("r-biobase" ,r-biobase)
6905 ("r-category" ,r-category)
6906 ("r-go-db" ,r-go-db)
6907 ("r-graph" ,r-graph)
6908 ("r-rgraphviz" ,r-rgraphviz)
6909 ("r-rbgl" ,r-rbgl)))
6910 (home-page "https://bioconductor.org/packages/GOstats")
6911 (synopsis "Tools for manipulating GO and microarrays")
6912 (description
6913 "This package provides a set of tools for interacting with GO and
6914 microarray data. A variety of basic manipulation tools for graphs, hypothesis
6915 testing and other simple calculations.")
6916 (license license:artistic2.0)))
6917
6918 (define-public r-shortread
6919 (package
6920 (name "r-shortread")
6921 (version "1.42.0")
6922 (source
6923 (origin
6924 (method url-fetch)
6925 (uri (bioconductor-uri "ShortRead" version))
6926 (sha256
6927 (base32
6928 "1irqzdgsavjqsq0vva4966qh8qgn7xn9382dmhahm1hxb94qmi59"))))
6929 (properties `((upstream-name . "ShortRead")))
6930 (build-system r-build-system)
6931 (inputs
6932 `(("zlib" ,zlib)))
6933 (propagated-inputs
6934 `(("r-biobase" ,r-biobase)
6935 ("r-biocgenerics" ,r-biocgenerics)
6936 ("r-biocparallel" ,r-biocparallel)
6937 ("r-biostrings" ,r-biostrings)
6938 ("r-genomeinfodb" ,r-genomeinfodb)
6939 ("r-genomicalignments" ,r-genomicalignments)
6940 ("r-genomicranges" ,r-genomicranges)
6941 ("r-hwriter" ,r-hwriter)
6942 ("r-iranges" ,r-iranges)
6943 ("r-lattice" ,r-lattice)
6944 ("r-latticeextra" ,r-latticeextra)
6945 ("r-rsamtools" ,r-rsamtools)
6946 ("r-s4vectors" ,r-s4vectors)
6947 ("r-xvector" ,r-xvector)
6948 ("r-zlibbioc" ,r-zlibbioc)))
6949 (home-page "https://bioconductor.org/packages/ShortRead")
6950 (synopsis "FASTQ input and manipulation tools")
6951 (description
6952 "This package implements sampling, iteration, and input of FASTQ files.
6953 It includes functions for filtering and trimming reads, and for generating a
6954 quality assessment report. Data are represented as
6955 @code{DNAStringSet}-derived objects, and easily manipulated for a diversity of
6956 purposes. The package also contains legacy support for early single-end,
6957 ungapped alignment formats.")
6958 (license license:artistic2.0)))
6959
6960 (define-public r-systempiper
6961 (package
6962 (name "r-systempiper")
6963 (version "1.18.2")
6964 (source
6965 (origin
6966 (method url-fetch)
6967 (uri (bioconductor-uri "systemPipeR" version))
6968 (sha256
6969 (base32
6970 "18s5vpmw766pm64w7bwwfgpsv9yzhwclf0ya1rpqz8qslw7bbdjf"))))
6971 (properties `((upstream-name . "systemPipeR")))
6972 (build-system r-build-system)
6973 (propagated-inputs
6974 `(("r-annotate" ,r-annotate)
6975 ("r-batchtools" ,r-batchtools)
6976 ("r-biocgenerics" ,r-biocgenerics)
6977 ("r-biostrings" ,r-biostrings)
6978 ("r-deseq2" ,r-deseq2)
6979 ("r-edger" ,r-edger)
6980 ("r-genomicfeatures" ,r-genomicfeatures)
6981 ("r-genomicranges" ,r-genomicranges)
6982 ("r-ggplot2" ,r-ggplot2)
6983 ("r-go-db" ,r-go-db)
6984 ("r-gostats" ,r-gostats)
6985 ("r-limma" ,r-limma)
6986 ("r-pheatmap" ,r-pheatmap)
6987 ("r-rjson" ,r-rjson)
6988 ("r-rsamtools" ,r-rsamtools)
6989 ("r-shortread" ,r-shortread)
6990 ("r-summarizedexperiment" ,r-summarizedexperiment)
6991 ("r-yaml" ,r-yaml)
6992 ("r-variantannotation" ,r-variantannotation)))
6993 (home-page "https://github.com/tgirke/systemPipeR")
6994 (synopsis "Next generation sequencing workflow and reporting environment")
6995 (description
6996 "This R package provides tools for building and running automated
6997 end-to-end analysis workflows for a wide range of @dfn{next generation
6998 sequence} (NGS) applications such as RNA-Seq, ChIP-Seq, VAR-Seq and Ribo-Seq.
6999 Important features include a uniform workflow interface across different NGS
7000 applications, automated report generation, and support for running both R and
7001 command-line software, such as NGS aligners or peak/variant callers, on local
7002 computers or compute clusters. Efficient handling of complex sample sets and
7003 experimental designs is facilitated by a consistently implemented sample
7004 annotation infrastructure.")
7005 (license license:artistic2.0)))
7006
7007 (define-public r-grohmm
7008 (package
7009 (name "r-grohmm")
7010 (version "1.18.0")
7011 (source
7012 (origin
7013 (method url-fetch)
7014 (uri (bioconductor-uri "groHMM" version))
7015 (sha256
7016 (base32
7017 "1p368qf8ab1vy8gl2j7rx0l7bvva4m7w06i364rqzs0sdyzlbm3y"))))
7018 (properties `((upstream-name . "groHMM")))
7019 (build-system r-build-system)
7020 (propagated-inputs
7021 `(("r-genomeinfodb" ,r-genomeinfodb)
7022 ("r-genomicalignments" ,r-genomicalignments)
7023 ("r-genomicranges" ,r-genomicranges)
7024 ("r-iranges" ,r-iranges)
7025 ("r-mass" ,r-mass)
7026 ("r-rtracklayer" ,r-rtracklayer)
7027 ("r-s4vectors" ,r-s4vectors)))
7028 (home-page "https://github.com/Kraus-Lab/groHMM")
7029 (synopsis "GRO-seq analysis pipeline")
7030 (description
7031 "This package provides a pipeline for the analysis of GRO-seq data.")
7032 (license license:gpl3+)))
7033
7034 (define-public vsearch
7035 (package
7036 (name "vsearch")
7037 (version "2.9.1")
7038 (source
7039 (origin
7040 (method git-fetch)
7041 (uri (git-reference
7042 (url "https://github.com/torognes/vsearch.git")
7043 (commit (string-append "v" version))))
7044 (file-name (git-file-name name version))
7045 (sha256
7046 (base32
7047 "0vhrpjfdf75ba04b24xknp41790cvcgwl0vgpy7qbzj5xh2521ss"))
7048 (patches (search-patches "vsearch-unbundle-cityhash.patch"))
7049 (snippet
7050 '(begin
7051 ;; Remove bundled cityhash sources. The vsearch source is adjusted
7052 ;; for this in the patch.
7053 (delete-file "src/city.h")
7054 (delete-file "src/citycrc.h")
7055 (delete-file "src/city.cc")
7056 #t))))
7057 (build-system gnu-build-system)
7058 (inputs
7059 `(("zlib" ,zlib)
7060 ("bzip2" ,bzip2)
7061 ("cityhash" ,cityhash)))
7062 (native-inputs
7063 `(("autoconf" ,autoconf)
7064 ("automake" ,automake)))
7065 (synopsis "Sequence search tools for metagenomics")
7066 (description
7067 "VSEARCH supports DNA sequence searching, clustering, chimera detection,
7068 dereplication, pairwise alignment, shuffling, subsampling, sorting and
7069 masking. The tool takes advantage of parallelism in the form of SIMD
7070 vectorization as well as multiple threads to perform accurate alignments at
7071 high speed. VSEARCH uses an optimal global aligner (full dynamic programming
7072 Needleman-Wunsch).")
7073 (home-page "https://github.com/torognes/vsearch")
7074 ;; vsearch uses non-portable SSE intrinsics so building fails on other
7075 ;; platforms.
7076 (supported-systems '("x86_64-linux"))
7077 ;; Dual licensed; also includes public domain source.
7078 (license (list license:gpl3 license:bsd-2))))
7079
7080 (define-public pardre
7081 (package
7082 (name "pardre")
7083 ;; The source of 1.1.5 changed in place, so we append "-1" to the version.
7084 (version "1.1.5-1")
7085 (source
7086 (origin
7087 (method url-fetch)
7088 (uri (string-append "mirror://sourceforge/pardre/ParDRe-rel"
7089 "1.1.5" ".tar.gz"))
7090 (sha256
7091 (base32
7092 "17j73nc0viq4f6qj50nrndsrif5d6b71q8fl87m54psiv0ilns2b"))))
7093 (build-system gnu-build-system)
7094 (arguments
7095 `(#:tests? #f ; no tests included
7096 #:phases
7097 (modify-phases %standard-phases
7098 (delete 'configure)
7099 (replace 'install
7100 (lambda* (#:key outputs #:allow-other-keys)
7101 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
7102 (install-file "ParDRe" bin)
7103 #t))))))
7104 (inputs
7105 `(("openmpi" ,openmpi)
7106 ("zlib" ,zlib)))
7107 (synopsis "Parallel tool to remove duplicate DNA reads")
7108 (description
7109 "ParDRe is a parallel tool to remove duplicate genetic sequence reads.
7110 Duplicate reads can be seen as identical or nearly identical sequences with
7111 some mismatches. This tool lets users avoid the analysis of unnecessary
7112 reads, reducing the time of subsequent procedures with the
7113 dataset (e.g. assemblies, mappings, etc.). The tool is implemented with MPI
7114 in order to exploit the parallel capabilities of multicore clusters. It is
7115 faster than multithreaded counterparts (end of 2015) for the same number of
7116 cores and, thanks to the message-passing technology, it can be executed on
7117 clusters.")
7118 (home-page "https://sourceforge.net/projects/pardre/")
7119 (license license:gpl3+)))
7120
7121 (define-public ruby-bio-kseq
7122 (package
7123 (name "ruby-bio-kseq")
7124 (version "0.0.2")
7125 (source
7126 (origin
7127 (method url-fetch)
7128 (uri (rubygems-uri "bio-kseq" version))
7129 (sha256
7130 (base32
7131 "1xyaha46khb5jc6wzkbf7040jagac49jbimn0vcrzid0j8jdikrz"))))
7132 (build-system ruby-build-system)
7133 (arguments
7134 `(#:test-target "spec"))
7135 (native-inputs
7136 `(("bundler" ,bundler)
7137 ("ruby-rspec" ,ruby-rspec)
7138 ("ruby-rake-compiler" ,ruby-rake-compiler)))
7139 (inputs
7140 `(("zlib" ,zlib)))
7141 (synopsis "Ruby bindings for the kseq.h FASTA/Q parser")
7142 (description
7143 "@code{Bio::Kseq} provides ruby bindings to the @code{kseq.h} FASTA and
7144 FASTQ parsing code. It provides a fast iterator over sequences and their
7145 quality scores.")
7146 (home-page "https://github.com/gusevfe/bio-kseq")
7147 (license license:expat)))
7148
7149 (define-public bio-locus
7150 (package
7151 (name "bio-locus")
7152 (version "0.0.7")
7153 (source
7154 (origin
7155 (method url-fetch)
7156 (uri (rubygems-uri "bio-locus" version))
7157 (sha256
7158 (base32
7159 "02vmrxyimkj9sahsp4zhfhnmbvz6dbbqz1y01vglf8cbwvkajfl0"))))
7160 (build-system ruby-build-system)
7161 (native-inputs
7162 `(("ruby-rspec" ,ruby-rspec)))
7163 (synopsis "Tool for fast querying of genome locations")
7164 (description
7165 "Bio-locus is a tabix-like tool for fast querying of genome
7166 locations. Many file formats in bioinformatics contain records that
7167 start with a chromosome name and a position for a SNP, or a start-end
7168 position for indels. Bio-locus allows users to store this chr+pos or
7169 chr+pos+alt information in a database.")
7170 (home-page "https://github.com/pjotrp/bio-locus")
7171 (license license:expat)))
7172
7173 (define-public bio-blastxmlparser
7174 (package
7175 (name "bio-blastxmlparser")
7176 (version "2.0.4")
7177 (source (origin
7178 (method url-fetch)
7179 (uri (rubygems-uri "bio-blastxmlparser" version))
7180 (sha256
7181 (base32
7182 "1wf4qygcmdjgcqm6flmvsagfr1gs9lf63mj32qv3z1f481zc5692"))))
7183 (build-system ruby-build-system)
7184 (propagated-inputs
7185 `(("ruby-bio-logger" ,ruby-bio-logger)
7186 ("ruby-nokogiri" ,ruby-nokogiri)))
7187 (inputs
7188 `(("ruby-rspec" ,ruby-rspec)))
7189 (synopsis "Fast big data BLAST XML parser and library")
7190 (description
7191 "Very fast parallel big-data BLAST XML file parser which can be used as
7192 command line utility. Use blastxmlparser to: Parse BLAST XML; filter output;
7193 generate FASTA, JSON, YAML, RDF, JSON-LD, HTML, CSV, tabular output etc.")
7194 (home-page "https://github.com/pjotrp/blastxmlparser")
7195 (license license:expat)))
7196
7197 (define-public bioruby
7198 (package
7199 (name "bioruby")
7200 (version "1.5.2")
7201 (source
7202 (origin
7203 (method url-fetch)
7204 (uri (rubygems-uri "bio" version))
7205 (sha256
7206 (base32
7207 "1d56amdsjv1mag7m6gv2w0xij8hqx1v5xbdjsix8sp3yp36m7938"))))
7208 (build-system ruby-build-system)
7209 (propagated-inputs
7210 `(("ruby-libxml" ,ruby-libxml)))
7211 (native-inputs
7212 `(("which" ,which))) ; required for test phase
7213 (arguments
7214 `(#:phases
7215 (modify-phases %standard-phases
7216 (add-before 'build 'patch-test-command
7217 (lambda _
7218 (substitute* '("test/functional/bio/test_command.rb")
7219 (("/bin/sh") (which "sh")))
7220 (substitute* '("test/functional/bio/test_command.rb")
7221 (("/bin/ls") (which "ls")))
7222 (substitute* '("test/functional/bio/test_command.rb")
7223 (("which") (which "which")))
7224 (substitute* '("test/functional/bio/test_command.rb",
7225 "test/data/command/echoarg2.sh")
7226 (("/bin/echo") (which "echo")))
7227 #t)))))
7228 (synopsis "Ruby library, shell and utilities for bioinformatics")
7229 (description "BioRuby comes with a comprehensive set of Ruby development
7230 tools and libraries for bioinformatics and molecular biology. BioRuby has
7231 components for sequence analysis, pathway analysis, protein modelling and
7232 phylogenetic analysis; it supports many widely used data formats and provides
7233 easy access to databases, external programs and public web services, including
7234 BLAST, KEGG, GenBank, MEDLINE and GO.")
7235 (home-page "http://bioruby.org/")
7236 ;; Code is released under Ruby license, except for setup
7237 ;; (LGPLv2.1+) and scripts in samples (which have GPL2 and GPL2+)
7238 (license (list license:ruby license:lgpl2.1+ license:gpl2+ ))))
7239
7240 (define-public r-biocviews
7241 (package
7242 (name "r-biocviews")
7243 (version "1.52.2")
7244 (source (origin
7245 (method url-fetch)
7246 (uri (bioconductor-uri "biocViews" version))
7247 (sha256
7248 (base32
7249 "0qwrsd9fcpkv7hhzy1scnj7ahdxi6cjary28kqk6b36gkzmnrw4r"))))
7250 (properties
7251 `((upstream-name . "biocViews")))
7252 (build-system r-build-system)
7253 (propagated-inputs
7254 `(("r-biobase" ,r-biobase)
7255 ("r-biocmanager" ,r-biocmanager)
7256 ("r-graph" ,r-graph)
7257 ("r-rbgl" ,r-rbgl)
7258 ("r-rcurl" ,r-rcurl)
7259 ("r-xml" ,r-xml)
7260 ("r-runit" ,r-runit)))
7261 (home-page "https://bioconductor.org/packages/biocViews")
7262 (synopsis "Bioconductor package categorization helper")
7263 (description "The purpose of biocViews is to create HTML pages that
7264 categorize packages in a Bioconductor package repository according to keywords,
7265 also known as views, in a controlled vocabulary.")
7266 (license license:artistic2.0)))
7267
7268 (define-public r-biocstyle
7269 (package
7270 (name "r-biocstyle")
7271 (version "2.12.0")
7272 (source (origin
7273 (method url-fetch)
7274 (uri (bioconductor-uri "BiocStyle" version))
7275 (sha256
7276 (base32
7277 "029x8r9rcx6zy0xixdpwxai4jv4ynb161821fzac6z4r8k418398"))))
7278 (properties
7279 `((upstream-name . "BiocStyle")))
7280 (build-system r-build-system)
7281 (propagated-inputs
7282 `(("r-biocmanager" ,r-biocmanager)
7283 ("r-bookdown" ,r-bookdown)
7284 ("r-knitr" ,r-knitr)
7285 ("r-rmarkdown" ,r-rmarkdown)
7286 ("r-yaml" ,r-yaml)))
7287 (home-page "https://bioconductor.org/packages/BiocStyle")
7288 (synopsis "Bioconductor formatting styles")
7289 (description "This package provides standard formatting styles for
7290 Bioconductor PDF and HTML documents. Package vignettes illustrate use and
7291 functionality.")
7292 (license license:artistic2.0)))
7293
7294 (define-public r-bioccheck
7295 (package
7296 (name "r-bioccheck")
7297 (version "1.20.0")
7298 (source (origin
7299 (method url-fetch)
7300 (uri (bioconductor-uri "BiocCheck" version))
7301 (sha256
7302 (base32
7303 "1gkw9s6dhdryga9ap5yhvcqg9jsy4cn417ayqk1qiv6fy91fd124"))))
7304 (properties
7305 `((upstream-name . "BiocCheck")))
7306 (build-system r-build-system)
7307 (arguments
7308 '(#:phases
7309 (modify-phases %standard-phases
7310 ;; This package can be used by calling BiocCheck(<package>) from
7311 ;; within R, or by running R CMD BiocCheck <package>. This phase
7312 ;; makes sure the latter works. For this to work, the BiocCheck
7313 ;; script must be somewhere on the PATH (not the R bin directory).
7314 (add-after 'install 'install-bioccheck-subcommand
7315 (lambda* (#:key outputs #:allow-other-keys)
7316 (let* ((out (assoc-ref outputs "out"))
7317 (dest-dir (string-append out "/bin"))
7318 (script-dir
7319 (string-append out "/site-library/BiocCheck/script/")))
7320 (mkdir-p dest-dir)
7321 (symlink (string-append script-dir "/checkBadDeps.R")
7322 (string-append dest-dir "/checkBadDeps.R"))
7323 (symlink (string-append script-dir "/BiocCheck")
7324 (string-append dest-dir "/BiocCheck")))
7325 #t)))))
7326 (propagated-inputs
7327 `(("r-codetools" ,r-codetools)
7328 ("r-graph" ,r-graph)
7329 ("r-httr" ,r-httr)
7330 ("r-knitr" ,r-knitr)
7331 ("r-optparse" ,r-optparse)
7332 ("r-biocmanager" ,r-biocmanager)
7333 ("r-biocviews" ,r-biocviews)
7334 ("r-stringdist" ,r-stringdist)))
7335 (home-page "https://bioconductor.org/packages/BiocCheck")
7336 (synopsis "Executes Bioconductor-specific package checks")
7337 (description "This package contains tools to perform additional quality
7338 checks on R packages that are to be submitted to the Bioconductor repository.")
7339 (license license:artistic2.0)))
7340
7341 (define-public r-s4vectors
7342 (package
7343 (name "r-s4vectors")
7344 (version "0.22.1")
7345 (source (origin
7346 (method url-fetch)
7347 (uri (bioconductor-uri "S4Vectors" version))
7348 (sha256
7349 (base32
7350 "0cpxqb18wd3pjd7bi8lry13sm5ffqahcvvxpk5pwm5xcj30cdlm9"))))
7351 (properties
7352 `((upstream-name . "S4Vectors")))
7353 (build-system r-build-system)
7354 (propagated-inputs
7355 `(("r-biocgenerics" ,r-biocgenerics)))
7356 (home-page "https://bioconductor.org/packages/S4Vectors")
7357 (synopsis "S4 implementation of vectors and lists")
7358 (description
7359 "The S4Vectors package defines the @code{Vector} and @code{List} virtual
7360 classes and a set of generic functions that extend the semantic of ordinary
7361 vectors and lists in R. Package developers can easily implement vector-like
7362 or list-like objects as concrete subclasses of @code{Vector} or @code{List}.
7363 In addition, a few low-level concrete subclasses of general interest (e.g.
7364 @code{DataFrame}, @code{Rle}, and @code{Hits}) are implemented in the
7365 S4Vectors package itself.")
7366 (license license:artistic2.0)))
7367
7368 (define-public r-iranges
7369 (package
7370 (name "r-iranges")
7371 (version "2.18.3")
7372 (source (origin
7373 (method url-fetch)
7374 (uri (bioconductor-uri "IRanges" version))
7375 (sha256
7376 (base32
7377 "05rw2b2bwns443n7d6lf97zdv1jbqdii2nprhs6x852w73m2a2g3"))))
7378 (properties
7379 `((upstream-name . "IRanges")))
7380 (build-system r-build-system)
7381 (propagated-inputs
7382 `(("r-biocgenerics" ,r-biocgenerics)
7383 ("r-s4vectors" ,r-s4vectors)))
7384 (home-page "https://bioconductor.org/packages/IRanges")
7385 (synopsis "Infrastructure for manipulating intervals on sequences")
7386 (description
7387 "This package provides efficient low-level and highly reusable S4 classes
7388 for storing ranges of integers, RLE vectors (Run-Length Encoding), and, more
7389 generally, data that can be organized sequentially (formally defined as
7390 @code{Vector} objects), as well as views on these @code{Vector} objects.
7391 Efficient list-like classes are also provided for storing big collections of
7392 instances of the basic classes. All classes in the package use consistent
7393 naming and share the same rich and consistent \"Vector API\" as much as
7394 possible.")
7395 (license license:artistic2.0)))
7396
7397 (define-public r-genomeinfodbdata
7398 (package
7399 (name "r-genomeinfodbdata")
7400 (version "1.2.0")
7401 (source (origin
7402 (method url-fetch)
7403 ;; We cannot use bioconductor-uri here because this tarball is
7404 ;; located under "data/annotation/" instead of "bioc/".
7405 (uri (string-append "https://bioconductor.org/packages/release/"
7406 "data/annotation/src/contrib/GenomeInfoDbData_"
7407 version ".tar.gz"))
7408 (sha256
7409 (base32
7410 "0di6nlqpsyqf693k2na65ayqldih563x3zfrczpqc5q2hl5kg35c"))))
7411 (properties
7412 `((upstream-name . "GenomeInfoDbData")))
7413 (build-system r-build-system)
7414 (home-page "https://bioconductor.org/packages/GenomeInfoDbData")
7415 (synopsis "Species and taxonomy ID look up tables for GenomeInfoDb")
7416 (description "This package contains data for mapping between NCBI taxonomy
7417 ID and species. It is used by functions in the GenomeInfoDb package.")
7418 (license license:artistic2.0)))
7419
7420 (define-public r-genomeinfodb
7421 (package
7422 (name "r-genomeinfodb")
7423 (version "1.20.0")
7424 (source (origin
7425 (method url-fetch)
7426 (uri (bioconductor-uri "GenomeInfoDb" version))
7427 (sha256
7428 (base32
7429 "0zkhms81b3jz30q7ag81a1mq1rgqg4izyfdvcni68gvn8gm7kdyk"))))
7430 (properties
7431 `((upstream-name . "GenomeInfoDb")))
7432 (build-system r-build-system)
7433 (propagated-inputs
7434 `(("r-biocgenerics" ,r-biocgenerics)
7435 ("r-genomeinfodbdata" ,r-genomeinfodbdata)
7436 ("r-iranges" ,r-iranges)
7437 ("r-rcurl" ,r-rcurl)
7438 ("r-s4vectors" ,r-s4vectors)))
7439 (home-page "https://bioconductor.org/packages/GenomeInfoDb")
7440 (synopsis "Utilities for manipulating chromosome identifiers")
7441 (description
7442 "This package contains data and functions that define and allow
7443 translation between different chromosome sequence naming conventions (e.g.,
7444 \"chr1\" versus \"1\"), including a function that attempts to place sequence
7445 names in their natural, rather than lexicographic, order.")
7446 (license license:artistic2.0)))
7447
7448 (define-public r-edger
7449 (package
7450 (name "r-edger")
7451 (version "3.26.8")
7452 (source (origin
7453 (method url-fetch)
7454 (uri (bioconductor-uri "edgeR" version))
7455 (sha256
7456 (base32
7457 "1wwimzviy2vklp80faz7sbbp74qcw2csbmlfgvzj7b785vwarpwg"))))
7458 (properties `((upstream-name . "edgeR")))
7459 (build-system r-build-system)
7460 (propagated-inputs
7461 `(("r-limma" ,r-limma)
7462 ("r-locfit" ,r-locfit)
7463 ("r-rcpp" ,r-rcpp)
7464 ("r-statmod" ,r-statmod))) ;for estimateDisp
7465 (home-page "http://bioinf.wehi.edu.au/edgeR")
7466 (synopsis "EdgeR does empirical analysis of digital gene expression data")
7467 (description "This package can do differential expression analysis of
7468 RNA-seq expression profiles with biological replication. It implements a range
7469 of statistical methodology based on the negative binomial distributions,
7470 including empirical Bayes estimation, exact tests, generalized linear models
7471 and quasi-likelihood tests. It be applied to differential signal analysis of
7472 other types of genomic data that produce counts, including ChIP-seq, SAGE and
7473 CAGE.")
7474 (license license:gpl2+)))
7475
7476 (define-public r-variantannotation
7477 (package
7478 (name "r-variantannotation")
7479 (version "1.30.1")
7480 (source (origin
7481 (method url-fetch)
7482 (uri (bioconductor-uri "VariantAnnotation" version))
7483 (sha256
7484 (base32
7485 "144x3d3b9a3q5jy4aqrk1nf2yavwjhwlf71s7qyr4x3ms3wmvf8i"))))
7486 (properties
7487 `((upstream-name . "VariantAnnotation")))
7488 (inputs
7489 `(("zlib" ,zlib)))
7490 (propagated-inputs
7491 `(("r-annotationdbi" ,r-annotationdbi)
7492 ("r-biobase" ,r-biobase)
7493 ("r-biocgenerics" ,r-biocgenerics)
7494 ("r-biostrings" ,r-biostrings)
7495 ("r-bsgenome" ,r-bsgenome)
7496 ("r-dbi" ,r-dbi)
7497 ("r-genomeinfodb" ,r-genomeinfodb)
7498 ("r-genomicfeatures" ,r-genomicfeatures)
7499 ("r-genomicranges" ,r-genomicranges)
7500 ("r-iranges" ,r-iranges)
7501 ("r-summarizedexperiment" ,r-summarizedexperiment)
7502 ("r-rhtslib" ,r-rhtslib)
7503 ("r-rsamtools" ,r-rsamtools)
7504 ("r-rtracklayer" ,r-rtracklayer)
7505 ("r-s4vectors" ,r-s4vectors)
7506 ("r-xvector" ,r-xvector)
7507 ("r-zlibbioc" ,r-zlibbioc)))
7508 (build-system r-build-system)
7509 (home-page "https://bioconductor.org/packages/VariantAnnotation")
7510 (synopsis "Package for annotation of genetic variants")
7511 (description "This R package can annotate variants, compute amino acid
7512 coding changes and predict coding outcomes.")
7513 (license license:artistic2.0)))
7514
7515 (define-public r-limma
7516 (package
7517 (name "r-limma")
7518 (version "3.40.6")
7519 (source (origin
7520 (method url-fetch)
7521 (uri (bioconductor-uri "limma" version))
7522 (sha256
7523 (base32
7524 "166z8cdh6w90rldqqaar7hyaskwiy4smawjfbn4sn58clv6q3mp8"))))
7525 (build-system r-build-system)
7526 (home-page "http://bioinf.wehi.edu.au/limma")
7527 (synopsis "Package for linear models for microarray and RNA-seq data")
7528 (description "This package can be used for the analysis of gene expression
7529 studies, especially the use of linear models for analysing designed experiments
7530 and the assessment of differential expression. The analysis methods apply to
7531 different technologies, including microarrays, RNA-seq, and quantitative PCR.")
7532 (license license:gpl2+)))
7533
7534 (define-public r-xvector
7535 (package
7536 (name "r-xvector")
7537 (version "0.24.0")
7538 (source (origin
7539 (method url-fetch)
7540 (uri (bioconductor-uri "XVector" version))
7541 (sha256
7542 (base32
7543 "12y09pwy86h1za6cmaxs960r7fs0vjzhl0li8jn59vqq9liza1ap"))))
7544 (properties
7545 `((upstream-name . "XVector")))
7546 (build-system r-build-system)
7547 (arguments
7548 `(#:phases
7549 (modify-phases %standard-phases
7550 (add-after 'unpack 'use-system-zlib
7551 (lambda _
7552 (substitute* "DESCRIPTION"
7553 (("zlibbioc, ") ""))
7554 (substitute* "NAMESPACE"
7555 (("import\\(zlibbioc\\)") ""))
7556 #t)))))
7557 (inputs
7558 `(("zlib" ,zlib)))
7559 (propagated-inputs
7560 `(("r-biocgenerics" ,r-biocgenerics)
7561 ("r-iranges" ,r-iranges)
7562 ("r-s4vectors" ,r-s4vectors)))
7563 (home-page "https://bioconductor.org/packages/XVector")
7564 (synopsis "Representation and manpulation of external sequences")
7565 (description
7566 "This package provides memory efficient S4 classes for storing sequences
7567 \"externally\" (behind an R external pointer, or on disk).")
7568 (license license:artistic2.0)))
7569
7570 (define-public r-genomicranges
7571 (package
7572 (name "r-genomicranges")
7573 (version "1.36.1")
7574 (source (origin
7575 (method url-fetch)
7576 (uri (bioconductor-uri "GenomicRanges" version))
7577 (sha256
7578 (base32
7579 "1yid84gn0052v52h84685lvk854grl1wl65psmlmxx9yyykgc0jn"))))
7580 (properties
7581 `((upstream-name . "GenomicRanges")))
7582 (build-system r-build-system)
7583 (propagated-inputs
7584 `(("r-biocgenerics" ,r-biocgenerics)
7585 ("r-genomeinfodb" ,r-genomeinfodb)
7586 ("r-iranges" ,r-iranges)
7587 ("r-s4vectors" ,r-s4vectors)
7588 ("r-xvector" ,r-xvector)))
7589 (home-page "https://bioconductor.org/packages/GenomicRanges")
7590 (synopsis "Representation and manipulation of genomic intervals")
7591 (description
7592 "This package provides tools to efficiently represent and manipulate
7593 genomic annotations and alignments is playing a central role when it comes to
7594 analyzing high-throughput sequencing data (a.k.a. NGS data). The
7595 GenomicRanges package defines general purpose containers for storing and
7596 manipulating genomic intervals and variables defined along a genome.")
7597 (license license:artistic2.0)))
7598
7599 (define-public r-biobase
7600 (package
7601 (name "r-biobase")
7602 (version "2.44.0")
7603 (source (origin
7604 (method url-fetch)
7605 (uri (bioconductor-uri "Biobase" version))
7606 (sha256
7607 (base32
7608 "15yl92niqamx3lmwd11zlk0xniibqnh1gi280iadxicmchi83npc"))))
7609 (properties
7610 `((upstream-name . "Biobase")))
7611 (build-system r-build-system)
7612 (propagated-inputs
7613 `(("r-biocgenerics" ,r-biocgenerics)))
7614 (home-page "https://bioconductor.org/packages/Biobase")
7615 (synopsis "Base functions for Bioconductor")
7616 (description
7617 "This package provides functions that are needed by many other packages
7618 on Bioconductor or which replace R functions.")
7619 (license license:artistic2.0)))
7620
7621 (define-public r-annotationdbi
7622 (package
7623 (name "r-annotationdbi")
7624 (version "1.46.1")
7625 (source (origin
7626 (method url-fetch)
7627 (uri (bioconductor-uri "AnnotationDbi" version))
7628 (sha256
7629 (base32
7630 "13nanz4nzy0mcda8ljz2g8d81hpqfz6jky7ydz5hpk0g2264b9ga"))))
7631 (properties
7632 `((upstream-name . "AnnotationDbi")))
7633 (build-system r-build-system)
7634 (propagated-inputs
7635 `(("r-biobase" ,r-biobase)
7636 ("r-biocgenerics" ,r-biocgenerics)
7637 ("r-dbi" ,r-dbi)
7638 ("r-iranges" ,r-iranges)
7639 ("r-rsqlite" ,r-rsqlite)
7640 ("r-s4vectors" ,r-s4vectors)))
7641 (home-page "https://bioconductor.org/packages/AnnotationDbi")
7642 (synopsis "Annotation database interface")
7643 (description
7644 "This package provides user interface and database connection code for
7645 annotation data packages using SQLite data storage.")
7646 (license license:artistic2.0)))
7647
7648 (define-public r-biomart
7649 (package
7650 (name "r-biomart")
7651 (version "2.40.5")
7652 (source (origin
7653 (method url-fetch)
7654 (uri (bioconductor-uri "biomaRt" version))
7655 (sha256
7656 (base32
7657 "1kjvxnkpsx3j2hji3cg3ka2gv8a9mg117lzzxyqjb7qa4zw7dipx"))))
7658 (properties
7659 `((upstream-name . "biomaRt")))
7660 (build-system r-build-system)
7661 (propagated-inputs
7662 `(("r-annotationdbi" ,r-annotationdbi)
7663 ("r-httr" ,r-httr)
7664 ("r-progress" ,r-progress)
7665 ("r-rcurl" ,r-rcurl)
7666 ("r-stringr" ,r-stringr)
7667 ("r-xml" ,r-xml)))
7668 (home-page "https://bioconductor.org/packages/biomaRt")
7669 (synopsis "Interface to BioMart databases")
7670 (description
7671 "biomaRt provides an interface to a growing collection of databases
7672 implementing the @url{BioMart software suite, http://www.biomart.org}. The
7673 package enables retrieval of large amounts of data in a uniform way without
7674 the need to know the underlying database schemas or write complex SQL queries.
7675 Examples of BioMart databases are Ensembl, COSMIC, Uniprot, HGNC, Gramene,
7676 Wormbase and dbSNP mapped to Ensembl. These major databases give biomaRt
7677 users direct access to a diverse set of data and enable a wide range of
7678 powerful online queries from gene annotation to database mining.")
7679 (license license:artistic2.0)))
7680
7681 (define-public r-biocparallel
7682 (package
7683 (name "r-biocparallel")
7684 (version "1.18.1")
7685 (source (origin
7686 (method url-fetch)
7687 (uri (bioconductor-uri "BiocParallel" version))
7688 (sha256
7689 (base32
7690 "1j6wbls4qgvi5gj99c51r00jhxrzxk3x3258wg7dcjzbfqypvyw3"))))
7691 (properties
7692 `((upstream-name . "BiocParallel")))
7693 (build-system r-build-system)
7694 (propagated-inputs
7695 `(("r-futile-logger" ,r-futile-logger)
7696 ("r-snow" ,r-snow)
7697 ("r-bh" ,r-bh)))
7698 (home-page "https://bioconductor.org/packages/BiocParallel")
7699 (synopsis "Bioconductor facilities for parallel evaluation")
7700 (description
7701 "This package provides modified versions and novel implementation of
7702 functions for parallel evaluation, tailored to use with Bioconductor
7703 objects.")
7704 (license (list license:gpl2+ license:gpl3+))))
7705
7706 (define-public r-biostrings
7707 (package
7708 (name "r-biostrings")
7709 (version "2.52.0")
7710 (source (origin
7711 (method url-fetch)
7712 (uri (bioconductor-uri "Biostrings" version))
7713 (sha256
7714 (base32
7715 "0inrl97hli3qz6cfxcikc4picmbrqc8phdgqi18ynlvxy5ql64h4"))))
7716 (properties
7717 `((upstream-name . "Biostrings")))
7718 (build-system r-build-system)
7719 (propagated-inputs
7720 `(("r-biocgenerics" ,r-biocgenerics)
7721 ("r-iranges" ,r-iranges)
7722 ("r-s4vectors" ,r-s4vectors)
7723 ("r-xvector" ,r-xvector)))
7724 (home-page "https://bioconductor.org/packages/Biostrings")
7725 (synopsis "String objects and algorithms for biological sequences")
7726 (description
7727 "This package provides memory efficient string containers, string
7728 matching algorithms, and other utilities, for fast manipulation of large
7729 biological sequences or sets of sequences.")
7730 (license license:artistic2.0)))
7731
7732 (define-public r-rsamtools
7733 (package
7734 (name "r-rsamtools")
7735 (version "2.0.3")
7736 (source (origin
7737 (method url-fetch)
7738 (uri (bioconductor-uri "Rsamtools" version))
7739 (sha256
7740 (base32
7741 "03qfpaqbffirpnby88mv6h45njfapli28crdvg35h2zi2jkkmhvp"))))
7742 (properties
7743 `((upstream-name . "Rsamtools")))
7744 (build-system r-build-system)
7745 (arguments
7746 `(#:phases
7747 (modify-phases %standard-phases
7748 (add-after 'unpack 'use-system-zlib
7749 (lambda _
7750 (substitute* "DESCRIPTION"
7751 (("zlibbioc, ") ""))
7752 (substitute* "NAMESPACE"
7753 (("import\\(zlibbioc\\)") ""))
7754 #t)))))
7755 (inputs
7756 `(("zlib" ,zlib)))
7757 (propagated-inputs
7758 `(("r-biocgenerics" ,r-biocgenerics)
7759 ("r-biocparallel" ,r-biocparallel)
7760 ("r-biostrings" ,r-biostrings)
7761 ("r-bitops" ,r-bitops)
7762 ("r-genomeinfodb" ,r-genomeinfodb)
7763 ("r-genomicranges" ,r-genomicranges)
7764 ("r-iranges" ,r-iranges)
7765 ("r-rhtslib" ,r-rhtslib)
7766 ("r-s4vectors" ,r-s4vectors)
7767 ("r-xvector" ,r-xvector)))
7768 (home-page "https://bioconductor.org/packages/release/bioc/html/Rsamtools.html")
7769 (synopsis "Interface to samtools, bcftools, and tabix")
7770 (description
7771 "This package provides an interface to the @code{samtools},
7772 @code{bcftools}, and @code{tabix} utilities for manipulating SAM (Sequence
7773 Alignment / Map), FASTA, binary variant call (BCF) and compressed indexed
7774 tab-delimited (tabix) files.")
7775 (license license:expat)))
7776
7777 (define-public r-delayedarray
7778 (package
7779 (name "r-delayedarray")
7780 (version "0.10.0")
7781 (source (origin
7782 (method url-fetch)
7783 (uri (bioconductor-uri "DelayedArray" version))
7784 (sha256
7785 (base32
7786 "0l907ggxndn3f29zvsd5pppmp4c31rb22r6zkhvgph7xdxahyy6z"))))
7787 (properties
7788 `((upstream-name . "DelayedArray")))
7789 (build-system r-build-system)
7790 (propagated-inputs
7791 `(("r-biocgenerics" ,r-biocgenerics)
7792 ("r-biocparallel" ,r-biocparallel)
7793 ("r-s4vectors" ,r-s4vectors)
7794 ("r-iranges" ,r-iranges)
7795 ("r-matrix" ,r-matrix)
7796 ("r-matrixstats" ,r-matrixstats)))
7797 (home-page "https://bioconductor.org/packages/DelayedArray")
7798 (synopsis "Delayed operations on array-like objects")
7799 (description
7800 "Wrapping an array-like object (typically an on-disk object) in a
7801 @code{DelayedArray} object allows one to perform common array operations on it
7802 without loading the object in memory. In order to reduce memory usage and
7803 optimize performance, operations on the object are either delayed or executed
7804 using a block processing mechanism. Note that this also works on in-memory
7805 array-like objects like @code{DataFrame} objects (typically with Rle columns),
7806 @code{Matrix} objects, and ordinary arrays and data frames.")
7807 (license license:artistic2.0)))
7808
7809 (define-public r-summarizedexperiment
7810 (package
7811 (name "r-summarizedexperiment")
7812 (version "1.14.1")
7813 (source (origin
7814 (method url-fetch)
7815 (uri (bioconductor-uri "SummarizedExperiment" version))
7816 (sha256
7817 (base32
7818 "0bhwgzrdipr0qjzc4j0qspqprx3v1rvshmx4j6506dv43pqlgp3f"))))
7819 (properties
7820 `((upstream-name . "SummarizedExperiment")))
7821 (build-system r-build-system)
7822 (propagated-inputs
7823 `(("r-biobase" ,r-biobase)
7824 ("r-biocgenerics" ,r-biocgenerics)
7825 ("r-delayedarray" ,r-delayedarray)
7826 ("r-genomeinfodb" ,r-genomeinfodb)
7827 ("r-genomicranges" ,r-genomicranges)
7828 ("r-iranges" ,r-iranges)
7829 ("r-matrix" ,r-matrix)
7830 ("r-s4vectors" ,r-s4vectors)))
7831 (home-page "https://bioconductor.org/packages/SummarizedExperiment")
7832 (synopsis "Container for representing genomic ranges by sample")
7833 (description
7834 "The SummarizedExperiment container contains one or more assays, each
7835 represented by a matrix-like object of numeric or other mode. The rows
7836 typically represent genomic ranges of interest and the columns represent
7837 samples.")
7838 (license license:artistic2.0)))
7839
7840 (define-public r-genomicalignments
7841 (package
7842 (name "r-genomicalignments")
7843 (version "1.20.1")
7844 (source (origin
7845 (method url-fetch)
7846 (uri (bioconductor-uri "GenomicAlignments" version))
7847 (sha256
7848 (base32
7849 "0s3q97q4pgj5jwn4g95al44rahrwsncsf45v01v4071msx3xmjxq"))))
7850 (properties
7851 `((upstream-name . "GenomicAlignments")))
7852 (build-system r-build-system)
7853 (propagated-inputs
7854 `(("r-biocgenerics" ,r-biocgenerics)
7855 ("r-biocparallel" ,r-biocparallel)
7856 ("r-biostrings" ,r-biostrings)
7857 ("r-genomeinfodb" ,r-genomeinfodb)
7858 ("r-genomicranges" ,r-genomicranges)
7859 ("r-iranges" ,r-iranges)
7860 ("r-rsamtools" ,r-rsamtools)
7861 ("r-s4vectors" ,r-s4vectors)
7862 ("r-summarizedexperiment" ,r-summarizedexperiment)))
7863 (home-page "https://bioconductor.org/packages/GenomicAlignments")
7864 (synopsis "Representation and manipulation of short genomic alignments")
7865 (description
7866 "This package provides efficient containers for storing and manipulating
7867 short genomic alignments (typically obtained by aligning short reads to a
7868 reference genome). This includes read counting, computing the coverage,
7869 junction detection, and working with the nucleotide content of the
7870 alignments.")
7871 (license license:artistic2.0)))
7872
7873 (define-public r-rtracklayer
7874 (package
7875 (name "r-rtracklayer")
7876 (version "1.44.4")
7877 (source (origin
7878 (method url-fetch)
7879 (uri (bioconductor-uri "rtracklayer" version))
7880 (sha256
7881 (base32
7882 "0dnifr58j2si2qbnvap2wslz3xgjv3h4l7a6v7nmmc57hq6kdbym"))))
7883 (build-system r-build-system)
7884 (arguments
7885 `(#:phases
7886 (modify-phases %standard-phases
7887 (add-after 'unpack 'use-system-zlib
7888 (lambda _
7889 (substitute* "DESCRIPTION"
7890 ((" zlibbioc,") ""))
7891 (substitute* "NAMESPACE"
7892 (("import\\(zlibbioc\\)") ""))
7893 #t)))))
7894 (native-inputs
7895 `(("pkg-config" ,pkg-config)))
7896 (inputs
7897 `(("zlib" ,zlib)))
7898 (propagated-inputs
7899 `(("r-biocgenerics" ,r-biocgenerics)
7900 ("r-biostrings" ,r-biostrings)
7901 ("r-genomeinfodb" ,r-genomeinfodb)
7902 ("r-genomicalignments" ,r-genomicalignments)
7903 ("r-genomicranges" ,r-genomicranges)
7904 ("r-iranges" ,r-iranges)
7905 ("r-rcurl" ,r-rcurl)
7906 ("r-rsamtools" ,r-rsamtools)
7907 ("r-s4vectors" ,r-s4vectors)
7908 ("r-xml" ,r-xml)
7909 ("r-xvector" ,r-xvector)))
7910 (home-page "https://bioconductor.org/packages/rtracklayer")
7911 (synopsis "R interface to genome browsers and their annotation tracks")
7912 (description
7913 "rtracklayer is an extensible framework for interacting with multiple
7914 genome browsers (currently UCSC built-in) and manipulating annotation tracks
7915 in various formats (currently GFF, BED, bedGraph, BED15, WIG, BigWig and 2bit
7916 built-in). The user may export/import tracks to/from the supported browsers,
7917 as well as query and modify the browser state, such as the current viewport.")
7918 (license license:artistic2.0)))
7919
7920 (define-public r-genomicfeatures
7921 (package
7922 (name "r-genomicfeatures")
7923 (version "1.36.4")
7924 (source (origin
7925 (method url-fetch)
7926 (uri (bioconductor-uri "GenomicFeatures" version))
7927 (sha256
7928 (base32
7929 "0mzqv8pyxx5nwchyx3radym9ws2f9hb50xc9abjsjs4w4pv91j3k"))))
7930 (properties
7931 `((upstream-name . "GenomicFeatures")))
7932 (build-system r-build-system)
7933 (propagated-inputs
7934 `(("r-annotationdbi" ,r-annotationdbi)
7935 ("r-biobase" ,r-biobase)
7936 ("r-biocgenerics" ,r-biocgenerics)
7937 ("r-biomart" ,r-biomart)
7938 ("r-biostrings" ,r-biostrings)
7939 ("r-dbi" ,r-dbi)
7940 ("r-genomeinfodb" ,r-genomeinfodb)
7941 ("r-genomicranges" ,r-genomicranges)
7942 ("r-iranges" ,r-iranges)
7943 ("r-rcurl" ,r-rcurl)
7944 ("r-rsqlite" ,r-rsqlite)
7945 ("r-rtracklayer" ,r-rtracklayer)
7946 ("r-s4vectors" ,r-s4vectors)
7947 ("r-xvector" ,r-xvector)))
7948 (home-page "https://bioconductor.org/packages/GenomicFeatures")
7949 (synopsis "Tools for working with transcript centric annotations")
7950 (description
7951 "This package provides a set of tools and methods for making and
7952 manipulating transcript centric annotations. With these tools the user can
7953 easily download the genomic locations of the transcripts, exons and cds of a
7954 given organism, from either the UCSC Genome Browser or a BioMart
7955 database (more sources will be supported in the future). This information is
7956 then stored in a local database that keeps track of the relationship between
7957 transcripts, exons, cds and genes. Flexible methods are provided for
7958 extracting the desired features in a convenient format.")
7959 (license license:artistic2.0)))
7960
7961 (define-public r-go-db
7962 (package
7963 (name "r-go-db")
7964 (version "3.7.0")
7965 (source (origin
7966 (method url-fetch)
7967 (uri (string-append "https://www.bioconductor.org/packages/"
7968 "release/data/annotation/src/contrib/GO.db_"
7969 version ".tar.gz"))
7970 (sha256
7971 (base32
7972 "0i3wcf5h3n0dawzc1hy0kv74f06j80c47n4p3g3fmrcxlhi3jpa5"))))
7973 (properties
7974 `((upstream-name . "GO.db")))
7975 (build-system r-build-system)
7976 (propagated-inputs
7977 `(("r-annotationdbi" ,r-annotationdbi)))
7978 (home-page "https://bioconductor.org/packages/GO.db")
7979 (synopsis "Annotation maps describing the entire Gene Ontology")
7980 (description
7981 "The purpose of this GO.db annotation package is to provide detailed
7982 information about the latest version of the Gene Ontologies.")
7983 (license license:artistic2.0)))
7984
7985 (define-public r-topgo
7986 (package
7987 (name "r-topgo")
7988 (version "2.36.0")
7989 (source (origin
7990 (method url-fetch)
7991 (uri (bioconductor-uri "topGO" version))
7992 (sha256
7993 (base32
7994 "09z42jwz5vh289ijz3x68zv5vmgkgcbhlp73vvmna1gld5lh5kz1"))))
7995 (properties
7996 `((upstream-name . "topGO")))
7997 (build-system r-build-system)
7998 (propagated-inputs
7999 `(("r-annotationdbi" ,r-annotationdbi)
8000 ("r-dbi" ,r-dbi)
8001 ("r-biobase" ,r-biobase)
8002 ("r-biocgenerics" ,r-biocgenerics)
8003 ("r-go-db" ,r-go-db)
8004 ("r-graph" ,r-graph)
8005 ("r-lattice" ,r-lattice)
8006 ("r-matrixstats" ,r-matrixstats)
8007 ("r-sparsem" ,r-sparsem)))
8008 (home-page "https://bioconductor.org/packages/topGO")
8009 (synopsis "Enrichment analysis for gene ontology")
8010 (description
8011 "The topGO package provides tools for testing @dfn{gene ontology} (GO)
8012 terms while accounting for the topology of the GO graph. Different test
8013 statistics and different methods for eliminating local similarities and
8014 dependencies between GO terms can be implemented and applied.")
8015 ;; Any version of the LGPL applies.
8016 (license license:lgpl2.1+)))
8017
8018 (define-public r-bsgenome
8019 (package
8020 (name "r-bsgenome")
8021 (version "1.52.0")
8022 (source (origin
8023 (method url-fetch)
8024 (uri (bioconductor-uri "BSgenome" version))
8025 (sha256
8026 (base32
8027 "0zwx42s73hc1vhn0v82i67mcixdwwc6n6q5h5vpnhpxlm4qwgqzp"))))
8028 (properties
8029 `((upstream-name . "BSgenome")))
8030 (build-system r-build-system)
8031 (propagated-inputs
8032 `(("r-biocgenerics" ,r-biocgenerics)
8033 ("r-biostrings" ,r-biostrings)
8034 ("r-genomeinfodb" ,r-genomeinfodb)
8035 ("r-genomicranges" ,r-genomicranges)
8036 ("r-iranges" ,r-iranges)
8037 ("r-rsamtools" ,r-rsamtools)
8038 ("r-rtracklayer" ,r-rtracklayer)
8039 ("r-s4vectors" ,r-s4vectors)
8040 ("r-xvector" ,r-xvector)))
8041 (home-page "https://bioconductor.org/packages/BSgenome")
8042 (synopsis "Infrastructure for Biostrings-based genome data packages")
8043 (description
8044 "This package provides infrastructure shared by all Biostrings-based
8045 genome data packages and support for efficient SNP representation.")
8046 (license license:artistic2.0)))
8047
8048 (define-public r-impute
8049 (package
8050 (name "r-impute")
8051 (version "1.58.0")
8052 (source (origin
8053 (method url-fetch)
8054 (uri (bioconductor-uri "impute" version))
8055 (sha256
8056 (base32
8057 "144jb889979cv3il2zxqk724v3sj1wnzjm3lkspxcvk29dbb9q8j"))))
8058 (native-inputs
8059 `(("gfortran" ,gfortran)))
8060 (build-system r-build-system)
8061 (home-page "https://bioconductor.org/packages/impute")
8062 (synopsis "Imputation for microarray data")
8063 (description
8064 "This package provides a function to impute missing gene expression
8065 microarray data, using nearest neighbor averaging.")
8066 (license license:gpl2+)))
8067
8068 (define-public r-seqpattern
8069 (package
8070 (name "r-seqpattern")
8071 (version "1.16.0")
8072 (source (origin
8073 (method url-fetch)
8074 (uri (bioconductor-uri "seqPattern" version))
8075 (sha256
8076 (base32
8077 "1ljqscbmrmi5d4lzzvg2d86sqzch26yxw57d33qyid300wm60db2"))))
8078 (properties
8079 `((upstream-name . "seqPattern")))
8080 (build-system r-build-system)
8081 (propagated-inputs
8082 `(("r-biostrings" ,r-biostrings)
8083 ("r-genomicranges" ,r-genomicranges)
8084 ("r-iranges" ,r-iranges)
8085 ("r-kernsmooth" ,r-kernsmooth)
8086 ("r-plotrix" ,r-plotrix)))
8087 (home-page "https://bioconductor.org/packages/seqPattern")
8088 (synopsis "Visualising oligonucleotide patterns and motif occurrences")
8089 (description
8090 "This package provides tools to visualize oligonucleotide patterns and
8091 sequence motif occurrences across a large set of sequences centred at a common
8092 reference point and sorted by a user defined feature.")
8093 (license license:gpl3+)))
8094
8095 (define-public r-genomation
8096 (package
8097 (name "r-genomation")
8098 (version "1.16.0")
8099 (source (origin
8100 (method url-fetch)
8101 (uri (bioconductor-uri "genomation" version))
8102 (sha256
8103 (base32
8104 "06i711pwq9znd7plh0p25skxnnh5dyl61c33k9gma243wvlzmlkj"))))
8105 (build-system r-build-system)
8106 (propagated-inputs
8107 `(("r-biostrings" ,r-biostrings)
8108 ("r-bsgenome" ,r-bsgenome)
8109 ("r-data-table" ,r-data-table)
8110 ("r-genomeinfodb" ,r-genomeinfodb)
8111 ("r-genomicalignments" ,r-genomicalignments)
8112 ("r-genomicranges" ,r-genomicranges)
8113 ("r-ggplot2" ,r-ggplot2)
8114 ("r-gridbase" ,r-gridbase)
8115 ("r-impute" ,r-impute)
8116 ("r-iranges" ,r-iranges)
8117 ("r-matrixstats" ,r-matrixstats)
8118 ("r-plotrix" ,r-plotrix)
8119 ("r-plyr" ,r-plyr)
8120 ("r-rcpp" ,r-rcpp)
8121 ("r-readr" ,r-readr)
8122 ("r-reshape2" ,r-reshape2)
8123 ("r-rsamtools" ,r-rsamtools)
8124 ("r-rtracklayer" ,r-rtracklayer)
8125 ("r-runit" ,r-runit)
8126 ("r-s4vectors" ,r-s4vectors)
8127 ("r-seqpattern" ,r-seqpattern)))
8128 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
8129 (synopsis "Summary, annotation and visualization of genomic data")
8130 (description
8131 "This package provides a package for summary and annotation of genomic
8132 intervals. Users can visualize and quantify genomic intervals over
8133 pre-defined functional regions, such as promoters, exons, introns, etc. The
8134 genomic intervals represent regions with a defined chromosome position, which
8135 may be associated with a score, such as aligned reads from HT-seq experiments,
8136 TF binding sites, methylation scores, etc. The package can use any tabular
8137 genomic feature data as long as it has minimal information on the locations of
8138 genomic intervals. In addition, it can use BAM or BigWig files as input.")
8139 (license license:artistic2.0)))
8140
8141 (define-public r-genomationdata
8142 (package
8143 (name "r-genomationdata")
8144 (version "1.14.0")
8145 (source (origin
8146 (method url-fetch)
8147 ;; We cannot use bioconductor-uri here because this tarball is
8148 ;; located under "data/annotation/" instead of "bioc/".
8149 (uri (string-append "https://bioconductor.org/packages/"
8150 "release/data/experiment/src/contrib/"
8151 "genomationData_" version ".tar.gz"))
8152 (sha256
8153 (base32
8154 "10xyb8akjrhmak2i0mnv1agny2ipy364q9nlibyplpzc7vdb6bw7"))))
8155 (build-system r-build-system)
8156 ;; As this package provides little more than large data files, it doesn't
8157 ;; make sense to build substitutes.
8158 (arguments `(#:substitutable? #f))
8159 (native-inputs
8160 `(("r-knitr" ,r-knitr)))
8161 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
8162 (synopsis "Experimental data for use with the genomation package")
8163 (description
8164 "This package contains experimental genetic data for use with the
8165 genomation package. Included are Chip Seq, Methylation and Cage data,
8166 downloaded from Encode.")
8167 (license license:gpl3+)))
8168
8169 (define-public r-seqlogo
8170 (package
8171 (name "r-seqlogo")
8172 (version "1.50.0")
8173 (source
8174 (origin
8175 (method url-fetch)
8176 (uri (bioconductor-uri "seqLogo" version))
8177 (sha256
8178 (base32
8179 "1z63imr1a24nqijpvxaxlakykcsadfqyxl2b3vlllncxnjjvb52b"))))
8180 (properties `((upstream-name . "seqLogo")))
8181 (build-system r-build-system)
8182 (home-page "https://bioconductor.org/packages/seqLogo")
8183 (synopsis "Sequence logos for DNA sequence alignments")
8184 (description
8185 "seqLogo takes the position weight matrix of a DNA sequence motif and
8186 plots the corresponding sequence logo as introduced by Schneider and
8187 Stephens (1990).")
8188 (license license:lgpl2.0+)))
8189
8190 (define-public r-motifrg
8191 (package
8192 (name "r-motifrg")
8193 (version "1.28.0")
8194 (source
8195 (origin
8196 (method url-fetch)
8197 (uri (bioconductor-uri "motifRG" version))
8198 (sha256
8199 (base32
8200 "02c7fbjwdq7pk96bd2rn07l9r2hqy00s3hfpli5ybmwgvc9h9z4z"))))
8201 (properties `((upstream-name . "motifRG")))
8202 (build-system r-build-system)
8203 (propagated-inputs
8204 `(("r-biostrings" ,r-biostrings)
8205 ("r-bsgenome" ,r-bsgenome)
8206 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8207 ("r-iranges" ,r-iranges)
8208 ("r-seqlogo" ,r-seqlogo)
8209 ("r-xvector" ,r-xvector)))
8210 (home-page "https://bioconductor.org/packages/motifRG")
8211 (synopsis "Discover motifs in high throughput sequencing data")
8212 (description
8213 "This package provides tools for discriminative motif discovery in high
8214 throughput genetic sequencing data sets using regression methods.")
8215 (license license:artistic2.0)))
8216
8217 (define-public r-qtl
8218 (package
8219 (name "r-qtl")
8220 (version "1.44-9")
8221 (source
8222 (origin
8223 (method url-fetch)
8224 (uri (string-append "mirror://cran/src/contrib/qtl_"
8225 version ".tar.gz"))
8226 (sha256
8227 (base32
8228 "03lmvydln8b7666b6w46qbryhf83vsd11d4y2v95rfgvqgq66l1i"))))
8229 (build-system r-build-system)
8230 (home-page "http://rqtl.org/")
8231 (synopsis "R package for analyzing QTL experiments in genetics")
8232 (description "R/qtl is an extension library for the R statistics
8233 system. It is used to analyze experimental crosses for identifying
8234 genes contributing to variation in quantitative traits (so-called
8235 quantitative trait loci, QTLs).
8236
8237 Using a hidden Markov model, R/qtl allows to estimate genetic maps, to
8238 identify genotyping errors, and to perform single-QTL and two-QTL,
8239 two-dimensional genome scans.")
8240 (license license:gpl3)))
8241
8242 (define-public r-qtl2
8243 (package
8244 (name "r-qtl2")
8245 (version "0.20")
8246 (source (origin
8247 (method git-fetch)
8248 ;; Not yet available in cran.
8249 (uri (git-reference
8250 (url "https://github.com/rqtl/qtl2.git")
8251 (commit version)))
8252 (file-name (git-file-name name version))
8253 (sha256
8254 (base32 "0l1asr28q25jzbwrbg5490962sg3y4sjrd0qf09p78ws1aq8vfs0"))))
8255 (build-system r-build-system)
8256 (propagated-inputs
8257 `(("r-data-table" ,r-data-table)
8258 ("r-jsonlite" ,r-jsonlite)
8259 ("r-rcpp" ,r-rcpp)
8260 ("r-rcppeigen" ,r-rcppeigen)
8261 ("r-rsqlite" ,r-rsqlite)
8262 ("r-yaml" ,r-yaml)))
8263 (home-page "https://kbroman.org/qtl2/")
8264 (synopsis
8265 "QTL analysis software for high-dimensional data and complex cross designs")
8266 (description
8267 "R/qtl2 (aka qtl2) is a reimplementation of the QTL analysis software
8268 R/qtl, to better handle high-dimensional data and complex cross designs.")
8269 (license license:gpl3)))
8270
8271 (define-public r-zlibbioc
8272 (package
8273 (name "r-zlibbioc")
8274 (version "1.30.0")
8275 (source (origin
8276 (method url-fetch)
8277 (uri (bioconductor-uri "zlibbioc" version))
8278 (sha256
8279 (base32
8280 "1h0a2ps2rfk9azzps7p23sxj5z1giv8gcx0ypzgyz7fkr4xi9z7k"))))
8281 (properties
8282 `((upstream-name . "zlibbioc")))
8283 (build-system r-build-system)
8284 (home-page "https://bioconductor.org/packages/zlibbioc")
8285 (synopsis "Provider for zlib-1.2.5 to R packages")
8286 (description "This package uses the source code of zlib-1.2.5 to create
8287 libraries for systems that do not have these available via other means.")
8288 (license license:artistic2.0)))
8289
8290 (define-public r-r4rna
8291 (package
8292 (name "r-r4rna")
8293 (version "0.1.4")
8294 (source
8295 (origin
8296 (method url-fetch)
8297 (uri (string-append "http://www.e-rna.org/r-chie/files/R4RNA_"
8298 version ".tar.gz"))
8299 (sha256
8300 (base32
8301 "1p0i78wh76jfgmn9jphbwwaz6yy6pipzfg08xs54cxavxg2j81p5"))))
8302 (build-system r-build-system)
8303 (propagated-inputs
8304 `(("r-optparse" ,r-optparse)
8305 ("r-rcolorbrewer" ,r-rcolorbrewer)))
8306 (home-page "http://www.e-rna.org/r-chie/index.cgi")
8307 (synopsis "Analysis framework for RNA secondary structure")
8308 (description
8309 "The R4RNA package aims to be a general framework for the analysis of RNA
8310 secondary structure and comparative analysis in R.")
8311 (license license:gpl3+)))
8312
8313 (define-public r-rhtslib
8314 (package
8315 (name "r-rhtslib")
8316 (version "1.16.3")
8317 (source
8318 (origin
8319 (method url-fetch)
8320 (uri (bioconductor-uri "Rhtslib" version))
8321 (sha256
8322 (base32
8323 "1lmrfr32nrz36abn440kvzzck53y2320xjxqzs2jw7m2a9h3ryak"))))
8324 (properties `((upstream-name . "Rhtslib")))
8325 (build-system r-build-system)
8326 ;; Without this a temporary directory ends up in the Rhtslib.so binary,
8327 ;; which makes R abort the build.
8328 (arguments '(#:configure-flags '("--no-staged-install")))
8329 (propagated-inputs
8330 `(("r-zlibbioc" ,r-zlibbioc)))
8331 (inputs
8332 `(("zlib" ,zlib)))
8333 (native-inputs
8334 `(("pkg-config" ,pkg-config)))
8335 (home-page "https://github.com/nhayden/Rhtslib")
8336 (synopsis "High-throughput sequencing library as an R package")
8337 (description
8338 "This package provides the HTSlib C library for high-throughput
8339 nucleotide sequence analysis. The package is primarily useful to developers
8340 of other R packages who wish to make use of HTSlib.")
8341 (license license:lgpl2.0+)))
8342
8343 (define-public r-bamsignals
8344 (package
8345 (name "r-bamsignals")
8346 (version "1.16.0")
8347 (source
8348 (origin
8349 (method url-fetch)
8350 (uri (bioconductor-uri "bamsignals" version))
8351 (sha256
8352 (base32
8353 "15q1q51dwl9qxfkf10yppw4m194ba03nq9plsrbj8fqj00v4729i"))))
8354 (build-system r-build-system)
8355 (propagated-inputs
8356 `(("r-biocgenerics" ,r-biocgenerics)
8357 ("r-genomicranges" ,r-genomicranges)
8358 ("r-iranges" ,r-iranges)
8359 ("r-rcpp" ,r-rcpp)
8360 ("r-rhtslib" ,r-rhtslib)
8361 ("r-zlibbioc" ,r-zlibbioc)))
8362 (inputs
8363 `(("zlib" ,zlib)))
8364 (home-page "https://bioconductor.org/packages/bamsignals")
8365 (synopsis "Extract read count signals from bam files")
8366 (description
8367 "This package allows to efficiently obtain count vectors from indexed bam
8368 files. It counts the number of nucleotide sequence reads in given genomic
8369 ranges and it computes reads profiles and coverage profiles. It also handles
8370 paired-end data.")
8371 (license license:gpl2+)))
8372
8373 (define-public r-rcas
8374 (package
8375 (name "r-rcas")
8376 (version "1.10.1")
8377 (source (origin
8378 (method url-fetch)
8379 (uri (bioconductor-uri "RCAS" version))
8380 (sha256
8381 (base32
8382 "06z5zmdi34jblw37z6ff8hb6lvvi0chwr37acwqfn8d27ax9lakz"))))
8383 (properties `((upstream-name . "RCAS")))
8384 (build-system r-build-system)
8385 (propagated-inputs
8386 `(("r-annotationdbi" ,r-annotationdbi)
8387 ("r-biocgenerics" ,r-biocgenerics)
8388 ("r-biomart" ,r-biomart)
8389 ("r-biostrings" ,r-biostrings)
8390 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8391 ("r-cowplot" ,r-cowplot)
8392 ("r-data-table" ,r-data-table)
8393 ("r-dbi" ,r-dbi)
8394 ("r-dt" ,r-dt)
8395 ("r-genomation" ,r-genomation)
8396 ("r-genomeinfodb" ,r-genomeinfodb)
8397 ("r-genomicfeatures" ,r-genomicfeatures)
8398 ("r-genomicranges" ,r-genomicranges)
8399 ("r-ggplot2" ,r-ggplot2)
8400 ("r-ggseqlogo" ,r-ggseqlogo)
8401 ("r-knitr" ,r-knitr)
8402 ("r-motifrg" ,r-motifrg)
8403 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
8404 ("r-pbapply" ,r-pbapply)
8405 ("r-pheatmap" ,r-pheatmap)
8406 ("r-plotly" ,r-plotly)
8407 ("r-plotrix" ,r-plotrix)
8408 ("r-proxy" ,r-proxy)
8409 ("r-rsqlite" ,r-rsqlite)
8410 ("r-rtracklayer" ,r-rtracklayer)
8411 ("r-rmarkdown" ,r-rmarkdown)
8412 ("r-s4vectors" ,r-s4vectors)
8413 ("r-topgo" ,r-topgo)
8414 ("pandoc" ,ghc-pandoc)))
8415 (synopsis "RNA-centric annotation system")
8416 (description
8417 "RCAS aims to be a standalone RNA-centric annotation system that provides
8418 intuitive reports and publication-ready graphics. This package provides the R
8419 library implementing most of the pipeline's features.")
8420 (home-page "https://github.com/BIMSBbioinfo/RCAS")
8421 (license license:artistic2.0)))
8422
8423 (define-public rcas-web
8424 (package
8425 (name "rcas-web")
8426 (version "0.1.0")
8427 (source
8428 (origin
8429 (method url-fetch)
8430 (uri (string-append "https://github.com/BIMSBbioinfo/rcas-web/"
8431 "releases/download/v" version
8432 "/rcas-web-" version ".tar.gz"))
8433 (sha256
8434 (base32
8435 "0wq951aj45gqki1bickg876i993lmawkp8x24agg264br5x716db"))))
8436 (build-system gnu-build-system)
8437 (arguments
8438 `(#:phases
8439 (modify-phases %standard-phases
8440 (add-before 'configure 'find-RCAS
8441 ;; The configure script can't find non-1.3.x versions of RCAS because
8442 ;; its R expression ‘1.10.1 >= 1.3.4’ evaluates to false.
8443 (lambda _
8444 (substitute* "configure"
8445 (("1\\.3\\.4") "0.0.0"))
8446 #t))
8447 (add-after 'install 'wrap-executable
8448 (lambda* (#:key inputs outputs #:allow-other-keys)
8449 (let* ((out (assoc-ref outputs "out"))
8450 (json (assoc-ref inputs "guile-json"))
8451 (redis (assoc-ref inputs "guile-redis"))
8452 (path (string-append
8453 json "/share/guile/site/2.2:"
8454 redis "/share/guile/site/2.2")))
8455 (wrap-program (string-append out "/bin/rcas-web")
8456 `("GUILE_LOAD_PATH" ":" = (,path))
8457 `("GUILE_LOAD_COMPILED_PATH" ":" = (,path))
8458 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
8459 #t)))))
8460 (inputs
8461 `(("r-minimal" ,r-minimal)
8462 ("r-rcas" ,r-rcas)
8463 ("guile-next" ,guile-2.2)
8464 ("guile-json" ,guile-json-1)
8465 ("guile-redis" ,guile-redis)))
8466 (native-inputs
8467 `(("pkg-config" ,pkg-config)))
8468 (home-page "https://github.com/BIMSBbioinfo/rcas-web")
8469 (synopsis "Web interface for RNA-centric annotation system (RCAS)")
8470 (description "This package provides a simple web interface for the
8471 @dfn{RNA-centric annotation system} (RCAS).")
8472 (license license:agpl3+)))
8473
8474 (define-public r-mutationalpatterns
8475 (package
8476 (name "r-mutationalpatterns")
8477 (version "1.10.0")
8478 (source
8479 (origin
8480 (method url-fetch)
8481 (uri (bioconductor-uri "MutationalPatterns" version))
8482 (sha256
8483 (base32
8484 "1k3r06xj1nim1s8as1i7fykfa6fbb4x456kslbzdvbf83ppx34z3"))))
8485 (build-system r-build-system)
8486 (propagated-inputs
8487 `(("r-biocgenerics" ,r-biocgenerics)
8488 ("r-biostrings" ,r-biostrings)
8489 ;; These two packages are suggested packages
8490 ("r-bsgenome-hsapiens-1000g" ,r-bsgenome-hsapiens-1000genomes-hs37d5)
8491 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8492 ("r-genomicranges" ,r-genomicranges)
8493 ("r-genomeinfodb" ,r-genomeinfodb)
8494 ("r-ggplot2" ,r-ggplot2)
8495 ("r-iranges" ,r-iranges)
8496 ("r-nmf" ,r-nmf)
8497 ("r-plyr" ,r-plyr)
8498 ("r-pracma" ,r-pracma)
8499 ("r-reshape2" ,r-reshape2)
8500 ("r-cowplot" ,r-cowplot)
8501 ("r-ggdendro" ,r-ggdendro)
8502 ("r-s4vectors" ,r-s4vectors)
8503 ("r-summarizedexperiment" ,r-summarizedexperiment)
8504 ("r-variantannotation" ,r-variantannotation)))
8505 (home-page "https://bioconductor.org/packages/MutationalPatterns/")
8506 (synopsis "Extract and visualize mutational patterns in genomic data")
8507 (description "This package provides an extensive toolset for the
8508 characterization and visualization of a wide range of mutational patterns
8509 in SNV base substitution data.")
8510 (license license:expat)))
8511
8512 (define-public r-chipkernels
8513 (let ((commit "c9cfcacb626b1221094fb3490ea7bac0fd625372")
8514 (revision "1"))
8515 (package
8516 (name "r-chipkernels")
8517 (version (string-append "1.1-" revision "." (string-take commit 9)))
8518 (source
8519 (origin
8520 (method git-fetch)
8521 (uri (git-reference
8522 (url "https://github.com/ManuSetty/ChIPKernels.git")
8523 (commit commit)))
8524 (file-name (string-append name "-" version))
8525 (sha256
8526 (base32
8527 "14bj5qhjm1hsm9ay561nfbqi9wxsa7y487df2idsaaf6z10nw4v0"))))
8528 (build-system r-build-system)
8529 (propagated-inputs
8530 `(("r-iranges" ,r-iranges)
8531 ("r-xvector" ,r-xvector)
8532 ("r-biostrings" ,r-biostrings)
8533 ("r-bsgenome" ,r-bsgenome)
8534 ("r-gtools" ,r-gtools)
8535 ("r-genomicranges" ,r-genomicranges)
8536 ("r-sfsmisc" ,r-sfsmisc)
8537 ("r-kernlab" ,r-kernlab)
8538 ("r-s4vectors" ,r-s4vectors)
8539 ("r-biocgenerics" ,r-biocgenerics)))
8540 (home-page "https://github.com/ManuSetty/ChIPKernels")
8541 (synopsis "Build string kernels for DNA Sequence analysis")
8542 (description "ChIPKernels is an R package for building different string
8543 kernels used for DNA Sequence analysis. A dictionary of the desired kernel
8544 must be built and this dictionary can be used for determining kernels for DNA
8545 Sequences.")
8546 (license license:gpl2+))))
8547
8548 (define-public r-seqgl
8549 (package
8550 (name "r-seqgl")
8551 (version "1.1.4")
8552 (source
8553 (origin
8554 (method git-fetch)
8555 (uri (git-reference
8556 (url "https://github.com/ManuSetty/SeqGL.git")
8557 (commit version)))
8558 (file-name (git-file-name name version))
8559 (sha256
8560 (base32
8561 "1r6ywvhxl3ffv48lgj7sbd582mcc6dha3ksgc2qjlvjrnkbj3799"))))
8562 (build-system r-build-system)
8563 (propagated-inputs
8564 `(("r-biostrings" ,r-biostrings)
8565 ("r-chipkernels" ,r-chipkernels)
8566 ("r-genomicranges" ,r-genomicranges)
8567 ("r-spams" ,r-spams)
8568 ("r-wgcna" ,r-wgcna)
8569 ("r-fastcluster" ,r-fastcluster)))
8570 (home-page "https://github.com/ManuSetty/SeqGL")
8571 (synopsis "Group lasso for Dnase/ChIP-seq data")
8572 (description "SeqGL is a group lasso based algorithm to extract
8573 transcription factor sequence signals from ChIP, DNase and ATAC-seq profiles.
8574 This package presents a method which uses group lasso to discriminate between
8575 bound and non bound genomic regions to accurately identify transcription
8576 factors bound at the specific regions.")
8577 (license license:gpl2+)))
8578
8579 (define-public r-tximport
8580 (package
8581 (name "r-tximport")
8582 (version "1.12.3")
8583 (source (origin
8584 (method url-fetch)
8585 (uri (bioconductor-uri "tximport" version))
8586 (sha256
8587 (base32
8588 "070nx0blvvfhsnkbb5j899wy7dgalrh4xfcciir9l2xl67lna1zf"))))
8589 (build-system r-build-system)
8590 (home-page "https://bioconductor.org/packages/tximport")
8591 (synopsis "Import and summarize transcript-level estimates for gene-level analysis")
8592 (description
8593 "This package provides tools to import transcript-level abundance,
8594 estimated counts and transcript lengths, and to summarize them into matrices
8595 for use with downstream gene-level analysis packages. Average transcript
8596 length, weighted by sample-specific transcript abundance estimates, is
8597 provided as a matrix which can be used as an offset for different expression
8598 of gene-level counts.")
8599 (license license:gpl2+)))
8600
8601 (define-public r-rhdf5
8602 (package
8603 (name "r-rhdf5")
8604 (version "2.28.1")
8605 (source (origin
8606 (method url-fetch)
8607 (uri (bioconductor-uri "rhdf5" version))
8608 (sha256
8609 (base32
8610 "027cv1kh3xl66lrrahv2jgfmvgcwfpcj9dpgdj5fd9ybf5nyjcwb"))))
8611 (build-system r-build-system)
8612 (propagated-inputs
8613 `(("r-rhdf5lib" ,r-rhdf5lib)))
8614 (inputs
8615 `(("zlib" ,zlib)))
8616 (home-page "https://bioconductor.org/packages/rhdf5")
8617 (synopsis "HDF5 interface to R")
8618 (description
8619 "This R/Bioconductor package provides an interface between HDF5 and R.
8620 HDF5's main features are the ability to store and access very large and/or
8621 complex datasets and a wide variety of metadata on mass storage (disk) through
8622 a completely portable file format. The rhdf5 package is thus suited for the
8623 exchange of large and/or complex datasets between R and other software
8624 package, and for letting R applications work on datasets that are larger than
8625 the available RAM.")
8626 (license license:artistic2.0)))
8627
8628 (define-public r-annotationfilter
8629 (package
8630 (name "r-annotationfilter")
8631 (version "1.10.0")
8632 (source (origin
8633 (method url-fetch)
8634 (uri (bioconductor-uri "AnnotationFilter" version))
8635 (sha256
8636 (base32
8637 "1l9sxhlvnwn6327vgg02h11ppmqr2zr07ff8wmcng0i1jbqwa8q5"))))
8638 (properties
8639 `((upstream-name . "AnnotationFilter")))
8640 (build-system r-build-system)
8641 (propagated-inputs
8642 `(("r-genomicranges" ,r-genomicranges)
8643 ("r-lazyeval" ,r-lazyeval)))
8644 (home-page "https://github.com/Bioconductor/AnnotationFilter")
8645 (synopsis "Facilities for filtering Bioconductor annotation resources")
8646 (description
8647 "This package provides classes and other infrastructure to implement
8648 filters for manipulating Bioconductor annotation resources. The filters are
8649 used by @code{ensembldb}, @code{Organism.dplyr}, and other packages.")
8650 (license license:artistic2.0)))
8651
8652 (define-public emboss
8653 (package
8654 (name "emboss")
8655 (version "6.5.7")
8656 (source (origin
8657 (method url-fetch)
8658 (uri (string-append "ftp://emboss.open-bio.org/pub/EMBOSS/old/"
8659 (version-major+minor version) ".0/"
8660 "EMBOSS-" version ".tar.gz"))
8661 (sha256
8662 (base32
8663 "0vsmz96gc411yj2iyzdrsmg4l2n1nhgmp7vrgzlxx3xixv9xbf0q"))))
8664 (build-system gnu-build-system)
8665 (arguments
8666 `(#:configure-flags
8667 (list (string-append "--with-hpdf="
8668 (assoc-ref %build-inputs "libharu")))
8669 #:phases
8670 (modify-phases %standard-phases
8671 (add-after 'unpack 'fix-checks
8672 (lambda _
8673 ;; The PNGDRIVER tests check for the presence of libgd, libpng
8674 ;; and zlib, but assume that they are all found at the same
8675 ;; prefix.
8676 (substitute* "configure.in"
8677 (("CHECK_PNGDRIVER")
8678 "LIBS=\"$LIBS -lgd -lpng -lz -lm\"
8679 AC_DEFINE([PLD_png], [1], [Define to 1 if PNG support is available])
8680 AM_CONDITIONAL(AMPNG, true)"))
8681 #t))
8682 (add-after 'fix-checks 'disable-update-check
8683 (lambda _
8684 ;; At build time there is no connection to the Internet, so
8685 ;; looking for updates will not work.
8686 (substitute* "Makefile.am"
8687 (("\\$\\(bindir\\)/embossupdate") ""))
8688 #t))
8689 (add-after 'disable-update-check 'autogen
8690 (lambda _ (invoke "autoreconf" "-vif") #t)))))
8691 (inputs
8692 `(("perl" ,perl)
8693 ("libpng" ,libpng)
8694 ("gd" ,gd)
8695 ("libx11" ,libx11)
8696 ("libharu" ,libharu)
8697 ("zlib" ,zlib)))
8698 (native-inputs
8699 `(("autoconf" ,autoconf)
8700 ("automake" ,automake)
8701 ("libtool" ,libtool)
8702 ("pkg-config" ,pkg-config)))
8703 (home-page "http://emboss.sourceforge.net")
8704 (synopsis "Molecular biology analysis suite")
8705 (description "EMBOSS is the \"European Molecular Biology Open Software
8706 Suite\". EMBOSS is an analysis package specially developed for the needs of
8707 the molecular biology (e.g. EMBnet) user community. The software
8708 automatically copes with data in a variety of formats and even allows
8709 transparent retrieval of sequence data from the web. It also provides a
8710 number of libraries for the development of software in the field of molecular
8711 biology. EMBOSS also integrates a range of currently available packages and
8712 tools for sequence analysis into a seamless whole.")
8713 (license license:gpl2+)))
8714
8715 (define-public bits
8716 (let ((revision "1")
8717 (commit "3cc4567896d9d6442923da944beb704750a08d2d"))
8718 (package
8719 (name "bits")
8720 ;; The version is 2.13.0 even though no release archives have been
8721 ;; published as yet.
8722 (version (string-append "2.13.0-" revision "." (string-take commit 9)))
8723 (source (origin
8724 (method git-fetch)
8725 (uri (git-reference
8726 (url "https://github.com/arq5x/bits.git")
8727 (commit commit)))
8728 (file-name (string-append name "-" version "-checkout"))
8729 (sha256
8730 (base32
8731 "17n2kffk4kmhivd8c98g2vr6y1s23vbg4sxlxs689wni66797hbs"))))
8732 (build-system gnu-build-system)
8733 (arguments
8734 `(#:tests? #f ;no tests included
8735 #:phases
8736 (modify-phases %standard-phases
8737 (delete 'configure)
8738 (add-after 'unpack 'remove-cuda
8739 (lambda _
8740 (substitute* "Makefile"
8741 ((".*_cuda") "")
8742 (("(bits_test_intersections) \\\\" _ match) match))
8743 #t))
8744 (replace 'install
8745 (lambda* (#:key outputs #:allow-other-keys)
8746 (copy-recursively
8747 "bin" (string-append (assoc-ref outputs "out") "/bin"))
8748 #t)))))
8749 (inputs
8750 `(("gsl" ,gsl)
8751 ("zlib" ,zlib)))
8752 (home-page "https://github.com/arq5x/bits")
8753 (synopsis "Implementation of binary interval search algorithm")
8754 (description "This package provides an implementation of the
8755 BITS (Binary Interval Search) algorithm, an approach to interval set
8756 intersection. It is especially suited for the comparison of diverse genomic
8757 datasets and the exploration of large datasets of genome
8758 intervals (e.g. genes, sequence alignments).")
8759 (license license:gpl2))))
8760
8761 (define-public piranha
8762 ;; There is no release tarball for the latest version. The latest commit is
8763 ;; older than one year at the time of this writing.
8764 (let ((revision "1")
8765 (commit "0466d364b71117d01e4471b74c514436cc281233"))
8766 (package
8767 (name "piranha")
8768 (version (string-append "1.2.1-" revision "." (string-take commit 9)))
8769 (source (origin
8770 (method git-fetch)
8771 (uri (git-reference
8772 (url "https://github.com/smithlabcode/piranha.git")
8773 (commit commit)))
8774 (file-name (git-file-name name version))
8775 (sha256
8776 (base32
8777 "117dc0zf20c61jam69sk4abl57ah6yi6i7qra7d7y5zrbgk12q5n"))))
8778 (build-system gnu-build-system)
8779 (arguments
8780 `(#:test-target "test"
8781 #:phases
8782 (modify-phases %standard-phases
8783 (add-after 'unpack 'copy-smithlab-cpp
8784 (lambda* (#:key inputs #:allow-other-keys)
8785 (for-each (lambda (file)
8786 (install-file file "./src/smithlab_cpp/"))
8787 (find-files (assoc-ref inputs "smithlab-cpp")))
8788 #t))
8789 (add-after 'install 'install-to-store
8790 (lambda* (#:key outputs #:allow-other-keys)
8791 (let* ((out (assoc-ref outputs "out"))
8792 (bin (string-append out "/bin")))
8793 (for-each (lambda (file)
8794 (install-file file bin))
8795 (find-files "bin" ".*")))
8796 #t)))
8797 #:configure-flags
8798 (list (string-append "--with-bam_tools_headers="
8799 (assoc-ref %build-inputs "bamtools") "/include/bamtools")
8800 (string-append "--with-bam_tools_library="
8801 (assoc-ref %build-inputs "bamtools") "/lib/bamtools"))))
8802 (inputs
8803 `(("bamtools" ,bamtools)
8804 ("samtools" ,samtools-0.1)
8805 ("gsl" ,gsl)
8806 ("smithlab-cpp"
8807 ,(let ((commit "3723e2db438c51501d0423429ff396c3035ba46a"))
8808 (origin
8809 (method git-fetch)
8810 (uri (git-reference
8811 (url "https://github.com/smithlabcode/smithlab_cpp.git")
8812 (commit commit)))
8813 (file-name (string-append "smithlab_cpp-" commit "-checkout"))
8814 (sha256
8815 (base32
8816 "0l4gvbwslw5ngziskja41c00x1r06l3yidv7y0xw9djibhykzy0g")))))))
8817 (native-inputs
8818 `(("python" ,python-2)))
8819 (home-page "https://github.com/smithlabcode/piranha")
8820 (synopsis "Peak-caller for CLIP-seq and RIP-seq data")
8821 (description
8822 "Piranha is a peak-caller for genomic data produced by CLIP-seq and
8823 RIP-seq experiments. It takes input in BED or BAM format and identifies
8824 regions of statistically significant read enrichment. Additional covariates
8825 may optionally be provided to further inform the peak-calling process.")
8826 (license license:gpl3+))))
8827
8828 (define-public pepr
8829 (package
8830 (name "pepr")
8831 (version "1.0.9")
8832 (source (origin
8833 (method url-fetch)
8834 (uri (pypi-uri "PePr" version))
8835 (sha256
8836 (base32
8837 "0qxjfdpl1b1y53nccws2d85f6k74zwmx8y8sd9rszcqhfayx6gdx"))))
8838 (build-system python-build-system)
8839 (arguments
8840 `(#:python ,python-2 ; python2 only
8841 #:tests? #f)) ; no tests included
8842 (propagated-inputs
8843 `(("python2-numpy" ,python2-numpy)
8844 ("python2-scipy" ,python2-scipy)
8845 ("python2-pysam" ,python2-pysam)))
8846 (home-page "https://github.com/shawnzhangyx/PePr")
8847 (synopsis "Peak-calling and prioritization pipeline for ChIP-Seq data")
8848 (description
8849 "PePr is a ChIP-Seq peak calling or differential binding analysis tool
8850 that is primarily designed for data with biological replicates. It uses a
8851 negative binomial distribution to model the read counts among the samples in
8852 the same group, and look for consistent differences between ChIP and control
8853 group or two ChIP groups run under different conditions.")
8854 (license license:gpl3+)))
8855
8856 (define-public filevercmp
8857 (let ((commit "1a9b779b93d0b244040274794d402106907b71b7"))
8858 (package
8859 (name "filevercmp")
8860 (version (string-append "0-1." (string-take commit 7)))
8861 (source (origin
8862 (method git-fetch)
8863 (uri (git-reference
8864 (url "https://github.com/ekg/filevercmp.git")
8865 (commit commit)))
8866 (file-name (git-file-name name commit))
8867 (sha256
8868 (base32
8869 "1j9vxsy0y050v59h0q1d6501fcw1kjvj0d18l1xk2zyg0jzj247c"))))
8870 (build-system gnu-build-system)
8871 (arguments
8872 `(#:tests? #f ; There are no tests to run.
8873 #:phases
8874 (modify-phases %standard-phases
8875 (delete 'configure) ; There is no configure phase.
8876 (replace 'install
8877 (lambda* (#:key outputs #:allow-other-keys)
8878 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
8879 (install-file "filevercmp" bin)
8880 #t))))))
8881 (home-page "https://github.com/ekg/filevercmp")
8882 (synopsis "This program compares version strings")
8883 (description "This program compares version strings. It intends to be a
8884 replacement for strverscmp.")
8885 (license license:gpl3+))))
8886
8887 (define-public multiqc
8888 (package
8889 (name "multiqc")
8890 (version "1.5")
8891 (source
8892 (origin
8893 (method url-fetch)
8894 (uri (pypi-uri "multiqc" version))
8895 (sha256
8896 (base32
8897 "02iihfl0w0hpnr4pa0sbd1y9qxrg3ycyhjp5lidkcrqh1lmzs3zy"))))
8898 (build-system python-build-system)
8899 (propagated-inputs
8900 `(("python-jinja2" ,python-jinja2)
8901 ("python-simplejson" ,python-simplejson)
8902 ("python-pyyaml" ,python-pyyaml)
8903 ("python-click" ,python-click)
8904 ("python-spectra" ,python-spectra)
8905 ("python-requests" ,python-requests)
8906 ("python-markdown" ,python-markdown)
8907 ("python-lzstring" ,python-lzstring)
8908 ("python-matplotlib" ,python-matplotlib)
8909 ("python-numpy" ,python-numpy)
8910 ;; MultQC checks for the presence of nose at runtime.
8911 ("python-nose" ,python-nose)))
8912 (arguments
8913 `(#:phases
8914 (modify-phases %standard-phases
8915 (add-after 'unpack 'relax-requirements
8916 (lambda _
8917 (substitute* "setup.py"
8918 ;; MultiQC 1.5 ‘requires’ a version of python-matplotlib older
8919 ;; than the one in Guix, but should work fine with 2.2.2.
8920 ;; See <https://github.com/ewels/MultiQC/issues/725> and
8921 ;; <https://github.com/ewels/MultiQC/issues/732> for details.
8922 (("['\"]matplotlib.*?['\"]")
8923 "'matplotlib'"))
8924 #t)))))
8925 (home-page "http://multiqc.info")
8926 (synopsis "Aggregate bioinformatics analysis reports")
8927 (description
8928 "MultiQC is a tool to aggregate bioinformatics results across many
8929 samples into a single report. It contains modules for a large number of
8930 common bioinformatics tools.")
8931 (license license:gpl3+)))
8932
8933 (define-public r-chipseq
8934 (package
8935 (name "r-chipseq")
8936 (version "1.36.0")
8937 (source
8938 (origin
8939 (method url-fetch)
8940 (uri (bioconductor-uri "chipseq" version))
8941 (sha256
8942 (base32
8943 "1ln6bn08xig3j6ryak1xfkjhvpnlm2vf1czz9hlj6f02299nbs6l"))))
8944 (build-system r-build-system)
8945 (propagated-inputs
8946 `(("r-biocgenerics" ,r-biocgenerics)
8947 ("r-genomicranges" ,r-genomicranges)
8948 ("r-iranges" ,r-iranges)
8949 ("r-lattice" ,r-lattice)
8950 ("r-s4vectors" ,r-s4vectors)
8951 ("r-shortread" ,r-shortread)))
8952 (home-page "https://bioconductor.org/packages/chipseq")
8953 (synopsis "Package for analyzing ChIPseq data")
8954 (description
8955 "This package provides tools for processing short read data from ChIPseq
8956 experiments.")
8957 (license license:artistic2.0)))
8958
8959 (define-public r-copyhelper
8960 (package
8961 (name "r-copyhelper")
8962 (version "1.6.0")
8963 (source
8964 (origin
8965 (method url-fetch)
8966 (uri (string-append "https://bioconductor.org/packages/release/"
8967 "data/experiment/src/contrib/CopyhelpeR_"
8968 version ".tar.gz"))
8969 (sha256
8970 (base32
8971 "0x7cyynjmxls9as2gg0iyp9x5fpalxmdjq914ss7i84i9zyk5bhq"))))
8972 (properties `((upstream-name . "CopyhelpeR")))
8973 (build-system r-build-system)
8974 (home-page "https://bioconductor.org/packages/CopyhelpeR/")
8975 (synopsis "Helper files for CopywriteR")
8976 (description
8977 "This package contains the helper files that are required to run the
8978 Bioconductor package CopywriteR. It contains pre-assembled 1kb bin GC-content
8979 and mappability files for the reference genomes hg18, hg19, hg38, mm9 and
8980 mm10. In addition, it contains a blacklist filter to remove regions that
8981 display copy number variation. Files are stored as GRanges objects from the
8982 GenomicRanges Bioconductor package.")
8983 (license license:gpl2)))
8984
8985 (define-public r-copywriter
8986 (package
8987 (name "r-copywriter")
8988 (version "2.18.0")
8989 (source
8990 (origin
8991 (method url-fetch)
8992 (uri (bioconductor-uri "CopywriteR" version))
8993 (sha256
8994 (base32
8995 "0llg1zpxg7qnvja5f5w1z1xic0jdg6zc4mfn97h2sm44skxxcyl1"))))
8996 (properties `((upstream-name . "CopywriteR")))
8997 (build-system r-build-system)
8998 (propagated-inputs
8999 `(("r-biocparallel" ,r-biocparallel)
9000 ("r-chipseq" ,r-chipseq)
9001 ("r-copyhelper" ,r-copyhelper)
9002 ("r-data-table" ,r-data-table)
9003 ("r-dnacopy" ,r-dnacopy)
9004 ("r-futile-logger" ,r-futile-logger)
9005 ("r-genomeinfodb" ,r-genomeinfodb)
9006 ("r-genomicalignments" ,r-genomicalignments)
9007 ("r-genomicranges" ,r-genomicranges)
9008 ("r-gtools" ,r-gtools)
9009 ("r-iranges" ,r-iranges)
9010 ("r-matrixstats" ,r-matrixstats)
9011 ("r-rsamtools" ,r-rsamtools)
9012 ("r-s4vectors" ,r-s4vectors)))
9013 (home-page "https://github.com/PeeperLab/CopywriteR")
9014 (synopsis "Copy number information from targeted sequencing")
9015 (description
9016 "CopywriteR extracts DNA copy number information from targeted sequencing
9017 by utilizing off-target reads. It allows for extracting uniformly distributed
9018 copy number information, can be used without reference, and can be applied to
9019 sequencing data obtained from various techniques including chromatin
9020 immunoprecipitation and target enrichment on small gene panels. Thereby,
9021 CopywriteR constitutes a widely applicable alternative to available copy
9022 number detection tools.")
9023 (license license:gpl2)))
9024
9025 (define-public r-methylkit
9026 (package
9027 (name "r-methylkit")
9028 (version "1.12.0")
9029 (source (origin
9030 (method url-fetch)
9031 (uri (bioconductor-uri "methylKit" version))
9032 (sha256
9033 (base32
9034 "0klwc0sbmrxj1lxbz16pl39rxjm0pi57gjw547hlgnac1p9fspzy"))))
9035 (properties `((upstream-name . "methylKit")))
9036 (build-system r-build-system)
9037 (propagated-inputs
9038 `(("r-data-table" ,r-data-table)
9039 ("r-emdbook" ,r-emdbook)
9040 ("r-fastseg" ,r-fastseg)
9041 ("r-genomeinfodb" ,r-genomeinfodb)
9042 ("r-genomicranges" ,r-genomicranges)
9043 ("r-gtools" ,r-gtools)
9044 ("r-iranges" ,r-iranges)
9045 ("r-kernsmooth" ,r-kernsmooth)
9046 ("r-limma" ,r-limma)
9047 ("r-mclust" ,r-mclust)
9048 ("r-mgcv" ,r-mgcv)
9049 ("r-qvalue" ,r-qvalue)
9050 ("r-r-utils" ,r-r-utils)
9051 ("r-rcpp" ,r-rcpp)
9052 ("r-rhtslib" ,r-rhtslib)
9053 ("r-rsamtools" ,r-rsamtools)
9054 ("r-rtracklayer" ,r-rtracklayer)
9055 ("r-s4vectors" ,r-s4vectors)
9056 ("r-zlibbioc" ,r-zlibbioc)))
9057 (inputs
9058 `(("zlib" ,zlib)))
9059 (home-page "https://github.com/al2na/methylKit")
9060 (synopsis
9061 "DNA methylation analysis from high-throughput bisulfite sequencing results")
9062 (description
9063 "MethylKit is an R package for DNA methylation analysis and annotation
9064 from high-throughput bisulfite sequencing. The package is designed to deal
9065 with sequencing data from @dfn{Reduced representation bisulfite
9066 sequencing} (RRBS) and its variants, but also target-capture methods and whole
9067 genome bisulfite sequencing. It also has functions to analyze base-pair
9068 resolution 5hmC data from experimental protocols such as oxBS-Seq and
9069 TAB-Seq.")
9070 (license license:artistic2.0)))
9071
9072 (define-public r-sva
9073 (package
9074 (name "r-sva")
9075 (version "3.34.0")
9076 (source
9077 (origin
9078 (method url-fetch)
9079 (uri (bioconductor-uri "sva" version))
9080 (sha256
9081 (base32
9082 "1bzms6idx30s4nxl610zwa8rjxsyxb5pf3vxsdfmxg8j4pab9gh1"))))
9083 (build-system r-build-system)
9084 (propagated-inputs
9085 `(("r-genefilter" ,r-genefilter)
9086 ("r-mgcv" ,r-mgcv)
9087 ("r-biocparallel" ,r-biocparallel)
9088 ("r-matrixstats" ,r-matrixstats)
9089 ("r-limma" ,r-limma)))
9090 (home-page "https://bioconductor.org/packages/sva")
9091 (synopsis "Surrogate variable analysis")
9092 (description
9093 "This package contains functions for removing batch effects and other
9094 unwanted variation in high-throughput experiment. It also contains functions
9095 for identifying and building surrogate variables for high-dimensional data
9096 sets. Surrogate variables are covariates constructed directly from
9097 high-dimensional data like gene expression/RNA sequencing/methylation/brain
9098 imaging data that can be used in subsequent analyses to adjust for unknown,
9099 unmodeled, or latent sources of noise.")
9100 (license license:artistic2.0)))
9101
9102 (define-public r-seqminer
9103 (package
9104 (name "r-seqminer")
9105 (version "7.1")
9106 (source
9107 (origin
9108 (method url-fetch)
9109 (uri (cran-uri "seqminer" version))
9110 (sha256
9111 (base32
9112 "1jydcpkw4rwfp983j83kipvsvr10as9pb49zzn3c2v09k1gh3ymy"))))
9113 (build-system r-build-system)
9114 (inputs
9115 `(("zlib" ,zlib)))
9116 (home-page "http://seqminer.genomic.codes")
9117 (synopsis "Read nucleotide sequence data (VCF, BCF, and METAL formats)")
9118 (description
9119 "This package provides tools to integrate nucleotide sequencing
9120 data (variant call format, e.g. VCF or BCF) or meta-analysis results in R.")
9121 ;; Any version of the GPL is acceptable
9122 (license (list license:gpl2+ license:gpl3+))))
9123
9124 (define-public r-raremetals2
9125 (package
9126 (name "r-raremetals2")
9127 (version "0.1")
9128 (source
9129 (origin
9130 (method url-fetch)
9131 (uri (string-append "http://genome.sph.umich.edu/w/images/"
9132 "b/b7/RareMETALS2_" version ".tar.gz"))
9133 (sha256
9134 (base32
9135 "0z5ljcgvnm06ja9lm85a3cniq7slxcy37aqqkxrdidr79an5fs4s"))))
9136 (properties `((upstream-name . "RareMETALS2")))
9137 (build-system r-build-system)
9138 (propagated-inputs
9139 `(("r-seqminer" ,r-seqminer)
9140 ("r-mvtnorm" ,r-mvtnorm)
9141 ("r-mass" ,r-mass)
9142 ("r-compquadform" ,r-compquadform)
9143 ("r-getopt" ,r-getopt)))
9144 (home-page "http://genome.sph.umich.edu/wiki/RareMETALS2")
9145 (synopsis "Analyze gene-level association tests for binary trait")
9146 (description
9147 "The R package rareMETALS2 is an extension of the R package rareMETALS.
9148 It was designed to meta-analyze gene-level association tests for binary trait.
9149 While rareMETALS offers a near-complete solution for meta-analysis of
9150 gene-level tests for quantitative trait, it does not offer the optimal
9151 solution for binary trait. The package rareMETALS2 offers improved features
9152 for analyzing gene-level association tests in meta-analyses for binary
9153 trait.")
9154 (license license:gpl3)))
9155
9156 (define-public r-maldiquant
9157 (package
9158 (name "r-maldiquant")
9159 (version "1.19.3")
9160 (source
9161 (origin
9162 (method url-fetch)
9163 (uri (cran-uri "MALDIquant" version))
9164 (sha256
9165 (base32
9166 "0b7kdz3x4sdq413h1q09l1qhcvdnnwv6fqsqwllks1cd3xy34c57"))))
9167 (properties `((upstream-name . "MALDIquant")))
9168 (build-system r-build-system)
9169 (home-page "https://cran.r-project.org/web/packages/MALDIquant")
9170 (synopsis "Quantitative analysis of mass spectrometry data")
9171 (description
9172 "This package provides a complete analysis pipeline for matrix-assisted
9173 laser desorption/ionization-time-of-flight (MALDI-TOF) and other
9174 two-dimensional mass spectrometry data. In addition to commonly used plotting
9175 and processing methods it includes distinctive features, namely baseline
9176 subtraction methods such as morphological filters (TopHat) or the
9177 statistics-sensitive non-linear iterative peak-clipping algorithm (SNIP), peak
9178 alignment using warping functions, handling of replicated measurements as well
9179 as allowing spectra with different resolutions.")
9180 (license license:gpl3+)))
9181
9182 (define-public r-protgenerics
9183 (package
9184 (name "r-protgenerics")
9185 (version "1.18.0")
9186 (source
9187 (origin
9188 (method url-fetch)
9189 (uri (bioconductor-uri "ProtGenerics" version))
9190 (sha256
9191 (base32
9192 "1k1ggjgx2la8b21841a4ngkp6xfxwz0czv7x960r7i1jqif8y48z"))))
9193 (properties `((upstream-name . "ProtGenerics")))
9194 (build-system r-build-system)
9195 (home-page "https://github.com/lgatto/ProtGenerics")
9196 (synopsis "S4 generic functions for proteomics infrastructure")
9197 (description
9198 "This package provides S4 generic functions needed by Bioconductor
9199 proteomics packages.")
9200 (license license:artistic2.0)))
9201
9202 (define-public r-mzr
9203 (package
9204 (name "r-mzr")
9205 (version "2.20.0")
9206 (source
9207 (origin
9208 (method url-fetch)
9209 (uri (bioconductor-uri "mzR" version))
9210 (sha256
9211 (base32
9212 "1cwd7phlc5jbx6r6cznyfbdpvcin5fvsaasbbi65zn0s92a80r13"))
9213 (modules '((guix build utils)))
9214 (snippet
9215 '(begin
9216 (delete-file-recursively "src/boost")
9217 #t))))
9218 (properties `((upstream-name . "mzR")))
9219 (build-system r-build-system)
9220 (arguments
9221 `(#:phases
9222 (modify-phases %standard-phases
9223 (add-after 'unpack 'use-system-boost
9224 (lambda _
9225 (substitute* "src/Makevars"
9226 (("\\./boost/libs.*") "")
9227 (("ARCH_OBJS=" line)
9228 (string-append line
9229 "\nARCH_LIBS=-lboost_system -lboost_regex \
9230 -lboost_iostreams -lboost_thread -lboost_filesystem -lboost_chrono\n")))
9231 #t)))))
9232 (inputs
9233 `(;; Our default boost package won't work here, unfortunately, even with
9234 ;; mzR version 2.20.0.
9235 ("boost" ,boost-for-mysql) ; use this instead of the bundled boost sources
9236 ("zlib" ,zlib)))
9237 (propagated-inputs
9238 `(("r-biobase" ,r-biobase)
9239 ("r-biocgenerics" ,r-biocgenerics)
9240 ("r-ncdf4" ,r-ncdf4)
9241 ("r-protgenerics" ,r-protgenerics)
9242 ("r-rcpp" ,r-rcpp)
9243 ("r-rhdf5lib" ,r-rhdf5lib)
9244 ("r-zlibbioc" ,r-zlibbioc)))
9245 (home-page "https://github.com/sneumann/mzR/")
9246 (synopsis "Parser for mass spectrometry data files")
9247 (description
9248 "The mzR package provides a unified API to the common file formats and
9249 parsers available for mass spectrometry data. It comes with a wrapper for the
9250 ISB random access parser for mass spectrometry mzXML, mzData and mzML files.
9251 The package contains the original code written by the ISB, and a subset of the
9252 proteowizard library for mzML and mzIdentML. The netCDF reading code has
9253 previously been used in XCMS.")
9254 (license license:artistic2.0)))
9255
9256 (define-public r-affyio
9257 (package
9258 (name "r-affyio")
9259 (version "1.56.0")
9260 (source
9261 (origin
9262 (method url-fetch)
9263 (uri (bioconductor-uri "affyio" version))
9264 (sha256
9265 (base32
9266 "0sbkadxdlx7qzxc8z8iv90y6j9b2f62mk3i54dijjh56x3hjy3hb"))))
9267 (build-system r-build-system)
9268 (propagated-inputs
9269 `(("r-zlibbioc" ,r-zlibbioc)))
9270 (inputs
9271 `(("zlib" ,zlib)))
9272 (home-page "https://github.com/bmbolstad/affyio")
9273 (synopsis "Tools for parsing Affymetrix data files")
9274 (description
9275 "This package provides routines for parsing Affymetrix data files based
9276 upon file format information. The primary focus is on accessing the CEL and
9277 CDF file formats.")
9278 (license license:lgpl2.0+)))
9279
9280 (define-public r-affy
9281 (package
9282 (name "r-affy")
9283 (version "1.64.0")
9284 (source
9285 (origin
9286 (method url-fetch)
9287 (uri (bioconductor-uri "affy" version))
9288 (sha256
9289 (base32
9290 "131za66wbaz9y86gvjqcc2yd1f2ngl2b796xw726g75djhdgxgap"))))
9291 (build-system r-build-system)
9292 (propagated-inputs
9293 `(("r-affyio" ,r-affyio)
9294 ("r-biobase" ,r-biobase)
9295 ("r-biocgenerics" ,r-biocgenerics)
9296 ("r-biocmanager" ,r-biocmanager)
9297 ("r-preprocesscore" ,r-preprocesscore)
9298 ("r-zlibbioc" ,r-zlibbioc)))
9299 (inputs
9300 `(("zlib" ,zlib)))
9301 (home-page "https://bioconductor.org/packages/affy")
9302 (synopsis "Methods for affymetrix oligonucleotide arrays")
9303 (description
9304 "This package contains functions for exploratory oligonucleotide array
9305 analysis.")
9306 (license license:lgpl2.0+)))
9307
9308 (define-public r-vsn
9309 (package
9310 (name "r-vsn")
9311 (version "3.54.0")
9312 (source
9313 (origin
9314 (method url-fetch)
9315 (uri (bioconductor-uri "vsn" version))
9316 (sha256
9317 (base32
9318 "1naqzb2m0km8fzr6chf9z71sisrwviy1fdi9b3hn4i8p18b4kqzh"))))
9319 (build-system r-build-system)
9320 (propagated-inputs
9321 `(("r-affy" ,r-affy)
9322 ("r-biobase" ,r-biobase)
9323 ("r-ggplot2" ,r-ggplot2)
9324 ("r-lattice" ,r-lattice)
9325 ("r-limma" ,r-limma)))
9326 (home-page "https://bioconductor.org/packages/release/bioc/html/vsn.html")
9327 (synopsis "Variance stabilization and calibration for microarray data")
9328 (description
9329 "The package implements a method for normalising microarray intensities,
9330 and works for single- and multiple-color arrays. It can also be used for data
9331 from other technologies, as long as they have similar format. The method uses
9332 a robust variant of the maximum-likelihood estimator for an
9333 additive-multiplicative error model and affine calibration. The model
9334 incorporates data calibration step (a.k.a. normalization), a model for the
9335 dependence of the variance on the mean intensity and a variance stabilizing
9336 data transformation. Differences between transformed intensities are
9337 analogous to \"normalized log-ratios\". However, in contrast to the latter,
9338 their variance is independent of the mean, and they are usually more sensitive
9339 and specific in detecting differential transcription.")
9340 (license license:artistic2.0)))
9341
9342 (define-public r-mzid
9343 (package
9344 (name "r-mzid")
9345 (version "1.24.0")
9346 (source
9347 (origin
9348 (method url-fetch)
9349 (uri (bioconductor-uri "mzID" version))
9350 (sha256
9351 (base32
9352 "1glcv096bn6pxlw89dlij1nzpwnjvrbxysvw2gm6qgm7rhxlaxrw"))))
9353 (properties `((upstream-name . "mzID")))
9354 (build-system r-build-system)
9355 (propagated-inputs
9356 `(("r-doparallel" ,r-doparallel)
9357 ("r-foreach" ,r-foreach)
9358 ("r-iterators" ,r-iterators)
9359 ("r-plyr" ,r-plyr)
9360 ("r-protgenerics" ,r-protgenerics)
9361 ("r-rcpp" ,r-rcpp)
9362 ("r-xml" ,r-xml)))
9363 (home-page "https://bioconductor.org/packages/mzID")
9364 (synopsis "Parser for mzIdentML files")
9365 (description
9366 "This package provides a parser for mzIdentML files implemented using the
9367 XML package. The parser tries to be general and able to handle all types of
9368 mzIdentML files with the drawback of having less pretty output than a vendor
9369 specific parser.")
9370 (license license:gpl2+)))
9371
9372 (define-public r-pcamethods
9373 (package
9374 (name "r-pcamethods")
9375 (version "1.76.0")
9376 (source
9377 (origin
9378 (method url-fetch)
9379 (uri (bioconductor-uri "pcaMethods" version))
9380 (sha256
9381 (base32
9382 "0svf4n7l0afy4wwgs6x8x4dm330r3311l5vmsxw2f0r4axkh3bzk"))))
9383 (properties `((upstream-name . "pcaMethods")))
9384 (build-system r-build-system)
9385 (propagated-inputs
9386 `(("r-biobase" ,r-biobase)
9387 ("r-biocgenerics" ,r-biocgenerics)
9388 ("r-mass" ,r-mass)
9389 ("r-rcpp" ,r-rcpp)))
9390 (home-page "https://github.com/hredestig/pcamethods")
9391 (synopsis "Collection of PCA methods")
9392 (description
9393 "This package provides Bayesian PCA, Probabilistic PCA, Nipals PCA,
9394 Inverse Non-Linear PCA and the conventional SVD PCA. A cluster based method
9395 for missing value estimation is included for comparison. BPCA, PPCA and
9396 NipalsPCA may be used to perform PCA on incomplete data as well as for
9397 accurate missing value estimation. A set of methods for printing and plotting
9398 the results is also provided. All PCA methods make use of the same data
9399 structure (pcaRes) to provide a common interface to the PCA results.")
9400 (license license:gpl3+)))
9401
9402 (define-public r-msnbase
9403 (package
9404 (name "r-msnbase")
9405 (version "2.10.1")
9406 (source
9407 (origin
9408 (method url-fetch)
9409 (uri (bioconductor-uri "MSnbase" version))
9410 (sha256
9411 (base32
9412 "0z63yqazkycq0zbbarq9ida6al35hv3g7g9g7s7bss4gh0hk7lhd"))))
9413 (properties `((upstream-name . "MSnbase")))
9414 (build-system r-build-system)
9415 (propagated-inputs
9416 `(("r-affy" ,r-affy)
9417 ("r-biobase" ,r-biobase)
9418 ("r-biocgenerics" ,r-biocgenerics)
9419 ("r-biocparallel" ,r-biocparallel)
9420 ("r-digest" ,r-digest)
9421 ("r-ggplot2" ,r-ggplot2)
9422 ("r-impute" ,r-impute)
9423 ("r-iranges" ,r-iranges)
9424 ("r-lattice" ,r-lattice)
9425 ("r-maldiquant" ,r-maldiquant)
9426 ("r-mass" ,r-mass)
9427 ("r-mzid" ,r-mzid)
9428 ("r-mzr" ,r-mzr)
9429 ("r-pcamethods" ,r-pcamethods)
9430 ("r-plyr" ,r-plyr)
9431 ("r-preprocesscore" ,r-preprocesscore)
9432 ("r-protgenerics" ,r-protgenerics)
9433 ("r-rcpp" ,r-rcpp)
9434 ("r-s4vectors" ,r-s4vectors)
9435 ("r-scales" ,r-scales)
9436 ("r-vsn" ,r-vsn)
9437 ("r-xml" ,r-xml)))
9438 (home-page "https://github.com/lgatto/MSnbase")
9439 (synopsis "Base functions and classes for MS-based proteomics")
9440 (description
9441 "This package provides basic plotting, data manipulation and processing
9442 of mass spectrometry based proteomics data.")
9443 (license license:artistic2.0)))
9444
9445 (define-public r-msnid
9446 (package
9447 (name "r-msnid")
9448 (version "1.18.1")
9449 (source
9450 (origin
9451 (method url-fetch)
9452 (uri (bioconductor-uri "MSnID" version))
9453 (sha256
9454 (base32
9455 "1n49l5mjdz7p4g2nwsbhm1jcj42sv6lsriq77n2imvacsvk0qfmb"))))
9456 (properties `((upstream-name . "MSnID")))
9457 (build-system r-build-system)
9458 (propagated-inputs
9459 `(("r-biobase" ,r-biobase)
9460 ("r-data-table" ,r-data-table)
9461 ("r-doparallel" ,r-doparallel)
9462 ("r-dplyr" ,r-dplyr)
9463 ("r-foreach" ,r-foreach)
9464 ("r-iterators" ,r-iterators)
9465 ("r-msnbase" ,r-msnbase)
9466 ("r-mzid" ,r-mzid)
9467 ("r-mzr" ,r-mzr)
9468 ("r-protgenerics" ,r-protgenerics)
9469 ("r-r-cache" ,r-r-cache)
9470 ("r-rcpp" ,r-rcpp)
9471 ("r-reshape2" ,r-reshape2)))
9472 (home-page "https://bioconductor.org/packages/MSnID")
9473 (synopsis "Utilities for LC-MSn proteomics identifications")
9474 (description
9475 "This package extracts @dfn{tandem mass spectrometry} (MS/MS) ID data
9476 from mzIdentML (leveraging the mzID package) or text files. After collating
9477 the search results from multiple datasets it assesses their identification
9478 quality and optimize filtering criteria to achieve the maximum number of
9479 identifications while not exceeding a specified false discovery rate. It also
9480 contains a number of utilities to explore the MS/MS results and assess missed
9481 and irregular enzymatic cleavages, mass measurement accuracy, etc.")
9482 (license license:artistic2.0)))
9483
9484 (define-public r-seurat
9485 (package
9486 (name "r-seurat")
9487 (version "3.1.1")
9488 (source (origin
9489 (method url-fetch)
9490 (uri (cran-uri "Seurat" version))
9491 (sha256
9492 (base32
9493 "084lr2fjdksshsmv1ww82bgn3a9mml7kswsidjrs89snabgvn360"))))
9494 (properties `((upstream-name . "Seurat")))
9495 (build-system r-build-system)
9496 (propagated-inputs
9497 `(("r-ape" ,r-ape)
9498 ("r-cluster" ,r-cluster)
9499 ("r-cowplot" ,r-cowplot)
9500 ("r-fitdistrplus" ,r-fitdistrplus)
9501 ("r-future" ,r-future)
9502 ("r-future-apply" ,r-future-apply)
9503 ("r-ggplot2" ,r-ggplot2)
9504 ("r-ggrepel" ,r-ggrepel)
9505 ("r-ggridges" ,r-ggridges)
9506 ("r-httr" ,r-httr)
9507 ("r-ica" ,r-ica)
9508 ("r-igraph" ,r-igraph)
9509 ("r-irlba" ,r-irlba)
9510 ("r-kernsmooth" ,r-kernsmooth)
9511 ("r-leiden" ,r-leiden)
9512 ("r-lmtest" ,r-lmtest)
9513 ("r-mass" ,r-mass)
9514 ("r-matrix" ,r-matrix)
9515 ("r-metap" ,r-metap)
9516 ("r-pbapply" ,r-pbapply)
9517 ("r-plotly" ,r-plotly)
9518 ("r-png" ,r-png)
9519 ("r-rann" ,r-rann)
9520 ("r-rcolorbrewer" ,r-rcolorbrewer)
9521 ("r-rcpp" ,r-rcpp)
9522 ("r-rcppannoy" ,r-rcppannoy)
9523 ("r-rcppeigen" ,r-rcppeigen)
9524 ("r-rcppprogress" ,r-rcppprogress)
9525 ("r-reticulate" ,r-reticulate)
9526 ("r-rlang" ,r-rlang)
9527 ("r-rocr" ,r-rocr)
9528 ("r-rsvd" ,r-rsvd)
9529 ("r-rtsne" ,r-rtsne)
9530 ("r-scales" ,r-scales)
9531 ("r-sctransform" ,r-sctransform)
9532 ("r-sdmtools" ,r-sdmtools)
9533 ("r-tsne" ,r-tsne)
9534 ("r-uwot" ,r-uwot)))
9535 (home-page "http://www.satijalab.org/seurat")
9536 (synopsis "Seurat is an R toolkit for single cell genomics")
9537 (description
9538 "This package is an R package designed for QC, analysis, and
9539 exploration of single cell RNA-seq data. It easily enables widely-used
9540 analytical techniques, including the identification of highly variable genes,
9541 dimensionality reduction; PCA, ICA, t-SNE, standard unsupervised clustering
9542 algorithms; density clustering, hierarchical clustering, k-means, and the
9543 discovery of differentially expressed genes and markers.")
9544 (license license:gpl3)))
9545
9546 (define-public r-aroma-light
9547 (package
9548 (name "r-aroma-light")
9549 (version "3.14.0")
9550 (source
9551 (origin
9552 (method url-fetch)
9553 (uri (bioconductor-uri "aroma.light" version))
9554 (sha256
9555 (base32
9556 "0a1prl4jhbqpa85i2vyia1ks9iippzl8np50fvm9wx8kbjxna5l6"))))
9557 (properties `((upstream-name . "aroma.light")))
9558 (build-system r-build-system)
9559 (propagated-inputs
9560 `(("r-matrixstats" ,r-matrixstats)
9561 ("r-r-methodss3" ,r-r-methodss3)
9562 ("r-r-oo" ,r-r-oo)
9563 ("r-r-utils" ,r-r-utils)))
9564 (home-page "https://github.com/HenrikBengtsson/aroma.light")
9565 (synopsis "Methods for normalization and visualization of microarray data")
9566 (description
9567 "This package provides methods for microarray analysis that take basic
9568 data types such as matrices and lists of vectors. These methods can be used
9569 standalone, be utilized in other packages, or be wrapped up in higher-level
9570 classes.")
9571 (license license:gpl2+)))
9572
9573 (define-public r-deseq
9574 (package
9575 (name "r-deseq")
9576 (version "1.36.0")
9577 (source
9578 (origin
9579 (method url-fetch)
9580 (uri (bioconductor-uri "DESeq" version))
9581 (sha256
9582 (base32
9583 "0jppqrikg9qfqcfw5qd3m5c7bag9g23bc0kcpk5zfkk1wv09mnlm"))))
9584 (properties `((upstream-name . "DESeq")))
9585 (build-system r-build-system)
9586 (propagated-inputs
9587 `(("r-biobase" ,r-biobase)
9588 ("r-biocgenerics" ,r-biocgenerics)
9589 ("r-genefilter" ,r-genefilter)
9590 ("r-geneplotter" ,r-geneplotter)
9591 ("r-lattice" ,r-lattice)
9592 ("r-locfit" ,r-locfit)
9593 ("r-mass" ,r-mass)
9594 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9595 (home-page "http://www-huber.embl.de/users/anders/DESeq")
9596 (synopsis "Differential gene expression analysis")
9597 (description
9598 "This package provides tools for estimating variance-mean dependence in
9599 count data from high-throughput genetic sequencing assays and for testing for
9600 differential expression based on a model using the negative binomial
9601 distribution.")
9602 (license license:gpl3+)))
9603
9604 (define-public r-edaseq
9605 (package
9606 (name "r-edaseq")
9607 (version "2.18.0")
9608 (source
9609 (origin
9610 (method url-fetch)
9611 (uri (bioconductor-uri "EDASeq" version))
9612 (sha256
9613 (base32
9614 "0mmc9bij17w4mfwcc566zbj5fvqgl8gfqs0qvj6ri4mbcql9jxb3"))))
9615 (properties `((upstream-name . "EDASeq")))
9616 (build-system r-build-system)
9617 (propagated-inputs
9618 `(("r-annotationdbi" ,r-annotationdbi)
9619 ("r-aroma-light" ,r-aroma-light)
9620 ("r-biobase" ,r-biobase)
9621 ("r-biocgenerics" ,r-biocgenerics)
9622 ("r-biocmanager" ,r-biocmanager)
9623 ("r-biomart" ,r-biomart)
9624 ("r-biostrings" ,r-biostrings)
9625 ("r-deseq" ,r-deseq)
9626 ("r-genomicfeatures" ,r-genomicfeatures)
9627 ("r-genomicranges" ,r-genomicranges)
9628 ("r-iranges" ,r-iranges)
9629 ("r-rsamtools" ,r-rsamtools)
9630 ("r-shortread" ,r-shortread)))
9631 (home-page "https://github.com/drisso/EDASeq")
9632 (synopsis "Exploratory data analysis and normalization for RNA-Seq")
9633 (description
9634 "This package provides support for numerical and graphical summaries of
9635 RNA-Seq genomic read data. Provided within-lane normalization procedures to
9636 adjust for GC-content effect (or other gene-level effects) on read counts:
9637 loess robust local regression, global-scaling, and full-quantile
9638 normalization. Between-lane normalization procedures to adjust for
9639 distributional differences between lanes (e.g., sequencing depth):
9640 global-scaling and full-quantile normalization.")
9641 (license license:artistic2.0)))
9642
9643 (define-public r-interactivedisplaybase
9644 (package
9645 (name "r-interactivedisplaybase")
9646 (version "1.22.0")
9647 (source
9648 (origin
9649 (method url-fetch)
9650 (uri (bioconductor-uri "interactiveDisplayBase" version))
9651 (sha256
9652 (base32
9653 "1kkyv7hkygacmksvld9gs3ycf6wlblqcwi11nny0hq3l0ha265v5"))))
9654 (properties
9655 `((upstream-name . "interactiveDisplayBase")))
9656 (build-system r-build-system)
9657 (propagated-inputs
9658 `(("r-biocgenerics" ,r-biocgenerics)
9659 ("r-shiny" ,r-shiny)))
9660 (home-page "https://bioconductor.org/packages/interactiveDisplayBase")
9661 (synopsis "Base package for web displays of Bioconductor objects")
9662 (description
9663 "This package contains the basic methods needed to generate interactive
9664 Shiny-based display methods for Bioconductor objects.")
9665 (license license:artistic2.0)))
9666
9667 (define-public r-annotationhub
9668 (package
9669 (name "r-annotationhub")
9670 (version "2.16.1")
9671 (source
9672 (origin
9673 (method url-fetch)
9674 (uri (bioconductor-uri "AnnotationHub" version))
9675 (sha256
9676 (base32
9677 "0c773cmhng907839f0bq161jky7362lxxny36ac55qxiz1giqi8j"))))
9678 (properties `((upstream-name . "AnnotationHub")))
9679 (build-system r-build-system)
9680 (propagated-inputs
9681 `(("r-annotationdbi" ,r-annotationdbi)
9682 ("r-biocfilecache" ,r-biocfilecache)
9683 ("r-biocgenerics" ,r-biocgenerics)
9684 ("r-biocmanager" ,r-biocmanager)
9685 ("r-curl" ,r-curl)
9686 ("r-dplyr" ,r-dplyr)
9687 ("r-httr" ,r-httr)
9688 ("r-interactivedisplaybase" ,r-interactivedisplaybase)
9689 ("r-rappdirs" ,r-rappdirs)
9690 ("r-rsqlite" ,r-rsqlite)
9691 ("r-s4vectors" ,r-s4vectors)
9692 ("r-yaml" ,r-yaml)))
9693 (home-page "https://bioconductor.org/packages/AnnotationHub")
9694 (synopsis "Client to access AnnotationHub resources")
9695 (description
9696 "This package provides a client for the Bioconductor AnnotationHub web
9697 resource. The AnnotationHub web resource provides a central location where
9698 genomic files (e.g. VCF, bed, wig) and other resources from standard
9699 locations (e.g. UCSC, Ensembl) can be discovered. The resource includes
9700 metadata about each resource, e.g., a textual description, tags, and date of
9701 modification. The client creates and manages a local cache of files retrieved
9702 by the user, helping with quick and reproducible access.")
9703 (license license:artistic2.0)))
9704
9705 (define-public r-fastseg
9706 (package
9707 (name "r-fastseg")
9708 (version "1.30.0")
9709 (source
9710 (origin
9711 (method url-fetch)
9712 (uri (bioconductor-uri "fastseg" version))
9713 (sha256
9714 (base32
9715 "03gggz29nf8kyy9clkifqr0xm8v0yb0kl0gjfb5c0vrjmwkfqvdf"))))
9716 (build-system r-build-system)
9717 (propagated-inputs
9718 `(("r-biobase" ,r-biobase)
9719 ("r-biocgenerics" ,r-biocgenerics)
9720 ("r-genomicranges" ,r-genomicranges)
9721 ("r-iranges" ,r-iranges)
9722 ("r-s4vectors" ,r-s4vectors)))
9723 (home-page "http://www.bioinf.jku.at/software/fastseg/index.html")
9724 (synopsis "Fast segmentation algorithm for genetic sequencing data")
9725 (description
9726 "Fastseg implements a very fast and efficient segmentation algorithm.
9727 It can segment data from DNA microarrays and data from next generation
9728 sequencing for example to detect copy number segments. Further it can segment
9729 data from RNA microarrays like tiling arrays to identify transcripts. Most
9730 generally, it can segment data given as a matrix or as a vector. Various data
9731 formats can be used as input to fastseg like expression set objects for
9732 microarrays or GRanges for sequencing data.")
9733 (license license:lgpl2.0+)))
9734
9735 (define-public r-keggrest
9736 (package
9737 (name "r-keggrest")
9738 (version "1.24.1")
9739 (source
9740 (origin
9741 (method url-fetch)
9742 (uri (bioconductor-uri "KEGGREST" version))
9743 (sha256
9744 (base32
9745 "0yxp3iajdy61q6mjgp1nxdgmf2yb58cvqmdgab7lqxr0ky1wkfkr"))))
9746 (properties `((upstream-name . "KEGGREST")))
9747 (build-system r-build-system)
9748 (propagated-inputs
9749 `(("r-biostrings" ,r-biostrings)
9750 ("r-httr" ,r-httr)
9751 ("r-png" ,r-png)))
9752 (home-page "https://bioconductor.org/packages/KEGGREST")
9753 (synopsis "Client-side REST access to KEGG")
9754 (description
9755 "This package provides a package that provides a client interface to the
9756 @dfn{Kyoto Encyclopedia of Genes and Genomes} (KEGG) REST server.")
9757 (license license:artistic2.0)))
9758
9759 (define-public r-gage
9760 (package
9761 (name "r-gage")
9762 (version "2.34.0")
9763 (source
9764 (origin
9765 (method url-fetch)
9766 (uri (bioconductor-uri "gage" version))
9767 (sha256
9768 (base32
9769 "08d5yg7n4rx4xsginc8bx0sycpj06pi1k7i44ff757444p20srwq"))))
9770 (build-system r-build-system)
9771 (propagated-inputs
9772 `(("r-annotationdbi" ,r-annotationdbi)
9773 ("r-graph" ,r-graph)
9774 ("r-keggrest" ,r-keggrest)))
9775 (home-page "http://www.biomedcentral.com/1471-2105/10/161")
9776 (synopsis "Generally applicable gene-set enrichment for pathway analysis")
9777 (description
9778 "GAGE is a published method for gene set (enrichment or GSEA) or pathway
9779 analysis. GAGE is generally applicable independent of microarray or RNA-Seq
9780 data attributes including sample sizes, experimental designs, assay platforms,
9781 and other types of heterogeneity. The gage package provides functions for
9782 basic GAGE analysis, result processing and presentation. In addition, it
9783 provides demo microarray data and commonly used gene set data based on KEGG
9784 pathways and GO terms. These functions and data are also useful for gene set
9785 analysis using other methods.")
9786 (license license:gpl2+)))
9787
9788 (define-public r-genomicfiles
9789 (package
9790 (name "r-genomicfiles")
9791 (version "1.20.0")
9792 (source
9793 (origin
9794 (method url-fetch)
9795 (uri (bioconductor-uri "GenomicFiles" version))
9796 (sha256
9797 (base32
9798 "122g0yhpsm6fyvv38agp57clagl13h324rk06mlgb2xz104a1j4i"))))
9799 (properties `((upstream-name . "GenomicFiles")))
9800 (build-system r-build-system)
9801 (propagated-inputs
9802 `(("r-biocgenerics" ,r-biocgenerics)
9803 ("r-biocparallel" ,r-biocparallel)
9804 ("r-genomeinfodb" ,r-genomeinfodb)
9805 ("r-genomicalignments" ,r-genomicalignments)
9806 ("r-genomicranges" ,r-genomicranges)
9807 ("r-iranges" ,r-iranges)
9808 ("r-rsamtools" ,r-rsamtools)
9809 ("r-rtracklayer" ,r-rtracklayer)
9810 ("r-s4vectors" ,r-s4vectors)
9811 ("r-summarizedexperiment" ,r-summarizedexperiment)
9812 ("r-variantannotation" ,r-variantannotation)))
9813 (home-page "https://bioconductor.org/packages/GenomicFiles")
9814 (synopsis "Distributed computing by file or by range")
9815 (description
9816 "This package provides infrastructure for parallel computations
9817 distributed by file or by range. User defined mapper and reducer functions
9818 provide added flexibility for data combination and manipulation.")
9819 (license license:artistic2.0)))
9820
9821 (define-public r-complexheatmap
9822 (package
9823 (name "r-complexheatmap")
9824 (version "2.0.0")
9825 (source
9826 (origin
9827 (method url-fetch)
9828 (uri (bioconductor-uri "ComplexHeatmap" version))
9829 (sha256
9830 (base32
9831 "1imnb72r10csl2h12sckic7hcsb8v2z0y3dyw1ax2fpykmsmq776"))))
9832 (properties
9833 `((upstream-name . "ComplexHeatmap")))
9834 (build-system r-build-system)
9835 (propagated-inputs
9836 `(("r-circlize" ,r-circlize)
9837 ("r-clue" ,r-clue)
9838 ("r-colorspace" ,r-colorspace)
9839 ("r-getoptlong" ,r-getoptlong)
9840 ("r-globaloptions" ,r-globaloptions)
9841 ("r-png" ,r-png)
9842 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9843 (home-page
9844 "https://github.com/jokergoo/ComplexHeatmap")
9845 (synopsis "Making Complex Heatmaps")
9846 (description
9847 "Complex heatmaps are efficient to visualize associations between
9848 different sources of data sets and reveal potential structures. This package
9849 provides a highly flexible way to arrange multiple heatmaps and supports
9850 self-defined annotation graphics.")
9851 (license license:gpl2+)))
9852
9853 (define-public r-dirichletmultinomial
9854 (package
9855 (name "r-dirichletmultinomial")
9856 (version "1.26.0")
9857 (source
9858 (origin
9859 (method url-fetch)
9860 (uri (bioconductor-uri "DirichletMultinomial" version))
9861 (sha256
9862 (base32
9863 "0qirvhnbv4wd50ln4pqbk4dj6h2935ipf9p4sw1x62qqhwxidqk4"))))
9864 (properties
9865 `((upstream-name . "DirichletMultinomial")))
9866 (build-system r-build-system)
9867 (inputs
9868 `(("gsl" ,gsl)))
9869 (propagated-inputs
9870 `(("r-biocgenerics" ,r-biocgenerics)
9871 ("r-iranges" ,r-iranges)
9872 ("r-s4vectors" ,r-s4vectors)))
9873 (home-page "https://bioconductor.org/packages/DirichletMultinomial")
9874 (synopsis "Dirichlet-Multinomial mixture models for microbiome data")
9875 (description
9876 "Dirichlet-multinomial mixture models can be used to describe variability
9877 in microbial metagenomic data. This package is an interface to code
9878 originally made available by Holmes, Harris, and Quince, 2012, PLoS ONE 7(2):
9879 1-15.")
9880 (license license:lgpl3)))
9881
9882 (define-public r-ensembldb
9883 (package
9884 (name "r-ensembldb")
9885 (version "2.8.1")
9886 (source
9887 (origin
9888 (method url-fetch)
9889 (uri (bioconductor-uri "ensembldb" version))
9890 (sha256
9891 (base32
9892 "103z902104ljdp6s9y2dmgrl5wkdz8vvlbbqgk8r4drkg7m3d4lj"))))
9893 (build-system r-build-system)
9894 (propagated-inputs
9895 `(("r-annotationdbi" ,r-annotationdbi)
9896 ("r-annotationfilter" ,r-annotationfilter)
9897 ("r-biobase" ,r-biobase)
9898 ("r-biocgenerics" ,r-biocgenerics)
9899 ("r-biostrings" ,r-biostrings)
9900 ("r-curl" ,r-curl)
9901 ("r-dbi" ,r-dbi)
9902 ("r-genomeinfodb" ,r-genomeinfodb)
9903 ("r-genomicfeatures" ,r-genomicfeatures)
9904 ("r-genomicranges" ,r-genomicranges)
9905 ("r-iranges" ,r-iranges)
9906 ("r-protgenerics" ,r-protgenerics)
9907 ("r-rsamtools" ,r-rsamtools)
9908 ("r-rsqlite" ,r-rsqlite)
9909 ("r-rtracklayer" ,r-rtracklayer)
9910 ("r-s4vectors" ,r-s4vectors)))
9911 (home-page "https://github.com/jotsetung/ensembldb")
9912 (synopsis "Utilities to create and use Ensembl-based annotation databases")
9913 (description
9914 "The package provides functions to create and use transcript-centric
9915 annotation databases/packages. The annotation for the databases are directly
9916 fetched from Ensembl using their Perl API. The functionality and data is
9917 similar to that of the TxDb packages from the @code{GenomicFeatures} package,
9918 but, in addition to retrieve all gene/transcript models and annotations from
9919 the database, the @code{ensembldb} package also provides a filter framework
9920 allowing to retrieve annotations for specific entries like genes encoded on a
9921 chromosome region or transcript models of lincRNA genes.")
9922 ;; No version specified
9923 (license license:lgpl3+)))
9924
9925 (define-public r-organismdbi
9926 (package
9927 (name "r-organismdbi")
9928 (version "1.26.0")
9929 (source
9930 (origin
9931 (method url-fetch)
9932 (uri (bioconductor-uri "OrganismDbi" version))
9933 (sha256
9934 (base32
9935 "14azk69pmwlhza0mhsxigsg127w3mgsx9hhrbdcdqmy3vzfbfaqq"))))
9936 (properties `((upstream-name . "OrganismDbi")))
9937 (build-system r-build-system)
9938 (propagated-inputs
9939 `(("r-annotationdbi" ,r-annotationdbi)
9940 ("r-biobase" ,r-biobase)
9941 ("r-biocgenerics" ,r-biocgenerics)
9942 ("r-biocmanager" ,r-biocmanager)
9943 ("r-dbi" ,r-dbi)
9944 ("r-genomicfeatures" ,r-genomicfeatures)
9945 ("r-genomicranges" ,r-genomicranges)
9946 ("r-graph" ,r-graph)
9947 ("r-iranges" ,r-iranges)
9948 ("r-rbgl" ,r-rbgl)
9949 ("r-s4vectors" ,r-s4vectors)))
9950 (home-page "https://bioconductor.org/packages/OrganismDbi")
9951 (synopsis "Software to enable the smooth interfacing of database packages")
9952 (description "The package enables a simple unified interface to several
9953 annotation packages each of which has its own schema by taking advantage of
9954 the fact that each of these packages implements a select methods.")
9955 (license license:artistic2.0)))
9956
9957 (define-public r-biovizbase
9958 (package
9959 (name "r-biovizbase")
9960 (version "1.32.0")
9961 (source
9962 (origin
9963 (method url-fetch)
9964 (uri (bioconductor-uri "biovizBase" version))
9965 (sha256
9966 (base32
9967 "1lba1801ak0a4vz6f8jffp9d525q27p0dhi2bp4f68mvdwwl2994"))))
9968 (properties `((upstream-name . "biovizBase")))
9969 (build-system r-build-system)
9970 (propagated-inputs
9971 `(("r-annotationdbi" ,r-annotationdbi)
9972 ("r-annotationfilter" ,r-annotationfilter)
9973 ("r-biocgenerics" ,r-biocgenerics)
9974 ("r-biostrings" ,r-biostrings)
9975 ("r-dichromat" ,r-dichromat)
9976 ("r-ensembldb" ,r-ensembldb)
9977 ("r-genomeinfodb" ,r-genomeinfodb)
9978 ("r-genomicalignments" ,r-genomicalignments)
9979 ("r-genomicfeatures" ,r-genomicfeatures)
9980 ("r-genomicranges" ,r-genomicranges)
9981 ("r-hmisc" ,r-hmisc)
9982 ("r-iranges" ,r-iranges)
9983 ("r-rcolorbrewer" ,r-rcolorbrewer)
9984 ("r-rlang" ,r-rlang)
9985 ("r-rsamtools" ,r-rsamtools)
9986 ("r-s4vectors" ,r-s4vectors)
9987 ("r-scales" ,r-scales)
9988 ("r-summarizedexperiment" ,r-summarizedexperiment)
9989 ("r-variantannotation" ,r-variantannotation)))
9990 (home-page "https://bioconductor.org/packages/biovizBase")
9991 (synopsis "Basic graphic utilities for visualization of genomic data")
9992 (description
9993 "The biovizBase package is designed to provide a set of utilities, color
9994 schemes and conventions for genomic data. It serves as the base for various
9995 high-level packages for biological data visualization. This saves development
9996 effort and encourages consistency.")
9997 (license license:artistic2.0)))
9998
9999 (define-public r-ggbio
10000 (package
10001 (name "r-ggbio")
10002 (version "1.32.0")
10003 (source
10004 (origin
10005 (method url-fetch)
10006 (uri (bioconductor-uri "ggbio" version))
10007 (sha256
10008 (base32
10009 "10s6hnffnrrsx3896adqdc5g55fzd5y6qhnp1mq0c641nw833rwd"))))
10010 (build-system r-build-system)
10011 (arguments
10012 `(#:phases
10013 (modify-phases %standard-phases
10014 ;; See https://github.com/tengfei/ggbio/issues/117
10015 ;; This fix will be included in the next release.
10016 (add-after 'unpack 'fix-typo
10017 (lambda _
10018 (substitute* "R/GGbio-class.R"
10019 (("fechable") "fetchable"))
10020 #t)))))
10021 (propagated-inputs
10022 `(("r-annotationdbi" ,r-annotationdbi)
10023 ("r-annotationfilter" ,r-annotationfilter)
10024 ("r-biobase" ,r-biobase)
10025 ("r-biocgenerics" ,r-biocgenerics)
10026 ("r-biostrings" ,r-biostrings)
10027 ("r-biovizbase" ,r-biovizbase)
10028 ("r-bsgenome" ,r-bsgenome)
10029 ("r-ensembldb" ,r-ensembldb)
10030 ("r-genomeinfodb" ,r-genomeinfodb)
10031 ("r-genomicalignments" ,r-genomicalignments)
10032 ("r-genomicfeatures" ,r-genomicfeatures)
10033 ("r-genomicranges" ,r-genomicranges)
10034 ("r-ggally" ,r-ggally)
10035 ("r-ggplot2" ,r-ggplot2)
10036 ("r-gridextra" ,r-gridextra)
10037 ("r-gtable" ,r-gtable)
10038 ("r-hmisc" ,r-hmisc)
10039 ("r-iranges" ,r-iranges)
10040 ("r-organismdbi" ,r-organismdbi)
10041 ("r-reshape2" ,r-reshape2)
10042 ("r-rlang" ,r-rlang)
10043 ("r-rsamtools" ,r-rsamtools)
10044 ("r-rtracklayer" ,r-rtracklayer)
10045 ("r-s4vectors" ,r-s4vectors)
10046 ("r-scales" ,r-scales)
10047 ("r-summarizedexperiment" ,r-summarizedexperiment)
10048 ("r-variantannotation" ,r-variantannotation)))
10049 (home-page "http://www.tengfei.name/ggbio/")
10050 (synopsis "Visualization tools for genomic data")
10051 (description
10052 "The ggbio package extends and specializes the grammar of graphics for
10053 biological data. The graphics are designed to answer common scientific
10054 questions, in particular those often asked of high throughput genomics data.
10055 All core Bioconductor data structures are supported, where appropriate. The
10056 package supports detailed views of particular genomic regions, as well as
10057 genome-wide overviews. Supported overviews include ideograms and grand linear
10058 views. High-level plots include sequence fragment length, edge-linked
10059 interval to data view, mismatch pileup, and several splicing summaries.")
10060 (license license:artistic2.0)))
10061
10062 (define-public r-gprofiler
10063 (package
10064 (name "r-gprofiler")
10065 (version "0.7.0")
10066 (source
10067 (origin
10068 (method url-fetch)
10069 (uri (cran-uri "gProfileR" version))
10070 (sha256
10071 (base32
10072 "1h1v0kgpsn04ald2izznh7fr2riwisj5hcgz4k7h3qc931rf0r4k"))))
10073 (properties `((upstream-name . "gProfileR")))
10074 (build-system r-build-system)
10075 (propagated-inputs
10076 `(("r-plyr" ,r-plyr)
10077 ("r-rcurl" ,r-rcurl)))
10078 (home-page "https://cran.r-project.org/web/packages/gProfileR/")
10079 (synopsis "Interface to the g:Profiler toolkit")
10080 (description
10081 "This package provides tools for functional enrichment analysis,
10082 gene identifier conversion and mapping homologous genes across related
10083 organisms via the @code{g:Profiler} toolkit.")
10084 (license license:gpl2+)))
10085
10086 (define-public r-gqtlbase
10087 (package
10088 (name "r-gqtlbase")
10089 (version "1.16.0")
10090 (source
10091 (origin
10092 (method url-fetch)
10093 (uri (bioconductor-uri "gQTLBase" version))
10094 (sha256
10095 (base32
10096 "1n2cizb88g2ankngvhxv377gizg80y3fhlx67sgm0z4ilm6a30ql"))))
10097 (properties `((upstream-name . "gQTLBase")))
10098 (build-system r-build-system)
10099 (propagated-inputs
10100 `(("r-batchjobs" ,r-batchjobs)
10101 ("r-bbmisc" ,r-bbmisc)
10102 ("r-biocgenerics" ,r-biocgenerics)
10103 ("r-bit" ,r-bit)
10104 ("r-doparallel" ,r-doparallel)
10105 ("r-ff" ,r-ff)
10106 ("r-ffbase" ,r-ffbase)
10107 ("r-foreach" ,r-foreach)
10108 ("r-genomicfiles" ,r-genomicfiles)
10109 ("r-genomicranges" ,r-genomicranges)
10110 ("r-rtracklayer" ,r-rtracklayer)
10111 ("r-s4vectors" ,r-s4vectors)
10112 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10113 (home-page "https://bioconductor.org/packages/gQTLBase")
10114 (synopsis "Infrastructure for eQTL, mQTL and similar studies")
10115 (description
10116 "The purpose of this package is to simplify the storage and interrogation
10117 of @dfn{quantitative trait loci} (QTL) archives, such as eQTL, mQTL, dsQTL,
10118 and more.")
10119 (license license:artistic2.0)))
10120
10121 (define-public r-snpstats
10122 (package
10123 (name "r-snpstats")
10124 (version "1.34.0")
10125 (source
10126 (origin
10127 (method url-fetch)
10128 (uri (bioconductor-uri "snpStats" version))
10129 (sha256
10130 (base32
10131 "0drfd24a5pkrhzmpidlh717bgh2dm68mpn6vj1vlpkilfbkifl34"))))
10132 (properties `((upstream-name . "snpStats")))
10133 (build-system r-build-system)
10134 (inputs `(("zlib" ,zlib)))
10135 (propagated-inputs
10136 `(("r-biocgenerics" ,r-biocgenerics)
10137 ("r-matrix" ,r-matrix)
10138 ("r-survival" ,r-survival)
10139 ("r-zlibbioc" ,r-zlibbioc)))
10140 (home-page "https://bioconductor.org/packages/snpStats")
10141 (synopsis "Methods for SNP association studies")
10142 (description
10143 "This package provides classes and statistical methods for large
10144 @dfn{single-nucleotide polymorphism} (SNP) association studies. This extends
10145 the earlier snpMatrix package, allowing for uncertainty in genotypes.")
10146 (license license:gpl3)))
10147
10148 (define-public r-homo-sapiens
10149 (package
10150 (name "r-homo-sapiens")
10151 (version "1.3.1")
10152 (source (origin
10153 (method url-fetch)
10154 ;; We cannot use bioconductor-uri here because this tarball is
10155 ;; located under "data/annotation/" instead of "bioc/".
10156 (uri (string-append "http://www.bioconductor.org/packages/"
10157 "release/data/annotation/src/contrib/"
10158 "Homo.sapiens_"
10159 version ".tar.gz"))
10160 (sha256
10161 (base32
10162 "151vj7h5p1c8yd5swrchk46z469p135wk50hvkl0nhgndvy0jj01"))))
10163 (properties
10164 `((upstream-name . "Homo.sapiens")))
10165 (build-system r-build-system)
10166 (propagated-inputs
10167 `(("r-genomicfeatures" ,r-genomicfeatures)
10168 ("r-go-db" ,r-go-db)
10169 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
10170 ("r-txdb-hsapiens-ucsc-hg19-knowngene" ,r-txdb-hsapiens-ucsc-hg19-knowngene)
10171 ("r-organismdbi" ,r-organismdbi)
10172 ("r-annotationdbi" ,r-annotationdbi)))
10173 (home-page "https://bioconductor.org/packages/Homo.sapiens/")
10174 (synopsis "Annotation package for the Homo.sapiens object")
10175 (description
10176 "This package contains the Homo.sapiens object to access data from
10177 several related annotation packages.")
10178 (license license:artistic2.0)))
10179
10180 (define-public r-erma
10181 (package
10182 (name "r-erma")
10183 (version "1.0.0")
10184 (source
10185 (origin
10186 (method url-fetch)
10187 (uri (bioconductor-uri "erma" version))
10188 (sha256
10189 (base32
10190 "0j7ggp63m5y88cxgi49vcql1s1avzifwvvd2hydj4lj3yrmzib48"))))
10191 (build-system r-build-system)
10192 (propagated-inputs
10193 `(("r-annotationdbi" ,r-annotationdbi)
10194 ("r-biobase" ,r-biobase)
10195 ("r-biocgenerics" ,r-biocgenerics)
10196 ("r-biocparallel" ,r-biocparallel)
10197 ("r-genomeinfodb" ,r-genomeinfodb)
10198 ("r-genomicfiles" ,r-genomicfiles)
10199 ("r-genomicranges" ,r-genomicranges)
10200 ("r-ggplot2" ,r-ggplot2)
10201 ("r-homo-sapiens" ,r-homo-sapiens)
10202 ("r-iranges" ,r-iranges)
10203 ("r-rtracklayer" ,r-rtracklayer)
10204 ("r-s4vectors" ,r-s4vectors)
10205 ("r-shiny" ,r-shiny)
10206 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10207 (home-page "https://bioconductor.org/packages/erma")
10208 (synopsis "Epigenomic road map adventures")
10209 (description
10210 "The epigenomics road map describes locations of epigenetic marks in DNA
10211 from a variety of cell types. Of interest are locations of histone
10212 modifications, sites of DNA methylation, and regions of accessible chromatin.
10213 This package presents a selection of elements of the road map including
10214 metadata and outputs of the ChromImpute procedure applied to ENCODE cell lines
10215 by Ernst and Kellis.")
10216 (license license:artistic2.0)))
10217
10218 (define-public r-ldblock
10219 (package
10220 (name "r-ldblock")
10221 (version "1.14.3")
10222 (source
10223 (origin
10224 (method url-fetch)
10225 (uri (bioconductor-uri "ldblock" version))
10226 (sha256
10227 (base32
10228 "154yvrvs8ik7ifcny1681cmqra0i163j00k4vbvkvl701p5gsp5q"))))
10229 (build-system r-build-system)
10230 (propagated-inputs
10231 `(("r-biocgenerics" ,r-biocgenerics)
10232 ("r-ensdb-hsapiens-v75" ,r-ensdb-hsapiens-v75)
10233 ("r-ensembldb" ,r-ensembldb)
10234 ("r-genomeinfodb" ,r-genomeinfodb)
10235 ("r-genomicfiles" ,r-genomicfiles)
10236 ("r-go-db" ,r-go-db)
10237 ("r-homo-sapiens" ,r-homo-sapiens)
10238 ("r-httr" ,r-httr)
10239 ("r-matrix" ,r-matrix)
10240 ("r-rsamtools" ,r-rsamtools)
10241 ("r-snpstats" ,r-snpstats)
10242 ("r-variantannotation" ,r-variantannotation)))
10243 (home-page "https://bioconductor.org/packages/ldblock")
10244 (synopsis "Data structures for linkage disequilibrium measures in populations")
10245 (description
10246 "This package defines data structures for @dfn{linkage
10247 disequilibrium} (LD) measures in populations. Its purpose is to simplify
10248 handling of existing population-level data for the purpose of flexibly
10249 defining LD blocks.")
10250 (license license:artistic2.0)))
10251
10252 (define-public r-gqtlstats
10253 (package
10254 (name "r-gqtlstats")
10255 (version "1.18.0")
10256 (source
10257 (origin
10258 (method url-fetch)
10259 (uri (bioconductor-uri "gQTLstats" version))
10260 (sha256
10261 (base32
10262 "1dly4p9r4231hf31xg1nzqiyvjbcfjljfmhb88ic1jxwnvniyv2f"))))
10263 (properties `((upstream-name . "gQTLstats")))
10264 (build-system r-build-system)
10265 (propagated-inputs
10266 `(("r-annotationdbi" ,r-annotationdbi)
10267 ("r-batchjobs" ,r-batchjobs)
10268 ("r-bbmisc" ,r-bbmisc)
10269 ("r-beeswarm" ,r-beeswarm)
10270 ("r-biobase" ,r-biobase)
10271 ("r-biocgenerics" ,r-biocgenerics)
10272 ("r-doparallel" ,r-doparallel)
10273 ("r-dplyr" ,r-dplyr)
10274 ("r-erma" ,r-erma)
10275 ("r-ffbase" ,r-ffbase)
10276 ("r-foreach" ,r-foreach)
10277 ("r-genomeinfodb" ,r-genomeinfodb)
10278 ("r-genomicfeatures" ,r-genomicfeatures)
10279 ("r-genomicfiles" ,r-genomicfiles)
10280 ("r-genomicranges" ,r-genomicranges)
10281 ("r-ggbeeswarm" ,r-ggbeeswarm)
10282 ("r-ggplot2" ,r-ggplot2)
10283 ("r-gqtlbase" ,r-gqtlbase)
10284 ("r-hardyweinberg" ,r-hardyweinberg)
10285 ("r-homo-sapiens" ,r-homo-sapiens)
10286 ("r-iranges" ,r-iranges)
10287 ("r-limma" ,r-limma)
10288 ("r-mgcv" ,r-mgcv)
10289 ("r-plotly" ,r-plotly)
10290 ("r-reshape2" ,r-reshape2)
10291 ("r-s4vectors" ,r-s4vectors)
10292 ("r-shiny" ,r-shiny)
10293 ("r-snpstats" ,r-snpstats)
10294 ("r-summarizedexperiment" ,r-summarizedexperiment)
10295 ("r-variantannotation" ,r-variantannotation)))
10296 (home-page "https://bioconductor.org/packages/gQTLstats")
10297 (synopsis "Computationally efficient analysis for eQTL and allied studies")
10298 (description
10299 "This package provides tools for the computationally efficient analysis
10300 of @dfn{quantitative trait loci} (QTL) data, including eQTL, mQTL, dsQTL, etc.
10301 The software in this package aims to support refinements and functional
10302 interpretation of members of a collection of association statistics on a
10303 family of feature/genome hypotheses.")
10304 (license license:artistic2.0)))
10305
10306 (define-public r-gviz
10307 (package
10308 (name "r-gviz")
10309 (version "1.30.0")
10310 (source
10311 (origin
10312 (method url-fetch)
10313 (uri (bioconductor-uri "Gviz" version))
10314 (sha256
10315 (base32
10316 "1p7n4yc77272rd8ybsim3rcg6kf6wmc95pwwav40b754imxn263z"))))
10317 (properties `((upstream-name . "Gviz")))
10318 (build-system r-build-system)
10319 (propagated-inputs
10320 `(("r-annotationdbi" ,r-annotationdbi)
10321 ("r-biobase" ,r-biobase)
10322 ("r-biocgenerics" ,r-biocgenerics)
10323 ("r-biomart" ,r-biomart)
10324 ("r-biostrings" ,r-biostrings)
10325 ("r-biovizbase" ,r-biovizbase)
10326 ("r-bsgenome" ,r-bsgenome)
10327 ("r-digest" ,r-digest)
10328 ("r-genomeinfodb" ,r-genomeinfodb)
10329 ("r-genomicalignments" ,r-genomicalignments)
10330 ("r-genomicfeatures" ,r-genomicfeatures)
10331 ("r-genomicranges" ,r-genomicranges)
10332 ("r-iranges" ,r-iranges)
10333 ("r-lattice" ,r-lattice)
10334 ("r-latticeextra" ,r-latticeextra)
10335 ("r-matrixstats" ,r-matrixstats)
10336 ("r-rcolorbrewer" ,r-rcolorbrewer)
10337 ("r-rsamtools" ,r-rsamtools)
10338 ("r-rtracklayer" ,r-rtracklayer)
10339 ("r-s4vectors" ,r-s4vectors)
10340 ("r-xvector" ,r-xvector)))
10341 (home-page "https://bioconductor.org/packages/Gviz")
10342 (synopsis "Plotting data and annotation information along genomic coordinates")
10343 (description
10344 "Genomic data analyses requires integrated visualization of known genomic
10345 information and new experimental data. Gviz uses the biomaRt and the
10346 rtracklayer packages to perform live annotation queries to Ensembl and UCSC
10347 and translates this to e.g. gene/transcript structures in viewports of the
10348 grid graphics package. This results in genomic information plotted together
10349 with your data.")
10350 (license license:artistic2.0)))
10351
10352 (define-public r-gwascat
10353 (package
10354 (name "r-gwascat")
10355 (version "2.18.0")
10356 (source
10357 (origin
10358 (method url-fetch)
10359 (uri (bioconductor-uri "gwascat" version))
10360 (sha256
10361 (base32
10362 "038vhfsk2vs7inn5di093cmjbb81k7j0af385sg7l01jj70bdqq1"))))
10363 (build-system r-build-system)
10364 (propagated-inputs
10365 `(("r-annotationdbi" ,r-annotationdbi)
10366 ("r-biocgenerics" ,r-biocgenerics)
10367 ("r-biostrings" ,r-biostrings)
10368 ("r-genomeinfodb" ,r-genomeinfodb)
10369 ("r-genomicfeatures" ,r-genomicfeatures)
10370 ("r-genomicranges" ,r-genomicranges)
10371 ("r-homo-sapiens" ,r-homo-sapiens)
10372 ("r-iranges" ,r-iranges)
10373 ("r-rsamtools" ,r-rsamtools)
10374 ("r-rtracklayer" ,r-rtracklayer)
10375 ("r-s4vectors" ,r-s4vectors)))
10376 (home-page "https://bioconductor.org/packages/gwascat")
10377 (synopsis "Tools for data in the EMBL-EBI GWAS catalog")
10378 (description
10379 "This package provides tools for representing and modeling data in the
10380 EMBL-EBI GWAS catalog.")
10381 (license license:artistic2.0)))
10382
10383 (define-public r-sushi
10384 (package
10385 (name "r-sushi")
10386 (version "1.24.0")
10387 (source (origin
10388 (method url-fetch)
10389 (uri (bioconductor-uri "Sushi" version))
10390 (sha256
10391 (base32
10392 "15xng21hd09fb234ravrry3b872zg82w8x9lijxab9n96xihcpz5"))))
10393 (properties `((upstream-name . "Sushi")))
10394 (build-system r-build-system)
10395 (propagated-inputs
10396 `(("r-biomart" ,r-biomart)
10397 ("r-zoo" ,r-zoo)))
10398 (home-page "https://bioconductor.org/packages/Sushi")
10399 (synopsis "Tools for visualizing genomics data")
10400 (description
10401 "This package provides flexible, quantitative, and integrative genomic
10402 visualizations for publication-quality multi-panel figures.")
10403 (license license:gpl2+)))
10404
10405 (define-public r-fithic
10406 (package
10407 (name "r-fithic")
10408 (version "1.12.0")
10409 (source (origin
10410 (method url-fetch)
10411 (uri (bioconductor-uri "FitHiC" version))
10412 (sha256
10413 (base32
10414 "1irwkwi4afdj395134k31mvx7c2vpdd0rv8zrblnldascdsb04kc"))))
10415 (properties `((upstream-name . "FitHiC")))
10416 (build-system r-build-system)
10417 (propagated-inputs
10418 `(("r-data-table" ,r-data-table)
10419 ("r-fdrtool" ,r-fdrtool)
10420 ("r-rcpp" ,r-rcpp)))
10421 (home-page "https://bioconductor.org/packages/FitHiC")
10422 (synopsis "Confidence estimation for intra-chromosomal contact maps")
10423 (description
10424 "Fit-Hi-C is a tool for assigning statistical confidence estimates to
10425 intra-chromosomal contact maps produced by genome-wide genome architecture
10426 assays such as Hi-C.")
10427 (license license:gpl2+)))
10428
10429 (define-public r-hitc
10430 (package
10431 (name "r-hitc")
10432 (version "1.30.0")
10433 (source (origin
10434 (method url-fetch)
10435 (uri (bioconductor-uri "HiTC" version))
10436 (sha256
10437 (base32
10438 "0byahi0fz0dzjyklz8v9whax9ygg7gwb4pl1j3zbl6z8a9qx8pps"))))
10439 (properties `((upstream-name . "HiTC")))
10440 (build-system r-build-system)
10441 (propagated-inputs
10442 `(("r-biostrings" ,r-biostrings)
10443 ("r-genomeinfodb" ,r-genomeinfodb)
10444 ("r-genomicranges" ,r-genomicranges)
10445 ("r-iranges" ,r-iranges)
10446 ("r-matrix" ,r-matrix)
10447 ("r-rcolorbrewer" ,r-rcolorbrewer)
10448 ("r-rtracklayer" ,r-rtracklayer)))
10449 (home-page "https://bioconductor.org/packages/HiTC")
10450 (synopsis "High throughput chromosome conformation capture analysis")
10451 (description
10452 "The HiTC package was developed to explore high-throughput \"C\" data
10453 such as 5C or Hi-C. Dedicated R classes as well as standard methods for
10454 quality controls, normalization, visualization, and further analysis are also
10455 provided.")
10456 (license license:artistic2.0)))
10457
10458 (define-public r-hdf5array
10459 (package
10460 (name "r-hdf5array")
10461 (version "1.14.1")
10462 (source
10463 (origin
10464 (method url-fetch)
10465 (uri (bioconductor-uri "HDF5Array" version))
10466 (sha256
10467 (base32
10468 "04hd02zd5jix5p2zg10asmwjg1fynqgmclbhbmk7fb6arx5hm11f"))))
10469 (properties `((upstream-name . "HDF5Array")))
10470 (build-system r-build-system)
10471 (inputs
10472 `(("zlib" ,zlib)))
10473 (propagated-inputs
10474 `(("r-biocgenerics" ,r-biocgenerics)
10475 ("r-delayedarray" ,r-delayedarray)
10476 ("r-iranges" ,r-iranges)
10477 ("r-matrix" ,r-matrix)
10478 ("r-rhdf5" ,r-rhdf5)
10479 ("r-rhdf5lib" ,r-rhdf5lib)
10480 ("r-s4vectors" ,r-s4vectors)))
10481 (home-page "https://bioconductor.org/packages/HDF5Array")
10482 (synopsis "HDF5 back end for DelayedArray objects")
10483 (description "This package provides an array-like container for convenient
10484 access and manipulation of HDF5 datasets. It supports delayed operations and
10485 block processing.")
10486 (license license:artistic2.0)))
10487
10488 (define-public r-rhdf5lib
10489 (package
10490 (name "r-rhdf5lib")
10491 (version "1.8.0")
10492 (source
10493 (origin
10494 (method url-fetch)
10495 (uri (bioconductor-uri "Rhdf5lib" version))
10496 (sha256
10497 (base32
10498 "17lhwnm9rqsvbqkvwp0m07vjrk63a4389p2y39zffv8fgznxqzd7"))
10499 (modules '((guix build utils)))
10500 (snippet
10501 '(begin
10502 ;; Delete bundled binaries
10503 (delete-file-recursively "src/winlib/")
10504 #t))))
10505 (properties `((upstream-name . "Rhdf5lib")))
10506 (build-system r-build-system)
10507 (arguments
10508 `(#:phases
10509 (modify-phases %standard-phases
10510 (add-after 'unpack 'do-not-use-bundled-hdf5
10511 (lambda* (#:key inputs #:allow-other-keys)
10512 (for-each delete-file '("configure" "configure.ac"))
10513 ;; Do not make other packages link with the proprietary libsz.
10514 (substitute* "R/zzz.R"
10515 (("'\"%s/libhdf5.a\" \"%s/libsz.a\" -lz'")
10516 "'\"%s/libhdf5.a\" \"%s/libhdf5.a\" -lz'")
10517 (("'\"%s/libhdf5_cpp.a\" \"%s/libhdf5.a\" \"%s/libsz.a\" -lz'")
10518 "'\"%s/libhdf5_cpp.a\" \"%s/libhdf5.a\" \"%s/libhdf5.a\" -lz'")
10519 (("'%s/libhdf5_hl.a %s/libhdf5.a %s/libsz.a -lz'")
10520 "'%s/libhdf5_hl.a %s/libhdf5.a %s/libhdf5.a -lz'")
10521 (("'%s/libhdf5_hl_cpp.a %s/libhdf5_hl.a %s/libhdf5_cpp.a %s/libhdf5.a %s/libsz.a -lz'")
10522 "'%s/libhdf5_hl_cpp.a %s/libhdf5_hl.a %s/libhdf5_cpp.a %s/libhdf5.a %s/libhdf5.a -lz'"))
10523 (with-directory-excursion "src"
10524 (invoke "tar" "xvf" (assoc-ref inputs "hdf5-source"))
10525 (rename-file (string-append "hdf5-" ,(package-version hdf5-1.10))
10526 "hdf5")
10527 ;; Remove timestamp and host system information to make
10528 ;; the build reproducible.
10529 (substitute* "hdf5/src/libhdf5.settings.in"
10530 (("Configured on: @CONFIG_DATE@")
10531 "Configured on: Guix")
10532 (("Uname information:.*")
10533 "Uname information: Linux\n")
10534 ;; Remove unnecessary store reference.
10535 (("C Compiler:.*")
10536 "C Compiler: GCC\n"))
10537 (rename-file "Makevars.in" "Makevars")
10538 (substitute* "Makevars"
10539 (("HDF5_CXX_LIB=.*")
10540 (string-append "HDF5_CXX_LIB="
10541 (assoc-ref inputs "hdf5") "/lib/libhdf5_cpp.a\n"))
10542 (("HDF5_LIB=.*")
10543 (string-append "HDF5_LIB="
10544 (assoc-ref inputs "hdf5") "/lib/libhdf5.a\n"))
10545 (("HDF5_CXX_INCLUDE=.*") "HDF5_CXX_INCLUDE=./hdf5/c++/src\n")
10546 (("HDF5_INCLUDE=.*") "HDF5_INCLUDE=./hdf5/src\n")
10547 (("HDF5_HL_INCLUDE=.*") "HDF5_HL_INCLUDE=./hdf5/hl/src\n")
10548 (("HDF5_HL_CXX_INCLUDE=.*") "HDF5_HL_CXX_INCLUDE=./hdf5/hl/c++/src\n")
10549 (("HDF5_HL_LIB=.*")
10550 (string-append "HDF5_HL_LIB="
10551 (assoc-ref inputs "hdf5") "/lib/libhdf5_hl.a\n"))
10552 (("HDF5_HL_CXX_LIB=.*")
10553 (string-append "HDF5_HL_CXX_LIB="
10554 (assoc-ref inputs "hdf5") "/lib/libhdf5_hl_cpp.a\n"))
10555 ;; szip is non-free software
10556 (("cp \"\\$\\{SZIP_LIB\\}.*") "")
10557 (("PKG_LIBS =.*") "PKG_LIBS = -lz -lhdf5\n")))
10558 #t)))))
10559 (inputs
10560 `(("zlib" ,zlib)))
10561 (propagated-inputs
10562 `(("hdf5" ,hdf5-1.10)))
10563 (native-inputs
10564 `(("hdf5-source" ,(package-source hdf5-1.10))))
10565 (home-page "https://bioconductor.org/packages/Rhdf5lib")
10566 (synopsis "HDF5 library as an R package")
10567 (description "This package provides C and C++ HDF5 libraries for use in R
10568 packages.")
10569 (license license:artistic2.0)))
10570
10571 (define-public r-beachmat
10572 (package
10573 (name "r-beachmat")
10574 (version "2.2.1")
10575 (source
10576 (origin
10577 (method url-fetch)
10578 (uri (bioconductor-uri "beachmat" version))
10579 (sha256
10580 (base32
10581 "1bpnlw2kdy9yc2vq948k980r0j25ipb80llhvn0j3kxjiwyfgs3i"))))
10582 (build-system r-build-system)
10583 (propagated-inputs
10584 `(("r-biocgenerics" ,r-biocgenerics)
10585 ("r-delayedarray" ,r-delayedarray)
10586 ("r-matrix" ,r-matrix)))
10587 (home-page "https://bioconductor.org/packages/beachmat")
10588 (synopsis "Compiling Bioconductor to handle each matrix type")
10589 (description "This package provides a consistent C++ class interface for a
10590 variety of commonly used matrix types, including sparse and HDF5-backed
10591 matrices.")
10592 (license license:gpl3)))
10593
10594 (define-public r-singlecellexperiment
10595 (package
10596 (name "r-singlecellexperiment")
10597 (version "1.8.0")
10598 (source
10599 (origin
10600 (method url-fetch)
10601 (uri (bioconductor-uri "SingleCellExperiment" version))
10602 (sha256
10603 (base32
10604 "11pqb3cigi9xbhxq2k3n7z23v1ibd03ws1lcrh5c5ffgb33nlyw5"))))
10605 (properties
10606 `((upstream-name . "SingleCellExperiment")))
10607 (build-system r-build-system)
10608 (propagated-inputs
10609 `(("r-biocgenerics" ,r-biocgenerics)
10610 ("r-s4vectors" ,r-s4vectors)
10611 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10612 (home-page "https://bioconductor.org/packages/SingleCellExperiment")
10613 (synopsis "S4 classes for single cell data")
10614 (description "This package defines an S4 class for storing data from
10615 single-cell experiments. This includes specialized methods to store and
10616 retrieve spike-in information, dimensionality reduction coordinates and size
10617 factors for each cell, along with the usual metadata for genes and
10618 libraries.")
10619 (license license:gpl3)))
10620
10621 (define-public r-scater
10622 (package
10623 (name "r-scater")
10624 (version "1.14.5")
10625 (source (origin
10626 (method url-fetch)
10627 (uri (bioconductor-uri "scater" version))
10628 (sha256
10629 (base32
10630 "1c2p1dqz4lckk657v5g0labxrf0i21l0wa3rvszslmrszn60mkif"))))
10631 (build-system r-build-system)
10632 (propagated-inputs
10633 `(("r-beachmat" ,r-beachmat)
10634 ("r-biocgenerics" ,r-biocgenerics)
10635 ("r-biocneighbors" ,r-biocneighbors)
10636 ("r-biocparallel" ,r-biocparallel)
10637 ("r-biocsingular" ,r-biocsingular)
10638 ("r-delayedarray" ,r-delayedarray)
10639 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
10640 ("r-ggbeeswarm" ,r-ggbeeswarm)
10641 ("r-ggplot2" ,r-ggplot2)
10642 ("r-matrix" ,r-matrix)
10643 ("r-rcpp" ,r-rcpp)
10644 ("r-s4vectors" ,r-s4vectors)
10645 ("r-singlecellexperiment" ,r-singlecellexperiment)
10646 ("r-summarizedexperiment" ,r-summarizedexperiment)
10647 ("r-viridis" ,r-viridis)))
10648 (home-page "https://github.com/davismcc/scater")
10649 (synopsis "Single-cell analysis toolkit for gene expression data in R")
10650 (description "This package provides a collection of tools for doing
10651 various analyses of single-cell RNA-seq gene expression data, with a focus on
10652 quality control.")
10653 (license license:gpl2+)))
10654
10655 (define-public r-scran
10656 (package
10657 (name "r-scran")
10658 (version "1.14.5")
10659 (source
10660 (origin
10661 (method url-fetch)
10662 (uri (bioconductor-uri "scran" version))
10663 (sha256
10664 (base32
10665 "0ydy6gvpgpvrs4ryk1qvmmxp6cpaizs294jwg42jawxndkds1l3y"))))
10666 (build-system r-build-system)
10667 (propagated-inputs
10668 `(("r-beachmat" ,r-beachmat)
10669 ("r-bh" ,r-bh)
10670 ("r-biocgenerics" ,r-biocgenerics)
10671 ("r-biocneighbors" ,r-biocneighbors)
10672 ("r-biocparallel" ,r-biocparallel)
10673 ("r-biocsingular" ,r-biocsingular)
10674 ("r-delayedarray" ,r-delayedarray)
10675 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
10676 ("r-dqrng" ,r-dqrng)
10677 ("r-edger" ,r-edger)
10678 ("r-igraph" ,r-igraph)
10679 ("r-limma" ,r-limma)
10680 ("r-matrix" ,r-matrix)
10681 ("r-rcpp" ,r-rcpp)
10682 ("r-s4vectors" ,r-s4vectors)
10683 ("r-scater" ,r-scater)
10684 ("r-singlecellexperiment" ,r-singlecellexperiment)
10685 ("r-statmod" ,r-statmod)
10686 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10687 (home-page "https://bioconductor.org/packages/scran")
10688 (synopsis "Methods for single-cell RNA-Seq data analysis")
10689 (description "This package implements a variety of low-level analyses of
10690 single-cell RNA-seq data. Methods are provided for normalization of
10691 cell-specific biases, assignment of cell cycle phase, and detection of highly
10692 variable and significantly correlated genes.")
10693 (license license:gpl3)))
10694
10695 (define-public r-delayedmatrixstats
10696 (package
10697 (name "r-delayedmatrixstats")
10698 (version "1.8.0")
10699 (source
10700 (origin
10701 (method url-fetch)
10702 (uri (bioconductor-uri "DelayedMatrixStats" version))
10703 (sha256
10704 (base32
10705 "0mv2rl6a6l404piabcazxz1s6ars016pxhjf5v40hhr6y1r0wbqy"))))
10706 (properties
10707 `((upstream-name . "DelayedMatrixStats")))
10708 (build-system r-build-system)
10709 (propagated-inputs
10710 `(("r-biocparallel" ,r-biocparallel)
10711 ("r-delayedarray" ,r-delayedarray)
10712 ("r-hdf5array" ,r-hdf5array)
10713 ("r-iranges" ,r-iranges)
10714 ("r-matrix" ,r-matrix)
10715 ("r-matrixstats" ,r-matrixstats)
10716 ("r-s4vectors" ,r-s4vectors)))
10717 (home-page "https://github.com/PeteHaitch/DelayedMatrixStats")
10718 (synopsis "Functions that apply to rows and columns of DelayedMatrix objects")
10719 (description
10720 "This package provides a port of the @code{matrixStats} API for use with
10721 @code{DelayedMatrix} objects from the @code{DelayedArray} package. It
10722 contains high-performing functions operating on rows and columns of
10723 @code{DelayedMatrix} objects, e.g. @code{colMedians}, @code{rowMedians},
10724 @code{colRanks}, @code{rowRanks}, @code{colSds}, and @code{rowSds}. Functions
10725 are optimized per data type and for subsetted calculations such that both
10726 memory usage and processing time is minimized.")
10727 (license license:expat)))
10728
10729 (define-public r-phangorn
10730 (package
10731 (name "r-phangorn")
10732 (version "2.5.5")
10733 (source
10734 (origin
10735 (method url-fetch)
10736 (uri (cran-uri "phangorn" version))
10737 (sha256
10738 (base32
10739 "0ihkaykqjmf80d8wrk3saphxvnv58zma6pd13633bd3cwanc33f5"))))
10740 (build-system r-build-system)
10741 (propagated-inputs
10742 `(("r-ape" ,r-ape)
10743 ("r-fastmatch" ,r-fastmatch)
10744 ("r-igraph" ,r-igraph)
10745 ("r-magrittr" ,r-magrittr)
10746 ("r-matrix" ,r-matrix)
10747 ("r-quadprog" ,r-quadprog)
10748 ("r-rcpp" ,r-rcpp)))
10749 (home-page "https://github.com/KlausVigo/phangorn")
10750 (synopsis "Phylogenetic analysis in R")
10751 (description
10752 "Phangorn is a package for phylogenetic analysis in R. It supports
10753 estimation of phylogenetic trees and networks using Maximum Likelihood,
10754 Maximum Parsimony, distance methods and Hadamard conjugation.")
10755 (license license:gpl2+)))
10756
10757 (define-public r-dropbead
10758 (let ((commit "d746c6f3b32110428ea56d6a0001ce52a251c247")
10759 (revision "2"))
10760 (package
10761 (name "r-dropbead")
10762 (version (string-append "0-" revision "." (string-take commit 7)))
10763 (source
10764 (origin
10765 (method git-fetch)
10766 (uri (git-reference
10767 (url "https://github.com/rajewsky-lab/dropbead.git")
10768 (commit commit)))
10769 (file-name (git-file-name name version))
10770 (sha256
10771 (base32
10772 "0sbzma49aiiyw8b0jpr7fnhzys9nsqmp4hy4hdz1gzyg1lhnca26"))))
10773 (build-system r-build-system)
10774 (propagated-inputs
10775 `(("r-ggplot2" ,r-ggplot2)
10776 ("r-rcolorbrewer" ,r-rcolorbrewer)
10777 ("r-gridextra" ,r-gridextra)
10778 ("r-gplots" ,r-gplots)
10779 ("r-plyr" ,r-plyr)))
10780 (home-page "https://github.com/rajewsky-lab/dropbead")
10781 (synopsis "Basic exploration and analysis of Drop-seq data")
10782 (description "This package offers a quick and straight-forward way to
10783 explore and perform basic analysis of single cell sequencing data coming from
10784 droplet sequencing. It has been particularly tailored for Drop-seq.")
10785 (license license:gpl3))))
10786
10787 (define htslib-for-sambamba
10788 (let ((commit "2f3c3ea7b301f9b45737a793c0b2dcf0240e5ee5"))
10789 (package
10790 (inherit htslib)
10791 (name "htslib-for-sambamba")
10792 (version (string-append "1.3.1-1." (string-take commit 9)))
10793 (source
10794 (origin
10795 (method git-fetch)
10796 (uri (git-reference
10797 (url "https://github.com/lomereiter/htslib.git")
10798 (commit commit)))
10799 (file-name (string-append "htslib-" version "-checkout"))
10800 (sha256
10801 (base32
10802 "0g38g8s3npr0gjm9fahlbhiskyfws9l5i0x1ml3rakzj7az5l9c9"))))
10803 (native-inputs
10804 `(("autoconf" ,autoconf)
10805 ("automake" ,automake)
10806 ,@(package-native-inputs htslib))))))
10807
10808 (define-public sambamba
10809 (package
10810 (name "sambamba")
10811 (version "0.6.8")
10812 (source
10813 (origin
10814 (method git-fetch)
10815 (uri (git-reference
10816 (url "https://github.com/lomereiter/sambamba.git")
10817 (commit (string-append "v" version))))
10818 (file-name (string-append name "-" version "-checkout"))
10819 (sha256
10820 (base32
10821 "0k0cz3qcv98p6cq09zlbgnjsggxcqbcmzxg5zikgcgbr2nfq4lry"))))
10822 (build-system gnu-build-system)
10823 (arguments
10824 `(#:tests? #f ; there is no test target
10825 #:parallel-build? #f ; not supported
10826 #:phases
10827 (modify-phases %standard-phases
10828 (delete 'configure)
10829 (add-after 'unpack 'fix-ldc-version
10830 (lambda _
10831 (substitute* "gen_ldc_version_info.py"
10832 (("/usr/bin/env.*") (which "python3")))
10833 (substitute* "Makefile"
10834 ;; We use ldc2 instead of ldmd2 to compile sambamba.
10835 (("\\$\\(shell which ldmd2\\)") (which "ldc2")))
10836 #t))
10837 (add-after 'unpack 'place-biod-and-undead
10838 (lambda* (#:key inputs #:allow-other-keys)
10839 (copy-recursively (assoc-ref inputs "biod") "BioD")
10840 (copy-recursively (assoc-ref inputs "undead") "undeaD")
10841 #t))
10842 (add-after 'unpack 'unbundle-prerequisites
10843 (lambda _
10844 (substitute* "Makefile"
10845 (("htslib/libhts.a lz4/lib/liblz4.a")
10846 "-L-lhts -L-llz4")
10847 ((" lz4-static htslib-static") ""))
10848 #t))
10849 (replace 'install
10850 (lambda* (#:key outputs #:allow-other-keys)
10851 (let* ((out (assoc-ref outputs "out"))
10852 (bin (string-append out "/bin")))
10853 (mkdir-p bin)
10854 (install-file "bin/sambamba" bin)
10855 #t))))))
10856 (native-inputs
10857 `(("ldc" ,ldc)
10858 ("rdmd" ,rdmd)
10859 ("python" ,python)
10860 ("biod"
10861 ,(let ((commit "4f1a7d2fb7ef3dfe962aa357d672f354ebfbe42e"))
10862 (origin
10863 (method git-fetch)
10864 (uri (git-reference
10865 (url "https://github.com/biod/BioD.git")
10866 (commit commit)))
10867 (file-name (string-append "biod-"
10868 (string-take commit 9)
10869 "-checkout"))
10870 (sha256
10871 (base32
10872 "1k5pdjv1qvi0a3rwd1sfq6zbj37l86i7bf710m4c0y6737lxj426")))))
10873 ("undead"
10874 ,(let ((commit "9be93876982b5f14fcca60832563b3cd767dd84d"))
10875 (origin
10876 (method git-fetch)
10877 (uri (git-reference
10878 (url "https://github.com/biod/undeaD.git")
10879 (commit commit)))
10880 (file-name (string-append "undead-"
10881 (string-take commit 9)
10882 "-checkout"))
10883 (sha256
10884 (base32
10885 "1xfarj0nqlmi5jd1vmcmm7pabzaf9hxyvk6hp0d6jslb5k9r8r3d")))))))
10886 (inputs
10887 `(("lz4" ,lz4)
10888 ("htslib" ,htslib-for-sambamba)))
10889 (home-page "http://lomereiter.github.io/sambamba")
10890 (synopsis "Tools for working with SAM/BAM data")
10891 (description "Sambamba is a high performance modern robust and
10892 fast tool (and library), written in the D programming language, for
10893 working with SAM and BAM files. Current parallelised functionality is
10894 an important subset of samtools functionality, including view, index,
10895 sort, markdup, and depth.")
10896 (license license:gpl2+)))
10897
10898 (define-public ritornello
10899 (package
10900 (name "ritornello")
10901 (version "2.0.1")
10902 (source (origin
10903 (method git-fetch)
10904 (uri (git-reference
10905 (url "https://github.com/KlugerLab/Ritornello.git")
10906 (commit (string-append "v" version))))
10907 (file-name (git-file-name name version))
10908 (sha256
10909 (base32
10910 "1xahvq215qld7x1w8vpa5zbrsj6p9crb9shqa2x89sb0aaxa02jk"))))
10911 (build-system gnu-build-system)
10912 (arguments
10913 `(#:tests? #f ; there are no tests
10914 #:phases
10915 (modify-phases %standard-phases
10916 (add-after 'unpack 'patch-samtools-references
10917 (lambda* (#:key inputs #:allow-other-keys)
10918 (substitute* '("src/SamStream.h"
10919 "src/FLD.cpp")
10920 (("<sam.h>") "<samtools/sam.h>"))
10921 #t))
10922 (delete 'configure)
10923 (replace 'install
10924 (lambda* (#:key inputs outputs #:allow-other-keys)
10925 (let* ((out (assoc-ref outputs "out"))
10926 (bin (string-append out "/bin/")))
10927 (mkdir-p bin)
10928 (install-file "bin/Ritornello" bin)
10929 #t))))))
10930 (inputs
10931 `(("samtools" ,samtools-0.1)
10932 ("fftw" ,fftw)
10933 ("boost" ,boost)
10934 ("zlib" ,zlib)))
10935 (home-page "https://github.com/KlugerLab/Ritornello")
10936 (synopsis "Control-free peak caller for ChIP-seq data")
10937 (description "Ritornello is a ChIP-seq peak calling algorithm based on
10938 signal processing that can accurately call binding events without the need to
10939 do a pair total DNA input or IgG control sample. It has been tested for use
10940 with narrow binding events such as transcription factor ChIP-seq.")
10941 (license license:gpl3+)))
10942
10943 (define-public trim-galore
10944 (package
10945 (name "trim-galore")
10946 (version "0.6.1")
10947 (source
10948 (origin
10949 (method git-fetch)
10950 (uri (git-reference
10951 (url "https://github.com/FelixKrueger/TrimGalore.git")
10952 (commit version)))
10953 (file-name (git-file-name name version))
10954 (sha256
10955 (base32
10956 "1y31wbxwkm9xqzr5zv1pk5q418whnmlmgmfyxxpnl12h83m2i9iv"))))
10957 (build-system gnu-build-system)
10958 (arguments
10959 `(#:tests? #f ; no tests
10960 #:phases
10961 (modify-phases %standard-phases
10962 (replace 'configure
10963 (lambda _
10964 ;; Trim Galore tries to figure out what version of Python
10965 ;; cutadapt is using by looking at the shebang. Of course that
10966 ;; doesn't work, because cutadapt is wrapped in a shell script.
10967 (substitute* "trim_galore"
10968 (("my \\$python_return.*")
10969 "my $python_return = \"Python 3.999\";\n"))
10970 #t))
10971 (delete 'build)
10972 (add-after 'unpack 'hardcode-tool-references
10973 (lambda* (#:key inputs #:allow-other-keys)
10974 (substitute* "trim_galore"
10975 (("\\$path_to_cutadapt = 'cutadapt'")
10976 (string-append "$path_to_cutadapt = '"
10977 (assoc-ref inputs "cutadapt")
10978 "/bin/cutadapt'"))
10979 (("\\$compression_path = \"gzip\"")
10980 (string-append "$compression_path = \""
10981 (assoc-ref inputs "gzip")
10982 "/bin/gzip\""))
10983 (("\"gunzip")
10984 (string-append "\""
10985 (assoc-ref inputs "gzip")
10986 "/bin/gunzip"))
10987 (("\"pigz")
10988 (string-append "\""
10989 (assoc-ref inputs "pigz")
10990 "/bin/pigz")))
10991 #t))
10992 (replace 'install
10993 (lambda* (#:key outputs #:allow-other-keys)
10994 (let ((bin (string-append (assoc-ref outputs "out")
10995 "/bin")))
10996 (mkdir-p bin)
10997 (install-file "trim_galore" bin)
10998 #t))))))
10999 (inputs
11000 `(("gzip" ,gzip)
11001 ("perl" ,perl)
11002 ("pigz" ,pigz)
11003 ("cutadapt" ,cutadapt)))
11004 (native-inputs
11005 `(("unzip" ,unzip)))
11006 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/trim_galore/")
11007 (synopsis "Wrapper around Cutadapt and FastQC")
11008 (description "Trim Galore! is a wrapper script to automate quality and
11009 adapter trimming as well as quality control, with some added functionality to
11010 remove biased methylation positions for RRBS sequence files.")
11011 (license license:gpl3+)))
11012
11013 (define-public gess
11014 (package
11015 (name "gess")
11016 (version "1.0")
11017 (source (origin
11018 (method url-fetch)
11019 (uri (string-append "http://compbio.uthscsa.edu/"
11020 "GESS_Web/files/"
11021 "gess-" version ".src.tar.gz"))
11022 (sha256
11023 (base32
11024 "0hyk403kxscclzfs24pvdgiv0wm03kjcziqdrp5w46cb049gz0d7"))))
11025 (build-system gnu-build-system)
11026 (arguments
11027 `(#:tests? #f ; no tests
11028 #:phases
11029 (modify-phases %standard-phases
11030 (delete 'configure)
11031 (delete 'build)
11032 (replace 'install
11033 (lambda* (#:key inputs outputs #:allow-other-keys)
11034 (let* ((python (assoc-ref inputs "python"))
11035 (out (assoc-ref outputs "out"))
11036 (bin (string-append out "/bin/"))
11037 (target (string-append
11038 out "/lib/python"
11039 ,(version-major+minor
11040 (package-version python))
11041 "/site-packages/gess/")))
11042 (mkdir-p target)
11043 (copy-recursively "." target)
11044 ;; Make GESS.py executable
11045 (chmod (string-append target "GESS.py") #o555)
11046 ;; Add Python shebang to the top and make Matplotlib
11047 ;; usable.
11048 (substitute* (string-append target "GESS.py")
11049 (("\"\"\"Description:" line)
11050 (string-append "#!" (which "python") "
11051 import matplotlib
11052 matplotlib.use('Agg')
11053 " line)))
11054 ;; Make sure GESS has all modules in its path
11055 (wrap-program (string-append target "GESS.py")
11056 `("PYTHONPATH" ":" prefix (,target ,(getenv "PYTHONPATH"))))
11057 (mkdir-p bin)
11058 (symlink (string-append target "GESS.py")
11059 (string-append bin "GESS.py"))
11060 #t))))))
11061 (inputs
11062 `(("python" ,python-2)
11063 ("python2-pysam" ,python2-pysam)
11064 ("python2-scipy" ,python2-scipy)
11065 ("python2-numpy" ,python2-numpy)
11066 ("python2-networkx" ,python2-networkx)
11067 ("python2-biopython" ,python2-biopython)))
11068 (home-page "http://compbio.uthscsa.edu/GESS_Web/")
11069 (synopsis "Detect exon-skipping events from raw RNA-seq data")
11070 (description
11071 "GESS is an implementation of a novel computational method to detect de
11072 novo exon-skipping events directly from raw RNA-seq data without the prior
11073 knowledge of gene annotation information. GESS stands for the graph-based
11074 exon-skipping scanner detection scheme.")
11075 (license license:bsd-3)))
11076
11077 (define-public phylip
11078 (package
11079 (name "phylip")
11080 (version "3.696")
11081 (source
11082 (origin
11083 (method url-fetch)
11084 (uri (string-append "http://evolution.gs.washington.edu/phylip/"
11085 "download/phylip-" version ".tar.gz"))
11086 (sha256
11087 (base32
11088 "01jar1rayhr2gba2pgbw49m56rc5z4p5wn3ds0m188hrlln4a2nd"))))
11089 (build-system gnu-build-system)
11090 (arguments
11091 `(#:tests? #f ; no check target
11092 #:make-flags (list "-f" "Makefile.unx" "install")
11093 #:parallel-build? #f ; not supported
11094 #:phases
11095 (modify-phases %standard-phases
11096 (add-after 'unpack 'enter-dir
11097 (lambda _ (chdir "src") #t))
11098 (delete 'configure)
11099 (replace 'install
11100 (lambda* (#:key inputs outputs #:allow-other-keys)
11101 (let ((target (string-append (assoc-ref outputs "out")
11102 "/bin")))
11103 (mkdir-p target)
11104 (for-each (lambda (file)
11105 (install-file file target))
11106 (find-files "../exe" ".*")))
11107 #t)))))
11108 (home-page "http://evolution.genetics.washington.edu/phylip/")
11109 (synopsis "Tools for inferring phylogenies")
11110 (description "PHYLIP (the PHYLogeny Inference Package) is a package of
11111 programs for inferring phylogenies (evolutionary trees).")
11112 (license license:bsd-2)))
11113
11114 (define-public imp
11115 (package
11116 (name "imp")
11117 (version "2.6.2")
11118 (source
11119 (origin
11120 (method url-fetch)
11121 (uri (string-append "https://integrativemodeling.org/"
11122 version "/download/imp-" version ".tar.gz"))
11123 (sha256
11124 (base32
11125 "0lxqx7vh79d771svr611dkilp6sn30qrbw8zvscbrm37v38d2j6h"))))
11126 (build-system cmake-build-system)
11127 (arguments
11128 `(;; FIXME: Some tests fail because they produce warnings, others fail
11129 ;; because the PYTHONPATH does not include the modeller's directory.
11130 #:tests? #f))
11131 (inputs
11132 `(("boost" ,boost)
11133 ("gsl" ,gsl)
11134 ("swig" ,swig)
11135 ("hdf5" ,hdf5)
11136 ("fftw" ,fftw)
11137 ("python" ,python-2)))
11138 (propagated-inputs
11139 `(("python2-numpy" ,python2-numpy)
11140 ("python2-scipy" ,python2-scipy)
11141 ("python2-pandas" ,python2-pandas)
11142 ("python2-scikit-learn" ,python2-scikit-learn)
11143 ("python2-networkx" ,python2-networkx)))
11144 (home-page "https://integrativemodeling.org")
11145 (synopsis "Integrative modeling platform")
11146 (description "IMP's broad goal is to contribute to a comprehensive
11147 structural characterization of biomolecules ranging in size and complexity
11148 from small peptides to large macromolecular assemblies, by integrating data
11149 from diverse biochemical and biophysical experiments. IMP provides a C++ and
11150 Python toolbox for solving complex modeling problems, and a number of
11151 applications for tackling some common problems in a user-friendly way.")
11152 ;; IMP is largely available under the GNU Lesser GPL; see the file
11153 ;; COPYING.LGPL for the full text of this license. Some IMP modules are
11154 ;; available under the GNU GPL (see the file COPYING.GPL).
11155 (license (list license:lgpl2.1+
11156 license:gpl3+))))
11157
11158 (define-public tadbit
11159 (package
11160 (name "tadbit")
11161 (version "0.2.0")
11162 (source (origin
11163 (method git-fetch)
11164 (uri (git-reference
11165 (url "https://github.com/3DGenomes/TADbit.git")
11166 (commit (string-append "v" version))))
11167 (file-name (git-file-name name version))
11168 (sha256
11169 (base32
11170 "07g3aj648prmsvxp9caz5yl41k0y0647vxh0f5p3w8376mfiljd0"))))
11171 (build-system python-build-system)
11172 (arguments
11173 `(;; Tests are included and must be run after installation, but
11174 ;; they are incomplete and thus cannot be run.
11175 #:tests? #f
11176 #:python ,python-2
11177 #:phases
11178 (modify-phases %standard-phases
11179 (add-after 'unpack 'fix-problems-with-setup.py
11180 (lambda* (#:key outputs #:allow-other-keys)
11181 ;; setup.py opens these files for writing
11182 (chmod "_pytadbit/_version.py" #o664)
11183 (chmod "README.rst" #o664)
11184
11185 ;; Don't attempt to install the bash completions to
11186 ;; the home directory.
11187 (rename-file "extras/.bash_completion"
11188 "extras/tadbit")
11189 (substitute* "setup.py"
11190 (("\\(path.expanduser\\('~'\\)")
11191 (string-append "(\""
11192 (assoc-ref outputs "out")
11193 "/etc/bash_completion.d\""))
11194 (("extras/\\.bash_completion")
11195 "extras/tadbit"))
11196 #t)))))
11197 (inputs
11198 ;; TODO: add Chimera for visualization
11199 `(("imp" ,imp)
11200 ("mcl" ,mcl)
11201 ("python2-scipy" ,python2-scipy)
11202 ("python2-numpy" ,python2-numpy)
11203 ("python2-matplotlib" ,python2-matplotlib)
11204 ("python2-pysam" ,python2-pysam)))
11205 (home-page "https://3dgenomes.github.io/TADbit/")
11206 (synopsis "Analyze, model, and explore 3C-based data")
11207 (description
11208 "TADbit is a complete Python library to deal with all steps to analyze,
11209 model, and explore 3C-based data. With TADbit the user can map FASTQ files to
11210 obtain raw interaction binned matrices (Hi-C like matrices), normalize and
11211 correct interaction matrices, identify and compare the so-called
11212 @dfn{Topologically Associating Domains} (TADs), build 3D models from the
11213 interaction matrices, and finally, extract structural properties from the
11214 models. TADbit is complemented by TADkit for visualizing 3D models.")
11215 (license license:gpl3+)))
11216
11217 (define-public kentutils
11218 (package
11219 (name "kentutils")
11220 ;; 302.1.0 is out, but the only difference is the inclusion of
11221 ;; pre-built binaries.
11222 (version "302.0.0")
11223 (source
11224 (origin
11225 (method git-fetch)
11226 (uri (git-reference
11227 (url "https://github.com/ENCODE-DCC/kentUtils.git")
11228 (commit (string-append "v" version))))
11229 (file-name (git-file-name name version))
11230 (sha256
11231 (base32
11232 "0n1wbyjpzii2b9qhyp9r1q76j623cggpg3y8fmw78ld3z4y7ivha"))
11233 (modules '((guix build utils)
11234 (srfi srfi-26)
11235 (ice-9 ftw)))
11236 (snippet
11237 '(begin
11238 ;; Only the contents of the specified directories are free
11239 ;; for all uses, so we remove the rest. "hg/autoSql" and
11240 ;; "hg/autoXml" are nominally free, but they depend on a
11241 ;; library that is built from the sources in "hg/lib",
11242 ;; which is nonfree.
11243 (let ((free (list "." ".."
11244 "utils" "lib" "inc" "tagStorm"
11245 "parasol" "htslib"))
11246 (directory? (lambda (file)
11247 (eq? 'directory (stat:type (stat file))))))
11248 (for-each (lambda (file)
11249 (and (directory? file)
11250 (delete-file-recursively file)))
11251 (map (cut string-append "src/" <>)
11252 (scandir "src"
11253 (lambda (file)
11254 (not (member file free)))))))
11255 ;; Only make the utils target, not the userApps target,
11256 ;; because that requires libraries we won't build.
11257 (substitute* "Makefile"
11258 ((" userApps") " utils"))
11259 ;; Only build libraries that are free.
11260 (substitute* "src/makefile"
11261 (("DIRS =.*") "DIRS =\n")
11262 (("cd jkOwnLib.*") "")
11263 ((" hgLib") "")
11264 (("cd hg.*") ""))
11265 (substitute* "src/utils/makefile"
11266 ;; These tools depend on "jkhgap.a", which is part of the
11267 ;; nonfree "src/hg/lib" directory.
11268 (("raSqlQuery") "")
11269 (("pslLiftSubrangeBlat") "")
11270
11271 ;; Do not build UCSC tools, which may require nonfree
11272 ;; components.
11273 (("ALL_APPS =.*") "ALL_APPS = $(UTILS_APPLIST)\n"))
11274 #t))))
11275 (build-system gnu-build-system)
11276 (arguments
11277 `( ;; There is no global test target and the test target for
11278 ;; individual tools depends on input files that are not
11279 ;; included.
11280 #:tests? #f
11281 #:phases
11282 (modify-phases %standard-phases
11283 (add-after 'unpack 'fix-permissions
11284 (lambda _ (make-file-writable "src/inc/localEnvironment.mk") #t))
11285 (add-after 'unpack 'fix-paths
11286 (lambda _
11287 (substitute* "Makefile"
11288 (("/bin/echo") (which "echo")))
11289 #t))
11290 (add-after 'unpack 'prepare-samtabix
11291 (lambda* (#:key inputs #:allow-other-keys)
11292 (copy-recursively (assoc-ref inputs "samtabix")
11293 "samtabix")
11294 #t))
11295 (delete 'configure)
11296 (replace 'install
11297 (lambda* (#:key outputs #:allow-other-keys)
11298 (let ((bin (string-append (assoc-ref outputs "out")
11299 "/bin")))
11300 (copy-recursively "bin" bin))
11301 #t)))))
11302 (native-inputs
11303 `(("samtabix"
11304 ,(origin
11305 (method git-fetch)
11306 (uri (git-reference
11307 (url "http://genome-source.cse.ucsc.edu/samtabix.git")
11308 (commit "10fd107909c1ac4d679299908be4262a012965ba")))
11309 (sha256
11310 (base32
11311 "0c1nj64l42v395sa84n7az43xiap4i6f9n9dfz4058aqiwkhkmma"))))))
11312 (inputs
11313 `(("zlib" ,zlib)
11314 ("tcsh" ,tcsh)
11315 ("perl" ,perl)
11316 ("libpng" ,libpng)
11317 ("mariadb" ,mariadb "lib")
11318 ("mariadb-dev" ,mariadb "dev")
11319 ("openssl" ,openssl)))
11320 (home-page "http://genome.cse.ucsc.edu/index.html")
11321 (synopsis "Assorted bioinformatics utilities")
11322 (description "This package provides the kentUtils, a selection of
11323 bioinformatics utilities used in combination with the UCSC genome
11324 browser.")
11325 ;; Only a subset of the sources are released under a non-copyleft
11326 ;; free software license. All other sources are removed in a
11327 ;; snippet. See this bug report for an explanation of how the
11328 ;; license statements apply:
11329 ;; https://github.com/ENCODE-DCC/kentUtils/issues/12
11330 (license (license:non-copyleft
11331 "http://genome.ucsc.edu/license/"
11332 "The contents of this package are free for all uses."))))
11333
11334 (define-public f-seq
11335 (let ((commit "6ccded34cff38cf432deed8503648b4a66953f9b")
11336 (revision "1"))
11337 (package
11338 (name "f-seq")
11339 (version (string-append "1.1-" revision "." (string-take commit 7)))
11340 (source (origin
11341 (method git-fetch)
11342 (uri (git-reference
11343 (url "https://github.com/aboyle/F-seq.git")
11344 (commit commit)))
11345 (file-name (string-append name "-" version))
11346 (sha256
11347 (base32
11348 "1nk33k0yajg2id4g59bc4szr58r2q6pdq42vgcw054m8ip9wv26h"))
11349 (modules '((guix build utils)))
11350 ;; Remove bundled Java library archives.
11351 (snippet
11352 '(begin
11353 (for-each delete-file (find-files "lib" ".*"))
11354 #t))))
11355 (build-system ant-build-system)
11356 (arguments
11357 `(#:tests? #f ; no tests included
11358 #:phases
11359 (modify-phases %standard-phases
11360 (replace 'install
11361 (lambda* (#:key inputs outputs #:allow-other-keys)
11362 (let* ((target (assoc-ref outputs "out"))
11363 (bin (string-append target "/bin"))
11364 (doc (string-append target "/share/doc/f-seq"))
11365 (lib (string-append target "/lib")))
11366 (mkdir-p target)
11367 (mkdir-p doc)
11368 (substitute* "bin/linux/fseq"
11369 (("java") (which "java"))
11370 (("\\$REALDIR/../lib/commons-cli-1.1.jar")
11371 (string-append (assoc-ref inputs "java-commons-cli")
11372 "/share/java/commons-cli.jar"))
11373 (("REALDIR=.*")
11374 (string-append "REALDIR=" bin "\n")))
11375 (install-file "README.txt" doc)
11376 (install-file "bin/linux/fseq" bin)
11377 (install-file "build~/fseq.jar" lib)
11378 (copy-recursively "lib" lib)
11379 #t))))))
11380 (inputs
11381 `(("perl" ,perl)
11382 ("java-commons-cli" ,java-commons-cli)))
11383 (home-page "http://fureylab.web.unc.edu/software/fseq/")
11384 (synopsis "Feature density estimator for high-throughput sequence tags")
11385 (description
11386 "F-Seq is a software package that generates a continuous tag sequence
11387 density estimation allowing identification of biologically meaningful sites
11388 such as transcription factor binding sites (ChIP-seq) or regions of open
11389 chromatin (DNase-seq). Output can be displayed directly in the UCSC Genome
11390 Browser.")
11391 (license license:gpl3+))))
11392
11393 (define-public bismark
11394 (package
11395 (name "bismark")
11396 (version "0.20.1")
11397 (source
11398 (origin
11399 (method git-fetch)
11400 (uri (git-reference
11401 (url "https://github.com/FelixKrueger/Bismark.git")
11402 (commit version)))
11403 (file-name (string-append name "-" version "-checkout"))
11404 (sha256
11405 (base32
11406 "0xchm3rgilj6vfjnyzfzzymfd7djr64sbrmrvs3njbwi66jqbzw9"))))
11407 (build-system perl-build-system)
11408 (arguments
11409 `(#:tests? #f ; there are no tests
11410 #:modules ((guix build utils)
11411 (ice-9 popen)
11412 (srfi srfi-26)
11413 (guix build perl-build-system))
11414 #:phases
11415 (modify-phases %standard-phases
11416 ;; The bundled plotly.js is minified.
11417 (add-after 'unpack 'replace-plotly.js
11418 (lambda* (#:key inputs #:allow-other-keys)
11419 (let* ((file (assoc-ref inputs "plotly.js"))
11420 (installed "plotly/plotly.js"))
11421 (let ((minified (open-pipe* OPEN_READ "uglify-js" file)))
11422 (call-with-output-file installed
11423 (cut dump-port minified <>))))
11424 #t))
11425 (delete 'configure)
11426 (delete 'build)
11427 (replace 'install
11428 (lambda* (#:key inputs outputs #:allow-other-keys)
11429 (let* ((out (assoc-ref outputs "out"))
11430 (bin (string-append out "/bin"))
11431 (share (string-append out "/share/bismark"))
11432 (docdir (string-append out "/share/doc/bismark"))
11433 (docs '("Docs/Bismark_User_Guide.html"))
11434 (scripts '("bismark"
11435 "bismark_genome_preparation"
11436 "bismark_methylation_extractor"
11437 "bismark2bedGraph"
11438 "bismark2report"
11439 "coverage2cytosine"
11440 "deduplicate_bismark"
11441 "filter_non_conversion"
11442 "bam2nuc"
11443 "bismark2summary"
11444 "NOMe_filtering")))
11445 (substitute* "bismark2report"
11446 (("\\$RealBin/plotly")
11447 (string-append share "/plotly")))
11448 (mkdir-p share)
11449 (mkdir-p docdir)
11450 (mkdir-p bin)
11451 (for-each (lambda (file) (install-file file bin))
11452 scripts)
11453 (for-each (lambda (file) (install-file file docdir))
11454 docs)
11455 (copy-recursively "Docs/Images" (string-append docdir "/Images"))
11456 (copy-recursively "plotly"
11457 (string-append share "/plotly"))
11458
11459 ;; Fix references to gunzip
11460 (substitute* (map (lambda (file)
11461 (string-append bin "/" file))
11462 scripts)
11463 (("\"gunzip -c")
11464 (string-append "\"" (assoc-ref inputs "gzip")
11465 "/bin/gunzip -c")))
11466 #t))))))
11467 (inputs
11468 `(("gzip" ,gzip)
11469 ("perl-carp" ,perl-carp)
11470 ("perl-getopt-long" ,perl-getopt-long)))
11471 (native-inputs
11472 `(("plotly.js"
11473 ,(origin
11474 (method url-fetch)
11475 (uri (string-append "https://raw.githubusercontent.com/plotly/plotly.js/"
11476 "v1.39.4/dist/plotly.js"))
11477 (sha256
11478 (base32 "138mwsr4nf5qif4mrxx286mpnagxd1xwl6k8aidrjgknaqg88zyr"))))
11479 ("uglify-js" ,uglify-js)))
11480 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/bismark/")
11481 (synopsis "Map bisulfite treated sequence reads and analyze methylation")
11482 (description "Bismark is a program to map bisulfite treated sequencing
11483 reads to a genome of interest and perform methylation calls in a single step.
11484 The output can be easily imported into a genome viewer, such as SeqMonk, and
11485 enables a researcher to analyse the methylation levels of their samples
11486 straight away. Its main features are:
11487
11488 @itemize
11489 @item Bisulfite mapping and methylation calling in one single step
11490 @item Supports single-end and paired-end read alignments
11491 @item Supports ungapped and gapped alignments
11492 @item Alignment seed length, number of mismatches etc are adjustable
11493 @item Output discriminates between cytosine methylation in CpG, CHG
11494 and CHH context
11495 @end itemize\n")
11496 (license license:gpl3+)))
11497
11498 (define-public paml
11499 (package
11500 (name "paml")
11501 (version "4.9e")
11502 (source (origin
11503 (method url-fetch)
11504 (uri (string-append "http://abacus.gene.ucl.ac.uk/software/"
11505 "paml" version ".tgz"))
11506 (sha256
11507 (base32
11508 "13zf6h9fiqghwhch2h06x1zdr6s42plsnqahflp5g7myr3han3s6"))
11509 (modules '((guix build utils)))
11510 ;; Remove Windows binaries
11511 (snippet
11512 '(begin
11513 (for-each delete-file (find-files "." "\\.exe$"))
11514 #t))))
11515 (build-system gnu-build-system)
11516 (arguments
11517 `(#:tests? #f ; there are no tests
11518 #:make-flags '("CC=gcc")
11519 #:phases
11520 (modify-phases %standard-phases
11521 (replace 'configure
11522 (lambda _
11523 (substitute* "src/BFdriver.c"
11524 (("/bin/bash") (which "bash")))
11525 (chdir "src")
11526 #t))
11527 (replace 'install
11528 (lambda* (#:key outputs #:allow-other-keys)
11529 (let ((tools '("baseml" "basemlg" "codeml"
11530 "pamp" "evolver" "yn00" "chi2"))
11531 (bin (string-append (assoc-ref outputs "out") "/bin"))
11532 (docdir (string-append (assoc-ref outputs "out")
11533 "/share/doc/paml")))
11534 (mkdir-p bin)
11535 (for-each (lambda (file) (install-file file bin)) tools)
11536 (copy-recursively "../doc" docdir)
11537 #t))))))
11538 (home-page "http://abacus.gene.ucl.ac.uk/software/paml.html")
11539 (synopsis "Phylogentic analysis by maximum likelihood")
11540 (description "PAML (for Phylogentic Analysis by Maximum Likelihood)
11541 contains a few programs for model fitting and phylogenetic tree reconstruction
11542 using nucleotide or amino-acid sequence data.")
11543 ;; GPLv3 only
11544 (license license:gpl3)))
11545
11546 (define-public kallisto
11547 (package
11548 (name "kallisto")
11549 (version "0.44.0")
11550 (source (origin
11551 (method git-fetch)
11552 (uri (git-reference
11553 (url "https://github.com/pachterlab/kallisto.git")
11554 (commit (string-append "v" version))))
11555 (file-name (git-file-name name version))
11556 (sha256
11557 (base32
11558 "0nj382jiywqnpgvyhichajpkkh5r0bapn43f4dx40zdaq5v4m40m"))))
11559 (build-system cmake-build-system)
11560 (arguments
11561 `(#:tests? #f ; no "check" target
11562 #:phases
11563 (modify-phases %standard-phases
11564 (add-after 'unpack 'do-not-use-bundled-htslib
11565 (lambda _
11566 (substitute* "CMakeLists.txt"
11567 (("^ExternalProject_Add" m)
11568 (string-append "if (NEVER)\n" m))
11569 (("^\\)")
11570 (string-append ")\nendif(NEVER)"))
11571 (("include_directories\\(\\$\\{htslib_PREFIX.*" m)
11572 (string-append "# " m)))
11573 (substitute* "src/CMakeLists.txt"
11574 (("target_link_libraries\\(kallisto kallisto_core pthread \
11575 \\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/../ext/htslib/libhts.a\\)")
11576 "target_link_libraries(kallisto kallisto_core pthread hts)")
11577 (("include_directories\\(\\.\\./ext/htslib\\)") ""))
11578 #t)))))
11579 (inputs
11580 `(("hdf5" ,hdf5)
11581 ("htslib" ,htslib)
11582 ("zlib" ,zlib)))
11583 (home-page "http://pachterlab.github.io/kallisto/")
11584 (synopsis "Near-optimal RNA-Seq quantification")
11585 (description
11586 "Kallisto is a program for quantifying abundances of transcripts from
11587 RNA-Seq data, or more generally of target sequences using high-throughput
11588 sequencing reads. It is based on the novel idea of pseudoalignment for
11589 rapidly determining the compatibility of reads with targets, without the need
11590 for alignment. Pseudoalignment of reads preserves the key information needed
11591 for quantification, and kallisto is therefore not only fast, but also as
11592 accurate as existing quantification tools.")
11593 (license license:bsd-2)))
11594
11595 (define-public libgff
11596 (package
11597 (name "libgff")
11598 (version "1.0")
11599 (source (origin
11600 (method git-fetch)
11601 (uri (git-reference
11602 (url "https://github.com/Kingsford-Group/libgff.git")
11603 (commit (string-append "v" version))))
11604 (file-name (git-file-name name version))
11605 (sha256
11606 (base32
11607 "0n6vfjnq7a2mianipscbshrvbncss8z4zkgkbjw754p9043nfkps"))))
11608 (build-system cmake-build-system)
11609 (arguments `(#:tests? #f)) ; no tests included
11610 (home-page "https://github.com/Kingsford-Group/libgff")
11611 (synopsis "Parser library for reading/writing GFF files")
11612 (description "This is a simple \"libraryfication\" of the GFF/GTF parsing
11613 code that is used in the Cufflinks codebase. The goal of this library is to
11614 provide this functionality without the necessity of drawing in a heavy-weight
11615 dependency like SeqAn.")
11616 (license (license:x11-style "https://www.boost.org/LICENSE_1_0.txt"))))
11617
11618 (define-public sailfish
11619 (package
11620 (name "sailfish")
11621 (version "0.10.1")
11622 (source (origin
11623 (method git-fetch)
11624 (uri (git-reference
11625 (url "https://github.com/kingsfordgroup/sailfish.git")
11626 (commit (string-append "v" version))))
11627 (file-name (git-file-name name version))
11628 (sha256
11629 (base32
11630 "1amcc5hqvsl42hg4x19bi9vy47cl874s0lw1fmi0hwsdk9i8c03v"))
11631 (modules '((guix build utils)))
11632 (snippet
11633 '(begin
11634 ;; Delete bundled headers for eigen3.
11635 (delete-file-recursively "include/eigen3/")
11636 #t))))
11637 (build-system cmake-build-system)
11638 (arguments
11639 `(#:configure-flags
11640 (list (string-append "-DBOOST_INCLUDEDIR="
11641 (assoc-ref %build-inputs "boost")
11642 "/include/")
11643 (string-append "-DBOOST_LIBRARYDIR="
11644 (assoc-ref %build-inputs "boost")
11645 "/lib/")
11646 (string-append "-DBoost_LIBRARIES="
11647 "-lboost_iostreams "
11648 "-lboost_filesystem "
11649 "-lboost_system "
11650 "-lboost_thread "
11651 "-lboost_timer "
11652 "-lboost_chrono "
11653 "-lboost_program_options")
11654 "-DBoost_FOUND=TRUE"
11655 ;; Don't download RapMap---we already have it!
11656 "-DFETCHED_RAPMAP=1")
11657 ;; Tests must be run after installation and the location of the test
11658 ;; data file must be overridden. But the tests fail. It looks like
11659 ;; they are not really meant to be run.
11660 #:tests? #f
11661 #:phases
11662 (modify-phases %standard-phases
11663 ;; Boost cannot be found, even though it's right there.
11664 (add-after 'unpack 'do-not-look-for-boost
11665 (lambda* (#:key inputs #:allow-other-keys)
11666 (substitute* "CMakeLists.txt"
11667 (("find_package\\(Boost 1\\.53\\.0") "#"))
11668 #t))
11669 (add-after 'unpack 'do-not-assign-to-macro
11670 (lambda _
11671 (substitute* "include/spdlog/details/format.cc"
11672 (("const unsigned CHAR_WIDTH = 1;") ""))
11673 #t))
11674 (add-after 'unpack 'prepare-rapmap
11675 (lambda* (#:key inputs #:allow-other-keys)
11676 (let ((src "external/install/src/rapmap/")
11677 (include "external/install/include/rapmap/")
11678 (rapmap (assoc-ref inputs "rapmap")))
11679 (mkdir-p "/tmp/rapmap")
11680 (invoke "tar" "xf"
11681 (assoc-ref inputs "rapmap")
11682 "-C" "/tmp/rapmap"
11683 "--strip-components=1")
11684 (mkdir-p src)
11685 (mkdir-p include)
11686 (for-each (lambda (file)
11687 (install-file file src))
11688 (find-files "/tmp/rapmap/src" "\\.(c|cpp)"))
11689 (copy-recursively "/tmp/rapmap/include" include))
11690 #t))
11691 (add-after 'unpack 'use-system-libraries
11692 (lambda* (#:key inputs #:allow-other-keys)
11693 (substitute* '("src/SailfishIndexer.cpp"
11694 "src/SailfishUtils.cpp"
11695 "src/SailfishQuantify.cpp"
11696 "src/FASTAParser.cpp"
11697 "include/PCA.hpp"
11698 "include/SailfishUtils.hpp"
11699 "include/SailfishIndex.hpp"
11700 "include/CollapsedEMOptimizer.hpp"
11701 "src/CollapsedEMOptimizer.cpp")
11702 (("#include \"jellyfish/config.h\"") ""))
11703 (substitute* "src/CMakeLists.txt"
11704 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
11705 (string-append (assoc-ref inputs "jellyfish")
11706 "/include/jellyfish-" ,(package-version jellyfish)))
11707 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
11708 (string-append (assoc-ref inputs "jellyfish")
11709 "/lib/libjellyfish-2.0.a"))
11710 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
11711 (string-append (assoc-ref inputs "libdivsufsort")
11712 "/lib/libdivsufsort.so"))
11713 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
11714 (string-append (assoc-ref inputs "libdivsufsort")
11715 "/lib/libdivsufsort64.so")))
11716 (substitute* "CMakeLists.txt"
11717 ;; Don't prefer static libs
11718 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
11719 (("find_package\\(Jellyfish.*") "")
11720 (("ExternalProject_Add\\(libjellyfish") "message(")
11721 (("ExternalProject_Add\\(libgff") "message(")
11722 (("ExternalProject_Add\\(libsparsehash") "message(")
11723 (("ExternalProject_Add\\(libdivsufsort") "message("))
11724
11725 ;; Ensure that Eigen headers can be found
11726 (setenv "CPLUS_INCLUDE_PATH"
11727 (string-append (assoc-ref inputs "eigen")
11728 "/include/eigen3"))
11729 #t)))))
11730 (inputs
11731 `(("boost" ,boost)
11732 ("eigen" ,eigen)
11733 ("jemalloc" ,jemalloc)
11734 ("jellyfish" ,jellyfish)
11735 ("sparsehash" ,sparsehash)
11736 ("rapmap" ,(origin
11737 (method git-fetch)
11738 (uri (git-reference
11739 (url "https://github.com/COMBINE-lab/RapMap.git")
11740 (commit (string-append "sf-v" version))))
11741 (file-name (string-append "rapmap-sf-v" version "-checkout"))
11742 (sha256
11743 (base32
11744 "1hv79l5i576ykv5a1srj2p0q36yvyl5966m0fcy2lbi169ipjakf"))
11745 (modules '((guix build utils)))
11746 ;; These files are expected to be excluded.
11747 (snippet
11748 '(begin (delete-file-recursively "include/spdlog")
11749 (for-each delete-file '("include/xxhash.h"
11750 "src/xxhash.c"))
11751 #t))))
11752 ("libdivsufsort" ,libdivsufsort)
11753 ("libgff" ,libgff)
11754 ("tbb" ,tbb)
11755 ("zlib" ,zlib)))
11756 (native-inputs
11757 `(("pkg-config" ,pkg-config)))
11758 (home-page "http://www.cs.cmu.edu/~ckingsf/software/sailfish")
11759 (synopsis "Mapping-based isoform quantification from RNA-Seq reads")
11760 (description "Sailfish is a tool for genomic transcript quantification
11761 from RNA-seq data. It requires a set of target transcripts (either from a
11762 reference or de-novo assembly) to quantify. All you need to run sailfish is a
11763 fasta file containing your reference transcripts and a (set of) fasta/fastq
11764 file(s) containing your reads.")
11765 (license license:gpl3+)))
11766
11767 (define libstadenio-for-salmon
11768 (package
11769 (name "libstadenio")
11770 (version "1.14.8")
11771 (source (origin
11772 (method git-fetch)
11773 (uri (git-reference
11774 (url "https://github.com/COMBINE-lab/staden-io_lib.git")
11775 (commit (string-append "v" version))))
11776 (file-name (string-append name "-" version "-checkout"))
11777 (sha256
11778 (base32
11779 "1x8kxxqxl892vwfbprlbyfwkkv7c34ggkc94892x9x0g37x5nbwx"))))
11780 (build-system gnu-build-system)
11781 (arguments '(#:parallel-tests? #f)) ; not supported
11782 (inputs
11783 `(("zlib" ,zlib)))
11784 (native-inputs
11785 `(("perl" ,perl))) ; for tests
11786 (home-page "https://github.com/COMBINE-lab/staden-io_lib")
11787 (synopsis "General purpose trace and experiment file library")
11788 (description "This package provides a library of file reading and writing
11789 code to provide a general purpose Trace file (and Experiment File) reading
11790 interface.
11791
11792 The following file formats are supported:
11793
11794 @enumerate
11795 @item SCF trace files
11796 @item ABI trace files
11797 @item ALF trace files
11798 @item ZTR trace files
11799 @item SFF trace archives
11800 @item SRF trace archives
11801 @item Experiment files
11802 @item Plain text files
11803 @item SAM/BAM sequence files
11804 @item CRAM sequence files
11805 @end enumerate\n")
11806 (license license:bsd-3)))
11807
11808 (define-public salmon
11809 (package
11810 (name "salmon")
11811 (version "0.13.1")
11812 (source (origin
11813 (method git-fetch)
11814 (uri (git-reference
11815 (url "https://github.com/COMBINE-lab/salmon.git")
11816 (commit (string-append "v" version))))
11817 (file-name (git-file-name name version))
11818 (sha256
11819 (base32
11820 "1i2z4aivicmiixdz9bxalp7vmfzi3k92fxa63iqa8kgvfw5a4aq5"))
11821 (modules '((guix build utils)))
11822 (snippet
11823 '(begin
11824 ;; Delete bundled headers for eigen3.
11825 (delete-file-recursively "include/eigen3/")
11826 #t))))
11827 (build-system cmake-build-system)
11828 (arguments
11829 `(#:configure-flags
11830 (list (string-append "-DBOOST_INCLUDEDIR="
11831 (assoc-ref %build-inputs "boost")
11832 "/include/")
11833 (string-append "-DBOOST_LIBRARYDIR="
11834 (assoc-ref %build-inputs "boost")
11835 "/lib/")
11836 (string-append "-DBoost_LIBRARIES="
11837 "-lboost_iostreams "
11838 "-lboost_filesystem "
11839 "-lboost_system "
11840 "-lboost_thread "
11841 "-lboost_timer "
11842 "-lboost_chrono "
11843 "-lboost_program_options")
11844 "-DBoost_FOUND=TRUE"
11845 "-DTBB_LIBRARIES=tbb tbbmalloc"
11846 ;; Don't download RapMap---we already have it!
11847 "-DFETCHED_RAPMAP=1")
11848 #:phases
11849 (modify-phases %standard-phases
11850 ;; Boost cannot be found, even though it's right there.
11851 (add-after 'unpack 'do-not-look-for-boost
11852 (lambda* (#:key inputs #:allow-other-keys)
11853 (substitute* "CMakeLists.txt"
11854 (("find_package\\(Boost 1\\.59\\.0") "#"))
11855 #t))
11856 (add-after 'unpack 'do-not-phone-home
11857 (lambda _
11858 (substitute* "src/Salmon.cpp"
11859 (("getVersionMessage\\(\\)") "\"\""))
11860 #t))
11861 (add-after 'unpack 'prepare-rapmap
11862 (lambda* (#:key inputs #:allow-other-keys)
11863 (let ((src "external/install/src/rapmap/")
11864 (include "external/install/include/rapmap/")
11865 (rapmap (assoc-ref inputs "rapmap")))
11866 (mkdir-p src)
11867 (mkdir-p include)
11868 (copy-recursively (string-append rapmap "/src") src)
11869 (copy-recursively (string-append rapmap "/include") include)
11870 (for-each delete-file '("external/install/include/rapmap/xxhash.h"
11871 "external/install/include/rapmap/FastxParser.hpp"
11872 "external/install/include/rapmap/concurrentqueue.h"
11873 "external/install/include/rapmap/FastxParserThreadUtils.hpp"
11874 "external/install/src/rapmap/FastxParser.cpp"
11875 "external/install/src/rapmap/xxhash.c"))
11876 (delete-file-recursively "external/install/include/rapmap/spdlog"))
11877 #t))
11878 (add-after 'unpack 'use-system-libraries
11879 (lambda* (#:key inputs #:allow-other-keys)
11880 (substitute* "CMakeLists.txt"
11881 ;; Don't prefer static libs
11882 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
11883 (("set\\(TBB_LIBRARIES") "message(")
11884 ;; Don't download anything
11885 (("DOWNLOAD_COMMAND") "DOWNLOAD_COMMAND echo")
11886 (("externalproject_add\\(libcereal") "message(")
11887 (("externalproject_add\\(libgff") "message(")
11888 (("externalproject_add\\(libtbb") "message(")
11889 (("externalproject_add\\(libdivsufsort") "message(")
11890 (("externalproject_add\\(libstadenio") "message(")
11891 (("externalproject_add_step\\(") "message("))
11892 (substitute* "src/CMakeLists.txt"
11893 (("add_dependencies") "#")
11894 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libstaden-read.a")
11895 (string-append (assoc-ref inputs "libstadenio-for-salmon")
11896 "/lib/libstaden-read.so"))
11897 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
11898 (string-append (assoc-ref inputs "libdivsufsort")
11899 "/lib/libdivsufsort.so"))
11900 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
11901 (string-append (assoc-ref inputs "libdivsufsort")
11902 "/lib/libdivsufsort64.so"))
11903 (("lib/libdivsufsort.a") "/lib/libdivsufsort.so"))
11904
11905 ;; Ensure that all headers can be found
11906 (setenv "CPATH"
11907 (string-append (getenv "CPATH")
11908 ":"
11909 (assoc-ref inputs "eigen")
11910 "/include/eigen3"))
11911 #t))
11912 ;; CMAKE_INSTALL_PREFIX does not exist when the tests are
11913 ;; run. It only exists after the install phase.
11914 (add-after 'unpack 'fix-tests
11915 (lambda _
11916 (substitute* "src/CMakeLists.txt"
11917 (("DTOPLEVEL_DIR=\\$\\{CMAKE_INSTALL_PREFIX")
11918 "DTOPLEVEL_DIR=${GAT_SOURCE_DIR"))
11919 #t)))))
11920 (inputs
11921 `(("boost" ,boost)
11922 ("bzip2" ,bzip2)
11923 ("cereal" ,cereal)
11924 ("eigen" ,eigen)
11925 ("rapmap" ,(origin
11926 (method git-fetch)
11927 (uri (git-reference
11928 (url "https://github.com/COMBINE-lab/RapMap.git")
11929 (commit (string-append "salmon-v" version))))
11930 (file-name (string-append "rapmap-salmon-v" version "-checkout"))
11931 (sha256
11932 (base32
11933 "1biplxf0csc7a8h1wf219b0vmjkvw6wk2zylhdklb577kgmihdms"))))
11934 ("jemalloc" ,jemalloc)
11935 ("libgff" ,libgff)
11936 ("tbb" ,tbb)
11937 ("libdivsufsort" ,libdivsufsort)
11938 ("libstadenio-for-salmon" ,libstadenio-for-salmon)
11939 ("xz" ,xz)
11940 ("zlib" ,zlib)))
11941 (native-inputs
11942 `(("pkg-config" ,pkg-config)))
11943 (home-page "https://github.com/COMBINE-lab/salmon")
11944 (synopsis "Quantification from RNA-seq reads using lightweight alignments")
11945 (description "Salmon is a program to produce highly-accurate,
11946 transcript-level quantification estimates from RNA-seq data. Salmon achieves
11947 its accuracy and speed via a number of different innovations, including the
11948 use of lightweight alignments (accurate but fast-to-compute proxies for
11949 traditional read alignments) and massively-parallel stochastic collapsed
11950 variational inference.")
11951 (license license:gpl3+)))
11952
11953 (define-public python-loompy
11954 (package
11955 (name "python-loompy")
11956 (version "2.0.17")
11957 ;; The tarball on Pypi does not include the tests.
11958 (source (origin
11959 (method git-fetch)
11960 (uri (git-reference
11961 (url "https://github.com/linnarsson-lab/loompy.git")
11962 (commit version)))
11963 (file-name (git-file-name name version))
11964 (sha256
11965 (base32
11966 "12a5kjgiikapv93wahfw0frszx1lblnppyz3vs5gy8fgmgngra07"))))
11967 (build-system python-build-system)
11968 (arguments
11969 `(#:phases
11970 (modify-phases %standard-phases
11971 (replace 'check
11972 (lambda _
11973 (setenv "PYTHONPATH"
11974 (string-append (getcwd) ":"
11975 (getenv "PYTHONPATH")))
11976 (invoke "pytest" "tests")
11977 #t)))))
11978 (propagated-inputs
11979 `(("python-h5py" ,python-h5py)
11980 ("python-numpy" ,python-numpy)
11981 ("python-pandas" ,python-pandas)
11982 ("python-scipy" ,python-scipy)))
11983 (native-inputs
11984 `(("python-pytest" ,python-pytest)))
11985 (home-page "https://github.com/linnarsson-lab/loompy")
11986 (synopsis "Work with .loom files for single-cell RNA-seq data")
11987 (description "The loom file format is an efficient format for very large
11988 omics datasets, consisting of a main matrix, optional additional layers, a
11989 variable number of row and column annotations. Loom also supports sparse
11990 graphs. This library makes it easy to work with @file{.loom} files for
11991 single-cell RNA-seq data.")
11992 (license license:bsd-3)))
11993
11994 ;; pigx-scrnaseq does not work with the latest version of loompy.
11995 (define-public python-loompy-for-pigx-scrnaseq
11996 (package (inherit python-loompy)
11997 (name "python-loompy")
11998 (version "2.0.3")
11999 (source (origin
12000 (method git-fetch)
12001 (uri (git-reference
12002 (url "https://github.com/linnarsson-lab/loompy.git")
12003 (commit (string-append "v" version))))
12004 (file-name (git-file-name name version))
12005 (sha256
12006 (base32
12007 "0pjyl532pl8sbv71yci6h0agchn0naw2qjcwj50n6afrsahbsag3"))))
12008 ;; There are none.
12009 (arguments '(#:tests? #f))))
12010
12011 ;; We cannot use the latest commit because it requires Java 9.
12012 (define-public java-forester
12013 (let ((commit "86b07efe302d5094b42deed9260f719a4c4ac2e6")
12014 (revision "1"))
12015 (package
12016 (name "java-forester")
12017 (version (string-append "0-" revision "." (string-take commit 7)))
12018 (source (origin
12019 (method git-fetch)
12020 (uri (git-reference
12021 (url "https://github.com/cmzmasek/forester.git")
12022 (commit commit)))
12023 (file-name (string-append name "-" version "-checkout"))
12024 (sha256
12025 (base32
12026 "0vxavc1yrf84yrnf20dq26hi0lglidk8d382xrxsy4qmlbjd276z"))
12027 (modules '((guix build utils)))
12028 (snippet
12029 '(begin
12030 ;; Delete bundled jars and pre-built classes
12031 (delete-file-recursively "forester/java/resources")
12032 (delete-file-recursively "forester/java/classes")
12033 (for-each delete-file (find-files "forester/java/" "\\.jar$"))
12034 ;; Delete bundled applications
12035 (delete-file-recursively "forester_applications")
12036 #t))))
12037 (build-system ant-build-system)
12038 (arguments
12039 `(#:tests? #f ; there are none
12040 #:jdk ,icedtea-8
12041 #:modules ((guix build ant-build-system)
12042 (guix build utils)
12043 (guix build java-utils)
12044 (sxml simple)
12045 (sxml transform))
12046 #:phases
12047 (modify-phases %standard-phases
12048 (add-after 'unpack 'chdir
12049 (lambda _ (chdir "forester/java") #t))
12050 (add-after 'chdir 'fix-dependencies
12051 (lambda _
12052 (chmod "build.xml" #o664)
12053 (call-with-output-file "build.xml.new"
12054 (lambda (port)
12055 (sxml->xml
12056 (pre-post-order
12057 (with-input-from-file "build.xml"
12058 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12059 `(;; Remove all unjar tags to avoid repacking classes.
12060 (unjar . ,(lambda _ '()))
12061 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12062 (*text* . ,(lambda (_ txt) txt))))
12063 port)))
12064 (rename-file "build.xml.new" "build.xml")
12065 #t))
12066 ;; FIXME: itext is difficult to package as it depends on a few
12067 ;; unpackaged libraries.
12068 (add-after 'chdir 'remove-dependency-on-unpackaged-itext
12069 (lambda _
12070 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12071 (substitute* "src/org/forester/archaeopteryx/MainFrame.java"
12072 (("pdf_written_to = PdfExporter.*")
12073 "throw new IOException(\"PDF export is not available.\");"))
12074 #t))
12075 ;; There is no install target
12076 (replace 'install (install-jars ".")))))
12077 (propagated-inputs
12078 `(("java-commons-codec" ,java-commons-codec)
12079 ("java-openchart2" ,java-openchart2)))
12080 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12081 (synopsis "Phylogenomics libraries for Java")
12082 (description "Forester is a collection of Java libraries for
12083 phylogenomics and evolutionary biology research. It includes support for
12084 reading, writing, and exporting phylogenetic trees.")
12085 (license license:lgpl2.1+))))
12086
12087 (define-public java-forester-1.005
12088 (package
12089 (name "java-forester")
12090 (version "1.005")
12091 (source (origin
12092 (method url-fetch)
12093 (uri (string-append "http://search.maven.org/remotecontent?"
12094 "filepath=org/biojava/thirdparty/forester/"
12095 version "/forester-" version "-sources.jar"))
12096 (file-name (string-append name "-" version ".jar"))
12097 (sha256
12098 (base32
12099 "04r8qv4rk3p71z4ajrvp11py1z46qrx0047j3zzs79s6lnsm3lcv"))))
12100 (build-system ant-build-system)
12101 (arguments
12102 `(#:tests? #f ; there are none
12103 #:jdk ,icedtea-8
12104 #:modules ((guix build ant-build-system)
12105 (guix build utils)
12106 (guix build java-utils)
12107 (sxml simple)
12108 (sxml transform))
12109 #:phases
12110 (modify-phases %standard-phases
12111 (add-after 'unpack 'fix-dependencies
12112 (lambda* (#:key inputs #:allow-other-keys)
12113 (call-with-output-file "build.xml"
12114 (lambda (port)
12115 (sxml->xml
12116 (pre-post-order
12117 (with-input-from-file "src/build.xml"
12118 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12119 `(;; Remove all unjar tags to avoid repacking classes.
12120 (unjar . ,(lambda _ '()))
12121 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12122 (*text* . ,(lambda (_ txt) txt))))
12123 port)))
12124 (copy-file (assoc-ref inputs "synth_look_and_feel_1.xml")
12125 "synth_look_and_feel_1.xml")
12126 (copy-file (assoc-ref inputs "phyloxml.xsd")
12127 "phyloxml.xsd")
12128 (substitute* "build.xml"
12129 (("../resources/synth_laf/synth_look_and_feel_1.xml")
12130 "synth_look_and_feel_1.xml")
12131 (("../resources/phyloxml_schema/1.10/phyloxml.xsd")
12132 "phyloxml.xsd"))
12133 #t))
12134 ;; FIXME: itext is difficult to package as it depends on a few
12135 ;; unpackaged libraries.
12136 (add-after 'unpack 'remove-dependency-on-unpackaged-itext
12137 (lambda _
12138 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12139 (substitute* '("src/org/forester/archaeopteryx/MainFrame.java"
12140 "src/org/forester/archaeopteryx/MainFrameApplication.java")
12141 (("pdf_written_to = PdfExporter.*")
12142 "throw new IOException(\"PDF export is not available.\"); /*")
12143 ((".getPrintSizeX\\(\\), getOptions\\(\\).getPrintSizeY\\(\\) \\);") "*/")
12144 (("getCurrentTreePanel\\(\\).getHeight\\(\\) \\);") "*/"))
12145 #t))
12146 (add-after 'unpack 'delete-pre-built-classes
12147 (lambda _ (delete-file-recursively "src/classes") #t))
12148 ;; There is no install target
12149 (replace 'install (install-jars ".")))))
12150 (propagated-inputs
12151 `(("java-commons-codec" ,java-commons-codec)
12152 ("java-openchart2" ,java-openchart2)))
12153 ;; The source archive does not contain the resources.
12154 (native-inputs
12155 `(("phyloxml.xsd"
12156 ,(origin
12157 (method url-fetch)
12158 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12159 "b61cc2dcede0bede317db362472333115756b8c6/"
12160 "forester/resources/phyloxml_schema/1.10/phyloxml.xsd"))
12161 (file-name (string-append name "-phyloxml-" version ".xsd"))
12162 (sha256
12163 (base32
12164 "1zxc4m8sn4n389nqdnpxa8d0k17qnr3pm2y5y6g6vh4k0zm52npv"))))
12165 ("synth_look_and_feel_1.xml"
12166 ,(origin
12167 (method url-fetch)
12168 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12169 "29e04321615da6b35c1e15c60e52caf3f21d8e6a/"
12170 "forester/java/classes/resources/synth_look_and_feel_1.xml"))
12171 (file-name (string-append name "-synth-look-and-feel-" version ".xml"))
12172 (sha256
12173 (base32
12174 "1gv5602gv4k7y7713y75a4jvj7i9s7nildsbdl7n9q10sc2ikg8h"))))))
12175 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12176 (synopsis "Phylogenomics libraries for Java")
12177 (description "Forester is a collection of Java libraries for
12178 phylogenomics and evolutionary biology research. It includes support for
12179 reading, writing, and exporting phylogenetic trees.")
12180 (license license:lgpl2.1+)))
12181
12182 (define-public java-biojava-core
12183 (package
12184 (name "java-biojava-core")
12185 (version "4.2.11")
12186 (source (origin
12187 (method git-fetch)
12188 (uri (git-reference
12189 (url "https://github.com/biojava/biojava")
12190 (commit (string-append "biojava-" version))))
12191 (file-name (string-append name "-" version "-checkout"))
12192 (sha256
12193 (base32
12194 "1bvryh2bpsvash8ln79cmc9sqm8qw72hz4xzwqxcrjm8ssxszhqk"))))
12195 (build-system ant-build-system)
12196 (arguments
12197 `(#:jdk ,icedtea-8
12198 #:jar-name "biojava-core.jar"
12199 #:source-dir "biojava-core/src/main/java/"
12200 #:test-dir "biojava-core/src/test"
12201 ;; These tests seem to require internet access.
12202 #:test-exclude (list "**/SearchIOTest.java"
12203 "**/BlastXMLParserTest.java"
12204 "**/GenbankCookbookTest.java"
12205 "**/GenbankProxySequenceReaderTest.java")
12206 #:phases
12207 (modify-phases %standard-phases
12208 (add-before 'build 'copy-resources
12209 (lambda _
12210 (copy-recursively "biojava-core/src/main/resources"
12211 "build/classes")
12212 #t))
12213 (add-before 'check 'copy-test-resources
12214 (lambda _
12215 (copy-recursively "biojava-core/src/test/resources"
12216 "build/test-classes")
12217 #t)))))
12218 (propagated-inputs
12219 `(("java-log4j-api" ,java-log4j-api)
12220 ("java-log4j-core" ,java-log4j-core)
12221 ("java-slf4j-api" ,java-slf4j-api)
12222 ("java-slf4j-simple" ,java-slf4j-simple)))
12223 (native-inputs
12224 `(("java-junit" ,java-junit)
12225 ("java-hamcrest-core" ,java-hamcrest-core)))
12226 (home-page "http://biojava.org")
12227 (synopsis "Core libraries of Java framework for processing biological data")
12228 (description "BioJava is a project dedicated to providing a Java framework
12229 for processing biological data. It provides analytical and statistical
12230 routines, parsers for common file formats, reference implementations of
12231 popular algorithms, and allows the manipulation of sequences and 3D
12232 structures. The goal of the biojava project is to facilitate rapid
12233 application development for bioinformatics.
12234
12235 This package provides the core libraries.")
12236 (license license:lgpl2.1+)))
12237
12238 (define-public java-biojava-phylo
12239 (package (inherit java-biojava-core)
12240 (name "java-biojava-phylo")
12241 (build-system ant-build-system)
12242 (arguments
12243 `(#:jdk ,icedtea-8
12244 #:jar-name "biojava-phylo.jar"
12245 #:source-dir "biojava-phylo/src/main/java/"
12246 #:test-dir "biojava-phylo/src/test"
12247 #:phases
12248 (modify-phases %standard-phases
12249 (add-before 'build 'copy-resources
12250 (lambda _
12251 (copy-recursively "biojava-phylo/src/main/resources"
12252 "build/classes")
12253 #t))
12254 (add-before 'check 'copy-test-resources
12255 (lambda _
12256 (copy-recursively "biojava-phylo/src/test/resources"
12257 "build/test-classes")
12258 #t)))))
12259 (propagated-inputs
12260 `(("java-log4j-api" ,java-log4j-api)
12261 ("java-log4j-core" ,java-log4j-core)
12262 ("java-slf4j-api" ,java-slf4j-api)
12263 ("java-slf4j-simple" ,java-slf4j-simple)
12264 ("java-biojava-core" ,java-biojava-core)
12265 ("java-forester" ,java-forester)))
12266 (native-inputs
12267 `(("java-junit" ,java-junit)
12268 ("java-hamcrest-core" ,java-hamcrest-core)))
12269 (home-page "http://biojava.org")
12270 (synopsis "Biojava interface to the forester phylogenomics library")
12271 (description "The phylo module provides a biojava interface layer to the
12272 forester phylogenomics library for constructing phylogenetic trees.")))
12273
12274 (define-public java-biojava-alignment
12275 (package (inherit java-biojava-core)
12276 (name "java-biojava-alignment")
12277 (build-system ant-build-system)
12278 (arguments
12279 `(#:jdk ,icedtea-8
12280 #:jar-name "biojava-alignment.jar"
12281 #:source-dir "biojava-alignment/src/main/java/"
12282 #:test-dir "biojava-alignment/src/test"
12283 #:phases
12284 (modify-phases %standard-phases
12285 (add-before 'build 'copy-resources
12286 (lambda _
12287 (copy-recursively "biojava-alignment/src/main/resources"
12288 "build/classes")
12289 #t))
12290 (add-before 'check 'copy-test-resources
12291 (lambda _
12292 (copy-recursively "biojava-alignment/src/test/resources"
12293 "build/test-classes")
12294 #t)))))
12295 (propagated-inputs
12296 `(("java-log4j-api" ,java-log4j-api)
12297 ("java-log4j-core" ,java-log4j-core)
12298 ("java-slf4j-api" ,java-slf4j-api)
12299 ("java-slf4j-simple" ,java-slf4j-simple)
12300 ("java-biojava-core" ,java-biojava-core)
12301 ("java-biojava-phylo" ,java-biojava-phylo)
12302 ("java-forester" ,java-forester)))
12303 (native-inputs
12304 `(("java-junit" ,java-junit)
12305 ("java-hamcrest-core" ,java-hamcrest-core)))
12306 (home-page "http://biojava.org")
12307 (synopsis "Biojava API for genetic sequence alignment")
12308 (description "The alignment module of BioJava provides an API that
12309 contains
12310
12311 @itemize
12312 @item implementations of dynamic programming algorithms for sequence
12313 alignment;
12314 @item reading and writing of popular alignment file formats;
12315 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12316 @end itemize\n")))
12317
12318 (define-public java-biojava-core-4.0
12319 (package (inherit java-biojava-core)
12320 (name "java-biojava-core")
12321 (version "4.0.0")
12322 (source (origin
12323 (method git-fetch)
12324 (uri (git-reference
12325 (url "https://github.com/biojava/biojava")
12326 (commit (string-append "biojava-" version))))
12327 (file-name (string-append name "-" version "-checkout"))
12328 (sha256
12329 (base32
12330 "13675f6y9aqi7bi2lk3s1z7a22ynccjiqwa8izh7p97xi9wsfmd8"))))))
12331
12332 (define-public java-biojava-phylo-4.0
12333 (package (inherit java-biojava-core-4.0)
12334 (name "java-biojava-phylo")
12335 (build-system ant-build-system)
12336 (arguments
12337 `(#:jdk ,icedtea-8
12338 #:jar-name "biojava-phylo.jar"
12339 #:source-dir "biojava-phylo/src/main/java/"
12340 #:test-dir "biojava-phylo/src/test"
12341 #:phases
12342 (modify-phases %standard-phases
12343 (add-before 'build 'copy-resources
12344 (lambda _
12345 (copy-recursively "biojava-phylo/src/main/resources"
12346 "build/classes")
12347 #t))
12348 (add-before 'check 'copy-test-resources
12349 (lambda _
12350 (copy-recursively "biojava-phylo/src/test/resources"
12351 "build/test-classes")
12352 #t)))))
12353 (propagated-inputs
12354 `(("java-log4j-api" ,java-log4j-api)
12355 ("java-log4j-core" ,java-log4j-core)
12356 ("java-slf4j-api" ,java-slf4j-api)
12357 ("java-slf4j-simple" ,java-slf4j-simple)
12358 ("java-biojava-core" ,java-biojava-core-4.0)
12359 ("java-forester" ,java-forester-1.005)))
12360 (native-inputs
12361 `(("java-junit" ,java-junit)
12362 ("java-hamcrest-core" ,java-hamcrest-core)))
12363 (home-page "http://biojava.org")
12364 (synopsis "Biojava interface to the forester phylogenomics library")
12365 (description "The phylo module provides a biojava interface layer to the
12366 forester phylogenomics library for constructing phylogenetic trees.")))
12367
12368 (define-public java-biojava-alignment-4.0
12369 (package (inherit java-biojava-core-4.0)
12370 (name "java-biojava-alignment")
12371 (build-system ant-build-system)
12372 (arguments
12373 `(#:jdk ,icedtea-8
12374 #:jar-name "biojava-alignment.jar"
12375 #:source-dir "biojava-alignment/src/main/java/"
12376 #:test-dir "biojava-alignment/src/test"
12377 #:phases
12378 (modify-phases %standard-phases
12379 (add-before 'build 'copy-resources
12380 (lambda _
12381 (copy-recursively "biojava-alignment/src/main/resources"
12382 "build/classes")
12383 #t))
12384 (add-before 'check 'copy-test-resources
12385 (lambda _
12386 (copy-recursively "biojava-alignment/src/test/resources"
12387 "build/test-classes")
12388 #t)))))
12389 (propagated-inputs
12390 `(("java-log4j-api" ,java-log4j-api)
12391 ("java-log4j-core" ,java-log4j-core)
12392 ("java-slf4j-api" ,java-slf4j-api)
12393 ("java-slf4j-simple" ,java-slf4j-simple)
12394 ("java-biojava-core" ,java-biojava-core-4.0)
12395 ("java-biojava-phylo" ,java-biojava-phylo-4.0)
12396 ("java-forester" ,java-forester-1.005)))
12397 (native-inputs
12398 `(("java-junit" ,java-junit)
12399 ("java-hamcrest-core" ,java-hamcrest-core)))
12400 (home-page "http://biojava.org")
12401 (synopsis "Biojava API for genetic sequence alignment")
12402 (description "The alignment module of BioJava provides an API that
12403 contains
12404
12405 @itemize
12406 @item implementations of dynamic programming algorithms for sequence
12407 alignment;
12408 @item reading and writing of popular alignment file formats;
12409 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12410 @end itemize\n")))
12411
12412 (define-public dropseq-tools
12413 (package
12414 (name "dropseq-tools")
12415 (version "1.13")
12416 (source
12417 (origin
12418 (method url-fetch)
12419 (uri "http://mccarrolllab.com/download/1276/")
12420 (file-name (string-append "dropseq-tools-" version ".zip"))
12421 (sha256
12422 (base32
12423 "0yrffckxqk5l8b5xb6z4laq157zd9mdypr2p4b4vq2bhjzi1sj0s"))
12424 ;; Delete bundled libraries
12425 (modules '((guix build utils)))
12426 (snippet
12427 '(begin
12428 (for-each delete-file (find-files "jar/lib" "\\.jar$"))
12429 (delete-file-recursively "3rdParty")
12430 #t))))
12431 (build-system ant-build-system)
12432 (arguments
12433 `(#:tests? #f ; test data are not included
12434 #:test-target "test"
12435 #:build-target "all"
12436 #:source-dir "public/src/"
12437 #:jdk ,icedtea-8
12438 #:make-flags
12439 (list (string-append "-Dpicard.executable.dir="
12440 (assoc-ref %build-inputs "java-picard")
12441 "/share/java/"))
12442 #:modules ((ice-9 match)
12443 (srfi srfi-1)
12444 (guix build utils)
12445 (guix build java-utils)
12446 (guix build ant-build-system))
12447 #:phases
12448 (modify-phases %standard-phases
12449 ;; FIXME: fails with "java.io.FileNotFoundException:
12450 ;; /gnu/store/…-dropseq-tools-1.13/share/java/lib/biojava-alignment.jar"
12451 (delete 'generate-jar-indices)
12452 ;; All dependencies must be linked to "lib", because that's where
12453 ;; they will be searched for when the Class-Path property of the
12454 ;; manifest is computed.
12455 (add-after 'unpack 'record-references
12456 (lambda* (#:key inputs #:allow-other-keys)
12457 (mkdir-p "jar/lib")
12458 (let ((dirs (filter-map (match-lambda
12459 ((name . dir)
12460 (if (and (string-prefix? "java-" name)
12461 (not (string=? name "java-testng")))
12462 dir #f)))
12463 inputs)))
12464 (for-each (lambda (jar)
12465 (symlink jar (string-append "jar/lib/" (basename jar))))
12466 (append-map (lambda (dir) (find-files dir "\\.jar$"))
12467 dirs)))
12468 #t))
12469 ;; There is no installation target
12470 (replace 'install
12471 (lambda* (#:key inputs outputs #:allow-other-keys)
12472 (let* ((out (assoc-ref outputs "out"))
12473 (bin (string-append out "/bin"))
12474 (share (string-append out "/share/java/"))
12475 (lib (string-append share "/lib/"))
12476 (scripts (list "BAMTagHistogram"
12477 "BAMTagofTagCounts"
12478 "BaseDistributionAtReadPosition"
12479 "CollapseBarcodesInPlace"
12480 "CollapseTagWithContext"
12481 "ConvertToRefFlat"
12482 "CreateIntervalsFiles"
12483 "DetectBeadSynthesisErrors"
12484 "DigitalExpression"
12485 "Drop-seq_alignment.sh"
12486 "FilterBAM"
12487 "FilterBAMByTag"
12488 "GatherGeneGCLength"
12489 "GatherMolecularBarcodeDistributionByGene"
12490 "GatherReadQualityMetrics"
12491 "PolyATrimmer"
12492 "ReduceGTF"
12493 "SelectCellsByNumTranscripts"
12494 "SingleCellRnaSeqMetricsCollector"
12495 "TagBamWithReadSequenceExtended"
12496 "TagReadWithGeneExon"
12497 "TagReadWithInterval"
12498 "TrimStartingSequence"
12499 "ValidateReference")))
12500 (for-each mkdir-p (list bin share lib))
12501 (install-file "dist/dropseq.jar" share)
12502 (for-each (lambda (script)
12503 (chmod script #o555)
12504 (install-file script bin))
12505 scripts)
12506 (substitute* (map (lambda (script)
12507 (string-append bin "/" script))
12508 scripts)
12509 (("^java") (which "java"))
12510 (("jar_deploy_dir=.*")
12511 (string-append "jar_deploy_dir=" share "\n"))))
12512 #t))
12513 ;; FIXME: We do this after stripping jars because we don't want it to
12514 ;; copy all these jars and strip them. We only want to install
12515 ;; links. Arguably, this is a problem with the ant-build-system.
12516 (add-after 'strip-jar-timestamps 'install-links
12517 (lambda* (#:key outputs #:allow-other-keys)
12518 (let* ((out (assoc-ref outputs "out"))
12519 (share (string-append out "/share/java/"))
12520 (lib (string-append share "/lib/")))
12521 (for-each (lambda (jar)
12522 (symlink (readlink jar)
12523 (string-append lib (basename jar))))
12524 (find-files "jar/lib" "\\.jar$")))
12525 #t)))))
12526 (inputs
12527 `(("jdk" ,icedtea-8)
12528 ("java-picard" ,java-picard-2.10.3)
12529 ("java-log4j-1.2-api" ,java-log4j-1.2-api)
12530 ("java-commons-math3" ,java-commons-math3)
12531 ("java-commons-jexl2" ,java-commons-jexl-2)
12532 ("java-commons-collections4" ,java-commons-collections4)
12533 ("java-commons-lang2" ,java-commons-lang)
12534 ("java-commons-io" ,java-commons-io)
12535 ("java-snappy-1.0.3-rc3" ,java-snappy-1)
12536 ("java-guava" ,java-guava)
12537 ("java-la4j" ,java-la4j)
12538 ("java-biojava-core" ,java-biojava-core-4.0)
12539 ("java-biojava-alignment" ,java-biojava-alignment-4.0)
12540 ("java-jdistlib" ,java-jdistlib)
12541 ("java-simple-xml" ,java-simple-xml)
12542 ("java-snakeyaml" ,java-snakeyaml)))
12543 (native-inputs
12544 `(("unzip" ,unzip)
12545 ("java-testng" ,java-testng)))
12546 (home-page "http://mccarrolllab.com/dropseq/")
12547 (synopsis "Tools for Drop-seq analyses")
12548 (description "Drop-seq is a technology to enable biologists to
12549 analyze RNA expression genome-wide in thousands of individual cells at
12550 once. This package provides tools to perform Drop-seq analyses.")
12551 (license license:expat)))
12552
12553 (define-public pigx-rnaseq
12554 (package
12555 (name "pigx-rnaseq")
12556 (version "0.0.10")
12557 (source (origin
12558 (method url-fetch)
12559 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_rnaseq/"
12560 "releases/download/v" version
12561 "/pigx_rnaseq-" version ".tar.gz"))
12562 (sha256
12563 (base32
12564 "0z3hr120wk2vrlmlpz1vp3n9wy3rq4y2mnzh2vf08qgqn2xfdwcw"))))
12565 (build-system gnu-build-system)
12566 (arguments
12567 `(#:parallel-tests? #f ; not supported
12568 #:phases
12569 (modify-phases %standard-phases
12570 ;; "test.sh" runs STAR, which requires excessive amounts of memory.
12571 (add-after 'unpack 'disable-resource-intensive-test
12572 (lambda _
12573 (substitute* "Makefile.in"
12574 (("(^ tests/test_trim_galore/test.sh).*" _ m) m)
12575 (("^ tests/test_multiqc/test.sh") "")
12576 (("^ test.sh") ""))
12577 #t)))))
12578 (inputs
12579 `(("coreutils" ,coreutils)
12580 ("sed" ,sed)
12581 ("gzip" ,gzip)
12582 ("snakemake" ,snakemake)
12583 ("fastqc" ,fastqc)
12584 ("multiqc" ,multiqc)
12585 ("star" ,star)
12586 ("trim-galore" ,trim-galore)
12587 ("htseq" ,htseq)
12588 ("samtools" ,samtools)
12589 ("r-minimal" ,r-minimal)
12590 ("r-rmarkdown" ,r-rmarkdown)
12591 ("r-ggplot2" ,r-ggplot2)
12592 ("r-ggrepel" ,r-ggrepel)
12593 ("r-gprofiler" ,r-gprofiler)
12594 ("r-deseq2" ,r-deseq2)
12595 ("r-dt" ,r-dt)
12596 ("r-knitr" ,r-knitr)
12597 ("r-pheatmap" ,r-pheatmap)
12598 ("r-corrplot" ,r-corrplot)
12599 ("r-reshape2" ,r-reshape2)
12600 ("r-plotly" ,r-plotly)
12601 ("r-scales" ,r-scales)
12602 ("r-summarizedexperiment" ,r-summarizedexperiment)
12603 ("r-crosstalk" ,r-crosstalk)
12604 ("r-tximport" ,r-tximport)
12605 ("r-rtracklayer" ,r-rtracklayer)
12606 ("r-rjson" ,r-rjson)
12607 ("salmon" ,salmon)
12608 ("ghc-pandoc" ,ghc-pandoc)
12609 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12610 ("python-wrapper" ,python-wrapper)
12611 ("python-pyyaml" ,python-pyyaml)))
12612 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12613 (synopsis "Analysis pipeline for RNA sequencing experiments")
12614 (description "PiGX RNAseq is an analysis pipeline for preprocessing and
12615 reporting for RNA sequencing experiments. It is easy to use and produces high
12616 quality reports. The inputs are reads files from the sequencing experiment,
12617 and a configuration file which describes the experiment. In addition to
12618 quality control of the experiment, the pipeline produces a differential
12619 expression report comparing samples in an easily configurable manner.")
12620 (license license:gpl3+)))
12621
12622 (define-public pigx-chipseq
12623 (package
12624 (name "pigx-chipseq")
12625 (version "0.0.41")
12626 (source (origin
12627 (method url-fetch)
12628 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_chipseq/"
12629 "releases/download/v" version
12630 "/pigx_chipseq-" version ".tar.gz"))
12631 (sha256
12632 (base32
12633 "0akbxdmsjsq5fzbwaap04hqjpsfgv1l6yrc2pwgbya1xgqvcq6vy"))))
12634 (build-system gnu-build-system)
12635 ;; parts of the tests rely on access to the network
12636 (arguments '(#:tests? #f))
12637 (inputs
12638 `(("grep" ,grep)
12639 ("coreutils" ,coreutils)
12640 ("r-minimal" ,r-minimal)
12641 ("r-argparser" ,r-argparser)
12642 ("r-biocparallel" ,r-biocparallel)
12643 ("r-biostrings" ,r-biostrings)
12644 ("r-chipseq" ,r-chipseq)
12645 ("r-data-table" ,r-data-table)
12646 ("r-dplyr" ,r-dplyr)
12647 ("r-genomation" ,r-genomation)
12648 ("r-genomicalignments" ,r-genomicalignments)
12649 ("r-genomicranges" ,r-genomicranges)
12650 ("r-rsamtools" ,r-rsamtools)
12651 ("r-rtracklayer" ,r-rtracklayer)
12652 ("r-s4vectors" ,r-s4vectors)
12653 ("r-stringr" ,r-stringr)
12654 ("r-tibble" ,r-tibble)
12655 ("r-tidyr" ,r-tidyr)
12656 ("r-jsonlite" ,r-jsonlite)
12657 ("r-heatmaply" ,r-heatmaply)
12658 ("r-htmlwidgets" ,r-htmlwidgets)
12659 ("r-ggplot2" ,r-ggplot2)
12660 ("r-plotly" ,r-plotly)
12661 ("r-rmarkdown" ,r-rmarkdown)
12662 ("python-wrapper" ,python-wrapper)
12663 ("python-pyyaml" ,python-pyyaml)
12664 ("python-magic" ,python-magic)
12665 ("python-xlrd" ,python-xlrd)
12666 ("trim-galore" ,trim-galore)
12667 ("macs" ,macs)
12668 ("multiqc" ,multiqc)
12669 ("perl" ,perl)
12670 ("ghc-pandoc" ,ghc-pandoc)
12671 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12672 ("fastqc" ,fastqc)
12673 ("bowtie" ,bowtie)
12674 ("idr" ,idr)
12675 ("snakemake" ,snakemake)
12676 ("samtools" ,samtools)
12677 ("bedtools" ,bedtools)
12678 ("kentutils" ,kentutils)))
12679 (native-inputs
12680 `(("python-pytest" ,python-pytest)))
12681 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12682 (synopsis "Analysis pipeline for ChIP sequencing experiments")
12683 (description "PiGX ChIPseq is an analysis pipeline for preprocessing, peak
12684 calling and reporting for ChIP sequencing experiments. It is easy to use and
12685 produces high quality reports. The inputs are reads files from the sequencing
12686 experiment, and a configuration file which describes the experiment. In
12687 addition to quality control of the experiment, the pipeline enables to set up
12688 multiple peak calling analysis and allows the generation of a UCSC track hub
12689 in an easily configurable manner.")
12690 (license license:gpl3+)))
12691
12692 (define-public pigx-bsseq
12693 (package
12694 (name "pigx-bsseq")
12695 (version "0.0.10")
12696 (source (origin
12697 (method url-fetch)
12698 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_bsseq/"
12699 "releases/download/v" version
12700 "/pigx_bsseq-" version ".tar.gz"))
12701 (sha256
12702 (base32
12703 "0l97wvkq4diq8lcarraj33bby1zzf0w804jwi8mlc5qddp8idwhy"))))
12704 (build-system gnu-build-system)
12705 (arguments
12706 `(#:phases
12707 (modify-phases %standard-phases
12708 (add-before 'check 'set-timezone
12709 ;; The readr package is picky about timezones.
12710 (lambda* (#:key inputs #:allow-other-keys)
12711 (setenv "TZ" "UTC+1")
12712 (setenv "TZDIR"
12713 (string-append (assoc-ref inputs "tzdata")
12714 "/share/zoneinfo"))
12715 #t)))))
12716 (native-inputs
12717 `(("tzdata" ,tzdata)))
12718 (inputs
12719 `(("coreutils" ,coreutils)
12720 ("sed" ,sed)
12721 ("grep" ,grep)
12722 ("r-minimal" ,r-minimal)
12723 ("r-annotationhub" ,r-annotationhub)
12724 ("r-dt" ,r-dt)
12725 ("r-genomation" ,r-genomation)
12726 ("r-methylkit" ,r-methylkit)
12727 ("r-rtracklayer" ,r-rtracklayer)
12728 ("r-rmarkdown" ,r-rmarkdown)
12729 ("r-bookdown" ,r-bookdown)
12730 ("r-ggplot2" ,r-ggplot2)
12731 ("r-ggbio" ,r-ggbio)
12732 ("ghc-pandoc" ,ghc-pandoc)
12733 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12734 ("python-wrapper" ,python-wrapper)
12735 ("python-pyyaml" ,python-pyyaml)
12736 ("snakemake" ,snakemake)
12737 ("bismark" ,bismark)
12738 ("fastqc" ,fastqc)
12739 ("bowtie" ,bowtie)
12740 ("trim-galore" ,trim-galore)
12741 ("cutadapt" ,cutadapt)
12742 ("samtools" ,samtools)))
12743 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12744 (synopsis "Bisulfite sequencing pipeline from fastq to methylation reports")
12745 (description "PiGx BSseq is a data processing pipeline for raw fastq read
12746 data of bisulfite experiments; it produces reports on aggregate methylation
12747 and coverage and can be used to produce information on differential
12748 methylation and segmentation.")
12749 (license license:gpl3+)))
12750
12751 (define-public pigx-scrnaseq
12752 (package
12753 (name "pigx-scrnaseq")
12754 (version "0.0.8")
12755 (source (origin
12756 (method url-fetch)
12757 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_scrnaseq/"
12758 "releases/download/v" version
12759 "/pigx_scrnaseq-" version ".tar.gz"))
12760 (sha256
12761 (base32
12762 "0zv0sc5amivxhb95vx2gfx6l9bh7n80fh7h47dalnwxxnfvnzai4"))))
12763 (build-system gnu-build-system)
12764 (arguments
12765 `(#:configure-flags
12766 (list (string-append "PICARDJAR=" (assoc-ref %build-inputs "java-picard")
12767 "/share/java/picard.jar")
12768 (string-append "DROPSEQJAR=" (assoc-ref %build-inputs "dropseq-tools")
12769 "/share/java/dropseq.jar"))))
12770 (inputs
12771 `(("coreutils" ,coreutils)
12772 ("perl" ,perl)
12773 ("dropseq-tools" ,dropseq-tools)
12774 ("fastqc" ,fastqc)
12775 ("java-picard" ,java-picard-2.10.3) ; same as for dropseq
12776 ("java" ,icedtea-8)
12777 ("python-wrapper" ,python-wrapper)
12778 ("python-pyyaml" ,python-pyyaml)
12779 ("python-pandas" ,python-pandas)
12780 ("python-magic" ,python-magic)
12781 ("python-numpy" ,python-numpy)
12782 ("python-loompy" ,python-loompy-for-pigx-scrnaseq)
12783 ("ghc-pandoc" ,ghc-pandoc)
12784 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12785 ("samtools" ,samtools)
12786 ("snakemake" ,snakemake)
12787 ("star" ,star)
12788 ("r-minimal" ,r-minimal)
12789 ("r-argparser" ,r-argparser)
12790 ("r-cowplot" ,r-cowplot)
12791 ("r-data-table" ,r-data-table)
12792 ("r-delayedarray" ,r-delayedarray)
12793 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
12794 ("r-dplyr" ,r-dplyr)
12795 ("r-dropbead" ,r-dropbead)
12796 ("r-dt" ,r-dt)
12797 ("r-genomicalignments" ,r-genomicalignments)
12798 ("r-genomicfiles" ,r-genomicfiles)
12799 ("r-genomicranges" ,r-genomicranges)
12800 ("r-ggplot2" ,r-ggplot2)
12801 ("r-hdf5array" ,r-hdf5array)
12802 ("r-pheatmap" ,r-pheatmap)
12803 ("r-rmarkdown" ,r-rmarkdown)
12804 ("r-rsamtools" ,r-rsamtools)
12805 ("r-rtracklayer" ,r-rtracklayer)
12806 ("r-rtsne" ,r-rtsne)
12807 ("r-scater" ,r-scater)
12808 ("r-scran" ,r-scran)
12809 ("r-singlecellexperiment" ,r-singlecellexperiment)
12810 ("r-stringr" ,r-stringr)
12811 ("r-yaml" ,r-yaml)))
12812 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12813 (synopsis "Analysis pipeline for single-cell RNA sequencing experiments")
12814 (description "PiGX scRNAseq is an analysis pipeline for preprocessing and
12815 quality control for single cell RNA sequencing experiments. The inputs are
12816 read files from the sequencing experiment, and a configuration file which
12817 describes the experiment. It produces processed files for downstream analysis
12818 and interactive quality reports. The pipeline is designed to work with UMI
12819 based methods.")
12820 (license license:gpl3+)))
12821
12822 (define-public pigx
12823 (package
12824 (name "pigx")
12825 (version "0.0.3")
12826 (source (origin
12827 (method url-fetch)
12828 (uri (string-append "https://github.com/BIMSBbioinfo/pigx/"
12829 "releases/download/v" version
12830 "/pigx-" version ".tar.gz"))
12831 (sha256
12832 (base32
12833 "1i5njdy1clj5ncw45d16p7mwmqvb1ilikl9n797pxklc3f4s7mq7"))))
12834 (build-system gnu-build-system)
12835 (inputs
12836 `(("python" ,python)
12837 ("pigx-bsseq" ,pigx-bsseq)
12838 ("pigx-chipseq" ,pigx-chipseq)
12839 ("pigx-rnaseq" ,pigx-rnaseq)
12840 ("pigx-scrnaseq" ,pigx-scrnaseq)))
12841 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12842 (synopsis "Analysis pipelines for genomics")
12843 (description "PiGx is a collection of genomics pipelines. It includes the
12844 following pipelines:
12845
12846 @itemize
12847 @item PiGx BSseq for raw fastq read data of bisulfite experiments
12848 @item PiGx RNAseq for RNAseq samples
12849 @item PiGx scRNAseq for single cell dropseq analysis
12850 @item PiGx ChIPseq for reads from ChIPseq experiments
12851 @end itemize
12852
12853 All pipelines are easily configured with a simple sample sheet and a
12854 descriptive settings file. The result is a set of comprehensive, interactive
12855 HTML reports with interesting findings about your samples.")
12856 (license license:gpl3+)))
12857
12858 (define-public genrich
12859 (package
12860 (name "genrich")
12861 (version "0.5")
12862 (source (origin
12863 (method git-fetch)
12864 (uri (git-reference
12865 (url "https://github.com/jsh58/Genrich.git")
12866 (commit (string-append "v" version))))
12867 (file-name (git-file-name name version))
12868 (sha256
12869 (base32
12870 "0x0q6z0208n3cxzqjla4rgjqpyqgwpmz27852lcvzkzaigymq4zp"))))
12871 (build-system gnu-build-system)
12872 (arguments
12873 `(#:tests? #f ; there are none
12874 #:phases
12875 (modify-phases %standard-phases
12876 (delete 'configure)
12877 (replace 'install
12878 (lambda* (#:key outputs #:allow-other-keys)
12879 (install-file "Genrich" (string-append (assoc-ref outputs "out") "/bin"))
12880 #t)))))
12881 (inputs
12882 `(("zlib" ,zlib)))
12883 (home-page "https://github.com/jsh58/Genrich")
12884 (synopsis "Detecting sites of genomic enrichment")
12885 (description "Genrich is a peak-caller for genomic enrichment
12886 assays (e.g. ChIP-seq, ATAC-seq). It analyzes alignment files generated
12887 following the assay and produces a file detailing peaks of significant
12888 enrichment.")
12889 (license license:expat)))
12890
12891 (define-public mantis
12892 (let ((commit "4ffd171632c2cb0056a86d709dfd2bf21bc69b84")
12893 (revision "1"))
12894 (package
12895 (name "mantis")
12896 (version (git-version "0" revision commit))
12897 (source (origin
12898 (method git-fetch)
12899 (uri (git-reference
12900 (url "https://github.com/splatlab/mantis.git")
12901 (commit commit)))
12902 (file-name (git-file-name name version))
12903 (sha256
12904 (base32
12905 "0iqbr0dhmlc8mzpirmm2s4pkzkwdgrcx50yx6cv3wlr2qi064p55"))))
12906 (build-system cmake-build-system)
12907 (arguments '(#:tests? #f)) ; there are none
12908 (inputs
12909 `(("sdsl-lite" ,sdsl-lite)
12910 ("openssl" ,openssl)
12911 ("zlib" ,zlib)))
12912 (home-page "https://github.com/splatlab/mantis")
12913 (synopsis "Large-scale sequence-search index data structure")
12914 (description "Mantis is a space-efficient data structure that can be
12915 used to index thousands of raw-read genomics experiments and facilitate
12916 large-scale sequence searches on those experiments. Mantis uses counting
12917 quotient filters instead of Bloom filters, enabling rapid index builds and
12918 queries, small indexes, and exact results, i.e., no false positives or
12919 negatives. Furthermore, Mantis is also a colored de Bruijn graph
12920 representation, so it supports fast graph traversal and other topological
12921 analyses in addition to large-scale sequence-level searches.")
12922 ;; uses __uint128_t and inline assembly
12923 (supported-systems '("x86_64-linux"))
12924 (license license:bsd-3))))
12925
12926 (define-public r-diversitree
12927 (package
12928 (name "r-diversitree")
12929 (version "0.9-11")
12930 (source
12931 (origin
12932 (method url-fetch)
12933 (uri (cran-uri "diversitree" version))
12934 (sha256
12935 (base32
12936 "1jqfjmmaigq581l4zxysmkhld0xv6izlbr1hihf9zplkix36majc"))))
12937 (build-system r-build-system)
12938 (native-inputs
12939 `(("gfortran" ,gfortran)))
12940 (inputs `(("fftw" ,fftw) ("gsl" ,gsl)))
12941 (propagated-inputs
12942 `(("r-ape" ,r-ape)
12943 ("r-desolve" ,r-desolve)
12944 ("r-rcpp" ,r-rcpp)
12945 ("r-subplex" ,r-subplex)))
12946 (home-page "https://www.zoology.ubc.ca/prog/diversitree")
12947 (synopsis "Comparative 'phylogenetic' analyses of diversification")
12948 (description "This package contains a number of comparative \"phylogenetic\"
12949 methods, mostly focusing on analysing diversification and character evolution.
12950 Contains implementations of \"BiSSE\" (Binary State Speciation and Extinction)
12951 and its unresolved tree extensions, \"MuSSE\" (Multiple State Speciation and
12952 Extinction), \"QuaSSE\", \"GeoSSE\", and \"BiSSE-ness\" Other included methods
12953 include Markov models of discrete and continuous trait evolution and constant
12954 rate speciation and extinction.")
12955 (license license:gpl2+)))
12956
12957 (define-public sjcount
12958 ;; There is no tag for version 3.2, nor is there a release archive.
12959 (let ((commit "292d3917cadb3f6834c81e509c30e61cd7ead6e5")
12960 (revision "1"))
12961 (package
12962 (name "sjcount")
12963 (version (git-version "3.2" revision commit))
12964 (source (origin
12965 (method git-fetch)
12966 (uri (git-reference
12967 (url "https://github.com/pervouchine/sjcount-full.git")
12968 (commit commit)))
12969 (file-name (string-append name "-" version "-checkout"))
12970 (sha256
12971 (base32
12972 "0gdgj35j249f04rqgq8ymcc1xg1vi9kzbajnjqpaq2wpbh8bl234"))))
12973 (build-system gnu-build-system)
12974 (arguments
12975 `(#:tests? #f ; requires a 1.4G test file
12976 #:make-flags
12977 (list (string-append "SAMTOOLS_DIR="
12978 (assoc-ref %build-inputs "samtools")
12979 "/lib/"))
12980 #:phases
12981 (modify-phases %standard-phases
12982 (replace 'configure
12983 (lambda* (#:key inputs #:allow-other-keys)
12984 (substitute* "makefile"
12985 (("-I \\$\\{SAMTOOLS_DIR\\}")
12986 (string-append "-I" (assoc-ref inputs "samtools")
12987 "/include/samtools"))
12988 (("-lz ") "-lz -lpthread "))
12989 #t))
12990 (replace 'install
12991 (lambda* (#:key outputs #:allow-other-keys)
12992 (for-each (lambda (tool)
12993 (install-file tool
12994 (string-append (assoc-ref outputs "out")
12995 "/bin")))
12996 '("j_count" "b_count" "sjcount"))
12997 #t)))))
12998 (inputs
12999 `(("samtools" ,samtools-0.1)
13000 ("zlib" ,zlib)))
13001 (home-page "https://github.com/pervouchine/sjcount-full/")
13002 (synopsis "Annotation-agnostic splice junction counting pipeline")
13003 (description "Sjcount is a utility for fast quantification of splice
13004 junctions in RNA-seq data. It is annotation-agnostic and offset-aware. This
13005 version does count multisplits.")
13006 (license license:gpl3+))))
13007
13008 (define-public minimap2
13009 (package
13010 (name "minimap2")
13011 (version "2.10")
13012 (source
13013 (origin
13014 (method url-fetch)
13015 (uri (string-append "https://github.com/lh3/minimap2/"
13016 "releases/download/v" version "/"
13017 "minimap2-" version ".tar.bz2"))
13018 (sha256
13019 (base32
13020 "080w9066irkbhbyr4nmf19pzkdd2s4v31hpzlajgq2y0drr6zcsj"))))
13021 (build-system gnu-build-system)
13022 (arguments
13023 `(#:tests? #f ; there are none
13024 #:make-flags
13025 (list "CC=gcc"
13026 (let ((system ,(or (%current-target-system)
13027 (%current-system))))
13028 (cond
13029 ((string-prefix? "x86_64" system)
13030 "all")
13031 ((or (string-prefix? "armhf" system)
13032 (string-prefix? "aarch64" system))
13033 "arm_neon=1")
13034 (_ "sse2only=1"))))
13035 #:phases
13036 (modify-phases %standard-phases
13037 (delete 'configure)
13038 (replace 'install
13039 (lambda* (#:key outputs #:allow-other-keys)
13040 (let* ((out (assoc-ref outputs "out"))
13041 (bin (string-append out "/bin"))
13042 (man (string-append out "/share/man/man1")))
13043 (install-file "minimap2" bin)
13044 (mkdir-p man)
13045 (install-file "minimap2.1" man))
13046 #t)))))
13047 (inputs
13048 `(("zlib" ,zlib)))
13049 (home-page "https://lh3.github.io/minimap2/")
13050 (synopsis "Pairwise aligner for genomic and spliced nucleotide sequences")
13051 (description "Minimap2 is a versatile sequence alignment program that
13052 aligns DNA or mRNA sequences against a large reference database. Typical use
13053 cases include:
13054
13055 @enumerate
13056 @item mapping PacBio or Oxford Nanopore genomic reads to the human genome;
13057 @item finding overlaps between long reads with error rate up to ~15%;
13058 @item splice-aware alignment of PacBio Iso-Seq or Nanopore cDNA or Direct RNA
13059 reads against a reference genome;
13060 @item aligning Illumina single- or paired-end reads;
13061 @item assembly-to-assembly alignment;
13062 @item full-genome alignment between two closely related species with
13063 divergence below ~15%.
13064 @end enumerate\n")
13065 (license license:expat)))
13066
13067 (define-public r-circus
13068 (package
13069 (name "r-circus")
13070 (version "0.1.5")
13071 (source
13072 (origin
13073 (method git-fetch)
13074 (uri (git-reference
13075 (url "https://github.com/BIMSBbioinfo/ciRcus.git")
13076 (commit (string-append "v" version))))
13077 (file-name (git-file-name name version))
13078 (sha256
13079 (base32
13080 "0jhjn3ilb057hbf6yzrihj13ifxxs32y7nkby8l3lkm28dg4p97h"))))
13081 (build-system r-build-system)
13082 (propagated-inputs
13083 `(("r-annotationdbi" ,r-annotationdbi)
13084 ("r-annotationhub" ,r-annotationhub)
13085 ("r-biomart" ,r-biomart)
13086 ("r-data-table" ,r-data-table)
13087 ("r-dbi" ,r-dbi)
13088 ("r-genomicfeatures" ,r-genomicfeatures)
13089 ("r-genomicranges" ,r-genomicranges)
13090 ("r-ggplot2" ,r-ggplot2)
13091 ("r-hash" ,r-hash)
13092 ("r-iranges" ,r-iranges)
13093 ("r-rcolorbrewer" ,r-rcolorbrewer)
13094 ("r-rmysql" ,r-rmysql)
13095 ("r-s4vectors" ,r-s4vectors)
13096 ("r-stringr" ,r-stringr)
13097 ("r-summarizedexperiment" ,r-summarizedexperiment)))
13098 (native-inputs
13099 `(("r-knitr" ,r-knitr)))
13100 (home-page "https://github.com/BIMSBbioinfo/ciRcus")
13101 (synopsis "Annotation, analysis and visualization of circRNA data")
13102 (description "Circus is an R package for annotation, analysis and
13103 visualization of circRNA data. Users can annotate their circRNA candidates
13104 with host genes, gene featrues they are spliced from, and discriminate between
13105 known and yet unknown splice junctions. Circular-to-linear ratios of circRNAs
13106 can be calculated, and a number of descriptive plots easily generated.")
13107 (license license:artistic2.0)))
13108
13109 (define-public gffread
13110 ;; We cannot use the tagged release because it is not in sync with gclib.
13111 ;; See https://github.com/gpertea/gffread/issues/26
13112 (let ((commit "ba7535fcb3cea55a6e5a491d916e93b454e87fd0")
13113 (revision "1"))
13114 (package
13115 (name "gffread")
13116 (version (git-version "0.9.12" revision commit))
13117 (source
13118 (origin
13119 (method git-fetch)
13120 (uri (git-reference
13121 (url "https://github.com/gpertea/gffread.git")
13122 (commit commit)))
13123 (file-name (git-file-name name version))
13124 (sha256
13125 (base32
13126 "1dl2nbcg96lxpd0drg48ssa8343nf7pw9s9mkrc4mjjmfwsin3ki"))))
13127 (build-system gnu-build-system)
13128 (arguments
13129 `(#:tests? #f ; no check target
13130 #:make-flags
13131 (list "GCLDIR=gclib")
13132 #:phases
13133 (modify-phases %standard-phases
13134 (delete 'configure)
13135 (add-after 'unpack 'copy-gclib-source
13136 (lambda* (#:key inputs #:allow-other-keys)
13137 (mkdir-p "gclib")
13138 (copy-recursively (assoc-ref inputs "gclib-source") "gclib")
13139 #t))
13140 ;; There is no install target
13141 (replace 'install
13142 (lambda* (#:key outputs #:allow-other-keys)
13143 (let* ((out (assoc-ref outputs "out"))
13144 (bin (string-append out "/bin")))
13145 (install-file "gffread" bin))
13146 #t)))))
13147 (native-inputs
13148 `(("gclib-source"
13149 ,(let ((version "0.10.3")
13150 (commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
13151 (revision "1"))
13152 (origin
13153 (method git-fetch)
13154 (uri (git-reference
13155 (url "https://github.com/gpertea/gclib.git")
13156 (commit commit)))
13157 (file-name (git-file-name "gclib" version))
13158 (sha256
13159 (base32
13160 "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
13161 (home-page "https://github.com/gpertea/gffread/")
13162 (synopsis "Parse and convert GFF/GTF files")
13163 (description
13164 "This package provides a GFF/GTF file parsing utility providing format
13165 conversions, region filtering, FASTA sequence extraction and more.")
13166 ;; gffread is under Expat, but gclib is under Artistic 2.0
13167 (license (list license:expat
13168 license:artistic2.0)))))
13169
13170 (define-public find-circ
13171 ;; The last release was in 2015. The license was clarified in 2017, so we
13172 ;; take the latest commit.
13173 (let ((commit "8655dca54970fcf7e92e22fbf57e1188724dda7d")
13174 (revision "1"))
13175 (package
13176 (name "find-circ")
13177 (version (git-version "1.2" revision commit))
13178 (source
13179 (origin
13180 (method git-fetch)
13181 (uri (git-reference
13182 (url "https://github.com/marvin-jens/find_circ.git")
13183 (commit commit)))
13184 (file-name (git-file-name name version))
13185 (sha256
13186 (base32
13187 "0p77pbqbclqr4srms34y1b9b4njybfpjiknc11ki84f3p8skb3cg"))))
13188 (build-system gnu-build-system)
13189 (arguments
13190 `(#:tests? #f ; there are none
13191 #:phases
13192 ;; There is no actual build system.
13193 (modify-phases %standard-phases
13194 (delete 'configure)
13195 (delete 'build)
13196 (replace 'install
13197 (lambda* (#:key outputs #:allow-other-keys)
13198 (let* ((out (assoc-ref outputs "out"))
13199 (bin (string-append out "/bin"))
13200 (path (getenv "PYTHONPATH")))
13201 (for-each (lambda (script)
13202 (install-file script bin)
13203 (wrap-program (string-append bin "/" script)
13204 `("PYTHONPATH" ":" prefix (,path))))
13205 '("cmp_bed.py"
13206 "find_circ.py"
13207 "maxlength.py"
13208 "merge_bed.py"
13209 "unmapped2anchors.py")))
13210 #t)))))
13211 (inputs
13212 `(("python2" ,python-2)
13213 ("python2-pysam" ,python2-pysam)
13214 ("python2-numpy" ,python2-numpy)))
13215 (home-page "https://github.com/marvin-jens/find_circ")
13216 (synopsis "circRNA detection from RNA-seq reads")
13217 (description "This package provides tools to detect head-to-tail
13218 spliced (back-spliced) sequencing reads, indicative of circular RNA (circRNA)
13219 in RNA-seq data.")
13220 (license license:gpl3))))
13221
13222 (define-public python-scanpy
13223 (package
13224 (name "python-scanpy")
13225 (version "1.4")
13226 ;; Fetch from git because the pypi tarball does not include tests.
13227 (source
13228 (origin
13229 (method git-fetch)
13230 (uri (git-reference
13231 (url "https://github.com/theislab/scanpy.git")
13232 (commit version)))
13233 (file-name (git-file-name name version))
13234 (sha256
13235 (base32
13236 "0zn6x6c0cnm1a20i6isigwb51g3pr9zpjk8r1minjqnxi5yc9pm4"))))
13237 (build-system python-build-system)
13238 (arguments
13239 `(#:phases
13240 (modify-phases %standard-phases
13241 (replace 'check
13242 (lambda* (#:key inputs #:allow-other-keys)
13243 ;; These tests require Internet access.
13244 (delete-file-recursively "scanpy/tests/notebooks")
13245 (delete-file "scanpy/tests/test_clustering.py")
13246
13247 ;; TODO: I can't get the plotting tests to work, even with Xvfb.
13248 (delete-file "scanpy/tests/test_plotting.py")
13249 (delete-file "scanpy/tests/test_preprocessing.py")
13250 (delete-file "scanpy/tests/test_read_10x.py")
13251
13252 (setenv "PYTHONPATH"
13253 (string-append (getcwd) ":"
13254 (getenv "PYTHONPATH")))
13255 (invoke "pytest")
13256 #t)))))
13257 (propagated-inputs
13258 `(("python-anndata" ,python-anndata)
13259 ("python-h5py" ,python-h5py)
13260 ("python-igraph" ,python-igraph)
13261 ("python-joblib" ,python-joblib)
13262 ("python-louvain" ,python-louvain)
13263 ("python-matplotlib" ,python-matplotlib)
13264 ("python-natsort" ,python-natsort)
13265 ("python-networkx" ,python-networkx)
13266 ("python-numba" ,python-numba)
13267 ("python-pandas" ,python-pandas)
13268 ("python-scikit-learn" ,python-scikit-learn)
13269 ("python-scipy" ,python-scipy)
13270 ("python-seaborn" ,python-seaborn)
13271 ("python-statsmodels" ,python-statsmodels)
13272 ("python-tables" ,python-tables)))
13273 (native-inputs
13274 `(("python-pytest" ,python-pytest)))
13275 (home-page "https://github.com/theislab/scanpy")
13276 (synopsis "Single-Cell Analysis in Python.")
13277 (description "Scanpy is a scalable toolkit for analyzing single-cell gene
13278 expression data. It includes preprocessing, visualization, clustering,
13279 pseudotime and trajectory inference and differential expression testing. The
13280 Python-based implementation efficiently deals with datasets of more than one
13281 million cells.")
13282 (license license:bsd-3)))
13283
13284 (define-public python-bbknn
13285 (package
13286 (name "python-bbknn")
13287 (version "1.3.1")
13288 (source
13289 (origin
13290 (method url-fetch)
13291 (uri (pypi-uri "bbknn" version))
13292 (sha256
13293 (base32
13294 "1qgdganvj3lyxj84v7alm23b9vqhwpn8z0115qndpnpy90qxynwz"))))
13295 (build-system python-build-system)
13296 (propagated-inputs
13297 `(("python-annoy" ,python-annoy)
13298 ("python-cython" ,python-cython)
13299 ("python-faiss" ,python-faiss)
13300 ("python-numpy" ,python-numpy)
13301 ("python-scanpy" ,python-scanpy)))
13302 (home-page "https://github.com/Teichlab/bbknn")
13303 (synopsis "Batch balanced KNN")
13304 (description "BBKNN is a batch effect removal tool that can be directly
13305 used in the Scanpy workflow. It serves as an alternative to
13306 @code{scanpy.api.pp.neighbors()}, with both functions creating a neighbour
13307 graph for subsequent use in clustering, pseudotime and UMAP visualisation. If
13308 technical artifacts are present in the data, they will make it challenging to
13309 link corresponding cell types across different batches. BBKNN actively
13310 combats this effect by splitting your data into batches and finding a smaller
13311 number of neighbours for each cell within each of the groups. This helps
13312 create connections between analogous cells in different batches without
13313 altering the counts or PCA space.")
13314 (license license:expat)))
13315
13316 (define-public gffcompare
13317 (let ((commit "be56ef4349ea3966c12c6397f85e49e047361c41")
13318 (revision "1"))
13319 (package
13320 (name "gffcompare")
13321 (version (git-version "0.10.15" revision commit))
13322 (source
13323 (origin
13324 (method git-fetch)
13325 (uri (git-reference
13326 (url "https://github.com/gpertea/gffcompare/")
13327 (commit commit)))
13328 (file-name (git-file-name name version))
13329 (sha256
13330 (base32 "0cp5qpxdhw4mxpya5dld8wi3jk00zyklm6rcri426wydinrnfmkg"))))
13331 (build-system gnu-build-system)
13332 (arguments
13333 `(#:tests? #f ; no check target
13334 #:phases
13335 (modify-phases %standard-phases
13336 (delete 'configure)
13337 (add-before 'build 'copy-gclib-source
13338 (lambda* (#:key inputs #:allow-other-keys)
13339 (mkdir "../gclib")
13340 (copy-recursively
13341 (assoc-ref inputs "gclib-source") "../gclib")
13342 #t))
13343 (replace 'install
13344 (lambda* (#:key outputs #:allow-other-keys)
13345 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
13346 (install-file "gffcompare" bin)
13347 #t))))))
13348 (native-inputs
13349 `(("gclib-source" ; see 'README.md' of gffcompare
13350 ,(let ((commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
13351 (revision "1")
13352 (name "gclib")
13353 (version (git-version "0.10.3" revision commit)))
13354 (origin
13355 (method git-fetch)
13356 (uri (git-reference
13357 (url "https://github.com/gpertea/gclib/")
13358 (commit commit)))
13359 (file-name (git-file-name name version))
13360 (sha256
13361 (base32 "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
13362 (home-page "https://github.com/gpertea/gffcompare/")
13363 (synopsis "Tool for comparing or classifing transcripts of RNA-Seq")
13364 (description
13365 "@code{gffcompare} is a tool that can:
13366 @enumerate
13367 @item compare and evaluate the accuracy of RNA-Seq transcript assemblers
13368 (Cufflinks, Stringtie);
13369 @item collapse (merge) duplicate transcripts from multiple GTF/GFF3 files (e.g.
13370 resulted from assembly of different samples);
13371 @item classify transcripts from one or multiple GTF/GFF3 files as they relate to
13372 reference transcripts provided in a annotation file (also in GTF/GFF3 format).
13373 @end enumerate")
13374 (license
13375 (list
13376 license:expat ;license for gffcompare
13377 license:artistic2.0))))) ;license for gclib
13378
13379 (define-public python-intervaltree
13380 (package
13381 (name "python-intervaltree")
13382 (version "2.1.0")
13383 (source
13384 (origin
13385 (method url-fetch)
13386 (uri (pypi-uri "intervaltree" version))
13387 (sha256
13388 (base32
13389 "02w191m9zxkcjqr1kv2slxvhymwhj3jnsyy3a28b837pi15q19dc"))))
13390 (build-system python-build-system)
13391 ;; FIXME: error when collecting tests
13392 (arguments '(#:tests? #f))
13393 (propagated-inputs
13394 `(("python-sortedcontainers" ,python-sortedcontainers)))
13395 (native-inputs
13396 `(("python-pytest" ,python-pytest)))
13397 (home-page "https://github.com/chaimleib/intervaltree")
13398 (synopsis "Editable interval tree data structure")
13399 (description
13400 "This package provides a mutable, self-balancing interval tree
13401 implementation for Python. Queries may be by point, by range overlap, or by
13402 range envelopment. This library was designed to allow tagging text and time
13403 intervals, where the intervals include the lower bound but not the upper
13404 bound.")
13405 (license license:asl2.0)))
13406
13407 (define-public python-pypairix
13408 (package
13409 (name "python-pypairix")
13410 (version "0.3.6")
13411 (source
13412 (origin
13413 (method url-fetch)
13414 (uri (pypi-uri "pypairix" version))
13415 (sha256
13416 (base32
13417 "0zs92b74s5v4xy2h16s15f3z6l4nnbw8x8zyif7xx5xpafjn0xss"))))
13418 (build-system python-build-system)
13419 ;; FIXME: the tests fail because test.support cannot be loaded:
13420 ;; ImportError: cannot import name 'support'
13421 (arguments '(#:tests? #f))
13422 (inputs
13423 `(("zlib" ,zlib)))
13424 (home-page "https://github.com/4dn-dcic/pairix")
13425 (synopsis "Support for querying pairix-indexed bgzipped text files")
13426 (description
13427 "Pypairix is a Python module for fast querying on a pairix-indexed
13428 bgzipped text file that contains a pair of genomic coordinates per line.")
13429 (license license:expat)))
13430
13431 (define-public python-pyfaidx
13432 (package
13433 (name "python-pyfaidx")
13434 (version "0.5.4.2")
13435 (source
13436 (origin
13437 (method url-fetch)
13438 (uri (pypi-uri "pyfaidx" version))
13439 (sha256
13440 (base32
13441 "0y5zyjksj1rdglj601xd2bbni5abhdh622y3ck76chyzxz9z4rx8"))))
13442 (build-system python-build-system)
13443 (propagated-inputs
13444 `(("python-six" ,python-six)))
13445 (home-page "http://mattshirley.com")
13446 (synopsis "Random access to fasta subsequences")
13447 (description
13448 "This package provides procedures for efficient pythonic random access to
13449 fasta subsequences.")
13450 (license license:bsd-3)))
13451
13452 (define-public python-cooler
13453 (package
13454 (name "python-cooler")
13455 (version "0.7.11")
13456 (source
13457 (origin
13458 (method url-fetch)
13459 (uri (pypi-uri "cooler" version))
13460 (sha256
13461 (base32
13462 "08k5nxnxa6qsbk15z5z0q01n28042k87wi4905hh95rzqib15mhx"))))
13463 (build-system python-build-system)
13464 (propagated-inputs
13465 `(("python-biopython" ,python-biopython)
13466 ("python-click" ,python-click)
13467 ("python-cytoolz" ,python-cytoolz)
13468 ("python-dask" ,python-dask)
13469 ("python-h5py" ,python-h5py)
13470 ("python-multiprocess" ,python-multiprocess)
13471 ("python-pandas" ,python-pandas)
13472 ("python-pyfaidx" ,python-pyfaidx)
13473 ("python-pypairix" ,python-pypairix)
13474 ("python-pysam" ,python-pysam)
13475 ("python-scipy" ,python-scipy)))
13476 (native-inputs
13477 `(("python-mock" ,python-mock)
13478 ("python-nose" ,python-nose)
13479 ("python-numpydoc" ,python-numpydoc)
13480 ("python-sphinx" ,python-sphinx)))
13481 (home-page "https://github.com/mirnylab/cooler")
13482 (synopsis "Sparse binary format for genomic interaction matrices")
13483 (description
13484 "Cooler is a support library for a sparse, compressed, binary persistent
13485 storage format, called @code{cool}, used to store genomic interaction data,
13486 such as Hi-C contact matrices.")
13487 (license license:bsd-3)))
13488
13489 (define-public python-hicexplorer
13490 (package
13491 (name "python-hicexplorer")
13492 (version "2.1.4")
13493 (source
13494 (origin
13495 ;; The latest version is not available on Pypi.
13496 (method git-fetch)
13497 (uri (git-reference
13498 (url "https://github.com/deeptools/HiCExplorer.git")
13499 (commit version)))
13500 (file-name (git-file-name name version))
13501 (sha256
13502 (base32
13503 "0q5gpbzmrkvygqgw524q36b4nrivcmyi5v194vsx0qw7b3gcmq08"))))
13504 (build-system python-build-system)
13505 (arguments
13506 `(#:phases
13507 (modify-phases %standard-phases
13508 (add-after 'unpack 'loosen-up-requirements
13509 (lambda _
13510 (substitute* "setup.py"
13511 (("==") ">="))
13512 #t)))))
13513 (propagated-inputs
13514 `(("python-biopython" ,python-biopython)
13515 ("python-configparser" ,python-configparser)
13516 ("python-cooler" ,python-cooler)
13517 ("python-future" ,python-future)
13518 ("python-intervaltree" ,python-intervaltree)
13519 ("python-jinja2" ,python-jinja2)
13520 ("python-matplotlib" ,python-matplotlib)
13521 ("python-numpy" ,python-numpy)
13522 ("python-pandas" ,python-pandas)
13523 ("python-pybigwig" ,python-pybigwig)
13524 ("python-pysam" ,python-pysam)
13525 ("python-scipy" ,python-scipy)
13526 ("python-six" ,python-six)
13527 ("python-tables" ,python-tables)
13528 ("python-unidecode" ,python-unidecode)))
13529 (home-page "http://hicexplorer.readthedocs.io")
13530 (synopsis "Process, analyze and visualize Hi-C data")
13531 (description
13532 "HiCExplorer is a powerful and easy to use set of tools to process,
13533 normalize and visualize Hi-C data. HiCExplorer facilitates the creation of
13534 contact matrices, correction of contacts, TAD detection, A/B compartments,
13535 merging, reordering or chromosomes, conversion from different formats
13536 including cooler and detection of long-range contacts. Moreover, it allows
13537 the visualization of multiple contact matrices along with other types of data
13538 like genes, compartments, ChIP-seq coverage tracks (and in general any type of
13539 genomic scores), long range contacts and the visualization of viewpoints.")
13540 (license license:gpl3)))
13541
13542 (define-public python-pygenometracks
13543 (package
13544 (name "python-pygenometracks")
13545 (version "2.0")
13546 (source
13547 (origin
13548 (method url-fetch)
13549 (uri (pypi-uri "pyGenomeTracks" version))
13550 (sha256
13551 (base32
13552 "1fws6bqsyy9kj3qiabhkqx4wd4i775gsxnhszqd3zg7w67sc1ic5"))))
13553 (build-system python-build-system)
13554 (propagated-inputs
13555 `(("python-configparser" ,python-configparser)
13556 ("python-future" ,python-future)
13557 ("python-hicexplorer" ,python-hicexplorer)
13558 ("python-intervaltree" ,python-intervaltree)
13559 ("python-matplotlib" ,python-matplotlib)
13560 ("python-numpy" ,python-numpy)
13561 ("python-pybigwig" ,python-pybigwig)))
13562 (native-inputs
13563 `(("python-pytest" ,python-pytest)))
13564 (home-page "https://pygenometracks.readthedocs.io")
13565 (synopsis "Program and library to plot beautiful genome browser tracks")
13566 (description
13567 "This package aims to produce high-quality genome browser tracks that
13568 are highly customizable. Currently, it is possible to plot: bigwig, bed (many
13569 options), bedgraph, links (represented as arcs), and Hi-C matrices.
13570 pyGenomeTracks can make plots with or without Hi-C data.")
13571 (license license:gpl3+)))
13572
13573 (define-public python-hic2cool
13574 (package
13575 (name "python-hic2cool")
13576 (version "0.4.2")
13577 (source
13578 (origin
13579 (method url-fetch)
13580 (uri (pypi-uri "hic2cool" version))
13581 (sha256
13582 (base32
13583 "0xy6mhfns2lzib1kcr6419jjp6pmh0qx8z8na55lmiwn0ds8q9cl"))))
13584 (build-system python-build-system)
13585 (arguments '(#:tests? #f)) ; no tests included
13586 (propagated-inputs
13587 `(("python-cooler" ,python-cooler)))
13588 (home-page "https://github.com/4dn-dcic/hic2cool")
13589 (synopsis "Converter for .hic and .cool files")
13590 (description
13591 "This package provides a converter between @code{.hic} files (from
13592 juicer) and single-resolution or multi-resolution @code{.cool} files (for
13593 cooler). Both @code{hic} and @code{cool} files describe Hi-C contact
13594 matrices.")
13595 (license license:expat)))
13596
13597 (define-public r-pore
13598 (package
13599 (name "r-pore")
13600 (version "0.24")
13601 (source
13602 (origin
13603 (method url-fetch)
13604 (uri
13605 (string-append "mirror://sourceforge/rpore/" version
13606 "/poRe_" version ".tar.gz"))
13607 (sha256
13608 (base32 "0pih9nljbv8g4x8rkk29i7aqq681b782r5s5ynp4nw9yzqnmmksv"))))
13609 (properties `((upstream-name . "poRe")))
13610 (build-system r-build-system)
13611 (propagated-inputs
13612 `(("r-bit64" ,r-bit64)
13613 ("r-data-table" ,r-data-table)
13614 ("r-rhdf5" ,r-rhdf5)
13615 ("r-shiny" ,r-shiny)
13616 ("r-svdialogs" ,r-svdialogs)))
13617 (home-page "https://sourceforge.net/projects/rpore/")
13618 (synopsis "Visualize Nanopore sequencing data")
13619 (description
13620 "This package provides graphical user interfaces to organize and visualize Nanopore
13621 sequencing data.")
13622 ;; This is free software but the license variant is unclear:
13623 ;; <https://github.com/mw55309/poRe_docs/issues/10>.
13624 (license license:bsd-3)))
13625
13626 (define-public r-xbioc
13627 (let ((revision "1")
13628 (commit "6ff0670a37ab3036aaf1d94aa4b208310946b0b5"))
13629 (package
13630 (name "r-xbioc")
13631 (version (git-version "0.1.16" revision commit))
13632 (source (origin
13633 (method git-fetch)
13634 (uri (git-reference
13635 (url "https://github.com/renozao/xbioc.git")
13636 (commit commit)))
13637 (file-name (git-file-name name version))
13638 (sha256
13639 (base32
13640 "0w8bsq5myiwkfhh83nm6is5ichiyvwa1axx2szvxnzq39x6knf66"))))
13641 (build-system r-build-system)
13642 (propagated-inputs
13643 `(("r-annotationdbi" ,r-annotationdbi)
13644 ("r-assertthat" ,r-assertthat)
13645 ("r-biobase" ,r-biobase)
13646 ("r-biocmanager" ,r-biocmanager)
13647 ("r-digest" ,r-digest)
13648 ("r-pkgmaker" ,r-pkgmaker)
13649 ("r-plyr" ,r-plyr)
13650 ("r-reshape2" ,r-reshape2)
13651 ("r-stringr" ,r-stringr)))
13652 (home-page "https://github.com/renozao/xbioc/")
13653 (synopsis "Extra base functions for Bioconductor")
13654 (description "This package provides extra utility functions to perform
13655 common tasks in the analysis of omics data, leveraging and enhancing features
13656 provided by Bioconductor packages.")
13657 (license license:gpl3+))))
13658
13659 (define-public r-cssam
13660 (let ((revision "1")
13661 (commit "9ec58c982fa551af0d80b1a266890d92954833f2"))
13662 (package
13663 (name "r-cssam")
13664 (version (git-version "1.4" revision commit))
13665 (source (origin
13666 (method git-fetch)
13667 (uri (git-reference
13668 (url "https://github.com/shenorrLab/csSAM.git")
13669 (commit commit)))
13670 (file-name (git-file-name name version))
13671 (sha256
13672 (base32
13673 "128syf9v39gk0z3ip000qpsjbg6l1siyq6c8b0hz41dzg5achyb3"))))
13674 (build-system r-build-system)
13675 (propagated-inputs
13676 `(("r-formula" ,r-formula)
13677 ("r-ggplot2" ,r-ggplot2)
13678 ("r-pkgmaker" ,r-pkgmaker)
13679 ("r-plyr" ,r-plyr)
13680 ("r-rngtools" ,r-rngtools)
13681 ("r-scales" ,r-scales)))
13682 (home-page "https://github.com/shenorrLab/csSAM/")
13683 (synopsis "Cell type-specific statistical analysis of microarray")
13684 (description "This package implements the method csSAM that computes
13685 cell-specific differential expression from measured cell proportions using
13686 SAM.")
13687 ;; Any version
13688 (license license:lgpl2.1+))))
13689
13690 (define-public r-bseqsc
13691 (let ((revision "1")
13692 (commit "fef3f3e38dcf3df37103348b5780937982b43b98"))
13693 (package
13694 (name "r-bseqsc")
13695 (version (git-version "1.0" revision commit))
13696 (source (origin
13697 (method git-fetch)
13698 (uri (git-reference
13699 (url "https://github.com/shenorrLab/bseqsc.git")
13700 (commit commit)))
13701 (file-name (git-file-name name version))
13702 (sha256
13703 (base32
13704 "1prw13wa20f7wlc3gkkls66n1kxz8d28qrb8icfqdwdnnv8w5qg8"))))
13705 (build-system r-build-system)
13706 (propagated-inputs
13707 `(("r-abind" ,r-abind)
13708 ("r-annotationdbi" ,r-annotationdbi)
13709 ("r-biobase" ,r-biobase)
13710 ("r-cssam" ,r-cssam)
13711 ("r-dplyr" ,r-dplyr)
13712 ("r-e1071" ,r-e1071)
13713 ("r-edger" ,r-edger)
13714 ("r-ggplot2" ,r-ggplot2)
13715 ("r-nmf" ,r-nmf)
13716 ("r-openxlsx" ,r-openxlsx)
13717 ("r-pkgmaker" ,r-pkgmaker)
13718 ("r-plyr" ,r-plyr)
13719 ("r-preprocesscore" ,r-preprocesscore)
13720 ("r-rngtools" ,r-rngtools)
13721 ("r-scales" ,r-scales)
13722 ("r-stringr" ,r-stringr)
13723 ("r-xbioc" ,r-xbioc)))
13724 (home-page "https://github.com/shenorrLab/bseqsc")
13725 (synopsis "Deconvolution of bulk sequencing experiments using single cell data")
13726 (description "BSeq-sc is a bioinformatics analysis pipeline that
13727 leverages single-cell sequencing data to estimate cell type proportion and
13728 cell type-specific gene expression differences from RNA-seq data from bulk
13729 tissue samples. This is a companion package to the publication \"A
13730 single-cell transcriptomic map of the human and mouse pancreas reveals inter-
13731 and intra-cell population structure.\" Baron et al. Cell Systems (2016)
13732 @url{https://www.ncbi.nlm.nih.gov/pubmed/27667365}.")
13733 (license license:gpl2+))))
13734
13735 (define-public porechop
13736 ;; The recommended way to install is to clone the git repository
13737 ;; https://github.com/rrwick/Porechop#installation
13738 (let ((commit "289d5dca4a5fc327f97b3f8cecb68ecaf1014861")
13739 (revision "1"))
13740 (package
13741 (name "porechop")
13742 (version (git-version "0.2.3" revision commit))
13743 (source
13744 (origin
13745 (method git-fetch)
13746 (uri (git-reference
13747 (url "https://github.com/rrwick/Porechop.git")
13748 (commit commit)))
13749 (file-name (git-file-name name version))
13750 (sha256
13751 (base32 "05ps43gig0d3ia9x5lj84lb00hbsl6ba9n7y7jz927npxbr2ym23"))))
13752 (build-system python-build-system)
13753 (home-page "https://github.com/rrwick/porechop")
13754 (synopsis "Finding, trimming or splitting adapters, in Oxford Nanopore reads")
13755 (description
13756 "The porechop package is a tool for finding and removing adapters from Oxford
13757 Nanopore reads. Adapters on the ends of reads are trimmed off, and when a read
13758 has an adapter in its middle, it is treated as chimeric and chopped into
13759 separate reads. Porechop performs thorough alignments to effectively find
13760 adapters, even at low sequence identity. Porechop also supports demultiplexing
13761 of Nanopore reads that were barcoded with the Native Barcoding Kit, PCR
13762 Barcoding Kit or Rapid Barcoding Kit.")
13763 (license license:gpl3+))))
13764
13765 (define-public poretools
13766 ;; The latest release was in 2016 and the latest commit is from 2017
13767 ;; the recommended way to install is to clone the git repository
13768 ;; https://poretools.readthedocs.io/en/latest/content/installation.html
13769 (let ((commit "e426b1f09e86ac259a00c261c79df91510777407")
13770 (revision "1"))
13771 (package
13772 (name "poretools")
13773 (version (git-version "0.6.0" revision commit))
13774 (source
13775 (origin
13776 (method git-fetch)
13777 (uri (git-reference
13778 (url "https://github.com/arq5x/poretools.git")
13779 (commit commit)))
13780 (file-name (git-file-name name version))
13781 (sha256
13782 (base32 "0bglj833wxpp3cq430p1d3xp085ls221js2y90w7ir2x5ay8l7am"))))
13783 (build-system python-build-system)
13784 ;; requires python >=2.7, <3.0, and the same for python dependencies
13785 (arguments `(#:python ,python-2))
13786 (inputs
13787 `(("hdf5" ,hdf5)))
13788 (propagated-inputs
13789 `(("python-dateutil" ,python2-dateutil)
13790 ("python-h5py" ,python2-h5py)
13791 ("python-matplotlib" ,python2-matplotlib)
13792 ("python-pandas" ,python2-pandas)
13793 ("python-seaborn" ,python2-seaborn)))
13794 (home-page "https://poretools.readthedocs.io")
13795 (synopsis "Toolkit for working with nanopore sequencing data")
13796 (description
13797 "The MinION from Oxford Nanopore Technologies is a nanopore sequencer.
13798 This @code{poretools} package is a flexible toolkit for exploring datasets
13799 generated by nanopore sequencing devices for the purposes of quality control and
13800 downstream analysis. Poretools operates directly on the native FAST5, a variant
13801 of the Hierarchical Data Format (HDF5) standard.")
13802 (license license:expat))))
13803
13804 (define-public r-absfiltergsea
13805 (package
13806 (name "r-absfiltergsea")
13807 (version "1.5.1")
13808 (source
13809 (origin
13810 (method url-fetch)
13811 (uri (cran-uri "AbsFilterGSEA" version))
13812 (sha256
13813 (base32 "15srxkxsvn38kd5frdrwfdf0ad8gskrd0h01wmdf9hglq8fjrp7w"))))
13814 (properties `((upstream-name . "AbsFilterGSEA")))
13815 (build-system r-build-system)
13816 (propagated-inputs
13817 `(("r-biobase" ,r-biobase)
13818 ("r-deseq" ,r-deseq)
13819 ("r-limma" ,r-limma)
13820 ("r-rcpp" ,r-rcpp)
13821 ("r-rcpparmadillo" ,r-rcpparmadillo)))
13822 (home-page "https://cran.r-project.org/web/packages/AbsFilterGSEA/")
13823 (synopsis "Improved false positive control of gene-permuting with absolute filtering")
13824 (description
13825 "This package provides a function that performs gene-permuting of a gene-set
13826 enrichment analysis (GSEA) calculation with or without the absolute filtering.
13827 Without filtering, users can perform (original) two-tailed or one-tailed
13828 absolute GSEA.")
13829 (license license:gpl2)))
13830
13831 (define-public jamm
13832 (package
13833 (name "jamm")
13834 (version "1.0.7.5")
13835 (source
13836 (origin
13837 (method git-fetch)
13838 (uri (git-reference
13839 (url "https://github.com/mahmoudibrahim/JAMM.git")
13840 (commit (string-append "JAMMv" version))))
13841 (file-name (git-file-name name version))
13842 (sha256
13843 (base32
13844 "0ls889jcma1ch9h21jjhnkadgszgqj41842hhcjh6cg88f85qf3i"))))
13845 (build-system gnu-build-system)
13846 (arguments
13847 `(#:tests? #f ; there are none
13848 #:phases
13849 (modify-phases %standard-phases
13850 (delete 'configure)
13851 (delete 'build)
13852 (replace 'install
13853 (lambda* (#:key inputs outputs #:allow-other-keys)
13854 (let* ((out (assoc-ref outputs "out"))
13855 (libexec (string-append out "/libexec/jamm"))
13856 (bin (string-append out "/bin")))
13857 (substitute* '("JAMM.sh"
13858 "SignalGenerator.sh")
13859 (("^sPath=.*")
13860 (string-append "sPath=\"" libexec "\"\n")))
13861 (for-each (lambda (file)
13862 (install-file file libexec))
13863 (list "bincalculator.r"
13864 "peakfinder.r"
13865 "peakhelper.r"
13866 "signalmaker.r"
13867 "xcorr.r"
13868 "xcorrhelper.r"
13869 ;; Perl scripts
13870 "peakfilter.pl"
13871 "readshifter.pl"))
13872
13873 (for-each
13874 (lambda (script)
13875 (chmod script #o555)
13876 (install-file script bin)
13877 (wrap-program (string-append bin "/" script)
13878 `("PATH" ":" prefix
13879 (,(string-append (assoc-ref inputs "coreutils") "/bin")
13880 ,(string-append (assoc-ref inputs "gawk") "/bin")
13881 ,(string-append (assoc-ref inputs "perl") "/bin")
13882 ,(string-append (assoc-ref inputs "r-minimal") "/bin")))
13883 `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB")))
13884 `("R_LIBS_SITE" ":" prefix (,(getenv "R_LIBS_SITE")))))
13885 (list "JAMM.sh" "SignalGenerator.sh")))
13886 #t)))))
13887 (inputs
13888 `(("bash" ,bash)
13889 ("coreutils" ,coreutils)
13890 ("gawk" ,gawk)
13891 ("perl" ,perl)
13892 ("r-minimal" ,r-minimal)
13893 ;;("r-parallel" ,r-parallel)
13894 ("r-signal" ,r-signal)
13895 ("r-mclust" ,r-mclust)))
13896 (home-page "https://github.com/mahmoudibrahim/JAMM")
13897 (synopsis "Peak finder for NGS datasets")
13898 (description
13899 "JAMM is a peak finder for next generation sequencing datasets (ChIP-Seq,
13900 ATAC-Seq, DNase-Seq, etc.) that can integrate replicates and assign peak
13901 boundaries accurately. JAMM is applicable to both broad and narrow
13902 datasets.")
13903 (license license:gpl3+)))
13904
13905 (define-public ngless
13906 (package
13907 (name "ngless")
13908 (version "1.0.1")
13909 (source
13910 (origin
13911 (method git-fetch)
13912 (uri (git-reference
13913 (url "https://gitlab.com/ngless/ngless.git")
13914 (commit (string-append "v" version))))
13915 (file-name (git-file-name name version))
13916 (sha256
13917 (base32
13918 "06ygv8q2zjqsnrid1302yrlhhvb8ik48nq6n0higk3i1mdc8r0dg"))))
13919 (build-system haskell-build-system)
13920 (arguments
13921 `(#:haddock? #f ; The haddock phase fails with: NGLess/CmdArgs.hs:20:1:
13922 ; error: parse error on input import
13923 ; import Options.Applicative
13924 #:phases
13925 (modify-phases %standard-phases
13926 (add-after 'unpack 'create-Versions.hs
13927 (lambda _
13928 (substitute* "Makefile"
13929 (("BWA_VERSION = .*")
13930 (string-append "BWA_VERSION = "
13931 ,(package-version bwa) "\n"))
13932 (("SAM_VERSION = .*")
13933 (string-append "SAM_VERSION = "
13934 ,(package-version samtools) "\n"))
13935 (("PRODIGAL_VERSION = .*")
13936 (string-append "PRODIGAL_VERSION = "
13937 ,(package-version prodigal) "\n"))
13938 (("MINIMAP2_VERSION = .*")
13939 (string-append "MINIMAP2_VERSION = "
13940 ,(package-version minimap2) "\n")))
13941 (invoke "make" "NGLess/Dependencies/Versions.hs")
13942 #t))
13943 (add-after 'create-Versions.hs 'create-cabal-file
13944 (lambda _ (invoke "hpack") #t))
13945 ;; These tools are expected to be installed alongside ngless.
13946 (add-after 'install 'link-tools
13947 (lambda* (#:key inputs outputs #:allow-other-keys)
13948 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
13949 (symlink (string-append (assoc-ref inputs "prodigal")
13950 "/bin/prodigal")
13951 (string-append bin "ngless-" ,version "-prodigal"))
13952 (symlink (string-append (assoc-ref inputs "minimap2")
13953 "/bin/minimap2")
13954 (string-append bin "ngless-" ,version "-minimap2"))
13955 (symlink (string-append (assoc-ref inputs "samtools")
13956 "/bin/samtools")
13957 (string-append bin "ngless-" ,version "-samtools"))
13958 (symlink (string-append (assoc-ref inputs "bwa")
13959 "/bin/bwa")
13960 (string-append bin "ngless-" ,version "-bwa"))
13961 #t))))))
13962 (inputs
13963 `(("prodigal" ,prodigal)
13964 ("bwa" ,bwa)
13965 ("samtools" ,samtools)
13966 ("minimap2" ,minimap2)
13967 ("ghc-aeson" ,ghc-aeson)
13968 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
13969 ("ghc-async" ,ghc-async)
13970 ("ghc-atomic-write" ,ghc-atomic-write)
13971 ("ghc-bytestring-lexing" ,ghc-bytestring-lexing)
13972 ("ghc-conduit" ,ghc-conduit)
13973 ("ghc-conduit-algorithms" ,ghc-conduit-algorithms)
13974 ("ghc-conduit-extra" ,ghc-conduit-extra)
13975 ("ghc-configurator" ,ghc-configurator)
13976 ("ghc-convertible" ,ghc-convertible)
13977 ("ghc-data-default" ,ghc-data-default)
13978 ("ghc-diagrams-core" ,ghc-diagrams-core)
13979 ("ghc-diagrams-lib" ,ghc-diagrams-lib)
13980 ("ghc-diagrams-svg" ,ghc-diagrams-svg)
13981 ("ghc-double-conversion" ,ghc-double-conversion)
13982 ("ghc-edit-distance" ,ghc-edit-distance)
13983 ("ghc-either" ,ghc-either)
13984 ("ghc-errors" ,ghc-errors)
13985 ("ghc-extra" ,ghc-extra)
13986 ("ghc-filemanip" ,ghc-filemanip)
13987 ("ghc-file-embed" ,ghc-file-embed)
13988 ("ghc-gitrev" ,ghc-gitrev)
13989 ("ghc-hashtables" ,ghc-hashtables)
13990 ("ghc-http-conduit" ,ghc-http-conduit)
13991 ("ghc-inline-c" ,ghc-inline-c)
13992 ("ghc-inline-c-cpp" ,ghc-inline-c-cpp)
13993 ("ghc-intervalmap" ,ghc-intervalmap)
13994 ("ghc-missingh" ,ghc-missingh)
13995 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
13996 ("ghc-regex" ,ghc-regex)
13997 ("ghc-safe" ,ghc-safe)
13998 ("ghc-safeio" ,ghc-safeio)
13999 ("ghc-strict" ,ghc-strict)
14000 ("ghc-tar" ,ghc-tar)
14001 ("ghc-tar-conduit" ,ghc-tar-conduit)
14002 ("ghc-unliftio" ,ghc-unliftio)
14003 ("ghc-unliftio-core" ,ghc-unliftio-core)
14004 ("ghc-vector" ,ghc-vector)
14005 ("ghc-yaml" ,ghc-yaml)
14006 ("ghc-zlib" ,ghc-zlib)))
14007 (propagated-inputs
14008 `(("r-r6" ,r-r6)
14009 ("r-hdf5r" ,r-hdf5r)
14010 ("r-iterators" ,r-iterators)
14011 ("r-itertools" ,r-itertools)
14012 ("r-matrix" ,r-matrix)))
14013 (native-inputs
14014 `(("ghc-hpack" ,ghc-hpack)
14015 ("ghc-quickcheck" ,ghc-quickcheck)
14016 ("ghc-test-framework" ,ghc-test-framework)
14017 ("ghc-test-framework-hunit",ghc-test-framework-hunit)
14018 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
14019 ("ghc-test-framework-th" ,ghc-test-framework-th)))
14020 (home-page "https://gitlab.com/ngless/ngless")
14021 (synopsis "DSL for processing next-generation sequencing data")
14022 (description "Ngless is a domain-specific language for
14023 @dfn{next-generation sequencing} (NGS) data processing.")
14024 (license license:expat)))
14025
14026 (define-public filtlong
14027 ;; The recommended way to install is to clone the git repository
14028 ;; https://github.com/rrwick/Filtlong#installation
14029 ;; and the lastest release is more than nine months old
14030 (let ((commit "d1bb46dfe8bc7efe6257b5ce222c04bfe8aedaab")
14031 (revision "1"))
14032 (package
14033 (name "filtlong")
14034 (version (git-version "0.2.0" revision commit))
14035 (source
14036 (origin
14037 (method git-fetch)
14038 (uri (git-reference
14039 (url "https://github.com/rrwick/Filtlong.git")
14040 (commit commit)))
14041 (file-name (git-file-name name version))
14042 (sha256
14043 (base32 "1xr92r820x8qlkcr3b57iw223yq8vjgyi42jr79w2xgw47qzr575"))))
14044 (build-system gnu-build-system)
14045 (arguments
14046 `(#:tests? #f ; no check target
14047 #:phases
14048 (modify-phases %standard-phases
14049 (delete 'configure)
14050 (replace 'install
14051 (lambda* (#:key outputs #:allow-other-keys)
14052 (let* ((out (assoc-ref outputs "out"))
14053 (bin (string-append out "/bin"))
14054 (scripts (string-append out "/share/filtlong/scripts")))
14055 (install-file "bin/filtlong" bin)
14056 (install-file "scripts/histogram.py" scripts)
14057 (install-file "scripts/read_info_histograms.sh" scripts))
14058 #t))
14059 (add-after 'install 'wrap-program
14060 (lambda* (#:key inputs outputs #:allow-other-keys)
14061 (let* ((out (assoc-ref outputs "out"))
14062 (path (getenv "PYTHONPATH")))
14063 (wrap-program (string-append out
14064 "/share/filtlong/scripts/histogram.py")
14065 `("PYTHONPATH" ":" prefix (,path))))
14066 #t))
14067 (add-before 'check 'patch-tests
14068 (lambda _
14069 (substitute* "scripts/read_info_histograms.sh"
14070 (("awk") (which "gawk")))
14071 #t)))))
14072 (inputs
14073 `(("gawk" ,gawk) ;for read_info_histograms.sh
14074 ("python" ,python-2) ;required for histogram.py
14075 ("zlib" ,zlib)))
14076 (home-page "https://github.com/rrwick/Filtlong/")
14077 (synopsis "Tool for quality filtering of Nanopore and PacBio data")
14078 (description
14079 "The Filtlong package is a tool for filtering long reads by quality.
14080 It can take a set of long reads and produce a smaller, better subset. It uses
14081 both read length (longer is better) and read identity (higher is better) when
14082 choosing which reads pass the filter.")
14083 (license (list license:gpl3 ;filtlong
14084 license:asl2.0))))) ;histogram.py
14085
14086 (define-public nanopolish
14087 ;; The recommended way to install is to clone the git repository
14088 ;; <https://github.com/jts/nanopolish#installing-a-particular-release>.
14089 ;; Also, the differences between release and current version seem to be
14090 ;; significant.
14091 (let ((commit "6331dc4f15b9dfabb954ba3fae9d76b6c3ca6377")
14092 (revision "1"))
14093 (package
14094 (name "nanopolish")
14095 (version (git-version "0.11.1" revision commit))
14096 (source
14097 (origin
14098 (method git-fetch)
14099 (uri (git-reference
14100 (url "https://github.com/jts/nanopolish.git")
14101 (commit commit)
14102 (recursive? #t)))
14103 (file-name (git-file-name name version))
14104 (sha256
14105 (base32 "15ikl3d37y49pwd7vx36xksgsqajhf24q7qqsnpl15dqqyy5qgbc"))
14106 (modules '((guix build utils)))
14107 (snippet
14108 '(begin
14109 (delete-file-recursively "htslib")
14110 #t))))
14111 (build-system gnu-build-system)
14112 (arguments
14113 `(#:make-flags
14114 `("HDF5=noinstall" "EIGEN=noinstall" "HTS=noinstall" "CC=gcc")
14115 #:tests? #f ; no check target
14116 #:phases
14117 (modify-phases %standard-phases
14118 (add-after 'unpack 'find-eigen
14119 (lambda* (#:key inputs #:allow-other-keys)
14120 (setenv "CPATH"
14121 (string-append (assoc-ref inputs "eigen")
14122 "/include/eigen3:"
14123 (or (getenv "CPATH") "")))
14124 #t))
14125 (delete 'configure)
14126 (replace 'install
14127 (lambda* (#:key outputs #:allow-other-keys)
14128 (let* ((out (assoc-ref outputs "out"))
14129 (bin (string-append out "/bin"))
14130 (scripts (string-append out "/share/nanopolish/scripts")))
14131
14132 (install-file "nanopolish" bin)
14133 (for-each (lambda (file) (install-file file scripts))
14134 (find-files "scripts" ".*"))
14135 #t)))
14136 (add-after 'install 'wrap-programs
14137 (lambda* (#:key outputs #:allow-other-keys)
14138 (for-each (lambda (file)
14139 (wrap-program file `("PYTHONPATH" ":" prefix (,path))))
14140 (find-files "/share/nanopolish/scripts" "\\.py"))
14141 (for-each (lambda (file)
14142 (wrap-program file `("PERL5LIB" ":" prefix (,path))))
14143 (find-files "/share/nanopolish/scripts" "\\.pl"))
14144 #t)))))
14145 (inputs
14146 `(("eigen" ,eigen)
14147 ("hdf5" ,hdf5)
14148 ("htslib" ,htslib)
14149 ("perl" ,perl)
14150 ("python" ,python-wrapper)
14151 ("python-biopython" ,python-biopython)
14152 ("python-numpy" ,python-numpy)
14153 ("python-pysam" ,python-pysam)
14154 ("python-scikit-learn" , python-scikit-learn)
14155 ("python-scipy" ,python-scipy)
14156 ("zlib" ,zlib)))
14157 (home-page "https://github.com/jts/nanopolish")
14158 (synopsis "Signal-level analysis of Oxford Nanopore sequencing data")
14159 (description
14160 "This package analyses the Oxford Nanopore sequencing data at signal-level.
14161 Nanopolish can calculate an improved consensus sequence for a draft genome
14162 assembly, detect base modifications, call SNPs (Single nucleotide
14163 polymorphisms) and indels with respect to a reference genome and more.")
14164 (license license:expat))))
14165
14166 (define-public cnvkit
14167 (package
14168 (name "cnvkit")
14169 (version "0.9.5")
14170 (source
14171 (origin
14172 (method git-fetch)
14173 (uri (git-reference
14174 (url "https://github.com/etal/cnvkit.git")
14175 (commit (string-append "v" version))))
14176 (file-name (git-file-name name version))
14177 (sha256
14178 (base32 "0g2f78k68yglmj4fsfmgs8idqv3di9aj53fg0ld0hqljg8chhh82"))))
14179 (build-system python-build-system)
14180 (propagated-inputs
14181 `(("python-biopython" ,python-biopython)
14182 ("python-future" ,python-future)
14183 ("python-matplotlib" ,python-matplotlib)
14184 ("python-numpy" ,python-numpy)
14185 ("python-reportlab" ,python-reportlab)
14186 ("python-pandas" ,python-pandas)
14187 ("python-pysam" ,python-pysam)
14188 ("python-pyfaidx" ,python-pyfaidx)
14189 ("python-scipy" ,python-scipy)
14190 ;; R packages
14191 ("r-dnacopy" ,r-dnacopy)))
14192 (home-page "https://cnvkit.readthedocs.org/")
14193 (synopsis "Copy number variant detection from targeted DNA sequencing")
14194 (description
14195 "CNVkit is a Python library and command-line software toolkit to infer
14196 and visualize copy number from high-throughput DNA sequencing data. It is
14197 designed for use with hybrid capture, including both whole-exome and custom
14198 target panels, and short-read sequencing platforms such as Illumina and Ion
14199 Torrent.")
14200 (license license:asl2.0)))
14201
14202 (define-public python-pyfit-sne
14203 (package
14204 (name "python-pyfit-sne")
14205 (version "1.0.1")
14206 (source
14207 (origin
14208 (method git-fetch)
14209 (uri (git-reference
14210 (url "https://github.com/KlugerLab/pyFIt-SNE.git")
14211 (commit version)))
14212 (file-name (git-file-name name version))
14213 (sha256
14214 (base32 "13wh3qkzs56azmmgnxib6xfr29g7xh09sxylzjpni5j0pp0rc5qw"))))
14215 (build-system python-build-system)
14216 (propagated-inputs
14217 `(("python-numpy" ,python-numpy)))
14218 (inputs
14219 `(("fftw" ,fftw)))
14220 (native-inputs
14221 `(("python-cython" ,python-cython)))
14222 (home-page "https://github.com/KlugerLab/pyFIt-SNE")
14223 (synopsis "FFT-accelerated Interpolation-based t-SNE")
14224 (description
14225 "t-Stochastic Neighborhood Embedding (t-SNE) is a highly successful
14226 method for dimensionality reduction and visualization of high dimensional
14227 datasets. A popular implementation of t-SNE uses the Barnes-Hut algorithm to
14228 approximate the gradient at each iteration of gradient descent. This package
14229 is a Cython wrapper for FIt-SNE.")
14230 (license license:bsd-4)))
14231
14232 (define-public bbmap
14233 (package
14234 (name "bbmap")
14235 (version "35.82")
14236 (source (origin
14237 (method url-fetch)
14238 (uri (string-append
14239 "mirror://sourceforge/bbmap/BBMap_" version ".tar.gz"))
14240 (sha256
14241 (base32
14242 "1q4rfhxcb6z3gm8zg2davjz98w22lkf4hm9ikxz9kdl93pil3wkd"))))
14243 (build-system ant-build-system)
14244 (arguments
14245 `(#:build-target "dist"
14246 #:tests? #f ; there are none
14247 #:make-flags
14248 (list (string-append "-Dmpijar="
14249 (assoc-ref %build-inputs "java-openmpi")
14250 "/lib/mpi.jar"))
14251 #:modules ((guix build ant-build-system)
14252 (guix build utils)
14253 (guix build java-utils))
14254 #:phases
14255 (modify-phases %standard-phases
14256 (add-after 'build 'build-jni-library
14257 (lambda _
14258 (with-directory-excursion "jni"
14259 (invoke "make" "-f" "makefile.linux"))))
14260 ;; There is no install target
14261 (replace 'install (install-jars "dist"))
14262 (add-after 'install 'install-scripts-and-documentation
14263 (lambda* (#:key outputs #:allow-other-keys)
14264 (substitute* "calcmem.sh"
14265 (("\\| awk ") (string-append "| " (which "awk") " ")))
14266 (let* ((scripts (find-files "." "\\.sh$"))
14267 (out (assoc-ref outputs "out"))
14268 (bin (string-append out "/bin"))
14269 (doc (string-append out "/share/doc/bbmap"))
14270 (jni (string-append out "/lib/jni")))
14271 (substitute* scripts
14272 (("\\$DIR\"\"docs") doc)
14273 (("^CP=.*")
14274 (string-append "CP=" out "/share/java/BBTools.jar\n"))
14275 (("^NATIVELIBDIR.*")
14276 (string-append "NATIVELIBDIR=" jni "\n"))
14277 (("CMD=\"java")
14278 (string-append "CMD=\"" (which "java"))))
14279 (for-each (lambda (script) (install-file script bin)) scripts)
14280
14281 ;; Install JNI library
14282 (install-file "jni/libbbtoolsjni.so" jni)
14283
14284 ;; Install documentation
14285 (install-file "docs/readme.txt" doc)
14286 (copy-recursively "docs/guides" doc))
14287 #t)))
14288 #:jdk ,openjdk11))
14289 (inputs
14290 `(("gawk" ,gawk)
14291 ("java-eclipse-jdt-core" ,java-eclipse-jdt-core)
14292 ("java-eclipse-jdt-compiler-apt" ,java-eclipse-jdt-compiler-apt)
14293 ("java-openmpi" ,java-openmpi)))
14294 (home-page "http://sourceforge.net/projects/bbmap/")
14295 (synopsis "Aligner and other tools for short sequencing reads")
14296 (description
14297 "This package provides bioinformatic tools to align, deduplicate,
14298 reformat, filter and normalize DNA and RNA-seq data. It includes the
14299 following tools: BBMap, a short read aligner for DNA and RNA-seq data; BBNorm,
14300 a kmer-based error-correction and normalization tool; Dedupe, a tool to
14301 simplify assemblies by removing duplicate or contained subsequences that share
14302 a target percent identity; Reformat, to convert reads between
14303 fasta/fastq/scarf/fasta+qual/sam, interleaved/paired, and ASCII-33/64, at over
14304 500 MB/s; and BBDuk, a tool to filter, trim, or mask reads with kmer matches
14305 to an artifact/contaminant file.")
14306 (license license:bsd-3)))
14307
14308 (define-public velvet
14309 (package
14310 (name "velvet")
14311 (version "1.2.10")
14312 (source (origin
14313 (method url-fetch)
14314 (uri (string-append "https://www.ebi.ac.uk/~zerbino/velvet/"
14315 "velvet_" version ".tgz"))
14316 (sha256
14317 (base32
14318 "0h3njwy66p6bx14r3ar1byb0ccaxmxka4c65rn4iybyiqa4d8kc8"))
14319 ;; Delete bundled libraries
14320 (modules '((guix build utils)))
14321 (snippet
14322 '(begin
14323 (delete-file "Manual.pdf")
14324 (delete-file-recursively "third-party")
14325 #t))))
14326 (build-system gnu-build-system)
14327 (arguments
14328 `(#:make-flags '("OPENMP=t")
14329 #:test-target "test"
14330 #:phases
14331 (modify-phases %standard-phases
14332 (delete 'configure)
14333 (add-after 'unpack 'fix-zlib-include
14334 (lambda _
14335 (substitute* "src/binarySequences.c"
14336 (("../third-party/zlib-1.2.3/zlib.h") "zlib.h"))
14337 #t))
14338 (replace 'install
14339 (lambda* (#:key outputs #:allow-other-keys)
14340 (let* ((out (assoc-ref outputs "out"))
14341 (bin (string-append out "/bin"))
14342 (doc (string-append out "/share/doc/velvet")))
14343 (mkdir-p bin)
14344 (mkdir-p doc)
14345 (install-file "velveth" bin)
14346 (install-file "velvetg" bin)
14347 (install-file "Manual.pdf" doc)
14348 (install-file "Columbus_manual.pdf" doc)
14349 #t))))))
14350 (inputs
14351 `(("openmpi" ,openmpi)
14352 ("zlib" ,zlib)))
14353 (native-inputs
14354 `(("texlive" ,(texlive-union (list texlive-latex-graphics
14355 texlive-latex-hyperref)))))
14356 (home-page "https://www.ebi.ac.uk/~zerbino/velvet/")
14357 (synopsis "Nucleic acid sequence assembler for very short reads")
14358 (description
14359 "Velvet is a de novo genomic assembler specially designed for short read
14360 sequencing technologies, such as Solexa or 454. Velvet currently takes in
14361 short read sequences, removes errors then produces high quality unique
14362 contigs. It then uses paired read information, if available, to retrieve the
14363 repeated areas between contigs.")
14364 (license license:gpl2+)))
14365
14366 (define-public python-velocyto
14367 (package
14368 (name "python-velocyto")
14369 (version "0.17.17")
14370 (source
14371 (origin
14372 (method url-fetch)
14373 (uri (pypi-uri "velocyto" version))
14374 (sha256
14375 (base32
14376 "0fgygyzqgrq32dv6a00biq1p1cwi6kbl5iqblxq1kklj6b2mzmhs"))))
14377 (build-system python-build-system)
14378 (propagated-inputs
14379 `(("python-click" ,python-click)
14380 ("python-cython" ,python-cython)
14381 ("python-h5py" ,python-h5py)
14382 ("python-loompy" ,python-loompy)
14383 ("python-matplotlib" ,python-matplotlib)
14384 ("python-numba" ,python-numba)
14385 ("python-numpy" ,python-numpy)
14386 ("python-pandas" ,python-pandas)
14387 ("python-pysam" ,python-pysam)
14388 ("python-scikit-learn" ,python-scikit-learn)
14389 ("python-scipy" ,python-scipy)))
14390 (home-page "https://github.com/velocyto-team/velocyto.py")
14391 (synopsis "RNA velocity analysis for single cell RNA-seq data")
14392 (description
14393 "Velocyto is a library for the analysis of RNA velocity. Velocyto
14394 includes a command line tool and an analysis pipeline.")
14395 (license license:bsd-2)))
14396
14397 (define-public arriba
14398 (package
14399 (name "arriba")
14400 (version "1.0.1")
14401 (source
14402 (origin
14403 (method url-fetch)
14404 (uri (string-append "https://github.com/suhrig/arriba/releases/"
14405 "download/v" version "/arriba_v" version ".tar.gz"))
14406 (sha256
14407 (base32
14408 "0jx9656ry766vb8z08m1c3im87b0c82qpnjby9wz4kcz8vn87dx2"))))
14409 (build-system gnu-build-system)
14410 (arguments
14411 `(#:tests? #f ; there are none
14412 #:phases
14413 (modify-phases %standard-phases
14414 (replace 'configure
14415 (lambda* (#:key inputs #:allow-other-keys)
14416 (let ((htslib (assoc-ref inputs "htslib")))
14417 (substitute* "Makefile"
14418 (("-I\\$\\(HTSLIB\\)/htslib")
14419 (string-append "-I" htslib "/include/htslib"))
14420 ((" \\$\\(HTSLIB\\)/libhts.a")
14421 (string-append " " htslib "/lib/libhts.so"))))
14422 (substitute* "run_arriba.sh"
14423 (("^STAR ") (string-append (which "STAR") " "))
14424 (("samtools --version-only")
14425 (string-append (which "samtools") " --version-only"))
14426 (("samtools index")
14427 (string-append (which "samtools") " index"))
14428 (("samtools sort")
14429 (string-append (which "samtools") " sort")))
14430 #t))
14431 (replace 'install
14432 (lambda* (#:key outputs #:allow-other-keys)
14433 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
14434 (install-file "arriba" bin)
14435 (install-file "run_arriba.sh" bin)
14436 (install-file "draw_fusions.R" bin)
14437 (wrap-program (string-append bin "/draw_fusions.R")
14438 `("R_LIBS_SITE" ":" prefix (,(getenv "R_LIBS_SITE")))))
14439 #t)))))
14440 (inputs
14441 `(("htslib" ,htslib)
14442 ("r-minimal" ,r-minimal)
14443 ("r-circlize" ,r-circlize)
14444 ("r-genomicalignments" ,r-genomicalignments)
14445 ("r-genomicranges" ,r-genomicranges)
14446 ("samtools" ,samtools)
14447 ("star" ,star)
14448 ("zlib" ,zlib)))
14449 (home-page "https://github.com/suhrig/arriba")
14450 (synopsis "Gene fusion detection from RNA-Seq data ")
14451 (description
14452 "Arriba is a command-line tool for the detection of gene fusions from
14453 RNA-Seq data. It was developed for the use in a clinical research setting.
14454 Therefore, short runtimes and high sensitivity were important design criteria.
14455 It is based on the fast STAR aligner and the post-alignment runtime is
14456 typically just around two minutes. In contrast to many other fusion detection
14457 tools which build on STAR, Arriba does not require to reduce the
14458 @code{alignIntronMax} parameter of STAR to detect small deletions.")
14459 ;; All code is under the Expat license with the exception of
14460 ;; "draw_fusions.R", which is under GPLv3.
14461 (license (list license:expat license:gpl3))))
14462
14463 (define-public adapterremoval
14464 (package
14465 (name "adapterremoval")
14466 (version "2.3.0")
14467 (source
14468 (origin
14469 (method git-fetch)
14470 (uri (git-reference
14471 (url "https://github.com/MikkelSchubert/adapterremoval.git")
14472 (commit (string-append "v" version))))
14473 (file-name (git-file-name name version))
14474 (sha256
14475 (base32
14476 "1nf3ki5pfzalhrx2fr1y6pfqfi133yj2m7q4fj9irf5fb94bapwr"))))
14477 (build-system gnu-build-system)
14478 (arguments
14479 `(#:make-flags (list "COLOR_BUILD=no"
14480 (string-append "PREFIX="
14481 (assoc-ref %outputs "out")))
14482 #:test-target "test"
14483 #:phases
14484 (modify-phases %standard-phases
14485 (delete 'configure))))
14486 (inputs
14487 `(("zlib" ,zlib)))
14488 (home-page "https://adapterremoval.readthedocs.io/")
14489 (synopsis "Rapid sequence adapter trimming, identification, and read merging")
14490 (description
14491 "This program searches for and removes remnant adapter sequences from
14492 @dfn{High-Throughput Sequencing} (HTS) data and (optionally) trims low quality
14493 bases from the 3' end of reads following adapter removal. AdapterRemoval can
14494 analyze both single end and paired end data, and can be used to merge
14495 overlapping paired-ended reads into (longer) consensus sequences.
14496 Additionally, the AdapterRemoval may be used to recover a consensus adapter
14497 sequence for paired-ended data, for which this information is not available.")
14498 (license license:gpl3+)))
14499
14500 (define-public pplacer
14501 (let ((commit "807f6f3"))
14502 (package
14503 (name "pplacer")
14504 ;; The commit should be updated with each version change.
14505 (version "1.1.alpha19")
14506 (source
14507 (origin
14508 (method git-fetch)
14509 (uri (git-reference
14510 (url "https://github.com/matsen/pplacer.git")
14511 (commit (string-append "v" version))))
14512 (file-name (git-file-name name version))
14513 (sha256
14514 (base32 "11ppbbbx20p2g9wj3ff64dhnarb12q79v7qh4rk0gj6lkbz4n7cn"))))
14515 (build-system ocaml-build-system)
14516 (arguments
14517 `(#:modules ((guix build ocaml-build-system)
14518 (guix build utils)
14519 (ice-9 ftw))
14520 #:phases
14521 (modify-phases %standard-phases
14522 (delete 'configure)
14523 (add-after 'unpack 'fix-build-with-latest-ocaml
14524 (lambda _
14525 (substitute* "myocamlbuild.ml"
14526 (("dep \\[\"c_pam\"\\]" m)
14527 (string-append "flag [\"ocaml\"; \"compile\"] (A \"-unsafe-string\");\n"
14528 m))
14529 (("let run_and_read" m)
14530 (string-append "
14531 let split s ch =
14532 let x = ref [] in
14533 let rec go s =
14534 let pos = String.index s ch in
14535 x := (String.before s pos)::!x;
14536 go (String.after s (pos + 1))
14537 in
14538 try go s
14539 with Not_found -> !x
14540 let split_nl s = split s '\\n'
14541 let before_space s =
14542 try String.before s (String.index s ' ')
14543 with Not_found -> s
14544
14545 " m))
14546 (("run_and_read \"ocamlfind list \\| cut -d' ' -f1\"" m)
14547 (string-append "List.map before_space (split_nl & " m ")"))
14548 ((" blank_sep_strings &") "")
14549 ((" Lexing.from_string &") ""))
14550 #t))
14551 (add-after 'unpack 'replace-bundled-cddlib
14552 (lambda* (#:key inputs #:allow-other-keys)
14553 (let* ((cddlib-src (assoc-ref inputs "cddlib-src"))
14554 (local-dir "cddlib_guix"))
14555 (mkdir local-dir)
14556 (with-directory-excursion local-dir
14557 (invoke "tar" "xvf" cddlib-src))
14558 (let ((cddlib-src-folder
14559 (string-append local-dir "/"
14560 (list-ref (scandir local-dir) 2)
14561 "/lib-src")))
14562 (for-each make-file-writable (find-files "cdd_src" ".*"))
14563 (for-each
14564 (lambda (file)
14565 (copy-file file
14566 (string-append "cdd_src/" (basename file))))
14567 (find-files cddlib-src-folder ".*[ch]$")))
14568 #t)))
14569 (add-after 'unpack 'fix-makefile
14570 (lambda _
14571 ;; Remove system calls to 'git'.
14572 (substitute* "Makefile"
14573 (("^DESCRIPT:=pplacer-.*")
14574 (string-append
14575 "DESCRIPT:=pplacer-$(shell uname)-v" ,version "\n")))
14576 (substitute* "myocamlbuild.ml"
14577 (("git describe --tags --long .*\\\" with")
14578 (string-append
14579 "echo -n v" ,version "-" ,commit "\" with")))
14580 #t))
14581 (replace 'install
14582 (lambda* (#:key outputs #:allow-other-keys)
14583 (let* ((out (assoc-ref outputs "out"))
14584 (bin (string-append out "/bin")))
14585 (copy-recursively "bin" bin))
14586 #t)))))
14587 (inputs
14588 `(("zlib" ,zlib "static")
14589 ("gsl" ,gsl)
14590 ("ocaml-ounit" ,ocaml-ounit)
14591 ("ocaml-batteries" ,ocaml-batteries)
14592 ("ocaml-camlzip" ,camlzip)
14593 ("ocaml-csv" ,ocaml-csv)
14594 ("ocaml-sqlite3" ,ocaml-sqlite3)
14595 ("ocaml-xmlm" ,ocaml-xmlm)
14596 ("ocaml-mcl" ,ocaml-mcl)
14597 ("ocaml-gsl" ,ocaml-gsl-1)))
14598 (native-inputs
14599 `(("cddlib-src" ,(package-source cddlib))
14600 ("ocamlbuild" ,ocamlbuild)
14601 ("pkg-config" ,pkg-config)))
14602 (propagated-inputs
14603 `(("pplacer-scripts" ,pplacer-scripts)))
14604 (synopsis "Phylogenetic placement of biological sequences")
14605 (description
14606 "Pplacer places query sequences on a fixed reference phylogenetic tree
14607 to maximize phylogenetic likelihood or posterior probability according to a
14608 reference alignment. Pplacer is designed to be fast, to give useful
14609 information about uncertainty, and to offer advanced visualization and
14610 downstream analysis.")
14611 (home-page "http://matsen.fhcrc.org/pplacer")
14612 (license license:gpl3))))
14613
14614 ;; This package is installed alongside 'pplacer'. It is a separate package so
14615 ;; that it can use the python-build-system for the scripts that are
14616 ;; distributed alongside the main OCaml binaries.
14617 (define pplacer-scripts
14618 (package
14619 (inherit pplacer)
14620 (name "pplacer-scripts")
14621 (build-system python-build-system)
14622 (arguments
14623 `(#:python ,python-2
14624 #:phases
14625 (modify-phases %standard-phases
14626 (add-after 'unpack 'enter-scripts-dir
14627 (lambda _ (chdir "scripts") #t))
14628 (replace 'check
14629 (lambda _ (invoke "python" "-m" "unittest" "discover" "-v") #t))
14630 (add-after 'install 'wrap-executables
14631 (lambda* (#:key inputs outputs #:allow-other-keys)
14632 (let* ((out (assoc-ref outputs "out"))
14633 (bin (string-append out "/bin")))
14634 (let ((path (string-append
14635 (assoc-ref inputs "hmmer") "/bin:"
14636 (assoc-ref inputs "infernal") "/bin")))
14637 (display path)
14638 (wrap-program (string-append bin "/refpkg_align.py")
14639 `("PATH" ":" prefix (,path))))
14640 (let ((path (string-append
14641 (assoc-ref inputs "hmmer") "/bin")))
14642 (wrap-program (string-append bin "/hrefpkg_query.py")
14643 `("PATH" ":" prefix (,path)))))
14644 #t)))))
14645 (inputs
14646 `(("infernal" ,infernal)
14647 ("hmmer" ,hmmer)))
14648 (propagated-inputs
14649 `(("python-biopython" ,python2-biopython)
14650 ("taxtastic" ,taxtastic)))
14651 (synopsis "Pplacer Python scripts")))
14652
14653 (define-public python2-checkm-genome
14654 (package
14655 (name "python2-checkm-genome")
14656 (version "1.0.13")
14657 (source
14658 (origin
14659 (method url-fetch)
14660 (uri (pypi-uri "checkm-genome" version))
14661 (sha256
14662 (base32
14663 "0bm8gpxjmzxsxxl8lzwqhgx8g1dlnmp6znz7wv3hgb0gdjbf9dzz"))))
14664 (build-system python-build-system)
14665 (arguments
14666 `(#:python ,python-2
14667 #:tests? #f)) ; some tests are interactive
14668 (propagated-inputs
14669 `(("python-dendropy" ,python2-dendropy)
14670 ("python-matplotlib" ,python2-matplotlib)
14671 ("python-numpy" ,python2-numpy)
14672 ("python-pysam" ,python2-pysam)
14673 ("python-scipy" ,python2-scipy)))
14674 (home-page "http://pypi.python.org/pypi/checkm/")
14675 (synopsis "Assess the quality of putative genome bins")
14676 (description
14677 "CheckM provides a set of tools for assessing the quality of genomes
14678 recovered from isolates, single cells, or metagenomes. It provides robust
14679 estimates of genome completeness and contamination by using collocated sets of
14680 genes that are ubiquitous and single-copy within a phylogenetic lineage.
14681 Assessment of genome quality can also be examined using plots depicting key
14682 genomic characteristics (e.g., GC, coding density) which highlight sequences
14683 outside the expected distributions of a typical genome. CheckM also provides
14684 tools for identifying genome bins that are likely candidates for merging based
14685 on marker set compatibility, similarity in genomic characteristics, and
14686 proximity within a reference genome.")
14687 (license license:gpl3+)))
14688
14689 (define-public umi-tools
14690 (package
14691 (name "umi-tools")
14692 (version "1.0.0")
14693 (source
14694 (origin
14695 (method url-fetch)
14696 (uri (pypi-uri "umi_tools" version))
14697 (sha256
14698 (base32
14699 "08y3vz1vcx09whmbsn722lcs6jl9wyrh9i4p3k8j4cb1i32bij4a"))))
14700 (build-system python-build-system)
14701 (inputs
14702 `(("python-pandas" ,python-pandas)
14703 ("python-future" ,python-future)
14704 ("python-scipy" ,python-scipy)
14705 ("python-matplotlib" ,python-matplotlib)
14706 ("python-regex" ,python-regex)
14707 ("python-pysam" ,python-pysam)))
14708 (native-inputs
14709 `(("python-cython" ,python-cython)))
14710 (home-page "https://github.com/CGATOxford/UMI-tools")
14711 (synopsis "Tools for analyzing unique modular identifiers")
14712 (description "This package provides tools for dealing with @dfn{Unique
14713 Molecular Identifiers} (UMIs) and @dfn{Random Molecular Tags} (RMTs) in
14714 genetic sequences. There are six tools: the @code{extract} and
14715 @code{whitelist} commands are used to prepare a fastq containing UMIs @code{+/-}
14716 cell barcodes for alignment. The remaining commands, @code{group},
14717 @code{dedup}, and @{count}/@code{count_tab}, are used to identify PCR
14718 duplicates using the UMIs and perform different levels of analysis depending
14719 on the needs of the user.")
14720 (license license:expat)))
14721
14722 (define-public ataqv
14723 (package
14724 (name "ataqv")
14725 (version "1.0.0")
14726 (source
14727 (origin
14728 (method git-fetch)
14729 (uri (git-reference
14730 (url "https://github.com/ParkerLab/ataqv.git")
14731 (commit version)))
14732 (file-name (git-file-name name version))
14733 (sha256
14734 (base32
14735 "031xr6jx1aprh26y5b1lv3gzrlmzg4alfl73vvshymx8cq8asrqi"))))
14736 (build-system gnu-build-system)
14737 (arguments
14738 `(#:make-flags
14739 (list (string-append "prefix=" (assoc-ref %outputs "out"))
14740 (string-append "BOOST_ROOT="
14741 (assoc-ref %build-inputs "boost"))
14742 (string-append "HTSLIB_ROOT="
14743 (assoc-ref %build-inputs "htslib")))
14744 #:test-target "test"
14745 #:phases
14746 (modify-phases %standard-phases
14747 (delete 'configure))))
14748 (inputs
14749 `(("boost" ,boost)
14750 ("htslib" ,htslib)
14751 ("ncurses" ,ncurses)
14752 ("zlib" ,zlib)))
14753 (native-inputs
14754 `(("lcov" ,lcov)))
14755 (home-page "https://github.com/ParkerLab/ataqv")
14756 (synopsis "Toolkit for quality control and visualization of ATAC-seq data")
14757 (description "This package provides a toolkit for measuring and comparing
14758 ATAC-seq results. It was written to make it easier to spot differences that
14759 might be caused by ATAC-seq library prep or sequencing. The main program,
14760 @code{ataqv}, examines aligned reads and reports some basic metrics.")
14761 (license license:gpl3+)))
14762
14763 (define-public r-psiplot
14764 (package
14765 (name "r-psiplot")
14766 (version "2.3.0")
14767 (source
14768 (origin
14769 (method git-fetch)
14770 (uri (git-reference
14771 (url "https://github.com/kcha/psiplot.git")
14772 (commit (string-append "v" version))))
14773 (file-name (git-file-name name version))
14774 (sha256
14775 (base32 "08438h16cfry5kqh3y9hs8q1b1a8bxhblsm75knviz5r6q0n1jxh"))))
14776 (build-system r-build-system)
14777 (propagated-inputs
14778 `(("r-mass" ,r-mass)
14779 ("r-dplyr" ,r-dplyr)
14780 ("r-tidyr" ,r-tidyr)
14781 ("r-purrr" ,r-purrr)
14782 ("r-readr" ,r-readr)
14783 ("r-magrittr" ,r-magrittr)
14784 ("r-ggplot2" ,r-ggplot2)))
14785 (home-page "https://github.com/kcha/psiplot")
14786 (synopsis "Plot percent spliced-in values of alternatively-spliced exons")
14787 (description
14788 "PSIplot is an R package for generating plots of @dfn{percent
14789 spliced-in} (PSI) values of alternatively-spliced exons that were computed by
14790 vast-tools, an RNA-Seq pipeline for alternative splicing analysis. The plots
14791 are generated using @code{ggplot2}.")
14792 (license license:expat)))
14793
14794 (define-public python-ont-fast5-api
14795 (package
14796 (name "python-ont-fast5-api")
14797 (version "1.4.4")
14798 (source
14799 (origin
14800 (method git-fetch)
14801 (uri (git-reference
14802 (url "https://github.com/nanoporetech/ont_fast5_api.git")
14803 (commit (string-append "release_" version))))
14804 (file-name (git-file-name name version))
14805 (sha256
14806 (base32
14807 "03cbq4zbbwhll8ml2m9k8sa31mirsvcbjkrq1yna0kkzz9fad5fm"))))
14808 (build-system python-build-system)
14809 (propagated-inputs
14810 `(("python-numpy" ,python-numpy)
14811 ("python-six" ,python-six)
14812 ("python-h5py" ,python-h5py)
14813 ("python-progressbar33" ,python-progressbar33)))
14814 (home-page "https://github.com/nanoporetech/ont_fast5_api")
14815 (synopsis "Interface to HDF5 files of the Oxford Nanopore fast5 file format")
14816 (description
14817 "This package provides a concrete implementation of the fast5 file schema
14818 using the generic @code{h5py} library, plain-named methods to interact with
14819 and reflect the fast5 file schema, and tools to convert between
14820 @code{multi_read} and @code{single_read} formats.")
14821 (license license:mpl2.0)))
14822
14823 (define-public tbsp
14824 (let ((commit "ec8fff4410cfb13a677dbbb95cbbc60217e64907")
14825 (revision "1"))
14826 (package
14827 (name "tbsp")
14828 (version (git-version "1.0.0" revision commit))
14829 (source
14830 (origin
14831 (method git-fetch)
14832 (uri (git-reference
14833 (url "https://github.com/phoenixding/tbsp.git")
14834 (commit commit)))
14835 (file-name (git-file-name name version))
14836 (sha256
14837 (base32
14838 "025ym14x8gbd6hb55lsinqj6f5qzw36i10klgs7ldzxxd7s39ki1"))))
14839 (build-system python-build-system)
14840 (arguments '(#:tests? #f)) ; no tests included
14841 (inputs
14842 `(("python-matplotlib" ,python-matplotlib)
14843 ("python-networkx" ,python-networkx)
14844 ("python-numpy" ,python-numpy)
14845 ("python-pybigwig" ,python-pybigwig)
14846 ("python-biopython" ,python-biopython)
14847 ("python-scikit-learn" ,python-scikit-learn)
14848 ("python-scipy" ,python-scipy)))
14849 (home-page "https://github.com/phoenixding/tbsp/")
14850 (synopsis "SNP-based trajectory inference")
14851 (description
14852 "Several studies focus on the inference of developmental and response
14853 trajectories from single cell RNA-Seq (scRNA-Seq) data. A number of
14854 computational methods, often referred to as pseudo-time ordering, have been
14855 developed for this task. CRISPR has also been used to reconstruct lineage
14856 trees by inserting random mutations. The tbsp package implements an
14857 alternative method to detect significant, cell type specific sequence
14858 mutations from scRNA-Seq data.")
14859 (license license:expat))))
14860
14861 (define-public tabixpp
14862 (package
14863 (name "tabixpp")
14864 (version "1.0.0")
14865 (source (origin
14866 (method git-fetch)
14867 (uri (git-reference
14868 (url "https://github.com/ekg/tabixpp")
14869 (commit (string-append "v" version))))
14870 (file-name (git-file-name name version))
14871 (sha256
14872 (base32 "08vx6nsipk971cyr8z53rnzwkvlld63kcn1fw0pwddynz91xfny8"))))
14873 (build-system gnu-build-system)
14874 (inputs
14875 `(("htslib" ,htslib)
14876 ("zlib" ,zlib)))
14877 (arguments
14878 `(#:tests? #f ; There are no tests to run.
14879 #:phases
14880 (modify-phases %standard-phases
14881 (delete 'configure) ; There is no configure phase.
14882 ;; The build phase needs overriding the location of htslib.
14883 (replace 'build
14884 (lambda* (#:key inputs #:allow-other-keys)
14885 (let ((htslib-ref (assoc-ref inputs "htslib")))
14886 (invoke "make"
14887 (string-append "HTS_LIB=" htslib-ref "/lib/libhts.a")
14888 "HTS_HEADERS=" ; No need to check for headers here.
14889 (string-append "LIBPATH=-L. -L" htslib-ref "/include")))))
14890 (replace 'install
14891 (lambda* (#:key outputs #:allow-other-keys)
14892 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
14893 (install-file "tabix++" bin))
14894 #t)))))
14895 (home-page "https://github.com/ekg/tabixpp")
14896 (synopsis "C++ wrapper around tabix project")
14897 (description "This is a C++ wrapper around the Tabix project which abstracts
14898 some of the details of opening and jumping in tabix-indexed files.")
14899 (license license:expat)))
14900
14901 (define tabixpp-freebayes
14902 ;; This version works with FreeBayes while the released
14903 ;; version doesn't. The released creates a variable with the name \"vcf\"
14904 ;; somewhere, which is also the name of a namespace in vcflib.
14905 (let ((commit "bbc63a49acc52212199f92e9e3b8fba0a593e3f7"))
14906 (package
14907 (inherit tabixpp)
14908 (name "tabixpp-freebayes")
14909 (version (git-version "0.0.0" "1" commit))
14910 (source (origin
14911 (method git-fetch)
14912 (uri (git-reference
14913 (url "https://github.com/ekg/tabixpp/")
14914 (commit commit)))
14915 (file-name (git-file-name name version))
14916 (sha256
14917 (base32 "017qsmsc2kyiyzqr9nl8cc6pfldxf16dbn8flx5i59mbqr9ydi7g")))))))
14918
14919 (define-public smithwaterman
14920 ;; TODO: Upgrading smithwaterman breaks FreeBayes.
14921 (let ((commit "203218b47d45ac56ef234716f1bd4c741b289be1"))
14922 (package
14923 (name "smithwaterman")
14924 (version (string-append "0-1." (string-take commit 7)))
14925 (source (origin
14926 (method git-fetch)
14927 (uri (git-reference
14928 (url "https://github.com/ekg/smithwaterman/")
14929 (commit commit)))
14930 (file-name (git-file-name name version))
14931 (sha256
14932 (base32 "0z9xsmsv452kgdfbbwydyc6nymg3fwyv8zswls8qjin3r4ia4415"))))
14933 (build-system gnu-build-system)
14934 (arguments
14935 `(#:tests? #f ; There are no tests to run.
14936 #:phases
14937 (modify-phases %standard-phases
14938 (delete 'configure) ; There is no configure phase.
14939 (replace 'install
14940 (lambda* (#:key outputs #:allow-other-keys)
14941 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
14942 (install-file "smithwaterman" bin))
14943 #t)))))
14944 (home-page "https://github.com/ekg/smithwaterman")
14945 (synopsis "Implementation of the Smith-Waterman algorithm")
14946 (description "Implementation of the Smith-Waterman algorithm.")
14947 ;; The licensing terms are unclear: https://github.com/ekg/smithwaterman/issues/9.
14948 (license (list license:gpl2 license:expat)))))
14949
14950 (define-public multichoose
14951 (package
14952 (name "multichoose")
14953 (version "1.0.3")
14954 (source (origin
14955 (method git-fetch)
14956 (uri (git-reference
14957 (url "https://github.com/ekg/multichoose/")
14958 (commit (string-append "v" version))))
14959 (file-name (git-file-name name version))
14960 (sha256
14961 (base32 "0ci5fqvmpamwgxvmyd79ygj6n3bnbl3vc7b6h1sxz58186sm3pfs"))))
14962 (build-system gnu-build-system)
14963 (arguments
14964 `(#:tests? #f ; Tests require node.
14965 #:phases
14966 (modify-phases %standard-phases
14967 (delete 'configure) ; There is no configure phase.
14968 (replace 'install
14969 (lambda* (#:key outputs #:allow-other-keys)
14970 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
14971 ;; TODO: There are Python modules for these programs too.
14972 (install-file "multichoose" bin)
14973 (install-file "multipermute" bin))
14974 #t)))))
14975 (home-page "https://github.com/ekg/multichoose")
14976 (synopsis "Efficient loopless multiset combination generation algorithm")
14977 (description "This library implements an efficient loopless multiset
14978 combination generation algorithm which is (approximately) described in
14979 \"Loopless algorithms for generating permutations, combinations, and other
14980 combinatorial configurations.\", G. Ehrlich - Journal of the ACM (JACM),
14981 1973. (Algorithm 7.)")
14982 (license license:expat)))
14983
14984 (define-public fsom
14985 (let ((commit "a6ef318fbd347c53189384aef7f670c0e6ce89a3"))
14986 (package
14987 (name "fsom")
14988 (version (git-version "0.0.0" "1" commit))
14989 (source (origin
14990 (method git-fetch)
14991 (uri (git-reference
14992 (url "https://github.com/ekg/fsom/")
14993 (commit commit)))
14994 (file-name (git-file-name name version))
14995 (sha256
14996 (base32 "0gw1lpvr812pywg9y546x0h1hhj261xwls41r6kqhddjlrcjc0pi"))))
14997 (build-system gnu-build-system)
14998 (arguments
14999 `(#:tests? #f ; There are no tests to run.
15000 #:phases
15001 (modify-phases %standard-phases
15002 (delete 'configure) ; There is no configure phase.
15003 (replace 'install
15004 (lambda* (#:key outputs #:allow-other-keys)
15005 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
15006 (install-file "fsom" bin))
15007 #t)))))
15008 (home-page "https://github.com/ekg/fsom")
15009 (synopsis "Manage SOM (Self-Organizing Maps) neural networks")
15010 (description "A tiny C library for managing SOM (Self-Organizing Maps)
15011 neural networks.")
15012 (license license:gpl3))))
15013
15014 (define-public fastahack
15015 (let ((commit "c68cebb4f2e5d5d2b70cf08fbdf1944e9ab2c2dd"))
15016 (package
15017 (name "fastahack")
15018 (version (git-version "0.0.0" "1" commit))
15019 (source (origin
15020 (method git-fetch)
15021 (uri (git-reference
15022 (url "https://github.com/ekg/fastahack/")
15023 (commit commit)))
15024 (file-name (git-file-name name version))
15025 (sha256
15026 (base32 "0hfdv67l9g611i2ck4l92pd6ygmsp9g1ph4zx1ni7qkpsikf0l19"))))
15027 (build-system gnu-build-system)
15028 (arguments
15029 `(#:tests? #f ; Unclear how to run tests: https://github.com/ekg/fastahack/issues/15
15030 #:phases
15031 (modify-phases %standard-phases
15032 (delete 'configure) ; There is no configure phase.
15033 (replace 'install
15034 (lambda* (#:key outputs #:allow-other-keys)
15035 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
15036 (install-file "fastahack" bin))
15037 #t)))))
15038 (home-page "https://github.com/ekg/fastahack")
15039 (synopsis "Indexing and sequence extraction from FASTA files")
15040 (description "Fastahack is a small application for indexing and
15041 extracting sequences and subsequences from FASTA files. The included library
15042 provides a FASTA reader and indexer that can be embedded into applications
15043 which would benefit from directly reading subsequences from FASTA files. The
15044 library automatically handles index file generation and use.")
15045 (license (list license:expat license:gpl2)))))
15046
15047 (define-public vcflib
15048 (let ((commit "5ac091365fdc716cc47cc5410bb97ee5dc2a2c92")
15049 (revision "1"))
15050 (package
15051 (name "vcflib")
15052 (version (git-version "0.0.0" revision commit))
15053 (source
15054 (origin
15055 (method git-fetch)
15056 (uri (git-reference
15057 (url "https://github.com/vcflib/vcflib/")
15058 (commit commit)))
15059 (file-name (git-file-name name version))
15060 (sha256
15061 (base32 "1gijvcz1lcdn5kvgzb671l6iby0379qk00nqmcrszgk67hfwx6kq"))))
15062 (build-system gnu-build-system)
15063 (inputs
15064 `(("zlib" ,zlib)))
15065 (native-inputs
15066 `(("perl" ,perl)
15067 ("python" ,python-2)
15068 ;; Submodules.
15069 ;; This package builds against the .o files so we need to extract the source.
15070 ("tabixpp-src" ,(package-source tabixpp-freebayes))
15071 ("smithwaterman-src" ,(package-source smithwaterman))
15072 ("multichoose-src" ,(package-source multichoose))
15073 ("fsom-src" ,(package-source fsom))
15074 ("filevercmp-src" ,(package-source filevercmp))
15075 ("fastahack-src" ,(package-source fastahack))
15076 ("intervaltree-src"
15077 ,(origin
15078 (method git-fetch)
15079 (uri (git-reference
15080 (url "https://github.com/ekg/intervaltree/")
15081 (commit "dbb4c513d1ad3baac516fc1484c995daf9b42838")))
15082 (file-name "intervaltree-src-checkout")
15083 (sha256
15084 (base32 "1fy5qbj4bg8d2bjysvaa9wfnqn2rj2sk5yra2h4l5pzvy53f23fj"))))))
15085 (arguments
15086 `(#:tests? #f ; no tests
15087 #:phases
15088 (modify-phases %standard-phases
15089 (delete 'configure)
15090 (delete 'check)
15091 (add-after 'unpack 'unpack-submodule-sources
15092 (lambda* (#:key inputs #:allow-other-keys)
15093 (let ((unpack (lambda (source target)
15094 (with-directory-excursion target
15095 (if (file-is-directory? (assoc-ref inputs source))
15096 (copy-recursively (assoc-ref inputs source) ".")
15097 (invoke "tar" "xvf"
15098 (assoc-ref inputs source)
15099 "--strip-components=1"))))))
15100 (and
15101 (unpack "intervaltree-src" "intervaltree")
15102 (unpack "fastahack-src" "fastahack")
15103 (unpack "filevercmp-src" "filevercmp")
15104 (unpack "fsom-src" "fsom")
15105 (unpack "multichoose-src" "multichoose")
15106 (unpack "smithwaterman-src" "smithwaterman")
15107 (unpack "tabixpp-src" "tabixpp")))))
15108 (replace 'build
15109 (lambda* (#:key inputs make-flags #:allow-other-keys)
15110 (with-directory-excursion "tabixpp"
15111 (invoke "make"))
15112 (invoke "make" "CC=gcc"
15113 (string-append "CFLAGS=\"" "-Itabixpp " "\"")
15114 "all")))
15115 (replace 'install
15116 (lambda* (#:key outputs #:allow-other-keys)
15117 (let ((bin (string-append (assoc-ref outputs "out") "/bin"))
15118 (lib (string-append (assoc-ref outputs "out") "/lib")))
15119 (for-each (lambda (file)
15120 (install-file file bin))
15121 (find-files "bin" ".*"))
15122 ;; The header files in src/ do not interface libvcflib,
15123 ;; therefore they are left out.
15124 (install-file "libvcflib.a" lib))
15125 #t)))))
15126 (home-page "https://github.com/vcflib/vcflib/")
15127 (synopsis "Library for parsing and manipulating VCF files")
15128 (description "Vcflib provides methods to manipulate and interpret
15129 sequence variation as it can be described by VCF. It is both an API for parsing
15130 and operating on records of genomic variation as it can be described by the VCF
15131 format, and a collection of command-line utilities for executing complex
15132 manipulations on VCF files.")
15133 (license license:expat))))
15134
15135 (define-public freebayes
15136 (let ((commit "3ce827d8ebf89bb3bdc097ee0fe7f46f9f30d5fb")
15137 (revision "1")
15138 (version "1.0.2"))
15139 (package
15140 (name "freebayes")
15141 (version (git-version version revision commit))
15142 (source (origin
15143 (method git-fetch)
15144 (uri (git-reference
15145 (url "https://github.com/ekg/freebayes.git")
15146 (commit commit)))
15147 (file-name (git-file-name name version))
15148 (sha256
15149 (base32 "1sbzwmcbn78ybymjnhwk7qc5r912azy5vqz2y7y81616yc3ba2a2"))))
15150 (build-system gnu-build-system)
15151 (inputs
15152 `(("bamtools" ,bamtools)
15153 ("htslib" ,htslib)
15154 ("zlib" ,zlib)))
15155 (native-inputs
15156 `(("bc" ,bc) ; Needed for running tests.
15157 ("samtools" ,samtools) ; Needed for running tests.
15158 ("parallel" ,parallel) ; Needed for running tests.
15159 ("perl" ,perl) ; Needed for running tests.
15160 ("procps" ,procps) ; Needed for running tests.
15161 ("python" ,python-2) ; Needed for running tests.
15162 ("vcflib-src" ,(package-source vcflib))
15163 ;; These are submodules for the vcflib version used in freebayes.
15164 ;; This package builds against the .o files so we need to extract the source.
15165 ("tabixpp-src" ,(package-source tabixpp-freebayes))
15166 ("smithwaterman-src" ,(package-source smithwaterman))
15167 ("multichoose-src" ,(package-source multichoose))
15168 ("fsom-src" ,(package-source fsom))
15169 ("filevercmp-src" ,(package-source filevercmp))
15170 ("fastahack-src" ,(package-source fastahack))
15171 ("intervaltree-src"
15172 ,(origin
15173 (method git-fetch)
15174 (uri (git-reference
15175 (url "https://github.com/ekg/intervaltree/")
15176 (commit "dbb4c513d1ad3baac516fc1484c995daf9b42838")))
15177 (file-name "intervaltree-src-checkout")
15178 (sha256
15179 (base32 "1fy5qbj4bg8d2bjysvaa9wfnqn2rj2sk5yra2h4l5pzvy53f23fj"))))
15180 ;; These submodules are needed to run the tests.
15181 ("bash-tap-src" ,(package-source bash-tap))
15182 ("test-simple-bash-src"
15183 ,(origin
15184 (method git-fetch)
15185 (uri (git-reference
15186 (url "https://github.com/ingydotnet/test-simple-bash/")
15187 (commit "124673ff204b01c8e96b7fc9f9b32ee35d898acc")))
15188 (file-name "test-simple-bash-src-checkout")
15189 (sha256
15190 (base32 "043plp6z0x9yf7mdpky1fw7zcpwn1p47px95w9mh16603zqqqpga"))))))
15191 (arguments
15192 `(#:make-flags
15193 (list "CC=gcc"
15194 (string-append "BAMTOOLS_ROOT="
15195 (assoc-ref %build-inputs "bamtools")))
15196 #:test-target "test"
15197 #:phases
15198 (modify-phases %standard-phases
15199 (delete 'configure)
15200 (add-after 'unpack 'fix-tests
15201 (lambda _
15202 (substitute* "test/t/01_call_variants.t"
15203 (("grep -P \"\\(\\\\t500\\$\\|\\\\t11000\\$\\|\\\\t1000\\$\\)\"")
15204 "grep -E ' (500|11000|1000)$'"))
15205 #t))
15206 (add-after 'unpack 'unpack-submodule-sources
15207 (lambda* (#:key inputs #:allow-other-keys)
15208 (let ((unpack (lambda (source target)
15209 (with-directory-excursion target
15210 (if (file-is-directory? (assoc-ref inputs source))
15211 (copy-recursively (assoc-ref inputs source) ".")
15212 (invoke "tar" "xvf"
15213 (assoc-ref inputs source)
15214 "--strip-components=1"))))))
15215 (and
15216 (unpack "vcflib-src" "vcflib")
15217 (unpack "fastahack-src" "vcflib/fastahack")
15218 (unpack "filevercmp-src" "vcflib/filevercmp")
15219 (unpack "fsom-src" "vcflib/fsom")
15220 (unpack "intervaltree-src" "vcflib/intervaltree")
15221 (unpack "multichoose-src" "vcflib/multichoose")
15222 (unpack "smithwaterman-src" "vcflib/smithwaterman")
15223 (unpack "tabixpp-src" "vcflib/tabixpp")
15224 (unpack "test-simple-bash-src" "test/test-simple-bash")
15225 (unpack "bash-tap-src" "test/bash-tap")))))
15226 (add-after 'unpack-submodule-sources 'fix-makefiles
15227 (lambda _
15228 ;; We don't have the .git folder to get the version tag from.
15229 (substitute* "vcflib/Makefile"
15230 (("^GIT_VERSION.*")
15231 (string-append "GIT_VERSION = v" ,version)))
15232 (substitute* "src/Makefile"
15233 (("-I\\$\\(BAMTOOLS_ROOT\\)/src")
15234 "-I$(BAMTOOLS_ROOT)/include/bamtools"))
15235 #t))
15236 (add-before 'build 'build-tabixpp-and-vcflib
15237 (lambda* (#:key inputs make-flags #:allow-other-keys)
15238 (with-directory-excursion "vcflib"
15239 (with-directory-excursion "tabixpp"
15240 (apply invoke "make"
15241 (string-append "HTS_LIB="
15242 (assoc-ref inputs "htslib")
15243 "/lib/libhts.a")
15244 make-flags))
15245 (apply invoke "make"
15246 (string-append "CFLAGS=-Itabixpp")
15247 "all"
15248 make-flags))))
15249 (replace 'install
15250 (lambda* (#:key outputs #:allow-other-keys)
15251 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
15252 (install-file "bin/freebayes" bin)
15253 (install-file "bin/bamleftalign" bin))
15254 #t)))))
15255 (home-page "https://github.com/ekg/freebayes")
15256 (synopsis "Haplotype-based variant detector")
15257 (description "FreeBayes is a Bayesian genetic variant detector designed to
15258 find small polymorphisms, specifically SNPs (single-nucleotide polymorphisms),
15259 indels (insertions and deletions), MNPs (multi-nucleotide polymorphisms), and
15260 complex events (composite insertion and substitution events) smaller than the
15261 length of a short-read sequencing alignment.")
15262 (license license:expat))))
15263
15264 (define-public samblaster
15265 (package
15266 (name "samblaster")
15267 (version "0.1.24")
15268 (source (origin
15269 (method git-fetch)
15270 (uri (git-reference
15271 (url "https://github.com/GregoryFaust/samblaster.git")
15272 (commit (string-append "v." version))))
15273 (file-name (git-file-name name version))
15274 (sha256
15275 (base32
15276 "0iv2ddfw8363vb2x8gr3p8g88whb6mb9m0pf71i2cqsbv6jghap7"))))
15277 (build-system gnu-build-system)
15278 (arguments
15279 `(#:tests? #f ; there are none
15280 #:phases
15281 (modify-phases %standard-phases
15282 (delete 'configure) ; There is no configure phase.
15283 (replace 'install
15284 (lambda* (#:key outputs #:allow-other-keys)
15285 (install-file "samblaster"
15286 (string-append (assoc-ref outputs "out") "/bin"))
15287 #t)))))
15288 (home-page "https://github.com/GregoryFaust/samblaster")
15289 (synopsis "Mark duplicates in paired-end SAM files")
15290 (description "Samblaster is a fast and flexible program for marking
15291 duplicates in read-id grouped paired-end SAM files. It can also optionally
15292 output discordant read pairs and/or split read mappings to separate SAM files,
15293 and/or unmapped/clipped reads to a separate FASTQ file. When marking
15294 duplicates, samblaster will require approximately 20MB of memory per 1M read
15295 pairs.")
15296 (license license:expat)))
15297
15298 (define-public r-velocyto
15299 (let ((commit "d7790346cb99f49ab9c2b23ba70dcf9d2c9fc350")
15300 (revision "1"))
15301 (package
15302 (name "r-velocyto")
15303 (version (git-version "0.6" revision commit))
15304 (source
15305 (origin
15306 (method git-fetch)
15307 (uri (git-reference
15308 (url "https://github.com/velocyto-team/velocyto.R.git")
15309 (commit commit)))
15310 (file-name (git-file-name name version))
15311 (sha256
15312 (base32
15313 "16wqf70j7rd7pay2q513iyz12i8n9vrpg1bisah4lddbcpx5dz1n"))))
15314 (build-system r-build-system)
15315 (inputs
15316 `(("boost" ,boost)))
15317 (propagated-inputs
15318 `(("r-hdf5r" ,r-hdf5r)
15319 ("r-mass" ,r-mass)
15320 ("r-mgcv" ,r-mgcv)
15321 ("r-pcamethods" ,r-pcamethods)
15322 ("r-rcpp" ,r-rcpp)
15323 ("r-rcpparmadillo" ,r-rcpparmadillo)
15324 ;; Suggested packages
15325 ("r-rtsne" ,r-rtsne)
15326 ("r-cluster" ,r-cluster)
15327 ("r-abind" ,r-abind)
15328 ("r-h5" ,r-h5)
15329 ("r-biocgenerics" ,r-biocgenerics)
15330 ("r-genomicalignments" ,r-genomicalignments)
15331 ("r-rsamtools" ,r-rsamtools)
15332 ("r-edger" ,r-edger)
15333 ("r-igraph" ,r-igraph)))
15334 (home-page "http://velocyto.org")
15335 (synopsis "RNA velocity estimation in R")
15336 (description
15337 "This package provides basic routines for estimation of gene-specific
15338 transcriptional derivatives and visualization of the resulting velocity
15339 patterns.")
15340 (license license:gpl3))))
15341
15342 (define-public methyldackel
15343 (package
15344 (name "methyldackel")
15345 (version "0.4.0")
15346 (source (origin
15347 (method git-fetch)
15348 (uri (git-reference
15349 (url "https://github.com/dpryan79/MethylDackel.git")
15350 (commit version)))
15351 (file-name (git-file-name name version))
15352 (sha256
15353 (base32
15354 "10gh8k0ca92kywnrw5pkacq3g6r8s976s12k8jhp8g3g49q9a97g"))))
15355 (build-system gnu-build-system)
15356 (arguments
15357 `(#:test-target "test"
15358 #:make-flags
15359 (list "CC=gcc"
15360 (string-append "prefix="
15361 (assoc-ref %outputs "out") "/bin/"))
15362 #:phases
15363 (modify-phases %standard-phases
15364 (replace 'configure
15365 (lambda* (#:key outputs #:allow-other-keys)
15366 (substitute* "Makefile"
15367 (("install MethylDackel \\$\\(prefix\\)" match)
15368 (string-append "install -d $(prefix); " match)))
15369 #t)))))
15370 (inputs
15371 `(("htslib" ,htslib)
15372 ("zlib" ,zlib)))
15373 ;; Needed for tests
15374 (native-inputs
15375 `(("python" ,python-wrapper)))
15376 (home-page "https://github.com/dpryan79/MethylDackel")
15377 (synopsis "Universal methylation extractor for BS-seq experiments")
15378 (description
15379 "MethylDackel will process a coordinate-sorted and indexed BAM or CRAM
15380 file containing some form of BS-seq alignments and extract per-base
15381 methylation metrics from them. MethylDackel requires an indexed fasta file
15382 containing the reference genome as well.")
15383 ;; See https://github.com/dpryan79/MethylDackel/issues/85
15384 (license license:expat)))