a373cc20fa0f8a6efb5a255c1923f9e159faa3ae
[jackhill/guix/guix.git] / gnu / packages / bioinformatics.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
3 ;;; Copyright © 2015, 2016, 2017, 2018 Ben Woodcroft <donttrustben@gmail.com>
4 ;;; Copyright © 2015, 2016 Pjotr Prins <pjotr.guix@thebird.nl>
5 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
6 ;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
7 ;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
8 ;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
9 ;;; Copyright © 2016, 2018 Raoul Bonnal <ilpuccio.febo@gmail.com>
10 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
11 ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
12 ;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
13 ;;; Copyright © 2018 Gábor Boskovits <boskovits@gmail.com>
14 ;;; Copyright © 2018 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
15 ;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
16 ;;; Copyright © 2019 Brian Leung <bkleung89@gmail.com>
17 ;;;
18 ;;; This file is part of GNU Guix.
19 ;;;
20 ;;; GNU Guix is free software; you can redistribute it and/or modify it
21 ;;; under the terms of the GNU General Public License as published by
22 ;;; the Free Software Foundation; either version 3 of the License, or (at
23 ;;; your option) any later version.
24 ;;;
25 ;;; GNU Guix is distributed in the hope that it will be useful, but
26 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
27 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 ;;; GNU General Public License for more details.
29 ;;;
30 ;;; You should have received a copy of the GNU General Public License
31 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
32
33 (define-module (gnu packages bioinformatics)
34 #:use-module ((guix licenses) #:prefix license:)
35 #:use-module (guix packages)
36 #:use-module (guix utils)
37 #:use-module (guix download)
38 #:use-module (guix git-download)
39 #:use-module (guix hg-download)
40 #:use-module (guix build-system ant)
41 #:use-module (guix build-system gnu)
42 #:use-module (guix build-system cmake)
43 #:use-module (guix build-system haskell)
44 #:use-module (guix build-system meson)
45 #:use-module (guix build-system ocaml)
46 #:use-module (guix build-system perl)
47 #:use-module (guix build-system python)
48 #:use-module (guix build-system r)
49 #:use-module (guix build-system ruby)
50 #:use-module (guix build-system scons)
51 #:use-module (guix build-system trivial)
52 #:use-module (gnu packages)
53 #:use-module (gnu packages autotools)
54 #:use-module (gnu packages algebra)
55 #:use-module (gnu packages base)
56 #:use-module (gnu packages bash)
57 #:use-module (gnu packages bison)
58 #:use-module (gnu packages bioconductor)
59 #:use-module (gnu packages boost)
60 #:use-module (gnu packages check)
61 #:use-module (gnu packages code)
62 #:use-module (gnu packages compression)
63 #:use-module (gnu packages cpio)
64 #:use-module (gnu packages cran)
65 #:use-module (gnu packages curl)
66 #:use-module (gnu packages documentation)
67 #:use-module (gnu packages databases)
68 #:use-module (gnu packages datastructures)
69 #:use-module (gnu packages file)
70 #:use-module (gnu packages flex)
71 #:use-module (gnu packages gawk)
72 #:use-module (gnu packages gcc)
73 #:use-module (gnu packages gd)
74 #:use-module (gnu packages gtk)
75 #:use-module (gnu packages glib)
76 #:use-module (gnu packages graph)
77 #:use-module (gnu packages groff)
78 #:use-module (gnu packages guile)
79 #:use-module (gnu packages guile-xyz)
80 #:use-module (gnu packages haskell-check)
81 #:use-module (gnu packages haskell-web)
82 #:use-module (gnu packages haskell-xyz)
83 #:use-module (gnu packages image)
84 #:use-module (gnu packages imagemagick)
85 #:use-module (gnu packages java)
86 #:use-module (gnu packages java-compression)
87 #:use-module (gnu packages jemalloc)
88 #:use-module (gnu packages dlang)
89 #:use-module (gnu packages linux)
90 #:use-module (gnu packages lisp)
91 #:use-module (gnu packages logging)
92 #:use-module (gnu packages machine-learning)
93 #:use-module (gnu packages man)
94 #:use-module (gnu packages maths)
95 #:use-module (gnu packages mpi)
96 #:use-module (gnu packages ncurses)
97 #:use-module (gnu packages ocaml)
98 #:use-module (gnu packages pcre)
99 #:use-module (gnu packages parallel)
100 #:use-module (gnu packages pdf)
101 #:use-module (gnu packages perl)
102 #:use-module (gnu packages perl-check)
103 #:use-module (gnu packages pkg-config)
104 #:use-module (gnu packages popt)
105 #:use-module (gnu packages protobuf)
106 #:use-module (gnu packages python)
107 #:use-module (gnu packages python-compression)
108 #:use-module (gnu packages python-web)
109 #:use-module (gnu packages python-xyz)
110 #:use-module (gnu packages readline)
111 #:use-module (gnu packages ruby)
112 #:use-module (gnu packages serialization)
113 #:use-module (gnu packages shells)
114 #:use-module (gnu packages sphinx)
115 #:use-module (gnu packages statistics)
116 #:use-module (gnu packages swig)
117 #:use-module (gnu packages tbb)
118 #:use-module (gnu packages tex)
119 #:use-module (gnu packages texinfo)
120 #:use-module (gnu packages textutils)
121 #:use-module (gnu packages time)
122 #:use-module (gnu packages tls)
123 #:use-module (gnu packages vim)
124 #:use-module (gnu packages web)
125 #:use-module (gnu packages xml)
126 #:use-module (gnu packages xorg)
127 #:use-module (srfi srfi-1)
128 #:use-module (ice-9 match))
129
130 (define-public aragorn
131 (package
132 (name "aragorn")
133 (version "1.2.38")
134 (source (origin
135 (method url-fetch)
136 (uri (string-append
137 "http://mbio-serv2.mbioekol.lu.se/ARAGORN/Downloads/aragorn"
138 version ".tgz"))
139 (sha256
140 (base32
141 "09i1rg716smlbnixfm7q1ml2mfpaa2fpn3hwjg625ysmfwwy712b"))))
142 (build-system gnu-build-system)
143 (arguments
144 `(#:tests? #f ; there are no tests
145 #:phases
146 (modify-phases %standard-phases
147 (delete 'configure)
148 (replace 'build
149 (lambda _
150 (invoke "gcc"
151 "-O3"
152 "-ffast-math"
153 "-finline-functions"
154 "-o"
155 "aragorn"
156 (string-append "aragorn" ,version ".c"))
157 #t))
158 (replace 'install
159 (lambda* (#:key outputs #:allow-other-keys)
160 (let* ((out (assoc-ref outputs "out"))
161 (bin (string-append out "/bin"))
162 (man (string-append out "/share/man/man1")))
163 (install-file "aragorn" bin)
164 (install-file "aragorn.1" man))
165 #t)))))
166 (home-page "http://mbio-serv2.mbioekol.lu.se/ARAGORN")
167 (synopsis "Detect tRNA, mtRNA and tmRNA genes in nucleotide sequences")
168 (description
169 "Aragorn identifies transfer RNA, mitochondrial RNA and
170 transfer-messenger RNA from nucleotide sequences, based on homology to known
171 tRNA consensus sequences and RNA structure. It also outputs the secondary
172 structure of the predicted RNA.")
173 (license license:gpl2)))
174
175 (define-public bamm
176 (package
177 (name "bamm")
178 (version "1.7.3")
179 (source (origin
180 (method git-fetch)
181 ;; BamM is not available on pypi.
182 (uri (git-reference
183 (url "https://github.com/Ecogenomics/BamM.git")
184 (commit version)
185 (recursive? #t)))
186 (file-name (git-file-name name version))
187 (sha256
188 (base32
189 "1p83ahi984ipslxlg4yqy1gdnya9rkn1v71z8djgxkm9d2chw4c5"))
190 (modules '((guix build utils)))
191 (snippet
192 `(begin
193 ;; Delete bundled htslib.
194 (delete-file-recursively "c/htslib-1.3.1")
195 #t))))
196 (build-system python-build-system)
197 (arguments
198 `(#:python ,python-2 ; BamM is Python 2 only.
199 ;; Do not use bundled libhts. Do use the bundled libcfu because it has
200 ;; been modified from its original form.
201 #:configure-flags
202 (let ((htslib (assoc-ref %build-inputs "htslib")))
203 (list "--with-libhts-lib" (string-append htslib "/lib")
204 "--with-libhts-inc" (string-append htslib "/include/htslib")))
205 #:phases
206 (modify-phases %standard-phases
207 (add-after 'unpack 'autogen
208 (lambda _
209 (with-directory-excursion "c"
210 (let ((sh (which "sh")))
211 (for-each make-file-writable (find-files "." ".*"))
212 ;; Use autogen so that 'configure' works.
213 (substitute* "autogen.sh" (("/bin/sh") sh))
214 (setenv "CONFIG_SHELL" sh)
215 (invoke "./autogen.sh")))
216 #t))
217 (delete 'build)
218 ;; Run tests after installation so compilation only happens once.
219 (delete 'check)
220 (add-after 'install 'wrap-executable
221 (lambda* (#:key outputs #:allow-other-keys)
222 (let* ((out (assoc-ref outputs "out"))
223 (path (getenv "PATH")))
224 (wrap-program (string-append out "/bin/bamm")
225 `("PATH" ":" prefix (,path))))
226 #t))
227 (add-after 'wrap-executable 'post-install-check
228 (lambda* (#:key inputs outputs #:allow-other-keys)
229 (setenv "PATH"
230 (string-append (assoc-ref outputs "out")
231 "/bin:"
232 (getenv "PATH")))
233 (setenv "PYTHONPATH"
234 (string-append
235 (assoc-ref outputs "out")
236 "/lib/python"
237 (string-take (string-take-right
238 (assoc-ref inputs "python") 5) 3)
239 "/site-packages:"
240 (getenv "PYTHONPATH")))
241 ;; There are 2 errors printed, but they are safe to ignore:
242 ;; 1) [E::hts_open_format] fail to open file ...
243 ;; 2) samtools view: failed to open ...
244 (invoke "nosetests")
245 #t)))))
246 (native-inputs
247 `(("autoconf" ,autoconf)
248 ("automake" ,automake)
249 ("libtool" ,libtool)
250 ("zlib" ,zlib)
251 ("python-nose" ,python2-nose)
252 ("python-pysam" ,python2-pysam)))
253 (inputs
254 `(("htslib" ,htslib-1.3) ; At least one test fails on htslib-1.4+.
255 ("samtools" ,samtools)
256 ("bwa" ,bwa)
257 ("grep" ,grep)
258 ("sed" ,sed)
259 ("coreutils" ,coreutils)))
260 (propagated-inputs
261 `(("python-numpy" ,python2-numpy)))
262 (home-page "http://ecogenomics.github.io/BamM/")
263 (synopsis "Metagenomics-focused BAM file manipulator")
264 (description
265 "BamM is a C library, wrapped in python, to efficiently generate and
266 parse BAM files, specifically for the analysis of metagenomic data. For
267 instance, it implements several methods to assess contig-wise read coverage.")
268 (license license:lgpl3+)))
269
270 (define-public bamtools
271 (package
272 (name "bamtools")
273 (version "2.5.1")
274 (source (origin
275 (method git-fetch)
276 (uri (git-reference
277 (url "https://github.com/pezmaster31/bamtools.git")
278 (commit (string-append "v" version))))
279 (file-name (git-file-name name version))
280 (sha256
281 (base32
282 "0nfb2ypcx9959xnbz6wxh6py3xfizgmg8nrknxl95c507m9hmq8b"))))
283 (build-system cmake-build-system)
284 (arguments
285 `(#:tests? #f ;no "check" target
286 #:phases
287 (modify-phases %standard-phases
288 (add-before
289 'configure 'set-ldflags
290 (lambda* (#:key outputs #:allow-other-keys)
291 (setenv "LDFLAGS"
292 (string-append
293 "-Wl,-rpath="
294 (assoc-ref outputs "out") "/lib/bamtools"))
295 #t)))))
296 (inputs `(("zlib" ,zlib)))
297 (home-page "https://github.com/pezmaster31/bamtools")
298 (synopsis "C++ API and command-line toolkit for working with BAM data")
299 (description
300 "BamTools provides both a C++ API and a command-line toolkit for handling
301 BAM files.")
302 (license license:expat)))
303
304 (define-public bcftools
305 (package
306 (name "bcftools")
307 (version "1.9")
308 (source (origin
309 (method url-fetch)
310 (uri (string-append "https://github.com/samtools/bcftools/"
311 "releases/download/"
312 version "/bcftools-" version ".tar.bz2"))
313 (sha256
314 (base32
315 "1j3h638i8kgihzyrlnpj82xg1b23sijibys9hvwari3fy7kd0dkg"))
316 (modules '((guix build utils)))
317 (snippet '(begin
318 ;; Delete bundled htslib.
319 (delete-file-recursively "htslib-1.9")
320 #t))))
321 (build-system gnu-build-system)
322 (arguments
323 `(#:configure-flags
324 (list "--enable-libgsl")
325 #:test-target "test"
326 #:phases
327 (modify-phases %standard-phases
328 (add-before 'check 'patch-tests
329 (lambda _
330 (substitute* "test/test.pl"
331 (("/bin/bash") (which "bash")))
332 #t)))))
333 (native-inputs
334 `(("htslib" ,htslib)
335 ("perl" ,perl)))
336 (inputs
337 `(("gsl" ,gsl)
338 ("zlib" ,zlib)))
339 (home-page "https://samtools.github.io/bcftools/")
340 (synopsis "Utilities for variant calling and manipulating VCFs and BCFs")
341 (description
342 "BCFtools is a set of utilities that manipulate variant calls in the
343 Variant Call Format (VCF) and its binary counterpart BCF. All commands work
344 transparently with both VCFs and BCFs, both uncompressed and BGZF-compressed.")
345 ;; The sources are dual MIT/GPL, but becomes GPL-only when USE_GPL=1.
346 (license (list license:gpl3+ license:expat))))
347
348 (define-public bedops
349 (package
350 (name "bedops")
351 (version "2.4.35")
352 (source (origin
353 (method git-fetch)
354 (uri (git-reference
355 (url "https://github.com/bedops/bedops.git")
356 (commit (string-append "v" version))))
357 (file-name (git-file-name name version))
358 (sha256
359 (base32
360 "0mmgsgwz5r9w76hzgxkxc9s9lkdhhaf7vr6i02b09vbswvs1fyqx"))))
361 (build-system gnu-build-system)
362 (arguments
363 '(#:tests? #f
364 #:make-flags (list (string-append "BINDIR=" %output "/bin"))
365 #:phases
366 (modify-phases %standard-phases
367 (add-after 'unpack 'unpack-tarballs
368 (lambda _
369 ;; FIXME: Bedops includes tarballs of minimally patched upstream
370 ;; libraries jansson, zlib, and bzip2. We cannot just use stock
371 ;; libraries because at least one of the libraries (zlib) is
372 ;; patched to add a C++ function definition (deflateInit2cpp).
373 ;; Until the Bedops developers offer a way to link against system
374 ;; libraries we have to build the in-tree copies of these three
375 ;; libraries.
376
377 ;; See upstream discussion:
378 ;; https://github.com/bedops/bedops/issues/124
379
380 ;; Unpack the tarballs to benefit from shebang patching.
381 (with-directory-excursion "third-party"
382 (invoke "tar" "xvf" "jansson-2.6.tar.bz2")
383 (invoke "tar" "xvf" "zlib-1.2.7.tar.bz2")
384 (invoke "tar" "xvf" "bzip2-1.0.6.tar.bz2"))
385 ;; Disable unpacking of tarballs in Makefile.
386 (substitute* "system.mk/Makefile.linux"
387 (("^\tbzcat .*") "\t@echo \"not unpacking\"\n")
388 (("\\./configure") "CONFIG_SHELL=bash ./configure"))
389 (substitute* "third-party/zlib-1.2.7/Makefile.in"
390 (("^SHELL=.*$") "SHELL=bash\n"))
391 #t))
392 (delete 'configure))))
393 (home-page "https://github.com/bedops/bedops")
394 (synopsis "Tools for high-performance genomic feature operations")
395 (description
396 "BEDOPS is a suite of tools to address common questions raised in genomic
397 studies---mostly with regard to overlap and proximity relationships between
398 data sets. It aims to be scalable and flexible, facilitating the efficient
399 and accurate analysis and management of large-scale genomic data.
400
401 BEDOPS provides tools that perform highly efficient and scalable Boolean and
402 other set operations, statistical calculations, archiving, conversion and
403 other management of genomic data of arbitrary scale. Tasks can be easily
404 split by chromosome for distributing whole-genome analyses across a
405 computational cluster.")
406 (license license:gpl2+)))
407
408 (define-public bedtools
409 (package
410 (name "bedtools")
411 (version "2.27.1")
412 (source (origin
413 (method url-fetch)
414 (uri (string-append "https://github.com/arq5x/bedtools2/releases/"
415 "download/v" version "/"
416 "bedtools-" version ".tar.gz"))
417 (sha256
418 (base32
419 "1ndg5yknrxl4djx8ddzgk12rrbiidfpmkkg5z3f95jzryfxarhn8"))))
420 (build-system gnu-build-system)
421 (arguments
422 '(#:test-target "test"
423 #:make-flags
424 (list (string-append "prefix=" (assoc-ref %outputs "out")))
425 #:phases
426 (modify-phases %standard-phases
427 (delete 'configure))))
428 (native-inputs `(("python" ,python-2)))
429 (inputs
430 `(("samtools" ,samtools)
431 ("zlib" ,zlib)))
432 (home-page "https://github.com/arq5x/bedtools2")
433 (synopsis "Tools for genome analysis and arithmetic")
434 (description
435 "Collectively, the bedtools utilities are a swiss-army knife of tools for
436 a wide-range of genomics analysis tasks. The most widely-used tools enable
437 genome arithmetic: that is, set theory on the genome. For example, bedtools
438 allows one to intersect, merge, count, complement, and shuffle genomic
439 intervals from multiple files in widely-used genomic file formats such as BAM,
440 BED, GFF/GTF, VCF.")
441 (license license:gpl2)))
442
443 ;; Later releases of bedtools produce files with more columns than
444 ;; what Ribotaper expects.
445 (define-public bedtools-2.18
446 (package (inherit bedtools)
447 (name "bedtools")
448 (version "2.18.0")
449 (source (origin
450 (method url-fetch)
451 (uri (string-append "https://github.com/arq5x/bedtools2/"
452 "releases/download/v" version
453 "/bedtools-" version ".tar.gz"))
454 (sha256
455 (base32
456 "11rvca19ncg03kxd0wzlfx5ws7r3nisd0z8s9j9n182d8ksp2pxz"))))
457 (arguments
458 '(#:test-target "test"
459 #:phases
460 (modify-phases %standard-phases
461 (delete 'configure)
462 (replace 'install
463 (lambda* (#:key outputs #:allow-other-keys)
464 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
465 (for-each (lambda (file)
466 (install-file file bin))
467 (find-files "bin" ".*")))
468 #t)))))))
469
470 ;; Needed for pybedtools.
471 (define-public bedtools-2.26
472 (package (inherit bedtools)
473 (name "bedtools")
474 (version "2.26.0")
475 (source (origin
476 (method url-fetch)
477 (uri (string-append "https://github.com/arq5x/bedtools2/releases/"
478 "download/v" version "/"
479 "bedtools-" version ".tar.gz"))
480 (sha256
481 (base32
482 "0jhavwifnf7lmkb11h9y7dynr8d699h0rd2l52j1pfgircr2zwv5"))))))
483
484 (define-public pbbam
485 (package
486 (name "pbbam")
487 (version "0.23.0")
488 (source (origin
489 (method git-fetch)
490 (uri (git-reference
491 (url "https://github.com/PacificBiosciences/pbbam.git")
492 (commit version)))
493 (file-name (git-file-name name version))
494 (sha256
495 (base32
496 "0h9gkrpf2lrxklxp72xfl5bi3h5zcm5hprrya9gf0hr3xwlbpp0x"))))
497 (build-system meson-build-system)
498 (arguments
499 `(#:phases
500 (modify-phases %standard-phases
501 (add-after 'unpack 'find-googletest
502 (lambda* (#:key inputs #:allow-other-keys)
503 ;; It doesn't find gtest_main because there's no pkg-config file
504 ;; for it. Find it another way.
505 (substitute* "tests/meson.build"
506 (("pbbam_gtest_dep = dependency\\('gtest_main'.*")
507 (format #f "cpp = meson.get_compiler('cpp')
508 pbbam_gtest_dep = cpp.find_library('gtest_main', dirs : '~a')\n"
509 (assoc-ref inputs "googletest"))))
510 #t)))
511 ;; TODO: tests/pbbam_test cannot be linked
512 ;; ld: tests/59830eb@@pbbam_test@exe/src_test_Accuracy.cpp.o:
513 ;; undefined reference to symbol '_ZTIN7testing4TestE'
514 ;; ld: /gnu/store/...-googletest-1.8.0/lib/libgtest.so:
515 ;; error adding symbols: DSO missing from command line
516 #:tests? #f
517 #:configure-flags '("-Dtests=false")))
518 ;; These libraries are listed as "Required" in the pkg-config file.
519 (propagated-inputs
520 `(("htslib" ,htslib)
521 ("zlib" ,zlib)))
522 (inputs
523 `(("boost" ,boost)
524 ("samtools" ,samtools)))
525 (native-inputs
526 `(("googletest" ,googletest)
527 ("pkg-config" ,pkg-config)
528 ("python" ,python-wrapper))) ; for tests
529 (home-page "https://github.com/PacificBiosciences/pbbam")
530 (synopsis "Work with PacBio BAM files")
531 (description
532 "The pbbam software package provides components to create, query, and
533 edit PacBio BAM files and associated indices. These components include a core
534 C++ library, bindings for additional languages, and command-line utilities.
535 This library is not intended to be used as a general-purpose BAM utility - all
536 input and output BAMs must adhere to the PacBio BAM format specification.
537 Non-PacBio BAMs will cause exceptions to be thrown.")
538 (license license:bsd-3)))
539
540 (define-public blasr-libcpp
541 (package
542 (name "blasr-libcpp")
543 (version "5.3.3")
544 (source (origin
545 (method git-fetch)
546 (uri (git-reference
547 (url "https://github.com/PacificBiosciences/blasr_libcpp.git")
548 (commit version)))
549 (file-name (git-file-name name version))
550 (sha256
551 (base32
552 "0cn5l42zyq67sj0g2imqkhayz2iqvv0a1pgpbmlq0qynjmsrbfd2"))))
553 (build-system meson-build-system)
554 (arguments
555 `(#:phases
556 (modify-phases %standard-phases
557 (add-after 'unpack 'link-with-hdf5
558 (lambda* (#:key inputs #:allow-other-keys)
559 (let ((hdf5 (assoc-ref inputs "hdf5")))
560 (substitute* "meson.build"
561 (("libblasr_deps = \\[" m)
562 (string-append
563 m
564 (format #f "cpp.find_library('hdf5', dirs : '~a'), \
565 cpp.find_library('hdf5_cpp', dirs : '~a'), "
566 hdf5 hdf5)))))
567 #t))
568 (add-after 'unpack 'find-googletest
569 (lambda* (#:key inputs #:allow-other-keys)
570 ;; It doesn't find gtest_main because there's no pkg-config file
571 ;; for it. Find it another way.
572 (substitute* "unittest/meson.build"
573 (("libblasr_gtest_dep = dependency\\('gtest_main'.*")
574 (format #f "cpp = meson.get_compiler('cpp')
575 libblasr_gtest_dep = cpp.find_library('gtest_main', dirs : '~a')\n"
576 (assoc-ref inputs "googletest"))))
577 #t)))
578 ;; TODO: unittest/libblasr_unittest cannot be linked
579 ;; ld: ;; unittest/df08227@@libblasr_unittest@exe/alignment_utils_FileUtils_gtest.cpp.o:
580 ;; undefined reference to symbol
581 ;; '_ZN7testing8internal9DeathTest6CreateEPKcPKNS0_2REES3_iPPS1_'
582 ;; ld: /gnu/store/...-googletest-1.8.0/lib/libgtest.so:
583 ;; error adding symbols: DSO missing from command line
584 #:tests? #f
585 #:configure-flags '("-Dtests=false")))
586 (inputs
587 `(("boost" ,boost)
588 ("hdf5" ,hdf5)
589 ("pbbam" ,pbbam)
590 ("zlib" ,zlib)))
591 (native-inputs
592 `(("googletest" ,googletest)
593 ("pkg-config" ,pkg-config)))
594 (home-page "https://github.com/PacificBiosciences/blasr_libcpp")
595 (synopsis "Library for analyzing PacBio genomic sequences")
596 (description
597 "This package provides three libraries used by applications for analyzing
598 PacBio genomic sequences. This library contains three sub-libraries: pbdata,
599 hdf and alignment.")
600 (license license:bsd-3)))
601
602 (define-public blasr
603 (package
604 (name "blasr")
605 (version "5.3.3")
606 (source (origin
607 (method git-fetch)
608 (uri (git-reference
609 (url "https://github.com/PacificBiosciences/blasr.git")
610 (commit version)))
611 (file-name (git-file-name name version))
612 (sha256
613 (base32
614 "1skgy2mvz8gsgfh1gc2nfgwvpyzb1hpmp2cf2773h5wsj8nw22kl"))))
615 (build-system meson-build-system)
616 (arguments
617 `(#:phases
618 (modify-phases %standard-phases
619 (add-after 'unpack 'link-with-hdf5
620 (lambda* (#:key inputs #:allow-other-keys)
621 (let ((hdf5 (assoc-ref inputs "hdf5")))
622 (substitute* "meson.build"
623 (("blasr_deps = \\[" m)
624 (string-append
625 m
626 (format #f "cpp.find_library('hdf5', dirs : '~a'), \
627 cpp.find_library('hdf5_cpp', dirs : '~a'), "
628 hdf5 hdf5)))))
629 #t)))
630 ;; Tests require "cram" executable, which is not packaged.
631 #:tests? #f
632 #:configure-flags '("-Dtests=false")))
633 (inputs
634 `(("boost" ,boost)
635 ("blasr-libcpp" ,blasr-libcpp)
636 ("hdf5" ,hdf5)
637 ("pbbam" ,pbbam)
638 ("zlib" ,zlib)))
639 (native-inputs
640 `(("pkg-config" ,pkg-config)))
641 (home-page "https://github.com/PacificBiosciences/blasr")
642 (synopsis "PacBio long read aligner")
643 (description
644 "Blasr is a genomic sequence aligner for processing PacBio long reads.")
645 (license license:bsd-3)))
646
647 (define-public ribotaper
648 (package
649 (name "ribotaper")
650 (version "1.3.1")
651 (source (origin
652 (method url-fetch)
653 (uri (string-append "https://ohlerlab.mdc-berlin.de/"
654 "files/RiboTaper/RiboTaper_Version_"
655 version ".tar.gz"))
656 (sha256
657 (base32
658 "0ykjbps1y3z3085q94npw8i9x5gldc6shy8vlc08v76zljsm07hv"))))
659 (build-system gnu-build-system)
660 (arguments
661 `(#:phases
662 (modify-phases %standard-phases
663 (add-after 'install 'wrap-executables
664 (lambda* (#:key inputs outputs #:allow-other-keys)
665 (let* ((out (assoc-ref outputs "out")))
666 (for-each
667 (lambda (script)
668 (wrap-program (string-append out "/bin/" script)
669 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
670 '("create_annotations_files.bash"
671 "create_metaplots.bash"
672 "Ribotaper_ORF_find.sh"
673 "Ribotaper.sh")))
674 #t)))))
675 (inputs
676 `(("bedtools" ,bedtools-2.18)
677 ("samtools" ,samtools-0.1)
678 ("r-minimal" ,r-minimal)
679 ("r-foreach" ,r-foreach)
680 ("r-xnomial" ,r-xnomial)
681 ("r-domc" ,r-domc)
682 ("r-multitaper" ,r-multitaper)
683 ("r-seqinr" ,r-seqinr)))
684 (home-page "https://ohlerlab.mdc-berlin.de/software/RiboTaper_126/")
685 (synopsis "Define translated ORFs using ribosome profiling data")
686 (description
687 "Ribotaper is a method for defining translated @dfn{open reading
688 frames} (ORFs) using ribosome profiling (ribo-seq) data. This package
689 provides the Ribotaper pipeline.")
690 (license license:gpl3+)))
691
692 (define-public ribodiff
693 (package
694 (name "ribodiff")
695 (version "0.2.2")
696 (source
697 (origin
698 (method git-fetch)
699 (uri (git-reference
700 (url "https://github.com/ratschlab/RiboDiff.git")
701 (commit (string-append "v" version))))
702 (file-name (git-file-name name version))
703 (sha256
704 (base32
705 "0x75nlp7qnmm64jasbi6l21f2cy99r2cjyl6b4hr8zf2bq22drnz"))))
706 (build-system python-build-system)
707 (arguments
708 `(#:python ,python-2
709 #:phases
710 (modify-phases %standard-phases
711 ;; Generate an installable executable script wrapper.
712 (add-after 'unpack 'patch-setup.py
713 (lambda _
714 (substitute* "setup.py"
715 (("^(.*)packages=.*" line prefix)
716 (string-append line "\n"
717 prefix "scripts=['scripts/TE.py'],\n")))
718 #t)))))
719 (inputs
720 `(("python-numpy" ,python2-numpy)
721 ("python-matplotlib" ,python2-matplotlib)
722 ("python-scipy" ,python2-scipy)
723 ("python-statsmodels" ,python2-statsmodels)))
724 (native-inputs
725 `(("python-mock" ,python2-mock)
726 ("python-nose" ,python2-nose)))
727 (home-page "http://public.bmi.inf.ethz.ch/user/zhongy/RiboDiff/")
728 (synopsis "Detect translation efficiency changes from ribosome footprints")
729 (description "RiboDiff is a statistical tool that detects the protein
730 translational efficiency change from Ribo-Seq (ribosome footprinting) and
731 RNA-Seq data. It uses a generalized linear model to detect genes showing
732 difference in translational profile taking mRNA abundance into account. It
733 facilitates us to decipher the translational regulation that behave
734 independently with transcriptional regulation.")
735 (license license:gpl3+)))
736
737 (define-public bioawk
738 (package
739 (name "bioawk")
740 (version "1.0")
741 (source (origin
742 (method git-fetch)
743 (uri (git-reference
744 (url "https://github.com/lh3/bioawk.git")
745 (commit (string-append "v" version))))
746 (file-name (git-file-name name version))
747 (sha256
748 (base32
749 "1pxc3zdnirxbf9a0az698hd8xdik7qkhypm7v6hn922x8y9qmspm"))))
750 (build-system gnu-build-system)
751 (inputs
752 `(("zlib" ,zlib)))
753 (native-inputs
754 `(("bison" ,bison)))
755 (arguments
756 `(#:tests? #f ; There are no tests to run.
757 ;; Bison must generate files, before other targets can build.
758 #:parallel-build? #f
759 #:phases
760 (modify-phases %standard-phases
761 (delete 'configure) ; There is no configure phase.
762 (replace 'install
763 (lambda* (#:key outputs #:allow-other-keys)
764 (let* ((out (assoc-ref outputs "out"))
765 (bin (string-append out "/bin"))
766 (man (string-append out "/share/man/man1")))
767 (mkdir-p man)
768 (copy-file "awk.1" (string-append man "/bioawk.1"))
769 (install-file "bioawk" bin))
770 #t)))))
771 (home-page "https://github.com/lh3/bioawk")
772 (synopsis "AWK with bioinformatics extensions")
773 (description "Bioawk is an extension to Brian Kernighan's awk, adding the
774 support of several common biological data formats, including optionally gzip'ed
775 BED, GFF, SAM, VCF, FASTA/Q and TAB-delimited formats with column names. It
776 also adds a few built-in functions and a command line option to use TAB as the
777 input/output delimiter. When the new functionality is not used, bioawk is
778 intended to behave exactly the same as the original BWK awk.")
779 (license license:x11)))
780
781 (define-public python-pybedtools
782 (package
783 (name "python-pybedtools")
784 (version "0.8.0")
785 (source (origin
786 (method url-fetch)
787 (uri (pypi-uri "pybedtools" version))
788 (sha256
789 (base32
790 "1xl454ijvd4dzfvqgfahad49b49j7qy710fq9xh1rvk42z6x5ssf"))))
791 (build-system python-build-system)
792 (arguments
793 `(#:modules ((ice-9 ftw)
794 (srfi srfi-1)
795 (srfi srfi-26)
796 (guix build utils)
797 (guix build python-build-system))
798 ;; See https://github.com/daler/pybedtools/issues/192
799 #:phases
800 (modify-phases %standard-phases
801 ;; See https://github.com/daler/pybedtools/issues/261
802 (add-after 'unpack 'disable-broken-tests
803 (lambda _
804 ;; This test (pybedtools.test.test_scripts.test_venn_mpl) needs a
805 ;; graphical environment.
806 (substitute* "pybedtools/test/test_scripts.py"
807 (("def test_venn_mpl")
808 "def _do_not_test_venn_mpl"))
809 (substitute* "pybedtools/test/test_helpers.py"
810 ;; Requires internet access.
811 (("def test_chromsizes")
812 "def _do_not_test_chromsizes")
813 ;; Broken as a result of the workaround used in the check phase
814 ;; (see: https://github.com/daler/pybedtools/issues/192).
815 (("def test_getting_example_beds")
816 "def _do_not_test_getting_example_beds"))
817 #t))
818 ;; TODO: Remove phase after it's part of PYTHON-BUILD-SYSTEM.
819 ;; build system.
820 ;; Force the Cythonization of C++ files to guard against compilation
821 ;; problems.
822 (add-after 'unpack 'remove-cython-generated-files
823 (lambda _
824 (let ((cython-sources (map (cut string-drop-right <> 4)
825 (find-files "." "\\.pyx$")))
826 (c/c++-files (find-files "." "\\.(c|cpp|cxx)$")))
827 (define (strip-extension filename)
828 (string-take filename (string-index-right filename #\.)))
829 (define (cythonized? c/c++-file)
830 (member (strip-extension c/c++-file) cython-sources))
831 (for-each delete-file (filter cythonized? c/c++-files))
832 #t)))
833 (add-after 'remove-cython-generated-files 'generate-cython-extensions
834 (lambda _
835 (invoke "python" "setup.py" "cythonize")))
836 (replace 'check
837 (lambda _
838 (let* ((cwd (getcwd))
839 (build-root-directory (string-append cwd "/build/"))
840 (build (string-append
841 build-root-directory
842 (find (cut string-prefix? "lib" <>)
843 (scandir (string-append
844 build-root-directory)))))
845 (scripts (string-append
846 build-root-directory
847 (find (cut string-prefix? "scripts" <>)
848 (scandir build-root-directory)))))
849 (setenv "PYTHONPATH"
850 (string-append build ":" (getenv "PYTHONPATH")))
851 ;; Executable scripts such as 'intron_exon_reads.py' must be
852 ;; available in the PATH.
853 (setenv "PATH"
854 (string-append scripts ":" (getenv "PATH"))))
855 ;; The tests need to be run from elsewhere...
856 (mkdir-p "/tmp/test")
857 (copy-recursively "pybedtools/test" "/tmp/test")
858 (with-directory-excursion "/tmp/test"
859 (invoke "pytest")))))))
860 (propagated-inputs
861 `(("bedtools" ,bedtools)
862 ("samtools" ,samtools)
863 ("python-matplotlib" ,python-matplotlib)
864 ("python-pysam" ,python-pysam)
865 ("python-pyyaml" ,python-pyyaml)))
866 (native-inputs
867 `(("python-numpy" ,python-numpy)
868 ("python-pandas" ,python-pandas)
869 ("python-cython" ,python-cython)
870 ("kentutils" ,kentutils) ; for bedGraphToBigWig
871 ("python-six" ,python-six)
872 ;; For the test suite.
873 ("python-pytest" ,python-pytest)
874 ("python-psutil" ,python-psutil)))
875 (home-page "https://pythonhosted.org/pybedtools/")
876 (synopsis "Python wrapper for BEDtools programs")
877 (description
878 "pybedtools is a Python wrapper for Aaron Quinlan's BEDtools programs,
879 which are widely used for genomic interval manipulation or \"genome algebra\".
880 pybedtools extends BEDTools by offering feature-level manipulations from with
881 Python.")
882 (license license:gpl2+)))
883
884 (define-public python2-pybedtools
885 (package-with-python2 python-pybedtools))
886
887 (define-public python-biom-format
888 (package
889 (name "python-biom-format")
890 (version "2.1.7")
891 (source
892 (origin
893 (method git-fetch)
894 ;; Use GitHub as source because PyPI distribution does not contain
895 ;; test data: https://github.com/biocore/biom-format/issues/693
896 (uri (git-reference
897 (url "https://github.com/biocore/biom-format.git")
898 (commit version)))
899 (file-name (git-file-name name version))
900 (sha256
901 (base32
902 "1rna16lyk5aqhnv0dp77wwaplias93f1vw28ad3jmyw6hwkai05v"))
903 (modules '((guix build utils)))
904 (snippet '(begin
905 ;; Delete generated C files.
906 (for-each delete-file (find-files "." "\\.c"))
907 #t))))
908 (build-system python-build-system)
909 (arguments
910 `(#:phases
911 (modify-phases %standard-phases
912 (add-after 'unpack 'use-cython
913 (lambda _ (setenv "USE_CYTHON" "1") #t))
914 (add-after 'unpack 'disable-broken-tests
915 (lambda _
916 (substitute* "biom/tests/test_cli/test_validate_table.py"
917 (("^(.+)def test_invalid_hdf5" m indent)
918 (string-append indent
919 "@npt.dec.skipif(True, msg='Guix')\n"
920 m)))
921 (substitute* "biom/tests/test_table.py"
922 (("^(.+)def test_from_hdf5_issue_731" m indent)
923 (string-append indent
924 "@npt.dec.skipif(True, msg='Guix')\n"
925 m)))
926 #t))
927 (add-before 'reset-gzip-timestamps 'make-files-writable
928 (lambda* (#:key outputs #:allow-other-keys)
929 (let ((out (assoc-ref outputs "out")))
930 (for-each (lambda (file) (chmod file #o644))
931 (find-files out "\\.gz"))
932 #t))))))
933 (propagated-inputs
934 `(("python-numpy" ,python-numpy)
935 ("python-scipy" ,python-scipy)
936 ("python-flake8" ,python-flake8)
937 ("python-future" ,python-future)
938 ("python-click" ,python-click)
939 ("python-h5py" ,python-h5py)
940 ("python-pandas" ,python-pandas)))
941 (native-inputs
942 `(("python-cython" ,python-cython)
943 ("python-pytest" ,python-pytest)
944 ("python-pytest-cov" ,python-pytest-cov)
945 ("python-nose" ,python-nose)))
946 (home-page "http://www.biom-format.org")
947 (synopsis "Biological Observation Matrix (BIOM) format utilities")
948 (description
949 "The BIOM file format is designed to be a general-use format for
950 representing counts of observations e.g. operational taxonomic units, KEGG
951 orthology groups or lipid types, in one or more biological samples
952 e.g. microbiome samples, genomes, metagenomes.")
953 (license license:bsd-3)
954 (properties `((python2-variant . ,(delay python2-biom-format))))))
955
956 (define-public python2-biom-format
957 (let ((base (package-with-python2 (strip-python2-variant python-biom-format))))
958 (package
959 (inherit base)
960 (arguments
961 (substitute-keyword-arguments (package-arguments base)
962 ((#:phases phases)
963 `(modify-phases ,phases
964 ;; Do not require the unmaintained pyqi library.
965 (add-after 'unpack 'remove-pyqi
966 (lambda _
967 (substitute* "setup.py"
968 (("install_requires.append\\(\"pyqi\"\\)") "pass"))
969 #t)))))))))
970
971 (define-public bioperl-minimal
972 (let* ((inputs `(("perl-module-build" ,perl-module-build)
973 ("perl-data-stag" ,perl-data-stag)
974 ("perl-libwww" ,perl-libwww)
975 ("perl-uri" ,perl-uri)))
976 (transitive-inputs
977 (map (compose package-name cadr)
978 (delete-duplicates
979 (concatenate
980 (map (compose package-transitive-target-inputs cadr) inputs))))))
981 (package
982 (name "bioperl-minimal")
983 (version "1.7.0")
984 (source
985 (origin
986 (method url-fetch)
987 (uri (string-append "https://github.com/bioperl/bioperl-live/"
988 "archive/release-"
989 (string-map (lambda (c)
990 (if (char=? c #\.)
991 #\- c)) version)
992 ".tar.gz"))
993 (sha256
994 (base32
995 "12phgpxwgkqflkwfb9dcqg7a31dpjlfhar8wcgv0aj5ln4akfz06"))))
996 (build-system perl-build-system)
997 (arguments
998 `(#:phases
999 (modify-phases %standard-phases
1000 (add-after
1001 'install 'wrap-programs
1002 (lambda* (#:key outputs #:allow-other-keys)
1003 ;; Make sure all executables in "bin" find the required Perl
1004 ;; modules at runtime. As the PERL5LIB variable contains also
1005 ;; the paths of native inputs, we pick the transitive target
1006 ;; inputs from %build-inputs.
1007 (let* ((out (assoc-ref outputs "out"))
1008 (bin (string-append out "/bin/"))
1009 (path (string-join
1010 (cons (string-append out "/lib/perl5/site_perl")
1011 (map (lambda (name)
1012 (assoc-ref %build-inputs name))
1013 ',transitive-inputs))
1014 ":")))
1015 (for-each (lambda (file)
1016 (wrap-program file
1017 `("PERL5LIB" ":" prefix (,path))))
1018 (find-files bin "\\.pl$"))
1019 #t))))))
1020 (inputs inputs)
1021 (native-inputs
1022 `(("perl-test-most" ,perl-test-most)))
1023 (home-page "https://metacpan.org/release/BioPerl")
1024 (synopsis "Bioinformatics toolkit")
1025 (description
1026 "BioPerl is the product of a community effort to produce Perl code which
1027 is useful in biology. Examples include Sequence objects, Alignment objects
1028 and database searching objects. These objects not only do what they are
1029 advertised to do in the documentation, but they also interact - Alignment
1030 objects are made from the Sequence objects, Sequence objects have access to
1031 Annotation and SeqFeature objects and databases, Blast objects can be
1032 converted to Alignment objects, and so on. This means that the objects
1033 provide a coordinated and extensible framework to do computational biology.")
1034 (license license:perl-license))))
1035
1036 (define-public python-biopython
1037 (package
1038 (name "python-biopython")
1039 (version "1.70")
1040 (source (origin
1041 (method url-fetch)
1042 ;; use PyPi rather than biopython.org to ease updating
1043 (uri (pypi-uri "biopython" version))
1044 (sha256
1045 (base32
1046 "0nz4n9d2y2dg849gn1z0vjlkwcpzzkzy3fij7x94a6ixy2c54z2a"))))
1047 (build-system python-build-system)
1048 (arguments
1049 `(#:phases
1050 (modify-phases %standard-phases
1051 (add-before 'check 'set-home
1052 ;; Some tests require a home directory to be set.
1053 (lambda _ (setenv "HOME" "/tmp") #t)))))
1054 (propagated-inputs
1055 `(("python-numpy" ,python-numpy)))
1056 (home-page "http://biopython.org/")
1057 (synopsis "Tools for biological computation in Python")
1058 (description
1059 "Biopython is a set of tools for biological computation including parsers
1060 for bioinformatics files into Python data structures; interfaces to common
1061 bioinformatics programs; a standard sequence class and tools for performing
1062 common operations on them; code to perform data classification; code for
1063 dealing with alignments; code making it easy to split up parallelizable tasks
1064 into separate processes; and more.")
1065 (license (license:non-copyleft "http://www.biopython.org/DIST/LICENSE"))))
1066
1067 (define-public python2-biopython
1068 (package-with-python2 python-biopython))
1069
1070 (define-public python-fastalite
1071 (package
1072 (name "python-fastalite")
1073 (version "0.3")
1074 (source
1075 (origin
1076 (method url-fetch)
1077 (uri (pypi-uri "fastalite" version))
1078 (sha256
1079 (base32
1080 "1qli6pxp77i9xn2wfciq2zaxhl82bdxb33cpzqzj1z25yd036wqj"))))
1081 (build-system python-build-system)
1082 (arguments
1083 `(#:tests? #f)) ; Test data is not distributed.
1084 (home-page "https://github.com/nhoffman/fastalite")
1085 (synopsis "Simplest possible FASTA parser")
1086 (description "This library implements a FASTA and a FASTQ parser without
1087 relying on a complex dependency tree.")
1088 (license license:expat)))
1089
1090 (define-public python2-fastalite
1091 (package-with-python2 python-fastalite))
1092
1093 (define-public bpp-core
1094 ;; The last release was in 2014 and the recommended way to install from source
1095 ;; is to clone the git repository, so we do this.
1096 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1097 (let ((commit "7d8bced0d1a87291ea8dd7046b7fb5ff9c35c582"))
1098 (package
1099 (name "bpp-core")
1100 (version (string-append "2.2.0-1." (string-take commit 7)))
1101 (source (origin
1102 (method git-fetch)
1103 (uri (git-reference
1104 (url "http://biopp.univ-montp2.fr/git/bpp-core")
1105 (commit commit)))
1106 (file-name (string-append name "-" version "-checkout"))
1107 (sha256
1108 (base32
1109 "10djsq5vlnkilv436gnmh4irpk49v29pa69r6xiryg32xmvn909j"))))
1110 (build-system cmake-build-system)
1111 (arguments
1112 `(#:parallel-build? #f))
1113 (home-page "http://biopp.univ-montp2.fr")
1114 (synopsis "C++ libraries for Bioinformatics")
1115 (description
1116 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1117 analysis, phylogenetics, molecular evolution and population genetics. It is
1118 Object Oriented and is designed to be both easy to use and computer efficient.
1119 Bio++ intends to help programmers to write computer expensive programs, by
1120 providing them a set of re-usable tools.")
1121 (license license:cecill-c))))
1122
1123 (define-public bpp-phyl
1124 ;; The last release was in 2014 and the recommended way to install from source
1125 ;; is to clone the git repository, so we do this.
1126 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1127 (let ((commit "0c07167b629f68b569bf274d1ad0c4af83276ae2"))
1128 (package
1129 (name "bpp-phyl")
1130 (version (string-append "2.2.0-1." (string-take commit 7)))
1131 (source (origin
1132 (method git-fetch)
1133 (uri (git-reference
1134 (url "http://biopp.univ-montp2.fr/git/bpp-phyl")
1135 (commit commit)))
1136 (file-name (string-append name "-" version "-checkout"))
1137 (sha256
1138 (base32
1139 "1ssjgchzwj3iai26kyly7gwkdv8sk59nqhkb1wpap3sf5m6kyllh"))))
1140 (build-system cmake-build-system)
1141 (arguments
1142 `(#:parallel-build? #f
1143 ;; If out-of-source, test data is not copied into the build directory
1144 ;; so the tests fail.
1145 #:out-of-source? #f))
1146 (inputs
1147 `(("bpp-core" ,bpp-core)
1148 ("bpp-seq" ,bpp-seq)))
1149 (home-page "http://biopp.univ-montp2.fr")
1150 (synopsis "Bio++ phylogenetic Library")
1151 (description
1152 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1153 analysis, phylogenetics, molecular evolution and population genetics. This
1154 library provides phylogenetics-related modules.")
1155 (license license:cecill-c))))
1156
1157 (define-public bpp-popgen
1158 ;; The last release was in 2014 and the recommended way to install from source
1159 ;; is to clone the git repository, so we do this.
1160 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1161 (let ((commit "e472bac9b1a148803895d747cd6d0c5904f85d9f"))
1162 (package
1163 (name "bpp-popgen")
1164 (version (string-append "2.2.0-1." (string-take commit 7)))
1165 (source (origin
1166 (method git-fetch)
1167 (uri (git-reference
1168 (url "http://biopp.univ-montp2.fr/git/bpp-popgen")
1169 (commit commit)))
1170 (file-name (string-append name "-" version "-checkout"))
1171 (sha256
1172 (base32
1173 "0yn82dzn1n5629nzja68xfrhi655709rjanyryb36vzkmymy6dw5"))))
1174 (build-system cmake-build-system)
1175 (arguments
1176 `(#:parallel-build? #f
1177 #:tests? #f)) ; There are no tests.
1178 (inputs
1179 `(("bpp-core" ,bpp-core)
1180 ("bpp-seq" ,bpp-seq)))
1181 (home-page "http://biopp.univ-montp2.fr")
1182 (synopsis "Bio++ population genetics library")
1183 (description
1184 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1185 analysis, phylogenetics, molecular evolution and population genetics. This
1186 library provides population genetics-related modules.")
1187 (license license:cecill-c))))
1188
1189 (define-public bpp-seq
1190 ;; The last release was in 2014 and the recommended way to install from source
1191 ;; is to clone the git repository, so we do this.
1192 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1193 (let ((commit "6cfa07965ce152e5598a89df2fa80a75973bfa33"))
1194 (package
1195 (name "bpp-seq")
1196 (version (string-append "2.2.0-1." (string-take commit 7)))
1197 (source (origin
1198 (method git-fetch)
1199 (uri (git-reference
1200 (url "http://biopp.univ-montp2.fr/git/bpp-seq")
1201 (commit commit)))
1202 (file-name (string-append name "-" version "-checkout"))
1203 (sha256
1204 (base32
1205 "1nys5jq7jqvdg40d91wsmj3q2yzy4276cp7sp44n67p468f27zf2"))))
1206 (build-system cmake-build-system)
1207 (arguments
1208 `(#:parallel-build? #f
1209 ;; If out-of-source, test data is not copied into the build directory
1210 ;; so the tests fail.
1211 #:out-of-source? #f))
1212 (inputs
1213 `(("bpp-core" ,bpp-core)))
1214 (home-page "http://biopp.univ-montp2.fr")
1215 (synopsis "Bio++ sequence library")
1216 (description
1217 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1218 analysis, phylogenetics, molecular evolution and population genetics. This
1219 library provides sequence-related modules.")
1220 (license license:cecill-c))))
1221
1222 (define-public bppsuite
1223 ;; The last release was in 2014 and the recommended way to install from source
1224 ;; is to clone the git repository, so we do this.
1225 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1226 (let ((commit "c516147f57aa50961121cd505bed52cd7603698b"))
1227 (package
1228 (name "bppsuite")
1229 (version (string-append "2.2.0-1." (string-take commit 7)))
1230 (source (origin
1231 (method git-fetch)
1232 (uri (git-reference
1233 (url "http://biopp.univ-montp2.fr/git/bppsuite")
1234 (commit commit)))
1235 (file-name (string-append name "-" version "-checkout"))
1236 (sha256
1237 (base32
1238 "1y87pxvw0jxjizhq2dr9g2r91md45k1p9ih2sl1yy1y3p934l2kb"))))
1239 (build-system cmake-build-system)
1240 (arguments
1241 `(#:parallel-build? #f
1242 #:tests? #f)) ; There are no tests.
1243 (native-inputs
1244 `(("groff" ,groff)
1245 ("man-db" ,man-db)
1246 ("texinfo" ,texinfo)))
1247 (inputs
1248 `(("bpp-core" ,bpp-core)
1249 ("bpp-seq" ,bpp-seq)
1250 ("bpp-phyl" ,bpp-phyl)
1251 ("bpp-phyl" ,bpp-popgen)))
1252 (home-page "http://biopp.univ-montp2.fr")
1253 (synopsis "Bioinformatics tools written with the Bio++ libraries")
1254 (description
1255 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1256 analysis, phylogenetics, molecular evolution and population genetics. This
1257 package provides command line tools using the Bio++ library.")
1258 (license license:cecill-c))))
1259
1260 (define-public blast+
1261 (package
1262 (name "blast+")
1263 (version "2.7.1")
1264 (source (origin
1265 (method url-fetch)
1266 (uri (string-append
1267 "ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/"
1268 version "/ncbi-blast-" version "+-src.tar.gz"))
1269 (sha256
1270 (base32
1271 "1jlq0afxxgczpp35k6mxh8mn4jzq7vqcnaixk166sfj10wq8v9qh"))
1272 (modules '((guix build utils)))
1273 (snippet
1274 '(begin
1275 ;; Remove bundled bzip2, zlib and pcre.
1276 (delete-file-recursively "c++/src/util/compress/bzip2")
1277 (delete-file-recursively "c++/src/util/compress/zlib")
1278 (delete-file-recursively "c++/src/util/regexp")
1279 (substitute* "c++/src/util/compress/Makefile.in"
1280 (("bzip2 zlib api") "api"))
1281 ;; Remove useless msbuild directory
1282 (delete-file-recursively
1283 "c++/src/build-system/project_tree_builder/msbuild")
1284 #t))))
1285 (build-system gnu-build-system)
1286 (arguments
1287 `(;; There are two(!) tests for this massive library, and both fail with
1288 ;; "unparsable timing stats".
1289 ;; ERR [127] -- [serial/datatool] datatool.sh (unparsable timing stats)
1290 ;; ERR [127] -- [serial/datatool] datatool_xml.sh (unparsable timing stats)
1291 #:tests? #f
1292 #:out-of-source? #t
1293 #:parallel-build? #f ; not supported
1294 #:phases
1295 (modify-phases %standard-phases
1296 (add-before 'configure 'set-HOME
1297 ;; $HOME needs to be set at some point during the configure phase
1298 (lambda _ (setenv "HOME" "/tmp") #t))
1299 (add-after 'unpack 'enter-dir
1300 (lambda _ (chdir "c++") #t))
1301 (add-after 'enter-dir 'fix-build-system
1302 (lambda _
1303 (define (which* cmd)
1304 (cond ((string=? cmd "date")
1305 ;; make call to "date" deterministic
1306 "date -d @0")
1307 ((which cmd)
1308 => identity)
1309 (else
1310 (format (current-error-port)
1311 "WARNING: Unable to find absolute path for ~s~%"
1312 cmd)
1313 #f)))
1314
1315 ;; Rewrite hardcoded paths to various tools
1316 (substitute* (append '("src/build-system/configure.ac"
1317 "src/build-system/configure"
1318 "src/build-system/helpers/run_with_lock.c"
1319 "scripts/common/impl/if_diff.sh"
1320 "scripts/common/impl/run_with_lock.sh"
1321 "src/build-system/Makefile.configurables.real"
1322 "src/build-system/Makefile.in.top"
1323 "src/build-system/Makefile.meta.gmake=no"
1324 "src/build-system/Makefile.meta.in"
1325 "src/build-system/Makefile.meta_l"
1326 "src/build-system/Makefile.meta_p"
1327 "src/build-system/Makefile.meta_r"
1328 "src/build-system/Makefile.mk.in"
1329 "src/build-system/Makefile.requirements"
1330 "src/build-system/Makefile.rules_with_autodep.in")
1331 (find-files "scripts/common/check" "\\.sh$"))
1332 (("(/usr/bin/|/bin/)([a-z][-_.a-z]*)" all dir cmd)
1333 (or (which* cmd) all)))
1334
1335 (substitute* (find-files "src/build-system" "^config.*")
1336 (("LN_S=/bin/\\$LN_S") (string-append "LN_S=" (which "ln")))
1337 (("^PATH=.*") ""))
1338
1339 ;; rewrite "/var/tmp" in check script
1340 (substitute* "scripts/common/check/check_make_unix.sh"
1341 (("/var/tmp") "/tmp"))
1342
1343 ;; do not reset PATH
1344 (substitute* (find-files "scripts/common/impl/" "\\.sh$")
1345 (("^ *PATH=.*") "")
1346 (("action=/bin/") "action=")
1347 (("export PATH") ":"))
1348 #t))
1349 (replace 'configure
1350 (lambda* (#:key inputs outputs #:allow-other-keys)
1351 (let ((out (assoc-ref outputs "out"))
1352 (lib (string-append (assoc-ref outputs "lib") "/lib"))
1353 (include (string-append (assoc-ref outputs "include")
1354 "/include/ncbi-tools++")))
1355 ;; The 'configure' script doesn't recognize things like
1356 ;; '--enable-fast-install'.
1357 (invoke "./configure.orig"
1358 (string-append "--with-build-root=" (getcwd) "/build")
1359 (string-append "--prefix=" out)
1360 (string-append "--libdir=" lib)
1361 (string-append "--includedir=" include)
1362 (string-append "--with-bz2="
1363 (assoc-ref inputs "bzip2"))
1364 (string-append "--with-z="
1365 (assoc-ref inputs "zlib"))
1366 (string-append "--with-pcre="
1367 (assoc-ref inputs "pcre"))
1368 ;; Each library is built twice by default, once
1369 ;; with "-static" in its name, and again
1370 ;; without.
1371 "--without-static"
1372 "--with-dll")
1373 #t))))))
1374 (outputs '("out" ; 21 MB
1375 "lib" ; 226 MB
1376 "include")) ; 33 MB
1377 (inputs
1378 `(("bzip2" ,bzip2)
1379 ("lmdb" ,lmdb)
1380 ("zlib" ,zlib)
1381 ("pcre" ,pcre)
1382 ("perl" ,perl)
1383 ("python" ,python-wrapper)))
1384 (native-inputs
1385 `(("cpio" ,cpio)))
1386 (home-page "http://blast.ncbi.nlm.nih.gov")
1387 (synopsis "Basic local alignment search tool")
1388 (description
1389 "BLAST is a popular method of performing a DNA or protein sequence
1390 similarity search, using heuristics to produce results quickly. It also
1391 calculates an “expect value” that estimates how many matches would have
1392 occurred at a given score by chance, which can aid a user in judging how much
1393 confidence to have in an alignment.")
1394 ;; Most of the sources are in the public domain, with the following
1395 ;; exceptions:
1396 ;; * Expat:
1397 ;; * ./c++/include/util/bitset/
1398 ;; * ./c++/src/html/ncbi_menu*.js
1399 ;; * Boost license:
1400 ;; * ./c++/include/util/impl/floating_point_comparison.hpp
1401 ;; * LGPL 2+:
1402 ;; * ./c++/include/dbapi/driver/odbc/unix_odbc/
1403 ;; * ASL 2.0:
1404 ;; * ./c++/src/corelib/teamcity_*
1405 (license (list license:public-domain
1406 license:expat
1407 license:boost1.0
1408 license:lgpl2.0+
1409 license:asl2.0))))
1410
1411 (define-public bless
1412 (package
1413 (name "bless")
1414 (version "1p02")
1415 (source (origin
1416 (method url-fetch)
1417 (uri (string-append "mirror://sourceforge/bless-ec/bless.v"
1418 version ".tgz"))
1419 (sha256
1420 (base32
1421 "0rm0gw2s18dqwzzpl3c2x1z05ni2v0xz5dmfk3d33j6g4cgrlrdd"))
1422 (modules '((guix build utils)))
1423 (snippet
1424 `(begin
1425 ;; Remove bundled boost, pigz, zlib, and .git directory
1426 ;; FIXME: also remove bundled sources for murmurhash3 and
1427 ;; kmc once packaged.
1428 (delete-file-recursively "boost")
1429 (delete-file-recursively "pigz")
1430 (delete-file-recursively "google-sparsehash")
1431 (delete-file-recursively "zlib")
1432 (delete-file-recursively ".git")
1433 #t))))
1434 (build-system gnu-build-system)
1435 (arguments
1436 '(#:tests? #f ;no "check" target
1437 #:make-flags
1438 (list (string-append "ZLIB="
1439 (assoc-ref %build-inputs "zlib:static")
1440 "/lib/libz.a")
1441 (string-append "LDFLAGS="
1442 (string-join '("-lboost_filesystem"
1443 "-lboost_system"
1444 "-lboost_iostreams"
1445 "-lz"
1446 "-fopenmp"
1447 "-std=c++11"))))
1448 #:phases
1449 (modify-phases %standard-phases
1450 (add-after 'unpack 'do-not-build-bundled-pigz
1451 (lambda* (#:key inputs outputs #:allow-other-keys)
1452 (substitute* "Makefile"
1453 (("cd pigz/pigz-2.3.3; make") ""))
1454 #t))
1455 (add-after 'unpack 'patch-paths-to-executables
1456 (lambda* (#:key inputs outputs #:allow-other-keys)
1457 (substitute* "parse_args.cpp"
1458 (("kmc_binary = .*")
1459 (string-append "kmc_binary = \""
1460 (assoc-ref outputs "out")
1461 "/bin/kmc\";"))
1462 (("pigz_binary = .*")
1463 (string-append "pigz_binary = \""
1464 (assoc-ref inputs "pigz")
1465 "/bin/pigz\";")))
1466 #t))
1467 (replace 'install
1468 (lambda* (#:key outputs #:allow-other-keys)
1469 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
1470 (for-each (lambda (file)
1471 (install-file file bin))
1472 '("bless" "kmc/bin/kmc"))
1473 #t)))
1474 (delete 'configure))))
1475 (native-inputs
1476 `(("perl" ,perl)))
1477 (inputs
1478 `(("openmpi" ,openmpi)
1479 ("boost" ,boost)
1480 ("sparsehash" ,sparsehash)
1481 ("pigz" ,pigz)
1482 ("zlib:static" ,zlib "static")
1483 ("zlib" ,zlib)))
1484 (supported-systems '("x86_64-linux"))
1485 (home-page "https://sourceforge.net/p/bless-ec/wiki/Home/")
1486 (synopsis "Bloom-filter-based error correction tool for NGS reads")
1487 (description
1488 "@dfn{Bloom-filter-based error correction solution for high-throughput
1489 sequencing reads} (BLESS) uses a single minimum-sized bloom filter is a
1490 correction tool for genomic reads produced by @dfn{Next-generation
1491 sequencing} (NGS). BLESS produces accurate correction results with much less
1492 memory compared with previous solutions and is also able to tolerate a higher
1493 false-positive rate. BLESS can extend reads like DNA assemblers to correct
1494 errors at the end of reads.")
1495 (license license:gpl3+)))
1496
1497 (define-public bowtie
1498 (package
1499 (name "bowtie")
1500 (version "2.3.4.3")
1501 (source (origin
1502 (method git-fetch)
1503 (uri (git-reference
1504 (url "https://github.com/BenLangmead/bowtie2.git")
1505 (commit (string-append "v" version))))
1506 (file-name (git-file-name name version))
1507 (sha256
1508 (base32
1509 "1zl3cf327y2p7p03cavymbh7b00djc7lncfaqih33n96iy9q8ibp"))
1510 (modules '((guix build utils)))
1511 (snippet
1512 '(begin
1513 (substitute* "Makefile"
1514 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1515 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1516 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
1517 #t))))
1518 (build-system gnu-build-system)
1519 (arguments
1520 '(#:make-flags
1521 (list "allall"
1522 "WITH_TBB=1"
1523 (string-append "prefix=" (assoc-ref %outputs "out")))
1524 #:phases
1525 (modify-phases %standard-phases
1526 (delete 'configure)
1527 (replace 'check
1528 (lambda _
1529 (invoke "perl"
1530 "scripts/test/simple_tests.pl"
1531 "--bowtie2=./bowtie2"
1532 "--bowtie2-build=./bowtie2-build")
1533 #t)))))
1534 (inputs
1535 `(("tbb" ,tbb)
1536 ("zlib" ,zlib)
1537 ("python" ,python-wrapper)))
1538 (native-inputs
1539 `(("perl" ,perl)
1540 ("perl-clone" ,perl-clone)
1541 ("perl-test-deep" ,perl-test-deep)
1542 ("perl-test-simple" ,perl-test-simple)))
1543 (home-page "http://bowtie-bio.sourceforge.net/bowtie2/index.shtml")
1544 (synopsis "Fast and sensitive nucleotide sequence read aligner")
1545 (description
1546 "Bowtie 2 is a fast and memory-efficient tool for aligning sequencing
1547 reads to long reference sequences. It is particularly good at aligning reads
1548 of about 50 up to 100s or 1,000s of characters, and particularly good at
1549 aligning to relatively long (e.g. mammalian) genomes. Bowtie 2 indexes the
1550 genome with an FM Index to keep its memory footprint small: for the human
1551 genome, its memory footprint is typically around 3.2 GB. Bowtie 2 supports
1552 gapped, local, and paired-end alignment modes.")
1553 (supported-systems '("x86_64-linux"))
1554 (license license:gpl3+)))
1555
1556 (define-public bowtie1
1557 (package
1558 (name "bowtie1")
1559 (version "1.2.3")
1560 (source (origin
1561 (method url-fetch)
1562 (uri (string-append "mirror://sourceforge/bowtie-bio/bowtie/"
1563 version "/bowtie-src-x86_64.zip"))
1564 (sha256
1565 (base32
1566 "0vmiqdhc9dzyfy9sh6vgi7k9xy2hiw8g87vbamnc6cgpm179zsa4"))
1567 (modules '((guix build utils)))
1568 (snippet
1569 '(substitute* "Makefile"
1570 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1571 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1572 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\"")))))
1573 (build-system gnu-build-system)
1574 (arguments
1575 '(#:tests? #f ; no "check" target
1576 #:make-flags
1577 (list "all"
1578 (string-append "prefix=" (assoc-ref %outputs "out")))
1579 #:phases
1580 (modify-phases %standard-phases
1581 (delete 'configure))))
1582 (inputs
1583 `(("tbb" ,tbb)
1584 ("zlib" ,zlib)))
1585 (supported-systems '("x86_64-linux"))
1586 (home-page "http://bowtie-bio.sourceforge.net/index.shtml")
1587 (synopsis "Fast aligner for short nucleotide sequence reads")
1588 (description
1589 "Bowtie is a fast, memory-efficient short read aligner. It aligns short
1590 DNA sequences (reads) to the human genome at a rate of over 25 million 35-bp
1591 reads per hour. Bowtie indexes the genome with a Burrows-Wheeler index to
1592 keep its memory footprint small: typically about 2.2 GB for the human
1593 genome (2.9 GB for paired-end).")
1594 (license license:artistic2.0)))
1595
1596 (define-public tophat
1597 (package
1598 (name "tophat")
1599 (version "2.1.1")
1600 (source (origin
1601 (method url-fetch)
1602 (uri (string-append
1603 "http://ccb.jhu.edu/software/tophat/downloads/tophat-"
1604 version ".tar.gz"))
1605 (sha256
1606 (base32
1607 "19add02kv2xhd6ihd779dr7x35ggym3jqr0m5c4315i1yfb0p11p"))
1608 (modules '((guix build utils)))
1609 (snippet
1610 '(begin
1611 ;; Remove bundled SeqAn and samtools
1612 (delete-file-recursively "src/SeqAn-1.4.2")
1613 (delete-file-recursively "src/samtools-0.1.18")
1614 #t))))
1615 (build-system gnu-build-system)
1616 (arguments
1617 '(#:parallel-build? #f ; not supported
1618 #:phases
1619 (modify-phases %standard-phases
1620 (add-after 'unpack 'use-system-samtools
1621 (lambda* (#:key inputs #:allow-other-keys)
1622 (substitute* "src/Makefile.in"
1623 (("(noinst_LIBRARIES = )\\$\\(SAMLIB\\)" _ prefix) prefix)
1624 (("\\$\\(SAMPROG\\): \\$\\(SAMLIB\\)") "")
1625 (("SAMPROG = samtools_0\\.1\\.18") "")
1626 (("\\$\\(samtools_0_1_18_SOURCES\\)") "")
1627 (("am__EXEEXT_1 = samtools_0\\.1\\.18\\$\\(EXEEXT\\)") ""))
1628 (substitute* '("src/common.cpp"
1629 "src/tophat.py")
1630 (("samtools_0.1.18") (which "samtools")))
1631 (substitute* '("src/common.h"
1632 "src/bam2fastx.cpp")
1633 (("#include \"bam.h\"") "#include <samtools/bam.h>")
1634 (("#include \"sam.h\"") "#include <samtools/sam.h>"))
1635 (substitute* '("src/bwt_map.h"
1636 "src/map2gtf.h"
1637 "src/align_status.h")
1638 (("#include <bam.h>") "#include <samtools/bam.h>")
1639 (("#include <sam.h>") "#include <samtools/sam.h>"))
1640 #t)))))
1641 (inputs
1642 `(("boost" ,boost)
1643 ("bowtie" ,bowtie)
1644 ("samtools" ,samtools-0.1)
1645 ("ncurses" ,ncurses)
1646 ("python" ,python-2)
1647 ("perl" ,perl)
1648 ("zlib" ,zlib)
1649 ("seqan" ,seqan-1)))
1650 (home-page "http://ccb.jhu.edu/software/tophat/index.shtml")
1651 (synopsis "Spliced read mapper for RNA-Seq data")
1652 (description
1653 "TopHat is a fast splice junction mapper for nucleotide sequence
1654 reads produced by the RNA-Seq method. It aligns RNA-Seq reads to
1655 mammalian-sized genomes using the ultra high-throughput short read
1656 aligner Bowtie, and then analyzes the mapping results to identify
1657 splice junctions between exons.")
1658 ;; TopHat is released under the Boost Software License, Version 1.0
1659 ;; See https://github.com/infphilo/tophat/issues/11#issuecomment-121589893
1660 (license license:boost1.0)))
1661
1662 (define-public bwa
1663 (package
1664 (name "bwa")
1665 (version "0.7.17")
1666 (source (origin
1667 (method url-fetch)
1668 (uri (string-append
1669 "https://github.com/lh3/bwa/releases/download/v"
1670 version "/bwa-" version ".tar.bz2"))
1671 (sha256
1672 (base32
1673 "1zfhv2zg9v1icdlq4p9ssc8k01mca5d1bd87w71py2swfi74s6yy"))))
1674 (build-system gnu-build-system)
1675 (arguments
1676 '(#:tests? #f ;no "check" target
1677 #:phases
1678 (modify-phases %standard-phases
1679 (replace 'install
1680 (lambda* (#:key outputs #:allow-other-keys)
1681 (let ((bin (string-append
1682 (assoc-ref outputs "out") "/bin"))
1683 (doc (string-append
1684 (assoc-ref outputs "out") "/share/doc/bwa"))
1685 (man (string-append
1686 (assoc-ref outputs "out") "/share/man/man1")))
1687 (install-file "bwa" bin)
1688 (install-file "README.md" doc)
1689 (install-file "bwa.1" man))
1690 #t))
1691 ;; no "configure" script
1692 (delete 'configure))))
1693 (inputs `(("zlib" ,zlib)))
1694 ;; Non-portable SSE instructions are used so building fails on platforms
1695 ;; other than x86_64.
1696 (supported-systems '("x86_64-linux"))
1697 (home-page "http://bio-bwa.sourceforge.net/")
1698 (synopsis "Burrows-Wheeler sequence aligner")
1699 (description
1700 "BWA is a software package for mapping low-divergent sequences against a
1701 large reference genome, such as the human genome. It consists of three
1702 algorithms: BWA-backtrack, BWA-SW and BWA-MEM. The first algorithm is
1703 designed for Illumina sequence reads up to 100bp, while the rest two for
1704 longer sequences ranged from 70bp to 1Mbp. BWA-MEM and BWA-SW share similar
1705 features such as long-read support and split alignment, but BWA-MEM, which is
1706 the latest, is generally recommended for high-quality queries as it is faster
1707 and more accurate. BWA-MEM also has better performance than BWA-backtrack for
1708 70-100bp Illumina reads.")
1709 (license license:gpl3+)))
1710
1711 (define-public bwa-pssm
1712 (package (inherit bwa)
1713 (name "bwa-pssm")
1714 (version "0.5.11")
1715 (source (origin
1716 (method git-fetch)
1717 (uri (git-reference
1718 (url "https://github.com/pkerpedjiev/bwa-pssm.git")
1719 (commit version)))
1720 (file-name (git-file-name name version))
1721 (sha256
1722 (base32
1723 "076c4q0cdqz8jgylb067y9zmvxglppnzi3qiscn0xiypgc6lgb5r"))))
1724 (build-system gnu-build-system)
1725 (inputs
1726 `(("gdsl" ,gdsl)
1727 ("zlib" ,zlib)
1728 ("perl" ,perl)))
1729 (home-page "http://bwa-pssm.binf.ku.dk/")
1730 (synopsis "Burrows-Wheeler transform-based probabilistic short read mapper")
1731 (description
1732 "BWA-PSSM is a probabilistic short genomic sequence read aligner based on
1733 the use of @dfn{position specific scoring matrices} (PSSM). Like many of the
1734 existing aligners it is fast and sensitive. Unlike most other aligners,
1735 however, it is also adaptible in the sense that one can direct the alignment
1736 based on known biases within the data set. It is coded as a modification of
1737 the original BWA alignment program and shares the genome index structure as
1738 well as many of the command line options.")
1739 (license license:gpl3+)))
1740
1741 (define-public bwa-meth
1742 (package
1743 (name "bwa-meth")
1744 (version "0.2.2")
1745 (source (origin
1746 (method git-fetch)
1747 (uri (git-reference
1748 (url "https://github.com/brentp/bwa-meth.git")
1749 (commit (string-append "v" version))))
1750 (file-name (git-file-name name version))
1751 (sha256
1752 (base32
1753 "17j31i7zws5j7mhsq9x3qgkxly6mlmrgwhfq0qbflgxrmx04yaiz"))))
1754 (build-system python-build-system)
1755 (arguments
1756 `(#:phases
1757 (modify-phases %standard-phases
1758 (add-after 'unpack 'keep-references-to-bwa
1759 (lambda* (#:key inputs #:allow-other-keys)
1760 (substitute* "bwameth.py"
1761 (("bwa (mem|index)" _ command)
1762 (string-append (which "bwa") " " command))
1763 ;; There's an ill-advised check for "samtools" on PATH.
1764 (("^checkX.*") ""))
1765 #t)))))
1766 (inputs
1767 `(("bwa" ,bwa)))
1768 (native-inputs
1769 `(("python-toolshed" ,python-toolshed)))
1770 (home-page "https://github.com/brentp/bwa-meth")
1771 (synopsis "Fast and accurante alignment of BS-Seq reads")
1772 (description
1773 "BWA-Meth works for single-end reads and for paired-end reads from the
1774 directional protocol (most common). It uses the method employed by
1775 methylcoder and Bismark of in silico conversion of all C's to T's in both
1776 reference and reads. It recovers the original read (needed to tabulate
1777 methylation) by attaching it as a comment which BWA appends as a tag to the
1778 read. It performs favorably to existing aligners gauged by number of on and
1779 off-target reads for a capture method that targets CpG-rich region.")
1780 (license license:expat)))
1781
1782 (define-public python-bx-python
1783 (package
1784 (name "python-bx-python")
1785 (version "0.8.2")
1786 (source (origin
1787 (method url-fetch)
1788 (uri (pypi-uri "bx-python" version))
1789 (sha256
1790 (base32
1791 "11kksg2rbzihpmcid823xvg42xi88m7sz58rzk29abybkxy0rszs"))))
1792 (build-system python-build-system)
1793 ;; Tests fail because test data are not included
1794 (arguments '(#:tests? #f))
1795 (propagated-inputs
1796 `(("python-numpy" ,python-numpy)
1797 ("python-six" ,python-six)))
1798 (inputs
1799 `(("zlib" ,zlib)))
1800 (native-inputs
1801 `(("python-lzo" ,python-lzo)
1802 ("python-nose" ,python-nose)
1803 ("python-cython" ,python-cython)))
1804 (home-page "https://github.com/bxlab/bx-python")
1805 (synopsis "Tools for manipulating biological data")
1806 (description
1807 "bx-python provides tools for manipulating biological data, particularly
1808 multiple sequence alignments.")
1809 (license license:expat)))
1810
1811 (define-public python2-bx-python
1812 (package-with-python2 python-bx-python))
1813
1814 (define-public python-pysam
1815 (package
1816 (name "python-pysam")
1817 (version "0.15.1")
1818 (source (origin
1819 (method git-fetch)
1820 ;; Test data is missing on PyPi.
1821 (uri (git-reference
1822 (url "https://github.com/pysam-developers/pysam.git")
1823 (commit (string-append "v" version))))
1824 (file-name (git-file-name name version))
1825 (sha256
1826 (base32
1827 "1vj367w6xbn9bpmksm162l1aipf7cj97h1q83y7jcpm33ihwpf7x"))
1828 (modules '((guix build utils)))
1829 (snippet '(begin
1830 ;; Drop bundled htslib. TODO: Also remove samtools
1831 ;; and bcftools.
1832 (delete-file-recursively "htslib")
1833 #t))))
1834 (build-system python-build-system)
1835 (arguments
1836 `(#:modules ((ice-9 ftw)
1837 (srfi srfi-26)
1838 (guix build python-build-system)
1839 (guix build utils))
1840 #:phases
1841 (modify-phases %standard-phases
1842 (add-before 'build 'set-flags
1843 (lambda* (#:key inputs #:allow-other-keys)
1844 (setenv "HTSLIB_MODE" "external")
1845 (setenv "HTSLIB_LIBRARY_DIR"
1846 (string-append (assoc-ref inputs "htslib") "/lib"))
1847 (setenv "HTSLIB_INCLUDE_DIR"
1848 (string-append (assoc-ref inputs "htslib") "/include"))
1849 (setenv "LDFLAGS" "-lncurses")
1850 (setenv "CFLAGS" "-D_CURSES_LIB=1")
1851 #t))
1852 (replace 'check
1853 (lambda* (#:key inputs outputs #:allow-other-keys)
1854 ;; This file contains tests that require a connection to the
1855 ;; internet.
1856 (delete-file "tests/tabix_test.py")
1857 ;; FIXME: This test fails
1858 (delete-file "tests/AlignmentFile_test.py")
1859 ;; Add first subdirectory of "build" directory to PYTHONPATH.
1860 (setenv "PYTHONPATH"
1861 (string-append
1862 (getenv "PYTHONPATH")
1863 ":" (getcwd) "/build/"
1864 (car (scandir "build"
1865 (negate (cut string-prefix? "." <>))))))
1866 ;; Step out of source dir so python does not import from CWD.
1867 (with-directory-excursion "tests"
1868 (setenv "HOME" "/tmp")
1869 (invoke "make" "-C" "pysam_data")
1870 (invoke "make" "-C" "cbcf_data")
1871 ;; Running nosetests without explicitly asking for a single
1872 ;; process leads to a crash. Running with multiple processes
1873 ;; fails because the tests are not designed to run in parallel.
1874
1875 ;; FIXME: tests keep timing out on some systems.
1876 (invoke "nosetests" "-v" "--processes" "1")))))))
1877 (propagated-inputs
1878 `(("htslib" ,htslib))) ; Included from installed header files.
1879 (inputs
1880 `(("ncurses" ,ncurses)
1881 ("curl" ,curl)
1882 ("zlib" ,zlib)))
1883 (native-inputs
1884 `(("python-cython" ,python-cython)
1885 ;; Dependencies below are are for tests only.
1886 ("samtools" ,samtools)
1887 ("bcftools" ,bcftools)
1888 ("python-nose" ,python-nose)))
1889 (home-page "https://github.com/pysam-developers/pysam")
1890 (synopsis "Python bindings to the SAMtools C API")
1891 (description
1892 "Pysam is a Python module for reading and manipulating files in the
1893 SAM/BAM format. Pysam is a lightweight wrapper of the SAMtools C API. It
1894 also includes an interface for tabix.")
1895 (license license:expat)))
1896
1897 (define-public python2-pysam
1898 (package-with-python2 python-pysam))
1899
1900 (define-public python-twobitreader
1901 (package
1902 (name "python-twobitreader")
1903 (version "3.1.6")
1904 (source (origin
1905 (method git-fetch)
1906 (uri (git-reference
1907 (url "https://github.com/benjschiller/twobitreader")
1908 (commit version)))
1909 (file-name (git-file-name name version))
1910 (sha256
1911 (base32
1912 "1qbxvv1h58cismbk1anpjrkpghsaiy64a11ir3lhy6qch6xf8n62"))))
1913 (build-system python-build-system)
1914 ;; Tests are not included
1915 (arguments '(#:tests? #f))
1916 (native-inputs
1917 `(("python-sphinx" ,python-sphinx)))
1918 (home-page "https://github.com/benjschiller/twobitreader")
1919 (synopsis "Python library for reading .2bit files")
1920 (description
1921 "twobitreader is a Python library for reading .2bit files as used by the
1922 UCSC genome browser.")
1923 (license license:artistic2.0)))
1924
1925 (define-public python2-twobitreader
1926 (package-with-python2 python-twobitreader))
1927
1928 (define-public python-plastid
1929 (package
1930 (name "python-plastid")
1931 (version "0.4.8")
1932 (source (origin
1933 (method url-fetch)
1934 (uri (pypi-uri "plastid" version))
1935 (sha256
1936 (base32
1937 "0l24dd3q66if8yj042m4s0g95n6acn7im1imqd3p6h8ns43kxhj8"))))
1938 (build-system python-build-system)
1939 (arguments
1940 ;; Some test files are not included.
1941 `(#:tests? #f))
1942 (propagated-inputs
1943 `(("python-numpy" ,python-numpy)
1944 ("python-scipy" ,python-scipy)
1945 ("python-pandas" ,python-pandas)
1946 ("python-pysam" ,python-pysam)
1947 ("python-matplotlib" ,python-matplotlib)
1948 ("python-biopython" ,python-biopython)
1949 ("python-twobitreader" ,python-twobitreader)
1950 ("python-termcolor" ,python-termcolor)))
1951 (native-inputs
1952 `(("python-cython" ,python-cython)
1953 ("python-nose" ,python-nose)))
1954 (home-page "https://github.com/joshuagryphon/plastid")
1955 (synopsis "Python library for genomic analysis")
1956 (description
1957 "plastid is a Python library for genomic analysis – in particular,
1958 high-throughput sequencing data – with an emphasis on simplicity.")
1959 (license license:bsd-3)))
1960
1961 (define-public python2-plastid
1962 (package-with-python2 python-plastid))
1963
1964 (define-public tetoolkit
1965 (package
1966 (name "tetoolkit")
1967 (version "2.0.3")
1968 (source (origin
1969 (method git-fetch)
1970 (uri (git-reference
1971 (url "https://github.com/mhammell-laboratory/tetoolkit.git")
1972 (commit version)))
1973 (file-name (git-file-name name version))
1974 (sha256
1975 (base32
1976 "1yzi0kfpzip8zpjb82x1ik6h22yzfyjiz2dv85v6as2awwqvk807"))))
1977 (build-system python-build-system)
1978 (arguments
1979 `(#:python ,python-2 ; not guaranteed to work with Python 3
1980 #:phases
1981 (modify-phases %standard-phases
1982 (add-after 'unpack 'make-writable
1983 (lambda _
1984 (for-each make-file-writable (find-files "."))
1985 #t))
1986 (add-after 'unpack 'patch-invocations
1987 (lambda* (#:key inputs #:allow-other-keys)
1988 (substitute* '("bin/TEtranscripts"
1989 "bin/TEcount")
1990 (("'sort ")
1991 (string-append "'" (which "sort") " "))
1992 (("'rm -f ")
1993 (string-append "'" (which "rm") " -f "))
1994 (("'Rscript'") (string-append "'" (which "Rscript") "'")))
1995 (substitute* "TEToolkit/IO/ReadInputs.py"
1996 (("BamToBED") (which "bamToBed")))
1997 (substitute* "TEToolkit/Normalization.py"
1998 (("\"Rscript\"")
1999 (string-append "\"" (which "Rscript") "\"")))
2000 #t))
2001 (add-after 'install 'wrap-program
2002 (lambda* (#:key outputs #:allow-other-keys)
2003 ;; Make sure the executables find R packages.
2004 (let ((out (assoc-ref outputs "out")))
2005 (for-each
2006 (lambda (script)
2007 (wrap-program (string-append out "/bin/" script)
2008 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
2009 '("TEtranscripts"
2010 "TEcount")))
2011 #t)))))
2012 (inputs
2013 `(("coreutils" ,coreutils)
2014 ("bedtools" ,bedtools)
2015 ("python-argparse" ,python2-argparse)
2016 ("python-pysam" ,python2-pysam)
2017 ("r-minimal" ,r-minimal)
2018 ("r-deseq2" ,r-deseq2)))
2019 (home-page "https://github.com/mhammell-laboratory/tetoolkit")
2020 (synopsis "Transposable elements in differential enrichment analysis")
2021 (description
2022 "This is package for including transposable elements in differential
2023 enrichment analysis of sequencing datasets. TEtranscripts and TEcount take
2024 RNA-seq (and similar data) and annotates reads to both genes and transposable
2025 elements. TEtranscripts then performs differential analysis using DESeq2.
2026 Note that TEtranscripts and TEcount rely on specially curated GTF files, which
2027 are not included due to their size.")
2028 (license license:gpl3+)))
2029
2030 (define-public cd-hit
2031 (package
2032 (name "cd-hit")
2033 (version "4.6.8")
2034 (source (origin
2035 (method url-fetch)
2036 (uri (string-append "https://github.com/weizhongli/cdhit"
2037 "/releases/download/V" version
2038 "/cd-hit-v" version
2039 "-2017-0621-source.tar.gz"))
2040 (sha256
2041 (base32
2042 "1b4mwm2520ixjbw57sil20f9iixzw4bkdqqwgg1fc3pzm6rz4zmn"))))
2043 (build-system gnu-build-system)
2044 (arguments
2045 `(#:tests? #f ; there are no tests
2046 #:make-flags
2047 ;; Executables are copied directly to the PREFIX.
2048 (list (string-append "PREFIX=" (assoc-ref %outputs "out") "/bin")
2049 ;; Support longer sequences (e.g. Pacbio sequences)
2050 "MAX_SEQ=60000000")
2051 #:phases
2052 (modify-phases %standard-phases
2053 ;; No "configure" script
2054 (delete 'configure)
2055 ;; Remove sources of non-determinism
2056 (add-after 'unpack 'be-timeless
2057 (lambda _
2058 (substitute* "cdhit-utility.c++"
2059 ((" \\(built on \" __DATE__ \"\\)") ""))
2060 (substitute* "cdhit-common.c++"
2061 (("__DATE__") "\"0\"")
2062 (("\", %s, \" __TIME__ \"\\\\n\", date") ""))
2063 #t))
2064 ;; The "install" target does not create the target directory.
2065 (add-before 'install 'create-target-dir
2066 (lambda* (#:key outputs #:allow-other-keys)
2067 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
2068 #t)))))
2069 (inputs
2070 `(("perl" ,perl)))
2071 (home-page "http://weizhongli-lab.org/cd-hit/")
2072 (synopsis "Cluster and compare protein or nucleotide sequences")
2073 (description
2074 "CD-HIT is a program for clustering and comparing protein or nucleotide
2075 sequences. CD-HIT is designed to be fast and handle extremely large
2076 databases.")
2077 ;; The manual says: "It can be copied under the GNU General Public License
2078 ;; version 2 (GPLv2)."
2079 (license license:gpl2)))
2080
2081 (define-public clipper
2082 (package
2083 (name "clipper")
2084 (version "1.2.1")
2085 (source (origin
2086 (method git-fetch)
2087 (uri (git-reference
2088 (url "https://github.com/YeoLab/clipper.git")
2089 (commit version)))
2090 (file-name (git-file-name name version))
2091 (sha256
2092 (base32
2093 "0fja1rj84wp9vpj8rxpj3n8zqzcqq454m904yp9as1w4phccirjb"))
2094 (modules '((guix build utils)))
2095 (snippet
2096 '(begin
2097 ;; remove unnecessary setup dependency
2098 (substitute* "setup.py"
2099 (("setup_requires = .*") ""))
2100 #t))))
2101 (build-system python-build-system)
2102 (arguments
2103 `(#:python ,python-2 ; only Python 2 is supported
2104 #:phases
2105 (modify-phases %standard-phases
2106 ;; This is fixed in upstream commit
2107 ;; f6c2990198f906bf97730d95695b4bd5a6d01ddb.
2108 (add-after 'unpack 'fix-typo
2109 (lambda _
2110 (substitute* "clipper/src/readsToWiggle.pyx"
2111 (("^sc.*") ""))
2112 #t)))))
2113 (inputs
2114 `(("htseq" ,python2-htseq)
2115 ("python-pybedtools" ,python2-pybedtools)
2116 ("python-cython" ,python2-cython)
2117 ("python-scikit-learn" ,python2-scikit-learn)
2118 ("python-matplotlib" ,python2-matplotlib)
2119 ("python-pandas" ,python2-pandas)
2120 ("python-pysam" ,python2-pysam)
2121 ("python-numpy" ,python2-numpy)
2122 ("python-scipy" ,python2-scipy)))
2123 (native-inputs
2124 `(("python-mock" ,python2-mock) ; for tests
2125 ("python-nose" ,python2-nose) ; for tests
2126 ("python-pytz" ,python2-pytz))) ; for tests
2127 (home-page "https://github.com/YeoLab/clipper")
2128 (synopsis "CLIP peak enrichment recognition")
2129 (description
2130 "CLIPper is a tool to define peaks in CLIP-seq datasets.")
2131 (license license:gpl2)))
2132
2133 (define-public codingquarry
2134 (package
2135 (name "codingquarry")
2136 (version "2.0")
2137 (source (origin
2138 (method url-fetch)
2139 (uri (string-append
2140 "mirror://sourceforge/codingquarry/CodingQuarry_v"
2141 version ".tar.gz"))
2142 (sha256
2143 (base32
2144 "0115hkjflsnfzn36xppwf9h9avfxlavr43djqmshkkzbgjzsz60i"))))
2145 (build-system gnu-build-system)
2146 (arguments
2147 '(#:tests? #f ; no "check" target
2148 #:phases
2149 (modify-phases %standard-phases
2150 (delete 'configure)
2151 (replace 'install
2152 (lambda* (#:key outputs #:allow-other-keys)
2153 (let* ((out (assoc-ref outputs "out"))
2154 (bin (string-append out "/bin"))
2155 (doc (string-append out "/share/doc/codingquarry")))
2156 (install-file "INSTRUCTIONS.pdf" doc)
2157 (copy-recursively "QuarryFiles"
2158 (string-append out "/QuarryFiles"))
2159 (install-file "CodingQuarry" bin)
2160 (install-file "CufflinksGTF_to_CodingQuarryGFF3.py" bin))
2161 #t)))))
2162 (inputs `(("openmpi" ,openmpi)))
2163 (native-search-paths
2164 (list (search-path-specification
2165 (variable "QUARRY_PATH")
2166 (files '("QuarryFiles")))))
2167 (native-inputs `(("python" ,python-2))) ; Only Python 2 is supported
2168 (synopsis "Fungal gene predictor")
2169 (description "CodingQuarry is a highly accurate, self-training GHMM fungal
2170 gene predictor designed to work with assembled, aligned RNA-seq transcripts.")
2171 (home-page "https://sourceforge.net/projects/codingquarry/")
2172 (license license:gpl3+)))
2173
2174 (define-public couger
2175 (package
2176 (name "couger")
2177 (version "1.8.2")
2178 (source (origin
2179 (method url-fetch)
2180 (uri (string-append
2181 "http://couger.oit.duke.edu/static/assets/COUGER"
2182 version ".zip"))
2183 (sha256
2184 (base32
2185 "04p2b14nmhzxw5h72mpzdhalv21bx4w9b87z0wpw0xzxpysyncmq"))))
2186 (build-system gnu-build-system)
2187 (arguments
2188 `(#:tests? #f
2189 #:phases
2190 (modify-phases %standard-phases
2191 (delete 'configure)
2192 (delete 'build)
2193 (replace
2194 'install
2195 (lambda* (#:key outputs #:allow-other-keys)
2196 (let* ((out (assoc-ref outputs "out"))
2197 (bin (string-append out "/bin")))
2198 (copy-recursively "src" (string-append out "/src"))
2199 (mkdir bin)
2200 ;; Add "src" directory to module lookup path.
2201 (substitute* "couger"
2202 (("from argparse")
2203 (string-append "import sys\nsys.path.append(\""
2204 out "\")\nfrom argparse")))
2205 (install-file "couger" bin))
2206 #t))
2207 (add-after
2208 'install 'wrap-program
2209 (lambda* (#:key inputs outputs #:allow-other-keys)
2210 ;; Make sure 'couger' runs with the correct PYTHONPATH.
2211 (let* ((out (assoc-ref outputs "out"))
2212 (path (getenv "PYTHONPATH")))
2213 (wrap-program (string-append out "/bin/couger")
2214 `("PYTHONPATH" ":" prefix (,path))))
2215 #t)))))
2216 (inputs
2217 `(("python" ,python-2)
2218 ("python2-pillow" ,python2-pillow)
2219 ("python2-numpy" ,python2-numpy)
2220 ("python2-scipy" ,python2-scipy)
2221 ("python2-matplotlib" ,python2-matplotlib)))
2222 (propagated-inputs
2223 `(("r-minimal" ,r-minimal)
2224 ("libsvm" ,libsvm)
2225 ("randomjungle" ,randomjungle)))
2226 (native-inputs
2227 `(("unzip" ,unzip)))
2228 (home-page "http://couger.oit.duke.edu")
2229 (synopsis "Identify co-factors in sets of genomic regions")
2230 (description
2231 "COUGER can be applied to any two sets of genomic regions bound by
2232 paralogous TFs (e.g., regions derived from ChIP-seq experiments) to identify
2233 putative co-factors that provide specificity to each TF. The framework
2234 determines the genomic targets uniquely-bound by each TF, and identifies a
2235 small set of co-factors that best explain the in vivo binding differences
2236 between the two TFs.
2237
2238 COUGER uses classification algorithms (support vector machines and random
2239 forests) with features that reflect the DNA binding specificities of putative
2240 co-factors. The features are generated either from high-throughput TF-DNA
2241 binding data (from protein binding microarray experiments), or from large
2242 collections of DNA motifs.")
2243 (license license:gpl3+)))
2244
2245 (define-public clustal-omega
2246 (package
2247 (name "clustal-omega")
2248 (version "1.2.4")
2249 (source (origin
2250 (method url-fetch)
2251 (uri (string-append "http://www.clustal.org/omega/clustal-omega-"
2252 version ".tar.gz"))
2253 (sha256
2254 (base32
2255 "1vm30mzncwdv881vrcwg11vzvrsmwy4wg80j5i0lcfk6dlld50w6"))))
2256 (build-system gnu-build-system)
2257 (inputs
2258 `(("argtable" ,argtable)))
2259 (home-page "http://www.clustal.org/omega/")
2260 (synopsis "Multiple sequence aligner for protein and DNA/RNA")
2261 (description
2262 "Clustal-Omega is a general purpose multiple sequence alignment (MSA)
2263 program for protein and DNA/RNA. It produces high quality MSAs and is capable
2264 of handling data-sets of hundreds of thousands of sequences in reasonable
2265 time.")
2266 (license license:gpl2+)))
2267
2268 (define-public crossmap
2269 (package
2270 (name "crossmap")
2271 (version "0.2.9")
2272 (source (origin
2273 (method url-fetch)
2274 (uri (pypi-uri "CrossMap" version))
2275 (sha256
2276 (base32
2277 "1byhclrqnqpvc1rqkfh4jwj6yhn0x9y7jk47i0qcjlhk0pjkw92p"))))
2278 (build-system python-build-system)
2279 (arguments `(#:python ,python-2))
2280 (inputs
2281 `(("python-bx-python" ,python2-bx-python)
2282 ("python-numpy" ,python2-numpy)
2283 ("python-pysam" ,python2-pysam)
2284 ("zlib" ,zlib)))
2285 (native-inputs
2286 `(("python-cython" ,python2-cython)
2287 ("python-nose" ,python2-nose)))
2288 (home-page "http://crossmap.sourceforge.net/")
2289 (synopsis "Convert genome coordinates between assemblies")
2290 (description
2291 "CrossMap is a program for conversion of genome coordinates or annotation
2292 files between different genome assemblies. It supports most commonly used
2293 file formats including SAM/BAM, Wiggle/BigWig, BED, GFF/GTF, VCF.")
2294 (license license:gpl2+)))
2295
2296 (define-public python-dnaio
2297 (package
2298 (name "python-dnaio")
2299 (version "0.3")
2300 (source
2301 (origin
2302 (method url-fetch)
2303 (uri (pypi-uri "dnaio" version))
2304 (sha256
2305 (base32
2306 "0f16m7hdlm0fz1n7y5asy0v9ghyrq17ni1p9iybq22ddzyd49r27"))))
2307 (build-system python-build-system)
2308 (native-inputs
2309 `(("python-cython" ,python-cython)
2310 ("python-pytest" ,python-pytest)
2311 ("python-xopen" ,python-xopen)))
2312 (home-page "https://github.com/marcelm/dnaio/")
2313 (synopsis "Read FASTA and FASTQ files efficiently")
2314 (description
2315 "dnaio is a Python library for fast parsing of FASTQ and also FASTA
2316 files. The code was previously part of the cutadapt tool.")
2317 (license license:expat)))
2318
2319 (define-public cutadapt
2320 (package
2321 (name "cutadapt")
2322 (version "2.1")
2323 (source (origin
2324 (method url-fetch)
2325 (uri (pypi-uri "cutadapt" version))
2326 (sha256
2327 (base32
2328 "1vqmsfkm6llxzmsz9wcfcvzx9a9f8iabvwik2rbyn7nc4wm25z89"))))
2329 (build-system python-build-system)
2330 (inputs
2331 `(("python-dnaio" ,python-dnaio)
2332 ("python-xopen" ,python-xopen)))
2333 (native-inputs
2334 `(("python-cython" ,python-cython)
2335 ("python-pytest" ,python-pytest)
2336 ("python-setuptools-scm" ,python-setuptools-scm)))
2337 (home-page "https://cutadapt.readthedocs.io/en/stable/")
2338 (synopsis "Remove adapter sequences from nucleotide sequencing reads")
2339 (description
2340 "Cutadapt finds and removes adapter sequences, primers, poly-A tails and
2341 other types of unwanted sequence from high-throughput sequencing reads.")
2342 (license license:expat)))
2343
2344 (define-public libbigwig
2345 (package
2346 (name "libbigwig")
2347 (version "0.4.4")
2348 (source (origin
2349 (method git-fetch)
2350 (uri (git-reference
2351 (url "https://github.com/dpryan79/libBigWig.git")
2352 (commit version)))
2353 (file-name (git-file-name name version))
2354 (sha256
2355 (base32
2356 "09693dmf1scdac5pyq6qyn8b4mcipvnmc370k9a5z41z81m3dcsj"))))
2357 (build-system gnu-build-system)
2358 (arguments
2359 `(#:test-target "test"
2360 #:tests? #f ; tests require access to the web
2361 #:make-flags
2362 (list "CC=gcc"
2363 (string-append "prefix=" (assoc-ref %outputs "out")))
2364 #:phases
2365 (modify-phases %standard-phases
2366 (delete 'configure))))
2367 (inputs
2368 `(("zlib" ,zlib)
2369 ("curl" ,curl)))
2370 (native-inputs
2371 `(("doxygen" ,doxygen)
2372 ;; Need for tests
2373 ("python" ,python-2)))
2374 (home-page "https://github.com/dpryan79/libBigWig")
2375 (synopsis "C library for handling bigWig files")
2376 (description
2377 "This package provides a C library for parsing local and remote BigWig
2378 files.")
2379 (license license:expat)))
2380
2381 (define-public python-pybigwig
2382 (package
2383 (name "python-pybigwig")
2384 (version "0.3.12")
2385 (source (origin
2386 (method url-fetch)
2387 (uri (pypi-uri "pyBigWig" version))
2388 (sha256
2389 (base32
2390 "00w4kfnm2c5l7wdwr2nj1z5djv8kzgf7h1zhsgv6njff1rwr26g0"))
2391 (modules '((guix build utils)))
2392 (snippet
2393 '(begin
2394 ;; Delete bundled libBigWig sources
2395 (delete-file-recursively "libBigWig")
2396 #t))))
2397 (build-system python-build-system)
2398 (arguments
2399 `(#:phases
2400 (modify-phases %standard-phases
2401 (add-after 'unpack 'link-with-libBigWig
2402 (lambda* (#:key inputs #:allow-other-keys)
2403 (substitute* "setup.py"
2404 (("libs=\\[") "libs=[\"BigWig\", "))
2405 #t)))))
2406 (propagated-inputs
2407 `(("python-numpy" ,python-numpy)))
2408 (inputs
2409 `(("libbigwig" ,libbigwig)
2410 ("zlib" ,zlib)
2411 ("curl" ,curl)))
2412 (home-page "https://github.com/dpryan79/pyBigWig")
2413 (synopsis "Access bigWig files in Python using libBigWig")
2414 (description
2415 "This package provides Python bindings to the libBigWig library for
2416 accessing bigWig files.")
2417 (license license:expat)))
2418
2419 (define-public python2-pybigwig
2420 (package-with-python2 python-pybigwig))
2421
2422 (define-public python-dendropy
2423 (package
2424 (name "python-dendropy")
2425 (version "4.4.0")
2426 (source
2427 (origin
2428 (method git-fetch)
2429 ;; Source from GitHub so that tests are included.
2430 (uri (git-reference
2431 (url "https://github.com/jeetsukumaran/DendroPy.git")
2432 (commit (string-append "v" version))))
2433 (file-name (git-file-name name version))
2434 (sha256
2435 (base32
2436 "097hfyv2kaf4x92i4rjx0paw2cncxap48qivv8zxng4z7nhid0x9"))))
2437 (build-system python-build-system)
2438 (home-page "http://packages.python.org/DendroPy/")
2439 (synopsis "Library for phylogenetics and phylogenetic computing")
2440 (description
2441 "DendroPy is a library for phylogenetics and phylogenetic computing: reading,
2442 writing, simulation, processing and manipulation of phylogenetic
2443 trees (phylogenies) and characters.")
2444 (license license:bsd-3)))
2445
2446 (define-public python2-dendropy
2447 (let ((base (package-with-python2 python-dendropy)))
2448 (package
2449 (inherit base)
2450 (arguments
2451 `(#:phases
2452 (modify-phases %standard-phases
2453 (add-after 'unpack 'remove-failing-test
2454 (lambda _
2455 ;; This test fails when the full test suite is run, as documented
2456 ;; at https://github.com/jeetsukumaran/DendroPy/issues/74
2457 (substitute* "tests/test_dataio_nexml_reader_tree_list.py"
2458 (("test_collection_comments_and_annotations")
2459 "do_not_test_collection_comments_and_annotations"))
2460 #t)))
2461 ,@(package-arguments base))))))
2462
2463 (define-public python-py2bit
2464 (package
2465 (name "python-py2bit")
2466 (version "0.3.0")
2467 (source
2468 (origin
2469 (method url-fetch)
2470 (uri (pypi-uri "py2bit" version))
2471 (sha256
2472 (base32
2473 "1vw2nvw1yrl7ikkqsqs1pg239yr5nspvd969r1x9arms1k25a1a5"))))
2474 (build-system python-build-system)
2475 (home-page "https://github.com/dpryan79/py2bit")
2476 (synopsis "Access 2bit files using lib2bit")
2477 (description
2478 "This package provides Python bindings for lib2bit to access 2bit files
2479 with Python.")
2480 (license license:expat)))
2481
2482 (define-public deeptools
2483 (package
2484 (name "deeptools")
2485 (version "3.1.3")
2486 (source (origin
2487 (method git-fetch)
2488 (uri (git-reference
2489 (url "https://github.com/deeptools/deepTools.git")
2490 (commit version)))
2491 (file-name (git-file-name name version))
2492 (sha256
2493 (base32
2494 "1vggnf52g6q2vifdl4cyi7s2fnfqq0ky2zrkj5zv2qfzsc3p3siw"))))
2495 (build-system python-build-system)
2496 (arguments
2497 `(#:phases
2498 (modify-phases %standard-phases
2499 ;; This phase fails, but it's not needed.
2500 (delete 'reset-gzip-timestamps))))
2501 (inputs
2502 `(("python-plotly" ,python-plotly)
2503 ("python-scipy" ,python-scipy)
2504 ("python-numpy" ,python-numpy)
2505 ("python-numpydoc" ,python-numpydoc)
2506 ("python-matplotlib" ,python-matplotlib)
2507 ("python-pysam" ,python-pysam)
2508 ("python-py2bit" ,python-py2bit)
2509 ("python-pybigwig" ,python-pybigwig)))
2510 (native-inputs
2511 `(("python-mock" ,python-mock) ;for tests
2512 ("python-nose" ,python-nose) ;for tests
2513 ("python-pytz" ,python-pytz))) ;for tests
2514 (home-page "https://github.com/deeptools/deepTools")
2515 (synopsis "Tools for normalizing and visualizing deep-sequencing data")
2516 (description
2517 "DeepTools addresses the challenge of handling the large amounts of data
2518 that are now routinely generated from DNA sequencing centers. To do so,
2519 deepTools contains useful modules to process the mapped reads data to create
2520 coverage files in standard bedGraph and bigWig file formats. By doing so,
2521 deepTools allows the creation of normalized coverage files or the comparison
2522 between two files (for example, treatment and control). Finally, using such
2523 normalized and standardized files, multiple visualizations can be created to
2524 identify enrichments with functional annotations of the genome.")
2525 (license license:gpl3+)))
2526
2527 (define-public delly
2528 (package
2529 (name "delly")
2530 (version "0.7.9")
2531 (source (origin
2532 (method git-fetch)
2533 (uri (git-reference
2534 (url "https://github.com/dellytools/delly.git")
2535 (commit (string-append "v" version))))
2536 (file-name (git-file-name name version))
2537 (sha256
2538 (base32 "034jqsxswy9gqdh2zkgc1js99qkv75ks4xvzgmh0284sraagv61z"))
2539 (modules '((guix build utils)))
2540 (snippet
2541 '(begin
2542 (delete-file-recursively "src/htslib")
2543 #t))))
2544 (build-system gnu-build-system)
2545 (arguments
2546 `(#:tests? #f ; There are no tests to run.
2547 #:make-flags
2548 (list "PARALLEL=1" ; Allow parallel execution at run-time.
2549 (string-append "prefix=" (assoc-ref %outputs "out")))
2550 #:phases
2551 (modify-phases %standard-phases
2552 (delete 'configure) ; There is no configure phase.
2553 (add-after 'install 'install-templates
2554 (lambda* (#:key outputs #:allow-other-keys)
2555 (let ((templates (string-append (assoc-ref outputs "out")
2556 "/share/delly/templates")))
2557 (mkdir-p templates)
2558 (copy-recursively "excludeTemplates" templates)
2559 #t))))))
2560 (inputs
2561 `(("boost" ,boost)
2562 ("htslib" ,htslib)
2563 ("zlib" ,zlib)
2564 ("bzip2" ,bzip2)))
2565 (home-page "https://github.com/dellytools/delly")
2566 (synopsis "Integrated structural variant prediction method")
2567 (description "Delly is an integrated structural variant prediction method
2568 that can discover and genotype deletions, tandem duplications, inversions and
2569 translocations at single-nucleotide resolution in short-read massively parallel
2570 sequencing data. It uses paired-ends and split-reads to sensitively and
2571 accurately delineate genomic rearrangements throughout the genome.")
2572 (license license:gpl3+)))
2573
2574 (define-public diamond
2575 (package
2576 (name "diamond")
2577 (version "0.9.22")
2578 (source (origin
2579 (method git-fetch)
2580 (uri (git-reference
2581 (url "https://github.com/bbuchfink/diamond.git")
2582 (commit (string-append "v" version))))
2583 (file-name (git-file-name name version))
2584 (sha256
2585 (base32
2586 "0bky78v79g3wmdpsd706cscckgw1v09fg8vdd0z8z0d5b97aj9zl"))))
2587 (build-system cmake-build-system)
2588 (arguments
2589 '(#:tests? #f ; no "check" target
2590 #:phases
2591 (modify-phases %standard-phases
2592 (add-after 'unpack 'remove-native-compilation
2593 (lambda _
2594 (substitute* "CMakeLists.txt" (("-march=native") ""))
2595 #t)))))
2596 (inputs
2597 `(("zlib" ,zlib)))
2598 (home-page "https://github.com/bbuchfink/diamond")
2599 (synopsis "Accelerated BLAST compatible local sequence aligner")
2600 (description
2601 "DIAMOND is a BLAST-compatible local aligner for mapping protein and
2602 translated DNA query sequences against a protein reference database (BLASTP
2603 and BLASTX alignment mode). The speedup over BLAST is up to 20,000 on short
2604 reads at a typical sensitivity of 90-99% relative to BLAST depending on the
2605 data and settings.")
2606 (license license:agpl3+)))
2607
2608 (define-public discrover
2609 (package
2610 (name "discrover")
2611 (version "1.6.0")
2612 (source
2613 (origin
2614 (method git-fetch)
2615 (uri (git-reference
2616 (url "https://github.com/maaskola/discrover.git")
2617 (commit version)))
2618 (file-name (git-file-name name version))
2619 (sha256
2620 (base32
2621 "173fwi2vb6a5kp406hm3jj6j7v4whww796f2qcygp4rpvamh307y"))))
2622 (build-system cmake-build-system)
2623 (arguments
2624 `(#:tests? #f ; there are no tests
2625 #:phases
2626 (modify-phases %standard-phases
2627 (add-after 'unpack 'fix-latex-errors
2628 (lambda _
2629 (with-fluids ((%default-port-encoding #f))
2630 (substitute* "doc/references.bib"
2631 (("\\{S\\}illanp[^,]+,")
2632 "{S}illanp{\\\"a}{\\\"a},")))
2633 ;; XXX: I just can't get pdflatex to not complain about these
2634 ;; characters. They end up in the manual via the generated
2635 ;; discrover-cli-help.txt.
2636 (substitute* "src/hmm/cli.cpp"
2637 (("µ") "mu")
2638 (("η") "eta")
2639 (("≤") "<="))
2640 ;; This seems to be a syntax error.
2641 (substitute* "doc/discrover-manual.tex"
2642 (("theverbbox\\[t\\]") "theverbbox"))
2643 #t))
2644 (add-after 'unpack 'add-missing-includes
2645 (lambda _
2646 (substitute* "src/executioninformation.hpp"
2647 (("#define EXECUTIONINFORMATION_HPP" line)
2648 (string-append line "\n#include <random>")))
2649 (substitute* "src/plasma/fasta.hpp"
2650 (("#define FASTA_HPP" line)
2651 (string-append line "\n#include <random>")))
2652 #t))
2653 ;; FIXME: this is needed because we're using texlive-union, which
2654 ;; doesn't handle fonts correctly. It expects to be able to generate
2655 ;; fonts in the home directory.
2656 (add-before 'build 'setenv-HOME
2657 (lambda _ (setenv "HOME" "/tmp") #t)))))
2658 (inputs
2659 `(("boost" ,boost)
2660 ("cairo" ,cairo)
2661 ("rmath-standalone" ,rmath-standalone)))
2662 (native-inputs
2663 `(("texlive" ,(texlive-union (list texlive-fonts-cm
2664 texlive-fonts-amsfonts
2665
2666 texlive-latex-doi
2667 texlive-latex-examplep
2668 texlive-latex-hyperref
2669 texlive-latex-ms
2670 texlive-latex-natbib
2671 texlive-bibtex ; style files used by natbib
2672 texlive-latex-pgf ; tikz
2673 texlive-latex-verbatimbox)))
2674 ("imagemagick" ,imagemagick)))
2675 (home-page "http://dorina.mdc-berlin.de/public/rajewsky/discrover/")
2676 (synopsis "Discover discriminative nucleotide sequence motifs")
2677 (description "Discrover is a motif discovery method to find binding sites
2678 of nucleic acid binding proteins.")
2679 (license license:gpl3+)))
2680
2681 (define-public eigensoft
2682 (package
2683 (name "eigensoft")
2684 (version "7.2.1")
2685 (source
2686 (origin
2687 (method git-fetch)
2688 (uri (git-reference
2689 (url "https://github.com/DReichLab/EIG.git")
2690 (commit (string-append "v" version))))
2691 (file-name (git-file-name name version))
2692 (sha256
2693 (base32
2694 "1c141fqvhnzibmnf22sv23vbmzm20kjjyrib44cfh75wyndp2d9k"))
2695 (modules '((guix build utils)))
2696 ;; Remove pre-built binaries.
2697 (snippet '(begin
2698 (delete-file-recursively "bin")
2699 (mkdir "bin")
2700 #t))))
2701 (build-system gnu-build-system)
2702 (arguments
2703 `(#:tests? #f ; There are no tests.
2704 #:make-flags '("CC=gcc")
2705 #:phases
2706 (modify-phases %standard-phases
2707 ;; There is no configure phase, but the Makefile is in a
2708 ;; sub-directory.
2709 (replace 'configure
2710 (lambda _ (chdir "src") #t))
2711 ;; The provided install target only copies executables to
2712 ;; the "bin" directory in the build root.
2713 (add-after 'install 'actually-install
2714 (lambda* (#:key outputs #:allow-other-keys)
2715 (let* ((out (assoc-ref outputs "out"))
2716 (bin (string-append out "/bin")))
2717 (for-each (lambda (file)
2718 (install-file file bin))
2719 (find-files "../bin" ".*"))
2720 #t))))))
2721 (inputs
2722 `(("gsl" ,gsl)
2723 ("lapack" ,lapack)
2724 ("openblas" ,openblas)
2725 ("perl" ,perl)
2726 ("gfortran" ,gfortran "lib")))
2727 (home-page "https://github.com/DReichLab/EIG")
2728 (synopsis "Tools for population genetics")
2729 (description "The EIGENSOFT package provides tools for population
2730 genetics and stratification correction. EIGENSOFT implements methods commonly
2731 used in population genetics analyses such as PCA, computation of Tracy-Widom
2732 statistics, and finding related individuals in structured populations. It
2733 comes with a built-in plotting script and supports multiple file formats and
2734 quantitative phenotypes.")
2735 ;; The license of the eigensoft tools is Expat, but since it's
2736 ;; linking with the GNU Scientific Library (GSL) the effective
2737 ;; license is the GPL.
2738 (license license:gpl3+)))
2739
2740 (define-public edirect
2741 (package
2742 (name "edirect")
2743 (version "12.1.20190819")
2744 (source (origin
2745 (method url-fetch)
2746 (uri (string-append "ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect"
2747 "/versions/" version
2748 "/edirect-" version ".tar.gz"))
2749 (sha256
2750 (base32
2751 "1i9s9mppcfqd60pfywpm8vdyz5vpnyslw22nd7dv0bhykrdnkz9g"))))
2752 (build-system perl-build-system)
2753 (arguments
2754 `(#:phases
2755 (modify-phases %standard-phases
2756 (delete 'configure)
2757 (delete 'build)
2758 (delete 'check) ; simple check after install
2759 (replace 'install
2760 (lambda* (#:key outputs #:allow-other-keys)
2761 (install-file "edirect.pl"
2762 (string-append (assoc-ref outputs "out") "/bin"))
2763 #t))
2764 (add-after 'install 'wrap-program
2765 (lambda* (#:key outputs #:allow-other-keys)
2766 ;; Make sure 'edirect.pl' finds all perl inputs at runtime.
2767 (let* ((out (assoc-ref outputs "out"))
2768 (path (getenv "PERL5LIB")))
2769 (wrap-program (string-append out "/bin/edirect.pl")
2770 `("PERL5LIB" ":" prefix (,path))))
2771 #t))
2772 (add-after 'wrap-program 'check
2773 (lambda* (#:key outputs #:allow-other-keys)
2774 (invoke (string-append (assoc-ref outputs "out")
2775 "/bin/edirect.pl")
2776 "-filter" "-help")
2777 #t)))))
2778 (inputs
2779 `(("perl-html-parser" ,perl-html-parser)
2780 ("perl-encode-locale" ,perl-encode-locale)
2781 ("perl-file-listing" ,perl-file-listing)
2782 ("perl-html-tagset" ,perl-html-tagset)
2783 ("perl-html-tree" ,perl-html-tree)
2784 ("perl-http-cookies" ,perl-http-cookies)
2785 ("perl-http-date" ,perl-http-date)
2786 ("perl-http-message" ,perl-http-message)
2787 ("perl-http-negotiate" ,perl-http-negotiate)
2788 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
2789 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
2790 ("perl-net-http" ,perl-net-http)
2791 ("perl-uri" ,perl-uri)
2792 ("perl-www-robotrules" ,perl-www-robotrules)
2793 ("perl-xml-simple" ,perl-xml-simple)
2794 ("perl" ,perl)))
2795 (home-page "http://www.ncbi.nlm.nih.gov/books/NBK179288/")
2796 (synopsis "Tools for accessing the NCBI's set of databases")
2797 (description
2798 "Entrez Direct (EDirect) is a method for accessing the National Center
2799 for Biotechnology Information's (NCBI) set of interconnected
2800 databases (publication, sequence, structure, gene, variation, expression,
2801 etc.) from a terminal. Functions take search terms from command-line
2802 arguments. Individual operations are combined to build multi-step queries.
2803 Record retrieval and formatting normally complete the process.
2804
2805 EDirect also provides an argument-driven function that simplifies the
2806 extraction of data from document summaries or other results that are returned
2807 in structured XML format. This can eliminate the need for writing custom
2808 software to answer ad hoc questions.")
2809 (license license:public-domain)))
2810
2811 (define-public exonerate
2812 (package
2813 (name "exonerate")
2814 (version "2.4.0")
2815 (source
2816 (origin
2817 (method url-fetch)
2818 (uri
2819 (string-append
2820 "http://ftp.ebi.ac.uk/pub/software/vertebrategenomics/exonerate/"
2821 "exonerate-" version ".tar.gz"))
2822 (sha256
2823 (base32
2824 "0hj0m9xygiqsdxvbg79wq579kbrx1mdrabi2bzqz2zn9qwfjcjgq"))))
2825 (build-system gnu-build-system)
2826 (arguments
2827 `(#:parallel-build? #f)) ; Building in parallel fails on some machines.
2828 (native-inputs
2829 `(("pkg-config" ,pkg-config)))
2830 (inputs
2831 `(("glib" ,glib)))
2832 (home-page
2833 "https://www.ebi.ac.uk/about/vertebrate-genomics/software/exonerate")
2834 (synopsis "Generic tool for biological sequence alignment")
2835 (description
2836 "Exonerate is a generic tool for pairwise sequence comparison. It allows
2837 the alignment of sequences using a many alignment models, either exhaustive
2838 dynamic programming or a variety of heuristics.")
2839 (license license:gpl3)))
2840
2841 (define-public express
2842 (package
2843 (name "express")
2844 (version "1.5.1")
2845 (source (origin
2846 (method url-fetch)
2847 (uri
2848 (string-append
2849 "http://bio.math.berkeley.edu/eXpress/downloads/express-"
2850 version "/express-" version "-src.tgz"))
2851 (sha256
2852 (base32
2853 "03rczxd0gjp2l1jxcmjfmf5j94j77zqyxa6x063zsc585nj40n0c"))))
2854 (build-system cmake-build-system)
2855 (arguments
2856 `(#:tests? #f ;no "check" target
2857 #:phases
2858 (modify-phases %standard-phases
2859 (add-after 'unpack 'use-shared-boost-libs-and-set-bamtools-paths
2860 (lambda* (#:key inputs #:allow-other-keys)
2861 (substitute* "CMakeLists.txt"
2862 (("set\\(Boost_USE_STATIC_LIBS ON\\)")
2863 "set(Boost_USE_STATIC_LIBS OFF)")
2864 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/bamtools/include")
2865 (string-append (assoc-ref inputs "bamtools") "/include/bamtools")))
2866 (substitute* "src/CMakeLists.txt"
2867 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/\\.\\./bamtools/lib")
2868 (string-append (assoc-ref inputs "bamtools") "/lib"))
2869 (("libprotobuf.a") "libprotobuf.so"))
2870 #t)))))
2871 (inputs
2872 `(("boost" ,boost)
2873 ("bamtools" ,bamtools)
2874 ("protobuf" ,protobuf)
2875 ("zlib" ,zlib)))
2876 (home-page "http://bio.math.berkeley.edu/eXpress")
2877 (synopsis "Streaming quantification for high-throughput genomic sequencing")
2878 (description
2879 "eXpress is a streaming tool for quantifying the abundances of a set of
2880 target sequences from sampled subsequences. Example applications include
2881 transcript-level RNA-Seq quantification, allele-specific/haplotype expression
2882 analysis (from RNA-Seq), transcription factor binding quantification in
2883 ChIP-Seq, and analysis of metagenomic data.")
2884 (license license:artistic2.0)))
2885
2886 (define-public express-beta-diversity
2887 (package
2888 (name "express-beta-diversity")
2889 (version "1.0.8")
2890 (source (origin
2891 (method git-fetch)
2892 (uri (git-reference
2893 (url "https://github.com/dparks1134/ExpressBetaDiversity.git")
2894 (commit (string-append "v" version))))
2895 (file-name (git-file-name name version))
2896 (sha256
2897 (base32
2898 "0s0yzg5c21349rh7x4w9266jsvnp7j1hp9cf8sk32hz8nvrj745x"))))
2899 (build-system gnu-build-system)
2900 (arguments
2901 `(#:phases
2902 (modify-phases %standard-phases
2903 (delete 'configure)
2904 (add-before 'build 'enter-source (lambda _ (chdir "source") #t))
2905 (replace 'check
2906 (lambda _ (invoke "../bin/ExpressBetaDiversity" "-u") #t))
2907 (replace 'install
2908 (lambda* (#:key outputs #:allow-other-keys)
2909 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
2910 (install-file "../scripts/convertToEBD.py" bin)
2911 (install-file "../bin/ExpressBetaDiversity" bin)
2912 #t))))))
2913 (inputs
2914 `(("python" ,python-2)))
2915 (home-page "http://kiwi.cs.dal.ca/Software/ExpressBetaDiversity")
2916 (synopsis "Taxon- and phylogenetic-based beta diversity measures")
2917 (description
2918 "Express Beta Diversity (EBD) calculates ecological beta diversity
2919 (dissimilarity) measures between biological communities. EBD implements a
2920 variety of diversity measures including those that make use of phylogenetic
2921 similarity of community members.")
2922 (license license:gpl3+)))
2923
2924 (define-public fasttree
2925 (package
2926 (name "fasttree")
2927 (version "2.1.10")
2928 (source (origin
2929 (method url-fetch)
2930 (uri (string-append
2931 "http://www.microbesonline.org/fasttree/FastTree-"
2932 version ".c"))
2933 (sha256
2934 (base32
2935 "0vcjdvy1j4m702vmak4svbfkrpcw63k7wymfksjp9a982zy8kjsl"))))
2936 (build-system gnu-build-system)
2937 (arguments
2938 `(#:tests? #f ; no "check" target
2939 #:phases
2940 (modify-phases %standard-phases
2941 (delete 'unpack)
2942 (delete 'configure)
2943 (replace 'build
2944 (lambda* (#:key source #:allow-other-keys)
2945 (invoke "gcc"
2946 "-O3"
2947 "-finline-functions"
2948 "-funroll-loops"
2949 "-Wall"
2950 "-o"
2951 "FastTree"
2952 source
2953 "-lm")
2954 (invoke "gcc"
2955 "-DOPENMP"
2956 "-fopenmp"
2957 "-O3"
2958 "-finline-functions"
2959 "-funroll-loops"
2960 "-Wall"
2961 "-o"
2962 "FastTreeMP"
2963 source
2964 "-lm")
2965 #t))
2966 (replace 'install
2967 (lambda* (#:key outputs #:allow-other-keys)
2968 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
2969 (install-file "FastTree" bin)
2970 (install-file "FastTreeMP" bin)
2971 #t))))))
2972 (home-page "http://www.microbesonline.org/fasttree")
2973 (synopsis "Infers approximately-maximum-likelihood phylogenetic trees")
2974 (description
2975 "FastTree can handle alignments with up to a million of sequences in a
2976 reasonable amount of time and memory. For large alignments, FastTree is
2977 100-1,000 times faster than PhyML 3.0 or RAxML 7.")
2978 (license license:gpl2+)))
2979
2980 (define-public fastx-toolkit
2981 (package
2982 (name "fastx-toolkit")
2983 (version "0.0.14")
2984 (source (origin
2985 (method url-fetch)
2986 (uri
2987 (string-append
2988 "https://github.com/agordon/fastx_toolkit/releases/download/"
2989 version "/fastx_toolkit-" version ".tar.bz2"))
2990 (sha256
2991 (base32
2992 "01jqzw386873sr0pjp1wr4rn8fsga2vxs1qfmicvx1pjr72007wy"))))
2993 (build-system gnu-build-system)
2994 (inputs
2995 `(("libgtextutils" ,libgtextutils)))
2996 (native-inputs
2997 `(("pkg-config" ,pkg-config)))
2998 (home-page "http://hannonlab.cshl.edu/fastx_toolkit/")
2999 (synopsis "Tools for FASTA/FASTQ file preprocessing")
3000 (description
3001 "The FASTX-Toolkit is a collection of command line tools for Short-Reads
3002 FASTA/FASTQ files preprocessing.
3003
3004 Next-Generation sequencing machines usually produce FASTA or FASTQ files,
3005 containing multiple short-reads sequences. The main processing of such
3006 FASTA/FASTQ files is mapping the sequences to reference genomes. However, it
3007 is sometimes more productive to preprocess the files before mapping the
3008 sequences to the genome---manipulating the sequences to produce better mapping
3009 results. The FASTX-Toolkit tools perform some of these preprocessing tasks.")
3010 (license license:agpl3+)))
3011
3012 (define-public flexbar
3013 (package
3014 (name "flexbar")
3015 (version "3.4.0")
3016 (source (origin
3017 (method git-fetch)
3018 (uri (git-reference
3019 (url "https://github.com/seqan/flexbar.git")
3020 (commit (string-append "v" version))))
3021 (file-name (git-file-name name version))
3022 (sha256
3023 (base32
3024 "1pq9sxvdnldl14libk234m72dqhwgzs3acgl943wchwdqlcsi5r2"))))
3025 (build-system cmake-build-system)
3026 (arguments
3027 `(#:phases
3028 (modify-phases %standard-phases
3029 (add-after 'unpack 'do-not-tune-to-CPU
3030 (lambda _
3031 (substitute* "src/CMakeLists.txt"
3032 ((" -march=native") ""))
3033 #t))
3034 (replace 'check
3035 (lambda* (#:key outputs #:allow-other-keys)
3036 (setenv "PATH" (string-append (getcwd) ":" (getenv "PATH")))
3037 (with-directory-excursion "../source/test"
3038 (invoke "bash" "flexbar_test.sh"))
3039 #t))
3040 (replace 'install
3041 (lambda* (#:key outputs #:allow-other-keys)
3042 (let* ((out (string-append (assoc-ref outputs "out")))
3043 (bin (string-append out "/bin/")))
3044 (install-file "flexbar" bin))
3045 #t)))))
3046 (inputs
3047 `(("tbb" ,tbb)
3048 ("zlib" ,zlib)))
3049 (native-inputs
3050 `(("pkg-config" ,pkg-config)
3051 ("seqan" ,seqan)))
3052 (home-page "https://github.com/seqan/flexbar")
3053 (synopsis "Barcode and adapter removal tool for sequencing platforms")
3054 (description
3055 "Flexbar preprocesses high-throughput nucleotide sequencing data
3056 efficiently. It demultiplexes barcoded runs and removes adapter sequences.
3057 Moreover, trimming and filtering features are provided. Flexbar increases
3058 read mapping rates and improves genome and transcriptome assemblies. It
3059 supports next-generation sequencing data in fasta/q and csfasta/q format from
3060 Illumina, Roche 454, and the SOLiD platform.")
3061 (license license:bsd-3)))
3062
3063 (define-public fraggenescan
3064 (package
3065 (name "fraggenescan")
3066 (version "1.30")
3067 (source
3068 (origin
3069 (method url-fetch)
3070 (uri
3071 (string-append "mirror://sourceforge/fraggenescan/"
3072 "FragGeneScan" version ".tar.gz"))
3073 (sha256
3074 (base32 "158dcnwczgcyhwm4qlx19sanrwgdpzf6bn2y57mbpx55lkgz1mzj"))))
3075 (build-system gnu-build-system)
3076 (arguments
3077 `(#:phases
3078 (modify-phases %standard-phases
3079 (delete 'configure)
3080 (add-before 'build 'patch-paths
3081 (lambda* (#:key outputs #:allow-other-keys)
3082 (let* ((out (string-append (assoc-ref outputs "out")))
3083 (share (string-append out "/share/fraggenescan/")))
3084 (substitute* "run_FragGeneScan.pl"
3085 (("system\\(\"rm")
3086 (string-append "system(\"" (which "rm")))
3087 (("system\\(\"mv")
3088 (string-append "system(\"" (which "mv")))
3089 (("\\\"awk") (string-append "\"" (which "awk")))
3090 ;; This script and other programs expect the training files
3091 ;; to be in the non-standard location bin/train/XXX. Change
3092 ;; this to be share/fraggenescan/train/XXX instead.
3093 (("^\\$train.file = \\$dir.*")
3094 (string-append "$train_file = \""
3095 share
3096 "train/\".$FGS_train_file;")))
3097 (substitute* "run_hmm.c"
3098 (("^ strcat\\(train_dir, \\\"train/\\\"\\);")
3099 (string-append " strcpy(train_dir, \"" share "/train/\");"))))
3100 #t))
3101 (replace 'build
3102 (lambda _
3103 (invoke "make" "clean")
3104 (invoke "make" "fgs")
3105 #t))
3106 (replace 'install
3107 (lambda* (#:key outputs #:allow-other-keys)
3108 (let* ((out (string-append (assoc-ref outputs "out")))
3109 (bin (string-append out "/bin/"))
3110 (share (string-append out "/share/fraggenescan/train")))
3111 (install-file "run_FragGeneScan.pl" bin)
3112 (install-file "FragGeneScan" bin)
3113 (copy-recursively "train" share))
3114 #t))
3115 (delete 'check)
3116 (add-after 'install 'post-install-check
3117 ;; In lieu of 'make check', run one of the examples and check the
3118 ;; output files gets created.
3119 (lambda* (#:key outputs #:allow-other-keys)
3120 (let* ((out (string-append (assoc-ref outputs "out")))
3121 (bin (string-append out "/bin/"))
3122 (frag (string-append bin "run_FragGeneScan.pl")))
3123 ;; Test complete genome.
3124 (invoke frag
3125 "-genome=./example/NC_000913.fna"
3126 "-out=./test2"
3127 "-complete=1"
3128 "-train=complete")
3129 (unless (and (file-exists? "test2.faa")
3130 (file-exists? "test2.ffn")
3131 (file-exists? "test2.gff")
3132 (file-exists? "test2.out"))
3133 (error "Expected files do not exist."))
3134 ;; Test incomplete sequences.
3135 (invoke frag
3136 "-genome=./example/NC_000913-fgs.ffn"
3137 "-out=out"
3138 "-complete=0"
3139 "-train=454_30")
3140 #t))))))
3141 (inputs
3142 `(("perl" ,perl)
3143 ("python" ,python-2))) ;not compatible with python 3.
3144 (home-page "https://sourceforge.net/projects/fraggenescan/")
3145 (synopsis "Finds potentially fragmented genes in short reads")
3146 (description
3147 "FragGeneScan is a program for predicting bacterial and archaeal genes in
3148 short and error-prone DNA sequencing reads. It can also be applied to predict
3149 genes in incomplete assemblies or complete genomes.")
3150 ;; GPL3+ according to private correspondense with the authors.
3151 (license license:gpl3+)))
3152
3153 (define-public fxtract
3154 (let ((util-commit "776ca85a18a47492af3794745efcb4a905113115"))
3155 (package
3156 (name "fxtract")
3157 (version "2.3")
3158 (source
3159 (origin
3160 (method git-fetch)
3161 (uri (git-reference
3162 (url "https://github.com/ctSkennerton/fxtract.git")
3163 (commit version)))
3164 (file-name (git-file-name name version))
3165 (sha256
3166 (base32
3167 "0hab3gpwf4w9s87qlbswq6ws1qqybh4dcqk79q1ahyldzai5fgp5"))))
3168 (build-system gnu-build-system)
3169 (arguments
3170 `(#:make-flags (list
3171 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3172 "CC=gcc")
3173 #:test-target "fxtract_test"
3174 #:phases
3175 (modify-phases %standard-phases
3176 (delete 'configure)
3177 (add-before 'build 'copy-util
3178 (lambda* (#:key inputs #:allow-other-keys)
3179 (rmdir "util")
3180 (copy-recursively (assoc-ref inputs "ctskennerton-util") "util")
3181 #t))
3182 ;; Do not use make install as this requires additional dependencies.
3183 (replace 'install
3184 (lambda* (#:key outputs #:allow-other-keys)
3185 (let* ((out (assoc-ref outputs "out"))
3186 (bin (string-append out"/bin")))
3187 (install-file "fxtract" bin)
3188 #t))))))
3189 (inputs
3190 `(("pcre" ,pcre)
3191 ("zlib" ,zlib)))
3192 (native-inputs
3193 ;; ctskennerton-util is licensed under GPL2.
3194 `(("ctskennerton-util"
3195 ,(origin
3196 (method git-fetch)
3197 (uri (git-reference
3198 (url "https://github.com/ctSkennerton/util.git")
3199 (commit util-commit)))
3200 (file-name (string-append
3201 "ctstennerton-util-" util-commit "-checkout"))
3202 (sha256
3203 (base32
3204 "0cls1hd4vgj3f36fpzzg4xc77d6f3hpc60cbpfmn2gdr7ykzzad7"))))))
3205 (home-page "https://github.com/ctSkennerton/fxtract")
3206 (synopsis "Extract sequences from FASTA and FASTQ files")
3207 (description
3208 "Fxtract extracts sequences from a protein or nucleotide fastx (FASTA
3209 or FASTQ) file given a subsequence. It uses a simple substring search for
3210 basic tasks but can change to using POSIX regular expressions, PCRE, hash
3211 lookups or multi-pattern searching as required. By default fxtract looks in
3212 the sequence of each record but can also be told to look in the header,
3213 comment or quality sections.")
3214 ;; 'util' requires SSE instructions.
3215 (supported-systems '("x86_64-linux"))
3216 (license license:expat))))
3217
3218 (define-public gemma
3219 (package
3220 (name "gemma")
3221 (version "0.98")
3222 (source (origin
3223 (method git-fetch)
3224 (uri (git-reference
3225 (url "https://github.com/xiangzhou/GEMMA.git")
3226 (commit (string-append "v" version))))
3227 (file-name (git-file-name name version))
3228 (sha256
3229 (base32
3230 "1s3ncnbn45r2hh1cvrqky1kbqq6546biypr4f5mkw1kqlrgyh0yg"))))
3231 (inputs
3232 `(("eigen" ,eigen)
3233 ("gfortran" ,gfortran "lib")
3234 ("gsl" ,gsl)
3235 ("lapack" ,lapack)
3236 ("openblas" ,openblas)
3237 ("zlib" ,zlib)))
3238 (build-system gnu-build-system)
3239 (arguments
3240 `(#:make-flags
3241 '(,@(match (%current-system)
3242 ("x86_64-linux"
3243 '("FORCE_DYNAMIC=1"))
3244 ("i686-linux"
3245 '("FORCE_DYNAMIC=1" "FORCE_32BIT=1"))
3246 (_
3247 '("FORCE_DYNAMIC=1" "NO_INTEL_COMPAT=1"))))
3248 #:phases
3249 (modify-phases %standard-phases
3250 (delete 'configure)
3251 (add-after 'unpack 'find-eigen
3252 (lambda* (#:key inputs #:allow-other-keys)
3253 ;; Ensure that Eigen headers can be found
3254 (setenv "CPLUS_INCLUDE_PATH"
3255 (string-append (assoc-ref inputs "eigen")
3256 "/include/eigen3"))
3257 #t))
3258 (add-before 'build 'bin-mkdir
3259 (lambda _
3260 (mkdir-p "bin")
3261 #t))
3262 (replace 'install
3263 (lambda* (#:key outputs #:allow-other-keys)
3264 (let ((out (assoc-ref outputs "out")))
3265 (install-file "bin/gemma"
3266 (string-append
3267 out "/bin")))
3268 #t)))
3269 #:tests? #f)) ; no tests included yet
3270 (home-page "https://github.com/xiangzhou/GEMMA")
3271 (synopsis "Tool for genome-wide efficient mixed model association")
3272 (description
3273 "Genome-wide Efficient Mixed Model Association (GEMMA) provides a
3274 standard linear mixed model resolver with application in genome-wide
3275 association studies (GWAS).")
3276 (license license:gpl3)))
3277
3278 (define-public grit
3279 (package
3280 (name "grit")
3281 (version "2.0.5")
3282 (source (origin
3283 (method git-fetch)
3284 (uri (git-reference
3285 (url "https://github.com/nboley/grit.git")
3286 (commit version)))
3287 (file-name (git-file-name name version))
3288 (sha256
3289 (base32
3290 "1l5v8vfvfbrpmgnrvbrbv40d0arhxcnmxgv2f1mlcqfa3q6bkqm9"))))
3291 (build-system python-build-system)
3292 (arguments
3293 `(#:python ,python-2
3294 #:phases
3295 (modify-phases %standard-phases
3296 (add-after 'unpack 'generate-from-cython-sources
3297 (lambda* (#:key inputs outputs #:allow-other-keys)
3298 ;; Delete these C files to force fresh generation from pyx sources.
3299 (delete-file "grit/sparsify_support_fns.c")
3300 (delete-file "grit/call_peaks_support_fns.c")
3301 (substitute* "setup.py"
3302 (("Cython.Setup") "Cython.Build"))
3303 #t)))))
3304 (inputs
3305 `(("python-scipy" ,python2-scipy)
3306 ("python-numpy" ,python2-numpy)
3307 ("python-pysam" ,python2-pysam)
3308 ("python-networkx" ,python2-networkx)))
3309 (native-inputs
3310 `(("python-cython" ,python2-cython)))
3311 (home-page "http://grit-bio.org")
3312 (synopsis "Tool for integrative analysis of RNA-seq type assays")
3313 (description
3314 "GRIT is designed to use RNA-seq, TES, and TSS data to build and quantify
3315 full length transcript models. When none of these data sources are available,
3316 GRIT can be run by providing a candidate set of TES or TSS sites. In
3317 addition, GRIT can merge in reference junctions and gene boundaries. GRIT can
3318 also be run in quantification mode, where it uses a provided GTF file and just
3319 estimates transcript expression.")
3320 (license license:gpl3+)))
3321
3322 (define-public hisat
3323 (package
3324 (name "hisat")
3325 (version "0.1.4")
3326 (source (origin
3327 (method url-fetch)
3328 (uri (string-append
3329 "http://ccb.jhu.edu/software/hisat/downloads/hisat-"
3330 version "-beta-source.zip"))
3331 (sha256
3332 (base32
3333 "1k381ydranqxp09yf2y7w1d0chz5d59vb6jchi89hbb0prq19lk5"))))
3334 (build-system gnu-build-system)
3335 (arguments
3336 `(#:tests? #f ;no check target
3337 #:make-flags '("allall"
3338 ;; Disable unsupported `popcnt' instructions on
3339 ;; architectures other than x86_64
3340 ,@(if (string-prefix? "x86_64"
3341 (or (%current-target-system)
3342 (%current-system)))
3343 '()
3344 '("POPCNT_CAPABILITY=0")))
3345 #:phases
3346 (modify-phases %standard-phases
3347 (add-after 'unpack 'patch-sources
3348 (lambda _
3349 ;; XXX Cannot use snippet because zip files are not supported
3350 (substitute* "Makefile"
3351 (("^CC = .*$") "CC = gcc")
3352 (("^CPP = .*$") "CPP = g++")
3353 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
3354 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
3355 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
3356 (substitute* '("hisat-build" "hisat-inspect")
3357 (("/usr/bin/env") (which "env")))
3358 #t))
3359 (replace 'install
3360 (lambda* (#:key outputs #:allow-other-keys)
3361 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
3362 (for-each (lambda (file)
3363 (install-file file bin))
3364 (find-files
3365 "."
3366 "hisat(-(build|align|inspect)(-(s|l)(-debug)*)*)*$")))
3367 #t))
3368 (delete 'configure))))
3369 (native-inputs
3370 `(("unzip" ,unzip)))
3371 (inputs
3372 `(("perl" ,perl)
3373 ("python" ,python)
3374 ("zlib" ,zlib)))
3375 ;; Non-portable SSE instructions are used so building fails on platforms
3376 ;; other than x86_64.
3377 (supported-systems '("x86_64-linux"))
3378 (home-page "http://ccb.jhu.edu/software/hisat/index.shtml")
3379 (synopsis "Hierarchical indexing for spliced alignment of transcripts")
3380 (description
3381 "HISAT is a fast and sensitive spliced alignment program for mapping
3382 RNA-seq reads. In addition to one global FM index that represents a whole
3383 genome, HISAT uses a large set of small FM indexes that collectively cover the
3384 whole genome. These small indexes (called local indexes) combined with
3385 several alignment strategies enable effective alignment of RNA-seq reads, in
3386 particular, reads spanning multiple exons.")
3387 (license license:gpl3+)))
3388
3389 (define-public hisat2
3390 (package
3391 (name "hisat2")
3392 (version "2.0.5")
3393 (source
3394 (origin
3395 (method url-fetch)
3396 (uri (string-append "ftp://ftp.ccb.jhu.edu/pub/infphilo/hisat2"
3397 "/downloads/hisat2-" version "-source.zip"))
3398 (sha256
3399 (base32
3400 "0lywnr8kijwsc2aw10dwxic0n0yvip6fl3rjlvc8zzwahamy4x7g"))))
3401 (build-system gnu-build-system)
3402 (arguments
3403 `(#:tests? #f ; no check target
3404 #:make-flags (list "CC=gcc" "CXX=g++" "allall")
3405 #:modules ((guix build gnu-build-system)
3406 (guix build utils)
3407 (srfi srfi-26))
3408 #:phases
3409 (modify-phases %standard-phases
3410 (add-after 'unpack 'make-deterministic
3411 (lambda _
3412 (substitute* "Makefile"
3413 (("`date`") "0"))
3414 #t))
3415 (delete 'configure)
3416 (replace 'install
3417 (lambda* (#:key outputs #:allow-other-keys)
3418 (let* ((out (assoc-ref outputs "out"))
3419 (bin (string-append out "/bin/"))
3420 (doc (string-append out "/share/doc/hisat2/")))
3421 (for-each
3422 (cut install-file <> bin)
3423 (find-files "."
3424 "hisat2(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))
3425 (mkdir-p doc)
3426 (install-file "doc/manual.inc.html" doc))
3427 #t)))))
3428 (native-inputs
3429 `(("unzip" ,unzip) ; needed for archive from ftp
3430 ("perl" ,perl)
3431 ("pandoc" ,ghc-pandoc))) ; for documentation
3432 (home-page "http://ccb.jhu.edu/software/hisat2/index.shtml")
3433 (synopsis "Graph-based alignment of genomic sequencing reads")
3434 (description "HISAT2 is a fast and sensitive alignment program for mapping
3435 next-generation sequencing reads (both DNA and RNA) to a population of human
3436 genomes (as well as to a single reference genome). In addition to using one
3437 global @dfn{graph FM} (GFM) index that represents a population of human
3438 genomes, HISAT2 uses a large set of small GFM indexes that collectively cover
3439 the whole genome. These small indexes, combined with several alignment
3440 strategies, enable rapid and accurate alignment of sequencing reads. This new
3441 indexing scheme is called a @dfn{Hierarchical Graph FM index} (HGFM).")
3442 ;; HISAT2 contains files from Bowtie2, which is released under
3443 ;; GPLv2 or later. The HISAT2 source files are released under
3444 ;; GPLv3 or later.
3445 (license license:gpl3+)))
3446
3447 (define-public hmmer
3448 (package
3449 (name "hmmer")
3450 (version "3.2.1")
3451 (source
3452 (origin
3453 (method url-fetch)
3454 (uri (string-append
3455 "http://eddylab.org/software/hmmer/hmmer-" version ".tar.gz"))
3456 (sha256
3457 (base32
3458 "171bivy6xhgjsz5nv53n81pc3frnwz29ylblawk2bv46szwjjqd5"))))
3459 (build-system gnu-build-system)
3460 (native-inputs `(("perl" ,perl)))
3461 (home-page "http://hmmer.org/")
3462 (synopsis "Biosequence analysis using profile hidden Markov models")
3463 (description
3464 "HMMER is used for searching sequence databases for homologs of protein
3465 sequences, and for making protein sequence alignments. It implements methods
3466 using probabilistic models called profile hidden Markov models (profile
3467 HMMs).")
3468 ;; hmmer uses non-portable SSE intrinsics so building fails on other
3469 ;; platforms.
3470 (supported-systems '("x86_64-linux" "i686-linux"))
3471 (license license:bsd-3)))
3472
3473 (define-public htseq
3474 (package
3475 (name "htseq")
3476 (version "0.9.1")
3477 (source (origin
3478 (method url-fetch)
3479 (uri (pypi-uri "HTSeq" version))
3480 (sha256
3481 (base32
3482 "11flgb1381xdhk43bzbfm3vhnszkpqg6jk76rpa5xd1zbrvvlnxg"))))
3483 (build-system python-build-system)
3484 (native-inputs
3485 `(("python-cython" ,python-cython)))
3486 ;; Numpy needs to be propagated when htseq is used as a Python library.
3487 (propagated-inputs
3488 `(("python-numpy" ,python-numpy)))
3489 (inputs
3490 `(("python-pysam" ,python-pysam)
3491 ("python-matplotlib" ,python-matplotlib)))
3492 (home-page "http://www-huber.embl.de/users/anders/HTSeq/")
3493 (synopsis "Analysing high-throughput sequencing data with Python")
3494 (description
3495 "HTSeq is a Python package that provides infrastructure to process data
3496 from high-throughput sequencing assays.")
3497 (license license:gpl3+)))
3498
3499 (define-public python2-htseq
3500 (package-with-python2 htseq))
3501
3502 (define-public java-htsjdk
3503 (package
3504 (name "java-htsjdk")
3505 (version "2.3.0") ; last version without build dependency on gradle
3506 (source (origin
3507 (method git-fetch)
3508 (uri (git-reference
3509 (url "https://github.com/samtools/htsjdk.git")
3510 (commit version)))
3511 (file-name (git-file-name name version))
3512 (sha256
3513 (base32
3514 "1b178ixcabanm834ydjl3jiakpyxdmki32hqfv2abrzn3rcwa28i"))
3515 (modules '((guix build utils)))
3516 (snippet
3517 ;; Delete pre-built binaries
3518 '(begin
3519 (delete-file-recursively "lib")
3520 (mkdir-p "lib")
3521 #t))))
3522 (build-system ant-build-system)
3523 (arguments
3524 `(#:tests? #f ; test require Internet access
3525 #:jdk ,icedtea-8
3526 #:make-flags
3527 (list (string-append "-Ddist=" (assoc-ref %outputs "out")
3528 "/share/java/htsjdk/"))
3529 #:build-target "all"
3530 #:phases
3531 (modify-phases %standard-phases
3532 ;; The build phase also installs the jars
3533 (delete 'install))))
3534 (inputs
3535 `(("java-ngs" ,java-ngs)
3536 ("java-snappy-1" ,java-snappy-1)
3537 ("java-commons-compress" ,java-commons-compress)
3538 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
3539 ("java-commons-jexl-2" ,java-commons-jexl-2)
3540 ("java-xz" ,java-xz)))
3541 (native-inputs
3542 `(("java-testng" ,java-testng)))
3543 (home-page "http://samtools.github.io/htsjdk/")
3544 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3545 (description
3546 "HTSJDK is an implementation of a unified Java library for accessing
3547 common file formats, such as SAM and VCF, used for high-throughput
3548 sequencing (HTS) data. There are also an number of useful utilities for
3549 manipulating HTS data.")
3550 (license license:expat)))
3551
3552 (define-public java-htsjdk-latest
3553 (package
3554 (name "java-htsjdk")
3555 (version "2.14.3")
3556 (source (origin
3557 (method git-fetch)
3558 (uri (git-reference
3559 (url "https://github.com/samtools/htsjdk.git")
3560 (commit version)))
3561 (file-name (string-append name "-" version "-checkout"))
3562 (sha256
3563 (base32
3564 "1lmya1fdjy03mz6zmdmd86j9v9vfhqb3952mqq075navx1i6g4bc"))))
3565 (build-system ant-build-system)
3566 (arguments
3567 `(#:tests? #f ; test require Scala
3568 #:jdk ,icedtea-8
3569 #:jar-name "htsjdk.jar"
3570 #:phases
3571 (modify-phases %standard-phases
3572 (add-after 'unpack 'remove-useless-build.xml
3573 (lambda _ (delete-file "build.xml") #t))
3574 ;; The tests require the scalatest package.
3575 (add-after 'unpack 'remove-tests
3576 (lambda _ (delete-file-recursively "src/test") #t)))))
3577 (inputs
3578 `(("java-ngs" ,java-ngs)
3579 ("java-snappy-1" ,java-snappy-1)
3580 ("java-commons-compress" ,java-commons-compress)
3581 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
3582 ("java-commons-jexl-2" ,java-commons-jexl-2)
3583 ("java-xz" ,java-xz)))
3584 (native-inputs
3585 `(("java-junit" ,java-junit)))
3586 (home-page "http://samtools.github.io/htsjdk/")
3587 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3588 (description
3589 "HTSJDK is an implementation of a unified Java library for accessing
3590 common file formats, such as SAM and VCF, used for high-throughput
3591 sequencing (HTS) data. There are also an number of useful utilities for
3592 manipulating HTS data.")
3593 (license license:expat)))
3594
3595 ;; This is needed for picard 2.10.3
3596 (define-public java-htsjdk-2.10.1
3597 (package (inherit java-htsjdk-latest)
3598 (name "java-htsjdk")
3599 (version "2.10.1")
3600 (source (origin
3601 (method git-fetch)
3602 (uri (git-reference
3603 (url "https://github.com/samtools/htsjdk.git")
3604 (commit version)))
3605 (file-name (string-append name "-" version "-checkout"))
3606 (sha256
3607 (base32
3608 "1kxh7slm2pm3x9p6jxa1wqsq9a31dhiiflhxnxqcisan4k3rwia2"))))
3609 (build-system ant-build-system)
3610 (arguments
3611 `(#:tests? #f ; tests require Scala
3612 #:jdk ,icedtea-8
3613 #:jar-name "htsjdk.jar"
3614 #:phases
3615 (modify-phases %standard-phases
3616 (add-after 'unpack 'remove-useless-build.xml
3617 (lambda _ (delete-file "build.xml") #t))
3618 ;; The tests require the scalatest package.
3619 (add-after 'unpack 'remove-tests
3620 (lambda _ (delete-file-recursively "src/test") #t)))))))
3621
3622 ;; This version matches java-htsjdk 2.3.0. Later versions also require a more
3623 ;; recent version of java-htsjdk, which depends on gradle.
3624 (define-public java-picard
3625 (package
3626 (name "java-picard")
3627 (version "2.3.0")
3628 (source (origin
3629 (method git-fetch)
3630 (uri (git-reference
3631 (url "https://github.com/broadinstitute/picard.git")
3632 (commit version)))
3633 (file-name (string-append "java-picard-" version "-checkout"))
3634 (sha256
3635 (base32
3636 "1ll7mf4r3by92w2nhlmpa591xd1f46xlkwh59mq6fvbb5pdwzvx6"))
3637 (modules '((guix build utils)))
3638 (snippet
3639 '(begin
3640 ;; Delete pre-built binaries.
3641 (delete-file-recursively "lib")
3642 (mkdir-p "lib")
3643 (substitute* "build.xml"
3644 ;; Remove build-time dependency on git.
3645 (("failifexecutionfails=\"true\"")
3646 "failifexecutionfails=\"false\"")
3647 ;; Use our htsjdk.
3648 (("depends=\"compile-htsjdk, ")
3649 "depends=\"")
3650 (("depends=\"compile-htsjdk-tests, ")
3651 "depends=\"")
3652 ;; Build picard-lib.jar before building picard.jar
3653 (("name=\"picard-jar\" depends=\"" line)
3654 (string-append line "picard-lib-jar, ")))
3655 #t))))
3656 (build-system ant-build-system)
3657 (arguments
3658 `(#:build-target "picard-jar"
3659 #:test-target "test"
3660 ;; Tests require jacoco:coverage.
3661 #:tests? #f
3662 #:make-flags
3663 (list (string-append "-Dhtsjdk_lib_dir="
3664 (assoc-ref %build-inputs "java-htsjdk")
3665 "/share/java/htsjdk/")
3666 "-Dhtsjdk-classes=dist/tmp"
3667 (string-append "-Dhtsjdk-version="
3668 ,(package-version java-htsjdk)))
3669 #:jdk ,icedtea-8
3670 #:phases
3671 (modify-phases %standard-phases
3672 ;; FIXME: this phase fails with "duplicate entry: htsjdk/samtools/AbstractBAMFileIndex$1.class"
3673 (delete 'generate-jar-indices)
3674 (add-after 'unpack 'use-our-htsjdk
3675 (lambda* (#:key inputs #:allow-other-keys)
3676 (substitute* "build.xml"
3677 (("\\$\\{htsjdk\\}/lib")
3678 (string-append (assoc-ref inputs "java-htsjdk")
3679 "/share/java/htsjdk/")))
3680 #t))
3681 (add-after 'unpack 'make-test-target-independent
3682 (lambda* (#:key inputs #:allow-other-keys)
3683 (substitute* "build.xml"
3684 (("name=\"test\" depends=\"compile, ")
3685 "name=\"test\" depends=\""))
3686 #t))
3687 (replace 'install (install-jars "dist")))))
3688 (inputs
3689 `(("java-htsjdk" ,java-htsjdk)
3690 ("java-guava" ,java-guava)))
3691 (native-inputs
3692 `(("java-testng" ,java-testng)))
3693 (home-page "http://broadinstitute.github.io/picard/")
3694 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
3695 (description "Picard is a set of Java command line tools for manipulating
3696 high-throughput sequencing (HTS) data and formats. Picard is implemented
3697 using the HTSJDK Java library to support accessing file formats that are
3698 commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
3699 VCF.")
3700 (license license:expat)))
3701
3702 ;; This is needed for dropseq-tools
3703 (define-public java-picard-2.10.3
3704 (package
3705 (name "java-picard")
3706 (version "2.10.3")
3707 (source (origin
3708 (method git-fetch)
3709 (uri (git-reference
3710 (url "https://github.com/broadinstitute/picard.git")
3711 (commit version)))
3712 (file-name (string-append "java-picard-" version "-checkout"))
3713 (sha256
3714 (base32
3715 "1ajlx31l6i1k3y2rhnmgq07sz99g2czqfqgkr9mihmdjp3gwjhvi"))))
3716 (build-system ant-build-system)
3717 (arguments
3718 `(#:jar-name "picard.jar"
3719 ;; Tests require jacoco:coverage.
3720 #:tests? #f
3721 #:jdk ,icedtea-8
3722 #:main-class "picard.cmdline.PicardCommandLine"
3723 #:modules ((guix build ant-build-system)
3724 (guix build utils)
3725 (guix build java-utils)
3726 (sxml simple)
3727 (sxml transform)
3728 (sxml xpath))
3729 #:phases
3730 (modify-phases %standard-phases
3731 ;; FIXME: this phase fails with "duplicate entry: htsjdk/samtools/AbstractBAMFileIndex$1.class"
3732 (delete 'generate-jar-indices)
3733 (add-after 'unpack 'remove-useless-build.xml
3734 (lambda _ (delete-file "build.xml") #t))
3735 ;; This is necessary to ensure that htsjdk is found when using
3736 ;; picard.jar as an executable.
3737 (add-before 'build 'edit-classpath-in-manifest
3738 (lambda* (#:key inputs #:allow-other-keys)
3739 (chmod "build.xml" #o664)
3740 (call-with-output-file "build.xml.new"
3741 (lambda (port)
3742 (sxml->xml
3743 (pre-post-order
3744 (with-input-from-file "build.xml"
3745 (lambda _ (xml->sxml #:trim-whitespace? #t)))
3746 `((target . ,(lambda (tag . kids)
3747 (let ((name ((sxpath '(name *text*))
3748 (car kids)))
3749 ;; FIXME: We're breaking the line
3750 ;; early with a dummy path to
3751 ;; ensure that the store reference
3752 ;; isn't broken apart and can still
3753 ;; be found by the reference
3754 ;; scanner.
3755 (msg (format #f
3756 "\
3757 Class-Path: /~a \
3758 ~a/share/java/htsjdk.jar${line.separator}${line.separator}"
3759 ;; maximum line length is 70
3760 (string-tabulate (const #\b) 57)
3761 (assoc-ref inputs "java-htsjdk"))))
3762 (if (member "manifest" name)
3763 `(,tag ,@kids
3764 (replaceregexp
3765 (@ (file "${manifest.file}")
3766 (match "\\r\\n\\r\\n")
3767 (replace "${line.separator}")))
3768 (echo
3769 (@ (message ,msg)
3770 (file "${manifest.file}")
3771 (append "true"))))
3772 `(,tag ,@kids)))))
3773 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
3774 (*text* . ,(lambda (_ txt) txt))))
3775 port)))
3776 (rename-file "build.xml.new" "build.xml")
3777 #t)))))
3778 (propagated-inputs
3779 `(("java-htsjdk" ,java-htsjdk-2.10.1)))
3780 (native-inputs
3781 `(("java-testng" ,java-testng)
3782 ("java-guava" ,java-guava)))
3783 (home-page "http://broadinstitute.github.io/picard/")
3784 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
3785 (description "Picard is a set of Java command line tools for manipulating
3786 high-throughput sequencing (HTS) data and formats. Picard is implemented
3787 using the HTSJDK Java library to support accessing file formats that are
3788 commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
3789 VCF.")
3790 (license license:expat)))
3791
3792 ;; This is the last version of Picard to provide net.sf.samtools
3793 (define-public java-picard-1.113
3794 (package (inherit java-picard)
3795 (name "java-picard")
3796 (version "1.113")
3797 (source (origin
3798 (method git-fetch)
3799 (uri (git-reference
3800 (url "https://github.com/broadinstitute/picard.git")
3801 (commit version)))
3802 (file-name (string-append "java-picard-" version "-checkout"))
3803 (sha256
3804 (base32
3805 "0lkpvin2fz3hhly4l02kk56fqy8lmlgyzr9kmvljk6ry6l1hw973"))
3806 (modules '((guix build utils)))
3807 (snippet
3808 '(begin
3809 ;; Delete pre-built binaries.
3810 (delete-file-recursively "lib")
3811 (mkdir-p "lib")
3812 #t))))
3813 (build-system ant-build-system)
3814 (arguments
3815 `(#:build-target "picard-jar"
3816 #:test-target "test"
3817 ;; FIXME: the class path at test time is wrong.
3818 ;; [testng] Error: A JNI error has occurred, please check your installation and try again
3819 ;; [testng] Exception in thread "main" java.lang.NoClassDefFoundError: com/beust/jcommander/ParameterException
3820 #:tests? #f
3821 #:jdk ,icedtea-8
3822 ;; This is only used for tests.
3823 #:make-flags
3824 (list "-Dsamjdk.intel_deflater_so_path=lib/jni/libIntelDeflater.so")
3825 #:phases
3826 (modify-phases %standard-phases
3827 ;; FIXME: This phase fails.
3828 (delete 'generate-jar-indices)
3829 ;; Do not use bundled ant bzip2.
3830 (add-after 'unpack 'use-ant-bzip
3831 (lambda* (#:key inputs #:allow-other-keys)
3832 (substitute* "build.xml"
3833 (("\\$\\{lib\\}/apache-ant-1.8.2-bzip2.jar")
3834 (string-append (assoc-ref inputs "ant")
3835 "/lib/ant.jar")))
3836 #t))
3837 (add-after 'unpack 'make-test-target-independent
3838 (lambda* (#:key inputs #:allow-other-keys)
3839 (substitute* "build.xml"
3840 (("name=\"test\" depends=\"compile, ")
3841 "name=\"test\" depends=\"compile-tests, ")
3842 (("name=\"compile\" depends=\"compile-src, compile-tests\"")
3843 "name=\"compile\" depends=\"compile-src\""))
3844 #t))
3845 (add-after 'unpack 'fix-deflater-path
3846 (lambda* (#:key outputs #:allow-other-keys)
3847 (substitute* "src/java/net/sf/samtools/Defaults.java"
3848 (("getStringProperty\\(\"intel_deflater_so_path\", null\\)")
3849 (string-append "getStringProperty(\"intel_deflater_so_path\", \""
3850 (assoc-ref outputs "out")
3851 "/lib/jni/libIntelDeflater.so"
3852 "\")")))
3853 #t))
3854 ;; Build the deflater library, because we've previously deleted the
3855 ;; pre-built one. This can only be built with access to the JDK
3856 ;; sources.
3857 (add-after 'build 'build-jni
3858 (lambda* (#:key inputs #:allow-other-keys)
3859 (mkdir-p "lib/jni")
3860 (mkdir-p "jdk-src")
3861 (invoke "tar" "--strip-components=1" "-C" "jdk-src"
3862 "-xf" (assoc-ref inputs "jdk-src"))
3863 (invoke "javah" "-jni"
3864 "-classpath" "classes"
3865 "-d" "lib/"
3866 "net.sf.samtools.util.zip.IntelDeflater")
3867 (with-directory-excursion "src/c/inteldeflater"
3868 (invoke "gcc" "-I../../../lib" "-I."
3869 (string-append "-I" (assoc-ref inputs "jdk")
3870 "/include/linux")
3871 "-I../../../jdk-src/src/share/native/common/"
3872 "-I../../../jdk-src/src/solaris/native/common/"
3873 "-c" "-O3" "-fPIC" "IntelDeflater.c")
3874 (invoke "gcc" "-shared"
3875 "-o" "../../../lib/jni/libIntelDeflater.so"
3876 "IntelDeflater.o" "-lz" "-lstdc++"))
3877 #t))
3878 ;; We can only build everything else after building the JNI library.
3879 (add-after 'build-jni 'build-rest
3880 (lambda* (#:key make-flags #:allow-other-keys)
3881 (apply invoke `("ant" "all" ,@make-flags))
3882 #t))
3883 (add-before 'build 'set-JAVA6_HOME
3884 (lambda _
3885 (setenv "JAVA6_HOME" (getenv "JAVA_HOME"))
3886 #t))
3887 (replace 'install (install-jars "dist"))
3888 (add-after 'install 'install-jni-lib
3889 (lambda* (#:key outputs #:allow-other-keys)
3890 (let ((jni (string-append (assoc-ref outputs "out")
3891 "/lib/jni")))
3892 (mkdir-p jni)
3893 (install-file "lib/jni/libIntelDeflater.so" jni)
3894 #t))))))
3895 (inputs
3896 `(("java-snappy-1" ,java-snappy-1)
3897 ("java-commons-jexl-2" ,java-commons-jexl-2)
3898 ("java-cofoja" ,java-cofoja)
3899 ("ant" ,ant) ; for bzip2 support at runtime
3900 ("zlib" ,zlib)))
3901 (native-inputs
3902 `(("ant-apache-bcel" ,ant-apache-bcel)
3903 ("ant-junit" ,ant-junit)
3904 ("java-testng" ,java-testng)
3905 ("java-commons-bcel" ,java-commons-bcel)
3906 ("java-jcommander" ,java-jcommander)
3907 ("jdk" ,icedtea-8 "jdk")
3908 ("jdk-src" ,(car (assoc-ref (package-native-inputs icedtea-8) "jdk-drop")))))))
3909
3910 (define-public fastqc
3911 (package
3912 (name "fastqc")
3913 (version "0.11.5")
3914 (source
3915 (origin
3916 (method url-fetch)
3917 (uri (string-append "http://www.bioinformatics.babraham.ac.uk/"
3918 "projects/fastqc/fastqc_v"
3919 version "_source.zip"))
3920 (sha256
3921 (base32
3922 "18rrlkhcrxvvvlapch4dpj6xc6mpayzys8qfppybi8jrpgx5cc5f"))))
3923 (build-system ant-build-system)
3924 (arguments
3925 `(#:tests? #f ; there are no tests
3926 #:build-target "build"
3927 #:phases
3928 (modify-phases %standard-phases
3929 (add-after 'unpack 'fix-dependencies
3930 (lambda* (#:key inputs #:allow-other-keys)
3931 (substitute* "build.xml"
3932 (("jbzip2-0.9.jar")
3933 (string-append (assoc-ref inputs "java-jbzip2")
3934 "/share/java/jbzip2.jar"))
3935 (("sam-1.103.jar")
3936 (string-append (assoc-ref inputs "java-picard-1.113")
3937 "/share/java/sam-1.112.jar"))
3938 (("cisd-jhdf5.jar")
3939 (string-append (assoc-ref inputs "java-cisd-jhdf5")
3940 "/share/java/sis-jhdf5.jar")))
3941 #t))
3942 ;; There is no installation target
3943 (replace 'install
3944 (lambda* (#:key inputs outputs #:allow-other-keys)
3945 (let* ((out (assoc-ref outputs "out"))
3946 (bin (string-append out "/bin"))
3947 (share (string-append out "/share/fastqc/"))
3948 (exe (string-append share "/fastqc")))
3949 (for-each mkdir-p (list bin share))
3950 (copy-recursively "bin" share)
3951 (substitute* exe
3952 (("my \\$java_bin = 'java';")
3953 (string-append "my $java_bin = '"
3954 (assoc-ref inputs "java")
3955 "/bin/java';")))
3956 (chmod exe #o555)
3957 (symlink exe (string-append bin "/fastqc"))
3958 #t))))))
3959 (inputs
3960 `(("java" ,icedtea)
3961 ("perl" ,perl) ; needed for the wrapper script
3962 ("java-cisd-jhdf5" ,java-cisd-jhdf5)
3963 ("java-picard-1.113" ,java-picard-1.113)
3964 ("java-jbzip2" ,java-jbzip2)))
3965 (native-inputs
3966 `(("unzip" ,unzip)))
3967 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/fastqc/")
3968 (synopsis "Quality control tool for high throughput sequence data")
3969 (description
3970 "FastQC aims to provide a simple way to do some quality control
3971 checks on raw sequence data coming from high throughput sequencing
3972 pipelines. It provides a modular set of analyses which you can use to
3973 give a quick impression of whether your data has any problems of which
3974 you should be aware before doing any further analysis.
3975
3976 The main functions of FastQC are:
3977
3978 @itemize
3979 @item Import of data from BAM, SAM or FastQ files (any variant);
3980 @item Providing a quick overview to tell you in which areas there may
3981 be problems;
3982 @item Summary graphs and tables to quickly assess your data;
3983 @item Export of results to an HTML based permanent report;
3984 @item Offline operation to allow automated generation of reports
3985 without running the interactive application.
3986 @end itemize\n")
3987 (license license:gpl3+)))
3988
3989 (define-public fastp
3990 (package
3991 (name "fastp")
3992 (version "0.14.1")
3993 (source
3994 (origin
3995 (method git-fetch)
3996 (uri (git-reference
3997 (url "https://github.com/OpenGene/fastp.git")
3998 (commit (string-append "v" version))))
3999 (file-name (git-file-name name version))
4000 (sha256
4001 (base32
4002 "1r6ms5zbf5rps4rgp4z73nczadl00b5rqylw8f684isfz27dp0xh"))))
4003 (build-system gnu-build-system)
4004 (arguments
4005 `(#:tests? #f ; there are none
4006 #:make-flags
4007 (list (string-append "BINDIR=" (assoc-ref %outputs "out") "/bin"))
4008 #:phases
4009 (modify-phases %standard-phases
4010 (delete 'configure)
4011 (add-before 'install 'create-target-dir
4012 (lambda* (#:key outputs #:allow-other-keys)
4013 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
4014 #t)))))
4015 (inputs
4016 `(("zlib" ,zlib)))
4017 (home-page "https://github.com/OpenGene/fastp/")
4018 (synopsis "All-in-one FastQ preprocessor")
4019 (description
4020 "Fastp is a tool designed to provide fast all-in-one preprocessing for
4021 FastQ files. This tool has multi-threading support to afford high
4022 performance.")
4023 (license license:expat)))
4024
4025 (define-public htslib
4026 (package
4027 (name "htslib")
4028 (version "1.9")
4029 (source (origin
4030 (method url-fetch)
4031 (uri (string-append
4032 "https://github.com/samtools/htslib/releases/download/"
4033 version "/htslib-" version ".tar.bz2"))
4034 (sha256
4035 (base32
4036 "16ljv43sc3fxmv63w7b2ff8m1s7h89xhazwmbm1bicz8axq8fjz0"))))
4037 (build-system gnu-build-system)
4038 (inputs
4039 `(("curl" ,curl)
4040 ("openssl" ,openssl)))
4041 ;; This is referred to in the pkg-config file as a required library.
4042 (propagated-inputs
4043 `(("zlib" ,zlib)))
4044 (native-inputs
4045 `(("perl" ,perl)))
4046 (home-page "http://www.htslib.org")
4047 (synopsis "C library for reading/writing high-throughput sequencing data")
4048 (description
4049 "HTSlib is a C library for reading/writing high-throughput sequencing
4050 data. It also provides the @command{bgzip}, @command{htsfile}, and
4051 @command{tabix} utilities.")
4052 ;; Files under cram/ are released under the modified BSD license;
4053 ;; the rest is released under the Expat license
4054 (license (list license:expat license:bsd-3))))
4055
4056 ;; This package should be removed once no packages rely upon it.
4057 (define htslib-1.3
4058 (package
4059 (inherit htslib)
4060 (version "1.3.1")
4061 (source (origin
4062 (method url-fetch)
4063 (uri (string-append
4064 "https://github.com/samtools/htslib/releases/download/"
4065 version "/htslib-" version ".tar.bz2"))
4066 (sha256
4067 (base32
4068 "1rja282fwdc25ql6izkhdyh8ppw8x2fs0w0js78zgkmqjlikmma9"))))))
4069
4070 (define-public idr
4071 (package
4072 (name "idr")
4073 (version "2.0.3")
4074 (source (origin
4075 (method git-fetch)
4076 (uri (git-reference
4077 (url "https://github.com/nboley/idr.git")
4078 (commit version)))
4079 (file-name (git-file-name name version))
4080 (sha256
4081 (base32
4082 "04j876h6z444v2q79drxx283d3k5snd72kj895wbalnl42206x9g"))
4083 ;; Delete generated C code.
4084 (snippet
4085 '(begin (delete-file "idr/inv_cdf.c") #t))))
4086 (build-system python-build-system)
4087 ;; There is only one test ("test_inv_cdf.py") and it tests features that
4088 ;; are no longer part of this package. It also asserts False, which
4089 ;; causes the tests to always fail.
4090 (arguments `(#:tests? #f))
4091 (propagated-inputs
4092 `(("python-scipy" ,python-scipy)
4093 ("python-sympy" ,python-sympy)
4094 ("python-numpy" ,python-numpy)
4095 ("python-matplotlib" ,python-matplotlib)))
4096 (native-inputs
4097 `(("python-cython" ,python-cython)))
4098 (home-page "https://github.com/nboley/idr")
4099 (synopsis "Tool to measure the irreproducible discovery rate (IDR)")
4100 (description
4101 "The IDR (Irreproducible Discovery Rate) framework is a unified approach
4102 to measure the reproducibility of findings identified from replicate
4103 experiments and provide highly stable thresholds based on reproducibility.")
4104 (license license:gpl2+)))
4105
4106 (define-public jellyfish
4107 (package
4108 (name "jellyfish")
4109 (version "2.2.10")
4110 (source (origin
4111 (method url-fetch)
4112 (uri (string-append "https://github.com/gmarcais/Jellyfish/"
4113 "releases/download/v" version
4114 "/jellyfish-" version ".tar.gz"))
4115 (sha256
4116 (base32
4117 "1k4pc3fvv6w1km2yph4m5sd78fbxp21d6xyzgmy0gjihzc6mb249"))))
4118 (build-system gnu-build-system)
4119 (outputs '("out" ;for library
4120 "ruby" ;for Ruby bindings
4121 "python")) ;for Python bindings
4122 (arguments
4123 `(#:configure-flags
4124 (list (string-append "--enable-ruby-binding="
4125 (assoc-ref %outputs "ruby"))
4126 (string-append "--enable-python-binding="
4127 (assoc-ref %outputs "python")))
4128 #:phases
4129 (modify-phases %standard-phases
4130 (add-before 'check 'set-SHELL-variable
4131 (lambda _
4132 ;; generator_manager.hpp either uses /bin/sh or $SHELL
4133 ;; to run tests.
4134 (setenv "SHELL" (which "bash"))
4135 #t)))))
4136 (native-inputs
4137 `(("bc" ,bc)
4138 ("time" ,time)
4139 ("ruby" ,ruby)
4140 ("python" ,python-2)
4141 ("pkg-config" ,pkg-config)))
4142 (inputs
4143 `(("htslib" ,htslib)))
4144 (synopsis "Tool for fast counting of k-mers in DNA")
4145 (description
4146 "Jellyfish is a tool for fast, memory-efficient counting of k-mers in
4147 DNA. A k-mer is a substring of length k, and counting the occurrences of all
4148 such substrings is a central step in many analyses of DNA sequence. Jellyfish
4149 is a command-line program that reads FASTA and multi-FASTA files containing
4150 DNA sequences. It outputs its k-mer counts in a binary format, which can be
4151 translated into a human-readable text format using the @code{jellyfish dump}
4152 command, or queried for specific k-mers with @code{jellyfish query}.")
4153 (home-page "http://www.genome.umd.edu/jellyfish.html")
4154 ;; JELLYFISH seems to be 64-bit only.
4155 (supported-systems '("x86_64-linux" "aarch64-linux" "mips64el-linux"))
4156 ;; The combined work is published under the GPLv3 or later. Individual
4157 ;; files such as lib/jsoncpp.cpp are released under the Expat license.
4158 (license (list license:gpl3+ license:expat))))
4159
4160 (define-public khmer
4161 (package
4162 (name "khmer")
4163 (version "3.0.0a3")
4164 (source
4165 (origin
4166 (method git-fetch)
4167 (uri (git-reference
4168 (url "https://github.com/dib-lab/khmer.git")
4169 (commit (string-append "v" version))))
4170 (file-name (git-file-name name version))
4171 (sha256
4172 (base32
4173 "01l4jczglkl7yfhgvzx8j0df7k54bk1r8sli9ll16i1mis0d8f37"))
4174 (modules '((guix build utils)))
4175 (snippet
4176 '(begin
4177 ;; Delete bundled libraries. We do not replace the bundled seqan
4178 ;; as it is a modified subset of the old version 1.4.1.
4179 ;;
4180 ;; We do not replace the bundled MurmurHash as the canonical
4181 ;; repository for this code 'SMHasher' is unsuitable for providing
4182 ;; a library. See
4183 ;; https://lists.gnu.org/archive/html/guix-devel/2016-06/msg00977.html
4184 (delete-file-recursively "third-party/zlib")
4185 (delete-file-recursively "third-party/bzip2")
4186 (delete-file-recursively "third-party/seqan")
4187 (substitute* "setup.cfg"
4188 (("# libraries = z,bz2")
4189 "libraries = z,bz2")
4190 (("include:third-party/zlib:third-party/bzip2")
4191 "include:"))
4192 #t))))
4193 (build-system python-build-system)
4194 (arguments
4195 `(#:phases
4196 (modify-phases %standard-phases
4197 (add-after 'unpack 'set-cc
4198 (lambda _ (setenv "CC" "gcc") #t))
4199
4200 (add-before 'reset-gzip-timestamps 'make-files-writable
4201 (lambda* (#:key outputs #:allow-other-keys)
4202 ;; Make sure .gz files are writable so that the
4203 ;; 'reset-gzip-timestamps' phase can do its work.
4204 (let ((out (assoc-ref outputs "out")))
4205 (for-each make-file-writable
4206 (find-files out "\\.gz$"))
4207 #t))))))
4208 (native-inputs
4209 `(("python-cython" ,python-cython)
4210 ("python-pytest" ,python-pytest)
4211 ("python-pytest-runner" ,python-pytest-runner)))
4212 (inputs
4213 `(("zlib" ,zlib)
4214 ("bzip2" ,bzip2)
4215 ("seqan" ,seqan-1)
4216 ("python-screed" ,python-screed)
4217 ("python-bz2file" ,python-bz2file)))
4218 (home-page "https://khmer.readthedocs.org/")
4219 (synopsis "K-mer counting, filtering and graph traversal library")
4220 (description "The khmer software is a set of command-line tools for
4221 working with DNA shotgun sequencing data from genomes, transcriptomes,
4222 metagenomes and single cells. Khmer can make de novo assemblies faster, and
4223 sometimes better. Khmer can also identify and fix problems with shotgun
4224 data.")
4225 ;; When building on i686, armhf and mips64el, we get the following error:
4226 ;; error: ['khmer', 'khmer.tests', 'oxli'] require 64-bit operating system
4227 (supported-systems '("x86_64-linux" "aarch64-linux"))
4228 (license license:bsd-3)))
4229
4230 (define-public kaiju
4231 (package
4232 (name "kaiju")
4233 (version "1.6.3")
4234 (source (origin
4235 (method git-fetch)
4236 (uri (git-reference
4237 (url "https://github.com/bioinformatics-centre/kaiju")
4238 (commit (string-append "v" version))))
4239 (file-name (git-file-name name version))
4240 (sha256
4241 (base32
4242 "119pzi0ddzv9mjg4wwa6han0cwr3k3ssn7kirvsjfcq05mi5ka0x"))))
4243 (build-system gnu-build-system)
4244 (arguments
4245 `(#:tests? #f ; There are no tests.
4246 #:phases
4247 (modify-phases %standard-phases
4248 (delete 'configure)
4249 (add-before 'build 'move-to-src-dir
4250 (lambda _ (chdir "src") #t))
4251 (replace 'install
4252 (lambda* (#:key inputs outputs #:allow-other-keys)
4253 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
4254 (mkdir-p bin)
4255 (chdir "..")
4256 (copy-recursively "bin" bin))
4257 #t)))))
4258 (inputs
4259 `(("perl" ,perl)
4260 ("zlib" ,zlib)))
4261 (home-page "http://kaiju.binf.ku.dk/")
4262 (synopsis "Fast and sensitive taxonomic classification for metagenomics")
4263 (description "Kaiju is a program for sensitive taxonomic classification
4264 of high-throughput sequencing reads from metagenomic whole genome sequencing
4265 experiments.")
4266 (license license:gpl3+)))
4267
4268 (define-public macs
4269 (package
4270 (name "macs")
4271 (version "2.1.1.20160309")
4272 (source (origin
4273 (method url-fetch)
4274 (uri (pypi-uri "MACS2" version))
4275 (sha256
4276 (base32
4277 "09ixspd1vcqmz1c81ih70xs4m7qml2iy5vyx1y74zww3iy1vl210"))))
4278 (build-system python-build-system)
4279 (arguments
4280 `(#:python ,python-2 ; only compatible with Python 2.7
4281 #:tests? #f)) ; no test target
4282 (inputs
4283 `(("python-numpy" ,python2-numpy)))
4284 (home-page "https://github.com/taoliu/MACS/")
4285 (synopsis "Model based analysis for ChIP-Seq data")
4286 (description
4287 "MACS is an implementation of a ChIP-Seq analysis algorithm for
4288 identifying transcript factor binding sites named Model-based Analysis of
4289 ChIP-Seq (MACS). MACS captures the influence of genome complexity to evaluate
4290 the significance of enriched ChIP regions and it improves the spatial
4291 resolution of binding sites through combining the information of both
4292 sequencing tag position and orientation.")
4293 (license license:bsd-3)))
4294
4295 (define-public mafft
4296 (package
4297 (name "mafft")
4298 (version "7.394")
4299 (source (origin
4300 (method url-fetch)
4301 (uri (string-append
4302 "https://mafft.cbrc.jp/alignment/software/mafft-" version
4303 "-without-extensions-src.tgz"))
4304 (file-name (string-append name "-" version ".tgz"))
4305 (sha256
4306 (base32
4307 "0bacjkxfg944p5khhyh5rd4y7wkjc9qk4v2jjj442sqlq0f8ar7b"))))
4308 (build-system gnu-build-system)
4309 (arguments
4310 `(#:tests? #f ; no automated tests, though there are tests in the read me
4311 #:make-flags (let ((out (assoc-ref %outputs "out")))
4312 (list (string-append "PREFIX=" out)
4313 (string-append "BINDIR="
4314 (string-append out "/bin"))))
4315 #:phases
4316 (modify-phases %standard-phases
4317 (add-after 'unpack 'enter-dir
4318 (lambda _ (chdir "core") #t))
4319 (add-after 'enter-dir 'patch-makefile
4320 (lambda _
4321 ;; on advice from the MAFFT authors, there is no need to
4322 ;; distribute mafft-profile, mafft-distance, or
4323 ;; mafft-homologs.rb as they are too "specialised".
4324 (substitute* "Makefile"
4325 ;; remove mafft-homologs.rb from SCRIPTS
4326 (("^SCRIPTS = mafft mafft-homologs.rb")
4327 "SCRIPTS = mafft")
4328 ;; remove mafft-homologs from MANPAGES
4329 (("^MANPAGES = mafft.1 mafft-homologs.1")
4330 "MANPAGES = mafft.1")
4331 ;; remove mafft-distance from PROGS
4332 (("^PROGS = dvtditr dndfast7 dndblast sextet5 mafft-distance")
4333 "PROGS = dvtditr dndfast7 dndblast sextet5")
4334 ;; remove mafft-profile from PROGS
4335 (("splittbfast disttbfast tbfast mafft-profile 2cl mccaskillwrap")
4336 "splittbfast disttbfast tbfast f2cl mccaskillwrap")
4337 (("^rm -f mafft-profile mafft-profile.exe") "#")
4338 (("^rm -f mafft-distance mafft-distance.exe") ")#")
4339 ;; do not install MAN pages in libexec folder
4340 (("^\t\\$\\(INSTALL\\) -m 644 \\$\\(MANPAGES\\) \
4341 \\$\\(DESTDIR\\)\\$\\(LIBDIR\\)") "#"))
4342 #t))
4343 (add-after 'enter-dir 'patch-paths
4344 (lambda* (#:key inputs #:allow-other-keys)
4345 (substitute* '("pairash.c"
4346 "mafft.tmpl")
4347 (("perl") (which "perl"))
4348 (("([\"`| ])awk" _ prefix)
4349 (string-append prefix (which "awk")))
4350 (("grep") (which "grep")))
4351 #t))
4352 (delete 'configure)
4353 (add-after 'install 'wrap-programs
4354 (lambda* (#:key outputs #:allow-other-keys)
4355 (let* ((out (assoc-ref outputs "out"))
4356 (bin (string-append out "/bin"))
4357 (path (string-append
4358 (assoc-ref %build-inputs "coreutils") "/bin:")))
4359 (for-each (lambda (file)
4360 (wrap-program file
4361 `("PATH" ":" prefix (,path))))
4362 (find-files bin)))
4363 #t)))))
4364 (inputs
4365 `(("perl" ,perl)
4366 ("ruby" ,ruby)
4367 ("gawk" ,gawk)
4368 ("grep" ,grep)
4369 ("coreutils" ,coreutils)))
4370 (home-page "http://mafft.cbrc.jp/alignment/software/")
4371 (synopsis "Multiple sequence alignment program")
4372 (description
4373 "MAFFT offers a range of multiple alignment methods for nucleotide and
4374 protein sequences. For instance, it offers L-INS-i (accurate; for alignment
4375 of <~200 sequences) and FFT-NS-2 (fast; for alignment of <~30,000
4376 sequences).")
4377 (license (license:non-copyleft
4378 "http://mafft.cbrc.jp/alignment/software/license.txt"
4379 "BSD-3 with different formatting"))))
4380
4381 (define-public mash
4382 (package
4383 (name "mash")
4384 (version "2.1")
4385 (source (origin
4386 (method git-fetch)
4387 (uri (git-reference
4388 (url "https://github.com/marbl/mash.git")
4389 (commit (string-append "v" version))))
4390 (file-name (git-file-name name version))
4391 (sha256
4392 (base32
4393 "049hwcc059p2fd9vwndn63laifvvsi0wmv84i6y1fr79k15dxwy6"))
4394 (modules '((guix build utils)))
4395 (snippet
4396 '(begin
4397 ;; Delete bundled kseq.
4398 ;; TODO: Also delete bundled murmurhash and open bloom filter.
4399 (delete-file "src/mash/kseq.h")
4400 #t))))
4401 (build-system gnu-build-system)
4402 (arguments
4403 `(#:tests? #f ; No tests.
4404 #:configure-flags
4405 (list
4406 (string-append "--with-capnp=" (assoc-ref %build-inputs "capnproto"))
4407 (string-append "--with-gsl=" (assoc-ref %build-inputs "gsl")))
4408 #:make-flags (list "CC=gcc")
4409 #:phases
4410 (modify-phases %standard-phases
4411 (add-after 'unpack 'fix-includes
4412 (lambda _
4413 (substitute* '("src/mash/Sketch.cpp"
4414 "src/mash/CommandFind.cpp"
4415 "src/mash/CommandScreen.cpp")
4416 (("^#include \"kseq\\.h\"")
4417 "#include \"htslib/kseq.h\""))
4418 #t))
4419 (add-after 'fix-includes 'use-c++14
4420 (lambda _
4421 ;; capnproto 0.7 requires c++14 to build
4422 (substitute* "configure.ac"
4423 (("c\\+\\+11") "c++14"))
4424 (substitute* "Makefile.in"
4425 (("c\\+\\+11") "c++14"))
4426 #t)))))
4427 (native-inputs
4428 `(("autoconf" ,autoconf)
4429 ;; Capnproto and htslib are statically embedded in the final
4430 ;; application. Therefore we also list their licenses, below.
4431 ("capnproto" ,capnproto)
4432 ("htslib" ,htslib)))
4433 (inputs
4434 `(("gsl" ,gsl)
4435 ("zlib" ,zlib)))
4436 (supported-systems '("x86_64-linux"))
4437 (home-page "https://mash.readthedocs.io")
4438 (synopsis "Fast genome and metagenome distance estimation using MinHash")
4439 (description "Mash is a fast sequence distance estimator that uses the
4440 MinHash algorithm and is designed to work with genomes and metagenomes in the
4441 form of assemblies or reads.")
4442 (license (list license:bsd-3 ; Mash
4443 license:expat ; HTSlib and capnproto
4444 license:public-domain ; MurmurHash 3
4445 license:cpl1.0)))) ; Open Bloom Filter
4446
4447 (define-public metabat
4448 (package
4449 (name "metabat")
4450 (version "2.12.1")
4451 (source
4452 (origin
4453 (method git-fetch)
4454 (uri (git-reference
4455 (url "https://bitbucket.org/berkeleylab/metabat.git")
4456 (commit (string-append "v" version))))
4457 (file-name (git-file-name name version))
4458 (sha256
4459 (base32
4460 "0hyg2smw1nz69mfvjpk45xyyychmda92c80a0cv7baji84ri4iyn"))
4461 (patches (search-patches "metabat-fix-compilation.patch"))))
4462 (build-system scons-build-system)
4463 (arguments
4464 `(#:scons ,scons-python2
4465 #:scons-flags
4466 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
4467 (string-append "BOOST_ROOT=" (assoc-ref %build-inputs "boost")))
4468 #:tests? #f ;; Tests are run during the build phase.
4469 #:phases
4470 (modify-phases %standard-phases
4471 (add-after 'unpack 'fix-includes
4472 (lambda _
4473 (substitute* "src/BamUtils.h"
4474 (("^#include \"bam/bam\\.h\"")
4475 "#include \"samtools/bam.h\"")
4476 (("^#include \"bam/sam\\.h\"")
4477 "#include \"samtools/sam.h\""))
4478 (substitute* "src/KseqReader.h"
4479 (("^#include \"bam/kseq\\.h\"")
4480 "#include \"htslib/kseq.h\""))
4481 #t))
4482 (add-after 'unpack 'fix-scons
4483 (lambda* (#:key inputs #:allow-other-keys)
4484 (substitute* "SConstruct"
4485 (("^htslib_dir += 'samtools'")
4486 (string-append "htslib_dir = '"
4487 (assoc-ref inputs "htslib")
4488 "'"))
4489 (("^samtools_dir = 'samtools'")
4490 (string-append "samtools_dir = '"
4491 (assoc-ref inputs "samtools")
4492 "'"))
4493 (("^findStaticOrShared\\('bam', hts_lib")
4494 (string-append "findStaticOrShared('bam', '"
4495 (assoc-ref inputs "samtools")
4496 "/lib'"))
4497 ;; Do not distribute README.
4498 (("^env\\.Install\\(idir_prefix, 'README\\.md'\\)") ""))
4499 #t)))))
4500 (inputs
4501 `(("zlib" ,zlib)
4502 ("perl" ,perl)
4503 ("samtools" ,samtools)
4504 ("htslib" ,htslib)
4505 ("boost" ,boost)))
4506 (home-page "https://bitbucket.org/berkeleylab/metabat")
4507 (synopsis
4508 "Reconstruction of single genomes from complex microbial communities")
4509 (description
4510 "Grouping large genomic fragments assembled from shotgun metagenomic
4511 sequences to deconvolute complex microbial communities, or metagenome binning,
4512 enables the study of individual organisms and their interactions. MetaBAT is
4513 an automated metagenome binning software, which integrates empirical
4514 probabilistic distances of genome abundance and tetranucleotide frequency.")
4515 ;; The source code contains inline assembly.
4516 (supported-systems '("x86_64-linux" "i686-linux"))
4517 (license (license:non-copyleft "file://license.txt"
4518 "See license.txt in the distribution."))))
4519
4520 (define-public minced
4521 (package
4522 (name "minced")
4523 (version "0.3.2")
4524 (source (origin
4525 (method git-fetch)
4526 (uri (git-reference
4527 (url "https://github.com/ctSkennerton/minced.git")
4528 (commit version)))
4529 (file-name (git-file-name name version))
4530 (sha256
4531 (base32
4532 "1f5h9him0gd355cnx7p6pnxpknhckd4g0v62mg8zyhfbx9as25fv"))))
4533 (build-system gnu-build-system)
4534 (arguments
4535 `(#:test-target "test"
4536 #:phases
4537 (modify-phases %standard-phases
4538 (delete 'configure)
4539 (add-before 'check 'fix-test
4540 (lambda _
4541 ;; Fix test for latest version.
4542 (substitute* "t/Aquifex_aeolicus_VF5.expected"
4543 (("minced:0.1.6") "minced:0.2.0"))
4544 #t))
4545 (replace 'install ; No install target.
4546 (lambda* (#:key inputs outputs #:allow-other-keys)
4547 (let* ((out (assoc-ref outputs "out"))
4548 (bin (string-append out "/bin"))
4549 (wrapper (string-append bin "/minced")))
4550 ;; Minced comes with a wrapper script that tries to figure out where
4551 ;; it is located before running the JAR. Since these paths are known
4552 ;; to us, we build our own wrapper to avoid coreutils dependency.
4553 (install-file "minced.jar" bin)
4554 (with-output-to-file wrapper
4555 (lambda _
4556 (display
4557 (string-append
4558 "#!" (assoc-ref inputs "bash") "/bin/sh\n\n"
4559 (assoc-ref inputs "jre") "/bin/java -jar "
4560 bin "/minced.jar \"$@\"\n"))))
4561 (chmod wrapper #o555))
4562 #t)))))
4563 (native-inputs
4564 `(("jdk" ,icedtea "jdk")))
4565 (inputs
4566 `(("bash" ,bash)
4567 ("jre" ,icedtea "out")))
4568 (home-page "https://github.com/ctSkennerton/minced")
4569 (synopsis "Mining CRISPRs in Environmental Datasets")
4570 (description
4571 "MinCED is a program to find Clustered Regularly Interspaced Short
4572 Palindromic Repeats (CRISPRs) in DNA sequences. It can be used for
4573 unassembled metagenomic reads, but is mainly designed for full genomes and
4574 assembled metagenomic sequence.")
4575 (license license:gpl3+)))
4576
4577 (define-public miso
4578 (package
4579 (name "miso")
4580 (version "0.5.4")
4581 (source (origin
4582 (method url-fetch)
4583 (uri (pypi-uri "misopy" version))
4584 (sha256
4585 (base32
4586 "1z3x0vd8ma7pdrnywj7i3kgwl89sdkwrrn62zl7r5calqaq2hyip"))
4587 (modules '((guix build utils)))
4588 (snippet '(begin
4589 (substitute* "setup.py"
4590 ;; Use setuptools, or else the executables are not
4591 ;; installed.
4592 (("distutils.core") "setuptools")
4593 ;; use "gcc" instead of "cc" for compilation
4594 (("^defines")
4595 "cc.set_executables(
4596 compiler='gcc',
4597 compiler_so='gcc',
4598 linker_exe='gcc',
4599 linker_so='gcc -shared'); defines"))
4600 #t))))
4601 (build-system python-build-system)
4602 (arguments
4603 `(#:python ,python-2 ; only Python 2 is supported
4604 #:tests? #f)) ; no "test" target
4605 (inputs
4606 `(("samtools" ,samtools)
4607 ("python-numpy" ,python2-numpy)
4608 ("python-pysam" ,python2-pysam)
4609 ("python-scipy" ,python2-scipy)
4610 ("python-matplotlib" ,python2-matplotlib)))
4611 (native-inputs
4612 `(("python-mock" ,python2-mock) ;for tests
4613 ("python-pytz" ,python2-pytz))) ;for tests
4614 (home-page "http://genes.mit.edu/burgelab/miso/index.html")
4615 (synopsis "Mixture of Isoforms model for RNA-Seq isoform quantitation")
4616 (description
4617 "MISO (Mixture-of-Isoforms) is a probabilistic framework that quantitates
4618 the expression level of alternatively spliced genes from RNA-Seq data, and
4619 identifies differentially regulated isoforms or exons across samples. By
4620 modeling the generative process by which reads are produced from isoforms in
4621 RNA-Seq, the MISO model uses Bayesian inference to compute the probability
4622 that a read originated from a particular isoform.")
4623 (license license:gpl2)))
4624
4625 (define-public muscle
4626 (package
4627 (name "muscle")
4628 (version "3.8.1551")
4629 (source (origin
4630 (method url-fetch/tarbomb)
4631 (uri (string-append
4632 "http://www.drive5.com/muscle/muscle_src_"
4633 version ".tar.gz"))
4634 (sha256
4635 (base32
4636 "0bj8kj7sdizy3987zx6w7axihk40fk8rn76mpbqqjcnd64i5a367"))))
4637 (build-system gnu-build-system)
4638 (arguments
4639 `(#:make-flags (list "LDLIBS = -lm")
4640 #:phases
4641 (modify-phases %standard-phases
4642 (delete 'configure)
4643 (replace 'check
4644 ;; There are no tests, so just test if it runs.
4645 (lambda _ (invoke "./muscle" "-version") #t))
4646 (replace 'install
4647 (lambda* (#:key outputs #:allow-other-keys)
4648 (let* ((out (assoc-ref outputs "out"))
4649 (bin (string-append out "/bin")))
4650 (install-file "muscle" bin)
4651 #t))))))
4652 (home-page "http://www.drive5.com/muscle")
4653 (synopsis "Multiple sequence alignment program")
4654 (description
4655 "MUSCLE aims to be a fast and accurate multiple sequence alignment
4656 program for nucleotide and protein sequences.")
4657 ;; License information found in 'muscle -h' and usage.cpp.
4658 (license license:public-domain)))
4659
4660 (define-public newick-utils
4661 ;; There are no recent releases so we package from git.
4662 (let ((commit "da121155a977197cab9fbb15953ca1b40b11eb87"))
4663 (package
4664 (name "newick-utils")
4665 (version (string-append "1.6-1." (string-take commit 8)))
4666 (source (origin
4667 (method git-fetch)
4668 (uri (git-reference
4669 (url "https://github.com/tjunier/newick_utils.git")
4670 (commit commit)))
4671 (file-name (string-append name "-" version "-checkout"))
4672 (sha256
4673 (base32
4674 "1hkw21rq1mwf7xp0rmbb2gqc0i6p11108m69i7mr7xcjl268pxnb"))))
4675 (build-system gnu-build-system)
4676 (inputs
4677 ;; XXX: TODO: Enable Lua and Guile bindings.
4678 ;; https://github.com/tjunier/newick_utils/issues/13
4679 `(("libxml2" ,libxml2)
4680 ("flex" ,flex)
4681 ("bison" ,bison)))
4682 (native-inputs
4683 `(("autoconf" ,autoconf)
4684 ("automake" ,automake)
4685 ("libtool" ,libtool)))
4686 (synopsis "Programs for working with newick format phylogenetic trees")
4687 (description
4688 "Newick-utils is a suite of utilities for processing phylogenetic trees
4689 in Newick format. Functions include re-rooting, extracting subtrees,
4690 trimming, pruning, condensing, drawing (ASCII graphics or SVG).")
4691 (home-page "https://github.com/tjunier/newick_utils")
4692 (license license:bsd-3))))
4693
4694 (define-public orfm
4695 (package
4696 (name "orfm")
4697 (version "0.7.1")
4698 (source (origin
4699 (method url-fetch)
4700 (uri (string-append
4701 "https://github.com/wwood/OrfM/releases/download/v"
4702 version "/orfm-" version ".tar.gz"))
4703 (sha256
4704 (base32
4705 "16iigyr2gd8x0imzkk1dr3k5xsds9bpmwg31ayvjg0f4pir9rwqr"))))
4706 (build-system gnu-build-system)
4707 (inputs `(("zlib" ,zlib)))
4708 (native-inputs
4709 `(("ruby-bio-commandeer" ,ruby-bio-commandeer)
4710 ("ruby-rspec" ,ruby-rspec)
4711 ("ruby" ,ruby)))
4712 (synopsis "Simple and not slow open reading frame (ORF) caller")
4713 (description
4714 "An ORF caller finds stretches of DNA that, when translated, are not
4715 interrupted by stop codons. OrfM finds and prints these ORFs.")
4716 (home-page "https://github.com/wwood/OrfM")
4717 (license license:lgpl3+)))
4718
4719 (define-public python2-pbcore
4720 (package
4721 (name "python2-pbcore")
4722 (version "1.2.10")
4723 (source (origin
4724 (method url-fetch)
4725 (uri (pypi-uri "pbcore" version))
4726 (sha256
4727 (base32
4728 "1kjmv891d6qbpp4shhhvkl02ff4q5xlpnls2513sm2cjcrs52f1i"))))
4729 (build-system python-build-system)
4730 (arguments `(#:python ,python-2)) ; pbcore requires Python 2.7
4731 (propagated-inputs
4732 `(("python-cython" ,python2-cython)
4733 ("python-numpy" ,python2-numpy)
4734 ("python-pysam" ,python2-pysam)
4735 ("python-h5py" ,python2-h5py)))
4736 (native-inputs
4737 `(("python-nose" ,python2-nose)
4738 ("python-sphinx" ,python2-sphinx)
4739 ("python-pyxb" ,python2-pyxb)))
4740 (home-page "http://pacificbiosciences.github.io/pbcore/")
4741 (synopsis "Library for reading and writing PacBio data files")
4742 (description
4743 "The pbcore package provides Python APIs for interacting with PacBio data
4744 files and writing bioinformatics applications.")
4745 (license license:bsd-3)))
4746
4747 (define-public python2-warpedlmm
4748 (package
4749 (name "python2-warpedlmm")
4750 (version "0.21")
4751 (source
4752 (origin
4753 (method url-fetch)
4754 (uri (pypi-uri "WarpedLMM" version ".zip"))
4755 (sha256
4756 (base32
4757 "1agfz6zqa8nc6cw47yh0s3y14gkpa9wqazwcj7mwwj3ffnw39p3j"))))
4758 (build-system python-build-system)
4759 (arguments
4760 `(#:python ,python-2)) ; requires Python 2.7
4761 (propagated-inputs
4762 `(("python-scipy" ,python2-scipy)
4763 ("python-numpy" ,python2-numpy)
4764 ("python-matplotlib" ,python2-matplotlib)
4765 ("python-fastlmm" ,python2-fastlmm)
4766 ("python-pandas" ,python2-pandas)
4767 ("python-pysnptools" ,python2-pysnptools)))
4768 (native-inputs
4769 `(("python-mock" ,python2-mock)
4770 ("python-nose" ,python2-nose)
4771 ("unzip" ,unzip)))
4772 (home-page "https://github.com/PMBio/warpedLMM")
4773 (synopsis "Implementation of warped linear mixed models")
4774 (description
4775 "WarpedLMM is a Python implementation of the warped linear mixed model,
4776 which automatically learns an optimal warping function (or transformation) for
4777 the phenotype as it models the data.")
4778 (license license:asl2.0)))
4779
4780 (define-public pbtranscript-tofu
4781 (let ((commit "8f5467fe6a4472bcfb4226c8720993c8507adfe4"))
4782 (package
4783 (name "pbtranscript-tofu")
4784 (version (string-append "2.2.3." (string-take commit 7)))
4785 (source (origin
4786 (method git-fetch)
4787 (uri (git-reference
4788 (url "https://github.com/PacificBiosciences/cDNA_primer.git")
4789 (commit commit)))
4790 (file-name (string-append name "-" version "-checkout"))
4791 (sha256
4792 (base32
4793 "1lgnpi35ihay42qx0b6yl3kkgra723i413j33kvs0kvs61h82w0f"))
4794 (modules '((guix build utils)))
4795 (snippet
4796 '(begin
4797 ;; remove bundled Cython sources
4798 (delete-file "pbtranscript-tofu/pbtranscript/Cython-0.20.1.tar.gz")
4799 #t))))
4800 (build-system python-build-system)
4801 (arguments
4802 `(#:python ,python-2
4803 ;; FIXME: Tests fail with "No such file or directory:
4804 ;; pbtools/pbtranscript/modified_bx_intervals/intersection_unique.so"
4805 #:tests? #f
4806 #:phases
4807 (modify-phases %standard-phases
4808 (add-after 'unpack 'enter-directory
4809 (lambda _
4810 (chdir "pbtranscript-tofu/pbtranscript/")
4811 #t))
4812 ;; With setuptools version 18.0 and later this setup.py hack causes
4813 ;; a build error, so we disable it.
4814 (add-after 'enter-directory 'patch-setuppy
4815 (lambda _
4816 (substitute* "setup.py"
4817 (("if 'setuptools.extension' in sys.modules:")
4818 "if False:"))
4819 #t)))))
4820 (inputs
4821 `(("python-numpy" ,python2-numpy)
4822 ("python-bx-python" ,python2-bx-python)
4823 ("python-networkx" ,python2-networkx)
4824 ("python-scipy" ,python2-scipy)
4825 ("python-pbcore" ,python2-pbcore)
4826 ("python-h5py" ,python2-h5py)))
4827 (native-inputs
4828 `(("python-cython" ,python2-cython)
4829 ("python-nose" ,python2-nose)))
4830 (home-page "https://github.com/PacificBiosciences/cDNA_primer")
4831 (synopsis "Analyze transcriptome data generated with the Iso-Seq protocol")
4832 (description
4833 "pbtranscript-tofu contains scripts to analyze transcriptome data
4834 generated using the PacBio Iso-Seq protocol.")
4835 (license license:bsd-3))))
4836
4837 (define-public prank
4838 (package
4839 (name "prank")
4840 (version "170427")
4841 (source (origin
4842 (method url-fetch)
4843 (uri (string-append
4844 "http://wasabiapp.org/download/prank/prank.source."
4845 version ".tgz"))
4846 (sha256
4847 (base32
4848 "0nc8g9c5rkdxcir46s0in9ci1sxwzbjibxrvkksf22ybnplvagk2"))))
4849 (build-system gnu-build-system)
4850 (arguments
4851 `(#:phases
4852 (modify-phases %standard-phases
4853 (add-after 'unpack 'enter-src-dir
4854 (lambda _
4855 (chdir "src")
4856 #t))
4857 (add-after 'unpack 'remove-m64-flag
4858 ;; Prank will build with the correct 'bit-ness' without this flag
4859 ;; and this allows building on 32-bit machines.
4860 (lambda _ (substitute* "src/Makefile"
4861 (("-m64") ""))
4862 #t))
4863 (delete 'configure)
4864 (replace 'install
4865 (lambda* (#:key outputs #:allow-other-keys)
4866 (let* ((out (assoc-ref outputs "out"))
4867 (bin (string-append out "/bin"))
4868 (man (string-append out "/share/man/man1"))
4869 (path (string-append
4870 (assoc-ref %build-inputs "mafft") "/bin:"
4871 (assoc-ref %build-inputs "exonerate") "/bin:"
4872 (assoc-ref %build-inputs "bppsuite") "/bin")))
4873 (install-file "prank" bin)
4874 (wrap-program (string-append bin "/prank")
4875 `("PATH" ":" prefix (,path)))
4876 (install-file "prank.1" man))
4877 #t)))))
4878 (inputs
4879 `(("mafft" ,mafft)
4880 ("exonerate" ,exonerate)
4881 ("bppsuite" ,bppsuite)))
4882 (home-page "http://wasabiapp.org/software/prank/")
4883 (synopsis "Probabilistic multiple sequence alignment program")
4884 (description
4885 "PRANK is a probabilistic multiple sequence alignment program for DNA,
4886 codon and amino-acid sequences. It is based on a novel algorithm that treats
4887 insertions correctly and avoids over-estimation of the number of deletion
4888 events. In addition, PRANK borrows ideas from maximum likelihood methods used
4889 in phylogenetics and correctly takes into account the evolutionary distances
4890 between sequences. Lastly, PRANK allows for defining a potential structure
4891 for sequences to be aligned and then, simultaneously with the alignment,
4892 predicts the locations of structural units in the sequences.")
4893 (license license:gpl2+)))
4894
4895 (define-public proteinortho
4896 (package
4897 (name "proteinortho")
4898 (version "5.16b")
4899 (source
4900 (origin
4901 (method url-fetch)
4902 (uri
4903 (string-append
4904 "http://www.bioinf.uni-leipzig.de/Software/proteinortho/proteinortho_v"
4905 version "_src.tar.gz"))
4906 (sha256
4907 (base32
4908 "1wl0dawpssqwfjvr651r4wlww8hhjin8nba6xh71ks7sbypx886j"))))
4909 (build-system gnu-build-system)
4910 (arguments
4911 `(#:test-target "test"
4912 #:phases
4913 (modify-phases %standard-phases
4914 (replace 'configure
4915 ;; There is no configure script, so we modify the Makefile directly.
4916 (lambda* (#:key outputs #:allow-other-keys)
4917 (substitute* "Makefile"
4918 (("INSTALLDIR=.*")
4919 (string-append
4920 "INSTALLDIR=" (assoc-ref outputs "out") "/bin\n")))
4921 #t))
4922 (add-before 'install 'make-install-directory
4923 ;; The install directory is not created during 'make install'.
4924 (lambda* (#:key outputs #:allow-other-keys)
4925 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
4926 #t))
4927 (add-after 'install 'wrap-programs
4928 (lambda* (#:key inputs outputs #:allow-other-keys)
4929 (let* ((path (getenv "PATH"))
4930 (out (assoc-ref outputs "out"))
4931 (binary (string-append out "/bin/proteinortho5.pl")))
4932 (wrap-program binary `("PATH" ":" prefix (,path))))
4933 #t)))))
4934 (inputs
4935 `(("perl" ,perl)
4936 ("python" ,python-2)
4937 ("blast+" ,blast+)))
4938 (home-page "http://www.bioinf.uni-leipzig.de/Software/proteinortho")
4939 (synopsis "Detect orthologous genes across species")
4940 (description
4941 "Proteinortho is a tool to detect orthologous genes across different
4942 species. For doing so, it compares similarities of given gene sequences and
4943 clusters them to find significant groups. The algorithm was designed to handle
4944 large-scale data and can be applied to hundreds of species at once.")
4945 (license license:gpl2+)))
4946
4947 (define-public pyicoteo
4948 (package
4949 (name "pyicoteo")
4950 (version "2.0.7")
4951 (source
4952 (origin
4953 (method git-fetch)
4954 (uri (git-reference
4955 (url "https://bitbucket.org/regulatorygenomicsupf/pyicoteo.git")
4956 (commit (string-append "v" version))))
4957 (file-name (git-file-name name version))
4958 (sha256
4959 (base32
4960 "0hz5g8d25lbjy1wpscr490l0lmyvaix893hhax4fxnh1h9w34w8p"))))
4961 (build-system python-build-system)
4962 (arguments
4963 `(#:python ,python-2 ; does not work with Python 3
4964 #:tests? #f)) ; there are no tests
4965 (inputs
4966 `(("python2-matplotlib" ,python2-matplotlib)))
4967 (home-page "https://bitbucket.org/regulatorygenomicsupf/pyicoteo")
4968 (synopsis "Analyze high-throughput genetic sequencing data")
4969 (description
4970 "Pyicoteo is a suite of tools for the analysis of high-throughput genetic
4971 sequencing data. It works with genomic coordinates. There are currently six
4972 different command-line tools:
4973
4974 @enumerate
4975 @item pyicoregion: for generating exploratory regions automatically;
4976 @item pyicoenrich: for differential enrichment between two conditions;
4977 @item pyicoclip: for calling CLIP-Seq peaks without a control;
4978 @item pyicos: for genomic coordinates manipulation;
4979 @item pyicoller: for peak calling on punctuated ChIP-Seq;
4980 @item pyicount: to count how many reads from N experiment files overlap in a
4981 region file;
4982 @item pyicotrocol: to combine operations from pyicoteo.
4983 @end enumerate\n")
4984 (license license:gpl3+)))
4985
4986 (define-public prodigal
4987 (package
4988 (name "prodigal")
4989 (version "2.6.3")
4990 (source (origin
4991 (method git-fetch)
4992 (uri (git-reference
4993 (url "https://github.com/hyattpd/Prodigal.git")
4994 (commit (string-append "v" version))))
4995 (file-name (git-file-name name version))
4996 (sha256
4997 (base32
4998 "1fs1hqk83qjbjhrvhw6ni75zakx5ki1ayy3v6wwkn3xvahc9hi5s"))))
4999 (build-system gnu-build-system)
5000 (arguments
5001 `(#:tests? #f ;no check target
5002 #:make-flags (list (string-append "INSTALLDIR="
5003 (assoc-ref %outputs "out")
5004 "/bin"))
5005 #:phases
5006 (modify-phases %standard-phases
5007 (delete 'configure))))
5008 (home-page "http://prodigal.ornl.gov")
5009 (synopsis "Protein-coding gene prediction for Archaea and Bacteria")
5010 (description
5011 "Prodigal runs smoothly on finished genomes, draft genomes, and
5012 metagenomes, providing gene predictions in GFF3, Genbank, or Sequin table
5013 format. It runs quickly, in an unsupervised fashion, handles gaps, handles
5014 partial genes, and identifies translation initiation sites.")
5015 (license license:gpl3+)))
5016
5017 (define-public roary
5018 (package
5019 (name "roary")
5020 (version "3.12.0")
5021 (source
5022 (origin
5023 (method url-fetch)
5024 (uri (string-append
5025 "mirror://cpan/authors/id/A/AJ/AJPAGE/Bio-Roary-"
5026 version ".tar.gz"))
5027 (sha256
5028 (base32
5029 "0qxrds9wx7cfhlkihrp6697kx0flhhxymap9fwan0b3rbdhcnmff"))))
5030 (build-system perl-build-system)
5031 (arguments
5032 `(#:phases
5033 (modify-phases %standard-phases
5034 (delete 'configure)
5035 (delete 'build)
5036 (replace 'check
5037 (lambda _
5038 ;; The tests are not run by default, so we run each test file
5039 ;; directly.
5040 (setenv "PATH" (string-append (getcwd) "/bin" ":"
5041 (getenv "PATH")))
5042 (setenv "PERL5LIB" (string-append (getcwd) "/lib" ":"
5043 (getenv "PERL5LIB")))
5044 (for-each (lambda (file)
5045 (display file)(display "\n")
5046 (invoke "perl" file))
5047 (find-files "t" ".*\\.t$"))
5048 #t))
5049 (replace 'install
5050 ;; There is no 'install' target in the Makefile.
5051 (lambda* (#:key outputs #:allow-other-keys)
5052 (let* ((out (assoc-ref outputs "out"))
5053 (bin (string-append out "/bin"))
5054 (perl (string-append out "/lib/perl5/site_perl"))
5055 (roary-plots "contrib/roary_plots"))
5056 (mkdir-p bin)
5057 (mkdir-p perl)
5058 (copy-recursively "bin" bin)
5059 (copy-recursively "lib" perl)
5060 #t)))
5061 (add-after 'install 'wrap-programs
5062 (lambda* (#:key inputs outputs #:allow-other-keys)
5063 (let* ((out (assoc-ref outputs "out"))
5064 (perl5lib (getenv "PERL5LIB"))
5065 (path (getenv "PATH")))
5066 (for-each (lambda (prog)
5067 (let ((binary (string-append out "/" prog)))
5068 (wrap-program binary
5069 `("PERL5LIB" ":" prefix
5070 (,(string-append perl5lib ":" out
5071 "/lib/perl5/site_perl"))))
5072 (wrap-program binary
5073 `("PATH" ":" prefix
5074 (,(string-append path ":" out "/bin"))))))
5075 (find-files "bin" ".*[^R]$"))
5076 (let ((file
5077 (string-append out "/bin/roary-create_pan_genome_plots.R"))
5078 (r-site-lib (getenv "R_LIBS_SITE"))
5079 (coreutils-path
5080 (string-append (assoc-ref inputs "coreutils") "/bin")))
5081 (wrap-program file
5082 `("R_LIBS_SITE" ":" prefix
5083 (,(string-append r-site-lib ":" out "/site-library/"))))
5084 (wrap-program file
5085 `("PATH" ":" prefix
5086 (,(string-append coreutils-path ":" out "/bin"))))))
5087 #t)))))
5088 (native-inputs
5089 `(("perl-env-path" ,perl-env-path)
5090 ("perl-test-files" ,perl-test-files)
5091 ("perl-test-most" ,perl-test-most)
5092 ("perl-test-output" ,perl-test-output)))
5093 (inputs
5094 `(("perl-array-utils" ,perl-array-utils)
5095 ("bioperl" ,bioperl-minimal)
5096 ("perl-digest-md5-file" ,perl-digest-md5-file)
5097 ("perl-exception-class" ,perl-exception-class)
5098 ("perl-file-find-rule" ,perl-file-find-rule)
5099 ("perl-file-grep" ,perl-file-grep)
5100 ("perl-file-slurper" ,perl-file-slurper)
5101 ("perl-file-which" ,perl-file-which)
5102 ("perl-graph" ,perl-graph)
5103 ("perl-graph-readwrite" ,perl-graph-readwrite)
5104 ("perl-log-log4perl" ,perl-log-log4perl)
5105 ("perl-moose" ,perl-moose)
5106 ("perl-perlio-utf8_strict" ,perl-perlio-utf8_strict)
5107 ("perl-text-csv" ,perl-text-csv)
5108 ("bedtools" ,bedtools)
5109 ("cd-hit" ,cd-hit)
5110 ("blast+" ,blast+)
5111 ("mcl" ,mcl)
5112 ("parallel" ,parallel)
5113 ("prank" ,prank)
5114 ("mafft" ,mafft)
5115 ("fasttree" ,fasttree)
5116 ("grep" ,grep)
5117 ("sed" ,sed)
5118 ("gawk" ,gawk)
5119 ("r-minimal" ,r-minimal)
5120 ("r-ggplot2" ,r-ggplot2)
5121 ("coreutils" ,coreutils)))
5122 (home-page "http://sanger-pathogens.github.io/Roary")
5123 (synopsis "High speed stand-alone pan genome pipeline")
5124 (description
5125 "Roary is a high speed stand alone pan genome pipeline, which takes
5126 annotated assemblies in GFF3 format (produced by the Prokka program) and
5127 calculates the pan genome. Using a standard desktop PC, it can analyse
5128 datasets with thousands of samples, without compromising the quality of the
5129 results. 128 samples can be analysed in under 1 hour using 1 GB of RAM and a
5130 single processor. Roary is not intended for metagenomics or for comparing
5131 extremely diverse sets of genomes.")
5132 (license license:gpl3)))
5133
5134 (define-public raxml
5135 (package
5136 (name "raxml")
5137 (version "8.2.12")
5138 (source
5139 (origin
5140 (method git-fetch)
5141 (uri (git-reference
5142 (url "https://github.com/stamatak/standard-RAxML.git")
5143 (commit (string-append "v" version))))
5144 (file-name (git-file-name name version))
5145 (sha256
5146 (base32
5147 "1jqjzhch0rips0vp04prvb8vmc20c5pdmsqn8knadcf91yy859fh"))))
5148 (build-system gnu-build-system)
5149 (arguments
5150 `(#:tests? #f ; There are no tests.
5151 ;; Use 'standard' Makefile rather than SSE or AVX ones.
5152 #:make-flags (list "-f" "Makefile.HYBRID.gcc")
5153 #:phases
5154 (modify-phases %standard-phases
5155 (delete 'configure)
5156 (replace 'install
5157 (lambda* (#:key outputs #:allow-other-keys)
5158 (let* ((out (assoc-ref outputs "out"))
5159 (bin (string-append out "/bin"))
5160 (executable "raxmlHPC-HYBRID"))
5161 (install-file executable bin)
5162 (symlink (string-append bin "/" executable) "raxml"))
5163 #t)))))
5164 (inputs
5165 `(("openmpi" ,openmpi)))
5166 (home-page "http://sco.h-its.org/exelixis/web/software/raxml/index.html")
5167 (synopsis "Randomized Axelerated Maximum Likelihood phylogenetic trees")
5168 (description
5169 "RAxML is a tool for phylogenetic analysis and post-analysis of large
5170 phylogenies.")
5171 ;; The source includes x86 specific code
5172 (supported-systems '("x86_64-linux" "i686-linux"))
5173 (license license:gpl2+)))
5174
5175 (define-public rsem
5176 (package
5177 (name "rsem")
5178 (version "1.3.1")
5179 (source
5180 (origin
5181 (method git-fetch)
5182 (uri (git-reference
5183 (url "https://github.com/deweylab/RSEM.git")
5184 (commit (string-append "v" version))))
5185 (sha256
5186 (base32 "1jlq11d1p8qp64w75yj8cnbbd1a93viq10pzsbwal7vdn8fg13j1"))
5187 (file-name (git-file-name name version))
5188 (modules '((guix build utils)))
5189 (snippet
5190 '(begin
5191 ;; remove bundled copy of boost and samtools
5192 (delete-file-recursively "boost")
5193 (delete-file-recursively "samtools-1.3")
5194 #t))))
5195 (build-system gnu-build-system)
5196 (arguments
5197 `(#:tests? #f ;no "check" target
5198 #:make-flags
5199 (list (string-append "BOOST="
5200 (assoc-ref %build-inputs "boost")
5201 "/include/")
5202 (string-append "SAMHEADERS="
5203 (assoc-ref %build-inputs "htslib")
5204 "/include/htslib/sam.h")
5205 (string-append "SAMLIBS="
5206 (assoc-ref %build-inputs "htslib")
5207 "/lib/libhts.a"))
5208 #:phases
5209 (modify-phases %standard-phases
5210 ;; No "configure" script.
5211 ;; Do not build bundled samtools library.
5212 (replace 'configure
5213 (lambda _
5214 (substitute* "Makefile"
5215 (("^all : \\$\\(PROGRAMS\\).*") "all: $(PROGRAMS)\n")
5216 (("^\\$\\(SAMLIBS\\).*") ""))
5217 #t))
5218 (replace 'install
5219 (lambda* (#:key outputs #:allow-other-keys)
5220 (let* ((out (string-append (assoc-ref outputs "out")))
5221 (bin (string-append out "/bin/"))
5222 (perl (string-append out "/lib/perl5/site_perl")))
5223 (mkdir-p bin)
5224 (mkdir-p perl)
5225 (for-each (lambda (file)
5226 (install-file file bin))
5227 (find-files "." "rsem-.*"))
5228 (install-file "rsem_perl_utils.pm" perl))
5229 #t))
5230 (add-after 'install 'wrap-program
5231 (lambda* (#:key outputs #:allow-other-keys)
5232 (let ((out (assoc-ref outputs "out")))
5233 (for-each (lambda (prog)
5234 (wrap-program (string-append out "/bin/" prog)
5235 `("PERL5LIB" ":" prefix
5236 (,(string-append out "/lib/perl5/site_perl")))))
5237 '("rsem-calculate-expression"
5238 "rsem-control-fdr"
5239 "rsem-generate-data-matrix"
5240 "rsem-generate-ngvector"
5241 "rsem-plot-transcript-wiggles"
5242 "rsem-prepare-reference"
5243 "rsem-run-ebseq"
5244 "rsem-run-prsem-testing-procedure")))
5245 #t)))))
5246 (inputs
5247 `(("boost" ,boost)
5248 ("r-minimal" ,r-minimal)
5249 ("perl" ,perl)
5250 ("htslib" ,htslib-1.3)
5251 ("zlib" ,zlib)))
5252 (home-page "http://deweylab.biostat.wisc.edu/rsem/")
5253 (synopsis "Estimate gene expression levels from RNA-Seq data")
5254 (description
5255 "RSEM is a software package for estimating gene and isoform expression
5256 levels from RNA-Seq data. The RSEM package provides a user-friendly
5257 interface, supports threads for parallel computation of the EM algorithm,
5258 single-end and paired-end read data, quality scores, variable-length reads and
5259 RSPD estimation. In addition, it provides posterior mean and 95% credibility
5260 interval estimates for expression levels. For visualization, it can generate
5261 BAM and Wiggle files in both transcript-coordinate and genomic-coordinate.")
5262 (license license:gpl3+)))
5263
5264 (define-public rseqc
5265 (package
5266 (name "rseqc")
5267 (version "2.6.1")
5268 (source
5269 (origin
5270 (method url-fetch)
5271 (uri
5272 (string-append "mirror://sourceforge/rseqc/"
5273 "RSeQC-" version ".tar.gz"))
5274 (sha256
5275 (base32 "15ly0254yi032qzkdplg00q144qfdsd986gh62829rl5bkxhj330"))
5276 (modules '((guix build utils)))
5277 (snippet
5278 '(begin
5279 ;; remove bundled copy of pysam
5280 (delete-file-recursively "lib/pysam")
5281 (substitute* "setup.py"
5282 ;; remove dependency on outdated "distribute" module
5283 (("^from distribute_setup import use_setuptools") "")
5284 (("^use_setuptools\\(\\)") "")
5285 ;; do not use bundled copy of pysam
5286 (("^have_pysam = False") "have_pysam = True"))
5287 #t))))
5288 (build-system python-build-system)
5289 (arguments `(#:python ,python-2))
5290 (inputs
5291 `(("python-cython" ,python2-cython)
5292 ("python-pysam" ,python2-pysam)
5293 ("python-numpy" ,python2-numpy)
5294 ("zlib" ,zlib)))
5295 (native-inputs
5296 `(("python-nose" ,python2-nose)))
5297 (home-page "http://rseqc.sourceforge.net/")
5298 (synopsis "RNA-seq quality control package")
5299 (description
5300 "RSeQC provides a number of modules that can comprehensively evaluate
5301 high throughput sequence data, especially RNA-seq data. Some basic modules
5302 inspect sequence quality, nucleotide composition bias, PCR bias and GC bias,
5303 while RNA-seq specific modules evaluate sequencing saturation, mapped reads
5304 distribution, coverage uniformity, strand specificity, etc.")
5305 (license license:gpl3+)))
5306
5307 (define-public seek
5308 ;; There are no release tarballs. According to the installation
5309 ;; instructions at http://seek.princeton.edu/installation.jsp, the latest
5310 ;; stable release is identified by this changeset ID.
5311 (let ((changeset "2329130")
5312 (revision "1"))
5313 (package
5314 (name "seek")
5315 (version (string-append "0-" revision "." changeset))
5316 (source (origin
5317 (method hg-fetch)
5318 (uri (hg-reference
5319 (url "https://bitbucket.org/libsleipnir/sleipnir")
5320 (changeset changeset)))
5321 (file-name (string-append name "-" version "-checkout"))
5322 (sha256
5323 (base32
5324 "0qrvilwh18dpbhkf92qvxbmay0j75ra3jg2wrhz67gf538zzphsx"))))
5325 (build-system gnu-build-system)
5326 (arguments
5327 `(#:modules ((srfi srfi-1)
5328 (guix build gnu-build-system)
5329 (guix build utils))
5330 #:phases
5331 (let ((dirs '("SeekMiner"
5332 "SeekEvaluator"
5333 "SeekPrep"
5334 "Distancer"
5335 "Data2DB"
5336 "PCL2Bin")))
5337 (modify-phases %standard-phases
5338 (replace 'bootstrap
5339 (lambda _
5340 (substitute* "gen_tools_am"
5341 (("/usr/bin/env.*") (which "perl")))
5342 (invoke "bash" "gen_auto")
5343 #t))
5344 (add-after 'build 'build-additional-tools
5345 (lambda* (#:key make-flags #:allow-other-keys)
5346 (for-each (lambda (dir)
5347 (with-directory-excursion (string-append "tools/" dir)
5348 (apply invoke "make" make-flags)))
5349 dirs)
5350 #t))
5351 (add-after 'install 'install-additional-tools
5352 (lambda* (#:key make-flags #:allow-other-keys)
5353 (for-each (lambda (dir)
5354 (with-directory-excursion (string-append "tools/" dir)
5355 (apply invoke `("make" ,@make-flags "install"))))
5356 dirs)
5357 #t))))))
5358 (inputs
5359 `(("gsl" ,gsl)
5360 ("boost" ,boost)
5361 ("libsvm" ,libsvm)
5362 ("readline" ,readline)
5363 ("gengetopt" ,gengetopt)
5364 ("log4cpp" ,log4cpp)))
5365 (native-inputs
5366 `(("autoconf" ,autoconf)
5367 ("automake" ,automake)
5368 ("perl" ,perl)))
5369 (home-page "http://seek.princeton.edu")
5370 (synopsis "Gene co-expression search engine")
5371 (description
5372 "SEEK is a computational gene co-expression search engine. SEEK provides
5373 biologists with a way to navigate the massive human expression compendium that
5374 now contains thousands of expression datasets. SEEK returns a robust ranking
5375 of co-expressed genes in the biological area of interest defined by the user's
5376 query genes. It also prioritizes thousands of expression datasets according
5377 to the user's query of interest.")
5378 (license license:cc-by3.0))))
5379
5380 (define-public samtools
5381 (package
5382 (name "samtools")
5383 (version "1.9")
5384 (source
5385 (origin
5386 (method url-fetch)
5387 (uri
5388 (string-append "mirror://sourceforge/samtools/samtools/"
5389 version "/samtools-" version ".tar.bz2"))
5390 (sha256
5391 (base32
5392 "10ilqbmm7ri8z431sn90lvbjwizd0hhkf9rcqw8j823hf26nhgq8"))
5393 (modules '((guix build utils)))
5394 (snippet '(begin
5395 ;; Delete bundled htslib.
5396 (delete-file-recursively "htslib-1.9")
5397 #t))))
5398 (build-system gnu-build-system)
5399 (arguments
5400 `(#:modules ((ice-9 ftw)
5401 (ice-9 regex)
5402 (guix build gnu-build-system)
5403 (guix build utils))
5404 #:configure-flags (list "--with-ncurses")
5405 #:phases
5406 (modify-phases %standard-phases
5407 (add-after 'unpack 'patch-tests
5408 (lambda _
5409 (substitute* "test/test.pl"
5410 ;; The test script calls out to /bin/bash
5411 (("/bin/bash") (which "bash")))
5412 #t))
5413 (add-after 'install 'install-library
5414 (lambda* (#:key outputs #:allow-other-keys)
5415 (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
5416 (install-file "libbam.a" lib)
5417 #t)))
5418 (add-after 'install 'install-headers
5419 (lambda* (#:key outputs #:allow-other-keys)
5420 (let ((include (string-append (assoc-ref outputs "out")
5421 "/include/samtools/")))
5422 (for-each (lambda (file)
5423 (install-file file include))
5424 (scandir "." (lambda (name) (string-match "\\.h$" name))))
5425 #t))))))
5426 (native-inputs `(("pkg-config" ,pkg-config)))
5427 (inputs
5428 `(("htslib" ,htslib)
5429 ("ncurses" ,ncurses)
5430 ("perl" ,perl)
5431 ("python" ,python)
5432 ("zlib" ,zlib)))
5433 (home-page "http://samtools.sourceforge.net")
5434 (synopsis "Utilities to efficiently manipulate nucleotide sequence alignments")
5435 (description
5436 "Samtools implements various utilities for post-processing nucleotide
5437 sequence alignments in the SAM, BAM, and CRAM formats, including indexing,
5438 variant calling (in conjunction with bcftools), and a simple alignment
5439 viewer.")
5440 (license license:expat)))
5441
5442 (define-public samtools-0.1
5443 ;; This is the most recent version of the 0.1 line of samtools. The input
5444 ;; and output formats differ greatly from that used and produced by samtools
5445 ;; 1.x and is still used in many bioinformatics pipelines.
5446 (package (inherit samtools)
5447 (version "0.1.19")
5448 (source
5449 (origin
5450 (method url-fetch)
5451 (uri
5452 (string-append "mirror://sourceforge/samtools/samtools/"
5453 version "/samtools-" version ".tar.bz2"))
5454 (sha256
5455 (base32 "1m33xsfwz0s8qi45lylagfllqg7fphf4dr0780rsvw75av9wk06h"))))
5456 (arguments
5457 `(#:tests? #f ;no "check" target
5458 #:make-flags
5459 (list "LIBCURSES=-lncurses")
5460 ,@(substitute-keyword-arguments (package-arguments samtools)
5461 ((#:phases phases)
5462 `(modify-phases ,phases
5463 (replace 'install
5464 (lambda* (#:key outputs #:allow-other-keys)
5465 (let ((bin (string-append
5466 (assoc-ref outputs "out") "/bin")))
5467 (mkdir-p bin)
5468 (install-file "samtools" bin)
5469 #t)))
5470 (delete 'patch-tests)
5471 (delete 'configure))))))))
5472
5473 (define-public mosaik
5474 (let ((commit "5c25216d3522d6a33e53875cd76a6d65001e4e67"))
5475 (package
5476 (name "mosaik")
5477 (version "2.2.30")
5478 (source (origin
5479 ;; There are no release tarballs nor tags.
5480 (method git-fetch)
5481 (uri (git-reference
5482 (url "https://github.com/wanpinglee/MOSAIK.git")
5483 (commit commit)))
5484 (file-name (string-append name "-" version))
5485 (sha256
5486 (base32
5487 "17gj3s07cm77r41z92awh0bim7w7q7fbn0sf5nkqmcm1vw052qgw"))))
5488 (build-system gnu-build-system)
5489 (arguments
5490 `(#:tests? #f ; no tests
5491 #:make-flags (list "CC=gcc")
5492 #:phases
5493 (modify-phases %standard-phases
5494 (replace 'configure
5495 (lambda _ (chdir "src") #t))
5496 (replace 'install
5497 (lambda* (#:key outputs #:allow-other-keys)
5498 (let ((bin (string-append (assoc-ref outputs "out")
5499 "/bin")))
5500 (mkdir-p bin)
5501 (copy-recursively "../bin" bin)
5502 #t))))))
5503 (inputs
5504 `(("perl" ,perl)
5505 ("zlib:static" ,zlib "static")
5506 ("zlib" ,zlib)))
5507 (supported-systems '("x86_64-linux"))
5508 (home-page "https://github.com/wanpinglee/MOSAIK")
5509 (synopsis "Map nucleotide sequence reads to reference genomes")
5510 (description
5511 "MOSAIK is a program for mapping second and third-generation sequencing
5512 reads to a reference genome. MOSAIK can align reads generated by all the
5513 major sequencing technologies, including Illumina, Applied Biosystems SOLiD,
5514 Roche 454, Ion Torrent and Pacific BioSciences SMRT.")
5515 ;; MOSAIK is released under the GPLv2+ with the exception of third-party
5516 ;; code released into the public domain:
5517 ;; 1. fastlz by Ariya Hidayat - http://www.fastlz.org/
5518 ;; 2. MD5 implementation - RSA Data Security, RFC 1321
5519 (license (list license:gpl2+ license:public-domain)))))
5520
5521 (define-public ngs-sdk
5522 (package
5523 (name "ngs-sdk")
5524 (version "2.9.6")
5525 (source (origin
5526 (method git-fetch)
5527 (uri (git-reference
5528 (url "https://github.com/ncbi/ngs.git")
5529 (commit version)))
5530 (file-name (git-file-name name version))
5531 (sha256
5532 (base32
5533 "0d5k5kabgl15as37kj9x65xc92j4gcqms86hvihw3yb6wag0r0q3"))))
5534 (build-system gnu-build-system)
5535 (arguments
5536 `(#:parallel-build? #f ; not supported
5537 #:tests? #f ; no "check" target
5538 #:phases
5539 (modify-phases %standard-phases
5540 (replace 'configure
5541 (lambda* (#:key outputs #:allow-other-keys)
5542 (let ((out (assoc-ref outputs "out")))
5543 ;; Allow 'konfigure.perl' to find 'package.prl'.
5544 (setenv "PERL5LIB"
5545 (string-append ".:" (getenv "PERL5LIB")))
5546
5547 ;; The 'configure' script doesn't recognize things like
5548 ;; '--enable-fast-install'.
5549 (invoke "./configure"
5550 (string-append "--build-prefix=" (getcwd) "/build")
5551 (string-append "--prefix=" out))
5552 #t)))
5553 (add-after 'unpack 'enter-dir
5554 (lambda _ (chdir "ngs-sdk") #t)))))
5555 (native-inputs `(("perl" ,perl)))
5556 ;; According to the test
5557 ;; unless ($MARCH =~ /x86_64/i || $MARCH =~ /i?86/i)
5558 ;; in ngs-sdk/setup/konfigure.perl
5559 (supported-systems '("i686-linux" "x86_64-linux"))
5560 (home-page "https://github.com/ncbi/ngs")
5561 (synopsis "API for accessing Next Generation Sequencing data")
5562 (description
5563 "NGS is a domain-specific API for accessing reads, alignments and pileups
5564 produced from Next Generation Sequencing. The API itself is independent from
5565 any particular back-end implementation, and supports use of multiple back-ends
5566 simultaneously.")
5567 (license license:public-domain)))
5568
5569 (define-public java-ngs
5570 (package (inherit ngs-sdk)
5571 (name "java-ngs")
5572 (arguments
5573 `(,@(substitute-keyword-arguments
5574 `(#:modules ((guix build gnu-build-system)
5575 (guix build utils)
5576 (srfi srfi-1)
5577 (srfi srfi-26))
5578 ,@(package-arguments ngs-sdk))
5579 ((#:phases phases)
5580 `(modify-phases ,phases
5581 (replace 'enter-dir (lambda _ (chdir "ngs-java") #t)))))))
5582 (inputs
5583 `(("jdk" ,icedtea "jdk")
5584 ("ngs-sdk" ,ngs-sdk)))
5585 (synopsis "Java bindings for NGS SDK")))
5586
5587 (define-public ncbi-vdb
5588 (package
5589 (name "ncbi-vdb")
5590 (version "2.9.6")
5591 (source (origin
5592 (method git-fetch)
5593 (uri (git-reference
5594 (url "https://github.com/ncbi/ncbi-vdb.git")
5595 (commit version)))
5596 (file-name (git-file-name name version))
5597 (sha256
5598 (base32
5599 "0knkj1sq34hlivgv5qd6jlczqrs3ldmfgn6vbbw7p4mqxvb9mirk"))))
5600 (build-system gnu-build-system)
5601 (arguments
5602 `(#:parallel-build? #f ; not supported
5603 #:tests? #f ; no "check" target
5604 #:make-flags '("HAVE_HDF5=1")
5605 #:phases
5606 (modify-phases %standard-phases
5607 (add-after 'unpack 'make-files-writable
5608 (lambda _ (for-each make-file-writable (find-files "." ".*")) #t))
5609 (add-before 'configure 'set-perl-search-path
5610 (lambda _
5611 ;; Work around "dotless @INC" build failure.
5612 (setenv "PERL5LIB"
5613 (string-append (getcwd) "/setup:"
5614 (getenv "PERL5LIB")))
5615 #t))
5616 ;; See https://github.com/ncbi/ncbi-vdb/issues/14
5617 (add-after 'unpack 'patch-krypto-flags
5618 (lambda _
5619 (substitute* "libs/krypto/Makefile"
5620 (("-Wa,-march=generic64\\+aes") "")
5621 (("-Wa,-march=generic64\\+sse4") ""))
5622 #t))
5623 (replace 'configure
5624 (lambda* (#:key inputs outputs #:allow-other-keys)
5625 (let ((out (assoc-ref outputs "out")))
5626 ;; Override include path for libmagic
5627 (substitute* "setup/package.prl"
5628 (("name => 'magic', Include => '/usr/include'")
5629 (string-append "name=> 'magic', Include => '"
5630 (assoc-ref inputs "libmagic")
5631 "/include" "'")))
5632
5633 ;; Install kdf5 library (needed by sra-tools)
5634 (substitute* "build/Makefile.install"
5635 (("LIBRARIES_TO_INSTALL =")
5636 "LIBRARIES_TO_INSTALL = kdf5.$(VERSION_LIBX) kdf5.$(VERSION_SHLX)"))
5637
5638 (substitute* "build/Makefile.env"
5639 (("CFLAGS =" prefix)
5640 (string-append prefix "-msse2 ")))
5641
5642 ;; Override search path for ngs-java
5643 (substitute* "setup/package.prl"
5644 (("/usr/local/ngs/ngs-java")
5645 (assoc-ref inputs "java-ngs")))
5646
5647 ;; The 'configure' script doesn't recognize things like
5648 ;; '--enable-fast-install'.
5649 (invoke "./configure"
5650 (string-append "--build-prefix=" (getcwd) "/build")
5651 (string-append "--prefix=" (assoc-ref outputs "out"))
5652 (string-append "--debug")
5653 (string-append "--with-xml2-prefix="
5654 (assoc-ref inputs "libxml2"))
5655 (string-append "--with-ngs-sdk-prefix="
5656 (assoc-ref inputs "ngs-sdk"))
5657 (string-append "--with-hdf5-prefix="
5658 (assoc-ref inputs "hdf5")))
5659 #t)))
5660 (add-after 'install 'install-interfaces
5661 (lambda* (#:key outputs #:allow-other-keys)
5662 ;; Install interface libraries. On i686 the interface libraries
5663 ;; are installed to "linux/gcc/i386", so we need to use the Linux
5664 ;; architecture name ("i386") instead of the target system prefix
5665 ;; ("i686").
5666 (mkdir (string-append (assoc-ref outputs "out") "/ilib"))
5667 (copy-recursively (string-append "build/ncbi-vdb/linux/gcc/"
5668 ,(system->linux-architecture
5669 (or (%current-target-system)
5670 (%current-system)))
5671 "/rel/ilib")
5672 (string-append (assoc-ref outputs "out")
5673 "/ilib"))
5674 ;; Install interface headers
5675 (copy-recursively "interfaces"
5676 (string-append (assoc-ref outputs "out")
5677 "/include"))
5678 #t))
5679 ;; These files are needed by sra-tools.
5680 (add-after 'install 'install-configuration-files
5681 (lambda* (#:key outputs #:allow-other-keys)
5682 (let ((target (string-append (assoc-ref outputs "out") "/kfg")))
5683 (mkdir target)
5684 (install-file "libs/kfg/default.kfg" target)
5685 (install-file "libs/kfg/certs.kfg" target))
5686 #t)))))
5687 (inputs
5688 `(("libxml2" ,libxml2)
5689 ("ngs-sdk" ,ngs-sdk)
5690 ("java-ngs" ,java-ngs)
5691 ("libmagic" ,file)
5692 ("hdf5" ,hdf5)))
5693 (native-inputs `(("perl" ,perl)))
5694 ;; NCBI-VDB requires SSE capability.
5695 (supported-systems '("i686-linux" "x86_64-linux"))
5696 (home-page "https://github.com/ncbi/ncbi-vdb")
5697 (synopsis "Database engine for genetic information")
5698 (description
5699 "The NCBI-VDB library implements a highly compressed columnar data
5700 warehousing engine that is most often used to store genetic information.
5701 Databases are stored in a portable image within the file system, and can be
5702 accessed/downloaded on demand across HTTP.")
5703 (license license:public-domain)))
5704
5705 (define-public plink
5706 (package
5707 (name "plink")
5708 (version "1.07")
5709 (source
5710 (origin
5711 (method url-fetch)
5712 (uri (string-append
5713 "http://pngu.mgh.harvard.edu/~purcell/plink/dist/plink-"
5714 version "-src.zip"))
5715 (sha256
5716 (base32 "0as8gxm4pjyc8dxmm1sl873rrd7wn5qs0l29nqfnl31x8i467xaa"))
5717 (patches (search-patches "plink-1.07-unclobber-i.patch"
5718 "plink-endian-detection.patch"))))
5719 (build-system gnu-build-system)
5720 (arguments
5721 '(#:tests? #f ;no "check" target
5722 #:make-flags (list (string-append "LIB_LAPACK="
5723 (assoc-ref %build-inputs "lapack")
5724 "/lib/liblapack.so")
5725 "WITH_LAPACK=1"
5726 "FORCE_DYNAMIC=1"
5727 ;; disable phoning home
5728 "WITH_WEBCHECK=")
5729 #:phases
5730 (modify-phases %standard-phases
5731 ;; no "configure" script
5732 (delete 'configure)
5733 (replace 'install
5734 (lambda* (#:key outputs #:allow-other-keys)
5735 (let ((bin (string-append (assoc-ref outputs "out")
5736 "/bin/")))
5737 (install-file "plink" bin)
5738 #t))))))
5739 (inputs
5740 `(("zlib" ,zlib)
5741 ("lapack" ,lapack)))
5742 (native-inputs
5743 `(("unzip" ,unzip)))
5744 (home-page "http://pngu.mgh.harvard.edu/~purcell/plink/")
5745 (synopsis "Whole genome association analysis toolset")
5746 (description
5747 "PLINK is a whole genome association analysis toolset, designed to
5748 perform a range of basic, large-scale analyses in a computationally efficient
5749 manner. The focus of PLINK is purely on analysis of genotype/phenotype data,
5750 so there is no support for steps prior to this (e.g. study design and
5751 planning, generating genotype or CNV calls from raw data). Through
5752 integration with gPLINK and Haploview, there is some support for the
5753 subsequent visualization, annotation and storage of results.")
5754 ;; Code is released under GPLv2, except for fisher.h, which is under
5755 ;; LGPLv2.1+
5756 (license (list license:gpl2 license:lgpl2.1+))))
5757
5758 (define-public plink-ng
5759 (package (inherit plink)
5760 (name "plink-ng")
5761 (version "1.90b4")
5762 (source
5763 (origin
5764 (method git-fetch)
5765 (uri (git-reference
5766 (url "https://github.com/chrchang/plink-ng.git")
5767 (commit (string-append "v" version))))
5768 (file-name (git-file-name name version))
5769 (sha256
5770 (base32 "02npdwgkpfkdnhw819rhj5kw02a5k5m90b14zq9zzya4hyg929c0"))))
5771 (build-system gnu-build-system)
5772 (arguments
5773 '(#:tests? #f ;no "check" target
5774 #:make-flags (list "BLASFLAGS=-llapack -lopenblas"
5775 "CFLAGS=-Wall -O2 -DDYNAMIC_ZLIB=1"
5776 "ZLIB=-lz"
5777 "-f" "Makefile.std")
5778 #:phases
5779 (modify-phases %standard-phases
5780 (add-after 'unpack 'chdir
5781 (lambda _ (chdir "1.9") #t))
5782 (delete 'configure) ; no "configure" script
5783 (replace 'install
5784 (lambda* (#:key outputs #:allow-other-keys)
5785 (let ((bin (string-append (assoc-ref outputs "out")
5786 "/bin/")))
5787 (install-file "plink" bin)
5788 #t))))))
5789 (inputs
5790 `(("zlib" ,zlib)
5791 ("lapack" ,lapack)
5792 ("openblas" ,openblas)))
5793 (home-page "https://www.cog-genomics.org/plink/")
5794 (license license:gpl3+)))
5795
5796 (define-public smithlab-cpp
5797 (let ((revision "1")
5798 (commit "728a097bec88c6f4b8528b685932049e660eff2e"))
5799 (package
5800 (name "smithlab-cpp")
5801 (version (string-append "0." revision "." (string-take commit 7)))
5802 (source (origin
5803 (method git-fetch)
5804 (uri (git-reference
5805 (url "https://github.com/smithlabcode/smithlab_cpp.git")
5806 (commit commit)))
5807 (file-name (string-append name "-" version "-checkout"))
5808 (sha256
5809 (base32
5810 "0d476lmj312xk77kr9fzrv7z1bv96yfyx0w7y62ycmnfbx32ll74"))))
5811 (build-system gnu-build-system)
5812 (arguments
5813 `(#:modules ((guix build gnu-build-system)
5814 (guix build utils)
5815 (srfi srfi-26))
5816 #:tests? #f ;no "check" target
5817 #:phases
5818 (modify-phases %standard-phases
5819 (add-after 'unpack 'use-samtools-headers
5820 (lambda _
5821 (substitute* '("SAM.cpp"
5822 "SAM.hpp")
5823 (("sam.h") "samtools/sam.h"))
5824 #t))
5825 (replace 'install
5826 (lambda* (#:key outputs #:allow-other-keys)
5827 (let* ((out (assoc-ref outputs "out"))
5828 (lib (string-append out "/lib"))
5829 (include (string-append out "/include/smithlab-cpp")))
5830 (mkdir-p lib)
5831 (mkdir-p include)
5832 (for-each (cut install-file <> lib)
5833 (find-files "." "\\.o$"))
5834 (for-each (cut install-file <> include)
5835 (find-files "." "\\.hpp$")))
5836 #t))
5837 (delete 'configure))))
5838 (inputs
5839 `(("samtools" ,samtools-0.1)
5840 ("zlib" ,zlib)))
5841 (home-page "https://github.com/smithlabcode/smithlab_cpp")
5842 (synopsis "C++ helper library for functions used in Smith lab projects")
5843 (description
5844 "Smithlab CPP is a C++ library that includes functions used in many of
5845 the Smith lab bioinformatics projects, such as a wrapper around Samtools data
5846 structures, classes for genomic regions, mapped sequencing reads, etc.")
5847 (license license:gpl3+))))
5848
5849 (define-public preseq
5850 (package
5851 (name "preseq")
5852 (version "2.0.3")
5853 (source (origin
5854 (method url-fetch)
5855 (uri (string-append "https://github.com/smithlabcode/preseq/"
5856 "releases/download/v" version
5857 "/preseq_v" version ".tar.bz2"))
5858 (sha256
5859 (base32 "149x9xmk1wy1gff85325yfzqc0qk4sgp1w6gbyj9cnji4x1dszbl"))
5860 (modules '((guix build utils)))
5861 (snippet '(begin
5862 ;; Remove bundled samtools.
5863 (delete-file-recursively "samtools")
5864 #t))))
5865 (build-system gnu-build-system)
5866 (arguments
5867 `(#:tests? #f ;no "check" target
5868 #:phases
5869 (modify-phases %standard-phases
5870 (delete 'configure))
5871 #:make-flags
5872 (list (string-append "PREFIX="
5873 (assoc-ref %outputs "out"))
5874 (string-append "LIBBAM="
5875 (assoc-ref %build-inputs "samtools")
5876 "/lib/libbam.a")
5877 (string-append "SMITHLAB_CPP="
5878 (assoc-ref %build-inputs "smithlab-cpp")
5879 "/lib")
5880 "PROGS=preseq"
5881 "INCLUDEDIRS=$(SMITHLAB_CPP)/../include/smithlab-cpp $(SAMTOOLS_DIR)")))
5882 (inputs
5883 `(("gsl" ,gsl)
5884 ("samtools" ,samtools-0.1)
5885 ("smithlab-cpp" ,smithlab-cpp)
5886 ("zlib" ,zlib)))
5887 (home-page "http://smithlabresearch.org/software/preseq/")
5888 (synopsis "Program for analyzing library complexity")
5889 (description
5890 "The preseq package is aimed at predicting and estimating the complexity
5891 of a genomic sequencing library, equivalent to predicting and estimating the
5892 number of redundant reads from a given sequencing depth and how many will be
5893 expected from additional sequencing using an initial sequencing experiment.
5894 The estimates can then be used to examine the utility of further sequencing,
5895 optimize the sequencing depth, or to screen multiple libraries to avoid low
5896 complexity samples.")
5897 (license license:gpl3+)))
5898
5899 (define-public python-screed
5900 (package
5901 (name "python-screed")
5902 (version "1.0")
5903 (source
5904 (origin
5905 (method url-fetch)
5906 (uri (pypi-uri "screed" version))
5907 (sha256
5908 (base32
5909 "148vcb7w2wr6a4w6vs2bsxanbqibxfk490zbcbg4m61s8669zdjx"))))
5910 (build-system python-build-system)
5911 (arguments
5912 '(#:phases
5913 (modify-phases %standard-phases
5914 ;; Tests must be run after installation, as the "screed" command does
5915 ;; not exist right after building.
5916 (delete 'check)
5917 (add-after 'install 'check
5918 (lambda* (#:key inputs outputs #:allow-other-keys)
5919 (let ((out (assoc-ref outputs "out")))
5920 (setenv "PYTHONPATH"
5921 (string-append out "/lib/python"
5922 (string-take (string-take-right
5923 (assoc-ref inputs "python")
5924 5) 3)
5925 "/site-packages:"
5926 (getenv "PYTHONPATH")))
5927 (setenv "PATH" (string-append out "/bin:" (getenv "PATH"))))
5928 (invoke "python" "setup.py" "test")
5929 #t)))))
5930 (native-inputs
5931 `(("python-pytest" ,python-pytest)
5932 ("python-pytest-cov" ,python-pytest-cov)
5933 ("python-pytest-runner" ,python-pytest-runner)))
5934 (inputs
5935 `(("python-bz2file" ,python-bz2file)))
5936 (home-page "https://github.com/dib-lab/screed/")
5937 (synopsis "Short read sequence database utilities")
5938 (description "Screed parses FASTA and FASTQ files and generates databases.
5939 Values such as sequence name, sequence description, sequence quality and the
5940 sequence itself can be retrieved from these databases.")
5941 (license license:bsd-3)))
5942
5943 (define-public python2-screed
5944 (package-with-python2 python-screed))
5945
5946 (define-public sra-tools
5947 (package
5948 (name "sra-tools")
5949 (version "2.9.6")
5950 (source
5951 (origin
5952 (method git-fetch)
5953 (uri (git-reference
5954 (url "https://github.com/ncbi/sra-tools.git")
5955 (commit version)))
5956 (file-name (git-file-name name version))
5957 (sha256
5958 (base32
5959 "0vqzap68v81k0zif2mnqfy8pnw2nrhsg87p6mgq8qk3nk2jv2rgy"))))
5960 (build-system gnu-build-system)
5961 (arguments
5962 `(#:parallel-build? #f ; not supported
5963 #:tests? #f ; no "check" target
5964 #:make-flags
5965 (list (string-append "DEFAULT_CRT="
5966 (assoc-ref %build-inputs "ncbi-vdb")
5967 "/kfg/certs.kfg")
5968 (string-append "DEFAULT_KFG="
5969 (assoc-ref %build-inputs "ncbi-vdb")
5970 "/kfg/default.kfg")
5971 (string-append "VDB_LIBDIR="
5972 (assoc-ref %build-inputs "ncbi-vdb")
5973 ,(if (string-prefix? "x86_64"
5974 (or (%current-target-system)
5975 (%current-system)))
5976 "/lib64"
5977 "/lib32")))
5978 #:phases
5979 (modify-phases %standard-phases
5980 (add-before 'configure 'set-perl-search-path
5981 (lambda _
5982 ;; Work around "dotless @INC" build failure.
5983 (setenv "PERL5LIB"
5984 (string-append (getcwd) "/setup:"
5985 (getenv "PERL5LIB")))
5986 #t))
5987 (replace 'configure
5988 (lambda* (#:key inputs outputs #:allow-other-keys)
5989 ;; The build system expects a directory containing the sources and
5990 ;; raw build output of ncbi-vdb, including files that are not
5991 ;; installed. Since we are building against an installed version of
5992 ;; ncbi-vdb, the following modifications are needed.
5993 (substitute* "setup/konfigure.perl"
5994 ;; Make the configure script look for the "ilib" directory of
5995 ;; "ncbi-vdb" without first checking for the existence of a
5996 ;; matching library in its "lib" directory.
5997 (("^ my \\$f = File::Spec->catdir\\(\\$libdir, \\$lib\\);")
5998 "my $f = File::Spec->catdir($ilibdir, $ilib);")
5999 ;; Look for interface libraries in ncbi-vdb's "ilib" directory.
6000 (("my \\$ilibdir = File::Spec->catdir\\(\\$builddir, 'ilib'\\);")
6001 "my $ilibdir = File::Spec->catdir($dir, 'ilib');"))
6002
6003 ;; Dynamic linking
6004 (substitute* "tools/copycat/Makefile"
6005 (("smagic-static") "lmagic"))
6006
6007 ;; The 'configure' script doesn't recognize things like
6008 ;; '--enable-fast-install'.
6009 (invoke "./configure"
6010 (string-append "--build-prefix=" (getcwd) "/build")
6011 (string-append "--prefix=" (assoc-ref outputs "out"))
6012 (string-append "--debug")
6013 (string-append "--with-fuse-prefix="
6014 (assoc-ref inputs "fuse"))
6015 (string-append "--with-magic-prefix="
6016 (assoc-ref inputs "libmagic"))
6017 ;; TODO: building with libxml2 fails with linker errors
6018 ;; (string-append "--with-xml2-prefix="
6019 ;; (assoc-ref inputs "libxml2"))
6020 (string-append "--with-ncbi-vdb-sources="
6021 (assoc-ref inputs "ncbi-vdb"))
6022 (string-append "--with-ncbi-vdb-build="
6023 (assoc-ref inputs "ncbi-vdb"))
6024 (string-append "--with-ngs-sdk-prefix="
6025 (assoc-ref inputs "ngs-sdk"))
6026 (string-append "--with-hdf5-prefix="
6027 (assoc-ref inputs "hdf5")))
6028 #t)))))
6029 (native-inputs `(("perl" ,perl)))
6030 (inputs
6031 `(("ngs-sdk" ,ngs-sdk)
6032 ("ncbi-vdb" ,ncbi-vdb)
6033 ("libmagic" ,file)
6034 ("fuse" ,fuse)
6035 ("hdf5" ,hdf5)
6036 ("zlib" ,zlib)))
6037 (home-page "http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software")
6038 (synopsis "Tools and libraries for reading and writing sequencing data")
6039 (description
6040 "The SRA Toolkit from NCBI is a collection of tools and libraries for
6041 reading of sequencing files from the Sequence Read Archive (SRA) database and
6042 writing files into the .sra format.")
6043 (license license:public-domain)))
6044
6045 (define-public seqan
6046 (package
6047 (name "seqan")
6048 (version "2.4.0")
6049 (source (origin
6050 (method url-fetch)
6051 (uri (string-append "https://github.com/seqan/seqan/releases/"
6052 "download/seqan-v" version
6053 "/seqan-library-" version ".tar.xz"))
6054 (sha256
6055 (base32
6056 "19a1rlxx03qy1i1iriicly68w64yjxbv24g9gdywnfmq998v35yx"))))
6057 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
6058 ;; makes sense to split the outputs.
6059 (outputs '("out" "doc"))
6060 (build-system trivial-build-system)
6061 (arguments
6062 `(#:modules ((guix build utils))
6063 #:builder
6064 (begin
6065 (use-modules (guix build utils))
6066 (let ((tar (assoc-ref %build-inputs "tar"))
6067 (xz (assoc-ref %build-inputs "xz"))
6068 (out (assoc-ref %outputs "out"))
6069 (doc (assoc-ref %outputs "doc")))
6070 (setenv "PATH" (string-append tar "/bin:" xz "/bin"))
6071 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
6072 (chdir (string-append "seqan-library-" ,version))
6073 (copy-recursively "include" (string-append out "/include"))
6074 (copy-recursively "share" (string-append doc "/share"))
6075 #t))))
6076 (native-inputs
6077 `(("source" ,source)
6078 ("tar" ,tar)
6079 ("xz" ,xz)))
6080 (home-page "http://www.seqan.de")
6081 (synopsis "Library for nucleotide sequence analysis")
6082 (description
6083 "SeqAn is a C++ library of efficient algorithms and data structures for
6084 the analysis of sequences with the focus on biological data. It contains
6085 algorithms and data structures for string representation and their
6086 manipulation, online and indexed string search, efficient I/O of
6087 bioinformatics file formats, sequence alignment, and more.")
6088 (license license:bsd-3)))
6089
6090 (define-public seqan-1
6091 (package (inherit seqan)
6092 (name "seqan")
6093 (version "1.4.2")
6094 (source (origin
6095 (method url-fetch)
6096 (uri (string-append "http://packages.seqan.de/seqan-library/"
6097 "seqan-library-" version ".tar.bz2"))
6098 (sha256
6099 (base32
6100 "05s3wrrwn50f81aklfm65i4a749zag1vr8z03k21xm0pdxy47yvp"))))
6101 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
6102 ;; makes sense to split the outputs.
6103 (outputs '("out" "doc"))
6104 (build-system trivial-build-system)
6105 (arguments
6106 `(#:modules ((guix build utils))
6107 #:builder
6108 (begin
6109 (use-modules (guix build utils))
6110 (let ((tar (assoc-ref %build-inputs "tar"))
6111 (bzip (assoc-ref %build-inputs "bzip2"))
6112 (out (assoc-ref %outputs "out"))
6113 (doc (assoc-ref %outputs "doc")))
6114 (setenv "PATH" (string-append tar "/bin:" bzip "/bin"))
6115 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
6116 (chdir (string-append "seqan-library-" ,version))
6117 (copy-recursively "include" (string-append out "/include"))
6118 (copy-recursively "share" (string-append doc "/share"))
6119 #t))))
6120 (native-inputs
6121 `(("source" ,source)
6122 ("tar" ,tar)
6123 ("bzip2" ,bzip2)))))
6124
6125 (define-public seqmagick
6126 (package
6127 (name "seqmagick")
6128 (version "0.7.0")
6129 (source
6130 (origin
6131 (method url-fetch)
6132 (uri (pypi-uri "seqmagick" version))
6133 (sha256
6134 (base32
6135 "12bfyp8nqi0hd36rmj450aygafp01qy3hkbvlwn3bk39pyjjkgg5"))))
6136 (build-system python-build-system)
6137 (inputs
6138 `(("python-biopython" ,python-biopython)))
6139 (native-inputs
6140 `(("python-nose" ,python-nose)))
6141 (home-page "https://github.com/fhcrc/seqmagick")
6142 (synopsis "Tools for converting and modifying sequence files")
6143 (description
6144 "Bioinformaticians often have to convert sequence files between formats
6145 and do little manipulations on them, and it's not worth writing scripts for
6146 that. Seqmagick is a utility to expose the file format conversion in
6147 BioPython in a convenient way. Instead of having a big mess of scripts, there
6148 is one that takes arguments.")
6149 (license license:gpl3)))
6150
6151 (define-public seqtk
6152 (package
6153 (name "seqtk")
6154 (version "1.3")
6155 (source (origin
6156 (method git-fetch)
6157 (uri (git-reference
6158 (url "https://github.com/lh3/seqtk.git")
6159 (commit (string-append "v" version))))
6160 (file-name (git-file-name name version))
6161 (sha256
6162 (base32
6163 "1bfzlqa84b5s1qi22blmmw2s8xdyp9h9ydcq22pfjhh5gab3yz6l"))))
6164 (build-system gnu-build-system)
6165 (arguments
6166 `(#:phases
6167 (modify-phases %standard-phases
6168 (delete 'configure)
6169 (replace 'check
6170 ;; There are no tests, so we just run a sanity check.
6171 (lambda _ (invoke "./seqtk" "seq") #t))
6172 (replace 'install
6173 (lambda* (#:key outputs #:allow-other-keys)
6174 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6175 (install-file "seqtk" bin)
6176 #t))))))
6177 (inputs
6178 `(("zlib" ,zlib)))
6179 (home-page "https://github.com/lh3/seqtk")
6180 (synopsis "Toolkit for processing biological sequences in FASTA/Q format")
6181 (description
6182 "Seqtk is a fast and lightweight tool for processing sequences in the
6183 FASTA or FASTQ format. It parses both FASTA and FASTQ files which can be
6184 optionally compressed by gzip.")
6185 (license license:expat)))
6186
6187 (define-public snap-aligner
6188 (package
6189 (name "snap-aligner")
6190 (version "1.0beta.18")
6191 (source (origin
6192 (method git-fetch)
6193 (uri (git-reference
6194 (url "https://github.com/amplab/snap.git")
6195 (commit (string-append "v" version))))
6196 (file-name (git-file-name name version))
6197 (sha256
6198 (base32
6199 "01w3qq4wm07z73vky0cfwlmrbf50n3w722cxrlzxfi99mnb808d8"))))
6200 (build-system gnu-build-system)
6201 (arguments
6202 '(#:phases
6203 (modify-phases %standard-phases
6204 (delete 'configure)
6205 (replace 'check (lambda _ (invoke "./unit_tests") #t))
6206 (replace 'install
6207 (lambda* (#:key outputs #:allow-other-keys)
6208 (let* ((out (assoc-ref outputs "out"))
6209 (bin (string-append out "/bin")))
6210 (install-file "snap-aligner" bin)
6211 (install-file "SNAPCommand" bin)
6212 #t))))))
6213 (native-inputs
6214 `(("zlib" ,zlib)))
6215 (home-page "http://snap.cs.berkeley.edu/")
6216 (synopsis "Short read DNA sequence aligner")
6217 (description
6218 "SNAP is a fast and accurate aligner for short DNA reads. It is
6219 optimized for modern read lengths of 100 bases or higher, and takes advantage
6220 of these reads to align data quickly through a hash-based indexing scheme.")
6221 ;; 32-bit systems are not supported by the unpatched code.
6222 ;; Following the bug reports https://github.com/amplab/snap/issues/68 and
6223 ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812378 we see that
6224 ;; systems without a lot of memory cannot make good use of this program.
6225 (supported-systems '("x86_64-linux"))
6226 (license license:asl2.0)))
6227
6228 (define-public sortmerna
6229 (package
6230 (name "sortmerna")
6231 (version "2.1b")
6232 (source
6233 (origin
6234 (method git-fetch)
6235 (uri (git-reference
6236 (url "https://github.com/biocore/sortmerna.git")
6237 (commit version)))
6238 (file-name (git-file-name name version))
6239 (sha256
6240 (base32
6241 "0j3mbz4n25738yijmjbr5r4fyvkgm8v5vn3sshyfvmyqf5q9byqf"))))
6242 (build-system gnu-build-system)
6243 (outputs '("out" ;for binaries
6244 "db")) ;for sequence databases
6245 (arguments
6246 `(#:phases
6247 (modify-phases %standard-phases
6248 (replace 'install
6249 (lambda* (#:key outputs #:allow-other-keys)
6250 (let* ((out (assoc-ref outputs "out"))
6251 (bin (string-append out "/bin"))
6252 (db (assoc-ref outputs "db"))
6253 (share
6254 (string-append db "/share/sortmerna/rRNA_databases")))
6255 (install-file "sortmerna" bin)
6256 (install-file "indexdb_rna" bin)
6257 (for-each (lambda (file)
6258 (install-file file share))
6259 (find-files "rRNA_databases" ".*fasta"))
6260 #t))))))
6261 (inputs
6262 `(("zlib" ,zlib)))
6263 (home-page "http://bioinfo.lifl.fr/RNA/sortmerna")
6264 (synopsis "Biological sequence analysis tool for NGS reads")
6265 (description
6266 "SortMeRNA is a biological sequence analysis tool for filtering, mapping
6267 and operational taxonomic unit (OTU) picking of next generation
6268 sequencing (NGS) reads. The core algorithm is based on approximate seeds and
6269 allows for fast and sensitive analyses of nucleotide sequences. The main
6270 application of SortMeRNA is filtering rRNA from metatranscriptomic data.")
6271 ;; The source includes x86 specific code
6272 (supported-systems '("x86_64-linux" "i686-linux"))
6273 (license license:lgpl3)))
6274
6275 (define-public star
6276 (package
6277 (name "star")
6278 (version "2.7.1a")
6279 (source (origin
6280 (method git-fetch)
6281 (uri (git-reference
6282 (url "https://github.com/alexdobin/STAR.git")
6283 (commit version)))
6284 (file-name (string-append name "-" version "-checkout"))
6285 (sha256
6286 (base32
6287 "0n6g4s4hgw7qygs1z97j7a2dgz8gfaa4cv5pjvvvmarvk0x07hyg"))
6288 (modules '((guix build utils)))
6289 (snippet
6290 '(begin
6291 (substitute* "source/Makefile"
6292 (("/bin/rm") "rm"))
6293 ;; Remove pre-built binaries and bundled htslib sources.
6294 (delete-file-recursively "bin/MacOSX_x86_64")
6295 (delete-file-recursively "bin/Linux_x86_64")
6296 (delete-file-recursively "bin/Linux_x86_64_static")
6297 (delete-file-recursively "source/htslib")
6298 #t))))
6299 (build-system gnu-build-system)
6300 (arguments
6301 '(#:tests? #f ;no check target
6302 #:make-flags '("STAR")
6303 #:phases
6304 (modify-phases %standard-phases
6305 (add-after 'unpack 'enter-source-dir
6306 (lambda _ (chdir "source") #t))
6307 (add-after 'enter-source-dir 'make-reproducible
6308 (lambda _
6309 (substitute* "Makefile"
6310 (("(COMPILATION_TIME_PLACE=\")(.*)(\")" _ pre mid post)
6311 (string-append pre "Built with Guix" post)))
6312 #t))
6313 ;; See https://github.com/alexdobin/STAR/pull/562
6314 (add-after 'enter-source-dir 'add-missing-header
6315 (lambda _
6316 (substitute* "SoloReadFeature_inputRecords.cpp"
6317 (("#include \"binarySearch2.h\"" h)
6318 (string-append h "\n#include <math.h>")))
6319 #t))
6320 (add-after 'enter-source-dir 'do-not-use-bundled-htslib
6321 (lambda _
6322 (substitute* "Makefile"
6323 (("(Depend.list: \\$\\(SOURCES\\) parametersDefault\\.xxd) htslib"
6324 _ prefix) prefix))
6325 (substitute* '("BAMfunctions.cpp"
6326 "signalFromBAM.h"
6327 "bam_cat.h"
6328 "bam_cat.c"
6329 "STAR.cpp"
6330 "bamRemoveDuplicates.cpp")
6331 (("#include \"htslib/([^\"]+\\.h)\"" _ header)
6332 (string-append "#include <" header ">")))
6333 (substitute* "IncludeDefine.h"
6334 (("\"htslib/(htslib/[^\"]+.h)\"" _ header)
6335 (string-append "<" header ">")))
6336 #t))
6337 (replace 'install
6338 (lambda* (#:key outputs #:allow-other-keys)
6339 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6340 (install-file "STAR" bin))
6341 #t))
6342 (delete 'configure))))
6343 (native-inputs
6344 `(("xxd" ,xxd)))
6345 (inputs
6346 `(("htslib" ,htslib)
6347 ("zlib" ,zlib)))
6348 (home-page "https://github.com/alexdobin/STAR")
6349 (synopsis "Universal RNA-seq aligner")
6350 (description
6351 "The Spliced Transcripts Alignment to a Reference (STAR) software is
6352 based on a previously undescribed RNA-seq alignment algorithm that uses
6353 sequential maximum mappable seed search in uncompressed suffix arrays followed
6354 by seed clustering and stitching procedure. In addition to unbiased de novo
6355 detection of canonical junctions, STAR can discover non-canonical splices and
6356 chimeric (fusion) transcripts, and is also capable of mapping full-length RNA
6357 sequences.")
6358 ;; Only 64-bit systems are supported according to the README.
6359 (supported-systems '("x86_64-linux" "mips64el-linux"))
6360 ;; STAR is licensed under GPLv3 or later; htslib is MIT-licensed.
6361 (license license:gpl3+)))
6362
6363 (define-public starlong
6364 (package (inherit star)
6365 (name "starlong")
6366 (arguments
6367 (substitute-keyword-arguments (package-arguments star)
6368 ((#:make-flags flags)
6369 `(list "STARlong"))
6370 ((#:phases phases)
6371 `(modify-phases ,phases
6372 ;; Allow extra long sequence reads.
6373 (add-after 'unpack 'make-extra-long
6374 (lambda _
6375 (substitute* "source/IncludeDefine.h"
6376 (("(#define DEF_readNameLengthMax ).*" _ match)
6377 (string-append match "900000\n")))
6378 #t))
6379 (replace 'install
6380 (lambda* (#:key outputs #:allow-other-keys)
6381 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6382 (install-file "STARlong" bin))
6383 #t))))))))
6384
6385 (define-public subread
6386 (package
6387 (name "subread")
6388 (version "1.6.0")
6389 (source (origin
6390 (method url-fetch)
6391 (uri (string-append "mirror://sourceforge/subread/subread-"
6392 version "/subread-" version "-source.tar.gz"))
6393 (sha256
6394 (base32
6395 "0ah0n4jx6ksk2m2j7xk385x2qzmk1y4rfc6a4mfrdqrlq721w99i"))))
6396 (build-system gnu-build-system)
6397 (arguments
6398 `(#:tests? #f ;no "check" target
6399 ;; The CC and CCFLAGS variables are set to contain a lot of x86_64
6400 ;; optimizations by default, so we override these flags such that x86_64
6401 ;; flags are only added when the build target is an x86_64 system.
6402 #:make-flags
6403 (list (let ((system ,(or (%current-target-system)
6404 (%current-system)))
6405 (flags '("-ggdb" "-fomit-frame-pointer"
6406 "-ffast-math" "-funroll-loops"
6407 "-fmessage-length=0"
6408 "-O9" "-Wall" "-DMAKE_FOR_EXON"
6409 "-DMAKE_STANDALONE"
6410 "-DSUBREAD_VERSION=\\\"${SUBREAD_VERSION}\\\""))
6411 (flags64 '("-mmmx" "-msse" "-msse2" "-msse3")))
6412 (if (string-prefix? "x86_64" system)
6413 (string-append "CCFLAGS=" (string-join (append flags flags64)))
6414 (string-append "CCFLAGS=" (string-join flags))))
6415 "-f" "Makefile.Linux"
6416 "CC=gcc ${CCFLAGS}")
6417 #:phases
6418 (modify-phases %standard-phases
6419 (add-after 'unpack 'enter-dir
6420 (lambda _ (chdir "src") #t))
6421 (replace 'install
6422 (lambda* (#:key outputs #:allow-other-keys)
6423 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6424 (mkdir-p bin)
6425 (copy-recursively "../bin" bin))
6426 #t))
6427 ;; no "configure" script
6428 (delete 'configure))))
6429 (inputs `(("zlib" ,zlib)))
6430 (home-page "http://bioinf.wehi.edu.au/subread-package/")
6431 (synopsis "Tool kit for processing next-gen sequencing data")
6432 (description
6433 "The subread package contains the following tools: subread aligner, a
6434 general-purpose read aligner; subjunc aligner: detecting exon-exon junctions
6435 and mapping RNA-seq reads; featureCounts: counting mapped reads for genomic
6436 features; exactSNP: a SNP caller that discovers SNPs by testing signals
6437 against local background noises.")
6438 (license license:gpl3+)))
6439
6440 (define-public stringtie
6441 (package
6442 (name "stringtie")
6443 (version "1.2.1")
6444 (source (origin
6445 (method url-fetch)
6446 (uri (string-append "http://ccb.jhu.edu/software/stringtie/dl/"
6447 "stringtie-" version ".tar.gz"))
6448 (sha256
6449 (base32
6450 "1cqllsc1maq4kh92isi8yadgzbmnf042hlnalpk3y59aph1z3bfz"))
6451 (modules '((guix build utils)))
6452 (snippet
6453 '(begin
6454 (delete-file-recursively "samtools-0.1.18")
6455 #t))))
6456 (build-system gnu-build-system)
6457 (arguments
6458 `(#:tests? #f ;no test suite
6459 #:phases
6460 (modify-phases %standard-phases
6461 ;; no configure script
6462 (delete 'configure)
6463 (add-before 'build 'use-system-samtools
6464 (lambda _
6465 (substitute* "Makefile"
6466 (("stringtie: \\$\\{BAM\\}/libbam\\.a")
6467 "stringtie: "))
6468 (substitute* '("gclib/GBam.h"
6469 "gclib/GBam.cpp")
6470 (("#include \"(bam|sam|kstring).h\"" _ header)
6471 (string-append "#include <samtools/" header ".h>")))
6472 #t))
6473 (add-after 'unpack 'remove-duplicate-typedef
6474 (lambda _
6475 ;; This typedef conflicts with the typedef in
6476 ;; glibc-2.25/include/bits/types.h
6477 (substitute* "gclib/GThreads.h"
6478 (("typedef long long __intmax_t;") ""))
6479 #t))
6480 (replace 'install
6481 (lambda* (#:key outputs #:allow-other-keys)
6482 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6483 (install-file "stringtie" bin)
6484 #t))))))
6485 (inputs
6486 `(("samtools" ,samtools-0.1)
6487 ("zlib" ,zlib)))
6488 (home-page "http://ccb.jhu.edu/software/stringtie/")
6489 (synopsis "Transcript assembly and quantification for RNA-Seq data")
6490 (description
6491 "StringTie is a fast and efficient assembler of RNA-Seq sequence
6492 alignments into potential transcripts. It uses a novel network flow algorithm
6493 as well as an optional de novo assembly step to assemble and quantitate
6494 full-length transcripts representing multiple splice variants for each gene
6495 locus. Its input can include not only the alignments of raw reads used by
6496 other transcript assemblers, but also alignments of longer sequences that have
6497 been assembled from those reads. To identify differentially expressed genes
6498 between experiments, StringTie's output can be processed either by the
6499 Cuffdiff or Ballgown programs.")
6500 (license license:artistic2.0)))
6501
6502 (define-public taxtastic
6503 (package
6504 (name "taxtastic")
6505 (version "0.8.5")
6506 (source (origin
6507 (method url-fetch)
6508 (uri (pypi-uri "taxtastic" version))
6509 (sha256
6510 (base32
6511 "03pysw79lsrvz4lwzis88j15067ffqbi4cid5pqhrlxmd6bh8rrk"))))
6512 (build-system python-build-system)
6513 (arguments
6514 `(#:python ,python-2
6515 #:phases
6516 (modify-phases %standard-phases
6517 (replace 'check
6518 (lambda _ (invoke "python" "-m" "unittest" "discover" "-v") #t)))))
6519 (propagated-inputs
6520 `(("python-sqlalchemy" ,python2-sqlalchemy)
6521 ("python-decorator" ,python2-decorator)
6522 ("python-biopython" ,python2-biopython)
6523 ("python-pandas" ,python2-pandas)
6524 ("python-psycopg2" ,python2-psycopg2)
6525 ("python-fastalite" ,python2-fastalite)
6526 ("python-pyyaml" ,python2-pyyaml)
6527 ("python-six" ,python2-six)
6528 ("python-jinja2" ,python2-jinja2)
6529 ("python-dendropy" ,python2-dendropy)))
6530 (home-page "https://github.com/fhcrc/taxtastic")
6531 (synopsis "Tools for taxonomic naming and annotation")
6532 (description
6533 "Taxtastic is software written in python used to build and maintain
6534 reference packages i.e. collections of reference trees, reference alignments,
6535 profiles, and associated taxonomic information.")
6536 (license license:gpl3+)))
6537
6538 (define-public vcftools
6539 (package
6540 (name "vcftools")
6541 (version "0.1.15")
6542 (source (origin
6543 (method url-fetch)
6544 (uri (string-append
6545 "https://github.com/vcftools/vcftools/releases/download/v"
6546 version "/vcftools-" version ".tar.gz"))
6547 (sha256
6548 (base32
6549 "1qw30c45wihgy632rbz4rh3njnwj4msj46l1rsgdhyg6bgypmr1i"))))
6550 (build-system gnu-build-system)
6551 (arguments
6552 `(#:tests? #f ; no "check" target
6553 #:make-flags (list
6554 "CFLAGS=-O2" ; override "-m64" flag
6555 (string-append "PREFIX=" (assoc-ref %outputs "out"))
6556 (string-append "MANDIR=" (assoc-ref %outputs "out")
6557 "/share/man/man1"))))
6558 (native-inputs
6559 `(("pkg-config" ,pkg-config)))
6560 (inputs
6561 `(("perl" ,perl)
6562 ("zlib" ,zlib)))
6563 (home-page "https://vcftools.github.io/")
6564 (synopsis "Tools for working with VCF files")
6565 (description
6566 "VCFtools is a program package designed for working with VCF files, such
6567 as those generated by the 1000 Genomes Project. The aim of VCFtools is to
6568 provide easily accessible methods for working with complex genetic variation
6569 data in the form of VCF files.")
6570 ;; The license is declared as LGPLv3 in the README and
6571 ;; at https://vcftools.github.io/license.html
6572 (license license:lgpl3)))
6573
6574 (define-public infernal
6575 (package
6576 (name "infernal")
6577 (version "1.1.2")
6578 (source (origin
6579 (method url-fetch)
6580 (uri (string-append "http://eddylab.org/software/infernal/"
6581 "infernal-" version ".tar.gz"))
6582 (sha256
6583 (base32
6584 "0sr2hiz3qxfwqpz3whxr6n82p3x27336v3f34iqznp10hks2935c"))))
6585 (build-system gnu-build-system)
6586 (native-inputs
6587 `(("perl" ,perl))) ; for tests
6588 (home-page "http://eddylab.org/infernal/")
6589 (synopsis "Inference of RNA alignments")
6590 (description "Infernal (\"INFERence of RNA ALignment\") is a tool for
6591 searching DNA sequence databases for RNA structure and sequence similarities.
6592 It is an implementation of a special case of profile stochastic context-free
6593 grammars called @dfn{covariance models} (CMs). A CM is like a sequence
6594 profile, but it scores a combination of sequence consensus and RNA secondary
6595 structure consensus, so in many cases, it is more capable of identifying RNA
6596 homologs that conserve their secondary structure more than their primary
6597 sequence.")
6598 ;; Infernal 1.1.2 requires VMX or SSE capability for parallel instructions.
6599 (supported-systems '("i686-linux" "x86_64-linux"))
6600 (license license:bsd-3)))
6601
6602 (define-public r-scde
6603 (package
6604 (name "r-scde")
6605 (version "1.99.2")
6606 (source (origin
6607 (method git-fetch)
6608 (uri (git-reference
6609 (url "https://github.com/hms-dbmi/scde.git")
6610 (commit version)))
6611 (file-name (git-file-name name version))
6612 (sha256
6613 (base32
6614 "10na2gyka24mszdxf92wz9h2c13hdf1ww30c68gfsw53lvvhhhxb"))))
6615 (build-system r-build-system)
6616 (propagated-inputs
6617 `(("r-rcpp" ,r-rcpp)
6618 ("r-rcpparmadillo" ,r-rcpparmadillo)
6619 ("r-mgcv" ,r-mgcv)
6620 ("r-rook" ,r-rook)
6621 ("r-rjson" ,r-rjson)
6622 ("r-cairo" ,r-cairo)
6623 ("r-rcolorbrewer" ,r-rcolorbrewer)
6624 ("r-edger" ,r-edger)
6625 ("r-quantreg" ,r-quantreg)
6626 ("r-nnet" ,r-nnet)
6627 ("r-rmtstat" ,r-rmtstat)
6628 ("r-extremes" ,r-extremes)
6629 ("r-pcamethods" ,r-pcamethods)
6630 ("r-biocparallel" ,r-biocparallel)
6631 ("r-flexmix" ,r-flexmix)))
6632 (home-page "https://hms-dbmi.github.io/scde/")
6633 (synopsis "R package for analyzing single-cell RNA-seq data")
6634 (description "The SCDE package implements a set of statistical methods for
6635 analyzing single-cell RNA-seq data. SCDE fits individual error models for
6636 single-cell RNA-seq measurements. These models can then be used for
6637 assessment of differential expression between groups of cells, as well as
6638 other types of analysis. The SCDE package also contains the pagoda framework
6639 which applies pathway and gene set overdispersion analysis to identify aspects
6640 of transcriptional heterogeneity among single cells.")
6641 ;; See https://github.com/hms-dbmi/scde/issues/38
6642 (license license:gpl2)))
6643
6644 (define-public r-centipede
6645 (package
6646 (name "r-centipede")
6647 (version "1.2")
6648 (source (origin
6649 (method url-fetch)
6650 (uri (string-append "http://download.r-forge.r-project.org/"
6651 "src/contrib/CENTIPEDE_" version ".tar.gz"))
6652 (sha256
6653 (base32
6654 "1hsx6qgwr0i67fhy9257zj7s0ppncph2hjgbia5nn6nfmj0ax6l9"))))
6655 (build-system r-build-system)
6656 (home-page "http://centipede.uchicago.edu/")
6657 (synopsis "Predict transcription factor binding sites")
6658 (description
6659 "CENTIPEDE applies a hierarchical Bayesian mixture model to infer regions
6660 of the genome that are bound by particular transcription factors. It starts
6661 by identifying a set of candidate binding sites, and then aims to classify the
6662 sites according to whether each site is bound or not bound by a transcription
6663 factor. CENTIPEDE is an unsupervised learning algorithm that discriminates
6664 between two different types of motif instances using as much relevant
6665 information as possible.")
6666 (license (list license:gpl2+ license:gpl3+))))
6667
6668 (define-public r-genefilter
6669 (package
6670 (name "r-genefilter")
6671 (version "1.66.0")
6672 (source
6673 (origin
6674 (method url-fetch)
6675 (uri (bioconductor-uri "genefilter" version))
6676 (sha256
6677 (base32
6678 "1jq7lam4dnbvz55lx93kcl9afl8xfjd6xs374d35m21bkay418kj"))))
6679 (build-system r-build-system)
6680 (native-inputs
6681 `(("gfortran" ,gfortran)))
6682 (propagated-inputs
6683 `(("r-annotate" ,r-annotate)
6684 ("r-annotationdbi" ,r-annotationdbi)
6685 ("r-biobase" ,r-biobase)
6686 ("r-s4vectors" ,r-s4vectors)
6687 ("r-survival" ,r-survival)))
6688 (home-page "https://bioconductor.org/packages/genefilter")
6689 (synopsis "Filter genes from high-throughput experiments")
6690 (description
6691 "This package provides basic functions for filtering genes from
6692 high-throughput sequencing experiments.")
6693 (license license:artistic2.0)))
6694
6695 (define-public r-deseq2
6696 (package
6697 (name "r-deseq2")
6698 (version "1.24.0")
6699 (source
6700 (origin
6701 (method url-fetch)
6702 (uri (bioconductor-uri "DESeq2" version))
6703 (sha256
6704 (base32
6705 "0fkk326addm2cw688gnmdzsmri5qx8j6ldnr4xin6kjnwicqhlqd"))))
6706 (properties `((upstream-name . "DESeq2")))
6707 (build-system r-build-system)
6708 (propagated-inputs
6709 `(("r-biobase" ,r-biobase)
6710 ("r-biocgenerics" ,r-biocgenerics)
6711 ("r-biocparallel" ,r-biocparallel)
6712 ("r-genefilter" ,r-genefilter)
6713 ("r-geneplotter" ,r-geneplotter)
6714 ("r-genomicranges" ,r-genomicranges)
6715 ("r-ggplot2" ,r-ggplot2)
6716 ("r-hmisc" ,r-hmisc)
6717 ("r-iranges" ,r-iranges)
6718 ("r-locfit" ,r-locfit)
6719 ("r-rcpp" ,r-rcpp)
6720 ("r-rcpparmadillo" ,r-rcpparmadillo)
6721 ("r-s4vectors" ,r-s4vectors)
6722 ("r-summarizedexperiment" ,r-summarizedexperiment)))
6723 (home-page "https://bioconductor.org/packages/DESeq2")
6724 (synopsis "Differential gene expression analysis")
6725 (description
6726 "This package provides functions to estimate variance-mean dependence in
6727 count data from high-throughput nucleotide sequencing assays and test for
6728 differential expression based on a model using the negative binomial
6729 distribution.")
6730 (license license:lgpl3+)))
6731
6732 (define-public r-dexseq
6733 (package
6734 (name "r-dexseq")
6735 (version "1.30.0")
6736 (source
6737 (origin
6738 (method url-fetch)
6739 (uri (bioconductor-uri "DEXSeq" version))
6740 (sha256
6741 (base32
6742 "1b2s0vwm97g0wgm4ms0f4pqkqiqmxscnhg700aybl5vx0m2fa8xm"))))
6743 (properties `((upstream-name . "DEXSeq")))
6744 (build-system r-build-system)
6745 (propagated-inputs
6746 `(("r-annotationdbi" ,r-annotationdbi)
6747 ("r-biobase" ,r-biobase)
6748 ("r-biocgenerics" ,r-biocgenerics)
6749 ("r-biocparallel" ,r-biocparallel)
6750 ("r-biomart" ,r-biomart)
6751 ("r-deseq2" ,r-deseq2)
6752 ("r-genefilter" ,r-genefilter)
6753 ("r-geneplotter" ,r-geneplotter)
6754 ("r-genomicranges" ,r-genomicranges)
6755 ("r-hwriter" ,r-hwriter)
6756 ("r-iranges" ,r-iranges)
6757 ("r-rcolorbrewer" ,r-rcolorbrewer)
6758 ("r-rsamtools" ,r-rsamtools)
6759 ("r-s4vectors" ,r-s4vectors)
6760 ("r-statmod" ,r-statmod)
6761 ("r-stringr" ,r-stringr)
6762 ("r-summarizedexperiment" ,r-summarizedexperiment)))
6763 (home-page "https://bioconductor.org/packages/DEXSeq")
6764 (synopsis "Inference of differential exon usage in RNA-Seq")
6765 (description
6766 "This package is focused on finding differential exon usage using RNA-seq
6767 exon counts between samples with different experimental designs. It provides
6768 functions that allows the user to make the necessary statistical tests based
6769 on a model that uses the negative binomial distribution to estimate the
6770 variance between biological replicates and generalized linear models for
6771 testing. The package also provides functions for the visualization and
6772 exploration of the results.")
6773 (license license:gpl3+)))
6774
6775 (define-public r-annotationforge
6776 (package
6777 (name "r-annotationforge")
6778 (version "1.26.0")
6779 (source
6780 (origin
6781 (method url-fetch)
6782 (uri (bioconductor-uri "AnnotationForge" version))
6783 (sha256
6784 (base32
6785 "0m4w8n2711wr28znv646cfc7m5jqlr8friz334zdyjmhg7m2xkb7"))))
6786 (properties
6787 `((upstream-name . "AnnotationForge")))
6788 (build-system r-build-system)
6789 (propagated-inputs
6790 `(("r-annotationdbi" ,r-annotationdbi)
6791 ("r-biobase" ,r-biobase)
6792 ("r-biocgenerics" ,r-biocgenerics)
6793 ("r-dbi" ,r-dbi)
6794 ("r-rcurl" ,r-rcurl)
6795 ("r-rsqlite" ,r-rsqlite)
6796 ("r-s4vectors" ,r-s4vectors)
6797 ("r-xml" ,r-xml)))
6798 (home-page "https://bioconductor.org/packages/AnnotationForge")
6799 (synopsis "Code for building annotation database packages")
6800 (description
6801 "This package provides code for generating Annotation packages and their
6802 databases. Packages produced are intended to be used with AnnotationDbi.")
6803 (license license:artistic2.0)))
6804
6805 (define-public r-rbgl
6806 (package
6807 (name "r-rbgl")
6808 (version "1.60.0")
6809 (source
6810 (origin
6811 (method url-fetch)
6812 (uri (bioconductor-uri "RBGL" version))
6813 (sha256
6814 (base32
6815 "06brn9hl6lybx6hdfp1sycwj6wn1bjfi8xyhpy0v122v1z8d5mbz"))))
6816 (properties `((upstream-name . "RBGL")))
6817 (build-system r-build-system)
6818 (propagated-inputs
6819 `(("r-bh" ,r-bh)
6820 ("r-graph" ,r-graph)))
6821 (home-page "https://www.bioconductor.org/packages/RBGL")
6822 (synopsis "Interface to the Boost graph library")
6823 (description
6824 "This package provides a fairly extensive and comprehensive interface to
6825 the graph algorithms contained in the Boost library.")
6826 (license license:artistic2.0)))
6827
6828 (define-public r-gseabase
6829 (package
6830 (name "r-gseabase")
6831 (version "1.46.0")
6832 (source
6833 (origin
6834 (method url-fetch)
6835 (uri (bioconductor-uri "GSEABase" version))
6836 (sha256
6837 (base32
6838 "0vh53xk2prjbdkbr3hwfiflx1gh7ilrqs3j1p3lyd6syy3rn9n83"))))
6839 (properties `((upstream-name . "GSEABase")))
6840 (build-system r-build-system)
6841 (propagated-inputs
6842 `(("r-annotate" ,r-annotate)
6843 ("r-annotationdbi" ,r-annotationdbi)
6844 ("r-biobase" ,r-biobase)
6845 ("r-biocgenerics" ,r-biocgenerics)
6846 ("r-graph" ,r-graph)
6847 ("r-xml" ,r-xml)))
6848 (home-page "https://bioconductor.org/packages/GSEABase")
6849 (synopsis "Gene set enrichment data structures and methods")
6850 (description
6851 "This package provides classes and methods to support @dfn{Gene Set
6852 Enrichment Analysis} (GSEA).")
6853 (license license:artistic2.0)))
6854
6855 (define-public r-category
6856 (package
6857 (name "r-category")
6858 (version "2.50.0")
6859 (source
6860 (origin
6861 (method url-fetch)
6862 (uri (bioconductor-uri "Category" version))
6863 (sha256
6864 (base32
6865 "1n36xfnwn2np5f0lix9abvv9w6jb25jqz3xzvqzklz9s1af4k6x4"))))
6866 (properties `((upstream-name . "Category")))
6867 (build-system r-build-system)
6868 (propagated-inputs
6869 `(("r-annotate" ,r-annotate)
6870 ("r-annotationdbi" ,r-annotationdbi)
6871 ("r-biobase" ,r-biobase)
6872 ("r-biocgenerics" ,r-biocgenerics)
6873 ("r-genefilter" ,r-genefilter)
6874 ("r-graph" ,r-graph)
6875 ("r-gseabase" ,r-gseabase)
6876 ("r-matrix" ,r-matrix)
6877 ("r-rbgl" ,r-rbgl)
6878 ("r-dbi" ,r-dbi)))
6879 (home-page "https://bioconductor.org/packages/Category")
6880 (synopsis "Category analysis")
6881 (description
6882 "This package provides a collection of tools for performing category
6883 analysis.")
6884 (license license:artistic2.0)))
6885
6886 (define-public r-gostats
6887 (package
6888 (name "r-gostats")
6889 (version "2.50.0")
6890 (source
6891 (origin
6892 (method url-fetch)
6893 (uri (bioconductor-uri "GOstats" version))
6894 (sha256
6895 (base32
6896 "1a95i6awm2a8xv42fg2z3n29fg9z29i45kd80hxf6mvqqgzj80xp"))))
6897 (properties `((upstream-name . "GOstats")))
6898 (build-system r-build-system)
6899 (propagated-inputs
6900 `(("r-annotate" ,r-annotate)
6901 ("r-annotationdbi" ,r-annotationdbi)
6902 ("r-annotationforge" ,r-annotationforge)
6903 ("r-biobase" ,r-biobase)
6904 ("r-category" ,r-category)
6905 ("r-go-db" ,r-go-db)
6906 ("r-graph" ,r-graph)
6907 ("r-rgraphviz" ,r-rgraphviz)
6908 ("r-rbgl" ,r-rbgl)))
6909 (home-page "https://bioconductor.org/packages/GOstats")
6910 (synopsis "Tools for manipulating GO and microarrays")
6911 (description
6912 "This package provides a set of tools for interacting with GO and
6913 microarray data. A variety of basic manipulation tools for graphs, hypothesis
6914 testing and other simple calculations.")
6915 (license license:artistic2.0)))
6916
6917 (define-public r-shortread
6918 (package
6919 (name "r-shortread")
6920 (version "1.42.0")
6921 (source
6922 (origin
6923 (method url-fetch)
6924 (uri (bioconductor-uri "ShortRead" version))
6925 (sha256
6926 (base32
6927 "1irqzdgsavjqsq0vva4966qh8qgn7xn9382dmhahm1hxb94qmi59"))))
6928 (properties `((upstream-name . "ShortRead")))
6929 (build-system r-build-system)
6930 (inputs
6931 `(("zlib" ,zlib)))
6932 (propagated-inputs
6933 `(("r-biobase" ,r-biobase)
6934 ("r-biocgenerics" ,r-biocgenerics)
6935 ("r-biocparallel" ,r-biocparallel)
6936 ("r-biostrings" ,r-biostrings)
6937 ("r-genomeinfodb" ,r-genomeinfodb)
6938 ("r-genomicalignments" ,r-genomicalignments)
6939 ("r-genomicranges" ,r-genomicranges)
6940 ("r-hwriter" ,r-hwriter)
6941 ("r-iranges" ,r-iranges)
6942 ("r-lattice" ,r-lattice)
6943 ("r-latticeextra" ,r-latticeextra)
6944 ("r-rsamtools" ,r-rsamtools)
6945 ("r-s4vectors" ,r-s4vectors)
6946 ("r-xvector" ,r-xvector)
6947 ("r-zlibbioc" ,r-zlibbioc)))
6948 (home-page "https://bioconductor.org/packages/ShortRead")
6949 (synopsis "FASTQ input and manipulation tools")
6950 (description
6951 "This package implements sampling, iteration, and input of FASTQ files.
6952 It includes functions for filtering and trimming reads, and for generating a
6953 quality assessment report. Data are represented as
6954 @code{DNAStringSet}-derived objects, and easily manipulated for a diversity of
6955 purposes. The package also contains legacy support for early single-end,
6956 ungapped alignment formats.")
6957 (license license:artistic2.0)))
6958
6959 (define-public r-systempiper
6960 (package
6961 (name "r-systempiper")
6962 (version "1.18.2")
6963 (source
6964 (origin
6965 (method url-fetch)
6966 (uri (bioconductor-uri "systemPipeR" version))
6967 (sha256
6968 (base32
6969 "18s5vpmw766pm64w7bwwfgpsv9yzhwclf0ya1rpqz8qslw7bbdjf"))))
6970 (properties `((upstream-name . "systemPipeR")))
6971 (build-system r-build-system)
6972 (propagated-inputs
6973 `(("r-annotate" ,r-annotate)
6974 ("r-batchtools" ,r-batchtools)
6975 ("r-biocgenerics" ,r-biocgenerics)
6976 ("r-biostrings" ,r-biostrings)
6977 ("r-deseq2" ,r-deseq2)
6978 ("r-edger" ,r-edger)
6979 ("r-genomicfeatures" ,r-genomicfeatures)
6980 ("r-genomicranges" ,r-genomicranges)
6981 ("r-ggplot2" ,r-ggplot2)
6982 ("r-go-db" ,r-go-db)
6983 ("r-gostats" ,r-gostats)
6984 ("r-limma" ,r-limma)
6985 ("r-pheatmap" ,r-pheatmap)
6986 ("r-rjson" ,r-rjson)
6987 ("r-rsamtools" ,r-rsamtools)
6988 ("r-shortread" ,r-shortread)
6989 ("r-summarizedexperiment" ,r-summarizedexperiment)
6990 ("r-yaml" ,r-yaml)
6991 ("r-variantannotation" ,r-variantannotation)))
6992 (home-page "https://github.com/tgirke/systemPipeR")
6993 (synopsis "Next generation sequencing workflow and reporting environment")
6994 (description
6995 "This R package provides tools for building and running automated
6996 end-to-end analysis workflows for a wide range of @dfn{next generation
6997 sequence} (NGS) applications such as RNA-Seq, ChIP-Seq, VAR-Seq and Ribo-Seq.
6998 Important features include a uniform workflow interface across different NGS
6999 applications, automated report generation, and support for running both R and
7000 command-line software, such as NGS aligners or peak/variant callers, on local
7001 computers or compute clusters. Efficient handling of complex sample sets and
7002 experimental designs is facilitated by a consistently implemented sample
7003 annotation infrastructure.")
7004 (license license:artistic2.0)))
7005
7006 (define-public r-grohmm
7007 (package
7008 (name "r-grohmm")
7009 (version "1.18.0")
7010 (source
7011 (origin
7012 (method url-fetch)
7013 (uri (bioconductor-uri "groHMM" version))
7014 (sha256
7015 (base32
7016 "1p368qf8ab1vy8gl2j7rx0l7bvva4m7w06i364rqzs0sdyzlbm3y"))))
7017 (properties `((upstream-name . "groHMM")))
7018 (build-system r-build-system)
7019 (propagated-inputs
7020 `(("r-genomeinfodb" ,r-genomeinfodb)
7021 ("r-genomicalignments" ,r-genomicalignments)
7022 ("r-genomicranges" ,r-genomicranges)
7023 ("r-iranges" ,r-iranges)
7024 ("r-mass" ,r-mass)
7025 ("r-rtracklayer" ,r-rtracklayer)
7026 ("r-s4vectors" ,r-s4vectors)))
7027 (home-page "https://github.com/Kraus-Lab/groHMM")
7028 (synopsis "GRO-seq analysis pipeline")
7029 (description
7030 "This package provides a pipeline for the analysis of GRO-seq data.")
7031 (license license:gpl3+)))
7032
7033 (define-public vsearch
7034 (package
7035 (name "vsearch")
7036 (version "2.9.1")
7037 (source
7038 (origin
7039 (method git-fetch)
7040 (uri (git-reference
7041 (url "https://github.com/torognes/vsearch.git")
7042 (commit (string-append "v" version))))
7043 (file-name (git-file-name name version))
7044 (sha256
7045 (base32
7046 "0vhrpjfdf75ba04b24xknp41790cvcgwl0vgpy7qbzj5xh2521ss"))
7047 (patches (search-patches "vsearch-unbundle-cityhash.patch"))
7048 (snippet
7049 '(begin
7050 ;; Remove bundled cityhash sources. The vsearch source is adjusted
7051 ;; for this in the patch.
7052 (delete-file "src/city.h")
7053 (delete-file "src/citycrc.h")
7054 (delete-file "src/city.cc")
7055 #t))))
7056 (build-system gnu-build-system)
7057 (inputs
7058 `(("zlib" ,zlib)
7059 ("bzip2" ,bzip2)
7060 ("cityhash" ,cityhash)))
7061 (native-inputs
7062 `(("autoconf" ,autoconf)
7063 ("automake" ,automake)))
7064 (synopsis "Sequence search tools for metagenomics")
7065 (description
7066 "VSEARCH supports DNA sequence searching, clustering, chimera detection,
7067 dereplication, pairwise alignment, shuffling, subsampling, sorting and
7068 masking. The tool takes advantage of parallelism in the form of SIMD
7069 vectorization as well as multiple threads to perform accurate alignments at
7070 high speed. VSEARCH uses an optimal global aligner (full dynamic programming
7071 Needleman-Wunsch).")
7072 (home-page "https://github.com/torognes/vsearch")
7073 ;; vsearch uses non-portable SSE intrinsics so building fails on other
7074 ;; platforms.
7075 (supported-systems '("x86_64-linux"))
7076 ;; Dual licensed; also includes public domain source.
7077 (license (list license:gpl3 license:bsd-2))))
7078
7079 (define-public pardre
7080 (package
7081 (name "pardre")
7082 ;; The source of 1.1.5 changed in place, so we append "-1" to the version.
7083 (version "1.1.5-1")
7084 (source
7085 (origin
7086 (method url-fetch)
7087 (uri (string-append "mirror://sourceforge/pardre/ParDRe-rel"
7088 "1.1.5" ".tar.gz"))
7089 (sha256
7090 (base32
7091 "17j73nc0viq4f6qj50nrndsrif5d6b71q8fl87m54psiv0ilns2b"))))
7092 (build-system gnu-build-system)
7093 (arguments
7094 `(#:tests? #f ; no tests included
7095 #:phases
7096 (modify-phases %standard-phases
7097 (delete 'configure)
7098 (replace 'install
7099 (lambda* (#:key outputs #:allow-other-keys)
7100 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
7101 (install-file "ParDRe" bin)
7102 #t))))))
7103 (inputs
7104 `(("openmpi" ,openmpi)
7105 ("zlib" ,zlib)))
7106 (synopsis "Parallel tool to remove duplicate DNA reads")
7107 (description
7108 "ParDRe is a parallel tool to remove duplicate genetic sequence reads.
7109 Duplicate reads can be seen as identical or nearly identical sequences with
7110 some mismatches. This tool lets users avoid the analysis of unnecessary
7111 reads, reducing the time of subsequent procedures with the
7112 dataset (e.g. assemblies, mappings, etc.). The tool is implemented with MPI
7113 in order to exploit the parallel capabilities of multicore clusters. It is
7114 faster than multithreaded counterparts (end of 2015) for the same number of
7115 cores and, thanks to the message-passing technology, it can be executed on
7116 clusters.")
7117 (home-page "https://sourceforge.net/projects/pardre/")
7118 (license license:gpl3+)))
7119
7120 (define-public ruby-bio-kseq
7121 (package
7122 (name "ruby-bio-kseq")
7123 (version "0.0.2")
7124 (source
7125 (origin
7126 (method url-fetch)
7127 (uri (rubygems-uri "bio-kseq" version))
7128 (sha256
7129 (base32
7130 "1xyaha46khb5jc6wzkbf7040jagac49jbimn0vcrzid0j8jdikrz"))))
7131 (build-system ruby-build-system)
7132 (arguments
7133 `(#:test-target "spec"))
7134 (native-inputs
7135 `(("bundler" ,bundler)
7136 ("ruby-rspec" ,ruby-rspec)
7137 ("ruby-rake-compiler" ,ruby-rake-compiler)))
7138 (inputs
7139 `(("zlib" ,zlib)))
7140 (synopsis "Ruby bindings for the kseq.h FASTA/Q parser")
7141 (description
7142 "@code{Bio::Kseq} provides ruby bindings to the @code{kseq.h} FASTA and
7143 FASTQ parsing code. It provides a fast iterator over sequences and their
7144 quality scores.")
7145 (home-page "https://github.com/gusevfe/bio-kseq")
7146 (license license:expat)))
7147
7148 (define-public bio-locus
7149 (package
7150 (name "bio-locus")
7151 (version "0.0.7")
7152 (source
7153 (origin
7154 (method url-fetch)
7155 (uri (rubygems-uri "bio-locus" version))
7156 (sha256
7157 (base32
7158 "02vmrxyimkj9sahsp4zhfhnmbvz6dbbqz1y01vglf8cbwvkajfl0"))))
7159 (build-system ruby-build-system)
7160 (native-inputs
7161 `(("ruby-rspec" ,ruby-rspec)))
7162 (synopsis "Tool for fast querying of genome locations")
7163 (description
7164 "Bio-locus is a tabix-like tool for fast querying of genome
7165 locations. Many file formats in bioinformatics contain records that
7166 start with a chromosome name and a position for a SNP, or a start-end
7167 position for indels. Bio-locus allows users to store this chr+pos or
7168 chr+pos+alt information in a database.")
7169 (home-page "https://github.com/pjotrp/bio-locus")
7170 (license license:expat)))
7171
7172 (define-public bio-blastxmlparser
7173 (package
7174 (name "bio-blastxmlparser")
7175 (version "2.0.4")
7176 (source (origin
7177 (method url-fetch)
7178 (uri (rubygems-uri "bio-blastxmlparser" version))
7179 (sha256
7180 (base32
7181 "1wf4qygcmdjgcqm6flmvsagfr1gs9lf63mj32qv3z1f481zc5692"))))
7182 (build-system ruby-build-system)
7183 (propagated-inputs
7184 `(("ruby-bio-logger" ,ruby-bio-logger)
7185 ("ruby-nokogiri" ,ruby-nokogiri)))
7186 (inputs
7187 `(("ruby-rspec" ,ruby-rspec)))
7188 (synopsis "Fast big data BLAST XML parser and library")
7189 (description
7190 "Very fast parallel big-data BLAST XML file parser which can be used as
7191 command line utility. Use blastxmlparser to: Parse BLAST XML; filter output;
7192 generate FASTA, JSON, YAML, RDF, JSON-LD, HTML, CSV, tabular output etc.")
7193 (home-page "https://github.com/pjotrp/blastxmlparser")
7194 (license license:expat)))
7195
7196 (define-public bioruby
7197 (package
7198 (name "bioruby")
7199 (version "1.5.2")
7200 (source
7201 (origin
7202 (method url-fetch)
7203 (uri (rubygems-uri "bio" version))
7204 (sha256
7205 (base32
7206 "1d56amdsjv1mag7m6gv2w0xij8hqx1v5xbdjsix8sp3yp36m7938"))))
7207 (build-system ruby-build-system)
7208 (propagated-inputs
7209 `(("ruby-libxml" ,ruby-libxml)))
7210 (native-inputs
7211 `(("which" ,which))) ; required for test phase
7212 (arguments
7213 `(#:phases
7214 (modify-phases %standard-phases
7215 (add-before 'build 'patch-test-command
7216 (lambda _
7217 (substitute* '("test/functional/bio/test_command.rb")
7218 (("/bin/sh") (which "sh")))
7219 (substitute* '("test/functional/bio/test_command.rb")
7220 (("/bin/ls") (which "ls")))
7221 (substitute* '("test/functional/bio/test_command.rb")
7222 (("which") (which "which")))
7223 (substitute* '("test/functional/bio/test_command.rb",
7224 "test/data/command/echoarg2.sh")
7225 (("/bin/echo") (which "echo")))
7226 #t)))))
7227 (synopsis "Ruby library, shell and utilities for bioinformatics")
7228 (description "BioRuby comes with a comprehensive set of Ruby development
7229 tools and libraries for bioinformatics and molecular biology. BioRuby has
7230 components for sequence analysis, pathway analysis, protein modelling and
7231 phylogenetic analysis; it supports many widely used data formats and provides
7232 easy access to databases, external programs and public web services, including
7233 BLAST, KEGG, GenBank, MEDLINE and GO.")
7234 (home-page "http://bioruby.org/")
7235 ;; Code is released under Ruby license, except for setup
7236 ;; (LGPLv2.1+) and scripts in samples (which have GPL2 and GPL2+)
7237 (license (list license:ruby license:lgpl2.1+ license:gpl2+ ))))
7238
7239 (define-public r-biocviews
7240 (package
7241 (name "r-biocviews")
7242 (version "1.52.2")
7243 (source (origin
7244 (method url-fetch)
7245 (uri (bioconductor-uri "biocViews" version))
7246 (sha256
7247 (base32
7248 "0qwrsd9fcpkv7hhzy1scnj7ahdxi6cjary28kqk6b36gkzmnrw4r"))))
7249 (properties
7250 `((upstream-name . "biocViews")))
7251 (build-system r-build-system)
7252 (propagated-inputs
7253 `(("r-biobase" ,r-biobase)
7254 ("r-biocmanager" ,r-biocmanager)
7255 ("r-graph" ,r-graph)
7256 ("r-rbgl" ,r-rbgl)
7257 ("r-rcurl" ,r-rcurl)
7258 ("r-xml" ,r-xml)
7259 ("r-runit" ,r-runit)))
7260 (home-page "https://bioconductor.org/packages/biocViews")
7261 (synopsis "Bioconductor package categorization helper")
7262 (description "The purpose of biocViews is to create HTML pages that
7263 categorize packages in a Bioconductor package repository according to keywords,
7264 also known as views, in a controlled vocabulary.")
7265 (license license:artistic2.0)))
7266
7267 (define-public r-biocstyle
7268 (package
7269 (name "r-biocstyle")
7270 (version "2.12.0")
7271 (source (origin
7272 (method url-fetch)
7273 (uri (bioconductor-uri "BiocStyle" version))
7274 (sha256
7275 (base32
7276 "029x8r9rcx6zy0xixdpwxai4jv4ynb161821fzac6z4r8k418398"))))
7277 (properties
7278 `((upstream-name . "BiocStyle")))
7279 (build-system r-build-system)
7280 (propagated-inputs
7281 `(("r-biocmanager" ,r-biocmanager)
7282 ("r-bookdown" ,r-bookdown)
7283 ("r-knitr" ,r-knitr)
7284 ("r-rmarkdown" ,r-rmarkdown)
7285 ("r-yaml" ,r-yaml)))
7286 (home-page "https://bioconductor.org/packages/BiocStyle")
7287 (synopsis "Bioconductor formatting styles")
7288 (description "This package provides standard formatting styles for
7289 Bioconductor PDF and HTML documents. Package vignettes illustrate use and
7290 functionality.")
7291 (license license:artistic2.0)))
7292
7293 (define-public r-bioccheck
7294 (package
7295 (name "r-bioccheck")
7296 (version "1.20.0")
7297 (source (origin
7298 (method url-fetch)
7299 (uri (bioconductor-uri "BiocCheck" version))
7300 (sha256
7301 (base32
7302 "1gkw9s6dhdryga9ap5yhvcqg9jsy4cn417ayqk1qiv6fy91fd124"))))
7303 (properties
7304 `((upstream-name . "BiocCheck")))
7305 (build-system r-build-system)
7306 (arguments
7307 '(#:phases
7308 (modify-phases %standard-phases
7309 ;; This package can be used by calling BiocCheck(<package>) from
7310 ;; within R, or by running R CMD BiocCheck <package>. This phase
7311 ;; makes sure the latter works. For this to work, the BiocCheck
7312 ;; script must be somewhere on the PATH (not the R bin directory).
7313 (add-after 'install 'install-bioccheck-subcommand
7314 (lambda* (#:key outputs #:allow-other-keys)
7315 (let* ((out (assoc-ref outputs "out"))
7316 (dest-dir (string-append out "/bin"))
7317 (script-dir
7318 (string-append out "/site-library/BiocCheck/script/")))
7319 (mkdir-p dest-dir)
7320 (symlink (string-append script-dir "/checkBadDeps.R")
7321 (string-append dest-dir "/checkBadDeps.R"))
7322 (symlink (string-append script-dir "/BiocCheck")
7323 (string-append dest-dir "/BiocCheck")))
7324 #t)))))
7325 (propagated-inputs
7326 `(("r-codetools" ,r-codetools)
7327 ("r-graph" ,r-graph)
7328 ("r-httr" ,r-httr)
7329 ("r-knitr" ,r-knitr)
7330 ("r-optparse" ,r-optparse)
7331 ("r-biocmanager" ,r-biocmanager)
7332 ("r-biocviews" ,r-biocviews)
7333 ("r-stringdist" ,r-stringdist)))
7334 (home-page "https://bioconductor.org/packages/BiocCheck")
7335 (synopsis "Executes Bioconductor-specific package checks")
7336 (description "This package contains tools to perform additional quality
7337 checks on R packages that are to be submitted to the Bioconductor repository.")
7338 (license license:artistic2.0)))
7339
7340 (define-public r-s4vectors
7341 (package
7342 (name "r-s4vectors")
7343 (version "0.22.1")
7344 (source (origin
7345 (method url-fetch)
7346 (uri (bioconductor-uri "S4Vectors" version))
7347 (sha256
7348 (base32
7349 "0cpxqb18wd3pjd7bi8lry13sm5ffqahcvvxpk5pwm5xcj30cdlm9"))))
7350 (properties
7351 `((upstream-name . "S4Vectors")))
7352 (build-system r-build-system)
7353 (propagated-inputs
7354 `(("r-biocgenerics" ,r-biocgenerics)))
7355 (home-page "https://bioconductor.org/packages/S4Vectors")
7356 (synopsis "S4 implementation of vectors and lists")
7357 (description
7358 "The S4Vectors package defines the @code{Vector} and @code{List} virtual
7359 classes and a set of generic functions that extend the semantic of ordinary
7360 vectors and lists in R. Package developers can easily implement vector-like
7361 or list-like objects as concrete subclasses of @code{Vector} or @code{List}.
7362 In addition, a few low-level concrete subclasses of general interest (e.g.
7363 @code{DataFrame}, @code{Rle}, and @code{Hits}) are implemented in the
7364 S4Vectors package itself.")
7365 (license license:artistic2.0)))
7366
7367 (define-public r-iranges
7368 (package
7369 (name "r-iranges")
7370 (version "2.18.3")
7371 (source (origin
7372 (method url-fetch)
7373 (uri (bioconductor-uri "IRanges" version))
7374 (sha256
7375 (base32
7376 "05rw2b2bwns443n7d6lf97zdv1jbqdii2nprhs6x852w73m2a2g3"))))
7377 (properties
7378 `((upstream-name . "IRanges")))
7379 (build-system r-build-system)
7380 (propagated-inputs
7381 `(("r-biocgenerics" ,r-biocgenerics)
7382 ("r-s4vectors" ,r-s4vectors)))
7383 (home-page "https://bioconductor.org/packages/IRanges")
7384 (synopsis "Infrastructure for manipulating intervals on sequences")
7385 (description
7386 "This package provides efficient low-level and highly reusable S4 classes
7387 for storing ranges of integers, RLE vectors (Run-Length Encoding), and, more
7388 generally, data that can be organized sequentially (formally defined as
7389 @code{Vector} objects), as well as views on these @code{Vector} objects.
7390 Efficient list-like classes are also provided for storing big collections of
7391 instances of the basic classes. All classes in the package use consistent
7392 naming and share the same rich and consistent \"Vector API\" as much as
7393 possible.")
7394 (license license:artistic2.0)))
7395
7396 (define-public r-genomeinfodbdata
7397 (package
7398 (name "r-genomeinfodbdata")
7399 (version "1.2.0")
7400 (source (origin
7401 (method url-fetch)
7402 ;; We cannot use bioconductor-uri here because this tarball is
7403 ;; located under "data/annotation/" instead of "bioc/".
7404 (uri (string-append "https://bioconductor.org/packages/release/"
7405 "data/annotation/src/contrib/GenomeInfoDbData_"
7406 version ".tar.gz"))
7407 (sha256
7408 (base32
7409 "0di6nlqpsyqf693k2na65ayqldih563x3zfrczpqc5q2hl5kg35c"))))
7410 (properties
7411 `((upstream-name . "GenomeInfoDbData")))
7412 (build-system r-build-system)
7413 (home-page "https://bioconductor.org/packages/GenomeInfoDbData")
7414 (synopsis "Species and taxonomy ID look up tables for GenomeInfoDb")
7415 (description "This package contains data for mapping between NCBI taxonomy
7416 ID and species. It is used by functions in the GenomeInfoDb package.")
7417 (license license:artistic2.0)))
7418
7419 (define-public r-genomeinfodb
7420 (package
7421 (name "r-genomeinfodb")
7422 (version "1.20.0")
7423 (source (origin
7424 (method url-fetch)
7425 (uri (bioconductor-uri "GenomeInfoDb" version))
7426 (sha256
7427 (base32
7428 "0zkhms81b3jz30q7ag81a1mq1rgqg4izyfdvcni68gvn8gm7kdyk"))))
7429 (properties
7430 `((upstream-name . "GenomeInfoDb")))
7431 (build-system r-build-system)
7432 (propagated-inputs
7433 `(("r-biocgenerics" ,r-biocgenerics)
7434 ("r-genomeinfodbdata" ,r-genomeinfodbdata)
7435 ("r-iranges" ,r-iranges)
7436 ("r-rcurl" ,r-rcurl)
7437 ("r-s4vectors" ,r-s4vectors)))
7438 (home-page "https://bioconductor.org/packages/GenomeInfoDb")
7439 (synopsis "Utilities for manipulating chromosome identifiers")
7440 (description
7441 "This package contains data and functions that define and allow
7442 translation between different chromosome sequence naming conventions (e.g.,
7443 \"chr1\" versus \"1\"), including a function that attempts to place sequence
7444 names in their natural, rather than lexicographic, order.")
7445 (license license:artistic2.0)))
7446
7447 (define-public r-edger
7448 (package
7449 (name "r-edger")
7450 (version "3.26.8")
7451 (source (origin
7452 (method url-fetch)
7453 (uri (bioconductor-uri "edgeR" version))
7454 (sha256
7455 (base32
7456 "1wwimzviy2vklp80faz7sbbp74qcw2csbmlfgvzj7b785vwarpwg"))))
7457 (properties `((upstream-name . "edgeR")))
7458 (build-system r-build-system)
7459 (propagated-inputs
7460 `(("r-limma" ,r-limma)
7461 ("r-locfit" ,r-locfit)
7462 ("r-rcpp" ,r-rcpp)
7463 ("r-statmod" ,r-statmod))) ;for estimateDisp
7464 (home-page "http://bioinf.wehi.edu.au/edgeR")
7465 (synopsis "EdgeR does empirical analysis of digital gene expression data")
7466 (description "This package can do differential expression analysis of
7467 RNA-seq expression profiles with biological replication. It implements a range
7468 of statistical methodology based on the negative binomial distributions,
7469 including empirical Bayes estimation, exact tests, generalized linear models
7470 and quasi-likelihood tests. It be applied to differential signal analysis of
7471 other types of genomic data that produce counts, including ChIP-seq, SAGE and
7472 CAGE.")
7473 (license license:gpl2+)))
7474
7475 (define-public r-variantannotation
7476 (package
7477 (name "r-variantannotation")
7478 (version "1.30.1")
7479 (source (origin
7480 (method url-fetch)
7481 (uri (bioconductor-uri "VariantAnnotation" version))
7482 (sha256
7483 (base32
7484 "144x3d3b9a3q5jy4aqrk1nf2yavwjhwlf71s7qyr4x3ms3wmvf8i"))))
7485 (properties
7486 `((upstream-name . "VariantAnnotation")))
7487 (inputs
7488 `(("zlib" ,zlib)))
7489 (propagated-inputs
7490 `(("r-annotationdbi" ,r-annotationdbi)
7491 ("r-biobase" ,r-biobase)
7492 ("r-biocgenerics" ,r-biocgenerics)
7493 ("r-biostrings" ,r-biostrings)
7494 ("r-bsgenome" ,r-bsgenome)
7495 ("r-dbi" ,r-dbi)
7496 ("r-genomeinfodb" ,r-genomeinfodb)
7497 ("r-genomicfeatures" ,r-genomicfeatures)
7498 ("r-genomicranges" ,r-genomicranges)
7499 ("r-iranges" ,r-iranges)
7500 ("r-summarizedexperiment" ,r-summarizedexperiment)
7501 ("r-rhtslib" ,r-rhtslib)
7502 ("r-rsamtools" ,r-rsamtools)
7503 ("r-rtracklayer" ,r-rtracklayer)
7504 ("r-s4vectors" ,r-s4vectors)
7505 ("r-xvector" ,r-xvector)
7506 ("r-zlibbioc" ,r-zlibbioc)))
7507 (build-system r-build-system)
7508 (home-page "https://bioconductor.org/packages/VariantAnnotation")
7509 (synopsis "Package for annotation of genetic variants")
7510 (description "This R package can annotate variants, compute amino acid
7511 coding changes and predict coding outcomes.")
7512 (license license:artistic2.0)))
7513
7514 (define-public r-limma
7515 (package
7516 (name "r-limma")
7517 (version "3.40.6")
7518 (source (origin
7519 (method url-fetch)
7520 (uri (bioconductor-uri "limma" version))
7521 (sha256
7522 (base32
7523 "166z8cdh6w90rldqqaar7hyaskwiy4smawjfbn4sn58clv6q3mp8"))))
7524 (build-system r-build-system)
7525 (home-page "http://bioinf.wehi.edu.au/limma")
7526 (synopsis "Package for linear models for microarray and RNA-seq data")
7527 (description "This package can be used for the analysis of gene expression
7528 studies, especially the use of linear models for analysing designed experiments
7529 and the assessment of differential expression. The analysis methods apply to
7530 different technologies, including microarrays, RNA-seq, and quantitative PCR.")
7531 (license license:gpl2+)))
7532
7533 (define-public r-xvector
7534 (package
7535 (name "r-xvector")
7536 (version "0.24.0")
7537 (source (origin
7538 (method url-fetch)
7539 (uri (bioconductor-uri "XVector" version))
7540 (sha256
7541 (base32
7542 "12y09pwy86h1za6cmaxs960r7fs0vjzhl0li8jn59vqq9liza1ap"))))
7543 (properties
7544 `((upstream-name . "XVector")))
7545 (build-system r-build-system)
7546 (arguments
7547 `(#:phases
7548 (modify-phases %standard-phases
7549 (add-after 'unpack 'use-system-zlib
7550 (lambda _
7551 (substitute* "DESCRIPTION"
7552 (("zlibbioc, ") ""))
7553 (substitute* "NAMESPACE"
7554 (("import\\(zlibbioc\\)") ""))
7555 #t)))))
7556 (inputs
7557 `(("zlib" ,zlib)))
7558 (propagated-inputs
7559 `(("r-biocgenerics" ,r-biocgenerics)
7560 ("r-iranges" ,r-iranges)
7561 ("r-s4vectors" ,r-s4vectors)))
7562 (home-page "https://bioconductor.org/packages/XVector")
7563 (synopsis "Representation and manpulation of external sequences")
7564 (description
7565 "This package provides memory efficient S4 classes for storing sequences
7566 \"externally\" (behind an R external pointer, or on disk).")
7567 (license license:artistic2.0)))
7568
7569 (define-public r-genomicranges
7570 (package
7571 (name "r-genomicranges")
7572 (version "1.36.1")
7573 (source (origin
7574 (method url-fetch)
7575 (uri (bioconductor-uri "GenomicRanges" version))
7576 (sha256
7577 (base32
7578 "1yid84gn0052v52h84685lvk854grl1wl65psmlmxx9yyykgc0jn"))))
7579 (properties
7580 `((upstream-name . "GenomicRanges")))
7581 (build-system r-build-system)
7582 (propagated-inputs
7583 `(("r-biocgenerics" ,r-biocgenerics)
7584 ("r-genomeinfodb" ,r-genomeinfodb)
7585 ("r-iranges" ,r-iranges)
7586 ("r-s4vectors" ,r-s4vectors)
7587 ("r-xvector" ,r-xvector)))
7588 (home-page "https://bioconductor.org/packages/GenomicRanges")
7589 (synopsis "Representation and manipulation of genomic intervals")
7590 (description
7591 "This package provides tools to efficiently represent and manipulate
7592 genomic annotations and alignments is playing a central role when it comes to
7593 analyzing high-throughput sequencing data (a.k.a. NGS data). The
7594 GenomicRanges package defines general purpose containers for storing and
7595 manipulating genomic intervals and variables defined along a genome.")
7596 (license license:artistic2.0)))
7597
7598 (define-public r-biobase
7599 (package
7600 (name "r-biobase")
7601 (version "2.44.0")
7602 (source (origin
7603 (method url-fetch)
7604 (uri (bioconductor-uri "Biobase" version))
7605 (sha256
7606 (base32
7607 "15yl92niqamx3lmwd11zlk0xniibqnh1gi280iadxicmchi83npc"))))
7608 (properties
7609 `((upstream-name . "Biobase")))
7610 (build-system r-build-system)
7611 (propagated-inputs
7612 `(("r-biocgenerics" ,r-biocgenerics)))
7613 (home-page "https://bioconductor.org/packages/Biobase")
7614 (synopsis "Base functions for Bioconductor")
7615 (description
7616 "This package provides functions that are needed by many other packages
7617 on Bioconductor or which replace R functions.")
7618 (license license:artistic2.0)))
7619
7620 (define-public r-annotationdbi
7621 (package
7622 (name "r-annotationdbi")
7623 (version "1.46.1")
7624 (source (origin
7625 (method url-fetch)
7626 (uri (bioconductor-uri "AnnotationDbi" version))
7627 (sha256
7628 (base32
7629 "13nanz4nzy0mcda8ljz2g8d81hpqfz6jky7ydz5hpk0g2264b9ga"))))
7630 (properties
7631 `((upstream-name . "AnnotationDbi")))
7632 (build-system r-build-system)
7633 (propagated-inputs
7634 `(("r-biobase" ,r-biobase)
7635 ("r-biocgenerics" ,r-biocgenerics)
7636 ("r-dbi" ,r-dbi)
7637 ("r-iranges" ,r-iranges)
7638 ("r-rsqlite" ,r-rsqlite)
7639 ("r-s4vectors" ,r-s4vectors)))
7640 (home-page "https://bioconductor.org/packages/AnnotationDbi")
7641 (synopsis "Annotation database interface")
7642 (description
7643 "This package provides user interface and database connection code for
7644 annotation data packages using SQLite data storage.")
7645 (license license:artistic2.0)))
7646
7647 (define-public r-biomart
7648 (package
7649 (name "r-biomart")
7650 (version "2.40.5")
7651 (source (origin
7652 (method url-fetch)
7653 (uri (bioconductor-uri "biomaRt" version))
7654 (sha256
7655 (base32
7656 "1kjvxnkpsx3j2hji3cg3ka2gv8a9mg117lzzxyqjb7qa4zw7dipx"))))
7657 (properties
7658 `((upstream-name . "biomaRt")))
7659 (build-system r-build-system)
7660 (propagated-inputs
7661 `(("r-annotationdbi" ,r-annotationdbi)
7662 ("r-httr" ,r-httr)
7663 ("r-progress" ,r-progress)
7664 ("r-rcurl" ,r-rcurl)
7665 ("r-stringr" ,r-stringr)
7666 ("r-xml" ,r-xml)))
7667 (home-page "https://bioconductor.org/packages/biomaRt")
7668 (synopsis "Interface to BioMart databases")
7669 (description
7670 "biomaRt provides an interface to a growing collection of databases
7671 implementing the @url{BioMart software suite, http://www.biomart.org}. The
7672 package enables retrieval of large amounts of data in a uniform way without
7673 the need to know the underlying database schemas or write complex SQL queries.
7674 Examples of BioMart databases are Ensembl, COSMIC, Uniprot, HGNC, Gramene,
7675 Wormbase and dbSNP mapped to Ensembl. These major databases give biomaRt
7676 users direct access to a diverse set of data and enable a wide range of
7677 powerful online queries from gene annotation to database mining.")
7678 (license license:artistic2.0)))
7679
7680 (define-public r-biocparallel
7681 (package
7682 (name "r-biocparallel")
7683 (version "1.18.1")
7684 (source (origin
7685 (method url-fetch)
7686 (uri (bioconductor-uri "BiocParallel" version))
7687 (sha256
7688 (base32
7689 "1j6wbls4qgvi5gj99c51r00jhxrzxk3x3258wg7dcjzbfqypvyw3"))))
7690 (properties
7691 `((upstream-name . "BiocParallel")))
7692 (build-system r-build-system)
7693 (propagated-inputs
7694 `(("r-futile-logger" ,r-futile-logger)
7695 ("r-snow" ,r-snow)
7696 ("r-bh" ,r-bh)))
7697 (home-page "https://bioconductor.org/packages/BiocParallel")
7698 (synopsis "Bioconductor facilities for parallel evaluation")
7699 (description
7700 "This package provides modified versions and novel implementation of
7701 functions for parallel evaluation, tailored to use with Bioconductor
7702 objects.")
7703 (license (list license:gpl2+ license:gpl3+))))
7704
7705 (define-public r-biostrings
7706 (package
7707 (name "r-biostrings")
7708 (version "2.52.0")
7709 (source (origin
7710 (method url-fetch)
7711 (uri (bioconductor-uri "Biostrings" version))
7712 (sha256
7713 (base32
7714 "0inrl97hli3qz6cfxcikc4picmbrqc8phdgqi18ynlvxy5ql64h4"))))
7715 (properties
7716 `((upstream-name . "Biostrings")))
7717 (build-system r-build-system)
7718 (propagated-inputs
7719 `(("r-biocgenerics" ,r-biocgenerics)
7720 ("r-iranges" ,r-iranges)
7721 ("r-s4vectors" ,r-s4vectors)
7722 ("r-xvector" ,r-xvector)))
7723 (home-page "https://bioconductor.org/packages/Biostrings")
7724 (synopsis "String objects and algorithms for biological sequences")
7725 (description
7726 "This package provides memory efficient string containers, string
7727 matching algorithms, and other utilities, for fast manipulation of large
7728 biological sequences or sets of sequences.")
7729 (license license:artistic2.0)))
7730
7731 (define-public r-rsamtools
7732 (package
7733 (name "r-rsamtools")
7734 (version "2.0.3")
7735 (source (origin
7736 (method url-fetch)
7737 (uri (bioconductor-uri "Rsamtools" version))
7738 (sha256
7739 (base32
7740 "03qfpaqbffirpnby88mv6h45njfapli28crdvg35h2zi2jkkmhvp"))))
7741 (properties
7742 `((upstream-name . "Rsamtools")))
7743 (build-system r-build-system)
7744 (arguments
7745 `(#:phases
7746 (modify-phases %standard-phases
7747 (add-after 'unpack 'use-system-zlib
7748 (lambda _
7749 (substitute* "DESCRIPTION"
7750 (("zlibbioc, ") ""))
7751 (substitute* "NAMESPACE"
7752 (("import\\(zlibbioc\\)") ""))
7753 #t)))))
7754 (inputs
7755 `(("zlib" ,zlib)))
7756 (propagated-inputs
7757 `(("r-biocgenerics" ,r-biocgenerics)
7758 ("r-biocparallel" ,r-biocparallel)
7759 ("r-biostrings" ,r-biostrings)
7760 ("r-bitops" ,r-bitops)
7761 ("r-genomeinfodb" ,r-genomeinfodb)
7762 ("r-genomicranges" ,r-genomicranges)
7763 ("r-iranges" ,r-iranges)
7764 ("r-rhtslib" ,r-rhtslib)
7765 ("r-s4vectors" ,r-s4vectors)
7766 ("r-xvector" ,r-xvector)))
7767 (home-page "https://bioconductor.org/packages/release/bioc/html/Rsamtools.html")
7768 (synopsis "Interface to samtools, bcftools, and tabix")
7769 (description
7770 "This package provides an interface to the @code{samtools},
7771 @code{bcftools}, and @code{tabix} utilities for manipulating SAM (Sequence
7772 Alignment / Map), FASTA, binary variant call (BCF) and compressed indexed
7773 tab-delimited (tabix) files.")
7774 (license license:expat)))
7775
7776 (define-public r-delayedarray
7777 (package
7778 (name "r-delayedarray")
7779 (version "0.10.0")
7780 (source (origin
7781 (method url-fetch)
7782 (uri (bioconductor-uri "DelayedArray" version))
7783 (sha256
7784 (base32
7785 "0l907ggxndn3f29zvsd5pppmp4c31rb22r6zkhvgph7xdxahyy6z"))))
7786 (properties
7787 `((upstream-name . "DelayedArray")))
7788 (build-system r-build-system)
7789 (propagated-inputs
7790 `(("r-biocgenerics" ,r-biocgenerics)
7791 ("r-biocparallel" ,r-biocparallel)
7792 ("r-s4vectors" ,r-s4vectors)
7793 ("r-iranges" ,r-iranges)
7794 ("r-matrix" ,r-matrix)
7795 ("r-matrixstats" ,r-matrixstats)))
7796 (home-page "https://bioconductor.org/packages/DelayedArray")
7797 (synopsis "Delayed operations on array-like objects")
7798 (description
7799 "Wrapping an array-like object (typically an on-disk object) in a
7800 @code{DelayedArray} object allows one to perform common array operations on it
7801 without loading the object in memory. In order to reduce memory usage and
7802 optimize performance, operations on the object are either delayed or executed
7803 using a block processing mechanism. Note that this also works on in-memory
7804 array-like objects like @code{DataFrame} objects (typically with Rle columns),
7805 @code{Matrix} objects, and ordinary arrays and data frames.")
7806 (license license:artistic2.0)))
7807
7808 (define-public r-summarizedexperiment
7809 (package
7810 (name "r-summarizedexperiment")
7811 (version "1.14.1")
7812 (source (origin
7813 (method url-fetch)
7814 (uri (bioconductor-uri "SummarizedExperiment" version))
7815 (sha256
7816 (base32
7817 "0bhwgzrdipr0qjzc4j0qspqprx3v1rvshmx4j6506dv43pqlgp3f"))))
7818 (properties
7819 `((upstream-name . "SummarizedExperiment")))
7820 (build-system r-build-system)
7821 (propagated-inputs
7822 `(("r-biobase" ,r-biobase)
7823 ("r-biocgenerics" ,r-biocgenerics)
7824 ("r-delayedarray" ,r-delayedarray)
7825 ("r-genomeinfodb" ,r-genomeinfodb)
7826 ("r-genomicranges" ,r-genomicranges)
7827 ("r-iranges" ,r-iranges)
7828 ("r-matrix" ,r-matrix)
7829 ("r-s4vectors" ,r-s4vectors)))
7830 (home-page "https://bioconductor.org/packages/SummarizedExperiment")
7831 (synopsis "Container for representing genomic ranges by sample")
7832 (description
7833 "The SummarizedExperiment container contains one or more assays, each
7834 represented by a matrix-like object of numeric or other mode. The rows
7835 typically represent genomic ranges of interest and the columns represent
7836 samples.")
7837 (license license:artistic2.0)))
7838
7839 (define-public r-genomicalignments
7840 (package
7841 (name "r-genomicalignments")
7842 (version "1.20.1")
7843 (source (origin
7844 (method url-fetch)
7845 (uri (bioconductor-uri "GenomicAlignments" version))
7846 (sha256
7847 (base32
7848 "0s3q97q4pgj5jwn4g95al44rahrwsncsf45v01v4071msx3xmjxq"))))
7849 (properties
7850 `((upstream-name . "GenomicAlignments")))
7851 (build-system r-build-system)
7852 (propagated-inputs
7853 `(("r-biocgenerics" ,r-biocgenerics)
7854 ("r-biocparallel" ,r-biocparallel)
7855 ("r-biostrings" ,r-biostrings)
7856 ("r-genomeinfodb" ,r-genomeinfodb)
7857 ("r-genomicranges" ,r-genomicranges)
7858 ("r-iranges" ,r-iranges)
7859 ("r-rsamtools" ,r-rsamtools)
7860 ("r-s4vectors" ,r-s4vectors)
7861 ("r-summarizedexperiment" ,r-summarizedexperiment)))
7862 (home-page "https://bioconductor.org/packages/GenomicAlignments")
7863 (synopsis "Representation and manipulation of short genomic alignments")
7864 (description
7865 "This package provides efficient containers for storing and manipulating
7866 short genomic alignments (typically obtained by aligning short reads to a
7867 reference genome). This includes read counting, computing the coverage,
7868 junction detection, and working with the nucleotide content of the
7869 alignments.")
7870 (license license:artistic2.0)))
7871
7872 (define-public r-rtracklayer
7873 (package
7874 (name "r-rtracklayer")
7875 (version "1.44.4")
7876 (source (origin
7877 (method url-fetch)
7878 (uri (bioconductor-uri "rtracklayer" version))
7879 (sha256
7880 (base32
7881 "0dnifr58j2si2qbnvap2wslz3xgjv3h4l7a6v7nmmc57hq6kdbym"))))
7882 (build-system r-build-system)
7883 (arguments
7884 `(#:phases
7885 (modify-phases %standard-phases
7886 (add-after 'unpack 'use-system-zlib
7887 (lambda _
7888 (substitute* "DESCRIPTION"
7889 ((" zlibbioc,") ""))
7890 (substitute* "NAMESPACE"
7891 (("import\\(zlibbioc\\)") ""))
7892 #t)))))
7893 (native-inputs
7894 `(("pkg-config" ,pkg-config)))
7895 (inputs
7896 `(("zlib" ,zlib)))
7897 (propagated-inputs
7898 `(("r-biocgenerics" ,r-biocgenerics)
7899 ("r-biostrings" ,r-biostrings)
7900 ("r-genomeinfodb" ,r-genomeinfodb)
7901 ("r-genomicalignments" ,r-genomicalignments)
7902 ("r-genomicranges" ,r-genomicranges)
7903 ("r-iranges" ,r-iranges)
7904 ("r-rcurl" ,r-rcurl)
7905 ("r-rsamtools" ,r-rsamtools)
7906 ("r-s4vectors" ,r-s4vectors)
7907 ("r-xml" ,r-xml)
7908 ("r-xvector" ,r-xvector)))
7909 (home-page "https://bioconductor.org/packages/rtracklayer")
7910 (synopsis "R interface to genome browsers and their annotation tracks")
7911 (description
7912 "rtracklayer is an extensible framework for interacting with multiple
7913 genome browsers (currently UCSC built-in) and manipulating annotation tracks
7914 in various formats (currently GFF, BED, bedGraph, BED15, WIG, BigWig and 2bit
7915 built-in). The user may export/import tracks to/from the supported browsers,
7916 as well as query and modify the browser state, such as the current viewport.")
7917 (license license:artistic2.0)))
7918
7919 (define-public r-genomicfeatures
7920 (package
7921 (name "r-genomicfeatures")
7922 (version "1.36.4")
7923 (source (origin
7924 (method url-fetch)
7925 (uri (bioconductor-uri "GenomicFeatures" version))
7926 (sha256
7927 (base32
7928 "0mzqv8pyxx5nwchyx3radym9ws2f9hb50xc9abjsjs4w4pv91j3k"))))
7929 (properties
7930 `((upstream-name . "GenomicFeatures")))
7931 (build-system r-build-system)
7932 (propagated-inputs
7933 `(("r-annotationdbi" ,r-annotationdbi)
7934 ("r-biobase" ,r-biobase)
7935 ("r-biocgenerics" ,r-biocgenerics)
7936 ("r-biomart" ,r-biomart)
7937 ("r-biostrings" ,r-biostrings)
7938 ("r-dbi" ,r-dbi)
7939 ("r-genomeinfodb" ,r-genomeinfodb)
7940 ("r-genomicranges" ,r-genomicranges)
7941 ("r-iranges" ,r-iranges)
7942 ("r-rcurl" ,r-rcurl)
7943 ("r-rsqlite" ,r-rsqlite)
7944 ("r-rtracklayer" ,r-rtracklayer)
7945 ("r-s4vectors" ,r-s4vectors)
7946 ("r-xvector" ,r-xvector)))
7947 (home-page "https://bioconductor.org/packages/GenomicFeatures")
7948 (synopsis "Tools for working with transcript centric annotations")
7949 (description
7950 "This package provides a set of tools and methods for making and
7951 manipulating transcript centric annotations. With these tools the user can
7952 easily download the genomic locations of the transcripts, exons and cds of a
7953 given organism, from either the UCSC Genome Browser or a BioMart
7954 database (more sources will be supported in the future). This information is
7955 then stored in a local database that keeps track of the relationship between
7956 transcripts, exons, cds and genes. Flexible methods are provided for
7957 extracting the desired features in a convenient format.")
7958 (license license:artistic2.0)))
7959
7960 (define-public r-go-db
7961 (package
7962 (name "r-go-db")
7963 (version "3.7.0")
7964 (source (origin
7965 (method url-fetch)
7966 (uri (string-append "https://www.bioconductor.org/packages/"
7967 "release/data/annotation/src/contrib/GO.db_"
7968 version ".tar.gz"))
7969 (sha256
7970 (base32
7971 "0i3wcf5h3n0dawzc1hy0kv74f06j80c47n4p3g3fmrcxlhi3jpa5"))))
7972 (properties
7973 `((upstream-name . "GO.db")))
7974 (build-system r-build-system)
7975 (propagated-inputs
7976 `(("r-annotationdbi" ,r-annotationdbi)))
7977 (home-page "https://bioconductor.org/packages/GO.db")
7978 (synopsis "Annotation maps describing the entire Gene Ontology")
7979 (description
7980 "The purpose of this GO.db annotation package is to provide detailed
7981 information about the latest version of the Gene Ontologies.")
7982 (license license:artistic2.0)))
7983
7984 (define-public r-topgo
7985 (package
7986 (name "r-topgo")
7987 (version "2.36.0")
7988 (source (origin
7989 (method url-fetch)
7990 (uri (bioconductor-uri "topGO" version))
7991 (sha256
7992 (base32
7993 "09z42jwz5vh289ijz3x68zv5vmgkgcbhlp73vvmna1gld5lh5kz1"))))
7994 (properties
7995 `((upstream-name . "topGO")))
7996 (build-system r-build-system)
7997 (propagated-inputs
7998 `(("r-annotationdbi" ,r-annotationdbi)
7999 ("r-dbi" ,r-dbi)
8000 ("r-biobase" ,r-biobase)
8001 ("r-biocgenerics" ,r-biocgenerics)
8002 ("r-go-db" ,r-go-db)
8003 ("r-graph" ,r-graph)
8004 ("r-lattice" ,r-lattice)
8005 ("r-matrixstats" ,r-matrixstats)
8006 ("r-sparsem" ,r-sparsem)))
8007 (home-page "https://bioconductor.org/packages/topGO")
8008 (synopsis "Enrichment analysis for gene ontology")
8009 (description
8010 "The topGO package provides tools for testing @dfn{gene ontology} (GO)
8011 terms while accounting for the topology of the GO graph. Different test
8012 statistics and different methods for eliminating local similarities and
8013 dependencies between GO terms can be implemented and applied.")
8014 ;; Any version of the LGPL applies.
8015 (license license:lgpl2.1+)))
8016
8017 (define-public r-bsgenome
8018 (package
8019 (name "r-bsgenome")
8020 (version "1.52.0")
8021 (source (origin
8022 (method url-fetch)
8023 (uri (bioconductor-uri "BSgenome" version))
8024 (sha256
8025 (base32
8026 "0zwx42s73hc1vhn0v82i67mcixdwwc6n6q5h5vpnhpxlm4qwgqzp"))))
8027 (properties
8028 `((upstream-name . "BSgenome")))
8029 (build-system r-build-system)
8030 (propagated-inputs
8031 `(("r-biocgenerics" ,r-biocgenerics)
8032 ("r-biostrings" ,r-biostrings)
8033 ("r-genomeinfodb" ,r-genomeinfodb)
8034 ("r-genomicranges" ,r-genomicranges)
8035 ("r-iranges" ,r-iranges)
8036 ("r-rsamtools" ,r-rsamtools)
8037 ("r-rtracklayer" ,r-rtracklayer)
8038 ("r-s4vectors" ,r-s4vectors)
8039 ("r-xvector" ,r-xvector)))
8040 (home-page "https://bioconductor.org/packages/BSgenome")
8041 (synopsis "Infrastructure for Biostrings-based genome data packages")
8042 (description
8043 "This package provides infrastructure shared by all Biostrings-based
8044 genome data packages and support for efficient SNP representation.")
8045 (license license:artistic2.0)))
8046
8047 (define-public r-impute
8048 (package
8049 (name "r-impute")
8050 (version "1.58.0")
8051 (source (origin
8052 (method url-fetch)
8053 (uri (bioconductor-uri "impute" version))
8054 (sha256
8055 (base32
8056 "144jb889979cv3il2zxqk724v3sj1wnzjm3lkspxcvk29dbb9q8j"))))
8057 (native-inputs
8058 `(("gfortran" ,gfortran)))
8059 (build-system r-build-system)
8060 (home-page "https://bioconductor.org/packages/impute")
8061 (synopsis "Imputation for microarray data")
8062 (description
8063 "This package provides a function to impute missing gene expression
8064 microarray data, using nearest neighbor averaging.")
8065 (license license:gpl2+)))
8066
8067 (define-public r-seqpattern
8068 (package
8069 (name "r-seqpattern")
8070 (version "1.16.0")
8071 (source (origin
8072 (method url-fetch)
8073 (uri (bioconductor-uri "seqPattern" version))
8074 (sha256
8075 (base32
8076 "1ljqscbmrmi5d4lzzvg2d86sqzch26yxw57d33qyid300wm60db2"))))
8077 (properties
8078 `((upstream-name . "seqPattern")))
8079 (build-system r-build-system)
8080 (propagated-inputs
8081 `(("r-biostrings" ,r-biostrings)
8082 ("r-genomicranges" ,r-genomicranges)
8083 ("r-iranges" ,r-iranges)
8084 ("r-kernsmooth" ,r-kernsmooth)
8085 ("r-plotrix" ,r-plotrix)))
8086 (home-page "https://bioconductor.org/packages/seqPattern")
8087 (synopsis "Visualising oligonucleotide patterns and motif occurrences")
8088 (description
8089 "This package provides tools to visualize oligonucleotide patterns and
8090 sequence motif occurrences across a large set of sequences centred at a common
8091 reference point and sorted by a user defined feature.")
8092 (license license:gpl3+)))
8093
8094 (define-public r-genomation
8095 (package
8096 (name "r-genomation")
8097 (version "1.16.0")
8098 (source (origin
8099 (method url-fetch)
8100 (uri (bioconductor-uri "genomation" version))
8101 (sha256
8102 (base32
8103 "06i711pwq9znd7plh0p25skxnnh5dyl61c33k9gma243wvlzmlkj"))))
8104 (build-system r-build-system)
8105 (propagated-inputs
8106 `(("r-biostrings" ,r-biostrings)
8107 ("r-bsgenome" ,r-bsgenome)
8108 ("r-data-table" ,r-data-table)
8109 ("r-genomeinfodb" ,r-genomeinfodb)
8110 ("r-genomicalignments" ,r-genomicalignments)
8111 ("r-genomicranges" ,r-genomicranges)
8112 ("r-ggplot2" ,r-ggplot2)
8113 ("r-gridbase" ,r-gridbase)
8114 ("r-impute" ,r-impute)
8115 ("r-iranges" ,r-iranges)
8116 ("r-matrixstats" ,r-matrixstats)
8117 ("r-plotrix" ,r-plotrix)
8118 ("r-plyr" ,r-plyr)
8119 ("r-rcpp" ,r-rcpp)
8120 ("r-readr" ,r-readr)
8121 ("r-reshape2" ,r-reshape2)
8122 ("r-rsamtools" ,r-rsamtools)
8123 ("r-rtracklayer" ,r-rtracklayer)
8124 ("r-runit" ,r-runit)
8125 ("r-s4vectors" ,r-s4vectors)
8126 ("r-seqpattern" ,r-seqpattern)))
8127 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
8128 (synopsis "Summary, annotation and visualization of genomic data")
8129 (description
8130 "This package provides a package for summary and annotation of genomic
8131 intervals. Users can visualize and quantify genomic intervals over
8132 pre-defined functional regions, such as promoters, exons, introns, etc. The
8133 genomic intervals represent regions with a defined chromosome position, which
8134 may be associated with a score, such as aligned reads from HT-seq experiments,
8135 TF binding sites, methylation scores, etc. The package can use any tabular
8136 genomic feature data as long as it has minimal information on the locations of
8137 genomic intervals. In addition, it can use BAM or BigWig files as input.")
8138 (license license:artistic2.0)))
8139
8140 (define-public r-genomationdata
8141 (package
8142 (name "r-genomationdata")
8143 (version "1.14.0")
8144 (source (origin
8145 (method url-fetch)
8146 ;; We cannot use bioconductor-uri here because this tarball is
8147 ;; located under "data/annotation/" instead of "bioc/".
8148 (uri (string-append "https://bioconductor.org/packages/"
8149 "release/data/experiment/src/contrib/"
8150 "genomationData_" version ".tar.gz"))
8151 (sha256
8152 (base32
8153 "10xyb8akjrhmak2i0mnv1agny2ipy364q9nlibyplpzc7vdb6bw7"))))
8154 (build-system r-build-system)
8155 ;; As this package provides little more than large data files, it doesn't
8156 ;; make sense to build substitutes.
8157 (arguments `(#:substitutable? #f))
8158 (native-inputs
8159 `(("r-knitr" ,r-knitr)))
8160 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
8161 (synopsis "Experimental data for use with the genomation package")
8162 (description
8163 "This package contains experimental genetic data for use with the
8164 genomation package. Included are Chip Seq, Methylation and Cage data,
8165 downloaded from Encode.")
8166 (license license:gpl3+)))
8167
8168 (define-public r-seqlogo
8169 (package
8170 (name "r-seqlogo")
8171 (version "1.50.0")
8172 (source
8173 (origin
8174 (method url-fetch)
8175 (uri (bioconductor-uri "seqLogo" version))
8176 (sha256
8177 (base32
8178 "1z63imr1a24nqijpvxaxlakykcsadfqyxl2b3vlllncxnjjvb52b"))))
8179 (properties `((upstream-name . "seqLogo")))
8180 (build-system r-build-system)
8181 (home-page "https://bioconductor.org/packages/seqLogo")
8182 (synopsis "Sequence logos for DNA sequence alignments")
8183 (description
8184 "seqLogo takes the position weight matrix of a DNA sequence motif and
8185 plots the corresponding sequence logo as introduced by Schneider and
8186 Stephens (1990).")
8187 (license license:lgpl2.0+)))
8188
8189 (define-public r-motifrg
8190 (package
8191 (name "r-motifrg")
8192 (version "1.28.0")
8193 (source
8194 (origin
8195 (method url-fetch)
8196 (uri (bioconductor-uri "motifRG" version))
8197 (sha256
8198 (base32
8199 "02c7fbjwdq7pk96bd2rn07l9r2hqy00s3hfpli5ybmwgvc9h9z4z"))))
8200 (properties `((upstream-name . "motifRG")))
8201 (build-system r-build-system)
8202 (propagated-inputs
8203 `(("r-biostrings" ,r-biostrings)
8204 ("r-bsgenome" ,r-bsgenome)
8205 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8206 ("r-iranges" ,r-iranges)
8207 ("r-seqlogo" ,r-seqlogo)
8208 ("r-xvector" ,r-xvector)))
8209 (home-page "https://bioconductor.org/packages/motifRG")
8210 (synopsis "Discover motifs in high throughput sequencing data")
8211 (description
8212 "This package provides tools for discriminative motif discovery in high
8213 throughput genetic sequencing data sets using regression methods.")
8214 (license license:artistic2.0)))
8215
8216 (define-public r-qtl
8217 (package
8218 (name "r-qtl")
8219 (version "1.44-9")
8220 (source
8221 (origin
8222 (method url-fetch)
8223 (uri (string-append "mirror://cran/src/contrib/qtl_"
8224 version ".tar.gz"))
8225 (sha256
8226 (base32
8227 "03lmvydln8b7666b6w46qbryhf83vsd11d4y2v95rfgvqgq66l1i"))))
8228 (build-system r-build-system)
8229 (home-page "http://rqtl.org/")
8230 (synopsis "R package for analyzing QTL experiments in genetics")
8231 (description "R/qtl is an extension library for the R statistics
8232 system. It is used to analyze experimental crosses for identifying
8233 genes contributing to variation in quantitative traits (so-called
8234 quantitative trait loci, QTLs).
8235
8236 Using a hidden Markov model, R/qtl allows to estimate genetic maps, to
8237 identify genotyping errors, and to perform single-QTL and two-QTL,
8238 two-dimensional genome scans.")
8239 (license license:gpl3)))
8240
8241 (define-public r-zlibbioc
8242 (package
8243 (name "r-zlibbioc")
8244 (version "1.30.0")
8245 (source (origin
8246 (method url-fetch)
8247 (uri (bioconductor-uri "zlibbioc" version))
8248 (sha256
8249 (base32
8250 "1h0a2ps2rfk9azzps7p23sxj5z1giv8gcx0ypzgyz7fkr4xi9z7k"))))
8251 (properties
8252 `((upstream-name . "zlibbioc")))
8253 (build-system r-build-system)
8254 (home-page "https://bioconductor.org/packages/zlibbioc")
8255 (synopsis "Provider for zlib-1.2.5 to R packages")
8256 (description "This package uses the source code of zlib-1.2.5 to create
8257 libraries for systems that do not have these available via other means.")
8258 (license license:artistic2.0)))
8259
8260 (define-public r-r4rna
8261 (package
8262 (name "r-r4rna")
8263 (version "0.1.4")
8264 (source
8265 (origin
8266 (method url-fetch)
8267 (uri (string-append "http://www.e-rna.org/r-chie/files/R4RNA_"
8268 version ".tar.gz"))
8269 (sha256
8270 (base32
8271 "1p0i78wh76jfgmn9jphbwwaz6yy6pipzfg08xs54cxavxg2j81p5"))))
8272 (build-system r-build-system)
8273 (propagated-inputs
8274 `(("r-optparse" ,r-optparse)
8275 ("r-rcolorbrewer" ,r-rcolorbrewer)))
8276 (home-page "http://www.e-rna.org/r-chie/index.cgi")
8277 (synopsis "Analysis framework for RNA secondary structure")
8278 (description
8279 "The R4RNA package aims to be a general framework for the analysis of RNA
8280 secondary structure and comparative analysis in R.")
8281 (license license:gpl3+)))
8282
8283 (define-public r-rhtslib
8284 (package
8285 (name "r-rhtslib")
8286 (version "1.16.2")
8287 (source
8288 (origin
8289 (method url-fetch)
8290 (uri (bioconductor-uri "Rhtslib" version))
8291 (sha256
8292 (base32
8293 "07qaqj2hypmrg40m3pci082bzar6wi10dh77r4a8x74dfppcwdzf"))))
8294 (properties `((upstream-name . "Rhtslib")))
8295 (build-system r-build-system)
8296 ;; Without this a temporary directory ends up in the Rhtslib.so binary,
8297 ;; which makes R abort the build.
8298 (arguments '(#:configure-flags '("--no-staged-install")))
8299 (propagated-inputs
8300 `(("r-zlibbioc" ,r-zlibbioc)))
8301 (inputs
8302 `(("zlib" ,zlib)))
8303 (native-inputs
8304 `(("pkg-config" ,pkg-config)))
8305 (home-page "https://github.com/nhayden/Rhtslib")
8306 (synopsis "High-throughput sequencing library as an R package")
8307 (description
8308 "This package provides the HTSlib C library for high-throughput
8309 nucleotide sequence analysis. The package is primarily useful to developers
8310 of other R packages who wish to make use of HTSlib.")
8311 (license license:lgpl2.0+)))
8312
8313 (define-public r-bamsignals
8314 (package
8315 (name "r-bamsignals")
8316 (version "1.16.0")
8317 (source
8318 (origin
8319 (method url-fetch)
8320 (uri (bioconductor-uri "bamsignals" version))
8321 (sha256
8322 (base32
8323 "15q1q51dwl9qxfkf10yppw4m194ba03nq9plsrbj8fqj00v4729i"))))
8324 (build-system r-build-system)
8325 (propagated-inputs
8326 `(("r-biocgenerics" ,r-biocgenerics)
8327 ("r-genomicranges" ,r-genomicranges)
8328 ("r-iranges" ,r-iranges)
8329 ("r-rcpp" ,r-rcpp)
8330 ("r-rhtslib" ,r-rhtslib)
8331 ("r-zlibbioc" ,r-zlibbioc)))
8332 (inputs
8333 `(("zlib" ,zlib)))
8334 (home-page "https://bioconductor.org/packages/bamsignals")
8335 (synopsis "Extract read count signals from bam files")
8336 (description
8337 "This package allows to efficiently obtain count vectors from indexed bam
8338 files. It counts the number of nucleotide sequence reads in given genomic
8339 ranges and it computes reads profiles and coverage profiles. It also handles
8340 paired-end data.")
8341 (license license:gpl2+)))
8342
8343 (define-public r-rcas
8344 (package
8345 (name "r-rcas")
8346 (version "1.10.1")
8347 (source (origin
8348 (method url-fetch)
8349 (uri (bioconductor-uri "RCAS" version))
8350 (sha256
8351 (base32
8352 "06z5zmdi34jblw37z6ff8hb6lvvi0chwr37acwqfn8d27ax9lakz"))))
8353 (properties `((upstream-name . "RCAS")))
8354 (build-system r-build-system)
8355 (propagated-inputs
8356 `(("r-annotationdbi" ,r-annotationdbi)
8357 ("r-biocgenerics" ,r-biocgenerics)
8358 ("r-biomart" ,r-biomart)
8359 ("r-biostrings" ,r-biostrings)
8360 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8361 ("r-cowplot" ,r-cowplot)
8362 ("r-data-table" ,r-data-table)
8363 ("r-dbi" ,r-dbi)
8364 ("r-dt" ,r-dt)
8365 ("r-genomation" ,r-genomation)
8366 ("r-genomeinfodb" ,r-genomeinfodb)
8367 ("r-genomicfeatures" ,r-genomicfeatures)
8368 ("r-genomicranges" ,r-genomicranges)
8369 ("r-ggplot2" ,r-ggplot2)
8370 ("r-ggseqlogo" ,r-ggseqlogo)
8371 ("r-knitr" ,r-knitr)
8372 ("r-motifrg" ,r-motifrg)
8373 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
8374 ("r-pbapply" ,r-pbapply)
8375 ("r-pheatmap" ,r-pheatmap)
8376 ("r-plotly" ,r-plotly)
8377 ("r-plotrix" ,r-plotrix)
8378 ("r-proxy" ,r-proxy)
8379 ("r-rsqlite" ,r-rsqlite)
8380 ("r-rtracklayer" ,r-rtracklayer)
8381 ("r-rmarkdown" ,r-rmarkdown)
8382 ("r-s4vectors" ,r-s4vectors)
8383 ("r-topgo" ,r-topgo)
8384 ("pandoc" ,ghc-pandoc)))
8385 (synopsis "RNA-centric annotation system")
8386 (description
8387 "RCAS aims to be a standalone RNA-centric annotation system that provides
8388 intuitive reports and publication-ready graphics. This package provides the R
8389 library implementing most of the pipeline's features.")
8390 (home-page "https://github.com/BIMSBbioinfo/RCAS")
8391 (license license:artistic2.0)))
8392
8393 (define-public rcas-web
8394 (package
8395 (name "rcas-web")
8396 (version "0.1.0")
8397 (source
8398 (origin
8399 (method url-fetch)
8400 (uri (string-append "https://github.com/BIMSBbioinfo/rcas-web/"
8401 "releases/download/v" version
8402 "/rcas-web-" version ".tar.gz"))
8403 (sha256
8404 (base32
8405 "0wq951aj45gqki1bickg876i993lmawkp8x24agg264br5x716db"))))
8406 (build-system gnu-build-system)
8407 (arguments
8408 `(#:phases
8409 (modify-phases %standard-phases
8410 (add-before 'configure 'find-RCAS
8411 ;; The configure script can't find non-1.3.x versions of RCAS because
8412 ;; its R expression ‘1.10.1 >= 1.3.4’ evaluates to false.
8413 (lambda _
8414 (substitute* "configure"
8415 (("1\\.3\\.4") "0.0.0"))
8416 #t))
8417 (add-after 'install 'wrap-executable
8418 (lambda* (#:key inputs outputs #:allow-other-keys)
8419 (let* ((out (assoc-ref outputs "out"))
8420 (json (assoc-ref inputs "guile-json"))
8421 (redis (assoc-ref inputs "guile-redis"))
8422 (path (string-append
8423 json "/share/guile/site/2.2:"
8424 redis "/share/guile/site/2.2")))
8425 (wrap-program (string-append out "/bin/rcas-web")
8426 `("GUILE_LOAD_PATH" ":" = (,path))
8427 `("GUILE_LOAD_COMPILED_PATH" ":" = (,path))
8428 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
8429 #t)))))
8430 (inputs
8431 `(("r-minimal" ,r-minimal)
8432 ("r-rcas" ,r-rcas)
8433 ("guile-next" ,guile-2.2)
8434 ("guile-json" ,guile-json-1)
8435 ("guile-redis" ,guile-redis)))
8436 (native-inputs
8437 `(("pkg-config" ,pkg-config)))
8438 (home-page "https://github.com/BIMSBbioinfo/rcas-web")
8439 (synopsis "Web interface for RNA-centric annotation system (RCAS)")
8440 (description "This package provides a simple web interface for the
8441 @dfn{RNA-centric annotation system} (RCAS).")
8442 (license license:agpl3+)))
8443
8444 (define-public r-mutationalpatterns
8445 (package
8446 (name "r-mutationalpatterns")
8447 (version "1.10.0")
8448 (source
8449 (origin
8450 (method url-fetch)
8451 (uri (bioconductor-uri "MutationalPatterns" version))
8452 (sha256
8453 (base32
8454 "1k3r06xj1nim1s8as1i7fykfa6fbb4x456kslbzdvbf83ppx34z3"))))
8455 (build-system r-build-system)
8456 (propagated-inputs
8457 `(("r-biocgenerics" ,r-biocgenerics)
8458 ("r-biostrings" ,r-biostrings)
8459 ;; These two packages are suggested packages
8460 ("r-bsgenome-hsapiens-1000g" ,r-bsgenome-hsapiens-1000genomes-hs37d5)
8461 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8462 ("r-genomicranges" ,r-genomicranges)
8463 ("r-genomeinfodb" ,r-genomeinfodb)
8464 ("r-ggplot2" ,r-ggplot2)
8465 ("r-iranges" ,r-iranges)
8466 ("r-nmf" ,r-nmf)
8467 ("r-plyr" ,r-plyr)
8468 ("r-pracma" ,r-pracma)
8469 ("r-reshape2" ,r-reshape2)
8470 ("r-cowplot" ,r-cowplot)
8471 ("r-ggdendro" ,r-ggdendro)
8472 ("r-s4vectors" ,r-s4vectors)
8473 ("r-summarizedexperiment" ,r-summarizedexperiment)
8474 ("r-variantannotation" ,r-variantannotation)))
8475 (home-page "https://bioconductor.org/packages/MutationalPatterns/")
8476 (synopsis "Extract and visualize mutational patterns in genomic data")
8477 (description "This package provides an extensive toolset for the
8478 characterization and visualization of a wide range of mutational patterns
8479 in SNV base substitution data.")
8480 (license license:expat)))
8481
8482 (define-public r-chipkernels
8483 (let ((commit "c9cfcacb626b1221094fb3490ea7bac0fd625372")
8484 (revision "1"))
8485 (package
8486 (name "r-chipkernels")
8487 (version (string-append "1.1-" revision "." (string-take commit 9)))
8488 (source
8489 (origin
8490 (method git-fetch)
8491 (uri (git-reference
8492 (url "https://github.com/ManuSetty/ChIPKernels.git")
8493 (commit commit)))
8494 (file-name (string-append name "-" version))
8495 (sha256
8496 (base32
8497 "14bj5qhjm1hsm9ay561nfbqi9wxsa7y487df2idsaaf6z10nw4v0"))))
8498 (build-system r-build-system)
8499 (propagated-inputs
8500 `(("r-iranges" ,r-iranges)
8501 ("r-xvector" ,r-xvector)
8502 ("r-biostrings" ,r-biostrings)
8503 ("r-bsgenome" ,r-bsgenome)
8504 ("r-gtools" ,r-gtools)
8505 ("r-genomicranges" ,r-genomicranges)
8506 ("r-sfsmisc" ,r-sfsmisc)
8507 ("r-kernlab" ,r-kernlab)
8508 ("r-s4vectors" ,r-s4vectors)
8509 ("r-biocgenerics" ,r-biocgenerics)))
8510 (home-page "https://github.com/ManuSetty/ChIPKernels")
8511 (synopsis "Build string kernels for DNA Sequence analysis")
8512 (description "ChIPKernels is an R package for building different string
8513 kernels used for DNA Sequence analysis. A dictionary of the desired kernel
8514 must be built and this dictionary can be used for determining kernels for DNA
8515 Sequences.")
8516 (license license:gpl2+))))
8517
8518 (define-public r-seqgl
8519 (package
8520 (name "r-seqgl")
8521 (version "1.1.4")
8522 (source
8523 (origin
8524 (method git-fetch)
8525 (uri (git-reference
8526 (url "https://github.com/ManuSetty/SeqGL.git")
8527 (commit version)))
8528 (file-name (git-file-name name version))
8529 (sha256
8530 (base32
8531 "1r6ywvhxl3ffv48lgj7sbd582mcc6dha3ksgc2qjlvjrnkbj3799"))))
8532 (build-system r-build-system)
8533 (propagated-inputs
8534 `(("r-biostrings" ,r-biostrings)
8535 ("r-chipkernels" ,r-chipkernels)
8536 ("r-genomicranges" ,r-genomicranges)
8537 ("r-spams" ,r-spams)
8538 ("r-wgcna" ,r-wgcna)
8539 ("r-fastcluster" ,r-fastcluster)))
8540 (home-page "https://github.com/ManuSetty/SeqGL")
8541 (synopsis "Group lasso for Dnase/ChIP-seq data")
8542 (description "SeqGL is a group lasso based algorithm to extract
8543 transcription factor sequence signals from ChIP, DNase and ATAC-seq profiles.
8544 This package presents a method which uses group lasso to discriminate between
8545 bound and non bound genomic regions to accurately identify transcription
8546 factors bound at the specific regions.")
8547 (license license:gpl2+)))
8548
8549 (define-public r-tximport
8550 (package
8551 (name "r-tximport")
8552 (version "1.12.3")
8553 (source (origin
8554 (method url-fetch)
8555 (uri (bioconductor-uri "tximport" version))
8556 (sha256
8557 (base32
8558 "070nx0blvvfhsnkbb5j899wy7dgalrh4xfcciir9l2xl67lna1zf"))))
8559 (build-system r-build-system)
8560 (home-page "https://bioconductor.org/packages/tximport")
8561 (synopsis "Import and summarize transcript-level estimates for gene-level analysis")
8562 (description
8563 "This package provides tools to import transcript-level abundance,
8564 estimated counts and transcript lengths, and to summarize them into matrices
8565 for use with downstream gene-level analysis packages. Average transcript
8566 length, weighted by sample-specific transcript abundance estimates, is
8567 provided as a matrix which can be used as an offset for different expression
8568 of gene-level counts.")
8569 (license license:gpl2+)))
8570
8571 (define-public r-rhdf5
8572 (package
8573 (name "r-rhdf5")
8574 (version "2.28.0")
8575 (source (origin
8576 (method url-fetch)
8577 (uri (bioconductor-uri "rhdf5" version))
8578 (sha256
8579 (base32
8580 "0y1w3cs7wg2b3jlkd6wyyz6626xg011nrg36si8gg371iqck9a1i"))))
8581 (build-system r-build-system)
8582 (propagated-inputs
8583 `(("r-rhdf5lib" ,r-rhdf5lib)))
8584 (inputs
8585 `(("zlib" ,zlib)))
8586 (home-page "https://bioconductor.org/packages/rhdf5")
8587 (synopsis "HDF5 interface to R")
8588 (description
8589 "This R/Bioconductor package provides an interface between HDF5 and R.
8590 HDF5's main features are the ability to store and access very large and/or
8591 complex datasets and a wide variety of metadata on mass storage (disk) through
8592 a completely portable file format. The rhdf5 package is thus suited for the
8593 exchange of large and/or complex datasets between R and other software
8594 package, and for letting R applications work on datasets that are larger than
8595 the available RAM.")
8596 (license license:artistic2.0)))
8597
8598 (define-public r-annotationfilter
8599 (package
8600 (name "r-annotationfilter")
8601 (version "1.8.0")
8602 (source (origin
8603 (method url-fetch)
8604 (uri (bioconductor-uri "AnnotationFilter" version))
8605 (sha256
8606 (base32
8607 "15qh4jwxxqsnb308nxzj99gckfk18rhp8g26q1xwgkr57zc5kcrx"))))
8608 (properties
8609 `((upstream-name . "AnnotationFilter")))
8610 (build-system r-build-system)
8611 (propagated-inputs
8612 `(("r-genomicranges" ,r-genomicranges)
8613 ("r-lazyeval" ,r-lazyeval)))
8614 (home-page "https://github.com/Bioconductor/AnnotationFilter")
8615 (synopsis "Facilities for filtering Bioconductor annotation resources")
8616 (description
8617 "This package provides classes and other infrastructure to implement
8618 filters for manipulating Bioconductor annotation resources. The filters are
8619 used by @code{ensembldb}, @code{Organism.dplyr}, and other packages.")
8620 (license license:artistic2.0)))
8621
8622 (define-public emboss
8623 (package
8624 (name "emboss")
8625 (version "6.5.7")
8626 (source (origin
8627 (method url-fetch)
8628 (uri (string-append "ftp://emboss.open-bio.org/pub/EMBOSS/old/"
8629 (version-major+minor version) ".0/"
8630 "EMBOSS-" version ".tar.gz"))
8631 (sha256
8632 (base32
8633 "0vsmz96gc411yj2iyzdrsmg4l2n1nhgmp7vrgzlxx3xixv9xbf0q"))))
8634 (build-system gnu-build-system)
8635 (arguments
8636 `(#:configure-flags
8637 (list (string-append "--with-hpdf="
8638 (assoc-ref %build-inputs "libharu")))
8639 #:phases
8640 (modify-phases %standard-phases
8641 (add-after 'unpack 'fix-checks
8642 (lambda _
8643 ;; The PNGDRIVER tests check for the presence of libgd, libpng
8644 ;; and zlib, but assume that they are all found at the same
8645 ;; prefix.
8646 (substitute* "configure.in"
8647 (("CHECK_PNGDRIVER")
8648 "LIBS=\"$LIBS -lgd -lpng -lz -lm\"
8649 AC_DEFINE([PLD_png], [1], [Define to 1 if PNG support is available])
8650 AM_CONDITIONAL(AMPNG, true)"))
8651 #t))
8652 (add-after 'fix-checks 'disable-update-check
8653 (lambda _
8654 ;; At build time there is no connection to the Internet, so
8655 ;; looking for updates will not work.
8656 (substitute* "Makefile.am"
8657 (("\\$\\(bindir\\)/embossupdate") ""))
8658 #t))
8659 (add-after 'disable-update-check 'autogen
8660 (lambda _ (invoke "autoreconf" "-vif") #t)))))
8661 (inputs
8662 `(("perl" ,perl)
8663 ("libpng" ,libpng)
8664 ("gd" ,gd)
8665 ("libx11" ,libx11)
8666 ("libharu" ,libharu)
8667 ("zlib" ,zlib)))
8668 (native-inputs
8669 `(("autoconf" ,autoconf)
8670 ("automake" ,automake)
8671 ("libtool" ,libtool)
8672 ("pkg-config" ,pkg-config)))
8673 (home-page "http://emboss.sourceforge.net")
8674 (synopsis "Molecular biology analysis suite")
8675 (description "EMBOSS is the \"European Molecular Biology Open Software
8676 Suite\". EMBOSS is an analysis package specially developed for the needs of
8677 the molecular biology (e.g. EMBnet) user community. The software
8678 automatically copes with data in a variety of formats and even allows
8679 transparent retrieval of sequence data from the web. It also provides a
8680 number of libraries for the development of software in the field of molecular
8681 biology. EMBOSS also integrates a range of currently available packages and
8682 tools for sequence analysis into a seamless whole.")
8683 (license license:gpl2+)))
8684
8685 (define-public bits
8686 (let ((revision "1")
8687 (commit "3cc4567896d9d6442923da944beb704750a08d2d"))
8688 (package
8689 (name "bits")
8690 ;; The version is 2.13.0 even though no release archives have been
8691 ;; published as yet.
8692 (version (string-append "2.13.0-" revision "." (string-take commit 9)))
8693 (source (origin
8694 (method git-fetch)
8695 (uri (git-reference
8696 (url "https://github.com/arq5x/bits.git")
8697 (commit commit)))
8698 (file-name (string-append name "-" version "-checkout"))
8699 (sha256
8700 (base32
8701 "17n2kffk4kmhivd8c98g2vr6y1s23vbg4sxlxs689wni66797hbs"))))
8702 (build-system gnu-build-system)
8703 (arguments
8704 `(#:tests? #f ;no tests included
8705 #:phases
8706 (modify-phases %standard-phases
8707 (delete 'configure)
8708 (add-after 'unpack 'remove-cuda
8709 (lambda _
8710 (substitute* "Makefile"
8711 ((".*_cuda") "")
8712 (("(bits_test_intersections) \\\\" _ match) match))
8713 #t))
8714 (replace 'install
8715 (lambda* (#:key outputs #:allow-other-keys)
8716 (copy-recursively
8717 "bin" (string-append (assoc-ref outputs "out") "/bin"))
8718 #t)))))
8719 (inputs
8720 `(("gsl" ,gsl)
8721 ("zlib" ,zlib)))
8722 (home-page "https://github.com/arq5x/bits")
8723 (synopsis "Implementation of binary interval search algorithm")
8724 (description "This package provides an implementation of the
8725 BITS (Binary Interval Search) algorithm, an approach to interval set
8726 intersection. It is especially suited for the comparison of diverse genomic
8727 datasets and the exploration of large datasets of genome
8728 intervals (e.g. genes, sequence alignments).")
8729 (license license:gpl2))))
8730
8731 (define-public piranha
8732 ;; There is no release tarball for the latest version. The latest commit is
8733 ;; older than one year at the time of this writing.
8734 (let ((revision "1")
8735 (commit "0466d364b71117d01e4471b74c514436cc281233"))
8736 (package
8737 (name "piranha")
8738 (version (string-append "1.2.1-" revision "." (string-take commit 9)))
8739 (source (origin
8740 (method git-fetch)
8741 (uri (git-reference
8742 (url "https://github.com/smithlabcode/piranha.git")
8743 (commit commit)))
8744 (file-name (git-file-name name version))
8745 (sha256
8746 (base32
8747 "117dc0zf20c61jam69sk4abl57ah6yi6i7qra7d7y5zrbgk12q5n"))))
8748 (build-system gnu-build-system)
8749 (arguments
8750 `(#:test-target "test"
8751 #:phases
8752 (modify-phases %standard-phases
8753 (add-after 'unpack 'copy-smithlab-cpp
8754 (lambda* (#:key inputs #:allow-other-keys)
8755 (for-each (lambda (file)
8756 (install-file file "./src/smithlab_cpp/"))
8757 (find-files (assoc-ref inputs "smithlab-cpp")))
8758 #t))
8759 (add-after 'install 'install-to-store
8760 (lambda* (#:key outputs #:allow-other-keys)
8761 (let* ((out (assoc-ref outputs "out"))
8762 (bin (string-append out "/bin")))
8763 (for-each (lambda (file)
8764 (install-file file bin))
8765 (find-files "bin" ".*")))
8766 #t)))
8767 #:configure-flags
8768 (list (string-append "--with-bam_tools_headers="
8769 (assoc-ref %build-inputs "bamtools") "/include/bamtools")
8770 (string-append "--with-bam_tools_library="
8771 (assoc-ref %build-inputs "bamtools") "/lib/bamtools"))))
8772 (inputs
8773 `(("bamtools" ,bamtools)
8774 ("samtools" ,samtools-0.1)
8775 ("gsl" ,gsl)
8776 ("smithlab-cpp"
8777 ,(let ((commit "3723e2db438c51501d0423429ff396c3035ba46a"))
8778 (origin
8779 (method git-fetch)
8780 (uri (git-reference
8781 (url "https://github.com/smithlabcode/smithlab_cpp.git")
8782 (commit commit)))
8783 (file-name (string-append "smithlab_cpp-" commit "-checkout"))
8784 (sha256
8785 (base32
8786 "0l4gvbwslw5ngziskja41c00x1r06l3yidv7y0xw9djibhykzy0g")))))))
8787 (native-inputs
8788 `(("python" ,python-2)))
8789 (home-page "https://github.com/smithlabcode/piranha")
8790 (synopsis "Peak-caller for CLIP-seq and RIP-seq data")
8791 (description
8792 "Piranha is a peak-caller for genomic data produced by CLIP-seq and
8793 RIP-seq experiments. It takes input in BED or BAM format and identifies
8794 regions of statistically significant read enrichment. Additional covariates
8795 may optionally be provided to further inform the peak-calling process.")
8796 (license license:gpl3+))))
8797
8798 (define-public pepr
8799 (package
8800 (name "pepr")
8801 (version "1.0.9")
8802 (source (origin
8803 (method url-fetch)
8804 (uri (pypi-uri "PePr" version))
8805 (sha256
8806 (base32
8807 "0qxjfdpl1b1y53nccws2d85f6k74zwmx8y8sd9rszcqhfayx6gdx"))))
8808 (build-system python-build-system)
8809 (arguments
8810 `(#:python ,python-2 ; python2 only
8811 #:tests? #f)) ; no tests included
8812 (propagated-inputs
8813 `(("python2-numpy" ,python2-numpy)
8814 ("python2-scipy" ,python2-scipy)
8815 ("python2-pysam" ,python2-pysam)))
8816 (home-page "https://github.com/shawnzhangyx/PePr")
8817 (synopsis "Peak-calling and prioritization pipeline for ChIP-Seq data")
8818 (description
8819 "PePr is a ChIP-Seq peak calling or differential binding analysis tool
8820 that is primarily designed for data with biological replicates. It uses a
8821 negative binomial distribution to model the read counts among the samples in
8822 the same group, and look for consistent differences between ChIP and control
8823 group or two ChIP groups run under different conditions.")
8824 (license license:gpl3+)))
8825
8826 (define-public filevercmp
8827 (let ((commit "1a9b779b93d0b244040274794d402106907b71b7"))
8828 (package
8829 (name "filevercmp")
8830 (version (string-append "0-1." (string-take commit 7)))
8831 (source (origin
8832 (method git-fetch)
8833 (uri (git-reference
8834 (url "https://github.com/ekg/filevercmp.git")
8835 (commit commit)))
8836 (file-name (git-file-name name commit))
8837 (sha256
8838 (base32
8839 "1j9vxsy0y050v59h0q1d6501fcw1kjvj0d18l1xk2zyg0jzj247c"))))
8840 (build-system gnu-build-system)
8841 (arguments
8842 `(#:tests? #f ; There are no tests to run.
8843 #:phases
8844 (modify-phases %standard-phases
8845 (delete 'configure) ; There is no configure phase.
8846 (replace 'install
8847 (lambda* (#:key outputs #:allow-other-keys)
8848 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
8849 (install-file "filevercmp" bin)
8850 #t))))))
8851 (home-page "https://github.com/ekg/filevercmp")
8852 (synopsis "This program compares version strings")
8853 (description "This program compares version strings. It intends to be a
8854 replacement for strverscmp.")
8855 (license license:gpl3+))))
8856
8857 (define-public multiqc
8858 (package
8859 (name "multiqc")
8860 (version "1.5")
8861 (source
8862 (origin
8863 (method url-fetch)
8864 (uri (pypi-uri "multiqc" version))
8865 (sha256
8866 (base32
8867 "02iihfl0w0hpnr4pa0sbd1y9qxrg3ycyhjp5lidkcrqh1lmzs3zy"))))
8868 (build-system python-build-system)
8869 (propagated-inputs
8870 `(("python-jinja2" ,python-jinja2)
8871 ("python-simplejson" ,python-simplejson)
8872 ("python-pyyaml" ,python-pyyaml)
8873 ("python-click" ,python-click)
8874 ("python-spectra" ,python-spectra)
8875 ("python-requests" ,python-requests)
8876 ("python-markdown" ,python-markdown)
8877 ("python-lzstring" ,python-lzstring)
8878 ("python-matplotlib" ,python-matplotlib)
8879 ("python-numpy" ,python-numpy)
8880 ;; MultQC checks for the presence of nose at runtime.
8881 ("python-nose" ,python-nose)))
8882 (arguments
8883 `(#:phases
8884 (modify-phases %standard-phases
8885 (add-after 'unpack 'relax-requirements
8886 (lambda _
8887 (substitute* "setup.py"
8888 ;; MultiQC 1.5 ‘requires’ a version of python-matplotlib older
8889 ;; than the one in Guix, but should work fine with 2.2.2.
8890 ;; See <https://github.com/ewels/MultiQC/issues/725> and
8891 ;; <https://github.com/ewels/MultiQC/issues/732> for details.
8892 (("['\"]matplotlib.*?['\"]")
8893 "'matplotlib'"))
8894 #t)))))
8895 (home-page "http://multiqc.info")
8896 (synopsis "Aggregate bioinformatics analysis reports")
8897 (description
8898 "MultiQC is a tool to aggregate bioinformatics results across many
8899 samples into a single report. It contains modules for a large number of
8900 common bioinformatics tools.")
8901 (license license:gpl3+)))
8902
8903 (define-public r-chipseq
8904 (package
8905 (name "r-chipseq")
8906 (version "1.34.0")
8907 (source
8908 (origin
8909 (method url-fetch)
8910 (uri (bioconductor-uri "chipseq" version))
8911 (sha256
8912 (base32
8913 "1835nhrxcaqpqf1kxrsk1js8bf7x33z1n3bqjvm8404091acqyma"))))
8914 (build-system r-build-system)
8915 (propagated-inputs
8916 `(("r-biocgenerics" ,r-biocgenerics)
8917 ("r-genomicranges" ,r-genomicranges)
8918 ("r-iranges" ,r-iranges)
8919 ("r-lattice" ,r-lattice)
8920 ("r-s4vectors" ,r-s4vectors)
8921 ("r-shortread" ,r-shortread)))
8922 (home-page "https://bioconductor.org/packages/chipseq")
8923 (synopsis "Package for analyzing ChIPseq data")
8924 (description
8925 "This package provides tools for processing short read data from ChIPseq
8926 experiments.")
8927 (license license:artistic2.0)))
8928
8929 (define-public r-copyhelper
8930 (package
8931 (name "r-copyhelper")
8932 (version "1.6.0")
8933 (source
8934 (origin
8935 (method url-fetch)
8936 (uri (string-append "https://bioconductor.org/packages/release/"
8937 "data/experiment/src/contrib/CopyhelpeR_"
8938 version ".tar.gz"))
8939 (sha256
8940 (base32
8941 "0x7cyynjmxls9as2gg0iyp9x5fpalxmdjq914ss7i84i9zyk5bhq"))))
8942 (properties `((upstream-name . "CopyhelpeR")))
8943 (build-system r-build-system)
8944 (home-page "https://bioconductor.org/packages/CopyhelpeR/")
8945 (synopsis "Helper files for CopywriteR")
8946 (description
8947 "This package contains the helper files that are required to run the
8948 Bioconductor package CopywriteR. It contains pre-assembled 1kb bin GC-content
8949 and mappability files for the reference genomes hg18, hg19, hg38, mm9 and
8950 mm10. In addition, it contains a blacklist filter to remove regions that
8951 display copy number variation. Files are stored as GRanges objects from the
8952 GenomicRanges Bioconductor package.")
8953 (license license:gpl2)))
8954
8955 (define-public r-copywriter
8956 (package
8957 (name "r-copywriter")
8958 (version "2.16.0")
8959 (source
8960 (origin
8961 (method url-fetch)
8962 (uri (bioconductor-uri "CopywriteR" version))
8963 (sha256
8964 (base32
8965 "0kv3k58wyyicq1hhq7bddh0v3b2ksz6fa47skvnp8f193csza9g6"))))
8966 (properties `((upstream-name . "CopywriteR")))
8967 (build-system r-build-system)
8968 (propagated-inputs
8969 `(("r-biocparallel" ,r-biocparallel)
8970 ("r-chipseq" ,r-chipseq)
8971 ("r-copyhelper" ,r-copyhelper)
8972 ("r-data-table" ,r-data-table)
8973 ("r-dnacopy" ,r-dnacopy)
8974 ("r-futile-logger" ,r-futile-logger)
8975 ("r-genomeinfodb" ,r-genomeinfodb)
8976 ("r-genomicalignments" ,r-genomicalignments)
8977 ("r-genomicranges" ,r-genomicranges)
8978 ("r-gtools" ,r-gtools)
8979 ("r-iranges" ,r-iranges)
8980 ("r-matrixstats" ,r-matrixstats)
8981 ("r-rsamtools" ,r-rsamtools)
8982 ("r-s4vectors" ,r-s4vectors)))
8983 (home-page "https://github.com/PeeperLab/CopywriteR")
8984 (synopsis "Copy number information from targeted sequencing")
8985 (description
8986 "CopywriteR extracts DNA copy number information from targeted sequencing
8987 by utilizing off-target reads. It allows for extracting uniformly distributed
8988 copy number information, can be used without reference, and can be applied to
8989 sequencing data obtained from various techniques including chromatin
8990 immunoprecipitation and target enrichment on small gene panels. Thereby,
8991 CopywriteR constitutes a widely applicable alternative to available copy
8992 number detection tools.")
8993 (license license:gpl2)))
8994
8995 (define-public r-methylkit
8996 (package
8997 (name "r-methylkit")
8998 (version "1.10.0")
8999 (source (origin
9000 (method url-fetch)
9001 (uri (bioconductor-uri "methylKit" version))
9002 (sha256
9003 (base32
9004 "1z687vpi5kwcqpnd6r74c5y72hcsbqlwg0bk95kksgpi81q710qj"))))
9005 (properties `((upstream-name . "methylKit")))
9006 (build-system r-build-system)
9007 (propagated-inputs
9008 `(("r-data-table" ,r-data-table)
9009 ("r-emdbook" ,r-emdbook)
9010 ("r-fastseg" ,r-fastseg)
9011 ("r-genomeinfodb" ,r-genomeinfodb)
9012 ("r-genomicranges" ,r-genomicranges)
9013 ("r-gtools" ,r-gtools)
9014 ("r-iranges" ,r-iranges)
9015 ("r-kernsmooth" ,r-kernsmooth)
9016 ("r-limma" ,r-limma)
9017 ("r-mclust" ,r-mclust)
9018 ("r-mgcv" ,r-mgcv)
9019 ("r-qvalue" ,r-qvalue)
9020 ("r-r-utils" ,r-r-utils)
9021 ("r-rcpp" ,r-rcpp)
9022 ("r-rhtslib" ,r-rhtslib)
9023 ("r-rsamtools" ,r-rsamtools)
9024 ("r-rtracklayer" ,r-rtracklayer)
9025 ("r-s4vectors" ,r-s4vectors)
9026 ("r-zlibbioc" ,r-zlibbioc)))
9027 (inputs
9028 `(("zlib" ,zlib)))
9029 (home-page "https://github.com/al2na/methylKit")
9030 (synopsis
9031 "DNA methylation analysis from high-throughput bisulfite sequencing results")
9032 (description
9033 "MethylKit is an R package for DNA methylation analysis and annotation
9034 from high-throughput bisulfite sequencing. The package is designed to deal
9035 with sequencing data from @dfn{Reduced representation bisulfite
9036 sequencing} (RRBS) and its variants, but also target-capture methods and whole
9037 genome bisulfite sequencing. It also has functions to analyze base-pair
9038 resolution 5hmC data from experimental protocols such as oxBS-Seq and
9039 TAB-Seq.")
9040 (license license:artistic2.0)))
9041
9042 (define-public r-sva
9043 (package
9044 (name "r-sva")
9045 (version "3.32.1")
9046 (source
9047 (origin
9048 (method url-fetch)
9049 (uri (bioconductor-uri "sva" version))
9050 (sha256
9051 (base32
9052 "0jj6klfha5v5qmx2sjblf1an6s2zqd7mmgsp7sfmh4k2jpqi3jm9"))))
9053 (build-system r-build-system)
9054 (propagated-inputs
9055 `(("r-genefilter" ,r-genefilter)
9056 ("r-mgcv" ,r-mgcv)
9057 ("r-biocparallel" ,r-biocparallel)
9058 ("r-matrixstats" ,r-matrixstats)
9059 ("r-limma" ,r-limma)))
9060 (home-page "https://bioconductor.org/packages/sva")
9061 (synopsis "Surrogate variable analysis")
9062 (description
9063 "This package contains functions for removing batch effects and other
9064 unwanted variation in high-throughput experiment. It also contains functions
9065 for identifying and building surrogate variables for high-dimensional data
9066 sets. Surrogate variables are covariates constructed directly from
9067 high-dimensional data like gene expression/RNA sequencing/methylation/brain
9068 imaging data that can be used in subsequent analyses to adjust for unknown,
9069 unmodeled, or latent sources of noise.")
9070 (license license:artistic2.0)))
9071
9072 (define-public r-seqminer
9073 (package
9074 (name "r-seqminer")
9075 (version "7.1")
9076 (source
9077 (origin
9078 (method url-fetch)
9079 (uri (cran-uri "seqminer" version))
9080 (sha256
9081 (base32
9082 "1jydcpkw4rwfp983j83kipvsvr10as9pb49zzn3c2v09k1gh3ymy"))))
9083 (build-system r-build-system)
9084 (inputs
9085 `(("zlib" ,zlib)))
9086 (home-page "http://seqminer.genomic.codes")
9087 (synopsis "Read nucleotide sequence data (VCF, BCF, and METAL formats)")
9088 (description
9089 "This package provides tools to integrate nucleotide sequencing
9090 data (variant call format, e.g. VCF or BCF) or meta-analysis results in R.")
9091 ;; Any version of the GPL is acceptable
9092 (license (list license:gpl2+ license:gpl3+))))
9093
9094 (define-public r-raremetals2
9095 (package
9096 (name "r-raremetals2")
9097 (version "0.1")
9098 (source
9099 (origin
9100 (method url-fetch)
9101 (uri (string-append "http://genome.sph.umich.edu/w/images/"
9102 "b/b7/RareMETALS2_" version ".tar.gz"))
9103 (sha256
9104 (base32
9105 "0z5ljcgvnm06ja9lm85a3cniq7slxcy37aqqkxrdidr79an5fs4s"))))
9106 (properties `((upstream-name . "RareMETALS2")))
9107 (build-system r-build-system)
9108 (propagated-inputs
9109 `(("r-seqminer" ,r-seqminer)
9110 ("r-mvtnorm" ,r-mvtnorm)
9111 ("r-mass" ,r-mass)
9112 ("r-compquadform" ,r-compquadform)
9113 ("r-getopt" ,r-getopt)))
9114 (home-page "http://genome.sph.umich.edu/wiki/RareMETALS2")
9115 (synopsis "Analyze gene-level association tests for binary trait")
9116 (description
9117 "The R package rareMETALS2 is an extension of the R package rareMETALS.
9118 It was designed to meta-analyze gene-level association tests for binary trait.
9119 While rareMETALS offers a near-complete solution for meta-analysis of
9120 gene-level tests for quantitative trait, it does not offer the optimal
9121 solution for binary trait. The package rareMETALS2 offers improved features
9122 for analyzing gene-level association tests in meta-analyses for binary
9123 trait.")
9124 (license license:gpl3)))
9125
9126 (define-public r-maldiquant
9127 (package
9128 (name "r-maldiquant")
9129 (version "1.19.3")
9130 (source
9131 (origin
9132 (method url-fetch)
9133 (uri (cran-uri "MALDIquant" version))
9134 (sha256
9135 (base32
9136 "0b7kdz3x4sdq413h1q09l1qhcvdnnwv6fqsqwllks1cd3xy34c57"))))
9137 (properties `((upstream-name . "MALDIquant")))
9138 (build-system r-build-system)
9139 (home-page "https://cran.r-project.org/web/packages/MALDIquant")
9140 (synopsis "Quantitative analysis of mass spectrometry data")
9141 (description
9142 "This package provides a complete analysis pipeline for matrix-assisted
9143 laser desorption/ionization-time-of-flight (MALDI-TOF) and other
9144 two-dimensional mass spectrometry data. In addition to commonly used plotting
9145 and processing methods it includes distinctive features, namely baseline
9146 subtraction methods such as morphological filters (TopHat) or the
9147 statistics-sensitive non-linear iterative peak-clipping algorithm (SNIP), peak
9148 alignment using warping functions, handling of replicated measurements as well
9149 as allowing spectra with different resolutions.")
9150 (license license:gpl3+)))
9151
9152 (define-public r-protgenerics
9153 (package
9154 (name "r-protgenerics")
9155 (version "1.16.0")
9156 (source
9157 (origin
9158 (method url-fetch)
9159 (uri (bioconductor-uri "ProtGenerics" version))
9160 (sha256
9161 (base32
9162 "12jjwmg58b4xbivxlw4pffq0qfi2c1c5hyrci0sfyphrc99fvx0i"))))
9163 (properties `((upstream-name . "ProtGenerics")))
9164 (build-system r-build-system)
9165 (home-page "https://github.com/lgatto/ProtGenerics")
9166 (synopsis "S4 generic functions for proteomics infrastructure")
9167 (description
9168 "This package provides S4 generic functions needed by Bioconductor
9169 proteomics packages.")
9170 (license license:artistic2.0)))
9171
9172 (define-public r-mzr
9173 (package
9174 (name "r-mzr")
9175 (version "2.18.1")
9176 (source
9177 (origin
9178 (method url-fetch)
9179 (uri (bioconductor-uri "mzR" version))
9180 (sha256
9181 (base32
9182 "1pr1pcrg3r3pccm5ag6l8ic6rpqbk9jnlb9mm7g4ak5jwrajbzjq"))
9183 (modules '((guix build utils)))
9184 (snippet
9185 '(begin
9186 (delete-file-recursively "src/boost")
9187 #t))))
9188 (properties `((upstream-name . "mzR")))
9189 (build-system r-build-system)
9190 (arguments
9191 `(#:phases
9192 (modify-phases %standard-phases
9193 (add-after 'unpack 'use-system-boost
9194 (lambda _
9195 (substitute* "src/Makevars"
9196 (("\\./boost/libs.*") "")
9197 (("ARCH_OBJS=" line)
9198 (string-append line
9199 "\nARCH_LIBS=-lboost_system -lboost_regex \
9200 -lboost_iostreams -lboost_thread -lboost_filesystem -lboost_chrono\n")))
9201 #t)))))
9202 (inputs
9203 `(;; Our default boost package won't work here, unfortunately, even with
9204 ;; mzR version 2.18.1.
9205 ("boost" ,boost-for-mysql) ; use this instead of the bundled boost sources
9206 ("zlib" ,zlib)))
9207 (propagated-inputs
9208 `(("r-biobase" ,r-biobase)
9209 ("r-biocgenerics" ,r-biocgenerics)
9210 ("r-ncdf4" ,r-ncdf4)
9211 ("r-protgenerics" ,r-protgenerics)
9212 ("r-rcpp" ,r-rcpp)
9213 ("r-rhdf5lib" ,r-rhdf5lib)
9214 ("r-zlibbioc" ,r-zlibbioc)))
9215 (home-page "https://github.com/sneumann/mzR/")
9216 (synopsis "Parser for mass spectrometry data files")
9217 (description
9218 "The mzR package provides a unified API to the common file formats and
9219 parsers available for mass spectrometry data. It comes with a wrapper for the
9220 ISB random access parser for mass spectrometry mzXML, mzData and mzML files.
9221 The package contains the original code written by the ISB, and a subset of the
9222 proteowizard library for mzML and mzIdentML. The netCDF reading code has
9223 previously been used in XCMS.")
9224 (license license:artistic2.0)))
9225
9226 (define-public r-affyio
9227 (package
9228 (name "r-affyio")
9229 (version "1.54.0")
9230 (source
9231 (origin
9232 (method url-fetch)
9233 (uri (bioconductor-uri "affyio" version))
9234 (sha256
9235 (base32
9236 "1s78hm51fgac3i2j4bbdy0z6g14370154s6km8lldc9zpahx8b6p"))))
9237 (build-system r-build-system)
9238 (propagated-inputs
9239 `(("r-zlibbioc" ,r-zlibbioc)))
9240 (inputs
9241 `(("zlib" ,zlib)))
9242 (home-page "https://github.com/bmbolstad/affyio")
9243 (synopsis "Tools for parsing Affymetrix data files")
9244 (description
9245 "This package provides routines for parsing Affymetrix data files based
9246 upon file format information. The primary focus is on accessing the CEL and
9247 CDF file formats.")
9248 (license license:lgpl2.0+)))
9249
9250 (define-public r-affy
9251 (package
9252 (name "r-affy")
9253 (version "1.62.0")
9254 (source
9255 (origin
9256 (method url-fetch)
9257 (uri (bioconductor-uri "affy" version))
9258 (sha256
9259 (base32
9260 "05vz0vf3472s1ivfhc0gc8yz98y4rvvp7cf6kfbxhy1b23im1bgk"))))
9261 (build-system r-build-system)
9262 (propagated-inputs
9263 `(("r-affyio" ,r-affyio)
9264 ("r-biobase" ,r-biobase)
9265 ("r-biocgenerics" ,r-biocgenerics)
9266 ("r-biocmanager" ,r-biocmanager)
9267 ("r-preprocesscore" ,r-preprocesscore)
9268 ("r-zlibbioc" ,r-zlibbioc)))
9269 (inputs
9270 `(("zlib" ,zlib)))
9271 (home-page "https://bioconductor.org/packages/affy")
9272 (synopsis "Methods for affymetrix oligonucleotide arrays")
9273 (description
9274 "This package contains functions for exploratory oligonucleotide array
9275 analysis.")
9276 (license license:lgpl2.0+)))
9277
9278 (define-public r-vsn
9279 (package
9280 (name "r-vsn")
9281 (version "3.52.0")
9282 (source
9283 (origin
9284 (method url-fetch)
9285 (uri (bioconductor-uri "vsn" version))
9286 (sha256
9287 (base32
9288 "1vqmyxg06kgq9m3w6n0jykqm4jgsjw879r4s216wlcq4xc94dh1r"))))
9289 (build-system r-build-system)
9290 (propagated-inputs
9291 `(("r-affy" ,r-affy)
9292 ("r-biobase" ,r-biobase)
9293 ("r-ggplot2" ,r-ggplot2)
9294 ("r-lattice" ,r-lattice)
9295 ("r-limma" ,r-limma)))
9296 (home-page "https://bioconductor.org/packages/release/bioc/html/vsn.html")
9297 (synopsis "Variance stabilization and calibration for microarray data")
9298 (description
9299 "The package implements a method for normalising microarray intensities,
9300 and works for single- and multiple-color arrays. It can also be used for data
9301 from other technologies, as long as they have similar format. The method uses
9302 a robust variant of the maximum-likelihood estimator for an
9303 additive-multiplicative error model and affine calibration. The model
9304 incorporates data calibration step (a.k.a. normalization), a model for the
9305 dependence of the variance on the mean intensity and a variance stabilizing
9306 data transformation. Differences between transformed intensities are
9307 analogous to \"normalized log-ratios\". However, in contrast to the latter,
9308 their variance is independent of the mean, and they are usually more sensitive
9309 and specific in detecting differential transcription.")
9310 (license license:artistic2.0)))
9311
9312 (define-public r-mzid
9313 (package
9314 (name "r-mzid")
9315 (version "1.22.0")
9316 (source
9317 (origin
9318 (method url-fetch)
9319 (uri (bioconductor-uri "mzID" version))
9320 (sha256
9321 (base32
9322 "0vnyg7jlmy7ain7gmjwhqyqr664znrvrdlh7zd63563vhb87qarn"))))
9323 (properties `((upstream-name . "mzID")))
9324 (build-system r-build-system)
9325 (propagated-inputs
9326 `(("r-doparallel" ,r-doparallel)
9327 ("r-foreach" ,r-foreach)
9328 ("r-iterators" ,r-iterators)
9329 ("r-plyr" ,r-plyr)
9330 ("r-protgenerics" ,r-protgenerics)
9331 ("r-rcpp" ,r-rcpp)
9332 ("r-xml" ,r-xml)))
9333 (home-page "https://bioconductor.org/packages/mzID")
9334 (synopsis "Parser for mzIdentML files")
9335 (description
9336 "This package provides a parser for mzIdentML files implemented using the
9337 XML package. The parser tries to be general and able to handle all types of
9338 mzIdentML files with the drawback of having less pretty output than a vendor
9339 specific parser.")
9340 (license license:gpl2+)))
9341
9342 (define-public r-pcamethods
9343 (package
9344 (name "r-pcamethods")
9345 (version "1.76.0")
9346 (source
9347 (origin
9348 (method url-fetch)
9349 (uri (bioconductor-uri "pcaMethods" version))
9350 (sha256
9351 (base32
9352 "0svf4n7l0afy4wwgs6x8x4dm330r3311l5vmsxw2f0r4axkh3bzk"))))
9353 (properties `((upstream-name . "pcaMethods")))
9354 (build-system r-build-system)
9355 (propagated-inputs
9356 `(("r-biobase" ,r-biobase)
9357 ("r-biocgenerics" ,r-biocgenerics)
9358 ("r-mass" ,r-mass)
9359 ("r-rcpp" ,r-rcpp)))
9360 (home-page "https://github.com/hredestig/pcamethods")
9361 (synopsis "Collection of PCA methods")
9362 (description
9363 "This package provides Bayesian PCA, Probabilistic PCA, Nipals PCA,
9364 Inverse Non-Linear PCA and the conventional SVD PCA. A cluster based method
9365 for missing value estimation is included for comparison. BPCA, PPCA and
9366 NipalsPCA may be used to perform PCA on incomplete data as well as for
9367 accurate missing value estimation. A set of methods for printing and plotting
9368 the results is also provided. All PCA methods make use of the same data
9369 structure (pcaRes) to provide a common interface to the PCA results.")
9370 (license license:gpl3+)))
9371
9372 (define-public r-msnbase
9373 (package
9374 (name "r-msnbase")
9375 (version "2.10.1")
9376 (source
9377 (origin
9378 (method url-fetch)
9379 (uri (bioconductor-uri "MSnbase" version))
9380 (sha256
9381 (base32
9382 "0z63yqazkycq0zbbarq9ida6al35hv3g7g9g7s7bss4gh0hk7lhd"))))
9383 (properties `((upstream-name . "MSnbase")))
9384 (build-system r-build-system)
9385 (propagated-inputs
9386 `(("r-affy" ,r-affy)
9387 ("r-biobase" ,r-biobase)
9388 ("r-biocgenerics" ,r-biocgenerics)
9389 ("r-biocparallel" ,r-biocparallel)
9390 ("r-digest" ,r-digest)
9391 ("r-ggplot2" ,r-ggplot2)
9392 ("r-impute" ,r-impute)
9393 ("r-iranges" ,r-iranges)
9394 ("r-lattice" ,r-lattice)
9395 ("r-maldiquant" ,r-maldiquant)
9396 ("r-mass" ,r-mass)
9397 ("r-mzid" ,r-mzid)
9398 ("r-mzr" ,r-mzr)
9399 ("r-pcamethods" ,r-pcamethods)
9400 ("r-plyr" ,r-plyr)
9401 ("r-preprocesscore" ,r-preprocesscore)
9402 ("r-protgenerics" ,r-protgenerics)
9403 ("r-rcpp" ,r-rcpp)
9404 ("r-s4vectors" ,r-s4vectors)
9405 ("r-scales" ,r-scales)
9406 ("r-vsn" ,r-vsn)
9407 ("r-xml" ,r-xml)))
9408 (home-page "https://github.com/lgatto/MSnbase")
9409 (synopsis "Base functions and classes for MS-based proteomics")
9410 (description
9411 "This package provides basic plotting, data manipulation and processing
9412 of mass spectrometry based proteomics data.")
9413 (license license:artistic2.0)))
9414
9415 (define-public r-msnid
9416 (package
9417 (name "r-msnid")
9418 (version "1.18.1")
9419 (source
9420 (origin
9421 (method url-fetch)
9422 (uri (bioconductor-uri "MSnID" version))
9423 (sha256
9424 (base32
9425 "1n49l5mjdz7p4g2nwsbhm1jcj42sv6lsriq77n2imvacsvk0qfmb"))))
9426 (properties `((upstream-name . "MSnID")))
9427 (build-system r-build-system)
9428 (propagated-inputs
9429 `(("r-biobase" ,r-biobase)
9430 ("r-data-table" ,r-data-table)
9431 ("r-doparallel" ,r-doparallel)
9432 ("r-dplyr" ,r-dplyr)
9433 ("r-foreach" ,r-foreach)
9434 ("r-iterators" ,r-iterators)
9435 ("r-msnbase" ,r-msnbase)
9436 ("r-mzid" ,r-mzid)
9437 ("r-mzr" ,r-mzr)
9438 ("r-protgenerics" ,r-protgenerics)
9439 ("r-r-cache" ,r-r-cache)
9440 ("r-rcpp" ,r-rcpp)
9441 ("r-reshape2" ,r-reshape2)))
9442 (home-page "https://bioconductor.org/packages/MSnID")
9443 (synopsis "Utilities for LC-MSn proteomics identifications")
9444 (description
9445 "This package extracts @dfn{tandem mass spectrometry} (MS/MS) ID data
9446 from mzIdentML (leveraging the mzID package) or text files. After collating
9447 the search results from multiple datasets it assesses their identification
9448 quality and optimize filtering criteria to achieve the maximum number of
9449 identifications while not exceeding a specified false discovery rate. It also
9450 contains a number of utilities to explore the MS/MS results and assess missed
9451 and irregular enzymatic cleavages, mass measurement accuracy, etc.")
9452 (license license:artistic2.0)))
9453
9454 (define-public r-seurat
9455 (package
9456 (name "r-seurat")
9457 (version "3.1.1")
9458 (source (origin
9459 (method url-fetch)
9460 (uri (cran-uri "Seurat" version))
9461 (sha256
9462 (base32
9463 "084lr2fjdksshsmv1ww82bgn3a9mml7kswsidjrs89snabgvn360"))))
9464 (properties `((upstream-name . "Seurat")))
9465 (build-system r-build-system)
9466 (propagated-inputs
9467 `(("r-ape" ,r-ape)
9468 ("r-cluster" ,r-cluster)
9469 ("r-cowplot" ,r-cowplot)
9470 ("r-fitdistrplus" ,r-fitdistrplus)
9471 ("r-future" ,r-future)
9472 ("r-future-apply" ,r-future-apply)
9473 ("r-ggplot2" ,r-ggplot2)
9474 ("r-ggrepel" ,r-ggrepel)
9475 ("r-ggridges" ,r-ggridges)
9476 ("r-httr" ,r-httr)
9477 ("r-ica" ,r-ica)
9478 ("r-igraph" ,r-igraph)
9479 ("r-irlba" ,r-irlba)
9480 ("r-kernsmooth" ,r-kernsmooth)
9481 ("r-leiden" ,r-leiden)
9482 ("r-lmtest" ,r-lmtest)
9483 ("r-mass" ,r-mass)
9484 ("r-matrix" ,r-matrix)
9485 ("r-metap" ,r-metap)
9486 ("r-pbapply" ,r-pbapply)
9487 ("r-plotly" ,r-plotly)
9488 ("r-png" ,r-png)
9489 ("r-rann" ,r-rann)
9490 ("r-rcolorbrewer" ,r-rcolorbrewer)
9491 ("r-rcpp" ,r-rcpp)
9492 ("r-rcppannoy" ,r-rcppannoy)
9493 ("r-rcppeigen" ,r-rcppeigen)
9494 ("r-rcppprogress" ,r-rcppprogress)
9495 ("r-reticulate" ,r-reticulate)
9496 ("r-rlang" ,r-rlang)
9497 ("r-rocr" ,r-rocr)
9498 ("r-rsvd" ,r-rsvd)
9499 ("r-rtsne" ,r-rtsne)
9500 ("r-scales" ,r-scales)
9501 ("r-sctransform" ,r-sctransform)
9502 ("r-sdmtools" ,r-sdmtools)
9503 ("r-tsne" ,r-tsne)
9504 ("r-uwot" ,r-uwot)))
9505 (home-page "http://www.satijalab.org/seurat")
9506 (synopsis "Seurat is an R toolkit for single cell genomics")
9507 (description
9508 "This package is an R package designed for QC, analysis, and
9509 exploration of single cell RNA-seq data. It easily enables widely-used
9510 analytical techniques, including the identification of highly variable genes,
9511 dimensionality reduction; PCA, ICA, t-SNE, standard unsupervised clustering
9512 algorithms; density clustering, hierarchical clustering, k-means, and the
9513 discovery of differentially expressed genes and markers.")
9514 (license license:gpl3)))
9515
9516 (define-public r-aroma-light
9517 (package
9518 (name "r-aroma-light")
9519 (version "3.14.0")
9520 (source
9521 (origin
9522 (method url-fetch)
9523 (uri (bioconductor-uri "aroma.light" version))
9524 (sha256
9525 (base32
9526 "0a1prl4jhbqpa85i2vyia1ks9iippzl8np50fvm9wx8kbjxna5l6"))))
9527 (properties `((upstream-name . "aroma.light")))
9528 (build-system r-build-system)
9529 (propagated-inputs
9530 `(("r-matrixstats" ,r-matrixstats)
9531 ("r-r-methodss3" ,r-r-methodss3)
9532 ("r-r-oo" ,r-r-oo)
9533 ("r-r-utils" ,r-r-utils)))
9534 (home-page "https://github.com/HenrikBengtsson/aroma.light")
9535 (synopsis "Methods for normalization and visualization of microarray data")
9536 (description
9537 "This package provides methods for microarray analysis that take basic
9538 data types such as matrices and lists of vectors. These methods can be used
9539 standalone, be utilized in other packages, or be wrapped up in higher-level
9540 classes.")
9541 (license license:gpl2+)))
9542
9543 (define-public r-deseq
9544 (package
9545 (name "r-deseq")
9546 (version "1.36.0")
9547 (source
9548 (origin
9549 (method url-fetch)
9550 (uri (bioconductor-uri "DESeq" version))
9551 (sha256
9552 (base32
9553 "0jppqrikg9qfqcfw5qd3m5c7bag9g23bc0kcpk5zfkk1wv09mnlm"))))
9554 (properties `((upstream-name . "DESeq")))
9555 (build-system r-build-system)
9556 (propagated-inputs
9557 `(("r-biobase" ,r-biobase)
9558 ("r-biocgenerics" ,r-biocgenerics)
9559 ("r-genefilter" ,r-genefilter)
9560 ("r-geneplotter" ,r-geneplotter)
9561 ("r-lattice" ,r-lattice)
9562 ("r-locfit" ,r-locfit)
9563 ("r-mass" ,r-mass)
9564 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9565 (home-page "http://www-huber.embl.de/users/anders/DESeq")
9566 (synopsis "Differential gene expression analysis")
9567 (description
9568 "This package provides tools for estimating variance-mean dependence in
9569 count data from high-throughput genetic sequencing assays and for testing for
9570 differential expression based on a model using the negative binomial
9571 distribution.")
9572 (license license:gpl3+)))
9573
9574 (define-public r-edaseq
9575 (package
9576 (name "r-edaseq")
9577 (version "2.18.0")
9578 (source
9579 (origin
9580 (method url-fetch)
9581 (uri (bioconductor-uri "EDASeq" version))
9582 (sha256
9583 (base32
9584 "0mmc9bij17w4mfwcc566zbj5fvqgl8gfqs0qvj6ri4mbcql9jxb3"))))
9585 (properties `((upstream-name . "EDASeq")))
9586 (build-system r-build-system)
9587 (propagated-inputs
9588 `(("r-annotationdbi" ,r-annotationdbi)
9589 ("r-aroma-light" ,r-aroma-light)
9590 ("r-biobase" ,r-biobase)
9591 ("r-biocgenerics" ,r-biocgenerics)
9592 ("r-biocmanager" ,r-biocmanager)
9593 ("r-biomart" ,r-biomart)
9594 ("r-biostrings" ,r-biostrings)
9595 ("r-deseq" ,r-deseq)
9596 ("r-genomicfeatures" ,r-genomicfeatures)
9597 ("r-genomicranges" ,r-genomicranges)
9598 ("r-iranges" ,r-iranges)
9599 ("r-rsamtools" ,r-rsamtools)
9600 ("r-shortread" ,r-shortread)))
9601 (home-page "https://github.com/drisso/EDASeq")
9602 (synopsis "Exploratory data analysis and normalization for RNA-Seq")
9603 (description
9604 "This package provides support for numerical and graphical summaries of
9605 RNA-Seq genomic read data. Provided within-lane normalization procedures to
9606 adjust for GC-content effect (or other gene-level effects) on read counts:
9607 loess robust local regression, global-scaling, and full-quantile
9608 normalization. Between-lane normalization procedures to adjust for
9609 distributional differences between lanes (e.g., sequencing depth):
9610 global-scaling and full-quantile normalization.")
9611 (license license:artistic2.0)))
9612
9613 (define-public r-interactivedisplaybase
9614 (package
9615 (name "r-interactivedisplaybase")
9616 (version "1.22.0")
9617 (source
9618 (origin
9619 (method url-fetch)
9620 (uri (bioconductor-uri "interactiveDisplayBase" version))
9621 (sha256
9622 (base32
9623 "1kkyv7hkygacmksvld9gs3ycf6wlblqcwi11nny0hq3l0ha265v5"))))
9624 (properties
9625 `((upstream-name . "interactiveDisplayBase")))
9626 (build-system r-build-system)
9627 (propagated-inputs
9628 `(("r-biocgenerics" ,r-biocgenerics)
9629 ("r-shiny" ,r-shiny)))
9630 (home-page "https://bioconductor.org/packages/interactiveDisplayBase")
9631 (synopsis "Base package for web displays of Bioconductor objects")
9632 (description
9633 "This package contains the basic methods needed to generate interactive
9634 Shiny-based display methods for Bioconductor objects.")
9635 (license license:artistic2.0)))
9636
9637 (define-public r-annotationhub
9638 (package
9639 (name "r-annotationhub")
9640 (version "2.16.1")
9641 (source
9642 (origin
9643 (method url-fetch)
9644 (uri (bioconductor-uri "AnnotationHub" version))
9645 (sha256
9646 (base32
9647 "0c773cmhng907839f0bq161jky7362lxxny36ac55qxiz1giqi8j"))))
9648 (properties `((upstream-name . "AnnotationHub")))
9649 (build-system r-build-system)
9650 (propagated-inputs
9651 `(("r-annotationdbi" ,r-annotationdbi)
9652 ("r-biocfilecache" ,r-biocfilecache)
9653 ("r-biocgenerics" ,r-biocgenerics)
9654 ("r-biocmanager" ,r-biocmanager)
9655 ("r-curl" ,r-curl)
9656 ("r-dplyr" ,r-dplyr)
9657 ("r-httr" ,r-httr)
9658 ("r-interactivedisplaybase" ,r-interactivedisplaybase)
9659 ("r-rappdirs" ,r-rappdirs)
9660 ("r-rsqlite" ,r-rsqlite)
9661 ("r-s4vectors" ,r-s4vectors)
9662 ("r-yaml" ,r-yaml)))
9663 (home-page "https://bioconductor.org/packages/AnnotationHub")
9664 (synopsis "Client to access AnnotationHub resources")
9665 (description
9666 "This package provides a client for the Bioconductor AnnotationHub web
9667 resource. The AnnotationHub web resource provides a central location where
9668 genomic files (e.g. VCF, bed, wig) and other resources from standard
9669 locations (e.g. UCSC, Ensembl) can be discovered. The resource includes
9670 metadata about each resource, e.g., a textual description, tags, and date of
9671 modification. The client creates and manages a local cache of files retrieved
9672 by the user, helping with quick and reproducible access.")
9673 (license license:artistic2.0)))
9674
9675 (define-public r-fastseg
9676 (package
9677 (name "r-fastseg")
9678 (version "1.30.0")
9679 (source
9680 (origin
9681 (method url-fetch)
9682 (uri (bioconductor-uri "fastseg" version))
9683 (sha256
9684 (base32
9685 "03gggz29nf8kyy9clkifqr0xm8v0yb0kl0gjfb5c0vrjmwkfqvdf"))))
9686 (build-system r-build-system)
9687 (propagated-inputs
9688 `(("r-biobase" ,r-biobase)
9689 ("r-biocgenerics" ,r-biocgenerics)
9690 ("r-genomicranges" ,r-genomicranges)
9691 ("r-iranges" ,r-iranges)
9692 ("r-s4vectors" ,r-s4vectors)))
9693 (home-page "http://www.bioinf.jku.at/software/fastseg/index.html")
9694 (synopsis "Fast segmentation algorithm for genetic sequencing data")
9695 (description
9696 "Fastseg implements a very fast and efficient segmentation algorithm.
9697 It can segment data from DNA microarrays and data from next generation
9698 sequencing for example to detect copy number segments. Further it can segment
9699 data from RNA microarrays like tiling arrays to identify transcripts. Most
9700 generally, it can segment data given as a matrix or as a vector. Various data
9701 formats can be used as input to fastseg like expression set objects for
9702 microarrays or GRanges for sequencing data.")
9703 (license license:lgpl2.0+)))
9704
9705 (define-public r-keggrest
9706 (package
9707 (name "r-keggrest")
9708 (version "1.24.0")
9709 (source
9710 (origin
9711 (method url-fetch)
9712 (uri (bioconductor-uri "KEGGREST" version))
9713 (sha256
9714 (base32
9715 "1yjrpbm5zfg0h3nb5gg06q2f19ydbhjqwi0jb6q3p8dyrgww9mqp"))))
9716 (properties `((upstream-name . "KEGGREST")))
9717 (build-system r-build-system)
9718 (propagated-inputs
9719 `(("r-biostrings" ,r-biostrings)
9720 ("r-httr" ,r-httr)
9721 ("r-png" ,r-png)))
9722 (home-page "https://bioconductor.org/packages/KEGGREST")
9723 (synopsis "Client-side REST access to KEGG")
9724 (description
9725 "This package provides a package that provides a client interface to the
9726 @dfn{Kyoto Encyclopedia of Genes and Genomes} (KEGG) REST server.")
9727 (license license:artistic2.0)))
9728
9729 (define-public r-gage
9730 (package
9731 (name "r-gage")
9732 (version "2.34.0")
9733 (source
9734 (origin
9735 (method url-fetch)
9736 (uri (bioconductor-uri "gage" version))
9737 (sha256
9738 (base32
9739 "08d5yg7n4rx4xsginc8bx0sycpj06pi1k7i44ff757444p20srwq"))))
9740 (build-system r-build-system)
9741 (propagated-inputs
9742 `(("r-annotationdbi" ,r-annotationdbi)
9743 ("r-graph" ,r-graph)
9744 ("r-keggrest" ,r-keggrest)))
9745 (home-page "http://www.biomedcentral.com/1471-2105/10/161")
9746 (synopsis "Generally applicable gene-set enrichment for pathway analysis")
9747 (description
9748 "GAGE is a published method for gene set (enrichment or GSEA) or pathway
9749 analysis. GAGE is generally applicable independent of microarray or RNA-Seq
9750 data attributes including sample sizes, experimental designs, assay platforms,
9751 and other types of heterogeneity. The gage package provides functions for
9752 basic GAGE analysis, result processing and presentation. In addition, it
9753 provides demo microarray data and commonly used gene set data based on KEGG
9754 pathways and GO terms. These functions and data are also useful for gene set
9755 analysis using other methods.")
9756 (license license:gpl2+)))
9757
9758 (define-public r-genomicfiles
9759 (package
9760 (name "r-genomicfiles")
9761 (version "1.20.0")
9762 (source
9763 (origin
9764 (method url-fetch)
9765 (uri (bioconductor-uri "GenomicFiles" version))
9766 (sha256
9767 (base32
9768 "122g0yhpsm6fyvv38agp57clagl13h324rk06mlgb2xz104a1j4i"))))
9769 (properties `((upstream-name . "GenomicFiles")))
9770 (build-system r-build-system)
9771 (propagated-inputs
9772 `(("r-biocgenerics" ,r-biocgenerics)
9773 ("r-biocparallel" ,r-biocparallel)
9774 ("r-genomeinfodb" ,r-genomeinfodb)
9775 ("r-genomicalignments" ,r-genomicalignments)
9776 ("r-genomicranges" ,r-genomicranges)
9777 ("r-iranges" ,r-iranges)
9778 ("r-rsamtools" ,r-rsamtools)
9779 ("r-rtracklayer" ,r-rtracklayer)
9780 ("r-s4vectors" ,r-s4vectors)
9781 ("r-summarizedexperiment" ,r-summarizedexperiment)
9782 ("r-variantannotation" ,r-variantannotation)))
9783 (home-page "https://bioconductor.org/packages/GenomicFiles")
9784 (synopsis "Distributed computing by file or by range")
9785 (description
9786 "This package provides infrastructure for parallel computations
9787 distributed by file or by range. User defined mapper and reducer functions
9788 provide added flexibility for data combination and manipulation.")
9789 (license license:artistic2.0)))
9790
9791 (define-public r-complexheatmap
9792 (package
9793 (name "r-complexheatmap")
9794 (version "2.0.0")
9795 (source
9796 (origin
9797 (method url-fetch)
9798 (uri (bioconductor-uri "ComplexHeatmap" version))
9799 (sha256
9800 (base32
9801 "1imnb72r10csl2h12sckic7hcsb8v2z0y3dyw1ax2fpykmsmq776"))))
9802 (properties
9803 `((upstream-name . "ComplexHeatmap")))
9804 (build-system r-build-system)
9805 (propagated-inputs
9806 `(("r-circlize" ,r-circlize)
9807 ("r-clue" ,r-clue)
9808 ("r-colorspace" ,r-colorspace)
9809 ("r-getoptlong" ,r-getoptlong)
9810 ("r-globaloptions" ,r-globaloptions)
9811 ("r-png" ,r-png)
9812 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9813 (home-page
9814 "https://github.com/jokergoo/ComplexHeatmap")
9815 (synopsis "Making Complex Heatmaps")
9816 (description
9817 "Complex heatmaps are efficient to visualize associations between
9818 different sources of data sets and reveal potential structures. This package
9819 provides a highly flexible way to arrange multiple heatmaps and supports
9820 self-defined annotation graphics.")
9821 (license license:gpl2+)))
9822
9823 (define-public r-dirichletmultinomial
9824 (package
9825 (name "r-dirichletmultinomial")
9826 (version "1.26.0")
9827 (source
9828 (origin
9829 (method url-fetch)
9830 (uri (bioconductor-uri "DirichletMultinomial" version))
9831 (sha256
9832 (base32
9833 "0qirvhnbv4wd50ln4pqbk4dj6h2935ipf9p4sw1x62qqhwxidqk4"))))
9834 (properties
9835 `((upstream-name . "DirichletMultinomial")))
9836 (build-system r-build-system)
9837 (inputs
9838 `(("gsl" ,gsl)))
9839 (propagated-inputs
9840 `(("r-biocgenerics" ,r-biocgenerics)
9841 ("r-iranges" ,r-iranges)
9842 ("r-s4vectors" ,r-s4vectors)))
9843 (home-page "https://bioconductor.org/packages/DirichletMultinomial")
9844 (synopsis "Dirichlet-Multinomial mixture models for microbiome data")
9845 (description
9846 "Dirichlet-multinomial mixture models can be used to describe variability
9847 in microbial metagenomic data. This package is an interface to code
9848 originally made available by Holmes, Harris, and Quince, 2012, PLoS ONE 7(2):
9849 1-15.")
9850 (license license:lgpl3)))
9851
9852 (define-public r-ensembldb
9853 (package
9854 (name "r-ensembldb")
9855 (version "2.8.0")
9856 (source
9857 (origin
9858 (method url-fetch)
9859 (uri (bioconductor-uri "ensembldb" version))
9860 (sha256
9861 (base32
9862 "09s5g9xm9m8mqvzk6pkp9fyhx3zyb4p8yziz49mhfji5n35nydjr"))))
9863 (build-system r-build-system)
9864 (propagated-inputs
9865 `(("r-annotationdbi" ,r-annotationdbi)
9866 ("r-annotationfilter" ,r-annotationfilter)
9867 ("r-biobase" ,r-biobase)
9868 ("r-biocgenerics" ,r-biocgenerics)
9869 ("r-biostrings" ,r-biostrings)
9870 ("r-curl" ,r-curl)
9871 ("r-dbi" ,r-dbi)
9872 ("r-genomeinfodb" ,r-genomeinfodb)
9873 ("r-genomicfeatures" ,r-genomicfeatures)
9874 ("r-genomicranges" ,r-genomicranges)
9875 ("r-iranges" ,r-iranges)
9876 ("r-protgenerics" ,r-protgenerics)
9877 ("r-rsamtools" ,r-rsamtools)
9878 ("r-rsqlite" ,r-rsqlite)
9879 ("r-rtracklayer" ,r-rtracklayer)
9880 ("r-s4vectors" ,r-s4vectors)))
9881 (home-page "https://github.com/jotsetung/ensembldb")
9882 (synopsis "Utilities to create and use Ensembl-based annotation databases")
9883 (description
9884 "The package provides functions to create and use transcript-centric
9885 annotation databases/packages. The annotation for the databases are directly
9886 fetched from Ensembl using their Perl API. The functionality and data is
9887 similar to that of the TxDb packages from the @code{GenomicFeatures} package,
9888 but, in addition to retrieve all gene/transcript models and annotations from
9889 the database, the @code{ensembldb} package also provides a filter framework
9890 allowing to retrieve annotations for specific entries like genes encoded on a
9891 chromosome region or transcript models of lincRNA genes.")
9892 ;; No version specified
9893 (license license:lgpl3+)))
9894
9895 (define-public r-organismdbi
9896 (package
9897 (name "r-organismdbi")
9898 (version "1.26.0")
9899 (source
9900 (origin
9901 (method url-fetch)
9902 (uri (bioconductor-uri "OrganismDbi" version))
9903 (sha256
9904 (base32
9905 "14azk69pmwlhza0mhsxigsg127w3mgsx9hhrbdcdqmy3vzfbfaqq"))))
9906 (properties `((upstream-name . "OrganismDbi")))
9907 (build-system r-build-system)
9908 (propagated-inputs
9909 `(("r-annotationdbi" ,r-annotationdbi)
9910 ("r-biobase" ,r-biobase)
9911 ("r-biocgenerics" ,r-biocgenerics)
9912 ("r-biocmanager" ,r-biocmanager)
9913 ("r-dbi" ,r-dbi)
9914 ("r-genomicfeatures" ,r-genomicfeatures)
9915 ("r-genomicranges" ,r-genomicranges)
9916 ("r-graph" ,r-graph)
9917 ("r-iranges" ,r-iranges)
9918 ("r-rbgl" ,r-rbgl)
9919 ("r-s4vectors" ,r-s4vectors)))
9920 (home-page "https://bioconductor.org/packages/OrganismDbi")
9921 (synopsis "Software to enable the smooth interfacing of database packages")
9922 (description "The package enables a simple unified interface to several
9923 annotation packages each of which has its own schema by taking advantage of
9924 the fact that each of these packages implements a select methods.")
9925 (license license:artistic2.0)))
9926
9927 (define-public r-biovizbase
9928 (package
9929 (name "r-biovizbase")
9930 (version "1.32.0")
9931 (source
9932 (origin
9933 (method url-fetch)
9934 (uri (bioconductor-uri "biovizBase" version))
9935 (sha256
9936 (base32
9937 "1lba1801ak0a4vz6f8jffp9d525q27p0dhi2bp4f68mvdwwl2994"))))
9938 (properties `((upstream-name . "biovizBase")))
9939 (build-system r-build-system)
9940 (propagated-inputs
9941 `(("r-annotationdbi" ,r-annotationdbi)
9942 ("r-annotationfilter" ,r-annotationfilter)
9943 ("r-biocgenerics" ,r-biocgenerics)
9944 ("r-biostrings" ,r-biostrings)
9945 ("r-dichromat" ,r-dichromat)
9946 ("r-ensembldb" ,r-ensembldb)
9947 ("r-genomeinfodb" ,r-genomeinfodb)
9948 ("r-genomicalignments" ,r-genomicalignments)
9949 ("r-genomicfeatures" ,r-genomicfeatures)
9950 ("r-genomicranges" ,r-genomicranges)
9951 ("r-hmisc" ,r-hmisc)
9952 ("r-iranges" ,r-iranges)
9953 ("r-rcolorbrewer" ,r-rcolorbrewer)
9954 ("r-rlang" ,r-rlang)
9955 ("r-rsamtools" ,r-rsamtools)
9956 ("r-s4vectors" ,r-s4vectors)
9957 ("r-scales" ,r-scales)
9958 ("r-summarizedexperiment" ,r-summarizedexperiment)
9959 ("r-variantannotation" ,r-variantannotation)))
9960 (home-page "https://bioconductor.org/packages/biovizBase")
9961 (synopsis "Basic graphic utilities for visualization of genomic data")
9962 (description
9963 "The biovizBase package is designed to provide a set of utilities, color
9964 schemes and conventions for genomic data. It serves as the base for various
9965 high-level packages for biological data visualization. This saves development
9966 effort and encourages consistency.")
9967 (license license:artistic2.0)))
9968
9969 (define-public r-ggbio
9970 (package
9971 (name "r-ggbio")
9972 (version "1.32.0")
9973 (source
9974 (origin
9975 (method url-fetch)
9976 (uri (bioconductor-uri "ggbio" version))
9977 (sha256
9978 (base32
9979 "10s6hnffnrrsx3896adqdc5g55fzd5y6qhnp1mq0c641nw833rwd"))))
9980 (build-system r-build-system)
9981 (arguments
9982 `(#:phases
9983 (modify-phases %standard-phases
9984 ;; See https://github.com/tengfei/ggbio/issues/117
9985 ;; This fix will be included in the next release.
9986 (add-after 'unpack 'fix-typo
9987 (lambda _
9988 (substitute* "R/GGbio-class.R"
9989 (("fechable") "fetchable"))
9990 #t)))))
9991 (propagated-inputs
9992 `(("r-annotationdbi" ,r-annotationdbi)
9993 ("r-annotationfilter" ,r-annotationfilter)
9994 ("r-biobase" ,r-biobase)
9995 ("r-biocgenerics" ,r-biocgenerics)
9996 ("r-biostrings" ,r-biostrings)
9997 ("r-biovizbase" ,r-biovizbase)
9998 ("r-bsgenome" ,r-bsgenome)
9999 ("r-ensembldb" ,r-ensembldb)
10000 ("r-genomeinfodb" ,r-genomeinfodb)
10001 ("r-genomicalignments" ,r-genomicalignments)
10002 ("r-genomicfeatures" ,r-genomicfeatures)
10003 ("r-genomicranges" ,r-genomicranges)
10004 ("r-ggally" ,r-ggally)
10005 ("r-ggplot2" ,r-ggplot2)
10006 ("r-gridextra" ,r-gridextra)
10007 ("r-gtable" ,r-gtable)
10008 ("r-hmisc" ,r-hmisc)
10009 ("r-iranges" ,r-iranges)
10010 ("r-organismdbi" ,r-organismdbi)
10011 ("r-reshape2" ,r-reshape2)
10012 ("r-rlang" ,r-rlang)
10013 ("r-rsamtools" ,r-rsamtools)
10014 ("r-rtracklayer" ,r-rtracklayer)
10015 ("r-s4vectors" ,r-s4vectors)
10016 ("r-scales" ,r-scales)
10017 ("r-summarizedexperiment" ,r-summarizedexperiment)
10018 ("r-variantannotation" ,r-variantannotation)))
10019 (home-page "http://www.tengfei.name/ggbio/")
10020 (synopsis "Visualization tools for genomic data")
10021 (description
10022 "The ggbio package extends and specializes the grammar of graphics for
10023 biological data. The graphics are designed to answer common scientific
10024 questions, in particular those often asked of high throughput genomics data.
10025 All core Bioconductor data structures are supported, where appropriate. The
10026 package supports detailed views of particular genomic regions, as well as
10027 genome-wide overviews. Supported overviews include ideograms and grand linear
10028 views. High-level plots include sequence fragment length, edge-linked
10029 interval to data view, mismatch pileup, and several splicing summaries.")
10030 (license license:artistic2.0)))
10031
10032 (define-public r-gprofiler
10033 (package
10034 (name "r-gprofiler")
10035 (version "0.6.8")
10036 (source
10037 (origin
10038 (method url-fetch)
10039 (uri (cran-uri "gProfileR" version))
10040 (sha256
10041 (base32
10042 "05d6y6b7vkkzp2qhs1cwlvp02djij1b28dbwxnrms08f8qi35iaj"))))
10043 (properties `((upstream-name . "gProfileR")))
10044 (build-system r-build-system)
10045 (propagated-inputs
10046 `(("r-plyr" ,r-plyr)
10047 ("r-rcurl" ,r-rcurl)))
10048 (home-page "https://cran.r-project.org/web/packages/gProfileR/")
10049 (synopsis "Interface to the g:Profiler toolkit")
10050 (description
10051 "This package provides tools for functional enrichment analysis,
10052 gene identifier conversion and mapping homologous genes across related
10053 organisms via the @code{g:Profiler} toolkit.")
10054 (license license:gpl2+)))
10055
10056 (define-public r-gqtlbase
10057 (package
10058 (name "r-gqtlbase")
10059 (version "1.16.0")
10060 (source
10061 (origin
10062 (method url-fetch)
10063 (uri (bioconductor-uri "gQTLBase" version))
10064 (sha256
10065 (base32
10066 "1n2cizb88g2ankngvhxv377gizg80y3fhlx67sgm0z4ilm6a30ql"))))
10067 (properties `((upstream-name . "gQTLBase")))
10068 (build-system r-build-system)
10069 (propagated-inputs
10070 `(("r-batchjobs" ,r-batchjobs)
10071 ("r-bbmisc" ,r-bbmisc)
10072 ("r-biocgenerics" ,r-biocgenerics)
10073 ("r-bit" ,r-bit)
10074 ("r-doparallel" ,r-doparallel)
10075 ("r-ff" ,r-ff)
10076 ("r-ffbase" ,r-ffbase)
10077 ("r-foreach" ,r-foreach)
10078 ("r-genomicfiles" ,r-genomicfiles)
10079 ("r-genomicranges" ,r-genomicranges)
10080 ("r-rtracklayer" ,r-rtracklayer)
10081 ("r-s4vectors" ,r-s4vectors)
10082 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10083 (home-page "https://bioconductor.org/packages/gQTLBase")
10084 (synopsis "Infrastructure for eQTL, mQTL and similar studies")
10085 (description
10086 "The purpose of this package is to simplify the storage and interrogation
10087 of @dfn{quantitative trait loci} (QTL) archives, such as eQTL, mQTL, dsQTL,
10088 and more.")
10089 (license license:artistic2.0)))
10090
10091 (define-public r-snpstats
10092 (package
10093 (name "r-snpstats")
10094 (version "1.34.0")
10095 (source
10096 (origin
10097 (method url-fetch)
10098 (uri (bioconductor-uri "snpStats" version))
10099 (sha256
10100 (base32
10101 "0drfd24a5pkrhzmpidlh717bgh2dm68mpn6vj1vlpkilfbkifl34"))))
10102 (properties `((upstream-name . "snpStats")))
10103 (build-system r-build-system)
10104 (inputs `(("zlib" ,zlib)))
10105 (propagated-inputs
10106 `(("r-biocgenerics" ,r-biocgenerics)
10107 ("r-matrix" ,r-matrix)
10108 ("r-survival" ,r-survival)
10109 ("r-zlibbioc" ,r-zlibbioc)))
10110 (home-page "https://bioconductor.org/packages/snpStats")
10111 (synopsis "Methods for SNP association studies")
10112 (description
10113 "This package provides classes and statistical methods for large
10114 @dfn{single-nucleotide polymorphism} (SNP) association studies. This extends
10115 the earlier snpMatrix package, allowing for uncertainty in genotypes.")
10116 (license license:gpl3)))
10117
10118 (define-public r-homo-sapiens
10119 (package
10120 (name "r-homo-sapiens")
10121 (version "1.3.1")
10122 (source (origin
10123 (method url-fetch)
10124 ;; We cannot use bioconductor-uri here because this tarball is
10125 ;; located under "data/annotation/" instead of "bioc/".
10126 (uri (string-append "http://www.bioconductor.org/packages/"
10127 "release/data/annotation/src/contrib/"
10128 "Homo.sapiens_"
10129 version ".tar.gz"))
10130 (sha256
10131 (base32
10132 "151vj7h5p1c8yd5swrchk46z469p135wk50hvkl0nhgndvy0jj01"))))
10133 (properties
10134 `((upstream-name . "Homo.sapiens")))
10135 (build-system r-build-system)
10136 (propagated-inputs
10137 `(("r-genomicfeatures" ,r-genomicfeatures)
10138 ("r-go-db" ,r-go-db)
10139 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
10140 ("r-txdb-hsapiens-ucsc-hg19-knowngene" ,r-txdb-hsapiens-ucsc-hg19-knowngene)
10141 ("r-organismdbi" ,r-organismdbi)
10142 ("r-annotationdbi" ,r-annotationdbi)))
10143 (home-page "https://bioconductor.org/packages/Homo.sapiens/")
10144 (synopsis "Annotation package for the Homo.sapiens object")
10145 (description
10146 "This package contains the Homo.sapiens object to access data from
10147 several related annotation packages.")
10148 (license license:artistic2.0)))
10149
10150 (define-public r-erma
10151 (package
10152 (name "r-erma")
10153 (version "1.0.0")
10154 (source
10155 (origin
10156 (method url-fetch)
10157 (uri (bioconductor-uri "erma" version))
10158 (sha256
10159 (base32
10160 "0j7ggp63m5y88cxgi49vcql1s1avzifwvvd2hydj4lj3yrmzib48"))))
10161 (build-system r-build-system)
10162 (propagated-inputs
10163 `(("r-annotationdbi" ,r-annotationdbi)
10164 ("r-biobase" ,r-biobase)
10165 ("r-biocgenerics" ,r-biocgenerics)
10166 ("r-biocparallel" ,r-biocparallel)
10167 ("r-genomeinfodb" ,r-genomeinfodb)
10168 ("r-genomicfiles" ,r-genomicfiles)
10169 ("r-genomicranges" ,r-genomicranges)
10170 ("r-ggplot2" ,r-ggplot2)
10171 ("r-homo-sapiens" ,r-homo-sapiens)
10172 ("r-iranges" ,r-iranges)
10173 ("r-rtracklayer" ,r-rtracklayer)
10174 ("r-s4vectors" ,r-s4vectors)
10175 ("r-shiny" ,r-shiny)
10176 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10177 (home-page "https://bioconductor.org/packages/erma")
10178 (synopsis "Epigenomic road map adventures")
10179 (description
10180 "The epigenomics road map describes locations of epigenetic marks in DNA
10181 from a variety of cell types. Of interest are locations of histone
10182 modifications, sites of DNA methylation, and regions of accessible chromatin.
10183 This package presents a selection of elements of the road map including
10184 metadata and outputs of the ChromImpute procedure applied to ENCODE cell lines
10185 by Ernst and Kellis.")
10186 (license license:artistic2.0)))
10187
10188 (define-public r-ldblock
10189 (package
10190 (name "r-ldblock")
10191 (version "1.14.2")
10192 (source
10193 (origin
10194 (method url-fetch)
10195 (uri (bioconductor-uri "ldblock" version))
10196 (sha256
10197 (base32
10198 "0xx04cghx6ads1ackwnw3z0gf72qv461nznzmcnkgmp7w5n9m2af"))))
10199 (build-system r-build-system)
10200 (propagated-inputs
10201 `(("r-biocgenerics" ,r-biocgenerics)
10202 ("r-ensdb-hsapiens-v75" ,r-ensdb-hsapiens-v75)
10203 ("r-ensembldb" ,r-ensembldb)
10204 ("r-genomeinfodb" ,r-genomeinfodb)
10205 ("r-genomicfiles" ,r-genomicfiles)
10206 ("r-go-db" ,r-go-db)
10207 ("r-homo-sapiens" ,r-homo-sapiens)
10208 ("r-httr" ,r-httr)
10209 ("r-matrix" ,r-matrix)
10210 ("r-rsamtools" ,r-rsamtools)
10211 ("r-snpstats" ,r-snpstats)
10212 ("r-variantannotation" ,r-variantannotation)))
10213 (home-page "https://bioconductor.org/packages/ldblock")
10214 (synopsis "Data structures for linkage disequilibrium measures in populations")
10215 (description
10216 "This package defines data structures for @dfn{linkage
10217 disequilibrium} (LD) measures in populations. Its purpose is to simplify
10218 handling of existing population-level data for the purpose of flexibly
10219 defining LD blocks.")
10220 (license license:artistic2.0)))
10221
10222 (define-public r-gqtlstats
10223 (package
10224 (name "r-gqtlstats")
10225 (version "1.16.0")
10226 (source
10227 (origin
10228 (method url-fetch)
10229 (uri (bioconductor-uri "gQTLstats" version))
10230 (sha256
10231 (base32
10232 "17xadfn8qh1pwzlpcbds5wrjr9bzhsnmv90wffxmp02hq20qkrh5"))))
10233 (properties `((upstream-name . "gQTLstats")))
10234 (build-system r-build-system)
10235 (propagated-inputs
10236 `(("r-annotationdbi" ,r-annotationdbi)
10237 ("r-batchjobs" ,r-batchjobs)
10238 ("r-bbmisc" ,r-bbmisc)
10239 ("r-beeswarm" ,r-beeswarm)
10240 ("r-biobase" ,r-biobase)
10241 ("r-biocgenerics" ,r-biocgenerics)
10242 ("r-doparallel" ,r-doparallel)
10243 ("r-dplyr" ,r-dplyr)
10244 ("r-erma" ,r-erma)
10245 ("r-ffbase" ,r-ffbase)
10246 ("r-foreach" ,r-foreach)
10247 ("r-genomeinfodb" ,r-genomeinfodb)
10248 ("r-genomicfeatures" ,r-genomicfeatures)
10249 ("r-genomicfiles" ,r-genomicfiles)
10250 ("r-genomicranges" ,r-genomicranges)
10251 ("r-ggbeeswarm" ,r-ggbeeswarm)
10252 ("r-ggplot2" ,r-ggplot2)
10253 ("r-gqtlbase" ,r-gqtlbase)
10254 ("r-hardyweinberg" ,r-hardyweinberg)
10255 ("r-homo-sapiens" ,r-homo-sapiens)
10256 ("r-iranges" ,r-iranges)
10257 ("r-limma" ,r-limma)
10258 ("r-mgcv" ,r-mgcv)
10259 ("r-plotly" ,r-plotly)
10260 ("r-reshape2" ,r-reshape2)
10261 ("r-s4vectors" ,r-s4vectors)
10262 ("r-shiny" ,r-shiny)
10263 ("r-snpstats" ,r-snpstats)
10264 ("r-summarizedexperiment" ,r-summarizedexperiment)
10265 ("r-variantannotation" ,r-variantannotation)))
10266 (home-page "https://bioconductor.org/packages/gQTLstats")
10267 (synopsis "Computationally efficient analysis for eQTL and allied studies")
10268 (description
10269 "This package provides tools for the computationally efficient analysis
10270 of @dfn{quantitative trait loci} (QTL) data, including eQTL, mQTL, dsQTL, etc.
10271 The software in this package aims to support refinements and functional
10272 interpretation of members of a collection of association statistics on a
10273 family of feature/genome hypotheses.")
10274 (license license:artistic2.0)))
10275
10276 (define-public r-gviz
10277 (package
10278 (name "r-gviz")
10279 (version "1.28.3")
10280 (source
10281 (origin
10282 (method url-fetch)
10283 (uri (bioconductor-uri "Gviz" version))
10284 (sha256
10285 (base32
10286 "0347r1ly0vzpilflzbyzsjdf4cday294lw3fxzx61clblrmws1ki"))))
10287 (properties `((upstream-name . "Gviz")))
10288 (build-system r-build-system)
10289 (propagated-inputs
10290 `(("r-annotationdbi" ,r-annotationdbi)
10291 ("r-biobase" ,r-biobase)
10292 ("r-biocgenerics" ,r-biocgenerics)
10293 ("r-biomart" ,r-biomart)
10294 ("r-biostrings" ,r-biostrings)
10295 ("r-biovizbase" ,r-biovizbase)
10296 ("r-bsgenome" ,r-bsgenome)
10297 ("r-digest" ,r-digest)
10298 ("r-genomeinfodb" ,r-genomeinfodb)
10299 ("r-genomicalignments" ,r-genomicalignments)
10300 ("r-genomicfeatures" ,r-genomicfeatures)
10301 ("r-genomicranges" ,r-genomicranges)
10302 ("r-iranges" ,r-iranges)
10303 ("r-lattice" ,r-lattice)
10304 ("r-latticeextra" ,r-latticeextra)
10305 ("r-matrixstats" ,r-matrixstats)
10306 ("r-rcolorbrewer" ,r-rcolorbrewer)
10307 ("r-rsamtools" ,r-rsamtools)
10308 ("r-rtracklayer" ,r-rtracklayer)
10309 ("r-s4vectors" ,r-s4vectors)
10310 ("r-xvector" ,r-xvector)))
10311 (home-page "https://bioconductor.org/packages/Gviz")
10312 (synopsis "Plotting data and annotation information along genomic coordinates")
10313 (description
10314 "Genomic data analyses requires integrated visualization of known genomic
10315 information and new experimental data. Gviz uses the biomaRt and the
10316 rtracklayer packages to perform live annotation queries to Ensembl and UCSC
10317 and translates this to e.g. gene/transcript structures in viewports of the
10318 grid graphics package. This results in genomic information plotted together
10319 with your data.")
10320 (license license:artistic2.0)))
10321
10322 (define-public r-gwascat
10323 (package
10324 (name "r-gwascat")
10325 (version "2.16.0")
10326 (source
10327 (origin
10328 (method url-fetch)
10329 (uri (bioconductor-uri "gwascat" version))
10330 (sha256
10331 (base32
10332 "0akb36mrybmxbb1bc9kgxbnj3cdypfylj3yzrmhjwqxml03mg61i"))))
10333 (build-system r-build-system)
10334 (propagated-inputs
10335 `(("r-annotationdbi" ,r-annotationdbi)
10336 ("r-biocgenerics" ,r-biocgenerics)
10337 ("r-biostrings" ,r-biostrings)
10338 ("r-genomeinfodb" ,r-genomeinfodb)
10339 ("r-genomicfeatures" ,r-genomicfeatures)
10340 ("r-genomicranges" ,r-genomicranges)
10341 ("r-homo-sapiens" ,r-homo-sapiens)
10342 ("r-iranges" ,r-iranges)
10343 ("r-rsamtools" ,r-rsamtools)
10344 ("r-rtracklayer" ,r-rtracklayer)
10345 ("r-s4vectors" ,r-s4vectors)))
10346 (home-page "https://bioconductor.org/packages/gwascat")
10347 (synopsis "Tools for data in the EMBL-EBI GWAS catalog")
10348 (description
10349 "This package provides tools for representing and modeling data in the
10350 EMBL-EBI GWAS catalog.")
10351 (license license:artistic2.0)))
10352
10353 (define-public r-sushi
10354 (package
10355 (name "r-sushi")
10356 (version "1.22.0")
10357 (source (origin
10358 (method url-fetch)
10359 (uri (bioconductor-uri "Sushi" version))
10360 (sha256
10361 (base32
10362 "1hgh3jfcx0bh3fyvp85v7435hvsk3ah1hxx5117ss93v03iwjf1g"))))
10363 (properties `((upstream-name . "Sushi")))
10364 (build-system r-build-system)
10365 (propagated-inputs
10366 `(("r-biomart" ,r-biomart)
10367 ("r-zoo" ,r-zoo)))
10368 (home-page "https://bioconductor.org/packages/Sushi")
10369 (synopsis "Tools for visualizing genomics data")
10370 (description
10371 "This package provides flexible, quantitative, and integrative genomic
10372 visualizations for publication-quality multi-panel figures.")
10373 (license license:gpl2+)))
10374
10375 (define-public r-fithic
10376 (package
10377 (name "r-fithic")
10378 (version "1.10.0")
10379 (source (origin
10380 (method url-fetch)
10381 (uri (bioconductor-uri "FitHiC" version))
10382 (sha256
10383 (base32
10384 "1qrxy4v8vmykrk8y6g3bs5wh5xhbs6pxyydbxy3vnj2mjirnxr6d"))))
10385 (properties `((upstream-name . "FitHiC")))
10386 (build-system r-build-system)
10387 (propagated-inputs
10388 `(("r-data-table" ,r-data-table)
10389 ("r-fdrtool" ,r-fdrtool)
10390 ("r-rcpp" ,r-rcpp)))
10391 (home-page "https://bioconductor.org/packages/FitHiC")
10392 (synopsis "Confidence estimation for intra-chromosomal contact maps")
10393 (description
10394 "Fit-Hi-C is a tool for assigning statistical confidence estimates to
10395 intra-chromosomal contact maps produced by genome-wide genome architecture
10396 assays such as Hi-C.")
10397 (license license:gpl2+)))
10398
10399 (define-public r-hitc
10400 (package
10401 (name "r-hitc")
10402 (version "1.28.0")
10403 (source (origin
10404 (method url-fetch)
10405 (uri (bioconductor-uri "HiTC" version))
10406 (sha256
10407 (base32
10408 "059a1xxv2kb0bb32flymg2s8ylhavnv3j8l4125rfidagcgxgzjq"))))
10409 (properties `((upstream-name . "HiTC")))
10410 (build-system r-build-system)
10411 (propagated-inputs
10412 `(("r-biostrings" ,r-biostrings)
10413 ("r-genomeinfodb" ,r-genomeinfodb)
10414 ("r-genomicranges" ,r-genomicranges)
10415 ("r-iranges" ,r-iranges)
10416 ("r-matrix" ,r-matrix)
10417 ("r-rcolorbrewer" ,r-rcolorbrewer)
10418 ("r-rtracklayer" ,r-rtracklayer)))
10419 (home-page "https://bioconductor.org/packages/HiTC")
10420 (synopsis "High throughput chromosome conformation capture analysis")
10421 (description
10422 "The HiTC package was developed to explore high-throughput \"C\" data
10423 such as 5C or Hi-C. Dedicated R classes as well as standard methods for
10424 quality controls, normalization, visualization, and further analysis are also
10425 provided.")
10426 (license license:artistic2.0)))
10427
10428 (define-public r-hdf5array
10429 (package
10430 (name "r-hdf5array")
10431 (version "1.12.2")
10432 (source
10433 (origin
10434 (method url-fetch)
10435 (uri (bioconductor-uri "HDF5Array" version))
10436 (sha256
10437 (base32
10438 "0afradisrr5gn0lf2kxjw55vdm3lm9mlgx53qlr9r40c1hrydpf5"))))
10439 (properties `((upstream-name . "HDF5Array")))
10440 (build-system r-build-system)
10441 (inputs
10442 `(("zlib" ,zlib)))
10443 (propagated-inputs
10444 `(("r-biocgenerics" ,r-biocgenerics)
10445 ("r-delayedarray" ,r-delayedarray)
10446 ("r-iranges" ,r-iranges)
10447 ("r-rhdf5" ,r-rhdf5)
10448 ("r-rhdf5lib" ,r-rhdf5lib)
10449 ("r-s4vectors" ,r-s4vectors)))
10450 (home-page "https://bioconductor.org/packages/HDF5Array")
10451 (synopsis "HDF5 back end for DelayedArray objects")
10452 (description "This package provides an array-like container for convenient
10453 access and manipulation of HDF5 datasets. It supports delayed operations and
10454 block processing.")
10455 (license license:artistic2.0)))
10456
10457 (define-public r-rhdf5lib
10458 (package
10459 (name "r-rhdf5lib")
10460 (version "1.6.1")
10461 (source
10462 (origin
10463 (method url-fetch)
10464 (uri (bioconductor-uri "Rhdf5lib" version))
10465 (sha256
10466 (base32
10467 "0niz9dh66fcwbvqpkpsdlz9d06kwi3kfh45dhk3qz9g9qqyiakr1"))
10468 (modules '((guix build utils)))
10469 (snippet
10470 '(begin
10471 ;; Delete bundled binaries
10472 (delete-file-recursively "src/winlib/")
10473 #t))))
10474 (properties `((upstream-name . "Rhdf5lib")))
10475 (build-system r-build-system)
10476 (arguments
10477 `(#:phases
10478 (modify-phases %standard-phases
10479 (add-after 'unpack 'do-not-use-bundled-hdf5
10480 (lambda* (#:key inputs #:allow-other-keys)
10481 (for-each delete-file '("configure" "configure.ac"))
10482 ;; Do not make other packages link with the proprietary libsz.
10483 (substitute* "R/zzz.R"
10484 (("'%s/libhdf5_cpp.a %s/libhdf5.a %s/libsz.a -lz'")
10485 "'%s/libhdf5_cpp.a %s/libhdf5.a %s/libhdf5.a -lz'")
10486 (("'%s/libhdf5.a %s/libsz.a -lz'")
10487 "'%s/libhdf5.a %s/libhdf5.a -lz'"))
10488 (with-directory-excursion "src"
10489 (invoke "tar" "xvf" (assoc-ref inputs "hdf5-source"))
10490 (rename-file (string-append "hdf5-" ,(package-version hdf5-1.10))
10491 "hdf5")
10492 ;; Remove timestamp and host system information to make
10493 ;; the build reproducible.
10494 (substitute* "hdf5/src/libhdf5.settings.in"
10495 (("Configured on: @CONFIG_DATE@")
10496 "Configured on: Guix")
10497 (("Uname information:.*")
10498 "Uname information: Linux\n")
10499 ;; Remove unnecessary store reference.
10500 (("C Compiler:.*")
10501 "C Compiler: GCC\n"))
10502 (rename-file "Makevars.in" "Makevars")
10503 (substitute* "Makevars"
10504 (("HDF5_CXX_LIB=.*")
10505 (string-append "HDF5_CXX_LIB="
10506 (assoc-ref inputs "hdf5") "/lib/libhdf5_cpp.a\n"))
10507 (("HDF5_LIB=.*")
10508 (string-append "HDF5_LIB="
10509 (assoc-ref inputs "hdf5") "/lib/libhdf5.a\n"))
10510 (("HDF5_CXX_INCLUDE=.*") "HDF5_CXX_INCLUDE=./hdf5/c++/src\n")
10511 (("HDF5_INCLUDE=.*") "HDF5_INCLUDE=./hdf5/src\n")
10512 ;; szip is non-free software
10513 (("cp \\$\\{SZIP_LIB\\}.*") "")
10514 (("\\$\\{USER_LIB_DIR\\}libsz.a") "")))
10515 #t)))))
10516 (inputs
10517 `(("zlib" ,zlib)))
10518 (propagated-inputs
10519 `(("hdf5" ,hdf5-1.10)))
10520 (native-inputs
10521 `(("hdf5-source" ,(package-source hdf5-1.10))))
10522 (home-page "https://bioconductor.org/packages/Rhdf5lib")
10523 (synopsis "HDF5 library as an R package")
10524 (description "This package provides C and C++ HDF5 libraries for use in R
10525 packages.")
10526 (license license:artistic2.0)))
10527
10528 (define-public r-beachmat
10529 (package
10530 (name "r-beachmat")
10531 (version "2.0.0")
10532 (source
10533 (origin
10534 (method url-fetch)
10535 (uri (bioconductor-uri "beachmat" version))
10536 (sha256
10537 (base32
10538 "14cz19fw97s8mhm9r2n5li44vckx069k8nqsyy64c3lkfm4vy4zx"))))
10539 (build-system r-build-system)
10540 (propagated-inputs
10541 `(("r-biocgenerics" ,r-biocgenerics)
10542 ("r-delayedarray" ,r-delayedarray)))
10543 (home-page "https://bioconductor.org/packages/beachmat")
10544 (synopsis "Compiling Bioconductor to handle each matrix type")
10545 (description "This package provides a consistent C++ class interface for a
10546 variety of commonly used matrix types, including sparse and HDF5-backed
10547 matrices.")
10548 (license license:gpl3)))
10549
10550 (define-public r-singlecellexperiment
10551 (package
10552 (name "r-singlecellexperiment")
10553 (version "1.6.0")
10554 (source
10555 (origin
10556 (method url-fetch)
10557 (uri (bioconductor-uri "SingleCellExperiment" version))
10558 (sha256
10559 (base32
10560 "0m3yjnv1njb4gyzcjfk7a0lz2vgggp2wjz382gqrb0qhhwcgfkj5"))))
10561 (properties
10562 `((upstream-name . "SingleCellExperiment")))
10563 (build-system r-build-system)
10564 (propagated-inputs
10565 `(("r-biocgenerics" ,r-biocgenerics)
10566 ("r-s4vectors" ,r-s4vectors)
10567 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10568 (home-page "https://bioconductor.org/packages/SingleCellExperiment")
10569 (synopsis "S4 classes for single cell data")
10570 (description "This package defines an S4 class for storing data from
10571 single-cell experiments. This includes specialized methods to store and
10572 retrieve spike-in information, dimensionality reduction coordinates and size
10573 factors for each cell, along with the usual metadata for genes and
10574 libraries.")
10575 (license license:gpl3)))
10576
10577 (define-public r-scater
10578 (package
10579 (name "r-scater")
10580 (version "1.12.2")
10581 (source (origin
10582 (method url-fetch)
10583 (uri (bioconductor-uri "scater" version))
10584 (sha256
10585 (base32
10586 "16a17161xlhh6qpna9qxph3anlc7ydgyrczmy4alfiw8si7pzmxa"))))
10587 (build-system r-build-system)
10588 (propagated-inputs
10589 `(("r-beachmat" ,r-beachmat)
10590 ("r-biocgenerics" ,r-biocgenerics)
10591 ("r-biocneighbors" ,r-biocneighbors)
10592 ("r-biocparallel" ,r-biocparallel)
10593 ("r-biocsingular" ,r-biocsingular)
10594 ("r-delayedarray" ,r-delayedarray)
10595 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
10596 ("r-dplyr" ,r-dplyr)
10597 ("r-ggbeeswarm" ,r-ggbeeswarm)
10598 ("r-ggplot2" ,r-ggplot2)
10599 ("r-matrix" ,r-matrix)
10600 ("r-rcpp" ,r-rcpp)
10601 ("r-s4vectors" ,r-s4vectors)
10602 ("r-singlecellexperiment" ,r-singlecellexperiment)
10603 ("r-summarizedexperiment" ,r-summarizedexperiment)
10604 ("r-viridis" ,r-viridis)))
10605 (home-page "https://github.com/davismcc/scater")
10606 (synopsis "Single-cell analysis toolkit for gene expression data in R")
10607 (description "This package provides a collection of tools for doing
10608 various analyses of single-cell RNA-seq gene expression data, with a focus on
10609 quality control.")
10610 (license license:gpl2+)))
10611
10612 (define-public r-scran
10613 (package
10614 (name "r-scran")
10615 (version "1.12.1")
10616 (source
10617 (origin
10618 (method url-fetch)
10619 (uri (bioconductor-uri "scran" version))
10620 (sha256
10621 (base32
10622 "17mknpkvs7mgnlbf2hv9k7rwbx2vlg60yrwfyb8nn3nxsb6vm7yn"))))
10623 (build-system r-build-system)
10624 (propagated-inputs
10625 `(("r-beachmat" ,r-beachmat)
10626 ("r-bh" ,r-bh)
10627 ("r-biocgenerics" ,r-biocgenerics)
10628 ("r-biocneighbors" ,r-biocneighbors)
10629 ("r-biocparallel" ,r-biocparallel)
10630 ("r-biocsingular" ,r-biocsingular)
10631 ("r-delayedarray" ,r-delayedarray)
10632 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
10633 ("r-dqrng" ,r-dqrng)
10634 ("r-dynamictreecut" ,r-dynamictreecut)
10635 ("r-edger" ,r-edger)
10636 ("r-igraph" ,r-igraph)
10637 ("r-limma" ,r-limma)
10638 ("r-matrix" ,r-matrix)
10639 ("r-rcpp" ,r-rcpp)
10640 ("r-s4vectors" ,r-s4vectors)
10641 ("r-scater" ,r-scater)
10642 ("r-singlecellexperiment" ,r-singlecellexperiment)
10643 ("r-statmod" ,r-statmod)
10644 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10645 (home-page "https://bioconductor.org/packages/scran")
10646 (synopsis "Methods for single-cell RNA-Seq data analysis")
10647 (description "This package implements a variety of low-level analyses of
10648 single-cell RNA-seq data. Methods are provided for normalization of
10649 cell-specific biases, assignment of cell cycle phase, and detection of highly
10650 variable and significantly correlated genes.")
10651 (license license:gpl3)))
10652
10653 (define-public r-delayedmatrixstats
10654 (package
10655 (name "r-delayedmatrixstats")
10656 (version "1.6.1")
10657 (source
10658 (origin
10659 (method url-fetch)
10660 (uri (bioconductor-uri "DelayedMatrixStats" version))
10661 (sha256
10662 (base32
10663 "1riyzfsq4bd513hidkw3cfkx3jywk3x87j89q70v459xsdfdc95b"))))
10664 (properties
10665 `((upstream-name . "DelayedMatrixStats")))
10666 (build-system r-build-system)
10667 (propagated-inputs
10668 `(("r-biocparallel" ,r-biocparallel)
10669 ("r-delayedarray" ,r-delayedarray)
10670 ("r-hdf5array" ,r-hdf5array)
10671 ("r-iranges" ,r-iranges)
10672 ("r-matrix" ,r-matrix)
10673 ("r-matrixstats" ,r-matrixstats)
10674 ("r-s4vectors" ,r-s4vectors)))
10675 (home-page "https://github.com/PeteHaitch/DelayedMatrixStats")
10676 (synopsis "Functions that apply to rows and columns of DelayedMatrix objects")
10677 (description
10678 "This package provides a port of the @code{matrixStats} API for use with
10679 @code{DelayedMatrix} objects from the @code{DelayedArray} package. It
10680 contains high-performing functions operating on rows and columns of
10681 @code{DelayedMatrix} objects, e.g. @code{colMedians}, @code{rowMedians},
10682 @code{colRanks}, @code{rowRanks}, @code{colSds}, and @code{rowSds}. Functions
10683 are optimized per data type and for subsetted calculations such that both
10684 memory usage and processing time is minimized.")
10685 (license license:expat)))
10686
10687 (define-public r-phangorn
10688 (package
10689 (name "r-phangorn")
10690 (version "2.5.5")
10691 (source
10692 (origin
10693 (method url-fetch)
10694 (uri (cran-uri "phangorn" version))
10695 (sha256
10696 (base32
10697 "0ihkaykqjmf80d8wrk3saphxvnv58zma6pd13633bd3cwanc33f5"))))
10698 (build-system r-build-system)
10699 (propagated-inputs
10700 `(("r-ape" ,r-ape)
10701 ("r-fastmatch" ,r-fastmatch)
10702 ("r-igraph" ,r-igraph)
10703 ("r-magrittr" ,r-magrittr)
10704 ("r-matrix" ,r-matrix)
10705 ("r-quadprog" ,r-quadprog)
10706 ("r-rcpp" ,r-rcpp)))
10707 (home-page "https://github.com/KlausVigo/phangorn")
10708 (synopsis "Phylogenetic analysis in R")
10709 (description
10710 "Phangorn is a package for phylogenetic analysis in R. It supports
10711 estimation of phylogenetic trees and networks using Maximum Likelihood,
10712 Maximum Parsimony, distance methods and Hadamard conjugation.")
10713 (license license:gpl2+)))
10714
10715 (define-public r-dropbead
10716 (let ((commit "d746c6f3b32110428ea56d6a0001ce52a251c247")
10717 (revision "2"))
10718 (package
10719 (name "r-dropbead")
10720 (version (string-append "0-" revision "." (string-take commit 7)))
10721 (source
10722 (origin
10723 (method git-fetch)
10724 (uri (git-reference
10725 (url "https://github.com/rajewsky-lab/dropbead.git")
10726 (commit commit)))
10727 (file-name (git-file-name name version))
10728 (sha256
10729 (base32
10730 "0sbzma49aiiyw8b0jpr7fnhzys9nsqmp4hy4hdz1gzyg1lhnca26"))))
10731 (build-system r-build-system)
10732 (propagated-inputs
10733 `(("r-ggplot2" ,r-ggplot2)
10734 ("r-rcolorbrewer" ,r-rcolorbrewer)
10735 ("r-gridextra" ,r-gridextra)
10736 ("r-gplots" ,r-gplots)
10737 ("r-plyr" ,r-plyr)))
10738 (home-page "https://github.com/rajewsky-lab/dropbead")
10739 (synopsis "Basic exploration and analysis of Drop-seq data")
10740 (description "This package offers a quick and straight-forward way to
10741 explore and perform basic analysis of single cell sequencing data coming from
10742 droplet sequencing. It has been particularly tailored for Drop-seq.")
10743 (license license:gpl3))))
10744
10745 (define htslib-for-sambamba
10746 (let ((commit "2f3c3ea7b301f9b45737a793c0b2dcf0240e5ee5"))
10747 (package
10748 (inherit htslib)
10749 (name "htslib-for-sambamba")
10750 (version (string-append "1.3.1-1." (string-take commit 9)))
10751 (source
10752 (origin
10753 (method git-fetch)
10754 (uri (git-reference
10755 (url "https://github.com/lomereiter/htslib.git")
10756 (commit commit)))
10757 (file-name (string-append "htslib-" version "-checkout"))
10758 (sha256
10759 (base32
10760 "0g38g8s3npr0gjm9fahlbhiskyfws9l5i0x1ml3rakzj7az5l9c9"))))
10761 (native-inputs
10762 `(("autoconf" ,autoconf)
10763 ("automake" ,automake)
10764 ,@(package-native-inputs htslib))))))
10765
10766 (define-public sambamba
10767 (package
10768 (name "sambamba")
10769 (version "0.6.8")
10770 (source
10771 (origin
10772 (method git-fetch)
10773 (uri (git-reference
10774 (url "https://github.com/lomereiter/sambamba.git")
10775 (commit (string-append "v" version))))
10776 (file-name (string-append name "-" version "-checkout"))
10777 (sha256
10778 (base32
10779 "0k0cz3qcv98p6cq09zlbgnjsggxcqbcmzxg5zikgcgbr2nfq4lry"))))
10780 (build-system gnu-build-system)
10781 (arguments
10782 `(#:tests? #f ; there is no test target
10783 #:parallel-build? #f ; not supported
10784 #:phases
10785 (modify-phases %standard-phases
10786 (delete 'configure)
10787 (add-after 'unpack 'fix-ldc-version
10788 (lambda _
10789 (substitute* "gen_ldc_version_info.py"
10790 (("/usr/bin/env.*") (which "python3")))
10791 (substitute* "Makefile"
10792 ;; We use ldc2 instead of ldmd2 to compile sambamba.
10793 (("\\$\\(shell which ldmd2\\)") (which "ldc2")))
10794 #t))
10795 (add-after 'unpack 'place-biod-and-undead
10796 (lambda* (#:key inputs #:allow-other-keys)
10797 (copy-recursively (assoc-ref inputs "biod") "BioD")
10798 (copy-recursively (assoc-ref inputs "undead") "undeaD")
10799 #t))
10800 (add-after 'unpack 'unbundle-prerequisites
10801 (lambda _
10802 (substitute* "Makefile"
10803 (("htslib/libhts.a lz4/lib/liblz4.a")
10804 "-L-lhts -L-llz4")
10805 ((" lz4-static htslib-static") ""))
10806 #t))
10807 (replace 'install
10808 (lambda* (#:key outputs #:allow-other-keys)
10809 (let* ((out (assoc-ref outputs "out"))
10810 (bin (string-append out "/bin")))
10811 (mkdir-p bin)
10812 (install-file "bin/sambamba" bin)
10813 #t))))))
10814 (native-inputs
10815 `(("ldc" ,ldc)
10816 ("rdmd" ,rdmd)
10817 ("python" ,python)
10818 ("biod"
10819 ,(let ((commit "4f1a7d2fb7ef3dfe962aa357d672f354ebfbe42e"))
10820 (origin
10821 (method git-fetch)
10822 (uri (git-reference
10823 (url "https://github.com/biod/BioD.git")
10824 (commit commit)))
10825 (file-name (string-append "biod-"
10826 (string-take commit 9)
10827 "-checkout"))
10828 (sha256
10829 (base32
10830 "1k5pdjv1qvi0a3rwd1sfq6zbj37l86i7bf710m4c0y6737lxj426")))))
10831 ("undead"
10832 ,(let ((commit "9be93876982b5f14fcca60832563b3cd767dd84d"))
10833 (origin
10834 (method git-fetch)
10835 (uri (git-reference
10836 (url "https://github.com/biod/undeaD.git")
10837 (commit commit)))
10838 (file-name (string-append "undead-"
10839 (string-take commit 9)
10840 "-checkout"))
10841 (sha256
10842 (base32
10843 "1xfarj0nqlmi5jd1vmcmm7pabzaf9hxyvk6hp0d6jslb5k9r8r3d")))))))
10844 (inputs
10845 `(("lz4" ,lz4)
10846 ("htslib" ,htslib-for-sambamba)))
10847 (home-page "http://lomereiter.github.io/sambamba")
10848 (synopsis "Tools for working with SAM/BAM data")
10849 (description "Sambamba is a high performance modern robust and
10850 fast tool (and library), written in the D programming language, for
10851 working with SAM and BAM files. Current parallelised functionality is
10852 an important subset of samtools functionality, including view, index,
10853 sort, markdup, and depth.")
10854 (license license:gpl2+)))
10855
10856 (define-public ritornello
10857 (package
10858 (name "ritornello")
10859 (version "2.0.1")
10860 (source (origin
10861 (method git-fetch)
10862 (uri (git-reference
10863 (url "https://github.com/KlugerLab/Ritornello.git")
10864 (commit (string-append "v" version))))
10865 (file-name (git-file-name name version))
10866 (sha256
10867 (base32
10868 "1xahvq215qld7x1w8vpa5zbrsj6p9crb9shqa2x89sb0aaxa02jk"))))
10869 (build-system gnu-build-system)
10870 (arguments
10871 `(#:tests? #f ; there are no tests
10872 #:phases
10873 (modify-phases %standard-phases
10874 (add-after 'unpack 'patch-samtools-references
10875 (lambda* (#:key inputs #:allow-other-keys)
10876 (substitute* '("src/SamStream.h"
10877 "src/FLD.cpp")
10878 (("<sam.h>") "<samtools/sam.h>"))
10879 #t))
10880 (delete 'configure)
10881 (replace 'install
10882 (lambda* (#:key inputs outputs #:allow-other-keys)
10883 (let* ((out (assoc-ref outputs "out"))
10884 (bin (string-append out "/bin/")))
10885 (mkdir-p bin)
10886 (install-file "bin/Ritornello" bin)
10887 #t))))))
10888 (inputs
10889 `(("samtools" ,samtools-0.1)
10890 ("fftw" ,fftw)
10891 ("boost" ,boost)
10892 ("zlib" ,zlib)))
10893 (home-page "https://github.com/KlugerLab/Ritornello")
10894 (synopsis "Control-free peak caller for ChIP-seq data")
10895 (description "Ritornello is a ChIP-seq peak calling algorithm based on
10896 signal processing that can accurately call binding events without the need to
10897 do a pair total DNA input or IgG control sample. It has been tested for use
10898 with narrow binding events such as transcription factor ChIP-seq.")
10899 (license license:gpl3+)))
10900
10901 (define-public trim-galore
10902 (package
10903 (name "trim-galore")
10904 (version "0.6.1")
10905 (source
10906 (origin
10907 (method git-fetch)
10908 (uri (git-reference
10909 (url "https://github.com/FelixKrueger/TrimGalore.git")
10910 (commit version)))
10911 (file-name (git-file-name name version))
10912 (sha256
10913 (base32
10914 "1y31wbxwkm9xqzr5zv1pk5q418whnmlmgmfyxxpnl12h83m2i9iv"))))
10915 (build-system gnu-build-system)
10916 (arguments
10917 `(#:tests? #f ; no tests
10918 #:phases
10919 (modify-phases %standard-phases
10920 (replace 'configure
10921 (lambda _
10922 ;; Trim Galore tries to figure out what version of Python
10923 ;; cutadapt is using by looking at the shebang. Of course that
10924 ;; doesn't work, because cutadapt is wrapped in a shell script.
10925 (substitute* "trim_galore"
10926 (("my \\$python_return.*")
10927 "my $python_return = \"Python 3.999\";\n"))
10928 #t))
10929 (delete 'build)
10930 (add-after 'unpack 'hardcode-tool-references
10931 (lambda* (#:key inputs #:allow-other-keys)
10932 (substitute* "trim_galore"
10933 (("\\$path_to_cutadapt = 'cutadapt'")
10934 (string-append "$path_to_cutadapt = '"
10935 (assoc-ref inputs "cutadapt")
10936 "/bin/cutadapt'"))
10937 (("\\$compression_path = \"gzip\"")
10938 (string-append "$compression_path = \""
10939 (assoc-ref inputs "gzip")
10940 "/bin/gzip\""))
10941 (("\"gunzip")
10942 (string-append "\""
10943 (assoc-ref inputs "gzip")
10944 "/bin/gunzip"))
10945 (("\"pigz")
10946 (string-append "\""
10947 (assoc-ref inputs "pigz")
10948 "/bin/pigz")))
10949 #t))
10950 (replace 'install
10951 (lambda* (#:key outputs #:allow-other-keys)
10952 (let ((bin (string-append (assoc-ref outputs "out")
10953 "/bin")))
10954 (mkdir-p bin)
10955 (install-file "trim_galore" bin)
10956 #t))))))
10957 (inputs
10958 `(("gzip" ,gzip)
10959 ("perl" ,perl)
10960 ("pigz" ,pigz)
10961 ("cutadapt" ,cutadapt)))
10962 (native-inputs
10963 `(("unzip" ,unzip)))
10964 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/trim_galore/")
10965 (synopsis "Wrapper around Cutadapt and FastQC")
10966 (description "Trim Galore! is a wrapper script to automate quality and
10967 adapter trimming as well as quality control, with some added functionality to
10968 remove biased methylation positions for RRBS sequence files.")
10969 (license license:gpl3+)))
10970
10971 (define-public gess
10972 (package
10973 (name "gess")
10974 (version "1.0")
10975 (source (origin
10976 (method url-fetch)
10977 (uri (string-append "http://compbio.uthscsa.edu/"
10978 "GESS_Web/files/"
10979 "gess-" version ".src.tar.gz"))
10980 (sha256
10981 (base32
10982 "0hyk403kxscclzfs24pvdgiv0wm03kjcziqdrp5w46cb049gz0d7"))))
10983 (build-system gnu-build-system)
10984 (arguments
10985 `(#:tests? #f ; no tests
10986 #:phases
10987 (modify-phases %standard-phases
10988 (delete 'configure)
10989 (delete 'build)
10990 (replace 'install
10991 (lambda* (#:key inputs outputs #:allow-other-keys)
10992 (let* ((python (assoc-ref inputs "python"))
10993 (out (assoc-ref outputs "out"))
10994 (bin (string-append out "/bin/"))
10995 (target (string-append
10996 out "/lib/python"
10997 ,(version-major+minor
10998 (package-version python))
10999 "/site-packages/gess/")))
11000 (mkdir-p target)
11001 (copy-recursively "." target)
11002 ;; Make GESS.py executable
11003 (chmod (string-append target "GESS.py") #o555)
11004 ;; Add Python shebang to the top and make Matplotlib
11005 ;; usable.
11006 (substitute* (string-append target "GESS.py")
11007 (("\"\"\"Description:" line)
11008 (string-append "#!" (which "python") "
11009 import matplotlib
11010 matplotlib.use('Agg')
11011 " line)))
11012 ;; Make sure GESS has all modules in its path
11013 (wrap-program (string-append target "GESS.py")
11014 `("PYTHONPATH" ":" prefix (,target ,(getenv "PYTHONPATH"))))
11015 (mkdir-p bin)
11016 (symlink (string-append target "GESS.py")
11017 (string-append bin "GESS.py"))
11018 #t))))))
11019 (inputs
11020 `(("python" ,python-2)
11021 ("python2-pysam" ,python2-pysam)
11022 ("python2-scipy" ,python2-scipy)
11023 ("python2-numpy" ,python2-numpy)
11024 ("python2-networkx" ,python2-networkx)
11025 ("python2-biopython" ,python2-biopython)))
11026 (home-page "http://compbio.uthscsa.edu/GESS_Web/")
11027 (synopsis "Detect exon-skipping events from raw RNA-seq data")
11028 (description
11029 "GESS is an implementation of a novel computational method to detect de
11030 novo exon-skipping events directly from raw RNA-seq data without the prior
11031 knowledge of gene annotation information. GESS stands for the graph-based
11032 exon-skipping scanner detection scheme.")
11033 (license license:bsd-3)))
11034
11035 (define-public phylip
11036 (package
11037 (name "phylip")
11038 (version "3.696")
11039 (source
11040 (origin
11041 (method url-fetch)
11042 (uri (string-append "http://evolution.gs.washington.edu/phylip/"
11043 "download/phylip-" version ".tar.gz"))
11044 (sha256
11045 (base32
11046 "01jar1rayhr2gba2pgbw49m56rc5z4p5wn3ds0m188hrlln4a2nd"))))
11047 (build-system gnu-build-system)
11048 (arguments
11049 `(#:tests? #f ; no check target
11050 #:make-flags (list "-f" "Makefile.unx" "install")
11051 #:parallel-build? #f ; not supported
11052 #:phases
11053 (modify-phases %standard-phases
11054 (add-after 'unpack 'enter-dir
11055 (lambda _ (chdir "src") #t))
11056 (delete 'configure)
11057 (replace 'install
11058 (lambda* (#:key inputs outputs #:allow-other-keys)
11059 (let ((target (string-append (assoc-ref outputs "out")
11060 "/bin")))
11061 (mkdir-p target)
11062 (for-each (lambda (file)
11063 (install-file file target))
11064 (find-files "../exe" ".*")))
11065 #t)))))
11066 (home-page "http://evolution.genetics.washington.edu/phylip/")
11067 (synopsis "Tools for inferring phylogenies")
11068 (description "PHYLIP (the PHYLogeny Inference Package) is a package of
11069 programs for inferring phylogenies (evolutionary trees).")
11070 (license license:bsd-2)))
11071
11072 (define-public imp
11073 (package
11074 (name "imp")
11075 (version "2.6.2")
11076 (source
11077 (origin
11078 (method url-fetch)
11079 (uri (string-append "https://integrativemodeling.org/"
11080 version "/download/imp-" version ".tar.gz"))
11081 (sha256
11082 (base32
11083 "0lxqx7vh79d771svr611dkilp6sn30qrbw8zvscbrm37v38d2j6h"))))
11084 (build-system cmake-build-system)
11085 (arguments
11086 `(;; FIXME: Some tests fail because they produce warnings, others fail
11087 ;; because the PYTHONPATH does not include the modeller's directory.
11088 #:tests? #f))
11089 (inputs
11090 `(("boost" ,boost)
11091 ("gsl" ,gsl)
11092 ("swig" ,swig)
11093 ("hdf5" ,hdf5)
11094 ("fftw" ,fftw)
11095 ("python" ,python-2)))
11096 (propagated-inputs
11097 `(("python2-numpy" ,python2-numpy)
11098 ("python2-scipy" ,python2-scipy)
11099 ("python2-pandas" ,python2-pandas)
11100 ("python2-scikit-learn" ,python2-scikit-learn)
11101 ("python2-networkx" ,python2-networkx)))
11102 (home-page "https://integrativemodeling.org")
11103 (synopsis "Integrative modeling platform")
11104 (description "IMP's broad goal is to contribute to a comprehensive
11105 structural characterization of biomolecules ranging in size and complexity
11106 from small peptides to large macromolecular assemblies, by integrating data
11107 from diverse biochemical and biophysical experiments. IMP provides a C++ and
11108 Python toolbox for solving complex modeling problems, and a number of
11109 applications for tackling some common problems in a user-friendly way.")
11110 ;; IMP is largely available under the GNU Lesser GPL; see the file
11111 ;; COPYING.LGPL for the full text of this license. Some IMP modules are
11112 ;; available under the GNU GPL (see the file COPYING.GPL).
11113 (license (list license:lgpl2.1+
11114 license:gpl3+))))
11115
11116 (define-public tadbit
11117 (package
11118 (name "tadbit")
11119 (version "0.2.0")
11120 (source (origin
11121 (method git-fetch)
11122 (uri (git-reference
11123 (url "https://github.com/3DGenomes/TADbit.git")
11124 (commit (string-append "v" version))))
11125 (file-name (git-file-name name version))
11126 (sha256
11127 (base32
11128 "07g3aj648prmsvxp9caz5yl41k0y0647vxh0f5p3w8376mfiljd0"))))
11129 (build-system python-build-system)
11130 (arguments
11131 `(;; Tests are included and must be run after installation, but
11132 ;; they are incomplete and thus cannot be run.
11133 #:tests? #f
11134 #:python ,python-2
11135 #:phases
11136 (modify-phases %standard-phases
11137 (add-after 'unpack 'fix-problems-with-setup.py
11138 (lambda* (#:key outputs #:allow-other-keys)
11139 ;; setup.py opens these files for writing
11140 (chmod "_pytadbit/_version.py" #o664)
11141 (chmod "README.rst" #o664)
11142
11143 ;; Don't attempt to install the bash completions to
11144 ;; the home directory.
11145 (rename-file "extras/.bash_completion"
11146 "extras/tadbit")
11147 (substitute* "setup.py"
11148 (("\\(path.expanduser\\('~'\\)")
11149 (string-append "(\""
11150 (assoc-ref outputs "out")
11151 "/etc/bash_completion.d\""))
11152 (("extras/\\.bash_completion")
11153 "extras/tadbit"))
11154 #t)))))
11155 (inputs
11156 ;; TODO: add Chimera for visualization
11157 `(("imp" ,imp)
11158 ("mcl" ,mcl)
11159 ("python2-scipy" ,python2-scipy)
11160 ("python2-numpy" ,python2-numpy)
11161 ("python2-matplotlib" ,python2-matplotlib)
11162 ("python2-pysam" ,python2-pysam)))
11163 (home-page "https://3dgenomes.github.io/TADbit/")
11164 (synopsis "Analyze, model, and explore 3C-based data")
11165 (description
11166 "TADbit is a complete Python library to deal with all steps to analyze,
11167 model, and explore 3C-based data. With TADbit the user can map FASTQ files to
11168 obtain raw interaction binned matrices (Hi-C like matrices), normalize and
11169 correct interaction matrices, identify and compare the so-called
11170 @dfn{Topologically Associating Domains} (TADs), build 3D models from the
11171 interaction matrices, and finally, extract structural properties from the
11172 models. TADbit is complemented by TADkit for visualizing 3D models.")
11173 (license license:gpl3+)))
11174
11175 (define-public kentutils
11176 (package
11177 (name "kentutils")
11178 ;; 302.1.0 is out, but the only difference is the inclusion of
11179 ;; pre-built binaries.
11180 (version "302.0.0")
11181 (source
11182 (origin
11183 (method git-fetch)
11184 (uri (git-reference
11185 (url "https://github.com/ENCODE-DCC/kentUtils.git")
11186 (commit (string-append "v" version))))
11187 (file-name (git-file-name name version))
11188 (sha256
11189 (base32
11190 "0n1wbyjpzii2b9qhyp9r1q76j623cggpg3y8fmw78ld3z4y7ivha"))
11191 (modules '((guix build utils)
11192 (srfi srfi-26)
11193 (ice-9 ftw)))
11194 (snippet
11195 '(begin
11196 ;; Only the contents of the specified directories are free
11197 ;; for all uses, so we remove the rest. "hg/autoSql" and
11198 ;; "hg/autoXml" are nominally free, but they depend on a
11199 ;; library that is built from the sources in "hg/lib",
11200 ;; which is nonfree.
11201 (let ((free (list "." ".."
11202 "utils" "lib" "inc" "tagStorm"
11203 "parasol" "htslib"))
11204 (directory? (lambda (file)
11205 (eq? 'directory (stat:type (stat file))))))
11206 (for-each (lambda (file)
11207 (and (directory? file)
11208 (delete-file-recursively file)))
11209 (map (cut string-append "src/" <>)
11210 (scandir "src"
11211 (lambda (file)
11212 (not (member file free)))))))
11213 ;; Only make the utils target, not the userApps target,
11214 ;; because that requires libraries we won't build.
11215 (substitute* "Makefile"
11216 ((" userApps") " utils"))
11217 ;; Only build libraries that are free.
11218 (substitute* "src/makefile"
11219 (("DIRS =.*") "DIRS =\n")
11220 (("cd jkOwnLib.*") "")
11221 ((" hgLib") "")
11222 (("cd hg.*") ""))
11223 (substitute* "src/utils/makefile"
11224 ;; These tools depend on "jkhgap.a", which is part of the
11225 ;; nonfree "src/hg/lib" directory.
11226 (("raSqlQuery") "")
11227 (("pslLiftSubrangeBlat") "")
11228
11229 ;; Do not build UCSC tools, which may require nonfree
11230 ;; components.
11231 (("ALL_APPS =.*") "ALL_APPS = $(UTILS_APPLIST)\n"))
11232 #t))))
11233 (build-system gnu-build-system)
11234 (arguments
11235 `( ;; There is no global test target and the test target for
11236 ;; individual tools depends on input files that are not
11237 ;; included.
11238 #:tests? #f
11239 #:phases
11240 (modify-phases %standard-phases
11241 (add-after 'unpack 'fix-permissions
11242 (lambda _ (make-file-writable "src/inc/localEnvironment.mk") #t))
11243 (add-after 'unpack 'fix-paths
11244 (lambda _
11245 (substitute* "Makefile"
11246 (("/bin/echo") (which "echo")))
11247 #t))
11248 (add-after 'unpack 'prepare-samtabix
11249 (lambda* (#:key inputs #:allow-other-keys)
11250 (copy-recursively (assoc-ref inputs "samtabix")
11251 "samtabix")
11252 #t))
11253 (delete 'configure)
11254 (replace 'install
11255 (lambda* (#:key outputs #:allow-other-keys)
11256 (let ((bin (string-append (assoc-ref outputs "out")
11257 "/bin")))
11258 (copy-recursively "bin" bin))
11259 #t)))))
11260 (native-inputs
11261 `(("samtabix"
11262 ,(origin
11263 (method git-fetch)
11264 (uri (git-reference
11265 (url "http://genome-source.cse.ucsc.edu/samtabix.git")
11266 (commit "10fd107909c1ac4d679299908be4262a012965ba")))
11267 (sha256
11268 (base32
11269 "0c1nj64l42v395sa84n7az43xiap4i6f9n9dfz4058aqiwkhkmma"))))))
11270 (inputs
11271 `(("zlib" ,zlib)
11272 ("tcsh" ,tcsh)
11273 ("perl" ,perl)
11274 ("libpng" ,libpng)
11275 ("mariadb" ,mariadb)
11276 ("openssl" ,openssl)))
11277 (home-page "http://genome.cse.ucsc.edu/index.html")
11278 (synopsis "Assorted bioinformatics utilities")
11279 (description "This package provides the kentUtils, a selection of
11280 bioinformatics utilities used in combination with the UCSC genome
11281 browser.")
11282 ;; Only a subset of the sources are released under a non-copyleft
11283 ;; free software license. All other sources are removed in a
11284 ;; snippet. See this bug report for an explanation of how the
11285 ;; license statements apply:
11286 ;; https://github.com/ENCODE-DCC/kentUtils/issues/12
11287 (license (license:non-copyleft
11288 "http://genome.ucsc.edu/license/"
11289 "The contents of this package are free for all uses."))))
11290
11291 (define-public f-seq
11292 (let ((commit "6ccded34cff38cf432deed8503648b4a66953f9b")
11293 (revision "1"))
11294 (package
11295 (name "f-seq")
11296 (version (string-append "1.1-" revision "." (string-take commit 7)))
11297 (source (origin
11298 (method git-fetch)
11299 (uri (git-reference
11300 (url "https://github.com/aboyle/F-seq.git")
11301 (commit commit)))
11302 (file-name (string-append name "-" version))
11303 (sha256
11304 (base32
11305 "1nk33k0yajg2id4g59bc4szr58r2q6pdq42vgcw054m8ip9wv26h"))
11306 (modules '((guix build utils)))
11307 ;; Remove bundled Java library archives.
11308 (snippet
11309 '(begin
11310 (for-each delete-file (find-files "lib" ".*"))
11311 #t))))
11312 (build-system ant-build-system)
11313 (arguments
11314 `(#:tests? #f ; no tests included
11315 #:phases
11316 (modify-phases %standard-phases
11317 (replace 'install
11318 (lambda* (#:key inputs outputs #:allow-other-keys)
11319 (let* ((target (assoc-ref outputs "out"))
11320 (bin (string-append target "/bin"))
11321 (doc (string-append target "/share/doc/f-seq"))
11322 (lib (string-append target "/lib")))
11323 (mkdir-p target)
11324 (mkdir-p doc)
11325 (substitute* "bin/linux/fseq"
11326 (("java") (which "java"))
11327 (("\\$REALDIR/../lib/commons-cli-1.1.jar")
11328 (string-append (assoc-ref inputs "java-commons-cli")
11329 "/share/java/commons-cli.jar"))
11330 (("REALDIR=.*")
11331 (string-append "REALDIR=" bin "\n")))
11332 (install-file "README.txt" doc)
11333 (install-file "bin/linux/fseq" bin)
11334 (install-file "build~/fseq.jar" lib)
11335 (copy-recursively "lib" lib)
11336 #t))))))
11337 (inputs
11338 `(("perl" ,perl)
11339 ("java-commons-cli" ,java-commons-cli)))
11340 (home-page "http://fureylab.web.unc.edu/software/fseq/")
11341 (synopsis "Feature density estimator for high-throughput sequence tags")
11342 (description
11343 "F-Seq is a software package that generates a continuous tag sequence
11344 density estimation allowing identification of biologically meaningful sites
11345 such as transcription factor binding sites (ChIP-seq) or regions of open
11346 chromatin (DNase-seq). Output can be displayed directly in the UCSC Genome
11347 Browser.")
11348 (license license:gpl3+))))
11349
11350 (define-public bismark
11351 (package
11352 (name "bismark")
11353 (version "0.20.1")
11354 (source
11355 (origin
11356 (method git-fetch)
11357 (uri (git-reference
11358 (url "https://github.com/FelixKrueger/Bismark.git")
11359 (commit version)))
11360 (file-name (string-append name "-" version "-checkout"))
11361 (sha256
11362 (base32
11363 "0xchm3rgilj6vfjnyzfzzymfd7djr64sbrmrvs3njbwi66jqbzw9"))))
11364 (build-system perl-build-system)
11365 (arguments
11366 `(#:tests? #f ; there are no tests
11367 #:modules ((guix build utils)
11368 (ice-9 popen)
11369 (srfi srfi-26)
11370 (guix build perl-build-system))
11371 #:phases
11372 (modify-phases %standard-phases
11373 ;; The bundled plotly.js is minified.
11374 (add-after 'unpack 'replace-plotly.js
11375 (lambda* (#:key inputs #:allow-other-keys)
11376 (let* ((file (assoc-ref inputs "plotly.js"))
11377 (installed "plotly/plotly.js"))
11378 (let ((minified (open-pipe* OPEN_READ "uglify-js" file)))
11379 (call-with-output-file installed
11380 (cut dump-port minified <>))))
11381 #t))
11382 (delete 'configure)
11383 (delete 'build)
11384 (replace 'install
11385 (lambda* (#:key inputs outputs #:allow-other-keys)
11386 (let* ((out (assoc-ref outputs "out"))
11387 (bin (string-append out "/bin"))
11388 (share (string-append out "/share/bismark"))
11389 (docdir (string-append out "/share/doc/bismark"))
11390 (docs '("Docs/Bismark_User_Guide.html"))
11391 (scripts '("bismark"
11392 "bismark_genome_preparation"
11393 "bismark_methylation_extractor"
11394 "bismark2bedGraph"
11395 "bismark2report"
11396 "coverage2cytosine"
11397 "deduplicate_bismark"
11398 "filter_non_conversion"
11399 "bam2nuc"
11400 "bismark2summary"
11401 "NOMe_filtering")))
11402 (substitute* "bismark2report"
11403 (("\\$RealBin/plotly")
11404 (string-append share "/plotly")))
11405 (mkdir-p share)
11406 (mkdir-p docdir)
11407 (mkdir-p bin)
11408 (for-each (lambda (file) (install-file file bin))
11409 scripts)
11410 (for-each (lambda (file) (install-file file docdir))
11411 docs)
11412 (copy-recursively "Docs/Images" (string-append docdir "/Images"))
11413 (copy-recursively "plotly"
11414 (string-append share "/plotly"))
11415
11416 ;; Fix references to gunzip
11417 (substitute* (map (lambda (file)
11418 (string-append bin "/" file))
11419 scripts)
11420 (("\"gunzip -c")
11421 (string-append "\"" (assoc-ref inputs "gzip")
11422 "/bin/gunzip -c")))
11423 #t))))))
11424 (inputs
11425 `(("gzip" ,gzip)
11426 ("perl-carp" ,perl-carp)
11427 ("perl-getopt-long" ,perl-getopt-long)))
11428 (native-inputs
11429 `(("plotly.js"
11430 ,(origin
11431 (method url-fetch)
11432 (uri (string-append "https://raw.githubusercontent.com/plotly/plotly.js/"
11433 "v1.39.4/dist/plotly.js"))
11434 (sha256
11435 (base32 "138mwsr4nf5qif4mrxx286mpnagxd1xwl6k8aidrjgknaqg88zyr"))))
11436 ("uglify-js" ,uglify-js)))
11437 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/bismark/")
11438 (synopsis "Map bisulfite treated sequence reads and analyze methylation")
11439 (description "Bismark is a program to map bisulfite treated sequencing
11440 reads to a genome of interest and perform methylation calls in a single step.
11441 The output can be easily imported into a genome viewer, such as SeqMonk, and
11442 enables a researcher to analyse the methylation levels of their samples
11443 straight away. Its main features are:
11444
11445 @itemize
11446 @item Bisulfite mapping and methylation calling in one single step
11447 @item Supports single-end and paired-end read alignments
11448 @item Supports ungapped and gapped alignments
11449 @item Alignment seed length, number of mismatches etc are adjustable
11450 @item Output discriminates between cytosine methylation in CpG, CHG
11451 and CHH context
11452 @end itemize\n")
11453 (license license:gpl3+)))
11454
11455 (define-public paml
11456 (package
11457 (name "paml")
11458 (version "4.9e")
11459 (source (origin
11460 (method url-fetch)
11461 (uri (string-append "http://abacus.gene.ucl.ac.uk/software/"
11462 "paml" version ".tgz"))
11463 (sha256
11464 (base32
11465 "13zf6h9fiqghwhch2h06x1zdr6s42plsnqahflp5g7myr3han3s6"))
11466 (modules '((guix build utils)))
11467 ;; Remove Windows binaries
11468 (snippet
11469 '(begin
11470 (for-each delete-file (find-files "." "\\.exe$"))
11471 #t))))
11472 (build-system gnu-build-system)
11473 (arguments
11474 `(#:tests? #f ; there are no tests
11475 #:make-flags '("CC=gcc")
11476 #:phases
11477 (modify-phases %standard-phases
11478 (replace 'configure
11479 (lambda _
11480 (substitute* "src/BFdriver.c"
11481 (("/bin/bash") (which "bash")))
11482 (chdir "src")
11483 #t))
11484 (replace 'install
11485 (lambda* (#:key outputs #:allow-other-keys)
11486 (let ((tools '("baseml" "basemlg" "codeml"
11487 "pamp" "evolver" "yn00" "chi2"))
11488 (bin (string-append (assoc-ref outputs "out") "/bin"))
11489 (docdir (string-append (assoc-ref outputs "out")
11490 "/share/doc/paml")))
11491 (mkdir-p bin)
11492 (for-each (lambda (file) (install-file file bin)) tools)
11493 (copy-recursively "../doc" docdir)
11494 #t))))))
11495 (home-page "http://abacus.gene.ucl.ac.uk/software/paml.html")
11496 (synopsis "Phylogentic analysis by maximum likelihood")
11497 (description "PAML (for Phylogentic Analysis by Maximum Likelihood)
11498 contains a few programs for model fitting and phylogenetic tree reconstruction
11499 using nucleotide or amino-acid sequence data.")
11500 ;; GPLv3 only
11501 (license license:gpl3)))
11502
11503 (define-public kallisto
11504 (package
11505 (name "kallisto")
11506 (version "0.44.0")
11507 (source (origin
11508 (method git-fetch)
11509 (uri (git-reference
11510 (url "https://github.com/pachterlab/kallisto.git")
11511 (commit (string-append "v" version))))
11512 (file-name (git-file-name name version))
11513 (sha256
11514 (base32
11515 "0nj382jiywqnpgvyhichajpkkh5r0bapn43f4dx40zdaq5v4m40m"))))
11516 (build-system cmake-build-system)
11517 (arguments
11518 `(#:tests? #f ; no "check" target
11519 #:phases
11520 (modify-phases %standard-phases
11521 (add-after 'unpack 'do-not-use-bundled-htslib
11522 (lambda _
11523 (substitute* "CMakeLists.txt"
11524 (("^ExternalProject_Add" m)
11525 (string-append "if (NEVER)\n" m))
11526 (("^\\)")
11527 (string-append ")\nendif(NEVER)"))
11528 (("include_directories\\(\\$\\{htslib_PREFIX.*" m)
11529 (string-append "# " m)))
11530 (substitute* "src/CMakeLists.txt"
11531 (("target_link_libraries\\(kallisto kallisto_core pthread \
11532 \\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/../ext/htslib/libhts.a\\)")
11533 "target_link_libraries(kallisto kallisto_core pthread hts)")
11534 (("include_directories\\(\\.\\./ext/htslib\\)") ""))
11535 #t)))))
11536 (inputs
11537 `(("hdf5" ,hdf5)
11538 ("htslib" ,htslib)
11539 ("zlib" ,zlib)))
11540 (home-page "http://pachterlab.github.io/kallisto/")
11541 (synopsis "Near-optimal RNA-Seq quantification")
11542 (description
11543 "Kallisto is a program for quantifying abundances of transcripts from
11544 RNA-Seq data, or more generally of target sequences using high-throughput
11545 sequencing reads. It is based on the novel idea of pseudoalignment for
11546 rapidly determining the compatibility of reads with targets, without the need
11547 for alignment. Pseudoalignment of reads preserves the key information needed
11548 for quantification, and kallisto is therefore not only fast, but also as
11549 accurate as existing quantification tools.")
11550 (license license:bsd-2)))
11551
11552 (define-public libgff
11553 (package
11554 (name "libgff")
11555 (version "1.0")
11556 (source (origin
11557 (method git-fetch)
11558 (uri (git-reference
11559 (url "https://github.com/Kingsford-Group/libgff.git")
11560 (commit (string-append "v" version))))
11561 (file-name (git-file-name name version))
11562 (sha256
11563 (base32
11564 "0n6vfjnq7a2mianipscbshrvbncss8z4zkgkbjw754p9043nfkps"))))
11565 (build-system cmake-build-system)
11566 (arguments `(#:tests? #f)) ; no tests included
11567 (home-page "https://github.com/Kingsford-Group/libgff")
11568 (synopsis "Parser library for reading/writing GFF files")
11569 (description "This is a simple \"libraryfication\" of the GFF/GTF parsing
11570 code that is used in the Cufflinks codebase. The goal of this library is to
11571 provide this functionality without the necessity of drawing in a heavy-weight
11572 dependency like SeqAn.")
11573 (license (license:x11-style "https://www.boost.org/LICENSE_1_0.txt"))))
11574
11575 (define-public libdivsufsort
11576 (package
11577 (name "libdivsufsort")
11578 (version "2.0.1")
11579 (source (origin
11580 (method git-fetch)
11581 (uri (git-reference
11582 (url "https://github.com/y-256/libdivsufsort.git")
11583 (commit version)))
11584 (file-name (git-file-name name version))
11585 (sha256
11586 (base32
11587 "0fgdz9fzihlvjjrxy01md1bv9vh12rkgkwbm90b1hj5xpbaqp7z2"))))
11588 (build-system cmake-build-system)
11589 (arguments
11590 '(#:tests? #f ; there are no tests
11591 #:configure-flags
11592 ;; Needed for rapmap and sailfish.
11593 '("-DBUILD_DIVSUFSORT64=ON")))
11594 (home-page "https://github.com/y-256/libdivsufsort")
11595 (synopsis "Lightweight suffix-sorting library")
11596 (description "libdivsufsort is a software library that implements a
11597 lightweight suffix array construction algorithm. This library provides a
11598 simple and an efficient C API to construct a suffix array and a
11599 Burrows-Wheeler transformed string from a given string over a constant-size
11600 alphabet. The algorithm runs in O(n log n) worst-case time using only 5n+O(1)
11601 bytes of memory space, where n is the length of the string.")
11602 (license license:expat)))
11603
11604 (define-public sailfish
11605 (package
11606 (name "sailfish")
11607 (version "0.10.1")
11608 (source (origin
11609 (method git-fetch)
11610 (uri (git-reference
11611 (url "https://github.com/kingsfordgroup/sailfish.git")
11612 (commit (string-append "v" version))))
11613 (file-name (git-file-name name version))
11614 (sha256
11615 (base32
11616 "1amcc5hqvsl42hg4x19bi9vy47cl874s0lw1fmi0hwsdk9i8c03v"))
11617 (modules '((guix build utils)))
11618 (snippet
11619 '(begin
11620 ;; Delete bundled headers for eigen3.
11621 (delete-file-recursively "include/eigen3/")
11622 #t))))
11623 (build-system cmake-build-system)
11624 (arguments
11625 `(#:configure-flags
11626 (list (string-append "-DBOOST_INCLUDEDIR="
11627 (assoc-ref %build-inputs "boost")
11628 "/include/")
11629 (string-append "-DBOOST_LIBRARYDIR="
11630 (assoc-ref %build-inputs "boost")
11631 "/lib/")
11632 (string-append "-DBoost_LIBRARIES="
11633 "-lboost_iostreams "
11634 "-lboost_filesystem "
11635 "-lboost_system "
11636 "-lboost_thread "
11637 "-lboost_timer "
11638 "-lboost_chrono "
11639 "-lboost_program_options")
11640 "-DBoost_FOUND=TRUE"
11641 ;; Don't download RapMap---we already have it!
11642 "-DFETCHED_RAPMAP=1")
11643 ;; Tests must be run after installation and the location of the test
11644 ;; data file must be overridden. But the tests fail. It looks like
11645 ;; they are not really meant to be run.
11646 #:tests? #f
11647 #:phases
11648 (modify-phases %standard-phases
11649 ;; Boost cannot be found, even though it's right there.
11650 (add-after 'unpack 'do-not-look-for-boost
11651 (lambda* (#:key inputs #:allow-other-keys)
11652 (substitute* "CMakeLists.txt"
11653 (("find_package\\(Boost 1\\.53\\.0") "#"))
11654 #t))
11655 (add-after 'unpack 'do-not-assign-to-macro
11656 (lambda _
11657 (substitute* "include/spdlog/details/format.cc"
11658 (("const unsigned CHAR_WIDTH = 1;") ""))
11659 #t))
11660 (add-after 'unpack 'prepare-rapmap
11661 (lambda* (#:key inputs #:allow-other-keys)
11662 (let ((src "external/install/src/rapmap/")
11663 (include "external/install/include/rapmap/")
11664 (rapmap (assoc-ref inputs "rapmap")))
11665 (mkdir-p "/tmp/rapmap")
11666 (invoke "tar" "xf"
11667 (assoc-ref inputs "rapmap")
11668 "-C" "/tmp/rapmap"
11669 "--strip-components=1")
11670 (mkdir-p src)
11671 (mkdir-p include)
11672 (for-each (lambda (file)
11673 (install-file file src))
11674 (find-files "/tmp/rapmap/src" "\\.(c|cpp)"))
11675 (copy-recursively "/tmp/rapmap/include" include))
11676 #t))
11677 (add-after 'unpack 'use-system-libraries
11678 (lambda* (#:key inputs #:allow-other-keys)
11679 (substitute* '("src/SailfishIndexer.cpp"
11680 "src/SailfishUtils.cpp"
11681 "src/SailfishQuantify.cpp"
11682 "src/FASTAParser.cpp"
11683 "include/PCA.hpp"
11684 "include/SailfishUtils.hpp"
11685 "include/SailfishIndex.hpp"
11686 "include/CollapsedEMOptimizer.hpp"
11687 "src/CollapsedEMOptimizer.cpp")
11688 (("#include \"jellyfish/config.h\"") ""))
11689 (substitute* "src/CMakeLists.txt"
11690 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
11691 (string-append (assoc-ref inputs "jellyfish")
11692 "/include/jellyfish-" ,(package-version jellyfish)))
11693 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
11694 (string-append (assoc-ref inputs "jellyfish")
11695 "/lib/libjellyfish-2.0.a"))
11696 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
11697 (string-append (assoc-ref inputs "libdivsufsort")
11698 "/lib/libdivsufsort.so"))
11699 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
11700 (string-append (assoc-ref inputs "libdivsufsort")
11701 "/lib/libdivsufsort64.so")))
11702 (substitute* "CMakeLists.txt"
11703 ;; Don't prefer static libs
11704 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
11705 (("find_package\\(Jellyfish.*") "")
11706 (("ExternalProject_Add\\(libjellyfish") "message(")
11707 (("ExternalProject_Add\\(libgff") "message(")
11708 (("ExternalProject_Add\\(libsparsehash") "message(")
11709 (("ExternalProject_Add\\(libdivsufsort") "message("))
11710
11711 ;; Ensure that Eigen headers can be found
11712 (setenv "CPLUS_INCLUDE_PATH"
11713 (string-append (assoc-ref inputs "eigen")
11714 "/include/eigen3"))
11715 #t)))))
11716 (inputs
11717 `(("boost" ,boost)
11718 ("eigen" ,eigen)
11719 ("jemalloc" ,jemalloc)
11720 ("jellyfish" ,jellyfish)
11721 ("sparsehash" ,sparsehash)
11722 ("rapmap" ,(origin
11723 (method git-fetch)
11724 (uri (git-reference
11725 (url "https://github.com/COMBINE-lab/RapMap.git")
11726 (commit (string-append "sf-v" version))))
11727 (file-name (string-append "rapmap-sf-v" version "-checkout"))
11728 (sha256
11729 (base32
11730 "1hv79l5i576ykv5a1srj2p0q36yvyl5966m0fcy2lbi169ipjakf"))
11731 (modules '((guix build utils)))
11732 ;; These files are expected to be excluded.
11733 (snippet
11734 '(begin (delete-file-recursively "include/spdlog")
11735 (for-each delete-file '("include/xxhash.h"
11736 "src/xxhash.c"))
11737 #t))))
11738 ("libdivsufsort" ,libdivsufsort)
11739 ("libgff" ,libgff)
11740 ("tbb" ,tbb)
11741 ("zlib" ,zlib)))
11742 (native-inputs
11743 `(("pkg-config" ,pkg-config)))
11744 (home-page "http://www.cs.cmu.edu/~ckingsf/software/sailfish")
11745 (synopsis "Mapping-based isoform quantification from RNA-Seq reads")
11746 (description "Sailfish is a tool for genomic transcript quantification
11747 from RNA-seq data. It requires a set of target transcripts (either from a
11748 reference or de-novo assembly) to quantify. All you need to run sailfish is a
11749 fasta file containing your reference transcripts and a (set of) fasta/fastq
11750 file(s) containing your reads.")
11751 (license license:gpl3+)))
11752
11753 (define libstadenio-for-salmon
11754 (package
11755 (name "libstadenio")
11756 (version "1.14.8")
11757 (source (origin
11758 (method git-fetch)
11759 (uri (git-reference
11760 (url "https://github.com/COMBINE-lab/staden-io_lib.git")
11761 (commit (string-append "v" version))))
11762 (file-name (string-append name "-" version "-checkout"))
11763 (sha256
11764 (base32
11765 "1x8kxxqxl892vwfbprlbyfwkkv7c34ggkc94892x9x0g37x5nbwx"))))
11766 (build-system gnu-build-system)
11767 (arguments '(#:parallel-tests? #f)) ; not supported
11768 (inputs
11769 `(("zlib" ,zlib)))
11770 (native-inputs
11771 `(("perl" ,perl))) ; for tests
11772 (home-page "https://github.com/COMBINE-lab/staden-io_lib")
11773 (synopsis "General purpose trace and experiment file library")
11774 (description "This package provides a library of file reading and writing
11775 code to provide a general purpose Trace file (and Experiment File) reading
11776 interface.
11777
11778 The following file formats are supported:
11779
11780 @enumerate
11781 @item SCF trace files
11782 @item ABI trace files
11783 @item ALF trace files
11784 @item ZTR trace files
11785 @item SFF trace archives
11786 @item SRF trace archives
11787 @item Experiment files
11788 @item Plain text files
11789 @item SAM/BAM sequence files
11790 @item CRAM sequence files
11791 @end enumerate\n")
11792 (license license:bsd-3)))
11793
11794 (define-public salmon
11795 (package
11796 (name "salmon")
11797 (version "0.13.1")
11798 (source (origin
11799 (method git-fetch)
11800 (uri (git-reference
11801 (url "https://github.com/COMBINE-lab/salmon.git")
11802 (commit (string-append "v" version))))
11803 (file-name (git-file-name name version))
11804 (sha256
11805 (base32
11806 "1i2z4aivicmiixdz9bxalp7vmfzi3k92fxa63iqa8kgvfw5a4aq5"))
11807 (modules '((guix build utils)))
11808 (snippet
11809 '(begin
11810 ;; Delete bundled headers for eigen3.
11811 (delete-file-recursively "include/eigen3/")
11812 #t))))
11813 (build-system cmake-build-system)
11814 (arguments
11815 `(#:configure-flags
11816 (list (string-append "-DBOOST_INCLUDEDIR="
11817 (assoc-ref %build-inputs "boost")
11818 "/include/")
11819 (string-append "-DBOOST_LIBRARYDIR="
11820 (assoc-ref %build-inputs "boost")
11821 "/lib/")
11822 (string-append "-DBoost_LIBRARIES="
11823 "-lboost_iostreams "
11824 "-lboost_filesystem "
11825 "-lboost_system "
11826 "-lboost_thread "
11827 "-lboost_timer "
11828 "-lboost_chrono "
11829 "-lboost_program_options")
11830 "-DBoost_FOUND=TRUE"
11831 "-DTBB_LIBRARIES=tbb tbbmalloc"
11832 ;; Don't download RapMap---we already have it!
11833 "-DFETCHED_RAPMAP=1")
11834 #:phases
11835 (modify-phases %standard-phases
11836 ;; Boost cannot be found, even though it's right there.
11837 (add-after 'unpack 'do-not-look-for-boost
11838 (lambda* (#:key inputs #:allow-other-keys)
11839 (substitute* "CMakeLists.txt"
11840 (("find_package\\(Boost 1\\.59\\.0") "#"))
11841 #t))
11842 (add-after 'unpack 'do-not-phone-home
11843 (lambda _
11844 (substitute* "src/Salmon.cpp"
11845 (("getVersionMessage\\(\\)") "\"\""))
11846 #t))
11847 (add-after 'unpack 'prepare-rapmap
11848 (lambda* (#:key inputs #:allow-other-keys)
11849 (let ((src "external/install/src/rapmap/")
11850 (include "external/install/include/rapmap/")
11851 (rapmap (assoc-ref inputs "rapmap")))
11852 (mkdir-p src)
11853 (mkdir-p include)
11854 (copy-recursively (string-append rapmap "/src") src)
11855 (copy-recursively (string-append rapmap "/include") include)
11856 (for-each delete-file '("external/install/include/rapmap/xxhash.h"
11857 "external/install/include/rapmap/FastxParser.hpp"
11858 "external/install/include/rapmap/concurrentqueue.h"
11859 "external/install/include/rapmap/FastxParserThreadUtils.hpp"
11860 "external/install/src/rapmap/FastxParser.cpp"
11861 "external/install/src/rapmap/xxhash.c"))
11862 (delete-file-recursively "external/install/include/rapmap/spdlog"))
11863 #t))
11864 (add-after 'unpack 'use-system-libraries
11865 (lambda* (#:key inputs #:allow-other-keys)
11866 (substitute* "CMakeLists.txt"
11867 ;; Don't prefer static libs
11868 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
11869 (("set\\(TBB_LIBRARIES") "message(")
11870 ;; Don't download anything
11871 (("DOWNLOAD_COMMAND") "DOWNLOAD_COMMAND echo")
11872 (("externalproject_add\\(libcereal") "message(")
11873 (("externalproject_add\\(libgff") "message(")
11874 (("externalproject_add\\(libtbb") "message(")
11875 (("externalproject_add\\(libdivsufsort") "message(")
11876 (("externalproject_add\\(libstadenio") "message(")
11877 (("externalproject_add_step\\(") "message("))
11878 (substitute* "src/CMakeLists.txt"
11879 (("add_dependencies") "#")
11880 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libstaden-read.a")
11881 (string-append (assoc-ref inputs "libstadenio-for-salmon")
11882 "/lib/libstaden-read.so"))
11883 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
11884 (string-append (assoc-ref inputs "libdivsufsort")
11885 "/lib/libdivsufsort.so"))
11886 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
11887 (string-append (assoc-ref inputs "libdivsufsort")
11888 "/lib/libdivsufsort64.so"))
11889 (("lib/libdivsufsort.a") "/lib/libdivsufsort.so"))
11890
11891 ;; Ensure that all headers can be found
11892 (setenv "CPATH"
11893 (string-append (getenv "CPATH")
11894 ":"
11895 (assoc-ref inputs "eigen")
11896 "/include/eigen3"))
11897 #t))
11898 ;; CMAKE_INSTALL_PREFIX does not exist when the tests are
11899 ;; run. It only exists after the install phase.
11900 (add-after 'unpack 'fix-tests
11901 (lambda _
11902 (substitute* "src/CMakeLists.txt"
11903 (("DTOPLEVEL_DIR=\\$\\{CMAKE_INSTALL_PREFIX")
11904 "DTOPLEVEL_DIR=${GAT_SOURCE_DIR"))
11905 #t)))))
11906 (inputs
11907 `(("boost" ,boost)
11908 ("bzip2" ,bzip2)
11909 ("cereal" ,cereal)
11910 ("eigen" ,eigen)
11911 ("rapmap" ,(origin
11912 (method git-fetch)
11913 (uri (git-reference
11914 (url "https://github.com/COMBINE-lab/RapMap.git")
11915 (commit (string-append "salmon-v" version))))
11916 (file-name (string-append "rapmap-salmon-v" version "-checkout"))
11917 (sha256
11918 (base32
11919 "1biplxf0csc7a8h1wf219b0vmjkvw6wk2zylhdklb577kgmihdms"))))
11920 ("jemalloc" ,jemalloc)
11921 ("libgff" ,libgff)
11922 ("tbb" ,tbb)
11923 ("libdivsufsort" ,libdivsufsort)
11924 ("libstadenio-for-salmon" ,libstadenio-for-salmon)
11925 ("xz" ,xz)
11926 ("zlib" ,zlib)))
11927 (native-inputs
11928 `(("pkg-config" ,pkg-config)))
11929 (home-page "https://github.com/COMBINE-lab/salmon")
11930 (synopsis "Quantification from RNA-seq reads using lightweight alignments")
11931 (description "Salmon is a program to produce highly-accurate,
11932 transcript-level quantification estimates from RNA-seq data. Salmon achieves
11933 its accuracy and speed via a number of different innovations, including the
11934 use of lightweight alignments (accurate but fast-to-compute proxies for
11935 traditional read alignments) and massively-parallel stochastic collapsed
11936 variational inference.")
11937 (license license:gpl3+)))
11938
11939 (define-public python-loompy
11940 (package
11941 (name "python-loompy")
11942 (version "2.0.17")
11943 ;; The tarball on Pypi does not include the tests.
11944 (source (origin
11945 (method git-fetch)
11946 (uri (git-reference
11947 (url "https://github.com/linnarsson-lab/loompy.git")
11948 (commit version)))
11949 (file-name (git-file-name name version))
11950 (sha256
11951 (base32
11952 "12a5kjgiikapv93wahfw0frszx1lblnppyz3vs5gy8fgmgngra07"))))
11953 (build-system python-build-system)
11954 (arguments
11955 `(#:phases
11956 (modify-phases %standard-phases
11957 (replace 'check
11958 (lambda _
11959 (setenv "PYTHONPATH"
11960 (string-append (getcwd) ":"
11961 (getenv "PYTHONPATH")))
11962 (invoke "pytest" "tests")
11963 #t)))))
11964 (propagated-inputs
11965 `(("python-h5py" ,python-h5py)
11966 ("python-numpy" ,python-numpy)
11967 ("python-pandas" ,python-pandas)
11968 ("python-scipy" ,python-scipy)))
11969 (native-inputs
11970 `(("python-pytest" ,python-pytest)))
11971 (home-page "https://github.com/linnarsson-lab/loompy")
11972 (synopsis "Work with .loom files for single-cell RNA-seq data")
11973 (description "The loom file format is an efficient format for very large
11974 omics datasets, consisting of a main matrix, optional additional layers, a
11975 variable number of row and column annotations. Loom also supports sparse
11976 graphs. This library makes it easy to work with @file{.loom} files for
11977 single-cell RNA-seq data.")
11978 (license license:bsd-3)))
11979
11980 ;; pigx-scrnaseq does not work with the latest version of loompy.
11981 (define-public python-loompy-for-pigx-scrnaseq
11982 (package (inherit python-loompy)
11983 (name "python-loompy")
11984 (version "2.0.3")
11985 (source (origin
11986 (method git-fetch)
11987 (uri (git-reference
11988 (url "https://github.com/linnarsson-lab/loompy.git")
11989 (commit (string-append "v" version))))
11990 (file-name (git-file-name name version))
11991 (sha256
11992 (base32
11993 "0pjyl532pl8sbv71yci6h0agchn0naw2qjcwj50n6afrsahbsag3"))))
11994 ;; There are none.
11995 (arguments '(#:tests? #f))))
11996
11997 ;; We cannot use the latest commit because it requires Java 9.
11998 (define-public java-forester
11999 (let ((commit "86b07efe302d5094b42deed9260f719a4c4ac2e6")
12000 (revision "1"))
12001 (package
12002 (name "java-forester")
12003 (version (string-append "0-" revision "." (string-take commit 7)))
12004 (source (origin
12005 (method git-fetch)
12006 (uri (git-reference
12007 (url "https://github.com/cmzmasek/forester.git")
12008 (commit commit)))
12009 (file-name (string-append name "-" version "-checkout"))
12010 (sha256
12011 (base32
12012 "0vxavc1yrf84yrnf20dq26hi0lglidk8d382xrxsy4qmlbjd276z"))
12013 (modules '((guix build utils)))
12014 (snippet
12015 '(begin
12016 ;; Delete bundled jars and pre-built classes
12017 (delete-file-recursively "forester/java/resources")
12018 (delete-file-recursively "forester/java/classes")
12019 (for-each delete-file (find-files "forester/java/" "\\.jar$"))
12020 ;; Delete bundled applications
12021 (delete-file-recursively "forester_applications")
12022 #t))))
12023 (build-system ant-build-system)
12024 (arguments
12025 `(#:tests? #f ; there are none
12026 #:jdk ,icedtea-8
12027 #:modules ((guix build ant-build-system)
12028 (guix build utils)
12029 (guix build java-utils)
12030 (sxml simple)
12031 (sxml transform))
12032 #:phases
12033 (modify-phases %standard-phases
12034 (add-after 'unpack 'chdir
12035 (lambda _ (chdir "forester/java") #t))
12036 (add-after 'chdir 'fix-dependencies
12037 (lambda _
12038 (chmod "build.xml" #o664)
12039 (call-with-output-file "build.xml.new"
12040 (lambda (port)
12041 (sxml->xml
12042 (pre-post-order
12043 (with-input-from-file "build.xml"
12044 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12045 `(;; Remove all unjar tags to avoid repacking classes.
12046 (unjar . ,(lambda _ '()))
12047 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12048 (*text* . ,(lambda (_ txt) txt))))
12049 port)))
12050 (rename-file "build.xml.new" "build.xml")
12051 #t))
12052 ;; FIXME: itext is difficult to package as it depends on a few
12053 ;; unpackaged libraries.
12054 (add-after 'chdir 'remove-dependency-on-unpackaged-itext
12055 (lambda _
12056 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12057 (substitute* "src/org/forester/archaeopteryx/MainFrame.java"
12058 (("pdf_written_to = PdfExporter.*")
12059 "throw new IOException(\"PDF export is not available.\");"))
12060 #t))
12061 ;; There is no install target
12062 (replace 'install (install-jars ".")))))
12063 (propagated-inputs
12064 `(("java-commons-codec" ,java-commons-codec)
12065 ("java-openchart2" ,java-openchart2)))
12066 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12067 (synopsis "Phylogenomics libraries for Java")
12068 (description "Forester is a collection of Java libraries for
12069 phylogenomics and evolutionary biology research. It includes support for
12070 reading, writing, and exporting phylogenetic trees.")
12071 (license license:lgpl2.1+))))
12072
12073 (define-public java-forester-1.005
12074 (package
12075 (name "java-forester")
12076 (version "1.005")
12077 (source (origin
12078 (method url-fetch)
12079 (uri (string-append "http://search.maven.org/remotecontent?"
12080 "filepath=org/biojava/thirdparty/forester/"
12081 version "/forester-" version "-sources.jar"))
12082 (file-name (string-append name "-" version ".jar"))
12083 (sha256
12084 (base32
12085 "04r8qv4rk3p71z4ajrvp11py1z46qrx0047j3zzs79s6lnsm3lcv"))))
12086 (build-system ant-build-system)
12087 (arguments
12088 `(#:tests? #f ; there are none
12089 #:jdk ,icedtea-8
12090 #:modules ((guix build ant-build-system)
12091 (guix build utils)
12092 (guix build java-utils)
12093 (sxml simple)
12094 (sxml transform))
12095 #:phases
12096 (modify-phases %standard-phases
12097 (add-after 'unpack 'fix-dependencies
12098 (lambda* (#:key inputs #:allow-other-keys)
12099 (call-with-output-file "build.xml"
12100 (lambda (port)
12101 (sxml->xml
12102 (pre-post-order
12103 (with-input-from-file "src/build.xml"
12104 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12105 `(;; Remove all unjar tags to avoid repacking classes.
12106 (unjar . ,(lambda _ '()))
12107 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12108 (*text* . ,(lambda (_ txt) txt))))
12109 port)))
12110 (copy-file (assoc-ref inputs "synth_look_and_feel_1.xml")
12111 "synth_look_and_feel_1.xml")
12112 (copy-file (assoc-ref inputs "phyloxml.xsd")
12113 "phyloxml.xsd")
12114 (substitute* "build.xml"
12115 (("../resources/synth_laf/synth_look_and_feel_1.xml")
12116 "synth_look_and_feel_1.xml")
12117 (("../resources/phyloxml_schema/1.10/phyloxml.xsd")
12118 "phyloxml.xsd"))
12119 #t))
12120 ;; FIXME: itext is difficult to package as it depends on a few
12121 ;; unpackaged libraries.
12122 (add-after 'unpack 'remove-dependency-on-unpackaged-itext
12123 (lambda _
12124 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12125 (substitute* '("src/org/forester/archaeopteryx/MainFrame.java"
12126 "src/org/forester/archaeopteryx/MainFrameApplication.java")
12127 (("pdf_written_to = PdfExporter.*")
12128 "throw new IOException(\"PDF export is not available.\"); /*")
12129 ((".getPrintSizeX\\(\\), getOptions\\(\\).getPrintSizeY\\(\\) \\);") "*/")
12130 (("getCurrentTreePanel\\(\\).getHeight\\(\\) \\);") "*/"))
12131 #t))
12132 (add-after 'unpack 'delete-pre-built-classes
12133 (lambda _ (delete-file-recursively "src/classes") #t))
12134 ;; There is no install target
12135 (replace 'install (install-jars ".")))))
12136 (propagated-inputs
12137 `(("java-commons-codec" ,java-commons-codec)
12138 ("java-openchart2" ,java-openchart2)))
12139 ;; The source archive does not contain the resources.
12140 (native-inputs
12141 `(("phyloxml.xsd"
12142 ,(origin
12143 (method url-fetch)
12144 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12145 "b61cc2dcede0bede317db362472333115756b8c6/"
12146 "forester/resources/phyloxml_schema/1.10/phyloxml.xsd"))
12147 (file-name (string-append name "-phyloxml-" version ".xsd"))
12148 (sha256
12149 (base32
12150 "1zxc4m8sn4n389nqdnpxa8d0k17qnr3pm2y5y6g6vh4k0zm52npv"))))
12151 ("synth_look_and_feel_1.xml"
12152 ,(origin
12153 (method url-fetch)
12154 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12155 "29e04321615da6b35c1e15c60e52caf3f21d8e6a/"
12156 "forester/java/classes/resources/synth_look_and_feel_1.xml"))
12157 (file-name (string-append name "-synth-look-and-feel-" version ".xml"))
12158 (sha256
12159 (base32
12160 "1gv5602gv4k7y7713y75a4jvj7i9s7nildsbdl7n9q10sc2ikg8h"))))))
12161 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12162 (synopsis "Phylogenomics libraries for Java")
12163 (description "Forester is a collection of Java libraries for
12164 phylogenomics and evolutionary biology research. It includes support for
12165 reading, writing, and exporting phylogenetic trees.")
12166 (license license:lgpl2.1+)))
12167
12168 (define-public java-biojava-core
12169 (package
12170 (name "java-biojava-core")
12171 (version "4.2.11")
12172 (source (origin
12173 (method git-fetch)
12174 (uri (git-reference
12175 (url "https://github.com/biojava/biojava")
12176 (commit (string-append "biojava-" version))))
12177 (file-name (string-append name "-" version "-checkout"))
12178 (sha256
12179 (base32
12180 "1bvryh2bpsvash8ln79cmc9sqm8qw72hz4xzwqxcrjm8ssxszhqk"))))
12181 (build-system ant-build-system)
12182 (arguments
12183 `(#:jdk ,icedtea-8
12184 #:jar-name "biojava-core.jar"
12185 #:source-dir "biojava-core/src/main/java/"
12186 #:test-dir "biojava-core/src/test"
12187 ;; These tests seem to require internet access.
12188 #:test-exclude (list "**/SearchIOTest.java"
12189 "**/BlastXMLParserTest.java"
12190 "**/GenbankCookbookTest.java"
12191 "**/GenbankProxySequenceReaderTest.java")
12192 #:phases
12193 (modify-phases %standard-phases
12194 (add-before 'build 'copy-resources
12195 (lambda _
12196 (copy-recursively "biojava-core/src/main/resources"
12197 "build/classes")
12198 #t))
12199 (add-before 'check 'copy-test-resources
12200 (lambda _
12201 (copy-recursively "biojava-core/src/test/resources"
12202 "build/test-classes")
12203 #t)))))
12204 (propagated-inputs
12205 `(("java-log4j-api" ,java-log4j-api)
12206 ("java-log4j-core" ,java-log4j-core)
12207 ("java-slf4j-api" ,java-slf4j-api)
12208 ("java-slf4j-simple" ,java-slf4j-simple)))
12209 (native-inputs
12210 `(("java-junit" ,java-junit)
12211 ("java-hamcrest-core" ,java-hamcrest-core)))
12212 (home-page "http://biojava.org")
12213 (synopsis "Core libraries of Java framework for processing biological data")
12214 (description "BioJava is a project dedicated to providing a Java framework
12215 for processing biological data. It provides analytical and statistical
12216 routines, parsers for common file formats, reference implementations of
12217 popular algorithms, and allows the manipulation of sequences and 3D
12218 structures. The goal of the biojava project is to facilitate rapid
12219 application development for bioinformatics.
12220
12221 This package provides the core libraries.")
12222 (license license:lgpl2.1+)))
12223
12224 (define-public java-biojava-phylo
12225 (package (inherit java-biojava-core)
12226 (name "java-biojava-phylo")
12227 (build-system ant-build-system)
12228 (arguments
12229 `(#:jdk ,icedtea-8
12230 #:jar-name "biojava-phylo.jar"
12231 #:source-dir "biojava-phylo/src/main/java/"
12232 #:test-dir "biojava-phylo/src/test"
12233 #:phases
12234 (modify-phases %standard-phases
12235 (add-before 'build 'copy-resources
12236 (lambda _
12237 (copy-recursively "biojava-phylo/src/main/resources"
12238 "build/classes")
12239 #t))
12240 (add-before 'check 'copy-test-resources
12241 (lambda _
12242 (copy-recursively "biojava-phylo/src/test/resources"
12243 "build/test-classes")
12244 #t)))))
12245 (propagated-inputs
12246 `(("java-log4j-api" ,java-log4j-api)
12247 ("java-log4j-core" ,java-log4j-core)
12248 ("java-slf4j-api" ,java-slf4j-api)
12249 ("java-slf4j-simple" ,java-slf4j-simple)
12250 ("java-biojava-core" ,java-biojava-core)
12251 ("java-forester" ,java-forester)))
12252 (native-inputs
12253 `(("java-junit" ,java-junit)
12254 ("java-hamcrest-core" ,java-hamcrest-core)))
12255 (home-page "http://biojava.org")
12256 (synopsis "Biojava interface to the forester phylogenomics library")
12257 (description "The phylo module provides a biojava interface layer to the
12258 forester phylogenomics library for constructing phylogenetic trees.")))
12259
12260 (define-public java-biojava-alignment
12261 (package (inherit java-biojava-core)
12262 (name "java-biojava-alignment")
12263 (build-system ant-build-system)
12264 (arguments
12265 `(#:jdk ,icedtea-8
12266 #:jar-name "biojava-alignment.jar"
12267 #:source-dir "biojava-alignment/src/main/java/"
12268 #:test-dir "biojava-alignment/src/test"
12269 #:phases
12270 (modify-phases %standard-phases
12271 (add-before 'build 'copy-resources
12272 (lambda _
12273 (copy-recursively "biojava-alignment/src/main/resources"
12274 "build/classes")
12275 #t))
12276 (add-before 'check 'copy-test-resources
12277 (lambda _
12278 (copy-recursively "biojava-alignment/src/test/resources"
12279 "build/test-classes")
12280 #t)))))
12281 (propagated-inputs
12282 `(("java-log4j-api" ,java-log4j-api)
12283 ("java-log4j-core" ,java-log4j-core)
12284 ("java-slf4j-api" ,java-slf4j-api)
12285 ("java-slf4j-simple" ,java-slf4j-simple)
12286 ("java-biojava-core" ,java-biojava-core)
12287 ("java-biojava-phylo" ,java-biojava-phylo)
12288 ("java-forester" ,java-forester)))
12289 (native-inputs
12290 `(("java-junit" ,java-junit)
12291 ("java-hamcrest-core" ,java-hamcrest-core)))
12292 (home-page "http://biojava.org")
12293 (synopsis "Biojava API for genetic sequence alignment")
12294 (description "The alignment module of BioJava provides an API that
12295 contains
12296
12297 @itemize
12298 @item implementations of dynamic programming algorithms for sequence
12299 alignment;
12300 @item reading and writing of popular alignment file formats;
12301 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12302 @end itemize\n")))
12303
12304 (define-public java-biojava-core-4.0
12305 (package (inherit java-biojava-core)
12306 (name "java-biojava-core")
12307 (version "4.0.0")
12308 (source (origin
12309 (method git-fetch)
12310 (uri (git-reference
12311 (url "https://github.com/biojava/biojava")
12312 (commit (string-append "biojava-" version))))
12313 (file-name (string-append name "-" version "-checkout"))
12314 (sha256
12315 (base32
12316 "13675f6y9aqi7bi2lk3s1z7a22ynccjiqwa8izh7p97xi9wsfmd8"))))))
12317
12318 (define-public java-biojava-phylo-4.0
12319 (package (inherit java-biojava-core-4.0)
12320 (name "java-biojava-phylo")
12321 (build-system ant-build-system)
12322 (arguments
12323 `(#:jdk ,icedtea-8
12324 #:jar-name "biojava-phylo.jar"
12325 #:source-dir "biojava-phylo/src/main/java/"
12326 #:test-dir "biojava-phylo/src/test"
12327 #:phases
12328 (modify-phases %standard-phases
12329 (add-before 'build 'copy-resources
12330 (lambda _
12331 (copy-recursively "biojava-phylo/src/main/resources"
12332 "build/classes")
12333 #t))
12334 (add-before 'check 'copy-test-resources
12335 (lambda _
12336 (copy-recursively "biojava-phylo/src/test/resources"
12337 "build/test-classes")
12338 #t)))))
12339 (propagated-inputs
12340 `(("java-log4j-api" ,java-log4j-api)
12341 ("java-log4j-core" ,java-log4j-core)
12342 ("java-slf4j-api" ,java-slf4j-api)
12343 ("java-slf4j-simple" ,java-slf4j-simple)
12344 ("java-biojava-core" ,java-biojava-core-4.0)
12345 ("java-forester" ,java-forester-1.005)))
12346 (native-inputs
12347 `(("java-junit" ,java-junit)
12348 ("java-hamcrest-core" ,java-hamcrest-core)))
12349 (home-page "http://biojava.org")
12350 (synopsis "Biojava interface to the forester phylogenomics library")
12351 (description "The phylo module provides a biojava interface layer to the
12352 forester phylogenomics library for constructing phylogenetic trees.")))
12353
12354 (define-public java-biojava-alignment-4.0
12355 (package (inherit java-biojava-core-4.0)
12356 (name "java-biojava-alignment")
12357 (build-system ant-build-system)
12358 (arguments
12359 `(#:jdk ,icedtea-8
12360 #:jar-name "biojava-alignment.jar"
12361 #:source-dir "biojava-alignment/src/main/java/"
12362 #:test-dir "biojava-alignment/src/test"
12363 #:phases
12364 (modify-phases %standard-phases
12365 (add-before 'build 'copy-resources
12366 (lambda _
12367 (copy-recursively "biojava-alignment/src/main/resources"
12368 "build/classes")
12369 #t))
12370 (add-before 'check 'copy-test-resources
12371 (lambda _
12372 (copy-recursively "biojava-alignment/src/test/resources"
12373 "build/test-classes")
12374 #t)))))
12375 (propagated-inputs
12376 `(("java-log4j-api" ,java-log4j-api)
12377 ("java-log4j-core" ,java-log4j-core)
12378 ("java-slf4j-api" ,java-slf4j-api)
12379 ("java-slf4j-simple" ,java-slf4j-simple)
12380 ("java-biojava-core" ,java-biojava-core-4.0)
12381 ("java-biojava-phylo" ,java-biojava-phylo-4.0)
12382 ("java-forester" ,java-forester-1.005)))
12383 (native-inputs
12384 `(("java-junit" ,java-junit)
12385 ("java-hamcrest-core" ,java-hamcrest-core)))
12386 (home-page "http://biojava.org")
12387 (synopsis "Biojava API for genetic sequence alignment")
12388 (description "The alignment module of BioJava provides an API that
12389 contains
12390
12391 @itemize
12392 @item implementations of dynamic programming algorithms for sequence
12393 alignment;
12394 @item reading and writing of popular alignment file formats;
12395 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12396 @end itemize\n")))
12397
12398 (define-public dropseq-tools
12399 (package
12400 (name "dropseq-tools")
12401 (version "1.13")
12402 (source
12403 (origin
12404 (method url-fetch)
12405 (uri "http://mccarrolllab.com/download/1276/")
12406 (file-name (string-append "dropseq-tools-" version ".zip"))
12407 (sha256
12408 (base32
12409 "0yrffckxqk5l8b5xb6z4laq157zd9mdypr2p4b4vq2bhjzi1sj0s"))
12410 ;; Delete bundled libraries
12411 (modules '((guix build utils)))
12412 (snippet
12413 '(begin
12414 (for-each delete-file (find-files "jar/lib" "\\.jar$"))
12415 (delete-file-recursively "3rdParty")
12416 #t))))
12417 (build-system ant-build-system)
12418 (arguments
12419 `(#:tests? #f ; test data are not included
12420 #:test-target "test"
12421 #:build-target "all"
12422 #:source-dir "public/src/"
12423 #:jdk ,icedtea-8
12424 #:make-flags
12425 (list (string-append "-Dpicard.executable.dir="
12426 (assoc-ref %build-inputs "java-picard")
12427 "/share/java/"))
12428 #:modules ((ice-9 match)
12429 (srfi srfi-1)
12430 (guix build utils)
12431 (guix build java-utils)
12432 (guix build ant-build-system))
12433 #:phases
12434 (modify-phases %standard-phases
12435 ;; FIXME: fails with "java.io.FileNotFoundException:
12436 ;; /gnu/store/…-dropseq-tools-1.13/share/java/lib/biojava-alignment.jar"
12437 (delete 'generate-jar-indices)
12438 ;; All dependencies must be linked to "lib", because that's where
12439 ;; they will be searched for when the Class-Path property of the
12440 ;; manifest is computed.
12441 (add-after 'unpack 'record-references
12442 (lambda* (#:key inputs #:allow-other-keys)
12443 (mkdir-p "jar/lib")
12444 (let ((dirs (filter-map (match-lambda
12445 ((name . dir)
12446 (if (and (string-prefix? "java-" name)
12447 (not (string=? name "java-testng")))
12448 dir #f)))
12449 inputs)))
12450 (for-each (lambda (jar)
12451 (symlink jar (string-append "jar/lib/" (basename jar))))
12452 (append-map (lambda (dir) (find-files dir "\\.jar$"))
12453 dirs)))
12454 #t))
12455 ;; There is no installation target
12456 (replace 'install
12457 (lambda* (#:key inputs outputs #:allow-other-keys)
12458 (let* ((out (assoc-ref outputs "out"))
12459 (bin (string-append out "/bin"))
12460 (share (string-append out "/share/java/"))
12461 (lib (string-append share "/lib/"))
12462 (scripts (list "BAMTagHistogram"
12463 "BAMTagofTagCounts"
12464 "BaseDistributionAtReadPosition"
12465 "CollapseBarcodesInPlace"
12466 "CollapseTagWithContext"
12467 "ConvertToRefFlat"
12468 "CreateIntervalsFiles"
12469 "DetectBeadSynthesisErrors"
12470 "DigitalExpression"
12471 "Drop-seq_alignment.sh"
12472 "FilterBAM"
12473 "FilterBAMByTag"
12474 "GatherGeneGCLength"
12475 "GatherMolecularBarcodeDistributionByGene"
12476 "GatherReadQualityMetrics"
12477 "PolyATrimmer"
12478 "ReduceGTF"
12479 "SelectCellsByNumTranscripts"
12480 "SingleCellRnaSeqMetricsCollector"
12481 "TagBamWithReadSequenceExtended"
12482 "TagReadWithGeneExon"
12483 "TagReadWithInterval"
12484 "TrimStartingSequence"
12485 "ValidateReference")))
12486 (for-each mkdir-p (list bin share lib))
12487 (install-file "dist/dropseq.jar" share)
12488 (for-each (lambda (script)
12489 (chmod script #o555)
12490 (install-file script bin))
12491 scripts)
12492 (substitute* (map (lambda (script)
12493 (string-append bin "/" script))
12494 scripts)
12495 (("^java") (which "java"))
12496 (("jar_deploy_dir=.*")
12497 (string-append "jar_deploy_dir=" share "\n"))))
12498 #t))
12499 ;; FIXME: We do this after stripping jars because we don't want it to
12500 ;; copy all these jars and strip them. We only want to install
12501 ;; links. Arguably, this is a problem with the ant-build-system.
12502 (add-after 'strip-jar-timestamps 'install-links
12503 (lambda* (#:key outputs #:allow-other-keys)
12504 (let* ((out (assoc-ref outputs "out"))
12505 (share (string-append out "/share/java/"))
12506 (lib (string-append share "/lib/")))
12507 (for-each (lambda (jar)
12508 (symlink (readlink jar)
12509 (string-append lib (basename jar))))
12510 (find-files "jar/lib" "\\.jar$")))
12511 #t)))))
12512 (inputs
12513 `(("jdk" ,icedtea-8)
12514 ("java-picard" ,java-picard-2.10.3)
12515 ("java-log4j-1.2-api" ,java-log4j-1.2-api)
12516 ("java-commons-math3" ,java-commons-math3)
12517 ("java-commons-jexl2" ,java-commons-jexl-2)
12518 ("java-commons-collections4" ,java-commons-collections4)
12519 ("java-commons-lang2" ,java-commons-lang)
12520 ("java-commons-io" ,java-commons-io)
12521 ("java-snappy-1.0.3-rc3" ,java-snappy-1)
12522 ("java-guava" ,java-guava)
12523 ("java-la4j" ,java-la4j)
12524 ("java-biojava-core" ,java-biojava-core-4.0)
12525 ("java-biojava-alignment" ,java-biojava-alignment-4.0)
12526 ("java-jdistlib" ,java-jdistlib)
12527 ("java-simple-xml" ,java-simple-xml)
12528 ("java-snakeyaml" ,java-snakeyaml)))
12529 (native-inputs
12530 `(("unzip" ,unzip)
12531 ("java-testng" ,java-testng)))
12532 (home-page "http://mccarrolllab.com/dropseq/")
12533 (synopsis "Tools for Drop-seq analyses")
12534 (description "Drop-seq is a technology to enable biologists to
12535 analyze RNA expression genome-wide in thousands of individual cells at
12536 once. This package provides tools to perform Drop-seq analyses.")
12537 (license license:expat)))
12538
12539 (define-public pigx-rnaseq
12540 (package
12541 (name "pigx-rnaseq")
12542 (version "0.0.10")
12543 (source (origin
12544 (method url-fetch)
12545 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_rnaseq/"
12546 "releases/download/v" version
12547 "/pigx_rnaseq-" version ".tar.gz"))
12548 (sha256
12549 (base32
12550 "0z3hr120wk2vrlmlpz1vp3n9wy3rq4y2mnzh2vf08qgqn2xfdwcw"))))
12551 (build-system gnu-build-system)
12552 (arguments
12553 `(#:parallel-tests? #f ; not supported
12554 #:phases
12555 (modify-phases %standard-phases
12556 ;; "test.sh" runs STAR, which requires excessive amounts of memory.
12557 (add-after 'unpack 'disable-resource-intensive-test
12558 (lambda _
12559 (substitute* "Makefile.in"
12560 (("(^ tests/test_trim_galore/test.sh).*" _ m) m)
12561 (("^ tests/test_multiqc/test.sh") "")
12562 (("^ test.sh") ""))
12563 #t)))))
12564 (inputs
12565 `(("coreutils" ,coreutils)
12566 ("sed" ,sed)
12567 ("gzip" ,gzip)
12568 ("snakemake" ,snakemake)
12569 ("fastqc" ,fastqc)
12570 ("multiqc" ,multiqc)
12571 ("star" ,star)
12572 ("trim-galore" ,trim-galore)
12573 ("htseq" ,htseq)
12574 ("samtools" ,samtools)
12575 ("r-minimal" ,r-minimal)
12576 ("r-rmarkdown" ,r-rmarkdown)
12577 ("r-ggplot2" ,r-ggplot2)
12578 ("r-ggrepel" ,r-ggrepel)
12579 ("r-gprofiler" ,r-gprofiler)
12580 ("r-deseq2" ,r-deseq2)
12581 ("r-dt" ,r-dt)
12582 ("r-knitr" ,r-knitr)
12583 ("r-pheatmap" ,r-pheatmap)
12584 ("r-corrplot" ,r-corrplot)
12585 ("r-reshape2" ,r-reshape2)
12586 ("r-plotly" ,r-plotly)
12587 ("r-scales" ,r-scales)
12588 ("r-summarizedexperiment" ,r-summarizedexperiment)
12589 ("r-crosstalk" ,r-crosstalk)
12590 ("r-tximport" ,r-tximport)
12591 ("r-rtracklayer" ,r-rtracklayer)
12592 ("r-rjson" ,r-rjson)
12593 ("salmon" ,salmon)
12594 ("ghc-pandoc" ,ghc-pandoc)
12595 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12596 ("python-wrapper" ,python-wrapper)
12597 ("python-pyyaml" ,python-pyyaml)))
12598 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12599 (synopsis "Analysis pipeline for RNA sequencing experiments")
12600 (description "PiGX RNAseq is an analysis pipeline for preprocessing and
12601 reporting for RNA sequencing experiments. It is easy to use and produces high
12602 quality reports. The inputs are reads files from the sequencing experiment,
12603 and a configuration file which describes the experiment. In addition to
12604 quality control of the experiment, the pipeline produces a differential
12605 expression report comparing samples in an easily configurable manner.")
12606 (license license:gpl3+)))
12607
12608 (define-public pigx-chipseq
12609 (package
12610 (name "pigx-chipseq")
12611 (version "0.0.41")
12612 (source (origin
12613 (method url-fetch)
12614 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_chipseq/"
12615 "releases/download/v" version
12616 "/pigx_chipseq-" version ".tar.gz"))
12617 (sha256
12618 (base32
12619 "0akbxdmsjsq5fzbwaap04hqjpsfgv1l6yrc2pwgbya1xgqvcq6vy"))))
12620 (build-system gnu-build-system)
12621 ;; parts of the tests rely on access to the network
12622 (arguments '(#:tests? #f))
12623 (inputs
12624 `(("grep" ,grep)
12625 ("coreutils" ,coreutils)
12626 ("r-minimal" ,r-minimal)
12627 ("r-argparser" ,r-argparser)
12628 ("r-biocparallel" ,r-biocparallel)
12629 ("r-biostrings" ,r-biostrings)
12630 ("r-chipseq" ,r-chipseq)
12631 ("r-data-table" ,r-data-table)
12632 ("r-dplyr" ,r-dplyr)
12633 ("r-genomation" ,r-genomation)
12634 ("r-genomicalignments" ,r-genomicalignments)
12635 ("r-genomicranges" ,r-genomicranges)
12636 ("r-rsamtools" ,r-rsamtools)
12637 ("r-rtracklayer" ,r-rtracklayer)
12638 ("r-s4vectors" ,r-s4vectors)
12639 ("r-stringr" ,r-stringr)
12640 ("r-tibble" ,r-tibble)
12641 ("r-tidyr" ,r-tidyr)
12642 ("r-jsonlite" ,r-jsonlite)
12643 ("r-heatmaply" ,r-heatmaply)
12644 ("r-htmlwidgets" ,r-htmlwidgets)
12645 ("r-ggplot2" ,r-ggplot2)
12646 ("r-plotly" ,r-plotly)
12647 ("r-rmarkdown" ,r-rmarkdown)
12648 ("python-wrapper" ,python-wrapper)
12649 ("python-pyyaml" ,python-pyyaml)
12650 ("python-magic" ,python-magic)
12651 ("python-xlrd" ,python-xlrd)
12652 ("trim-galore" ,trim-galore)
12653 ("macs" ,macs)
12654 ("multiqc" ,multiqc)
12655 ("perl" ,perl)
12656 ("ghc-pandoc" ,ghc-pandoc)
12657 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12658 ("fastqc" ,fastqc)
12659 ("bowtie" ,bowtie)
12660 ("idr" ,idr)
12661 ("snakemake" ,snakemake)
12662 ("samtools" ,samtools)
12663 ("bedtools" ,bedtools)
12664 ("kentutils" ,kentutils)))
12665 (native-inputs
12666 `(("python-pytest" ,python-pytest)))
12667 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12668 (synopsis "Analysis pipeline for ChIP sequencing experiments")
12669 (description "PiGX ChIPseq is an analysis pipeline for preprocessing, peak
12670 calling and reporting for ChIP sequencing experiments. It is easy to use and
12671 produces high quality reports. The inputs are reads files from the sequencing
12672 experiment, and a configuration file which describes the experiment. In
12673 addition to quality control of the experiment, the pipeline enables to set up
12674 multiple peak calling analysis and allows the generation of a UCSC track hub
12675 in an easily configurable manner.")
12676 (license license:gpl3+)))
12677
12678 (define-public pigx-bsseq
12679 (package
12680 (name "pigx-bsseq")
12681 (version "0.0.10")
12682 (source (origin
12683 (method url-fetch)
12684 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_bsseq/"
12685 "releases/download/v" version
12686 "/pigx_bsseq-" version ".tar.gz"))
12687 (sha256
12688 (base32
12689 "0l97wvkq4diq8lcarraj33bby1zzf0w804jwi8mlc5qddp8idwhy"))))
12690 (build-system gnu-build-system)
12691 (arguments
12692 `(#:phases
12693 (modify-phases %standard-phases
12694 (add-before 'check 'set-timezone
12695 ;; The readr package is picky about timezones.
12696 (lambda* (#:key inputs #:allow-other-keys)
12697 (setenv "TZ" "UTC+1")
12698 (setenv "TZDIR"
12699 (string-append (assoc-ref inputs "tzdata")
12700 "/share/zoneinfo"))
12701 #t)))))
12702 (native-inputs
12703 `(("tzdata" ,tzdata)))
12704 (inputs
12705 `(("coreutils" ,coreutils)
12706 ("sed" ,sed)
12707 ("grep" ,grep)
12708 ("r-minimal" ,r-minimal)
12709 ("r-annotationhub" ,r-annotationhub)
12710 ("r-dt" ,r-dt)
12711 ("r-genomation" ,r-genomation)
12712 ("r-methylkit" ,r-methylkit)
12713 ("r-rtracklayer" ,r-rtracklayer)
12714 ("r-rmarkdown" ,r-rmarkdown)
12715 ("r-bookdown" ,r-bookdown)
12716 ("r-ggplot2" ,r-ggplot2)
12717 ("r-ggbio" ,r-ggbio)
12718 ("ghc-pandoc" ,ghc-pandoc)
12719 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12720 ("python-wrapper" ,python-wrapper)
12721 ("python-pyyaml" ,python-pyyaml)
12722 ("snakemake" ,snakemake)
12723 ("bismark" ,bismark)
12724 ("fastqc" ,fastqc)
12725 ("bowtie" ,bowtie)
12726 ("trim-galore" ,trim-galore)
12727 ("cutadapt" ,cutadapt)
12728 ("samtools" ,samtools)))
12729 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12730 (synopsis "Bisulfite sequencing pipeline from fastq to methylation reports")
12731 (description "PiGx BSseq is a data processing pipeline for raw fastq read
12732 data of bisulfite experiments; it produces reports on aggregate methylation
12733 and coverage and can be used to produce information on differential
12734 methylation and segmentation.")
12735 (license license:gpl3+)))
12736
12737 (define-public pigx-scrnaseq
12738 (package
12739 (name "pigx-scrnaseq")
12740 (version "0.0.8")
12741 (source (origin
12742 (method url-fetch)
12743 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_scrnaseq/"
12744 "releases/download/v" version
12745 "/pigx_scrnaseq-" version ".tar.gz"))
12746 (sha256
12747 (base32
12748 "0zv0sc5amivxhb95vx2gfx6l9bh7n80fh7h47dalnwxxnfvnzai4"))))
12749 (build-system gnu-build-system)
12750 (arguments
12751 `(#:configure-flags
12752 (list (string-append "PICARDJAR=" (assoc-ref %build-inputs "java-picard")
12753 "/share/java/picard.jar")
12754 (string-append "DROPSEQJAR=" (assoc-ref %build-inputs "dropseq-tools")
12755 "/share/java/dropseq.jar"))))
12756 (inputs
12757 `(("coreutils" ,coreutils)
12758 ("perl" ,perl)
12759 ("dropseq-tools" ,dropseq-tools)
12760 ("fastqc" ,fastqc)
12761 ("java-picard" ,java-picard-2.10.3) ; same as for dropseq
12762 ("java" ,icedtea-8)
12763 ("python-wrapper" ,python-wrapper)
12764 ("python-pyyaml" ,python-pyyaml)
12765 ("python-pandas" ,python-pandas)
12766 ("python-magic" ,python-magic)
12767 ("python-numpy" ,python-numpy)
12768 ("python-loompy" ,python-loompy-for-pigx-scrnaseq)
12769 ("ghc-pandoc" ,ghc-pandoc)
12770 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12771 ("samtools" ,samtools)
12772 ("snakemake" ,snakemake)
12773 ("star" ,star)
12774 ("r-minimal" ,r-minimal)
12775 ("r-argparser" ,r-argparser)
12776 ("r-cowplot" ,r-cowplot)
12777 ("r-data-table" ,r-data-table)
12778 ("r-delayedarray" ,r-delayedarray)
12779 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
12780 ("r-dplyr" ,r-dplyr)
12781 ("r-dropbead" ,r-dropbead)
12782 ("r-dt" ,r-dt)
12783 ("r-genomicalignments" ,r-genomicalignments)
12784 ("r-genomicfiles" ,r-genomicfiles)
12785 ("r-genomicranges" ,r-genomicranges)
12786 ("r-ggplot2" ,r-ggplot2)
12787 ("r-hdf5array" ,r-hdf5array)
12788 ("r-pheatmap" ,r-pheatmap)
12789 ("r-rmarkdown" ,r-rmarkdown)
12790 ("r-rsamtools" ,r-rsamtools)
12791 ("r-rtracklayer" ,r-rtracklayer)
12792 ("r-rtsne" ,r-rtsne)
12793 ("r-scater" ,r-scater)
12794 ("r-scran" ,r-scran)
12795 ("r-singlecellexperiment" ,r-singlecellexperiment)
12796 ("r-stringr" ,r-stringr)
12797 ("r-yaml" ,r-yaml)))
12798 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12799 (synopsis "Analysis pipeline for single-cell RNA sequencing experiments")
12800 (description "PiGX scRNAseq is an analysis pipeline for preprocessing and
12801 quality control for single cell RNA sequencing experiments. The inputs are
12802 read files from the sequencing experiment, and a configuration file which
12803 describes the experiment. It produces processed files for downstream analysis
12804 and interactive quality reports. The pipeline is designed to work with UMI
12805 based methods.")
12806 (license license:gpl3+)))
12807
12808 (define-public pigx
12809 (package
12810 (name "pigx")
12811 (version "0.0.3")
12812 (source (origin
12813 (method url-fetch)
12814 (uri (string-append "https://github.com/BIMSBbioinfo/pigx/"
12815 "releases/download/v" version
12816 "/pigx-" version ".tar.gz"))
12817 (sha256
12818 (base32
12819 "1i5njdy1clj5ncw45d16p7mwmqvb1ilikl9n797pxklc3f4s7mq7"))))
12820 (build-system gnu-build-system)
12821 (inputs
12822 `(("python" ,python)
12823 ("pigx-bsseq" ,pigx-bsseq)
12824 ("pigx-chipseq" ,pigx-chipseq)
12825 ("pigx-rnaseq" ,pigx-rnaseq)
12826 ("pigx-scrnaseq" ,pigx-scrnaseq)))
12827 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12828 (synopsis "Analysis pipelines for genomics")
12829 (description "PiGx is a collection of genomics pipelines. It includes the
12830 following pipelines:
12831
12832 @itemize
12833 @item PiGx BSseq for raw fastq read data of bisulfite experiments
12834 @item PiGx RNAseq for RNAseq samples
12835 @item PiGx scRNAseq for single cell dropseq analysis
12836 @item PiGx ChIPseq for reads from ChIPseq experiments
12837 @end itemize
12838
12839 All pipelines are easily configured with a simple sample sheet and a
12840 descriptive settings file. The result is a set of comprehensive, interactive
12841 HTML reports with interesting findings about your samples.")
12842 (license license:gpl3+)))
12843
12844 (define-public genrich
12845 (package
12846 (name "genrich")
12847 (version "0.5")
12848 (source (origin
12849 (method git-fetch)
12850 (uri (git-reference
12851 (url "https://github.com/jsh58/Genrich.git")
12852 (commit (string-append "v" version))))
12853 (sha256
12854 (base32
12855 "0x0q6z0208n3cxzqjla4rgjqpyqgwpmz27852lcvzkzaigymq4zp"))))
12856 (build-system gnu-build-system)
12857 (arguments
12858 `(#:tests? #f ; there are none
12859 #:phases
12860 (modify-phases %standard-phases
12861 (delete 'configure)
12862 (replace 'install
12863 (lambda* (#:key outputs #:allow-other-keys)
12864 (install-file "Genrich" (string-append (assoc-ref outputs "out") "/bin"))
12865 #t)))))
12866 (inputs
12867 `(("zlib" ,zlib)))
12868 (home-page "https://github.com/jsh58/Genrich")
12869 (synopsis "Detecting sites of genomic enrichment")
12870 (description "Genrich is a peak-caller for genomic enrichment
12871 assays (e.g. ChIP-seq, ATAC-seq). It analyzes alignment files generated
12872 following the assay and produces a file detailing peaks of significant
12873 enrichment.")
12874 (license license:expat)))
12875
12876 (define-public mantis
12877 (let ((commit "4ffd171632c2cb0056a86d709dfd2bf21bc69b84")
12878 (revision "1"))
12879 (package
12880 (name "mantis")
12881 (version (git-version "0" revision commit))
12882 (source (origin
12883 (method git-fetch)
12884 (uri (git-reference
12885 (url "https://github.com/splatlab/mantis.git")
12886 (commit commit)))
12887 (file-name (git-file-name name version))
12888 (sha256
12889 (base32
12890 "0iqbr0dhmlc8mzpirmm2s4pkzkwdgrcx50yx6cv3wlr2qi064p55"))))
12891 (build-system cmake-build-system)
12892 (arguments '(#:tests? #f)) ; there are none
12893 (inputs
12894 `(("sdsl-lite" ,sdsl-lite)
12895 ("openssl" ,openssl)
12896 ("zlib" ,zlib)))
12897 (home-page "https://github.com/splatlab/mantis")
12898 (synopsis "Large-scale sequence-search index data structure")
12899 (description "Mantis is a space-efficient data structure that can be
12900 used to index thousands of raw-read genomics experiments and facilitate
12901 large-scale sequence searches on those experiments. Mantis uses counting
12902 quotient filters instead of Bloom filters, enabling rapid index builds and
12903 queries, small indexes, and exact results, i.e., no false positives or
12904 negatives. Furthermore, Mantis is also a colored de Bruijn graph
12905 representation, so it supports fast graph traversal and other topological
12906 analyses in addition to large-scale sequence-level searches.")
12907 ;; uses __uint128_t and inline assembly
12908 (supported-systems '("x86_64-linux"))
12909 (license license:bsd-3))))
12910
12911 (define-public r-diversitree
12912 (package
12913 (name "r-diversitree")
12914 (version "0.9-11")
12915 (source
12916 (origin
12917 (method url-fetch)
12918 (uri (cran-uri "diversitree" version))
12919 (sha256
12920 (base32
12921 "1jqfjmmaigq581l4zxysmkhld0xv6izlbr1hihf9zplkix36majc"))))
12922 (build-system r-build-system)
12923 (native-inputs
12924 `(("gfortran" ,gfortran)))
12925 (inputs `(("fftw" ,fftw) ("gsl" ,gsl)))
12926 (propagated-inputs
12927 `(("r-ape" ,r-ape)
12928 ("r-desolve" ,r-desolve)
12929 ("r-rcpp" ,r-rcpp)
12930 ("r-subplex" ,r-subplex)))
12931 (home-page "https://www.zoology.ubc.ca/prog/diversitree")
12932 (synopsis "Comparative 'phylogenetic' analyses of diversification")
12933 (description "This package contains a number of comparative \"phylogenetic\"
12934 methods, mostly focusing on analysing diversification and character evolution.
12935 Contains implementations of \"BiSSE\" (Binary State Speciation and Extinction)
12936 and its unresolved tree extensions, \"MuSSE\" (Multiple State Speciation and
12937 Extinction), \"QuaSSE\", \"GeoSSE\", and \"BiSSE-ness\" Other included methods
12938 include Markov models of discrete and continuous trait evolution and constant
12939 rate speciation and extinction.")
12940 (license license:gpl2+)))
12941
12942 (define-public sjcount
12943 ;; There is no tag for version 3.2, nor is there a release archive.
12944 (let ((commit "292d3917cadb3f6834c81e509c30e61cd7ead6e5")
12945 (revision "1"))
12946 (package
12947 (name "sjcount")
12948 (version (git-version "3.2" revision commit))
12949 (source (origin
12950 (method git-fetch)
12951 (uri (git-reference
12952 (url "https://github.com/pervouchine/sjcount-full.git")
12953 (commit commit)))
12954 (file-name (string-append name "-" version "-checkout"))
12955 (sha256
12956 (base32
12957 "0gdgj35j249f04rqgq8ymcc1xg1vi9kzbajnjqpaq2wpbh8bl234"))))
12958 (build-system gnu-build-system)
12959 (arguments
12960 `(#:tests? #f ; requires a 1.4G test file
12961 #:make-flags
12962 (list (string-append "SAMTOOLS_DIR="
12963 (assoc-ref %build-inputs "samtools")
12964 "/lib/"))
12965 #:phases
12966 (modify-phases %standard-phases
12967 (replace 'configure
12968 (lambda* (#:key inputs #:allow-other-keys)
12969 (substitute* "makefile"
12970 (("-I \\$\\{SAMTOOLS_DIR\\}")
12971 (string-append "-I" (assoc-ref inputs "samtools")
12972 "/include/samtools"))
12973 (("-lz ") "-lz -lpthread "))
12974 #t))
12975 (replace 'install
12976 (lambda* (#:key outputs #:allow-other-keys)
12977 (for-each (lambda (tool)
12978 (install-file tool
12979 (string-append (assoc-ref outputs "out")
12980 "/bin")))
12981 '("j_count" "b_count" "sjcount"))
12982 #t)))))
12983 (inputs
12984 `(("samtools" ,samtools-0.1)
12985 ("zlib" ,zlib)))
12986 (home-page "https://github.com/pervouchine/sjcount-full/")
12987 (synopsis "Annotation-agnostic splice junction counting pipeline")
12988 (description "Sjcount is a utility for fast quantification of splice
12989 junctions in RNA-seq data. It is annotation-agnostic and offset-aware. This
12990 version does count multisplits.")
12991 (license license:gpl3+))))
12992
12993 (define-public minimap2
12994 (package
12995 (name "minimap2")
12996 (version "2.10")
12997 (source
12998 (origin
12999 (method url-fetch)
13000 (uri (string-append "https://github.com/lh3/minimap2/"
13001 "releases/download/v" version "/"
13002 "minimap2-" version ".tar.bz2"))
13003 (sha256
13004 (base32
13005 "080w9066irkbhbyr4nmf19pzkdd2s4v31hpzlajgq2y0drr6zcsj"))))
13006 (build-system gnu-build-system)
13007 (arguments
13008 `(#:tests? #f ; there are none
13009 #:make-flags
13010 (list "CC=gcc"
13011 (let ((system ,(or (%current-target-system)
13012 (%current-system))))
13013 (cond
13014 ((string-prefix? "x86_64" system)
13015 "all")
13016 ((or (string-prefix? "armhf" system)
13017 (string-prefix? "aarch64" system))
13018 "arm_neon=1")
13019 (_ "sse2only=1"))))
13020 #:phases
13021 (modify-phases %standard-phases
13022 (delete 'configure)
13023 (replace 'install
13024 (lambda* (#:key outputs #:allow-other-keys)
13025 (let* ((out (assoc-ref outputs "out"))
13026 (bin (string-append out "/bin"))
13027 (man (string-append out "/share/man/man1")))
13028 (install-file "minimap2" bin)
13029 (mkdir-p man)
13030 (install-file "minimap2.1" man))
13031 #t)))))
13032 (inputs
13033 `(("zlib" ,zlib)))
13034 (home-page "https://lh3.github.io/minimap2/")
13035 (synopsis "Pairwise aligner for genomic and spliced nucleotide sequences")
13036 (description "Minimap2 is a versatile sequence alignment program that
13037 aligns DNA or mRNA sequences against a large reference database. Typical use
13038 cases include:
13039
13040 @enumerate
13041 @item mapping PacBio or Oxford Nanopore genomic reads to the human genome;
13042 @item finding overlaps between long reads with error rate up to ~15%;
13043 @item splice-aware alignment of PacBio Iso-Seq or Nanopore cDNA or Direct RNA
13044 reads against a reference genome;
13045 @item aligning Illumina single- or paired-end reads;
13046 @item assembly-to-assembly alignment;
13047 @item full-genome alignment between two closely related species with
13048 divergence below ~15%.
13049 @end enumerate\n")
13050 (license license:expat)))
13051
13052 (define-public r-circus
13053 (package
13054 (name "r-circus")
13055 (version "0.1.5")
13056 (source
13057 (origin
13058 (method git-fetch)
13059 (uri (git-reference
13060 (url "https://github.com/BIMSBbioinfo/ciRcus.git")
13061 (commit (string-append "v" version))))
13062 (file-name (git-file-name name version))
13063 (sha256
13064 (base32
13065 "0jhjn3ilb057hbf6yzrihj13ifxxs32y7nkby8l3lkm28dg4p97h"))))
13066 (build-system r-build-system)
13067 (propagated-inputs
13068 `(("r-annotationdbi" ,r-annotationdbi)
13069 ("r-annotationhub" ,r-annotationhub)
13070 ("r-biomart" ,r-biomart)
13071 ("r-data-table" ,r-data-table)
13072 ("r-dbi" ,r-dbi)
13073 ("r-genomicfeatures" ,r-genomicfeatures)
13074 ("r-genomicranges" ,r-genomicranges)
13075 ("r-ggplot2" ,r-ggplot2)
13076 ("r-hash" ,r-hash)
13077 ("r-iranges" ,r-iranges)
13078 ("r-rcolorbrewer" ,r-rcolorbrewer)
13079 ("r-rmysql" ,r-rmysql)
13080 ("r-s4vectors" ,r-s4vectors)
13081 ("r-stringr" ,r-stringr)
13082 ("r-summarizedexperiment" ,r-summarizedexperiment)))
13083 (native-inputs
13084 `(("r-knitr" ,r-knitr)))
13085 (home-page "https://github.com/BIMSBbioinfo/ciRcus")
13086 (synopsis "Annotation, analysis and visualization of circRNA data")
13087 (description "Circus is an R package for annotation, analysis and
13088 visualization of circRNA data. Users can annotate their circRNA candidates
13089 with host genes, gene featrues they are spliced from, and discriminate between
13090 known and yet unknown splice junctions. Circular-to-linear ratios of circRNAs
13091 can be calculated, and a number of descriptive plots easily generated.")
13092 (license license:artistic2.0)))
13093
13094 (define-public gffread
13095 ;; We cannot use the tagged release because it is not in sync with gclib.
13096 ;; See https://github.com/gpertea/gffread/issues/26
13097 (let ((commit "ba7535fcb3cea55a6e5a491d916e93b454e87fd0")
13098 (revision "1"))
13099 (package
13100 (name "gffread")
13101 (version (git-version "0.9.12" revision commit))
13102 (source
13103 (origin
13104 (method git-fetch)
13105 (uri (git-reference
13106 (url "https://github.com/gpertea/gffread.git")
13107 (commit commit)))
13108 (file-name (git-file-name name version))
13109 (sha256
13110 (base32
13111 "1dl2nbcg96lxpd0drg48ssa8343nf7pw9s9mkrc4mjjmfwsin3ki"))))
13112 (build-system gnu-build-system)
13113 (arguments
13114 `(#:tests? #f ; no check target
13115 #:make-flags
13116 (list "GCLDIR=gclib")
13117 #:phases
13118 (modify-phases %standard-phases
13119 (delete 'configure)
13120 (add-after 'unpack 'copy-gclib-source
13121 (lambda* (#:key inputs #:allow-other-keys)
13122 (mkdir-p "gclib")
13123 (copy-recursively (assoc-ref inputs "gclib-source") "gclib")
13124 #t))
13125 ;; There is no install target
13126 (replace 'install
13127 (lambda* (#:key outputs #:allow-other-keys)
13128 (let* ((out (assoc-ref outputs "out"))
13129 (bin (string-append out "/bin")))
13130 (install-file "gffread" bin))
13131 #t)))))
13132 (native-inputs
13133 `(("gclib-source"
13134 ,(let ((version "0.10.3")
13135 (commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
13136 (revision "1"))
13137 (origin
13138 (method git-fetch)
13139 (uri (git-reference
13140 (url "https://github.com/gpertea/gclib.git")
13141 (commit commit)))
13142 (file-name (git-file-name "gclib" version))
13143 (sha256
13144 (base32
13145 "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
13146 (home-page "https://github.com/gpertea/gffread/")
13147 (synopsis "Parse and convert GFF/GTF files")
13148 (description
13149 "This package provides a GFF/GTF file parsing utility providing format
13150 conversions, region filtering, FASTA sequence extraction and more.")
13151 ;; gffread is under Expat, but gclib is under Artistic 2.0
13152 (license (list license:expat
13153 license:artistic2.0)))))
13154
13155 (define-public find-circ
13156 ;; The last release was in 2015. The license was clarified in 2017, so we
13157 ;; take the latest commit.
13158 (let ((commit "8655dca54970fcf7e92e22fbf57e1188724dda7d")
13159 (revision "1"))
13160 (package
13161 (name "find-circ")
13162 (version (git-version "1.2" revision commit))
13163 (source
13164 (origin
13165 (method git-fetch)
13166 (uri (git-reference
13167 (url "https://github.com/marvin-jens/find_circ.git")
13168 (commit commit)))
13169 (file-name (git-file-name name version))
13170 (sha256
13171 (base32
13172 "0p77pbqbclqr4srms34y1b9b4njybfpjiknc11ki84f3p8skb3cg"))))
13173 (build-system gnu-build-system)
13174 (arguments
13175 `(#:tests? #f ; there are none
13176 #:phases
13177 ;; There is no actual build system.
13178 (modify-phases %standard-phases
13179 (delete 'configure)
13180 (delete 'build)
13181 (replace 'install
13182 (lambda* (#:key outputs #:allow-other-keys)
13183 (let* ((out (assoc-ref outputs "out"))
13184 (bin (string-append out "/bin"))
13185 (path (getenv "PYTHONPATH")))
13186 (for-each (lambda (script)
13187 (install-file script bin)
13188 (wrap-program (string-append bin "/" script)
13189 `("PYTHONPATH" ":" prefix (,path))))
13190 '("cmp_bed.py"
13191 "find_circ.py"
13192 "maxlength.py"
13193 "merge_bed.py"
13194 "unmapped2anchors.py")))
13195 #t)))))
13196 (inputs
13197 `(("python2" ,python-2)
13198 ("python2-pysam" ,python2-pysam)
13199 ("python2-numpy" ,python2-numpy)))
13200 (home-page "https://github.com/marvin-jens/find_circ")
13201 (synopsis "circRNA detection from RNA-seq reads")
13202 (description "This package provides tools to detect head-to-tail
13203 spliced (back-spliced) sequencing reads, indicative of circular RNA (circRNA)
13204 in RNA-seq data.")
13205 (license license:gpl3))))
13206
13207 (define-public python-scanpy
13208 (package
13209 (name "python-scanpy")
13210 (version "1.4")
13211 ;; Fetch from git because the pypi tarball does not include tests.
13212 (source
13213 (origin
13214 (method git-fetch)
13215 (uri (git-reference
13216 (url "https://github.com/theislab/scanpy.git")
13217 (commit version)))
13218 (file-name (git-file-name name version))
13219 (sha256
13220 (base32
13221 "0zn6x6c0cnm1a20i6isigwb51g3pr9zpjk8r1minjqnxi5yc9pm4"))))
13222 (build-system python-build-system)
13223 (arguments
13224 `(#:phases
13225 (modify-phases %standard-phases
13226 (replace 'check
13227 (lambda* (#:key inputs #:allow-other-keys)
13228 ;; These tests require Internet access.
13229 (delete-file-recursively "scanpy/tests/notebooks")
13230 (delete-file "scanpy/tests/test_clustering.py")
13231
13232 ;; TODO: I can't get the plotting tests to work, even with Xvfb.
13233 (delete-file "scanpy/tests/test_plotting.py")
13234 (delete-file "scanpy/tests/test_preprocessing.py")
13235 (delete-file "scanpy/tests/test_read_10x.py")
13236
13237 (setenv "PYTHONPATH"
13238 (string-append (getcwd) ":"
13239 (getenv "PYTHONPATH")))
13240 (invoke "pytest")
13241 #t)))))
13242 (propagated-inputs
13243 `(("python-anndata" ,python-anndata)
13244 ("python-h5py" ,python-h5py)
13245 ("python-igraph" ,python-igraph)
13246 ("python-joblib" ,python-joblib)
13247 ("python-louvain" ,python-louvain)
13248 ("python-matplotlib" ,python-matplotlib)
13249 ("python-natsort" ,python-natsort)
13250 ("python-networkx" ,python-networkx)
13251 ("python-numba" ,python-numba)
13252 ("python-pandas" ,python-pandas)
13253 ("python-scikit-learn" ,python-scikit-learn)
13254 ("python-scipy" ,python-scipy)
13255 ("python-seaborn" ,python-seaborn)
13256 ("python-statsmodels" ,python-statsmodels)
13257 ("python-tables" ,python-tables)))
13258 (native-inputs
13259 `(("python-pytest" ,python-pytest)))
13260 (home-page "https://github.com/theislab/scanpy")
13261 (synopsis "Single-Cell Analysis in Python.")
13262 (description "Scanpy is a scalable toolkit for analyzing single-cell gene
13263 expression data. It includes preprocessing, visualization, clustering,
13264 pseudotime and trajectory inference and differential expression testing. The
13265 Python-based implementation efficiently deals with datasets of more than one
13266 million cells.")
13267 (license license:bsd-3)))
13268
13269 (define-public python-bbknn
13270 (package
13271 (name "python-bbknn")
13272 (version "1.3.1")
13273 (source
13274 (origin
13275 (method url-fetch)
13276 (uri (pypi-uri "bbknn" version))
13277 (sha256
13278 (base32
13279 "1qgdganvj3lyxj84v7alm23b9vqhwpn8z0115qndpnpy90qxynwz"))))
13280 (build-system python-build-system)
13281 (propagated-inputs
13282 `(("python-annoy" ,python-annoy)
13283 ("python-cython" ,python-cython)
13284 ("python-faiss" ,python-faiss)
13285 ("python-numpy" ,python-numpy)
13286 ("python-scanpy" ,python-scanpy)))
13287 (home-page "https://github.com/Teichlab/bbknn")
13288 (synopsis "Batch balanced KNN")
13289 (description "BBKNN is a batch effect removal tool that can be directly
13290 used in the Scanpy workflow. It serves as an alternative to
13291 @code{scanpy.api.pp.neighbors()}, with both functions creating a neighbour
13292 graph for subsequent use in clustering, pseudotime and UMAP visualisation. If
13293 technical artifacts are present in the data, they will make it challenging to
13294 link corresponding cell types across different batches. BBKNN actively
13295 combats this effect by splitting your data into batches and finding a smaller
13296 number of neighbours for each cell within each of the groups. This helps
13297 create connections between analogous cells in different batches without
13298 altering the counts or PCA space.")
13299 (license license:expat)))
13300
13301 (define-public gffcompare
13302 (let ((commit "be56ef4349ea3966c12c6397f85e49e047361c41")
13303 (revision "1"))
13304 (package
13305 (name "gffcompare")
13306 (version (git-version "0.10.15" revision commit))
13307 (source
13308 (origin
13309 (method git-fetch)
13310 (uri (git-reference
13311 (url "https://github.com/gpertea/gffcompare/")
13312 (commit commit)))
13313 (file-name (git-file-name name version))
13314 (sha256
13315 (base32 "0cp5qpxdhw4mxpya5dld8wi3jk00zyklm6rcri426wydinrnfmkg"))))
13316 (build-system gnu-build-system)
13317 (arguments
13318 `(#:tests? #f ; no check target
13319 #:phases
13320 (modify-phases %standard-phases
13321 (delete 'configure)
13322 (add-before 'build 'copy-gclib-source
13323 (lambda* (#:key inputs #:allow-other-keys)
13324 (mkdir "../gclib")
13325 (copy-recursively
13326 (assoc-ref inputs "gclib-source") "../gclib")
13327 #t))
13328 (replace 'install
13329 (lambda* (#:key outputs #:allow-other-keys)
13330 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
13331 (install-file "gffcompare" bin)
13332 #t))))))
13333 (native-inputs
13334 `(("gclib-source" ; see 'README.md' of gffcompare
13335 ,(let ((commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
13336 (revision "1")
13337 (name "gclib")
13338 (version (git-version "0.10.3" revision commit)))
13339 (origin
13340 (method git-fetch)
13341 (uri (git-reference
13342 (url "https://github.com/gpertea/gclib/")
13343 (commit commit)))
13344 (file-name (git-file-name name version))
13345 (sha256
13346 (base32 "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
13347 (home-page "https://github.com/gpertea/gffcompare/")
13348 (synopsis "Tool for comparing or classifing transcripts of RNA-Seq")
13349 (description
13350 "@code{gffcompare} is a tool that can:
13351 @enumerate
13352 @item compare and evaluate the accuracy of RNA-Seq transcript assemblers
13353 (Cufflinks, Stringtie);
13354 @item collapse (merge) duplicate transcripts from multiple GTF/GFF3 files (e.g.
13355 resulted from assembly of different samples);
13356 @item classify transcripts from one or multiple GTF/GFF3 files as they relate to
13357 reference transcripts provided in a annotation file (also in GTF/GFF3 format).
13358 @end enumerate")
13359 (license
13360 (list
13361 license:expat ;license for gffcompare
13362 license:artistic2.0))))) ;license for gclib
13363
13364 (define-public python-intervaltree
13365 (package
13366 (name "python-intervaltree")
13367 (version "2.1.0")
13368 (source
13369 (origin
13370 (method url-fetch)
13371 (uri (pypi-uri "intervaltree" version))
13372 (sha256
13373 (base32
13374 "02w191m9zxkcjqr1kv2slxvhymwhj3jnsyy3a28b837pi15q19dc"))))
13375 (build-system python-build-system)
13376 ;; FIXME: error when collecting tests
13377 (arguments '(#:tests? #f))
13378 (propagated-inputs
13379 `(("python-sortedcontainers" ,python-sortedcontainers)))
13380 (native-inputs
13381 `(("python-pytest" ,python-pytest)))
13382 (home-page "https://github.com/chaimleib/intervaltree")
13383 (synopsis "Editable interval tree data structure")
13384 (description
13385 "This package provides a mutable, self-balancing interval tree
13386 implementation for Python. Queries may be by point, by range overlap, or by
13387 range envelopment. This library was designed to allow tagging text and time
13388 intervals, where the intervals include the lower bound but not the upper
13389 bound.")
13390 (license license:asl2.0)))
13391
13392 (define-public python-pypairix
13393 (package
13394 (name "python-pypairix")
13395 (version "0.3.6")
13396 (source
13397 (origin
13398 (method url-fetch)
13399 (uri (pypi-uri "pypairix" version))
13400 (sha256
13401 (base32
13402 "0zs92b74s5v4xy2h16s15f3z6l4nnbw8x8zyif7xx5xpafjn0xss"))))
13403 (build-system python-build-system)
13404 ;; FIXME: the tests fail because test.support cannot be loaded:
13405 ;; ImportError: cannot import name 'support'
13406 (arguments '(#:tests? #f))
13407 (inputs
13408 `(("zlib" ,zlib)))
13409 (home-page "https://github.com/4dn-dcic/pairix")
13410 (synopsis "Support for querying pairix-indexed bgzipped text files")
13411 (description
13412 "Pypairix is a Python module for fast querying on a pairix-indexed
13413 bgzipped text file that contains a pair of genomic coordinates per line.")
13414 (license license:expat)))
13415
13416 (define-public python-pyfaidx
13417 (package
13418 (name "python-pyfaidx")
13419 (version "0.5.4.2")
13420 (source
13421 (origin
13422 (method url-fetch)
13423 (uri (pypi-uri "pyfaidx" version))
13424 (sha256
13425 (base32
13426 "0y5zyjksj1rdglj601xd2bbni5abhdh622y3ck76chyzxz9z4rx8"))))
13427 (build-system python-build-system)
13428 (propagated-inputs
13429 `(("python-six" ,python-six)))
13430 (home-page "http://mattshirley.com")
13431 (synopsis "Random access to fasta subsequences")
13432 (description
13433 "This package provides procedures for efficient pythonic random access to
13434 fasta subsequences.")
13435 (license license:bsd-3)))
13436
13437 (define-public python-cooler
13438 (package
13439 (name "python-cooler")
13440 (version "0.7.11")
13441 (source
13442 (origin
13443 (method url-fetch)
13444 (uri (pypi-uri "cooler" version))
13445 (sha256
13446 (base32
13447 "08k5nxnxa6qsbk15z5z0q01n28042k87wi4905hh95rzqib15mhx"))))
13448 (build-system python-build-system)
13449 (propagated-inputs
13450 `(("python-biopython" ,python-biopython)
13451 ("python-click" ,python-click)
13452 ("python-cytoolz" ,python-cytoolz)
13453 ("python-dask" ,python-dask)
13454 ("python-h5py" ,python-h5py)
13455 ("python-multiprocess" ,python-multiprocess)
13456 ("python-pandas" ,python-pandas)
13457 ("python-pyfaidx" ,python-pyfaidx)
13458 ("python-pypairix" ,python-pypairix)
13459 ("python-pysam" ,python-pysam)
13460 ("python-scipy" ,python-scipy)))
13461 (native-inputs
13462 `(("python-mock" ,python-mock)
13463 ("python-nose" ,python-nose)
13464 ("python-numpydoc" ,python-numpydoc)
13465 ("python-sphinx" ,python-sphinx)))
13466 (home-page "https://github.com/mirnylab/cooler")
13467 (synopsis "Sparse binary format for genomic interaction matrices")
13468 (description
13469 "Cooler is a support library for a sparse, compressed, binary persistent
13470 storage format, called @code{cool}, used to store genomic interaction data,
13471 such as Hi-C contact matrices.")
13472 (license license:bsd-3)))
13473
13474 (define-public python-hicexplorer
13475 (package
13476 (name "python-hicexplorer")
13477 (version "2.1.4")
13478 (source
13479 (origin
13480 ;; The latest version is not available on Pypi.
13481 (method git-fetch)
13482 (uri (git-reference
13483 (url "https://github.com/deeptools/HiCExplorer.git")
13484 (commit version)))
13485 (file-name (git-file-name name version))
13486 (sha256
13487 (base32
13488 "0q5gpbzmrkvygqgw524q36b4nrivcmyi5v194vsx0qw7b3gcmq08"))))
13489 (build-system python-build-system)
13490 (arguments
13491 `(#:phases
13492 (modify-phases %standard-phases
13493 (add-after 'unpack 'loosen-up-requirements
13494 (lambda _
13495 (substitute* "setup.py"
13496 (("==") ">="))
13497 #t)))))
13498 (propagated-inputs
13499 `(("python-biopython" ,python-biopython)
13500 ("python-configparser" ,python-configparser)
13501 ("python-cooler" ,python-cooler)
13502 ("python-future" ,python-future)
13503 ("python-intervaltree" ,python-intervaltree)
13504 ("python-jinja2" ,python-jinja2)
13505 ("python-matplotlib" ,python-matplotlib)
13506 ("python-numpy" ,python-numpy)
13507 ("python-pandas" ,python-pandas)
13508 ("python-pybigwig" ,python-pybigwig)
13509 ("python-pysam" ,python-pysam)
13510 ("python-scipy" ,python-scipy)
13511 ("python-six" ,python-six)
13512 ("python-tables" ,python-tables)
13513 ("python-unidecode" ,python-unidecode)))
13514 (home-page "http://hicexplorer.readthedocs.io")
13515 (synopsis "Process, analyze and visualize Hi-C data")
13516 (description
13517 "HiCExplorer is a powerful and easy to use set of tools to process,
13518 normalize and visualize Hi-C data. HiCExplorer facilitates the creation of
13519 contact matrices, correction of contacts, TAD detection, A/B compartments,
13520 merging, reordering or chromosomes, conversion from different formats
13521 including cooler and detection of long-range contacts. Moreover, it allows
13522 the visualization of multiple contact matrices along with other types of data
13523 like genes, compartments, ChIP-seq coverage tracks (and in general any type of
13524 genomic scores), long range contacts and the visualization of viewpoints.")
13525 (license license:gpl3)))
13526
13527 (define-public python-pygenometracks
13528 (package
13529 (name "python-pygenometracks")
13530 (version "2.0")
13531 (source
13532 (origin
13533 (method url-fetch)
13534 (uri (pypi-uri "pyGenomeTracks" version))
13535 (sha256
13536 (base32
13537 "1fws6bqsyy9kj3qiabhkqx4wd4i775gsxnhszqd3zg7w67sc1ic5"))))
13538 (build-system python-build-system)
13539 (propagated-inputs
13540 `(("python-configparser" ,python-configparser)
13541 ("python-future" ,python-future)
13542 ("python-hicexplorer" ,python-hicexplorer)
13543 ("python-intervaltree" ,python-intervaltree)
13544 ("python-matplotlib" ,python-matplotlib)
13545 ("python-numpy" ,python-numpy)
13546 ("python-pybigwig" ,python-pybigwig)))
13547 (native-inputs
13548 `(("python-pytest" ,python-pytest)))
13549 (home-page "https://pygenometracks.readthedocs.io")
13550 (synopsis "Program and library to plot beautiful genome browser tracks")
13551 (description
13552 "This package aims to produce high-quality genome browser tracks that
13553 are highly customizable. Currently, it is possible to plot: bigwig, bed (many
13554 options), bedgraph, links (represented as arcs), and Hi-C matrices.
13555 pyGenomeTracks can make plots with or without Hi-C data.")
13556 (license license:gpl3+)))
13557
13558 (define-public python-hic2cool
13559 (package
13560 (name "python-hic2cool")
13561 (version "0.4.2")
13562 (source
13563 (origin
13564 (method url-fetch)
13565 (uri (pypi-uri "hic2cool" version))
13566 (sha256
13567 (base32
13568 "0xy6mhfns2lzib1kcr6419jjp6pmh0qx8z8na55lmiwn0ds8q9cl"))))
13569 (build-system python-build-system)
13570 (arguments '(#:tests? #f)) ; no tests included
13571 (propagated-inputs
13572 `(("python-cooler" ,python-cooler)))
13573 (home-page "https://github.com/4dn-dcic/hic2cool")
13574 (synopsis "Converter for .hic and .cool files")
13575 (description
13576 "This package provides a converter between @code{.hic} files (from
13577 juicer) and single-resolution or multi-resolution @code{.cool} files (for
13578 cooler). Both @code{hic} and @code{cool} files describe Hi-C contact
13579 matrices.")
13580 (license license:expat)))
13581
13582 (define-public r-pore
13583 (package
13584 (name "r-pore")
13585 (version "0.24")
13586 (source
13587 (origin
13588 (method url-fetch)
13589 (uri
13590 (string-append "mirror://sourceforge/rpore/" version
13591 "/poRe_" version ".tar.gz"))
13592 (sha256
13593 (base32 "0pih9nljbv8g4x8rkk29i7aqq681b782r5s5ynp4nw9yzqnmmksv"))))
13594 (properties `((upstream-name . "poRe")))
13595 (build-system r-build-system)
13596 (propagated-inputs
13597 `(("r-bit64" ,r-bit64)
13598 ("r-data-table" ,r-data-table)
13599 ("r-rhdf5" ,r-rhdf5)
13600 ("r-shiny" ,r-shiny)
13601 ("r-svdialogs" ,r-svdialogs)))
13602 (home-page "https://sourceforge.net/projects/rpore/")
13603 (synopsis "Visualize Nanopore sequencing data")
13604 (description
13605 "This package provides graphical user interfaces to organize and visualize Nanopore
13606 sequencing data.")
13607 ;; This is free software but the license variant is unclear:
13608 ;; <https://github.com/mw55309/poRe_docs/issues/10>.
13609 (license license:bsd-3)))
13610
13611 (define-public r-xbioc
13612 (let ((revision "1")
13613 (commit "6ff0670a37ab3036aaf1d94aa4b208310946b0b5"))
13614 (package
13615 (name "r-xbioc")
13616 (version (git-version "0.1.16" revision commit))
13617 (source (origin
13618 (method git-fetch)
13619 (uri (git-reference
13620 (url "https://github.com/renozao/xbioc.git")
13621 (commit commit)))
13622 (file-name (git-file-name name version))
13623 (sha256
13624 (base32
13625 "0w8bsq5myiwkfhh83nm6is5ichiyvwa1axx2szvxnzq39x6knf66"))))
13626 (build-system r-build-system)
13627 (propagated-inputs
13628 `(("r-annotationdbi" ,r-annotationdbi)
13629 ("r-assertthat" ,r-assertthat)
13630 ("r-biobase" ,r-biobase)
13631 ("r-biocmanager" ,r-biocmanager)
13632 ("r-digest" ,r-digest)
13633 ("r-pkgmaker" ,r-pkgmaker)
13634 ("r-plyr" ,r-plyr)
13635 ("r-reshape2" ,r-reshape2)
13636 ("r-stringr" ,r-stringr)))
13637 (home-page "https://github.com/renozao/xbioc/")
13638 (synopsis "Extra base functions for Bioconductor")
13639 (description "This package provides extra utility functions to perform
13640 common tasks in the analysis of omics data, leveraging and enhancing features
13641 provided by Bioconductor packages.")
13642 (license license:gpl3+))))
13643
13644 (define-public r-cssam
13645 (let ((revision "1")
13646 (commit "9ec58c982fa551af0d80b1a266890d92954833f2"))
13647 (package
13648 (name "r-cssam")
13649 (version (git-version "1.4" revision commit))
13650 (source (origin
13651 (method git-fetch)
13652 (uri (git-reference
13653 (url "https://github.com/shenorrLab/csSAM.git")
13654 (commit commit)))
13655 (file-name (git-file-name name version))
13656 (sha256
13657 (base32
13658 "128syf9v39gk0z3ip000qpsjbg6l1siyq6c8b0hz41dzg5achyb3"))))
13659 (build-system r-build-system)
13660 (propagated-inputs
13661 `(("r-formula" ,r-formula)
13662 ("r-ggplot2" ,r-ggplot2)
13663 ("r-pkgmaker" ,r-pkgmaker)
13664 ("r-plyr" ,r-plyr)
13665 ("r-rngtools" ,r-rngtools)
13666 ("r-scales" ,r-scales)))
13667 (home-page "https://github.com/shenorrLab/csSAM/")
13668 (synopsis "Cell type-specific statistical analysis of microarray")
13669 (description "This package implements the method csSAM that computes
13670 cell-specific differential expression from measured cell proportions using
13671 SAM.")
13672 ;; Any version
13673 (license license:lgpl2.1+))))
13674
13675 (define-public r-bseqsc
13676 (let ((revision "1")
13677 (commit "fef3f3e38dcf3df37103348b5780937982b43b98"))
13678 (package
13679 (name "r-bseqsc")
13680 (version (git-version "1.0" revision commit))
13681 (source (origin
13682 (method git-fetch)
13683 (uri (git-reference
13684 (url "https://github.com/shenorrLab/bseqsc.git")
13685 (commit commit)))
13686 (file-name (git-file-name name version))
13687 (sha256
13688 (base32
13689 "1prw13wa20f7wlc3gkkls66n1kxz8d28qrb8icfqdwdnnv8w5qg8"))))
13690 (build-system r-build-system)
13691 (propagated-inputs
13692 `(("r-abind" ,r-abind)
13693 ("r-annotationdbi" ,r-annotationdbi)
13694 ("r-biobase" ,r-biobase)
13695 ("r-cssam" ,r-cssam)
13696 ("r-dplyr" ,r-dplyr)
13697 ("r-e1071" ,r-e1071)
13698 ("r-edger" ,r-edger)
13699 ("r-ggplot2" ,r-ggplot2)
13700 ("r-nmf" ,r-nmf)
13701 ("r-openxlsx" ,r-openxlsx)
13702 ("r-pkgmaker" ,r-pkgmaker)
13703 ("r-plyr" ,r-plyr)
13704 ("r-preprocesscore" ,r-preprocesscore)
13705 ("r-rngtools" ,r-rngtools)
13706 ("r-scales" ,r-scales)
13707 ("r-stringr" ,r-stringr)
13708 ("r-xbioc" ,r-xbioc)))
13709 (home-page "https://github.com/shenorrLab/bseqsc")
13710 (synopsis "Deconvolution of bulk sequencing experiments using single cell data")
13711 (description "BSeq-sc is a bioinformatics analysis pipeline that
13712 leverages single-cell sequencing data to estimate cell type proportion and
13713 cell type-specific gene expression differences from RNA-seq data from bulk
13714 tissue samples. This is a companion package to the publication \"A
13715 single-cell transcriptomic map of the human and mouse pancreas reveals inter-
13716 and intra-cell population structure.\" Baron et al. Cell Systems (2016)
13717 @url{https://www.ncbi.nlm.nih.gov/pubmed/27667365}.")
13718 (license license:gpl2+))))
13719
13720 (define-public porechop
13721 ;; The recommended way to install is to clone the git repository
13722 ;; https://github.com/rrwick/Porechop#installation
13723 (let ((commit "289d5dca4a5fc327f97b3f8cecb68ecaf1014861")
13724 (revision "1"))
13725 (package
13726 (name "porechop")
13727 (version (git-version "0.2.3" revision commit))
13728 (source
13729 (origin
13730 (method git-fetch)
13731 (uri (git-reference
13732 (url "https://github.com/rrwick/Porechop.git")
13733 (commit commit)))
13734 (file-name (git-file-name name version))
13735 (sha256
13736 (base32 "05ps43gig0d3ia9x5lj84lb00hbsl6ba9n7y7jz927npxbr2ym23"))))
13737 (build-system python-build-system)
13738 (home-page "https://github.com/rrwick/porechop")
13739 (synopsis "Finding, trimming or splitting adapters, in Oxford Nanopore reads")
13740 (description
13741 "The porechop package is a tool for finding and removing adapters from Oxford
13742 Nanopore reads. Adapters on the ends of reads are trimmed off, and when a read
13743 has an adapter in its middle, it is treated as chimeric and chopped into
13744 separate reads. Porechop performs thorough alignments to effectively find
13745 adapters, even at low sequence identity. Porechop also supports demultiplexing
13746 of Nanopore reads that were barcoded with the Native Barcoding Kit, PCR
13747 Barcoding Kit or Rapid Barcoding Kit.")
13748 (license license:gpl3+))))
13749
13750 (define-public poretools
13751 ;; The latest release was in 2016 and the latest commit is from 2017
13752 ;; the recommended way to install is to clone the git repository
13753 ;; https://poretools.readthedocs.io/en/latest/content/installation.html
13754 (let ((commit "e426b1f09e86ac259a00c261c79df91510777407")
13755 (revision "1"))
13756 (package
13757 (name "poretools")
13758 (version (git-version "0.6.0" revision commit))
13759 (source
13760 (origin
13761 (method git-fetch)
13762 (uri (git-reference
13763 (url "https://github.com/arq5x/poretools.git")
13764 (commit commit)))
13765 (file-name (git-file-name name version))
13766 (sha256
13767 (base32 "0bglj833wxpp3cq430p1d3xp085ls221js2y90w7ir2x5ay8l7am"))))
13768 (build-system python-build-system)
13769 ;; requires python >=2.7, <3.0, and the same for python dependencies
13770 (arguments `(#:python ,python-2))
13771 (inputs
13772 `(("hdf5" ,hdf5)))
13773 (propagated-inputs
13774 `(("python-dateutil" ,python2-dateutil)
13775 ("python-h5py" ,python2-h5py)
13776 ("python-matplotlib" ,python2-matplotlib)
13777 ("python-pandas" ,python2-pandas)
13778 ("python-seaborn" ,python2-seaborn)))
13779 (home-page "https://poretools.readthedocs.io")
13780 (synopsis "Toolkit for working with nanopore sequencing data")
13781 (description
13782 "The MinION from Oxford Nanopore Technologies is a nanopore sequencer.
13783 This @code{poretools} package is a flexible toolkit for exploring datasets
13784 generated by nanopore sequencing devices for the purposes of quality control and
13785 downstream analysis. Poretools operates directly on the native FAST5, a variant
13786 of the Hierarchical Data Format (HDF5) standard.")
13787 (license license:expat))))
13788
13789 (define-public r-absfiltergsea
13790 (package
13791 (name "r-absfiltergsea")
13792 (version "1.5.1")
13793 (source
13794 (origin
13795 (method url-fetch)
13796 (uri (cran-uri "AbsFilterGSEA" version))
13797 (sha256
13798 (base32 "15srxkxsvn38kd5frdrwfdf0ad8gskrd0h01wmdf9hglq8fjrp7w"))))
13799 (properties `((upstream-name . "AbsFilterGSEA")))
13800 (build-system r-build-system)
13801 (propagated-inputs
13802 `(("r-biobase" ,r-biobase)
13803 ("r-deseq" ,r-deseq)
13804 ("r-limma" ,r-limma)
13805 ("r-rcpp" ,r-rcpp)
13806 ("r-rcpparmadillo" ,r-rcpparmadillo)))
13807 (home-page "https://cran.r-project.org/web/packages/AbsFilterGSEA/")
13808 (synopsis "Improved false positive control of gene-permuting with absolute filtering")
13809 (description
13810 "This package provides a function that performs gene-permuting of a gene-set
13811 enrichment analysis (GSEA) calculation with or without the absolute filtering.
13812 Without filtering, users can perform (original) two-tailed or one-tailed
13813 absolute GSEA.")
13814 (license license:gpl2)))
13815
13816 (define-public jamm
13817 (package
13818 (name "jamm")
13819 (version "1.0.7.5")
13820 (source
13821 (origin
13822 (method git-fetch)
13823 (uri (git-reference
13824 (url "https://github.com/mahmoudibrahim/JAMM.git")
13825 (commit (string-append "JAMMv" version))))
13826 (file-name (git-file-name name version))
13827 (sha256
13828 (base32
13829 "0ls889jcma1ch9h21jjhnkadgszgqj41842hhcjh6cg88f85qf3i"))))
13830 (build-system gnu-build-system)
13831 (arguments
13832 `(#:tests? #f ; there are none
13833 #:phases
13834 (modify-phases %standard-phases
13835 (delete 'configure)
13836 (delete 'build)
13837 (replace 'install
13838 (lambda* (#:key inputs outputs #:allow-other-keys)
13839 (let* ((out (assoc-ref outputs "out"))
13840 (libexec (string-append out "/libexec/jamm"))
13841 (bin (string-append out "/bin")))
13842 (substitute* '("JAMM.sh"
13843 "SignalGenerator.sh")
13844 (("^sPath=.*")
13845 (string-append "sPath=\"" libexec "\"\n")))
13846 (for-each (lambda (file)
13847 (install-file file libexec))
13848 (list "bincalculator.r"
13849 "peakfinder.r"
13850 "peakhelper.r"
13851 "signalmaker.r"
13852 "xcorr.r"
13853 "xcorrhelper.r"
13854 ;; Perl scripts
13855 "peakfilter.pl"
13856 "readshifter.pl"))
13857
13858 (for-each
13859 (lambda (script)
13860 (chmod script #o555)
13861 (install-file script bin)
13862 (wrap-program (string-append bin "/" script)
13863 `("PATH" ":" prefix
13864 (,(string-append (assoc-ref inputs "coreutils") "/bin")
13865 ,(string-append (assoc-ref inputs "gawk") "/bin")
13866 ,(string-append (assoc-ref inputs "perl") "/bin")
13867 ,(string-append (assoc-ref inputs "r-minimal") "/bin")))
13868 `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB")))
13869 `("R_LIBS_SITE" ":" prefix (,(getenv "R_LIBS_SITE")))))
13870 (list "JAMM.sh" "SignalGenerator.sh")))
13871 #t)))))
13872 (inputs
13873 `(("bash" ,bash)
13874 ("coreutils" ,coreutils)
13875 ("gawk" ,gawk)
13876 ("perl" ,perl)
13877 ("r-minimal" ,r-minimal)
13878 ;;("r-parallel" ,r-parallel)
13879 ("r-signal" ,r-signal)
13880 ("r-mclust" ,r-mclust)))
13881 (home-page "https://github.com/mahmoudibrahim/JAMM")
13882 (synopsis "Peak finder for NGS datasets")
13883 (description
13884 "JAMM is a peak finder for next generation sequencing datasets (ChIP-Seq,
13885 ATAC-Seq, DNase-Seq, etc.) that can integrate replicates and assign peak
13886 boundaries accurately. JAMM is applicable to both broad and narrow
13887 datasets.")
13888 (license license:gpl3+)))
13889
13890 (define-public ngless
13891 (package
13892 (name "ngless")
13893 (version "0.9.1")
13894 (source
13895 (origin
13896 (method git-fetch)
13897 (uri (git-reference
13898 (url "https://gitlab.com/ngless/ngless.git")
13899 (commit (string-append "v" version))))
13900 (file-name (git-file-name name version))
13901 (sha256
13902 (base32
13903 "0mc2gi7h4lx74zylvyp76mvc0w6706j858ii9vlgzqsw6acpr117"))))
13904 (build-system haskell-build-system)
13905 (arguments
13906 `(#:haddock? #f ; The haddock phase fails with: NGLess/CmdArgs.hs:20:1:
13907 ; error: parse error on input import
13908 ; import Options.Applicative
13909 #:phases
13910 (modify-phases %standard-phases
13911 (add-after 'unpack 'create-cabal-file
13912 (lambda _ (invoke "hpack") #t))
13913 ;; These tools are expected to be installed alongside ngless.
13914 (add-after 'install 'link-tools
13915 (lambda* (#:key inputs outputs #:allow-other-keys)
13916 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
13917 (symlink (string-append (assoc-ref inputs "prodigal")
13918 "/bin/prodigal")
13919 (string-append bin "ngless-" ,version "-prodigal"))
13920 (symlink (string-append (assoc-ref inputs "minimap2")
13921 "/bin/minimap2")
13922 (string-append bin "ngless-" ,version "-minimap2"))
13923 (symlink (string-append (assoc-ref inputs "samtools")
13924 "/bin/samtools")
13925 (string-append bin "ngless-" ,version "-samtools"))
13926 (symlink (string-append (assoc-ref inputs "bwa")
13927 "/bin/bwa")
13928 (string-append bin "ngless-" ,version "-bwa"))
13929 #t))))))
13930 (inputs
13931 `(("prodigal" ,prodigal)
13932 ("bwa" ,bwa)
13933 ("samtools" ,samtools)
13934 ("minimap2" ,minimap2)
13935 ("ghc-aeson" ,ghc-aeson)
13936 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
13937 ("ghc-async" ,ghc-async)
13938 ("ghc-atomic-write" ,ghc-atomic-write)
13939 ("ghc-bytestring-lexing" ,ghc-bytestring-lexing)
13940 ("ghc-chart" ,ghc-chart)
13941 ("ghc-chart-cairo" ,ghc-chart-cairo)
13942 ("ghc-conduit" ,ghc-conduit)
13943 ("ghc-conduit-algorithms" ,ghc-conduit-algorithms)
13944 ("ghc-conduit-combinators" ,ghc-conduit-combinators)
13945 ("ghc-conduit-extra" ,ghc-conduit-extra)
13946 ("ghc-configurator" ,ghc-configurator)
13947 ("ghc-convertible" ,ghc-convertible)
13948 ("ghc-data-default" ,ghc-data-default)
13949 ("ghc-double-conversion" ,ghc-double-conversion)
13950 ("ghc-edit-distance" ,ghc-edit-distance)
13951 ("ghc-either" ,ghc-either)
13952 ("ghc-errors" ,ghc-errors)
13953 ("ghc-extra" ,ghc-extra)
13954 ("ghc-filemanip" ,ghc-filemanip)
13955 ("ghc-file-embed" ,ghc-file-embed)
13956 ("ghc-gitrev" ,ghc-gitrev)
13957 ("ghc-hashtables" ,ghc-hashtables)
13958 ("ghc-http-conduit" ,ghc-http-conduit)
13959 ("ghc-inline-c" ,ghc-inline-c)
13960 ("ghc-inline-c-cpp" ,ghc-inline-c-cpp)
13961 ("ghc-intervalmap" ,ghc-intervalmap)
13962 ("ghc-missingh" ,ghc-missingh)
13963 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
13964 ("ghc-regex" ,ghc-regex)
13965 ("ghc-safe" ,ghc-safe)
13966 ("ghc-safeio" ,ghc-safeio)
13967 ("ghc-strict" ,ghc-strict)
13968 ("ghc-tar" ,ghc-tar)
13969 ("ghc-unliftio" ,ghc-unliftio)
13970 ("ghc-unliftio-core" ,ghc-unliftio-core)
13971 ("ghc-vector" ,ghc-vector)
13972 ("ghc-yaml" ,ghc-yaml)
13973 ("ghc-zlib" ,ghc-zlib)))
13974 (propagated-inputs
13975 `(("r-r6" ,r-r6)
13976 ("r-hdf5r" ,r-hdf5r)
13977 ("r-iterators" ,r-iterators)
13978 ("r-itertools" ,r-itertools)
13979 ("r-matrix" ,r-matrix)))
13980 (native-inputs
13981 `(("ghc-hpack" ,ghc-hpack)
13982 ("ghc-quickcheck" ,ghc-quickcheck)
13983 ("ghc-test-framework" ,ghc-test-framework)
13984 ("ghc-test-framework-hunit",ghc-test-framework-hunit)
13985 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
13986 ("ghc-test-framework-th" ,ghc-test-framework-th)))
13987 (home-page "https://gitlab.com/ngless/ngless")
13988 (synopsis "DSL for processing next-generation sequencing data")
13989 (description "Ngless is a domain-specific language for
13990 @dfn{next-generation sequencing} (NGS) data processing.")
13991 (license license:expat)))
13992
13993 (define-public filtlong
13994 ;; The recommended way to install is to clone the git repository
13995 ;; https://github.com/rrwick/Filtlong#installation
13996 ;; and the lastest release is more than nine months old
13997 (let ((commit "d1bb46dfe8bc7efe6257b5ce222c04bfe8aedaab")
13998 (revision "1"))
13999 (package
14000 (name "filtlong")
14001 (version (git-version "0.2.0" revision commit))
14002 (source
14003 (origin
14004 (method git-fetch)
14005 (uri (git-reference
14006 (url "https://github.com/rrwick/Filtlong.git")
14007 (commit commit)))
14008 (file-name (git-file-name name version))
14009 (sha256
14010 (base32 "1xr92r820x8qlkcr3b57iw223yq8vjgyi42jr79w2xgw47qzr575"))))
14011 (build-system gnu-build-system)
14012 (arguments
14013 `(#:tests? #f ; no check target
14014 #:phases
14015 (modify-phases %standard-phases
14016 (delete 'configure)
14017 (replace 'install
14018 (lambda* (#:key outputs #:allow-other-keys)
14019 (let* ((out (assoc-ref outputs "out"))
14020 (bin (string-append out "/bin"))
14021 (scripts (string-append out "/share/filtlong/scripts")))
14022 (install-file "bin/filtlong" bin)
14023 (install-file "scripts/histogram.py" scripts)
14024 (install-file "scripts/read_info_histograms.sh" scripts))
14025 #t))
14026 (add-after 'install 'wrap-program
14027 (lambda* (#:key inputs outputs #:allow-other-keys)
14028 (let* ((out (assoc-ref outputs "out"))
14029 (path (getenv "PYTHONPATH")))
14030 (wrap-program (string-append out
14031 "/share/filtlong/scripts/histogram.py")
14032 `("PYTHONPATH" ":" prefix (,path))))
14033 #t))
14034 (add-before 'check 'patch-tests
14035 (lambda _
14036 (substitute* "scripts/read_info_histograms.sh"
14037 (("awk") (which "gawk")))
14038 #t)))))
14039 (inputs
14040 `(("gawk" ,gawk) ;for read_info_histograms.sh
14041 ("python" ,python-2) ;required for histogram.py
14042 ("zlib" ,zlib)))
14043 (home-page "https://github.com/rrwick/Filtlong/")
14044 (synopsis "Tool for quality filtering of Nanopore and PacBio data")
14045 (description
14046 "The Filtlong package is a tool for filtering long reads by quality.
14047 It can take a set of long reads and produce a smaller, better subset. It uses
14048 both read length (longer is better) and read identity (higher is better) when
14049 choosing which reads pass the filter.")
14050 (license (list license:gpl3 ;filtlong
14051 license:asl2.0))))) ;histogram.py
14052
14053 (define-public nanopolish
14054 ;; The recommended way to install is to clone the git repository
14055 ;; <https://github.com/jts/nanopolish#installing-a-particular-release>.
14056 ;; Also, the differences between release and current version seem to be
14057 ;; significant.
14058 (let ((commit "6331dc4f15b9dfabb954ba3fae9d76b6c3ca6377")
14059 (revision "1"))
14060 (package
14061 (name "nanopolish")
14062 (version (git-version "0.11.1" revision commit))
14063 (source
14064 (origin
14065 (method git-fetch)
14066 (uri (git-reference
14067 (url "https://github.com/jts/nanopolish.git")
14068 (commit commit)
14069 (recursive? #t)))
14070 (file-name (git-file-name name version))
14071 (sha256
14072 (base32 "15ikl3d37y49pwd7vx36xksgsqajhf24q7qqsnpl15dqqyy5qgbc"))
14073 (modules '((guix build utils)))
14074 (snippet
14075 '(begin
14076 (delete-file-recursively "htslib")
14077 #t))))
14078 (build-system gnu-build-system)
14079 (arguments
14080 `(#:make-flags
14081 `("HDF5=noinstall" "EIGEN=noinstall" "HTS=noinstall" "CC=gcc")
14082 #:tests? #f ; no check target
14083 #:phases
14084 (modify-phases %standard-phases
14085 (add-after 'unpack 'find-eigen
14086 (lambda* (#:key inputs #:allow-other-keys)
14087 (setenv "CPATH"
14088 (string-append (assoc-ref inputs "eigen")
14089 "/include/eigen3:"
14090 (or (getenv "CPATH") "")))
14091 #t))
14092 (delete 'configure)
14093 (replace 'install
14094 (lambda* (#:key outputs #:allow-other-keys)
14095 (let* ((out (assoc-ref outputs "out"))
14096 (bin (string-append out "/bin"))
14097 (scripts (string-append out "/share/nanopolish/scripts")))
14098
14099 (install-file "nanopolish" bin)
14100 (for-each (lambda (file) (install-file file scripts))
14101 (find-files "scripts" ".*"))
14102 #t)))
14103 (add-after 'install 'wrap-programs
14104 (lambda* (#:key outputs #:allow-other-keys)
14105 (for-each (lambda (file)
14106 (wrap-program file `("PYTHONPATH" ":" prefix (,path))))
14107 (find-files "/share/nanopolish/scripts" "\\.py"))
14108 (for-each (lambda (file)
14109 (wrap-program file `("PERL5LIB" ":" prefix (,path))))
14110 (find-files "/share/nanopolish/scripts" "\\.pl"))
14111 #t)))))
14112 (inputs
14113 `(("eigen" ,eigen)
14114 ("hdf5" ,hdf5)
14115 ("htslib" ,htslib)
14116 ("perl" ,perl)
14117 ("python" ,python-wrapper)
14118 ("python-biopython" ,python-biopython)
14119 ("python-numpy" ,python-numpy)
14120 ("python-pysam" ,python-pysam)
14121 ("python-scikit-learn" , python-scikit-learn)
14122 ("python-scipy" ,python-scipy)
14123 ("zlib" ,zlib)))
14124 (home-page "https://github.com/jts/nanopolish")
14125 (synopsis "Signal-level analysis of Oxford Nanopore sequencing data")
14126 (description
14127 "This package analyses the Oxford Nanopore sequencing data at signal-level.
14128 Nanopolish can calculate an improved consensus sequence for a draft genome
14129 assembly, detect base modifications, call SNPs (Single nucleotide
14130 polymorphisms) and indels with respect to a reference genome and more.")
14131 (license license:expat))))
14132
14133 (define-public cnvkit
14134 (package
14135 (name "cnvkit")
14136 (version "0.9.5")
14137 (source
14138 (origin
14139 (method git-fetch)
14140 (uri (git-reference
14141 (url "https://github.com/etal/cnvkit.git")
14142 (commit (string-append "v" version))))
14143 (file-name (git-file-name name version))
14144 (sha256
14145 (base32 "0g2f78k68yglmj4fsfmgs8idqv3di9aj53fg0ld0hqljg8chhh82"))))
14146 (build-system python-build-system)
14147 (propagated-inputs
14148 `(("python-biopython" ,python-biopython)
14149 ("python-future" ,python-future)
14150 ("python-matplotlib" ,python-matplotlib)
14151 ("python-numpy" ,python-numpy)
14152 ("python-reportlab" ,python-reportlab)
14153 ("python-pandas" ,python-pandas)
14154 ("python-pysam" ,python-pysam)
14155 ("python-pyfaidx" ,python-pyfaidx)
14156 ("python-scipy" ,python-scipy)
14157 ;; R packages
14158 ("r-dnacopy" ,r-dnacopy)))
14159 (home-page "https://cnvkit.readthedocs.org/")
14160 (synopsis "Copy number variant detection from targeted DNA sequencing")
14161 (description
14162 "CNVkit is a Python library and command-line software toolkit to infer
14163 and visualize copy number from high-throughput DNA sequencing data. It is
14164 designed for use with hybrid capture, including both whole-exome and custom
14165 target panels, and short-read sequencing platforms such as Illumina and Ion
14166 Torrent.")
14167 (license license:asl2.0)))
14168
14169 (define-public python-pyfit-sne
14170 (package
14171 (name "python-pyfit-sne")
14172 (version "1.0.1")
14173 (source
14174 (origin
14175 (method git-fetch)
14176 (uri (git-reference
14177 (url "https://github.com/KlugerLab/pyFIt-SNE.git")
14178 (commit version)))
14179 (file-name (git-file-name name version))
14180 (sha256
14181 (base32 "13wh3qkzs56azmmgnxib6xfr29g7xh09sxylzjpni5j0pp0rc5qw"))))
14182 (build-system python-build-system)
14183 (propagated-inputs
14184 `(("python-numpy" ,python-numpy)))
14185 (inputs
14186 `(("fftw" ,fftw)))
14187 (native-inputs
14188 `(("python-cython" ,python-cython)))
14189 (home-page "https://github.com/KlugerLab/pyFIt-SNE")
14190 (synopsis "FFT-accelerated Interpolation-based t-SNE")
14191 (description
14192 "t-Stochastic Neighborhood Embedding (t-SNE) is a highly successful
14193 method for dimensionality reduction and visualization of high dimensional
14194 datasets. A popular implementation of t-SNE uses the Barnes-Hut algorithm to
14195 approximate the gradient at each iteration of gradient descent. This package
14196 is a Cython wrapper for FIt-SNE.")
14197 (license license:bsd-4)))
14198
14199 (define-public bbmap
14200 (package
14201 (name "bbmap")
14202 (version "35.82")
14203 (source (origin
14204 (method url-fetch)
14205 (uri (string-append
14206 "mirror://sourceforge/bbmap/BBMap_" version ".tar.gz"))
14207 (sha256
14208 (base32
14209 "1q4rfhxcb6z3gm8zg2davjz98w22lkf4hm9ikxz9kdl93pil3wkd"))))
14210 (build-system ant-build-system)
14211 (arguments
14212 `(#:build-target "dist"
14213 #:tests? #f ; there are none
14214 #:make-flags
14215 (list (string-append "-Dmpijar="
14216 (assoc-ref %build-inputs "java-openmpi")
14217 "/lib/mpi.jar"))
14218 #:modules ((guix build ant-build-system)
14219 (guix build utils)
14220 (guix build java-utils))
14221 #:phases
14222 (modify-phases %standard-phases
14223 (add-after 'build 'build-jni-library
14224 (lambda _
14225 (with-directory-excursion "jni"
14226 (invoke "make" "-f" "makefile.linux"))))
14227 ;; There is no install target
14228 (replace 'install (install-jars "dist"))
14229 (add-after 'install 'install-scripts-and-documentation
14230 (lambda* (#:key outputs #:allow-other-keys)
14231 (substitute* "calcmem.sh"
14232 (("\\| awk ") (string-append "| " (which "awk") " ")))
14233 (let* ((scripts (find-files "." "\\.sh$"))
14234 (out (assoc-ref outputs "out"))
14235 (bin (string-append out "/bin"))
14236 (doc (string-append out "/share/doc/bbmap"))
14237 (jni (string-append out "/lib/jni")))
14238 (substitute* scripts
14239 (("\\$DIR\"\"docs") doc)
14240 (("^CP=.*")
14241 (string-append "CP=" out "/share/java/BBTools.jar\n"))
14242 (("^NATIVELIBDIR.*")
14243 (string-append "NATIVELIBDIR=" jni "\n"))
14244 (("CMD=\"java")
14245 (string-append "CMD=\"" (which "java"))))
14246 (for-each (lambda (script) (install-file script bin)) scripts)
14247
14248 ;; Install JNI library
14249 (install-file "jni/libbbtoolsjni.so" jni)
14250
14251 ;; Install documentation
14252 (install-file "docs/readme.txt" doc)
14253 (copy-recursively "docs/guides" doc))
14254 #t)))
14255 #:jdk ,openjdk11))
14256 (inputs
14257 `(("gawk" ,gawk)
14258 ("java-eclipse-jdt-core" ,java-eclipse-jdt-core)
14259 ("java-eclipse-jdt-compiler-apt" ,java-eclipse-jdt-compiler-apt)
14260 ("java-openmpi" ,java-openmpi)))
14261 (home-page "http://sourceforge.net/projects/bbmap/")
14262 (synopsis "Aligner and other tools for short sequencing reads")
14263 (description
14264 "This package provides bioinformatic tools to align, deduplicate,
14265 reformat, filter and normalize DNA and RNA-seq data. It includes the
14266 following tools: BBMap, a short read aligner for DNA and RNA-seq data; BBNorm,
14267 a kmer-based error-correction and normalization tool; Dedupe, a tool to
14268 simplify assemblies by removing duplicate or contained subsequences that share
14269 a target percent identity; Reformat, to convert reads between
14270 fasta/fastq/scarf/fasta+qual/sam, interleaved/paired, and ASCII-33/64, at over
14271 500 MB/s; and BBDuk, a tool to filter, trim, or mask reads with kmer matches
14272 to an artifact/contaminant file.")
14273 (license license:bsd-3)))
14274
14275 (define-public velvet
14276 (package
14277 (name "velvet")
14278 (version "1.2.10")
14279 (source (origin
14280 (method url-fetch)
14281 (uri (string-append "https://www.ebi.ac.uk/~zerbino/velvet/"
14282 "velvet_" version ".tgz"))
14283 (sha256
14284 (base32
14285 "0h3njwy66p6bx14r3ar1byb0ccaxmxka4c65rn4iybyiqa4d8kc8"))
14286 ;; Delete bundled libraries
14287 (modules '((guix build utils)))
14288 (snippet
14289 '(begin
14290 (delete-file "Manual.pdf")
14291 (delete-file-recursively "third-party")
14292 #t))))
14293 (build-system gnu-build-system)
14294 (arguments
14295 `(#:make-flags '("OPENMP=t")
14296 #:test-target "test"
14297 #:phases
14298 (modify-phases %standard-phases
14299 (delete 'configure)
14300 (add-after 'unpack 'fix-zlib-include
14301 (lambda _
14302 (substitute* "src/binarySequences.c"
14303 (("../third-party/zlib-1.2.3/zlib.h") "zlib.h"))
14304 #t))
14305 (replace 'install
14306 (lambda* (#:key outputs #:allow-other-keys)
14307 (let* ((out (assoc-ref outputs "out"))
14308 (bin (string-append out "/bin"))
14309 (doc (string-append out "/share/doc/velvet")))
14310 (mkdir-p bin)
14311 (mkdir-p doc)
14312 (install-file "velveth" bin)
14313 (install-file "velvetg" bin)
14314 (install-file "Manual.pdf" doc)
14315 (install-file "Columbus_manual.pdf" doc)
14316 #t))))))
14317 (inputs
14318 `(("openmpi" ,openmpi)
14319 ("zlib" ,zlib)))
14320 (native-inputs
14321 `(("texlive" ,(texlive-union (list texlive-latex-graphics
14322 texlive-latex-hyperref)))))
14323 (home-page "https://www.ebi.ac.uk/~zerbino/velvet/")
14324 (synopsis "Nucleic acid sequence assembler for very short reads")
14325 (description
14326 "Velvet is a de novo genomic assembler specially designed for short read
14327 sequencing technologies, such as Solexa or 454. Velvet currently takes in
14328 short read sequences, removes errors then produces high quality unique
14329 contigs. It then uses paired read information, if available, to retrieve the
14330 repeated areas between contigs.")
14331 (license license:gpl2+)))
14332
14333 (define-public python-velocyto
14334 (package
14335 (name "python-velocyto")
14336 (version "0.17.17")
14337 (source
14338 (origin
14339 (method url-fetch)
14340 (uri (pypi-uri "velocyto" version))
14341 (sha256
14342 (base32
14343 "0fgygyzqgrq32dv6a00biq1p1cwi6kbl5iqblxq1kklj6b2mzmhs"))))
14344 (build-system python-build-system)
14345 (propagated-inputs
14346 `(("python-click" ,python-click)
14347 ("python-cython" ,python-cython)
14348 ("python-h5py" ,python-h5py)
14349 ("python-loompy" ,python-loompy)
14350 ("python-matplotlib" ,python-matplotlib)
14351 ("python-numba" ,python-numba)
14352 ("python-numpy" ,python-numpy)
14353 ("python-pandas" ,python-pandas)
14354 ("python-pysam" ,python-pysam)
14355 ("python-scikit-learn" ,python-scikit-learn)
14356 ("python-scipy" ,python-scipy)))
14357 (home-page "https://github.com/velocyto-team/velocyto.py")
14358 (synopsis "RNA velocity analysis for single cell RNA-seq data")
14359 (description
14360 "Velocyto is a library for the analysis of RNA velocity. Velocyto
14361 includes a command line tool and an analysis pipeline.")
14362 (license license:bsd-2)))
14363
14364 (define-public arriba
14365 (package
14366 (name "arriba")
14367 (version "1.0.1")
14368 (source
14369 (origin
14370 (method url-fetch)
14371 (uri (string-append "https://github.com/suhrig/arriba/releases/"
14372 "download/v" version "/arriba_v" version ".tar.gz"))
14373 (sha256
14374 (base32
14375 "0jx9656ry766vb8z08m1c3im87b0c82qpnjby9wz4kcz8vn87dx2"))))
14376 (build-system gnu-build-system)
14377 (arguments
14378 `(#:tests? #f ; there are none
14379 #:phases
14380 (modify-phases %standard-phases
14381 (replace 'configure
14382 (lambda* (#:key inputs #:allow-other-keys)
14383 (let ((htslib (assoc-ref inputs "htslib")))
14384 (substitute* "Makefile"
14385 (("-I\\$\\(HTSLIB\\)/htslib")
14386 (string-append "-I" htslib "/include/htslib"))
14387 ((" \\$\\(HTSLIB\\)/libhts.a")
14388 (string-append " " htslib "/lib/libhts.so"))))
14389 (substitute* "run_arriba.sh"
14390 (("^STAR ") (string-append (which "STAR") " "))
14391 (("samtools --version-only")
14392 (string-append (which "samtools") " --version-only"))
14393 (("samtools index")
14394 (string-append (which "samtools") " index"))
14395 (("samtools sort")
14396 (string-append (which "samtools") " sort")))
14397 #t))
14398 (replace 'install
14399 (lambda* (#:key outputs #:allow-other-keys)
14400 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
14401 (install-file "arriba" bin)
14402 (install-file "run_arriba.sh" bin)
14403 (install-file "draw_fusions.R" bin)
14404 (wrap-program (string-append bin "/draw_fusions.R")
14405 `("R_LIBS_SITE" ":" prefix (,(getenv "R_LIBS_SITE")))))
14406 #t)))))
14407 (inputs
14408 `(("htslib" ,htslib)
14409 ("r-minimal" ,r-minimal)
14410 ("r-circlize" ,r-circlize)
14411 ("r-genomicalignments" ,r-genomicalignments)
14412 ("r-genomicranges" ,r-genomicranges)
14413 ("samtools" ,samtools)
14414 ("star" ,star)
14415 ("zlib" ,zlib)))
14416 (home-page "https://github.com/suhrig/arriba")
14417 (synopsis "Gene fusion detection from RNA-Seq data ")
14418 (description
14419 "Arriba is a command-line tool for the detection of gene fusions from
14420 RNA-Seq data. It was developed for the use in a clinical research setting.
14421 Therefore, short runtimes and high sensitivity were important design criteria.
14422 It is based on the fast STAR aligner and the post-alignment runtime is
14423 typically just around two minutes. In contrast to many other fusion detection
14424 tools which build on STAR, Arriba does not require to reduce the
14425 @code{alignIntronMax} parameter of STAR to detect small deletions.")
14426 ;; All code is under the Expat license with the exception of
14427 ;; "draw_fusions.R", which is under GPLv3.
14428 (license (list license:expat license:gpl3))))
14429
14430 (define-public adapterremoval
14431 (package
14432 (name "adapterremoval")
14433 (version "2.3.0")
14434 (source
14435 (origin
14436 (method git-fetch)
14437 (uri (git-reference
14438 (url "https://github.com/MikkelSchubert/adapterremoval.git")
14439 (commit (string-append "v" version))))
14440 (file-name (git-file-name name version))
14441 (sha256
14442 (base32
14443 "1nf3ki5pfzalhrx2fr1y6pfqfi133yj2m7q4fj9irf5fb94bapwr"))))
14444 (build-system gnu-build-system)
14445 (arguments
14446 `(#:make-flags (list "COLOR_BUILD=no"
14447 (string-append "PREFIX="
14448 (assoc-ref %outputs "out")))
14449 #:test-target "test"
14450 #:phases
14451 (modify-phases %standard-phases
14452 (delete 'configure))))
14453 (inputs
14454 `(("zlib" ,zlib)))
14455 (home-page "https://adapterremoval.readthedocs.io/")
14456 (synopsis "Rapid sequence adapter trimming, identification, and read merging")
14457 (description
14458 "This program searches for and removes remnant adapter sequences from
14459 @dfn{High-Throughput Sequencing} (HTS) data and (optionally) trims low quality
14460 bases from the 3' end of reads following adapter removal. AdapterRemoval can
14461 analyze both single end and paired end data, and can be used to merge
14462 overlapping paired-ended reads into (longer) consensus sequences.
14463 Additionally, the AdapterRemoval may be used to recover a consensus adapter
14464 sequence for paired-ended data, for which this information is not available.")
14465 (license license:gpl3+)))
14466
14467 (define-public pplacer
14468 (let ((commit "807f6f3"))
14469 (package
14470 (name "pplacer")
14471 ;; The commit should be updated with each version change.
14472 (version "1.1.alpha19")
14473 (source
14474 (origin
14475 (method git-fetch)
14476 (uri (git-reference
14477 (url "https://github.com/matsen/pplacer.git")
14478 (commit (string-append "v" version))))
14479 (file-name (git-file-name name version))
14480 (sha256
14481 (base32 "11ppbbbx20p2g9wj3ff64dhnarb12q79v7qh4rk0gj6lkbz4n7cn"))))
14482 (build-system ocaml-build-system)
14483 (arguments
14484 `(#:modules ((guix build ocaml-build-system)
14485 (guix build utils)
14486 (ice-9 ftw))
14487 #:phases
14488 (modify-phases %standard-phases
14489 (delete 'configure)
14490 (add-after 'unpack 'fix-build-with-latest-ocaml
14491 (lambda _
14492 (substitute* "myocamlbuild.ml"
14493 (("dep \\[\"c_pam\"\\]" m)
14494 (string-append "flag [\"ocaml\"; \"compile\"] (A \"-unsafe-string\");\n"
14495 m))
14496 (("let run_and_read" m)
14497 (string-append "
14498 let split s ch =
14499 let x = ref [] in
14500 let rec go s =
14501 let pos = String.index s ch in
14502 x := (String.before s pos)::!x;
14503 go (String.after s (pos + 1))
14504 in
14505 try go s
14506 with Not_found -> !x
14507 let split_nl s = split s '\\n'
14508 let before_space s =
14509 try String.before s (String.index s ' ')
14510 with Not_found -> s
14511
14512 " m))
14513 (("run_and_read \"ocamlfind list \\| cut -d' ' -f1\"" m)
14514 (string-append "List.map before_space (split_nl & " m ")"))
14515 ((" blank_sep_strings &") "")
14516 ((" Lexing.from_string &") ""))
14517 #t))
14518 (add-after 'unpack 'replace-bundled-cddlib
14519 (lambda* (#:key inputs #:allow-other-keys)
14520 (let* ((cddlib-src (assoc-ref inputs "cddlib-src"))
14521 (local-dir "cddlib_guix"))
14522 (mkdir local-dir)
14523 (with-directory-excursion local-dir
14524 (invoke "tar" "xvf" cddlib-src))
14525 (let ((cddlib-src-folder
14526 (string-append local-dir "/"
14527 (list-ref (scandir local-dir) 2)
14528 "/lib-src")))
14529 (for-each make-file-writable (find-files "cdd_src" ".*"))
14530 (for-each
14531 (lambda (file)
14532 (copy-file file
14533 (string-append "cdd_src/" (basename file))))
14534 (find-files cddlib-src-folder ".*[ch]$")))
14535 #t)))
14536 (add-after 'unpack 'fix-makefile
14537 (lambda _
14538 ;; Remove system calls to 'git'.
14539 (substitute* "Makefile"
14540 (("^DESCRIPT:=pplacer-.*")
14541 (string-append
14542 "DESCRIPT:=pplacer-$(shell uname)-v" ,version "\n")))
14543 (substitute* "myocamlbuild.ml"
14544 (("git describe --tags --long .*\\\" with")
14545 (string-append
14546 "echo -n v" ,version "-" ,commit "\" with")))
14547 #t))
14548 (replace 'install
14549 (lambda* (#:key outputs #:allow-other-keys)
14550 (let* ((out (assoc-ref outputs "out"))
14551 (bin (string-append out "/bin")))
14552 (copy-recursively "bin" bin))
14553 #t)))))
14554 (inputs
14555 `(("zlib" ,zlib "static")
14556 ("gsl" ,gsl)
14557 ("ocaml-ounit" ,ocaml-ounit)
14558 ("ocaml-batteries" ,ocaml-batteries)
14559 ("ocaml-camlzip" ,camlzip)
14560 ("ocaml-csv" ,ocaml-csv)
14561 ("ocaml-sqlite3" ,ocaml-sqlite3)
14562 ("ocaml-xmlm" ,ocaml-xmlm)
14563 ("ocaml-mcl" ,ocaml-mcl)
14564 ("ocaml-gsl" ,ocaml-gsl-1)))
14565 (native-inputs
14566 `(("cddlib-src" ,(package-source cddlib))
14567 ("ocamlbuild" ,ocamlbuild)
14568 ("pkg-config" ,pkg-config)))
14569 (propagated-inputs
14570 `(("pplacer-scripts" ,pplacer-scripts)))
14571 (synopsis "Phylogenetic placement of biological sequences")
14572 (description
14573 "Pplacer places query sequences on a fixed reference phylogenetic tree
14574 to maximize phylogenetic likelihood or posterior probability according to a
14575 reference alignment. Pplacer is designed to be fast, to give useful
14576 information about uncertainty, and to offer advanced visualization and
14577 downstream analysis.")
14578 (home-page "http://matsen.fhcrc.org/pplacer")
14579 (license license:gpl3))))
14580
14581 ;; This package is installed alongside 'pplacer'. It is a separate package so
14582 ;; that it can use the python-build-system for the scripts that are
14583 ;; distributed alongside the main OCaml binaries.
14584 (define pplacer-scripts
14585 (package
14586 (inherit pplacer)
14587 (name "pplacer-scripts")
14588 (build-system python-build-system)
14589 (arguments
14590 `(#:python ,python-2
14591 #:phases
14592 (modify-phases %standard-phases
14593 (add-after 'unpack 'enter-scripts-dir
14594 (lambda _ (chdir "scripts") #t))
14595 (replace 'check
14596 (lambda _ (invoke "python" "-m" "unittest" "discover" "-v") #t))
14597 (add-after 'install 'wrap-executables
14598 (lambda* (#:key inputs outputs #:allow-other-keys)
14599 (let* ((out (assoc-ref outputs "out"))
14600 (bin (string-append out "/bin")))
14601 (let ((path (string-append
14602 (assoc-ref inputs "hmmer") "/bin:"
14603 (assoc-ref inputs "infernal") "/bin")))
14604 (display path)
14605 (wrap-program (string-append bin "/refpkg_align.py")
14606 `("PATH" ":" prefix (,path))))
14607 (let ((path (string-append
14608 (assoc-ref inputs "hmmer") "/bin")))
14609 (wrap-program (string-append bin "/hrefpkg_query.py")
14610 `("PATH" ":" prefix (,path)))))
14611 #t)))))
14612 (inputs
14613 `(("infernal" ,infernal)
14614 ("hmmer" ,hmmer)))
14615 (propagated-inputs
14616 `(("python-biopython" ,python2-biopython)
14617 ("taxtastic" ,taxtastic)))
14618 (synopsis "Pplacer Python scripts")))
14619
14620 (define-public python2-checkm-genome
14621 (package
14622 (name "python2-checkm-genome")
14623 (version "1.0.13")
14624 (source
14625 (origin
14626 (method url-fetch)
14627 (uri (pypi-uri "checkm-genome" version))
14628 (sha256
14629 (base32
14630 "0bm8gpxjmzxsxxl8lzwqhgx8g1dlnmp6znz7wv3hgb0gdjbf9dzz"))))
14631 (build-system python-build-system)
14632 (arguments
14633 `(#:python ,python-2
14634 #:tests? #f)) ; some tests are interactive
14635 (propagated-inputs
14636 `(("python-dendropy" ,python2-dendropy)
14637 ("python-matplotlib" ,python2-matplotlib)
14638 ("python-numpy" ,python2-numpy)
14639 ("python-pysam" ,python2-pysam)
14640 ("python-scipy" ,python2-scipy)))
14641 (home-page "http://pypi.python.org/pypi/checkm/")
14642 (synopsis "Assess the quality of putative genome bins")
14643 (description
14644 "CheckM provides a set of tools for assessing the quality of genomes
14645 recovered from isolates, single cells, or metagenomes. It provides robust
14646 estimates of genome completeness and contamination by using collocated sets of
14647 genes that are ubiquitous and single-copy within a phylogenetic lineage.
14648 Assessment of genome quality can also be examined using plots depicting key
14649 genomic characteristics (e.g., GC, coding density) which highlight sequences
14650 outside the expected distributions of a typical genome. CheckM also provides
14651 tools for identifying genome bins that are likely candidates for merging based
14652 on marker set compatibility, similarity in genomic characteristics, and
14653 proximity within a reference genome.")
14654 (license license:gpl3+)))
14655
14656 (define-public umi-tools
14657 (package
14658 (name "umi-tools")
14659 (version "1.0.0")
14660 (source
14661 (origin
14662 (method url-fetch)
14663 (uri (pypi-uri "umi_tools" version))
14664 (sha256
14665 (base32
14666 "08y3vz1vcx09whmbsn722lcs6jl9wyrh9i4p3k8j4cb1i32bij4a"))))
14667 (build-system python-build-system)
14668 (inputs
14669 `(("python-pandas" ,python-pandas)
14670 ("python-future" ,python-future)
14671 ("python-scipy" ,python-scipy)
14672 ("python-matplotlib" ,python-matplotlib)
14673 ("python-regex" ,python-regex)
14674 ("python-pysam" ,python-pysam)))
14675 (native-inputs
14676 `(("python-cython" ,python-cython)))
14677 (home-page "https://github.com/CGATOxford/UMI-tools")
14678 (synopsis "Tools for analyzing unique modular identifiers")
14679 (description "This package provides tools for dealing with @dfn{Unique
14680 Molecular Identifiers} (UMIs) and @dfn{Random Molecular Tags} (RMTs) in
14681 genetic sequences. There are six tools: the @code{extract} and
14682 @code{whitelist} commands are used to prepare a fastq containing UMIs @code{+/-}
14683 cell barcodes for alignment. The remaining commands, @code{group},
14684 @code{dedup}, and @{count}/@code{count_tab}, are used to identify PCR
14685 duplicates using the UMIs and perform different levels of analysis depending
14686 on the needs of the user.")
14687 (license license:expat)))
14688
14689 (define-public ataqv
14690 (package
14691 (name "ataqv")
14692 (version "1.0.0")
14693 (source
14694 (origin
14695 (method git-fetch)
14696 (uri (git-reference
14697 (url "https://github.com/ParkerLab/ataqv.git")
14698 (commit version)))
14699 (file-name (git-file-name name version))
14700 (sha256
14701 (base32
14702 "031xr6jx1aprh26y5b1lv3gzrlmzg4alfl73vvshymx8cq8asrqi"))))
14703 (build-system gnu-build-system)
14704 (arguments
14705 `(#:make-flags
14706 (list (string-append "prefix=" (assoc-ref %outputs "out"))
14707 (string-append "BOOST_ROOT="
14708 (assoc-ref %build-inputs "boost"))
14709 (string-append "HTSLIB_ROOT="
14710 (assoc-ref %build-inputs "htslib")))
14711 #:test-target "test"
14712 #:phases
14713 (modify-phases %standard-phases
14714 (delete 'configure))))
14715 (inputs
14716 `(("boost" ,boost)
14717 ("htslib" ,htslib)
14718 ("ncurses" ,ncurses)
14719 ("zlib" ,zlib)))
14720 (native-inputs
14721 `(("lcov" ,lcov)))
14722 (home-page "https://github.com/ParkerLab/ataqv")
14723 (synopsis "Toolkit for quality control and visualization of ATAC-seq data")
14724 (description "This package provides a toolkit for measuring and comparing
14725 ATAC-seq results. It was written to make it easier to spot differences that
14726 might be caused by ATAC-seq library prep or sequencing. The main program,
14727 @code{ataqv}, examines aligned reads and reports some basic metrics.")
14728 (license license:gpl3+)))
14729
14730 (define-public r-psiplot
14731 (package
14732 (name "r-psiplot")
14733 (version "2.3.0")
14734 (source
14735 (origin
14736 (method git-fetch)
14737 (uri (git-reference
14738 (url "https://github.com/kcha/psiplot.git")
14739 (commit (string-append "v" version))))
14740 (file-name (git-file-name name version))
14741 (sha256
14742 (base32 "08438h16cfry5kqh3y9hs8q1b1a8bxhblsm75knviz5r6q0n1jxh"))))
14743 (build-system r-build-system)
14744 (propagated-inputs
14745 `(("r-mass" ,r-mass)
14746 ("r-dplyr" ,r-dplyr)
14747 ("r-tidyr" ,r-tidyr)
14748 ("r-purrr" ,r-purrr)
14749 ("r-readr" ,r-readr)
14750 ("r-magrittr" ,r-magrittr)
14751 ("r-ggplot2" ,r-ggplot2)))
14752 (home-page "https://github.com/kcha/psiplot")
14753 (synopsis "Plot percent spliced-in values of alternatively-spliced exons")
14754 (description
14755 "PSIplot is an R package for generating plots of @dfn{percent
14756 spliced-in} (PSI) values of alternatively-spliced exons that were computed by
14757 vast-tools, an RNA-Seq pipeline for alternative splicing analysis. The plots
14758 are generated using @code{ggplot2}.")
14759 (license license:expat)))
14760
14761 (define-public python-ont-fast5-api
14762 (package
14763 (name "python-ont-fast5-api")
14764 (version "1.4.4")
14765 (source
14766 (origin
14767 (method git-fetch)
14768 (uri (git-reference
14769 (url "https://github.com/nanoporetech/ont_fast5_api.git")
14770 (commit (string-append "release_" version))))
14771 (file-name (git-file-name name version))
14772 (sha256
14773 (base32
14774 "03cbq4zbbwhll8ml2m9k8sa31mirsvcbjkrq1yna0kkzz9fad5fm"))))
14775 (build-system python-build-system)
14776 (propagated-inputs
14777 `(("python-numpy" ,python-numpy)
14778 ("python-six" ,python-six)
14779 ("python-h5py" ,python-h5py)
14780 ("python-progressbar33" ,python-progressbar33)))
14781 (home-page "https://github.com/nanoporetech/ont_fast5_api")
14782 (synopsis "Interface to HDF5 files of the Oxford Nanopore fast5 file format")
14783 (description
14784 "This package provides a concrete implementation of the fast5 file schema
14785 using the generic @code{h5py} library, plain-named methods to interact with
14786 and reflect the fast5 file schema, and tools to convert between
14787 @code{multi_read} and @code{single_read} formats.")
14788 (license license:mpl2.0)))
14789
14790 (define-public tbsp
14791 (let ((commit "ec8fff4410cfb13a677dbbb95cbbc60217e64907")
14792 (revision "1"))
14793 (package
14794 (name "tbsp")
14795 (version (git-version "1.0.0" revision commit))
14796 (source
14797 (origin
14798 (method git-fetch)
14799 (uri (git-reference
14800 (url "https://github.com/phoenixding/tbsp.git")
14801 (commit commit)))
14802 (sha256
14803 (base32
14804 "025ym14x8gbd6hb55lsinqj6f5qzw36i10klgs7ldzxxd7s39ki1"))))
14805 (build-system python-build-system)
14806 (arguments '(#:tests? #f)) ; no tests included
14807 (inputs
14808 `(("python-matplotlib" ,python-matplotlib)
14809 ("python-networkx" ,python-networkx)
14810 ("python-numpy" ,python-numpy)
14811 ("python-pybigwig" ,python-pybigwig)
14812 ("python-biopython" ,python-biopython)
14813 ("python-scikit-learn" ,python-scikit-learn)
14814 ("python-scipy" ,python-scipy)))
14815 (home-page "https://github.com/phoenixding/tbsp/")
14816 (synopsis "SNP-based trajectory inference")
14817 (description
14818 "Several studies focus on the inference of developmental and response
14819 trajectories from single cell RNA-Seq (scRNA-Seq) data. A number of
14820 computational methods, often referred to as pseudo-time ordering, have been
14821 developed for this task. CRISPR has also been used to reconstruct lineage
14822 trees by inserting random mutations. The tbsp package implements an
14823 alternative method to detect significant, cell type specific sequence
14824 mutations from scRNA-Seq data.")
14825 (license license:expat))))
14826
14827 (define-public tabixpp
14828 (package
14829 (name "tabixpp")
14830 (version "1.0.0")
14831 (source (origin
14832 (method git-fetch)
14833 (uri (git-reference
14834 (url "https://github.com/ekg/tabixpp")
14835 (commit (string-append "v" version))))
14836 (file-name (git-file-name name version))
14837 (sha256
14838 (base32 "08vx6nsipk971cyr8z53rnzwkvlld63kcn1fw0pwddynz91xfny8"))))
14839 (build-system gnu-build-system)
14840 (inputs
14841 `(("htslib" ,htslib)
14842 ("zlib" ,zlib)))
14843 (arguments
14844 `(#:tests? #f ; There are no tests to run.
14845 #:phases
14846 (modify-phases %standard-phases
14847 (delete 'configure) ; There is no configure phase.
14848 ;; The build phase needs overriding the location of htslib.
14849 (replace 'build
14850 (lambda* (#:key inputs #:allow-other-keys)
14851 (let ((htslib-ref (assoc-ref inputs "htslib")))
14852 (invoke "make"
14853 (string-append "HTS_LIB=" htslib-ref "/lib/libhts.a")
14854 "HTS_HEADERS=" ; No need to check for headers here.
14855 (string-append "LIBPATH=-L. -L" htslib-ref "/include")))))
14856 (replace 'install
14857 (lambda* (#:key outputs #:allow-other-keys)
14858 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
14859 (install-file "tabix++" bin))
14860 #t)))))
14861 (home-page "https://github.com/ekg/tabixpp")
14862 (synopsis "C++ wrapper around tabix project")
14863 (description "This is a C++ wrapper around the Tabix project which abstracts
14864 some of the details of opening and jumping in tabix-indexed files.")
14865 (license license:expat)))
14866
14867 (define tabixpp-freebayes
14868 ;; This version works with FreeBayes while the released
14869 ;; version doesn't. The released creates a variable with the name \"vcf\"
14870 ;; somewhere, which is also the name of a namespace in vcflib.
14871 (let ((commit "bbc63a49acc52212199f92e9e3b8fba0a593e3f7"))
14872 (package
14873 (inherit tabixpp)
14874 (name "tabixpp-freebayes")
14875 (version (git-version "0.0.0" "1" commit))
14876 (source (origin
14877 (method git-fetch)
14878 (uri (git-reference
14879 (url "https://github.com/ekg/tabixpp/")
14880 (commit commit)))
14881 (file-name (git-file-name name version))
14882 (sha256
14883 (base32 "017qsmsc2kyiyzqr9nl8cc6pfldxf16dbn8flx5i59mbqr9ydi7g")))))))
14884
14885 (define-public smithwaterman
14886 ;; TODO: Upgrading smithwaterman breaks FreeBayes.
14887 (let ((commit "203218b47d45ac56ef234716f1bd4c741b289be1"))
14888 (package
14889 (name "smithwaterman")
14890 (version (string-append "0-1." (string-take commit 7)))
14891 (source (origin
14892 (method git-fetch)
14893 (uri (git-reference
14894 (url "https://github.com/ekg/smithwaterman/")
14895 (commit commit)))
14896 (file-name (git-file-name name version))
14897 (sha256
14898 (base32 "0z9xsmsv452kgdfbbwydyc6nymg3fwyv8zswls8qjin3r4ia4415"))))
14899 (build-system gnu-build-system)
14900 (arguments
14901 `(#:tests? #f ; There are no tests to run.
14902 #:phases
14903 (modify-phases %standard-phases
14904 (delete 'configure) ; There is no configure phase.
14905 (replace 'install
14906 (lambda* (#:key outputs #:allow-other-keys)
14907 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
14908 (install-file "smithwaterman" bin))
14909 #t)))))
14910 (home-page "https://github.com/ekg/smithwaterman")
14911 (synopsis "Implementation of the Smith-Waterman algorithm")
14912 (description "Implementation of the Smith-Waterman algorithm.")
14913 ;; The licensing terms are unclear: https://github.com/ekg/smithwaterman/issues/9.
14914 (license (list license:gpl2 license:expat)))))
14915
14916 (define-public multichoose
14917 (package
14918 (name "multichoose")
14919 (version "1.0.3")
14920 (source (origin
14921 (method git-fetch)
14922 (uri (git-reference
14923 (url "https://github.com/ekg/multichoose/")
14924 (commit (string-append "v" version))))
14925 (file-name (git-file-name name version))
14926 (sha256
14927 (base32 "0ci5fqvmpamwgxvmyd79ygj6n3bnbl3vc7b6h1sxz58186sm3pfs"))))
14928 (build-system gnu-build-system)
14929 (arguments
14930 `(#:tests? #f ; Tests require node.
14931 #:phases
14932 (modify-phases %standard-phases
14933 (delete 'configure) ; There is no configure phase.
14934 (replace 'install
14935 (lambda* (#:key outputs #:allow-other-keys)
14936 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
14937 ;; TODO: There are Python modules for these programs too.
14938 (install-file "multichoose" bin)
14939 (install-file "multipermute" bin))
14940 #t)))))
14941 (home-page "https://github.com/ekg/multichoose")
14942 (synopsis "Efficient loopless multiset combination generation algorithm")
14943 (description "This library implements an efficient loopless multiset
14944 combination generation algorithm which is (approximately) described in
14945 \"Loopless algorithms for generating permutations, combinations, and other
14946 combinatorial configurations.\", G. Ehrlich - Journal of the ACM (JACM),
14947 1973. (Algorithm 7.)")
14948 (license license:expat)))
14949
14950 (define-public fsom
14951 (let ((commit "a6ef318fbd347c53189384aef7f670c0e6ce89a3"))
14952 (package
14953 (name "fsom")
14954 (version (git-version "0.0.0" "1" commit))
14955 (source (origin
14956 (method git-fetch)
14957 (uri (git-reference
14958 (url "https://github.com/ekg/fsom/")
14959 (commit commit)))
14960 (file-name (git-file-name name version))
14961 (sha256
14962 (base32 "0gw1lpvr812pywg9y546x0h1hhj261xwls41r6kqhddjlrcjc0pi"))))
14963 (build-system gnu-build-system)
14964 (arguments
14965 `(#:tests? #f ; There are no tests to run.
14966 #:phases
14967 (modify-phases %standard-phases
14968 (delete 'configure) ; There is no configure phase.
14969 (replace 'install
14970 (lambda* (#:key outputs #:allow-other-keys)
14971 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
14972 (install-file "fsom" bin))
14973 #t)))))
14974 (home-page "https://github.com/ekg/fsom")
14975 (synopsis "Manage SOM (Self-Organizing Maps) neural networks")
14976 (description "A tiny C library for managing SOM (Self-Organizing Maps)
14977 neural networks.")
14978 (license license:gpl3))))
14979
14980 (define-public fastahack
14981 (let ((commit "c68cebb4f2e5d5d2b70cf08fbdf1944e9ab2c2dd"))
14982 (package
14983 (name "fastahack")
14984 (version (git-version "0.0.0" "1" commit))
14985 (source (origin
14986 (method git-fetch)
14987 (uri (git-reference
14988 (url "https://github.com/ekg/fastahack/")
14989 (commit commit)))
14990 (file-name (git-file-name name version))
14991 (sha256
14992 (base32 "0hfdv67l9g611i2ck4l92pd6ygmsp9g1ph4zx1ni7qkpsikf0l19"))))
14993 (build-system gnu-build-system)
14994 (arguments
14995 `(#:tests? #f ; Unclear how to run tests: https://github.com/ekg/fastahack/issues/15
14996 #:phases
14997 (modify-phases %standard-phases
14998 (delete 'configure) ; There is no configure phase.
14999 (replace 'install
15000 (lambda* (#:key outputs #:allow-other-keys)
15001 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
15002 (install-file "fastahack" bin))
15003 #t)))))
15004 (home-page "https://github.com/ekg/fastahack")
15005 (synopsis "Indexing and sequence extraction from FASTA files")
15006 (description "Fastahack is a small application for indexing and
15007 extracting sequences and subsequences from FASTA files. The included library
15008 provides a FASTA reader and indexer that can be embedded into applications
15009 which would benefit from directly reading subsequences from FASTA files. The
15010 library automatically handles index file generation and use.")
15011 (license (list license:expat license:gpl2)))))
15012
15013 (define-public vcflib
15014 (let ((commit "5ac091365fdc716cc47cc5410bb97ee5dc2a2c92")
15015 (revision "1"))
15016 (package
15017 (name "vcflib")
15018 (version (git-version "0.0.0" revision commit))
15019 (source
15020 (origin
15021 (method git-fetch)
15022 (uri (git-reference
15023 (url "https://github.com/vcflib/vcflib/")
15024 (commit commit)))
15025 (file-name (git-file-name name version))
15026 (sha256
15027 (base32 "1gijvcz1lcdn5kvgzb671l6iby0379qk00nqmcrszgk67hfwx6kq"))))
15028 (build-system gnu-build-system)
15029 (inputs
15030 `(("zlib" ,zlib)))
15031 (native-inputs
15032 `(("perl" ,perl)
15033 ("python" ,python-2)
15034 ;; Submodules.
15035 ;; This package builds against the .o files so we need to extract the source.
15036 ("tabixpp-src" ,(package-source tabixpp-freebayes))
15037 ("smithwaterman-src" ,(package-source smithwaterman))
15038 ("multichoose-src" ,(package-source multichoose))
15039 ("fsom-src" ,(package-source fsom))
15040 ("filevercmp-src" ,(package-source filevercmp))
15041 ("fastahack-src" ,(package-source fastahack))
15042 ("intervaltree-src"
15043 ,(origin
15044 (method git-fetch)
15045 (uri (git-reference
15046 (url "https://github.com/ekg/intervaltree/")
15047 (commit "dbb4c513d1ad3baac516fc1484c995daf9b42838")))
15048 (file-name "intervaltree-src-checkout")
15049 (sha256
15050 (base32 "1fy5qbj4bg8d2bjysvaa9wfnqn2rj2sk5yra2h4l5pzvy53f23fj"))))))
15051 (arguments
15052 `(#:tests? #f ; no tests
15053 #:phases
15054 (modify-phases %standard-phases
15055 (delete 'configure)
15056 (delete 'check)
15057 (add-after 'unpack 'unpack-submodule-sources
15058 (lambda* (#:key inputs #:allow-other-keys)
15059 (let ((unpack (lambda (source target)
15060 (with-directory-excursion target
15061 (if (file-is-directory? (assoc-ref inputs source))
15062 (copy-recursively (assoc-ref inputs source) ".")
15063 (invoke "tar" "xvf"
15064 (assoc-ref inputs source)
15065 "--strip-components=1"))))))
15066 (and
15067 (unpack "intervaltree-src" "intervaltree")
15068 (unpack "fastahack-src" "fastahack")
15069 (unpack "filevercmp-src" "filevercmp")
15070 (unpack "fsom-src" "fsom")
15071 (unpack "multichoose-src" "multichoose")
15072 (unpack "smithwaterman-src" "smithwaterman")
15073 (unpack "tabixpp-src" "tabixpp")))))
15074 (replace 'build
15075 (lambda* (#:key inputs make-flags #:allow-other-keys)
15076 (with-directory-excursion "tabixpp"
15077 (invoke "make"))
15078 (invoke "make" "CC=gcc"
15079 (string-append "CFLAGS=\"" "-Itabixpp " "\"")
15080 "all")))
15081 (replace 'install
15082 (lambda* (#:key outputs #:allow-other-keys)
15083 (let ((bin (string-append (assoc-ref outputs "out") "/bin"))
15084 (lib (string-append (assoc-ref outputs "out") "/lib")))
15085 (for-each (lambda (file)
15086 (install-file file bin))
15087 (find-files "bin" ".*"))
15088 ;; The header files in src/ do not interface libvcflib,
15089 ;; therefore they are left out.
15090 (install-file "libvcflib.a" lib))
15091 #t)))))
15092 (home-page "https://github.com/vcflib/vcflib/")
15093 (synopsis "Library for parsing and manipulating VCF files")
15094 (description "Vcflib provides methods to manipulate and interpret
15095 sequence variation as it can be described by VCF. It is both an API for parsing
15096 and operating on records of genomic variation as it can be described by the VCF
15097 format, and a collection of command-line utilities for executing complex
15098 manipulations on VCF files.")
15099 (license license:expat))))
15100
15101 (define-public freebayes
15102 (let ((commit "3ce827d8ebf89bb3bdc097ee0fe7f46f9f30d5fb")
15103 (revision "1")
15104 (version "1.0.2"))
15105 (package
15106 (name "freebayes")
15107 (version (git-version version revision commit))
15108 (source (origin
15109 (method git-fetch)
15110 (uri (git-reference
15111 (url "https://github.com/ekg/freebayes.git")
15112 (commit commit)))
15113 (file-name (git-file-name name version))
15114 (sha256
15115 (base32 "1sbzwmcbn78ybymjnhwk7qc5r912azy5vqz2y7y81616yc3ba2a2"))))
15116 (build-system gnu-build-system)
15117 (inputs
15118 `(("bamtools" ,bamtools)
15119 ("htslib" ,htslib)
15120 ("zlib" ,zlib)))
15121 (native-inputs
15122 `(("bc" ,bc) ; Needed for running tests.
15123 ("samtools" ,samtools) ; Needed for running tests.
15124 ("parallel" ,parallel) ; Needed for running tests.
15125 ("perl" ,perl) ; Needed for running tests.
15126 ("procps" ,procps) ; Needed for running tests.
15127 ("python" ,python-2) ; Needed for running tests.
15128 ("vcflib-src" ,(package-source vcflib))
15129 ;; These are submodules for the vcflib version used in freebayes.
15130 ;; This package builds against the .o files so we need to extract the source.
15131 ("tabixpp-src" ,(package-source tabixpp-freebayes))
15132 ("smithwaterman-src" ,(package-source smithwaterman))
15133 ("multichoose-src" ,(package-source multichoose))
15134 ("fsom-src" ,(package-source fsom))
15135 ("filevercmp-src" ,(package-source filevercmp))
15136 ("fastahack-src" ,(package-source fastahack))
15137 ("intervaltree-src"
15138 ,(origin
15139 (method git-fetch)
15140 (uri (git-reference
15141 (url "https://github.com/ekg/intervaltree/")
15142 (commit "dbb4c513d1ad3baac516fc1484c995daf9b42838")))
15143 (file-name "intervaltree-src-checkout")
15144 (sha256
15145 (base32 "1fy5qbj4bg8d2bjysvaa9wfnqn2rj2sk5yra2h4l5pzvy53f23fj"))))
15146 ;; These submodules are needed to run the tests.
15147 ("bash-tap-src" ,(package-source bash-tap))
15148 ("test-simple-bash-src"
15149 ,(origin
15150 (method git-fetch)
15151 (uri (git-reference
15152 (url "https://github.com/ingydotnet/test-simple-bash/")
15153 (commit "124673ff204b01c8e96b7fc9f9b32ee35d898acc")))
15154 (file-name "test-simple-bash-src-checkout")
15155 (sha256
15156 (base32 "043plp6z0x9yf7mdpky1fw7zcpwn1p47px95w9mh16603zqqqpga"))))))
15157 (arguments
15158 `(#:make-flags
15159 (list "CC=gcc"
15160 (string-append "BAMTOOLS_ROOT="
15161 (assoc-ref %build-inputs "bamtools")))
15162 #:test-target "test"
15163 #:phases
15164 (modify-phases %standard-phases
15165 (delete 'configure)
15166 (add-after 'unpack 'fix-tests
15167 (lambda _
15168 (substitute* "test/t/01_call_variants.t"
15169 (("grep -P \"\\(\\\\t500\\$\\|\\\\t11000\\$\\|\\\\t1000\\$\\)\"")
15170 "grep -E ' (500|11000|1000)$'"))
15171 #t))
15172 (add-after 'unpack 'unpack-submodule-sources
15173 (lambda* (#:key inputs #:allow-other-keys)
15174 (let ((unpack (lambda (source target)
15175 (with-directory-excursion target
15176 (if (file-is-directory? (assoc-ref inputs source))
15177 (copy-recursively (assoc-ref inputs source) ".")
15178 (invoke "tar" "xvf"
15179 (assoc-ref inputs source)
15180 "--strip-components=1"))))))
15181 (and
15182 (unpack "vcflib-src" "vcflib")
15183 (unpack "fastahack-src" "vcflib/fastahack")
15184 (unpack "filevercmp-src" "vcflib/filevercmp")
15185 (unpack "fsom-src" "vcflib/fsom")
15186 (unpack "intervaltree-src" "vcflib/intervaltree")
15187 (unpack "multichoose-src" "vcflib/multichoose")
15188 (unpack "smithwaterman-src" "vcflib/smithwaterman")
15189 (unpack "tabixpp-src" "vcflib/tabixpp")
15190 (unpack "test-simple-bash-src" "test/test-simple-bash")
15191 (unpack "bash-tap-src" "test/bash-tap")))))
15192 (add-after 'unpack-submodule-sources 'fix-makefiles
15193 (lambda _
15194 ;; We don't have the .git folder to get the version tag from.
15195 (substitute* "vcflib/Makefile"
15196 (("^GIT_VERSION.*")
15197 (string-append "GIT_VERSION = v" ,version)))
15198 (substitute* "src/Makefile"
15199 (("-I\\$\\(BAMTOOLS_ROOT\\)/src")
15200 "-I$(BAMTOOLS_ROOT)/include/bamtools"))
15201 #t))
15202 (add-before 'build 'build-tabixpp-and-vcflib
15203 (lambda* (#:key inputs make-flags #:allow-other-keys)
15204 (with-directory-excursion "vcflib"
15205 (with-directory-excursion "tabixpp"
15206 (apply invoke "make"
15207 (string-append "HTS_LIB="
15208 (assoc-ref inputs "htslib")
15209 "/lib/libhts.a")
15210 make-flags))
15211 (apply invoke "make"
15212 (string-append "CFLAGS=-Itabixpp")
15213 "all"
15214 make-flags))))
15215 (replace 'install
15216 (lambda* (#:key outputs #:allow-other-keys)
15217 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
15218 (install-file "bin/freebayes" bin)
15219 (install-file "bin/bamleftalign" bin))
15220 #t)))))
15221 (home-page "https://github.com/ekg/freebayes")
15222 (synopsis "Haplotype-based variant detector")
15223 (description "FreeBayes is a Bayesian genetic variant detector designed to
15224 find small polymorphisms, specifically SNPs (single-nucleotide polymorphisms),
15225 indels (insertions and deletions), MNPs (multi-nucleotide polymorphisms), and
15226 complex events (composite insertion and substitution events) smaller than the
15227 length of a short-read sequencing alignment.")
15228 (license license:expat))))
15229
15230 (define-public samblaster
15231 (package
15232 (name "samblaster")
15233 (version "0.1.24")
15234 (source (origin
15235 (method git-fetch)
15236 (uri (git-reference
15237 (url "https://github.com/GregoryFaust/samblaster.git")
15238 (commit (string-append "v." version))))
15239 (file-name (git-file-name name version))
15240 (sha256
15241 (base32
15242 "0iv2ddfw8363vb2x8gr3p8g88whb6mb9m0pf71i2cqsbv6jghap7"))))
15243 (build-system gnu-build-system)
15244 (arguments
15245 `(#:tests? #f ; there are none
15246 #:phases
15247 (modify-phases %standard-phases
15248 (delete 'configure) ; There is no configure phase.
15249 (replace 'install
15250 (lambda* (#:key outputs #:allow-other-keys)
15251 (install-file "samblaster"
15252 (string-append (assoc-ref outputs "out") "/bin"))
15253 #t)))))
15254 (home-page "https://github.com/GregoryFaust/samblaster")
15255 (synopsis "Mark duplicates in paired-end SAM files")
15256 (description "Samblaster is a fast and flexible program for marking
15257 duplicates in read-id grouped paired-end SAM files. It can also optionally
15258 output discordant read pairs and/or split read mappings to separate SAM files,
15259 and/or unmapped/clipped reads to a separate FASTQ file. When marking
15260 duplicates, samblaster will require approximately 20MB of memory per 1M read
15261 pairs.")
15262 (license license:expat)))
15263
15264 (define-public r-velocyto
15265 (let ((commit "d7790346cb99f49ab9c2b23ba70dcf9d2c9fc350")
15266 (revision "1"))
15267 (package
15268 (name "r-velocyto")
15269 (version (git-version "0.6" revision commit))
15270 (source
15271 (origin
15272 (method git-fetch)
15273 (uri (git-reference
15274 (url "https://github.com/velocyto-team/velocyto.R.git")
15275 (commit commit)))
15276 (file-name (git-file-name name version))
15277 (sha256
15278 (base32
15279 "16wqf70j7rd7pay2q513iyz12i8n9vrpg1bisah4lddbcpx5dz1n"))))
15280 (build-system r-build-system)
15281 (inputs
15282 `(("boost" ,boost)))
15283 (propagated-inputs
15284 `(("r-hdf5r" ,r-hdf5r)
15285 ("r-mass" ,r-mass)
15286 ("r-mgcv" ,r-mgcv)
15287 ("r-pcamethods" ,r-pcamethods)
15288 ("r-rcpp" ,r-rcpp)
15289 ("r-rcpparmadillo" ,r-rcpparmadillo)
15290 ;; Suggested packages
15291 ("r-rtsne" ,r-rtsne)
15292 ("r-cluster" ,r-cluster)
15293 ("r-abind" ,r-abind)
15294 ("r-h5" ,r-h5)
15295 ("r-biocgenerics" ,r-biocgenerics)
15296 ("r-genomicalignments" ,r-genomicalignments)
15297 ("r-rsamtools" ,r-rsamtools)
15298 ("r-edger" ,r-edger)
15299 ("r-igraph" ,r-igraph)))
15300 (home-page "http://velocyto.org")
15301 (synopsis "RNA velocity estimation in R")
15302 (description
15303 "This package provides basic routines for estimation of gene-specific
15304 transcriptional derivatives and visualization of the resulting velocity
15305 patterns.")
15306 (license license:gpl3))))
15307
15308 (define-public methyldackel
15309 (package
15310 (name "methyldackel")
15311 (version "0.4.0")
15312 (source (origin
15313 (method git-fetch)
15314 (uri (git-reference
15315 (url "https://github.com/dpryan79/MethylDackel.git")
15316 (commit version)))
15317 (file-name (git-file-name name version))
15318 (sha256
15319 (base32
15320 "10gh8k0ca92kywnrw5pkacq3g6r8s976s12k8jhp8g3g49q9a97g"))))
15321 (build-system gnu-build-system)
15322 (arguments
15323 `(#:test-target "test"
15324 #:make-flags
15325 (list "CC=gcc"
15326 (string-append "prefix="
15327 (assoc-ref %outputs "out") "/bin/"))
15328 #:phases
15329 (modify-phases %standard-phases
15330 (replace 'configure
15331 (lambda* (#:key outputs #:allow-other-keys)
15332 (substitute* "Makefile"
15333 (("install MethylDackel \\$\\(prefix\\)" match)
15334 (string-append "install -d $(prefix); " match)))
15335 #t)))))
15336 (inputs
15337 `(("htslib" ,htslib)
15338 ("zlib" ,zlib)))
15339 ;; Needed for tests
15340 (native-inputs
15341 `(("python" ,python-wrapper)))
15342 (home-page "https://github.com/dpryan79/MethylDackel")
15343 (synopsis "Universal methylation extractor for BS-seq experiments")
15344 (description
15345 "MethylDackel will process a coordinate-sorted and indexed BAM or CRAM
15346 file containing some form of BS-seq alignments and extract per-base
15347 methylation metrics from them. MethylDackel requires an indexed fasta file
15348 containing the reference genome as well.")
15349 ;; See https://github.com/dpryan79/MethylDackel/issues/85
15350 (license license:expat)))