Merge branch 'master' into staging
[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 ;; This is only used for tests.
4169 #:make-flags
4170 (list "-Dsamjdk.intel_deflater_so_path=lib/jni/libIntelDeflater.so")
4171 #:phases
4172 (modify-phases %standard-phases
4173 ;; FIXME: This phase fails.
4174 (delete 'generate-jar-indices)
4175 ;; Do not use bundled ant bzip2.
4176 (add-after 'unpack 'use-ant-bzip
4177 (lambda* (#:key inputs #:allow-other-keys)
4178 (substitute* "build.xml"
4179 (("\\$\\{lib\\}/apache-ant-1.8.2-bzip2.jar")
4180 (string-append (assoc-ref inputs "ant")
4181 "/lib/ant.jar")))
4182 #t))
4183 (add-after 'unpack 'make-test-target-independent
4184 (lambda* (#:key inputs #:allow-other-keys)
4185 (substitute* "build.xml"
4186 (("name=\"test\" depends=\"compile, ")
4187 "name=\"test\" depends=\"compile-tests, ")
4188 (("name=\"compile\" depends=\"compile-src, compile-tests\"")
4189 "name=\"compile\" depends=\"compile-src\""))
4190 #t))
4191 (add-after 'unpack 'fix-deflater-path
4192 (lambda* (#:key outputs #:allow-other-keys)
4193 (substitute* "src/java/net/sf/samtools/Defaults.java"
4194 (("getStringProperty\\(\"intel_deflater_so_path\", null\\)")
4195 (string-append "getStringProperty(\"intel_deflater_so_path\", \""
4196 (assoc-ref outputs "out")
4197 "/lib/jni/libIntelDeflater.so"
4198 "\")")))
4199 #t))
4200 ;; Build the deflater library, because we've previously deleted the
4201 ;; pre-built one. This can only be built with access to the JDK
4202 ;; sources.
4203 (add-after 'build 'build-jni
4204 (lambda* (#:key inputs #:allow-other-keys)
4205 (mkdir-p "lib/jni")
4206 (mkdir-p "jdk-src")
4207 (invoke "tar" "--strip-components=1" "-C" "jdk-src"
4208 "-xf" (assoc-ref inputs "jdk-src"))
4209 (invoke "javah" "-jni"
4210 "-classpath" "classes"
4211 "-d" "lib/"
4212 "net.sf.samtools.util.zip.IntelDeflater")
4213 (with-directory-excursion "src/c/inteldeflater"
4214 (invoke "gcc" "-I../../../lib" "-I."
4215 (string-append "-I" (assoc-ref inputs "jdk")
4216 "/include/linux")
4217 "-I../../../jdk-src/src/share/native/common/"
4218 "-I../../../jdk-src/src/solaris/native/common/"
4219 "-c" "-O3" "-fPIC" "IntelDeflater.c")
4220 (invoke "gcc" "-shared"
4221 "-o" "../../../lib/jni/libIntelDeflater.so"
4222 "IntelDeflater.o" "-lz" "-lstdc++"))
4223 #t))
4224 ;; We can only build everything else after building the JNI library.
4225 (add-after 'build-jni 'build-rest
4226 (lambda* (#:key make-flags #:allow-other-keys)
4227 (apply invoke `("ant" "all" ,@make-flags))
4228 #t))
4229 (add-before 'build 'set-JAVA6_HOME
4230 (lambda _
4231 (setenv "JAVA6_HOME" (getenv "JAVA_HOME"))
4232 #t))
4233 (replace 'install (install-jars "dist"))
4234 (add-after 'install 'install-jni-lib
4235 (lambda* (#:key outputs #:allow-other-keys)
4236 (let ((jni (string-append (assoc-ref outputs "out")
4237 "/lib/jni")))
4238 (mkdir-p jni)
4239 (install-file "lib/jni/libIntelDeflater.so" jni)
4240 #t))))))
4241 (inputs
4242 `(("java-snappy-1" ,java-snappy-1)
4243 ("java-commons-jexl-2" ,java-commons-jexl-2)
4244 ("java-cofoja" ,java-cofoja)
4245 ("ant" ,ant) ; for bzip2 support at runtime
4246 ("zlib" ,zlib)))
4247 (native-inputs
4248 `(("ant-apache-bcel" ,ant-apache-bcel)
4249 ("ant-junit" ,ant-junit)
4250 ("java-testng" ,java-testng)
4251 ("java-commons-bcel" ,java-commons-bcel)
4252 ("java-jcommander" ,java-jcommander)
4253 ("jdk" ,icedtea-8 "jdk")
4254 ("jdk-src" ,(car (assoc-ref (package-native-inputs icedtea-8) "jdk-drop")))))))
4255
4256 (define-public fastqc
4257 (package
4258 (name "fastqc")
4259 (version "0.11.5")
4260 (source
4261 (origin
4262 (method url-fetch)
4263 (uri (string-append "http://www.bioinformatics.babraham.ac.uk/"
4264 "projects/fastqc/fastqc_v"
4265 version "_source.zip"))
4266 (sha256
4267 (base32
4268 "18rrlkhcrxvvvlapch4dpj6xc6mpayzys8qfppybi8jrpgx5cc5f"))))
4269 (build-system ant-build-system)
4270 (arguments
4271 `(#:tests? #f ; there are no tests
4272 #:build-target "build"
4273 #:phases
4274 (modify-phases %standard-phases
4275 (add-after 'unpack 'fix-dependencies
4276 (lambda* (#:key inputs #:allow-other-keys)
4277 (substitute* "build.xml"
4278 (("jbzip2-0.9.jar")
4279 (string-append (assoc-ref inputs "java-jbzip2")
4280 "/share/java/jbzip2.jar"))
4281 (("sam-1.103.jar")
4282 (string-append (assoc-ref inputs "java-picard-1.113")
4283 "/share/java/sam-1.112.jar"))
4284 (("cisd-jhdf5.jar")
4285 (string-append (assoc-ref inputs "java-cisd-jhdf5")
4286 "/share/java/sis-jhdf5.jar")))
4287 #t))
4288 ;; There is no installation target
4289 (replace 'install
4290 (lambda* (#:key inputs outputs #:allow-other-keys)
4291 (let* ((out (assoc-ref outputs "out"))
4292 (bin (string-append out "/bin"))
4293 (share (string-append out "/share/fastqc/"))
4294 (exe (string-append share "/fastqc")))
4295 (for-each mkdir-p (list bin share))
4296 (copy-recursively "bin" share)
4297 (substitute* exe
4298 (("my \\$java_bin = 'java';")
4299 (string-append "my $java_bin = '"
4300 (assoc-ref inputs "java")
4301 "/bin/java';")))
4302 (chmod exe #o555)
4303 (symlink exe (string-append bin "/fastqc"))
4304 #t))))))
4305 (inputs
4306 `(("java" ,icedtea)
4307 ("perl" ,perl) ; needed for the wrapper script
4308 ("java-cisd-jhdf5" ,java-cisd-jhdf5)
4309 ("java-picard-1.113" ,java-picard-1.113)
4310 ("java-jbzip2" ,java-jbzip2)))
4311 (native-inputs
4312 `(("unzip" ,unzip)))
4313 (home-page "https://www.bioinformatics.babraham.ac.uk/projects/fastqc/")
4314 (synopsis "Quality control tool for high throughput sequence data")
4315 (description
4316 "FastQC aims to provide a simple way to do some quality control
4317 checks on raw sequence data coming from high throughput sequencing
4318 pipelines. It provides a modular set of analyses which you can use to
4319 give a quick impression of whether your data has any problems of which
4320 you should be aware before doing any further analysis.
4321
4322 The main functions of FastQC are:
4323
4324 @itemize
4325 @item Import of data from BAM, SAM or FastQ files (any variant);
4326 @item Providing a quick overview to tell you in which areas there may
4327 be problems;
4328 @item Summary graphs and tables to quickly assess your data;
4329 @item Export of results to an HTML based permanent report;
4330 @item Offline operation to allow automated generation of reports
4331 without running the interactive application.
4332 @end itemize\n")
4333 (license license:gpl3+)))
4334
4335 (define-public fastp
4336 (package
4337 (name "fastp")
4338 (version "0.14.1")
4339 (source
4340 (origin
4341 (method git-fetch)
4342 (uri (git-reference
4343 (url "https://github.com/OpenGene/fastp")
4344 (commit (string-append "v" version))))
4345 (file-name (git-file-name name version))
4346 (sha256
4347 (base32
4348 "1r6ms5zbf5rps4rgp4z73nczadl00b5rqylw8f684isfz27dp0xh"))))
4349 (build-system gnu-build-system)
4350 (arguments
4351 `(#:tests? #f ; there are none
4352 #:make-flags
4353 (list (string-append "BINDIR=" (assoc-ref %outputs "out") "/bin"))
4354 #:phases
4355 (modify-phases %standard-phases
4356 (delete 'configure)
4357 (add-before 'install 'create-target-dir
4358 (lambda* (#:key outputs #:allow-other-keys)
4359 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
4360 #t)))))
4361 (inputs
4362 `(("zlib" ,zlib)))
4363 (home-page "https://github.com/OpenGene/fastp/")
4364 (synopsis "All-in-one FastQ preprocessor")
4365 (description
4366 "Fastp is a tool designed to provide fast all-in-one preprocessing for
4367 FastQ files. This tool has multi-threading support to afford high
4368 performance.")
4369 (license license:expat)))
4370
4371 (define-public htslib
4372 (package
4373 (name "htslib")
4374 (version "1.11")
4375 (source (origin
4376 (method url-fetch)
4377 (uri (string-append
4378 "https://github.com/samtools/htslib/releases/download/"
4379 version "/htslib-" version ".tar.bz2"))
4380 (sha256
4381 (base32
4382 "1mrq4mihzx37yqhj3sfz6da6mw49niia808bzsw2gkkgmadxvyng"))))
4383 (build-system gnu-build-system)
4384 ;; Let htslib translate "gs://" and "s3://" to regular https links with
4385 ;; "--enable-gcs" and "--enable-s3". For these options to work, we also
4386 ;; need to set "--enable-libcurl".
4387 (arguments
4388 `(#:configure-flags '("--enable-gcs"
4389 "--enable-libcurl"
4390 "--enable-s3")))
4391 (inputs
4392 `(("curl" ,curl)
4393 ("openssl" ,openssl)))
4394 ;; This is referred to in the pkg-config file as a required library.
4395 (propagated-inputs
4396 `(("zlib" ,zlib)))
4397 (native-inputs
4398 `(("perl" ,perl)))
4399 (home-page "https://www.htslib.org")
4400 (synopsis "C library for reading/writing high-throughput sequencing data")
4401 (description
4402 "HTSlib is a C library for reading/writing high-throughput sequencing
4403 data. It also provides the @command{bgzip}, @command{htsfile}, and
4404 @command{tabix} utilities.")
4405 ;; Files under cram/ are released under the modified BSD license;
4406 ;; the rest is released under the Expat license
4407 (license (list license:expat license:bsd-3))))
4408
4409 (define-public htslib-1.9
4410 (package (inherit htslib)
4411 (name "htslib")
4412 (version "1.9")
4413 (source (origin
4414 (method url-fetch)
4415 (uri (string-append
4416 "https://github.com/samtools/htslib/releases/download/"
4417 version "/htslib-" version ".tar.bz2"))
4418 (sha256
4419 (base32
4420 "16ljv43sc3fxmv63w7b2ff8m1s7h89xhazwmbm1bicz8axq8fjz0"))))))
4421
4422 ;; This package should be removed once no packages rely upon it.
4423 (define htslib-1.3
4424 (package
4425 (inherit htslib)
4426 (version "1.3.1")
4427 (source (origin
4428 (method url-fetch)
4429 (uri (string-append
4430 "https://github.com/samtools/htslib/releases/download/"
4431 version "/htslib-" version ".tar.bz2"))
4432 (sha256
4433 (base32
4434 "1rja282fwdc25ql6izkhdyh8ppw8x2fs0w0js78zgkmqjlikmma9"))))))
4435
4436 (define-public idr
4437 (package
4438 (name "idr")
4439 (version "2.0.3")
4440 (source (origin
4441 (method git-fetch)
4442 (uri (git-reference
4443 (url "https://github.com/nboley/idr")
4444 (commit version)))
4445 (file-name (git-file-name name version))
4446 (sha256
4447 (base32
4448 "04j876h6z444v2q79drxx283d3k5snd72kj895wbalnl42206x9g"))
4449 ;; Delete generated C code.
4450 (snippet
4451 '(begin (delete-file "idr/inv_cdf.c") #t))))
4452 (build-system python-build-system)
4453 ;; There is only one test ("test_inv_cdf.py") and it tests features that
4454 ;; are no longer part of this package. It also asserts False, which
4455 ;; causes the tests to always fail.
4456 (arguments `(#:tests? #f))
4457 (propagated-inputs
4458 `(("python-scipy" ,python-scipy)
4459 ("python-sympy" ,python-sympy)
4460 ("python-numpy" ,python-numpy)
4461 ("python-matplotlib" ,python-matplotlib)))
4462 (native-inputs
4463 `(("python-cython" ,python-cython)))
4464 (home-page "https://github.com/nboley/idr")
4465 (synopsis "Tool to measure the irreproducible discovery rate (IDR)")
4466 (description
4467 "The IDR (Irreproducible Discovery Rate) framework is a unified approach
4468 to measure the reproducibility of findings identified from replicate
4469 experiments and provide highly stable thresholds based on reproducibility.")
4470 (license license:gpl2+)))
4471
4472 (define-public jellyfish
4473 (package
4474 (name "jellyfish")
4475 (version "2.2.10")
4476 (source (origin
4477 (method url-fetch)
4478 (uri (string-append "https://github.com/gmarcais/Jellyfish/"
4479 "releases/download/v" version
4480 "/jellyfish-" version ".tar.gz"))
4481 (sha256
4482 (base32
4483 "1k4pc3fvv6w1km2yph4m5sd78fbxp21d6xyzgmy0gjihzc6mb249"))))
4484 (build-system gnu-build-system)
4485 (outputs '("out" ;for library
4486 "ruby" ;for Ruby bindings
4487 "python")) ;for Python bindings
4488 (arguments
4489 `(#:configure-flags
4490 (list (string-append "--enable-ruby-binding="
4491 (assoc-ref %outputs "ruby"))
4492 (string-append "--enable-python-binding="
4493 (assoc-ref %outputs "python")))
4494 #:phases
4495 (modify-phases %standard-phases
4496 (add-before 'check 'set-SHELL-variable
4497 (lambda _
4498 ;; generator_manager.hpp either uses /bin/sh or $SHELL
4499 ;; to run tests.
4500 (setenv "SHELL" (which "bash"))
4501 #t)))))
4502 (native-inputs
4503 `(("bc" ,bc)
4504 ("time" ,time)
4505 ("ruby" ,ruby)
4506 ("python" ,python-2)
4507 ("pkg-config" ,pkg-config)))
4508 (inputs
4509 `(("htslib" ,htslib)))
4510 (synopsis "Tool for fast counting of k-mers in DNA")
4511 (description
4512 "Jellyfish is a tool for fast, memory-efficient counting of k-mers in
4513 DNA. A k-mer is a substring of length k, and counting the occurrences of all
4514 such substrings is a central step in many analyses of DNA sequence. Jellyfish
4515 is a command-line program that reads FASTA and multi-FASTA files containing
4516 DNA sequences. It outputs its k-mer counts in a binary format, which can be
4517 translated into a human-readable text format using the @code{jellyfish dump}
4518 command, or queried for specific k-mers with @code{jellyfish query}.")
4519 (home-page "http://www.genome.umd.edu/jellyfish.html")
4520 ;; JELLYFISH seems to be 64-bit only.
4521 (supported-systems '("x86_64-linux" "aarch64-linux" "mips64el-linux"))
4522 ;; The combined work is published under the GPLv3 or later. Individual
4523 ;; files such as lib/jsoncpp.cpp are released under the Expat license.
4524 (license (list license:gpl3+ license:expat))))
4525
4526 (define-public khmer
4527 (package
4528 (name "khmer")
4529 (version "3.0.0a3")
4530 (source
4531 (origin
4532 (method git-fetch)
4533 (uri (git-reference
4534 (url "https://github.com/dib-lab/khmer")
4535 (commit (string-append "v" version))))
4536 (file-name (git-file-name name version))
4537 (sha256
4538 (base32
4539 "01l4jczglkl7yfhgvzx8j0df7k54bk1r8sli9ll16i1mis0d8f37"))
4540 (modules '((guix build utils)))
4541 (snippet
4542 '(begin
4543 ;; Delete bundled libraries. We do not replace the bundled seqan
4544 ;; as it is a modified subset of the old version 1.4.1.
4545 ;;
4546 ;; We do not replace the bundled MurmurHash as the canonical
4547 ;; repository for this code 'SMHasher' is unsuitable for providing
4548 ;; a library. See
4549 ;; https://lists.gnu.org/archive/html/guix-devel/2016-06/msg00977.html
4550 (delete-file-recursively "third-party/zlib")
4551 (delete-file-recursively "third-party/bzip2")
4552 (delete-file-recursively "third-party/seqan")
4553 (substitute* "setup.cfg"
4554 (("# libraries = z,bz2")
4555 "libraries = z,bz2")
4556 (("include:third-party/zlib:third-party/bzip2")
4557 "include:"))
4558 #t))))
4559 (build-system python-build-system)
4560 (arguments
4561 `(#:phases
4562 (modify-phases %standard-phases
4563 (add-after 'unpack 'set-cc
4564 (lambda _ (setenv "CC" "gcc") #t))
4565
4566 (add-before 'reset-gzip-timestamps 'make-files-writable
4567 (lambda* (#:key outputs #:allow-other-keys)
4568 ;; Make sure .gz files are writable so that the
4569 ;; 'reset-gzip-timestamps' phase can do its work.
4570 (let ((out (assoc-ref outputs "out")))
4571 (for-each make-file-writable
4572 (find-files out "\\.gz$"))
4573 #t))))))
4574 (native-inputs
4575 `(("python-cython" ,python-cython)
4576 ("python-pytest" ,python-pytest)
4577 ("python-pytest-runner" ,python-pytest-runner)))
4578 (inputs
4579 `(("zlib" ,zlib)
4580 ("bzip2" ,bzip2)
4581 ("seqan" ,seqan-1)
4582 ("python-screed" ,python-screed)
4583 ("python-bz2file" ,python-bz2file)))
4584 (home-page "https://khmer.readthedocs.org/")
4585 (synopsis "K-mer counting, filtering and graph traversal library")
4586 (description "The khmer software is a set of command-line tools for
4587 working with DNA shotgun sequencing data from genomes, transcriptomes,
4588 metagenomes and single cells. Khmer can make de novo assemblies faster, and
4589 sometimes better. Khmer can also identify and fix problems with shotgun
4590 data.")
4591 ;; When building on i686, armhf and mips64el, we get the following error:
4592 ;; error: ['khmer', 'khmer.tests', 'oxli'] require 64-bit operating system
4593 (supported-systems '("x86_64-linux" "aarch64-linux"))
4594 (license license:bsd-3)))
4595
4596 (define-public kaiju
4597 (package
4598 (name "kaiju")
4599 (version "1.6.3")
4600 (source (origin
4601 (method git-fetch)
4602 (uri (git-reference
4603 (url "https://github.com/bioinformatics-centre/kaiju")
4604 (commit (string-append "v" version))))
4605 (file-name (git-file-name name version))
4606 (sha256
4607 (base32
4608 "119pzi0ddzv9mjg4wwa6han0cwr3k3ssn7kirvsjfcq05mi5ka0x"))))
4609 (build-system gnu-build-system)
4610 (arguments
4611 `(#:tests? #f ; There are no tests.
4612 #:phases
4613 (modify-phases %standard-phases
4614 (delete 'configure)
4615 (add-before 'build 'move-to-src-dir
4616 (lambda _ (chdir "src") #t))
4617 (replace 'install
4618 (lambda* (#:key inputs outputs #:allow-other-keys)
4619 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
4620 (mkdir-p bin)
4621 (chdir "..")
4622 (copy-recursively "bin" bin))
4623 #t)))))
4624 (inputs
4625 `(("perl" ,perl)
4626 ("zlib" ,zlib)))
4627 (home-page "http://kaiju.binf.ku.dk/")
4628 (synopsis "Fast and sensitive taxonomic classification for metagenomics")
4629 (description "Kaiju is a program for sensitive taxonomic classification
4630 of high-throughput sequencing reads from metagenomic whole genome sequencing
4631 experiments.")
4632 (license license:gpl3+)))
4633
4634 (define-public macs
4635 (package
4636 (name "macs")
4637 (version "2.2.6")
4638 (source (origin
4639 ;; The PyPi tarball does not contain tests.
4640 (method git-fetch)
4641 (uri (git-reference
4642 (url "https://github.com/macs3-project/MACS")
4643 (commit (string-append "v" version))))
4644 (file-name (git-file-name name version))
4645 (sha256
4646 (base32
4647 "1c5gxr0mk6hkd4vclf0k00wvyvzw2vrmk52c85338p7aqjwg6n15"))
4648 (modules '((guix build utils)))
4649 ;; Remove files generated by Cython
4650 (snippet
4651 '(begin
4652 (for-each (lambda (file)
4653 (let ((generated-file
4654 (string-append (string-drop-right file 3) "c")))
4655 (when (file-exists? generated-file)
4656 (delete-file generated-file))))
4657 (find-files "." "\\.pyx$"))
4658 (delete-file "MACS2/IO/CallPeakUnitPrecompiled.c")
4659 #t))))
4660 (build-system python-build-system)
4661 (arguments
4662 `(#:phases
4663 (modify-phases %standard-phases
4664 (replace 'check
4665 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
4666 (when tests?
4667 (add-installed-pythonpath inputs outputs)
4668 (invoke "pytest" "-v"))
4669 #t)))))
4670 (inputs
4671 `(("python-numpy" ,python-numpy)))
4672 (native-inputs
4673 `(("python-cython" ,python-cython)
4674 ("python-pytest" ,python-pytest)))
4675 (home-page "https://github.com/macs3-project/MACS")
4676 (synopsis "Model based analysis for ChIP-Seq data")
4677 (description
4678 "MACS is an implementation of a ChIP-Seq analysis algorithm for
4679 identifying transcript factor binding sites named Model-based Analysis of
4680 ChIP-Seq (MACS). MACS captures the influence of genome complexity to evaluate
4681 the significance of enriched ChIP regions and it improves the spatial
4682 resolution of binding sites through combining the information of both
4683 sequencing tag position and orientation.")
4684 (license license:bsd-3)))
4685
4686 (define-public mafft
4687 (package
4688 (name "mafft")
4689 (version "7.471")
4690 (source (origin
4691 (method url-fetch)
4692 (uri (string-append
4693 "https://mafft.cbrc.jp/alignment/software/mafft-" version
4694 "-without-extensions-src.tgz"))
4695 (file-name (string-append name "-" version ".tgz"))
4696 (sha256
4697 (base32
4698 "0r1973fx2scq4712zdqfy67wkzqj0c0bhrdy4jxhvq40mdxyry30"))))
4699 (build-system gnu-build-system)
4700 (arguments
4701 `(#:tests? #f ; no automated tests, though there are tests in the read me
4702 #:make-flags (let ((out (assoc-ref %outputs "out")))
4703 (list (string-append "PREFIX=" out)
4704 (string-append "BINDIR="
4705 (string-append out "/bin"))))
4706 #:phases
4707 (modify-phases %standard-phases
4708 (add-after 'unpack 'enter-dir
4709 (lambda _ (chdir "core") #t))
4710 (add-after 'enter-dir 'patch-makefile
4711 (lambda _
4712 ;; on advice from the MAFFT authors, there is no need to
4713 ;; distribute mafft-profile, mafft-distance, or
4714 ;; mafft-homologs.rb as they are too "specialised".
4715 (substitute* "Makefile"
4716 ;; remove mafft-homologs.rb from SCRIPTS
4717 (("^SCRIPTS = mafft mafft-homologs.rb")
4718 "SCRIPTS = mafft")
4719 ;; remove mafft-homologs from MANPAGES
4720 (("^MANPAGES = mafft.1 mafft-homologs.1")
4721 "MANPAGES = mafft.1")
4722 ;; remove mafft-distance from PROGS
4723 (("^PROGS = dvtditr dndfast7 dndblast sextet5 mafft-distance")
4724 "PROGS = dvtditr dndfast7 dndblast sextet5")
4725 ;; remove mafft-profile from PROGS
4726 (("splittbfast disttbfast tbfast mafft-profile 2cl mccaskillwrap")
4727 "splittbfast disttbfast tbfast f2cl mccaskillwrap")
4728 (("^rm -f mafft-profile mafft-profile.exe") "#")
4729 (("^rm -f mafft-distance mafft-distance.exe") ")#")
4730 ;; do not install MAN pages in libexec folder
4731 (("^\t\\$\\(INSTALL\\) -m 644 \\$\\(MANPAGES\\) \
4732 \\$\\(DESTDIR\\)\\$\\(LIBDIR\\)") "#"))
4733 #t))
4734 (add-after 'enter-dir 'patch-paths
4735 (lambda* (#:key inputs #:allow-other-keys)
4736 (substitute* '("pairash.c"
4737 "mafft.tmpl")
4738 (("perl") (which "perl"))
4739 (("([\"`| ])awk" _ prefix)
4740 (string-append prefix (which "awk")))
4741 (("grep") (which "grep")))
4742 #t))
4743 (delete 'configure)
4744 (add-after 'install 'wrap-programs
4745 (lambda* (#:key outputs #:allow-other-keys)
4746 (let* ((out (assoc-ref outputs "out"))
4747 (bin (string-append out "/bin"))
4748 (path (string-append
4749 (assoc-ref %build-inputs "coreutils") "/bin:")))
4750 (for-each (lambda (file)
4751 (wrap-program file
4752 `("PATH" ":" prefix (,path))))
4753 (find-files bin)))
4754 #t)))))
4755 (inputs
4756 `(("perl" ,perl)
4757 ("ruby" ,ruby)
4758 ("gawk" ,gawk)
4759 ("grep" ,grep)
4760 ("coreutils" ,coreutils)))
4761 (home-page "https://mafft.cbrc.jp/alignment/software/")
4762 (synopsis "Multiple sequence alignment program")
4763 (description
4764 "MAFFT offers a range of multiple alignment methods for nucleotide and
4765 protein sequences. For instance, it offers L-INS-i (accurate; for alignment
4766 of <~200 sequences) and FFT-NS-2 (fast; for alignment of <~30,000
4767 sequences).")
4768 (license (license:non-copyleft
4769 "https://mafft.cbrc.jp/alignment/software/license.txt"
4770 "BSD-3 with different formatting"))))
4771
4772 (define-public mash
4773 (package
4774 (name "mash")
4775 (version "2.1")
4776 (source (origin
4777 (method git-fetch)
4778 (uri (git-reference
4779 (url "https://github.com/marbl/mash")
4780 (commit (string-append "v" version))))
4781 (file-name (git-file-name name version))
4782 (sha256
4783 (base32
4784 "049hwcc059p2fd9vwndn63laifvvsi0wmv84i6y1fr79k15dxwy6"))
4785 (modules '((guix build utils)))
4786 (snippet
4787 '(begin
4788 ;; Delete bundled kseq.
4789 ;; TODO: Also delete bundled murmurhash and open bloom filter.
4790 (delete-file "src/mash/kseq.h")
4791 #t))))
4792 (build-system gnu-build-system)
4793 (arguments
4794 `(#:tests? #f ; No tests.
4795 #:configure-flags
4796 (list
4797 (string-append "--with-capnp=" (assoc-ref %build-inputs "capnproto"))
4798 (string-append "--with-gsl=" (assoc-ref %build-inputs "gsl")))
4799 #:make-flags (list "CC=gcc")
4800 #:phases
4801 (modify-phases %standard-phases
4802 (add-after 'unpack 'fix-includes
4803 (lambda _
4804 (substitute* '("src/mash/Sketch.cpp"
4805 "src/mash/CommandFind.cpp"
4806 "src/mash/CommandScreen.cpp")
4807 (("^#include \"kseq\\.h\"")
4808 "#include \"htslib/kseq.h\""))
4809 #t))
4810 (add-after 'fix-includes 'use-c++14
4811 (lambda _
4812 ;; capnproto 0.7 requires c++14 to build
4813 (substitute* "configure.ac"
4814 (("c\\+\\+11") "c++14"))
4815 (substitute* "Makefile.in"
4816 (("c\\+\\+11") "c++14"))
4817 #t)))))
4818 (native-inputs
4819 `(("autoconf" ,autoconf)
4820 ;; Capnproto and htslib are statically embedded in the final
4821 ;; application. Therefore we also list their licenses, below.
4822 ("capnproto" ,capnproto)
4823 ("htslib" ,htslib)))
4824 (inputs
4825 `(("gsl" ,gsl)
4826 ("zlib" ,zlib)))
4827 (supported-systems '("x86_64-linux"))
4828 (home-page "https://mash.readthedocs.io")
4829 (synopsis "Fast genome and metagenome distance estimation using MinHash")
4830 (description "Mash is a fast sequence distance estimator that uses the
4831 MinHash algorithm and is designed to work with genomes and metagenomes in the
4832 form of assemblies or reads.")
4833 (license (list license:bsd-3 ; Mash
4834 license:expat ; HTSlib and capnproto
4835 license:public-domain ; MurmurHash 3
4836 license:cpl1.0)))) ; Open Bloom Filter
4837
4838 (define-public metabat
4839 (package
4840 (name "metabat")
4841 (version "2.12.1")
4842 (source
4843 (origin
4844 (method git-fetch)
4845 (uri (git-reference
4846 (url "https://bitbucket.org/berkeleylab/metabat.git")
4847 (commit (string-append "v" version))))
4848 (file-name (git-file-name name version))
4849 (sha256
4850 (base32
4851 "0hyg2smw1nz69mfvjpk45xyyychmda92c80a0cv7baji84ri4iyn"))
4852 (patches (search-patches "metabat-fix-compilation.patch"))))
4853 (build-system scons-build-system)
4854 (arguments
4855 `(#:scons ,scons-python2
4856 #:scons-flags
4857 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
4858 (string-append "BOOST_ROOT=" (assoc-ref %build-inputs "boost")))
4859 #:tests? #f ;; Tests are run during the build phase.
4860 #:phases
4861 (modify-phases %standard-phases
4862 (add-after 'unpack 'fix-includes
4863 (lambda _
4864 (substitute* "src/BamUtils.h"
4865 (("^#include \"bam/bam\\.h\"")
4866 "#include \"samtools/bam.h\"")
4867 (("^#include \"bam/sam\\.h\"")
4868 "#include \"samtools/sam.h\""))
4869 (substitute* "src/KseqReader.h"
4870 (("^#include \"bam/kseq\\.h\"")
4871 "#include \"htslib/kseq.h\""))
4872 #t))
4873 (add-after 'unpack 'fix-scons
4874 (lambda* (#:key inputs #:allow-other-keys)
4875 (substitute* "SConstruct"
4876 (("^htslib_dir += 'samtools'")
4877 (string-append "htslib_dir = '"
4878 (assoc-ref inputs "htslib")
4879 "'"))
4880 (("^samtools_dir = 'samtools'")
4881 (string-append "samtools_dir = '"
4882 (assoc-ref inputs "samtools")
4883 "'"))
4884 (("^findStaticOrShared\\('bam', hts_lib")
4885 (string-append "findStaticOrShared('bam', '"
4886 (assoc-ref inputs "samtools")
4887 "/lib'"))
4888 ;; Do not distribute README.
4889 (("^env\\.Install\\(idir_prefix, 'README\\.md'\\)") ""))
4890 #t)))))
4891 (inputs
4892 `(("zlib" ,zlib)
4893 ("perl" ,perl)
4894 ("samtools" ,samtools)
4895 ("htslib" ,htslib)
4896 ("boost" ,boost)))
4897 (home-page "https://bitbucket.org/berkeleylab/metabat")
4898 (synopsis
4899 "Reconstruction of single genomes from complex microbial communities")
4900 (description
4901 "Grouping large genomic fragments assembled from shotgun metagenomic
4902 sequences to deconvolute complex microbial communities, or metagenome binning,
4903 enables the study of individual organisms and their interactions. MetaBAT is
4904 an automated metagenome binning software, which integrates empirical
4905 probabilistic distances of genome abundance and tetranucleotide frequency.")
4906 ;; The source code contains inline assembly.
4907 (supported-systems '("x86_64-linux" "i686-linux"))
4908 (license (license:non-copyleft "file://license.txt"
4909 "See license.txt in the distribution."))))
4910
4911 (define-public minced
4912 (package
4913 (name "minced")
4914 (version "0.3.2")
4915 (source (origin
4916 (method git-fetch)
4917 (uri (git-reference
4918 (url "https://github.com/ctSkennerton/minced")
4919 (commit version)))
4920 (file-name (git-file-name name version))
4921 (sha256
4922 (base32
4923 "1f5h9him0gd355cnx7p6pnxpknhckd4g0v62mg8zyhfbx9as25fv"))))
4924 (build-system gnu-build-system)
4925 (arguments
4926 `(#:test-target "test"
4927 #:phases
4928 (modify-phases %standard-phases
4929 (delete 'configure)
4930 (add-before 'check 'fix-test
4931 (lambda _
4932 ;; Fix test for latest version.
4933 (substitute* "t/Aquifex_aeolicus_VF5.expected"
4934 (("minced:0.1.6") "minced:0.2.0"))
4935 #t))
4936 (replace 'install ; No install target.
4937 (lambda* (#:key inputs outputs #:allow-other-keys)
4938 (let* ((out (assoc-ref outputs "out"))
4939 (bin (string-append out "/bin"))
4940 (wrapper (string-append bin "/minced")))
4941 ;; Minced comes with a wrapper script that tries to figure out where
4942 ;; it is located before running the JAR. Since these paths are known
4943 ;; to us, we build our own wrapper to avoid coreutils dependency.
4944 (install-file "minced.jar" bin)
4945 (with-output-to-file wrapper
4946 (lambda _
4947 (display
4948 (string-append
4949 "#!" (assoc-ref inputs "bash") "/bin/sh\n\n"
4950 (assoc-ref inputs "jre") "/bin/java -jar "
4951 bin "/minced.jar \"$@\"\n"))))
4952 (chmod wrapper #o555))
4953 #t)))))
4954 (native-inputs
4955 `(("jdk" ,icedtea "jdk")))
4956 (inputs
4957 `(("bash" ,bash)
4958 ("jre" ,icedtea "out")))
4959 (home-page "https://github.com/ctSkennerton/minced")
4960 (synopsis "Mining CRISPRs in Environmental Datasets")
4961 (description
4962 "MinCED is a program to find Clustered Regularly Interspaced Short
4963 Palindromic Repeats (CRISPRs) in DNA sequences. It can be used for
4964 unassembled metagenomic reads, but is mainly designed for full genomes and
4965 assembled metagenomic sequence.")
4966 (license license:gpl3+)))
4967
4968 (define-public miso
4969 (package
4970 (name "miso")
4971 (version "0.5.4")
4972 (source (origin
4973 (method url-fetch)
4974 (uri (pypi-uri "misopy" version))
4975 (sha256
4976 (base32
4977 "1z3x0vd8ma7pdrnywj7i3kgwl89sdkwrrn62zl7r5calqaq2hyip"))
4978 (modules '((guix build utils)))
4979 (snippet '(begin
4980 (substitute* "setup.py"
4981 ;; Use setuptools, or else the executables are not
4982 ;; installed.
4983 (("distutils.core") "setuptools")
4984 ;; Use "gcc" instead of "cc" for compilation.
4985 (("^defines")
4986 "cc.set_executables(
4987 compiler='gcc',
4988 compiler_so='gcc',
4989 linker_exe='gcc',
4990 linker_so='gcc -shared'); defines"))
4991 #t))))
4992 (build-system python-build-system)
4993 (arguments
4994 `(#:python ,python-2 ; only Python 2 is supported
4995 #:tests? #f)) ; no "test" target
4996 (inputs
4997 `(("samtools" ,samtools)
4998 ("python-numpy" ,python2-numpy)
4999 ("python-pysam" ,python2-pysam)
5000 ("python-scipy" ,python2-scipy)
5001 ("python-matplotlib" ,python2-matplotlib)))
5002 (native-inputs
5003 `(("python-mock" ,python2-mock) ; for tests
5004 ("python-pytz" ,python2-pytz))) ; for tests
5005 (home-page "https://www.genes.mit.edu/burgelab/miso/index.html")
5006 (synopsis "Mixture of Isoforms model for RNA-Seq isoform quantitation")
5007 (description
5008 "MISO (Mixture-of-Isoforms) is a probabilistic framework that quantitates
5009 the expression level of alternatively spliced genes from RNA-Seq data, and
5010 identifies differentially regulated isoforms or exons across samples. By
5011 modeling the generative process by which reads are produced from isoforms in
5012 RNA-Seq, the MISO model uses Bayesian inference to compute the probability
5013 that a read originated from a particular isoform.")
5014 (license license:gpl2)))
5015
5016 (define-public muscle
5017 (package
5018 (name "muscle")
5019 (version "3.8.1551")
5020 (source (origin
5021 (method url-fetch/tarbomb)
5022 (uri (string-append
5023 "http://www.drive5.com/muscle/muscle_src_"
5024 version ".tar.gz"))
5025 (sha256
5026 (base32
5027 "0bj8kj7sdizy3987zx6w7axihk40fk8rn76mpbqqjcnd64i5a367"))))
5028 (build-system gnu-build-system)
5029 (arguments
5030 `(#:make-flags (list "LDLIBS = -lm")
5031 #:phases
5032 (modify-phases %standard-phases
5033 (delete 'configure)
5034 (replace 'check
5035 ;; There are no tests, so just test if it runs.
5036 (lambda _ (invoke "./muscle" "-version") #t))
5037 (replace 'install
5038 (lambda* (#:key outputs #:allow-other-keys)
5039 (let* ((out (assoc-ref outputs "out"))
5040 (bin (string-append out "/bin")))
5041 (install-file "muscle" bin)
5042 #t))))))
5043 (home-page "http://www.drive5.com/muscle")
5044 (synopsis "Multiple sequence alignment program")
5045 (description
5046 "MUSCLE aims to be a fast and accurate multiple sequence alignment
5047 program for nucleotide and protein sequences.")
5048 ;; License information found in 'muscle -h' and usage.cpp.
5049 (license license:public-domain)))
5050
5051 (define-public newick-utils
5052 ;; There are no recent releases so we package from git.
5053 (let ((commit "da121155a977197cab9fbb15953ca1b40b11eb87"))
5054 (package
5055 (name "newick-utils")
5056 (version (string-append "1.6-1." (string-take commit 8)))
5057 (source (origin
5058 (method git-fetch)
5059 (uri (git-reference
5060 (url "https://github.com/tjunier/newick_utils")
5061 (commit commit)))
5062 (file-name (string-append name "-" version "-checkout"))
5063 (sha256
5064 (base32
5065 "1hkw21rq1mwf7xp0rmbb2gqc0i6p11108m69i7mr7xcjl268pxnb"))))
5066 (build-system gnu-build-system)
5067 (inputs
5068 ;; XXX: TODO: Enable Lua and Guile bindings.
5069 ;; https://github.com/tjunier/newick_utils/issues/13
5070 `(("libxml2" ,libxml2)
5071 ("flex" ,flex)
5072 ("bison" ,bison)))
5073 (native-inputs
5074 `(("autoconf" ,autoconf)
5075 ("automake" ,automake)
5076 ("libtool" ,libtool)))
5077 (synopsis "Programs for working with newick format phylogenetic trees")
5078 (description
5079 "Newick-utils is a suite of utilities for processing phylogenetic trees
5080 in Newick format. Functions include re-rooting, extracting subtrees,
5081 trimming, pruning, condensing, drawing (ASCII graphics or SVG).")
5082 (home-page "https://github.com/tjunier/newick_utils")
5083 (license license:bsd-3))))
5084
5085 (define-public orfm
5086 (package
5087 (name "orfm")
5088 (version "0.7.1")
5089 (source (origin
5090 (method url-fetch)
5091 (uri (string-append
5092 "https://github.com/wwood/OrfM/releases/download/v"
5093 version "/orfm-" version ".tar.gz"))
5094 (sha256
5095 (base32
5096 "16iigyr2gd8x0imzkk1dr3k5xsds9bpmwg31ayvjg0f4pir9rwqr"))))
5097 (build-system gnu-build-system)
5098 (inputs `(("zlib" ,zlib)))
5099 (native-inputs
5100 `(("ruby-bio-commandeer" ,ruby-bio-commandeer)
5101 ("ruby-rspec" ,ruby-rspec)
5102 ("ruby" ,ruby)))
5103 (synopsis "Simple and not slow open reading frame (ORF) caller")
5104 (description
5105 "An ORF caller finds stretches of DNA that, when translated, are not
5106 interrupted by stop codons. OrfM finds and prints these ORFs.")
5107 (home-page "https://github.com/wwood/OrfM")
5108 (license license:lgpl3+)))
5109
5110 (define-public python2-pbcore
5111 (package
5112 (name "python2-pbcore")
5113 (version "1.2.10")
5114 (source (origin
5115 (method url-fetch)
5116 (uri (pypi-uri "pbcore" version))
5117 (sha256
5118 (base32
5119 "1kjmv891d6qbpp4shhhvkl02ff4q5xlpnls2513sm2cjcrs52f1i"))))
5120 (build-system python-build-system)
5121 (arguments
5122 `(#:python ,python-2 ;pbcore < 2.0 requires Python 2.7
5123 #:phases (modify-phases %standard-phases
5124 (add-after 'unpack 'remove-sphinx-dependency
5125 (lambda _
5126 ;; Sphinx is only required for documentation tests, which
5127 ;; we do not run; furthermore it depends on python2-sphinx
5128 ;; which is no longer maintained.
5129 (substitute* "requirements-dev.txt"
5130 (("^sphinx") ""))
5131 #t)))))
5132 (propagated-inputs
5133 `(("python-cython" ,python2-cython)
5134 ("python-numpy" ,python2-numpy)
5135 ("python-pysam" ,python2-pysam)
5136 ("python-h5py" ,python2-h5py)))
5137 (native-inputs
5138 `(("python-nose" ,python2-nose)
5139 ("python-pyxb" ,python2-pyxb)))
5140 (home-page "https://pacificbiosciences.github.io/pbcore/")
5141 (synopsis "Library for reading and writing PacBio data files")
5142 (description
5143 "The pbcore package provides Python APIs for interacting with PacBio data
5144 files and writing bioinformatics applications.")
5145 (license license:bsd-3)))
5146
5147 (define-public python2-warpedlmm
5148 (package
5149 (name "python2-warpedlmm")
5150 (version "0.21")
5151 (source
5152 (origin
5153 (method url-fetch)
5154 (uri (pypi-uri "WarpedLMM" version ".zip"))
5155 (sha256
5156 (base32
5157 "1agfz6zqa8nc6cw47yh0s3y14gkpa9wqazwcj7mwwj3ffnw39p3j"))))
5158 (build-system python-build-system)
5159 (arguments
5160 `(#:python ,python-2 ; requires Python 2.7
5161 #:tests? #f ; test data are not included
5162 #:phases
5163 (modify-phases %standard-phases
5164 (add-after 'unpack 'use-weave
5165 (lambda _
5166 (substitute* "warpedlmm/util/linalg.py"
5167 (("from scipy import linalg, weave")
5168 "from scipy import linalg\nimport weave"))
5169 #t)))))
5170 (propagated-inputs
5171 `(("python-scipy" ,python2-scipy)
5172 ("python-numpy" ,python2-numpy)
5173 ("python-matplotlib" ,python2-matplotlib)
5174 ("python-fastlmm" ,python2-fastlmm)
5175 ("python-pandas" ,python2-pandas)
5176 ("python-pysnptools" ,python2-pysnptools)
5177 ("python-weave" ,python2-weave)))
5178 (native-inputs
5179 `(("python-mock" ,python2-mock)
5180 ("python-nose" ,python2-nose)
5181 ("unzip" ,unzip)))
5182 (home-page "https://github.com/PMBio/warpedLMM")
5183 (synopsis "Implementation of warped linear mixed models")
5184 (description
5185 "WarpedLMM is a Python implementation of the warped linear mixed model,
5186 which automatically learns an optimal warping function (or transformation) for
5187 the phenotype as it models the data.")
5188 (license license:asl2.0)))
5189
5190 (define-public pbtranscript-tofu
5191 (let ((commit "8f5467fe6a4472bcfb4226c8720993c8507adfe4"))
5192 (package
5193 (name "pbtranscript-tofu")
5194 (version (string-append "2.2.3." (string-take commit 7)))
5195 (source (origin
5196 (method git-fetch)
5197 (uri (git-reference
5198 (url "https://github.com/PacificBiosciences/cDNA_primer")
5199 (commit commit)))
5200 (file-name (string-append name "-" version "-checkout"))
5201 (sha256
5202 (base32
5203 "1lgnpi35ihay42qx0b6yl3kkgra723i413j33kvs0kvs61h82w0f"))
5204 (modules '((guix build utils)))
5205 (snippet
5206 '(begin
5207 ;; remove bundled Cython sources
5208 (delete-file "pbtranscript-tofu/pbtranscript/Cython-0.20.1.tar.gz")
5209 #t))))
5210 (build-system python-build-system)
5211 (arguments
5212 `(#:python ,python-2
5213 ;; FIXME: Tests fail with "No such file or directory:
5214 ;; pbtools/pbtranscript/modified_bx_intervals/intersection_unique.so"
5215 #:tests? #f
5216 #:phases
5217 (modify-phases %standard-phases
5218 (add-after 'unpack 'enter-directory
5219 (lambda _
5220 (chdir "pbtranscript-tofu/pbtranscript/")
5221 #t))
5222 ;; With setuptools version 18.0 and later this setup.py hack causes
5223 ;; a build error, so we disable it.
5224 (add-after 'enter-directory 'patch-setuppy
5225 (lambda _
5226 (substitute* "setup.py"
5227 (("if 'setuptools.extension' in sys.modules:")
5228 "if False:"))
5229 #t)))))
5230 (inputs
5231 `(("python-numpy" ,python2-numpy)
5232 ("python-bx-python" ,python2-bx-python)
5233 ("python-networkx" ,python2-networkx)
5234 ("python-scipy" ,python2-scipy)
5235 ("python-pbcore" ,python2-pbcore)
5236 ("python-h5py" ,python2-h5py)))
5237 (native-inputs
5238 `(("python-cython" ,python2-cython)
5239 ("python-nose" ,python2-nose)))
5240 (home-page "https://github.com/PacificBiosciences/cDNA_primer")
5241 (synopsis "Analyze transcriptome data generated with the Iso-Seq protocol")
5242 (description
5243 "pbtranscript-tofu contains scripts to analyze transcriptome data
5244 generated using the PacBio Iso-Seq protocol.")
5245 (license license:bsd-3))))
5246
5247 (define-public prank
5248 (package
5249 (name "prank")
5250 (version "170427")
5251 (source (origin
5252 (method url-fetch)
5253 (uri (string-append
5254 "http://wasabiapp.org/download/prank/prank.source."
5255 version ".tgz"))
5256 (sha256
5257 (base32
5258 "0nc8g9c5rkdxcir46s0in9ci1sxwzbjibxrvkksf22ybnplvagk2"))))
5259 (build-system gnu-build-system)
5260 (arguments
5261 `(#:phases
5262 (modify-phases %standard-phases
5263 (add-after 'unpack 'enter-src-dir
5264 (lambda _
5265 (chdir "src")
5266 #t))
5267 (add-after 'unpack 'remove-m64-flag
5268 ;; Prank will build with the correct 'bit-ness' without this flag
5269 ;; and this allows building on 32-bit machines.
5270 (lambda _ (substitute* "src/Makefile"
5271 (("-m64") ""))
5272 #t))
5273 (delete 'configure)
5274 (replace 'install
5275 (lambda* (#:key outputs #:allow-other-keys)
5276 (let* ((out (assoc-ref outputs "out"))
5277 (bin (string-append out "/bin"))
5278 (man (string-append out "/share/man/man1"))
5279 (path (string-append
5280 (assoc-ref %build-inputs "mafft") "/bin:"
5281 (assoc-ref %build-inputs "exonerate") "/bin:"
5282 (assoc-ref %build-inputs "bppsuite") "/bin")))
5283 (install-file "prank" bin)
5284 (wrap-program (string-append bin "/prank")
5285 `("PATH" ":" prefix (,path)))
5286 (install-file "prank.1" man))
5287 #t)))))
5288 (inputs
5289 `(("mafft" ,mafft)
5290 ("exonerate" ,exonerate)
5291 ("bppsuite" ,bppsuite)))
5292 (home-page "http://wasabiapp.org/software/prank/")
5293 (synopsis "Probabilistic multiple sequence alignment program")
5294 (description
5295 "PRANK is a probabilistic multiple sequence alignment program for DNA,
5296 codon and amino-acid sequences. It is based on a novel algorithm that treats
5297 insertions correctly and avoids over-estimation of the number of deletion
5298 events. In addition, PRANK borrows ideas from maximum likelihood methods used
5299 in phylogenetics and correctly takes into account the evolutionary distances
5300 between sequences. Lastly, PRANK allows for defining a potential structure
5301 for sequences to be aligned and then, simultaneously with the alignment,
5302 predicts the locations of structural units in the sequences.")
5303 (license license:gpl2+)))
5304
5305 (define-public proteinortho
5306 (package
5307 (name "proteinortho")
5308 (version "6.0.14")
5309 (source (origin
5310 (method git-fetch)
5311 (uri (git-reference
5312 (url "https://gitlab.com/paulklemm_PHD/proteinortho.git")
5313 (commit (string-append "v" version))))
5314 (file-name (git-file-name name version))
5315 (sha256
5316 (base32
5317 "0pmy617zy2z2w6hjqxjhf3rzikf5n3mpia80ysq8233vfr7wrzff"))
5318 (modules '((guix build utils)))
5319 (snippet
5320 '(begin
5321 ;; remove pre-built scripts
5322 (delete-file-recursively "src/BUILD/")
5323 #t))))
5324 (build-system gnu-build-system)
5325 (arguments
5326 `(#:test-target "test"
5327 #:make-flags '("CC=gcc")
5328 #:phases
5329 (modify-phases %standard-phases
5330 (replace 'configure
5331 ;; There is no configure script, so we modify the Makefile directly.
5332 (lambda* (#:key outputs #:allow-other-keys)
5333 (substitute* "Makefile"
5334 (("INSTALLDIR=.*")
5335 (string-append
5336 "INSTALLDIR=" (assoc-ref outputs "out") "/bin\n")))
5337 #t))
5338 (add-before 'install 'make-install-directory
5339 ;; The install directory is not created during 'make install'.
5340 (lambda* (#:key outputs #:allow-other-keys)
5341 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
5342 #t))
5343 (add-after 'install 'wrap-programs
5344 (lambda* (#:key inputs outputs #:allow-other-keys)
5345 (let ((path (getenv "PATH"))
5346 (out (assoc-ref outputs "out")))
5347 (for-each (lambda (script)
5348 (wrap-script script `("PATH" ":" prefix (,path))))
5349 (cons (string-append out "/bin/proteinortho")
5350 (find-files out "\\.(pl|py)$"))))
5351 #t)))))
5352 (inputs
5353 `(("guile" ,guile-3.0) ; for wrap-script
5354 ("diamond" ,diamond)
5355 ("perl" ,perl)
5356 ("python" ,python-wrapper)
5357 ("blast+" ,blast+)
5358 ("lapack" ,lapack)
5359 ("openblas" ,openblas)))
5360 (native-inputs
5361 `(("which" ,which)))
5362 (home-page "http://www.bioinf.uni-leipzig.de/Software/proteinortho")
5363 (synopsis "Detect orthologous genes across species")
5364 (description
5365 "Proteinortho is a tool to detect orthologous genes across different
5366 species. For doing so, it compares similarities of given gene sequences and
5367 clusters them to find significant groups. The algorithm was designed to handle
5368 large-scale data and can be applied to hundreds of species at once.")
5369 (license license:gpl3+)))
5370
5371 (define-public pyicoteo
5372 (package
5373 (name "pyicoteo")
5374 (version "2.0.7")
5375 (source
5376 (origin
5377 (method git-fetch)
5378 (uri (git-reference
5379 (url "https://bitbucket.org/regulatorygenomicsupf/pyicoteo.git")
5380 (commit (string-append "v" version))))
5381 (file-name (git-file-name name version))
5382 (sha256
5383 (base32
5384 "0hz5g8d25lbjy1wpscr490l0lmyvaix893hhax4fxnh1h9w34w8p"))))
5385 (build-system python-build-system)
5386 (arguments
5387 `(#:python ,python-2 ; does not work with Python 3
5388 #:tests? #f)) ; there are no tests
5389 (inputs
5390 `(("python2-matplotlib" ,python2-matplotlib)))
5391 (home-page "https://bitbucket.org/regulatorygenomicsupf/pyicoteo")
5392 (synopsis "Analyze high-throughput genetic sequencing data")
5393 (description
5394 "Pyicoteo is a suite of tools for the analysis of high-throughput genetic
5395 sequencing data. It works with genomic coordinates. There are currently six
5396 different command-line tools:
5397
5398 @enumerate
5399 @item pyicoregion: for generating exploratory regions automatically;
5400 @item pyicoenrich: for differential enrichment between two conditions;
5401 @item pyicoclip: for calling CLIP-Seq peaks without a control;
5402 @item pyicos: for genomic coordinates manipulation;
5403 @item pyicoller: for peak calling on punctuated ChIP-Seq;
5404 @item pyicount: to count how many reads from N experiment files overlap in a
5405 region file;
5406 @item pyicotrocol: to combine operations from pyicoteo.
5407 @end enumerate\n")
5408 (license license:gpl3+)))
5409
5410 (define-public prodigal
5411 (package
5412 (name "prodigal")
5413 ;; Check for a new home page when updating this package:
5414 ;; https://github.com/hyattpd/Prodigal/issues/36#issuecomment-536617588
5415 (version "2.6.3")
5416 (source (origin
5417 (method git-fetch)
5418 (uri (git-reference
5419 (url "https://github.com/hyattpd/Prodigal")
5420 (commit (string-append "v" version))))
5421 (file-name (git-file-name name version))
5422 (sha256
5423 (base32
5424 "1fs1hqk83qjbjhrvhw6ni75zakx5ki1ayy3v6wwkn3xvahc9hi5s"))))
5425 (build-system gnu-build-system)
5426 (arguments
5427 `(#:tests? #f ; no check target
5428 #:make-flags (list (string-append "INSTALLDIR="
5429 (assoc-ref %outputs "out")
5430 "/bin"))
5431 #:phases
5432 (modify-phases %standard-phases
5433 (delete 'configure))))
5434 (home-page "https://github.com/hyattpd/Prodigal")
5435 (synopsis "Protein-coding gene prediction for Archaea and Bacteria")
5436 (description
5437 "Prodigal runs smoothly on finished genomes, draft genomes, and
5438 metagenomes, providing gene predictions in GFF3, Genbank, or Sequin table
5439 format. It runs quickly, in an unsupervised fashion, handles gaps, handles
5440 partial genes, and identifies translation initiation sites.")
5441 (license license:gpl3+)))
5442
5443 (define-public roary
5444 (package
5445 (name "roary")
5446 (version "3.12.0")
5447 (source
5448 (origin
5449 (method url-fetch)
5450 (uri (string-append
5451 "mirror://cpan/authors/id/A/AJ/AJPAGE/Bio-Roary-"
5452 version ".tar.gz"))
5453 (sha256
5454 (base32
5455 "0qxrds9wx7cfhlkihrp6697kx0flhhxymap9fwan0b3rbdhcnmff"))))
5456 (build-system perl-build-system)
5457 (arguments
5458 `(#:phases
5459 (modify-phases %standard-phases
5460 (delete 'configure)
5461 (delete 'build)
5462 (replace 'check
5463 (lambda _
5464 ;; The tests are not run by default, so we run each test file
5465 ;; directly.
5466 (setenv "PATH" (string-append (getcwd) "/bin" ":"
5467 (getenv "PATH")))
5468 (setenv "PERL5LIB" (string-append (getcwd) "/lib" ":"
5469 (getenv "PERL5LIB")))
5470 (for-each (lambda (file)
5471 (display file)(display "\n")
5472 (invoke "perl" file))
5473 (find-files "t" ".*\\.t$"))
5474 #t))
5475 (replace 'install
5476 ;; There is no 'install' target in the Makefile.
5477 (lambda* (#:key outputs #:allow-other-keys)
5478 (let* ((out (assoc-ref outputs "out"))
5479 (bin (string-append out "/bin"))
5480 (perl (string-append out "/lib/perl5/site_perl"))
5481 (roary-plots "contrib/roary_plots"))
5482 (mkdir-p bin)
5483 (mkdir-p perl)
5484 (copy-recursively "bin" bin)
5485 (copy-recursively "lib" perl)
5486 #t)))
5487 (add-after 'install 'wrap-programs
5488 (lambda* (#:key inputs outputs #:allow-other-keys)
5489 (let* ((out (assoc-ref outputs "out"))
5490 (perl5lib (getenv "PERL5LIB"))
5491 (path (getenv "PATH")))
5492 (for-each (lambda (prog)
5493 (let ((binary (string-append out "/" prog)))
5494 (wrap-program binary
5495 `("PERL5LIB" ":" prefix
5496 (,(string-append perl5lib ":" out
5497 "/lib/perl5/site_perl"))))
5498 (wrap-program binary
5499 `("PATH" ":" prefix
5500 (,(string-append path ":" out "/bin"))))))
5501 (find-files "bin" ".*[^R]$"))
5502 (let ((file
5503 (string-append out "/bin/roary-create_pan_genome_plots.R"))
5504 (r-site-lib (getenv "R_LIBS_SITE"))
5505 (coreutils-path
5506 (string-append (assoc-ref inputs "coreutils") "/bin")))
5507 (wrap-program file
5508 `("R_LIBS_SITE" ":" prefix
5509 (,(string-append r-site-lib ":" out "/site-library/"))))
5510 (wrap-program file
5511 `("PATH" ":" prefix
5512 (,(string-append coreutils-path ":" out "/bin"))))))
5513 #t)))))
5514 (native-inputs
5515 `(("perl-env-path" ,perl-env-path)
5516 ("perl-test-files" ,perl-test-files)
5517 ("perl-test-most" ,perl-test-most)
5518 ("perl-test-output" ,perl-test-output)))
5519 (inputs
5520 `(("perl-array-utils" ,perl-array-utils)
5521 ("bioperl" ,bioperl-minimal)
5522 ("perl-digest-md5-file" ,perl-digest-md5-file)
5523 ("perl-exception-class" ,perl-exception-class)
5524 ("perl-file-find-rule" ,perl-file-find-rule)
5525 ("perl-file-grep" ,perl-file-grep)
5526 ("perl-file-slurper" ,perl-file-slurper)
5527 ("perl-file-which" ,perl-file-which)
5528 ("perl-graph" ,perl-graph)
5529 ("perl-graph-readwrite" ,perl-graph-readwrite)
5530 ("perl-log-log4perl" ,perl-log-log4perl)
5531 ("perl-moose" ,perl-moose)
5532 ("perl-perlio-utf8_strict" ,perl-perlio-utf8_strict)
5533 ("perl-text-csv" ,perl-text-csv)
5534 ("bedtools" ,bedtools)
5535 ("cd-hit" ,cd-hit)
5536 ("blast+" ,blast+)
5537 ("mcl" ,mcl)
5538 ("parallel" ,parallel)
5539 ("prank" ,prank)
5540 ("mafft" ,mafft)
5541 ("fasttree" ,fasttree)
5542 ("grep" ,grep)
5543 ("sed" ,sed)
5544 ("gawk" ,gawk)
5545 ("r-minimal" ,r-minimal)
5546 ("r-ggplot2" ,r-ggplot2)
5547 ("coreutils" ,coreutils)))
5548 (home-page "https://sanger-pathogens.github.io/Roary/")
5549 (synopsis "High speed stand-alone pan genome pipeline")
5550 (description
5551 "Roary is a high speed stand alone pan genome pipeline, which takes
5552 annotated assemblies in GFF3 format (produced by the Prokka program) and
5553 calculates the pan genome. Using a standard desktop PC, it can analyse
5554 datasets with thousands of samples, without compromising the quality of the
5555 results. 128 samples can be analysed in under 1 hour using 1 GB of RAM and a
5556 single processor. Roary is not intended for metagenomics or for comparing
5557 extremely diverse sets of genomes.")
5558 (license license:gpl3)))
5559
5560 (define-public raxml
5561 (package
5562 (name "raxml")
5563 (version "8.2.12")
5564 (source
5565 (origin
5566 (method git-fetch)
5567 (uri (git-reference
5568 (url "https://github.com/stamatak/standard-RAxML")
5569 (commit (string-append "v" version))))
5570 (file-name (git-file-name name version))
5571 (sha256
5572 (base32
5573 "1jqjzhch0rips0vp04prvb8vmc20c5pdmsqn8knadcf91yy859fh"))))
5574 (build-system gnu-build-system)
5575 (arguments
5576 `(#:tests? #f ; There are no tests.
5577 ;; Use 'standard' Makefile rather than SSE or AVX ones.
5578 #:make-flags (list "-f" "Makefile.HYBRID.gcc")
5579 #:phases
5580 (modify-phases %standard-phases
5581 (delete 'configure)
5582 (replace 'install
5583 (lambda* (#:key outputs #:allow-other-keys)
5584 (let* ((out (assoc-ref outputs "out"))
5585 (bin (string-append out "/bin"))
5586 (executable "raxmlHPC-HYBRID"))
5587 (install-file executable bin)
5588 (symlink (string-append bin "/" executable) "raxml"))
5589 #t)))))
5590 (inputs
5591 `(("openmpi" ,openmpi)))
5592 (home-page "https://cme.h-its.org/exelixis/web/software/raxml/index.html")
5593 (synopsis "Randomized Axelerated Maximum Likelihood phylogenetic trees")
5594 (description
5595 "RAxML is a tool for phylogenetic analysis and post-analysis of large
5596 phylogenies.")
5597 ;; The source includes x86 specific code
5598 (supported-systems '("x86_64-linux" "i686-linux"))
5599 (license license:gpl2+)))
5600
5601 (define-public rsem
5602 (package
5603 (name "rsem")
5604 (version "1.3.1")
5605 (source
5606 (origin
5607 (method git-fetch)
5608 (uri (git-reference
5609 (url "https://github.com/deweylab/RSEM")
5610 (commit (string-append "v" version))))
5611 (sha256
5612 (base32 "1jlq11d1p8qp64w75yj8cnbbd1a93viq10pzsbwal7vdn8fg13j1"))
5613 (file-name (git-file-name name version))
5614 (modules '((guix build utils)))
5615 (snippet
5616 '(begin
5617 ;; remove bundled copy of boost and samtools
5618 (delete-file-recursively "boost")
5619 (delete-file-recursively "samtools-1.3")
5620 #t))))
5621 (build-system gnu-build-system)
5622 (arguments
5623 `(#:tests? #f ;no "check" target
5624 #:make-flags
5625 (list (string-append "BOOST="
5626 (assoc-ref %build-inputs "boost")
5627 "/include/")
5628 (string-append "SAMHEADERS="
5629 (assoc-ref %build-inputs "htslib")
5630 "/include/htslib/sam.h")
5631 (string-append "SAMLIBS="
5632 (assoc-ref %build-inputs "htslib")
5633 "/lib/libhts.a"))
5634 #:phases
5635 (modify-phases %standard-phases
5636 ;; No "configure" script.
5637 ;; Do not build bundled samtools library.
5638 (replace 'configure
5639 (lambda _
5640 (substitute* "Makefile"
5641 (("^all : \\$\\(PROGRAMS\\).*") "all: $(PROGRAMS)\n")
5642 (("^\\$\\(SAMLIBS\\).*") ""))
5643 #t))
5644 (replace 'install
5645 (lambda* (#:key outputs #:allow-other-keys)
5646 (let* ((out (string-append (assoc-ref outputs "out")))
5647 (bin (string-append out "/bin/"))
5648 (perl (string-append out "/lib/perl5/site_perl")))
5649 (mkdir-p bin)
5650 (mkdir-p perl)
5651 (for-each (lambda (file)
5652 (install-file file bin))
5653 (find-files "." "rsem-.*"))
5654 (install-file "rsem_perl_utils.pm" perl))
5655 #t))
5656 (add-after 'install 'wrap-program
5657 (lambda* (#:key outputs #:allow-other-keys)
5658 (let ((out (assoc-ref outputs "out")))
5659 (for-each (lambda (prog)
5660 (wrap-program (string-append out "/bin/" prog)
5661 `("PERL5LIB" ":" prefix
5662 (,(string-append out "/lib/perl5/site_perl")))))
5663 '("rsem-calculate-expression"
5664 "rsem-control-fdr"
5665 "rsem-generate-data-matrix"
5666 "rsem-generate-ngvector"
5667 "rsem-plot-transcript-wiggles"
5668 "rsem-prepare-reference"
5669 "rsem-run-ebseq"
5670 "rsem-run-prsem-testing-procedure")))
5671 #t)))))
5672 (inputs
5673 `(("boost" ,boost)
5674 ("r-minimal" ,r-minimal)
5675 ("perl" ,perl)
5676 ("htslib" ,htslib-1.3)
5677 ("zlib" ,zlib)))
5678 (home-page "http://deweylab.biostat.wisc.edu/rsem/")
5679 (synopsis "Estimate gene expression levels from RNA-Seq data")
5680 (description
5681 "RSEM is a software package for estimating gene and isoform expression
5682 levels from RNA-Seq data. The RSEM package provides a user-friendly
5683 interface, supports threads for parallel computation of the EM algorithm,
5684 single-end and paired-end read data, quality scores, variable-length reads and
5685 RSPD estimation. In addition, it provides posterior mean and 95% credibility
5686 interval estimates for expression levels. For visualization, it can generate
5687 BAM and Wiggle files in both transcript-coordinate and genomic-coordinate.")
5688 (license license:gpl3+)))
5689
5690 (define-public rseqc
5691 (package
5692 (name "rseqc")
5693 (version "3.0.1")
5694 (source
5695 (origin
5696 (method url-fetch)
5697 (uri
5698 (string-append "mirror://sourceforge/rseqc/"
5699 "RSeQC-" version ".tar.gz"))
5700 (sha256
5701 (base32
5702 "0gbb9iyb7swiv5455fm5rg98r7l6qn27v564yllqjd574hncpx6m"))))
5703 (build-system python-build-system)
5704 (inputs
5705 `(("python-cython" ,python-cython)
5706 ("python-bx-python" ,python-bx-python)
5707 ("python-pybigwig" ,python-pybigwig)
5708 ("python-pysam" ,python-pysam)
5709 ("python-numpy" ,python-numpy)
5710 ("zlib" ,zlib)))
5711 (native-inputs
5712 `(("python-nose" ,python-nose)))
5713 (home-page "http://rseqc.sourceforge.net/")
5714 (synopsis "RNA-seq quality control package")
5715 (description
5716 "RSeQC provides a number of modules that can comprehensively evaluate
5717 high throughput sequence data, especially RNA-seq data. Some basic modules
5718 inspect sequence quality, nucleotide composition bias, PCR bias and GC bias,
5719 while RNA-seq specific modules evaluate sequencing saturation, mapped reads
5720 distribution, coverage uniformity, strand specificity, etc.")
5721 (license license:gpl3+)))
5722
5723 (define-public seek
5724 ;; There are no release tarballs. According to the installation
5725 ;; instructions at http://seek.princeton.edu/installation.jsp, the latest
5726 ;; stable release is identified by this changeset ID.
5727 (let ((changeset "2329130")
5728 (revision "1"))
5729 (package
5730 (name "seek")
5731 (version (string-append "0-" revision "." changeset))
5732 (source (origin
5733 (method hg-fetch)
5734 (uri (hg-reference
5735 (url "https://bitbucket.org/libsleipnir/sleipnir")
5736 (changeset changeset)))
5737 (file-name (string-append name "-" version "-checkout"))
5738 (sha256
5739 (base32
5740 "0qrvilwh18dpbhkf92qvxbmay0j75ra3jg2wrhz67gf538zzphsx"))))
5741 (build-system gnu-build-system)
5742 (arguments
5743 `(#:modules ((srfi srfi-1)
5744 (guix build gnu-build-system)
5745 (guix build utils))
5746 #:phases
5747 (let ((dirs '("SeekMiner"
5748 "SeekEvaluator"
5749 "SeekPrep"
5750 "Distancer"
5751 "Data2DB"
5752 "PCL2Bin")))
5753 (modify-phases %standard-phases
5754 (replace 'bootstrap
5755 (lambda _
5756 (substitute* "gen_tools_am"
5757 (("/usr/bin/env.*") (which "perl")))
5758 (invoke "bash" "gen_auto")
5759 #t))
5760 (add-after 'build 'build-additional-tools
5761 (lambda* (#:key make-flags #:allow-other-keys)
5762 (for-each (lambda (dir)
5763 (with-directory-excursion (string-append "tools/" dir)
5764 (apply invoke "make" make-flags)))
5765 dirs)
5766 #t))
5767 (add-after 'install 'install-additional-tools
5768 (lambda* (#:key make-flags #:allow-other-keys)
5769 (for-each (lambda (dir)
5770 (with-directory-excursion (string-append "tools/" dir)
5771 (apply invoke `("make" ,@make-flags "install"))))
5772 dirs)
5773 #t))))))
5774 (inputs
5775 `(("gsl" ,gsl)
5776 ("boost" ,boost)
5777 ("libsvm" ,libsvm)
5778 ("readline" ,readline)
5779 ("gengetopt" ,gengetopt)
5780 ("log4cpp" ,log4cpp)))
5781 (native-inputs
5782 `(("autoconf" ,autoconf)
5783 ("automake" ,automake)
5784 ("perl" ,perl)))
5785 (home-page "http://seek.princeton.edu")
5786 (synopsis "Gene co-expression search engine")
5787 (description
5788 "SEEK is a computational gene co-expression search engine. SEEK provides
5789 biologists with a way to navigate the massive human expression compendium that
5790 now contains thousands of expression datasets. SEEK returns a robust ranking
5791 of co-expressed genes in the biological area of interest defined by the user's
5792 query genes. It also prioritizes thousands of expression datasets according
5793 to the user's query of interest.")
5794 (license license:cc-by3.0))))
5795
5796 (define-public samtools
5797 (package
5798 (name "samtools")
5799 (version "1.11")
5800 (source
5801 (origin
5802 (method url-fetch)
5803 (uri
5804 (string-append "mirror://sourceforge/samtools/samtools/"
5805 version "/samtools-" version ".tar.bz2"))
5806 (sha256
5807 (base32
5808 "1dp5wknak4arnw5ghhif9mmljlfnw5bgm91wib7z0j8wdjywx0z2"))
5809 (modules '((guix build utils)))
5810 (snippet '(begin
5811 ;; Delete bundled htslib.
5812 (delete-file-recursively "htslib-1.11")
5813 #t))))
5814 (build-system gnu-build-system)
5815 (arguments
5816 `(#:modules ((ice-9 ftw)
5817 (ice-9 regex)
5818 (guix build gnu-build-system)
5819 (guix build utils))
5820 #:configure-flags (list "--with-ncurses")
5821 #:phases
5822 (modify-phases %standard-phases
5823 (add-after 'unpack 'patch-tests
5824 (lambda _
5825 (substitute* "test/test.pl"
5826 ;; The test script calls out to /bin/bash
5827 (("/bin/bash") (which "bash")))
5828 #t))
5829 (add-after 'install 'install-library
5830 (lambda* (#:key outputs #:allow-other-keys)
5831 (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
5832 (install-file "libbam.a" lib)
5833 #t)))
5834 (add-after 'install 'install-headers
5835 (lambda* (#:key outputs #:allow-other-keys)
5836 (let ((include (string-append (assoc-ref outputs "out")
5837 "/include/samtools/")))
5838 (for-each (lambda (file)
5839 (install-file file include))
5840 (scandir "." (lambda (name) (string-match "\\.h$" name))))
5841 #t))))))
5842 (native-inputs `(("pkg-config" ,pkg-config)))
5843 (inputs
5844 `(("htslib" ,htslib)
5845 ("ncurses" ,ncurses)
5846 ("perl" ,perl)
5847 ("python" ,python)
5848 ("zlib" ,zlib)))
5849 (home-page "http://samtools.sourceforge.net")
5850 (synopsis "Utilities to efficiently manipulate nucleotide sequence alignments")
5851 (description
5852 "Samtools implements various utilities for post-processing nucleotide
5853 sequence alignments in the SAM, BAM, and CRAM formats, including indexing,
5854 variant calling (in conjunction with bcftools), and a simple alignment
5855 viewer.")
5856 (license license:expat)))
5857
5858 (define-public samtools-1.9
5859 (package (inherit samtools)
5860 (name "samtools")
5861 (version "1.9")
5862 (source
5863 (origin
5864 (method url-fetch)
5865 (uri
5866 (string-append "mirror://sourceforge/samtools/samtools/"
5867 version "/samtools-" version ".tar.bz2"))
5868 (sha256
5869 (base32
5870 "10ilqbmm7ri8z431sn90lvbjwizd0hhkf9rcqw8j823hf26nhgq8"))
5871 (modules '((guix build utils)))
5872 (snippet '(begin
5873 ;; Delete bundled htslib.
5874 (delete-file-recursively "htslib-1.9")
5875 #t))))
5876 (inputs
5877 `(("htslib" ,htslib-1.9)
5878 ("ncurses" ,ncurses)
5879 ("perl" ,perl)
5880 ("python" ,python)
5881 ("zlib" ,zlib)))))
5882
5883 (define-public samtools-0.1
5884 ;; This is the most recent version of the 0.1 line of samtools. The input
5885 ;; and output formats differ greatly from that used and produced by samtools
5886 ;; 1.x and is still used in many bioinformatics pipelines.
5887 (package (inherit samtools)
5888 (version "0.1.19")
5889 (source
5890 (origin
5891 (method url-fetch)
5892 (uri
5893 (string-append "mirror://sourceforge/samtools/samtools/"
5894 version "/samtools-" version ".tar.bz2"))
5895 (sha256
5896 (base32 "1m33xsfwz0s8qi45lylagfllqg7fphf4dr0780rsvw75av9wk06h"))))
5897 (arguments
5898 `(#:tests? #f ;no "check" target
5899 #:make-flags
5900 (list "LIBCURSES=-lncurses")
5901 ,@(substitute-keyword-arguments (package-arguments samtools)
5902 ((#:phases phases)
5903 `(modify-phases ,phases
5904 (replace 'install
5905 (lambda* (#:key outputs #:allow-other-keys)
5906 (let ((bin (string-append
5907 (assoc-ref outputs "out") "/bin")))
5908 (mkdir-p bin)
5909 (install-file "samtools" bin)
5910 #t)))
5911 (delete 'patch-tests)
5912 (delete 'configure))))))))
5913
5914 (define-public mosaik
5915 (let ((commit "5c25216d3522d6a33e53875cd76a6d65001e4e67"))
5916 (package
5917 (name "mosaik")
5918 (version "2.2.30")
5919 (source (origin
5920 ;; There are no release tarballs nor tags.
5921 (method git-fetch)
5922 (uri (git-reference
5923 (url "https://github.com/wanpinglee/MOSAIK")
5924 (commit commit)))
5925 (file-name (string-append name "-" version))
5926 (sha256
5927 (base32
5928 "17gj3s07cm77r41z92awh0bim7w7q7fbn0sf5nkqmcm1vw052qgw"))))
5929 (build-system gnu-build-system)
5930 (arguments
5931 `(#:tests? #f ; no tests
5932 #:make-flags (list "CC=gcc")
5933 #:phases
5934 (modify-phases %standard-phases
5935 (replace 'configure
5936 (lambda _ (chdir "src") #t))
5937 (replace 'install
5938 (lambda* (#:key outputs #:allow-other-keys)
5939 (let ((bin (string-append (assoc-ref outputs "out")
5940 "/bin")))
5941 (mkdir-p bin)
5942 (copy-recursively "../bin" bin)
5943 #t))))))
5944 (inputs
5945 `(("perl" ,perl)
5946 ("zlib:static" ,zlib "static")
5947 ("zlib" ,zlib)))
5948 (supported-systems '("x86_64-linux"))
5949 (home-page "https://github.com/wanpinglee/MOSAIK")
5950 (synopsis "Map nucleotide sequence reads to reference genomes")
5951 (description
5952 "MOSAIK is a program for mapping second and third-generation sequencing
5953 reads to a reference genome. MOSAIK can align reads generated by all the
5954 major sequencing technologies, including Illumina, Applied Biosystems SOLiD,
5955 Roche 454, Ion Torrent and Pacific BioSciences SMRT.")
5956 ;; MOSAIK is released under the GPLv2+ with the exception of third-party
5957 ;; code released into the public domain:
5958 ;; 1. fastlz by Ariya Hidayat - http://www.fastlz.org/
5959 ;; 2. MD5 implementation - RSA Data Security, RFC 1321
5960 (license (list license:gpl2+ license:public-domain)))))
5961
5962 (define-public ngs-sdk
5963 (package
5964 (name "ngs-sdk")
5965 (version "2.10.5")
5966 (source (origin
5967 (method git-fetch)
5968 (uri (git-reference
5969 (url "https://github.com/ncbi/ngs")
5970 (commit version)))
5971 (file-name (git-file-name name version))
5972 (sha256
5973 (base32
5974 "1ix51c25hjn57w93qmwzw80xh2i34wx8j2hn7szh8p6w8i3az5qa"))))
5975 (build-system gnu-build-system)
5976 (arguments
5977 `(#:parallel-build? #f ; not supported
5978 #:tests? #f ; no "check" target
5979 #:phases
5980 (modify-phases %standard-phases
5981 (replace 'configure
5982 (lambda* (#:key outputs #:allow-other-keys)
5983 (let ((out (assoc-ref outputs "out")))
5984 ;; Allow 'konfigure.perl' to find 'package.prl'.
5985 (setenv "PERL5LIB"
5986 (string-append ".:" (getenv "PERL5LIB")))
5987
5988 ;; The 'configure' script doesn't recognize things like
5989 ;; '--enable-fast-install'.
5990 (invoke "./configure"
5991 (string-append "--build-prefix=" (getcwd) "/build")
5992 (string-append "--prefix=" out))
5993 #t)))
5994 (add-after 'unpack 'enter-dir
5995 (lambda _ (chdir "ngs-sdk") #t)))))
5996 (native-inputs `(("perl" ,perl)))
5997 ;; According to the test
5998 ;; unless ($MARCH =~ /x86_64/i || $MARCH =~ /i?86/i)
5999 ;; in ngs-sdk/setup/konfigure.perl
6000 (supported-systems '("i686-linux" "x86_64-linux"))
6001 (home-page "https://github.com/ncbi/ngs")
6002 (synopsis "API for accessing Next Generation Sequencing data")
6003 (description
6004 "NGS is a domain-specific API for accessing reads, alignments and pileups
6005 produced from Next Generation Sequencing. The API itself is independent from
6006 any particular back-end implementation, and supports use of multiple back-ends
6007 simultaneously.")
6008 (license license:public-domain)))
6009
6010 (define-public java-ngs
6011 (package (inherit ngs-sdk)
6012 (name "java-ngs")
6013 (arguments
6014 `(,@(substitute-keyword-arguments
6015 `(#:modules ((guix build gnu-build-system)
6016 (guix build utils)
6017 (srfi srfi-1)
6018 (srfi srfi-26))
6019 ,@(package-arguments ngs-sdk))
6020 ((#:phases phases)
6021 `(modify-phases ,phases
6022 (replace 'enter-dir (lambda _ (chdir "ngs-java") #t)))))))
6023 (inputs
6024 `(("jdk" ,icedtea "jdk")
6025 ("ngs-sdk" ,ngs-sdk)))
6026 (synopsis "Java bindings for NGS SDK")))
6027
6028 (define-public ncbi-vdb
6029 (package
6030 (name "ncbi-vdb")
6031 (version "2.10.6")
6032 (source (origin
6033 (method git-fetch)
6034 (uri (git-reference
6035 (url "https://github.com/ncbi/ncbi-vdb")
6036 (commit version)))
6037 (file-name (git-file-name name version))
6038 (sha256
6039 (base32
6040 "0m8hlxscidsfqm9x9fyi62q6lpf1dv5115kgjjgnrkl49q9c27m6"))))
6041 (build-system gnu-build-system)
6042 (arguments
6043 `(#:parallel-build? #f ; not supported
6044 #:tests? #f ; no "check" target
6045 #:make-flags '("HAVE_HDF5=1")
6046 #:phases
6047 (modify-phases %standard-phases
6048 (add-after 'unpack 'make-files-writable
6049 (lambda _ (for-each make-file-writable (find-files "." ".*")) #t))
6050 (add-before 'configure 'set-perl-search-path
6051 (lambda _
6052 ;; Work around "dotless @INC" build failure.
6053 (setenv "PERL5LIB"
6054 (string-append (getcwd) "/setup:"
6055 (getenv "PERL5LIB")))
6056 #t))
6057 ;; See https://github.com/ncbi/ncbi-vdb/issues/14
6058 (add-after 'unpack 'patch-krypto-flags
6059 (lambda _
6060 (substitute* "libs/krypto/Makefile"
6061 (("-Wa,-march=generic64\\+aes") "")
6062 (("-Wa,-march=generic64\\+sse4") ""))
6063 #t))
6064 (replace 'configure
6065 (lambda* (#:key inputs outputs #:allow-other-keys)
6066 (let ((out (assoc-ref outputs "out")))
6067 ;; Override include path for libmagic
6068 (substitute* "setup/package.prl"
6069 (("name => 'magic', Include => '/usr/include'")
6070 (string-append "name=> 'magic', Include => '"
6071 (assoc-ref inputs "libmagic")
6072 "/include" "'")))
6073
6074 ;; Install kdf5 library (needed by sra-tools)
6075 (substitute* "build/Makefile.install"
6076 (("LIBRARIES_TO_INSTALL =")
6077 "LIBRARIES_TO_INSTALL = kdf5.$(VERSION_LIBX) kdf5.$(VERSION_SHLX)"))
6078
6079 (substitute* "build/Makefile.env"
6080 (("CFLAGS =" prefix)
6081 (string-append prefix "-msse2 ")))
6082
6083 ;; Override search path for ngs-java
6084 (substitute* "setup/package.prl"
6085 (("/usr/local/ngs/ngs-java")
6086 (assoc-ref inputs "java-ngs")))
6087
6088 ;; The 'configure' script doesn't recognize things like
6089 ;; '--enable-fast-install'.
6090 (invoke "./configure"
6091 (string-append "--build-prefix=" (getcwd) "/build")
6092 (string-append "--prefix=" (assoc-ref outputs "out"))
6093 (string-append "--debug")
6094 (string-append "--with-xml2-prefix="
6095 (assoc-ref inputs "libxml2"))
6096 (string-append "--with-ngs-sdk-prefix="
6097 (assoc-ref inputs "ngs-sdk"))
6098 (string-append "--with-hdf5-prefix="
6099 (assoc-ref inputs "hdf5")))
6100 #t)))
6101 (add-after 'install 'install-interfaces
6102 (lambda* (#:key outputs #:allow-other-keys)
6103 ;; Install interface libraries. On i686 the interface libraries
6104 ;; are installed to "linux/gcc/i386", so we need to use the Linux
6105 ;; architecture name ("i386") instead of the target system prefix
6106 ;; ("i686").
6107 (mkdir (string-append (assoc-ref outputs "out") "/ilib"))
6108 (copy-recursively (string-append "build/ncbi-vdb/linux/gcc/"
6109 ,(system->linux-architecture
6110 (or (%current-target-system)
6111 (%current-system)))
6112 "/rel/ilib")
6113 (string-append (assoc-ref outputs "out")
6114 "/ilib"))
6115 ;; Install interface headers
6116 (copy-recursively "interfaces"
6117 (string-append (assoc-ref outputs "out")
6118 "/include"))
6119 #t))
6120 ;; These files are needed by sra-tools.
6121 (add-after 'install 'install-configuration-files
6122 (lambda* (#:key outputs #:allow-other-keys)
6123 (let ((target (string-append (assoc-ref outputs "out") "/kfg")))
6124 (mkdir target)
6125 (install-file "libs/kfg/default.kfg" target)
6126 (install-file "libs/kfg/certs.kfg" target))
6127 #t)))))
6128 (inputs
6129 `(("libxml2" ,libxml2)
6130 ("ngs-sdk" ,ngs-sdk)
6131 ("java-ngs" ,java-ngs)
6132 ("libmagic" ,file)
6133 ("hdf5" ,hdf5)))
6134 (native-inputs `(("perl" ,perl)))
6135 ;; NCBI-VDB requires SSE capability.
6136 (supported-systems '("i686-linux" "x86_64-linux"))
6137 (home-page "https://github.com/ncbi/ncbi-vdb")
6138 (synopsis "Database engine for genetic information")
6139 (description
6140 "The NCBI-VDB library implements a highly compressed columnar data
6141 warehousing engine that is most often used to store genetic information.
6142 Databases are stored in a portable image within the file system, and can be
6143 accessed/downloaded on demand across HTTP.")
6144 (license license:public-domain)))
6145
6146 (define-public plink
6147 (package
6148 (name "plink")
6149 (version "1.07")
6150 (source
6151 (origin
6152 (method url-fetch)
6153 (uri (string-append
6154 "http://pngu.mgh.harvard.edu/~purcell/plink/dist/plink-"
6155 version "-src.zip"))
6156 (sha256
6157 (base32 "0as8gxm4pjyc8dxmm1sl873rrd7wn5qs0l29nqfnl31x8i467xaa"))
6158 (patches (search-patches "plink-1.07-unclobber-i.patch"
6159 "plink-endian-detection.patch"))))
6160 (build-system gnu-build-system)
6161 (arguments
6162 '(#:tests? #f ;no "check" target
6163 #:make-flags (list (string-append "LIB_LAPACK="
6164 (assoc-ref %build-inputs "lapack")
6165 "/lib/liblapack.so")
6166 "WITH_LAPACK=1"
6167 "FORCE_DYNAMIC=1"
6168 ;; disable phoning home
6169 "WITH_WEBCHECK=")
6170 #:phases
6171 (modify-phases %standard-phases
6172 ;; no "configure" script
6173 (delete 'configure)
6174 (replace 'install
6175 (lambda* (#:key outputs #:allow-other-keys)
6176 (let ((bin (string-append (assoc-ref outputs "out")
6177 "/bin/")))
6178 (install-file "plink" bin)
6179 #t))))))
6180 (inputs
6181 `(("zlib" ,zlib)
6182 ("lapack" ,lapack)))
6183 (native-inputs
6184 `(("unzip" ,unzip)))
6185 (home-page "http://pngu.mgh.harvard.edu/~purcell/plink/")
6186 (synopsis "Whole genome association analysis toolset")
6187 (description
6188 "PLINK is a whole genome association analysis toolset, designed to
6189 perform a range of basic, large-scale analyses in a computationally efficient
6190 manner. The focus of PLINK is purely on analysis of genotype/phenotype data,
6191 so there is no support for steps prior to this (e.g. study design and
6192 planning, generating genotype or CNV calls from raw data). Through
6193 integration with gPLINK and Haploview, there is some support for the
6194 subsequent visualization, annotation and storage of results.")
6195 ;; Code is released under GPLv2, except for fisher.h, which is under
6196 ;; LGPLv2.1+
6197 (license (list license:gpl2 license:lgpl2.1+))))
6198
6199 (define-public plink-ng
6200 (package (inherit plink)
6201 (name "plink-ng")
6202 (version "1.90b4")
6203 (source
6204 (origin
6205 (method git-fetch)
6206 (uri (git-reference
6207 (url "https://github.com/chrchang/plink-ng")
6208 (commit (string-append "v" version))))
6209 (file-name (git-file-name name version))
6210 (sha256
6211 (base32 "02npdwgkpfkdnhw819rhj5kw02a5k5m90b14zq9zzya4hyg929c0"))))
6212 (build-system gnu-build-system)
6213 (arguments
6214 '(#:tests? #f ;no "check" target
6215 #:make-flags (list "BLASFLAGS=-llapack -lopenblas"
6216 "CFLAGS=-Wall -O2 -DDYNAMIC_ZLIB=1"
6217 "ZLIB=-lz"
6218 "-f" "Makefile.std")
6219 #:phases
6220 (modify-phases %standard-phases
6221 (add-after 'unpack 'chdir
6222 (lambda _ (chdir "1.9") #t))
6223 (delete 'configure) ; no "configure" script
6224 (replace 'install
6225 (lambda* (#:key outputs #:allow-other-keys)
6226 (let ((bin (string-append (assoc-ref outputs "out")
6227 "/bin/")))
6228 (install-file "plink" bin)
6229 #t))))))
6230 (inputs
6231 `(("zlib" ,zlib)
6232 ("lapack" ,lapack)
6233 ("openblas" ,openblas)))
6234 (home-page "https://www.cog-genomics.org/plink/")
6235 (license license:gpl3+)))
6236
6237 (define-public smithlab-cpp
6238 (let ((revision "1")
6239 (commit "728a097bec88c6f4b8528b685932049e660eff2e"))
6240 (package
6241 (name "smithlab-cpp")
6242 (version (string-append "0." revision "." (string-take commit 7)))
6243 (source (origin
6244 (method git-fetch)
6245 (uri (git-reference
6246 (url "https://github.com/smithlabcode/smithlab_cpp")
6247 (commit commit)))
6248 (file-name (string-append name "-" version "-checkout"))
6249 (sha256
6250 (base32
6251 "0d476lmj312xk77kr9fzrv7z1bv96yfyx0w7y62ycmnfbx32ll74"))))
6252 (build-system gnu-build-system)
6253 (arguments
6254 `(#:modules ((guix build gnu-build-system)
6255 (guix build utils)
6256 (srfi srfi-26))
6257 #:tests? #f ;no "check" target
6258 #:phases
6259 (modify-phases %standard-phases
6260 (add-after 'unpack 'use-samtools-headers
6261 (lambda _
6262 (substitute* '("SAM.cpp"
6263 "SAM.hpp")
6264 (("sam.h") "samtools/sam.h"))
6265 #t))
6266 (replace 'install
6267 (lambda* (#:key outputs #:allow-other-keys)
6268 (let* ((out (assoc-ref outputs "out"))
6269 (lib (string-append out "/lib"))
6270 (include (string-append out "/include/smithlab-cpp")))
6271 (mkdir-p lib)
6272 (mkdir-p include)
6273 (for-each (cut install-file <> lib)
6274 (find-files "." "\\.o$"))
6275 (for-each (cut install-file <> include)
6276 (find-files "." "\\.hpp$")))
6277 #t))
6278 (delete 'configure))))
6279 (inputs
6280 `(("samtools" ,samtools-0.1)
6281 ("zlib" ,zlib)))
6282 (home-page "https://github.com/smithlabcode/smithlab_cpp")
6283 (synopsis "C++ helper library for functions used in Smith lab projects")
6284 (description
6285 "Smithlab CPP is a C++ library that includes functions used in many of
6286 the Smith lab bioinformatics projects, such as a wrapper around Samtools data
6287 structures, classes for genomic regions, mapped sequencing reads, etc.")
6288 (license license:gpl3+))))
6289
6290 (define-public preseq
6291 (package
6292 (name "preseq")
6293 (version "2.0.3")
6294 (source (origin
6295 (method url-fetch)
6296 (uri (string-append "https://github.com/smithlabcode/preseq/"
6297 "releases/download/v" version
6298 "/preseq_v" version ".tar.bz2"))
6299 (sha256
6300 (base32 "149x9xmk1wy1gff85325yfzqc0qk4sgp1w6gbyj9cnji4x1dszbl"))
6301 (modules '((guix build utils)))
6302 (snippet '(begin
6303 ;; Remove bundled samtools.
6304 (delete-file-recursively "samtools")
6305 #t))))
6306 (build-system gnu-build-system)
6307 (arguments
6308 `(#:tests? #f ;no "check" target
6309 #:phases
6310 (modify-phases %standard-phases
6311 (delete 'configure))
6312 #:make-flags
6313 (list (string-append "PREFIX="
6314 (assoc-ref %outputs "out"))
6315 (string-append "LIBBAM="
6316 (assoc-ref %build-inputs "samtools")
6317 "/lib/libbam.a")
6318 (string-append "SMITHLAB_CPP="
6319 (assoc-ref %build-inputs "smithlab-cpp")
6320 "/lib")
6321 "PROGS=preseq"
6322 "INCLUDEDIRS=$(SMITHLAB_CPP)/../include/smithlab-cpp $(SAMTOOLS_DIR)")))
6323 (inputs
6324 `(("gsl" ,gsl)
6325 ("samtools" ,samtools-0.1)
6326 ("smithlab-cpp" ,smithlab-cpp)
6327 ("zlib" ,zlib)))
6328 (home-page "http://smithlabresearch.org/software/preseq/")
6329 (synopsis "Program for analyzing library complexity")
6330 (description
6331 "The preseq package is aimed at predicting and estimating the complexity
6332 of a genomic sequencing library, equivalent to predicting and estimating the
6333 number of redundant reads from a given sequencing depth and how many will be
6334 expected from additional sequencing using an initial sequencing experiment.
6335 The estimates can then be used to examine the utility of further sequencing,
6336 optimize the sequencing depth, or to screen multiple libraries to avoid low
6337 complexity samples.")
6338 (license license:gpl3+)))
6339
6340 (define-public python-screed
6341 (package
6342 (name "python-screed")
6343 (version "1.0")
6344 (source
6345 (origin
6346 (method url-fetch)
6347 (uri (pypi-uri "screed" version))
6348 (sha256
6349 (base32
6350 "148vcb7w2wr6a4w6vs2bsxanbqibxfk490zbcbg4m61s8669zdjx"))))
6351 (build-system python-build-system)
6352 (arguments
6353 '(#:phases
6354 (modify-phases %standard-phases
6355 ;; Tests must be run after installation, as the "screed" command does
6356 ;; not exist right after building.
6357 (delete 'check)
6358 (add-after 'install 'check
6359 (lambda* (#:key inputs outputs #:allow-other-keys)
6360 (let ((out (assoc-ref outputs "out")))
6361 (setenv "PYTHONPATH"
6362 (string-append out "/lib/python"
6363 (string-take (string-take-right
6364 (assoc-ref inputs "python")
6365 5) 3)
6366 "/site-packages:"
6367 (getenv "PYTHONPATH")))
6368 (setenv "PATH" (string-append out "/bin:" (getenv "PATH"))))
6369 (invoke "python" "setup.py" "test")
6370 #t)))))
6371 (native-inputs
6372 `(("python-pytest" ,python-pytest)
6373 ("python-pytest-cov" ,python-pytest-cov)
6374 ("python-pytest-runner" ,python-pytest-runner)))
6375 (inputs
6376 `(("python-bz2file" ,python-bz2file)))
6377 (home-page "https://github.com/dib-lab/screed/")
6378 (synopsis "Short read sequence database utilities")
6379 (description "Screed parses FASTA and FASTQ files and generates databases.
6380 Values such as sequence name, sequence description, sequence quality and the
6381 sequence itself can be retrieved from these databases.")
6382 (license license:bsd-3)))
6383
6384 (define-public python2-screed
6385 (package-with-python2 python-screed))
6386
6387 (define-public sra-tools
6388 (package
6389 (name "sra-tools")
6390 (version "2.10.6")
6391 (source
6392 (origin
6393 (method git-fetch)
6394 (uri (git-reference
6395 (url "https://github.com/ncbi/sra-tools")
6396 (commit version)))
6397 (file-name (git-file-name name version))
6398 (sha256
6399 (base32
6400 "1cr2mijkfs5sm35ffjs6861qsd1qkgnhnbavdv65zg5d655abbjf"))))
6401 (build-system gnu-build-system)
6402 (arguments
6403 `(#:parallel-build? #f ; not supported
6404 #:tests? #f ; no "check" target
6405 #:make-flags
6406 (list (string-append "DEFAULT_CRT="
6407 (assoc-ref %build-inputs "ncbi-vdb")
6408 "/kfg/certs.kfg")
6409 (string-append "DEFAULT_KFG="
6410 (assoc-ref %build-inputs "ncbi-vdb")
6411 "/kfg/default.kfg")
6412 (string-append "VDB_LIBDIR="
6413 (assoc-ref %build-inputs "ncbi-vdb")
6414 ,(if (string-prefix? "x86_64"
6415 (or (%current-target-system)
6416 (%current-system)))
6417 "/lib64"
6418 "/lib32")))
6419 #:phases
6420 (modify-phases %standard-phases
6421 (add-before 'configure 'set-perl-search-path
6422 (lambda _
6423 ;; Work around "dotless @INC" build failure.
6424 (setenv "PERL5LIB"
6425 (string-append (getcwd) "/setup:"
6426 (getenv "PERL5LIB")))
6427 #t))
6428 (replace 'configure
6429 (lambda* (#:key inputs outputs #:allow-other-keys)
6430 ;; The build system expects a directory containing the sources and
6431 ;; raw build output of ncbi-vdb, including files that are not
6432 ;; installed. Since we are building against an installed version of
6433 ;; ncbi-vdb, the following modifications are needed.
6434 (substitute* "setup/konfigure.perl"
6435 ;; Make the configure script look for the "ilib" directory of
6436 ;; "ncbi-vdb" without first checking for the existence of a
6437 ;; matching library in its "lib" directory.
6438 (("^ my \\$f = File::Spec->catdir\\(\\$libdir, \\$lib\\);")
6439 "my $f = File::Spec->catdir($ilibdir, $ilib);")
6440 ;; Look for interface libraries in ncbi-vdb's "ilib" directory.
6441 (("my \\$ilibdir = File::Spec->catdir\\(\\$builddir, 'ilib'\\);")
6442 "my $ilibdir = File::Spec->catdir($dir, 'ilib');"))
6443
6444 ;; Dynamic linking
6445 (substitute* "tools/copycat/Makefile"
6446 (("smagic-static") "lmagic"))
6447 (substitute* "tools/driver-tool/utf8proc/Makefile"
6448 (("CC\\?=gcc") "myCC=gcc")
6449 (("\\(CC\\)") "(myCC)"))
6450
6451 ;; The 'configure' script doesn't recognize things like
6452 ;; '--enable-fast-install'.
6453 (invoke "./configure"
6454 (string-append "--build-prefix=" (getcwd) "/build")
6455 (string-append "--prefix=" (assoc-ref outputs "out"))
6456 (string-append "--debug")
6457 (string-append "--with-fuse-prefix="
6458 (assoc-ref inputs "fuse"))
6459 (string-append "--with-magic-prefix="
6460 (assoc-ref inputs "libmagic"))
6461 ;; TODO: building with libxml2 fails with linker errors
6462 #;
6463 (string-append "--with-xml2-prefix="
6464 (assoc-ref inputs "libxml2"))
6465 (string-append "--with-ncbi-vdb-sources="
6466 (assoc-ref inputs "ncbi-vdb"))
6467 (string-append "--with-ncbi-vdb-build="
6468 (assoc-ref inputs "ncbi-vdb"))
6469 (string-append "--with-ngs-sdk-prefix="
6470 (assoc-ref inputs "ngs-sdk"))
6471 (string-append "--with-hdf5-prefix="
6472 (assoc-ref inputs "hdf5")))
6473 #t)))))
6474 (native-inputs `(("perl" ,perl)))
6475 (inputs
6476 `(("ngs-sdk" ,ngs-sdk)
6477 ("ncbi-vdb" ,ncbi-vdb)
6478 ("libmagic" ,file)
6479 ("fuse" ,fuse)
6480 ("hdf5" ,hdf5-1.10)
6481 ("zlib" ,zlib)
6482 ("python" ,python-wrapper)))
6483 (home-page
6484 "https://trace.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software")
6485 (synopsis "Tools and libraries for reading and writing sequencing data")
6486 (description
6487 "The SRA Toolkit from NCBI is a collection of tools and libraries for
6488 reading of sequencing files from the Sequence Read Archive (SRA) database and
6489 writing files into the .sra format.")
6490 (license license:public-domain)))
6491
6492 (define-public seqan
6493 (package
6494 (name "seqan")
6495 (version "2.4.0")
6496 (source (origin
6497 (method url-fetch)
6498 (uri (string-append "https://github.com/seqan/seqan/releases/"
6499 "download/seqan-v" version
6500 "/seqan-library-" version ".tar.xz"))
6501 (sha256
6502 (base32
6503 "19a1rlxx03qy1i1iriicly68w64yjxbv24g9gdywnfmq998v35yx"))))
6504 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
6505 ;; makes sense to split the outputs.
6506 (outputs '("out" "doc"))
6507 (build-system trivial-build-system)
6508 (arguments
6509 `(#:modules ((guix build utils))
6510 #:builder
6511 (begin
6512 (use-modules (guix build utils))
6513 (let ((tar (assoc-ref %build-inputs "tar"))
6514 (xz (assoc-ref %build-inputs "xz"))
6515 (out (assoc-ref %outputs "out"))
6516 (doc (assoc-ref %outputs "doc")))
6517 (setenv "PATH" (string-append tar "/bin:" xz "/bin"))
6518 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
6519 (chdir (string-append "seqan-library-" ,version))
6520 (copy-recursively "include" (string-append out "/include"))
6521 (copy-recursively "share" (string-append doc "/share"))
6522 #t))))
6523 (native-inputs
6524 `(("source" ,source)
6525 ("tar" ,tar)
6526 ("xz" ,xz)))
6527 (home-page "http://www.seqan.de")
6528 (synopsis "Library for nucleotide sequence analysis")
6529 (description
6530 "SeqAn is a C++ library of efficient algorithms and data structures for
6531 the analysis of sequences with the focus on biological data. It contains
6532 algorithms and data structures for string representation and their
6533 manipulation, online and indexed string search, efficient I/O of
6534 bioinformatics file formats, sequence alignment, and more.")
6535 (license license:bsd-3)))
6536
6537 (define-public seqan-1
6538 (package (inherit seqan)
6539 (name "seqan")
6540 (version "1.4.2")
6541 (source (origin
6542 (method url-fetch)
6543 (uri (string-append "http://packages.seqan.de/seqan-library/"
6544 "seqan-library-" version ".tar.bz2"))
6545 (sha256
6546 (base32
6547 "05s3wrrwn50f81aklfm65i4a749zag1vr8z03k21xm0pdxy47yvp"))))
6548 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
6549 ;; makes sense to split the outputs.
6550 (outputs '("out" "doc"))
6551 (build-system trivial-build-system)
6552 (arguments
6553 `(#:modules ((guix build utils))
6554 #:builder
6555 (begin
6556 (use-modules (guix build utils))
6557 (let ((tar (assoc-ref %build-inputs "tar"))
6558 (bzip (assoc-ref %build-inputs "bzip2"))
6559 (out (assoc-ref %outputs "out"))
6560 (doc (assoc-ref %outputs "doc")))
6561 (setenv "PATH" (string-append tar "/bin:" bzip "/bin"))
6562 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
6563 (chdir (string-append "seqan-library-" ,version))
6564 (copy-recursively "include" (string-append out "/include"))
6565 (copy-recursively "share" (string-append doc "/share"))
6566 #t))))
6567 (native-inputs
6568 `(("source" ,source)
6569 ("tar" ,tar)
6570 ("bzip2" ,bzip2)))))
6571
6572 (define-public seqmagick
6573 (package
6574 (name "seqmagick")
6575 (version "0.8.0")
6576 (source
6577 (origin
6578 (method url-fetch)
6579 (uri (pypi-uri "seqmagick" version))
6580 (sha256
6581 (base32
6582 "0pf98da7i59q47gwrbx0wjk6xlvbybiwphw80w7h4ydjj0579a2b"))))
6583 (build-system python-build-system)
6584 (inputs
6585 `(("python-biopython" ,python-biopython)))
6586 (native-inputs
6587 `(("python-nose" ,python-nose)))
6588 (home-page "https://github.com/fhcrc/seqmagick")
6589 (synopsis "Tools for converting and modifying sequence files")
6590 (description
6591 "Bioinformaticians often have to convert sequence files between formats
6592 and do little manipulations on them, and it's not worth writing scripts for
6593 that. Seqmagick is a utility to expose the file format conversion in
6594 BioPython in a convenient way. Instead of having a big mess of scripts, there
6595 is one that takes arguments.")
6596 (license license:gpl3)))
6597
6598 (define-public seqtk
6599 (package
6600 (name "seqtk")
6601 (version "1.3")
6602 (source (origin
6603 (method git-fetch)
6604 (uri (git-reference
6605 (url "https://github.com/lh3/seqtk")
6606 (commit (string-append "v" version))))
6607 (file-name (git-file-name name version))
6608 (sha256
6609 (base32
6610 "1bfzlqa84b5s1qi22blmmw2s8xdyp9h9ydcq22pfjhh5gab3yz6l"))))
6611 (build-system gnu-build-system)
6612 (arguments
6613 `(#:phases
6614 (modify-phases %standard-phases
6615 (delete 'configure)
6616 (replace 'check
6617 ;; There are no tests, so we just run a sanity check.
6618 (lambda _ (invoke "./seqtk" "seq") #t))
6619 (replace 'install
6620 (lambda* (#:key outputs #:allow-other-keys)
6621 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6622 (install-file "seqtk" bin)
6623 #t))))))
6624 (inputs
6625 `(("zlib" ,zlib)))
6626 (home-page "https://github.com/lh3/seqtk")
6627 (synopsis "Toolkit for processing biological sequences in FASTA/Q format")
6628 (description
6629 "Seqtk is a fast and lightweight tool for processing sequences in the
6630 FASTA or FASTQ format. It parses both FASTA and FASTQ files which can be
6631 optionally compressed by gzip.")
6632 (license license:expat)))
6633
6634 (define-public snap-aligner
6635 (package
6636 (name "snap-aligner")
6637 (version "1.0beta.18")
6638 (source (origin
6639 (method git-fetch)
6640 (uri (git-reference
6641 (url "https://github.com/amplab/snap")
6642 (commit (string-append "v" version))))
6643 (file-name (git-file-name name version))
6644 (sha256
6645 (base32
6646 "01w3qq4wm07z73vky0cfwlmrbf50n3w722cxrlzxfi99mnb808d8"))))
6647 (build-system gnu-build-system)
6648 (arguments
6649 '(#:phases
6650 (modify-phases %standard-phases
6651 (delete 'configure)
6652 (replace 'check (lambda _ (invoke "./unit_tests") #t))
6653 (replace 'install
6654 (lambda* (#:key outputs #:allow-other-keys)
6655 (let* ((out (assoc-ref outputs "out"))
6656 (bin (string-append out "/bin")))
6657 (install-file "snap-aligner" bin)
6658 (install-file "SNAPCommand" bin)
6659 #t))))))
6660 (native-inputs
6661 `(("zlib" ,zlib)))
6662 (home-page "http://snap.cs.berkeley.edu/")
6663 (synopsis "Short read DNA sequence aligner")
6664 (description
6665 "SNAP is a fast and accurate aligner for short DNA reads. It is
6666 optimized for modern read lengths of 100 bases or higher, and takes advantage
6667 of these reads to align data quickly through a hash-based indexing scheme.")
6668 ;; 32-bit systems are not supported by the unpatched code.
6669 ;; Following the bug reports https://github.com/amplab/snap/issues/68 and
6670 ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812378 we see that
6671 ;; systems without a lot of memory cannot make good use of this program.
6672 (supported-systems '("x86_64-linux"))
6673 (license license:asl2.0)))
6674
6675 (define-public sortmerna
6676 (package
6677 (name "sortmerna")
6678 (version "2.1b")
6679 (source
6680 (origin
6681 (method git-fetch)
6682 (uri (git-reference
6683 (url "https://github.com/biocore/sortmerna")
6684 (commit version)))
6685 (file-name (git-file-name name version))
6686 (sha256
6687 (base32
6688 "0j3mbz4n25738yijmjbr5r4fyvkgm8v5vn3sshyfvmyqf5q9byqf"))))
6689 (build-system gnu-build-system)
6690 (outputs '("out" ;for binaries
6691 "db")) ;for sequence databases
6692 (arguments
6693 `(#:phases
6694 (modify-phases %standard-phases
6695 (replace 'install
6696 (lambda* (#:key outputs #:allow-other-keys)
6697 (let* ((out (assoc-ref outputs "out"))
6698 (bin (string-append out "/bin"))
6699 (db (assoc-ref outputs "db"))
6700 (share
6701 (string-append db "/share/sortmerna/rRNA_databases")))
6702 (install-file "sortmerna" bin)
6703 (install-file "indexdb_rna" bin)
6704 (for-each (lambda (file)
6705 (install-file file share))
6706 (find-files "rRNA_databases" ".*fasta"))
6707 #t))))))
6708 (inputs
6709 `(("zlib" ,zlib)))
6710 (home-page "https://bioinfo.lifl.fr/RNA/sortmerna/")
6711 (synopsis "Biological sequence analysis tool for NGS reads")
6712 (description
6713 "SortMeRNA is a biological sequence analysis tool for filtering, mapping
6714 and operational taxonomic unit (OTU) picking of next generation
6715 sequencing (NGS) reads. The core algorithm is based on approximate seeds and
6716 allows for fast and sensitive analyses of nucleotide sequences. The main
6717 application of SortMeRNA is filtering rRNA from metatranscriptomic data.")
6718 ;; The source includes x86 specific code
6719 (supported-systems '("x86_64-linux" "i686-linux"))
6720 (license license:lgpl3)))
6721
6722 (define-public star
6723 (package
6724 (name "star")
6725 (version "2.7.3a")
6726 (source (origin
6727 (method git-fetch)
6728 (uri (git-reference
6729 (url "https://github.com/alexdobin/STAR")
6730 (commit version)))
6731 (file-name (git-file-name name version))
6732 (sha256
6733 (base32
6734 "1hgiqw5qhs0pc1xazzihcfd92na02xyq2kb469z04y1v51kpvvjq"))
6735 (modules '((guix build utils)))
6736 (snippet
6737 '(begin
6738 (substitute* "source/Makefile"
6739 (("/bin/rm") "rm"))
6740 ;; Remove pre-built binaries and bundled htslib sources.
6741 (delete-file-recursively "bin/MacOSX_x86_64")
6742 (delete-file-recursively "bin/Linux_x86_64")
6743 (delete-file-recursively "bin/Linux_x86_64_static")
6744 (delete-file-recursively "source/htslib")
6745 #t))))
6746 (build-system gnu-build-system)
6747 (arguments
6748 '(#:tests? #f ;no check target
6749 #:make-flags '("STAR")
6750 #:phases
6751 (modify-phases %standard-phases
6752 (add-after 'unpack 'enter-source-dir
6753 (lambda _ (chdir "source") #t))
6754 (add-after 'enter-source-dir 'make-reproducible
6755 (lambda _
6756 (substitute* "Makefile"
6757 (("(COMPILATION_TIME_PLACE=\")(.*)(\")" _ pre mid post)
6758 (string-append pre "Built with Guix" post)))
6759 #t))
6760 ;; See https://github.com/alexdobin/STAR/pull/562
6761 (add-after 'enter-source-dir 'add-missing-header
6762 (lambda _
6763 (substitute* "SoloReadFeature_inputRecords.cpp"
6764 (("#include \"binarySearch2.h\"" h)
6765 (string-append h "\n#include <math.h>")))
6766 #t))
6767 (add-after 'enter-source-dir 'do-not-use-bundled-htslib
6768 (lambda _
6769 (substitute* "Makefile"
6770 (("(Depend.list: \\$\\(SOURCES\\) parametersDefault\\.xxd) htslib"
6771 _ prefix) prefix))
6772 (substitute* '("BAMfunctions.cpp"
6773 "signalFromBAM.h"
6774 "bam_cat.h"
6775 "bam_cat.c"
6776 "STAR.cpp"
6777 "bamRemoveDuplicates.cpp")
6778 (("#include \"htslib/([^\"]+\\.h)\"" _ header)
6779 (string-append "#include <" header ">")))
6780 (substitute* "IncludeDefine.h"
6781 (("\"htslib/(htslib/[^\"]+.h)\"" _ header)
6782 (string-append "<" header ">")))
6783 #t))
6784 (replace 'install
6785 (lambda* (#:key outputs #:allow-other-keys)
6786 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6787 (install-file "STAR" bin))
6788 #t))
6789 (delete 'configure))))
6790 (native-inputs
6791 `(("xxd" ,xxd)))
6792 (inputs
6793 `(("htslib" ,htslib)
6794 ("zlib" ,zlib)))
6795 (home-page "https://github.com/alexdobin/STAR")
6796 (synopsis "Universal RNA-seq aligner")
6797 (description
6798 "The Spliced Transcripts Alignment to a Reference (STAR) software is
6799 based on a previously undescribed RNA-seq alignment algorithm that uses
6800 sequential maximum mappable seed search in uncompressed suffix arrays followed
6801 by seed clustering and stitching procedure. In addition to unbiased de novo
6802 detection of canonical junctions, STAR can discover non-canonical splices and
6803 chimeric (fusion) transcripts, and is also capable of mapping full-length RNA
6804 sequences.")
6805 ;; Only 64-bit systems are supported according to the README.
6806 (supported-systems '("x86_64-linux" "mips64el-linux"))
6807 ;; STAR is licensed under GPLv3 or later; htslib is MIT-licensed.
6808 (license license:gpl3+)))
6809
6810 (define-public starlong
6811 (package (inherit star)
6812 (name "starlong")
6813 (arguments
6814 (substitute-keyword-arguments (package-arguments star)
6815 ((#:make-flags flags)
6816 `(list "STARlong"))
6817 ((#:phases phases)
6818 `(modify-phases ,phases
6819 ;; Allow extra long sequence reads.
6820 (add-after 'unpack 'make-extra-long
6821 (lambda _
6822 (substitute* "source/IncludeDefine.h"
6823 (("(#define DEF_readNameLengthMax ).*" _ match)
6824 (string-append match "900000\n")))
6825 #t))
6826 (replace 'install
6827 (lambda* (#:key outputs #:allow-other-keys)
6828 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6829 (install-file "STARlong" bin))
6830 #t))))))))
6831
6832 (define-public subread
6833 (package
6834 (name "subread")
6835 (version "1.6.0")
6836 (source (origin
6837 (method url-fetch)
6838 (uri (string-append "mirror://sourceforge/subread/subread-"
6839 version "/subread-" version "-source.tar.gz"))
6840 (sha256
6841 (base32
6842 "0ah0n4jx6ksk2m2j7xk385x2qzmk1y4rfc6a4mfrdqrlq721w99i"))))
6843 (build-system gnu-build-system)
6844 (arguments
6845 `(#:tests? #f ;no "check" target
6846 ;; The CC and CCFLAGS variables are set to contain a lot of x86_64
6847 ;; optimizations by default, so we override these flags such that x86_64
6848 ;; flags are only added when the build target is an x86_64 system.
6849 #:make-flags
6850 (list (let ((system ,(or (%current-target-system)
6851 (%current-system)))
6852 (flags '("-ggdb" "-fomit-frame-pointer"
6853 "-ffast-math" "-funroll-loops"
6854 "-fmessage-length=0"
6855 "-O9" "-Wall" "-DMAKE_FOR_EXON"
6856 "-DMAKE_STANDALONE"
6857 "-DSUBREAD_VERSION=\\\"${SUBREAD_VERSION}\\\""))
6858 (flags64 '("-mmmx" "-msse" "-msse2" "-msse3")))
6859 (if (string-prefix? "x86_64" system)
6860 (string-append "CCFLAGS=" (string-join (append flags flags64)))
6861 (string-append "CCFLAGS=" (string-join flags))))
6862 "-f" "Makefile.Linux"
6863 "CC=gcc ${CCFLAGS}")
6864 #:phases
6865 (modify-phases %standard-phases
6866 (add-after 'unpack 'enter-dir
6867 (lambda _ (chdir "src") #t))
6868 (replace 'install
6869 (lambda* (#:key outputs #:allow-other-keys)
6870 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6871 (mkdir-p bin)
6872 (copy-recursively "../bin" bin))
6873 #t))
6874 ;; no "configure" script
6875 (delete 'configure))))
6876 (inputs `(("zlib" ,zlib)))
6877 (home-page "http://bioinf.wehi.edu.au/subread-package/")
6878 (synopsis "Tool kit for processing next-gen sequencing data")
6879 (description
6880 "The subread package contains the following tools: subread aligner, a
6881 general-purpose read aligner; subjunc aligner: detecting exon-exon junctions
6882 and mapping RNA-seq reads; featureCounts: counting mapped reads for genomic
6883 features; exactSNP: a SNP caller that discovers SNPs by testing signals
6884 against local background noises.")
6885 (license license:gpl3+)))
6886
6887 (define-public stringtie
6888 (package
6889 (name "stringtie")
6890 (version "1.2.1")
6891 (source (origin
6892 (method url-fetch)
6893 (uri (string-append "http://ccb.jhu.edu/software/stringtie/dl/"
6894 "stringtie-" version ".tar.gz"))
6895 (sha256
6896 (base32
6897 "1cqllsc1maq4kh92isi8yadgzbmnf042hlnalpk3y59aph1z3bfz"))
6898 (modules '((guix build utils)))
6899 (snippet
6900 '(begin
6901 (delete-file-recursively "samtools-0.1.18")
6902 #t))))
6903 (build-system gnu-build-system)
6904 (arguments
6905 `(#:tests? #f ;no test suite
6906 #:phases
6907 (modify-phases %standard-phases
6908 ;; no configure script
6909 (delete 'configure)
6910 (add-before 'build 'use-system-samtools
6911 (lambda _
6912 (substitute* "Makefile"
6913 (("stringtie: \\$\\{BAM\\}/libbam\\.a")
6914 "stringtie: "))
6915 (substitute* '("gclib/GBam.h"
6916 "gclib/GBam.cpp")
6917 (("#include \"(bam|sam|kstring).h\"" _ header)
6918 (string-append "#include <samtools/" header ".h>")))
6919 #t))
6920 (add-after 'unpack 'remove-duplicate-typedef
6921 (lambda _
6922 ;; This typedef conflicts with the typedef in
6923 ;; glibc-2.25/include/bits/types.h
6924 (substitute* "gclib/GThreads.h"
6925 (("typedef long long __intmax_t;") ""))
6926 #t))
6927 (replace 'install
6928 (lambda* (#:key outputs #:allow-other-keys)
6929 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6930 (install-file "stringtie" bin)
6931 #t))))))
6932 (inputs
6933 `(("samtools" ,samtools-0.1)
6934 ("zlib" ,zlib)))
6935 (home-page "http://ccb.jhu.edu/software/stringtie/")
6936 (synopsis "Transcript assembly and quantification for RNA-Seq data")
6937 (description
6938 "StringTie is a fast and efficient assembler of RNA-Seq sequence
6939 alignments into potential transcripts. It uses a novel network flow algorithm
6940 as well as an optional de novo assembly step to assemble and quantitate
6941 full-length transcripts representing multiple splice variants for each gene
6942 locus. Its input can include not only the alignments of raw reads used by
6943 other transcript assemblers, but also alignments of longer sequences that have
6944 been assembled from those reads. To identify differentially expressed genes
6945 between experiments, StringTie's output can be processed either by the
6946 Cuffdiff or Ballgown programs.")
6947 (license license:artistic2.0)))
6948
6949 (define-public taxtastic
6950 (package
6951 (name "taxtastic")
6952 (version "0.8.11")
6953 (source (origin
6954 ;; The Pypi version does not include tests.
6955 (method git-fetch)
6956 (uri (git-reference
6957 (url "https://github.com/fhcrc/taxtastic")
6958 (commit (string-append "v" version))))
6959 (file-name (git-file-name name version))
6960 (sha256
6961 (base32
6962 "1sv8mkg64jn7zdwf1jj71c16686yrwxk0apb1l8sjszy9p166g0p"))))
6963 (build-system python-build-system)
6964 (arguments
6965 `(#:phases
6966 (modify-phases %standard-phases
6967 (add-after 'unpack 'prepare-directory
6968 (lambda _
6969 ;; The git checkout must be writable for tests.
6970 (for-each make-file-writable (find-files "."))
6971 ;; This test fails, but the error is not caught by the test
6972 ;; framework, so the tests fail...
6973 (substitute* "tests/test_taxit.py"
6974 (("self.cmd_fails\\(''\\)")
6975 "self.cmd_fails('nothing')"))
6976 ;; This version file is expected to be created with git describe.
6977 (mkdir-p "taxtastic/data")
6978 (with-output-to-file "taxtastic/data/ver"
6979 (lambda () (display ,version)))
6980 #t))
6981 (add-after 'unpack 'python37-compatibility
6982 (lambda _
6983 (substitute* "taxtastic/utils.py"
6984 (("import csv") "import csv, errno")
6985 (("os.errno") "errno"))
6986 #t))
6987 (replace 'check
6988 ;; Note, this fails to run with "-v" as it tries to write to a
6989 ;; closed output stream.
6990 (lambda _ (invoke "python" "-m" "unittest") #t)))))
6991 (propagated-inputs
6992 `(("python-sqlalchemy" ,python-sqlalchemy)
6993 ("python-decorator" ,python-decorator)
6994 ("python-biopython" ,python-biopython)
6995 ("python-pandas" ,python-pandas)
6996 ("python-psycopg2" ,python-psycopg2)
6997 ("python-fastalite" ,python-fastalite)
6998 ("python-pyyaml" ,python-pyyaml)
6999 ("python-six" ,python-six)
7000 ("python-jinja2" ,python-jinja2)
7001 ("python-dendropy" ,python-dendropy)))
7002 (home-page "https://github.com/fhcrc/taxtastic")
7003 (synopsis "Tools for taxonomic naming and annotation")
7004 (description
7005 "Taxtastic is software written in python used to build and maintain
7006 reference packages i.e. collections of reference trees, reference alignments,
7007 profiles, and associated taxonomic information.")
7008 (license license:gpl3+)))
7009
7010 (define-public vcftools
7011 (package
7012 (name "vcftools")
7013 (version "0.1.16")
7014 (source (origin
7015 (method url-fetch)
7016 (uri (string-append
7017 "https://github.com/vcftools/vcftools/releases/download/v"
7018 version "/vcftools-" version ".tar.gz"))
7019 (sha256
7020 (base32
7021 "1qqlx7flfv7axrjwkaz6njkscsl1d0jw98ns8d8bh1n1hd1pgz6v"))))
7022 (build-system gnu-build-system)
7023 (arguments
7024 `(#:tests? #f ; no "check" target
7025 #:make-flags (list
7026 "CFLAGS=-O2" ; override "-m64" flag
7027 (string-append "PREFIX=" (assoc-ref %outputs "out"))
7028 (string-append "MANDIR=" (assoc-ref %outputs "out")
7029 "/share/man/man1"))))
7030 (native-inputs
7031 `(("pkg-config" ,pkg-config)))
7032 (inputs
7033 `(("perl" ,perl)
7034 ("zlib" ,zlib)))
7035 (home-page "https://vcftools.github.io/")
7036 (synopsis "Tools for working with VCF files")
7037 (description
7038 "VCFtools is a program package designed for working with VCF files, such
7039 as those generated by the 1000 Genomes Project. The aim of VCFtools is to
7040 provide easily accessible methods for working with complex genetic variation
7041 data in the form of VCF files.")
7042 ;; The license is declared as LGPLv3 in the README and
7043 ;; at https://vcftools.github.io/license.html
7044 (license license:lgpl3)))
7045
7046 (define-public infernal
7047 (package
7048 (name "infernal")
7049 (version "1.1.3")
7050 (source (origin
7051 (method url-fetch)
7052 (uri (string-append "http://eddylab.org/software/infernal/"
7053 "infernal-" version ".tar.gz"))
7054 (sha256
7055 (base32
7056 "0pm8bm3s6nfa0av4x6m6h27lsg12b3lz3jm0fyh1mc77l2isd61v"))))
7057 (build-system gnu-build-system)
7058 (native-inputs
7059 `(("perl" ,perl)
7060 ("python" ,python))) ; for tests
7061 (home-page "http://eddylab.org/infernal/")
7062 (synopsis "Inference of RNA alignments")
7063 (description "Infernal (\"INFERence of RNA ALignment\") is a tool for
7064 searching DNA sequence databases for RNA structure and sequence similarities.
7065 It is an implementation of a special case of profile stochastic context-free
7066 grammars called @dfn{covariance models} (CMs). A CM is like a sequence
7067 profile, but it scores a combination of sequence consensus and RNA secondary
7068 structure consensus, so in many cases, it is more capable of identifying RNA
7069 homologs that conserve their secondary structure more than their primary
7070 sequence.")
7071 ;; Infernal 1.1.3 requires VMX or SSE capability for parallel instructions.
7072 (supported-systems '("i686-linux" "x86_64-linux"))
7073 (license license:bsd-3)))
7074
7075 (define-public r-scde
7076 (package
7077 (name "r-scde")
7078 (version "1.99.2")
7079 (source (origin
7080 (method git-fetch)
7081 (uri (git-reference
7082 (url "https://github.com/hms-dbmi/scde")
7083 (commit version)))
7084 (file-name (git-file-name name version))
7085 (sha256
7086 (base32
7087 "10na2gyka24mszdxf92wz9h2c13hdf1ww30c68gfsw53lvvhhhxb"))))
7088 (build-system r-build-system)
7089 (propagated-inputs
7090 `(("r-rcpp" ,r-rcpp)
7091 ("r-rcpparmadillo" ,r-rcpparmadillo)
7092 ("r-mgcv" ,r-mgcv)
7093 ("r-rook" ,r-rook)
7094 ("r-rjson" ,r-rjson)
7095 ("r-cairo" ,r-cairo)
7096 ("r-rcolorbrewer" ,r-rcolorbrewer)
7097 ("r-edger" ,r-edger)
7098 ("r-quantreg" ,r-quantreg)
7099 ("r-nnet" ,r-nnet)
7100 ("r-rmtstat" ,r-rmtstat)
7101 ("r-extremes" ,r-extremes)
7102 ("r-pcamethods" ,r-pcamethods)
7103 ("r-biocparallel" ,r-biocparallel)
7104 ("r-flexmix" ,r-flexmix)))
7105 (home-page "https://hms-dbmi.github.io/scde/")
7106 (synopsis "R package for analyzing single-cell RNA-seq data")
7107 (description "The SCDE package implements a set of statistical methods for
7108 analyzing single-cell RNA-seq data. SCDE fits individual error models for
7109 single-cell RNA-seq measurements. These models can then be used for
7110 assessment of differential expression between groups of cells, as well as
7111 other types of analysis. The SCDE package also contains the pagoda framework
7112 which applies pathway and gene set overdispersion analysis to identify aspects
7113 of transcriptional heterogeneity among single cells.")
7114 ;; See https://github.com/hms-dbmi/scde/issues/38
7115 (license license:gpl2)))
7116
7117 (define-public r-centipede
7118 (package
7119 (name "r-centipede")
7120 (version "1.2")
7121 (source (origin
7122 (method url-fetch)
7123 (uri (string-append "http://download.r-forge.r-project.org/"
7124 "src/contrib/CENTIPEDE_" version ".tar.gz"))
7125 (sha256
7126 (base32
7127 "1hsx6qgwr0i67fhy9257zj7s0ppncph2hjgbia5nn6nfmj0ax6l9"))))
7128 (build-system r-build-system)
7129 (home-page "http://centipede.uchicago.edu/")
7130 (synopsis "Predict transcription factor binding sites")
7131 (description
7132 "CENTIPEDE applies a hierarchical Bayesian mixture model to infer regions
7133 of the genome that are bound by particular transcription factors. It starts
7134 by identifying a set of candidate binding sites, and then aims to classify the
7135 sites according to whether each site is bound or not bound by a transcription
7136 factor. CENTIPEDE is an unsupervised learning algorithm that discriminates
7137 between two different types of motif instances using as much relevant
7138 information as possible.")
7139 (license (list license:gpl2+ license:gpl3+))))
7140
7141 (define-public r-genefilter
7142 (package
7143 (name "r-genefilter")
7144 (version "1.70.0")
7145 (source
7146 (origin
7147 (method url-fetch)
7148 (uri (bioconductor-uri "genefilter" version))
7149 (sha256
7150 (base32
7151 "1sbbrnq6p90fri0ik6aq2zw26kasw63nyiy7xkzrj6vgyq7x258g"))))
7152 (build-system r-build-system)
7153 (native-inputs
7154 `(("gfortran" ,gfortran)
7155 ("r-knitr" ,r-knitr)))
7156 (propagated-inputs
7157 `(("r-annotate" ,r-annotate)
7158 ("r-annotationdbi" ,r-annotationdbi)
7159 ("r-biobase" ,r-biobase)
7160 ("r-biocgenerics" ,r-biocgenerics)
7161 ("r-survival" ,r-survival)))
7162 (home-page "https://bioconductor.org/packages/genefilter")
7163 (synopsis "Filter genes from high-throughput experiments")
7164 (description
7165 "This package provides basic functions for filtering genes from
7166 high-throughput sequencing experiments.")
7167 (license license:artistic2.0)))
7168
7169 (define-public r-deseq2
7170 (package
7171 (name "r-deseq2")
7172 (version "1.28.1")
7173 (source
7174 (origin
7175 (method url-fetch)
7176 (uri (bioconductor-uri "DESeq2" version))
7177 (sha256
7178 (base32
7179 "0xh12c2skr0bbv893p05gvbismkcnqw8zwh7yz4wmycgajfzg2pp"))))
7180 (properties `((upstream-name . "DESeq2")))
7181 (build-system r-build-system)
7182 (propagated-inputs
7183 `(("r-biobase" ,r-biobase)
7184 ("r-biocgenerics" ,r-biocgenerics)
7185 ("r-biocparallel" ,r-biocparallel)
7186 ("r-genefilter" ,r-genefilter)
7187 ("r-geneplotter" ,r-geneplotter)
7188 ("r-genomicranges" ,r-genomicranges)
7189 ("r-ggplot2" ,r-ggplot2)
7190 ("r-iranges" ,r-iranges)
7191 ("r-locfit" ,r-locfit)
7192 ("r-rcpp" ,r-rcpp)
7193 ("r-rcpparmadillo" ,r-rcpparmadillo)
7194 ("r-s4vectors" ,r-s4vectors)
7195 ("r-summarizedexperiment" ,r-summarizedexperiment)))
7196 (native-inputs
7197 `(("r-knitr" ,r-knitr)))
7198 (home-page "https://bioconductor.org/packages/DESeq2")
7199 (synopsis "Differential gene expression analysis")
7200 (description
7201 "This package provides functions to estimate variance-mean dependence in
7202 count data from high-throughput nucleotide sequencing assays and test for
7203 differential expression based on a model using the negative binomial
7204 distribution.")
7205 (license license:lgpl3+)))
7206
7207 (define-public r-dexseq
7208 (package
7209 (name "r-dexseq")
7210 (version "1.34.1")
7211 (source
7212 (origin
7213 (method url-fetch)
7214 (uri (bioconductor-uri "DEXSeq" version))
7215 (sha256
7216 (base32
7217 "1m03awaw06mfv5gszq23k5apsqqzjqa5rcwp20y4xbpl7bywpsyl"))))
7218 (properties `((upstream-name . "DEXSeq")))
7219 (build-system r-build-system)
7220 (propagated-inputs
7221 `(("r-annotationdbi" ,r-annotationdbi)
7222 ("r-biobase" ,r-biobase)
7223 ("r-biocgenerics" ,r-biocgenerics)
7224 ("r-biocparallel" ,r-biocparallel)
7225 ("r-biomart" ,r-biomart)
7226 ("r-deseq2" ,r-deseq2)
7227 ("r-genefilter" ,r-genefilter)
7228 ("r-geneplotter" ,r-geneplotter)
7229 ("r-genomicranges" ,r-genomicranges)
7230 ("r-hwriter" ,r-hwriter)
7231 ("r-iranges" ,r-iranges)
7232 ("r-rcolorbrewer" ,r-rcolorbrewer)
7233 ("r-rsamtools" ,r-rsamtools)
7234 ("r-s4vectors" ,r-s4vectors)
7235 ("r-statmod" ,r-statmod)
7236 ("r-stringr" ,r-stringr)
7237 ("r-summarizedexperiment" ,r-summarizedexperiment)))
7238 (native-inputs
7239 `(("r-knitr" ,r-knitr)))
7240 (home-page "https://bioconductor.org/packages/DEXSeq")
7241 (synopsis "Inference of differential exon usage in RNA-Seq")
7242 (description
7243 "This package is focused on finding differential exon usage using RNA-seq
7244 exon counts between samples with different experimental designs. It provides
7245 functions that allows the user to make the necessary statistical tests based
7246 on a model that uses the negative binomial distribution to estimate the
7247 variance between biological replicates and generalized linear models for
7248 testing. The package also provides functions for the visualization and
7249 exploration of the results.")
7250 (license license:gpl3+)))
7251
7252 (define-public r-annotationforge
7253 (package
7254 (name "r-annotationforge")
7255 (version "1.30.1")
7256 (source
7257 (origin
7258 (method url-fetch)
7259 (uri (bioconductor-uri "AnnotationForge" version))
7260 (sha256
7261 (base32
7262 "1a2155jxbwc6qr3dcyvp850grhdr7czc7bs3s87ff4sgdl0jp3jw"))))
7263 (properties
7264 `((upstream-name . "AnnotationForge")))
7265 (build-system r-build-system)
7266 (propagated-inputs
7267 `(("r-annotationdbi" ,r-annotationdbi)
7268 ("r-biobase" ,r-biobase)
7269 ("r-biocgenerics" ,r-biocgenerics)
7270 ("r-dbi" ,r-dbi)
7271 ("r-rcurl" ,r-rcurl)
7272 ("r-rsqlite" ,r-rsqlite)
7273 ("r-s4vectors" ,r-s4vectors)
7274 ("r-xml" ,r-xml)))
7275 (native-inputs
7276 `(("r-knitr" ,r-knitr)))
7277 (home-page "https://bioconductor.org/packages/AnnotationForge")
7278 (synopsis "Code for building annotation database packages")
7279 (description
7280 "This package provides code for generating Annotation packages and their
7281 databases. Packages produced are intended to be used with AnnotationDbi.")
7282 (license license:artistic2.0)))
7283
7284 (define-public r-rbgl
7285 (package
7286 (name "r-rbgl")
7287 (version "1.64.0")
7288 (source
7289 (origin
7290 (method url-fetch)
7291 (uri (bioconductor-uri "RBGL" version))
7292 (sha256
7293 (base32
7294 "079599a6xn2i7snfn2vgshkw0c00rrfhj44pvi03ap8id29bkayy"))))
7295 (properties `((upstream-name . "RBGL")))
7296 (build-system r-build-system)
7297 (propagated-inputs
7298 `(("r-bh" ,r-bh)
7299 ("r-graph" ,r-graph)))
7300 (home-page "https://www.bioconductor.org/packages/RBGL")
7301 (synopsis "Interface to the Boost graph library")
7302 (description
7303 "This package provides a fairly extensive and comprehensive interface to
7304 the graph algorithms contained in the Boost library.")
7305 (license license:artistic2.0)))
7306
7307 (define-public r-gseabase
7308 (package
7309 (name "r-gseabase")
7310 (version "1.50.1")
7311 (source
7312 (origin
7313 (method url-fetch)
7314 (uri (bioconductor-uri "GSEABase" version))
7315 (sha256
7316 (base32
7317 "1k4faj53cwvqijad8cf7fcghzxcv9shlbpl8n73bsncc8k192y2j"))))
7318 (properties `((upstream-name . "GSEABase")))
7319 (build-system r-build-system)
7320 (propagated-inputs
7321 `(("r-annotate" ,r-annotate)
7322 ("r-annotationdbi" ,r-annotationdbi)
7323 ("r-biobase" ,r-biobase)
7324 ("r-biocgenerics" ,r-biocgenerics)
7325 ("r-graph" ,r-graph)
7326 ("r-xml" ,r-xml)))
7327 (native-inputs
7328 `(("r-knitr" ,r-knitr)))
7329 (home-page "https://bioconductor.org/packages/GSEABase")
7330 (synopsis "Gene set enrichment data structures and methods")
7331 (description
7332 "This package provides classes and methods to support @dfn{Gene Set
7333 Enrichment Analysis} (GSEA).")
7334 (license license:artistic2.0)))
7335
7336 (define-public r-category
7337 (package
7338 (name "r-category")
7339 (version "2.54.0")
7340 (source
7341 (origin
7342 (method url-fetch)
7343 (uri (bioconductor-uri "Category" version))
7344 (sha256
7345 (base32
7346 "1grspdzk5a4vidnxwcd1jmy1vcn494aydsp3vydx235yv7iqac1b"))))
7347 (properties `((upstream-name . "Category")))
7348 (build-system r-build-system)
7349 (propagated-inputs
7350 `(("r-annotate" ,r-annotate)
7351 ("r-annotationdbi" ,r-annotationdbi)
7352 ("r-biobase" ,r-biobase)
7353 ("r-biocgenerics" ,r-biocgenerics)
7354 ("r-genefilter" ,r-genefilter)
7355 ("r-graph" ,r-graph)
7356 ("r-gseabase" ,r-gseabase)
7357 ("r-matrix" ,r-matrix)
7358 ("r-rbgl" ,r-rbgl)
7359 ("r-dbi" ,r-dbi)))
7360 (home-page "https://bioconductor.org/packages/Category")
7361 (synopsis "Category analysis")
7362 (description
7363 "This package provides a collection of tools for performing category
7364 analysis.")
7365 (license license:artistic2.0)))
7366
7367 (define-public r-gostats
7368 (package
7369 (name "r-gostats")
7370 (version "2.54.0")
7371 (source
7372 (origin
7373 (method url-fetch)
7374 (uri (bioconductor-uri "GOstats" version))
7375 (sha256
7376 (base32
7377 "00q39cyv4l28r6s9gjnd0qhl7h80vmwp4lpmchisqzj44xzyics9"))))
7378 (properties `((upstream-name . "GOstats")))
7379 (build-system r-build-system)
7380 (propagated-inputs
7381 `(("r-annotate" ,r-annotate)
7382 ("r-annotationdbi" ,r-annotationdbi)
7383 ("r-annotationforge" ,r-annotationforge)
7384 ("r-biobase" ,r-biobase)
7385 ("r-category" ,r-category)
7386 ("r-go-db" ,r-go-db)
7387 ("r-graph" ,r-graph)
7388 ("r-rgraphviz" ,r-rgraphviz)
7389 ("r-rbgl" ,r-rbgl)))
7390 (home-page "https://bioconductor.org/packages/GOstats")
7391 (synopsis "Tools for manipulating GO and microarrays")
7392 (description
7393 "This package provides a set of tools for interacting with GO and
7394 microarray data. A variety of basic manipulation tools for graphs, hypothesis
7395 testing and other simple calculations.")
7396 (license license:artistic2.0)))
7397
7398 (define-public r-shortread
7399 (package
7400 (name "r-shortread")
7401 (version "1.46.0")
7402 (source
7403 (origin
7404 (method url-fetch)
7405 (uri (bioconductor-uri "ShortRead" version))
7406 (sha256
7407 (base32
7408 "0l4kdln69y6yhln0xiv2jmpxg05fjcglln406p43a2bqvk2lr03d"))))
7409 (properties `((upstream-name . "ShortRead")))
7410 (build-system r-build-system)
7411 (inputs
7412 `(("zlib" ,zlib)))
7413 (propagated-inputs
7414 `(("r-biobase" ,r-biobase)
7415 ("r-biocgenerics" ,r-biocgenerics)
7416 ("r-biocparallel" ,r-biocparallel)
7417 ("r-biostrings" ,r-biostrings)
7418 ("r-genomeinfodb" ,r-genomeinfodb)
7419 ("r-genomicalignments" ,r-genomicalignments)
7420 ("r-genomicranges" ,r-genomicranges)
7421 ("r-hwriter" ,r-hwriter)
7422 ("r-iranges" ,r-iranges)
7423 ("r-lattice" ,r-lattice)
7424 ("r-latticeextra" ,r-latticeextra)
7425 ("r-rsamtools" ,r-rsamtools)
7426 ("r-s4vectors" ,r-s4vectors)
7427 ("r-xvector" ,r-xvector)
7428 ("r-zlibbioc" ,r-zlibbioc)))
7429 (home-page "https://bioconductor.org/packages/ShortRead")
7430 (synopsis "FASTQ input and manipulation tools")
7431 (description
7432 "This package implements sampling, iteration, and input of FASTQ files.
7433 It includes functions for filtering and trimming reads, and for generating a
7434 quality assessment report. Data are represented as
7435 @code{DNAStringSet}-derived objects, and easily manipulated for a diversity of
7436 purposes. The package also contains legacy support for early single-end,
7437 ungapped alignment formats.")
7438 (license license:artistic2.0)))
7439
7440 (define-public r-systempiper
7441 (package
7442 (name "r-systempiper")
7443 (version "1.22.0")
7444 (source
7445 (origin
7446 (method url-fetch)
7447 (uri (bioconductor-uri "systemPipeR" version))
7448 (sha256
7449 (base32
7450 "01ilhlrvy28jfdyxjria4024yryj5zgympgqznw17g3y3az78kk2"))))
7451 (properties `((upstream-name . "systemPipeR")))
7452 (build-system r-build-system)
7453 (propagated-inputs
7454 `(("r-annotate" ,r-annotate)
7455 ("r-assertthat" ,r-assertthat)
7456 ("r-batchtools" ,r-batchtools)
7457 ("r-biostrings" ,r-biostrings)
7458 ("r-deseq2" ,r-deseq2)
7459 ("r-dot" ,r-dot)
7460 ("r-edger" ,r-edger)
7461 ("r-genomicfeatures" ,r-genomicfeatures)
7462 ("r-genomicranges" ,r-genomicranges)
7463 ("r-ggplot2" ,r-ggplot2)
7464 ("r-go-db" ,r-go-db)
7465 ("r-gostats" ,r-gostats)
7466 ("r-limma" ,r-limma)
7467 ("r-magrittr" ,r-magrittr)
7468 ("r-pheatmap" ,r-pheatmap)
7469 ("r-rjson" ,r-rjson)
7470 ("r-rsamtools" ,r-rsamtools)
7471 ("r-rsvg" ,r-rsvg)
7472 ("r-shortread" ,r-shortread)
7473 ("r-stringr" ,r-stringr)
7474 ("r-summarizedexperiment" ,r-summarizedexperiment)
7475 ("r-yaml" ,r-yaml)
7476 ("r-variantannotation" ,r-variantannotation)))
7477 (native-inputs
7478 `(("r-knitr" ,r-knitr)))
7479 (home-page "https://github.com/tgirke/systemPipeR")
7480 (synopsis "Next generation sequencing workflow and reporting environment")
7481 (description
7482 "This R package provides tools for building and running automated
7483 end-to-end analysis workflows for a wide range of @dfn{next generation
7484 sequence} (NGS) applications such as RNA-Seq, ChIP-Seq, VAR-Seq and Ribo-Seq.
7485 Important features include a uniform workflow interface across different NGS
7486 applications, automated report generation, and support for running both R and
7487 command-line software, such as NGS aligners or peak/variant callers, on local
7488 computers or compute clusters. Efficient handling of complex sample sets and
7489 experimental designs is facilitated by a consistently implemented sample
7490 annotation infrastructure.")
7491 (license license:artistic2.0)))
7492
7493 (define-public r-grohmm
7494 (package
7495 (name "r-grohmm")
7496 (version "1.22.0")
7497 (source
7498 (origin
7499 (method url-fetch)
7500 (uri (bioconductor-uri "groHMM" version))
7501 (sha256
7502 (base32
7503 "04z9qq1xwdsaxbqhyld37w0ybvzly9pc1hcyrnwdbyjwd7n1fncb"))))
7504 (properties `((upstream-name . "groHMM")))
7505 (build-system r-build-system)
7506 (propagated-inputs
7507 `(("r-genomeinfodb" ,r-genomeinfodb)
7508 ("r-genomicalignments" ,r-genomicalignments)
7509 ("r-genomicranges" ,r-genomicranges)
7510 ("r-iranges" ,r-iranges)
7511 ("r-mass" ,r-mass)
7512 ("r-rtracklayer" ,r-rtracklayer)
7513 ("r-s4vectors" ,r-s4vectors)))
7514 (home-page "https://github.com/Kraus-Lab/groHMM")
7515 (synopsis "GRO-seq analysis pipeline")
7516 (description
7517 "This package provides a pipeline for the analysis of GRO-seq data.")
7518 (license license:gpl3+)))
7519
7520 (define-public vsearch
7521 (package
7522 (name "vsearch")
7523 (version "2.9.1")
7524 (source
7525 (origin
7526 (method git-fetch)
7527 (uri (git-reference
7528 (url "https://github.com/torognes/vsearch")
7529 (commit (string-append "v" version))))
7530 (file-name (git-file-name name version))
7531 (sha256
7532 (base32
7533 "0vhrpjfdf75ba04b24xknp41790cvcgwl0vgpy7qbzj5xh2521ss"))
7534 (patches (search-patches "vsearch-unbundle-cityhash.patch"))
7535 (snippet
7536 '(begin
7537 ;; Remove bundled cityhash sources. The vsearch source is adjusted
7538 ;; for this in the patch.
7539 (delete-file "src/city.h")
7540 (delete-file "src/citycrc.h")
7541 (delete-file "src/city.cc")
7542 #t))))
7543 (build-system gnu-build-system)
7544 (inputs
7545 `(("zlib" ,zlib)
7546 ("bzip2" ,bzip2)
7547 ("cityhash" ,cityhash)))
7548 (native-inputs
7549 `(("autoconf" ,autoconf)
7550 ("automake" ,automake)))
7551 (synopsis "Sequence search tools for metagenomics")
7552 (description
7553 "VSEARCH supports DNA sequence searching, clustering, chimera detection,
7554 dereplication, pairwise alignment, shuffling, subsampling, sorting and
7555 masking. The tool takes advantage of parallelism in the form of SIMD
7556 vectorization as well as multiple threads to perform accurate alignments at
7557 high speed. VSEARCH uses an optimal global aligner (full dynamic programming
7558 Needleman-Wunsch).")
7559 (home-page "https://github.com/torognes/vsearch")
7560 ;; vsearch uses non-portable SSE intrinsics so building fails on other
7561 ;; platforms.
7562 (supported-systems '("x86_64-linux"))
7563 ;; Dual licensed; also includes public domain source.
7564 (license (list license:gpl3 license:bsd-2))))
7565
7566 (define-public pardre
7567 (package
7568 (name "pardre")
7569 ;; The source of 1.1.5 changed in place, so we append "-1" to the version.
7570 (version "1.1.5-1")
7571 (source
7572 (origin
7573 (method url-fetch)
7574 (uri (string-append "mirror://sourceforge/pardre/ParDRe-rel"
7575 "1.1.5" ".tar.gz"))
7576 (sha256
7577 (base32
7578 "17j73nc0viq4f6qj50nrndsrif5d6b71q8fl87m54psiv0ilns2b"))))
7579 (build-system gnu-build-system)
7580 (arguments
7581 `(#:tests? #f ; no tests included
7582 #:phases
7583 (modify-phases %standard-phases
7584 (delete 'configure)
7585 (replace 'install
7586 (lambda* (#:key outputs #:allow-other-keys)
7587 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
7588 (install-file "ParDRe" bin)
7589 #t))))))
7590 (inputs
7591 `(("openmpi" ,openmpi)
7592 ("zlib" ,zlib)))
7593 (synopsis "Parallel tool to remove duplicate DNA reads")
7594 (description
7595 "ParDRe is a parallel tool to remove duplicate genetic sequence reads.
7596 Duplicate reads can be seen as identical or nearly identical sequences with
7597 some mismatches. This tool lets users avoid the analysis of unnecessary
7598 reads, reducing the time of subsequent procedures with the
7599 dataset (e.g. assemblies, mappings, etc.). The tool is implemented with MPI
7600 in order to exploit the parallel capabilities of multicore clusters. It is
7601 faster than multithreaded counterparts (end of 2015) for the same number of
7602 cores and, thanks to the message-passing technology, it can be executed on
7603 clusters.")
7604 (home-page "https://sourceforge.net/projects/pardre/")
7605 (license license:gpl3+)))
7606
7607 (define-public ruby-bio-kseq
7608 (package
7609 (name "ruby-bio-kseq")
7610 (version "0.0.2")
7611 (source
7612 (origin
7613 (method url-fetch)
7614 (uri (rubygems-uri "bio-kseq" version))
7615 (sha256
7616 (base32
7617 "1xyaha46khb5jc6wzkbf7040jagac49jbimn0vcrzid0j8jdikrz"))))
7618 (build-system ruby-build-system)
7619 (arguments
7620 `(#:test-target "spec"))
7621 (native-inputs
7622 `(("bundler" ,bundler)
7623 ("ruby-rspec" ,ruby-rspec)
7624 ("ruby-rake-compiler" ,ruby-rake-compiler)))
7625 (inputs
7626 `(("zlib" ,zlib)))
7627 (synopsis "Ruby bindings for the kseq.h FASTA/Q parser")
7628 (description
7629 "@code{Bio::Kseq} provides ruby bindings to the @code{kseq.h} FASTA and
7630 FASTQ parsing code. It provides a fast iterator over sequences and their
7631 quality scores.")
7632 (home-page "https://github.com/gusevfe/bio-kseq")
7633 (license license:expat)))
7634
7635 (define-public bio-locus
7636 (package
7637 (name "bio-locus")
7638 (version "0.0.7")
7639 (source
7640 (origin
7641 (method url-fetch)
7642 (uri (rubygems-uri "bio-locus" version))
7643 (sha256
7644 (base32
7645 "02vmrxyimkj9sahsp4zhfhnmbvz6dbbqz1y01vglf8cbwvkajfl0"))))
7646 (build-system ruby-build-system)
7647 (native-inputs
7648 `(("ruby-rspec" ,ruby-rspec)))
7649 (synopsis "Tool for fast querying of genome locations")
7650 (description
7651 "Bio-locus is a tabix-like tool for fast querying of genome
7652 locations. Many file formats in bioinformatics contain records that
7653 start with a chromosome name and a position for a SNP, or a start-end
7654 position for indels. Bio-locus allows users to store this chr+pos or
7655 chr+pos+alt information in a database.")
7656 (home-page "https://github.com/pjotrp/bio-locus")
7657 (license license:expat)))
7658
7659 (define-public bio-blastxmlparser
7660 (package
7661 (name "bio-blastxmlparser")
7662 (version "2.0.4")
7663 (source (origin
7664 (method url-fetch)
7665 (uri (rubygems-uri "bio-blastxmlparser" version))
7666 (sha256
7667 (base32
7668 "1wf4qygcmdjgcqm6flmvsagfr1gs9lf63mj32qv3z1f481zc5692"))))
7669 (build-system ruby-build-system)
7670 (propagated-inputs
7671 `(("ruby-bio-logger" ,ruby-bio-logger)
7672 ("ruby-nokogiri" ,ruby-nokogiri)))
7673 (inputs
7674 `(("ruby-rspec" ,ruby-rspec)))
7675 (synopsis "Fast big data BLAST XML parser and library")
7676 (description
7677 "Very fast parallel big-data BLAST XML file parser which can be used as
7678 command line utility. Use blastxmlparser to: Parse BLAST XML; filter output;
7679 generate FASTA, JSON, YAML, RDF, JSON-LD, HTML, CSV, tabular output etc.")
7680 (home-page "https://github.com/pjotrp/blastxmlparser")
7681 (license license:expat)))
7682
7683 (define-public bioruby
7684 (package
7685 (name "bioruby")
7686 (version "1.5.2")
7687 (source
7688 (origin
7689 (method url-fetch)
7690 (uri (rubygems-uri "bio" version))
7691 (sha256
7692 (base32
7693 "1d56amdsjv1mag7m6gv2w0xij8hqx1v5xbdjsix8sp3yp36m7938"))))
7694 (build-system ruby-build-system)
7695 (propagated-inputs
7696 `(("ruby-libxml" ,ruby-libxml)))
7697 (native-inputs
7698 `(("which" ,which))) ; required for test phase
7699 (arguments
7700 `(#:phases
7701 (modify-phases %standard-phases
7702 (add-before 'build 'patch-test-command
7703 (lambda _
7704 (substitute* '("test/functional/bio/test_command.rb")
7705 (("/bin/sh") (which "sh")))
7706 (substitute* '("test/functional/bio/test_command.rb")
7707 (("/bin/ls") (which "ls")))
7708 (substitute* '("test/functional/bio/test_command.rb")
7709 (("which") (which "which")))
7710 (substitute* '("test/functional/bio/test_command.rb",
7711 "test/data/command/echoarg2.sh")
7712 (("/bin/echo") (which "echo")))
7713 #t)))))
7714 (synopsis "Ruby library, shell and utilities for bioinformatics")
7715 (description "BioRuby comes with a comprehensive set of Ruby development
7716 tools and libraries for bioinformatics and molecular biology. BioRuby has
7717 components for sequence analysis, pathway analysis, protein modelling and
7718 phylogenetic analysis; it supports many widely used data formats and provides
7719 easy access to databases, external programs and public web services, including
7720 BLAST, KEGG, GenBank, MEDLINE and GO.")
7721 (home-page "http://bioruby.org/")
7722 ;; Code is released under Ruby license, except for setup
7723 ;; (LGPLv2.1+) and scripts in samples (which have GPL2 and GPL2+)
7724 (license (list license:ruby license:lgpl2.1+ license:gpl2+ ))))
7725
7726 (define-public r-biocviews
7727 (package
7728 (name "r-biocviews")
7729 (version "1.56.2")
7730 (source (origin
7731 (method url-fetch)
7732 (uri (bioconductor-uri "biocViews" version))
7733 (sha256
7734 (base32
7735 "0kw0qfm1fw5yv2rbz6x23431rh0fnzj66f2bls7j285biyjmmx7w"))))
7736 (properties
7737 `((upstream-name . "biocViews")))
7738 (build-system r-build-system)
7739 (propagated-inputs
7740 `(("r-biobase" ,r-biobase)
7741 ("r-biocmanager" ,r-biocmanager)
7742 ("r-graph" ,r-graph)
7743 ("r-rbgl" ,r-rbgl)
7744 ("r-rcurl" ,r-rcurl)
7745 ("r-xml" ,r-xml)
7746 ("r-runit" ,r-runit)))
7747 (home-page "https://bioconductor.org/packages/biocViews")
7748 (synopsis "Bioconductor package categorization helper")
7749 (description "The purpose of biocViews is to create HTML pages that
7750 categorize packages in a Bioconductor package repository according to keywords,
7751 also known as views, in a controlled vocabulary.")
7752 (license license:artistic2.0)))
7753
7754 (define-public r-biocstyle
7755 (package
7756 (name "r-biocstyle")
7757 (version "2.16.1")
7758 (source (origin
7759 (method url-fetch)
7760 (uri (bioconductor-uri "BiocStyle" version))
7761 (sha256
7762 (base32
7763 "09sz2bnbfbj8wz16k0q8xrvag9fldxqyp5vbg9pvd9skh28hv7c7"))))
7764 (properties
7765 `((upstream-name . "BiocStyle")))
7766 (build-system r-build-system)
7767 (propagated-inputs
7768 `(("r-biocmanager" ,r-biocmanager)
7769 ("r-bookdown" ,r-bookdown)
7770 ("r-knitr" ,r-knitr)
7771 ("r-rmarkdown" ,r-rmarkdown)
7772 ("r-yaml" ,r-yaml)))
7773 (native-inputs
7774 `(("r-knitr" ,r-knitr)))
7775 (home-page "https://bioconductor.org/packages/BiocStyle")
7776 (synopsis "Bioconductor formatting styles")
7777 (description "This package provides standard formatting styles for
7778 Bioconductor PDF and HTML documents. Package vignettes illustrate use and
7779 functionality.")
7780 (license license:artistic2.0)))
7781
7782 (define-public r-bioccheck
7783 (package
7784 (name "r-bioccheck")
7785 (version "1.24.0")
7786 (source (origin
7787 (method url-fetch)
7788 (uri (bioconductor-uri "BiocCheck" version))
7789 (sha256
7790 (base32
7791 "1p9ys18sn1crxw1iac2jdgqvwpb5hjd9nfxx0qn0ncrv0b550mny"))))
7792 (properties
7793 `((upstream-name . "BiocCheck")))
7794 (build-system r-build-system)
7795 (arguments
7796 '(#:phases
7797 (modify-phases %standard-phases
7798 ;; This package can be used by calling BiocCheck(<package>) from
7799 ;; within R, or by running R CMD BiocCheck <package>. This phase
7800 ;; makes sure the latter works. For this to work, the BiocCheck
7801 ;; script must be somewhere on the PATH (not the R bin directory).
7802 (add-after 'install 'install-bioccheck-subcommand
7803 (lambda* (#:key outputs #:allow-other-keys)
7804 (let* ((out (assoc-ref outputs "out"))
7805 (dest-dir (string-append out "/bin"))
7806 (script-dir
7807 (string-append out "/site-library/BiocCheck/script/")))
7808 (mkdir-p dest-dir)
7809 (symlink (string-append script-dir "/checkBadDeps.R")
7810 (string-append dest-dir "/checkBadDeps.R"))
7811 (symlink (string-append script-dir "/BiocCheck")
7812 (string-append dest-dir "/BiocCheck")))
7813 #t)))))
7814 (propagated-inputs
7815 `(("r-codetools" ,r-codetools)
7816 ("r-graph" ,r-graph)
7817 ("r-httr" ,r-httr)
7818 ("r-knitr" ,r-knitr)
7819 ("r-optparse" ,r-optparse)
7820 ("r-biocmanager" ,r-biocmanager)
7821 ("r-biocviews" ,r-biocviews)
7822 ("r-stringdist" ,r-stringdist)))
7823 (native-inputs
7824 `(("r-knitr" ,r-knitr)))
7825 (home-page "https://bioconductor.org/packages/BiocCheck")
7826 (synopsis "Executes Bioconductor-specific package checks")
7827 (description "This package contains tools to perform additional quality
7828 checks on R packages that are to be submitted to the Bioconductor repository.")
7829 (license license:artistic2.0)))
7830
7831 (define-public r-s4vectors
7832 (package
7833 (name "r-s4vectors")
7834 (version "0.26.1")
7835 (source (origin
7836 (method url-fetch)
7837 (uri (bioconductor-uri "S4Vectors" version))
7838 (sha256
7839 (base32
7840 "1ddr3ngyczx332zw9ai1a6h7442lgrbfcj8vrhvbkdkzqwj14xmb"))))
7841 (properties
7842 `((upstream-name . "S4Vectors")))
7843 (build-system r-build-system)
7844 (propagated-inputs
7845 `(("r-biocgenerics" ,r-biocgenerics)))
7846 (home-page "https://bioconductor.org/packages/S4Vectors")
7847 (synopsis "S4 implementation of vectors and lists")
7848 (description
7849 "The S4Vectors package defines the @code{Vector} and @code{List} virtual
7850 classes and a set of generic functions that extend the semantic of ordinary
7851 vectors and lists in R. Package developers can easily implement vector-like
7852 or list-like objects as concrete subclasses of @code{Vector} or @code{List}.
7853 In addition, a few low-level concrete subclasses of general interest (e.g.
7854 @code{DataFrame}, @code{Rle}, and @code{Hits}) are implemented in the
7855 S4Vectors package itself.")
7856 (license license:artistic2.0)))
7857
7858 (define-public r-iranges
7859 (package
7860 (name "r-iranges")
7861 (version "2.22.2")
7862 (source (origin
7863 (method url-fetch)
7864 (uri (bioconductor-uri "IRanges" version))
7865 (sha256
7866 (base32
7867 "1y24jw62806wp2afiyj1x6n00gj7d3323klqdypra9q43pg1w49d"))))
7868 (properties
7869 `((upstream-name . "IRanges")))
7870 (build-system r-build-system)
7871 (propagated-inputs
7872 `(("r-biocgenerics" ,r-biocgenerics)
7873 ("r-s4vectors" ,r-s4vectors)))
7874 (home-page "https://bioconductor.org/packages/IRanges")
7875 (synopsis "Infrastructure for manipulating intervals on sequences")
7876 (description
7877 "This package provides efficient low-level and highly reusable S4 classes
7878 for storing ranges of integers, RLE vectors (Run-Length Encoding), and, more
7879 generally, data that can be organized sequentially (formally defined as
7880 @code{Vector} objects), as well as views on these @code{Vector} objects.
7881 Efficient list-like classes are also provided for storing big collections of
7882 instances of the basic classes. All classes in the package use consistent
7883 naming and share the same rich and consistent \"Vector API\" as much as
7884 possible.")
7885 (license license:artistic2.0)))
7886
7887 (define-public r-genomeinfodbdata
7888 (package
7889 (name "r-genomeinfodbdata")
7890 (version "1.2.0")
7891 (source (origin
7892 (method url-fetch)
7893 ;; We cannot use bioconductor-uri here because this tarball is
7894 ;; located under "data/annotation/" instead of "bioc/".
7895 (uri (string-append "https://bioconductor.org/packages/release/"
7896 "data/annotation/src/contrib/GenomeInfoDbData_"
7897 version ".tar.gz"))
7898 (sha256
7899 (base32
7900 "0di6nlqpsyqf693k2na65ayqldih563x3zfrczpqc5q2hl5kg35c"))))
7901 (properties
7902 `((upstream-name . "GenomeInfoDbData")))
7903 (build-system r-build-system)
7904 (home-page "https://bioconductor.org/packages/GenomeInfoDbData")
7905 (synopsis "Species and taxonomy ID look up tables for GenomeInfoDb")
7906 (description "This package contains data for mapping between NCBI taxonomy
7907 ID and species. It is used by functions in the GenomeInfoDb package.")
7908 (license license:artistic2.0)))
7909
7910 (define-public r-genomeinfodb
7911 (package
7912 (name "r-genomeinfodb")
7913 (version "1.24.2")
7914 (source (origin
7915 (method url-fetch)
7916 (uri (bioconductor-uri "GenomeInfoDb" version))
7917 (sha256
7918 (base32
7919 "1cqs53p4m5q1dr59war72bccphy01ilw4xra24fmngrv4x32rznd"))))
7920 (properties
7921 `((upstream-name . "GenomeInfoDb")))
7922 (build-system r-build-system)
7923 (propagated-inputs
7924 `(("r-biocgenerics" ,r-biocgenerics)
7925 ("r-genomeinfodbdata" ,r-genomeinfodbdata)
7926 ("r-iranges" ,r-iranges)
7927 ("r-rcurl" ,r-rcurl)
7928 ("r-s4vectors" ,r-s4vectors)))
7929 (native-inputs
7930 `(("r-knitr" ,r-knitr)))
7931 (home-page "https://bioconductor.org/packages/GenomeInfoDb")
7932 (synopsis "Utilities for manipulating chromosome identifiers")
7933 (description
7934 "This package contains data and functions that define and allow
7935 translation between different chromosome sequence naming conventions (e.g.,
7936 \"chr1\" versus \"1\"), including a function that attempts to place sequence
7937 names in their natural, rather than lexicographic, order.")
7938 (license license:artistic2.0)))
7939
7940 (define-public r-edger
7941 (package
7942 (name "r-edger")
7943 (version "3.30.3")
7944 (source (origin
7945 (method url-fetch)
7946 (uri (bioconductor-uri "edgeR" version))
7947 (sha256
7948 (base32
7949 "1z9bkg08rgqn3jm2s4ndbj641w33wl8jd3j6m5if6h2nnw6011ic"))))
7950 (properties `((upstream-name . "edgeR")))
7951 (build-system r-build-system)
7952 (propagated-inputs
7953 `(("r-limma" ,r-limma)
7954 ("r-locfit" ,r-locfit)
7955 ("r-rcpp" ,r-rcpp)
7956 ("r-statmod" ,r-statmod))) ;for estimateDisp
7957 (home-page "http://bioinf.wehi.edu.au/edgeR")
7958 (synopsis "EdgeR does empirical analysis of digital gene expression data")
7959 (description "This package can do differential expression analysis of
7960 RNA-seq expression profiles with biological replication. It implements a range
7961 of statistical methodology based on the negative binomial distributions,
7962 including empirical Bayes estimation, exact tests, generalized linear models
7963 and quasi-likelihood tests. It be applied to differential signal analysis of
7964 other types of genomic data that produce counts, including ChIP-seq, SAGE and
7965 CAGE.")
7966 (license license:gpl2+)))
7967
7968 (define-public r-variantannotation
7969 (package
7970 (name "r-variantannotation")
7971 (version "1.34.0")
7972 (source (origin
7973 (method url-fetch)
7974 (uri (bioconductor-uri "VariantAnnotation" version))
7975 (sha256
7976 (base32
7977 "09y6ymwky839nb0y7y93w810hk9mvwqn7595q1276c28dkddiqvw"))))
7978 (properties
7979 `((upstream-name . "VariantAnnotation")))
7980 (inputs
7981 `(("zlib" ,zlib)))
7982 (propagated-inputs
7983 `(("r-annotationdbi" ,r-annotationdbi)
7984 ("r-biobase" ,r-biobase)
7985 ("r-biocgenerics" ,r-biocgenerics)
7986 ("r-biostrings" ,r-biostrings)
7987 ("r-bsgenome" ,r-bsgenome)
7988 ("r-dbi" ,r-dbi)
7989 ("r-genomeinfodb" ,r-genomeinfodb)
7990 ("r-genomicfeatures" ,r-genomicfeatures)
7991 ("r-genomicranges" ,r-genomicranges)
7992 ("r-iranges" ,r-iranges)
7993 ("r-summarizedexperiment" ,r-summarizedexperiment)
7994 ("r-rhtslib" ,r-rhtslib)
7995 ("r-rsamtools" ,r-rsamtools)
7996 ("r-rtracklayer" ,r-rtracklayer)
7997 ("r-s4vectors" ,r-s4vectors)
7998 ("r-xvector" ,r-xvector)
7999 ("r-zlibbioc" ,r-zlibbioc)))
8000 (build-system r-build-system)
8001 (home-page "https://bioconductor.org/packages/VariantAnnotation")
8002 (synopsis "Package for annotation of genetic variants")
8003 (description "This R package can annotate variants, compute amino acid
8004 coding changes and predict coding outcomes.")
8005 (license license:artistic2.0)))
8006
8007 (define-public r-limma
8008 (package
8009 (name "r-limma")
8010 (version "3.44.3")
8011 (source (origin
8012 (method url-fetch)
8013 (uri (bioconductor-uri "limma" version))
8014 (sha256
8015 (base32
8016 "09fnqxx4rzq5n447aqg2l6y0idfwgz2jxz99sifxsr2q8afzbcj6"))))
8017 (build-system r-build-system)
8018 (home-page "http://bioinf.wehi.edu.au/limma")
8019 (synopsis "Package for linear models for microarray and RNA-seq data")
8020 (description "This package can be used for the analysis of gene expression
8021 studies, especially the use of linear models for analysing designed experiments
8022 and the assessment of differential expression. The analysis methods apply to
8023 different technologies, including microarrays, RNA-seq, and quantitative PCR.")
8024 (license license:gpl2+)))
8025
8026 (define-public r-xvector
8027 (package
8028 (name "r-xvector")
8029 (version "0.28.0")
8030 (source (origin
8031 (method url-fetch)
8032 (uri (bioconductor-uri "XVector" version))
8033 (sha256
8034 (base32
8035 "11h1hszv4798q1gbx8r6zf8vlaqx4v9ql0lbh2xaxybp66a03pvc"))))
8036 (properties
8037 `((upstream-name . "XVector")))
8038 (build-system r-build-system)
8039 (arguments
8040 `(#:phases
8041 (modify-phases %standard-phases
8042 (add-after 'unpack 'use-system-zlib
8043 (lambda _
8044 (substitute* "DESCRIPTION"
8045 (("zlibbioc, ") ""))
8046 (substitute* "NAMESPACE"
8047 (("import\\(zlibbioc\\)") ""))
8048 #t)))))
8049 (inputs
8050 `(("zlib" ,zlib)))
8051 (propagated-inputs
8052 `(("r-biocgenerics" ,r-biocgenerics)
8053 ("r-iranges" ,r-iranges)
8054 ("r-s4vectors" ,r-s4vectors)))
8055 (home-page "https://bioconductor.org/packages/XVector")
8056 (synopsis "Representation and manpulation of external sequences")
8057 (description
8058 "This package provides memory efficient S4 classes for storing sequences
8059 \"externally\" (behind an R external pointer, or on disk).")
8060 (license license:artistic2.0)))
8061
8062 (define-public r-genomicranges
8063 (package
8064 (name "r-genomicranges")
8065 (version "1.40.0")
8066 (source (origin
8067 (method url-fetch)
8068 (uri (bioconductor-uri "GenomicRanges" version))
8069 (sha256
8070 (base32
8071 "0wn1zr2qq0rpv9z2wialgizn6xzdlcjg1w2kif67n53svz6vk2x1"))))
8072 (properties
8073 `((upstream-name . "GenomicRanges")))
8074 (build-system r-build-system)
8075 (propagated-inputs
8076 `(("r-biocgenerics" ,r-biocgenerics)
8077 ("r-genomeinfodb" ,r-genomeinfodb)
8078 ("r-iranges" ,r-iranges)
8079 ("r-s4vectors" ,r-s4vectors)
8080 ("r-xvector" ,r-xvector)))
8081 (native-inputs
8082 `(("r-knitr" ,r-knitr)))
8083 (home-page "https://bioconductor.org/packages/GenomicRanges")
8084 (synopsis "Representation and manipulation of genomic intervals")
8085 (description
8086 "This package provides tools to efficiently represent and manipulate
8087 genomic annotations and alignments is playing a central role when it comes to
8088 analyzing high-throughput sequencing data (a.k.a. NGS data). The
8089 GenomicRanges package defines general purpose containers for storing and
8090 manipulating genomic intervals and variables defined along a genome.")
8091 (license license:artistic2.0)))
8092
8093 (define-public r-biobase
8094 (package
8095 (name "r-biobase")
8096 (version "2.48.0")
8097 (source (origin
8098 (method url-fetch)
8099 (uri (bioconductor-uri "Biobase" version))
8100 (sha256
8101 (base32
8102 "13p3kgnxm7hbn8cy289kbhaiyfa6rxx7l1pbvajwqzbay3cxznqp"))))
8103 (properties
8104 `((upstream-name . "Biobase")))
8105 (build-system r-build-system)
8106 (propagated-inputs
8107 `(("r-biocgenerics" ,r-biocgenerics)))
8108 (home-page "https://bioconductor.org/packages/Biobase")
8109 (synopsis "Base functions for Bioconductor")
8110 (description
8111 "This package provides functions that are needed by many other packages
8112 on Bioconductor or which replace R functions.")
8113 (license license:artistic2.0)))
8114
8115 (define-public r-annotationdbi
8116 (package
8117 (name "r-annotationdbi")
8118 (version "1.50.3")
8119 (source (origin
8120 (method url-fetch)
8121 (uri (bioconductor-uri "AnnotationDbi" version))
8122 (sha256
8123 (base32
8124 "0qcxfn4pvaksna0nvxr74ysn2wzaxn732pkhd6ffrj8pwhkhy5p3"))))
8125 (properties
8126 `((upstream-name . "AnnotationDbi")))
8127 (build-system r-build-system)
8128 (propagated-inputs
8129 `(("r-biobase" ,r-biobase)
8130 ("r-biocgenerics" ,r-biocgenerics)
8131 ("r-dbi" ,r-dbi)
8132 ("r-iranges" ,r-iranges)
8133 ("r-rsqlite" ,r-rsqlite)
8134 ("r-s4vectors" ,r-s4vectors)))
8135 (native-inputs
8136 `(("r-knitr" ,r-knitr)))
8137 (home-page "https://bioconductor.org/packages/AnnotationDbi")
8138 (synopsis "Annotation database interface")
8139 (description
8140 "This package provides user interface and database connection code for
8141 annotation data packages using SQLite data storage.")
8142 (license license:artistic2.0)))
8143
8144 (define-public r-biomart
8145 (package
8146 (name "r-biomart")
8147 (version "2.44.1")
8148 (source (origin
8149 (method url-fetch)
8150 (uri (bioconductor-uri "biomaRt" version))
8151 (sha256
8152 (base32
8153 "0np4nh3gj60mgb6312z7x0z9fg5bhrhw872sp3dzgmqc8q8b84iz"))))
8154 (properties
8155 `((upstream-name . "biomaRt")))
8156 (build-system r-build-system)
8157 (propagated-inputs
8158 `(("r-annotationdbi" ,r-annotationdbi)
8159 ("r-biocfilecache" ,r-biocfilecache)
8160 ("r-httr" ,r-httr)
8161 ("r-openssl" ,r-openssl)
8162 ("r-progress" ,r-progress)
8163 ("r-rappdirs" ,r-rappdirs)
8164 ("r-stringr" ,r-stringr)
8165 ("r-xml" ,r-xml)))
8166 (native-inputs
8167 `(("r-knitr" ,r-knitr)))
8168 (home-page "https://bioconductor.org/packages/biomaRt")
8169 (synopsis "Interface to BioMart databases")
8170 (description
8171 "biomaRt provides an interface to a growing collection of databases
8172 implementing the @url{BioMart software suite, http://www.biomart.org}. The
8173 package enables retrieval of large amounts of data in a uniform way without
8174 the need to know the underlying database schemas or write complex SQL queries.
8175 Examples of BioMart databases are Ensembl, COSMIC, Uniprot, HGNC, Gramene,
8176 Wormbase and dbSNP mapped to Ensembl. These major databases give biomaRt
8177 users direct access to a diverse set of data and enable a wide range of
8178 powerful online queries from gene annotation to database mining.")
8179 (license license:artistic2.0)))
8180
8181 (define-public r-biocparallel
8182 (package
8183 (name "r-biocparallel")
8184 (version "1.22.0")
8185 (source (origin
8186 (method url-fetch)
8187 (uri (bioconductor-uri "BiocParallel" version))
8188 (sha256
8189 (base32
8190 "1lsg5xm5j3ly5k60fidzhkgqc9jgscyfkqngjvd9qp6yfzvsb82g"))))
8191 (properties
8192 `((upstream-name . "BiocParallel")))
8193 (build-system r-build-system)
8194 (propagated-inputs
8195 `(("r-futile-logger" ,r-futile-logger)
8196 ("r-snow" ,r-snow)
8197 ("r-bh" ,r-bh)))
8198 (native-inputs
8199 `(("r-knitr" ,r-knitr)))
8200 (home-page "https://bioconductor.org/packages/BiocParallel")
8201 (synopsis "Bioconductor facilities for parallel evaluation")
8202 (description
8203 "This package provides modified versions and novel implementation of
8204 functions for parallel evaluation, tailored to use with Bioconductor
8205 objects.")
8206 (license (list license:gpl2+ license:gpl3+))))
8207
8208 (define-public r-biostrings
8209 (package
8210 (name "r-biostrings")
8211 (version "2.56.0")
8212 (source (origin
8213 (method url-fetch)
8214 (uri (bioconductor-uri "Biostrings" version))
8215 (sha256
8216 (base32
8217 "0imhfz7dg8b3l5qzipjranqqshdsg2x6zc49drlhn8sc7j40cvi8"))))
8218 (properties
8219 `((upstream-name . "Biostrings")))
8220 (build-system r-build-system)
8221 (propagated-inputs
8222 `(("r-biocgenerics" ,r-biocgenerics)
8223 ("r-crayon" ,r-crayon)
8224 ("r-iranges" ,r-iranges)
8225 ("r-s4vectors" ,r-s4vectors)
8226 ("r-xvector" ,r-xvector)))
8227 (home-page "https://bioconductor.org/packages/Biostrings")
8228 (synopsis "String objects and algorithms for biological sequences")
8229 (description
8230 "This package provides memory efficient string containers, string
8231 matching algorithms, and other utilities, for fast manipulation of large
8232 biological sequences or sets of sequences.")
8233 (license license:artistic2.0)))
8234
8235 (define-public r-rsamtools
8236 (package
8237 (name "r-rsamtools")
8238 (version "2.4.0")
8239 (source (origin
8240 (method url-fetch)
8241 (uri (bioconductor-uri "Rsamtools" version))
8242 (sha256
8243 (base32
8244 "0z01z0s71f941k7sns46nyabps28c69d6jxx6sppjpc6h4vrw0vq"))))
8245 (properties
8246 `((upstream-name . "Rsamtools")))
8247 (build-system r-build-system)
8248 (arguments
8249 `(#:phases
8250 (modify-phases %standard-phases
8251 (add-after 'unpack 'use-system-zlib
8252 (lambda _
8253 (substitute* "DESCRIPTION"
8254 (("zlibbioc, ") ""))
8255 (substitute* "NAMESPACE"
8256 (("import\\(zlibbioc\\)") ""))
8257 #t)))))
8258 (inputs
8259 `(("zlib" ,zlib)))
8260 (propagated-inputs
8261 `(("r-biocgenerics" ,r-biocgenerics)
8262 ("r-biocparallel" ,r-biocparallel)
8263 ("r-biostrings" ,r-biostrings)
8264 ("r-bitops" ,r-bitops)
8265 ("r-genomeinfodb" ,r-genomeinfodb)
8266 ("r-genomicranges" ,r-genomicranges)
8267 ("r-iranges" ,r-iranges)
8268 ("r-rhtslib" ,r-rhtslib)
8269 ("r-s4vectors" ,r-s4vectors)
8270 ("r-xvector" ,r-xvector)))
8271 (home-page "https://bioconductor.org/packages/release/bioc/html/Rsamtools.html")
8272 (synopsis "Interface to samtools, bcftools, and tabix")
8273 (description
8274 "This package provides an interface to the @code{samtools},
8275 @code{bcftools}, and @code{tabix} utilities for manipulating SAM (Sequence
8276 Alignment / Map), FASTA, binary variant call (BCF) and compressed indexed
8277 tab-delimited (tabix) files.")
8278 (license license:expat)))
8279
8280 (define-public r-delayedarray
8281 (package
8282 (name "r-delayedarray")
8283 (version "0.14.1")
8284 (source (origin
8285 (method url-fetch)
8286 (uri (bioconductor-uri "DelayedArray" version))
8287 (sha256
8288 (base32
8289 "0xi0i621hrl7k9rsc8x8nc3ib74sk8hxhbyr2lxqclw45pk95s7v"))))
8290 (properties
8291 `((upstream-name . "DelayedArray")))
8292 (build-system r-build-system)
8293 (propagated-inputs
8294 `(("r-biocgenerics" ,r-biocgenerics)
8295 ("r-s4vectors" ,r-s4vectors)
8296 ("r-iranges" ,r-iranges)
8297 ("r-matrix" ,r-matrix)
8298 ("r-matrixstats" ,r-matrixstats)))
8299 (native-inputs
8300 `(("r-knitr" ,r-knitr)))
8301 (home-page "https://bioconductor.org/packages/DelayedArray")
8302 (synopsis "Delayed operations on array-like objects")
8303 (description
8304 "Wrapping an array-like object (typically an on-disk object) in a
8305 @code{DelayedArray} object allows one to perform common array operations on it
8306 without loading the object in memory. In order to reduce memory usage and
8307 optimize performance, operations on the object are either delayed or executed
8308 using a block processing mechanism. Note that this also works on in-memory
8309 array-like objects like @code{DataFrame} objects (typically with Rle columns),
8310 @code{Matrix} objects, and ordinary arrays and data frames.")
8311 (license license:artistic2.0)))
8312
8313 (define-public r-summarizedexperiment
8314 (package
8315 (name "r-summarizedexperiment")
8316 (version "1.18.2")
8317 (source (origin
8318 (method url-fetch)
8319 (uri (bioconductor-uri "SummarizedExperiment" version))
8320 (sha256
8321 (base32
8322 "1raw5ycigr6gjgzn3kx3jls5hzww10fhnwd8c17c20hmhirf13rw"))))
8323 (properties
8324 `((upstream-name . "SummarizedExperiment")))
8325 (build-system r-build-system)
8326 (propagated-inputs
8327 `(("r-biobase" ,r-biobase)
8328 ("r-biocgenerics" ,r-biocgenerics)
8329 ("r-delayedarray" ,r-delayedarray)
8330 ("r-genomeinfodb" ,r-genomeinfodb)
8331 ("r-genomicranges" ,r-genomicranges)
8332 ("r-iranges" ,r-iranges)
8333 ("r-matrix" ,r-matrix)
8334 ("r-s4vectors" ,r-s4vectors)))
8335 (native-inputs
8336 `(("r-knitr" ,r-knitr)))
8337 (home-page "https://bioconductor.org/packages/SummarizedExperiment")
8338 (synopsis "Container for representing genomic ranges by sample")
8339 (description
8340 "The SummarizedExperiment container contains one or more assays, each
8341 represented by a matrix-like object of numeric or other mode. The rows
8342 typically represent genomic ranges of interest and the columns represent
8343 samples.")
8344 (license license:artistic2.0)))
8345
8346 (define-public r-genomicalignments
8347 (package
8348 (name "r-genomicalignments")
8349 (version "1.24.0")
8350 (source (origin
8351 (method url-fetch)
8352 (uri (bioconductor-uri "GenomicAlignments" version))
8353 (sha256
8354 (base32
8355 "0v8k6d7frm5p48cmk4zik78cw9abz4inx0zhl4zrmmx31ifyvk8d"))))
8356 (properties
8357 `((upstream-name . "GenomicAlignments")))
8358 (build-system r-build-system)
8359 (propagated-inputs
8360 `(("r-biocgenerics" ,r-biocgenerics)
8361 ("r-biocparallel" ,r-biocparallel)
8362 ("r-biostrings" ,r-biostrings)
8363 ("r-genomeinfodb" ,r-genomeinfodb)
8364 ("r-genomicranges" ,r-genomicranges)
8365 ("r-iranges" ,r-iranges)
8366 ("r-rsamtools" ,r-rsamtools)
8367 ("r-s4vectors" ,r-s4vectors)
8368 ("r-summarizedexperiment" ,r-summarizedexperiment)))
8369 (home-page "https://bioconductor.org/packages/GenomicAlignments")
8370 (synopsis "Representation and manipulation of short genomic alignments")
8371 (description
8372 "This package provides efficient containers for storing and manipulating
8373 short genomic alignments (typically obtained by aligning short reads to a
8374 reference genome). This includes read counting, computing the coverage,
8375 junction detection, and working with the nucleotide content of the
8376 alignments.")
8377 (license license:artistic2.0)))
8378
8379 (define-public r-rtracklayer
8380 (package
8381 (name "r-rtracklayer")
8382 (version "1.48.0")
8383 (source (origin
8384 (method url-fetch)
8385 (uri (bioconductor-uri "rtracklayer" version))
8386 (sha256
8387 (base32
8388 "1zcgk92sidhy4y7ws9ms4nkkh2hnccfhfh53qgna0kma9jy4v5xf"))))
8389 (build-system r-build-system)
8390 (arguments
8391 `(#:phases
8392 (modify-phases %standard-phases
8393 (add-after 'unpack 'use-system-zlib
8394 (lambda _
8395 (substitute* "DESCRIPTION"
8396 ((" zlibbioc,") ""))
8397 (substitute* "NAMESPACE"
8398 (("import\\(zlibbioc\\)") ""))
8399 #t)))))
8400 (native-inputs
8401 `(("pkg-config" ,pkg-config)))
8402 (inputs
8403 `(("zlib" ,zlib)))
8404 (propagated-inputs
8405 `(("r-biocgenerics" ,r-biocgenerics)
8406 ("r-biostrings" ,r-biostrings)
8407 ("r-genomeinfodb" ,r-genomeinfodb)
8408 ("r-genomicalignments" ,r-genomicalignments)
8409 ("r-genomicranges" ,r-genomicranges)
8410 ("r-iranges" ,r-iranges)
8411 ("r-rcurl" ,r-rcurl)
8412 ("r-rsamtools" ,r-rsamtools)
8413 ("r-s4vectors" ,r-s4vectors)
8414 ("r-xml" ,r-xml)
8415 ("r-xvector" ,r-xvector)))
8416 (home-page "https://bioconductor.org/packages/rtracklayer")
8417 (synopsis "R interface to genome browsers and their annotation tracks")
8418 (description
8419 "rtracklayer is an extensible framework for interacting with multiple
8420 genome browsers (currently UCSC built-in) and manipulating annotation tracks
8421 in various formats (currently GFF, BED, bedGraph, BED15, WIG, BigWig and 2bit
8422 built-in). The user may export/import tracks to/from the supported browsers,
8423 as well as query and modify the browser state, such as the current viewport.")
8424 (license license:artistic2.0)))
8425
8426 (define-public r-genomicfeatures
8427 (package
8428 (name "r-genomicfeatures")
8429 (version "1.40.1")
8430 (source (origin
8431 (method url-fetch)
8432 (uri (bioconductor-uri "GenomicFeatures" version))
8433 (sha256
8434 (base32
8435 "0zm7q957g952qyfqmvf27sldsnq6sqd0wlgnqzvmxayg9pxh0l0z"))))
8436 (properties
8437 `((upstream-name . "GenomicFeatures")))
8438 (build-system r-build-system)
8439 (propagated-inputs
8440 `(("r-annotationdbi" ,r-annotationdbi)
8441 ("r-biobase" ,r-biobase)
8442 ("r-biocgenerics" ,r-biocgenerics)
8443 ("r-biomart" ,r-biomart)
8444 ("r-biostrings" ,r-biostrings)
8445 ("r-dbi" ,r-dbi)
8446 ("r-genomeinfodb" ,r-genomeinfodb)
8447 ("r-genomicranges" ,r-genomicranges)
8448 ("r-iranges" ,r-iranges)
8449 ("r-rcurl" ,r-rcurl)
8450 ("r-rsqlite" ,r-rsqlite)
8451 ("r-rtracklayer" ,r-rtracklayer)
8452 ("r-s4vectors" ,r-s4vectors)
8453 ("r-xvector" ,r-xvector)))
8454 (native-inputs
8455 `(("r-knitr" ,r-knitr)))
8456 (home-page "https://bioconductor.org/packages/GenomicFeatures")
8457 (synopsis "Tools for working with transcript centric annotations")
8458 (description
8459 "This package provides a set of tools and methods for making and
8460 manipulating transcript centric annotations. With these tools the user can
8461 easily download the genomic locations of the transcripts, exons and cds of a
8462 given organism, from either the UCSC Genome Browser or a BioMart
8463 database (more sources will be supported in the future). This information is
8464 then stored in a local database that keeps track of the relationship between
8465 transcripts, exons, cds and genes. Flexible methods are provided for
8466 extracting the desired features in a convenient format.")
8467 (license license:artistic2.0)))
8468
8469 (define-public r-go-db
8470 (package
8471 (name "r-go-db")
8472 (version "3.7.0")
8473 (source (origin
8474 (method url-fetch)
8475 (uri (string-append "https://www.bioconductor.org/packages/"
8476 "release/data/annotation/src/contrib/GO.db_"
8477 version ".tar.gz"))
8478 (sha256
8479 (base32
8480 "0i3wcf5h3n0dawzc1hy0kv74f06j80c47n4p3g3fmrcxlhi3jpa5"))))
8481 (properties
8482 `((upstream-name . "GO.db")))
8483 (build-system r-build-system)
8484 (propagated-inputs
8485 `(("r-annotationdbi" ,r-annotationdbi)))
8486 (home-page "https://bioconductor.org/packages/GO.db")
8487 (synopsis "Annotation maps describing the entire Gene Ontology")
8488 (description
8489 "The purpose of this GO.db annotation package is to provide detailed
8490 information about the latest version of the Gene Ontologies.")
8491 (license license:artistic2.0)))
8492
8493 (define-public r-topgo
8494 (package
8495 (name "r-topgo")
8496 (version "2.40.0")
8497 (source (origin
8498 (method url-fetch)
8499 (uri (bioconductor-uri "topGO" version))
8500 (sha256
8501 (base32
8502 "13rhbvn27sj75fklf1cnjaazacx8yyjlhqlnbp5zk157q6y5cwdr"))))
8503 (properties
8504 `((upstream-name . "topGO")))
8505 (build-system r-build-system)
8506 (propagated-inputs
8507 `(("r-annotationdbi" ,r-annotationdbi)
8508 ("r-dbi" ,r-dbi)
8509 ("r-biobase" ,r-biobase)
8510 ("r-biocgenerics" ,r-biocgenerics)
8511 ("r-go-db" ,r-go-db)
8512 ("r-graph" ,r-graph)
8513 ("r-lattice" ,r-lattice)
8514 ("r-matrixstats" ,r-matrixstats)
8515 ("r-sparsem" ,r-sparsem)))
8516 (home-page "https://bioconductor.org/packages/topGO")
8517 (synopsis "Enrichment analysis for gene ontology")
8518 (description
8519 "The topGO package provides tools for testing @dfn{gene ontology} (GO)
8520 terms while accounting for the topology of the GO graph. Different test
8521 statistics and different methods for eliminating local similarities and
8522 dependencies between GO terms can be implemented and applied.")
8523 ;; Any version of the LGPL applies.
8524 (license license:lgpl2.1+)))
8525
8526 (define-public r-bsgenome
8527 (package
8528 (name "r-bsgenome")
8529 (version "1.56.0")
8530 (source (origin
8531 (method url-fetch)
8532 (uri (bioconductor-uri "BSgenome" version))
8533 (sha256
8534 (base32
8535 "1jw8r1qm9fpg2s1cw2y4np243jjxm65j2xdy2785h8fc1b02msf6"))))
8536 (properties
8537 `((upstream-name . "BSgenome")))
8538 (build-system r-build-system)
8539 (propagated-inputs
8540 `(("r-biocgenerics" ,r-biocgenerics)
8541 ("r-biostrings" ,r-biostrings)
8542 ("r-genomeinfodb" ,r-genomeinfodb)
8543 ("r-genomicranges" ,r-genomicranges)
8544 ("r-iranges" ,r-iranges)
8545 ("r-matrixstats" ,r-matrixstats)
8546 ("r-rsamtools" ,r-rsamtools)
8547 ("r-rtracklayer" ,r-rtracklayer)
8548 ("r-s4vectors" ,r-s4vectors)
8549 ("r-xvector" ,r-xvector)))
8550 (home-page "https://bioconductor.org/packages/BSgenome")
8551 (synopsis "Infrastructure for Biostrings-based genome data packages")
8552 (description
8553 "This package provides infrastructure shared by all Biostrings-based
8554 genome data packages and support for efficient SNP representation.")
8555 (license license:artistic2.0)))
8556
8557 (define-public r-impute
8558 (package
8559 (name "r-impute")
8560 (version "1.62.0")
8561 (source (origin
8562 (method url-fetch)
8563 (uri (bioconductor-uri "impute" version))
8564 (sha256
8565 (base32
8566 "161p6l1cp3wwdynkxwvg0yhrh6yv20brdlplw5w5mavn4hf1nm0h"))))
8567 (native-inputs
8568 `(("gfortran" ,gfortran)))
8569 (build-system r-build-system)
8570 (home-page "https://bioconductor.org/packages/impute")
8571 (synopsis "Imputation for microarray data")
8572 (description
8573 "This package provides a function to impute missing gene expression
8574 microarray data, using nearest neighbor averaging.")
8575 (license license:gpl2+)))
8576
8577 (define-public r-seqpattern
8578 (package
8579 (name "r-seqpattern")
8580 (version "1.20.0")
8581 (source (origin
8582 (method url-fetch)
8583 (uri (bioconductor-uri "seqPattern" version))
8584 (sha256
8585 (base32
8586 "0f1yvx2ri1557rzjx08q5bgml1cvkm8hjl8xn1qi4rjs64sy6mci"))))
8587 (properties
8588 `((upstream-name . "seqPattern")))
8589 (build-system r-build-system)
8590 (propagated-inputs
8591 `(("r-biostrings" ,r-biostrings)
8592 ("r-genomicranges" ,r-genomicranges)
8593 ("r-iranges" ,r-iranges)
8594 ("r-kernsmooth" ,r-kernsmooth)
8595 ("r-plotrix" ,r-plotrix)))
8596 (home-page "https://bioconductor.org/packages/seqPattern")
8597 (synopsis "Visualising oligonucleotide patterns and motif occurrences")
8598 (description
8599 "This package provides tools to visualize oligonucleotide patterns and
8600 sequence motif occurrences across a large set of sequences centred at a common
8601 reference point and sorted by a user defined feature.")
8602 (license license:gpl3+)))
8603
8604 (define-public r-genomation
8605 (package
8606 (name "r-genomation")
8607 (version "1.20.0")
8608 (source (origin
8609 (method url-fetch)
8610 (uri (bioconductor-uri "genomation" version))
8611 (sha256
8612 (base32
8613 "1cy8kqwddiha5jy6nda1al956i4wncbgjkrxwijdb08cmka2sfwh"))))
8614 (build-system r-build-system)
8615 (propagated-inputs
8616 `(("r-biostrings" ,r-biostrings)
8617 ("r-bsgenome" ,r-bsgenome)
8618 ("r-data-table" ,r-data-table)
8619 ("r-genomeinfodb" ,r-genomeinfodb)
8620 ("r-genomicalignments" ,r-genomicalignments)
8621 ("r-genomicranges" ,r-genomicranges)
8622 ("r-ggplot2" ,r-ggplot2)
8623 ("r-gridbase" ,r-gridbase)
8624 ("r-impute" ,r-impute)
8625 ("r-iranges" ,r-iranges)
8626 ("r-matrixstats" ,r-matrixstats)
8627 ("r-plotrix" ,r-plotrix)
8628 ("r-plyr" ,r-plyr)
8629 ("r-rcpp" ,r-rcpp)
8630 ("r-readr" ,r-readr)
8631 ("r-reshape2" ,r-reshape2)
8632 ("r-rsamtools" ,r-rsamtools)
8633 ("r-rtracklayer" ,r-rtracklayer)
8634 ("r-runit" ,r-runit)
8635 ("r-s4vectors" ,r-s4vectors)
8636 ("r-seqpattern" ,r-seqpattern)))
8637 (native-inputs
8638 `(("r-knitr" ,r-knitr)))
8639 (home-page "https://bioinformatics.mdc-berlin.de/genomation/")
8640 (synopsis "Summary, annotation and visualization of genomic data")
8641 (description
8642 "This package provides a package for summary and annotation of genomic
8643 intervals. Users can visualize and quantify genomic intervals over
8644 pre-defined functional regions, such as promoters, exons, introns, etc. The
8645 genomic intervals represent regions with a defined chromosome position, which
8646 may be associated with a score, such as aligned reads from HT-seq experiments,
8647 TF binding sites, methylation scores, etc. The package can use any tabular
8648 genomic feature data as long as it has minimal information on the locations of
8649 genomic intervals. In addition, it can use BAM or BigWig files as input.")
8650 (license license:artistic2.0)))
8651
8652 (define-public r-genomationdata
8653 (package
8654 (name "r-genomationdata")
8655 (version "1.14.0")
8656 (source (origin
8657 (method url-fetch)
8658 ;; We cannot use bioconductor-uri here because this tarball is
8659 ;; located under "data/annotation/" instead of "bioc/".
8660 (uri (string-append "https://bioconductor.org/packages/"
8661 "release/data/experiment/src/contrib/"
8662 "genomationData_" version ".tar.gz"))
8663 (sha256
8664 (base32
8665 "10xyb8akjrhmak2i0mnv1agny2ipy364q9nlibyplpzc7vdb6bw7"))))
8666 (build-system r-build-system)
8667 ;; As this package provides little more than large data files, it doesn't
8668 ;; make sense to build substitutes.
8669 (arguments `(#:substitutable? #f))
8670 (native-inputs
8671 `(("r-knitr" ,r-knitr)))
8672 (home-page "https://bioinformatics.mdc-berlin.de/genomation/")
8673 (synopsis "Experimental data for use with the genomation package")
8674 (description
8675 "This package contains experimental genetic data for use with the
8676 genomation package. Included are Chip Seq, Methylation and Cage data,
8677 downloaded from Encode.")
8678 (license license:gpl3+)))
8679
8680 (define-public r-seqlogo
8681 (package
8682 (name "r-seqlogo")
8683 (version "1.54.3")
8684 (source
8685 (origin
8686 (method url-fetch)
8687 (uri (bioconductor-uri "seqLogo" version))
8688 (sha256
8689 (base32
8690 "09kkxir305fv8z2yyihvspkrzclxbw1cx5mvhfkrhl10rap6662j"))))
8691 (properties `((upstream-name . "seqLogo")))
8692 (build-system r-build-system)
8693 (home-page "https://bioconductor.org/packages/seqLogo")
8694 (synopsis "Sequence logos for DNA sequence alignments")
8695 (description
8696 "seqLogo takes the position weight matrix of a DNA sequence motif and
8697 plots the corresponding sequence logo as introduced by Schneider and
8698 Stephens (1990).")
8699 (license license:lgpl2.0+)))
8700
8701 (define-public r-motifrg
8702 (package
8703 (name "r-motifrg")
8704 (version "1.31.0")
8705 (source
8706 (origin
8707 (method url-fetch)
8708 (uri (bioconductor-uri "motifRG" version))
8709 (sha256
8710 (base32
8711 "1ml6zyzlk8yjbnfhga2qnw8nl43rankvka0kc1yljxr2b66aqbhn"))))
8712 (properties `((upstream-name . "motifRG")))
8713 (build-system r-build-system)
8714 (propagated-inputs
8715 `(("r-biostrings" ,r-biostrings)
8716 ("r-bsgenome" ,r-bsgenome)
8717 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8718 ("r-iranges" ,r-iranges)
8719 ("r-seqlogo" ,r-seqlogo)
8720 ("r-xvector" ,r-xvector)))
8721 (home-page "https://bioconductor.org/packages/motifRG")
8722 (synopsis "Discover motifs in high throughput sequencing data")
8723 (description
8724 "This package provides tools for discriminative motif discovery in high
8725 throughput genetic sequencing data sets using regression methods.")
8726 (license license:artistic2.0)))
8727
8728 (define-public r-zlibbioc
8729 (package
8730 (name "r-zlibbioc")
8731 (version "1.34.0")
8732 (source (origin
8733 (method url-fetch)
8734 (uri (bioconductor-uri "zlibbioc" version))
8735 (sha256
8736 (base32
8737 "0j1l052jb2cwc1nifxzwknc9csagf4f2d092zs0i95dz0rma89l0"))))
8738 (properties
8739 `((upstream-name . "zlibbioc")))
8740 (build-system r-build-system)
8741 (home-page "https://bioconductor.org/packages/zlibbioc")
8742 (synopsis "Provider for zlib-1.2.5 to R packages")
8743 (description "This package uses the source code of zlib-1.2.5 to create
8744 libraries for systems that do not have these available via other means.")
8745 (license license:artistic2.0)))
8746
8747 (define-public r-r4rna
8748 (package
8749 (name "r-r4rna")
8750 (version "0.1.4")
8751 (source
8752 (origin
8753 (method url-fetch)
8754 (uri (string-append "http://www.e-rna.org/r-chie/files/R4RNA_"
8755 version ".tar.gz"))
8756 (sha256
8757 (base32
8758 "1p0i78wh76jfgmn9jphbwwaz6yy6pipzfg08xs54cxavxg2j81p5"))))
8759 (build-system r-build-system)
8760 (propagated-inputs
8761 `(("r-optparse" ,r-optparse)
8762 ("r-rcolorbrewer" ,r-rcolorbrewer)))
8763 (home-page "https://www.e-rna.org/r-chie/index.cgi")
8764 (synopsis "Analysis framework for RNA secondary structure")
8765 (description
8766 "The R4RNA package aims to be a general framework for the analysis of RNA
8767 secondary structure and comparative analysis in R.")
8768 (license license:gpl3+)))
8769
8770 (define-public r-rhtslib
8771 (package
8772 (name "r-rhtslib")
8773 (version "1.20.0")
8774 (source
8775 (origin
8776 (method url-fetch)
8777 (uri (bioconductor-uri "Rhtslib" version))
8778 (sha256
8779 (base32
8780 "186r7icrkzrni1c4n33ip7dlsfgys7hnqf0simvxrpl3yhh3ygdi"))))
8781 (properties `((upstream-name . "Rhtslib")))
8782 (build-system r-build-system)
8783 ;; Without this a temporary directory ends up in the Rhtslib.so binary,
8784 ;; which makes R abort the build.
8785 (arguments '(#:configure-flags '("--no-staged-install")))
8786 (propagated-inputs
8787 `(("curl" ,curl)
8788 ("r-zlibbioc" ,r-zlibbioc)))
8789 (inputs
8790 `(("zlib" ,zlib)))
8791 (native-inputs
8792 `(("pkg-config" ,pkg-config)
8793 ("r-knitr" ,r-knitr)))
8794 (home-page "https://github.com/nhayden/Rhtslib")
8795 (synopsis "High-throughput sequencing library as an R package")
8796 (description
8797 "This package provides the HTSlib C library for high-throughput
8798 nucleotide sequence analysis. The package is primarily useful to developers
8799 of other R packages who wish to make use of HTSlib.")
8800 (license license:lgpl2.0+)))
8801
8802 (define-public r-bamsignals
8803 (package
8804 (name "r-bamsignals")
8805 (version "1.20.0")
8806 (source
8807 (origin
8808 (method url-fetch)
8809 (uri (bioconductor-uri "bamsignals" version))
8810 (sha256
8811 (base32
8812 "0p858xxfv79yc8b3lq58zl9f00irvbn3czsd8wdi5040xg42m402"))))
8813 (build-system r-build-system)
8814 (propagated-inputs
8815 `(("r-biocgenerics" ,r-biocgenerics)
8816 ("r-genomicranges" ,r-genomicranges)
8817 ("r-iranges" ,r-iranges)
8818 ("r-rcpp" ,r-rcpp)
8819 ("r-rhtslib" ,r-rhtslib)
8820 ("r-zlibbioc" ,r-zlibbioc)))
8821 (inputs
8822 `(("zlib" ,zlib)))
8823 (native-inputs
8824 `(("r-knitr" ,r-knitr)))
8825 (home-page "https://bioconductor.org/packages/bamsignals")
8826 (synopsis "Extract read count signals from bam files")
8827 (description
8828 "This package efficiently obtains count vectors from indexed bam
8829 files. It counts the number of nucleotide sequence reads in given genomic
8830 ranges and it computes reads profiles and coverage profiles. It also handles
8831 paired-end data.")
8832 (license license:gpl2+)))
8833
8834 (define-public r-rcas
8835 (package
8836 (name "r-rcas")
8837 (version "1.14.0")
8838 (source (origin
8839 (method url-fetch)
8840 (uri (bioconductor-uri "RCAS" version))
8841 (sha256
8842 (base32
8843 "0f812pgv3ys1zv4n9sqkgm01hj4cdd0i0h85dqbhkwd94zl6cavl"))))
8844 (properties `((upstream-name . "RCAS")))
8845 (build-system r-build-system)
8846 (propagated-inputs
8847 `(("r-biocgenerics" ,r-biocgenerics)
8848 ("r-biostrings" ,r-biostrings)
8849 ("r-bsgenome" ,r-bsgenome)
8850 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8851 ("r-cowplot" ,r-cowplot)
8852 ("r-data-table" ,r-data-table)
8853 ("r-dt" ,r-dt)
8854 ("r-genomation" ,r-genomation)
8855 ("r-genomeinfodb" ,r-genomeinfodb)
8856 ("r-genomicfeatures" ,r-genomicfeatures)
8857 ("r-genomicranges" ,r-genomicranges)
8858 ("r-ggplot2" ,r-ggplot2)
8859 ("r-ggseqlogo" ,r-ggseqlogo)
8860 ("r-gprofiler2" ,r-gprofiler2)
8861 ("r-iranges" ,r-iranges)
8862 ("r-pbapply" ,r-pbapply)
8863 ("r-pheatmap" ,r-pheatmap)
8864 ("r-plotly" ,r-plotly)
8865 ("r-plotrix" ,r-plotrix)
8866 ("r-proxy" ,r-proxy)
8867 ("r-ranger" ,r-ranger)
8868 ("r-rsqlite" ,r-rsqlite)
8869 ("r-rtracklayer" ,r-rtracklayer)
8870 ("r-rmarkdown" ,r-rmarkdown)
8871 ("r-s4vectors" ,r-s4vectors)
8872 ("pandoc" ,pandoc)))
8873 (native-inputs
8874 `(("r-knitr" ,r-knitr)))
8875 (synopsis "RNA-centric annotation system")
8876 (description
8877 "RCAS aims to be a standalone RNA-centric annotation system that provides
8878 intuitive reports and publication-ready graphics. This package provides the R
8879 library implementing most of the pipeline's features.")
8880 (home-page "https://github.com/BIMSBbioinfo/RCAS")
8881 (license license:artistic2.0)))
8882
8883 (define-public rcas-web
8884 (package
8885 (name "rcas-web")
8886 (version "0.1.0")
8887 (source
8888 (origin
8889 (method url-fetch)
8890 (uri (string-append "https://github.com/BIMSBbioinfo/rcas-web/"
8891 "releases/download/v" version
8892 "/rcas-web-" version ".tar.gz"))
8893 (sha256
8894 (base32
8895 "0wq951aj45gqki1bickg876i993lmawkp8x24agg264br5x716db"))))
8896 (build-system gnu-build-system)
8897 (arguments
8898 `(#:phases
8899 (modify-phases %standard-phases
8900 (add-before 'configure 'find-RCAS
8901 ;; The configure script can't find non-1.3.x versions of RCAS because
8902 ;; its R expression ‘1.10.1 >= 1.3.4’ evaluates to false.
8903 (lambda _
8904 (substitute* "configure"
8905 (("1\\.3\\.4") "0.0.0"))
8906 #t))
8907 (add-after 'install 'wrap-executable
8908 (lambda* (#:key inputs outputs #:allow-other-keys)
8909 (let* ((out (assoc-ref outputs "out"))
8910 (json (assoc-ref inputs "guile-json"))
8911 (redis (assoc-ref inputs "guile-redis"))
8912 (path (string-append
8913 json "/share/guile/site/2.2:"
8914 redis "/share/guile/site/2.2")))
8915 (wrap-program (string-append out "/bin/rcas-web")
8916 `("GUILE_LOAD_PATH" ":" = (,path))
8917 `("GUILE_LOAD_COMPILED_PATH" ":" = (,path))
8918 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
8919 #t)))))
8920 (inputs
8921 `(("r-minimal" ,r-minimal)
8922 ("r-rcas" ,r-rcas)
8923 ("guile" ,guile-2.2)
8924 ("guile-json" ,guile-json-1)
8925 ("guile-redis" ,guile2.2-redis)))
8926 (native-inputs
8927 `(("pkg-config" ,pkg-config)))
8928 (home-page "https://github.com/BIMSBbioinfo/rcas-web")
8929 (synopsis "Web interface for RNA-centric annotation system (RCAS)")
8930 (description "This package provides a simple web interface for the
8931 @dfn{RNA-centric annotation system} (RCAS).")
8932 (license license:agpl3+)))
8933
8934 (define-public r-mutationalpatterns
8935 (package
8936 (name "r-mutationalpatterns")
8937 (version "2.0.0")
8938 (source
8939 (origin
8940 (method url-fetch)
8941 (uri (bioconductor-uri "MutationalPatterns" version))
8942 (sha256
8943 (base32
8944 "02lyjiabyhmifycksvpcx29a0pb7z9xjw0hgg8n0sd0dy3afqhcm"))))
8945 (build-system r-build-system)
8946 (propagated-inputs
8947 `(("r-biocgenerics" ,r-biocgenerics)
8948 ("r-biostrings" ,r-biostrings)
8949 ;; These two packages are suggested packages
8950 ("r-bsgenome-hsapiens-1000g" ,r-bsgenome-hsapiens-1000genomes-hs37d5)
8951 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8952 ("r-genomicranges" ,r-genomicranges)
8953 ("r-genomeinfodb" ,r-genomeinfodb)
8954 ("r-ggplot2" ,r-ggplot2)
8955 ("r-iranges" ,r-iranges)
8956 ("r-nmf" ,r-nmf)
8957 ("r-plyr" ,r-plyr)
8958 ("r-pracma" ,r-pracma)
8959 ("r-reshape2" ,r-reshape2)
8960 ("r-cowplot" ,r-cowplot)
8961 ("r-ggdendro" ,r-ggdendro)
8962 ("r-s4vectors" ,r-s4vectors)
8963 ("r-summarizedexperiment" ,r-summarizedexperiment)
8964 ("r-variantannotation" ,r-variantannotation)))
8965 (home-page "https://bioconductor.org/packages/MutationalPatterns/")
8966 (synopsis "Extract and visualize mutational patterns in genomic data")
8967 (description "This package provides an extensive toolset for the
8968 characterization and visualization of a wide range of mutational patterns
8969 in SNV base substitution data.")
8970 (license license:expat)))
8971
8972 (define-public r-chipkernels
8973 (let ((commit "c9cfcacb626b1221094fb3490ea7bac0fd625372")
8974 (revision "1"))
8975 (package
8976 (name "r-chipkernels")
8977 (version (string-append "1.1-" revision "." (string-take commit 9)))
8978 (source
8979 (origin
8980 (method git-fetch)
8981 (uri (git-reference
8982 (url "https://github.com/ManuSetty/ChIPKernels")
8983 (commit commit)))
8984 (file-name (string-append name "-" version))
8985 (sha256
8986 (base32
8987 "14bj5qhjm1hsm9ay561nfbqi9wxsa7y487df2idsaaf6z10nw4v0"))))
8988 (build-system r-build-system)
8989 (propagated-inputs
8990 `(("r-iranges" ,r-iranges)
8991 ("r-xvector" ,r-xvector)
8992 ("r-biostrings" ,r-biostrings)
8993 ("r-bsgenome" ,r-bsgenome)
8994 ("r-gtools" ,r-gtools)
8995 ("r-genomicranges" ,r-genomicranges)
8996 ("r-sfsmisc" ,r-sfsmisc)
8997 ("r-kernlab" ,r-kernlab)
8998 ("r-s4vectors" ,r-s4vectors)
8999 ("r-biocgenerics" ,r-biocgenerics)))
9000 (home-page "https://github.com/ManuSetty/ChIPKernels")
9001 (synopsis "Build string kernels for DNA Sequence analysis")
9002 (description "ChIPKernels is an R package for building different string
9003 kernels used for DNA Sequence analysis. A dictionary of the desired kernel
9004 must be built and this dictionary can be used for determining kernels for DNA
9005 Sequences.")
9006 (license license:gpl2+))))
9007
9008 (define-public r-seqgl
9009 (package
9010 (name "r-seqgl")
9011 (version "1.1.4")
9012 (source
9013 (origin
9014 (method git-fetch)
9015 (uri (git-reference
9016 (url "https://github.com/ManuSetty/SeqGL")
9017 (commit version)))
9018 (file-name (git-file-name name version))
9019 (sha256
9020 (base32
9021 "1r6ywvhxl3ffv48lgj7sbd582mcc6dha3ksgc2qjlvjrnkbj3799"))))
9022 (build-system r-build-system)
9023 (propagated-inputs
9024 `(("r-biostrings" ,r-biostrings)
9025 ("r-chipkernels" ,r-chipkernels)
9026 ("r-genomicranges" ,r-genomicranges)
9027 ("r-spams" ,r-spams)
9028 ("r-wgcna" ,r-wgcna)
9029 ("r-fastcluster" ,r-fastcluster)))
9030 (home-page "https://github.com/ManuSetty/SeqGL")
9031 (synopsis "Group lasso for Dnase/ChIP-seq data")
9032 (description "SeqGL is a group lasso based algorithm to extract
9033 transcription factor sequence signals from ChIP, DNase and ATAC-seq profiles.
9034 This package presents a method which uses group lasso to discriminate between
9035 bound and non bound genomic regions to accurately identify transcription
9036 factors bound at the specific regions.")
9037 (license license:gpl2+)))
9038
9039 (define-public r-tximport
9040 (package
9041 (name "r-tximport")
9042 (version "1.16.1")
9043 (source (origin
9044 (method url-fetch)
9045 (uri (bioconductor-uri "tximport" version))
9046 (sha256
9047 (base32
9048 "1x9959lkjl2h869rgd1b30q1idxzjkr1fyqbpndqk3kbi4q2gr40"))))
9049 (build-system r-build-system)
9050 (native-inputs
9051 `(("r-knitr" ,r-knitr)))
9052 (home-page "https://bioconductor.org/packages/tximport")
9053 (synopsis "Import and summarize transcript-level estimates for gene-level analysis")
9054 (description
9055 "This package provides tools to import transcript-level abundance,
9056 estimated counts and transcript lengths, and to summarize them into matrices
9057 for use with downstream gene-level analysis packages. Average transcript
9058 length, weighted by sample-specific transcript abundance estimates, is
9059 provided as a matrix which can be used as an offset for different expression
9060 of gene-level counts.")
9061 (license license:gpl2+)))
9062
9063 (define-public r-rhdf5
9064 (package
9065 (name "r-rhdf5")
9066 (version "2.32.3")
9067 (source (origin
9068 (method url-fetch)
9069 (uri (bioconductor-uri "rhdf5" version))
9070 (sha256
9071 (base32
9072 "0fnx60dpf6s2qwq48lg98g18g8k7wgm66pw0kamlbb7l2hnwycvf"))))
9073 (build-system r-build-system)
9074 (propagated-inputs
9075 `(("r-rhdf5lib" ,r-rhdf5lib)))
9076 (inputs
9077 `(("zlib" ,zlib)))
9078 (native-inputs
9079 `(("r-knitr" ,r-knitr)))
9080 (home-page "https://bioconductor.org/packages/rhdf5")
9081 (synopsis "HDF5 interface to R")
9082 (description
9083 "This R/Bioconductor package provides an interface between HDF5 and R.
9084 HDF5's main features are the ability to store and access very large and/or
9085 complex datasets and a wide variety of metadata on mass storage (disk) through
9086 a completely portable file format. The rhdf5 package is thus suited for the
9087 exchange of large and/or complex datasets between R and other software
9088 package, and for letting R applications work on datasets that are larger than
9089 the available RAM.")
9090 (license license:artistic2.0)))
9091
9092 (define-public r-annotationfilter
9093 (package
9094 (name "r-annotationfilter")
9095 (version "1.12.0")
9096 (source (origin
9097 (method url-fetch)
9098 (uri (bioconductor-uri "AnnotationFilter" version))
9099 (sha256
9100 (base32
9101 "18kh1xrhpwb48s1qj4f1v8af3jmw49pnbp5afi2myn9894hxg0cs"))))
9102 (properties
9103 `((upstream-name . "AnnotationFilter")))
9104 (build-system r-build-system)
9105 (propagated-inputs
9106 `(("r-genomicranges" ,r-genomicranges)
9107 ("r-lazyeval" ,r-lazyeval)))
9108 (native-inputs
9109 `(("r-knitr" ,r-knitr)))
9110 (home-page "https://github.com/Bioconductor/AnnotationFilter")
9111 (synopsis "Facilities for filtering Bioconductor annotation resources")
9112 (description
9113 "This package provides classes and other infrastructure to implement
9114 filters for manipulating Bioconductor annotation resources. The filters are
9115 used by @code{ensembldb}, @code{Organism.dplyr}, and other packages.")
9116 (license license:artistic2.0)))
9117
9118 (define-public emboss
9119 (package
9120 (name "emboss")
9121 (version "6.5.7")
9122 (source (origin
9123 (method url-fetch)
9124 (uri (string-append "ftp://emboss.open-bio.org/pub/EMBOSS/old/"
9125 (version-major+minor version) ".0/"
9126 "EMBOSS-" version ".tar.gz"))
9127 (sha256
9128 (base32
9129 "0vsmz96gc411yj2iyzdrsmg4l2n1nhgmp7vrgzlxx3xixv9xbf0q"))))
9130 (build-system gnu-build-system)
9131 (arguments
9132 `(#:configure-flags
9133 (list (string-append "--with-hpdf="
9134 (assoc-ref %build-inputs "libharu")))
9135 #:phases
9136 (modify-phases %standard-phases
9137 (add-after 'unpack 'fix-checks
9138 (lambda _
9139 ;; The PNGDRIVER tests check for the presence of libgd, libpng
9140 ;; and zlib, but assume that they are all found at the same
9141 ;; prefix.
9142 (substitute* "configure.in"
9143 (("CHECK_PNGDRIVER")
9144 "LIBS=\"$LIBS -lgd -lpng -lz -lm\"
9145 AC_DEFINE([PLD_png], [1], [Define to 1 if PNG support is available])
9146 AM_CONDITIONAL(AMPNG, true)"))
9147 #t))
9148 (add-after 'fix-checks 'disable-update-check
9149 (lambda _
9150 ;; At build time there is no connection to the Internet, so
9151 ;; looking for updates will not work.
9152 (substitute* "Makefile.am"
9153 (("\\$\\(bindir\\)/embossupdate") ""))
9154 #t))
9155 (add-after 'disable-update-check 'autogen
9156 (lambda _ (invoke "autoreconf" "-vif") #t)))))
9157 (inputs
9158 `(("perl" ,perl)
9159 ("libpng" ,libpng)
9160 ("gd" ,gd)
9161 ("libx11" ,libx11)
9162 ("libharu" ,libharu)
9163 ("zlib" ,zlib)))
9164 (native-inputs
9165 `(("autoconf" ,autoconf)
9166 ("automake" ,automake)
9167 ("libtool" ,libtool)
9168 ("pkg-config" ,pkg-config)))
9169 (home-page "http://emboss.sourceforge.net")
9170 (synopsis "Molecular biology analysis suite")
9171 (description "EMBOSS is the \"European Molecular Biology Open Software
9172 Suite\". EMBOSS is an analysis package specially developed for the needs of
9173 the molecular biology (e.g. EMBnet) user community. The software
9174 automatically copes with data in a variety of formats and even allows
9175 transparent retrieval of sequence data from the web. It also provides a
9176 number of libraries for the development of software in the field of molecular
9177 biology. EMBOSS also integrates a range of currently available packages and
9178 tools for sequence analysis into a seamless whole.")
9179 (license license:gpl2+)))
9180
9181 (define-public bits
9182 (let ((revision "1")
9183 (commit "3cc4567896d9d6442923da944beb704750a08d2d"))
9184 (package
9185 (name "bits")
9186 ;; The version is 2.13.0 even though no release archives have been
9187 ;; published as yet.
9188 (version (string-append "2.13.0-" revision "." (string-take commit 9)))
9189 (source (origin
9190 (method git-fetch)
9191 (uri (git-reference
9192 (url "https://github.com/arq5x/bits")
9193 (commit commit)))
9194 (file-name (string-append name "-" version "-checkout"))
9195 (sha256
9196 (base32
9197 "17n2kffk4kmhivd8c98g2vr6y1s23vbg4sxlxs689wni66797hbs"))))
9198 (build-system gnu-build-system)
9199 (arguments
9200 `(#:tests? #f ;no tests included
9201 #:phases
9202 (modify-phases %standard-phases
9203 (delete 'configure)
9204 (add-after 'unpack 'remove-cuda
9205 (lambda _
9206 (substitute* "Makefile"
9207 ((".*_cuda") "")
9208 (("(bits_test_intersections) \\\\" _ match) match))
9209 #t))
9210 (replace 'install
9211 (lambda* (#:key outputs #:allow-other-keys)
9212 (copy-recursively
9213 "bin" (string-append (assoc-ref outputs "out") "/bin"))
9214 #t)))))
9215 (inputs
9216 `(("gsl" ,gsl)
9217 ("zlib" ,zlib)))
9218 (home-page "https://github.com/arq5x/bits")
9219 (synopsis "Implementation of binary interval search algorithm")
9220 (description "This package provides an implementation of the
9221 BITS (Binary Interval Search) algorithm, an approach to interval set
9222 intersection. It is especially suited for the comparison of diverse genomic
9223 datasets and the exploration of large datasets of genome
9224 intervals (e.g. genes, sequence alignments).")
9225 (license license:gpl2))))
9226
9227 (define-public piranha
9228 ;; There is no release tarball for the latest version. The latest commit is
9229 ;; older than one year at the time of this writing.
9230 (let ((revision "1")
9231 (commit "0466d364b71117d01e4471b74c514436cc281233"))
9232 (package
9233 (name "piranha")
9234 (version (string-append "1.2.1-" revision "." (string-take commit 9)))
9235 (source (origin
9236 (method git-fetch)
9237 (uri (git-reference
9238 (url "https://github.com/smithlabcode/piranha")
9239 (commit commit)))
9240 (file-name (git-file-name name version))
9241 (sha256
9242 (base32
9243 "117dc0zf20c61jam69sk4abl57ah6yi6i7qra7d7y5zrbgk12q5n"))))
9244 (build-system gnu-build-system)
9245 (arguments
9246 `(#:test-target "test"
9247 #:phases
9248 (modify-phases %standard-phases
9249 (add-after 'unpack 'copy-smithlab-cpp
9250 (lambda* (#:key inputs #:allow-other-keys)
9251 (for-each (lambda (file)
9252 (install-file file "./src/smithlab_cpp/"))
9253 (find-files (assoc-ref inputs "smithlab-cpp")))
9254 #t))
9255 (add-after 'install 'install-to-store
9256 (lambda* (#:key outputs #:allow-other-keys)
9257 (let* ((out (assoc-ref outputs "out"))
9258 (bin (string-append out "/bin")))
9259 (for-each (lambda (file)
9260 (install-file file bin))
9261 (find-files "bin" ".*")))
9262 #t)))
9263 #:configure-flags
9264 (list (string-append "--with-bam_tools_headers="
9265 (assoc-ref %build-inputs "bamtools") "/include/bamtools")
9266 (string-append "--with-bam_tools_library="
9267 (assoc-ref %build-inputs "bamtools") "/lib/bamtools"))))
9268 (inputs
9269 `(("bamtools" ,bamtools)
9270 ("samtools" ,samtools-0.1)
9271 ("gsl" ,gsl)
9272 ("smithlab-cpp"
9273 ,(let ((commit "3723e2db438c51501d0423429ff396c3035ba46a"))
9274 (origin
9275 (method git-fetch)
9276 (uri (git-reference
9277 (url "https://github.com/smithlabcode/smithlab_cpp")
9278 (commit commit)))
9279 (file-name (string-append "smithlab_cpp-" commit "-checkout"))
9280 (sha256
9281 (base32
9282 "0l4gvbwslw5ngziskja41c00x1r06l3yidv7y0xw9djibhykzy0g")))))))
9283 (native-inputs
9284 `(("python" ,python-2)))
9285 (home-page "https://github.com/smithlabcode/piranha")
9286 (synopsis "Peak-caller for CLIP-seq and RIP-seq data")
9287 (description
9288 "Piranha is a peak-caller for genomic data produced by CLIP-seq and
9289 RIP-seq experiments. It takes input in BED or BAM format and identifies
9290 regions of statistically significant read enrichment. Additional covariates
9291 may optionally be provided to further inform the peak-calling process.")
9292 (license license:gpl3+))))
9293
9294 (define-public pepr
9295 (package
9296 (name "pepr")
9297 (version "1.0.9")
9298 (source (origin
9299 (method url-fetch)
9300 (uri (pypi-uri "PePr" version))
9301 (sha256
9302 (base32
9303 "0qxjfdpl1b1y53nccws2d85f6k74zwmx8y8sd9rszcqhfayx6gdx"))))
9304 (build-system python-build-system)
9305 (arguments
9306 `(#:python ,python-2 ; python2 only
9307 #:tests? #f)) ; no tests included
9308 (propagated-inputs
9309 `(("python2-numpy" ,python2-numpy)
9310 ("python2-scipy" ,python2-scipy)
9311 ("python2-pysam" ,python2-pysam)))
9312 (home-page "https://github.com/shawnzhangyx/PePr")
9313 (synopsis "Peak-calling and prioritization pipeline for ChIP-Seq data")
9314 (description
9315 "PePr is a ChIP-Seq peak calling or differential binding analysis tool
9316 that is primarily designed for data with biological replicates. It uses a
9317 negative binomial distribution to model the read counts among the samples in
9318 the same group, and look for consistent differences between ChIP and control
9319 group or two ChIP groups run under different conditions.")
9320 (license license:gpl3+)))
9321
9322 (define-public filevercmp
9323 (let ((commit "1a9b779b93d0b244040274794d402106907b71b7"))
9324 (package
9325 (name "filevercmp")
9326 (version (string-append "0-1." (string-take commit 7)))
9327 (source (origin
9328 (method git-fetch)
9329 (uri (git-reference
9330 (url "https://github.com/ekg/filevercmp")
9331 (commit commit)))
9332 (file-name (git-file-name name commit))
9333 (sha256
9334 (base32
9335 "1j9vxsy0y050v59h0q1d6501fcw1kjvj0d18l1xk2zyg0jzj247c"))))
9336 (build-system gnu-build-system)
9337 (arguments
9338 `(#:tests? #f ; There are no tests to run.
9339 #:phases
9340 (modify-phases %standard-phases
9341 (delete 'configure) ; There is no configure phase.
9342 (replace 'install
9343 (lambda* (#:key outputs #:allow-other-keys)
9344 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
9345 (install-file "filevercmp" bin)
9346 #t))))))
9347 (home-page "https://github.com/ekg/filevercmp")
9348 (synopsis "This program compares version strings")
9349 (description "This program compares version strings. It intends to be a
9350 replacement for strverscmp.")
9351 (license license:gpl3+))))
9352
9353 (define-public multiqc
9354 (package
9355 (name "multiqc")
9356 (version "1.5")
9357 (source
9358 (origin
9359 (method url-fetch)
9360 (uri (pypi-uri "multiqc" version))
9361 (sha256
9362 (base32
9363 "02iihfl0w0hpnr4pa0sbd1y9qxrg3ycyhjp5lidkcrqh1lmzs3zy"))))
9364 (build-system python-build-system)
9365 (propagated-inputs
9366 `(("python-jinja2" ,python-jinja2)
9367 ("python-simplejson" ,python-simplejson)
9368 ("python-pyyaml" ,python-pyyaml)
9369 ("python-click" ,python-click)
9370 ("python-spectra" ,python-spectra)
9371 ("python-requests" ,python-requests)
9372 ("python-markdown" ,python-markdown)
9373 ("python-lzstring" ,python-lzstring)
9374 ("python-matplotlib" ,python-matplotlib)
9375 ("python-numpy" ,python-numpy)
9376 ;; MultQC checks for the presence of nose at runtime.
9377 ("python-nose" ,python-nose)))
9378 (arguments
9379 `(#:phases
9380 (modify-phases %standard-phases
9381 (add-after 'unpack 'relax-requirements
9382 (lambda _
9383 (substitute* "setup.py"
9384 ;; MultiQC 1.5 ‘requires’ a version of python-matplotlib older
9385 ;; than the one in Guix, but should work fine with 2.2.2.
9386 ;; See <https://github.com/ewels/MultiQC/issues/725> and
9387 ;; <https://github.com/ewels/MultiQC/issues/732> for details.
9388 (("['\"]matplotlib.*?['\"]")
9389 "'matplotlib'"))
9390 #t)))))
9391 (home-page "https://multiqc.info")
9392 (synopsis "Aggregate bioinformatics analysis reports")
9393 (description
9394 "MultiQC is a tool to aggregate bioinformatics results across many
9395 samples into a single report. It contains modules for a large number of
9396 common bioinformatics tools.")
9397 (license license:gpl3+)))
9398
9399 (define-public variant-tools
9400 (package
9401 (name "variant-tools")
9402 (version "3.1.2")
9403 (source
9404 (origin
9405 (method git-fetch)
9406 (uri (git-reference
9407 (url "https://github.com/vatlab/varianttools")
9408 ;; There is no tag corresponding to version 3.1.2
9409 (commit "813ae4a90d25b69abc8a40f4f70441fe09015249")))
9410 (file-name (git-file-name name version))
9411 (sha256
9412 (base32
9413 "12ibdmksj7icyqhks4xyvd61bygk4pjmxn618kp6vgk1af01y34g"))))
9414 (build-system python-build-system)
9415 (inputs
9416 `(("boost" ,boost)
9417 ("c-blosc" ,c-blosc)
9418 ("gsl" ,gsl)
9419 ("hdf5" ,hdf5)
9420 ("hdf5-blosc" ,hdf5-blosc)
9421 ("python-cython" ,python-cython)
9422 ("zlib" ,zlib)))
9423 (propagated-inputs
9424 `(("python-numpy" ,python-numpy)
9425 ("python-pycurl" ,python-pycurl)
9426 ("python-pyzmq" ,python-pyzmq)
9427 ("python-scipy" ,python-scipy)
9428 ("python-tables" ,python-tables)))
9429 (home-page "https://vatlab.github.io/vat-docs/")
9430 (synopsis "Analyze genetic variants from Next-Gen sequencing studies")
9431 (description
9432 "Variant tools is a tool for the manipulation, annotation,
9433 selection, simulation, and analysis of variants in the context of next-gen
9434 sequencing analysis. Unlike some other tools used for next-gen sequencing
9435 analysis, variant tools is project based and provides a whole set of tools to
9436 manipulate and analyze genetic variants.")
9437 (license license:gpl3+)))
9438
9439 (define-public r-chipseq
9440 (package
9441 (name "r-chipseq")
9442 (version "1.38.0")
9443 (source
9444 (origin
9445 (method url-fetch)
9446 (uri (bioconductor-uri "chipseq" version))
9447 (sha256
9448 (base32
9449 "0lh859s0aq73vac1phcgagf6n000qgq2xsk0bmfr61n5swifml2a"))))
9450 (build-system r-build-system)
9451 (propagated-inputs
9452 `(("r-biocgenerics" ,r-biocgenerics)
9453 ("r-genomicranges" ,r-genomicranges)
9454 ("r-iranges" ,r-iranges)
9455 ("r-lattice" ,r-lattice)
9456 ("r-s4vectors" ,r-s4vectors)
9457 ("r-shortread" ,r-shortread)))
9458 (home-page "https://bioconductor.org/packages/chipseq")
9459 (synopsis "Package for analyzing ChIPseq data")
9460 (description
9461 "This package provides tools for processing short read data from ChIPseq
9462 experiments.")
9463 (license license:artistic2.0)))
9464
9465 (define-public r-copyhelper
9466 (package
9467 (name "r-copyhelper")
9468 (version "1.6.0")
9469 (source
9470 (origin
9471 (method url-fetch)
9472 (uri (string-append "https://bioconductor.org/packages/release/"
9473 "data/experiment/src/contrib/CopyhelpeR_"
9474 version ".tar.gz"))
9475 (sha256
9476 (base32
9477 "0x7cyynjmxls9as2gg0iyp9x5fpalxmdjq914ss7i84i9zyk5bhq"))))
9478 (properties `((upstream-name . "CopyhelpeR")))
9479 (build-system r-build-system)
9480 (home-page "https://bioconductor.org/packages/CopyhelpeR/")
9481 (synopsis "Helper files for CopywriteR")
9482 (description
9483 "This package contains the helper files that are required to run the
9484 Bioconductor package CopywriteR. It contains pre-assembled 1kb bin GC-content
9485 and mappability files for the reference genomes hg18, hg19, hg38, mm9 and
9486 mm10. In addition, it contains a blacklist filter to remove regions that
9487 display copy number variation. Files are stored as GRanges objects from the
9488 GenomicRanges Bioconductor package.")
9489 (license license:gpl2)))
9490
9491 (define-public r-copywriter
9492 (package
9493 (name "r-copywriter")
9494 (version "2.20.0")
9495 (source
9496 (origin
9497 (method url-fetch)
9498 (uri (bioconductor-uri "CopywriteR" version))
9499 (sha256
9500 (base32
9501 "0c36wpv0rygkbqpf3dwh5xmc3lr7p8lrdzsq2fbbpw04skl6i7m2"))))
9502 (properties `((upstream-name . "CopywriteR")))
9503 (build-system r-build-system)
9504 (propagated-inputs
9505 `(("r-biocparallel" ,r-biocparallel)
9506 ("r-chipseq" ,r-chipseq)
9507 ("r-copyhelper" ,r-copyhelper)
9508 ("r-data-table" ,r-data-table)
9509 ("r-dnacopy" ,r-dnacopy)
9510 ("r-futile-logger" ,r-futile-logger)
9511 ("r-genomeinfodb" ,r-genomeinfodb)
9512 ("r-genomicalignments" ,r-genomicalignments)
9513 ("r-genomicranges" ,r-genomicranges)
9514 ("r-gtools" ,r-gtools)
9515 ("r-iranges" ,r-iranges)
9516 ("r-matrixstats" ,r-matrixstats)
9517 ("r-rsamtools" ,r-rsamtools)
9518 ("r-s4vectors" ,r-s4vectors)))
9519 (home-page "https://github.com/PeeperLab/CopywriteR")
9520 (synopsis "Copy number information from targeted sequencing")
9521 (description
9522 "CopywriteR extracts DNA copy number information from targeted sequencing
9523 by utilizing off-target reads. It allows for extracting uniformly distributed
9524 copy number information, can be used without reference, and can be applied to
9525 sequencing data obtained from various techniques including chromatin
9526 immunoprecipitation and target enrichment on small gene panels. Thereby,
9527 CopywriteR constitutes a widely applicable alternative to available copy
9528 number detection tools.")
9529 (license license:gpl2)))
9530
9531 (define-public r-methylkit
9532 (package
9533 (name "r-methylkit")
9534 (version "1.14.2")
9535 (source (origin
9536 (method url-fetch)
9537 (uri (bioconductor-uri "methylKit" version))
9538 (sha256
9539 (base32
9540 "1qr13d2712ypbn96ijic2z5adr5dsd61kzscx7shw6vyj360rlm5"))))
9541 (properties `((upstream-name . "methylKit")))
9542 (build-system r-build-system)
9543 (propagated-inputs
9544 `(("r-data-table" ,r-data-table)
9545 ("r-emdbook" ,r-emdbook)
9546 ("r-fastseg" ,r-fastseg)
9547 ("r-genomeinfodb" ,r-genomeinfodb)
9548 ("r-genomicranges" ,r-genomicranges)
9549 ("r-gtools" ,r-gtools)
9550 ("r-iranges" ,r-iranges)
9551 ("r-kernsmooth" ,r-kernsmooth)
9552 ("r-limma" ,r-limma)
9553 ("r-mclust" ,r-mclust)
9554 ("r-mgcv" ,r-mgcv)
9555 ("r-qvalue" ,r-qvalue)
9556 ("r-r-utils" ,r-r-utils)
9557 ("r-rcpp" ,r-rcpp)
9558 ("r-rhtslib" ,r-rhtslib)
9559 ("r-rsamtools" ,r-rsamtools)
9560 ("r-rtracklayer" ,r-rtracklayer)
9561 ("r-s4vectors" ,r-s4vectors)
9562 ("r-zlibbioc" ,r-zlibbioc)))
9563 (native-inputs
9564 `(("r-knitr" ,r-knitr))) ; for vignettes
9565 (inputs
9566 `(("zlib" ,zlib)))
9567 (home-page "https://github.com/al2na/methylKit")
9568 (synopsis
9569 "DNA methylation analysis from high-throughput bisulfite sequencing results")
9570 (description
9571 "MethylKit is an R package for DNA methylation analysis and annotation
9572 from high-throughput bisulfite sequencing. The package is designed to deal
9573 with sequencing data from @dfn{Reduced representation bisulfite
9574 sequencing} (RRBS) and its variants, but also target-capture methods and whole
9575 genome bisulfite sequencing. It also has functions to analyze base-pair
9576 resolution 5hmC data from experimental protocols such as oxBS-Seq and
9577 TAB-Seq.")
9578 (license license:artistic2.0)))
9579
9580 (define-public r-sva
9581 (package
9582 (name "r-sva")
9583 (version "3.36.0")
9584 (source
9585 (origin
9586 (method url-fetch)
9587 (uri (bioconductor-uri "sva" version))
9588 (sha256
9589 (base32
9590 "0xa1lm0k1a6nig90mab6xh4gln88rbs5l1cdr6ik6agg7jhs7ji4"))))
9591 (build-system r-build-system)
9592 (propagated-inputs
9593 `(("r-edger" ,r-edger)
9594 ("r-genefilter" ,r-genefilter)
9595 ("r-mgcv" ,r-mgcv)
9596 ("r-biocparallel" ,r-biocparallel)
9597 ("r-matrixstats" ,r-matrixstats)
9598 ("r-limma" ,r-limma)))
9599 (home-page "https://bioconductor.org/packages/sva")
9600 (synopsis "Surrogate variable analysis")
9601 (description
9602 "This package contains functions for removing batch effects and other
9603 unwanted variation in high-throughput experiment. It also contains functions
9604 for identifying and building surrogate variables for high-dimensional data
9605 sets. Surrogate variables are covariates constructed directly from
9606 high-dimensional data like gene expression/RNA sequencing/methylation/brain
9607 imaging data that can be used in subsequent analyses to adjust for unknown,
9608 unmodeled, or latent sources of noise.")
9609 (license license:artistic2.0)))
9610
9611 (define-public r-raremetals2
9612 (package
9613 (name "r-raremetals2")
9614 (version "0.1")
9615 (source
9616 (origin
9617 (method url-fetch)
9618 (uri (string-append "http://genome.sph.umich.edu/w/images/"
9619 "b/b7/RareMETALS2_" version ".tar.gz"))
9620 (sha256
9621 (base32
9622 "0z5ljcgvnm06ja9lm85a3cniq7slxcy37aqqkxrdidr79an5fs4s"))))
9623 (properties `((upstream-name . "RareMETALS2")))
9624 (build-system r-build-system)
9625 (propagated-inputs
9626 `(("r-seqminer" ,r-seqminer)
9627 ("r-mvtnorm" ,r-mvtnorm)
9628 ("r-mass" ,r-mass)
9629 ("r-compquadform" ,r-compquadform)
9630 ("r-getopt" ,r-getopt)))
9631 (home-page "http://genome.sph.umich.edu/wiki/RareMETALS2")
9632 (synopsis "Analyze gene-level association tests for binary trait")
9633 (description
9634 "The R package rareMETALS2 is an extension of the R package rareMETALS.
9635 It was designed to meta-analyze gene-level association tests for binary trait.
9636 While rareMETALS offers a near-complete solution for meta-analysis of
9637 gene-level tests for quantitative trait, it does not offer the optimal
9638 solution for binary trait. The package rareMETALS2 offers improved features
9639 for analyzing gene-level association tests in meta-analyses for binary
9640 trait.")
9641 (license license:gpl3)))
9642
9643 (define-public r-protgenerics
9644 (package
9645 (name "r-protgenerics")
9646 (version "1.20.0")
9647 (source
9648 (origin
9649 (method url-fetch)
9650 (uri (bioconductor-uri "ProtGenerics" version))
9651 (sha256
9652 (base32
9653 "14xzdh7vxss8vmrw91hcwrszdn3ikm71mah8875b2lkrkrfzbl73"))))
9654 (properties `((upstream-name . "ProtGenerics")))
9655 (build-system r-build-system)
9656 (home-page "https://github.com/lgatto/ProtGenerics")
9657 (synopsis "S4 generic functions for proteomics infrastructure")
9658 (description
9659 "This package provides S4 generic functions needed by Bioconductor
9660 proteomics packages.")
9661 (license license:artistic2.0)))
9662
9663 (define-public r-mzr
9664 (package
9665 (name "r-mzr")
9666 (version "2.22.0")
9667 (source
9668 (origin
9669 (method url-fetch)
9670 (uri (bioconductor-uri "mzR" version))
9671 (sha256
9672 (base32
9673 "1r8j8yiz5lcan7j4h37sza2kwczl48dxvld3da3ghjjq67cdc2cm"))
9674 (modules '((guix build utils)))
9675 (snippet
9676 '(begin
9677 (delete-file-recursively "src/boost")
9678 #t))))
9679 (properties `((upstream-name . "mzR")))
9680 (build-system r-build-system)
9681 (arguments
9682 `(#:phases
9683 (modify-phases %standard-phases
9684 (add-after 'unpack 'use-system-boost
9685 (lambda _
9686 (substitute* "src/Makevars"
9687 (("\\./boost/libs.*") "")
9688 (("ARCH_OBJS=" line)
9689 (string-append line
9690 "\nARCH_LIBS=-lboost_system -lboost_regex \
9691 -lboost_iostreams -lboost_thread -lboost_filesystem -lboost_chrono\n")))
9692 #t)))))
9693 (inputs
9694 `(;; Our default boost package won't work here, unfortunately, even with
9695 ;; mzR version 2.22.0.
9696 ("boost" ,boost-for-mysql) ; use this instead of the bundled boost sources
9697 ("zlib" ,zlib)))
9698 (propagated-inputs
9699 `(("r-biobase" ,r-biobase)
9700 ("r-biocgenerics" ,r-biocgenerics)
9701 ("r-ncdf4" ,r-ncdf4)
9702 ("r-protgenerics" ,r-protgenerics)
9703 ("r-rcpp" ,r-rcpp)
9704 ("r-rhdf5lib" ,r-rhdf5lib)
9705 ("r-zlibbioc" ,r-zlibbioc)))
9706 (native-inputs
9707 `(("r-knitr" ,r-knitr)))
9708 (home-page "https://github.com/sneumann/mzR/")
9709 (synopsis "Parser for mass spectrometry data files")
9710 (description
9711 "The mzR package provides a unified API to the common file formats and
9712 parsers available for mass spectrometry data. It comes with a wrapper for the
9713 ISB random access parser for mass spectrometry mzXML, mzData and mzML files.
9714 The package contains the original code written by the ISB, and a subset of the
9715 proteowizard library for mzML and mzIdentML. The netCDF reading code has
9716 previously been used in XCMS.")
9717 (license license:artistic2.0)))
9718
9719 (define-public r-affyio
9720 (package
9721 (name "r-affyio")
9722 (version "1.58.0")
9723 (source
9724 (origin
9725 (method url-fetch)
9726 (uri (bioconductor-uri "affyio" version))
9727 (sha256
9728 (base32
9729 "0j1f61409yq6hmkqrpzamfm7dx35rlq33ccs7wb1qcqx3d3nb75q"))))
9730 (build-system r-build-system)
9731 (propagated-inputs
9732 `(("r-zlibbioc" ,r-zlibbioc)))
9733 (inputs
9734 `(("zlib" ,zlib)))
9735 (home-page "https://github.com/bmbolstad/affyio")
9736 (synopsis "Tools for parsing Affymetrix data files")
9737 (description
9738 "This package provides routines for parsing Affymetrix data files based
9739 upon file format information. The primary focus is on accessing the CEL and
9740 CDF file formats.")
9741 (license license:lgpl2.0+)))
9742
9743 (define-public r-affy
9744 (package
9745 (name "r-affy")
9746 (version "1.66.0")
9747 (source
9748 (origin
9749 (method url-fetch)
9750 (uri (bioconductor-uri "affy" version))
9751 (sha256
9752 (base32
9753 "0m6hkyjxmsf80n3anhwh9k26csxczv6v92fkb7klnchdski61pyc"))))
9754 (build-system r-build-system)
9755 (propagated-inputs
9756 `(("r-affyio" ,r-affyio)
9757 ("r-biobase" ,r-biobase)
9758 ("r-biocgenerics" ,r-biocgenerics)
9759 ("r-biocmanager" ,r-biocmanager)
9760 ("r-preprocesscore" ,r-preprocesscore)
9761 ("r-zlibbioc" ,r-zlibbioc)))
9762 (inputs
9763 `(("zlib" ,zlib)))
9764 (home-page "https://bioconductor.org/packages/affy")
9765 (synopsis "Methods for affymetrix oligonucleotide arrays")
9766 (description
9767 "This package contains functions for exploratory oligonucleotide array
9768 analysis.")
9769 (license license:lgpl2.0+)))
9770
9771 (define-public r-vsn
9772 (package
9773 (name "r-vsn")
9774 (version "3.56.0")
9775 (source
9776 (origin
9777 (method url-fetch)
9778 (uri (bioconductor-uri "vsn" version))
9779 (sha256
9780 (base32
9781 "1k82dikrv1gcync5y1131wg7z1kxv2z2jl4nndg20bixc3398h58"))))
9782 (build-system r-build-system)
9783 (propagated-inputs
9784 `(("r-affy" ,r-affy)
9785 ("r-biobase" ,r-biobase)
9786 ("r-ggplot2" ,r-ggplot2)
9787 ("r-lattice" ,r-lattice)
9788 ("r-limma" ,r-limma)))
9789 (native-inputs
9790 `(("r-knitr" ,r-knitr))) ; for vignettes
9791 (home-page "https://bioconductor.org/packages/release/bioc/html/vsn.html")
9792 (synopsis "Variance stabilization and calibration for microarray data")
9793 (description
9794 "The package implements a method for normalising microarray intensities,
9795 and works for single- and multiple-color arrays. It can also be used for data
9796 from other technologies, as long as they have similar format. The method uses
9797 a robust variant of the maximum-likelihood estimator for an
9798 additive-multiplicative error model and affine calibration. The model
9799 incorporates data calibration step (a.k.a. normalization), a model for the
9800 dependence of the variance on the mean intensity and a variance stabilizing
9801 data transformation. Differences between transformed intensities are
9802 analogous to \"normalized log-ratios\". However, in contrast to the latter,
9803 their variance is independent of the mean, and they are usually more sensitive
9804 and specific in detecting differential transcription.")
9805 (license license:artistic2.0)))
9806
9807 (define-public r-mzid
9808 (package
9809 (name "r-mzid")
9810 (version "1.26.0")
9811 (source
9812 (origin
9813 (method url-fetch)
9814 (uri (bioconductor-uri "mzID" version))
9815 (sha256
9816 (base32
9817 "0y50lzkdamkpz67f6r5whp246qsxpbammjil7g8vjprx0c4jk5n5"))))
9818 (properties `((upstream-name . "mzID")))
9819 (build-system r-build-system)
9820 (propagated-inputs
9821 `(("r-doparallel" ,r-doparallel)
9822 ("r-foreach" ,r-foreach)
9823 ("r-iterators" ,r-iterators)
9824 ("r-plyr" ,r-plyr)
9825 ("r-protgenerics" ,r-protgenerics)
9826 ("r-rcpp" ,r-rcpp)
9827 ("r-xml" ,r-xml)))
9828 (native-inputs
9829 `(("r-knitr" ,r-knitr)))
9830 (home-page "https://bioconductor.org/packages/mzID")
9831 (synopsis "Parser for mzIdentML files")
9832 (description
9833 "This package provides a parser for mzIdentML files implemented using the
9834 XML package. The parser tries to be general and able to handle all types of
9835 mzIdentML files with the drawback of having less pretty output than a vendor
9836 specific parser.")
9837 (license license:gpl2+)))
9838
9839 (define-public r-pcamethods
9840 (package
9841 (name "r-pcamethods")
9842 (version "1.80.0")
9843 (source
9844 (origin
9845 (method url-fetch)
9846 (uri (bioconductor-uri "pcaMethods" version))
9847 (sha256
9848 (base32
9849 "10cww4jxyynkwxbbsx804nwac31j0hh8dgisygld0q663gaxkgni"))))
9850 (properties `((upstream-name . "pcaMethods")))
9851 (build-system r-build-system)
9852 (propagated-inputs
9853 `(("r-biobase" ,r-biobase)
9854 ("r-biocgenerics" ,r-biocgenerics)
9855 ("r-mass" ,r-mass)
9856 ("r-rcpp" ,r-rcpp)))
9857 (home-page "https://github.com/hredestig/pcamethods")
9858 (synopsis "Collection of PCA methods")
9859 (description
9860 "This package provides Bayesian PCA, Probabilistic PCA, Nipals PCA,
9861 Inverse Non-Linear PCA and the conventional SVD PCA. A cluster based method
9862 for missing value estimation is included for comparison. BPCA, PPCA and
9863 NipalsPCA may be used to perform PCA on incomplete data as well as for
9864 accurate missing value estimation. A set of methods for printing and plotting
9865 the results is also provided. All PCA methods make use of the same data
9866 structure (pcaRes) to provide a common interface to the PCA results.")
9867 (license license:gpl3+)))
9868
9869 (define-public r-msnbase
9870 (package
9871 (name "r-msnbase")
9872 (version "2.14.2")
9873 (source
9874 (origin
9875 (method url-fetch)
9876 (uri (bioconductor-uri "MSnbase" version))
9877 (sha256
9878 (base32
9879 "17vlv9gh41s1hp043b7j1jfqiw52alh1misjzy1kxl0g90rld00l"))))
9880 (properties `((upstream-name . "MSnbase")))
9881 (build-system r-build-system)
9882 (propagated-inputs
9883 `(("r-affy" ,r-affy)
9884 ("r-biobase" ,r-biobase)
9885 ("r-biocgenerics" ,r-biocgenerics)
9886 ("r-biocparallel" ,r-biocparallel)
9887 ("r-digest" ,r-digest)
9888 ("r-ggplot2" ,r-ggplot2)
9889 ("r-impute" ,r-impute)
9890 ("r-iranges" ,r-iranges)
9891 ("r-lattice" ,r-lattice)
9892 ("r-maldiquant" ,r-maldiquant)
9893 ("r-mass" ,r-mass)
9894 ("r-mzid" ,r-mzid)
9895 ("r-mzr" ,r-mzr)
9896 ("r-pcamethods" ,r-pcamethods)
9897 ("r-plyr" ,r-plyr)
9898 ("r-preprocesscore" ,r-preprocesscore)
9899 ("r-protgenerics" ,r-protgenerics)
9900 ("r-rcpp" ,r-rcpp)
9901 ("r-s4vectors" ,r-s4vectors)
9902 ("r-scales" ,r-scales)
9903 ("r-vsn" ,r-vsn)
9904 ("r-xml" ,r-xml)))
9905 (native-inputs
9906 `(("r-knitr" ,r-knitr)))
9907 (home-page "https://github.com/lgatto/MSnbase")
9908 (synopsis "Base functions and classes for MS-based proteomics")
9909 (description
9910 "This package provides basic plotting, data manipulation and processing
9911 of mass spectrometry based proteomics data.")
9912 (license license:artistic2.0)))
9913
9914 (define-public r-msnid
9915 (package
9916 (name "r-msnid")
9917 (version "1.22.0")
9918 (source
9919 (origin
9920 (method url-fetch)
9921 (uri (bioconductor-uri "MSnID" version))
9922 (sha256
9923 (base32
9924 "0dwa6j2nqb3223a8g4f453aznjh69wngrpvdi12iy69j1psbbjcc"))))
9925 (properties `((upstream-name . "MSnID")))
9926 (build-system r-build-system)
9927 (propagated-inputs
9928 `(("r-biobase" ,r-biobase)
9929 ("r-data-table" ,r-data-table)
9930 ("r-doparallel" ,r-doparallel)
9931 ("r-dplyr" ,r-dplyr)
9932 ("r-foreach" ,r-foreach)
9933 ("r-iterators" ,r-iterators)
9934 ("r-msnbase" ,r-msnbase)
9935 ("r-mzid" ,r-mzid)
9936 ("r-mzr" ,r-mzr)
9937 ("r-protgenerics" ,r-protgenerics)
9938 ("r-r-cache" ,r-r-cache)
9939 ("r-rcpp" ,r-rcpp)
9940 ("r-reshape2" ,r-reshape2)))
9941 (home-page "https://bioconductor.org/packages/MSnID")
9942 (synopsis "Utilities for LC-MSn proteomics identifications")
9943 (description
9944 "This package extracts @dfn{tandem mass spectrometry} (MS/MS) ID data
9945 from mzIdentML (leveraging the mzID package) or text files. After collating
9946 the search results from multiple datasets it assesses their identification
9947 quality and optimize filtering criteria to achieve the maximum number of
9948 identifications while not exceeding a specified false discovery rate. It also
9949 contains a number of utilities to explore the MS/MS results and assess missed
9950 and irregular enzymatic cleavages, mass measurement accuracy, etc.")
9951 (license license:artistic2.0)))
9952
9953 (define-public r-aroma-light
9954 (package
9955 (name "r-aroma-light")
9956 (version "3.18.0")
9957 (source
9958 (origin
9959 (method url-fetch)
9960 (uri (bioconductor-uri "aroma.light" version))
9961 (sha256
9962 (base32
9963 "19y5f2minx2pp73zdh43v1qkwpkaxygkl8cwlnwja15i46s0bcyc"))))
9964 (properties `((upstream-name . "aroma.light")))
9965 (build-system r-build-system)
9966 (propagated-inputs
9967 `(("r-matrixstats" ,r-matrixstats)
9968 ("r-r-methodss3" ,r-r-methodss3)
9969 ("r-r-oo" ,r-r-oo)
9970 ("r-r-utils" ,r-r-utils)))
9971 (home-page "https://github.com/HenrikBengtsson/aroma.light")
9972 (synopsis "Methods for normalization and visualization of microarray data")
9973 (description
9974 "This package provides methods for microarray analysis that take basic
9975 data types such as matrices and lists of vectors. These methods can be used
9976 standalone, be utilized in other packages, or be wrapped up in higher-level
9977 classes.")
9978 (license license:gpl2+)))
9979
9980 (define-public r-deseq
9981 (package
9982 (name "r-deseq")
9983 (version "1.39.0")
9984 (source
9985 (origin
9986 (method url-fetch)
9987 (uri (bioconductor-uri "DESeq" version))
9988 (sha256
9989 (base32
9990 "047hph5aqmjnz1aqprziw0smdn5lf96hmwpnvqrxv1j2yfvcf3h1"))))
9991 (properties `((upstream-name . "DESeq")))
9992 (build-system r-build-system)
9993 (propagated-inputs
9994 `(("r-biobase" ,r-biobase)
9995 ("r-biocgenerics" ,r-biocgenerics)
9996 ("r-genefilter" ,r-genefilter)
9997 ("r-geneplotter" ,r-geneplotter)
9998 ("r-lattice" ,r-lattice)
9999 ("r-locfit" ,r-locfit)
10000 ("r-mass" ,r-mass)
10001 ("r-rcolorbrewer" ,r-rcolorbrewer)))
10002 (home-page "https://www-huber.embl.de/users/anders/DESeq/")
10003 (synopsis "Differential gene expression analysis")
10004 (description
10005 "This package provides tools for estimating variance-mean dependence in
10006 count data from high-throughput genetic sequencing assays and for testing for
10007 differential expression based on a model using the negative binomial
10008 distribution.")
10009 (license license:gpl3+)))
10010
10011 (define-public r-edaseq
10012 (package
10013 (name "r-edaseq")
10014 (version "2.22.0")
10015 (source
10016 (origin
10017 (method url-fetch)
10018 (uri (bioconductor-uri "EDASeq" version))
10019 (sha256
10020 (base32
10021 "12gzxjh73qshlwvsf92lbrf4bi199kxg2snrkprh1z4yqf7bjfm4"))))
10022 (properties `((upstream-name . "EDASeq")))
10023 (build-system r-build-system)
10024 (propagated-inputs
10025 `(("r-annotationdbi" ,r-annotationdbi)
10026 ("r-aroma-light" ,r-aroma-light)
10027 ("r-biobase" ,r-biobase)
10028 ("r-biocgenerics" ,r-biocgenerics)
10029 ("r-biocmanager" ,r-biocmanager)
10030 ("r-biomart" ,r-biomart)
10031 ("r-biostrings" ,r-biostrings)
10032 ("r-deseq" ,r-deseq)
10033 ("r-genomicfeatures" ,r-genomicfeatures)
10034 ("r-genomicranges" ,r-genomicranges)
10035 ("r-iranges" ,r-iranges)
10036 ("r-rsamtools" ,r-rsamtools)
10037 ("r-shortread" ,r-shortread)))
10038 (native-inputs
10039 `(("r-knitr" ,r-knitr)))
10040 (home-page "https://github.com/drisso/EDASeq")
10041 (synopsis "Exploratory data analysis and normalization for RNA-Seq")
10042 (description
10043 "This package provides support for numerical and graphical summaries of
10044 RNA-Seq genomic read data. Provided within-lane normalization procedures to
10045 adjust for GC-content effect (or other gene-level effects) on read counts:
10046 loess robust local regression, global-scaling, and full-quantile
10047 normalization. Between-lane normalization procedures to adjust for
10048 distributional differences between lanes (e.g., sequencing depth):
10049 global-scaling and full-quantile normalization.")
10050 (license license:artistic2.0)))
10051
10052 (define-public r-interactivedisplaybase
10053 (package
10054 (name "r-interactivedisplaybase")
10055 (version "1.26.3")
10056 (source
10057 (origin
10058 (method url-fetch)
10059 (uri (bioconductor-uri "interactiveDisplayBase" version))
10060 (sha256
10061 (base32
10062 "1x5vipqa4pgwpd62c1c58shnlpv3zyzzpf4wdwr00q1swkdb7wv3"))))
10063 (properties
10064 `((upstream-name . "interactiveDisplayBase")))
10065 (build-system r-build-system)
10066 (propagated-inputs
10067 `(("r-biocgenerics" ,r-biocgenerics)
10068 ("r-dt" ,r-dt)
10069 ("r-shiny" ,r-shiny)))
10070 (native-inputs
10071 `(("r-knitr" ,r-knitr)))
10072 (home-page "https://bioconductor.org/packages/interactiveDisplayBase")
10073 (synopsis "Base package for web displays of Bioconductor objects")
10074 (description
10075 "This package contains the basic methods needed to generate interactive
10076 Shiny-based display methods for Bioconductor objects.")
10077 (license license:artistic2.0)))
10078
10079 (define-public r-annotationhub
10080 (package
10081 (name "r-annotationhub")
10082 (version "2.20.2")
10083 (source
10084 (origin
10085 (method url-fetch)
10086 (uri (bioconductor-uri "AnnotationHub" version))
10087 (sha256
10088 (base32
10089 "04bz91m2wx1zm61rvpr0syyklz232fw74wrl73d965wi3x8fyda5"))))
10090 (properties `((upstream-name . "AnnotationHub")))
10091 (build-system r-build-system)
10092 (propagated-inputs
10093 `(("r-annotationdbi" ,r-annotationdbi)
10094 ("r-biocfilecache" ,r-biocfilecache)
10095 ("r-biocgenerics" ,r-biocgenerics)
10096 ("r-biocmanager" ,r-biocmanager)
10097 ("r-biocversion" ,r-biocversion)
10098 ("r-curl" ,r-curl)
10099 ("r-dplyr" ,r-dplyr)
10100 ("r-httr" ,r-httr)
10101 ("r-interactivedisplaybase" ,r-interactivedisplaybase)
10102 ("r-rappdirs" ,r-rappdirs)
10103 ("r-rsqlite" ,r-rsqlite)
10104 ("r-s4vectors" ,r-s4vectors)
10105 ("r-yaml" ,r-yaml)))
10106 (native-inputs
10107 `(("r-knitr" ,r-knitr)))
10108 (home-page "https://bioconductor.org/packages/AnnotationHub")
10109 (synopsis "Client to access AnnotationHub resources")
10110 (description
10111 "This package provides a client for the Bioconductor AnnotationHub web
10112 resource. The AnnotationHub web resource provides a central location where
10113 genomic files (e.g. VCF, bed, wig) and other resources from standard
10114 locations (e.g. UCSC, Ensembl) can be discovered. The resource includes
10115 metadata about each resource, e.g., a textual description, tags, and date of
10116 modification. The client creates and manages a local cache of files retrieved
10117 by the user, helping with quick and reproducible access.")
10118 (license license:artistic2.0)))
10119
10120 (define-public r-fastseg
10121 (package
10122 (name "r-fastseg")
10123 (version "1.34.0")
10124 (source
10125 (origin
10126 (method url-fetch)
10127 (uri (bioconductor-uri "fastseg" version))
10128 (sha256
10129 (base32
10130 "1d48n245pzmvcpsz93lxb4frqh222gfhpmlvm0sb74skn16way63"))))
10131 (build-system r-build-system)
10132 (propagated-inputs
10133 `(("r-biobase" ,r-biobase)
10134 ("r-biocgenerics" ,r-biocgenerics)
10135 ("r-genomicranges" ,r-genomicranges)
10136 ("r-iranges" ,r-iranges)
10137 ("r-s4vectors" ,r-s4vectors)))
10138 (home-page "https://www.bioinf.jku.at/software/fastseg/index.html")
10139 (synopsis "Fast segmentation algorithm for genetic sequencing data")
10140 (description
10141 "Fastseg implements a very fast and efficient segmentation algorithm.
10142 It can segment data from DNA microarrays and data from next generation
10143 sequencing for example to detect copy number segments. Further it can segment
10144 data from RNA microarrays like tiling arrays to identify transcripts. Most
10145 generally, it can segment data given as a matrix or as a vector. Various data
10146 formats can be used as input to fastseg like expression set objects for
10147 microarrays or GRanges for sequencing data.")
10148 (license license:lgpl2.0+)))
10149
10150 (define-public r-keggrest
10151 (package
10152 (name "r-keggrest")
10153 (version "1.28.0")
10154 (source
10155 (origin
10156 (method url-fetch)
10157 (uri (bioconductor-uri "KEGGREST" version))
10158 (sha256
10159 (base32
10160 "0q76w17fya2x0z7mvyhkk5kqh07flldgih13ma44vhcy1bdlm6j1"))))
10161 (properties `((upstream-name . "KEGGREST")))
10162 (build-system r-build-system)
10163 (propagated-inputs
10164 `(("r-biostrings" ,r-biostrings)
10165 ("r-httr" ,r-httr)
10166 ("r-png" ,r-png)))
10167 (native-inputs
10168 `(("r-knitr" ,r-knitr)))
10169 (home-page "https://bioconductor.org/packages/KEGGREST")
10170 (synopsis "Client-side REST access to KEGG")
10171 (description
10172 "This package provides a package that provides a client interface to the
10173 @dfn{Kyoto Encyclopedia of Genes and Genomes} (KEGG) REST server.")
10174 (license license:artistic2.0)))
10175
10176 (define-public r-gage
10177 (package
10178 (name "r-gage")
10179 (version "2.38.3")
10180 (source
10181 (origin
10182 (method url-fetch)
10183 (uri (bioconductor-uri "gage" version))
10184 (sha256
10185 (base32
10186 "1bqmvjiya1df0b3h491lp1jxahiyidvaf9n094z0sk84x5y3xh2p"))))
10187 (build-system r-build-system)
10188 (propagated-inputs
10189 `(("r-annotationdbi" ,r-annotationdbi)
10190 ("r-go-db" ,r-go-db)
10191 ("r-graph" ,r-graph)
10192 ("r-keggrest" ,r-keggrest)))
10193 (home-page (string-append "https://bmcbioinformatics.biomedcentral.com/"
10194 "articles/10.1186/1471-2105-10-161"))
10195 (synopsis "Generally applicable gene-set enrichment for pathway analysis")
10196 (description
10197 "GAGE is a published method for gene set (enrichment or GSEA) or pathway
10198 analysis. GAGE is generally applicable independent of microarray or RNA-Seq
10199 data attributes including sample sizes, experimental designs, assay platforms,
10200 and other types of heterogeneity. The gage package provides functions for
10201 basic GAGE analysis, result processing and presentation. In addition, it
10202 provides demo microarray data and commonly used gene set data based on KEGG
10203 pathways and GO terms. These functions and data are also useful for gene set
10204 analysis using other methods.")
10205 (license license:gpl2+)))
10206
10207 (define-public r-genomicfiles
10208 (package
10209 (name "r-genomicfiles")
10210 (version "1.24.0")
10211 (source
10212 (origin
10213 (method url-fetch)
10214 (uri (bioconductor-uri "GenomicFiles" version))
10215 (sha256
10216 (base32
10217 "1k3824pzf9fdqvcv6cz2742q3mabpmncrc72hwa21ac8wy1b04n4"))))
10218 (properties `((upstream-name . "GenomicFiles")))
10219 (build-system r-build-system)
10220 (propagated-inputs
10221 `(("r-biocgenerics" ,r-biocgenerics)
10222 ("r-biocparallel" ,r-biocparallel)
10223 ("r-genomeinfodb" ,r-genomeinfodb)
10224 ("r-genomicalignments" ,r-genomicalignments)
10225 ("r-genomicranges" ,r-genomicranges)
10226 ("r-iranges" ,r-iranges)
10227 ("r-rsamtools" ,r-rsamtools)
10228 ("r-rtracklayer" ,r-rtracklayer)
10229 ("r-s4vectors" ,r-s4vectors)
10230 ("r-summarizedexperiment" ,r-summarizedexperiment)
10231 ("r-variantannotation" ,r-variantannotation)))
10232 (home-page "https://bioconductor.org/packages/GenomicFiles")
10233 (synopsis "Distributed computing by file or by range")
10234 (description
10235 "This package provides infrastructure for parallel computations
10236 distributed by file or by range. User defined mapper and reducer functions
10237 provide added flexibility for data combination and manipulation.")
10238 (license license:artistic2.0)))
10239
10240 (define-public r-complexheatmap
10241 (package
10242 (name "r-complexheatmap")
10243 (version "2.4.3")
10244 (source
10245 (origin
10246 (method url-fetch)
10247 (uri (bioconductor-uri "ComplexHeatmap" version))
10248 (sha256
10249 (base32
10250 "1gx0hzrkla92pgmfkrm2zp0ccnhizq6rs26zgzpi5x8a5lvghh5q"))))
10251 (properties
10252 `((upstream-name . "ComplexHeatmap")))
10253 (build-system r-build-system)
10254 (propagated-inputs
10255 `(("r-circlize" ,r-circlize)
10256 ("r-clue" ,r-clue)
10257 ("r-colorspace" ,r-colorspace)
10258 ("r-getoptlong" ,r-getoptlong)
10259 ("r-globaloptions" ,r-globaloptions)
10260 ("r-png" ,r-png)
10261 ("r-rcolorbrewer" ,r-rcolorbrewer)))
10262 (native-inputs
10263 `(("r-knitr" ,r-knitr)))
10264 (home-page
10265 "https://github.com/jokergoo/ComplexHeatmap")
10266 (synopsis "Making Complex Heatmaps")
10267 (description
10268 "Complex heatmaps are efficient to visualize associations between
10269 different sources of data sets and reveal potential structures. This package
10270 provides a highly flexible way to arrange multiple heatmaps and supports
10271 self-defined annotation graphics.")
10272 (license license:gpl2+)))
10273
10274 (define-public r-dirichletmultinomial
10275 (package
10276 (name "r-dirichletmultinomial")
10277 (version "1.30.0")
10278 (source
10279 (origin
10280 (method url-fetch)
10281 (uri (bioconductor-uri "DirichletMultinomial" version))
10282 (sha256
10283 (base32
10284 "1m9dsrddrllb2i88qzik1867iv9mggrgdkn0dlp8sq7gl69vmalb"))))
10285 (properties
10286 `((upstream-name . "DirichletMultinomial")))
10287 (build-system r-build-system)
10288 (inputs
10289 `(("gsl" ,gsl)))
10290 (propagated-inputs
10291 `(("r-biocgenerics" ,r-biocgenerics)
10292 ("r-iranges" ,r-iranges)
10293 ("r-s4vectors" ,r-s4vectors)))
10294 (home-page "https://bioconductor.org/packages/DirichletMultinomial")
10295 (synopsis "Dirichlet-Multinomial mixture models for microbiome data")
10296 (description
10297 "Dirichlet-multinomial mixture models can be used to describe variability
10298 in microbial metagenomic data. This package is an interface to code
10299 originally made available by Holmes, Harris, and Quince, 2012, PLoS ONE 7(2):
10300 1-15.")
10301 (license license:lgpl3)))
10302
10303 (define-public r-ensembldb
10304 (package
10305 (name "r-ensembldb")
10306 (version "2.12.1")
10307 (source
10308 (origin
10309 (method url-fetch)
10310 (uri (bioconductor-uri "ensembldb" version))
10311 (sha256
10312 (base32
10313 "1vvchc04nshxc768fp31rxb603aj3hmq8xlh5qabcwf2c3z9719g"))))
10314 (build-system r-build-system)
10315 (propagated-inputs
10316 `(("r-annotationdbi" ,r-annotationdbi)
10317 ("r-annotationfilter" ,r-annotationfilter)
10318 ("r-biobase" ,r-biobase)
10319 ("r-biocgenerics" ,r-biocgenerics)
10320 ("r-biostrings" ,r-biostrings)
10321 ("r-curl" ,r-curl)
10322 ("r-dbi" ,r-dbi)
10323 ("r-genomeinfodb" ,r-genomeinfodb)
10324 ("r-genomicfeatures" ,r-genomicfeatures)
10325 ("r-genomicranges" ,r-genomicranges)
10326 ("r-iranges" ,r-iranges)
10327 ("r-protgenerics" ,r-protgenerics)
10328 ("r-rsamtools" ,r-rsamtools)
10329 ("r-rsqlite" ,r-rsqlite)
10330 ("r-rtracklayer" ,r-rtracklayer)
10331 ("r-s4vectors" ,r-s4vectors)))
10332 (native-inputs
10333 `(("r-knitr" ,r-knitr)))
10334 (home-page "https://github.com/jotsetung/ensembldb")
10335 (synopsis "Utilities to create and use Ensembl-based annotation databases")
10336 (description
10337 "The package provides functions to create and use transcript-centric
10338 annotation databases/packages. The annotation for the databases are directly
10339 fetched from Ensembl using their Perl API. The functionality and data is
10340 similar to that of the TxDb packages from the @code{GenomicFeatures} package,
10341 but, in addition to retrieve all gene/transcript models and annotations from
10342 the database, the @code{ensembldb} package also provides a filter framework
10343 allowing to retrieve annotations for specific entries like genes encoded on a
10344 chromosome region or transcript models of lincRNA genes.")
10345 ;; No version specified
10346 (license license:lgpl3+)))
10347
10348 (define-public r-organismdbi
10349 (package
10350 (name "r-organismdbi")
10351 (version "1.30.0")
10352 (source
10353 (origin
10354 (method url-fetch)
10355 (uri (bioconductor-uri "OrganismDbi" version))
10356 (sha256
10357 (base32
10358 "194h5576inq44qr666snzq0ygnc77rk5ljkn9bn8zs6x6gb3cwaw"))))
10359 (properties `((upstream-name . "OrganismDbi")))
10360 (build-system r-build-system)
10361 (propagated-inputs
10362 `(("r-annotationdbi" ,r-annotationdbi)
10363 ("r-biobase" ,r-biobase)
10364 ("r-biocgenerics" ,r-biocgenerics)
10365 ("r-biocmanager" ,r-biocmanager)
10366 ("r-dbi" ,r-dbi)
10367 ("r-genomicfeatures" ,r-genomicfeatures)
10368 ("r-genomicranges" ,r-genomicranges)
10369 ("r-graph" ,r-graph)
10370 ("r-iranges" ,r-iranges)
10371 ("r-rbgl" ,r-rbgl)
10372 ("r-s4vectors" ,r-s4vectors)))
10373 (home-page "https://bioconductor.org/packages/OrganismDbi")
10374 (synopsis "Software to enable the smooth interfacing of database packages")
10375 (description "The package enables a simple unified interface to several
10376 annotation packages each of which has its own schema by taking advantage of
10377 the fact that each of these packages implements a select methods.")
10378 (license license:artistic2.0)))
10379
10380 (define-public r-biovizbase
10381 (package
10382 (name "r-biovizbase")
10383 (version "1.36.0")
10384 (source
10385 (origin
10386 (method url-fetch)
10387 (uri (bioconductor-uri "biovizBase" version))
10388 (sha256
10389 (base32
10390 "1vq2mxa2jkljgw75zqjdkyml0ppi5dspvwj4cznfhi31cq8ds0qh"))))
10391 (properties `((upstream-name . "biovizBase")))
10392 (build-system r-build-system)
10393 (propagated-inputs
10394 `(("r-annotationdbi" ,r-annotationdbi)
10395 ("r-annotationfilter" ,r-annotationfilter)
10396 ("r-biocgenerics" ,r-biocgenerics)
10397 ("r-biostrings" ,r-biostrings)
10398 ("r-dichromat" ,r-dichromat)
10399 ("r-ensembldb" ,r-ensembldb)
10400 ("r-genomeinfodb" ,r-genomeinfodb)
10401 ("r-genomicalignments" ,r-genomicalignments)
10402 ("r-genomicfeatures" ,r-genomicfeatures)
10403 ("r-genomicranges" ,r-genomicranges)
10404 ("r-hmisc" ,r-hmisc)
10405 ("r-iranges" ,r-iranges)
10406 ("r-rcolorbrewer" ,r-rcolorbrewer)
10407 ("r-rlang" ,r-rlang)
10408 ("r-rsamtools" ,r-rsamtools)
10409 ("r-s4vectors" ,r-s4vectors)
10410 ("r-scales" ,r-scales)
10411 ("r-summarizedexperiment" ,r-summarizedexperiment)
10412 ("r-variantannotation" ,r-variantannotation)))
10413 (home-page "https://bioconductor.org/packages/biovizBase")
10414 (synopsis "Basic graphic utilities for visualization of genomic data")
10415 (description
10416 "The biovizBase package is designed to provide a set of utilities, color
10417 schemes and conventions for genomic data. It serves as the base for various
10418 high-level packages for biological data visualization. This saves development
10419 effort and encourages consistency.")
10420 (license license:artistic2.0)))
10421
10422 (define-public r-ggbio
10423 (package
10424 (name "r-ggbio")
10425 (version "1.36.0")
10426 (source
10427 (origin
10428 (method url-fetch)
10429 (uri (bioconductor-uri "ggbio" version))
10430 (sha256
10431 (base32
10432 "11ggnqjq42fi2hm9xlvrrlr2xhy4kglvl1a0mycp1s4v67lxw5h5"))))
10433 (build-system r-build-system)
10434 (arguments
10435 `(#:phases
10436 (modify-phases %standard-phases
10437 ;; See https://github.com/tengfei/ggbio/issues/117
10438 ;; This fix will be included in the next release.
10439 (add-after 'unpack 'fix-typo
10440 (lambda _
10441 (substitute* "R/GGbio-class.R"
10442 (("fechable") "fetchable"))
10443 #t)))))
10444 (propagated-inputs
10445 `(("r-annotationdbi" ,r-annotationdbi)
10446 ("r-annotationfilter" ,r-annotationfilter)
10447 ("r-biobase" ,r-biobase)
10448 ("r-biocgenerics" ,r-biocgenerics)
10449 ("r-biostrings" ,r-biostrings)
10450 ("r-biovizbase" ,r-biovizbase)
10451 ("r-bsgenome" ,r-bsgenome)
10452 ("r-ensembldb" ,r-ensembldb)
10453 ("r-genomeinfodb" ,r-genomeinfodb)
10454 ("r-genomicalignments" ,r-genomicalignments)
10455 ("r-genomicfeatures" ,r-genomicfeatures)
10456 ("r-genomicranges" ,r-genomicranges)
10457 ("r-ggally" ,r-ggally)
10458 ("r-ggplot2" ,r-ggplot2)
10459 ("r-gridextra" ,r-gridextra)
10460 ("r-gtable" ,r-gtable)
10461 ("r-hmisc" ,r-hmisc)
10462 ("r-iranges" ,r-iranges)
10463 ("r-organismdbi" ,r-organismdbi)
10464 ("r-reshape2" ,r-reshape2)
10465 ("r-rlang" ,r-rlang)
10466 ("r-rsamtools" ,r-rsamtools)
10467 ("r-rtracklayer" ,r-rtracklayer)
10468 ("r-s4vectors" ,r-s4vectors)
10469 ("r-scales" ,r-scales)
10470 ("r-summarizedexperiment" ,r-summarizedexperiment)
10471 ("r-variantannotation" ,r-variantannotation)))
10472 (native-inputs
10473 `(("r-knitr" ,r-knitr)))
10474 (home-page "http://www.tengfei.name/ggbio/")
10475 (synopsis "Visualization tools for genomic data")
10476 (description
10477 "The ggbio package extends and specializes the grammar of graphics for
10478 biological data. The graphics are designed to answer common scientific
10479 questions, in particular those often asked of high throughput genomics data.
10480 All core Bioconductor data structures are supported, where appropriate. The
10481 package supports detailed views of particular genomic regions, as well as
10482 genome-wide overviews. Supported overviews include ideograms and grand linear
10483 views. High-level plots include sequence fragment length, edge-linked
10484 interval to data view, mismatch pileup, and several splicing summaries.")
10485 (license license:artistic2.0)))
10486
10487 (define-public r-gqtlbase
10488 (package
10489 (name "r-gqtlbase")
10490 (version "1.20.4")
10491 (source
10492 (origin
10493 (method url-fetch)
10494 (uri (bioconductor-uri "gQTLBase" version))
10495 (sha256
10496 (base32
10497 "1ly14vhhqxjpbxjypi6ppd37dycabdhf4ny4nsvp9969k418zv41"))))
10498 (properties `((upstream-name . "gQTLBase")))
10499 (build-system r-build-system)
10500 (propagated-inputs
10501 `(("r-batchjobs" ,r-batchjobs)
10502 ("r-bbmisc" ,r-bbmisc)
10503 ("r-biocgenerics" ,r-biocgenerics)
10504 ("r-bit" ,r-bit)
10505 ("r-doparallel" ,r-doparallel)
10506 ("r-ff" ,r-ff)
10507 ("r-ffbase" ,r-ffbase)
10508 ("r-foreach" ,r-foreach)
10509 ("r-genomicfiles" ,r-genomicfiles)
10510 ("r-genomicranges" ,r-genomicranges)
10511 ("r-rtracklayer" ,r-rtracklayer)
10512 ("r-s4vectors" ,r-s4vectors)
10513 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10514 (native-inputs
10515 `(("r-knitr" ,r-knitr)))
10516 (home-page "https://bioconductor.org/packages/gQTLBase")
10517 (synopsis "Infrastructure for eQTL, mQTL and similar studies")
10518 (description
10519 "The purpose of this package is to simplify the storage and interrogation
10520 of @dfn{quantitative trait loci} (QTL) archives, such as eQTL, mQTL, dsQTL,
10521 and more.")
10522 (license license:artistic2.0)))
10523
10524 (define-public r-snpstats
10525 (package
10526 (name "r-snpstats")
10527 (version "1.38.0")
10528 (source
10529 (origin
10530 (method url-fetch)
10531 (uri (bioconductor-uri "snpStats" version))
10532 (sha256
10533 (base32
10534 "1qv3nqqr30d3n66mawqd9dbl95dl89r4bcjvkc5iassy1yrwr8wq"))))
10535 (properties `((upstream-name . "snpStats")))
10536 (build-system r-build-system)
10537 (inputs `(("zlib" ,zlib)))
10538 (propagated-inputs
10539 `(("r-biocgenerics" ,r-biocgenerics)
10540 ("r-matrix" ,r-matrix)
10541 ("r-survival" ,r-survival)
10542 ("r-zlibbioc" ,r-zlibbioc)))
10543 (home-page "https://bioconductor.org/packages/snpStats")
10544 (synopsis "Methods for SNP association studies")
10545 (description
10546 "This package provides classes and statistical methods for large
10547 @dfn{single-nucleotide polymorphism} (SNP) association studies. This extends
10548 the earlier snpMatrix package, allowing for uncertainty in genotypes.")
10549 (license license:gpl3)))
10550
10551 (define-public r-homo-sapiens
10552 (package
10553 (name "r-homo-sapiens")
10554 (version "1.3.1")
10555 (source (origin
10556 (method url-fetch)
10557 ;; We cannot use bioconductor-uri here because this tarball is
10558 ;; located under "data/annotation/" instead of "bioc/".
10559 (uri (string-append "https://www.bioconductor.org/packages/"
10560 "release/data/annotation/src/contrib/"
10561 "Homo.sapiens_"
10562 version ".tar.gz"))
10563 (sha256
10564 (base32
10565 "151vj7h5p1c8yd5swrchk46z469p135wk50hvkl0nhgndvy0jj01"))))
10566 (properties
10567 `((upstream-name . "Homo.sapiens")))
10568 (build-system r-build-system)
10569 (propagated-inputs
10570 `(("r-genomicfeatures" ,r-genomicfeatures)
10571 ("r-go-db" ,r-go-db)
10572 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
10573 ("r-txdb-hsapiens-ucsc-hg19-knowngene" ,r-txdb-hsapiens-ucsc-hg19-knowngene)
10574 ("r-organismdbi" ,r-organismdbi)
10575 ("r-annotationdbi" ,r-annotationdbi)))
10576 (home-page "https://bioconductor.org/packages/Homo.sapiens/")
10577 (synopsis "Annotation package for the Homo.sapiens object")
10578 (description
10579 "This package contains the Homo.sapiens object to access data from
10580 several related annotation packages.")
10581 (license license:artistic2.0)))
10582
10583 (define-public r-erma
10584 (package
10585 (name "r-erma")
10586 (version "1.4.0")
10587 (source
10588 (origin
10589 (method url-fetch)
10590 (uri (bioconductor-uri "erma" version))
10591 (sha256
10592 (base32
10593 "1ccfbq0r48sr3h8050w8zv8402h7nx09adr0xdyqlg7kwp9vd2l3"))))
10594 (build-system r-build-system)
10595 (propagated-inputs
10596 `(("r-annotationdbi" ,r-annotationdbi)
10597 ("r-biobase" ,r-biobase)
10598 ("r-biocgenerics" ,r-biocgenerics)
10599 ("r-biocparallel" ,r-biocparallel)
10600 ("r-genomeinfodb" ,r-genomeinfodb)
10601 ("r-genomicfiles" ,r-genomicfiles)
10602 ("r-genomicranges" ,r-genomicranges)
10603 ("r-ggplot2" ,r-ggplot2)
10604 ("r-homo-sapiens" ,r-homo-sapiens)
10605 ("r-iranges" ,r-iranges)
10606 ("r-rtracklayer" ,r-rtracklayer)
10607 ("r-s4vectors" ,r-s4vectors)
10608 ("r-shiny" ,r-shiny)
10609 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10610 (native-inputs
10611 `(("r-knitr" ,r-knitr)))
10612 (home-page "https://bioconductor.org/packages/erma")
10613 (synopsis "Epigenomic road map adventures")
10614 (description
10615 "The epigenomics road map describes locations of epigenetic marks in DNA
10616 from a variety of cell types. Of interest are locations of histone
10617 modifications, sites of DNA methylation, and regions of accessible chromatin.
10618 This package presents a selection of elements of the road map including
10619 metadata and outputs of the ChromImpute procedure applied to ENCODE cell lines
10620 by Ernst and Kellis.")
10621 (license license:artistic2.0)))
10622
10623 (define-public r-ldblock
10624 (package
10625 (name "r-ldblock")
10626 (version "1.18.0")
10627 (source
10628 (origin
10629 (method url-fetch)
10630 (uri (bioconductor-uri "ldblock" version))
10631 (sha256
10632 (base32
10633 "0plw00n2zfgh029ab41dnydzgv2yxrapjp770147rx9pff4dngrv"))))
10634 (build-system r-build-system)
10635 (propagated-inputs
10636 `(("r-biocgenerics" ,r-biocgenerics)
10637 ("r-ensdb-hsapiens-v75" ,r-ensdb-hsapiens-v75)
10638 ("r-ensembldb" ,r-ensembldb)
10639 ("r-genomeinfodb" ,r-genomeinfodb)
10640 ("r-genomicfiles" ,r-genomicfiles)
10641 ("r-httr" ,r-httr)
10642 ("r-matrix" ,r-matrix)
10643 ("r-rsamtools" ,r-rsamtools)
10644 ("r-snpstats" ,r-snpstats)
10645 ("r-variantannotation" ,r-variantannotation)))
10646 (native-inputs
10647 `(("r-knitr" ,r-knitr)))
10648 (home-page "https://bioconductor.org/packages/ldblock")
10649 (synopsis "Data structures for linkage disequilibrium measures in populations")
10650 (description
10651 "This package defines data structures for @dfn{linkage
10652 disequilibrium} (LD) measures in populations. Its purpose is to simplify
10653 handling of existing population-level data for the purpose of flexibly
10654 defining LD blocks.")
10655 (license license:artistic2.0)))
10656
10657 (define-public r-gqtlstats
10658 (package
10659 (name "r-gqtlstats")
10660 (version "1.20.0")
10661 (source
10662 (origin
10663 (method url-fetch)
10664 (uri (bioconductor-uri "gQTLstats" version))
10665 (sha256
10666 (base32
10667 "1jjqfpjp93nmxjn757j5mzcax96bzcqdd1gr3rsdxg7ap008l2w7"))))
10668 (properties `((upstream-name . "gQTLstats")))
10669 (build-system r-build-system)
10670 (propagated-inputs
10671 `(("r-annotationdbi" ,r-annotationdbi)
10672 ("r-batchjobs" ,r-batchjobs)
10673 ("r-bbmisc" ,r-bbmisc)
10674 ("r-beeswarm" ,r-beeswarm)
10675 ("r-biobase" ,r-biobase)
10676 ("r-biocgenerics" ,r-biocgenerics)
10677 ("r-doparallel" ,r-doparallel)
10678 ("r-dplyr" ,r-dplyr)
10679 ("r-erma" ,r-erma)
10680 ("r-ffbase" ,r-ffbase)
10681 ("r-foreach" ,r-foreach)
10682 ("r-genomeinfodb" ,r-genomeinfodb)
10683 ("r-genomicfeatures" ,r-genomicfeatures)
10684 ("r-genomicfiles" ,r-genomicfiles)
10685 ("r-genomicranges" ,r-genomicranges)
10686 ("r-ggbeeswarm" ,r-ggbeeswarm)
10687 ("r-ggplot2" ,r-ggplot2)
10688 ("r-gqtlbase" ,r-gqtlbase)
10689 ("r-hardyweinberg" ,r-hardyweinberg)
10690 ("r-homo-sapiens" ,r-homo-sapiens)
10691 ("r-iranges" ,r-iranges)
10692 ("r-limma" ,r-limma)
10693 ("r-mgcv" ,r-mgcv)
10694 ("r-plotly" ,r-plotly)
10695 ("r-reshape2" ,r-reshape2)
10696 ("r-s4vectors" ,r-s4vectors)
10697 ("r-shiny" ,r-shiny)
10698 ("r-snpstats" ,r-snpstats)
10699 ("r-summarizedexperiment" ,r-summarizedexperiment)
10700 ("r-variantannotation" ,r-variantannotation)))
10701 (native-inputs
10702 `(("r-knitr" ,r-knitr)))
10703 (home-page "https://bioconductor.org/packages/gQTLstats")
10704 (synopsis "Computationally efficient analysis for eQTL and allied studies")
10705 (description
10706 "This package provides tools for the computationally efficient analysis
10707 of @dfn{quantitative trait loci} (QTL) data, including eQTL, mQTL, dsQTL, etc.
10708 The software in this package aims to support refinements and functional
10709 interpretation of members of a collection of association statistics on a
10710 family of feature/genome hypotheses.")
10711 (license license:artistic2.0)))
10712
10713 (define-public r-gviz
10714 (package
10715 (name "r-gviz")
10716 (version "1.32.0")
10717 (source
10718 (origin
10719 (method url-fetch)
10720 (uri (bioconductor-uri "Gviz" version))
10721 (sha256
10722 (base32
10723 "0cgkp0ciyy2qykqgh3vzp5mx9b4vsvacjh2jnsj3wldiapzlz08a"))))
10724 (properties `((upstream-name . "Gviz")))
10725 (build-system r-build-system)
10726 (propagated-inputs
10727 `(("r-annotationdbi" ,r-annotationdbi)
10728 ("r-biobase" ,r-biobase)
10729 ("r-biocgenerics" ,r-biocgenerics)
10730 ("r-biomart" ,r-biomart)
10731 ("r-biostrings" ,r-biostrings)
10732 ("r-biovizbase" ,r-biovizbase)
10733 ("r-bsgenome" ,r-bsgenome)
10734 ("r-digest" ,r-digest)
10735 ("r-ensembldb" ,r-ensembldb)
10736 ("r-genomeinfodb" ,r-genomeinfodb)
10737 ("r-genomicalignments" ,r-genomicalignments)
10738 ("r-genomicfeatures" ,r-genomicfeatures)
10739 ("r-genomicranges" ,r-genomicranges)
10740 ("r-iranges" ,r-iranges)
10741 ("r-lattice" ,r-lattice)
10742 ("r-latticeextra" ,r-latticeextra)
10743 ("r-matrixstats" ,r-matrixstats)
10744 ("r-rcolorbrewer" ,r-rcolorbrewer)
10745 ("r-rsamtools" ,r-rsamtools)
10746 ("r-rtracklayer" ,r-rtracklayer)
10747 ("r-s4vectors" ,r-s4vectors)
10748 ("r-xvector" ,r-xvector)))
10749 (native-inputs
10750 `(("r-knitr" ,r-knitr)))
10751 (home-page "https://bioconductor.org/packages/Gviz")
10752 (synopsis "Plotting data and annotation information along genomic coordinates")
10753 (description
10754 "Genomic data analyses requires integrated visualization of known genomic
10755 information and new experimental data. Gviz uses the biomaRt and the
10756 rtracklayer packages to perform live annotation queries to Ensembl and UCSC
10757 and translates this to e.g. gene/transcript structures in viewports of the
10758 grid graphics package. This results in genomic information plotted together
10759 with your data.")
10760 (license license:artistic2.0)))
10761
10762 (define-public r-gwascat
10763 (package
10764 (name "r-gwascat")
10765 (version "2.20.1")
10766 (source
10767 (origin
10768 (method url-fetch)
10769 (uri (bioconductor-uri "gwascat" version))
10770 (sha256
10771 (base32
10772 "1cq5cmdrf0a0arr841yvkh6d8drc15p7mif1afr215l1s3y2dwd4"))))
10773 (build-system r-build-system)
10774 (propagated-inputs
10775 `(("r-annotationdbi" ,r-annotationdbi)
10776 ("r-biocgenerics" ,r-biocgenerics)
10777 ("r-biostrings" ,r-biostrings)
10778 ("r-genomeinfodb" ,r-genomeinfodb)
10779 ("r-genomicfeatures" ,r-genomicfeatures)
10780 ("r-genomicranges" ,r-genomicranges)
10781 ("r-ggplot2" ,r-ggplot2)
10782 ("r-iranges" ,r-iranges)
10783 ("r-rsamtools" ,r-rsamtools)
10784 ("r-rtracklayer" ,r-rtracklayer)
10785 ("r-s4vectors" ,r-s4vectors)))
10786 (native-inputs
10787 `(("r-knitr" ,r-knitr)))
10788 (home-page "https://bioconductor.org/packages/gwascat")
10789 (synopsis "Tools for data in the EMBL-EBI GWAS catalog")
10790 (description
10791 "This package provides tools for representing and modeling data in the
10792 EMBL-EBI GWAS catalog.")
10793 (license license:artistic2.0)))
10794
10795 (define-public r-sushi
10796 (package
10797 (name "r-sushi")
10798 (version "1.26.0")
10799 (source (origin
10800 (method url-fetch)
10801 (uri (bioconductor-uri "Sushi" version))
10802 (sha256
10803 (base32
10804 "17j3d5qjq5nbv99by5mq8rwr0jgh2jyyfn2nwxmwgzlmk3lgi1rb"))))
10805 (properties `((upstream-name . "Sushi")))
10806 (build-system r-build-system)
10807 (propagated-inputs
10808 `(("r-biomart" ,r-biomart)
10809 ("r-zoo" ,r-zoo)))
10810 (home-page "https://bioconductor.org/packages/Sushi")
10811 (synopsis "Tools for visualizing genomics data")
10812 (description
10813 "This package provides flexible, quantitative, and integrative genomic
10814 visualizations for publication-quality multi-panel figures.")
10815 (license license:gpl2+)))
10816
10817 (define-public r-dropbead
10818 (let ((commit "d746c6f3b32110428ea56d6a0001ce52a251c247")
10819 (revision "2"))
10820 (package
10821 (name "r-dropbead")
10822 (version (string-append "0-" revision "." (string-take commit 7)))
10823 (source
10824 (origin
10825 (method git-fetch)
10826 (uri (git-reference
10827 (url "https://github.com/rajewsky-lab/dropbead")
10828 (commit commit)))
10829 (file-name (git-file-name name version))
10830 (sha256
10831 (base32
10832 "0sbzma49aiiyw8b0jpr7fnhzys9nsqmp4hy4hdz1gzyg1lhnca26"))))
10833 (build-system r-build-system)
10834 (propagated-inputs
10835 `(("r-ggplot2" ,r-ggplot2)
10836 ("r-rcolorbrewer" ,r-rcolorbrewer)
10837 ("r-gridextra" ,r-gridextra)
10838 ("r-gplots" ,r-gplots)
10839 ("r-plyr" ,r-plyr)))
10840 (home-page "https://github.com/rajewsky-lab/dropbead")
10841 (synopsis "Basic exploration and analysis of Drop-seq data")
10842 (description "This package offers a quick and straight-forward way to
10843 explore and perform basic analysis of single cell sequencing data coming from
10844 droplet sequencing. It has been particularly tailored for Drop-seq.")
10845 (license license:gpl3))))
10846
10847 (define htslib-for-sambamba
10848 (let ((commit "2f3c3ea7b301f9b45737a793c0b2dcf0240e5ee5"))
10849 (package
10850 (inherit htslib)
10851 (name "htslib-for-sambamba")
10852 (version (string-append "1.3.1-1." (string-take commit 9)))
10853 (source
10854 (origin
10855 (method git-fetch)
10856 (uri (git-reference
10857 (url "https://github.com/lomereiter/htslib")
10858 (commit commit)))
10859 (file-name (string-append "htslib-" version "-checkout"))
10860 (sha256
10861 (base32
10862 "0g38g8s3npr0gjm9fahlbhiskyfws9l5i0x1ml3rakzj7az5l9c9"))))
10863 (native-inputs
10864 `(("autoconf" ,autoconf)
10865 ("automake" ,automake)
10866 ,@(package-native-inputs htslib))))))
10867
10868 (define-public sambamba
10869 (package
10870 (name "sambamba")
10871 (version "0.7.1")
10872 (source
10873 (origin
10874 (method git-fetch)
10875 (uri (git-reference
10876 (url "https://github.com/lomereiter/sambamba")
10877 (commit (string-append "v" version))))
10878 (file-name (string-append name "-" version "-checkout"))
10879 (sha256
10880 (base32
10881 "111h05b60pj8dxbidiamy4imc92x2962b3lmb7wgysl6lx064qis"))))
10882 (build-system gnu-build-system)
10883 (arguments
10884 `(#:tests? #f ; there is no test target
10885 #:parallel-build? #f ; not supported
10886 #:phases
10887 (modify-phases %standard-phases
10888 (delete 'configure)
10889 (add-after 'unpack 'fix-ldc-version
10890 (lambda _
10891 (substitute* "gen_ldc_version_info.py"
10892 (("/usr/bin/env.*") (which "python3")))
10893 (substitute* "Makefile"
10894 ;; We use ldc2 instead of ldmd2 to compile sambamba.
10895 (("\\$\\(shell which ldmd2\\)") (which "ldc2")))
10896 #t))
10897 (add-after 'unpack 'place-biod-and-undead
10898 (lambda* (#:key inputs #:allow-other-keys)
10899 (copy-recursively (assoc-ref inputs "biod") "BioD")
10900 #t))
10901 (add-after 'unpack 'unbundle-prerequisites
10902 (lambda _
10903 (substitute* "Makefile"
10904 (("htslib/libhts.a lz4/lib/liblz4.a")
10905 "-L-lhts -L-llz4")
10906 ((" lz4-static htslib-static") ""))
10907 #t))
10908 (replace 'install
10909 (lambda* (#:key outputs #:allow-other-keys)
10910 (let* ((out (assoc-ref outputs "out"))
10911 (bin (string-append out "/bin")))
10912 (mkdir-p bin)
10913 (copy-file (string-append "bin/sambamba-" ,version)
10914 (string-append bin "/sambamba"))
10915 #t))))))
10916 (native-inputs
10917 `(("ldc" ,ldc)
10918 ("rdmd" ,rdmd)
10919 ("python" ,python)
10920 ("biod"
10921 ,(let ((commit "7969eb0a847b05874e83ffddead26e193ece8101"))
10922 (origin
10923 (method git-fetch)
10924 (uri (git-reference
10925 (url "https://github.com/biod/BioD")
10926 (commit commit)))
10927 (file-name (string-append "biod-"
10928 (string-take commit 9)
10929 "-checkout"))
10930 (sha256
10931 (base32
10932 "0mjxsmbmv0jxl3pq21p8j5r829d648if8q58ka50b2956lc6qkpm")))))))
10933 (inputs
10934 `(("lz4" ,lz4)
10935 ("htslib" ,htslib-for-sambamba)))
10936 (home-page "https://lomereiter.github.io/sambamba/")
10937 (synopsis "Tools for working with SAM/BAM data")
10938 (description "Sambamba is a high performance modern robust and
10939 fast tool (and library), written in the D programming language, for
10940 working with SAM and BAM files. Current parallelised functionality is
10941 an important subset of samtools functionality, including view, index,
10942 sort, markdup, and depth.")
10943 (license license:gpl2+)))
10944
10945 (define-public ritornello
10946 (package
10947 (name "ritornello")
10948 (version "2.0.1")
10949 (source (origin
10950 (method git-fetch)
10951 (uri (git-reference
10952 (url "https://github.com/KlugerLab/Ritornello")
10953 (commit (string-append "v" version))))
10954 (file-name (git-file-name name version))
10955 (sha256
10956 (base32
10957 "1xahvq215qld7x1w8vpa5zbrsj6p9crb9shqa2x89sb0aaxa02jk"))))
10958 (build-system gnu-build-system)
10959 (arguments
10960 `(#:tests? #f ; there are no tests
10961 #:phases
10962 (modify-phases %standard-phases
10963 (add-after 'unpack 'patch-samtools-references
10964 (lambda* (#:key inputs #:allow-other-keys)
10965 (substitute* '("src/SamStream.h"
10966 "src/FLD.cpp")
10967 (("<sam.h>") "<samtools/sam.h>"))
10968 #t))
10969 (delete 'configure)
10970 (replace 'install
10971 (lambda* (#:key inputs outputs #:allow-other-keys)
10972 (let* ((out (assoc-ref outputs "out"))
10973 (bin (string-append out "/bin/")))
10974 (mkdir-p bin)
10975 (install-file "bin/Ritornello" bin)
10976 #t))))))
10977 (inputs
10978 `(("samtools" ,samtools-0.1)
10979 ("fftw" ,fftw)
10980 ("boost" ,boost)
10981 ("zlib" ,zlib)))
10982 (home-page "https://github.com/KlugerLab/Ritornello")
10983 (synopsis "Control-free peak caller for ChIP-seq data")
10984 (description "Ritornello is a ChIP-seq peak calling algorithm based on
10985 signal processing that can accurately call binding events without the need to
10986 do a pair total DNA input or IgG control sample. It has been tested for use
10987 with narrow binding events such as transcription factor ChIP-seq.")
10988 (license license:gpl3+)))
10989
10990 (define-public trim-galore
10991 (package
10992 (name "trim-galore")
10993 (version "0.6.1")
10994 (source
10995 (origin
10996 (method git-fetch)
10997 (uri (git-reference
10998 (url "https://github.com/FelixKrueger/TrimGalore")
10999 (commit version)))
11000 (file-name (git-file-name name version))
11001 (sha256
11002 (base32
11003 "1y31wbxwkm9xqzr5zv1pk5q418whnmlmgmfyxxpnl12h83m2i9iv"))))
11004 (build-system gnu-build-system)
11005 (arguments
11006 `(#:tests? #f ; no tests
11007 #:phases
11008 (modify-phases %standard-phases
11009 (replace 'configure
11010 (lambda _
11011 ;; Trim Galore tries to figure out what version of Python
11012 ;; cutadapt is using by looking at the shebang. Of course that
11013 ;; doesn't work, because cutadapt is wrapped in a shell script.
11014 (substitute* "trim_galore"
11015 (("my \\$python_return.*")
11016 "my $python_return = \"Python 3.999\";\n"))
11017 #t))
11018 (delete 'build)
11019 (add-after 'unpack 'hardcode-tool-references
11020 (lambda* (#:key inputs #:allow-other-keys)
11021 (substitute* "trim_galore"
11022 (("\\$path_to_cutadapt = 'cutadapt'")
11023 (string-append "$path_to_cutadapt = '"
11024 (assoc-ref inputs "cutadapt")
11025 "/bin/cutadapt'"))
11026 (("\\$compression_path = \"gzip\"")
11027 (string-append "$compression_path = \""
11028 (assoc-ref inputs "gzip")
11029 "/bin/gzip\""))
11030 (("\"gunzip")
11031 (string-append "\""
11032 (assoc-ref inputs "gzip")
11033 "/bin/gunzip"))
11034 (("\"pigz")
11035 (string-append "\""
11036 (assoc-ref inputs "pigz")
11037 "/bin/pigz")))
11038 #t))
11039 (replace 'install
11040 (lambda* (#:key outputs #:allow-other-keys)
11041 (let ((bin (string-append (assoc-ref outputs "out")
11042 "/bin")))
11043 (mkdir-p bin)
11044 (install-file "trim_galore" bin)
11045 #t))))))
11046 (inputs
11047 `(("gzip" ,gzip)
11048 ("perl" ,perl)
11049 ("pigz" ,pigz)
11050 ("cutadapt" ,cutadapt)))
11051 (native-inputs
11052 `(("unzip" ,unzip)))
11053 (home-page "https://www.bioinformatics.babraham.ac.uk/projects/trim_galore/")
11054 (synopsis "Wrapper around Cutadapt and FastQC")
11055 (description "Trim Galore! is a wrapper script to automate quality and
11056 adapter trimming as well as quality control, with some added functionality to
11057 remove biased methylation positions for RRBS sequence files.")
11058 (license license:gpl3+)))
11059
11060 (define-public gess
11061 (package
11062 (name "gess")
11063 (version "1.0")
11064 (source (origin
11065 (method url-fetch)
11066 (uri (string-append "http://compbio.uthscsa.edu/"
11067 "GESS_Web/files/"
11068 "gess-" version ".src.tar.gz"))
11069 (sha256
11070 (base32
11071 "0hyk403kxscclzfs24pvdgiv0wm03kjcziqdrp5w46cb049gz0d7"))))
11072 (build-system gnu-build-system)
11073 (arguments
11074 `(#:tests? #f ; no tests
11075 #:phases
11076 (modify-phases %standard-phases
11077 (delete 'configure)
11078 (delete 'build)
11079 (replace 'install
11080 (lambda* (#:key inputs outputs #:allow-other-keys)
11081 (let* ((python (assoc-ref inputs "python"))
11082 (out (assoc-ref outputs "out"))
11083 (bin (string-append out "/bin/"))
11084 (target (string-append
11085 out "/lib/python"
11086 ,(version-major+minor
11087 (package-version python))
11088 "/site-packages/gess/")))
11089 (mkdir-p target)
11090 (copy-recursively "." target)
11091 ;; Make GESS.py executable
11092 (chmod (string-append target "GESS.py") #o555)
11093 ;; Add Python shebang to the top and make Matplotlib
11094 ;; usable.
11095 (substitute* (string-append target "GESS.py")
11096 (("\"\"\"Description:" line)
11097 (string-append "#!" (which "python") "
11098 import matplotlib
11099 matplotlib.use('Agg')
11100 " line)))
11101 ;; Make sure GESS has all modules in its path
11102 (wrap-script (string-append target "GESS.py")
11103 `("PYTHONPATH" ":" = (,target ,(getenv "PYTHONPATH"))))
11104 (mkdir-p bin)
11105 (symlink (string-append target "GESS.py")
11106 (string-append bin "GESS.py"))
11107 #t))))))
11108 (inputs
11109 `(("python" ,python-2)
11110 ("python2-pysam" ,python2-pysam)
11111 ("python2-scipy" ,python2-scipy)
11112 ("python2-numpy" ,python2-numpy)
11113 ("python2-networkx" ,python2-networkx)
11114 ("python2-biopython" ,python2-biopython)
11115 ("guile" ,guile-3.0))) ; for the script wrapper
11116 (home-page "https://compbio.uthscsa.edu/GESS_Web/")
11117 (synopsis "Detect exon-skipping events from raw RNA-seq data")
11118 (description
11119 "GESS is an implementation of a novel computational method to detect de
11120 novo exon-skipping events directly from raw RNA-seq data without the prior
11121 knowledge of gene annotation information. GESS stands for the graph-based
11122 exon-skipping scanner detection scheme.")
11123 (license license:bsd-3)))
11124
11125 (define-public phylip
11126 (package
11127 (name "phylip")
11128 (version "3.696")
11129 (source
11130 (origin
11131 (method url-fetch)
11132 (uri (string-append "http://evolution.gs.washington.edu/phylip/"
11133 "download/phylip-" version ".tar.gz"))
11134 (sha256
11135 (base32
11136 "01jar1rayhr2gba2pgbw49m56rc5z4p5wn3ds0m188hrlln4a2nd"))))
11137 (build-system gnu-build-system)
11138 (arguments
11139 `(#:tests? #f ; no check target
11140 #:make-flags (list "-f" "Makefile.unx" "install")
11141 #:parallel-build? #f ; not supported
11142 #:phases
11143 (modify-phases %standard-phases
11144 (add-after 'unpack 'enter-dir
11145 (lambda _ (chdir "src") #t))
11146 (delete 'configure)
11147 (replace 'install
11148 (lambda* (#:key inputs outputs #:allow-other-keys)
11149 (let ((target (string-append (assoc-ref outputs "out")
11150 "/bin")))
11151 (mkdir-p target)
11152 (for-each (lambda (file)
11153 (install-file file target))
11154 (find-files "../exe" ".*")))
11155 #t)))))
11156 (home-page "http://evolution.genetics.washington.edu/phylip/")
11157 (synopsis "Tools for inferring phylogenies")
11158 (description "PHYLIP (the PHYLogeny Inference Package) is a package of
11159 programs for inferring phylogenies (evolutionary trees).")
11160 (license license:bsd-2)))
11161
11162 (define-public imp
11163 (package
11164 (name "imp")
11165 (version "2.13.0")
11166 (source
11167 (origin
11168 (method url-fetch)
11169 (uri (string-append "https://integrativemodeling.org/"
11170 version "/download/imp-" version ".tar.gz"))
11171 (sha256
11172 (base32
11173 "1z1vcpwbylixk0zywngg5iw0jv083jj1bqphi817jpg3fb9fx2jj"))))
11174 (build-system cmake-build-system)
11175 (arguments
11176 `( ;; CMake 3.17 or newer is required for the CMAKE_TEST_ARGUMENTS used
11177 ;; below to have an effect.
11178 #:cmake ,cmake
11179 #:configure-flags
11180 (let ((disabled-tests
11181 '("expensive" ;exclude expensive tests
11182 "IMP.modeller" ;fail to import its own modules
11183 "IMP.parallel-test_sge.py" ;fail in build container
11184 ;; The following test fails non-reproducibly on
11185 ;; an inexact numbers assertion.
11186 "IMP.em-medium_test_local_fitting.py")))
11187 (list
11188 (string-append
11189 "-DCMAKE_CTEST_ARGUMENTS="
11190 (string-join
11191 (list "-L" "-tests?-" ;select only tests
11192 "-E" (format #f "'(~a)'" (string-join disabled-tests "|")))
11193 ";"))))))
11194 (native-inputs
11195 `(("python" ,python-wrapper)
11196 ("swig" ,swig)))
11197 (inputs
11198 `(("boost" ,boost)
11199 ("cgal" ,cgal)
11200 ("gsl" ,gsl)
11201 ("hdf5" ,hdf5)
11202 ("fftw" ,fftw)
11203 ("eigen" ,eigen)
11204 ;; Enabling MPI causes the build to use all the available memory and
11205 ;; fail (tested on a machine with 32 GiB of RAM).
11206 ;;("mpi" ,openmpi)
11207 ("opencv" ,opencv)))
11208 (propagated-inputs
11209 `(("python-numpy" ,python-numpy)
11210 ("python-scipy" ,python-scipy)
11211 ("python-pandas" ,python-pandas)
11212 ("python-scikit-learn" ,python-scikit-learn)
11213 ("python-networkx" ,python-networkx)))
11214 (home-page "https://integrativemodeling.org")
11215 (synopsis "Integrative modeling platform")
11216 (description "IMP's broad goal is to contribute to a comprehensive
11217 structural characterization of biomolecules ranging in size and complexity
11218 from small peptides to large macromolecular assemblies, by integrating data
11219 from diverse biochemical and biophysical experiments. IMP provides a C++ and
11220 Python toolbox for solving complex modeling problems, and a number of
11221 applications for tackling some common problems in a user-friendly way.")
11222 ;; IMP is largely available under the GNU Lesser GPL; see the file
11223 ;; COPYING.LGPL for the full text of this license. Some IMP modules are
11224 ;; available under the GNU GPL (see the file COPYING.GPL).
11225 (license (list license:lgpl2.1+
11226 license:gpl3+))))
11227
11228 (define-public tadbit
11229 (package
11230 (name "tadbit")
11231 (version "1.0.1")
11232 (source (origin
11233 (method git-fetch)
11234 (uri (git-reference
11235 (url "https://github.com/3DGenomes/TADbit")
11236 (commit (string-append "v" version))))
11237 (file-name (git-file-name name version))
11238 (sha256
11239 (base32
11240 "0hqrlymh2a2bimcfdvlssy1x5h1lp3h1c5a7jj11hmcqczzqn3ni"))))
11241 (build-system python-build-system)
11242 (arguments
11243 `(#:phases
11244 (modify-phases %standard-phases
11245 (add-after 'unpack 'fix-problems-with-setup.py
11246 (lambda* (#:key outputs #:allow-other-keys)
11247 ;; Don't attempt to install the bash completions to
11248 ;; the home directory.
11249 (rename-file "extras/.bash_completion"
11250 "extras/tadbit")
11251 (substitute* "setup.py"
11252 (("\\(path.expanduser\\('~'\\)")
11253 (string-append "(\""
11254 (assoc-ref outputs "out")
11255 "/etc/bash_completion.d\""))
11256 (("extras/\\.bash_completion")
11257 "extras/tadbit"))
11258 #t))
11259 (replace 'check
11260 (lambda* (#:key inputs outputs #:allow-other-keys)
11261 (add-installed-pythonpath inputs outputs)
11262 (invoke "python3" "test/test_all.py")
11263 #t)))))
11264 (native-inputs
11265 `(("glib" ,glib "bin") ;for gtester
11266 ("pkg-config" ,pkg-config)))
11267 (inputs
11268 ;; TODO: add Chimera for visualization
11269 `(("imp" ,imp)
11270 ("mcl" ,mcl)
11271 ("python-future" ,python-future)
11272 ("python-h5py" ,python-h5py)
11273 ("python-scipy" ,python-scipy)
11274 ("python-numpy" ,python-numpy)
11275 ("python-matplotlib" ,python-matplotlib)
11276 ("python-pysam" ,python-pysam)))
11277 (home-page "https://3dgenomes.github.io/TADbit/")
11278 (synopsis "Analyze, model, and explore 3C-based data")
11279 (description
11280 "TADbit is a complete Python library to deal with all steps to analyze,
11281 model, and explore 3C-based data. With TADbit the user can map FASTQ files to
11282 obtain raw interaction binned matrices (Hi-C like matrices), normalize and
11283 correct interaction matrices, identify and compare the so-called
11284 @dfn{Topologically Associating Domains} (TADs), build 3D models from the
11285 interaction matrices, and finally, extract structural properties from the
11286 models. TADbit is complemented by TADkit for visualizing 3D models.")
11287 (license license:gpl3+)))
11288
11289 (define-public kentutils
11290 (package
11291 (name "kentutils")
11292 ;; 302.1.0 is out, but the only difference is the inclusion of
11293 ;; pre-built binaries.
11294 (version "302.0.0")
11295 (source
11296 (origin
11297 (method git-fetch)
11298 (uri (git-reference
11299 (url "https://github.com/ENCODE-DCC/kentUtils")
11300 (commit (string-append "v" version))))
11301 (file-name (git-file-name name version))
11302 (sha256
11303 (base32
11304 "0n1wbyjpzii2b9qhyp9r1q76j623cggpg3y8fmw78ld3z4y7ivha"))
11305 (modules '((guix build utils)
11306 (srfi srfi-26)
11307 (ice-9 ftw)))
11308 (snippet
11309 '(begin
11310 ;; Only the contents of the specified directories are free
11311 ;; for all uses, so we remove the rest. "hg/autoSql" and
11312 ;; "hg/autoXml" are nominally free, but they depend on a
11313 ;; library that is built from the sources in "hg/lib",
11314 ;; which is nonfree.
11315 (let ((free (list "." ".."
11316 "utils" "lib" "inc" "tagStorm"
11317 "parasol" "htslib"))
11318 (directory? (lambda (file)
11319 (eq? 'directory (stat:type (stat file))))))
11320 (for-each (lambda (file)
11321 (and (directory? file)
11322 (delete-file-recursively file)))
11323 (map (cut string-append "src/" <>)
11324 (scandir "src"
11325 (lambda (file)
11326 (not (member file free)))))))
11327 ;; Only make the utils target, not the userApps target,
11328 ;; because that requires libraries we won't build.
11329 (substitute* "Makefile"
11330 ((" userApps") " utils"))
11331 ;; Only build libraries that are free.
11332 (substitute* "src/makefile"
11333 (("DIRS =.*") "DIRS =\n")
11334 (("cd jkOwnLib.*") "")
11335 ((" hgLib") "")
11336 (("cd hg.*") ""))
11337 (substitute* "src/utils/makefile"
11338 ;; These tools depend on "jkhgap.a", which is part of the
11339 ;; nonfree "src/hg/lib" directory.
11340 (("raSqlQuery") "")
11341 (("pslLiftSubrangeBlat") "")
11342
11343 ;; Do not build UCSC tools, which may require nonfree
11344 ;; components.
11345 (("ALL_APPS =.*") "ALL_APPS = $(UTILS_APPLIST)\n"))
11346 #t))))
11347 (build-system gnu-build-system)
11348 (arguments
11349 `( ;; There is no global test target and the test target for
11350 ;; individual tools depends on input files that are not
11351 ;; included.
11352 #:tests? #f
11353 #:phases
11354 (modify-phases %standard-phases
11355 (add-after 'unpack 'fix-permissions
11356 (lambda _ (make-file-writable "src/inc/localEnvironment.mk") #t))
11357 (add-after 'unpack 'fix-paths
11358 (lambda _
11359 (substitute* "Makefile"
11360 (("/bin/echo") (which "echo")))
11361 #t))
11362 (add-after 'unpack 'prepare-samtabix
11363 (lambda* (#:key inputs #:allow-other-keys)
11364 (copy-recursively (assoc-ref inputs "samtabix")
11365 "samtabix")
11366 #t))
11367 (delete 'configure)
11368 (replace 'install
11369 (lambda* (#:key outputs #:allow-other-keys)
11370 (let ((bin (string-append (assoc-ref outputs "out")
11371 "/bin")))
11372 (copy-recursively "bin" bin))
11373 #t)))))
11374 (native-inputs
11375 `(("samtabix"
11376 ,(origin
11377 (method git-fetch)
11378 (uri (git-reference
11379 (url "http://genome-source.cse.ucsc.edu/samtabix.git")
11380 (commit "10fd107909c1ac4d679299908be4262a012965ba")))
11381 (sha256
11382 (base32
11383 "0c1nj64l42v395sa84n7az43xiap4i6f9n9dfz4058aqiwkhkmma"))))))
11384 (inputs
11385 `(("zlib" ,zlib)
11386 ("tcsh" ,tcsh)
11387 ("perl" ,perl)
11388 ("libpng" ,libpng)
11389 ("mariadb-dev" ,mariadb "dev")
11390 ("openssl" ,openssl-1.0)))
11391 (home-page "https://genome.cse.ucsc.edu/index.html")
11392 (synopsis "Assorted bioinformatics utilities")
11393 (description "This package provides the kentUtils, a selection of
11394 bioinformatics utilities used in combination with the UCSC genome
11395 browser.")
11396 ;; Only a subset of the sources are released under a non-copyleft
11397 ;; free software license. All other sources are removed in a
11398 ;; snippet. See this bug report for an explanation of how the
11399 ;; license statements apply:
11400 ;; https://github.com/ENCODE-DCC/kentUtils/issues/12
11401 (license (license:non-copyleft
11402 "http://genome.ucsc.edu/license/"
11403 "The contents of this package are free for all uses."))))
11404
11405 (define-public f-seq
11406 (let ((commit "6ccded34cff38cf432deed8503648b4a66953f9b")
11407 (revision "1"))
11408 (package
11409 (name "f-seq")
11410 (version (string-append "1.1-" revision "." (string-take commit 7)))
11411 (source (origin
11412 (method git-fetch)
11413 (uri (git-reference
11414 (url "https://github.com/aboyle/F-seq")
11415 (commit commit)))
11416 (file-name (string-append name "-" version))
11417 (sha256
11418 (base32
11419 "1nk33k0yajg2id4g59bc4szr58r2q6pdq42vgcw054m8ip9wv26h"))
11420 (modules '((guix build utils)))
11421 ;; Remove bundled Java library archives.
11422 (snippet
11423 '(begin
11424 (for-each delete-file (find-files "lib" ".*"))
11425 #t))))
11426 (build-system ant-build-system)
11427 (arguments
11428 `(#:tests? #f ; no tests included
11429 #:phases
11430 (modify-phases %standard-phases
11431 (replace 'install
11432 (lambda* (#:key inputs outputs #:allow-other-keys)
11433 (let* ((target (assoc-ref outputs "out"))
11434 (bin (string-append target "/bin"))
11435 (doc (string-append target "/share/doc/f-seq"))
11436 (lib (string-append target "/lib")))
11437 (mkdir-p target)
11438 (mkdir-p doc)
11439 (substitute* "bin/linux/fseq"
11440 (("java") (which "java"))
11441 (("\\$REALDIR/../lib/commons-cli-1.1.jar")
11442 (string-append (assoc-ref inputs "java-commons-cli")
11443 "/share/java/commons-cli.jar"))
11444 (("REALDIR=.*")
11445 (string-append "REALDIR=" bin "\n")))
11446 (install-file "README.txt" doc)
11447 (install-file "bin/linux/fseq" bin)
11448 (install-file "build~/fseq.jar" lib)
11449 (copy-recursively "lib" lib)
11450 #t))))))
11451 (inputs
11452 `(("perl" ,perl)
11453 ("java-commons-cli" ,java-commons-cli)))
11454 (home-page "http://fureylab.web.unc.edu/software/fseq/")
11455 (synopsis "Feature density estimator for high-throughput sequence tags")
11456 (description
11457 "F-Seq is a software package that generates a continuous tag sequence
11458 density estimation allowing identification of biologically meaningful sites
11459 such as transcription factor binding sites (ChIP-seq) or regions of open
11460 chromatin (DNase-seq). Output can be displayed directly in the UCSC Genome
11461 Browser.")
11462 (license license:gpl3+))))
11463
11464 (define-public bismark
11465 (package
11466 (name "bismark")
11467 (version "0.20.1")
11468 (source
11469 (origin
11470 (method git-fetch)
11471 (uri (git-reference
11472 (url "https://github.com/FelixKrueger/Bismark")
11473 (commit version)))
11474 (file-name (string-append name "-" version "-checkout"))
11475 (sha256
11476 (base32
11477 "0xchm3rgilj6vfjnyzfzzymfd7djr64sbrmrvs3njbwi66jqbzw9"))))
11478 (build-system perl-build-system)
11479 (arguments
11480 `(#:tests? #f ; there are no tests
11481 #:modules ((guix build utils)
11482 (ice-9 popen)
11483 (srfi srfi-26)
11484 (guix build perl-build-system))
11485 #:phases
11486 (modify-phases %standard-phases
11487 ;; The bundled plotly.js is minified.
11488 (add-after 'unpack 'replace-plotly.js
11489 (lambda* (#:key inputs #:allow-other-keys)
11490 (let* ((file (assoc-ref inputs "plotly.js"))
11491 (installed "plotly/plotly.js"))
11492 (let ((minified (open-pipe* OPEN_READ "uglify-js" file)))
11493 (call-with-output-file installed
11494 (cut dump-port minified <>))))
11495 #t))
11496 (delete 'configure)
11497 (delete 'build)
11498 (replace 'install
11499 (lambda* (#:key inputs outputs #:allow-other-keys)
11500 (let* ((out (assoc-ref outputs "out"))
11501 (bin (string-append out "/bin"))
11502 (share (string-append out "/share/bismark"))
11503 (docdir (string-append out "/share/doc/bismark"))
11504 (docs '("Docs/Bismark_User_Guide.html"))
11505 (scripts '("bismark"
11506 "bismark_genome_preparation"
11507 "bismark_methylation_extractor"
11508 "bismark2bedGraph"
11509 "bismark2report"
11510 "coverage2cytosine"
11511 "deduplicate_bismark"
11512 "filter_non_conversion"
11513 "bam2nuc"
11514 "bismark2summary"
11515 "NOMe_filtering")))
11516 (substitute* "bismark2report"
11517 (("\\$RealBin/plotly")
11518 (string-append share "/plotly")))
11519 (mkdir-p share)
11520 (mkdir-p docdir)
11521 (mkdir-p bin)
11522 (for-each (lambda (file) (install-file file bin))
11523 scripts)
11524 (for-each (lambda (file) (install-file file docdir))
11525 docs)
11526 (copy-recursively "Docs/Images" (string-append docdir "/Images"))
11527 (copy-recursively "plotly"
11528 (string-append share "/plotly"))
11529
11530 ;; Fix references to gunzip
11531 (substitute* (map (lambda (file)
11532 (string-append bin "/" file))
11533 scripts)
11534 (("\"gunzip -c")
11535 (string-append "\"" (assoc-ref inputs "gzip")
11536 "/bin/gunzip -c")))
11537 #t))))))
11538 (inputs
11539 `(("gzip" ,gzip)
11540 ("perl-carp" ,perl-carp)
11541 ("perl-getopt-long" ,perl-getopt-long)))
11542 (native-inputs
11543 `(("plotly.js"
11544 ,(origin
11545 (method url-fetch)
11546 (uri (string-append "https://raw.githubusercontent.com/plotly/plotly.js/"
11547 "v1.39.4/dist/plotly.js"))
11548 (sha256
11549 (base32 "138mwsr4nf5qif4mrxx286mpnagxd1xwl6k8aidrjgknaqg88zyr"))))
11550 ("uglify-js" ,uglify-js)))
11551 (home-page "https://www.bioinformatics.babraham.ac.uk/projects/bismark/")
11552 (synopsis "Map bisulfite treated sequence reads and analyze methylation")
11553 (description "Bismark is a program to map bisulfite treated sequencing
11554 reads to a genome of interest and perform methylation calls in a single step.
11555 The output can be easily imported into a genome viewer, such as SeqMonk, and
11556 enables a researcher to analyse the methylation levels of their samples
11557 straight away. Its main features are:
11558
11559 @itemize
11560 @item Bisulfite mapping and methylation calling in one single step
11561 @item Supports single-end and paired-end read alignments
11562 @item Supports ungapped and gapped alignments
11563 @item Alignment seed length, number of mismatches etc are adjustable
11564 @item Output discriminates between cytosine methylation in CpG, CHG
11565 and CHH context
11566 @end itemize\n")
11567 (license license:gpl3+)))
11568
11569 (define-public paml
11570 (package
11571 (name "paml")
11572 (version "4.9e")
11573 (source (origin
11574 (method url-fetch)
11575 (uri (string-append "http://abacus.gene.ucl.ac.uk/software/"
11576 "paml" version ".tgz"))
11577 (sha256
11578 (base32
11579 "13zf6h9fiqghwhch2h06x1zdr6s42plsnqahflp5g7myr3han3s6"))
11580 (modules '((guix build utils)))
11581 ;; Remove Windows binaries
11582 (snippet
11583 '(begin
11584 (for-each delete-file (find-files "." "\\.exe$"))
11585 ;; Some files in the original tarball have restrictive
11586 ;; permissions, which makes repackaging fail
11587 (for-each (lambda (file) (chmod file #o644)) (find-files "."))
11588 #t))))
11589 (build-system gnu-build-system)
11590 (arguments
11591 `(#:tests? #f ; there are no tests
11592 #:make-flags '("CC=gcc")
11593 #:phases
11594 (modify-phases %standard-phases
11595 (replace 'configure
11596 (lambda _
11597 (substitute* "src/BFdriver.c"
11598 (("/bin/bash") (which "bash")))
11599 (chdir "src")
11600 #t))
11601 (replace 'install
11602 (lambda* (#:key outputs #:allow-other-keys)
11603 (let ((tools '("baseml" "basemlg" "codeml"
11604 "pamp" "evolver" "yn00" "chi2"))
11605 (bin (string-append (assoc-ref outputs "out") "/bin"))
11606 (docdir (string-append (assoc-ref outputs "out")
11607 "/share/doc/paml")))
11608 (mkdir-p bin)
11609 (for-each (lambda (file) (install-file file bin)) tools)
11610 (copy-recursively "../doc" docdir)
11611 #t))))))
11612 (home-page "http://abacus.gene.ucl.ac.uk/software/paml.html")
11613 (synopsis "Phylogentic analysis by maximum likelihood")
11614 (description "PAML (for Phylogentic Analysis by Maximum Likelihood)
11615 contains a few programs for model fitting and phylogenetic tree reconstruction
11616 using nucleotide or amino-acid sequence data.")
11617 ;; GPLv3 only
11618 (license license:gpl3)))
11619
11620 (define-public kallisto
11621 (package
11622 (name "kallisto")
11623 (version "0.44.0")
11624 (source (origin
11625 (method git-fetch)
11626 (uri (git-reference
11627 (url "https://github.com/pachterlab/kallisto")
11628 (commit (string-append "v" version))))
11629 (file-name (git-file-name name version))
11630 (sha256
11631 (base32
11632 "0nj382jiywqnpgvyhichajpkkh5r0bapn43f4dx40zdaq5v4m40m"))))
11633 (build-system cmake-build-system)
11634 (arguments
11635 `(#:tests? #f ; no "check" target
11636 #:phases
11637 (modify-phases %standard-phases
11638 (add-after 'unpack 'do-not-use-bundled-htslib
11639 (lambda _
11640 (substitute* "CMakeLists.txt"
11641 (("^ExternalProject_Add" m)
11642 (string-append "if (NEVER)\n" m))
11643 (("^\\)")
11644 (string-append ")\nendif(NEVER)"))
11645 (("include_directories\\(\\$\\{htslib_PREFIX.*" m)
11646 (string-append "# " m)))
11647 (substitute* "src/CMakeLists.txt"
11648 (("target_link_libraries\\(kallisto kallisto_core pthread \
11649 \\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/../ext/htslib/libhts.a\\)")
11650 "target_link_libraries(kallisto kallisto_core pthread hts)")
11651 (("include_directories\\(\\.\\./ext/htslib\\)") ""))
11652 #t)))))
11653 (inputs
11654 `(("hdf5" ,hdf5)
11655 ("htslib" ,htslib)
11656 ("zlib" ,zlib)))
11657 (home-page "https://pachterlab.github.io/kallisto/")
11658 (synopsis "Near-optimal RNA-Seq quantification")
11659 (description
11660 "Kallisto is a program for quantifying abundances of transcripts from
11661 RNA-Seq data, or more generally of target sequences using high-throughput
11662 sequencing reads. It is based on the novel idea of pseudoalignment for
11663 rapidly determining the compatibility of reads with targets, without the need
11664 for alignment. Pseudoalignment of reads preserves the key information needed
11665 for quantification, and kallisto is therefore not only fast, but also as
11666 accurate as existing quantification tools.")
11667 (license license:bsd-2)))
11668
11669 (define-public libgff
11670 (package
11671 (name "libgff")
11672 (version "1.0")
11673 (source (origin
11674 (method git-fetch)
11675 (uri (git-reference
11676 (url "https://github.com/Kingsford-Group/libgff")
11677 (commit (string-append "v" version))))
11678 (file-name (git-file-name name version))
11679 (sha256
11680 (base32
11681 "0n6vfjnq7a2mianipscbshrvbncss8z4zkgkbjw754p9043nfkps"))))
11682 (build-system cmake-build-system)
11683 (arguments `(#:tests? #f)) ; no tests included
11684 (home-page "https://github.com/Kingsford-Group/libgff")
11685 (synopsis "Parser library for reading/writing GFF files")
11686 (description "This is a simple \"libraryfication\" of the GFF/GTF parsing
11687 code that is used in the Cufflinks codebase. The goal of this library is to
11688 provide this functionality without the necessity of drawing in a heavy-weight
11689 dependency like SeqAn.")
11690 (license (license:x11-style "https://www.boost.org/LICENSE_1_0.txt"))))
11691
11692 (define-public sailfish
11693 (package
11694 (name "sailfish")
11695 (version "0.10.1")
11696 (source (origin
11697 (method git-fetch)
11698 (uri (git-reference
11699 (url "https://github.com/kingsfordgroup/sailfish")
11700 (commit (string-append "v" version))))
11701 (file-name (git-file-name name version))
11702 (sha256
11703 (base32
11704 "1amcc5hqvsl42hg4x19bi9vy47cl874s0lw1fmi0hwsdk9i8c03v"))
11705 (modules '((guix build utils)))
11706 (snippet
11707 '(begin
11708 ;; Delete bundled headers for eigen3.
11709 (delete-file-recursively "include/eigen3/")
11710 #t))))
11711 (build-system cmake-build-system)
11712 (arguments
11713 `(#:configure-flags
11714 (list (string-append "-DBOOST_INCLUDEDIR="
11715 (assoc-ref %build-inputs "boost")
11716 "/include/")
11717 (string-append "-DBOOST_LIBRARYDIR="
11718 (assoc-ref %build-inputs "boost")
11719 "/lib/")
11720 (string-append "-DBoost_LIBRARIES="
11721 "-lboost_iostreams "
11722 "-lboost_filesystem "
11723 "-lboost_system "
11724 "-lboost_thread "
11725 "-lboost_timer "
11726 "-lboost_chrono "
11727 "-lboost_program_options")
11728 "-DBoost_FOUND=TRUE"
11729 ;; Don't download RapMap---we already have it!
11730 "-DFETCHED_RAPMAP=1")
11731 ;; Tests must be run after installation and the location of the test
11732 ;; data file must be overridden. But the tests fail. It looks like
11733 ;; they are not really meant to be run.
11734 #:tests? #f
11735 #:phases
11736 (modify-phases %standard-phases
11737 ;; Boost cannot be found, even though it's right there.
11738 (add-after 'unpack 'do-not-look-for-boost
11739 (lambda* (#:key inputs #:allow-other-keys)
11740 (substitute* "CMakeLists.txt"
11741 (("find_package\\(Boost 1\\.53\\.0") "#"))
11742 #t))
11743 (add-after 'unpack 'do-not-assign-to-macro
11744 (lambda _
11745 (substitute* "include/spdlog/details/format.cc"
11746 (("const unsigned CHAR_WIDTH = 1;") ""))
11747 #t))
11748 (add-after 'unpack 'prepare-rapmap
11749 (lambda* (#:key inputs #:allow-other-keys)
11750 (let ((src "external/install/src/rapmap/")
11751 (include "external/install/include/rapmap/")
11752 (rapmap (assoc-ref inputs "rapmap")))
11753 (mkdir-p "/tmp/rapmap")
11754 (invoke "tar" "xf"
11755 (assoc-ref inputs "rapmap")
11756 "-C" "/tmp/rapmap"
11757 "--strip-components=1")
11758 (mkdir-p src)
11759 (mkdir-p include)
11760 (for-each (lambda (file)
11761 (install-file file src))
11762 (find-files "/tmp/rapmap/src" "\\.(c|cpp)"))
11763 (copy-recursively "/tmp/rapmap/include" include))
11764 #t))
11765 (add-after 'unpack 'use-system-libraries
11766 (lambda* (#:key inputs #:allow-other-keys)
11767 (substitute* '("src/SailfishIndexer.cpp"
11768 "src/SailfishUtils.cpp"
11769 "src/SailfishQuantify.cpp"
11770 "src/FASTAParser.cpp"
11771 "include/PCA.hpp"
11772 "include/SailfishUtils.hpp"
11773 "include/SailfishIndex.hpp"
11774 "include/CollapsedEMOptimizer.hpp"
11775 "src/CollapsedEMOptimizer.cpp")
11776 (("#include \"jellyfish/config.h\"") ""))
11777 (substitute* "src/CMakeLists.txt"
11778 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
11779 (string-append (assoc-ref inputs "jellyfish")
11780 "/include/jellyfish-" ,(package-version jellyfish)))
11781 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
11782 (string-append (assoc-ref inputs "jellyfish")
11783 "/lib/libjellyfish-2.0.a"))
11784 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
11785 (string-append (assoc-ref inputs "libdivsufsort")
11786 "/lib/libdivsufsort.so"))
11787 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
11788 (string-append (assoc-ref inputs "libdivsufsort")
11789 "/lib/libdivsufsort64.so")))
11790 (substitute* "CMakeLists.txt"
11791 ;; Don't prefer static libs
11792 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
11793 (("find_package\\(Jellyfish.*") "")
11794 (("ExternalProject_Add\\(libjellyfish") "message(")
11795 (("ExternalProject_Add\\(libgff") "message(")
11796 (("ExternalProject_Add\\(libsparsehash") "message(")
11797 (("ExternalProject_Add\\(libdivsufsort") "message("))
11798
11799 ;; Ensure that Eigen headers can be found
11800 (setenv "CPLUS_INCLUDE_PATH"
11801 (string-append (assoc-ref inputs "eigen")
11802 "/include/eigen3:"
11803 (or (getenv "CPLUS_INCLUDE_PATH") "")))
11804 #t)))))
11805 (inputs
11806 `(("boost" ,boost)
11807 ("eigen" ,eigen)
11808 ("jemalloc" ,jemalloc)
11809 ("jellyfish" ,jellyfish)
11810 ("sparsehash" ,sparsehash)
11811 ("rapmap" ,(origin
11812 (method git-fetch)
11813 (uri (git-reference
11814 (url "https://github.com/COMBINE-lab/RapMap")
11815 (commit (string-append "sf-v" version))))
11816 (file-name (string-append "rapmap-sf-v" version "-checkout"))
11817 (sha256
11818 (base32
11819 "1hv79l5i576ykv5a1srj2p0q36yvyl5966m0fcy2lbi169ipjakf"))
11820 (modules '((guix build utils)))
11821 ;; These files are expected to be excluded.
11822 (snippet
11823 '(begin (delete-file-recursively "include/spdlog")
11824 (for-each delete-file '("include/xxhash.h"
11825 "src/xxhash.c"))
11826 #t))))
11827 ("libdivsufsort" ,libdivsufsort)
11828 ("libgff" ,libgff)
11829 ("tbb" ,tbb)
11830 ("zlib" ,zlib)))
11831 (native-inputs
11832 `(("pkg-config" ,pkg-config)))
11833 (home-page "https://www.cs.cmu.edu/~ckingsf/software/sailfish/")
11834 (synopsis "Mapping-based isoform quantification from RNA-Seq reads")
11835 (description "Sailfish is a tool for genomic transcript quantification
11836 from RNA-seq data. It requires a set of target transcripts (either from a
11837 reference or de-novo assembly) to quantify. All you need to run sailfish is a
11838 fasta file containing your reference transcripts and a (set of) fasta/fastq
11839 file(s) containing your reads.")
11840 (license license:gpl3+)))
11841
11842 (define libstadenio-for-salmon
11843 (package
11844 (name "libstadenio")
11845 (version "1.14.8")
11846 (source (origin
11847 (method git-fetch)
11848 (uri (git-reference
11849 (url "https://github.com/COMBINE-lab/staden-io_lib")
11850 (commit (string-append "v" version))))
11851 (file-name (string-append name "-" version "-checkout"))
11852 (sha256
11853 (base32
11854 "1x8kxxqxl892vwfbprlbyfwkkv7c34ggkc94892x9x0g37x5nbwx"))))
11855 (build-system gnu-build-system)
11856 (arguments '(#:parallel-tests? #f)) ; not supported
11857 (inputs
11858 `(("zlib" ,zlib)))
11859 (native-inputs
11860 `(("perl" ,perl))) ; for tests
11861 (home-page "https://github.com/COMBINE-lab/staden-io_lib")
11862 (synopsis "General purpose trace and experiment file library")
11863 (description "This package provides a library of file reading and writing
11864 code to provide a general purpose Trace file (and Experiment File) reading
11865 interface.
11866
11867 The following file formats are supported:
11868
11869 @enumerate
11870 @item SCF trace files
11871 @item ABI trace files
11872 @item ALF trace files
11873 @item ZTR trace files
11874 @item SFF trace archives
11875 @item SRF trace archives
11876 @item Experiment files
11877 @item Plain text files
11878 @item SAM/BAM sequence files
11879 @item CRAM sequence files
11880 @end enumerate\n")
11881 (license license:bsd-3)))
11882
11883 (define-public salmon
11884 (package
11885 (name "salmon")
11886 (version "0.13.1")
11887 (source (origin
11888 (method git-fetch)
11889 (uri (git-reference
11890 (url "https://github.com/COMBINE-lab/salmon")
11891 (commit (string-append "v" version))))
11892 (file-name (git-file-name name version))
11893 (sha256
11894 (base32
11895 "1i2z4aivicmiixdz9bxalp7vmfzi3k92fxa63iqa8kgvfw5a4aq5"))
11896 (modules '((guix build utils)))
11897 (snippet
11898 '(begin
11899 ;; Delete bundled headers for eigen3.
11900 (delete-file-recursively "include/eigen3/")
11901 #t))))
11902 (build-system cmake-build-system)
11903 (arguments
11904 `(#:configure-flags
11905 (list (string-append "-DBOOST_INCLUDEDIR="
11906 (assoc-ref %build-inputs "boost")
11907 "/include/")
11908 (string-append "-DBOOST_LIBRARYDIR="
11909 (assoc-ref %build-inputs "boost")
11910 "/lib/")
11911 (string-append "-DBoost_LIBRARIES="
11912 "-lboost_iostreams "
11913 "-lboost_filesystem "
11914 "-lboost_system "
11915 "-lboost_thread "
11916 "-lboost_timer "
11917 "-lboost_chrono "
11918 "-lboost_program_options")
11919 "-DBoost_FOUND=TRUE"
11920 "-DTBB_LIBRARIES=tbb tbbmalloc"
11921 ;; Don't download RapMap---we already have it!
11922 "-DFETCHED_RAPMAP=1")
11923 #:phases
11924 (modify-phases %standard-phases
11925 ;; Boost cannot be found, even though it's right there.
11926 (add-after 'unpack 'do-not-look-for-boost
11927 (lambda* (#:key inputs #:allow-other-keys)
11928 (substitute* "CMakeLists.txt"
11929 (("find_package\\(Boost 1\\.59\\.0") "#"))
11930 #t))
11931 (add-after 'unpack 'do-not-phone-home
11932 (lambda _
11933 (substitute* "src/Salmon.cpp"
11934 (("getVersionMessage\\(\\)") "\"\""))
11935 #t))
11936 (add-after 'unpack 'prepare-rapmap
11937 (lambda* (#:key inputs #:allow-other-keys)
11938 (let ((src "external/install/src/rapmap/")
11939 (include "external/install/include/rapmap/")
11940 (rapmap (assoc-ref inputs "rapmap")))
11941 (mkdir-p src)
11942 (mkdir-p include)
11943 (copy-recursively (string-append rapmap "/src") src)
11944 (copy-recursively (string-append rapmap "/include") include)
11945 (for-each delete-file '("external/install/include/rapmap/xxhash.h"
11946 "external/install/include/rapmap/FastxParser.hpp"
11947 "external/install/include/rapmap/concurrentqueue.h"
11948 "external/install/include/rapmap/FastxParserThreadUtils.hpp"
11949 "external/install/src/rapmap/FastxParser.cpp"
11950 "external/install/src/rapmap/xxhash.c"))
11951 (delete-file-recursively "external/install/include/rapmap/spdlog"))
11952 #t))
11953 (add-after 'unpack 'use-system-libraries
11954 (lambda* (#:key inputs #:allow-other-keys)
11955 (substitute* "CMakeLists.txt"
11956 ;; Don't prefer static libs
11957 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
11958 (("set\\(TBB_LIBRARIES") "message(")
11959 ;; Don't download anything
11960 (("DOWNLOAD_COMMAND") "DOWNLOAD_COMMAND echo")
11961 (("externalproject_add\\(libcereal") "message(")
11962 (("externalproject_add\\(libgff") "message(")
11963 (("externalproject_add\\(libtbb") "message(")
11964 (("externalproject_add\\(libdivsufsort") "message(")
11965 (("externalproject_add\\(libstadenio") "message(")
11966 (("externalproject_add_step\\(") "message("))
11967 (substitute* "src/CMakeLists.txt"
11968 (("add_dependencies") "#")
11969 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libstaden-read.a")
11970 (string-append (assoc-ref inputs "libstadenio-for-salmon")
11971 "/lib/libstaden-read.so"))
11972 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
11973 (string-append (assoc-ref inputs "libdivsufsort")
11974 "/lib/libdivsufsort.so"))
11975 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
11976 (string-append (assoc-ref inputs "libdivsufsort")
11977 "/lib/libdivsufsort64.so"))
11978 (("lib/libdivsufsort.a") "/lib/libdivsufsort.so"))
11979
11980 ;; Ensure that all headers can be found
11981 (setenv "CPLUS_INCLUDE_PATH"
11982 (string-append (or (getenv "CPLUS_INCLUDE_PATH") "")
11983 ":"
11984 (assoc-ref inputs "eigen")
11985 "/include/eigen3"))
11986 #t))
11987 ;; CMAKE_INSTALL_PREFIX does not exist when the tests are
11988 ;; run. It only exists after the install phase.
11989 (add-after 'unpack 'fix-tests
11990 (lambda _
11991 (substitute* "src/CMakeLists.txt"
11992 (("DTOPLEVEL_DIR=\\$\\{CMAKE_INSTALL_PREFIX")
11993 "DTOPLEVEL_DIR=${GAT_SOURCE_DIR"))
11994 #t)))))
11995 (inputs
11996 `(("boost" ,boost)
11997 ("bzip2" ,bzip2)
11998 ("cereal" ,cereal)
11999 ("eigen" ,eigen)
12000 ("rapmap" ,(origin
12001 (method git-fetch)
12002 (uri (git-reference
12003 (url "https://github.com/COMBINE-lab/RapMap")
12004 (commit (string-append "salmon-v" version))))
12005 (file-name (string-append "rapmap-salmon-v" version "-checkout"))
12006 (sha256
12007 (base32
12008 "1biplxf0csc7a8h1wf219b0vmjkvw6wk2zylhdklb577kgmihdms"))))
12009 ("jemalloc" ,jemalloc)
12010 ("libgff" ,libgff)
12011 ("tbb" ,tbb)
12012 ("libdivsufsort" ,libdivsufsort)
12013 ("libstadenio-for-salmon" ,libstadenio-for-salmon)
12014 ("xz" ,xz)
12015 ("zlib" ,zlib)))
12016 (native-inputs
12017 `(("pkg-config" ,pkg-config)))
12018 (home-page "https://github.com/COMBINE-lab/salmon")
12019 (synopsis "Quantification from RNA-seq reads using lightweight alignments")
12020 (description "Salmon is a program to produce highly-accurate,
12021 transcript-level quantification estimates from RNA-seq data. Salmon achieves
12022 its accuracy and speed via a number of different innovations, including the
12023 use of lightweight alignments (accurate but fast-to-compute proxies for
12024 traditional read alignments) and massively-parallel stochastic collapsed
12025 variational inference.")
12026 (license license:gpl3+)))
12027
12028 (define-public python-loompy
12029 (package
12030 (name "python-loompy")
12031 (version "2.0.17")
12032 ;; The tarball on Pypi does not include the tests.
12033 (source (origin
12034 (method git-fetch)
12035 (uri (git-reference
12036 (url "https://github.com/linnarsson-lab/loompy")
12037 (commit version)))
12038 (file-name (git-file-name name version))
12039 (sha256
12040 (base32
12041 "12a5kjgiikapv93wahfw0frszx1lblnppyz3vs5gy8fgmgngra07"))))
12042 (build-system python-build-system)
12043 (arguments
12044 `(#:phases
12045 (modify-phases %standard-phases
12046 (replace 'check
12047 (lambda _
12048 (setenv "PYTHONPATH"
12049 (string-append (getcwd) ":"
12050 (getenv "PYTHONPATH")))
12051 (invoke "pytest" "tests")
12052 #t)))))
12053 (propagated-inputs
12054 `(("python-h5py" ,python-h5py)
12055 ("python-numpy" ,python-numpy)
12056 ("python-pandas" ,python-pandas)
12057 ("python-scipy" ,python-scipy)))
12058 (native-inputs
12059 `(("python-pytest" ,python-pytest)))
12060 (home-page "https://github.com/linnarsson-lab/loompy")
12061 (synopsis "Work with .loom files for single-cell RNA-seq data")
12062 (description "The loom file format is an efficient format for very large
12063 omics datasets, consisting of a main matrix, optional additional layers, a
12064 variable number of row and column annotations. Loom also supports sparse
12065 graphs. This library makes it easy to work with @file{.loom} files for
12066 single-cell RNA-seq data.")
12067 (license license:bsd-3)))
12068
12069 ;; We cannot use the latest commit because it requires Java 9.
12070 (define-public java-forester
12071 (let ((commit "86b07efe302d5094b42deed9260f719a4c4ac2e6")
12072 (revision "1"))
12073 (package
12074 (name "java-forester")
12075 (version (string-append "0-" revision "." (string-take commit 7)))
12076 (source (origin
12077 (method git-fetch)
12078 (uri (git-reference
12079 (url "https://github.com/cmzmasek/forester")
12080 (commit commit)))
12081 (file-name (string-append name "-" version "-checkout"))
12082 (sha256
12083 (base32
12084 "0vxavc1yrf84yrnf20dq26hi0lglidk8d382xrxsy4qmlbjd276z"))
12085 (modules '((guix build utils)))
12086 (snippet
12087 '(begin
12088 ;; Delete bundled jars and pre-built classes
12089 (delete-file-recursively "forester/java/resources")
12090 (delete-file-recursively "forester/java/classes")
12091 (for-each delete-file (find-files "forester/java/" "\\.jar$"))
12092 ;; Delete bundled applications
12093 (delete-file-recursively "forester_applications")
12094 #t))))
12095 (build-system ant-build-system)
12096 (arguments
12097 `(#:tests? #f ; there are none
12098 #:jdk ,icedtea-8
12099 #:modules ((guix build ant-build-system)
12100 (guix build utils)
12101 (guix build java-utils)
12102 (sxml simple)
12103 (sxml transform))
12104 #:phases
12105 (modify-phases %standard-phases
12106 (add-after 'unpack 'chdir
12107 (lambda _ (chdir "forester/java") #t))
12108 (add-after 'chdir 'fix-dependencies
12109 (lambda _
12110 (chmod "build.xml" #o664)
12111 (call-with-output-file "build.xml.new"
12112 (lambda (port)
12113 (sxml->xml
12114 (pre-post-order
12115 (with-input-from-file "build.xml"
12116 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12117 `(;; Remove all unjar tags to avoid repacking classes.
12118 (unjar . ,(lambda _ '()))
12119 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12120 (*text* . ,(lambda (_ txt) txt))))
12121 port)))
12122 (rename-file "build.xml.new" "build.xml")
12123 #t))
12124 ;; FIXME: itext is difficult to package as it depends on a few
12125 ;; unpackaged libraries.
12126 (add-after 'chdir 'remove-dependency-on-unpackaged-itext
12127 (lambda _
12128 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12129 (substitute* "src/org/forester/archaeopteryx/MainFrame.java"
12130 (("pdf_written_to = PdfExporter.*")
12131 "throw new IOException(\"PDF export is not available.\");"))
12132 #t))
12133 ;; There is no install target
12134 (replace 'install (install-jars ".")))))
12135 (propagated-inputs
12136 `(("java-commons-codec" ,java-commons-codec)
12137 ("java-openchart2" ,java-openchart2)))
12138 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12139 (synopsis "Phylogenomics libraries for Java")
12140 (description "Forester is a collection of Java libraries for
12141 phylogenomics and evolutionary biology research. It includes support for
12142 reading, writing, and exporting phylogenetic trees.")
12143 (license license:lgpl2.1+))))
12144
12145 (define-public java-forester-1.005
12146 (package
12147 (name "java-forester")
12148 (version "1.005")
12149 (source (origin
12150 (method url-fetch)
12151 (uri (string-append "https://repo1.maven.org/maven2/"
12152 "org/biojava/thirdparty/forester/"
12153 version "/forester-" version "-sources.jar"))
12154 (file-name (string-append name "-" version ".jar"))
12155 (sha256
12156 (base32
12157 "04r8qv4rk3p71z4ajrvp11py1z46qrx0047j3zzs79s6lnsm3lcv"))))
12158 (build-system ant-build-system)
12159 (arguments
12160 `(#:tests? #f ; there are none
12161 #:jdk ,icedtea-8
12162 #:modules ((guix build ant-build-system)
12163 (guix build utils)
12164 (guix build java-utils)
12165 (sxml simple)
12166 (sxml transform))
12167 #:phases
12168 (modify-phases %standard-phases
12169 (add-after 'unpack 'fix-dependencies
12170 (lambda* (#:key inputs #:allow-other-keys)
12171 (call-with-output-file "build.xml"
12172 (lambda (port)
12173 (sxml->xml
12174 (pre-post-order
12175 (with-input-from-file "src/build.xml"
12176 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12177 `(;; Remove all unjar tags to avoid repacking classes.
12178 (unjar . ,(lambda _ '()))
12179 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12180 (*text* . ,(lambda (_ txt) txt))))
12181 port)))
12182 (copy-file (assoc-ref inputs "synth_look_and_feel_1.xml")
12183 "synth_look_and_feel_1.xml")
12184 (copy-file (assoc-ref inputs "phyloxml.xsd")
12185 "phyloxml.xsd")
12186 (substitute* "build.xml"
12187 (("../resources/synth_laf/synth_look_and_feel_1.xml")
12188 "synth_look_and_feel_1.xml")
12189 (("../resources/phyloxml_schema/1.10/phyloxml.xsd")
12190 "phyloxml.xsd"))
12191 #t))
12192 ;; FIXME: itext is difficult to package as it depends on a few
12193 ;; unpackaged libraries.
12194 (add-after 'unpack 'remove-dependency-on-unpackaged-itext
12195 (lambda _
12196 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12197 (substitute* '("src/org/forester/archaeopteryx/MainFrame.java"
12198 "src/org/forester/archaeopteryx/MainFrameApplication.java")
12199 (("pdf_written_to = PdfExporter.*")
12200 "throw new IOException(\"PDF export is not available.\"); /*")
12201 ((".getPrintSizeX\\(\\), getOptions\\(\\).getPrintSizeY\\(\\) \\);") "*/")
12202 (("getCurrentTreePanel\\(\\).getHeight\\(\\) \\);") "*/"))
12203 #t))
12204 (add-after 'unpack 'delete-pre-built-classes
12205 (lambda _ (delete-file-recursively "src/classes") #t))
12206 ;; There is no install target
12207 (replace 'install (install-jars ".")))))
12208 (propagated-inputs
12209 `(("java-commons-codec" ,java-commons-codec)
12210 ("java-openchart2" ,java-openchart2)))
12211 ;; The source archive does not contain the resources.
12212 (native-inputs
12213 `(("phyloxml.xsd"
12214 ,(origin
12215 (method url-fetch)
12216 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12217 "b61cc2dcede0bede317db362472333115756b8c6/"
12218 "forester/resources/phyloxml_schema/1.10/phyloxml.xsd"))
12219 (file-name (string-append name "-phyloxml-" version ".xsd"))
12220 (sha256
12221 (base32
12222 "1zxc4m8sn4n389nqdnpxa8d0k17qnr3pm2y5y6g6vh4k0zm52npv"))))
12223 ("synth_look_and_feel_1.xml"
12224 ,(origin
12225 (method url-fetch)
12226 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12227 "29e04321615da6b35c1e15c60e52caf3f21d8e6a/"
12228 "forester/java/classes/resources/"
12229 "synth_look_and_feel_1.xml"))
12230 (file-name (string-append name "-synth-look-and-feel-" version ".xml"))
12231 (sha256
12232 (base32
12233 "1gv5602gv4k7y7713y75a4jvj7i9s7nildsbdl7n9q10sc2ikg8h"))))))
12234 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12235 (synopsis "Phylogenomics libraries for Java")
12236 (description "Forester is a collection of Java libraries for
12237 phylogenomics and evolutionary biology research. It includes support for
12238 reading, writing, and exporting phylogenetic trees.")
12239 (license license:lgpl2.1+)))
12240
12241 (define-public java-biojava-core
12242 (package
12243 (name "java-biojava-core")
12244 (version "4.2.11")
12245 (source (origin
12246 (method git-fetch)
12247 (uri (git-reference
12248 (url "https://github.com/biojava/biojava")
12249 (commit (string-append "biojava-" version))))
12250 (file-name (string-append name "-" version "-checkout"))
12251 (sha256
12252 (base32
12253 "1bvryh2bpsvash8ln79cmc9sqm8qw72hz4xzwqxcrjm8ssxszhqk"))))
12254 (build-system ant-build-system)
12255 (arguments
12256 `(#:jdk ,icedtea-8
12257 #:jar-name "biojava-core.jar"
12258 #:source-dir "biojava-core/src/main/java/"
12259 #:test-dir "biojava-core/src/test"
12260 ;; These tests seem to require internet access.
12261 #:test-exclude (list "**/SearchIOTest.java"
12262 "**/BlastXMLParserTest.java"
12263 "**/GenbankCookbookTest.java"
12264 "**/GenbankProxySequenceReaderTest.java")
12265 #:phases
12266 (modify-phases %standard-phases
12267 (add-before 'build 'copy-resources
12268 (lambda _
12269 (copy-recursively "biojava-core/src/main/resources"
12270 "build/classes")
12271 #t))
12272 (add-before 'check 'copy-test-resources
12273 (lambda _
12274 (copy-recursively "biojava-core/src/test/resources"
12275 "build/test-classes")
12276 #t)))))
12277 (propagated-inputs
12278 `(("java-log4j-api" ,java-log4j-api)
12279 ("java-log4j-core" ,java-log4j-core)
12280 ("java-slf4j-api" ,java-slf4j-api)
12281 ("java-slf4j-simple" ,java-slf4j-simple)))
12282 (native-inputs
12283 `(("java-junit" ,java-junit)
12284 ("java-hamcrest-core" ,java-hamcrest-core)))
12285 (home-page "https://biojava.org")
12286 (synopsis "Core libraries of Java framework for processing biological data")
12287 (description "BioJava is a project dedicated to providing a Java framework
12288 for processing biological data. It provides analytical and statistical
12289 routines, parsers for common file formats, reference implementations of
12290 popular algorithms, and allows the manipulation of sequences and 3D
12291 structures. The goal of the biojava project is to facilitate rapid
12292 application development for bioinformatics.
12293
12294 This package provides the core libraries.")
12295 (license license:lgpl2.1+)))
12296
12297 (define-public java-biojava-phylo
12298 (package (inherit java-biojava-core)
12299 (name "java-biojava-phylo")
12300 (build-system ant-build-system)
12301 (arguments
12302 `(#:jdk ,icedtea-8
12303 #:jar-name "biojava-phylo.jar"
12304 #:source-dir "biojava-phylo/src/main/java/"
12305 #:test-dir "biojava-phylo/src/test"
12306 #:phases
12307 (modify-phases %standard-phases
12308 (add-before 'build 'copy-resources
12309 (lambda _
12310 (copy-recursively "biojava-phylo/src/main/resources"
12311 "build/classes")
12312 #t))
12313 (add-before 'check 'copy-test-resources
12314 (lambda _
12315 (copy-recursively "biojava-phylo/src/test/resources"
12316 "build/test-classes")
12317 #t)))))
12318 (propagated-inputs
12319 `(("java-log4j-api" ,java-log4j-api)
12320 ("java-log4j-core" ,java-log4j-core)
12321 ("java-slf4j-api" ,java-slf4j-api)
12322 ("java-slf4j-simple" ,java-slf4j-simple)
12323 ("java-biojava-core" ,java-biojava-core)
12324 ("java-forester" ,java-forester)))
12325 (native-inputs
12326 `(("java-junit" ,java-junit)
12327 ("java-hamcrest-core" ,java-hamcrest-core)))
12328 (home-page "https://biojava.org")
12329 (synopsis "Biojava interface to the forester phylogenomics library")
12330 (description "The phylo module provides a biojava interface layer to the
12331 forester phylogenomics library for constructing phylogenetic trees.")))
12332
12333 (define-public java-biojava-alignment
12334 (package (inherit java-biojava-core)
12335 (name "java-biojava-alignment")
12336 (build-system ant-build-system)
12337 (arguments
12338 `(#:jdk ,icedtea-8
12339 #:jar-name "biojava-alignment.jar"
12340 #:source-dir "biojava-alignment/src/main/java/"
12341 #:test-dir "biojava-alignment/src/test"
12342 #:phases
12343 (modify-phases %standard-phases
12344 (add-before 'build 'copy-resources
12345 (lambda _
12346 (copy-recursively "biojava-alignment/src/main/resources"
12347 "build/classes")
12348 #t))
12349 (add-before 'check 'copy-test-resources
12350 (lambda _
12351 (copy-recursively "biojava-alignment/src/test/resources"
12352 "build/test-classes")
12353 #t)))))
12354 (propagated-inputs
12355 `(("java-log4j-api" ,java-log4j-api)
12356 ("java-log4j-core" ,java-log4j-core)
12357 ("java-slf4j-api" ,java-slf4j-api)
12358 ("java-slf4j-simple" ,java-slf4j-simple)
12359 ("java-biojava-core" ,java-biojava-core)
12360 ("java-biojava-phylo" ,java-biojava-phylo)
12361 ("java-forester" ,java-forester)))
12362 (native-inputs
12363 `(("java-junit" ,java-junit)
12364 ("java-hamcrest-core" ,java-hamcrest-core)))
12365 (home-page "https://biojava.org")
12366 (synopsis "Biojava API for genetic sequence alignment")
12367 (description "The alignment module of BioJava provides an API that
12368 contains
12369
12370 @itemize
12371 @item implementations of dynamic programming algorithms for sequence
12372 alignment;
12373 @item reading and writing of popular alignment file formats;
12374 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12375 @end itemize\n")))
12376
12377 (define-public java-biojava-core-4.0
12378 (package (inherit java-biojava-core)
12379 (name "java-biojava-core")
12380 (version "4.0.0")
12381 (source (origin
12382 (method git-fetch)
12383 (uri (git-reference
12384 (url "https://github.com/biojava/biojava")
12385 (commit (string-append "biojava-" version))))
12386 (file-name (string-append name "-" version "-checkout"))
12387 (sha256
12388 (base32
12389 "13675f6y9aqi7bi2lk3s1z7a22ynccjiqwa8izh7p97xi9wsfmd8"))))))
12390
12391 (define-public java-biojava-phylo-4.0
12392 (package (inherit java-biojava-core-4.0)
12393 (name "java-biojava-phylo")
12394 (build-system ant-build-system)
12395 (arguments
12396 `(#:jdk ,icedtea-8
12397 #:jar-name "biojava-phylo.jar"
12398 #:source-dir "biojava-phylo/src/main/java/"
12399 #:test-dir "biojava-phylo/src/test"
12400 #:phases
12401 (modify-phases %standard-phases
12402 (add-before 'build 'copy-resources
12403 (lambda _
12404 (copy-recursively "biojava-phylo/src/main/resources"
12405 "build/classes")
12406 #t))
12407 (add-before 'check 'copy-test-resources
12408 (lambda _
12409 (copy-recursively "biojava-phylo/src/test/resources"
12410 "build/test-classes")
12411 #t)))))
12412 (propagated-inputs
12413 `(("java-log4j-api" ,java-log4j-api)
12414 ("java-log4j-core" ,java-log4j-core)
12415 ("java-slf4j-api" ,java-slf4j-api)
12416 ("java-slf4j-simple" ,java-slf4j-simple)
12417 ("java-biojava-core" ,java-biojava-core-4.0)
12418 ("java-forester" ,java-forester-1.005)))
12419 (native-inputs
12420 `(("java-junit" ,java-junit)
12421 ("java-hamcrest-core" ,java-hamcrest-core)))
12422 (home-page "https://biojava.org")
12423 (synopsis "Biojava interface to the forester phylogenomics library")
12424 (description "The phylo module provides a biojava interface layer to the
12425 forester phylogenomics library for constructing phylogenetic trees.")))
12426
12427 (define-public java-biojava-alignment-4.0
12428 (package (inherit java-biojava-core-4.0)
12429 (name "java-biojava-alignment")
12430 (build-system ant-build-system)
12431 (arguments
12432 `(#:jdk ,icedtea-8
12433 #:jar-name "biojava-alignment.jar"
12434 #:source-dir "biojava-alignment/src/main/java/"
12435 #:test-dir "biojava-alignment/src/test"
12436 #:phases
12437 (modify-phases %standard-phases
12438 (add-before 'build 'copy-resources
12439 (lambda _
12440 (copy-recursively "biojava-alignment/src/main/resources"
12441 "build/classes")
12442 #t))
12443 (add-before 'check 'copy-test-resources
12444 (lambda _
12445 (copy-recursively "biojava-alignment/src/test/resources"
12446 "build/test-classes")
12447 #t)))))
12448 (propagated-inputs
12449 `(("java-log4j-api" ,java-log4j-api)
12450 ("java-log4j-core" ,java-log4j-core)
12451 ("java-slf4j-api" ,java-slf4j-api)
12452 ("java-slf4j-simple" ,java-slf4j-simple)
12453 ("java-biojava-core" ,java-biojava-core-4.0)
12454 ("java-biojava-phylo" ,java-biojava-phylo-4.0)
12455 ("java-forester" ,java-forester-1.005)))
12456 (native-inputs
12457 `(("java-junit" ,java-junit)
12458 ("java-hamcrest-core" ,java-hamcrest-core)))
12459 (home-page "https://biojava.org")
12460 (synopsis "Biojava API for genetic sequence alignment")
12461 (description "The alignment module of BioJava provides an API that
12462 contains
12463
12464 @itemize
12465 @item implementations of dynamic programming algorithms for sequence
12466 alignment;
12467 @item reading and writing of popular alignment file formats;
12468 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12469 @end itemize\n")))
12470
12471 (define-public dropseq-tools
12472 (package
12473 (name "dropseq-tools")
12474 (version "1.13")
12475 (source
12476 (origin
12477 (method url-fetch)
12478 (uri "http://mccarrolllab.com/download/1276/")
12479 (file-name (string-append "dropseq-tools-" version ".zip"))
12480 (sha256
12481 (base32
12482 "0yrffckxqk5l8b5xb6z4laq157zd9mdypr2p4b4vq2bhjzi1sj0s"))
12483 ;; Delete bundled libraries
12484 (modules '((guix build utils)))
12485 (snippet
12486 '(begin
12487 (for-each delete-file (find-files "jar/lib" "\\.jar$"))
12488 (delete-file-recursively "3rdParty")
12489 #t))))
12490 (build-system ant-build-system)
12491 (arguments
12492 `(#:tests? #f ; test data are not included
12493 #:test-target "test"
12494 #:build-target "all"
12495 #:source-dir "public/src/"
12496 #:jdk ,icedtea-8
12497 #:make-flags
12498 (list (string-append "-Dpicard.executable.dir="
12499 (assoc-ref %build-inputs "java-picard")
12500 "/share/java/"))
12501 #:modules ((ice-9 match)
12502 (srfi srfi-1)
12503 (guix build utils)
12504 (guix build java-utils)
12505 (guix build ant-build-system))
12506 #:phases
12507 (modify-phases %standard-phases
12508 ;; FIXME: fails with "java.io.FileNotFoundException:
12509 ;; /gnu/store/…-dropseq-tools-1.13/share/java/lib/biojava-alignment.jar"
12510 (delete 'generate-jar-indices)
12511 ;; All dependencies must be linked to "lib", because that's where
12512 ;; they will be searched for when the Class-Path property of the
12513 ;; manifest is computed.
12514 (add-after 'unpack 'record-references
12515 (lambda* (#:key inputs #:allow-other-keys)
12516 (mkdir-p "jar/lib")
12517 (let ((dirs (filter-map (match-lambda
12518 ((name . dir)
12519 (if (and (string-prefix? "java-" name)
12520 (not (string=? name "java-testng")))
12521 dir #f)))
12522 inputs)))
12523 (for-each (lambda (jar)
12524 (symlink jar (string-append "jar/lib/" (basename jar))))
12525 (append-map (lambda (dir) (find-files dir "\\.jar$"))
12526 dirs)))
12527 #t))
12528 ;; There is no installation target
12529 (replace 'install
12530 (lambda* (#:key inputs outputs #:allow-other-keys)
12531 (let* ((out (assoc-ref outputs "out"))
12532 (bin (string-append out "/bin"))
12533 (share (string-append out "/share/java/"))
12534 (lib (string-append share "/lib/"))
12535 (scripts (list "BAMTagHistogram"
12536 "BAMTagofTagCounts"
12537 "BaseDistributionAtReadPosition"
12538 "CollapseBarcodesInPlace"
12539 "CollapseTagWithContext"
12540 "ConvertToRefFlat"
12541 "CreateIntervalsFiles"
12542 "DetectBeadSynthesisErrors"
12543 "DigitalExpression"
12544 "Drop-seq_alignment.sh"
12545 "FilterBAM"
12546 "FilterBAMByTag"
12547 "GatherGeneGCLength"
12548 "GatherMolecularBarcodeDistributionByGene"
12549 "GatherReadQualityMetrics"
12550 "PolyATrimmer"
12551 "ReduceGTF"
12552 "SelectCellsByNumTranscripts"
12553 "SingleCellRnaSeqMetricsCollector"
12554 "TagBamWithReadSequenceExtended"
12555 "TagReadWithGeneExon"
12556 "TagReadWithInterval"
12557 "TrimStartingSequence"
12558 "ValidateReference")))
12559 (for-each mkdir-p (list bin share lib))
12560 (install-file "dist/dropseq.jar" share)
12561 (for-each (lambda (script)
12562 (chmod script #o555)
12563 (install-file script bin))
12564 scripts)
12565 (substitute* (map (lambda (script)
12566 (string-append bin "/" script))
12567 scripts)
12568 (("^java") (which "java"))
12569 (("jar_deploy_dir=.*")
12570 (string-append "jar_deploy_dir=" share "\n"))))
12571 #t))
12572 ;; FIXME: We do this after stripping jars because we don't want it to
12573 ;; copy all these jars and strip them. We only want to install
12574 ;; links. Arguably, this is a problem with the ant-build-system.
12575 (add-after 'strip-jar-timestamps 'install-links
12576 (lambda* (#:key outputs #:allow-other-keys)
12577 (let* ((out (assoc-ref outputs "out"))
12578 (share (string-append out "/share/java/"))
12579 (lib (string-append share "/lib/")))
12580 (for-each (lambda (jar)
12581 (symlink (readlink jar)
12582 (string-append lib (basename jar))))
12583 (find-files "jar/lib" "\\.jar$")))
12584 #t)))))
12585 (inputs
12586 `(("jdk" ,icedtea-8)
12587 ("java-picard" ,java-picard-2.10.3)
12588 ("java-log4j-1.2-api" ,java-log4j-1.2-api)
12589 ("java-commons-math3" ,java-commons-math3)
12590 ("java-commons-jexl2" ,java-commons-jexl-2)
12591 ("java-commons-collections4" ,java-commons-collections4)
12592 ("java-commons-lang2" ,java-commons-lang)
12593 ("java-commons-io" ,java-commons-io)
12594 ("java-snappy-1.0.3-rc3" ,java-snappy-1)
12595 ("java-guava" ,java-guava)
12596 ("java-la4j" ,java-la4j)
12597 ("java-biojava-core" ,java-biojava-core-4.0)
12598 ("java-biojava-alignment" ,java-biojava-alignment-4.0)
12599 ("java-jdistlib" ,java-jdistlib)
12600 ("java-simple-xml" ,java-simple-xml)
12601 ("java-snakeyaml" ,java-snakeyaml)))
12602 (native-inputs
12603 `(("unzip" ,unzip)
12604 ("java-testng" ,java-testng)))
12605 (home-page "http://mccarrolllab.com/dropseq/")
12606 (synopsis "Tools for Drop-seq analyses")
12607 (description "Drop-seq is a technology to enable biologists to
12608 analyze RNA expression genome-wide in thousands of individual cells at
12609 once. This package provides tools to perform Drop-seq analyses.")
12610 (license license:expat)))
12611
12612 (define-public pigx-rnaseq
12613 (package
12614 (name "pigx-rnaseq")
12615 (version "0.0.10")
12616 (source (origin
12617 (method url-fetch)
12618 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_rnaseq/"
12619 "releases/download/v" version
12620 "/pigx_rnaseq-" version ".tar.gz"))
12621 (sha256
12622 (base32
12623 "0z3hr120wk2vrlmlpz1vp3n9wy3rq4y2mnzh2vf08qgqn2xfdwcw"))))
12624 (build-system gnu-build-system)
12625 (arguments
12626 `(#:parallel-tests? #f ; not supported
12627 #:phases
12628 (modify-phases %standard-phases
12629 ;; "test.sh" runs STAR, which requires excessive amounts of memory.
12630 (add-after 'unpack 'disable-resource-intensive-test
12631 (lambda _
12632 (substitute* "Makefile.in"
12633 (("(^ tests/test_trim_galore/test.sh).*" _ m) m)
12634 (("^ tests/test_multiqc/test.sh") "")
12635 (("^ test.sh") ""))
12636 #t)))))
12637 (inputs
12638 `(("coreutils" ,coreutils)
12639 ("sed" ,sed)
12640 ("gzip" ,gzip)
12641 ("snakemake" ,snakemake)
12642 ("fastqc" ,fastqc)
12643 ("multiqc" ,multiqc)
12644 ("star" ,star)
12645 ("trim-galore" ,trim-galore)
12646 ("htseq" ,htseq)
12647 ("samtools" ,samtools)
12648 ("r-minimal" ,r-minimal)
12649 ("r-rmarkdown" ,r-rmarkdown)
12650 ("r-ggplot2" ,r-ggplot2)
12651 ("r-ggrepel" ,r-ggrepel)
12652 ("r-gprofiler" ,r-gprofiler)
12653 ("r-deseq2" ,r-deseq2)
12654 ("r-dt" ,r-dt)
12655 ("r-knitr" ,r-knitr)
12656 ("r-pheatmap" ,r-pheatmap)
12657 ("r-corrplot" ,r-corrplot)
12658 ("r-reshape2" ,r-reshape2)
12659 ("r-plotly" ,r-plotly)
12660 ("r-scales" ,r-scales)
12661 ("r-summarizedexperiment" ,r-summarizedexperiment)
12662 ("r-crosstalk" ,r-crosstalk)
12663 ("r-tximport" ,r-tximport)
12664 ("r-rtracklayer" ,r-rtracklayer)
12665 ("r-rjson" ,r-rjson)
12666 ("salmon" ,salmon)
12667 ("pandoc" ,pandoc)
12668 ("pandoc-citeproc" ,pandoc-citeproc)
12669 ("python-wrapper" ,python-wrapper)
12670 ("python-pyyaml" ,python-pyyaml)))
12671 (home-page "https://bioinformatics.mdc-berlin.de/pigx/")
12672 (synopsis "Analysis pipeline for RNA sequencing experiments")
12673 (description "PiGX RNAseq is an analysis pipeline for preprocessing and
12674 reporting for RNA sequencing experiments. It is easy to use and produces high
12675 quality reports. The inputs are reads files from the sequencing experiment,
12676 and a configuration file which describes the experiment. In addition to
12677 quality control of the experiment, the pipeline produces a differential
12678 expression report comparing samples in an easily configurable manner.")
12679 (license license:gpl3+)))
12680
12681 (define-public pigx-chipseq
12682 (package
12683 (name "pigx-chipseq")
12684 (version "0.0.43")
12685 (source (origin
12686 (method url-fetch)
12687 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_chipseq/"
12688 "releases/download/v" version
12689 "/pigx_chipseq-" version ".tar.gz"))
12690 (sha256
12691 (base32
12692 "0426i31b7mqqkbss5dgrvf5prkj4z1qrd7yrpd27vybs01xhdlks"))))
12693 (build-system gnu-build-system)
12694 ;; parts of the tests rely on access to the network
12695 (arguments '(#:tests? #f))
12696 (inputs
12697 `(("grep" ,grep)
12698 ("coreutils" ,coreutils)
12699 ("r-minimal" ,r-minimal)
12700 ("r-argparser" ,r-argparser)
12701 ("r-biocparallel" ,r-biocparallel)
12702 ("r-biostrings" ,r-biostrings)
12703 ("r-chipseq" ,r-chipseq)
12704 ("r-data-table" ,r-data-table)
12705 ("r-dplyr" ,r-dplyr)
12706 ("r-genomation" ,r-genomation)
12707 ("r-genomicalignments" ,r-genomicalignments)
12708 ("r-genomicranges" ,r-genomicranges)
12709 ("r-rsamtools" ,r-rsamtools)
12710 ("r-rtracklayer" ,r-rtracklayer)
12711 ("r-s4vectors" ,r-s4vectors)
12712 ("r-stringr" ,r-stringr)
12713 ("r-tibble" ,r-tibble)
12714 ("r-tidyr" ,r-tidyr)
12715 ("r-jsonlite" ,r-jsonlite)
12716 ("r-heatmaply" ,r-heatmaply)
12717 ("r-htmlwidgets" ,r-htmlwidgets)
12718 ("r-ggplot2" ,r-ggplot2)
12719 ("r-plotly" ,r-plotly)
12720 ("r-rmarkdown" ,r-rmarkdown)
12721 ("python-wrapper" ,python-wrapper)
12722 ("python-pyyaml" ,python-pyyaml)
12723 ("python-magic" ,python-magic)
12724 ("python-xlrd" ,python-xlrd)
12725 ("trim-galore" ,trim-galore)
12726 ("macs" ,macs)
12727 ("multiqc" ,multiqc)
12728 ("perl" ,perl)
12729 ("pandoc" ,pandoc)
12730 ("pandoc-citeproc" ,pandoc-citeproc)
12731 ("fastqc" ,fastqc)
12732 ("bowtie" ,bowtie)
12733 ("idr" ,idr)
12734 ("snakemake" ,snakemake)
12735 ("samtools" ,samtools)
12736 ("bedtools" ,bedtools)
12737 ("kentutils" ,kentutils)))
12738 (native-inputs
12739 `(("python-pytest" ,python-pytest)))
12740 (home-page "https://bioinformatics.mdc-berlin.de/pigx/")
12741 (synopsis "Analysis pipeline for ChIP sequencing experiments")
12742 (description "PiGX ChIPseq is an analysis pipeline for preprocessing, peak
12743 calling and reporting for ChIP sequencing experiments. It is easy to use and
12744 produces high quality reports. The inputs are reads files from the sequencing
12745 experiment, and a configuration file which describes the experiment. In
12746 addition to quality control of the experiment, the pipeline enables to set up
12747 multiple peak calling analysis and allows the generation of a UCSC track hub
12748 in an easily configurable manner.")
12749 (license license:gpl3+)))
12750
12751 (define-public pigx-bsseq
12752 (package
12753 (name "pigx-bsseq")
12754 (version "0.1.2")
12755 (source (origin
12756 (method url-fetch)
12757 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_bsseq/"
12758 "releases/download/v" version
12759 "/pigx_bsseq-" version ".tar.gz"))
12760 (sha256
12761 (base32
12762 "0mpzlay2d5cjpmrcp7knff6rg1c2mqszd638n7lw0mc0cycbp9f8"))))
12763 (build-system gnu-build-system)
12764 (arguments
12765 `(;; TODO: tests currently require 12+GB of RAM. See
12766 ;; https://github.com/BIMSBbioinfo/pigx_bsseq/issues/164
12767 #:tests? #f
12768 #:phases
12769 (modify-phases %standard-phases
12770 (add-before 'check 'set-timezone
12771 ;; The readr package is picky about timezones.
12772 (lambda* (#:key inputs #:allow-other-keys)
12773 (setenv "TZ" "UTC+1")
12774 (setenv "TZDIR"
12775 (string-append (assoc-ref inputs "tzdata")
12776 "/share/zoneinfo"))
12777 #t)))))
12778 (native-inputs
12779 `(("tzdata" ,tzdata)))
12780 (inputs
12781 `(("coreutils" ,coreutils)
12782 ("sed" ,sed)
12783 ("grep" ,grep)
12784 ("r-minimal" ,r-minimal)
12785 ("r-annotationhub" ,r-annotationhub)
12786 ("r-dt" ,r-dt)
12787 ("r-genomation" ,r-genomation)
12788 ("r-ggrepel" ,r-ggrepel)
12789 ("r-methylkit" ,r-methylkit)
12790 ("r-rtracklayer" ,r-rtracklayer)
12791 ("r-rmarkdown" ,r-rmarkdown)
12792 ("r-bookdown" ,r-bookdown)
12793 ("r-ggplot2" ,r-ggplot2)
12794 ("r-ggbio" ,r-ggbio)
12795 ("pandoc" ,pandoc)
12796 ("pandoc-citeproc" ,pandoc-citeproc)
12797 ("python-wrapper" ,python-wrapper)
12798 ("python-pyyaml" ,python-pyyaml)
12799 ("snakemake" ,snakemake)
12800 ("bismark" ,bismark)
12801 ("bowtie" ,bowtie)
12802 ("bwa-meth" ,bwa-meth)
12803 ("fastqc" ,fastqc)
12804 ("methyldackel" ,methyldackel)
12805 ("multiqc" ,multiqc)
12806 ("trim-galore" ,trim-galore)
12807 ("cutadapt" ,cutadapt)
12808 ("samblaster" ,samblaster)
12809 ("samtools" ,samtools)))
12810 (home-page "https://bioinformatics.mdc-berlin.de/pigx/")
12811 (synopsis "Bisulfite sequencing pipeline from fastq to methylation reports")
12812 (description "PiGx BSseq is a data processing pipeline for raw fastq read
12813 data of bisulfite experiments; it produces reports on aggregate methylation
12814 and coverage and can be used to produce information on differential
12815 methylation and segmentation.")
12816 (license license:gpl3+)))
12817
12818 (define-public pigx-scrnaseq
12819 (package
12820 (name "pigx-scrnaseq")
12821 (version "1.1.4")
12822 (source (origin
12823 (method url-fetch)
12824 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_scrnaseq/"
12825 "releases/download/v" version
12826 "/pigx_scrnaseq-" version ".tar.gz"))
12827 (sha256
12828 (base32
12829 "1d5l3gywypi67yz9advxq5xkgfhr4733gj0bwnngm723i3hdf5w9"))))
12830 (build-system gnu-build-system)
12831 (inputs
12832 `(("coreutils" ,coreutils)
12833 ("perl" ,perl)
12834 ("fastqc" ,fastqc)
12835 ("flexbar" ,flexbar)
12836 ("java" ,icedtea-8)
12837 ("jellyfish" ,jellyfish)
12838 ("python-wrapper" ,python-wrapper)
12839 ("python-pyyaml" ,python-pyyaml)
12840 ("python-pandas" ,python-pandas)
12841 ("python-magic" ,python-magic)
12842 ("python-numpy" ,python-numpy)
12843 ("python-loompy" ,python-loompy)
12844 ("pandoc" ,pandoc)
12845 ("pandoc-citeproc" ,pandoc-citeproc)
12846 ("samtools" ,samtools)
12847 ("snakemake" ,snakemake)
12848 ("star" ,star)
12849 ("r-minimal" ,r-minimal)
12850 ("r-argparser" ,r-argparser)
12851 ("r-cowplot" ,r-cowplot)
12852 ("r-data-table" ,r-data-table)
12853 ("r-delayedarray" ,r-delayedarray)
12854 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
12855 ("r-dplyr" ,r-dplyr)
12856 ("r-dropbead" ,r-dropbead)
12857 ("r-dt" ,r-dt)
12858 ("r-genomicalignments" ,r-genomicalignments)
12859 ("r-genomicfiles" ,r-genomicfiles)
12860 ("r-genomicranges" ,r-genomicranges)
12861 ("r-ggplot2" ,r-ggplot2)
12862 ("r-hdf5array" ,r-hdf5array)
12863 ("r-pheatmap" ,r-pheatmap)
12864 ("r-rmarkdown" ,r-rmarkdown)
12865 ("r-rsamtools" ,r-rsamtools)
12866 ("r-rtracklayer" ,r-rtracklayer)
12867 ("r-rtsne" ,r-rtsne)
12868 ("r-scater" ,r-scater)
12869 ("r-scran" ,r-scran)
12870 ("r-seurat" ,r-seurat)
12871 ("r-singlecellexperiment" ,r-singlecellexperiment)
12872 ("r-stringr" ,r-stringr)
12873 ("r-yaml" ,r-yaml)))
12874 (home-page "https://bioinformatics.mdc-berlin.de/pigx/")
12875 (synopsis "Analysis pipeline for single-cell RNA sequencing experiments")
12876 (description "PiGX scRNAseq is an analysis pipeline for preprocessing and
12877 quality control for single cell RNA sequencing experiments. The inputs are
12878 read files from the sequencing experiment, and a configuration file which
12879 describes the experiment. It produces processed files for downstream analysis
12880 and interactive quality reports. The pipeline is designed to work with UMI
12881 based methods.")
12882 (license license:gpl3+)))
12883
12884 (define-public pigx
12885 (package
12886 (name "pigx")
12887 (version "0.0.3")
12888 (source (origin
12889 (method url-fetch)
12890 (uri (string-append "https://github.com/BIMSBbioinfo/pigx/"
12891 "releases/download/v" version
12892 "/pigx-" version ".tar.gz"))
12893 (sha256
12894 (base32
12895 "1i5njdy1clj5ncw45d16p7mwmqvb1ilikl9n797pxklc3f4s7mq7"))))
12896 (build-system gnu-build-system)
12897 (inputs
12898 `(("python" ,python)
12899 ("pigx-bsseq" ,pigx-bsseq)
12900 ("pigx-chipseq" ,pigx-chipseq)
12901 ("pigx-rnaseq" ,pigx-rnaseq)
12902 ("pigx-scrnaseq" ,pigx-scrnaseq)))
12903 (home-page "https://bioinformatics.mdc-berlin.de/pigx/")
12904 (synopsis "Analysis pipelines for genomics")
12905 (description "PiGx is a collection of genomics pipelines. It includes the
12906 following pipelines:
12907
12908 @itemize
12909 @item PiGx BSseq for raw fastq read data of bisulfite experiments
12910 @item PiGx RNAseq for RNAseq samples
12911 @item PiGx scRNAseq for single cell dropseq analysis
12912 @item PiGx ChIPseq for reads from ChIPseq experiments
12913 @end itemize
12914
12915 All pipelines are easily configured with a simple sample sheet and a
12916 descriptive settings file. The result is a set of comprehensive, interactive
12917 HTML reports with interesting findings about your samples.")
12918 (license license:gpl3+)))
12919
12920 (define-public genrich
12921 (package
12922 (name "genrich")
12923 (version "0.5")
12924 (source (origin
12925 (method git-fetch)
12926 (uri (git-reference
12927 (url "https://github.com/jsh58/Genrich")
12928 (commit (string-append "v" version))))
12929 (file-name (git-file-name name version))
12930 (sha256
12931 (base32
12932 "0x0q6z0208n3cxzqjla4rgjqpyqgwpmz27852lcvzkzaigymq4zp"))))
12933 (build-system gnu-build-system)
12934 (arguments
12935 `(#:tests? #f ; there are none
12936 #:phases
12937 (modify-phases %standard-phases
12938 (delete 'configure)
12939 (replace 'install
12940 (lambda* (#:key outputs #:allow-other-keys)
12941 (install-file "Genrich" (string-append (assoc-ref outputs "out") "/bin"))
12942 #t)))))
12943 (inputs
12944 `(("zlib" ,zlib)))
12945 (home-page "https://github.com/jsh58/Genrich")
12946 (synopsis "Detecting sites of genomic enrichment")
12947 (description "Genrich is a peak-caller for genomic enrichment
12948 assays (e.g. ChIP-seq, ATAC-seq). It analyzes alignment files generated
12949 following the assay and produces a file detailing peaks of significant
12950 enrichment.")
12951 (license license:expat)))
12952
12953 (define-public mantis
12954 (let ((commit "4ffd171632c2cb0056a86d709dfd2bf21bc69b84")
12955 (revision "1"))
12956 (package
12957 (name "mantis")
12958 (version (git-version "0" revision commit))
12959 (source (origin
12960 (method git-fetch)
12961 (uri (git-reference
12962 (url "https://github.com/splatlab/mantis")
12963 (commit commit)))
12964 (file-name (git-file-name name version))
12965 (sha256
12966 (base32
12967 "0iqbr0dhmlc8mzpirmm2s4pkzkwdgrcx50yx6cv3wlr2qi064p55"))))
12968 (build-system cmake-build-system)
12969 (arguments '(#:tests? #f)) ; there are none
12970 (inputs
12971 `(("sdsl-lite" ,sdsl-lite)
12972 ("openssl" ,openssl)
12973 ("zlib" ,zlib)))
12974 (home-page "https://github.com/splatlab/mantis")
12975 (synopsis "Large-scale sequence-search index data structure")
12976 (description "Mantis is a space-efficient data structure that can be
12977 used to index thousands of raw-read genomics experiments and facilitate
12978 large-scale sequence searches on those experiments. Mantis uses counting
12979 quotient filters instead of Bloom filters, enabling rapid index builds and
12980 queries, small indexes, and exact results, i.e., no false positives or
12981 negatives. Furthermore, Mantis is also a colored de Bruijn graph
12982 representation, so it supports fast graph traversal and other topological
12983 analyses in addition to large-scale sequence-level searches.")
12984 ;; uses __uint128_t and inline assembly
12985 (supported-systems '("x86_64-linux"))
12986 (license license:bsd-3))))
12987
12988 (define-public sjcount
12989 ;; There is no tag for version 3.2, nor is there a release archive.
12990 (let ((commit "292d3917cadb3f6834c81e509c30e61cd7ead6e5")
12991 (revision "1"))
12992 (package
12993 (name "sjcount")
12994 (version (git-version "3.2" revision commit))
12995 (source (origin
12996 (method git-fetch)
12997 (uri (git-reference
12998 (url "https://github.com/pervouchine/sjcount-full")
12999 (commit commit)))
13000 (file-name (string-append name "-" version "-checkout"))
13001 (sha256
13002 (base32
13003 "0gdgj35j249f04rqgq8ymcc1xg1vi9kzbajnjqpaq2wpbh8bl234"))))
13004 (build-system gnu-build-system)
13005 (arguments
13006 `(#:tests? #f ; requires a 1.4G test file
13007 #:make-flags
13008 (list (string-append "SAMTOOLS_DIR="
13009 (assoc-ref %build-inputs "samtools")
13010 "/lib/"))
13011 #:phases
13012 (modify-phases %standard-phases
13013 (replace 'configure
13014 (lambda* (#:key inputs #:allow-other-keys)
13015 (substitute* "makefile"
13016 (("-I \\$\\{SAMTOOLS_DIR\\}")
13017 (string-append "-I" (assoc-ref inputs "samtools")
13018 "/include/samtools"))
13019 (("-lz ") "-lz -lpthread "))
13020 #t))
13021 (replace 'install
13022 (lambda* (#:key outputs #:allow-other-keys)
13023 (for-each (lambda (tool)
13024 (install-file tool
13025 (string-append (assoc-ref outputs "out")
13026 "/bin")))
13027 '("j_count" "b_count" "sjcount"))
13028 #t)))))
13029 (inputs
13030 `(("samtools" ,samtools-0.1)
13031 ("zlib" ,zlib)))
13032 (home-page "https://github.com/pervouchine/sjcount-full/")
13033 (synopsis "Annotation-agnostic splice junction counting pipeline")
13034 (description "Sjcount is a utility for fast quantification of splice
13035 junctions in RNA-seq data. It is annotation-agnostic and offset-aware. This
13036 version does count multisplits.")
13037 (license license:gpl3+))))
13038
13039 (define-public minimap2
13040 (package
13041 (name "minimap2")
13042 (version "2.17")
13043 (source
13044 (origin
13045 (method url-fetch)
13046 (uri (string-append "https://github.com/lh3/minimap2/"
13047 "releases/download/v" version "/"
13048 "minimap2-" version ".tar.bz2"))
13049 (sha256
13050 (base32
13051 "0hi7i9pzxhvjj44khzzzj1lrn5gb5837arr4wgln7k1k5n4ci2mn"))))
13052 (build-system gnu-build-system)
13053 (arguments
13054 `(#:tests? #f ; there are none
13055 #:make-flags
13056 (list "CC=gcc"
13057 (let ((system ,(or (%current-target-system)
13058 (%current-system))))
13059 (cond
13060 ((string-prefix? "x86_64" system)
13061 "all")
13062 ((or (string-prefix? "armhf" system)
13063 (string-prefix? "aarch64" system))
13064 "arm_neon=1")
13065 (else "sse2only=1"))))
13066 #:phases
13067 (modify-phases %standard-phases
13068 (delete 'configure)
13069 (replace 'install
13070 (lambda* (#:key outputs #:allow-other-keys)
13071 (let* ((out (assoc-ref outputs "out"))
13072 (bin (string-append out "/bin"))
13073 (man (string-append out "/share/man/man1")))
13074 (install-file "minimap2" bin)
13075 (mkdir-p man)
13076 (install-file "minimap2.1" man))
13077 #t)))))
13078 (inputs
13079 `(("zlib" ,zlib)))
13080 (home-page "https://lh3.github.io/minimap2/")
13081 (synopsis "Pairwise aligner for genomic and spliced nucleotide sequences")
13082 (description "Minimap2 is a versatile sequence alignment program that
13083 aligns DNA or mRNA sequences against a large reference database. Typical use
13084 cases include:
13085
13086 @enumerate
13087 @item mapping PacBio or Oxford Nanopore genomic reads to the human genome;
13088 @item finding overlaps between long reads with error rate up to ~15%;
13089 @item splice-aware alignment of PacBio Iso-Seq or Nanopore cDNA or Direct RNA
13090 reads against a reference genome;
13091 @item aligning Illumina single- or paired-end reads;
13092 @item assembly-to-assembly alignment;
13093 @item full-genome alignment between two closely related species with
13094 divergence below ~15%.
13095 @end enumerate\n")
13096 (license license:expat)))
13097
13098 (define-public miniasm
13099 (package
13100 (name "miniasm")
13101 (version "0.3")
13102 (source (origin
13103 (method git-fetch)
13104 (uri (git-reference
13105 (url "https://github.com/lh3/miniasm")
13106 (commit (string-append "v" version))))
13107 (file-name (git-file-name name version))
13108 (sha256
13109 (base32
13110 "04dv5wv8bhsw1imxwyd438bnn9kby7svp44nbcz8lsadzjjci5gs"))))
13111 (build-system gnu-build-system)
13112 (inputs
13113 `(("zlib" ,zlib)))
13114 (arguments
13115 `(#:tests? #f ; There are no tests.
13116 #:phases
13117 (modify-phases %standard-phases
13118 (delete 'configure)
13119 (replace 'install
13120 (lambda* (#:key inputs outputs #:allow-other-keys)
13121 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
13122 (install-file "miniasm" bin)
13123 (install-file "minidot" bin)
13124 #t))))))
13125 (home-page "https://github.com/lh3/miniasm")
13126 (synopsis "Ultrafast de novo assembly for long noisy reads")
13127 (description "Miniasm is a very fast OLC-based de novo assembler for noisy
13128 long reads. It takes all-vs-all read self-mappings (typically by minimap) as
13129 input and outputs an assembly graph in the GFA format. Different from
13130 mainstream assemblers, miniasm does not have a consensus step. It simply
13131 concatenates pieces of read sequences to generate the final unitig sequences.
13132 Thus the per-base error rate is similar to the raw input reads.")
13133 (license license:expat)))
13134
13135 (define-public r-circus
13136 (package
13137 (name "r-circus")
13138 (version "0.1.5")
13139 (source
13140 (origin
13141 (method git-fetch)
13142 (uri (git-reference
13143 (url "https://github.com/BIMSBbioinfo/ciRcus")
13144 (commit (string-append "v" version))))
13145 (file-name (git-file-name name version))
13146 (sha256
13147 (base32
13148 "0jhjn3ilb057hbf6yzrihj13ifxxs32y7nkby8l3lkm28dg4p97h"))))
13149 (build-system r-build-system)
13150 (propagated-inputs
13151 `(("r-annotationdbi" ,r-annotationdbi)
13152 ("r-annotationhub" ,r-annotationhub)
13153 ("r-biomart" ,r-biomart)
13154 ("r-data-table" ,r-data-table)
13155 ("r-dbi" ,r-dbi)
13156 ("r-genomicfeatures" ,r-genomicfeatures)
13157 ("r-genomicranges" ,r-genomicranges)
13158 ("r-ggplot2" ,r-ggplot2)
13159 ("r-hash" ,r-hash)
13160 ("r-iranges" ,r-iranges)
13161 ("r-rcolorbrewer" ,r-rcolorbrewer)
13162 ("r-rmysql" ,r-rmysql)
13163 ("r-s4vectors" ,r-s4vectors)
13164 ("r-stringr" ,r-stringr)
13165 ("r-summarizedexperiment" ,r-summarizedexperiment)))
13166 (native-inputs
13167 `(("r-knitr" ,r-knitr)))
13168 (home-page "https://github.com/BIMSBbioinfo/ciRcus")
13169 (synopsis "Annotation, analysis and visualization of circRNA data")
13170 (description "Circus is an R package for annotation, analysis and
13171 visualization of circRNA data. Users can annotate their circRNA candidates
13172 with host genes, gene featrues they are spliced from, and discriminate between
13173 known and yet unknown splice junctions. Circular-to-linear ratios of circRNAs
13174 can be calculated, and a number of descriptive plots easily generated.")
13175 (license license:artistic2.0)))
13176
13177 (define-public gffread
13178 ;; We cannot use the tagged release because it is not in sync with gclib.
13179 ;; See https://github.com/gpertea/gffread/issues/26
13180 (let ((commit "ba7535fcb3cea55a6e5a491d916e93b454e87fd0")
13181 (revision "1"))
13182 (package
13183 (name "gffread")
13184 (version (git-version "0.9.12" revision commit))
13185 (source
13186 (origin
13187 (method git-fetch)
13188 (uri (git-reference
13189 (url "https://github.com/gpertea/gffread")
13190 (commit commit)))
13191 (file-name (git-file-name name version))
13192 (sha256
13193 (base32
13194 "1dl2nbcg96lxpd0drg48ssa8343nf7pw9s9mkrc4mjjmfwsin3ki"))))
13195 (build-system gnu-build-system)
13196 (arguments
13197 `(#:tests? #f ; no check target
13198 #:make-flags
13199 (list "GCLDIR=gclib")
13200 #:phases
13201 (modify-phases %standard-phases
13202 (delete 'configure)
13203 (add-after 'unpack 'copy-gclib-source
13204 (lambda* (#:key inputs #:allow-other-keys)
13205 (mkdir-p "gclib")
13206 (copy-recursively (assoc-ref inputs "gclib-source") "gclib")
13207 #t))
13208 ;; There is no install target
13209 (replace 'install
13210 (lambda* (#:key outputs #:allow-other-keys)
13211 (let* ((out (assoc-ref outputs "out"))
13212 (bin (string-append out "/bin")))
13213 (install-file "gffread" bin))
13214 #t)))))
13215 (native-inputs
13216 `(("gclib-source"
13217 ,(let ((version "0.10.3")
13218 (commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
13219 (revision "1"))
13220 (origin
13221 (method git-fetch)
13222 (uri (git-reference
13223 (url "https://github.com/gpertea/gclib")
13224 (commit commit)))
13225 (file-name (git-file-name "gclib" version))
13226 (sha256
13227 (base32
13228 "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
13229 (home-page "https://github.com/gpertea/gffread/")
13230 (synopsis "Parse and convert GFF/GTF files")
13231 (description
13232 "This package provides a GFF/GTF file parsing utility providing format
13233 conversions, region filtering, FASTA sequence extraction and more.")
13234 ;; gffread is under Expat, but gclib is under Artistic 2.0
13235 (license (list license:expat
13236 license:artistic2.0)))))
13237
13238 (define-public find-circ
13239 ;; The last release was in 2015. The license was clarified in 2017, so we
13240 ;; take the latest commit.
13241 (let ((commit "8655dca54970fcf7e92e22fbf57e1188724dda7d")
13242 (revision "1"))
13243 (package
13244 (name "find-circ")
13245 (version (git-version "1.2" revision commit))
13246 (source
13247 (origin
13248 (method git-fetch)
13249 (uri (git-reference
13250 (url "https://github.com/marvin-jens/find_circ")
13251 (commit commit)))
13252 (file-name (git-file-name name version))
13253 (sha256
13254 (base32
13255 "0p77pbqbclqr4srms34y1b9b4njybfpjiknc11ki84f3p8skb3cg"))))
13256 (build-system gnu-build-system)
13257 (arguments
13258 `(#:tests? #f ; there are none
13259 #:phases
13260 ;; There is no actual build system.
13261 (modify-phases %standard-phases
13262 (delete 'configure)
13263 (delete 'build)
13264 (replace 'install
13265 (lambda* (#:key outputs #:allow-other-keys)
13266 (let* ((out (assoc-ref outputs "out"))
13267 (bin (string-append out "/bin"))
13268 (path (getenv "PYTHONPATH")))
13269 (for-each (lambda (script)
13270 (install-file script bin)
13271 (wrap-program (string-append bin "/" script)
13272 `("PYTHONPATH" ":" prefix (,path))))
13273 '("cmp_bed.py"
13274 "find_circ.py"
13275 "maxlength.py"
13276 "merge_bed.py"
13277 "unmapped2anchors.py")))
13278 #t)))))
13279 (inputs
13280 `(("python2" ,python-2)
13281 ("python2-pysam" ,python2-pysam)
13282 ("python2-numpy" ,python2-numpy)))
13283 (home-page "https://github.com/marvin-jens/find_circ")
13284 (synopsis "circRNA detection from RNA-seq reads")
13285 (description "This package provides tools to detect head-to-tail
13286 spliced (back-spliced) sequencing reads, indicative of circular RNA (circRNA)
13287 in RNA-seq data.")
13288 (license license:gpl3))))
13289
13290 (define-public python-scanpy
13291 (package
13292 (name "python-scanpy")
13293 (version "1.4.6")
13294 (source
13295 (origin
13296 (method url-fetch)
13297 (uri (pypi-uri "scanpy" version))
13298 (sha256
13299 (base32
13300 "0s2b6cvaigx4wzw3850qb93sjwwxbzh22kpbp498zklc5rjpbz4l"))))
13301 (build-system python-build-system)
13302 (arguments
13303 `(#:phases
13304 (modify-phases %standard-phases
13305 (replace 'check
13306 (lambda* (#:key inputs #:allow-other-keys)
13307 ;; These tests require Internet access.
13308 (delete-file-recursively "scanpy/tests/notebooks")
13309 (delete-file "scanpy/tests/test_clustering.py")
13310 (delete-file "scanpy/tests/test_datasets.py")
13311
13312 ;; TODO: I can't get the plotting tests to work, even with Xvfb.
13313 (delete-file "scanpy/tests/test_plotting.py")
13314 (delete-file "scanpy/tests/test_preprocessing.py")
13315 (delete-file "scanpy/tests/test_read_10x.py")
13316
13317 (setenv "PYTHONPATH"
13318 (string-append (getcwd) ":"
13319 (getenv "PYTHONPATH")))
13320 (invoke "pytest")
13321 #t)))))
13322 (propagated-inputs
13323 `(("python-anndata" ,python-anndata)
13324 ("python-h5py" ,python-h5py)
13325 ("python-igraph" ,python-igraph)
13326 ("python-joblib" ,python-joblib)
13327 ("python-legacy-api-wrap" ,python-legacy-api-wrap)
13328 ("python-louvain" ,python-louvain)
13329 ("python-matplotlib" ,python-matplotlib)
13330 ("python-natsort" ,python-natsort)
13331 ("python-networkx" ,python-networkx)
13332 ("python-numba" ,python-numba)
13333 ("python-packaging" ,python-packaging)
13334 ("python-pandas" ,python-pandas)
13335 ("python-patsy" ,python-patsy)
13336 ("python-scikit-learn" ,python-scikit-learn)
13337 ("python-scipy" ,python-scipy)
13338 ("python-seaborn" ,python-seaborn)
13339 ("python-statsmodels" ,python-statsmodels)
13340 ("python-tables" ,python-tables)
13341 ("python-tqdm" ,python-tqdm)
13342 ("python-umap-learn" ,python-umap-learn)))
13343 (native-inputs
13344 `(("python-pytest" ,python-pytest)
13345 ("python-setuptools-scm" ,python-setuptools-scm)))
13346 (home-page "https://github.com/theislab/scanpy")
13347 (synopsis "Single-Cell Analysis in Python.")
13348 (description "Scanpy is a scalable toolkit for analyzing single-cell gene
13349 expression data. It includes preprocessing, visualization, clustering,
13350 pseudotime and trajectory inference and differential expression testing. The
13351 Python-based implementation efficiently deals with datasets of more than one
13352 million cells.")
13353 (license license:bsd-3)))
13354
13355 (define-public python-bbknn
13356 (package
13357 (name "python-bbknn")
13358 (version "1.3.6")
13359 (source
13360 (origin
13361 (method url-fetch)
13362 (uri (pypi-uri "bbknn" version))
13363 (sha256
13364 (base32
13365 "1jbsh01f57zj4bhvjr3jh4532zznqd6nccmgrl3qi9gnhkf7c4y0"))))
13366 (build-system python-build-system)
13367 (arguments
13368 `(#:tests? #f)) ; TODO: Enable after migration to scikit-learn.
13369 (propagated-inputs
13370 `(("python-annoy" ,python-annoy)
13371 ("python-cython" ,python-cython)
13372 ("python-numpy" ,python-numpy)
13373 ("python-scipy" ,python-scipy)
13374 ("python-umap-learn" ,python-umap-learn)))
13375 (home-page "https://github.com/Teichlab/bbknn")
13376 (synopsis "Batch balanced KNN")
13377 (description "BBKNN is a batch effect removal tool that can be directly
13378 used in the Scanpy workflow. It serves as an alternative to
13379 @code{scanpy.api.pp.neighbors()}, with both functions creating a neighbour
13380 graph for subsequent use in clustering, pseudotime and UMAP visualisation. If
13381 technical artifacts are present in the data, they will make it challenging to
13382 link corresponding cell types across different batches. BBKNN actively
13383 combats this effect by splitting your data into batches and finding a smaller
13384 number of neighbours for each cell within each of the groups. This helps
13385 create connections between analogous cells in different batches without
13386 altering the counts or PCA space.")
13387 (license license:expat)))
13388
13389 (define-public gffcompare
13390 (let ((commit "be56ef4349ea3966c12c6397f85e49e047361c41")
13391 (revision "1"))
13392 (package
13393 (name "gffcompare")
13394 (version (git-version "0.10.15" revision commit))
13395 (source
13396 (origin
13397 (method git-fetch)
13398 (uri (git-reference
13399 (url "https://github.com/gpertea/gffcompare/")
13400 (commit commit)))
13401 (file-name (git-file-name name version))
13402 (sha256
13403 (base32 "0cp5qpxdhw4mxpya5dld8wi3jk00zyklm6rcri426wydinrnfmkg"))))
13404 (build-system gnu-build-system)
13405 (arguments
13406 `(#:tests? #f ; no check target
13407 #:phases
13408 (modify-phases %standard-phases
13409 (delete 'configure)
13410 (add-before 'build 'copy-gclib-source
13411 (lambda* (#:key inputs #:allow-other-keys)
13412 (mkdir "../gclib")
13413 (copy-recursively
13414 (assoc-ref inputs "gclib-source") "../gclib")
13415 #t))
13416 (replace 'install
13417 (lambda* (#:key outputs #:allow-other-keys)
13418 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
13419 (install-file "gffcompare" bin)
13420 #t))))))
13421 (native-inputs
13422 `(("gclib-source" ; see 'README.md' of gffcompare
13423 ,(let ((commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
13424 (revision "1")
13425 (name "gclib")
13426 (version (git-version "0.10.3" revision commit)))
13427 (origin
13428 (method git-fetch)
13429 (uri (git-reference
13430 (url "https://github.com/gpertea/gclib/")
13431 (commit commit)))
13432 (file-name (git-file-name name version))
13433 (sha256
13434 (base32 "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
13435 (home-page "https://github.com/gpertea/gffcompare/")
13436 (synopsis "Tool for comparing or classifing transcripts of RNA-Seq")
13437 (description
13438 "@code{gffcompare} is a tool that can:
13439 @enumerate
13440 @item compare and evaluate the accuracy of RNA-Seq transcript assemblers
13441 (Cufflinks, Stringtie);
13442 @item collapse (merge) duplicate transcripts from multiple GTF/GFF3 files (e.g.
13443 resulted from assembly of different samples);
13444 @item classify transcripts from one or multiple GTF/GFF3 files as they relate to
13445 reference transcripts provided in a annotation file (also in GTF/GFF3 format).
13446 @end enumerate")
13447 (license
13448 (list
13449 license:expat ;license for gffcompare
13450 license:artistic2.0))))) ;license for gclib
13451
13452 (define-public intervaltree
13453 (let ((commit "b90527f9e6d51cd36ecbb50429e4524d3a418ea5"))
13454 (package
13455 (name "intervaltree")
13456 (version (git-version "0.0.0" "1" commit))
13457 (source
13458 (origin
13459 (method git-fetch)
13460 (uri (git-reference
13461 (url "https://github.com/ekg/intervaltree/")
13462 (commit commit)))
13463 (file-name (git-file-name name version))
13464 (sha256
13465 (base32 "0rgv6q5fl4x5d74n6p5wvdna6zmbdbqpb4jqqh6vq3670gn08xad"))))
13466 (build-system gnu-build-system)
13467 (arguments
13468 '(#:tests? #f ; No tests.
13469 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
13470 "DESTDIR=\"\"")
13471 #:phases
13472 (modify-phases %standard-phases
13473 (delete 'configure)))) ; There is no configure phase.
13474 (home-page "https://github.com/ekg/intervaltree")
13475 (synopsis "Minimal C++ interval tree implementation")
13476 (description "An interval tree can be used to efficiently find a set of
13477 numeric intervals overlapping or containing another interval. This library
13478 provides a basic implementation of an interval tree using C++ templates,
13479 allowing the insertion of arbitrary types into the tree.")
13480 (license license:expat))))
13481
13482 (define-public python-intervaltree
13483 (package
13484 (name "python-intervaltree")
13485 (version "3.0.2")
13486 (source
13487 (origin
13488 (method url-fetch)
13489 (uri (pypi-uri "intervaltree" version))
13490 (sha256
13491 (base32
13492 "0wz234g6irlm4hivs2qzmnywk0ss06ckagwh15nflkyb3p462kyb"))))
13493 (build-system python-build-system)
13494 (arguments
13495 `(#:phases
13496 (modify-phases %standard-phases
13497 ;; pytest seems to have a check to make sure the user is testing
13498 ;; their checked-out code and not an installed, potentially
13499 ;; out-of-date copy. This is harmless here, since we just installed
13500 ;; the package, so we disable the check to avoid skipping tests
13501 ;; entirely.
13502 (add-before 'check 'import-mismatch-error-workaround
13503 (lambda _
13504 (setenv "PY_IGNORE_IMPORTMISMATCH" "1")
13505 #t)))))
13506 (propagated-inputs
13507 `(("python-sortedcontainers" ,python-sortedcontainers)))
13508 (native-inputs
13509 `(("python-pytest" ,python-pytest)))
13510 (home-page "https://github.com/chaimleib/intervaltree")
13511 (synopsis "Editable interval tree data structure")
13512 (description
13513 "This package provides a mutable, self-balancing interval tree
13514 implementation for Python. Queries may be by point, by range overlap, or by
13515 range envelopment. This library was designed to allow tagging text and time
13516 intervals, where the intervals include the lower bound but not the upper
13517 bound.")
13518 (license license:asl2.0)))
13519
13520 (define-public python-pypairix
13521 (package
13522 (name "python-pypairix")
13523 (version "0.3.7")
13524 ;; The tarball on pypi does not include the makefile to build the
13525 ;; programs.
13526 (source
13527 (origin
13528 (method git-fetch)
13529 (uri (git-reference
13530 (url "https://github.com/4dn-dcic/pairix")
13531 (commit version)))
13532 (file-name (git-file-name name version))
13533 (sha256
13534 (base32
13535 "1snr3lrmsld8sy77ng6ba6wcmd33xjccf1l2f3m6pi29xis9nd6p"))))
13536 (build-system python-build-system)
13537 (arguments
13538 `(#:phases
13539 (modify-phases %standard-phases
13540 (add-before 'build 'build-programs
13541 (lambda _ (invoke "make")))
13542 (add-after 'install 'install-programs
13543 (lambda* (#:key outputs #:allow-other-keys)
13544 (copy-recursively "bin" (string-append
13545 (assoc-ref outputs "out")
13546 "/bin"))
13547 #t)))))
13548 (inputs
13549 `(("zlib" ,zlib)))
13550 (home-page "https://github.com/4dn-dcic/pairix")
13551 (synopsis "Support for querying pairix-indexed bgzipped text files")
13552 (description
13553 "Pypairix is a Python module for fast querying on a pairix-indexed
13554 bgzipped text file that contains a pair of genomic coordinates per line.")
13555 (license license:expat)))
13556
13557 (define-public python-pyfaidx
13558 (package
13559 (name "python-pyfaidx")
13560 (version "0.5.8")
13561 (source
13562 (origin
13563 (method url-fetch)
13564 (uri (pypi-uri "pyfaidx" version))
13565 (sha256
13566 (base32
13567 "038xi3a6zvrxbyyfpp64ka8pcjgsdq4fgw9cl5lpxbvmm1bzzw2q"))))
13568 (build-system python-build-system)
13569 (propagated-inputs
13570 `(("python-six" ,python-six)))
13571 (home-page "http://mattshirley.com")
13572 (synopsis "Random access to fasta subsequences")
13573 (description
13574 "This package provides procedures for efficient pythonic random access to
13575 fasta subsequences.")
13576 (license license:bsd-3)))
13577
13578 (define-public python2-pyfaidx
13579 (package-with-python2 python-pyfaidx))
13580
13581 (define-public python-cooler
13582 (package
13583 (name "python-cooler")
13584 (version "0.8.7")
13585 (source
13586 (origin
13587 (method url-fetch)
13588 (uri (pypi-uri "cooler" version))
13589 (sha256
13590 (base32
13591 "01g6gqix9ba27sappz6nfyiwabzrlf8i5fn8kwcz8ra356cq9crp"))))
13592 (build-system python-build-system)
13593 (propagated-inputs
13594 `(("python-asciitree" ,python-asciitree)
13595 ("python-biopython" ,python-biopython)
13596 ("python-click" ,python-click)
13597 ("python-cytoolz" ,python-cytoolz)
13598 ("python-dask" ,python-dask)
13599 ("python-h5py" ,python-h5py)
13600 ("python-multiprocess" ,python-multiprocess)
13601 ("python-numpy" ,python-numpy)
13602 ("python-pandas" ,python-pandas)
13603 ("python-pyfaidx" ,python-pyfaidx)
13604 ("python-pypairix" ,python-pypairix)
13605 ("python-pysam" ,python-pysam)
13606 ("python-pyyaml" ,python-pyyaml)
13607 ("python-scipy" ,python-scipy)
13608 ("python-simplejson" ,python-simplejson)))
13609 (native-inputs
13610 `(("python-mock" ,python-mock)
13611 ("python-pytest" ,python-pytest)))
13612 (home-page "https://github.com/mirnylab/cooler")
13613 (synopsis "Sparse binary format for genomic interaction matrices")
13614 (description
13615 "Cooler is a support library for a sparse, compressed, binary persistent
13616 storage format, called @code{cool}, used to store genomic interaction data,
13617 such as Hi-C contact matrices.")
13618 (license license:bsd-3)))
13619
13620 (define-public python-hicmatrix
13621 (package
13622 (name "python-hicmatrix")
13623 (version "12")
13624 (source
13625 (origin
13626 ;; Version 12 is not available on pypi.
13627 (method git-fetch)
13628 (uri (git-reference
13629 (url "https://github.com/deeptools/HiCMatrix")
13630 (commit version)))
13631 (file-name (git-file-name name version))
13632 (sha256
13633 (base32
13634 "1xhdyx16f3brgxgxybixdi64ki8nbbkq5vk4h9ahi11pzpjfn1pj"))))
13635 (build-system python-build-system)
13636 (arguments
13637 `(#:phases
13638 (modify-phases %standard-phases
13639 (add-after 'unpack 'relax-requirements
13640 (lambda _
13641 (substitute* '("requirements.txt"
13642 "setup.py")
13643 (("cooler *=+ *0.8.5")
13644 "cooler==0.8.*"))
13645 #t)))))
13646 (propagated-inputs
13647 `(("python-cooler" ,python-cooler)
13648 ("python-intervaltree" ,python-intervaltree)
13649 ("python-numpy" ,python-numpy)
13650 ("python-pandas" ,python-pandas)
13651 ("python-scipy" ,python-scipy)
13652 ("python-tables" ,python-tables)))
13653 (home-page "https://github.com/deeptools/HiCMatrix/")
13654 (synopsis "HiCMatrix class for HiCExplorer and pyGenomeTracks")
13655 (description
13656 "This helper package implements the @code{HiCMatrix} class for
13657 the HiCExplorer and pyGenomeTracks packages.")
13658 (license license:gpl3+)))
13659
13660 (define-public python-hicexplorer
13661 (package
13662 (name "python-hicexplorer")
13663 (version "2.1.4")
13664 (source
13665 (origin
13666 ;; The latest version is not available on Pypi.
13667 (method git-fetch)
13668 (uri (git-reference
13669 (url "https://github.com/deeptools/HiCExplorer")
13670 (commit version)))
13671 (file-name (git-file-name name version))
13672 (sha256
13673 (base32
13674 "0q5gpbzmrkvygqgw524q36b4nrivcmyi5v194vsx0qw7b3gcmq08"))))
13675 (build-system python-build-system)
13676 (arguments
13677 `(#:phases
13678 (modify-phases %standard-phases
13679 (add-after 'unpack 'loosen-up-requirements
13680 (lambda _
13681 (substitute* "setup.py"
13682 (("==") ">="))
13683 #t)))))
13684 (propagated-inputs
13685 `(("python-biopython" ,python-biopython)
13686 ("python-configparser" ,python-configparser)
13687 ("python-cooler" ,python-cooler)
13688 ("python-future" ,python-future)
13689 ("python-intervaltree" ,python-intervaltree)
13690 ("python-jinja2" ,python-jinja2)
13691 ("python-matplotlib" ,python-matplotlib)
13692 ("python-numpy" ,python-numpy)
13693 ("python-pandas" ,python-pandas)
13694 ("python-pybigwig" ,python-pybigwig)
13695 ("python-pysam" ,python-pysam)
13696 ("python-scipy" ,python-scipy)
13697 ("python-six" ,python-six)
13698 ("python-tables" ,python-tables)
13699 ("python-unidecode" ,python-unidecode)))
13700 (home-page "https://hicexplorer.readthedocs.io")
13701 (synopsis "Process, analyze and visualize Hi-C data")
13702 (description
13703 "HiCExplorer is a powerful and easy to use set of tools to process,
13704 normalize and visualize Hi-C data. HiCExplorer facilitates the creation of
13705 contact matrices, correction of contacts, TAD detection, A/B compartments,
13706 merging, reordering or chromosomes, conversion from different formats
13707 including cooler and detection of long-range contacts. Moreover, it allows
13708 the visualization of multiple contact matrices along with other types of data
13709 like genes, compartments, ChIP-seq coverage tracks (and in general any type of
13710 genomic scores), long range contacts and the visualization of viewpoints.")
13711 (license license:gpl3)))
13712
13713 (define-public python-pygenometracks
13714 (package
13715 (name "python-pygenometracks")
13716 (version "3.3")
13717 (source
13718 (origin
13719 (method url-fetch)
13720 (uri (pypi-uri "pyGenomeTracks" version))
13721 (sha256
13722 (base32
13723 "16laa0wnf4qn9fb9ych4w1vqhqwjss70v0y0f6wp4gwqfrlgac0f"))))
13724 (build-system python-build-system)
13725 (arguments
13726 `(#:tests? #f ; there are none
13727 #:phases
13728 (modify-phases %standard-phases
13729 (add-after 'unpack 'relax-requirements
13730 (lambda _
13731 (substitute* "setup.py"
13732 (("matplotlib ==3.1.1")
13733 "matplotlib >=3.1.1"))
13734 #t)))))
13735 (propagated-inputs
13736 `(("python-future" ,python-future)
13737 ("python-gffutils" ,python-gffutils)
13738 ("python-hicmatrix" ,python-hicmatrix)
13739 ("python-intervaltree" ,python-intervaltree)
13740 ("python-matplotlib" ,python-matplotlib)
13741 ("python-numpy" ,python-numpy)
13742 ("python-pybigwig" ,python-pybigwig)
13743 ("python-pysam" ,python-pysam)
13744 ("python-tqdm" ,python-tqdm)))
13745 (native-inputs
13746 `(("python-pytest" ,python-pytest)))
13747 (home-page "https://pygenometracks.readthedocs.io")
13748 (synopsis "Program and library to plot beautiful genome browser tracks")
13749 (description
13750 "This package aims to produce high-quality genome browser tracks that
13751 are highly customizable. Currently, it is possible to plot: bigwig, bed (many
13752 options), bedgraph, links (represented as arcs), and Hi-C matrices.
13753 pyGenomeTracks can make plots with or without Hi-C data.")
13754 (license license:gpl3+)))
13755
13756 (define-public python-hic2cool
13757 (package
13758 (name "python-hic2cool")
13759 (version "0.4.2")
13760 (source
13761 (origin
13762 (method url-fetch)
13763 (uri (pypi-uri "hic2cool" version))
13764 (sha256
13765 (base32
13766 "0xy6mhfns2lzib1kcr6419jjp6pmh0qx8z8na55lmiwn0ds8q9cl"))))
13767 (build-system python-build-system)
13768 (arguments '(#:tests? #f)) ; no tests included
13769 (propagated-inputs
13770 `(("python-cooler" ,python-cooler)))
13771 (home-page "https://github.com/4dn-dcic/hic2cool")
13772 (synopsis "Converter for .hic and .cool files")
13773 (description
13774 "This package provides a converter between @code{.hic} files (from
13775 juicer) and single-resolution or multi-resolution @code{.cool} files (for
13776 cooler). Both @code{hic} and @code{cool} files describe Hi-C contact
13777 matrices.")
13778 (license license:expat)))
13779
13780 (define-public r-pore
13781 (package
13782 (name "r-pore")
13783 (version "0.24")
13784 (source
13785 (origin
13786 (method url-fetch)
13787 (uri
13788 (string-append "mirror://sourceforge/rpore/" version
13789 "/poRe_" version ".tar.gz"))
13790 (sha256
13791 (base32 "0pih9nljbv8g4x8rkk29i7aqq681b782r5s5ynp4nw9yzqnmmksv"))))
13792 (properties `((upstream-name . "poRe")))
13793 (build-system r-build-system)
13794 (propagated-inputs
13795 `(("r-bit64" ,r-bit64)
13796 ("r-data-table" ,r-data-table)
13797 ("r-rhdf5" ,r-rhdf5)
13798 ("r-shiny" ,r-shiny)
13799 ("r-svdialogs" ,r-svdialogs)))
13800 (home-page "https://sourceforge.net/projects/rpore/")
13801 (synopsis "Visualize Nanopore sequencing data")
13802 (description
13803 "This package provides graphical user interfaces to organize and visualize Nanopore
13804 sequencing data.")
13805 ;; This is free software but the license variant is unclear:
13806 ;; <https://github.com/mw55309/poRe_docs/issues/10>.
13807 (license license:bsd-3)))
13808
13809 (define-public r-xbioc
13810 (let ((revision "1")
13811 (commit "6ff0670a37ab3036aaf1d94aa4b208310946b0b5"))
13812 (package
13813 (name "r-xbioc")
13814 (version (git-version "0.1.16" revision commit))
13815 (source (origin
13816 (method git-fetch)
13817 (uri (git-reference
13818 (url "https://github.com/renozao/xbioc")
13819 (commit commit)))
13820 (file-name (git-file-name name version))
13821 (sha256
13822 (base32
13823 "0w8bsq5myiwkfhh83nm6is5ichiyvwa1axx2szvxnzq39x6knf66"))))
13824 (build-system r-build-system)
13825 (propagated-inputs
13826 `(("r-annotationdbi" ,r-annotationdbi)
13827 ("r-assertthat" ,r-assertthat)
13828 ("r-biobase" ,r-biobase)
13829 ("r-biocmanager" ,r-biocmanager)
13830 ("r-digest" ,r-digest)
13831 ("r-pkgmaker" ,r-pkgmaker)
13832 ("r-plyr" ,r-plyr)
13833 ("r-reshape2" ,r-reshape2)
13834 ("r-stringr" ,r-stringr)))
13835 (home-page "https://github.com/renozao/xbioc/")
13836 (synopsis "Extra base functions for Bioconductor")
13837 (description "This package provides extra utility functions to perform
13838 common tasks in the analysis of omics data, leveraging and enhancing features
13839 provided by Bioconductor packages.")
13840 (license license:gpl3+))))
13841
13842 (define-public r-cssam
13843 (let ((revision "1")
13844 (commit "9ec58c982fa551af0d80b1a266890d92954833f2"))
13845 (package
13846 (name "r-cssam")
13847 (version (git-version "1.4" revision commit))
13848 (source (origin
13849 (method git-fetch)
13850 (uri (git-reference
13851 (url "https://github.com/shenorrLab/csSAM")
13852 (commit commit)))
13853 (file-name (git-file-name name version))
13854 (sha256
13855 (base32
13856 "128syf9v39gk0z3ip000qpsjbg6l1siyq6c8b0hz41dzg5achyb3"))))
13857 (build-system r-build-system)
13858 (propagated-inputs
13859 `(("r-formula" ,r-formula)
13860 ("r-ggplot2" ,r-ggplot2)
13861 ("r-pkgmaker" ,r-pkgmaker)
13862 ("r-plyr" ,r-plyr)
13863 ("r-rngtools" ,r-rngtools)
13864 ("r-scales" ,r-scales)))
13865 (home-page "https://github.com/shenorrLab/csSAM/")
13866 (synopsis "Cell type-specific statistical analysis of microarray")
13867 (description "This package implements the method csSAM that computes
13868 cell-specific differential expression from measured cell proportions using
13869 SAM.")
13870 ;; Any version
13871 (license license:lgpl2.1+))))
13872
13873 (define-public r-bseqsc
13874 (let ((revision "1")
13875 (commit "fef3f3e38dcf3df37103348b5780937982b43b98"))
13876 (package
13877 (name "r-bseqsc")
13878 (version (git-version "1.0" revision commit))
13879 (source (origin
13880 (method git-fetch)
13881 (uri (git-reference
13882 (url "https://github.com/shenorrLab/bseqsc")
13883 (commit commit)))
13884 (file-name (git-file-name name version))
13885 (sha256
13886 (base32
13887 "1prw13wa20f7wlc3gkkls66n1kxz8d28qrb8icfqdwdnnv8w5qg8"))))
13888 (build-system r-build-system)
13889 (propagated-inputs
13890 `(("r-abind" ,r-abind)
13891 ("r-annotationdbi" ,r-annotationdbi)
13892 ("r-biobase" ,r-biobase)
13893 ("r-cssam" ,r-cssam)
13894 ("r-dplyr" ,r-dplyr)
13895 ("r-e1071" ,r-e1071)
13896 ("r-edger" ,r-edger)
13897 ("r-ggplot2" ,r-ggplot2)
13898 ("r-nmf" ,r-nmf)
13899 ("r-openxlsx" ,r-openxlsx)
13900 ("r-pkgmaker" ,r-pkgmaker)
13901 ("r-plyr" ,r-plyr)
13902 ("r-preprocesscore" ,r-preprocesscore)
13903 ("r-rngtools" ,r-rngtools)
13904 ("r-scales" ,r-scales)
13905 ("r-stringr" ,r-stringr)
13906 ("r-xbioc" ,r-xbioc)))
13907 (home-page "https://github.com/shenorrLab/bseqsc")
13908 (synopsis "Deconvolution of bulk sequencing experiments using single cell data")
13909 (description "BSeq-sc is a bioinformatics analysis pipeline that
13910 leverages single-cell sequencing data to estimate cell type proportion and
13911 cell type-specific gene expression differences from RNA-seq data from bulk
13912 tissue samples. This is a companion package to the publication \"A
13913 single-cell transcriptomic map of the human and mouse pancreas reveals inter-
13914 and intra-cell population structure.\" Baron et al. Cell Systems (2016)
13915 @url{https://www.ncbi.nlm.nih.gov/pubmed/27667365}.")
13916 (license license:gpl2+))))
13917
13918 (define-public porechop
13919 ;; The recommended way to install is to clone the git repository
13920 ;; https://github.com/rrwick/Porechop#installation
13921 (let ((commit "289d5dca4a5fc327f97b3f8cecb68ecaf1014861")
13922 (revision "1"))
13923 (package
13924 (name "porechop")
13925 (version (git-version "0.2.3" revision commit))
13926 (source
13927 (origin
13928 (method git-fetch)
13929 (uri (git-reference
13930 (url "https://github.com/rrwick/Porechop")
13931 (commit commit)))
13932 (file-name (git-file-name name version))
13933 (sha256
13934 (base32 "05ps43gig0d3ia9x5lj84lb00hbsl6ba9n7y7jz927npxbr2ym23"))))
13935 (build-system python-build-system)
13936 (home-page "https://github.com/rrwick/porechop")
13937 (synopsis "Finding, trimming or splitting adapters, in Oxford Nanopore reads")
13938 (description
13939 "The porechop package is a tool for finding and removing adapters from Oxford
13940 Nanopore reads. Adapters on the ends of reads are trimmed off, and when a read
13941 has an adapter in its middle, it is treated as chimeric and chopped into
13942 separate reads. Porechop performs thorough alignments to effectively find
13943 adapters, even at low sequence identity. Porechop also supports demultiplexing
13944 of Nanopore reads that were barcoded with the Native Barcoding Kit, PCR
13945 Barcoding Kit or Rapid Barcoding Kit.")
13946 (license license:gpl3+))))
13947
13948 (define-public poretools
13949 ;; The latest release was in 2016 and the latest commit is from 2017
13950 ;; the recommended way to install is to clone the git repository
13951 ;; https://poretools.readthedocs.io/en/latest/content/installation.html
13952 (let ((commit "e426b1f09e86ac259a00c261c79df91510777407")
13953 (revision "1"))
13954 (package
13955 (name "poretools")
13956 (version (git-version "0.6.0" revision commit))
13957 (source
13958 (origin
13959 (method git-fetch)
13960 (uri (git-reference
13961 (url "https://github.com/arq5x/poretools")
13962 (commit commit)))
13963 (file-name (git-file-name name version))
13964 (sha256
13965 (base32 "0bglj833wxpp3cq430p1d3xp085ls221js2y90w7ir2x5ay8l7am"))))
13966 (build-system python-build-system)
13967 ;; requires python >=2.7, <3.0, and the same for python dependencies
13968 (arguments `(#:python ,python-2))
13969 (inputs
13970 `(("hdf5" ,hdf5)))
13971 (propagated-inputs
13972 `(("python-dateutil" ,python2-dateutil)
13973 ("python-h5py" ,python2-h5py)
13974 ("python-matplotlib" ,python2-matplotlib)
13975 ("python-pandas" ,python2-pandas)
13976 ("python-seaborn" ,python2-seaborn)))
13977 (home-page "https://poretools.readthedocs.io")
13978 (synopsis "Toolkit for working with nanopore sequencing data")
13979 (description
13980 "The MinION from Oxford Nanopore Technologies is a nanopore sequencer.
13981 This @code{poretools} package is a flexible toolkit for exploring datasets
13982 generated by nanopore sequencing devices for the purposes of quality control and
13983 downstream analysis. Poretools operates directly on the native FAST5, a variant
13984 of the Hierarchical Data Format (HDF5) standard.")
13985 (license license:expat))))
13986
13987 (define-public jamm
13988 (package
13989 (name "jamm")
13990 (version "1.0.7.6")
13991 (source
13992 (origin
13993 (method git-fetch)
13994 (uri (git-reference
13995 (url "https://github.com/mahmoudibrahim/JAMM")
13996 (commit (string-append "JAMMv" version))))
13997 (file-name (git-file-name name version))
13998 (sha256
13999 (base32
14000 "0bsa5mf9n9q5jz7mmacrra41l7r8rac5vgsn6wv1fb52ya58b970"))))
14001 (build-system gnu-build-system)
14002 (arguments
14003 `(#:tests? #f ; there are none
14004 #:phases
14005 (modify-phases %standard-phases
14006 (delete 'configure)
14007 (delete 'build)
14008 (replace 'install
14009 (lambda* (#:key inputs outputs #:allow-other-keys)
14010 (let* ((out (assoc-ref outputs "out"))
14011 (libexec (string-append out "/libexec/jamm"))
14012 (bin (string-append out "/bin")))
14013 (substitute* '("JAMM.sh"
14014 "SignalGenerator.sh")
14015 (("^sPath=.*")
14016 (string-append "sPath=\"" libexec "\"\n")))
14017 (for-each (lambda (file)
14018 (install-file file libexec))
14019 (list "bincalculator.r"
14020 "peakfinder.r"
14021 "peakhelper.r"
14022 "signalmaker.r"
14023 "xcorr.r"
14024 "xcorrhelper.r"
14025 ;; Perl scripts
14026 "peakfilter.pl"
14027 "readshifter.pl"))
14028
14029 (for-each
14030 (lambda (script)
14031 (chmod script #o555)
14032 (install-file script bin)
14033 (wrap-program (string-append bin "/" script)
14034 `("PATH" ":" prefix
14035 (,(string-append (assoc-ref inputs "coreutils") "/bin")
14036 ,(string-append (assoc-ref inputs "gawk") "/bin")
14037 ,(string-append (assoc-ref inputs "perl") "/bin")
14038 ,(string-append (assoc-ref inputs "r-minimal") "/bin")))
14039 `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB")))
14040 `("R_LIBS_SITE" ":" prefix (,(getenv "R_LIBS_SITE")))))
14041 (list "JAMM.sh" "SignalGenerator.sh")))
14042 #t)))))
14043 (inputs
14044 `(("bash" ,bash)
14045 ("coreutils" ,coreutils)
14046 ("gawk" ,gawk)
14047 ("perl" ,perl)
14048 ("r-minimal" ,r-minimal)
14049 ;;("r-parallel" ,r-parallel)
14050 ("r-signal" ,r-signal)
14051 ("r-mclust" ,r-mclust)))
14052 (home-page "https://github.com/mahmoudibrahim/JAMM")
14053 (synopsis "Peak finder for NGS datasets")
14054 (description
14055 "JAMM is a peak finder for next generation sequencing datasets (ChIP-Seq,
14056 ATAC-Seq, DNase-Seq, etc.) that can integrate replicates and assign peak
14057 boundaries accurately. JAMM is applicable to both broad and narrow
14058 datasets.")
14059 (license license:gpl3+)))
14060
14061 (define-public ngless
14062 (package
14063 (name "ngless")
14064 (version "1.1.0")
14065 (source
14066 (origin
14067 (method git-fetch)
14068 (uri (git-reference
14069 (url "https://gitlab.com/ngless/ngless.git")
14070 (commit (string-append "v" version))))
14071 (file-name (git-file-name name version))
14072 (sha256
14073 (base32
14074 "1wim8wpqyff080dfcazynrmjwqas38m24m0v350w245mmhrapdma"))))
14075 (build-system haskell-build-system)
14076 (arguments
14077 `(#:haddock? #f ; The haddock phase fails with: NGLess/CmdArgs.hs:20:1:
14078 ; error: parse error on input import
14079 ; import Options.Applicative
14080 #:phases
14081 (modify-phases %standard-phases
14082 (add-after 'unpack 'create-Versions.hs
14083 (lambda _
14084 (substitute* "Makefile"
14085 (("BWA_VERSION = .*")
14086 (string-append "BWA_VERSION = "
14087 ,(package-version bwa) "\n"))
14088 (("SAM_VERSION = .*")
14089 (string-append "SAM_VERSION = "
14090 ,(package-version samtools) "\n"))
14091 (("PRODIGAL_VERSION = .*")
14092 (string-append "PRODIGAL_VERSION = "
14093 ,(package-version prodigal) "\n"))
14094 (("MINIMAP2_VERSION = .*")
14095 (string-append "MINIMAP2_VERSION = "
14096 ,(package-version minimap2) "\n")))
14097 (invoke "make" "NGLess/Dependencies/Versions.hs")
14098 #t))
14099 (add-after 'create-Versions.hs 'create-cabal-file
14100 (lambda _ (invoke "hpack") #t))
14101 ;; These tools are expected to be installed alongside ngless.
14102 (add-after 'install 'link-tools
14103 (lambda* (#:key inputs outputs #:allow-other-keys)
14104 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
14105 (symlink (string-append (assoc-ref inputs "prodigal")
14106 "/bin/prodigal")
14107 (string-append bin "ngless-" ,version "-prodigal"))
14108 (symlink (string-append (assoc-ref inputs "minimap2")
14109 "/bin/minimap2")
14110 (string-append bin "ngless-" ,version "-minimap2"))
14111 (symlink (string-append (assoc-ref inputs "samtools")
14112 "/bin/samtools")
14113 (string-append bin "ngless-" ,version "-samtools"))
14114 (symlink (string-append (assoc-ref inputs "bwa")
14115 "/bin/bwa")
14116 (string-append bin "ngless-" ,version "-bwa"))
14117 #t))))))
14118 (inputs
14119 `(("prodigal" ,prodigal)
14120 ("bwa" ,bwa)
14121 ("samtools" ,samtools)
14122 ("minimap2" ,minimap2)
14123 ("ghc-aeson" ,ghc-aeson)
14124 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
14125 ("ghc-async" ,ghc-async)
14126 ("ghc-atomic-write" ,ghc-atomic-write)
14127 ("ghc-bytestring-lexing" ,ghc-bytestring-lexing)
14128 ("ghc-conduit" ,ghc-conduit)
14129 ("ghc-conduit-algorithms" ,ghc-conduit-algorithms)
14130 ("ghc-conduit-extra" ,ghc-conduit-extra)
14131 ("ghc-configurator" ,ghc-configurator)
14132 ("ghc-convertible" ,ghc-convertible)
14133 ("ghc-data-default" ,ghc-data-default)
14134 ("ghc-diagrams-core" ,ghc-diagrams-core)
14135 ("ghc-diagrams-lib" ,ghc-diagrams-lib)
14136 ("ghc-diagrams-svg" ,ghc-diagrams-svg)
14137 ("ghc-double-conversion" ,ghc-double-conversion)
14138 ("ghc-edit-distance" ,ghc-edit-distance)
14139 ("ghc-either" ,ghc-either)
14140 ("ghc-errors" ,ghc-errors)
14141 ("ghc-extra" ,ghc-extra)
14142 ("ghc-filemanip" ,ghc-filemanip)
14143 ("ghc-file-embed" ,ghc-file-embed)
14144 ("ghc-gitrev" ,ghc-gitrev)
14145 ("ghc-hashtables" ,ghc-hashtables)
14146 ("ghc-http-conduit" ,ghc-http-conduit)
14147 ("ghc-inline-c" ,ghc-inline-c)
14148 ("ghc-inline-c-cpp" ,ghc-inline-c-cpp)
14149 ("ghc-intervalmap" ,ghc-intervalmap)
14150 ("ghc-missingh" ,ghc-missingh)
14151 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
14152 ("ghc-regex" ,ghc-regex)
14153 ("ghc-safe" ,ghc-safe)
14154 ("ghc-safeio" ,ghc-safeio)
14155 ("ghc-strict" ,ghc-strict)
14156 ("ghc-tar" ,ghc-tar)
14157 ("ghc-tar-conduit" ,ghc-tar-conduit)
14158 ("ghc-unliftio" ,ghc-unliftio)
14159 ("ghc-unliftio-core" ,ghc-unliftio-core)
14160 ("ghc-vector" ,ghc-vector)
14161 ("ghc-yaml" ,ghc-yaml)
14162 ("ghc-zlib" ,ghc-zlib)))
14163 (propagated-inputs
14164 `(("r-r6" ,r-r6)
14165 ("r-hdf5r" ,r-hdf5r)
14166 ("r-iterators" ,r-iterators)
14167 ("r-itertools" ,r-itertools)
14168 ("r-matrix" ,r-matrix)))
14169 (native-inputs
14170 `(("ghc-hpack" ,ghc-hpack)
14171 ("ghc-quickcheck" ,ghc-quickcheck)
14172 ("ghc-test-framework" ,ghc-test-framework)
14173 ("ghc-test-framework-hunit",ghc-test-framework-hunit)
14174 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
14175 ("ghc-test-framework-th" ,ghc-test-framework-th)))
14176 (home-page "https://gitlab.com/ngless/ngless")
14177 (synopsis "DSL for processing next-generation sequencing data")
14178 (description "Ngless is a domain-specific language for
14179 @dfn{next-generation sequencing} (NGS) data processing.")
14180 (license license:expat)))
14181
14182 (define-public filtlong
14183 ;; The recommended way to install is to clone the git repository
14184 ;; https://github.com/rrwick/Filtlong#installation
14185 ;; and the lastest release is more than nine months old
14186 (let ((commit "d1bb46dfe8bc7efe6257b5ce222c04bfe8aedaab")
14187 (revision "1"))
14188 (package
14189 (name "filtlong")
14190 (version (git-version "0.2.0" revision commit))
14191 (source
14192 (origin
14193 (method git-fetch)
14194 (uri (git-reference
14195 (url "https://github.com/rrwick/Filtlong")
14196 (commit commit)))
14197 (file-name (git-file-name name version))
14198 (sha256
14199 (base32 "1xr92r820x8qlkcr3b57iw223yq8vjgyi42jr79w2xgw47qzr575"))))
14200 (build-system gnu-build-system)
14201 (arguments
14202 `(#:tests? #f ; no check target
14203 #:phases
14204 (modify-phases %standard-phases
14205 (delete 'configure)
14206 (replace 'install
14207 (lambda* (#:key outputs #:allow-other-keys)
14208 (let* ((out (assoc-ref outputs "out"))
14209 (bin (string-append out "/bin"))
14210 (scripts (string-append out "/share/filtlong/scripts")))
14211 (install-file "bin/filtlong" bin)
14212 (install-file "scripts/histogram.py" scripts)
14213 (install-file "scripts/read_info_histograms.sh" scripts))
14214 #t))
14215 (add-after 'install 'wrap-program
14216 (lambda* (#:key inputs outputs #:allow-other-keys)
14217 (let* ((out (assoc-ref outputs "out"))
14218 (path (getenv "PYTHONPATH")))
14219 (wrap-program (string-append out
14220 "/share/filtlong/scripts/histogram.py")
14221 `("PYTHONPATH" ":" prefix (,path))))
14222 #t))
14223 (add-before 'check 'patch-tests
14224 (lambda _
14225 (substitute* "scripts/read_info_histograms.sh"
14226 (("awk") (which "gawk")))
14227 #t)))))
14228 (inputs
14229 `(("gawk" ,gawk) ;for read_info_histograms.sh
14230 ("python" ,python-2) ;required for histogram.py
14231 ("zlib" ,zlib)))
14232 (home-page "https://github.com/rrwick/Filtlong/")
14233 (synopsis "Tool for quality filtering of Nanopore and PacBio data")
14234 (description
14235 "The Filtlong package is a tool for filtering long reads by quality.
14236 It can take a set of long reads and produce a smaller, better subset. It uses
14237 both read length (longer is better) and read identity (higher is better) when
14238 choosing which reads pass the filter.")
14239 (license (list license:gpl3 ;filtlong
14240 license:asl2.0))))) ;histogram.py
14241
14242 (define-public nanopolish
14243 ;; The recommended way to install is to clone the git repository
14244 ;; <https://github.com/jts/nanopolish#installing-a-particular-release>.
14245 ;; Also, the differences between release and current version seem to be
14246 ;; significant.
14247 (let ((commit "6331dc4f15b9dfabb954ba3fae9d76b6c3ca6377")
14248 (revision "1"))
14249 (package
14250 (name "nanopolish")
14251 (version (git-version "0.11.1" revision commit))
14252 (source
14253 (origin
14254 (method git-fetch)
14255 (uri (git-reference
14256 (url "https://github.com/jts/nanopolish")
14257 (commit commit)
14258 (recursive? #t)))
14259 (file-name (git-file-name name version))
14260 (sha256
14261 (base32 "15ikl3d37y49pwd7vx36xksgsqajhf24q7qqsnpl15dqqyy5qgbc"))
14262 (modules '((guix build utils)))
14263 (snippet
14264 '(begin
14265 (delete-file-recursively "htslib")
14266 #t))))
14267 (build-system gnu-build-system)
14268 (arguments
14269 `(#:make-flags
14270 `("HDF5=noinstall" "EIGEN=noinstall" "HTS=noinstall" "CC=gcc")
14271 #:tests? #f ; no check target
14272 #:phases
14273 (modify-phases %standard-phases
14274 (add-after 'unpack 'find-eigen
14275 (lambda* (#:key inputs #:allow-other-keys)
14276 (setenv "CPATH"
14277 (string-append (assoc-ref inputs "eigen")
14278 "/include/eigen3:"
14279 (or (getenv "CPATH") "")))
14280 #t))
14281 (delete 'configure)
14282 (replace 'install
14283 (lambda* (#:key outputs #:allow-other-keys)
14284 (let* ((out (assoc-ref outputs "out"))
14285 (bin (string-append out "/bin"))
14286 (scripts (string-append out "/share/nanopolish/scripts")))
14287
14288 (install-file "nanopolish" bin)
14289 (for-each (lambda (file) (install-file file scripts))
14290 (find-files "scripts" ".*"))
14291 #t)))
14292 (add-after 'install 'wrap-programs
14293 (lambda* (#:key outputs #:allow-other-keys)
14294 (for-each (lambda (file)
14295 (wrap-program file `("PYTHONPATH" ":" prefix (,path))))
14296 (find-files "/share/nanopolish/scripts" "\\.py"))
14297 (for-each (lambda (file)
14298 (wrap-program file `("PERL5LIB" ":" prefix (,path))))
14299 (find-files "/share/nanopolish/scripts" "\\.pl"))
14300 #t)))))
14301 (inputs
14302 `(("eigen" ,eigen)
14303 ("hdf5" ,hdf5)
14304 ("htslib" ,htslib)
14305 ("perl" ,perl)
14306 ("python" ,python-wrapper)
14307 ("python-biopython" ,python-biopython)
14308 ("python-numpy" ,python-numpy)
14309 ("python-pysam" ,python-pysam)
14310 ("python-scikit-learn" , python-scikit-learn)
14311 ("python-scipy" ,python-scipy)
14312 ("zlib" ,zlib)))
14313 (home-page "https://github.com/jts/nanopolish")
14314 (synopsis "Signal-level analysis of Oxford Nanopore sequencing data")
14315 (description
14316 "This package analyses the Oxford Nanopore sequencing data at signal-level.
14317 Nanopolish can calculate an improved consensus sequence for a draft genome
14318 assembly, detect base modifications, call SNPs (Single nucleotide
14319 polymorphisms) and indels with respect to a reference genome and more.")
14320 (license license:expat))))
14321
14322 (define-public cnvkit
14323 (package
14324 (name "cnvkit")
14325 (version "0.9.5")
14326 (source
14327 (origin
14328 (method git-fetch)
14329 (uri (git-reference
14330 (url "https://github.com/etal/cnvkit")
14331 (commit (string-append "v" version))))
14332 (file-name (git-file-name name version))
14333 (sha256
14334 (base32 "0g2f78k68yglmj4fsfmgs8idqv3di9aj53fg0ld0hqljg8chhh82"))))
14335 (build-system python-build-system)
14336 (propagated-inputs
14337 `(("python-biopython" ,python-biopython)
14338 ("python-future" ,python-future)
14339 ("python-matplotlib" ,python-matplotlib)
14340 ("python-numpy" ,python-numpy)
14341 ("python-reportlab" ,python-reportlab)
14342 ("python-pandas" ,python-pandas)
14343 ("python-pysam" ,python-pysam)
14344 ("python-pyfaidx" ,python-pyfaidx)
14345 ("python-scipy" ,python-scipy)
14346 ;; R packages
14347 ("r-dnacopy" ,r-dnacopy)))
14348 (home-page "https://cnvkit.readthedocs.org/")
14349 (synopsis "Copy number variant detection from targeted DNA sequencing")
14350 (description
14351 "CNVkit is a Python library and command-line software toolkit to infer
14352 and visualize copy number from high-throughput DNA sequencing data. It is
14353 designed for use with hybrid capture, including both whole-exome and custom
14354 target panels, and short-read sequencing platforms such as Illumina and Ion
14355 Torrent.")
14356 (license license:asl2.0)))
14357
14358 (define-public python-pyfit-sne
14359 (package
14360 (name "python-pyfit-sne")
14361 (version "1.0.1")
14362 (source
14363 (origin
14364 (method git-fetch)
14365 (uri (git-reference
14366 (url "https://github.com/KlugerLab/pyFIt-SNE")
14367 (commit version)))
14368 (file-name (git-file-name name version))
14369 (sha256
14370 (base32 "13wh3qkzs56azmmgnxib6xfr29g7xh09sxylzjpni5j0pp0rc5qw"))))
14371 (build-system python-build-system)
14372 (propagated-inputs
14373 `(("python-numpy" ,python-numpy)))
14374 (inputs
14375 `(("fftw" ,fftw)))
14376 (native-inputs
14377 `(("python-cython" ,python-cython)))
14378 (home-page "https://github.com/KlugerLab/pyFIt-SNE")
14379 (synopsis "FFT-accelerated Interpolation-based t-SNE")
14380 (description
14381 "t-Stochastic Neighborhood Embedding (t-SNE) is a highly successful
14382 method for dimensionality reduction and visualization of high dimensional
14383 datasets. A popular implementation of t-SNE uses the Barnes-Hut algorithm to
14384 approximate the gradient at each iteration of gradient descent. This package
14385 is a Cython wrapper for FIt-SNE.")
14386 (license license:bsd-4)))
14387
14388 (define-public bbmap
14389 (package
14390 (name "bbmap")
14391 (version "35.82")
14392 (source (origin
14393 (method url-fetch)
14394 (uri (string-append
14395 "mirror://sourceforge/bbmap/BBMap_" version ".tar.gz"))
14396 (sha256
14397 (base32
14398 "1q4rfhxcb6z3gm8zg2davjz98w22lkf4hm9ikxz9kdl93pil3wkd"))))
14399 (build-system ant-build-system)
14400 (arguments
14401 `(#:build-target "dist"
14402 #:tests? #f ; there are none
14403 #:make-flags
14404 (list (string-append "-Dmpijar="
14405 (assoc-ref %build-inputs "java-openmpi")
14406 "/lib/mpi.jar"))
14407 #:modules ((guix build ant-build-system)
14408 (guix build utils)
14409 (guix build java-utils))
14410 #:phases
14411 (modify-phases %standard-phases
14412 (add-after 'build 'build-jni-library
14413 (lambda _
14414 (with-directory-excursion "jni"
14415 (invoke "make" "-f" "makefile.linux"))))
14416 ;; There is no install target
14417 (replace 'install (install-jars "dist"))
14418 (add-after 'install 'install-scripts-and-documentation
14419 (lambda* (#:key outputs #:allow-other-keys)
14420 (substitute* "calcmem.sh"
14421 (("\\| awk ") (string-append "| " (which "awk") " ")))
14422 (let* ((scripts (find-files "." "\\.sh$"))
14423 (out (assoc-ref outputs "out"))
14424 (bin (string-append out "/bin"))
14425 (doc (string-append out "/share/doc/bbmap"))
14426 (jni (string-append out "/lib/jni")))
14427 (substitute* scripts
14428 (("\\$DIR\"\"docs") doc)
14429 (("^CP=.*")
14430 (string-append "CP=" out "/share/java/BBTools.jar\n"))
14431 (("^NATIVELIBDIR.*")
14432 (string-append "NATIVELIBDIR=" jni "\n"))
14433 (("CMD=\"java")
14434 (string-append "CMD=\"" (which "java"))))
14435 (for-each (lambda (script) (install-file script bin)) scripts)
14436
14437 ;; Install JNI library
14438 (install-file "jni/libbbtoolsjni.so" jni)
14439
14440 ;; Install documentation
14441 (install-file "docs/readme.txt" doc)
14442 (copy-recursively "docs/guides" doc))
14443 #t)))
14444 #:jdk ,openjdk11))
14445 (inputs
14446 `(("gawk" ,gawk)
14447 ("java-eclipse-jdt-core" ,java-eclipse-jdt-core)
14448 ("java-eclipse-jdt-compiler-apt" ,java-eclipse-jdt-compiler-apt)
14449 ("java-openmpi" ,java-openmpi)))
14450 (home-page "https://sourceforge.net/projects/bbmap/")
14451 (synopsis "Aligner and other tools for short sequencing reads")
14452 (description
14453 "This package provides bioinformatic tools to align, deduplicate,
14454 reformat, filter and normalize DNA and RNA-seq data. It includes the
14455 following tools: BBMap, a short read aligner for DNA and RNA-seq data; BBNorm,
14456 a kmer-based error-correction and normalization tool; Dedupe, a tool to
14457 simplify assemblies by removing duplicate or contained subsequences that share
14458 a target percent identity; Reformat, to convert reads between
14459 fasta/fastq/scarf/fasta+qual/sam, interleaved/paired, and ASCII-33/64, at over
14460 500 MB/s; and BBDuk, a tool to filter, trim, or mask reads with kmer matches
14461 to an artifact/contaminant file.")
14462 (license license:bsd-3)))
14463
14464 (define-public velvet
14465 (package
14466 (name "velvet")
14467 (version "1.2.10")
14468 (source (origin
14469 (method url-fetch)
14470 (uri (string-append "https://www.ebi.ac.uk/~zerbino/velvet/"
14471 "velvet_" version ".tgz"))
14472 (sha256
14473 (base32
14474 "0h3njwy66p6bx14r3ar1byb0ccaxmxka4c65rn4iybyiqa4d8kc8"))
14475 ;; Delete bundled libraries
14476 (modules '((guix build utils)))
14477 (snippet
14478 '(begin
14479 (delete-file "Manual.pdf")
14480 (delete-file-recursively "third-party")
14481 #t))))
14482 (build-system gnu-build-system)
14483 (arguments
14484 `(#:make-flags '("OPENMP=t")
14485 #:test-target "test"
14486 #:phases
14487 (modify-phases %standard-phases
14488 (delete 'configure)
14489 (add-after 'unpack 'fix-zlib-include
14490 (lambda _
14491 (substitute* "src/binarySequences.c"
14492 (("../third-party/zlib-1.2.3/zlib.h") "zlib.h"))
14493 #t))
14494 (replace 'install
14495 (lambda* (#:key outputs #:allow-other-keys)
14496 (let* ((out (assoc-ref outputs "out"))
14497 (bin (string-append out "/bin"))
14498 (doc (string-append out "/share/doc/velvet")))
14499 (mkdir-p bin)
14500 (mkdir-p doc)
14501 (install-file "velveth" bin)
14502 (install-file "velvetg" bin)
14503 (install-file "Manual.pdf" doc)
14504 (install-file "Columbus_manual.pdf" doc)
14505 #t))))))
14506 (inputs
14507 `(("openmpi" ,openmpi)
14508 ("zlib" ,zlib)))
14509 (native-inputs
14510 `(("texlive" ,(texlive-union (list texlive-latex-graphics
14511 texlive-latex-hyperref)))))
14512 (home-page "https://www.ebi.ac.uk/~zerbino/velvet/")
14513 (synopsis "Nucleic acid sequence assembler for very short reads")
14514 (description
14515 "Velvet is a de novo genomic assembler specially designed for short read
14516 sequencing technologies, such as Solexa or 454. Velvet currently takes in
14517 short read sequences, removes errors then produces high quality unique
14518 contigs. It then uses paired read information, if available, to retrieve the
14519 repeated areas between contigs.")
14520 (license license:gpl2+)))
14521
14522 (define-public python-velocyto
14523 (package
14524 (name "python-velocyto")
14525 (version "0.17.17")
14526 (source
14527 (origin
14528 (method url-fetch)
14529 (uri (pypi-uri "velocyto" version))
14530 (sha256
14531 (base32
14532 "0fgygyzqgrq32dv6a00biq1p1cwi6kbl5iqblxq1kklj6b2mzmhs"))))
14533 (build-system python-build-system)
14534 (native-inputs
14535 `(("python-joblib" ,python-joblib)))
14536 (propagated-inputs
14537 `(("python-click" ,python-click)
14538 ("python-cython" ,python-cython)
14539 ("python-h5py" ,python-h5py)
14540 ("python-loompy" ,python-loompy)
14541 ("python-matplotlib" ,python-matplotlib)
14542 ("python-numba" ,python-numba)
14543 ("python-numpy" ,python-numpy)
14544 ("python-pandas" ,python-pandas)
14545 ("python-pysam" ,python-pysam)
14546 ("python-scikit-learn" ,python-scikit-learn)
14547 ("python-scipy" ,python-scipy)))
14548 (home-page "https://github.com/velocyto-team/velocyto.py")
14549 (synopsis "RNA velocity analysis for single cell RNA-seq data")
14550 (description
14551 "Velocyto is a library for the analysis of RNA velocity. Velocyto
14552 includes a command line tool and an analysis pipeline.")
14553 (license license:bsd-2)))
14554
14555 (define-public arriba
14556 (package
14557 (name "arriba")
14558 (version "1.0.1")
14559 (source
14560 (origin
14561 (method url-fetch)
14562 (uri (string-append "https://github.com/suhrig/arriba/releases/"
14563 "download/v" version "/arriba_v" version ".tar.gz"))
14564 (sha256
14565 (base32
14566 "0jx9656ry766vb8z08m1c3im87b0c82qpnjby9wz4kcz8vn87dx2"))))
14567 (build-system gnu-build-system)
14568 (arguments
14569 `(#:tests? #f ; there are none
14570 #:phases
14571 (modify-phases %standard-phases
14572 (replace 'configure
14573 (lambda* (#:key inputs #:allow-other-keys)
14574 (let ((htslib (assoc-ref inputs "htslib")))
14575 (substitute* "Makefile"
14576 (("-I\\$\\(HTSLIB\\)/htslib")
14577 (string-append "-I" htslib "/include/htslib"))
14578 ((" \\$\\(HTSLIB\\)/libhts.a")
14579 (string-append " " htslib "/lib/libhts.so"))))
14580 (substitute* "run_arriba.sh"
14581 (("^STAR ") (string-append (which "STAR") " "))
14582 (("samtools --version-only")
14583 (string-append (which "samtools") " --version-only"))
14584 (("samtools index")
14585 (string-append (which "samtools") " index"))
14586 (("samtools sort")
14587 (string-append (which "samtools") " sort")))
14588 #t))
14589 (replace 'install
14590 (lambda* (#:key outputs #:allow-other-keys)
14591 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
14592 (install-file "arriba" bin)
14593 (install-file "run_arriba.sh" bin)
14594 (install-file "draw_fusions.R" bin)
14595 (wrap-program (string-append bin "/draw_fusions.R")
14596 `("R_LIBS_SITE" ":" prefix (,(getenv "R_LIBS_SITE")))))
14597 #t)))))
14598 (inputs
14599 `(("htslib" ,htslib)
14600 ("r-minimal" ,r-minimal)
14601 ("r-circlize" ,r-circlize)
14602 ("r-genomicalignments" ,r-genomicalignments)
14603 ("r-genomicranges" ,r-genomicranges)
14604 ("samtools" ,samtools)
14605 ("star" ,star)
14606 ("zlib" ,zlib)))
14607 (home-page "https://github.com/suhrig/arriba")
14608 (synopsis "Gene fusion detection from RNA-Seq data ")
14609 (description
14610 "Arriba is a command-line tool for the detection of gene fusions from
14611 RNA-Seq data. It was developed for the use in a clinical research setting.
14612 Therefore, short runtimes and high sensitivity were important design criteria.
14613 It is based on the fast STAR aligner and the post-alignment runtime is
14614 typically just around two minutes. In contrast to many other fusion detection
14615 tools which build on STAR, Arriba does not require to reduce the
14616 @code{alignIntronMax} parameter of STAR to detect small deletions.")
14617 ;; All code is under the Expat license with the exception of
14618 ;; "draw_fusions.R", which is under GPLv3.
14619 (license (list license:expat license:gpl3))))
14620
14621 (define-public adapterremoval
14622 (package
14623 (name "adapterremoval")
14624 (version "2.3.0")
14625 (source
14626 (origin
14627 (method git-fetch)
14628 (uri (git-reference
14629 (url "https://github.com/MikkelSchubert/adapterremoval")
14630 (commit (string-append "v" version))))
14631 (file-name (git-file-name name version))
14632 (sha256
14633 (base32
14634 "1nf3ki5pfzalhrx2fr1y6pfqfi133yj2m7q4fj9irf5fb94bapwr"))))
14635 (build-system gnu-build-system)
14636 (arguments
14637 `(#:make-flags (list "COLOR_BUILD=no"
14638 (string-append "PREFIX="
14639 (assoc-ref %outputs "out")))
14640 #:test-target "test"
14641 #:phases
14642 (modify-phases %standard-phases
14643 (delete 'configure))))
14644 (inputs
14645 `(("zlib" ,zlib)))
14646 (home-page "https://adapterremoval.readthedocs.io/")
14647 (synopsis "Rapid sequence adapter trimming, identification, and read merging")
14648 (description
14649 "This program searches for and removes remnant adapter sequences from
14650 @dfn{High-Throughput Sequencing} (HTS) data and (optionally) trims low quality
14651 bases from the 3' end of reads following adapter removal. AdapterRemoval can
14652 analyze both single end and paired end data, and can be used to merge
14653 overlapping paired-ended reads into (longer) consensus sequences.
14654 Additionally, the AdapterRemoval may be used to recover a consensus adapter
14655 sequence for paired-ended data, for which this information is not available.")
14656 (license license:gpl3+)))
14657
14658 (define-public pplacer
14659 (let ((commit "807f6f3"))
14660 (package
14661 (name "pplacer")
14662 ;; The commit should be updated with each version change.
14663 (version "1.1.alpha19")
14664 (source
14665 (origin
14666 (method git-fetch)
14667 (uri (git-reference
14668 (url "https://github.com/matsen/pplacer")
14669 (commit (string-append "v" version))))
14670 (file-name (git-file-name name version))
14671 (sha256
14672 (base32 "11ppbbbx20p2g9wj3ff64dhnarb12q79v7qh4rk0gj6lkbz4n7cn"))))
14673 (build-system ocaml-build-system)
14674 (arguments
14675 `(#:modules ((guix build ocaml-build-system)
14676 (guix build utils)
14677 (ice-9 ftw))
14678 #:phases
14679 (modify-phases %standard-phases
14680 (delete 'configure)
14681 (add-after 'unpack 'fix-build-with-latest-ocaml
14682 (lambda _
14683 (substitute* "myocamlbuild.ml"
14684 (("dep \\[\"c_pam\"\\]" m)
14685 (string-append "flag [\"ocaml\"; \"compile\"] (A \"-unsafe-string\");\n"
14686 m))
14687 (("let run_and_read" m)
14688 (string-append "
14689 let split s ch =
14690 let x = ref [] in
14691 let rec go s =
14692 let pos = String.index s ch in
14693 x := (String.before s pos)::!x;
14694 go (String.after s (pos + 1))
14695 in
14696 try go s
14697 with Not_found -> !x
14698 let split_nl s = split s '\\n'
14699 let before_space s =
14700 try String.before s (String.index s ' ')
14701 with Not_found -> s
14702
14703 " m))
14704 (("run_and_read \"ocamlfind list \\| cut -d' ' -f1\"" m)
14705 (string-append "List.map before_space (split_nl & " m ")"))
14706 ((" blank_sep_strings &") "")
14707 ((" Lexing.from_string &") ""))
14708 #t))
14709 (add-after 'unpack 'replace-bundled-cddlib
14710 (lambda* (#:key inputs #:allow-other-keys)
14711 (let* ((cddlib-src (assoc-ref inputs "cddlib-src"))
14712 (local-dir "cddlib_guix"))
14713 (mkdir local-dir)
14714 (with-directory-excursion local-dir
14715 (invoke "tar" "xvf" cddlib-src))
14716 (let ((cddlib-src-folder
14717 (string-append local-dir "/"
14718 (list-ref (scandir local-dir) 2)
14719 "/lib-src")))
14720 (for-each make-file-writable (find-files "cdd_src" ".*"))
14721 (for-each
14722 (lambda (file)
14723 (copy-file file
14724 (string-append "cdd_src/" (basename file))))
14725 (find-files cddlib-src-folder ".*[ch]$")))
14726 #t)))
14727 (add-after 'unpack 'fix-makefile
14728 (lambda _
14729 ;; Remove system calls to 'git'.
14730 (substitute* "Makefile"
14731 (("^DESCRIPT:=pplacer-.*")
14732 (string-append
14733 "DESCRIPT:=pplacer-$(shell uname)-v" ,version "\n")))
14734 (substitute* "myocamlbuild.ml"
14735 (("git describe --tags --long .*\\\" with")
14736 (string-append
14737 "echo -n v" ,version "-" ,commit "\" with")))
14738 #t))
14739 (replace 'install
14740 (lambda* (#:key outputs #:allow-other-keys)
14741 (let* ((out (assoc-ref outputs "out"))
14742 (bin (string-append out "/bin")))
14743 (copy-recursively "bin" bin))
14744 #t)))
14745 #:ocaml ,ocaml-4.07
14746 #:findlib ,ocaml4.07-findlib))
14747 (inputs
14748 `(("zlib" ,zlib "static")
14749 ("gsl" ,gsl)
14750 ("ocaml-ounit" ,(package-with-ocaml4.07 ocaml-ounit))
14751 ("ocaml-batteries" ,(package-with-ocaml4.07 ocaml-batteries))
14752 ("ocaml-camlzip" ,(package-with-ocaml4.07 camlzip))
14753 ("ocaml-csv" ,(package-with-ocaml4.07 ocaml-csv))
14754 ("ocaml-sqlite3" ,ocaml4.07-sqlite3)
14755 ("ocaml-xmlm" ,(package-with-ocaml4.07 ocaml-xmlm))
14756 ("ocaml-mcl" ,(package-with-ocaml4.07 ocaml-mcl))
14757 ("ocaml-gsl" ,ocaml4.07-gsl-1)))
14758 (native-inputs
14759 `(("cddlib-src" ,(package-source cddlib))
14760 ("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))
14761 ("pkg-config" ,pkg-config)))
14762 (propagated-inputs
14763 `(("pplacer-scripts" ,pplacer-scripts)))
14764 (synopsis "Phylogenetic placement of biological sequences")
14765 (description
14766 "Pplacer places query sequences on a fixed reference phylogenetic tree
14767 to maximize phylogenetic likelihood or posterior probability according to a
14768 reference alignment. Pplacer is designed to be fast, to give useful
14769 information about uncertainty, and to offer advanced visualization and
14770 downstream analysis.")
14771 (home-page "https://matsen.fhcrc.org/pplacer/")
14772 (license license:gpl3))))
14773
14774 ;; This package is installed alongside 'pplacer'. It is a separate package so
14775 ;; that it can use the python-build-system for the scripts that are
14776 ;; distributed alongside the main OCaml binaries.
14777 (define pplacer-scripts
14778 (package
14779 (inherit pplacer)
14780 (name "pplacer-scripts")
14781 (build-system python-build-system)
14782 (arguments
14783 `(#:python ,python-2
14784 #:phases
14785 (modify-phases %standard-phases
14786 (add-after 'unpack 'enter-scripts-dir
14787 (lambda _ (chdir "scripts") #t))
14788 (replace 'check
14789 (lambda _ (invoke "python" "-m" "unittest" "discover" "-v") #t))
14790 (add-after 'install 'wrap-executables
14791 (lambda* (#:key inputs outputs #:allow-other-keys)
14792 (let* ((out (assoc-ref outputs "out"))
14793 (bin (string-append out "/bin")))
14794 (let ((path (string-append
14795 (assoc-ref inputs "hmmer") "/bin:"
14796 (assoc-ref inputs "infernal") "/bin")))
14797 (display path)
14798 (wrap-program (string-append bin "/refpkg_align.py")
14799 `("PATH" ":" prefix (,path))))
14800 (let ((path (string-append
14801 (assoc-ref inputs "hmmer") "/bin")))
14802 (wrap-program (string-append bin "/hrefpkg_query.py")
14803 `("PATH" ":" prefix (,path)))))
14804 #t)))))
14805 (inputs
14806 `(("infernal" ,infernal)
14807 ("hmmer" ,hmmer)))
14808 (propagated-inputs
14809 `(("python-biopython" ,python2-biopython)
14810 ("taxtastic" ,taxtastic)))
14811 (synopsis "Pplacer Python scripts")))
14812
14813 (define-public python2-checkm-genome
14814 (package
14815 (name "python2-checkm-genome")
14816 (version "1.0.13")
14817 (source
14818 (origin
14819 (method url-fetch)
14820 (uri (pypi-uri "checkm-genome" version))
14821 (sha256
14822 (base32
14823 "0bm8gpxjmzxsxxl8lzwqhgx8g1dlnmp6znz7wv3hgb0gdjbf9dzz"))))
14824 (build-system python-build-system)
14825 (arguments
14826 `(#:python ,python-2
14827 #:tests? #f)) ; some tests are interactive
14828 (propagated-inputs
14829 `(("python-dendropy" ,python2-dendropy)
14830 ("python-matplotlib" ,python2-matplotlib)
14831 ("python-numpy" ,python2-numpy)
14832 ("python-pysam" ,python2-pysam)
14833 ("python-scipy" ,python2-scipy)))
14834 (home-page "https://pypi.org/project/Checkm/")
14835 (synopsis "Assess the quality of putative genome bins")
14836 (description
14837 "CheckM provides a set of tools for assessing the quality of genomes
14838 recovered from isolates, single cells, or metagenomes. It provides robust
14839 estimates of genome completeness and contamination by using collocated sets of
14840 genes that are ubiquitous and single-copy within a phylogenetic lineage.
14841 Assessment of genome quality can also be examined using plots depicting key
14842 genomic characteristics (e.g., GC, coding density) which highlight sequences
14843 outside the expected distributions of a typical genome. CheckM also provides
14844 tools for identifying genome bins that are likely candidates for merging based
14845 on marker set compatibility, similarity in genomic characteristics, and
14846 proximity within a reference genome.")
14847 (license license:gpl3+)))
14848
14849 (define-public umi-tools
14850 (package
14851 (name "umi-tools")
14852 (version "1.0.0")
14853 (source
14854 (origin
14855 (method url-fetch)
14856 (uri (pypi-uri "umi_tools" version))
14857 (sha256
14858 (base32
14859 "08y3vz1vcx09whmbsn722lcs6jl9wyrh9i4p3k8j4cb1i32bij4a"))))
14860 (build-system python-build-system)
14861 (inputs
14862 `(("python-pandas" ,python-pandas)
14863 ("python-future" ,python-future)
14864 ("python-scipy" ,python-scipy)
14865 ("python-matplotlib" ,python-matplotlib)
14866 ("python-regex" ,python-regex)
14867 ("python-pysam" ,python-pysam)))
14868 (native-inputs
14869 `(("python-cython" ,python-cython)))
14870 (home-page "https://github.com/CGATOxford/UMI-tools")
14871 (synopsis "Tools for analyzing unique modular identifiers")
14872 (description "This package provides tools for dealing with @dfn{Unique
14873 Molecular Identifiers} (UMIs) and @dfn{Random Molecular Tags} (RMTs) in
14874 genetic sequences. There are six tools: the @code{extract} and
14875 @code{whitelist} commands are used to prepare a fastq containing UMIs @code{+/-}
14876 cell barcodes for alignment. The remaining commands, @code{group},
14877 @code{dedup}, and @{count}/@code{count_tab}, are used to identify PCR
14878 duplicates using the UMIs and perform different levels of analysis depending
14879 on the needs of the user.")
14880 (license license:expat)))
14881
14882 (define-public ataqv
14883 (package
14884 (name "ataqv")
14885 (version "1.0.0")
14886 (source
14887 (origin
14888 (method git-fetch)
14889 (uri (git-reference
14890 (url "https://github.com/ParkerLab/ataqv")
14891 (commit version)))
14892 (file-name (git-file-name name version))
14893 (sha256
14894 (base32
14895 "031xr6jx1aprh26y5b1lv3gzrlmzg4alfl73vvshymx8cq8asrqi"))))
14896 (build-system gnu-build-system)
14897 (arguments
14898 `(#:make-flags
14899 (list (string-append "prefix=" (assoc-ref %outputs "out"))
14900 (string-append "BOOST_ROOT="
14901 (assoc-ref %build-inputs "boost"))
14902 (string-append "HTSLIB_ROOT="
14903 (assoc-ref %build-inputs "htslib")))
14904 #:test-target "test"
14905 #:phases
14906 (modify-phases %standard-phases
14907 (delete 'configure))))
14908 (inputs
14909 `(("boost" ,boost)
14910 ("htslib" ,htslib)
14911 ("ncurses" ,ncurses)
14912 ("zlib" ,zlib)))
14913 (native-inputs
14914 `(("lcov" ,lcov)))
14915 (home-page "https://github.com/ParkerLab/ataqv")
14916 (synopsis "Toolkit for quality control and visualization of ATAC-seq data")
14917 (description "This package provides a toolkit for measuring and comparing
14918 ATAC-seq results. It was written to make it easier to spot differences that
14919 might be caused by ATAC-seq library prep or sequencing. The main program,
14920 @code{ataqv}, examines aligned reads and reports some basic metrics.")
14921 (license license:gpl3+)))
14922
14923 (define-public r-psiplot
14924 (package
14925 (name "r-psiplot")
14926 (version "2.3.0")
14927 (source
14928 (origin
14929 (method git-fetch)
14930 (uri (git-reference
14931 (url "https://github.com/kcha/psiplot")
14932 (commit (string-append "v" version))))
14933 (file-name (git-file-name name version))
14934 (sha256
14935 (base32 "08438h16cfry5kqh3y9hs8q1b1a8bxhblsm75knviz5r6q0n1jxh"))))
14936 (build-system r-build-system)
14937 (propagated-inputs
14938 `(("r-mass" ,r-mass)
14939 ("r-dplyr" ,r-dplyr)
14940 ("r-tidyr" ,r-tidyr)
14941 ("r-purrr" ,r-purrr)
14942 ("r-readr" ,r-readr)
14943 ("r-magrittr" ,r-magrittr)
14944 ("r-ggplot2" ,r-ggplot2)))
14945 (home-page "https://github.com/kcha/psiplot")
14946 (synopsis "Plot percent spliced-in values of alternatively-spliced exons")
14947 (description
14948 "PSIplot is an R package for generating plots of @dfn{percent
14949 spliced-in} (PSI) values of alternatively-spliced exons that were computed by
14950 vast-tools, an RNA-Seq pipeline for alternative splicing analysis. The plots
14951 are generated using @code{ggplot2}.")
14952 (license license:expat)))
14953
14954 (define-public python-ont-fast5-api
14955 (package
14956 (name "python-ont-fast5-api")
14957 (version "1.4.4")
14958 (source
14959 (origin
14960 (method git-fetch)
14961 (uri (git-reference
14962 (url "https://github.com/nanoporetech/ont_fast5_api")
14963 (commit (string-append "release_" version))))
14964 (file-name (git-file-name name version))
14965 (sha256
14966 (base32
14967 "03cbq4zbbwhll8ml2m9k8sa31mirsvcbjkrq1yna0kkzz9fad5fm"))))
14968 (build-system python-build-system)
14969 (propagated-inputs
14970 `(("python-numpy" ,python-numpy)
14971 ("python-six" ,python-six)
14972 ("python-h5py" ,python-h5py)
14973 ("python-progressbar33" ,python-progressbar33)))
14974 (home-page "https://github.com/nanoporetech/ont_fast5_api")
14975 (synopsis "Interface to HDF5 files of the Oxford Nanopore fast5 file format")
14976 (description
14977 "This package provides a concrete implementation of the fast5 file schema
14978 using the generic @code{h5py} library, plain-named methods to interact with
14979 and reflect the fast5 file schema, and tools to convert between
14980 @code{multi_read} and @code{single_read} formats.")
14981 (license license:mpl2.0)))
14982
14983 (define-public tbsp
14984 (let ((commit "ec8fff4410cfb13a677dbbb95cbbc60217e64907")
14985 (revision "1"))
14986 (package
14987 (name "tbsp")
14988 (version (git-version "1.0.0" revision commit))
14989 (source
14990 (origin
14991 (method git-fetch)
14992 (uri (git-reference
14993 (url "https://github.com/phoenixding/tbsp")
14994 (commit commit)))
14995 (file-name (git-file-name name version))
14996 (sha256
14997 (base32
14998 "025ym14x8gbd6hb55lsinqj6f5qzw36i10klgs7ldzxxd7s39ki1"))))
14999 (build-system python-build-system)
15000 (arguments '(#:tests? #f)) ; no tests included
15001 (inputs
15002 `(("python-matplotlib" ,python-matplotlib)
15003 ("python-networkx" ,python-networkx)
15004 ("python-numpy" ,python-numpy)
15005 ("python-pybigwig" ,python-pybigwig)
15006 ("python-biopython" ,python-biopython)
15007 ("python-scikit-learn" ,python-scikit-learn)
15008 ("python-scipy" ,python-scipy)))
15009 (home-page "https://github.com/phoenixding/tbsp/")
15010 (synopsis "SNP-based trajectory inference")
15011 (description
15012 "Several studies focus on the inference of developmental and response
15013 trajectories from single cell RNA-Seq (scRNA-Seq) data. A number of
15014 computational methods, often referred to as pseudo-time ordering, have been
15015 developed for this task. CRISPR has also been used to reconstruct lineage
15016 trees by inserting random mutations. The tbsp package implements an
15017 alternative method to detect significant, cell type specific sequence
15018 mutations from scRNA-Seq data.")
15019 (license license:expat))))
15020
15021 (define-public tabixpp
15022 (package
15023 (name "tabixpp")
15024 (version "1.1.0")
15025 (source (origin
15026 (method git-fetch)
15027 (uri (git-reference
15028 (url "https://github.com/ekg/tabixpp")
15029 (commit (string-append "v" version))))
15030 (file-name (git-file-name name version))
15031 (sha256
15032 (base32 "1k2a3vbq96ic4lw72iwp5s3mwwc4xhdffjj584yn6l9637q9j1yd"))
15033 (modules '((guix build utils)))
15034 (snippet
15035 `(begin
15036 (delete-file-recursively "htslib") #t))))
15037 (build-system gnu-build-system)
15038 (inputs
15039 `(("htslib" ,htslib)
15040 ("zlib" ,zlib)))
15041 (arguments
15042 `(#:tests? #f ; There are no tests to run.
15043 #:phases
15044 (modify-phases %standard-phases
15045 (delete 'configure) ; There is no configure phase.
15046 ;; The build phase needs overriding the location of htslib.
15047 (replace 'build
15048 (lambda* (#:key inputs #:allow-other-keys)
15049 (let ((htslib-ref (assoc-ref inputs "htslib")))
15050 (invoke "make"
15051 (string-append "HTS_LIB=" htslib-ref "/lib/libhts.a")
15052 (string-append "INCLUDES= -I" htslib-ref "/include/htslib")
15053 "HTS_HEADERS=" ; No need to check for headers here.
15054 (string-append "LIBPATH=-L. -L" htslib-ref "/include"))
15055 (invoke "g++" "-shared" "-o" "libtabixpp.so" "tabix.o" "-lhts")
15056 (invoke "ar" "rcs" "libtabixpp.a" "tabix.o"))))
15057 (replace 'install
15058 (lambda* (#:key outputs #:allow-other-keys)
15059 (let* ((out (assoc-ref outputs "out"))
15060 (lib (string-append out "/lib"))
15061 (bin (string-append out "/bin")))
15062 (install-file "tabix++" bin)
15063 (install-file "libtabixpp.so" lib)
15064 (install-file "libtabixpp.a" lib)
15065 (install-file "tabix.hpp" (string-append out "/include"))
15066 (mkdir-p (string-append lib "/pkgconfig"))
15067 (with-output-to-file (string-append lib "/pkgconfig/tabixpp.pc")
15068 (lambda _
15069 (format #t "prefix=~a~@
15070 exec_prefix=${prefix}~@
15071 libdir=${exec_prefix}/lib~@
15072 includedir=${prefix}/include~@
15073 ~@
15074 ~@
15075 Name: libtabixpp~@
15076 Version: ~a~@
15077 Description: C++ wrapper around tabix project~@
15078 Libs: -L${libdir} -ltabixpp~@
15079 Cflags: -I${includedir}~%"
15080 out ,version)))
15081 #t))))))
15082 (home-page "https://github.com/ekg/tabixpp")
15083 (synopsis "C++ wrapper around tabix project")
15084 (description "This is a C++ wrapper around the Tabix project which abstracts
15085 some of the details of opening and jumping in tabix-indexed files.")
15086 (license license:expat)))
15087
15088 (define-public smithwaterman
15089 (let ((commit "2610e259611ae4cde8f03c72499d28f03f6d38a7"))
15090 (package
15091 (name "smithwaterman")
15092 (version (git-version "0.0.0" "2" commit))
15093 (source (origin
15094 (method git-fetch)
15095 (uri (git-reference
15096 (url "https://github.com/ekg/smithwaterman/")
15097 (commit commit)))
15098 (file-name (git-file-name name version))
15099 (sha256
15100 (base32 "0i9d8zrxpiracw3mxzd9siybpy62p06rqz9mc2w93arajgbk45bs"))))
15101 (build-system gnu-build-system)
15102 (arguments
15103 `(#:tests? #f ; There are no tests to run.
15104 #:make-flags '("libsw.a" "all")
15105 #:phases
15106 (modify-phases %standard-phases
15107 (delete 'configure) ; There is no configure phase.
15108 (add-after 'unpack 'patch-source
15109 (lambda _
15110 (substitute* "Makefile"
15111 (("-c ") "-c -fPIC "))
15112 #t))
15113 (add-after 'build 'build-dynamic
15114 (lambda _
15115 (invoke "g++"
15116 "-shared" "-o" "libsmithwaterman.so"
15117 "smithwaterman.o" "SmithWatermanGotoh.o"
15118 "disorder.o" "BandedSmithWaterman.o"
15119 "LeftAlign.o" "Repeats.o" "IndelAllele.o")))
15120 (replace 'install
15121 (lambda* (#:key outputs #:allow-other-keys)
15122 (let* ((out (assoc-ref outputs "out"))
15123 (bin (string-append out "/bin"))
15124 (lib (string-append out "/lib")))
15125 (install-file "smithwaterman" bin)
15126 (for-each
15127 (lambda (file)
15128 (install-file file (string-append out "/include/smithwaterman")))
15129 (find-files "." "\\.h$"))
15130 (install-file "libsmithwaterman.so" lib)
15131 (install-file "libsw.a" lib)
15132 (mkdir-p (string-append lib "/pkgconfig"))
15133 (with-output-to-file (string-append lib "/pkgconfig/smithwaterman.pc")
15134 (lambda _
15135 (format #t "prefix=~a~@
15136 exec_prefix=${prefix}~@
15137 libdir=${exec_prefix}/lib~@
15138 includedir=${prefix}/include/smithwaterman~@
15139 ~@
15140 ~@
15141 Name: smithwaterman~@
15142 Version: ~a~@
15143 Description: smith-waterman-gotoh alignment algorithm~@
15144 Libs: -L${libdir} -lsmithwaterman~@
15145 Cflags: -I${includedir}~%"
15146 out ,version))))
15147 #t)))))
15148 (home-page "https://github.com/ekg/smithwaterman")
15149 (synopsis "Implementation of the Smith-Waterman algorithm")
15150 (description "Implementation of the Smith-Waterman algorithm.")
15151 ;; The licensing terms are unclear: https://github.com/ekg/smithwaterman/issues/9.
15152 (license (list license:gpl2 license:expat)))))
15153
15154 (define-public multichoose
15155 (package
15156 (name "multichoose")
15157 (version "1.0.3")
15158 (source (origin
15159 (method git-fetch)
15160 (uri (git-reference
15161 (url "https://github.com/ekg/multichoose/")
15162 (commit (string-append "v" version))))
15163 (file-name (git-file-name name version))
15164 (sha256
15165 (base32 "0ci5fqvmpamwgxvmyd79ygj6n3bnbl3vc7b6h1sxz58186sm3pfs"))))
15166 (build-system gnu-build-system)
15167 (arguments
15168 `(#:tests? #f ; Tests require node.
15169 #:phases
15170 (modify-phases %standard-phases
15171 (delete 'configure) ; There is no configure phase.
15172 (replace 'install
15173 (lambda* (#:key outputs #:allow-other-keys)
15174 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
15175 ;; TODO: There are Python modules for these programs too.
15176 (install-file "multichoose" bin)
15177 (install-file "multipermute" bin))
15178 #t)))))
15179 (home-page "https://github.com/ekg/multichoose")
15180 (synopsis "Efficient loopless multiset combination generation algorithm")
15181 (description "This library implements an efficient loopless multiset
15182 combination generation algorithm which is (approximately) described in
15183 \"Loopless algorithms for generating permutations, combinations, and other
15184 combinatorial configurations.\", G. Ehrlich - Journal of the ACM (JACM),
15185 1973. (Algorithm 7.)")
15186 (license license:expat)))
15187
15188 (define-public fsom
15189 (let ((commit "a6ef318fbd347c53189384aef7f670c0e6ce89a3"))
15190 (package
15191 (name "fsom")
15192 (version (git-version "0.0.0" "1" commit))
15193 (source (origin
15194 (method git-fetch)
15195 (uri (git-reference
15196 (url "https://github.com/ekg/fsom/")
15197 (commit commit)))
15198 (file-name (git-file-name name version))
15199 (sha256
15200 (base32 "0gw1lpvr812pywg9y546x0h1hhj261xwls41r6kqhddjlrcjc0pi"))))
15201 (build-system gnu-build-system)
15202 (arguments
15203 `(#:tests? #f ; There are no tests to run.
15204 #:phases
15205 (modify-phases %standard-phases
15206 (delete 'configure) ; There is no configure phase.
15207 (replace 'install
15208 (lambda* (#:key outputs #:allow-other-keys)
15209 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
15210 (install-file "fsom" bin))
15211 #t)))))
15212 (home-page "https://github.com/ekg/fsom")
15213 (synopsis "Manage SOM (Self-Organizing Maps) neural networks")
15214 (description "A tiny C library for managing SOM (Self-Organizing Maps)
15215 neural networks.")
15216 (license license:gpl3))))
15217
15218 (define-public fastahack
15219 (package
15220 (name "fastahack")
15221 (version "1.0.0")
15222 (source (origin
15223 (method git-fetch)
15224 (uri (git-reference
15225 (url "https://github.com/ekg/fastahack/")
15226 (commit (string-append "v" version))))
15227 (file-name (git-file-name name version))
15228 (sha256
15229 (base32 "0rp1blskhzxf7vbh253ibpxbgl9wwgyzf1wbkxndi08d3j4vcss9"))))
15230 (build-system gnu-build-system)
15231 (arguments
15232 `(#:tests? #f ; Unclear how to run tests: https://github.com/ekg/fastahack/issues/15
15233 #:phases
15234 (modify-phases %standard-phases
15235 (delete 'configure) ; There is no configure phase.
15236 (add-after 'unpack 'patch-source
15237 (lambda _
15238 (substitute* "Makefile"
15239 (("-c ") "-c -fPIC "))
15240 #t))
15241 (add-after 'build 'build-dynamic
15242 (lambda _
15243 (invoke "g++"
15244 "-shared" "-o" "libfastahack.so"
15245 "Fasta.o" "FastaHack.o" "split.o" "disorder.o")))
15246 (replace 'install
15247 (lambda* (#:key outputs #:allow-other-keys)
15248 (let* ((out (assoc-ref outputs "out"))
15249 (lib (string-append out "/lib"))
15250 (bin (string-append out "/bin")))
15251 (mkdir-p (string-append out "/include/fastahack"))
15252 (for-each
15253 (lambda (file)
15254 (install-file file (string-append out "/include/fastahack")))
15255 (find-files "." "\\.h$"))
15256 (install-file "fastahack" bin)
15257 (install-file "libfastahack.so" lib)
15258 (mkdir-p (string-append lib "/pkgconfig"))
15259 (with-output-to-file (string-append lib "/pkgconfig/fastahack.pc")
15260 (lambda _
15261 (format #t "prefix=~a~@
15262 exec_prefix=${prefix}~@
15263 libdir=${exec_prefix}/lib~@
15264 includedir=${prefix}/include/fastahack~@
15265 ~@
15266 ~@
15267 Name: fastahack~@
15268 Version: ~a~@
15269 Description: Indexing and sequence extraction from FASTA files~@
15270 Libs: -L${libdir} -lfastahack~@
15271 Cflags: -I${includedir}~%"
15272 out ,version))))
15273 #t)))))
15274 (home-page "https://github.com/ekg/fastahack")
15275 (synopsis "Indexing and sequence extraction from FASTA files")
15276 (description "Fastahack is a small application for indexing and
15277 extracting sequences and subsequences from FASTA files. The included library
15278 provides a FASTA reader and indexer that can be embedded into applications
15279 which would benefit from directly reading subsequences from FASTA files. The
15280 library automatically handles index file generation and use.")
15281 (license (list license:expat license:gpl2))))
15282
15283 (define-public vcflib
15284 (package
15285 (name "vcflib")
15286 (version "1.0.1")
15287 (source
15288 (origin
15289 (method url-fetch)
15290 (uri (string-append "https://github.com/vcflib/vcflib/releases/"
15291 "download/v" version
15292 "/vcflib-" version "-src.tar.gz"))
15293 (sha256
15294 (base32 "14zzrg8hg8cq9cvq2wdvp21j7nmxxkjrbagw2apd2yqv2kyx42lm"))
15295 (patches (search-patches "vcflib-use-shared-libraries.patch"))
15296 (modules '((guix build utils)))
15297 (snippet
15298 `(begin
15299 (substitute* (find-files "." "\\.(h|c)(pp)?$")
15300 (("\"SmithWatermanGotoh.h\"") "<smithwaterman/SmithWatermanGotoh.h>")
15301 (("\"convert.h\"") "<smithwaterman/convert.h>")
15302 (("\"disorder.h\"") "<smithwaterman/disorder.h>")
15303 (("\"tabix.hpp\"") "<tabix.hpp>")
15304 (("\"Fasta.h\"") "<fastahack/Fasta.h>"))
15305 (for-each delete-file-recursively
15306 '("fastahack" "filevercmp" "fsom" "googletest" "intervaltree"
15307 "libVCFH" "multichoose" "smithwaterman" "tabixpp"))
15308 #t))))
15309 (build-system gnu-build-system)
15310 (inputs
15311 `(("htslib" ,htslib)
15312 ("fastahack" ,fastahack)
15313 ("perl" ,perl)
15314 ("python" ,python)
15315 ("smithwaterman" ,smithwaterman)
15316 ("tabixpp" ,tabixpp)
15317 ("xz" ,xz)
15318 ("zlib" ,zlib)))
15319 (native-inputs
15320 `(("pkg-config" ,pkg-config)
15321 ;; Submodules.
15322 ;; This package builds against the .o files so we need to extract the source.
15323 ("filevercmp-src" ,(package-source filevercmp))
15324 ("intervaltree-src" ,(package-source intervaltree))
15325 ("multichoose-src" ,(package-source multichoose))))
15326 (arguments
15327 `(#:tests? #f ; no tests
15328 #:phases
15329 (modify-phases %standard-phases
15330 (add-after 'unpack 'set-flags
15331 (lambda* (#:key outputs #:allow-other-keys)
15332 (substitute* "Makefile"
15333 (("LDFLAGS =")
15334 (string-append "LDFLAGS = -Wl,-rpath="
15335 (assoc-ref outputs "out") "/lib ")))
15336 (substitute* "filevercmp/Makefile"
15337 (("-c") "-c -fPIC"))
15338 #t))
15339 (delete 'configure)
15340 (add-after 'unpack 'unpack-submodule-sources
15341 (lambda* (#:key inputs #:allow-other-keys)
15342 (let ((unpack (lambda (source target)
15343 (mkdir target)
15344 (with-directory-excursion target
15345 (if (file-is-directory? (assoc-ref inputs source))
15346 (copy-recursively (assoc-ref inputs source) ".")
15347 (invoke "tar" "xvf"
15348 (assoc-ref inputs source)
15349 "--strip-components=1"))))))
15350 (and
15351 (unpack "filevercmp-src" "filevercmp")
15352 (unpack "intervaltree-src" "intervaltree")
15353 (unpack "multichoose-src" "multichoose")))))
15354 (replace 'install
15355 (lambda* (#:key outputs #:allow-other-keys)
15356 (let* ((out (assoc-ref outputs "out"))
15357 (bin (string-append out "/bin"))
15358 (lib (string-append out "/lib")))
15359 (for-each (lambda (file)
15360 (install-file file bin))
15361 (find-files "bin" ".*"))
15362 (install-file "libvcflib.so" lib)
15363 (install-file "libvcflib.a" lib)
15364 (for-each
15365 (lambda (file)
15366 (install-file file (string-append out "/include")))
15367 (find-files "include" "\\.h(pp)?$"))
15368 (mkdir-p (string-append lib "/pkgconfig"))
15369 (with-output-to-file (string-append lib "/pkgconfig/vcflib.pc")
15370 (lambda _
15371 (format #t "prefix=~a~@
15372 exec_prefix=${prefix}~@
15373 libdir=${exec_prefix}/lib~@
15374 includedir=${prefix}/include~@
15375 ~@
15376 ~@
15377 Name: libvcflib~@
15378 Version: ~a~@
15379 Requires: smithwaterman, fastahack~@
15380 Description: C++ library for parsing and manipulating VCF files~@
15381 Libs: -L${libdir} -lvcflib~@
15382 Cflags: -I${includedir}~%"
15383 out ,version))))
15384 #t)))))
15385 (home-page "https://github.com/vcflib/vcflib/")
15386 (synopsis "Library for parsing and manipulating VCF files")
15387 (description "Vcflib provides methods to manipulate and interpret
15388 sequence variation as it can be described by VCF. It is both an API for parsing
15389 and operating on records of genomic variation as it can be described by the VCF
15390 format, and a collection of command-line utilities for executing complex
15391 manipulations on VCF files.")
15392 (license license:expat)))
15393
15394 (define-public freebayes
15395 (let ((commit "3ce827d8ebf89bb3bdc097ee0fe7f46f9f30d5fb")
15396 (revision "1")
15397 (version "1.0.2"))
15398 (package
15399 (name "freebayes")
15400 (version (git-version version revision commit))
15401 (source (origin
15402 (method git-fetch)
15403 (uri (git-reference
15404 (url "https://github.com/ekg/freebayes")
15405 (commit commit)))
15406 (file-name (git-file-name name version))
15407 (sha256
15408 (base32 "1sbzwmcbn78ybymjnhwk7qc5r912azy5vqz2y7y81616yc3ba2a2"))))
15409 (build-system gnu-build-system)
15410 (inputs
15411 `(("bamtools" ,bamtools)
15412 ("htslib" ,htslib)
15413 ("zlib" ,zlib)))
15414 (native-inputs
15415 `(("bc" ,bc) ; Needed for running tests.
15416 ("samtools" ,samtools) ; Needed for running tests.
15417 ("parallel" ,parallel) ; Needed for running tests.
15418 ("perl" ,perl) ; Needed for running tests.
15419 ("procps" ,procps) ; Needed for running tests.
15420 ("python" ,python-2) ; Needed for running tests.
15421 ("vcflib-src" ,(package-source vcflib))
15422 ;; These are submodules for the vcflib version used in freebayes.
15423 ;; This package builds against the .o files so we need to extract the source.
15424 ("tabixpp-src" ,(package-source tabixpp))
15425 ("smithwaterman-src" ,(package-source smithwaterman))
15426 ("multichoose-src" ,(package-source multichoose))
15427 ("fsom-src" ,(package-source fsom))
15428 ("filevercmp-src" ,(package-source filevercmp))
15429 ("fastahack-src" ,(package-source fastahack))
15430 ("intervaltree-src" ,(package-source intervaltree))
15431 ;; These submodules are needed to run the tests.
15432 ("bash-tap-src" ,(package-source bash-tap))
15433 ("test-simple-bash-src"
15434 ,(origin
15435 (method git-fetch)
15436 (uri (git-reference
15437 (url "https://github.com/ingydotnet/test-simple-bash/")
15438 (commit "124673ff204b01c8e96b7fc9f9b32ee35d898acc")))
15439 (file-name "test-simple-bash-src-checkout")
15440 (sha256
15441 (base32 "043plp6z0x9yf7mdpky1fw7zcpwn1p47px95w9mh16603zqqqpga"))))))
15442 (arguments
15443 `(#:make-flags
15444 (list "CC=gcc"
15445 (string-append "BAMTOOLS_ROOT="
15446 (assoc-ref %build-inputs "bamtools")))
15447 #:test-target "test"
15448 #:phases
15449 (modify-phases %standard-phases
15450 (delete 'configure)
15451 (add-after 'unpack 'fix-tests
15452 (lambda _
15453 (substitute* "test/t/01_call_variants.t"
15454 (("grep -P \"\\(\\\\t500\\$\\|\\\\t11000\\$\\|\\\\t1000\\$\\)\"")
15455 "grep -E ' (500|11000|1000)$'"))
15456 #t))
15457 (add-after 'unpack 'unpack-submodule-sources
15458 (lambda* (#:key inputs #:allow-other-keys)
15459 (let ((unpack (lambda (source target)
15460 (with-directory-excursion target
15461 (if (file-is-directory? (assoc-ref inputs source))
15462 (copy-recursively (assoc-ref inputs source) ".")
15463 (invoke "tar" "xvf"
15464 (assoc-ref inputs source)
15465 "--strip-components=1"))))))
15466 (and
15467 (unpack "vcflib-src" "vcflib")
15468 (unpack "fastahack-src" "vcflib/fastahack")
15469 (unpack "filevercmp-src" "vcflib/filevercmp")
15470 (unpack "fsom-src" "vcflib/fsom")
15471 (unpack "intervaltree-src" "vcflib/intervaltree")
15472 (unpack "multichoose-src" "vcflib/multichoose")
15473 (unpack "smithwaterman-src" "vcflib/smithwaterman")
15474 (unpack "tabixpp-src" "vcflib/tabixpp")
15475 (unpack "test-simple-bash-src" "test/test-simple-bash")
15476 (unpack "bash-tap-src" "test/bash-tap")))))
15477 (add-after 'unpack-submodule-sources 'fix-makefiles
15478 (lambda _
15479 ;; We don't have the .git folder to get the version tag from.
15480 (substitute* "vcflib/Makefile"
15481 (("^GIT_VERSION.*")
15482 (string-append "GIT_VERSION = v" ,version)))
15483 (substitute* "src/Makefile"
15484 (("-I\\$\\(BAMTOOLS_ROOT\\)/src")
15485 "-I$(BAMTOOLS_ROOT)/include/bamtools"))
15486 #t))
15487 (add-before 'build 'build-tabixpp-and-vcflib
15488 (lambda* (#:key inputs make-flags #:allow-other-keys)
15489 (with-directory-excursion "vcflib"
15490 (with-directory-excursion "tabixpp"
15491 (apply invoke "make"
15492 (string-append "HTS_LIB="
15493 (assoc-ref inputs "htslib")
15494 "/lib/libhts.a")
15495 make-flags))
15496 (apply invoke "make"
15497 (string-append "CFLAGS=-Itabixpp")
15498 "all"
15499 make-flags))))
15500 (replace 'install
15501 (lambda* (#:key outputs #:allow-other-keys)
15502 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
15503 (install-file "bin/freebayes" bin)
15504 (install-file "bin/bamleftalign" bin))
15505 #t)))))
15506 (home-page "https://github.com/ekg/freebayes")
15507 (synopsis "Haplotype-based variant detector")
15508 (description "FreeBayes is a Bayesian genetic variant detector designed to
15509 find small polymorphisms, specifically SNPs (single-nucleotide polymorphisms),
15510 indels (insertions and deletions), MNPs (multi-nucleotide polymorphisms), and
15511 complex events (composite insertion and substitution events) smaller than the
15512 length of a short-read sequencing alignment.")
15513 (license license:expat))))
15514
15515 (define-public samblaster
15516 (package
15517 (name "samblaster")
15518 (version "0.1.24")
15519 (source (origin
15520 (method git-fetch)
15521 (uri (git-reference
15522 (url "https://github.com/GregoryFaust/samblaster")
15523 (commit (string-append "v." version))))
15524 (file-name (git-file-name name version))
15525 (sha256
15526 (base32
15527 "0iv2ddfw8363vb2x8gr3p8g88whb6mb9m0pf71i2cqsbv6jghap7"))))
15528 (build-system gnu-build-system)
15529 (arguments
15530 `(#:tests? #f ; there are none
15531 #:phases
15532 (modify-phases %standard-phases
15533 (delete 'configure) ; There is no configure phase.
15534 (replace 'install
15535 (lambda* (#:key outputs #:allow-other-keys)
15536 (install-file "samblaster"
15537 (string-append (assoc-ref outputs "out") "/bin"))
15538 #t)))))
15539 (home-page "https://github.com/GregoryFaust/samblaster")
15540 (synopsis "Mark duplicates in paired-end SAM files")
15541 (description "Samblaster is a fast and flexible program for marking
15542 duplicates in read-id grouped paired-end SAM files. It can also optionally
15543 output discordant read pairs and/or split read mappings to separate SAM files,
15544 and/or unmapped/clipped reads to a separate FASTQ file. When marking
15545 duplicates, samblaster will require approximately 20MB of memory per 1M read
15546 pairs.")
15547 (license license:expat)))
15548
15549 (define-public r-velocyto
15550 (let ((commit "d7790346cb99f49ab9c2b23ba70dcf9d2c9fc350")
15551 (revision "1"))
15552 (package
15553 (name "r-velocyto")
15554 (version (git-version "0.6" revision commit))
15555 (source
15556 (origin
15557 (method git-fetch)
15558 (uri (git-reference
15559 (url "https://github.com/velocyto-team/velocyto.R")
15560 (commit commit)))
15561 (file-name (git-file-name name version))
15562 (sha256
15563 (base32
15564 "16wqf70j7rd7pay2q513iyz12i8n9vrpg1bisah4lddbcpx5dz1n"))))
15565 (build-system r-build-system)
15566 (inputs
15567 `(("boost" ,boost)))
15568 (propagated-inputs
15569 `(("r-hdf5r" ,r-hdf5r)
15570 ("r-mass" ,r-mass)
15571 ("r-mgcv" ,r-mgcv)
15572 ("r-pcamethods" ,r-pcamethods)
15573 ("r-rcpp" ,r-rcpp)
15574 ("r-rcpparmadillo" ,r-rcpparmadillo)
15575 ;; Suggested packages
15576 ("r-rtsne" ,r-rtsne)
15577 ("r-cluster" ,r-cluster)
15578 ("r-abind" ,r-abind)
15579 ("r-h5" ,r-h5)
15580 ("r-biocgenerics" ,r-biocgenerics)
15581 ("r-genomicalignments" ,r-genomicalignments)
15582 ("r-rsamtools" ,r-rsamtools)
15583 ("r-edger" ,r-edger)
15584 ("r-igraph" ,r-igraph)))
15585 (home-page "https://velocyto.org")
15586 (synopsis "RNA velocity estimation in R")
15587 (description
15588 "This package provides basic routines for estimation of gene-specific
15589 transcriptional derivatives and visualization of the resulting velocity
15590 patterns.")
15591 (license license:gpl3))))
15592
15593 (define-public methyldackel
15594 (package
15595 (name "methyldackel")
15596 (version "0.5.1")
15597 (source (origin
15598 (method git-fetch)
15599 (uri (git-reference
15600 (url "https://github.com/dpryan79/MethylDackel")
15601 (commit version)))
15602 (file-name (git-file-name name version))
15603 (sha256
15604 (base32
15605 "1sfhf2ap75qxpnmy1ifgmxqs18rq8mah9mcgkby73vc6h0sw99ws"))))
15606 (build-system gnu-build-system)
15607 (arguments
15608 `(#:test-target "test"
15609 #:make-flags
15610 (list "CC=gcc"
15611 (string-append "prefix="
15612 (assoc-ref %outputs "out") "/bin/"))
15613 #:phases
15614 (modify-phases %standard-phases
15615 (replace 'configure
15616 (lambda* (#:key outputs #:allow-other-keys)
15617 (substitute* "Makefile"
15618 (("-lhts ") "-lhts -lBigWig ")
15619 (("install MethylDackel \\$\\(prefix\\)" match)
15620 (string-append "install -d $(prefix); " match)))
15621 #t)))))
15622 (inputs
15623 `(("curl" ,curl) ; XXX: needed by libbigwig
15624 ("htslib" ,htslib-1.9)
15625 ("libbigwig" ,libbigwig)
15626 ("zlib" ,zlib)))
15627 ;; Needed for tests
15628 (native-inputs
15629 `(("python" ,python-wrapper)))
15630 (home-page "https://github.com/dpryan79/MethylDackel")
15631 (synopsis "Universal methylation extractor for BS-seq experiments")
15632 (description
15633 "MethylDackel will process a coordinate-sorted and indexed BAM or CRAM
15634 file containing some form of BS-seq alignments and extract per-base
15635 methylation metrics from them. MethylDackel requires an indexed fasta file
15636 containing the reference genome as well.")
15637 ;; See https://github.com/dpryan79/MethylDackel/issues/85
15638 (license license:expat)))
15639
15640 ;; This package bundles PCRE 8.02 and cannot be built with the current
15641 ;; version.
15642 (define-public phast
15643 (package
15644 (name "phast")
15645 (version "1.5")
15646 (source (origin
15647 (method git-fetch)
15648 (uri (git-reference
15649 (url "https://github.com/CshlSiepelLab/phast")
15650 (commit (string-append "v" version))))
15651 (file-name (git-file-name name version))
15652 (sha256
15653 (base32
15654 "10lpbllvny923jjbbyrpxahhd1m5h7sbj9gx7rd123rg10mlidki"))))
15655 (build-system gnu-build-system)
15656 (arguments
15657 `(#:make-flags
15658 (list "CC=gcc"
15659 (string-append "DESTDIR=" (assoc-ref %outputs "out")))
15660 #:phases
15661 (modify-phases %standard-phases
15662 (replace 'configure
15663 (lambda* (#:key inputs outputs #:allow-other-keys)
15664 ;; Fix syntax
15665 (substitute* "test/Makefile"
15666 ((" ") " "))
15667 (substitute* "Makefile"
15668 (("CLAPACKPATH=/usr/lib")
15669 (string-append "CLAPACKPATH="
15670 (assoc-ref inputs "clapack") "/lib")))
15671 ;; Renaming the libraries is not necessary with our version of
15672 ;; CLAPACK.
15673 (substitute* "src/lib/Makefile"
15674 (("ifdef CLAPACKPATH") "ifdef UNNECESSARY"))
15675 (substitute* "src/make-include.mk"
15676 (("-lblaswr") "-lblas")
15677 (("-ltmg") "-ltmglib")
15678 (("liblapack.a") "liblapack.so")
15679 (("libblas.a") "libblas.so")
15680 (("libf2c.a") "libf2c.so"))
15681 (substitute* "src/Makefile"
15682 (("/opt") "/share")
15683 (("/usr/") "/"))
15684 #t))
15685 (replace 'check
15686 (lambda _
15687 (setenv "PATH"
15688 (string-append (getcwd) "/bin:" (getenv "PATH")))
15689 ;; Disable broken test
15690 (substitute* "test/Makefile"
15691 ((".*if.*hmrc_summary" m) (string-append "#" m)))
15692 ;; Only run the msa_view tests because the others fail for
15693 ;; unknown reasons.
15694 (invoke "make" "-C" "test" "msa_view"))))))
15695 (inputs
15696 `(("clapack" ,clapack)))
15697 (native-inputs
15698 `(("perl" ,perl)))
15699 (home-page "http://compgen.cshl.edu/phast/")
15700 (synopsis "Phylogenetic analysis with space/time models")
15701 (description
15702 "Phylogenetic Analysis with Space/Time models (PHAST) is a collection of
15703 command-line programs and supporting libraries for comparative and
15704 evolutionary genomics. Best known as the search engine behind the
15705 Conservation tracks in the University of California, Santa Cruz (UCSC) Genome
15706 Browser, PHAST also includes several tools for phylogenetic modeling,
15707 functional element identification, as well as utilities for manipulating
15708 alignments, trees and genomic annotations.")
15709 (license license:bsd-3)))
15710
15711 (define-public python-gffutils
15712 ;; The latest release is older more than a year than the latest commit
15713 (let ((commit "4034c54600813b1402945e12faa91b3a53162cf1")
15714 (revision "1"))
15715 (package
15716 (name "python-gffutils")
15717 (version (git-version "0.9" revision commit))
15718 (source
15719 (origin
15720 (method git-fetch)
15721 (uri (git-reference
15722 (url "https://github.com/daler/gffutils")
15723 (commit commit)))
15724 (file-name (git-file-name name version))
15725 (sha256
15726 (base32
15727 "1rwafjdnbir5wnk0ap06ww4lra3p5frhy7mfs03rlldgfnwxymsn"))))
15728 (build-system python-build-system)
15729 (arguments
15730 `(#:phases
15731 (modify-phases %standard-phases
15732 (replace 'check
15733 (lambda _
15734 ;; Tests need to access the HOME directory
15735 (setenv "HOME" "/tmp")
15736 (invoke "nosetests" "-a" "!slow")))
15737 (add-after 'unpack 'make-gz-files-writable
15738 (lambda _
15739 (for-each make-file-writable
15740 (find-files "." "\\.gz"))
15741 #t)))))
15742 (propagated-inputs
15743 `(("python-argcomplete" ,python-argcomplete)
15744 ("python-argh" ,python-argh)
15745 ("python-biopython" ,python-biopython)
15746 ("python-pybedtools" ,python-pybedtools)
15747 ("python-pyfaidx" ,python-pyfaidx)
15748 ("python-simplejson" ,python-simplejson)
15749 ("python-six" ,python-six)))
15750 (native-inputs
15751 `(("python-nose" , python-nose)))
15752 (home-page "https://github.com/daler/gffutils")
15753 (synopsis "Tool for manipulation of GFF and GTF files")
15754 (description
15755 "python-gffutils is a Python package for working with and manipulating
15756 the GFF and GTF format files typically used for genomic annotations. The
15757 files are loaded into a SQLite database, allowing much more complex
15758 manipulation of hierarchical features (e.g., genes, transcripts, and exons)
15759 than is possible with plain-text methods alone.")
15760 (license license:expat))))
15761
15762 (define-public libsbml
15763 (package
15764 (name "libsbml")
15765 (version "5.18.0")
15766 (source (origin
15767 (method url-fetch)
15768 (uri (string-append "mirror://sourceforge/sbml/libsbml/"
15769 version "/stable/libSBML-"
15770 version "-core-src.tar.gz"))
15771 (sha256
15772 (base32
15773 "0slkagrk3nfi2qsksv6b1brj6zhx4bj4bkib2sdycvrcd10ql2lh"))))
15774 (build-system cmake-build-system)
15775 (arguments
15776 `(#:test-target "test"
15777 #:configure-flags
15778 (list "-DWITH_CHECK=ON"
15779 (string-append "-DLIBXML_LIBRARY="
15780 (assoc-ref %build-inputs "libxml2")
15781 "/lib/libxml2.so")
15782 (string-append "-DLIBXML_INCLUDE_DIR="
15783 (assoc-ref %build-inputs "libxml2")
15784 "/include/libxml2"))))
15785 (propagated-inputs
15786 `(("libxml2" ,libxml2)))
15787 (native-inputs
15788 `(("check" ,check-0.14)
15789 ("swig" ,swig)))
15790 (home-page "http://sbml.org/Software/libSBML")
15791 (synopsis "Process SBML files and data streams")
15792 (description "LibSBML is a library to help you read, write, manipulate,
15793 translate, and validate SBML files and data streams. The @dfn{Systems Biology
15794 Markup Language} (SBML) is an interchange format for computer models of
15795 biological processes. SBML is useful for models of metabolism, cell
15796 signaling, and more. It continues to be evolved and expanded by an
15797 international community.")
15798 (license license:lgpl2.1+)))
15799
15800 (define-public grocsvs
15801 ;; The last release is out of date and new features have been added.
15802 (let ((commit "ecd956a65093a0b2c41849050e4512d46fecea5d")
15803 (revision "1"))
15804 (package
15805 (name "grocsvs")
15806 (version (git-version "0.2.6.1" revision commit))
15807 (source (origin
15808 (method git-fetch)
15809 (uri (git-reference
15810 (url "https://github.com/grocsvs/grocsvs")
15811 (commit commit)))
15812 (file-name (git-file-name name version))
15813 (sha256
15814 (base32 "14505725gr7qxc17cxxf0k6lzcwmgi64pija4mwf29aw70qn35cc"))
15815 (patches (search-patches "grocsvs-dont-use-admiral.patch"))))
15816 (build-system python-build-system)
15817 (arguments
15818 `(#:tests? #f ; No test suite.
15819 #:python ,python-2)) ; Only python-2 supported.
15820 (inputs
15821 `(("python2-h5py" ,python2-h5py)
15822 ("python2-ipython-cluster-helper" ,python2-ipython-cluster-helper)
15823 ("python2-networkx" ,python2-networkx)
15824 ("python2-psutil" ,python2-psutil)
15825 ("python2-pandas" ,python2-pandas)
15826 ("python2-pybedtools" ,python2-pybedtools)
15827 ("python2-pyfaidx" ,python2-pyfaidx)
15828 ("python2-pygraphviz" ,python2-pygraphviz)
15829 ("python2-pysam" ,python2-pysam)
15830 ("python2-scipy" ,python2-scipy)))
15831 (home-page "https://github.com/grocsvs/grocsvs")
15832 (synopsis "Genome-wide reconstruction of complex structural variants")
15833 (description
15834 "@dfn{Genome-wide Reconstruction of Complex Structural Variants}
15835 (GROC-SVs) is a software pipeline for identifying large-scale structural
15836 variants, performing sequence assembly at the breakpoints, and reconstructing
15837 the complex structural variants using the long-fragment information from the
15838 10x Genomics platform.")
15839 (license license:expat))))