gnu: r-methylkit: Update to 1.16.0.
[jackhill/guix/guix.git] / gnu / packages / bioinformatics.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
3 ;;; Copyright © 2015, 2016, 2017, 2018 Ben Woodcroft <donttrustben@gmail.com>
4 ;;; Copyright © 2015, 2016, 2018, 2019, 2020 Pjotr Prins <pjotr.guix@thebird.nl>
5 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
6 ;;; Copyright © 2016, 2020 Roel Janssen <roel@gnu.org>
7 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
8 ;;; Copyright © 2016, 2020 Marius Bakke <mbakke@fastmail.com>
9 ;;; Copyright © 2016, 2018 Raoul Bonnal <ilpuccio.febo@gmail.com>
10 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
11 ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
12 ;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
13 ;;; Copyright © 2018 Gábor Boskovits <boskovits@gmail.com>
14 ;;; Copyright © 2018, 2019, 2020 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
15 ;;; Copyright © 2019, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
16 ;;; Copyright © 2019 Brian Leung <bkleung89@gmail.com>
17 ;;; Copyright © 2019 Brett Gilio <brettg@gnu.org>
18 ;;; Copyright © 2020 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
19 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
20 ;;; Copyright © 2020 Pierre Langlois <pierre.langlois@gmx.com>
21 ;;; Copyright © 2020 Bonface Munyoki Kilyungi <bonfacemunyoki@gmail.com>
22 ;;;
23 ;;; This file is part of GNU Guix.
24 ;;;
25 ;;; GNU Guix is free software; you can redistribute it and/or modify it
26 ;;; under the terms of the GNU General Public License as published by
27 ;;; the Free Software Foundation; either version 3 of the License, or (at
28 ;;; your option) any later version.
29 ;;;
30 ;;; GNU Guix is distributed in the hope that it will be useful, but
31 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
32 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33 ;;; GNU General Public License for more details.
34 ;;;
35 ;;; You should have received a copy of the GNU General Public License
36 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
37
38 (define-module (gnu packages bioinformatics)
39 #:use-module ((guix licenses) #:prefix license:)
40 #:use-module (guix packages)
41 #:use-module (guix utils)
42 #:use-module (guix download)
43 #:use-module (guix git-download)
44 #:use-module (guix hg-download)
45 #:use-module (guix build-system ant)
46 #:use-module (guix build-system gnu)
47 #:use-module (guix build-system cmake)
48 #:use-module (guix build-system go)
49 #:use-module (guix build-system haskell)
50 #:use-module (guix build-system meson)
51 #:use-module (guix build-system ocaml)
52 #:use-module (guix build-system perl)
53 #:use-module (guix build-system python)
54 #:use-module (guix build-system r)
55 #:use-module (guix build-system ruby)
56 #:use-module (guix build-system scons)
57 #:use-module (guix build-system trivial)
58 #:use-module (guix deprecation)
59 #:use-module (gnu packages)
60 #:use-module (gnu packages autotools)
61 #:use-module (gnu packages algebra)
62 #:use-module (gnu packages base)
63 #:use-module (gnu packages bash)
64 #:use-module (gnu packages bison)
65 #:use-module (gnu packages bioconductor)
66 #:use-module (gnu packages boost)
67 #:use-module (gnu packages check)
68 #:use-module (gnu packages code)
69 #:use-module (gnu packages commencement)
70 #:use-module (gnu packages cmake)
71 #:use-module (gnu packages compression)
72 #:use-module (gnu packages cpio)
73 #:use-module (gnu packages cran)
74 #:use-module (gnu packages curl)
75 #:use-module (gnu packages documentation)
76 #:use-module (gnu packages databases)
77 #:use-module (gnu packages datastructures)
78 #:use-module (gnu packages dlang)
79 #:use-module (gnu packages file)
80 #:use-module (gnu packages flex)
81 #:use-module (gnu packages gawk)
82 #:use-module (gnu packages gcc)
83 #:use-module (gnu packages gd)
84 #:use-module (gnu packages golang)
85 #:use-module (gnu packages glib)
86 #:use-module (gnu packages graph)
87 #:use-module (gnu packages graphics)
88 #:use-module (gnu packages graphviz)
89 #:use-module (gnu packages groff)
90 #:use-module (gnu packages gtk)
91 #:use-module (gnu packages guile)
92 #:use-module (gnu packages guile-xyz)
93 #:use-module (gnu packages haskell-check)
94 #:use-module (gnu packages haskell-web)
95 #:use-module (gnu packages haskell-xyz)
96 #:use-module (gnu packages image)
97 #:use-module (gnu packages image-processing)
98 #:use-module (gnu packages imagemagick)
99 #:use-module (gnu packages java)
100 #:use-module (gnu packages java-compression)
101 #:use-module (gnu packages jemalloc)
102 #:use-module (gnu packages linux)
103 #:use-module (gnu packages lisp-xyz)
104 #:use-module (gnu packages logging)
105 #:use-module (gnu packages machine-learning)
106 #:use-module (gnu packages man)
107 #:use-module (gnu packages maths)
108 #:use-module (gnu packages mpi)
109 #:use-module (gnu packages ncurses)
110 #:use-module (gnu packages node)
111 #:use-module (gnu packages ocaml)
112 #:use-module (gnu packages pcre)
113 #:use-module (gnu packages parallel)
114 #:use-module (gnu packages pdf)
115 #:use-module (gnu packages perl)
116 #:use-module (gnu packages perl-check)
117 #:use-module (gnu packages pkg-config)
118 #:use-module (gnu packages popt)
119 #:use-module (gnu packages protobuf)
120 #:use-module (gnu packages python)
121 #:use-module (gnu packages python-check)
122 #:use-module (gnu packages python-compression)
123 #:use-module (gnu packages python-science)
124 #:use-module (gnu packages python-web)
125 #:use-module (gnu packages python-xyz)
126 #:use-module (gnu packages rdf)
127 #:use-module (gnu packages readline)
128 #:use-module (gnu packages ruby)
129 #:use-module (gnu packages serialization)
130 #:use-module (gnu packages shells)
131 #:use-module (gnu packages sphinx)
132 #:use-module (gnu packages statistics)
133 #:use-module (gnu packages swig)
134 #:use-module (gnu packages tbb)
135 #:use-module (gnu packages tex)
136 #:use-module (gnu packages texinfo)
137 #:use-module (gnu packages textutils)
138 #:use-module (gnu packages time)
139 #:use-module (gnu packages tls)
140 #:use-module (gnu packages vim)
141 #:use-module (gnu packages web)
142 #:use-module (gnu packages xml)
143 #:use-module (gnu packages xorg)
144 #:use-module (srfi srfi-1)
145 #:use-module (ice-9 match))
146
147 (define-public aragorn
148 (package
149 (name "aragorn")
150 (version "1.2.38")
151 (source (origin
152 (method url-fetch)
153 (uri (string-append
154 "http://mbio-serv2.mbioekol.lu.se/ARAGORN/Downloads/aragorn"
155 version ".tgz"))
156 (sha256
157 (base32
158 "09i1rg716smlbnixfm7q1ml2mfpaa2fpn3hwjg625ysmfwwy712b"))))
159 (build-system gnu-build-system)
160 (arguments
161 `(#:tests? #f ; there are no tests
162 #:phases
163 (modify-phases %standard-phases
164 (delete 'configure)
165 (replace 'build
166 (lambda _
167 (invoke "gcc"
168 "-O3"
169 "-ffast-math"
170 "-finline-functions"
171 "-o"
172 "aragorn"
173 (string-append "aragorn" ,version ".c"))
174 #t))
175 (replace 'install
176 (lambda* (#:key outputs #:allow-other-keys)
177 (let* ((out (assoc-ref outputs "out"))
178 (bin (string-append out "/bin"))
179 (man (string-append out "/share/man/man1")))
180 (install-file "aragorn" bin)
181 (install-file "aragorn.1" man))
182 #t)))))
183 (home-page "http://mbio-serv2.mbioekol.lu.se/ARAGORN")
184 (synopsis "Detect tRNA, mtRNA and tmRNA genes in nucleotide sequences")
185 (description
186 "Aragorn identifies transfer RNA, mitochondrial RNA and
187 transfer-messenger RNA from nucleotide sequences, based on homology to known
188 tRNA consensus sequences and RNA structure. It also outputs the secondary
189 structure of the predicted RNA.")
190 (license license:gpl2)))
191
192 (define-public bamm
193 (package
194 (name "bamm")
195 (version "1.7.3")
196 (source (origin
197 (method git-fetch)
198 ;; BamM is not available on pypi.
199 (uri (git-reference
200 (url "https://github.com/Ecogenomics/BamM")
201 (commit version)
202 (recursive? #t)))
203 (file-name (git-file-name name version))
204 (sha256
205 (base32
206 "1p83ahi984ipslxlg4yqy1gdnya9rkn1v71z8djgxkm9d2chw4c5"))
207 (modules '((guix build utils)))
208 (snippet
209 `(begin
210 ;; Delete bundled htslib.
211 (delete-file-recursively "c/htslib-1.3.1")
212 #t))))
213 (build-system python-build-system)
214 (arguments
215 `(#:python ,python-2 ; BamM is Python 2 only.
216 ;; Do not use bundled libhts. Do use the bundled libcfu because it has
217 ;; been modified from its original form.
218 #:configure-flags
219 (let ((htslib (assoc-ref %build-inputs "htslib")))
220 (list "--with-libhts-lib" (string-append htslib "/lib")
221 "--with-libhts-inc" (string-append htslib "/include/htslib")))
222 #:phases
223 (modify-phases %standard-phases
224 (add-after 'unpack 'autogen
225 (lambda _
226 (with-directory-excursion "c"
227 (let ((sh (which "sh")))
228 (for-each make-file-writable (find-files "." ".*"))
229 ;; Use autogen so that 'configure' works.
230 (substitute* "autogen.sh" (("/bin/sh") sh))
231 (setenv "CONFIG_SHELL" sh)
232 (invoke "./autogen.sh")))
233 #t))
234 (delete 'build)
235 ;; Run tests after installation so compilation only happens once.
236 (delete 'check)
237 (add-after 'install 'wrap-executable
238 (lambda* (#:key outputs #:allow-other-keys)
239 (let* ((out (assoc-ref outputs "out"))
240 (path (getenv "PATH")))
241 (wrap-program (string-append out "/bin/bamm")
242 `("PATH" ":" prefix (,path))))
243 #t))
244 (add-after 'wrap-executable 'post-install-check
245 (lambda* (#:key inputs outputs #:allow-other-keys)
246 (setenv "PATH"
247 (string-append (assoc-ref outputs "out")
248 "/bin:"
249 (getenv "PATH")))
250 (setenv "PYTHONPATH"
251 (string-append
252 (assoc-ref outputs "out")
253 "/lib/python"
254 (string-take (string-take-right
255 (assoc-ref inputs "python") 5) 3)
256 "/site-packages:"
257 (getenv "PYTHONPATH")))
258 ;; There are 2 errors printed, but they are safe to ignore:
259 ;; 1) [E::hts_open_format] fail to open file ...
260 ;; 2) samtools view: failed to open ...
261 (invoke "nosetests")
262 #t)))))
263 (native-inputs
264 `(("autoconf" ,autoconf)
265 ("automake" ,automake)
266 ("libtool" ,libtool)
267 ("zlib" ,zlib)
268 ("python-nose" ,python2-nose)
269 ("python-pysam" ,python2-pysam)))
270 (inputs
271 `(("htslib" ,htslib-1.3) ; At least one test fails on htslib-1.4+.
272 ("samtools" ,samtools)
273 ("bwa" ,bwa)
274 ("grep" ,grep)
275 ("sed" ,sed)
276 ("coreutils" ,coreutils)))
277 (propagated-inputs
278 `(("python-numpy" ,python2-numpy)))
279 (home-page "https://ecogenomics.github.io/BamM/")
280 (synopsis "Metagenomics-focused BAM file manipulator")
281 (description
282 "BamM is a C library, wrapped in python, to efficiently generate and
283 parse BAM files, specifically for the analysis of metagenomic data. For
284 instance, it implements several methods to assess contig-wise read coverage.")
285 (license license:lgpl3+)))
286
287 (define-public bamtools
288 (package
289 (name "bamtools")
290 (version "2.5.1")
291 (source (origin
292 (method git-fetch)
293 (uri (git-reference
294 (url "https://github.com/pezmaster31/bamtools")
295 (commit (string-append "v" version))))
296 (file-name (git-file-name name version))
297 (sha256
298 (base32
299 "0nfb2ypcx9959xnbz6wxh6py3xfizgmg8nrknxl95c507m9hmq8b"))))
300 (build-system cmake-build-system)
301 (arguments
302 `(#:tests? #f ;no "check" target
303 #:phases
304 (modify-phases %standard-phases
305 (add-before
306 'configure 'set-ldflags
307 (lambda* (#:key outputs #:allow-other-keys)
308 (setenv "LDFLAGS"
309 (string-append
310 "-Wl,-rpath="
311 (assoc-ref outputs "out") "/lib/bamtools"))
312 #t)))))
313 (inputs `(("zlib" ,zlib)))
314 (home-page "https://github.com/pezmaster31/bamtools")
315 (synopsis "C++ API and command-line toolkit for working with BAM data")
316 (description
317 "BamTools provides both a C++ API and a command-line toolkit for handling
318 BAM files.")
319 (license license:expat)))
320
321 (define-public bcftools
322 (package
323 (name "bcftools")
324 (version "1.11")
325 (source (origin
326 (method url-fetch)
327 (uri (string-append "https://github.com/samtools/bcftools/"
328 "releases/download/"
329 version "/bcftools-" version ".tar.bz2"))
330 (sha256
331 (base32
332 "0r508mp15pqzf8r1269kb4v5naw9zsvbwd3cz8s1yj7carsf9viw"))
333 (modules '((guix build utils)))
334 (snippet '(begin
335 ;; Delete bundled htslib.
336 (delete-file-recursively "htslib-1.11")
337 #t))))
338 (build-system gnu-build-system)
339 (arguments
340 `(#:configure-flags
341 (list "--enable-libgsl")
342 #:test-target "test"
343 #:phases
344 (modify-phases %standard-phases
345 (add-before 'check 'patch-tests
346 (lambda _
347 (substitute* "test/test.pl"
348 (("/bin/bash") (which "bash")))
349 #t)))))
350 (native-inputs
351 `(("htslib" ,htslib)
352 ("perl" ,perl)))
353 (inputs
354 `(("gsl" ,gsl)
355 ("zlib" ,zlib)))
356 (home-page "https://samtools.github.io/bcftools/")
357 (synopsis "Utilities for variant calling and manipulating VCFs and BCFs")
358 (description
359 "BCFtools is a set of utilities that manipulate variant calls in the
360 Variant Call Format (VCF) and its binary counterpart BCF. All commands work
361 transparently with both VCFs and BCFs, both uncompressed and BGZF-compressed.")
362 ;; The sources are dual MIT/GPL, but becomes GPL-only when USE_GPL=1.
363 (license (list license:gpl3+ license:expat))))
364
365 (define-public bcftools-1.9
366 (package (inherit bcftools)
367 (name "bcftools")
368 (version "1.9")
369 (source (origin
370 (method url-fetch)
371 (uri (string-append "https://github.com/samtools/bcftools/"
372 "releases/download/"
373 version "/bcftools-" version ".tar.bz2"))
374 (sha256
375 (base32
376 "1j3h638i8kgihzyrlnpj82xg1b23sijibys9hvwari3fy7kd0dkg"))
377 (modules '((guix build utils)))
378 (snippet '(begin
379 ;; Delete bundled htslib.
380 (delete-file-recursively "htslib-1.9")
381 #t))))
382 (build-system gnu-build-system)
383 (native-inputs
384 `(("htslib" ,htslib-1.9)
385 ("perl" ,perl)))))
386
387 (define-public bedops
388 (package
389 (name "bedops")
390 (version "2.4.35")
391 (source (origin
392 (method git-fetch)
393 (uri (git-reference
394 (url "https://github.com/bedops/bedops")
395 (commit (string-append "v" version))))
396 (file-name (git-file-name name version))
397 (sha256
398 (base32
399 "0mmgsgwz5r9w76hzgxkxc9s9lkdhhaf7vr6i02b09vbswvs1fyqx"))))
400 (build-system gnu-build-system)
401 (arguments
402 '(#:tests? #f
403 #:make-flags (list (string-append "BINDIR=" %output "/bin"))
404 #:phases
405 (modify-phases %standard-phases
406 (add-after 'unpack 'unpack-tarballs
407 (lambda _
408 ;; FIXME: Bedops includes tarballs of minimally patched upstream
409 ;; libraries jansson, zlib, and bzip2. We cannot just use stock
410 ;; libraries because at least one of the libraries (zlib) is
411 ;; patched to add a C++ function definition (deflateInit2cpp).
412 ;; Until the Bedops developers offer a way to link against system
413 ;; libraries we have to build the in-tree copies of these three
414 ;; libraries.
415
416 ;; See upstream discussion:
417 ;; https://github.com/bedops/bedops/issues/124
418
419 ;; Unpack the tarballs to benefit from shebang patching.
420 (with-directory-excursion "third-party"
421 (invoke "tar" "xvf" "jansson-2.6.tar.bz2")
422 (invoke "tar" "xvf" "zlib-1.2.7.tar.bz2")
423 (invoke "tar" "xvf" "bzip2-1.0.6.tar.bz2"))
424 ;; Disable unpacking of tarballs in Makefile.
425 (substitute* "system.mk/Makefile.linux"
426 (("^\tbzcat .*") "\t@echo \"not unpacking\"\n")
427 (("\\./configure") "CONFIG_SHELL=bash ./configure"))
428 (substitute* "third-party/zlib-1.2.7/Makefile.in"
429 (("^SHELL=.*$") "SHELL=bash\n"))
430 #t))
431 (delete 'configure))))
432 (home-page "https://github.com/bedops/bedops")
433 (synopsis "Tools for high-performance genomic feature operations")
434 (description
435 "BEDOPS is a suite of tools to address common questions raised in genomic
436 studies---mostly with regard to overlap and proximity relationships between
437 data sets. It aims to be scalable and flexible, facilitating the efficient
438 and accurate analysis and management of large-scale genomic data.
439
440 BEDOPS provides tools that perform highly efficient and scalable Boolean and
441 other set operations, statistical calculations, archiving, conversion and
442 other management of genomic data of arbitrary scale. Tasks can be easily
443 split by chromosome for distributing whole-genome analyses across a
444 computational cluster.")
445 (license license:gpl2+)))
446
447 (define-public bedtools
448 (package
449 (name "bedtools")
450 (version "2.29.2")
451 (source (origin
452 (method url-fetch)
453 (uri (string-append "https://github.com/arq5x/bedtools2/releases/"
454 "download/v" version "/"
455 "bedtools-" version ".tar.gz"))
456 (sha256
457 (base32
458 "0m3hk6548846w83a9s5drsczvy67n2azx41kj71n03klb2gbzwg3"))))
459 (build-system gnu-build-system)
460 (arguments
461 '(#:test-target "test"
462 #:make-flags
463 (list (string-append "prefix=" (assoc-ref %outputs "out")))
464 #:phases
465 (modify-phases %standard-phases
466 (delete 'configure))))
467 (native-inputs
468 `(("python" ,python-wrapper)))
469 (inputs
470 `(("samtools" ,samtools-1.9)
471 ("zlib" ,zlib)))
472 (home-page "https://github.com/arq5x/bedtools2")
473 (synopsis "Tools for genome analysis and arithmetic")
474 (description
475 "Collectively, the bedtools utilities are a swiss-army knife of tools for
476 a wide-range of genomics analysis tasks. The most widely-used tools enable
477 genome arithmetic: that is, set theory on the genome. For example, bedtools
478 allows one to intersect, merge, count, complement, and shuffle genomic
479 intervals from multiple files in widely-used genomic file formats such as BAM,
480 BED, GFF/GTF, VCF.")
481 (license license:expat)))
482
483 ;; Later releases of bedtools produce files with more columns than
484 ;; what Ribotaper expects.
485 (define-public bedtools-2.18
486 (package (inherit bedtools)
487 (name "bedtools")
488 (version "2.18.0")
489 (source (origin
490 (method url-fetch)
491 (uri (string-append "https://github.com/arq5x/bedtools2/"
492 "releases/download/v" version
493 "/bedtools-" version ".tar.gz"))
494 (sha256
495 (base32
496 "11rvca19ncg03kxd0wzlfx5ws7r3nisd0z8s9j9n182d8ksp2pxz"))))
497 (arguments
498 '(#:test-target "test"
499 #:phases
500 (modify-phases %standard-phases
501 (delete 'configure)
502 (replace 'install
503 (lambda* (#:key outputs #:allow-other-keys)
504 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
505 (for-each (lambda (file)
506 (install-file file bin))
507 (find-files "bin" ".*")))
508 #t)))))))
509
510 (define-public pbbam
511 (package
512 (name "pbbam")
513 (version "0.23.0")
514 (source (origin
515 (method git-fetch)
516 (uri (git-reference
517 (url "https://github.com/PacificBiosciences/pbbam")
518 (commit version)))
519 (file-name (git-file-name name version))
520 (sha256
521 (base32
522 "0h9gkrpf2lrxklxp72xfl5bi3h5zcm5hprrya9gf0hr3xwlbpp0x"))))
523 (build-system meson-build-system)
524 (arguments
525 `(#:phases
526 (modify-phases %standard-phases
527 (add-after 'unpack 'find-googletest
528 (lambda* (#:key inputs #:allow-other-keys)
529 ;; It doesn't find gtest_main because there's no pkg-config file
530 ;; for it. Find it another way.
531 (substitute* "tests/meson.build"
532 (("pbbam_gtest_dep = dependency\\('gtest_main'.*")
533 (format #f "cpp = meson.get_compiler('cpp')
534 pbbam_gtest_dep = cpp.find_library('gtest_main', dirs : '~a')\n"
535 (assoc-ref inputs "googletest"))))
536 #t)))
537 ;; TODO: tests/pbbam_test cannot be linked
538 ;; ld: tests/59830eb@@pbbam_test@exe/src_test_Accuracy.cpp.o:
539 ;; undefined reference to symbol '_ZTIN7testing4TestE'
540 ;; ld: /gnu/store/...-googletest-1.8.0/lib/libgtest.so:
541 ;; error adding symbols: DSO missing from command line
542 #:tests? #f
543 #:configure-flags '("-Dtests=false")))
544 ;; These libraries are listed as "Required" in the pkg-config file.
545 (propagated-inputs
546 `(("htslib" ,htslib)
547 ("zlib" ,zlib)))
548 (inputs
549 `(("boost" ,boost)
550 ("samtools" ,samtools)))
551 (native-inputs
552 `(("googletest" ,googletest)
553 ("pkg-config" ,pkg-config)
554 ("python" ,python-wrapper))) ; for tests
555 (home-page "https://github.com/PacificBiosciences/pbbam")
556 (synopsis "Work with PacBio BAM files")
557 (description
558 "The pbbam software package provides components to create, query, and
559 edit PacBio BAM files and associated indices. These components include a core
560 C++ library, bindings for additional languages, and command-line utilities.
561 This library is not intended to be used as a general-purpose BAM utility - all
562 input and output BAMs must adhere to the PacBio BAM format specification.
563 Non-PacBio BAMs will cause exceptions to be thrown.")
564 (license license:bsd-3)))
565
566 (define-public blasr-libcpp
567 (package
568 (name "blasr-libcpp")
569 (version "5.3.3")
570 (source (origin
571 (method git-fetch)
572 (uri (git-reference
573 (url "https://github.com/PacificBiosciences/blasr_libcpp")
574 (commit version)))
575 (file-name (git-file-name name version))
576 (sha256
577 (base32
578 "0cn5l42zyq67sj0g2imqkhayz2iqvv0a1pgpbmlq0qynjmsrbfd2"))))
579 (build-system meson-build-system)
580 (arguments
581 `(#:phases
582 (modify-phases %standard-phases
583 (add-after 'unpack 'link-with-hdf5
584 (lambda* (#:key inputs #:allow-other-keys)
585 (let ((hdf5 (assoc-ref inputs "hdf5")))
586 (substitute* "meson.build"
587 (("libblasr_deps = \\[" m)
588 (string-append
589 m
590 (format #f "cpp.find_library('hdf5', dirs : '~a'), \
591 cpp.find_library('hdf5_cpp', dirs : '~a'), "
592 hdf5 hdf5)))))
593 #t))
594 (add-after 'unpack 'find-googletest
595 (lambda* (#:key inputs #:allow-other-keys)
596 ;; It doesn't find gtest_main because there's no pkg-config file
597 ;; for it. Find it another way.
598 (substitute* "unittest/meson.build"
599 (("libblasr_gtest_dep = dependency\\('gtest_main'.*")
600 (format #f "cpp = meson.get_compiler('cpp')
601 libblasr_gtest_dep = cpp.find_library('gtest_main', dirs : '~a')\n"
602 (assoc-ref inputs "googletest"))))
603 #t)))
604 ;; TODO: unittest/libblasr_unittest cannot be linked
605 ;; ld: ;; unittest/df08227@@libblasr_unittest@exe/alignment_utils_FileUtils_gtest.cpp.o:
606 ;; undefined reference to symbol
607 ;; '_ZN7testing8internal9DeathTest6CreateEPKcPKNS0_2REES3_iPPS1_'
608 ;; ld: /gnu/store/...-googletest-1.8.0/lib/libgtest.so:
609 ;; error adding symbols: DSO missing from command line
610 #:tests? #f
611 #:configure-flags '("-Dtests=false")))
612 (inputs
613 `(("boost" ,boost)
614 ("hdf5" ,hdf5)
615 ("pbbam" ,pbbam)
616 ("zlib" ,zlib)))
617 (native-inputs
618 `(("googletest" ,googletest)
619 ("pkg-config" ,pkg-config)))
620 (home-page "https://github.com/PacificBiosciences/blasr_libcpp")
621 (synopsis "Library for analyzing PacBio genomic sequences")
622 (description
623 "This package provides three libraries used by applications for analyzing
624 PacBio genomic sequences. This library contains three sub-libraries: pbdata,
625 hdf and alignment.")
626 (license license:bsd-3)))
627
628 (define-public blasr
629 (package
630 (name "blasr")
631 (version "5.3.3")
632 (source (origin
633 (method git-fetch)
634 (uri (git-reference
635 (url "https://github.com/PacificBiosciences/blasr")
636 (commit version)))
637 (file-name (git-file-name name version))
638 (sha256
639 (base32
640 "1skgy2mvz8gsgfh1gc2nfgwvpyzb1hpmp2cf2773h5wsj8nw22kl"))))
641 (build-system meson-build-system)
642 (arguments
643 `(#:phases
644 (modify-phases %standard-phases
645 (add-after 'unpack 'link-with-hdf5
646 (lambda* (#:key inputs #:allow-other-keys)
647 (let ((hdf5 (assoc-ref inputs "hdf5")))
648 (substitute* "meson.build"
649 (("blasr_deps = \\[" m)
650 (string-append
651 m
652 (format #f "cpp.find_library('hdf5', dirs : '~a'), \
653 cpp.find_library('hdf5_cpp', dirs : '~a'), "
654 hdf5 hdf5)))))
655 #t)))
656 ;; Tests require "cram" executable, which is not packaged.
657 #:tests? #f
658 #:configure-flags '("-Dtests=false")))
659 (inputs
660 `(("boost" ,boost)
661 ("blasr-libcpp" ,blasr-libcpp)
662 ("hdf5" ,hdf5)
663 ("pbbam" ,pbbam)
664 ("zlib" ,zlib)))
665 (native-inputs
666 `(("pkg-config" ,pkg-config)))
667 (home-page "https://github.com/PacificBiosciences/blasr")
668 (synopsis "PacBio long read aligner")
669 (description
670 "Blasr is a genomic sequence aligner for processing PacBio long reads.")
671 (license license:bsd-3)))
672
673 (define-public ribotaper
674 (package
675 (name "ribotaper")
676 (version "1.3.1")
677 (source (origin
678 (method url-fetch)
679 (uri (string-append "https://ohlerlab.mdc-berlin.de/"
680 "files/RiboTaper/RiboTaper_Version_"
681 version ".tar.gz"))
682 (sha256
683 (base32
684 "0ykjbps1y3z3085q94npw8i9x5gldc6shy8vlc08v76zljsm07hv"))))
685 (build-system gnu-build-system)
686 (arguments
687 `(#:phases
688 (modify-phases %standard-phases
689 (add-after 'install 'wrap-executables
690 (lambda* (#:key inputs outputs #:allow-other-keys)
691 (let* ((out (assoc-ref outputs "out")))
692 (for-each
693 (lambda (script)
694 (wrap-program (string-append out "/bin/" script)
695 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
696 '("create_annotations_files.bash"
697 "create_metaplots.bash"
698 "Ribotaper_ORF_find.sh"
699 "Ribotaper.sh")))
700 #t)))))
701 (inputs
702 `(("bedtools" ,bedtools-2.18)
703 ("samtools" ,samtools-0.1)
704 ("r-minimal" ,r-minimal)
705 ("r-foreach" ,r-foreach)
706 ("r-xnomial" ,r-xnomial)
707 ("r-domc" ,r-domc)
708 ("r-multitaper" ,r-multitaper)
709 ("r-seqinr" ,r-seqinr)))
710 (home-page "https://ohlerlab.mdc-berlin.de/software/RiboTaper_126/")
711 (synopsis "Define translated ORFs using ribosome profiling data")
712 (description
713 "Ribotaper is a method for defining translated @dfn{open reading
714 frames} (ORFs) using ribosome profiling (ribo-seq) data. This package
715 provides the Ribotaper pipeline.")
716 (license license:gpl3+)))
717
718 (define-public ribodiff
719 (package
720 (name "ribodiff")
721 (version "0.2.2")
722 (source
723 (origin
724 (method git-fetch)
725 (uri (git-reference
726 (url "https://github.com/ratschlab/RiboDiff")
727 (commit (string-append "v" version))))
728 (file-name (git-file-name name version))
729 (sha256
730 (base32
731 "0x75nlp7qnmm64jasbi6l21f2cy99r2cjyl6b4hr8zf2bq22drnz"))))
732 (build-system python-build-system)
733 (arguments
734 `(#:python ,python-2
735 #:phases
736 (modify-phases %standard-phases
737 ;; Generate an installable executable script wrapper.
738 (add-after 'unpack 'patch-setup.py
739 (lambda _
740 (substitute* "setup.py"
741 (("^(.*)packages=.*" line prefix)
742 (string-append line "\n"
743 prefix "scripts=['scripts/TE.py'],\n")))
744 #t)))))
745 (inputs
746 `(("python-numpy" ,python2-numpy)
747 ("python-matplotlib" ,python2-matplotlib)
748 ("python-scipy" ,python2-scipy)
749 ("python-statsmodels" ,python2-statsmodels)))
750 (native-inputs
751 `(("python-mock" ,python2-mock)
752 ("python-nose" ,python2-nose)))
753 (home-page "https://public.bmi.inf.ethz.ch/user/zhongy/RiboDiff/")
754 (synopsis "Detect translation efficiency changes from ribosome footprints")
755 (description "RiboDiff is a statistical tool that detects the protein
756 translational efficiency change from Ribo-Seq (ribosome footprinting) and
757 RNA-Seq data. It uses a generalized linear model to detect genes showing
758 difference in translational profile taking mRNA abundance into account. It
759 facilitates us to decipher the translational regulation that behave
760 independently with transcriptional regulation.")
761 (license license:gpl3+)))
762
763 (define-public bioawk
764 (package
765 (name "bioawk")
766 (version "1.0")
767 (source (origin
768 (method git-fetch)
769 (uri (git-reference
770 (url "https://github.com/lh3/bioawk")
771 (commit (string-append "v" version))))
772 (file-name (git-file-name name version))
773 (sha256
774 (base32
775 "1pxc3zdnirxbf9a0az698hd8xdik7qkhypm7v6hn922x8y9qmspm"))))
776 (build-system gnu-build-system)
777 (inputs
778 `(("zlib" ,zlib)))
779 (native-inputs
780 `(("bison" ,bison)))
781 (arguments
782 `(#:tests? #f ; There are no tests to run.
783 ;; Bison must generate files, before other targets can build.
784 #:parallel-build? #f
785 #:phases
786 (modify-phases %standard-phases
787 (delete 'configure) ; There is no configure phase.
788 (replace 'install
789 (lambda* (#:key outputs #:allow-other-keys)
790 (let* ((out (assoc-ref outputs "out"))
791 (bin (string-append out "/bin"))
792 (man (string-append out "/share/man/man1")))
793 (mkdir-p man)
794 (copy-file "awk.1" (string-append man "/bioawk.1"))
795 (install-file "bioawk" bin))
796 #t)))))
797 (home-page "https://github.com/lh3/bioawk")
798 (synopsis "AWK with bioinformatics extensions")
799 (description "Bioawk is an extension to Brian Kernighan's awk, adding the
800 support of several common biological data formats, including optionally gzip'ed
801 BED, GFF, SAM, VCF, FASTA/Q and TAB-delimited formats with column names. It
802 also adds a few built-in functions and a command line option to use TAB as the
803 input/output delimiter. When the new functionality is not used, bioawk is
804 intended to behave exactly the same as the original BWK awk.")
805 (license license:x11)))
806
807 (define-public python-pybedtools
808 (package
809 (name "python-pybedtools")
810 (version "0.8.1")
811 (source (origin
812 (method url-fetch)
813 (uri (pypi-uri "pybedtools" version))
814 (sha256
815 (base32
816 "14w5i40gi25clrr7h4wa2pcpnyipya8hrqi7nq77553zc5wf0df0"))))
817 (build-system python-build-system)
818 (arguments
819 `(#:modules ((ice-9 ftw)
820 (srfi srfi-1)
821 (srfi srfi-26)
822 (guix build utils)
823 (guix build python-build-system))
824 ;; See https://github.com/daler/pybedtools/issues/192
825 #:phases
826 (modify-phases %standard-phases
827 (add-after 'unpack 'disable-broken-tests
828 (lambda _
829 (substitute* "pybedtools/test/test_scripts.py"
830 ;; This test freezes.
831 (("def test_intron_exon_reads")
832 "def _do_not_test_intron_exon_reads")
833 ;; This test fails in the Python 2 build.
834 (("def test_venn_mpl")
835 "def _do_not_test_venn_mpl"))
836 (substitute* "pybedtools/test/test_helpers.py"
837 ;; Requires internet access.
838 (("def test_chromsizes")
839 "def _do_not_test_chromsizes")
840 ;; Broken as a result of the workaround used in the check phase
841 ;; (see: https://github.com/daler/pybedtools/issues/192).
842 (("def test_getting_example_beds")
843 "def _do_not_test_getting_example_beds"))
844 ;; This issue still occurs on python2
845 (substitute* "pybedtools/test/test_issues.py"
846 (("def test_issue_303")
847 "def _test_issue_303"))
848 #t))
849 ;; TODO: Remove phase after it's part of PYTHON-BUILD-SYSTEM.
850 ;; build system.
851 ;; Force the Cythonization of C++ files to guard against compilation
852 ;; problems.
853 (add-after 'unpack 'remove-cython-generated-files
854 (lambda _
855 (let ((cython-sources (map (cut string-drop-right <> 4)
856 (find-files "." "\\.pyx$")))
857 (c/c++-files (find-files "." "\\.(c|cpp|cxx)$")))
858 (define (strip-extension filename)
859 (string-take filename (string-index-right filename #\.)))
860 (define (cythonized? c/c++-file)
861 (member (strip-extension c/c++-file) cython-sources))
862 (for-each delete-file (filter cythonized? c/c++-files))
863 #t)))
864 (add-after 'remove-cython-generated-files 'generate-cython-extensions
865 (lambda _
866 (invoke "python" "setup.py" "cythonize")))
867 (replace 'check
868 (lambda _
869 (let* ((cwd (getcwd))
870 (build-root-directory (string-append cwd "/build/"))
871 (build (string-append
872 build-root-directory
873 (find (cut string-prefix? "lib" <>)
874 (scandir (string-append
875 build-root-directory)))))
876 (scripts (string-append
877 build-root-directory
878 (find (cut string-prefix? "scripts" <>)
879 (scandir build-root-directory)))))
880 (setenv "PYTHONPATH"
881 (string-append build ":" (getenv "PYTHONPATH")))
882 ;; Executable scripts such as 'intron_exon_reads.py' must be
883 ;; available in the PATH.
884 (setenv "PATH"
885 (string-append scripts ":" (getenv "PATH"))))
886 ;; The tests need to be run from elsewhere...
887 (mkdir-p "/tmp/test")
888 (copy-recursively "pybedtools/test" "/tmp/test")
889 (with-directory-excursion "/tmp/test"
890 (invoke "pytest" "-v" "--doctest-modules")))))))
891 (propagated-inputs
892 `(("bedtools" ,bedtools)
893 ("samtools" ,samtools)
894 ("python-matplotlib" ,python-matplotlib)
895 ("python-pysam" ,python-pysam)
896 ("python-pyyaml" ,python-pyyaml)))
897 (native-inputs
898 `(("python-numpy" ,python-numpy)
899 ("python-pandas" ,python-pandas)
900 ("python-cython" ,python-cython)
901 ("kentutils" ,kentutils) ; for bedGraphToBigWig
902 ("python-six" ,python-six)
903 ;; For the test suite.
904 ("python-pytest" ,python-pytest)
905 ("python-psutil" ,python-psutil)))
906 (home-page "https://pythonhosted.org/pybedtools/")
907 (synopsis "Python wrapper for BEDtools programs")
908 (description
909 "pybedtools is a Python wrapper for Aaron Quinlan's BEDtools programs,
910 which are widely used for genomic interval manipulation or \"genome algebra\".
911 pybedtools extends BEDTools by offering feature-level manipulations from with
912 Python.")
913 (license license:gpl2+)))
914
915 (define-public python2-pybedtools
916 (let ((pybedtools (package-with-python2 python-pybedtools)))
917 (package
918 (inherit pybedtools)
919 (native-inputs
920 `(("python2-pathlib" ,python2-pathlib)
921 ,@(package-native-inputs pybedtools))))))
922
923 (define-public python-biom-format
924 (package
925 (name "python-biom-format")
926 (version "2.1.7")
927 (source
928 (origin
929 (method git-fetch)
930 ;; Use GitHub as source because PyPI distribution does not contain
931 ;; test data: https://github.com/biocore/biom-format/issues/693
932 (uri (git-reference
933 (url "https://github.com/biocore/biom-format")
934 (commit version)))
935 (file-name (git-file-name name version))
936 (sha256
937 (base32
938 "1rna16lyk5aqhnv0dp77wwaplias93f1vw28ad3jmyw6hwkai05v"))
939 (modules '((guix build utils)))
940 (snippet '(begin
941 ;; Delete generated C files.
942 (for-each delete-file (find-files "." "\\.c"))
943 #t))))
944 (build-system python-build-system)
945 (arguments
946 `(#:phases
947 (modify-phases %standard-phases
948 (add-after 'unpack 'use-cython
949 (lambda _ (setenv "USE_CYTHON" "1") #t))
950 (add-after 'unpack 'disable-broken-tests
951 (lambda _
952 (substitute* "biom/tests/test_cli/test_validate_table.py"
953 (("^(.+)def test_invalid_hdf5" m indent)
954 (string-append indent
955 "@npt.dec.skipif(True, msg='Guix')\n"
956 m)))
957 (substitute* "biom/tests/test_table.py"
958 (("^(.+)def test_from_hdf5_issue_731" m indent)
959 (string-append indent
960 "@npt.dec.skipif(True, msg='Guix')\n"
961 m)))
962 #t))
963 (add-before 'reset-gzip-timestamps 'make-files-writable
964 (lambda* (#:key outputs #:allow-other-keys)
965 (let ((out (assoc-ref outputs "out")))
966 (for-each (lambda (file) (chmod file #o644))
967 (find-files out "\\.gz"))
968 #t))))))
969 (propagated-inputs
970 `(("python-numpy" ,python-numpy)
971 ("python-scipy" ,python-scipy)
972 ("python-flake8" ,python-flake8)
973 ("python-future" ,python-future)
974 ("python-click" ,python-click)
975 ("python-h5py" ,python-h5py)
976 ;; FIXME: Upgrade to pandas 1.0 when
977 ;; https://github.com/biocore/biom-format/issues/837 is resolved.
978 ("python-pandas" ,python-pandas-0.25)))
979 (native-inputs
980 `(("python-cython" ,python-cython)
981 ("python-pytest" ,python-pytest)
982 ("python-pytest-cov" ,python-pytest-cov)
983 ("python-nose" ,python-nose)))
984 (home-page "http://www.biom-format.org")
985 (synopsis "Biological Observation Matrix (BIOM) format utilities")
986 (description
987 "The BIOM file format is designed to be a general-use format for
988 representing counts of observations e.g. operational taxonomic units, KEGG
989 orthology groups or lipid types, in one or more biological samples
990 e.g. microbiome samples, genomes, metagenomes.")
991 (license license:bsd-3)
992 (properties `((python2-variant . ,(delay python2-biom-format))))))
993
994 (define-public python2-biom-format
995 (let ((base (package-with-python2 (strip-python2-variant python-biom-format))))
996 (package
997 (inherit base)
998 (arguments
999 (substitute-keyword-arguments (package-arguments base)
1000 ((#:phases phases)
1001 `(modify-phases ,phases
1002 ;; Do not require the unmaintained pyqi library.
1003 (add-after 'unpack 'remove-pyqi
1004 (lambda _
1005 (substitute* "setup.py"
1006 (("install_requires.append\\(\"pyqi\"\\)") "pass"))
1007 #t)))))))))
1008
1009 (define-public python-pairtools
1010 (package
1011 (name "python-pairtools")
1012 (version "0.3.0")
1013 (source (origin
1014 (method git-fetch)
1015 (uri (git-reference
1016 (url "https://github.com/mirnylab/pairtools")
1017 (commit (string-append "v" version))))
1018 (file-name (git-file-name name version))
1019 (sha256
1020 (base32
1021 "0gr8y13q7sd6yai6df4aavl2470n1f9s3cib6r473z4hr8hcbwmc"))))
1022 (build-system python-build-system)
1023 (arguments
1024 `(#:phases
1025 (modify-phases %standard-phases
1026 (add-after 'unpack 'fix-references
1027 (lambda _
1028 (substitute* '("pairtools/pairtools_merge.py"
1029 "pairtools/pairtools_sort.py")
1030 (("/bin/bash") (which "bash")))
1031 #t))
1032 (replace 'check
1033 (lambda* (#:key inputs outputs #:allow-other-keys)
1034 (add-installed-pythonpath inputs outputs)
1035 (with-directory-excursion "/tmp"
1036 (invoke "pytest" "-v")))))))
1037 (native-inputs
1038 `(("python-cython" ,python-cython)
1039 ("python-nose" ,python-nose)
1040 ("python-pytest" ,python-pytest)))
1041 (inputs
1042 `(("python" ,python-wrapper)))
1043 (propagated-inputs
1044 `(("htslib" ,htslib) ; for bgzip, looked up in PATH
1045 ("samtools" ,samtools) ; looked up in PATH
1046 ("lz4" ,lz4) ; for lz4c
1047 ("python-click" ,python-click)
1048 ("python-numpy" ,python-numpy)))
1049 (home-page "https://github.com/mirnylab/pairtools")
1050 (synopsis "Process mapped Hi-C data")
1051 (description "Pairtools is a simple and fast command-line framework to
1052 process sequencing data from a Hi-C experiment. Process pair-end sequence
1053 alignments and perform the following operations:
1054
1055 @itemize
1056 @item detect ligation junctions (a.k.a. Hi-C pairs) in aligned paired-end
1057 sequences of Hi-C DNA molecules
1058 @item sort @code{.pairs} files for downstream analyses
1059 @item detect, tag and remove PCR/optical duplicates
1060 @item generate extensive statistics of Hi-C datasets
1061 @item select Hi-C pairs given flexibly defined criteria
1062 @item restore @code{.sam} alignments from Hi-C pairs.
1063 @end itemize
1064 ")
1065 (license license:expat)))
1066
1067 (define-public bioperl-minimal
1068 (let* ((inputs `(("perl-module-build" ,perl-module-build)
1069 ("perl-data-stag" ,perl-data-stag)
1070 ("perl-libwww" ,perl-libwww)
1071 ("perl-uri" ,perl-uri)))
1072 (transitive-inputs
1073 (map (compose package-name cadr)
1074 (delete-duplicates
1075 (concatenate
1076 (map (compose package-transitive-target-inputs cadr) inputs))))))
1077 (package
1078 (name "bioperl-minimal")
1079 (version "1.7.0")
1080 (source
1081 (origin
1082 (method git-fetch)
1083 (uri (git-reference
1084 (url "https://github.com/bioperl/bioperl-live")
1085 (commit (string-append "release-"
1086 (string-map (lambda (c)
1087 (if (char=? c #\.)
1088 #\- c)) version)))))
1089 (file-name (git-file-name name version))
1090 (sha256
1091 (base32
1092 "0wl8yvzcls59pwwk6m8ahy87pwg6nnibzy5cldbvmcwg2x2w7783"))))
1093 (build-system perl-build-system)
1094 (arguments
1095 `(#:phases
1096 (modify-phases %standard-phases
1097 (add-after
1098 'install 'wrap-programs
1099 (lambda* (#:key outputs #:allow-other-keys)
1100 ;; Make sure all executables in "bin" find the required Perl
1101 ;; modules at runtime. As the PERL5LIB variable contains also
1102 ;; the paths of native inputs, we pick the transitive target
1103 ;; inputs from %build-inputs.
1104 (let* ((out (assoc-ref outputs "out"))
1105 (bin (string-append out "/bin/"))
1106 (path (string-join
1107 (cons (string-append out "/lib/perl5/site_perl")
1108 (map (lambda (name)
1109 (assoc-ref %build-inputs name))
1110 ',transitive-inputs))
1111 ":")))
1112 (for-each (lambda (file)
1113 (wrap-program file
1114 `("PERL5LIB" ":" prefix (,path))))
1115 (find-files bin "\\.pl$"))
1116 #t))))))
1117 (inputs inputs)
1118 (native-inputs
1119 `(("perl-test-most" ,perl-test-most)))
1120 (home-page "https://metacpan.org/release/BioPerl")
1121 (synopsis "Bioinformatics toolkit")
1122 (description
1123 "BioPerl is the product of a community effort to produce Perl code which
1124 is useful in biology. Examples include Sequence objects, Alignment objects
1125 and database searching objects. These objects not only do what they are
1126 advertised to do in the documentation, but they also interact - Alignment
1127 objects are made from the Sequence objects, Sequence objects have access to
1128 Annotation and SeqFeature objects and databases, Blast objects can be
1129 converted to Alignment objects, and so on. This means that the objects
1130 provide a coordinated and extensible framework to do computational biology.")
1131 (license license:perl-license))))
1132
1133 (define-public python-biopython
1134 (package
1135 (name "python-biopython")
1136 (version "1.70")
1137 (source (origin
1138 (method url-fetch)
1139 ;; use PyPi rather than biopython.org to ease updating
1140 (uri (pypi-uri "biopython" version))
1141 (sha256
1142 (base32
1143 "0nz4n9d2y2dg849gn1z0vjlkwcpzzkzy3fij7x94a6ixy2c54z2a"))))
1144 (build-system python-build-system)
1145 (arguments
1146 `(#:phases
1147 (modify-phases %standard-phases
1148 (add-before 'check 'set-home
1149 ;; Some tests require a home directory to be set.
1150 (lambda _ (setenv "HOME" "/tmp") #t)))))
1151 (propagated-inputs
1152 `(("python-numpy" ,python-numpy)))
1153 (home-page "https://biopython.org/")
1154 (synopsis "Tools for biological computation in Python")
1155 (description
1156 "Biopython is a set of tools for biological computation including parsers
1157 for bioinformatics files into Python data structures; interfaces to common
1158 bioinformatics programs; a standard sequence class and tools for performing
1159 common operations on them; code to perform data classification; code for
1160 dealing with alignments; code making it easy to split up parallelizable tasks
1161 into separate processes; and more.")
1162 (license (license:non-copyleft "http://www.biopython.org/DIST/LICENSE"))))
1163
1164 (define-public python2-biopython
1165 (package-with-python2 python-biopython))
1166
1167 (define-public python-fastalite
1168 (package
1169 (name "python-fastalite")
1170 (version "0.3")
1171 (source
1172 (origin
1173 (method url-fetch)
1174 (uri (pypi-uri "fastalite" version))
1175 (sha256
1176 (base32
1177 "1qli6pxp77i9xn2wfciq2zaxhl82bdxb33cpzqzj1z25yd036wqj"))))
1178 (build-system python-build-system)
1179 (arguments
1180 `(#:tests? #f)) ; Test data is not distributed.
1181 (home-page "https://github.com/nhoffman/fastalite")
1182 (synopsis "Simplest possible FASTA parser")
1183 (description "This library implements a FASTA and a FASTQ parser without
1184 relying on a complex dependency tree.")
1185 (license license:expat)))
1186
1187 (define-public python2-fastalite
1188 (package-with-python2 python-fastalite))
1189
1190 (define-public bpp-core
1191 ;; The last release was in 2014 and the recommended way to install from source
1192 ;; is to clone the git repository, so we do this.
1193 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1194 (let ((commit "7d8bced0d1a87291ea8dd7046b7fb5ff9c35c582"))
1195 (package
1196 (name "bpp-core")
1197 (version (string-append "2.2.0-1." (string-take commit 7)))
1198 (source (origin
1199 (method git-fetch)
1200 (uri (git-reference
1201 (url "http://biopp.univ-montp2.fr/git/bpp-core")
1202 (commit commit)))
1203 (file-name (string-append name "-" version "-checkout"))
1204 (sha256
1205 (base32
1206 "10djsq5vlnkilv436gnmh4irpk49v29pa69r6xiryg32xmvn909j"))))
1207 (build-system cmake-build-system)
1208 (arguments
1209 `(#:parallel-build? #f))
1210 (home-page "http://biopp.univ-montp2.fr")
1211 (synopsis "C++ libraries for Bioinformatics")
1212 (description
1213 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1214 analysis, phylogenetics, molecular evolution and population genetics. It is
1215 Object Oriented and is designed to be both easy to use and computer efficient.
1216 Bio++ intends to help programmers to write computer expensive programs, by
1217 providing them a set of re-usable tools.")
1218 (license license:cecill-c))))
1219
1220 (define-public bpp-phyl
1221 ;; The last release was in 2014 and the recommended way to install from source
1222 ;; is to clone the git repository, so we do this.
1223 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1224 (let ((commit "0c07167b629f68b569bf274d1ad0c4af83276ae2"))
1225 (package
1226 (name "bpp-phyl")
1227 (version (string-append "2.2.0-1." (string-take commit 7)))
1228 (source (origin
1229 (method git-fetch)
1230 (uri (git-reference
1231 (url "http://biopp.univ-montp2.fr/git/bpp-phyl")
1232 (commit commit)))
1233 (file-name (string-append name "-" version "-checkout"))
1234 (sha256
1235 (base32
1236 "1ssjgchzwj3iai26kyly7gwkdv8sk59nqhkb1wpap3sf5m6kyllh"))))
1237 (build-system cmake-build-system)
1238 (arguments
1239 `(#:parallel-build? #f
1240 ;; If out-of-source, test data is not copied into the build directory
1241 ;; so the tests fail.
1242 #:out-of-source? #f))
1243 (inputs
1244 `(("bpp-core" ,bpp-core)
1245 ("bpp-seq" ,bpp-seq)))
1246 (home-page "http://biopp.univ-montp2.fr")
1247 (synopsis "Bio++ phylogenetic Library")
1248 (description
1249 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1250 analysis, phylogenetics, molecular evolution and population genetics. This
1251 library provides phylogenetics-related modules.")
1252 (license license:cecill-c))))
1253
1254 (define-public bpp-popgen
1255 ;; The last release was in 2014 and the recommended way to install from source
1256 ;; is to clone the git repository, so we do this.
1257 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1258 (let ((commit "e472bac9b1a148803895d747cd6d0c5904f85d9f"))
1259 (package
1260 (name "bpp-popgen")
1261 (version (string-append "2.2.0-1." (string-take commit 7)))
1262 (source (origin
1263 (method git-fetch)
1264 (uri (git-reference
1265 (url "http://biopp.univ-montp2.fr/git/bpp-popgen")
1266 (commit commit)))
1267 (file-name (string-append name "-" version "-checkout"))
1268 (sha256
1269 (base32
1270 "0yn82dzn1n5629nzja68xfrhi655709rjanyryb36vzkmymy6dw5"))))
1271 (build-system cmake-build-system)
1272 (arguments
1273 `(#:parallel-build? #f
1274 #:tests? #f)) ; There are no tests.
1275 (inputs
1276 `(("bpp-core" ,bpp-core)
1277 ("bpp-seq" ,bpp-seq)))
1278 (home-page "http://biopp.univ-montp2.fr")
1279 (synopsis "Bio++ population genetics library")
1280 (description
1281 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1282 analysis, phylogenetics, molecular evolution and population genetics. This
1283 library provides population genetics-related modules.")
1284 (license license:cecill-c))))
1285
1286 (define-public bpp-seq
1287 ;; The last release was in 2014 and the recommended way to install from source
1288 ;; is to clone the git repository, so we do this.
1289 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1290 (let ((commit "6cfa07965ce152e5598a89df2fa80a75973bfa33"))
1291 (package
1292 (name "bpp-seq")
1293 (version (string-append "2.2.0-1." (string-take commit 7)))
1294 (source (origin
1295 (method git-fetch)
1296 (uri (git-reference
1297 (url "http://biopp.univ-montp2.fr/git/bpp-seq")
1298 (commit commit)))
1299 (file-name (string-append name "-" version "-checkout"))
1300 (sha256
1301 (base32
1302 "1nys5jq7jqvdg40d91wsmj3q2yzy4276cp7sp44n67p468f27zf2"))))
1303 (build-system cmake-build-system)
1304 (arguments
1305 `(#:parallel-build? #f
1306 ;; If out-of-source, test data is not copied into the build directory
1307 ;; so the tests fail.
1308 #:out-of-source? #f))
1309 (inputs
1310 `(("bpp-core" ,bpp-core)))
1311 (home-page "http://biopp.univ-montp2.fr")
1312 (synopsis "Bio++ sequence library")
1313 (description
1314 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1315 analysis, phylogenetics, molecular evolution and population genetics. This
1316 library provides sequence-related modules.")
1317 (license license:cecill-c))))
1318
1319 (define-public bppsuite
1320 ;; The last release was in 2014 and the recommended way to install from source
1321 ;; is to clone the git repository, so we do this.
1322 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1323 (let ((commit "c516147f57aa50961121cd505bed52cd7603698b"))
1324 (package
1325 (name "bppsuite")
1326 (version (string-append "2.2.0-1." (string-take commit 7)))
1327 (source (origin
1328 (method git-fetch)
1329 (uri (git-reference
1330 (url "http://biopp.univ-montp2.fr/git/bppsuite")
1331 (commit commit)))
1332 (file-name (string-append name "-" version "-checkout"))
1333 (sha256
1334 (base32
1335 "1y87pxvw0jxjizhq2dr9g2r91md45k1p9ih2sl1yy1y3p934l2kb"))))
1336 (build-system cmake-build-system)
1337 (arguments
1338 `(#:parallel-build? #f
1339 #:tests? #f)) ; There are no tests.
1340 (native-inputs
1341 `(("groff" ,groff)
1342 ("man-db" ,man-db)
1343 ("texinfo" ,texinfo)))
1344 (inputs
1345 `(("bpp-core" ,bpp-core)
1346 ("bpp-seq" ,bpp-seq)
1347 ("bpp-phyl" ,bpp-phyl)
1348 ("bpp-phyl" ,bpp-popgen)))
1349 (home-page "http://biopp.univ-montp2.fr")
1350 (synopsis "Bioinformatics tools written with the Bio++ libraries")
1351 (description
1352 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1353 analysis, phylogenetics, molecular evolution and population genetics. This
1354 package provides command line tools using the Bio++ library.")
1355 (license license:cecill-c))))
1356
1357 (define-public blast+
1358 (package
1359 (name "blast+")
1360 (version "2.10.1")
1361 (source (origin
1362 (method url-fetch)
1363 (uri (string-append
1364 "https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/"
1365 version "/ncbi-blast-" version "+-src.tar.gz"))
1366 (sha256
1367 (base32
1368 "11kvrrl0mcwww6530r55hccpg3x3msmhr3051fwnjbq8rzg2j1qi"))
1369 (modules '((guix build utils)))
1370 (snippet
1371 '(begin
1372 ;; Remove bundled bzip2, zlib and pcre.
1373 (delete-file-recursively "c++/src/util/compress/bzip2")
1374 (delete-file-recursively "c++/src/util/compress/zlib")
1375 (delete-file-recursively "c++/src/util/regexp")
1376 (substitute* "c++/src/util/compress/Makefile.in"
1377 (("bzip2 zlib api") "api"))
1378 ;; Remove useless msbuild directory
1379 (delete-file-recursively
1380 "c++/src/build-system/project_tree_builder/msbuild")
1381 #t))))
1382 (build-system gnu-build-system)
1383 (arguments
1384 `(;; There are two(!) tests for this massive library, and both fail with
1385 ;; "unparsable timing stats".
1386 ;; ERR [127] -- [serial/datatool] datatool.sh (unparsable timing stats)
1387 ;; ERR [127] -- [serial/datatool] datatool_xml.sh (unparsable timing stats)
1388 #:tests? #f
1389 #:out-of-source? #t
1390 #:parallel-build? #f ; not supported
1391 #:phases
1392 (modify-phases %standard-phases
1393 (add-before 'configure 'set-HOME
1394 ;; $HOME needs to be set at some point during the configure phase
1395 (lambda _ (setenv "HOME" "/tmp") #t))
1396 (add-after 'unpack 'enter-dir
1397 (lambda _ (chdir "c++") #t))
1398 (add-after 'enter-dir 'fix-build-system
1399 (lambda _
1400 (define (which* cmd)
1401 (cond ((string=? cmd "date")
1402 ;; make call to "date" deterministic
1403 "date -d @0")
1404 ((which cmd)
1405 => identity)
1406 (else
1407 (format (current-error-port)
1408 "WARNING: Unable to find absolute path for ~s~%"
1409 cmd)
1410 #f)))
1411
1412 ;; Rewrite hardcoded paths to various tools
1413 (substitute* (append '("src/build-system/configure.ac"
1414 "src/build-system/configure"
1415 "src/build-system/helpers/run_with_lock.c"
1416 "scripts/common/impl/if_diff.sh"
1417 "scripts/common/impl/run_with_lock.sh"
1418 "src/build-system/Makefile.configurables.real"
1419 "src/build-system/Makefile.in.top"
1420 "src/build-system/Makefile.meta.gmake=no"
1421 "src/build-system/Makefile.meta.in"
1422 "src/build-system/Makefile.meta_l"
1423 "src/build-system/Makefile.meta_p"
1424 "src/build-system/Makefile.meta_r"
1425 "src/build-system/Makefile.mk.in"
1426 "src/build-system/Makefile.requirements"
1427 "src/build-system/Makefile.rules_with_autodep.in")
1428 (find-files "scripts/common/check" "\\.sh$"))
1429 (("(/usr/bin/|/bin/)([a-z][-_.a-z]*)" all dir cmd)
1430 (or (which* cmd) all)))
1431
1432 (substitute* (find-files "src/build-system" "^config.*")
1433 (("LN_S=/bin/\\$LN_S") (string-append "LN_S=" (which "ln")))
1434 (("^PATH=.*") ""))
1435
1436 ;; rewrite "/var/tmp" in check script
1437 (substitute* "scripts/common/check/check_make_unix.sh"
1438 (("/var/tmp") "/tmp"))
1439
1440 ;; do not reset PATH
1441 (substitute* (find-files "scripts/common/impl/" "\\.sh$")
1442 (("^ *PATH=.*") "")
1443 (("action=/bin/") "action=")
1444 (("export PATH") ":"))
1445 #t))
1446 (replace 'configure
1447 (lambda* (#:key inputs outputs #:allow-other-keys)
1448 (let ((out (assoc-ref outputs "out"))
1449 (lib (string-append (assoc-ref outputs "lib") "/lib"))
1450 (include (string-append (assoc-ref outputs "include")
1451 "/include/ncbi-tools++")))
1452 ;; The 'configure' script doesn't recognize things like
1453 ;; '--enable-fast-install'.
1454 (invoke "./configure.orig"
1455 (string-append "--with-build-root=" (getcwd) "/build")
1456 (string-append "--prefix=" out)
1457 (string-append "--libdir=" lib)
1458 (string-append "--includedir=" include)
1459 (string-append "--with-bz2="
1460 (assoc-ref inputs "bzip2"))
1461 (string-append "--with-z="
1462 (assoc-ref inputs "zlib"))
1463 (string-append "--with-pcre="
1464 (assoc-ref inputs "pcre"))
1465 ;; Each library is built twice by default, once
1466 ;; with "-static" in its name, and again
1467 ;; without.
1468 "--without-static"
1469 "--with-dll")
1470 #t))))))
1471 (outputs '("out" ; 21 MB
1472 "lib" ; 226 MB
1473 "include")) ; 33 MB
1474 (inputs
1475 `(("bzip2" ,bzip2)
1476 ("lmdb" ,lmdb)
1477 ("zlib" ,zlib)
1478 ("pcre" ,pcre)
1479 ("perl" ,perl)
1480 ("python" ,python-wrapper)))
1481 (native-inputs
1482 `(("cpio" ,cpio)))
1483 (home-page "https://blast.ncbi.nlm.nih.gov")
1484 (synopsis "Basic local alignment search tool")
1485 (description
1486 "BLAST is a popular method of performing a DNA or protein sequence
1487 similarity search, using heuristics to produce results quickly. It also
1488 calculates an “expect value” that estimates how many matches would have
1489 occurred at a given score by chance, which can aid a user in judging how much
1490 confidence to have in an alignment.")
1491 ;; Most of the sources are in the public domain, with the following
1492 ;; exceptions:
1493 ;; * Expat:
1494 ;; * ./c++/include/util/bitset/
1495 ;; * ./c++/src/html/ncbi_menu*.js
1496 ;; * Boost license:
1497 ;; * ./c++/include/util/impl/floating_point_comparison.hpp
1498 ;; * LGPL 2+:
1499 ;; * ./c++/include/dbapi/driver/odbc/unix_odbc/
1500 ;; * ASL 2.0:
1501 ;; * ./c++/src/corelib/teamcity_*
1502 (license (list license:public-domain
1503 license:expat
1504 license:boost1.0
1505 license:lgpl2.0+
1506 license:asl2.0))))
1507
1508 (define-public bless
1509 (package
1510 (name "bless")
1511 (version "1p02")
1512 (source (origin
1513 (method url-fetch)
1514 (uri (string-append "mirror://sourceforge/bless-ec/bless.v"
1515 version ".tgz"))
1516 (sha256
1517 (base32
1518 "0rm0gw2s18dqwzzpl3c2x1z05ni2v0xz5dmfk3d33j6g4cgrlrdd"))
1519 (modules '((guix build utils)))
1520 (snippet
1521 `(begin
1522 ;; Remove bundled boost, pigz, zlib, and .git directory
1523 ;; FIXME: also remove bundled sources for murmurhash3 and
1524 ;; kmc once packaged.
1525 (delete-file-recursively "boost")
1526 (delete-file-recursively "pigz")
1527 (delete-file-recursively "google-sparsehash")
1528 (delete-file-recursively "zlib")
1529 (delete-file-recursively ".git")
1530 #t))))
1531 (build-system gnu-build-system)
1532 (arguments
1533 '(#:tests? #f ;no "check" target
1534 #:make-flags
1535 (list (string-append "ZLIB="
1536 (assoc-ref %build-inputs "zlib:static")
1537 "/lib/libz.a")
1538 (string-append "LDFLAGS="
1539 (string-join '("-lboost_filesystem"
1540 "-lboost_system"
1541 "-lboost_iostreams"
1542 "-lz"
1543 "-fopenmp"))))
1544 #:phases
1545 (modify-phases %standard-phases
1546 (add-after 'unpack 'do-not-build-bundled-pigz
1547 (lambda* (#:key inputs outputs #:allow-other-keys)
1548 (substitute* "Makefile"
1549 (("cd pigz/pigz-2.3.3; make") ""))
1550 #t))
1551 (add-after 'unpack 'patch-paths-to-executables
1552 (lambda* (#:key inputs outputs #:allow-other-keys)
1553 (substitute* "parse_args.cpp"
1554 (("kmc_binary = .*")
1555 (string-append "kmc_binary = \""
1556 (assoc-ref outputs "out")
1557 "/bin/kmc\";"))
1558 (("pigz_binary = .*")
1559 (string-append "pigz_binary = \""
1560 (assoc-ref inputs "pigz")
1561 "/bin/pigz\";")))
1562 #t))
1563 (replace 'install
1564 (lambda* (#:key outputs #:allow-other-keys)
1565 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
1566 (for-each (lambda (file)
1567 (install-file file bin))
1568 '("bless" "kmc/bin/kmc"))
1569 #t)))
1570 (delete 'configure))))
1571 (native-inputs
1572 `(("perl" ,perl)))
1573 (inputs
1574 `(("openmpi" ,openmpi)
1575 ("boost" ,boost)
1576 ("sparsehash" ,sparsehash)
1577 ("pigz" ,pigz)
1578 ("zlib:static" ,zlib "static")
1579 ("zlib" ,zlib)))
1580 (supported-systems '("x86_64-linux"))
1581 (home-page "https://sourceforge.net/p/bless-ec/wiki/Home/")
1582 (synopsis "Bloom-filter-based error correction tool for NGS reads")
1583 (description
1584 "@dfn{Bloom-filter-based error correction solution for high-throughput
1585 sequencing reads} (BLESS) uses a single minimum-sized bloom filter is a
1586 correction tool for genomic reads produced by @dfn{Next-generation
1587 sequencing} (NGS). BLESS produces accurate correction results with much less
1588 memory compared with previous solutions and is also able to tolerate a higher
1589 false-positive rate. BLESS can extend reads like DNA assemblers to correct
1590 errors at the end of reads.")
1591 (license license:gpl3+)))
1592
1593 (define-public bowtie
1594 (package
1595 (name "bowtie")
1596 (version "2.3.4.3")
1597 (source (origin
1598 (method git-fetch)
1599 (uri (git-reference
1600 (url "https://github.com/BenLangmead/bowtie2")
1601 (commit (string-append "v" version))))
1602 (file-name (git-file-name name version))
1603 (sha256
1604 (base32
1605 "1zl3cf327y2p7p03cavymbh7b00djc7lncfaqih33n96iy9q8ibp"))
1606 (modules '((guix build utils)))
1607 (snippet
1608 '(begin
1609 (substitute* "Makefile"
1610 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1611 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1612 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
1613 #t))))
1614 (build-system gnu-build-system)
1615 (arguments
1616 '(#:make-flags
1617 (list "allall"
1618 "WITH_TBB=1"
1619 (string-append "prefix=" (assoc-ref %outputs "out")))
1620 #:phases
1621 (modify-phases %standard-phases
1622 (delete 'configure)
1623 (replace 'check
1624 (lambda _
1625 (invoke "perl"
1626 "scripts/test/simple_tests.pl"
1627 "--bowtie2=./bowtie2"
1628 "--bowtie2-build=./bowtie2-build")
1629 #t)))))
1630 (inputs
1631 `(("tbb" ,tbb)
1632 ("zlib" ,zlib)
1633 ("python" ,python-wrapper)))
1634 (native-inputs
1635 `(("perl" ,perl)
1636 ("perl-clone" ,perl-clone)
1637 ("perl-test-deep" ,perl-test-deep)
1638 ("perl-test-simple" ,perl-test-simple)))
1639 (home-page "http://bowtie-bio.sourceforge.net/bowtie2/index.shtml")
1640 (synopsis "Fast and sensitive nucleotide sequence read aligner")
1641 (description
1642 "Bowtie 2 is a fast and memory-efficient tool for aligning sequencing
1643 reads to long reference sequences. It is particularly good at aligning reads
1644 of about 50 up to 100s or 1,000s of characters, and particularly good at
1645 aligning to relatively long (e.g. mammalian) genomes. Bowtie 2 indexes the
1646 genome with an FM Index to keep its memory footprint small: for the human
1647 genome, its memory footprint is typically around 3.2 GB. Bowtie 2 supports
1648 gapped, local, and paired-end alignment modes.")
1649 (supported-systems '("x86_64-linux"))
1650 (license license:gpl3+)))
1651
1652 (define-public bowtie1
1653 (package
1654 (name "bowtie1")
1655 (version "1.2.3")
1656 (source (origin
1657 (method url-fetch)
1658 (uri (string-append "mirror://sourceforge/bowtie-bio/bowtie/"
1659 version "/bowtie-src-x86_64.zip"))
1660 (sha256
1661 (base32
1662 "0vmiqdhc9dzyfy9sh6vgi7k9xy2hiw8g87vbamnc6cgpm179zsa4"))
1663 (modules '((guix build utils)))
1664 (snippet
1665 '(substitute* "Makefile"
1666 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1667 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1668 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\"")))))
1669 (build-system gnu-build-system)
1670 (arguments
1671 '(#:tests? #f ; no "check" target
1672 #:make-flags
1673 (list "all"
1674 (string-append "prefix=" (assoc-ref %outputs "out")))
1675 #:phases
1676 (modify-phases %standard-phases
1677 (delete 'configure))))
1678 (inputs
1679 `(("python-wrapper" ,python-wrapper)
1680 ("tbb" ,tbb)
1681 ("zlib" ,zlib)))
1682 (supported-systems '("x86_64-linux"))
1683 (home-page "http://bowtie-bio.sourceforge.net/index.shtml")
1684 (synopsis "Fast aligner for short nucleotide sequence reads")
1685 (description
1686 "Bowtie is a fast, memory-efficient short read aligner. It aligns short
1687 DNA sequences (reads) to the human genome at a rate of over 25 million 35-bp
1688 reads per hour. Bowtie indexes the genome with a Burrows-Wheeler index to
1689 keep its memory footprint small: typically about 2.2 GB for the human
1690 genome (2.9 GB for paired-end).")
1691 (license license:artistic2.0)))
1692
1693 (define-public tophat
1694 (package
1695 (name "tophat")
1696 (version "2.1.1")
1697 (source (origin
1698 (method url-fetch)
1699 (uri (string-append
1700 "http://ccb.jhu.edu/software/tophat/downloads/tophat-"
1701 version ".tar.gz"))
1702 (sha256
1703 (base32
1704 "19add02kv2xhd6ihd779dr7x35ggym3jqr0m5c4315i1yfb0p11p"))
1705 (modules '((guix build utils)))
1706 (snippet
1707 '(begin
1708 ;; Remove bundled SeqAn and samtools
1709 (delete-file-recursively "src/SeqAn-1.4.2")
1710 (delete-file-recursively "src/samtools-0.1.18")
1711 #t))))
1712 (build-system gnu-build-system)
1713 (arguments
1714 '(#:parallel-build? #f ; not supported
1715 #:phases
1716 (modify-phases %standard-phases
1717 (add-after 'set-paths 'hide-default-gcc
1718 (lambda* (#:key inputs #:allow-other-keys)
1719 (let ((gcc (assoc-ref inputs "gcc")))
1720 ;; Remove the default GCC from CPLUS_INCLUDE_PATH to prevent
1721 ;; conflicts with the GCC 5 input.
1722 (setenv "CPLUS_INCLUDE_PATH"
1723 (string-join
1724 (delete (string-append gcc "/include/c++")
1725 (string-split (getenv "CPLUS_INCLUDE_PATH") #\:))
1726 ":"))
1727 #t)))
1728 (add-after 'unpack 'use-system-samtools
1729 (lambda* (#:key inputs #:allow-other-keys)
1730 (substitute* "src/Makefile.in"
1731 (("(noinst_LIBRARIES = )\\$\\(SAMLIB\\)" _ prefix) prefix)
1732 (("\\$\\(SAMPROG\\): \\$\\(SAMLIB\\)") "")
1733 (("SAMPROG = samtools_0\\.1\\.18") "")
1734 (("\\$\\(samtools_0_1_18_SOURCES\\)") "")
1735 (("am__EXEEXT_1 = samtools_0\\.1\\.18\\$\\(EXEEXT\\)") ""))
1736 (substitute* '("src/common.cpp"
1737 "src/tophat.py")
1738 (("samtools_0.1.18") (which "samtools")))
1739 (substitute* '("src/common.h"
1740 "src/bam2fastx.cpp")
1741 (("#include \"bam.h\"") "#include <samtools/bam.h>")
1742 (("#include \"sam.h\"") "#include <samtools/sam.h>"))
1743 (substitute* '("src/bwt_map.h"
1744 "src/map2gtf.h"
1745 "src/align_status.h")
1746 (("#include <bam.h>") "#include <samtools/bam.h>")
1747 (("#include <sam.h>") "#include <samtools/sam.h>"))
1748 #t)))))
1749 (native-inputs
1750 `(("gcc@5" ,gcc-5))) ;; doesn't build with later versions
1751 (inputs
1752 `(("boost" ,boost)
1753 ("bowtie" ,bowtie)
1754 ("ncurses" ,ncurses)
1755 ("perl" ,perl)
1756 ("python" ,python-2)
1757 ("samtools" ,samtools-0.1)
1758 ("seqan" ,seqan-1)
1759 ("zlib" ,zlib)))
1760 (home-page "https://ccb.jhu.edu/software/tophat/index.shtml")
1761 (synopsis "Spliced read mapper for RNA-Seq data")
1762 (description
1763 "TopHat is a fast splice junction mapper for nucleotide sequence
1764 reads produced by the RNA-Seq method. It aligns RNA-Seq reads to
1765 mammalian-sized genomes using the ultra high-throughput short read
1766 aligner Bowtie, and then analyzes the mapping results to identify
1767 splice junctions between exons.")
1768 ;; TopHat is released under the Boost Software License, Version 1.0
1769 ;; See https://github.com/infphilo/tophat/issues/11#issuecomment-121589893
1770 (license license:boost1.0)))
1771
1772 (define-public bwa
1773 (package
1774 (name "bwa")
1775 (version "0.7.17")
1776 (source (origin
1777 (method url-fetch)
1778 (uri (string-append
1779 "https://github.com/lh3/bwa/releases/download/v"
1780 version "/bwa-" version ".tar.bz2"))
1781 (sha256
1782 (base32
1783 "1zfhv2zg9v1icdlq4p9ssc8k01mca5d1bd87w71py2swfi74s6yy"))))
1784 (build-system gnu-build-system)
1785 (arguments
1786 '(#:tests? #f ;no "check" target
1787 #:phases
1788 (modify-phases %standard-phases
1789 (replace 'install
1790 (lambda* (#:key outputs #:allow-other-keys)
1791 (let* ((out (assoc-ref outputs "out"))
1792 (bin (string-append out "/bin"))
1793 (lib (string-append out "/lib"))
1794 (doc (string-append out "/share/doc/bwa"))
1795 (man (string-append out "/share/man/man1")))
1796 (install-file "bwa" bin)
1797 (install-file "libbwa.a" lib)
1798 (install-file "README.md" doc)
1799 (install-file "bwa.1" man))
1800 #t))
1801 ;; no "configure" script
1802 (delete 'configure))))
1803 (inputs `(("zlib" ,zlib)))
1804 ;; Non-portable SSE instructions are used so building fails on platforms
1805 ;; other than x86_64.
1806 (supported-systems '("x86_64-linux"))
1807 (home-page "http://bio-bwa.sourceforge.net/")
1808 (synopsis "Burrows-Wheeler sequence aligner")
1809 (description
1810 "BWA is a software package for mapping low-divergent sequences against a
1811 large reference genome, such as the human genome. It consists of three
1812 algorithms: BWA-backtrack, BWA-SW and BWA-MEM. The first algorithm is
1813 designed for Illumina sequence reads up to 100bp, while the rest two for
1814 longer sequences ranged from 70bp to 1Mbp. BWA-MEM and BWA-SW share similar
1815 features such as long-read support and split alignment, but BWA-MEM, which is
1816 the latest, is generally recommended for high-quality queries as it is faster
1817 and more accurate. BWA-MEM also has better performance than BWA-backtrack for
1818 70-100bp Illumina reads.")
1819 (license license:gpl3+)))
1820
1821 (define-public bwa-pssm
1822 (package (inherit bwa)
1823 (name "bwa-pssm")
1824 (version "0.5.11")
1825 (source (origin
1826 (method git-fetch)
1827 (uri (git-reference
1828 (url "https://github.com/pkerpedjiev/bwa-pssm")
1829 (commit version)))
1830 (file-name (git-file-name name version))
1831 (sha256
1832 (base32
1833 "076c4q0cdqz8jgylb067y9zmvxglppnzi3qiscn0xiypgc6lgb5r"))))
1834 (build-system gnu-build-system)
1835 (inputs
1836 `(("gdsl" ,gdsl)
1837 ("zlib" ,zlib)
1838 ("perl" ,perl)))
1839 (home-page "http://bwa-pssm.binf.ku.dk/")
1840 (synopsis "Burrows-Wheeler transform-based probabilistic short read mapper")
1841 (description
1842 "BWA-PSSM is a probabilistic short genomic sequence read aligner based on
1843 the use of @dfn{position specific scoring matrices} (PSSM). Like many of the
1844 existing aligners it is fast and sensitive. Unlike most other aligners,
1845 however, it is also adaptible in the sense that one can direct the alignment
1846 based on known biases within the data set. It is coded as a modification of
1847 the original BWA alignment program and shares the genome index structure as
1848 well as many of the command line options.")
1849 (license license:gpl3+)))
1850
1851 (define-public bwa-meth
1852 (package
1853 (name "bwa-meth")
1854 (version "0.2.2")
1855 (source (origin
1856 (method git-fetch)
1857 (uri (git-reference
1858 (url "https://github.com/brentp/bwa-meth")
1859 (commit (string-append "v" version))))
1860 (file-name (git-file-name name version))
1861 (sha256
1862 (base32
1863 "17j31i7zws5j7mhsq9x3qgkxly6mlmrgwhfq0qbflgxrmx04yaiz"))))
1864 (build-system python-build-system)
1865 (arguments
1866 `(#:phases
1867 (modify-phases %standard-phases
1868 (add-after 'unpack 'keep-references-to-bwa
1869 (lambda* (#:key inputs #:allow-other-keys)
1870 (substitute* "bwameth.py"
1871 (("bwa (mem|index)" _ command)
1872 (string-append (which "bwa") " " command))
1873 ;; There's an ill-advised check for "samtools" on PATH.
1874 (("^checkX.*") ""))
1875 #t)))))
1876 (inputs
1877 `(("bwa" ,bwa)))
1878 (native-inputs
1879 `(("python-toolshed" ,python-toolshed)))
1880 (home-page "https://github.com/brentp/bwa-meth")
1881 (synopsis "Fast and accurante alignment of BS-Seq reads")
1882 (description
1883 "BWA-Meth works for single-end reads and for paired-end reads from the
1884 directional protocol (most common). It uses the method employed by
1885 methylcoder and Bismark of in silico conversion of all C's to T's in both
1886 reference and reads. It recovers the original read (needed to tabulate
1887 methylation) by attaching it as a comment which BWA appends as a tag to the
1888 read. It performs favorably to existing aligners gauged by number of on and
1889 off-target reads for a capture method that targets CpG-rich region.")
1890 (license license:expat)))
1891
1892 (define-public python-bx-python
1893 (package
1894 (name "python-bx-python")
1895 (version "0.8.2")
1896 (source (origin
1897 (method url-fetch)
1898 (uri (pypi-uri "bx-python" version))
1899 (sha256
1900 (base32
1901 "11kksg2rbzihpmcid823xvg42xi88m7sz58rzk29abybkxy0rszs"))))
1902 (build-system python-build-system)
1903 ;; Tests fail because test data are not included
1904 (arguments '(#:tests? #f))
1905 (propagated-inputs
1906 `(("python-numpy" ,python-numpy)
1907 ("python-six" ,python-six)))
1908 (inputs
1909 `(("zlib" ,zlib)))
1910 (native-inputs
1911 `(("python-lzo" ,python-lzo)
1912 ("python-nose" ,python-nose)
1913 ("python-cython" ,python-cython)))
1914 (home-page "https://github.com/bxlab/bx-python")
1915 (synopsis "Tools for manipulating biological data")
1916 (description
1917 "bx-python provides tools for manipulating biological data, particularly
1918 multiple sequence alignments.")
1919 (license license:expat)))
1920
1921 (define-public python2-bx-python
1922 (package-with-python2 python-bx-python))
1923
1924 (define-public python-pysam
1925 (package
1926 (name "python-pysam")
1927 (version "0.15.1")
1928 (source (origin
1929 (method git-fetch)
1930 ;; Test data is missing on PyPi.
1931 (uri (git-reference
1932 (url "https://github.com/pysam-developers/pysam")
1933 (commit (string-append "v" version))))
1934 (file-name (git-file-name name version))
1935 (sha256
1936 (base32
1937 "1vj367w6xbn9bpmksm162l1aipf7cj97h1q83y7jcpm33ihwpf7x"))
1938 (modules '((guix build utils)))
1939 (snippet '(begin
1940 ;; Drop bundled htslib. TODO: Also remove samtools
1941 ;; and bcftools.
1942 (delete-file-recursively "htslib")
1943 #t))))
1944 (build-system python-build-system)
1945 (arguments
1946 `(#:modules ((ice-9 ftw)
1947 (srfi srfi-26)
1948 (guix build python-build-system)
1949 (guix build utils))
1950 #:phases
1951 (modify-phases %standard-phases
1952 (add-before 'build 'set-flags
1953 (lambda* (#:key inputs #:allow-other-keys)
1954 (setenv "HTSLIB_MODE" "external")
1955 (setenv "HTSLIB_LIBRARY_DIR"
1956 (string-append (assoc-ref inputs "htslib") "/lib"))
1957 (setenv "HTSLIB_INCLUDE_DIR"
1958 (string-append (assoc-ref inputs "htslib") "/include"))
1959 (setenv "LDFLAGS" "-lncurses")
1960 (setenv "CFLAGS" "-D_CURSES_LIB=1")
1961 #t))
1962 (replace 'check
1963 (lambda* (#:key inputs outputs #:allow-other-keys)
1964 ;; This file contains tests that require a connection to the
1965 ;; internet.
1966 (delete-file "tests/tabix_test.py")
1967 ;; FIXME: This test fails
1968 (delete-file "tests/AlignmentFile_test.py")
1969 ;; Add first subdirectory of "build" directory to PYTHONPATH.
1970 (setenv "PYTHONPATH"
1971 (string-append
1972 (getenv "PYTHONPATH")
1973 ":" (getcwd) "/build/"
1974 (car (scandir "build"
1975 (negate (cut string-prefix? "." <>))))))
1976 ;; Step out of source dir so python does not import from CWD.
1977 (with-directory-excursion "tests"
1978 (setenv "HOME" "/tmp")
1979 (invoke "make" "-C" "pysam_data")
1980 (invoke "make" "-C" "cbcf_data")
1981 ;; Running nosetests without explicitly asking for a single
1982 ;; process leads to a crash. Running with multiple processes
1983 ;; fails because the tests are not designed to run in parallel.
1984
1985 ;; FIXME: tests keep timing out on some systems.
1986 (invoke "nosetests" "-v" "--processes" "1")))))))
1987 (propagated-inputs
1988 `(("htslib" ,htslib-1.9))) ; Included from installed header files.
1989 (inputs
1990 `(("ncurses" ,ncurses)
1991 ("curl" ,curl)
1992 ("zlib" ,zlib)))
1993 (native-inputs
1994 `(("python-cython" ,python-cython)
1995 ;; Dependencies below are are for tests only.
1996 ("samtools" ,samtools-1.9)
1997 ("bcftools" ,bcftools-1.9)
1998 ("python-nose" ,python-nose)))
1999 (home-page "https://github.com/pysam-developers/pysam")
2000 (synopsis "Python bindings to the SAMtools C API")
2001 (description
2002 "Pysam is a Python module for reading and manipulating files in the
2003 SAM/BAM format. Pysam is a lightweight wrapper of the SAMtools C API. It
2004 also includes an interface for tabix.")
2005 (license license:expat)))
2006
2007 (define-public python2-pysam
2008 (package-with-python2 python-pysam))
2009
2010 (define-public python-twobitreader
2011 (package
2012 (name "python-twobitreader")
2013 (version "3.1.6")
2014 (source (origin
2015 (method git-fetch)
2016 (uri (git-reference
2017 (url "https://github.com/benjschiller/twobitreader")
2018 (commit version)))
2019 (file-name (git-file-name name version))
2020 (sha256
2021 (base32
2022 "1qbxvv1h58cismbk1anpjrkpghsaiy64a11ir3lhy6qch6xf8n62"))))
2023 (build-system python-build-system)
2024 ;; Tests are not included
2025 (arguments '(#:tests? #f))
2026 (native-inputs
2027 `(("python-sphinx" ,python-sphinx)))
2028 (home-page "https://github.com/benjschiller/twobitreader")
2029 (synopsis "Python library for reading .2bit files")
2030 (description
2031 "twobitreader is a Python library for reading .2bit files as used by the
2032 UCSC genome browser.")
2033 (license license:artistic2.0)))
2034
2035 (define-public python2-twobitreader
2036 (package-with-python2 python-twobitreader))
2037
2038 (define-public python-plastid
2039 (package
2040 (name "python-plastid")
2041 (version "0.4.8")
2042 (source (origin
2043 (method url-fetch)
2044 (uri (pypi-uri "plastid" version))
2045 (sha256
2046 (base32
2047 "0l24dd3q66if8yj042m4s0g95n6acn7im1imqd3p6h8ns43kxhj8"))))
2048 (build-system python-build-system)
2049 (arguments
2050 ;; Some test files are not included.
2051 `(#:tests? #f))
2052 (propagated-inputs
2053 `(("python-numpy" ,python-numpy)
2054 ("python-scipy" ,python-scipy)
2055 ("python-pandas" ,python-pandas)
2056 ("python-pysam" ,python-pysam)
2057 ("python-matplotlib" ,python-matplotlib)
2058 ("python-biopython" ,python-biopython)
2059 ("python-twobitreader" ,python-twobitreader)
2060 ("python-termcolor" ,python-termcolor)))
2061 (native-inputs
2062 `(("python-cython" ,python-cython)
2063 ("python-nose" ,python-nose)))
2064 (home-page "https://github.com/joshuagryphon/plastid")
2065 (synopsis "Python library for genomic analysis")
2066 (description
2067 "plastid is a Python library for genomic analysis – in particular,
2068 high-throughput sequencing data – with an emphasis on simplicity.")
2069 (license license:bsd-3)))
2070
2071 (define-public python2-plastid
2072 (package-with-python2 python-plastid))
2073
2074 (define-public tetoolkit
2075 (package
2076 (name "tetoolkit")
2077 (version "2.0.3")
2078 (source (origin
2079 (method git-fetch)
2080 (uri (git-reference
2081 (url "https://github.com/mhammell-laboratory/tetoolkit")
2082 (commit version)))
2083 (file-name (git-file-name name version))
2084 (sha256
2085 (base32
2086 "1yzi0kfpzip8zpjb82x1ik6h22yzfyjiz2dv85v6as2awwqvk807"))))
2087 (build-system python-build-system)
2088 (arguments
2089 `(#:python ,python-2 ; not guaranteed to work with Python 3
2090 #:phases
2091 (modify-phases %standard-phases
2092 (add-after 'unpack 'make-writable
2093 (lambda _
2094 (for-each make-file-writable (find-files "."))
2095 #t))
2096 (add-after 'unpack 'patch-invocations
2097 (lambda* (#:key inputs #:allow-other-keys)
2098 (substitute* '("bin/TEtranscripts"
2099 "bin/TEcount")
2100 (("'sort ")
2101 (string-append "'" (which "sort") " "))
2102 (("'rm -f ")
2103 (string-append "'" (which "rm") " -f "))
2104 (("'Rscript'") (string-append "'" (which "Rscript") "'")))
2105 (substitute* "TEToolkit/IO/ReadInputs.py"
2106 (("BamToBED") (which "bamToBed")))
2107 (substitute* "TEToolkit/Normalization.py"
2108 (("\"Rscript\"")
2109 (string-append "\"" (which "Rscript") "\"")))
2110 #t))
2111 (add-after 'install 'wrap-program
2112 (lambda* (#:key outputs #:allow-other-keys)
2113 ;; Make sure the executables find R packages.
2114 (let ((out (assoc-ref outputs "out")))
2115 (for-each
2116 (lambda (script)
2117 (wrap-program (string-append out "/bin/" script)
2118 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
2119 '("TEtranscripts"
2120 "TEcount")))
2121 #t)))))
2122 (inputs
2123 `(("coreutils" ,coreutils)
2124 ("bedtools" ,bedtools)
2125 ("python-argparse" ,python2-argparse)
2126 ("python-pysam" ,python2-pysam)
2127 ("r-minimal" ,r-minimal)
2128 ("r-deseq2" ,r-deseq2)))
2129 (home-page "https://github.com/mhammell-laboratory/tetoolkit")
2130 (synopsis "Transposable elements in differential enrichment analysis")
2131 (description
2132 "This is package for including transposable elements in differential
2133 enrichment analysis of sequencing datasets. TEtranscripts and TEcount take
2134 RNA-seq (and similar data) and annotates reads to both genes and transposable
2135 elements. TEtranscripts then performs differential analysis using DESeq2.
2136 Note that TEtranscripts and TEcount rely on specially curated GTF files, which
2137 are not included due to their size.")
2138 (license license:gpl3+)))
2139
2140 (define-public cd-hit
2141 (package
2142 (name "cd-hit")
2143 (version "4.6.8")
2144 (source (origin
2145 (method url-fetch)
2146 (uri (string-append "https://github.com/weizhongli/cdhit"
2147 "/releases/download/V" version
2148 "/cd-hit-v" version
2149 "-2017-0621-source.tar.gz"))
2150 (sha256
2151 (base32
2152 "1b4mwm2520ixjbw57sil20f9iixzw4bkdqqwgg1fc3pzm6rz4zmn"))))
2153 (build-system gnu-build-system)
2154 (arguments
2155 `(#:tests? #f ; there are no tests
2156 #:make-flags
2157 ;; Executables are copied directly to the PREFIX.
2158 (list (string-append "PREFIX=" (assoc-ref %outputs "out") "/bin")
2159 ;; Support longer sequences (e.g. Pacbio sequences)
2160 "MAX_SEQ=60000000")
2161 #:phases
2162 (modify-phases %standard-phases
2163 ;; No "configure" script
2164 (delete 'configure)
2165 ;; Remove sources of non-determinism
2166 (add-after 'unpack 'be-timeless
2167 (lambda _
2168 (substitute* "cdhit-utility.c++"
2169 ((" \\(built on \" __DATE__ \"\\)") ""))
2170 (substitute* "cdhit-common.c++"
2171 (("__DATE__") "\"0\"")
2172 (("\", %s, \" __TIME__ \"\\\\n\", date") ""))
2173 #t))
2174 ;; The "install" target does not create the target directory.
2175 (add-before 'install 'create-target-dir
2176 (lambda* (#:key outputs #:allow-other-keys)
2177 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
2178 #t)))))
2179 (inputs
2180 `(("perl" ,perl)))
2181 (home-page "http://weizhongli-lab.org/cd-hit/")
2182 (synopsis "Cluster and compare protein or nucleotide sequences")
2183 (description
2184 "CD-HIT is a program for clustering and comparing protein or nucleotide
2185 sequences. CD-HIT is designed to be fast and handle extremely large
2186 databases.")
2187 ;; The manual says: "It can be copied under the GNU General Public License
2188 ;; version 2 (GPLv2)."
2189 (license license:gpl2)))
2190
2191 (define-public clipper
2192 (package
2193 (name "clipper")
2194 (version "2.0")
2195 (source (origin
2196 (method git-fetch)
2197 (uri (git-reference
2198 (url "https://github.com/YeoLab/clipper")
2199 (commit version)))
2200 (file-name (git-file-name name version))
2201 (sha256
2202 (base32
2203 "1bcag4lb5bkzsj2vg7lrq24aw6yfgq275ifrbhd82l7kqgbbjbkv"))))
2204 (build-system python-build-system)
2205 (arguments
2206 `(#:phases
2207 (modify-phases %standard-phases
2208 (add-before 'reset-gzip-timestamps 'make-files-writable
2209 (lambda* (#:key outputs #:allow-other-keys)
2210 ;; Make sure .gz files are writable so that the
2211 ;; 'reset-gzip-timestamps' phase can do its work.
2212 (let ((out (assoc-ref outputs "out")))
2213 (for-each make-file-writable
2214 (find-files out "\\.gz$"))
2215 #t))))))
2216 (inputs
2217 `(("htseq" ,htseq)
2218 ("python-pybedtools" ,python-pybedtools)
2219 ("python-cython" ,python-cython)
2220 ("python-scikit-learn" ,python-scikit-learn)
2221 ("python-matplotlib" ,python-matplotlib)
2222 ("python-pandas" ,python-pandas)
2223 ("python-pysam" ,python-pysam)
2224 ("python-numpy" ,python-numpy)
2225 ("python-scipy" ,python-scipy)))
2226 (native-inputs
2227 `(("python-setuptools-git" ,python-setuptools-git)
2228 ("python-mock" ,python-mock) ; for tests
2229 ("python-nose" ,python-nose) ; for tests
2230 ("python-pytz" ,python-pytz))) ; for tests
2231 (home-page "https://github.com/YeoLab/clipper")
2232 (synopsis "CLIP peak enrichment recognition")
2233 (description
2234 "CLIPper is a tool to define peaks in CLIP-seq datasets.")
2235 (license license:gpl2)))
2236
2237 (define-public codingquarry
2238 (package
2239 (name "codingquarry")
2240 (version "2.0")
2241 (source (origin
2242 (method url-fetch)
2243 (uri (string-append
2244 "mirror://sourceforge/codingquarry/CodingQuarry_v"
2245 version ".tar.gz"))
2246 (sha256
2247 (base32
2248 "0115hkjflsnfzn36xppwf9h9avfxlavr43djqmshkkzbgjzsz60i"))))
2249 (build-system gnu-build-system)
2250 (arguments
2251 '(#:tests? #f ; no "check" target
2252 #:phases
2253 (modify-phases %standard-phases
2254 (delete 'configure)
2255 (replace 'install
2256 (lambda* (#:key outputs #:allow-other-keys)
2257 (let* ((out (assoc-ref outputs "out"))
2258 (bin (string-append out "/bin"))
2259 (doc (string-append out "/share/doc/codingquarry")))
2260 (install-file "INSTRUCTIONS.pdf" doc)
2261 (copy-recursively "QuarryFiles"
2262 (string-append out "/QuarryFiles"))
2263 (install-file "CodingQuarry" bin)
2264 (install-file "CufflinksGTF_to_CodingQuarryGFF3.py" bin))
2265 #t)))))
2266 (inputs `(("openmpi" ,openmpi)))
2267 (native-search-paths
2268 (list (search-path-specification
2269 (variable "QUARRY_PATH")
2270 (files '("QuarryFiles")))))
2271 (native-inputs `(("python" ,python-2))) ; Only Python 2 is supported
2272 (synopsis "Fungal gene predictor")
2273 (description "CodingQuarry is a highly accurate, self-training GHMM fungal
2274 gene predictor designed to work with assembled, aligned RNA-seq transcripts.")
2275 (home-page "https://sourceforge.net/projects/codingquarry/")
2276 (license license:gpl3+)))
2277
2278 (define-public couger
2279 (package
2280 (name "couger")
2281 (version "1.8.2")
2282 (source (origin
2283 (method url-fetch)
2284 (uri (string-append
2285 "http://couger.oit.duke.edu/static/assets/COUGER"
2286 version ".zip"))
2287 (sha256
2288 (base32
2289 "04p2b14nmhzxw5h72mpzdhalv21bx4w9b87z0wpw0xzxpysyncmq"))))
2290 (build-system gnu-build-system)
2291 (arguments
2292 `(#:tests? #f
2293 #:phases
2294 (modify-phases %standard-phases
2295 (delete 'configure)
2296 (delete 'build)
2297 (replace
2298 'install
2299 (lambda* (#:key outputs #:allow-other-keys)
2300 (let* ((out (assoc-ref outputs "out"))
2301 (bin (string-append out "/bin")))
2302 (copy-recursively "src" (string-append out "/src"))
2303 (mkdir bin)
2304 ;; Add "src" directory to module lookup path.
2305 (substitute* "couger"
2306 (("from argparse")
2307 (string-append "import sys\nsys.path.append(\""
2308 out "\")\nfrom argparse")))
2309 (install-file "couger" bin))
2310 #t))
2311 (add-after
2312 'install 'wrap-program
2313 (lambda* (#:key inputs outputs #:allow-other-keys)
2314 ;; Make sure 'couger' runs with the correct PYTHONPATH.
2315 (let* ((out (assoc-ref outputs "out"))
2316 (path (getenv "PYTHONPATH")))
2317 (wrap-program (string-append out "/bin/couger")
2318 `("PYTHONPATH" ":" prefix (,path))))
2319 #t)))))
2320 (inputs
2321 `(("python" ,python-2)
2322 ("python2-pillow" ,python2-pillow)
2323 ("python2-numpy" ,python2-numpy)
2324 ("python2-scipy" ,python2-scipy)
2325 ("python2-matplotlib" ,python2-matplotlib)))
2326 (propagated-inputs
2327 `(("r-minimal" ,r-minimal)
2328 ("libsvm" ,libsvm)
2329 ("randomjungle" ,randomjungle)))
2330 (native-inputs
2331 `(("unzip" ,unzip)))
2332 (home-page "http://couger.oit.duke.edu")
2333 (synopsis "Identify co-factors in sets of genomic regions")
2334 (description
2335 "COUGER can be applied to any two sets of genomic regions bound by
2336 paralogous TFs (e.g., regions derived from ChIP-seq experiments) to identify
2337 putative co-factors that provide specificity to each TF. The framework
2338 determines the genomic targets uniquely-bound by each TF, and identifies a
2339 small set of co-factors that best explain the in vivo binding differences
2340 between the two TFs.
2341
2342 COUGER uses classification algorithms (support vector machines and random
2343 forests) with features that reflect the DNA binding specificities of putative
2344 co-factors. The features are generated either from high-throughput TF-DNA
2345 binding data (from protein binding microarray experiments), or from large
2346 collections of DNA motifs.")
2347 (license license:gpl3+)))
2348
2349 (define-public clustal-omega
2350 (package
2351 (name "clustal-omega")
2352 (version "1.2.4")
2353 (source (origin
2354 (method url-fetch)
2355 (uri (string-append "http://www.clustal.org/omega/clustal-omega-"
2356 version ".tar.gz"))
2357 (sha256
2358 (base32
2359 "1vm30mzncwdv881vrcwg11vzvrsmwy4wg80j5i0lcfk6dlld50w6"))))
2360 (build-system gnu-build-system)
2361 (inputs
2362 `(("argtable" ,argtable)))
2363 (home-page "http://www.clustal.org/omega/")
2364 (synopsis "Multiple sequence aligner for protein and DNA/RNA")
2365 (description
2366 "Clustal-Omega is a general purpose multiple sequence alignment (MSA)
2367 program for protein and DNA/RNA. It produces high quality MSAs and is capable
2368 of handling data-sets of hundreds of thousands of sequences in reasonable
2369 time.")
2370 (license license:gpl2+)))
2371
2372 (define-public crossmap
2373 (package
2374 (name "crossmap")
2375 (version "0.3.8")
2376 (source (origin
2377 (method url-fetch)
2378 (uri (pypi-uri "CrossMap" version))
2379 (sha256
2380 (base32
2381 "1sb2f2qbxya4fzw3yjl09vbrs8vfmw22zrygrvz004sf9gb1vkan"))))
2382 (build-system python-build-system)
2383 (inputs
2384 `(("python-bx-python" ,python-bx-python)
2385 ("python-numpy" ,python-numpy)
2386 ("python-pybigwig" ,python-pybigwig)
2387 ("python-pysam" ,python-pysam)
2388 ("zlib" ,zlib)))
2389 (native-inputs
2390 `(("python-cython" ,python-cython)
2391 ("python-nose" ,python-nose)))
2392 (home-page "http://crossmap.sourceforge.net/")
2393 (synopsis "Convert genome coordinates between assemblies")
2394 (description
2395 "CrossMap is a program for conversion of genome coordinates or annotation
2396 files between different genome assemblies. It supports most commonly used
2397 file formats including SAM/BAM, Wiggle/BigWig, BED, GFF/GTF, VCF.")
2398 (license license:gpl2+)))
2399
2400 (define-public python-dnaio
2401 (package
2402 (name "python-dnaio")
2403 (version "0.3")
2404 (source
2405 (origin
2406 (method url-fetch)
2407 (uri (pypi-uri "dnaio" version))
2408 (sha256
2409 (base32
2410 "0f16m7hdlm0fz1n7y5asy0v9ghyrq17ni1p9iybq22ddzyd49r27"))))
2411 (build-system python-build-system)
2412 (native-inputs
2413 `(("python-cython" ,python-cython)
2414 ("python-pytest" ,python-pytest)
2415 ("python-xopen" ,python-xopen)))
2416 (home-page "https://github.com/marcelm/dnaio/")
2417 (synopsis "Read FASTA and FASTQ files efficiently")
2418 (description
2419 "dnaio is a Python library for fast parsing of FASTQ and also FASTA
2420 files. The code was previously part of the cutadapt tool.")
2421 (license license:expat)))
2422
2423 (define-public python-deeptoolsintervals
2424 (package
2425 (name "python-deeptoolsintervals")
2426 (version "0.1.9")
2427 (source (origin
2428 (method url-fetch)
2429 (uri (pypi-uri "deeptoolsintervals" version))
2430 (sha256
2431 (base32
2432 "1xnl80nblysj6dylj4683wgrfa425rkx4dp5k65hvwdns9pw753x"))))
2433 (build-system python-build-system)
2434 (inputs
2435 `(("zlib" ,zlib)))
2436 (home-page "https://github.com/deeptools/deeptools_intervals")
2437 (synopsis "Create GTF-based interval trees with associated meta-data")
2438 (description
2439 "This package provides a Python module creating/accessing GTF-based
2440 interval trees with associated meta-data. It is primarily used by the
2441 @code{deeptools} package.")
2442 (license license:expat)))
2443
2444 (define-public python-deeptools
2445 (package
2446 (name "python-deeptools")
2447 (version "3.4.3")
2448 (source (origin
2449 (method git-fetch)
2450 (uri (git-reference
2451 (url "https://github.com/deeptools/deepTools")
2452 (commit version)))
2453 (file-name (git-file-name name version))
2454 (sha256
2455 (base32
2456 "0l09vyynz6s6w7fnyd94rpys4a6aja6kp4gli64pngdxdz3md1nl"))))
2457 (build-system python-build-system)
2458 (native-inputs
2459 `(("python-mock" ,python-mock)
2460 ("python-nose" ,python-nose)))
2461 (propagated-inputs
2462 `(("python-matplotlib" ,python-matplotlib)
2463 ("python-numpy" ,python-numpy)
2464 ("python-numpydoc" ,python-numpydoc)
2465 ("python-py2bit" ,python-py2bit)
2466 ("python-pybigwig" ,python-pybigwig)
2467 ("python-pysam" ,python-pysam)
2468 ("python-scipy" ,python-scipy)
2469 ("python-deeptoolsintervals" ,python-deeptoolsintervals)
2470 ("python-plotly" ,python-plotly-2.4.1)))
2471 (home-page "https://pypi.org/project/deepTools/")
2472 (synopsis "Useful tools for exploring deep sequencing data")
2473 (description "This package addresses the challenge of handling large amounts
2474 of data that are now routinely generated from DNA sequencing centers.
2475 @code{deepTools} contains useful modules to process the mapped reads data for
2476 multiple quality checks, creating normalized coverage files in standard bedGraph
2477 and bigWig file formats, that allow comparison between different files. Finally,
2478 using such normalized and standardized files, deepTools can create many
2479 publication-ready visualizations to identify enrichments and for functional
2480 annotations of the genome.")
2481 ;; The file deeptools/cm.py is licensed under the BSD license. The
2482 ;; remainder of the code is licensed under the MIT license.
2483 (license (list license:bsd-3 license:expat))))
2484
2485 (define-deprecated deeptools python-deeptools)
2486
2487 (define-public cutadapt
2488 (package
2489 (name "cutadapt")
2490 (version "2.1")
2491 (source (origin
2492 (method url-fetch)
2493 (uri (pypi-uri "cutadapt" version))
2494 (sha256
2495 (base32
2496 "1vqmsfkm6llxzmsz9wcfcvzx9a9f8iabvwik2rbyn7nc4wm25z89"))))
2497 (build-system python-build-system)
2498 (inputs
2499 `(("python-dnaio" ,python-dnaio)
2500 ("python-xopen" ,python-xopen)))
2501 (native-inputs
2502 `(("python-cython" ,python-cython)
2503 ("python-pytest" ,python-pytest)
2504 ("python-setuptools-scm" ,python-setuptools-scm)))
2505 (home-page "https://cutadapt.readthedocs.io/en/stable/")
2506 (synopsis "Remove adapter sequences from nucleotide sequencing reads")
2507 (description
2508 "Cutadapt finds and removes adapter sequences, primers, poly-A tails and
2509 other types of unwanted sequence from high-throughput sequencing reads.")
2510 (license license:expat)))
2511
2512 (define-public libbigwig
2513 (package
2514 (name "libbigwig")
2515 (version "0.4.4")
2516 (source (origin
2517 (method git-fetch)
2518 (uri (git-reference
2519 (url "https://github.com/dpryan79/libBigWig")
2520 (commit version)))
2521 (file-name (git-file-name name version))
2522 (sha256
2523 (base32
2524 "09693dmf1scdac5pyq6qyn8b4mcipvnmc370k9a5z41z81m3dcsj"))))
2525 (build-system gnu-build-system)
2526 (arguments
2527 `(#:test-target "test"
2528 #:tests? #f ; tests require access to the web
2529 #:make-flags
2530 (list "CC=gcc"
2531 (string-append "prefix=" (assoc-ref %outputs "out")))
2532 #:phases
2533 (modify-phases %standard-phases
2534 (delete 'configure))))
2535 (inputs
2536 `(("zlib" ,zlib)
2537 ("curl" ,curl)))
2538 (native-inputs
2539 `(("doxygen" ,doxygen)
2540 ;; Need for tests
2541 ("python" ,python-2)))
2542 (home-page "https://github.com/dpryan79/libBigWig")
2543 (synopsis "C library for handling bigWig files")
2544 (description
2545 "This package provides a C library for parsing local and remote BigWig
2546 files.")
2547 (license license:expat)))
2548
2549 (define-public python-pybigwig
2550 (package
2551 (name "python-pybigwig")
2552 (version "0.3.17")
2553 (source (origin
2554 (method url-fetch)
2555 (uri (pypi-uri "pyBigWig" version))
2556 (sha256
2557 (base32
2558 "157x6v48y299zm382krf1dw08fdxg95im8lnabhp5vc94s04zxj1"))
2559 (modules '((guix build utils)))
2560 (snippet
2561 '(begin
2562 ;; Delete bundled libBigWig sources
2563 (delete-file-recursively "libBigWig")
2564 #t))))
2565 (build-system python-build-system)
2566 (arguments
2567 `(#:phases
2568 (modify-phases %standard-phases
2569 (add-after 'unpack 'link-with-libBigWig
2570 (lambda* (#:key inputs #:allow-other-keys)
2571 (substitute* "setup.py"
2572 (("libs=\\[") "libs=[\"BigWig\", "))
2573 #t)))))
2574 (propagated-inputs
2575 `(("python-numpy" ,python-numpy)))
2576 (inputs
2577 `(("libbigwig" ,libbigwig)
2578 ("zlib" ,zlib)
2579 ("curl" ,curl)))
2580 (home-page "https://github.com/dpryan79/pyBigWig")
2581 (synopsis "Access bigWig files in Python using libBigWig")
2582 (description
2583 "This package provides Python bindings to the libBigWig library for
2584 accessing bigWig files.")
2585 (license license:expat)))
2586
2587 (define-public python2-pybigwig
2588 (package-with-python2 python-pybigwig))
2589
2590 (define-public python-schema-salad
2591 (package
2592 (name "python-schema-salad")
2593 (version "7.0.20200811075006")
2594 (source
2595 (origin
2596 (method url-fetch)
2597 (uri (pypi-uri "schema-salad" version))
2598 (sha256
2599 (base32
2600 "0wanbwmqb189x1m0vacnhpivfsr8rwbqknngivzxxs8j46yj80bg"))))
2601 (build-system python-build-system)
2602 (propagated-inputs
2603 `(("python-cachecontrol" ,python-cachecontrol-0.11)
2604 ("python-lockfile" ,python-lockfile)
2605 ("python-mistune" ,python-mistune)
2606 ("python-rdflib" ,python-rdflib)
2607 ("python-rdflib-jsonld" ,python-rdflib-jsonld)
2608 ("python-requests" ,python-requests)
2609 ("python-ruamel.yaml" ,python-ruamel.yaml)
2610 ("python-typing-extensions" ,python-typing-extensions)))
2611 (native-inputs
2612 `(("python-pytest" ,python-pytest)
2613 ("python-pytest-runner" ,python-pytest-runner)))
2614 (home-page "https://github.com/common-workflow-language/schema_salad")
2615 (synopsis "Schema Annotations for Linked Avro Data (SALAD)")
2616 (description
2617 "Salad is a schema language for describing JSON or YAML structured linked
2618 data documents. Salad schema describes rules for preprocessing, structural
2619 validation, and hyperlink checking for documents described by a Salad schema.
2620 Salad supports rich data modeling with inheritance, template specialization,
2621 object identifiers, object references, documentation generation, code
2622 generation, and transformation to RDF. Salad provides a bridge between document
2623 and record oriented data modeling and the Semantic Web.")
2624 (license license:asl2.0)))
2625
2626 (define-public cwltool
2627 (package
2628 (name "cwltool")
2629 (version "3.0.20201121085451")
2630 (source (origin
2631 (method git-fetch)
2632 (uri (git-reference
2633 (url "https://github.com/common-workflow-language/cwltool")
2634 (commit version)))
2635 (file-name (git-file-name name version))
2636 (sha256
2637 (base32
2638 "1awf99n7aglxc5zszrlrv6jxp355jp45ws7wpsgjlgcdv7advn0w"))))
2639 (build-system python-build-system)
2640 (arguments
2641 `(#:phases
2642 (modify-phases %standard-phases
2643 (add-after 'unpack 'loosen-version-restrictions
2644 (lambda _
2645 (substitute* "setup.py"
2646 (("== 1.5.1") ">=1.5.1") ; prov
2647 ((", < 3.5") "")) ; shellescape
2648 #t))
2649 (add-after 'unpack 'dont-use-git
2650 (lambda _
2651 (substitute* "gittaggers.py"
2652 (("self.git_timestamp_tag\\(\\)")
2653 (string-append "time.strftime('.%Y%m%d%H%M%S', time.gmtime(int("
2654 (string-drop ,version 4) ")))")))
2655 #t))
2656 (add-after 'unpack 'modify-tests
2657 (lambda _
2658 ;; Tries to connect to the internet.
2659 (delete-file "tests/test_udocker.py")
2660 (delete-file "tests/test_http_input.py")
2661 (substitute* "tests/test_load_tool.py"
2662 (("def test_load_graph_fragment_from_packed")
2663 (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n"
2664 "def test_load_graph_fragment_from_packed")))
2665 (substitute* "tests/test_examples.py"
2666 (("def test_env_filtering")
2667 (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n"
2668 "def test_env_filtering")))
2669 ;; Tries to use cwl-runners.
2670 (substitute* "tests/test_examples.py"
2671 (("def test_v1_0_arg_empty_prefix_separate_false")
2672 (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n"
2673 "def test_v1_0_arg_empty_prefix_separate_false")))
2674 #t)))))
2675 (propagated-inputs
2676 `(("python-argcomplete" ,python-argcomplete)
2677 ("python-bagit" ,python-bagit)
2678 ("python-coloredlogs" ,python-coloredlogs)
2679 ("python-mypy-extensions" ,python-mypy-extensions)
2680 ("python-prov" ,python-prov)
2681 ("python-pydot" ,python-pydot)
2682 ("python-psutil" ,python-psutil)
2683 ("python-rdflib" ,python-rdflib)
2684 ("python-requests" ,python-requests)
2685 ("python-ruamel.yaml" ,python-ruamel.yaml)
2686 ("python-schema-salad" ,python-schema-salad)
2687 ("python-shellescape" ,python-shellescape)
2688 ("python-typing-extensions" ,python-typing-extensions)
2689 ;; Not listed as needed but still necessary:
2690 ("node" ,node)))
2691 (native-inputs
2692 `(("python-arcp" ,python-arcp)
2693 ("python-humanfriendly" ,python-humanfriendly)
2694 ("python-mock" ,python-mock)
2695 ("python-pytest" ,python-pytest)
2696 ("python-pytest-cov" ,python-pytest-cov)
2697 ("python-pytest-mock" ,python-pytest-mock)
2698 ("python-pytest-runner" ,python-pytest-runner)
2699 ("python-rdflib-jsonld" ,python-rdflib-jsonld)))
2700 (home-page
2701 "https://github.com/common-workflow-language/common-workflow-language")
2702 (synopsis "Common Workflow Language reference implementation")
2703 (description
2704 "This is the reference implementation of the @acronym{CWL, Common Workflow
2705 Language} standards. The CWL open standards are for describing analysis
2706 workflows and tools in a way that makes them portable and scalable across a
2707 variety of software and hardware environments, from workstations to cluster,
2708 cloud, and high performance computing (HPC) environments. CWL is designed to
2709 meet the needs of data-intensive science, such as Bioinformatics, Medical
2710 Imaging, Astronomy, Physics, and Chemistry. The @acronym{cwltool, CWL reference
2711 implementation} is intended to be feature complete and to provide comprehensive
2712 validation of CWL files as well as provide other tools related to working with
2713 CWL descriptions.")
2714 (license license:asl2.0)))
2715
2716 (define-public python-dendropy
2717 (package
2718 (name "python-dendropy")
2719 (version "4.4.0")
2720 (source
2721 (origin
2722 (method git-fetch)
2723 ;; Source from GitHub so that tests are included.
2724 (uri (git-reference
2725 (url "https://github.com/jeetsukumaran/DendroPy")
2726 (commit (string-append "v" version))))
2727 (file-name (git-file-name name version))
2728 (sha256
2729 (base32
2730 "097hfyv2kaf4x92i4rjx0paw2cncxap48qivv8zxng4z7nhid0x9"))))
2731 (build-system python-build-system)
2732 (home-page "https://dendropy.org/")
2733 (synopsis "Library for phylogenetics and phylogenetic computing")
2734 (description
2735 "DendroPy is a library for phylogenetics and phylogenetic computing: reading,
2736 writing, simulation, processing and manipulation of phylogenetic
2737 trees (phylogenies) and characters.")
2738 (license license:bsd-3)))
2739
2740 (define-public python2-dendropy
2741 (let ((base (package-with-python2 python-dendropy)))
2742 (package
2743 (inherit base)
2744 (arguments
2745 `(#:phases
2746 (modify-phases %standard-phases
2747 (add-after 'unpack 'remove-failing-test
2748 (lambda _
2749 ;; This test fails when the full test suite is run, as documented
2750 ;; at https://github.com/jeetsukumaran/DendroPy/issues/74
2751 (substitute* "tests/test_dataio_nexml_reader_tree_list.py"
2752 (("test_collection_comments_and_annotations")
2753 "do_not_test_collection_comments_and_annotations"))
2754 #t)))
2755 ,@(package-arguments base))))))
2756
2757 (define-public python-py2bit
2758 (package
2759 (name "python-py2bit")
2760 (version "0.3.0")
2761 (source
2762 (origin
2763 (method url-fetch)
2764 (uri (pypi-uri "py2bit" version))
2765 (sha256
2766 (base32
2767 "1vw2nvw1yrl7ikkqsqs1pg239yr5nspvd969r1x9arms1k25a1a5"))))
2768 (build-system python-build-system)
2769 (home-page "https://github.com/dpryan79/py2bit")
2770 (synopsis "Access 2bit files using lib2bit")
2771 (description
2772 "This package provides Python bindings for lib2bit to access 2bit files
2773 with Python.")
2774 (license license:expat)))
2775
2776 (define-public delly
2777 (package
2778 (name "delly")
2779 (version "0.8.3")
2780 (source (origin
2781 (method git-fetch)
2782 (uri (git-reference
2783 (url "https://github.com/dellytools/delly")
2784 (commit (string-append "v" version))))
2785 (file-name (git-file-name name version))
2786 (sha256
2787 (base32 "1ibnplgfzj96w8glkx17v7sld3pm402fr5ybmf3h0rlcryabxrqy"))
2788 (modules '((guix build utils)))
2789 (snippet
2790 '(begin
2791 (delete-file-recursively "src/htslib")
2792 #t))))
2793 (build-system gnu-build-system)
2794 (arguments
2795 `(#:tests? #f ; There are no tests to run.
2796 #:make-flags
2797 (list "PARALLEL=1" ; Allow parallel execution at run-time.
2798 (string-append "prefix=" (assoc-ref %outputs "out")))
2799 #:phases
2800 (modify-phases %standard-phases
2801 (delete 'configure) ; There is no configure phase.
2802 (add-after 'install 'install-templates
2803 (lambda* (#:key outputs #:allow-other-keys)
2804 (let ((templates (string-append (assoc-ref outputs "out")
2805 "/share/delly/templates")))
2806 (mkdir-p templates)
2807 (copy-recursively "excludeTemplates" templates)
2808 #t))))))
2809 (inputs
2810 `(("boost" ,boost)
2811 ("bzip2" ,bzip2)
2812 ("htslib" ,htslib)
2813 ("zlib" ,zlib)))
2814 (home-page "https://github.com/dellytools/delly")
2815 (synopsis "Integrated structural variant prediction method")
2816 (description "Delly is an integrated structural variant prediction method
2817 that can discover and genotype deletions, tandem duplications, inversions and
2818 translocations at single-nucleotide resolution in short-read massively parallel
2819 sequencing data. It uses paired-ends and split-reads to sensitively and
2820 accurately delineate genomic rearrangements throughout the genome.")
2821 (license license:gpl3+)))
2822
2823 (define-public diamond
2824 (package
2825 (name "diamond")
2826 (version "0.9.30")
2827 (source (origin
2828 (method git-fetch)
2829 (uri (git-reference
2830 (url "https://github.com/bbuchfink/diamond")
2831 (commit (string-append "v" version))))
2832 (file-name (git-file-name name version))
2833 (sha256
2834 (base32
2835 "0k6f3kb6cniw11xw6763kkbs1sl0yack7xsy7q5fl5v170ssphq4"))))
2836 (build-system cmake-build-system)
2837 (arguments
2838 '(#:tests? #f ; no "check" target
2839 #:phases
2840 (modify-phases %standard-phases
2841 (add-after 'unpack 'remove-native-compilation
2842 (lambda _
2843 (substitute* "CMakeLists.txt" (("-march=native") ""))
2844 #t)))))
2845 (inputs
2846 `(("zlib" ,zlib)))
2847 (home-page "https://github.com/bbuchfink/diamond")
2848 (synopsis "Accelerated BLAST compatible local sequence aligner")
2849 (description
2850 "DIAMOND is a BLAST-compatible local aligner for mapping protein and
2851 translated DNA query sequences against a protein reference database (BLASTP
2852 and BLASTX alignment mode). The speedup over BLAST is up to 20,000 on short
2853 reads at a typical sensitivity of 90-99% relative to BLAST depending on the
2854 data and settings.")
2855 (license license:agpl3+)))
2856
2857 (define-public discrover
2858 (package
2859 (name "discrover")
2860 (version "1.6.0")
2861 (source
2862 (origin
2863 (method git-fetch)
2864 (uri (git-reference
2865 (url "https://github.com/maaskola/discrover")
2866 (commit version)))
2867 (file-name (git-file-name name version))
2868 (sha256
2869 (base32
2870 "173fwi2vb6a5kp406hm3jj6j7v4whww796f2qcygp4rpvamh307y"))))
2871 (build-system cmake-build-system)
2872 (arguments
2873 `(#:tests? #f ; there are no tests
2874 #:phases
2875 (modify-phases %standard-phases
2876 (add-after 'unpack 'fix-latex-errors
2877 (lambda _
2878 (with-fluids ((%default-port-encoding #f))
2879 (substitute* "doc/references.bib"
2880 (("\\{S\\}illanp[^,]+,")
2881 "{S}illanp{\\\"a}{\\\"a},")))
2882 ;; XXX: I just can't get pdflatex to not complain about these
2883 ;; characters. They end up in the manual via the generated
2884 ;; discrover-cli-help.txt.
2885 (substitute* "src/hmm/cli.cpp"
2886 (("µ") "mu")
2887 (("η") "eta")
2888 (("≤") "<="))
2889 ;; This seems to be a syntax error.
2890 (substitute* "doc/discrover-manual.tex"
2891 (("theverbbox\\[t\\]") "theverbbox"))
2892 #t))
2893 (add-after 'unpack 'add-missing-includes
2894 (lambda _
2895 (substitute* "src/executioninformation.hpp"
2896 (("#define EXECUTIONINFORMATION_HPP" line)
2897 (string-append line "\n#include <random>")))
2898 (substitute* "src/plasma/fasta.hpp"
2899 (("#define FASTA_HPP" line)
2900 (string-append line "\n#include <random>")))
2901 #t))
2902 ;; FIXME: this is needed because we're using texlive-union, which
2903 ;; doesn't handle fonts correctly. It expects to be able to generate
2904 ;; fonts in the home directory.
2905 (add-before 'build 'setenv-HOME
2906 (lambda _ (setenv "HOME" "/tmp") #t)))))
2907 (inputs
2908 `(("boost" ,boost)
2909 ("cairo" ,cairo)
2910 ("rmath-standalone" ,rmath-standalone)))
2911 (native-inputs
2912 `(("texlive" ,(texlive-union (list texlive-fonts-cm
2913 texlive-fonts-amsfonts
2914
2915 texlive-latex-doi
2916 texlive-latex-examplep
2917 texlive-latex-hyperref
2918 texlive-latex-ms
2919 texlive-latex-natbib
2920 texlive-bibtex ; style files used by natbib
2921 texlive-latex-pgf ; tikz
2922 texlive-latex-verbatimbox)))
2923 ("imagemagick" ,imagemagick)))
2924 (home-page "https://dorina.mdc-berlin.de/public/rajewsky/discrover/")
2925 (synopsis "Discover discriminative nucleotide sequence motifs")
2926 (description "Discrover is a motif discovery method to find binding sites
2927 of nucleic acid binding proteins.")
2928 (license license:gpl3+)))
2929
2930 (define-public eigensoft
2931 (package
2932 (name "eigensoft")
2933 (version "7.2.1")
2934 (source
2935 (origin
2936 (method git-fetch)
2937 (uri (git-reference
2938 (url "https://github.com/DReichLab/EIG")
2939 (commit (string-append "v" version))))
2940 (file-name (git-file-name name version))
2941 (sha256
2942 (base32
2943 "1c141fqvhnzibmnf22sv23vbmzm20kjjyrib44cfh75wyndp2d9k"))
2944 (modules '((guix build utils)))
2945 ;; Remove pre-built binaries.
2946 (snippet '(begin
2947 (delete-file-recursively "bin")
2948 (mkdir "bin")
2949 #t))))
2950 (build-system gnu-build-system)
2951 (arguments
2952 `(#:tests? #f ; There are no tests.
2953 #:make-flags '("CC=gcc")
2954 #:phases
2955 (modify-phases %standard-phases
2956 ;; There is no configure phase, but the Makefile is in a
2957 ;; sub-directory.
2958 (replace 'configure
2959 (lambda _ (chdir "src") #t))
2960 ;; The provided install target only copies executables to
2961 ;; the "bin" directory in the build root.
2962 (add-after 'install 'actually-install
2963 (lambda* (#:key outputs #:allow-other-keys)
2964 (let* ((out (assoc-ref outputs "out"))
2965 (bin (string-append out "/bin")))
2966 (for-each (lambda (file)
2967 (install-file file bin))
2968 (find-files "../bin" ".*"))
2969 #t))))))
2970 (inputs
2971 `(("gsl" ,gsl)
2972 ("lapack" ,lapack)
2973 ("openblas" ,openblas)
2974 ("perl" ,perl)
2975 ("gfortran" ,gfortran "lib")))
2976 (home-page "https://github.com/DReichLab/EIG")
2977 (synopsis "Tools for population genetics")
2978 (description "The EIGENSOFT package provides tools for population
2979 genetics and stratification correction. EIGENSOFT implements methods commonly
2980 used in population genetics analyses such as PCA, computation of Tracy-Widom
2981 statistics, and finding related individuals in structured populations. It
2982 comes with a built-in plotting script and supports multiple file formats and
2983 quantitative phenotypes.")
2984 ;; The license of the eigensoft tools is Expat, but since it's
2985 ;; linking with the GNU Scientific Library (GSL) the effective
2986 ;; license is the GPL.
2987 (license license:gpl3+)))
2988
2989 (define-public edirect
2990 (package
2991 (name "edirect")
2992 (version "13.3.20200128")
2993 (source (origin
2994 (method url-fetch)
2995 (uri (string-append "ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect"
2996 "/versions/" version
2997 "/edirect-" version ".tar.gz"))
2998 (sha256
2999 (base32
3000 "093zp7klv81ph0y8mm8d78a9hnpfxbv2kdym70gzdf3vz176rw33"))
3001 (modules '((guix build utils)))
3002 (snippet
3003 '(begin (delete-file "Mozilla-CA.tar.gz")
3004 (substitute* "rchive.go"
3005 ;; This go library does not have any license.
3006 (("github.com/fiam/gounidecode/unidecode")
3007 "golang.org/rainycape/unidecode"))
3008 #t))))
3009 (build-system perl-build-system)
3010 (arguments
3011 `(#:phases
3012 (modify-phases %standard-phases
3013 (delete 'configure)
3014 (delete 'build)
3015 (delete 'check) ; simple check after install
3016 (add-after 'unpack 'patch-programs
3017 (lambda* (#:key inputs #:allow-other-keys)
3018 ;; Ignore errors about missing xtract.Linux and rchive.Linux.
3019 (substitute* "pm-refresh"
3020 (("cat \\\"\\$target")
3021 "grep ^[[:digit:]] \"$target"))
3022 #t))
3023 (replace 'install
3024 (lambda* (#:key inputs outputs #:allow-other-keys)
3025 (let ((bin (string-append (assoc-ref outputs "out") "/bin"))
3026 (edirect-go (assoc-ref inputs "edirect-go-programs")))
3027 (for-each
3028 (lambda (file)
3029 (install-file file bin))
3030 '("archive-pubmed" "asp-cp" "asp-ls" "download-ncbi-data"
3031 "download-pubmed" "edirect.pl" "efetch" "epost" "esearch"
3032 "fetch-pubmed" "ftp-cp" "ftp-ls" "has-asp" "index-pubmed"
3033 "pm-prepare" "pm-refresh" "pm-stash" "pm-collect"
3034 "pm-index" "pm-invert" "pm-merge" "pm-promote"))
3035 (symlink (string-append edirect-go "/bin/xtract.Linux")
3036 (string-append bin "/xtract"))
3037 (symlink (string-append edirect-go "/bin/rchive.Linux")
3038 (string-append bin "/rchive")))
3039 #t))
3040 (add-after 'install 'wrap-program
3041 (lambda* (#:key outputs #:allow-other-keys)
3042 ;; Make sure everything can run in a pure environment.
3043 (let ((out (assoc-ref outputs "out"))
3044 (path (getenv "PERL5LIB")))
3045 (for-each
3046 (lambda (file)
3047 (wrap-program file
3048 `("PERL5LIB" ":" prefix (,path)))
3049 (wrap-program file
3050 `("PATH" ":" prefix (,(string-append out "/bin")
3051 ,(dirname (which "sed"))
3052 ,(dirname (which "gzip"))
3053 ,(dirname (which "grep"))
3054 ,(dirname (which "perl"))
3055 ,(dirname (which "uname"))))))
3056 (find-files out ".")))
3057 #t))
3058 (add-after 'wrap-program 'check
3059 (lambda* (#:key outputs #:allow-other-keys)
3060 (invoke (string-append (assoc-ref outputs "out")
3061 "/bin/edirect.pl")
3062 "-filter" "-help")
3063 #t)))))
3064 (inputs
3065 `(("edirect-go-programs" ,edirect-go-programs)
3066 ("perl-html-parser" ,perl-html-parser)
3067 ("perl-encode-locale" ,perl-encode-locale)
3068 ("perl-file-listing" ,perl-file-listing)
3069 ("perl-html-tagset" ,perl-html-tagset)
3070 ("perl-html-tree" ,perl-html-tree)
3071 ("perl-http-cookies" ,perl-http-cookies)
3072 ("perl-http-date" ,perl-http-date)
3073 ("perl-http-message" ,perl-http-message)
3074 ("perl-http-negotiate" ,perl-http-negotiate)
3075 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
3076 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
3077 ("perl-net-http" ,perl-net-http)
3078 ("perl-uri" ,perl-uri)
3079 ("perl-www-robotrules" ,perl-www-robotrules)
3080 ("perl-xml-simple" ,perl-xml-simple)
3081 ("perl" ,perl)))
3082 (home-page "https://www.ncbi.nlm.nih.gov/books/NBK179288/")
3083 (synopsis "Tools for accessing the NCBI's set of databases")
3084 (description
3085 "Entrez Direct (EDirect) is a method for accessing the National Center
3086 for Biotechnology Information's (NCBI) set of interconnected
3087 databases (publication, sequence, structure, gene, variation, expression,
3088 etc.) from a terminal. Functions take search terms from command-line
3089 arguments. Individual operations are combined to build multi-step queries.
3090 Record retrieval and formatting normally complete the process.
3091
3092 EDirect also provides an argument-driven function that simplifies the
3093 extraction of data from document summaries or other results that are returned
3094 in structured XML format. This can eliminate the need for writing custom
3095 software to answer ad hoc questions.")
3096 (native-search-paths
3097 ;; Ideally this should be set for LWP somewhere.
3098 (list (search-path-specification
3099 (variable "PERL_LWP_SSL_CA_FILE")
3100 (file-type 'regular)
3101 (separator #f)
3102 (files '("/etc/ssl/certs/ca-certificates.crt")))))
3103 (license license:public-domain)))
3104
3105 (define-public edirect-go-programs
3106 (package
3107 (inherit edirect)
3108 (name "edirect-go-programs")
3109 (build-system go-build-system)
3110 (arguments
3111 `(#:install-source? #f
3112 #:tests? #f ; No tests.
3113 #:import-path "ncbi.nlm.nih.gov/entrez/edirect"
3114 #:phases
3115 (modify-phases %standard-phases
3116 (replace 'build
3117 (lambda* (#:key import-path #:allow-other-keys)
3118 (with-directory-excursion (string-append "src/" import-path)
3119 (invoke "go" "build" "-v" "-x" "j2x.go")
3120 (invoke "go" "build" "-v" "-x" "t2x.go")
3121 (invoke "go" "build" "-v" "-x" "-o"
3122 "xtract.Linux" "xtract.go" "common.go")
3123 (invoke "go" "build" "-v" "-x" "-o"
3124 "rchive.Linux" "rchive.go" "common.go")
3125 (invoke "go" "build" "-v" "-x" "-o" "symbols.Linux" "s2p.go"))))
3126 (replace 'install
3127 (lambda* (#:key outputs import-path #:allow-other-keys)
3128 (let ((dest (string-append (assoc-ref outputs "out") "/bin"))
3129 (source (string-append "src/" import-path "/")))
3130 (for-each (lambda (file)
3131 (format #t "installing ~a~%" file)
3132 (install-file (string-append source file) dest))
3133 '("j2x" "t2x" "symbols.Linux" "xtract.Linux" "rchive.Linux"))
3134 #t))))))
3135 (native-inputs '())
3136 (propagated-inputs '())
3137 (inputs
3138 `(("go-github-com-fatih-color" ,go-github-com-fatih-color)
3139 ("go-github-com-fogleman-gg" ,go-github-com-fogleman-gg)
3140 ("go-github-com-gedex-inflector" ,go-github-com-gedex-inflector)
3141 ("go-github-com-golang-freetype" ,go-github-com-golang-freetype)
3142 ("go-github-com-klauspost-cpuid" ,go-github-com-klauspost-cpuid)
3143 ("go-github-com-pbnjay-memory" ,go-github-com-pbnjay-memory)
3144 ("go-github-com-surgebase-porter2" ,go-github-com-surgebase-porter2)
3145 ("go-golang-org-rainycape-unidecode" ,go-golang-org-rainycape-unidecode)
3146 ("go-golang-org-x-image" ,go-golang-org-x-image)
3147 ("go-golang-org-x-text" ,go-golang-org-x-text)))))
3148
3149 (define-public exonerate
3150 (package
3151 (name "exonerate")
3152 (version "2.4.0")
3153 (source
3154 (origin
3155 (method url-fetch)
3156 (uri
3157 (string-append
3158 "http://ftp.ebi.ac.uk/pub/software/vertebrategenomics/exonerate/"
3159 "exonerate-" version ".tar.gz"))
3160 (sha256
3161 (base32
3162 "0hj0m9xygiqsdxvbg79wq579kbrx1mdrabi2bzqz2zn9qwfjcjgq"))))
3163 (build-system gnu-build-system)
3164 (arguments
3165 `(#:parallel-build? #f)) ; Building in parallel fails on some machines.
3166 (native-inputs
3167 `(("pkg-config" ,pkg-config)))
3168 (inputs
3169 `(("glib" ,glib)))
3170 (home-page
3171 "https://www.ebi.ac.uk/about/vertebrate-genomics/software/exonerate")
3172 (synopsis "Generic tool for biological sequence alignment")
3173 (description
3174 "Exonerate is a generic tool for pairwise sequence comparison. It allows
3175 the alignment of sequences using a many alignment models, either exhaustive
3176 dynamic programming or a variety of heuristics.")
3177 (license license:gpl3)))
3178
3179 (define-public express
3180 (package
3181 (name "express")
3182 (version "1.5.3")
3183 (source (origin
3184 (method git-fetch)
3185 (uri (git-reference
3186 (url "https://github.com/adarob/eXpress")
3187 (commit version)))
3188 (file-name (git-file-name name version))
3189 (sha256
3190 (base32
3191 "18nb22n7x820fzjngf4qgyb3mspqkw7xyk7v7s5ps6wfrd8qwscb"))))
3192 (build-system cmake-build-system)
3193 (arguments
3194 `(#:tests? #f ;no "check" target
3195 #:phases
3196 (modify-phases %standard-phases
3197 (add-after 'unpack 'use-shared-boost-libs-and-set-bamtools-paths
3198 (lambda* (#:key inputs #:allow-other-keys)
3199 (substitute* "CMakeLists.txt"
3200 (("set\\(Boost_USE_STATIC_LIBS ON\\)")
3201 "set(Boost_USE_STATIC_LIBS OFF)")
3202 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/bamtools/include")
3203 (string-append (assoc-ref inputs "bamtools") "/include/bamtools")))
3204 (substitute* "src/CMakeLists.txt"
3205 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/\\.\\./bamtools/lib")
3206 (string-append (assoc-ref inputs "bamtools") "/lib"))
3207 (("libprotobuf.a") "libprotobuf.so"))
3208 #t))
3209 (add-after 'unpack 'remove-update-check
3210 (lambda _
3211 (substitute* "src/main.cpp"
3212 (("#include \"update_check.h\"") "")
3213 (("check_version\\(PACKAGE_VERSION\\);") ""))
3214 #t)))))
3215 (inputs
3216 `(("boost" ,boost)
3217 ("bamtools" ,bamtools)
3218 ("protobuf" ,protobuf)
3219 ("zlib" ,zlib)))
3220 (home-page "http://bio.math.berkeley.edu/eXpress")
3221 (synopsis "Streaming quantification for high-throughput genomic sequencing")
3222 (description
3223 "eXpress is a streaming tool for quantifying the abundances of a set of
3224 target sequences from sampled subsequences. Example applications include
3225 transcript-level RNA-Seq quantification, allele-specific/haplotype expression
3226 analysis (from RNA-Seq), transcription factor binding quantification in
3227 ChIP-Seq, and analysis of metagenomic data.")
3228 (license license:artistic2.0)))
3229
3230 (define-public express-beta-diversity
3231 (package
3232 (name "express-beta-diversity")
3233 (version "1.0.8")
3234 (source (origin
3235 (method git-fetch)
3236 (uri (git-reference
3237 (url "https://github.com/dparks1134/ExpressBetaDiversity")
3238 (commit (string-append "v" version))))
3239 (file-name (git-file-name name version))
3240 (sha256
3241 (base32
3242 "0s0yzg5c21349rh7x4w9266jsvnp7j1hp9cf8sk32hz8nvrj745x"))))
3243 (build-system gnu-build-system)
3244 (arguments
3245 `(#:phases
3246 (modify-phases %standard-phases
3247 (delete 'configure)
3248 (add-before 'build 'enter-source (lambda _ (chdir "source") #t))
3249 (replace 'check
3250 (lambda _ (invoke "../bin/ExpressBetaDiversity" "-u") #t))
3251 (replace 'install
3252 (lambda* (#:key outputs #:allow-other-keys)
3253 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
3254 (install-file "../scripts/convertToEBD.py" bin)
3255 (install-file "../bin/ExpressBetaDiversity" bin)
3256 #t))))))
3257 (inputs
3258 `(("python" ,python-2)))
3259 (home-page "https://github.com/dparks1134/ExpressBetaDiversity")
3260 (synopsis "Taxon- and phylogenetic-based beta diversity measures")
3261 (description
3262 "Express Beta Diversity (EBD) calculates ecological beta diversity
3263 (dissimilarity) measures between biological communities. EBD implements a
3264 variety of diversity measures including those that make use of phylogenetic
3265 similarity of community members.")
3266 (license license:gpl3+)))
3267
3268 (define-public fasttree
3269 (package
3270 (name "fasttree")
3271 (version "2.1.10")
3272 (source (origin
3273 (method url-fetch)
3274 (uri (string-append
3275 "http://www.microbesonline.org/fasttree/FastTree-"
3276 version ".c"))
3277 (sha256
3278 (base32
3279 "0vcjdvy1j4m702vmak4svbfkrpcw63k7wymfksjp9a982zy8kjsl"))))
3280 (build-system gnu-build-system)
3281 (arguments
3282 `(#:tests? #f ; no "check" target
3283 #:phases
3284 (modify-phases %standard-phases
3285 (delete 'unpack)
3286 (delete 'configure)
3287 (replace 'build
3288 (lambda* (#:key source #:allow-other-keys)
3289 (invoke "gcc"
3290 "-O3"
3291 "-finline-functions"
3292 "-funroll-loops"
3293 "-Wall"
3294 "-o"
3295 "FastTree"
3296 source
3297 "-lm")
3298 (invoke "gcc"
3299 "-DOPENMP"
3300 "-fopenmp"
3301 "-O3"
3302 "-finline-functions"
3303 "-funroll-loops"
3304 "-Wall"
3305 "-o"
3306 "FastTreeMP"
3307 source
3308 "-lm")
3309 #t))
3310 (replace 'install
3311 (lambda* (#:key outputs #:allow-other-keys)
3312 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
3313 (install-file "FastTree" bin)
3314 (install-file "FastTreeMP" bin)
3315 #t))))))
3316 (home-page "http://www.microbesonline.org/fasttree")
3317 (synopsis "Infers approximately-maximum-likelihood phylogenetic trees")
3318 (description
3319 "FastTree can handle alignments with up to a million of sequences in a
3320 reasonable amount of time and memory. For large alignments, FastTree is
3321 100-1,000 times faster than PhyML 3.0 or RAxML 7.")
3322 (license license:gpl2+)))
3323
3324 (define-public fastx-toolkit
3325 (package
3326 (name "fastx-toolkit")
3327 (version "0.0.14")
3328 (source (origin
3329 (method url-fetch)
3330 (uri
3331 (string-append
3332 "https://github.com/agordon/fastx_toolkit/releases/download/"
3333 version "/fastx_toolkit-" version ".tar.bz2"))
3334 (sha256
3335 (base32
3336 "01jqzw386873sr0pjp1wr4rn8fsga2vxs1qfmicvx1pjr72007wy"))))
3337 (build-system gnu-build-system)
3338 (inputs
3339 `(("libgtextutils" ,libgtextutils)))
3340 (native-inputs
3341 `(("gcc" ,gcc-6) ;; doesn't build with later versions
3342 ("pkg-config" ,pkg-config)))
3343 (home-page "http://hannonlab.cshl.edu/fastx_toolkit/")
3344 (synopsis "Tools for FASTA/FASTQ file preprocessing")
3345 (description
3346 "The FASTX-Toolkit is a collection of command line tools for Short-Reads
3347 FASTA/FASTQ files preprocessing.
3348
3349 Next-Generation sequencing machines usually produce FASTA or FASTQ files,
3350 containing multiple short-reads sequences. The main processing of such
3351 FASTA/FASTQ files is mapping the sequences to reference genomes. However, it
3352 is sometimes more productive to preprocess the files before mapping the
3353 sequences to the genome---manipulating the sequences to produce better mapping
3354 results. The FASTX-Toolkit tools perform some of these preprocessing tasks.")
3355 (license license:agpl3+)))
3356
3357 (define-public flexbar
3358 (package
3359 (name "flexbar")
3360 (version "3.4.0")
3361 (source (origin
3362 (method git-fetch)
3363 (uri (git-reference
3364 (url "https://github.com/seqan/flexbar")
3365 (commit (string-append "v" version))))
3366 (file-name (git-file-name name version))
3367 (sha256
3368 (base32
3369 "1pq9sxvdnldl14libk234m72dqhwgzs3acgl943wchwdqlcsi5r2"))))
3370 (build-system cmake-build-system)
3371 (arguments
3372 `(#:phases
3373 (modify-phases %standard-phases
3374 (add-after 'unpack 'do-not-tune-to-CPU
3375 (lambda _
3376 (substitute* "src/CMakeLists.txt"
3377 ((" -march=native") ""))
3378 #t))
3379 (replace 'check
3380 (lambda* (#:key outputs #:allow-other-keys)
3381 (setenv "PATH" (string-append (getcwd) ":" (getenv "PATH")))
3382 (with-directory-excursion "../source/test"
3383 (invoke "bash" "flexbar_test.sh"))
3384 #t))
3385 (replace 'install
3386 (lambda* (#:key outputs #:allow-other-keys)
3387 (let* ((out (string-append (assoc-ref outputs "out")))
3388 (bin (string-append out "/bin/")))
3389 (install-file "flexbar" bin))
3390 #t)))))
3391 (inputs
3392 `(("tbb" ,tbb)
3393 ("zlib" ,zlib)))
3394 (native-inputs
3395 `(("pkg-config" ,pkg-config)
3396 ("seqan" ,seqan)))
3397 (home-page "https://github.com/seqan/flexbar")
3398 (synopsis "Barcode and adapter removal tool for sequencing platforms")
3399 (description
3400 "Flexbar preprocesses high-throughput nucleotide sequencing data
3401 efficiently. It demultiplexes barcoded runs and removes adapter sequences.
3402 Moreover, trimming and filtering features are provided. Flexbar increases
3403 read mapping rates and improves genome and transcriptome assemblies. It
3404 supports next-generation sequencing data in fasta/q and csfasta/q format from
3405 Illumina, Roche 454, and the SOLiD platform.")
3406 (license license:bsd-3)))
3407
3408 (define-public fraggenescan
3409 (package
3410 (name "fraggenescan")
3411 (version "1.30")
3412 (source
3413 (origin
3414 (method url-fetch)
3415 (uri
3416 (string-append "mirror://sourceforge/fraggenescan/"
3417 "FragGeneScan" version ".tar.gz"))
3418 (sha256
3419 (base32 "158dcnwczgcyhwm4qlx19sanrwgdpzf6bn2y57mbpx55lkgz1mzj"))))
3420 (build-system gnu-build-system)
3421 (arguments
3422 `(#:phases
3423 (modify-phases %standard-phases
3424 (delete 'configure)
3425 (add-before 'build 'patch-paths
3426 (lambda* (#:key outputs #:allow-other-keys)
3427 (let* ((out (string-append (assoc-ref outputs "out")))
3428 (share (string-append out "/share/fraggenescan/")))
3429 (substitute* "run_FragGeneScan.pl"
3430 (("system\\(\"rm")
3431 (string-append "system(\"" (which "rm")))
3432 (("system\\(\"mv")
3433 (string-append "system(\"" (which "mv")))
3434 (("\\\"awk") (string-append "\"" (which "awk")))
3435 ;; This script and other programs expect the training files
3436 ;; to be in the non-standard location bin/train/XXX. Change
3437 ;; this to be share/fraggenescan/train/XXX instead.
3438 (("^\\$train.file = \\$dir.*")
3439 (string-append "$train_file = \""
3440 share
3441 "train/\".$FGS_train_file;")))
3442 (substitute* "run_hmm.c"
3443 (("^ strcat\\(train_dir, \\\"train/\\\"\\);")
3444 (string-append " strcpy(train_dir, \"" share "/train/\");"))))
3445 #t))
3446 (replace 'build
3447 (lambda _
3448 (invoke "make" "clean")
3449 (invoke "make" "fgs")
3450 #t))
3451 (replace 'install
3452 (lambda* (#:key outputs #:allow-other-keys)
3453 (let* ((out (string-append (assoc-ref outputs "out")))
3454 (bin (string-append out "/bin/"))
3455 (share (string-append out "/share/fraggenescan/train")))
3456 (install-file "run_FragGeneScan.pl" bin)
3457 (install-file "FragGeneScan" bin)
3458 (copy-recursively "train" share))
3459 #t))
3460 (delete 'check)
3461 (add-after 'install 'post-install-check
3462 ;; In lieu of 'make check', run one of the examples and check the
3463 ;; output files gets created.
3464 (lambda* (#:key outputs #:allow-other-keys)
3465 (let* ((out (string-append (assoc-ref outputs "out")))
3466 (bin (string-append out "/bin/"))
3467 (frag (string-append bin "run_FragGeneScan.pl")))
3468 ;; Test complete genome.
3469 (invoke frag
3470 "-genome=./example/NC_000913.fna"
3471 "-out=./test2"
3472 "-complete=1"
3473 "-train=complete")
3474 (unless (and (file-exists? "test2.faa")
3475 (file-exists? "test2.ffn")
3476 (file-exists? "test2.gff")
3477 (file-exists? "test2.out"))
3478 (error "Expected files do not exist."))
3479 ;; Test incomplete sequences.
3480 (invoke frag
3481 "-genome=./example/NC_000913-fgs.ffn"
3482 "-out=out"
3483 "-complete=0"
3484 "-train=454_30")
3485 #t))))))
3486 (inputs
3487 `(("perl" ,perl)
3488 ("python" ,python-2))) ;not compatible with python 3.
3489 (home-page "https://sourceforge.net/projects/fraggenescan/")
3490 (synopsis "Finds potentially fragmented genes in short reads")
3491 (description
3492 "FragGeneScan is a program for predicting bacterial and archaeal genes in
3493 short and error-prone DNA sequencing reads. It can also be applied to predict
3494 genes in incomplete assemblies or complete genomes.")
3495 ;; GPL3+ according to private correspondense with the authors.
3496 (license license:gpl3+)))
3497
3498 (define-public fxtract
3499 (let ((util-commit "776ca85a18a47492af3794745efcb4a905113115"))
3500 (package
3501 (name "fxtract")
3502 (version "2.3")
3503 (source
3504 (origin
3505 (method git-fetch)
3506 (uri (git-reference
3507 (url "https://github.com/ctSkennerton/fxtract")
3508 (commit version)))
3509 (file-name (git-file-name name version))
3510 (sha256
3511 (base32
3512 "0hab3gpwf4w9s87qlbswq6ws1qqybh4dcqk79q1ahyldzai5fgp5"))))
3513 (build-system gnu-build-system)
3514 (arguments
3515 `(#:make-flags (list
3516 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3517 "CC=gcc")
3518 #:test-target "fxtract_test"
3519 #:phases
3520 (modify-phases %standard-phases
3521 (delete 'configure)
3522 (add-before 'build 'copy-util
3523 (lambda* (#:key inputs #:allow-other-keys)
3524 (rmdir "util")
3525 (copy-recursively (assoc-ref inputs "ctskennerton-util") "util")
3526 #t))
3527 ;; Do not use make install as this requires additional dependencies.
3528 (replace 'install
3529 (lambda* (#:key outputs #:allow-other-keys)
3530 (let* ((out (assoc-ref outputs "out"))
3531 (bin (string-append out"/bin")))
3532 (install-file "fxtract" bin)
3533 #t))))))
3534 (inputs
3535 `(("pcre" ,pcre)
3536 ("zlib" ,zlib)))
3537 (native-inputs
3538 ;; ctskennerton-util is licensed under GPL2.
3539 `(("ctskennerton-util"
3540 ,(origin
3541 (method git-fetch)
3542 (uri (git-reference
3543 (url "https://github.com/ctSkennerton/util")
3544 (commit util-commit)))
3545 (file-name (string-append
3546 "ctstennerton-util-" util-commit "-checkout"))
3547 (sha256
3548 (base32
3549 "0cls1hd4vgj3f36fpzzg4xc77d6f3hpc60cbpfmn2gdr7ykzzad7"))))))
3550 (home-page "https://github.com/ctSkennerton/fxtract")
3551 (synopsis "Extract sequences from FASTA and FASTQ files")
3552 (description
3553 "Fxtract extracts sequences from a protein or nucleotide fastx (FASTA
3554 or FASTQ) file given a subsequence. It uses a simple substring search for
3555 basic tasks but can change to using POSIX regular expressions, PCRE, hash
3556 lookups or multi-pattern searching as required. By default fxtract looks in
3557 the sequence of each record but can also be told to look in the header,
3558 comment or quality sections.")
3559 ;; 'util' requires SSE instructions.
3560 (supported-systems '("x86_64-linux"))
3561 (license license:expat))))
3562
3563 (define-public gemma
3564 (package
3565 (name "gemma")
3566 (version "0.98")
3567 (source (origin
3568 (method git-fetch)
3569 (uri (git-reference
3570 (url "https://github.com/xiangzhou/GEMMA")
3571 (commit (string-append "v" version))))
3572 (file-name (git-file-name name version))
3573 (sha256
3574 (base32
3575 "1s3ncnbn45r2hh1cvrqky1kbqq6546biypr4f5mkw1kqlrgyh0yg"))))
3576 (inputs
3577 `(("eigen" ,eigen)
3578 ("gfortran" ,gfortran "lib")
3579 ("gsl" ,gsl)
3580 ("lapack" ,lapack)
3581 ("openblas" ,openblas)
3582 ("zlib" ,zlib)))
3583 (build-system gnu-build-system)
3584 (arguments
3585 `(#:make-flags
3586 '(,@(match (%current-system)
3587 ("x86_64-linux"
3588 '("FORCE_DYNAMIC=1"))
3589 ("i686-linux"
3590 '("FORCE_DYNAMIC=1" "FORCE_32BIT=1"))
3591 (_
3592 '("FORCE_DYNAMIC=1" "NO_INTEL_COMPAT=1"))))
3593 #:phases
3594 (modify-phases %standard-phases
3595 (delete 'configure)
3596 (add-after 'unpack 'find-eigen
3597 (lambda* (#:key inputs #:allow-other-keys)
3598 ;; Ensure that Eigen headers can be found
3599 (setenv "CPLUS_INCLUDE_PATH"
3600 (string-append (assoc-ref inputs "eigen")
3601 "/include/eigen3"))
3602 #t))
3603 (add-before 'build 'bin-mkdir
3604 (lambda _
3605 (mkdir-p "bin")
3606 #t))
3607 (replace 'install
3608 (lambda* (#:key outputs #:allow-other-keys)
3609 (let ((out (assoc-ref outputs "out")))
3610 (install-file "bin/gemma"
3611 (string-append
3612 out "/bin")))
3613 #t)))
3614 #:tests? #f)) ; no tests included yet
3615 (home-page "https://github.com/xiangzhou/GEMMA")
3616 (synopsis "Tool for genome-wide efficient mixed model association")
3617 (description
3618 "Genome-wide Efficient Mixed Model Association (GEMMA) provides a
3619 standard linear mixed model resolver with application in genome-wide
3620 association studies (GWAS).")
3621 (license license:gpl3)))
3622
3623 (define-public grit
3624 (package
3625 (name "grit")
3626 (version "2.0.5")
3627 (source (origin
3628 (method git-fetch)
3629 (uri (git-reference
3630 (url "https://github.com/nboley/grit")
3631 (commit version)))
3632 (file-name (git-file-name name version))
3633 (sha256
3634 (base32
3635 "1l5v8vfvfbrpmgnrvbrbv40d0arhxcnmxgv2f1mlcqfa3q6bkqm9"))))
3636 (build-system python-build-system)
3637 (arguments
3638 `(#:python ,python-2
3639 #:phases
3640 (modify-phases %standard-phases
3641 (add-after 'unpack 'generate-from-cython-sources
3642 (lambda* (#:key inputs outputs #:allow-other-keys)
3643 ;; Delete these C files to force fresh generation from pyx sources.
3644 (delete-file "grit/sparsify_support_fns.c")
3645 (delete-file "grit/call_peaks_support_fns.c")
3646 (substitute* "setup.py"
3647 (("Cython.Setup") "Cython.Build"))
3648 #t)))))
3649 (inputs
3650 `(("python-scipy" ,python2-scipy)
3651 ("python-numpy" ,python2-numpy)
3652 ("python-pysam" ,python2-pysam)
3653 ("python-networkx" ,python2-networkx)))
3654 (native-inputs
3655 `(("python-cython" ,python2-cython)))
3656 ;; The canonical <http://grit-bio.org> home page times out as of 2020-01-21.
3657 (home-page "https://github.com/nboley/grit")
3658 (synopsis "Tool for integrative analysis of RNA-seq type assays")
3659 (description
3660 "GRIT is designed to use RNA-seq, TES, and TSS data to build and quantify
3661 full length transcript models. When none of these data sources are available,
3662 GRIT can be run by providing a candidate set of TES or TSS sites. In
3663 addition, GRIT can merge in reference junctions and gene boundaries. GRIT can
3664 also be run in quantification mode, where it uses a provided GTF file and just
3665 estimates transcript expression.")
3666 (license license:gpl3+)))
3667
3668 (define-public hisat
3669 (package
3670 (name "hisat")
3671 (version "0.1.4")
3672 (source (origin
3673 (method url-fetch)
3674 (uri (string-append
3675 "http://ccb.jhu.edu/software/hisat/downloads/hisat-"
3676 version "-beta-source.zip"))
3677 (sha256
3678 (base32
3679 "1k381ydranqxp09yf2y7w1d0chz5d59vb6jchi89hbb0prq19lk5"))))
3680 (build-system gnu-build-system)
3681 (arguments
3682 `(#:tests? #f ;no check target
3683 #:make-flags '("allall"
3684 ;; Disable unsupported `popcnt' instructions on
3685 ;; architectures other than x86_64
3686 ,@(if (string-prefix? "x86_64"
3687 (or (%current-target-system)
3688 (%current-system)))
3689 '()
3690 '("POPCNT_CAPABILITY=0")))
3691 #:phases
3692 (modify-phases %standard-phases
3693 (add-after 'unpack 'patch-sources
3694 (lambda _
3695 ;; XXX Cannot use snippet because zip files are not supported
3696 (substitute* "Makefile"
3697 (("^CC = .*$") "CC = gcc")
3698 (("^CPP = .*$") "CPP = g++")
3699 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
3700 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
3701 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
3702 (substitute* '("hisat-build" "hisat-inspect")
3703 (("/usr/bin/env") (which "env")))
3704 #t))
3705 (replace 'install
3706 (lambda* (#:key outputs #:allow-other-keys)
3707 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
3708 (for-each (lambda (file)
3709 (install-file file bin))
3710 (find-files
3711 "."
3712 "hisat(-(build|align|inspect)(-(s|l)(-debug)*)*)*$")))
3713 #t))
3714 (delete 'configure))))
3715 (native-inputs
3716 `(("unzip" ,unzip)))
3717 (inputs
3718 `(("perl" ,perl)
3719 ("python" ,python)
3720 ("zlib" ,zlib)))
3721 ;; Non-portable SSE instructions are used so building fails on platforms
3722 ;; other than x86_64.
3723 (supported-systems '("x86_64-linux"))
3724 (home-page "https://ccb.jhu.edu/software/hisat/index.shtml")
3725 (synopsis "Hierarchical indexing for spliced alignment of transcripts")
3726 (description
3727 "HISAT is a fast and sensitive spliced alignment program for mapping
3728 RNA-seq reads. In addition to one global FM index that represents a whole
3729 genome, HISAT uses a large set of small FM indexes that collectively cover the
3730 whole genome. These small indexes (called local indexes) combined with
3731 several alignment strategies enable effective alignment of RNA-seq reads, in
3732 particular, reads spanning multiple exons.")
3733 (license license:gpl3+)))
3734
3735 (define-public hisat2
3736 (package
3737 (name "hisat2")
3738 (version "2.0.5")
3739 (source
3740 (origin
3741 (method url-fetch)
3742 (uri (string-append "ftp://ftp.ccb.jhu.edu/pub/infphilo/hisat2"
3743 "/downloads/hisat2-" version "-source.zip"))
3744 (sha256
3745 (base32
3746 "0lywnr8kijwsc2aw10dwxic0n0yvip6fl3rjlvc8zzwahamy4x7g"))))
3747 (build-system gnu-build-system)
3748 (arguments
3749 `(#:tests? #f ; no check target
3750 #:make-flags (list "CC=gcc" "CXX=g++" "allall")
3751 #:modules ((guix build gnu-build-system)
3752 (guix build utils)
3753 (srfi srfi-26))
3754 #:phases
3755 (modify-phases %standard-phases
3756 (add-after 'unpack 'make-deterministic
3757 (lambda _
3758 (substitute* "Makefile"
3759 (("`date`") "0"))
3760 #t))
3761 (delete 'configure)
3762 (replace 'install
3763 (lambda* (#:key outputs #:allow-other-keys)
3764 (let* ((out (assoc-ref outputs "out"))
3765 (bin (string-append out "/bin/"))
3766 (doc (string-append out "/share/doc/hisat2/")))
3767 (for-each
3768 (cut install-file <> bin)
3769 (find-files "."
3770 "hisat2(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))
3771 (mkdir-p doc)
3772 (install-file "doc/manual.inc.html" doc))
3773 #t)))))
3774 (native-inputs
3775 `(("unzip" ,unzip) ; needed for archive from ftp
3776 ("perl" ,perl)
3777 ("pandoc" ,pandoc))) ; for documentation
3778 (home-page "https://ccb.jhu.edu/software/hisat2/index.shtml")
3779 (synopsis "Graph-based alignment of genomic sequencing reads")
3780 (description "HISAT2 is a fast and sensitive alignment program for mapping
3781 next-generation sequencing reads (both DNA and RNA) to a population of human
3782 genomes (as well as to a single reference genome). In addition to using one
3783 global @dfn{graph FM} (GFM) index that represents a population of human
3784 genomes, HISAT2 uses a large set of small GFM indexes that collectively cover
3785 the whole genome. These small indexes, combined with several alignment
3786 strategies, enable rapid and accurate alignment of sequencing reads. This new
3787 indexing scheme is called a @dfn{Hierarchical Graph FM index} (HGFM).")
3788 ;; HISAT2 contains files from Bowtie2, which is released under
3789 ;; GPLv2 or later. The HISAT2 source files are released under
3790 ;; GPLv3 or later.
3791 (license license:gpl3+)))
3792
3793 (define-public hmmer
3794 (package
3795 (name "hmmer")
3796 (version "3.2.1")
3797 (source
3798 (origin
3799 (method url-fetch)
3800 (uri (string-append
3801 "http://eddylab.org/software/hmmer/hmmer-" version ".tar.gz"))
3802 (sha256
3803 (base32
3804 "171bivy6xhgjsz5nv53n81pc3frnwz29ylblawk2bv46szwjjqd5"))))
3805 (build-system gnu-build-system)
3806 (native-inputs `(("perl" ,perl)))
3807 (home-page "http://hmmer.org/")
3808 (synopsis "Biosequence analysis using profile hidden Markov models")
3809 (description
3810 "HMMER is used for searching sequence databases for homologs of protein
3811 sequences, and for making protein sequence alignments. It implements methods
3812 using probabilistic models called profile hidden Markov models (profile
3813 HMMs).")
3814 ;; hmmer uses non-portable SSE intrinsics so building fails on other
3815 ;; platforms.
3816 (supported-systems '("x86_64-linux" "i686-linux"))
3817 (license license:bsd-3)))
3818
3819 (define-public htseq
3820 (package
3821 (name "htseq")
3822 (version "0.9.1")
3823 (source (origin
3824 (method url-fetch)
3825 (uri (pypi-uri "HTSeq" version))
3826 (sha256
3827 (base32
3828 "11flgb1381xdhk43bzbfm3vhnszkpqg6jk76rpa5xd1zbrvvlnxg"))))
3829 (build-system python-build-system)
3830 (native-inputs
3831 `(("python-cython" ,python-cython)))
3832 ;; Numpy needs to be propagated when htseq is used as a Python library.
3833 (propagated-inputs
3834 `(("python-numpy" ,python-numpy)))
3835 (inputs
3836 `(("python-pysam" ,python-pysam)
3837 ("python-matplotlib" ,python-matplotlib)))
3838 (home-page "https://htseq.readthedocs.io/")
3839 (synopsis "Analysing high-throughput sequencing data with Python")
3840 (description
3841 "HTSeq is a Python package that provides infrastructure to process data
3842 from high-throughput sequencing assays.")
3843 (license license:gpl3+)))
3844
3845 (define-public python2-htseq
3846 (package-with-python2 htseq))
3847
3848 (define-public java-htsjdk
3849 (package
3850 (name "java-htsjdk")
3851 (version "2.3.0") ; last version without build dependency on gradle
3852 (source (origin
3853 (method git-fetch)
3854 (uri (git-reference
3855 (url "https://github.com/samtools/htsjdk")
3856 (commit version)))
3857 (file-name (git-file-name name version))
3858 (sha256
3859 (base32
3860 "1b178ixcabanm834ydjl3jiakpyxdmki32hqfv2abrzn3rcwa28i"))
3861 (modules '((guix build utils)))
3862 (snippet
3863 ;; Delete pre-built binaries
3864 '(begin
3865 (delete-file-recursively "lib")
3866 (mkdir-p "lib")
3867 #t))))
3868 (build-system ant-build-system)
3869 (arguments
3870 `(#:tests? #f ; test require Internet access
3871 #:jdk ,icedtea-8
3872 #:make-flags
3873 (list (string-append "-Ddist=" (assoc-ref %outputs "out")
3874 "/share/java/htsjdk/"))
3875 #:build-target "all"
3876 #:phases
3877 (modify-phases %standard-phases
3878 ;; The build phase also installs the jars
3879 (delete 'install))))
3880 (inputs
3881 `(("java-ngs" ,java-ngs)
3882 ("java-snappy-1" ,java-snappy-1)
3883 ("java-commons-compress" ,java-commons-compress)
3884 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
3885 ("java-commons-jexl-2" ,java-commons-jexl-2)
3886 ("java-xz" ,java-xz)))
3887 (native-inputs
3888 `(("java-testng" ,java-testng)))
3889 (home-page "http://samtools.github.io/htsjdk/")
3890 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3891 (description
3892 "HTSJDK is an implementation of a unified Java library for accessing
3893 common file formats, such as SAM and VCF, used for high-throughput
3894 sequencing (HTS) data. There are also an number of useful utilities for
3895 manipulating HTS data.")
3896 (license license:expat)))
3897
3898 (define-public java-htsjdk-latest
3899 (package
3900 (name "java-htsjdk")
3901 (version "2.14.3")
3902 (source (origin
3903 (method git-fetch)
3904 (uri (git-reference
3905 (url "https://github.com/samtools/htsjdk")
3906 (commit version)))
3907 (file-name (string-append name "-" version "-checkout"))
3908 (sha256
3909 (base32
3910 "1lmya1fdjy03mz6zmdmd86j9v9vfhqb3952mqq075navx1i6g4bc"))))
3911 (build-system ant-build-system)
3912 (arguments
3913 `(#:tests? #f ; test require Scala
3914 #:jdk ,icedtea-8
3915 #:jar-name "htsjdk.jar"
3916 #:phases
3917 (modify-phases %standard-phases
3918 (add-after 'unpack 'remove-useless-build.xml
3919 (lambda _ (delete-file "build.xml") #t))
3920 ;; The tests require the scalatest package.
3921 (add-after 'unpack 'remove-tests
3922 (lambda _ (delete-file-recursively "src/test") #t)))))
3923 (inputs
3924 `(("java-ngs" ,java-ngs)
3925 ("java-snappy-1" ,java-snappy-1)
3926 ("java-commons-compress" ,java-commons-compress)
3927 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
3928 ("java-commons-jexl-2" ,java-commons-jexl-2)
3929 ("java-xz" ,java-xz)))
3930 (native-inputs
3931 `(("java-junit" ,java-junit)))
3932 (home-page "http://samtools.github.io/htsjdk/")
3933 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3934 (description
3935 "HTSJDK is an implementation of a unified Java library for accessing
3936 common file formats, such as SAM and VCF, used for high-throughput
3937 sequencing (HTS) data. There are also an number of useful utilities for
3938 manipulating HTS data.")
3939 (license license:expat)))
3940
3941 ;; This is needed for picard 2.10.3
3942 (define-public java-htsjdk-2.10.1
3943 (package (inherit java-htsjdk-latest)
3944 (name "java-htsjdk")
3945 (version "2.10.1")
3946 (source (origin
3947 (method git-fetch)
3948 (uri (git-reference
3949 (url "https://github.com/samtools/htsjdk")
3950 (commit version)))
3951 (file-name (string-append name "-" version "-checkout"))
3952 (sha256
3953 (base32
3954 "1kxh7slm2pm3x9p6jxa1wqsq9a31dhiiflhxnxqcisan4k3rwia2"))))
3955 (build-system ant-build-system)
3956 (arguments
3957 `(#:tests? #f ; tests require Scala
3958 #:jdk ,icedtea-8
3959 #:jar-name "htsjdk.jar"
3960 #:phases
3961 (modify-phases %standard-phases
3962 (add-after 'unpack 'remove-useless-build.xml
3963 (lambda _ (delete-file "build.xml") #t))
3964 ;; The tests require the scalatest package.
3965 (add-after 'unpack 'remove-tests
3966 (lambda _ (delete-file-recursively "src/test") #t)))))))
3967
3968 ;; This version matches java-htsjdk 2.3.0. Later versions also require a more
3969 ;; recent version of java-htsjdk, which depends on gradle.
3970 (define-public java-picard
3971 (package
3972 (name "java-picard")
3973 (version "2.3.0")
3974 (source (origin
3975 (method git-fetch)
3976 (uri (git-reference
3977 (url "https://github.com/broadinstitute/picard")
3978 (commit version)))
3979 (file-name (string-append "java-picard-" version "-checkout"))
3980 (sha256
3981 (base32
3982 "1ll7mf4r3by92w2nhlmpa591xd1f46xlkwh59mq6fvbb5pdwzvx6"))
3983 (modules '((guix build utils)))
3984 (snippet
3985 '(begin
3986 ;; Delete pre-built binaries.
3987 (delete-file-recursively "lib")
3988 (mkdir-p "lib")
3989 (substitute* "build.xml"
3990 ;; Remove build-time dependency on git.
3991 (("failifexecutionfails=\"true\"")
3992 "failifexecutionfails=\"false\"")
3993 ;; Use our htsjdk.
3994 (("depends=\"compile-htsjdk, ")
3995 "depends=\"")
3996 (("depends=\"compile-htsjdk-tests, ")
3997 "depends=\"")
3998 ;; Build picard-lib.jar before building picard.jar
3999 (("name=\"picard-jar\" depends=\"" line)
4000 (string-append line "picard-lib-jar, ")))
4001 #t))))
4002 (build-system ant-build-system)
4003 (arguments
4004 `(#:build-target "picard-jar"
4005 #:test-target "test"
4006 ;; Tests require jacoco:coverage.
4007 #:tests? #f
4008 #:make-flags
4009 (list (string-append "-Dhtsjdk_lib_dir="
4010 (assoc-ref %build-inputs "java-htsjdk")
4011 "/share/java/htsjdk/")
4012 "-Dhtsjdk-classes=dist/tmp"
4013 (string-append "-Dhtsjdk-version="
4014 ,(package-version java-htsjdk)))
4015 #:jdk ,icedtea-8
4016 #:phases
4017 (modify-phases %standard-phases
4018 ;; FIXME: this phase fails with "duplicate entry: htsjdk/samtools/AbstractBAMFileIndex$1.class"
4019 (delete 'generate-jar-indices)
4020 (add-after 'unpack 'use-our-htsjdk
4021 (lambda* (#:key inputs #:allow-other-keys)
4022 (substitute* "build.xml"
4023 (("\\$\\{htsjdk\\}/lib")
4024 (string-append (assoc-ref inputs "java-htsjdk")
4025 "/share/java/htsjdk/")))
4026 #t))
4027 (add-after 'unpack 'make-test-target-independent
4028 (lambda* (#:key inputs #:allow-other-keys)
4029 (substitute* "build.xml"
4030 (("name=\"test\" depends=\"compile, ")
4031 "name=\"test\" depends=\""))
4032 #t))
4033 (replace 'install (install-jars "dist")))))
4034 (inputs
4035 `(("java-htsjdk" ,java-htsjdk)
4036 ("java-guava" ,java-guava)))
4037 (native-inputs
4038 `(("java-testng" ,java-testng)))
4039 (home-page "http://broadinstitute.github.io/picard/")
4040 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
4041 (description "Picard is a set of Java command line tools for manipulating
4042 high-throughput sequencing (HTS) data and formats. Picard is implemented
4043 using the HTSJDK Java library to support accessing file formats that are
4044 commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
4045 VCF.")
4046 (license license:expat)))
4047
4048 ;; This is needed for dropseq-tools
4049 (define-public java-picard-2.10.3
4050 (package
4051 (name "java-picard")
4052 (version "2.10.3")
4053 (source (origin
4054 (method git-fetch)
4055 (uri (git-reference
4056 (url "https://github.com/broadinstitute/picard")
4057 (commit version)))
4058 (file-name (string-append "java-picard-" version "-checkout"))
4059 (sha256
4060 (base32
4061 "1ajlx31l6i1k3y2rhnmgq07sz99g2czqfqgkr9mihmdjp3gwjhvi"))))
4062 (build-system ant-build-system)
4063 (arguments
4064 `(#:jar-name "picard.jar"
4065 ;; Tests require jacoco:coverage.
4066 #:tests? #f
4067 #:jdk ,icedtea-8
4068 #:main-class "picard.cmdline.PicardCommandLine"
4069 #:modules ((guix build ant-build-system)
4070 (guix build utils)
4071 (guix build java-utils)
4072 (sxml simple)
4073 (sxml transform)
4074 (sxml xpath))
4075 #:phases
4076 (modify-phases %standard-phases
4077 ;; FIXME: this phase fails with "duplicate entry: htsjdk/samtools/AbstractBAMFileIndex$1.class"
4078 (delete 'generate-jar-indices)
4079 (add-after 'unpack 'remove-useless-build.xml
4080 (lambda _ (delete-file "build.xml") #t))
4081 ;; This is necessary to ensure that htsjdk is found when using
4082 ;; picard.jar as an executable.
4083 (add-before 'build 'edit-classpath-in-manifest
4084 (lambda* (#:key inputs #:allow-other-keys)
4085 (chmod "build.xml" #o664)
4086 (call-with-output-file "build.xml.new"
4087 (lambda (port)
4088 (sxml->xml
4089 (pre-post-order
4090 (with-input-from-file "build.xml"
4091 (lambda _ (xml->sxml #:trim-whitespace? #t)))
4092 `((target . ,(lambda (tag . kids)
4093 (let ((name ((sxpath '(name *text*))
4094 (car kids)))
4095 ;; FIXME: We're breaking the line
4096 ;; early with a dummy path to
4097 ;; ensure that the store reference
4098 ;; isn't broken apart and can still
4099 ;; be found by the reference
4100 ;; scanner.
4101 (msg (format #f
4102 "\
4103 Class-Path: /~a \
4104 ~a/share/java/htsjdk.jar${line.separator}${line.separator}"
4105 ;; maximum line length is 70
4106 (string-tabulate (const #\b) 57)
4107 (assoc-ref inputs "java-htsjdk"))))
4108 (if (member "manifest" name)
4109 `(,tag ,@kids
4110 (replaceregexp
4111 (@ (file "${manifest.file}")
4112 (match "\\r\\n\\r\\n")
4113 (replace "${line.separator}")))
4114 (echo
4115 (@ (message ,msg)
4116 (file "${manifest.file}")
4117 (append "true"))))
4118 `(,tag ,@kids)))))
4119 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
4120 (*text* . ,(lambda (_ txt) txt))))
4121 port)))
4122 (rename-file "build.xml.new" "build.xml")
4123 #t)))))
4124 (propagated-inputs
4125 `(("java-htsjdk" ,java-htsjdk-2.10.1)))
4126 (native-inputs
4127 `(("java-testng" ,java-testng)
4128 ("java-guava" ,java-guava)))
4129 (home-page "http://broadinstitute.github.io/picard/")
4130 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
4131 (description "Picard is a set of Java command line tools for manipulating
4132 high-throughput sequencing (HTS) data and formats. Picard is implemented
4133 using the HTSJDK Java library to support accessing file formats that are
4134 commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
4135 VCF.")
4136 (license license:expat)))
4137
4138 ;; This is the last version of Picard to provide net.sf.samtools
4139 (define-public java-picard-1.113
4140 (package (inherit java-picard)
4141 (name "java-picard")
4142 (version "1.113")
4143 (source (origin
4144 (method git-fetch)
4145 (uri (git-reference
4146 (url "https://github.com/broadinstitute/picard")
4147 (commit version)))
4148 (file-name (string-append "java-picard-" version "-checkout"))
4149 (sha256
4150 (base32
4151 "0lkpvin2fz3hhly4l02kk56fqy8lmlgyzr9kmvljk6ry6l1hw973"))
4152 (modules '((guix build utils)))
4153 (snippet
4154 '(begin
4155 ;; Delete pre-built binaries.
4156 (delete-file-recursively "lib")
4157 (mkdir-p "lib")
4158 #t))))
4159 (build-system ant-build-system)
4160 (arguments
4161 `(#:build-target "picard-jar"
4162 #:test-target "test"
4163 ;; FIXME: the class path at test time is wrong.
4164 ;; [testng] Error: A JNI error has occurred, please check your installation and try again
4165 ;; [testng] Exception in thread "main" java.lang.NoClassDefFoundError: com/beust/jcommander/ParameterException
4166 #:tests? #f
4167 #:jdk ,icedtea-8
4168 #:ant ,ant/java8
4169 ;; This is only used for tests.
4170 #:make-flags
4171 (list "-Dsamjdk.intel_deflater_so_path=lib/jni/libIntelDeflater.so")
4172 #:phases
4173 (modify-phases %standard-phases
4174 ;; FIXME: This phase fails.
4175 (delete 'generate-jar-indices)
4176 ;; Do not use bundled ant bzip2.
4177 (add-after 'unpack 'use-ant-bzip
4178 (lambda* (#:key inputs #:allow-other-keys)
4179 (substitute* "build.xml"
4180 (("\\$\\{lib\\}/apache-ant-1.8.2-bzip2.jar")
4181 (string-append (assoc-ref inputs "ant")
4182 "/lib/ant.jar")))
4183 #t))
4184 (add-after 'unpack 'make-test-target-independent
4185 (lambda* (#:key inputs #:allow-other-keys)
4186 (substitute* "build.xml"
4187 (("name=\"test\" depends=\"compile, ")
4188 "name=\"test\" depends=\"compile-tests, ")
4189 (("name=\"compile\" depends=\"compile-src, compile-tests\"")
4190 "name=\"compile\" depends=\"compile-src\""))
4191 #t))
4192 (add-after 'unpack 'fix-deflater-path
4193 (lambda* (#:key outputs #:allow-other-keys)
4194 (substitute* "src/java/net/sf/samtools/Defaults.java"
4195 (("getStringProperty\\(\"intel_deflater_so_path\", null\\)")
4196 (string-append "getStringProperty(\"intel_deflater_so_path\", \""
4197 (assoc-ref outputs "out")
4198 "/lib/jni/libIntelDeflater.so"
4199 "\")")))
4200 #t))
4201 ;; Build the deflater library, because we've previously deleted the
4202 ;; pre-built one. This can only be built with access to the JDK
4203 ;; sources.
4204 (add-after 'build 'build-jni
4205 (lambda* (#:key inputs #:allow-other-keys)
4206 (mkdir-p "lib/jni")
4207 (mkdir-p "jdk-src")
4208 (invoke "tar" "--strip-components=1" "-C" "jdk-src"
4209 "-xf" (assoc-ref inputs "jdk-src"))
4210 (invoke "javah" "-jni"
4211 "-classpath" "classes"
4212 "-d" "lib/"
4213 "net.sf.samtools.util.zip.IntelDeflater")
4214 (with-directory-excursion "src/c/inteldeflater"
4215 (invoke "gcc" "-I../../../lib" "-I."
4216 (string-append "-I" (assoc-ref inputs "jdk")
4217 "/include/linux")
4218 "-I../../../jdk-src/src/share/native/common/"
4219 "-I../../../jdk-src/src/solaris/native/common/"
4220 "-c" "-O3" "-fPIC" "IntelDeflater.c")
4221 (invoke "gcc" "-shared"
4222 "-o" "../../../lib/jni/libIntelDeflater.so"
4223 "IntelDeflater.o" "-lz" "-lstdc++"))
4224 #t))
4225 ;; We can only build everything else after building the JNI library.
4226 (add-after 'build-jni 'build-rest
4227 (lambda* (#:key make-flags #:allow-other-keys)
4228 (apply invoke `("ant" "all" ,@make-flags))
4229 #t))
4230 (add-before 'build 'set-JAVA6_HOME
4231 (lambda _
4232 (setenv "JAVA6_HOME" (getenv "JAVA_HOME"))
4233 #t))
4234 (replace 'install (install-jars "dist"))
4235 (add-after 'install 'install-jni-lib
4236 (lambda* (#:key outputs #:allow-other-keys)
4237 (let ((jni (string-append (assoc-ref outputs "out")
4238 "/lib/jni")))
4239 (mkdir-p jni)
4240 (install-file "lib/jni/libIntelDeflater.so" jni)
4241 #t))))))
4242 (inputs
4243 `(("java-snappy-1" ,java-snappy-1)
4244 ("java-commons-jexl-2" ,java-commons-jexl-2)
4245 ("java-cofoja" ,java-cofoja)
4246 ("ant" ,ant/java8) ; for bzip2 support at runtime
4247 ("zlib" ,zlib)))
4248 (native-inputs
4249 `(("ant-apache-bcel" ,ant-apache-bcel)
4250 ("ant-junit" ,ant-junit)
4251 ("java-testng" ,java-testng)
4252 ("java-commons-bcel" ,java-commons-bcel)
4253 ("java-jcommander" ,java-jcommander)
4254 ("jdk" ,icedtea-8 "jdk")
4255 ("jdk-src" ,(car (assoc-ref (package-native-inputs icedtea-8) "jdk-drop")))))))
4256
4257 (define-public fastqc
4258 (package
4259 (name "fastqc")
4260 (version "0.11.5")
4261 (source
4262 (origin
4263 (method url-fetch)
4264 (uri (string-append "http://www.bioinformatics.babraham.ac.uk/"
4265 "projects/fastqc/fastqc_v"
4266 version "_source.zip"))
4267 (sha256
4268 (base32
4269 "18rrlkhcrxvvvlapch4dpj6xc6mpayzys8qfppybi8jrpgx5cc5f"))))
4270 (build-system ant-build-system)
4271 (arguments
4272 `(#:tests? #f ; there are no tests
4273 #:build-target "build"
4274 #:phases
4275 (modify-phases %standard-phases
4276 (add-after 'unpack 'fix-dependencies
4277 (lambda* (#:key inputs #:allow-other-keys)
4278 (substitute* "build.xml"
4279 (("jbzip2-0.9.jar")
4280 (string-append (assoc-ref inputs "java-jbzip2")
4281 "/share/java/jbzip2.jar"))
4282 (("sam-1.103.jar")
4283 (string-append (assoc-ref inputs "java-picard-1.113")
4284 "/share/java/sam-1.112.jar"))
4285 (("cisd-jhdf5.jar")
4286 (string-append (assoc-ref inputs "java-cisd-jhdf5")
4287 "/share/java/sis-jhdf5.jar")))
4288 #t))
4289 ;; There is no installation target
4290 (replace 'install
4291 (lambda* (#:key inputs outputs #:allow-other-keys)
4292 (let* ((out (assoc-ref outputs "out"))
4293 (bin (string-append out "/bin"))
4294 (share (string-append out "/share/fastqc/"))
4295 (exe (string-append share "/fastqc")))
4296 (for-each mkdir-p (list bin share))
4297 (copy-recursively "bin" share)
4298 (substitute* exe
4299 (("my \\$java_bin = 'java';")
4300 (string-append "my $java_bin = '"
4301 (assoc-ref inputs "java")
4302 "/bin/java';")))
4303 (chmod exe #o555)
4304 (symlink exe (string-append bin "/fastqc"))
4305 #t))))))
4306 (inputs
4307 `(("java" ,icedtea)
4308 ("perl" ,perl) ; needed for the wrapper script
4309 ("java-cisd-jhdf5" ,java-cisd-jhdf5)
4310 ("java-picard-1.113" ,java-picard-1.113)
4311 ("java-jbzip2" ,java-jbzip2)))
4312 (native-inputs
4313 `(("unzip" ,unzip)))
4314 (home-page "https://www.bioinformatics.babraham.ac.uk/projects/fastqc/")
4315 (synopsis "Quality control tool for high throughput sequence data")
4316 (description
4317 "FastQC aims to provide a simple way to do some quality control
4318 checks on raw sequence data coming from high throughput sequencing
4319 pipelines. It provides a modular set of analyses which you can use to
4320 give a quick impression of whether your data has any problems of which
4321 you should be aware before doing any further analysis.
4322
4323 The main functions of FastQC are:
4324
4325 @itemize
4326 @item Import of data from BAM, SAM or FastQ files (any variant);
4327 @item Providing a quick overview to tell you in which areas there may
4328 be problems;
4329 @item Summary graphs and tables to quickly assess your data;
4330 @item Export of results to an HTML based permanent report;
4331 @item Offline operation to allow automated generation of reports
4332 without running the interactive application.
4333 @end itemize\n")
4334 (license license:gpl3+)))
4335
4336 (define-public fastp
4337 (package
4338 (name "fastp")
4339 (version "0.14.1")
4340 (source
4341 (origin
4342 (method git-fetch)
4343 (uri (git-reference
4344 (url "https://github.com/OpenGene/fastp")
4345 (commit (string-append "v" version))))
4346 (file-name (git-file-name name version))
4347 (sha256
4348 (base32
4349 "1r6ms5zbf5rps4rgp4z73nczadl00b5rqylw8f684isfz27dp0xh"))))
4350 (build-system gnu-build-system)
4351 (arguments
4352 `(#:tests? #f ; there are none
4353 #:make-flags
4354 (list (string-append "BINDIR=" (assoc-ref %outputs "out") "/bin"))
4355 #:phases
4356 (modify-phases %standard-phases
4357 (delete 'configure)
4358 (add-before 'install 'create-target-dir
4359 (lambda* (#:key outputs #:allow-other-keys)
4360 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
4361 #t)))))
4362 (inputs
4363 `(("zlib" ,zlib)))
4364 (home-page "https://github.com/OpenGene/fastp/")
4365 (synopsis "All-in-one FastQ preprocessor")
4366 (description
4367 "Fastp is a tool designed to provide fast all-in-one preprocessing for
4368 FastQ files. This tool has multi-threading support to afford high
4369 performance.")
4370 (license license:expat)))
4371
4372 (define-public htslib
4373 (package
4374 (name "htslib")
4375 (version "1.11")
4376 (source (origin
4377 (method url-fetch)
4378 (uri (string-append
4379 "https://github.com/samtools/htslib/releases/download/"
4380 version "/htslib-" version ".tar.bz2"))
4381 (sha256
4382 (base32
4383 "1mrq4mihzx37yqhj3sfz6da6mw49niia808bzsw2gkkgmadxvyng"))))
4384 (build-system gnu-build-system)
4385 ;; Let htslib translate "gs://" and "s3://" to regular https links with
4386 ;; "--enable-gcs" and "--enable-s3". For these options to work, we also
4387 ;; need to set "--enable-libcurl".
4388 (arguments
4389 `(#:configure-flags '("--enable-gcs"
4390 "--enable-libcurl"
4391 "--enable-s3")))
4392 (inputs
4393 `(("curl" ,curl)
4394 ("openssl" ,openssl)))
4395 ;; This is referred to in the pkg-config file as a required library.
4396 (propagated-inputs
4397 `(("zlib" ,zlib)))
4398 (native-inputs
4399 `(("perl" ,perl)))
4400 (home-page "https://www.htslib.org")
4401 (synopsis "C library for reading/writing high-throughput sequencing data")
4402 (description
4403 "HTSlib is a C library for reading/writing high-throughput sequencing
4404 data. It also provides the @command{bgzip}, @command{htsfile}, and
4405 @command{tabix} utilities.")
4406 ;; Files under cram/ are released under the modified BSD license;
4407 ;; the rest is released under the Expat license
4408 (license (list license:expat license:bsd-3))))
4409
4410 (define-public htslib-1.9
4411 (package (inherit htslib)
4412 (name "htslib")
4413 (version "1.9")
4414 (source (origin
4415 (method url-fetch)
4416 (uri (string-append
4417 "https://github.com/samtools/htslib/releases/download/"
4418 version "/htslib-" version ".tar.bz2"))
4419 (sha256
4420 (base32
4421 "16ljv43sc3fxmv63w7b2ff8m1s7h89xhazwmbm1bicz8axq8fjz0"))))))
4422
4423 ;; This package should be removed once no packages rely upon it.
4424 (define htslib-1.3
4425 (package
4426 (inherit htslib)
4427 (version "1.3.1")
4428 (source (origin
4429 (method url-fetch)
4430 (uri (string-append
4431 "https://github.com/samtools/htslib/releases/download/"
4432 version "/htslib-" version ".tar.bz2"))
4433 (sha256
4434 (base32
4435 "1rja282fwdc25ql6izkhdyh8ppw8x2fs0w0js78zgkmqjlikmma9"))))))
4436
4437 (define-public idr
4438 (package
4439 (name "idr")
4440 (version "2.0.3")
4441 (source (origin
4442 (method git-fetch)
4443 (uri (git-reference
4444 (url "https://github.com/nboley/idr")
4445 (commit version)))
4446 (file-name (git-file-name name version))
4447 (sha256
4448 (base32
4449 "04j876h6z444v2q79drxx283d3k5snd72kj895wbalnl42206x9g"))
4450 ;; Delete generated C code.
4451 (snippet
4452 '(begin (delete-file "idr/inv_cdf.c") #t))))
4453 (build-system python-build-system)
4454 ;; There is only one test ("test_inv_cdf.py") and it tests features that
4455 ;; are no longer part of this package. It also asserts False, which
4456 ;; causes the tests to always fail.
4457 (arguments `(#:tests? #f))
4458 (propagated-inputs
4459 `(("python-scipy" ,python-scipy)
4460 ("python-sympy" ,python-sympy)
4461 ("python-numpy" ,python-numpy)
4462 ("python-matplotlib" ,python-matplotlib)))
4463 (native-inputs
4464 `(("python-cython" ,python-cython)))
4465 (home-page "https://github.com/nboley/idr")
4466 (synopsis "Tool to measure the irreproducible discovery rate (IDR)")
4467 (description
4468 "The IDR (Irreproducible Discovery Rate) framework is a unified approach
4469 to measure the reproducibility of findings identified from replicate
4470 experiments and provide highly stable thresholds based on reproducibility.")
4471 (license license:gpl2+)))
4472
4473 (define-public jellyfish
4474 (package
4475 (name "jellyfish")
4476 (version "2.2.10")
4477 (source (origin
4478 (method url-fetch)
4479 (uri (string-append "https://github.com/gmarcais/Jellyfish/"
4480 "releases/download/v" version
4481 "/jellyfish-" version ".tar.gz"))
4482 (sha256
4483 (base32
4484 "1k4pc3fvv6w1km2yph4m5sd78fbxp21d6xyzgmy0gjihzc6mb249"))))
4485 (build-system gnu-build-system)
4486 (outputs '("out" ;for library
4487 "ruby" ;for Ruby bindings
4488 "python")) ;for Python bindings
4489 (arguments
4490 `(#:configure-flags
4491 (list (string-append "--enable-ruby-binding="
4492 (assoc-ref %outputs "ruby"))
4493 (string-append "--enable-python-binding="
4494 (assoc-ref %outputs "python")))
4495 #:phases
4496 (modify-phases %standard-phases
4497 (add-before 'check 'set-SHELL-variable
4498 (lambda _
4499 ;; generator_manager.hpp either uses /bin/sh or $SHELL
4500 ;; to run tests.
4501 (setenv "SHELL" (which "bash"))
4502 #t)))))
4503 (native-inputs
4504 `(("bc" ,bc)
4505 ("time" ,time)
4506 ("ruby" ,ruby)
4507 ("python" ,python-2)
4508 ("pkg-config" ,pkg-config)))
4509 (inputs
4510 `(("htslib" ,htslib)))
4511 (synopsis "Tool for fast counting of k-mers in DNA")
4512 (description
4513 "Jellyfish is a tool for fast, memory-efficient counting of k-mers in
4514 DNA. A k-mer is a substring of length k, and counting the occurrences of all
4515 such substrings is a central step in many analyses of DNA sequence. Jellyfish
4516 is a command-line program that reads FASTA and multi-FASTA files containing
4517 DNA sequences. It outputs its k-mer counts in a binary format, which can be
4518 translated into a human-readable text format using the @code{jellyfish dump}
4519 command, or queried for specific k-mers with @code{jellyfish query}.")
4520 (home-page "http://www.genome.umd.edu/jellyfish.html")
4521 ;; JELLYFISH seems to be 64-bit only.
4522 (supported-systems '("x86_64-linux" "aarch64-linux" "mips64el-linux"))
4523 ;; The combined work is published under the GPLv3 or later. Individual
4524 ;; files such as lib/jsoncpp.cpp are released under the Expat license.
4525 (license (list license:gpl3+ license:expat))))
4526
4527 (define-public khmer
4528 (package
4529 (name "khmer")
4530 (version "3.0.0a3")
4531 (source
4532 (origin
4533 (method git-fetch)
4534 (uri (git-reference
4535 (url "https://github.com/dib-lab/khmer")
4536 (commit (string-append "v" version))))
4537 (file-name (git-file-name name version))
4538 (sha256
4539 (base32
4540 "01l4jczglkl7yfhgvzx8j0df7k54bk1r8sli9ll16i1mis0d8f37"))
4541 (modules '((guix build utils)))
4542 (snippet
4543 '(begin
4544 ;; Delete bundled libraries. We do not replace the bundled seqan
4545 ;; as it is a modified subset of the old version 1.4.1.
4546 ;;
4547 ;; We do not replace the bundled MurmurHash as the canonical
4548 ;; repository for this code 'SMHasher' is unsuitable for providing
4549 ;; a library. See
4550 ;; https://lists.gnu.org/archive/html/guix-devel/2016-06/msg00977.html
4551 (delete-file-recursively "third-party/zlib")
4552 (delete-file-recursively "third-party/bzip2")
4553 (delete-file-recursively "third-party/seqan")
4554 (substitute* "setup.cfg"
4555 (("# libraries = z,bz2")
4556 "libraries = z,bz2")
4557 (("include:third-party/zlib:third-party/bzip2")
4558 "include:"))
4559 #t))))
4560 (build-system python-build-system)
4561 (arguments
4562 `(#:phases
4563 (modify-phases %standard-phases
4564 (add-after 'unpack 'set-cc
4565 (lambda _ (setenv "CC" "gcc") #t))
4566
4567 (add-before 'reset-gzip-timestamps 'make-files-writable
4568 (lambda* (#:key outputs #:allow-other-keys)
4569 ;; Make sure .gz files are writable so that the
4570 ;; 'reset-gzip-timestamps' phase can do its work.
4571 (let ((out (assoc-ref outputs "out")))
4572 (for-each make-file-writable
4573 (find-files out "\\.gz$"))
4574 #t))))))
4575 (native-inputs
4576 `(("python-cython" ,python-cython)
4577 ("python-pytest" ,python-pytest)
4578 ("python-pytest-runner" ,python-pytest-runner)))
4579 (inputs
4580 `(("zlib" ,zlib)
4581 ("bzip2" ,bzip2)
4582 ("seqan" ,seqan-1)
4583 ("python-screed" ,python-screed)
4584 ("python-bz2file" ,python-bz2file)))
4585 (home-page "https://khmer.readthedocs.org/")
4586 (synopsis "K-mer counting, filtering and graph traversal library")
4587 (description "The khmer software is a set of command-line tools for
4588 working with DNA shotgun sequencing data from genomes, transcriptomes,
4589 metagenomes and single cells. Khmer can make de novo assemblies faster, and
4590 sometimes better. Khmer can also identify and fix problems with shotgun
4591 data.")
4592 ;; When building on i686, armhf and mips64el, we get the following error:
4593 ;; error: ['khmer', 'khmer.tests', 'oxli'] require 64-bit operating system
4594 (supported-systems '("x86_64-linux" "aarch64-linux"))
4595 (license license:bsd-3)))
4596
4597 (define-public kaiju
4598 (package
4599 (name "kaiju")
4600 (version "1.6.3")
4601 (source (origin
4602 (method git-fetch)
4603 (uri (git-reference
4604 (url "https://github.com/bioinformatics-centre/kaiju")
4605 (commit (string-append "v" version))))
4606 (file-name (git-file-name name version))
4607 (sha256
4608 (base32
4609 "119pzi0ddzv9mjg4wwa6han0cwr3k3ssn7kirvsjfcq05mi5ka0x"))))
4610 (build-system gnu-build-system)
4611 (arguments
4612 `(#:tests? #f ; There are no tests.
4613 #:phases
4614 (modify-phases %standard-phases
4615 (delete 'configure)
4616 (add-before 'build 'move-to-src-dir
4617 (lambda _ (chdir "src") #t))
4618 (replace 'install
4619 (lambda* (#:key inputs outputs #:allow-other-keys)
4620 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
4621 (mkdir-p bin)
4622 (chdir "..")
4623 (copy-recursively "bin" bin))
4624 #t)))))
4625 (inputs
4626 `(("perl" ,perl)
4627 ("zlib" ,zlib)))
4628 (home-page "http://kaiju.binf.ku.dk/")
4629 (synopsis "Fast and sensitive taxonomic classification for metagenomics")
4630 (description "Kaiju is a program for sensitive taxonomic classification
4631 of high-throughput sequencing reads from metagenomic whole genome sequencing
4632 experiments.")
4633 (license license:gpl3+)))
4634
4635 (define-public macs
4636 (package
4637 (name "macs")
4638 (version "2.2.6")
4639 (source (origin
4640 ;; The PyPi tarball does not contain tests.
4641 (method git-fetch)
4642 (uri (git-reference
4643 (url "https://github.com/macs3-project/MACS")
4644 (commit (string-append "v" version))))
4645 (file-name (git-file-name name version))
4646 (sha256
4647 (base32
4648 "1c5gxr0mk6hkd4vclf0k00wvyvzw2vrmk52c85338p7aqjwg6n15"))
4649 (modules '((guix build utils)))
4650 ;; Remove files generated by Cython
4651 (snippet
4652 '(begin
4653 (for-each (lambda (file)
4654 (let ((generated-file
4655 (string-append (string-drop-right file 3) "c")))
4656 (when (file-exists? generated-file)
4657 (delete-file generated-file))))
4658 (find-files "." "\\.pyx$"))
4659 (delete-file "MACS2/IO/CallPeakUnitPrecompiled.c")
4660 #t))))
4661 (build-system python-build-system)
4662 (arguments
4663 `(#:phases
4664 (modify-phases %standard-phases
4665 (replace 'check
4666 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
4667 (when tests?
4668 (add-installed-pythonpath inputs outputs)
4669 (invoke "pytest" "-v"))
4670 #t)))))
4671 (inputs
4672 `(("python-numpy" ,python-numpy)))
4673 (native-inputs
4674 `(("python-cython" ,python-cython)
4675 ("python-pytest" ,python-pytest)))
4676 (home-page "https://github.com/macs3-project/MACS")
4677 (synopsis "Model based analysis for ChIP-Seq data")
4678 (description
4679 "MACS is an implementation of a ChIP-Seq analysis algorithm for
4680 identifying transcript factor binding sites named Model-based Analysis of
4681 ChIP-Seq (MACS). MACS captures the influence of genome complexity to evaluate
4682 the significance of enriched ChIP regions and it improves the spatial
4683 resolution of binding sites through combining the information of both
4684 sequencing tag position and orientation.")
4685 (license license:bsd-3)))
4686
4687 (define-public mafft
4688 (package
4689 (name "mafft")
4690 (version "7.471")
4691 (source (origin
4692 (method url-fetch)
4693 (uri (string-append
4694 "https://mafft.cbrc.jp/alignment/software/mafft-" version
4695 "-without-extensions-src.tgz"))
4696 (file-name (string-append name "-" version ".tgz"))
4697 (sha256
4698 (base32
4699 "0r1973fx2scq4712zdqfy67wkzqj0c0bhrdy4jxhvq40mdxyry30"))))
4700 (build-system gnu-build-system)
4701 (arguments
4702 `(#:tests? #f ; no automated tests, though there are tests in the read me
4703 #:make-flags (let ((out (assoc-ref %outputs "out")))
4704 (list (string-append "PREFIX=" out)
4705 (string-append "BINDIR="
4706 (string-append out "/bin"))))
4707 #:phases
4708 (modify-phases %standard-phases
4709 (add-after 'unpack 'enter-dir
4710 (lambda _ (chdir "core") #t))
4711 (add-after 'enter-dir 'patch-makefile
4712 (lambda _
4713 ;; on advice from the MAFFT authors, there is no need to
4714 ;; distribute mafft-profile, mafft-distance, or
4715 ;; mafft-homologs.rb as they are too "specialised".
4716 (substitute* "Makefile"
4717 ;; remove mafft-homologs.rb from SCRIPTS
4718 (("^SCRIPTS = mafft mafft-homologs.rb")
4719 "SCRIPTS = mafft")
4720 ;; remove mafft-homologs from MANPAGES
4721 (("^MANPAGES = mafft.1 mafft-homologs.1")
4722 "MANPAGES = mafft.1")
4723 ;; remove mafft-distance from PROGS
4724 (("^PROGS = dvtditr dndfast7 dndblast sextet5 mafft-distance")
4725 "PROGS = dvtditr dndfast7 dndblast sextet5")
4726 ;; remove mafft-profile from PROGS
4727 (("splittbfast disttbfast tbfast mafft-profile 2cl mccaskillwrap")
4728 "splittbfast disttbfast tbfast f2cl mccaskillwrap")
4729 (("^rm -f mafft-profile mafft-profile.exe") "#")
4730 (("^rm -f mafft-distance mafft-distance.exe") ")#")
4731 ;; do not install MAN pages in libexec folder
4732 (("^\t\\$\\(INSTALL\\) -m 644 \\$\\(MANPAGES\\) \
4733 \\$\\(DESTDIR\\)\\$\\(LIBDIR\\)") "#"))
4734 #t))
4735 (add-after 'enter-dir 'patch-paths
4736 (lambda* (#:key inputs #:allow-other-keys)
4737 (substitute* '("pairash.c"
4738 "mafft.tmpl")
4739 (("perl") (which "perl"))
4740 (("([\"`| ])awk" _ prefix)
4741 (string-append prefix (which "awk")))
4742 (("grep") (which "grep")))
4743 #t))
4744 (delete 'configure)
4745 (add-after 'install 'wrap-programs
4746 (lambda* (#:key outputs #:allow-other-keys)
4747 (let* ((out (assoc-ref outputs "out"))
4748 (bin (string-append out "/bin"))
4749 (path (string-append
4750 (assoc-ref %build-inputs "coreutils") "/bin:")))
4751 (for-each (lambda (file)
4752 (wrap-program file
4753 `("PATH" ":" prefix (,path))))
4754 (find-files bin)))
4755 #t)))))
4756 (inputs
4757 `(("perl" ,perl)
4758 ("ruby" ,ruby)
4759 ("gawk" ,gawk)
4760 ("grep" ,grep)
4761 ("coreutils" ,coreutils)))
4762 (home-page "https://mafft.cbrc.jp/alignment/software/")
4763 (synopsis "Multiple sequence alignment program")
4764 (description
4765 "MAFFT offers a range of multiple alignment methods for nucleotide and
4766 protein sequences. For instance, it offers L-INS-i (accurate; for alignment
4767 of <~200 sequences) and FFT-NS-2 (fast; for alignment of <~30,000
4768 sequences).")
4769 (license (license:non-copyleft
4770 "https://mafft.cbrc.jp/alignment/software/license.txt"
4771 "BSD-3 with different formatting"))))
4772
4773 (define-public mash
4774 (package
4775 (name "mash")
4776 (version "2.1")
4777 (source (origin
4778 (method git-fetch)
4779 (uri (git-reference
4780 (url "https://github.com/marbl/mash")
4781 (commit (string-append "v" version))))
4782 (file-name (git-file-name name version))
4783 (sha256
4784 (base32
4785 "049hwcc059p2fd9vwndn63laifvvsi0wmv84i6y1fr79k15dxwy6"))
4786 (modules '((guix build utils)))
4787 (snippet
4788 '(begin
4789 ;; Delete bundled kseq.
4790 ;; TODO: Also delete bundled murmurhash and open bloom filter.
4791 (delete-file "src/mash/kseq.h")
4792 #t))))
4793 (build-system gnu-build-system)
4794 (arguments
4795 `(#:tests? #f ; No tests.
4796 #:configure-flags
4797 (list
4798 (string-append "--with-capnp=" (assoc-ref %build-inputs "capnproto"))
4799 (string-append "--with-gsl=" (assoc-ref %build-inputs "gsl")))
4800 #:make-flags (list "CC=gcc")
4801 #:phases
4802 (modify-phases %standard-phases
4803 (add-after 'unpack 'fix-includes
4804 (lambda _
4805 (substitute* '("src/mash/Sketch.cpp"
4806 "src/mash/CommandFind.cpp"
4807 "src/mash/CommandScreen.cpp")
4808 (("^#include \"kseq\\.h\"")
4809 "#include \"htslib/kseq.h\""))
4810 #t))
4811 (add-after 'fix-includes 'use-c++14
4812 (lambda _
4813 ;; capnproto 0.7 requires c++14 to build
4814 (substitute* "configure.ac"
4815 (("c\\+\\+11") "c++14"))
4816 (substitute* "Makefile.in"
4817 (("c\\+\\+11") "c++14"))
4818 #t)))))
4819 (native-inputs
4820 `(("autoconf" ,autoconf)
4821 ;; Capnproto and htslib are statically embedded in the final
4822 ;; application. Therefore we also list their licenses, below.
4823 ("capnproto" ,capnproto)
4824 ("htslib" ,htslib)))
4825 (inputs
4826 `(("gsl" ,gsl)
4827 ("zlib" ,zlib)))
4828 (supported-systems '("x86_64-linux"))
4829 (home-page "https://mash.readthedocs.io")
4830 (synopsis "Fast genome and metagenome distance estimation using MinHash")
4831 (description "Mash is a fast sequence distance estimator that uses the
4832 MinHash algorithm and is designed to work with genomes and metagenomes in the
4833 form of assemblies or reads.")
4834 (license (list license:bsd-3 ; Mash
4835 license:expat ; HTSlib and capnproto
4836 license:public-domain ; MurmurHash 3
4837 license:cpl1.0)))) ; Open Bloom Filter
4838
4839 (define-public metabat
4840 (package
4841 (name "metabat")
4842 (version "2.12.1")
4843 (source
4844 (origin
4845 (method git-fetch)
4846 (uri (git-reference
4847 (url "https://bitbucket.org/berkeleylab/metabat.git")
4848 (commit (string-append "v" version))))
4849 (file-name (git-file-name name version))
4850 (sha256
4851 (base32
4852 "0hyg2smw1nz69mfvjpk45xyyychmda92c80a0cv7baji84ri4iyn"))
4853 (patches (search-patches "metabat-fix-compilation.patch"))))
4854 (build-system scons-build-system)
4855 (arguments
4856 `(#:scons ,scons-python2
4857 #:scons-flags
4858 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
4859 (string-append "BOOST_ROOT=" (assoc-ref %build-inputs "boost")))
4860 #:tests? #f ;; Tests are run during the build phase.
4861 #:phases
4862 (modify-phases %standard-phases
4863 (add-after 'unpack 'fix-includes
4864 (lambda _
4865 (substitute* "src/BamUtils.h"
4866 (("^#include \"bam/bam\\.h\"")
4867 "#include \"samtools/bam.h\"")
4868 (("^#include \"bam/sam\\.h\"")
4869 "#include \"samtools/sam.h\""))
4870 (substitute* "src/KseqReader.h"
4871 (("^#include \"bam/kseq\\.h\"")
4872 "#include \"htslib/kseq.h\""))
4873 #t))
4874 (add-after 'unpack 'fix-scons
4875 (lambda* (#:key inputs #:allow-other-keys)
4876 (substitute* "SConstruct"
4877 (("^htslib_dir += 'samtools'")
4878 (string-append "htslib_dir = '"
4879 (assoc-ref inputs "htslib")
4880 "'"))
4881 (("^samtools_dir = 'samtools'")
4882 (string-append "samtools_dir = '"
4883 (assoc-ref inputs "samtools")
4884 "'"))
4885 (("^findStaticOrShared\\('bam', hts_lib")
4886 (string-append "findStaticOrShared('bam', '"
4887 (assoc-ref inputs "samtools")
4888 "/lib'"))
4889 ;; Do not distribute README.
4890 (("^env\\.Install\\(idir_prefix, 'README\\.md'\\)") ""))
4891 #t)))))
4892 (inputs
4893 `(("zlib" ,zlib)
4894 ("perl" ,perl)
4895 ("samtools" ,samtools)
4896 ("htslib" ,htslib)
4897 ("boost" ,boost)))
4898 (home-page "https://bitbucket.org/berkeleylab/metabat")
4899 (synopsis
4900 "Reconstruction of single genomes from complex microbial communities")
4901 (description
4902 "Grouping large genomic fragments assembled from shotgun metagenomic
4903 sequences to deconvolute complex microbial communities, or metagenome binning,
4904 enables the study of individual organisms and their interactions. MetaBAT is
4905 an automated metagenome binning software, which integrates empirical
4906 probabilistic distances of genome abundance and tetranucleotide frequency.")
4907 ;; The source code contains inline assembly.
4908 (supported-systems '("x86_64-linux" "i686-linux"))
4909 (license (license:non-copyleft "file://license.txt"
4910 "See license.txt in the distribution."))))
4911
4912 (define-public minced
4913 (package
4914 (name "minced")
4915 (version "0.3.2")
4916 (source (origin
4917 (method git-fetch)
4918 (uri (git-reference
4919 (url "https://github.com/ctSkennerton/minced")
4920 (commit version)))
4921 (file-name (git-file-name name version))
4922 (sha256
4923 (base32
4924 "1f5h9him0gd355cnx7p6pnxpknhckd4g0v62mg8zyhfbx9as25fv"))))
4925 (build-system gnu-build-system)
4926 (arguments
4927 `(#:test-target "test"
4928 #:phases
4929 (modify-phases %standard-phases
4930 (delete 'configure)
4931 (add-before 'check 'fix-test
4932 (lambda _
4933 ;; Fix test for latest version.
4934 (substitute* "t/Aquifex_aeolicus_VF5.expected"
4935 (("minced:0.1.6") "minced:0.2.0"))
4936 #t))
4937 (replace 'install ; No install target.
4938 (lambda* (#:key inputs outputs #:allow-other-keys)
4939 (let* ((out (assoc-ref outputs "out"))
4940 (bin (string-append out "/bin"))
4941 (wrapper (string-append bin "/minced")))
4942 ;; Minced comes with a wrapper script that tries to figure out where
4943 ;; it is located before running the JAR. Since these paths are known
4944 ;; to us, we build our own wrapper to avoid coreutils dependency.
4945 (install-file "minced.jar" bin)
4946 (with-output-to-file wrapper
4947 (lambda _
4948 (display
4949 (string-append
4950 "#!" (assoc-ref inputs "bash") "/bin/sh\n\n"
4951 (assoc-ref inputs "jre") "/bin/java -jar "
4952 bin "/minced.jar \"$@\"\n"))))
4953 (chmod wrapper #o555))
4954 #t)))))
4955 (native-inputs
4956 `(("jdk" ,icedtea "jdk")))
4957 (inputs
4958 `(("bash" ,bash)
4959 ("jre" ,icedtea "out")))
4960 (home-page "https://github.com/ctSkennerton/minced")
4961 (synopsis "Mining CRISPRs in Environmental Datasets")
4962 (description
4963 "MinCED is a program to find Clustered Regularly Interspaced Short
4964 Palindromic Repeats (CRISPRs) in DNA sequences. It can be used for
4965 unassembled metagenomic reads, but is mainly designed for full genomes and
4966 assembled metagenomic sequence.")
4967 (license license:gpl3+)))
4968
4969 (define-public miso
4970 (package
4971 (name "miso")
4972 (version "0.5.4")
4973 (source (origin
4974 (method url-fetch)
4975 (uri (pypi-uri "misopy" version))
4976 (sha256
4977 (base32
4978 "1z3x0vd8ma7pdrnywj7i3kgwl89sdkwrrn62zl7r5calqaq2hyip"))
4979 (modules '((guix build utils)))
4980 (snippet '(begin
4981 (substitute* "setup.py"
4982 ;; Use setuptools, or else the executables are not
4983 ;; installed.
4984 (("distutils.core") "setuptools")
4985 ;; Use "gcc" instead of "cc" for compilation.
4986 (("^defines")
4987 "cc.set_executables(
4988 compiler='gcc',
4989 compiler_so='gcc',
4990 linker_exe='gcc',
4991 linker_so='gcc -shared'); defines"))
4992 #t))))
4993 (build-system python-build-system)
4994 (arguments
4995 `(#:python ,python-2 ; only Python 2 is supported
4996 #:tests? #f)) ; no "test" target
4997 (inputs
4998 `(("samtools" ,samtools)
4999 ("python-numpy" ,python2-numpy)
5000 ("python-pysam" ,python2-pysam)
5001 ("python-scipy" ,python2-scipy)
5002 ("python-matplotlib" ,python2-matplotlib)))
5003 (native-inputs
5004 `(("python-mock" ,python2-mock) ; for tests
5005 ("python-pytz" ,python2-pytz))) ; for tests
5006 (home-page "https://www.genes.mit.edu/burgelab/miso/index.html")
5007 (synopsis "Mixture of Isoforms model for RNA-Seq isoform quantitation")
5008 (description
5009 "MISO (Mixture-of-Isoforms) is a probabilistic framework that quantitates
5010 the expression level of alternatively spliced genes from RNA-Seq data, and
5011 identifies differentially regulated isoforms or exons across samples. By
5012 modeling the generative process by which reads are produced from isoforms in
5013 RNA-Seq, the MISO model uses Bayesian inference to compute the probability
5014 that a read originated from a particular isoform.")
5015 (license license:gpl2)))
5016
5017 (define-public muscle
5018 (package
5019 (name "muscle")
5020 (version "3.8.1551")
5021 (source (origin
5022 (method url-fetch/tarbomb)
5023 (uri (string-append
5024 "http://www.drive5.com/muscle/muscle_src_"
5025 version ".tar.gz"))
5026 (sha256
5027 (base32
5028 "0bj8kj7sdizy3987zx6w7axihk40fk8rn76mpbqqjcnd64i5a367"))))
5029 (build-system gnu-build-system)
5030 (arguments
5031 `(#:make-flags (list "LDLIBS = -lm")
5032 #:phases
5033 (modify-phases %standard-phases
5034 (delete 'configure)
5035 (replace 'check
5036 ;; There are no tests, so just test if it runs.
5037 (lambda _ (invoke "./muscle" "-version") #t))
5038 (replace 'install
5039 (lambda* (#:key outputs #:allow-other-keys)
5040 (let* ((out (assoc-ref outputs "out"))
5041 (bin (string-append out "/bin")))
5042 (install-file "muscle" bin)
5043 #t))))))
5044 (home-page "http://www.drive5.com/muscle")
5045 (synopsis "Multiple sequence alignment program")
5046 (description
5047 "MUSCLE aims to be a fast and accurate multiple sequence alignment
5048 program for nucleotide and protein sequences.")
5049 ;; License information found in 'muscle -h' and usage.cpp.
5050 (license license:public-domain)))
5051
5052 (define-public newick-utils
5053 ;; There are no recent releases so we package from git.
5054 (let ((commit "da121155a977197cab9fbb15953ca1b40b11eb87"))
5055 (package
5056 (name "newick-utils")
5057 (version (string-append "1.6-1." (string-take commit 8)))
5058 (source (origin
5059 (method git-fetch)
5060 (uri (git-reference
5061 (url "https://github.com/tjunier/newick_utils")
5062 (commit commit)))
5063 (file-name (string-append name "-" version "-checkout"))
5064 (sha256
5065 (base32
5066 "1hkw21rq1mwf7xp0rmbb2gqc0i6p11108m69i7mr7xcjl268pxnb"))))
5067 (build-system gnu-build-system)
5068 (inputs
5069 ;; XXX: TODO: Enable Lua and Guile bindings.
5070 ;; https://github.com/tjunier/newick_utils/issues/13
5071 `(("libxml2" ,libxml2)
5072 ("flex" ,flex)
5073 ("bison" ,bison)))
5074 (native-inputs
5075 `(("autoconf" ,autoconf)
5076 ("automake" ,automake)
5077 ("libtool" ,libtool)))
5078 (synopsis "Programs for working with newick format phylogenetic trees")
5079 (description
5080 "Newick-utils is a suite of utilities for processing phylogenetic trees
5081 in Newick format. Functions include re-rooting, extracting subtrees,
5082 trimming, pruning, condensing, drawing (ASCII graphics or SVG).")
5083 (home-page "https://github.com/tjunier/newick_utils")
5084 (license license:bsd-3))))
5085
5086 (define-public orfm
5087 (package
5088 (name "orfm")
5089 (version "0.7.1")
5090 (source (origin
5091 (method url-fetch)
5092 (uri (string-append
5093 "https://github.com/wwood/OrfM/releases/download/v"
5094 version "/orfm-" version ".tar.gz"))
5095 (sha256
5096 (base32
5097 "16iigyr2gd8x0imzkk1dr3k5xsds9bpmwg31ayvjg0f4pir9rwqr"))))
5098 (build-system gnu-build-system)
5099 (inputs `(("zlib" ,zlib)))
5100 (native-inputs
5101 `(("ruby-bio-commandeer" ,ruby-bio-commandeer)
5102 ("ruby-rspec" ,ruby-rspec)
5103 ("ruby" ,ruby)))
5104 (synopsis "Simple and not slow open reading frame (ORF) caller")
5105 (description
5106 "An ORF caller finds stretches of DNA that, when translated, are not
5107 interrupted by stop codons. OrfM finds and prints these ORFs.")
5108 (home-page "https://github.com/wwood/OrfM")
5109 (license license:lgpl3+)))
5110
5111 (define-public python2-pbcore
5112 (package
5113 (name "python2-pbcore")
5114 (version "1.2.10")
5115 (source (origin
5116 (method url-fetch)
5117 (uri (pypi-uri "pbcore" version))
5118 (sha256
5119 (base32
5120 "1kjmv891d6qbpp4shhhvkl02ff4q5xlpnls2513sm2cjcrs52f1i"))))
5121 (build-system python-build-system)
5122 (arguments
5123 `(#:python ,python-2 ;pbcore < 2.0 requires Python 2.7
5124 #:phases (modify-phases %standard-phases
5125 (add-after 'unpack 'remove-sphinx-dependency
5126 (lambda _
5127 ;; Sphinx is only required for documentation tests, which
5128 ;; we do not run; furthermore it depends on python2-sphinx
5129 ;; which is no longer maintained.
5130 (substitute* "requirements-dev.txt"
5131 (("^sphinx") ""))
5132 #t)))))
5133 (propagated-inputs
5134 `(("python-cython" ,python2-cython)
5135 ("python-numpy" ,python2-numpy)
5136 ("python-pysam" ,python2-pysam)
5137 ("python-h5py" ,python2-h5py)))
5138 (native-inputs
5139 `(("python-nose" ,python2-nose)
5140 ("python-pyxb" ,python2-pyxb)))
5141 (home-page "https://pacificbiosciences.github.io/pbcore/")
5142 (synopsis "Library for reading and writing PacBio data files")
5143 (description
5144 "The pbcore package provides Python APIs for interacting with PacBio data
5145 files and writing bioinformatics applications.")
5146 (license license:bsd-3)))
5147
5148 (define-public python2-warpedlmm
5149 (package
5150 (name "python2-warpedlmm")
5151 (version "0.21")
5152 (source
5153 (origin
5154 (method url-fetch)
5155 (uri (pypi-uri "WarpedLMM" version ".zip"))
5156 (sha256
5157 (base32
5158 "1agfz6zqa8nc6cw47yh0s3y14gkpa9wqazwcj7mwwj3ffnw39p3j"))))
5159 (build-system python-build-system)
5160 (arguments
5161 `(#:python ,python-2 ; requires Python 2.7
5162 #:tests? #f ; test data are not included
5163 #:phases
5164 (modify-phases %standard-phases
5165 (add-after 'unpack 'use-weave
5166 (lambda _
5167 (substitute* "warpedlmm/util/linalg.py"
5168 (("from scipy import linalg, weave")
5169 "from scipy import linalg\nimport weave"))
5170 #t)))))
5171 (propagated-inputs
5172 `(("python-scipy" ,python2-scipy)
5173 ("python-numpy" ,python2-numpy)
5174 ("python-matplotlib" ,python2-matplotlib)
5175 ("python-fastlmm" ,python2-fastlmm)
5176 ("python-pandas" ,python2-pandas)
5177 ("python-pysnptools" ,python2-pysnptools)
5178 ("python-weave" ,python2-weave)))
5179 (native-inputs
5180 `(("python-mock" ,python2-mock)
5181 ("python-nose" ,python2-nose)
5182 ("unzip" ,unzip)))
5183 (home-page "https://github.com/PMBio/warpedLMM")
5184 (synopsis "Implementation of warped linear mixed models")
5185 (description
5186 "WarpedLMM is a Python implementation of the warped linear mixed model,
5187 which automatically learns an optimal warping function (or transformation) for
5188 the phenotype as it models the data.")
5189 (license license:asl2.0)))
5190
5191 (define-public pbtranscript-tofu
5192 (let ((commit "8f5467fe6a4472bcfb4226c8720993c8507adfe4"))
5193 (package
5194 (name "pbtranscript-tofu")
5195 (version (string-append "2.2.3." (string-take commit 7)))
5196 (source (origin
5197 (method git-fetch)
5198 (uri (git-reference
5199 (url "https://github.com/PacificBiosciences/cDNA_primer")
5200 (commit commit)))
5201 (file-name (string-append name "-" version "-checkout"))
5202 (sha256
5203 (base32
5204 "1lgnpi35ihay42qx0b6yl3kkgra723i413j33kvs0kvs61h82w0f"))
5205 (modules '((guix build utils)))
5206 (snippet
5207 '(begin
5208 ;; remove bundled Cython sources
5209 (delete-file "pbtranscript-tofu/pbtranscript/Cython-0.20.1.tar.gz")
5210 #t))))
5211 (build-system python-build-system)
5212 (arguments
5213 `(#:python ,python-2
5214 ;; FIXME: Tests fail with "No such file or directory:
5215 ;; pbtools/pbtranscript/modified_bx_intervals/intersection_unique.so"
5216 #:tests? #f
5217 #:phases
5218 (modify-phases %standard-phases
5219 (add-after 'unpack 'enter-directory
5220 (lambda _
5221 (chdir "pbtranscript-tofu/pbtranscript/")
5222 #t))
5223 ;; With setuptools version 18.0 and later this setup.py hack causes
5224 ;; a build error, so we disable it.
5225 (add-after 'enter-directory 'patch-setuppy
5226 (lambda _
5227 (substitute* "setup.py"
5228 (("if 'setuptools.extension' in sys.modules:")
5229 "if False:"))
5230 #t)))))
5231 (inputs
5232 `(("python-numpy" ,python2-numpy)
5233 ("python-bx-python" ,python2-bx-python)
5234 ("python-networkx" ,python2-networkx)
5235 ("python-scipy" ,python2-scipy)
5236 ("python-pbcore" ,python2-pbcore)
5237 ("python-h5py" ,python2-h5py)))
5238 (native-inputs
5239 `(("python-cython" ,python2-cython)
5240 ("python-nose" ,python2-nose)))
5241 (home-page "https://github.com/PacificBiosciences/cDNA_primer")
5242 (synopsis "Analyze transcriptome data generated with the Iso-Seq protocol")
5243 (description
5244 "pbtranscript-tofu contains scripts to analyze transcriptome data
5245 generated using the PacBio Iso-Seq protocol.")
5246 (license license:bsd-3))))
5247
5248 (define-public prank
5249 (package
5250 (name "prank")
5251 (version "170427")
5252 (source (origin
5253 (method url-fetch)
5254 (uri (string-append
5255 "http://wasabiapp.org/download/prank/prank.source."
5256 version ".tgz"))
5257 (sha256
5258 (base32
5259 "0nc8g9c5rkdxcir46s0in9ci1sxwzbjibxrvkksf22ybnplvagk2"))))
5260 (build-system gnu-build-system)
5261 (arguments
5262 `(#:phases
5263 (modify-phases %standard-phases
5264 (add-after 'unpack 'enter-src-dir
5265 (lambda _
5266 (chdir "src")
5267 #t))
5268 (add-after 'unpack 'remove-m64-flag
5269 ;; Prank will build with the correct 'bit-ness' without this flag
5270 ;; and this allows building on 32-bit machines.
5271 (lambda _ (substitute* "src/Makefile"
5272 (("-m64") ""))
5273 #t))
5274 (delete 'configure)
5275 (replace 'install
5276 (lambda* (#:key outputs #:allow-other-keys)
5277 (let* ((out (assoc-ref outputs "out"))
5278 (bin (string-append out "/bin"))
5279 (man (string-append out "/share/man/man1"))
5280 (path (string-append
5281 (assoc-ref %build-inputs "mafft") "/bin:"
5282 (assoc-ref %build-inputs "exonerate") "/bin:"
5283 (assoc-ref %build-inputs "bppsuite") "/bin")))
5284 (install-file "prank" bin)
5285 (wrap-program (string-append bin "/prank")
5286 `("PATH" ":" prefix (,path)))
5287 (install-file "prank.1" man))
5288 #t)))))
5289 (inputs
5290 `(("mafft" ,mafft)
5291 ("exonerate" ,exonerate)
5292 ("bppsuite" ,bppsuite)))
5293 (home-page "http://wasabiapp.org/software/prank/")
5294 (synopsis "Probabilistic multiple sequence alignment program")
5295 (description
5296 "PRANK is a probabilistic multiple sequence alignment program for DNA,
5297 codon and amino-acid sequences. It is based on a novel algorithm that treats
5298 insertions correctly and avoids over-estimation of the number of deletion
5299 events. In addition, PRANK borrows ideas from maximum likelihood methods used
5300 in phylogenetics and correctly takes into account the evolutionary distances
5301 between sequences. Lastly, PRANK allows for defining a potential structure
5302 for sequences to be aligned and then, simultaneously with the alignment,
5303 predicts the locations of structural units in the sequences.")
5304 (license license:gpl2+)))
5305
5306 (define-public proteinortho
5307 (package
5308 (name "proteinortho")
5309 (version "6.0.14")
5310 (source (origin
5311 (method git-fetch)
5312 (uri (git-reference
5313 (url "https://gitlab.com/paulklemm_PHD/proteinortho.git")
5314 (commit (string-append "v" version))))
5315 (file-name (git-file-name name version))
5316 (sha256
5317 (base32
5318 "0pmy617zy2z2w6hjqxjhf3rzikf5n3mpia80ysq8233vfr7wrzff"))
5319 (modules '((guix build utils)))
5320 (snippet
5321 '(begin
5322 ;; remove pre-built scripts
5323 (delete-file-recursively "src/BUILD/")
5324 #t))))
5325 (build-system gnu-build-system)
5326 (arguments
5327 `(#:test-target "test"
5328 #:make-flags '("CC=gcc")
5329 #:phases
5330 (modify-phases %standard-phases
5331 (replace 'configure
5332 ;; There is no configure script, so we modify the Makefile directly.
5333 (lambda* (#:key outputs #:allow-other-keys)
5334 (substitute* "Makefile"
5335 (("INSTALLDIR=.*")
5336 (string-append
5337 "INSTALLDIR=" (assoc-ref outputs "out") "/bin\n")))
5338 #t))
5339 (add-before 'install 'make-install-directory
5340 ;; The install directory is not created during 'make install'.
5341 (lambda* (#:key outputs #:allow-other-keys)
5342 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
5343 #t))
5344 (add-after 'install 'wrap-programs
5345 (lambda* (#:key inputs outputs #:allow-other-keys)
5346 (let ((path (getenv "PATH"))
5347 (out (assoc-ref outputs "out")))
5348 (for-each (lambda (script)
5349 (wrap-script script `("PATH" ":" prefix (,path))))
5350 (cons (string-append out "/bin/proteinortho")
5351 (find-files out "\\.(pl|py)$"))))
5352 #t)))))
5353 (inputs
5354 `(("guile" ,guile-3.0) ; for wrap-script
5355 ("diamond" ,diamond)
5356 ("perl" ,perl)
5357 ("python" ,python-wrapper)
5358 ("blast+" ,blast+)
5359 ("lapack" ,lapack)
5360 ("openblas" ,openblas)))
5361 (native-inputs
5362 `(("which" ,which)))
5363 (home-page "http://www.bioinf.uni-leipzig.de/Software/proteinortho")
5364 (synopsis "Detect orthologous genes across species")
5365 (description
5366 "Proteinortho is a tool to detect orthologous genes across different
5367 species. For doing so, it compares similarities of given gene sequences and
5368 clusters them to find significant groups. The algorithm was designed to handle
5369 large-scale data and can be applied to hundreds of species at once.")
5370 (license license:gpl3+)))
5371
5372 (define-public pyicoteo
5373 (package
5374 (name "pyicoteo")
5375 (version "2.0.7")
5376 (source
5377 (origin
5378 (method git-fetch)
5379 (uri (git-reference
5380 (url "https://bitbucket.org/regulatorygenomicsupf/pyicoteo.git")
5381 (commit (string-append "v" version))))
5382 (file-name (git-file-name name version))
5383 (sha256
5384 (base32
5385 "0hz5g8d25lbjy1wpscr490l0lmyvaix893hhax4fxnh1h9w34w8p"))))
5386 (build-system python-build-system)
5387 (arguments
5388 `(#:python ,python-2 ; does not work with Python 3
5389 #:tests? #f)) ; there are no tests
5390 (inputs
5391 `(("python2-matplotlib" ,python2-matplotlib)))
5392 (home-page "https://bitbucket.org/regulatorygenomicsupf/pyicoteo")
5393 (synopsis "Analyze high-throughput genetic sequencing data")
5394 (description
5395 "Pyicoteo is a suite of tools for the analysis of high-throughput genetic
5396 sequencing data. It works with genomic coordinates. There are currently six
5397 different command-line tools:
5398
5399 @enumerate
5400 @item pyicoregion: for generating exploratory regions automatically;
5401 @item pyicoenrich: for differential enrichment between two conditions;
5402 @item pyicoclip: for calling CLIP-Seq peaks without a control;
5403 @item pyicos: for genomic coordinates manipulation;
5404 @item pyicoller: for peak calling on punctuated ChIP-Seq;
5405 @item pyicount: to count how many reads from N experiment files overlap in a
5406 region file;
5407 @item pyicotrocol: to combine operations from pyicoteo.
5408 @end enumerate\n")
5409 (license license:gpl3+)))
5410
5411 (define-public prodigal
5412 (package
5413 (name "prodigal")
5414 ;; Check for a new home page when updating this package:
5415 ;; https://github.com/hyattpd/Prodigal/issues/36#issuecomment-536617588
5416 (version "2.6.3")
5417 (source (origin
5418 (method git-fetch)
5419 (uri (git-reference
5420 (url "https://github.com/hyattpd/Prodigal")
5421 (commit (string-append "v" version))))
5422 (file-name (git-file-name name version))
5423 (sha256
5424 (base32
5425 "1fs1hqk83qjbjhrvhw6ni75zakx5ki1ayy3v6wwkn3xvahc9hi5s"))))
5426 (build-system gnu-build-system)
5427 (arguments
5428 `(#:tests? #f ; no check target
5429 #:make-flags (list (string-append "INSTALLDIR="
5430 (assoc-ref %outputs "out")
5431 "/bin"))
5432 #:phases
5433 (modify-phases %standard-phases
5434 (delete 'configure))))
5435 (home-page "https://github.com/hyattpd/Prodigal")
5436 (synopsis "Protein-coding gene prediction for Archaea and Bacteria")
5437 (description
5438 "Prodigal runs smoothly on finished genomes, draft genomes, and
5439 metagenomes, providing gene predictions in GFF3, Genbank, or Sequin table
5440 format. It runs quickly, in an unsupervised fashion, handles gaps, handles
5441 partial genes, and identifies translation initiation sites.")
5442 (license license:gpl3+)))
5443
5444 (define-public roary
5445 (package
5446 (name "roary")
5447 (version "3.12.0")
5448 (source
5449 (origin
5450 (method url-fetch)
5451 (uri (string-append
5452 "mirror://cpan/authors/id/A/AJ/AJPAGE/Bio-Roary-"
5453 version ".tar.gz"))
5454 (sha256
5455 (base32
5456 "0qxrds9wx7cfhlkihrp6697kx0flhhxymap9fwan0b3rbdhcnmff"))))
5457 (build-system perl-build-system)
5458 (arguments
5459 `(#:phases
5460 (modify-phases %standard-phases
5461 (delete 'configure)
5462 (delete 'build)
5463 (replace 'check
5464 (lambda _
5465 ;; The tests are not run by default, so we run each test file
5466 ;; directly.
5467 (setenv "PATH" (string-append (getcwd) "/bin" ":"
5468 (getenv "PATH")))
5469 (setenv "PERL5LIB" (string-append (getcwd) "/lib" ":"
5470 (getenv "PERL5LIB")))
5471 (for-each (lambda (file)
5472 (display file)(display "\n")
5473 (invoke "perl" file))
5474 (find-files "t" ".*\\.t$"))
5475 #t))
5476 (replace 'install
5477 ;; There is no 'install' target in the Makefile.
5478 (lambda* (#:key outputs #:allow-other-keys)
5479 (let* ((out (assoc-ref outputs "out"))
5480 (bin (string-append out "/bin"))
5481 (perl (string-append out "/lib/perl5/site_perl"))
5482 (roary-plots "contrib/roary_plots"))
5483 (mkdir-p bin)
5484 (mkdir-p perl)
5485 (copy-recursively "bin" bin)
5486 (copy-recursively "lib" perl)
5487 #t)))
5488 (add-after 'install 'wrap-programs
5489 (lambda* (#:key inputs outputs #:allow-other-keys)
5490 (let* ((out (assoc-ref outputs "out"))
5491 (perl5lib (getenv "PERL5LIB"))
5492 (path (getenv "PATH")))
5493 (for-each (lambda (prog)
5494 (let ((binary (string-append out "/" prog)))
5495 (wrap-program binary
5496 `("PERL5LIB" ":" prefix
5497 (,(string-append perl5lib ":" out
5498 "/lib/perl5/site_perl"))))
5499 (wrap-program binary
5500 `("PATH" ":" prefix
5501 (,(string-append path ":" out "/bin"))))))
5502 (find-files "bin" ".*[^R]$"))
5503 (let ((file
5504 (string-append out "/bin/roary-create_pan_genome_plots.R"))
5505 (r-site-lib (getenv "R_LIBS_SITE"))
5506 (coreutils-path
5507 (string-append (assoc-ref inputs "coreutils") "/bin")))
5508 (wrap-program file
5509 `("R_LIBS_SITE" ":" prefix
5510 (,(string-append r-site-lib ":" out "/site-library/"))))
5511 (wrap-program file
5512 `("PATH" ":" prefix
5513 (,(string-append coreutils-path ":" out "/bin"))))))
5514 #t)))))
5515 (native-inputs
5516 `(("perl-env-path" ,perl-env-path)
5517 ("perl-test-files" ,perl-test-files)
5518 ("perl-test-most" ,perl-test-most)
5519 ("perl-test-output" ,perl-test-output)))
5520 (inputs
5521 `(("perl-array-utils" ,perl-array-utils)
5522 ("bioperl" ,bioperl-minimal)
5523 ("perl-digest-md5-file" ,perl-digest-md5-file)
5524 ("perl-exception-class" ,perl-exception-class)
5525 ("perl-file-find-rule" ,perl-file-find-rule)
5526 ("perl-file-grep" ,perl-file-grep)
5527 ("perl-file-slurper" ,perl-file-slurper)
5528 ("perl-file-which" ,perl-file-which)
5529 ("perl-graph" ,perl-graph)
5530 ("perl-graph-readwrite" ,perl-graph-readwrite)
5531 ("perl-log-log4perl" ,perl-log-log4perl)
5532 ("perl-moose" ,perl-moose)
5533 ("perl-perlio-utf8_strict" ,perl-perlio-utf8_strict)
5534 ("perl-text-csv" ,perl-text-csv)
5535 ("bedtools" ,bedtools)
5536 ("cd-hit" ,cd-hit)
5537 ("blast+" ,blast+)
5538 ("mcl" ,mcl)
5539 ("parallel" ,parallel)
5540 ("prank" ,prank)
5541 ("mafft" ,mafft)
5542 ("fasttree" ,fasttree)
5543 ("grep" ,grep)
5544 ("sed" ,sed)
5545 ("gawk" ,gawk)
5546 ("r-minimal" ,r-minimal)
5547 ("r-ggplot2" ,r-ggplot2)
5548 ("coreutils" ,coreutils)))
5549 (home-page "https://sanger-pathogens.github.io/Roary/")
5550 (synopsis "High speed stand-alone pan genome pipeline")
5551 (description
5552 "Roary is a high speed stand alone pan genome pipeline, which takes
5553 annotated assemblies in GFF3 format (produced by the Prokka program) and
5554 calculates the pan genome. Using a standard desktop PC, it can analyse
5555 datasets with thousands of samples, without compromising the quality of the
5556 results. 128 samples can be analysed in under 1 hour using 1 GB of RAM and a
5557 single processor. Roary is not intended for metagenomics or for comparing
5558 extremely diverse sets of genomes.")
5559 (license license:gpl3)))
5560
5561 (define-public raxml
5562 (package
5563 (name "raxml")
5564 (version "8.2.12")
5565 (source
5566 (origin
5567 (method git-fetch)
5568 (uri (git-reference
5569 (url "https://github.com/stamatak/standard-RAxML")
5570 (commit (string-append "v" version))))
5571 (file-name (git-file-name name version))
5572 (sha256
5573 (base32
5574 "1jqjzhch0rips0vp04prvb8vmc20c5pdmsqn8knadcf91yy859fh"))))
5575 (build-system gnu-build-system)
5576 (arguments
5577 `(#:tests? #f ; There are no tests.
5578 ;; Use 'standard' Makefile rather than SSE or AVX ones.
5579 #:make-flags (list "-f" "Makefile.HYBRID.gcc")
5580 #:phases
5581 (modify-phases %standard-phases
5582 (delete 'configure)
5583 (replace 'install
5584 (lambda* (#:key outputs #:allow-other-keys)
5585 (let* ((out (assoc-ref outputs "out"))
5586 (bin (string-append out "/bin"))
5587 (executable "raxmlHPC-HYBRID"))
5588 (install-file executable bin)
5589 (symlink (string-append bin "/" executable) "raxml"))
5590 #t)))))
5591 (inputs
5592 `(("openmpi" ,openmpi)))
5593 (home-page "https://cme.h-its.org/exelixis/web/software/raxml/index.html")
5594 (synopsis "Randomized Axelerated Maximum Likelihood phylogenetic trees")
5595 (description
5596 "RAxML is a tool for phylogenetic analysis and post-analysis of large
5597 phylogenies.")
5598 ;; The source includes x86 specific code
5599 (supported-systems '("x86_64-linux" "i686-linux"))
5600 (license license:gpl2+)))
5601
5602 (define-public rsem
5603 (package
5604 (name "rsem")
5605 (version "1.3.1")
5606 (source
5607 (origin
5608 (method git-fetch)
5609 (uri (git-reference
5610 (url "https://github.com/deweylab/RSEM")
5611 (commit (string-append "v" version))))
5612 (sha256
5613 (base32 "1jlq11d1p8qp64w75yj8cnbbd1a93viq10pzsbwal7vdn8fg13j1"))
5614 (file-name (git-file-name name version))
5615 (modules '((guix build utils)))
5616 (snippet
5617 '(begin
5618 ;; remove bundled copy of boost and samtools
5619 (delete-file-recursively "boost")
5620 (delete-file-recursively "samtools-1.3")
5621 #t))))
5622 (build-system gnu-build-system)
5623 (arguments
5624 `(#:tests? #f ;no "check" target
5625 #:make-flags
5626 (list (string-append "BOOST="
5627 (assoc-ref %build-inputs "boost")
5628 "/include/")
5629 (string-append "SAMHEADERS="
5630 (assoc-ref %build-inputs "htslib")
5631 "/include/htslib/sam.h")
5632 (string-append "SAMLIBS="
5633 (assoc-ref %build-inputs "htslib")
5634 "/lib/libhts.a"))
5635 #:phases
5636 (modify-phases %standard-phases
5637 ;; No "configure" script.
5638 ;; Do not build bundled samtools library.
5639 (replace 'configure
5640 (lambda _
5641 (substitute* "Makefile"
5642 (("^all : \\$\\(PROGRAMS\\).*") "all: $(PROGRAMS)\n")
5643 (("^\\$\\(SAMLIBS\\).*") ""))
5644 #t))
5645 (replace 'install
5646 (lambda* (#:key outputs #:allow-other-keys)
5647 (let* ((out (string-append (assoc-ref outputs "out")))
5648 (bin (string-append out "/bin/"))
5649 (perl (string-append out "/lib/perl5/site_perl")))
5650 (mkdir-p bin)
5651 (mkdir-p perl)
5652 (for-each (lambda (file)
5653 (install-file file bin))
5654 (find-files "." "rsem-.*"))
5655 (install-file "rsem_perl_utils.pm" perl))
5656 #t))
5657 (add-after 'install 'wrap-program
5658 (lambda* (#:key outputs #:allow-other-keys)
5659 (let ((out (assoc-ref outputs "out")))
5660 (for-each (lambda (prog)
5661 (wrap-program (string-append out "/bin/" prog)
5662 `("PERL5LIB" ":" prefix
5663 (,(string-append out "/lib/perl5/site_perl")))))
5664 '("rsem-calculate-expression"
5665 "rsem-control-fdr"
5666 "rsem-generate-data-matrix"
5667 "rsem-generate-ngvector"
5668 "rsem-plot-transcript-wiggles"
5669 "rsem-prepare-reference"
5670 "rsem-run-ebseq"
5671 "rsem-run-prsem-testing-procedure")))
5672 #t)))))
5673 (inputs
5674 `(("boost" ,boost)
5675 ("r-minimal" ,r-minimal)
5676 ("perl" ,perl)
5677 ("htslib" ,htslib-1.3)
5678 ("zlib" ,zlib)))
5679 (home-page "http://deweylab.biostat.wisc.edu/rsem/")
5680 (synopsis "Estimate gene expression levels from RNA-Seq data")
5681 (description
5682 "RSEM is a software package for estimating gene and isoform expression
5683 levels from RNA-Seq data. The RSEM package provides a user-friendly
5684 interface, supports threads for parallel computation of the EM algorithm,
5685 single-end and paired-end read data, quality scores, variable-length reads and
5686 RSPD estimation. In addition, it provides posterior mean and 95% credibility
5687 interval estimates for expression levels. For visualization, it can generate
5688 BAM and Wiggle files in both transcript-coordinate and genomic-coordinate.")
5689 (license license:gpl3+)))
5690
5691 (define-public rseqc
5692 (package
5693 (name "rseqc")
5694 (version "3.0.1")
5695 (source
5696 (origin
5697 (method url-fetch)
5698 (uri
5699 (string-append "mirror://sourceforge/rseqc/"
5700 "RSeQC-" version ".tar.gz"))
5701 (sha256
5702 (base32
5703 "0gbb9iyb7swiv5455fm5rg98r7l6qn27v564yllqjd574hncpx6m"))))
5704 (build-system python-build-system)
5705 (inputs
5706 `(("python-cython" ,python-cython)
5707 ("python-bx-python" ,python-bx-python)
5708 ("python-pybigwig" ,python-pybigwig)
5709 ("python-pysam" ,python-pysam)
5710 ("python-numpy" ,python-numpy)
5711 ("zlib" ,zlib)))
5712 (native-inputs
5713 `(("python-nose" ,python-nose)))
5714 (home-page "http://rseqc.sourceforge.net/")
5715 (synopsis "RNA-seq quality control package")
5716 (description
5717 "RSeQC provides a number of modules that can comprehensively evaluate
5718 high throughput sequence data, especially RNA-seq data. Some basic modules
5719 inspect sequence quality, nucleotide composition bias, PCR bias and GC bias,
5720 while RNA-seq specific modules evaluate sequencing saturation, mapped reads
5721 distribution, coverage uniformity, strand specificity, etc.")
5722 (license license:gpl3+)))
5723
5724 (define-public seek
5725 ;; There are no release tarballs. According to the installation
5726 ;; instructions at http://seek.princeton.edu/installation.jsp, the latest
5727 ;; stable release is identified by this changeset ID.
5728 (let ((changeset "2329130")
5729 (revision "1"))
5730 (package
5731 (name "seek")
5732 (version (string-append "0-" revision "." changeset))
5733 (source (origin
5734 (method hg-fetch)
5735 (uri (hg-reference
5736 (url "https://bitbucket.org/libsleipnir/sleipnir")
5737 (changeset changeset)))
5738 (file-name (string-append name "-" version "-checkout"))
5739 (sha256
5740 (base32
5741 "0qrvilwh18dpbhkf92qvxbmay0j75ra3jg2wrhz67gf538zzphsx"))))
5742 (build-system gnu-build-system)
5743 (arguments
5744 `(#:modules ((srfi srfi-1)
5745 (guix build gnu-build-system)
5746 (guix build utils))
5747 #:phases
5748 (let ((dirs '("SeekMiner"
5749 "SeekEvaluator"
5750 "SeekPrep"
5751 "Distancer"
5752 "Data2DB"
5753 "PCL2Bin")))
5754 (modify-phases %standard-phases
5755 (replace 'bootstrap
5756 (lambda _
5757 (substitute* "gen_tools_am"
5758 (("/usr/bin/env.*") (which "perl")))
5759 (invoke "bash" "gen_auto")
5760 #t))
5761 (add-after 'build 'build-additional-tools
5762 (lambda* (#:key make-flags #:allow-other-keys)
5763 (for-each (lambda (dir)
5764 (with-directory-excursion (string-append "tools/" dir)
5765 (apply invoke "make" make-flags)))
5766 dirs)
5767 #t))
5768 (add-after 'install 'install-additional-tools
5769 (lambda* (#:key make-flags #:allow-other-keys)
5770 (for-each (lambda (dir)
5771 (with-directory-excursion (string-append "tools/" dir)
5772 (apply invoke `("make" ,@make-flags "install"))))
5773 dirs)
5774 #t))))))
5775 (inputs
5776 `(("gsl" ,gsl)
5777 ("boost" ,boost)
5778 ("libsvm" ,libsvm)
5779 ("readline" ,readline)
5780 ("gengetopt" ,gengetopt)
5781 ("log4cpp" ,log4cpp)))
5782 (native-inputs
5783 `(("autoconf" ,autoconf)
5784 ("automake" ,automake)
5785 ("perl" ,perl)))
5786 (home-page "http://seek.princeton.edu")
5787 (synopsis "Gene co-expression search engine")
5788 (description
5789 "SEEK is a computational gene co-expression search engine. SEEK provides
5790 biologists with a way to navigate the massive human expression compendium that
5791 now contains thousands of expression datasets. SEEK returns a robust ranking
5792 of co-expressed genes in the biological area of interest defined by the user's
5793 query genes. It also prioritizes thousands of expression datasets according
5794 to the user's query of interest.")
5795 (license license:cc-by3.0))))
5796
5797 (define-public samtools
5798 (package
5799 (name "samtools")
5800 (version "1.11")
5801 (source
5802 (origin
5803 (method url-fetch)
5804 (uri
5805 (string-append "mirror://sourceforge/samtools/samtools/"
5806 version "/samtools-" version ".tar.bz2"))
5807 (sha256
5808 (base32
5809 "1dp5wknak4arnw5ghhif9mmljlfnw5bgm91wib7z0j8wdjywx0z2"))
5810 (modules '((guix build utils)))
5811 (snippet '(begin
5812 ;; Delete bundled htslib.
5813 (delete-file-recursively "htslib-1.11")
5814 #t))))
5815 (build-system gnu-build-system)
5816 (arguments
5817 `(#:modules ((ice-9 ftw)
5818 (ice-9 regex)
5819 (guix build gnu-build-system)
5820 (guix build utils))
5821 #:configure-flags (list "--with-ncurses")
5822 #:phases
5823 (modify-phases %standard-phases
5824 (add-after 'unpack 'patch-tests
5825 (lambda _
5826 (substitute* "test/test.pl"
5827 ;; The test script calls out to /bin/bash
5828 (("/bin/bash") (which "bash")))
5829 #t))
5830 (add-after 'install 'install-library
5831 (lambda* (#:key outputs #:allow-other-keys)
5832 (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
5833 (install-file "libbam.a" lib)
5834 #t)))
5835 (add-after 'install 'install-headers
5836 (lambda* (#:key outputs #:allow-other-keys)
5837 (let ((include (string-append (assoc-ref outputs "out")
5838 "/include/samtools/")))
5839 (for-each (lambda (file)
5840 (install-file file include))
5841 (scandir "." (lambda (name) (string-match "\\.h$" name))))
5842 #t))))))
5843 (native-inputs `(("pkg-config" ,pkg-config)))
5844 (inputs
5845 `(("htslib" ,htslib)
5846 ("ncurses" ,ncurses)
5847 ("perl" ,perl)
5848 ("python" ,python)
5849 ("zlib" ,zlib)))
5850 (home-page "http://samtools.sourceforge.net")
5851 (synopsis "Utilities to efficiently manipulate nucleotide sequence alignments")
5852 (description
5853 "Samtools implements various utilities for post-processing nucleotide
5854 sequence alignments in the SAM, BAM, and CRAM formats, including indexing,
5855 variant calling (in conjunction with bcftools), and a simple alignment
5856 viewer.")
5857 (license license:expat)))
5858
5859 (define-public samtools-1.9
5860 (package (inherit samtools)
5861 (name "samtools")
5862 (version "1.9")
5863 (source
5864 (origin
5865 (method url-fetch)
5866 (uri
5867 (string-append "mirror://sourceforge/samtools/samtools/"
5868 version "/samtools-" version ".tar.bz2"))
5869 (sha256
5870 (base32
5871 "10ilqbmm7ri8z431sn90lvbjwizd0hhkf9rcqw8j823hf26nhgq8"))
5872 (modules '((guix build utils)))
5873 (snippet '(begin
5874 ;; Delete bundled htslib.
5875 (delete-file-recursively "htslib-1.9")
5876 #t))))
5877 (inputs
5878 `(("htslib" ,htslib-1.9)
5879 ("ncurses" ,ncurses)
5880 ("perl" ,perl)
5881 ("python" ,python)
5882 ("zlib" ,zlib)))))
5883
5884 (define-public samtools-0.1
5885 ;; This is the most recent version of the 0.1 line of samtools. The input
5886 ;; and output formats differ greatly from that used and produced by samtools
5887 ;; 1.x and is still used in many bioinformatics pipelines.
5888 (package (inherit samtools)
5889 (version "0.1.19")
5890 (source
5891 (origin
5892 (method url-fetch)
5893 (uri
5894 (string-append "mirror://sourceforge/samtools/samtools/"
5895 version "/samtools-" version ".tar.bz2"))
5896 (sha256
5897 (base32 "1m33xsfwz0s8qi45lylagfllqg7fphf4dr0780rsvw75av9wk06h"))))
5898 (arguments
5899 `(#:tests? #f ;no "check" target
5900 #:make-flags
5901 (list "LIBCURSES=-lncurses")
5902 ,@(substitute-keyword-arguments (package-arguments samtools)
5903 ((#:phases phases)
5904 `(modify-phases ,phases
5905 (replace 'install
5906 (lambda* (#:key outputs #:allow-other-keys)
5907 (let ((bin (string-append
5908 (assoc-ref outputs "out") "/bin")))
5909 (mkdir-p bin)
5910 (install-file "samtools" bin)
5911 #t)))
5912 (delete 'patch-tests)
5913 (delete 'configure))))))))
5914
5915 (define-public mosaik
5916 (let ((commit "5c25216d3522d6a33e53875cd76a6d65001e4e67"))
5917 (package
5918 (name "mosaik")
5919 (version "2.2.30")
5920 (source (origin
5921 ;; There are no release tarballs nor tags.
5922 (method git-fetch)
5923 (uri (git-reference
5924 (url "https://github.com/wanpinglee/MOSAIK")
5925 (commit commit)))
5926 (file-name (string-append name "-" version))
5927 (sha256
5928 (base32
5929 "17gj3s07cm77r41z92awh0bim7w7q7fbn0sf5nkqmcm1vw052qgw"))))
5930 (build-system gnu-build-system)
5931 (arguments
5932 `(#:tests? #f ; no tests
5933 #:make-flags (list "CC=gcc")
5934 #:phases
5935 (modify-phases %standard-phases
5936 (replace 'configure
5937 (lambda _ (chdir "src") #t))
5938 (replace 'install
5939 (lambda* (#:key outputs #:allow-other-keys)
5940 (let ((bin (string-append (assoc-ref outputs "out")
5941 "/bin")))
5942 (mkdir-p bin)
5943 (copy-recursively "../bin" bin)
5944 #t))))))
5945 (inputs
5946 `(("perl" ,perl)
5947 ("zlib:static" ,zlib "static")
5948 ("zlib" ,zlib)))
5949 (supported-systems '("x86_64-linux"))
5950 (home-page "https://github.com/wanpinglee/MOSAIK")
5951 (synopsis "Map nucleotide sequence reads to reference genomes")
5952 (description
5953 "MOSAIK is a program for mapping second and third-generation sequencing
5954 reads to a reference genome. MOSAIK can align reads generated by all the
5955 major sequencing technologies, including Illumina, Applied Biosystems SOLiD,
5956 Roche 454, Ion Torrent and Pacific BioSciences SMRT.")
5957 ;; MOSAIK is released under the GPLv2+ with the exception of third-party
5958 ;; code released into the public domain:
5959 ;; 1. fastlz by Ariya Hidayat - http://www.fastlz.org/
5960 ;; 2. MD5 implementation - RSA Data Security, RFC 1321
5961 (license (list license:gpl2+ license:public-domain)))))
5962
5963 (define-public ngs-sdk
5964 (package
5965 (name "ngs-sdk")
5966 (version "2.10.5")
5967 (source (origin
5968 (method git-fetch)
5969 (uri (git-reference
5970 (url "https://github.com/ncbi/ngs")
5971 (commit version)))
5972 (file-name (git-file-name name version))
5973 (sha256
5974 (base32
5975 "1ix51c25hjn57w93qmwzw80xh2i34wx8j2hn7szh8p6w8i3az5qa"))))
5976 (build-system gnu-build-system)
5977 (arguments
5978 `(#:parallel-build? #f ; not supported
5979 #:tests? #f ; no "check" target
5980 #:phases
5981 (modify-phases %standard-phases
5982 (replace 'configure
5983 (lambda* (#:key outputs #:allow-other-keys)
5984 (let ((out (assoc-ref outputs "out")))
5985 ;; Allow 'konfigure.perl' to find 'package.prl'.
5986 (setenv "PERL5LIB"
5987 (string-append ".:" (getenv "PERL5LIB")))
5988
5989 ;; The 'configure' script doesn't recognize things like
5990 ;; '--enable-fast-install'.
5991 (invoke "./configure"
5992 (string-append "--build-prefix=" (getcwd) "/build")
5993 (string-append "--prefix=" out))
5994 #t)))
5995 (add-after 'unpack 'enter-dir
5996 (lambda _ (chdir "ngs-sdk") #t)))))
5997 (native-inputs `(("perl" ,perl)))
5998 ;; According to the test
5999 ;; unless ($MARCH =~ /x86_64/i || $MARCH =~ /i?86/i)
6000 ;; in ngs-sdk/setup/konfigure.perl
6001 (supported-systems '("i686-linux" "x86_64-linux"))
6002 (home-page "https://github.com/ncbi/ngs")
6003 (synopsis "API for accessing Next Generation Sequencing data")
6004 (description
6005 "NGS is a domain-specific API for accessing reads, alignments and pileups
6006 produced from Next Generation Sequencing. The API itself is independent from
6007 any particular back-end implementation, and supports use of multiple back-ends
6008 simultaneously.")
6009 (license license:public-domain)))
6010
6011 (define-public java-ngs
6012 (package (inherit ngs-sdk)
6013 (name "java-ngs")
6014 (arguments
6015 `(,@(substitute-keyword-arguments
6016 `(#:modules ((guix build gnu-build-system)
6017 (guix build utils)
6018 (srfi srfi-1)
6019 (srfi srfi-26))
6020 ,@(package-arguments ngs-sdk))
6021 ((#:phases phases)
6022 `(modify-phases ,phases
6023 (replace 'enter-dir (lambda _ (chdir "ngs-java") #t)))))))
6024 (inputs
6025 `(("jdk" ,icedtea "jdk")
6026 ("ngs-sdk" ,ngs-sdk)))
6027 (synopsis "Java bindings for NGS SDK")))
6028
6029 (define-public ncbi-vdb
6030 (package
6031 (name "ncbi-vdb")
6032 (version "2.10.6")
6033 (source (origin
6034 (method git-fetch)
6035 (uri (git-reference
6036 (url "https://github.com/ncbi/ncbi-vdb")
6037 (commit version)))
6038 (file-name (git-file-name name version))
6039 (sha256
6040 (base32
6041 "0m8hlxscidsfqm9x9fyi62q6lpf1dv5115kgjjgnrkl49q9c27m6"))))
6042 (build-system gnu-build-system)
6043 (arguments
6044 `(#:parallel-build? #f ; not supported
6045 #:tests? #f ; no "check" target
6046 #:make-flags '("HAVE_HDF5=1")
6047 #:phases
6048 (modify-phases %standard-phases
6049 (add-after 'unpack 'make-files-writable
6050 (lambda _ (for-each make-file-writable (find-files "." ".*")) #t))
6051 (add-before 'configure 'set-perl-search-path
6052 (lambda _
6053 ;; Work around "dotless @INC" build failure.
6054 (setenv "PERL5LIB"
6055 (string-append (getcwd) "/setup:"
6056 (getenv "PERL5LIB")))
6057 #t))
6058 ;; See https://github.com/ncbi/ncbi-vdb/issues/14
6059 (add-after 'unpack 'patch-krypto-flags
6060 (lambda _
6061 (substitute* "libs/krypto/Makefile"
6062 (("-Wa,-march=generic64\\+aes") "")
6063 (("-Wa,-march=generic64\\+sse4") ""))
6064 #t))
6065 (replace 'configure
6066 (lambda* (#:key inputs outputs #:allow-other-keys)
6067 (let ((out (assoc-ref outputs "out")))
6068 ;; Override include path for libmagic
6069 (substitute* "setup/package.prl"
6070 (("name => 'magic', Include => '/usr/include'")
6071 (string-append "name=> 'magic', Include => '"
6072 (assoc-ref inputs "libmagic")
6073 "/include" "'")))
6074
6075 ;; Install kdf5 library (needed by sra-tools)
6076 (substitute* "build/Makefile.install"
6077 (("LIBRARIES_TO_INSTALL =")
6078 "LIBRARIES_TO_INSTALL = kdf5.$(VERSION_LIBX) kdf5.$(VERSION_SHLX)"))
6079
6080 (substitute* "build/Makefile.env"
6081 (("CFLAGS =" prefix)
6082 (string-append prefix "-msse2 ")))
6083
6084 ;; Override search path for ngs-java
6085 (substitute* "setup/package.prl"
6086 (("/usr/local/ngs/ngs-java")
6087 (assoc-ref inputs "java-ngs")))
6088
6089 ;; The 'configure' script doesn't recognize things like
6090 ;; '--enable-fast-install'.
6091 (invoke "./configure"
6092 (string-append "--build-prefix=" (getcwd) "/build")
6093 (string-append "--prefix=" (assoc-ref outputs "out"))
6094 (string-append "--debug")
6095 (string-append "--with-xml2-prefix="
6096 (assoc-ref inputs "libxml2"))
6097 (string-append "--with-ngs-sdk-prefix="
6098 (assoc-ref inputs "ngs-sdk"))
6099 (string-append "--with-hdf5-prefix="
6100 (assoc-ref inputs "hdf5")))
6101 #t)))
6102 (add-after 'install 'install-interfaces
6103 (lambda* (#:key outputs #:allow-other-keys)
6104 ;; Install interface libraries. On i686 the interface libraries
6105 ;; are installed to "linux/gcc/i386", so we need to use the Linux
6106 ;; architecture name ("i386") instead of the target system prefix
6107 ;; ("i686").
6108 (mkdir (string-append (assoc-ref outputs "out") "/ilib"))
6109 (copy-recursively (string-append "build/ncbi-vdb/linux/gcc/"
6110 ,(system->linux-architecture
6111 (or (%current-target-system)
6112 (%current-system)))
6113 "/rel/ilib")
6114 (string-append (assoc-ref outputs "out")
6115 "/ilib"))
6116 ;; Install interface headers
6117 (copy-recursively "interfaces"
6118 (string-append (assoc-ref outputs "out")
6119 "/include"))
6120 #t))
6121 ;; These files are needed by sra-tools.
6122 (add-after 'install 'install-configuration-files
6123 (lambda* (#:key outputs #:allow-other-keys)
6124 (let ((target (string-append (assoc-ref outputs "out") "/kfg")))
6125 (mkdir target)
6126 (install-file "libs/kfg/default.kfg" target)
6127 (install-file "libs/kfg/certs.kfg" target))
6128 #t)))))
6129 (inputs
6130 `(("libxml2" ,libxml2)
6131 ("ngs-sdk" ,ngs-sdk)
6132 ("java-ngs" ,java-ngs)
6133 ("libmagic" ,file)
6134 ("hdf5" ,hdf5)))
6135 (native-inputs `(("perl" ,perl)))
6136 ;; NCBI-VDB requires SSE capability.
6137 (supported-systems '("i686-linux" "x86_64-linux"))
6138 (home-page "https://github.com/ncbi/ncbi-vdb")
6139 (synopsis "Database engine for genetic information")
6140 (description
6141 "The NCBI-VDB library implements a highly compressed columnar data
6142 warehousing engine that is most often used to store genetic information.
6143 Databases are stored in a portable image within the file system, and can be
6144 accessed/downloaded on demand across HTTP.")
6145 (license license:public-domain)))
6146
6147 (define-public plink
6148 (package
6149 (name "plink")
6150 (version "1.07")
6151 (source
6152 (origin
6153 (method url-fetch)
6154 (uri (string-append
6155 "http://pngu.mgh.harvard.edu/~purcell/plink/dist/plink-"
6156 version "-src.zip"))
6157 (sha256
6158 (base32 "0as8gxm4pjyc8dxmm1sl873rrd7wn5qs0l29nqfnl31x8i467xaa"))
6159 (patches (search-patches "plink-1.07-unclobber-i.patch"
6160 "plink-endian-detection.patch"))))
6161 (build-system gnu-build-system)
6162 (arguments
6163 '(#:tests? #f ;no "check" target
6164 #:make-flags (list (string-append "LIB_LAPACK="
6165 (assoc-ref %build-inputs "lapack")
6166 "/lib/liblapack.so")
6167 "WITH_LAPACK=1"
6168 "FORCE_DYNAMIC=1"
6169 ;; disable phoning home
6170 "WITH_WEBCHECK=")
6171 #:phases
6172 (modify-phases %standard-phases
6173 ;; no "configure" script
6174 (delete 'configure)
6175 (replace 'install
6176 (lambda* (#:key outputs #:allow-other-keys)
6177 (let ((bin (string-append (assoc-ref outputs "out")
6178 "/bin/")))
6179 (install-file "plink" bin)
6180 #t))))))
6181 (inputs
6182 `(("zlib" ,zlib)
6183 ("lapack" ,lapack)))
6184 (native-inputs
6185 `(("unzip" ,unzip)))
6186 (home-page "http://pngu.mgh.harvard.edu/~purcell/plink/")
6187 (synopsis "Whole genome association analysis toolset")
6188 (description
6189 "PLINK is a whole genome association analysis toolset, designed to
6190 perform a range of basic, large-scale analyses in a computationally efficient
6191 manner. The focus of PLINK is purely on analysis of genotype/phenotype data,
6192 so there is no support for steps prior to this (e.g. study design and
6193 planning, generating genotype or CNV calls from raw data). Through
6194 integration with gPLINK and Haploview, there is some support for the
6195 subsequent visualization, annotation and storage of results.")
6196 ;; Code is released under GPLv2, except for fisher.h, which is under
6197 ;; LGPLv2.1+
6198 (license (list license:gpl2 license:lgpl2.1+))))
6199
6200 (define-public plink-ng
6201 (package (inherit plink)
6202 (name "plink-ng")
6203 (version "1.90b4")
6204 (source
6205 (origin
6206 (method git-fetch)
6207 (uri (git-reference
6208 (url "https://github.com/chrchang/plink-ng")
6209 (commit (string-append "v" version))))
6210 (file-name (git-file-name name version))
6211 (sha256
6212 (base32 "02npdwgkpfkdnhw819rhj5kw02a5k5m90b14zq9zzya4hyg929c0"))))
6213 (build-system gnu-build-system)
6214 (arguments
6215 '(#:tests? #f ;no "check" target
6216 #:make-flags (list "BLASFLAGS=-llapack -lopenblas"
6217 "CFLAGS=-Wall -O2 -DDYNAMIC_ZLIB=1"
6218 "ZLIB=-lz"
6219 "-f" "Makefile.std")
6220 #:phases
6221 (modify-phases %standard-phases
6222 (add-after 'unpack 'chdir
6223 (lambda _ (chdir "1.9") #t))
6224 (delete 'configure) ; no "configure" script
6225 (replace 'install
6226 (lambda* (#:key outputs #:allow-other-keys)
6227 (let ((bin (string-append (assoc-ref outputs "out")
6228 "/bin/")))
6229 (install-file "plink" bin)
6230 #t))))))
6231 (inputs
6232 `(("zlib" ,zlib)
6233 ("lapack" ,lapack)
6234 ("openblas" ,openblas)))
6235 (home-page "https://www.cog-genomics.org/plink/")
6236 (license license:gpl3+)))
6237
6238 (define-public smithlab-cpp
6239 (let ((revision "1")
6240 (commit "728a097bec88c6f4b8528b685932049e660eff2e"))
6241 (package
6242 (name "smithlab-cpp")
6243 (version (string-append "0." revision "." (string-take commit 7)))
6244 (source (origin
6245 (method git-fetch)
6246 (uri (git-reference
6247 (url "https://github.com/smithlabcode/smithlab_cpp")
6248 (commit commit)))
6249 (file-name (string-append name "-" version "-checkout"))
6250 (sha256
6251 (base32
6252 "0d476lmj312xk77kr9fzrv7z1bv96yfyx0w7y62ycmnfbx32ll74"))))
6253 (build-system gnu-build-system)
6254 (arguments
6255 `(#:modules ((guix build gnu-build-system)
6256 (guix build utils)
6257 (srfi srfi-26))
6258 #:tests? #f ;no "check" target
6259 #:phases
6260 (modify-phases %standard-phases
6261 (add-after 'unpack 'use-samtools-headers
6262 (lambda _
6263 (substitute* '("SAM.cpp"
6264 "SAM.hpp")
6265 (("sam.h") "samtools/sam.h"))
6266 #t))
6267 (replace 'install
6268 (lambda* (#:key outputs #:allow-other-keys)
6269 (let* ((out (assoc-ref outputs "out"))
6270 (lib (string-append out "/lib"))
6271 (include (string-append out "/include/smithlab-cpp")))
6272 (mkdir-p lib)
6273 (mkdir-p include)
6274 (for-each (cut install-file <> lib)
6275 (find-files "." "\\.o$"))
6276 (for-each (cut install-file <> include)
6277 (find-files "." "\\.hpp$")))
6278 #t))
6279 (delete 'configure))))
6280 (inputs
6281 `(("samtools" ,samtools-0.1)
6282 ("zlib" ,zlib)))
6283 (home-page "https://github.com/smithlabcode/smithlab_cpp")
6284 (synopsis "C++ helper library for functions used in Smith lab projects")
6285 (description
6286 "Smithlab CPP is a C++ library that includes functions used in many of
6287 the Smith lab bioinformatics projects, such as a wrapper around Samtools data
6288 structures, classes for genomic regions, mapped sequencing reads, etc.")
6289 (license license:gpl3+))))
6290
6291 (define-public preseq
6292 (package
6293 (name "preseq")
6294 (version "2.0.3")
6295 (source (origin
6296 (method url-fetch)
6297 (uri (string-append "https://github.com/smithlabcode/preseq/"
6298 "releases/download/v" version
6299 "/preseq_v" version ".tar.bz2"))
6300 (sha256
6301 (base32 "149x9xmk1wy1gff85325yfzqc0qk4sgp1w6gbyj9cnji4x1dszbl"))
6302 (modules '((guix build utils)))
6303 (snippet '(begin
6304 ;; Remove bundled samtools.
6305 (delete-file-recursively "samtools")
6306 #t))))
6307 (build-system gnu-build-system)
6308 (arguments
6309 `(#:tests? #f ;no "check" target
6310 #:phases
6311 (modify-phases %standard-phases
6312 (delete 'configure))
6313 #:make-flags
6314 (list (string-append "PREFIX="
6315 (assoc-ref %outputs "out"))
6316 (string-append "LIBBAM="
6317 (assoc-ref %build-inputs "samtools")
6318 "/lib/libbam.a")
6319 (string-append "SMITHLAB_CPP="
6320 (assoc-ref %build-inputs "smithlab-cpp")
6321 "/lib")
6322 "PROGS=preseq"
6323 "INCLUDEDIRS=$(SMITHLAB_CPP)/../include/smithlab-cpp $(SAMTOOLS_DIR)")))
6324 (inputs
6325 `(("gsl" ,gsl)
6326 ("samtools" ,samtools-0.1)
6327 ("smithlab-cpp" ,smithlab-cpp)
6328 ("zlib" ,zlib)))
6329 (home-page "http://smithlabresearch.org/software/preseq/")
6330 (synopsis "Program for analyzing library complexity")
6331 (description
6332 "The preseq package is aimed at predicting and estimating the complexity
6333 of a genomic sequencing library, equivalent to predicting and estimating the
6334 number of redundant reads from a given sequencing depth and how many will be
6335 expected from additional sequencing using an initial sequencing experiment.
6336 The estimates can then be used to examine the utility of further sequencing,
6337 optimize the sequencing depth, or to screen multiple libraries to avoid low
6338 complexity samples.")
6339 (license license:gpl3+)))
6340
6341 (define-public python-screed
6342 (package
6343 (name "python-screed")
6344 (version "1.0")
6345 (source
6346 (origin
6347 (method url-fetch)
6348 (uri (pypi-uri "screed" version))
6349 (sha256
6350 (base32
6351 "148vcb7w2wr6a4w6vs2bsxanbqibxfk490zbcbg4m61s8669zdjx"))))
6352 (build-system python-build-system)
6353 (arguments
6354 '(#:phases
6355 (modify-phases %standard-phases
6356 ;; Tests must be run after installation, as the "screed" command does
6357 ;; not exist right after building.
6358 (delete 'check)
6359 (add-after 'install 'check
6360 (lambda* (#:key inputs outputs #:allow-other-keys)
6361 (let ((out (assoc-ref outputs "out")))
6362 (setenv "PYTHONPATH"
6363 (string-append out "/lib/python"
6364 (string-take (string-take-right
6365 (assoc-ref inputs "python")
6366 5) 3)
6367 "/site-packages:"
6368 (getenv "PYTHONPATH")))
6369 (setenv "PATH" (string-append out "/bin:" (getenv "PATH"))))
6370 (invoke "python" "setup.py" "test")
6371 #t)))))
6372 (native-inputs
6373 `(("python-pytest" ,python-pytest)
6374 ("python-pytest-cov" ,python-pytest-cov)
6375 ("python-pytest-runner" ,python-pytest-runner)))
6376 (inputs
6377 `(("python-bz2file" ,python-bz2file)))
6378 (home-page "https://github.com/dib-lab/screed/")
6379 (synopsis "Short read sequence database utilities")
6380 (description "Screed parses FASTA and FASTQ files and generates databases.
6381 Values such as sequence name, sequence description, sequence quality and the
6382 sequence itself can be retrieved from these databases.")
6383 (license license:bsd-3)))
6384
6385 (define-public python2-screed
6386 (package-with-python2 python-screed))
6387
6388 (define-public sra-tools
6389 (package
6390 (name "sra-tools")
6391 (version "2.10.6")
6392 (source
6393 (origin
6394 (method git-fetch)
6395 (uri (git-reference
6396 (url "https://github.com/ncbi/sra-tools")
6397 (commit version)))
6398 (file-name (git-file-name name version))
6399 (sha256
6400 (base32
6401 "1cr2mijkfs5sm35ffjs6861qsd1qkgnhnbavdv65zg5d655abbjf"))))
6402 (build-system gnu-build-system)
6403 (arguments
6404 `(#:parallel-build? #f ; not supported
6405 #:tests? #f ; no "check" target
6406 #:make-flags
6407 (list (string-append "DEFAULT_CRT="
6408 (assoc-ref %build-inputs "ncbi-vdb")
6409 "/kfg/certs.kfg")
6410 (string-append "DEFAULT_KFG="
6411 (assoc-ref %build-inputs "ncbi-vdb")
6412 "/kfg/default.kfg")
6413 (string-append "VDB_LIBDIR="
6414 (assoc-ref %build-inputs "ncbi-vdb")
6415 ,(if (string-prefix? "x86_64"
6416 (or (%current-target-system)
6417 (%current-system)))
6418 "/lib64"
6419 "/lib32")))
6420 #:phases
6421 (modify-phases %standard-phases
6422 (add-before 'configure 'set-perl-search-path
6423 (lambda _
6424 ;; Work around "dotless @INC" build failure.
6425 (setenv "PERL5LIB"
6426 (string-append (getcwd) "/setup:"
6427 (getenv "PERL5LIB")))
6428 #t))
6429 (replace 'configure
6430 (lambda* (#:key inputs outputs #:allow-other-keys)
6431 ;; The build system expects a directory containing the sources and
6432 ;; raw build output of ncbi-vdb, including files that are not
6433 ;; installed. Since we are building against an installed version of
6434 ;; ncbi-vdb, the following modifications are needed.
6435 (substitute* "setup/konfigure.perl"
6436 ;; Make the configure script look for the "ilib" directory of
6437 ;; "ncbi-vdb" without first checking for the existence of a
6438 ;; matching library in its "lib" directory.
6439 (("^ my \\$f = File::Spec->catdir\\(\\$libdir, \\$lib\\);")
6440 "my $f = File::Spec->catdir($ilibdir, $ilib);")
6441 ;; Look for interface libraries in ncbi-vdb's "ilib" directory.
6442 (("my \\$ilibdir = File::Spec->catdir\\(\\$builddir, 'ilib'\\);")
6443 "my $ilibdir = File::Spec->catdir($dir, 'ilib');"))
6444
6445 ;; Dynamic linking
6446 (substitute* "tools/copycat/Makefile"
6447 (("smagic-static") "lmagic"))
6448 (substitute* "tools/driver-tool/utf8proc/Makefile"
6449 (("CC\\?=gcc") "myCC=gcc")
6450 (("\\(CC\\)") "(myCC)"))
6451
6452 ;; The 'configure' script doesn't recognize things like
6453 ;; '--enable-fast-install'.
6454 (invoke "./configure"
6455 (string-append "--build-prefix=" (getcwd) "/build")
6456 (string-append "--prefix=" (assoc-ref outputs "out"))
6457 (string-append "--debug")
6458 (string-append "--with-fuse-prefix="
6459 (assoc-ref inputs "fuse"))
6460 (string-append "--with-magic-prefix="
6461 (assoc-ref inputs "libmagic"))
6462 ;; TODO: building with libxml2 fails with linker errors
6463 #;
6464 (string-append "--with-xml2-prefix="
6465 (assoc-ref inputs "libxml2"))
6466 (string-append "--with-ncbi-vdb-sources="
6467 (assoc-ref inputs "ncbi-vdb"))
6468 (string-append "--with-ncbi-vdb-build="
6469 (assoc-ref inputs "ncbi-vdb"))
6470 (string-append "--with-ngs-sdk-prefix="
6471 (assoc-ref inputs "ngs-sdk"))
6472 (string-append "--with-hdf5-prefix="
6473 (assoc-ref inputs "hdf5")))
6474 #t)))))
6475 (native-inputs `(("perl" ,perl)))
6476 (inputs
6477 `(("ngs-sdk" ,ngs-sdk)
6478 ("ncbi-vdb" ,ncbi-vdb)
6479 ("libmagic" ,file)
6480 ("fuse" ,fuse)
6481 ("hdf5" ,hdf5-1.10)
6482 ("zlib" ,zlib)
6483 ("python" ,python-wrapper)))
6484 (home-page
6485 "https://trace.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software")
6486 (synopsis "Tools and libraries for reading and writing sequencing data")
6487 (description
6488 "The SRA Toolkit from NCBI is a collection of tools and libraries for
6489 reading of sequencing files from the Sequence Read Archive (SRA) database and
6490 writing files into the .sra format.")
6491 (license license:public-domain)))
6492
6493 (define-public seqan
6494 (package
6495 (name "seqan")
6496 (version "2.4.0")
6497 (source (origin
6498 (method url-fetch)
6499 (uri (string-append "https://github.com/seqan/seqan/releases/"
6500 "download/seqan-v" version
6501 "/seqan-library-" version ".tar.xz"))
6502 (sha256
6503 (base32
6504 "19a1rlxx03qy1i1iriicly68w64yjxbv24g9gdywnfmq998v35yx"))))
6505 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
6506 ;; makes sense to split the outputs.
6507 (outputs '("out" "doc"))
6508 (build-system trivial-build-system)
6509 (arguments
6510 `(#:modules ((guix build utils))
6511 #:builder
6512 (begin
6513 (use-modules (guix build utils))
6514 (let ((tar (assoc-ref %build-inputs "tar"))
6515 (xz (assoc-ref %build-inputs "xz"))
6516 (out (assoc-ref %outputs "out"))
6517 (doc (assoc-ref %outputs "doc")))
6518 (setenv "PATH" (string-append tar "/bin:" xz "/bin"))
6519 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
6520 (chdir (string-append "seqan-library-" ,version))
6521 (copy-recursively "include" (string-append out "/include"))
6522 (copy-recursively "share" (string-append doc "/share"))
6523 #t))))
6524 (native-inputs
6525 `(("source" ,source)
6526 ("tar" ,tar)
6527 ("xz" ,xz)))
6528 (home-page "http://www.seqan.de")
6529 (synopsis "Library for nucleotide sequence analysis")
6530 (description
6531 "SeqAn is a C++ library of efficient algorithms and data structures for
6532 the analysis of sequences with the focus on biological data. It contains
6533 algorithms and data structures for string representation and their
6534 manipulation, online and indexed string search, efficient I/O of
6535 bioinformatics file formats, sequence alignment, and more.")
6536 (license license:bsd-3)))
6537
6538 (define-public seqan-1
6539 (package (inherit seqan)
6540 (name "seqan")
6541 (version "1.4.2")
6542 (source (origin
6543 (method url-fetch)
6544 (uri (string-append "http://packages.seqan.de/seqan-library/"
6545 "seqan-library-" version ".tar.bz2"))
6546 (sha256
6547 (base32
6548 "05s3wrrwn50f81aklfm65i4a749zag1vr8z03k21xm0pdxy47yvp"))))
6549 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
6550 ;; makes sense to split the outputs.
6551 (outputs '("out" "doc"))
6552 (build-system trivial-build-system)
6553 (arguments
6554 `(#:modules ((guix build utils))
6555 #:builder
6556 (begin
6557 (use-modules (guix build utils))
6558 (let ((tar (assoc-ref %build-inputs "tar"))
6559 (bzip (assoc-ref %build-inputs "bzip2"))
6560 (out (assoc-ref %outputs "out"))
6561 (doc (assoc-ref %outputs "doc")))
6562 (setenv "PATH" (string-append tar "/bin:" bzip "/bin"))
6563 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
6564 (chdir (string-append "seqan-library-" ,version))
6565 (copy-recursively "include" (string-append out "/include"))
6566 (copy-recursively "share" (string-append doc "/share"))
6567 #t))))
6568 (native-inputs
6569 `(("source" ,source)
6570 ("tar" ,tar)
6571 ("bzip2" ,bzip2)))))
6572
6573 (define-public seqmagick
6574 (package
6575 (name "seqmagick")
6576 (version "0.8.0")
6577 (source
6578 (origin
6579 (method url-fetch)
6580 (uri (pypi-uri "seqmagick" version))
6581 (sha256
6582 (base32
6583 "0pf98da7i59q47gwrbx0wjk6xlvbybiwphw80w7h4ydjj0579a2b"))))
6584 (build-system python-build-system)
6585 (inputs
6586 `(("python-biopython" ,python-biopython)))
6587 (native-inputs
6588 `(("python-nose" ,python-nose)))
6589 (home-page "https://github.com/fhcrc/seqmagick")
6590 (synopsis "Tools for converting and modifying sequence files")
6591 (description
6592 "Bioinformaticians often have to convert sequence files between formats
6593 and do little manipulations on them, and it's not worth writing scripts for
6594 that. Seqmagick is a utility to expose the file format conversion in
6595 BioPython in a convenient way. Instead of having a big mess of scripts, there
6596 is one that takes arguments.")
6597 (license license:gpl3)))
6598
6599 (define-public seqtk
6600 (package
6601 (name "seqtk")
6602 (version "1.3")
6603 (source (origin
6604 (method git-fetch)
6605 (uri (git-reference
6606 (url "https://github.com/lh3/seqtk")
6607 (commit (string-append "v" version))))
6608 (file-name (git-file-name name version))
6609 (sha256
6610 (base32
6611 "1bfzlqa84b5s1qi22blmmw2s8xdyp9h9ydcq22pfjhh5gab3yz6l"))))
6612 (build-system gnu-build-system)
6613 (arguments
6614 `(#:phases
6615 (modify-phases %standard-phases
6616 (delete 'configure)
6617 (replace 'check
6618 ;; There are no tests, so we just run a sanity check.
6619 (lambda _ (invoke "./seqtk" "seq") #t))
6620 (replace 'install
6621 (lambda* (#:key outputs #:allow-other-keys)
6622 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6623 (install-file "seqtk" bin)
6624 #t))))))
6625 (inputs
6626 `(("zlib" ,zlib)))
6627 (home-page "https://github.com/lh3/seqtk")
6628 (synopsis "Toolkit for processing biological sequences in FASTA/Q format")
6629 (description
6630 "Seqtk is a fast and lightweight tool for processing sequences in the
6631 FASTA or FASTQ format. It parses both FASTA and FASTQ files which can be
6632 optionally compressed by gzip.")
6633 (license license:expat)))
6634
6635 (define-public snap-aligner
6636 (package
6637 (name "snap-aligner")
6638 (version "1.0beta.18")
6639 (source (origin
6640 (method git-fetch)
6641 (uri (git-reference
6642 (url "https://github.com/amplab/snap")
6643 (commit (string-append "v" version))))
6644 (file-name (git-file-name name version))
6645 (sha256
6646 (base32
6647 "01w3qq4wm07z73vky0cfwlmrbf50n3w722cxrlzxfi99mnb808d8"))))
6648 (build-system gnu-build-system)
6649 (arguments
6650 '(#:phases
6651 (modify-phases %standard-phases
6652 (delete 'configure)
6653 (replace 'check (lambda _ (invoke "./unit_tests") #t))
6654 (replace 'install
6655 (lambda* (#:key outputs #:allow-other-keys)
6656 (let* ((out (assoc-ref outputs "out"))
6657 (bin (string-append out "/bin")))
6658 (install-file "snap-aligner" bin)
6659 (install-file "SNAPCommand" bin)
6660 #t))))))
6661 (native-inputs
6662 `(("zlib" ,zlib)))
6663 (home-page "http://snap.cs.berkeley.edu/")
6664 (synopsis "Short read DNA sequence aligner")
6665 (description
6666 "SNAP is a fast and accurate aligner for short DNA reads. It is
6667 optimized for modern read lengths of 100 bases or higher, and takes advantage
6668 of these reads to align data quickly through a hash-based indexing scheme.")
6669 ;; 32-bit systems are not supported by the unpatched code.
6670 ;; Following the bug reports https://github.com/amplab/snap/issues/68 and
6671 ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812378 we see that
6672 ;; systems without a lot of memory cannot make good use of this program.
6673 (supported-systems '("x86_64-linux"))
6674 (license license:asl2.0)))
6675
6676 (define-public sortmerna
6677 (package
6678 (name "sortmerna")
6679 (version "2.1b")
6680 (source
6681 (origin
6682 (method git-fetch)
6683 (uri (git-reference
6684 (url "https://github.com/biocore/sortmerna")
6685 (commit version)))
6686 (file-name (git-file-name name version))
6687 (sha256
6688 (base32
6689 "0j3mbz4n25738yijmjbr5r4fyvkgm8v5vn3sshyfvmyqf5q9byqf"))))
6690 (build-system gnu-build-system)
6691 (outputs '("out" ;for binaries
6692 "db")) ;for sequence databases
6693 (arguments
6694 `(#:phases
6695 (modify-phases %standard-phases
6696 (replace 'install
6697 (lambda* (#:key outputs #:allow-other-keys)
6698 (let* ((out (assoc-ref outputs "out"))
6699 (bin (string-append out "/bin"))
6700 (db (assoc-ref outputs "db"))
6701 (share
6702 (string-append db "/share/sortmerna/rRNA_databases")))
6703 (install-file "sortmerna" bin)
6704 (install-file "indexdb_rna" bin)
6705 (for-each (lambda (file)
6706 (install-file file share))
6707 (find-files "rRNA_databases" ".*fasta"))
6708 #t))))))
6709 (inputs
6710 `(("zlib" ,zlib)))
6711 (home-page "https://bioinfo.lifl.fr/RNA/sortmerna/")
6712 (synopsis "Biological sequence analysis tool for NGS reads")
6713 (description
6714 "SortMeRNA is a biological sequence analysis tool for filtering, mapping
6715 and operational taxonomic unit (OTU) picking of next generation
6716 sequencing (NGS) reads. The core algorithm is based on approximate seeds and
6717 allows for fast and sensitive analyses of nucleotide sequences. The main
6718 application of SortMeRNA is filtering rRNA from metatranscriptomic data.")
6719 ;; The source includes x86 specific code
6720 (supported-systems '("x86_64-linux" "i686-linux"))
6721 (license license:lgpl3)))
6722
6723 (define-public star
6724 (package
6725 (name "star")
6726 (version "2.7.3a")
6727 (source (origin
6728 (method git-fetch)
6729 (uri (git-reference
6730 (url "https://github.com/alexdobin/STAR")
6731 (commit version)))
6732 (file-name (git-file-name name version))
6733 (sha256
6734 (base32
6735 "1hgiqw5qhs0pc1xazzihcfd92na02xyq2kb469z04y1v51kpvvjq"))
6736 (modules '((guix build utils)))
6737 (snippet
6738 '(begin
6739 (substitute* "source/Makefile"
6740 (("/bin/rm") "rm"))
6741 ;; Remove pre-built binaries and bundled htslib sources.
6742 (delete-file-recursively "bin/MacOSX_x86_64")
6743 (delete-file-recursively "bin/Linux_x86_64")
6744 (delete-file-recursively "bin/Linux_x86_64_static")
6745 (delete-file-recursively "source/htslib")
6746 #t))))
6747 (build-system gnu-build-system)
6748 (arguments
6749 '(#:tests? #f ;no check target
6750 #:make-flags '("STAR")
6751 #:phases
6752 (modify-phases %standard-phases
6753 (add-after 'unpack 'enter-source-dir
6754 (lambda _ (chdir "source") #t))
6755 (add-after 'enter-source-dir 'make-reproducible
6756 (lambda _
6757 (substitute* "Makefile"
6758 (("(COMPILATION_TIME_PLACE=\")(.*)(\")" _ pre mid post)
6759 (string-append pre "Built with Guix" post)))
6760 #t))
6761 ;; See https://github.com/alexdobin/STAR/pull/562
6762 (add-after 'enter-source-dir 'add-missing-header
6763 (lambda _
6764 (substitute* "SoloReadFeature_inputRecords.cpp"
6765 (("#include \"binarySearch2.h\"" h)
6766 (string-append h "\n#include <math.h>")))
6767 #t))
6768 (add-after 'enter-source-dir 'do-not-use-bundled-htslib
6769 (lambda _
6770 (substitute* "Makefile"
6771 (("(Depend.list: \\$\\(SOURCES\\) parametersDefault\\.xxd) htslib"
6772 _ prefix) prefix))
6773 (substitute* '("BAMfunctions.cpp"
6774 "signalFromBAM.h"
6775 "bam_cat.h"
6776 "bam_cat.c"
6777 "STAR.cpp"
6778 "bamRemoveDuplicates.cpp")
6779 (("#include \"htslib/([^\"]+\\.h)\"" _ header)
6780 (string-append "#include <" header ">")))
6781 (substitute* "IncludeDefine.h"
6782 (("\"htslib/(htslib/[^\"]+.h)\"" _ header)
6783 (string-append "<" header ">")))
6784 #t))
6785 (replace 'install
6786 (lambda* (#:key outputs #:allow-other-keys)
6787 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6788 (install-file "STAR" bin))
6789 #t))
6790 (delete 'configure))))
6791 (native-inputs
6792 `(("xxd" ,xxd)))
6793 (inputs
6794 `(("htslib" ,htslib)
6795 ("zlib" ,zlib)))
6796 (home-page "https://github.com/alexdobin/STAR")
6797 (synopsis "Universal RNA-seq aligner")
6798 (description
6799 "The Spliced Transcripts Alignment to a Reference (STAR) software is
6800 based on a previously undescribed RNA-seq alignment algorithm that uses
6801 sequential maximum mappable seed search in uncompressed suffix arrays followed
6802 by seed clustering and stitching procedure. In addition to unbiased de novo
6803 detection of canonical junctions, STAR can discover non-canonical splices and
6804 chimeric (fusion) transcripts, and is also capable of mapping full-length RNA
6805 sequences.")
6806 ;; Only 64-bit systems are supported according to the README.
6807 (supported-systems '("x86_64-linux" "mips64el-linux"))
6808 ;; STAR is licensed under GPLv3 or later; htslib is MIT-licensed.
6809 (license license:gpl3+)))
6810
6811 (define-public starlong
6812 (package (inherit star)
6813 (name "starlong")
6814 (arguments
6815 (substitute-keyword-arguments (package-arguments star)
6816 ((#:make-flags flags)
6817 `(list "STARlong"))
6818 ((#:phases phases)
6819 `(modify-phases ,phases
6820 ;; Allow extra long sequence reads.
6821 (add-after 'unpack 'make-extra-long
6822 (lambda _
6823 (substitute* "source/IncludeDefine.h"
6824 (("(#define DEF_readNameLengthMax ).*" _ match)
6825 (string-append match "900000\n")))
6826 #t))
6827 (replace 'install
6828 (lambda* (#:key outputs #:allow-other-keys)
6829 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6830 (install-file "STARlong" bin))
6831 #t))))))))
6832
6833 (define-public subread
6834 (package
6835 (name "subread")
6836 (version "1.6.0")
6837 (source (origin
6838 (method url-fetch)
6839 (uri (string-append "mirror://sourceforge/subread/subread-"
6840 version "/subread-" version "-source.tar.gz"))
6841 (sha256
6842 (base32
6843 "0ah0n4jx6ksk2m2j7xk385x2qzmk1y4rfc6a4mfrdqrlq721w99i"))))
6844 (build-system gnu-build-system)
6845 (arguments
6846 `(#:tests? #f ;no "check" target
6847 ;; The CC and CCFLAGS variables are set to contain a lot of x86_64
6848 ;; optimizations by default, so we override these flags such that x86_64
6849 ;; flags are only added when the build target is an x86_64 system.
6850 #:make-flags
6851 (list (let ((system ,(or (%current-target-system)
6852 (%current-system)))
6853 (flags '("-ggdb" "-fomit-frame-pointer"
6854 "-ffast-math" "-funroll-loops"
6855 "-fmessage-length=0"
6856 "-O9" "-Wall" "-DMAKE_FOR_EXON"
6857 "-DMAKE_STANDALONE"
6858 "-DSUBREAD_VERSION=\\\"${SUBREAD_VERSION}\\\""))
6859 (flags64 '("-mmmx" "-msse" "-msse2" "-msse3")))
6860 (if (string-prefix? "x86_64" system)
6861 (string-append "CCFLAGS=" (string-join (append flags flags64)))
6862 (string-append "CCFLAGS=" (string-join flags))))
6863 "-f" "Makefile.Linux"
6864 "CC=gcc ${CCFLAGS}")
6865 #:phases
6866 (modify-phases %standard-phases
6867 (add-after 'unpack 'enter-dir
6868 (lambda _ (chdir "src") #t))
6869 (replace 'install
6870 (lambda* (#:key outputs #:allow-other-keys)
6871 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6872 (mkdir-p bin)
6873 (copy-recursively "../bin" bin))
6874 #t))
6875 ;; no "configure" script
6876 (delete 'configure))))
6877 (inputs `(("zlib" ,zlib)))
6878 (home-page "http://bioinf.wehi.edu.au/subread-package/")
6879 (synopsis "Tool kit for processing next-gen sequencing data")
6880 (description
6881 "The subread package contains the following tools: subread aligner, a
6882 general-purpose read aligner; subjunc aligner: detecting exon-exon junctions
6883 and mapping RNA-seq reads; featureCounts: counting mapped reads for genomic
6884 features; exactSNP: a SNP caller that discovers SNPs by testing signals
6885 against local background noises.")
6886 (license license:gpl3+)))
6887
6888 (define-public stringtie
6889 (package
6890 (name "stringtie")
6891 (version "1.2.1")
6892 (source (origin
6893 (method url-fetch)
6894 (uri (string-append "http://ccb.jhu.edu/software/stringtie/dl/"
6895 "stringtie-" version ".tar.gz"))
6896 (sha256
6897 (base32
6898 "1cqllsc1maq4kh92isi8yadgzbmnf042hlnalpk3y59aph1z3bfz"))
6899 (modules '((guix build utils)))
6900 (snippet
6901 '(begin
6902 (delete-file-recursively "samtools-0.1.18")
6903 #t))))
6904 (build-system gnu-build-system)
6905 (arguments
6906 `(#:tests? #f ;no test suite
6907 #:phases
6908 (modify-phases %standard-phases
6909 ;; no configure script
6910 (delete 'configure)
6911 (add-before 'build 'use-system-samtools
6912 (lambda _
6913 (substitute* "Makefile"
6914 (("stringtie: \\$\\{BAM\\}/libbam\\.a")
6915 "stringtie: "))
6916 (substitute* '("gclib/GBam.h"
6917 "gclib/GBam.cpp")
6918 (("#include \"(bam|sam|kstring).h\"" _ header)
6919 (string-append "#include <samtools/" header ".h>")))
6920 #t))
6921 (add-after 'unpack 'remove-duplicate-typedef
6922 (lambda _
6923 ;; This typedef conflicts with the typedef in
6924 ;; glibc-2.25/include/bits/types.h
6925 (substitute* "gclib/GThreads.h"
6926 (("typedef long long __intmax_t;") ""))
6927 #t))
6928 (replace 'install
6929 (lambda* (#:key outputs #:allow-other-keys)
6930 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6931 (install-file "stringtie" bin)
6932 #t))))))
6933 (inputs
6934 `(("samtools" ,samtools-0.1)
6935 ("zlib" ,zlib)))
6936 (home-page "http://ccb.jhu.edu/software/stringtie/")
6937 (synopsis "Transcript assembly and quantification for RNA-Seq data")
6938 (description
6939 "StringTie is a fast and efficient assembler of RNA-Seq sequence
6940 alignments into potential transcripts. It uses a novel network flow algorithm
6941 as well as an optional de novo assembly step to assemble and quantitate
6942 full-length transcripts representing multiple splice variants for each gene
6943 locus. Its input can include not only the alignments of raw reads used by
6944 other transcript assemblers, but also alignments of longer sequences that have
6945 been assembled from those reads. To identify differentially expressed genes
6946 between experiments, StringTie's output can be processed either by the
6947 Cuffdiff or Ballgown programs.")
6948 (license license:artistic2.0)))
6949
6950 (define-public taxtastic
6951 (package
6952 (name "taxtastic")
6953 (version "0.8.11")
6954 (source (origin
6955 ;; The Pypi version does not include tests.
6956 (method git-fetch)
6957 (uri (git-reference
6958 (url "https://github.com/fhcrc/taxtastic")
6959 (commit (string-append "v" version))))
6960 (file-name (git-file-name name version))
6961 (sha256
6962 (base32
6963 "1sv8mkg64jn7zdwf1jj71c16686yrwxk0apb1l8sjszy9p166g0p"))))
6964 (build-system python-build-system)
6965 (arguments
6966 `(#:phases
6967 (modify-phases %standard-phases
6968 (add-after 'unpack 'prepare-directory
6969 (lambda _
6970 ;; The git checkout must be writable for tests.
6971 (for-each make-file-writable (find-files "."))
6972 ;; This test fails, but the error is not caught by the test
6973 ;; framework, so the tests fail...
6974 (substitute* "tests/test_taxit.py"
6975 (("self.cmd_fails\\(''\\)")
6976 "self.cmd_fails('nothing')"))
6977 ;; This version file is expected to be created with git describe.
6978 (mkdir-p "taxtastic/data")
6979 (with-output-to-file "taxtastic/data/ver"
6980 (lambda () (display ,version)))
6981 #t))
6982 (add-after 'unpack 'python37-compatibility
6983 (lambda _
6984 (substitute* "taxtastic/utils.py"
6985 (("import csv") "import csv, errno")
6986 (("os.errno") "errno"))
6987 #t))
6988 (replace 'check
6989 ;; Note, this fails to run with "-v" as it tries to write to a
6990 ;; closed output stream.
6991 (lambda _ (invoke "python" "-m" "unittest") #t)))))
6992 (propagated-inputs
6993 `(("python-sqlalchemy" ,python-sqlalchemy)
6994 ("python-decorator" ,python-decorator)
6995 ("python-biopython" ,python-biopython)
6996 ("python-pandas" ,python-pandas)
6997 ("python-psycopg2" ,python-psycopg2)
6998 ("python-fastalite" ,python-fastalite)
6999 ("python-pyyaml" ,python-pyyaml)
7000 ("python-six" ,python-six)
7001 ("python-jinja2" ,python-jinja2)
7002 ("python-dendropy" ,python-dendropy)))
7003 (home-page "https://github.com/fhcrc/taxtastic")
7004 (synopsis "Tools for taxonomic naming and annotation")
7005 (description
7006 "Taxtastic is software written in python used to build and maintain
7007 reference packages i.e. collections of reference trees, reference alignments,
7008 profiles, and associated taxonomic information.")
7009 (license license:gpl3+)))
7010
7011 (define-public vcftools
7012 (package
7013 (name "vcftools")
7014 (version "0.1.16")
7015 (source (origin
7016 (method url-fetch)
7017 (uri (string-append
7018 "https://github.com/vcftools/vcftools/releases/download/v"
7019 version "/vcftools-" version ".tar.gz"))
7020 (sha256
7021 (base32
7022 "1qqlx7flfv7axrjwkaz6njkscsl1d0jw98ns8d8bh1n1hd1pgz6v"))))
7023 (build-system gnu-build-system)
7024 (arguments
7025 `(#:tests? #f ; no "check" target
7026 #:make-flags (list
7027 "CFLAGS=-O2" ; override "-m64" flag
7028 (string-append "PREFIX=" (assoc-ref %outputs "out"))
7029 (string-append "MANDIR=" (assoc-ref %outputs "out")
7030 "/share/man/man1"))))
7031 (native-inputs
7032 `(("pkg-config" ,pkg-config)))
7033 (inputs
7034 `(("perl" ,perl)
7035 ("zlib" ,zlib)))
7036 (home-page "https://vcftools.github.io/")
7037 (synopsis "Tools for working with VCF files")
7038 (description
7039 "VCFtools is a program package designed for working with VCF files, such
7040 as those generated by the 1000 Genomes Project. The aim of VCFtools is to
7041 provide easily accessible methods for working with complex genetic variation
7042 data in the form of VCF files.")
7043 ;; The license is declared as LGPLv3 in the README and
7044 ;; at https://vcftools.github.io/license.html
7045 (license license:lgpl3)))
7046
7047 (define-public infernal
7048 (package
7049 (name "infernal")
7050 (version "1.1.3")
7051 (source (origin
7052 (method url-fetch)
7053 (uri (string-append "http://eddylab.org/software/infernal/"
7054 "infernal-" version ".tar.gz"))
7055 (sha256
7056 (base32
7057 "0pm8bm3s6nfa0av4x6m6h27lsg12b3lz3jm0fyh1mc77l2isd61v"))))
7058 (build-system gnu-build-system)
7059 (native-inputs
7060 `(("perl" ,perl)
7061 ("python" ,python))) ; for tests
7062 (home-page "http://eddylab.org/infernal/")
7063 (synopsis "Inference of RNA alignments")
7064 (description "Infernal (\"INFERence of RNA ALignment\") is a tool for
7065 searching DNA sequence databases for RNA structure and sequence similarities.
7066 It is an implementation of a special case of profile stochastic context-free
7067 grammars called @dfn{covariance models} (CMs). A CM is like a sequence
7068 profile, but it scores a combination of sequence consensus and RNA secondary
7069 structure consensus, so in many cases, it is more capable of identifying RNA
7070 homologs that conserve their secondary structure more than their primary
7071 sequence.")
7072 ;; Infernal 1.1.3 requires VMX or SSE capability for parallel instructions.
7073 (supported-systems '("i686-linux" "x86_64-linux"))
7074 (license license:bsd-3)))
7075
7076 (define-public r-scde
7077 (package
7078 (name "r-scde")
7079 (version "1.99.2")
7080 (source (origin
7081 (method git-fetch)
7082 (uri (git-reference
7083 (url "https://github.com/hms-dbmi/scde")
7084 (commit version)))
7085 (file-name (git-file-name name version))
7086 (sha256
7087 (base32
7088 "10na2gyka24mszdxf92wz9h2c13hdf1ww30c68gfsw53lvvhhhxb"))))
7089 (build-system r-build-system)
7090 (propagated-inputs
7091 `(("r-rcpp" ,r-rcpp)
7092 ("r-rcpparmadillo" ,r-rcpparmadillo)
7093 ("r-mgcv" ,r-mgcv)
7094 ("r-rook" ,r-rook)
7095 ("r-rjson" ,r-rjson)
7096 ("r-cairo" ,r-cairo)
7097 ("r-rcolorbrewer" ,r-rcolorbrewer)
7098 ("r-edger" ,r-edger)
7099 ("r-quantreg" ,r-quantreg)
7100 ("r-nnet" ,r-nnet)
7101 ("r-rmtstat" ,r-rmtstat)
7102 ("r-extremes" ,r-extremes)
7103 ("r-pcamethods" ,r-pcamethods)
7104 ("r-biocparallel" ,r-biocparallel)
7105 ("r-flexmix" ,r-flexmix)))
7106 (home-page "https://hms-dbmi.github.io/scde/")
7107 (synopsis "R package for analyzing single-cell RNA-seq data")
7108 (description "The SCDE package implements a set of statistical methods for
7109 analyzing single-cell RNA-seq data. SCDE fits individual error models for
7110 single-cell RNA-seq measurements. These models can then be used for
7111 assessment of differential expression between groups of cells, as well as
7112 other types of analysis. The SCDE package also contains the pagoda framework
7113 which applies pathway and gene set overdispersion analysis to identify aspects
7114 of transcriptional heterogeneity among single cells.")
7115 ;; See https://github.com/hms-dbmi/scde/issues/38
7116 (license license:gpl2)))
7117
7118 (define-public r-centipede
7119 (package
7120 (name "r-centipede")
7121 (version "1.2")
7122 (source (origin
7123 (method url-fetch)
7124 (uri (string-append "http://download.r-forge.r-project.org/"
7125 "src/contrib/CENTIPEDE_" version ".tar.gz"))
7126 (sha256
7127 (base32
7128 "1hsx6qgwr0i67fhy9257zj7s0ppncph2hjgbia5nn6nfmj0ax6l9"))))
7129 (build-system r-build-system)
7130 (home-page "http://centipede.uchicago.edu/")
7131 (synopsis "Predict transcription factor binding sites")
7132 (description
7133 "CENTIPEDE applies a hierarchical Bayesian mixture model to infer regions
7134 of the genome that are bound by particular transcription factors. It starts
7135 by identifying a set of candidate binding sites, and then aims to classify the
7136 sites according to whether each site is bound or not bound by a transcription
7137 factor. CENTIPEDE is an unsupervised learning algorithm that discriminates
7138 between two different types of motif instances using as much relevant
7139 information as possible.")
7140 (license (list license:gpl2+ license:gpl3+))))
7141
7142 (define-public r-genefilter
7143 (package
7144 (name "r-genefilter")
7145 (version "1.72.0")
7146 (source
7147 (origin
7148 (method url-fetch)
7149 (uri (bioconductor-uri "genefilter" version))
7150 (sha256
7151 (base32
7152 "0929g6c4v2qhgipgrh1a5gv6444sm2dp52x9c3qbk03i8wzc6633"))))
7153 (build-system r-build-system)
7154 (native-inputs
7155 `(("gfortran" ,gfortran)
7156 ("r-knitr" ,r-knitr)))
7157 (propagated-inputs
7158 `(("r-annotate" ,r-annotate)
7159 ("r-annotationdbi" ,r-annotationdbi)
7160 ("r-biobase" ,r-biobase)
7161 ("r-biocgenerics" ,r-biocgenerics)
7162 ("r-survival" ,r-survival)))
7163 (home-page "https://bioconductor.org/packages/genefilter")
7164 (synopsis "Filter genes from high-throughput experiments")
7165 (description
7166 "This package provides basic functions for filtering genes from
7167 high-throughput sequencing experiments.")
7168 (license license:artistic2.0)))
7169
7170 (define-public r-deseq2
7171 (package
7172 (name "r-deseq2")
7173 (version "1.30.0")
7174 (source
7175 (origin
7176 (method url-fetch)
7177 (uri (bioconductor-uri "DESeq2" version))
7178 (sha256
7179 (base32
7180 "0q2f9cywrcmp1p7ii8f45g4dk4hsnjflq3yqhsxgnpv9fw338qpp"))))
7181 (properties `((upstream-name . "DESeq2")))
7182 (build-system r-build-system)
7183 (propagated-inputs
7184 `(("r-biobase" ,r-biobase)
7185 ("r-biocgenerics" ,r-biocgenerics)
7186 ("r-biocparallel" ,r-biocparallel)
7187 ("r-genefilter" ,r-genefilter)
7188 ("r-geneplotter" ,r-geneplotter)
7189 ("r-genomicranges" ,r-genomicranges)
7190 ("r-ggplot2" ,r-ggplot2)
7191 ("r-iranges" ,r-iranges)
7192 ("r-locfit" ,r-locfit)
7193 ("r-rcpp" ,r-rcpp)
7194 ("r-rcpparmadillo" ,r-rcpparmadillo)
7195 ("r-s4vectors" ,r-s4vectors)
7196 ("r-summarizedexperiment" ,r-summarizedexperiment)))
7197 (native-inputs
7198 `(("r-knitr" ,r-knitr)))
7199 (home-page "https://bioconductor.org/packages/DESeq2")
7200 (synopsis "Differential gene expression analysis")
7201 (description
7202 "This package provides functions to estimate variance-mean dependence in
7203 count data from high-throughput nucleotide sequencing assays and test for
7204 differential expression based on a model using the negative binomial
7205 distribution.")
7206 (license license:lgpl3+)))
7207
7208 (define-public r-dexseq
7209 (package
7210 (name "r-dexseq")
7211 (version "1.36.0")
7212 (source
7213 (origin
7214 (method url-fetch)
7215 (uri (bioconductor-uri "DEXSeq" version))
7216 (sha256
7217 (base32
7218 "0wfjb42xcr4wjy8a654b74411dky8hp6sp8xdwf0sxqgsxy106qi"))))
7219 (properties `((upstream-name . "DEXSeq")))
7220 (build-system r-build-system)
7221 (propagated-inputs
7222 `(("r-annotationdbi" ,r-annotationdbi)
7223 ("r-biobase" ,r-biobase)
7224 ("r-biocgenerics" ,r-biocgenerics)
7225 ("r-biocparallel" ,r-biocparallel)
7226 ("r-biomart" ,r-biomart)
7227 ("r-deseq2" ,r-deseq2)
7228 ("r-genefilter" ,r-genefilter)
7229 ("r-geneplotter" ,r-geneplotter)
7230 ("r-genomicranges" ,r-genomicranges)
7231 ("r-hwriter" ,r-hwriter)
7232 ("r-iranges" ,r-iranges)
7233 ("r-rcolorbrewer" ,r-rcolorbrewer)
7234 ("r-rsamtools" ,r-rsamtools)
7235 ("r-s4vectors" ,r-s4vectors)
7236 ("r-statmod" ,r-statmod)
7237 ("r-stringr" ,r-stringr)
7238 ("r-summarizedexperiment" ,r-summarizedexperiment)))
7239 (native-inputs
7240 `(("r-knitr" ,r-knitr)))
7241 (home-page "https://bioconductor.org/packages/DEXSeq")
7242 (synopsis "Inference of differential exon usage in RNA-Seq")
7243 (description
7244 "This package is focused on finding differential exon usage using RNA-seq
7245 exon counts between samples with different experimental designs. It provides
7246 functions that allows the user to make the necessary statistical tests based
7247 on a model that uses the negative binomial distribution to estimate the
7248 variance between biological replicates and generalized linear models for
7249 testing. The package also provides functions for the visualization and
7250 exploration of the results.")
7251 (license license:gpl3+)))
7252
7253 (define-public r-annotationforge
7254 (package
7255 (name "r-annotationforge")
7256 (version "1.32.0")
7257 (source
7258 (origin
7259 (method url-fetch)
7260 (uri (bioconductor-uri "AnnotationForge" version))
7261 (sha256
7262 (base32
7263 "0y3820dkvwz09wlmz9drx6gqpsr9cwppaiz40zafwfxbz65y8px7"))))
7264 (properties
7265 `((upstream-name . "AnnotationForge")))
7266 (build-system r-build-system)
7267 (propagated-inputs
7268 `(("r-annotationdbi" ,r-annotationdbi)
7269 ("r-biobase" ,r-biobase)
7270 ("r-biocgenerics" ,r-biocgenerics)
7271 ("r-dbi" ,r-dbi)
7272 ("r-rcurl" ,r-rcurl)
7273 ("r-rsqlite" ,r-rsqlite)
7274 ("r-s4vectors" ,r-s4vectors)
7275 ("r-xml" ,r-xml)))
7276 (native-inputs
7277 `(("r-knitr" ,r-knitr)))
7278 (home-page "https://bioconductor.org/packages/AnnotationForge")
7279 (synopsis "Code for building annotation database packages")
7280 (description
7281 "This package provides code for generating Annotation packages and their
7282 databases. Packages produced are intended to be used with AnnotationDbi.")
7283 (license license:artistic2.0)))
7284
7285 (define-public r-rbgl
7286 (package
7287 (name "r-rbgl")
7288 (version "1.66.0")
7289 (source
7290 (origin
7291 (method url-fetch)
7292 (uri (bioconductor-uri "RBGL" version))
7293 (sha256
7294 (base32
7295 "016vyzgixb3gjpzi21rbs6ngnnqcxr77krwjjf1ldnzzj8vqrqsz"))))
7296 (properties `((upstream-name . "RBGL")))
7297 (build-system r-build-system)
7298 (propagated-inputs
7299 `(("r-bh" ,r-bh)
7300 ("r-graph" ,r-graph)))
7301 (home-page "https://www.bioconductor.org/packages/RBGL")
7302 (synopsis "Interface to the Boost graph library")
7303 (description
7304 "This package provides a fairly extensive and comprehensive interface to
7305 the graph algorithms contained in the Boost library.")
7306 (license license:artistic2.0)))
7307
7308 (define-public r-gseabase
7309 (package
7310 (name "r-gseabase")
7311 (version "1.52.0")
7312 (source
7313 (origin
7314 (method url-fetch)
7315 (uri (bioconductor-uri "GSEABase" version))
7316 (sha256
7317 (base32
7318 "0lcxbxfg62zdf2nql49asn3555cqrrxpjm2xsxf7vlxv84dl6r44"))))
7319 (properties `((upstream-name . "GSEABase")))
7320 (build-system r-build-system)
7321 (propagated-inputs
7322 `(("r-annotate" ,r-annotate)
7323 ("r-annotationdbi" ,r-annotationdbi)
7324 ("r-biobase" ,r-biobase)
7325 ("r-biocgenerics" ,r-biocgenerics)
7326 ("r-graph" ,r-graph)
7327 ("r-xml" ,r-xml)))
7328 (native-inputs
7329 `(("r-knitr" ,r-knitr)))
7330 (home-page "https://bioconductor.org/packages/GSEABase")
7331 (synopsis "Gene set enrichment data structures and methods")
7332 (description
7333 "This package provides classes and methods to support @dfn{Gene Set
7334 Enrichment Analysis} (GSEA).")
7335 (license license:artistic2.0)))
7336
7337 (define-public r-category
7338 (package
7339 (name "r-category")
7340 (version "2.56.0")
7341 (source
7342 (origin
7343 (method url-fetch)
7344 (uri (bioconductor-uri "Category" version))
7345 (sha256
7346 (base32
7347 "0m77wpnica0h2ia9ajdaiga4plgz1s9wls6pdnxzk7kwl8a68wkr"))))
7348 (properties `((upstream-name . "Category")))
7349 (build-system r-build-system)
7350 (propagated-inputs
7351 `(("r-annotate" ,r-annotate)
7352 ("r-annotationdbi" ,r-annotationdbi)
7353 ("r-biobase" ,r-biobase)
7354 ("r-biocgenerics" ,r-biocgenerics)
7355 ("r-genefilter" ,r-genefilter)
7356 ("r-graph" ,r-graph)
7357 ("r-gseabase" ,r-gseabase)
7358 ("r-matrix" ,r-matrix)
7359 ("r-rbgl" ,r-rbgl)
7360 ("r-dbi" ,r-dbi)))
7361 (home-page "https://bioconductor.org/packages/Category")
7362 (synopsis "Category analysis")
7363 (description
7364 "This package provides a collection of tools for performing category
7365 analysis.")
7366 (license license:artistic2.0)))
7367
7368 (define-public r-gostats
7369 (package
7370 (name "r-gostats")
7371 (version "2.56.0")
7372 (source
7373 (origin
7374 (method url-fetch)
7375 (uri (bioconductor-uri "GOstats" version))
7376 (sha256
7377 (base32
7378 "18q8p0fv9fl2r6zjxknfjwqxr69dlyxy6c8amzn6c6dwjq1cxk6j"))))
7379 (properties `((upstream-name . "GOstats")))
7380 (build-system r-build-system)
7381 (propagated-inputs
7382 `(("r-annotate" ,r-annotate)
7383 ("r-annotationdbi" ,r-annotationdbi)
7384 ("r-annotationforge" ,r-annotationforge)
7385 ("r-biobase" ,r-biobase)
7386 ("r-category" ,r-category)
7387 ("r-go-db" ,r-go-db)
7388 ("r-graph" ,r-graph)
7389 ("r-rgraphviz" ,r-rgraphviz)
7390 ("r-rbgl" ,r-rbgl)))
7391 (home-page "https://bioconductor.org/packages/GOstats")
7392 (synopsis "Tools for manipulating GO and microarrays")
7393 (description
7394 "This package provides a set of tools for interacting with GO and
7395 microarray data. A variety of basic manipulation tools for graphs, hypothesis
7396 testing and other simple calculations.")
7397 (license license:artistic2.0)))
7398
7399 (define-public r-shortread
7400 (package
7401 (name "r-shortread")
7402 (version "1.48.0")
7403 (source
7404 (origin
7405 (method url-fetch)
7406 (uri (bioconductor-uri "ShortRead" version))
7407 (sha256
7408 (base32
7409 "0w4m8d3h660mmr2ymp206r1n4aqssxmkv8yxkbr5y1swrahxzfk9"))))
7410 (properties `((upstream-name . "ShortRead")))
7411 (build-system r-build-system)
7412 (inputs
7413 `(("zlib" ,zlib)))
7414 (propagated-inputs
7415 `(("r-biobase" ,r-biobase)
7416 ("r-biocgenerics" ,r-biocgenerics)
7417 ("r-biocparallel" ,r-biocparallel)
7418 ("r-biostrings" ,r-biostrings)
7419 ("r-genomeinfodb" ,r-genomeinfodb)
7420 ("r-genomicalignments" ,r-genomicalignments)
7421 ("r-genomicranges" ,r-genomicranges)
7422 ("r-rhtslib" ,r-rhtslib)
7423 ("r-hwriter" ,r-hwriter)
7424 ("r-iranges" ,r-iranges)
7425 ("r-lattice" ,r-lattice)
7426 ("r-latticeextra" ,r-latticeextra)
7427 ("r-rsamtools" ,r-rsamtools)
7428 ("r-s4vectors" ,r-s4vectors)
7429 ("r-xvector" ,r-xvector)
7430 ("r-zlibbioc" ,r-zlibbioc)))
7431 (home-page "https://bioconductor.org/packages/ShortRead")
7432 (synopsis "FASTQ input and manipulation tools")
7433 (description
7434 "This package implements sampling, iteration, and input of FASTQ files.
7435 It includes functions for filtering and trimming reads, and for generating a
7436 quality assessment report. Data are represented as
7437 @code{DNAStringSet}-derived objects, and easily manipulated for a diversity of
7438 purposes. The package also contains legacy support for early single-end,
7439 ungapped alignment formats.")
7440 (license license:artistic2.0)))
7441
7442 (define-public r-systempiper
7443 (package
7444 (name "r-systempiper")
7445 (version "1.24.2")
7446 (source
7447 (origin
7448 (method url-fetch)
7449 (uri (bioconductor-uri "systemPipeR" version))
7450 (sha256
7451 (base32
7452 "0blvvci57q12sl18yvw07233rfnj47mfadzm0pdpig1ll5z6ld2j"))))
7453 (properties `((upstream-name . "systemPipeR")))
7454 (build-system r-build-system)
7455 (propagated-inputs
7456 `(("r-annotate" ,r-annotate)
7457 ("r-assertthat" ,r-assertthat)
7458 ("r-batchtools" ,r-batchtools)
7459 ("r-biostrings" ,r-biostrings)
7460 ("r-deseq2" ,r-deseq2)
7461 ("r-dot" ,r-dot)
7462 ("r-edger" ,r-edger)
7463 ("r-genomicfeatures" ,r-genomicfeatures)
7464 ("r-genomicranges" ,r-genomicranges)
7465 ("r-ggplot2" ,r-ggplot2)
7466 ("r-go-db" ,r-go-db)
7467 ("r-gostats" ,r-gostats)
7468 ("r-iranges" ,r-iranges)
7469 ("r-limma" ,r-limma)
7470 ("r-magrittr" ,r-magrittr)
7471 ("r-pheatmap" ,r-pheatmap)
7472 ("r-rjson" ,r-rjson)
7473 ("r-rsamtools" ,r-rsamtools)
7474 ("r-rsvg" ,r-rsvg)
7475 ("r-shortread" ,r-shortread)
7476 ("r-stringr" ,r-stringr)
7477 ("r-summarizedexperiment" ,r-summarizedexperiment)
7478 ("r-yaml" ,r-yaml)
7479 ("r-variantannotation" ,r-variantannotation)))
7480 (native-inputs
7481 `(("r-knitr" ,r-knitr)))
7482 (home-page "https://github.com/tgirke/systemPipeR")
7483 (synopsis "Next generation sequencing workflow and reporting environment")
7484 (description
7485 "This R package provides tools for building and running automated
7486 end-to-end analysis workflows for a wide range of @dfn{next generation
7487 sequence} (NGS) applications such as RNA-Seq, ChIP-Seq, VAR-Seq and Ribo-Seq.
7488 Important features include a uniform workflow interface across different NGS
7489 applications, automated report generation, and support for running both R and
7490 command-line software, such as NGS aligners or peak/variant callers, on local
7491 computers or compute clusters. Efficient handling of complex sample sets and
7492 experimental designs is facilitated by a consistently implemented sample
7493 annotation infrastructure.")
7494 (license license:artistic2.0)))
7495
7496 (define-public r-grohmm
7497 (package
7498 (name "r-grohmm")
7499 (version "1.24.0")
7500 (source
7501 (origin
7502 (method url-fetch)
7503 (uri (bioconductor-uri "groHMM" version))
7504 (sha256
7505 (base32
7506 "08pap9wsaxl4jjlc1py0rc019gmi6daa0f9cr3ih1d97wybncanx"))))
7507 (properties `((upstream-name . "groHMM")))
7508 (build-system r-build-system)
7509 (propagated-inputs
7510 `(("r-genomeinfodb" ,r-genomeinfodb)
7511 ("r-genomicalignments" ,r-genomicalignments)
7512 ("r-genomicranges" ,r-genomicranges)
7513 ("r-iranges" ,r-iranges)
7514 ("r-mass" ,r-mass)
7515 ("r-rtracklayer" ,r-rtracklayer)
7516 ("r-s4vectors" ,r-s4vectors)))
7517 (home-page "https://github.com/Kraus-Lab/groHMM")
7518 (synopsis "GRO-seq analysis pipeline")
7519 (description
7520 "This package provides a pipeline for the analysis of GRO-seq data.")
7521 (license license:gpl3+)))
7522
7523 (define-public vsearch
7524 (package
7525 (name "vsearch")
7526 (version "2.9.1")
7527 (source
7528 (origin
7529 (method git-fetch)
7530 (uri (git-reference
7531 (url "https://github.com/torognes/vsearch")
7532 (commit (string-append "v" version))))
7533 (file-name (git-file-name name version))
7534 (sha256
7535 (base32
7536 "0vhrpjfdf75ba04b24xknp41790cvcgwl0vgpy7qbzj5xh2521ss"))
7537 (patches (search-patches "vsearch-unbundle-cityhash.patch"))
7538 (snippet
7539 '(begin
7540 ;; Remove bundled cityhash sources. The vsearch source is adjusted
7541 ;; for this in the patch.
7542 (delete-file "src/city.h")
7543 (delete-file "src/citycrc.h")
7544 (delete-file "src/city.cc")
7545 #t))))
7546 (build-system gnu-build-system)
7547 (inputs
7548 `(("zlib" ,zlib)
7549 ("bzip2" ,bzip2)
7550 ("cityhash" ,cityhash)))
7551 (native-inputs
7552 `(("autoconf" ,autoconf)
7553 ("automake" ,automake)))
7554 (synopsis "Sequence search tools for metagenomics")
7555 (description
7556 "VSEARCH supports DNA sequence searching, clustering, chimera detection,
7557 dereplication, pairwise alignment, shuffling, subsampling, sorting and
7558 masking. The tool takes advantage of parallelism in the form of SIMD
7559 vectorization as well as multiple threads to perform accurate alignments at
7560 high speed. VSEARCH uses an optimal global aligner (full dynamic programming
7561 Needleman-Wunsch).")
7562 (home-page "https://github.com/torognes/vsearch")
7563 ;; vsearch uses non-portable SSE intrinsics so building fails on other
7564 ;; platforms.
7565 (supported-systems '("x86_64-linux"))
7566 ;; Dual licensed; also includes public domain source.
7567 (license (list license:gpl3 license:bsd-2))))
7568
7569 (define-public pardre
7570 (package
7571 (name "pardre")
7572 ;; The source of 1.1.5 changed in place, so we append "-1" to the version.
7573 (version "1.1.5-1")
7574 (source
7575 (origin
7576 (method url-fetch)
7577 (uri (string-append "mirror://sourceforge/pardre/ParDRe-rel"
7578 "1.1.5" ".tar.gz"))
7579 (sha256
7580 (base32
7581 "17j73nc0viq4f6qj50nrndsrif5d6b71q8fl87m54psiv0ilns2b"))))
7582 (build-system gnu-build-system)
7583 (arguments
7584 `(#:tests? #f ; no tests included
7585 #:phases
7586 (modify-phases %standard-phases
7587 (delete 'configure)
7588 (replace 'install
7589 (lambda* (#:key outputs #:allow-other-keys)
7590 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
7591 (install-file "ParDRe" bin)
7592 #t))))))
7593 (inputs
7594 `(("openmpi" ,openmpi)
7595 ("zlib" ,zlib)))
7596 (synopsis "Parallel tool to remove duplicate DNA reads")
7597 (description
7598 "ParDRe is a parallel tool to remove duplicate genetic sequence reads.
7599 Duplicate reads can be seen as identical or nearly identical sequences with
7600 some mismatches. This tool lets users avoid the analysis of unnecessary
7601 reads, reducing the time of subsequent procedures with the
7602 dataset (e.g. assemblies, mappings, etc.). The tool is implemented with MPI
7603 in order to exploit the parallel capabilities of multicore clusters. It is
7604 faster than multithreaded counterparts (end of 2015) for the same number of
7605 cores and, thanks to the message-passing technology, it can be executed on
7606 clusters.")
7607 (home-page "https://sourceforge.net/projects/pardre/")
7608 (license license:gpl3+)))
7609
7610 (define-public ruby-bio-kseq
7611 (package
7612 (name "ruby-bio-kseq")
7613 (version "0.0.2")
7614 (source
7615 (origin
7616 (method url-fetch)
7617 (uri (rubygems-uri "bio-kseq" version))
7618 (sha256
7619 (base32
7620 "1xyaha46khb5jc6wzkbf7040jagac49jbimn0vcrzid0j8jdikrz"))))
7621 (build-system ruby-build-system)
7622 (arguments
7623 `(#:test-target "spec"))
7624 (native-inputs
7625 `(("bundler" ,bundler)
7626 ("ruby-rspec" ,ruby-rspec)
7627 ("ruby-rake-compiler" ,ruby-rake-compiler)))
7628 (inputs
7629 `(("zlib" ,zlib)))
7630 (synopsis "Ruby bindings for the kseq.h FASTA/Q parser")
7631 (description
7632 "@code{Bio::Kseq} provides ruby bindings to the @code{kseq.h} FASTA and
7633 FASTQ parsing code. It provides a fast iterator over sequences and their
7634 quality scores.")
7635 (home-page "https://github.com/gusevfe/bio-kseq")
7636 (license license:expat)))
7637
7638 (define-public bio-locus
7639 (package
7640 (name "bio-locus")
7641 (version "0.0.7")
7642 (source
7643 (origin
7644 (method url-fetch)
7645 (uri (rubygems-uri "bio-locus" version))
7646 (sha256
7647 (base32
7648 "02vmrxyimkj9sahsp4zhfhnmbvz6dbbqz1y01vglf8cbwvkajfl0"))))
7649 (build-system ruby-build-system)
7650 (native-inputs
7651 `(("ruby-rspec" ,ruby-rspec)))
7652 (synopsis "Tool for fast querying of genome locations")
7653 (description
7654 "Bio-locus is a tabix-like tool for fast querying of genome
7655 locations. Many file formats in bioinformatics contain records that
7656 start with a chromosome name and a position for a SNP, or a start-end
7657 position for indels. Bio-locus allows users to store this chr+pos or
7658 chr+pos+alt information in a database.")
7659 (home-page "https://github.com/pjotrp/bio-locus")
7660 (license license:expat)))
7661
7662 (define-public bio-blastxmlparser
7663 (package
7664 (name "bio-blastxmlparser")
7665 (version "2.0.4")
7666 (source (origin
7667 (method url-fetch)
7668 (uri (rubygems-uri "bio-blastxmlparser" version))
7669 (sha256
7670 (base32
7671 "1wf4qygcmdjgcqm6flmvsagfr1gs9lf63mj32qv3z1f481zc5692"))))
7672 (build-system ruby-build-system)
7673 (propagated-inputs
7674 `(("ruby-bio-logger" ,ruby-bio-logger)
7675 ("ruby-nokogiri" ,ruby-nokogiri)))
7676 (inputs
7677 `(("ruby-rspec" ,ruby-rspec)))
7678 (synopsis "Fast big data BLAST XML parser and library")
7679 (description
7680 "Very fast parallel big-data BLAST XML file parser which can be used as
7681 command line utility. Use blastxmlparser to: Parse BLAST XML; filter output;
7682 generate FASTA, JSON, YAML, RDF, JSON-LD, HTML, CSV, tabular output etc.")
7683 (home-page "https://github.com/pjotrp/blastxmlparser")
7684 (license license:expat)))
7685
7686 (define-public bioruby
7687 (package
7688 (name "bioruby")
7689 (version "1.5.2")
7690 (source
7691 (origin
7692 (method url-fetch)
7693 (uri (rubygems-uri "bio" version))
7694 (sha256
7695 (base32
7696 "1d56amdsjv1mag7m6gv2w0xij8hqx1v5xbdjsix8sp3yp36m7938"))))
7697 (build-system ruby-build-system)
7698 (propagated-inputs
7699 `(("ruby-libxml" ,ruby-libxml)))
7700 (native-inputs
7701 `(("which" ,which))) ; required for test phase
7702 (arguments
7703 `(#:phases
7704 (modify-phases %standard-phases
7705 (add-before 'build 'patch-test-command
7706 (lambda _
7707 (substitute* '("test/functional/bio/test_command.rb")
7708 (("/bin/sh") (which "sh")))
7709 (substitute* '("test/functional/bio/test_command.rb")
7710 (("/bin/ls") (which "ls")))
7711 (substitute* '("test/functional/bio/test_command.rb")
7712 (("which") (which "which")))
7713 (substitute* '("test/functional/bio/test_command.rb",
7714 "test/data/command/echoarg2.sh")
7715 (("/bin/echo") (which "echo")))
7716 #t)))))
7717 (synopsis "Ruby library, shell and utilities for bioinformatics")
7718 (description "BioRuby comes with a comprehensive set of Ruby development
7719 tools and libraries for bioinformatics and molecular biology. BioRuby has
7720 components for sequence analysis, pathway analysis, protein modelling and
7721 phylogenetic analysis; it supports many widely used data formats and provides
7722 easy access to databases, external programs and public web services, including
7723 BLAST, KEGG, GenBank, MEDLINE and GO.")
7724 (home-page "http://bioruby.org/")
7725 ;; Code is released under Ruby license, except for setup
7726 ;; (LGPLv2.1+) and scripts in samples (which have GPL2 and GPL2+)
7727 (license (list license:ruby license:lgpl2.1+ license:gpl2+ ))))
7728
7729 (define-public r-biocviews
7730 (package
7731 (name "r-biocviews")
7732 (version "1.58.0")
7733 (source (origin
7734 (method url-fetch)
7735 (uri (bioconductor-uri "biocViews" version))
7736 (sha256
7737 (base32
7738 "0f0aa51h9x8n114zz6q6iw45d78i9wzl4ycbpiy0bdn23167pd84"))))
7739 (properties
7740 `((upstream-name . "biocViews")))
7741 (build-system r-build-system)
7742 (propagated-inputs
7743 `(("r-biobase" ,r-biobase)
7744 ("r-biocmanager" ,r-biocmanager)
7745 ("r-graph" ,r-graph)
7746 ("r-rbgl" ,r-rbgl)
7747 ("r-rcurl" ,r-rcurl)
7748 ("r-xml" ,r-xml)
7749 ("r-runit" ,r-runit)))
7750 (home-page "https://bioconductor.org/packages/biocViews")
7751 (synopsis "Bioconductor package categorization helper")
7752 (description "The purpose of biocViews is to create HTML pages that
7753 categorize packages in a Bioconductor package repository according to keywords,
7754 also known as views, in a controlled vocabulary.")
7755 (license license:artistic2.0)))
7756
7757 (define-public r-biocstyle
7758 (package
7759 (name "r-biocstyle")
7760 (version "2.18.0")
7761 (source (origin
7762 (method url-fetch)
7763 (uri (bioconductor-uri "BiocStyle" version))
7764 (sha256
7765 (base32
7766 "1hfdvld0n9py45mxm05kbb0sq0s9p8yky3s6jb02gzhlxkk3q4fs"))))
7767 (properties
7768 `((upstream-name . "BiocStyle")))
7769 (build-system r-build-system)
7770 (propagated-inputs
7771 `(("r-biocmanager" ,r-biocmanager)
7772 ("r-bookdown" ,r-bookdown)
7773 ("r-knitr" ,r-knitr)
7774 ("r-rmarkdown" ,r-rmarkdown)
7775 ("r-yaml" ,r-yaml)))
7776 (native-inputs
7777 `(("r-knitr" ,r-knitr)))
7778 (home-page "https://bioconductor.org/packages/BiocStyle")
7779 (synopsis "Bioconductor formatting styles")
7780 (description "This package provides standard formatting styles for
7781 Bioconductor PDF and HTML documents. Package vignettes illustrate use and
7782 functionality.")
7783 (license license:artistic2.0)))
7784
7785 (define-public r-bioccheck
7786 (package
7787 (name "r-bioccheck")
7788 (version "1.26.0")
7789 (source (origin
7790 (method url-fetch)
7791 (uri (bioconductor-uri "BiocCheck" version))
7792 (sha256
7793 (base32
7794 "1hyncn9zqj432da95k86rm5b28nbwrvzm52jbhisifkxj1j43cib"))))
7795 (properties
7796 `((upstream-name . "BiocCheck")))
7797 (build-system r-build-system)
7798 (arguments
7799 '(#:phases
7800 (modify-phases %standard-phases
7801 ;; This package can be used by calling BiocCheck(<package>) from
7802 ;; within R, or by running R CMD BiocCheck <package>. This phase
7803 ;; makes sure the latter works. For this to work, the BiocCheck
7804 ;; script must be somewhere on the PATH (not the R bin directory).
7805 (add-after 'install 'install-bioccheck-subcommand
7806 (lambda* (#:key outputs #:allow-other-keys)
7807 (let* ((out (assoc-ref outputs "out"))
7808 (dest-dir (string-append out "/bin"))
7809 (script-dir
7810 (string-append out "/site-library/BiocCheck/script/")))
7811 (mkdir-p dest-dir)
7812 (symlink (string-append script-dir "/checkBadDeps.R")
7813 (string-append dest-dir "/checkBadDeps.R"))
7814 (symlink (string-append script-dir "/BiocCheck")
7815 (string-append dest-dir "/BiocCheck")))
7816 #t)))))
7817 (propagated-inputs
7818 `(("r-codetools" ,r-codetools)
7819 ("r-graph" ,r-graph)
7820 ("r-httr" ,r-httr)
7821 ("r-knitr" ,r-knitr)
7822 ("r-optparse" ,r-optparse)
7823 ("r-biocmanager" ,r-biocmanager)
7824 ("r-biocviews" ,r-biocviews)
7825 ("r-stringdist" ,r-stringdist)))
7826 (native-inputs
7827 `(("r-knitr" ,r-knitr)))
7828 (home-page "https://bioconductor.org/packages/BiocCheck")
7829 (synopsis "Executes Bioconductor-specific package checks")
7830 (description "This package contains tools to perform additional quality
7831 checks on R packages that are to be submitted to the Bioconductor repository.")
7832 (license license:artistic2.0)))
7833
7834 (define-public r-s4vectors
7835 (package
7836 (name "r-s4vectors")
7837 (version "0.28.0")
7838 (source (origin
7839 (method url-fetch)
7840 (uri (bioconductor-uri "S4Vectors" version))
7841 (sha256
7842 (base32
7843 "0rfn46g2mfda01s75vpcfn5jc7xkp0jrl5v79gyd40jm37p4j1zv"))))
7844 (properties
7845 `((upstream-name . "S4Vectors")))
7846 (build-system r-build-system)
7847 (propagated-inputs
7848 `(("r-biocgenerics" ,r-biocgenerics)))
7849 (home-page "https://bioconductor.org/packages/S4Vectors")
7850 (synopsis "S4 implementation of vectors and lists")
7851 (description
7852 "The S4Vectors package defines the @code{Vector} and @code{List} virtual
7853 classes and a set of generic functions that extend the semantic of ordinary
7854 vectors and lists in R. Package developers can easily implement vector-like
7855 or list-like objects as concrete subclasses of @code{Vector} or @code{List}.
7856 In addition, a few low-level concrete subclasses of general interest (e.g.
7857 @code{DataFrame}, @code{Rle}, and @code{Hits}) are implemented in the
7858 S4Vectors package itself.")
7859 (license license:artistic2.0)))
7860
7861 (define-public r-iranges
7862 (package
7863 (name "r-iranges")
7864 (version "2.24.0")
7865 (source (origin
7866 (method url-fetch)
7867 (uri (bioconductor-uri "IRanges" version))
7868 (sha256
7869 (base32
7870 "1lfc8xz45v63y3q40im00i944hi0p9idwhx50w3nzkwdpk79315b"))))
7871 (properties
7872 `((upstream-name . "IRanges")))
7873 (build-system r-build-system)
7874 (propagated-inputs
7875 `(("r-biocgenerics" ,r-biocgenerics)
7876 ("r-s4vectors" ,r-s4vectors)))
7877 (home-page "https://bioconductor.org/packages/IRanges")
7878 (synopsis "Infrastructure for manipulating intervals on sequences")
7879 (description
7880 "This package provides efficient low-level and highly reusable S4 classes
7881 for storing ranges of integers, RLE vectors (Run-Length Encoding), and, more
7882 generally, data that can be organized sequentially (formally defined as
7883 @code{Vector} objects), as well as views on these @code{Vector} objects.
7884 Efficient list-like classes are also provided for storing big collections of
7885 instances of the basic classes. All classes in the package use consistent
7886 naming and share the same rich and consistent \"Vector API\" as much as
7887 possible.")
7888 (license license:artistic2.0)))
7889
7890 (define-public r-genomeinfodbdata
7891 (package
7892 (name "r-genomeinfodbdata")
7893 (version "1.2.0")
7894 (source (origin
7895 (method url-fetch)
7896 ;; We cannot use bioconductor-uri here because this tarball is
7897 ;; located under "data/annotation/" instead of "bioc/".
7898 (uri (string-append "https://bioconductor.org/packages/release/"
7899 "data/annotation/src/contrib/GenomeInfoDbData_"
7900 version ".tar.gz"))
7901 (sha256
7902 (base32
7903 "0di6nlqpsyqf693k2na65ayqldih563x3zfrczpqc5q2hl5kg35c"))))
7904 (properties
7905 `((upstream-name . "GenomeInfoDbData")))
7906 (build-system r-build-system)
7907 (home-page "https://bioconductor.org/packages/GenomeInfoDbData")
7908 (synopsis "Species and taxonomy ID look up tables for GenomeInfoDb")
7909 (description "This package contains data for mapping between NCBI taxonomy
7910 ID and species. It is used by functions in the GenomeInfoDb package.")
7911 (license license:artistic2.0)))
7912
7913 (define-public r-genomeinfodb
7914 (package
7915 (name "r-genomeinfodb")
7916 (version "1.26.0")
7917 (source (origin
7918 (method url-fetch)
7919 (uri (bioconductor-uri "GenomeInfoDb" version))
7920 (sha256
7921 (base32
7922 "1xfhz7gmccijy2z015w07lh04g0ijh7zi6k7q6m4lripgban93g9"))))
7923 (properties
7924 `((upstream-name . "GenomeInfoDb")))
7925 (build-system r-build-system)
7926 (propagated-inputs
7927 `(("r-biocgenerics" ,r-biocgenerics)
7928 ("r-genomeinfodbdata" ,r-genomeinfodbdata)
7929 ("r-iranges" ,r-iranges)
7930 ("r-rcurl" ,r-rcurl)
7931 ("r-s4vectors" ,r-s4vectors)))
7932 (native-inputs
7933 `(("r-knitr" ,r-knitr)))
7934 (home-page "https://bioconductor.org/packages/GenomeInfoDb")
7935 (synopsis "Utilities for manipulating chromosome identifiers")
7936 (description
7937 "This package contains data and functions that define and allow
7938 translation between different chromosome sequence naming conventions (e.g.,
7939 \"chr1\" versus \"1\"), including a function that attempts to place sequence
7940 names in their natural, rather than lexicographic, order.")
7941 (license license:artistic2.0)))
7942
7943 (define-public r-edger
7944 (package
7945 (name "r-edger")
7946 (version "3.32.0")
7947 (source (origin
7948 (method url-fetch)
7949 (uri (bioconductor-uri "edgeR" version))
7950 (sha256
7951 (base32
7952 "0dkjd6li270icy1x5qbzpakk9bx712mdm5k32lrr3yrggq92jhjg"))))
7953 (properties `((upstream-name . "edgeR")))
7954 (build-system r-build-system)
7955 (propagated-inputs
7956 `(("r-limma" ,r-limma)
7957 ("r-locfit" ,r-locfit)
7958 ("r-rcpp" ,r-rcpp)
7959 ("r-statmod" ,r-statmod))) ;for estimateDisp
7960 (home-page "http://bioinf.wehi.edu.au/edgeR")
7961 (synopsis "EdgeR does empirical analysis of digital gene expression data")
7962 (description "This package can do differential expression analysis of
7963 RNA-seq expression profiles with biological replication. It implements a range
7964 of statistical methodology based on the negative binomial distributions,
7965 including empirical Bayes estimation, exact tests, generalized linear models
7966 and quasi-likelihood tests. It be applied to differential signal analysis of
7967 other types of genomic data that produce counts, including ChIP-seq, SAGE and
7968 CAGE.")
7969 (license license:gpl2+)))
7970
7971 (define-public r-variantannotation
7972 (package
7973 (name "r-variantannotation")
7974 (version "1.36.0")
7975 (source (origin
7976 (method url-fetch)
7977 (uri (bioconductor-uri "VariantAnnotation" version))
7978 (sha256
7979 (base32
7980 "1sl0l6v05lfglj281nszma0h5k234md7rn2pdah8vs2d4iq3kimw"))))
7981 (properties
7982 `((upstream-name . "VariantAnnotation")))
7983 (inputs
7984 `(("zlib" ,zlib)))
7985 (propagated-inputs
7986 `(("r-annotationdbi" ,r-annotationdbi)
7987 ("r-biobase" ,r-biobase)
7988 ("r-biocgenerics" ,r-biocgenerics)
7989 ("r-biostrings" ,r-biostrings)
7990 ("r-bsgenome" ,r-bsgenome)
7991 ("r-dbi" ,r-dbi)
7992 ("r-genomeinfodb" ,r-genomeinfodb)
7993 ("r-genomicfeatures" ,r-genomicfeatures)
7994 ("r-genomicranges" ,r-genomicranges)
7995 ("r-iranges" ,r-iranges)
7996 ("r-matrixgenerics" ,r-matrixgenerics)
7997 ("r-summarizedexperiment" ,r-summarizedexperiment)
7998 ("r-rhtslib" ,r-rhtslib)
7999 ("r-rsamtools" ,r-rsamtools)
8000 ("r-rtracklayer" ,r-rtracklayer)
8001 ("r-s4vectors" ,r-s4vectors)
8002 ("r-xvector" ,r-xvector)
8003 ("r-zlibbioc" ,r-zlibbioc)))
8004 (build-system r-build-system)
8005 (home-page "https://bioconductor.org/packages/VariantAnnotation")
8006 (synopsis "Package for annotation of genetic variants")
8007 (description "This R package can annotate variants, compute amino acid
8008 coding changes and predict coding outcomes.")
8009 (license license:artistic2.0)))
8010
8011 (define-public r-limma
8012 (package
8013 (name "r-limma")
8014 (version "3.46.0")
8015 (source (origin
8016 (method url-fetch)
8017 (uri (bioconductor-uri "limma" version))
8018 (sha256
8019 (base32
8020 "1xxv493q1kip9bjfv7v7k5dnq7hz7gvl80i983v4mvwavhgnbxfz"))))
8021 (build-system r-build-system)
8022 (home-page "http://bioinf.wehi.edu.au/limma")
8023 (synopsis "Package for linear models for microarray and RNA-seq data")
8024 (description "This package can be used for the analysis of gene expression
8025 studies, especially the use of linear models for analysing designed experiments
8026 and the assessment of differential expression. The analysis methods apply to
8027 different technologies, including microarrays, RNA-seq, and quantitative PCR.")
8028 (license license:gpl2+)))
8029
8030 (define-public r-xvector
8031 (package
8032 (name "r-xvector")
8033 (version "0.30.0")
8034 (source (origin
8035 (method url-fetch)
8036 (uri (bioconductor-uri "XVector" version))
8037 (sha256
8038 (base32
8039 "1pqljikg4f6jb7wgm5537zwgq5b013nyz1agjrwfq2cljb0ym6lq"))))
8040 (properties
8041 `((upstream-name . "XVector")))
8042 (build-system r-build-system)
8043 (arguments
8044 `(#:phases
8045 (modify-phases %standard-phases
8046 (add-after 'unpack 'use-system-zlib
8047 (lambda _
8048 (substitute* "DESCRIPTION"
8049 (("zlibbioc, ") ""))
8050 (substitute* "NAMESPACE"
8051 (("import\\(zlibbioc\\)") ""))
8052 #t)))))
8053 (inputs
8054 `(("zlib" ,zlib)))
8055 (propagated-inputs
8056 `(("r-biocgenerics" ,r-biocgenerics)
8057 ("r-iranges" ,r-iranges)
8058 ("r-s4vectors" ,r-s4vectors)))
8059 (home-page "https://bioconductor.org/packages/XVector")
8060 (synopsis "Representation and manpulation of external sequences")
8061 (description
8062 "This package provides memory efficient S4 classes for storing sequences
8063 \"externally\" (behind an R external pointer, or on disk).")
8064 (license license:artistic2.0)))
8065
8066 (define-public r-genomicranges
8067 (package
8068 (name "r-genomicranges")
8069 (version "1.42.0")
8070 (source (origin
8071 (method url-fetch)
8072 (uri (bioconductor-uri "GenomicRanges" version))
8073 (sha256
8074 (base32
8075 "0j4py5g6pdj35xhlaqhxxhg55j9l4mcdk3yck4dgyavv5f2dh24i"))))
8076 (properties
8077 `((upstream-name . "GenomicRanges")))
8078 (build-system r-build-system)
8079 (propagated-inputs
8080 `(("r-biocgenerics" ,r-biocgenerics)
8081 ("r-genomeinfodb" ,r-genomeinfodb)
8082 ("r-iranges" ,r-iranges)
8083 ("r-s4vectors" ,r-s4vectors)
8084 ("r-xvector" ,r-xvector)))
8085 (native-inputs
8086 `(("r-knitr" ,r-knitr)))
8087 (home-page "https://bioconductor.org/packages/GenomicRanges")
8088 (synopsis "Representation and manipulation of genomic intervals")
8089 (description
8090 "This package provides tools to efficiently represent and manipulate
8091 genomic annotations and alignments is playing a central role when it comes to
8092 analyzing high-throughput sequencing data (a.k.a. NGS data). The
8093 GenomicRanges package defines general purpose containers for storing and
8094 manipulating genomic intervals and variables defined along a genome.")
8095 (license license:artistic2.0)))
8096
8097 (define-public r-biobase
8098 (package
8099 (name "r-biobase")
8100 (version "2.50.0")
8101 (source (origin
8102 (method url-fetch)
8103 (uri (bioconductor-uri "Biobase" version))
8104 (sha256
8105 (base32
8106 "11kgc4flywlm3i18603558l8ksv91c24vkc5fnnbcd375i2dhhd4"))))
8107 (properties
8108 `((upstream-name . "Biobase")))
8109 (build-system r-build-system)
8110 (propagated-inputs
8111 `(("r-biocgenerics" ,r-biocgenerics)))
8112 (home-page "https://bioconductor.org/packages/Biobase")
8113 (synopsis "Base functions for Bioconductor")
8114 (description
8115 "This package provides functions that are needed by many other packages
8116 on Bioconductor or which replace R functions.")
8117 (license license:artistic2.0)))
8118
8119 (define-public r-annotationdbi
8120 (package
8121 (name "r-annotationdbi")
8122 (version "1.52.0")
8123 (source (origin
8124 (method url-fetch)
8125 (uri (bioconductor-uri "AnnotationDbi" version))
8126 (sha256
8127 (base32
8128 "0zqxgh3nx6y8ry12s2vss2f4axz5vpqxha1y4ifhhcx4zhpzsglr"))))
8129 (properties
8130 `((upstream-name . "AnnotationDbi")))
8131 (build-system r-build-system)
8132 (propagated-inputs
8133 `(("r-biobase" ,r-biobase)
8134 ("r-biocgenerics" ,r-biocgenerics)
8135 ("r-dbi" ,r-dbi)
8136 ("r-iranges" ,r-iranges)
8137 ("r-rsqlite" ,r-rsqlite)
8138 ("r-s4vectors" ,r-s4vectors)))
8139 (native-inputs
8140 `(("r-knitr" ,r-knitr)))
8141 (home-page "https://bioconductor.org/packages/AnnotationDbi")
8142 (synopsis "Annotation database interface")
8143 (description
8144 "This package provides user interface and database connection code for
8145 annotation data packages using SQLite data storage.")
8146 (license license:artistic2.0)))
8147
8148 (define-public r-biomart
8149 (package
8150 (name "r-biomart")
8151 (version "2.46.0")
8152 (source (origin
8153 (method url-fetch)
8154 (uri (bioconductor-uri "biomaRt" version))
8155 (sha256
8156 (base32
8157 "1zpdm8nw1d0m31pdmzw1dccbd6iczfhiklhm4d325zkzf3jrkvxf"))))
8158 (properties
8159 `((upstream-name . "biomaRt")))
8160 (build-system r-build-system)
8161 (propagated-inputs
8162 `(("r-annotationdbi" ,r-annotationdbi)
8163 ("r-biocfilecache" ,r-biocfilecache)
8164 ("r-httr" ,r-httr)
8165 ("r-openssl" ,r-openssl)
8166 ("r-progress" ,r-progress)
8167 ("r-rappdirs" ,r-rappdirs)
8168 ("r-stringr" ,r-stringr)
8169 ("r-xml" ,r-xml)
8170 ("r-xml2" ,r-xml2)))
8171 (native-inputs
8172 `(("r-knitr" ,r-knitr)))
8173 (home-page "https://bioconductor.org/packages/biomaRt")
8174 (synopsis "Interface to BioMart databases")
8175 (description
8176 "biomaRt provides an interface to a growing collection of databases
8177 implementing the @url{BioMart software suite, http://www.biomart.org}. The
8178 package enables retrieval of large amounts of data in a uniform way without
8179 the need to know the underlying database schemas or write complex SQL queries.
8180 Examples of BioMart databases are Ensembl, COSMIC, Uniprot, HGNC, Gramene,
8181 Wormbase and dbSNP mapped to Ensembl. These major databases give biomaRt
8182 users direct access to a diverse set of data and enable a wide range of
8183 powerful online queries from gene annotation to database mining.")
8184 (license license:artistic2.0)))
8185
8186 (define-public r-biocparallel
8187 (package
8188 (name "r-biocparallel")
8189 (version "1.24.1")
8190 (source (origin
8191 (method url-fetch)
8192 (uri (bioconductor-uri "BiocParallel" version))
8193 (sha256
8194 (base32
8195 "1iryicvmcagcrj29kp49mqhiq2kn72j4idj380hi9illmdrg9ism"))))
8196 (properties
8197 `((upstream-name . "BiocParallel")))
8198 (build-system r-build-system)
8199 (propagated-inputs
8200 `(("r-futile-logger" ,r-futile-logger)
8201 ("r-snow" ,r-snow)
8202 ("r-bh" ,r-bh)))
8203 (native-inputs
8204 `(("r-knitr" ,r-knitr)))
8205 (home-page "https://bioconductor.org/packages/BiocParallel")
8206 (synopsis "Bioconductor facilities for parallel evaluation")
8207 (description
8208 "This package provides modified versions and novel implementation of
8209 functions for parallel evaluation, tailored to use with Bioconductor
8210 objects.")
8211 (license (list license:gpl2+ license:gpl3+))))
8212
8213 (define-public r-biostrings
8214 (package
8215 (name "r-biostrings")
8216 (version "2.58.0")
8217 (source (origin
8218 (method url-fetch)
8219 (uri (bioconductor-uri "Biostrings" version))
8220 (sha256
8221 (base32
8222 "1rbqhs73mhfr1gi0rx28jiyan7i3hb45ai3jpl1656fnrhgjfxq5"))))
8223 (properties
8224 `((upstream-name . "Biostrings")))
8225 (build-system r-build-system)
8226 (propagated-inputs
8227 `(("r-biocgenerics" ,r-biocgenerics)
8228 ("r-crayon" ,r-crayon)
8229 ("r-iranges" ,r-iranges)
8230 ("r-s4vectors" ,r-s4vectors)
8231 ("r-xvector" ,r-xvector)))
8232 (home-page "https://bioconductor.org/packages/Biostrings")
8233 (synopsis "String objects and algorithms for biological sequences")
8234 (description
8235 "This package provides memory efficient string containers, string
8236 matching algorithms, and other utilities, for fast manipulation of large
8237 biological sequences or sets of sequences.")
8238 (license license:artistic2.0)))
8239
8240 (define-public r-rsamtools
8241 (package
8242 (name "r-rsamtools")
8243 (version "2.6.0")
8244 (source (origin
8245 (method url-fetch)
8246 (uri (bioconductor-uri "Rsamtools" version))
8247 (sha256
8248 (base32
8249 "040pggkwglc6wy90qnc7xcdnaj0v3iqlykvvsl74241409qly554"))))
8250 (properties
8251 `((upstream-name . "Rsamtools")))
8252 (build-system r-build-system)
8253 (arguments
8254 `(#:phases
8255 (modify-phases %standard-phases
8256 (add-after 'unpack 'use-system-zlib
8257 (lambda _
8258 (substitute* "DESCRIPTION"
8259 (("zlibbioc, ") ""))
8260 (substitute* "NAMESPACE"
8261 (("import\\(zlibbioc\\)") ""))
8262 #t)))))
8263 (inputs
8264 `(("zlib" ,zlib)))
8265 (propagated-inputs
8266 `(("r-biocgenerics" ,r-biocgenerics)
8267 ("r-biocparallel" ,r-biocparallel)
8268 ("r-biostrings" ,r-biostrings)
8269 ("r-bitops" ,r-bitops)
8270 ("r-genomeinfodb" ,r-genomeinfodb)
8271 ("r-genomicranges" ,r-genomicranges)
8272 ("r-iranges" ,r-iranges)
8273 ("r-rhtslib" ,r-rhtslib)
8274 ("r-s4vectors" ,r-s4vectors)
8275 ("r-xvector" ,r-xvector)))
8276 (home-page "https://bioconductor.org/packages/release/bioc/html/Rsamtools.html")
8277 (synopsis "Interface to samtools, bcftools, and tabix")
8278 (description
8279 "This package provides an interface to the @code{samtools},
8280 @code{bcftools}, and @code{tabix} utilities for manipulating SAM (Sequence
8281 Alignment / Map), FASTA, binary variant call (BCF) and compressed indexed
8282 tab-delimited (tabix) files.")
8283 (license license:expat)))
8284
8285 (define-public r-delayedarray
8286 (package
8287 (name "r-delayedarray")
8288 (version "0.16.0")
8289 (source (origin
8290 (method url-fetch)
8291 (uri (bioconductor-uri "DelayedArray" version))
8292 (sha256
8293 (base32
8294 "1564wnradxw15nsnv6w2wd3xngcs3xa1mlibbq3hygi5fcx4fk3g"))))
8295 (properties
8296 `((upstream-name . "DelayedArray")))
8297 (build-system r-build-system)
8298 (propagated-inputs
8299 `(("r-biocgenerics" ,r-biocgenerics)
8300 ("r-s4vectors" ,r-s4vectors)
8301 ("r-iranges" ,r-iranges)
8302 ("r-matrix" ,r-matrix)
8303 ("r-matrixgenerics" ,r-matrixgenerics)))
8304 (native-inputs
8305 `(("r-knitr" ,r-knitr)))
8306 (home-page "https://bioconductor.org/packages/DelayedArray")
8307 (synopsis "Delayed operations on array-like objects")
8308 (description
8309 "Wrapping an array-like object (typically an on-disk object) in a
8310 @code{DelayedArray} object allows one to perform common array operations on it
8311 without loading the object in memory. In order to reduce memory usage and
8312 optimize performance, operations on the object are either delayed or executed
8313 using a block processing mechanism. Note that this also works on in-memory
8314 array-like objects like @code{DataFrame} objects (typically with Rle columns),
8315 @code{Matrix} objects, and ordinary arrays and data frames.")
8316 (license license:artistic2.0)))
8317
8318 (define-public r-summarizedexperiment
8319 (package
8320 (name "r-summarizedexperiment")
8321 (version "1.20.0")
8322 (source (origin
8323 (method url-fetch)
8324 (uri (bioconductor-uri "SummarizedExperiment" version))
8325 (sha256
8326 (base32
8327 "04x6d4mcsnvz6glkmf6k2cv3fs8zk03i9rvv0ahpl793n8l411ps"))))
8328 (properties
8329 `((upstream-name . "SummarizedExperiment")))
8330 (build-system r-build-system)
8331 (propagated-inputs
8332 `(("r-biobase" ,r-biobase)
8333 ("r-biocgenerics" ,r-biocgenerics)
8334 ("r-delayedarray" ,r-delayedarray)
8335 ("r-genomeinfodb" ,r-genomeinfodb)
8336 ("r-genomicranges" ,r-genomicranges)
8337 ("r-iranges" ,r-iranges)
8338 ("r-matrix" ,r-matrix)
8339 ("r-matrixgenerics" ,r-matrixgenerics)
8340 ("r-s4vectors" ,r-s4vectors)))
8341 (native-inputs
8342 `(("r-knitr" ,r-knitr)))
8343 (home-page "https://bioconductor.org/packages/SummarizedExperiment")
8344 (synopsis "Container for representing genomic ranges by sample")
8345 (description
8346 "The SummarizedExperiment container contains one or more assays, each
8347 represented by a matrix-like object of numeric or other mode. The rows
8348 typically represent genomic ranges of interest and the columns represent
8349 samples.")
8350 (license license:artistic2.0)))
8351
8352 (define-public r-genomicalignments
8353 (package
8354 (name "r-genomicalignments")
8355 (version "1.26.0")
8356 (source (origin
8357 (method url-fetch)
8358 (uri (bioconductor-uri "GenomicAlignments" version))
8359 (sha256
8360 (base32
8361 "1q95px6s6snsax4ax955zzpdlrwp5liwf70wqq0lrk9mp6lq0hbr"))))
8362 (properties
8363 `((upstream-name . "GenomicAlignments")))
8364 (build-system r-build-system)
8365 (propagated-inputs
8366 `(("r-biocgenerics" ,r-biocgenerics)
8367 ("r-biocparallel" ,r-biocparallel)
8368 ("r-biostrings" ,r-biostrings)
8369 ("r-genomeinfodb" ,r-genomeinfodb)
8370 ("r-genomicranges" ,r-genomicranges)
8371 ("r-iranges" ,r-iranges)
8372 ("r-rsamtools" ,r-rsamtools)
8373 ("r-s4vectors" ,r-s4vectors)
8374 ("r-summarizedexperiment" ,r-summarizedexperiment)))
8375 (home-page "https://bioconductor.org/packages/GenomicAlignments")
8376 (synopsis "Representation and manipulation of short genomic alignments")
8377 (description
8378 "This package provides efficient containers for storing and manipulating
8379 short genomic alignments (typically obtained by aligning short reads to a
8380 reference genome). This includes read counting, computing the coverage,
8381 junction detection, and working with the nucleotide content of the
8382 alignments.")
8383 (license license:artistic2.0)))
8384
8385 (define-public r-rtracklayer
8386 (package
8387 (name "r-rtracklayer")
8388 (version "1.50.0")
8389 (source (origin
8390 (method url-fetch)
8391 (uri (bioconductor-uri "rtracklayer" version))
8392 (sha256
8393 (base32
8394 "12zimhpdzjyzd81wrzz5hdbzvlgzcs22x1nnaf2jq4cba3ch5px8"))))
8395 (build-system r-build-system)
8396 (arguments
8397 `(#:phases
8398 (modify-phases %standard-phases
8399 (add-after 'unpack 'use-system-zlib
8400 (lambda _
8401 (substitute* "DESCRIPTION"
8402 ((" zlibbioc,") ""))
8403 (substitute* "NAMESPACE"
8404 (("import\\(zlibbioc\\)") ""))
8405 #t)))))
8406 (native-inputs
8407 `(("pkg-config" ,pkg-config)))
8408 (inputs
8409 `(("zlib" ,zlib)))
8410 (propagated-inputs
8411 `(("r-biocgenerics" ,r-biocgenerics)
8412 ("r-biostrings" ,r-biostrings)
8413 ("r-genomeinfodb" ,r-genomeinfodb)
8414 ("r-genomicalignments" ,r-genomicalignments)
8415 ("r-genomicranges" ,r-genomicranges)
8416 ("r-iranges" ,r-iranges)
8417 ("r-rcurl" ,r-rcurl)
8418 ("r-rsamtools" ,r-rsamtools)
8419 ("r-s4vectors" ,r-s4vectors)
8420 ("r-xml" ,r-xml)
8421 ("r-xvector" ,r-xvector)
8422 ("r-zlibbioc" ,r-zlibbioc)))
8423 (home-page "https://bioconductor.org/packages/rtracklayer")
8424 (synopsis "R interface to genome browsers and their annotation tracks")
8425 (description
8426 "rtracklayer is an extensible framework for interacting with multiple
8427 genome browsers (currently UCSC built-in) and manipulating annotation tracks
8428 in various formats (currently GFF, BED, bedGraph, BED15, WIG, BigWig and 2bit
8429 built-in). The user may export/import tracks to/from the supported browsers,
8430 as well as query and modify the browser state, such as the current viewport.")
8431 (license license:artistic2.0)))
8432
8433 (define-public r-genomicfeatures
8434 (package
8435 (name "r-genomicfeatures")
8436 (version "1.42.1")
8437 (source (origin
8438 (method url-fetch)
8439 (uri (bioconductor-uri "GenomicFeatures" version))
8440 (sha256
8441 (base32
8442 "17dyd9hcw6pw16y353dh55wfhxmkxka99lbsxsp9xyrhffwrxi0s"))))
8443 (properties
8444 `((upstream-name . "GenomicFeatures")))
8445 (build-system r-build-system)
8446 (propagated-inputs
8447 `(("r-annotationdbi" ,r-annotationdbi)
8448 ("r-biobase" ,r-biobase)
8449 ("r-biocgenerics" ,r-biocgenerics)
8450 ("r-biomart" ,r-biomart)
8451 ("r-biostrings" ,r-biostrings)
8452 ("r-dbi" ,r-dbi)
8453 ("r-genomeinfodb" ,r-genomeinfodb)
8454 ("r-genomicranges" ,r-genomicranges)
8455 ("r-iranges" ,r-iranges)
8456 ("r-rcurl" ,r-rcurl)
8457 ("r-rsqlite" ,r-rsqlite)
8458 ("r-rtracklayer" ,r-rtracklayer)
8459 ("r-s4vectors" ,r-s4vectors)
8460 ("r-xvector" ,r-xvector)))
8461 (native-inputs
8462 `(("r-knitr" ,r-knitr)))
8463 (home-page "https://bioconductor.org/packages/GenomicFeatures")
8464 (synopsis "Tools for working with transcript centric annotations")
8465 (description
8466 "This package provides a set of tools and methods for making and
8467 manipulating transcript centric annotations. With these tools the user can
8468 easily download the genomic locations of the transcripts, exons and cds of a
8469 given organism, from either the UCSC Genome Browser or a BioMart
8470 database (more sources will be supported in the future). This information is
8471 then stored in a local database that keeps track of the relationship between
8472 transcripts, exons, cds and genes. Flexible methods are provided for
8473 extracting the desired features in a convenient format.")
8474 (license license:artistic2.0)))
8475
8476 (define-public r-go-db
8477 (package
8478 (name "r-go-db")
8479 (version "3.7.0")
8480 (source (origin
8481 (method url-fetch)
8482 (uri (string-append "https://www.bioconductor.org/packages/"
8483 "release/data/annotation/src/contrib/GO.db_"
8484 version ".tar.gz"))
8485 (sha256
8486 (base32
8487 "0i3wcf5h3n0dawzc1hy0kv74f06j80c47n4p3g3fmrcxlhi3jpa5"))))
8488 (properties
8489 `((upstream-name . "GO.db")))
8490 (build-system r-build-system)
8491 (propagated-inputs
8492 `(("r-annotationdbi" ,r-annotationdbi)))
8493 (home-page "https://bioconductor.org/packages/GO.db")
8494 (synopsis "Annotation maps describing the entire Gene Ontology")
8495 (description
8496 "The purpose of this GO.db annotation package is to provide detailed
8497 information about the latest version of the Gene Ontologies.")
8498 (license license:artistic2.0)))
8499
8500 (define-public r-topgo
8501 (package
8502 (name "r-topgo")
8503 (version "2.42.0")
8504 (source (origin
8505 (method url-fetch)
8506 (uri (bioconductor-uri "topGO" version))
8507 (sha256
8508 (base32
8509 "0vr3l9gvd3dhy446k3fkj6rm7z1abxi56rbnrs64297yzxaz1ngl"))))
8510 (properties
8511 `((upstream-name . "topGO")))
8512 (build-system r-build-system)
8513 (propagated-inputs
8514 `(("r-annotationdbi" ,r-annotationdbi)
8515 ("r-dbi" ,r-dbi)
8516 ("r-biobase" ,r-biobase)
8517 ("r-biocgenerics" ,r-biocgenerics)
8518 ("r-go-db" ,r-go-db)
8519 ("r-graph" ,r-graph)
8520 ("r-lattice" ,r-lattice)
8521 ("r-matrixstats" ,r-matrixstats)
8522 ("r-sparsem" ,r-sparsem)))
8523 (home-page "https://bioconductor.org/packages/topGO")
8524 (synopsis "Enrichment analysis for gene ontology")
8525 (description
8526 "The topGO package provides tools for testing @dfn{gene ontology} (GO)
8527 terms while accounting for the topology of the GO graph. Different test
8528 statistics and different methods for eliminating local similarities and
8529 dependencies between GO terms can be implemented and applied.")
8530 ;; Any version of the LGPL applies.
8531 (license license:lgpl2.1+)))
8532
8533 (define-public r-bsgenome
8534 (package
8535 (name "r-bsgenome")
8536 (version "1.58.0")
8537 (source (origin
8538 (method url-fetch)
8539 (uri (bioconductor-uri "BSgenome" version))
8540 (sha256
8541 (base32
8542 "1gbvmxr6r57smgvhqgwspbcnwyk4hsfkxkpzzcs6470q03zfb4wq"))))
8543 (properties
8544 `((upstream-name . "BSgenome")))
8545 (build-system r-build-system)
8546 (propagated-inputs
8547 `(("r-biocgenerics" ,r-biocgenerics)
8548 ("r-biostrings" ,r-biostrings)
8549 ("r-genomeinfodb" ,r-genomeinfodb)
8550 ("r-genomicranges" ,r-genomicranges)
8551 ("r-iranges" ,r-iranges)
8552 ("r-matrixstats" ,r-matrixstats)
8553 ("r-rsamtools" ,r-rsamtools)
8554 ("r-rtracklayer" ,r-rtracklayer)
8555 ("r-s4vectors" ,r-s4vectors)
8556 ("r-xvector" ,r-xvector)))
8557 (home-page "https://bioconductor.org/packages/BSgenome")
8558 (synopsis "Infrastructure for Biostrings-based genome data packages")
8559 (description
8560 "This package provides infrastructure shared by all Biostrings-based
8561 genome data packages and support for efficient SNP representation.")
8562 (license license:artistic2.0)))
8563
8564 (define-public r-impute
8565 (package
8566 (name "r-impute")
8567 (version "1.64.0")
8568 (source (origin
8569 (method url-fetch)
8570 (uri (bioconductor-uri "impute" version))
8571 (sha256
8572 (base32
8573 "1pnjasw9i19nmxwjzrd9jbln31yc5jilfvwk414ya5zbqfsazvxa"))))
8574 (native-inputs
8575 `(("gfortran" ,gfortran)))
8576 (build-system r-build-system)
8577 (home-page "https://bioconductor.org/packages/impute")
8578 (synopsis "Imputation for microarray data")
8579 (description
8580 "This package provides a function to impute missing gene expression
8581 microarray data, using nearest neighbor averaging.")
8582 (license license:gpl2+)))
8583
8584 (define-public r-seqpattern
8585 (package
8586 (name "r-seqpattern")
8587 (version "1.22.0")
8588 (source (origin
8589 (method url-fetch)
8590 (uri (bioconductor-uri "seqPattern" version))
8591 (sha256
8592 (base32
8593 "0j68n6fwycxjpl2va5fw7ajb123n758s2pq997d76dysxghmrlzq"))))
8594 (properties
8595 `((upstream-name . "seqPattern")))
8596 (build-system r-build-system)
8597 (propagated-inputs
8598 `(("r-biostrings" ,r-biostrings)
8599 ("r-genomicranges" ,r-genomicranges)
8600 ("r-iranges" ,r-iranges)
8601 ("r-kernsmooth" ,r-kernsmooth)
8602 ("r-plotrix" ,r-plotrix)))
8603 (home-page "https://bioconductor.org/packages/seqPattern")
8604 (synopsis "Visualising oligonucleotide patterns and motif occurrences")
8605 (description
8606 "This package provides tools to visualize oligonucleotide patterns and
8607 sequence motif occurrences across a large set of sequences centred at a common
8608 reference point and sorted by a user defined feature.")
8609 (license license:gpl3+)))
8610
8611 (define-public r-genomation
8612 (package
8613 (name "r-genomation")
8614 (version "1.22.0")
8615 (source (origin
8616 (method url-fetch)
8617 (uri (bioconductor-uri "genomation" version))
8618 (sha256
8619 (base32
8620 "1ana06irlpdgnmk8mb329nws9sm8n6max4qargf1xdcdf3rnk45g"))))
8621 (build-system r-build-system)
8622 (propagated-inputs
8623 `(("r-biostrings" ,r-biostrings)
8624 ("r-bsgenome" ,r-bsgenome)
8625 ("r-data-table" ,r-data-table)
8626 ("r-genomeinfodb" ,r-genomeinfodb)
8627 ("r-genomicalignments" ,r-genomicalignments)
8628 ("r-genomicranges" ,r-genomicranges)
8629 ("r-ggplot2" ,r-ggplot2)
8630 ("r-gridbase" ,r-gridbase)
8631 ("r-impute" ,r-impute)
8632 ("r-iranges" ,r-iranges)
8633 ("r-matrixstats" ,r-matrixstats)
8634 ("r-plotrix" ,r-plotrix)
8635 ("r-plyr" ,r-plyr)
8636 ("r-rcpp" ,r-rcpp)
8637 ("r-readr" ,r-readr)
8638 ("r-reshape2" ,r-reshape2)
8639 ("r-rsamtools" ,r-rsamtools)
8640 ("r-rtracklayer" ,r-rtracklayer)
8641 ("r-runit" ,r-runit)
8642 ("r-s4vectors" ,r-s4vectors)
8643 ("r-seqpattern" ,r-seqpattern)))
8644 (native-inputs
8645 `(("r-knitr" ,r-knitr)))
8646 (home-page "https://bioinformatics.mdc-berlin.de/genomation/")
8647 (synopsis "Summary, annotation and visualization of genomic data")
8648 (description
8649 "This package provides a package for summary and annotation of genomic
8650 intervals. Users can visualize and quantify genomic intervals over
8651 pre-defined functional regions, such as promoters, exons, introns, etc. The
8652 genomic intervals represent regions with a defined chromosome position, which
8653 may be associated with a score, such as aligned reads from HT-seq experiments,
8654 TF binding sites, methylation scores, etc. The package can use any tabular
8655 genomic feature data as long as it has minimal information on the locations of
8656 genomic intervals. In addition, it can use BAM or BigWig files as input.")
8657 (license license:artistic2.0)))
8658
8659 (define-public r-genomationdata
8660 (package
8661 (name "r-genomationdata")
8662 (version "1.14.0")
8663 (source (origin
8664 (method url-fetch)
8665 ;; We cannot use bioconductor-uri here because this tarball is
8666 ;; located under "data/annotation/" instead of "bioc/".
8667 (uri (string-append "https://bioconductor.org/packages/"
8668 "release/data/experiment/src/contrib/"
8669 "genomationData_" version ".tar.gz"))
8670 (sha256
8671 (base32
8672 "10xyb8akjrhmak2i0mnv1agny2ipy364q9nlibyplpzc7vdb6bw7"))))
8673 (build-system r-build-system)
8674 ;; As this package provides little more than large data files, it doesn't
8675 ;; make sense to build substitutes.
8676 (arguments `(#:substitutable? #f))
8677 (native-inputs
8678 `(("r-knitr" ,r-knitr)))
8679 (home-page "https://bioinformatics.mdc-berlin.de/genomation/")
8680 (synopsis "Experimental data for use with the genomation package")
8681 (description
8682 "This package contains experimental genetic data for use with the
8683 genomation package. Included are Chip Seq, Methylation and Cage data,
8684 downloaded from Encode.")
8685 (license license:gpl3+)))
8686
8687 (define-public r-seqlogo
8688 (package
8689 (name "r-seqlogo")
8690 (version "1.56.0")
8691 (source
8692 (origin
8693 (method url-fetch)
8694 (uri (bioconductor-uri "seqLogo" version))
8695 (sha256
8696 (base32
8697 "02rpzjjfg5chlwwfbvv72cm78cg2vfmdwzars0cin9hz1hd7rnq1"))))
8698 (properties `((upstream-name . "seqLogo")))
8699 (build-system r-build-system)
8700 (native-inputs
8701 `(("r-knitr" ,r-knitr)))
8702 (home-page "https://bioconductor.org/packages/seqLogo")
8703 (synopsis "Sequence logos for DNA sequence alignments")
8704 (description
8705 "seqLogo takes the position weight matrix of a DNA sequence motif and
8706 plots the corresponding sequence logo as introduced by Schneider and
8707 Stephens (1990).")
8708 (license license:lgpl2.0+)))
8709
8710 (define-public r-motifrg
8711 (package
8712 (name "r-motifrg")
8713 (version "1.31.0")
8714 (source
8715 (origin
8716 (method url-fetch)
8717 (uri (bioconductor-uri "motifRG" version))
8718 (sha256
8719 (base32
8720 "1ml6zyzlk8yjbnfhga2qnw8nl43rankvka0kc1yljxr2b66aqbhn"))))
8721 (properties `((upstream-name . "motifRG")))
8722 (build-system r-build-system)
8723 (propagated-inputs
8724 `(("r-biostrings" ,r-biostrings)
8725 ("r-bsgenome" ,r-bsgenome)
8726 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8727 ("r-iranges" ,r-iranges)
8728 ("r-seqlogo" ,r-seqlogo)
8729 ("r-xvector" ,r-xvector)))
8730 (home-page "https://bioconductor.org/packages/motifRG")
8731 (synopsis "Discover motifs in high throughput sequencing data")
8732 (description
8733 "This package provides tools for discriminative motif discovery in high
8734 throughput genetic sequencing data sets using regression methods.")
8735 (license license:artistic2.0)))
8736
8737 (define-public r-zlibbioc
8738 (package
8739 (name "r-zlibbioc")
8740 (version "1.36.0")
8741 (source (origin
8742 (method url-fetch)
8743 (uri (bioconductor-uri "zlibbioc" version))
8744 (sha256
8745 (base32
8746 "0m36ddss0znvm19dhnxcclxjhgjplw8ajk8v419h20ab8an6khxg"))))
8747 (properties
8748 `((upstream-name . "zlibbioc")))
8749 (build-system r-build-system)
8750 (home-page "https://bioconductor.org/packages/zlibbioc")
8751 (synopsis "Provider for zlib-1.2.5 to R packages")
8752 (description "This package uses the source code of zlib-1.2.5 to create
8753 libraries for systems that do not have these available via other means.")
8754 (license license:artistic2.0)))
8755
8756 (define-public r-r4rna
8757 (package
8758 (name "r-r4rna")
8759 (version "0.1.4")
8760 (source
8761 (origin
8762 (method url-fetch)
8763 (uri (string-append "http://www.e-rna.org/r-chie/files/R4RNA_"
8764 version ".tar.gz"))
8765 (sha256
8766 (base32
8767 "1p0i78wh76jfgmn9jphbwwaz6yy6pipzfg08xs54cxavxg2j81p5"))))
8768 (build-system r-build-system)
8769 (propagated-inputs
8770 `(("r-optparse" ,r-optparse)
8771 ("r-rcolorbrewer" ,r-rcolorbrewer)))
8772 (home-page "https://www.e-rna.org/r-chie/index.cgi")
8773 (synopsis "Analysis framework for RNA secondary structure")
8774 (description
8775 "The R4RNA package aims to be a general framework for the analysis of RNA
8776 secondary structure and comparative analysis in R.")
8777 (license license:gpl3+)))
8778
8779 (define-public r-rhtslib
8780 (package
8781 (name "r-rhtslib")
8782 (version "1.22.0")
8783 (source
8784 (origin
8785 (method url-fetch)
8786 (uri (bioconductor-uri "Rhtslib" version))
8787 (sha256
8788 (base32
8789 "18wag2jnpda6078xjkpfdvar1gkb2myhw83gg03l39sabh35qya4"))))
8790 (properties `((upstream-name . "Rhtslib")))
8791 (build-system r-build-system)
8792 ;; Without this a temporary directory ends up in the Rhtslib.so binary,
8793 ;; which makes R abort the build.
8794 (arguments '(#:configure-flags '("--no-staged-install")))
8795 (propagated-inputs
8796 `(("curl" ,curl)
8797 ("r-zlibbioc" ,r-zlibbioc)))
8798 (inputs
8799 `(("zlib" ,zlib)))
8800 (native-inputs
8801 `(("pkg-config" ,pkg-config)
8802 ("r-knitr" ,r-knitr)))
8803 (home-page "https://github.com/nhayden/Rhtslib")
8804 (synopsis "High-throughput sequencing library as an R package")
8805 (description
8806 "This package provides the HTSlib C library for high-throughput
8807 nucleotide sequence analysis. The package is primarily useful to developers
8808 of other R packages who wish to make use of HTSlib.")
8809 (license license:lgpl2.0+)))
8810
8811 (define-public r-bamsignals
8812 (package
8813 (name "r-bamsignals")
8814 (version "1.22.0")
8815 (source
8816 (origin
8817 (method url-fetch)
8818 (uri (bioconductor-uri "bamsignals" version))
8819 (sha256
8820 (base32
8821 "0p3r9z9z5sfkd0b951cgr751k4z0yviyn1jfw9d4fcnyld7g1jxv"))))
8822 (build-system r-build-system)
8823 (propagated-inputs
8824 `(("r-biocgenerics" ,r-biocgenerics)
8825 ("r-genomicranges" ,r-genomicranges)
8826 ("r-iranges" ,r-iranges)
8827 ("r-rcpp" ,r-rcpp)
8828 ("r-rhtslib" ,r-rhtslib)
8829 ("r-zlibbioc" ,r-zlibbioc)))
8830 (inputs
8831 `(("zlib" ,zlib)))
8832 (native-inputs
8833 `(("r-knitr" ,r-knitr)))
8834 (home-page "https://bioconductor.org/packages/bamsignals")
8835 (synopsis "Extract read count signals from bam files")
8836 (description
8837 "This package efficiently obtains count vectors from indexed bam
8838 files. It counts the number of nucleotide sequence reads in given genomic
8839 ranges and it computes reads profiles and coverage profiles. It also handles
8840 paired-end data.")
8841 (license license:gpl2+)))
8842
8843 (define-public r-rcas
8844 (package
8845 (name "r-rcas")
8846 (version "1.16.0")
8847 (source (origin
8848 (method url-fetch)
8849 (uri (bioconductor-uri "RCAS" version))
8850 (sha256
8851 (base32
8852 "0vdxml618vqvf8xyh0zxs307p9zby0cj9dqyiiz625ilyq1hkw2m"))))
8853 (properties `((upstream-name . "RCAS")))
8854 (build-system r-build-system)
8855 (propagated-inputs
8856 `(("r-biocgenerics" ,r-biocgenerics)
8857 ("r-biostrings" ,r-biostrings)
8858 ("r-bsgenome" ,r-bsgenome)
8859 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8860 ("r-cowplot" ,r-cowplot)
8861 ("r-data-table" ,r-data-table)
8862 ("r-dt" ,r-dt)
8863 ("r-genomation" ,r-genomation)
8864 ("r-genomeinfodb" ,r-genomeinfodb)
8865 ("r-genomicfeatures" ,r-genomicfeatures)
8866 ("r-genomicranges" ,r-genomicranges)
8867 ("r-ggplot2" ,r-ggplot2)
8868 ("r-ggseqlogo" ,r-ggseqlogo)
8869 ("r-gprofiler2" ,r-gprofiler2)
8870 ("r-iranges" ,r-iranges)
8871 ("r-pbapply" ,r-pbapply)
8872 ("r-pheatmap" ,r-pheatmap)
8873 ("r-plotly" ,r-plotly)
8874 ("r-plotrix" ,r-plotrix)
8875 ("r-proxy" ,r-proxy)
8876 ("r-ranger" ,r-ranger)
8877 ("r-rsqlite" ,r-rsqlite)
8878 ("r-rtracklayer" ,r-rtracklayer)
8879 ("r-rmarkdown" ,r-rmarkdown)
8880 ("r-s4vectors" ,r-s4vectors)
8881 ("pandoc" ,pandoc)))
8882 (native-inputs
8883 `(("r-knitr" ,r-knitr)))
8884 (synopsis "RNA-centric annotation system")
8885 (description
8886 "RCAS aims to be a standalone RNA-centric annotation system that provides
8887 intuitive reports and publication-ready graphics. This package provides the R
8888 library implementing most of the pipeline's features.")
8889 (home-page "https://github.com/BIMSBbioinfo/RCAS")
8890 (license license:artistic2.0)))
8891
8892 (define-public rcas-web
8893 (package
8894 (name "rcas-web")
8895 (version "0.1.0")
8896 (source
8897 (origin
8898 (method url-fetch)
8899 (uri (string-append "https://github.com/BIMSBbioinfo/rcas-web/"
8900 "releases/download/v" version
8901 "/rcas-web-" version ".tar.gz"))
8902 (sha256
8903 (base32
8904 "0wq951aj45gqki1bickg876i993lmawkp8x24agg264br5x716db"))))
8905 (build-system gnu-build-system)
8906 (arguments
8907 `(#:phases
8908 (modify-phases %standard-phases
8909 (add-before 'configure 'find-RCAS
8910 ;; The configure script can't find non-1.3.x versions of RCAS because
8911 ;; its R expression ‘1.10.1 >= 1.3.4’ evaluates to false.
8912 (lambda _
8913 (substitute* "configure"
8914 (("1\\.3\\.4") "0.0.0"))
8915 #t))
8916 (add-after 'install 'wrap-executable
8917 (lambda* (#:key inputs outputs #:allow-other-keys)
8918 (let* ((out (assoc-ref outputs "out"))
8919 (json (assoc-ref inputs "guile-json"))
8920 (redis (assoc-ref inputs "guile-redis"))
8921 (path (string-append
8922 json "/share/guile/site/2.2:"
8923 redis "/share/guile/site/2.2")))
8924 (wrap-program (string-append out "/bin/rcas-web")
8925 `("GUILE_LOAD_PATH" ":" = (,path))
8926 `("GUILE_LOAD_COMPILED_PATH" ":" = (,path))
8927 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
8928 #t)))))
8929 (inputs
8930 `(("r-minimal" ,r-minimal)
8931 ("r-rcas" ,r-rcas)
8932 ("guile" ,guile-2.2)
8933 ("guile-json" ,guile-json-1)
8934 ("guile-redis" ,guile2.2-redis)))
8935 (native-inputs
8936 `(("pkg-config" ,pkg-config)))
8937 (home-page "https://github.com/BIMSBbioinfo/rcas-web")
8938 (synopsis "Web interface for RNA-centric annotation system (RCAS)")
8939 (description "This package provides a simple web interface for the
8940 @dfn{RNA-centric annotation system} (RCAS).")
8941 (license license:agpl3+)))
8942
8943 (define-public r-mutationalpatterns
8944 (package
8945 (name "r-mutationalpatterns")
8946 (version "3.0.1")
8947 (source
8948 (origin
8949 (method url-fetch)
8950 (uri (bioconductor-uri "MutationalPatterns" version))
8951 (sha256
8952 (base32
8953 "1988kjjgq8af0hj7chhpxi88717wwmzs9qgrwapjh0hm2hjwhn35"))))
8954 (build-system r-build-system)
8955 (native-inputs
8956 `(("r-knitr" ,r-knitr)))
8957 (propagated-inputs
8958 `(("r-biocgenerics" ,r-biocgenerics)
8959 ("r-biostrings" ,r-biostrings)
8960 ("r-bsgenome" ,r-bsgenome)
8961 ;; These two packages are suggested packages
8962 ("r-bsgenome-hsapiens-1000g" ,r-bsgenome-hsapiens-1000genomes-hs37d5)
8963 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8964 ("r-cowplot" ,r-cowplot)
8965 ("r-dplyr" ,r-dplyr)
8966 ("r-genomeinfodb" ,r-genomeinfodb)
8967 ("r-genomicranges" ,r-genomicranges)
8968 ("r-ggalluvial" ,r-ggalluvial)
8969 ("r-ggdendro" ,r-ggdendro)
8970 ("r-ggplot2" ,r-ggplot2)
8971 ("r-iranges" ,r-iranges)
8972 ("r-magrittr" ,r-magrittr)
8973 ("r-nmf" ,r-nmf)
8974 ("r-pracma" ,r-pracma)
8975 ("r-purrr" ,r-purrr)
8976 ("r-s4vectors" ,r-s4vectors)
8977 ("r-stringr" ,r-stringr)
8978 ("r-tibble" ,r-tibble)
8979 ("r-tidyr" ,r-tidyr)
8980 ("r-variantannotation" ,r-variantannotation)))
8981 (home-page "https://bioconductor.org/packages/MutationalPatterns/")
8982 (synopsis "Extract and visualize mutational patterns in genomic data")
8983 (description "This package provides an extensive toolset for the
8984 characterization and visualization of a wide range of mutational patterns
8985 in SNV base substitution data.")
8986 (license license:expat)))
8987
8988 (define-public r-chipkernels
8989 (let ((commit "c9cfcacb626b1221094fb3490ea7bac0fd625372")
8990 (revision "1"))
8991 (package
8992 (name "r-chipkernels")
8993 (version (string-append "1.1-" revision "." (string-take commit 9)))
8994 (source
8995 (origin
8996 (method git-fetch)
8997 (uri (git-reference
8998 (url "https://github.com/ManuSetty/ChIPKernels")
8999 (commit commit)))
9000 (file-name (string-append name "-" version))
9001 (sha256
9002 (base32
9003 "14bj5qhjm1hsm9ay561nfbqi9wxsa7y487df2idsaaf6z10nw4v0"))))
9004 (build-system r-build-system)
9005 (propagated-inputs
9006 `(("r-iranges" ,r-iranges)
9007 ("r-xvector" ,r-xvector)
9008 ("r-biostrings" ,r-biostrings)
9009 ("r-bsgenome" ,r-bsgenome)
9010 ("r-gtools" ,r-gtools)
9011 ("r-genomicranges" ,r-genomicranges)
9012 ("r-sfsmisc" ,r-sfsmisc)
9013 ("r-kernlab" ,r-kernlab)
9014 ("r-s4vectors" ,r-s4vectors)
9015 ("r-biocgenerics" ,r-biocgenerics)))
9016 (home-page "https://github.com/ManuSetty/ChIPKernels")
9017 (synopsis "Build string kernels for DNA Sequence analysis")
9018 (description "ChIPKernels is an R package for building different string
9019 kernels used for DNA Sequence analysis. A dictionary of the desired kernel
9020 must be built and this dictionary can be used for determining kernels for DNA
9021 Sequences.")
9022 (license license:gpl2+))))
9023
9024 (define-public r-seqgl
9025 (package
9026 (name "r-seqgl")
9027 (version "1.1.4")
9028 (source
9029 (origin
9030 (method git-fetch)
9031 (uri (git-reference
9032 (url "https://github.com/ManuSetty/SeqGL")
9033 (commit version)))
9034 (file-name (git-file-name name version))
9035 (sha256
9036 (base32
9037 "1r6ywvhxl3ffv48lgj7sbd582mcc6dha3ksgc2qjlvjrnkbj3799"))))
9038 (build-system r-build-system)
9039 (propagated-inputs
9040 `(("r-biostrings" ,r-biostrings)
9041 ("r-chipkernels" ,r-chipkernels)
9042 ("r-genomicranges" ,r-genomicranges)
9043 ("r-spams" ,r-spams)
9044 ("r-wgcna" ,r-wgcna)
9045 ("r-fastcluster" ,r-fastcluster)))
9046 (home-page "https://github.com/ManuSetty/SeqGL")
9047 (synopsis "Group lasso for Dnase/ChIP-seq data")
9048 (description "SeqGL is a group lasso based algorithm to extract
9049 transcription factor sequence signals from ChIP, DNase and ATAC-seq profiles.
9050 This package presents a method which uses group lasso to discriminate between
9051 bound and non bound genomic regions to accurately identify transcription
9052 factors bound at the specific regions.")
9053 (license license:gpl2+)))
9054
9055 (define-public r-tximport
9056 (package
9057 (name "r-tximport")
9058 (version "1.18.0")
9059 (source (origin
9060 (method url-fetch)
9061 (uri (bioconductor-uri "tximport" version))
9062 (sha256
9063 (base32
9064 "1nxnlvl4iv2392xa72j0lzy2xnb3vrvyhfrdj9l54znwkrryyq34"))))
9065 (build-system r-build-system)
9066 (native-inputs
9067 `(("r-knitr" ,r-knitr)))
9068 (home-page "https://bioconductor.org/packages/tximport")
9069 (synopsis "Import and summarize transcript-level estimates for gene-level analysis")
9070 (description
9071 "This package provides tools to import transcript-level abundance,
9072 estimated counts and transcript lengths, and to summarize them into matrices
9073 for use with downstream gene-level analysis packages. Average transcript
9074 length, weighted by sample-specific transcript abundance estimates, is
9075 provided as a matrix which can be used as an offset for different expression
9076 of gene-level counts.")
9077 (license license:gpl2+)))
9078
9079 (define-public r-rhdf5
9080 (package
9081 (name "r-rhdf5")
9082 (version "2.32.3")
9083 (source (origin
9084 (method url-fetch)
9085 (uri (bioconductor-uri "rhdf5" version))
9086 (sha256
9087 (base32
9088 "0fnx60dpf6s2qwq48lg98g18g8k7wgm66pw0kamlbb7l2hnwycvf"))))
9089 (build-system r-build-system)
9090 (propagated-inputs
9091 `(("r-rhdf5lib" ,r-rhdf5lib)))
9092 (inputs
9093 `(("zlib" ,zlib)))
9094 (native-inputs
9095 `(("r-knitr" ,r-knitr)))
9096 (home-page "https://bioconductor.org/packages/rhdf5")
9097 (synopsis "HDF5 interface to R")
9098 (description
9099 "This R/Bioconductor package provides an interface between HDF5 and R.
9100 HDF5's main features are the ability to store and access very large and/or
9101 complex datasets and a wide variety of metadata on mass storage (disk) through
9102 a completely portable file format. The rhdf5 package is thus suited for the
9103 exchange of large and/or complex datasets between R and other software
9104 package, and for letting R applications work on datasets that are larger than
9105 the available RAM.")
9106 (license license:artistic2.0)))
9107
9108 (define-public r-annotationfilter
9109 (package
9110 (name "r-annotationfilter")
9111 (version "1.14.0")
9112 (source (origin
9113 (method url-fetch)
9114 (uri (bioconductor-uri "AnnotationFilter" version))
9115 (sha256
9116 (base32
9117 "0npk0laa2rc93rsh6yikj886zf2fl53a050j07fj9w67j0q0h3s9"))))
9118 (properties
9119 `((upstream-name . "AnnotationFilter")))
9120 (build-system r-build-system)
9121 (propagated-inputs
9122 `(("r-genomicranges" ,r-genomicranges)
9123 ("r-lazyeval" ,r-lazyeval)))
9124 (native-inputs
9125 `(("r-knitr" ,r-knitr)))
9126 (home-page "https://github.com/Bioconductor/AnnotationFilter")
9127 (synopsis "Facilities for filtering Bioconductor annotation resources")
9128 (description
9129 "This package provides classes and other infrastructure to implement
9130 filters for manipulating Bioconductor annotation resources. The filters are
9131 used by @code{ensembldb}, @code{Organism.dplyr}, and other packages.")
9132 (license license:artistic2.0)))
9133
9134 (define-public emboss
9135 (package
9136 (name "emboss")
9137 (version "6.5.7")
9138 (source (origin
9139 (method url-fetch)
9140 (uri (string-append "ftp://emboss.open-bio.org/pub/EMBOSS/old/"
9141 (version-major+minor version) ".0/"
9142 "EMBOSS-" version ".tar.gz"))
9143 (sha256
9144 (base32
9145 "0vsmz96gc411yj2iyzdrsmg4l2n1nhgmp7vrgzlxx3xixv9xbf0q"))))
9146 (build-system gnu-build-system)
9147 (arguments
9148 `(#:configure-flags
9149 (list (string-append "--with-hpdf="
9150 (assoc-ref %build-inputs "libharu")))
9151 #:phases
9152 (modify-phases %standard-phases
9153 (add-after 'unpack 'fix-checks
9154 (lambda _
9155 ;; The PNGDRIVER tests check for the presence of libgd, libpng
9156 ;; and zlib, but assume that they are all found at the same
9157 ;; prefix.
9158 (substitute* "configure.in"
9159 (("CHECK_PNGDRIVER")
9160 "LIBS=\"$LIBS -lgd -lpng -lz -lm\"
9161 AC_DEFINE([PLD_png], [1], [Define to 1 if PNG support is available])
9162 AM_CONDITIONAL(AMPNG, true)"))
9163 #t))
9164 (add-after 'fix-checks 'disable-update-check
9165 (lambda _
9166 ;; At build time there is no connection to the Internet, so
9167 ;; looking for updates will not work.
9168 (substitute* "Makefile.am"
9169 (("\\$\\(bindir\\)/embossupdate") ""))
9170 #t))
9171 (add-after 'disable-update-check 'autogen
9172 (lambda _ (invoke "autoreconf" "-vif") #t)))))
9173 (inputs
9174 `(("perl" ,perl)
9175 ("libpng" ,libpng)
9176 ("gd" ,gd)
9177 ("libx11" ,libx11)
9178 ("libharu" ,libharu)
9179 ("zlib" ,zlib)))
9180 (native-inputs
9181 `(("autoconf" ,autoconf)
9182 ("automake" ,automake)
9183 ("libtool" ,libtool)
9184 ("pkg-config" ,pkg-config)))
9185 (home-page "http://emboss.sourceforge.net")
9186 (synopsis "Molecular biology analysis suite")
9187 (description "EMBOSS is the \"European Molecular Biology Open Software
9188 Suite\". EMBOSS is an analysis package specially developed for the needs of
9189 the molecular biology (e.g. EMBnet) user community. The software
9190 automatically copes with data in a variety of formats and even allows
9191 transparent retrieval of sequence data from the web. It also provides a
9192 number of libraries for the development of software in the field of molecular
9193 biology. EMBOSS also integrates a range of currently available packages and
9194 tools for sequence analysis into a seamless whole.")
9195 (license license:gpl2+)))
9196
9197 (define-public bits
9198 (let ((revision "1")
9199 (commit "3cc4567896d9d6442923da944beb704750a08d2d"))
9200 (package
9201 (name "bits")
9202 ;; The version is 2.13.0 even though no release archives have been
9203 ;; published as yet.
9204 (version (string-append "2.13.0-" revision "." (string-take commit 9)))
9205 (source (origin
9206 (method git-fetch)
9207 (uri (git-reference
9208 (url "https://github.com/arq5x/bits")
9209 (commit commit)))
9210 (file-name (string-append name "-" version "-checkout"))
9211 (sha256
9212 (base32
9213 "17n2kffk4kmhivd8c98g2vr6y1s23vbg4sxlxs689wni66797hbs"))))
9214 (build-system gnu-build-system)
9215 (arguments
9216 `(#:tests? #f ;no tests included
9217 #:phases
9218 (modify-phases %standard-phases
9219 (delete 'configure)
9220 (add-after 'unpack 'remove-cuda
9221 (lambda _
9222 (substitute* "Makefile"
9223 ((".*_cuda") "")
9224 (("(bits_test_intersections) \\\\" _ match) match))
9225 #t))
9226 (replace 'install
9227 (lambda* (#:key outputs #:allow-other-keys)
9228 (copy-recursively
9229 "bin" (string-append (assoc-ref outputs "out") "/bin"))
9230 #t)))))
9231 (inputs
9232 `(("gsl" ,gsl)
9233 ("zlib" ,zlib)))
9234 (home-page "https://github.com/arq5x/bits")
9235 (synopsis "Implementation of binary interval search algorithm")
9236 (description "This package provides an implementation of the
9237 BITS (Binary Interval Search) algorithm, an approach to interval set
9238 intersection. It is especially suited for the comparison of diverse genomic
9239 datasets and the exploration of large datasets of genome
9240 intervals (e.g. genes, sequence alignments).")
9241 (license license:gpl2))))
9242
9243 (define-public piranha
9244 ;; There is no release tarball for the latest version. The latest commit is
9245 ;; older than one year at the time of this writing.
9246 (let ((revision "1")
9247 (commit "0466d364b71117d01e4471b74c514436cc281233"))
9248 (package
9249 (name "piranha")
9250 (version (string-append "1.2.1-" revision "." (string-take commit 9)))
9251 (source (origin
9252 (method git-fetch)
9253 (uri (git-reference
9254 (url "https://github.com/smithlabcode/piranha")
9255 (commit commit)))
9256 (file-name (git-file-name name version))
9257 (sha256
9258 (base32
9259 "117dc0zf20c61jam69sk4abl57ah6yi6i7qra7d7y5zrbgk12q5n"))))
9260 (build-system gnu-build-system)
9261 (arguments
9262 `(#:test-target "test"
9263 #:phases
9264 (modify-phases %standard-phases
9265 (add-after 'unpack 'copy-smithlab-cpp
9266 (lambda* (#:key inputs #:allow-other-keys)
9267 (for-each (lambda (file)
9268 (install-file file "./src/smithlab_cpp/"))
9269 (find-files (assoc-ref inputs "smithlab-cpp")))
9270 #t))
9271 (add-after 'install 'install-to-store
9272 (lambda* (#:key outputs #:allow-other-keys)
9273 (let* ((out (assoc-ref outputs "out"))
9274 (bin (string-append out "/bin")))
9275 (for-each (lambda (file)
9276 (install-file file bin))
9277 (find-files "bin" ".*")))
9278 #t)))
9279 #:configure-flags
9280 (list (string-append "--with-bam_tools_headers="
9281 (assoc-ref %build-inputs "bamtools") "/include/bamtools")
9282 (string-append "--with-bam_tools_library="
9283 (assoc-ref %build-inputs "bamtools") "/lib/bamtools"))))
9284 (inputs
9285 `(("bamtools" ,bamtools)
9286 ("samtools" ,samtools-0.1)
9287 ("gsl" ,gsl)
9288 ("smithlab-cpp"
9289 ,(let ((commit "3723e2db438c51501d0423429ff396c3035ba46a"))
9290 (origin
9291 (method git-fetch)
9292 (uri (git-reference
9293 (url "https://github.com/smithlabcode/smithlab_cpp")
9294 (commit commit)))
9295 (file-name (string-append "smithlab_cpp-" commit "-checkout"))
9296 (sha256
9297 (base32
9298 "0l4gvbwslw5ngziskja41c00x1r06l3yidv7y0xw9djibhykzy0g")))))))
9299 (native-inputs
9300 `(("python" ,python-2)))
9301 (home-page "https://github.com/smithlabcode/piranha")
9302 (synopsis "Peak-caller for CLIP-seq and RIP-seq data")
9303 (description
9304 "Piranha is a peak-caller for genomic data produced by CLIP-seq and
9305 RIP-seq experiments. It takes input in BED or BAM format and identifies
9306 regions of statistically significant read enrichment. Additional covariates
9307 may optionally be provided to further inform the peak-calling process.")
9308 (license license:gpl3+))))
9309
9310 (define-public pepr
9311 (package
9312 (name "pepr")
9313 (version "1.0.9")
9314 (source (origin
9315 (method url-fetch)
9316 (uri (pypi-uri "PePr" version))
9317 (sha256
9318 (base32
9319 "0qxjfdpl1b1y53nccws2d85f6k74zwmx8y8sd9rszcqhfayx6gdx"))))
9320 (build-system python-build-system)
9321 (arguments
9322 `(#:python ,python-2 ; python2 only
9323 #:tests? #f)) ; no tests included
9324 (propagated-inputs
9325 `(("python2-numpy" ,python2-numpy)
9326 ("python2-scipy" ,python2-scipy)
9327 ("python2-pysam" ,python2-pysam)))
9328 (home-page "https://github.com/shawnzhangyx/PePr")
9329 (synopsis "Peak-calling and prioritization pipeline for ChIP-Seq data")
9330 (description
9331 "PePr is a ChIP-Seq peak calling or differential binding analysis tool
9332 that is primarily designed for data with biological replicates. It uses a
9333 negative binomial distribution to model the read counts among the samples in
9334 the same group, and look for consistent differences between ChIP and control
9335 group or two ChIP groups run under different conditions.")
9336 (license license:gpl3+)))
9337
9338 (define-public filevercmp
9339 (let ((commit "1a9b779b93d0b244040274794d402106907b71b7"))
9340 (package
9341 (name "filevercmp")
9342 (version (string-append "0-1." (string-take commit 7)))
9343 (source (origin
9344 (method git-fetch)
9345 (uri (git-reference
9346 (url "https://github.com/ekg/filevercmp")
9347 (commit commit)))
9348 (file-name (git-file-name name commit))
9349 (sha256
9350 (base32
9351 "1j9vxsy0y050v59h0q1d6501fcw1kjvj0d18l1xk2zyg0jzj247c"))))
9352 (build-system gnu-build-system)
9353 (arguments
9354 `(#:tests? #f ; There are no tests to run.
9355 #:phases
9356 (modify-phases %standard-phases
9357 (delete 'configure) ; There is no configure phase.
9358 (replace 'install
9359 (lambda* (#:key outputs #:allow-other-keys)
9360 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
9361 (install-file "filevercmp" bin)
9362 #t))))))
9363 (home-page "https://github.com/ekg/filevercmp")
9364 (synopsis "This program compares version strings")
9365 (description "This program compares version strings. It intends to be a
9366 replacement for strverscmp.")
9367 (license license:gpl3+))))
9368
9369 (define-public multiqc
9370 (package
9371 (name "multiqc")
9372 (version "1.5")
9373 (source
9374 (origin
9375 (method url-fetch)
9376 (uri (pypi-uri "multiqc" version))
9377 (sha256
9378 (base32
9379 "02iihfl0w0hpnr4pa0sbd1y9qxrg3ycyhjp5lidkcrqh1lmzs3zy"))))
9380 (build-system python-build-system)
9381 (propagated-inputs
9382 `(("python-jinja2" ,python-jinja2)
9383 ("python-simplejson" ,python-simplejson)
9384 ("python-pyyaml" ,python-pyyaml)
9385 ("python-click" ,python-click)
9386 ("python-spectra" ,python-spectra)
9387 ("python-requests" ,python-requests)
9388 ("python-markdown" ,python-markdown)
9389 ("python-lzstring" ,python-lzstring)
9390 ("python-matplotlib" ,python-matplotlib)
9391 ("python-numpy" ,python-numpy)
9392 ;; MultQC checks for the presence of nose at runtime.
9393 ("python-nose" ,python-nose)))
9394 (arguments
9395 `(#:phases
9396 (modify-phases %standard-phases
9397 (add-after 'unpack 'relax-requirements
9398 (lambda _
9399 (substitute* "setup.py"
9400 ;; MultiQC 1.5 ‘requires’ a version of python-matplotlib older
9401 ;; than the one in Guix, but should work fine with 2.2.2.
9402 ;; See <https://github.com/ewels/MultiQC/issues/725> and
9403 ;; <https://github.com/ewels/MultiQC/issues/732> for details.
9404 (("['\"]matplotlib.*?['\"]")
9405 "'matplotlib'"))
9406 #t)))))
9407 (home-page "https://multiqc.info")
9408 (synopsis "Aggregate bioinformatics analysis reports")
9409 (description
9410 "MultiQC is a tool to aggregate bioinformatics results across many
9411 samples into a single report. It contains modules for a large number of
9412 common bioinformatics tools.")
9413 (license license:gpl3+)))
9414
9415 (define-public variant-tools
9416 (package
9417 (name "variant-tools")
9418 (version "3.1.2")
9419 (source
9420 (origin
9421 (method git-fetch)
9422 (uri (git-reference
9423 (url "https://github.com/vatlab/varianttools")
9424 ;; There is no tag corresponding to version 3.1.2
9425 (commit "813ae4a90d25b69abc8a40f4f70441fe09015249")))
9426 (file-name (git-file-name name version))
9427 (sha256
9428 (base32
9429 "12ibdmksj7icyqhks4xyvd61bygk4pjmxn618kp6vgk1af01y34g"))))
9430 (build-system python-build-system)
9431 (inputs
9432 `(("boost" ,boost)
9433 ("c-blosc" ,c-blosc)
9434 ("gsl" ,gsl)
9435 ("hdf5" ,hdf5)
9436 ("hdf5-blosc" ,hdf5-blosc)
9437 ("python-cython" ,python-cython)
9438 ("zlib" ,zlib)))
9439 (propagated-inputs
9440 `(("python-numpy" ,python-numpy)
9441 ("python-pycurl" ,python-pycurl)
9442 ("python-pyzmq" ,python-pyzmq)
9443 ("python-scipy" ,python-scipy)
9444 ("python-tables" ,python-tables)))
9445 (home-page "https://vatlab.github.io/vat-docs/")
9446 (synopsis "Analyze genetic variants from Next-Gen sequencing studies")
9447 (description
9448 "Variant tools is a tool for the manipulation, annotation,
9449 selection, simulation, and analysis of variants in the context of next-gen
9450 sequencing analysis. Unlike some other tools used for next-gen sequencing
9451 analysis, variant tools is project based and provides a whole set of tools to
9452 manipulate and analyze genetic variants.")
9453 (license license:gpl3+)))
9454
9455 (define-public r-chipseq
9456 (package
9457 (name "r-chipseq")
9458 (version "1.40.0")
9459 (source
9460 (origin
9461 (method url-fetch)
9462 (uri (bioconductor-uri "chipseq" version))
9463 (sha256
9464 (base32
9465 "12pzq24aarvgxfmhcad0l5g951xqdvvi7bspgbsvlvmfkqd74j2v"))))
9466 (build-system r-build-system)
9467 (propagated-inputs
9468 `(("r-biocgenerics" ,r-biocgenerics)
9469 ("r-genomicranges" ,r-genomicranges)
9470 ("r-iranges" ,r-iranges)
9471 ("r-lattice" ,r-lattice)
9472 ("r-s4vectors" ,r-s4vectors)
9473 ("r-shortread" ,r-shortread)))
9474 (home-page "https://bioconductor.org/packages/chipseq")
9475 (synopsis "Package for analyzing ChIPseq data")
9476 (description
9477 "This package provides tools for processing short read data from ChIPseq
9478 experiments.")
9479 (license license:artistic2.0)))
9480
9481 (define-public r-copyhelper
9482 (package
9483 (name "r-copyhelper")
9484 (version "1.6.0")
9485 (source
9486 (origin
9487 (method url-fetch)
9488 (uri (string-append "https://bioconductor.org/packages/release/"
9489 "data/experiment/src/contrib/CopyhelpeR_"
9490 version ".tar.gz"))
9491 (sha256
9492 (base32
9493 "0x7cyynjmxls9as2gg0iyp9x5fpalxmdjq914ss7i84i9zyk5bhq"))))
9494 (properties `((upstream-name . "CopyhelpeR")))
9495 (build-system r-build-system)
9496 (home-page "https://bioconductor.org/packages/CopyhelpeR/")
9497 (synopsis "Helper files for CopywriteR")
9498 (description
9499 "This package contains the helper files that are required to run the
9500 Bioconductor package CopywriteR. It contains pre-assembled 1kb bin GC-content
9501 and mappability files for the reference genomes hg18, hg19, hg38, mm9 and
9502 mm10. In addition, it contains a blacklist filter to remove regions that
9503 display copy number variation. Files are stored as GRanges objects from the
9504 GenomicRanges Bioconductor package.")
9505 (license license:gpl2)))
9506
9507 (define-public r-copywriter
9508 (package
9509 (name "r-copywriter")
9510 (version "2.22.0")
9511 (source
9512 (origin
9513 (method url-fetch)
9514 (uri (bioconductor-uri "CopywriteR" version))
9515 (sha256
9516 (base32
9517 "060p6l6l8i6b15hyyz5v5kkxih3h4wcciixii51m9mn82z23xr2f"))))
9518 (properties `((upstream-name . "CopywriteR")))
9519 (build-system r-build-system)
9520 (propagated-inputs
9521 `(("r-biocparallel" ,r-biocparallel)
9522 ("r-chipseq" ,r-chipseq)
9523 ("r-copyhelper" ,r-copyhelper)
9524 ("r-data-table" ,r-data-table)
9525 ("r-dnacopy" ,r-dnacopy)
9526 ("r-futile-logger" ,r-futile-logger)
9527 ("r-genomeinfodb" ,r-genomeinfodb)
9528 ("r-genomicalignments" ,r-genomicalignments)
9529 ("r-genomicranges" ,r-genomicranges)
9530 ("r-gtools" ,r-gtools)
9531 ("r-iranges" ,r-iranges)
9532 ("r-matrixstats" ,r-matrixstats)
9533 ("r-rsamtools" ,r-rsamtools)
9534 ("r-s4vectors" ,r-s4vectors)))
9535 (home-page "https://github.com/PeeperLab/CopywriteR")
9536 (synopsis "Copy number information from targeted sequencing")
9537 (description
9538 "CopywriteR extracts DNA copy number information from targeted sequencing
9539 by utilizing off-target reads. It allows for extracting uniformly distributed
9540 copy number information, can be used without reference, and can be applied to
9541 sequencing data obtained from various techniques including chromatin
9542 immunoprecipitation and target enrichment on small gene panels. Thereby,
9543 CopywriteR constitutes a widely applicable alternative to available copy
9544 number detection tools.")
9545 (license license:gpl2)))
9546
9547 (define-public r-methylkit
9548 (package
9549 (name "r-methylkit")
9550 (version "1.16.0")
9551 (source (origin
9552 (method url-fetch)
9553 (uri (bioconductor-uri "methylKit" version))
9554 (sha256
9555 (base32
9556 "11pmn191n0ga28x1w20cm2cmw8kddl29q6h2xfjjba5bspp2g613"))))
9557 (properties `((upstream-name . "methylKit")))
9558 (build-system r-build-system)
9559 (propagated-inputs
9560 `(("r-data-table" ,r-data-table)
9561 ("r-emdbook" ,r-emdbook)
9562 ("r-fastseg" ,r-fastseg)
9563 ("r-genomeinfodb" ,r-genomeinfodb)
9564 ("r-genomicranges" ,r-genomicranges)
9565 ("r-gtools" ,r-gtools)
9566 ("r-iranges" ,r-iranges)
9567 ("r-kernsmooth" ,r-kernsmooth)
9568 ("r-limma" ,r-limma)
9569 ("r-mclust" ,r-mclust)
9570 ("r-mgcv" ,r-mgcv)
9571 ("r-qvalue" ,r-qvalue)
9572 ("r-r-utils" ,r-r-utils)
9573 ("r-rcpp" ,r-rcpp)
9574 ("r-rhtslib" ,r-rhtslib)
9575 ("r-rsamtools" ,r-rsamtools)
9576 ("r-rtracklayer" ,r-rtracklayer)
9577 ("r-s4vectors" ,r-s4vectors)
9578 ("r-zlibbioc" ,r-zlibbioc)))
9579 (native-inputs
9580 `(("r-knitr" ,r-knitr))) ; for vignettes
9581 (inputs
9582 `(("zlib" ,zlib)))
9583 (home-page "https://github.com/al2na/methylKit")
9584 (synopsis
9585 "DNA methylation analysis from high-throughput bisulfite sequencing results")
9586 (description
9587 "MethylKit is an R package for DNA methylation analysis and annotation
9588 from high-throughput bisulfite sequencing. The package is designed to deal
9589 with sequencing data from @dfn{Reduced representation bisulfite
9590 sequencing} (RRBS) and its variants, but also target-capture methods and whole
9591 genome bisulfite sequencing. It also has functions to analyze base-pair
9592 resolution 5hmC data from experimental protocols such as oxBS-Seq and
9593 TAB-Seq.")
9594 (license license:artistic2.0)))
9595
9596 (define-public r-sva
9597 (package
9598 (name "r-sva")
9599 (version "3.36.0")
9600 (source
9601 (origin
9602 (method url-fetch)
9603 (uri (bioconductor-uri "sva" version))
9604 (sha256
9605 (base32
9606 "0xa1lm0k1a6nig90mab6xh4gln88rbs5l1cdr6ik6agg7jhs7ji4"))))
9607 (build-system r-build-system)
9608 (propagated-inputs
9609 `(("r-edger" ,r-edger)
9610 ("r-genefilter" ,r-genefilter)
9611 ("r-mgcv" ,r-mgcv)
9612 ("r-biocparallel" ,r-biocparallel)
9613 ("r-matrixstats" ,r-matrixstats)
9614 ("r-limma" ,r-limma)))
9615 (home-page "https://bioconductor.org/packages/sva")
9616 (synopsis "Surrogate variable analysis")
9617 (description
9618 "This package contains functions for removing batch effects and other
9619 unwanted variation in high-throughput experiment. It also contains functions
9620 for identifying and building surrogate variables for high-dimensional data
9621 sets. Surrogate variables are covariates constructed directly from
9622 high-dimensional data like gene expression/RNA sequencing/methylation/brain
9623 imaging data that can be used in subsequent analyses to adjust for unknown,
9624 unmodeled, or latent sources of noise.")
9625 (license license:artistic2.0)))
9626
9627 (define-public r-raremetals2
9628 (package
9629 (name "r-raremetals2")
9630 (version "0.1")
9631 (source
9632 (origin
9633 (method url-fetch)
9634 (uri (string-append "http://genome.sph.umich.edu/w/images/"
9635 "b/b7/RareMETALS2_" version ".tar.gz"))
9636 (sha256
9637 (base32
9638 "0z5ljcgvnm06ja9lm85a3cniq7slxcy37aqqkxrdidr79an5fs4s"))))
9639 (properties `((upstream-name . "RareMETALS2")))
9640 (build-system r-build-system)
9641 (propagated-inputs
9642 `(("r-seqminer" ,r-seqminer)
9643 ("r-mvtnorm" ,r-mvtnorm)
9644 ("r-mass" ,r-mass)
9645 ("r-compquadform" ,r-compquadform)
9646 ("r-getopt" ,r-getopt)))
9647 (home-page "http://genome.sph.umich.edu/wiki/RareMETALS2")
9648 (synopsis "Analyze gene-level association tests for binary trait")
9649 (description
9650 "The R package rareMETALS2 is an extension of the R package rareMETALS.
9651 It was designed to meta-analyze gene-level association tests for binary trait.
9652 While rareMETALS offers a near-complete solution for meta-analysis of
9653 gene-level tests for quantitative trait, it does not offer the optimal
9654 solution for binary trait. The package rareMETALS2 offers improved features
9655 for analyzing gene-level association tests in meta-analyses for binary
9656 trait.")
9657 (license license:gpl3)))
9658
9659 (define-public r-protgenerics
9660 (package
9661 (name "r-protgenerics")
9662 (version "1.20.0")
9663 (source
9664 (origin
9665 (method url-fetch)
9666 (uri (bioconductor-uri "ProtGenerics" version))
9667 (sha256
9668 (base32
9669 "14xzdh7vxss8vmrw91hcwrszdn3ikm71mah8875b2lkrkrfzbl73"))))
9670 (properties `((upstream-name . "ProtGenerics")))
9671 (build-system r-build-system)
9672 (home-page "https://github.com/lgatto/ProtGenerics")
9673 (synopsis "S4 generic functions for proteomics infrastructure")
9674 (description
9675 "This package provides S4 generic functions needed by Bioconductor
9676 proteomics packages.")
9677 (license license:artistic2.0)))
9678
9679 (define-public r-mzr
9680 (package
9681 (name "r-mzr")
9682 (version "2.22.0")
9683 (source
9684 (origin
9685 (method url-fetch)
9686 (uri (bioconductor-uri "mzR" version))
9687 (sha256
9688 (base32
9689 "1r8j8yiz5lcan7j4h37sza2kwczl48dxvld3da3ghjjq67cdc2cm"))
9690 (modules '((guix build utils)))
9691 (snippet
9692 '(begin
9693 (delete-file-recursively "src/boost")
9694 #t))))
9695 (properties `((upstream-name . "mzR")))
9696 (build-system r-build-system)
9697 (arguments
9698 `(#:phases
9699 (modify-phases %standard-phases
9700 (add-after 'unpack 'use-system-boost
9701 (lambda _
9702 (substitute* "src/Makevars"
9703 (("\\./boost/libs.*") "")
9704 (("ARCH_OBJS=" line)
9705 (string-append line
9706 "\nARCH_LIBS=-lboost_system -lboost_regex \
9707 -lboost_iostreams -lboost_thread -lboost_filesystem -lboost_chrono\n")))
9708 #t)))))
9709 (inputs
9710 `(;; Our default boost package won't work here, unfortunately, even with
9711 ;; mzR version 2.22.0.
9712 ("boost" ,boost-for-mysql) ; use this instead of the bundled boost sources
9713 ("zlib" ,zlib)))
9714 (propagated-inputs
9715 `(("r-biobase" ,r-biobase)
9716 ("r-biocgenerics" ,r-biocgenerics)
9717 ("r-ncdf4" ,r-ncdf4)
9718 ("r-protgenerics" ,r-protgenerics)
9719 ("r-rcpp" ,r-rcpp)
9720 ("r-rhdf5lib" ,r-rhdf5lib)
9721 ("r-zlibbioc" ,r-zlibbioc)))
9722 (native-inputs
9723 `(("r-knitr" ,r-knitr)))
9724 (home-page "https://github.com/sneumann/mzR/")
9725 (synopsis "Parser for mass spectrometry data files")
9726 (description
9727 "The mzR package provides a unified API to the common file formats and
9728 parsers available for mass spectrometry data. It comes with a wrapper for the
9729 ISB random access parser for mass spectrometry mzXML, mzData and mzML files.
9730 The package contains the original code written by the ISB, and a subset of the
9731 proteowizard library for mzML and mzIdentML. The netCDF reading code has
9732 previously been used in XCMS.")
9733 (license license:artistic2.0)))
9734
9735 (define-public r-affyio
9736 (package
9737 (name "r-affyio")
9738 (version "1.58.0")
9739 (source
9740 (origin
9741 (method url-fetch)
9742 (uri (bioconductor-uri "affyio" version))
9743 (sha256
9744 (base32
9745 "0j1f61409yq6hmkqrpzamfm7dx35rlq33ccs7wb1qcqx3d3nb75q"))))
9746 (build-system r-build-system)
9747 (propagated-inputs
9748 `(("r-zlibbioc" ,r-zlibbioc)))
9749 (inputs
9750 `(("zlib" ,zlib)))
9751 (home-page "https://github.com/bmbolstad/affyio")
9752 (synopsis "Tools for parsing Affymetrix data files")
9753 (description
9754 "This package provides routines for parsing Affymetrix data files based
9755 upon file format information. The primary focus is on accessing the CEL and
9756 CDF file formats.")
9757 (license license:lgpl2.0+)))
9758
9759 (define-public r-affy
9760 (package
9761 (name "r-affy")
9762 (version "1.66.0")
9763 (source
9764 (origin
9765 (method url-fetch)
9766 (uri (bioconductor-uri "affy" version))
9767 (sha256
9768 (base32
9769 "0m6hkyjxmsf80n3anhwh9k26csxczv6v92fkb7klnchdski61pyc"))))
9770 (build-system r-build-system)
9771 (propagated-inputs
9772 `(("r-affyio" ,r-affyio)
9773 ("r-biobase" ,r-biobase)
9774 ("r-biocgenerics" ,r-biocgenerics)
9775 ("r-biocmanager" ,r-biocmanager)
9776 ("r-preprocesscore" ,r-preprocesscore)
9777 ("r-zlibbioc" ,r-zlibbioc)))
9778 (inputs
9779 `(("zlib" ,zlib)))
9780 (home-page "https://bioconductor.org/packages/affy")
9781 (synopsis "Methods for affymetrix oligonucleotide arrays")
9782 (description
9783 "This package contains functions for exploratory oligonucleotide array
9784 analysis.")
9785 (license license:lgpl2.0+)))
9786
9787 (define-public r-vsn
9788 (package
9789 (name "r-vsn")
9790 (version "3.56.0")
9791 (source
9792 (origin
9793 (method url-fetch)
9794 (uri (bioconductor-uri "vsn" version))
9795 (sha256
9796 (base32
9797 "1k82dikrv1gcync5y1131wg7z1kxv2z2jl4nndg20bixc3398h58"))))
9798 (build-system r-build-system)
9799 (propagated-inputs
9800 `(("r-affy" ,r-affy)
9801 ("r-biobase" ,r-biobase)
9802 ("r-ggplot2" ,r-ggplot2)
9803 ("r-lattice" ,r-lattice)
9804 ("r-limma" ,r-limma)))
9805 (native-inputs
9806 `(("r-knitr" ,r-knitr))) ; for vignettes
9807 (home-page "https://bioconductor.org/packages/release/bioc/html/vsn.html")
9808 (synopsis "Variance stabilization and calibration for microarray data")
9809 (description
9810 "The package implements a method for normalising microarray intensities,
9811 and works for single- and multiple-color arrays. It can also be used for data
9812 from other technologies, as long as they have similar format. The method uses
9813 a robust variant of the maximum-likelihood estimator for an
9814 additive-multiplicative error model and affine calibration. The model
9815 incorporates data calibration step (a.k.a. normalization), a model for the
9816 dependence of the variance on the mean intensity and a variance stabilizing
9817 data transformation. Differences between transformed intensities are
9818 analogous to \"normalized log-ratios\". However, in contrast to the latter,
9819 their variance is independent of the mean, and they are usually more sensitive
9820 and specific in detecting differential transcription.")
9821 (license license:artistic2.0)))
9822
9823 (define-public r-mzid
9824 (package
9825 (name "r-mzid")
9826 (version "1.26.0")
9827 (source
9828 (origin
9829 (method url-fetch)
9830 (uri (bioconductor-uri "mzID" version))
9831 (sha256
9832 (base32
9833 "0y50lzkdamkpz67f6r5whp246qsxpbammjil7g8vjprx0c4jk5n5"))))
9834 (properties `((upstream-name . "mzID")))
9835 (build-system r-build-system)
9836 (propagated-inputs
9837 `(("r-doparallel" ,r-doparallel)
9838 ("r-foreach" ,r-foreach)
9839 ("r-iterators" ,r-iterators)
9840 ("r-plyr" ,r-plyr)
9841 ("r-protgenerics" ,r-protgenerics)
9842 ("r-rcpp" ,r-rcpp)
9843 ("r-xml" ,r-xml)))
9844 (native-inputs
9845 `(("r-knitr" ,r-knitr)))
9846 (home-page "https://bioconductor.org/packages/mzID")
9847 (synopsis "Parser for mzIdentML files")
9848 (description
9849 "This package provides a parser for mzIdentML files implemented using the
9850 XML package. The parser tries to be general and able to handle all types of
9851 mzIdentML files with the drawback of having less pretty output than a vendor
9852 specific parser.")
9853 (license license:gpl2+)))
9854
9855 (define-public r-pcamethods
9856 (package
9857 (name "r-pcamethods")
9858 (version "1.80.0")
9859 (source
9860 (origin
9861 (method url-fetch)
9862 (uri (bioconductor-uri "pcaMethods" version))
9863 (sha256
9864 (base32
9865 "10cww4jxyynkwxbbsx804nwac31j0hh8dgisygld0q663gaxkgni"))))
9866 (properties `((upstream-name . "pcaMethods")))
9867 (build-system r-build-system)
9868 (propagated-inputs
9869 `(("r-biobase" ,r-biobase)
9870 ("r-biocgenerics" ,r-biocgenerics)
9871 ("r-mass" ,r-mass)
9872 ("r-rcpp" ,r-rcpp)))
9873 (home-page "https://github.com/hredestig/pcamethods")
9874 (synopsis "Collection of PCA methods")
9875 (description
9876 "This package provides Bayesian PCA, Probabilistic PCA, Nipals PCA,
9877 Inverse Non-Linear PCA and the conventional SVD PCA. A cluster based method
9878 for missing value estimation is included for comparison. BPCA, PPCA and
9879 NipalsPCA may be used to perform PCA on incomplete data as well as for
9880 accurate missing value estimation. A set of methods for printing and plotting
9881 the results is also provided. All PCA methods make use of the same data
9882 structure (pcaRes) to provide a common interface to the PCA results.")
9883 (license license:gpl3+)))
9884
9885 (define-public r-msnbase
9886 (package
9887 (name "r-msnbase")
9888 (version "2.16.0")
9889 (source
9890 (origin
9891 (method url-fetch)
9892 (uri (bioconductor-uri "MSnbase" version))
9893 (sha256
9894 (base32
9895 "0cvcdmq1glifga5qwv9j3lgj31dcrcc6ql4kkk83jy4y43v2zxlx"))))
9896 (properties `((upstream-name . "MSnbase")))
9897 (build-system r-build-system)
9898 (propagated-inputs
9899 `(("r-affy" ,r-affy)
9900 ("r-biobase" ,r-biobase)
9901 ("r-biocgenerics" ,r-biocgenerics)
9902 ("r-biocparallel" ,r-biocparallel)
9903 ("r-digest" ,r-digest)
9904 ("r-ggplot2" ,r-ggplot2)
9905 ("r-impute" ,r-impute)
9906 ("r-iranges" ,r-iranges)
9907 ("r-lattice" ,r-lattice)
9908 ("r-maldiquant" ,r-maldiquant)
9909 ("r-mass" ,r-mass)
9910 ("r-mzid" ,r-mzid)
9911 ("r-mzr" ,r-mzr)
9912 ("r-pcamethods" ,r-pcamethods)
9913 ("r-plyr" ,r-plyr)
9914 ("r-preprocesscore" ,r-preprocesscore)
9915 ("r-protgenerics" ,r-protgenerics)
9916 ("r-rcpp" ,r-rcpp)
9917 ("r-s4vectors" ,r-s4vectors)
9918 ("r-scales" ,r-scales)
9919 ("r-vsn" ,r-vsn)
9920 ("r-xml" ,r-xml)))
9921 (native-inputs
9922 `(("r-knitr" ,r-knitr)))
9923 (home-page "https://github.com/lgatto/MSnbase")
9924 (synopsis "Base functions and classes for MS-based proteomics")
9925 (description
9926 "This package provides basic plotting, data manipulation and processing
9927 of mass spectrometry based proteomics data.")
9928 (license license:artistic2.0)))
9929
9930 (define-public r-msnid
9931 (package
9932 (name "r-msnid")
9933 (version "1.22.0")
9934 (source
9935 (origin
9936 (method url-fetch)
9937 (uri (bioconductor-uri "MSnID" version))
9938 (sha256
9939 (base32
9940 "0dwa6j2nqb3223a8g4f453aznjh69wngrpvdi12iy69j1psbbjcc"))))
9941 (properties `((upstream-name . "MSnID")))
9942 (build-system r-build-system)
9943 (propagated-inputs
9944 `(("r-biobase" ,r-biobase)
9945 ("r-data-table" ,r-data-table)
9946 ("r-doparallel" ,r-doparallel)
9947 ("r-dplyr" ,r-dplyr)
9948 ("r-foreach" ,r-foreach)
9949 ("r-iterators" ,r-iterators)
9950 ("r-msnbase" ,r-msnbase)
9951 ("r-mzid" ,r-mzid)
9952 ("r-mzr" ,r-mzr)
9953 ("r-protgenerics" ,r-protgenerics)
9954 ("r-r-cache" ,r-r-cache)
9955 ("r-rcpp" ,r-rcpp)
9956 ("r-reshape2" ,r-reshape2)))
9957 (home-page "https://bioconductor.org/packages/MSnID")
9958 (synopsis "Utilities for LC-MSn proteomics identifications")
9959 (description
9960 "This package extracts @dfn{tandem mass spectrometry} (MS/MS) ID data
9961 from mzIdentML (leveraging the mzID package) or text files. After collating
9962 the search results from multiple datasets it assesses their identification
9963 quality and optimize filtering criteria to achieve the maximum number of
9964 identifications while not exceeding a specified false discovery rate. It also
9965 contains a number of utilities to explore the MS/MS results and assess missed
9966 and irregular enzymatic cleavages, mass measurement accuracy, etc.")
9967 (license license:artistic2.0)))
9968
9969 (define-public r-aroma-light
9970 (package
9971 (name "r-aroma-light")
9972 (version "3.18.0")
9973 (source
9974 (origin
9975 (method url-fetch)
9976 (uri (bioconductor-uri "aroma.light" version))
9977 (sha256
9978 (base32
9979 "19y5f2minx2pp73zdh43v1qkwpkaxygkl8cwlnwja15i46s0bcyc"))))
9980 (properties `((upstream-name . "aroma.light")))
9981 (build-system r-build-system)
9982 (propagated-inputs
9983 `(("r-matrixstats" ,r-matrixstats)
9984 ("r-r-methodss3" ,r-r-methodss3)
9985 ("r-r-oo" ,r-r-oo)
9986 ("r-r-utils" ,r-r-utils)))
9987 (home-page "https://github.com/HenrikBengtsson/aroma.light")
9988 (synopsis "Methods for normalization and visualization of microarray data")
9989 (description
9990 "This package provides methods for microarray analysis that take basic
9991 data types such as matrices and lists of vectors. These methods can be used
9992 standalone, be utilized in other packages, or be wrapped up in higher-level
9993 classes.")
9994 (license license:gpl2+)))
9995
9996 (define-public r-deseq
9997 (package
9998 (name "r-deseq")
9999 (version "1.39.0")
10000 (source
10001 (origin
10002 (method url-fetch)
10003 (uri (bioconductor-uri "DESeq" version))
10004 (sha256
10005 (base32
10006 "047hph5aqmjnz1aqprziw0smdn5lf96hmwpnvqrxv1j2yfvcf3h1"))))
10007 (properties `((upstream-name . "DESeq")))
10008 (build-system r-build-system)
10009 (propagated-inputs
10010 `(("r-biobase" ,r-biobase)
10011 ("r-biocgenerics" ,r-biocgenerics)
10012 ("r-genefilter" ,r-genefilter)
10013 ("r-geneplotter" ,r-geneplotter)
10014 ("r-lattice" ,r-lattice)
10015 ("r-locfit" ,r-locfit)
10016 ("r-mass" ,r-mass)
10017 ("r-rcolorbrewer" ,r-rcolorbrewer)))
10018 (home-page "https://www-huber.embl.de/users/anders/DESeq/")
10019 (synopsis "Differential gene expression analysis")
10020 (description
10021 "This package provides tools for estimating variance-mean dependence in
10022 count data from high-throughput genetic sequencing assays and for testing for
10023 differential expression based on a model using the negative binomial
10024 distribution.")
10025 (license license:gpl3+)))
10026
10027 (define-public r-edaseq
10028 (package
10029 (name "r-edaseq")
10030 (version "2.22.0")
10031 (source
10032 (origin
10033 (method url-fetch)
10034 (uri (bioconductor-uri "EDASeq" version))
10035 (sha256
10036 (base32
10037 "12gzxjh73qshlwvsf92lbrf4bi199kxg2snrkprh1z4yqf7bjfm4"))))
10038 (properties `((upstream-name . "EDASeq")))
10039 (build-system r-build-system)
10040 (propagated-inputs
10041 `(("r-annotationdbi" ,r-annotationdbi)
10042 ("r-aroma-light" ,r-aroma-light)
10043 ("r-biobase" ,r-biobase)
10044 ("r-biocgenerics" ,r-biocgenerics)
10045 ("r-biocmanager" ,r-biocmanager)
10046 ("r-biomart" ,r-biomart)
10047 ("r-biostrings" ,r-biostrings)
10048 ("r-deseq" ,r-deseq)
10049 ("r-genomicfeatures" ,r-genomicfeatures)
10050 ("r-genomicranges" ,r-genomicranges)
10051 ("r-iranges" ,r-iranges)
10052 ("r-rsamtools" ,r-rsamtools)
10053 ("r-shortread" ,r-shortread)))
10054 (native-inputs
10055 `(("r-knitr" ,r-knitr)))
10056 (home-page "https://github.com/drisso/EDASeq")
10057 (synopsis "Exploratory data analysis and normalization for RNA-Seq")
10058 (description
10059 "This package provides support for numerical and graphical summaries of
10060 RNA-Seq genomic read data. Provided within-lane normalization procedures to
10061 adjust for GC-content effect (or other gene-level effects) on read counts:
10062 loess robust local regression, global-scaling, and full-quantile
10063 normalization. Between-lane normalization procedures to adjust for
10064 distributional differences between lanes (e.g., sequencing depth):
10065 global-scaling and full-quantile normalization.")
10066 (license license:artistic2.0)))
10067
10068 (define-public r-interactivedisplaybase
10069 (package
10070 (name "r-interactivedisplaybase")
10071 (version "1.26.3")
10072 (source
10073 (origin
10074 (method url-fetch)
10075 (uri (bioconductor-uri "interactiveDisplayBase" version))
10076 (sha256
10077 (base32
10078 "1x5vipqa4pgwpd62c1c58shnlpv3zyzzpf4wdwr00q1swkdb7wv3"))))
10079 (properties
10080 `((upstream-name . "interactiveDisplayBase")))
10081 (build-system r-build-system)
10082 (propagated-inputs
10083 `(("r-biocgenerics" ,r-biocgenerics)
10084 ("r-dt" ,r-dt)
10085 ("r-shiny" ,r-shiny)))
10086 (native-inputs
10087 `(("r-knitr" ,r-knitr)))
10088 (home-page "https://bioconductor.org/packages/interactiveDisplayBase")
10089 (synopsis "Base package for web displays of Bioconductor objects")
10090 (description
10091 "This package contains the basic methods needed to generate interactive
10092 Shiny-based display methods for Bioconductor objects.")
10093 (license license:artistic2.0)))
10094
10095 (define-public r-annotationhub
10096 (package
10097 (name "r-annotationhub")
10098 (version "2.20.2")
10099 (source
10100 (origin
10101 (method url-fetch)
10102 (uri (bioconductor-uri "AnnotationHub" version))
10103 (sha256
10104 (base32
10105 "04bz91m2wx1zm61rvpr0syyklz232fw74wrl73d965wi3x8fyda5"))))
10106 (properties `((upstream-name . "AnnotationHub")))
10107 (build-system r-build-system)
10108 (propagated-inputs
10109 `(("r-annotationdbi" ,r-annotationdbi)
10110 ("r-biocfilecache" ,r-biocfilecache)
10111 ("r-biocgenerics" ,r-biocgenerics)
10112 ("r-biocmanager" ,r-biocmanager)
10113 ("r-biocversion" ,r-biocversion)
10114 ("r-curl" ,r-curl)
10115 ("r-dplyr" ,r-dplyr)
10116 ("r-httr" ,r-httr)
10117 ("r-interactivedisplaybase" ,r-interactivedisplaybase)
10118 ("r-rappdirs" ,r-rappdirs)
10119 ("r-rsqlite" ,r-rsqlite)
10120 ("r-s4vectors" ,r-s4vectors)
10121 ("r-yaml" ,r-yaml)))
10122 (native-inputs
10123 `(("r-knitr" ,r-knitr)))
10124 (home-page "https://bioconductor.org/packages/AnnotationHub")
10125 (synopsis "Client to access AnnotationHub resources")
10126 (description
10127 "This package provides a client for the Bioconductor AnnotationHub web
10128 resource. The AnnotationHub web resource provides a central location where
10129 genomic files (e.g. VCF, bed, wig) and other resources from standard
10130 locations (e.g. UCSC, Ensembl) can be discovered. The resource includes
10131 metadata about each resource, e.g., a textual description, tags, and date of
10132 modification. The client creates and manages a local cache of files retrieved
10133 by the user, helping with quick and reproducible access.")
10134 (license license:artistic2.0)))
10135
10136 (define-public r-fastseg
10137 (package
10138 (name "r-fastseg")
10139 (version "1.34.0")
10140 (source
10141 (origin
10142 (method url-fetch)
10143 (uri (bioconductor-uri "fastseg" version))
10144 (sha256
10145 (base32
10146 "1d48n245pzmvcpsz93lxb4frqh222gfhpmlvm0sb74skn16way63"))))
10147 (build-system r-build-system)
10148 (propagated-inputs
10149 `(("r-biobase" ,r-biobase)
10150 ("r-biocgenerics" ,r-biocgenerics)
10151 ("r-genomicranges" ,r-genomicranges)
10152 ("r-iranges" ,r-iranges)
10153 ("r-s4vectors" ,r-s4vectors)))
10154 (home-page "https://www.bioinf.jku.at/software/fastseg/index.html")
10155 (synopsis "Fast segmentation algorithm for genetic sequencing data")
10156 (description
10157 "Fastseg implements a very fast and efficient segmentation algorithm.
10158 It can segment data from DNA microarrays and data from next generation
10159 sequencing for example to detect copy number segments. Further it can segment
10160 data from RNA microarrays like tiling arrays to identify transcripts. Most
10161 generally, it can segment data given as a matrix or as a vector. Various data
10162 formats can be used as input to fastseg like expression set objects for
10163 microarrays or GRanges for sequencing data.")
10164 (license license:lgpl2.0+)))
10165
10166 (define-public r-keggrest
10167 (package
10168 (name "r-keggrest")
10169 (version "1.28.0")
10170 (source
10171 (origin
10172 (method url-fetch)
10173 (uri (bioconductor-uri "KEGGREST" version))
10174 (sha256
10175 (base32
10176 "0q76w17fya2x0z7mvyhkk5kqh07flldgih13ma44vhcy1bdlm6j1"))))
10177 (properties `((upstream-name . "KEGGREST")))
10178 (build-system r-build-system)
10179 (propagated-inputs
10180 `(("r-biostrings" ,r-biostrings)
10181 ("r-httr" ,r-httr)
10182 ("r-png" ,r-png)))
10183 (native-inputs
10184 `(("r-knitr" ,r-knitr)))
10185 (home-page "https://bioconductor.org/packages/KEGGREST")
10186 (synopsis "Client-side REST access to KEGG")
10187 (description
10188 "This package provides a package that provides a client interface to the
10189 @dfn{Kyoto Encyclopedia of Genes and Genomes} (KEGG) REST server.")
10190 (license license:artistic2.0)))
10191
10192 (define-public r-gage
10193 (package
10194 (name "r-gage")
10195 (version "2.38.3")
10196 (source
10197 (origin
10198 (method url-fetch)
10199 (uri (bioconductor-uri "gage" version))
10200 (sha256
10201 (base32
10202 "1bqmvjiya1df0b3h491lp1jxahiyidvaf9n094z0sk84x5y3xh2p"))))
10203 (build-system r-build-system)
10204 (propagated-inputs
10205 `(("r-annotationdbi" ,r-annotationdbi)
10206 ("r-go-db" ,r-go-db)
10207 ("r-graph" ,r-graph)
10208 ("r-keggrest" ,r-keggrest)))
10209 (home-page (string-append "https://bmcbioinformatics.biomedcentral.com/"
10210 "articles/10.1186/1471-2105-10-161"))
10211 (synopsis "Generally applicable gene-set enrichment for pathway analysis")
10212 (description
10213 "GAGE is a published method for gene set (enrichment or GSEA) or pathway
10214 analysis. GAGE is generally applicable independent of microarray or RNA-Seq
10215 data attributes including sample sizes, experimental designs, assay platforms,
10216 and other types of heterogeneity. The gage package provides functions for
10217 basic GAGE analysis, result processing and presentation. In addition, it
10218 provides demo microarray data and commonly used gene set data based on KEGG
10219 pathways and GO terms. These functions and data are also useful for gene set
10220 analysis using other methods.")
10221 (license license:gpl2+)))
10222
10223 (define-public r-genomicfiles
10224 (package
10225 (name "r-genomicfiles")
10226 (version "1.24.0")
10227 (source
10228 (origin
10229 (method url-fetch)
10230 (uri (bioconductor-uri "GenomicFiles" version))
10231 (sha256
10232 (base32
10233 "1k3824pzf9fdqvcv6cz2742q3mabpmncrc72hwa21ac8wy1b04n4"))))
10234 (properties `((upstream-name . "GenomicFiles")))
10235 (build-system r-build-system)
10236 (propagated-inputs
10237 `(("r-biocgenerics" ,r-biocgenerics)
10238 ("r-biocparallel" ,r-biocparallel)
10239 ("r-genomeinfodb" ,r-genomeinfodb)
10240 ("r-genomicalignments" ,r-genomicalignments)
10241 ("r-genomicranges" ,r-genomicranges)
10242 ("r-iranges" ,r-iranges)
10243 ("r-rsamtools" ,r-rsamtools)
10244 ("r-rtracklayer" ,r-rtracklayer)
10245 ("r-s4vectors" ,r-s4vectors)
10246 ("r-summarizedexperiment" ,r-summarizedexperiment)
10247 ("r-variantannotation" ,r-variantannotation)))
10248 (home-page "https://bioconductor.org/packages/GenomicFiles")
10249 (synopsis "Distributed computing by file or by range")
10250 (description
10251 "This package provides infrastructure for parallel computations
10252 distributed by file or by range. User defined mapper and reducer functions
10253 provide added flexibility for data combination and manipulation.")
10254 (license license:artistic2.0)))
10255
10256 (define-public r-complexheatmap
10257 (package
10258 (name "r-complexheatmap")
10259 (version "2.4.3")
10260 (source
10261 (origin
10262 (method url-fetch)
10263 (uri (bioconductor-uri "ComplexHeatmap" version))
10264 (sha256
10265 (base32
10266 "1gx0hzrkla92pgmfkrm2zp0ccnhizq6rs26zgzpi5x8a5lvghh5q"))))
10267 (properties
10268 `((upstream-name . "ComplexHeatmap")))
10269 (build-system r-build-system)
10270 (propagated-inputs
10271 `(("r-circlize" ,r-circlize)
10272 ("r-clue" ,r-clue)
10273 ("r-colorspace" ,r-colorspace)
10274 ("r-getoptlong" ,r-getoptlong)
10275 ("r-globaloptions" ,r-globaloptions)
10276 ("r-png" ,r-png)
10277 ("r-rcolorbrewer" ,r-rcolorbrewer)))
10278 (native-inputs
10279 `(("r-knitr" ,r-knitr)))
10280 (home-page
10281 "https://github.com/jokergoo/ComplexHeatmap")
10282 (synopsis "Making Complex Heatmaps")
10283 (description
10284 "Complex heatmaps are efficient to visualize associations between
10285 different sources of data sets and reveal potential structures. This package
10286 provides a highly flexible way to arrange multiple heatmaps and supports
10287 self-defined annotation graphics.")
10288 (license license:gpl2+)))
10289
10290 (define-public r-dirichletmultinomial
10291 (package
10292 (name "r-dirichletmultinomial")
10293 (version "1.30.0")
10294 (source
10295 (origin
10296 (method url-fetch)
10297 (uri (bioconductor-uri "DirichletMultinomial" version))
10298 (sha256
10299 (base32
10300 "1m9dsrddrllb2i88qzik1867iv9mggrgdkn0dlp8sq7gl69vmalb"))))
10301 (properties
10302 `((upstream-name . "DirichletMultinomial")))
10303 (build-system r-build-system)
10304 (inputs
10305 `(("gsl" ,gsl)))
10306 (propagated-inputs
10307 `(("r-biocgenerics" ,r-biocgenerics)
10308 ("r-iranges" ,r-iranges)
10309 ("r-s4vectors" ,r-s4vectors)))
10310 (home-page "https://bioconductor.org/packages/DirichletMultinomial")
10311 (synopsis "Dirichlet-Multinomial mixture models for microbiome data")
10312 (description
10313 "Dirichlet-multinomial mixture models can be used to describe variability
10314 in microbial metagenomic data. This package is an interface to code
10315 originally made available by Holmes, Harris, and Quince, 2012, PLoS ONE 7(2):
10316 1-15.")
10317 (license license:lgpl3)))
10318
10319 (define-public r-ensembldb
10320 (package
10321 (name "r-ensembldb")
10322 (version "2.12.1")
10323 (source
10324 (origin
10325 (method url-fetch)
10326 (uri (bioconductor-uri "ensembldb" version))
10327 (sha256
10328 (base32
10329 "1vvchc04nshxc768fp31rxb603aj3hmq8xlh5qabcwf2c3z9719g"))))
10330 (build-system r-build-system)
10331 (propagated-inputs
10332 `(("r-annotationdbi" ,r-annotationdbi)
10333 ("r-annotationfilter" ,r-annotationfilter)
10334 ("r-biobase" ,r-biobase)
10335 ("r-biocgenerics" ,r-biocgenerics)
10336 ("r-biostrings" ,r-biostrings)
10337 ("r-curl" ,r-curl)
10338 ("r-dbi" ,r-dbi)
10339 ("r-genomeinfodb" ,r-genomeinfodb)
10340 ("r-genomicfeatures" ,r-genomicfeatures)
10341 ("r-genomicranges" ,r-genomicranges)
10342 ("r-iranges" ,r-iranges)
10343 ("r-protgenerics" ,r-protgenerics)
10344 ("r-rsamtools" ,r-rsamtools)
10345 ("r-rsqlite" ,r-rsqlite)
10346 ("r-rtracklayer" ,r-rtracklayer)
10347 ("r-s4vectors" ,r-s4vectors)))
10348 (native-inputs
10349 `(("r-knitr" ,r-knitr)))
10350 (home-page "https://github.com/jotsetung/ensembldb")
10351 (synopsis "Utilities to create and use Ensembl-based annotation databases")
10352 (description
10353 "The package provides functions to create and use transcript-centric
10354 annotation databases/packages. The annotation for the databases are directly
10355 fetched from Ensembl using their Perl API. The functionality and data is
10356 similar to that of the TxDb packages from the @code{GenomicFeatures} package,
10357 but, in addition to retrieve all gene/transcript models and annotations from
10358 the database, the @code{ensembldb} package also provides a filter framework
10359 allowing to retrieve annotations for specific entries like genes encoded on a
10360 chromosome region or transcript models of lincRNA genes.")
10361 ;; No version specified
10362 (license license:lgpl3+)))
10363
10364 (define-public r-organismdbi
10365 (package
10366 (name "r-organismdbi")
10367 (version "1.30.0")
10368 (source
10369 (origin
10370 (method url-fetch)
10371 (uri (bioconductor-uri "OrganismDbi" version))
10372 (sha256
10373 (base32
10374 "194h5576inq44qr666snzq0ygnc77rk5ljkn9bn8zs6x6gb3cwaw"))))
10375 (properties `((upstream-name . "OrganismDbi")))
10376 (build-system r-build-system)
10377 (propagated-inputs
10378 `(("r-annotationdbi" ,r-annotationdbi)
10379 ("r-biobase" ,r-biobase)
10380 ("r-biocgenerics" ,r-biocgenerics)
10381 ("r-biocmanager" ,r-biocmanager)
10382 ("r-dbi" ,r-dbi)
10383 ("r-genomicfeatures" ,r-genomicfeatures)
10384 ("r-genomicranges" ,r-genomicranges)
10385 ("r-graph" ,r-graph)
10386 ("r-iranges" ,r-iranges)
10387 ("r-rbgl" ,r-rbgl)
10388 ("r-s4vectors" ,r-s4vectors)))
10389 (home-page "https://bioconductor.org/packages/OrganismDbi")
10390 (synopsis "Software to enable the smooth interfacing of database packages")
10391 (description "The package enables a simple unified interface to several
10392 annotation packages each of which has its own schema by taking advantage of
10393 the fact that each of these packages implements a select methods.")
10394 (license license:artistic2.0)))
10395
10396 (define-public r-biovizbase
10397 (package
10398 (name "r-biovizbase")
10399 (version "1.36.0")
10400 (source
10401 (origin
10402 (method url-fetch)
10403 (uri (bioconductor-uri "biovizBase" version))
10404 (sha256
10405 (base32
10406 "1vq2mxa2jkljgw75zqjdkyml0ppi5dspvwj4cznfhi31cq8ds0qh"))))
10407 (properties `((upstream-name . "biovizBase")))
10408 (build-system r-build-system)
10409 (propagated-inputs
10410 `(("r-annotationdbi" ,r-annotationdbi)
10411 ("r-annotationfilter" ,r-annotationfilter)
10412 ("r-biocgenerics" ,r-biocgenerics)
10413 ("r-biostrings" ,r-biostrings)
10414 ("r-dichromat" ,r-dichromat)
10415 ("r-ensembldb" ,r-ensembldb)
10416 ("r-genomeinfodb" ,r-genomeinfodb)
10417 ("r-genomicalignments" ,r-genomicalignments)
10418 ("r-genomicfeatures" ,r-genomicfeatures)
10419 ("r-genomicranges" ,r-genomicranges)
10420 ("r-hmisc" ,r-hmisc)
10421 ("r-iranges" ,r-iranges)
10422 ("r-rcolorbrewer" ,r-rcolorbrewer)
10423 ("r-rlang" ,r-rlang)
10424 ("r-rsamtools" ,r-rsamtools)
10425 ("r-s4vectors" ,r-s4vectors)
10426 ("r-scales" ,r-scales)
10427 ("r-summarizedexperiment" ,r-summarizedexperiment)
10428 ("r-variantannotation" ,r-variantannotation)))
10429 (home-page "https://bioconductor.org/packages/biovizBase")
10430 (synopsis "Basic graphic utilities for visualization of genomic data")
10431 (description
10432 "The biovizBase package is designed to provide a set of utilities, color
10433 schemes and conventions for genomic data. It serves as the base for various
10434 high-level packages for biological data visualization. This saves development
10435 effort and encourages consistency.")
10436 (license license:artistic2.0)))
10437
10438 (define-public r-ggbio
10439 (package
10440 (name "r-ggbio")
10441 (version "1.36.0")
10442 (source
10443 (origin
10444 (method url-fetch)
10445 (uri (bioconductor-uri "ggbio" version))
10446 (sha256
10447 (base32
10448 "11ggnqjq42fi2hm9xlvrrlr2xhy4kglvl1a0mycp1s4v67lxw5h5"))))
10449 (build-system r-build-system)
10450 (arguments
10451 `(#:phases
10452 (modify-phases %standard-phases
10453 ;; See https://github.com/tengfei/ggbio/issues/117
10454 ;; This fix will be included in the next release.
10455 (add-after 'unpack 'fix-typo
10456 (lambda _
10457 (substitute* "R/GGbio-class.R"
10458 (("fechable") "fetchable"))
10459 #t)))))
10460 (propagated-inputs
10461 `(("r-annotationdbi" ,r-annotationdbi)
10462 ("r-annotationfilter" ,r-annotationfilter)
10463 ("r-biobase" ,r-biobase)
10464 ("r-biocgenerics" ,r-biocgenerics)
10465 ("r-biostrings" ,r-biostrings)
10466 ("r-biovizbase" ,r-biovizbase)
10467 ("r-bsgenome" ,r-bsgenome)
10468 ("r-ensembldb" ,r-ensembldb)
10469 ("r-genomeinfodb" ,r-genomeinfodb)
10470 ("r-genomicalignments" ,r-genomicalignments)
10471 ("r-genomicfeatures" ,r-genomicfeatures)
10472 ("r-genomicranges" ,r-genomicranges)
10473 ("r-ggally" ,r-ggally)
10474 ("r-ggplot2" ,r-ggplot2)
10475 ("r-gridextra" ,r-gridextra)
10476 ("r-gtable" ,r-gtable)
10477 ("r-hmisc" ,r-hmisc)
10478 ("r-iranges" ,r-iranges)
10479 ("r-organismdbi" ,r-organismdbi)
10480 ("r-reshape2" ,r-reshape2)
10481 ("r-rlang" ,r-rlang)
10482 ("r-rsamtools" ,r-rsamtools)
10483 ("r-rtracklayer" ,r-rtracklayer)
10484 ("r-s4vectors" ,r-s4vectors)
10485 ("r-scales" ,r-scales)
10486 ("r-summarizedexperiment" ,r-summarizedexperiment)
10487 ("r-variantannotation" ,r-variantannotation)))
10488 (native-inputs
10489 `(("r-knitr" ,r-knitr)))
10490 (home-page "http://www.tengfei.name/ggbio/")
10491 (synopsis "Visualization tools for genomic data")
10492 (description
10493 "The ggbio package extends and specializes the grammar of graphics for
10494 biological data. The graphics are designed to answer common scientific
10495 questions, in particular those often asked of high throughput genomics data.
10496 All core Bioconductor data structures are supported, where appropriate. The
10497 package supports detailed views of particular genomic regions, as well as
10498 genome-wide overviews. Supported overviews include ideograms and grand linear
10499 views. High-level plots include sequence fragment length, edge-linked
10500 interval to data view, mismatch pileup, and several splicing summaries.")
10501 (license license:artistic2.0)))
10502
10503 (define-public r-gqtlbase
10504 (package
10505 (name "r-gqtlbase")
10506 (version "1.20.4")
10507 (source
10508 (origin
10509 (method url-fetch)
10510 (uri (bioconductor-uri "gQTLBase" version))
10511 (sha256
10512 (base32
10513 "1ly14vhhqxjpbxjypi6ppd37dycabdhf4ny4nsvp9969k418zv41"))))
10514 (properties `((upstream-name . "gQTLBase")))
10515 (build-system r-build-system)
10516 (propagated-inputs
10517 `(("r-batchjobs" ,r-batchjobs)
10518 ("r-bbmisc" ,r-bbmisc)
10519 ("r-biocgenerics" ,r-biocgenerics)
10520 ("r-bit" ,r-bit)
10521 ("r-doparallel" ,r-doparallel)
10522 ("r-ff" ,r-ff)
10523 ("r-ffbase" ,r-ffbase)
10524 ("r-foreach" ,r-foreach)
10525 ("r-genomicfiles" ,r-genomicfiles)
10526 ("r-genomicranges" ,r-genomicranges)
10527 ("r-rtracklayer" ,r-rtracklayer)
10528 ("r-s4vectors" ,r-s4vectors)
10529 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10530 (native-inputs
10531 `(("r-knitr" ,r-knitr)))
10532 (home-page "https://bioconductor.org/packages/gQTLBase")
10533 (synopsis "Infrastructure for eQTL, mQTL and similar studies")
10534 (description
10535 "The purpose of this package is to simplify the storage and interrogation
10536 of @dfn{quantitative trait loci} (QTL) archives, such as eQTL, mQTL, dsQTL,
10537 and more.")
10538 (license license:artistic2.0)))
10539
10540 (define-public r-snpstats
10541 (package
10542 (name "r-snpstats")
10543 (version "1.38.0")
10544 (source
10545 (origin
10546 (method url-fetch)
10547 (uri (bioconductor-uri "snpStats" version))
10548 (sha256
10549 (base32
10550 "1qv3nqqr30d3n66mawqd9dbl95dl89r4bcjvkc5iassy1yrwr8wq"))))
10551 (properties `((upstream-name . "snpStats")))
10552 (build-system r-build-system)
10553 (inputs `(("zlib" ,zlib)))
10554 (propagated-inputs
10555 `(("r-biocgenerics" ,r-biocgenerics)
10556 ("r-matrix" ,r-matrix)
10557 ("r-survival" ,r-survival)
10558 ("r-zlibbioc" ,r-zlibbioc)))
10559 (home-page "https://bioconductor.org/packages/snpStats")
10560 (synopsis "Methods for SNP association studies")
10561 (description
10562 "This package provides classes and statistical methods for large
10563 @dfn{single-nucleotide polymorphism} (SNP) association studies. This extends
10564 the earlier snpMatrix package, allowing for uncertainty in genotypes.")
10565 (license license:gpl3)))
10566
10567 (define-public r-homo-sapiens
10568 (package
10569 (name "r-homo-sapiens")
10570 (version "1.3.1")
10571 (source (origin
10572 (method url-fetch)
10573 ;; We cannot use bioconductor-uri here because this tarball is
10574 ;; located under "data/annotation/" instead of "bioc/".
10575 (uri (string-append "https://www.bioconductor.org/packages/"
10576 "release/data/annotation/src/contrib/"
10577 "Homo.sapiens_"
10578 version ".tar.gz"))
10579 (sha256
10580 (base32
10581 "151vj7h5p1c8yd5swrchk46z469p135wk50hvkl0nhgndvy0jj01"))))
10582 (properties
10583 `((upstream-name . "Homo.sapiens")))
10584 (build-system r-build-system)
10585 (propagated-inputs
10586 `(("r-genomicfeatures" ,r-genomicfeatures)
10587 ("r-go-db" ,r-go-db)
10588 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
10589 ("r-txdb-hsapiens-ucsc-hg19-knowngene" ,r-txdb-hsapiens-ucsc-hg19-knowngene)
10590 ("r-organismdbi" ,r-organismdbi)
10591 ("r-annotationdbi" ,r-annotationdbi)))
10592 (home-page "https://bioconductor.org/packages/Homo.sapiens/")
10593 (synopsis "Annotation package for the Homo.sapiens object")
10594 (description
10595 "This package contains the Homo.sapiens object to access data from
10596 several related annotation packages.")
10597 (license license:artistic2.0)))
10598
10599 (define-public r-erma
10600 (package
10601 (name "r-erma")
10602 (version "1.4.0")
10603 (source
10604 (origin
10605 (method url-fetch)
10606 (uri (bioconductor-uri "erma" version))
10607 (sha256
10608 (base32
10609 "1ccfbq0r48sr3h8050w8zv8402h7nx09adr0xdyqlg7kwp9vd2l3"))))
10610 (build-system r-build-system)
10611 (propagated-inputs
10612 `(("r-annotationdbi" ,r-annotationdbi)
10613 ("r-biobase" ,r-biobase)
10614 ("r-biocgenerics" ,r-biocgenerics)
10615 ("r-biocparallel" ,r-biocparallel)
10616 ("r-genomeinfodb" ,r-genomeinfodb)
10617 ("r-genomicfiles" ,r-genomicfiles)
10618 ("r-genomicranges" ,r-genomicranges)
10619 ("r-ggplot2" ,r-ggplot2)
10620 ("r-homo-sapiens" ,r-homo-sapiens)
10621 ("r-iranges" ,r-iranges)
10622 ("r-rtracklayer" ,r-rtracklayer)
10623 ("r-s4vectors" ,r-s4vectors)
10624 ("r-shiny" ,r-shiny)
10625 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10626 (native-inputs
10627 `(("r-knitr" ,r-knitr)))
10628 (home-page "https://bioconductor.org/packages/erma")
10629 (synopsis "Epigenomic road map adventures")
10630 (description
10631 "The epigenomics road map describes locations of epigenetic marks in DNA
10632 from a variety of cell types. Of interest are locations of histone
10633 modifications, sites of DNA methylation, and regions of accessible chromatin.
10634 This package presents a selection of elements of the road map including
10635 metadata and outputs of the ChromImpute procedure applied to ENCODE cell lines
10636 by Ernst and Kellis.")
10637 (license license:artistic2.0)))
10638
10639 (define-public r-ldblock
10640 (package
10641 (name "r-ldblock")
10642 (version "1.18.0")
10643 (source
10644 (origin
10645 (method url-fetch)
10646 (uri (bioconductor-uri "ldblock" version))
10647 (sha256
10648 (base32
10649 "0plw00n2zfgh029ab41dnydzgv2yxrapjp770147rx9pff4dngrv"))))
10650 (build-system r-build-system)
10651 (propagated-inputs
10652 `(("r-biocgenerics" ,r-biocgenerics)
10653 ("r-ensdb-hsapiens-v75" ,r-ensdb-hsapiens-v75)
10654 ("r-ensembldb" ,r-ensembldb)
10655 ("r-genomeinfodb" ,r-genomeinfodb)
10656 ("r-genomicfiles" ,r-genomicfiles)
10657 ("r-httr" ,r-httr)
10658 ("r-matrix" ,r-matrix)
10659 ("r-rsamtools" ,r-rsamtools)
10660 ("r-snpstats" ,r-snpstats)
10661 ("r-variantannotation" ,r-variantannotation)))
10662 (native-inputs
10663 `(("r-knitr" ,r-knitr)))
10664 (home-page "https://bioconductor.org/packages/ldblock")
10665 (synopsis "Data structures for linkage disequilibrium measures in populations")
10666 (description
10667 "This package defines data structures for @dfn{linkage
10668 disequilibrium} (LD) measures in populations. Its purpose is to simplify
10669 handling of existing population-level data for the purpose of flexibly
10670 defining LD blocks.")
10671 (license license:artistic2.0)))
10672
10673 (define-public r-gqtlstats
10674 (package
10675 (name "r-gqtlstats")
10676 (version "1.20.0")
10677 (source
10678 (origin
10679 (method url-fetch)
10680 (uri (bioconductor-uri "gQTLstats" version))
10681 (sha256
10682 (base32
10683 "1jjqfpjp93nmxjn757j5mzcax96bzcqdd1gr3rsdxg7ap008l2w7"))))
10684 (properties `((upstream-name . "gQTLstats")))
10685 (build-system r-build-system)
10686 (propagated-inputs
10687 `(("r-annotationdbi" ,r-annotationdbi)
10688 ("r-batchjobs" ,r-batchjobs)
10689 ("r-bbmisc" ,r-bbmisc)
10690 ("r-beeswarm" ,r-beeswarm)
10691 ("r-biobase" ,r-biobase)
10692 ("r-biocgenerics" ,r-biocgenerics)
10693 ("r-doparallel" ,r-doparallel)
10694 ("r-dplyr" ,r-dplyr)
10695 ("r-erma" ,r-erma)
10696 ("r-ffbase" ,r-ffbase)
10697 ("r-foreach" ,r-foreach)
10698 ("r-genomeinfodb" ,r-genomeinfodb)
10699 ("r-genomicfeatures" ,r-genomicfeatures)
10700 ("r-genomicfiles" ,r-genomicfiles)
10701 ("r-genomicranges" ,r-genomicranges)
10702 ("r-ggbeeswarm" ,r-ggbeeswarm)
10703 ("r-ggplot2" ,r-ggplot2)
10704 ("r-gqtlbase" ,r-gqtlbase)
10705 ("r-hardyweinberg" ,r-hardyweinberg)
10706 ("r-homo-sapiens" ,r-homo-sapiens)
10707 ("r-iranges" ,r-iranges)
10708 ("r-limma" ,r-limma)
10709 ("r-mgcv" ,r-mgcv)
10710 ("r-plotly" ,r-plotly)
10711 ("r-reshape2" ,r-reshape2)
10712 ("r-s4vectors" ,r-s4vectors)
10713 ("r-shiny" ,r-shiny)
10714 ("r-snpstats" ,r-snpstats)
10715 ("r-summarizedexperiment" ,r-summarizedexperiment)
10716 ("r-variantannotation" ,r-variantannotation)))
10717 (native-inputs
10718 `(("r-knitr" ,r-knitr)))
10719 (home-page "https://bioconductor.org/packages/gQTLstats")
10720 (synopsis "Computationally efficient analysis for eQTL and allied studies")
10721 (description
10722 "This package provides tools for the computationally efficient analysis
10723 of @dfn{quantitative trait loci} (QTL) data, including eQTL, mQTL, dsQTL, etc.
10724 The software in this package aims to support refinements and functional
10725 interpretation of members of a collection of association statistics on a
10726 family of feature/genome hypotheses.")
10727 (license license:artistic2.0)))
10728
10729 (define-public r-gviz
10730 (package
10731 (name "r-gviz")
10732 (version "1.32.0")
10733 (source
10734 (origin
10735 (method url-fetch)
10736 (uri (bioconductor-uri "Gviz" version))
10737 (sha256
10738 (base32
10739 "0cgkp0ciyy2qykqgh3vzp5mx9b4vsvacjh2jnsj3wldiapzlz08a"))))
10740 (properties `((upstream-name . "Gviz")))
10741 (build-system r-build-system)
10742 (propagated-inputs
10743 `(("r-annotationdbi" ,r-annotationdbi)
10744 ("r-biobase" ,r-biobase)
10745 ("r-biocgenerics" ,r-biocgenerics)
10746 ("r-biomart" ,r-biomart)
10747 ("r-biostrings" ,r-biostrings)
10748 ("r-biovizbase" ,r-biovizbase)
10749 ("r-bsgenome" ,r-bsgenome)
10750 ("r-digest" ,r-digest)
10751 ("r-ensembldb" ,r-ensembldb)
10752 ("r-genomeinfodb" ,r-genomeinfodb)
10753 ("r-genomicalignments" ,r-genomicalignments)
10754 ("r-genomicfeatures" ,r-genomicfeatures)
10755 ("r-genomicranges" ,r-genomicranges)
10756 ("r-iranges" ,r-iranges)
10757 ("r-lattice" ,r-lattice)
10758 ("r-latticeextra" ,r-latticeextra)
10759 ("r-matrixstats" ,r-matrixstats)
10760 ("r-rcolorbrewer" ,r-rcolorbrewer)
10761 ("r-rsamtools" ,r-rsamtools)
10762 ("r-rtracklayer" ,r-rtracklayer)
10763 ("r-s4vectors" ,r-s4vectors)
10764 ("r-xvector" ,r-xvector)))
10765 (native-inputs
10766 `(("r-knitr" ,r-knitr)))
10767 (home-page "https://bioconductor.org/packages/Gviz")
10768 (synopsis "Plotting data and annotation information along genomic coordinates")
10769 (description
10770 "Genomic data analyses requires integrated visualization of known genomic
10771 information and new experimental data. Gviz uses the biomaRt and the
10772 rtracklayer packages to perform live annotation queries to Ensembl and UCSC
10773 and translates this to e.g. gene/transcript structures in viewports of the
10774 grid graphics package. This results in genomic information plotted together
10775 with your data.")
10776 (license license:artistic2.0)))
10777
10778 (define-public r-gwascat
10779 (package
10780 (name "r-gwascat")
10781 (version "2.20.1")
10782 (source
10783 (origin
10784 (method url-fetch)
10785 (uri (bioconductor-uri "gwascat" version))
10786 (sha256
10787 (base32
10788 "1cq5cmdrf0a0arr841yvkh6d8drc15p7mif1afr215l1s3y2dwd4"))))
10789 (build-system r-build-system)
10790 (propagated-inputs
10791 `(("r-annotationdbi" ,r-annotationdbi)
10792 ("r-biocgenerics" ,r-biocgenerics)
10793 ("r-biostrings" ,r-biostrings)
10794 ("r-genomeinfodb" ,r-genomeinfodb)
10795 ("r-genomicfeatures" ,r-genomicfeatures)
10796 ("r-genomicranges" ,r-genomicranges)
10797 ("r-ggplot2" ,r-ggplot2)
10798 ("r-iranges" ,r-iranges)
10799 ("r-rsamtools" ,r-rsamtools)
10800 ("r-rtracklayer" ,r-rtracklayer)
10801 ("r-s4vectors" ,r-s4vectors)))
10802 (native-inputs
10803 `(("r-knitr" ,r-knitr)))
10804 (home-page "https://bioconductor.org/packages/gwascat")
10805 (synopsis "Tools for data in the EMBL-EBI GWAS catalog")
10806 (description
10807 "This package provides tools for representing and modeling data in the
10808 EMBL-EBI GWAS catalog.")
10809 (license license:artistic2.0)))
10810
10811 (define-public r-sushi
10812 (package
10813 (name "r-sushi")
10814 (version "1.26.0")
10815 (source (origin
10816 (method url-fetch)
10817 (uri (bioconductor-uri "Sushi" version))
10818 (sha256
10819 (base32
10820 "17j3d5qjq5nbv99by5mq8rwr0jgh2jyyfn2nwxmwgzlmk3lgi1rb"))))
10821 (properties `((upstream-name . "Sushi")))
10822 (build-system r-build-system)
10823 (propagated-inputs
10824 `(("r-biomart" ,r-biomart)
10825 ("r-zoo" ,r-zoo)))
10826 (home-page "https://bioconductor.org/packages/Sushi")
10827 (synopsis "Tools for visualizing genomics data")
10828 (description
10829 "This package provides flexible, quantitative, and integrative genomic
10830 visualizations for publication-quality multi-panel figures.")
10831 (license license:gpl2+)))
10832
10833 (define-public r-dropbead
10834 (let ((commit "d746c6f3b32110428ea56d6a0001ce52a251c247")
10835 (revision "2"))
10836 (package
10837 (name "r-dropbead")
10838 (version (string-append "0-" revision "." (string-take commit 7)))
10839 (source
10840 (origin
10841 (method git-fetch)
10842 (uri (git-reference
10843 (url "https://github.com/rajewsky-lab/dropbead")
10844 (commit commit)))
10845 (file-name (git-file-name name version))
10846 (sha256
10847 (base32
10848 "0sbzma49aiiyw8b0jpr7fnhzys9nsqmp4hy4hdz1gzyg1lhnca26"))))
10849 (build-system r-build-system)
10850 (propagated-inputs
10851 `(("r-ggplot2" ,r-ggplot2)
10852 ("r-rcolorbrewer" ,r-rcolorbrewer)
10853 ("r-gridextra" ,r-gridextra)
10854 ("r-gplots" ,r-gplots)
10855 ("r-plyr" ,r-plyr)))
10856 (home-page "https://github.com/rajewsky-lab/dropbead")
10857 (synopsis "Basic exploration and analysis of Drop-seq data")
10858 (description "This package offers a quick and straight-forward way to
10859 explore and perform basic analysis of single cell sequencing data coming from
10860 droplet sequencing. It has been particularly tailored for Drop-seq.")
10861 (license license:gpl3))))
10862
10863 (define htslib-for-sambamba
10864 (let ((commit "2f3c3ea7b301f9b45737a793c0b2dcf0240e5ee5"))
10865 (package
10866 (inherit htslib)
10867 (name "htslib-for-sambamba")
10868 (version (string-append "1.3.1-1." (string-take commit 9)))
10869 (source
10870 (origin
10871 (method git-fetch)
10872 (uri (git-reference
10873 (url "https://github.com/lomereiter/htslib")
10874 (commit commit)))
10875 (file-name (string-append "htslib-" version "-checkout"))
10876 (sha256
10877 (base32
10878 "0g38g8s3npr0gjm9fahlbhiskyfws9l5i0x1ml3rakzj7az5l9c9"))))
10879 (native-inputs
10880 `(("autoconf" ,autoconf)
10881 ("automake" ,automake)
10882 ,@(package-native-inputs htslib))))))
10883
10884 (define-public sambamba
10885 (package
10886 (name "sambamba")
10887 (version "0.7.1")
10888 (source
10889 (origin
10890 (method git-fetch)
10891 (uri (git-reference
10892 (url "https://github.com/lomereiter/sambamba")
10893 (commit (string-append "v" version))))
10894 (file-name (string-append name "-" version "-checkout"))
10895 (sha256
10896 (base32
10897 "111h05b60pj8dxbidiamy4imc92x2962b3lmb7wgysl6lx064qis"))))
10898 (build-system gnu-build-system)
10899 (arguments
10900 `(#:tests? #f ; there is no test target
10901 #:parallel-build? #f ; not supported
10902 #:phases
10903 (modify-phases %standard-phases
10904 (delete 'configure)
10905 (add-after 'unpack 'fix-ldc-version
10906 (lambda _
10907 (substitute* "gen_ldc_version_info.py"
10908 (("/usr/bin/env.*") (which "python3")))
10909 (substitute* "Makefile"
10910 ;; We use ldc2 instead of ldmd2 to compile sambamba.
10911 (("\\$\\(shell which ldmd2\\)") (which "ldc2")))
10912 #t))
10913 (add-after 'unpack 'place-biod-and-undead
10914 (lambda* (#:key inputs #:allow-other-keys)
10915 (copy-recursively (assoc-ref inputs "biod") "BioD")
10916 #t))
10917 (add-after 'unpack 'unbundle-prerequisites
10918 (lambda _
10919 (substitute* "Makefile"
10920 (("htslib/libhts.a lz4/lib/liblz4.a")
10921 "-L-lhts -L-llz4")
10922 ((" lz4-static htslib-static") ""))
10923 #t))
10924 (replace 'install
10925 (lambda* (#:key outputs #:allow-other-keys)
10926 (let* ((out (assoc-ref outputs "out"))
10927 (bin (string-append out "/bin")))
10928 (mkdir-p bin)
10929 (copy-file (string-append "bin/sambamba-" ,version)
10930 (string-append bin "/sambamba"))
10931 #t))))))
10932 (native-inputs
10933 `(("ldc" ,ldc)
10934 ("rdmd" ,rdmd)
10935 ("python" ,python)
10936 ("biod"
10937 ,(let ((commit "7969eb0a847b05874e83ffddead26e193ece8101"))
10938 (origin
10939 (method git-fetch)
10940 (uri (git-reference
10941 (url "https://github.com/biod/BioD")
10942 (commit commit)))
10943 (file-name (string-append "biod-"
10944 (string-take commit 9)
10945 "-checkout"))
10946 (sha256
10947 (base32
10948 "0mjxsmbmv0jxl3pq21p8j5r829d648if8q58ka50b2956lc6qkpm")))))))
10949 (inputs
10950 `(("lz4" ,lz4)
10951 ("htslib" ,htslib-for-sambamba)))
10952 (home-page "https://lomereiter.github.io/sambamba/")
10953 (synopsis "Tools for working with SAM/BAM data")
10954 (description "Sambamba is a high performance modern robust and
10955 fast tool (and library), written in the D programming language, for
10956 working with SAM and BAM files. Current parallelised functionality is
10957 an important subset of samtools functionality, including view, index,
10958 sort, markdup, and depth.")
10959 (license license:gpl2+)))
10960
10961 (define-public ritornello
10962 (package
10963 (name "ritornello")
10964 (version "2.0.1")
10965 (source (origin
10966 (method git-fetch)
10967 (uri (git-reference
10968 (url "https://github.com/KlugerLab/Ritornello")
10969 (commit (string-append "v" version))))
10970 (file-name (git-file-name name version))
10971 (sha256
10972 (base32
10973 "1xahvq215qld7x1w8vpa5zbrsj6p9crb9shqa2x89sb0aaxa02jk"))))
10974 (build-system gnu-build-system)
10975 (arguments
10976 `(#:tests? #f ; there are no tests
10977 #:phases
10978 (modify-phases %standard-phases
10979 (add-after 'unpack 'patch-samtools-references
10980 (lambda* (#:key inputs #:allow-other-keys)
10981 (substitute* '("src/SamStream.h"
10982 "src/FLD.cpp")
10983 (("<sam.h>") "<samtools/sam.h>"))
10984 #t))
10985 (delete 'configure)
10986 (replace 'install
10987 (lambda* (#:key inputs outputs #:allow-other-keys)
10988 (let* ((out (assoc-ref outputs "out"))
10989 (bin (string-append out "/bin/")))
10990 (mkdir-p bin)
10991 (install-file "bin/Ritornello" bin)
10992 #t))))))
10993 (inputs
10994 `(("samtools" ,samtools-0.1)
10995 ("fftw" ,fftw)
10996 ("boost" ,boost)
10997 ("zlib" ,zlib)))
10998 (home-page "https://github.com/KlugerLab/Ritornello")
10999 (synopsis "Control-free peak caller for ChIP-seq data")
11000 (description "Ritornello is a ChIP-seq peak calling algorithm based on
11001 signal processing that can accurately call binding events without the need to
11002 do a pair total DNA input or IgG control sample. It has been tested for use
11003 with narrow binding events such as transcription factor ChIP-seq.")
11004 (license license:gpl3+)))
11005
11006 (define-public trim-galore
11007 (package
11008 (name "trim-galore")
11009 (version "0.6.1")
11010 (source
11011 (origin
11012 (method git-fetch)
11013 (uri (git-reference
11014 (url "https://github.com/FelixKrueger/TrimGalore")
11015 (commit version)))
11016 (file-name (git-file-name name version))
11017 (sha256
11018 (base32
11019 "1y31wbxwkm9xqzr5zv1pk5q418whnmlmgmfyxxpnl12h83m2i9iv"))))
11020 (build-system gnu-build-system)
11021 (arguments
11022 `(#:tests? #f ; no tests
11023 #:phases
11024 (modify-phases %standard-phases
11025 (replace 'configure
11026 (lambda _
11027 ;; Trim Galore tries to figure out what version of Python
11028 ;; cutadapt is using by looking at the shebang. Of course that
11029 ;; doesn't work, because cutadapt is wrapped in a shell script.
11030 (substitute* "trim_galore"
11031 (("my \\$python_return.*")
11032 "my $python_return = \"Python 3.999\";\n"))
11033 #t))
11034 (delete 'build)
11035 (add-after 'unpack 'hardcode-tool-references
11036 (lambda* (#:key inputs #:allow-other-keys)
11037 (substitute* "trim_galore"
11038 (("\\$path_to_cutadapt = 'cutadapt'")
11039 (string-append "$path_to_cutadapt = '"
11040 (assoc-ref inputs "cutadapt")
11041 "/bin/cutadapt'"))
11042 (("\\$compression_path = \"gzip\"")
11043 (string-append "$compression_path = \""
11044 (assoc-ref inputs "gzip")
11045 "/bin/gzip\""))
11046 (("\"gunzip")
11047 (string-append "\""
11048 (assoc-ref inputs "gzip")
11049 "/bin/gunzip"))
11050 (("\"pigz")
11051 (string-append "\""
11052 (assoc-ref inputs "pigz")
11053 "/bin/pigz")))
11054 #t))
11055 (replace 'install
11056 (lambda* (#:key outputs #:allow-other-keys)
11057 (let ((bin (string-append (assoc-ref outputs "out")
11058 "/bin")))
11059 (mkdir-p bin)
11060 (install-file "trim_galore" bin)
11061 #t))))))
11062 (inputs
11063 `(("gzip" ,gzip)
11064 ("perl" ,perl)
11065 ("pigz" ,pigz)
11066 ("cutadapt" ,cutadapt)))
11067 (native-inputs
11068 `(("unzip" ,unzip)))
11069 (home-page "https://www.bioinformatics.babraham.ac.uk/projects/trim_galore/")
11070 (synopsis "Wrapper around Cutadapt and FastQC")
11071 (description "Trim Galore! is a wrapper script to automate quality and
11072 adapter trimming as well as quality control, with some added functionality to
11073 remove biased methylation positions for RRBS sequence files.")
11074 (license license:gpl3+)))
11075
11076 (define-public gess
11077 (package
11078 (name "gess")
11079 (version "1.0")
11080 (source (origin
11081 (method url-fetch)
11082 (uri (string-append "http://compbio.uthscsa.edu/"
11083 "GESS_Web/files/"
11084 "gess-" version ".src.tar.gz"))
11085 (sha256
11086 (base32
11087 "0hyk403kxscclzfs24pvdgiv0wm03kjcziqdrp5w46cb049gz0d7"))))
11088 (build-system gnu-build-system)
11089 (arguments
11090 `(#:tests? #f ; no tests
11091 #:phases
11092 (modify-phases %standard-phases
11093 (delete 'configure)
11094 (delete 'build)
11095 (replace 'install
11096 (lambda* (#:key inputs outputs #:allow-other-keys)
11097 (let* ((python (assoc-ref inputs "python"))
11098 (out (assoc-ref outputs "out"))
11099 (bin (string-append out "/bin/"))
11100 (target (string-append
11101 out "/lib/python"
11102 ,(version-major+minor
11103 (package-version python))
11104 "/site-packages/gess/")))
11105 (mkdir-p target)
11106 (copy-recursively "." target)
11107 ;; Make GESS.py executable
11108 (chmod (string-append target "GESS.py") #o555)
11109 ;; Add Python shebang to the top and make Matplotlib
11110 ;; usable.
11111 (substitute* (string-append target "GESS.py")
11112 (("\"\"\"Description:" line)
11113 (string-append "#!" (which "python") "
11114 import matplotlib
11115 matplotlib.use('Agg')
11116 " line)))
11117 ;; Make sure GESS has all modules in its path
11118 (wrap-script (string-append target "GESS.py")
11119 `("PYTHONPATH" ":" = (,target ,(getenv "PYTHONPATH"))))
11120 (mkdir-p bin)
11121 (symlink (string-append target "GESS.py")
11122 (string-append bin "GESS.py"))
11123 #t))))))
11124 (inputs
11125 `(("python" ,python-2)
11126 ("python2-pysam" ,python2-pysam)
11127 ("python2-scipy" ,python2-scipy)
11128 ("python2-numpy" ,python2-numpy)
11129 ("python2-networkx" ,python2-networkx)
11130 ("python2-biopython" ,python2-biopython)
11131 ("guile" ,guile-3.0))) ; for the script wrapper
11132 (home-page "https://compbio.uthscsa.edu/GESS_Web/")
11133 (synopsis "Detect exon-skipping events from raw RNA-seq data")
11134 (description
11135 "GESS is an implementation of a novel computational method to detect de
11136 novo exon-skipping events directly from raw RNA-seq data without the prior
11137 knowledge of gene annotation information. GESS stands for the graph-based
11138 exon-skipping scanner detection scheme.")
11139 (license license:bsd-3)))
11140
11141 (define-public phylip
11142 (package
11143 (name "phylip")
11144 (version "3.696")
11145 (source
11146 (origin
11147 (method url-fetch)
11148 (uri (string-append "http://evolution.gs.washington.edu/phylip/"
11149 "download/phylip-" version ".tar.gz"))
11150 (sha256
11151 (base32
11152 "01jar1rayhr2gba2pgbw49m56rc5z4p5wn3ds0m188hrlln4a2nd"))))
11153 (build-system gnu-build-system)
11154 (arguments
11155 `(#:tests? #f ; no check target
11156 #:make-flags (list "-f" "Makefile.unx" "install")
11157 #:parallel-build? #f ; not supported
11158 #:phases
11159 (modify-phases %standard-phases
11160 (add-after 'unpack 'enter-dir
11161 (lambda _ (chdir "src") #t))
11162 (delete 'configure)
11163 (replace 'install
11164 (lambda* (#:key inputs outputs #:allow-other-keys)
11165 (let ((target (string-append (assoc-ref outputs "out")
11166 "/bin")))
11167 (mkdir-p target)
11168 (for-each (lambda (file)
11169 (install-file file target))
11170 (find-files "../exe" ".*")))
11171 #t)))))
11172 (home-page "http://evolution.genetics.washington.edu/phylip/")
11173 (synopsis "Tools for inferring phylogenies")
11174 (description "PHYLIP (the PHYLogeny Inference Package) is a package of
11175 programs for inferring phylogenies (evolutionary trees).")
11176 (license license:bsd-2)))
11177
11178 (define-public imp
11179 (package
11180 (name "imp")
11181 (version "2.13.0")
11182 (source
11183 (origin
11184 (method url-fetch)
11185 (uri (string-append "https://integrativemodeling.org/"
11186 version "/download/imp-" version ".tar.gz"))
11187 (sha256
11188 (base32
11189 "1z1vcpwbylixk0zywngg5iw0jv083jj1bqphi817jpg3fb9fx2jj"))))
11190 (build-system cmake-build-system)
11191 (arguments
11192 `( ;; CMake 3.17 or newer is required for the CMAKE_TEST_ARGUMENTS used
11193 ;; below to have an effect.
11194 #:cmake ,cmake
11195 #:configure-flags
11196 (let ((disabled-tests
11197 '("expensive" ;exclude expensive tests
11198 "IMP.modeller" ;fail to import its own modules
11199 "IMP.parallel-test_sge.py" ;fail in build container
11200 ;; The following test fails non-reproducibly on
11201 ;; an inexact numbers assertion.
11202 "IMP.em-medium_test_local_fitting.py")))
11203 (list
11204 (string-append
11205 "-DCMAKE_CTEST_ARGUMENTS="
11206 (string-join
11207 (list "-L" "-tests?-" ;select only tests
11208 "-E" (format #f "'(~a)'" (string-join disabled-tests "|")))
11209 ";"))))))
11210 (native-inputs
11211 `(("python" ,python-wrapper)
11212 ("swig" ,swig)))
11213 (inputs
11214 `(("boost" ,boost)
11215 ("cgal" ,cgal)
11216 ("gsl" ,gsl)
11217 ("hdf5" ,hdf5)
11218 ("fftw" ,fftw)
11219 ("eigen" ,eigen)
11220 ;; Enabling MPI causes the build to use all the available memory and
11221 ;; fail (tested on a machine with 32 GiB of RAM).
11222 ;;("mpi" ,openmpi)
11223 ("opencv" ,opencv)))
11224 (propagated-inputs
11225 `(("python-numpy" ,python-numpy)
11226 ("python-scipy" ,python-scipy)
11227 ("python-pandas" ,python-pandas)
11228 ("python-scikit-learn" ,python-scikit-learn)
11229 ("python-networkx" ,python-networkx)))
11230 (home-page "https://integrativemodeling.org")
11231 (synopsis "Integrative modeling platform")
11232 (description "IMP's broad goal is to contribute to a comprehensive
11233 structural characterization of biomolecules ranging in size and complexity
11234 from small peptides to large macromolecular assemblies, by integrating data
11235 from diverse biochemical and biophysical experiments. IMP provides a C++ and
11236 Python toolbox for solving complex modeling problems, and a number of
11237 applications for tackling some common problems in a user-friendly way.")
11238 ;; IMP is largely available under the GNU Lesser GPL; see the file
11239 ;; COPYING.LGPL for the full text of this license. Some IMP modules are
11240 ;; available under the GNU GPL (see the file COPYING.GPL).
11241 (license (list license:lgpl2.1+
11242 license:gpl3+))))
11243
11244 (define-public tadbit
11245 (package
11246 (name "tadbit")
11247 (version "1.0.1")
11248 (source (origin
11249 (method git-fetch)
11250 (uri (git-reference
11251 (url "https://github.com/3DGenomes/TADbit")
11252 (commit (string-append "v" version))))
11253 (file-name (git-file-name name version))
11254 (sha256
11255 (base32
11256 "0hqrlymh2a2bimcfdvlssy1x5h1lp3h1c5a7jj11hmcqczzqn3ni"))))
11257 (build-system python-build-system)
11258 (arguments
11259 `(#:phases
11260 (modify-phases %standard-phases
11261 (add-after 'unpack 'fix-problems-with-setup.py
11262 (lambda* (#:key outputs #:allow-other-keys)
11263 ;; Don't attempt to install the bash completions to
11264 ;; the home directory.
11265 (rename-file "extras/.bash_completion"
11266 "extras/tadbit")
11267 (substitute* "setup.py"
11268 (("\\(path.expanduser\\('~'\\)")
11269 (string-append "(\""
11270 (assoc-ref outputs "out")
11271 "/etc/bash_completion.d\""))
11272 (("extras/\\.bash_completion")
11273 "extras/tadbit"))
11274 #t))
11275 (replace 'check
11276 (lambda* (#:key inputs outputs #:allow-other-keys)
11277 (add-installed-pythonpath inputs outputs)
11278 (invoke "python3" "test/test_all.py")
11279 #t)))))
11280 (native-inputs
11281 `(("glib" ,glib "bin") ;for gtester
11282 ("pkg-config" ,pkg-config)))
11283 (inputs
11284 ;; TODO: add Chimera for visualization
11285 `(("imp" ,imp)
11286 ("mcl" ,mcl)
11287 ("python-future" ,python-future)
11288 ("python-h5py" ,python-h5py)
11289 ("python-scipy" ,python-scipy)
11290 ("python-numpy" ,python-numpy)
11291 ("python-matplotlib" ,python-matplotlib)
11292 ("python-pysam" ,python-pysam)))
11293 (home-page "https://3dgenomes.github.io/TADbit/")
11294 (synopsis "Analyze, model, and explore 3C-based data")
11295 (description
11296 "TADbit is a complete Python library to deal with all steps to analyze,
11297 model, and explore 3C-based data. With TADbit the user can map FASTQ files to
11298 obtain raw interaction binned matrices (Hi-C like matrices), normalize and
11299 correct interaction matrices, identify and compare the so-called
11300 @dfn{Topologically Associating Domains} (TADs), build 3D models from the
11301 interaction matrices, and finally, extract structural properties from the
11302 models. TADbit is complemented by TADkit for visualizing 3D models.")
11303 (license license:gpl3+)))
11304
11305 (define-public kentutils
11306 (package
11307 (name "kentutils")
11308 ;; 302.1.0 is out, but the only difference is the inclusion of
11309 ;; pre-built binaries.
11310 (version "302.0.0")
11311 (source
11312 (origin
11313 (method git-fetch)
11314 (uri (git-reference
11315 (url "https://github.com/ENCODE-DCC/kentUtils")
11316 (commit (string-append "v" version))))
11317 (file-name (git-file-name name version))
11318 (sha256
11319 (base32
11320 "0n1wbyjpzii2b9qhyp9r1q76j623cggpg3y8fmw78ld3z4y7ivha"))
11321 (modules '((guix build utils)
11322 (srfi srfi-26)
11323 (ice-9 ftw)))
11324 (snippet
11325 '(begin
11326 ;; Only the contents of the specified directories are free
11327 ;; for all uses, so we remove the rest. "hg/autoSql" and
11328 ;; "hg/autoXml" are nominally free, but they depend on a
11329 ;; library that is built from the sources in "hg/lib",
11330 ;; which is nonfree.
11331 (let ((free (list "." ".."
11332 "utils" "lib" "inc" "tagStorm"
11333 "parasol" "htslib"))
11334 (directory? (lambda (file)
11335 (eq? 'directory (stat:type (stat file))))))
11336 (for-each (lambda (file)
11337 (and (directory? file)
11338 (delete-file-recursively file)))
11339 (map (cut string-append "src/" <>)
11340 (scandir "src"
11341 (lambda (file)
11342 (not (member file free)))))))
11343 ;; Only make the utils target, not the userApps target,
11344 ;; because that requires libraries we won't build.
11345 (substitute* "Makefile"
11346 ((" userApps") " utils"))
11347 ;; Only build libraries that are free.
11348 (substitute* "src/makefile"
11349 (("DIRS =.*") "DIRS =\n")
11350 (("cd jkOwnLib.*") "")
11351 ((" hgLib") "")
11352 (("cd hg.*") ""))
11353 (substitute* "src/utils/makefile"
11354 ;; These tools depend on "jkhgap.a", which is part of the
11355 ;; nonfree "src/hg/lib" directory.
11356 (("raSqlQuery") "")
11357 (("pslLiftSubrangeBlat") "")
11358
11359 ;; Do not build UCSC tools, which may require nonfree
11360 ;; components.
11361 (("ALL_APPS =.*") "ALL_APPS = $(UTILS_APPLIST)\n"))
11362 #t))))
11363 (build-system gnu-build-system)
11364 (arguments
11365 `( ;; There is no global test target and the test target for
11366 ;; individual tools depends on input files that are not
11367 ;; included.
11368 #:tests? #f
11369 #:phases
11370 (modify-phases %standard-phases
11371 (add-after 'unpack 'fix-permissions
11372 (lambda _ (make-file-writable "src/inc/localEnvironment.mk") #t))
11373 (add-after 'unpack 'fix-paths
11374 (lambda _
11375 (substitute* "Makefile"
11376 (("/bin/echo") (which "echo")))
11377 #t))
11378 (add-after 'unpack 'prepare-samtabix
11379 (lambda* (#:key inputs #:allow-other-keys)
11380 (copy-recursively (assoc-ref inputs "samtabix")
11381 "samtabix")
11382 #t))
11383 (delete 'configure)
11384 (replace 'install
11385 (lambda* (#:key outputs #:allow-other-keys)
11386 (let ((bin (string-append (assoc-ref outputs "out")
11387 "/bin")))
11388 (copy-recursively "bin" bin))
11389 #t)))))
11390 (native-inputs
11391 `(("samtabix"
11392 ,(origin
11393 (method git-fetch)
11394 (uri (git-reference
11395 (url "http://genome-source.cse.ucsc.edu/samtabix.git")
11396 (commit "10fd107909c1ac4d679299908be4262a012965ba")))
11397 (sha256
11398 (base32
11399 "0c1nj64l42v395sa84n7az43xiap4i6f9n9dfz4058aqiwkhkmma"))))))
11400 (inputs
11401 `(("zlib" ,zlib)
11402 ("tcsh" ,tcsh)
11403 ("perl" ,perl)
11404 ("libpng" ,libpng)
11405 ("mariadb-dev" ,mariadb "dev")
11406 ("openssl" ,openssl-1.0)))
11407 (home-page "https://genome.cse.ucsc.edu/index.html")
11408 (synopsis "Assorted bioinformatics utilities")
11409 (description "This package provides the kentUtils, a selection of
11410 bioinformatics utilities used in combination with the UCSC genome
11411 browser.")
11412 ;; Only a subset of the sources are released under a non-copyleft
11413 ;; free software license. All other sources are removed in a
11414 ;; snippet. See this bug report for an explanation of how the
11415 ;; license statements apply:
11416 ;; https://github.com/ENCODE-DCC/kentUtils/issues/12
11417 (license (license:non-copyleft
11418 "http://genome.ucsc.edu/license/"
11419 "The contents of this package are free for all uses."))))
11420
11421 (define-public f-seq
11422 (let ((commit "6ccded34cff38cf432deed8503648b4a66953f9b")
11423 (revision "1"))
11424 (package
11425 (name "f-seq")
11426 (version (string-append "1.1-" revision "." (string-take commit 7)))
11427 (source (origin
11428 (method git-fetch)
11429 (uri (git-reference
11430 (url "https://github.com/aboyle/F-seq")
11431 (commit commit)))
11432 (file-name (string-append name "-" version))
11433 (sha256
11434 (base32
11435 "1nk33k0yajg2id4g59bc4szr58r2q6pdq42vgcw054m8ip9wv26h"))
11436 (modules '((guix build utils)))
11437 ;; Remove bundled Java library archives.
11438 (snippet
11439 '(begin
11440 (for-each delete-file (find-files "lib" ".*"))
11441 #t))))
11442 (build-system ant-build-system)
11443 (arguments
11444 `(#:tests? #f ; no tests included
11445 #:phases
11446 (modify-phases %standard-phases
11447 (replace 'install
11448 (lambda* (#:key inputs outputs #:allow-other-keys)
11449 (let* ((target (assoc-ref outputs "out"))
11450 (bin (string-append target "/bin"))
11451 (doc (string-append target "/share/doc/f-seq"))
11452 (lib (string-append target "/lib")))
11453 (mkdir-p target)
11454 (mkdir-p doc)
11455 (substitute* "bin/linux/fseq"
11456 (("java") (which "java"))
11457 (("\\$REALDIR/../lib/commons-cli-1.1.jar")
11458 (string-append (assoc-ref inputs "java-commons-cli")
11459 "/share/java/commons-cli.jar"))
11460 (("REALDIR=.*")
11461 (string-append "REALDIR=" bin "\n")))
11462 (install-file "README.txt" doc)
11463 (install-file "bin/linux/fseq" bin)
11464 (install-file "build~/fseq.jar" lib)
11465 (copy-recursively "lib" lib)
11466 #t))))))
11467 (inputs
11468 `(("perl" ,perl)
11469 ("java-commons-cli" ,java-commons-cli)))
11470 (home-page "http://fureylab.web.unc.edu/software/fseq/")
11471 (synopsis "Feature density estimator for high-throughput sequence tags")
11472 (description
11473 "F-Seq is a software package that generates a continuous tag sequence
11474 density estimation allowing identification of biologically meaningful sites
11475 such as transcription factor binding sites (ChIP-seq) or regions of open
11476 chromatin (DNase-seq). Output can be displayed directly in the UCSC Genome
11477 Browser.")
11478 (license license:gpl3+))))
11479
11480 (define-public bismark
11481 (package
11482 (name "bismark")
11483 (version "0.20.1")
11484 (source
11485 (origin
11486 (method git-fetch)
11487 (uri (git-reference
11488 (url "https://github.com/FelixKrueger/Bismark")
11489 (commit version)))
11490 (file-name (string-append name "-" version "-checkout"))
11491 (sha256
11492 (base32
11493 "0xchm3rgilj6vfjnyzfzzymfd7djr64sbrmrvs3njbwi66jqbzw9"))))
11494 (build-system perl-build-system)
11495 (arguments
11496 `(#:tests? #f ; there are no tests
11497 #:modules ((guix build utils)
11498 (ice-9 popen)
11499 (srfi srfi-26)
11500 (guix build perl-build-system))
11501 #:phases
11502 (modify-phases %standard-phases
11503 ;; The bundled plotly.js is minified.
11504 (add-after 'unpack 'replace-plotly.js
11505 (lambda* (#:key inputs #:allow-other-keys)
11506 (let* ((file (assoc-ref inputs "plotly.js"))
11507 (installed "plotly/plotly.js"))
11508 (let ((minified (open-pipe* OPEN_READ "uglify-js" file)))
11509 (call-with-output-file installed
11510 (cut dump-port minified <>))))
11511 #t))
11512 (delete 'configure)
11513 (delete 'build)
11514 (replace 'install
11515 (lambda* (#:key inputs outputs #:allow-other-keys)
11516 (let* ((out (assoc-ref outputs "out"))
11517 (bin (string-append out "/bin"))
11518 (share (string-append out "/share/bismark"))
11519 (docdir (string-append out "/share/doc/bismark"))
11520 (docs '("Docs/Bismark_User_Guide.html"))
11521 (scripts '("bismark"
11522 "bismark_genome_preparation"
11523 "bismark_methylation_extractor"
11524 "bismark2bedGraph"
11525 "bismark2report"
11526 "coverage2cytosine"
11527 "deduplicate_bismark"
11528 "filter_non_conversion"
11529 "bam2nuc"
11530 "bismark2summary"
11531 "NOMe_filtering")))
11532 (substitute* "bismark2report"
11533 (("\\$RealBin/plotly")
11534 (string-append share "/plotly")))
11535 (mkdir-p share)
11536 (mkdir-p docdir)
11537 (mkdir-p bin)
11538 (for-each (lambda (file) (install-file file bin))
11539 scripts)
11540 (for-each (lambda (file) (install-file file docdir))
11541 docs)
11542 (copy-recursively "Docs/Images" (string-append docdir "/Images"))
11543 (copy-recursively "plotly"
11544 (string-append share "/plotly"))
11545
11546 ;; Fix references to gunzip
11547 (substitute* (map (lambda (file)
11548 (string-append bin "/" file))
11549 scripts)
11550 (("\"gunzip -c")
11551 (string-append "\"" (assoc-ref inputs "gzip")
11552 "/bin/gunzip -c")))
11553 #t))))))
11554 (inputs
11555 `(("gzip" ,gzip)
11556 ("perl-carp" ,perl-carp)
11557 ("perl-getopt-long" ,perl-getopt-long)))
11558 (native-inputs
11559 `(("plotly.js"
11560 ,(origin
11561 (method url-fetch)
11562 (uri (string-append "https://raw.githubusercontent.com/plotly/plotly.js/"
11563 "v1.39.4/dist/plotly.js"))
11564 (sha256
11565 (base32 "138mwsr4nf5qif4mrxx286mpnagxd1xwl6k8aidrjgknaqg88zyr"))))
11566 ("uglify-js" ,uglify-js)))
11567 (home-page "https://www.bioinformatics.babraham.ac.uk/projects/bismark/")
11568 (synopsis "Map bisulfite treated sequence reads and analyze methylation")
11569 (description "Bismark is a program to map bisulfite treated sequencing
11570 reads to a genome of interest and perform methylation calls in a single step.
11571 The output can be easily imported into a genome viewer, such as SeqMonk, and
11572 enables a researcher to analyse the methylation levels of their samples
11573 straight away. Its main features are:
11574
11575 @itemize
11576 @item Bisulfite mapping and methylation calling in one single step
11577 @item Supports single-end and paired-end read alignments
11578 @item Supports ungapped and gapped alignments
11579 @item Alignment seed length, number of mismatches etc are adjustable
11580 @item Output discriminates between cytosine methylation in CpG, CHG
11581 and CHH context
11582 @end itemize\n")
11583 (license license:gpl3+)))
11584
11585 (define-public paml
11586 (package
11587 (name "paml")
11588 (version "4.9e")
11589 (source (origin
11590 (method url-fetch)
11591 (uri (string-append "http://abacus.gene.ucl.ac.uk/software/"
11592 "paml" version ".tgz"))
11593 (sha256
11594 (base32
11595 "13zf6h9fiqghwhch2h06x1zdr6s42plsnqahflp5g7myr3han3s6"))
11596 (modules '((guix build utils)))
11597 ;; Remove Windows binaries
11598 (snippet
11599 '(begin
11600 (for-each delete-file (find-files "." "\\.exe$"))
11601 ;; Some files in the original tarball have restrictive
11602 ;; permissions, which makes repackaging fail
11603 (for-each (lambda (file) (chmod file #o644)) (find-files "."))
11604 #t))))
11605 (build-system gnu-build-system)
11606 (arguments
11607 `(#:tests? #f ; there are no tests
11608 #:make-flags '("CC=gcc")
11609 #:phases
11610 (modify-phases %standard-phases
11611 (replace 'configure
11612 (lambda _
11613 (substitute* "src/BFdriver.c"
11614 (("/bin/bash") (which "bash")))
11615 (chdir "src")
11616 #t))
11617 (replace 'install
11618 (lambda* (#:key outputs #:allow-other-keys)
11619 (let ((tools '("baseml" "basemlg" "codeml"
11620 "pamp" "evolver" "yn00" "chi2"))
11621 (bin (string-append (assoc-ref outputs "out") "/bin"))
11622 (docdir (string-append (assoc-ref outputs "out")
11623 "/share/doc/paml")))
11624 (mkdir-p bin)
11625 (for-each (lambda (file) (install-file file bin)) tools)
11626 (copy-recursively "../doc" docdir)
11627 #t))))))
11628 (home-page "http://abacus.gene.ucl.ac.uk/software/paml.html")
11629 (synopsis "Phylogentic analysis by maximum likelihood")
11630 (description "PAML (for Phylogentic Analysis by Maximum Likelihood)
11631 contains a few programs for model fitting and phylogenetic tree reconstruction
11632 using nucleotide or amino-acid sequence data.")
11633 ;; GPLv3 only
11634 (license license:gpl3)))
11635
11636 (define-public kallisto
11637 (package
11638 (name "kallisto")
11639 (version "0.44.0")
11640 (source (origin
11641 (method git-fetch)
11642 (uri (git-reference
11643 (url "https://github.com/pachterlab/kallisto")
11644 (commit (string-append "v" version))))
11645 (file-name (git-file-name name version))
11646 (sha256
11647 (base32
11648 "0nj382jiywqnpgvyhichajpkkh5r0bapn43f4dx40zdaq5v4m40m"))))
11649 (build-system cmake-build-system)
11650 (arguments
11651 `(#:tests? #f ; no "check" target
11652 #:phases
11653 (modify-phases %standard-phases
11654 (add-after 'unpack 'do-not-use-bundled-htslib
11655 (lambda _
11656 (substitute* "CMakeLists.txt"
11657 (("^ExternalProject_Add" m)
11658 (string-append "if (NEVER)\n" m))
11659 (("^\\)")
11660 (string-append ")\nendif(NEVER)"))
11661 (("include_directories\\(\\$\\{htslib_PREFIX.*" m)
11662 (string-append "# " m)))
11663 (substitute* "src/CMakeLists.txt"
11664 (("target_link_libraries\\(kallisto kallisto_core pthread \
11665 \\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/../ext/htslib/libhts.a\\)")
11666 "target_link_libraries(kallisto kallisto_core pthread hts)")
11667 (("include_directories\\(\\.\\./ext/htslib\\)") ""))
11668 #t)))))
11669 (inputs
11670 `(("hdf5" ,hdf5)
11671 ("htslib" ,htslib)
11672 ("zlib" ,zlib)))
11673 (home-page "https://pachterlab.github.io/kallisto/")
11674 (synopsis "Near-optimal RNA-Seq quantification")
11675 (description
11676 "Kallisto is a program for quantifying abundances of transcripts from
11677 RNA-Seq data, or more generally of target sequences using high-throughput
11678 sequencing reads. It is based on the novel idea of pseudoalignment for
11679 rapidly determining the compatibility of reads with targets, without the need
11680 for alignment. Pseudoalignment of reads preserves the key information needed
11681 for quantification, and kallisto is therefore not only fast, but also as
11682 accurate as existing quantification tools.")
11683 (license license:bsd-2)))
11684
11685 (define-public libgff
11686 (package
11687 (name "libgff")
11688 (version "1.0")
11689 (source (origin
11690 (method git-fetch)
11691 (uri (git-reference
11692 (url "https://github.com/Kingsford-Group/libgff")
11693 (commit (string-append "v" version))))
11694 (file-name (git-file-name name version))
11695 (sha256
11696 (base32
11697 "0n6vfjnq7a2mianipscbshrvbncss8z4zkgkbjw754p9043nfkps"))))
11698 (build-system cmake-build-system)
11699 (arguments `(#:tests? #f)) ; no tests included
11700 (home-page "https://github.com/Kingsford-Group/libgff")
11701 (synopsis "Parser library for reading/writing GFF files")
11702 (description "This is a simple \"libraryfication\" of the GFF/GTF parsing
11703 code that is used in the Cufflinks codebase. The goal of this library is to
11704 provide this functionality without the necessity of drawing in a heavy-weight
11705 dependency like SeqAn.")
11706 (license (license:x11-style "https://www.boost.org/LICENSE_1_0.txt"))))
11707
11708 (define-public sailfish
11709 (package
11710 (name "sailfish")
11711 (version "0.10.1")
11712 (source (origin
11713 (method git-fetch)
11714 (uri (git-reference
11715 (url "https://github.com/kingsfordgroup/sailfish")
11716 (commit (string-append "v" version))))
11717 (file-name (git-file-name name version))
11718 (sha256
11719 (base32
11720 "1amcc5hqvsl42hg4x19bi9vy47cl874s0lw1fmi0hwsdk9i8c03v"))
11721 (modules '((guix build utils)))
11722 (snippet
11723 '(begin
11724 ;; Delete bundled headers for eigen3.
11725 (delete-file-recursively "include/eigen3/")
11726 #t))))
11727 (build-system cmake-build-system)
11728 (arguments
11729 `(#:configure-flags
11730 (list (string-append "-DBOOST_INCLUDEDIR="
11731 (assoc-ref %build-inputs "boost")
11732 "/include/")
11733 (string-append "-DBOOST_LIBRARYDIR="
11734 (assoc-ref %build-inputs "boost")
11735 "/lib/")
11736 (string-append "-DBoost_LIBRARIES="
11737 "-lboost_iostreams "
11738 "-lboost_filesystem "
11739 "-lboost_system "
11740 "-lboost_thread "
11741 "-lboost_timer "
11742 "-lboost_chrono "
11743 "-lboost_program_options")
11744 "-DBoost_FOUND=TRUE"
11745 ;; Don't download RapMap---we already have it!
11746 "-DFETCHED_RAPMAP=1")
11747 ;; Tests must be run after installation and the location of the test
11748 ;; data file must be overridden. But the tests fail. It looks like
11749 ;; they are not really meant to be run.
11750 #:tests? #f
11751 #:phases
11752 (modify-phases %standard-phases
11753 ;; Boost cannot be found, even though it's right there.
11754 (add-after 'unpack 'do-not-look-for-boost
11755 (lambda* (#:key inputs #:allow-other-keys)
11756 (substitute* "CMakeLists.txt"
11757 (("find_package\\(Boost 1\\.53\\.0") "#"))
11758 #t))
11759 (add-after 'unpack 'do-not-assign-to-macro
11760 (lambda _
11761 (substitute* "include/spdlog/details/format.cc"
11762 (("const unsigned CHAR_WIDTH = 1;") ""))
11763 #t))
11764 (add-after 'unpack 'prepare-rapmap
11765 (lambda* (#:key inputs #:allow-other-keys)
11766 (let ((src "external/install/src/rapmap/")
11767 (include "external/install/include/rapmap/")
11768 (rapmap (assoc-ref inputs "rapmap")))
11769 (mkdir-p "/tmp/rapmap")
11770 (invoke "tar" "xf"
11771 (assoc-ref inputs "rapmap")
11772 "-C" "/tmp/rapmap"
11773 "--strip-components=1")
11774 (mkdir-p src)
11775 (mkdir-p include)
11776 (for-each (lambda (file)
11777 (install-file file src))
11778 (find-files "/tmp/rapmap/src" "\\.(c|cpp)"))
11779 (copy-recursively "/tmp/rapmap/include" include))
11780 #t))
11781 (add-after 'unpack 'use-system-libraries
11782 (lambda* (#:key inputs #:allow-other-keys)
11783 (substitute* '("src/SailfishIndexer.cpp"
11784 "src/SailfishUtils.cpp"
11785 "src/SailfishQuantify.cpp"
11786 "src/FASTAParser.cpp"
11787 "include/PCA.hpp"
11788 "include/SailfishUtils.hpp"
11789 "include/SailfishIndex.hpp"
11790 "include/CollapsedEMOptimizer.hpp"
11791 "src/CollapsedEMOptimizer.cpp")
11792 (("#include \"jellyfish/config.h\"") ""))
11793 (substitute* "src/CMakeLists.txt"
11794 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
11795 (string-append (assoc-ref inputs "jellyfish")
11796 "/include/jellyfish-" ,(package-version jellyfish)))
11797 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
11798 (string-append (assoc-ref inputs "jellyfish")
11799 "/lib/libjellyfish-2.0.a"))
11800 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
11801 (string-append (assoc-ref inputs "libdivsufsort")
11802 "/lib/libdivsufsort.so"))
11803 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
11804 (string-append (assoc-ref inputs "libdivsufsort")
11805 "/lib/libdivsufsort64.so")))
11806 (substitute* "CMakeLists.txt"
11807 ;; Don't prefer static libs
11808 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
11809 (("find_package\\(Jellyfish.*") "")
11810 (("ExternalProject_Add\\(libjellyfish") "message(")
11811 (("ExternalProject_Add\\(libgff") "message(")
11812 (("ExternalProject_Add\\(libsparsehash") "message(")
11813 (("ExternalProject_Add\\(libdivsufsort") "message("))
11814
11815 ;; Ensure that Eigen headers can be found
11816 (setenv "CPLUS_INCLUDE_PATH"
11817 (string-append (assoc-ref inputs "eigen")
11818 "/include/eigen3:"
11819 (or (getenv "CPLUS_INCLUDE_PATH") "")))
11820 #t)))))
11821 (inputs
11822 `(("boost" ,boost)
11823 ("eigen" ,eigen)
11824 ("jemalloc" ,jemalloc)
11825 ("jellyfish" ,jellyfish)
11826 ("sparsehash" ,sparsehash)
11827 ("rapmap" ,(origin
11828 (method git-fetch)
11829 (uri (git-reference
11830 (url "https://github.com/COMBINE-lab/RapMap")
11831 (commit (string-append "sf-v" version))))
11832 (file-name (string-append "rapmap-sf-v" version "-checkout"))
11833 (sha256
11834 (base32
11835 "1hv79l5i576ykv5a1srj2p0q36yvyl5966m0fcy2lbi169ipjakf"))
11836 (modules '((guix build utils)))
11837 ;; These files are expected to be excluded.
11838 (snippet
11839 '(begin (delete-file-recursively "include/spdlog")
11840 (for-each delete-file '("include/xxhash.h"
11841 "src/xxhash.c"))
11842 #t))))
11843 ("libdivsufsort" ,libdivsufsort)
11844 ("libgff" ,libgff)
11845 ("tbb" ,tbb)
11846 ("zlib" ,zlib)))
11847 (native-inputs
11848 `(("pkg-config" ,pkg-config)))
11849 (home-page "https://www.cs.cmu.edu/~ckingsf/software/sailfish/")
11850 (synopsis "Mapping-based isoform quantification from RNA-Seq reads")
11851 (description "Sailfish is a tool for genomic transcript quantification
11852 from RNA-seq data. It requires a set of target transcripts (either from a
11853 reference or de-novo assembly) to quantify. All you need to run sailfish is a
11854 fasta file containing your reference transcripts and a (set of) fasta/fastq
11855 file(s) containing your reads.")
11856 (license license:gpl3+)))
11857
11858 (define libstadenio-for-salmon
11859 (package
11860 (name "libstadenio")
11861 (version "1.14.8")
11862 (source (origin
11863 (method git-fetch)
11864 (uri (git-reference
11865 (url "https://github.com/COMBINE-lab/staden-io_lib")
11866 (commit (string-append "v" version))))
11867 (file-name (string-append name "-" version "-checkout"))
11868 (sha256
11869 (base32
11870 "1x8kxxqxl892vwfbprlbyfwkkv7c34ggkc94892x9x0g37x5nbwx"))))
11871 (build-system gnu-build-system)
11872 (arguments '(#:parallel-tests? #f)) ; not supported
11873 (inputs
11874 `(("zlib" ,zlib)))
11875 (native-inputs
11876 `(("perl" ,perl))) ; for tests
11877 (home-page "https://github.com/COMBINE-lab/staden-io_lib")
11878 (synopsis "General purpose trace and experiment file library")
11879 (description "This package provides a library of file reading and writing
11880 code to provide a general purpose Trace file (and Experiment File) reading
11881 interface.
11882
11883 The following file formats are supported:
11884
11885 @enumerate
11886 @item SCF trace files
11887 @item ABI trace files
11888 @item ALF trace files
11889 @item ZTR trace files
11890 @item SFF trace archives
11891 @item SRF trace archives
11892 @item Experiment files
11893 @item Plain text files
11894 @item SAM/BAM sequence files
11895 @item CRAM sequence files
11896 @end enumerate\n")
11897 (license license:bsd-3)))
11898
11899 (define-public salmon
11900 (package
11901 (name "salmon")
11902 (version "0.13.1")
11903 (source (origin
11904 (method git-fetch)
11905 (uri (git-reference
11906 (url "https://github.com/COMBINE-lab/salmon")
11907 (commit (string-append "v" version))))
11908 (file-name (git-file-name name version))
11909 (sha256
11910 (base32
11911 "1i2z4aivicmiixdz9bxalp7vmfzi3k92fxa63iqa8kgvfw5a4aq5"))
11912 (modules '((guix build utils)))
11913 (snippet
11914 '(begin
11915 ;; Delete bundled headers for eigen3.
11916 (delete-file-recursively "include/eigen3/")
11917 #t))))
11918 (build-system cmake-build-system)
11919 (arguments
11920 `(#:configure-flags
11921 (list (string-append "-DBOOST_INCLUDEDIR="
11922 (assoc-ref %build-inputs "boost")
11923 "/include/")
11924 (string-append "-DBOOST_LIBRARYDIR="
11925 (assoc-ref %build-inputs "boost")
11926 "/lib/")
11927 (string-append "-DBoost_LIBRARIES="
11928 "-lboost_iostreams "
11929 "-lboost_filesystem "
11930 "-lboost_system "
11931 "-lboost_thread "
11932 "-lboost_timer "
11933 "-lboost_chrono "
11934 "-lboost_program_options")
11935 "-DBoost_FOUND=TRUE"
11936 "-DTBB_LIBRARIES=tbb tbbmalloc"
11937 ;; Don't download RapMap---we already have it!
11938 "-DFETCHED_RAPMAP=1")
11939 #:phases
11940 (modify-phases %standard-phases
11941 ;; Boost cannot be found, even though it's right there.
11942 (add-after 'unpack 'do-not-look-for-boost
11943 (lambda* (#:key inputs #:allow-other-keys)
11944 (substitute* "CMakeLists.txt"
11945 (("find_package\\(Boost 1\\.59\\.0") "#"))
11946 #t))
11947 (add-after 'unpack 'do-not-phone-home
11948 (lambda _
11949 (substitute* "src/Salmon.cpp"
11950 (("getVersionMessage\\(\\)") "\"\""))
11951 #t))
11952 (add-after 'unpack 'prepare-rapmap
11953 (lambda* (#:key inputs #:allow-other-keys)
11954 (let ((src "external/install/src/rapmap/")
11955 (include "external/install/include/rapmap/")
11956 (rapmap (assoc-ref inputs "rapmap")))
11957 (mkdir-p src)
11958 (mkdir-p include)
11959 (copy-recursively (string-append rapmap "/src") src)
11960 (copy-recursively (string-append rapmap "/include") include)
11961 (for-each delete-file '("external/install/include/rapmap/xxhash.h"
11962 "external/install/include/rapmap/FastxParser.hpp"
11963 "external/install/include/rapmap/concurrentqueue.h"
11964 "external/install/include/rapmap/FastxParserThreadUtils.hpp"
11965 "external/install/src/rapmap/FastxParser.cpp"
11966 "external/install/src/rapmap/xxhash.c"))
11967 (delete-file-recursively "external/install/include/rapmap/spdlog"))
11968 #t))
11969 (add-after 'unpack 'use-system-libraries
11970 (lambda* (#:key inputs #:allow-other-keys)
11971 (substitute* "CMakeLists.txt"
11972 ;; Don't prefer static libs
11973 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
11974 (("set\\(TBB_LIBRARIES") "message(")
11975 ;; Don't download anything
11976 (("DOWNLOAD_COMMAND") "DOWNLOAD_COMMAND echo")
11977 (("externalproject_add\\(libcereal") "message(")
11978 (("externalproject_add\\(libgff") "message(")
11979 (("externalproject_add\\(libtbb") "message(")
11980 (("externalproject_add\\(libdivsufsort") "message(")
11981 (("externalproject_add\\(libstadenio") "message(")
11982 (("externalproject_add_step\\(") "message("))
11983 (substitute* "src/CMakeLists.txt"
11984 (("add_dependencies") "#")
11985 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libstaden-read.a")
11986 (string-append (assoc-ref inputs "libstadenio-for-salmon")
11987 "/lib/libstaden-read.so"))
11988 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
11989 (string-append (assoc-ref inputs "libdivsufsort")
11990 "/lib/libdivsufsort.so"))
11991 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
11992 (string-append (assoc-ref inputs "libdivsufsort")
11993 "/lib/libdivsufsort64.so"))
11994 (("lib/libdivsufsort.a") "/lib/libdivsufsort.so"))
11995
11996 ;; Ensure that all headers can be found
11997 (setenv "CPLUS_INCLUDE_PATH"
11998 (string-append (or (getenv "CPLUS_INCLUDE_PATH") "")
11999 ":"
12000 (assoc-ref inputs "eigen")
12001 "/include/eigen3"))
12002 #t))
12003 ;; CMAKE_INSTALL_PREFIX does not exist when the tests are
12004 ;; run. It only exists after the install phase.
12005 (add-after 'unpack 'fix-tests
12006 (lambda _
12007 (substitute* "src/CMakeLists.txt"
12008 (("DTOPLEVEL_DIR=\\$\\{CMAKE_INSTALL_PREFIX")
12009 "DTOPLEVEL_DIR=${GAT_SOURCE_DIR"))
12010 #t)))))
12011 (inputs
12012 `(("boost" ,boost)
12013 ("bzip2" ,bzip2)
12014 ("cereal" ,cereal)
12015 ("eigen" ,eigen)
12016 ("rapmap" ,(origin
12017 (method git-fetch)
12018 (uri (git-reference
12019 (url "https://github.com/COMBINE-lab/RapMap")
12020 (commit (string-append "salmon-v" version))))
12021 (file-name (string-append "rapmap-salmon-v" version "-checkout"))
12022 (sha256
12023 (base32
12024 "1biplxf0csc7a8h1wf219b0vmjkvw6wk2zylhdklb577kgmihdms"))))
12025 ("jemalloc" ,jemalloc)
12026 ("libgff" ,libgff)
12027 ("tbb" ,tbb)
12028 ("libdivsufsort" ,libdivsufsort)
12029 ("libstadenio-for-salmon" ,libstadenio-for-salmon)
12030 ("xz" ,xz)
12031 ("zlib" ,zlib)))
12032 (native-inputs
12033 `(("pkg-config" ,pkg-config)))
12034 (home-page "https://github.com/COMBINE-lab/salmon")
12035 (synopsis "Quantification from RNA-seq reads using lightweight alignments")
12036 (description "Salmon is a program to produce highly-accurate,
12037 transcript-level quantification estimates from RNA-seq data. Salmon achieves
12038 its accuracy and speed via a number of different innovations, including the
12039 use of lightweight alignments (accurate but fast-to-compute proxies for
12040 traditional read alignments) and massively-parallel stochastic collapsed
12041 variational inference.")
12042 (license license:gpl3+)))
12043
12044 (define-public python-loompy
12045 (package
12046 (name "python-loompy")
12047 (version "2.0.17")
12048 ;; The tarball on Pypi does not include the tests.
12049 (source (origin
12050 (method git-fetch)
12051 (uri (git-reference
12052 (url "https://github.com/linnarsson-lab/loompy")
12053 (commit version)))
12054 (file-name (git-file-name name version))
12055 (sha256
12056 (base32
12057 "12a5kjgiikapv93wahfw0frszx1lblnppyz3vs5gy8fgmgngra07"))))
12058 (build-system python-build-system)
12059 (arguments
12060 `(#:phases
12061 (modify-phases %standard-phases
12062 (replace 'check
12063 (lambda _
12064 (setenv "PYTHONPATH"
12065 (string-append (getcwd) ":"
12066 (getenv "PYTHONPATH")))
12067 (invoke "pytest" "tests")
12068 #t)))))
12069 (propagated-inputs
12070 `(("python-h5py" ,python-h5py)
12071 ("python-numpy" ,python-numpy)
12072 ("python-pandas" ,python-pandas)
12073 ("python-scipy" ,python-scipy)))
12074 (native-inputs
12075 `(("python-pytest" ,python-pytest)))
12076 (home-page "https://github.com/linnarsson-lab/loompy")
12077 (synopsis "Work with .loom files for single-cell RNA-seq data")
12078 (description "The loom file format is an efficient format for very large
12079 omics datasets, consisting of a main matrix, optional additional layers, a
12080 variable number of row and column annotations. Loom also supports sparse
12081 graphs. This library makes it easy to work with @file{.loom} files for
12082 single-cell RNA-seq data.")
12083 (license license:bsd-3)))
12084
12085 ;; We cannot use the latest commit because it requires Java 9.
12086 (define-public java-forester
12087 (let ((commit "86b07efe302d5094b42deed9260f719a4c4ac2e6")
12088 (revision "1"))
12089 (package
12090 (name "java-forester")
12091 (version (string-append "0-" revision "." (string-take commit 7)))
12092 (source (origin
12093 (method git-fetch)
12094 (uri (git-reference
12095 (url "https://github.com/cmzmasek/forester")
12096 (commit commit)))
12097 (file-name (string-append name "-" version "-checkout"))
12098 (sha256
12099 (base32
12100 "0vxavc1yrf84yrnf20dq26hi0lglidk8d382xrxsy4qmlbjd276z"))
12101 (modules '((guix build utils)))
12102 (snippet
12103 '(begin
12104 ;; Delete bundled jars and pre-built classes
12105 (delete-file-recursively "forester/java/resources")
12106 (delete-file-recursively "forester/java/classes")
12107 (for-each delete-file (find-files "forester/java/" "\\.jar$"))
12108 ;; Delete bundled applications
12109 (delete-file-recursively "forester_applications")
12110 #t))))
12111 (build-system ant-build-system)
12112 (arguments
12113 `(#:tests? #f ; there are none
12114 #:jdk ,icedtea-8
12115 #:modules ((guix build ant-build-system)
12116 (guix build utils)
12117 (guix build java-utils)
12118 (sxml simple)
12119 (sxml transform))
12120 #:phases
12121 (modify-phases %standard-phases
12122 (add-after 'unpack 'chdir
12123 (lambda _ (chdir "forester/java") #t))
12124 (add-after 'chdir 'fix-dependencies
12125 (lambda _
12126 (chmod "build.xml" #o664)
12127 (call-with-output-file "build.xml.new"
12128 (lambda (port)
12129 (sxml->xml
12130 (pre-post-order
12131 (with-input-from-file "build.xml"
12132 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12133 `(;; Remove all unjar tags to avoid repacking classes.
12134 (unjar . ,(lambda _ '()))
12135 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12136 (*text* . ,(lambda (_ txt) txt))))
12137 port)))
12138 (rename-file "build.xml.new" "build.xml")
12139 #t))
12140 ;; FIXME: itext is difficult to package as it depends on a few
12141 ;; unpackaged libraries.
12142 (add-after 'chdir 'remove-dependency-on-unpackaged-itext
12143 (lambda _
12144 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12145 (substitute* "src/org/forester/archaeopteryx/MainFrame.java"
12146 (("pdf_written_to = PdfExporter.*")
12147 "throw new IOException(\"PDF export is not available.\");"))
12148 #t))
12149 ;; There is no install target
12150 (replace 'install (install-jars ".")))))
12151 (propagated-inputs
12152 `(("java-commons-codec" ,java-commons-codec)
12153 ("java-openchart2" ,java-openchart2)))
12154 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12155 (synopsis "Phylogenomics libraries for Java")
12156 (description "Forester is a collection of Java libraries for
12157 phylogenomics and evolutionary biology research. It includes support for
12158 reading, writing, and exporting phylogenetic trees.")
12159 (license license:lgpl2.1+))))
12160
12161 (define-public java-forester-1.005
12162 (package
12163 (name "java-forester")
12164 (version "1.005")
12165 (source (origin
12166 (method url-fetch)
12167 (uri (string-append "https://repo1.maven.org/maven2/"
12168 "org/biojava/thirdparty/forester/"
12169 version "/forester-" version "-sources.jar"))
12170 (file-name (string-append name "-" version ".jar"))
12171 (sha256
12172 (base32
12173 "04r8qv4rk3p71z4ajrvp11py1z46qrx0047j3zzs79s6lnsm3lcv"))))
12174 (build-system ant-build-system)
12175 (arguments
12176 `(#:tests? #f ; there are none
12177 #:jdk ,icedtea-8
12178 #:modules ((guix build ant-build-system)
12179 (guix build utils)
12180 (guix build java-utils)
12181 (sxml simple)
12182 (sxml transform))
12183 #:phases
12184 (modify-phases %standard-phases
12185 (add-after 'unpack 'fix-dependencies
12186 (lambda* (#:key inputs #:allow-other-keys)
12187 (call-with-output-file "build.xml"
12188 (lambda (port)
12189 (sxml->xml
12190 (pre-post-order
12191 (with-input-from-file "src/build.xml"
12192 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12193 `(;; Remove all unjar tags to avoid repacking classes.
12194 (unjar . ,(lambda _ '()))
12195 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12196 (*text* . ,(lambda (_ txt) txt))))
12197 port)))
12198 (copy-file (assoc-ref inputs "synth_look_and_feel_1.xml")
12199 "synth_look_and_feel_1.xml")
12200 (copy-file (assoc-ref inputs "phyloxml.xsd")
12201 "phyloxml.xsd")
12202 (substitute* "build.xml"
12203 (("../resources/synth_laf/synth_look_and_feel_1.xml")
12204 "synth_look_and_feel_1.xml")
12205 (("../resources/phyloxml_schema/1.10/phyloxml.xsd")
12206 "phyloxml.xsd"))
12207 #t))
12208 ;; FIXME: itext is difficult to package as it depends on a few
12209 ;; unpackaged libraries.
12210 (add-after 'unpack 'remove-dependency-on-unpackaged-itext
12211 (lambda _
12212 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12213 (substitute* '("src/org/forester/archaeopteryx/MainFrame.java"
12214 "src/org/forester/archaeopteryx/MainFrameApplication.java")
12215 (("pdf_written_to = PdfExporter.*")
12216 "throw new IOException(\"PDF export is not available.\"); /*")
12217 ((".getPrintSizeX\\(\\), getOptions\\(\\).getPrintSizeY\\(\\) \\);") "*/")
12218 (("getCurrentTreePanel\\(\\).getHeight\\(\\) \\);") "*/"))
12219 #t))
12220 (add-after 'unpack 'delete-pre-built-classes
12221 (lambda _ (delete-file-recursively "src/classes") #t))
12222 ;; There is no install target
12223 (replace 'install (install-jars ".")))))
12224 (propagated-inputs
12225 `(("java-commons-codec" ,java-commons-codec)
12226 ("java-openchart2" ,java-openchart2)))
12227 ;; The source archive does not contain the resources.
12228 (native-inputs
12229 `(("phyloxml.xsd"
12230 ,(origin
12231 (method url-fetch)
12232 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12233 "b61cc2dcede0bede317db362472333115756b8c6/"
12234 "forester/resources/phyloxml_schema/1.10/phyloxml.xsd"))
12235 (file-name (string-append name "-phyloxml-" version ".xsd"))
12236 (sha256
12237 (base32
12238 "1zxc4m8sn4n389nqdnpxa8d0k17qnr3pm2y5y6g6vh4k0zm52npv"))))
12239 ("synth_look_and_feel_1.xml"
12240 ,(origin
12241 (method url-fetch)
12242 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12243 "29e04321615da6b35c1e15c60e52caf3f21d8e6a/"
12244 "forester/java/classes/resources/"
12245 "synth_look_and_feel_1.xml"))
12246 (file-name (string-append name "-synth-look-and-feel-" version ".xml"))
12247 (sha256
12248 (base32
12249 "1gv5602gv4k7y7713y75a4jvj7i9s7nildsbdl7n9q10sc2ikg8h"))))))
12250 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12251 (synopsis "Phylogenomics libraries for Java")
12252 (description "Forester is a collection of Java libraries for
12253 phylogenomics and evolutionary biology research. It includes support for
12254 reading, writing, and exporting phylogenetic trees.")
12255 (license license:lgpl2.1+)))
12256
12257 (define-public java-biojava-core
12258 (package
12259 (name "java-biojava-core")
12260 (version "4.2.11")
12261 (source (origin
12262 (method git-fetch)
12263 (uri (git-reference
12264 (url "https://github.com/biojava/biojava")
12265 (commit (string-append "biojava-" version))))
12266 (file-name (string-append name "-" version "-checkout"))
12267 (sha256
12268 (base32
12269 "1bvryh2bpsvash8ln79cmc9sqm8qw72hz4xzwqxcrjm8ssxszhqk"))))
12270 (build-system ant-build-system)
12271 (arguments
12272 `(#:jdk ,icedtea-8
12273 #:jar-name "biojava-core.jar"
12274 #:source-dir "biojava-core/src/main/java/"
12275 #:test-dir "biojava-core/src/test"
12276 ;; These tests seem to require internet access.
12277 #:test-exclude (list "**/SearchIOTest.java"
12278 "**/BlastXMLParserTest.java"
12279 "**/GenbankCookbookTest.java"
12280 "**/GenbankProxySequenceReaderTest.java")
12281 #:phases
12282 (modify-phases %standard-phases
12283 (add-before 'build 'copy-resources
12284 (lambda _
12285 (copy-recursively "biojava-core/src/main/resources"
12286 "build/classes")
12287 #t))
12288 (add-before 'check 'copy-test-resources
12289 (lambda _
12290 (copy-recursively "biojava-core/src/test/resources"
12291 "build/test-classes")
12292 #t)))))
12293 (propagated-inputs
12294 `(("java-log4j-api" ,java-log4j-api)
12295 ("java-log4j-core" ,java-log4j-core)
12296 ("java-slf4j-api" ,java-slf4j-api)
12297 ("java-slf4j-simple" ,java-slf4j-simple)))
12298 (native-inputs
12299 `(("java-junit" ,java-junit)
12300 ("java-hamcrest-core" ,java-hamcrest-core)))
12301 (home-page "https://biojava.org")
12302 (synopsis "Core libraries of Java framework for processing biological data")
12303 (description "BioJava is a project dedicated to providing a Java framework
12304 for processing biological data. It provides analytical and statistical
12305 routines, parsers for common file formats, reference implementations of
12306 popular algorithms, and allows the manipulation of sequences and 3D
12307 structures. The goal of the biojava project is to facilitate rapid
12308 application development for bioinformatics.
12309
12310 This package provides the core libraries.")
12311 (license license:lgpl2.1+)))
12312
12313 (define-public java-biojava-phylo
12314 (package (inherit java-biojava-core)
12315 (name "java-biojava-phylo")
12316 (build-system ant-build-system)
12317 (arguments
12318 `(#:jdk ,icedtea-8
12319 #:jar-name "biojava-phylo.jar"
12320 #:source-dir "biojava-phylo/src/main/java/"
12321 #:test-dir "biojava-phylo/src/test"
12322 #:phases
12323 (modify-phases %standard-phases
12324 (add-before 'build 'copy-resources
12325 (lambda _
12326 (copy-recursively "biojava-phylo/src/main/resources"
12327 "build/classes")
12328 #t))
12329 (add-before 'check 'copy-test-resources
12330 (lambda _
12331 (copy-recursively "biojava-phylo/src/test/resources"
12332 "build/test-classes")
12333 #t)))))
12334 (propagated-inputs
12335 `(("java-log4j-api" ,java-log4j-api)
12336 ("java-log4j-core" ,java-log4j-core)
12337 ("java-slf4j-api" ,java-slf4j-api)
12338 ("java-slf4j-simple" ,java-slf4j-simple)
12339 ("java-biojava-core" ,java-biojava-core)
12340 ("java-forester" ,java-forester)))
12341 (native-inputs
12342 `(("java-junit" ,java-junit)
12343 ("java-hamcrest-core" ,java-hamcrest-core)))
12344 (home-page "https://biojava.org")
12345 (synopsis "Biojava interface to the forester phylogenomics library")
12346 (description "The phylo module provides a biojava interface layer to the
12347 forester phylogenomics library for constructing phylogenetic trees.")))
12348
12349 (define-public java-biojava-alignment
12350 (package (inherit java-biojava-core)
12351 (name "java-biojava-alignment")
12352 (build-system ant-build-system)
12353 (arguments
12354 `(#:jdk ,icedtea-8
12355 #:jar-name "biojava-alignment.jar"
12356 #:source-dir "biojava-alignment/src/main/java/"
12357 #:test-dir "biojava-alignment/src/test"
12358 #:phases
12359 (modify-phases %standard-phases
12360 (add-before 'build 'copy-resources
12361 (lambda _
12362 (copy-recursively "biojava-alignment/src/main/resources"
12363 "build/classes")
12364 #t))
12365 (add-before 'check 'copy-test-resources
12366 (lambda _
12367 (copy-recursively "biojava-alignment/src/test/resources"
12368 "build/test-classes")
12369 #t)))))
12370 (propagated-inputs
12371 `(("java-log4j-api" ,java-log4j-api)
12372 ("java-log4j-core" ,java-log4j-core)
12373 ("java-slf4j-api" ,java-slf4j-api)
12374 ("java-slf4j-simple" ,java-slf4j-simple)
12375 ("java-biojava-core" ,java-biojava-core)
12376 ("java-biojava-phylo" ,java-biojava-phylo)
12377 ("java-forester" ,java-forester)))
12378 (native-inputs
12379 `(("java-junit" ,java-junit)
12380 ("java-hamcrest-core" ,java-hamcrest-core)))
12381 (home-page "https://biojava.org")
12382 (synopsis "Biojava API for genetic sequence alignment")
12383 (description "The alignment module of BioJava provides an API that
12384 contains
12385
12386 @itemize
12387 @item implementations of dynamic programming algorithms for sequence
12388 alignment;
12389 @item reading and writing of popular alignment file formats;
12390 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12391 @end itemize\n")))
12392
12393 (define-public java-biojava-core-4.0
12394 (package (inherit java-biojava-core)
12395 (name "java-biojava-core")
12396 (version "4.0.0")
12397 (source (origin
12398 (method git-fetch)
12399 (uri (git-reference
12400 (url "https://github.com/biojava/biojava")
12401 (commit (string-append "biojava-" version))))
12402 (file-name (string-append name "-" version "-checkout"))
12403 (sha256
12404 (base32
12405 "13675f6y9aqi7bi2lk3s1z7a22ynccjiqwa8izh7p97xi9wsfmd8"))))))
12406
12407 (define-public java-biojava-phylo-4.0
12408 (package (inherit java-biojava-core-4.0)
12409 (name "java-biojava-phylo")
12410 (build-system ant-build-system)
12411 (arguments
12412 `(#:jdk ,icedtea-8
12413 #:jar-name "biojava-phylo.jar"
12414 #:source-dir "biojava-phylo/src/main/java/"
12415 #:test-dir "biojava-phylo/src/test"
12416 #:phases
12417 (modify-phases %standard-phases
12418 (add-before 'build 'copy-resources
12419 (lambda _
12420 (copy-recursively "biojava-phylo/src/main/resources"
12421 "build/classes")
12422 #t))
12423 (add-before 'check 'copy-test-resources
12424 (lambda _
12425 (copy-recursively "biojava-phylo/src/test/resources"
12426 "build/test-classes")
12427 #t)))))
12428 (propagated-inputs
12429 `(("java-log4j-api" ,java-log4j-api)
12430 ("java-log4j-core" ,java-log4j-core)
12431 ("java-slf4j-api" ,java-slf4j-api)
12432 ("java-slf4j-simple" ,java-slf4j-simple)
12433 ("java-biojava-core" ,java-biojava-core-4.0)
12434 ("java-forester" ,java-forester-1.005)))
12435 (native-inputs
12436 `(("java-junit" ,java-junit)
12437 ("java-hamcrest-core" ,java-hamcrest-core)))
12438 (home-page "https://biojava.org")
12439 (synopsis "Biojava interface to the forester phylogenomics library")
12440 (description "The phylo module provides a biojava interface layer to the
12441 forester phylogenomics library for constructing phylogenetic trees.")))
12442
12443 (define-public java-biojava-alignment-4.0
12444 (package (inherit java-biojava-core-4.0)
12445 (name "java-biojava-alignment")
12446 (build-system ant-build-system)
12447 (arguments
12448 `(#:jdk ,icedtea-8
12449 #:jar-name "biojava-alignment.jar"
12450 #:source-dir "biojava-alignment/src/main/java/"
12451 #:test-dir "biojava-alignment/src/test"
12452 #:phases
12453 (modify-phases %standard-phases
12454 (add-before 'build 'copy-resources
12455 (lambda _
12456 (copy-recursively "biojava-alignment/src/main/resources"
12457 "build/classes")
12458 #t))
12459 (add-before 'check 'copy-test-resources
12460 (lambda _
12461 (copy-recursively "biojava-alignment/src/test/resources"
12462 "build/test-classes")
12463 #t)))))
12464 (propagated-inputs
12465 `(("java-log4j-api" ,java-log4j-api)
12466 ("java-log4j-core" ,java-log4j-core)
12467 ("java-slf4j-api" ,java-slf4j-api)
12468 ("java-slf4j-simple" ,java-slf4j-simple)
12469 ("java-biojava-core" ,java-biojava-core-4.0)
12470 ("java-biojava-phylo" ,java-biojava-phylo-4.0)
12471 ("java-forester" ,java-forester-1.005)))
12472 (native-inputs
12473 `(("java-junit" ,java-junit)
12474 ("java-hamcrest-core" ,java-hamcrest-core)))
12475 (home-page "https://biojava.org")
12476 (synopsis "Biojava API for genetic sequence alignment")
12477 (description "The alignment module of BioJava provides an API that
12478 contains
12479
12480 @itemize
12481 @item implementations of dynamic programming algorithms for sequence
12482 alignment;
12483 @item reading and writing of popular alignment file formats;
12484 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12485 @end itemize\n")))
12486
12487 (define-public dropseq-tools
12488 (package
12489 (name "dropseq-tools")
12490 (version "1.13")
12491 (source
12492 (origin
12493 (method url-fetch)
12494 (uri "http://mccarrolllab.com/download/1276/")
12495 (file-name (string-append "dropseq-tools-" version ".zip"))
12496 (sha256
12497 (base32
12498 "0yrffckxqk5l8b5xb6z4laq157zd9mdypr2p4b4vq2bhjzi1sj0s"))
12499 ;; Delete bundled libraries
12500 (modules '((guix build utils)))
12501 (snippet
12502 '(begin
12503 (for-each delete-file (find-files "jar/lib" "\\.jar$"))
12504 (delete-file-recursively "3rdParty")
12505 #t))))
12506 (build-system ant-build-system)
12507 (arguments
12508 `(#:tests? #f ; test data are not included
12509 #:test-target "test"
12510 #:build-target "all"
12511 #:source-dir "public/src/"
12512 #:jdk ,icedtea-8
12513 #:make-flags
12514 (list (string-append "-Dpicard.executable.dir="
12515 (assoc-ref %build-inputs "java-picard")
12516 "/share/java/"))
12517 #:modules ((ice-9 match)
12518 (srfi srfi-1)
12519 (guix build utils)
12520 (guix build java-utils)
12521 (guix build ant-build-system))
12522 #:phases
12523 (modify-phases %standard-phases
12524 ;; FIXME: fails with "java.io.FileNotFoundException:
12525 ;; /gnu/store/…-dropseq-tools-1.13/share/java/lib/biojava-alignment.jar"
12526 (delete 'generate-jar-indices)
12527 ;; All dependencies must be linked to "lib", because that's where
12528 ;; they will be searched for when the Class-Path property of the
12529 ;; manifest is computed.
12530 (add-after 'unpack 'record-references
12531 (lambda* (#:key inputs #:allow-other-keys)
12532 (mkdir-p "jar/lib")
12533 (let ((dirs (filter-map (match-lambda
12534 ((name . dir)
12535 (if (and (string-prefix? "java-" name)
12536 (not (string=? name "java-testng")))
12537 dir #f)))
12538 inputs)))
12539 (for-each (lambda (jar)
12540 (symlink jar (string-append "jar/lib/" (basename jar))))
12541 (append-map (lambda (dir) (find-files dir "\\.jar$"))
12542 dirs)))
12543 #t))
12544 ;; There is no installation target
12545 (replace 'install
12546 (lambda* (#:key inputs outputs #:allow-other-keys)
12547 (let* ((out (assoc-ref outputs "out"))
12548 (bin (string-append out "/bin"))
12549 (share (string-append out "/share/java/"))
12550 (lib (string-append share "/lib/"))
12551 (scripts (list "BAMTagHistogram"
12552 "BAMTagofTagCounts"
12553 "BaseDistributionAtReadPosition"
12554 "CollapseBarcodesInPlace"
12555 "CollapseTagWithContext"
12556 "ConvertToRefFlat"
12557 "CreateIntervalsFiles"
12558 "DetectBeadSynthesisErrors"
12559 "DigitalExpression"
12560 "Drop-seq_alignment.sh"
12561 "FilterBAM"
12562 "FilterBAMByTag"
12563 "GatherGeneGCLength"
12564 "GatherMolecularBarcodeDistributionByGene"
12565 "GatherReadQualityMetrics"
12566 "PolyATrimmer"
12567 "ReduceGTF"
12568 "SelectCellsByNumTranscripts"
12569 "SingleCellRnaSeqMetricsCollector"
12570 "TagBamWithReadSequenceExtended"
12571 "TagReadWithGeneExon"
12572 "TagReadWithInterval"
12573 "TrimStartingSequence"
12574 "ValidateReference")))
12575 (for-each mkdir-p (list bin share lib))
12576 (install-file "dist/dropseq.jar" share)
12577 (for-each (lambda (script)
12578 (chmod script #o555)
12579 (install-file script bin))
12580 scripts)
12581 (substitute* (map (lambda (script)
12582 (string-append bin "/" script))
12583 scripts)
12584 (("^java") (which "java"))
12585 (("jar_deploy_dir=.*")
12586 (string-append "jar_deploy_dir=" share "\n"))))
12587 #t))
12588 ;; FIXME: We do this after stripping jars because we don't want it to
12589 ;; copy all these jars and strip them. We only want to install
12590 ;; links. Arguably, this is a problem with the ant-build-system.
12591 (add-after 'strip-jar-timestamps 'install-links
12592 (lambda* (#:key outputs #:allow-other-keys)
12593 (let* ((out (assoc-ref outputs "out"))
12594 (share (string-append out "/share/java/"))
12595 (lib (string-append share "/lib/")))
12596 (for-each (lambda (jar)
12597 (symlink (readlink jar)
12598 (string-append lib (basename jar))))
12599 (find-files "jar/lib" "\\.jar$")))
12600 #t)))))
12601 (inputs
12602 `(("jdk" ,icedtea-8)
12603 ("java-picard" ,java-picard-2.10.3)
12604 ("java-log4j-1.2-api" ,java-log4j-1.2-api)
12605 ("java-commons-math3" ,java-commons-math3)
12606 ("java-commons-jexl2" ,java-commons-jexl-2)
12607 ("java-commons-collections4" ,java-commons-collections4)
12608 ("java-commons-lang2" ,java-commons-lang)
12609 ("java-commons-io" ,java-commons-io)
12610 ("java-snappy-1.0.3-rc3" ,java-snappy-1)
12611 ("java-guava" ,java-guava)
12612 ("java-la4j" ,java-la4j)
12613 ("java-biojava-core" ,java-biojava-core-4.0)
12614 ("java-biojava-alignment" ,java-biojava-alignment-4.0)
12615 ("java-jdistlib" ,java-jdistlib)
12616 ("java-simple-xml" ,java-simple-xml)
12617 ("java-snakeyaml" ,java-snakeyaml)))
12618 (native-inputs
12619 `(("unzip" ,unzip)
12620 ("java-testng" ,java-testng)))
12621 (home-page "http://mccarrolllab.com/dropseq/")
12622 (synopsis "Tools for Drop-seq analyses")
12623 (description "Drop-seq is a technology to enable biologists to
12624 analyze RNA expression genome-wide in thousands of individual cells at
12625 once. This package provides tools to perform Drop-seq analyses.")
12626 (license license:expat)))
12627
12628 (define-public pigx-rnaseq
12629 (package
12630 (name "pigx-rnaseq")
12631 (version "0.0.10")
12632 (source (origin
12633 (method url-fetch)
12634 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_rnaseq/"
12635 "releases/download/v" version
12636 "/pigx_rnaseq-" version ".tar.gz"))
12637 (sha256
12638 (base32
12639 "0z3hr120wk2vrlmlpz1vp3n9wy3rq4y2mnzh2vf08qgqn2xfdwcw"))))
12640 (build-system gnu-build-system)
12641 (arguments
12642 `(#:parallel-tests? #f ; not supported
12643 #:phases
12644 (modify-phases %standard-phases
12645 ;; "test.sh" runs STAR, which requires excessive amounts of memory.
12646 (add-after 'unpack 'disable-resource-intensive-test
12647 (lambda _
12648 (substitute* "Makefile.in"
12649 (("(^ tests/test_trim_galore/test.sh).*" _ m) m)
12650 (("^ tests/test_multiqc/test.sh") "")
12651 (("^ test.sh") ""))
12652 #t)))))
12653 (inputs
12654 `(("coreutils" ,coreutils)
12655 ("sed" ,sed)
12656 ("gzip" ,gzip)
12657 ("snakemake" ,snakemake)
12658 ("fastqc" ,fastqc)
12659 ("multiqc" ,multiqc)
12660 ("star" ,star)
12661 ("trim-galore" ,trim-galore)
12662 ("htseq" ,htseq)
12663 ("samtools" ,samtools)
12664 ("r-minimal" ,r-minimal)
12665 ("r-rmarkdown" ,r-rmarkdown)
12666 ("r-ggplot2" ,r-ggplot2)
12667 ("r-ggrepel" ,r-ggrepel)
12668 ("r-gprofiler" ,r-gprofiler)
12669 ("r-deseq2" ,r-deseq2)
12670 ("r-dt" ,r-dt)
12671 ("r-knitr" ,r-knitr)
12672 ("r-pheatmap" ,r-pheatmap)
12673 ("r-corrplot" ,r-corrplot)
12674 ("r-reshape2" ,r-reshape2)
12675 ("r-plotly" ,r-plotly)
12676 ("r-scales" ,r-scales)
12677 ("r-summarizedexperiment" ,r-summarizedexperiment)
12678 ("r-crosstalk" ,r-crosstalk)
12679 ("r-tximport" ,r-tximport)
12680 ("r-rtracklayer" ,r-rtracklayer)
12681 ("r-rjson" ,r-rjson)
12682 ("salmon" ,salmon)
12683 ("pandoc" ,pandoc)
12684 ("pandoc-citeproc" ,pandoc-citeproc)
12685 ("python-wrapper" ,python-wrapper)
12686 ("python-pyyaml" ,python-pyyaml)))
12687 (home-page "https://bioinformatics.mdc-berlin.de/pigx/")
12688 (synopsis "Analysis pipeline for RNA sequencing experiments")
12689 (description "PiGX RNAseq is an analysis pipeline for preprocessing and
12690 reporting for RNA sequencing experiments. It is easy to use and produces high
12691 quality reports. The inputs are reads files from the sequencing experiment,
12692 and a configuration file which describes the experiment. In addition to
12693 quality control of the experiment, the pipeline produces a differential
12694 expression report comparing samples in an easily configurable manner.")
12695 (license license:gpl3+)))
12696
12697 (define-public pigx-chipseq
12698 (package
12699 (name "pigx-chipseq")
12700 (version "0.0.51")
12701 (source (origin
12702 (method url-fetch)
12703 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_chipseq/"
12704 "releases/download/v" version
12705 "/pigx_chipseq-" version ".tar.gz"))
12706 (sha256
12707 (base32
12708 "0bb6hzpl0qq0jd57pgd1m5ns547rfipr6071a4m12vxlm4nlpi5q"))))
12709 (build-system gnu-build-system)
12710 ;; parts of the tests rely on access to the network
12711 (arguments '(#:tests? #f))
12712 (inputs
12713 `(("grep" ,grep)
12714 ("coreutils" ,coreutils)
12715 ("r-minimal" ,r-minimal)
12716 ("r-argparser" ,r-argparser)
12717 ("r-biocparallel" ,r-biocparallel)
12718 ("r-biostrings" ,r-biostrings)
12719 ("r-chipseq" ,r-chipseq)
12720 ("r-corrplot" ,r-corrplot)
12721 ("r-data-table" ,r-data-table)
12722 ("r-deseq2" ,r-deseq2)
12723 ("r-dplyr" ,r-dplyr)
12724 ("r-dt" ,r-dt)
12725 ("r-genomation" ,r-genomation)
12726 ("r-genomicalignments" ,r-genomicalignments)
12727 ("r-genomicranges" ,r-genomicranges)
12728 ("r-ggplot2" ,r-ggplot2)
12729 ("r-ggrepel" ,r-ggrepel)
12730 ("r-gprofiler2" ,r-gprofiler2)
12731 ("r-heatmaply" ,r-heatmaply)
12732 ("r-htmlwidgets" ,r-htmlwidgets)
12733 ("r-jsonlite" ,r-jsonlite)
12734 ("r-pheatmap" ,r-pheatmap)
12735 ("r-plotly" ,r-plotly)
12736 ("r-rmarkdown" ,r-rmarkdown)
12737 ("r-rsamtools" ,r-rsamtools)
12738 ("r-rsubread" ,r-rsubread)
12739 ("r-rtracklayer" ,r-rtracklayer)
12740 ("r-s4vectors" ,r-s4vectors)
12741 ("r-stringr" ,r-stringr)
12742 ("r-tibble" ,r-tibble)
12743 ("r-tidyr" ,r-tidyr)
12744 ("python-wrapper" ,python-wrapper)
12745 ("python-pyyaml" ,python-pyyaml)
12746 ("python-magic" ,python-magic)
12747 ("python-xlrd" ,python-xlrd)
12748 ("trim-galore" ,trim-galore)
12749 ("macs" ,macs)
12750 ("multiqc" ,multiqc)
12751 ("perl" ,perl)
12752 ("pandoc" ,pandoc)
12753 ("pandoc-citeproc" ,pandoc-citeproc)
12754 ("fastqc" ,fastqc)
12755 ("bowtie" ,bowtie)
12756 ("idr" ,idr)
12757 ("snakemake" ,snakemake)
12758 ("samtools" ,samtools)
12759 ("bedtools" ,bedtools)
12760 ("kentutils" ,kentutils)))
12761 (native-inputs
12762 `(("python-pytest" ,python-pytest)))
12763 (home-page "https://bioinformatics.mdc-berlin.de/pigx/")
12764 (synopsis "Analysis pipeline for ChIP sequencing experiments")
12765 (description "PiGX ChIPseq is an analysis pipeline for preprocessing, peak
12766 calling and reporting for ChIP sequencing experiments. It is easy to use and
12767 produces high quality reports. The inputs are reads files from the sequencing
12768 experiment, and a configuration file which describes the experiment. In
12769 addition to quality control of the experiment, the pipeline enables to set up
12770 multiple peak calling analysis and allows the generation of a UCSC track hub
12771 in an easily configurable manner.")
12772 (license license:gpl3+)))
12773
12774 (define-public pigx-bsseq
12775 (package
12776 (name "pigx-bsseq")
12777 (version "0.1.2")
12778 (source (origin
12779 (method url-fetch)
12780 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_bsseq/"
12781 "releases/download/v" version
12782 "/pigx_bsseq-" version ".tar.gz"))
12783 (sha256
12784 (base32
12785 "0mpzlay2d5cjpmrcp7knff6rg1c2mqszd638n7lw0mc0cycbp9f8"))))
12786 (build-system gnu-build-system)
12787 (arguments
12788 `(;; TODO: tests currently require 12+GB of RAM. See
12789 ;; https://github.com/BIMSBbioinfo/pigx_bsseq/issues/164
12790 #:tests? #f
12791 #:phases
12792 (modify-phases %standard-phases
12793 (add-before 'check 'set-timezone
12794 ;; The readr package is picky about timezones.
12795 (lambda* (#:key inputs #:allow-other-keys)
12796 (setenv "TZ" "UTC+1")
12797 (setenv "TZDIR"
12798 (string-append (assoc-ref inputs "tzdata")
12799 "/share/zoneinfo"))
12800 #t)))))
12801 (native-inputs
12802 `(("tzdata" ,tzdata)))
12803 (inputs
12804 `(("coreutils" ,coreutils)
12805 ("sed" ,sed)
12806 ("grep" ,grep)
12807 ("r-minimal" ,r-minimal)
12808 ("r-annotationhub" ,r-annotationhub)
12809 ("r-dt" ,r-dt)
12810 ("r-genomation" ,r-genomation)
12811 ("r-ggrepel" ,r-ggrepel)
12812 ("r-methylkit" ,r-methylkit)
12813 ("r-rtracklayer" ,r-rtracklayer)
12814 ("r-rmarkdown" ,r-rmarkdown)
12815 ("r-bookdown" ,r-bookdown)
12816 ("r-ggplot2" ,r-ggplot2)
12817 ("r-ggbio" ,r-ggbio)
12818 ("pandoc" ,pandoc)
12819 ("pandoc-citeproc" ,pandoc-citeproc)
12820 ("python-wrapper" ,python-wrapper)
12821 ("python-pyyaml" ,python-pyyaml)
12822 ("snakemake" ,snakemake)
12823 ("bismark" ,bismark)
12824 ("bowtie" ,bowtie)
12825 ("bwa-meth" ,bwa-meth)
12826 ("fastqc" ,fastqc)
12827 ("methyldackel" ,methyldackel)
12828 ("multiqc" ,multiqc)
12829 ("trim-galore" ,trim-galore)
12830 ("cutadapt" ,cutadapt)
12831 ("samblaster" ,samblaster)
12832 ("samtools" ,samtools)))
12833 (home-page "https://bioinformatics.mdc-berlin.de/pigx/")
12834 (synopsis "Bisulfite sequencing pipeline from fastq to methylation reports")
12835 (description "PiGx BSseq is a data processing pipeline for raw fastq read
12836 data of bisulfite experiments; it produces reports on aggregate methylation
12837 and coverage and can be used to produce information on differential
12838 methylation and segmentation.")
12839 (license license:gpl3+)))
12840
12841 (define-public pigx-scrnaseq
12842 (package
12843 (name "pigx-scrnaseq")
12844 (version "1.1.7")
12845 (source (origin
12846 (method url-fetch)
12847 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_scrnaseq/"
12848 "releases/download/v" version
12849 "/pigx_scrnaseq-" version ".tar.gz"))
12850 (sha256
12851 (base32
12852 "1h5mcxzwj3cidlkvy9ly5wmi48vwfsjf8dxjfirknqxr9a92hwlx"))))
12853 (build-system gnu-build-system)
12854 (inputs
12855 `(("coreutils" ,coreutils)
12856 ("perl" ,perl)
12857 ("fastqc" ,fastqc)
12858 ("flexbar" ,flexbar)
12859 ("java" ,icedtea-8)
12860 ("jellyfish" ,jellyfish)
12861 ("python-wrapper" ,python-wrapper)
12862 ("python-pyyaml" ,python-pyyaml)
12863 ("python-pandas" ,python-pandas)
12864 ("python-magic" ,python-magic)
12865 ("python-numpy" ,python-numpy)
12866 ("python-loompy" ,python-loompy)
12867 ("pandoc" ,pandoc)
12868 ("pandoc-citeproc" ,pandoc-citeproc)
12869 ("samtools" ,samtools)
12870 ("snakemake" ,snakemake)
12871 ("star" ,star)
12872 ("r-minimal" ,r-minimal)
12873 ("r-argparser" ,r-argparser)
12874 ("r-cowplot" ,r-cowplot)
12875 ("r-data-table" ,r-data-table)
12876 ("r-delayedarray" ,r-delayedarray)
12877 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
12878 ("r-dplyr" ,r-dplyr)
12879 ("r-dropbead" ,r-dropbead)
12880 ("r-dt" ,r-dt)
12881 ("r-genomicalignments" ,r-genomicalignments)
12882 ("r-genomicfiles" ,r-genomicfiles)
12883 ("r-genomicranges" ,r-genomicranges)
12884 ("r-ggplot2" ,r-ggplot2)
12885 ("r-hdf5array" ,r-hdf5array)
12886 ("r-pheatmap" ,r-pheatmap)
12887 ("r-rmarkdown" ,r-rmarkdown)
12888 ("r-rsamtools" ,r-rsamtools)
12889 ("r-rtracklayer" ,r-rtracklayer)
12890 ("r-rtsne" ,r-rtsne)
12891 ("r-scater" ,r-scater)
12892 ("r-scran" ,r-scran)
12893 ("r-seurat" ,r-seurat)
12894 ("r-singlecellexperiment" ,r-singlecellexperiment)
12895 ("r-stringr" ,r-stringr)
12896 ("r-yaml" ,r-yaml)))
12897 (home-page "https://bioinformatics.mdc-berlin.de/pigx/")
12898 (synopsis "Analysis pipeline for single-cell RNA sequencing experiments")
12899 (description "PiGX scRNAseq is an analysis pipeline for preprocessing and
12900 quality control for single cell RNA sequencing experiments. The inputs are
12901 read files from the sequencing experiment, and a configuration file which
12902 describes the experiment. It produces processed files for downstream analysis
12903 and interactive quality reports. The pipeline is designed to work with UMI
12904 based methods.")
12905 (license license:gpl3+)))
12906
12907 (define-public pigx
12908 (package
12909 (name "pigx")
12910 (version "0.0.3")
12911 (source (origin
12912 (method url-fetch)
12913 (uri (string-append "https://github.com/BIMSBbioinfo/pigx/"
12914 "releases/download/v" version
12915 "/pigx-" version ".tar.gz"))
12916 (sha256
12917 (base32
12918 "1i5njdy1clj5ncw45d16p7mwmqvb1ilikl9n797pxklc3f4s7mq7"))))
12919 (build-system gnu-build-system)
12920 (inputs
12921 `(("python" ,python)
12922 ("pigx-bsseq" ,pigx-bsseq)
12923 ("pigx-chipseq" ,pigx-chipseq)
12924 ("pigx-rnaseq" ,pigx-rnaseq)
12925 ("pigx-scrnaseq" ,pigx-scrnaseq)))
12926 (home-page "https://bioinformatics.mdc-berlin.de/pigx/")
12927 (synopsis "Analysis pipelines for genomics")
12928 (description "PiGx is a collection of genomics pipelines. It includes the
12929 following pipelines:
12930
12931 @itemize
12932 @item PiGx BSseq for raw fastq read data of bisulfite experiments
12933 @item PiGx RNAseq for RNAseq samples
12934 @item PiGx scRNAseq for single cell dropseq analysis
12935 @item PiGx ChIPseq for reads from ChIPseq experiments
12936 @end itemize
12937
12938 All pipelines are easily configured with a simple sample sheet and a
12939 descriptive settings file. The result is a set of comprehensive, interactive
12940 HTML reports with interesting findings about your samples.")
12941 (license license:gpl3+)))
12942
12943 (define-public genrich
12944 (package
12945 (name "genrich")
12946 (version "0.5")
12947 (source (origin
12948 (method git-fetch)
12949 (uri (git-reference
12950 (url "https://github.com/jsh58/Genrich")
12951 (commit (string-append "v" version))))
12952 (file-name (git-file-name name version))
12953 (sha256
12954 (base32
12955 "0x0q6z0208n3cxzqjla4rgjqpyqgwpmz27852lcvzkzaigymq4zp"))))
12956 (build-system gnu-build-system)
12957 (arguments
12958 `(#:tests? #f ; there are none
12959 #:phases
12960 (modify-phases %standard-phases
12961 (delete 'configure)
12962 (replace 'install
12963 (lambda* (#:key outputs #:allow-other-keys)
12964 (install-file "Genrich" (string-append (assoc-ref outputs "out") "/bin"))
12965 #t)))))
12966 (inputs
12967 `(("zlib" ,zlib)))
12968 (home-page "https://github.com/jsh58/Genrich")
12969 (synopsis "Detecting sites of genomic enrichment")
12970 (description "Genrich is a peak-caller for genomic enrichment
12971 assays (e.g. ChIP-seq, ATAC-seq). It analyzes alignment files generated
12972 following the assay and produces a file detailing peaks of significant
12973 enrichment.")
12974 (license license:expat)))
12975
12976 (define-public mantis
12977 (let ((commit "4ffd171632c2cb0056a86d709dfd2bf21bc69b84")
12978 (revision "1"))
12979 (package
12980 (name "mantis")
12981 (version (git-version "0" revision commit))
12982 (source (origin
12983 (method git-fetch)
12984 (uri (git-reference
12985 (url "https://github.com/splatlab/mantis")
12986 (commit commit)))
12987 (file-name (git-file-name name version))
12988 (sha256
12989 (base32
12990 "0iqbr0dhmlc8mzpirmm2s4pkzkwdgrcx50yx6cv3wlr2qi064p55"))))
12991 (build-system cmake-build-system)
12992 (arguments '(#:tests? #f)) ; there are none
12993 (inputs
12994 `(("sdsl-lite" ,sdsl-lite)
12995 ("openssl" ,openssl)
12996 ("zlib" ,zlib)))
12997 (home-page "https://github.com/splatlab/mantis")
12998 (synopsis "Large-scale sequence-search index data structure")
12999 (description "Mantis is a space-efficient data structure that can be
13000 used to index thousands of raw-read genomics experiments and facilitate
13001 large-scale sequence searches on those experiments. Mantis uses counting
13002 quotient filters instead of Bloom filters, enabling rapid index builds and
13003 queries, small indexes, and exact results, i.e., no false positives or
13004 negatives. Furthermore, Mantis is also a colored de Bruijn graph
13005 representation, so it supports fast graph traversal and other topological
13006 analyses in addition to large-scale sequence-level searches.")
13007 ;; uses __uint128_t and inline assembly
13008 (supported-systems '("x86_64-linux"))
13009 (license license:bsd-3))))
13010
13011 (define-public sjcount
13012 ;; There is no tag for version 3.2, nor is there a release archive.
13013 (let ((commit "292d3917cadb3f6834c81e509c30e61cd7ead6e5")
13014 (revision "1"))
13015 (package
13016 (name "sjcount")
13017 (version (git-version "3.2" revision commit))
13018 (source (origin
13019 (method git-fetch)
13020 (uri (git-reference
13021 (url "https://github.com/pervouchine/sjcount-full")
13022 (commit commit)))
13023 (file-name (string-append name "-" version "-checkout"))
13024 (sha256
13025 (base32
13026 "0gdgj35j249f04rqgq8ymcc1xg1vi9kzbajnjqpaq2wpbh8bl234"))))
13027 (build-system gnu-build-system)
13028 (arguments
13029 `(#:tests? #f ; requires a 1.4G test file
13030 #:make-flags
13031 (list (string-append "SAMTOOLS_DIR="
13032 (assoc-ref %build-inputs "samtools")
13033 "/lib/"))
13034 #:phases
13035 (modify-phases %standard-phases
13036 (replace 'configure
13037 (lambda* (#:key inputs #:allow-other-keys)
13038 (substitute* "makefile"
13039 (("-I \\$\\{SAMTOOLS_DIR\\}")
13040 (string-append "-I" (assoc-ref inputs "samtools")
13041 "/include/samtools"))
13042 (("-lz ") "-lz -lpthread "))
13043 #t))
13044 (replace 'install
13045 (lambda* (#:key outputs #:allow-other-keys)
13046 (for-each (lambda (tool)
13047 (install-file tool
13048 (string-append (assoc-ref outputs "out")
13049 "/bin")))
13050 '("j_count" "b_count" "sjcount"))
13051 #t)))))
13052 (inputs
13053 `(("samtools" ,samtools-0.1)
13054 ("zlib" ,zlib)))
13055 (home-page "https://github.com/pervouchine/sjcount-full/")
13056 (synopsis "Annotation-agnostic splice junction counting pipeline")
13057 (description "Sjcount is a utility for fast quantification of splice
13058 junctions in RNA-seq data. It is annotation-agnostic and offset-aware. This
13059 version does count multisplits.")
13060 (license license:gpl3+))))
13061
13062 (define-public minimap2
13063 (package
13064 (name "minimap2")
13065 (version "2.17")
13066 (source
13067 (origin
13068 (method url-fetch)
13069 (uri (string-append "https://github.com/lh3/minimap2/"
13070 "releases/download/v" version "/"
13071 "minimap2-" version ".tar.bz2"))
13072 (sha256
13073 (base32
13074 "0hi7i9pzxhvjj44khzzzj1lrn5gb5837arr4wgln7k1k5n4ci2mn"))
13075 (patches (search-patches "minimap2-aarch64-support.patch"))))
13076 (build-system gnu-build-system)
13077 (arguments
13078 `(#:tests? #f ; there are none
13079 #:make-flags
13080 (list (string-append "CC=" ,(cc-for-target))
13081 (let ((system ,(or (%current-target-system)
13082 (%current-system))))
13083 (cond
13084 ((string-prefix? "x86_64" system)
13085 "all")
13086 ((or (string-prefix? "i586" system)
13087 (string-prefix? "i686" system))
13088 "sse2only=1")
13089 ((string-prefix? "armhf" system)
13090 "arm_neon=1")
13091 ((string-prefix? "aarch64" system)
13092 "aarch64=1")
13093 (else ""))))
13094 #:phases
13095 (modify-phases %standard-phases
13096 (delete 'configure)
13097 (replace 'install
13098 (lambda* (#:key outputs #:allow-other-keys)
13099 (let* ((out (assoc-ref outputs "out"))
13100 (bin (string-append out "/bin"))
13101 (man (string-append out "/share/man/man1")))
13102 (install-file "minimap2" bin)
13103 (mkdir-p man)
13104 (install-file "minimap2.1" man))
13105 #t)))))
13106 (inputs
13107 `(("zlib" ,zlib)))
13108 (home-page "https://lh3.github.io/minimap2/")
13109 (synopsis "Pairwise aligner for genomic and spliced nucleotide sequences")
13110 (description "Minimap2 is a versatile sequence alignment program that
13111 aligns DNA or mRNA sequences against a large reference database. Typical use
13112 cases include:
13113
13114 @enumerate
13115 @item mapping PacBio or Oxford Nanopore genomic reads to the human genome;
13116 @item finding overlaps between long reads with error rate up to ~15%;
13117 @item splice-aware alignment of PacBio Iso-Seq or Nanopore cDNA or Direct RNA
13118 reads against a reference genome;
13119 @item aligning Illumina single- or paired-end reads;
13120 @item assembly-to-assembly alignment;
13121 @item full-genome alignment between two closely related species with
13122 divergence below ~15%.
13123 @end enumerate\n")
13124 (license license:expat)))
13125
13126 (define-public miniasm
13127 (package
13128 (name "miniasm")
13129 (version "0.3")
13130 (source (origin
13131 (method git-fetch)
13132 (uri (git-reference
13133 (url "https://github.com/lh3/miniasm")
13134 (commit (string-append "v" version))))
13135 (file-name (git-file-name name version))
13136 (sha256
13137 (base32
13138 "04dv5wv8bhsw1imxwyd438bnn9kby7svp44nbcz8lsadzjjci5gs"))))
13139 (build-system gnu-build-system)
13140 (inputs
13141 `(("zlib" ,zlib)))
13142 (arguments
13143 `(#:tests? #f ; There are no tests.
13144 #:phases
13145 (modify-phases %standard-phases
13146 (delete 'configure)
13147 (replace 'install
13148 (lambda* (#:key inputs outputs #:allow-other-keys)
13149 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
13150 (install-file "miniasm" bin)
13151 (install-file "minidot" bin)
13152 #t))))))
13153 (home-page "https://github.com/lh3/miniasm")
13154 (synopsis "Ultrafast de novo assembly for long noisy reads")
13155 (description "Miniasm is a very fast OLC-based de novo assembler for noisy
13156 long reads. It takes all-vs-all read self-mappings (typically by minimap) as
13157 input and outputs an assembly graph in the GFA format. Different from
13158 mainstream assemblers, miniasm does not have a consensus step. It simply
13159 concatenates pieces of read sequences to generate the final unitig sequences.
13160 Thus the per-base error rate is similar to the raw input reads.")
13161 (license license:expat)))
13162
13163 (define-public r-circus
13164 (package
13165 (name "r-circus")
13166 (version "0.1.5")
13167 (source
13168 (origin
13169 (method git-fetch)
13170 (uri (git-reference
13171 (url "https://github.com/BIMSBbioinfo/ciRcus")
13172 (commit (string-append "v" version))))
13173 (file-name (git-file-name name version))
13174 (sha256
13175 (base32
13176 "0jhjn3ilb057hbf6yzrihj13ifxxs32y7nkby8l3lkm28dg4p97h"))))
13177 (build-system r-build-system)
13178 (propagated-inputs
13179 `(("r-annotationdbi" ,r-annotationdbi)
13180 ("r-annotationhub" ,r-annotationhub)
13181 ("r-biomart" ,r-biomart)
13182 ("r-data-table" ,r-data-table)
13183 ("r-dbi" ,r-dbi)
13184 ("r-genomicfeatures" ,r-genomicfeatures)
13185 ("r-genomicranges" ,r-genomicranges)
13186 ("r-ggplot2" ,r-ggplot2)
13187 ("r-hash" ,r-hash)
13188 ("r-iranges" ,r-iranges)
13189 ("r-rcolorbrewer" ,r-rcolorbrewer)
13190 ("r-rmysql" ,r-rmysql)
13191 ("r-s4vectors" ,r-s4vectors)
13192 ("r-stringr" ,r-stringr)
13193 ("r-summarizedexperiment" ,r-summarizedexperiment)))
13194 (native-inputs
13195 `(("r-knitr" ,r-knitr)))
13196 (home-page "https://github.com/BIMSBbioinfo/ciRcus")
13197 (synopsis "Annotation, analysis and visualization of circRNA data")
13198 (description "Circus is an R package for annotation, analysis and
13199 visualization of circRNA data. Users can annotate their circRNA candidates
13200 with host genes, gene featrues they are spliced from, and discriminate between
13201 known and yet unknown splice junctions. Circular-to-linear ratios of circRNAs
13202 can be calculated, and a number of descriptive plots easily generated.")
13203 (license license:artistic2.0)))
13204
13205 (define-public gffread
13206 ;; We cannot use the tagged release because it is not in sync with gclib.
13207 ;; See https://github.com/gpertea/gffread/issues/26
13208 (let ((commit "ba7535fcb3cea55a6e5a491d916e93b454e87fd0")
13209 (revision "1"))
13210 (package
13211 (name "gffread")
13212 (version (git-version "0.9.12" revision commit))
13213 (source
13214 (origin
13215 (method git-fetch)
13216 (uri (git-reference
13217 (url "https://github.com/gpertea/gffread")
13218 (commit commit)))
13219 (file-name (git-file-name name version))
13220 (sha256
13221 (base32
13222 "1dl2nbcg96lxpd0drg48ssa8343nf7pw9s9mkrc4mjjmfwsin3ki"))))
13223 (build-system gnu-build-system)
13224 (arguments
13225 `(#:tests? #f ; no check target
13226 #:make-flags
13227 (list "GCLDIR=gclib")
13228 #:phases
13229 (modify-phases %standard-phases
13230 (delete 'configure)
13231 (add-after 'unpack 'copy-gclib-source
13232 (lambda* (#:key inputs #:allow-other-keys)
13233 (mkdir-p "gclib")
13234 (copy-recursively (assoc-ref inputs "gclib-source") "gclib")
13235 #t))
13236 ;; There is no install target
13237 (replace 'install
13238 (lambda* (#:key outputs #:allow-other-keys)
13239 (let* ((out (assoc-ref outputs "out"))
13240 (bin (string-append out "/bin")))
13241 (install-file "gffread" bin))
13242 #t)))))
13243 (native-inputs
13244 `(("gclib-source"
13245 ,(let ((version "0.10.3")
13246 (commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
13247 (revision "1"))
13248 (origin
13249 (method git-fetch)
13250 (uri (git-reference
13251 (url "https://github.com/gpertea/gclib")
13252 (commit commit)))
13253 (file-name (git-file-name "gclib" version))
13254 (sha256
13255 (base32
13256 "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
13257 (home-page "https://github.com/gpertea/gffread/")
13258 (synopsis "Parse and convert GFF/GTF files")
13259 (description
13260 "This package provides a GFF/GTF file parsing utility providing format
13261 conversions, region filtering, FASTA sequence extraction and more.")
13262 ;; gffread is under Expat, but gclib is under Artistic 2.0
13263 (license (list license:expat
13264 license:artistic2.0)))))
13265
13266 (define-public find-circ
13267 ;; The last release was in 2015. The license was clarified in 2017, so we
13268 ;; take the latest commit.
13269 (let ((commit "8655dca54970fcf7e92e22fbf57e1188724dda7d")
13270 (revision "1"))
13271 (package
13272 (name "find-circ")
13273 (version (git-version "1.2" revision commit))
13274 (source
13275 (origin
13276 (method git-fetch)
13277 (uri (git-reference
13278 (url "https://github.com/marvin-jens/find_circ")
13279 (commit commit)))
13280 (file-name (git-file-name name version))
13281 (sha256
13282 (base32
13283 "0p77pbqbclqr4srms34y1b9b4njybfpjiknc11ki84f3p8skb3cg"))))
13284 (build-system gnu-build-system)
13285 (arguments
13286 `(#:tests? #f ; there are none
13287 #:phases
13288 ;; There is no actual build system.
13289 (modify-phases %standard-phases
13290 (delete 'configure)
13291 (delete 'build)
13292 (replace 'install
13293 (lambda* (#:key outputs #:allow-other-keys)
13294 (let* ((out (assoc-ref outputs "out"))
13295 (bin (string-append out "/bin"))
13296 (path (getenv "PYTHONPATH")))
13297 (for-each (lambda (script)
13298 (install-file script bin)
13299 (wrap-program (string-append bin "/" script)
13300 `("PYTHONPATH" ":" prefix (,path))))
13301 '("cmp_bed.py"
13302 "find_circ.py"
13303 "maxlength.py"
13304 "merge_bed.py"
13305 "unmapped2anchors.py")))
13306 #t)))))
13307 (inputs
13308 `(("python2" ,python-2)
13309 ("python2-pysam" ,python2-pysam)
13310 ("python2-numpy" ,python2-numpy)))
13311 (home-page "https://github.com/marvin-jens/find_circ")
13312 (synopsis "circRNA detection from RNA-seq reads")
13313 (description "This package provides tools to detect head-to-tail
13314 spliced (back-spliced) sequencing reads, indicative of circular RNA (circRNA)
13315 in RNA-seq data.")
13316 (license license:gpl3))))
13317
13318 (define-public python-scanpy
13319 (package
13320 (name "python-scanpy")
13321 (version "1.4.6")
13322 (source
13323 (origin
13324 (method url-fetch)
13325 (uri (pypi-uri "scanpy" version))
13326 (sha256
13327 (base32
13328 "0s2b6cvaigx4wzw3850qb93sjwwxbzh22kpbp498zklc5rjpbz4l"))))
13329 (build-system python-build-system)
13330 (arguments
13331 `(#:phases
13332 (modify-phases %standard-phases
13333 (replace 'check
13334 (lambda* (#:key inputs #:allow-other-keys)
13335 ;; These tests require Internet access.
13336 (delete-file-recursively "scanpy/tests/notebooks")
13337 (delete-file "scanpy/tests/test_clustering.py")
13338 (delete-file "scanpy/tests/test_datasets.py")
13339
13340 ;; TODO: I can't get the plotting tests to work, even with Xvfb.
13341 (delete-file "scanpy/tests/test_plotting.py")
13342 (delete-file "scanpy/tests/test_preprocessing.py")
13343 (delete-file "scanpy/tests/test_read_10x.py")
13344
13345 (setenv "PYTHONPATH"
13346 (string-append (getcwd) ":"
13347 (getenv "PYTHONPATH")))
13348 (invoke "pytest")
13349 #t)))))
13350 (propagated-inputs
13351 `(("python-anndata" ,python-anndata)
13352 ("python-h5py" ,python-h5py)
13353 ("python-igraph" ,python-igraph)
13354 ("python-joblib" ,python-joblib)
13355 ("python-legacy-api-wrap" ,python-legacy-api-wrap)
13356 ("python-louvain" ,python-louvain)
13357 ("python-matplotlib" ,python-matplotlib)
13358 ("python-natsort" ,python-natsort)
13359 ("python-networkx" ,python-networkx)
13360 ("python-numba" ,python-numba)
13361 ("python-packaging" ,python-packaging)
13362 ("python-pandas" ,python-pandas)
13363 ("python-patsy" ,python-patsy)
13364 ("python-scikit-learn" ,python-scikit-learn)
13365 ("python-scipy" ,python-scipy)
13366 ("python-seaborn" ,python-seaborn)
13367 ("python-statsmodels" ,python-statsmodels)
13368 ("python-tables" ,python-tables)
13369 ("python-tqdm" ,python-tqdm)
13370 ("python-umap-learn" ,python-umap-learn)))
13371 (native-inputs
13372 `(("python-pytest" ,python-pytest)
13373 ("python-setuptools-scm" ,python-setuptools-scm)))
13374 (home-page "https://github.com/theislab/scanpy")
13375 (synopsis "Single-Cell Analysis in Python.")
13376 (description "Scanpy is a scalable toolkit for analyzing single-cell gene
13377 expression data. It includes preprocessing, visualization, clustering,
13378 pseudotime and trajectory inference and differential expression testing. The
13379 Python-based implementation efficiently deals with datasets of more than one
13380 million cells.")
13381 (license license:bsd-3)))
13382
13383 (define-public python-bbknn
13384 (package
13385 (name "python-bbknn")
13386 (version "1.3.6")
13387 (source
13388 (origin
13389 (method url-fetch)
13390 (uri (pypi-uri "bbknn" version))
13391 (sha256
13392 (base32
13393 "1jbsh01f57zj4bhvjr3jh4532zznqd6nccmgrl3qi9gnhkf7c4y0"))))
13394 (build-system python-build-system)
13395 (arguments
13396 `(#:tests? #f)) ; TODO: Enable after migration to scikit-learn.
13397 (propagated-inputs
13398 `(("python-annoy" ,python-annoy)
13399 ("python-cython" ,python-cython)
13400 ("python-numpy" ,python-numpy)
13401 ("python-scipy" ,python-scipy)
13402 ("python-umap-learn" ,python-umap-learn)))
13403 (home-page "https://github.com/Teichlab/bbknn")
13404 (synopsis "Batch balanced KNN")
13405 (description "BBKNN is a batch effect removal tool that can be directly
13406 used in the Scanpy workflow. It serves as an alternative to
13407 @code{scanpy.api.pp.neighbors()}, with both functions creating a neighbour
13408 graph for subsequent use in clustering, pseudotime and UMAP visualisation. If
13409 technical artifacts are present in the data, they will make it challenging to
13410 link corresponding cell types across different batches. BBKNN actively
13411 combats this effect by splitting your data into batches and finding a smaller
13412 number of neighbours for each cell within each of the groups. This helps
13413 create connections between analogous cells in different batches without
13414 altering the counts or PCA space.")
13415 (license license:expat)))
13416
13417 (define-public gffcompare
13418 (let ((commit "be56ef4349ea3966c12c6397f85e49e047361c41")
13419 (revision "1"))
13420 (package
13421 (name "gffcompare")
13422 (version (git-version "0.10.15" revision commit))
13423 (source
13424 (origin
13425 (method git-fetch)
13426 (uri (git-reference
13427 (url "https://github.com/gpertea/gffcompare/")
13428 (commit commit)))
13429 (file-name (git-file-name name version))
13430 (sha256
13431 (base32 "0cp5qpxdhw4mxpya5dld8wi3jk00zyklm6rcri426wydinrnfmkg"))))
13432 (build-system gnu-build-system)
13433 (arguments
13434 `(#:tests? #f ; no check target
13435 #:phases
13436 (modify-phases %standard-phases
13437 (delete 'configure)
13438 (add-before 'build 'copy-gclib-source
13439 (lambda* (#:key inputs #:allow-other-keys)
13440 (mkdir "../gclib")
13441 (copy-recursively
13442 (assoc-ref inputs "gclib-source") "../gclib")
13443 #t))
13444 (replace 'install
13445 (lambda* (#:key outputs #:allow-other-keys)
13446 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
13447 (install-file "gffcompare" bin)
13448 #t))))))
13449 (native-inputs
13450 `(("gclib-source" ; see 'README.md' of gffcompare
13451 ,(let ((commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
13452 (revision "1")
13453 (name "gclib")
13454 (version (git-version "0.10.3" revision commit)))
13455 (origin
13456 (method git-fetch)
13457 (uri (git-reference
13458 (url "https://github.com/gpertea/gclib/")
13459 (commit commit)))
13460 (file-name (git-file-name name version))
13461 (sha256
13462 (base32 "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
13463 (home-page "https://github.com/gpertea/gffcompare/")
13464 (synopsis "Tool for comparing or classifing transcripts of RNA-Seq")
13465 (description
13466 "@code{gffcompare} is a tool that can:
13467 @enumerate
13468 @item compare and evaluate the accuracy of RNA-Seq transcript assemblers
13469 (Cufflinks, Stringtie);
13470 @item collapse (merge) duplicate transcripts from multiple GTF/GFF3 files (e.g.
13471 resulted from assembly of different samples);
13472 @item classify transcripts from one or multiple GTF/GFF3 files as they relate to
13473 reference transcripts provided in a annotation file (also in GTF/GFF3 format).
13474 @end enumerate")
13475 (license
13476 (list
13477 license:expat ;license for gffcompare
13478 license:artistic2.0))))) ;license for gclib
13479
13480 (define-public intervaltree
13481 (let ((commit "b90527f9e6d51cd36ecbb50429e4524d3a418ea5"))
13482 (package
13483 (name "intervaltree")
13484 (version (git-version "0.0.0" "1" commit))
13485 (source
13486 (origin
13487 (method git-fetch)
13488 (uri (git-reference
13489 (url "https://github.com/ekg/intervaltree/")
13490 (commit commit)))
13491 (file-name (git-file-name name version))
13492 (sha256
13493 (base32 "0rgv6q5fl4x5d74n6p5wvdna6zmbdbqpb4jqqh6vq3670gn08xad"))))
13494 (build-system gnu-build-system)
13495 (arguments
13496 '(#:tests? #f ; No tests.
13497 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
13498 "DESTDIR=\"\"")
13499 #:phases
13500 (modify-phases %standard-phases
13501 (delete 'configure)))) ; There is no configure phase.
13502 (home-page "https://github.com/ekg/intervaltree")
13503 (synopsis "Minimal C++ interval tree implementation")
13504 (description "An interval tree can be used to efficiently find a set of
13505 numeric intervals overlapping or containing another interval. This library
13506 provides a basic implementation of an interval tree using C++ templates,
13507 allowing the insertion of arbitrary types into the tree.")
13508 (license license:expat))))
13509
13510 (define-public python-intervaltree
13511 (package
13512 (name "python-intervaltree")
13513 (version "3.0.2")
13514 (source
13515 (origin
13516 (method url-fetch)
13517 (uri (pypi-uri "intervaltree" version))
13518 (sha256
13519 (base32
13520 "0wz234g6irlm4hivs2qzmnywk0ss06ckagwh15nflkyb3p462kyb"))))
13521 (build-system python-build-system)
13522 (arguments
13523 `(#:phases
13524 (modify-phases %standard-phases
13525 ;; pytest seems to have a check to make sure the user is testing
13526 ;; their checked-out code and not an installed, potentially
13527 ;; out-of-date copy. This is harmless here, since we just installed
13528 ;; the package, so we disable the check to avoid skipping tests
13529 ;; entirely.
13530 (add-before 'check 'import-mismatch-error-workaround
13531 (lambda _
13532 (setenv "PY_IGNORE_IMPORTMISMATCH" "1")
13533 #t)))))
13534 (propagated-inputs
13535 `(("python-sortedcontainers" ,python-sortedcontainers)))
13536 (native-inputs
13537 `(("python-pytest" ,python-pytest)))
13538 (home-page "https://github.com/chaimleib/intervaltree")
13539 (synopsis "Editable interval tree data structure")
13540 (description
13541 "This package provides a mutable, self-balancing interval tree
13542 implementation for Python. Queries may be by point, by range overlap, or by
13543 range envelopment. This library was designed to allow tagging text and time
13544 intervals, where the intervals include the lower bound but not the upper
13545 bound.")
13546 (license license:asl2.0)))
13547
13548 (define-public python-pypairix
13549 (package
13550 (name "python-pypairix")
13551 (version "0.3.7")
13552 ;; The tarball on pypi does not include the makefile to build the
13553 ;; programs.
13554 (source
13555 (origin
13556 (method git-fetch)
13557 (uri (git-reference
13558 (url "https://github.com/4dn-dcic/pairix")
13559 (commit version)))
13560 (file-name (git-file-name name version))
13561 (sha256
13562 (base32
13563 "1snr3lrmsld8sy77ng6ba6wcmd33xjccf1l2f3m6pi29xis9nd6p"))))
13564 (build-system python-build-system)
13565 (arguments
13566 `(#:phases
13567 (modify-phases %standard-phases
13568 (add-before 'build 'build-programs
13569 (lambda _ (invoke "make")))
13570 (add-after 'install 'install-programs
13571 (lambda* (#:key outputs #:allow-other-keys)
13572 (copy-recursively "bin" (string-append
13573 (assoc-ref outputs "out")
13574 "/bin"))
13575 #t)))))
13576 (inputs
13577 `(("zlib" ,zlib)))
13578 (home-page "https://github.com/4dn-dcic/pairix")
13579 (synopsis "Support for querying pairix-indexed bgzipped text files")
13580 (description
13581 "Pypairix is a Python module for fast querying on a pairix-indexed
13582 bgzipped text file that contains a pair of genomic coordinates per line.")
13583 (license license:expat)))
13584
13585 (define-public python-pyfaidx
13586 (package
13587 (name "python-pyfaidx")
13588 (version "0.5.8")
13589 (source
13590 (origin
13591 (method url-fetch)
13592 (uri (pypi-uri "pyfaidx" version))
13593 (sha256
13594 (base32
13595 "038xi3a6zvrxbyyfpp64ka8pcjgsdq4fgw9cl5lpxbvmm1bzzw2q"))))
13596 (build-system python-build-system)
13597 (propagated-inputs
13598 `(("python-six" ,python-six)))
13599 (home-page "http://mattshirley.com")
13600 (synopsis "Random access to fasta subsequences")
13601 (description
13602 "This package provides procedures for efficient pythonic random access to
13603 fasta subsequences.")
13604 (license license:bsd-3)))
13605
13606 (define-public python2-pyfaidx
13607 (package-with-python2 python-pyfaidx))
13608
13609 (define-public python-cooler
13610 (package
13611 (name "python-cooler")
13612 (version "0.8.7")
13613 (source
13614 (origin
13615 (method url-fetch)
13616 (uri (pypi-uri "cooler" version))
13617 (sha256
13618 (base32
13619 "01g6gqix9ba27sappz6nfyiwabzrlf8i5fn8kwcz8ra356cq9crp"))))
13620 (build-system python-build-system)
13621 (propagated-inputs
13622 `(("python-asciitree" ,python-asciitree)
13623 ("python-biopython" ,python-biopython)
13624 ("python-click" ,python-click)
13625 ("python-cytoolz" ,python-cytoolz)
13626 ("python-dask" ,python-dask)
13627 ("python-h5py" ,python-h5py)
13628 ("python-multiprocess" ,python-multiprocess)
13629 ("python-numpy" ,python-numpy)
13630 ("python-pandas" ,python-pandas)
13631 ("python-pyfaidx" ,python-pyfaidx)
13632 ("python-pypairix" ,python-pypairix)
13633 ("python-pysam" ,python-pysam)
13634 ("python-pyyaml" ,python-pyyaml)
13635 ("python-scipy" ,python-scipy)
13636 ("python-simplejson" ,python-simplejson)))
13637 (native-inputs
13638 `(("python-mock" ,python-mock)
13639 ("python-pytest" ,python-pytest)))
13640 (home-page "https://github.com/mirnylab/cooler")
13641 (synopsis "Sparse binary format for genomic interaction matrices")
13642 (description
13643 "Cooler is a support library for a sparse, compressed, binary persistent
13644 storage format, called @code{cool}, used to store genomic interaction data,
13645 such as Hi-C contact matrices.")
13646 (license license:bsd-3)))
13647
13648 (define-public python-hicmatrix
13649 (package
13650 (name "python-hicmatrix")
13651 (version "12")
13652 (source
13653 (origin
13654 ;; Version 12 is not available on pypi.
13655 (method git-fetch)
13656 (uri (git-reference
13657 (url "https://github.com/deeptools/HiCMatrix")
13658 (commit version)))
13659 (file-name (git-file-name name version))
13660 (sha256
13661 (base32
13662 "1xhdyx16f3brgxgxybixdi64ki8nbbkq5vk4h9ahi11pzpjfn1pj"))))
13663 (build-system python-build-system)
13664 (arguments
13665 `(#:phases
13666 (modify-phases %standard-phases
13667 (add-after 'unpack 'relax-requirements
13668 (lambda _
13669 (substitute* '("requirements.txt"
13670 "setup.py")
13671 (("cooler *=+ *0.8.5")
13672 "cooler==0.8.*"))
13673 #t)))))
13674 (propagated-inputs
13675 `(("python-cooler" ,python-cooler)
13676 ("python-intervaltree" ,python-intervaltree)
13677 ("python-numpy" ,python-numpy)
13678 ("python-pandas" ,python-pandas)
13679 ("python-scipy" ,python-scipy)
13680 ("python-tables" ,python-tables)))
13681 (home-page "https://github.com/deeptools/HiCMatrix/")
13682 (synopsis "HiCMatrix class for HiCExplorer and pyGenomeTracks")
13683 (description
13684 "This helper package implements the @code{HiCMatrix} class for
13685 the HiCExplorer and pyGenomeTracks packages.")
13686 (license license:gpl3+)))
13687
13688 (define-public python-hicexplorer
13689 (package
13690 (name "python-hicexplorer")
13691 (version "2.1.4")
13692 (source
13693 (origin
13694 ;; The latest version is not available on Pypi.
13695 (method git-fetch)
13696 (uri (git-reference
13697 (url "https://github.com/deeptools/HiCExplorer")
13698 (commit version)))
13699 (file-name (git-file-name name version))
13700 (sha256
13701 (base32
13702 "0q5gpbzmrkvygqgw524q36b4nrivcmyi5v194vsx0qw7b3gcmq08"))))
13703 (build-system python-build-system)
13704 (arguments
13705 `(#:phases
13706 (modify-phases %standard-phases
13707 (add-after 'unpack 'loosen-up-requirements
13708 (lambda _
13709 (substitute* "setup.py"
13710 (("==") ">="))
13711 #t)))))
13712 (propagated-inputs
13713 `(("python-biopython" ,python-biopython)
13714 ("python-configparser" ,python-configparser)
13715 ("python-cooler" ,python-cooler)
13716 ("python-future" ,python-future)
13717 ("python-intervaltree" ,python-intervaltree)
13718 ("python-jinja2" ,python-jinja2)
13719 ("python-matplotlib" ,python-matplotlib)
13720 ("python-numpy" ,python-numpy)
13721 ("python-pandas" ,python-pandas)
13722 ("python-pybigwig" ,python-pybigwig)
13723 ("python-pysam" ,python-pysam)
13724 ("python-scipy" ,python-scipy)
13725 ("python-six" ,python-six)
13726 ("python-tables" ,python-tables)
13727 ("python-unidecode" ,python-unidecode)))
13728 (home-page "https://hicexplorer.readthedocs.io")
13729 (synopsis "Process, analyze and visualize Hi-C data")
13730 (description
13731 "HiCExplorer is a powerful and easy to use set of tools to process,
13732 normalize and visualize Hi-C data. HiCExplorer facilitates the creation of
13733 contact matrices, correction of contacts, TAD detection, A/B compartments,
13734 merging, reordering or chromosomes, conversion from different formats
13735 including cooler and detection of long-range contacts. Moreover, it allows
13736 the visualization of multiple contact matrices along with other types of data
13737 like genes, compartments, ChIP-seq coverage tracks (and in general any type of
13738 genomic scores), long range contacts and the visualization of viewpoints.")
13739 (license license:gpl3)))
13740
13741 (define-public python-pygenometracks
13742 (package
13743 (name "python-pygenometracks")
13744 (version "3.3")
13745 (source
13746 (origin
13747 (method url-fetch)
13748 (uri (pypi-uri "pyGenomeTracks" version))
13749 (sha256
13750 (base32
13751 "16laa0wnf4qn9fb9ych4w1vqhqwjss70v0y0f6wp4gwqfrlgac0f"))))
13752 (build-system python-build-system)
13753 (arguments
13754 `(#:tests? #f ; there are none
13755 #:phases
13756 (modify-phases %standard-phases
13757 (add-after 'unpack 'relax-requirements
13758 (lambda _
13759 (substitute* "setup.py"
13760 (("matplotlib ==3.1.1")
13761 "matplotlib >=3.1.1"))
13762 #t)))))
13763 (propagated-inputs
13764 `(("python-future" ,python-future)
13765 ("python-gffutils" ,python-gffutils)
13766 ("python-hicmatrix" ,python-hicmatrix)
13767 ("python-intervaltree" ,python-intervaltree)
13768 ("python-matplotlib" ,python-matplotlib)
13769 ("python-numpy" ,python-numpy)
13770 ("python-pybigwig" ,python-pybigwig)
13771 ("python-pysam" ,python-pysam)
13772 ("python-tqdm" ,python-tqdm)))
13773 (native-inputs
13774 `(("python-pytest" ,python-pytest)))
13775 (home-page "https://pygenometracks.readthedocs.io")
13776 (synopsis "Program and library to plot beautiful genome browser tracks")
13777 (description
13778 "This package aims to produce high-quality genome browser tracks that
13779 are highly customizable. Currently, it is possible to plot: bigwig, bed (many
13780 options), bedgraph, links (represented as arcs), and Hi-C matrices.
13781 pyGenomeTracks can make plots with or without Hi-C data.")
13782 (license license:gpl3+)))
13783
13784 (define-public python-hic2cool
13785 (package
13786 (name "python-hic2cool")
13787 (version "0.4.2")
13788 (source
13789 (origin
13790 (method url-fetch)
13791 (uri (pypi-uri "hic2cool" version))
13792 (sha256
13793 (base32
13794 "0xy6mhfns2lzib1kcr6419jjp6pmh0qx8z8na55lmiwn0ds8q9cl"))))
13795 (build-system python-build-system)
13796 (arguments '(#:tests? #f)) ; no tests included
13797 (propagated-inputs
13798 `(("python-cooler" ,python-cooler)))
13799 (home-page "https://github.com/4dn-dcic/hic2cool")
13800 (synopsis "Converter for .hic and .cool files")
13801 (description
13802 "This package provides a converter between @code{.hic} files (from
13803 juicer) and single-resolution or multi-resolution @code{.cool} files (for
13804 cooler). Both @code{hic} and @code{cool} files describe Hi-C contact
13805 matrices.")
13806 (license license:expat)))
13807
13808 (define-public r-pore
13809 (package
13810 (name "r-pore")
13811 (version "0.24")
13812 (source
13813 (origin
13814 (method url-fetch)
13815 (uri
13816 (string-append "mirror://sourceforge/rpore/" version
13817 "/poRe_" version ".tar.gz"))
13818 (sha256
13819 (base32 "0pih9nljbv8g4x8rkk29i7aqq681b782r5s5ynp4nw9yzqnmmksv"))))
13820 (properties `((upstream-name . "poRe")))
13821 (build-system r-build-system)
13822 (propagated-inputs
13823 `(("r-bit64" ,r-bit64)
13824 ("r-data-table" ,r-data-table)
13825 ("r-rhdf5" ,r-rhdf5)
13826 ("r-shiny" ,r-shiny)
13827 ("r-svdialogs" ,r-svdialogs)))
13828 (home-page "https://sourceforge.net/projects/rpore/")
13829 (synopsis "Visualize Nanopore sequencing data")
13830 (description
13831 "This package provides graphical user interfaces to organize and visualize Nanopore
13832 sequencing data.")
13833 ;; This is free software but the license variant is unclear:
13834 ;; <https://github.com/mw55309/poRe_docs/issues/10>.
13835 (license license:bsd-3)))
13836
13837 (define-public r-xbioc
13838 (let ((revision "1")
13839 (commit "6ff0670a37ab3036aaf1d94aa4b208310946b0b5"))
13840 (package
13841 (name "r-xbioc")
13842 (version (git-version "0.1.16" revision commit))
13843 (source (origin
13844 (method git-fetch)
13845 (uri (git-reference
13846 (url "https://github.com/renozao/xbioc")
13847 (commit commit)))
13848 (file-name (git-file-name name version))
13849 (sha256
13850 (base32
13851 "0w8bsq5myiwkfhh83nm6is5ichiyvwa1axx2szvxnzq39x6knf66"))))
13852 (build-system r-build-system)
13853 (propagated-inputs
13854 `(("r-annotationdbi" ,r-annotationdbi)
13855 ("r-assertthat" ,r-assertthat)
13856 ("r-biobase" ,r-biobase)
13857 ("r-biocmanager" ,r-biocmanager)
13858 ("r-digest" ,r-digest)
13859 ("r-pkgmaker" ,r-pkgmaker)
13860 ("r-plyr" ,r-plyr)
13861 ("r-reshape2" ,r-reshape2)
13862 ("r-stringr" ,r-stringr)))
13863 (home-page "https://github.com/renozao/xbioc/")
13864 (synopsis "Extra base functions for Bioconductor")
13865 (description "This package provides extra utility functions to perform
13866 common tasks in the analysis of omics data, leveraging and enhancing features
13867 provided by Bioconductor packages.")
13868 (license license:gpl3+))))
13869
13870 (define-public r-cssam
13871 (let ((revision "1")
13872 (commit "9ec58c982fa551af0d80b1a266890d92954833f2"))
13873 (package
13874 (name "r-cssam")
13875 (version (git-version "1.4" revision commit))
13876 (source (origin
13877 (method git-fetch)
13878 (uri (git-reference
13879 (url "https://github.com/shenorrLab/csSAM")
13880 (commit commit)))
13881 (file-name (git-file-name name version))
13882 (sha256
13883 (base32
13884 "128syf9v39gk0z3ip000qpsjbg6l1siyq6c8b0hz41dzg5achyb3"))))
13885 (build-system r-build-system)
13886 (propagated-inputs
13887 `(("r-formula" ,r-formula)
13888 ("r-ggplot2" ,r-ggplot2)
13889 ("r-pkgmaker" ,r-pkgmaker)
13890 ("r-plyr" ,r-plyr)
13891 ("r-rngtools" ,r-rngtools)
13892 ("r-scales" ,r-scales)))
13893 (home-page "https://github.com/shenorrLab/csSAM/")
13894 (synopsis "Cell type-specific statistical analysis of microarray")
13895 (description "This package implements the method csSAM that computes
13896 cell-specific differential expression from measured cell proportions using
13897 SAM.")
13898 ;; Any version
13899 (license license:lgpl2.1+))))
13900
13901 (define-public r-bseqsc
13902 (let ((revision "1")
13903 (commit "fef3f3e38dcf3df37103348b5780937982b43b98"))
13904 (package
13905 (name "r-bseqsc")
13906 (version (git-version "1.0" revision commit))
13907 (source (origin
13908 (method git-fetch)
13909 (uri (git-reference
13910 (url "https://github.com/shenorrLab/bseqsc")
13911 (commit commit)))
13912 (file-name (git-file-name name version))
13913 (sha256
13914 (base32
13915 "1prw13wa20f7wlc3gkkls66n1kxz8d28qrb8icfqdwdnnv8w5qg8"))))
13916 (build-system r-build-system)
13917 (propagated-inputs
13918 `(("r-abind" ,r-abind)
13919 ("r-annotationdbi" ,r-annotationdbi)
13920 ("r-biobase" ,r-biobase)
13921 ("r-cssam" ,r-cssam)
13922 ("r-dplyr" ,r-dplyr)
13923 ("r-e1071" ,r-e1071)
13924 ("r-edger" ,r-edger)
13925 ("r-ggplot2" ,r-ggplot2)
13926 ("r-nmf" ,r-nmf)
13927 ("r-openxlsx" ,r-openxlsx)
13928 ("r-pkgmaker" ,r-pkgmaker)
13929 ("r-plyr" ,r-plyr)
13930 ("r-preprocesscore" ,r-preprocesscore)
13931 ("r-rngtools" ,r-rngtools)
13932 ("r-scales" ,r-scales)
13933 ("r-stringr" ,r-stringr)
13934 ("r-xbioc" ,r-xbioc)))
13935 (home-page "https://github.com/shenorrLab/bseqsc")
13936 (synopsis "Deconvolution of bulk sequencing experiments using single cell data")
13937 (description "BSeq-sc is a bioinformatics analysis pipeline that
13938 leverages single-cell sequencing data to estimate cell type proportion and
13939 cell type-specific gene expression differences from RNA-seq data from bulk
13940 tissue samples. This is a companion package to the publication \"A
13941 single-cell transcriptomic map of the human and mouse pancreas reveals inter-
13942 and intra-cell population structure.\" Baron et al. Cell Systems (2016)
13943 @url{https://www.ncbi.nlm.nih.gov/pubmed/27667365}.")
13944 (license license:gpl2+))))
13945
13946 (define-public porechop
13947 ;; The recommended way to install is to clone the git repository
13948 ;; https://github.com/rrwick/Porechop#installation
13949 (let ((commit "289d5dca4a5fc327f97b3f8cecb68ecaf1014861")
13950 (revision "1"))
13951 (package
13952 (name "porechop")
13953 (version (git-version "0.2.3" revision commit))
13954 (source
13955 (origin
13956 (method git-fetch)
13957 (uri (git-reference
13958 (url "https://github.com/rrwick/Porechop")
13959 (commit commit)))
13960 (file-name (git-file-name name version))
13961 (sha256
13962 (base32 "05ps43gig0d3ia9x5lj84lb00hbsl6ba9n7y7jz927npxbr2ym23"))))
13963 (build-system python-build-system)
13964 (home-page "https://github.com/rrwick/porechop")
13965 (synopsis "Finding, trimming or splitting adapters, in Oxford Nanopore reads")
13966 (description
13967 "The porechop package is a tool for finding and removing adapters from Oxford
13968 Nanopore reads. Adapters on the ends of reads are trimmed off, and when a read
13969 has an adapter in its middle, it is treated as chimeric and chopped into
13970 separate reads. Porechop performs thorough alignments to effectively find
13971 adapters, even at low sequence identity. Porechop also supports demultiplexing
13972 of Nanopore reads that were barcoded with the Native Barcoding Kit, PCR
13973 Barcoding Kit or Rapid Barcoding Kit.")
13974 (license license:gpl3+))))
13975
13976 (define-public poretools
13977 ;; The latest release was in 2016 and the latest commit is from 2017
13978 ;; the recommended way to install is to clone the git repository
13979 ;; https://poretools.readthedocs.io/en/latest/content/installation.html
13980 (let ((commit "e426b1f09e86ac259a00c261c79df91510777407")
13981 (revision "1"))
13982 (package
13983 (name "poretools")
13984 (version (git-version "0.6.0" revision commit))
13985 (source
13986 (origin
13987 (method git-fetch)
13988 (uri (git-reference
13989 (url "https://github.com/arq5x/poretools")
13990 (commit commit)))
13991 (file-name (git-file-name name version))
13992 (sha256
13993 (base32 "0bglj833wxpp3cq430p1d3xp085ls221js2y90w7ir2x5ay8l7am"))))
13994 (build-system python-build-system)
13995 ;; requires python >=2.7, <3.0, and the same for python dependencies
13996 (arguments `(#:python ,python-2))
13997 (inputs
13998 `(("hdf5" ,hdf5)))
13999 (propagated-inputs
14000 `(("python-dateutil" ,python2-dateutil)
14001 ("python-h5py" ,python2-h5py)
14002 ("python-matplotlib" ,python2-matplotlib)
14003 ("python-pandas" ,python2-pandas)
14004 ("python-seaborn" ,python2-seaborn)))
14005 (home-page "https://poretools.readthedocs.io")
14006 (synopsis "Toolkit for working with nanopore sequencing data")
14007 (description
14008 "The MinION from Oxford Nanopore Technologies is a nanopore sequencer.
14009 This @code{poretools} package is a flexible toolkit for exploring datasets
14010 generated by nanopore sequencing devices for the purposes of quality control and
14011 downstream analysis. Poretools operates directly on the native FAST5, a variant
14012 of the Hierarchical Data Format (HDF5) standard.")
14013 (license license:expat))))
14014
14015 (define-public jamm
14016 (package
14017 (name "jamm")
14018 (version "1.0.7.6")
14019 (source
14020 (origin
14021 (method git-fetch)
14022 (uri (git-reference
14023 (url "https://github.com/mahmoudibrahim/JAMM")
14024 (commit (string-append "JAMMv" version))))
14025 (file-name (git-file-name name version))
14026 (sha256
14027 (base32
14028 "0bsa5mf9n9q5jz7mmacrra41l7r8rac5vgsn6wv1fb52ya58b970"))))
14029 (build-system gnu-build-system)
14030 (arguments
14031 `(#:tests? #f ; there are none
14032 #:phases
14033 (modify-phases %standard-phases
14034 (delete 'configure)
14035 (delete 'build)
14036 (replace 'install
14037 (lambda* (#:key inputs outputs #:allow-other-keys)
14038 (let* ((out (assoc-ref outputs "out"))
14039 (libexec (string-append out "/libexec/jamm"))
14040 (bin (string-append out "/bin")))
14041 (substitute* '("JAMM.sh"
14042 "SignalGenerator.sh")
14043 (("^sPath=.*")
14044 (string-append "sPath=\"" libexec "\"\n")))
14045 (for-each (lambda (file)
14046 (install-file file libexec))
14047 (list "bincalculator.r"
14048 "peakfinder.r"
14049 "peakhelper.r"
14050 "signalmaker.r"
14051 "xcorr.r"
14052 "xcorrhelper.r"
14053 ;; Perl scripts
14054 "peakfilter.pl"
14055 "readshifter.pl"))
14056
14057 (for-each
14058 (lambda (script)
14059 (chmod script #o555)
14060 (install-file script bin)
14061 (wrap-program (string-append bin "/" script)
14062 `("PATH" ":" prefix
14063 (,(string-append (assoc-ref inputs "coreutils") "/bin")
14064 ,(string-append (assoc-ref inputs "gawk") "/bin")
14065 ,(string-append (assoc-ref inputs "perl") "/bin")
14066 ,(string-append (assoc-ref inputs "r-minimal") "/bin")))
14067 `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB")))
14068 `("R_LIBS_SITE" ":" prefix (,(getenv "R_LIBS_SITE")))))
14069 (list "JAMM.sh" "SignalGenerator.sh")))
14070 #t)))))
14071 (inputs
14072 `(("bash" ,bash)
14073 ("coreutils" ,coreutils)
14074 ("gawk" ,gawk)
14075 ("perl" ,perl)
14076 ("r-minimal" ,r-minimal)
14077 ;;("r-parallel" ,r-parallel)
14078 ("r-signal" ,r-signal)
14079 ("r-mclust" ,r-mclust)))
14080 (home-page "https://github.com/mahmoudibrahim/JAMM")
14081 (synopsis "Peak finder for NGS datasets")
14082 (description
14083 "JAMM is a peak finder for next generation sequencing datasets (ChIP-Seq,
14084 ATAC-Seq, DNase-Seq, etc.) that can integrate replicates and assign peak
14085 boundaries accurately. JAMM is applicable to both broad and narrow
14086 datasets.")
14087 (license license:gpl3+)))
14088
14089 (define-public ngless
14090 (package
14091 (name "ngless")
14092 (version "1.1.0")
14093 (source
14094 (origin
14095 (method git-fetch)
14096 (uri (git-reference
14097 (url "https://gitlab.com/ngless/ngless.git")
14098 (commit (string-append "v" version))))
14099 (file-name (git-file-name name version))
14100 (sha256
14101 (base32
14102 "1wim8wpqyff080dfcazynrmjwqas38m24m0v350w245mmhrapdma"))))
14103 (build-system haskell-build-system)
14104 (arguments
14105 `(#:haddock? #f ; The haddock phase fails with: NGLess/CmdArgs.hs:20:1:
14106 ; error: parse error on input import
14107 ; import Options.Applicative
14108 #:phases
14109 (modify-phases %standard-phases
14110 (add-after 'unpack 'create-Versions.hs
14111 (lambda _
14112 (substitute* "Makefile"
14113 (("BWA_VERSION = .*")
14114 (string-append "BWA_VERSION = "
14115 ,(package-version bwa) "\n"))
14116 (("SAM_VERSION = .*")
14117 (string-append "SAM_VERSION = "
14118 ,(package-version samtools) "\n"))
14119 (("PRODIGAL_VERSION = .*")
14120 (string-append "PRODIGAL_VERSION = "
14121 ,(package-version prodigal) "\n"))
14122 (("MINIMAP2_VERSION = .*")
14123 (string-append "MINIMAP2_VERSION = "
14124 ,(package-version minimap2) "\n")))
14125 (invoke "make" "NGLess/Dependencies/Versions.hs")
14126 #t))
14127 (add-after 'create-Versions.hs 'create-cabal-file
14128 (lambda _ (invoke "hpack") #t))
14129 ;; These tools are expected to be installed alongside ngless.
14130 (add-after 'install 'link-tools
14131 (lambda* (#:key inputs outputs #:allow-other-keys)
14132 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
14133 (symlink (string-append (assoc-ref inputs "prodigal")
14134 "/bin/prodigal")
14135 (string-append bin "ngless-" ,version "-prodigal"))
14136 (symlink (string-append (assoc-ref inputs "minimap2")
14137 "/bin/minimap2")
14138 (string-append bin "ngless-" ,version "-minimap2"))
14139 (symlink (string-append (assoc-ref inputs "samtools")
14140 "/bin/samtools")
14141 (string-append bin "ngless-" ,version "-samtools"))
14142 (symlink (string-append (assoc-ref inputs "bwa")
14143 "/bin/bwa")
14144 (string-append bin "ngless-" ,version "-bwa"))
14145 #t))))))
14146 (inputs
14147 `(("prodigal" ,prodigal)
14148 ("bwa" ,bwa)
14149 ("samtools" ,samtools)
14150 ("minimap2" ,minimap2)
14151 ("ghc-aeson" ,ghc-aeson)
14152 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
14153 ("ghc-async" ,ghc-async)
14154 ("ghc-atomic-write" ,ghc-atomic-write)
14155 ("ghc-bytestring-lexing" ,ghc-bytestring-lexing)
14156 ("ghc-conduit" ,ghc-conduit)
14157 ("ghc-conduit-algorithms" ,ghc-conduit-algorithms)
14158 ("ghc-conduit-extra" ,ghc-conduit-extra)
14159 ("ghc-configurator" ,ghc-configurator)
14160 ("ghc-convertible" ,ghc-convertible)
14161 ("ghc-data-default" ,ghc-data-default)
14162 ("ghc-diagrams-core" ,ghc-diagrams-core)
14163 ("ghc-diagrams-lib" ,ghc-diagrams-lib)
14164 ("ghc-diagrams-svg" ,ghc-diagrams-svg)
14165 ("ghc-double-conversion" ,ghc-double-conversion)
14166 ("ghc-edit-distance" ,ghc-edit-distance)
14167 ("ghc-either" ,ghc-either)
14168 ("ghc-errors" ,ghc-errors)
14169 ("ghc-extra" ,ghc-extra)
14170 ("ghc-filemanip" ,ghc-filemanip)
14171 ("ghc-file-embed" ,ghc-file-embed)
14172 ("ghc-gitrev" ,ghc-gitrev)
14173 ("ghc-hashtables" ,ghc-hashtables)
14174 ("ghc-http-conduit" ,ghc-http-conduit)
14175 ("ghc-inline-c" ,ghc-inline-c)
14176 ("ghc-inline-c-cpp" ,ghc-inline-c-cpp)
14177 ("ghc-intervalmap" ,ghc-intervalmap)
14178 ("ghc-missingh" ,ghc-missingh)
14179 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
14180 ("ghc-regex" ,ghc-regex)
14181 ("ghc-safe" ,ghc-safe)
14182 ("ghc-safeio" ,ghc-safeio)
14183 ("ghc-strict" ,ghc-strict)
14184 ("ghc-tar" ,ghc-tar)
14185 ("ghc-tar-conduit" ,ghc-tar-conduit)
14186 ("ghc-unliftio" ,ghc-unliftio)
14187 ("ghc-unliftio-core" ,ghc-unliftio-core)
14188 ("ghc-vector" ,ghc-vector)
14189 ("ghc-yaml" ,ghc-yaml)
14190 ("ghc-zlib" ,ghc-zlib)))
14191 (propagated-inputs
14192 `(("r-r6" ,r-r6)
14193 ("r-hdf5r" ,r-hdf5r)
14194 ("r-iterators" ,r-iterators)
14195 ("r-itertools" ,r-itertools)
14196 ("r-matrix" ,r-matrix)))
14197 (native-inputs
14198 `(("ghc-hpack" ,ghc-hpack)
14199 ("ghc-quickcheck" ,ghc-quickcheck)
14200 ("ghc-test-framework" ,ghc-test-framework)
14201 ("ghc-test-framework-hunit",ghc-test-framework-hunit)
14202 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
14203 ("ghc-test-framework-th" ,ghc-test-framework-th)))
14204 (home-page "https://gitlab.com/ngless/ngless")
14205 (synopsis "DSL for processing next-generation sequencing data")
14206 (description "Ngless is a domain-specific language for
14207 @dfn{next-generation sequencing} (NGS) data processing.")
14208 (license license:expat)))
14209
14210 (define-public filtlong
14211 ;; The recommended way to install is to clone the git repository
14212 ;; https://github.com/rrwick/Filtlong#installation
14213 ;; and the lastest release is more than nine months old
14214 (let ((commit "d1bb46dfe8bc7efe6257b5ce222c04bfe8aedaab")
14215 (revision "1"))
14216 (package
14217 (name "filtlong")
14218 (version (git-version "0.2.0" revision commit))
14219 (source
14220 (origin
14221 (method git-fetch)
14222 (uri (git-reference
14223 (url "https://github.com/rrwick/Filtlong")
14224 (commit commit)))
14225 (file-name (git-file-name name version))
14226 (sha256
14227 (base32 "1xr92r820x8qlkcr3b57iw223yq8vjgyi42jr79w2xgw47qzr575"))))
14228 (build-system gnu-build-system)
14229 (arguments
14230 `(#:tests? #f ; no check target
14231 #:phases
14232 (modify-phases %standard-phases
14233 (delete 'configure)
14234 (replace 'install
14235 (lambda* (#:key outputs #:allow-other-keys)
14236 (let* ((out (assoc-ref outputs "out"))
14237 (bin (string-append out "/bin"))
14238 (scripts (string-append out "/share/filtlong/scripts")))
14239 (install-file "bin/filtlong" bin)
14240 (install-file "scripts/histogram.py" scripts)
14241 (install-file "scripts/read_info_histograms.sh" scripts))
14242 #t))
14243 (add-after 'install 'wrap-program
14244 (lambda* (#:key inputs outputs #:allow-other-keys)
14245 (let* ((out (assoc-ref outputs "out"))
14246 (path (getenv "PYTHONPATH")))
14247 (wrap-program (string-append out
14248 "/share/filtlong/scripts/histogram.py")
14249 `("PYTHONPATH" ":" prefix (,path))))
14250 #t))
14251 (add-before 'check 'patch-tests
14252 (lambda _
14253 (substitute* "scripts/read_info_histograms.sh"
14254 (("awk") (which "gawk")))
14255 #t)))))
14256 (inputs
14257 `(("gawk" ,gawk) ;for read_info_histograms.sh
14258 ("python" ,python-2) ;required for histogram.py
14259 ("zlib" ,zlib)))
14260 (home-page "https://github.com/rrwick/Filtlong/")
14261 (synopsis "Tool for quality filtering of Nanopore and PacBio data")
14262 (description
14263 "The Filtlong package is a tool for filtering long reads by quality.
14264 It can take a set of long reads and produce a smaller, better subset. It uses
14265 both read length (longer is better) and read identity (higher is better) when
14266 choosing which reads pass the filter.")
14267 (license (list license:gpl3 ;filtlong
14268 license:asl2.0))))) ;histogram.py
14269
14270 (define-public nanopolish
14271 ;; The recommended way to install is to clone the git repository
14272 ;; <https://github.com/jts/nanopolish#installing-a-particular-release>.
14273 ;; Also, the differences between release and current version seem to be
14274 ;; significant.
14275 (let ((commit "6331dc4f15b9dfabb954ba3fae9d76b6c3ca6377")
14276 (revision "1"))
14277 (package
14278 (name "nanopolish")
14279 (version (git-version "0.11.1" revision commit))
14280 (source
14281 (origin
14282 (method git-fetch)
14283 (uri (git-reference
14284 (url "https://github.com/jts/nanopolish")
14285 (commit commit)
14286 (recursive? #t)))
14287 (file-name (git-file-name name version))
14288 (sha256
14289 (base32 "15ikl3d37y49pwd7vx36xksgsqajhf24q7qqsnpl15dqqyy5qgbc"))
14290 (modules '((guix build utils)))
14291 (snippet
14292 '(begin
14293 (delete-file-recursively "htslib")
14294 #t))))
14295 (build-system gnu-build-system)
14296 (arguments
14297 `(#:make-flags
14298 `("HDF5=noinstall" "EIGEN=noinstall" "HTS=noinstall" "CC=gcc")
14299 #:tests? #f ; no check target
14300 #:phases
14301 (modify-phases %standard-phases
14302 (add-after 'unpack 'find-eigen
14303 (lambda* (#:key inputs #:allow-other-keys)
14304 (setenv "CPATH"
14305 (string-append (assoc-ref inputs "eigen")
14306 "/include/eigen3:"
14307 (or (getenv "CPATH") "")))
14308 #t))
14309 (delete 'configure)
14310 (replace 'install
14311 (lambda* (#:key outputs #:allow-other-keys)
14312 (let* ((out (assoc-ref outputs "out"))
14313 (bin (string-append out "/bin"))
14314 (scripts (string-append out "/share/nanopolish/scripts")))
14315
14316 (install-file "nanopolish" bin)
14317 (for-each (lambda (file) (install-file file scripts))
14318 (find-files "scripts" ".*"))
14319 #t)))
14320 (add-after 'install 'wrap-programs
14321 (lambda* (#:key outputs #:allow-other-keys)
14322 (for-each (lambda (file)
14323 (wrap-program file `("PYTHONPATH" ":" prefix (,path))))
14324 (find-files "/share/nanopolish/scripts" "\\.py"))
14325 (for-each (lambda (file)
14326 (wrap-program file `("PERL5LIB" ":" prefix (,path))))
14327 (find-files "/share/nanopolish/scripts" "\\.pl"))
14328 #t)))))
14329 (inputs
14330 `(("eigen" ,eigen)
14331 ("hdf5" ,hdf5)
14332 ("htslib" ,htslib)
14333 ("perl" ,perl)
14334 ("python" ,python-wrapper)
14335 ("python-biopython" ,python-biopython)
14336 ("python-numpy" ,python-numpy)
14337 ("python-pysam" ,python-pysam)
14338 ("python-scikit-learn" , python-scikit-learn)
14339 ("python-scipy" ,python-scipy)
14340 ("zlib" ,zlib)))
14341 (home-page "https://github.com/jts/nanopolish")
14342 (synopsis "Signal-level analysis of Oxford Nanopore sequencing data")
14343 (description
14344 "This package analyses the Oxford Nanopore sequencing data at signal-level.
14345 Nanopolish can calculate an improved consensus sequence for a draft genome
14346 assembly, detect base modifications, call SNPs (Single nucleotide
14347 polymorphisms) and indels with respect to a reference genome and more.")
14348 (license license:expat))))
14349
14350 (define-public cnvkit
14351 (package
14352 (name "cnvkit")
14353 (version "0.9.5")
14354 (source
14355 (origin
14356 (method git-fetch)
14357 (uri (git-reference
14358 (url "https://github.com/etal/cnvkit")
14359 (commit (string-append "v" version))))
14360 (file-name (git-file-name name version))
14361 (sha256
14362 (base32 "0g2f78k68yglmj4fsfmgs8idqv3di9aj53fg0ld0hqljg8chhh82"))))
14363 (build-system python-build-system)
14364 (propagated-inputs
14365 `(("python-biopython" ,python-biopython)
14366 ("python-future" ,python-future)
14367 ("python-matplotlib" ,python-matplotlib)
14368 ("python-numpy" ,python-numpy)
14369 ("python-reportlab" ,python-reportlab)
14370 ("python-pandas" ,python-pandas)
14371 ("python-pysam" ,python-pysam)
14372 ("python-pyfaidx" ,python-pyfaidx)
14373 ("python-scipy" ,python-scipy)
14374 ;; R packages
14375 ("r-dnacopy" ,r-dnacopy)))
14376 (home-page "https://cnvkit.readthedocs.org/")
14377 (synopsis "Copy number variant detection from targeted DNA sequencing")
14378 (description
14379 "CNVkit is a Python library and command-line software toolkit to infer
14380 and visualize copy number from high-throughput DNA sequencing data. It is
14381 designed for use with hybrid capture, including both whole-exome and custom
14382 target panels, and short-read sequencing platforms such as Illumina and Ion
14383 Torrent.")
14384 (license license:asl2.0)))
14385
14386 (define-public python-pyfit-sne
14387 (package
14388 (name "python-pyfit-sne")
14389 (version "1.0.1")
14390 (source
14391 (origin
14392 (method git-fetch)
14393 (uri (git-reference
14394 (url "https://github.com/KlugerLab/pyFIt-SNE")
14395 (commit version)))
14396 (file-name (git-file-name name version))
14397 (sha256
14398 (base32 "13wh3qkzs56azmmgnxib6xfr29g7xh09sxylzjpni5j0pp0rc5qw"))))
14399 (build-system python-build-system)
14400 (propagated-inputs
14401 `(("python-numpy" ,python-numpy)))
14402 (inputs
14403 `(("fftw" ,fftw)))
14404 (native-inputs
14405 `(("python-cython" ,python-cython)))
14406 (home-page "https://github.com/KlugerLab/pyFIt-SNE")
14407 (synopsis "FFT-accelerated Interpolation-based t-SNE")
14408 (description
14409 "t-Stochastic Neighborhood Embedding (t-SNE) is a highly successful
14410 method for dimensionality reduction and visualization of high dimensional
14411 datasets. A popular implementation of t-SNE uses the Barnes-Hut algorithm to
14412 approximate the gradient at each iteration of gradient descent. This package
14413 is a Cython wrapper for FIt-SNE.")
14414 (license license:bsd-4)))
14415
14416 (define-public bbmap
14417 (package
14418 (name "bbmap")
14419 (version "35.82")
14420 (source (origin
14421 (method url-fetch)
14422 (uri (string-append
14423 "mirror://sourceforge/bbmap/BBMap_" version ".tar.gz"))
14424 (sha256
14425 (base32
14426 "1q4rfhxcb6z3gm8zg2davjz98w22lkf4hm9ikxz9kdl93pil3wkd"))))
14427 (build-system ant-build-system)
14428 (arguments
14429 `(#:build-target "dist"
14430 #:tests? #f ; there are none
14431 #:make-flags
14432 (list (string-append "-Dmpijar="
14433 (assoc-ref %build-inputs "java-openmpi")
14434 "/lib/mpi.jar"))
14435 #:modules ((guix build ant-build-system)
14436 (guix build utils)
14437 (guix build java-utils))
14438 #:phases
14439 (modify-phases %standard-phases
14440 (add-after 'build 'build-jni-library
14441 (lambda _
14442 (with-directory-excursion "jni"
14443 (invoke "make" "-f" "makefile.linux"))))
14444 ;; There is no install target
14445 (replace 'install (install-jars "dist"))
14446 (add-after 'install 'install-scripts-and-documentation
14447 (lambda* (#:key outputs #:allow-other-keys)
14448 (substitute* "calcmem.sh"
14449 (("\\| awk ") (string-append "| " (which "awk") " ")))
14450 (let* ((scripts (find-files "." "\\.sh$"))
14451 (out (assoc-ref outputs "out"))
14452 (bin (string-append out "/bin"))
14453 (doc (string-append out "/share/doc/bbmap"))
14454 (jni (string-append out "/lib/jni")))
14455 (substitute* scripts
14456 (("\\$DIR\"\"docs") doc)
14457 (("^CP=.*")
14458 (string-append "CP=" out "/share/java/BBTools.jar\n"))
14459 (("^NATIVELIBDIR.*")
14460 (string-append "NATIVELIBDIR=" jni "\n"))
14461 (("CMD=\"java")
14462 (string-append "CMD=\"" (which "java"))))
14463 (for-each (lambda (script) (install-file script bin)) scripts)
14464
14465 ;; Install JNI library
14466 (install-file "jni/libbbtoolsjni.so" jni)
14467
14468 ;; Install documentation
14469 (install-file "docs/readme.txt" doc)
14470 (copy-recursively "docs/guides" doc))
14471 #t)))
14472 #:jdk ,openjdk11))
14473 (inputs
14474 `(("gawk" ,gawk)
14475 ("java-eclipse-jdt-core" ,java-eclipse-jdt-core)
14476 ("java-eclipse-jdt-compiler-apt" ,java-eclipse-jdt-compiler-apt)
14477 ("java-openmpi" ,java-openmpi)))
14478 (home-page "https://sourceforge.net/projects/bbmap/")
14479 (synopsis "Aligner and other tools for short sequencing reads")
14480 (description
14481 "This package provides bioinformatic tools to align, deduplicate,
14482 reformat, filter and normalize DNA and RNA-seq data. It includes the
14483 following tools: BBMap, a short read aligner for DNA and RNA-seq data; BBNorm,
14484 a kmer-based error-correction and normalization tool; Dedupe, a tool to
14485 simplify assemblies by removing duplicate or contained subsequences that share
14486 a target percent identity; Reformat, to convert reads between
14487 fasta/fastq/scarf/fasta+qual/sam, interleaved/paired, and ASCII-33/64, at over
14488 500 MB/s; and BBDuk, a tool to filter, trim, or mask reads with kmer matches
14489 to an artifact/contaminant file.")
14490 (license license:bsd-3)))
14491
14492 (define-public velvet
14493 (package
14494 (name "velvet")
14495 (version "1.2.10")
14496 (source (origin
14497 (method url-fetch)
14498 (uri (string-append "https://www.ebi.ac.uk/~zerbino/velvet/"
14499 "velvet_" version ".tgz"))
14500 (sha256
14501 (base32
14502 "0h3njwy66p6bx14r3ar1byb0ccaxmxka4c65rn4iybyiqa4d8kc8"))
14503 ;; Delete bundled libraries
14504 (modules '((guix build utils)))
14505 (snippet
14506 '(begin
14507 (delete-file "Manual.pdf")
14508 (delete-file-recursively "third-party")
14509 #t))))
14510 (build-system gnu-build-system)
14511 (arguments
14512 `(#:make-flags '("OPENMP=t")
14513 #:test-target "test"
14514 #:phases
14515 (modify-phases %standard-phases
14516 (delete 'configure)
14517 (add-after 'unpack 'fix-zlib-include
14518 (lambda _
14519 (substitute* "src/binarySequences.c"
14520 (("../third-party/zlib-1.2.3/zlib.h") "zlib.h"))
14521 #t))
14522 (replace 'install
14523 (lambda* (#:key outputs #:allow-other-keys)
14524 (let* ((out (assoc-ref outputs "out"))
14525 (bin (string-append out "/bin"))
14526 (doc (string-append out "/share/doc/velvet")))
14527 (mkdir-p bin)
14528 (mkdir-p doc)
14529 (install-file "velveth" bin)
14530 (install-file "velvetg" bin)
14531 (install-file "Manual.pdf" doc)
14532 (install-file "Columbus_manual.pdf" doc)
14533 #t))))))
14534 (inputs
14535 `(("openmpi" ,openmpi)
14536 ("zlib" ,zlib)))
14537 (native-inputs
14538 `(("texlive" ,(texlive-union (list texlive-latex-graphics
14539 texlive-latex-hyperref)))))
14540 (home-page "https://www.ebi.ac.uk/~zerbino/velvet/")
14541 (synopsis "Nucleic acid sequence assembler for very short reads")
14542 (description
14543 "Velvet is a de novo genomic assembler specially designed for short read
14544 sequencing technologies, such as Solexa or 454. Velvet currently takes in
14545 short read sequences, removes errors then produces high quality unique
14546 contigs. It then uses paired read information, if available, to retrieve the
14547 repeated areas between contigs.")
14548 (license license:gpl2+)))
14549
14550 (define-public python-velocyto
14551 (package
14552 (name "python-velocyto")
14553 (version "0.17.17")
14554 (source
14555 (origin
14556 (method url-fetch)
14557 (uri (pypi-uri "velocyto" version))
14558 (sha256
14559 (base32
14560 "0fgygyzqgrq32dv6a00biq1p1cwi6kbl5iqblxq1kklj6b2mzmhs"))))
14561 (build-system python-build-system)
14562 (native-inputs
14563 `(("python-joblib" ,python-joblib)))
14564 (propagated-inputs
14565 `(("python-click" ,python-click)
14566 ("python-cython" ,python-cython)
14567 ("python-h5py" ,python-h5py)
14568 ("python-loompy" ,python-loompy)
14569 ("python-matplotlib" ,python-matplotlib)
14570 ("python-numba" ,python-numba)
14571 ("python-numpy" ,python-numpy)
14572 ("python-pandas" ,python-pandas)
14573 ("python-pysam" ,python-pysam)
14574 ("python-scikit-learn" ,python-scikit-learn)
14575 ("python-scipy" ,python-scipy)))
14576 (home-page "https://github.com/velocyto-team/velocyto.py")
14577 (synopsis "RNA velocity analysis for single cell RNA-seq data")
14578 (description
14579 "Velocyto is a library for the analysis of RNA velocity. Velocyto
14580 includes a command line tool and an analysis pipeline.")
14581 (license license:bsd-2)))
14582
14583 (define-public arriba
14584 (package
14585 (name "arriba")
14586 (version "1.0.1")
14587 (source
14588 (origin
14589 (method url-fetch)
14590 (uri (string-append "https://github.com/suhrig/arriba/releases/"
14591 "download/v" version "/arriba_v" version ".tar.gz"))
14592 (sha256
14593 (base32
14594 "0jx9656ry766vb8z08m1c3im87b0c82qpnjby9wz4kcz8vn87dx2"))))
14595 (build-system gnu-build-system)
14596 (arguments
14597 `(#:tests? #f ; there are none
14598 #:phases
14599 (modify-phases %standard-phases
14600 (replace 'configure
14601 (lambda* (#:key inputs #:allow-other-keys)
14602 (let ((htslib (assoc-ref inputs "htslib")))
14603 (substitute* "Makefile"
14604 (("-I\\$\\(HTSLIB\\)/htslib")
14605 (string-append "-I" htslib "/include/htslib"))
14606 ((" \\$\\(HTSLIB\\)/libhts.a")
14607 (string-append " " htslib "/lib/libhts.so"))))
14608 (substitute* "run_arriba.sh"
14609 (("^STAR ") (string-append (which "STAR") " "))
14610 (("samtools --version-only")
14611 (string-append (which "samtools") " --version-only"))
14612 (("samtools index")
14613 (string-append (which "samtools") " index"))
14614 (("samtools sort")
14615 (string-append (which "samtools") " sort")))
14616 #t))
14617 (replace 'install
14618 (lambda* (#:key outputs #:allow-other-keys)
14619 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
14620 (install-file "arriba" bin)
14621 (install-file "run_arriba.sh" bin)
14622 (install-file "draw_fusions.R" bin)
14623 (wrap-program (string-append bin "/draw_fusions.R")
14624 `("R_LIBS_SITE" ":" prefix (,(getenv "R_LIBS_SITE")))))
14625 #t)))))
14626 (inputs
14627 `(("htslib" ,htslib)
14628 ("r-minimal" ,r-minimal)
14629 ("r-circlize" ,r-circlize)
14630 ("r-genomicalignments" ,r-genomicalignments)
14631 ("r-genomicranges" ,r-genomicranges)
14632 ("samtools" ,samtools)
14633 ("star" ,star)
14634 ("zlib" ,zlib)))
14635 (home-page "https://github.com/suhrig/arriba")
14636 (synopsis "Gene fusion detection from RNA-Seq data ")
14637 (description
14638 "Arriba is a command-line tool for the detection of gene fusions from
14639 RNA-Seq data. It was developed for the use in a clinical research setting.
14640 Therefore, short runtimes and high sensitivity were important design criteria.
14641 It is based on the fast STAR aligner and the post-alignment runtime is
14642 typically just around two minutes. In contrast to many other fusion detection
14643 tools which build on STAR, Arriba does not require to reduce the
14644 @code{alignIntronMax} parameter of STAR to detect small deletions.")
14645 ;; All code is under the Expat license with the exception of
14646 ;; "draw_fusions.R", which is under GPLv3.
14647 (license (list license:expat license:gpl3))))
14648
14649 (define-public adapterremoval
14650 (package
14651 (name "adapterremoval")
14652 (version "2.3.0")
14653 (source
14654 (origin
14655 (method git-fetch)
14656 (uri (git-reference
14657 (url "https://github.com/MikkelSchubert/adapterremoval")
14658 (commit (string-append "v" version))))
14659 (file-name (git-file-name name version))
14660 (sha256
14661 (base32
14662 "1nf3ki5pfzalhrx2fr1y6pfqfi133yj2m7q4fj9irf5fb94bapwr"))))
14663 (build-system gnu-build-system)
14664 (arguments
14665 `(#:make-flags (list "COLOR_BUILD=no"
14666 (string-append "PREFIX="
14667 (assoc-ref %outputs "out")))
14668 #:test-target "test"
14669 #:phases
14670 (modify-phases %standard-phases
14671 (delete 'configure))))
14672 (inputs
14673 `(("zlib" ,zlib)))
14674 (home-page "https://adapterremoval.readthedocs.io/")
14675 (synopsis "Rapid sequence adapter trimming, identification, and read merging")
14676 (description
14677 "This program searches for and removes remnant adapter sequences from
14678 @dfn{High-Throughput Sequencing} (HTS) data and (optionally) trims low quality
14679 bases from the 3' end of reads following adapter removal. AdapterRemoval can
14680 analyze both single end and paired end data, and can be used to merge
14681 overlapping paired-ended reads into (longer) consensus sequences.
14682 Additionally, the AdapterRemoval may be used to recover a consensus adapter
14683 sequence for paired-ended data, for which this information is not available.")
14684 (license license:gpl3+)))
14685
14686 (define-public pplacer
14687 (let ((commit "807f6f3"))
14688 (package
14689 (name "pplacer")
14690 ;; The commit should be updated with each version change.
14691 (version "1.1.alpha19")
14692 (source
14693 (origin
14694 (method git-fetch)
14695 (uri (git-reference
14696 (url "https://github.com/matsen/pplacer")
14697 (commit (string-append "v" version))))
14698 (file-name (git-file-name name version))
14699 (sha256
14700 (base32 "11ppbbbx20p2g9wj3ff64dhnarb12q79v7qh4rk0gj6lkbz4n7cn"))))
14701 (build-system ocaml-build-system)
14702 (arguments
14703 `(#:modules ((guix build ocaml-build-system)
14704 (guix build utils)
14705 (ice-9 ftw))
14706 #:phases
14707 (modify-phases %standard-phases
14708 (delete 'configure)
14709 (add-after 'unpack 'fix-build-with-latest-ocaml
14710 (lambda _
14711 (substitute* "myocamlbuild.ml"
14712 (("dep \\[\"c_pam\"\\]" m)
14713 (string-append "flag [\"ocaml\"; \"compile\"] (A \"-unsafe-string\");\n"
14714 m))
14715 (("let run_and_read" m)
14716 (string-append "
14717 let split s ch =
14718 let x = ref [] in
14719 let rec go s =
14720 let pos = String.index s ch in
14721 x := (String.before s pos)::!x;
14722 go (String.after s (pos + 1))
14723 in
14724 try go s
14725 with Not_found -> !x
14726 let split_nl s = split s '\\n'
14727 let before_space s =
14728 try String.before s (String.index s ' ')
14729 with Not_found -> s
14730
14731 " m))
14732 (("run_and_read \"ocamlfind list \\| cut -d' ' -f1\"" m)
14733 (string-append "List.map before_space (split_nl & " m ")"))
14734 ((" blank_sep_strings &") "")
14735 ((" Lexing.from_string &") ""))
14736 #t))
14737 (add-after 'unpack 'replace-bundled-cddlib
14738 (lambda* (#:key inputs #:allow-other-keys)
14739 (let* ((cddlib-src (assoc-ref inputs "cddlib-src"))
14740 (local-dir "cddlib_guix"))
14741 (mkdir local-dir)
14742 (with-directory-excursion local-dir
14743 (invoke "tar" "xvf" cddlib-src))
14744 (let ((cddlib-src-folder
14745 (string-append local-dir "/"
14746 (list-ref (scandir local-dir) 2)
14747 "/lib-src")))
14748 (for-each make-file-writable (find-files "cdd_src" ".*"))
14749 (for-each
14750 (lambda (file)
14751 (copy-file file
14752 (string-append "cdd_src/" (basename file))))
14753 (find-files cddlib-src-folder ".*[ch]$")))
14754 #t)))
14755 (add-after 'unpack 'fix-makefile
14756 (lambda _
14757 ;; Remove system calls to 'git'.
14758 (substitute* "Makefile"
14759 (("^DESCRIPT:=pplacer-.*")
14760 (string-append
14761 "DESCRIPT:=pplacer-$(shell uname)-v" ,version "\n")))
14762 (substitute* "myocamlbuild.ml"
14763 (("git describe --tags --long .*\\\" with")
14764 (string-append
14765 "echo -n v" ,version "-" ,commit "\" with")))
14766 #t))
14767 (replace 'install
14768 (lambda* (#:key outputs #:allow-other-keys)
14769 (let* ((out (assoc-ref outputs "out"))
14770 (bin (string-append out "/bin")))
14771 (copy-recursively "bin" bin))
14772 #t)))
14773 #:ocaml ,ocaml-4.07
14774 #:findlib ,ocaml4.07-findlib))
14775 (inputs
14776 `(("zlib" ,zlib "static")
14777 ("gsl" ,gsl)
14778 ("ocaml-ounit" ,(package-with-ocaml4.07 ocaml-ounit))
14779 ("ocaml-batteries" ,(package-with-ocaml4.07 ocaml-batteries))
14780 ("ocaml-camlzip" ,(package-with-ocaml4.07 camlzip))
14781 ("ocaml-csv" ,(package-with-ocaml4.07 ocaml-csv))
14782 ("ocaml-sqlite3" ,ocaml4.07-sqlite3)
14783 ("ocaml-xmlm" ,(package-with-ocaml4.07 ocaml-xmlm))
14784 ("ocaml-mcl" ,(package-with-ocaml4.07 ocaml-mcl))
14785 ("ocaml-gsl" ,ocaml4.07-gsl-1)))
14786 (native-inputs
14787 `(("cddlib-src" ,(package-source cddlib))
14788 ("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))
14789 ("pkg-config" ,pkg-config)))
14790 (propagated-inputs
14791 `(("pplacer-scripts" ,pplacer-scripts)))
14792 (synopsis "Phylogenetic placement of biological sequences")
14793 (description
14794 "Pplacer places query sequences on a fixed reference phylogenetic tree
14795 to maximize phylogenetic likelihood or posterior probability according to a
14796 reference alignment. Pplacer is designed to be fast, to give useful
14797 information about uncertainty, and to offer advanced visualization and
14798 downstream analysis.")
14799 (home-page "https://matsen.fhcrc.org/pplacer/")
14800 (license license:gpl3))))
14801
14802 ;; This package is installed alongside 'pplacer'. It is a separate package so
14803 ;; that it can use the python-build-system for the scripts that are
14804 ;; distributed alongside the main OCaml binaries.
14805 (define pplacer-scripts
14806 (package
14807 (inherit pplacer)
14808 (name "pplacer-scripts")
14809 (build-system python-build-system)
14810 (arguments
14811 `(#:python ,python-2
14812 #:phases
14813 (modify-phases %standard-phases
14814 (add-after 'unpack 'enter-scripts-dir
14815 (lambda _ (chdir "scripts") #t))
14816 (replace 'check
14817 (lambda _ (invoke "python" "-m" "unittest" "discover" "-v") #t))
14818 (add-after 'install 'wrap-executables
14819 (lambda* (#:key inputs outputs #:allow-other-keys)
14820 (let* ((out (assoc-ref outputs "out"))
14821 (bin (string-append out "/bin")))
14822 (let ((path (string-append
14823 (assoc-ref inputs "hmmer") "/bin:"
14824 (assoc-ref inputs "infernal") "/bin")))
14825 (display path)
14826 (wrap-program (string-append bin "/refpkg_align.py")
14827 `("PATH" ":" prefix (,path))))
14828 (let ((path (string-append
14829 (assoc-ref inputs "hmmer") "/bin")))
14830 (wrap-program (string-append bin "/hrefpkg_query.py")
14831 `("PATH" ":" prefix (,path)))))
14832 #t)))))
14833 (inputs
14834 `(("infernal" ,infernal)
14835 ("hmmer" ,hmmer)))
14836 (propagated-inputs
14837 `(("python-biopython" ,python2-biopython)
14838 ("taxtastic" ,taxtastic)))
14839 (synopsis "Pplacer Python scripts")))
14840
14841 (define-public python2-checkm-genome
14842 (package
14843 (name "python2-checkm-genome")
14844 (version "1.0.13")
14845 (source
14846 (origin
14847 (method url-fetch)
14848 (uri (pypi-uri "checkm-genome" version))
14849 (sha256
14850 (base32
14851 "0bm8gpxjmzxsxxl8lzwqhgx8g1dlnmp6znz7wv3hgb0gdjbf9dzz"))))
14852 (build-system python-build-system)
14853 (arguments
14854 `(#:python ,python-2
14855 #:tests? #f)) ; some tests are interactive
14856 (propagated-inputs
14857 `(("python-dendropy" ,python2-dendropy)
14858 ("python-matplotlib" ,python2-matplotlib)
14859 ("python-numpy" ,python2-numpy)
14860 ("python-pysam" ,python2-pysam)
14861 ("python-scipy" ,python2-scipy)))
14862 (home-page "https://pypi.org/project/Checkm/")
14863 (synopsis "Assess the quality of putative genome bins")
14864 (description
14865 "CheckM provides a set of tools for assessing the quality of genomes
14866 recovered from isolates, single cells, or metagenomes. It provides robust
14867 estimates of genome completeness and contamination by using collocated sets of
14868 genes that are ubiquitous and single-copy within a phylogenetic lineage.
14869 Assessment of genome quality can also be examined using plots depicting key
14870 genomic characteristics (e.g., GC, coding density) which highlight sequences
14871 outside the expected distributions of a typical genome. CheckM also provides
14872 tools for identifying genome bins that are likely candidates for merging based
14873 on marker set compatibility, similarity in genomic characteristics, and
14874 proximity within a reference genome.")
14875 (license license:gpl3+)))
14876
14877 (define-public umi-tools
14878 (package
14879 (name "umi-tools")
14880 (version "1.0.0")
14881 (source
14882 (origin
14883 (method url-fetch)
14884 (uri (pypi-uri "umi_tools" version))
14885 (sha256
14886 (base32
14887 "08y3vz1vcx09whmbsn722lcs6jl9wyrh9i4p3k8j4cb1i32bij4a"))))
14888 (build-system python-build-system)
14889 (inputs
14890 `(("python-pandas" ,python-pandas)
14891 ("python-future" ,python-future)
14892 ("python-scipy" ,python-scipy)
14893 ("python-matplotlib" ,python-matplotlib)
14894 ("python-regex" ,python-regex)
14895 ("python-pysam" ,python-pysam)))
14896 (native-inputs
14897 `(("python-cython" ,python-cython)))
14898 (home-page "https://github.com/CGATOxford/UMI-tools")
14899 (synopsis "Tools for analyzing unique modular identifiers")
14900 (description "This package provides tools for dealing with @dfn{Unique
14901 Molecular Identifiers} (UMIs) and @dfn{Random Molecular Tags} (RMTs) in
14902 genetic sequences. There are six tools: the @code{extract} and
14903 @code{whitelist} commands are used to prepare a fastq containing UMIs @code{+/-}
14904 cell barcodes for alignment. The remaining commands, @code{group},
14905 @code{dedup}, and @{count}/@code{count_tab}, are used to identify PCR
14906 duplicates using the UMIs and perform different levels of analysis depending
14907 on the needs of the user.")
14908 (license license:expat)))
14909
14910 (define-public ataqv
14911 (package
14912 (name "ataqv")
14913 (version "1.0.0")
14914 (source
14915 (origin
14916 (method git-fetch)
14917 (uri (git-reference
14918 (url "https://github.com/ParkerLab/ataqv")
14919 (commit version)))
14920 (file-name (git-file-name name version))
14921 (sha256
14922 (base32
14923 "031xr6jx1aprh26y5b1lv3gzrlmzg4alfl73vvshymx8cq8asrqi"))))
14924 (build-system gnu-build-system)
14925 (arguments
14926 `(#:make-flags
14927 (list (string-append "prefix=" (assoc-ref %outputs "out"))
14928 (string-append "BOOST_ROOT="
14929 (assoc-ref %build-inputs "boost"))
14930 (string-append "HTSLIB_ROOT="
14931 (assoc-ref %build-inputs "htslib")))
14932 #:test-target "test"
14933 #:phases
14934 (modify-phases %standard-phases
14935 (delete 'configure))))
14936 (inputs
14937 `(("boost" ,boost)
14938 ("htslib" ,htslib)
14939 ("ncurses" ,ncurses)
14940 ("zlib" ,zlib)))
14941 (native-inputs
14942 `(("lcov" ,lcov)))
14943 (home-page "https://github.com/ParkerLab/ataqv")
14944 (synopsis "Toolkit for quality control and visualization of ATAC-seq data")
14945 (description "This package provides a toolkit for measuring and comparing
14946 ATAC-seq results. It was written to make it easier to spot differences that
14947 might be caused by ATAC-seq library prep or sequencing. The main program,
14948 @code{ataqv}, examines aligned reads and reports some basic metrics.")
14949 (license license:gpl3+)))
14950
14951 (define-public r-psiplot
14952 (package
14953 (name "r-psiplot")
14954 (version "2.3.0")
14955 (source
14956 (origin
14957 (method git-fetch)
14958 (uri (git-reference
14959 (url "https://github.com/kcha/psiplot")
14960 (commit (string-append "v" version))))
14961 (file-name (git-file-name name version))
14962 (sha256
14963 (base32 "08438h16cfry5kqh3y9hs8q1b1a8bxhblsm75knviz5r6q0n1jxh"))))
14964 (build-system r-build-system)
14965 (propagated-inputs
14966 `(("r-mass" ,r-mass)
14967 ("r-dplyr" ,r-dplyr)
14968 ("r-tidyr" ,r-tidyr)
14969 ("r-purrr" ,r-purrr)
14970 ("r-readr" ,r-readr)
14971 ("r-magrittr" ,r-magrittr)
14972 ("r-ggplot2" ,r-ggplot2)))
14973 (home-page "https://github.com/kcha/psiplot")
14974 (synopsis "Plot percent spliced-in values of alternatively-spliced exons")
14975 (description
14976 "PSIplot is an R package for generating plots of @dfn{percent
14977 spliced-in} (PSI) values of alternatively-spliced exons that were computed by
14978 vast-tools, an RNA-Seq pipeline for alternative splicing analysis. The plots
14979 are generated using @code{ggplot2}.")
14980 (license license:expat)))
14981
14982 (define-public python-ont-fast5-api
14983 (package
14984 (name "python-ont-fast5-api")
14985 (version "1.4.4")
14986 (source
14987 (origin
14988 (method git-fetch)
14989 (uri (git-reference
14990 (url "https://github.com/nanoporetech/ont_fast5_api")
14991 (commit (string-append "release_" version))))
14992 (file-name (git-file-name name version))
14993 (sha256
14994 (base32
14995 "03cbq4zbbwhll8ml2m9k8sa31mirsvcbjkrq1yna0kkzz9fad5fm"))))
14996 (build-system python-build-system)
14997 (propagated-inputs
14998 `(("python-numpy" ,python-numpy)
14999 ("python-six" ,python-six)
15000 ("python-h5py" ,python-h5py)
15001 ("python-progressbar33" ,python-progressbar33)))
15002 (home-page "https://github.com/nanoporetech/ont_fast5_api")
15003 (synopsis "Interface to HDF5 files of the Oxford Nanopore fast5 file format")
15004 (description
15005 "This package provides a concrete implementation of the fast5 file schema
15006 using the generic @code{h5py} library, plain-named methods to interact with
15007 and reflect the fast5 file schema, and tools to convert between
15008 @code{multi_read} and @code{single_read} formats.")
15009 (license license:mpl2.0)))
15010
15011 (define-public tbsp
15012 (let ((commit "ec8fff4410cfb13a677dbbb95cbbc60217e64907")
15013 (revision "1"))
15014 (package
15015 (name "tbsp")
15016 (version (git-version "1.0.0" revision commit))
15017 (source
15018 (origin
15019 (method git-fetch)
15020 (uri (git-reference
15021 (url "https://github.com/phoenixding/tbsp")
15022 (commit commit)))
15023 (file-name (git-file-name name version))
15024 (sha256
15025 (base32
15026 "025ym14x8gbd6hb55lsinqj6f5qzw36i10klgs7ldzxxd7s39ki1"))))
15027 (build-system python-build-system)
15028 (arguments '(#:tests? #f)) ; no tests included
15029 (inputs
15030 `(("python-matplotlib" ,python-matplotlib)
15031 ("python-networkx" ,python-networkx)
15032 ("python-numpy" ,python-numpy)
15033 ("python-pybigwig" ,python-pybigwig)
15034 ("python-biopython" ,python-biopython)
15035 ("python-scikit-learn" ,python-scikit-learn)
15036 ("python-scipy" ,python-scipy)))
15037 (home-page "https://github.com/phoenixding/tbsp/")
15038 (synopsis "SNP-based trajectory inference")
15039 (description
15040 "Several studies focus on the inference of developmental and response
15041 trajectories from single cell RNA-Seq (scRNA-Seq) data. A number of
15042 computational methods, often referred to as pseudo-time ordering, have been
15043 developed for this task. CRISPR has also been used to reconstruct lineage
15044 trees by inserting random mutations. The tbsp package implements an
15045 alternative method to detect significant, cell type specific sequence
15046 mutations from scRNA-Seq data.")
15047 (license license:expat))))
15048
15049 (define-public tabixpp
15050 (package
15051 (name "tabixpp")
15052 (version "1.1.0")
15053 (source (origin
15054 (method git-fetch)
15055 (uri (git-reference
15056 (url "https://github.com/ekg/tabixpp")
15057 (commit (string-append "v" version))))
15058 (file-name (git-file-name name version))
15059 (sha256
15060 (base32 "1k2a3vbq96ic4lw72iwp5s3mwwc4xhdffjj584yn6l9637q9j1yd"))
15061 (modules '((guix build utils)))
15062 (snippet
15063 `(begin
15064 (delete-file-recursively "htslib") #t))))
15065 (build-system gnu-build-system)
15066 (inputs
15067 `(("htslib" ,htslib)
15068 ("zlib" ,zlib)))
15069 (arguments
15070 `(#:tests? #f ; There are no tests to run.
15071 #:phases
15072 (modify-phases %standard-phases
15073 (delete 'configure) ; There is no configure phase.
15074 ;; The build phase needs overriding the location of htslib.
15075 (replace 'build
15076 (lambda* (#:key inputs #:allow-other-keys)
15077 (let ((htslib-ref (assoc-ref inputs "htslib")))
15078 (invoke "make"
15079 (string-append "HTS_LIB=" htslib-ref "/lib/libhts.a")
15080 (string-append "INCLUDES= -I" htslib-ref "/include/htslib")
15081 "HTS_HEADERS=" ; No need to check for headers here.
15082 (string-append "LIBPATH=-L. -L" htslib-ref "/include"))
15083 (invoke "g++" "-shared" "-o" "libtabixpp.so" "tabix.o" "-lhts")
15084 (invoke "ar" "rcs" "libtabixpp.a" "tabix.o"))))
15085 (replace 'install
15086 (lambda* (#:key outputs #:allow-other-keys)
15087 (let* ((out (assoc-ref outputs "out"))
15088 (lib (string-append out "/lib"))
15089 (bin (string-append out "/bin")))
15090 (install-file "tabix++" bin)
15091 (install-file "libtabixpp.so" lib)
15092 (install-file "libtabixpp.a" lib)
15093 (install-file "tabix.hpp" (string-append out "/include"))
15094 (mkdir-p (string-append lib "/pkgconfig"))
15095 (with-output-to-file (string-append lib "/pkgconfig/tabixpp.pc")
15096 (lambda _
15097 (format #t "prefix=~a~@
15098 exec_prefix=${prefix}~@
15099 libdir=${exec_prefix}/lib~@
15100 includedir=${prefix}/include~@
15101 ~@
15102 ~@
15103 Name: libtabixpp~@
15104 Version: ~a~@
15105 Description: C++ wrapper around tabix project~@
15106 Libs: -L${libdir} -ltabixpp~@
15107 Cflags: -I${includedir}~%"
15108 out ,version)))
15109 #t))))))
15110 (home-page "https://github.com/ekg/tabixpp")
15111 (synopsis "C++ wrapper around tabix project")
15112 (description "This is a C++ wrapper around the Tabix project which abstracts
15113 some of the details of opening and jumping in tabix-indexed files.")
15114 (license license:expat)))
15115
15116 (define-public smithwaterman
15117 (let ((commit "2610e259611ae4cde8f03c72499d28f03f6d38a7"))
15118 (package
15119 (name "smithwaterman")
15120 (version (git-version "0.0.0" "2" commit))
15121 (source (origin
15122 (method git-fetch)
15123 (uri (git-reference
15124 (url "https://github.com/ekg/smithwaterman/")
15125 (commit commit)))
15126 (file-name (git-file-name name version))
15127 (sha256
15128 (base32 "0i9d8zrxpiracw3mxzd9siybpy62p06rqz9mc2w93arajgbk45bs"))))
15129 (build-system gnu-build-system)
15130 (arguments
15131 `(#:tests? #f ; There are no tests to run.
15132 #:make-flags '("libsw.a" "all")
15133 #:phases
15134 (modify-phases %standard-phases
15135 (delete 'configure) ; There is no configure phase.
15136 (add-after 'unpack 'patch-source
15137 (lambda _
15138 (substitute* "Makefile"
15139 (("-c ") "-c -fPIC "))
15140 #t))
15141 (add-after 'build 'build-dynamic
15142 (lambda _
15143 (invoke "g++"
15144 "-shared" "-o" "libsmithwaterman.so"
15145 "smithwaterman.o" "SmithWatermanGotoh.o"
15146 "disorder.o" "BandedSmithWaterman.o"
15147 "LeftAlign.o" "Repeats.o" "IndelAllele.o")))
15148 (replace 'install
15149 (lambda* (#:key outputs #:allow-other-keys)
15150 (let* ((out (assoc-ref outputs "out"))
15151 (bin (string-append out "/bin"))
15152 (lib (string-append out "/lib")))
15153 (install-file "smithwaterman" bin)
15154 (for-each
15155 (lambda (file)
15156 (install-file file (string-append out "/include/smithwaterman")))
15157 (find-files "." "\\.h$"))
15158 (install-file "libsmithwaterman.so" lib)
15159 (install-file "libsw.a" lib)
15160 (mkdir-p (string-append lib "/pkgconfig"))
15161 (with-output-to-file (string-append lib "/pkgconfig/smithwaterman.pc")
15162 (lambda _
15163 (format #t "prefix=~a~@
15164 exec_prefix=${prefix}~@
15165 libdir=${exec_prefix}/lib~@
15166 includedir=${prefix}/include/smithwaterman~@
15167 ~@
15168 ~@
15169 Name: smithwaterman~@
15170 Version: ~a~@
15171 Description: smith-waterman-gotoh alignment algorithm~@
15172 Libs: -L${libdir} -lsmithwaterman~@
15173 Cflags: -I${includedir}~%"
15174 out ,version))))
15175 #t)))))
15176 (home-page "https://github.com/ekg/smithwaterman")
15177 (synopsis "Implementation of the Smith-Waterman algorithm")
15178 (description "Implementation of the Smith-Waterman algorithm.")
15179 ;; The licensing terms are unclear: https://github.com/ekg/smithwaterman/issues/9.
15180 (license (list license:gpl2 license:expat)))))
15181
15182 (define-public multichoose
15183 (package
15184 (name "multichoose")
15185 (version "1.0.3")
15186 (source (origin
15187 (method git-fetch)
15188 (uri (git-reference
15189 (url "https://github.com/ekg/multichoose/")
15190 (commit (string-append "v" version))))
15191 (file-name (git-file-name name version))
15192 (sha256
15193 (base32 "0ci5fqvmpamwgxvmyd79ygj6n3bnbl3vc7b6h1sxz58186sm3pfs"))))
15194 (build-system gnu-build-system)
15195 (arguments
15196 `(#:tests? #f ; Tests require node.
15197 #:phases
15198 (modify-phases %standard-phases
15199 (delete 'configure) ; There is no configure phase.
15200 (replace 'install
15201 (lambda* (#:key outputs #:allow-other-keys)
15202 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
15203 ;; TODO: There are Python modules for these programs too.
15204 (install-file "multichoose" bin)
15205 (install-file "multipermute" bin))
15206 #t)))))
15207 (home-page "https://github.com/ekg/multichoose")
15208 (synopsis "Efficient loopless multiset combination generation algorithm")
15209 (description "This library implements an efficient loopless multiset
15210 combination generation algorithm which is (approximately) described in
15211 \"Loopless algorithms for generating permutations, combinations, and other
15212 combinatorial configurations.\", G. Ehrlich - Journal of the ACM (JACM),
15213 1973. (Algorithm 7.)")
15214 (license license:expat)))
15215
15216 (define-public fsom
15217 (let ((commit "a6ef318fbd347c53189384aef7f670c0e6ce89a3"))
15218 (package
15219 (name "fsom")
15220 (version (git-version "0.0.0" "1" commit))
15221 (source (origin
15222 (method git-fetch)
15223 (uri (git-reference
15224 (url "https://github.com/ekg/fsom/")
15225 (commit commit)))
15226 (file-name (git-file-name name version))
15227 (sha256
15228 (base32 "0gw1lpvr812pywg9y546x0h1hhj261xwls41r6kqhddjlrcjc0pi"))))
15229 (build-system gnu-build-system)
15230 (arguments
15231 `(#:tests? #f ; There are no tests to run.
15232 #:phases
15233 (modify-phases %standard-phases
15234 (delete 'configure) ; There is no configure phase.
15235 (replace 'install
15236 (lambda* (#:key outputs #:allow-other-keys)
15237 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
15238 (install-file "fsom" bin))
15239 #t)))))
15240 (home-page "https://github.com/ekg/fsom")
15241 (synopsis "Manage SOM (Self-Organizing Maps) neural networks")
15242 (description "A tiny C library for managing SOM (Self-Organizing Maps)
15243 neural networks.")
15244 (license license:gpl3))))
15245
15246 (define-public fastahack
15247 (package
15248 (name "fastahack")
15249 (version "1.0.0")
15250 (source (origin
15251 (method git-fetch)
15252 (uri (git-reference
15253 (url "https://github.com/ekg/fastahack/")
15254 (commit (string-append "v" version))))
15255 (file-name (git-file-name name version))
15256 (sha256
15257 (base32 "0rp1blskhzxf7vbh253ibpxbgl9wwgyzf1wbkxndi08d3j4vcss9"))))
15258 (build-system gnu-build-system)
15259 (arguments
15260 `(#:tests? #f ; Unclear how to run tests: https://github.com/ekg/fastahack/issues/15
15261 #:phases
15262 (modify-phases %standard-phases
15263 (delete 'configure) ; There is no configure phase.
15264 (add-after 'unpack 'patch-source
15265 (lambda _
15266 (substitute* "Makefile"
15267 (("-c ") "-c -fPIC "))
15268 #t))
15269 (add-after 'build 'build-dynamic
15270 (lambda _
15271 (invoke "g++"
15272 "-shared" "-o" "libfastahack.so"
15273 "Fasta.o" "FastaHack.o" "split.o" "disorder.o")))
15274 (replace 'install
15275 (lambda* (#:key outputs #:allow-other-keys)
15276 (let* ((out (assoc-ref outputs "out"))
15277 (lib (string-append out "/lib"))
15278 (bin (string-append out "/bin")))
15279 (mkdir-p (string-append out "/include/fastahack"))
15280 (for-each
15281 (lambda (file)
15282 (install-file file (string-append out "/include/fastahack")))
15283 (find-files "." "\\.h$"))
15284 (install-file "fastahack" bin)
15285 (install-file "libfastahack.so" lib)
15286 (mkdir-p (string-append lib "/pkgconfig"))
15287 (with-output-to-file (string-append lib "/pkgconfig/fastahack.pc")
15288 (lambda _
15289 (format #t "prefix=~a~@
15290 exec_prefix=${prefix}~@
15291 libdir=${exec_prefix}/lib~@
15292 includedir=${prefix}/include/fastahack~@
15293 ~@
15294 ~@
15295 Name: fastahack~@
15296 Version: ~a~@
15297 Description: Indexing and sequence extraction from FASTA files~@
15298 Libs: -L${libdir} -lfastahack~@
15299 Cflags: -I${includedir}~%"
15300 out ,version))))
15301 #t)))))
15302 (home-page "https://github.com/ekg/fastahack")
15303 (synopsis "Indexing and sequence extraction from FASTA files")
15304 (description "Fastahack is a small application for indexing and
15305 extracting sequences and subsequences from FASTA files. The included library
15306 provides a FASTA reader and indexer that can be embedded into applications
15307 which would benefit from directly reading subsequences from FASTA files. The
15308 library automatically handles index file generation and use.")
15309 (license (list license:expat license:gpl2))))
15310
15311 (define-public vcflib
15312 (package
15313 (name "vcflib")
15314 (version "1.0.1")
15315 (source
15316 (origin
15317 (method url-fetch)
15318 (uri (string-append "https://github.com/vcflib/vcflib/releases/"
15319 "download/v" version
15320 "/vcflib-" version "-src.tar.gz"))
15321 (sha256
15322 (base32 "14zzrg8hg8cq9cvq2wdvp21j7nmxxkjrbagw2apd2yqv2kyx42lm"))
15323 (patches (search-patches "vcflib-use-shared-libraries.patch"))
15324 (modules '((guix build utils)))
15325 (snippet
15326 `(begin
15327 (substitute* (find-files "." "\\.(h|c)(pp)?$")
15328 (("\"SmithWatermanGotoh.h\"") "<smithwaterman/SmithWatermanGotoh.h>")
15329 (("\"convert.h\"") "<smithwaterman/convert.h>")
15330 (("\"disorder.h\"") "<smithwaterman/disorder.h>")
15331 (("\"tabix.hpp\"") "<tabix.hpp>")
15332 (("\"Fasta.h\"") "<fastahack/Fasta.h>"))
15333 (for-each delete-file-recursively
15334 '("fastahack" "filevercmp" "fsom" "googletest" "intervaltree"
15335 "libVCFH" "multichoose" "smithwaterman" "tabixpp"))
15336 #t))))
15337 (build-system gnu-build-system)
15338 (inputs
15339 `(("htslib" ,htslib)
15340 ("fastahack" ,fastahack)
15341 ("perl" ,perl)
15342 ("python" ,python)
15343 ("smithwaterman" ,smithwaterman)
15344 ("tabixpp" ,tabixpp)
15345 ("xz" ,xz)
15346 ("zlib" ,zlib)))
15347 (native-inputs
15348 `(("pkg-config" ,pkg-config)
15349 ;; Submodules.
15350 ;; This package builds against the .o files so we need to extract the source.
15351 ("filevercmp-src" ,(package-source filevercmp))
15352 ("intervaltree-src" ,(package-source intervaltree))
15353 ("multichoose-src" ,(package-source multichoose))))
15354 (arguments
15355 `(#:tests? #f ; no tests
15356 #:phases
15357 (modify-phases %standard-phases
15358 (add-after 'unpack 'set-flags
15359 (lambda* (#:key outputs #:allow-other-keys)
15360 (substitute* "Makefile"
15361 (("LDFLAGS =")
15362 (string-append "LDFLAGS = -Wl,-rpath="
15363 (assoc-ref outputs "out") "/lib ")))
15364 (substitute* "filevercmp/Makefile"
15365 (("-c") "-c -fPIC"))
15366 #t))
15367 (delete 'configure)
15368 (add-after 'unpack 'unpack-submodule-sources
15369 (lambda* (#:key inputs #:allow-other-keys)
15370 (let ((unpack (lambda (source target)
15371 (mkdir target)
15372 (with-directory-excursion target
15373 (if (file-is-directory? (assoc-ref inputs source))
15374 (copy-recursively (assoc-ref inputs source) ".")
15375 (invoke "tar" "xvf"
15376 (assoc-ref inputs source)
15377 "--strip-components=1"))))))
15378 (and
15379 (unpack "filevercmp-src" "filevercmp")
15380 (unpack "intervaltree-src" "intervaltree")
15381 (unpack "multichoose-src" "multichoose")))))
15382 (replace 'install
15383 (lambda* (#:key outputs #:allow-other-keys)
15384 (let* ((out (assoc-ref outputs "out"))
15385 (bin (string-append out "/bin"))
15386 (lib (string-append out "/lib")))
15387 (for-each (lambda (file)
15388 (install-file file bin))
15389 (find-files "bin" ".*"))
15390 (install-file "libvcflib.so" lib)
15391 (install-file "libvcflib.a" lib)
15392 (for-each
15393 (lambda (file)
15394 (install-file file (string-append out "/include")))
15395 (find-files "include" "\\.h(pp)?$"))
15396 (mkdir-p (string-append lib "/pkgconfig"))
15397 (with-output-to-file (string-append lib "/pkgconfig/vcflib.pc")
15398 (lambda _
15399 (format #t "prefix=~a~@
15400 exec_prefix=${prefix}~@
15401 libdir=${exec_prefix}/lib~@
15402 includedir=${prefix}/include~@
15403 ~@
15404 ~@
15405 Name: libvcflib~@
15406 Version: ~a~@
15407 Requires: smithwaterman, fastahack~@
15408 Description: C++ library for parsing and manipulating VCF files~@
15409 Libs: -L${libdir} -lvcflib~@
15410 Cflags: -I${includedir}~%"
15411 out ,version))))
15412 #t)))))
15413 (home-page "https://github.com/vcflib/vcflib/")
15414 (synopsis "Library for parsing and manipulating VCF files")
15415 (description "Vcflib provides methods to manipulate and interpret
15416 sequence variation as it can be described by VCF. It is both an API for parsing
15417 and operating on records of genomic variation as it can be described by the VCF
15418 format, and a collection of command-line utilities for executing complex
15419 manipulations on VCF files.")
15420 (license license:expat)))
15421
15422 (define-public freebayes
15423 (let ((commit "3ce827d8ebf89bb3bdc097ee0fe7f46f9f30d5fb")
15424 (revision "1")
15425 (version "1.0.2"))
15426 (package
15427 (name "freebayes")
15428 (version (git-version version revision commit))
15429 (source (origin
15430 (method git-fetch)
15431 (uri (git-reference
15432 (url "https://github.com/ekg/freebayes")
15433 (commit commit)))
15434 (file-name (git-file-name name version))
15435 (sha256
15436 (base32 "1sbzwmcbn78ybymjnhwk7qc5r912azy5vqz2y7y81616yc3ba2a2"))))
15437 (build-system gnu-build-system)
15438 (inputs
15439 `(("bamtools" ,bamtools)
15440 ("htslib" ,htslib)
15441 ("zlib" ,zlib)))
15442 (native-inputs
15443 `(("bc" ,bc) ; Needed for running tests.
15444 ("samtools" ,samtools) ; Needed for running tests.
15445 ("parallel" ,parallel) ; Needed for running tests.
15446 ("perl" ,perl) ; Needed for running tests.
15447 ("procps" ,procps) ; Needed for running tests.
15448 ("python" ,python-2) ; Needed for running tests.
15449 ("vcflib-src" ,(package-source vcflib))
15450 ;; These are submodules for the vcflib version used in freebayes.
15451 ;; This package builds against the .o files so we need to extract the source.
15452 ("tabixpp-src" ,(package-source tabixpp))
15453 ("smithwaterman-src" ,(package-source smithwaterman))
15454 ("multichoose-src" ,(package-source multichoose))
15455 ("fsom-src" ,(package-source fsom))
15456 ("filevercmp-src" ,(package-source filevercmp))
15457 ("fastahack-src" ,(package-source fastahack))
15458 ("intervaltree-src" ,(package-source intervaltree))
15459 ;; These submodules are needed to run the tests.
15460 ("bash-tap-src" ,(package-source bash-tap))
15461 ("test-simple-bash-src"
15462 ,(origin
15463 (method git-fetch)
15464 (uri (git-reference
15465 (url "https://github.com/ingydotnet/test-simple-bash/")
15466 (commit "124673ff204b01c8e96b7fc9f9b32ee35d898acc")))
15467 (file-name "test-simple-bash-src-checkout")
15468 (sha256
15469 (base32 "043plp6z0x9yf7mdpky1fw7zcpwn1p47px95w9mh16603zqqqpga"))))))
15470 (arguments
15471 `(#:make-flags
15472 (list "CC=gcc"
15473 (string-append "BAMTOOLS_ROOT="
15474 (assoc-ref %build-inputs "bamtools")))
15475 #:test-target "test"
15476 #:phases
15477 (modify-phases %standard-phases
15478 (delete 'configure)
15479 (add-after 'unpack 'fix-tests
15480 (lambda _
15481 (substitute* "test/t/01_call_variants.t"
15482 (("grep -P \"\\(\\\\t500\\$\\|\\\\t11000\\$\\|\\\\t1000\\$\\)\"")
15483 "grep -E ' (500|11000|1000)$'"))
15484 #t))
15485 (add-after 'unpack 'unpack-submodule-sources
15486 (lambda* (#:key inputs #:allow-other-keys)
15487 (let ((unpack (lambda (source target)
15488 (with-directory-excursion target
15489 (if (file-is-directory? (assoc-ref inputs source))
15490 (copy-recursively (assoc-ref inputs source) ".")
15491 (invoke "tar" "xvf"
15492 (assoc-ref inputs source)
15493 "--strip-components=1"))))))
15494 (and
15495 (unpack "vcflib-src" "vcflib")
15496 (unpack "fastahack-src" "vcflib/fastahack")
15497 (unpack "filevercmp-src" "vcflib/filevercmp")
15498 (unpack "fsom-src" "vcflib/fsom")
15499 (unpack "intervaltree-src" "vcflib/intervaltree")
15500 (unpack "multichoose-src" "vcflib/multichoose")
15501 (unpack "smithwaterman-src" "vcflib/smithwaterman")
15502 (unpack "tabixpp-src" "vcflib/tabixpp")
15503 (unpack "test-simple-bash-src" "test/test-simple-bash")
15504 (unpack "bash-tap-src" "test/bash-tap")))))
15505 (add-after 'unpack-submodule-sources 'fix-makefiles
15506 (lambda _
15507 ;; We don't have the .git folder to get the version tag from.
15508 (substitute* "vcflib/Makefile"
15509 (("^GIT_VERSION.*")
15510 (string-append "GIT_VERSION = v" ,version)))
15511 (substitute* "src/Makefile"
15512 (("-I\\$\\(BAMTOOLS_ROOT\\)/src")
15513 "-I$(BAMTOOLS_ROOT)/include/bamtools"))
15514 #t))
15515 (add-before 'build 'build-tabixpp-and-vcflib
15516 (lambda* (#:key inputs make-flags #:allow-other-keys)
15517 (with-directory-excursion "vcflib"
15518 (with-directory-excursion "tabixpp"
15519 (apply invoke "make"
15520 (string-append "HTS_LIB="
15521 (assoc-ref inputs "htslib")
15522 "/lib/libhts.a")
15523 make-flags))
15524 (apply invoke "make"
15525 (string-append "CFLAGS=-Itabixpp")
15526 "all"
15527 make-flags))))
15528 (replace 'install
15529 (lambda* (#:key outputs #:allow-other-keys)
15530 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
15531 (install-file "bin/freebayes" bin)
15532 (install-file "bin/bamleftalign" bin))
15533 #t)))))
15534 (home-page "https://github.com/ekg/freebayes")
15535 (synopsis "Haplotype-based variant detector")
15536 (description "FreeBayes is a Bayesian genetic variant detector designed to
15537 find small polymorphisms, specifically SNPs (single-nucleotide polymorphisms),
15538 indels (insertions and deletions), MNPs (multi-nucleotide polymorphisms), and
15539 complex events (composite insertion and substitution events) smaller than the
15540 length of a short-read sequencing alignment.")
15541 (license license:expat))))
15542
15543 (define-public samblaster
15544 (package
15545 (name "samblaster")
15546 (version "0.1.24")
15547 (source (origin
15548 (method git-fetch)
15549 (uri (git-reference
15550 (url "https://github.com/GregoryFaust/samblaster")
15551 (commit (string-append "v." version))))
15552 (file-name (git-file-name name version))
15553 (sha256
15554 (base32
15555 "0iv2ddfw8363vb2x8gr3p8g88whb6mb9m0pf71i2cqsbv6jghap7"))))
15556 (build-system gnu-build-system)
15557 (arguments
15558 `(#:tests? #f ; there are none
15559 #:phases
15560 (modify-phases %standard-phases
15561 (delete 'configure) ; There is no configure phase.
15562 (replace 'install
15563 (lambda* (#:key outputs #:allow-other-keys)
15564 (install-file "samblaster"
15565 (string-append (assoc-ref outputs "out") "/bin"))
15566 #t)))))
15567 (home-page "https://github.com/GregoryFaust/samblaster")
15568 (synopsis "Mark duplicates in paired-end SAM files")
15569 (description "Samblaster is a fast and flexible program for marking
15570 duplicates in read-id grouped paired-end SAM files. It can also optionally
15571 output discordant read pairs and/or split read mappings to separate SAM files,
15572 and/or unmapped/clipped reads to a separate FASTQ file. When marking
15573 duplicates, samblaster will require approximately 20MB of memory per 1M read
15574 pairs.")
15575 (license license:expat)))
15576
15577 (define-public r-velocyto
15578 (let ((commit "d7790346cb99f49ab9c2b23ba70dcf9d2c9fc350")
15579 (revision "1"))
15580 (package
15581 (name "r-velocyto")
15582 (version (git-version "0.6" revision commit))
15583 (source
15584 (origin
15585 (method git-fetch)
15586 (uri (git-reference
15587 (url "https://github.com/velocyto-team/velocyto.R")
15588 (commit commit)))
15589 (file-name (git-file-name name version))
15590 (sha256
15591 (base32
15592 "16wqf70j7rd7pay2q513iyz12i8n9vrpg1bisah4lddbcpx5dz1n"))))
15593 (build-system r-build-system)
15594 (inputs
15595 `(("boost" ,boost)))
15596 (propagated-inputs
15597 `(("r-hdf5r" ,r-hdf5r)
15598 ("r-mass" ,r-mass)
15599 ("r-mgcv" ,r-mgcv)
15600 ("r-pcamethods" ,r-pcamethods)
15601 ("r-rcpp" ,r-rcpp)
15602 ("r-rcpparmadillo" ,r-rcpparmadillo)
15603 ;; Suggested packages
15604 ("r-rtsne" ,r-rtsne)
15605 ("r-cluster" ,r-cluster)
15606 ("r-abind" ,r-abind)
15607 ("r-h5" ,r-h5)
15608 ("r-biocgenerics" ,r-biocgenerics)
15609 ("r-genomicalignments" ,r-genomicalignments)
15610 ("r-rsamtools" ,r-rsamtools)
15611 ("r-edger" ,r-edger)
15612 ("r-igraph" ,r-igraph)))
15613 (home-page "https://velocyto.org")
15614 (synopsis "RNA velocity estimation in R")
15615 (description
15616 "This package provides basic routines for estimation of gene-specific
15617 transcriptional derivatives and visualization of the resulting velocity
15618 patterns.")
15619 (license license:gpl3))))
15620
15621 (define-public methyldackel
15622 (package
15623 (name "methyldackel")
15624 (version "0.5.1")
15625 (source (origin
15626 (method git-fetch)
15627 (uri (git-reference
15628 (url "https://github.com/dpryan79/MethylDackel")
15629 (commit version)))
15630 (file-name (git-file-name name version))
15631 (sha256
15632 (base32
15633 "1sfhf2ap75qxpnmy1ifgmxqs18rq8mah9mcgkby73vc6h0sw99ws"))))
15634 (build-system gnu-build-system)
15635 (arguments
15636 `(#:test-target "test"
15637 #:make-flags
15638 (list "CC=gcc"
15639 (string-append "prefix="
15640 (assoc-ref %outputs "out") "/bin/"))
15641 #:phases
15642 (modify-phases %standard-phases
15643 (replace 'configure
15644 (lambda* (#:key outputs #:allow-other-keys)
15645 (substitute* "Makefile"
15646 (("-lhts ") "-lhts -lBigWig ")
15647 (("install MethylDackel \\$\\(prefix\\)" match)
15648 (string-append "install -d $(prefix); " match)))
15649 #t)))))
15650 (inputs
15651 `(("curl" ,curl) ; XXX: needed by libbigwig
15652 ("htslib" ,htslib-1.9)
15653 ("libbigwig" ,libbigwig)
15654 ("zlib" ,zlib)))
15655 ;; Needed for tests
15656 (native-inputs
15657 `(("python" ,python-wrapper)))
15658 (home-page "https://github.com/dpryan79/MethylDackel")
15659 (synopsis "Universal methylation extractor for BS-seq experiments")
15660 (description
15661 "MethylDackel will process a coordinate-sorted and indexed BAM or CRAM
15662 file containing some form of BS-seq alignments and extract per-base
15663 methylation metrics from them. MethylDackel requires an indexed fasta file
15664 containing the reference genome as well.")
15665 ;; See https://github.com/dpryan79/MethylDackel/issues/85
15666 (license license:expat)))
15667
15668 ;; This package bundles PCRE 8.02 and cannot be built with the current
15669 ;; version.
15670 (define-public phast
15671 (package
15672 (name "phast")
15673 (version "1.5")
15674 (source (origin
15675 (method git-fetch)
15676 (uri (git-reference
15677 (url "https://github.com/CshlSiepelLab/phast")
15678 (commit (string-append "v" version))))
15679 (file-name (git-file-name name version))
15680 (sha256
15681 (base32
15682 "10lpbllvny923jjbbyrpxahhd1m5h7sbj9gx7rd123rg10mlidki"))))
15683 (build-system gnu-build-system)
15684 (arguments
15685 `(#:make-flags
15686 (list "CC=gcc"
15687 (string-append "DESTDIR=" (assoc-ref %outputs "out")))
15688 #:phases
15689 (modify-phases %standard-phases
15690 (replace 'configure
15691 (lambda* (#:key inputs outputs #:allow-other-keys)
15692 ;; Fix syntax
15693 (substitute* "test/Makefile"
15694 ((" ") " "))
15695 (substitute* "Makefile"
15696 (("CLAPACKPATH=/usr/lib")
15697 (string-append "CLAPACKPATH="
15698 (assoc-ref inputs "clapack") "/lib")))
15699 ;; Renaming the libraries is not necessary with our version of
15700 ;; CLAPACK.
15701 (substitute* "src/lib/Makefile"
15702 (("ifdef CLAPACKPATH") "ifdef UNNECESSARY"))
15703 (substitute* "src/make-include.mk"
15704 (("-lblaswr") "-lblas")
15705 (("-ltmg") "-ltmglib")
15706 (("liblapack.a") "liblapack.so")
15707 (("libblas.a") "libblas.so")
15708 (("libf2c.a") "libf2c.so"))
15709 (substitute* "src/Makefile"
15710 (("/opt") "/share")
15711 (("/usr/") "/"))
15712 #t))
15713 (replace 'check
15714 (lambda _
15715 (setenv "PATH"
15716 (string-append (getcwd) "/bin:" (getenv "PATH")))
15717 ;; Disable broken test
15718 (substitute* "test/Makefile"
15719 ((".*if.*hmrc_summary" m) (string-append "#" m)))
15720 ;; Only run the msa_view tests because the others fail for
15721 ;; unknown reasons.
15722 (invoke "make" "-C" "test" "msa_view"))))))
15723 (inputs
15724 `(("clapack" ,clapack)))
15725 (native-inputs
15726 `(("perl" ,perl)))
15727 (home-page "http://compgen.cshl.edu/phast/")
15728 (synopsis "Phylogenetic analysis with space/time models")
15729 (description
15730 "Phylogenetic Analysis with Space/Time models (PHAST) is a collection of
15731 command-line programs and supporting libraries for comparative and
15732 evolutionary genomics. Best known as the search engine behind the
15733 Conservation tracks in the University of California, Santa Cruz (UCSC) Genome
15734 Browser, PHAST also includes several tools for phylogenetic modeling,
15735 functional element identification, as well as utilities for manipulating
15736 alignments, trees and genomic annotations.")
15737 (license license:bsd-3)))
15738
15739 (define-public python-gffutils
15740 ;; The latest release is older more than a year than the latest commit
15741 (let ((commit "4034c54600813b1402945e12faa91b3a53162cf1")
15742 (revision "1"))
15743 (package
15744 (name "python-gffutils")
15745 (version (git-version "0.9" revision commit))
15746 (source
15747 (origin
15748 (method git-fetch)
15749 (uri (git-reference
15750 (url "https://github.com/daler/gffutils")
15751 (commit commit)))
15752 (file-name (git-file-name name version))
15753 (sha256
15754 (base32
15755 "1rwafjdnbir5wnk0ap06ww4lra3p5frhy7mfs03rlldgfnwxymsn"))))
15756 (build-system python-build-system)
15757 (arguments
15758 `(#:phases
15759 (modify-phases %standard-phases
15760 (replace 'check
15761 (lambda _
15762 ;; Tests need to access the HOME directory
15763 (setenv "HOME" "/tmp")
15764 (invoke "nosetests" "-a" "!slow")))
15765 (add-after 'unpack 'make-gz-files-writable
15766 (lambda _
15767 (for-each make-file-writable
15768 (find-files "." "\\.gz"))
15769 #t)))))
15770 (propagated-inputs
15771 `(("python-argcomplete" ,python-argcomplete)
15772 ("python-argh" ,python-argh)
15773 ("python-biopython" ,python-biopython)
15774 ("python-pybedtools" ,python-pybedtools)
15775 ("python-pyfaidx" ,python-pyfaidx)
15776 ("python-simplejson" ,python-simplejson)
15777 ("python-six" ,python-six)))
15778 (native-inputs
15779 `(("python-nose" , python-nose)))
15780 (home-page "https://github.com/daler/gffutils")
15781 (synopsis "Tool for manipulation of GFF and GTF files")
15782 (description
15783 "python-gffutils is a Python package for working with and manipulating
15784 the GFF and GTF format files typically used for genomic annotations. The
15785 files are loaded into a SQLite database, allowing much more complex
15786 manipulation of hierarchical features (e.g., genes, transcripts, and exons)
15787 than is possible with plain-text methods alone.")
15788 (license license:expat))))
15789
15790 (define-public libsbml
15791 (package
15792 (name "libsbml")
15793 (version "5.18.0")
15794 (source (origin
15795 (method url-fetch)
15796 (uri (string-append "mirror://sourceforge/sbml/libsbml/"
15797 version "/stable/libSBML-"
15798 version "-core-src.tar.gz"))
15799 (sha256
15800 (base32
15801 "0slkagrk3nfi2qsksv6b1brj6zhx4bj4bkib2sdycvrcd10ql2lh"))))
15802 (build-system cmake-build-system)
15803 (arguments
15804 `(#:test-target "test"
15805 #:configure-flags
15806 (list "-DWITH_CHECK=ON"
15807 (string-append "-DLIBXML_LIBRARY="
15808 (assoc-ref %build-inputs "libxml2")
15809 "/lib/libxml2.so")
15810 (string-append "-DLIBXML_INCLUDE_DIR="
15811 (assoc-ref %build-inputs "libxml2")
15812 "/include/libxml2"))))
15813 (propagated-inputs
15814 `(("libxml2" ,libxml2)))
15815 (native-inputs
15816 `(("check" ,check-0.14)
15817 ("swig" ,swig)))
15818 (home-page "http://sbml.org/Software/libSBML")
15819 (synopsis "Process SBML files and data streams")
15820 (description "LibSBML is a library to help you read, write, manipulate,
15821 translate, and validate SBML files and data streams. The @dfn{Systems Biology
15822 Markup Language} (SBML) is an interchange format for computer models of
15823 biological processes. SBML is useful for models of metabolism, cell
15824 signaling, and more. It continues to be evolved and expanded by an
15825 international community.")
15826 (license license:lgpl2.1+)))
15827
15828 (define-public grocsvs
15829 ;; The last release is out of date and new features have been added.
15830 (let ((commit "ecd956a65093a0b2c41849050e4512d46fecea5d")
15831 (revision "1"))
15832 (package
15833 (name "grocsvs")
15834 (version (git-version "0.2.6.1" revision commit))
15835 (source (origin
15836 (method git-fetch)
15837 (uri (git-reference
15838 (url "https://github.com/grocsvs/grocsvs")
15839 (commit commit)))
15840 (file-name (git-file-name name version))
15841 (sha256
15842 (base32 "14505725gr7qxc17cxxf0k6lzcwmgi64pija4mwf29aw70qn35cc"))
15843 (patches (search-patches "grocsvs-dont-use-admiral.patch"))))
15844 (build-system python-build-system)
15845 (arguments
15846 `(#:tests? #f ; No test suite.
15847 #:python ,python-2)) ; Only python-2 supported.
15848 (inputs
15849 `(("python2-h5py" ,python2-h5py)
15850 ("python2-ipython-cluster-helper" ,python2-ipython-cluster-helper)
15851 ("python2-networkx" ,python2-networkx)
15852 ("python2-psutil" ,python2-psutil)
15853 ("python2-pandas" ,python2-pandas)
15854 ("python2-pybedtools" ,python2-pybedtools)
15855 ("python2-pyfaidx" ,python2-pyfaidx)
15856 ("python2-pygraphviz" ,python2-pygraphviz)
15857 ("python2-pysam" ,python2-pysam)
15858 ("python2-scipy" ,python2-scipy)))
15859 (home-page "https://github.com/grocsvs/grocsvs")
15860 (synopsis "Genome-wide reconstruction of complex structural variants")
15861 (description
15862 "@dfn{Genome-wide Reconstruction of Complex Structural Variants}
15863 (GROC-SVs) is a software pipeline for identifying large-scale structural
15864 variants, performing sequence assembly at the breakpoints, and reconstructing
15865 the complex structural variants using the long-fragment information from the
15866 10x Genomics platform.")
15867 (license license:expat))))