gnu: r-affy: Update to 1.66.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, 2020 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, 2020 Roel Janssen <roel@gnu.org>
7 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
8 ;;; Copyright © 2016, 2020 Marius Bakke <mbakke@fastmail.com>
9 ;;; Copyright © 2016, 2018 Raoul Bonnal <ilpuccio.febo@gmail.com>
10 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
11 ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
12 ;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
13 ;;; Copyright © 2018 Gábor Boskovits <boskovits@gmail.com>
14 ;;; Copyright © 2018, 2019 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
15 ;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
16 ;;; Copyright © 2019 Brian Leung <bkleung89@gmail.com>
17 ;;; Copyright © 2019 Brett Gilio <brettg@gnu.org>
18 ;;; Copyright © 2020 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
19 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
20 ;;;
21 ;;; This file is part of GNU Guix.
22 ;;;
23 ;;; GNU Guix is free software; you can redistribute it and/or modify it
24 ;;; under the terms of the GNU General Public License as published by
25 ;;; the Free Software Foundation; either version 3 of the License, or (at
26 ;;; your option) any later version.
27 ;;;
28 ;;; GNU Guix is distributed in the hope that it will be useful, but
29 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
30 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31 ;;; GNU General Public License for more details.
32 ;;;
33 ;;; You should have received a copy of the GNU General Public License
34 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
35
36 (define-module (gnu packages bioinformatics)
37 #:use-module ((guix licenses) #:prefix license:)
38 #:use-module (guix packages)
39 #:use-module (guix utils)
40 #:use-module (guix download)
41 #:use-module (guix git-download)
42 #:use-module (guix hg-download)
43 #:use-module (guix build-system ant)
44 #:use-module (guix build-system gnu)
45 #:use-module (guix build-system cmake)
46 #:use-module (guix build-system go)
47 #:use-module (guix build-system haskell)
48 #:use-module (guix build-system meson)
49 #:use-module (guix build-system ocaml)
50 #:use-module (guix build-system perl)
51 #:use-module (guix build-system python)
52 #:use-module (guix build-system r)
53 #:use-module (guix build-system ruby)
54 #:use-module (guix build-system scons)
55 #:use-module (guix build-system trivial)
56 #:use-module (gnu packages)
57 #:use-module (gnu packages autotools)
58 #:use-module (gnu packages algebra)
59 #:use-module (gnu packages base)
60 #:use-module (gnu packages bash)
61 #:use-module (gnu packages bison)
62 #:use-module (gnu packages bioconductor)
63 #:use-module (gnu packages boost)
64 #:use-module (gnu packages check)
65 #:use-module (gnu packages code)
66 #:use-module (gnu packages compression)
67 #:use-module (gnu packages cpio)
68 #:use-module (gnu packages cran)
69 #:use-module (gnu packages curl)
70 #:use-module (gnu packages documentation)
71 #:use-module (gnu packages databases)
72 #:use-module (gnu packages datastructures)
73 #:use-module (gnu packages dlang)
74 #:use-module (gnu packages file)
75 #:use-module (gnu packages flex)
76 #:use-module (gnu packages gawk)
77 #:use-module (gnu packages gcc)
78 #:use-module (gnu packages gd)
79 #:use-module (gnu packages golang)
80 #:use-module (gnu packages glib)
81 #:use-module (gnu packages graph)
82 #:use-module (gnu packages graphviz)
83 #:use-module (gnu packages groff)
84 #:use-module (gnu packages gtk)
85 #:use-module (gnu packages guile)
86 #:use-module (gnu packages guile-xyz)
87 #:use-module (gnu packages haskell-check)
88 #:use-module (gnu packages haskell-web)
89 #:use-module (gnu packages haskell-xyz)
90 #:use-module (gnu packages image)
91 #:use-module (gnu packages imagemagick)
92 #:use-module (gnu packages java)
93 #:use-module (gnu packages java-compression)
94 #:use-module (gnu packages jemalloc)
95 #:use-module (gnu packages linux)
96 #:use-module (gnu packages lisp-xyz)
97 #:use-module (gnu packages logging)
98 #:use-module (gnu packages machine-learning)
99 #:use-module (gnu packages man)
100 #:use-module (gnu packages maths)
101 #:use-module (gnu packages mpi)
102 #:use-module (gnu packages ncurses)
103 #:use-module (gnu packages ocaml)
104 #:use-module (gnu packages pcre)
105 #:use-module (gnu packages parallel)
106 #:use-module (gnu packages pdf)
107 #:use-module (gnu packages perl)
108 #:use-module (gnu packages perl-check)
109 #:use-module (gnu packages pkg-config)
110 #:use-module (gnu packages popt)
111 #:use-module (gnu packages protobuf)
112 #:use-module (gnu packages python)
113 #:use-module (gnu packages python-compression)
114 #:use-module (gnu packages python-science)
115 #:use-module (gnu packages python-web)
116 #:use-module (gnu packages python-xyz)
117 #:use-module (gnu packages readline)
118 #:use-module (gnu packages ruby)
119 #:use-module (gnu packages serialization)
120 #:use-module (gnu packages shells)
121 #:use-module (gnu packages sphinx)
122 #:use-module (gnu packages statistics)
123 #:use-module (gnu packages swig)
124 #:use-module (gnu packages tbb)
125 #:use-module (gnu packages tex)
126 #:use-module (gnu packages texinfo)
127 #:use-module (gnu packages textutils)
128 #:use-module (gnu packages time)
129 #:use-module (gnu packages tls)
130 #:use-module (gnu packages vim)
131 #:use-module (gnu packages web)
132 #:use-module (gnu packages xml)
133 #:use-module (gnu packages xorg)
134 #:use-module (srfi srfi-1)
135 #:use-module (ice-9 match))
136
137 (define-public aragorn
138 (package
139 (name "aragorn")
140 (version "1.2.38")
141 (source (origin
142 (method url-fetch)
143 (uri (string-append
144 "http://mbio-serv2.mbioekol.lu.se/ARAGORN/Downloads/aragorn"
145 version ".tgz"))
146 (sha256
147 (base32
148 "09i1rg716smlbnixfm7q1ml2mfpaa2fpn3hwjg625ysmfwwy712b"))))
149 (build-system gnu-build-system)
150 (arguments
151 `(#:tests? #f ; there are no tests
152 #:phases
153 (modify-phases %standard-phases
154 (delete 'configure)
155 (replace 'build
156 (lambda _
157 (invoke "gcc"
158 "-O3"
159 "-ffast-math"
160 "-finline-functions"
161 "-o"
162 "aragorn"
163 (string-append "aragorn" ,version ".c"))
164 #t))
165 (replace 'install
166 (lambda* (#:key outputs #:allow-other-keys)
167 (let* ((out (assoc-ref outputs "out"))
168 (bin (string-append out "/bin"))
169 (man (string-append out "/share/man/man1")))
170 (install-file "aragorn" bin)
171 (install-file "aragorn.1" man))
172 #t)))))
173 (home-page "http://mbio-serv2.mbioekol.lu.se/ARAGORN")
174 (synopsis "Detect tRNA, mtRNA and tmRNA genes in nucleotide sequences")
175 (description
176 "Aragorn identifies transfer RNA, mitochondrial RNA and
177 transfer-messenger RNA from nucleotide sequences, based on homology to known
178 tRNA consensus sequences and RNA structure. It also outputs the secondary
179 structure of the predicted RNA.")
180 (license license:gpl2)))
181
182 (define-public bamm
183 (package
184 (name "bamm")
185 (version "1.7.3")
186 (source (origin
187 (method git-fetch)
188 ;; BamM is not available on pypi.
189 (uri (git-reference
190 (url "https://github.com/Ecogenomics/BamM.git")
191 (commit version)
192 (recursive? #t)))
193 (file-name (git-file-name name version))
194 (sha256
195 (base32
196 "1p83ahi984ipslxlg4yqy1gdnya9rkn1v71z8djgxkm9d2chw4c5"))
197 (modules '((guix build utils)))
198 (snippet
199 `(begin
200 ;; Delete bundled htslib.
201 (delete-file-recursively "c/htslib-1.3.1")
202 #t))))
203 (build-system python-build-system)
204 (arguments
205 `(#:python ,python-2 ; BamM is Python 2 only.
206 ;; Do not use bundled libhts. Do use the bundled libcfu because it has
207 ;; been modified from its original form.
208 #:configure-flags
209 (let ((htslib (assoc-ref %build-inputs "htslib")))
210 (list "--with-libhts-lib" (string-append htslib "/lib")
211 "--with-libhts-inc" (string-append htslib "/include/htslib")))
212 #:phases
213 (modify-phases %standard-phases
214 (add-after 'unpack 'autogen
215 (lambda _
216 (with-directory-excursion "c"
217 (let ((sh (which "sh")))
218 (for-each make-file-writable (find-files "." ".*"))
219 ;; Use autogen so that 'configure' works.
220 (substitute* "autogen.sh" (("/bin/sh") sh))
221 (setenv "CONFIG_SHELL" sh)
222 (invoke "./autogen.sh")))
223 #t))
224 (delete 'build)
225 ;; Run tests after installation so compilation only happens once.
226 (delete 'check)
227 (add-after 'install 'wrap-executable
228 (lambda* (#:key outputs #:allow-other-keys)
229 (let* ((out (assoc-ref outputs "out"))
230 (path (getenv "PATH")))
231 (wrap-program (string-append out "/bin/bamm")
232 `("PATH" ":" prefix (,path))))
233 #t))
234 (add-after 'wrap-executable 'post-install-check
235 (lambda* (#:key inputs outputs #:allow-other-keys)
236 (setenv "PATH"
237 (string-append (assoc-ref outputs "out")
238 "/bin:"
239 (getenv "PATH")))
240 (setenv "PYTHONPATH"
241 (string-append
242 (assoc-ref outputs "out")
243 "/lib/python"
244 (string-take (string-take-right
245 (assoc-ref inputs "python") 5) 3)
246 "/site-packages:"
247 (getenv "PYTHONPATH")))
248 ;; There are 2 errors printed, but they are safe to ignore:
249 ;; 1) [E::hts_open_format] fail to open file ...
250 ;; 2) samtools view: failed to open ...
251 (invoke "nosetests")
252 #t)))))
253 (native-inputs
254 `(("autoconf" ,autoconf)
255 ("automake" ,automake)
256 ("libtool" ,libtool)
257 ("zlib" ,zlib)
258 ("python-nose" ,python2-nose)
259 ("python-pysam" ,python2-pysam)))
260 (inputs
261 `(("htslib" ,htslib-1.3) ; At least one test fails on htslib-1.4+.
262 ("samtools" ,samtools)
263 ("bwa" ,bwa)
264 ("grep" ,grep)
265 ("sed" ,sed)
266 ("coreutils" ,coreutils)))
267 (propagated-inputs
268 `(("python-numpy" ,python2-numpy)))
269 (home-page "https://ecogenomics.github.io/BamM/")
270 (synopsis "Metagenomics-focused BAM file manipulator")
271 (description
272 "BamM is a C library, wrapped in python, to efficiently generate and
273 parse BAM files, specifically for the analysis of metagenomic data. For
274 instance, it implements several methods to assess contig-wise read coverage.")
275 (license license:lgpl3+)))
276
277 (define-public bamtools
278 (package
279 (name "bamtools")
280 (version "2.5.1")
281 (source (origin
282 (method git-fetch)
283 (uri (git-reference
284 (url "https://github.com/pezmaster31/bamtools.git")
285 (commit (string-append "v" version))))
286 (file-name (git-file-name name version))
287 (sha256
288 (base32
289 "0nfb2ypcx9959xnbz6wxh6py3xfizgmg8nrknxl95c507m9hmq8b"))))
290 (build-system cmake-build-system)
291 (arguments
292 `(#:tests? #f ;no "check" target
293 #:phases
294 (modify-phases %standard-phases
295 (add-before
296 'configure 'set-ldflags
297 (lambda* (#:key outputs #:allow-other-keys)
298 (setenv "LDFLAGS"
299 (string-append
300 "-Wl,-rpath="
301 (assoc-ref outputs "out") "/lib/bamtools"))
302 #t)))))
303 (inputs `(("zlib" ,zlib)))
304 (home-page "https://github.com/pezmaster31/bamtools")
305 (synopsis "C++ API and command-line toolkit for working with BAM data")
306 (description
307 "BamTools provides both a C++ API and a command-line toolkit for handling
308 BAM files.")
309 (license license:expat)))
310
311 (define-public bcftools
312 (package
313 (name "bcftools")
314 (version "1.9")
315 (source (origin
316 (method url-fetch)
317 (uri (string-append "https://github.com/samtools/bcftools/"
318 "releases/download/"
319 version "/bcftools-" version ".tar.bz2"))
320 (sha256
321 (base32
322 "1j3h638i8kgihzyrlnpj82xg1b23sijibys9hvwari3fy7kd0dkg"))
323 (modules '((guix build utils)))
324 (snippet '(begin
325 ;; Delete bundled htslib.
326 (delete-file-recursively "htslib-1.9")
327 #t))))
328 (build-system gnu-build-system)
329 (arguments
330 `(#:configure-flags
331 (list "--enable-libgsl")
332 #:test-target "test"
333 #:phases
334 (modify-phases %standard-phases
335 (add-before 'check 'patch-tests
336 (lambda _
337 (substitute* "test/test.pl"
338 (("/bin/bash") (which "bash")))
339 #t)))))
340 (native-inputs
341 `(("htslib" ,htslib)
342 ("perl" ,perl)))
343 (inputs
344 `(("gsl" ,gsl)
345 ("zlib" ,zlib)))
346 (home-page "https://samtools.github.io/bcftools/")
347 (synopsis "Utilities for variant calling and manipulating VCFs and BCFs")
348 (description
349 "BCFtools is a set of utilities that manipulate variant calls in the
350 Variant Call Format (VCF) and its binary counterpart BCF. All commands work
351 transparently with both VCFs and BCFs, both uncompressed and BGZF-compressed.")
352 ;; The sources are dual MIT/GPL, but becomes GPL-only when USE_GPL=1.
353 (license (list license:gpl3+ license:expat))))
354
355 (define-public bedops
356 (package
357 (name "bedops")
358 (version "2.4.35")
359 (source (origin
360 (method git-fetch)
361 (uri (git-reference
362 (url "https://github.com/bedops/bedops.git")
363 (commit (string-append "v" version))))
364 (file-name (git-file-name name version))
365 (sha256
366 (base32
367 "0mmgsgwz5r9w76hzgxkxc9s9lkdhhaf7vr6i02b09vbswvs1fyqx"))))
368 (build-system gnu-build-system)
369 (arguments
370 '(#:tests? #f
371 #:make-flags (list (string-append "BINDIR=" %output "/bin"))
372 #:phases
373 (modify-phases %standard-phases
374 (add-after 'unpack 'unpack-tarballs
375 (lambda _
376 ;; FIXME: Bedops includes tarballs of minimally patched upstream
377 ;; libraries jansson, zlib, and bzip2. We cannot just use stock
378 ;; libraries because at least one of the libraries (zlib) is
379 ;; patched to add a C++ function definition (deflateInit2cpp).
380 ;; Until the Bedops developers offer a way to link against system
381 ;; libraries we have to build the in-tree copies of these three
382 ;; libraries.
383
384 ;; See upstream discussion:
385 ;; https://github.com/bedops/bedops/issues/124
386
387 ;; Unpack the tarballs to benefit from shebang patching.
388 (with-directory-excursion "third-party"
389 (invoke "tar" "xvf" "jansson-2.6.tar.bz2")
390 (invoke "tar" "xvf" "zlib-1.2.7.tar.bz2")
391 (invoke "tar" "xvf" "bzip2-1.0.6.tar.bz2"))
392 ;; Disable unpacking of tarballs in Makefile.
393 (substitute* "system.mk/Makefile.linux"
394 (("^\tbzcat .*") "\t@echo \"not unpacking\"\n")
395 (("\\./configure") "CONFIG_SHELL=bash ./configure"))
396 (substitute* "third-party/zlib-1.2.7/Makefile.in"
397 (("^SHELL=.*$") "SHELL=bash\n"))
398 #t))
399 (delete 'configure))))
400 (home-page "https://github.com/bedops/bedops")
401 (synopsis "Tools for high-performance genomic feature operations")
402 (description
403 "BEDOPS is a suite of tools to address common questions raised in genomic
404 studies---mostly with regard to overlap and proximity relationships between
405 data sets. It aims to be scalable and flexible, facilitating the efficient
406 and accurate analysis and management of large-scale genomic data.
407
408 BEDOPS provides tools that perform highly efficient and scalable Boolean and
409 other set operations, statistical calculations, archiving, conversion and
410 other management of genomic data of arbitrary scale. Tasks can be easily
411 split by chromosome for distributing whole-genome analyses across a
412 computational cluster.")
413 (license license:gpl2+)))
414
415 (define-public bedtools
416 (package
417 (name "bedtools")
418 (version "2.29.2")
419 (source (origin
420 (method url-fetch)
421 (uri (string-append "https://github.com/arq5x/bedtools2/releases/"
422 "download/v" version "/"
423 "bedtools-" version ".tar.gz"))
424 (sha256
425 (base32
426 "0m3hk6548846w83a9s5drsczvy67n2azx41kj71n03klb2gbzwg3"))))
427 (build-system gnu-build-system)
428 (arguments
429 '(#:test-target "test"
430 #:make-flags
431 (list (string-append "prefix=" (assoc-ref %outputs "out")))
432 #:phases
433 (modify-phases %standard-phases
434 (delete 'configure))))
435 (native-inputs
436 `(("python" ,python-wrapper)))
437 (inputs
438 `(("samtools" ,samtools)
439 ("zlib" ,zlib)))
440 (home-page "https://github.com/arq5x/bedtools2")
441 (synopsis "Tools for genome analysis and arithmetic")
442 (description
443 "Collectively, the bedtools utilities are a swiss-army knife of tools for
444 a wide-range of genomics analysis tasks. The most widely-used tools enable
445 genome arithmetic: that is, set theory on the genome. For example, bedtools
446 allows one to intersect, merge, count, complement, and shuffle genomic
447 intervals from multiple files in widely-used genomic file formats such as BAM,
448 BED, GFF/GTF, VCF.")
449 (license license:expat)))
450
451 ;; Later releases of bedtools produce files with more columns than
452 ;; what Ribotaper expects.
453 (define-public bedtools-2.18
454 (package (inherit bedtools)
455 (name "bedtools")
456 (version "2.18.0")
457 (source (origin
458 (method url-fetch)
459 (uri (string-append "https://github.com/arq5x/bedtools2/"
460 "releases/download/v" version
461 "/bedtools-" version ".tar.gz"))
462 (sha256
463 (base32
464 "11rvca19ncg03kxd0wzlfx5ws7r3nisd0z8s9j9n182d8ksp2pxz"))))
465 (arguments
466 '(#:test-target "test"
467 #:phases
468 (modify-phases %standard-phases
469 (delete 'configure)
470 (replace 'install
471 (lambda* (#:key outputs #:allow-other-keys)
472 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
473 (for-each (lambda (file)
474 (install-file file bin))
475 (find-files "bin" ".*")))
476 #t)))))))
477
478 (define-public pbbam
479 (package
480 (name "pbbam")
481 (version "0.23.0")
482 (source (origin
483 (method git-fetch)
484 (uri (git-reference
485 (url "https://github.com/PacificBiosciences/pbbam.git")
486 (commit version)))
487 (file-name (git-file-name name version))
488 (sha256
489 (base32
490 "0h9gkrpf2lrxklxp72xfl5bi3h5zcm5hprrya9gf0hr3xwlbpp0x"))))
491 (build-system meson-build-system)
492 (arguments
493 `(#:phases
494 (modify-phases %standard-phases
495 (add-after 'unpack 'find-googletest
496 (lambda* (#:key inputs #:allow-other-keys)
497 ;; It doesn't find gtest_main because there's no pkg-config file
498 ;; for it. Find it another way.
499 (substitute* "tests/meson.build"
500 (("pbbam_gtest_dep = dependency\\('gtest_main'.*")
501 (format #f "cpp = meson.get_compiler('cpp')
502 pbbam_gtest_dep = cpp.find_library('gtest_main', dirs : '~a')\n"
503 (assoc-ref inputs "googletest"))))
504 #t)))
505 ;; TODO: tests/pbbam_test cannot be linked
506 ;; ld: tests/59830eb@@pbbam_test@exe/src_test_Accuracy.cpp.o:
507 ;; undefined reference to symbol '_ZTIN7testing4TestE'
508 ;; ld: /gnu/store/...-googletest-1.8.0/lib/libgtest.so:
509 ;; error adding symbols: DSO missing from command line
510 #:tests? #f
511 #:configure-flags '("-Dtests=false")))
512 ;; These libraries are listed as "Required" in the pkg-config file.
513 (propagated-inputs
514 `(("htslib" ,htslib)
515 ("zlib" ,zlib)))
516 (inputs
517 `(("boost" ,boost)
518 ("samtools" ,samtools)))
519 (native-inputs
520 `(("googletest" ,googletest)
521 ("pkg-config" ,pkg-config)
522 ("python" ,python-wrapper))) ; for tests
523 (home-page "https://github.com/PacificBiosciences/pbbam")
524 (synopsis "Work with PacBio BAM files")
525 (description
526 "The pbbam software package provides components to create, query, and
527 edit PacBio BAM files and associated indices. These components include a core
528 C++ library, bindings for additional languages, and command-line utilities.
529 This library is not intended to be used as a general-purpose BAM utility - all
530 input and output BAMs must adhere to the PacBio BAM format specification.
531 Non-PacBio BAMs will cause exceptions to be thrown.")
532 (license license:bsd-3)))
533
534 (define-public blasr-libcpp
535 (package
536 (name "blasr-libcpp")
537 (version "5.3.3")
538 (source (origin
539 (method git-fetch)
540 (uri (git-reference
541 (url "https://github.com/PacificBiosciences/blasr_libcpp.git")
542 (commit version)))
543 (file-name (git-file-name name version))
544 (sha256
545 (base32
546 "0cn5l42zyq67sj0g2imqkhayz2iqvv0a1pgpbmlq0qynjmsrbfd2"))))
547 (build-system meson-build-system)
548 (arguments
549 `(#:phases
550 (modify-phases %standard-phases
551 (add-after 'unpack 'link-with-hdf5
552 (lambda* (#:key inputs #:allow-other-keys)
553 (let ((hdf5 (assoc-ref inputs "hdf5")))
554 (substitute* "meson.build"
555 (("libblasr_deps = \\[" m)
556 (string-append
557 m
558 (format #f "cpp.find_library('hdf5', dirs : '~a'), \
559 cpp.find_library('hdf5_cpp', dirs : '~a'), "
560 hdf5 hdf5)))))
561 #t))
562 (add-after 'unpack 'find-googletest
563 (lambda* (#:key inputs #:allow-other-keys)
564 ;; It doesn't find gtest_main because there's no pkg-config file
565 ;; for it. Find it another way.
566 (substitute* "unittest/meson.build"
567 (("libblasr_gtest_dep = dependency\\('gtest_main'.*")
568 (format #f "cpp = meson.get_compiler('cpp')
569 libblasr_gtest_dep = cpp.find_library('gtest_main', dirs : '~a')\n"
570 (assoc-ref inputs "googletest"))))
571 #t)))
572 ;; TODO: unittest/libblasr_unittest cannot be linked
573 ;; ld: ;; unittest/df08227@@libblasr_unittest@exe/alignment_utils_FileUtils_gtest.cpp.o:
574 ;; undefined reference to symbol
575 ;; '_ZN7testing8internal9DeathTest6CreateEPKcPKNS0_2REES3_iPPS1_'
576 ;; ld: /gnu/store/...-googletest-1.8.0/lib/libgtest.so:
577 ;; error adding symbols: DSO missing from command line
578 #:tests? #f
579 #:configure-flags '("-Dtests=false")))
580 (inputs
581 `(("boost" ,boost)
582 ("hdf5" ,hdf5)
583 ("pbbam" ,pbbam)
584 ("zlib" ,zlib)))
585 (native-inputs
586 `(("googletest" ,googletest)
587 ("pkg-config" ,pkg-config)))
588 (home-page "https://github.com/PacificBiosciences/blasr_libcpp")
589 (synopsis "Library for analyzing PacBio genomic sequences")
590 (description
591 "This package provides three libraries used by applications for analyzing
592 PacBio genomic sequences. This library contains three sub-libraries: pbdata,
593 hdf and alignment.")
594 (license license:bsd-3)))
595
596 (define-public blasr
597 (package
598 (name "blasr")
599 (version "5.3.3")
600 (source (origin
601 (method git-fetch)
602 (uri (git-reference
603 (url "https://github.com/PacificBiosciences/blasr.git")
604 (commit version)))
605 (file-name (git-file-name name version))
606 (sha256
607 (base32
608 "1skgy2mvz8gsgfh1gc2nfgwvpyzb1hpmp2cf2773h5wsj8nw22kl"))))
609 (build-system meson-build-system)
610 (arguments
611 `(#:phases
612 (modify-phases %standard-phases
613 (add-after 'unpack 'link-with-hdf5
614 (lambda* (#:key inputs #:allow-other-keys)
615 (let ((hdf5 (assoc-ref inputs "hdf5")))
616 (substitute* "meson.build"
617 (("blasr_deps = \\[" m)
618 (string-append
619 m
620 (format #f "cpp.find_library('hdf5', dirs : '~a'), \
621 cpp.find_library('hdf5_cpp', dirs : '~a'), "
622 hdf5 hdf5)))))
623 #t)))
624 ;; Tests require "cram" executable, which is not packaged.
625 #:tests? #f
626 #:configure-flags '("-Dtests=false")))
627 (inputs
628 `(("boost" ,boost)
629 ("blasr-libcpp" ,blasr-libcpp)
630 ("hdf5" ,hdf5)
631 ("pbbam" ,pbbam)
632 ("zlib" ,zlib)))
633 (native-inputs
634 `(("pkg-config" ,pkg-config)))
635 (home-page "https://github.com/PacificBiosciences/blasr")
636 (synopsis "PacBio long read aligner")
637 (description
638 "Blasr is a genomic sequence aligner for processing PacBio long reads.")
639 (license license:bsd-3)))
640
641 (define-public ribotaper
642 (package
643 (name "ribotaper")
644 (version "1.3.1")
645 (source (origin
646 (method url-fetch)
647 (uri (string-append "https://ohlerlab.mdc-berlin.de/"
648 "files/RiboTaper/RiboTaper_Version_"
649 version ".tar.gz"))
650 (sha256
651 (base32
652 "0ykjbps1y3z3085q94npw8i9x5gldc6shy8vlc08v76zljsm07hv"))))
653 (build-system gnu-build-system)
654 (arguments
655 `(#:phases
656 (modify-phases %standard-phases
657 (add-after 'install 'wrap-executables
658 (lambda* (#:key inputs outputs #:allow-other-keys)
659 (let* ((out (assoc-ref outputs "out")))
660 (for-each
661 (lambda (script)
662 (wrap-program (string-append out "/bin/" script)
663 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
664 '("create_annotations_files.bash"
665 "create_metaplots.bash"
666 "Ribotaper_ORF_find.sh"
667 "Ribotaper.sh")))
668 #t)))))
669 (inputs
670 `(("bedtools" ,bedtools-2.18)
671 ("samtools" ,samtools-0.1)
672 ("r-minimal" ,r-minimal)
673 ("r-foreach" ,r-foreach)
674 ("r-xnomial" ,r-xnomial)
675 ("r-domc" ,r-domc)
676 ("r-multitaper" ,r-multitaper)
677 ("r-seqinr" ,r-seqinr)))
678 (home-page "https://ohlerlab.mdc-berlin.de/software/RiboTaper_126/")
679 (synopsis "Define translated ORFs using ribosome profiling data")
680 (description
681 "Ribotaper is a method for defining translated @dfn{open reading
682 frames} (ORFs) using ribosome profiling (ribo-seq) data. This package
683 provides the Ribotaper pipeline.")
684 (license license:gpl3+)))
685
686 (define-public ribodiff
687 (package
688 (name "ribodiff")
689 (version "0.2.2")
690 (source
691 (origin
692 (method git-fetch)
693 (uri (git-reference
694 (url "https://github.com/ratschlab/RiboDiff.git")
695 (commit (string-append "v" version))))
696 (file-name (git-file-name name version))
697 (sha256
698 (base32
699 "0x75nlp7qnmm64jasbi6l21f2cy99r2cjyl6b4hr8zf2bq22drnz"))))
700 (build-system python-build-system)
701 (arguments
702 `(#:python ,python-2
703 #:phases
704 (modify-phases %standard-phases
705 ;; Generate an installable executable script wrapper.
706 (add-after 'unpack 'patch-setup.py
707 (lambda _
708 (substitute* "setup.py"
709 (("^(.*)packages=.*" line prefix)
710 (string-append line "\n"
711 prefix "scripts=['scripts/TE.py'],\n")))
712 #t)))))
713 (inputs
714 `(("python-numpy" ,python2-numpy)
715 ("python-matplotlib" ,python2-matplotlib)
716 ("python-scipy" ,python2-scipy)
717 ("python-statsmodels" ,python2-statsmodels)))
718 (native-inputs
719 `(("python-mock" ,python2-mock)
720 ("python-nose" ,python2-nose)))
721 (home-page "https://public.bmi.inf.ethz.ch/user/zhongy/RiboDiff/")
722 (synopsis "Detect translation efficiency changes from ribosome footprints")
723 (description "RiboDiff is a statistical tool that detects the protein
724 translational efficiency change from Ribo-Seq (ribosome footprinting) and
725 RNA-Seq data. It uses a generalized linear model to detect genes showing
726 difference in translational profile taking mRNA abundance into account. It
727 facilitates us to decipher the translational regulation that behave
728 independently with transcriptional regulation.")
729 (license license:gpl3+)))
730
731 (define-public bioawk
732 (package
733 (name "bioawk")
734 (version "1.0")
735 (source (origin
736 (method git-fetch)
737 (uri (git-reference
738 (url "https://github.com/lh3/bioawk.git")
739 (commit (string-append "v" version))))
740 (file-name (git-file-name name version))
741 (sha256
742 (base32
743 "1pxc3zdnirxbf9a0az698hd8xdik7qkhypm7v6hn922x8y9qmspm"))))
744 (build-system gnu-build-system)
745 (inputs
746 `(("zlib" ,zlib)))
747 (native-inputs
748 `(("bison" ,bison)))
749 (arguments
750 `(#:tests? #f ; There are no tests to run.
751 ;; Bison must generate files, before other targets can build.
752 #:parallel-build? #f
753 #:phases
754 (modify-phases %standard-phases
755 (delete 'configure) ; There is no configure phase.
756 (replace 'install
757 (lambda* (#:key outputs #:allow-other-keys)
758 (let* ((out (assoc-ref outputs "out"))
759 (bin (string-append out "/bin"))
760 (man (string-append out "/share/man/man1")))
761 (mkdir-p man)
762 (copy-file "awk.1" (string-append man "/bioawk.1"))
763 (install-file "bioawk" bin))
764 #t)))))
765 (home-page "https://github.com/lh3/bioawk")
766 (synopsis "AWK with bioinformatics extensions")
767 (description "Bioawk is an extension to Brian Kernighan's awk, adding the
768 support of several common biological data formats, including optionally gzip'ed
769 BED, GFF, SAM, VCF, FASTA/Q and TAB-delimited formats with column names. It
770 also adds a few built-in functions and a command line option to use TAB as the
771 input/output delimiter. When the new functionality is not used, bioawk is
772 intended to behave exactly the same as the original BWK awk.")
773 (license license:x11)))
774
775 (define-public python-pybedtools
776 (package
777 (name "python-pybedtools")
778 (version "0.8.1")
779 (source (origin
780 (method url-fetch)
781 (uri (pypi-uri "pybedtools" version))
782 (sha256
783 (base32
784 "14w5i40gi25clrr7h4wa2pcpnyipya8hrqi7nq77553zc5wf0df0"))))
785 (build-system python-build-system)
786 (arguments
787 `(#:modules ((ice-9 ftw)
788 (srfi srfi-1)
789 (srfi srfi-26)
790 (guix build utils)
791 (guix build python-build-system))
792 ;; See https://github.com/daler/pybedtools/issues/192
793 #:phases
794 (modify-phases %standard-phases
795 (add-after 'unpack 'disable-broken-tests
796 (lambda _
797 (substitute* "pybedtools/test/test_scripts.py"
798 ;; This test freezes.
799 (("def test_intron_exon_reads")
800 "def _do_not_test_intron_exon_reads")
801 ;; This test fails in the Python 2 build.
802 (("def test_venn_mpl")
803 "def _do_not_test_venn_mpl"))
804 (substitute* "pybedtools/test/test_helpers.py"
805 ;; Requires internet access.
806 (("def test_chromsizes")
807 "def _do_not_test_chromsizes")
808 ;; Broken as a result of the workaround used in the check phase
809 ;; (see: https://github.com/daler/pybedtools/issues/192).
810 (("def test_getting_example_beds")
811 "def _do_not_test_getting_example_beds"))
812 ;; This issue still occurs on python2
813 (substitute* "pybedtools/test/test_issues.py"
814 (("def test_issue_303")
815 "def _test_issue_303"))
816 #t))
817 ;; TODO: Remove phase after it's part of PYTHON-BUILD-SYSTEM.
818 ;; build system.
819 ;; Force the Cythonization of C++ files to guard against compilation
820 ;; problems.
821 (add-after 'unpack 'remove-cython-generated-files
822 (lambda _
823 (let ((cython-sources (map (cut string-drop-right <> 4)
824 (find-files "." "\\.pyx$")))
825 (c/c++-files (find-files "." "\\.(c|cpp|cxx)$")))
826 (define (strip-extension filename)
827 (string-take filename (string-index-right filename #\.)))
828 (define (cythonized? c/c++-file)
829 (member (strip-extension c/c++-file) cython-sources))
830 (for-each delete-file (filter cythonized? c/c++-files))
831 #t)))
832 (add-after 'remove-cython-generated-files 'generate-cython-extensions
833 (lambda _
834 (invoke "python" "setup.py" "cythonize")))
835 (replace 'check
836 (lambda _
837 (let* ((cwd (getcwd))
838 (build-root-directory (string-append cwd "/build/"))
839 (build (string-append
840 build-root-directory
841 (find (cut string-prefix? "lib" <>)
842 (scandir (string-append
843 build-root-directory)))))
844 (scripts (string-append
845 build-root-directory
846 (find (cut string-prefix? "scripts" <>)
847 (scandir build-root-directory)))))
848 (setenv "PYTHONPATH"
849 (string-append build ":" (getenv "PYTHONPATH")))
850 ;; Executable scripts such as 'intron_exon_reads.py' must be
851 ;; available in the PATH.
852 (setenv "PATH"
853 (string-append scripts ":" (getenv "PATH"))))
854 ;; The tests need to be run from elsewhere...
855 (mkdir-p "/tmp/test")
856 (copy-recursively "pybedtools/test" "/tmp/test")
857 (with-directory-excursion "/tmp/test"
858 (invoke "pytest" "-v" "--doctest-modules")))))))
859 (propagated-inputs
860 `(("bedtools" ,bedtools)
861 ("samtools" ,samtools)
862 ("python-matplotlib" ,python-matplotlib)
863 ("python-pysam" ,python-pysam)
864 ("python-pyyaml" ,python-pyyaml)))
865 (native-inputs
866 `(("python-numpy" ,python-numpy)
867 ("python-pandas" ,python-pandas)
868 ("python-cython" ,python-cython)
869 ("kentutils" ,kentutils) ; for bedGraphToBigWig
870 ("python-six" ,python-six)
871 ;; For the test suite.
872 ("python-pytest" ,python-pytest)
873 ("python-psutil" ,python-psutil)))
874 (home-page "https://pythonhosted.org/pybedtools/")
875 (synopsis "Python wrapper for BEDtools programs")
876 (description
877 "pybedtools is a Python wrapper for Aaron Quinlan's BEDtools programs,
878 which are widely used for genomic interval manipulation or \"genome algebra\".
879 pybedtools extends BEDTools by offering feature-level manipulations from with
880 Python.")
881 (license license:gpl2+)))
882
883 (define-public python2-pybedtools
884 (let ((pybedtools (package-with-python2 python-pybedtools)))
885 (package
886 (inherit pybedtools)
887 (native-inputs
888 `(("python2-pathlib" ,python2-pathlib)
889 ,@(package-native-inputs pybedtools))))))
890
891 (define-public python-biom-format
892 (package
893 (name "python-biom-format")
894 (version "2.1.7")
895 (source
896 (origin
897 (method git-fetch)
898 ;; Use GitHub as source because PyPI distribution does not contain
899 ;; test data: https://github.com/biocore/biom-format/issues/693
900 (uri (git-reference
901 (url "https://github.com/biocore/biom-format.git")
902 (commit version)))
903 (file-name (git-file-name name version))
904 (sha256
905 (base32
906 "1rna16lyk5aqhnv0dp77wwaplias93f1vw28ad3jmyw6hwkai05v"))
907 (modules '((guix build utils)))
908 (snippet '(begin
909 ;; Delete generated C files.
910 (for-each delete-file (find-files "." "\\.c"))
911 #t))))
912 (build-system python-build-system)
913 (arguments
914 `(#:phases
915 (modify-phases %standard-phases
916 (add-after 'unpack 'use-cython
917 (lambda _ (setenv "USE_CYTHON" "1") #t))
918 (add-after 'unpack 'disable-broken-tests
919 (lambda _
920 (substitute* "biom/tests/test_cli/test_validate_table.py"
921 (("^(.+)def test_invalid_hdf5" m indent)
922 (string-append indent
923 "@npt.dec.skipif(True, msg='Guix')\n"
924 m)))
925 (substitute* "biom/tests/test_table.py"
926 (("^(.+)def test_from_hdf5_issue_731" m indent)
927 (string-append indent
928 "@npt.dec.skipif(True, msg='Guix')\n"
929 m)))
930 #t))
931 (add-before 'reset-gzip-timestamps 'make-files-writable
932 (lambda* (#:key outputs #:allow-other-keys)
933 (let ((out (assoc-ref outputs "out")))
934 (for-each (lambda (file) (chmod file #o644))
935 (find-files out "\\.gz"))
936 #t))))))
937 (propagated-inputs
938 `(("python-numpy" ,python-numpy)
939 ("python-scipy" ,python-scipy)
940 ("python-flake8" ,python-flake8)
941 ("python-future" ,python-future)
942 ("python-click" ,python-click)
943 ("python-h5py" ,python-h5py)
944 ("python-pandas" ,python-pandas)))
945 (native-inputs
946 `(("python-cython" ,python-cython)
947 ("python-pytest" ,python-pytest)
948 ("python-pytest-cov" ,python-pytest-cov)
949 ("python-nose" ,python-nose)))
950 (home-page "http://www.biom-format.org")
951 (synopsis "Biological Observation Matrix (BIOM) format utilities")
952 (description
953 "The BIOM file format is designed to be a general-use format for
954 representing counts of observations e.g. operational taxonomic units, KEGG
955 orthology groups or lipid types, in one or more biological samples
956 e.g. microbiome samples, genomes, metagenomes.")
957 (license license:bsd-3)
958 (properties `((python2-variant . ,(delay python2-biom-format))))))
959
960 (define-public python2-biom-format
961 (let ((base (package-with-python2 (strip-python2-variant python-biom-format))))
962 (package
963 (inherit base)
964 (arguments
965 (substitute-keyword-arguments (package-arguments base)
966 ((#:phases phases)
967 `(modify-phases ,phases
968 ;; Do not require the unmaintained pyqi library.
969 (add-after 'unpack 'remove-pyqi
970 (lambda _
971 (substitute* "setup.py"
972 (("install_requires.append\\(\"pyqi\"\\)") "pass"))
973 #t)))))))))
974
975 (define-public python-pairtools
976 (package
977 (name "python-pairtools")
978 (version "0.3.0")
979 (source (origin
980 (method git-fetch)
981 (uri (git-reference
982 (url "https://github.com/mirnylab/pairtools")
983 (commit (string-append "v" version))))
984 (file-name (git-file-name name version))
985 (sha256
986 (base32
987 "0gr8y13q7sd6yai6df4aavl2470n1f9s3cib6r473z4hr8hcbwmc"))))
988 (build-system python-build-system)
989 (arguments
990 `(#:phases
991 (modify-phases %standard-phases
992 (add-after 'unpack 'fix-references
993 (lambda _
994 (substitute* '("pairtools/pairtools_merge.py"
995 "pairtools/pairtools_sort.py")
996 (("/bin/bash") (which "bash")))
997 #t))
998 (replace 'check
999 (lambda* (#:key inputs outputs #:allow-other-keys)
1000 (add-installed-pythonpath inputs outputs)
1001 (with-directory-excursion "/tmp"
1002 (invoke "pytest" "-v")))))))
1003 (native-inputs
1004 `(("python-cython" ,python-cython)
1005 ("python-nose" ,python-nose)
1006 ("python-pytest" ,python-pytest)))
1007 (inputs
1008 `(("python" ,python-wrapper)))
1009 (propagated-inputs
1010 `(("htslib" ,htslib) ; for bgzip, looked up in PATH
1011 ("samtools" ,samtools) ; looked up in PATH
1012 ("lz4" ,lz4) ; for lz4c
1013 ("python-click" ,python-click)
1014 ("python-numpy" ,python-numpy)))
1015 (home-page "https://github.com/mirnylab/pairtools")
1016 (synopsis "Process mapped Hi-C data")
1017 (description "Pairtools is a simple and fast command-line framework to
1018 process sequencing data from a Hi-C experiment. Process pair-end sequence
1019 alignments and perform the following operations:
1020
1021 @itemize
1022 @item detect ligation junctions (a.k.a. Hi-C pairs) in aligned paired-end
1023 sequences of Hi-C DNA molecules
1024 @item sort @code{.pairs} files for downstream analyses
1025 @item detect, tag and remove PCR/optical duplicates
1026 @item generate extensive statistics of Hi-C datasets
1027 @item select Hi-C pairs given flexibly defined criteria
1028 @item restore @code{.sam} alignments from Hi-C pairs.
1029 @end itemize
1030 ")
1031 (license license:expat)))
1032
1033 (define-public bioperl-minimal
1034 (let* ((inputs `(("perl-module-build" ,perl-module-build)
1035 ("perl-data-stag" ,perl-data-stag)
1036 ("perl-libwww" ,perl-libwww)
1037 ("perl-uri" ,perl-uri)))
1038 (transitive-inputs
1039 (map (compose package-name cadr)
1040 (delete-duplicates
1041 (concatenate
1042 (map (compose package-transitive-target-inputs cadr) inputs))))))
1043 (package
1044 (name "bioperl-minimal")
1045 (version "1.7.0")
1046 (source
1047 (origin
1048 (method git-fetch)
1049 (uri (git-reference
1050 (url "https://github.com/bioperl/bioperl-live")
1051 (commit (string-append "release-"
1052 (string-map (lambda (c)
1053 (if (char=? c #\.)
1054 #\- c)) version)))))
1055 (file-name (git-file-name name version))
1056 (sha256
1057 (base32
1058 "0wl8yvzcls59pwwk6m8ahy87pwg6nnibzy5cldbvmcwg2x2w7783"))))
1059 (build-system perl-build-system)
1060 (arguments
1061 `(#:phases
1062 (modify-phases %standard-phases
1063 (add-after
1064 'install 'wrap-programs
1065 (lambda* (#:key outputs #:allow-other-keys)
1066 ;; Make sure all executables in "bin" find the required Perl
1067 ;; modules at runtime. As the PERL5LIB variable contains also
1068 ;; the paths of native inputs, we pick the transitive target
1069 ;; inputs from %build-inputs.
1070 (let* ((out (assoc-ref outputs "out"))
1071 (bin (string-append out "/bin/"))
1072 (path (string-join
1073 (cons (string-append out "/lib/perl5/site_perl")
1074 (map (lambda (name)
1075 (assoc-ref %build-inputs name))
1076 ',transitive-inputs))
1077 ":")))
1078 (for-each (lambda (file)
1079 (wrap-program file
1080 `("PERL5LIB" ":" prefix (,path))))
1081 (find-files bin "\\.pl$"))
1082 #t))))))
1083 (inputs inputs)
1084 (native-inputs
1085 `(("perl-test-most" ,perl-test-most)))
1086 (home-page "https://metacpan.org/release/BioPerl")
1087 (synopsis "Bioinformatics toolkit")
1088 (description
1089 "BioPerl is the product of a community effort to produce Perl code which
1090 is useful in biology. Examples include Sequence objects, Alignment objects
1091 and database searching objects. These objects not only do what they are
1092 advertised to do in the documentation, but they also interact - Alignment
1093 objects are made from the Sequence objects, Sequence objects have access to
1094 Annotation and SeqFeature objects and databases, Blast objects can be
1095 converted to Alignment objects, and so on. This means that the objects
1096 provide a coordinated and extensible framework to do computational biology.")
1097 (license license:perl-license))))
1098
1099 (define-public python-biopython
1100 (package
1101 (name "python-biopython")
1102 (version "1.70")
1103 (source (origin
1104 (method url-fetch)
1105 ;; use PyPi rather than biopython.org to ease updating
1106 (uri (pypi-uri "biopython" version))
1107 (sha256
1108 (base32
1109 "0nz4n9d2y2dg849gn1z0vjlkwcpzzkzy3fij7x94a6ixy2c54z2a"))))
1110 (build-system python-build-system)
1111 (arguments
1112 `(#:phases
1113 (modify-phases %standard-phases
1114 (add-before 'check 'set-home
1115 ;; Some tests require a home directory to be set.
1116 (lambda _ (setenv "HOME" "/tmp") #t)))))
1117 (propagated-inputs
1118 `(("python-numpy" ,python-numpy)))
1119 (home-page "https://biopython.org/")
1120 (synopsis "Tools for biological computation in Python")
1121 (description
1122 "Biopython is a set of tools for biological computation including parsers
1123 for bioinformatics files into Python data structures; interfaces to common
1124 bioinformatics programs; a standard sequence class and tools for performing
1125 common operations on them; code to perform data classification; code for
1126 dealing with alignments; code making it easy to split up parallelizable tasks
1127 into separate processes; and more.")
1128 (license (license:non-copyleft "http://www.biopython.org/DIST/LICENSE"))))
1129
1130 (define-public python2-biopython
1131 (package-with-python2 python-biopython))
1132
1133 (define-public python-fastalite
1134 (package
1135 (name "python-fastalite")
1136 (version "0.3")
1137 (source
1138 (origin
1139 (method url-fetch)
1140 (uri (pypi-uri "fastalite" version))
1141 (sha256
1142 (base32
1143 "1qli6pxp77i9xn2wfciq2zaxhl82bdxb33cpzqzj1z25yd036wqj"))))
1144 (build-system python-build-system)
1145 (arguments
1146 `(#:tests? #f)) ; Test data is not distributed.
1147 (home-page "https://github.com/nhoffman/fastalite")
1148 (synopsis "Simplest possible FASTA parser")
1149 (description "This library implements a FASTA and a FASTQ parser without
1150 relying on a complex dependency tree.")
1151 (license license:expat)))
1152
1153 (define-public python2-fastalite
1154 (package-with-python2 python-fastalite))
1155
1156 (define-public bpp-core
1157 ;; The last release was in 2014 and the recommended way to install from source
1158 ;; is to clone the git repository, so we do this.
1159 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1160 (let ((commit "7d8bced0d1a87291ea8dd7046b7fb5ff9c35c582"))
1161 (package
1162 (name "bpp-core")
1163 (version (string-append "2.2.0-1." (string-take commit 7)))
1164 (source (origin
1165 (method git-fetch)
1166 (uri (git-reference
1167 (url "http://biopp.univ-montp2.fr/git/bpp-core")
1168 (commit commit)))
1169 (file-name (string-append name "-" version "-checkout"))
1170 (sha256
1171 (base32
1172 "10djsq5vlnkilv436gnmh4irpk49v29pa69r6xiryg32xmvn909j"))))
1173 (build-system cmake-build-system)
1174 (arguments
1175 `(#:parallel-build? #f))
1176 (home-page "http://biopp.univ-montp2.fr")
1177 (synopsis "C++ libraries for Bioinformatics")
1178 (description
1179 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1180 analysis, phylogenetics, molecular evolution and population genetics. It is
1181 Object Oriented and is designed to be both easy to use and computer efficient.
1182 Bio++ intends to help programmers to write computer expensive programs, by
1183 providing them a set of re-usable tools.")
1184 (license license:cecill-c))))
1185
1186 (define-public bpp-phyl
1187 ;; The last release was in 2014 and the recommended way to install from source
1188 ;; is to clone the git repository, so we do this.
1189 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1190 (let ((commit "0c07167b629f68b569bf274d1ad0c4af83276ae2"))
1191 (package
1192 (name "bpp-phyl")
1193 (version (string-append "2.2.0-1." (string-take commit 7)))
1194 (source (origin
1195 (method git-fetch)
1196 (uri (git-reference
1197 (url "http://biopp.univ-montp2.fr/git/bpp-phyl")
1198 (commit commit)))
1199 (file-name (string-append name "-" version "-checkout"))
1200 (sha256
1201 (base32
1202 "1ssjgchzwj3iai26kyly7gwkdv8sk59nqhkb1wpap3sf5m6kyllh"))))
1203 (build-system cmake-build-system)
1204 (arguments
1205 `(#:parallel-build? #f
1206 ;; If out-of-source, test data is not copied into the build directory
1207 ;; so the tests fail.
1208 #:out-of-source? #f))
1209 (inputs
1210 `(("bpp-core" ,bpp-core)
1211 ("bpp-seq" ,bpp-seq)))
1212 (home-page "http://biopp.univ-montp2.fr")
1213 (synopsis "Bio++ phylogenetic Library")
1214 (description
1215 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1216 analysis, phylogenetics, molecular evolution and population genetics. This
1217 library provides phylogenetics-related modules.")
1218 (license license:cecill-c))))
1219
1220 (define-public bpp-popgen
1221 ;; The last release was in 2014 and the recommended way to install from source
1222 ;; is to clone the git repository, so we do this.
1223 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1224 (let ((commit "e472bac9b1a148803895d747cd6d0c5904f85d9f"))
1225 (package
1226 (name "bpp-popgen")
1227 (version (string-append "2.2.0-1." (string-take commit 7)))
1228 (source (origin
1229 (method git-fetch)
1230 (uri (git-reference
1231 (url "http://biopp.univ-montp2.fr/git/bpp-popgen")
1232 (commit commit)))
1233 (file-name (string-append name "-" version "-checkout"))
1234 (sha256
1235 (base32
1236 "0yn82dzn1n5629nzja68xfrhi655709rjanyryb36vzkmymy6dw5"))))
1237 (build-system cmake-build-system)
1238 (arguments
1239 `(#:parallel-build? #f
1240 #:tests? #f)) ; There are no tests.
1241 (inputs
1242 `(("bpp-core" ,bpp-core)
1243 ("bpp-seq" ,bpp-seq)))
1244 (home-page "http://biopp.univ-montp2.fr")
1245 (synopsis "Bio++ population genetics library")
1246 (description
1247 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1248 analysis, phylogenetics, molecular evolution and population genetics. This
1249 library provides population genetics-related modules.")
1250 (license license:cecill-c))))
1251
1252 (define-public bpp-seq
1253 ;; The last release was in 2014 and the recommended way to install from source
1254 ;; is to clone the git repository, so we do this.
1255 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1256 (let ((commit "6cfa07965ce152e5598a89df2fa80a75973bfa33"))
1257 (package
1258 (name "bpp-seq")
1259 (version (string-append "2.2.0-1." (string-take commit 7)))
1260 (source (origin
1261 (method git-fetch)
1262 (uri (git-reference
1263 (url "http://biopp.univ-montp2.fr/git/bpp-seq")
1264 (commit commit)))
1265 (file-name (string-append name "-" version "-checkout"))
1266 (sha256
1267 (base32
1268 "1nys5jq7jqvdg40d91wsmj3q2yzy4276cp7sp44n67p468f27zf2"))))
1269 (build-system cmake-build-system)
1270 (arguments
1271 `(#:parallel-build? #f
1272 ;; If out-of-source, test data is not copied into the build directory
1273 ;; so the tests fail.
1274 #:out-of-source? #f))
1275 (inputs
1276 `(("bpp-core" ,bpp-core)))
1277 (home-page "http://biopp.univ-montp2.fr")
1278 (synopsis "Bio++ sequence library")
1279 (description
1280 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1281 analysis, phylogenetics, molecular evolution and population genetics. This
1282 library provides sequence-related modules.")
1283 (license license:cecill-c))))
1284
1285 (define-public bppsuite
1286 ;; The last release was in 2014 and the recommended way to install from source
1287 ;; is to clone the git repository, so we do this.
1288 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1289 (let ((commit "c516147f57aa50961121cd505bed52cd7603698b"))
1290 (package
1291 (name "bppsuite")
1292 (version (string-append "2.2.0-1." (string-take commit 7)))
1293 (source (origin
1294 (method git-fetch)
1295 (uri (git-reference
1296 (url "http://biopp.univ-montp2.fr/git/bppsuite")
1297 (commit commit)))
1298 (file-name (string-append name "-" version "-checkout"))
1299 (sha256
1300 (base32
1301 "1y87pxvw0jxjizhq2dr9g2r91md45k1p9ih2sl1yy1y3p934l2kb"))))
1302 (build-system cmake-build-system)
1303 (arguments
1304 `(#:parallel-build? #f
1305 #:tests? #f)) ; There are no tests.
1306 (native-inputs
1307 `(("groff" ,groff)
1308 ("man-db" ,man-db)
1309 ("texinfo" ,texinfo)))
1310 (inputs
1311 `(("bpp-core" ,bpp-core)
1312 ("bpp-seq" ,bpp-seq)
1313 ("bpp-phyl" ,bpp-phyl)
1314 ("bpp-phyl" ,bpp-popgen)))
1315 (home-page "http://biopp.univ-montp2.fr")
1316 (synopsis "Bioinformatics tools written with the Bio++ libraries")
1317 (description
1318 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1319 analysis, phylogenetics, molecular evolution and population genetics. This
1320 package provides command line tools using the Bio++ library.")
1321 (license license:cecill-c))))
1322
1323 (define-public blast+
1324 (package
1325 (name "blast+")
1326 (version "2.7.1")
1327 (source (origin
1328 (method url-fetch)
1329 (uri (string-append
1330 "ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/"
1331 version "/ncbi-blast-" version "+-src.tar.gz"))
1332 (sha256
1333 (base32
1334 "1jlq0afxxgczpp35k6mxh8mn4jzq7vqcnaixk166sfj10wq8v9qh"))
1335 (modules '((guix build utils)))
1336 (snippet
1337 '(begin
1338 ;; Remove bundled bzip2, zlib and pcre.
1339 (delete-file-recursively "c++/src/util/compress/bzip2")
1340 (delete-file-recursively "c++/src/util/compress/zlib")
1341 (delete-file-recursively "c++/src/util/regexp")
1342 (substitute* "c++/src/util/compress/Makefile.in"
1343 (("bzip2 zlib api") "api"))
1344 ;; Remove useless msbuild directory
1345 (delete-file-recursively
1346 "c++/src/build-system/project_tree_builder/msbuild")
1347 #t))))
1348 (build-system gnu-build-system)
1349 (arguments
1350 `(;; There are two(!) tests for this massive library, and both fail with
1351 ;; "unparsable timing stats".
1352 ;; ERR [127] -- [serial/datatool] datatool.sh (unparsable timing stats)
1353 ;; ERR [127] -- [serial/datatool] datatool_xml.sh (unparsable timing stats)
1354 #:tests? #f
1355 #:out-of-source? #t
1356 #:parallel-build? #f ; not supported
1357 #:phases
1358 (modify-phases %standard-phases
1359 (add-before 'configure 'set-HOME
1360 ;; $HOME needs to be set at some point during the configure phase
1361 (lambda _ (setenv "HOME" "/tmp") #t))
1362 (add-after 'unpack 'enter-dir
1363 (lambda _ (chdir "c++") #t))
1364 (add-after 'enter-dir 'fix-build-system
1365 (lambda _
1366 (define (which* cmd)
1367 (cond ((string=? cmd "date")
1368 ;; make call to "date" deterministic
1369 "date -d @0")
1370 ((which cmd)
1371 => identity)
1372 (else
1373 (format (current-error-port)
1374 "WARNING: Unable to find absolute path for ~s~%"
1375 cmd)
1376 #f)))
1377
1378 ;; Rewrite hardcoded paths to various tools
1379 (substitute* (append '("src/build-system/configure.ac"
1380 "src/build-system/configure"
1381 "src/build-system/helpers/run_with_lock.c"
1382 "scripts/common/impl/if_diff.sh"
1383 "scripts/common/impl/run_with_lock.sh"
1384 "src/build-system/Makefile.configurables.real"
1385 "src/build-system/Makefile.in.top"
1386 "src/build-system/Makefile.meta.gmake=no"
1387 "src/build-system/Makefile.meta.in"
1388 "src/build-system/Makefile.meta_l"
1389 "src/build-system/Makefile.meta_p"
1390 "src/build-system/Makefile.meta_r"
1391 "src/build-system/Makefile.mk.in"
1392 "src/build-system/Makefile.requirements"
1393 "src/build-system/Makefile.rules_with_autodep.in")
1394 (find-files "scripts/common/check" "\\.sh$"))
1395 (("(/usr/bin/|/bin/)([a-z][-_.a-z]*)" all dir cmd)
1396 (or (which* cmd) all)))
1397
1398 (substitute* (find-files "src/build-system" "^config.*")
1399 (("LN_S=/bin/\\$LN_S") (string-append "LN_S=" (which "ln")))
1400 (("^PATH=.*") ""))
1401
1402 ;; rewrite "/var/tmp" in check script
1403 (substitute* "scripts/common/check/check_make_unix.sh"
1404 (("/var/tmp") "/tmp"))
1405
1406 ;; do not reset PATH
1407 (substitute* (find-files "scripts/common/impl/" "\\.sh$")
1408 (("^ *PATH=.*") "")
1409 (("action=/bin/") "action=")
1410 (("export PATH") ":"))
1411 #t))
1412 (replace 'configure
1413 (lambda* (#:key inputs outputs #:allow-other-keys)
1414 (let ((out (assoc-ref outputs "out"))
1415 (lib (string-append (assoc-ref outputs "lib") "/lib"))
1416 (include (string-append (assoc-ref outputs "include")
1417 "/include/ncbi-tools++")))
1418 ;; The 'configure' script doesn't recognize things like
1419 ;; '--enable-fast-install'.
1420 (invoke "./configure.orig"
1421 (string-append "--with-build-root=" (getcwd) "/build")
1422 (string-append "--prefix=" out)
1423 (string-append "--libdir=" lib)
1424 (string-append "--includedir=" include)
1425 (string-append "--with-bz2="
1426 (assoc-ref inputs "bzip2"))
1427 (string-append "--with-z="
1428 (assoc-ref inputs "zlib"))
1429 (string-append "--with-pcre="
1430 (assoc-ref inputs "pcre"))
1431 ;; Each library is built twice by default, once
1432 ;; with "-static" in its name, and again
1433 ;; without.
1434 "--without-static"
1435 "--with-dll")
1436 #t))))))
1437 (outputs '("out" ; 21 MB
1438 "lib" ; 226 MB
1439 "include")) ; 33 MB
1440 (inputs
1441 `(("bzip2" ,bzip2)
1442 ("lmdb" ,lmdb)
1443 ("zlib" ,zlib)
1444 ("pcre" ,pcre)
1445 ("perl" ,perl)
1446 ("python" ,python-wrapper)))
1447 (native-inputs
1448 `(("cpio" ,cpio)))
1449 (home-page "https://blast.ncbi.nlm.nih.gov")
1450 (synopsis "Basic local alignment search tool")
1451 (description
1452 "BLAST is a popular method of performing a DNA or protein sequence
1453 similarity search, using heuristics to produce results quickly. It also
1454 calculates an “expect value” that estimates how many matches would have
1455 occurred at a given score by chance, which can aid a user in judging how much
1456 confidence to have in an alignment.")
1457 ;; Most of the sources are in the public domain, with the following
1458 ;; exceptions:
1459 ;; * Expat:
1460 ;; * ./c++/include/util/bitset/
1461 ;; * ./c++/src/html/ncbi_menu*.js
1462 ;; * Boost license:
1463 ;; * ./c++/include/util/impl/floating_point_comparison.hpp
1464 ;; * LGPL 2+:
1465 ;; * ./c++/include/dbapi/driver/odbc/unix_odbc/
1466 ;; * ASL 2.0:
1467 ;; * ./c++/src/corelib/teamcity_*
1468 (license (list license:public-domain
1469 license:expat
1470 license:boost1.0
1471 license:lgpl2.0+
1472 license:asl2.0))))
1473
1474 (define-public bless
1475 (package
1476 (name "bless")
1477 (version "1p02")
1478 (source (origin
1479 (method url-fetch)
1480 (uri (string-append "mirror://sourceforge/bless-ec/bless.v"
1481 version ".tgz"))
1482 (sha256
1483 (base32
1484 "0rm0gw2s18dqwzzpl3c2x1z05ni2v0xz5dmfk3d33j6g4cgrlrdd"))
1485 (modules '((guix build utils)))
1486 (snippet
1487 `(begin
1488 ;; Remove bundled boost, pigz, zlib, and .git directory
1489 ;; FIXME: also remove bundled sources for murmurhash3 and
1490 ;; kmc once packaged.
1491 (delete-file-recursively "boost")
1492 (delete-file-recursively "pigz")
1493 (delete-file-recursively "google-sparsehash")
1494 (delete-file-recursively "zlib")
1495 (delete-file-recursively ".git")
1496 #t))))
1497 (build-system gnu-build-system)
1498 (arguments
1499 '(#:tests? #f ;no "check" target
1500 #:make-flags
1501 (list (string-append "ZLIB="
1502 (assoc-ref %build-inputs "zlib:static")
1503 "/lib/libz.a")
1504 (string-append "LDFLAGS="
1505 (string-join '("-lboost_filesystem"
1506 "-lboost_system"
1507 "-lboost_iostreams"
1508 "-lz"
1509 "-fopenmp"))))
1510 #:phases
1511 (modify-phases %standard-phases
1512 (add-after 'unpack 'do-not-build-bundled-pigz
1513 (lambda* (#:key inputs outputs #:allow-other-keys)
1514 (substitute* "Makefile"
1515 (("cd pigz/pigz-2.3.3; make") ""))
1516 #t))
1517 (add-after 'unpack 'patch-paths-to-executables
1518 (lambda* (#:key inputs outputs #:allow-other-keys)
1519 (substitute* "parse_args.cpp"
1520 (("kmc_binary = .*")
1521 (string-append "kmc_binary = \""
1522 (assoc-ref outputs "out")
1523 "/bin/kmc\";"))
1524 (("pigz_binary = .*")
1525 (string-append "pigz_binary = \""
1526 (assoc-ref inputs "pigz")
1527 "/bin/pigz\";")))
1528 #t))
1529 (replace 'install
1530 (lambda* (#:key outputs #:allow-other-keys)
1531 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
1532 (for-each (lambda (file)
1533 (install-file file bin))
1534 '("bless" "kmc/bin/kmc"))
1535 #t)))
1536 (delete 'configure))))
1537 (native-inputs
1538 `(("perl" ,perl)))
1539 (inputs
1540 `(("openmpi" ,openmpi)
1541 ("boost" ,boost)
1542 ("sparsehash" ,sparsehash)
1543 ("pigz" ,pigz)
1544 ("zlib:static" ,zlib "static")
1545 ("zlib" ,zlib)))
1546 (supported-systems '("x86_64-linux"))
1547 (home-page "https://sourceforge.net/p/bless-ec/wiki/Home/")
1548 (synopsis "Bloom-filter-based error correction tool for NGS reads")
1549 (description
1550 "@dfn{Bloom-filter-based error correction solution for high-throughput
1551 sequencing reads} (BLESS) uses a single minimum-sized bloom filter is a
1552 correction tool for genomic reads produced by @dfn{Next-generation
1553 sequencing} (NGS). BLESS produces accurate correction results with much less
1554 memory compared with previous solutions and is also able to tolerate a higher
1555 false-positive rate. BLESS can extend reads like DNA assemblers to correct
1556 errors at the end of reads.")
1557 (license license:gpl3+)))
1558
1559 (define-public bowtie
1560 (package
1561 (name "bowtie")
1562 (version "2.3.4.3")
1563 (source (origin
1564 (method git-fetch)
1565 (uri (git-reference
1566 (url "https://github.com/BenLangmead/bowtie2.git")
1567 (commit (string-append "v" version))))
1568 (file-name (git-file-name name version))
1569 (sha256
1570 (base32
1571 "1zl3cf327y2p7p03cavymbh7b00djc7lncfaqih33n96iy9q8ibp"))
1572 (modules '((guix build utils)))
1573 (snippet
1574 '(begin
1575 (substitute* "Makefile"
1576 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1577 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1578 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
1579 #t))))
1580 (build-system gnu-build-system)
1581 (arguments
1582 '(#:make-flags
1583 (list "allall"
1584 "WITH_TBB=1"
1585 (string-append "prefix=" (assoc-ref %outputs "out")))
1586 #:phases
1587 (modify-phases %standard-phases
1588 (delete 'configure)
1589 (replace 'check
1590 (lambda _
1591 (invoke "perl"
1592 "scripts/test/simple_tests.pl"
1593 "--bowtie2=./bowtie2"
1594 "--bowtie2-build=./bowtie2-build")
1595 #t)))))
1596 (inputs
1597 `(("tbb" ,tbb)
1598 ("zlib" ,zlib)
1599 ("python" ,python-wrapper)))
1600 (native-inputs
1601 `(("perl" ,perl)
1602 ("perl-clone" ,perl-clone)
1603 ("perl-test-deep" ,perl-test-deep)
1604 ("perl-test-simple" ,perl-test-simple)))
1605 (home-page "http://bowtie-bio.sourceforge.net/bowtie2/index.shtml")
1606 (synopsis "Fast and sensitive nucleotide sequence read aligner")
1607 (description
1608 "Bowtie 2 is a fast and memory-efficient tool for aligning sequencing
1609 reads to long reference sequences. It is particularly good at aligning reads
1610 of about 50 up to 100s or 1,000s of characters, and particularly good at
1611 aligning to relatively long (e.g. mammalian) genomes. Bowtie 2 indexes the
1612 genome with an FM Index to keep its memory footprint small: for the human
1613 genome, its memory footprint is typically around 3.2 GB. Bowtie 2 supports
1614 gapped, local, and paired-end alignment modes.")
1615 (supported-systems '("x86_64-linux"))
1616 (license license:gpl3+)))
1617
1618 (define-public bowtie1
1619 (package
1620 (name "bowtie1")
1621 (version "1.2.3")
1622 (source (origin
1623 (method url-fetch)
1624 (uri (string-append "mirror://sourceforge/bowtie-bio/bowtie/"
1625 version "/bowtie-src-x86_64.zip"))
1626 (sha256
1627 (base32
1628 "0vmiqdhc9dzyfy9sh6vgi7k9xy2hiw8g87vbamnc6cgpm179zsa4"))
1629 (modules '((guix build utils)))
1630 (snippet
1631 '(substitute* "Makefile"
1632 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1633 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1634 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\"")))))
1635 (build-system gnu-build-system)
1636 (arguments
1637 '(#:tests? #f ; no "check" target
1638 #:make-flags
1639 (list "all"
1640 (string-append "prefix=" (assoc-ref %outputs "out")))
1641 #:phases
1642 (modify-phases %standard-phases
1643 (delete 'configure))))
1644 (inputs
1645 `(("tbb" ,tbb)
1646 ("zlib" ,zlib)))
1647 (supported-systems '("x86_64-linux"))
1648 (home-page "http://bowtie-bio.sourceforge.net/index.shtml")
1649 (synopsis "Fast aligner for short nucleotide sequence reads")
1650 (description
1651 "Bowtie is a fast, memory-efficient short read aligner. It aligns short
1652 DNA sequences (reads) to the human genome at a rate of over 25 million 35-bp
1653 reads per hour. Bowtie indexes the genome with a Burrows-Wheeler index to
1654 keep its memory footprint small: typically about 2.2 GB for the human
1655 genome (2.9 GB for paired-end).")
1656 (license license:artistic2.0)))
1657
1658 (define-public tophat
1659 (package
1660 (name "tophat")
1661 (version "2.1.1")
1662 (source (origin
1663 (method url-fetch)
1664 (uri (string-append
1665 "http://ccb.jhu.edu/software/tophat/downloads/tophat-"
1666 version ".tar.gz"))
1667 (sha256
1668 (base32
1669 "19add02kv2xhd6ihd779dr7x35ggym3jqr0m5c4315i1yfb0p11p"))
1670 (modules '((guix build utils)))
1671 (snippet
1672 '(begin
1673 ;; Remove bundled SeqAn and samtools
1674 (delete-file-recursively "src/SeqAn-1.4.2")
1675 (delete-file-recursively "src/samtools-0.1.18")
1676 #t))))
1677 (build-system gnu-build-system)
1678 (arguments
1679 '(#:parallel-build? #f ; not supported
1680 #:phases
1681 (modify-phases %standard-phases
1682 (add-after 'unpack 'use-system-samtools
1683 (lambda* (#:key inputs #:allow-other-keys)
1684 (substitute* "src/Makefile.in"
1685 (("(noinst_LIBRARIES = )\\$\\(SAMLIB\\)" _ prefix) prefix)
1686 (("\\$\\(SAMPROG\\): \\$\\(SAMLIB\\)") "")
1687 (("SAMPROG = samtools_0\\.1\\.18") "")
1688 (("\\$\\(samtools_0_1_18_SOURCES\\)") "")
1689 (("am__EXEEXT_1 = samtools_0\\.1\\.18\\$\\(EXEEXT\\)") ""))
1690 (substitute* '("src/common.cpp"
1691 "src/tophat.py")
1692 (("samtools_0.1.18") (which "samtools")))
1693 (substitute* '("src/common.h"
1694 "src/bam2fastx.cpp")
1695 (("#include \"bam.h\"") "#include <samtools/bam.h>")
1696 (("#include \"sam.h\"") "#include <samtools/sam.h>"))
1697 (substitute* '("src/bwt_map.h"
1698 "src/map2gtf.h"
1699 "src/align_status.h")
1700 (("#include <bam.h>") "#include <samtools/bam.h>")
1701 (("#include <sam.h>") "#include <samtools/sam.h>"))
1702 #t)))))
1703 (native-inputs
1704 `(("gcc" ,gcc-5))) ;; doesn't build with later versions
1705 (inputs
1706 `(("boost" ,boost)
1707 ("bowtie" ,bowtie)
1708 ("ncurses" ,ncurses)
1709 ("perl" ,perl)
1710 ("python" ,python-2)
1711 ("samtools" ,samtools-0.1)
1712 ("seqan" ,seqan-1)
1713 ("zlib" ,zlib)))
1714 (home-page "https://ccb.jhu.edu/software/tophat/index.shtml")
1715 (synopsis "Spliced read mapper for RNA-Seq data")
1716 (description
1717 "TopHat is a fast splice junction mapper for nucleotide sequence
1718 reads produced by the RNA-Seq method. It aligns RNA-Seq reads to
1719 mammalian-sized genomes using the ultra high-throughput short read
1720 aligner Bowtie, and then analyzes the mapping results to identify
1721 splice junctions between exons.")
1722 ;; TopHat is released under the Boost Software License, Version 1.0
1723 ;; See https://github.com/infphilo/tophat/issues/11#issuecomment-121589893
1724 (license license:boost1.0)))
1725
1726 (define-public bwa
1727 (package
1728 (name "bwa")
1729 (version "0.7.17")
1730 (source (origin
1731 (method url-fetch)
1732 (uri (string-append
1733 "https://github.com/lh3/bwa/releases/download/v"
1734 version "/bwa-" version ".tar.bz2"))
1735 (sha256
1736 (base32
1737 "1zfhv2zg9v1icdlq4p9ssc8k01mca5d1bd87w71py2swfi74s6yy"))))
1738 (build-system gnu-build-system)
1739 (arguments
1740 '(#:tests? #f ;no "check" target
1741 #:phases
1742 (modify-phases %standard-phases
1743 (replace 'install
1744 (lambda* (#:key outputs #:allow-other-keys)
1745 (let* ((out (assoc-ref outputs "out"))
1746 (bin (string-append out "/bin"))
1747 (lib (string-append out "/lib"))
1748 (doc (string-append out "/share/doc/bwa"))
1749 (man (string-append out "/share/man/man1")))
1750 (install-file "bwa" bin)
1751 (install-file "libbwa.a" lib)
1752 (install-file "README.md" doc)
1753 (install-file "bwa.1" man))
1754 #t))
1755 ;; no "configure" script
1756 (delete 'configure))))
1757 (inputs `(("zlib" ,zlib)))
1758 ;; Non-portable SSE instructions are used so building fails on platforms
1759 ;; other than x86_64.
1760 (supported-systems '("x86_64-linux"))
1761 (home-page "http://bio-bwa.sourceforge.net/")
1762 (synopsis "Burrows-Wheeler sequence aligner")
1763 (description
1764 "BWA is a software package for mapping low-divergent sequences against a
1765 large reference genome, such as the human genome. It consists of three
1766 algorithms: BWA-backtrack, BWA-SW and BWA-MEM. The first algorithm is
1767 designed for Illumina sequence reads up to 100bp, while the rest two for
1768 longer sequences ranged from 70bp to 1Mbp. BWA-MEM and BWA-SW share similar
1769 features such as long-read support and split alignment, but BWA-MEM, which is
1770 the latest, is generally recommended for high-quality queries as it is faster
1771 and more accurate. BWA-MEM also has better performance than BWA-backtrack for
1772 70-100bp Illumina reads.")
1773 (license license:gpl3+)))
1774
1775 (define-public bwa-pssm
1776 (package (inherit bwa)
1777 (name "bwa-pssm")
1778 (version "0.5.11")
1779 (source (origin
1780 (method git-fetch)
1781 (uri (git-reference
1782 (url "https://github.com/pkerpedjiev/bwa-pssm.git")
1783 (commit version)))
1784 (file-name (git-file-name name version))
1785 (sha256
1786 (base32
1787 "076c4q0cdqz8jgylb067y9zmvxglppnzi3qiscn0xiypgc6lgb5r"))))
1788 (build-system gnu-build-system)
1789 (inputs
1790 `(("gdsl" ,gdsl)
1791 ("zlib" ,zlib)
1792 ("perl" ,perl)))
1793 (home-page "http://bwa-pssm.binf.ku.dk/")
1794 (synopsis "Burrows-Wheeler transform-based probabilistic short read mapper")
1795 (description
1796 "BWA-PSSM is a probabilistic short genomic sequence read aligner based on
1797 the use of @dfn{position specific scoring matrices} (PSSM). Like many of the
1798 existing aligners it is fast and sensitive. Unlike most other aligners,
1799 however, it is also adaptible in the sense that one can direct the alignment
1800 based on known biases within the data set. It is coded as a modification of
1801 the original BWA alignment program and shares the genome index structure as
1802 well as many of the command line options.")
1803 (license license:gpl3+)))
1804
1805 (define-public bwa-meth
1806 (package
1807 (name "bwa-meth")
1808 (version "0.2.2")
1809 (source (origin
1810 (method git-fetch)
1811 (uri (git-reference
1812 (url "https://github.com/brentp/bwa-meth.git")
1813 (commit (string-append "v" version))))
1814 (file-name (git-file-name name version))
1815 (sha256
1816 (base32
1817 "17j31i7zws5j7mhsq9x3qgkxly6mlmrgwhfq0qbflgxrmx04yaiz"))))
1818 (build-system python-build-system)
1819 (arguments
1820 `(#:phases
1821 (modify-phases %standard-phases
1822 (add-after 'unpack 'keep-references-to-bwa
1823 (lambda* (#:key inputs #:allow-other-keys)
1824 (substitute* "bwameth.py"
1825 (("bwa (mem|index)" _ command)
1826 (string-append (which "bwa") " " command))
1827 ;; There's an ill-advised check for "samtools" on PATH.
1828 (("^checkX.*") ""))
1829 #t)))))
1830 (inputs
1831 `(("bwa" ,bwa)))
1832 (native-inputs
1833 `(("python-toolshed" ,python-toolshed)))
1834 (home-page "https://github.com/brentp/bwa-meth")
1835 (synopsis "Fast and accurante alignment of BS-Seq reads")
1836 (description
1837 "BWA-Meth works for single-end reads and for paired-end reads from the
1838 directional protocol (most common). It uses the method employed by
1839 methylcoder and Bismark of in silico conversion of all C's to T's in both
1840 reference and reads. It recovers the original read (needed to tabulate
1841 methylation) by attaching it as a comment which BWA appends as a tag to the
1842 read. It performs favorably to existing aligners gauged by number of on and
1843 off-target reads for a capture method that targets CpG-rich region.")
1844 (license license:expat)))
1845
1846 (define-public python-bx-python
1847 (package
1848 (name "python-bx-python")
1849 (version "0.8.2")
1850 (source (origin
1851 (method url-fetch)
1852 (uri (pypi-uri "bx-python" version))
1853 (sha256
1854 (base32
1855 "11kksg2rbzihpmcid823xvg42xi88m7sz58rzk29abybkxy0rszs"))))
1856 (build-system python-build-system)
1857 ;; Tests fail because test data are not included
1858 (arguments '(#:tests? #f))
1859 (propagated-inputs
1860 `(("python-numpy" ,python-numpy)
1861 ("python-six" ,python-six)))
1862 (inputs
1863 `(("zlib" ,zlib)))
1864 (native-inputs
1865 `(("python-lzo" ,python-lzo)
1866 ("python-nose" ,python-nose)
1867 ("python-cython" ,python-cython)))
1868 (home-page "https://github.com/bxlab/bx-python")
1869 (synopsis "Tools for manipulating biological data")
1870 (description
1871 "bx-python provides tools for manipulating biological data, particularly
1872 multiple sequence alignments.")
1873 (license license:expat)))
1874
1875 (define-public python2-bx-python
1876 (package-with-python2 python-bx-python))
1877
1878 (define-public python-pysam
1879 (package
1880 (name "python-pysam")
1881 (version "0.15.1")
1882 (source (origin
1883 (method git-fetch)
1884 ;; Test data is missing on PyPi.
1885 (uri (git-reference
1886 (url "https://github.com/pysam-developers/pysam.git")
1887 (commit (string-append "v" version))))
1888 (file-name (git-file-name name version))
1889 (sha256
1890 (base32
1891 "1vj367w6xbn9bpmksm162l1aipf7cj97h1q83y7jcpm33ihwpf7x"))
1892 (modules '((guix build utils)))
1893 (snippet '(begin
1894 ;; Drop bundled htslib. TODO: Also remove samtools
1895 ;; and bcftools.
1896 (delete-file-recursively "htslib")
1897 #t))))
1898 (build-system python-build-system)
1899 (arguments
1900 `(#:modules ((ice-9 ftw)
1901 (srfi srfi-26)
1902 (guix build python-build-system)
1903 (guix build utils))
1904 #:phases
1905 (modify-phases %standard-phases
1906 (add-before 'build 'set-flags
1907 (lambda* (#:key inputs #:allow-other-keys)
1908 (setenv "HTSLIB_MODE" "external")
1909 (setenv "HTSLIB_LIBRARY_DIR"
1910 (string-append (assoc-ref inputs "htslib") "/lib"))
1911 (setenv "HTSLIB_INCLUDE_DIR"
1912 (string-append (assoc-ref inputs "htslib") "/include"))
1913 (setenv "LDFLAGS" "-lncurses")
1914 (setenv "CFLAGS" "-D_CURSES_LIB=1")
1915 #t))
1916 (replace 'check
1917 (lambda* (#:key inputs outputs #:allow-other-keys)
1918 ;; This file contains tests that require a connection to the
1919 ;; internet.
1920 (delete-file "tests/tabix_test.py")
1921 ;; FIXME: This test fails
1922 (delete-file "tests/AlignmentFile_test.py")
1923 ;; Add first subdirectory of "build" directory to PYTHONPATH.
1924 (setenv "PYTHONPATH"
1925 (string-append
1926 (getenv "PYTHONPATH")
1927 ":" (getcwd) "/build/"
1928 (car (scandir "build"
1929 (negate (cut string-prefix? "." <>))))))
1930 ;; Step out of source dir so python does not import from CWD.
1931 (with-directory-excursion "tests"
1932 (setenv "HOME" "/tmp")
1933 (invoke "make" "-C" "pysam_data")
1934 (invoke "make" "-C" "cbcf_data")
1935 ;; Running nosetests without explicitly asking for a single
1936 ;; process leads to a crash. Running with multiple processes
1937 ;; fails because the tests are not designed to run in parallel.
1938
1939 ;; FIXME: tests keep timing out on some systems.
1940 (invoke "nosetests" "-v" "--processes" "1")))))))
1941 (propagated-inputs
1942 `(("htslib" ,htslib))) ; Included from installed header files.
1943 (inputs
1944 `(("ncurses" ,ncurses)
1945 ("curl" ,curl)
1946 ("zlib" ,zlib)))
1947 (native-inputs
1948 `(("python-cython" ,python-cython)
1949 ;; Dependencies below are are for tests only.
1950 ("samtools" ,samtools)
1951 ("bcftools" ,bcftools)
1952 ("python-nose" ,python-nose)))
1953 (home-page "https://github.com/pysam-developers/pysam")
1954 (synopsis "Python bindings to the SAMtools C API")
1955 (description
1956 "Pysam is a Python module for reading and manipulating files in the
1957 SAM/BAM format. Pysam is a lightweight wrapper of the SAMtools C API. It
1958 also includes an interface for tabix.")
1959 (license license:expat)))
1960
1961 (define-public python2-pysam
1962 (package-with-python2 python-pysam))
1963
1964 (define-public python-twobitreader
1965 (package
1966 (name "python-twobitreader")
1967 (version "3.1.6")
1968 (source (origin
1969 (method git-fetch)
1970 (uri (git-reference
1971 (url "https://github.com/benjschiller/twobitreader")
1972 (commit version)))
1973 (file-name (git-file-name name version))
1974 (sha256
1975 (base32
1976 "1qbxvv1h58cismbk1anpjrkpghsaiy64a11ir3lhy6qch6xf8n62"))))
1977 (build-system python-build-system)
1978 ;; Tests are not included
1979 (arguments '(#:tests? #f))
1980 (native-inputs
1981 `(("python-sphinx" ,python-sphinx)))
1982 (home-page "https://github.com/benjschiller/twobitreader")
1983 (synopsis "Python library for reading .2bit files")
1984 (description
1985 "twobitreader is a Python library for reading .2bit files as used by the
1986 UCSC genome browser.")
1987 (license license:artistic2.0)))
1988
1989 (define-public python2-twobitreader
1990 (package-with-python2 python-twobitreader))
1991
1992 (define-public python-plastid
1993 (package
1994 (name "python-plastid")
1995 (version "0.4.8")
1996 (source (origin
1997 (method url-fetch)
1998 (uri (pypi-uri "plastid" version))
1999 (sha256
2000 (base32
2001 "0l24dd3q66if8yj042m4s0g95n6acn7im1imqd3p6h8ns43kxhj8"))))
2002 (build-system python-build-system)
2003 (arguments
2004 ;; Some test files are not included.
2005 `(#:tests? #f))
2006 (propagated-inputs
2007 `(("python-numpy" ,python-numpy)
2008 ("python-scipy" ,python-scipy)
2009 ("python-pandas" ,python-pandas)
2010 ("python-pysam" ,python-pysam)
2011 ("python-matplotlib" ,python-matplotlib)
2012 ("python-biopython" ,python-biopython)
2013 ("python-twobitreader" ,python-twobitreader)
2014 ("python-termcolor" ,python-termcolor)))
2015 (native-inputs
2016 `(("python-cython" ,python-cython)
2017 ("python-nose" ,python-nose)))
2018 (home-page "https://github.com/joshuagryphon/plastid")
2019 (synopsis "Python library for genomic analysis")
2020 (description
2021 "plastid is a Python library for genomic analysis – in particular,
2022 high-throughput sequencing data – with an emphasis on simplicity.")
2023 (license license:bsd-3)))
2024
2025 (define-public python2-plastid
2026 (package-with-python2 python-plastid))
2027
2028 (define-public tetoolkit
2029 (package
2030 (name "tetoolkit")
2031 (version "2.0.3")
2032 (source (origin
2033 (method git-fetch)
2034 (uri (git-reference
2035 (url "https://github.com/mhammell-laboratory/tetoolkit.git")
2036 (commit version)))
2037 (file-name (git-file-name name version))
2038 (sha256
2039 (base32
2040 "1yzi0kfpzip8zpjb82x1ik6h22yzfyjiz2dv85v6as2awwqvk807"))))
2041 (build-system python-build-system)
2042 (arguments
2043 `(#:python ,python-2 ; not guaranteed to work with Python 3
2044 #:phases
2045 (modify-phases %standard-phases
2046 (add-after 'unpack 'make-writable
2047 (lambda _
2048 (for-each make-file-writable (find-files "."))
2049 #t))
2050 (add-after 'unpack 'patch-invocations
2051 (lambda* (#:key inputs #:allow-other-keys)
2052 (substitute* '("bin/TEtranscripts"
2053 "bin/TEcount")
2054 (("'sort ")
2055 (string-append "'" (which "sort") " "))
2056 (("'rm -f ")
2057 (string-append "'" (which "rm") " -f "))
2058 (("'Rscript'") (string-append "'" (which "Rscript") "'")))
2059 (substitute* "TEToolkit/IO/ReadInputs.py"
2060 (("BamToBED") (which "bamToBed")))
2061 (substitute* "TEToolkit/Normalization.py"
2062 (("\"Rscript\"")
2063 (string-append "\"" (which "Rscript") "\"")))
2064 #t))
2065 (add-after 'install 'wrap-program
2066 (lambda* (#:key outputs #:allow-other-keys)
2067 ;; Make sure the executables find R packages.
2068 (let ((out (assoc-ref outputs "out")))
2069 (for-each
2070 (lambda (script)
2071 (wrap-program (string-append out "/bin/" script)
2072 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
2073 '("TEtranscripts"
2074 "TEcount")))
2075 #t)))))
2076 (inputs
2077 `(("coreutils" ,coreutils)
2078 ("bedtools" ,bedtools)
2079 ("python-argparse" ,python2-argparse)
2080 ("python-pysam" ,python2-pysam)
2081 ("r-minimal" ,r-minimal)
2082 ("r-deseq2" ,r-deseq2)))
2083 (home-page "https://github.com/mhammell-laboratory/tetoolkit")
2084 (synopsis "Transposable elements in differential enrichment analysis")
2085 (description
2086 "This is package for including transposable elements in differential
2087 enrichment analysis of sequencing datasets. TEtranscripts and TEcount take
2088 RNA-seq (and similar data) and annotates reads to both genes and transposable
2089 elements. TEtranscripts then performs differential analysis using DESeq2.
2090 Note that TEtranscripts and TEcount rely on specially curated GTF files, which
2091 are not included due to their size.")
2092 (license license:gpl3+)))
2093
2094 (define-public cd-hit
2095 (package
2096 (name "cd-hit")
2097 (version "4.6.8")
2098 (source (origin
2099 (method url-fetch)
2100 (uri (string-append "https://github.com/weizhongli/cdhit"
2101 "/releases/download/V" version
2102 "/cd-hit-v" version
2103 "-2017-0621-source.tar.gz"))
2104 (sha256
2105 (base32
2106 "1b4mwm2520ixjbw57sil20f9iixzw4bkdqqwgg1fc3pzm6rz4zmn"))))
2107 (build-system gnu-build-system)
2108 (arguments
2109 `(#:tests? #f ; there are no tests
2110 #:make-flags
2111 ;; Executables are copied directly to the PREFIX.
2112 (list (string-append "PREFIX=" (assoc-ref %outputs "out") "/bin")
2113 ;; Support longer sequences (e.g. Pacbio sequences)
2114 "MAX_SEQ=60000000")
2115 #:phases
2116 (modify-phases %standard-phases
2117 ;; No "configure" script
2118 (delete 'configure)
2119 ;; Remove sources of non-determinism
2120 (add-after 'unpack 'be-timeless
2121 (lambda _
2122 (substitute* "cdhit-utility.c++"
2123 ((" \\(built on \" __DATE__ \"\\)") ""))
2124 (substitute* "cdhit-common.c++"
2125 (("__DATE__") "\"0\"")
2126 (("\", %s, \" __TIME__ \"\\\\n\", date") ""))
2127 #t))
2128 ;; The "install" target does not create the target directory.
2129 (add-before 'install 'create-target-dir
2130 (lambda* (#:key outputs #:allow-other-keys)
2131 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
2132 #t)))))
2133 (inputs
2134 `(("perl" ,perl)))
2135 (home-page "http://weizhongli-lab.org/cd-hit/")
2136 (synopsis "Cluster and compare protein or nucleotide sequences")
2137 (description
2138 "CD-HIT is a program for clustering and comparing protein or nucleotide
2139 sequences. CD-HIT is designed to be fast and handle extremely large
2140 databases.")
2141 ;; The manual says: "It can be copied under the GNU General Public License
2142 ;; version 2 (GPLv2)."
2143 (license license:gpl2)))
2144
2145 (define-public clipper
2146 (package
2147 (name "clipper")
2148 (version "1.2.1")
2149 (source (origin
2150 (method git-fetch)
2151 (uri (git-reference
2152 (url "https://github.com/YeoLab/clipper.git")
2153 (commit version)))
2154 (file-name (git-file-name name version))
2155 (sha256
2156 (base32
2157 "0fja1rj84wp9vpj8rxpj3n8zqzcqq454m904yp9as1w4phccirjb"))
2158 (modules '((guix build utils)))
2159 (snippet
2160 '(begin
2161 ;; remove unnecessary setup dependency
2162 (substitute* "setup.py"
2163 (("setup_requires = .*") ""))
2164 #t))))
2165 (build-system python-build-system)
2166 (arguments
2167 `(#:python ,python-2 ; only Python 2 is supported
2168 #:phases
2169 (modify-phases %standard-phases
2170 ;; This is fixed in upstream commit
2171 ;; f6c2990198f906bf97730d95695b4bd5a6d01ddb.
2172 (add-after 'unpack 'fix-typo
2173 (lambda _
2174 (substitute* "clipper/src/readsToWiggle.pyx"
2175 (("^sc.*") ""))
2176 #t)))))
2177 (inputs
2178 `(("htseq" ,python2-htseq)
2179 ("python-pybedtools" ,python2-pybedtools)
2180 ("python-cython" ,python2-cython)
2181 ("python-scikit-learn" ,python2-scikit-learn)
2182 ("python-matplotlib" ,python2-matplotlib)
2183 ("python-pandas" ,python2-pandas)
2184 ("python-pysam" ,python2-pysam)
2185 ("python-numpy" ,python2-numpy)
2186 ("python-scipy" ,python2-scipy)))
2187 (native-inputs
2188 `(("python-mock" ,python2-mock) ; for tests
2189 ("python-nose" ,python2-nose) ; for tests
2190 ("python-pytz" ,python2-pytz))) ; for tests
2191 (home-page "https://github.com/YeoLab/clipper")
2192 (synopsis "CLIP peak enrichment recognition")
2193 (description
2194 "CLIPper is a tool to define peaks in CLIP-seq datasets.")
2195 (license license:gpl2)))
2196
2197 (define-public codingquarry
2198 (package
2199 (name "codingquarry")
2200 (version "2.0")
2201 (source (origin
2202 (method url-fetch)
2203 (uri (string-append
2204 "mirror://sourceforge/codingquarry/CodingQuarry_v"
2205 version ".tar.gz"))
2206 (sha256
2207 (base32
2208 "0115hkjflsnfzn36xppwf9h9avfxlavr43djqmshkkzbgjzsz60i"))))
2209 (build-system gnu-build-system)
2210 (arguments
2211 '(#:tests? #f ; no "check" target
2212 #:phases
2213 (modify-phases %standard-phases
2214 (delete 'configure)
2215 (replace 'install
2216 (lambda* (#:key outputs #:allow-other-keys)
2217 (let* ((out (assoc-ref outputs "out"))
2218 (bin (string-append out "/bin"))
2219 (doc (string-append out "/share/doc/codingquarry")))
2220 (install-file "INSTRUCTIONS.pdf" doc)
2221 (copy-recursively "QuarryFiles"
2222 (string-append out "/QuarryFiles"))
2223 (install-file "CodingQuarry" bin)
2224 (install-file "CufflinksGTF_to_CodingQuarryGFF3.py" bin))
2225 #t)))))
2226 (inputs `(("openmpi" ,openmpi)))
2227 (native-search-paths
2228 (list (search-path-specification
2229 (variable "QUARRY_PATH")
2230 (files '("QuarryFiles")))))
2231 (native-inputs `(("python" ,python-2))) ; Only Python 2 is supported
2232 (synopsis "Fungal gene predictor")
2233 (description "CodingQuarry is a highly accurate, self-training GHMM fungal
2234 gene predictor designed to work with assembled, aligned RNA-seq transcripts.")
2235 (home-page "https://sourceforge.net/projects/codingquarry/")
2236 (license license:gpl3+)))
2237
2238 (define-public couger
2239 (package
2240 (name "couger")
2241 (version "1.8.2")
2242 (source (origin
2243 (method url-fetch)
2244 (uri (string-append
2245 "http://couger.oit.duke.edu/static/assets/COUGER"
2246 version ".zip"))
2247 (sha256
2248 (base32
2249 "04p2b14nmhzxw5h72mpzdhalv21bx4w9b87z0wpw0xzxpysyncmq"))))
2250 (build-system gnu-build-system)
2251 (arguments
2252 `(#:tests? #f
2253 #:phases
2254 (modify-phases %standard-phases
2255 (delete 'configure)
2256 (delete 'build)
2257 (replace
2258 'install
2259 (lambda* (#:key outputs #:allow-other-keys)
2260 (let* ((out (assoc-ref outputs "out"))
2261 (bin (string-append out "/bin")))
2262 (copy-recursively "src" (string-append out "/src"))
2263 (mkdir bin)
2264 ;; Add "src" directory to module lookup path.
2265 (substitute* "couger"
2266 (("from argparse")
2267 (string-append "import sys\nsys.path.append(\""
2268 out "\")\nfrom argparse")))
2269 (install-file "couger" bin))
2270 #t))
2271 (add-after
2272 'install 'wrap-program
2273 (lambda* (#:key inputs outputs #:allow-other-keys)
2274 ;; Make sure 'couger' runs with the correct PYTHONPATH.
2275 (let* ((out (assoc-ref outputs "out"))
2276 (path (getenv "PYTHONPATH")))
2277 (wrap-program (string-append out "/bin/couger")
2278 `("PYTHONPATH" ":" prefix (,path))))
2279 #t)))))
2280 (inputs
2281 `(("python" ,python-2)
2282 ("python2-pillow" ,python2-pillow)
2283 ("python2-numpy" ,python2-numpy)
2284 ("python2-scipy" ,python2-scipy)
2285 ("python2-matplotlib" ,python2-matplotlib)))
2286 (propagated-inputs
2287 `(("r-minimal" ,r-minimal)
2288 ("libsvm" ,libsvm)
2289 ("randomjungle" ,randomjungle)))
2290 (native-inputs
2291 `(("unzip" ,unzip)))
2292 (home-page "http://couger.oit.duke.edu")
2293 (synopsis "Identify co-factors in sets of genomic regions")
2294 (description
2295 "COUGER can be applied to any two sets of genomic regions bound by
2296 paralogous TFs (e.g., regions derived from ChIP-seq experiments) to identify
2297 putative co-factors that provide specificity to each TF. The framework
2298 determines the genomic targets uniquely-bound by each TF, and identifies a
2299 small set of co-factors that best explain the in vivo binding differences
2300 between the two TFs.
2301
2302 COUGER uses classification algorithms (support vector machines and random
2303 forests) with features that reflect the DNA binding specificities of putative
2304 co-factors. The features are generated either from high-throughput TF-DNA
2305 binding data (from protein binding microarray experiments), or from large
2306 collections of DNA motifs.")
2307 (license license:gpl3+)))
2308
2309 (define-public clustal-omega
2310 (package
2311 (name "clustal-omega")
2312 (version "1.2.4")
2313 (source (origin
2314 (method url-fetch)
2315 (uri (string-append "http://www.clustal.org/omega/clustal-omega-"
2316 version ".tar.gz"))
2317 (sha256
2318 (base32
2319 "1vm30mzncwdv881vrcwg11vzvrsmwy4wg80j5i0lcfk6dlld50w6"))))
2320 (build-system gnu-build-system)
2321 (inputs
2322 `(("argtable" ,argtable)))
2323 (home-page "http://www.clustal.org/omega/")
2324 (synopsis "Multiple sequence aligner for protein and DNA/RNA")
2325 (description
2326 "Clustal-Omega is a general purpose multiple sequence alignment (MSA)
2327 program for protein and DNA/RNA. It produces high quality MSAs and is capable
2328 of handling data-sets of hundreds of thousands of sequences in reasonable
2329 time.")
2330 (license license:gpl2+)))
2331
2332 (define-public crossmap
2333 (package
2334 (name "crossmap")
2335 (version "0.3.8")
2336 (source (origin
2337 (method url-fetch)
2338 (uri (pypi-uri "CrossMap" version))
2339 (sha256
2340 (base32
2341 "1sb2f2qbxya4fzw3yjl09vbrs8vfmw22zrygrvz004sf9gb1vkan"))))
2342 (build-system python-build-system)
2343 (inputs
2344 `(("python-bx-python" ,python-bx-python)
2345 ("python-numpy" ,python-numpy)
2346 ("python-pybigwig" ,python-pybigwig)
2347 ("python-pysam" ,python-pysam)
2348 ("zlib" ,zlib)))
2349 (native-inputs
2350 `(("python-cython" ,python-cython)
2351 ("python-nose" ,python-nose)))
2352 (home-page "http://crossmap.sourceforge.net/")
2353 (synopsis "Convert genome coordinates between assemblies")
2354 (description
2355 "CrossMap is a program for conversion of genome coordinates or annotation
2356 files between different genome assemblies. It supports most commonly used
2357 file formats including SAM/BAM, Wiggle/BigWig, BED, GFF/GTF, VCF.")
2358 (license license:gpl2+)))
2359
2360 (define-public python-dnaio
2361 (package
2362 (name "python-dnaio")
2363 (version "0.3")
2364 (source
2365 (origin
2366 (method url-fetch)
2367 (uri (pypi-uri "dnaio" version))
2368 (sha256
2369 (base32
2370 "0f16m7hdlm0fz1n7y5asy0v9ghyrq17ni1p9iybq22ddzyd49r27"))))
2371 (build-system python-build-system)
2372 (native-inputs
2373 `(("python-cython" ,python-cython)
2374 ("python-pytest" ,python-pytest)
2375 ("python-xopen" ,python-xopen)))
2376 (home-page "https://github.com/marcelm/dnaio/")
2377 (synopsis "Read FASTA and FASTQ files efficiently")
2378 (description
2379 "dnaio is a Python library for fast parsing of FASTQ and also FASTA
2380 files. The code was previously part of the cutadapt tool.")
2381 (license license:expat)))
2382
2383 (define-public python-deeptoolsintervals
2384 (package
2385 (name "python-deeptoolsintervals")
2386 (version "0.1.9")
2387 (source (origin
2388 (method url-fetch)
2389 (uri (pypi-uri "deeptoolsintervals" version))
2390 (sha256
2391 (base32
2392 "1xnl80nblysj6dylj4683wgrfa425rkx4dp5k65hvwdns9pw753x"))))
2393 (build-system python-build-system)
2394 (inputs
2395 `(("zlib" ,zlib)))
2396 (home-page "https://github.com/deeptools/deeptools_intervals")
2397 (synopsis "Create GTF-based interval trees with associated meta-data")
2398 (description
2399 "This package provides a Python module creating/accessing GTF-based
2400 interval trees with associated meta-data. It is primarily used by the
2401 @code{deeptools} package.")
2402 (license license:expat)))
2403
2404 (define-public python-deeptools
2405 (package
2406 (name "python-deeptools")
2407 (version "3.4.3")
2408 (source (origin
2409 (method url-fetch)
2410 (uri (pypi-uri "deepTools" version))
2411 (sha256
2412 (base32
2413 "1azgjniss5ff6a90nicdjkxyjwqmi3gzfn09gra42hwlz19hipxb"))))
2414 (build-system python-build-system)
2415 (propagated-inputs
2416 `(("python-matplotlib" ,python-matplotlib)
2417 ("python-numpy" ,python-numpy)
2418 ("python-numpydoc" ,python-numpydoc)
2419 ("python-py2bit" ,python-py2bit)
2420 ("python-pybigwig" ,python-pybigwig)
2421 ("python-pysam" ,python-pysam)
2422 ("python-scipy" ,python-scipy)
2423 ("python-deeptoolsintervals" ,python-deeptoolsintervals)
2424 ("python-plotly" ,python-plotly)))
2425 (home-page "https://pypi.org/project/deepTools/")
2426 (synopsis "Useful tools for exploring deep sequencing data")
2427 (description "This package addresses the challenge of handling large amounts
2428 of data that are now routinely generated from DNA sequencing centers.
2429 @code{deepTools} contains useful modules to process the mapped reads data for
2430 multiple quality checks, creating normalized coverage files in standard bedGraph
2431 and bigWig file formats, that allow comparison between different files. Finally,
2432 using such normalized and standardized files, deepTools can create many
2433 publication-ready visualizations to identify enrichments and for functional
2434 annotations of the genome.")
2435 ;; The file deeptools/cm.py is licensed under the BSD license. The
2436 ;; remainder of the code is licensed under the MIT license.
2437 (license (list license:bsd-3 license:expat))))
2438
2439 (define-public cutadapt
2440 (package
2441 (name "cutadapt")
2442 (version "2.1")
2443 (source (origin
2444 (method url-fetch)
2445 (uri (pypi-uri "cutadapt" version))
2446 (sha256
2447 (base32
2448 "1vqmsfkm6llxzmsz9wcfcvzx9a9f8iabvwik2rbyn7nc4wm25z89"))))
2449 (build-system python-build-system)
2450 (inputs
2451 `(("python-dnaio" ,python-dnaio)
2452 ("python-xopen" ,python-xopen)))
2453 (native-inputs
2454 `(("python-cython" ,python-cython)
2455 ("python-pytest" ,python-pytest)
2456 ("python-setuptools-scm" ,python-setuptools-scm)))
2457 (home-page "https://cutadapt.readthedocs.io/en/stable/")
2458 (synopsis "Remove adapter sequences from nucleotide sequencing reads")
2459 (description
2460 "Cutadapt finds and removes adapter sequences, primers, poly-A tails and
2461 other types of unwanted sequence from high-throughput sequencing reads.")
2462 (license license:expat)))
2463
2464 (define-public libbigwig
2465 (package
2466 (name "libbigwig")
2467 (version "0.4.4")
2468 (source (origin
2469 (method git-fetch)
2470 (uri (git-reference
2471 (url "https://github.com/dpryan79/libBigWig.git")
2472 (commit version)))
2473 (file-name (git-file-name name version))
2474 (sha256
2475 (base32
2476 "09693dmf1scdac5pyq6qyn8b4mcipvnmc370k9a5z41z81m3dcsj"))))
2477 (build-system gnu-build-system)
2478 (arguments
2479 `(#:test-target "test"
2480 #:tests? #f ; tests require access to the web
2481 #:make-flags
2482 (list "CC=gcc"
2483 (string-append "prefix=" (assoc-ref %outputs "out")))
2484 #:phases
2485 (modify-phases %standard-phases
2486 (delete 'configure))))
2487 (inputs
2488 `(("zlib" ,zlib)
2489 ("curl" ,curl)))
2490 (native-inputs
2491 `(("doxygen" ,doxygen)
2492 ;; Need for tests
2493 ("python" ,python-2)))
2494 (home-page "https://github.com/dpryan79/libBigWig")
2495 (synopsis "C library for handling bigWig files")
2496 (description
2497 "This package provides a C library for parsing local and remote BigWig
2498 files.")
2499 (license license:expat)))
2500
2501 (define-public python-pybigwig
2502 (package
2503 (name "python-pybigwig")
2504 (version "0.3.17")
2505 (source (origin
2506 (method url-fetch)
2507 (uri (pypi-uri "pyBigWig" version))
2508 (sha256
2509 (base32
2510 "157x6v48y299zm382krf1dw08fdxg95im8lnabhp5vc94s04zxj1"))
2511 (modules '((guix build utils)))
2512 (snippet
2513 '(begin
2514 ;; Delete bundled libBigWig sources
2515 (delete-file-recursively "libBigWig")
2516 #t))))
2517 (build-system python-build-system)
2518 (arguments
2519 `(#:phases
2520 (modify-phases %standard-phases
2521 (add-after 'unpack 'link-with-libBigWig
2522 (lambda* (#:key inputs #:allow-other-keys)
2523 (substitute* "setup.py"
2524 (("libs=\\[") "libs=[\"BigWig\", "))
2525 #t)))))
2526 (propagated-inputs
2527 `(("python-numpy" ,python-numpy)))
2528 (inputs
2529 `(("libbigwig" ,libbigwig)
2530 ("zlib" ,zlib)
2531 ("curl" ,curl)))
2532 (home-page "https://github.com/dpryan79/pyBigWig")
2533 (synopsis "Access bigWig files in Python using libBigWig")
2534 (description
2535 "This package provides Python bindings to the libBigWig library for
2536 accessing bigWig files.")
2537 (license license:expat)))
2538
2539 (define-public python2-pybigwig
2540 (package-with-python2 python-pybigwig))
2541
2542 (define-public python-dendropy
2543 (package
2544 (name "python-dendropy")
2545 (version "4.4.0")
2546 (source
2547 (origin
2548 (method git-fetch)
2549 ;; Source from GitHub so that tests are included.
2550 (uri (git-reference
2551 (url "https://github.com/jeetsukumaran/DendroPy.git")
2552 (commit (string-append "v" version))))
2553 (file-name (git-file-name name version))
2554 (sha256
2555 (base32
2556 "097hfyv2kaf4x92i4rjx0paw2cncxap48qivv8zxng4z7nhid0x9"))))
2557 (build-system python-build-system)
2558 (home-page "https://dendropy.org/")
2559 (synopsis "Library for phylogenetics and phylogenetic computing")
2560 (description
2561 "DendroPy is a library for phylogenetics and phylogenetic computing: reading,
2562 writing, simulation, processing and manipulation of phylogenetic
2563 trees (phylogenies) and characters.")
2564 (license license:bsd-3)))
2565
2566 (define-public python2-dendropy
2567 (let ((base (package-with-python2 python-dendropy)))
2568 (package
2569 (inherit base)
2570 (arguments
2571 `(#:phases
2572 (modify-phases %standard-phases
2573 (add-after 'unpack 'remove-failing-test
2574 (lambda _
2575 ;; This test fails when the full test suite is run, as documented
2576 ;; at https://github.com/jeetsukumaran/DendroPy/issues/74
2577 (substitute* "tests/test_dataio_nexml_reader_tree_list.py"
2578 (("test_collection_comments_and_annotations")
2579 "do_not_test_collection_comments_and_annotations"))
2580 #t)))
2581 ,@(package-arguments base))))))
2582
2583 (define-public python-py2bit
2584 (package
2585 (name "python-py2bit")
2586 (version "0.3.0")
2587 (source
2588 (origin
2589 (method url-fetch)
2590 (uri (pypi-uri "py2bit" version))
2591 (sha256
2592 (base32
2593 "1vw2nvw1yrl7ikkqsqs1pg239yr5nspvd969r1x9arms1k25a1a5"))))
2594 (build-system python-build-system)
2595 (home-page "https://github.com/dpryan79/py2bit")
2596 (synopsis "Access 2bit files using lib2bit")
2597 (description
2598 "This package provides Python bindings for lib2bit to access 2bit files
2599 with Python.")
2600 (license license:expat)))
2601
2602 (define-public deeptools
2603 (package
2604 (name "deeptools")
2605 (version "3.1.3")
2606 (source (origin
2607 (method git-fetch)
2608 (uri (git-reference
2609 (url "https://github.com/deeptools/deepTools.git")
2610 (commit version)))
2611 (file-name (git-file-name name version))
2612 (sha256
2613 (base32
2614 "1vggnf52g6q2vifdl4cyi7s2fnfqq0ky2zrkj5zv2qfzsc3p3siw"))))
2615 (build-system python-build-system)
2616 (arguments
2617 `(#:phases
2618 (modify-phases %standard-phases
2619 ;; This phase fails, but it's not needed.
2620 (delete 'reset-gzip-timestamps))))
2621 (inputs
2622 `(("python-plotly" ,python-plotly)
2623 ("python-scipy" ,python-scipy)
2624 ("python-numpy" ,python-numpy)
2625 ("python-numpydoc" ,python-numpydoc)
2626 ("python-matplotlib" ,python-matplotlib)
2627 ("python-pysam" ,python-pysam)
2628 ("python-py2bit" ,python-py2bit)
2629 ("python-pybigwig" ,python-pybigwig)))
2630 (native-inputs
2631 `(("python-mock" ,python-mock) ;for tests
2632 ("python-nose" ,python-nose) ;for tests
2633 ("python-pytz" ,python-pytz))) ;for tests
2634 (home-page "https://github.com/deeptools/deepTools")
2635 (synopsis "Tools for normalizing and visualizing deep-sequencing data")
2636 (description
2637 "DeepTools addresses the challenge of handling the large amounts of data
2638 that are now routinely generated from DNA sequencing centers. To do so,
2639 deepTools contains useful modules to process the mapped reads data to create
2640 coverage files in standard bedGraph and bigWig file formats. By doing so,
2641 deepTools allows the creation of normalized coverage files or the comparison
2642 between two files (for example, treatment and control). Finally, using such
2643 normalized and standardized files, multiple visualizations can be created to
2644 identify enrichments with functional annotations of the genome.")
2645 (license license:gpl3+)))
2646
2647 (define-public delly
2648 (package
2649 (name "delly")
2650 (version "0.7.9")
2651 (source (origin
2652 (method git-fetch)
2653 (uri (git-reference
2654 (url "https://github.com/dellytools/delly.git")
2655 (commit (string-append "v" version))))
2656 (file-name (git-file-name name version))
2657 (sha256
2658 (base32 "034jqsxswy9gqdh2zkgc1js99qkv75ks4xvzgmh0284sraagv61z"))
2659 (modules '((guix build utils)))
2660 (snippet
2661 '(begin
2662 (delete-file-recursively "src/htslib")
2663 #t))))
2664 (build-system gnu-build-system)
2665 (arguments
2666 `(#:tests? #f ; There are no tests to run.
2667 #:make-flags
2668 (list "PARALLEL=1" ; Allow parallel execution at run-time.
2669 (string-append "prefix=" (assoc-ref %outputs "out")))
2670 #:phases
2671 (modify-phases %standard-phases
2672 (delete 'configure) ; There is no configure phase.
2673 (add-after 'install 'install-templates
2674 (lambda* (#:key outputs #:allow-other-keys)
2675 (let ((templates (string-append (assoc-ref outputs "out")
2676 "/share/delly/templates")))
2677 (mkdir-p templates)
2678 (copy-recursively "excludeTemplates" templates)
2679 #t))))))
2680 (inputs
2681 `(("boost" ,boost)
2682 ("htslib" ,htslib)
2683 ("zlib" ,zlib)
2684 ("bzip2" ,bzip2)))
2685 (home-page "https://github.com/dellytools/delly")
2686 (synopsis "Integrated structural variant prediction method")
2687 (description "Delly is an integrated structural variant prediction method
2688 that can discover and genotype deletions, tandem duplications, inversions and
2689 translocations at single-nucleotide resolution in short-read massively parallel
2690 sequencing data. It uses paired-ends and split-reads to sensitively and
2691 accurately delineate genomic rearrangements throughout the genome.")
2692 (license license:gpl3+)))
2693
2694 (define-public diamond
2695 (package
2696 (name "diamond")
2697 (version "0.9.30")
2698 (source (origin
2699 (method git-fetch)
2700 (uri (git-reference
2701 (url "https://github.com/bbuchfink/diamond.git")
2702 (commit (string-append "v" version))))
2703 (file-name (git-file-name name version))
2704 (sha256
2705 (base32
2706 "0k6f3kb6cniw11xw6763kkbs1sl0yack7xsy7q5fl5v170ssphq4"))))
2707 (build-system cmake-build-system)
2708 (arguments
2709 '(#:tests? #f ; no "check" target
2710 #:phases
2711 (modify-phases %standard-phases
2712 (add-after 'unpack 'remove-native-compilation
2713 (lambda _
2714 (substitute* "CMakeLists.txt" (("-march=native") ""))
2715 #t)))))
2716 (inputs
2717 `(("zlib" ,zlib)))
2718 (home-page "https://github.com/bbuchfink/diamond")
2719 (synopsis "Accelerated BLAST compatible local sequence aligner")
2720 (description
2721 "DIAMOND is a BLAST-compatible local aligner for mapping protein and
2722 translated DNA query sequences against a protein reference database (BLASTP
2723 and BLASTX alignment mode). The speedup over BLAST is up to 20,000 on short
2724 reads at a typical sensitivity of 90-99% relative to BLAST depending on the
2725 data and settings.")
2726 (license license:agpl3+)))
2727
2728 (define-public discrover
2729 (package
2730 (name "discrover")
2731 (version "1.6.0")
2732 (source
2733 (origin
2734 (method git-fetch)
2735 (uri (git-reference
2736 (url "https://github.com/maaskola/discrover.git")
2737 (commit version)))
2738 (file-name (git-file-name name version))
2739 (sha256
2740 (base32
2741 "173fwi2vb6a5kp406hm3jj6j7v4whww796f2qcygp4rpvamh307y"))))
2742 (build-system cmake-build-system)
2743 (arguments
2744 `(#:tests? #f ; there are no tests
2745 #:phases
2746 (modify-phases %standard-phases
2747 (add-after 'unpack 'fix-latex-errors
2748 (lambda _
2749 (with-fluids ((%default-port-encoding #f))
2750 (substitute* "doc/references.bib"
2751 (("\\{S\\}illanp[^,]+,")
2752 "{S}illanp{\\\"a}{\\\"a},")))
2753 ;; XXX: I just can't get pdflatex to not complain about these
2754 ;; characters. They end up in the manual via the generated
2755 ;; discrover-cli-help.txt.
2756 (substitute* "src/hmm/cli.cpp"
2757 (("µ") "mu")
2758 (("η") "eta")
2759 (("≤") "<="))
2760 ;; This seems to be a syntax error.
2761 (substitute* "doc/discrover-manual.tex"
2762 (("theverbbox\\[t\\]") "theverbbox"))
2763 #t))
2764 (add-after 'unpack 'add-missing-includes
2765 (lambda _
2766 (substitute* "src/executioninformation.hpp"
2767 (("#define EXECUTIONINFORMATION_HPP" line)
2768 (string-append line "\n#include <random>")))
2769 (substitute* "src/plasma/fasta.hpp"
2770 (("#define FASTA_HPP" line)
2771 (string-append line "\n#include <random>")))
2772 #t))
2773 ;; FIXME: this is needed because we're using texlive-union, which
2774 ;; doesn't handle fonts correctly. It expects to be able to generate
2775 ;; fonts in the home directory.
2776 (add-before 'build 'setenv-HOME
2777 (lambda _ (setenv "HOME" "/tmp") #t)))))
2778 (inputs
2779 `(("boost" ,boost)
2780 ("cairo" ,cairo)
2781 ("rmath-standalone" ,rmath-standalone)))
2782 (native-inputs
2783 `(("texlive" ,(texlive-union (list texlive-fonts-cm
2784 texlive-fonts-amsfonts
2785
2786 texlive-latex-doi
2787 texlive-latex-examplep
2788 texlive-latex-hyperref
2789 texlive-latex-ms
2790 texlive-latex-natbib
2791 texlive-bibtex ; style files used by natbib
2792 texlive-latex-pgf ; tikz
2793 texlive-latex-verbatimbox)))
2794 ("imagemagick" ,imagemagick)))
2795 (home-page "https://dorina.mdc-berlin.de/public/rajewsky/discrover/")
2796 (synopsis "Discover discriminative nucleotide sequence motifs")
2797 (description "Discrover is a motif discovery method to find binding sites
2798 of nucleic acid binding proteins.")
2799 (license license:gpl3+)))
2800
2801 (define-public eigensoft
2802 (package
2803 (name "eigensoft")
2804 (version "7.2.1")
2805 (source
2806 (origin
2807 (method git-fetch)
2808 (uri (git-reference
2809 (url "https://github.com/DReichLab/EIG.git")
2810 (commit (string-append "v" version))))
2811 (file-name (git-file-name name version))
2812 (sha256
2813 (base32
2814 "1c141fqvhnzibmnf22sv23vbmzm20kjjyrib44cfh75wyndp2d9k"))
2815 (modules '((guix build utils)))
2816 ;; Remove pre-built binaries.
2817 (snippet '(begin
2818 (delete-file-recursively "bin")
2819 (mkdir "bin")
2820 #t))))
2821 (build-system gnu-build-system)
2822 (arguments
2823 `(#:tests? #f ; There are no tests.
2824 #:make-flags '("CC=gcc")
2825 #:phases
2826 (modify-phases %standard-phases
2827 ;; There is no configure phase, but the Makefile is in a
2828 ;; sub-directory.
2829 (replace 'configure
2830 (lambda _ (chdir "src") #t))
2831 ;; The provided install target only copies executables to
2832 ;; the "bin" directory in the build root.
2833 (add-after 'install 'actually-install
2834 (lambda* (#:key outputs #:allow-other-keys)
2835 (let* ((out (assoc-ref outputs "out"))
2836 (bin (string-append out "/bin")))
2837 (for-each (lambda (file)
2838 (install-file file bin))
2839 (find-files "../bin" ".*"))
2840 #t))))))
2841 (inputs
2842 `(("gsl" ,gsl)
2843 ("lapack" ,lapack)
2844 ("openblas" ,openblas)
2845 ("perl" ,perl)
2846 ("gfortran" ,gfortran "lib")))
2847 (home-page "https://github.com/DReichLab/EIG")
2848 (synopsis "Tools for population genetics")
2849 (description "The EIGENSOFT package provides tools for population
2850 genetics and stratification correction. EIGENSOFT implements methods commonly
2851 used in population genetics analyses such as PCA, computation of Tracy-Widom
2852 statistics, and finding related individuals in structured populations. It
2853 comes with a built-in plotting script and supports multiple file formats and
2854 quantitative phenotypes.")
2855 ;; The license of the eigensoft tools is Expat, but since it's
2856 ;; linking with the GNU Scientific Library (GSL) the effective
2857 ;; license is the GPL.
2858 (license license:gpl3+)))
2859
2860 (define-public edirect
2861 (package
2862 (name "edirect")
2863 (version "13.3.20200128")
2864 (source (origin
2865 (method url-fetch)
2866 (uri (string-append "ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect"
2867 "/versions/" version
2868 "/edirect-" version ".tar.gz"))
2869 (sha256
2870 (base32
2871 "093zp7klv81ph0y8mm8d78a9hnpfxbv2kdym70gzdf3vz176rw33"))
2872 (modules '((guix build utils)))
2873 (snippet
2874 '(begin (delete-file "Mozilla-CA.tar.gz")
2875 (substitute* "rchive.go"
2876 ;; This go library does not have any license.
2877 (("github.com/fiam/gounidecode/unidecode")
2878 "golang.org/rainycape/unidecode"))
2879 #t))))
2880 (build-system perl-build-system)
2881 (arguments
2882 `(#:phases
2883 (modify-phases %standard-phases
2884 (delete 'configure)
2885 (delete 'build)
2886 (delete 'check) ; simple check after install
2887 (add-after 'unpack 'patch-programs
2888 (lambda* (#:key inputs #:allow-other-keys)
2889 ;; Ignore errors about missing xtract.Linux and rchive.Linux.
2890 (substitute* "pm-refresh"
2891 (("cat \\\"\\$target")
2892 "grep ^[[:digit:]] \"$target"))
2893 #t))
2894 (replace 'install
2895 (lambda* (#:key inputs outputs #:allow-other-keys)
2896 (let ((bin (string-append (assoc-ref outputs "out") "/bin"))
2897 (edirect-go (assoc-ref inputs "edirect-go-programs")))
2898 (for-each
2899 (lambda (file)
2900 (install-file file bin))
2901 '("archive-pubmed" "asp-cp" "asp-ls" "download-ncbi-data"
2902 "download-pubmed" "edirect.pl" "efetch" "epost" "esearch"
2903 "fetch-pubmed" "ftp-cp" "ftp-ls" "has-asp" "index-pubmed"
2904 "pm-prepare" "pm-refresh" "pm-stash" "pm-collect"
2905 "pm-index" "pm-invert" "pm-merge" "pm-promote"))
2906 (symlink (string-append edirect-go "/bin/xtract.Linux")
2907 (string-append bin "/xtract"))
2908 (symlink (string-append edirect-go "/bin/rchive.Linux")
2909 (string-append bin "/rchive")))
2910 #t))
2911 (add-after 'install 'wrap-program
2912 (lambda* (#:key outputs #:allow-other-keys)
2913 ;; Make sure everything can run in a pure environment.
2914 (let ((out (assoc-ref outputs "out"))
2915 (path (getenv "PERL5LIB")))
2916 (for-each
2917 (lambda (file)
2918 (wrap-program file
2919 `("PERL5LIB" ":" prefix (,path)))
2920 (wrap-program file
2921 `("PATH" ":" prefix (,(string-append out "/bin")
2922 ,(dirname (which "sed"))
2923 ,(dirname (which "gzip"))
2924 ,(dirname (which "grep"))
2925 ,(dirname (which "perl"))
2926 ,(dirname (which "uname"))))))
2927 (find-files out ".")))
2928 #t))
2929 (add-after 'wrap-program 'check
2930 (lambda* (#:key outputs #:allow-other-keys)
2931 (invoke (string-append (assoc-ref outputs "out")
2932 "/bin/edirect.pl")
2933 "-filter" "-help")
2934 #t)))))
2935 (inputs
2936 `(("edirect-go-programs" ,edirect-go-programs)
2937 ("perl-html-parser" ,perl-html-parser)
2938 ("perl-encode-locale" ,perl-encode-locale)
2939 ("perl-file-listing" ,perl-file-listing)
2940 ("perl-html-tagset" ,perl-html-tagset)
2941 ("perl-html-tree" ,perl-html-tree)
2942 ("perl-http-cookies" ,perl-http-cookies)
2943 ("perl-http-date" ,perl-http-date)
2944 ("perl-http-message" ,perl-http-message)
2945 ("perl-http-negotiate" ,perl-http-negotiate)
2946 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
2947 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
2948 ("perl-net-http" ,perl-net-http)
2949 ("perl-uri" ,perl-uri)
2950 ("perl-www-robotrules" ,perl-www-robotrules)
2951 ("perl-xml-simple" ,perl-xml-simple)
2952 ("perl" ,perl)))
2953 (home-page "https://www.ncbi.nlm.nih.gov/books/NBK179288/")
2954 (synopsis "Tools for accessing the NCBI's set of databases")
2955 (description
2956 "Entrez Direct (EDirect) is a method for accessing the National Center
2957 for Biotechnology Information's (NCBI) set of interconnected
2958 databases (publication, sequence, structure, gene, variation, expression,
2959 etc.) from a terminal. Functions take search terms from command-line
2960 arguments. Individual operations are combined to build multi-step queries.
2961 Record retrieval and formatting normally complete the process.
2962
2963 EDirect also provides an argument-driven function that simplifies the
2964 extraction of data from document summaries or other results that are returned
2965 in structured XML format. This can eliminate the need for writing custom
2966 software to answer ad hoc questions.")
2967 (native-search-paths
2968 ;; Ideally this should be set for LWP somewhere.
2969 (list (search-path-specification
2970 (variable "PERL_LWP_SSL_CA_FILE")
2971 (file-type 'regular)
2972 (separator #f)
2973 (files '("/etc/ssl/certs/ca-certificates.crt")))))
2974 (license license:public-domain)))
2975
2976 (define-public edirect-go-programs
2977 (package
2978 (inherit edirect)
2979 (name "edirect-go-programs")
2980 (build-system go-build-system)
2981 (arguments
2982 `(#:install-source? #f
2983 #:tests? #f ; No tests.
2984 #:import-path "ncbi.nlm.nih.gov/entrez/edirect"
2985 #:phases
2986 (modify-phases %standard-phases
2987 (replace 'build
2988 (lambda* (#:key import-path #:allow-other-keys)
2989 (with-directory-excursion (string-append "src/" import-path)
2990 (invoke "go" "build" "-v" "-x" "j2x.go")
2991 (invoke "go" "build" "-v" "-x" "t2x.go")
2992 (invoke "go" "build" "-v" "-x" "-o"
2993 "xtract.Linux" "xtract.go" "common.go")
2994 (invoke "go" "build" "-v" "-x" "-o"
2995 "rchive.Linux" "rchive.go" "common.go")
2996 (invoke "go" "build" "-v" "-x" "-o" "symbols.Linux" "s2p.go"))))
2997 (replace 'install
2998 (lambda* (#:key outputs import-path #:allow-other-keys)
2999 (let ((dest (string-append (assoc-ref outputs "out") "/bin"))
3000 (source (string-append "src/" import-path "/")))
3001 (for-each (lambda (file)
3002 (format #t "installing ~a~%" file)
3003 (install-file (string-append source file) dest))
3004 '("j2x" "t2x" "symbols.Linux" "xtract.Linux" "rchive.Linux"))
3005 #t))))))
3006 (native-inputs '())
3007 (propagated-inputs '())
3008 (inputs
3009 `(("go-github-com-fatih-color" ,go-github-com-fatih-color)
3010 ("go-github-com-fogleman-gg" ,go-github-com-fogleman-gg)
3011 ("go-github-com-gedex-inflector" ,go-github-com-gedex-inflector)
3012 ("go-github-com-golang-freetype" ,go-github-com-golang-freetype)
3013 ("go-github-com-klauspost-cpuid" ,go-github-com-klauspost-cpuid)
3014 ("go-github-com-pbnjay-memory" ,go-github-com-pbnjay-memory)
3015 ("go-github-com-surgebase-porter2" ,go-github-com-surgebase-porter2)
3016 ("go-golang-org-rainycape-unidecode" ,go-golang-org-rainycape-unidecode)
3017 ("go-golang-org-x-image" ,go-golang-org-x-image)
3018 ("go-golang-org-x-text" ,go-golang-org-x-text)))))
3019
3020 (define-public exonerate
3021 (package
3022 (name "exonerate")
3023 (version "2.4.0")
3024 (source
3025 (origin
3026 (method url-fetch)
3027 (uri
3028 (string-append
3029 "http://ftp.ebi.ac.uk/pub/software/vertebrategenomics/exonerate/"
3030 "exonerate-" version ".tar.gz"))
3031 (sha256
3032 (base32
3033 "0hj0m9xygiqsdxvbg79wq579kbrx1mdrabi2bzqz2zn9qwfjcjgq"))))
3034 (build-system gnu-build-system)
3035 (arguments
3036 `(#:parallel-build? #f)) ; Building in parallel fails on some machines.
3037 (native-inputs
3038 `(("pkg-config" ,pkg-config)))
3039 (inputs
3040 `(("glib" ,glib)))
3041 (home-page
3042 "https://www.ebi.ac.uk/about/vertebrate-genomics/software/exonerate")
3043 (synopsis "Generic tool for biological sequence alignment")
3044 (description
3045 "Exonerate is a generic tool for pairwise sequence comparison. It allows
3046 the alignment of sequences using a many alignment models, either exhaustive
3047 dynamic programming or a variety of heuristics.")
3048 (license license:gpl3)))
3049
3050 (define-public express
3051 (package
3052 (name "express")
3053 (version "1.5.1")
3054 (source (origin
3055 (method url-fetch)
3056 (uri
3057 (string-append
3058 "http://bio.math.berkeley.edu/eXpress/downloads/express-"
3059 version "/express-" version "-src.tgz"))
3060 (sha256
3061 (base32
3062 "03rczxd0gjp2l1jxcmjfmf5j94j77zqyxa6x063zsc585nj40n0c"))))
3063 (build-system cmake-build-system)
3064 (arguments
3065 `(#:tests? #f ;no "check" target
3066 #:phases
3067 (modify-phases %standard-phases
3068 (add-after 'unpack 'use-shared-boost-libs-and-set-bamtools-paths
3069 (lambda* (#:key inputs #:allow-other-keys)
3070 (substitute* "CMakeLists.txt"
3071 (("set\\(Boost_USE_STATIC_LIBS ON\\)")
3072 "set(Boost_USE_STATIC_LIBS OFF)")
3073 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/bamtools/include")
3074 (string-append (assoc-ref inputs "bamtools") "/include/bamtools")))
3075 (substitute* "src/CMakeLists.txt"
3076 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/\\.\\./bamtools/lib")
3077 (string-append (assoc-ref inputs "bamtools") "/lib"))
3078 (("libprotobuf.a") "libprotobuf.so"))
3079 #t)))))
3080 (inputs
3081 `(("boost" ,boost)
3082 ("bamtools" ,bamtools)
3083 ("protobuf" ,protobuf)
3084 ("zlib" ,zlib)))
3085 (home-page "http://bio.math.berkeley.edu/eXpress")
3086 (synopsis "Streaming quantification for high-throughput genomic sequencing")
3087 (description
3088 "eXpress is a streaming tool for quantifying the abundances of a set of
3089 target sequences from sampled subsequences. Example applications include
3090 transcript-level RNA-Seq quantification, allele-specific/haplotype expression
3091 analysis (from RNA-Seq), transcription factor binding quantification in
3092 ChIP-Seq, and analysis of metagenomic data.")
3093 (license license:artistic2.0)))
3094
3095 (define-public express-beta-diversity
3096 (package
3097 (name "express-beta-diversity")
3098 (version "1.0.8")
3099 (source (origin
3100 (method git-fetch)
3101 (uri (git-reference
3102 (url "https://github.com/dparks1134/ExpressBetaDiversity.git")
3103 (commit (string-append "v" version))))
3104 (file-name (git-file-name name version))
3105 (sha256
3106 (base32
3107 "0s0yzg5c21349rh7x4w9266jsvnp7j1hp9cf8sk32hz8nvrj745x"))))
3108 (build-system gnu-build-system)
3109 (arguments
3110 `(#:phases
3111 (modify-phases %standard-phases
3112 (delete 'configure)
3113 (add-before 'build 'enter-source (lambda _ (chdir "source") #t))
3114 (replace 'check
3115 (lambda _ (invoke "../bin/ExpressBetaDiversity" "-u") #t))
3116 (replace 'install
3117 (lambda* (#:key outputs #:allow-other-keys)
3118 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
3119 (install-file "../scripts/convertToEBD.py" bin)
3120 (install-file "../bin/ExpressBetaDiversity" bin)
3121 #t))))))
3122 (inputs
3123 `(("python" ,python-2)))
3124 (home-page "https://github.com/dparks1134/ExpressBetaDiversity")
3125 (synopsis "Taxon- and phylogenetic-based beta diversity measures")
3126 (description
3127 "Express Beta Diversity (EBD) calculates ecological beta diversity
3128 (dissimilarity) measures between biological communities. EBD implements a
3129 variety of diversity measures including those that make use of phylogenetic
3130 similarity of community members.")
3131 (license license:gpl3+)))
3132
3133 (define-public fasttree
3134 (package
3135 (name "fasttree")
3136 (version "2.1.10")
3137 (source (origin
3138 (method url-fetch)
3139 (uri (string-append
3140 "http://www.microbesonline.org/fasttree/FastTree-"
3141 version ".c"))
3142 (sha256
3143 (base32
3144 "0vcjdvy1j4m702vmak4svbfkrpcw63k7wymfksjp9a982zy8kjsl"))))
3145 (build-system gnu-build-system)
3146 (arguments
3147 `(#:tests? #f ; no "check" target
3148 #:phases
3149 (modify-phases %standard-phases
3150 (delete 'unpack)
3151 (delete 'configure)
3152 (replace 'build
3153 (lambda* (#:key source #:allow-other-keys)
3154 (invoke "gcc"
3155 "-O3"
3156 "-finline-functions"
3157 "-funroll-loops"
3158 "-Wall"
3159 "-o"
3160 "FastTree"
3161 source
3162 "-lm")
3163 (invoke "gcc"
3164 "-DOPENMP"
3165 "-fopenmp"
3166 "-O3"
3167 "-finline-functions"
3168 "-funroll-loops"
3169 "-Wall"
3170 "-o"
3171 "FastTreeMP"
3172 source
3173 "-lm")
3174 #t))
3175 (replace 'install
3176 (lambda* (#:key outputs #:allow-other-keys)
3177 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
3178 (install-file "FastTree" bin)
3179 (install-file "FastTreeMP" bin)
3180 #t))))))
3181 (home-page "http://www.microbesonline.org/fasttree")
3182 (synopsis "Infers approximately-maximum-likelihood phylogenetic trees")
3183 (description
3184 "FastTree can handle alignments with up to a million of sequences in a
3185 reasonable amount of time and memory. For large alignments, FastTree is
3186 100-1,000 times faster than PhyML 3.0 or RAxML 7.")
3187 (license license:gpl2+)))
3188
3189 (define-public fastx-toolkit
3190 (package
3191 (name "fastx-toolkit")
3192 (version "0.0.14")
3193 (source (origin
3194 (method url-fetch)
3195 (uri
3196 (string-append
3197 "https://github.com/agordon/fastx_toolkit/releases/download/"
3198 version "/fastx_toolkit-" version ".tar.bz2"))
3199 (sha256
3200 (base32
3201 "01jqzw386873sr0pjp1wr4rn8fsga2vxs1qfmicvx1pjr72007wy"))))
3202 (build-system gnu-build-system)
3203 (inputs
3204 `(("libgtextutils" ,libgtextutils)))
3205 (native-inputs
3206 `(("gcc" ,gcc-6) ;; doesn't build with later versions
3207 ("pkg-config" ,pkg-config)))
3208 (home-page "http://hannonlab.cshl.edu/fastx_toolkit/")
3209 (synopsis "Tools for FASTA/FASTQ file preprocessing")
3210 (description
3211 "The FASTX-Toolkit is a collection of command line tools for Short-Reads
3212 FASTA/FASTQ files preprocessing.
3213
3214 Next-Generation sequencing machines usually produce FASTA or FASTQ files,
3215 containing multiple short-reads sequences. The main processing of such
3216 FASTA/FASTQ files is mapping the sequences to reference genomes. However, it
3217 is sometimes more productive to preprocess the files before mapping the
3218 sequences to the genome---manipulating the sequences to produce better mapping
3219 results. The FASTX-Toolkit tools perform some of these preprocessing tasks.")
3220 (license license:agpl3+)))
3221
3222 (define-public flexbar
3223 (package
3224 (name "flexbar")
3225 (version "3.4.0")
3226 (source (origin
3227 (method git-fetch)
3228 (uri (git-reference
3229 (url "https://github.com/seqan/flexbar.git")
3230 (commit (string-append "v" version))))
3231 (file-name (git-file-name name version))
3232 (sha256
3233 (base32
3234 "1pq9sxvdnldl14libk234m72dqhwgzs3acgl943wchwdqlcsi5r2"))))
3235 (build-system cmake-build-system)
3236 (arguments
3237 `(#:phases
3238 (modify-phases %standard-phases
3239 (add-after 'unpack 'do-not-tune-to-CPU
3240 (lambda _
3241 (substitute* "src/CMakeLists.txt"
3242 ((" -march=native") ""))
3243 #t))
3244 (replace 'check
3245 (lambda* (#:key outputs #:allow-other-keys)
3246 (setenv "PATH" (string-append (getcwd) ":" (getenv "PATH")))
3247 (with-directory-excursion "../source/test"
3248 (invoke "bash" "flexbar_test.sh"))
3249 #t))
3250 (replace 'install
3251 (lambda* (#:key outputs #:allow-other-keys)
3252 (let* ((out (string-append (assoc-ref outputs "out")))
3253 (bin (string-append out "/bin/")))
3254 (install-file "flexbar" bin))
3255 #t)))))
3256 (inputs
3257 `(("tbb" ,tbb)
3258 ("zlib" ,zlib)))
3259 (native-inputs
3260 `(("pkg-config" ,pkg-config)
3261 ("seqan" ,seqan)))
3262 (home-page "https://github.com/seqan/flexbar")
3263 (synopsis "Barcode and adapter removal tool for sequencing platforms")
3264 (description
3265 "Flexbar preprocesses high-throughput nucleotide sequencing data
3266 efficiently. It demultiplexes barcoded runs and removes adapter sequences.
3267 Moreover, trimming and filtering features are provided. Flexbar increases
3268 read mapping rates and improves genome and transcriptome assemblies. It
3269 supports next-generation sequencing data in fasta/q and csfasta/q format from
3270 Illumina, Roche 454, and the SOLiD platform.")
3271 (license license:bsd-3)))
3272
3273 (define-public fraggenescan
3274 (package
3275 (name "fraggenescan")
3276 (version "1.30")
3277 (source
3278 (origin
3279 (method url-fetch)
3280 (uri
3281 (string-append "mirror://sourceforge/fraggenescan/"
3282 "FragGeneScan" version ".tar.gz"))
3283 (sha256
3284 (base32 "158dcnwczgcyhwm4qlx19sanrwgdpzf6bn2y57mbpx55lkgz1mzj"))))
3285 (build-system gnu-build-system)
3286 (arguments
3287 `(#:phases
3288 (modify-phases %standard-phases
3289 (delete 'configure)
3290 (add-before 'build 'patch-paths
3291 (lambda* (#:key outputs #:allow-other-keys)
3292 (let* ((out (string-append (assoc-ref outputs "out")))
3293 (share (string-append out "/share/fraggenescan/")))
3294 (substitute* "run_FragGeneScan.pl"
3295 (("system\\(\"rm")
3296 (string-append "system(\"" (which "rm")))
3297 (("system\\(\"mv")
3298 (string-append "system(\"" (which "mv")))
3299 (("\\\"awk") (string-append "\"" (which "awk")))
3300 ;; This script and other programs expect the training files
3301 ;; to be in the non-standard location bin/train/XXX. Change
3302 ;; this to be share/fraggenescan/train/XXX instead.
3303 (("^\\$train.file = \\$dir.*")
3304 (string-append "$train_file = \""
3305 share
3306 "train/\".$FGS_train_file;")))
3307 (substitute* "run_hmm.c"
3308 (("^ strcat\\(train_dir, \\\"train/\\\"\\);")
3309 (string-append " strcpy(train_dir, \"" share "/train/\");"))))
3310 #t))
3311 (replace 'build
3312 (lambda _
3313 (invoke "make" "clean")
3314 (invoke "make" "fgs")
3315 #t))
3316 (replace 'install
3317 (lambda* (#:key outputs #:allow-other-keys)
3318 (let* ((out (string-append (assoc-ref outputs "out")))
3319 (bin (string-append out "/bin/"))
3320 (share (string-append out "/share/fraggenescan/train")))
3321 (install-file "run_FragGeneScan.pl" bin)
3322 (install-file "FragGeneScan" bin)
3323 (copy-recursively "train" share))
3324 #t))
3325 (delete 'check)
3326 (add-after 'install 'post-install-check
3327 ;; In lieu of 'make check', run one of the examples and check the
3328 ;; output files gets created.
3329 (lambda* (#:key outputs #:allow-other-keys)
3330 (let* ((out (string-append (assoc-ref outputs "out")))
3331 (bin (string-append out "/bin/"))
3332 (frag (string-append bin "run_FragGeneScan.pl")))
3333 ;; Test complete genome.
3334 (invoke frag
3335 "-genome=./example/NC_000913.fna"
3336 "-out=./test2"
3337 "-complete=1"
3338 "-train=complete")
3339 (unless (and (file-exists? "test2.faa")
3340 (file-exists? "test2.ffn")
3341 (file-exists? "test2.gff")
3342 (file-exists? "test2.out"))
3343 (error "Expected files do not exist."))
3344 ;; Test incomplete sequences.
3345 (invoke frag
3346 "-genome=./example/NC_000913-fgs.ffn"
3347 "-out=out"
3348 "-complete=0"
3349 "-train=454_30")
3350 #t))))))
3351 (inputs
3352 `(("perl" ,perl)
3353 ("python" ,python-2))) ;not compatible with python 3.
3354 (home-page "https://sourceforge.net/projects/fraggenescan/")
3355 (synopsis "Finds potentially fragmented genes in short reads")
3356 (description
3357 "FragGeneScan is a program for predicting bacterial and archaeal genes in
3358 short and error-prone DNA sequencing reads. It can also be applied to predict
3359 genes in incomplete assemblies or complete genomes.")
3360 ;; GPL3+ according to private correspondense with the authors.
3361 (license license:gpl3+)))
3362
3363 (define-public fxtract
3364 (let ((util-commit "776ca85a18a47492af3794745efcb4a905113115"))
3365 (package
3366 (name "fxtract")
3367 (version "2.3")
3368 (source
3369 (origin
3370 (method git-fetch)
3371 (uri (git-reference
3372 (url "https://github.com/ctSkennerton/fxtract.git")
3373 (commit version)))
3374 (file-name (git-file-name name version))
3375 (sha256
3376 (base32
3377 "0hab3gpwf4w9s87qlbswq6ws1qqybh4dcqk79q1ahyldzai5fgp5"))))
3378 (build-system gnu-build-system)
3379 (arguments
3380 `(#:make-flags (list
3381 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3382 "CC=gcc")
3383 #:test-target "fxtract_test"
3384 #:phases
3385 (modify-phases %standard-phases
3386 (delete 'configure)
3387 (add-before 'build 'copy-util
3388 (lambda* (#:key inputs #:allow-other-keys)
3389 (rmdir "util")
3390 (copy-recursively (assoc-ref inputs "ctskennerton-util") "util")
3391 #t))
3392 ;; Do not use make install as this requires additional dependencies.
3393 (replace 'install
3394 (lambda* (#:key outputs #:allow-other-keys)
3395 (let* ((out (assoc-ref outputs "out"))
3396 (bin (string-append out"/bin")))
3397 (install-file "fxtract" bin)
3398 #t))))))
3399 (inputs
3400 `(("pcre" ,pcre)
3401 ("zlib" ,zlib)))
3402 (native-inputs
3403 ;; ctskennerton-util is licensed under GPL2.
3404 `(("ctskennerton-util"
3405 ,(origin
3406 (method git-fetch)
3407 (uri (git-reference
3408 (url "https://github.com/ctSkennerton/util.git")
3409 (commit util-commit)))
3410 (file-name (string-append
3411 "ctstennerton-util-" util-commit "-checkout"))
3412 (sha256
3413 (base32
3414 "0cls1hd4vgj3f36fpzzg4xc77d6f3hpc60cbpfmn2gdr7ykzzad7"))))))
3415 (home-page "https://github.com/ctSkennerton/fxtract")
3416 (synopsis "Extract sequences from FASTA and FASTQ files")
3417 (description
3418 "Fxtract extracts sequences from a protein or nucleotide fastx (FASTA
3419 or FASTQ) file given a subsequence. It uses a simple substring search for
3420 basic tasks but can change to using POSIX regular expressions, PCRE, hash
3421 lookups or multi-pattern searching as required. By default fxtract looks in
3422 the sequence of each record but can also be told to look in the header,
3423 comment or quality sections.")
3424 ;; 'util' requires SSE instructions.
3425 (supported-systems '("x86_64-linux"))
3426 (license license:expat))))
3427
3428 (define-public gemma
3429 (package
3430 (name "gemma")
3431 (version "0.98")
3432 (source (origin
3433 (method git-fetch)
3434 (uri (git-reference
3435 (url "https://github.com/xiangzhou/GEMMA.git")
3436 (commit (string-append "v" version))))
3437 (file-name (git-file-name name version))
3438 (sha256
3439 (base32
3440 "1s3ncnbn45r2hh1cvrqky1kbqq6546biypr4f5mkw1kqlrgyh0yg"))))
3441 (inputs
3442 `(("eigen" ,eigen)
3443 ("gfortran" ,gfortran "lib")
3444 ("gsl" ,gsl)
3445 ("lapack" ,lapack)
3446 ("openblas" ,openblas)
3447 ("zlib" ,zlib)))
3448 (build-system gnu-build-system)
3449 (arguments
3450 `(#:make-flags
3451 '(,@(match (%current-system)
3452 ("x86_64-linux"
3453 '("FORCE_DYNAMIC=1"))
3454 ("i686-linux"
3455 '("FORCE_DYNAMIC=1" "FORCE_32BIT=1"))
3456 (_
3457 '("FORCE_DYNAMIC=1" "NO_INTEL_COMPAT=1"))))
3458 #:phases
3459 (modify-phases %standard-phases
3460 (delete 'configure)
3461 (add-after 'unpack 'find-eigen
3462 (lambda* (#:key inputs #:allow-other-keys)
3463 ;; Ensure that Eigen headers can be found
3464 (setenv "CPLUS_INCLUDE_PATH"
3465 (string-append (assoc-ref inputs "eigen")
3466 "/include/eigen3"))
3467 #t))
3468 (add-before 'build 'bin-mkdir
3469 (lambda _
3470 (mkdir-p "bin")
3471 #t))
3472 (replace 'install
3473 (lambda* (#:key outputs #:allow-other-keys)
3474 (let ((out (assoc-ref outputs "out")))
3475 (install-file "bin/gemma"
3476 (string-append
3477 out "/bin")))
3478 #t)))
3479 #:tests? #f)) ; no tests included yet
3480 (home-page "https://github.com/xiangzhou/GEMMA")
3481 (synopsis "Tool for genome-wide efficient mixed model association")
3482 (description
3483 "Genome-wide Efficient Mixed Model Association (GEMMA) provides a
3484 standard linear mixed model resolver with application in genome-wide
3485 association studies (GWAS).")
3486 (license license:gpl3)))
3487
3488 (define-public grit
3489 (package
3490 (name "grit")
3491 (version "2.0.5")
3492 (source (origin
3493 (method git-fetch)
3494 (uri (git-reference
3495 (url "https://github.com/nboley/grit.git")
3496 (commit version)))
3497 (file-name (git-file-name name version))
3498 (sha256
3499 (base32
3500 "1l5v8vfvfbrpmgnrvbrbv40d0arhxcnmxgv2f1mlcqfa3q6bkqm9"))))
3501 (build-system python-build-system)
3502 (arguments
3503 `(#:python ,python-2
3504 #:phases
3505 (modify-phases %standard-phases
3506 (add-after 'unpack 'generate-from-cython-sources
3507 (lambda* (#:key inputs outputs #:allow-other-keys)
3508 ;; Delete these C files to force fresh generation from pyx sources.
3509 (delete-file "grit/sparsify_support_fns.c")
3510 (delete-file "grit/call_peaks_support_fns.c")
3511 (substitute* "setup.py"
3512 (("Cython.Setup") "Cython.Build"))
3513 #t)))))
3514 (inputs
3515 `(("python-scipy" ,python2-scipy)
3516 ("python-numpy" ,python2-numpy)
3517 ("python-pysam" ,python2-pysam)
3518 ("python-networkx" ,python2-networkx)))
3519 (native-inputs
3520 `(("python-cython" ,python2-cython)))
3521 ;; The canonical <http://grit-bio.org> home page times out as of 2020-01-21.
3522 (home-page "https://github.com/nboley/grit")
3523 (synopsis "Tool for integrative analysis of RNA-seq type assays")
3524 (description
3525 "GRIT is designed to use RNA-seq, TES, and TSS data to build and quantify
3526 full length transcript models. When none of these data sources are available,
3527 GRIT can be run by providing a candidate set of TES or TSS sites. In
3528 addition, GRIT can merge in reference junctions and gene boundaries. GRIT can
3529 also be run in quantification mode, where it uses a provided GTF file and just
3530 estimates transcript expression.")
3531 (license license:gpl3+)))
3532
3533 (define-public hisat
3534 (package
3535 (name "hisat")
3536 (version "0.1.4")
3537 (source (origin
3538 (method url-fetch)
3539 (uri (string-append
3540 "http://ccb.jhu.edu/software/hisat/downloads/hisat-"
3541 version "-beta-source.zip"))
3542 (sha256
3543 (base32
3544 "1k381ydranqxp09yf2y7w1d0chz5d59vb6jchi89hbb0prq19lk5"))))
3545 (build-system gnu-build-system)
3546 (arguments
3547 `(#:tests? #f ;no check target
3548 #:make-flags '("allall"
3549 ;; Disable unsupported `popcnt' instructions on
3550 ;; architectures other than x86_64
3551 ,@(if (string-prefix? "x86_64"
3552 (or (%current-target-system)
3553 (%current-system)))
3554 '()
3555 '("POPCNT_CAPABILITY=0")))
3556 #:phases
3557 (modify-phases %standard-phases
3558 (add-after 'unpack 'patch-sources
3559 (lambda _
3560 ;; XXX Cannot use snippet because zip files are not supported
3561 (substitute* "Makefile"
3562 (("^CC = .*$") "CC = gcc")
3563 (("^CPP = .*$") "CPP = g++")
3564 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
3565 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
3566 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
3567 (substitute* '("hisat-build" "hisat-inspect")
3568 (("/usr/bin/env") (which "env")))
3569 #t))
3570 (replace 'install
3571 (lambda* (#:key outputs #:allow-other-keys)
3572 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
3573 (for-each (lambda (file)
3574 (install-file file bin))
3575 (find-files
3576 "."
3577 "hisat(-(build|align|inspect)(-(s|l)(-debug)*)*)*$")))
3578 #t))
3579 (delete 'configure))))
3580 (native-inputs
3581 `(("unzip" ,unzip)))
3582 (inputs
3583 `(("perl" ,perl)
3584 ("python" ,python)
3585 ("zlib" ,zlib)))
3586 ;; Non-portable SSE instructions are used so building fails on platforms
3587 ;; other than x86_64.
3588 (supported-systems '("x86_64-linux"))
3589 (home-page "https://ccb.jhu.edu/software/hisat/index.shtml")
3590 (synopsis "Hierarchical indexing for spliced alignment of transcripts")
3591 (description
3592 "HISAT is a fast and sensitive spliced alignment program for mapping
3593 RNA-seq reads. In addition to one global FM index that represents a whole
3594 genome, HISAT uses a large set of small FM indexes that collectively cover the
3595 whole genome. These small indexes (called local indexes) combined with
3596 several alignment strategies enable effective alignment of RNA-seq reads, in
3597 particular, reads spanning multiple exons.")
3598 (license license:gpl3+)))
3599
3600 (define-public hisat2
3601 (package
3602 (name "hisat2")
3603 (version "2.0.5")
3604 (source
3605 (origin
3606 (method url-fetch)
3607 (uri (string-append "ftp://ftp.ccb.jhu.edu/pub/infphilo/hisat2"
3608 "/downloads/hisat2-" version "-source.zip"))
3609 (sha256
3610 (base32
3611 "0lywnr8kijwsc2aw10dwxic0n0yvip6fl3rjlvc8zzwahamy4x7g"))))
3612 (build-system gnu-build-system)
3613 (arguments
3614 `(#:tests? #f ; no check target
3615 #:make-flags (list "CC=gcc" "CXX=g++" "allall")
3616 #:modules ((guix build gnu-build-system)
3617 (guix build utils)
3618 (srfi srfi-26))
3619 #:phases
3620 (modify-phases %standard-phases
3621 (add-after 'unpack 'make-deterministic
3622 (lambda _
3623 (substitute* "Makefile"
3624 (("`date`") "0"))
3625 #t))
3626 (delete 'configure)
3627 (replace 'install
3628 (lambda* (#:key outputs #:allow-other-keys)
3629 (let* ((out (assoc-ref outputs "out"))
3630 (bin (string-append out "/bin/"))
3631 (doc (string-append out "/share/doc/hisat2/")))
3632 (for-each
3633 (cut install-file <> bin)
3634 (find-files "."
3635 "hisat2(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))
3636 (mkdir-p doc)
3637 (install-file "doc/manual.inc.html" doc))
3638 #t)))))
3639 (native-inputs
3640 `(("unzip" ,unzip) ; needed for archive from ftp
3641 ("perl" ,perl)
3642 ("pandoc" ,ghc-pandoc))) ; for documentation
3643 (home-page "https://ccb.jhu.edu/software/hisat2/index.shtml")
3644 (synopsis "Graph-based alignment of genomic sequencing reads")
3645 (description "HISAT2 is a fast and sensitive alignment program for mapping
3646 next-generation sequencing reads (both DNA and RNA) to a population of human
3647 genomes (as well as to a single reference genome). In addition to using one
3648 global @dfn{graph FM} (GFM) index that represents a population of human
3649 genomes, HISAT2 uses a large set of small GFM indexes that collectively cover
3650 the whole genome. These small indexes, combined with several alignment
3651 strategies, enable rapid and accurate alignment of sequencing reads. This new
3652 indexing scheme is called a @dfn{Hierarchical Graph FM index} (HGFM).")
3653 ;; HISAT2 contains files from Bowtie2, which is released under
3654 ;; GPLv2 or later. The HISAT2 source files are released under
3655 ;; GPLv3 or later.
3656 (license license:gpl3+)))
3657
3658 (define-public hmmer
3659 (package
3660 (name "hmmer")
3661 (version "3.2.1")
3662 (source
3663 (origin
3664 (method url-fetch)
3665 (uri (string-append
3666 "http://eddylab.org/software/hmmer/hmmer-" version ".tar.gz"))
3667 (sha256
3668 (base32
3669 "171bivy6xhgjsz5nv53n81pc3frnwz29ylblawk2bv46szwjjqd5"))))
3670 (build-system gnu-build-system)
3671 (native-inputs `(("perl" ,perl)))
3672 (home-page "http://hmmer.org/")
3673 (synopsis "Biosequence analysis using profile hidden Markov models")
3674 (description
3675 "HMMER is used for searching sequence databases for homologs of protein
3676 sequences, and for making protein sequence alignments. It implements methods
3677 using probabilistic models called profile hidden Markov models (profile
3678 HMMs).")
3679 ;; hmmer uses non-portable SSE intrinsics so building fails on other
3680 ;; platforms.
3681 (supported-systems '("x86_64-linux" "i686-linux"))
3682 (license license:bsd-3)))
3683
3684 (define-public htseq
3685 (package
3686 (name "htseq")
3687 (version "0.9.1")
3688 (source (origin
3689 (method url-fetch)
3690 (uri (pypi-uri "HTSeq" version))
3691 (sha256
3692 (base32
3693 "11flgb1381xdhk43bzbfm3vhnszkpqg6jk76rpa5xd1zbrvvlnxg"))))
3694 (build-system python-build-system)
3695 (native-inputs
3696 `(("python-cython" ,python-cython)))
3697 ;; Numpy needs to be propagated when htseq is used as a Python library.
3698 (propagated-inputs
3699 `(("python-numpy" ,python-numpy)))
3700 (inputs
3701 `(("python-pysam" ,python-pysam)
3702 ("python-matplotlib" ,python-matplotlib)))
3703 (home-page "https://htseq.readthedocs.io/")
3704 (synopsis "Analysing high-throughput sequencing data with Python")
3705 (description
3706 "HTSeq is a Python package that provides infrastructure to process data
3707 from high-throughput sequencing assays.")
3708 (license license:gpl3+)))
3709
3710 (define-public python2-htseq
3711 (package-with-python2 htseq))
3712
3713 (define-public java-htsjdk
3714 (package
3715 (name "java-htsjdk")
3716 (version "2.3.0") ; last version without build dependency on gradle
3717 (source (origin
3718 (method git-fetch)
3719 (uri (git-reference
3720 (url "https://github.com/samtools/htsjdk.git")
3721 (commit version)))
3722 (file-name (git-file-name name version))
3723 (sha256
3724 (base32
3725 "1b178ixcabanm834ydjl3jiakpyxdmki32hqfv2abrzn3rcwa28i"))
3726 (modules '((guix build utils)))
3727 (snippet
3728 ;; Delete pre-built binaries
3729 '(begin
3730 (delete-file-recursively "lib")
3731 (mkdir-p "lib")
3732 #t))))
3733 (build-system ant-build-system)
3734 (arguments
3735 `(#:tests? #f ; test require Internet access
3736 #:jdk ,icedtea-8
3737 #:make-flags
3738 (list (string-append "-Ddist=" (assoc-ref %outputs "out")
3739 "/share/java/htsjdk/"))
3740 #:build-target "all"
3741 #:phases
3742 (modify-phases %standard-phases
3743 ;; The build phase also installs the jars
3744 (delete 'install))))
3745 (inputs
3746 `(("java-ngs" ,java-ngs)
3747 ("java-snappy-1" ,java-snappy-1)
3748 ("java-commons-compress" ,java-commons-compress)
3749 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
3750 ("java-commons-jexl-2" ,java-commons-jexl-2)
3751 ("java-xz" ,java-xz)))
3752 (native-inputs
3753 `(("java-testng" ,java-testng)))
3754 (home-page "http://samtools.github.io/htsjdk/")
3755 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3756 (description
3757 "HTSJDK is an implementation of a unified Java library for accessing
3758 common file formats, such as SAM and VCF, used for high-throughput
3759 sequencing (HTS) data. There are also an number of useful utilities for
3760 manipulating HTS data.")
3761 (license license:expat)))
3762
3763 (define-public java-htsjdk-latest
3764 (package
3765 (name "java-htsjdk")
3766 (version "2.14.3")
3767 (source (origin
3768 (method git-fetch)
3769 (uri (git-reference
3770 (url "https://github.com/samtools/htsjdk.git")
3771 (commit version)))
3772 (file-name (string-append name "-" version "-checkout"))
3773 (sha256
3774 (base32
3775 "1lmya1fdjy03mz6zmdmd86j9v9vfhqb3952mqq075navx1i6g4bc"))))
3776 (build-system ant-build-system)
3777 (arguments
3778 `(#:tests? #f ; test require Scala
3779 #:jdk ,icedtea-8
3780 #:jar-name "htsjdk.jar"
3781 #:phases
3782 (modify-phases %standard-phases
3783 (add-after 'unpack 'remove-useless-build.xml
3784 (lambda _ (delete-file "build.xml") #t))
3785 ;; The tests require the scalatest package.
3786 (add-after 'unpack 'remove-tests
3787 (lambda _ (delete-file-recursively "src/test") #t)))))
3788 (inputs
3789 `(("java-ngs" ,java-ngs)
3790 ("java-snappy-1" ,java-snappy-1)
3791 ("java-commons-compress" ,java-commons-compress)
3792 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
3793 ("java-commons-jexl-2" ,java-commons-jexl-2)
3794 ("java-xz" ,java-xz)))
3795 (native-inputs
3796 `(("java-junit" ,java-junit)))
3797 (home-page "http://samtools.github.io/htsjdk/")
3798 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3799 (description
3800 "HTSJDK is an implementation of a unified Java library for accessing
3801 common file formats, such as SAM and VCF, used for high-throughput
3802 sequencing (HTS) data. There are also an number of useful utilities for
3803 manipulating HTS data.")
3804 (license license:expat)))
3805
3806 ;; This is needed for picard 2.10.3
3807 (define-public java-htsjdk-2.10.1
3808 (package (inherit java-htsjdk-latest)
3809 (name "java-htsjdk")
3810 (version "2.10.1")
3811 (source (origin
3812 (method git-fetch)
3813 (uri (git-reference
3814 (url "https://github.com/samtools/htsjdk.git")
3815 (commit version)))
3816 (file-name (string-append name "-" version "-checkout"))
3817 (sha256
3818 (base32
3819 "1kxh7slm2pm3x9p6jxa1wqsq9a31dhiiflhxnxqcisan4k3rwia2"))))
3820 (build-system ant-build-system)
3821 (arguments
3822 `(#:tests? #f ; tests require Scala
3823 #:jdk ,icedtea-8
3824 #:jar-name "htsjdk.jar"
3825 #:phases
3826 (modify-phases %standard-phases
3827 (add-after 'unpack 'remove-useless-build.xml
3828 (lambda _ (delete-file "build.xml") #t))
3829 ;; The tests require the scalatest package.
3830 (add-after 'unpack 'remove-tests
3831 (lambda _ (delete-file-recursively "src/test") #t)))))))
3832
3833 ;; This version matches java-htsjdk 2.3.0. Later versions also require a more
3834 ;; recent version of java-htsjdk, which depends on gradle.
3835 (define-public java-picard
3836 (package
3837 (name "java-picard")
3838 (version "2.3.0")
3839 (source (origin
3840 (method git-fetch)
3841 (uri (git-reference
3842 (url "https://github.com/broadinstitute/picard.git")
3843 (commit version)))
3844 (file-name (string-append "java-picard-" version "-checkout"))
3845 (sha256
3846 (base32
3847 "1ll7mf4r3by92w2nhlmpa591xd1f46xlkwh59mq6fvbb5pdwzvx6"))
3848 (modules '((guix build utils)))
3849 (snippet
3850 '(begin
3851 ;; Delete pre-built binaries.
3852 (delete-file-recursively "lib")
3853 (mkdir-p "lib")
3854 (substitute* "build.xml"
3855 ;; Remove build-time dependency on git.
3856 (("failifexecutionfails=\"true\"")
3857 "failifexecutionfails=\"false\"")
3858 ;; Use our htsjdk.
3859 (("depends=\"compile-htsjdk, ")
3860 "depends=\"")
3861 (("depends=\"compile-htsjdk-tests, ")
3862 "depends=\"")
3863 ;; Build picard-lib.jar before building picard.jar
3864 (("name=\"picard-jar\" depends=\"" line)
3865 (string-append line "picard-lib-jar, ")))
3866 #t))))
3867 (build-system ant-build-system)
3868 (arguments
3869 `(#:build-target "picard-jar"
3870 #:test-target "test"
3871 ;; Tests require jacoco:coverage.
3872 #:tests? #f
3873 #:make-flags
3874 (list (string-append "-Dhtsjdk_lib_dir="
3875 (assoc-ref %build-inputs "java-htsjdk")
3876 "/share/java/htsjdk/")
3877 "-Dhtsjdk-classes=dist/tmp"
3878 (string-append "-Dhtsjdk-version="
3879 ,(package-version java-htsjdk)))
3880 #:jdk ,icedtea-8
3881 #:phases
3882 (modify-phases %standard-phases
3883 ;; FIXME: this phase fails with "duplicate entry: htsjdk/samtools/AbstractBAMFileIndex$1.class"
3884 (delete 'generate-jar-indices)
3885 (add-after 'unpack 'use-our-htsjdk
3886 (lambda* (#:key inputs #:allow-other-keys)
3887 (substitute* "build.xml"
3888 (("\\$\\{htsjdk\\}/lib")
3889 (string-append (assoc-ref inputs "java-htsjdk")
3890 "/share/java/htsjdk/")))
3891 #t))
3892 (add-after 'unpack 'make-test-target-independent
3893 (lambda* (#:key inputs #:allow-other-keys)
3894 (substitute* "build.xml"
3895 (("name=\"test\" depends=\"compile, ")
3896 "name=\"test\" depends=\""))
3897 #t))
3898 (replace 'install (install-jars "dist")))))
3899 (inputs
3900 `(("java-htsjdk" ,java-htsjdk)
3901 ("java-guava" ,java-guava)))
3902 (native-inputs
3903 `(("java-testng" ,java-testng)))
3904 (home-page "http://broadinstitute.github.io/picard/")
3905 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
3906 (description "Picard is a set of Java command line tools for manipulating
3907 high-throughput sequencing (HTS) data and formats. Picard is implemented
3908 using the HTSJDK Java library to support accessing file formats that are
3909 commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
3910 VCF.")
3911 (license license:expat)))
3912
3913 ;; This is needed for dropseq-tools
3914 (define-public java-picard-2.10.3
3915 (package
3916 (name "java-picard")
3917 (version "2.10.3")
3918 (source (origin
3919 (method git-fetch)
3920 (uri (git-reference
3921 (url "https://github.com/broadinstitute/picard.git")
3922 (commit version)))
3923 (file-name (string-append "java-picard-" version "-checkout"))
3924 (sha256
3925 (base32
3926 "1ajlx31l6i1k3y2rhnmgq07sz99g2czqfqgkr9mihmdjp3gwjhvi"))))
3927 (build-system ant-build-system)
3928 (arguments
3929 `(#:jar-name "picard.jar"
3930 ;; Tests require jacoco:coverage.
3931 #:tests? #f
3932 #:jdk ,icedtea-8
3933 #:main-class "picard.cmdline.PicardCommandLine"
3934 #:modules ((guix build ant-build-system)
3935 (guix build utils)
3936 (guix build java-utils)
3937 (sxml simple)
3938 (sxml transform)
3939 (sxml xpath))
3940 #:phases
3941 (modify-phases %standard-phases
3942 ;; FIXME: this phase fails with "duplicate entry: htsjdk/samtools/AbstractBAMFileIndex$1.class"
3943 (delete 'generate-jar-indices)
3944 (add-after 'unpack 'remove-useless-build.xml
3945 (lambda _ (delete-file "build.xml") #t))
3946 ;; This is necessary to ensure that htsjdk is found when using
3947 ;; picard.jar as an executable.
3948 (add-before 'build 'edit-classpath-in-manifest
3949 (lambda* (#:key inputs #:allow-other-keys)
3950 (chmod "build.xml" #o664)
3951 (call-with-output-file "build.xml.new"
3952 (lambda (port)
3953 (sxml->xml
3954 (pre-post-order
3955 (with-input-from-file "build.xml"
3956 (lambda _ (xml->sxml #:trim-whitespace? #t)))
3957 `((target . ,(lambda (tag . kids)
3958 (let ((name ((sxpath '(name *text*))
3959 (car kids)))
3960 ;; FIXME: We're breaking the line
3961 ;; early with a dummy path to
3962 ;; ensure that the store reference
3963 ;; isn't broken apart and can still
3964 ;; be found by the reference
3965 ;; scanner.
3966 (msg (format #f
3967 "\
3968 Class-Path: /~a \
3969 ~a/share/java/htsjdk.jar${line.separator}${line.separator}"
3970 ;; maximum line length is 70
3971 (string-tabulate (const #\b) 57)
3972 (assoc-ref inputs "java-htsjdk"))))
3973 (if (member "manifest" name)
3974 `(,tag ,@kids
3975 (replaceregexp
3976 (@ (file "${manifest.file}")
3977 (match "\\r\\n\\r\\n")
3978 (replace "${line.separator}")))
3979 (echo
3980 (@ (message ,msg)
3981 (file "${manifest.file}")
3982 (append "true"))))
3983 `(,tag ,@kids)))))
3984 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
3985 (*text* . ,(lambda (_ txt) txt))))
3986 port)))
3987 (rename-file "build.xml.new" "build.xml")
3988 #t)))))
3989 (propagated-inputs
3990 `(("java-htsjdk" ,java-htsjdk-2.10.1)))
3991 (native-inputs
3992 `(("java-testng" ,java-testng)
3993 ("java-guava" ,java-guava)))
3994 (home-page "http://broadinstitute.github.io/picard/")
3995 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
3996 (description "Picard is a set of Java command line tools for manipulating
3997 high-throughput sequencing (HTS) data and formats. Picard is implemented
3998 using the HTSJDK Java library to support accessing file formats that are
3999 commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
4000 VCF.")
4001 (license license:expat)))
4002
4003 ;; This is the last version of Picard to provide net.sf.samtools
4004 (define-public java-picard-1.113
4005 (package (inherit java-picard)
4006 (name "java-picard")
4007 (version "1.113")
4008 (source (origin
4009 (method git-fetch)
4010 (uri (git-reference
4011 (url "https://github.com/broadinstitute/picard.git")
4012 (commit version)))
4013 (file-name (string-append "java-picard-" version "-checkout"))
4014 (sha256
4015 (base32
4016 "0lkpvin2fz3hhly4l02kk56fqy8lmlgyzr9kmvljk6ry6l1hw973"))
4017 (modules '((guix build utils)))
4018 (snippet
4019 '(begin
4020 ;; Delete pre-built binaries.
4021 (delete-file-recursively "lib")
4022 (mkdir-p "lib")
4023 #t))))
4024 (build-system ant-build-system)
4025 (arguments
4026 `(#:build-target "picard-jar"
4027 #:test-target "test"
4028 ;; FIXME: the class path at test time is wrong.
4029 ;; [testng] Error: A JNI error has occurred, please check your installation and try again
4030 ;; [testng] Exception in thread "main" java.lang.NoClassDefFoundError: com/beust/jcommander/ParameterException
4031 #:tests? #f
4032 #:jdk ,icedtea-8
4033 ;; This is only used for tests.
4034 #:make-flags
4035 (list "-Dsamjdk.intel_deflater_so_path=lib/jni/libIntelDeflater.so")
4036 #:phases
4037 (modify-phases %standard-phases
4038 ;; FIXME: This phase fails.
4039 (delete 'generate-jar-indices)
4040 ;; Do not use bundled ant bzip2.
4041 (add-after 'unpack 'use-ant-bzip
4042 (lambda* (#:key inputs #:allow-other-keys)
4043 (substitute* "build.xml"
4044 (("\\$\\{lib\\}/apache-ant-1.8.2-bzip2.jar")
4045 (string-append (assoc-ref inputs "ant")
4046 "/lib/ant.jar")))
4047 #t))
4048 (add-after 'unpack 'make-test-target-independent
4049 (lambda* (#:key inputs #:allow-other-keys)
4050 (substitute* "build.xml"
4051 (("name=\"test\" depends=\"compile, ")
4052 "name=\"test\" depends=\"compile-tests, ")
4053 (("name=\"compile\" depends=\"compile-src, compile-tests\"")
4054 "name=\"compile\" depends=\"compile-src\""))
4055 #t))
4056 (add-after 'unpack 'fix-deflater-path
4057 (lambda* (#:key outputs #:allow-other-keys)
4058 (substitute* "src/java/net/sf/samtools/Defaults.java"
4059 (("getStringProperty\\(\"intel_deflater_so_path\", null\\)")
4060 (string-append "getStringProperty(\"intel_deflater_so_path\", \""
4061 (assoc-ref outputs "out")
4062 "/lib/jni/libIntelDeflater.so"
4063 "\")")))
4064 #t))
4065 ;; Build the deflater library, because we've previously deleted the
4066 ;; pre-built one. This can only be built with access to the JDK
4067 ;; sources.
4068 (add-after 'build 'build-jni
4069 (lambda* (#:key inputs #:allow-other-keys)
4070 (mkdir-p "lib/jni")
4071 (mkdir-p "jdk-src")
4072 (invoke "tar" "--strip-components=1" "-C" "jdk-src"
4073 "-xf" (assoc-ref inputs "jdk-src"))
4074 (invoke "javah" "-jni"
4075 "-classpath" "classes"
4076 "-d" "lib/"
4077 "net.sf.samtools.util.zip.IntelDeflater")
4078 (with-directory-excursion "src/c/inteldeflater"
4079 (invoke "gcc" "-I../../../lib" "-I."
4080 (string-append "-I" (assoc-ref inputs "jdk")
4081 "/include/linux")
4082 "-I../../../jdk-src/src/share/native/common/"
4083 "-I../../../jdk-src/src/solaris/native/common/"
4084 "-c" "-O3" "-fPIC" "IntelDeflater.c")
4085 (invoke "gcc" "-shared"
4086 "-o" "../../../lib/jni/libIntelDeflater.so"
4087 "IntelDeflater.o" "-lz" "-lstdc++"))
4088 #t))
4089 ;; We can only build everything else after building the JNI library.
4090 (add-after 'build-jni 'build-rest
4091 (lambda* (#:key make-flags #:allow-other-keys)
4092 (apply invoke `("ant" "all" ,@make-flags))
4093 #t))
4094 (add-before 'build 'set-JAVA6_HOME
4095 (lambda _
4096 (setenv "JAVA6_HOME" (getenv "JAVA_HOME"))
4097 #t))
4098 (replace 'install (install-jars "dist"))
4099 (add-after 'install 'install-jni-lib
4100 (lambda* (#:key outputs #:allow-other-keys)
4101 (let ((jni (string-append (assoc-ref outputs "out")
4102 "/lib/jni")))
4103 (mkdir-p jni)
4104 (install-file "lib/jni/libIntelDeflater.so" jni)
4105 #t))))))
4106 (inputs
4107 `(("java-snappy-1" ,java-snappy-1)
4108 ("java-commons-jexl-2" ,java-commons-jexl-2)
4109 ("java-cofoja" ,java-cofoja)
4110 ("ant" ,ant) ; for bzip2 support at runtime
4111 ("zlib" ,zlib)))
4112 (native-inputs
4113 `(("ant-apache-bcel" ,ant-apache-bcel)
4114 ("ant-junit" ,ant-junit)
4115 ("java-testng" ,java-testng)
4116 ("java-commons-bcel" ,java-commons-bcel)
4117 ("java-jcommander" ,java-jcommander)
4118 ("jdk" ,icedtea-8 "jdk")
4119 ("jdk-src" ,(car (assoc-ref (package-native-inputs icedtea-8) "jdk-drop")))))))
4120
4121 (define-public fastqc
4122 (package
4123 (name "fastqc")
4124 (version "0.11.5")
4125 (source
4126 (origin
4127 (method url-fetch)
4128 (uri (string-append "http://www.bioinformatics.babraham.ac.uk/"
4129 "projects/fastqc/fastqc_v"
4130 version "_source.zip"))
4131 (sha256
4132 (base32
4133 "18rrlkhcrxvvvlapch4dpj6xc6mpayzys8qfppybi8jrpgx5cc5f"))))
4134 (build-system ant-build-system)
4135 (arguments
4136 `(#:tests? #f ; there are no tests
4137 #:build-target "build"
4138 #:phases
4139 (modify-phases %standard-phases
4140 (add-after 'unpack 'fix-dependencies
4141 (lambda* (#:key inputs #:allow-other-keys)
4142 (substitute* "build.xml"
4143 (("jbzip2-0.9.jar")
4144 (string-append (assoc-ref inputs "java-jbzip2")
4145 "/share/java/jbzip2.jar"))
4146 (("sam-1.103.jar")
4147 (string-append (assoc-ref inputs "java-picard-1.113")
4148 "/share/java/sam-1.112.jar"))
4149 (("cisd-jhdf5.jar")
4150 (string-append (assoc-ref inputs "java-cisd-jhdf5")
4151 "/share/java/sis-jhdf5.jar")))
4152 #t))
4153 ;; There is no installation target
4154 (replace 'install
4155 (lambda* (#:key inputs outputs #:allow-other-keys)
4156 (let* ((out (assoc-ref outputs "out"))
4157 (bin (string-append out "/bin"))
4158 (share (string-append out "/share/fastqc/"))
4159 (exe (string-append share "/fastqc")))
4160 (for-each mkdir-p (list bin share))
4161 (copy-recursively "bin" share)
4162 (substitute* exe
4163 (("my \\$java_bin = 'java';")
4164 (string-append "my $java_bin = '"
4165 (assoc-ref inputs "java")
4166 "/bin/java';")))
4167 (chmod exe #o555)
4168 (symlink exe (string-append bin "/fastqc"))
4169 #t))))))
4170 (inputs
4171 `(("java" ,icedtea)
4172 ("perl" ,perl) ; needed for the wrapper script
4173 ("java-cisd-jhdf5" ,java-cisd-jhdf5)
4174 ("java-picard-1.113" ,java-picard-1.113)
4175 ("java-jbzip2" ,java-jbzip2)))
4176 (native-inputs
4177 `(("unzip" ,unzip)))
4178 (home-page "https://www.bioinformatics.babraham.ac.uk/projects/fastqc/")
4179 (synopsis "Quality control tool for high throughput sequence data")
4180 (description
4181 "FastQC aims to provide a simple way to do some quality control
4182 checks on raw sequence data coming from high throughput sequencing
4183 pipelines. It provides a modular set of analyses which you can use to
4184 give a quick impression of whether your data has any problems of which
4185 you should be aware before doing any further analysis.
4186
4187 The main functions of FastQC are:
4188
4189 @itemize
4190 @item Import of data from BAM, SAM or FastQ files (any variant);
4191 @item Providing a quick overview to tell you in which areas there may
4192 be problems;
4193 @item Summary graphs and tables to quickly assess your data;
4194 @item Export of results to an HTML based permanent report;
4195 @item Offline operation to allow automated generation of reports
4196 without running the interactive application.
4197 @end itemize\n")
4198 (license license:gpl3+)))
4199
4200 (define-public fastp
4201 (package
4202 (name "fastp")
4203 (version "0.14.1")
4204 (source
4205 (origin
4206 (method git-fetch)
4207 (uri (git-reference
4208 (url "https://github.com/OpenGene/fastp.git")
4209 (commit (string-append "v" version))))
4210 (file-name (git-file-name name version))
4211 (sha256
4212 (base32
4213 "1r6ms5zbf5rps4rgp4z73nczadl00b5rqylw8f684isfz27dp0xh"))))
4214 (build-system gnu-build-system)
4215 (arguments
4216 `(#:tests? #f ; there are none
4217 #:make-flags
4218 (list (string-append "BINDIR=" (assoc-ref %outputs "out") "/bin"))
4219 #:phases
4220 (modify-phases %standard-phases
4221 (delete 'configure)
4222 (add-before 'install 'create-target-dir
4223 (lambda* (#:key outputs #:allow-other-keys)
4224 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
4225 #t)))))
4226 (inputs
4227 `(("zlib" ,zlib)))
4228 (home-page "https://github.com/OpenGene/fastp/")
4229 (synopsis "All-in-one FastQ preprocessor")
4230 (description
4231 "Fastp is a tool designed to provide fast all-in-one preprocessing for
4232 FastQ files. This tool has multi-threading support to afford high
4233 performance.")
4234 (license license:expat)))
4235
4236 (define-public htslib
4237 (package
4238 (name "htslib")
4239 (version "1.9")
4240 (source (origin
4241 (method url-fetch)
4242 (uri (string-append
4243 "https://github.com/samtools/htslib/releases/download/"
4244 version "/htslib-" version ".tar.bz2"))
4245 (sha256
4246 (base32
4247 "16ljv43sc3fxmv63w7b2ff8m1s7h89xhazwmbm1bicz8axq8fjz0"))))
4248 (build-system gnu-build-system)
4249 (inputs
4250 `(("curl" ,curl)
4251 ("openssl" ,openssl)))
4252 ;; This is referred to in the pkg-config file as a required library.
4253 (propagated-inputs
4254 `(("zlib" ,zlib)))
4255 (native-inputs
4256 `(("perl" ,perl)))
4257 (home-page "https://www.htslib.org")
4258 (synopsis "C library for reading/writing high-throughput sequencing data")
4259 (description
4260 "HTSlib is a C library for reading/writing high-throughput sequencing
4261 data. It also provides the @command{bgzip}, @command{htsfile}, and
4262 @command{tabix} utilities.")
4263 ;; Files under cram/ are released under the modified BSD license;
4264 ;; the rest is released under the Expat license
4265 (license (list license:expat license:bsd-3))))
4266
4267 ;; This package should be removed once no packages rely upon it.
4268 (define htslib-1.3
4269 (package
4270 (inherit htslib)
4271 (version "1.3.1")
4272 (source (origin
4273 (method url-fetch)
4274 (uri (string-append
4275 "https://github.com/samtools/htslib/releases/download/"
4276 version "/htslib-" version ".tar.bz2"))
4277 (sha256
4278 (base32
4279 "1rja282fwdc25ql6izkhdyh8ppw8x2fs0w0js78zgkmqjlikmma9"))))))
4280
4281 (define-public idr
4282 (package
4283 (name "idr")
4284 (version "2.0.3")
4285 (source (origin
4286 (method git-fetch)
4287 (uri (git-reference
4288 (url "https://github.com/nboley/idr.git")
4289 (commit version)))
4290 (file-name (git-file-name name version))
4291 (sha256
4292 (base32
4293 "04j876h6z444v2q79drxx283d3k5snd72kj895wbalnl42206x9g"))
4294 ;; Delete generated C code.
4295 (snippet
4296 '(begin (delete-file "idr/inv_cdf.c") #t))))
4297 (build-system python-build-system)
4298 ;; There is only one test ("test_inv_cdf.py") and it tests features that
4299 ;; are no longer part of this package. It also asserts False, which
4300 ;; causes the tests to always fail.
4301 (arguments `(#:tests? #f))
4302 (propagated-inputs
4303 `(("python-scipy" ,python-scipy)
4304 ("python-sympy" ,python-sympy)
4305 ("python-numpy" ,python-numpy)
4306 ("python-matplotlib" ,python-matplotlib)))
4307 (native-inputs
4308 `(("python-cython" ,python-cython)))
4309 (home-page "https://github.com/nboley/idr")
4310 (synopsis "Tool to measure the irreproducible discovery rate (IDR)")
4311 (description
4312 "The IDR (Irreproducible Discovery Rate) framework is a unified approach
4313 to measure the reproducibility of findings identified from replicate
4314 experiments and provide highly stable thresholds based on reproducibility.")
4315 (license license:gpl2+)))
4316
4317 (define-public jellyfish
4318 (package
4319 (name "jellyfish")
4320 (version "2.2.10")
4321 (source (origin
4322 (method url-fetch)
4323 (uri (string-append "https://github.com/gmarcais/Jellyfish/"
4324 "releases/download/v" version
4325 "/jellyfish-" version ".tar.gz"))
4326 (sha256
4327 (base32
4328 "1k4pc3fvv6w1km2yph4m5sd78fbxp21d6xyzgmy0gjihzc6mb249"))))
4329 (build-system gnu-build-system)
4330 (outputs '("out" ;for library
4331 "ruby" ;for Ruby bindings
4332 "python")) ;for Python bindings
4333 (arguments
4334 `(#:configure-flags
4335 (list (string-append "--enable-ruby-binding="
4336 (assoc-ref %outputs "ruby"))
4337 (string-append "--enable-python-binding="
4338 (assoc-ref %outputs "python")))
4339 #:phases
4340 (modify-phases %standard-phases
4341 (add-before 'check 'set-SHELL-variable
4342 (lambda _
4343 ;; generator_manager.hpp either uses /bin/sh or $SHELL
4344 ;; to run tests.
4345 (setenv "SHELL" (which "bash"))
4346 #t)))))
4347 (native-inputs
4348 `(("bc" ,bc)
4349 ("time" ,time)
4350 ("ruby" ,ruby)
4351 ("python" ,python-2)
4352 ("pkg-config" ,pkg-config)))
4353 (inputs
4354 `(("htslib" ,htslib)))
4355 (synopsis "Tool for fast counting of k-mers in DNA")
4356 (description
4357 "Jellyfish is a tool for fast, memory-efficient counting of k-mers in
4358 DNA. A k-mer is a substring of length k, and counting the occurrences of all
4359 such substrings is a central step in many analyses of DNA sequence. Jellyfish
4360 is a command-line program that reads FASTA and multi-FASTA files containing
4361 DNA sequences. It outputs its k-mer counts in a binary format, which can be
4362 translated into a human-readable text format using the @code{jellyfish dump}
4363 command, or queried for specific k-mers with @code{jellyfish query}.")
4364 (home-page "http://www.genome.umd.edu/jellyfish.html")
4365 ;; JELLYFISH seems to be 64-bit only.
4366 (supported-systems '("x86_64-linux" "aarch64-linux" "mips64el-linux"))
4367 ;; The combined work is published under the GPLv3 or later. Individual
4368 ;; files such as lib/jsoncpp.cpp are released under the Expat license.
4369 (license (list license:gpl3+ license:expat))))
4370
4371 (define-public khmer
4372 (package
4373 (name "khmer")
4374 (version "3.0.0a3")
4375 (source
4376 (origin
4377 (method git-fetch)
4378 (uri (git-reference
4379 (url "https://github.com/dib-lab/khmer.git")
4380 (commit (string-append "v" version))))
4381 (file-name (git-file-name name version))
4382 (sha256
4383 (base32
4384 "01l4jczglkl7yfhgvzx8j0df7k54bk1r8sli9ll16i1mis0d8f37"))
4385 (modules '((guix build utils)))
4386 (snippet
4387 '(begin
4388 ;; Delete bundled libraries. We do not replace the bundled seqan
4389 ;; as it is a modified subset of the old version 1.4.1.
4390 ;;
4391 ;; We do not replace the bundled MurmurHash as the canonical
4392 ;; repository for this code 'SMHasher' is unsuitable for providing
4393 ;; a library. See
4394 ;; https://lists.gnu.org/archive/html/guix-devel/2016-06/msg00977.html
4395 (delete-file-recursively "third-party/zlib")
4396 (delete-file-recursively "third-party/bzip2")
4397 (delete-file-recursively "third-party/seqan")
4398 (substitute* "setup.cfg"
4399 (("# libraries = z,bz2")
4400 "libraries = z,bz2")
4401 (("include:third-party/zlib:third-party/bzip2")
4402 "include:"))
4403 #t))))
4404 (build-system python-build-system)
4405 (arguments
4406 `(#:phases
4407 (modify-phases %standard-phases
4408 (add-after 'unpack 'set-cc
4409 (lambda _ (setenv "CC" "gcc") #t))
4410
4411 (add-before 'reset-gzip-timestamps 'make-files-writable
4412 (lambda* (#:key outputs #:allow-other-keys)
4413 ;; Make sure .gz files are writable so that the
4414 ;; 'reset-gzip-timestamps' phase can do its work.
4415 (let ((out (assoc-ref outputs "out")))
4416 (for-each make-file-writable
4417 (find-files out "\\.gz$"))
4418 #t))))))
4419 (native-inputs
4420 `(("python-cython" ,python-cython)
4421 ("python-pytest" ,python-pytest)
4422 ("python-pytest-runner" ,python-pytest-runner)))
4423 (inputs
4424 `(("zlib" ,zlib)
4425 ("bzip2" ,bzip2)
4426 ("seqan" ,seqan-1)
4427 ("python-screed" ,python-screed)
4428 ("python-bz2file" ,python-bz2file)))
4429 (home-page "https://khmer.readthedocs.org/")
4430 (synopsis "K-mer counting, filtering and graph traversal library")
4431 (description "The khmer software is a set of command-line tools for
4432 working with DNA shotgun sequencing data from genomes, transcriptomes,
4433 metagenomes and single cells. Khmer can make de novo assemblies faster, and
4434 sometimes better. Khmer can also identify and fix problems with shotgun
4435 data.")
4436 ;; When building on i686, armhf and mips64el, we get the following error:
4437 ;; error: ['khmer', 'khmer.tests', 'oxli'] require 64-bit operating system
4438 (supported-systems '("x86_64-linux" "aarch64-linux"))
4439 (license license:bsd-3)))
4440
4441 (define-public kaiju
4442 (package
4443 (name "kaiju")
4444 (version "1.6.3")
4445 (source (origin
4446 (method git-fetch)
4447 (uri (git-reference
4448 (url "https://github.com/bioinformatics-centre/kaiju")
4449 (commit (string-append "v" version))))
4450 (file-name (git-file-name name version))
4451 (sha256
4452 (base32
4453 "119pzi0ddzv9mjg4wwa6han0cwr3k3ssn7kirvsjfcq05mi5ka0x"))))
4454 (build-system gnu-build-system)
4455 (arguments
4456 `(#:tests? #f ; There are no tests.
4457 #:phases
4458 (modify-phases %standard-phases
4459 (delete 'configure)
4460 (add-before 'build 'move-to-src-dir
4461 (lambda _ (chdir "src") #t))
4462 (replace 'install
4463 (lambda* (#:key inputs outputs #:allow-other-keys)
4464 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
4465 (mkdir-p bin)
4466 (chdir "..")
4467 (copy-recursively "bin" bin))
4468 #t)))))
4469 (inputs
4470 `(("perl" ,perl)
4471 ("zlib" ,zlib)))
4472 (home-page "http://kaiju.binf.ku.dk/")
4473 (synopsis "Fast and sensitive taxonomic classification for metagenomics")
4474 (description "Kaiju is a program for sensitive taxonomic classification
4475 of high-throughput sequencing reads from metagenomic whole genome sequencing
4476 experiments.")
4477 (license license:gpl3+)))
4478
4479 (define-public macs
4480 (package
4481 (name "macs")
4482 (version "2.2.6")
4483 (source (origin
4484 ;; The PyPi tarball does not contain tests.
4485 (method git-fetch)
4486 (uri (git-reference
4487 (url "https://github.com/taoliu/MACS.git")
4488 (commit (string-append "v" version))))
4489 (file-name (git-file-name name version))
4490 (sha256
4491 (base32
4492 "1c5gxr0mk6hkd4vclf0k00wvyvzw2vrmk52c85338p7aqjwg6n15"))))
4493 (build-system python-build-system)
4494 (arguments
4495 `(#:phases
4496 (modify-phases %standard-phases
4497 (delete 'check)
4498 (add-after 'install 'check
4499 (lambda* (#:key inputs outputs #:allow-other-keys)
4500 (add-installed-pythonpath inputs outputs)
4501 (invoke "pytest" "-v"))))))
4502 (inputs
4503 `(("python-numpy" ,python-numpy)))
4504 (native-inputs
4505 `(("python-pytest" ,python-pytest)))
4506 (home-page "https://github.com/taoliu/MACS/")
4507 (synopsis "Model based analysis for ChIP-Seq data")
4508 (description
4509 "MACS is an implementation of a ChIP-Seq analysis algorithm for
4510 identifying transcript factor binding sites named Model-based Analysis of
4511 ChIP-Seq (MACS). MACS captures the influence of genome complexity to evaluate
4512 the significance of enriched ChIP regions and it improves the spatial
4513 resolution of binding sites through combining the information of both
4514 sequencing tag position and orientation.")
4515 (license license:bsd-3)))
4516
4517 (define-public mafft
4518 (package
4519 (name "mafft")
4520 (version "7.394")
4521 (source (origin
4522 (method url-fetch)
4523 (uri (string-append
4524 "https://mafft.cbrc.jp/alignment/software/mafft-" version
4525 "-without-extensions-src.tgz"))
4526 (file-name (string-append name "-" version ".tgz"))
4527 (sha256
4528 (base32
4529 "0bacjkxfg944p5khhyh5rd4y7wkjc9qk4v2jjj442sqlq0f8ar7b"))))
4530 (build-system gnu-build-system)
4531 (arguments
4532 `(#:tests? #f ; no automated tests, though there are tests in the read me
4533 #:make-flags (let ((out (assoc-ref %outputs "out")))
4534 (list (string-append "PREFIX=" out)
4535 (string-append "BINDIR="
4536 (string-append out "/bin"))))
4537 #:phases
4538 (modify-phases %standard-phases
4539 (add-after 'unpack 'enter-dir
4540 (lambda _ (chdir "core") #t))
4541 (add-after 'enter-dir 'patch-makefile
4542 (lambda _
4543 ;; on advice from the MAFFT authors, there is no need to
4544 ;; distribute mafft-profile, mafft-distance, or
4545 ;; mafft-homologs.rb as they are too "specialised".
4546 (substitute* "Makefile"
4547 ;; remove mafft-homologs.rb from SCRIPTS
4548 (("^SCRIPTS = mafft mafft-homologs.rb")
4549 "SCRIPTS = mafft")
4550 ;; remove mafft-homologs from MANPAGES
4551 (("^MANPAGES = mafft.1 mafft-homologs.1")
4552 "MANPAGES = mafft.1")
4553 ;; remove mafft-distance from PROGS
4554 (("^PROGS = dvtditr dndfast7 dndblast sextet5 mafft-distance")
4555 "PROGS = dvtditr dndfast7 dndblast sextet5")
4556 ;; remove mafft-profile from PROGS
4557 (("splittbfast disttbfast tbfast mafft-profile 2cl mccaskillwrap")
4558 "splittbfast disttbfast tbfast f2cl mccaskillwrap")
4559 (("^rm -f mafft-profile mafft-profile.exe") "#")
4560 (("^rm -f mafft-distance mafft-distance.exe") ")#")
4561 ;; do not install MAN pages in libexec folder
4562 (("^\t\\$\\(INSTALL\\) -m 644 \\$\\(MANPAGES\\) \
4563 \\$\\(DESTDIR\\)\\$\\(LIBDIR\\)") "#"))
4564 #t))
4565 (add-after 'enter-dir 'patch-paths
4566 (lambda* (#:key inputs #:allow-other-keys)
4567 (substitute* '("pairash.c"
4568 "mafft.tmpl")
4569 (("perl") (which "perl"))
4570 (("([\"`| ])awk" _ prefix)
4571 (string-append prefix (which "awk")))
4572 (("grep") (which "grep")))
4573 #t))
4574 (delete 'configure)
4575 (add-after 'install 'wrap-programs
4576 (lambda* (#:key outputs #:allow-other-keys)
4577 (let* ((out (assoc-ref outputs "out"))
4578 (bin (string-append out "/bin"))
4579 (path (string-append
4580 (assoc-ref %build-inputs "coreutils") "/bin:")))
4581 (for-each (lambda (file)
4582 (wrap-program file
4583 `("PATH" ":" prefix (,path))))
4584 (find-files bin)))
4585 #t)))))
4586 (inputs
4587 `(("perl" ,perl)
4588 ("ruby" ,ruby)
4589 ("gawk" ,gawk)
4590 ("grep" ,grep)
4591 ("coreutils" ,coreutils)))
4592 (home-page "http://mafft.cbrc.jp/alignment/software/")
4593 (synopsis "Multiple sequence alignment program")
4594 (description
4595 "MAFFT offers a range of multiple alignment methods for nucleotide and
4596 protein sequences. For instance, it offers L-INS-i (accurate; for alignment
4597 of <~200 sequences) and FFT-NS-2 (fast; for alignment of <~30,000
4598 sequences).")
4599 (license (license:non-copyleft
4600 "http://mafft.cbrc.jp/alignment/software/license.txt"
4601 "BSD-3 with different formatting"))))
4602
4603 (define-public mash
4604 (package
4605 (name "mash")
4606 (version "2.1")
4607 (source (origin
4608 (method git-fetch)
4609 (uri (git-reference
4610 (url "https://github.com/marbl/mash.git")
4611 (commit (string-append "v" version))))
4612 (file-name (git-file-name name version))
4613 (sha256
4614 (base32
4615 "049hwcc059p2fd9vwndn63laifvvsi0wmv84i6y1fr79k15dxwy6"))
4616 (modules '((guix build utils)))
4617 (snippet
4618 '(begin
4619 ;; Delete bundled kseq.
4620 ;; TODO: Also delete bundled murmurhash and open bloom filter.
4621 (delete-file "src/mash/kseq.h")
4622 #t))))
4623 (build-system gnu-build-system)
4624 (arguments
4625 `(#:tests? #f ; No tests.
4626 #:configure-flags
4627 (list
4628 (string-append "--with-capnp=" (assoc-ref %build-inputs "capnproto"))
4629 (string-append "--with-gsl=" (assoc-ref %build-inputs "gsl")))
4630 #:make-flags (list "CC=gcc")
4631 #:phases
4632 (modify-phases %standard-phases
4633 (add-after 'unpack 'fix-includes
4634 (lambda _
4635 (substitute* '("src/mash/Sketch.cpp"
4636 "src/mash/CommandFind.cpp"
4637 "src/mash/CommandScreen.cpp")
4638 (("^#include \"kseq\\.h\"")
4639 "#include \"htslib/kseq.h\""))
4640 #t))
4641 (add-after 'fix-includes 'use-c++14
4642 (lambda _
4643 ;; capnproto 0.7 requires c++14 to build
4644 (substitute* "configure.ac"
4645 (("c\\+\\+11") "c++14"))
4646 (substitute* "Makefile.in"
4647 (("c\\+\\+11") "c++14"))
4648 #t)))))
4649 (native-inputs
4650 `(("autoconf" ,autoconf)
4651 ;; Capnproto and htslib are statically embedded in the final
4652 ;; application. Therefore we also list their licenses, below.
4653 ("capnproto" ,capnproto)
4654 ("htslib" ,htslib)))
4655 (inputs
4656 `(("gsl" ,gsl)
4657 ("zlib" ,zlib)))
4658 (supported-systems '("x86_64-linux"))
4659 (home-page "https://mash.readthedocs.io")
4660 (synopsis "Fast genome and metagenome distance estimation using MinHash")
4661 (description "Mash is a fast sequence distance estimator that uses the
4662 MinHash algorithm and is designed to work with genomes and metagenomes in the
4663 form of assemblies or reads.")
4664 (license (list license:bsd-3 ; Mash
4665 license:expat ; HTSlib and capnproto
4666 license:public-domain ; MurmurHash 3
4667 license:cpl1.0)))) ; Open Bloom Filter
4668
4669 (define-public metabat
4670 (package
4671 (name "metabat")
4672 (version "2.12.1")
4673 (source
4674 (origin
4675 (method git-fetch)
4676 (uri (git-reference
4677 (url "https://bitbucket.org/berkeleylab/metabat.git")
4678 (commit (string-append "v" version))))
4679 (file-name (git-file-name name version))
4680 (sha256
4681 (base32
4682 "0hyg2smw1nz69mfvjpk45xyyychmda92c80a0cv7baji84ri4iyn"))
4683 (patches (search-patches "metabat-fix-compilation.patch"))))
4684 (build-system scons-build-system)
4685 (arguments
4686 `(#:scons ,scons-python2
4687 #:scons-flags
4688 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
4689 (string-append "BOOST_ROOT=" (assoc-ref %build-inputs "boost")))
4690 #:tests? #f ;; Tests are run during the build phase.
4691 #:phases
4692 (modify-phases %standard-phases
4693 (add-after 'unpack 'fix-includes
4694 (lambda _
4695 (substitute* "src/BamUtils.h"
4696 (("^#include \"bam/bam\\.h\"")
4697 "#include \"samtools/bam.h\"")
4698 (("^#include \"bam/sam\\.h\"")
4699 "#include \"samtools/sam.h\""))
4700 (substitute* "src/KseqReader.h"
4701 (("^#include \"bam/kseq\\.h\"")
4702 "#include \"htslib/kseq.h\""))
4703 #t))
4704 (add-after 'unpack 'fix-scons
4705 (lambda* (#:key inputs #:allow-other-keys)
4706 (substitute* "SConstruct"
4707 (("^htslib_dir += 'samtools'")
4708 (string-append "htslib_dir = '"
4709 (assoc-ref inputs "htslib")
4710 "'"))
4711 (("^samtools_dir = 'samtools'")
4712 (string-append "samtools_dir = '"
4713 (assoc-ref inputs "samtools")
4714 "'"))
4715 (("^findStaticOrShared\\('bam', hts_lib")
4716 (string-append "findStaticOrShared('bam', '"
4717 (assoc-ref inputs "samtools")
4718 "/lib'"))
4719 ;; Do not distribute README.
4720 (("^env\\.Install\\(idir_prefix, 'README\\.md'\\)") ""))
4721 #t)))))
4722 (inputs
4723 `(("zlib" ,zlib)
4724 ("perl" ,perl)
4725 ("samtools" ,samtools)
4726 ("htslib" ,htslib)
4727 ("boost" ,boost)))
4728 (home-page "https://bitbucket.org/berkeleylab/metabat")
4729 (synopsis
4730 "Reconstruction of single genomes from complex microbial communities")
4731 (description
4732 "Grouping large genomic fragments assembled from shotgun metagenomic
4733 sequences to deconvolute complex microbial communities, or metagenome binning,
4734 enables the study of individual organisms and their interactions. MetaBAT is
4735 an automated metagenome binning software, which integrates empirical
4736 probabilistic distances of genome abundance and tetranucleotide frequency.")
4737 ;; The source code contains inline assembly.
4738 (supported-systems '("x86_64-linux" "i686-linux"))
4739 (license (license:non-copyleft "file://license.txt"
4740 "See license.txt in the distribution."))))
4741
4742 (define-public minced
4743 (package
4744 (name "minced")
4745 (version "0.3.2")
4746 (source (origin
4747 (method git-fetch)
4748 (uri (git-reference
4749 (url "https://github.com/ctSkennerton/minced.git")
4750 (commit version)))
4751 (file-name (git-file-name name version))
4752 (sha256
4753 (base32
4754 "1f5h9him0gd355cnx7p6pnxpknhckd4g0v62mg8zyhfbx9as25fv"))))
4755 (build-system gnu-build-system)
4756 (arguments
4757 `(#:test-target "test"
4758 #:phases
4759 (modify-phases %standard-phases
4760 (delete 'configure)
4761 (add-before 'check 'fix-test
4762 (lambda _
4763 ;; Fix test for latest version.
4764 (substitute* "t/Aquifex_aeolicus_VF5.expected"
4765 (("minced:0.1.6") "minced:0.2.0"))
4766 #t))
4767 (replace 'install ; No install target.
4768 (lambda* (#:key inputs outputs #:allow-other-keys)
4769 (let* ((out (assoc-ref outputs "out"))
4770 (bin (string-append out "/bin"))
4771 (wrapper (string-append bin "/minced")))
4772 ;; Minced comes with a wrapper script that tries to figure out where
4773 ;; it is located before running the JAR. Since these paths are known
4774 ;; to us, we build our own wrapper to avoid coreutils dependency.
4775 (install-file "minced.jar" bin)
4776 (with-output-to-file wrapper
4777 (lambda _
4778 (display
4779 (string-append
4780 "#!" (assoc-ref inputs "bash") "/bin/sh\n\n"
4781 (assoc-ref inputs "jre") "/bin/java -jar "
4782 bin "/minced.jar \"$@\"\n"))))
4783 (chmod wrapper #o555))
4784 #t)))))
4785 (native-inputs
4786 `(("jdk" ,icedtea "jdk")))
4787 (inputs
4788 `(("bash" ,bash)
4789 ("jre" ,icedtea "out")))
4790 (home-page "https://github.com/ctSkennerton/minced")
4791 (synopsis "Mining CRISPRs in Environmental Datasets")
4792 (description
4793 "MinCED is a program to find Clustered Regularly Interspaced Short
4794 Palindromic Repeats (CRISPRs) in DNA sequences. It can be used for
4795 unassembled metagenomic reads, but is mainly designed for full genomes and
4796 assembled metagenomic sequence.")
4797 (license license:gpl3+)))
4798
4799 (define-public miso
4800 (package
4801 (name "miso")
4802 (version "0.5.4")
4803 (source (origin
4804 (method url-fetch)
4805 (uri (pypi-uri "misopy" version))
4806 (sha256
4807 (base32
4808 "1z3x0vd8ma7pdrnywj7i3kgwl89sdkwrrn62zl7r5calqaq2hyip"))
4809 (modules '((guix build utils)))
4810 (snippet '(begin
4811 (substitute* "setup.py"
4812 ;; Use setuptools, or else the executables are not
4813 ;; installed.
4814 (("distutils.core") "setuptools")
4815 ;; Use "gcc" instead of "cc" for compilation.
4816 (("^defines")
4817 "cc.set_executables(
4818 compiler='gcc',
4819 compiler_so='gcc',
4820 linker_exe='gcc',
4821 linker_so='gcc -shared'); defines"))
4822 #t))))
4823 (build-system python-build-system)
4824 (arguments
4825 `(#:python ,python-2 ; only Python 2 is supported
4826 #:tests? #f)) ; no "test" target
4827 (inputs
4828 `(("samtools" ,samtools)
4829 ("python-numpy" ,python2-numpy)
4830 ("python-pysam" ,python2-pysam)
4831 ("python-scipy" ,python2-scipy)
4832 ("python-matplotlib" ,python2-matplotlib)))
4833 (native-inputs
4834 `(("python-mock" ,python2-mock) ; for tests
4835 ("python-pytz" ,python2-pytz))) ; for tests
4836 (home-page "https://www.genes.mit.edu/burgelab/miso/index.html")
4837 (synopsis "Mixture of Isoforms model for RNA-Seq isoform quantitation")
4838 (description
4839 "MISO (Mixture-of-Isoforms) is a probabilistic framework that quantitates
4840 the expression level of alternatively spliced genes from RNA-Seq data, and
4841 identifies differentially regulated isoforms or exons across samples. By
4842 modeling the generative process by which reads are produced from isoforms in
4843 RNA-Seq, the MISO model uses Bayesian inference to compute the probability
4844 that a read originated from a particular isoform.")
4845 (license license:gpl2)))
4846
4847 (define-public muscle
4848 (package
4849 (name "muscle")
4850 (version "3.8.1551")
4851 (source (origin
4852 (method url-fetch/tarbomb)
4853 (uri (string-append
4854 "http://www.drive5.com/muscle/muscle_src_"
4855 version ".tar.gz"))
4856 (sha256
4857 (base32
4858 "0bj8kj7sdizy3987zx6w7axihk40fk8rn76mpbqqjcnd64i5a367"))))
4859 (build-system gnu-build-system)
4860 (arguments
4861 `(#:make-flags (list "LDLIBS = -lm")
4862 #:phases
4863 (modify-phases %standard-phases
4864 (delete 'configure)
4865 (replace 'check
4866 ;; There are no tests, so just test if it runs.
4867 (lambda _ (invoke "./muscle" "-version") #t))
4868 (replace 'install
4869 (lambda* (#:key outputs #:allow-other-keys)
4870 (let* ((out (assoc-ref outputs "out"))
4871 (bin (string-append out "/bin")))
4872 (install-file "muscle" bin)
4873 #t))))))
4874 (home-page "http://www.drive5.com/muscle")
4875 (synopsis "Multiple sequence alignment program")
4876 (description
4877 "MUSCLE aims to be a fast and accurate multiple sequence alignment
4878 program for nucleotide and protein sequences.")
4879 ;; License information found in 'muscle -h' and usage.cpp.
4880 (license license:public-domain)))
4881
4882 (define-public newick-utils
4883 ;; There are no recent releases so we package from git.
4884 (let ((commit "da121155a977197cab9fbb15953ca1b40b11eb87"))
4885 (package
4886 (name "newick-utils")
4887 (version (string-append "1.6-1." (string-take commit 8)))
4888 (source (origin
4889 (method git-fetch)
4890 (uri (git-reference
4891 (url "https://github.com/tjunier/newick_utils.git")
4892 (commit commit)))
4893 (file-name (string-append name "-" version "-checkout"))
4894 (sha256
4895 (base32
4896 "1hkw21rq1mwf7xp0rmbb2gqc0i6p11108m69i7mr7xcjl268pxnb"))))
4897 (build-system gnu-build-system)
4898 (inputs
4899 ;; XXX: TODO: Enable Lua and Guile bindings.
4900 ;; https://github.com/tjunier/newick_utils/issues/13
4901 `(("libxml2" ,libxml2)
4902 ("flex" ,flex)
4903 ("bison" ,bison)))
4904 (native-inputs
4905 `(("autoconf" ,autoconf)
4906 ("automake" ,automake)
4907 ("libtool" ,libtool)))
4908 (synopsis "Programs for working with newick format phylogenetic trees")
4909 (description
4910 "Newick-utils is a suite of utilities for processing phylogenetic trees
4911 in Newick format. Functions include re-rooting, extracting subtrees,
4912 trimming, pruning, condensing, drawing (ASCII graphics or SVG).")
4913 (home-page "https://github.com/tjunier/newick_utils")
4914 (license license:bsd-3))))
4915
4916 (define-public orfm
4917 (package
4918 (name "orfm")
4919 (version "0.7.1")
4920 (source (origin
4921 (method url-fetch)
4922 (uri (string-append
4923 "https://github.com/wwood/OrfM/releases/download/v"
4924 version "/orfm-" version ".tar.gz"))
4925 (sha256
4926 (base32
4927 "16iigyr2gd8x0imzkk1dr3k5xsds9bpmwg31ayvjg0f4pir9rwqr"))))
4928 (build-system gnu-build-system)
4929 (inputs `(("zlib" ,zlib)))
4930 (native-inputs
4931 `(("ruby-bio-commandeer" ,ruby-bio-commandeer)
4932 ("ruby-rspec" ,ruby-rspec)
4933 ("ruby" ,ruby)))
4934 (synopsis "Simple and not slow open reading frame (ORF) caller")
4935 (description
4936 "An ORF caller finds stretches of DNA that, when translated, are not
4937 interrupted by stop codons. OrfM finds and prints these ORFs.")
4938 (home-page "https://github.com/wwood/OrfM")
4939 (license license:lgpl3+)))
4940
4941 (define-public python2-pbcore
4942 (package
4943 (name "python2-pbcore")
4944 (version "1.2.10")
4945 (source (origin
4946 (method url-fetch)
4947 (uri (pypi-uri "pbcore" version))
4948 (sha256
4949 (base32
4950 "1kjmv891d6qbpp4shhhvkl02ff4q5xlpnls2513sm2cjcrs52f1i"))))
4951 (build-system python-build-system)
4952 (arguments
4953 `(#:python ,python-2 ;pbcore < 2.0 requires Python 2.7
4954 #:phases (modify-phases %standard-phases
4955 (add-after 'unpack 'remove-sphinx-dependency
4956 (lambda _
4957 ;; Sphinx is only required for documentation tests, which
4958 ;; we do not run; furthermore it depends on python2-sphinx
4959 ;; which is no longer maintained.
4960 (substitute* "requirements-dev.txt"
4961 (("^sphinx") ""))
4962 #t)))))
4963 (propagated-inputs
4964 `(("python-cython" ,python2-cython)
4965 ("python-numpy" ,python2-numpy)
4966 ("python-pysam" ,python2-pysam)
4967 ("python-h5py" ,python2-h5py)))
4968 (native-inputs
4969 `(("python-nose" ,python2-nose)
4970 ("python-pyxb" ,python2-pyxb)))
4971 (home-page "https://pacificbiosciences.github.io/pbcore/")
4972 (synopsis "Library for reading and writing PacBio data files")
4973 (description
4974 "The pbcore package provides Python APIs for interacting with PacBio data
4975 files and writing bioinformatics applications.")
4976 (license license:bsd-3)))
4977
4978 (define-public python2-warpedlmm
4979 (package
4980 (name "python2-warpedlmm")
4981 (version "0.21")
4982 (source
4983 (origin
4984 (method url-fetch)
4985 (uri (pypi-uri "WarpedLMM" version ".zip"))
4986 (sha256
4987 (base32
4988 "1agfz6zqa8nc6cw47yh0s3y14gkpa9wqazwcj7mwwj3ffnw39p3j"))))
4989 (build-system python-build-system)
4990 (arguments
4991 `(#:python ,python-2 ; requires Python 2.7
4992 #:tests? #f ; test data are not included
4993 #:phases
4994 (modify-phases %standard-phases
4995 (add-after 'unpack 'use-weave
4996 (lambda _
4997 (substitute* "warpedlmm/util/linalg.py"
4998 (("from scipy import linalg, weave")
4999 "from scipy import linalg\nimport weave"))
5000 #t)))))
5001 (propagated-inputs
5002 `(("python-scipy" ,python2-scipy)
5003 ("python-numpy" ,python2-numpy)
5004 ("python-matplotlib" ,python2-matplotlib)
5005 ("python-fastlmm" ,python2-fastlmm)
5006 ("python-pandas" ,python2-pandas)
5007 ("python-pysnptools" ,python2-pysnptools)
5008 ("python-weave" ,python2-weave)))
5009 (native-inputs
5010 `(("python-mock" ,python2-mock)
5011 ("python-nose" ,python2-nose)
5012 ("unzip" ,unzip)))
5013 (home-page "https://github.com/PMBio/warpedLMM")
5014 (synopsis "Implementation of warped linear mixed models")
5015 (description
5016 "WarpedLMM is a Python implementation of the warped linear mixed model,
5017 which automatically learns an optimal warping function (or transformation) for
5018 the phenotype as it models the data.")
5019 (license license:asl2.0)))
5020
5021 (define-public pbtranscript-tofu
5022 (let ((commit "8f5467fe6a4472bcfb4226c8720993c8507adfe4"))
5023 (package
5024 (name "pbtranscript-tofu")
5025 (version (string-append "2.2.3." (string-take commit 7)))
5026 (source (origin
5027 (method git-fetch)
5028 (uri (git-reference
5029 (url "https://github.com/PacificBiosciences/cDNA_primer.git")
5030 (commit commit)))
5031 (file-name (string-append name "-" version "-checkout"))
5032 (sha256
5033 (base32
5034 "1lgnpi35ihay42qx0b6yl3kkgra723i413j33kvs0kvs61h82w0f"))
5035 (modules '((guix build utils)))
5036 (snippet
5037 '(begin
5038 ;; remove bundled Cython sources
5039 (delete-file "pbtranscript-tofu/pbtranscript/Cython-0.20.1.tar.gz")
5040 #t))))
5041 (build-system python-build-system)
5042 (arguments
5043 `(#:python ,python-2
5044 ;; FIXME: Tests fail with "No such file or directory:
5045 ;; pbtools/pbtranscript/modified_bx_intervals/intersection_unique.so"
5046 #:tests? #f
5047 #:phases
5048 (modify-phases %standard-phases
5049 (add-after 'unpack 'enter-directory
5050 (lambda _
5051 (chdir "pbtranscript-tofu/pbtranscript/")
5052 #t))
5053 ;; With setuptools version 18.0 and later this setup.py hack causes
5054 ;; a build error, so we disable it.
5055 (add-after 'enter-directory 'patch-setuppy
5056 (lambda _
5057 (substitute* "setup.py"
5058 (("if 'setuptools.extension' in sys.modules:")
5059 "if False:"))
5060 #t)))))
5061 (inputs
5062 `(("python-numpy" ,python2-numpy)
5063 ("python-bx-python" ,python2-bx-python)
5064 ("python-networkx" ,python2-networkx)
5065 ("python-scipy" ,python2-scipy)
5066 ("python-pbcore" ,python2-pbcore)
5067 ("python-h5py" ,python2-h5py)))
5068 (native-inputs
5069 `(("python-cython" ,python2-cython)
5070 ("python-nose" ,python2-nose)))
5071 (home-page "https://github.com/PacificBiosciences/cDNA_primer")
5072 (synopsis "Analyze transcriptome data generated with the Iso-Seq protocol")
5073 (description
5074 "pbtranscript-tofu contains scripts to analyze transcriptome data
5075 generated using the PacBio Iso-Seq protocol.")
5076 (license license:bsd-3))))
5077
5078 (define-public prank
5079 (package
5080 (name "prank")
5081 (version "170427")
5082 (source (origin
5083 (method url-fetch)
5084 (uri (string-append
5085 "http://wasabiapp.org/download/prank/prank.source."
5086 version ".tgz"))
5087 (sha256
5088 (base32
5089 "0nc8g9c5rkdxcir46s0in9ci1sxwzbjibxrvkksf22ybnplvagk2"))))
5090 (build-system gnu-build-system)
5091 (arguments
5092 `(#:phases
5093 (modify-phases %standard-phases
5094 (add-after 'unpack 'enter-src-dir
5095 (lambda _
5096 (chdir "src")
5097 #t))
5098 (add-after 'unpack 'remove-m64-flag
5099 ;; Prank will build with the correct 'bit-ness' without this flag
5100 ;; and this allows building on 32-bit machines.
5101 (lambda _ (substitute* "src/Makefile"
5102 (("-m64") ""))
5103 #t))
5104 (delete 'configure)
5105 (replace 'install
5106 (lambda* (#:key outputs #:allow-other-keys)
5107 (let* ((out (assoc-ref outputs "out"))
5108 (bin (string-append out "/bin"))
5109 (man (string-append out "/share/man/man1"))
5110 (path (string-append
5111 (assoc-ref %build-inputs "mafft") "/bin:"
5112 (assoc-ref %build-inputs "exonerate") "/bin:"
5113 (assoc-ref %build-inputs "bppsuite") "/bin")))
5114 (install-file "prank" bin)
5115 (wrap-program (string-append bin "/prank")
5116 `("PATH" ":" prefix (,path)))
5117 (install-file "prank.1" man))
5118 #t)))))
5119 (inputs
5120 `(("mafft" ,mafft)
5121 ("exonerate" ,exonerate)
5122 ("bppsuite" ,bppsuite)))
5123 (home-page "http://wasabiapp.org/software/prank/")
5124 (synopsis "Probabilistic multiple sequence alignment program")
5125 (description
5126 "PRANK is a probabilistic multiple sequence alignment program for DNA,
5127 codon and amino-acid sequences. It is based on a novel algorithm that treats
5128 insertions correctly and avoids over-estimation of the number of deletion
5129 events. In addition, PRANK borrows ideas from maximum likelihood methods used
5130 in phylogenetics and correctly takes into account the evolutionary distances
5131 between sequences. Lastly, PRANK allows for defining a potential structure
5132 for sequences to be aligned and then, simultaneously with the alignment,
5133 predicts the locations of structural units in the sequences.")
5134 (license license:gpl2+)))
5135
5136 (define-public proteinortho
5137 (package
5138 (name "proteinortho")
5139 (version "6.0.14")
5140 (source (origin
5141 (method git-fetch)
5142 (uri (git-reference
5143 (url "https://gitlab.com/paulklemm_PHD/proteinortho.git")
5144 (commit (string-append "v" version))))
5145 (file-name (git-file-name name version))
5146 (sha256
5147 (base32
5148 "0pmy617zy2z2w6hjqxjhf3rzikf5n3mpia80ysq8233vfr7wrzff"))
5149 (modules '((guix build utils)))
5150 (snippet
5151 '(begin
5152 ;; remove pre-built scripts
5153 (delete-file-recursively "src/BUILD/")
5154 #t))))
5155 (build-system gnu-build-system)
5156 (arguments
5157 `(#:test-target "test"
5158 #:make-flags '("CC=gcc")
5159 #:phases
5160 (modify-phases %standard-phases
5161 (replace 'configure
5162 ;; There is no configure script, so we modify the Makefile directly.
5163 (lambda* (#:key outputs #:allow-other-keys)
5164 (substitute* "Makefile"
5165 (("INSTALLDIR=.*")
5166 (string-append
5167 "INSTALLDIR=" (assoc-ref outputs "out") "/bin\n")))
5168 #t))
5169 (add-before 'install 'make-install-directory
5170 ;; The install directory is not created during 'make install'.
5171 (lambda* (#:key outputs #:allow-other-keys)
5172 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
5173 #t))
5174 (add-after 'install 'wrap-programs
5175 (lambda* (#:key inputs outputs #:allow-other-keys)
5176 (let ((path (getenv "PATH"))
5177 (out (assoc-ref outputs "out")))
5178 (for-each (lambda (script)
5179 (wrap-script script `("PATH" ":" prefix (,path))))
5180 (cons (string-append out "/bin/proteinortho")
5181 (find-files out "\\.(pl|py)$"))))
5182 #t)))))
5183 (inputs
5184 `(("guile" ,guile-3.0) ; for wrap-script
5185 ("diamond" ,diamond)
5186 ("perl" ,perl)
5187 ("python" ,python-wrapper)
5188 ("blast+" ,blast+)
5189 ("lapack" ,lapack)
5190 ("openblas" ,openblas)))
5191 (native-inputs
5192 `(("which" ,which)))
5193 (home-page "http://www.bioinf.uni-leipzig.de/Software/proteinortho")
5194 (synopsis "Detect orthologous genes across species")
5195 (description
5196 "Proteinortho is a tool to detect orthologous genes across different
5197 species. For doing so, it compares similarities of given gene sequences and
5198 clusters them to find significant groups. The algorithm was designed to handle
5199 large-scale data and can be applied to hundreds of species at once.")
5200 (license license:gpl3+)))
5201
5202 (define-public pyicoteo
5203 (package
5204 (name "pyicoteo")
5205 (version "2.0.7")
5206 (source
5207 (origin
5208 (method git-fetch)
5209 (uri (git-reference
5210 (url "https://bitbucket.org/regulatorygenomicsupf/pyicoteo.git")
5211 (commit (string-append "v" version))))
5212 (file-name (git-file-name name version))
5213 (sha256
5214 (base32
5215 "0hz5g8d25lbjy1wpscr490l0lmyvaix893hhax4fxnh1h9w34w8p"))))
5216 (build-system python-build-system)
5217 (arguments
5218 `(#:python ,python-2 ; does not work with Python 3
5219 #:tests? #f)) ; there are no tests
5220 (inputs
5221 `(("python2-matplotlib" ,python2-matplotlib)))
5222 (home-page "https://bitbucket.org/regulatorygenomicsupf/pyicoteo")
5223 (synopsis "Analyze high-throughput genetic sequencing data")
5224 (description
5225 "Pyicoteo is a suite of tools for the analysis of high-throughput genetic
5226 sequencing data. It works with genomic coordinates. There are currently six
5227 different command-line tools:
5228
5229 @enumerate
5230 @item pyicoregion: for generating exploratory regions automatically;
5231 @item pyicoenrich: for differential enrichment between two conditions;
5232 @item pyicoclip: for calling CLIP-Seq peaks without a control;
5233 @item pyicos: for genomic coordinates manipulation;
5234 @item pyicoller: for peak calling on punctuated ChIP-Seq;
5235 @item pyicount: to count how many reads from N experiment files overlap in a
5236 region file;
5237 @item pyicotrocol: to combine operations from pyicoteo.
5238 @end enumerate\n")
5239 (license license:gpl3+)))
5240
5241 (define-public prodigal
5242 (package
5243 (name "prodigal")
5244 ;; Check for a new home page when updating this package:
5245 ;; https://github.com/hyattpd/Prodigal/issues/36#issuecomment-536617588
5246 (version "2.6.3")
5247 (source (origin
5248 (method git-fetch)
5249 (uri (git-reference
5250 (url "https://github.com/hyattpd/Prodigal.git")
5251 (commit (string-append "v" version))))
5252 (file-name (git-file-name name version))
5253 (sha256
5254 (base32
5255 "1fs1hqk83qjbjhrvhw6ni75zakx5ki1ayy3v6wwkn3xvahc9hi5s"))))
5256 (build-system gnu-build-system)
5257 (arguments
5258 `(#:tests? #f ; no check target
5259 #:make-flags (list (string-append "INSTALLDIR="
5260 (assoc-ref %outputs "out")
5261 "/bin"))
5262 #:phases
5263 (modify-phases %standard-phases
5264 (delete 'configure))))
5265 (home-page "https://github.com/hyattpd/Prodigal")
5266 (synopsis "Protein-coding gene prediction for Archaea and Bacteria")
5267 (description
5268 "Prodigal runs smoothly on finished genomes, draft genomes, and
5269 metagenomes, providing gene predictions in GFF3, Genbank, or Sequin table
5270 format. It runs quickly, in an unsupervised fashion, handles gaps, handles
5271 partial genes, and identifies translation initiation sites.")
5272 (license license:gpl3+)))
5273
5274 (define-public roary
5275 (package
5276 (name "roary")
5277 (version "3.12.0")
5278 (source
5279 (origin
5280 (method url-fetch)
5281 (uri (string-append
5282 "mirror://cpan/authors/id/A/AJ/AJPAGE/Bio-Roary-"
5283 version ".tar.gz"))
5284 (sha256
5285 (base32
5286 "0qxrds9wx7cfhlkihrp6697kx0flhhxymap9fwan0b3rbdhcnmff"))))
5287 (build-system perl-build-system)
5288 (arguments
5289 `(#:phases
5290 (modify-phases %standard-phases
5291 (delete 'configure)
5292 (delete 'build)
5293 (replace 'check
5294 (lambda _
5295 ;; The tests are not run by default, so we run each test file
5296 ;; directly.
5297 (setenv "PATH" (string-append (getcwd) "/bin" ":"
5298 (getenv "PATH")))
5299 (setenv "PERL5LIB" (string-append (getcwd) "/lib" ":"
5300 (getenv "PERL5LIB")))
5301 (for-each (lambda (file)
5302 (display file)(display "\n")
5303 (invoke "perl" file))
5304 (find-files "t" ".*\\.t$"))
5305 #t))
5306 (replace 'install
5307 ;; There is no 'install' target in the Makefile.
5308 (lambda* (#:key outputs #:allow-other-keys)
5309 (let* ((out (assoc-ref outputs "out"))
5310 (bin (string-append out "/bin"))
5311 (perl (string-append out "/lib/perl5/site_perl"))
5312 (roary-plots "contrib/roary_plots"))
5313 (mkdir-p bin)
5314 (mkdir-p perl)
5315 (copy-recursively "bin" bin)
5316 (copy-recursively "lib" perl)
5317 #t)))
5318 (add-after 'install 'wrap-programs
5319 (lambda* (#:key inputs outputs #:allow-other-keys)
5320 (let* ((out (assoc-ref outputs "out"))
5321 (perl5lib (getenv "PERL5LIB"))
5322 (path (getenv "PATH")))
5323 (for-each (lambda (prog)
5324 (let ((binary (string-append out "/" prog)))
5325 (wrap-program binary
5326 `("PERL5LIB" ":" prefix
5327 (,(string-append perl5lib ":" out
5328 "/lib/perl5/site_perl"))))
5329 (wrap-program binary
5330 `("PATH" ":" prefix
5331 (,(string-append path ":" out "/bin"))))))
5332 (find-files "bin" ".*[^R]$"))
5333 (let ((file
5334 (string-append out "/bin/roary-create_pan_genome_plots.R"))
5335 (r-site-lib (getenv "R_LIBS_SITE"))
5336 (coreutils-path
5337 (string-append (assoc-ref inputs "coreutils") "/bin")))
5338 (wrap-program file
5339 `("R_LIBS_SITE" ":" prefix
5340 (,(string-append r-site-lib ":" out "/site-library/"))))
5341 (wrap-program file
5342 `("PATH" ":" prefix
5343 (,(string-append coreutils-path ":" out "/bin"))))))
5344 #t)))))
5345 (native-inputs
5346 `(("perl-env-path" ,perl-env-path)
5347 ("perl-test-files" ,perl-test-files)
5348 ("perl-test-most" ,perl-test-most)
5349 ("perl-test-output" ,perl-test-output)))
5350 (inputs
5351 `(("perl-array-utils" ,perl-array-utils)
5352 ("bioperl" ,bioperl-minimal)
5353 ("perl-digest-md5-file" ,perl-digest-md5-file)
5354 ("perl-exception-class" ,perl-exception-class)
5355 ("perl-file-find-rule" ,perl-file-find-rule)
5356 ("perl-file-grep" ,perl-file-grep)
5357 ("perl-file-slurper" ,perl-file-slurper)
5358 ("perl-file-which" ,perl-file-which)
5359 ("perl-graph" ,perl-graph)
5360 ("perl-graph-readwrite" ,perl-graph-readwrite)
5361 ("perl-log-log4perl" ,perl-log-log4perl)
5362 ("perl-moose" ,perl-moose)
5363 ("perl-perlio-utf8_strict" ,perl-perlio-utf8_strict)
5364 ("perl-text-csv" ,perl-text-csv)
5365 ("bedtools" ,bedtools)
5366 ("cd-hit" ,cd-hit)
5367 ("blast+" ,blast+)
5368 ("mcl" ,mcl)
5369 ("parallel" ,parallel)
5370 ("prank" ,prank)
5371 ("mafft" ,mafft)
5372 ("fasttree" ,fasttree)
5373 ("grep" ,grep)
5374 ("sed" ,sed)
5375 ("gawk" ,gawk)
5376 ("r-minimal" ,r-minimal)
5377 ("r-ggplot2" ,r-ggplot2)
5378 ("coreutils" ,coreutils)))
5379 (home-page "https://sanger-pathogens.github.io/Roary/")
5380 (synopsis "High speed stand-alone pan genome pipeline")
5381 (description
5382 "Roary is a high speed stand alone pan genome pipeline, which takes
5383 annotated assemblies in GFF3 format (produced by the Prokka program) and
5384 calculates the pan genome. Using a standard desktop PC, it can analyse
5385 datasets with thousands of samples, without compromising the quality of the
5386 results. 128 samples can be analysed in under 1 hour using 1 GB of RAM and a
5387 single processor. Roary is not intended for metagenomics or for comparing
5388 extremely diverse sets of genomes.")
5389 (license license:gpl3)))
5390
5391 (define-public raxml
5392 (package
5393 (name "raxml")
5394 (version "8.2.12")
5395 (source
5396 (origin
5397 (method git-fetch)
5398 (uri (git-reference
5399 (url "https://github.com/stamatak/standard-RAxML.git")
5400 (commit (string-append "v" version))))
5401 (file-name (git-file-name name version))
5402 (sha256
5403 (base32
5404 "1jqjzhch0rips0vp04prvb8vmc20c5pdmsqn8knadcf91yy859fh"))))
5405 (build-system gnu-build-system)
5406 (arguments
5407 `(#:tests? #f ; There are no tests.
5408 ;; Use 'standard' Makefile rather than SSE or AVX ones.
5409 #:make-flags (list "-f" "Makefile.HYBRID.gcc")
5410 #:phases
5411 (modify-phases %standard-phases
5412 (delete 'configure)
5413 (replace 'install
5414 (lambda* (#:key outputs #:allow-other-keys)
5415 (let* ((out (assoc-ref outputs "out"))
5416 (bin (string-append out "/bin"))
5417 (executable "raxmlHPC-HYBRID"))
5418 (install-file executable bin)
5419 (symlink (string-append bin "/" executable) "raxml"))
5420 #t)))))
5421 (inputs
5422 `(("openmpi" ,openmpi)))
5423 (home-page "https://cme.h-its.org/exelixis/web/software/raxml/index.html")
5424 (synopsis "Randomized Axelerated Maximum Likelihood phylogenetic trees")
5425 (description
5426 "RAxML is a tool for phylogenetic analysis and post-analysis of large
5427 phylogenies.")
5428 ;; The source includes x86 specific code
5429 (supported-systems '("x86_64-linux" "i686-linux"))
5430 (license license:gpl2+)))
5431
5432 (define-public rsem
5433 (package
5434 (name "rsem")
5435 (version "1.3.1")
5436 (source
5437 (origin
5438 (method git-fetch)
5439 (uri (git-reference
5440 (url "https://github.com/deweylab/RSEM.git")
5441 (commit (string-append "v" version))))
5442 (sha256
5443 (base32 "1jlq11d1p8qp64w75yj8cnbbd1a93viq10pzsbwal7vdn8fg13j1"))
5444 (file-name (git-file-name name version))
5445 (modules '((guix build utils)))
5446 (snippet
5447 '(begin
5448 ;; remove bundled copy of boost and samtools
5449 (delete-file-recursively "boost")
5450 (delete-file-recursively "samtools-1.3")
5451 #t))))
5452 (build-system gnu-build-system)
5453 (arguments
5454 `(#:tests? #f ;no "check" target
5455 #:make-flags
5456 (list (string-append "BOOST="
5457 (assoc-ref %build-inputs "boost")
5458 "/include/")
5459 (string-append "SAMHEADERS="
5460 (assoc-ref %build-inputs "htslib")
5461 "/include/htslib/sam.h")
5462 (string-append "SAMLIBS="
5463 (assoc-ref %build-inputs "htslib")
5464 "/lib/libhts.a"))
5465 #:phases
5466 (modify-phases %standard-phases
5467 ;; No "configure" script.
5468 ;; Do not build bundled samtools library.
5469 (replace 'configure
5470 (lambda _
5471 (substitute* "Makefile"
5472 (("^all : \\$\\(PROGRAMS\\).*") "all: $(PROGRAMS)\n")
5473 (("^\\$\\(SAMLIBS\\).*") ""))
5474 #t))
5475 (replace 'install
5476 (lambda* (#:key outputs #:allow-other-keys)
5477 (let* ((out (string-append (assoc-ref outputs "out")))
5478 (bin (string-append out "/bin/"))
5479 (perl (string-append out "/lib/perl5/site_perl")))
5480 (mkdir-p bin)
5481 (mkdir-p perl)
5482 (for-each (lambda (file)
5483 (install-file file bin))
5484 (find-files "." "rsem-.*"))
5485 (install-file "rsem_perl_utils.pm" perl))
5486 #t))
5487 (add-after 'install 'wrap-program
5488 (lambda* (#:key outputs #:allow-other-keys)
5489 (let ((out (assoc-ref outputs "out")))
5490 (for-each (lambda (prog)
5491 (wrap-program (string-append out "/bin/" prog)
5492 `("PERL5LIB" ":" prefix
5493 (,(string-append out "/lib/perl5/site_perl")))))
5494 '("rsem-calculate-expression"
5495 "rsem-control-fdr"
5496 "rsem-generate-data-matrix"
5497 "rsem-generate-ngvector"
5498 "rsem-plot-transcript-wiggles"
5499 "rsem-prepare-reference"
5500 "rsem-run-ebseq"
5501 "rsem-run-prsem-testing-procedure")))
5502 #t)))))
5503 (inputs
5504 `(("boost" ,boost)
5505 ("r-minimal" ,r-minimal)
5506 ("perl" ,perl)
5507 ("htslib" ,htslib-1.3)
5508 ("zlib" ,zlib)))
5509 (home-page "http://deweylab.biostat.wisc.edu/rsem/")
5510 (synopsis "Estimate gene expression levels from RNA-Seq data")
5511 (description
5512 "RSEM is a software package for estimating gene and isoform expression
5513 levels from RNA-Seq data. The RSEM package provides a user-friendly
5514 interface, supports threads for parallel computation of the EM algorithm,
5515 single-end and paired-end read data, quality scores, variable-length reads and
5516 RSPD estimation. In addition, it provides posterior mean and 95% credibility
5517 interval estimates for expression levels. For visualization, it can generate
5518 BAM and Wiggle files in both transcript-coordinate and genomic-coordinate.")
5519 (license license:gpl3+)))
5520
5521 (define-public rseqc
5522 (package
5523 (name "rseqc")
5524 (version "3.0.1")
5525 (source
5526 (origin
5527 (method url-fetch)
5528 (uri
5529 (string-append "mirror://sourceforge/rseqc/"
5530 "RSeQC-" version ".tar.gz"))
5531 (sha256
5532 (base32
5533 "0gbb9iyb7swiv5455fm5rg98r7l6qn27v564yllqjd574hncpx6m"))))
5534 (build-system python-build-system)
5535 (inputs
5536 `(("python-cython" ,python-cython)
5537 ("python-bx-python" ,python-bx-python)
5538 ("python-pybigwig" ,python-pybigwig)
5539 ("python-pysam" ,python-pysam)
5540 ("python-numpy" ,python-numpy)
5541 ("zlib" ,zlib)))
5542 (native-inputs
5543 `(("python-nose" ,python-nose)))
5544 (home-page "http://rseqc.sourceforge.net/")
5545 (synopsis "RNA-seq quality control package")
5546 (description
5547 "RSeQC provides a number of modules that can comprehensively evaluate
5548 high throughput sequence data, especially RNA-seq data. Some basic modules
5549 inspect sequence quality, nucleotide composition bias, PCR bias and GC bias,
5550 while RNA-seq specific modules evaluate sequencing saturation, mapped reads
5551 distribution, coverage uniformity, strand specificity, etc.")
5552 (license license:gpl3+)))
5553
5554 (define-public seek
5555 ;; There are no release tarballs. According to the installation
5556 ;; instructions at http://seek.princeton.edu/installation.jsp, the latest
5557 ;; stable release is identified by this changeset ID.
5558 (let ((changeset "2329130")
5559 (revision "1"))
5560 (package
5561 (name "seek")
5562 (version (string-append "0-" revision "." changeset))
5563 (source (origin
5564 (method hg-fetch)
5565 (uri (hg-reference
5566 (url "https://bitbucket.org/libsleipnir/sleipnir")
5567 (changeset changeset)))
5568 (file-name (string-append name "-" version "-checkout"))
5569 (sha256
5570 (base32
5571 "0qrvilwh18dpbhkf92qvxbmay0j75ra3jg2wrhz67gf538zzphsx"))))
5572 (build-system gnu-build-system)
5573 (arguments
5574 `(#:modules ((srfi srfi-1)
5575 (guix build gnu-build-system)
5576 (guix build utils))
5577 #:phases
5578 (let ((dirs '("SeekMiner"
5579 "SeekEvaluator"
5580 "SeekPrep"
5581 "Distancer"
5582 "Data2DB"
5583 "PCL2Bin")))
5584 (modify-phases %standard-phases
5585 (replace 'bootstrap
5586 (lambda _
5587 (substitute* "gen_tools_am"
5588 (("/usr/bin/env.*") (which "perl")))
5589 (invoke "bash" "gen_auto")
5590 #t))
5591 (add-after 'build 'build-additional-tools
5592 (lambda* (#:key make-flags #:allow-other-keys)
5593 (for-each (lambda (dir)
5594 (with-directory-excursion (string-append "tools/" dir)
5595 (apply invoke "make" make-flags)))
5596 dirs)
5597 #t))
5598 (add-after 'install 'install-additional-tools
5599 (lambda* (#:key make-flags #:allow-other-keys)
5600 (for-each (lambda (dir)
5601 (with-directory-excursion (string-append "tools/" dir)
5602 (apply invoke `("make" ,@make-flags "install"))))
5603 dirs)
5604 #t))))))
5605 (inputs
5606 `(("gsl" ,gsl)
5607 ("boost" ,boost)
5608 ("libsvm" ,libsvm)
5609 ("readline" ,readline)
5610 ("gengetopt" ,gengetopt)
5611 ("log4cpp" ,log4cpp)))
5612 (native-inputs
5613 `(("autoconf" ,autoconf)
5614 ("automake" ,automake)
5615 ("perl" ,perl)))
5616 (home-page "http://seek.princeton.edu")
5617 (synopsis "Gene co-expression search engine")
5618 (description
5619 "SEEK is a computational gene co-expression search engine. SEEK provides
5620 biologists with a way to navigate the massive human expression compendium that
5621 now contains thousands of expression datasets. SEEK returns a robust ranking
5622 of co-expressed genes in the biological area of interest defined by the user's
5623 query genes. It also prioritizes thousands of expression datasets according
5624 to the user's query of interest.")
5625 (license license:cc-by3.0))))
5626
5627 (define-public samtools
5628 (package
5629 (name "samtools")
5630 (version "1.9")
5631 (source
5632 (origin
5633 (method url-fetch)
5634 (uri
5635 (string-append "mirror://sourceforge/samtools/samtools/"
5636 version "/samtools-" version ".tar.bz2"))
5637 (sha256
5638 (base32
5639 "10ilqbmm7ri8z431sn90lvbjwizd0hhkf9rcqw8j823hf26nhgq8"))
5640 (modules '((guix build utils)))
5641 (snippet '(begin
5642 ;; Delete bundled htslib.
5643 (delete-file-recursively "htslib-1.9")
5644 #t))))
5645 (build-system gnu-build-system)
5646 (arguments
5647 `(#:modules ((ice-9 ftw)
5648 (ice-9 regex)
5649 (guix build gnu-build-system)
5650 (guix build utils))
5651 #:configure-flags (list "--with-ncurses")
5652 #:phases
5653 (modify-phases %standard-phases
5654 (add-after 'unpack 'patch-tests
5655 (lambda _
5656 (substitute* "test/test.pl"
5657 ;; The test script calls out to /bin/bash
5658 (("/bin/bash") (which "bash")))
5659 #t))
5660 (add-after 'install 'install-library
5661 (lambda* (#:key outputs #:allow-other-keys)
5662 (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
5663 (install-file "libbam.a" lib)
5664 #t)))
5665 (add-after 'install 'install-headers
5666 (lambda* (#:key outputs #:allow-other-keys)
5667 (let ((include (string-append (assoc-ref outputs "out")
5668 "/include/samtools/")))
5669 (for-each (lambda (file)
5670 (install-file file include))
5671 (scandir "." (lambda (name) (string-match "\\.h$" name))))
5672 #t))))))
5673 (native-inputs `(("pkg-config" ,pkg-config)))
5674 (inputs
5675 `(("htslib" ,htslib)
5676 ("ncurses" ,ncurses)
5677 ("perl" ,perl)
5678 ("python" ,python)
5679 ("zlib" ,zlib)))
5680 (home-page "http://samtools.sourceforge.net")
5681 (synopsis "Utilities to efficiently manipulate nucleotide sequence alignments")
5682 (description
5683 "Samtools implements various utilities for post-processing nucleotide
5684 sequence alignments in the SAM, BAM, and CRAM formats, including indexing,
5685 variant calling (in conjunction with bcftools), and a simple alignment
5686 viewer.")
5687 (license license:expat)))
5688
5689 (define-public samtools-0.1
5690 ;; This is the most recent version of the 0.1 line of samtools. The input
5691 ;; and output formats differ greatly from that used and produced by samtools
5692 ;; 1.x and is still used in many bioinformatics pipelines.
5693 (package (inherit samtools)
5694 (version "0.1.19")
5695 (source
5696 (origin
5697 (method url-fetch)
5698 (uri
5699 (string-append "mirror://sourceforge/samtools/samtools/"
5700 version "/samtools-" version ".tar.bz2"))
5701 (sha256
5702 (base32 "1m33xsfwz0s8qi45lylagfllqg7fphf4dr0780rsvw75av9wk06h"))))
5703 (arguments
5704 `(#:tests? #f ;no "check" target
5705 #:make-flags
5706 (list "LIBCURSES=-lncurses")
5707 ,@(substitute-keyword-arguments (package-arguments samtools)
5708 ((#:phases phases)
5709 `(modify-phases ,phases
5710 (replace 'install
5711 (lambda* (#:key outputs #:allow-other-keys)
5712 (let ((bin (string-append
5713 (assoc-ref outputs "out") "/bin")))
5714 (mkdir-p bin)
5715 (install-file "samtools" bin)
5716 #t)))
5717 (delete 'patch-tests)
5718 (delete 'configure))))))))
5719
5720 (define-public mosaik
5721 (let ((commit "5c25216d3522d6a33e53875cd76a6d65001e4e67"))
5722 (package
5723 (name "mosaik")
5724 (version "2.2.30")
5725 (source (origin
5726 ;; There are no release tarballs nor tags.
5727 (method git-fetch)
5728 (uri (git-reference
5729 (url "https://github.com/wanpinglee/MOSAIK.git")
5730 (commit commit)))
5731 (file-name (string-append name "-" version))
5732 (sha256
5733 (base32
5734 "17gj3s07cm77r41z92awh0bim7w7q7fbn0sf5nkqmcm1vw052qgw"))))
5735 (build-system gnu-build-system)
5736 (arguments
5737 `(#:tests? #f ; no tests
5738 #:make-flags (list "CC=gcc")
5739 #:phases
5740 (modify-phases %standard-phases
5741 (replace 'configure
5742 (lambda _ (chdir "src") #t))
5743 (replace 'install
5744 (lambda* (#:key outputs #:allow-other-keys)
5745 (let ((bin (string-append (assoc-ref outputs "out")
5746 "/bin")))
5747 (mkdir-p bin)
5748 (copy-recursively "../bin" bin)
5749 #t))))))
5750 (inputs
5751 `(("perl" ,perl)
5752 ("zlib:static" ,zlib "static")
5753 ("zlib" ,zlib)))
5754 (supported-systems '("x86_64-linux"))
5755 (home-page "https://github.com/wanpinglee/MOSAIK")
5756 (synopsis "Map nucleotide sequence reads to reference genomes")
5757 (description
5758 "MOSAIK is a program for mapping second and third-generation sequencing
5759 reads to a reference genome. MOSAIK can align reads generated by all the
5760 major sequencing technologies, including Illumina, Applied Biosystems SOLiD,
5761 Roche 454, Ion Torrent and Pacific BioSciences SMRT.")
5762 ;; MOSAIK is released under the GPLv2+ with the exception of third-party
5763 ;; code released into the public domain:
5764 ;; 1. fastlz by Ariya Hidayat - http://www.fastlz.org/
5765 ;; 2. MD5 implementation - RSA Data Security, RFC 1321
5766 (license (list license:gpl2+ license:public-domain)))))
5767
5768 (define-public ngs-sdk
5769 (package
5770 (name "ngs-sdk")
5771 (version "2.10.5")
5772 (source (origin
5773 (method git-fetch)
5774 (uri (git-reference
5775 (url "https://github.com/ncbi/ngs.git")
5776 (commit version)))
5777 (file-name (git-file-name name version))
5778 (sha256
5779 (base32
5780 "1ix51c25hjn57w93qmwzw80xh2i34wx8j2hn7szh8p6w8i3az5qa"))))
5781 (build-system gnu-build-system)
5782 (arguments
5783 `(#:parallel-build? #f ; not supported
5784 #:tests? #f ; no "check" target
5785 #:phases
5786 (modify-phases %standard-phases
5787 (replace 'configure
5788 (lambda* (#:key outputs #:allow-other-keys)
5789 (let ((out (assoc-ref outputs "out")))
5790 ;; Allow 'konfigure.perl' to find 'package.prl'.
5791 (setenv "PERL5LIB"
5792 (string-append ".:" (getenv "PERL5LIB")))
5793
5794 ;; The 'configure' script doesn't recognize things like
5795 ;; '--enable-fast-install'.
5796 (invoke "./configure"
5797 (string-append "--build-prefix=" (getcwd) "/build")
5798 (string-append "--prefix=" out))
5799 #t)))
5800 (add-after 'unpack 'enter-dir
5801 (lambda _ (chdir "ngs-sdk") #t)))))
5802 (native-inputs `(("perl" ,perl)))
5803 ;; According to the test
5804 ;; unless ($MARCH =~ /x86_64/i || $MARCH =~ /i?86/i)
5805 ;; in ngs-sdk/setup/konfigure.perl
5806 (supported-systems '("i686-linux" "x86_64-linux"))
5807 (home-page "https://github.com/ncbi/ngs")
5808 (synopsis "API for accessing Next Generation Sequencing data")
5809 (description
5810 "NGS is a domain-specific API for accessing reads, alignments and pileups
5811 produced from Next Generation Sequencing. The API itself is independent from
5812 any particular back-end implementation, and supports use of multiple back-ends
5813 simultaneously.")
5814 (license license:public-domain)))
5815
5816 (define-public java-ngs
5817 (package (inherit ngs-sdk)
5818 (name "java-ngs")
5819 (arguments
5820 `(,@(substitute-keyword-arguments
5821 `(#:modules ((guix build gnu-build-system)
5822 (guix build utils)
5823 (srfi srfi-1)
5824 (srfi srfi-26))
5825 ,@(package-arguments ngs-sdk))
5826 ((#:phases phases)
5827 `(modify-phases ,phases
5828 (replace 'enter-dir (lambda _ (chdir "ngs-java") #t)))))))
5829 (inputs
5830 `(("jdk" ,icedtea "jdk")
5831 ("ngs-sdk" ,ngs-sdk)))
5832 (synopsis "Java bindings for NGS SDK")))
5833
5834 (define-public ncbi-vdb
5835 (package
5836 (name "ncbi-vdb")
5837 (version "2.10.6")
5838 (source (origin
5839 (method git-fetch)
5840 (uri (git-reference
5841 (url "https://github.com/ncbi/ncbi-vdb.git")
5842 (commit version)))
5843 (file-name (git-file-name name version))
5844 (sha256
5845 (base32
5846 "0m8hlxscidsfqm9x9fyi62q6lpf1dv5115kgjjgnrkl49q9c27m6"))))
5847 (build-system gnu-build-system)
5848 (arguments
5849 `(#:parallel-build? #f ; not supported
5850 #:tests? #f ; no "check" target
5851 #:make-flags '("HAVE_HDF5=1")
5852 #:phases
5853 (modify-phases %standard-phases
5854 (add-after 'unpack 'make-files-writable
5855 (lambda _ (for-each make-file-writable (find-files "." ".*")) #t))
5856 (add-before 'configure 'set-perl-search-path
5857 (lambda _
5858 ;; Work around "dotless @INC" build failure.
5859 (setenv "PERL5LIB"
5860 (string-append (getcwd) "/setup:"
5861 (getenv "PERL5LIB")))
5862 #t))
5863 ;; See https://github.com/ncbi/ncbi-vdb/issues/14
5864 (add-after 'unpack 'patch-krypto-flags
5865 (lambda _
5866 (substitute* "libs/krypto/Makefile"
5867 (("-Wa,-march=generic64\\+aes") "")
5868 (("-Wa,-march=generic64\\+sse4") ""))
5869 #t))
5870 (replace 'configure
5871 (lambda* (#:key inputs outputs #:allow-other-keys)
5872 (let ((out (assoc-ref outputs "out")))
5873 ;; Override include path for libmagic
5874 (substitute* "setup/package.prl"
5875 (("name => 'magic', Include => '/usr/include'")
5876 (string-append "name=> 'magic', Include => '"
5877 (assoc-ref inputs "libmagic")
5878 "/include" "'")))
5879
5880 ;; Install kdf5 library (needed by sra-tools)
5881 (substitute* "build/Makefile.install"
5882 (("LIBRARIES_TO_INSTALL =")
5883 "LIBRARIES_TO_INSTALL = kdf5.$(VERSION_LIBX) kdf5.$(VERSION_SHLX)"))
5884
5885 (substitute* "build/Makefile.env"
5886 (("CFLAGS =" prefix)
5887 (string-append prefix "-msse2 ")))
5888
5889 ;; Override search path for ngs-java
5890 (substitute* "setup/package.prl"
5891 (("/usr/local/ngs/ngs-java")
5892 (assoc-ref inputs "java-ngs")))
5893
5894 ;; The 'configure' script doesn't recognize things like
5895 ;; '--enable-fast-install'.
5896 (invoke "./configure"
5897 (string-append "--build-prefix=" (getcwd) "/build")
5898 (string-append "--prefix=" (assoc-ref outputs "out"))
5899 (string-append "--debug")
5900 (string-append "--with-xml2-prefix="
5901 (assoc-ref inputs "libxml2"))
5902 (string-append "--with-ngs-sdk-prefix="
5903 (assoc-ref inputs "ngs-sdk"))
5904 (string-append "--with-hdf5-prefix="
5905 (assoc-ref inputs "hdf5")))
5906 #t)))
5907 (add-after 'install 'install-interfaces
5908 (lambda* (#:key outputs #:allow-other-keys)
5909 ;; Install interface libraries. On i686 the interface libraries
5910 ;; are installed to "linux/gcc/i386", so we need to use the Linux
5911 ;; architecture name ("i386") instead of the target system prefix
5912 ;; ("i686").
5913 (mkdir (string-append (assoc-ref outputs "out") "/ilib"))
5914 (copy-recursively (string-append "build/ncbi-vdb/linux/gcc/"
5915 ,(system->linux-architecture
5916 (or (%current-target-system)
5917 (%current-system)))
5918 "/rel/ilib")
5919 (string-append (assoc-ref outputs "out")
5920 "/ilib"))
5921 ;; Install interface headers
5922 (copy-recursively "interfaces"
5923 (string-append (assoc-ref outputs "out")
5924 "/include"))
5925 #t))
5926 ;; These files are needed by sra-tools.
5927 (add-after 'install 'install-configuration-files
5928 (lambda* (#:key outputs #:allow-other-keys)
5929 (let ((target (string-append (assoc-ref outputs "out") "/kfg")))
5930 (mkdir target)
5931 (install-file "libs/kfg/default.kfg" target)
5932 (install-file "libs/kfg/certs.kfg" target))
5933 #t)))))
5934 (inputs
5935 `(("libxml2" ,libxml2)
5936 ("ngs-sdk" ,ngs-sdk)
5937 ("java-ngs" ,java-ngs)
5938 ("libmagic" ,file)
5939 ("hdf5" ,hdf5)))
5940 (native-inputs `(("perl" ,perl)))
5941 ;; NCBI-VDB requires SSE capability.
5942 (supported-systems '("i686-linux" "x86_64-linux"))
5943 (home-page "https://github.com/ncbi/ncbi-vdb")
5944 (synopsis "Database engine for genetic information")
5945 (description
5946 "The NCBI-VDB library implements a highly compressed columnar data
5947 warehousing engine that is most often used to store genetic information.
5948 Databases are stored in a portable image within the file system, and can be
5949 accessed/downloaded on demand across HTTP.")
5950 (license license:public-domain)))
5951
5952 (define-public plink
5953 (package
5954 (name "plink")
5955 (version "1.07")
5956 (source
5957 (origin
5958 (method url-fetch)
5959 (uri (string-append
5960 "http://pngu.mgh.harvard.edu/~purcell/plink/dist/plink-"
5961 version "-src.zip"))
5962 (sha256
5963 (base32 "0as8gxm4pjyc8dxmm1sl873rrd7wn5qs0l29nqfnl31x8i467xaa"))
5964 (patches (search-patches "plink-1.07-unclobber-i.patch"
5965 "plink-endian-detection.patch"))))
5966 (build-system gnu-build-system)
5967 (arguments
5968 '(#:tests? #f ;no "check" target
5969 #:make-flags (list (string-append "LIB_LAPACK="
5970 (assoc-ref %build-inputs "lapack")
5971 "/lib/liblapack.so")
5972 "WITH_LAPACK=1"
5973 "FORCE_DYNAMIC=1"
5974 ;; disable phoning home
5975 "WITH_WEBCHECK=")
5976 #:phases
5977 (modify-phases %standard-phases
5978 ;; no "configure" script
5979 (delete 'configure)
5980 (replace 'install
5981 (lambda* (#:key outputs #:allow-other-keys)
5982 (let ((bin (string-append (assoc-ref outputs "out")
5983 "/bin/")))
5984 (install-file "plink" bin)
5985 #t))))))
5986 (inputs
5987 `(("zlib" ,zlib)
5988 ("lapack" ,lapack)))
5989 (native-inputs
5990 `(("unzip" ,unzip)))
5991 (home-page "http://pngu.mgh.harvard.edu/~purcell/plink/")
5992 (synopsis "Whole genome association analysis toolset")
5993 (description
5994 "PLINK is a whole genome association analysis toolset, designed to
5995 perform a range of basic, large-scale analyses in a computationally efficient
5996 manner. The focus of PLINK is purely on analysis of genotype/phenotype data,
5997 so there is no support for steps prior to this (e.g. study design and
5998 planning, generating genotype or CNV calls from raw data). Through
5999 integration with gPLINK and Haploview, there is some support for the
6000 subsequent visualization, annotation and storage of results.")
6001 ;; Code is released under GPLv2, except for fisher.h, which is under
6002 ;; LGPLv2.1+
6003 (license (list license:gpl2 license:lgpl2.1+))))
6004
6005 (define-public plink-ng
6006 (package (inherit plink)
6007 (name "plink-ng")
6008 (version "1.90b4")
6009 (source
6010 (origin
6011 (method git-fetch)
6012 (uri (git-reference
6013 (url "https://github.com/chrchang/plink-ng.git")
6014 (commit (string-append "v" version))))
6015 (file-name (git-file-name name version))
6016 (sha256
6017 (base32 "02npdwgkpfkdnhw819rhj5kw02a5k5m90b14zq9zzya4hyg929c0"))))
6018 (build-system gnu-build-system)
6019 (arguments
6020 '(#:tests? #f ;no "check" target
6021 #:make-flags (list "BLASFLAGS=-llapack -lopenblas"
6022 "CFLAGS=-Wall -O2 -DDYNAMIC_ZLIB=1"
6023 "ZLIB=-lz"
6024 "-f" "Makefile.std")
6025 #:phases
6026 (modify-phases %standard-phases
6027 (add-after 'unpack 'chdir
6028 (lambda _ (chdir "1.9") #t))
6029 (delete 'configure) ; no "configure" script
6030 (replace 'install
6031 (lambda* (#:key outputs #:allow-other-keys)
6032 (let ((bin (string-append (assoc-ref outputs "out")
6033 "/bin/")))
6034 (install-file "plink" bin)
6035 #t))))))
6036 (inputs
6037 `(("zlib" ,zlib)
6038 ("lapack" ,lapack)
6039 ("openblas" ,openblas)))
6040 (home-page "https://www.cog-genomics.org/plink/")
6041 (license license:gpl3+)))
6042
6043 (define-public smithlab-cpp
6044 (let ((revision "1")
6045 (commit "728a097bec88c6f4b8528b685932049e660eff2e"))
6046 (package
6047 (name "smithlab-cpp")
6048 (version (string-append "0." revision "." (string-take commit 7)))
6049 (source (origin
6050 (method git-fetch)
6051 (uri (git-reference
6052 (url "https://github.com/smithlabcode/smithlab_cpp.git")
6053 (commit commit)))
6054 (file-name (string-append name "-" version "-checkout"))
6055 (sha256
6056 (base32
6057 "0d476lmj312xk77kr9fzrv7z1bv96yfyx0w7y62ycmnfbx32ll74"))))
6058 (build-system gnu-build-system)
6059 (arguments
6060 `(#:modules ((guix build gnu-build-system)
6061 (guix build utils)
6062 (srfi srfi-26))
6063 #:tests? #f ;no "check" target
6064 #:phases
6065 (modify-phases %standard-phases
6066 (add-after 'unpack 'use-samtools-headers
6067 (lambda _
6068 (substitute* '("SAM.cpp"
6069 "SAM.hpp")
6070 (("sam.h") "samtools/sam.h"))
6071 #t))
6072 (replace 'install
6073 (lambda* (#:key outputs #:allow-other-keys)
6074 (let* ((out (assoc-ref outputs "out"))
6075 (lib (string-append out "/lib"))
6076 (include (string-append out "/include/smithlab-cpp")))
6077 (mkdir-p lib)
6078 (mkdir-p include)
6079 (for-each (cut install-file <> lib)
6080 (find-files "." "\\.o$"))
6081 (for-each (cut install-file <> include)
6082 (find-files "." "\\.hpp$")))
6083 #t))
6084 (delete 'configure))))
6085 (inputs
6086 `(("samtools" ,samtools-0.1)
6087 ("zlib" ,zlib)))
6088 (home-page "https://github.com/smithlabcode/smithlab_cpp")
6089 (synopsis "C++ helper library for functions used in Smith lab projects")
6090 (description
6091 "Smithlab CPP is a C++ library that includes functions used in many of
6092 the Smith lab bioinformatics projects, such as a wrapper around Samtools data
6093 structures, classes for genomic regions, mapped sequencing reads, etc.")
6094 (license license:gpl3+))))
6095
6096 (define-public preseq
6097 (package
6098 (name "preseq")
6099 (version "2.0.3")
6100 (source (origin
6101 (method url-fetch)
6102 (uri (string-append "https://github.com/smithlabcode/preseq/"
6103 "releases/download/v" version
6104 "/preseq_v" version ".tar.bz2"))
6105 (sha256
6106 (base32 "149x9xmk1wy1gff85325yfzqc0qk4sgp1w6gbyj9cnji4x1dszbl"))
6107 (modules '((guix build utils)))
6108 (snippet '(begin
6109 ;; Remove bundled samtools.
6110 (delete-file-recursively "samtools")
6111 #t))))
6112 (build-system gnu-build-system)
6113 (arguments
6114 `(#:tests? #f ;no "check" target
6115 #:phases
6116 (modify-phases %standard-phases
6117 (delete 'configure))
6118 #:make-flags
6119 (list (string-append "PREFIX="
6120 (assoc-ref %outputs "out"))
6121 (string-append "LIBBAM="
6122 (assoc-ref %build-inputs "samtools")
6123 "/lib/libbam.a")
6124 (string-append "SMITHLAB_CPP="
6125 (assoc-ref %build-inputs "smithlab-cpp")
6126 "/lib")
6127 "PROGS=preseq"
6128 "INCLUDEDIRS=$(SMITHLAB_CPP)/../include/smithlab-cpp $(SAMTOOLS_DIR)")))
6129 (inputs
6130 `(("gsl" ,gsl)
6131 ("samtools" ,samtools-0.1)
6132 ("smithlab-cpp" ,smithlab-cpp)
6133 ("zlib" ,zlib)))
6134 (home-page "http://smithlabresearch.org/software/preseq/")
6135 (synopsis "Program for analyzing library complexity")
6136 (description
6137 "The preseq package is aimed at predicting and estimating the complexity
6138 of a genomic sequencing library, equivalent to predicting and estimating the
6139 number of redundant reads from a given sequencing depth and how many will be
6140 expected from additional sequencing using an initial sequencing experiment.
6141 The estimates can then be used to examine the utility of further sequencing,
6142 optimize the sequencing depth, or to screen multiple libraries to avoid low
6143 complexity samples.")
6144 (license license:gpl3+)))
6145
6146 (define-public python-screed
6147 (package
6148 (name "python-screed")
6149 (version "1.0")
6150 (source
6151 (origin
6152 (method url-fetch)
6153 (uri (pypi-uri "screed" version))
6154 (sha256
6155 (base32
6156 "148vcb7w2wr6a4w6vs2bsxanbqibxfk490zbcbg4m61s8669zdjx"))))
6157 (build-system python-build-system)
6158 (arguments
6159 '(#:phases
6160 (modify-phases %standard-phases
6161 ;; Tests must be run after installation, as the "screed" command does
6162 ;; not exist right after building.
6163 (delete 'check)
6164 (add-after 'install 'check
6165 (lambda* (#:key inputs outputs #:allow-other-keys)
6166 (let ((out (assoc-ref outputs "out")))
6167 (setenv "PYTHONPATH"
6168 (string-append out "/lib/python"
6169 (string-take (string-take-right
6170 (assoc-ref inputs "python")
6171 5) 3)
6172 "/site-packages:"
6173 (getenv "PYTHONPATH")))
6174 (setenv "PATH" (string-append out "/bin:" (getenv "PATH"))))
6175 (invoke "python" "setup.py" "test")
6176 #t)))))
6177 (native-inputs
6178 `(("python-pytest" ,python-pytest)
6179 ("python-pytest-cov" ,python-pytest-cov)
6180 ("python-pytest-runner" ,python-pytest-runner)))
6181 (inputs
6182 `(("python-bz2file" ,python-bz2file)))
6183 (home-page "https://github.com/dib-lab/screed/")
6184 (synopsis "Short read sequence database utilities")
6185 (description "Screed parses FASTA and FASTQ files and generates databases.
6186 Values such as sequence name, sequence description, sequence quality and the
6187 sequence itself can be retrieved from these databases.")
6188 (license license:bsd-3)))
6189
6190 (define-public python2-screed
6191 (package-with-python2 python-screed))
6192
6193 (define-public sra-tools
6194 (package
6195 (name "sra-tools")
6196 (version "2.10.6")
6197 (source
6198 (origin
6199 (method git-fetch)
6200 (uri (git-reference
6201 (url "https://github.com/ncbi/sra-tools.git")
6202 (commit version)))
6203 (file-name (git-file-name name version))
6204 (sha256
6205 (base32
6206 "1cr2mijkfs5sm35ffjs6861qsd1qkgnhnbavdv65zg5d655abbjf"))))
6207 (build-system gnu-build-system)
6208 (arguments
6209 `(#:parallel-build? #f ; not supported
6210 #:tests? #f ; no "check" target
6211 #:make-flags
6212 (list (string-append "DEFAULT_CRT="
6213 (assoc-ref %build-inputs "ncbi-vdb")
6214 "/kfg/certs.kfg")
6215 (string-append "DEFAULT_KFG="
6216 (assoc-ref %build-inputs "ncbi-vdb")
6217 "/kfg/default.kfg")
6218 (string-append "VDB_LIBDIR="
6219 (assoc-ref %build-inputs "ncbi-vdb")
6220 ,(if (string-prefix? "x86_64"
6221 (or (%current-target-system)
6222 (%current-system)))
6223 "/lib64"
6224 "/lib32")))
6225 #:phases
6226 (modify-phases %standard-phases
6227 (add-before 'configure 'set-perl-search-path
6228 (lambda _
6229 ;; Work around "dotless @INC" build failure.
6230 (setenv "PERL5LIB"
6231 (string-append (getcwd) "/setup:"
6232 (getenv "PERL5LIB")))
6233 #t))
6234 (replace 'configure
6235 (lambda* (#:key inputs outputs #:allow-other-keys)
6236 ;; The build system expects a directory containing the sources and
6237 ;; raw build output of ncbi-vdb, including files that are not
6238 ;; installed. Since we are building against an installed version of
6239 ;; ncbi-vdb, the following modifications are needed.
6240 (substitute* "setup/konfigure.perl"
6241 ;; Make the configure script look for the "ilib" directory of
6242 ;; "ncbi-vdb" without first checking for the existence of a
6243 ;; matching library in its "lib" directory.
6244 (("^ my \\$f = File::Spec->catdir\\(\\$libdir, \\$lib\\);")
6245 "my $f = File::Spec->catdir($ilibdir, $ilib);")
6246 ;; Look for interface libraries in ncbi-vdb's "ilib" directory.
6247 (("my \\$ilibdir = File::Spec->catdir\\(\\$builddir, 'ilib'\\);")
6248 "my $ilibdir = File::Spec->catdir($dir, 'ilib');"))
6249
6250 ;; Dynamic linking
6251 (substitute* "tools/copycat/Makefile"
6252 (("smagic-static") "lmagic"))
6253 (substitute* "tools/driver-tool/utf8proc/Makefile"
6254 (("CC\\?=gcc") "myCC=gcc")
6255 (("\\(CC\\)") "(myCC)"))
6256
6257 ;; The 'configure' script doesn't recognize things like
6258 ;; '--enable-fast-install'.
6259 (invoke "./configure"
6260 (string-append "--build-prefix=" (getcwd) "/build")
6261 (string-append "--prefix=" (assoc-ref outputs "out"))
6262 (string-append "--debug")
6263 (string-append "--with-fuse-prefix="
6264 (assoc-ref inputs "fuse"))
6265 (string-append "--with-magic-prefix="
6266 (assoc-ref inputs "libmagic"))
6267 ;; TODO: building with libxml2 fails with linker errors
6268 #;
6269 (string-append "--with-xml2-prefix="
6270 (assoc-ref inputs "libxml2"))
6271 (string-append "--with-ncbi-vdb-sources="
6272 (assoc-ref inputs "ncbi-vdb"))
6273 (string-append "--with-ncbi-vdb-build="
6274 (assoc-ref inputs "ncbi-vdb"))
6275 (string-append "--with-ngs-sdk-prefix="
6276 (assoc-ref inputs "ngs-sdk"))
6277 (string-append "--with-hdf5-prefix="
6278 (assoc-ref inputs "hdf5")))
6279 #t)))))
6280 (native-inputs `(("perl" ,perl)))
6281 (inputs
6282 `(("ngs-sdk" ,ngs-sdk)
6283 ("ncbi-vdb" ,ncbi-vdb)
6284 ("libmagic" ,file)
6285 ("fuse" ,fuse)
6286 ("hdf5" ,hdf5-1.10)
6287 ("zlib" ,zlib)
6288 ("python" ,python-wrapper)))
6289 (home-page
6290 "https://trace.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software")
6291 (synopsis "Tools and libraries for reading and writing sequencing data")
6292 (description
6293 "The SRA Toolkit from NCBI is a collection of tools and libraries for
6294 reading of sequencing files from the Sequence Read Archive (SRA) database and
6295 writing files into the .sra format.")
6296 (license license:public-domain)))
6297
6298 (define-public seqan
6299 (package
6300 (name "seqan")
6301 (version "2.4.0")
6302 (source (origin
6303 (method url-fetch)
6304 (uri (string-append "https://github.com/seqan/seqan/releases/"
6305 "download/seqan-v" version
6306 "/seqan-library-" version ".tar.xz"))
6307 (sha256
6308 (base32
6309 "19a1rlxx03qy1i1iriicly68w64yjxbv24g9gdywnfmq998v35yx"))))
6310 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
6311 ;; makes sense to split the outputs.
6312 (outputs '("out" "doc"))
6313 (build-system trivial-build-system)
6314 (arguments
6315 `(#:modules ((guix build utils))
6316 #:builder
6317 (begin
6318 (use-modules (guix build utils))
6319 (let ((tar (assoc-ref %build-inputs "tar"))
6320 (xz (assoc-ref %build-inputs "xz"))
6321 (out (assoc-ref %outputs "out"))
6322 (doc (assoc-ref %outputs "doc")))
6323 (setenv "PATH" (string-append tar "/bin:" xz "/bin"))
6324 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
6325 (chdir (string-append "seqan-library-" ,version))
6326 (copy-recursively "include" (string-append out "/include"))
6327 (copy-recursively "share" (string-append doc "/share"))
6328 #t))))
6329 (native-inputs
6330 `(("source" ,source)
6331 ("tar" ,tar)
6332 ("xz" ,xz)))
6333 (home-page "http://www.seqan.de")
6334 (synopsis "Library for nucleotide sequence analysis")
6335 (description
6336 "SeqAn is a C++ library of efficient algorithms and data structures for
6337 the analysis of sequences with the focus on biological data. It contains
6338 algorithms and data structures for string representation and their
6339 manipulation, online and indexed string search, efficient I/O of
6340 bioinformatics file formats, sequence alignment, and more.")
6341 (license license:bsd-3)))
6342
6343 (define-public seqan-1
6344 (package (inherit seqan)
6345 (name "seqan")
6346 (version "1.4.2")
6347 (source (origin
6348 (method url-fetch)
6349 (uri (string-append "http://packages.seqan.de/seqan-library/"
6350 "seqan-library-" version ".tar.bz2"))
6351 (sha256
6352 (base32
6353 "05s3wrrwn50f81aklfm65i4a749zag1vr8z03k21xm0pdxy47yvp"))))
6354 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
6355 ;; makes sense to split the outputs.
6356 (outputs '("out" "doc"))
6357 (build-system trivial-build-system)
6358 (arguments
6359 `(#:modules ((guix build utils))
6360 #:builder
6361 (begin
6362 (use-modules (guix build utils))
6363 (let ((tar (assoc-ref %build-inputs "tar"))
6364 (bzip (assoc-ref %build-inputs "bzip2"))
6365 (out (assoc-ref %outputs "out"))
6366 (doc (assoc-ref %outputs "doc")))
6367 (setenv "PATH" (string-append tar "/bin:" bzip "/bin"))
6368 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
6369 (chdir (string-append "seqan-library-" ,version))
6370 (copy-recursively "include" (string-append out "/include"))
6371 (copy-recursively "share" (string-append doc "/share"))
6372 #t))))
6373 (native-inputs
6374 `(("source" ,source)
6375 ("tar" ,tar)
6376 ("bzip2" ,bzip2)))))
6377
6378 (define-public seqmagick
6379 (package
6380 (name "seqmagick")
6381 (version "0.7.0")
6382 (source
6383 (origin
6384 (method url-fetch)
6385 (uri (pypi-uri "seqmagick" version))
6386 (sha256
6387 (base32
6388 "12bfyp8nqi0hd36rmj450aygafp01qy3hkbvlwn3bk39pyjjkgg5"))))
6389 (build-system python-build-system)
6390 (inputs
6391 `(("python-biopython" ,python-biopython)))
6392 (native-inputs
6393 `(("python-nose" ,python-nose)))
6394 (home-page "https://github.com/fhcrc/seqmagick")
6395 (synopsis "Tools for converting and modifying sequence files")
6396 (description
6397 "Bioinformaticians often have to convert sequence files between formats
6398 and do little manipulations on them, and it's not worth writing scripts for
6399 that. Seqmagick is a utility to expose the file format conversion in
6400 BioPython in a convenient way. Instead of having a big mess of scripts, there
6401 is one that takes arguments.")
6402 (license license:gpl3)))
6403
6404 (define-public seqtk
6405 (package
6406 (name "seqtk")
6407 (version "1.3")
6408 (source (origin
6409 (method git-fetch)
6410 (uri (git-reference
6411 (url "https://github.com/lh3/seqtk.git")
6412 (commit (string-append "v" version))))
6413 (file-name (git-file-name name version))
6414 (sha256
6415 (base32
6416 "1bfzlqa84b5s1qi22blmmw2s8xdyp9h9ydcq22pfjhh5gab3yz6l"))))
6417 (build-system gnu-build-system)
6418 (arguments
6419 `(#:phases
6420 (modify-phases %standard-phases
6421 (delete 'configure)
6422 (replace 'check
6423 ;; There are no tests, so we just run a sanity check.
6424 (lambda _ (invoke "./seqtk" "seq") #t))
6425 (replace 'install
6426 (lambda* (#:key outputs #:allow-other-keys)
6427 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6428 (install-file "seqtk" bin)
6429 #t))))))
6430 (inputs
6431 `(("zlib" ,zlib)))
6432 (home-page "https://github.com/lh3/seqtk")
6433 (synopsis "Toolkit for processing biological sequences in FASTA/Q format")
6434 (description
6435 "Seqtk is a fast and lightweight tool for processing sequences in the
6436 FASTA or FASTQ format. It parses both FASTA and FASTQ files which can be
6437 optionally compressed by gzip.")
6438 (license license:expat)))
6439
6440 (define-public snap-aligner
6441 (package
6442 (name "snap-aligner")
6443 (version "1.0beta.18")
6444 (source (origin
6445 (method git-fetch)
6446 (uri (git-reference
6447 (url "https://github.com/amplab/snap.git")
6448 (commit (string-append "v" version))))
6449 (file-name (git-file-name name version))
6450 (sha256
6451 (base32
6452 "01w3qq4wm07z73vky0cfwlmrbf50n3w722cxrlzxfi99mnb808d8"))))
6453 (build-system gnu-build-system)
6454 (arguments
6455 '(#:phases
6456 (modify-phases %standard-phases
6457 (delete 'configure)
6458 (replace 'check (lambda _ (invoke "./unit_tests") #t))
6459 (replace 'install
6460 (lambda* (#:key outputs #:allow-other-keys)
6461 (let* ((out (assoc-ref outputs "out"))
6462 (bin (string-append out "/bin")))
6463 (install-file "snap-aligner" bin)
6464 (install-file "SNAPCommand" bin)
6465 #t))))))
6466 (native-inputs
6467 `(("zlib" ,zlib)))
6468 (home-page "http://snap.cs.berkeley.edu/")
6469 (synopsis "Short read DNA sequence aligner")
6470 (description
6471 "SNAP is a fast and accurate aligner for short DNA reads. It is
6472 optimized for modern read lengths of 100 bases or higher, and takes advantage
6473 of these reads to align data quickly through a hash-based indexing scheme.")
6474 ;; 32-bit systems are not supported by the unpatched code.
6475 ;; Following the bug reports https://github.com/amplab/snap/issues/68 and
6476 ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812378 we see that
6477 ;; systems without a lot of memory cannot make good use of this program.
6478 (supported-systems '("x86_64-linux"))
6479 (license license:asl2.0)))
6480
6481 (define-public sortmerna
6482 (package
6483 (name "sortmerna")
6484 (version "2.1b")
6485 (source
6486 (origin
6487 (method git-fetch)
6488 (uri (git-reference
6489 (url "https://github.com/biocore/sortmerna.git")
6490 (commit version)))
6491 (file-name (git-file-name name version))
6492 (sha256
6493 (base32
6494 "0j3mbz4n25738yijmjbr5r4fyvkgm8v5vn3sshyfvmyqf5q9byqf"))))
6495 (build-system gnu-build-system)
6496 (outputs '("out" ;for binaries
6497 "db")) ;for sequence databases
6498 (arguments
6499 `(#:phases
6500 (modify-phases %standard-phases
6501 (replace 'install
6502 (lambda* (#:key outputs #:allow-other-keys)
6503 (let* ((out (assoc-ref outputs "out"))
6504 (bin (string-append out "/bin"))
6505 (db (assoc-ref outputs "db"))
6506 (share
6507 (string-append db "/share/sortmerna/rRNA_databases")))
6508 (install-file "sortmerna" bin)
6509 (install-file "indexdb_rna" bin)
6510 (for-each (lambda (file)
6511 (install-file file share))
6512 (find-files "rRNA_databases" ".*fasta"))
6513 #t))))))
6514 (inputs
6515 `(("zlib" ,zlib)))
6516 (home-page "https://bioinfo.lifl.fr/RNA/sortmerna/")
6517 (synopsis "Biological sequence analysis tool for NGS reads")
6518 (description
6519 "SortMeRNA is a biological sequence analysis tool for filtering, mapping
6520 and operational taxonomic unit (OTU) picking of next generation
6521 sequencing (NGS) reads. The core algorithm is based on approximate seeds and
6522 allows for fast and sensitive analyses of nucleotide sequences. The main
6523 application of SortMeRNA is filtering rRNA from metatranscriptomic data.")
6524 ;; The source includes x86 specific code
6525 (supported-systems '("x86_64-linux" "i686-linux"))
6526 (license license:lgpl3)))
6527
6528 (define-public star
6529 (package
6530 (name "star")
6531 (version "2.7.3a")
6532 (source (origin
6533 (method git-fetch)
6534 (uri (git-reference
6535 (url "https://github.com/alexdobin/STAR.git")
6536 (commit version)))
6537 (file-name (git-file-name name version))
6538 (sha256
6539 (base32
6540 "1hgiqw5qhs0pc1xazzihcfd92na02xyq2kb469z04y1v51kpvvjq"))
6541 (modules '((guix build utils)))
6542 (snippet
6543 '(begin
6544 (substitute* "source/Makefile"
6545 (("/bin/rm") "rm"))
6546 ;; Remove pre-built binaries and bundled htslib sources.
6547 (delete-file-recursively "bin/MacOSX_x86_64")
6548 (delete-file-recursively "bin/Linux_x86_64")
6549 (delete-file-recursively "bin/Linux_x86_64_static")
6550 (delete-file-recursively "source/htslib")
6551 #t))))
6552 (build-system gnu-build-system)
6553 (arguments
6554 '(#:tests? #f ;no check target
6555 #:make-flags '("STAR")
6556 #:phases
6557 (modify-phases %standard-phases
6558 (add-after 'unpack 'enter-source-dir
6559 (lambda _ (chdir "source") #t))
6560 (add-after 'enter-source-dir 'make-reproducible
6561 (lambda _
6562 (substitute* "Makefile"
6563 (("(COMPILATION_TIME_PLACE=\")(.*)(\")" _ pre mid post)
6564 (string-append pre "Built with Guix" post)))
6565 #t))
6566 ;; See https://github.com/alexdobin/STAR/pull/562
6567 (add-after 'enter-source-dir 'add-missing-header
6568 (lambda _
6569 (substitute* "SoloReadFeature_inputRecords.cpp"
6570 (("#include \"binarySearch2.h\"" h)
6571 (string-append h "\n#include <math.h>")))
6572 #t))
6573 (add-after 'enter-source-dir 'do-not-use-bundled-htslib
6574 (lambda _
6575 (substitute* "Makefile"
6576 (("(Depend.list: \\$\\(SOURCES\\) parametersDefault\\.xxd) htslib"
6577 _ prefix) prefix))
6578 (substitute* '("BAMfunctions.cpp"
6579 "signalFromBAM.h"
6580 "bam_cat.h"
6581 "bam_cat.c"
6582 "STAR.cpp"
6583 "bamRemoveDuplicates.cpp")
6584 (("#include \"htslib/([^\"]+\\.h)\"" _ header)
6585 (string-append "#include <" header ">")))
6586 (substitute* "IncludeDefine.h"
6587 (("\"htslib/(htslib/[^\"]+.h)\"" _ header)
6588 (string-append "<" header ">")))
6589 #t))
6590 (replace 'install
6591 (lambda* (#:key outputs #:allow-other-keys)
6592 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6593 (install-file "STAR" bin))
6594 #t))
6595 (delete 'configure))))
6596 (native-inputs
6597 `(("xxd" ,xxd)))
6598 (inputs
6599 `(("htslib" ,htslib)
6600 ("zlib" ,zlib)))
6601 (home-page "https://github.com/alexdobin/STAR")
6602 (synopsis "Universal RNA-seq aligner")
6603 (description
6604 "The Spliced Transcripts Alignment to a Reference (STAR) software is
6605 based on a previously undescribed RNA-seq alignment algorithm that uses
6606 sequential maximum mappable seed search in uncompressed suffix arrays followed
6607 by seed clustering and stitching procedure. In addition to unbiased de novo
6608 detection of canonical junctions, STAR can discover non-canonical splices and
6609 chimeric (fusion) transcripts, and is also capable of mapping full-length RNA
6610 sequences.")
6611 ;; Only 64-bit systems are supported according to the README.
6612 (supported-systems '("x86_64-linux" "mips64el-linux"))
6613 ;; STAR is licensed under GPLv3 or later; htslib is MIT-licensed.
6614 (license license:gpl3+)))
6615
6616 (define-public starlong
6617 (package (inherit star)
6618 (name "starlong")
6619 (arguments
6620 (substitute-keyword-arguments (package-arguments star)
6621 ((#:make-flags flags)
6622 `(list "STARlong"))
6623 ((#:phases phases)
6624 `(modify-phases ,phases
6625 ;; Allow extra long sequence reads.
6626 (add-after 'unpack 'make-extra-long
6627 (lambda _
6628 (substitute* "source/IncludeDefine.h"
6629 (("(#define DEF_readNameLengthMax ).*" _ match)
6630 (string-append match "900000\n")))
6631 #t))
6632 (replace 'install
6633 (lambda* (#:key outputs #:allow-other-keys)
6634 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6635 (install-file "STARlong" bin))
6636 #t))))))))
6637
6638 (define-public subread
6639 (package
6640 (name "subread")
6641 (version "1.6.0")
6642 (source (origin
6643 (method url-fetch)
6644 (uri (string-append "mirror://sourceforge/subread/subread-"
6645 version "/subread-" version "-source.tar.gz"))
6646 (sha256
6647 (base32
6648 "0ah0n4jx6ksk2m2j7xk385x2qzmk1y4rfc6a4mfrdqrlq721w99i"))))
6649 (build-system gnu-build-system)
6650 (arguments
6651 `(#:tests? #f ;no "check" target
6652 ;; The CC and CCFLAGS variables are set to contain a lot of x86_64
6653 ;; optimizations by default, so we override these flags such that x86_64
6654 ;; flags are only added when the build target is an x86_64 system.
6655 #:make-flags
6656 (list (let ((system ,(or (%current-target-system)
6657 (%current-system)))
6658 (flags '("-ggdb" "-fomit-frame-pointer"
6659 "-ffast-math" "-funroll-loops"
6660 "-fmessage-length=0"
6661 "-O9" "-Wall" "-DMAKE_FOR_EXON"
6662 "-DMAKE_STANDALONE"
6663 "-DSUBREAD_VERSION=\\\"${SUBREAD_VERSION}\\\""))
6664 (flags64 '("-mmmx" "-msse" "-msse2" "-msse3")))
6665 (if (string-prefix? "x86_64" system)
6666 (string-append "CCFLAGS=" (string-join (append flags flags64)))
6667 (string-append "CCFLAGS=" (string-join flags))))
6668 "-f" "Makefile.Linux"
6669 "CC=gcc ${CCFLAGS}")
6670 #:phases
6671 (modify-phases %standard-phases
6672 (add-after 'unpack 'enter-dir
6673 (lambda _ (chdir "src") #t))
6674 (replace 'install
6675 (lambda* (#:key outputs #:allow-other-keys)
6676 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6677 (mkdir-p bin)
6678 (copy-recursively "../bin" bin))
6679 #t))
6680 ;; no "configure" script
6681 (delete 'configure))))
6682 (inputs `(("zlib" ,zlib)))
6683 (home-page "http://bioinf.wehi.edu.au/subread-package/")
6684 (synopsis "Tool kit for processing next-gen sequencing data")
6685 (description
6686 "The subread package contains the following tools: subread aligner, a
6687 general-purpose read aligner; subjunc aligner: detecting exon-exon junctions
6688 and mapping RNA-seq reads; featureCounts: counting mapped reads for genomic
6689 features; exactSNP: a SNP caller that discovers SNPs by testing signals
6690 against local background noises.")
6691 (license license:gpl3+)))
6692
6693 (define-public stringtie
6694 (package
6695 (name "stringtie")
6696 (version "1.2.1")
6697 (source (origin
6698 (method url-fetch)
6699 (uri (string-append "http://ccb.jhu.edu/software/stringtie/dl/"
6700 "stringtie-" version ".tar.gz"))
6701 (sha256
6702 (base32
6703 "1cqllsc1maq4kh92isi8yadgzbmnf042hlnalpk3y59aph1z3bfz"))
6704 (modules '((guix build utils)))
6705 (snippet
6706 '(begin
6707 (delete-file-recursively "samtools-0.1.18")
6708 #t))))
6709 (build-system gnu-build-system)
6710 (arguments
6711 `(#:tests? #f ;no test suite
6712 #:phases
6713 (modify-phases %standard-phases
6714 ;; no configure script
6715 (delete 'configure)
6716 (add-before 'build 'use-system-samtools
6717 (lambda _
6718 (substitute* "Makefile"
6719 (("stringtie: \\$\\{BAM\\}/libbam\\.a")
6720 "stringtie: "))
6721 (substitute* '("gclib/GBam.h"
6722 "gclib/GBam.cpp")
6723 (("#include \"(bam|sam|kstring).h\"" _ header)
6724 (string-append "#include <samtools/" header ".h>")))
6725 #t))
6726 (add-after 'unpack 'remove-duplicate-typedef
6727 (lambda _
6728 ;; This typedef conflicts with the typedef in
6729 ;; glibc-2.25/include/bits/types.h
6730 (substitute* "gclib/GThreads.h"
6731 (("typedef long long __intmax_t;") ""))
6732 #t))
6733 (replace 'install
6734 (lambda* (#:key outputs #:allow-other-keys)
6735 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6736 (install-file "stringtie" bin)
6737 #t))))))
6738 (inputs
6739 `(("samtools" ,samtools-0.1)
6740 ("zlib" ,zlib)))
6741 (home-page "http://ccb.jhu.edu/software/stringtie/")
6742 (synopsis "Transcript assembly and quantification for RNA-Seq data")
6743 (description
6744 "StringTie is a fast and efficient assembler of RNA-Seq sequence
6745 alignments into potential transcripts. It uses a novel network flow algorithm
6746 as well as an optional de novo assembly step to assemble and quantitate
6747 full-length transcripts representing multiple splice variants for each gene
6748 locus. Its input can include not only the alignments of raw reads used by
6749 other transcript assemblers, but also alignments of longer sequences that have
6750 been assembled from those reads. To identify differentially expressed genes
6751 between experiments, StringTie's output can be processed either by the
6752 Cuffdiff or Ballgown programs.")
6753 (license license:artistic2.0)))
6754
6755 (define-public taxtastic
6756 (package
6757 (name "taxtastic")
6758 (version "0.8.11")
6759 (source (origin
6760 ;; The Pypi version does not include tests.
6761 (method git-fetch)
6762 (uri (git-reference
6763 (url "https://github.com/fhcrc/taxtastic.git")
6764 (commit (string-append "v" version))))
6765 (file-name (git-file-name name version))
6766 (sha256
6767 (base32
6768 "1sv8mkg64jn7zdwf1jj71c16686yrwxk0apb1l8sjszy9p166g0p"))))
6769 (build-system python-build-system)
6770 (arguments
6771 `(#:phases
6772 (modify-phases %standard-phases
6773 (add-after 'unpack 'prepare-directory
6774 (lambda _
6775 ;; The git checkout must be writable for tests.
6776 (for-each make-file-writable (find-files "."))
6777 ;; This test fails, but the error is not caught by the test
6778 ;; framework, so the tests fail...
6779 (substitute* "tests/test_taxit.py"
6780 (("self.cmd_fails\\(''\\)")
6781 "self.cmd_fails('nothing')"))
6782 ;; This version file is expected to be created with git describe.
6783 (mkdir-p "taxtastic/data")
6784 (with-output-to-file "taxtastic/data/ver"
6785 (lambda () (display ,version)))
6786 #t))
6787 (add-after 'unpack 'python37-compatibility
6788 (lambda _
6789 (substitute* "taxtastic/utils.py"
6790 (("import csv") "import csv, errno")
6791 (("os.errno") "errno"))
6792 #t))
6793 (replace 'check
6794 ;; Note, this fails to run with "-v" as it tries to write to a
6795 ;; closed output stream.
6796 (lambda _ (invoke "python" "-m" "unittest") #t)))))
6797 (propagated-inputs
6798 `(("python-sqlalchemy" ,python-sqlalchemy)
6799 ("python-decorator" ,python-decorator)
6800 ("python-biopython" ,python-biopython)
6801 ("python-pandas" ,python-pandas)
6802 ("python-psycopg2" ,python-psycopg2)
6803 ("python-fastalite" ,python-fastalite)
6804 ("python-pyyaml" ,python-pyyaml)
6805 ("python-six" ,python-six)
6806 ("python-jinja2" ,python-jinja2)
6807 ("python-dendropy" ,python-dendropy)))
6808 (home-page "https://github.com/fhcrc/taxtastic")
6809 (synopsis "Tools for taxonomic naming and annotation")
6810 (description
6811 "Taxtastic is software written in python used to build and maintain
6812 reference packages i.e. collections of reference trees, reference alignments,
6813 profiles, and associated taxonomic information.")
6814 (license license:gpl3+)))
6815
6816 (define-public vcftools
6817 (package
6818 (name "vcftools")
6819 (version "0.1.16")
6820 (source (origin
6821 (method url-fetch)
6822 (uri (string-append
6823 "https://github.com/vcftools/vcftools/releases/download/v"
6824 version "/vcftools-" version ".tar.gz"))
6825 (sha256
6826 (base32
6827 "1qqlx7flfv7axrjwkaz6njkscsl1d0jw98ns8d8bh1n1hd1pgz6v"))))
6828 (build-system gnu-build-system)
6829 (arguments
6830 `(#:tests? #f ; no "check" target
6831 #:make-flags (list
6832 "CFLAGS=-O2" ; override "-m64" flag
6833 (string-append "PREFIX=" (assoc-ref %outputs "out"))
6834 (string-append "MANDIR=" (assoc-ref %outputs "out")
6835 "/share/man/man1"))))
6836 (native-inputs
6837 `(("pkg-config" ,pkg-config)))
6838 (inputs
6839 `(("perl" ,perl)
6840 ("zlib" ,zlib)))
6841 (home-page "https://vcftools.github.io/")
6842 (synopsis "Tools for working with VCF files")
6843 (description
6844 "VCFtools is a program package designed for working with VCF files, such
6845 as those generated by the 1000 Genomes Project. The aim of VCFtools is to
6846 provide easily accessible methods for working with complex genetic variation
6847 data in the form of VCF files.")
6848 ;; The license is declared as LGPLv3 in the README and
6849 ;; at https://vcftools.github.io/license.html
6850 (license license:lgpl3)))
6851
6852 (define-public infernal
6853 (package
6854 (name "infernal")
6855 (version "1.1.3")
6856 (source (origin
6857 (method url-fetch)
6858 (uri (string-append "http://eddylab.org/software/infernal/"
6859 "infernal-" version ".tar.gz"))
6860 (sha256
6861 (base32
6862 "0pm8bm3s6nfa0av4x6m6h27lsg12b3lz3jm0fyh1mc77l2isd61v"))))
6863 (build-system gnu-build-system)
6864 (native-inputs
6865 `(("perl" ,perl)
6866 ("python" ,python))) ; for tests
6867 (home-page "http://eddylab.org/infernal/")
6868 (synopsis "Inference of RNA alignments")
6869 (description "Infernal (\"INFERence of RNA ALignment\") is a tool for
6870 searching DNA sequence databases for RNA structure and sequence similarities.
6871 It is an implementation of a special case of profile stochastic context-free
6872 grammars called @dfn{covariance models} (CMs). A CM is like a sequence
6873 profile, but it scores a combination of sequence consensus and RNA secondary
6874 structure consensus, so in many cases, it is more capable of identifying RNA
6875 homologs that conserve their secondary structure more than their primary
6876 sequence.")
6877 ;; Infernal 1.1.3 requires VMX or SSE capability for parallel instructions.
6878 (supported-systems '("i686-linux" "x86_64-linux"))
6879 (license license:bsd-3)))
6880
6881 (define-public r-scde
6882 (package
6883 (name "r-scde")
6884 (version "1.99.2")
6885 (source (origin
6886 (method git-fetch)
6887 (uri (git-reference
6888 (url "https://github.com/hms-dbmi/scde.git")
6889 (commit version)))
6890 (file-name (git-file-name name version))
6891 (sha256
6892 (base32
6893 "10na2gyka24mszdxf92wz9h2c13hdf1ww30c68gfsw53lvvhhhxb"))))
6894 (build-system r-build-system)
6895 (propagated-inputs
6896 `(("r-rcpp" ,r-rcpp)
6897 ("r-rcpparmadillo" ,r-rcpparmadillo)
6898 ("r-mgcv" ,r-mgcv)
6899 ("r-rook" ,r-rook)
6900 ("r-rjson" ,r-rjson)
6901 ("r-cairo" ,r-cairo)
6902 ("r-rcolorbrewer" ,r-rcolorbrewer)
6903 ("r-edger" ,r-edger)
6904 ("r-quantreg" ,r-quantreg)
6905 ("r-nnet" ,r-nnet)
6906 ("r-rmtstat" ,r-rmtstat)
6907 ("r-extremes" ,r-extremes)
6908 ("r-pcamethods" ,r-pcamethods)
6909 ("r-biocparallel" ,r-biocparallel)
6910 ("r-flexmix" ,r-flexmix)))
6911 (home-page "https://hms-dbmi.github.io/scde/")
6912 (synopsis "R package for analyzing single-cell RNA-seq data")
6913 (description "The SCDE package implements a set of statistical methods for
6914 analyzing single-cell RNA-seq data. SCDE fits individual error models for
6915 single-cell RNA-seq measurements. These models can then be used for
6916 assessment of differential expression between groups of cells, as well as
6917 other types of analysis. The SCDE package also contains the pagoda framework
6918 which applies pathway and gene set overdispersion analysis to identify aspects
6919 of transcriptional heterogeneity among single cells.")
6920 ;; See https://github.com/hms-dbmi/scde/issues/38
6921 (license license:gpl2)))
6922
6923 (define-public r-centipede
6924 (package
6925 (name "r-centipede")
6926 (version "1.2")
6927 (source (origin
6928 (method url-fetch)
6929 (uri (string-append "http://download.r-forge.r-project.org/"
6930 "src/contrib/CENTIPEDE_" version ".tar.gz"))
6931 (sha256
6932 (base32
6933 "1hsx6qgwr0i67fhy9257zj7s0ppncph2hjgbia5nn6nfmj0ax6l9"))))
6934 (build-system r-build-system)
6935 (home-page "http://centipede.uchicago.edu/")
6936 (synopsis "Predict transcription factor binding sites")
6937 (description
6938 "CENTIPEDE applies a hierarchical Bayesian mixture model to infer regions
6939 of the genome that are bound by particular transcription factors. It starts
6940 by identifying a set of candidate binding sites, and then aims to classify the
6941 sites according to whether each site is bound or not bound by a transcription
6942 factor. CENTIPEDE is an unsupervised learning algorithm that discriminates
6943 between two different types of motif instances using as much relevant
6944 information as possible.")
6945 (license (list license:gpl2+ license:gpl3+))))
6946
6947 (define-public r-genefilter
6948 (package
6949 (name "r-genefilter")
6950 (version "1.70.0")
6951 (source
6952 (origin
6953 (method url-fetch)
6954 (uri (bioconductor-uri "genefilter" version))
6955 (sha256
6956 (base32
6957 "1sbbrnq6p90fri0ik6aq2zw26kasw63nyiy7xkzrj6vgyq7x258g"))))
6958 (build-system r-build-system)
6959 (native-inputs
6960 `(("gfortran" ,gfortran)
6961 ("r-knitr" ,r-knitr)))
6962 (propagated-inputs
6963 `(("r-annotate" ,r-annotate)
6964 ("r-annotationdbi" ,r-annotationdbi)
6965 ("r-biobase" ,r-biobase)
6966 ("r-biocgenerics" ,r-biocgenerics)
6967 ("r-survival" ,r-survival)))
6968 (home-page "https://bioconductor.org/packages/genefilter")
6969 (synopsis "Filter genes from high-throughput experiments")
6970 (description
6971 "This package provides basic functions for filtering genes from
6972 high-throughput sequencing experiments.")
6973 (license license:artistic2.0)))
6974
6975 (define-public r-deseq2
6976 (package
6977 (name "r-deseq2")
6978 (version "1.28.1")
6979 (source
6980 (origin
6981 (method url-fetch)
6982 (uri (bioconductor-uri "DESeq2" version))
6983 (sha256
6984 (base32
6985 "0xh12c2skr0bbv893p05gvbismkcnqw8zwh7yz4wmycgajfzg2pp"))))
6986 (properties `((upstream-name . "DESeq2")))
6987 (build-system r-build-system)
6988 (propagated-inputs
6989 `(("r-biobase" ,r-biobase)
6990 ("r-biocgenerics" ,r-biocgenerics)
6991 ("r-biocparallel" ,r-biocparallel)
6992 ("r-genefilter" ,r-genefilter)
6993 ("r-geneplotter" ,r-geneplotter)
6994 ("r-genomicranges" ,r-genomicranges)
6995 ("r-ggplot2" ,r-ggplot2)
6996 ("r-iranges" ,r-iranges)
6997 ("r-locfit" ,r-locfit)
6998 ("r-rcpp" ,r-rcpp)
6999 ("r-rcpparmadillo" ,r-rcpparmadillo)
7000 ("r-s4vectors" ,r-s4vectors)
7001 ("r-summarizedexperiment" ,r-summarizedexperiment)))
7002 (native-inputs
7003 `(("r-knitr" ,r-knitr)))
7004 (home-page "https://bioconductor.org/packages/DESeq2")
7005 (synopsis "Differential gene expression analysis")
7006 (description
7007 "This package provides functions to estimate variance-mean dependence in
7008 count data from high-throughput nucleotide sequencing assays and test for
7009 differential expression based on a model using the negative binomial
7010 distribution.")
7011 (license license:lgpl3+)))
7012
7013 (define-public r-dexseq
7014 (package
7015 (name "r-dexseq")
7016 (version "1.34.0")
7017 (source
7018 (origin
7019 (method url-fetch)
7020 (uri (bioconductor-uri "DEXSeq" version))
7021 (sha256
7022 (base32
7023 "1inyxb89hd5bn0sl7a9qbv9d1g40z4v1s9qwxkcsx5c79fl04n1h"))))
7024 (properties `((upstream-name . "DEXSeq")))
7025 (build-system r-build-system)
7026 (propagated-inputs
7027 `(("r-annotationdbi" ,r-annotationdbi)
7028 ("r-biobase" ,r-biobase)
7029 ("r-biocgenerics" ,r-biocgenerics)
7030 ("r-biocparallel" ,r-biocparallel)
7031 ("r-biomart" ,r-biomart)
7032 ("r-deseq2" ,r-deseq2)
7033 ("r-genefilter" ,r-genefilter)
7034 ("r-geneplotter" ,r-geneplotter)
7035 ("r-genomicranges" ,r-genomicranges)
7036 ("r-hwriter" ,r-hwriter)
7037 ("r-iranges" ,r-iranges)
7038 ("r-rcolorbrewer" ,r-rcolorbrewer)
7039 ("r-rsamtools" ,r-rsamtools)
7040 ("r-s4vectors" ,r-s4vectors)
7041 ("r-statmod" ,r-statmod)
7042 ("r-stringr" ,r-stringr)
7043 ("r-summarizedexperiment" ,r-summarizedexperiment)))
7044 (native-inputs
7045 `(("r-knitr" ,r-knitr)))
7046 (home-page "https://bioconductor.org/packages/DEXSeq")
7047 (synopsis "Inference of differential exon usage in RNA-Seq")
7048 (description
7049 "This package is focused on finding differential exon usage using RNA-seq
7050 exon counts between samples with different experimental designs. It provides
7051 functions that allows the user to make the necessary statistical tests based
7052 on a model that uses the negative binomial distribution to estimate the
7053 variance between biological replicates and generalized linear models for
7054 testing. The package also provides functions for the visualization and
7055 exploration of the results.")
7056 (license license:gpl3+)))
7057
7058 (define-public r-annotationforge
7059 (package
7060 (name "r-annotationforge")
7061 (version "1.30.1")
7062 (source
7063 (origin
7064 (method url-fetch)
7065 (uri (bioconductor-uri "AnnotationForge" version))
7066 (sha256
7067 (base32
7068 "1a2155jxbwc6qr3dcyvp850grhdr7czc7bs3s87ff4sgdl0jp3jw"))))
7069 (properties
7070 `((upstream-name . "AnnotationForge")))
7071 (build-system r-build-system)
7072 (propagated-inputs
7073 `(("r-annotationdbi" ,r-annotationdbi)
7074 ("r-biobase" ,r-biobase)
7075 ("r-biocgenerics" ,r-biocgenerics)
7076 ("r-dbi" ,r-dbi)
7077 ("r-rcurl" ,r-rcurl)
7078 ("r-rsqlite" ,r-rsqlite)
7079 ("r-s4vectors" ,r-s4vectors)
7080 ("r-xml" ,r-xml)))
7081 (native-inputs
7082 `(("r-knitr" ,r-knitr)))
7083 (home-page "https://bioconductor.org/packages/AnnotationForge")
7084 (synopsis "Code for building annotation database packages")
7085 (description
7086 "This package provides code for generating Annotation packages and their
7087 databases. Packages produced are intended to be used with AnnotationDbi.")
7088 (license license:artistic2.0)))
7089
7090 (define-public r-rbgl
7091 (package
7092 (name "r-rbgl")
7093 (version "1.64.0")
7094 (source
7095 (origin
7096 (method url-fetch)
7097 (uri (bioconductor-uri "RBGL" version))
7098 (sha256
7099 (base32
7100 "079599a6xn2i7snfn2vgshkw0c00rrfhj44pvi03ap8id29bkayy"))))
7101 (properties `((upstream-name . "RBGL")))
7102 (build-system r-build-system)
7103 (propagated-inputs
7104 `(("r-bh" ,r-bh)
7105 ("r-graph" ,r-graph)))
7106 (home-page "https://www.bioconductor.org/packages/RBGL")
7107 (synopsis "Interface to the Boost graph library")
7108 (description
7109 "This package provides a fairly extensive and comprehensive interface to
7110 the graph algorithms contained in the Boost library.")
7111 (license license:artistic2.0)))
7112
7113 (define-public r-gseabase
7114 (package
7115 (name "r-gseabase")
7116 (version "1.50.1")
7117 (source
7118 (origin
7119 (method url-fetch)
7120 (uri (bioconductor-uri "GSEABase" version))
7121 (sha256
7122 (base32
7123 "1k4faj53cwvqijad8cf7fcghzxcv9shlbpl8n73bsncc8k192y2j"))))
7124 (properties `((upstream-name . "GSEABase")))
7125 (build-system r-build-system)
7126 (propagated-inputs
7127 `(("r-annotate" ,r-annotate)
7128 ("r-annotationdbi" ,r-annotationdbi)
7129 ("r-biobase" ,r-biobase)
7130 ("r-biocgenerics" ,r-biocgenerics)
7131 ("r-graph" ,r-graph)
7132 ("r-xml" ,r-xml)))
7133 (native-inputs
7134 `(("r-knitr" ,r-knitr)))
7135 (home-page "https://bioconductor.org/packages/GSEABase")
7136 (synopsis "Gene set enrichment data structures and methods")
7137 (description
7138 "This package provides classes and methods to support @dfn{Gene Set
7139 Enrichment Analysis} (GSEA).")
7140 (license license:artistic2.0)))
7141
7142 (define-public r-category
7143 (package
7144 (name "r-category")
7145 (version "2.54.0")
7146 (source
7147 (origin
7148 (method url-fetch)
7149 (uri (bioconductor-uri "Category" version))
7150 (sha256
7151 (base32
7152 "1grspdzk5a4vidnxwcd1jmy1vcn494aydsp3vydx235yv7iqac1b"))))
7153 (properties `((upstream-name . "Category")))
7154 (build-system r-build-system)
7155 (propagated-inputs
7156 `(("r-annotate" ,r-annotate)
7157 ("r-annotationdbi" ,r-annotationdbi)
7158 ("r-biobase" ,r-biobase)
7159 ("r-biocgenerics" ,r-biocgenerics)
7160 ("r-genefilter" ,r-genefilter)
7161 ("r-graph" ,r-graph)
7162 ("r-gseabase" ,r-gseabase)
7163 ("r-matrix" ,r-matrix)
7164 ("r-rbgl" ,r-rbgl)
7165 ("r-dbi" ,r-dbi)))
7166 (home-page "https://bioconductor.org/packages/Category")
7167 (synopsis "Category analysis")
7168 (description
7169 "This package provides a collection of tools for performing category
7170 analysis.")
7171 (license license:artistic2.0)))
7172
7173 (define-public r-gostats
7174 (package
7175 (name "r-gostats")
7176 (version "2.54.0")
7177 (source
7178 (origin
7179 (method url-fetch)
7180 (uri (bioconductor-uri "GOstats" version))
7181 (sha256
7182 (base32
7183 "00q39cyv4l28r6s9gjnd0qhl7h80vmwp4lpmchisqzj44xzyics9"))))
7184 (properties `((upstream-name . "GOstats")))
7185 (build-system r-build-system)
7186 (propagated-inputs
7187 `(("r-annotate" ,r-annotate)
7188 ("r-annotationdbi" ,r-annotationdbi)
7189 ("r-annotationforge" ,r-annotationforge)
7190 ("r-biobase" ,r-biobase)
7191 ("r-category" ,r-category)
7192 ("r-go-db" ,r-go-db)
7193 ("r-graph" ,r-graph)
7194 ("r-rgraphviz" ,r-rgraphviz)
7195 ("r-rbgl" ,r-rbgl)))
7196 (home-page "https://bioconductor.org/packages/GOstats")
7197 (synopsis "Tools for manipulating GO and microarrays")
7198 (description
7199 "This package provides a set of tools for interacting with GO and
7200 microarray data. A variety of basic manipulation tools for graphs, hypothesis
7201 testing and other simple calculations.")
7202 (license license:artistic2.0)))
7203
7204 (define-public r-shortread
7205 (package
7206 (name "r-shortread")
7207 (version "1.46.0")
7208 (source
7209 (origin
7210 (method url-fetch)
7211 (uri (bioconductor-uri "ShortRead" version))
7212 (sha256
7213 (base32
7214 "0l4kdln69y6yhln0xiv2jmpxg05fjcglln406p43a2bqvk2lr03d"))))
7215 (properties `((upstream-name . "ShortRead")))
7216 (build-system r-build-system)
7217 (inputs
7218 `(("zlib" ,zlib)))
7219 (propagated-inputs
7220 `(("r-biobase" ,r-biobase)
7221 ("r-biocgenerics" ,r-biocgenerics)
7222 ("r-biocparallel" ,r-biocparallel)
7223 ("r-biostrings" ,r-biostrings)
7224 ("r-genomeinfodb" ,r-genomeinfodb)
7225 ("r-genomicalignments" ,r-genomicalignments)
7226 ("r-genomicranges" ,r-genomicranges)
7227 ("r-hwriter" ,r-hwriter)
7228 ("r-iranges" ,r-iranges)
7229 ("r-lattice" ,r-lattice)
7230 ("r-latticeextra" ,r-latticeextra)
7231 ("r-rsamtools" ,r-rsamtools)
7232 ("r-s4vectors" ,r-s4vectors)
7233 ("r-xvector" ,r-xvector)
7234 ("r-zlibbioc" ,r-zlibbioc)))
7235 (home-page "https://bioconductor.org/packages/ShortRead")
7236 (synopsis "FASTQ input and manipulation tools")
7237 (description
7238 "This package implements sampling, iteration, and input of FASTQ files.
7239 It includes functions for filtering and trimming reads, and for generating a
7240 quality assessment report. Data are represented as
7241 @code{DNAStringSet}-derived objects, and easily manipulated for a diversity of
7242 purposes. The package also contains legacy support for early single-end,
7243 ungapped alignment formats.")
7244 (license license:artistic2.0)))
7245
7246 (define-public r-systempiper
7247 (package
7248 (name "r-systempiper")
7249 (version "1.22.0")
7250 (source
7251 (origin
7252 (method url-fetch)
7253 (uri (bioconductor-uri "systemPipeR" version))
7254 (sha256
7255 (base32
7256 "01ilhlrvy28jfdyxjria4024yryj5zgympgqznw17g3y3az78kk2"))))
7257 (properties `((upstream-name . "systemPipeR")))
7258 (build-system r-build-system)
7259 (propagated-inputs
7260 `(("r-annotate" ,r-annotate)
7261 ("r-assertthat" ,r-assertthat)
7262 ("r-batchtools" ,r-batchtools)
7263 ("r-biostrings" ,r-biostrings)
7264 ("r-deseq2" ,r-deseq2)
7265 ("r-dot" ,r-dot)
7266 ("r-edger" ,r-edger)
7267 ("r-genomicfeatures" ,r-genomicfeatures)
7268 ("r-genomicranges" ,r-genomicranges)
7269 ("r-ggplot2" ,r-ggplot2)
7270 ("r-go-db" ,r-go-db)
7271 ("r-gostats" ,r-gostats)
7272 ("r-limma" ,r-limma)
7273 ("r-magrittr" ,r-magrittr)
7274 ("r-pheatmap" ,r-pheatmap)
7275 ("r-rjson" ,r-rjson)
7276 ("r-rsamtools" ,r-rsamtools)
7277 ("r-rsvg" ,r-rsvg)
7278 ("r-shortread" ,r-shortread)
7279 ("r-stringr" ,r-stringr)
7280 ("r-summarizedexperiment" ,r-summarizedexperiment)
7281 ("r-yaml" ,r-yaml)
7282 ("r-variantannotation" ,r-variantannotation)))
7283 (native-inputs
7284 `(("r-knitr" ,r-knitr)))
7285 (home-page "https://github.com/tgirke/systemPipeR")
7286 (synopsis "Next generation sequencing workflow and reporting environment")
7287 (description
7288 "This R package provides tools for building and running automated
7289 end-to-end analysis workflows for a wide range of @dfn{next generation
7290 sequence} (NGS) applications such as RNA-Seq, ChIP-Seq, VAR-Seq and Ribo-Seq.
7291 Important features include a uniform workflow interface across different NGS
7292 applications, automated report generation, and support for running both R and
7293 command-line software, such as NGS aligners or peak/variant callers, on local
7294 computers or compute clusters. Efficient handling of complex sample sets and
7295 experimental designs is facilitated by a consistently implemented sample
7296 annotation infrastructure.")
7297 (license license:artistic2.0)))
7298
7299 (define-public r-grohmm
7300 (package
7301 (name "r-grohmm")
7302 (version "1.22.0")
7303 (source
7304 (origin
7305 (method url-fetch)
7306 (uri (bioconductor-uri "groHMM" version))
7307 (sha256
7308 (base32
7309 "04z9qq1xwdsaxbqhyld37w0ybvzly9pc1hcyrnwdbyjwd7n1fncb"))))
7310 (properties `((upstream-name . "groHMM")))
7311 (build-system r-build-system)
7312 (propagated-inputs
7313 `(("r-genomeinfodb" ,r-genomeinfodb)
7314 ("r-genomicalignments" ,r-genomicalignments)
7315 ("r-genomicranges" ,r-genomicranges)
7316 ("r-iranges" ,r-iranges)
7317 ("r-mass" ,r-mass)
7318 ("r-rtracklayer" ,r-rtracklayer)
7319 ("r-s4vectors" ,r-s4vectors)))
7320 (home-page "https://github.com/Kraus-Lab/groHMM")
7321 (synopsis "GRO-seq analysis pipeline")
7322 (description
7323 "This package provides a pipeline for the analysis of GRO-seq data.")
7324 (license license:gpl3+)))
7325
7326 (define-public vsearch
7327 (package
7328 (name "vsearch")
7329 (version "2.9.1")
7330 (source
7331 (origin
7332 (method git-fetch)
7333 (uri (git-reference
7334 (url "https://github.com/torognes/vsearch.git")
7335 (commit (string-append "v" version))))
7336 (file-name (git-file-name name version))
7337 (sha256
7338 (base32
7339 "0vhrpjfdf75ba04b24xknp41790cvcgwl0vgpy7qbzj5xh2521ss"))
7340 (patches (search-patches "vsearch-unbundle-cityhash.patch"))
7341 (snippet
7342 '(begin
7343 ;; Remove bundled cityhash sources. The vsearch source is adjusted
7344 ;; for this in the patch.
7345 (delete-file "src/city.h")
7346 (delete-file "src/citycrc.h")
7347 (delete-file "src/city.cc")
7348 #t))))
7349 (build-system gnu-build-system)
7350 (inputs
7351 `(("zlib" ,zlib)
7352 ("bzip2" ,bzip2)
7353 ("cityhash" ,cityhash)))
7354 (native-inputs
7355 `(("autoconf" ,autoconf)
7356 ("automake" ,automake)))
7357 (synopsis "Sequence search tools for metagenomics")
7358 (description
7359 "VSEARCH supports DNA sequence searching, clustering, chimera detection,
7360 dereplication, pairwise alignment, shuffling, subsampling, sorting and
7361 masking. The tool takes advantage of parallelism in the form of SIMD
7362 vectorization as well as multiple threads to perform accurate alignments at
7363 high speed. VSEARCH uses an optimal global aligner (full dynamic programming
7364 Needleman-Wunsch).")
7365 (home-page "https://github.com/torognes/vsearch")
7366 ;; vsearch uses non-portable SSE intrinsics so building fails on other
7367 ;; platforms.
7368 (supported-systems '("x86_64-linux"))
7369 ;; Dual licensed; also includes public domain source.
7370 (license (list license:gpl3 license:bsd-2))))
7371
7372 (define-public pardre
7373 (package
7374 (name "pardre")
7375 ;; The source of 1.1.5 changed in place, so we append "-1" to the version.
7376 (version "1.1.5-1")
7377 (source
7378 (origin
7379 (method url-fetch)
7380 (uri (string-append "mirror://sourceforge/pardre/ParDRe-rel"
7381 "1.1.5" ".tar.gz"))
7382 (sha256
7383 (base32
7384 "17j73nc0viq4f6qj50nrndsrif5d6b71q8fl87m54psiv0ilns2b"))))
7385 (build-system gnu-build-system)
7386 (arguments
7387 `(#:tests? #f ; no tests included
7388 #:phases
7389 (modify-phases %standard-phases
7390 (delete 'configure)
7391 (replace 'install
7392 (lambda* (#:key outputs #:allow-other-keys)
7393 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
7394 (install-file "ParDRe" bin)
7395 #t))))))
7396 (inputs
7397 `(("openmpi" ,openmpi)
7398 ("zlib" ,zlib)))
7399 (synopsis "Parallel tool to remove duplicate DNA reads")
7400 (description
7401 "ParDRe is a parallel tool to remove duplicate genetic sequence reads.
7402 Duplicate reads can be seen as identical or nearly identical sequences with
7403 some mismatches. This tool lets users avoid the analysis of unnecessary
7404 reads, reducing the time of subsequent procedures with the
7405 dataset (e.g. assemblies, mappings, etc.). The tool is implemented with MPI
7406 in order to exploit the parallel capabilities of multicore clusters. It is
7407 faster than multithreaded counterparts (end of 2015) for the same number of
7408 cores and, thanks to the message-passing technology, it can be executed on
7409 clusters.")
7410 (home-page "https://sourceforge.net/projects/pardre/")
7411 (license license:gpl3+)))
7412
7413 (define-public ruby-bio-kseq
7414 (package
7415 (name "ruby-bio-kseq")
7416 (version "0.0.2")
7417 (source
7418 (origin
7419 (method url-fetch)
7420 (uri (rubygems-uri "bio-kseq" version))
7421 (sha256
7422 (base32
7423 "1xyaha46khb5jc6wzkbf7040jagac49jbimn0vcrzid0j8jdikrz"))))
7424 (build-system ruby-build-system)
7425 (arguments
7426 `(#:test-target "spec"))
7427 (native-inputs
7428 `(("bundler" ,bundler)
7429 ("ruby-rspec" ,ruby-rspec)
7430 ("ruby-rake-compiler" ,ruby-rake-compiler)))
7431 (inputs
7432 `(("zlib" ,zlib)))
7433 (synopsis "Ruby bindings for the kseq.h FASTA/Q parser")
7434 (description
7435 "@code{Bio::Kseq} provides ruby bindings to the @code{kseq.h} FASTA and
7436 FASTQ parsing code. It provides a fast iterator over sequences and their
7437 quality scores.")
7438 (home-page "https://github.com/gusevfe/bio-kseq")
7439 (license license:expat)))
7440
7441 (define-public bio-locus
7442 (package
7443 (name "bio-locus")
7444 (version "0.0.7")
7445 (source
7446 (origin
7447 (method url-fetch)
7448 (uri (rubygems-uri "bio-locus" version))
7449 (sha256
7450 (base32
7451 "02vmrxyimkj9sahsp4zhfhnmbvz6dbbqz1y01vglf8cbwvkajfl0"))))
7452 (build-system ruby-build-system)
7453 (native-inputs
7454 `(("ruby-rspec" ,ruby-rspec)))
7455 (synopsis "Tool for fast querying of genome locations")
7456 (description
7457 "Bio-locus is a tabix-like tool for fast querying of genome
7458 locations. Many file formats in bioinformatics contain records that
7459 start with a chromosome name and a position for a SNP, or a start-end
7460 position for indels. Bio-locus allows users to store this chr+pos or
7461 chr+pos+alt information in a database.")
7462 (home-page "https://github.com/pjotrp/bio-locus")
7463 (license license:expat)))
7464
7465 (define-public bio-blastxmlparser
7466 (package
7467 (name "bio-blastxmlparser")
7468 (version "2.0.4")
7469 (source (origin
7470 (method url-fetch)
7471 (uri (rubygems-uri "bio-blastxmlparser" version))
7472 (sha256
7473 (base32
7474 "1wf4qygcmdjgcqm6flmvsagfr1gs9lf63mj32qv3z1f481zc5692"))))
7475 (build-system ruby-build-system)
7476 (propagated-inputs
7477 `(("ruby-bio-logger" ,ruby-bio-logger)
7478 ("ruby-nokogiri" ,ruby-nokogiri)))
7479 (inputs
7480 `(("ruby-rspec" ,ruby-rspec)))
7481 (synopsis "Fast big data BLAST XML parser and library")
7482 (description
7483 "Very fast parallel big-data BLAST XML file parser which can be used as
7484 command line utility. Use blastxmlparser to: Parse BLAST XML; filter output;
7485 generate FASTA, JSON, YAML, RDF, JSON-LD, HTML, CSV, tabular output etc.")
7486 (home-page "https://github.com/pjotrp/blastxmlparser")
7487 (license license:expat)))
7488
7489 (define-public bioruby
7490 (package
7491 (name "bioruby")
7492 (version "1.5.2")
7493 (source
7494 (origin
7495 (method url-fetch)
7496 (uri (rubygems-uri "bio" version))
7497 (sha256
7498 (base32
7499 "1d56amdsjv1mag7m6gv2w0xij8hqx1v5xbdjsix8sp3yp36m7938"))))
7500 (build-system ruby-build-system)
7501 (propagated-inputs
7502 `(("ruby-libxml" ,ruby-libxml)))
7503 (native-inputs
7504 `(("which" ,which))) ; required for test phase
7505 (arguments
7506 `(#:phases
7507 (modify-phases %standard-phases
7508 (add-before 'build 'patch-test-command
7509 (lambda _
7510 (substitute* '("test/functional/bio/test_command.rb")
7511 (("/bin/sh") (which "sh")))
7512 (substitute* '("test/functional/bio/test_command.rb")
7513 (("/bin/ls") (which "ls")))
7514 (substitute* '("test/functional/bio/test_command.rb")
7515 (("which") (which "which")))
7516 (substitute* '("test/functional/bio/test_command.rb",
7517 "test/data/command/echoarg2.sh")
7518 (("/bin/echo") (which "echo")))
7519 #t)))))
7520 (synopsis "Ruby library, shell and utilities for bioinformatics")
7521 (description "BioRuby comes with a comprehensive set of Ruby development
7522 tools and libraries for bioinformatics and molecular biology. BioRuby has
7523 components for sequence analysis, pathway analysis, protein modelling and
7524 phylogenetic analysis; it supports many widely used data formats and provides
7525 easy access to databases, external programs and public web services, including
7526 BLAST, KEGG, GenBank, MEDLINE and GO.")
7527 (home-page "http://bioruby.org/")
7528 ;; Code is released under Ruby license, except for setup
7529 ;; (LGPLv2.1+) and scripts in samples (which have GPL2 and GPL2+)
7530 (license (list license:ruby license:lgpl2.1+ license:gpl2+ ))))
7531
7532 (define-public r-biocviews
7533 (package
7534 (name "r-biocviews")
7535 (version "1.56.0")
7536 (source (origin
7537 (method url-fetch)
7538 (uri (bioconductor-uri "biocViews" version))
7539 (sha256
7540 (base32
7541 "1h4cmfbff79v9xrh271dp3rv0877ris06lmkvc39kqzj7yjsh7c2"))))
7542 (properties
7543 `((upstream-name . "biocViews")))
7544 (build-system r-build-system)
7545 (propagated-inputs
7546 `(("r-biobase" ,r-biobase)
7547 ("r-biocmanager" ,r-biocmanager)
7548 ("r-graph" ,r-graph)
7549 ("r-rbgl" ,r-rbgl)
7550 ("r-rcurl" ,r-rcurl)
7551 ("r-xml" ,r-xml)
7552 ("r-runit" ,r-runit)))
7553 (home-page "https://bioconductor.org/packages/biocViews")
7554 (synopsis "Bioconductor package categorization helper")
7555 (description "The purpose of biocViews is to create HTML pages that
7556 categorize packages in a Bioconductor package repository according to keywords,
7557 also known as views, in a controlled vocabulary.")
7558 (license license:artistic2.0)))
7559
7560 (define-public r-biocstyle
7561 (package
7562 (name "r-biocstyle")
7563 (version "2.16.0")
7564 (source (origin
7565 (method url-fetch)
7566 (uri (bioconductor-uri "BiocStyle" version))
7567 (sha256
7568 (base32
7569 "07rjl2n4sazdg581zh7w3yykzphgr2gpz41ba4ryqs7347vh9nbf"))))
7570 (properties
7571 `((upstream-name . "BiocStyle")))
7572 (build-system r-build-system)
7573 (propagated-inputs
7574 `(("r-biocmanager" ,r-biocmanager)
7575 ("r-bookdown" ,r-bookdown)
7576 ("r-knitr" ,r-knitr)
7577 ("r-rmarkdown" ,r-rmarkdown)
7578 ("r-yaml" ,r-yaml)))
7579 (native-inputs
7580 `(("r-knitr" ,r-knitr)))
7581 (home-page "https://bioconductor.org/packages/BiocStyle")
7582 (synopsis "Bioconductor formatting styles")
7583 (description "This package provides standard formatting styles for
7584 Bioconductor PDF and HTML documents. Package vignettes illustrate use and
7585 functionality.")
7586 (license license:artistic2.0)))
7587
7588 (define-public r-bioccheck
7589 (package
7590 (name "r-bioccheck")
7591 (version "1.24.0")
7592 (source (origin
7593 (method url-fetch)
7594 (uri (bioconductor-uri "BiocCheck" version))
7595 (sha256
7596 (base32
7597 "1p9ys18sn1crxw1iac2jdgqvwpb5hjd9nfxx0qn0ncrv0b550mny"))))
7598 (properties
7599 `((upstream-name . "BiocCheck")))
7600 (build-system r-build-system)
7601 (arguments
7602 '(#:phases
7603 (modify-phases %standard-phases
7604 ;; This package can be used by calling BiocCheck(<package>) from
7605 ;; within R, or by running R CMD BiocCheck <package>. This phase
7606 ;; makes sure the latter works. For this to work, the BiocCheck
7607 ;; script must be somewhere on the PATH (not the R bin directory).
7608 (add-after 'install 'install-bioccheck-subcommand
7609 (lambda* (#:key outputs #:allow-other-keys)
7610 (let* ((out (assoc-ref outputs "out"))
7611 (dest-dir (string-append out "/bin"))
7612 (script-dir
7613 (string-append out "/site-library/BiocCheck/script/")))
7614 (mkdir-p dest-dir)
7615 (symlink (string-append script-dir "/checkBadDeps.R")
7616 (string-append dest-dir "/checkBadDeps.R"))
7617 (symlink (string-append script-dir "/BiocCheck")
7618 (string-append dest-dir "/BiocCheck")))
7619 #t)))))
7620 (propagated-inputs
7621 `(("r-codetools" ,r-codetools)
7622 ("r-graph" ,r-graph)
7623 ("r-httr" ,r-httr)
7624 ("r-knitr" ,r-knitr)
7625 ("r-optparse" ,r-optparse)
7626 ("r-biocmanager" ,r-biocmanager)
7627 ("r-biocviews" ,r-biocviews)
7628 ("r-stringdist" ,r-stringdist)))
7629 (native-inputs
7630 `(("r-knitr" ,r-knitr)))
7631 (home-page "https://bioconductor.org/packages/BiocCheck")
7632 (synopsis "Executes Bioconductor-specific package checks")
7633 (description "This package contains tools to perform additional quality
7634 checks on R packages that are to be submitted to the Bioconductor repository.")
7635 (license license:artistic2.0)))
7636
7637 (define-public r-s4vectors
7638 (package
7639 (name "r-s4vectors")
7640 (version "0.26.1")
7641 (source (origin
7642 (method url-fetch)
7643 (uri (bioconductor-uri "S4Vectors" version))
7644 (sha256
7645 (base32
7646 "1ddr3ngyczx332zw9ai1a6h7442lgrbfcj8vrhvbkdkzqwj14xmb"))))
7647 (properties
7648 `((upstream-name . "S4Vectors")))
7649 (build-system r-build-system)
7650 (propagated-inputs
7651 `(("r-biocgenerics" ,r-biocgenerics)))
7652 (home-page "https://bioconductor.org/packages/S4Vectors")
7653 (synopsis "S4 implementation of vectors and lists")
7654 (description
7655 "The S4Vectors package defines the @code{Vector} and @code{List} virtual
7656 classes and a set of generic functions that extend the semantic of ordinary
7657 vectors and lists in R. Package developers can easily implement vector-like
7658 or list-like objects as concrete subclasses of @code{Vector} or @code{List}.
7659 In addition, a few low-level concrete subclasses of general interest (e.g.
7660 @code{DataFrame}, @code{Rle}, and @code{Hits}) are implemented in the
7661 S4Vectors package itself.")
7662 (license license:artistic2.0)))
7663
7664 (define-public r-iranges
7665 (package
7666 (name "r-iranges")
7667 (version "2.22.2")
7668 (source (origin
7669 (method url-fetch)
7670 (uri (bioconductor-uri "IRanges" version))
7671 (sha256
7672 (base32
7673 "1y24jw62806wp2afiyj1x6n00gj7d3323klqdypra9q43pg1w49d"))))
7674 (properties
7675 `((upstream-name . "IRanges")))
7676 (build-system r-build-system)
7677 (propagated-inputs
7678 `(("r-biocgenerics" ,r-biocgenerics)
7679 ("r-s4vectors" ,r-s4vectors)))
7680 (home-page "https://bioconductor.org/packages/IRanges")
7681 (synopsis "Infrastructure for manipulating intervals on sequences")
7682 (description
7683 "This package provides efficient low-level and highly reusable S4 classes
7684 for storing ranges of integers, RLE vectors (Run-Length Encoding), and, more
7685 generally, data that can be organized sequentially (formally defined as
7686 @code{Vector} objects), as well as views on these @code{Vector} objects.
7687 Efficient list-like classes are also provided for storing big collections of
7688 instances of the basic classes. All classes in the package use consistent
7689 naming and share the same rich and consistent \"Vector API\" as much as
7690 possible.")
7691 (license license:artistic2.0)))
7692
7693 (define-public r-genomeinfodbdata
7694 (package
7695 (name "r-genomeinfodbdata")
7696 (version "1.2.0")
7697 (source (origin
7698 (method url-fetch)
7699 ;; We cannot use bioconductor-uri here because this tarball is
7700 ;; located under "data/annotation/" instead of "bioc/".
7701 (uri (string-append "https://bioconductor.org/packages/release/"
7702 "data/annotation/src/contrib/GenomeInfoDbData_"
7703 version ".tar.gz"))
7704 (sha256
7705 (base32
7706 "0di6nlqpsyqf693k2na65ayqldih563x3zfrczpqc5q2hl5kg35c"))))
7707 (properties
7708 `((upstream-name . "GenomeInfoDbData")))
7709 (build-system r-build-system)
7710 (home-page "https://bioconductor.org/packages/GenomeInfoDbData")
7711 (synopsis "Species and taxonomy ID look up tables for GenomeInfoDb")
7712 (description "This package contains data for mapping between NCBI taxonomy
7713 ID and species. It is used by functions in the GenomeInfoDb package.")
7714 (license license:artistic2.0)))
7715
7716 (define-public r-genomeinfodb
7717 (package
7718 (name "r-genomeinfodb")
7719 (version "1.24.0")
7720 (source (origin
7721 (method url-fetch)
7722 (uri (bioconductor-uri "GenomeInfoDb" version))
7723 (sha256
7724 (base32
7725 "0ab92nq7lvhvhgp512qhiiphpby0b17c666qska6p8a636zzmqiv"))))
7726 (properties
7727 `((upstream-name . "GenomeInfoDb")))
7728 (build-system r-build-system)
7729 (propagated-inputs
7730 `(("r-biocgenerics" ,r-biocgenerics)
7731 ("r-genomeinfodbdata" ,r-genomeinfodbdata)
7732 ("r-iranges" ,r-iranges)
7733 ("r-rcurl" ,r-rcurl)
7734 ("r-s4vectors" ,r-s4vectors)))
7735 (native-inputs
7736 `(("r-knitr" ,r-knitr)))
7737 (home-page "https://bioconductor.org/packages/GenomeInfoDb")
7738 (synopsis "Utilities for manipulating chromosome identifiers")
7739 (description
7740 "This package contains data and functions that define and allow
7741 translation between different chromosome sequence naming conventions (e.g.,
7742 \"chr1\" versus \"1\"), including a function that attempts to place sequence
7743 names in their natural, rather than lexicographic, order.")
7744 (license license:artistic2.0)))
7745
7746 (define-public r-edger
7747 (package
7748 (name "r-edger")
7749 (version "3.30.3")
7750 (source (origin
7751 (method url-fetch)
7752 (uri (bioconductor-uri "edgeR" version))
7753 (sha256
7754 (base32
7755 "1z9bkg08rgqn3jm2s4ndbj641w33wl8jd3j6m5if6h2nnw6011ic"))))
7756 (properties `((upstream-name . "edgeR")))
7757 (build-system r-build-system)
7758 (propagated-inputs
7759 `(("r-limma" ,r-limma)
7760 ("r-locfit" ,r-locfit)
7761 ("r-rcpp" ,r-rcpp)
7762 ("r-statmod" ,r-statmod))) ;for estimateDisp
7763 (home-page "http://bioinf.wehi.edu.au/edgeR")
7764 (synopsis "EdgeR does empirical analysis of digital gene expression data")
7765 (description "This package can do differential expression analysis of
7766 RNA-seq expression profiles with biological replication. It implements a range
7767 of statistical methodology based on the negative binomial distributions,
7768 including empirical Bayes estimation, exact tests, generalized linear models
7769 and quasi-likelihood tests. It be applied to differential signal analysis of
7770 other types of genomic data that produce counts, including ChIP-seq, SAGE and
7771 CAGE.")
7772 (license license:gpl2+)))
7773
7774 (define-public r-variantannotation
7775 (package
7776 (name "r-variantannotation")
7777 (version "1.34.0")
7778 (source (origin
7779 (method url-fetch)
7780 (uri (bioconductor-uri "VariantAnnotation" version))
7781 (sha256
7782 (base32
7783 "09y6ymwky839nb0y7y93w810hk9mvwqn7595q1276c28dkddiqvw"))))
7784 (properties
7785 `((upstream-name . "VariantAnnotation")))
7786 (inputs
7787 `(("zlib" ,zlib)))
7788 (propagated-inputs
7789 `(("r-annotationdbi" ,r-annotationdbi)
7790 ("r-biobase" ,r-biobase)
7791 ("r-biocgenerics" ,r-biocgenerics)
7792 ("r-biostrings" ,r-biostrings)
7793 ("r-bsgenome" ,r-bsgenome)
7794 ("r-dbi" ,r-dbi)
7795 ("r-genomeinfodb" ,r-genomeinfodb)
7796 ("r-genomicfeatures" ,r-genomicfeatures)
7797 ("r-genomicranges" ,r-genomicranges)
7798 ("r-iranges" ,r-iranges)
7799 ("r-summarizedexperiment" ,r-summarizedexperiment)
7800 ("r-rhtslib" ,r-rhtslib)
7801 ("r-rsamtools" ,r-rsamtools)
7802 ("r-rtracklayer" ,r-rtracklayer)
7803 ("r-s4vectors" ,r-s4vectors)
7804 ("r-xvector" ,r-xvector)
7805 ("r-zlibbioc" ,r-zlibbioc)))
7806 (build-system r-build-system)
7807 (home-page "https://bioconductor.org/packages/VariantAnnotation")
7808 (synopsis "Package for annotation of genetic variants")
7809 (description "This R package can annotate variants, compute amino acid
7810 coding changes and predict coding outcomes.")
7811 (license license:artistic2.0)))
7812
7813 (define-public r-limma
7814 (package
7815 (name "r-limma")
7816 (version "3.44.1")
7817 (source (origin
7818 (method url-fetch)
7819 (uri (bioconductor-uri "limma" version))
7820 (sha256
7821 (base32
7822 "0l6f6lz1rghj8c5s14ljbnmsrwz27fi6a7g42n15n3d3msvflw36"))))
7823 (build-system r-build-system)
7824 (home-page "http://bioinf.wehi.edu.au/limma")
7825 (synopsis "Package for linear models for microarray and RNA-seq data")
7826 (description "This package can be used for the analysis of gene expression
7827 studies, especially the use of linear models for analysing designed experiments
7828 and the assessment of differential expression. The analysis methods apply to
7829 different technologies, including microarrays, RNA-seq, and quantitative PCR.")
7830 (license license:gpl2+)))
7831
7832 (define-public r-xvector
7833 (package
7834 (name "r-xvector")
7835 (version "0.28.0")
7836 (source (origin
7837 (method url-fetch)
7838 (uri (bioconductor-uri "XVector" version))
7839 (sha256
7840 (base32
7841 "11h1hszv4798q1gbx8r6zf8vlaqx4v9ql0lbh2xaxybp66a03pvc"))))
7842 (properties
7843 `((upstream-name . "XVector")))
7844 (build-system r-build-system)
7845 (arguments
7846 `(#:phases
7847 (modify-phases %standard-phases
7848 (add-after 'unpack 'use-system-zlib
7849 (lambda _
7850 (substitute* "DESCRIPTION"
7851 (("zlibbioc, ") ""))
7852 (substitute* "NAMESPACE"
7853 (("import\\(zlibbioc\\)") ""))
7854 #t)))))
7855 (inputs
7856 `(("zlib" ,zlib)))
7857 (propagated-inputs
7858 `(("r-biocgenerics" ,r-biocgenerics)
7859 ("r-iranges" ,r-iranges)
7860 ("r-s4vectors" ,r-s4vectors)))
7861 (home-page "https://bioconductor.org/packages/XVector")
7862 (synopsis "Representation and manpulation of external sequences")
7863 (description
7864 "This package provides memory efficient S4 classes for storing sequences
7865 \"externally\" (behind an R external pointer, or on disk).")
7866 (license license:artistic2.0)))
7867
7868 (define-public r-genomicranges
7869 (package
7870 (name "r-genomicranges")
7871 (version "1.40.0")
7872 (source (origin
7873 (method url-fetch)
7874 (uri (bioconductor-uri "GenomicRanges" version))
7875 (sha256
7876 (base32
7877 "0wn1zr2qq0rpv9z2wialgizn6xzdlcjg1w2kif67n53svz6vk2x1"))))
7878 (properties
7879 `((upstream-name . "GenomicRanges")))
7880 (build-system r-build-system)
7881 (propagated-inputs
7882 `(("r-biocgenerics" ,r-biocgenerics)
7883 ("r-genomeinfodb" ,r-genomeinfodb)
7884 ("r-iranges" ,r-iranges)
7885 ("r-s4vectors" ,r-s4vectors)
7886 ("r-xvector" ,r-xvector)))
7887 (native-inputs
7888 `(("r-knitr" ,r-knitr)))
7889 (home-page "https://bioconductor.org/packages/GenomicRanges")
7890 (synopsis "Representation and manipulation of genomic intervals")
7891 (description
7892 "This package provides tools to efficiently represent and manipulate
7893 genomic annotations and alignments is playing a central role when it comes to
7894 analyzing high-throughput sequencing data (a.k.a. NGS data). The
7895 GenomicRanges package defines general purpose containers for storing and
7896 manipulating genomic intervals and variables defined along a genome.")
7897 (license license:artistic2.0)))
7898
7899 (define-public r-biobase
7900 (package
7901 (name "r-biobase")
7902 (version "2.48.0")
7903 (source (origin
7904 (method url-fetch)
7905 (uri (bioconductor-uri "Biobase" version))
7906 (sha256
7907 (base32
7908 "13p3kgnxm7hbn8cy289kbhaiyfa6rxx7l1pbvajwqzbay3cxznqp"))))
7909 (properties
7910 `((upstream-name . "Biobase")))
7911 (build-system r-build-system)
7912 (propagated-inputs
7913 `(("r-biocgenerics" ,r-biocgenerics)))
7914 (home-page "https://bioconductor.org/packages/Biobase")
7915 (synopsis "Base functions for Bioconductor")
7916 (description
7917 "This package provides functions that are needed by many other packages
7918 on Bioconductor or which replace R functions.")
7919 (license license:artistic2.0)))
7920
7921 (define-public r-annotationdbi
7922 (package
7923 (name "r-annotationdbi")
7924 (version "1.50.0")
7925 (source (origin
7926 (method url-fetch)
7927 (uri (bioconductor-uri "AnnotationDbi" version))
7928 (sha256
7929 (base32
7930 "10gplxal0qphcn29azv0i6hiim9q45lmhzvhhhsnwfhwpgja7p05"))))
7931 (properties
7932 `((upstream-name . "AnnotationDbi")))
7933 (build-system r-build-system)
7934 (propagated-inputs
7935 `(("r-biobase" ,r-biobase)
7936 ("r-biocgenerics" ,r-biocgenerics)
7937 ("r-dbi" ,r-dbi)
7938 ("r-iranges" ,r-iranges)
7939 ("r-rsqlite" ,r-rsqlite)
7940 ("r-s4vectors" ,r-s4vectors)))
7941 (native-inputs
7942 `(("r-knitr" ,r-knitr)))
7943 (home-page "https://bioconductor.org/packages/AnnotationDbi")
7944 (synopsis "Annotation database interface")
7945 (description
7946 "This package provides user interface and database connection code for
7947 annotation data packages using SQLite data storage.")
7948 (license license:artistic2.0)))
7949
7950 (define-public r-biomart
7951 (package
7952 (name "r-biomart")
7953 (version "2.44.0")
7954 (source (origin
7955 (method url-fetch)
7956 (uri (bioconductor-uri "biomaRt" version))
7957 (sha256
7958 (base32
7959 "0ag26q9283p9mfz4zx8qnx1w7b7ilmsb8wyx737z9cqy9a0i57wj"))))
7960 (properties
7961 `((upstream-name . "biomaRt")))
7962 (build-system r-build-system)
7963 (propagated-inputs
7964 `(("r-annotationdbi" ,r-annotationdbi)
7965 ("r-biocfilecache" ,r-biocfilecache)
7966 ("r-httr" ,r-httr)
7967 ("r-openssl" ,r-openssl)
7968 ("r-progress" ,r-progress)
7969 ("r-rappdirs" ,r-rappdirs)
7970 ("r-stringr" ,r-stringr)
7971 ("r-xml" ,r-xml)))
7972 (native-inputs
7973 `(("r-knitr" ,r-knitr)))
7974 (home-page "https://bioconductor.org/packages/biomaRt")
7975 (synopsis "Interface to BioMart databases")
7976 (description
7977 "biomaRt provides an interface to a growing collection of databases
7978 implementing the @url{BioMart software suite, http://www.biomart.org}. The
7979 package enables retrieval of large amounts of data in a uniform way without
7980 the need to know the underlying database schemas or write complex SQL queries.
7981 Examples of BioMart databases are Ensembl, COSMIC, Uniprot, HGNC, Gramene,
7982 Wormbase and dbSNP mapped to Ensembl. These major databases give biomaRt
7983 users direct access to a diverse set of data and enable a wide range of
7984 powerful online queries from gene annotation to database mining.")
7985 (license license:artistic2.0)))
7986
7987 (define-public r-biocparallel
7988 (package
7989 (name "r-biocparallel")
7990 (version "1.22.0")
7991 (source (origin
7992 (method url-fetch)
7993 (uri (bioconductor-uri "BiocParallel" version))
7994 (sha256
7995 (base32
7996 "1lsg5xm5j3ly5k60fidzhkgqc9jgscyfkqngjvd9qp6yfzvsb82g"))))
7997 (properties
7998 `((upstream-name . "BiocParallel")))
7999 (build-system r-build-system)
8000 (propagated-inputs
8001 `(("r-futile-logger" ,r-futile-logger)
8002 ("r-snow" ,r-snow)
8003 ("r-bh" ,r-bh)))
8004 (native-inputs
8005 `(("r-knitr" ,r-knitr)))
8006 (home-page "https://bioconductor.org/packages/BiocParallel")
8007 (synopsis "Bioconductor facilities for parallel evaluation")
8008 (description
8009 "This package provides modified versions and novel implementation of
8010 functions for parallel evaluation, tailored to use with Bioconductor
8011 objects.")
8012 (license (list license:gpl2+ license:gpl3+))))
8013
8014 (define-public r-biostrings
8015 (package
8016 (name "r-biostrings")
8017 (version "2.56.0")
8018 (source (origin
8019 (method url-fetch)
8020 (uri (bioconductor-uri "Biostrings" version))
8021 (sha256
8022 (base32
8023 "0imhfz7dg8b3l5qzipjranqqshdsg2x6zc49drlhn8sc7j40cvi8"))))
8024 (properties
8025 `((upstream-name . "Biostrings")))
8026 (build-system r-build-system)
8027 (propagated-inputs
8028 `(("r-biocgenerics" ,r-biocgenerics)
8029 ("r-crayon" ,r-crayon)
8030 ("r-iranges" ,r-iranges)
8031 ("r-s4vectors" ,r-s4vectors)
8032 ("r-xvector" ,r-xvector)))
8033 (home-page "https://bioconductor.org/packages/Biostrings")
8034 (synopsis "String objects and algorithms for biological sequences")
8035 (description
8036 "This package provides memory efficient string containers, string
8037 matching algorithms, and other utilities, for fast manipulation of large
8038 biological sequences or sets of sequences.")
8039 (license license:artistic2.0)))
8040
8041 (define-public r-rsamtools
8042 (package
8043 (name "r-rsamtools")
8044 (version "2.4.0")
8045 (source (origin
8046 (method url-fetch)
8047 (uri (bioconductor-uri "Rsamtools" version))
8048 (sha256
8049 (base32
8050 "0z01z0s71f941k7sns46nyabps28c69d6jxx6sppjpc6h4vrw0vq"))))
8051 (properties
8052 `((upstream-name . "Rsamtools")))
8053 (build-system r-build-system)
8054 (arguments
8055 `(#:phases
8056 (modify-phases %standard-phases
8057 (add-after 'unpack 'use-system-zlib
8058 (lambda _
8059 (substitute* "DESCRIPTION"
8060 (("zlibbioc, ") ""))
8061 (substitute* "NAMESPACE"
8062 (("import\\(zlibbioc\\)") ""))
8063 #t)))))
8064 (inputs
8065 `(("zlib" ,zlib)))
8066 (propagated-inputs
8067 `(("r-biocgenerics" ,r-biocgenerics)
8068 ("r-biocparallel" ,r-biocparallel)
8069 ("r-biostrings" ,r-biostrings)
8070 ("r-bitops" ,r-bitops)
8071 ("r-genomeinfodb" ,r-genomeinfodb)
8072 ("r-genomicranges" ,r-genomicranges)
8073 ("r-iranges" ,r-iranges)
8074 ("r-rhtslib" ,r-rhtslib)
8075 ("r-s4vectors" ,r-s4vectors)
8076 ("r-xvector" ,r-xvector)))
8077 (home-page "https://bioconductor.org/packages/release/bioc/html/Rsamtools.html")
8078 (synopsis "Interface to samtools, bcftools, and tabix")
8079 (description
8080 "This package provides an interface to the @code{samtools},
8081 @code{bcftools}, and @code{tabix} utilities for manipulating SAM (Sequence
8082 Alignment / Map), FASTA, binary variant call (BCF) and compressed indexed
8083 tab-delimited (tabix) files.")
8084 (license license:expat)))
8085
8086 (define-public r-delayedarray
8087 (package
8088 (name "r-delayedarray")
8089 (version "0.14.0")
8090 (source (origin
8091 (method url-fetch)
8092 (uri (bioconductor-uri "DelayedArray" version))
8093 (sha256
8094 (base32
8095 "1lz7a0rrlfv3w44n073mk8pw39z7lfs0njdxp5vpp0rdsmvdf1qk"))))
8096 (properties
8097 `((upstream-name . "DelayedArray")))
8098 (build-system r-build-system)
8099 (propagated-inputs
8100 `(("r-biocgenerics" ,r-biocgenerics)
8101 ("r-s4vectors" ,r-s4vectors)
8102 ("r-iranges" ,r-iranges)
8103 ("r-matrix" ,r-matrix)
8104 ("r-matrixstats" ,r-matrixstats)))
8105 (native-inputs
8106 `(("r-knitr" ,r-knitr)))
8107 (home-page "https://bioconductor.org/packages/DelayedArray")
8108 (synopsis "Delayed operations on array-like objects")
8109 (description
8110 "Wrapping an array-like object (typically an on-disk object) in a
8111 @code{DelayedArray} object allows one to perform common array operations on it
8112 without loading the object in memory. In order to reduce memory usage and
8113 optimize performance, operations on the object are either delayed or executed
8114 using a block processing mechanism. Note that this also works on in-memory
8115 array-like objects like @code{DataFrame} objects (typically with Rle columns),
8116 @code{Matrix} objects, and ordinary arrays and data frames.")
8117 (license license:artistic2.0)))
8118
8119 (define-public r-summarizedexperiment
8120 (package
8121 (name "r-summarizedexperiment")
8122 (version "1.18.1")
8123 (source (origin
8124 (method url-fetch)
8125 (uri (bioconductor-uri "SummarizedExperiment" version))
8126 (sha256
8127 (base32
8128 "07rc79k5dp0dnf4dvsxif995aa9cgfkf13yf84qnwl64k9pf3c2c"))))
8129 (properties
8130 `((upstream-name . "SummarizedExperiment")))
8131 (build-system r-build-system)
8132 (propagated-inputs
8133 `(("r-biobase" ,r-biobase)
8134 ("r-biocgenerics" ,r-biocgenerics)
8135 ("r-delayedarray" ,r-delayedarray)
8136 ("r-genomeinfodb" ,r-genomeinfodb)
8137 ("r-genomicranges" ,r-genomicranges)
8138 ("r-iranges" ,r-iranges)
8139 ("r-matrix" ,r-matrix)
8140 ("r-s4vectors" ,r-s4vectors)))
8141 (native-inputs
8142 `(("r-knitr" ,r-knitr)))
8143 (home-page "https://bioconductor.org/packages/SummarizedExperiment")
8144 (synopsis "Container for representing genomic ranges by sample")
8145 (description
8146 "The SummarizedExperiment container contains one or more assays, each
8147 represented by a matrix-like object of numeric or other mode. The rows
8148 typically represent genomic ranges of interest and the columns represent
8149 samples.")
8150 (license license:artistic2.0)))
8151
8152 (define-public r-genomicalignments
8153 (package
8154 (name "r-genomicalignments")
8155 (version "1.24.0")
8156 (source (origin
8157 (method url-fetch)
8158 (uri (bioconductor-uri "GenomicAlignments" version))
8159 (sha256
8160 (base32
8161 "0v8k6d7frm5p48cmk4zik78cw9abz4inx0zhl4zrmmx31ifyvk8d"))))
8162 (properties
8163 `((upstream-name . "GenomicAlignments")))
8164 (build-system r-build-system)
8165 (propagated-inputs
8166 `(("r-biocgenerics" ,r-biocgenerics)
8167 ("r-biocparallel" ,r-biocparallel)
8168 ("r-biostrings" ,r-biostrings)
8169 ("r-genomeinfodb" ,r-genomeinfodb)
8170 ("r-genomicranges" ,r-genomicranges)
8171 ("r-iranges" ,r-iranges)
8172 ("r-rsamtools" ,r-rsamtools)
8173 ("r-s4vectors" ,r-s4vectors)
8174 ("r-summarizedexperiment" ,r-summarizedexperiment)))
8175 (home-page "https://bioconductor.org/packages/GenomicAlignments")
8176 (synopsis "Representation and manipulation of short genomic alignments")
8177 (description
8178 "This package provides efficient containers for storing and manipulating
8179 short genomic alignments (typically obtained by aligning short reads to a
8180 reference genome). This includes read counting, computing the coverage,
8181 junction detection, and working with the nucleotide content of the
8182 alignments.")
8183 (license license:artistic2.0)))
8184
8185 (define-public r-rtracklayer
8186 (package
8187 (name "r-rtracklayer")
8188 (version "1.48.0")
8189 (source (origin
8190 (method url-fetch)
8191 (uri (bioconductor-uri "rtracklayer" version))
8192 (sha256
8193 (base32
8194 "1zcgk92sidhy4y7ws9ms4nkkh2hnccfhfh53qgna0kma9jy4v5xf"))))
8195 (build-system r-build-system)
8196 (arguments
8197 `(#:phases
8198 (modify-phases %standard-phases
8199 (add-after 'unpack 'use-system-zlib
8200 (lambda _
8201 (substitute* "DESCRIPTION"
8202 ((" zlibbioc,") ""))
8203 (substitute* "NAMESPACE"
8204 (("import\\(zlibbioc\\)") ""))
8205 #t)))))
8206 (native-inputs
8207 `(("pkg-config" ,pkg-config)))
8208 (inputs
8209 `(("zlib" ,zlib)))
8210 (propagated-inputs
8211 `(("r-biocgenerics" ,r-biocgenerics)
8212 ("r-biostrings" ,r-biostrings)
8213 ("r-genomeinfodb" ,r-genomeinfodb)
8214 ("r-genomicalignments" ,r-genomicalignments)
8215 ("r-genomicranges" ,r-genomicranges)
8216 ("r-iranges" ,r-iranges)
8217 ("r-rcurl" ,r-rcurl)
8218 ("r-rsamtools" ,r-rsamtools)
8219 ("r-s4vectors" ,r-s4vectors)
8220 ("r-xml" ,r-xml)
8221 ("r-xvector" ,r-xvector)))
8222 (home-page "https://bioconductor.org/packages/rtracklayer")
8223 (synopsis "R interface to genome browsers and their annotation tracks")
8224 (description
8225 "rtracklayer is an extensible framework for interacting with multiple
8226 genome browsers (currently UCSC built-in) and manipulating annotation tracks
8227 in various formats (currently GFF, BED, bedGraph, BED15, WIG, BigWig and 2bit
8228 built-in). The user may export/import tracks to/from the supported browsers,
8229 as well as query and modify the browser state, such as the current viewport.")
8230 (license license:artistic2.0)))
8231
8232 (define-public r-genomicfeatures
8233 (package
8234 (name "r-genomicfeatures")
8235 (version "1.40.0")
8236 (source (origin
8237 (method url-fetch)
8238 (uri (bioconductor-uri "GenomicFeatures" version))
8239 (sha256
8240 (base32
8241 "09ffsflk2yhhj9ivm028y3qdkvv8idgxpm4il3y9rym7shc8b3f8"))))
8242 (properties
8243 `((upstream-name . "GenomicFeatures")))
8244 (build-system r-build-system)
8245 (propagated-inputs
8246 `(("r-annotationdbi" ,r-annotationdbi)
8247 ("r-biobase" ,r-biobase)
8248 ("r-biocgenerics" ,r-biocgenerics)
8249 ("r-biomart" ,r-biomart)
8250 ("r-biostrings" ,r-biostrings)
8251 ("r-dbi" ,r-dbi)
8252 ("r-genomeinfodb" ,r-genomeinfodb)
8253 ("r-genomicranges" ,r-genomicranges)
8254 ("r-iranges" ,r-iranges)
8255 ("r-rcurl" ,r-rcurl)
8256 ("r-rsqlite" ,r-rsqlite)
8257 ("r-rtracklayer" ,r-rtracklayer)
8258 ("r-s4vectors" ,r-s4vectors)
8259 ("r-xvector" ,r-xvector)))
8260 (native-inputs
8261 `(("r-knitr" ,r-knitr)))
8262 (home-page "https://bioconductor.org/packages/GenomicFeatures")
8263 (synopsis "Tools for working with transcript centric annotations")
8264 (description
8265 "This package provides a set of tools and methods for making and
8266 manipulating transcript centric annotations. With these tools the user can
8267 easily download the genomic locations of the transcripts, exons and cds of a
8268 given organism, from either the UCSC Genome Browser or a BioMart
8269 database (more sources will be supported in the future). This information is
8270 then stored in a local database that keeps track of the relationship between
8271 transcripts, exons, cds and genes. Flexible methods are provided for
8272 extracting the desired features in a convenient format.")
8273 (license license:artistic2.0)))
8274
8275 (define-public r-go-db
8276 (package
8277 (name "r-go-db")
8278 (version "3.7.0")
8279 (source (origin
8280 (method url-fetch)
8281 (uri (string-append "https://www.bioconductor.org/packages/"
8282 "release/data/annotation/src/contrib/GO.db_"
8283 version ".tar.gz"))
8284 (sha256
8285 (base32
8286 "0i3wcf5h3n0dawzc1hy0kv74f06j80c47n4p3g3fmrcxlhi3jpa5"))))
8287 (properties
8288 `((upstream-name . "GO.db")))
8289 (build-system r-build-system)
8290 (propagated-inputs
8291 `(("r-annotationdbi" ,r-annotationdbi)))
8292 (home-page "https://bioconductor.org/packages/GO.db")
8293 (synopsis "Annotation maps describing the entire Gene Ontology")
8294 (description
8295 "The purpose of this GO.db annotation package is to provide detailed
8296 information about the latest version of the Gene Ontologies.")
8297 (license license:artistic2.0)))
8298
8299 (define-public r-topgo
8300 (package
8301 (name "r-topgo")
8302 (version "2.40.0")
8303 (source (origin
8304 (method url-fetch)
8305 (uri (bioconductor-uri "topGO" version))
8306 (sha256
8307 (base32
8308 "13rhbvn27sj75fklf1cnjaazacx8yyjlhqlnbp5zk157q6y5cwdr"))))
8309 (properties
8310 `((upstream-name . "topGO")))
8311 (build-system r-build-system)
8312 (propagated-inputs
8313 `(("r-annotationdbi" ,r-annotationdbi)
8314 ("r-dbi" ,r-dbi)
8315 ("r-biobase" ,r-biobase)
8316 ("r-biocgenerics" ,r-biocgenerics)
8317 ("r-go-db" ,r-go-db)
8318 ("r-graph" ,r-graph)
8319 ("r-lattice" ,r-lattice)
8320 ("r-matrixstats" ,r-matrixstats)
8321 ("r-sparsem" ,r-sparsem)))
8322 (home-page "https://bioconductor.org/packages/topGO")
8323 (synopsis "Enrichment analysis for gene ontology")
8324 (description
8325 "The topGO package provides tools for testing @dfn{gene ontology} (GO)
8326 terms while accounting for the topology of the GO graph. Different test
8327 statistics and different methods for eliminating local similarities and
8328 dependencies between GO terms can be implemented and applied.")
8329 ;; Any version of the LGPL applies.
8330 (license license:lgpl2.1+)))
8331
8332 (define-public r-bsgenome
8333 (package
8334 (name "r-bsgenome")
8335 (version "1.56.0")
8336 (source (origin
8337 (method url-fetch)
8338 (uri (bioconductor-uri "BSgenome" version))
8339 (sha256
8340 (base32
8341 "1jw8r1qm9fpg2s1cw2y4np243jjxm65j2xdy2785h8fc1b02msf6"))))
8342 (properties
8343 `((upstream-name . "BSgenome")))
8344 (build-system r-build-system)
8345 (propagated-inputs
8346 `(("r-biocgenerics" ,r-biocgenerics)
8347 ("r-biostrings" ,r-biostrings)
8348 ("r-genomeinfodb" ,r-genomeinfodb)
8349 ("r-genomicranges" ,r-genomicranges)
8350 ("r-iranges" ,r-iranges)
8351 ("r-matrixstats" ,r-matrixstats)
8352 ("r-rsamtools" ,r-rsamtools)
8353 ("r-rtracklayer" ,r-rtracklayer)
8354 ("r-s4vectors" ,r-s4vectors)
8355 ("r-xvector" ,r-xvector)))
8356 (home-page "https://bioconductor.org/packages/BSgenome")
8357 (synopsis "Infrastructure for Biostrings-based genome data packages")
8358 (description
8359 "This package provides infrastructure shared by all Biostrings-based
8360 genome data packages and support for efficient SNP representation.")
8361 (license license:artistic2.0)))
8362
8363 (define-public r-impute
8364 (package
8365 (name "r-impute")
8366 (version "1.62.0")
8367 (source (origin
8368 (method url-fetch)
8369 (uri (bioconductor-uri "impute" version))
8370 (sha256
8371 (base32
8372 "161p6l1cp3wwdynkxwvg0yhrh6yv20brdlplw5w5mavn4hf1nm0h"))))
8373 (native-inputs
8374 `(("gfortran" ,gfortran)))
8375 (build-system r-build-system)
8376 (home-page "https://bioconductor.org/packages/impute")
8377 (synopsis "Imputation for microarray data")
8378 (description
8379 "This package provides a function to impute missing gene expression
8380 microarray data, using nearest neighbor averaging.")
8381 (license license:gpl2+)))
8382
8383 (define-public r-seqpattern
8384 (package
8385 (name "r-seqpattern")
8386 (version "1.20.0")
8387 (source (origin
8388 (method url-fetch)
8389 (uri (bioconductor-uri "seqPattern" version))
8390 (sha256
8391 (base32
8392 "0f1yvx2ri1557rzjx08q5bgml1cvkm8hjl8xn1qi4rjs64sy6mci"))))
8393 (properties
8394 `((upstream-name . "seqPattern")))
8395 (build-system r-build-system)
8396 (propagated-inputs
8397 `(("r-biostrings" ,r-biostrings)
8398 ("r-genomicranges" ,r-genomicranges)
8399 ("r-iranges" ,r-iranges)
8400 ("r-kernsmooth" ,r-kernsmooth)
8401 ("r-plotrix" ,r-plotrix)))
8402 (home-page "https://bioconductor.org/packages/seqPattern")
8403 (synopsis "Visualising oligonucleotide patterns and motif occurrences")
8404 (description
8405 "This package provides tools to visualize oligonucleotide patterns and
8406 sequence motif occurrences across a large set of sequences centred at a common
8407 reference point and sorted by a user defined feature.")
8408 (license license:gpl3+)))
8409
8410 (define-public r-genomation
8411 (package
8412 (name "r-genomation")
8413 (version "1.20.0")
8414 (source (origin
8415 (method url-fetch)
8416 (uri (bioconductor-uri "genomation" version))
8417 (sha256
8418 (base32
8419 "1cy8kqwddiha5jy6nda1al956i4wncbgjkrxwijdb08cmka2sfwh"))))
8420 (build-system r-build-system)
8421 (propagated-inputs
8422 `(("r-biostrings" ,r-biostrings)
8423 ("r-bsgenome" ,r-bsgenome)
8424 ("r-data-table" ,r-data-table)
8425 ("r-genomeinfodb" ,r-genomeinfodb)
8426 ("r-genomicalignments" ,r-genomicalignments)
8427 ("r-genomicranges" ,r-genomicranges)
8428 ("r-ggplot2" ,r-ggplot2)
8429 ("r-gridbase" ,r-gridbase)
8430 ("r-impute" ,r-impute)
8431 ("r-iranges" ,r-iranges)
8432 ("r-matrixstats" ,r-matrixstats)
8433 ("r-plotrix" ,r-plotrix)
8434 ("r-plyr" ,r-plyr)
8435 ("r-rcpp" ,r-rcpp)
8436 ("r-readr" ,r-readr)
8437 ("r-reshape2" ,r-reshape2)
8438 ("r-rsamtools" ,r-rsamtools)
8439 ("r-rtracklayer" ,r-rtracklayer)
8440 ("r-runit" ,r-runit)
8441 ("r-s4vectors" ,r-s4vectors)
8442 ("r-seqpattern" ,r-seqpattern)))
8443 (native-inputs
8444 `(("r-knitr" ,r-knitr)))
8445 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
8446 (synopsis "Summary, annotation and visualization of genomic data")
8447 (description
8448 "This package provides a package for summary and annotation of genomic
8449 intervals. Users can visualize and quantify genomic intervals over
8450 pre-defined functional regions, such as promoters, exons, introns, etc. The
8451 genomic intervals represent regions with a defined chromosome position, which
8452 may be associated with a score, such as aligned reads from HT-seq experiments,
8453 TF binding sites, methylation scores, etc. The package can use any tabular
8454 genomic feature data as long as it has minimal information on the locations of
8455 genomic intervals. In addition, it can use BAM or BigWig files as input.")
8456 (license license:artistic2.0)))
8457
8458 (define-public r-genomationdata
8459 (package
8460 (name "r-genomationdata")
8461 (version "1.14.0")
8462 (source (origin
8463 (method url-fetch)
8464 ;; We cannot use bioconductor-uri here because this tarball is
8465 ;; located under "data/annotation/" instead of "bioc/".
8466 (uri (string-append "https://bioconductor.org/packages/"
8467 "release/data/experiment/src/contrib/"
8468 "genomationData_" version ".tar.gz"))
8469 (sha256
8470 (base32
8471 "10xyb8akjrhmak2i0mnv1agny2ipy364q9nlibyplpzc7vdb6bw7"))))
8472 (build-system r-build-system)
8473 ;; As this package provides little more than large data files, it doesn't
8474 ;; make sense to build substitutes.
8475 (arguments `(#:substitutable? #f))
8476 (native-inputs
8477 `(("r-knitr" ,r-knitr)))
8478 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
8479 (synopsis "Experimental data for use with the genomation package")
8480 (description
8481 "This package contains experimental genetic data for use with the
8482 genomation package. Included are Chip Seq, Methylation and Cage data,
8483 downloaded from Encode.")
8484 (license license:gpl3+)))
8485
8486 (define-public r-seqlogo
8487 (package
8488 (name "r-seqlogo")
8489 (version "1.54.3")
8490 (source
8491 (origin
8492 (method url-fetch)
8493 (uri (bioconductor-uri "seqLogo" version))
8494 (sha256
8495 (base32
8496 "09kkxir305fv8z2yyihvspkrzclxbw1cx5mvhfkrhl10rap6662j"))))
8497 (properties `((upstream-name . "seqLogo")))
8498 (build-system r-build-system)
8499 (home-page "https://bioconductor.org/packages/seqLogo")
8500 (synopsis "Sequence logos for DNA sequence alignments")
8501 (description
8502 "seqLogo takes the position weight matrix of a DNA sequence motif and
8503 plots the corresponding sequence logo as introduced by Schneider and
8504 Stephens (1990).")
8505 (license license:lgpl2.0+)))
8506
8507 (define-public r-motifrg
8508 (package
8509 (name "r-motifrg")
8510 (version "1.31.0")
8511 (source
8512 (origin
8513 (method url-fetch)
8514 (uri (bioconductor-uri "motifRG" version))
8515 (sha256
8516 (base32
8517 "1ml6zyzlk8yjbnfhga2qnw8nl43rankvka0kc1yljxr2b66aqbhn"))))
8518 (properties `((upstream-name . "motifRG")))
8519 (build-system r-build-system)
8520 (propagated-inputs
8521 `(("r-biostrings" ,r-biostrings)
8522 ("r-bsgenome" ,r-bsgenome)
8523 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8524 ("r-iranges" ,r-iranges)
8525 ("r-seqlogo" ,r-seqlogo)
8526 ("r-xvector" ,r-xvector)))
8527 (home-page "https://bioconductor.org/packages/motifRG")
8528 (synopsis "Discover motifs in high throughput sequencing data")
8529 (description
8530 "This package provides tools for discriminative motif discovery in high
8531 throughput genetic sequencing data sets using regression methods.")
8532 (license license:artistic2.0)))
8533
8534 (define-public r-qtl
8535 (package
8536 (name "r-qtl")
8537 (version "1.46-2")
8538 (source
8539 (origin
8540 (method url-fetch)
8541 (uri (string-append "mirror://cran/src/contrib/qtl_"
8542 version ".tar.gz"))
8543 (sha256
8544 (base32
8545 "0rbwcnvyy96gq1dsgpxx03pv423qya26h6ws5y0blj3blfdmj83a"))))
8546 (build-system r-build-system)
8547 (home-page "https://rqtl.org/")
8548 (synopsis "R package for analyzing QTL experiments in genetics")
8549 (description "R/qtl is an extension library for the R statistics
8550 system. It is used to analyze experimental crosses for identifying
8551 genes contributing to variation in quantitative traits (so-called
8552 quantitative trait loci, QTLs).
8553
8554 Using a hidden Markov model, R/qtl estimates genetic maps, to
8555 identify genotyping errors, and to perform single-QTL and two-QTL,
8556 two-dimensional genome scans.")
8557 (license license:gpl3)))
8558
8559 (define-public r-qtl2
8560 (package
8561 (name "r-qtl2")
8562 (version "0.20")
8563 (source (origin
8564 (method git-fetch)
8565 ;; Not yet available in cran.
8566 (uri (git-reference
8567 (url "https://github.com/rqtl/qtl2.git")
8568 (commit version)))
8569 (file-name (git-file-name name version))
8570 (sha256
8571 (base32 "0l1asr28q25jzbwrbg5490962sg3y4sjrd0qf09p78ws1aq8vfs0"))))
8572 (build-system r-build-system)
8573 (propagated-inputs
8574 `(("r-data-table" ,r-data-table)
8575 ("r-jsonlite" ,r-jsonlite)
8576 ("r-rcpp" ,r-rcpp)
8577 ("r-rcppeigen" ,r-rcppeigen)
8578 ("r-rsqlite" ,r-rsqlite)
8579 ("r-yaml" ,r-yaml)))
8580 (home-page "https://kbroman.org/qtl2/")
8581 (synopsis
8582 "QTL analysis software for high-dimensional data and complex cross designs")
8583 (description
8584 "R/qtl2 (aka qtl2) is a reimplementation of the QTL analysis software
8585 R/qtl, to better handle high-dimensional data and complex cross designs.")
8586 (license license:gpl3)))
8587
8588 (define-public r-zlibbioc
8589 (package
8590 (name "r-zlibbioc")
8591 (version "1.34.0")
8592 (source (origin
8593 (method url-fetch)
8594 (uri (bioconductor-uri "zlibbioc" version))
8595 (sha256
8596 (base32
8597 "0j1l052jb2cwc1nifxzwknc9csagf4f2d092zs0i95dz0rma89l0"))))
8598 (properties
8599 `((upstream-name . "zlibbioc")))
8600 (build-system r-build-system)
8601 (home-page "https://bioconductor.org/packages/zlibbioc")
8602 (synopsis "Provider for zlib-1.2.5 to R packages")
8603 (description "This package uses the source code of zlib-1.2.5 to create
8604 libraries for systems that do not have these available via other means.")
8605 (license license:artistic2.0)))
8606
8607 (define-public r-r4rna
8608 (package
8609 (name "r-r4rna")
8610 (version "0.1.4")
8611 (source
8612 (origin
8613 (method url-fetch)
8614 (uri (string-append "http://www.e-rna.org/r-chie/files/R4RNA_"
8615 version ".tar.gz"))
8616 (sha256
8617 (base32
8618 "1p0i78wh76jfgmn9jphbwwaz6yy6pipzfg08xs54cxavxg2j81p5"))))
8619 (build-system r-build-system)
8620 (propagated-inputs
8621 `(("r-optparse" ,r-optparse)
8622 ("r-rcolorbrewer" ,r-rcolorbrewer)))
8623 (home-page "https://www.e-rna.org/r-chie/index.cgi")
8624 (synopsis "Analysis framework for RNA secondary structure")
8625 (description
8626 "The R4RNA package aims to be a general framework for the analysis of RNA
8627 secondary structure and comparative analysis in R.")
8628 (license license:gpl3+)))
8629
8630 (define-public r-rhtslib
8631 (package
8632 (name "r-rhtslib")
8633 (version "1.20.0")
8634 (source
8635 (origin
8636 (method url-fetch)
8637 (uri (bioconductor-uri "Rhtslib" version))
8638 (sha256
8639 (base32
8640 "186r7icrkzrni1c4n33ip7dlsfgys7hnqf0simvxrpl3yhh3ygdi"))))
8641 (properties `((upstream-name . "Rhtslib")))
8642 (build-system r-build-system)
8643 ;; Without this a temporary directory ends up in the Rhtslib.so binary,
8644 ;; which makes R abort the build.
8645 (arguments '(#:configure-flags '("--no-staged-install")))
8646 (propagated-inputs
8647 `(("curl" ,curl)
8648 ("r-zlibbioc" ,r-zlibbioc)))
8649 (inputs
8650 `(("zlib" ,zlib)))
8651 (native-inputs
8652 `(("pkg-config" ,pkg-config)
8653 ("r-knitr" ,r-knitr)))
8654 (home-page "https://github.com/nhayden/Rhtslib")
8655 (synopsis "High-throughput sequencing library as an R package")
8656 (description
8657 "This package provides the HTSlib C library for high-throughput
8658 nucleotide sequence analysis. The package is primarily useful to developers
8659 of other R packages who wish to make use of HTSlib.")
8660 (license license:lgpl2.0+)))
8661
8662 (define-public r-bamsignals
8663 (package
8664 (name "r-bamsignals")
8665 (version "1.20.0")
8666 (source
8667 (origin
8668 (method url-fetch)
8669 (uri (bioconductor-uri "bamsignals" version))
8670 (sha256
8671 (base32
8672 "0p858xxfv79yc8b3lq58zl9f00irvbn3czsd8wdi5040xg42m402"))))
8673 (build-system r-build-system)
8674 (propagated-inputs
8675 `(("r-biocgenerics" ,r-biocgenerics)
8676 ("r-genomicranges" ,r-genomicranges)
8677 ("r-iranges" ,r-iranges)
8678 ("r-rcpp" ,r-rcpp)
8679 ("r-rhtslib" ,r-rhtslib)
8680 ("r-zlibbioc" ,r-zlibbioc)))
8681 (inputs
8682 `(("zlib" ,zlib)))
8683 (native-inputs
8684 `(("r-knitr" ,r-knitr)))
8685 (home-page "https://bioconductor.org/packages/bamsignals")
8686 (synopsis "Extract read count signals from bam files")
8687 (description
8688 "This package efficiently obtains count vectors from indexed bam
8689 files. It counts the number of nucleotide sequence reads in given genomic
8690 ranges and it computes reads profiles and coverage profiles. It also handles
8691 paired-end data.")
8692 (license license:gpl2+)))
8693
8694 (define-public r-rcas
8695 (package
8696 (name "r-rcas")
8697 (version "1.14.0")
8698 (source (origin
8699 (method url-fetch)
8700 (uri (bioconductor-uri "RCAS" version))
8701 (sha256
8702 (base32
8703 "0f812pgv3ys1zv4n9sqkgm01hj4cdd0i0h85dqbhkwd94zl6cavl"))))
8704 (properties `((upstream-name . "RCAS")))
8705 (build-system r-build-system)
8706 (propagated-inputs
8707 `(("r-biocgenerics" ,r-biocgenerics)
8708 ("r-biostrings" ,r-biostrings)
8709 ("r-bsgenome" ,r-bsgenome)
8710 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8711 ("r-cowplot" ,r-cowplot)
8712 ("r-data-table" ,r-data-table)
8713 ("r-dt" ,r-dt)
8714 ("r-genomation" ,r-genomation)
8715 ("r-genomeinfodb" ,r-genomeinfodb)
8716 ("r-genomicfeatures" ,r-genomicfeatures)
8717 ("r-genomicranges" ,r-genomicranges)
8718 ("r-ggplot2" ,r-ggplot2)
8719 ("r-ggseqlogo" ,r-ggseqlogo)
8720 ("r-gprofiler2" ,r-gprofiler2)
8721 ("r-iranges" ,r-iranges)
8722 ("r-pbapply" ,r-pbapply)
8723 ("r-pheatmap" ,r-pheatmap)
8724 ("r-plotly" ,r-plotly)
8725 ("r-plotrix" ,r-plotrix)
8726 ("r-proxy" ,r-proxy)
8727 ("r-ranger" ,r-ranger)
8728 ("r-rsqlite" ,r-rsqlite)
8729 ("r-rtracklayer" ,r-rtracklayer)
8730 ("r-rmarkdown" ,r-rmarkdown)
8731 ("r-s4vectors" ,r-s4vectors)
8732 ("pandoc" ,ghc-pandoc)))
8733 (native-inputs
8734 `(("r-knitr" ,r-knitr)))
8735 (synopsis "RNA-centric annotation system")
8736 (description
8737 "RCAS aims to be a standalone RNA-centric annotation system that provides
8738 intuitive reports and publication-ready graphics. This package provides the R
8739 library implementing most of the pipeline's features.")
8740 (home-page "https://github.com/BIMSBbioinfo/RCAS")
8741 (license license:artistic2.0)))
8742
8743 (define-public rcas-web
8744 (package
8745 (name "rcas-web")
8746 (version "0.1.0")
8747 (source
8748 (origin
8749 (method url-fetch)
8750 (uri (string-append "https://github.com/BIMSBbioinfo/rcas-web/"
8751 "releases/download/v" version
8752 "/rcas-web-" version ".tar.gz"))
8753 (sha256
8754 (base32
8755 "0wq951aj45gqki1bickg876i993lmawkp8x24agg264br5x716db"))))
8756 (build-system gnu-build-system)
8757 (arguments
8758 `(#:phases
8759 (modify-phases %standard-phases
8760 (add-before 'configure 'find-RCAS
8761 ;; The configure script can't find non-1.3.x versions of RCAS because
8762 ;; its R expression ‘1.10.1 >= 1.3.4’ evaluates to false.
8763 (lambda _
8764 (substitute* "configure"
8765 (("1\\.3\\.4") "0.0.0"))
8766 #t))
8767 (add-after 'install 'wrap-executable
8768 (lambda* (#:key inputs outputs #:allow-other-keys)
8769 (let* ((out (assoc-ref outputs "out"))
8770 (json (assoc-ref inputs "guile-json"))
8771 (redis (assoc-ref inputs "guile-redis"))
8772 (path (string-append
8773 json "/share/guile/site/2.2:"
8774 redis "/share/guile/site/2.2")))
8775 (wrap-program (string-append out "/bin/rcas-web")
8776 `("GUILE_LOAD_PATH" ":" = (,path))
8777 `("GUILE_LOAD_COMPILED_PATH" ":" = (,path))
8778 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
8779 #t)))))
8780 (inputs
8781 `(("r-minimal" ,r-minimal)
8782 ("r-rcas" ,r-rcas)
8783 ("guile" ,guile-2.2)
8784 ("guile-json" ,guile-json-1)
8785 ("guile-redis" ,guile2.2-redis)))
8786 (native-inputs
8787 `(("pkg-config" ,pkg-config)))
8788 (home-page "https://github.com/BIMSBbioinfo/rcas-web")
8789 (synopsis "Web interface for RNA-centric annotation system (RCAS)")
8790 (description "This package provides a simple web interface for the
8791 @dfn{RNA-centric annotation system} (RCAS).")
8792 (license license:agpl3+)))
8793
8794 (define-public r-mutationalpatterns
8795 (package
8796 (name "r-mutationalpatterns")
8797 (version "2.0.0")
8798 (source
8799 (origin
8800 (method url-fetch)
8801 (uri (bioconductor-uri "MutationalPatterns" version))
8802 (sha256
8803 (base32
8804 "02lyjiabyhmifycksvpcx29a0pb7z9xjw0hgg8n0sd0dy3afqhcm"))))
8805 (build-system r-build-system)
8806 (propagated-inputs
8807 `(("r-biocgenerics" ,r-biocgenerics)
8808 ("r-biostrings" ,r-biostrings)
8809 ;; These two packages are suggested packages
8810 ("r-bsgenome-hsapiens-1000g" ,r-bsgenome-hsapiens-1000genomes-hs37d5)
8811 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8812 ("r-genomicranges" ,r-genomicranges)
8813 ("r-genomeinfodb" ,r-genomeinfodb)
8814 ("r-ggplot2" ,r-ggplot2)
8815 ("r-iranges" ,r-iranges)
8816 ("r-nmf" ,r-nmf)
8817 ("r-plyr" ,r-plyr)
8818 ("r-pracma" ,r-pracma)
8819 ("r-reshape2" ,r-reshape2)
8820 ("r-cowplot" ,r-cowplot)
8821 ("r-ggdendro" ,r-ggdendro)
8822 ("r-s4vectors" ,r-s4vectors)
8823 ("r-summarizedexperiment" ,r-summarizedexperiment)
8824 ("r-variantannotation" ,r-variantannotation)))
8825 (home-page "https://bioconductor.org/packages/MutationalPatterns/")
8826 (synopsis "Extract and visualize mutational patterns in genomic data")
8827 (description "This package provides an extensive toolset for the
8828 characterization and visualization of a wide range of mutational patterns
8829 in SNV base substitution data.")
8830 (license license:expat)))
8831
8832 (define-public r-chipkernels
8833 (let ((commit "c9cfcacb626b1221094fb3490ea7bac0fd625372")
8834 (revision "1"))
8835 (package
8836 (name "r-chipkernels")
8837 (version (string-append "1.1-" revision "." (string-take commit 9)))
8838 (source
8839 (origin
8840 (method git-fetch)
8841 (uri (git-reference
8842 (url "https://github.com/ManuSetty/ChIPKernels.git")
8843 (commit commit)))
8844 (file-name (string-append name "-" version))
8845 (sha256
8846 (base32
8847 "14bj5qhjm1hsm9ay561nfbqi9wxsa7y487df2idsaaf6z10nw4v0"))))
8848 (build-system r-build-system)
8849 (propagated-inputs
8850 `(("r-iranges" ,r-iranges)
8851 ("r-xvector" ,r-xvector)
8852 ("r-biostrings" ,r-biostrings)
8853 ("r-bsgenome" ,r-bsgenome)
8854 ("r-gtools" ,r-gtools)
8855 ("r-genomicranges" ,r-genomicranges)
8856 ("r-sfsmisc" ,r-sfsmisc)
8857 ("r-kernlab" ,r-kernlab)
8858 ("r-s4vectors" ,r-s4vectors)
8859 ("r-biocgenerics" ,r-biocgenerics)))
8860 (home-page "https://github.com/ManuSetty/ChIPKernels")
8861 (synopsis "Build string kernels for DNA Sequence analysis")
8862 (description "ChIPKernels is an R package for building different string
8863 kernels used for DNA Sequence analysis. A dictionary of the desired kernel
8864 must be built and this dictionary can be used for determining kernels for DNA
8865 Sequences.")
8866 (license license:gpl2+))))
8867
8868 (define-public r-seqgl
8869 (package
8870 (name "r-seqgl")
8871 (version "1.1.4")
8872 (source
8873 (origin
8874 (method git-fetch)
8875 (uri (git-reference
8876 (url "https://github.com/ManuSetty/SeqGL.git")
8877 (commit version)))
8878 (file-name (git-file-name name version))
8879 (sha256
8880 (base32
8881 "1r6ywvhxl3ffv48lgj7sbd582mcc6dha3ksgc2qjlvjrnkbj3799"))))
8882 (build-system r-build-system)
8883 (propagated-inputs
8884 `(("r-biostrings" ,r-biostrings)
8885 ("r-chipkernels" ,r-chipkernels)
8886 ("r-genomicranges" ,r-genomicranges)
8887 ("r-spams" ,r-spams)
8888 ("r-wgcna" ,r-wgcna)
8889 ("r-fastcluster" ,r-fastcluster)))
8890 (home-page "https://github.com/ManuSetty/SeqGL")
8891 (synopsis "Group lasso for Dnase/ChIP-seq data")
8892 (description "SeqGL is a group lasso based algorithm to extract
8893 transcription factor sequence signals from ChIP, DNase and ATAC-seq profiles.
8894 This package presents a method which uses group lasso to discriminate between
8895 bound and non bound genomic regions to accurately identify transcription
8896 factors bound at the specific regions.")
8897 (license license:gpl2+)))
8898
8899 (define-public r-tximport
8900 (package
8901 (name "r-tximport")
8902 (version "1.16.1")
8903 (source (origin
8904 (method url-fetch)
8905 (uri (bioconductor-uri "tximport" version))
8906 (sha256
8907 (base32
8908 "1x9959lkjl2h869rgd1b30q1idxzjkr1fyqbpndqk3kbi4q2gr40"))))
8909 (build-system r-build-system)
8910 (native-inputs
8911 `(("r-knitr" ,r-knitr)))
8912 (home-page "https://bioconductor.org/packages/tximport")
8913 (synopsis "Import and summarize transcript-level estimates for gene-level analysis")
8914 (description
8915 "This package provides tools to import transcript-level abundance,
8916 estimated counts and transcript lengths, and to summarize them into matrices
8917 for use with downstream gene-level analysis packages. Average transcript
8918 length, weighted by sample-specific transcript abundance estimates, is
8919 provided as a matrix which can be used as an offset for different expression
8920 of gene-level counts.")
8921 (license license:gpl2+)))
8922
8923 (define-public r-rhdf5
8924 (package
8925 (name "r-rhdf5")
8926 (version "2.32.0")
8927 (source (origin
8928 (method url-fetch)
8929 (uri (bioconductor-uri "rhdf5" version))
8930 (sha256
8931 (base32
8932 "097znwl95y2vd6asyqxs62m7binwxqmna7ss0302yl3b0s72skcy"))))
8933 (build-system r-build-system)
8934 (propagated-inputs
8935 `(("r-rhdf5lib" ,r-rhdf5lib)))
8936 (inputs
8937 `(("zlib" ,zlib)))
8938 (native-inputs
8939 `(("r-knitr" ,r-knitr)))
8940 (home-page "https://bioconductor.org/packages/rhdf5")
8941 (synopsis "HDF5 interface to R")
8942 (description
8943 "This R/Bioconductor package provides an interface between HDF5 and R.
8944 HDF5's main features are the ability to store and access very large and/or
8945 complex datasets and a wide variety of metadata on mass storage (disk) through
8946 a completely portable file format. The rhdf5 package is thus suited for the
8947 exchange of large and/or complex datasets between R and other software
8948 package, and for letting R applications work on datasets that are larger than
8949 the available RAM.")
8950 (license license:artistic2.0)))
8951
8952 (define-public r-annotationfilter
8953 (package
8954 (name "r-annotationfilter")
8955 (version "1.12.0")
8956 (source (origin
8957 (method url-fetch)
8958 (uri (bioconductor-uri "AnnotationFilter" version))
8959 (sha256
8960 (base32
8961 "18kh1xrhpwb48s1qj4f1v8af3jmw49pnbp5afi2myn9894hxg0cs"))))
8962 (properties
8963 `((upstream-name . "AnnotationFilter")))
8964 (build-system r-build-system)
8965 (propagated-inputs
8966 `(("r-genomicranges" ,r-genomicranges)
8967 ("r-lazyeval" ,r-lazyeval)))
8968 (native-inputs
8969 `(("r-knitr" ,r-knitr)))
8970 (home-page "https://github.com/Bioconductor/AnnotationFilter")
8971 (synopsis "Facilities for filtering Bioconductor annotation resources")
8972 (description
8973 "This package provides classes and other infrastructure to implement
8974 filters for manipulating Bioconductor annotation resources. The filters are
8975 used by @code{ensembldb}, @code{Organism.dplyr}, and other packages.")
8976 (license license:artistic2.0)))
8977
8978 (define-public emboss
8979 (package
8980 (name "emboss")
8981 (version "6.5.7")
8982 (source (origin
8983 (method url-fetch)
8984 (uri (string-append "ftp://emboss.open-bio.org/pub/EMBOSS/old/"
8985 (version-major+minor version) ".0/"
8986 "EMBOSS-" version ".tar.gz"))
8987 (sha256
8988 (base32
8989 "0vsmz96gc411yj2iyzdrsmg4l2n1nhgmp7vrgzlxx3xixv9xbf0q"))))
8990 (build-system gnu-build-system)
8991 (arguments
8992 `(#:configure-flags
8993 (list (string-append "--with-hpdf="
8994 (assoc-ref %build-inputs "libharu")))
8995 #:phases
8996 (modify-phases %standard-phases
8997 (add-after 'unpack 'fix-checks
8998 (lambda _
8999 ;; The PNGDRIVER tests check for the presence of libgd, libpng
9000 ;; and zlib, but assume that they are all found at the same
9001 ;; prefix.
9002 (substitute* "configure.in"
9003 (("CHECK_PNGDRIVER")
9004 "LIBS=\"$LIBS -lgd -lpng -lz -lm\"
9005 AC_DEFINE([PLD_png], [1], [Define to 1 if PNG support is available])
9006 AM_CONDITIONAL(AMPNG, true)"))
9007 #t))
9008 (add-after 'fix-checks 'disable-update-check
9009 (lambda _
9010 ;; At build time there is no connection to the Internet, so
9011 ;; looking for updates will not work.
9012 (substitute* "Makefile.am"
9013 (("\\$\\(bindir\\)/embossupdate") ""))
9014 #t))
9015 (add-after 'disable-update-check 'autogen
9016 (lambda _ (invoke "autoreconf" "-vif") #t)))))
9017 (inputs
9018 `(("perl" ,perl)
9019 ("libpng" ,libpng)
9020 ("gd" ,gd)
9021 ("libx11" ,libx11)
9022 ("libharu" ,libharu)
9023 ("zlib" ,zlib)))
9024 (native-inputs
9025 `(("autoconf" ,autoconf)
9026 ("automake" ,automake)
9027 ("libtool" ,libtool)
9028 ("pkg-config" ,pkg-config)))
9029 (home-page "http://emboss.sourceforge.net")
9030 (synopsis "Molecular biology analysis suite")
9031 (description "EMBOSS is the \"European Molecular Biology Open Software
9032 Suite\". EMBOSS is an analysis package specially developed for the needs of
9033 the molecular biology (e.g. EMBnet) user community. The software
9034 automatically copes with data in a variety of formats and even allows
9035 transparent retrieval of sequence data from the web. It also provides a
9036 number of libraries for the development of software in the field of molecular
9037 biology. EMBOSS also integrates a range of currently available packages and
9038 tools for sequence analysis into a seamless whole.")
9039 (license license:gpl2+)))
9040
9041 (define-public bits
9042 (let ((revision "1")
9043 (commit "3cc4567896d9d6442923da944beb704750a08d2d"))
9044 (package
9045 (name "bits")
9046 ;; The version is 2.13.0 even though no release archives have been
9047 ;; published as yet.
9048 (version (string-append "2.13.0-" revision "." (string-take commit 9)))
9049 (source (origin
9050 (method git-fetch)
9051 (uri (git-reference
9052 (url "https://github.com/arq5x/bits.git")
9053 (commit commit)))
9054 (file-name (string-append name "-" version "-checkout"))
9055 (sha256
9056 (base32
9057 "17n2kffk4kmhivd8c98g2vr6y1s23vbg4sxlxs689wni66797hbs"))))
9058 (build-system gnu-build-system)
9059 (arguments
9060 `(#:tests? #f ;no tests included
9061 #:phases
9062 (modify-phases %standard-phases
9063 (delete 'configure)
9064 (add-after 'unpack 'remove-cuda
9065 (lambda _
9066 (substitute* "Makefile"
9067 ((".*_cuda") "")
9068 (("(bits_test_intersections) \\\\" _ match) match))
9069 #t))
9070 (replace 'install
9071 (lambda* (#:key outputs #:allow-other-keys)
9072 (copy-recursively
9073 "bin" (string-append (assoc-ref outputs "out") "/bin"))
9074 #t)))))
9075 (inputs
9076 `(("gsl" ,gsl)
9077 ("zlib" ,zlib)))
9078 (home-page "https://github.com/arq5x/bits")
9079 (synopsis "Implementation of binary interval search algorithm")
9080 (description "This package provides an implementation of the
9081 BITS (Binary Interval Search) algorithm, an approach to interval set
9082 intersection. It is especially suited for the comparison of diverse genomic
9083 datasets and the exploration of large datasets of genome
9084 intervals (e.g. genes, sequence alignments).")
9085 (license license:gpl2))))
9086
9087 (define-public piranha
9088 ;; There is no release tarball for the latest version. The latest commit is
9089 ;; older than one year at the time of this writing.
9090 (let ((revision "1")
9091 (commit "0466d364b71117d01e4471b74c514436cc281233"))
9092 (package
9093 (name "piranha")
9094 (version (string-append "1.2.1-" revision "." (string-take commit 9)))
9095 (source (origin
9096 (method git-fetch)
9097 (uri (git-reference
9098 (url "https://github.com/smithlabcode/piranha.git")
9099 (commit commit)))
9100 (file-name (git-file-name name version))
9101 (sha256
9102 (base32
9103 "117dc0zf20c61jam69sk4abl57ah6yi6i7qra7d7y5zrbgk12q5n"))))
9104 (build-system gnu-build-system)
9105 (arguments
9106 `(#:test-target "test"
9107 #:phases
9108 (modify-phases %standard-phases
9109 (add-after 'unpack 'copy-smithlab-cpp
9110 (lambda* (#:key inputs #:allow-other-keys)
9111 (for-each (lambda (file)
9112 (install-file file "./src/smithlab_cpp/"))
9113 (find-files (assoc-ref inputs "smithlab-cpp")))
9114 #t))
9115 (add-after 'install 'install-to-store
9116 (lambda* (#:key outputs #:allow-other-keys)
9117 (let* ((out (assoc-ref outputs "out"))
9118 (bin (string-append out "/bin")))
9119 (for-each (lambda (file)
9120 (install-file file bin))
9121 (find-files "bin" ".*")))
9122 #t)))
9123 #:configure-flags
9124 (list (string-append "--with-bam_tools_headers="
9125 (assoc-ref %build-inputs "bamtools") "/include/bamtools")
9126 (string-append "--with-bam_tools_library="
9127 (assoc-ref %build-inputs "bamtools") "/lib/bamtools"))))
9128 (inputs
9129 `(("bamtools" ,bamtools)
9130 ("samtools" ,samtools-0.1)
9131 ("gsl" ,gsl)
9132 ("smithlab-cpp"
9133 ,(let ((commit "3723e2db438c51501d0423429ff396c3035ba46a"))
9134 (origin
9135 (method git-fetch)
9136 (uri (git-reference
9137 (url "https://github.com/smithlabcode/smithlab_cpp.git")
9138 (commit commit)))
9139 (file-name (string-append "smithlab_cpp-" commit "-checkout"))
9140 (sha256
9141 (base32
9142 "0l4gvbwslw5ngziskja41c00x1r06l3yidv7y0xw9djibhykzy0g")))))))
9143 (native-inputs
9144 `(("python" ,python-2)))
9145 (home-page "https://github.com/smithlabcode/piranha")
9146 (synopsis "Peak-caller for CLIP-seq and RIP-seq data")
9147 (description
9148 "Piranha is a peak-caller for genomic data produced by CLIP-seq and
9149 RIP-seq experiments. It takes input in BED or BAM format and identifies
9150 regions of statistically significant read enrichment. Additional covariates
9151 may optionally be provided to further inform the peak-calling process.")
9152 (license license:gpl3+))))
9153
9154 (define-public pepr
9155 (package
9156 (name "pepr")
9157 (version "1.0.9")
9158 (source (origin
9159 (method url-fetch)
9160 (uri (pypi-uri "PePr" version))
9161 (sha256
9162 (base32
9163 "0qxjfdpl1b1y53nccws2d85f6k74zwmx8y8sd9rszcqhfayx6gdx"))))
9164 (build-system python-build-system)
9165 (arguments
9166 `(#:python ,python-2 ; python2 only
9167 #:tests? #f)) ; no tests included
9168 (propagated-inputs
9169 `(("python2-numpy" ,python2-numpy)
9170 ("python2-scipy" ,python2-scipy)
9171 ("python2-pysam" ,python2-pysam)))
9172 (home-page "https://github.com/shawnzhangyx/PePr")
9173 (synopsis "Peak-calling and prioritization pipeline for ChIP-Seq data")
9174 (description
9175 "PePr is a ChIP-Seq peak calling or differential binding analysis tool
9176 that is primarily designed for data with biological replicates. It uses a
9177 negative binomial distribution to model the read counts among the samples in
9178 the same group, and look for consistent differences between ChIP and control
9179 group or two ChIP groups run under different conditions.")
9180 (license license:gpl3+)))
9181
9182 (define-public filevercmp
9183 (let ((commit "1a9b779b93d0b244040274794d402106907b71b7"))
9184 (package
9185 (name "filevercmp")
9186 (version (string-append "0-1." (string-take commit 7)))
9187 (source (origin
9188 (method git-fetch)
9189 (uri (git-reference
9190 (url "https://github.com/ekg/filevercmp.git")
9191 (commit commit)))
9192 (file-name (git-file-name name commit))
9193 (sha256
9194 (base32
9195 "1j9vxsy0y050v59h0q1d6501fcw1kjvj0d18l1xk2zyg0jzj247c"))))
9196 (build-system gnu-build-system)
9197 (arguments
9198 `(#:tests? #f ; There are no tests to run.
9199 #:phases
9200 (modify-phases %standard-phases
9201 (delete 'configure) ; There is no configure phase.
9202 (replace 'install
9203 (lambda* (#:key outputs #:allow-other-keys)
9204 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
9205 (install-file "filevercmp" bin)
9206 #t))))))
9207 (home-page "https://github.com/ekg/filevercmp")
9208 (synopsis "This program compares version strings")
9209 (description "This program compares version strings. It intends to be a
9210 replacement for strverscmp.")
9211 (license license:gpl3+))))
9212
9213 (define-public multiqc
9214 (package
9215 (name "multiqc")
9216 (version "1.5")
9217 (source
9218 (origin
9219 (method url-fetch)
9220 (uri (pypi-uri "multiqc" version))
9221 (sha256
9222 (base32
9223 "02iihfl0w0hpnr4pa0sbd1y9qxrg3ycyhjp5lidkcrqh1lmzs3zy"))))
9224 (build-system python-build-system)
9225 (propagated-inputs
9226 `(("python-jinja2" ,python-jinja2)
9227 ("python-simplejson" ,python-simplejson)
9228 ("python-pyyaml" ,python-pyyaml)
9229 ("python-click" ,python-click)
9230 ("python-spectra" ,python-spectra)
9231 ("python-requests" ,python-requests)
9232 ("python-markdown" ,python-markdown)
9233 ("python-lzstring" ,python-lzstring)
9234 ("python-matplotlib" ,python-matplotlib)
9235 ("python-numpy" ,python-numpy)
9236 ;; MultQC checks for the presence of nose at runtime.
9237 ("python-nose" ,python-nose)))
9238 (arguments
9239 `(#:phases
9240 (modify-phases %standard-phases
9241 (add-after 'unpack 'relax-requirements
9242 (lambda _
9243 (substitute* "setup.py"
9244 ;; MultiQC 1.5 ‘requires’ a version of python-matplotlib older
9245 ;; than the one in Guix, but should work fine with 2.2.2.
9246 ;; See <https://github.com/ewels/MultiQC/issues/725> and
9247 ;; <https://github.com/ewels/MultiQC/issues/732> for details.
9248 (("['\"]matplotlib.*?['\"]")
9249 "'matplotlib'"))
9250 #t)))))
9251 (home-page "https://multiqc.info")
9252 (synopsis "Aggregate bioinformatics analysis reports")
9253 (description
9254 "MultiQC is a tool to aggregate bioinformatics results across many
9255 samples into a single report. It contains modules for a large number of
9256 common bioinformatics tools.")
9257 (license license:gpl3+)))
9258
9259 (define-public variant-tools
9260 (package
9261 (name "variant-tools")
9262 (version "3.1.2")
9263 (source
9264 (origin
9265 (method git-fetch)
9266 (uri (git-reference
9267 (url "https://github.com/vatlab/varianttools.git")
9268 ;; There is no tag corresponding to version 3.1.2
9269 (commit "813ae4a90d25b69abc8a40f4f70441fe09015249")))
9270 (file-name (git-file-name name version))
9271 (sha256
9272 (base32
9273 "12ibdmksj7icyqhks4xyvd61bygk4pjmxn618kp6vgk1af01y34g"))))
9274 (build-system python-build-system)
9275 (inputs
9276 `(("boost" ,boost)
9277 ("c-blosc" ,c-blosc)
9278 ("gsl" ,gsl)
9279 ("hdf5" ,hdf5)
9280 ("hdf5-blosc" ,hdf5-blosc)
9281 ("python-cython" ,python-cython)
9282 ("zlib" ,zlib)))
9283 (propagated-inputs
9284 `(("python-numpy" ,python-numpy)
9285 ("python-pycurl" ,python-pycurl)
9286 ("python-pyzmq" ,python-pyzmq)
9287 ("python-scipy" ,python-scipy)
9288 ("python-tables" ,python-tables)))
9289 (home-page "https://vatlab.github.io/vat-docs/")
9290 (synopsis "Analyze genetic variants from Next-Gen sequencing studies")
9291 (description
9292 "Variant tools is a tool for the manipulation, annotation,
9293 selection, simulation, and analysis of variants in the context of next-gen
9294 sequencing analysis. Unlike some other tools used for next-gen sequencing
9295 analysis, variant tools is project based and provides a whole set of tools to
9296 manipulate and analyze genetic variants.")
9297 (license license:gpl3+)))
9298
9299 (define-public r-chipseq
9300 (package
9301 (name "r-chipseq")
9302 (version "1.38.0")
9303 (source
9304 (origin
9305 (method url-fetch)
9306 (uri (bioconductor-uri "chipseq" version))
9307 (sha256
9308 (base32
9309 "0lh859s0aq73vac1phcgagf6n000qgq2xsk0bmfr61n5swifml2a"))))
9310 (build-system r-build-system)
9311 (propagated-inputs
9312 `(("r-biocgenerics" ,r-biocgenerics)
9313 ("r-genomicranges" ,r-genomicranges)
9314 ("r-iranges" ,r-iranges)
9315 ("r-lattice" ,r-lattice)
9316 ("r-s4vectors" ,r-s4vectors)
9317 ("r-shortread" ,r-shortread)))
9318 (home-page "https://bioconductor.org/packages/chipseq")
9319 (synopsis "Package for analyzing ChIPseq data")
9320 (description
9321 "This package provides tools for processing short read data from ChIPseq
9322 experiments.")
9323 (license license:artistic2.0)))
9324
9325 (define-public r-copyhelper
9326 (package
9327 (name "r-copyhelper")
9328 (version "1.6.0")
9329 (source
9330 (origin
9331 (method url-fetch)
9332 (uri (string-append "https://bioconductor.org/packages/release/"
9333 "data/experiment/src/contrib/CopyhelpeR_"
9334 version ".tar.gz"))
9335 (sha256
9336 (base32
9337 "0x7cyynjmxls9as2gg0iyp9x5fpalxmdjq914ss7i84i9zyk5bhq"))))
9338 (properties `((upstream-name . "CopyhelpeR")))
9339 (build-system r-build-system)
9340 (home-page "https://bioconductor.org/packages/CopyhelpeR/")
9341 (synopsis "Helper files for CopywriteR")
9342 (description
9343 "This package contains the helper files that are required to run the
9344 Bioconductor package CopywriteR. It contains pre-assembled 1kb bin GC-content
9345 and mappability files for the reference genomes hg18, hg19, hg38, mm9 and
9346 mm10. In addition, it contains a blacklist filter to remove regions that
9347 display copy number variation. Files are stored as GRanges objects from the
9348 GenomicRanges Bioconductor package.")
9349 (license license:gpl2)))
9350
9351 (define-public r-copywriter
9352 (package
9353 (name "r-copywriter")
9354 (version "2.20.0")
9355 (source
9356 (origin
9357 (method url-fetch)
9358 (uri (bioconductor-uri "CopywriteR" version))
9359 (sha256
9360 (base32
9361 "0c36wpv0rygkbqpf3dwh5xmc3lr7p8lrdzsq2fbbpw04skl6i7m2"))))
9362 (properties `((upstream-name . "CopywriteR")))
9363 (build-system r-build-system)
9364 (propagated-inputs
9365 `(("r-biocparallel" ,r-biocparallel)
9366 ("r-chipseq" ,r-chipseq)
9367 ("r-copyhelper" ,r-copyhelper)
9368 ("r-data-table" ,r-data-table)
9369 ("r-dnacopy" ,r-dnacopy)
9370 ("r-futile-logger" ,r-futile-logger)
9371 ("r-genomeinfodb" ,r-genomeinfodb)
9372 ("r-genomicalignments" ,r-genomicalignments)
9373 ("r-genomicranges" ,r-genomicranges)
9374 ("r-gtools" ,r-gtools)
9375 ("r-iranges" ,r-iranges)
9376 ("r-matrixstats" ,r-matrixstats)
9377 ("r-rsamtools" ,r-rsamtools)
9378 ("r-s4vectors" ,r-s4vectors)))
9379 (home-page "https://github.com/PeeperLab/CopywriteR")
9380 (synopsis "Copy number information from targeted sequencing")
9381 (description
9382 "CopywriteR extracts DNA copy number information from targeted sequencing
9383 by utilizing off-target reads. It allows for extracting uniformly distributed
9384 copy number information, can be used without reference, and can be applied to
9385 sequencing data obtained from various techniques including chromatin
9386 immunoprecipitation and target enrichment on small gene panels. Thereby,
9387 CopywriteR constitutes a widely applicable alternative to available copy
9388 number detection tools.")
9389 (license license:gpl2)))
9390
9391 (define-public r-methylkit
9392 (package
9393 (name "r-methylkit")
9394 (version "1.14.2")
9395 (source (origin
9396 (method url-fetch)
9397 (uri (bioconductor-uri "methylKit" version))
9398 (sha256
9399 (base32
9400 "1qr13d2712ypbn96ijic2z5adr5dsd61kzscx7shw6vyj360rlm5"))))
9401 (properties `((upstream-name . "methylKit")))
9402 (build-system r-build-system)
9403 (propagated-inputs
9404 `(("r-data-table" ,r-data-table)
9405 ("r-emdbook" ,r-emdbook)
9406 ("r-fastseg" ,r-fastseg)
9407 ("r-genomeinfodb" ,r-genomeinfodb)
9408 ("r-genomicranges" ,r-genomicranges)
9409 ("r-gtools" ,r-gtools)
9410 ("r-iranges" ,r-iranges)
9411 ("r-kernsmooth" ,r-kernsmooth)
9412 ("r-limma" ,r-limma)
9413 ("r-mclust" ,r-mclust)
9414 ("r-mgcv" ,r-mgcv)
9415 ("r-qvalue" ,r-qvalue)
9416 ("r-r-utils" ,r-r-utils)
9417 ("r-rcpp" ,r-rcpp)
9418 ("r-rhtslib" ,r-rhtslib)
9419 ("r-rsamtools" ,r-rsamtools)
9420 ("r-rtracklayer" ,r-rtracklayer)
9421 ("r-s4vectors" ,r-s4vectors)
9422 ("r-zlibbioc" ,r-zlibbioc)))
9423 (native-inputs
9424 `(("r-knitr" ,r-knitr))) ; for vignettes
9425 (inputs
9426 `(("zlib" ,zlib)))
9427 (home-page "https://github.com/al2na/methylKit")
9428 (synopsis
9429 "DNA methylation analysis from high-throughput bisulfite sequencing results")
9430 (description
9431 "MethylKit is an R package for DNA methylation analysis and annotation
9432 from high-throughput bisulfite sequencing. The package is designed to deal
9433 with sequencing data from @dfn{Reduced representation bisulfite
9434 sequencing} (RRBS) and its variants, but also target-capture methods and whole
9435 genome bisulfite sequencing. It also has functions to analyze base-pair
9436 resolution 5hmC data from experimental protocols such as oxBS-Seq and
9437 TAB-Seq.")
9438 (license license:artistic2.0)))
9439
9440 (define-public r-sva
9441 (package
9442 (name "r-sva")
9443 (version "3.36.0")
9444 (source
9445 (origin
9446 (method url-fetch)
9447 (uri (bioconductor-uri "sva" version))
9448 (sha256
9449 (base32
9450 "0xa1lm0k1a6nig90mab6xh4gln88rbs5l1cdr6ik6agg7jhs7ji4"))))
9451 (build-system r-build-system)
9452 (propagated-inputs
9453 `(("r-edger" ,r-edger)
9454 ("r-genefilter" ,r-genefilter)
9455 ("r-mgcv" ,r-mgcv)
9456 ("r-biocparallel" ,r-biocparallel)
9457 ("r-matrixstats" ,r-matrixstats)
9458 ("r-limma" ,r-limma)))
9459 (home-page "https://bioconductor.org/packages/sva")
9460 (synopsis "Surrogate variable analysis")
9461 (description
9462 "This package contains functions for removing batch effects and other
9463 unwanted variation in high-throughput experiment. It also contains functions
9464 for identifying and building surrogate variables for high-dimensional data
9465 sets. Surrogate variables are covariates constructed directly from
9466 high-dimensional data like gene expression/RNA sequencing/methylation/brain
9467 imaging data that can be used in subsequent analyses to adjust for unknown,
9468 unmodeled, or latent sources of noise.")
9469 (license license:artistic2.0)))
9470
9471 (define-public r-seqminer
9472 (package
9473 (name "r-seqminer")
9474 (version "8.0")
9475 (source
9476 (origin
9477 (method url-fetch)
9478 (uri (cran-uri "seqminer" version))
9479 (sha256
9480 (base32
9481 "00jzj8mwb0zaiwlifd41b26mrq9mzigj18nc29dydi0r42hxg16i"))))
9482 (build-system r-build-system)
9483 (inputs
9484 `(("zlib" ,zlib)))
9485 (home-page "http://seqminer.genomic.codes")
9486 (synopsis "Read nucleotide sequence data (VCF, BCF, and METAL formats)")
9487 (description
9488 "This package provides tools to integrate nucleotide sequencing
9489 data (variant call format, e.g. VCF or BCF) or meta-analysis results in R.")
9490 ;; Any version of the GPL is acceptable
9491 (license (list license:gpl2+ license:gpl3+))))
9492
9493 (define-public r-raremetals2
9494 (package
9495 (name "r-raremetals2")
9496 (version "0.1")
9497 (source
9498 (origin
9499 (method url-fetch)
9500 (uri (string-append "http://genome.sph.umich.edu/w/images/"
9501 "b/b7/RareMETALS2_" version ".tar.gz"))
9502 (sha256
9503 (base32
9504 "0z5ljcgvnm06ja9lm85a3cniq7slxcy37aqqkxrdidr79an5fs4s"))))
9505 (properties `((upstream-name . "RareMETALS2")))
9506 (build-system r-build-system)
9507 (propagated-inputs
9508 `(("r-seqminer" ,r-seqminer)
9509 ("r-mvtnorm" ,r-mvtnorm)
9510 ("r-mass" ,r-mass)
9511 ("r-compquadform" ,r-compquadform)
9512 ("r-getopt" ,r-getopt)))
9513 (home-page "http://genome.sph.umich.edu/wiki/RareMETALS2")
9514 (synopsis "Analyze gene-level association tests for binary trait")
9515 (description
9516 "The R package rareMETALS2 is an extension of the R package rareMETALS.
9517 It was designed to meta-analyze gene-level association tests for binary trait.
9518 While rareMETALS offers a near-complete solution for meta-analysis of
9519 gene-level tests for quantitative trait, it does not offer the optimal
9520 solution for binary trait. The package rareMETALS2 offers improved features
9521 for analyzing gene-level association tests in meta-analyses for binary
9522 trait.")
9523 (license license:gpl3)))
9524
9525 (define-public r-maldiquant
9526 (package
9527 (name "r-maldiquant")
9528 (version "1.19.3")
9529 (source
9530 (origin
9531 (method url-fetch)
9532 (uri (cran-uri "MALDIquant" version))
9533 (sha256
9534 (base32
9535 "0b7kdz3x4sdq413h1q09l1qhcvdnnwv6fqsqwllks1cd3xy34c57"))))
9536 (properties `((upstream-name . "MALDIquant")))
9537 (build-system r-build-system)
9538 (home-page "https://cran.r-project.org/web/packages/MALDIquant")
9539 (synopsis "Quantitative analysis of mass spectrometry data")
9540 (description
9541 "This package provides a complete analysis pipeline for matrix-assisted
9542 laser desorption/ionization-time-of-flight (MALDI-TOF) and other
9543 two-dimensional mass spectrometry data. In addition to commonly used plotting
9544 and processing methods it includes distinctive features, namely baseline
9545 subtraction methods such as morphological filters (TopHat) or the
9546 statistics-sensitive non-linear iterative peak-clipping algorithm (SNIP), peak
9547 alignment using warping functions, handling of replicated measurements as well
9548 as allowing spectra with different resolutions.")
9549 (license license:gpl3+)))
9550
9551 (define-public r-protgenerics
9552 (package
9553 (name "r-protgenerics")
9554 (version "1.20.0")
9555 (source
9556 (origin
9557 (method url-fetch)
9558 (uri (bioconductor-uri "ProtGenerics" version))
9559 (sha256
9560 (base32
9561 "14xzdh7vxss8vmrw91hcwrszdn3ikm71mah8875b2lkrkrfzbl73"))))
9562 (properties `((upstream-name . "ProtGenerics")))
9563 (build-system r-build-system)
9564 (home-page "https://github.com/lgatto/ProtGenerics")
9565 (synopsis "S4 generic functions for proteomics infrastructure")
9566 (description
9567 "This package provides S4 generic functions needed by Bioconductor
9568 proteomics packages.")
9569 (license license:artistic2.0)))
9570
9571 (define-public r-mzr
9572 (package
9573 (name "r-mzr")
9574 (version "2.20.0")
9575 (source
9576 (origin
9577 (method url-fetch)
9578 (uri (bioconductor-uri "mzR" version))
9579 (sha256
9580 (base32
9581 "1cwd7phlc5jbx6r6cznyfbdpvcin5fvsaasbbi65zn0s92a80r13"))
9582 (modules '((guix build utils)))
9583 (snippet
9584 '(begin
9585 (delete-file-recursively "src/boost")
9586 #t))))
9587 (properties `((upstream-name . "mzR")))
9588 (build-system r-build-system)
9589 (arguments
9590 `(#:phases
9591 (modify-phases %standard-phases
9592 (add-after 'unpack 'use-system-boost
9593 (lambda _
9594 (substitute* "src/Makevars"
9595 (("\\./boost/libs.*") "")
9596 (("ARCH_OBJS=" line)
9597 (string-append line
9598 "\nARCH_LIBS=-lboost_system -lboost_regex \
9599 -lboost_iostreams -lboost_thread -lboost_filesystem -lboost_chrono\n")))
9600 #t)))))
9601 (inputs
9602 `(;; Our default boost package won't work here, unfortunately, even with
9603 ;; mzR version 2.20.0.
9604 ("boost" ,boost-for-mysql) ; use this instead of the bundled boost sources
9605 ("zlib" ,zlib)))
9606 (propagated-inputs
9607 `(("r-biobase" ,r-biobase)
9608 ("r-biocgenerics" ,r-biocgenerics)
9609 ("r-ncdf4" ,r-ncdf4)
9610 ("r-protgenerics" ,r-protgenerics)
9611 ("r-rcpp" ,r-rcpp)
9612 ("r-rhdf5lib" ,r-rhdf5lib)
9613 ("r-zlibbioc" ,r-zlibbioc)))
9614 (home-page "https://github.com/sneumann/mzR/")
9615 (synopsis "Parser for mass spectrometry data files")
9616 (description
9617 "The mzR package provides a unified API to the common file formats and
9618 parsers available for mass spectrometry data. It comes with a wrapper for the
9619 ISB random access parser for mass spectrometry mzXML, mzData and mzML files.
9620 The package contains the original code written by the ISB, and a subset of the
9621 proteowizard library for mzML and mzIdentML. The netCDF reading code has
9622 previously been used in XCMS.")
9623 (license license:artistic2.0)))
9624
9625 (define-public r-affyio
9626 (package
9627 (name "r-affyio")
9628 (version "1.58.0")
9629 (source
9630 (origin
9631 (method url-fetch)
9632 (uri (bioconductor-uri "affyio" version))
9633 (sha256
9634 (base32
9635 "0j1f61409yq6hmkqrpzamfm7dx35rlq33ccs7wb1qcqx3d3nb75q"))))
9636 (build-system r-build-system)
9637 (propagated-inputs
9638 `(("r-zlibbioc" ,r-zlibbioc)))
9639 (inputs
9640 `(("zlib" ,zlib)))
9641 (home-page "https://github.com/bmbolstad/affyio")
9642 (synopsis "Tools for parsing Affymetrix data files")
9643 (description
9644 "This package provides routines for parsing Affymetrix data files based
9645 upon file format information. The primary focus is on accessing the CEL and
9646 CDF file formats.")
9647 (license license:lgpl2.0+)))
9648
9649 (define-public r-affy
9650 (package
9651 (name "r-affy")
9652 (version "1.66.0")
9653 (source
9654 (origin
9655 (method url-fetch)
9656 (uri (bioconductor-uri "affy" version))
9657 (sha256
9658 (base32
9659 "0m6hkyjxmsf80n3anhwh9k26csxczv6v92fkb7klnchdski61pyc"))))
9660 (build-system r-build-system)
9661 (propagated-inputs
9662 `(("r-affyio" ,r-affyio)
9663 ("r-biobase" ,r-biobase)
9664 ("r-biocgenerics" ,r-biocgenerics)
9665 ("r-biocmanager" ,r-biocmanager)
9666 ("r-preprocesscore" ,r-preprocesscore)
9667 ("r-zlibbioc" ,r-zlibbioc)))
9668 (inputs
9669 `(("zlib" ,zlib)))
9670 (home-page "https://bioconductor.org/packages/affy")
9671 (synopsis "Methods for affymetrix oligonucleotide arrays")
9672 (description
9673 "This package contains functions for exploratory oligonucleotide array
9674 analysis.")
9675 (license license:lgpl2.0+)))
9676
9677 (define-public r-vsn
9678 (package
9679 (name "r-vsn")
9680 (version "3.54.0")
9681 (source
9682 (origin
9683 (method url-fetch)
9684 (uri (bioconductor-uri "vsn" version))
9685 (sha256
9686 (base32
9687 "1naqzb2m0km8fzr6chf9z71sisrwviy1fdi9b3hn4i8p18b4kqzh"))))
9688 (build-system r-build-system)
9689 (propagated-inputs
9690 `(("r-affy" ,r-affy)
9691 ("r-biobase" ,r-biobase)
9692 ("r-ggplot2" ,r-ggplot2)
9693 ("r-lattice" ,r-lattice)
9694 ("r-limma" ,r-limma)))
9695 (native-inputs
9696 `(("r-knitr" ,r-knitr))) ; for vignettes
9697 (home-page "https://bioconductor.org/packages/release/bioc/html/vsn.html")
9698 (synopsis "Variance stabilization and calibration for microarray data")
9699 (description
9700 "The package implements a method for normalising microarray intensities,
9701 and works for single- and multiple-color arrays. It can also be used for data
9702 from other technologies, as long as they have similar format. The method uses
9703 a robust variant of the maximum-likelihood estimator for an
9704 additive-multiplicative error model and affine calibration. The model
9705 incorporates data calibration step (a.k.a. normalization), a model for the
9706 dependence of the variance on the mean intensity and a variance stabilizing
9707 data transformation. Differences between transformed intensities are
9708 analogous to \"normalized log-ratios\". However, in contrast to the latter,
9709 their variance is independent of the mean, and they are usually more sensitive
9710 and specific in detecting differential transcription.")
9711 (license license:artistic2.0)))
9712
9713 (define-public r-mzid
9714 (package
9715 (name "r-mzid")
9716 (version "1.24.0")
9717 (source
9718 (origin
9719 (method url-fetch)
9720 (uri (bioconductor-uri "mzID" version))
9721 (sha256
9722 (base32
9723 "1glcv096bn6pxlw89dlij1nzpwnjvrbxysvw2gm6qgm7rhxlaxrw"))))
9724 (properties `((upstream-name . "mzID")))
9725 (build-system r-build-system)
9726 (propagated-inputs
9727 `(("r-doparallel" ,r-doparallel)
9728 ("r-foreach" ,r-foreach)
9729 ("r-iterators" ,r-iterators)
9730 ("r-plyr" ,r-plyr)
9731 ("r-protgenerics" ,r-protgenerics)
9732 ("r-rcpp" ,r-rcpp)
9733 ("r-xml" ,r-xml)))
9734 (home-page "https://bioconductor.org/packages/mzID")
9735 (synopsis "Parser for mzIdentML files")
9736 (description
9737 "This package provides a parser for mzIdentML files implemented using the
9738 XML package. The parser tries to be general and able to handle all types of
9739 mzIdentML files with the drawback of having less pretty output than a vendor
9740 specific parser.")
9741 (license license:gpl2+)))
9742
9743 (define-public r-pcamethods
9744 (package
9745 (name "r-pcamethods")
9746 (version "1.78.0")
9747 (source
9748 (origin
9749 (method url-fetch)
9750 (uri (bioconductor-uri "pcaMethods" version))
9751 (sha256
9752 (base32
9753 "1wir67kfjm0m9gf0ki8qmvh45n4gx2k0wfl9pd1hp4g62fbrj1pj"))))
9754 (properties `((upstream-name . "pcaMethods")))
9755 (build-system r-build-system)
9756 (propagated-inputs
9757 `(("r-biobase" ,r-biobase)
9758 ("r-biocgenerics" ,r-biocgenerics)
9759 ("r-mass" ,r-mass)
9760 ("r-rcpp" ,r-rcpp)))
9761 (home-page "https://github.com/hredestig/pcamethods")
9762 (synopsis "Collection of PCA methods")
9763 (description
9764 "This package provides Bayesian PCA, Probabilistic PCA, Nipals PCA,
9765 Inverse Non-Linear PCA and the conventional SVD PCA. A cluster based method
9766 for missing value estimation is included for comparison. BPCA, PPCA and
9767 NipalsPCA may be used to perform PCA on incomplete data as well as for
9768 accurate missing value estimation. A set of methods for printing and plotting
9769 the results is also provided. All PCA methods make use of the same data
9770 structure (pcaRes) to provide a common interface to the PCA results.")
9771 (license license:gpl3+)))
9772
9773 (define-public r-msnbase
9774 (package
9775 (name "r-msnbase")
9776 (version "2.12.0")
9777 (source
9778 (origin
9779 (method url-fetch)
9780 (uri (bioconductor-uri "MSnbase" version))
9781 (sha256
9782 (base32
9783 "1z889xkfphqqmv31i8hh5xqyclv660ic26rfck5bjpgk3s2zzwi6"))))
9784 (properties `((upstream-name . "MSnbase")))
9785 (build-system r-build-system)
9786 (propagated-inputs
9787 `(("r-affy" ,r-affy)
9788 ("r-biobase" ,r-biobase)
9789 ("r-biocgenerics" ,r-biocgenerics)
9790 ("r-biocparallel" ,r-biocparallel)
9791 ("r-digest" ,r-digest)
9792 ("r-ggplot2" ,r-ggplot2)
9793 ("r-impute" ,r-impute)
9794 ("r-iranges" ,r-iranges)
9795 ("r-lattice" ,r-lattice)
9796 ("r-maldiquant" ,r-maldiquant)
9797 ("r-mass" ,r-mass)
9798 ("r-mzid" ,r-mzid)
9799 ("r-mzr" ,r-mzr)
9800 ("r-pcamethods" ,r-pcamethods)
9801 ("r-plyr" ,r-plyr)
9802 ("r-preprocesscore" ,r-preprocesscore)
9803 ("r-protgenerics" ,r-protgenerics)
9804 ("r-rcpp" ,r-rcpp)
9805 ("r-s4vectors" ,r-s4vectors)
9806 ("r-scales" ,r-scales)
9807 ("r-vsn" ,r-vsn)
9808 ("r-xml" ,r-xml)))
9809 (home-page "https://github.com/lgatto/MSnbase")
9810 (synopsis "Base functions and classes for MS-based proteomics")
9811 (description
9812 "This package provides basic plotting, data manipulation and processing
9813 of mass spectrometry based proteomics data.")
9814 (license license:artistic2.0)))
9815
9816 (define-public r-msnid
9817 (package
9818 (name "r-msnid")
9819 (version "1.20.0")
9820 (source
9821 (origin
9822 (method url-fetch)
9823 (uri (bioconductor-uri "MSnID" version))
9824 (sha256
9825 (base32
9826 "0m71f2y12hmwvng45kzz4r4qrgc2jbd7j9gprmw8y5laawpdaifg"))))
9827 (properties `((upstream-name . "MSnID")))
9828 (build-system r-build-system)
9829 (propagated-inputs
9830 `(("r-biobase" ,r-biobase)
9831 ("r-data-table" ,r-data-table)
9832 ("r-doparallel" ,r-doparallel)
9833 ("r-dplyr" ,r-dplyr)
9834 ("r-foreach" ,r-foreach)
9835 ("r-iterators" ,r-iterators)
9836 ("r-msnbase" ,r-msnbase)
9837 ("r-mzid" ,r-mzid)
9838 ("r-mzr" ,r-mzr)
9839 ("r-protgenerics" ,r-protgenerics)
9840 ("r-r-cache" ,r-r-cache)
9841 ("r-rcpp" ,r-rcpp)
9842 ("r-reshape2" ,r-reshape2)))
9843 (home-page "https://bioconductor.org/packages/MSnID")
9844 (synopsis "Utilities for LC-MSn proteomics identifications")
9845 (description
9846 "This package extracts @dfn{tandem mass spectrometry} (MS/MS) ID data
9847 from mzIdentML (leveraging the mzID package) or text files. After collating
9848 the search results from multiple datasets it assesses their identification
9849 quality and optimize filtering criteria to achieve the maximum number of
9850 identifications while not exceeding a specified false discovery rate. It also
9851 contains a number of utilities to explore the MS/MS results and assess missed
9852 and irregular enzymatic cleavages, mass measurement accuracy, etc.")
9853 (license license:artistic2.0)))
9854
9855 (define-public r-seurat
9856 (package
9857 (name "r-seurat")
9858 (version "3.1.5")
9859 (source (origin
9860 (method url-fetch)
9861 (uri (cran-uri "Seurat" version))
9862 (sha256
9863 (base32
9864 "1lbq2pqhb6ih6iqawlnzdh05zff71pwbw1cpfv2sld3pd7kz0zkm"))))
9865 (properties `((upstream-name . "Seurat")))
9866 (build-system r-build-system)
9867 (propagated-inputs
9868 `(("r-ape" ,r-ape)
9869 ("r-cluster" ,r-cluster)
9870 ("r-cowplot" ,r-cowplot)
9871 ("r-fitdistrplus" ,r-fitdistrplus)
9872 ("r-future" ,r-future)
9873 ("r-future-apply" ,r-future-apply)
9874 ("r-ggplot2" ,r-ggplot2)
9875 ("r-ggrepel" ,r-ggrepel)
9876 ("r-ggridges" ,r-ggridges)
9877 ("r-httr" ,r-httr)
9878 ("r-ica" ,r-ica)
9879 ("r-igraph" ,r-igraph)
9880 ("r-irlba" ,r-irlba)
9881 ("r-kernsmooth" ,r-kernsmooth)
9882 ("r-leiden" ,r-leiden)
9883 ("r-lmtest" ,r-lmtest)
9884 ("r-mass" ,r-mass)
9885 ("r-matrix" ,r-matrix)
9886 ("r-patchwork" ,r-patchwork)
9887 ("r-pbapply" ,r-pbapply)
9888 ("r-plotly" ,r-plotly)
9889 ("r-png" ,r-png)
9890 ("r-rann" ,r-rann)
9891 ("r-rcolorbrewer" ,r-rcolorbrewer)
9892 ("r-rcpp" ,r-rcpp)
9893 ("r-rcppannoy" ,r-rcppannoy)
9894 ("r-rcppeigen" ,r-rcppeigen)
9895 ("r-rcppprogress" ,r-rcppprogress)
9896 ("r-reticulate" ,r-reticulate)
9897 ("r-rlang" ,r-rlang)
9898 ("r-rocr" ,r-rocr)
9899 ("r-rsvd" ,r-rsvd)
9900 ("r-rtsne" ,r-rtsne)
9901 ("r-scales" ,r-scales)
9902 ("r-sctransform" ,r-sctransform)
9903 ("r-tsne" ,r-tsne)
9904 ("r-uwot" ,r-uwot)))
9905 (home-page "http://www.satijalab.org/seurat")
9906 (synopsis "Seurat is an R toolkit for single cell genomics")
9907 (description
9908 "This package is an R package designed for QC, analysis, and
9909 exploration of single cell RNA-seq data. It easily enables widely-used
9910 analytical techniques, including the identification of highly variable genes,
9911 dimensionality reduction; PCA, ICA, t-SNE, standard unsupervised clustering
9912 algorithms; density clustering, hierarchical clustering, k-means, and the
9913 discovery of differentially expressed genes and markers.")
9914 (license license:gpl3)))
9915
9916 (define-public r-aroma-light
9917 (package
9918 (name "r-aroma-light")
9919 (version "3.16.0")
9920 (source
9921 (origin
9922 (method url-fetch)
9923 (uri (bioconductor-uri "aroma.light" version))
9924 (sha256
9925 (base32
9926 "0cgdg650j4dl0b45pwaw49ib97dwjazrv9sqzkygrjmcnnfxry8x"))))
9927 (properties `((upstream-name . "aroma.light")))
9928 (build-system r-build-system)
9929 (propagated-inputs
9930 `(("r-matrixstats" ,r-matrixstats)
9931 ("r-r-methodss3" ,r-r-methodss3)
9932 ("r-r-oo" ,r-r-oo)
9933 ("r-r-utils" ,r-r-utils)))
9934 (home-page "https://github.com/HenrikBengtsson/aroma.light")
9935 (synopsis "Methods for normalization and visualization of microarray data")
9936 (description
9937 "This package provides methods for microarray analysis that take basic
9938 data types such as matrices and lists of vectors. These methods can be used
9939 standalone, be utilized in other packages, or be wrapped up in higher-level
9940 classes.")
9941 (license license:gpl2+)))
9942
9943 (define-public r-deseq
9944 (package
9945 (name "r-deseq")
9946 (version "1.38.0")
9947 (source
9948 (origin
9949 (method url-fetch)
9950 (uri (bioconductor-uri "DESeq" version))
9951 (sha256
9952 (base32
9953 "14pys93gsl50xmq5pc7pp1g20v3ywlg0yzkkhwb3kiy8573xn9nc"))))
9954 (properties `((upstream-name . "DESeq")))
9955 (build-system r-build-system)
9956 (propagated-inputs
9957 `(("r-biobase" ,r-biobase)
9958 ("r-biocgenerics" ,r-biocgenerics)
9959 ("r-genefilter" ,r-genefilter)
9960 ("r-geneplotter" ,r-geneplotter)
9961 ("r-lattice" ,r-lattice)
9962 ("r-locfit" ,r-locfit)
9963 ("r-mass" ,r-mass)
9964 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9965 (home-page "https://www-huber.embl.de/users/anders/DESeq/")
9966 (synopsis "Differential gene expression analysis")
9967 (description
9968 "This package provides tools for estimating variance-mean dependence in
9969 count data from high-throughput genetic sequencing assays and for testing for
9970 differential expression based on a model using the negative binomial
9971 distribution.")
9972 (license license:gpl3+)))
9973
9974 (define-public r-edaseq
9975 (package
9976 (name "r-edaseq")
9977 (version "2.20.0")
9978 (source
9979 (origin
9980 (method url-fetch)
9981 (uri (bioconductor-uri "EDASeq" version))
9982 (sha256
9983 (base32
9984 "19mgzbv8yxgvw86wpq401l27q55ygawlngl775yavwccz1zbhjnj"))))
9985 (properties `((upstream-name . "EDASeq")))
9986 (build-system r-build-system)
9987 (propagated-inputs
9988 `(("r-annotationdbi" ,r-annotationdbi)
9989 ("r-aroma-light" ,r-aroma-light)
9990 ("r-biobase" ,r-biobase)
9991 ("r-biocgenerics" ,r-biocgenerics)
9992 ("r-biocmanager" ,r-biocmanager)
9993 ("r-biomart" ,r-biomart)
9994 ("r-biostrings" ,r-biostrings)
9995 ("r-deseq" ,r-deseq)
9996 ("r-genomicfeatures" ,r-genomicfeatures)
9997 ("r-genomicranges" ,r-genomicranges)
9998 ("r-iranges" ,r-iranges)
9999 ("r-rsamtools" ,r-rsamtools)
10000 ("r-shortread" ,r-shortread)))
10001 (home-page "https://github.com/drisso/EDASeq")
10002 (synopsis "Exploratory data analysis and normalization for RNA-Seq")
10003 (description
10004 "This package provides support for numerical and graphical summaries of
10005 RNA-Seq genomic read data. Provided within-lane normalization procedures to
10006 adjust for GC-content effect (or other gene-level effects) on read counts:
10007 loess robust local regression, global-scaling, and full-quantile
10008 normalization. Between-lane normalization procedures to adjust for
10009 distributional differences between lanes (e.g., sequencing depth):
10010 global-scaling and full-quantile normalization.")
10011 (license license:artistic2.0)))
10012
10013 (define-public r-interactivedisplaybase
10014 (package
10015 (name "r-interactivedisplaybase")
10016 (version "1.24.0")
10017 (source
10018 (origin
10019 (method url-fetch)
10020 (uri (bioconductor-uri "interactiveDisplayBase" version))
10021 (sha256
10022 (base32
10023 "0zwf3ma6wf4zypl6bgjp0n72k2hmp0g16gzl4v3y4157rxcbpl0n"))))
10024 (properties
10025 `((upstream-name . "interactiveDisplayBase")))
10026 (build-system r-build-system)
10027 (propagated-inputs
10028 `(("r-biocgenerics" ,r-biocgenerics)
10029 ("r-shiny" ,r-shiny)))
10030 (home-page "https://bioconductor.org/packages/interactiveDisplayBase")
10031 (synopsis "Base package for web displays of Bioconductor objects")
10032 (description
10033 "This package contains the basic methods needed to generate interactive
10034 Shiny-based display methods for Bioconductor objects.")
10035 (license license:artistic2.0)))
10036
10037 (define-public r-annotationhub
10038 (package
10039 (name "r-annotationhub")
10040 (version "2.18.0")
10041 (source
10042 (origin
10043 (method url-fetch)
10044 (uri (bioconductor-uri "AnnotationHub" version))
10045 (sha256
10046 (base32
10047 "19vj3bk8jz68q84g3j8xs1s9bqz90lbwbciig1h45zvn2zc6087m"))))
10048 (properties `((upstream-name . "AnnotationHub")))
10049 (build-system r-build-system)
10050 (propagated-inputs
10051 `(("r-annotationdbi" ,r-annotationdbi)
10052 ("r-biocfilecache" ,r-biocfilecache)
10053 ("r-biocgenerics" ,r-biocgenerics)
10054 ("r-biocmanager" ,r-biocmanager)
10055 ("r-biocversion" ,r-biocversion)
10056 ("r-curl" ,r-curl)
10057 ("r-dplyr" ,r-dplyr)
10058 ("r-httr" ,r-httr)
10059 ("r-interactivedisplaybase" ,r-interactivedisplaybase)
10060 ("r-rappdirs" ,r-rappdirs)
10061 ("r-rsqlite" ,r-rsqlite)
10062 ("r-s4vectors" ,r-s4vectors)
10063 ("r-yaml" ,r-yaml)))
10064 (home-page "https://bioconductor.org/packages/AnnotationHub")
10065 (synopsis "Client to access AnnotationHub resources")
10066 (description
10067 "This package provides a client for the Bioconductor AnnotationHub web
10068 resource. The AnnotationHub web resource provides a central location where
10069 genomic files (e.g. VCF, bed, wig) and other resources from standard
10070 locations (e.g. UCSC, Ensembl) can be discovered. The resource includes
10071 metadata about each resource, e.g., a textual description, tags, and date of
10072 modification. The client creates and manages a local cache of files retrieved
10073 by the user, helping with quick and reproducible access.")
10074 (license license:artistic2.0)))
10075
10076 (define-public r-fastseg
10077 (package
10078 (name "r-fastseg")
10079 (version "1.32.0")
10080 (source
10081 (origin
10082 (method url-fetch)
10083 (uri (bioconductor-uri "fastseg" version))
10084 (sha256
10085 (base32
10086 "1cys6frmbizc8bf933mwvvnr31sfya9ahcc0wm66pbd1x3mygkmk"))))
10087 (build-system r-build-system)
10088 (propagated-inputs
10089 `(("r-biobase" ,r-biobase)
10090 ("r-biocgenerics" ,r-biocgenerics)
10091 ("r-genomicranges" ,r-genomicranges)
10092 ("r-iranges" ,r-iranges)
10093 ("r-s4vectors" ,r-s4vectors)))
10094 (home-page "https://www.bioinf.jku.at/software/fastseg/index.html")
10095 (synopsis "Fast segmentation algorithm for genetic sequencing data")
10096 (description
10097 "Fastseg implements a very fast and efficient segmentation algorithm.
10098 It can segment data from DNA microarrays and data from next generation
10099 sequencing for example to detect copy number segments. Further it can segment
10100 data from RNA microarrays like tiling arrays to identify transcripts. Most
10101 generally, it can segment data given as a matrix or as a vector. Various data
10102 formats can be used as input to fastseg like expression set objects for
10103 microarrays or GRanges for sequencing data.")
10104 (license license:lgpl2.0+)))
10105
10106 (define-public r-keggrest
10107 (package
10108 (name "r-keggrest")
10109 (version "1.26.1")
10110 (source
10111 (origin
10112 (method url-fetch)
10113 (uri (bioconductor-uri "KEGGREST" version))
10114 (sha256
10115 (base32
10116 "1cgjvv9n88y3ah21356mh8z2l08vjn42hjy8hcljsibknzc4v247"))))
10117 (properties `((upstream-name . "KEGGREST")))
10118 (build-system r-build-system)
10119 (propagated-inputs
10120 `(("r-biostrings" ,r-biostrings)
10121 ("r-httr" ,r-httr)
10122 ("r-png" ,r-png)))
10123 (home-page "https://bioconductor.org/packages/KEGGREST")
10124 (synopsis "Client-side REST access to KEGG")
10125 (description
10126 "This package provides a package that provides a client interface to the
10127 @dfn{Kyoto Encyclopedia of Genes and Genomes} (KEGG) REST server.")
10128 (license license:artistic2.0)))
10129
10130 (define-public r-gage
10131 (package
10132 (name "r-gage")
10133 (version "2.36.0")
10134 (source
10135 (origin
10136 (method url-fetch)
10137 (uri (bioconductor-uri "gage" version))
10138 (sha256
10139 (base32
10140 "1qxfmg0id19iy3ia8h5nrvk3d1azqb28kl7m08i23654wb6b45c6"))))
10141 (build-system r-build-system)
10142 (propagated-inputs
10143 `(("r-annotationdbi" ,r-annotationdbi)
10144 ("r-graph" ,r-graph)
10145 ("r-keggrest" ,r-keggrest)))
10146 (home-page (string-append "https://bmcbioinformatics.biomedcentral.com/"
10147 "articles/10.1186/1471-2105-10-161"))
10148 (synopsis "Generally applicable gene-set enrichment for pathway analysis")
10149 (description
10150 "GAGE is a published method for gene set (enrichment or GSEA) or pathway
10151 analysis. GAGE is generally applicable independent of microarray or RNA-Seq
10152 data attributes including sample sizes, experimental designs, assay platforms,
10153 and other types of heterogeneity. The gage package provides functions for
10154 basic GAGE analysis, result processing and presentation. In addition, it
10155 provides demo microarray data and commonly used gene set data based on KEGG
10156 pathways and GO terms. These functions and data are also useful for gene set
10157 analysis using other methods.")
10158 (license license:gpl2+)))
10159
10160 (define-public r-genomicfiles
10161 (package
10162 (name "r-genomicfiles")
10163 (version "1.22.0")
10164 (source
10165 (origin
10166 (method url-fetch)
10167 (uri (bioconductor-uri "GenomicFiles" version))
10168 (sha256
10169 (base32
10170 "1x6q827ms2l5lwzha1vsgfrshh35n9f19jq57xagrqlafxgpz86s"))))
10171 (properties `((upstream-name . "GenomicFiles")))
10172 (build-system r-build-system)
10173 (propagated-inputs
10174 `(("r-biocgenerics" ,r-biocgenerics)
10175 ("r-biocparallel" ,r-biocparallel)
10176 ("r-genomeinfodb" ,r-genomeinfodb)
10177 ("r-genomicalignments" ,r-genomicalignments)
10178 ("r-genomicranges" ,r-genomicranges)
10179 ("r-iranges" ,r-iranges)
10180 ("r-rsamtools" ,r-rsamtools)
10181 ("r-rtracklayer" ,r-rtracklayer)
10182 ("r-s4vectors" ,r-s4vectors)
10183 ("r-summarizedexperiment" ,r-summarizedexperiment)
10184 ("r-variantannotation" ,r-variantannotation)))
10185 (home-page "https://bioconductor.org/packages/GenomicFiles")
10186 (synopsis "Distributed computing by file or by range")
10187 (description
10188 "This package provides infrastructure for parallel computations
10189 distributed by file or by range. User defined mapper and reducer functions
10190 provide added flexibility for data combination and manipulation.")
10191 (license license:artistic2.0)))
10192
10193 (define-public r-complexheatmap
10194 (package
10195 (name "r-complexheatmap")
10196 (version "2.2.0")
10197 (source
10198 (origin
10199 (method url-fetch)
10200 (uri (bioconductor-uri "ComplexHeatmap" version))
10201 (sha256
10202 (base32
10203 "1pj6a6rmqckk033pkklk6hr4066rzavamy6w194rfdhind90rk0p"))))
10204 (properties
10205 `((upstream-name . "ComplexHeatmap")))
10206 (build-system r-build-system)
10207 (propagated-inputs
10208 `(("r-circlize" ,r-circlize)
10209 ("r-clue" ,r-clue)
10210 ("r-colorspace" ,r-colorspace)
10211 ("r-getoptlong" ,r-getoptlong)
10212 ("r-globaloptions" ,r-globaloptions)
10213 ("r-png" ,r-png)
10214 ("r-rcolorbrewer" ,r-rcolorbrewer)))
10215 (home-page
10216 "https://github.com/jokergoo/ComplexHeatmap")
10217 (synopsis "Making Complex Heatmaps")
10218 (description
10219 "Complex heatmaps are efficient to visualize associations between
10220 different sources of data sets and reveal potential structures. This package
10221 provides a highly flexible way to arrange multiple heatmaps and supports
10222 self-defined annotation graphics.")
10223 (license license:gpl2+)))
10224
10225 (define-public r-dirichletmultinomial
10226 (package
10227 (name "r-dirichletmultinomial")
10228 (version "1.28.0")
10229 (source
10230 (origin
10231 (method url-fetch)
10232 (uri (bioconductor-uri "DirichletMultinomial" version))
10233 (sha256
10234 (base32
10235 "0knmncmkkf2ypyqfcl5s8nmyyf9nrzkqprzn9w3w8182c0v49r0s"))))
10236 (properties
10237 `((upstream-name . "DirichletMultinomial")))
10238 (build-system r-build-system)
10239 (inputs
10240 `(("gsl" ,gsl)))
10241 (propagated-inputs
10242 `(("r-biocgenerics" ,r-biocgenerics)
10243 ("r-iranges" ,r-iranges)
10244 ("r-s4vectors" ,r-s4vectors)))
10245 (home-page "https://bioconductor.org/packages/DirichletMultinomial")
10246 (synopsis "Dirichlet-Multinomial mixture models for microbiome data")
10247 (description
10248 "Dirichlet-multinomial mixture models can be used to describe variability
10249 in microbial metagenomic data. This package is an interface to code
10250 originally made available by Holmes, Harris, and Quince, 2012, PLoS ONE 7(2):
10251 1-15.")
10252 (license license:lgpl3)))
10253
10254 (define-public r-ensembldb
10255 (package
10256 (name "r-ensembldb")
10257 (version "2.10.2")
10258 (source
10259 (origin
10260 (method url-fetch)
10261 (uri (bioconductor-uri "ensembldb" version))
10262 (sha256
10263 (base32
10264 "02lnpyp85zchmz404hr5381zmihvq4x9zgxdrbn2afi352vg0vab"))))
10265 (build-system r-build-system)
10266 (propagated-inputs
10267 `(("r-annotationdbi" ,r-annotationdbi)
10268 ("r-annotationfilter" ,r-annotationfilter)
10269 ("r-biobase" ,r-biobase)
10270 ("r-biocgenerics" ,r-biocgenerics)
10271 ("r-biostrings" ,r-biostrings)
10272 ("r-curl" ,r-curl)
10273 ("r-dbi" ,r-dbi)
10274 ("r-genomeinfodb" ,r-genomeinfodb)
10275 ("r-genomicfeatures" ,r-genomicfeatures)
10276 ("r-genomicranges" ,r-genomicranges)
10277 ("r-iranges" ,r-iranges)
10278 ("r-protgenerics" ,r-protgenerics)
10279 ("r-rsamtools" ,r-rsamtools)
10280 ("r-rsqlite" ,r-rsqlite)
10281 ("r-rtracklayer" ,r-rtracklayer)
10282 ("r-s4vectors" ,r-s4vectors)))
10283 (home-page "https://github.com/jotsetung/ensembldb")
10284 (synopsis "Utilities to create and use Ensembl-based annotation databases")
10285 (description
10286 "The package provides functions to create and use transcript-centric
10287 annotation databases/packages. The annotation for the databases are directly
10288 fetched from Ensembl using their Perl API. The functionality and data is
10289 similar to that of the TxDb packages from the @code{GenomicFeatures} package,
10290 but, in addition to retrieve all gene/transcript models and annotations from
10291 the database, the @code{ensembldb} package also provides a filter framework
10292 allowing to retrieve annotations for specific entries like genes encoded on a
10293 chromosome region or transcript models of lincRNA genes.")
10294 ;; No version specified
10295 (license license:lgpl3+)))
10296
10297 (define-public r-organismdbi
10298 (package
10299 (name "r-organismdbi")
10300 (version "1.28.0")
10301 (source
10302 (origin
10303 (method url-fetch)
10304 (uri (bioconductor-uri "OrganismDbi" version))
10305 (sha256
10306 (base32
10307 "1bvfyh733mhka9zd00hrzpalgjs255c2blnxyf60ipzk5jg7yllb"))))
10308 (properties `((upstream-name . "OrganismDbi")))
10309 (build-system r-build-system)
10310 (propagated-inputs
10311 `(("r-annotationdbi" ,r-annotationdbi)
10312 ("r-biobase" ,r-biobase)
10313 ("r-biocgenerics" ,r-biocgenerics)
10314 ("r-biocmanager" ,r-biocmanager)
10315 ("r-dbi" ,r-dbi)
10316 ("r-genomicfeatures" ,r-genomicfeatures)
10317 ("r-genomicranges" ,r-genomicranges)
10318 ("r-graph" ,r-graph)
10319 ("r-iranges" ,r-iranges)
10320 ("r-rbgl" ,r-rbgl)
10321 ("r-s4vectors" ,r-s4vectors)))
10322 (home-page "https://bioconductor.org/packages/OrganismDbi")
10323 (synopsis "Software to enable the smooth interfacing of database packages")
10324 (description "The package enables a simple unified interface to several
10325 annotation packages each of which has its own schema by taking advantage of
10326 the fact that each of these packages implements a select methods.")
10327 (license license:artistic2.0)))
10328
10329 (define-public r-biovizbase
10330 (package
10331 (name "r-biovizbase")
10332 (version "1.34.1")
10333 (source
10334 (origin
10335 (method url-fetch)
10336 (uri (bioconductor-uri "biovizBase" version))
10337 (sha256
10338 (base32
10339 "04vvj907bgs67w8rb7n1haf80p6cd0qj5fdxw0dwryb455y35vir"))))
10340 (properties `((upstream-name . "biovizBase")))
10341 (build-system r-build-system)
10342 (propagated-inputs
10343 `(("r-annotationdbi" ,r-annotationdbi)
10344 ("r-annotationfilter" ,r-annotationfilter)
10345 ("r-biocgenerics" ,r-biocgenerics)
10346 ("r-biostrings" ,r-biostrings)
10347 ("r-dichromat" ,r-dichromat)
10348 ("r-ensembldb" ,r-ensembldb)
10349 ("r-genomeinfodb" ,r-genomeinfodb)
10350 ("r-genomicalignments" ,r-genomicalignments)
10351 ("r-genomicfeatures" ,r-genomicfeatures)
10352 ("r-genomicranges" ,r-genomicranges)
10353 ("r-hmisc" ,r-hmisc)
10354 ("r-iranges" ,r-iranges)
10355 ("r-rcolorbrewer" ,r-rcolorbrewer)
10356 ("r-rlang" ,r-rlang)
10357 ("r-rsamtools" ,r-rsamtools)
10358 ("r-s4vectors" ,r-s4vectors)
10359 ("r-scales" ,r-scales)
10360 ("r-summarizedexperiment" ,r-summarizedexperiment)
10361 ("r-variantannotation" ,r-variantannotation)))
10362 (home-page "https://bioconductor.org/packages/biovizBase")
10363 (synopsis "Basic graphic utilities for visualization of genomic data")
10364 (description
10365 "The biovizBase package is designed to provide a set of utilities, color
10366 schemes and conventions for genomic data. It serves as the base for various
10367 high-level packages for biological data visualization. This saves development
10368 effort and encourages consistency.")
10369 (license license:artistic2.0)))
10370
10371 (define-public r-ggbio
10372 (package
10373 (name "r-ggbio")
10374 (version "1.34.0")
10375 (source
10376 (origin
10377 (method url-fetch)
10378 (uri (bioconductor-uri "ggbio" version))
10379 (sha256
10380 (base32
10381 "13wzwh40anh8l53yp19bg4w5cpxykcaf228dc8cxvjndyib711qb"))))
10382 (build-system r-build-system)
10383 (arguments
10384 `(#:phases
10385 (modify-phases %standard-phases
10386 ;; See https://github.com/tengfei/ggbio/issues/117
10387 ;; This fix will be included in the next release.
10388 (add-after 'unpack 'fix-typo
10389 (lambda _
10390 (substitute* "R/GGbio-class.R"
10391 (("fechable") "fetchable"))
10392 #t)))))
10393 (propagated-inputs
10394 `(("r-annotationdbi" ,r-annotationdbi)
10395 ("r-annotationfilter" ,r-annotationfilter)
10396 ("r-biobase" ,r-biobase)
10397 ("r-biocgenerics" ,r-biocgenerics)
10398 ("r-biostrings" ,r-biostrings)
10399 ("r-biovizbase" ,r-biovizbase)
10400 ("r-bsgenome" ,r-bsgenome)
10401 ("r-ensembldb" ,r-ensembldb)
10402 ("r-genomeinfodb" ,r-genomeinfodb)
10403 ("r-genomicalignments" ,r-genomicalignments)
10404 ("r-genomicfeatures" ,r-genomicfeatures)
10405 ("r-genomicranges" ,r-genomicranges)
10406 ("r-ggally" ,r-ggally)
10407 ("r-ggplot2" ,r-ggplot2)
10408 ("r-gridextra" ,r-gridextra)
10409 ("r-gtable" ,r-gtable)
10410 ("r-hmisc" ,r-hmisc)
10411 ("r-iranges" ,r-iranges)
10412 ("r-organismdbi" ,r-organismdbi)
10413 ("r-reshape2" ,r-reshape2)
10414 ("r-rlang" ,r-rlang)
10415 ("r-rsamtools" ,r-rsamtools)
10416 ("r-rtracklayer" ,r-rtracklayer)
10417 ("r-s4vectors" ,r-s4vectors)
10418 ("r-scales" ,r-scales)
10419 ("r-summarizedexperiment" ,r-summarizedexperiment)
10420 ("r-variantannotation" ,r-variantannotation)))
10421 (home-page "http://www.tengfei.name/ggbio/")
10422 (synopsis "Visualization tools for genomic data")
10423 (description
10424 "The ggbio package extends and specializes the grammar of graphics for
10425 biological data. The graphics are designed to answer common scientific
10426 questions, in particular those often asked of high throughput genomics data.
10427 All core Bioconductor data structures are supported, where appropriate. The
10428 package supports detailed views of particular genomic regions, as well as
10429 genome-wide overviews. Supported overviews include ideograms and grand linear
10430 views. High-level plots include sequence fragment length, edge-linked
10431 interval to data view, mismatch pileup, and several splicing summaries.")
10432 (license license:artistic2.0)))
10433
10434 (define-public r-gqtlbase
10435 (package
10436 (name "r-gqtlbase")
10437 (version "1.18.0")
10438 (source
10439 (origin
10440 (method url-fetch)
10441 (uri (bioconductor-uri "gQTLBase" version))
10442 (sha256
10443 (base32
10444 "1qr8dqjbmj1mdjbzbnxwzfrm8f02wqfsgic8ws5kv7pmsby63y4x"))))
10445 (properties `((upstream-name . "gQTLBase")))
10446 (build-system r-build-system)
10447 (propagated-inputs
10448 `(("r-batchjobs" ,r-batchjobs)
10449 ("r-bbmisc" ,r-bbmisc)
10450 ("r-biocgenerics" ,r-biocgenerics)
10451 ("r-bit" ,r-bit)
10452 ("r-doparallel" ,r-doparallel)
10453 ("r-ff" ,r-ff)
10454 ("r-ffbase" ,r-ffbase)
10455 ("r-foreach" ,r-foreach)
10456 ("r-genomicfiles" ,r-genomicfiles)
10457 ("r-genomicranges" ,r-genomicranges)
10458 ("r-rtracklayer" ,r-rtracklayer)
10459 ("r-s4vectors" ,r-s4vectors)
10460 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10461 (home-page "https://bioconductor.org/packages/gQTLBase")
10462 (synopsis "Infrastructure for eQTL, mQTL and similar studies")
10463 (description
10464 "The purpose of this package is to simplify the storage and interrogation
10465 of @dfn{quantitative trait loci} (QTL) archives, such as eQTL, mQTL, dsQTL,
10466 and more.")
10467 (license license:artistic2.0)))
10468
10469 (define-public r-snpstats
10470 (package
10471 (name "r-snpstats")
10472 (version "1.36.0")
10473 (source
10474 (origin
10475 (method url-fetch)
10476 (uri (bioconductor-uri "snpStats" version))
10477 (sha256
10478 (base32
10479 "1xq1rjljg70h5mshdza56dis0iv1a20sivs6dav3w5jbdd1l5qkh"))))
10480 (properties `((upstream-name . "snpStats")))
10481 (build-system r-build-system)
10482 (inputs `(("zlib" ,zlib)))
10483 (propagated-inputs
10484 `(("r-biocgenerics" ,r-biocgenerics)
10485 ("r-matrix" ,r-matrix)
10486 ("r-survival" ,r-survival)
10487 ("r-zlibbioc" ,r-zlibbioc)))
10488 (home-page "https://bioconductor.org/packages/snpStats")
10489 (synopsis "Methods for SNP association studies")
10490 (description
10491 "This package provides classes and statistical methods for large
10492 @dfn{single-nucleotide polymorphism} (SNP) association studies. This extends
10493 the earlier snpMatrix package, allowing for uncertainty in genotypes.")
10494 (license license:gpl3)))
10495
10496 (define-public r-homo-sapiens
10497 (package
10498 (name "r-homo-sapiens")
10499 (version "1.3.1")
10500 (source (origin
10501 (method url-fetch)
10502 ;; We cannot use bioconductor-uri here because this tarball is
10503 ;; located under "data/annotation/" instead of "bioc/".
10504 (uri (string-append "https://www.bioconductor.org/packages/"
10505 "release/data/annotation/src/contrib/"
10506 "Homo.sapiens_"
10507 version ".tar.gz"))
10508 (sha256
10509 (base32
10510 "151vj7h5p1c8yd5swrchk46z469p135wk50hvkl0nhgndvy0jj01"))))
10511 (properties
10512 `((upstream-name . "Homo.sapiens")))
10513 (build-system r-build-system)
10514 (propagated-inputs
10515 `(("r-genomicfeatures" ,r-genomicfeatures)
10516 ("r-go-db" ,r-go-db)
10517 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
10518 ("r-txdb-hsapiens-ucsc-hg19-knowngene" ,r-txdb-hsapiens-ucsc-hg19-knowngene)
10519 ("r-organismdbi" ,r-organismdbi)
10520 ("r-annotationdbi" ,r-annotationdbi)))
10521 (home-page "https://bioconductor.org/packages/Homo.sapiens/")
10522 (synopsis "Annotation package for the Homo.sapiens object")
10523 (description
10524 "This package contains the Homo.sapiens object to access data from
10525 several related annotation packages.")
10526 (license license:artistic2.0)))
10527
10528 (define-public r-erma
10529 (package
10530 (name "r-erma")
10531 (version "1.2.0")
10532 (source
10533 (origin
10534 (method url-fetch)
10535 (uri (bioconductor-uri "erma" version))
10536 (sha256
10537 (base32
10538 "085qsr73p8nyp435f15l4l1jkfd64bfd9gl4z496nfxdnqn95srz"))))
10539 (build-system r-build-system)
10540 (propagated-inputs
10541 `(("r-annotationdbi" ,r-annotationdbi)
10542 ("r-biobase" ,r-biobase)
10543 ("r-biocgenerics" ,r-biocgenerics)
10544 ("r-biocparallel" ,r-biocparallel)
10545 ("r-genomeinfodb" ,r-genomeinfodb)
10546 ("r-genomicfiles" ,r-genomicfiles)
10547 ("r-genomicranges" ,r-genomicranges)
10548 ("r-ggplot2" ,r-ggplot2)
10549 ("r-homo-sapiens" ,r-homo-sapiens)
10550 ("r-iranges" ,r-iranges)
10551 ("r-rtracklayer" ,r-rtracklayer)
10552 ("r-s4vectors" ,r-s4vectors)
10553 ("r-shiny" ,r-shiny)
10554 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10555 (home-page "https://bioconductor.org/packages/erma")
10556 (synopsis "Epigenomic road map adventures")
10557 (description
10558 "The epigenomics road map describes locations of epigenetic marks in DNA
10559 from a variety of cell types. Of interest are locations of histone
10560 modifications, sites of DNA methylation, and regions of accessible chromatin.
10561 This package presents a selection of elements of the road map including
10562 metadata and outputs of the ChromImpute procedure applied to ENCODE cell lines
10563 by Ernst and Kellis.")
10564 (license license:artistic2.0)))
10565
10566 (define-public r-ldblock
10567 (package
10568 (name "r-ldblock")
10569 (version "1.16.0")
10570 (source
10571 (origin
10572 (method url-fetch)
10573 (uri (bioconductor-uri "ldblock" version))
10574 (sha256
10575 (base32
10576 "0xpigfidmylfawy6vzshqnsw1lzjs4qms8q7zffij6bkvkv7920x"))))
10577 (build-system r-build-system)
10578 (propagated-inputs
10579 `(("r-biocgenerics" ,r-biocgenerics)
10580 ("r-ensdb-hsapiens-v75" ,r-ensdb-hsapiens-v75)
10581 ("r-ensembldb" ,r-ensembldb)
10582 ("r-genomeinfodb" ,r-genomeinfodb)
10583 ("r-genomicfiles" ,r-genomicfiles)
10584 ("r-httr" ,r-httr)
10585 ("r-matrix" ,r-matrix)
10586 ("r-rsamtools" ,r-rsamtools)
10587 ("r-snpstats" ,r-snpstats)
10588 ("r-variantannotation" ,r-variantannotation)))
10589 (home-page "https://bioconductor.org/packages/ldblock")
10590 (synopsis "Data structures for linkage disequilibrium measures in populations")
10591 (description
10592 "This package defines data structures for @dfn{linkage
10593 disequilibrium} (LD) measures in populations. Its purpose is to simplify
10594 handling of existing population-level data for the purpose of flexibly
10595 defining LD blocks.")
10596 (license license:artistic2.0)))
10597
10598 (define-public r-gqtlstats
10599 (package
10600 (name "r-gqtlstats")
10601 (version "1.18.0")
10602 (source
10603 (origin
10604 (method url-fetch)
10605 (uri (bioconductor-uri "gQTLstats" version))
10606 (sha256
10607 (base32
10608 "1dly4p9r4231hf31xg1nzqiyvjbcfjljfmhb88ic1jxwnvniyv2f"))))
10609 (properties `((upstream-name . "gQTLstats")))
10610 (build-system r-build-system)
10611 (propagated-inputs
10612 `(("r-annotationdbi" ,r-annotationdbi)
10613 ("r-batchjobs" ,r-batchjobs)
10614 ("r-bbmisc" ,r-bbmisc)
10615 ("r-beeswarm" ,r-beeswarm)
10616 ("r-biobase" ,r-biobase)
10617 ("r-biocgenerics" ,r-biocgenerics)
10618 ("r-doparallel" ,r-doparallel)
10619 ("r-dplyr" ,r-dplyr)
10620 ("r-erma" ,r-erma)
10621 ("r-ffbase" ,r-ffbase)
10622 ("r-foreach" ,r-foreach)
10623 ("r-genomeinfodb" ,r-genomeinfodb)
10624 ("r-genomicfeatures" ,r-genomicfeatures)
10625 ("r-genomicfiles" ,r-genomicfiles)
10626 ("r-genomicranges" ,r-genomicranges)
10627 ("r-ggbeeswarm" ,r-ggbeeswarm)
10628 ("r-ggplot2" ,r-ggplot2)
10629 ("r-gqtlbase" ,r-gqtlbase)
10630 ("r-hardyweinberg" ,r-hardyweinberg)
10631 ("r-homo-sapiens" ,r-homo-sapiens)
10632 ("r-iranges" ,r-iranges)
10633 ("r-limma" ,r-limma)
10634 ("r-mgcv" ,r-mgcv)
10635 ("r-plotly" ,r-plotly)
10636 ("r-reshape2" ,r-reshape2)
10637 ("r-s4vectors" ,r-s4vectors)
10638 ("r-shiny" ,r-shiny)
10639 ("r-snpstats" ,r-snpstats)
10640 ("r-summarizedexperiment" ,r-summarizedexperiment)
10641 ("r-variantannotation" ,r-variantannotation)))
10642 (home-page "https://bioconductor.org/packages/gQTLstats")
10643 (synopsis "Computationally efficient analysis for eQTL and allied studies")
10644 (description
10645 "This package provides tools for the computationally efficient analysis
10646 of @dfn{quantitative trait loci} (QTL) data, including eQTL, mQTL, dsQTL, etc.
10647 The software in this package aims to support refinements and functional
10648 interpretation of members of a collection of association statistics on a
10649 family of feature/genome hypotheses.")
10650 (license license:artistic2.0)))
10651
10652 (define-public r-gviz
10653 (package
10654 (name "r-gviz")
10655 (version "1.30.3")
10656 (source
10657 (origin
10658 (method url-fetch)
10659 (uri (bioconductor-uri "Gviz" version))
10660 (sha256
10661 (base32
10662 "0c9i26h5czm60n1bxzmdxxpywcj0sig6wcj913pb41mr83bbgra3"))))
10663 (properties `((upstream-name . "Gviz")))
10664 (build-system r-build-system)
10665 (propagated-inputs
10666 `(("r-annotationdbi" ,r-annotationdbi)
10667 ("r-biobase" ,r-biobase)
10668 ("r-biocgenerics" ,r-biocgenerics)
10669 ("r-biomart" ,r-biomart)
10670 ("r-biostrings" ,r-biostrings)
10671 ("r-biovizbase" ,r-biovizbase)
10672 ("r-bsgenome" ,r-bsgenome)
10673 ("r-digest" ,r-digest)
10674 ("r-genomeinfodb" ,r-genomeinfodb)
10675 ("r-genomicalignments" ,r-genomicalignments)
10676 ("r-genomicfeatures" ,r-genomicfeatures)
10677 ("r-genomicranges" ,r-genomicranges)
10678 ("r-iranges" ,r-iranges)
10679 ("r-lattice" ,r-lattice)
10680 ("r-latticeextra" ,r-latticeextra)
10681 ("r-matrixstats" ,r-matrixstats)
10682 ("r-rcolorbrewer" ,r-rcolorbrewer)
10683 ("r-rsamtools" ,r-rsamtools)
10684 ("r-rtracklayer" ,r-rtracklayer)
10685 ("r-s4vectors" ,r-s4vectors)
10686 ("r-xvector" ,r-xvector)))
10687 (home-page "https://bioconductor.org/packages/Gviz")
10688 (synopsis "Plotting data and annotation information along genomic coordinates")
10689 (description
10690 "Genomic data analyses requires integrated visualization of known genomic
10691 information and new experimental data. Gviz uses the biomaRt and the
10692 rtracklayer packages to perform live annotation queries to Ensembl and UCSC
10693 and translates this to e.g. gene/transcript structures in viewports of the
10694 grid graphics package. This results in genomic information plotted together
10695 with your data.")
10696 (license license:artistic2.0)))
10697
10698 (define-public r-gwascat
10699 (package
10700 (name "r-gwascat")
10701 (version "2.18.0")
10702 (source
10703 (origin
10704 (method url-fetch)
10705 (uri (bioconductor-uri "gwascat" version))
10706 (sha256
10707 (base32
10708 "038vhfsk2vs7inn5di093cmjbb81k7j0af385sg7l01jj70bdqq1"))))
10709 (build-system r-build-system)
10710 (propagated-inputs
10711 `(("r-annotationdbi" ,r-annotationdbi)
10712 ("r-biocgenerics" ,r-biocgenerics)
10713 ("r-biostrings" ,r-biostrings)
10714 ("r-genomeinfodb" ,r-genomeinfodb)
10715 ("r-genomicfeatures" ,r-genomicfeatures)
10716 ("r-genomicranges" ,r-genomicranges)
10717 ("r-homo-sapiens" ,r-homo-sapiens)
10718 ("r-iranges" ,r-iranges)
10719 ("r-rsamtools" ,r-rsamtools)
10720 ("r-rtracklayer" ,r-rtracklayer)
10721 ("r-s4vectors" ,r-s4vectors)))
10722 (home-page "https://bioconductor.org/packages/gwascat")
10723 (synopsis "Tools for data in the EMBL-EBI GWAS catalog")
10724 (description
10725 "This package provides tools for representing and modeling data in the
10726 EMBL-EBI GWAS catalog.")
10727 (license license:artistic2.0)))
10728
10729 (define-public r-sushi
10730 (package
10731 (name "r-sushi")
10732 (version "1.24.0")
10733 (source (origin
10734 (method url-fetch)
10735 (uri (bioconductor-uri "Sushi" version))
10736 (sha256
10737 (base32
10738 "15xng21hd09fb234ravrry3b872zg82w8x9lijxab9n96xihcpz5"))))
10739 (properties `((upstream-name . "Sushi")))
10740 (build-system r-build-system)
10741 (propagated-inputs
10742 `(("r-biomart" ,r-biomart)
10743 ("r-zoo" ,r-zoo)))
10744 (home-page "https://bioconductor.org/packages/Sushi")
10745 (synopsis "Tools for visualizing genomics data")
10746 (description
10747 "This package provides flexible, quantitative, and integrative genomic
10748 visualizations for publication-quality multi-panel figures.")
10749 (license license:gpl2+)))
10750
10751 (define-public r-fithic
10752 (package
10753 (name "r-fithic")
10754 (version "1.12.0")
10755 (source (origin
10756 (method url-fetch)
10757 (uri (bioconductor-uri "FitHiC" version))
10758 (sha256
10759 (base32
10760 "1irwkwi4afdj395134k31mvx7c2vpdd0rv8zrblnldascdsb04kc"))))
10761 (properties `((upstream-name . "FitHiC")))
10762 (build-system r-build-system)
10763 (propagated-inputs
10764 `(("r-data-table" ,r-data-table)
10765 ("r-fdrtool" ,r-fdrtool)
10766 ("r-rcpp" ,r-rcpp)))
10767 (home-page "https://bioconductor.org/packages/FitHiC")
10768 (synopsis "Confidence estimation for intra-chromosomal contact maps")
10769 (description
10770 "Fit-Hi-C is a tool for assigning statistical confidence estimates to
10771 intra-chromosomal contact maps produced by genome-wide genome architecture
10772 assays such as Hi-C.")
10773 (license license:gpl2+)))
10774
10775 (define-public r-hitc
10776 (package
10777 (name "r-hitc")
10778 (version "1.30.0")
10779 (source (origin
10780 (method url-fetch)
10781 (uri (bioconductor-uri "HiTC" version))
10782 (sha256
10783 (base32
10784 "0byahi0fz0dzjyklz8v9whax9ygg7gwb4pl1j3zbl6z8a9qx8pps"))))
10785 (properties `((upstream-name . "HiTC")))
10786 (build-system r-build-system)
10787 (propagated-inputs
10788 `(("r-biostrings" ,r-biostrings)
10789 ("r-genomeinfodb" ,r-genomeinfodb)
10790 ("r-genomicranges" ,r-genomicranges)
10791 ("r-iranges" ,r-iranges)
10792 ("r-matrix" ,r-matrix)
10793 ("r-rcolorbrewer" ,r-rcolorbrewer)
10794 ("r-rtracklayer" ,r-rtracklayer)))
10795 (home-page "https://bioconductor.org/packages/HiTC")
10796 (synopsis "High throughput chromosome conformation capture analysis")
10797 (description
10798 "The HiTC package was developed to explore high-throughput \"C\" data
10799 such as 5C or Hi-C. Dedicated R classes as well as standard methods for
10800 quality controls, normalization, visualization, and further analysis are also
10801 provided.")
10802 (license license:artistic2.0)))
10803
10804 (define-public r-hdf5array
10805 (package
10806 (name "r-hdf5array")
10807 (version "1.14.4")
10808 (source
10809 (origin
10810 (method url-fetch)
10811 (uri (bioconductor-uri "HDF5Array" version))
10812 (sha256
10813 (base32
10814 "0ib0grhd9zbrn0dkrm4aa7qj7h0y6z1dvyx1ab3w6vczw7xghsfb"))))
10815 (properties `((upstream-name . "HDF5Array")))
10816 (build-system r-build-system)
10817 (inputs
10818 `(("zlib" ,zlib)))
10819 (propagated-inputs
10820 `(("r-biocgenerics" ,r-biocgenerics)
10821 ("r-delayedarray" ,r-delayedarray)
10822 ("r-iranges" ,r-iranges)
10823 ("r-matrix" ,r-matrix)
10824 ("r-rhdf5" ,r-rhdf5)
10825 ("r-rhdf5lib" ,r-rhdf5lib)
10826 ("r-s4vectors" ,r-s4vectors)))
10827 (home-page "https://bioconductor.org/packages/HDF5Array")
10828 (synopsis "HDF5 back end for DelayedArray objects")
10829 (description "This package provides an array-like container for convenient
10830 access and manipulation of HDF5 datasets. It supports delayed operations and
10831 block processing.")
10832 (license license:artistic2.0)))
10833
10834 (define-public r-rhdf5lib
10835 (package
10836 (name "r-rhdf5lib")
10837 (version "1.8.0")
10838 (source
10839 (origin
10840 (method url-fetch)
10841 (uri (bioconductor-uri "Rhdf5lib" version))
10842 (sha256
10843 (base32
10844 "17lhwnm9rqsvbqkvwp0m07vjrk63a4389p2y39zffv8fgznxqzd7"))
10845 (modules '((guix build utils)))
10846 (snippet
10847 '(begin
10848 ;; Delete bundled binaries
10849 (delete-file-recursively "src/winlib/")
10850 #t))))
10851 (properties `((upstream-name . "Rhdf5lib")))
10852 (build-system r-build-system)
10853 (arguments
10854 `(#:phases
10855 (modify-phases %standard-phases
10856 (add-after 'unpack 'do-not-use-bundled-hdf5
10857 (lambda* (#:key inputs #:allow-other-keys)
10858 (for-each delete-file '("configure" "configure.ac"))
10859 ;; Do not make other packages link with the proprietary libsz.
10860 (substitute* "R/zzz.R"
10861 (("'\"%s/libhdf5.a\" \"%s/libsz.a\" -lz'")
10862 "'\"%s/libhdf5.a\" \"%s/libhdf5.a\" -lz'")
10863 (("'\"%s/libhdf5_cpp.a\" \"%s/libhdf5.a\" \"%s/libsz.a\" -lz'")
10864 "'\"%s/libhdf5_cpp.a\" \"%s/libhdf5.a\" \"%s/libhdf5.a\" -lz'")
10865 (("'%s/libhdf5_hl.a %s/libhdf5.a %s/libsz.a -lz'")
10866 "'%s/libhdf5_hl.a %s/libhdf5.a %s/libhdf5.a -lz'")
10867 (("'%s/libhdf5_hl_cpp.a %s/libhdf5_hl.a %s/libhdf5_cpp.a %s/libhdf5.a %s/libsz.a -lz'")
10868 "'%s/libhdf5_hl_cpp.a %s/libhdf5_hl.a %s/libhdf5_cpp.a %s/libhdf5.a %s/libhdf5.a -lz'"))
10869 (with-directory-excursion "src"
10870 (invoke "tar" "xvf" (assoc-ref inputs "hdf5-source"))
10871 (rename-file (string-append "hdf5-" ,(package-version hdf5-1.10))
10872 "hdf5")
10873 ;; Remove timestamp and host system information to make
10874 ;; the build reproducible.
10875 (substitute* "hdf5/src/libhdf5.settings.in"
10876 (("Configured on: @CONFIG_DATE@")
10877 "Configured on: Guix")
10878 (("Uname information:.*")
10879 "Uname information: Linux\n")
10880 ;; Remove unnecessary store reference.
10881 (("C Compiler:.*")
10882 "C Compiler: GCC\n"))
10883 (rename-file "Makevars.in" "Makevars")
10884 (substitute* "Makevars"
10885 (("HDF5_CXX_LIB=.*")
10886 (string-append "HDF5_CXX_LIB="
10887 (assoc-ref inputs "hdf5") "/lib/libhdf5_cpp.a\n"))
10888 (("HDF5_LIB=.*")
10889 (string-append "HDF5_LIB="
10890 (assoc-ref inputs "hdf5") "/lib/libhdf5.a\n"))
10891 (("HDF5_CXX_INCLUDE=.*") "HDF5_CXX_INCLUDE=./hdf5/c++/src\n")
10892 (("HDF5_INCLUDE=.*") "HDF5_INCLUDE=./hdf5/src\n")
10893 (("HDF5_HL_INCLUDE=.*") "HDF5_HL_INCLUDE=./hdf5/hl/src\n")
10894 (("HDF5_HL_CXX_INCLUDE=.*") "HDF5_HL_CXX_INCLUDE=./hdf5/hl/c++/src\n")
10895 (("HDF5_HL_LIB=.*")
10896 (string-append "HDF5_HL_LIB="
10897 (assoc-ref inputs "hdf5") "/lib/libhdf5_hl.a\n"))
10898 (("HDF5_HL_CXX_LIB=.*")
10899 (string-append "HDF5_HL_CXX_LIB="
10900 (assoc-ref inputs "hdf5") "/lib/libhdf5_hl_cpp.a\n"))
10901 ;; szip is non-free software
10902 (("cp \"\\$\\{SZIP_LIB\\}.*") "")
10903 (("PKG_LIBS =.*") "PKG_LIBS = -lz -lhdf5\n")))
10904 #t)))))
10905 (inputs
10906 `(("zlib" ,zlib)))
10907 (propagated-inputs
10908 `(("hdf5" ,hdf5-1.10)))
10909 (native-inputs
10910 `(("hdf5-source" ,(package-source hdf5-1.10))))
10911 (home-page "https://bioconductor.org/packages/Rhdf5lib")
10912 (synopsis "HDF5 library as an R package")
10913 (description "This package provides C and C++ HDF5 libraries for use in R
10914 packages.")
10915 (license license:artistic2.0)))
10916
10917 (define-public r-beachmat
10918 (package
10919 (name "r-beachmat")
10920 (version "2.2.1")
10921 (source
10922 (origin
10923 (method url-fetch)
10924 (uri (bioconductor-uri "beachmat" version))
10925 (sha256
10926 (base32
10927 "1bpnlw2kdy9yc2vq948k980r0j25ipb80llhvn0j3kxjiwyfgs3i"))))
10928 (build-system r-build-system)
10929 (propagated-inputs
10930 `(("r-biocgenerics" ,r-biocgenerics)
10931 ("r-delayedarray" ,r-delayedarray)
10932 ("r-matrix" ,r-matrix)))
10933 (home-page "https://bioconductor.org/packages/beachmat")
10934 (synopsis "Compiling Bioconductor to handle each matrix type")
10935 (description "This package provides a consistent C++ class interface for a
10936 variety of commonly used matrix types, including sparse and HDF5-backed
10937 matrices.")
10938 (license license:gpl3)))
10939
10940 (define-public r-singlecellexperiment
10941 (package
10942 (name "r-singlecellexperiment")
10943 (version "1.8.0")
10944 (source
10945 (origin
10946 (method url-fetch)
10947 (uri (bioconductor-uri "SingleCellExperiment" version))
10948 (sha256
10949 (base32
10950 "11pqb3cigi9xbhxq2k3n7z23v1ibd03ws1lcrh5c5ffgb33nlyw5"))))
10951 (properties
10952 `((upstream-name . "SingleCellExperiment")))
10953 (build-system r-build-system)
10954 (propagated-inputs
10955 `(("r-biocgenerics" ,r-biocgenerics)
10956 ("r-s4vectors" ,r-s4vectors)
10957 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10958 (home-page "https://bioconductor.org/packages/SingleCellExperiment")
10959 (synopsis "S4 classes for single cell data")
10960 (description "This package defines an S4 class for storing data from
10961 single-cell experiments. This includes specialized methods to store and
10962 retrieve spike-in information, dimensionality reduction coordinates and size
10963 factors for each cell, along with the usual metadata for genes and
10964 libraries.")
10965 (license license:gpl3)))
10966
10967 (define-public r-scater
10968 (package
10969 (name "r-scater")
10970 (version "1.14.6")
10971 (source (origin
10972 (method url-fetch)
10973 (uri (bioconductor-uri "scater" version))
10974 (sha256
10975 (base32
10976 "0sxd1s8wdlj9926bagq4crjrk1nnmh3j3bhgrw160zfgc3y8pzck"))))
10977 (build-system r-build-system)
10978 (propagated-inputs
10979 `(("r-beachmat" ,r-beachmat)
10980 ("r-biocgenerics" ,r-biocgenerics)
10981 ("r-biocneighbors" ,r-biocneighbors)
10982 ("r-biocparallel" ,r-biocparallel)
10983 ("r-biocsingular" ,r-biocsingular)
10984 ("r-delayedarray" ,r-delayedarray)
10985 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
10986 ("r-ggbeeswarm" ,r-ggbeeswarm)
10987 ("r-ggplot2" ,r-ggplot2)
10988 ("r-matrix" ,r-matrix)
10989 ("r-rcpp" ,r-rcpp)
10990 ("r-s4vectors" ,r-s4vectors)
10991 ("r-singlecellexperiment" ,r-singlecellexperiment)
10992 ("r-summarizedexperiment" ,r-summarizedexperiment)
10993 ("r-viridis" ,r-viridis)))
10994 (home-page "https://github.com/davismcc/scater")
10995 (synopsis "Single-cell analysis toolkit for gene expression data in R")
10996 (description "This package provides a collection of tools for doing
10997 various analyses of single-cell RNA-seq gene expression data, with a focus on
10998 quality control.")
10999 (license license:gpl2+)))
11000
11001 (define-public r-scran
11002 (package
11003 (name "r-scran")
11004 (version "1.14.6")
11005 (source
11006 (origin
11007 (method url-fetch)
11008 (uri (bioconductor-uri "scran" version))
11009 (sha256
11010 (base32
11011 "1y8wlgk5zbv7c7gcp0ahfpbh9lifab7y3zwf0093fzaw7vr1y6cr"))))
11012 (build-system r-build-system)
11013 (propagated-inputs
11014 `(("r-beachmat" ,r-beachmat)
11015 ("r-bh" ,r-bh)
11016 ("r-biocgenerics" ,r-biocgenerics)
11017 ("r-biocneighbors" ,r-biocneighbors)
11018 ("r-biocparallel" ,r-biocparallel)
11019 ("r-biocsingular" ,r-biocsingular)
11020 ("r-delayedarray" ,r-delayedarray)
11021 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
11022 ("r-dqrng" ,r-dqrng)
11023 ("r-edger" ,r-edger)
11024 ("r-igraph" ,r-igraph)
11025 ("r-limma" ,r-limma)
11026 ("r-matrix" ,r-matrix)
11027 ("r-rcpp" ,r-rcpp)
11028 ("r-s4vectors" ,r-s4vectors)
11029 ("r-scater" ,r-scater)
11030 ("r-singlecellexperiment" ,r-singlecellexperiment)
11031 ("r-statmod" ,r-statmod)
11032 ("r-summarizedexperiment" ,r-summarizedexperiment)))
11033 (home-page "https://bioconductor.org/packages/scran")
11034 (synopsis "Methods for single-cell RNA-Seq data analysis")
11035 (description "This package implements a variety of low-level analyses of
11036 single-cell RNA-seq data. Methods are provided for normalization of
11037 cell-specific biases, assignment of cell cycle phase, and detection of highly
11038 variable and significantly correlated genes.")
11039 (license license:gpl3)))
11040
11041 (define-public r-delayedmatrixstats
11042 (package
11043 (name "r-delayedmatrixstats")
11044 (version "1.8.0")
11045 (source
11046 (origin
11047 (method url-fetch)
11048 (uri (bioconductor-uri "DelayedMatrixStats" version))
11049 (sha256
11050 (base32
11051 "0mv2rl6a6l404piabcazxz1s6ars016pxhjf5v40hhr6y1r0wbqy"))))
11052 (properties
11053 `((upstream-name . "DelayedMatrixStats")))
11054 (build-system r-build-system)
11055 (propagated-inputs
11056 `(("r-biocparallel" ,r-biocparallel)
11057 ("r-delayedarray" ,r-delayedarray)
11058 ("r-hdf5array" ,r-hdf5array)
11059 ("r-iranges" ,r-iranges)
11060 ("r-matrix" ,r-matrix)
11061 ("r-matrixstats" ,r-matrixstats)
11062 ("r-s4vectors" ,r-s4vectors)))
11063 (home-page "https://github.com/PeteHaitch/DelayedMatrixStats")
11064 (synopsis "Functions that apply to rows and columns of DelayedMatrix objects")
11065 (description
11066 "This package provides a port of the @code{matrixStats} API for use with
11067 @code{DelayedMatrix} objects from the @code{DelayedArray} package. It
11068 contains high-performing functions operating on rows and columns of
11069 @code{DelayedMatrix} objects, e.g. @code{colMedians}, @code{rowMedians},
11070 @code{colRanks}, @code{rowRanks}, @code{colSds}, and @code{rowSds}. Functions
11071 are optimized per data type and for subsetted calculations such that both
11072 memory usage and processing time is minimized.")
11073 (license license:expat)))
11074
11075 (define-public r-phangorn
11076 (package
11077 (name "r-phangorn")
11078 (version "2.5.5")
11079 (source
11080 (origin
11081 (method url-fetch)
11082 (uri (cran-uri "phangorn" version))
11083 (sha256
11084 (base32
11085 "0ihkaykqjmf80d8wrk3saphxvnv58zma6pd13633bd3cwanc33f5"))))
11086 (build-system r-build-system)
11087 (propagated-inputs
11088 `(("r-ape" ,r-ape)
11089 ("r-fastmatch" ,r-fastmatch)
11090 ("r-igraph" ,r-igraph)
11091 ("r-magrittr" ,r-magrittr)
11092 ("r-matrix" ,r-matrix)
11093 ("r-quadprog" ,r-quadprog)
11094 ("r-rcpp" ,r-rcpp)))
11095 (home-page "https://github.com/KlausVigo/phangorn")
11096 (synopsis "Phylogenetic analysis in R")
11097 (description
11098 "Phangorn is a package for phylogenetic analysis in R. It supports
11099 estimation of phylogenetic trees and networks using Maximum Likelihood,
11100 Maximum Parsimony, distance methods and Hadamard conjugation.")
11101 (license license:gpl2+)))
11102
11103 (define-public r-dropbead
11104 (let ((commit "d746c6f3b32110428ea56d6a0001ce52a251c247")
11105 (revision "2"))
11106 (package
11107 (name "r-dropbead")
11108 (version (string-append "0-" revision "." (string-take commit 7)))
11109 (source
11110 (origin
11111 (method git-fetch)
11112 (uri (git-reference
11113 (url "https://github.com/rajewsky-lab/dropbead.git")
11114 (commit commit)))
11115 (file-name (git-file-name name version))
11116 (sha256
11117 (base32
11118 "0sbzma49aiiyw8b0jpr7fnhzys9nsqmp4hy4hdz1gzyg1lhnca26"))))
11119 (build-system r-build-system)
11120 (propagated-inputs
11121 `(("r-ggplot2" ,r-ggplot2)
11122 ("r-rcolorbrewer" ,r-rcolorbrewer)
11123 ("r-gridextra" ,r-gridextra)
11124 ("r-gplots" ,r-gplots)
11125 ("r-plyr" ,r-plyr)))
11126 (home-page "https://github.com/rajewsky-lab/dropbead")
11127 (synopsis "Basic exploration and analysis of Drop-seq data")
11128 (description "This package offers a quick and straight-forward way to
11129 explore and perform basic analysis of single cell sequencing data coming from
11130 droplet sequencing. It has been particularly tailored for Drop-seq.")
11131 (license license:gpl3))))
11132
11133 (define htslib-for-sambamba
11134 (let ((commit "2f3c3ea7b301f9b45737a793c0b2dcf0240e5ee5"))
11135 (package
11136 (inherit htslib)
11137 (name "htslib-for-sambamba")
11138 (version (string-append "1.3.1-1." (string-take commit 9)))
11139 (source
11140 (origin
11141 (method git-fetch)
11142 (uri (git-reference
11143 (url "https://github.com/lomereiter/htslib.git")
11144 (commit commit)))
11145 (file-name (string-append "htslib-" version "-checkout"))
11146 (sha256
11147 (base32
11148 "0g38g8s3npr0gjm9fahlbhiskyfws9l5i0x1ml3rakzj7az5l9c9"))))
11149 (native-inputs
11150 `(("autoconf" ,autoconf)
11151 ("automake" ,automake)
11152 ,@(package-native-inputs htslib))))))
11153
11154 (define-public sambamba
11155 (package
11156 (name "sambamba")
11157 (version "0.7.1")
11158 (source
11159 (origin
11160 (method git-fetch)
11161 (uri (git-reference
11162 (url "https://github.com/lomereiter/sambamba.git")
11163 (commit (string-append "v" version))))
11164 (file-name (string-append name "-" version "-checkout"))
11165 (sha256
11166 (base32
11167 "111h05b60pj8dxbidiamy4imc92x2962b3lmb7wgysl6lx064qis"))))
11168 (build-system gnu-build-system)
11169 (arguments
11170 `(#:tests? #f ; there is no test target
11171 #:parallel-build? #f ; not supported
11172 #:phases
11173 (modify-phases %standard-phases
11174 (delete 'configure)
11175 (add-after 'unpack 'fix-ldc-version
11176 (lambda _
11177 (substitute* "gen_ldc_version_info.py"
11178 (("/usr/bin/env.*") (which "python3")))
11179 (substitute* "Makefile"
11180 ;; We use ldc2 instead of ldmd2 to compile sambamba.
11181 (("\\$\\(shell which ldmd2\\)") (which "ldc2")))
11182 #t))
11183 (add-after 'unpack 'place-biod-and-undead
11184 (lambda* (#:key inputs #:allow-other-keys)
11185 (copy-recursively (assoc-ref inputs "biod") "BioD")
11186 #t))
11187 (add-after 'unpack 'unbundle-prerequisites
11188 (lambda _
11189 (substitute* "Makefile"
11190 (("htslib/libhts.a lz4/lib/liblz4.a")
11191 "-L-lhts -L-llz4")
11192 ((" lz4-static htslib-static") ""))
11193 #t))
11194 (replace 'install
11195 (lambda* (#:key outputs #:allow-other-keys)
11196 (let* ((out (assoc-ref outputs "out"))
11197 (bin (string-append out "/bin")))
11198 (mkdir-p bin)
11199 (copy-file (string-append "bin/sambamba-" ,version)
11200 (string-append bin "/sambamba"))
11201 #t))))))
11202 (native-inputs
11203 `(("ldc" ,ldc)
11204 ("rdmd" ,rdmd)
11205 ("python" ,python)
11206 ("biod"
11207 ,(let ((commit "7969eb0a847b05874e83ffddead26e193ece8101"))
11208 (origin
11209 (method git-fetch)
11210 (uri (git-reference
11211 (url "https://github.com/biod/BioD.git")
11212 (commit commit)))
11213 (file-name (string-append "biod-"
11214 (string-take commit 9)
11215 "-checkout"))
11216 (sha256
11217 (base32
11218 "0mjxsmbmv0jxl3pq21p8j5r829d648if8q58ka50b2956lc6qkpm")))))))
11219 (inputs
11220 `(("lz4" ,lz4)
11221 ("htslib" ,htslib-for-sambamba)))
11222 (home-page "https://lomereiter.github.io/sambamba/")
11223 (synopsis "Tools for working with SAM/BAM data")
11224 (description "Sambamba is a high performance modern robust and
11225 fast tool (and library), written in the D programming language, for
11226 working with SAM and BAM files. Current parallelised functionality is
11227 an important subset of samtools functionality, including view, index,
11228 sort, markdup, and depth.")
11229 (license license:gpl2+)))
11230
11231 (define-public ritornello
11232 (package
11233 (name "ritornello")
11234 (version "2.0.1")
11235 (source (origin
11236 (method git-fetch)
11237 (uri (git-reference
11238 (url "https://github.com/KlugerLab/Ritornello.git")
11239 (commit (string-append "v" version))))
11240 (file-name (git-file-name name version))
11241 (sha256
11242 (base32
11243 "1xahvq215qld7x1w8vpa5zbrsj6p9crb9shqa2x89sb0aaxa02jk"))))
11244 (build-system gnu-build-system)
11245 (arguments
11246 `(#:tests? #f ; there are no tests
11247 #:phases
11248 (modify-phases %standard-phases
11249 (add-after 'unpack 'patch-samtools-references
11250 (lambda* (#:key inputs #:allow-other-keys)
11251 (substitute* '("src/SamStream.h"
11252 "src/FLD.cpp")
11253 (("<sam.h>") "<samtools/sam.h>"))
11254 #t))
11255 (delete 'configure)
11256 (replace 'install
11257 (lambda* (#:key inputs outputs #:allow-other-keys)
11258 (let* ((out (assoc-ref outputs "out"))
11259 (bin (string-append out "/bin/")))
11260 (mkdir-p bin)
11261 (install-file "bin/Ritornello" bin)
11262 #t))))))
11263 (inputs
11264 `(("samtools" ,samtools-0.1)
11265 ("fftw" ,fftw)
11266 ("boost" ,boost)
11267 ("zlib" ,zlib)))
11268 (home-page "https://github.com/KlugerLab/Ritornello")
11269 (synopsis "Control-free peak caller for ChIP-seq data")
11270 (description "Ritornello is a ChIP-seq peak calling algorithm based on
11271 signal processing that can accurately call binding events without the need to
11272 do a pair total DNA input or IgG control sample. It has been tested for use
11273 with narrow binding events such as transcription factor ChIP-seq.")
11274 (license license:gpl3+)))
11275
11276 (define-public trim-galore
11277 (package
11278 (name "trim-galore")
11279 (version "0.6.1")
11280 (source
11281 (origin
11282 (method git-fetch)
11283 (uri (git-reference
11284 (url "https://github.com/FelixKrueger/TrimGalore.git")
11285 (commit version)))
11286 (file-name (git-file-name name version))
11287 (sha256
11288 (base32
11289 "1y31wbxwkm9xqzr5zv1pk5q418whnmlmgmfyxxpnl12h83m2i9iv"))))
11290 (build-system gnu-build-system)
11291 (arguments
11292 `(#:tests? #f ; no tests
11293 #:phases
11294 (modify-phases %standard-phases
11295 (replace 'configure
11296 (lambda _
11297 ;; Trim Galore tries to figure out what version of Python
11298 ;; cutadapt is using by looking at the shebang. Of course that
11299 ;; doesn't work, because cutadapt is wrapped in a shell script.
11300 (substitute* "trim_galore"
11301 (("my \\$python_return.*")
11302 "my $python_return = \"Python 3.999\";\n"))
11303 #t))
11304 (delete 'build)
11305 (add-after 'unpack 'hardcode-tool-references
11306 (lambda* (#:key inputs #:allow-other-keys)
11307 (substitute* "trim_galore"
11308 (("\\$path_to_cutadapt = 'cutadapt'")
11309 (string-append "$path_to_cutadapt = '"
11310 (assoc-ref inputs "cutadapt")
11311 "/bin/cutadapt'"))
11312 (("\\$compression_path = \"gzip\"")
11313 (string-append "$compression_path = \""
11314 (assoc-ref inputs "gzip")
11315 "/bin/gzip\""))
11316 (("\"gunzip")
11317 (string-append "\""
11318 (assoc-ref inputs "gzip")
11319 "/bin/gunzip"))
11320 (("\"pigz")
11321 (string-append "\""
11322 (assoc-ref inputs "pigz")
11323 "/bin/pigz")))
11324 #t))
11325 (replace 'install
11326 (lambda* (#:key outputs #:allow-other-keys)
11327 (let ((bin (string-append (assoc-ref outputs "out")
11328 "/bin")))
11329 (mkdir-p bin)
11330 (install-file "trim_galore" bin)
11331 #t))))))
11332 (inputs
11333 `(("gzip" ,gzip)
11334 ("perl" ,perl)
11335 ("pigz" ,pigz)
11336 ("cutadapt" ,cutadapt)))
11337 (native-inputs
11338 `(("unzip" ,unzip)))
11339 (home-page "https://www.bioinformatics.babraham.ac.uk/projects/trim_galore/")
11340 (synopsis "Wrapper around Cutadapt and FastQC")
11341 (description "Trim Galore! is a wrapper script to automate quality and
11342 adapter trimming as well as quality control, with some added functionality to
11343 remove biased methylation positions for RRBS sequence files.")
11344 (license license:gpl3+)))
11345
11346 (define-public gess
11347 (package
11348 (name "gess")
11349 (version "1.0")
11350 (source (origin
11351 (method url-fetch)
11352 (uri (string-append "http://compbio.uthscsa.edu/"
11353 "GESS_Web/files/"
11354 "gess-" version ".src.tar.gz"))
11355 (sha256
11356 (base32
11357 "0hyk403kxscclzfs24pvdgiv0wm03kjcziqdrp5w46cb049gz0d7"))))
11358 (build-system gnu-build-system)
11359 (arguments
11360 `(#:tests? #f ; no tests
11361 #:phases
11362 (modify-phases %standard-phases
11363 (delete 'configure)
11364 (delete 'build)
11365 (replace 'install
11366 (lambda* (#:key inputs outputs #:allow-other-keys)
11367 (let* ((python (assoc-ref inputs "python"))
11368 (out (assoc-ref outputs "out"))
11369 (bin (string-append out "/bin/"))
11370 (target (string-append
11371 out "/lib/python"
11372 ,(version-major+minor
11373 (package-version python))
11374 "/site-packages/gess/")))
11375 (mkdir-p target)
11376 (copy-recursively "." target)
11377 ;; Make GESS.py executable
11378 (chmod (string-append target "GESS.py") #o555)
11379 ;; Add Python shebang to the top and make Matplotlib
11380 ;; usable.
11381 (substitute* (string-append target "GESS.py")
11382 (("\"\"\"Description:" line)
11383 (string-append "#!" (which "python") "
11384 import matplotlib
11385 matplotlib.use('Agg')
11386 " line)))
11387 ;; Make sure GESS has all modules in its path
11388 (wrap-script (string-append target "GESS.py")
11389 `("PYTHONPATH" ":" = (,target ,(getenv "PYTHONPATH"))))
11390 (mkdir-p bin)
11391 (symlink (string-append target "GESS.py")
11392 (string-append bin "GESS.py"))
11393 #t))))))
11394 (inputs
11395 `(("python" ,python-2)
11396 ("python2-pysam" ,python2-pysam)
11397 ("python2-scipy" ,python2-scipy)
11398 ("python2-numpy" ,python2-numpy)
11399 ("python2-networkx" ,python2-networkx)
11400 ("python2-biopython" ,python2-biopython)
11401 ("guile" ,guile-3.0))) ; for the script wrapper
11402 (home-page "https://compbio.uthscsa.edu/GESS_Web/")
11403 (synopsis "Detect exon-skipping events from raw RNA-seq data")
11404 (description
11405 "GESS is an implementation of a novel computational method to detect de
11406 novo exon-skipping events directly from raw RNA-seq data without the prior
11407 knowledge of gene annotation information. GESS stands for the graph-based
11408 exon-skipping scanner detection scheme.")
11409 (license license:bsd-3)))
11410
11411 (define-public phylip
11412 (package
11413 (name "phylip")
11414 (version "3.696")
11415 (source
11416 (origin
11417 (method url-fetch)
11418 (uri (string-append "http://evolution.gs.washington.edu/phylip/"
11419 "download/phylip-" version ".tar.gz"))
11420 (sha256
11421 (base32
11422 "01jar1rayhr2gba2pgbw49m56rc5z4p5wn3ds0m188hrlln4a2nd"))))
11423 (build-system gnu-build-system)
11424 (arguments
11425 `(#:tests? #f ; no check target
11426 #:make-flags (list "-f" "Makefile.unx" "install")
11427 #:parallel-build? #f ; not supported
11428 #:phases
11429 (modify-phases %standard-phases
11430 (add-after 'unpack 'enter-dir
11431 (lambda _ (chdir "src") #t))
11432 (delete 'configure)
11433 (replace 'install
11434 (lambda* (#:key inputs outputs #:allow-other-keys)
11435 (let ((target (string-append (assoc-ref outputs "out")
11436 "/bin")))
11437 (mkdir-p target)
11438 (for-each (lambda (file)
11439 (install-file file target))
11440 (find-files "../exe" ".*")))
11441 #t)))))
11442 (home-page "http://evolution.genetics.washington.edu/phylip/")
11443 (synopsis "Tools for inferring phylogenies")
11444 (description "PHYLIP (the PHYLogeny Inference Package) is a package of
11445 programs for inferring phylogenies (evolutionary trees).")
11446 (license license:bsd-2)))
11447
11448 (define-public imp
11449 (package
11450 (name "imp")
11451 (version "2.6.2")
11452 (source
11453 (origin
11454 (method url-fetch)
11455 (uri (string-append "https://integrativemodeling.org/"
11456 version "/download/imp-" version ".tar.gz"))
11457 (sha256
11458 (base32
11459 "0lxqx7vh79d771svr611dkilp6sn30qrbw8zvscbrm37v38d2j6h"))))
11460 (build-system cmake-build-system)
11461 (arguments
11462 `(;; FIXME: Some tests fail because they produce warnings, others fail
11463 ;; because the PYTHONPATH does not include the modeller's directory.
11464 #:tests? #f))
11465 (inputs
11466 `(("boost" ,boost)
11467 ("gsl" ,gsl)
11468 ("swig" ,swig)
11469 ("hdf5" ,hdf5)
11470 ("fftw" ,fftw)
11471 ("python" ,python-2)))
11472 (propagated-inputs
11473 `(("python2-numpy" ,python2-numpy)
11474 ("python2-scipy" ,python2-scipy)
11475 ("python2-pandas" ,python2-pandas)
11476 ("python2-scikit-learn" ,python2-scikit-learn)
11477 ("python2-networkx" ,python2-networkx)))
11478 (home-page "https://integrativemodeling.org")
11479 (synopsis "Integrative modeling platform")
11480 (description "IMP's broad goal is to contribute to a comprehensive
11481 structural characterization of biomolecules ranging in size and complexity
11482 from small peptides to large macromolecular assemblies, by integrating data
11483 from diverse biochemical and biophysical experiments. IMP provides a C++ and
11484 Python toolbox for solving complex modeling problems, and a number of
11485 applications for tackling some common problems in a user-friendly way.")
11486 ;; IMP is largely available under the GNU Lesser GPL; see the file
11487 ;; COPYING.LGPL for the full text of this license. Some IMP modules are
11488 ;; available under the GNU GPL (see the file COPYING.GPL).
11489 (license (list license:lgpl2.1+
11490 license:gpl3+))))
11491
11492 (define-public tadbit
11493 (package
11494 (name "tadbit")
11495 (version "0.2.0")
11496 (source (origin
11497 (method git-fetch)
11498 (uri (git-reference
11499 (url "https://github.com/3DGenomes/TADbit.git")
11500 (commit (string-append "v" version))))
11501 (file-name (git-file-name name version))
11502 (sha256
11503 (base32
11504 "07g3aj648prmsvxp9caz5yl41k0y0647vxh0f5p3w8376mfiljd0"))))
11505 (build-system python-build-system)
11506 (arguments
11507 `(;; Tests are included and must be run after installation, but
11508 ;; they are incomplete and thus cannot be run.
11509 #:tests? #f
11510 #:python ,python-2
11511 #:phases
11512 (modify-phases %standard-phases
11513 (add-after 'unpack 'fix-problems-with-setup.py
11514 (lambda* (#:key outputs #:allow-other-keys)
11515 ;; setup.py opens these files for writing
11516 (chmod "_pytadbit/_version.py" #o664)
11517 (chmod "README.rst" #o664)
11518
11519 ;; Don't attempt to install the bash completions to
11520 ;; the home directory.
11521 (rename-file "extras/.bash_completion"
11522 "extras/tadbit")
11523 (substitute* "setup.py"
11524 (("\\(path.expanduser\\('~'\\)")
11525 (string-append "(\""
11526 (assoc-ref outputs "out")
11527 "/etc/bash_completion.d\""))
11528 (("extras/\\.bash_completion")
11529 "extras/tadbit"))
11530 #t)))))
11531 (inputs
11532 ;; TODO: add Chimera for visualization
11533 `(("imp" ,imp)
11534 ("mcl" ,mcl)
11535 ("python2-scipy" ,python2-scipy)
11536 ("python2-numpy" ,python2-numpy)
11537 ("python2-matplotlib" ,python2-matplotlib)
11538 ("python2-pysam" ,python2-pysam)))
11539 (home-page "https://3dgenomes.github.io/TADbit/")
11540 (synopsis "Analyze, model, and explore 3C-based data")
11541 (description
11542 "TADbit is a complete Python library to deal with all steps to analyze,
11543 model, and explore 3C-based data. With TADbit the user can map FASTQ files to
11544 obtain raw interaction binned matrices (Hi-C like matrices), normalize and
11545 correct interaction matrices, identify and compare the so-called
11546 @dfn{Topologically Associating Domains} (TADs), build 3D models from the
11547 interaction matrices, and finally, extract structural properties from the
11548 models. TADbit is complemented by TADkit for visualizing 3D models.")
11549 (license license:gpl3+)))
11550
11551 (define-public kentutils
11552 (package
11553 (name "kentutils")
11554 ;; 302.1.0 is out, but the only difference is the inclusion of
11555 ;; pre-built binaries.
11556 (version "302.0.0")
11557 (source
11558 (origin
11559 (method git-fetch)
11560 (uri (git-reference
11561 (url "https://github.com/ENCODE-DCC/kentUtils.git")
11562 (commit (string-append "v" version))))
11563 (file-name (git-file-name name version))
11564 (sha256
11565 (base32
11566 "0n1wbyjpzii2b9qhyp9r1q76j623cggpg3y8fmw78ld3z4y7ivha"))
11567 (modules '((guix build utils)
11568 (srfi srfi-26)
11569 (ice-9 ftw)))
11570 (snippet
11571 '(begin
11572 ;; Only the contents of the specified directories are free
11573 ;; for all uses, so we remove the rest. "hg/autoSql" and
11574 ;; "hg/autoXml" are nominally free, but they depend on a
11575 ;; library that is built from the sources in "hg/lib",
11576 ;; which is nonfree.
11577 (let ((free (list "." ".."
11578 "utils" "lib" "inc" "tagStorm"
11579 "parasol" "htslib"))
11580 (directory? (lambda (file)
11581 (eq? 'directory (stat:type (stat file))))))
11582 (for-each (lambda (file)
11583 (and (directory? file)
11584 (delete-file-recursively file)))
11585 (map (cut string-append "src/" <>)
11586 (scandir "src"
11587 (lambda (file)
11588 (not (member file free)))))))
11589 ;; Only make the utils target, not the userApps target,
11590 ;; because that requires libraries we won't build.
11591 (substitute* "Makefile"
11592 ((" userApps") " utils"))
11593 ;; Only build libraries that are free.
11594 (substitute* "src/makefile"
11595 (("DIRS =.*") "DIRS =\n")
11596 (("cd jkOwnLib.*") "")
11597 ((" hgLib") "")
11598 (("cd hg.*") ""))
11599 (substitute* "src/utils/makefile"
11600 ;; These tools depend on "jkhgap.a", which is part of the
11601 ;; nonfree "src/hg/lib" directory.
11602 (("raSqlQuery") "")
11603 (("pslLiftSubrangeBlat") "")
11604
11605 ;; Do not build UCSC tools, which may require nonfree
11606 ;; components.
11607 (("ALL_APPS =.*") "ALL_APPS = $(UTILS_APPLIST)\n"))
11608 #t))))
11609 (build-system gnu-build-system)
11610 (arguments
11611 `( ;; There is no global test target and the test target for
11612 ;; individual tools depends on input files that are not
11613 ;; included.
11614 #:tests? #f
11615 #:phases
11616 (modify-phases %standard-phases
11617 (add-after 'unpack 'fix-permissions
11618 (lambda _ (make-file-writable "src/inc/localEnvironment.mk") #t))
11619 (add-after 'unpack 'fix-paths
11620 (lambda _
11621 (substitute* "Makefile"
11622 (("/bin/echo") (which "echo")))
11623 #t))
11624 (add-after 'unpack 'prepare-samtabix
11625 (lambda* (#:key inputs #:allow-other-keys)
11626 (copy-recursively (assoc-ref inputs "samtabix")
11627 "samtabix")
11628 #t))
11629 (delete 'configure)
11630 (replace 'install
11631 (lambda* (#:key outputs #:allow-other-keys)
11632 (let ((bin (string-append (assoc-ref outputs "out")
11633 "/bin")))
11634 (copy-recursively "bin" bin))
11635 #t)))))
11636 (native-inputs
11637 `(("samtabix"
11638 ,(origin
11639 (method git-fetch)
11640 (uri (git-reference
11641 (url "http://genome-source.cse.ucsc.edu/samtabix.git")
11642 (commit "10fd107909c1ac4d679299908be4262a012965ba")))
11643 (sha256
11644 (base32
11645 "0c1nj64l42v395sa84n7az43xiap4i6f9n9dfz4058aqiwkhkmma"))))))
11646 (inputs
11647 `(("zlib" ,zlib)
11648 ("tcsh" ,tcsh)
11649 ("perl" ,perl)
11650 ("libpng" ,libpng)
11651 ("mariadb" ,mariadb "lib")
11652 ("mariadb-dev" ,mariadb "dev")
11653 ("openssl" ,openssl-1.0)))
11654 (home-page "https://genome.cse.ucsc.edu/index.html")
11655 (synopsis "Assorted bioinformatics utilities")
11656 (description "This package provides the kentUtils, a selection of
11657 bioinformatics utilities used in combination with the UCSC genome
11658 browser.")
11659 ;; Only a subset of the sources are released under a non-copyleft
11660 ;; free software license. All other sources are removed in a
11661 ;; snippet. See this bug report for an explanation of how the
11662 ;; license statements apply:
11663 ;; https://github.com/ENCODE-DCC/kentUtils/issues/12
11664 (license (license:non-copyleft
11665 "http://genome.ucsc.edu/license/"
11666 "The contents of this package are free for all uses."))))
11667
11668 (define-public f-seq
11669 (let ((commit "6ccded34cff38cf432deed8503648b4a66953f9b")
11670 (revision "1"))
11671 (package
11672 (name "f-seq")
11673 (version (string-append "1.1-" revision "." (string-take commit 7)))
11674 (source (origin
11675 (method git-fetch)
11676 (uri (git-reference
11677 (url "https://github.com/aboyle/F-seq.git")
11678 (commit commit)))
11679 (file-name (string-append name "-" version))
11680 (sha256
11681 (base32
11682 "1nk33k0yajg2id4g59bc4szr58r2q6pdq42vgcw054m8ip9wv26h"))
11683 (modules '((guix build utils)))
11684 ;; Remove bundled Java library archives.
11685 (snippet
11686 '(begin
11687 (for-each delete-file (find-files "lib" ".*"))
11688 #t))))
11689 (build-system ant-build-system)
11690 (arguments
11691 `(#:tests? #f ; no tests included
11692 #:phases
11693 (modify-phases %standard-phases
11694 (replace 'install
11695 (lambda* (#:key inputs outputs #:allow-other-keys)
11696 (let* ((target (assoc-ref outputs "out"))
11697 (bin (string-append target "/bin"))
11698 (doc (string-append target "/share/doc/f-seq"))
11699 (lib (string-append target "/lib")))
11700 (mkdir-p target)
11701 (mkdir-p doc)
11702 (substitute* "bin/linux/fseq"
11703 (("java") (which "java"))
11704 (("\\$REALDIR/../lib/commons-cli-1.1.jar")
11705 (string-append (assoc-ref inputs "java-commons-cli")
11706 "/share/java/commons-cli.jar"))
11707 (("REALDIR=.*")
11708 (string-append "REALDIR=" bin "\n")))
11709 (install-file "README.txt" doc)
11710 (install-file "bin/linux/fseq" bin)
11711 (install-file "build~/fseq.jar" lib)
11712 (copy-recursively "lib" lib)
11713 #t))))))
11714 (inputs
11715 `(("perl" ,perl)
11716 ("java-commons-cli" ,java-commons-cli)))
11717 (home-page "http://fureylab.web.unc.edu/software/fseq/")
11718 (synopsis "Feature density estimator for high-throughput sequence tags")
11719 (description
11720 "F-Seq is a software package that generates a continuous tag sequence
11721 density estimation allowing identification of biologically meaningful sites
11722 such as transcription factor binding sites (ChIP-seq) or regions of open
11723 chromatin (DNase-seq). Output can be displayed directly in the UCSC Genome
11724 Browser.")
11725 (license license:gpl3+))))
11726
11727 (define-public bismark
11728 (package
11729 (name "bismark")
11730 (version "0.20.1")
11731 (source
11732 (origin
11733 (method git-fetch)
11734 (uri (git-reference
11735 (url "https://github.com/FelixKrueger/Bismark.git")
11736 (commit version)))
11737 (file-name (string-append name "-" version "-checkout"))
11738 (sha256
11739 (base32
11740 "0xchm3rgilj6vfjnyzfzzymfd7djr64sbrmrvs3njbwi66jqbzw9"))))
11741 (build-system perl-build-system)
11742 (arguments
11743 `(#:tests? #f ; there are no tests
11744 #:modules ((guix build utils)
11745 (ice-9 popen)
11746 (srfi srfi-26)
11747 (guix build perl-build-system))
11748 #:phases
11749 (modify-phases %standard-phases
11750 ;; The bundled plotly.js is minified.
11751 (add-after 'unpack 'replace-plotly.js
11752 (lambda* (#:key inputs #:allow-other-keys)
11753 (let* ((file (assoc-ref inputs "plotly.js"))
11754 (installed "plotly/plotly.js"))
11755 (let ((minified (open-pipe* OPEN_READ "uglify-js" file)))
11756 (call-with-output-file installed
11757 (cut dump-port minified <>))))
11758 #t))
11759 (delete 'configure)
11760 (delete 'build)
11761 (replace 'install
11762 (lambda* (#:key inputs outputs #:allow-other-keys)
11763 (let* ((out (assoc-ref outputs "out"))
11764 (bin (string-append out "/bin"))
11765 (share (string-append out "/share/bismark"))
11766 (docdir (string-append out "/share/doc/bismark"))
11767 (docs '("Docs/Bismark_User_Guide.html"))
11768 (scripts '("bismark"
11769 "bismark_genome_preparation"
11770 "bismark_methylation_extractor"
11771 "bismark2bedGraph"
11772 "bismark2report"
11773 "coverage2cytosine"
11774 "deduplicate_bismark"
11775 "filter_non_conversion"
11776 "bam2nuc"
11777 "bismark2summary"
11778 "NOMe_filtering")))
11779 (substitute* "bismark2report"
11780 (("\\$RealBin/plotly")
11781 (string-append share "/plotly")))
11782 (mkdir-p share)
11783 (mkdir-p docdir)
11784 (mkdir-p bin)
11785 (for-each (lambda (file) (install-file file bin))
11786 scripts)
11787 (for-each (lambda (file) (install-file file docdir))
11788 docs)
11789 (copy-recursively "Docs/Images" (string-append docdir "/Images"))
11790 (copy-recursively "plotly"
11791 (string-append share "/plotly"))
11792
11793 ;; Fix references to gunzip
11794 (substitute* (map (lambda (file)
11795 (string-append bin "/" file))
11796 scripts)
11797 (("\"gunzip -c")
11798 (string-append "\"" (assoc-ref inputs "gzip")
11799 "/bin/gunzip -c")))
11800 #t))))))
11801 (inputs
11802 `(("gzip" ,gzip)
11803 ("perl-carp" ,perl-carp)
11804 ("perl-getopt-long" ,perl-getopt-long)))
11805 (native-inputs
11806 `(("plotly.js"
11807 ,(origin
11808 (method url-fetch)
11809 (uri (string-append "https://raw.githubusercontent.com/plotly/plotly.js/"
11810 "v1.39.4/dist/plotly.js"))
11811 (sha256
11812 (base32 "138mwsr4nf5qif4mrxx286mpnagxd1xwl6k8aidrjgknaqg88zyr"))))
11813 ("uglify-js" ,uglify-js)))
11814 (home-page "https://www.bioinformatics.babraham.ac.uk/projects/bismark/")
11815 (synopsis "Map bisulfite treated sequence reads and analyze methylation")
11816 (description "Bismark is a program to map bisulfite treated sequencing
11817 reads to a genome of interest and perform methylation calls in a single step.
11818 The output can be easily imported into a genome viewer, such as SeqMonk, and
11819 enables a researcher to analyse the methylation levels of their samples
11820 straight away. Its main features are:
11821
11822 @itemize
11823 @item Bisulfite mapping and methylation calling in one single step
11824 @item Supports single-end and paired-end read alignments
11825 @item Supports ungapped and gapped alignments
11826 @item Alignment seed length, number of mismatches etc are adjustable
11827 @item Output discriminates between cytosine methylation in CpG, CHG
11828 and CHH context
11829 @end itemize\n")
11830 (license license:gpl3+)))
11831
11832 (define-public paml
11833 (package
11834 (name "paml")
11835 (version "4.9e")
11836 (source (origin
11837 (method url-fetch)
11838 (uri (string-append "http://abacus.gene.ucl.ac.uk/software/"
11839 "paml" version ".tgz"))
11840 (sha256
11841 (base32
11842 "13zf6h9fiqghwhch2h06x1zdr6s42plsnqahflp5g7myr3han3s6"))
11843 (modules '((guix build utils)))
11844 ;; Remove Windows binaries
11845 (snippet
11846 '(begin
11847 (for-each delete-file (find-files "." "\\.exe$"))
11848 #t))))
11849 (build-system gnu-build-system)
11850 (arguments
11851 `(#:tests? #f ; there are no tests
11852 #:make-flags '("CC=gcc")
11853 #:phases
11854 (modify-phases %standard-phases
11855 (replace 'configure
11856 (lambda _
11857 (substitute* "src/BFdriver.c"
11858 (("/bin/bash") (which "bash")))
11859 (chdir "src")
11860 #t))
11861 (replace 'install
11862 (lambda* (#:key outputs #:allow-other-keys)
11863 (let ((tools '("baseml" "basemlg" "codeml"
11864 "pamp" "evolver" "yn00" "chi2"))
11865 (bin (string-append (assoc-ref outputs "out") "/bin"))
11866 (docdir (string-append (assoc-ref outputs "out")
11867 "/share/doc/paml")))
11868 (mkdir-p bin)
11869 (for-each (lambda (file) (install-file file bin)) tools)
11870 (copy-recursively "../doc" docdir)
11871 #t))))))
11872 (home-page "http://abacus.gene.ucl.ac.uk/software/paml.html")
11873 (synopsis "Phylogentic analysis by maximum likelihood")
11874 (description "PAML (for Phylogentic Analysis by Maximum Likelihood)
11875 contains a few programs for model fitting and phylogenetic tree reconstruction
11876 using nucleotide or amino-acid sequence data.")
11877 ;; GPLv3 only
11878 (license license:gpl3)))
11879
11880 (define-public kallisto
11881 (package
11882 (name "kallisto")
11883 (version "0.44.0")
11884 (source (origin
11885 (method git-fetch)
11886 (uri (git-reference
11887 (url "https://github.com/pachterlab/kallisto.git")
11888 (commit (string-append "v" version))))
11889 (file-name (git-file-name name version))
11890 (sha256
11891 (base32
11892 "0nj382jiywqnpgvyhichajpkkh5r0bapn43f4dx40zdaq5v4m40m"))))
11893 (build-system cmake-build-system)
11894 (arguments
11895 `(#:tests? #f ; no "check" target
11896 #:phases
11897 (modify-phases %standard-phases
11898 (add-after 'unpack 'do-not-use-bundled-htslib
11899 (lambda _
11900 (substitute* "CMakeLists.txt"
11901 (("^ExternalProject_Add" m)
11902 (string-append "if (NEVER)\n" m))
11903 (("^\\)")
11904 (string-append ")\nendif(NEVER)"))
11905 (("include_directories\\(\\$\\{htslib_PREFIX.*" m)
11906 (string-append "# " m)))
11907 (substitute* "src/CMakeLists.txt"
11908 (("target_link_libraries\\(kallisto kallisto_core pthread \
11909 \\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/../ext/htslib/libhts.a\\)")
11910 "target_link_libraries(kallisto kallisto_core pthread hts)")
11911 (("include_directories\\(\\.\\./ext/htslib\\)") ""))
11912 #t)))))
11913 (inputs
11914 `(("hdf5" ,hdf5)
11915 ("htslib" ,htslib)
11916 ("zlib" ,zlib)))
11917 (home-page "https://pachterlab.github.io/kallisto/")
11918 (synopsis "Near-optimal RNA-Seq quantification")
11919 (description
11920 "Kallisto is a program for quantifying abundances of transcripts from
11921 RNA-Seq data, or more generally of target sequences using high-throughput
11922 sequencing reads. It is based on the novel idea of pseudoalignment for
11923 rapidly determining the compatibility of reads with targets, without the need
11924 for alignment. Pseudoalignment of reads preserves the key information needed
11925 for quantification, and kallisto is therefore not only fast, but also as
11926 accurate as existing quantification tools.")
11927 (license license:bsd-2)))
11928
11929 (define-public libgff
11930 (package
11931 (name "libgff")
11932 (version "1.0")
11933 (source (origin
11934 (method git-fetch)
11935 (uri (git-reference
11936 (url "https://github.com/Kingsford-Group/libgff.git")
11937 (commit (string-append "v" version))))
11938 (file-name (git-file-name name version))
11939 (sha256
11940 (base32
11941 "0n6vfjnq7a2mianipscbshrvbncss8z4zkgkbjw754p9043nfkps"))))
11942 (build-system cmake-build-system)
11943 (arguments `(#:tests? #f)) ; no tests included
11944 (home-page "https://github.com/Kingsford-Group/libgff")
11945 (synopsis "Parser library for reading/writing GFF files")
11946 (description "This is a simple \"libraryfication\" of the GFF/GTF parsing
11947 code that is used in the Cufflinks codebase. The goal of this library is to
11948 provide this functionality without the necessity of drawing in a heavy-weight
11949 dependency like SeqAn.")
11950 (license (license:x11-style "https://www.boost.org/LICENSE_1_0.txt"))))
11951
11952 (define-public sailfish
11953 (package
11954 (name "sailfish")
11955 (version "0.10.1")
11956 (source (origin
11957 (method git-fetch)
11958 (uri (git-reference
11959 (url "https://github.com/kingsfordgroup/sailfish.git")
11960 (commit (string-append "v" version))))
11961 (file-name (git-file-name name version))
11962 (sha256
11963 (base32
11964 "1amcc5hqvsl42hg4x19bi9vy47cl874s0lw1fmi0hwsdk9i8c03v"))
11965 (modules '((guix build utils)))
11966 (snippet
11967 '(begin
11968 ;; Delete bundled headers for eigen3.
11969 (delete-file-recursively "include/eigen3/")
11970 #t))))
11971 (build-system cmake-build-system)
11972 (arguments
11973 `(#:configure-flags
11974 (list (string-append "-DBOOST_INCLUDEDIR="
11975 (assoc-ref %build-inputs "boost")
11976 "/include/")
11977 (string-append "-DBOOST_LIBRARYDIR="
11978 (assoc-ref %build-inputs "boost")
11979 "/lib/")
11980 (string-append "-DBoost_LIBRARIES="
11981 "-lboost_iostreams "
11982 "-lboost_filesystem "
11983 "-lboost_system "
11984 "-lboost_thread "
11985 "-lboost_timer "
11986 "-lboost_chrono "
11987 "-lboost_program_options")
11988 "-DBoost_FOUND=TRUE"
11989 ;; Don't download RapMap---we already have it!
11990 "-DFETCHED_RAPMAP=1")
11991 ;; Tests must be run after installation and the location of the test
11992 ;; data file must be overridden. But the tests fail. It looks like
11993 ;; they are not really meant to be run.
11994 #:tests? #f
11995 #:phases
11996 (modify-phases %standard-phases
11997 ;; Boost cannot be found, even though it's right there.
11998 (add-after 'unpack 'do-not-look-for-boost
11999 (lambda* (#:key inputs #:allow-other-keys)
12000 (substitute* "CMakeLists.txt"
12001 (("find_package\\(Boost 1\\.53\\.0") "#"))
12002 #t))
12003 (add-after 'unpack 'do-not-assign-to-macro
12004 (lambda _
12005 (substitute* "include/spdlog/details/format.cc"
12006 (("const unsigned CHAR_WIDTH = 1;") ""))
12007 #t))
12008 (add-after 'unpack 'prepare-rapmap
12009 (lambda* (#:key inputs #:allow-other-keys)
12010 (let ((src "external/install/src/rapmap/")
12011 (include "external/install/include/rapmap/")
12012 (rapmap (assoc-ref inputs "rapmap")))
12013 (mkdir-p "/tmp/rapmap")
12014 (invoke "tar" "xf"
12015 (assoc-ref inputs "rapmap")
12016 "-C" "/tmp/rapmap"
12017 "--strip-components=1")
12018 (mkdir-p src)
12019 (mkdir-p include)
12020 (for-each (lambda (file)
12021 (install-file file src))
12022 (find-files "/tmp/rapmap/src" "\\.(c|cpp)"))
12023 (copy-recursively "/tmp/rapmap/include" include))
12024 #t))
12025 (add-after 'unpack 'use-system-libraries
12026 (lambda* (#:key inputs #:allow-other-keys)
12027 (substitute* '("src/SailfishIndexer.cpp"
12028 "src/SailfishUtils.cpp"
12029 "src/SailfishQuantify.cpp"
12030 "src/FASTAParser.cpp"
12031 "include/PCA.hpp"
12032 "include/SailfishUtils.hpp"
12033 "include/SailfishIndex.hpp"
12034 "include/CollapsedEMOptimizer.hpp"
12035 "src/CollapsedEMOptimizer.cpp")
12036 (("#include \"jellyfish/config.h\"") ""))
12037 (substitute* "src/CMakeLists.txt"
12038 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
12039 (string-append (assoc-ref inputs "jellyfish")
12040 "/include/jellyfish-" ,(package-version jellyfish)))
12041 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
12042 (string-append (assoc-ref inputs "jellyfish")
12043 "/lib/libjellyfish-2.0.a"))
12044 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
12045 (string-append (assoc-ref inputs "libdivsufsort")
12046 "/lib/libdivsufsort.so"))
12047 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
12048 (string-append (assoc-ref inputs "libdivsufsort")
12049 "/lib/libdivsufsort64.so")))
12050 (substitute* "CMakeLists.txt"
12051 ;; Don't prefer static libs
12052 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
12053 (("find_package\\(Jellyfish.*") "")
12054 (("ExternalProject_Add\\(libjellyfish") "message(")
12055 (("ExternalProject_Add\\(libgff") "message(")
12056 (("ExternalProject_Add\\(libsparsehash") "message(")
12057 (("ExternalProject_Add\\(libdivsufsort") "message("))
12058
12059 ;; Ensure that Eigen headers can be found
12060 (setenv "CPLUS_INCLUDE_PATH"
12061 (string-append (assoc-ref inputs "eigen")
12062 "/include/eigen3:"
12063 (or (getenv "CPLUS_INCLUDE_PATH") "")))
12064 #t)))))
12065 (inputs
12066 `(("boost" ,boost)
12067 ("eigen" ,eigen)
12068 ("jemalloc" ,jemalloc)
12069 ("jellyfish" ,jellyfish)
12070 ("sparsehash" ,sparsehash)
12071 ("rapmap" ,(origin
12072 (method git-fetch)
12073 (uri (git-reference
12074 (url "https://github.com/COMBINE-lab/RapMap.git")
12075 (commit (string-append "sf-v" version))))
12076 (file-name (string-append "rapmap-sf-v" version "-checkout"))
12077 (sha256
12078 (base32
12079 "1hv79l5i576ykv5a1srj2p0q36yvyl5966m0fcy2lbi169ipjakf"))
12080 (modules '((guix build utils)))
12081 ;; These files are expected to be excluded.
12082 (snippet
12083 '(begin (delete-file-recursively "include/spdlog")
12084 (for-each delete-file '("include/xxhash.h"
12085 "src/xxhash.c"))
12086 #t))))
12087 ("libdivsufsort" ,libdivsufsort)
12088 ("libgff" ,libgff)
12089 ("tbb" ,tbb)
12090 ("zlib" ,zlib)))
12091 (native-inputs
12092 `(("pkg-config" ,pkg-config)))
12093 (home-page "https://www.cs.cmu.edu/~ckingsf/software/sailfish/")
12094 (synopsis "Mapping-based isoform quantification from RNA-Seq reads")
12095 (description "Sailfish is a tool for genomic transcript quantification
12096 from RNA-seq data. It requires a set of target transcripts (either from a
12097 reference or de-novo assembly) to quantify. All you need to run sailfish is a
12098 fasta file containing your reference transcripts and a (set of) fasta/fastq
12099 file(s) containing your reads.")
12100 (license license:gpl3+)))
12101
12102 (define libstadenio-for-salmon
12103 (package
12104 (name "libstadenio")
12105 (version "1.14.8")
12106 (source (origin
12107 (method git-fetch)
12108 (uri (git-reference
12109 (url "https://github.com/COMBINE-lab/staden-io_lib.git")
12110 (commit (string-append "v" version))))
12111 (file-name (string-append name "-" version "-checkout"))
12112 (sha256
12113 (base32
12114 "1x8kxxqxl892vwfbprlbyfwkkv7c34ggkc94892x9x0g37x5nbwx"))))
12115 (build-system gnu-build-system)
12116 (arguments '(#:parallel-tests? #f)) ; not supported
12117 (inputs
12118 `(("zlib" ,zlib)))
12119 (native-inputs
12120 `(("perl" ,perl))) ; for tests
12121 (home-page "https://github.com/COMBINE-lab/staden-io_lib")
12122 (synopsis "General purpose trace and experiment file library")
12123 (description "This package provides a library of file reading and writing
12124 code to provide a general purpose Trace file (and Experiment File) reading
12125 interface.
12126
12127 The following file formats are supported:
12128
12129 @enumerate
12130 @item SCF trace files
12131 @item ABI trace files
12132 @item ALF trace files
12133 @item ZTR trace files
12134 @item SFF trace archives
12135 @item SRF trace archives
12136 @item Experiment files
12137 @item Plain text files
12138 @item SAM/BAM sequence files
12139 @item CRAM sequence files
12140 @end enumerate\n")
12141 (license license:bsd-3)))
12142
12143 (define-public salmon
12144 (package
12145 (name "salmon")
12146 (version "0.13.1")
12147 (source (origin
12148 (method git-fetch)
12149 (uri (git-reference
12150 (url "https://github.com/COMBINE-lab/salmon.git")
12151 (commit (string-append "v" version))))
12152 (file-name (git-file-name name version))
12153 (sha256
12154 (base32
12155 "1i2z4aivicmiixdz9bxalp7vmfzi3k92fxa63iqa8kgvfw5a4aq5"))
12156 (modules '((guix build utils)))
12157 (snippet
12158 '(begin
12159 ;; Delete bundled headers for eigen3.
12160 (delete-file-recursively "include/eigen3/")
12161 #t))))
12162 (build-system cmake-build-system)
12163 (arguments
12164 `(#:configure-flags
12165 (list (string-append "-DBOOST_INCLUDEDIR="
12166 (assoc-ref %build-inputs "boost")
12167 "/include/")
12168 (string-append "-DBOOST_LIBRARYDIR="
12169 (assoc-ref %build-inputs "boost")
12170 "/lib/")
12171 (string-append "-DBoost_LIBRARIES="
12172 "-lboost_iostreams "
12173 "-lboost_filesystem "
12174 "-lboost_system "
12175 "-lboost_thread "
12176 "-lboost_timer "
12177 "-lboost_chrono "
12178 "-lboost_program_options")
12179 "-DBoost_FOUND=TRUE"
12180 "-DTBB_LIBRARIES=tbb tbbmalloc"
12181 ;; Don't download RapMap---we already have it!
12182 "-DFETCHED_RAPMAP=1")
12183 #:phases
12184 (modify-phases %standard-phases
12185 ;; Boost cannot be found, even though it's right there.
12186 (add-after 'unpack 'do-not-look-for-boost
12187 (lambda* (#:key inputs #:allow-other-keys)
12188 (substitute* "CMakeLists.txt"
12189 (("find_package\\(Boost 1\\.59\\.0") "#"))
12190 #t))
12191 (add-after 'unpack 'do-not-phone-home
12192 (lambda _
12193 (substitute* "src/Salmon.cpp"
12194 (("getVersionMessage\\(\\)") "\"\""))
12195 #t))
12196 (add-after 'unpack 'prepare-rapmap
12197 (lambda* (#:key inputs #:allow-other-keys)
12198 (let ((src "external/install/src/rapmap/")
12199 (include "external/install/include/rapmap/")
12200 (rapmap (assoc-ref inputs "rapmap")))
12201 (mkdir-p src)
12202 (mkdir-p include)
12203 (copy-recursively (string-append rapmap "/src") src)
12204 (copy-recursively (string-append rapmap "/include") include)
12205 (for-each delete-file '("external/install/include/rapmap/xxhash.h"
12206 "external/install/include/rapmap/FastxParser.hpp"
12207 "external/install/include/rapmap/concurrentqueue.h"
12208 "external/install/include/rapmap/FastxParserThreadUtils.hpp"
12209 "external/install/src/rapmap/FastxParser.cpp"
12210 "external/install/src/rapmap/xxhash.c"))
12211 (delete-file-recursively "external/install/include/rapmap/spdlog"))
12212 #t))
12213 (add-after 'unpack 'use-system-libraries
12214 (lambda* (#:key inputs #:allow-other-keys)
12215 (substitute* "CMakeLists.txt"
12216 ;; Don't prefer static libs
12217 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
12218 (("set\\(TBB_LIBRARIES") "message(")
12219 ;; Don't download anything
12220 (("DOWNLOAD_COMMAND") "DOWNLOAD_COMMAND echo")
12221 (("externalproject_add\\(libcereal") "message(")
12222 (("externalproject_add\\(libgff") "message(")
12223 (("externalproject_add\\(libtbb") "message(")
12224 (("externalproject_add\\(libdivsufsort") "message(")
12225 (("externalproject_add\\(libstadenio") "message(")
12226 (("externalproject_add_step\\(") "message("))
12227 (substitute* "src/CMakeLists.txt"
12228 (("add_dependencies") "#")
12229 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libstaden-read.a")
12230 (string-append (assoc-ref inputs "libstadenio-for-salmon")
12231 "/lib/libstaden-read.so"))
12232 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
12233 (string-append (assoc-ref inputs "libdivsufsort")
12234 "/lib/libdivsufsort.so"))
12235 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
12236 (string-append (assoc-ref inputs "libdivsufsort")
12237 "/lib/libdivsufsort64.so"))
12238 (("lib/libdivsufsort.a") "/lib/libdivsufsort.so"))
12239
12240 ;; Ensure that all headers can be found
12241 (setenv "CPLUS_INCLUDE_PATH"
12242 (string-append (or (getenv "CPLUS_INCLUDE_PATH") "")
12243 ":"
12244 (assoc-ref inputs "eigen")
12245 "/include/eigen3"))
12246 #t))
12247 ;; CMAKE_INSTALL_PREFIX does not exist when the tests are
12248 ;; run. It only exists after the install phase.
12249 (add-after 'unpack 'fix-tests
12250 (lambda _
12251 (substitute* "src/CMakeLists.txt"
12252 (("DTOPLEVEL_DIR=\\$\\{CMAKE_INSTALL_PREFIX")
12253 "DTOPLEVEL_DIR=${GAT_SOURCE_DIR"))
12254 #t)))))
12255 (inputs
12256 `(("boost" ,boost)
12257 ("bzip2" ,bzip2)
12258 ("cereal" ,cereal)
12259 ("eigen" ,eigen)
12260 ("rapmap" ,(origin
12261 (method git-fetch)
12262 (uri (git-reference
12263 (url "https://github.com/COMBINE-lab/RapMap.git")
12264 (commit (string-append "salmon-v" version))))
12265 (file-name (string-append "rapmap-salmon-v" version "-checkout"))
12266 (sha256
12267 (base32
12268 "1biplxf0csc7a8h1wf219b0vmjkvw6wk2zylhdklb577kgmihdms"))))
12269 ("jemalloc" ,jemalloc)
12270 ("libgff" ,libgff)
12271 ("tbb" ,tbb)
12272 ("libdivsufsort" ,libdivsufsort)
12273 ("libstadenio-for-salmon" ,libstadenio-for-salmon)
12274 ("xz" ,xz)
12275 ("zlib" ,zlib)))
12276 (native-inputs
12277 `(("pkg-config" ,pkg-config)))
12278 (home-page "https://github.com/COMBINE-lab/salmon")
12279 (synopsis "Quantification from RNA-seq reads using lightweight alignments")
12280 (description "Salmon is a program to produce highly-accurate,
12281 transcript-level quantification estimates from RNA-seq data. Salmon achieves
12282 its accuracy and speed via a number of different innovations, including the
12283 use of lightweight alignments (accurate but fast-to-compute proxies for
12284 traditional read alignments) and massively-parallel stochastic collapsed
12285 variational inference.")
12286 (license license:gpl3+)))
12287
12288 (define-public python-loompy
12289 (package
12290 (name "python-loompy")
12291 (version "2.0.17")
12292 ;; The tarball on Pypi does not include the tests.
12293 (source (origin
12294 (method git-fetch)
12295 (uri (git-reference
12296 (url "https://github.com/linnarsson-lab/loompy.git")
12297 (commit version)))
12298 (file-name (git-file-name name version))
12299 (sha256
12300 (base32
12301 "12a5kjgiikapv93wahfw0frszx1lblnppyz3vs5gy8fgmgngra07"))))
12302 (build-system python-build-system)
12303 (arguments
12304 `(#:phases
12305 (modify-phases %standard-phases
12306 (replace 'check
12307 (lambda _
12308 (setenv "PYTHONPATH"
12309 (string-append (getcwd) ":"
12310 (getenv "PYTHONPATH")))
12311 (invoke "pytest" "tests")
12312 #t)))))
12313 (propagated-inputs
12314 `(("python-h5py" ,python-h5py)
12315 ("python-numpy" ,python-numpy)
12316 ("python-pandas" ,python-pandas)
12317 ("python-scipy" ,python-scipy)))
12318 (native-inputs
12319 `(("python-pytest" ,python-pytest)))
12320 (home-page "https://github.com/linnarsson-lab/loompy")
12321 (synopsis "Work with .loom files for single-cell RNA-seq data")
12322 (description "The loom file format is an efficient format for very large
12323 omics datasets, consisting of a main matrix, optional additional layers, a
12324 variable number of row and column annotations. Loom also supports sparse
12325 graphs. This library makes it easy to work with @file{.loom} files for
12326 single-cell RNA-seq data.")
12327 (license license:bsd-3)))
12328
12329 ;; We cannot use the latest commit because it requires Java 9.
12330 (define-public java-forester
12331 (let ((commit "86b07efe302d5094b42deed9260f719a4c4ac2e6")
12332 (revision "1"))
12333 (package
12334 (name "java-forester")
12335 (version (string-append "0-" revision "." (string-take commit 7)))
12336 (source (origin
12337 (method git-fetch)
12338 (uri (git-reference
12339 (url "https://github.com/cmzmasek/forester.git")
12340 (commit commit)))
12341 (file-name (string-append name "-" version "-checkout"))
12342 (sha256
12343 (base32
12344 "0vxavc1yrf84yrnf20dq26hi0lglidk8d382xrxsy4qmlbjd276z"))
12345 (modules '((guix build utils)))
12346 (snippet
12347 '(begin
12348 ;; Delete bundled jars and pre-built classes
12349 (delete-file-recursively "forester/java/resources")
12350 (delete-file-recursively "forester/java/classes")
12351 (for-each delete-file (find-files "forester/java/" "\\.jar$"))
12352 ;; Delete bundled applications
12353 (delete-file-recursively "forester_applications")
12354 #t))))
12355 (build-system ant-build-system)
12356 (arguments
12357 `(#:tests? #f ; there are none
12358 #:jdk ,icedtea-8
12359 #:modules ((guix build ant-build-system)
12360 (guix build utils)
12361 (guix build java-utils)
12362 (sxml simple)
12363 (sxml transform))
12364 #:phases
12365 (modify-phases %standard-phases
12366 (add-after 'unpack 'chdir
12367 (lambda _ (chdir "forester/java") #t))
12368 (add-after 'chdir 'fix-dependencies
12369 (lambda _
12370 (chmod "build.xml" #o664)
12371 (call-with-output-file "build.xml.new"
12372 (lambda (port)
12373 (sxml->xml
12374 (pre-post-order
12375 (with-input-from-file "build.xml"
12376 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12377 `(;; Remove all unjar tags to avoid repacking classes.
12378 (unjar . ,(lambda _ '()))
12379 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12380 (*text* . ,(lambda (_ txt) txt))))
12381 port)))
12382 (rename-file "build.xml.new" "build.xml")
12383 #t))
12384 ;; FIXME: itext is difficult to package as it depends on a few
12385 ;; unpackaged libraries.
12386 (add-after 'chdir 'remove-dependency-on-unpackaged-itext
12387 (lambda _
12388 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12389 (substitute* "src/org/forester/archaeopteryx/MainFrame.java"
12390 (("pdf_written_to = PdfExporter.*")
12391 "throw new IOException(\"PDF export is not available.\");"))
12392 #t))
12393 ;; There is no install target
12394 (replace 'install (install-jars ".")))))
12395 (propagated-inputs
12396 `(("java-commons-codec" ,java-commons-codec)
12397 ("java-openchart2" ,java-openchart2)))
12398 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12399 (synopsis "Phylogenomics libraries for Java")
12400 (description "Forester is a collection of Java libraries for
12401 phylogenomics and evolutionary biology research. It includes support for
12402 reading, writing, and exporting phylogenetic trees.")
12403 (license license:lgpl2.1+))))
12404
12405 (define-public java-forester-1.005
12406 (package
12407 (name "java-forester")
12408 (version "1.005")
12409 (source (origin
12410 (method url-fetch)
12411 (uri (string-append "https://repo1.maven.org/maven2/"
12412 "org/biojava/thirdparty/forester/"
12413 version "/forester-" version "-sources.jar"))
12414 (file-name (string-append name "-" version ".jar"))
12415 (sha256
12416 (base32
12417 "04r8qv4rk3p71z4ajrvp11py1z46qrx0047j3zzs79s6lnsm3lcv"))))
12418 (build-system ant-build-system)
12419 (arguments
12420 `(#:tests? #f ; there are none
12421 #:jdk ,icedtea-8
12422 #:modules ((guix build ant-build-system)
12423 (guix build utils)
12424 (guix build java-utils)
12425 (sxml simple)
12426 (sxml transform))
12427 #:phases
12428 (modify-phases %standard-phases
12429 (add-after 'unpack 'fix-dependencies
12430 (lambda* (#:key inputs #:allow-other-keys)
12431 (call-with-output-file "build.xml"
12432 (lambda (port)
12433 (sxml->xml
12434 (pre-post-order
12435 (with-input-from-file "src/build.xml"
12436 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12437 `(;; Remove all unjar tags to avoid repacking classes.
12438 (unjar . ,(lambda _ '()))
12439 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12440 (*text* . ,(lambda (_ txt) txt))))
12441 port)))
12442 (copy-file (assoc-ref inputs "synth_look_and_feel_1.xml")
12443 "synth_look_and_feel_1.xml")
12444 (copy-file (assoc-ref inputs "phyloxml.xsd")
12445 "phyloxml.xsd")
12446 (substitute* "build.xml"
12447 (("../resources/synth_laf/synth_look_and_feel_1.xml")
12448 "synth_look_and_feel_1.xml")
12449 (("../resources/phyloxml_schema/1.10/phyloxml.xsd")
12450 "phyloxml.xsd"))
12451 #t))
12452 ;; FIXME: itext is difficult to package as it depends on a few
12453 ;; unpackaged libraries.
12454 (add-after 'unpack 'remove-dependency-on-unpackaged-itext
12455 (lambda _
12456 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12457 (substitute* '("src/org/forester/archaeopteryx/MainFrame.java"
12458 "src/org/forester/archaeopteryx/MainFrameApplication.java")
12459 (("pdf_written_to = PdfExporter.*")
12460 "throw new IOException(\"PDF export is not available.\"); /*")
12461 ((".getPrintSizeX\\(\\), getOptions\\(\\).getPrintSizeY\\(\\) \\);") "*/")
12462 (("getCurrentTreePanel\\(\\).getHeight\\(\\) \\);") "*/"))
12463 #t))
12464 (add-after 'unpack 'delete-pre-built-classes
12465 (lambda _ (delete-file-recursively "src/classes") #t))
12466 ;; There is no install target
12467 (replace 'install (install-jars ".")))))
12468 (propagated-inputs
12469 `(("java-commons-codec" ,java-commons-codec)
12470 ("java-openchart2" ,java-openchart2)))
12471 ;; The source archive does not contain the resources.
12472 (native-inputs
12473 `(("phyloxml.xsd"
12474 ,(origin
12475 (method url-fetch)
12476 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12477 "b61cc2dcede0bede317db362472333115756b8c6/"
12478 "forester/resources/phyloxml_schema/1.10/phyloxml.xsd"))
12479 (file-name (string-append name "-phyloxml-" version ".xsd"))
12480 (sha256
12481 (base32
12482 "1zxc4m8sn4n389nqdnpxa8d0k17qnr3pm2y5y6g6vh4k0zm52npv"))))
12483 ("synth_look_and_feel_1.xml"
12484 ,(origin
12485 (method url-fetch)
12486 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12487 "29e04321615da6b35c1e15c60e52caf3f21d8e6a/"
12488 "forester/java/classes/resources/"
12489 "synth_look_and_feel_1.xml"))
12490 (file-name (string-append name "-synth-look-and-feel-" version ".xml"))
12491 (sha256
12492 (base32
12493 "1gv5602gv4k7y7713y75a4jvj7i9s7nildsbdl7n9q10sc2ikg8h"))))))
12494 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12495 (synopsis "Phylogenomics libraries for Java")
12496 (description "Forester is a collection of Java libraries for
12497 phylogenomics and evolutionary biology research. It includes support for
12498 reading, writing, and exporting phylogenetic trees.")
12499 (license license:lgpl2.1+)))
12500
12501 (define-public java-biojava-core
12502 (package
12503 (name "java-biojava-core")
12504 (version "4.2.11")
12505 (source (origin
12506 (method git-fetch)
12507 (uri (git-reference
12508 (url "https://github.com/biojava/biojava")
12509 (commit (string-append "biojava-" version))))
12510 (file-name (string-append name "-" version "-checkout"))
12511 (sha256
12512 (base32
12513 "1bvryh2bpsvash8ln79cmc9sqm8qw72hz4xzwqxcrjm8ssxszhqk"))))
12514 (build-system ant-build-system)
12515 (arguments
12516 `(#:jdk ,icedtea-8
12517 #:jar-name "biojava-core.jar"
12518 #:source-dir "biojava-core/src/main/java/"
12519 #:test-dir "biojava-core/src/test"
12520 ;; These tests seem to require internet access.
12521 #:test-exclude (list "**/SearchIOTest.java"
12522 "**/BlastXMLParserTest.java"
12523 "**/GenbankCookbookTest.java"
12524 "**/GenbankProxySequenceReaderTest.java")
12525 #:phases
12526 (modify-phases %standard-phases
12527 (add-before 'build 'copy-resources
12528 (lambda _
12529 (copy-recursively "biojava-core/src/main/resources"
12530 "build/classes")
12531 #t))
12532 (add-before 'check 'copy-test-resources
12533 (lambda _
12534 (copy-recursively "biojava-core/src/test/resources"
12535 "build/test-classes")
12536 #t)))))
12537 (propagated-inputs
12538 `(("java-log4j-api" ,java-log4j-api)
12539 ("java-log4j-core" ,java-log4j-core)
12540 ("java-slf4j-api" ,java-slf4j-api)
12541 ("java-slf4j-simple" ,java-slf4j-simple)))
12542 (native-inputs
12543 `(("java-junit" ,java-junit)
12544 ("java-hamcrest-core" ,java-hamcrest-core)))
12545 (home-page "http://biojava.org")
12546 (synopsis "Core libraries of Java framework for processing biological data")
12547 (description "BioJava is a project dedicated to providing a Java framework
12548 for processing biological data. It provides analytical and statistical
12549 routines, parsers for common file formats, reference implementations of
12550 popular algorithms, and allows the manipulation of sequences and 3D
12551 structures. The goal of the biojava project is to facilitate rapid
12552 application development for bioinformatics.
12553
12554 This package provides the core libraries.")
12555 (license license:lgpl2.1+)))
12556
12557 (define-public java-biojava-phylo
12558 (package (inherit java-biojava-core)
12559 (name "java-biojava-phylo")
12560 (build-system ant-build-system)
12561 (arguments
12562 `(#:jdk ,icedtea-8
12563 #:jar-name "biojava-phylo.jar"
12564 #:source-dir "biojava-phylo/src/main/java/"
12565 #:test-dir "biojava-phylo/src/test"
12566 #:phases
12567 (modify-phases %standard-phases
12568 (add-before 'build 'copy-resources
12569 (lambda _
12570 (copy-recursively "biojava-phylo/src/main/resources"
12571 "build/classes")
12572 #t))
12573 (add-before 'check 'copy-test-resources
12574 (lambda _
12575 (copy-recursively "biojava-phylo/src/test/resources"
12576 "build/test-classes")
12577 #t)))))
12578 (propagated-inputs
12579 `(("java-log4j-api" ,java-log4j-api)
12580 ("java-log4j-core" ,java-log4j-core)
12581 ("java-slf4j-api" ,java-slf4j-api)
12582 ("java-slf4j-simple" ,java-slf4j-simple)
12583 ("java-biojava-core" ,java-biojava-core)
12584 ("java-forester" ,java-forester)))
12585 (native-inputs
12586 `(("java-junit" ,java-junit)
12587 ("java-hamcrest-core" ,java-hamcrest-core)))
12588 (home-page "http://biojava.org")
12589 (synopsis "Biojava interface to the forester phylogenomics library")
12590 (description "The phylo module provides a biojava interface layer to the
12591 forester phylogenomics library for constructing phylogenetic trees.")))
12592
12593 (define-public java-biojava-alignment
12594 (package (inherit java-biojava-core)
12595 (name "java-biojava-alignment")
12596 (build-system ant-build-system)
12597 (arguments
12598 `(#:jdk ,icedtea-8
12599 #:jar-name "biojava-alignment.jar"
12600 #:source-dir "biojava-alignment/src/main/java/"
12601 #:test-dir "biojava-alignment/src/test"
12602 #:phases
12603 (modify-phases %standard-phases
12604 (add-before 'build 'copy-resources
12605 (lambda _
12606 (copy-recursively "biojava-alignment/src/main/resources"
12607 "build/classes")
12608 #t))
12609 (add-before 'check 'copy-test-resources
12610 (lambda _
12611 (copy-recursively "biojava-alignment/src/test/resources"
12612 "build/test-classes")
12613 #t)))))
12614 (propagated-inputs
12615 `(("java-log4j-api" ,java-log4j-api)
12616 ("java-log4j-core" ,java-log4j-core)
12617 ("java-slf4j-api" ,java-slf4j-api)
12618 ("java-slf4j-simple" ,java-slf4j-simple)
12619 ("java-biojava-core" ,java-biojava-core)
12620 ("java-biojava-phylo" ,java-biojava-phylo)
12621 ("java-forester" ,java-forester)))
12622 (native-inputs
12623 `(("java-junit" ,java-junit)
12624 ("java-hamcrest-core" ,java-hamcrest-core)))
12625 (home-page "http://biojava.org")
12626 (synopsis "Biojava API for genetic sequence alignment")
12627 (description "The alignment module of BioJava provides an API that
12628 contains
12629
12630 @itemize
12631 @item implementations of dynamic programming algorithms for sequence
12632 alignment;
12633 @item reading and writing of popular alignment file formats;
12634 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12635 @end itemize\n")))
12636
12637 (define-public java-biojava-core-4.0
12638 (package (inherit java-biojava-core)
12639 (name "java-biojava-core")
12640 (version "4.0.0")
12641 (source (origin
12642 (method git-fetch)
12643 (uri (git-reference
12644 (url "https://github.com/biojava/biojava")
12645 (commit (string-append "biojava-" version))))
12646 (file-name (string-append name "-" version "-checkout"))
12647 (sha256
12648 (base32
12649 "13675f6y9aqi7bi2lk3s1z7a22ynccjiqwa8izh7p97xi9wsfmd8"))))))
12650
12651 (define-public java-biojava-phylo-4.0
12652 (package (inherit java-biojava-core-4.0)
12653 (name "java-biojava-phylo")
12654 (build-system ant-build-system)
12655 (arguments
12656 `(#:jdk ,icedtea-8
12657 #:jar-name "biojava-phylo.jar"
12658 #:source-dir "biojava-phylo/src/main/java/"
12659 #:test-dir "biojava-phylo/src/test"
12660 #:phases
12661 (modify-phases %standard-phases
12662 (add-before 'build 'copy-resources
12663 (lambda _
12664 (copy-recursively "biojava-phylo/src/main/resources"
12665 "build/classes")
12666 #t))
12667 (add-before 'check 'copy-test-resources
12668 (lambda _
12669 (copy-recursively "biojava-phylo/src/test/resources"
12670 "build/test-classes")
12671 #t)))))
12672 (propagated-inputs
12673 `(("java-log4j-api" ,java-log4j-api)
12674 ("java-log4j-core" ,java-log4j-core)
12675 ("java-slf4j-api" ,java-slf4j-api)
12676 ("java-slf4j-simple" ,java-slf4j-simple)
12677 ("java-biojava-core" ,java-biojava-core-4.0)
12678 ("java-forester" ,java-forester-1.005)))
12679 (native-inputs
12680 `(("java-junit" ,java-junit)
12681 ("java-hamcrest-core" ,java-hamcrest-core)))
12682 (home-page "http://biojava.org")
12683 (synopsis "Biojava interface to the forester phylogenomics library")
12684 (description "The phylo module provides a biojava interface layer to the
12685 forester phylogenomics library for constructing phylogenetic trees.")))
12686
12687 (define-public java-biojava-alignment-4.0
12688 (package (inherit java-biojava-core-4.0)
12689 (name "java-biojava-alignment")
12690 (build-system ant-build-system)
12691 (arguments
12692 `(#:jdk ,icedtea-8
12693 #:jar-name "biojava-alignment.jar"
12694 #:source-dir "biojava-alignment/src/main/java/"
12695 #:test-dir "biojava-alignment/src/test"
12696 #:phases
12697 (modify-phases %standard-phases
12698 (add-before 'build 'copy-resources
12699 (lambda _
12700 (copy-recursively "biojava-alignment/src/main/resources"
12701 "build/classes")
12702 #t))
12703 (add-before 'check 'copy-test-resources
12704 (lambda _
12705 (copy-recursively "biojava-alignment/src/test/resources"
12706 "build/test-classes")
12707 #t)))))
12708 (propagated-inputs
12709 `(("java-log4j-api" ,java-log4j-api)
12710 ("java-log4j-core" ,java-log4j-core)
12711 ("java-slf4j-api" ,java-slf4j-api)
12712 ("java-slf4j-simple" ,java-slf4j-simple)
12713 ("java-biojava-core" ,java-biojava-core-4.0)
12714 ("java-biojava-phylo" ,java-biojava-phylo-4.0)
12715 ("java-forester" ,java-forester-1.005)))
12716 (native-inputs
12717 `(("java-junit" ,java-junit)
12718 ("java-hamcrest-core" ,java-hamcrest-core)))
12719 (home-page "http://biojava.org")
12720 (synopsis "Biojava API for genetic sequence alignment")
12721 (description "The alignment module of BioJava provides an API that
12722 contains
12723
12724 @itemize
12725 @item implementations of dynamic programming algorithms for sequence
12726 alignment;
12727 @item reading and writing of popular alignment file formats;
12728 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12729 @end itemize\n")))
12730
12731 (define-public dropseq-tools
12732 (package
12733 (name "dropseq-tools")
12734 (version "1.13")
12735 (source
12736 (origin
12737 (method url-fetch)
12738 (uri "http://mccarrolllab.com/download/1276/")
12739 (file-name (string-append "dropseq-tools-" version ".zip"))
12740 (sha256
12741 (base32
12742 "0yrffckxqk5l8b5xb6z4laq157zd9mdypr2p4b4vq2bhjzi1sj0s"))
12743 ;; Delete bundled libraries
12744 (modules '((guix build utils)))
12745 (snippet
12746 '(begin
12747 (for-each delete-file (find-files "jar/lib" "\\.jar$"))
12748 (delete-file-recursively "3rdParty")
12749 #t))))
12750 (build-system ant-build-system)
12751 (arguments
12752 `(#:tests? #f ; test data are not included
12753 #:test-target "test"
12754 #:build-target "all"
12755 #:source-dir "public/src/"
12756 #:jdk ,icedtea-8
12757 #:make-flags
12758 (list (string-append "-Dpicard.executable.dir="
12759 (assoc-ref %build-inputs "java-picard")
12760 "/share/java/"))
12761 #:modules ((ice-9 match)
12762 (srfi srfi-1)
12763 (guix build utils)
12764 (guix build java-utils)
12765 (guix build ant-build-system))
12766 #:phases
12767 (modify-phases %standard-phases
12768 ;; FIXME: fails with "java.io.FileNotFoundException:
12769 ;; /gnu/store/…-dropseq-tools-1.13/share/java/lib/biojava-alignment.jar"
12770 (delete 'generate-jar-indices)
12771 ;; All dependencies must be linked to "lib", because that's where
12772 ;; they will be searched for when the Class-Path property of the
12773 ;; manifest is computed.
12774 (add-after 'unpack 'record-references
12775 (lambda* (#:key inputs #:allow-other-keys)
12776 (mkdir-p "jar/lib")
12777 (let ((dirs (filter-map (match-lambda
12778 ((name . dir)
12779 (if (and (string-prefix? "java-" name)
12780 (not (string=? name "java-testng")))
12781 dir #f)))
12782 inputs)))
12783 (for-each (lambda (jar)
12784 (symlink jar (string-append "jar/lib/" (basename jar))))
12785 (append-map (lambda (dir) (find-files dir "\\.jar$"))
12786 dirs)))
12787 #t))
12788 ;; There is no installation target
12789 (replace 'install
12790 (lambda* (#:key inputs outputs #:allow-other-keys)
12791 (let* ((out (assoc-ref outputs "out"))
12792 (bin (string-append out "/bin"))
12793 (share (string-append out "/share/java/"))
12794 (lib (string-append share "/lib/"))
12795 (scripts (list "BAMTagHistogram"
12796 "BAMTagofTagCounts"
12797 "BaseDistributionAtReadPosition"
12798 "CollapseBarcodesInPlace"
12799 "CollapseTagWithContext"
12800 "ConvertToRefFlat"
12801 "CreateIntervalsFiles"
12802 "DetectBeadSynthesisErrors"
12803 "DigitalExpression"
12804 "Drop-seq_alignment.sh"
12805 "FilterBAM"
12806 "FilterBAMByTag"
12807 "GatherGeneGCLength"
12808 "GatherMolecularBarcodeDistributionByGene"
12809 "GatherReadQualityMetrics"
12810 "PolyATrimmer"
12811 "ReduceGTF"
12812 "SelectCellsByNumTranscripts"
12813 "SingleCellRnaSeqMetricsCollector"
12814 "TagBamWithReadSequenceExtended"
12815 "TagReadWithGeneExon"
12816 "TagReadWithInterval"
12817 "TrimStartingSequence"
12818 "ValidateReference")))
12819 (for-each mkdir-p (list bin share lib))
12820 (install-file "dist/dropseq.jar" share)
12821 (for-each (lambda (script)
12822 (chmod script #o555)
12823 (install-file script bin))
12824 scripts)
12825 (substitute* (map (lambda (script)
12826 (string-append bin "/" script))
12827 scripts)
12828 (("^java") (which "java"))
12829 (("jar_deploy_dir=.*")
12830 (string-append "jar_deploy_dir=" share "\n"))))
12831 #t))
12832 ;; FIXME: We do this after stripping jars because we don't want it to
12833 ;; copy all these jars and strip them. We only want to install
12834 ;; links. Arguably, this is a problem with the ant-build-system.
12835 (add-after 'strip-jar-timestamps 'install-links
12836 (lambda* (#:key outputs #:allow-other-keys)
12837 (let* ((out (assoc-ref outputs "out"))
12838 (share (string-append out "/share/java/"))
12839 (lib (string-append share "/lib/")))
12840 (for-each (lambda (jar)
12841 (symlink (readlink jar)
12842 (string-append lib (basename jar))))
12843 (find-files "jar/lib" "\\.jar$")))
12844 #t)))))
12845 (inputs
12846 `(("jdk" ,icedtea-8)
12847 ("java-picard" ,java-picard-2.10.3)
12848 ("java-log4j-1.2-api" ,java-log4j-1.2-api)
12849 ("java-commons-math3" ,java-commons-math3)
12850 ("java-commons-jexl2" ,java-commons-jexl-2)
12851 ("java-commons-collections4" ,java-commons-collections4)
12852 ("java-commons-lang2" ,java-commons-lang)
12853 ("java-commons-io" ,java-commons-io)
12854 ("java-snappy-1.0.3-rc3" ,java-snappy-1)
12855 ("java-guava" ,java-guava)
12856 ("java-la4j" ,java-la4j)
12857 ("java-biojava-core" ,java-biojava-core-4.0)
12858 ("java-biojava-alignment" ,java-biojava-alignment-4.0)
12859 ("java-jdistlib" ,java-jdistlib)
12860 ("java-simple-xml" ,java-simple-xml)
12861 ("java-snakeyaml" ,java-snakeyaml)))
12862 (native-inputs
12863 `(("unzip" ,unzip)
12864 ("java-testng" ,java-testng)))
12865 (home-page "http://mccarrolllab.com/dropseq/")
12866 (synopsis "Tools for Drop-seq analyses")
12867 (description "Drop-seq is a technology to enable biologists to
12868 analyze RNA expression genome-wide in thousands of individual cells at
12869 once. This package provides tools to perform Drop-seq analyses.")
12870 (license license:expat)))
12871
12872 (define-public pigx-rnaseq
12873 (package
12874 (name "pigx-rnaseq")
12875 (version "0.0.10")
12876 (source (origin
12877 (method url-fetch)
12878 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_rnaseq/"
12879 "releases/download/v" version
12880 "/pigx_rnaseq-" version ".tar.gz"))
12881 (sha256
12882 (base32
12883 "0z3hr120wk2vrlmlpz1vp3n9wy3rq4y2mnzh2vf08qgqn2xfdwcw"))))
12884 (build-system gnu-build-system)
12885 (arguments
12886 `(#:parallel-tests? #f ; not supported
12887 #:phases
12888 (modify-phases %standard-phases
12889 ;; "test.sh" runs STAR, which requires excessive amounts of memory.
12890 (add-after 'unpack 'disable-resource-intensive-test
12891 (lambda _
12892 (substitute* "Makefile.in"
12893 (("(^ tests/test_trim_galore/test.sh).*" _ m) m)
12894 (("^ tests/test_multiqc/test.sh") "")
12895 (("^ test.sh") ""))
12896 #t)))))
12897 (inputs
12898 `(("coreutils" ,coreutils)
12899 ("sed" ,sed)
12900 ("gzip" ,gzip)
12901 ("snakemake" ,snakemake)
12902 ("fastqc" ,fastqc)
12903 ("multiqc" ,multiqc)
12904 ("star" ,star)
12905 ("trim-galore" ,trim-galore)
12906 ("htseq" ,htseq)
12907 ("samtools" ,samtools)
12908 ("r-minimal" ,r-minimal)
12909 ("r-rmarkdown" ,r-rmarkdown)
12910 ("r-ggplot2" ,r-ggplot2)
12911 ("r-ggrepel" ,r-ggrepel)
12912 ("r-gprofiler" ,r-gprofiler)
12913 ("r-deseq2" ,r-deseq2)
12914 ("r-dt" ,r-dt)
12915 ("r-knitr" ,r-knitr)
12916 ("r-pheatmap" ,r-pheatmap)
12917 ("r-corrplot" ,r-corrplot)
12918 ("r-reshape2" ,r-reshape2)
12919 ("r-plotly" ,r-plotly)
12920 ("r-scales" ,r-scales)
12921 ("r-summarizedexperiment" ,r-summarizedexperiment)
12922 ("r-crosstalk" ,r-crosstalk)
12923 ("r-tximport" ,r-tximport)
12924 ("r-rtracklayer" ,r-rtracklayer)
12925 ("r-rjson" ,r-rjson)
12926 ("salmon" ,salmon)
12927 ("ghc-pandoc" ,ghc-pandoc)
12928 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12929 ("python-wrapper" ,python-wrapper)
12930 ("python-pyyaml" ,python-pyyaml)))
12931 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12932 (synopsis "Analysis pipeline for RNA sequencing experiments")
12933 (description "PiGX RNAseq is an analysis pipeline for preprocessing and
12934 reporting for RNA sequencing experiments. It is easy to use and produces high
12935 quality reports. The inputs are reads files from the sequencing experiment,
12936 and a configuration file which describes the experiment. In addition to
12937 quality control of the experiment, the pipeline produces a differential
12938 expression report comparing samples in an easily configurable manner.")
12939 (license license:gpl3+)))
12940
12941 (define-public pigx-chipseq
12942 (package
12943 (name "pigx-chipseq")
12944 (version "0.0.42")
12945 (source (origin
12946 (method url-fetch)
12947 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_chipseq/"
12948 "releases/download/v" version
12949 "/pigx_chipseq-" version ".tar.gz"))
12950 (sha256
12951 (base32
12952 "0xbvgqpk32a8iczhvac56cacr46rdkqb0allhhpvmj940idf72bi"))))
12953 (build-system gnu-build-system)
12954 ;; parts of the tests rely on access to the network
12955 (arguments '(#:tests? #f))
12956 (inputs
12957 `(("grep" ,grep)
12958 ("coreutils" ,coreutils)
12959 ("r-minimal" ,r-minimal)
12960 ("r-argparser" ,r-argparser)
12961 ("r-biocparallel" ,r-biocparallel)
12962 ("r-biostrings" ,r-biostrings)
12963 ("r-chipseq" ,r-chipseq)
12964 ("r-data-table" ,r-data-table)
12965 ("r-dplyr" ,r-dplyr)
12966 ("r-genomation" ,r-genomation)
12967 ("r-genomicalignments" ,r-genomicalignments)
12968 ("r-genomicranges" ,r-genomicranges)
12969 ("r-rsamtools" ,r-rsamtools)
12970 ("r-rtracklayer" ,r-rtracklayer)
12971 ("r-s4vectors" ,r-s4vectors)
12972 ("r-stringr" ,r-stringr)
12973 ("r-tibble" ,r-tibble)
12974 ("r-tidyr" ,r-tidyr)
12975 ("r-jsonlite" ,r-jsonlite)
12976 ("r-heatmaply" ,r-heatmaply)
12977 ("r-htmlwidgets" ,r-htmlwidgets)
12978 ("r-ggplot2" ,r-ggplot2)
12979 ("r-plotly" ,r-plotly)
12980 ("r-rmarkdown" ,r-rmarkdown)
12981 ("python-wrapper" ,python-wrapper)
12982 ("python-pyyaml" ,python-pyyaml)
12983 ("python-magic" ,python-magic)
12984 ("python-xlrd" ,python-xlrd)
12985 ("trim-galore" ,trim-galore)
12986 ("macs" ,macs)
12987 ("multiqc" ,multiqc)
12988 ("perl" ,perl)
12989 ("ghc-pandoc" ,ghc-pandoc)
12990 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12991 ("fastqc" ,fastqc)
12992 ("bowtie" ,bowtie)
12993 ("idr" ,idr)
12994 ("snakemake" ,snakemake)
12995 ("samtools" ,samtools)
12996 ("bedtools" ,bedtools)
12997 ("kentutils" ,kentutils)))
12998 (native-inputs
12999 `(("python-pytest" ,python-pytest)))
13000 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
13001 (synopsis "Analysis pipeline for ChIP sequencing experiments")
13002 (description "PiGX ChIPseq is an analysis pipeline for preprocessing, peak
13003 calling and reporting for ChIP sequencing experiments. It is easy to use and
13004 produces high quality reports. The inputs are reads files from the sequencing
13005 experiment, and a configuration file which describes the experiment. In
13006 addition to quality control of the experiment, the pipeline enables to set up
13007 multiple peak calling analysis and allows the generation of a UCSC track hub
13008 in an easily configurable manner.")
13009 (license license:gpl3+)))
13010
13011 (define-public pigx-bsseq
13012 (package
13013 (name "pigx-bsseq")
13014 (version "0.0.10")
13015 (source (origin
13016 (method url-fetch)
13017 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_bsseq/"
13018 "releases/download/v" version
13019 "/pigx_bsseq-" version ".tar.gz"))
13020 (sha256
13021 (base32
13022 "0l97wvkq4diq8lcarraj33bby1zzf0w804jwi8mlc5qddp8idwhy"))))
13023 (build-system gnu-build-system)
13024 (arguments
13025 `(#:phases
13026 (modify-phases %standard-phases
13027 (add-before 'check 'set-timezone
13028 ;; The readr package is picky about timezones.
13029 (lambda* (#:key inputs #:allow-other-keys)
13030 (setenv "TZ" "UTC+1")
13031 (setenv "TZDIR"
13032 (string-append (assoc-ref inputs "tzdata")
13033 "/share/zoneinfo"))
13034 #t)))))
13035 (native-inputs
13036 `(("tzdata" ,tzdata)))
13037 (inputs
13038 `(("coreutils" ,coreutils)
13039 ("sed" ,sed)
13040 ("grep" ,grep)
13041 ("r-minimal" ,r-minimal)
13042 ("r-annotationhub" ,r-annotationhub)
13043 ("r-dt" ,r-dt)
13044 ("r-genomation" ,r-genomation)
13045 ("r-methylkit" ,r-methylkit)
13046 ("r-rtracklayer" ,r-rtracklayer)
13047 ("r-rmarkdown" ,r-rmarkdown)
13048 ("r-bookdown" ,r-bookdown)
13049 ("r-ggplot2" ,r-ggplot2)
13050 ("r-ggbio" ,r-ggbio)
13051 ("ghc-pandoc" ,ghc-pandoc)
13052 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
13053 ("python-wrapper" ,python-wrapper)
13054 ("python-pyyaml" ,python-pyyaml)
13055 ("snakemake" ,snakemake)
13056 ("bismark" ,bismark)
13057 ("fastqc" ,fastqc)
13058 ("bowtie" ,bowtie)
13059 ("trim-galore" ,trim-galore)
13060 ("cutadapt" ,cutadapt)
13061 ("samtools" ,samtools)))
13062 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
13063 (synopsis "Bisulfite sequencing pipeline from fastq to methylation reports")
13064 (description "PiGx BSseq is a data processing pipeline for raw fastq read
13065 data of bisulfite experiments; it produces reports on aggregate methylation
13066 and coverage and can be used to produce information on differential
13067 methylation and segmentation.")
13068 (license license:gpl3+)))
13069
13070 (define-public pigx-scrnaseq
13071 (package
13072 (name "pigx-scrnaseq")
13073 (version "1.1.4")
13074 (source (origin
13075 (method url-fetch)
13076 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_scrnaseq/"
13077 "releases/download/v" version
13078 "/pigx_scrnaseq-" version ".tar.gz"))
13079 (sha256
13080 (base32
13081 "1d5l3gywypi67yz9advxq5xkgfhr4733gj0bwnngm723i3hdf5w9"))))
13082 (build-system gnu-build-system)
13083 (inputs
13084 `(("coreutils" ,coreutils)
13085 ("perl" ,perl)
13086 ("fastqc" ,fastqc)
13087 ("flexbar" ,flexbar)
13088 ("java" ,icedtea-8)
13089 ("jellyfish" ,jellyfish)
13090 ("python-wrapper" ,python-wrapper)
13091 ("python-pyyaml" ,python-pyyaml)
13092 ("python-pandas" ,python-pandas)
13093 ("python-magic" ,python-magic)
13094 ("python-numpy" ,python-numpy)
13095 ("python-loompy" ,python-loompy)
13096 ("ghc-pandoc" ,ghc-pandoc)
13097 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
13098 ("samtools" ,samtools)
13099 ("snakemake" ,snakemake)
13100 ("star" ,star)
13101 ("r-minimal" ,r-minimal)
13102 ("r-argparser" ,r-argparser)
13103 ("r-cowplot" ,r-cowplot)
13104 ("r-data-table" ,r-data-table)
13105 ("r-delayedarray" ,r-delayedarray)
13106 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
13107 ("r-dplyr" ,r-dplyr)
13108 ("r-dropbead" ,r-dropbead)
13109 ("r-dt" ,r-dt)
13110 ("r-genomicalignments" ,r-genomicalignments)
13111 ("r-genomicfiles" ,r-genomicfiles)
13112 ("r-genomicranges" ,r-genomicranges)
13113 ("r-ggplot2" ,r-ggplot2)
13114 ("r-hdf5array" ,r-hdf5array)
13115 ("r-pheatmap" ,r-pheatmap)
13116 ("r-rmarkdown" ,r-rmarkdown)
13117 ("r-rsamtools" ,r-rsamtools)
13118 ("r-rtracklayer" ,r-rtracklayer)
13119 ("r-rtsne" ,r-rtsne)
13120 ("r-scater" ,r-scater)
13121 ("r-scran" ,r-scran)
13122 ("r-seurat" ,r-seurat)
13123 ("r-singlecellexperiment" ,r-singlecellexperiment)
13124 ("r-stringr" ,r-stringr)
13125 ("r-yaml" ,r-yaml)))
13126 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
13127 (synopsis "Analysis pipeline for single-cell RNA sequencing experiments")
13128 (description "PiGX scRNAseq is an analysis pipeline for preprocessing and
13129 quality control for single cell RNA sequencing experiments. The inputs are
13130 read files from the sequencing experiment, and a configuration file which
13131 describes the experiment. It produces processed files for downstream analysis
13132 and interactive quality reports. The pipeline is designed to work with UMI
13133 based methods.")
13134 (license license:gpl3+)))
13135
13136 (define-public pigx
13137 (package
13138 (name "pigx")
13139 (version "0.0.3")
13140 (source (origin
13141 (method url-fetch)
13142 (uri (string-append "https://github.com/BIMSBbioinfo/pigx/"
13143 "releases/download/v" version
13144 "/pigx-" version ".tar.gz"))
13145 (sha256
13146 (base32
13147 "1i5njdy1clj5ncw45d16p7mwmqvb1ilikl9n797pxklc3f4s7mq7"))))
13148 (build-system gnu-build-system)
13149 (inputs
13150 `(("python" ,python)
13151 ("pigx-bsseq" ,pigx-bsseq)
13152 ("pigx-chipseq" ,pigx-chipseq)
13153 ("pigx-rnaseq" ,pigx-rnaseq)
13154 ("pigx-scrnaseq" ,pigx-scrnaseq)))
13155 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
13156 (synopsis "Analysis pipelines for genomics")
13157 (description "PiGx is a collection of genomics pipelines. It includes the
13158 following pipelines:
13159
13160 @itemize
13161 @item PiGx BSseq for raw fastq read data of bisulfite experiments
13162 @item PiGx RNAseq for RNAseq samples
13163 @item PiGx scRNAseq for single cell dropseq analysis
13164 @item PiGx ChIPseq for reads from ChIPseq experiments
13165 @end itemize
13166
13167 All pipelines are easily configured with a simple sample sheet and a
13168 descriptive settings file. The result is a set of comprehensive, interactive
13169 HTML reports with interesting findings about your samples.")
13170 (license license:gpl3+)))
13171
13172 (define-public genrich
13173 (package
13174 (name "genrich")
13175 (version "0.5")
13176 (source (origin
13177 (method git-fetch)
13178 (uri (git-reference
13179 (url "https://github.com/jsh58/Genrich.git")
13180 (commit (string-append "v" version))))
13181 (file-name (git-file-name name version))
13182 (sha256
13183 (base32
13184 "0x0q6z0208n3cxzqjla4rgjqpyqgwpmz27852lcvzkzaigymq4zp"))))
13185 (build-system gnu-build-system)
13186 (arguments
13187 `(#:tests? #f ; there are none
13188 #:phases
13189 (modify-phases %standard-phases
13190 (delete 'configure)
13191 (replace 'install
13192 (lambda* (#:key outputs #:allow-other-keys)
13193 (install-file "Genrich" (string-append (assoc-ref outputs "out") "/bin"))
13194 #t)))))
13195 (inputs
13196 `(("zlib" ,zlib)))
13197 (home-page "https://github.com/jsh58/Genrich")
13198 (synopsis "Detecting sites of genomic enrichment")
13199 (description "Genrich is a peak-caller for genomic enrichment
13200 assays (e.g. ChIP-seq, ATAC-seq). It analyzes alignment files generated
13201 following the assay and produces a file detailing peaks of significant
13202 enrichment.")
13203 (license license:expat)))
13204
13205 (define-public mantis
13206 (let ((commit "4ffd171632c2cb0056a86d709dfd2bf21bc69b84")
13207 (revision "1"))
13208 (package
13209 (name "mantis")
13210 (version (git-version "0" revision commit))
13211 (source (origin
13212 (method git-fetch)
13213 (uri (git-reference
13214 (url "https://github.com/splatlab/mantis.git")
13215 (commit commit)))
13216 (file-name (git-file-name name version))
13217 (sha256
13218 (base32
13219 "0iqbr0dhmlc8mzpirmm2s4pkzkwdgrcx50yx6cv3wlr2qi064p55"))))
13220 (build-system cmake-build-system)
13221 (arguments '(#:tests? #f)) ; there are none
13222 (inputs
13223 `(("sdsl-lite" ,sdsl-lite)
13224 ("openssl" ,openssl)
13225 ("zlib" ,zlib)))
13226 (home-page "https://github.com/splatlab/mantis")
13227 (synopsis "Large-scale sequence-search index data structure")
13228 (description "Mantis is a space-efficient data structure that can be
13229 used to index thousands of raw-read genomics experiments and facilitate
13230 large-scale sequence searches on those experiments. Mantis uses counting
13231 quotient filters instead of Bloom filters, enabling rapid index builds and
13232 queries, small indexes, and exact results, i.e., no false positives or
13233 negatives. Furthermore, Mantis is also a colored de Bruijn graph
13234 representation, so it supports fast graph traversal and other topological
13235 analyses in addition to large-scale sequence-level searches.")
13236 ;; uses __uint128_t and inline assembly
13237 (supported-systems '("x86_64-linux"))
13238 (license license:bsd-3))))
13239
13240 (define-public r-diversitree
13241 (package
13242 (name "r-diversitree")
13243 (version "0.9-13")
13244 (source
13245 (origin
13246 (method url-fetch)
13247 (uri (cran-uri "diversitree" version))
13248 (sha256
13249 (base32
13250 "00vi4klywi35hd170ksjv3xja3hqqbkcidcnrrlpgv4179k0azix"))))
13251 (build-system r-build-system)
13252 (native-inputs
13253 `(("gfortran" ,gfortran)))
13254 (inputs `(("fftw" ,fftw) ("gsl" ,gsl)))
13255 (propagated-inputs
13256 `(("r-ape" ,r-ape)
13257 ("r-desolve" ,r-desolve)
13258 ("r-rcpp" ,r-rcpp)
13259 ("r-subplex" ,r-subplex)))
13260 (home-page "https://www.zoology.ubc.ca/prog/diversitree")
13261 (synopsis "Comparative 'phylogenetic' analyses of diversification")
13262 (description "This package contains a number of comparative \"phylogenetic\"
13263 methods, mostly focusing on analysing diversification and character evolution.
13264 Contains implementations of \"BiSSE\" (Binary State Speciation and Extinction)
13265 and its unresolved tree extensions, \"MuSSE\" (Multiple State Speciation and
13266 Extinction), \"QuaSSE\", \"GeoSSE\", and \"BiSSE-ness\" Other included methods
13267 include Markov models of discrete and continuous trait evolution and constant
13268 rate speciation and extinction.")
13269 (license license:gpl2+)))
13270
13271 (define-public sjcount
13272 ;; There is no tag for version 3.2, nor is there a release archive.
13273 (let ((commit "292d3917cadb3f6834c81e509c30e61cd7ead6e5")
13274 (revision "1"))
13275 (package
13276 (name "sjcount")
13277 (version (git-version "3.2" revision commit))
13278 (source (origin
13279 (method git-fetch)
13280 (uri (git-reference
13281 (url "https://github.com/pervouchine/sjcount-full.git")
13282 (commit commit)))
13283 (file-name (string-append name "-" version "-checkout"))
13284 (sha256
13285 (base32
13286 "0gdgj35j249f04rqgq8ymcc1xg1vi9kzbajnjqpaq2wpbh8bl234"))))
13287 (build-system gnu-build-system)
13288 (arguments
13289 `(#:tests? #f ; requires a 1.4G test file
13290 #:make-flags
13291 (list (string-append "SAMTOOLS_DIR="
13292 (assoc-ref %build-inputs "samtools")
13293 "/lib/"))
13294 #:phases
13295 (modify-phases %standard-phases
13296 (replace 'configure
13297 (lambda* (#:key inputs #:allow-other-keys)
13298 (substitute* "makefile"
13299 (("-I \\$\\{SAMTOOLS_DIR\\}")
13300 (string-append "-I" (assoc-ref inputs "samtools")
13301 "/include/samtools"))
13302 (("-lz ") "-lz -lpthread "))
13303 #t))
13304 (replace 'install
13305 (lambda* (#:key outputs #:allow-other-keys)
13306 (for-each (lambda (tool)
13307 (install-file tool
13308 (string-append (assoc-ref outputs "out")
13309 "/bin")))
13310 '("j_count" "b_count" "sjcount"))
13311 #t)))))
13312 (inputs
13313 `(("samtools" ,samtools-0.1)
13314 ("zlib" ,zlib)))
13315 (home-page "https://github.com/pervouchine/sjcount-full/")
13316 (synopsis "Annotation-agnostic splice junction counting pipeline")
13317 (description "Sjcount is a utility for fast quantification of splice
13318 junctions in RNA-seq data. It is annotation-agnostic and offset-aware. This
13319 version does count multisplits.")
13320 (license license:gpl3+))))
13321
13322 (define-public minimap2
13323 (package
13324 (name "minimap2")
13325 (version "2.17")
13326 (source
13327 (origin
13328 (method url-fetch)
13329 (uri (string-append "https://github.com/lh3/minimap2/"
13330 "releases/download/v" version "/"
13331 "minimap2-" version ".tar.bz2"))
13332 (sha256
13333 (base32
13334 "0hi7i9pzxhvjj44khzzzj1lrn5gb5837arr4wgln7k1k5n4ci2mn"))))
13335 (build-system gnu-build-system)
13336 (arguments
13337 `(#:tests? #f ; there are none
13338 #:make-flags
13339 (list "CC=gcc"
13340 (let ((system ,(or (%current-target-system)
13341 (%current-system))))
13342 (cond
13343 ((string-prefix? "x86_64" system)
13344 "all")
13345 ((or (string-prefix? "armhf" system)
13346 (string-prefix? "aarch64" system))
13347 "arm_neon=1")
13348 (else "sse2only=1"))))
13349 #:phases
13350 (modify-phases %standard-phases
13351 (delete 'configure)
13352 (replace 'install
13353 (lambda* (#:key outputs #:allow-other-keys)
13354 (let* ((out (assoc-ref outputs "out"))
13355 (bin (string-append out "/bin"))
13356 (man (string-append out "/share/man/man1")))
13357 (install-file "minimap2" bin)
13358 (mkdir-p man)
13359 (install-file "minimap2.1" man))
13360 #t)))))
13361 (inputs
13362 `(("zlib" ,zlib)))
13363 (home-page "https://lh3.github.io/minimap2/")
13364 (synopsis "Pairwise aligner for genomic and spliced nucleotide sequences")
13365 (description "Minimap2 is a versatile sequence alignment program that
13366 aligns DNA or mRNA sequences against a large reference database. Typical use
13367 cases include:
13368
13369 @enumerate
13370 @item mapping PacBio or Oxford Nanopore genomic reads to the human genome;
13371 @item finding overlaps between long reads with error rate up to ~15%;
13372 @item splice-aware alignment of PacBio Iso-Seq or Nanopore cDNA or Direct RNA
13373 reads against a reference genome;
13374 @item aligning Illumina single- or paired-end reads;
13375 @item assembly-to-assembly alignment;
13376 @item full-genome alignment between two closely related species with
13377 divergence below ~15%.
13378 @end enumerate\n")
13379 (license license:expat)))
13380
13381 (define-public miniasm
13382 (package
13383 (name "miniasm")
13384 (version "0.3")
13385 (source (origin
13386 (method url-fetch)
13387 (uri (string-append
13388 "https://github.com/lh3/miniasm/archive/v"
13389 version ".tar.gz"))
13390 (file-name (string-append name "-" version ".tar.gz"))
13391 (sha256
13392 (base32
13393 "0g89pa98dvh34idv7w1zv12bsbyr3a11c4qb1cdcz68gyda88s4v"))))
13394 (build-system gnu-build-system)
13395 (inputs
13396 `(("zlib" ,zlib)))
13397 (arguments
13398 `(#:tests? #f ; There are no tests.
13399 #:phases
13400 (modify-phases %standard-phases
13401 (delete 'configure)
13402 (replace 'install
13403 (lambda* (#:key inputs outputs #:allow-other-keys)
13404 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
13405 (install-file "miniasm" bin)
13406 (install-file "minidot" bin)))))))
13407 (home-page "https://github.com/lh3/miniasm")
13408 (synopsis "Ultrafast de novo assembly for long noisy reads")
13409 (description "Miniasm is a very fast OLC-based de novo assembler for noisy
13410 long reads. It takes all-vs-all read self-mappings (typically by minimap) as
13411 input and outputs an assembly graph in the GFA format. Different from
13412 mainstream assemblers, miniasm does not have a consensus step. It simply
13413 concatenates pieces of read sequences to generate the final unitig sequences.
13414 Thus the per-base error rate is similar to the raw input reads.")
13415 (license license:expat)))
13416
13417 (define-public r-circus
13418 (package
13419 (name "r-circus")
13420 (version "0.1.5")
13421 (source
13422 (origin
13423 (method git-fetch)
13424 (uri (git-reference
13425 (url "https://github.com/BIMSBbioinfo/ciRcus.git")
13426 (commit (string-append "v" version))))
13427 (file-name (git-file-name name version))
13428 (sha256
13429 (base32
13430 "0jhjn3ilb057hbf6yzrihj13ifxxs32y7nkby8l3lkm28dg4p97h"))))
13431 (build-system r-build-system)
13432 (propagated-inputs
13433 `(("r-annotationdbi" ,r-annotationdbi)
13434 ("r-annotationhub" ,r-annotationhub)
13435 ("r-biomart" ,r-biomart)
13436 ("r-data-table" ,r-data-table)
13437 ("r-dbi" ,r-dbi)
13438 ("r-genomicfeatures" ,r-genomicfeatures)
13439 ("r-genomicranges" ,r-genomicranges)
13440 ("r-ggplot2" ,r-ggplot2)
13441 ("r-hash" ,r-hash)
13442 ("r-iranges" ,r-iranges)
13443 ("r-rcolorbrewer" ,r-rcolorbrewer)
13444 ("r-rmysql" ,r-rmysql)
13445 ("r-s4vectors" ,r-s4vectors)
13446 ("r-stringr" ,r-stringr)
13447 ("r-summarizedexperiment" ,r-summarizedexperiment)))
13448 (native-inputs
13449 `(("r-knitr" ,r-knitr)))
13450 (home-page "https://github.com/BIMSBbioinfo/ciRcus")
13451 (synopsis "Annotation, analysis and visualization of circRNA data")
13452 (description "Circus is an R package for annotation, analysis and
13453 visualization of circRNA data. Users can annotate their circRNA candidates
13454 with host genes, gene featrues they are spliced from, and discriminate between
13455 known and yet unknown splice junctions. Circular-to-linear ratios of circRNAs
13456 can be calculated, and a number of descriptive plots easily generated.")
13457 (license license:artistic2.0)))
13458
13459 (define-public gffread
13460 ;; We cannot use the tagged release because it is not in sync with gclib.
13461 ;; See https://github.com/gpertea/gffread/issues/26
13462 (let ((commit "ba7535fcb3cea55a6e5a491d916e93b454e87fd0")
13463 (revision "1"))
13464 (package
13465 (name "gffread")
13466 (version (git-version "0.9.12" revision commit))
13467 (source
13468 (origin
13469 (method git-fetch)
13470 (uri (git-reference
13471 (url "https://github.com/gpertea/gffread.git")
13472 (commit commit)))
13473 (file-name (git-file-name name version))
13474 (sha256
13475 (base32
13476 "1dl2nbcg96lxpd0drg48ssa8343nf7pw9s9mkrc4mjjmfwsin3ki"))))
13477 (build-system gnu-build-system)
13478 (arguments
13479 `(#:tests? #f ; no check target
13480 #:make-flags
13481 (list "GCLDIR=gclib")
13482 #:phases
13483 (modify-phases %standard-phases
13484 (delete 'configure)
13485 (add-after 'unpack 'copy-gclib-source
13486 (lambda* (#:key inputs #:allow-other-keys)
13487 (mkdir-p "gclib")
13488 (copy-recursively (assoc-ref inputs "gclib-source") "gclib")
13489 #t))
13490 ;; There is no install target
13491 (replace 'install
13492 (lambda* (#:key outputs #:allow-other-keys)
13493 (let* ((out (assoc-ref outputs "out"))
13494 (bin (string-append out "/bin")))
13495 (install-file "gffread" bin))
13496 #t)))))
13497 (native-inputs
13498 `(("gclib-source"
13499 ,(let ((version "0.10.3")
13500 (commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
13501 (revision "1"))
13502 (origin
13503 (method git-fetch)
13504 (uri (git-reference
13505 (url "https://github.com/gpertea/gclib.git")
13506 (commit commit)))
13507 (file-name (git-file-name "gclib" version))
13508 (sha256
13509 (base32
13510 "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
13511 (home-page "https://github.com/gpertea/gffread/")
13512 (synopsis "Parse and convert GFF/GTF files")
13513 (description
13514 "This package provides a GFF/GTF file parsing utility providing format
13515 conversions, region filtering, FASTA sequence extraction and more.")
13516 ;; gffread is under Expat, but gclib is under Artistic 2.0
13517 (license (list license:expat
13518 license:artistic2.0)))))
13519
13520 (define-public find-circ
13521 ;; The last release was in 2015. The license was clarified in 2017, so we
13522 ;; take the latest commit.
13523 (let ((commit "8655dca54970fcf7e92e22fbf57e1188724dda7d")
13524 (revision "1"))
13525 (package
13526 (name "find-circ")
13527 (version (git-version "1.2" revision commit))
13528 (source
13529 (origin
13530 (method git-fetch)
13531 (uri (git-reference
13532 (url "https://github.com/marvin-jens/find_circ.git")
13533 (commit commit)))
13534 (file-name (git-file-name name version))
13535 (sha256
13536 (base32
13537 "0p77pbqbclqr4srms34y1b9b4njybfpjiknc11ki84f3p8skb3cg"))))
13538 (build-system gnu-build-system)
13539 (arguments
13540 `(#:tests? #f ; there are none
13541 #:phases
13542 ;; There is no actual build system.
13543 (modify-phases %standard-phases
13544 (delete 'configure)
13545 (delete 'build)
13546 (replace 'install
13547 (lambda* (#:key outputs #:allow-other-keys)
13548 (let* ((out (assoc-ref outputs "out"))
13549 (bin (string-append out "/bin"))
13550 (path (getenv "PYTHONPATH")))
13551 (for-each (lambda (script)
13552 (install-file script bin)
13553 (wrap-program (string-append bin "/" script)
13554 `("PYTHONPATH" ":" prefix (,path))))
13555 '("cmp_bed.py"
13556 "find_circ.py"
13557 "maxlength.py"
13558 "merge_bed.py"
13559 "unmapped2anchors.py")))
13560 #t)))))
13561 (inputs
13562 `(("python2" ,python-2)
13563 ("python2-pysam" ,python2-pysam)
13564 ("python2-numpy" ,python2-numpy)))
13565 (home-page "https://github.com/marvin-jens/find_circ")
13566 (synopsis "circRNA detection from RNA-seq reads")
13567 (description "This package provides tools to detect head-to-tail
13568 spliced (back-spliced) sequencing reads, indicative of circular RNA (circRNA)
13569 in RNA-seq data.")
13570 (license license:gpl3))))
13571
13572 (define-public python-scanpy
13573 (package
13574 (name "python-scanpy")
13575 (version "1.4.6")
13576 (source
13577 (origin
13578 (method url-fetch)
13579 (uri (pypi-uri "scanpy" version))
13580 (sha256
13581 (base32
13582 "0s2b6cvaigx4wzw3850qb93sjwwxbzh22kpbp498zklc5rjpbz4l"))))
13583 (build-system python-build-system)
13584 (arguments
13585 `(#:phases
13586 (modify-phases %standard-phases
13587 (replace 'check
13588 (lambda* (#:key inputs #:allow-other-keys)
13589 ;; These tests require Internet access.
13590 (delete-file-recursively "scanpy/tests/notebooks")
13591 (delete-file "scanpy/tests/test_clustering.py")
13592 (delete-file "scanpy/tests/test_datasets.py")
13593
13594 ;; TODO: I can't get the plotting tests to work, even with Xvfb.
13595 (delete-file "scanpy/tests/test_plotting.py")
13596 (delete-file "scanpy/tests/test_preprocessing.py")
13597 (delete-file "scanpy/tests/test_read_10x.py")
13598
13599 (setenv "PYTHONPATH"
13600 (string-append (getcwd) ":"
13601 (getenv "PYTHONPATH")))
13602 (invoke "pytest")
13603 #t)))))
13604 (propagated-inputs
13605 `(("python-anndata" ,python-anndata)
13606 ("python-h5py" ,python-h5py)
13607 ("python-igraph" ,python-igraph)
13608 ("python-joblib" ,python-joblib)
13609 ("python-legacy-api-wrap" ,python-legacy-api-wrap)
13610 ("python-louvain" ,python-louvain)
13611 ("python-matplotlib" ,python-matplotlib)
13612 ("python-natsort" ,python-natsort)
13613 ("python-networkx" ,python-networkx)
13614 ("python-numba" ,python-numba)
13615 ("python-packaging" ,python-packaging)
13616 ("python-pandas" ,python-pandas)
13617 ("python-patsy" ,python-patsy)
13618 ("python-scikit-learn" ,python-scikit-learn)
13619 ("python-scipy" ,python-scipy)
13620 ("python-seaborn" ,python-seaborn)
13621 ("python-statsmodels" ,python-statsmodels)
13622 ("python-tables" ,python-tables)
13623 ("python-tqdm" ,python-tqdm)
13624 ("python-umap-learn" ,python-umap-learn)))
13625 (native-inputs
13626 `(("python-pytest" ,python-pytest)
13627 ("python-setuptools-scm" ,python-setuptools-scm)))
13628 (home-page "https://github.com/theislab/scanpy")
13629 (synopsis "Single-Cell Analysis in Python.")
13630 (description "Scanpy is a scalable toolkit for analyzing single-cell gene
13631 expression data. It includes preprocessing, visualization, clustering,
13632 pseudotime and trajectory inference and differential expression testing. The
13633 Python-based implementation efficiently deals with datasets of more than one
13634 million cells.")
13635 (license license:bsd-3)))
13636
13637 (define-public python-bbknn
13638 (package
13639 (name "python-bbknn")
13640 (version "1.3.6")
13641 (source
13642 (origin
13643 (method url-fetch)
13644 (uri (pypi-uri "bbknn" version))
13645 (sha256
13646 (base32
13647 "1jbsh01f57zj4bhvjr3jh4532zznqd6nccmgrl3qi9gnhkf7c4y0"))))
13648 (build-system python-build-system)
13649 (arguments
13650 `(#:tests? #f)) ; TODO: Enable after migration to scikit-learn.
13651 (propagated-inputs
13652 `(("python-annoy" ,python-annoy)
13653 ("python-cython" ,python-cython)
13654 ("python-numpy" ,python-numpy)
13655 ("python-scipy" ,python-scipy)
13656 ("python-umap-learn" ,python-umap-learn)))
13657 (home-page "https://github.com/Teichlab/bbknn")
13658 (synopsis "Batch balanced KNN")
13659 (description "BBKNN is a batch effect removal tool that can be directly
13660 used in the Scanpy workflow. It serves as an alternative to
13661 @code{scanpy.api.pp.neighbors()}, with both functions creating a neighbour
13662 graph for subsequent use in clustering, pseudotime and UMAP visualisation. If
13663 technical artifacts are present in the data, they will make it challenging to
13664 link corresponding cell types across different batches. BBKNN actively
13665 combats this effect by splitting your data into batches and finding a smaller
13666 number of neighbours for each cell within each of the groups. This helps
13667 create connections between analogous cells in different batches without
13668 altering the counts or PCA space.")
13669 (license license:expat)))
13670
13671 (define-public gffcompare
13672 (let ((commit "be56ef4349ea3966c12c6397f85e49e047361c41")
13673 (revision "1"))
13674 (package
13675 (name "gffcompare")
13676 (version (git-version "0.10.15" revision commit))
13677 (source
13678 (origin
13679 (method git-fetch)
13680 (uri (git-reference
13681 (url "https://github.com/gpertea/gffcompare/")
13682 (commit commit)))
13683 (file-name (git-file-name name version))
13684 (sha256
13685 (base32 "0cp5qpxdhw4mxpya5dld8wi3jk00zyklm6rcri426wydinrnfmkg"))))
13686 (build-system gnu-build-system)
13687 (arguments
13688 `(#:tests? #f ; no check target
13689 #:phases
13690 (modify-phases %standard-phases
13691 (delete 'configure)
13692 (add-before 'build 'copy-gclib-source
13693 (lambda* (#:key inputs #:allow-other-keys)
13694 (mkdir "../gclib")
13695 (copy-recursively
13696 (assoc-ref inputs "gclib-source") "../gclib")
13697 #t))
13698 (replace 'install
13699 (lambda* (#:key outputs #:allow-other-keys)
13700 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
13701 (install-file "gffcompare" bin)
13702 #t))))))
13703 (native-inputs
13704 `(("gclib-source" ; see 'README.md' of gffcompare
13705 ,(let ((commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
13706 (revision "1")
13707 (name "gclib")
13708 (version (git-version "0.10.3" revision commit)))
13709 (origin
13710 (method git-fetch)
13711 (uri (git-reference
13712 (url "https://github.com/gpertea/gclib/")
13713 (commit commit)))
13714 (file-name (git-file-name name version))
13715 (sha256
13716 (base32 "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
13717 (home-page "https://github.com/gpertea/gffcompare/")
13718 (synopsis "Tool for comparing or classifing transcripts of RNA-Seq")
13719 (description
13720 "@code{gffcompare} is a tool that can:
13721 @enumerate
13722 @item compare and evaluate the accuracy of RNA-Seq transcript assemblers
13723 (Cufflinks, Stringtie);
13724 @item collapse (merge) duplicate transcripts from multiple GTF/GFF3 files (e.g.
13725 resulted from assembly of different samples);
13726 @item classify transcripts from one or multiple GTF/GFF3 files as they relate to
13727 reference transcripts provided in a annotation file (also in GTF/GFF3 format).
13728 @end enumerate")
13729 (license
13730 (list
13731 license:expat ;license for gffcompare
13732 license:artistic2.0))))) ;license for gclib
13733
13734 (define-public intervaltree
13735 (let ((commit "b90527f9e6d51cd36ecbb50429e4524d3a418ea5"))
13736 (package
13737 (name "intervaltree")
13738 (version (git-version "0.0.0" "1" commit))
13739 (source
13740 (origin
13741 (method git-fetch)
13742 (uri (git-reference
13743 (url "https://github.com/ekg/intervaltree/")
13744 (commit commit)))
13745 (file-name (git-file-name name version))
13746 (sha256
13747 (base32 "0rgv6q5fl4x5d74n6p5wvdna6zmbdbqpb4jqqh6vq3670gn08xad"))))
13748 (build-system gnu-build-system)
13749 (arguments
13750 '(#:tests? #f ; No tests.
13751 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
13752 "DESTDIR=\"\"")
13753 #:phases
13754 (modify-phases %standard-phases
13755 (delete 'configure)))) ; There is no configure phase.
13756 (home-page "https://github.com/ekg/intervaltree")
13757 (synopsis "Minimal C++ interval tree implementation")
13758 (description "An interval tree can be used to efficiently find a set of
13759 numeric intervals overlapping or containing another interval. This library
13760 provides a basic implementation of an interval tree using C++ templates,
13761 allowing the insertion of arbitrary types into the tree.")
13762 (license license:expat))))
13763
13764 (define-public python-intervaltree
13765 (package
13766 (name "python-intervaltree")
13767 (version "3.0.2")
13768 (source
13769 (origin
13770 (method url-fetch)
13771 (uri (pypi-uri "intervaltree" version))
13772 (sha256
13773 (base32
13774 "0wz234g6irlm4hivs2qzmnywk0ss06ckagwh15nflkyb3p462kyb"))))
13775 (build-system python-build-system)
13776 (arguments
13777 `(#:phases
13778 (modify-phases %standard-phases
13779 ;; pytest seems to have a check to make sure the user is testing
13780 ;; their checked-out code and not an installed, potentially
13781 ;; out-of-date copy. This is harmless here, since we just installed
13782 ;; the package, so we disable the check to avoid skipping tests
13783 ;; entirely.
13784 (add-before 'check 'import-mismatch-error-workaround
13785 (lambda _
13786 (setenv "PY_IGNORE_IMPORTMISMATCH" "1")
13787 #t)))))
13788 (propagated-inputs
13789 `(("python-sortedcontainers" ,python-sortedcontainers)))
13790 (native-inputs
13791 `(("python-pytest" ,python-pytest)))
13792 (home-page "https://github.com/chaimleib/intervaltree")
13793 (synopsis "Editable interval tree data structure")
13794 (description
13795 "This package provides a mutable, self-balancing interval tree
13796 implementation for Python. Queries may be by point, by range overlap, or by
13797 range envelopment. This library was designed to allow tagging text and time
13798 intervals, where the intervals include the lower bound but not the upper
13799 bound.")
13800 (license license:asl2.0)))
13801
13802 (define-public python-pypairix
13803 (package
13804 (name "python-pypairix")
13805 (version "0.3.7")
13806 ;; The tarball on pypi does not include the makefile to build the
13807 ;; programs.
13808 (source
13809 (origin
13810 (method git-fetch)
13811 (uri (git-reference
13812 (url "https://github.com/4dn-dcic/pairix.git")
13813 (commit version)))
13814 (file-name (git-file-name name version))
13815 (sha256
13816 (base32
13817 "1snr3lrmsld8sy77ng6ba6wcmd33xjccf1l2f3m6pi29xis9nd6p"))))
13818 (build-system python-build-system)
13819 (arguments
13820 `(#:phases
13821 (modify-phases %standard-phases
13822 (add-before 'build 'build-programs
13823 (lambda _ (invoke "make")))
13824 (add-after 'install 'install-programs
13825 (lambda* (#:key outputs #:allow-other-keys)
13826 (copy-recursively "bin" (string-append
13827 (assoc-ref outputs "out")
13828 "/bin"))
13829 #t)))))
13830 (inputs
13831 `(("zlib" ,zlib)))
13832 (home-page "https://github.com/4dn-dcic/pairix")
13833 (synopsis "Support for querying pairix-indexed bgzipped text files")
13834 (description
13835 "Pypairix is a Python module for fast querying on a pairix-indexed
13836 bgzipped text file that contains a pair of genomic coordinates per line.")
13837 (license license:expat)))
13838
13839 (define-public python-pyfaidx
13840 (package
13841 (name "python-pyfaidx")
13842 (version "0.5.8")
13843 (source
13844 (origin
13845 (method url-fetch)
13846 (uri (pypi-uri "pyfaidx" version))
13847 (sha256
13848 (base32
13849 "038xi3a6zvrxbyyfpp64ka8pcjgsdq4fgw9cl5lpxbvmm1bzzw2q"))))
13850 (build-system python-build-system)
13851 (propagated-inputs
13852 `(("python-six" ,python-six)))
13853 (home-page "http://mattshirley.com")
13854 (synopsis "Random access to fasta subsequences")
13855 (description
13856 "This package provides procedures for efficient pythonic random access to
13857 fasta subsequences.")
13858 (license license:bsd-3)))
13859
13860 (define-public python2-pyfaidx
13861 (package-with-python2 python-pyfaidx))
13862
13863 (define-public python-cooler
13864 (package
13865 (name "python-cooler")
13866 (version "0.8.7")
13867 (source
13868 (origin
13869 (method url-fetch)
13870 (uri (pypi-uri "cooler" version))
13871 (sha256
13872 (base32
13873 "01g6gqix9ba27sappz6nfyiwabzrlf8i5fn8kwcz8ra356cq9crp"))))
13874 (build-system python-build-system)
13875 (propagated-inputs
13876 `(("python-asciitree" ,python-asciitree)
13877 ("python-biopython" ,python-biopython)
13878 ("python-click" ,python-click)
13879 ("python-cytoolz" ,python-cytoolz)
13880 ("python-dask" ,python-dask)
13881 ("python-h5py" ,python-h5py)
13882 ("python-multiprocess" ,python-multiprocess)
13883 ("python-numpy" ,python-numpy)
13884 ("python-pandas" ,python-pandas)
13885 ("python-pyfaidx" ,python-pyfaidx)
13886 ("python-pypairix" ,python-pypairix)
13887 ("python-pysam" ,python-pysam)
13888 ("python-pyyaml" ,python-pyyaml)
13889 ("python-scipy" ,python-scipy)
13890 ("python-simplejson" ,python-simplejson)))
13891 (native-inputs
13892 `(("python-mock" ,python-mock)
13893 ("python-pytest" ,python-pytest)))
13894 (home-page "https://github.com/mirnylab/cooler")
13895 (synopsis "Sparse binary format for genomic interaction matrices")
13896 (description
13897 "Cooler is a support library for a sparse, compressed, binary persistent
13898 storage format, called @code{cool}, used to store genomic interaction data,
13899 such as Hi-C contact matrices.")
13900 (license license:bsd-3)))
13901
13902 (define-public python-hicmatrix
13903 (package
13904 (name "python-hicmatrix")
13905 (version "12")
13906 (source
13907 (origin
13908 ;; Version 12 is not available on pypi.
13909 (method git-fetch)
13910 (uri (git-reference
13911 (url "https://github.com/deeptools/HiCMatrix.git")
13912 (commit version)))
13913 (file-name (git-file-name name version))
13914 (sha256
13915 (base32
13916 "1xhdyx16f3brgxgxybixdi64ki8nbbkq5vk4h9ahi11pzpjfn1pj"))))
13917 (build-system python-build-system)
13918 (arguments
13919 `(#:phases
13920 (modify-phases %standard-phases
13921 (add-after 'unpack 'relax-requirements
13922 (lambda _
13923 (substitute* '("requirements.txt"
13924 "setup.py")
13925 (("cooler *=+ *0.8.5")
13926 "cooler==0.8.*"))
13927 #t)))))
13928 (propagated-inputs
13929 `(("python-cooler" ,python-cooler)
13930 ("python-intervaltree" ,python-intervaltree)
13931 ("python-numpy" ,python-numpy)
13932 ("python-pandas" ,python-pandas)
13933 ("python-scipy" ,python-scipy)
13934 ("python-tables" ,python-tables)))
13935 (home-page "https://github.com/deeptools/HiCMatrix/")
13936 (synopsis "HiCMatrix class for HiCExplorer and pyGenomeTracks")
13937 (description
13938 "This helper package implements the @code{HiCMatrix} class for
13939 the HiCExplorer and pyGenomeTracks packages.")
13940 (license license:gpl3+)))
13941
13942 (define-public python-hicexplorer
13943 (package
13944 (name "python-hicexplorer")
13945 (version "2.1.4")
13946 (source
13947 (origin
13948 ;; The latest version is not available on Pypi.
13949 (method git-fetch)
13950 (uri (git-reference
13951 (url "https://github.com/deeptools/HiCExplorer.git")
13952 (commit version)))
13953 (file-name (git-file-name name version))
13954 (sha256
13955 (base32
13956 "0q5gpbzmrkvygqgw524q36b4nrivcmyi5v194vsx0qw7b3gcmq08"))))
13957 (build-system python-build-system)
13958 (arguments
13959 `(#:phases
13960 (modify-phases %standard-phases
13961 (add-after 'unpack 'loosen-up-requirements
13962 (lambda _
13963 (substitute* "setup.py"
13964 (("==") ">="))
13965 #t)))))
13966 (propagated-inputs
13967 `(("python-biopython" ,python-biopython)
13968 ("python-configparser" ,python-configparser)
13969 ("python-cooler" ,python-cooler)
13970 ("python-future" ,python-future)
13971 ("python-intervaltree" ,python-intervaltree)
13972 ("python-jinja2" ,python-jinja2)
13973 ("python-matplotlib" ,python-matplotlib)
13974 ("python-numpy" ,python-numpy)
13975 ("python-pandas" ,python-pandas)
13976 ("python-pybigwig" ,python-pybigwig)
13977 ("python-pysam" ,python-pysam)
13978 ("python-scipy" ,python-scipy)
13979 ("python-six" ,python-six)
13980 ("python-tables" ,python-tables)
13981 ("python-unidecode" ,python-unidecode)))
13982 (home-page "https://hicexplorer.readthedocs.io")
13983 (synopsis "Process, analyze and visualize Hi-C data")
13984 (description
13985 "HiCExplorer is a powerful and easy to use set of tools to process,
13986 normalize and visualize Hi-C data. HiCExplorer facilitates the creation of
13987 contact matrices, correction of contacts, TAD detection, A/B compartments,
13988 merging, reordering or chromosomes, conversion from different formats
13989 including cooler and detection of long-range contacts. Moreover, it allows
13990 the visualization of multiple contact matrices along with other types of data
13991 like genes, compartments, ChIP-seq coverage tracks (and in general any type of
13992 genomic scores), long range contacts and the visualization of viewpoints.")
13993 (license license:gpl3)))
13994
13995 (define-public python-pygenometracks
13996 (package
13997 (name "python-pygenometracks")
13998 (version "3.3")
13999 (source
14000 (origin
14001 (method url-fetch)
14002 (uri (pypi-uri "pyGenomeTracks" version))
14003 (sha256
14004 (base32
14005 "16laa0wnf4qn9fb9ych4w1vqhqwjss70v0y0f6wp4gwqfrlgac0f"))))
14006 (build-system python-build-system)
14007 (arguments
14008 `(#:tests? #f ; there are none
14009 #:phases
14010 (modify-phases %standard-phases
14011 (add-after 'unpack 'relax-requirements
14012 (lambda _
14013 (substitute* "setup.py"
14014 (("matplotlib ==3.1.1")
14015 "matplotlib >=3.1.1"))
14016 #t)))))
14017 (propagated-inputs
14018 `(("python-future" ,python-future)
14019 ("python-gffutils" ,python-gffutils)
14020 ("python-hicmatrix" ,python-hicmatrix)
14021 ("python-intervaltree" ,python-intervaltree)
14022 ("python-matplotlib" ,python-matplotlib)
14023 ("python-numpy" ,python-numpy)
14024 ("python-pybigwig" ,python-pybigwig)
14025 ("python-pysam" ,python-pysam)
14026 ("python-tqdm" ,python-tqdm)))
14027 (native-inputs
14028 `(("python-pytest" ,python-pytest)))
14029 (home-page "https://pygenometracks.readthedocs.io")
14030 (synopsis "Program and library to plot beautiful genome browser tracks")
14031 (description
14032 "This package aims to produce high-quality genome browser tracks that
14033 are highly customizable. Currently, it is possible to plot: bigwig, bed (many
14034 options), bedgraph, links (represented as arcs), and Hi-C matrices.
14035 pyGenomeTracks can make plots with or without Hi-C data.")
14036 (license license:gpl3+)))
14037
14038 (define-public python-hic2cool
14039 (package
14040 (name "python-hic2cool")
14041 (version "0.4.2")
14042 (source
14043 (origin
14044 (method url-fetch)
14045 (uri (pypi-uri "hic2cool" version))
14046 (sha256
14047 (base32
14048 "0xy6mhfns2lzib1kcr6419jjp6pmh0qx8z8na55lmiwn0ds8q9cl"))))
14049 (build-system python-build-system)
14050 (arguments '(#:tests? #f)) ; no tests included
14051 (propagated-inputs
14052 `(("python-cooler" ,python-cooler)))
14053 (home-page "https://github.com/4dn-dcic/hic2cool")
14054 (synopsis "Converter for .hic and .cool files")
14055 (description
14056 "This package provides a converter between @code{.hic} files (from
14057 juicer) and single-resolution or multi-resolution @code{.cool} files (for
14058 cooler). Both @code{hic} and @code{cool} files describe Hi-C contact
14059 matrices.")
14060 (license license:expat)))
14061
14062 (define-public r-pore
14063 (package
14064 (name "r-pore")
14065 (version "0.24")
14066 (source
14067 (origin
14068 (method url-fetch)
14069 (uri
14070 (string-append "mirror://sourceforge/rpore/" version
14071 "/poRe_" version ".tar.gz"))
14072 (sha256
14073 (base32 "0pih9nljbv8g4x8rkk29i7aqq681b782r5s5ynp4nw9yzqnmmksv"))))
14074 (properties `((upstream-name . "poRe")))
14075 (build-system r-build-system)
14076 (propagated-inputs
14077 `(("r-bit64" ,r-bit64)
14078 ("r-data-table" ,r-data-table)
14079 ("r-rhdf5" ,r-rhdf5)
14080 ("r-shiny" ,r-shiny)
14081 ("r-svdialogs" ,r-svdialogs)))
14082 (home-page "https://sourceforge.net/projects/rpore/")
14083 (synopsis "Visualize Nanopore sequencing data")
14084 (description
14085 "This package provides graphical user interfaces to organize and visualize Nanopore
14086 sequencing data.")
14087 ;; This is free software but the license variant is unclear:
14088 ;; <https://github.com/mw55309/poRe_docs/issues/10>.
14089 (license license:bsd-3)))
14090
14091 (define-public r-xbioc
14092 (let ((revision "1")
14093 (commit "6ff0670a37ab3036aaf1d94aa4b208310946b0b5"))
14094 (package
14095 (name "r-xbioc")
14096 (version (git-version "0.1.16" revision commit))
14097 (source (origin
14098 (method git-fetch)
14099 (uri (git-reference
14100 (url "https://github.com/renozao/xbioc.git")
14101 (commit commit)))
14102 (file-name (git-file-name name version))
14103 (sha256
14104 (base32
14105 "0w8bsq5myiwkfhh83nm6is5ichiyvwa1axx2szvxnzq39x6knf66"))))
14106 (build-system r-build-system)
14107 (propagated-inputs
14108 `(("r-annotationdbi" ,r-annotationdbi)
14109 ("r-assertthat" ,r-assertthat)
14110 ("r-biobase" ,r-biobase)
14111 ("r-biocmanager" ,r-biocmanager)
14112 ("r-digest" ,r-digest)
14113 ("r-pkgmaker" ,r-pkgmaker)
14114 ("r-plyr" ,r-plyr)
14115 ("r-reshape2" ,r-reshape2)
14116 ("r-stringr" ,r-stringr)))
14117 (home-page "https://github.com/renozao/xbioc/")
14118 (synopsis "Extra base functions for Bioconductor")
14119 (description "This package provides extra utility functions to perform
14120 common tasks in the analysis of omics data, leveraging and enhancing features
14121 provided by Bioconductor packages.")
14122 (license license:gpl3+))))
14123
14124 (define-public r-cssam
14125 (let ((revision "1")
14126 (commit "9ec58c982fa551af0d80b1a266890d92954833f2"))
14127 (package
14128 (name "r-cssam")
14129 (version (git-version "1.4" revision commit))
14130 (source (origin
14131 (method git-fetch)
14132 (uri (git-reference
14133 (url "https://github.com/shenorrLab/csSAM.git")
14134 (commit commit)))
14135 (file-name (git-file-name name version))
14136 (sha256
14137 (base32
14138 "128syf9v39gk0z3ip000qpsjbg6l1siyq6c8b0hz41dzg5achyb3"))))
14139 (build-system r-build-system)
14140 (propagated-inputs
14141 `(("r-formula" ,r-formula)
14142 ("r-ggplot2" ,r-ggplot2)
14143 ("r-pkgmaker" ,r-pkgmaker)
14144 ("r-plyr" ,r-plyr)
14145 ("r-rngtools" ,r-rngtools)
14146 ("r-scales" ,r-scales)))
14147 (home-page "https://github.com/shenorrLab/csSAM/")
14148 (synopsis "Cell type-specific statistical analysis of microarray")
14149 (description "This package implements the method csSAM that computes
14150 cell-specific differential expression from measured cell proportions using
14151 SAM.")
14152 ;; Any version
14153 (license license:lgpl2.1+))))
14154
14155 (define-public r-bseqsc
14156 (let ((revision "1")
14157 (commit "fef3f3e38dcf3df37103348b5780937982b43b98"))
14158 (package
14159 (name "r-bseqsc")
14160 (version (git-version "1.0" revision commit))
14161 (source (origin
14162 (method git-fetch)
14163 (uri (git-reference
14164 (url "https://github.com/shenorrLab/bseqsc.git")
14165 (commit commit)))
14166 (file-name (git-file-name name version))
14167 (sha256
14168 (base32
14169 "1prw13wa20f7wlc3gkkls66n1kxz8d28qrb8icfqdwdnnv8w5qg8"))))
14170 (build-system r-build-system)
14171 (propagated-inputs
14172 `(("r-abind" ,r-abind)
14173 ("r-annotationdbi" ,r-annotationdbi)
14174 ("r-biobase" ,r-biobase)
14175 ("r-cssam" ,r-cssam)
14176 ("r-dplyr" ,r-dplyr)
14177 ("r-e1071" ,r-e1071)
14178 ("r-edger" ,r-edger)
14179 ("r-ggplot2" ,r-ggplot2)
14180 ("r-nmf" ,r-nmf)
14181 ("r-openxlsx" ,r-openxlsx)
14182 ("r-pkgmaker" ,r-pkgmaker)
14183 ("r-plyr" ,r-plyr)
14184 ("r-preprocesscore" ,r-preprocesscore)
14185 ("r-rngtools" ,r-rngtools)
14186 ("r-scales" ,r-scales)
14187 ("r-stringr" ,r-stringr)
14188 ("r-xbioc" ,r-xbioc)))
14189 (home-page "https://github.com/shenorrLab/bseqsc")
14190 (synopsis "Deconvolution of bulk sequencing experiments using single cell data")
14191 (description "BSeq-sc is a bioinformatics analysis pipeline that
14192 leverages single-cell sequencing data to estimate cell type proportion and
14193 cell type-specific gene expression differences from RNA-seq data from bulk
14194 tissue samples. This is a companion package to the publication \"A
14195 single-cell transcriptomic map of the human and mouse pancreas reveals inter-
14196 and intra-cell population structure.\" Baron et al. Cell Systems (2016)
14197 @url{https://www.ncbi.nlm.nih.gov/pubmed/27667365}.")
14198 (license license:gpl2+))))
14199
14200 (define-public porechop
14201 ;; The recommended way to install is to clone the git repository
14202 ;; https://github.com/rrwick/Porechop#installation
14203 (let ((commit "289d5dca4a5fc327f97b3f8cecb68ecaf1014861")
14204 (revision "1"))
14205 (package
14206 (name "porechop")
14207 (version (git-version "0.2.3" revision commit))
14208 (source
14209 (origin
14210 (method git-fetch)
14211 (uri (git-reference
14212 (url "https://github.com/rrwick/Porechop.git")
14213 (commit commit)))
14214 (file-name (git-file-name name version))
14215 (sha256
14216 (base32 "05ps43gig0d3ia9x5lj84lb00hbsl6ba9n7y7jz927npxbr2ym23"))))
14217 (build-system python-build-system)
14218 (home-page "https://github.com/rrwick/porechop")
14219 (synopsis "Finding, trimming or splitting adapters, in Oxford Nanopore reads")
14220 (description
14221 "The porechop package is a tool for finding and removing adapters from Oxford
14222 Nanopore reads. Adapters on the ends of reads are trimmed off, and when a read
14223 has an adapter in its middle, it is treated as chimeric and chopped into
14224 separate reads. Porechop performs thorough alignments to effectively find
14225 adapters, even at low sequence identity. Porechop also supports demultiplexing
14226 of Nanopore reads that were barcoded with the Native Barcoding Kit, PCR
14227 Barcoding Kit or Rapid Barcoding Kit.")
14228 (license license:gpl3+))))
14229
14230 (define-public poretools
14231 ;; The latest release was in 2016 and the latest commit is from 2017
14232 ;; the recommended way to install is to clone the git repository
14233 ;; https://poretools.readthedocs.io/en/latest/content/installation.html
14234 (let ((commit "e426b1f09e86ac259a00c261c79df91510777407")
14235 (revision "1"))
14236 (package
14237 (name "poretools")
14238 (version (git-version "0.6.0" revision commit))
14239 (source
14240 (origin
14241 (method git-fetch)
14242 (uri (git-reference
14243 (url "https://github.com/arq5x/poretools.git")
14244 (commit commit)))
14245 (file-name (git-file-name name version))
14246 (sha256
14247 (base32 "0bglj833wxpp3cq430p1d3xp085ls221js2y90w7ir2x5ay8l7am"))))
14248 (build-system python-build-system)
14249 ;; requires python >=2.7, <3.0, and the same for python dependencies
14250 (arguments `(#:python ,python-2))
14251 (inputs
14252 `(("hdf5" ,hdf5)))
14253 (propagated-inputs
14254 `(("python-dateutil" ,python2-dateutil)
14255 ("python-h5py" ,python2-h5py)
14256 ("python-matplotlib" ,python2-matplotlib)
14257 ("python-pandas" ,python2-pandas)
14258 ("python-seaborn" ,python2-seaborn)))
14259 (home-page "https://poretools.readthedocs.io")
14260 (synopsis "Toolkit for working with nanopore sequencing data")
14261 (description
14262 "The MinION from Oxford Nanopore Technologies is a nanopore sequencer.
14263 This @code{poretools} package is a flexible toolkit for exploring datasets
14264 generated by nanopore sequencing devices for the purposes of quality control and
14265 downstream analysis. Poretools operates directly on the native FAST5, a variant
14266 of the Hierarchical Data Format (HDF5) standard.")
14267 (license license:expat))))
14268
14269 (define-public r-absfiltergsea
14270 (package
14271 (name "r-absfiltergsea")
14272 (version "1.5.1")
14273 (source
14274 (origin
14275 (method url-fetch)
14276 (uri (cran-uri "AbsFilterGSEA" version))
14277 (sha256
14278 (base32 "15srxkxsvn38kd5frdrwfdf0ad8gskrd0h01wmdf9hglq8fjrp7w"))))
14279 (properties `((upstream-name . "AbsFilterGSEA")))
14280 (build-system r-build-system)
14281 (propagated-inputs
14282 `(("r-biobase" ,r-biobase)
14283 ("r-deseq" ,r-deseq)
14284 ("r-limma" ,r-limma)
14285 ("r-rcpp" ,r-rcpp)
14286 ("r-rcpparmadillo" ,r-rcpparmadillo)))
14287 (home-page "https://cran.r-project.org/web/packages/AbsFilterGSEA/")
14288 (synopsis "Improved false positive control of gene-permuting with absolute filtering")
14289 (description
14290 "This package provides a function that performs gene-permuting of a gene-set
14291 enrichment analysis (GSEA) calculation with or without the absolute filtering.
14292 Without filtering, users can perform (original) two-tailed or one-tailed
14293 absolute GSEA.")
14294 (license license:gpl2)))
14295
14296 (define-public jamm
14297 (package
14298 (name "jamm")
14299 (version "1.0.7.6")
14300 (source
14301 (origin
14302 (method git-fetch)
14303 (uri (git-reference
14304 (url "https://github.com/mahmoudibrahim/JAMM.git")
14305 (commit (string-append "JAMMv" version))))
14306 (file-name (git-file-name name version))
14307 (sha256
14308 (base32
14309 "0bsa5mf9n9q5jz7mmacrra41l7r8rac5vgsn6wv1fb52ya58b970"))))
14310 (build-system gnu-build-system)
14311 (arguments
14312 `(#:tests? #f ; there are none
14313 #:phases
14314 (modify-phases %standard-phases
14315 (delete 'configure)
14316 (delete 'build)
14317 (replace 'install
14318 (lambda* (#:key inputs outputs #:allow-other-keys)
14319 (let* ((out (assoc-ref outputs "out"))
14320 (libexec (string-append out "/libexec/jamm"))
14321 (bin (string-append out "/bin")))
14322 (substitute* '("JAMM.sh"
14323 "SignalGenerator.sh")
14324 (("^sPath=.*")
14325 (string-append "sPath=\"" libexec "\"\n")))
14326 (for-each (lambda (file)
14327 (install-file file libexec))
14328 (list "bincalculator.r"
14329 "peakfinder.r"
14330 "peakhelper.r"
14331 "signalmaker.r"
14332 "xcorr.r"
14333 "xcorrhelper.r"
14334 ;; Perl scripts
14335 "peakfilter.pl"
14336 "readshifter.pl"))
14337
14338 (for-each
14339 (lambda (script)
14340 (chmod script #o555)
14341 (install-file script bin)
14342 (wrap-program (string-append bin "/" script)
14343 `("PATH" ":" prefix
14344 (,(string-append (assoc-ref inputs "coreutils") "/bin")
14345 ,(string-append (assoc-ref inputs "gawk") "/bin")
14346 ,(string-append (assoc-ref inputs "perl") "/bin")
14347 ,(string-append (assoc-ref inputs "r-minimal") "/bin")))
14348 `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB")))
14349 `("R_LIBS_SITE" ":" prefix (,(getenv "R_LIBS_SITE")))))
14350 (list "JAMM.sh" "SignalGenerator.sh")))
14351 #t)))))
14352 (inputs
14353 `(("bash" ,bash)
14354 ("coreutils" ,coreutils)
14355 ("gawk" ,gawk)
14356 ("perl" ,perl)
14357 ("r-minimal" ,r-minimal)
14358 ;;("r-parallel" ,r-parallel)
14359 ("r-signal" ,r-signal)
14360 ("r-mclust" ,r-mclust)))
14361 (home-page "https://github.com/mahmoudibrahim/JAMM")
14362 (synopsis "Peak finder for NGS datasets")
14363 (description
14364 "JAMM is a peak finder for next generation sequencing datasets (ChIP-Seq,
14365 ATAC-Seq, DNase-Seq, etc.) that can integrate replicates and assign peak
14366 boundaries accurately. JAMM is applicable to both broad and narrow
14367 datasets.")
14368 (license license:gpl3+)))
14369
14370 (define-public ngless
14371 (package
14372 (name "ngless")
14373 (version "1.1.0")
14374 (source
14375 (origin
14376 (method git-fetch)
14377 (uri (git-reference
14378 (url "https://gitlab.com/ngless/ngless.git")
14379 (commit (string-append "v" version))))
14380 (file-name (git-file-name name version))
14381 (sha256
14382 (base32
14383 "1wim8wpqyff080dfcazynrmjwqas38m24m0v350w245mmhrapdma"))))
14384 (build-system haskell-build-system)
14385 (arguments
14386 `(#:haddock? #f ; The haddock phase fails with: NGLess/CmdArgs.hs:20:1:
14387 ; error: parse error on input import
14388 ; import Options.Applicative
14389 #:phases
14390 (modify-phases %standard-phases
14391 (add-after 'unpack 'create-Versions.hs
14392 (lambda _
14393 (substitute* "Makefile"
14394 (("BWA_VERSION = .*")
14395 (string-append "BWA_VERSION = "
14396 ,(package-version bwa) "\n"))
14397 (("SAM_VERSION = .*")
14398 (string-append "SAM_VERSION = "
14399 ,(package-version samtools) "\n"))
14400 (("PRODIGAL_VERSION = .*")
14401 (string-append "PRODIGAL_VERSION = "
14402 ,(package-version prodigal) "\n"))
14403 (("MINIMAP2_VERSION = .*")
14404 (string-append "MINIMAP2_VERSION = "
14405 ,(package-version minimap2) "\n")))
14406 (invoke "make" "NGLess/Dependencies/Versions.hs")
14407 #t))
14408 (add-after 'create-Versions.hs 'create-cabal-file
14409 (lambda _ (invoke "hpack") #t))
14410 ;; These tools are expected to be installed alongside ngless.
14411 (add-after 'install 'link-tools
14412 (lambda* (#:key inputs outputs #:allow-other-keys)
14413 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
14414 (symlink (string-append (assoc-ref inputs "prodigal")
14415 "/bin/prodigal")
14416 (string-append bin "ngless-" ,version "-prodigal"))
14417 (symlink (string-append (assoc-ref inputs "minimap2")
14418 "/bin/minimap2")
14419 (string-append bin "ngless-" ,version "-minimap2"))
14420 (symlink (string-append (assoc-ref inputs "samtools")
14421 "/bin/samtools")
14422 (string-append bin "ngless-" ,version "-samtools"))
14423 (symlink (string-append (assoc-ref inputs "bwa")
14424 "/bin/bwa")
14425 (string-append bin "ngless-" ,version "-bwa"))
14426 #t))))))
14427 (inputs
14428 `(("prodigal" ,prodigal)
14429 ("bwa" ,bwa)
14430 ("samtools" ,samtools)
14431 ("minimap2" ,minimap2)
14432 ("ghc-aeson" ,ghc-aeson)
14433 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
14434 ("ghc-async" ,ghc-async)
14435 ("ghc-atomic-write" ,ghc-atomic-write)
14436 ("ghc-bytestring-lexing" ,ghc-bytestring-lexing)
14437 ("ghc-conduit" ,ghc-conduit)
14438 ("ghc-conduit-algorithms" ,ghc-conduit-algorithms)
14439 ("ghc-conduit-extra" ,ghc-conduit-extra)
14440 ("ghc-configurator" ,ghc-configurator)
14441 ("ghc-convertible" ,ghc-convertible)
14442 ("ghc-data-default" ,ghc-data-default)
14443 ("ghc-diagrams-core" ,ghc-diagrams-core)
14444 ("ghc-diagrams-lib" ,ghc-diagrams-lib)
14445 ("ghc-diagrams-svg" ,ghc-diagrams-svg)
14446 ("ghc-double-conversion" ,ghc-double-conversion)
14447 ("ghc-edit-distance" ,ghc-edit-distance)
14448 ("ghc-either" ,ghc-either)
14449 ("ghc-errors" ,ghc-errors)
14450 ("ghc-extra" ,ghc-extra)
14451 ("ghc-filemanip" ,ghc-filemanip)
14452 ("ghc-file-embed" ,ghc-file-embed)
14453 ("ghc-gitrev" ,ghc-gitrev)
14454 ("ghc-hashtables" ,ghc-hashtables)
14455 ("ghc-http-conduit" ,ghc-http-conduit)
14456 ("ghc-inline-c" ,ghc-inline-c)
14457 ("ghc-inline-c-cpp" ,ghc-inline-c-cpp)
14458 ("ghc-intervalmap" ,ghc-intervalmap)
14459 ("ghc-missingh" ,ghc-missingh)
14460 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
14461 ("ghc-regex" ,ghc-regex)
14462 ("ghc-safe" ,ghc-safe)
14463 ("ghc-safeio" ,ghc-safeio)
14464 ("ghc-strict" ,ghc-strict)
14465 ("ghc-tar" ,ghc-tar)
14466 ("ghc-tar-conduit" ,ghc-tar-conduit)
14467 ("ghc-unliftio" ,ghc-unliftio)
14468 ("ghc-unliftio-core" ,ghc-unliftio-core)
14469 ("ghc-vector" ,ghc-vector)
14470 ("ghc-yaml" ,ghc-yaml)
14471 ("ghc-zlib" ,ghc-zlib)))
14472 (propagated-inputs
14473 `(("r-r6" ,r-r6)
14474 ("r-hdf5r" ,r-hdf5r)
14475 ("r-iterators" ,r-iterators)
14476 ("r-itertools" ,r-itertools)
14477 ("r-matrix" ,r-matrix)))
14478 (native-inputs
14479 `(("ghc-hpack" ,ghc-hpack)
14480 ("ghc-quickcheck" ,ghc-quickcheck)
14481 ("ghc-test-framework" ,ghc-test-framework)
14482 ("ghc-test-framework-hunit",ghc-test-framework-hunit)
14483 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
14484 ("ghc-test-framework-th" ,ghc-test-framework-th)))
14485 (home-page "https://gitlab.com/ngless/ngless")
14486 (synopsis "DSL for processing next-generation sequencing data")
14487 (description "Ngless is a domain-specific language for
14488 @dfn{next-generation sequencing} (NGS) data processing.")
14489 (license license:expat)))
14490
14491 (define-public filtlong
14492 ;; The recommended way to install is to clone the git repository
14493 ;; https://github.com/rrwick/Filtlong#installation
14494 ;; and the lastest release is more than nine months old
14495 (let ((commit "d1bb46dfe8bc7efe6257b5ce222c04bfe8aedaab")
14496 (revision "1"))
14497 (package
14498 (name "filtlong")
14499 (version (git-version "0.2.0" revision commit))
14500 (source
14501 (origin
14502 (method git-fetch)
14503 (uri (git-reference
14504 (url "https://github.com/rrwick/Filtlong.git")
14505 (commit commit)))
14506 (file-name (git-file-name name version))
14507 (sha256
14508 (base32 "1xr92r820x8qlkcr3b57iw223yq8vjgyi42jr79w2xgw47qzr575"))))
14509 (build-system gnu-build-system)
14510 (arguments
14511 `(#:tests? #f ; no check target
14512 #:phases
14513 (modify-phases %standard-phases
14514 (delete 'configure)
14515 (replace 'install
14516 (lambda* (#:key outputs #:allow-other-keys)
14517 (let* ((out (assoc-ref outputs "out"))
14518 (bin (string-append out "/bin"))
14519 (scripts (string-append out "/share/filtlong/scripts")))
14520 (install-file "bin/filtlong" bin)
14521 (install-file "scripts/histogram.py" scripts)
14522 (install-file "scripts/read_info_histograms.sh" scripts))
14523 #t))
14524 (add-after 'install 'wrap-program
14525 (lambda* (#:key inputs outputs #:allow-other-keys)
14526 (let* ((out (assoc-ref outputs "out"))
14527 (path (getenv "PYTHONPATH")))
14528 (wrap-program (string-append out
14529 "/share/filtlong/scripts/histogram.py")
14530 `("PYTHONPATH" ":" prefix (,path))))
14531 #t))
14532 (add-before 'check 'patch-tests
14533 (lambda _
14534 (substitute* "scripts/read_info_histograms.sh"
14535 (("awk") (which "gawk")))
14536 #t)))))
14537 (inputs
14538 `(("gawk" ,gawk) ;for read_info_histograms.sh
14539 ("python" ,python-2) ;required for histogram.py
14540 ("zlib" ,zlib)))
14541 (home-page "https://github.com/rrwick/Filtlong/")
14542 (synopsis "Tool for quality filtering of Nanopore and PacBio data")
14543 (description
14544 "The Filtlong package is a tool for filtering long reads by quality.
14545 It can take a set of long reads and produce a smaller, better subset. It uses
14546 both read length (longer is better) and read identity (higher is better) when
14547 choosing which reads pass the filter.")
14548 (license (list license:gpl3 ;filtlong
14549 license:asl2.0))))) ;histogram.py
14550
14551 (define-public nanopolish
14552 ;; The recommended way to install is to clone the git repository
14553 ;; <https://github.com/jts/nanopolish#installing-a-particular-release>.
14554 ;; Also, the differences between release and current version seem to be
14555 ;; significant.
14556 (let ((commit "6331dc4f15b9dfabb954ba3fae9d76b6c3ca6377")
14557 (revision "1"))
14558 (package
14559 (name "nanopolish")
14560 (version (git-version "0.11.1" revision commit))
14561 (source
14562 (origin
14563 (method git-fetch)
14564 (uri (git-reference
14565 (url "https://github.com/jts/nanopolish.git")
14566 (commit commit)
14567 (recursive? #t)))
14568 (file-name (git-file-name name version))
14569 (sha256
14570 (base32 "15ikl3d37y49pwd7vx36xksgsqajhf24q7qqsnpl15dqqyy5qgbc"))
14571 (modules '((guix build utils)))
14572 (snippet
14573 '(begin
14574 (delete-file-recursively "htslib")
14575 #t))))
14576 (build-system gnu-build-system)
14577 (arguments
14578 `(#:make-flags
14579 `("HDF5=noinstall" "EIGEN=noinstall" "HTS=noinstall" "CC=gcc")
14580 #:tests? #f ; no check target
14581 #:phases
14582 (modify-phases %standard-phases
14583 (add-after 'unpack 'find-eigen
14584 (lambda* (#:key inputs #:allow-other-keys)
14585 (setenv "CPATH"
14586 (string-append (assoc-ref inputs "eigen")
14587 "/include/eigen3:"
14588 (or (getenv "CPATH") "")))
14589 #t))
14590 (delete 'configure)
14591 (replace 'install
14592 (lambda* (#:key outputs #:allow-other-keys)
14593 (let* ((out (assoc-ref outputs "out"))
14594 (bin (string-append out "/bin"))
14595 (scripts (string-append out "/share/nanopolish/scripts")))
14596
14597 (install-file "nanopolish" bin)
14598 (for-each (lambda (file) (install-file file scripts))
14599 (find-files "scripts" ".*"))
14600 #t)))
14601 (add-after 'install 'wrap-programs
14602 (lambda* (#:key outputs #:allow-other-keys)
14603 (for-each (lambda (file)
14604 (wrap-program file `("PYTHONPATH" ":" prefix (,path))))
14605 (find-files "/share/nanopolish/scripts" "\\.py"))
14606 (for-each (lambda (file)
14607 (wrap-program file `("PERL5LIB" ":" prefix (,path))))
14608 (find-files "/share/nanopolish/scripts" "\\.pl"))
14609 #t)))))
14610 (inputs
14611 `(("eigen" ,eigen)
14612 ("hdf5" ,hdf5)
14613 ("htslib" ,htslib)
14614 ("perl" ,perl)
14615 ("python" ,python-wrapper)
14616 ("python-biopython" ,python-biopython)
14617 ("python-numpy" ,python-numpy)
14618 ("python-pysam" ,python-pysam)
14619 ("python-scikit-learn" , python-scikit-learn)
14620 ("python-scipy" ,python-scipy)
14621 ("zlib" ,zlib)))
14622 (home-page "https://github.com/jts/nanopolish")
14623 (synopsis "Signal-level analysis of Oxford Nanopore sequencing data")
14624 (description
14625 "This package analyses the Oxford Nanopore sequencing data at signal-level.
14626 Nanopolish can calculate an improved consensus sequence for a draft genome
14627 assembly, detect base modifications, call SNPs (Single nucleotide
14628 polymorphisms) and indels with respect to a reference genome and more.")
14629 (license license:expat))))
14630
14631 (define-public cnvkit
14632 (package
14633 (name "cnvkit")
14634 (version "0.9.5")
14635 (source
14636 (origin
14637 (method git-fetch)
14638 (uri (git-reference
14639 (url "https://github.com/etal/cnvkit.git")
14640 (commit (string-append "v" version))))
14641 (file-name (git-file-name name version))
14642 (sha256
14643 (base32 "0g2f78k68yglmj4fsfmgs8idqv3di9aj53fg0ld0hqljg8chhh82"))))
14644 (build-system python-build-system)
14645 (propagated-inputs
14646 `(("python-biopython" ,python-biopython)
14647 ("python-future" ,python-future)
14648 ("python-matplotlib" ,python-matplotlib)
14649 ("python-numpy" ,python-numpy)
14650 ("python-reportlab" ,python-reportlab)
14651 ("python-pandas" ,python-pandas)
14652 ("python-pysam" ,python-pysam)
14653 ("python-pyfaidx" ,python-pyfaidx)
14654 ("python-scipy" ,python-scipy)
14655 ;; R packages
14656 ("r-dnacopy" ,r-dnacopy)))
14657 (home-page "https://cnvkit.readthedocs.org/")
14658 (synopsis "Copy number variant detection from targeted DNA sequencing")
14659 (description
14660 "CNVkit is a Python library and command-line software toolkit to infer
14661 and visualize copy number from high-throughput DNA sequencing data. It is
14662 designed for use with hybrid capture, including both whole-exome and custom
14663 target panels, and short-read sequencing platforms such as Illumina and Ion
14664 Torrent.")
14665 (license license:asl2.0)))
14666
14667 (define-public python-pyfit-sne
14668 (package
14669 (name "python-pyfit-sne")
14670 (version "1.0.1")
14671 (source
14672 (origin
14673 (method git-fetch)
14674 (uri (git-reference
14675 (url "https://github.com/KlugerLab/pyFIt-SNE.git")
14676 (commit version)))
14677 (file-name (git-file-name name version))
14678 (sha256
14679 (base32 "13wh3qkzs56azmmgnxib6xfr29g7xh09sxylzjpni5j0pp0rc5qw"))))
14680 (build-system python-build-system)
14681 (propagated-inputs
14682 `(("python-numpy" ,python-numpy)))
14683 (inputs
14684 `(("fftw" ,fftw)))
14685 (native-inputs
14686 `(("python-cython" ,python-cython)))
14687 (home-page "https://github.com/KlugerLab/pyFIt-SNE")
14688 (synopsis "FFT-accelerated Interpolation-based t-SNE")
14689 (description
14690 "t-Stochastic Neighborhood Embedding (t-SNE) is a highly successful
14691 method for dimensionality reduction and visualization of high dimensional
14692 datasets. A popular implementation of t-SNE uses the Barnes-Hut algorithm to
14693 approximate the gradient at each iteration of gradient descent. This package
14694 is a Cython wrapper for FIt-SNE.")
14695 (license license:bsd-4)))
14696
14697 (define-public bbmap
14698 (package
14699 (name "bbmap")
14700 (version "35.82")
14701 (source (origin
14702 (method url-fetch)
14703 (uri (string-append
14704 "mirror://sourceforge/bbmap/BBMap_" version ".tar.gz"))
14705 (sha256
14706 (base32
14707 "1q4rfhxcb6z3gm8zg2davjz98w22lkf4hm9ikxz9kdl93pil3wkd"))))
14708 (build-system ant-build-system)
14709 (arguments
14710 `(#:build-target "dist"
14711 #:tests? #f ; there are none
14712 #:make-flags
14713 (list (string-append "-Dmpijar="
14714 (assoc-ref %build-inputs "java-openmpi")
14715 "/lib/mpi.jar"))
14716 #:modules ((guix build ant-build-system)
14717 (guix build utils)
14718 (guix build java-utils))
14719 #:phases
14720 (modify-phases %standard-phases
14721 (add-after 'build 'build-jni-library
14722 (lambda _
14723 (with-directory-excursion "jni"
14724 (invoke "make" "-f" "makefile.linux"))))
14725 ;; There is no install target
14726 (replace 'install (install-jars "dist"))
14727 (add-after 'install 'install-scripts-and-documentation
14728 (lambda* (#:key outputs #:allow-other-keys)
14729 (substitute* "calcmem.sh"
14730 (("\\| awk ") (string-append "| " (which "awk") " ")))
14731 (let* ((scripts (find-files "." "\\.sh$"))
14732 (out (assoc-ref outputs "out"))
14733 (bin (string-append out "/bin"))
14734 (doc (string-append out "/share/doc/bbmap"))
14735 (jni (string-append out "/lib/jni")))
14736 (substitute* scripts
14737 (("\\$DIR\"\"docs") doc)
14738 (("^CP=.*")
14739 (string-append "CP=" out "/share/java/BBTools.jar\n"))
14740 (("^NATIVELIBDIR.*")
14741 (string-append "NATIVELIBDIR=" jni "\n"))
14742 (("CMD=\"java")
14743 (string-append "CMD=\"" (which "java"))))
14744 (for-each (lambda (script) (install-file script bin)) scripts)
14745
14746 ;; Install JNI library
14747 (install-file "jni/libbbtoolsjni.so" jni)
14748
14749 ;; Install documentation
14750 (install-file "docs/readme.txt" doc)
14751 (copy-recursively "docs/guides" doc))
14752 #t)))
14753 #:jdk ,openjdk11))
14754 (inputs
14755 `(("gawk" ,gawk)
14756 ("java-eclipse-jdt-core" ,java-eclipse-jdt-core)
14757 ("java-eclipse-jdt-compiler-apt" ,java-eclipse-jdt-compiler-apt)
14758 ("java-openmpi" ,java-openmpi)))
14759 (home-page "https://sourceforge.net/projects/bbmap/")
14760 (synopsis "Aligner and other tools for short sequencing reads")
14761 (description
14762 "This package provides bioinformatic tools to align, deduplicate,
14763 reformat, filter and normalize DNA and RNA-seq data. It includes the
14764 following tools: BBMap, a short read aligner for DNA and RNA-seq data; BBNorm,
14765 a kmer-based error-correction and normalization tool; Dedupe, a tool to
14766 simplify assemblies by removing duplicate or contained subsequences that share
14767 a target percent identity; Reformat, to convert reads between
14768 fasta/fastq/scarf/fasta+qual/sam, interleaved/paired, and ASCII-33/64, at over
14769 500 MB/s; and BBDuk, a tool to filter, trim, or mask reads with kmer matches
14770 to an artifact/contaminant file.")
14771 (license license:bsd-3)))
14772
14773 (define-public velvet
14774 (package
14775 (name "velvet")
14776 (version "1.2.10")
14777 (source (origin
14778 (method url-fetch)
14779 (uri (string-append "https://www.ebi.ac.uk/~zerbino/velvet/"
14780 "velvet_" version ".tgz"))
14781 (sha256
14782 (base32
14783 "0h3njwy66p6bx14r3ar1byb0ccaxmxka4c65rn4iybyiqa4d8kc8"))
14784 ;; Delete bundled libraries
14785 (modules '((guix build utils)))
14786 (snippet
14787 '(begin
14788 (delete-file "Manual.pdf")
14789 (delete-file-recursively "third-party")
14790 #t))))
14791 (build-system gnu-build-system)
14792 (arguments
14793 `(#:make-flags '("OPENMP=t")
14794 #:test-target "test"
14795 #:phases
14796 (modify-phases %standard-phases
14797 (delete 'configure)
14798 (add-after 'unpack 'fix-zlib-include
14799 (lambda _
14800 (substitute* "src/binarySequences.c"
14801 (("../third-party/zlib-1.2.3/zlib.h") "zlib.h"))
14802 #t))
14803 (replace 'install
14804 (lambda* (#:key outputs #:allow-other-keys)
14805 (let* ((out (assoc-ref outputs "out"))
14806 (bin (string-append out "/bin"))
14807 (doc (string-append out "/share/doc/velvet")))
14808 (mkdir-p bin)
14809 (mkdir-p doc)
14810 (install-file "velveth" bin)
14811 (install-file "velvetg" bin)
14812 (install-file "Manual.pdf" doc)
14813 (install-file "Columbus_manual.pdf" doc)
14814 #t))))))
14815 (inputs
14816 `(("openmpi" ,openmpi)
14817 ("zlib" ,zlib)))
14818 (native-inputs
14819 `(("texlive" ,(texlive-union (list texlive-latex-graphics
14820 texlive-latex-hyperref)))))
14821 (home-page "https://www.ebi.ac.uk/~zerbino/velvet/")
14822 (synopsis "Nucleic acid sequence assembler for very short reads")
14823 (description
14824 "Velvet is a de novo genomic assembler specially designed for short read
14825 sequencing technologies, such as Solexa or 454. Velvet currently takes in
14826 short read sequences, removes errors then produces high quality unique
14827 contigs. It then uses paired read information, if available, to retrieve the
14828 repeated areas between contigs.")
14829 (license license:gpl2+)))
14830
14831 (define-public python-velocyto
14832 (package
14833 (name "python-velocyto")
14834 (version "0.17.17")
14835 (source
14836 (origin
14837 (method url-fetch)
14838 (uri (pypi-uri "velocyto" version))
14839 (sha256
14840 (base32
14841 "0fgygyzqgrq32dv6a00biq1p1cwi6kbl5iqblxq1kklj6b2mzmhs"))))
14842 (build-system python-build-system)
14843 (native-inputs
14844 `(("python-joblib" ,python-joblib)))
14845 (propagated-inputs
14846 `(("python-click" ,python-click)
14847 ("python-cython" ,python-cython)
14848 ("python-h5py" ,python-h5py)
14849 ("python-loompy" ,python-loompy)
14850 ("python-matplotlib" ,python-matplotlib)
14851 ("python-numba" ,python-numba)
14852 ("python-numpy" ,python-numpy)
14853 ("python-pandas" ,python-pandas)
14854 ("python-pysam" ,python-pysam)
14855 ("python-scikit-learn" ,python-scikit-learn)
14856 ("python-scipy" ,python-scipy)))
14857 (home-page "https://github.com/velocyto-team/velocyto.py")
14858 (synopsis "RNA velocity analysis for single cell RNA-seq data")
14859 (description
14860 "Velocyto is a library for the analysis of RNA velocity. Velocyto
14861 includes a command line tool and an analysis pipeline.")
14862 (license license:bsd-2)))
14863
14864 (define-public arriba
14865 (package
14866 (name "arriba")
14867 (version "1.0.1")
14868 (source
14869 (origin
14870 (method url-fetch)
14871 (uri (string-append "https://github.com/suhrig/arriba/releases/"
14872 "download/v" version "/arriba_v" version ".tar.gz"))
14873 (sha256
14874 (base32
14875 "0jx9656ry766vb8z08m1c3im87b0c82qpnjby9wz4kcz8vn87dx2"))))
14876 (build-system gnu-build-system)
14877 (arguments
14878 `(#:tests? #f ; there are none
14879 #:phases
14880 (modify-phases %standard-phases
14881 (replace 'configure
14882 (lambda* (#:key inputs #:allow-other-keys)
14883 (let ((htslib (assoc-ref inputs "htslib")))
14884 (substitute* "Makefile"
14885 (("-I\\$\\(HTSLIB\\)/htslib")
14886 (string-append "-I" htslib "/include/htslib"))
14887 ((" \\$\\(HTSLIB\\)/libhts.a")
14888 (string-append " " htslib "/lib/libhts.so"))))
14889 (substitute* "run_arriba.sh"
14890 (("^STAR ") (string-append (which "STAR") " "))
14891 (("samtools --version-only")
14892 (string-append (which "samtools") " --version-only"))
14893 (("samtools index")
14894 (string-append (which "samtools") " index"))
14895 (("samtools sort")
14896 (string-append (which "samtools") " sort")))
14897 #t))
14898 (replace 'install
14899 (lambda* (#:key outputs #:allow-other-keys)
14900 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
14901 (install-file "arriba" bin)
14902 (install-file "run_arriba.sh" bin)
14903 (install-file "draw_fusions.R" bin)
14904 (wrap-program (string-append bin "/draw_fusions.R")
14905 `("R_LIBS_SITE" ":" prefix (,(getenv "R_LIBS_SITE")))))
14906 #t)))))
14907 (inputs
14908 `(("htslib" ,htslib)
14909 ("r-minimal" ,r-minimal)
14910 ("r-circlize" ,r-circlize)
14911 ("r-genomicalignments" ,r-genomicalignments)
14912 ("r-genomicranges" ,r-genomicranges)
14913 ("samtools" ,samtools)
14914 ("star" ,star)
14915 ("zlib" ,zlib)))
14916 (home-page "https://github.com/suhrig/arriba")
14917 (synopsis "Gene fusion detection from RNA-Seq data ")
14918 (description
14919 "Arriba is a command-line tool for the detection of gene fusions from
14920 RNA-Seq data. It was developed for the use in a clinical research setting.
14921 Therefore, short runtimes and high sensitivity were important design criteria.
14922 It is based on the fast STAR aligner and the post-alignment runtime is
14923 typically just around two minutes. In contrast to many other fusion detection
14924 tools which build on STAR, Arriba does not require to reduce the
14925 @code{alignIntronMax} parameter of STAR to detect small deletions.")
14926 ;; All code is under the Expat license with the exception of
14927 ;; "draw_fusions.R", which is under GPLv3.
14928 (license (list license:expat license:gpl3))))
14929
14930 (define-public adapterremoval
14931 (package
14932 (name "adapterremoval")
14933 (version "2.3.0")
14934 (source
14935 (origin
14936 (method git-fetch)
14937 (uri (git-reference
14938 (url "https://github.com/MikkelSchubert/adapterremoval.git")
14939 (commit (string-append "v" version))))
14940 (file-name (git-file-name name version))
14941 (sha256
14942 (base32
14943 "1nf3ki5pfzalhrx2fr1y6pfqfi133yj2m7q4fj9irf5fb94bapwr"))))
14944 (build-system gnu-build-system)
14945 (arguments
14946 `(#:make-flags (list "COLOR_BUILD=no"
14947 (string-append "PREFIX="
14948 (assoc-ref %outputs "out")))
14949 #:test-target "test"
14950 #:phases
14951 (modify-phases %standard-phases
14952 (delete 'configure))))
14953 (inputs
14954 `(("zlib" ,zlib)))
14955 (home-page "https://adapterremoval.readthedocs.io/")
14956 (synopsis "Rapid sequence adapter trimming, identification, and read merging")
14957 (description
14958 "This program searches for and removes remnant adapter sequences from
14959 @dfn{High-Throughput Sequencing} (HTS) data and (optionally) trims low quality
14960 bases from the 3' end of reads following adapter removal. AdapterRemoval can
14961 analyze both single end and paired end data, and can be used to merge
14962 overlapping paired-ended reads into (longer) consensus sequences.
14963 Additionally, the AdapterRemoval may be used to recover a consensus adapter
14964 sequence for paired-ended data, for which this information is not available.")
14965 (license license:gpl3+)))
14966
14967 (define-public pplacer
14968 (let ((commit "807f6f3"))
14969 (package
14970 (name "pplacer")
14971 ;; The commit should be updated with each version change.
14972 (version "1.1.alpha19")
14973 (source
14974 (origin
14975 (method git-fetch)
14976 (uri (git-reference
14977 (url "https://github.com/matsen/pplacer.git")
14978 (commit (string-append "v" version))))
14979 (file-name (git-file-name name version))
14980 (sha256
14981 (base32 "11ppbbbx20p2g9wj3ff64dhnarb12q79v7qh4rk0gj6lkbz4n7cn"))))
14982 (build-system ocaml-build-system)
14983 (arguments
14984 `(#:modules ((guix build ocaml-build-system)
14985 (guix build utils)
14986 (ice-9 ftw))
14987 #:phases
14988 (modify-phases %standard-phases
14989 (delete 'configure)
14990 (add-after 'unpack 'fix-build-with-latest-ocaml
14991 (lambda _
14992 (substitute* "myocamlbuild.ml"
14993 (("dep \\[\"c_pam\"\\]" m)
14994 (string-append "flag [\"ocaml\"; \"compile\"] (A \"-unsafe-string\");\n"
14995 m))
14996 (("let run_and_read" m)
14997 (string-append "
14998 let split s ch =
14999 let x = ref [] in
15000 let rec go s =
15001 let pos = String.index s ch in
15002 x := (String.before s pos)::!x;
15003 go (String.after s (pos + 1))
15004 in
15005 try go s
15006 with Not_found -> !x
15007 let split_nl s = split s '\\n'
15008 let before_space s =
15009 try String.before s (String.index s ' ')
15010 with Not_found -> s
15011
15012 " m))
15013 (("run_and_read \"ocamlfind list \\| cut -d' ' -f1\"" m)
15014 (string-append "List.map before_space (split_nl & " m ")"))
15015 ((" blank_sep_strings &") "")
15016 ((" Lexing.from_string &") ""))
15017 #t))
15018 (add-after 'unpack 'replace-bundled-cddlib
15019 (lambda* (#:key inputs #:allow-other-keys)
15020 (let* ((cddlib-src (assoc-ref inputs "cddlib-src"))
15021 (local-dir "cddlib_guix"))
15022 (mkdir local-dir)
15023 (with-directory-excursion local-dir
15024 (invoke "tar" "xvf" cddlib-src))
15025 (let ((cddlib-src-folder
15026 (string-append local-dir "/"
15027 (list-ref (scandir local-dir) 2)
15028 "/lib-src")))
15029 (for-each make-file-writable (find-files "cdd_src" ".*"))
15030 (for-each
15031 (lambda (file)
15032 (copy-file file
15033 (string-append "cdd_src/" (basename file))))
15034 (find-files cddlib-src-folder ".*[ch]$")))
15035 #t)))
15036 (add-after 'unpack 'fix-makefile
15037 (lambda _
15038 ;; Remove system calls to 'git'.
15039 (substitute* "Makefile"
15040 (("^DESCRIPT:=pplacer-.*")
15041 (string-append
15042 "DESCRIPT:=pplacer-$(shell uname)-v" ,version "\n")))
15043 (substitute* "myocamlbuild.ml"
15044 (("git describe --tags --long .*\\\" with")
15045 (string-append
15046 "echo -n v" ,version "-" ,commit "\" with")))
15047 #t))
15048 (replace 'install
15049 (lambda* (#:key outputs #:allow-other-keys)
15050 (let* ((out (assoc-ref outputs "out"))
15051 (bin (string-append out "/bin")))
15052 (copy-recursively "bin" bin))
15053 #t)))
15054 #:ocaml ,ocaml-4.07
15055 #:findlib ,ocaml4.07-findlib))
15056 (inputs
15057 `(("zlib" ,zlib "static")
15058 ("gsl" ,gsl)
15059 ("ocaml-ounit" ,(package-with-ocaml4.07 ocaml-ounit))
15060 ("ocaml-batteries" ,(package-with-ocaml4.07 ocaml-batteries))
15061 ("ocaml-camlzip" ,(package-with-ocaml4.07 camlzip))
15062 ("ocaml-csv" ,(package-with-ocaml4.07 ocaml-csv))
15063 ("ocaml-sqlite3" ,ocaml4.07-sqlite3)
15064 ("ocaml-xmlm" ,(package-with-ocaml4.07 ocaml-xmlm))
15065 ("ocaml-mcl" ,(package-with-ocaml4.07 ocaml-mcl))
15066 ("ocaml-gsl" ,ocaml4.07-gsl-1)))
15067 (native-inputs
15068 `(("cddlib-src" ,(package-source cddlib))
15069 ("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))
15070 ("pkg-config" ,pkg-config)))
15071 (propagated-inputs
15072 `(("pplacer-scripts" ,pplacer-scripts)))
15073 (synopsis "Phylogenetic placement of biological sequences")
15074 (description
15075 "Pplacer places query sequences on a fixed reference phylogenetic tree
15076 to maximize phylogenetic likelihood or posterior probability according to a
15077 reference alignment. Pplacer is designed to be fast, to give useful
15078 information about uncertainty, and to offer advanced visualization and
15079 downstream analysis.")
15080 (home-page "https://matsen.fhcrc.org/pplacer/")
15081 (license license:gpl3))))
15082
15083 ;; This package is installed alongside 'pplacer'. It is a separate package so
15084 ;; that it can use the python-build-system for the scripts that are
15085 ;; distributed alongside the main OCaml binaries.
15086 (define pplacer-scripts
15087 (package
15088 (inherit pplacer)
15089 (name "pplacer-scripts")
15090 (build-system python-build-system)
15091 (arguments
15092 `(#:python ,python-2
15093 #:phases
15094 (modify-phases %standard-phases
15095 (add-after 'unpack 'enter-scripts-dir
15096 (lambda _ (chdir "scripts") #t))
15097 (replace 'check
15098 (lambda _ (invoke "python" "-m" "unittest" "discover" "-v") #t))
15099 (add-after 'install 'wrap-executables
15100 (lambda* (#:key inputs outputs #:allow-other-keys)
15101 (let* ((out (assoc-ref outputs "out"))
15102 (bin (string-append out "/bin")))
15103 (let ((path (string-append
15104 (assoc-ref inputs "hmmer") "/bin:"
15105 (assoc-ref inputs "infernal") "/bin")))
15106 (display path)
15107 (wrap-program (string-append bin "/refpkg_align.py")
15108 `("PATH" ":" prefix (,path))))
15109 (let ((path (string-append
15110 (assoc-ref inputs "hmmer") "/bin")))
15111 (wrap-program (string-append bin "/hrefpkg_query.py")
15112 `("PATH" ":" prefix (,path)))))
15113 #t)))))
15114 (inputs
15115 `(("infernal" ,infernal)
15116 ("hmmer" ,hmmer)))
15117 (propagated-inputs
15118 `(("python-biopython" ,python2-biopython)
15119 ("taxtastic" ,taxtastic)))
15120 (synopsis "Pplacer Python scripts")))
15121
15122 (define-public python2-checkm-genome
15123 (package
15124 (name "python2-checkm-genome")
15125 (version "1.0.13")
15126 (source
15127 (origin
15128 (method url-fetch)
15129 (uri (pypi-uri "checkm-genome" version))
15130 (sha256
15131 (base32
15132 "0bm8gpxjmzxsxxl8lzwqhgx8g1dlnmp6znz7wv3hgb0gdjbf9dzz"))))
15133 (build-system python-build-system)
15134 (arguments
15135 `(#:python ,python-2
15136 #:tests? #f)) ; some tests are interactive
15137 (propagated-inputs
15138 `(("python-dendropy" ,python2-dendropy)
15139 ("python-matplotlib" ,python2-matplotlib)
15140 ("python-numpy" ,python2-numpy)
15141 ("python-pysam" ,python2-pysam)
15142 ("python-scipy" ,python2-scipy)))
15143 (home-page "https://pypi.org/project/Checkm/")
15144 (synopsis "Assess the quality of putative genome bins")
15145 (description
15146 "CheckM provides a set of tools for assessing the quality of genomes
15147 recovered from isolates, single cells, or metagenomes. It provides robust
15148 estimates of genome completeness and contamination by using collocated sets of
15149 genes that are ubiquitous and single-copy within a phylogenetic lineage.
15150 Assessment of genome quality can also be examined using plots depicting key
15151 genomic characteristics (e.g., GC, coding density) which highlight sequences
15152 outside the expected distributions of a typical genome. CheckM also provides
15153 tools for identifying genome bins that are likely candidates for merging based
15154 on marker set compatibility, similarity in genomic characteristics, and
15155 proximity within a reference genome.")
15156 (license license:gpl3+)))
15157
15158 (define-public umi-tools
15159 (package
15160 (name "umi-tools")
15161 (version "1.0.0")
15162 (source
15163 (origin
15164 (method url-fetch)
15165 (uri (pypi-uri "umi_tools" version))
15166 (sha256
15167 (base32
15168 "08y3vz1vcx09whmbsn722lcs6jl9wyrh9i4p3k8j4cb1i32bij4a"))))
15169 (build-system python-build-system)
15170 (inputs
15171 `(("python-pandas" ,python-pandas)
15172 ("python-future" ,python-future)
15173 ("python-scipy" ,python-scipy)
15174 ("python-matplotlib" ,python-matplotlib)
15175 ("python-regex" ,python-regex)
15176 ("python-pysam" ,python-pysam)))
15177 (native-inputs
15178 `(("python-cython" ,python-cython)))
15179 (home-page "https://github.com/CGATOxford/UMI-tools")
15180 (synopsis "Tools for analyzing unique modular identifiers")
15181 (description "This package provides tools for dealing with @dfn{Unique
15182 Molecular Identifiers} (UMIs) and @dfn{Random Molecular Tags} (RMTs) in
15183 genetic sequences. There are six tools: the @code{extract} and
15184 @code{whitelist} commands are used to prepare a fastq containing UMIs @code{+/-}
15185 cell barcodes for alignment. The remaining commands, @code{group},
15186 @code{dedup}, and @{count}/@code{count_tab}, are used to identify PCR
15187 duplicates using the UMIs and perform different levels of analysis depending
15188 on the needs of the user.")
15189 (license license:expat)))
15190
15191 (define-public ataqv
15192 (package
15193 (name "ataqv")
15194 (version "1.0.0")
15195 (source
15196 (origin
15197 (method git-fetch)
15198 (uri (git-reference
15199 (url "https://github.com/ParkerLab/ataqv.git")
15200 (commit version)))
15201 (file-name (git-file-name name version))
15202 (sha256
15203 (base32
15204 "031xr6jx1aprh26y5b1lv3gzrlmzg4alfl73vvshymx8cq8asrqi"))))
15205 (build-system gnu-build-system)
15206 (arguments
15207 `(#:make-flags
15208 (list (string-append "prefix=" (assoc-ref %outputs "out"))
15209 (string-append "BOOST_ROOT="
15210 (assoc-ref %build-inputs "boost"))
15211 (string-append "HTSLIB_ROOT="
15212 (assoc-ref %build-inputs "htslib")))
15213 #:test-target "test"
15214 #:phases
15215 (modify-phases %standard-phases
15216 (delete 'configure))))
15217 (inputs
15218 `(("boost" ,boost)
15219 ("htslib" ,htslib)
15220 ("ncurses" ,ncurses)
15221 ("zlib" ,zlib)))
15222 (native-inputs
15223 `(("lcov" ,lcov)))
15224 (home-page "https://github.com/ParkerLab/ataqv")
15225 (synopsis "Toolkit for quality control and visualization of ATAC-seq data")
15226 (description "This package provides a toolkit for measuring and comparing
15227 ATAC-seq results. It was written to make it easier to spot differences that
15228 might be caused by ATAC-seq library prep or sequencing. The main program,
15229 @code{ataqv}, examines aligned reads and reports some basic metrics.")
15230 (license license:gpl3+)))
15231
15232 (define-public r-psiplot
15233 (package
15234 (name "r-psiplot")
15235 (version "2.3.0")
15236 (source
15237 (origin
15238 (method git-fetch)
15239 (uri (git-reference
15240 (url "https://github.com/kcha/psiplot.git")
15241 (commit (string-append "v" version))))
15242 (file-name (git-file-name name version))
15243 (sha256
15244 (base32 "08438h16cfry5kqh3y9hs8q1b1a8bxhblsm75knviz5r6q0n1jxh"))))
15245 (build-system r-build-system)
15246 (propagated-inputs
15247 `(("r-mass" ,r-mass)
15248 ("r-dplyr" ,r-dplyr)
15249 ("r-tidyr" ,r-tidyr)
15250 ("r-purrr" ,r-purrr)
15251 ("r-readr" ,r-readr)
15252 ("r-magrittr" ,r-magrittr)
15253 ("r-ggplot2" ,r-ggplot2)))
15254 (home-page "https://github.com/kcha/psiplot")
15255 (synopsis "Plot percent spliced-in values of alternatively-spliced exons")
15256 (description
15257 "PSIplot is an R package for generating plots of @dfn{percent
15258 spliced-in} (PSI) values of alternatively-spliced exons that were computed by
15259 vast-tools, an RNA-Seq pipeline for alternative splicing analysis. The plots
15260 are generated using @code{ggplot2}.")
15261 (license license:expat)))
15262
15263 (define-public python-ont-fast5-api
15264 (package
15265 (name "python-ont-fast5-api")
15266 (version "1.4.4")
15267 (source
15268 (origin
15269 (method git-fetch)
15270 (uri (git-reference
15271 (url "https://github.com/nanoporetech/ont_fast5_api.git")
15272 (commit (string-append "release_" version))))
15273 (file-name (git-file-name name version))
15274 (sha256
15275 (base32
15276 "03cbq4zbbwhll8ml2m9k8sa31mirsvcbjkrq1yna0kkzz9fad5fm"))))
15277 (build-system python-build-system)
15278 (propagated-inputs
15279 `(("python-numpy" ,python-numpy)
15280 ("python-six" ,python-six)
15281 ("python-h5py" ,python-h5py)
15282 ("python-progressbar33" ,python-progressbar33)))
15283 (home-page "https://github.com/nanoporetech/ont_fast5_api")
15284 (synopsis "Interface to HDF5 files of the Oxford Nanopore fast5 file format")
15285 (description
15286 "This package provides a concrete implementation of the fast5 file schema
15287 using the generic @code{h5py} library, plain-named methods to interact with
15288 and reflect the fast5 file schema, and tools to convert between
15289 @code{multi_read} and @code{single_read} formats.")
15290 (license license:mpl2.0)))
15291
15292 (define-public tbsp
15293 (let ((commit "ec8fff4410cfb13a677dbbb95cbbc60217e64907")
15294 (revision "1"))
15295 (package
15296 (name "tbsp")
15297 (version (git-version "1.0.0" revision commit))
15298 (source
15299 (origin
15300 (method git-fetch)
15301 (uri (git-reference
15302 (url "https://github.com/phoenixding/tbsp.git")
15303 (commit commit)))
15304 (file-name (git-file-name name version))
15305 (sha256
15306 (base32
15307 "025ym14x8gbd6hb55lsinqj6f5qzw36i10klgs7ldzxxd7s39ki1"))))
15308 (build-system python-build-system)
15309 (arguments '(#:tests? #f)) ; no tests included
15310 (inputs
15311 `(("python-matplotlib" ,python-matplotlib)
15312 ("python-networkx" ,python-networkx)
15313 ("python-numpy" ,python-numpy)
15314 ("python-pybigwig" ,python-pybigwig)
15315 ("python-biopython" ,python-biopython)
15316 ("python-scikit-learn" ,python-scikit-learn)
15317 ("python-scipy" ,python-scipy)))
15318 (home-page "https://github.com/phoenixding/tbsp/")
15319 (synopsis "SNP-based trajectory inference")
15320 (description
15321 "Several studies focus on the inference of developmental and response
15322 trajectories from single cell RNA-Seq (scRNA-Seq) data. A number of
15323 computational methods, often referred to as pseudo-time ordering, have been
15324 developed for this task. CRISPR has also been used to reconstruct lineage
15325 trees by inserting random mutations. The tbsp package implements an
15326 alternative method to detect significant, cell type specific sequence
15327 mutations from scRNA-Seq data.")
15328 (license license:expat))))
15329
15330 (define-public tabixpp
15331 (package
15332 (name "tabixpp")
15333 (version "1.1.0")
15334 (source (origin
15335 (method git-fetch)
15336 (uri (git-reference
15337 (url "https://github.com/ekg/tabixpp")
15338 (commit (string-append "v" version))))
15339 (file-name (git-file-name name version))
15340 (sha256
15341 (base32 "1k2a3vbq96ic4lw72iwp5s3mwwc4xhdffjj584yn6l9637q9j1yd"))
15342 (modules '((guix build utils)))
15343 (snippet
15344 `(begin
15345 (delete-file-recursively "htslib") #t))))
15346 (build-system gnu-build-system)
15347 (inputs
15348 `(("htslib" ,htslib)
15349 ("zlib" ,zlib)))
15350 (arguments
15351 `(#:tests? #f ; There are no tests to run.
15352 #:phases
15353 (modify-phases %standard-phases
15354 (delete 'configure) ; There is no configure phase.
15355 ;; The build phase needs overriding the location of htslib.
15356 (replace 'build
15357 (lambda* (#:key inputs #:allow-other-keys)
15358 (let ((htslib-ref (assoc-ref inputs "htslib")))
15359 (invoke "make"
15360 (string-append "HTS_LIB=" htslib-ref "/lib/libhts.a")
15361 (string-append "INCLUDES= -I" htslib-ref "/include/htslib")
15362 "HTS_HEADERS=" ; No need to check for headers here.
15363 (string-append "LIBPATH=-L. -L" htslib-ref "/include")))))
15364 (replace 'install
15365 (lambda* (#:key outputs #:allow-other-keys)
15366 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
15367 (install-file "tabix++" bin))
15368 #t)))))
15369 (home-page "https://github.com/ekg/tabixpp")
15370 (synopsis "C++ wrapper around tabix project")
15371 (description "This is a C++ wrapper around the Tabix project which abstracts
15372 some of the details of opening and jumping in tabix-indexed files.")
15373 (license license:expat)))
15374
15375 (define-public smithwaterman
15376 (let ((commit "2610e259611ae4cde8f03c72499d28f03f6d38a7"))
15377 (package
15378 (name "smithwaterman")
15379 (version (git-version "0.0.0" "2" commit))
15380 (source (origin
15381 (method git-fetch)
15382 (uri (git-reference
15383 (url "https://github.com/ekg/smithwaterman/")
15384 (commit commit)))
15385 (file-name (git-file-name name version))
15386 (sha256
15387 (base32 "0i9d8zrxpiracw3mxzd9siybpy62p06rqz9mc2w93arajgbk45bs"))))
15388 (build-system gnu-build-system)
15389 (arguments
15390 `(#:tests? #f ; There are no tests to run.
15391 #:make-flags '("libsw.a" "all")
15392 #:phases
15393 (modify-phases %standard-phases
15394 (delete 'configure) ; There is no configure phase.
15395 (replace 'install
15396 (lambda* (#:key outputs #:allow-other-keys)
15397 (let* ((out (assoc-ref outputs "out"))
15398 (bin (string-append out "/bin"))
15399 (lib (string-append out "/lib")))
15400 (install-file "smithwaterman" bin)
15401 (install-file "libsw.a" lib))
15402 #t)))))
15403 (home-page "https://github.com/ekg/smithwaterman")
15404 (synopsis "Implementation of the Smith-Waterman algorithm")
15405 (description "Implementation of the Smith-Waterman algorithm.")
15406 ;; The licensing terms are unclear: https://github.com/ekg/smithwaterman/issues/9.
15407 (license (list license:gpl2 license:expat)))))
15408
15409 (define-public multichoose
15410 (package
15411 (name "multichoose")
15412 (version "1.0.3")
15413 (source (origin
15414 (method git-fetch)
15415 (uri (git-reference
15416 (url "https://github.com/ekg/multichoose/")
15417 (commit (string-append "v" version))))
15418 (file-name (git-file-name name version))
15419 (sha256
15420 (base32 "0ci5fqvmpamwgxvmyd79ygj6n3bnbl3vc7b6h1sxz58186sm3pfs"))))
15421 (build-system gnu-build-system)
15422 (arguments
15423 `(#:tests? #f ; Tests require node.
15424 #:phases
15425 (modify-phases %standard-phases
15426 (delete 'configure) ; There is no configure phase.
15427 (replace 'install
15428 (lambda* (#:key outputs #:allow-other-keys)
15429 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
15430 ;; TODO: There are Python modules for these programs too.
15431 (install-file "multichoose" bin)
15432 (install-file "multipermute" bin))
15433 #t)))))
15434 (home-page "https://github.com/ekg/multichoose")
15435 (synopsis "Efficient loopless multiset combination generation algorithm")
15436 (description "This library implements an efficient loopless multiset
15437 combination generation algorithm which is (approximately) described in
15438 \"Loopless algorithms for generating permutations, combinations, and other
15439 combinatorial configurations.\", G. Ehrlich - Journal of the ACM (JACM),
15440 1973. (Algorithm 7.)")
15441 (license license:expat)))
15442
15443 (define-public fsom
15444 (let ((commit "a6ef318fbd347c53189384aef7f670c0e6ce89a3"))
15445 (package
15446 (name "fsom")
15447 (version (git-version "0.0.0" "1" commit))
15448 (source (origin
15449 (method git-fetch)
15450 (uri (git-reference
15451 (url "https://github.com/ekg/fsom/")
15452 (commit commit)))
15453 (file-name (git-file-name name version))
15454 (sha256
15455 (base32 "0gw1lpvr812pywg9y546x0h1hhj261xwls41r6kqhddjlrcjc0pi"))))
15456 (build-system gnu-build-system)
15457 (arguments
15458 `(#:tests? #f ; There are no tests to run.
15459 #:phases
15460 (modify-phases %standard-phases
15461 (delete 'configure) ; There is no configure phase.
15462 (replace 'install
15463 (lambda* (#:key outputs #:allow-other-keys)
15464 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
15465 (install-file "fsom" bin))
15466 #t)))))
15467 (home-page "https://github.com/ekg/fsom")
15468 (synopsis "Manage SOM (Self-Organizing Maps) neural networks")
15469 (description "A tiny C library for managing SOM (Self-Organizing Maps)
15470 neural networks.")
15471 (license license:gpl3))))
15472
15473 (define-public fastahack
15474 (package
15475 (name "fastahack")
15476 (version "1.0.0")
15477 (source (origin
15478 (method git-fetch)
15479 (uri (git-reference
15480 (url "https://github.com/ekg/fastahack/")
15481 (commit (string-append "v" version))))
15482 (file-name (git-file-name name version))
15483 (sha256
15484 (base32 "0rp1blskhzxf7vbh253ibpxbgl9wwgyzf1wbkxndi08d3j4vcss9"))))
15485 (build-system gnu-build-system)
15486 (arguments
15487 `(#:tests? #f ; Unclear how to run tests: https://github.com/ekg/fastahack/issues/15
15488 #:phases
15489 (modify-phases %standard-phases
15490 (delete 'configure) ; There is no configure phase.
15491 (replace 'install
15492 (lambda* (#:key outputs #:allow-other-keys)
15493 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
15494 (install-file "fastahack" bin))
15495 #t)))))
15496 (home-page "https://github.com/ekg/fastahack")
15497 (synopsis "Indexing and sequence extraction from FASTA files")
15498 (description "Fastahack is a small application for indexing and
15499 extracting sequences and subsequences from FASTA files. The included library
15500 provides a FASTA reader and indexer that can be embedded into applications
15501 which would benefit from directly reading subsequences from FASTA files. The
15502 library automatically handles index file generation and use.")
15503 (license (list license:expat license:gpl2))))
15504
15505 (define-public vcflib
15506 (package
15507 (name "vcflib")
15508 (version "1.0.1")
15509 (source
15510 (origin
15511 (method url-fetch)
15512 (uri (string-append "https://github.com/vcflib/vcflib/releases/"
15513 "download/v" version
15514 "/vcflib-" version "-src.tar.gz"))
15515 (sha256
15516 (base32 "14zzrg8hg8cq9cvq2wdvp21j7nmxxkjrbagw2apd2yqv2kyx42lm"))
15517 (modules '((guix build utils)))
15518 (snippet
15519 `(begin
15520 (for-each delete-file-recursively
15521 '("fastahack" "filevercmp" "fsom" "googletest" "intervaltree"
15522 "libVCFH" "multichoose" "smithwaterman" "tabixpp"))
15523 #t))))
15524 (build-system gnu-build-system)
15525 (inputs
15526 `(("htslib" ,htslib)
15527 ("perl" ,perl)
15528 ("python" ,python)
15529 ("zlib" ,zlib)))
15530 (native-inputs
15531 `(;; Submodules.
15532 ;; This package builds against the .o files so we need to extract the source.
15533 ("fastahack-src" ,(package-source fastahack))
15534 ("filevercmp-src" ,(package-source filevercmp))
15535 ("fsom-src" ,(package-source fsom))
15536 ("intervaltree-src" ,(package-source intervaltree))
15537 ("multichoose-src" ,(package-source multichoose))
15538 ("smithwaterman-src" ,(package-source smithwaterman))
15539 ("tabixpp-src" ,(package-source tabixpp))))
15540 (arguments
15541 `(#:tests? #f ; no tests
15542 #:make-flags (list (string-append "HTS_LIB="
15543 (assoc-ref %build-inputs "htslib")
15544 "/lib/libhts.a")
15545 (string-append "HTS_INCLUDES= -I"
15546 (assoc-ref %build-inputs "htslib")
15547 "/include/htslib")
15548 (string-append "HTS_LDFLAGS= -L"
15549 (assoc-ref %build-inputs "htslib")
15550 "/include/htslib" " -lhts"))
15551 #:phases
15552 (modify-phases %standard-phases
15553 (delete 'configure)
15554 (delete 'check)
15555 (add-after 'unpack 'unpack-submodule-sources
15556 (lambda* (#:key inputs #:allow-other-keys)
15557 (let ((unpack (lambda (source target)
15558 (mkdir target)
15559 (with-directory-excursion target
15560 (if (file-is-directory? (assoc-ref inputs source))
15561 (copy-recursively (assoc-ref inputs source) ".")
15562 (invoke "tar" "xvf"
15563 (assoc-ref inputs source)
15564 "--strip-components=1"))))))
15565 (and
15566 (unpack "fastahack-src" "fastahack")
15567 (unpack "filevercmp-src" "filevercmp")
15568 (unpack "fsom-src" "fsom")
15569 (unpack "intervaltree-src" "intervaltree")
15570 (unpack "multichoose-src" "multichoose")
15571 (unpack "smithwaterman-src" "smithwaterman")
15572 (unpack "tabixpp-src" "tabixpp")))))
15573 (replace 'build
15574 (lambda* (#:key inputs make-flags #:allow-other-keys)
15575 (let ((htslib (assoc-ref inputs "htslib")))
15576 (with-directory-excursion "tabixpp"
15577 (substitute* "Makefile"
15578 (("-Ihtslib") (string-append "-I" htslib "/include/htslib"))
15579 (("-Lhtslib") (string-append "-L" htslib "/lib/htslib"))
15580 (("htslib/htslib") (string-append htslib "/include/htslib")))
15581 (invoke "make"
15582 (string-append "HTS_LIB=" htslib "/lib/libhts.a")))
15583 (apply invoke "make" "CC=gcc" "CFLAGS=-Itabixpp" make-flags))))
15584 (replace 'install
15585 (lambda* (#:key outputs #:allow-other-keys)
15586 (let ((bin (string-append (assoc-ref outputs "out") "/bin"))
15587 (lib (string-append (assoc-ref outputs "out") "/lib")))
15588 (for-each (lambda (file)
15589 (install-file file bin))
15590 (find-files "bin" ".*"))
15591 ;; The header files in src/ do not interface libvcflib,
15592 ;; therefore they are left out.
15593 (install-file "libvcflib.a" lib))
15594 #t)))))
15595 (home-page "https://github.com/vcflib/vcflib/")
15596 (synopsis "Library for parsing and manipulating VCF files")
15597 (description "Vcflib provides methods to manipulate and interpret
15598 sequence variation as it can be described by VCF. It is both an API for parsing
15599 and operating on records of genomic variation as it can be described by the VCF
15600 format, and a collection of command-line utilities for executing complex
15601 manipulations on VCF files.")
15602 (license license:expat)))
15603
15604 (define-public freebayes
15605 (let ((commit "3ce827d8ebf89bb3bdc097ee0fe7f46f9f30d5fb")
15606 (revision "1")
15607 (version "1.0.2"))
15608 (package
15609 (name "freebayes")
15610 (version (git-version version revision commit))
15611 (source (origin
15612 (method git-fetch)
15613 (uri (git-reference
15614 (url "https://github.com/ekg/freebayes.git")
15615 (commit commit)))
15616 (file-name (git-file-name name version))
15617 (sha256
15618 (base32 "1sbzwmcbn78ybymjnhwk7qc5r912azy5vqz2y7y81616yc3ba2a2"))))
15619 (build-system gnu-build-system)
15620 (inputs
15621 `(("bamtools" ,bamtools)
15622 ("htslib" ,htslib)
15623 ("zlib" ,zlib)))
15624 (native-inputs
15625 `(("bc" ,bc) ; Needed for running tests.
15626 ("samtools" ,samtools) ; Needed for running tests.
15627 ("parallel" ,parallel) ; Needed for running tests.
15628 ("perl" ,perl) ; Needed for running tests.
15629 ("procps" ,procps) ; Needed for running tests.
15630 ("python" ,python-2) ; Needed for running tests.
15631 ("vcflib-src" ,(package-source vcflib))
15632 ;; These are submodules for the vcflib version used in freebayes.
15633 ;; This package builds against the .o files so we need to extract the source.
15634 ("tabixpp-src" ,(package-source tabixpp))
15635 ("smithwaterman-src" ,(package-source smithwaterman))
15636 ("multichoose-src" ,(package-source multichoose))
15637 ("fsom-src" ,(package-source fsom))
15638 ("filevercmp-src" ,(package-source filevercmp))
15639 ("fastahack-src" ,(package-source fastahack))
15640 ("intervaltree-src" ,(package-source intervaltree))
15641 ;; These submodules are needed to run the tests.
15642 ("bash-tap-src" ,(package-source bash-tap))
15643 ("test-simple-bash-src"
15644 ,(origin
15645 (method git-fetch)
15646 (uri (git-reference
15647 (url "https://github.com/ingydotnet/test-simple-bash/")
15648 (commit "124673ff204b01c8e96b7fc9f9b32ee35d898acc")))
15649 (file-name "test-simple-bash-src-checkout")
15650 (sha256
15651 (base32 "043plp6z0x9yf7mdpky1fw7zcpwn1p47px95w9mh16603zqqqpga"))))))
15652 (arguments
15653 `(#:make-flags
15654 (list "CC=gcc"
15655 (string-append "BAMTOOLS_ROOT="
15656 (assoc-ref %build-inputs "bamtools")))
15657 #:test-target "test"
15658 #:phases
15659 (modify-phases %standard-phases
15660 (delete 'configure)
15661 (add-after 'unpack 'fix-tests
15662 (lambda _
15663 (substitute* "test/t/01_call_variants.t"
15664 (("grep -P \"\\(\\\\t500\\$\\|\\\\t11000\\$\\|\\\\t1000\\$\\)\"")
15665 "grep -E ' (500|11000|1000)$'"))
15666 #t))
15667 (add-after 'unpack 'unpack-submodule-sources
15668 (lambda* (#:key inputs #:allow-other-keys)
15669 (let ((unpack (lambda (source target)
15670 (with-directory-excursion target
15671 (if (file-is-directory? (assoc-ref inputs source))
15672 (copy-recursively (assoc-ref inputs source) ".")
15673 (invoke "tar" "xvf"
15674 (assoc-ref inputs source)
15675 "--strip-components=1"))))))
15676 (and
15677 (unpack "vcflib-src" "vcflib")
15678 (unpack "fastahack-src" "vcflib/fastahack")
15679 (unpack "filevercmp-src" "vcflib/filevercmp")
15680 (unpack "fsom-src" "vcflib/fsom")
15681 (unpack "intervaltree-src" "vcflib/intervaltree")
15682 (unpack "multichoose-src" "vcflib/multichoose")
15683 (unpack "smithwaterman-src" "vcflib/smithwaterman")
15684 (unpack "tabixpp-src" "vcflib/tabixpp")
15685 (unpack "test-simple-bash-src" "test/test-simple-bash")
15686 (unpack "bash-tap-src" "test/bash-tap")))))
15687 (add-after 'unpack-submodule-sources 'fix-makefiles
15688 (lambda _
15689 ;; We don't have the .git folder to get the version tag from.
15690 (substitute* "vcflib/Makefile"
15691 (("^GIT_VERSION.*")
15692 (string-append "GIT_VERSION = v" ,version)))
15693 (substitute* "src/Makefile"
15694 (("-I\\$\\(BAMTOOLS_ROOT\\)/src")
15695 "-I$(BAMTOOLS_ROOT)/include/bamtools"))
15696 #t))
15697 (add-before 'build 'build-tabixpp-and-vcflib
15698 (lambda* (#:key inputs make-flags #:allow-other-keys)
15699 (with-directory-excursion "vcflib"
15700 (with-directory-excursion "tabixpp"
15701 (apply invoke "make"
15702 (string-append "HTS_LIB="
15703 (assoc-ref inputs "htslib")
15704 "/lib/libhts.a")
15705 make-flags))
15706 (apply invoke "make"
15707 (string-append "CFLAGS=-Itabixpp")
15708 "all"
15709 make-flags))))
15710 (replace 'install
15711 (lambda* (#:key outputs #:allow-other-keys)
15712 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
15713 (install-file "bin/freebayes" bin)
15714 (install-file "bin/bamleftalign" bin))
15715 #t)))))
15716 (home-page "https://github.com/ekg/freebayes")
15717 (synopsis "Haplotype-based variant detector")
15718 (description "FreeBayes is a Bayesian genetic variant detector designed to
15719 find small polymorphisms, specifically SNPs (single-nucleotide polymorphisms),
15720 indels (insertions and deletions), MNPs (multi-nucleotide polymorphisms), and
15721 complex events (composite insertion and substitution events) smaller than the
15722 length of a short-read sequencing alignment.")
15723 (license license:expat))))
15724
15725 (define-public samblaster
15726 (package
15727 (name "samblaster")
15728 (version "0.1.24")
15729 (source (origin
15730 (method git-fetch)
15731 (uri (git-reference
15732 (url "https://github.com/GregoryFaust/samblaster.git")
15733 (commit (string-append "v." version))))
15734 (file-name (git-file-name name version))
15735 (sha256
15736 (base32
15737 "0iv2ddfw8363vb2x8gr3p8g88whb6mb9m0pf71i2cqsbv6jghap7"))))
15738 (build-system gnu-build-system)
15739 (arguments
15740 `(#:tests? #f ; there are none
15741 #:phases
15742 (modify-phases %standard-phases
15743 (delete 'configure) ; There is no configure phase.
15744 (replace 'install
15745 (lambda* (#:key outputs #:allow-other-keys)
15746 (install-file "samblaster"
15747 (string-append (assoc-ref outputs "out") "/bin"))
15748 #t)))))
15749 (home-page "https://github.com/GregoryFaust/samblaster")
15750 (synopsis "Mark duplicates in paired-end SAM files")
15751 (description "Samblaster is a fast and flexible program for marking
15752 duplicates in read-id grouped paired-end SAM files. It can also optionally
15753 output discordant read pairs and/or split read mappings to separate SAM files,
15754 and/or unmapped/clipped reads to a separate FASTQ file. When marking
15755 duplicates, samblaster will require approximately 20MB of memory per 1M read
15756 pairs.")
15757 (license license:expat)))
15758
15759 (define-public r-velocyto
15760 (let ((commit "d7790346cb99f49ab9c2b23ba70dcf9d2c9fc350")
15761 (revision "1"))
15762 (package
15763 (name "r-velocyto")
15764 (version (git-version "0.6" revision commit))
15765 (source
15766 (origin
15767 (method git-fetch)
15768 (uri (git-reference
15769 (url "https://github.com/velocyto-team/velocyto.R.git")
15770 (commit commit)))
15771 (file-name (git-file-name name version))
15772 (sha256
15773 (base32
15774 "16wqf70j7rd7pay2q513iyz12i8n9vrpg1bisah4lddbcpx5dz1n"))))
15775 (build-system r-build-system)
15776 (inputs
15777 `(("boost" ,boost)))
15778 (propagated-inputs
15779 `(("r-hdf5r" ,r-hdf5r)
15780 ("r-mass" ,r-mass)
15781 ("r-mgcv" ,r-mgcv)
15782 ("r-pcamethods" ,r-pcamethods)
15783 ("r-rcpp" ,r-rcpp)
15784 ("r-rcpparmadillo" ,r-rcpparmadillo)
15785 ;; Suggested packages
15786 ("r-rtsne" ,r-rtsne)
15787 ("r-cluster" ,r-cluster)
15788 ("r-abind" ,r-abind)
15789 ("r-h5" ,r-h5)
15790 ("r-biocgenerics" ,r-biocgenerics)
15791 ("r-genomicalignments" ,r-genomicalignments)
15792 ("r-rsamtools" ,r-rsamtools)
15793 ("r-edger" ,r-edger)
15794 ("r-igraph" ,r-igraph)))
15795 (home-page "https://velocyto.org")
15796 (synopsis "RNA velocity estimation in R")
15797 (description
15798 "This package provides basic routines for estimation of gene-specific
15799 transcriptional derivatives and visualization of the resulting velocity
15800 patterns.")
15801 (license license:gpl3))))
15802
15803 (define-public methyldackel
15804 (package
15805 (name "methyldackel")
15806 (version "0.4.0")
15807 (source (origin
15808 (method git-fetch)
15809 (uri (git-reference
15810 (url "https://github.com/dpryan79/MethylDackel.git")
15811 (commit version)))
15812 (file-name (git-file-name name version))
15813 (sha256
15814 (base32
15815 "10gh8k0ca92kywnrw5pkacq3g6r8s976s12k8jhp8g3g49q9a97g"))))
15816 (build-system gnu-build-system)
15817 (arguments
15818 `(#:test-target "test"
15819 #:make-flags
15820 (list "CC=gcc"
15821 (string-append "prefix="
15822 (assoc-ref %outputs "out") "/bin/"))
15823 #:phases
15824 (modify-phases %standard-phases
15825 (replace 'configure
15826 (lambda* (#:key outputs #:allow-other-keys)
15827 (substitute* "Makefile"
15828 (("install MethylDackel \\$\\(prefix\\)" match)
15829 (string-append "install -d $(prefix); " match)))
15830 #t)))))
15831 (inputs
15832 `(("htslib" ,htslib)
15833 ("zlib" ,zlib)))
15834 ;; Needed for tests
15835 (native-inputs
15836 `(("python" ,python-wrapper)))
15837 (home-page "https://github.com/dpryan79/MethylDackel")
15838 (synopsis "Universal methylation extractor for BS-seq experiments")
15839 (description
15840 "MethylDackel will process a coordinate-sorted and indexed BAM or CRAM
15841 file containing some form of BS-seq alignments and extract per-base
15842 methylation metrics from them. MethylDackel requires an indexed fasta file
15843 containing the reference genome as well.")
15844 ;; See https://github.com/dpryan79/MethylDackel/issues/85
15845 (license license:expat)))
15846
15847 (define-public python-gffutils
15848 ;; The latest release is older more than a year than the latest commit
15849 (let ((commit "4034c54600813b1402945e12faa91b3a53162cf1")
15850 (revision "1"))
15851 (package
15852 (name "python-gffutils")
15853 (version (git-version "0.9" revision commit))
15854 (source
15855 (origin
15856 (method git-fetch)
15857 (uri (git-reference
15858 (url "https://github.com/daler/gffutils.git")
15859 (commit commit)))
15860 (file-name (git-file-name name version))
15861 (sha256
15862 (base32
15863 "1rwafjdnbir5wnk0ap06ww4lra3p5frhy7mfs03rlldgfnwxymsn"))))
15864 (build-system python-build-system)
15865 (arguments
15866 `(#:phases
15867 (modify-phases %standard-phases
15868 (replace 'check
15869 (lambda _
15870 ;; Tests need to access the HOME directory
15871 (setenv "HOME" "/tmp")
15872 (invoke "nosetests" "-a" "!slow")))
15873 (add-after 'unpack 'make-gz-files-writable
15874 (lambda _
15875 (for-each make-file-writable
15876 (find-files "." "\\.gz"))
15877 #t)))))
15878 (propagated-inputs
15879 `(("python-argcomplete" ,python-argcomplete)
15880 ("python-argh" ,python-argh)
15881 ("python-biopython" ,python-biopython)
15882 ("python-pybedtools" ,python-pybedtools)
15883 ("python-pyfaidx" ,python-pyfaidx)
15884 ("python-simplejson" ,python-simplejson)
15885 ("python-six" ,python-six)))
15886 (native-inputs
15887 `(("python-nose" , python-nose)))
15888 (home-page "https://github.com/daler/gffutils")
15889 (synopsis "Tool for manipulation of GFF and GTF files")
15890 (description
15891 "python-gffutils is a Python package for working with and manipulating
15892 the GFF and GTF format files typically used for genomic annotations. The
15893 files are loaded into a SQLite database, allowing much more complex
15894 manipulation of hierarchical features (e.g., genes, transcripts, and exons)
15895 than is possible with plain-text methods alone.")
15896 (license license:expat))))
15897
15898 (define-public libsbml
15899 (package
15900 (name "libsbml")
15901 (version "5.18.0")
15902 (source (origin
15903 (method url-fetch)
15904 (uri (string-append "mirror://sourceforge/sbml/libsbml/"
15905 version "/stable/libSBML-"
15906 version "-core-src.tar.gz"))
15907 (sha256
15908 (base32
15909 "0slkagrk3nfi2qsksv6b1brj6zhx4bj4bkib2sdycvrcd10ql2lh"))))
15910 (build-system cmake-build-system)
15911 (arguments
15912 `(#:test-target "test"
15913 #:configure-flags
15914 (list "-DWITH_CHECK=ON"
15915 (string-append "-DLIBXML_LIBRARY="
15916 (assoc-ref %build-inputs "libxml2")
15917 "/lib/libxml2.so")
15918 (string-append "-DLIBXML_INCLUDE_DIR="
15919 (assoc-ref %build-inputs "libxml2")
15920 "/include/libxml2"))))
15921 (propagated-inputs
15922 `(("libxml2" ,libxml2)))
15923 (native-inputs
15924 `(("check" ,check)
15925 ("swig" ,swig)))
15926 (home-page "http://sbml.org/Software/libSBML")
15927 (synopsis "Process SBML files and data streams")
15928 (description "LibSBML is a library to help you read, write, manipulate,
15929 translate, and validate SBML files and data streams. The @dfn{Systems Biology
15930 Markup Language} (SBML) is an interchange format for computer models of
15931 biological processes. SBML is useful for models of metabolism, cell
15932 signaling, and more. It continues to be evolved and expanded by an
15933 international community.")
15934 (license license:lgpl2.1+)))
15935
15936 (define-public grocsvs
15937 ;; The last release is out of date and new features have been added.
15938 (let ((commit "ecd956a65093a0b2c41849050e4512d46fecea5d")
15939 (revision "1"))
15940 (package
15941 (name "grocsvs")
15942 (version (git-version "0.2.6.1" revision commit))
15943 (source (origin
15944 (method git-fetch)
15945 (uri (git-reference
15946 (url "https://github.com/grocsvs/grocsvs")
15947 (commit commit)))
15948 (file-name (git-file-name name version))
15949 (sha256
15950 (base32 "14505725gr7qxc17cxxf0k6lzcwmgi64pija4mwf29aw70qn35cc"))
15951 (patches (search-patches "grocsvs-dont-use-admiral.patch"))))
15952 (build-system python-build-system)
15953 (arguments
15954 `(#:tests? #f ; No test suite.
15955 #:python ,python-2)) ; Only python-2 supported.
15956 (inputs
15957 `(("python2-h5py" ,python2-h5py)
15958 ("python2-ipython-cluster-helper" ,python2-ipython-cluster-helper)
15959 ("python2-networkx" ,python2-networkx)
15960 ("python2-psutil" ,python2-psutil)
15961 ("python2-pandas" ,python2-pandas)
15962 ("python2-pybedtools" ,python2-pybedtools)
15963 ("python2-pyfaidx" ,python2-pyfaidx)
15964 ("python2-pygraphviz" ,python2-pygraphviz)
15965 ("python2-pysam" ,python2-pysam)
15966 ("python2-scipy" ,python2-scipy)))
15967 (home-page "https://github.com/grocsvs/grocsvs")
15968 (synopsis "Genome-wide reconstruction of complex structural variants")
15969 (description
15970 "@dfn{Genome-wide Reconstruction of Complex Structural Variants}
15971 (GROC-SVs) is a software pipeline for identifying large-scale structural
15972 variants, performing sequence assembly at the breakpoints, and reconstructing
15973 the complex structural variants using the long-fragment information from the
15974 10x Genomics platform.")
15975 (license license:expat))))